@scania/tegel-lite 0.1.0-variables-beta.1 → 1.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/README.dev.md +1 -5
- package/README.md +12 -12
- package/dist/assets/fonts/traton/TratonTypeDisplay-Bold.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeDisplay-Bold.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeDisplay-Medium.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeDisplay-Medium.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Bold.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Bold.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-BoldItalic.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-BoldItalic.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Italic.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Italic.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Medium.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Medium.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-MediumItalic.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-MediumItalic.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Regular.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-Regular.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-SemiBold.woff +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/traton/TratonTypeText-SemiBoldItalic.woff2 +0 -0
- package/dist/assets/icons/traton/placeholder.svg +3 -0
- package/dist/components.css +3552 -7157
- package/dist/global.css +134 -11
- package/dist/scania-variables.css +357 -136
- package/dist/tl-accordion.css +88 -35
- package/dist/tl-banner.css +88 -13
- package/dist/tl-block.css +62 -7
- package/dist/tl-breadcrumbs.css +55 -6
- package/dist/tl-button.css +192 -160
- package/dist/tl-card.css +54 -66
- package/dist/tl-checkbox.css +195 -115
- package/dist/tl-divider.css +61 -3
- package/dist/tl-footer.css +98 -38
- package/dist/tl-icon.css +4 -0
- package/dist/tl-link.css +114 -16
- package/dist/tl-message.css +128 -14
- package/dist/tl-modal.css +123 -20
- package/dist/tl-radio-button.css +158 -96
- package/dist/tl-text-field.css +256 -76
- package/dist/tl-textarea.css +274 -76
- package/dist/tl-toast.css +119 -10
- package/dist/tl-toggle.css +149 -44
- package/dist/tl-tooltip.css +17 -15
- package/dist/traton-variables.css +365 -23
- package/package.json +5 -26
- package/dist/tl-badge.css +0 -45
- package/dist/tl-checkbox-vars.css +0 -38
- package/dist/tl-chip.css +0 -99
- package/dist/tl-dropdown.css +0 -913
- package/dist/tl-folder-tabs.css +0 -139
- package/dist/tl-header.css +0 -935
- package/dist/tl-inline-tabs.css +0 -173
- package/dist/tl-navigation-tabs.css +0 -171
- package/dist/tl-popover-canvas.css +0 -70
- package/dist/tl-popover-menu.css +0 -123
- package/dist/tl-side-menu.css +0 -695
- package/dist/tl-slider.css +0 -2242
- package/dist/tl-spinner.css +0 -78
- package/dist/tl-step.css +0 -239
- package/dist/tl-stepper.css +0 -83
- package/dist/tl-table.css +0 -849
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scania/tegel-lite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Styles-only library for Tegel Design System (Beta)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -28,46 +28,25 @@
|
|
|
28
28
|
"./traton-variables.css": "./dist/traton-variables.css",
|
|
29
29
|
"./components.css": "./dist/components.css",
|
|
30
30
|
"./tl-accordion.css": "./dist/tl-accordion.css",
|
|
31
|
-
"./tl-badge.css": "./dist/tl-badge.css",
|
|
32
31
|
"./tl-banner.css": "./dist/tl-banner.css",
|
|
33
32
|
"./tl-block.css": "./dist/tl-block.css",
|
|
34
33
|
"./tl-breadcrumbs.css": "./dist/tl-breadcrumbs.css",
|
|
35
34
|
"./tl-button.css": "./dist/tl-button.css",
|
|
36
|
-
"./tl-
|
|
35
|
+
"./tl-card.css": "./dist/tl-card.css",
|
|
37
36
|
"./tl-checkbox.css": "./dist/tl-checkbox.css",
|
|
38
|
-
"./tl-
|
|
37
|
+
"./tl-datetime.css": "./dist/tl-datetime.css",
|
|
39
38
|
"./tl-divider.css": "./dist/tl-divider.css",
|
|
40
|
-
"./tl-
|
|
41
|
-
"./tl-header.css": "./dist/tl-header.css",
|
|
39
|
+
"./tl-footer.css": "./dist/tl-footer.css",
|
|
42
40
|
"./tl-icon.css": "./dist/tl-icon.css",
|
|
43
41
|
"./tl-link.css": "./dist/tl-link.css",
|
|
44
42
|
"./tl-message.css": "./dist/tl-message.css",
|
|
45
43
|
"./tl-modal.css": "./dist/tl-modal.css",
|
|
46
44
|
"./tl-radio-button.css": "./dist/tl-radio-button.css",
|
|
47
|
-
"./tl-spinner.css": "./dist/tl-spinner.css",
|
|
48
|
-
"./tl-step.css": "./dist/tl-step.css",
|
|
49
|
-
"./tl-stepper.css": "./dist/tl-stepper.css",
|
|
50
45
|
"./tl-text-field.css": "./dist/tl-text-field.css",
|
|
51
46
|
"./tl-textarea.css": "./dist/tl-textarea.css",
|
|
52
47
|
"./tl-toast.css": "./dist/tl-toast.css",
|
|
53
48
|
"./tl-toggle.css": "./dist/tl-toggle.css",
|
|
54
|
-
"./tl-
|
|
55
|
-
"./tl-table.css": "./dist/tl-table.css",
|
|
56
|
-
"./tl-datetime.css": "./dist/tl-datetime.css",
|
|
57
|
-
"./tl-tooltip.css": "./dist/tl-tooltip.css",
|
|
58
|
-
"./tl-popover-canvas.css": "./dist/tl-popover-canvas.css",
|
|
59
|
-
"./tl-popover-menu.css": "./dist/tl-popover-menu.css",
|
|
60
|
-
"./tl-side-menu.css": "./dist/tl-side-menu.css",
|
|
61
|
-
"./tl-footer.css": "./dist/tl-footer.css",
|
|
62
|
-
"./tl-slider.css": "./dist/tl-slider.css",
|
|
63
|
-
"./tl-radiobutton.css": "./dist/tl-radiobutton.css",
|
|
64
|
-
"./tl-folder-tabs.css": "./dist/tl-folder-tabs.css",
|
|
65
|
-
"./tl-inline-tabs.css": "./dist/tl-inline-tabs.css",
|
|
66
|
-
"./tl-navigation-tabs.css": "./dist/tl-navigation-tabs.css",
|
|
67
|
-
"./tl-folder-tab.css": "./dist/tl-folder-tab.css",
|
|
68
|
-
"./tl-inline-tab.css": "./dist/tl-inline-tab.css",
|
|
69
|
-
"./tl-navigation-tab.css": "./dist/tl-navigation-tab.css",
|
|
70
|
-
"./tl-textarea-mixins.css": "./dist/tl-textarea-mixins.css"
|
|
49
|
+
"./tl-tooltip.css": "./dist/tl-tooltip.css"
|
|
71
50
|
},
|
|
72
51
|
"repository": {
|
|
73
52
|
"type": "git",
|
package/dist/tl-badge.css
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.tl-badge {
|
|
2
|
-
--badge-background-color: var(--component-badge-background-default);
|
|
3
|
-
--badge-color-text: var(--component-badge-text-default);
|
|
4
|
-
--badge-border-radius: calc(var(--component-badge-border-radius-default) * 1px);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* Typography Usage mixins */
|
|
8
|
-
.tl-badge {
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
}
|
|
11
|
-
.tl-badge * {
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
}
|
|
14
|
-
.tl-badge {
|
|
15
|
-
display: block;
|
|
16
|
-
border-radius: var(--badge-border-radius);
|
|
17
|
-
background-color: var(--badge-background-color);
|
|
18
|
-
text-align: center;
|
|
19
|
-
}
|
|
20
|
-
.tl-badge--sm {
|
|
21
|
-
height: 8px;
|
|
22
|
-
width: 8px;
|
|
23
|
-
line-height: 8px;
|
|
24
|
-
}
|
|
25
|
-
.tl-badge--lg {
|
|
26
|
-
height: 20px;
|
|
27
|
-
line-height: 20px;
|
|
28
|
-
width: 20px;
|
|
29
|
-
}
|
|
30
|
-
.tl-badge--pill {
|
|
31
|
-
display: inline-block;
|
|
32
|
-
width: unset;
|
|
33
|
-
padding-left: 8px;
|
|
34
|
-
padding-right: 8px;
|
|
35
|
-
}
|
|
36
|
-
.tl-badge--hidden {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.tl-badge__text {
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
color: var(--badge-color-text);
|
|
43
|
-
font-family: var(--detail-01-font-family);
|
|
44
|
-
font-weight: bold;
|
|
45
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.tl-checkbox {
|
|
2
|
-
--checkbox-label: var(--color-foreground-text-strong);
|
|
3
|
-
--checkbox-label-disabled: var(--color-foreground-text-disabled);
|
|
4
|
-
--checkbox-icon: var(--color-foreground-icon-strong);
|
|
5
|
-
--checkbox-fill: var(--color-foreground-icon-inverse-strong);
|
|
6
|
-
--checkbox-fill-disabled: var(--color-background-accent-primary-disabled);
|
|
7
|
-
--checkbox-border: var(--color-foreground-border-strong);
|
|
8
|
-
--checkbox-border-hover: var(--color-foreground-border-subtle);
|
|
9
|
-
--checkbox-border-focus: var(--color-foreground-border-accent-focus);
|
|
10
|
-
--checkbox-border-disabled: var(--color-foreground-border-discrete);
|
|
11
|
-
--checkbox-background-opacity-hover: 0.12;
|
|
12
|
-
--checkbox-background-opacity-focus: 0.24;
|
|
13
|
-
--checkbox-background-img: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M1 2.33333L3.4 5C4.80589 3.4379 5.59411 2.5621 7 1' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'/></svg>");
|
|
14
|
-
--checkbox-background-img-indeterminate: url("data:image/svg+xml;utf8,<svg width='8' height='2' viewBox='0 0 8 2' fill='none' xmlns='http://www.w3.org/2000/svg'><rect y='0.5' width='8' height='1' rx='0.5' fill='%23ffffff'/></svg>");
|
|
15
|
-
--checkbox-background-img-disabled: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M1 2.33333L3.4 5C4.80589 3.4379 5.59411 2.5621 7 1' stroke='%23b0b7c4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
|
|
16
|
-
--checkbox-background-img-indeterminate-disabled: url("data:image/svg+xml;utf8,<svg width='8' height='2' viewBox='0 0 8 2' fill='none' xmlns='http://www.w3.org/2000/svg'><rect y='0.5' width='8' height='1' rx='0.5' fill='%23b0b7c4'/></svg>");
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.tl-mode-dark .tl-checkbox {
|
|
20
|
-
--checkbox-background-img: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M1 2.33333L3.4 5C4.80589 3.4379 5.59411 2.5621 7 1' stroke='%230D0F13' stroke-linecap='round' stroke-linejoin='round'/></svg>");
|
|
21
|
-
--checkbox-background-img-indeterminate: url("data:image/svg+xml;utf8,<svg width='8' height='2' viewBox='0 0 8 2' fill='none' xmlns='http://www.w3.org/2000/svg'><rect y='0.5' width='8' height='1' rx='0.5' fill='%230D0F13'/></svg>");
|
|
22
|
-
--checkbox-background-img-disabled: url("data:image/svg+xml;utf8,<svg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'> <path d='M1 2.33333L3.4 5C4.80589 3.4379 5.59411 2.5621 7 1' stroke='%2356657A' stroke-linecap='round' stroke-linejoin='round'/></svg>");
|
|
23
|
-
--checkbox-background-img-indeterminate-disabled: url("data:image/svg+xml;utf8,<svg width='8' height='2' viewBox='0 0 8 2' fill='none' xmlns='http://www.w3.org/2000/svg'><rect y='0.5' width='8' height='1' rx='0.5' fill='%2356657A'/></svg>");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.scania .tl-checkbox {
|
|
27
|
-
--checkbox-focus-width: 20px;
|
|
28
|
-
--checkbox-focus-height: 20px;
|
|
29
|
-
--checkbox-focus-left: 2px;
|
|
30
|
-
--checkbox-focus-top: 2px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.traton .tl-checkbox {
|
|
34
|
-
--checkbox-focus-width: 22px;
|
|
35
|
-
--checkbox-focus-height: 22px;
|
|
36
|
-
--checkbox-focus-left: 1px;
|
|
37
|
-
--checkbox-focus-top: 1px;
|
|
38
|
-
}
|
package/dist/tl-chip.css
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/* Typography Usage mixins */
|
|
2
|
-
.tl-chip {
|
|
3
|
-
--chip-text: var(--component-chip-text-default);
|
|
4
|
-
--chip-text-active: var(--component-chip-text-selected-default);
|
|
5
|
-
--chip-background: var(--component-chip-background-default);
|
|
6
|
-
--chip-background-hover: var(--component-chip-background-hover);
|
|
7
|
-
--chip-background-focus: var(--component-chip-background-hover);
|
|
8
|
-
--chip-background-active: var(--component-chip-background-selected-default);
|
|
9
|
-
--chip-background-active-hover: var(--component-chip-background-selected-hover);
|
|
10
|
-
--chip-focused-on-selected: var(--component-chip-background-selected-default);
|
|
11
|
-
--chip-border: var(--component-chip-border-default);
|
|
12
|
-
--chip-border-hover: var(--component-chip-border-hover);
|
|
13
|
-
--chip-border-selected: var(--component-chip-border-selected-default);
|
|
14
|
-
--chip-border-selected-hover: var(--component-chip-border-selected-hover);
|
|
15
|
-
--chip-border-radius: calc(var(--component-chip-border-radius-default) * 1px);
|
|
16
|
-
--chip-opacity-disabled: var(--component-chip-opacity-disabled);
|
|
17
|
-
--chip-icon-fill: var(--component-chip-text-default);
|
|
18
|
-
--chip-icon-fill-active: var(--component-chip-text-selected-default);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tl-chip {
|
|
22
|
-
font-family: var(--detail-02-font-family);
|
|
23
|
-
font-size: var(--detail-02-font-size);
|
|
24
|
-
line-height: var(--detail-02-line-height);
|
|
25
|
-
font-weight: var(--detail-02-font-weight);
|
|
26
|
-
letter-spacing: var(--detail-02-letter-spacing);
|
|
27
|
-
text-transform: var(--detail-02-text-transform);
|
|
28
|
-
display: inline-flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
gap: 8px;
|
|
31
|
-
padding: 8px 16px;
|
|
32
|
-
border-radius: var(--chip-border-radius);
|
|
33
|
-
border: 1px solid var(--chip-border);
|
|
34
|
-
background-color: var(--chip-background);
|
|
35
|
-
color: var(--chip-text);
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
user-select: none;
|
|
39
|
-
text-decoration: none;
|
|
40
|
-
transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, outline-color 0.15s ease-in-out;
|
|
41
|
-
}
|
|
42
|
-
.tl-chip:hover {
|
|
43
|
-
background-color: var(--chip-background-hover);
|
|
44
|
-
border-color: var(--chip-border-hover);
|
|
45
|
-
}
|
|
46
|
-
.tl-chip:focus-visible {
|
|
47
|
-
outline: var(--dimension-radius-focus-width) solid var(--color-foreground-border-accent-focus);
|
|
48
|
-
box-shadow: 0 0 0 1px var(--color-brand-neutral-white);
|
|
49
|
-
outline-offset: 1px;
|
|
50
|
-
background-color: var(--chip-background-focus);
|
|
51
|
-
}
|
|
52
|
-
.tl-chip--sm {
|
|
53
|
-
padding: 0 12px;
|
|
54
|
-
min-height: 24px;
|
|
55
|
-
gap: 6px;
|
|
56
|
-
}
|
|
57
|
-
.tl-chip--lg {
|
|
58
|
-
padding: 0 16px;
|
|
59
|
-
min-height: 32px;
|
|
60
|
-
gap: 8px;
|
|
61
|
-
}
|
|
62
|
-
.tl-chip--selected {
|
|
63
|
-
background-color: var(--chip-background-active);
|
|
64
|
-
color: var(--chip-text-active);
|
|
65
|
-
border-color: var(--chip-border-selected);
|
|
66
|
-
}
|
|
67
|
-
.tl-chip--selected:hover {
|
|
68
|
-
background-color: var(--chip-background-active-hover);
|
|
69
|
-
border-color: var(--chip-border-selected-hover);
|
|
70
|
-
}
|
|
71
|
-
.tl-chip--selected:focus-visible {
|
|
72
|
-
outline: var(--dimension-radius-focus-width) solid var(--color-foreground-border-accent-focus);
|
|
73
|
-
box-shadow: 0 0 0 1px var(--color-brand-neutral-white);
|
|
74
|
-
outline-offset: 1px;
|
|
75
|
-
background-color: var(--chip-focused-on-selected);
|
|
76
|
-
}
|
|
77
|
-
.tl-chip:disabled {
|
|
78
|
-
cursor: not-allowed;
|
|
79
|
-
pointer-events: none;
|
|
80
|
-
opacity: var(--chip-opacity-disabled);
|
|
81
|
-
}
|
|
82
|
-
.tl-chip--lg.tl-chip--prefix:not(.tl-chip--suffix) {
|
|
83
|
-
padding: 0 16px 0 8px;
|
|
84
|
-
}
|
|
85
|
-
.tl-chip--lg.tl-chip--suffix:not(.tl-chip--prefix) {
|
|
86
|
-
padding: 0 8px 0 16px;
|
|
87
|
-
}
|
|
88
|
-
.tl-chip--lg.tl-chip--prefix.tl-chip--suffix {
|
|
89
|
-
padding: 0 8px;
|
|
90
|
-
}
|
|
91
|
-
.tl-chip--sm.tl-chip--prefix:not(.tl-chip--suffix) {
|
|
92
|
-
padding: 0 12px 0 6px;
|
|
93
|
-
}
|
|
94
|
-
.tl-chip--sm.tl-chip--suffix:not(.tl-chip--prefix) {
|
|
95
|
-
padding: 0 6px 0 12px;
|
|
96
|
-
}
|
|
97
|
-
.tl-chip--sm.tl-chip--prefix.tl-chip--suffix {
|
|
98
|
-
padding: 0 6px;
|
|
99
|
-
}
|