@scania/tegel-lite 0.0.1-beta.2 → 0.0.1-beta.4
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/dist/components.css +9454 -0
- package/dist/global.css +17 -22
- package/dist/tl-button.css +19 -0
- package/dist/tl-dropdown.css +4 -0
- package/dist/tl-folder-tabs.css +139 -0
- package/dist/tl-header.css +112 -5
- package/dist/tl-inline-tabs.css +158 -0
- package/dist/tl-navigation-tabs.css +168 -0
- package/dist/tl-slider.css +1019 -1494
- package/dist/tl-text-field.css +3 -11
- package/dist/traton-variables.css +2 -2
- package/package.json +6 -3
- package/dist/tl-radiobutton.css +0 -165
- package/dist/tl-textarea-mixins.css +0 -0
package/dist/tl-text-field.css
CHANGED
|
@@ -1246,23 +1246,12 @@
|
|
|
1246
1246
|
position: relative;
|
|
1247
1247
|
width: 100%;
|
|
1248
1248
|
min-width: 208px;
|
|
1249
|
-
height: 56px;
|
|
1250
|
-
padding-bottom: 1px;
|
|
1251
1249
|
border-radius: var(--text-field-border-radius);
|
|
1252
1250
|
box-sizing: border-box;
|
|
1253
1251
|
}
|
|
1254
1252
|
.tl-text-field--no-min-width {
|
|
1255
1253
|
min-width: auto;
|
|
1256
1254
|
}
|
|
1257
|
-
.tl-text-field--lg {
|
|
1258
|
-
height: 56px;
|
|
1259
|
-
}
|
|
1260
|
-
.tl-text-field--md {
|
|
1261
|
-
height: 48px;
|
|
1262
|
-
}
|
|
1263
|
-
.tl-text-field--sm {
|
|
1264
|
-
height: 40px;
|
|
1265
|
-
}
|
|
1266
1255
|
.tl-text-field--readonly:not(.tl-text-field--disabled):not(.tl-text-field--hide-readonly-icon)::before {
|
|
1267
1256
|
content: "";
|
|
1268
1257
|
position: absolute;
|
|
@@ -1371,12 +1360,15 @@
|
|
|
1371
1360
|
}
|
|
1372
1361
|
.tl-text-field--lg .tl-text-field__input {
|
|
1373
1362
|
padding: var(--tds-spacing-element-20) var(--tds-spacing-element-16);
|
|
1363
|
+
height: 56px;
|
|
1374
1364
|
}
|
|
1375
1365
|
.tl-text-field--md .tl-text-field__input {
|
|
1376
1366
|
padding: var(--tds-spacing-element-16);
|
|
1367
|
+
height: 48px;
|
|
1377
1368
|
}
|
|
1378
1369
|
.tl-text-field--sm .tl-text-field__input {
|
|
1379
1370
|
padding: var(--tds-spacing-element-12) var(--tds-spacing-element-16);
|
|
1371
|
+
height: 40px;
|
|
1380
1372
|
}
|
|
1381
1373
|
.tl-text-field--label-inside.tl-text-field--lg .tl-text-field__input {
|
|
1382
1374
|
padding-top: var(--tds-spacing-element-24);
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
* Do not edit directly, this file was auto-generated.
|
|
377
377
|
*/
|
|
378
378
|
.traton,
|
|
379
|
-
.traton
|
|
379
|
+
.traton.tds-mode-light {
|
|
380
380
|
--color-background-base: var(--traton-color-grey-50);
|
|
381
381
|
--color-background-accent-primary-default: var(--traton-color-blue-800);
|
|
382
382
|
--color-background-accent-primary-disabled: var(--traton-color-blue-100);
|
|
@@ -507,7 +507,7 @@
|
|
|
507
507
|
/**
|
|
508
508
|
* Do not edit directly, this file was auto-generated.
|
|
509
509
|
*/
|
|
510
|
-
.traton
|
|
510
|
+
.traton.tds-mode-dark {
|
|
511
511
|
--color-background-base: var(--traton-color-blue-1000);
|
|
512
512
|
--color-background-accent-primary-default: var(--traton-color-grey-300);
|
|
513
513
|
--color-background-accent-primary-disabled: var(--traton-color-grey-900);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scania/tegel-lite",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.4",
|
|
4
4
|
"description": "Styles-only library for Tegel Design System (Beta)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"./global.css": "./dist/global.css",
|
|
27
27
|
"./scania-variables.css": "./dist/scania-variables.css",
|
|
28
28
|
"./traton-variables.css": "./dist/traton-variables.css",
|
|
29
|
+
"./components.css": "./dist/components.css",
|
|
29
30
|
"./tl-accordion.css": "./dist/tl-accordion.css",
|
|
30
31
|
"./tl-badge.css": "./dist/tl-badge.css",
|
|
31
32
|
"./tl-banner.css": "./dist/tl-banner.css",
|
|
@@ -47,7 +48,6 @@
|
|
|
47
48
|
"./tl-step.css": "./dist/tl-step.css",
|
|
48
49
|
"./tl-stepper.css": "./dist/tl-stepper.css",
|
|
49
50
|
"./tl-text-field.css": "./dist/tl-text-field.css",
|
|
50
|
-
"./tl-textarea-mixins.css": "./dist/tl-textarea-mixins.css",
|
|
51
51
|
"./tl-textarea.css": "./dist/tl-textarea.css",
|
|
52
52
|
"./tl-toast.css": "./dist/tl-toast.css",
|
|
53
53
|
"./tl-toggle.css": "./dist/tl-toggle.css",
|
|
@@ -60,7 +60,10 @@
|
|
|
60
60
|
"./tl-side-menu.css": "./dist/tl-side-menu.css",
|
|
61
61
|
"./tl-footer.css": "./dist/tl-footer.css",
|
|
62
62
|
"./tl-slider.css": "./dist/tl-slider.css",
|
|
63
|
-
"./tl-radiobutton.css": "./dist/tl-radiobutton.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"
|
|
64
67
|
},
|
|
65
68
|
"repository": {
|
|
66
69
|
"type": "git",
|
package/dist/tl-radiobutton.css
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
.tl-radiobutton {
|
|
3
|
-
--radio-button-background-hover: var(--color-foreground-border-discrete);
|
|
4
|
-
--radio-button-background-inverse: var(--color-foreground-icon-inverse-strong);
|
|
5
|
-
--radio-button-background-disabled: var(--color-background-accent-primary-disabled);
|
|
6
|
-
--radio-button-border: var(--color-foreground-border-strong);
|
|
7
|
-
--radio-button-label: var(--color-foreground-text-strong);
|
|
8
|
-
--radio-button-label-disabled: var(--color-foreground-text-disabled);
|
|
9
|
-
--radio-button-focus: var(--color-foreground-border-accent-focus);
|
|
10
|
-
--radio-button-checked-disabled: var(--color-foreground-icon-disabled);
|
|
11
|
-
--radio-button-spacing-4: var(--tds-spacing-element-4) 0 var(--tds-spacing-element-4)
|
|
12
|
-
var(--tds-spacing-element-4);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* Typography Usage mixins */
|
|
16
|
-
/* Block */
|
|
17
|
-
.tl-radiobutton {
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
}
|
|
20
|
-
.tl-radiobutton * {
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
}
|
|
23
|
-
.tl-radiobutton {
|
|
24
|
-
font-family: var(--detail-02-font-family);
|
|
25
|
-
font-size: var(--detail-02-font-size);
|
|
26
|
-
line-height: var(--detail-02-line-height);
|
|
27
|
-
font-weight: var(--detail-02-font-weight);
|
|
28
|
-
letter-spacing: var(--detail-02-letter-spacing);
|
|
29
|
-
text-transform: var(--detail-02-text-transform);
|
|
30
|
-
color: var(--radio-button-label);
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
margin-left: -4px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Elements */
|
|
37
|
-
/* INPUT — semantic control (hidden visually) */
|
|
38
|
-
.tl-radiobutton__input {
|
|
39
|
-
appearance: none;
|
|
40
|
-
outline: none;
|
|
41
|
-
margin: 0;
|
|
42
|
-
border: 0;
|
|
43
|
-
inline-size: 24px;
|
|
44
|
-
block-size: 24px;
|
|
45
|
-
position: absolute;
|
|
46
|
-
opacity: 0;
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
border-radius: 50%;
|
|
49
|
-
/* Focus: pulse + thin outline on visual control */
|
|
50
|
-
}
|
|
51
|
-
.tl-radiobutton__input:focus + .tl-radiobutton__control::before {
|
|
52
|
-
background-color: var(--radio-button-focus);
|
|
53
|
-
animation: rb-focus 0.4s cubic-bezier(0.65, 0.05, 0.38, 0.95) forwards;
|
|
54
|
-
}
|
|
55
|
-
.tl-radiobutton__input:focus + .tl-radiobutton__control::after {
|
|
56
|
-
outline: 1px solid var(--tds-radio-button-interaction-outline);
|
|
57
|
-
}
|
|
58
|
-
.tl-radiobutton__input {
|
|
59
|
-
/* Checked: thicker border to create dot effect */
|
|
60
|
-
}
|
|
61
|
-
.tl-radiobutton__input:checked + .tl-radiobutton__control::after {
|
|
62
|
-
border: 4px solid var(--radio-button-border);
|
|
63
|
-
}
|
|
64
|
-
.tl-radiobutton__input {
|
|
65
|
-
/* Checked + focus: thicker outline on inner circle */
|
|
66
|
-
}
|
|
67
|
-
.tl-radiobutton__input:checked:focus + .tl-radiobutton__control::after {
|
|
68
|
-
outline: 4px solid var(--radio-button-focus);
|
|
69
|
-
}
|
|
70
|
-
.tl-radiobutton--disabled .tl-radiobutton__input:checked + .tl-radiobutton__control::before {
|
|
71
|
-
border: 1px solid var(--radio-button-border-disabled);
|
|
72
|
-
display: block;
|
|
73
|
-
inline-size: 16px;
|
|
74
|
-
block-size: 16px;
|
|
75
|
-
left: 3px;
|
|
76
|
-
top: 3px;
|
|
77
|
-
box-sizing: content-box;
|
|
78
|
-
}
|
|
79
|
-
.tl-radiobutton--disabled .tl-radiobutton__input:checked + .tl-radiobutton__control::after {
|
|
80
|
-
border: 4px solid var(--radio-button-background-disabled);
|
|
81
|
-
background-color: var(--radio-button-checked-disabled);
|
|
82
|
-
left: 4px;
|
|
83
|
-
top: 4px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* CONTROL — visual ring + inner circle */
|
|
87
|
-
.tl-radiobutton__control {
|
|
88
|
-
inline-size: 24px;
|
|
89
|
-
block-size: 24px;
|
|
90
|
-
border-radius: 50%;
|
|
91
|
-
position: relative;
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
flex-shrink: 0;
|
|
94
|
-
align-self: flex-start;
|
|
95
|
-
box-sizing: border-box;
|
|
96
|
-
}
|
|
97
|
-
.tl-radiobutton__control::before, .tl-radiobutton__control::after {
|
|
98
|
-
content: "";
|
|
99
|
-
position: absolute;
|
|
100
|
-
border-radius: 50%;
|
|
101
|
-
box-sizing: border-box;
|
|
102
|
-
}
|
|
103
|
-
.tl-radiobutton__control {
|
|
104
|
-
/* focus "pulse" background holder */
|
|
105
|
-
}
|
|
106
|
-
.tl-radiobutton__control::before {
|
|
107
|
-
inline-size: 22px;
|
|
108
|
-
block-size: 22px;
|
|
109
|
-
left: 1px;
|
|
110
|
-
top: 1px;
|
|
111
|
-
}
|
|
112
|
-
.tl-radiobutton__control {
|
|
113
|
-
/* base inner circle + ring */
|
|
114
|
-
}
|
|
115
|
-
.tl-radiobutton__control::after {
|
|
116
|
-
background-color: var(--radio-button-background-inverse);
|
|
117
|
-
border: 1px solid var(--radio-button-border);
|
|
118
|
-
inline-size: 16px;
|
|
119
|
-
block-size: 16px;
|
|
120
|
-
left: 4px;
|
|
121
|
-
top: 4px;
|
|
122
|
-
}
|
|
123
|
-
.tl-radiobutton__control {
|
|
124
|
-
/* Hover outline (only when not disabled) */
|
|
125
|
-
}
|
|
126
|
-
.tl-radiobutton:not(.tl-radiobutton--disabled):hover .tl-radiobutton__control::after {
|
|
127
|
-
outline: 2px solid var(--radio-button-background-hover);
|
|
128
|
-
}
|
|
129
|
-
.tl-radiobutton__control {
|
|
130
|
-
/* Disabled visuals */
|
|
131
|
-
}
|
|
132
|
-
.tl-radiobutton--disabled .tl-radiobutton__control {
|
|
133
|
-
cursor: not-allowed;
|
|
134
|
-
}
|
|
135
|
-
.tl-radiobutton--disabled .tl-radiobutton__control::before {
|
|
136
|
-
outline: 1px solid var(--radio-button-border-disabled);
|
|
137
|
-
outline-offset: -4px;
|
|
138
|
-
}
|
|
139
|
-
.tl-radiobutton--disabled .tl-radiobutton__control::after {
|
|
140
|
-
background-color: var(--radio-button-background-disabled);
|
|
141
|
-
border-color: var(--radio-button-background-disabled);
|
|
142
|
-
/* prevent hover outline when disabled */
|
|
143
|
-
outline: none;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* LABEL — spacing & disabled color */
|
|
147
|
-
.tl-radiobutton__label {
|
|
148
|
-
padding: var(--radio-button-spacing-4);
|
|
149
|
-
cursor: pointer;
|
|
150
|
-
}
|
|
151
|
-
.tl-radiobutton--disabled .tl-radiobutton__label {
|
|
152
|
-
color: var(--radio-button-label-disabled);
|
|
153
|
-
cursor: not-allowed;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/* Focus animation */
|
|
157
|
-
@keyframes rb-focus {
|
|
158
|
-
0% {
|
|
159
|
-
transform: scale(0);
|
|
160
|
-
opacity: 0;
|
|
161
|
-
}
|
|
162
|
-
100% {
|
|
163
|
-
transform: scale(1);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
File without changes
|