@scania/tegel-lite 0.1.0 → 1.0.1

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 (68) hide show
  1. package/README.dev.md +1 -5
  2. package/README.md +12 -12
  3. package/dist/assets/fonts/traton/TratonTypeDisplay-Bold.woff +0 -0
  4. package/dist/assets/fonts/traton/TratonTypeDisplay-Bold.woff2 +0 -0
  5. package/dist/assets/fonts/traton/TratonTypeDisplay-Medium.woff +0 -0
  6. package/dist/assets/fonts/traton/TratonTypeDisplay-Medium.woff2 +0 -0
  7. package/dist/assets/fonts/traton/TratonTypeText-Bold.woff +0 -0
  8. package/dist/assets/fonts/traton/TratonTypeText-Bold.woff2 +0 -0
  9. package/dist/assets/fonts/traton/TratonTypeText-BoldItalic.woff +0 -0
  10. package/dist/assets/fonts/traton/TratonTypeText-BoldItalic.woff2 +0 -0
  11. package/dist/assets/fonts/traton/TratonTypeText-Italic.woff +0 -0
  12. package/dist/assets/fonts/traton/TratonTypeText-Italic.woff2 +0 -0
  13. package/dist/assets/fonts/traton/TratonTypeText-Medium.woff +0 -0
  14. package/dist/assets/fonts/traton/TratonTypeText-Medium.woff2 +0 -0
  15. package/dist/assets/fonts/traton/TratonTypeText-MediumItalic.woff +0 -0
  16. package/dist/assets/fonts/traton/TratonTypeText-MediumItalic.woff2 +0 -0
  17. package/dist/assets/fonts/traton/TratonTypeText-Regular.woff +0 -0
  18. package/dist/assets/fonts/traton/TratonTypeText-Regular.woff2 +0 -0
  19. package/dist/assets/fonts/traton/TratonTypeText-SemiBold.woff +0 -0
  20. package/dist/assets/fonts/traton/TratonTypeText-SemiBold.woff2 +0 -0
  21. package/dist/assets/fonts/traton/TratonTypeText-SemiBoldItalic.woff2 +0 -0
  22. package/dist/assets/icons/scania/configurator.svg +1 -0
  23. package/dist/assets/icons/traton/edit_inactive.svg +1 -0
  24. package/dist/assets/icons/traton/placeholder.svg +3 -0
  25. package/dist/assets/icons/traton/skip_backwards.svg +1 -0
  26. package/dist/assets/icons/traton/skip_forward.svg +1 -0
  27. package/dist/components.css +3997 -6847
  28. package/dist/global.css +627 -5641
  29. package/dist/scania-variables.css +661 -565
  30. package/dist/tl-accordion.css +92 -36
  31. package/dist/tl-banner.css +87 -12
  32. package/dist/tl-block.css +62 -7
  33. package/dist/tl-breadcrumbs.css +55 -6
  34. package/dist/tl-button.css +498 -87
  35. package/dist/tl-card.css +80 -54
  36. package/dist/tl-checkbox.css +195 -115
  37. package/dist/tl-datetime.css +7 -4
  38. package/dist/tl-divider.css +61 -3
  39. package/dist/tl-footer.css +116 -18
  40. package/dist/tl-icon.css +6 -2
  41. package/dist/tl-link.css +114 -16
  42. package/dist/tl-message.css +128 -14
  43. package/dist/tl-modal.css +165 -16
  44. package/dist/tl-radio-button.css +159 -96
  45. package/dist/tl-text-field.css +272 -140
  46. package/dist/tl-textarea.css +274 -76
  47. package/dist/tl-toast.css +119 -10
  48. package/dist/tl-toggle.css +150 -45
  49. package/dist/tl-tooltip.css +17 -15
  50. package/dist/traton-variables.css +682 -447
  51. package/package.json +6 -27
  52. package/dist/tl-badge.css +0 -44
  53. package/dist/tl-checkbox-vars.css +0 -38
  54. package/dist/tl-chip.css +0 -149
  55. package/dist/tl-dropdown.css +0 -857
  56. package/dist/tl-folder-tabs.css +0 -139
  57. package/dist/tl-header.css +0 -859
  58. package/dist/tl-inline-tabs.css +0 -173
  59. package/dist/tl-navigation-tabs.css +0 -171
  60. package/dist/tl-popover-canvas.css +0 -70
  61. package/dist/tl-popover-menu.css +0 -123
  62. package/dist/tl-side-menu.css +0 -540
  63. package/dist/tl-slider.css +0 -1854
  64. package/dist/tl-spinner.css +0 -78
  65. package/dist/tl-step.css +0 -213
  66. package/dist/tl-stepper.css +0 -57
  67. package/dist/tl-table.css +0 -827
  68. /package/dist/assets/icons/scania/{gift inactive.svg → gift_inactive.svg} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scania/tegel-lite",
3
- "version": "0.1.0",
3
+ "version": "1.0.1",
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-checkbox-vars.css": "./dist/tl-checkbox-vars.css",
35
+ "./tl-card.css": "./dist/tl-card.css",
37
36
  "./tl-checkbox.css": "./dist/tl-checkbox.css",
38
- "./tl-chip.css": "./dist/tl-chip.css",
37
+ "./tl-datetime.css": "./dist/tl-datetime.css",
39
38
  "./tl-divider.css": "./dist/tl-divider.css",
40
- "./tl-dropdown.css": "./dist/tl-dropdown.css",
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-card.css": "./dist/tl-card.css",
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",
@@ -84,7 +63,7 @@
84
63
  "test": "npx playwright test"
85
64
  },
86
65
  "devDependencies": {
87
- "@playwright/test": "^1.57.0",
66
+ "@playwright/test": "^1.58.2",
88
67
  "@types/node": "^24.3.1",
89
68
  "serve": "^14.2.5"
90
69
  },
package/dist/tl-badge.css DELETED
@@ -1,44 +0,0 @@
1
- .tl-badge {
2
- --badge-background-color: var(--component-badge-background);
3
- --badge-color-text: var(--component-badge-text);
4
- }
5
-
6
- /* Typography Usage mixins */
7
- .tl-badge {
8
- box-sizing: border-box;
9
- }
10
- .tl-badge * {
11
- box-sizing: border-box;
12
- }
13
- .tl-badge {
14
- display: block;
15
- border-radius: 12px;
16
- background-color: var(--badge-background-color);
17
- text-align: center;
18
- }
19
- .tl-badge--sm {
20
- height: 8px;
21
- width: 8px;
22
- line-height: 8px;
23
- }
24
- .tl-badge--lg {
25
- height: 20px;
26
- line-height: 20px;
27
- width: 20px;
28
- }
29
- .tl-badge--pill {
30
- display: inline-block;
31
- width: unset;
32
- padding-left: 8px;
33
- padding-right: 8px;
34
- }
35
- .tl-badge--hidden {
36
- display: none;
37
- }
38
-
39
- .tl-badge__text {
40
- font-size: 12px;
41
- color: var(--badge-color-text);
42
- font-family: var(--detail-01-font-family);
43
- font-weight: bold;
44
- }
@@ -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
- .tds-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,149 +0,0 @@
1
- /* Typography Usage mixins */
2
- .tl-chip {
3
- --chip-text: var(--color-foreground-text-strong);
4
- --chip-text-active: var(--component-chip-foreground-inverse);
5
- --chip-background: var(--component-chip-color-default);
6
- --chip-background-active: var(--component-chip-color-selected);
7
- --chip-background-disabled: var(--component-chip-color-disabled);
8
- --chip-text-disabled: var(--color-foreground-text-disabled);
9
- --chip-text-checked-disabled: var(--component-chip-foreground-foreground-disabled-selected);
10
- --chip-background-active-hover: var(--component-chip-color-hover-on-selected);
11
- --chip-background-hover: var(--component-chip-color-hover);
12
- --chip-background-focus: var(--component-chip-color-focused);
13
- --chip-border-radius: var(--component-chip-border-radius);
14
- --chip-focused-on-selected: var(--component-chip-color-focused-on-selected);
15
- --component-chip-color-focused-on-selected: var(--color-system-info-subtle);
16
- --component-chip-color-disabled: var(--color-background-surface-100);
17
- --component-chip-color-focused: var(--color-background-layer-02);
18
- --component-chip-color-hover: var(--color-background-surface-600);
19
- --component-chip-color-selected: var(--color-brand-primary-400);
20
- --component-chip-color-disabled-selected: var(--color-brand-primary-400);
21
- --component-chip-color-hover-on-selected: var(--color-system-info-default);
22
- --component-chip-color-default: var(--color-background-surface-200);
23
- --component-chip-foreground-inverse: var(--color-foreground-text-inverse-strong);
24
- --component-chip-foreground-foreground-disabled-selected: var(
25
- --color-foreground-text-inverse-subtle
26
- );
27
- --component-chip-border-selected-focus-border: var(--color-system-info-default);
28
- }
29
-
30
- :root .tl-chip,
31
- .scania .tl-chip {
32
- --component-chip-border-radius: 16px;
33
- }
34
- :root .tds-mode-light .tl-chip,
35
- .scania .tds-mode-light .tl-chip {
36
- --component-chip-color-hover: var(--color-background-surface-300);
37
- --component-chip-foreground-foreground-disabled-selected: var(
38
- --color-foreground-text-inverse-subtle
39
- );
40
- }
41
- :root .tds-mode-dark .tl-chip,
42
- .scania .tds-mode-dark .tl-chip {
43
- --component-chip-color-default: var(--color-background-surface-400);
44
- --component-chip-color-focused-on-selected: var(--color-system-info-discrete);
45
- --component-chip-color-hover-on-selected: var(--color-system-info-default);
46
- --component-chip-foreground-foreground-disabled-selected: var(--color-foreground-text-subtle);
47
- --component-chip-foreground-inverse: var(--color-foreground-text-strong);
48
- }
49
-
50
- .traton .tl-chip {
51
- --component-chip-border-radius: 2px;
52
- }
53
- .traton .tds-mode-light .tl-chip {
54
- --component-chip-color-default: var(--color-background-surface-200);
55
- --component-chip-color-selected: var(--color-background-surface-300);
56
- --component-chip-color-hover-on-selected: var(--color-background-surface-400);
57
- --component-chip-foreground-inverse: var(--color-foreground-text-strong);
58
- --component-chip-color-focused-on-selected: var(--component-chip-color-focused);
59
- --component-chip-foreground-foreground-disabled-selected: var(--color-background-surface-200);
60
- }
61
- .traton .tds-mode-dark .tl-chip {
62
- --component-chip-color-default: var(--color-background-surface-300);
63
- --component-chip-color-disabled: var(--color-background-surface-200);
64
- --component-chip-foreground-inverse: var(--color-foreground-text-inverse-strong);
65
- --component-chip-color-focused-on-selected: var(--color-background-surface-700);
66
- --component-chip-color-hover-on-selected: var(--color-background-surface-800);
67
- }
68
-
69
- .tl-chip {
70
- font-family: var(--detail-02-font-family);
71
- font-size: var(--detail-02-font-size);
72
- line-height: var(--detail-02-line-height);
73
- font-weight: var(--detail-02-font-weight);
74
- letter-spacing: var(--detail-02-letter-spacing);
75
- text-transform: var(--detail-02-text-transform);
76
- display: inline-flex;
77
- align-items: center;
78
- gap: 8px;
79
- padding: 8px 16px;
80
- border-radius: var(--chip-border-radius);
81
- border: none;
82
- background-color: var(--chip-background);
83
- color: var(--chip-text);
84
- cursor: pointer;
85
- white-space: nowrap;
86
- user-select: none;
87
- text-decoration: none;
88
- transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, outline-color 0.15s ease-in-out;
89
- }
90
- .tl-chip:hover {
91
- background-color: var(--chip-background-hover);
92
- }
93
- .tl-chip:focus-visible {
94
- outline: var(--dimension-radius-focus-width) solid var(--color-foreground-border-accent-focus);
95
- box-shadow: 0 0 0 1px var(--color-brand-neutral-white);
96
- outline-offset: 1px;
97
- background-color: var(--chip-background-focus);
98
- }
99
- .tl-chip--sm {
100
- padding: 0 12px;
101
- min-height: 24px;
102
- gap: 6px;
103
- }
104
- .tl-chip--lg {
105
- padding: 0 16px;
106
- min-height: 32px;
107
- gap: 8px;
108
- }
109
- .tl-chip--selected {
110
- background-color: var(--chip-background-active);
111
- color: var(--chip-text-active);
112
- }
113
- .tl-chip--selected:hover {
114
- background-color: var(--chip-background-active-hover);
115
- }
116
- .tl-chip--selected:focus-visible {
117
- outline: var(--dimension-radius-focus-width) solid var(--color-foreground-border-accent-focus);
118
- box-shadow: 0 0 0 1px var(--color-brand-neutral-white);
119
- outline-offset: 1px;
120
- background-color: var(--chip-focused-on-selected);
121
- }
122
- .tl-chip:disabled {
123
- cursor: not-allowed;
124
- pointer-events: none;
125
- background-color: var(--chip-background-disabled);
126
- color: var(--chip-text-disabled);
127
- }
128
- .tl-chip:disabled.tl-chip--selected {
129
- background-color: var(--chip-background-active);
130
- color: var(--chip-text-checked-disabled);
131
- }
132
- .tl-chip--lg.tl-chip--prefix:not(.tl-chip--suffix) {
133
- padding: 0 16px 0 8px;
134
- }
135
- .tl-chip--lg.tl-chip--suffix:not(.tl-chip--prefix) {
136
- padding: 0 8px 0 16px;
137
- }
138
- .tl-chip--lg.tl-chip--prefix.tl-chip--suffix {
139
- padding: 0 8px;
140
- }
141
- .tl-chip--sm.tl-chip--prefix:not(.tl-chip--suffix) {
142
- padding: 0 12px 0 6px;
143
- }
144
- .tl-chip--sm.tl-chip--suffix:not(.tl-chip--prefix) {
145
- padding: 0 6px 0 12px;
146
- }
147
- .tl-chip--sm.tl-chip--prefix.tl-chip--suffix {
148
- padding: 0 6px;
149
- }