@scania/tegel 1.4.0 → 1.5.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.
Files changed (218) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/tds-dropdown.cjs.entry.js +17 -13
  3. package/dist/cjs/tds-header-cell.cjs.entry.js +2 -2
  4. package/dist/cjs/tds-icon.cjs.entry.js +3 -2
  5. package/dist/cjs/tds-modal.cjs.entry.js +1 -1
  6. package/dist/cjs/tegel.cjs.js +1 -1
  7. package/dist/collection/components/dropdown/dropdown.css +1 -0
  8. package/dist/collection/components/dropdown/dropdown.js +16 -12
  9. package/dist/collection/components/icon/icon.js +23 -5
  10. package/dist/collection/components/modal/modal.css +1 -1
  11. package/dist/collection/components/table/table-header-cell/table-header-cell.js +13 -10
  12. package/dist/components/icon.js +4 -2
  13. package/dist/components/tds-dropdown.js +17 -13
  14. package/dist/components/tds-header-cell.js +2 -2
  15. package/dist/components/tds-modal.js +1 -1
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/tds-dropdown.entry.js +17 -13
  18. package/dist/esm/tds-header-cell.entry.js +2 -2
  19. package/dist/esm/tds-icon.entry.js +3 -2
  20. package/dist/esm/tds-modal.entry.js +1 -1
  21. package/dist/esm/tegel.js +1 -1
  22. package/dist/tegel/p-15f8ac46.entry.js +1 -0
  23. package/dist/tegel/p-3b597a64.entry.js +1 -0
  24. package/dist/tegel/{p-6dc8f2dd.entry.js → p-78853c02.entry.js} +1 -1
  25. package/dist/tegel/p-7d93c35b.entry.js +1 -0
  26. package/dist/tegel/tegel.esm.js +1 -1
  27. package/dist/types/components/dropdown/dropdown.d.ts +2 -0
  28. package/dist/types/components/icon/icon.d.ts +6 -3
  29. package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +14 -8
  30. package/dist/types/components.d.ts +20 -12
  31. package/package.json +1 -1
  32. package/dist/collection/components/accordion/accordion.stories.js +0 -100
  33. package/dist/collection/components/accordion/test/basic/accordion.e2e.js +0 -19
  34. package/dist/collection/components/accordion/test/disabled/accordion.e2e.js +0 -19
  35. package/dist/collection/components/accordion/test/expanded/accordion.e2e.js +0 -24
  36. package/dist/collection/components/accordion/test/padding-reset/accordion.e2e.js +0 -24
  37. package/dist/collection/components/badge/badge.stories.js +0 -106
  38. package/dist/collection/components/badge/test/basic/badge.e2e.js +0 -10
  39. package/dist/collection/components/badge/test/value/badge.e2e.js +0 -11
  40. package/dist/collection/components/banner/banner.stories.js +0 -92
  41. package/dist/collection/components/banner/test/basic/banner.e2e.js +0 -15
  42. package/dist/collection/components/banner/test/default/banner.e2e.js +0 -37
  43. package/dist/collection/components/banner/test/error/banner.e2e.js +0 -15
  44. package/dist/collection/components/banner/test/information/banner.e2e.js +0 -15
  45. package/dist/collection/components/block/block.stories.js +0 -49
  46. package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +0 -36
  47. package/dist/collection/components/breadcrumbs/test/default/breadcrumbs.e2e.js +0 -33
  48. package/dist/collection/components/button/button.stories.js +0 -185
  49. package/dist/collection/components/button/test/basic/button.e2e.js +0 -35
  50. package/dist/collection/components/button/test/danger/button.e2e.js +0 -18
  51. package/dist/collection/components/button/test/disabled/button.e2e.js +0 -24
  52. package/dist/collection/components/button/test/ghost/button.e2e.js +0 -18
  53. package/dist/collection/components/button/test/icon/button.e2e.js +0 -38
  54. package/dist/collection/components/button/test/secondary/button.e2e.js +0 -18
  55. package/dist/collection/components/card/card.stories.js +0 -163
  56. package/dist/collection/components/card/test/basic/card.e2e.js +0 -10
  57. package/dist/collection/components/card/test/clickable/card.e2e.js +0 -21
  58. package/dist/collection/components/card/test/default/card.e2e.js +0 -33
  59. package/dist/collection/components/checkbox/checkbox.stories.js +0 -93
  60. package/dist/collection/components/chip/chip.stories.js +0 -230
  61. package/dist/collection/components/datetime/datetime.stories.js +0 -219
  62. package/dist/collection/components/divider/divider.stories.js +0 -62
  63. package/dist/collection/components/dropdown/dropdown.stories.js +0 -260
  64. package/dist/collection/components/dropdown/test/basic/dropdown.e2e.js +0 -41
  65. package/dist/collection/components/dropdown/test/default/dropdown.e2e.js +0 -76
  66. package/dist/collection/components/dropdown/test/error/dropdown.e2e.js +0 -36
  67. package/dist/collection/components/dropdown/test/filter/dropdown.e2e.js +0 -56
  68. package/dist/collection/components/dropdown/test/filter/hide-no-result-message/dropdown.e2e.js +0 -23
  69. package/dist/collection/components/dropdown/test/filter/normalize-text-false/dropdown.e2e.js +0 -43
  70. package/dist/collection/components/dropdown/test/multiselect/dropdown.e2e.js +0 -81
  71. package/dist/collection/components/footer/footer.stories.js +0 -145
  72. package/dist/collection/components/footer/test/default/footer.e2e.js +0 -34
  73. package/dist/collection/components/header/header.stories.js +0 -82
  74. package/dist/collection/components/header/test/default/header.e2e.js +0 -44
  75. package/dist/collection/components/icon/icon.stories.js +0 -48
  76. package/dist/collection/components/link/link.stories.js +0 -59
  77. package/dist/collection/components/message/message.stories.js +0 -109
  78. package/dist/collection/components/message/test/basic/message.e2e.js +0 -16
  79. package/dist/collection/components/message/test/error/message.e2e.js +0 -28
  80. package/dist/collection/components/message/test/information/message.e2e.js +0 -10
  81. package/dist/collection/components/message/test/success/message.e2e.js +0 -10
  82. package/dist/collection/components/message/test/warning/message.e2e.js +0 -10
  83. package/dist/collection/components/modal/modal.stories.js +0 -119
  84. package/dist/collection/components/modal/test/default/modal.e2e.js +0 -28
  85. package/dist/collection/components/modal/test/open-close/modal.e2e.js +0 -63
  86. package/dist/collection/components/modal/test/prevent-true/modal.e2e.js +0 -13
  87. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +0 -92
  88. package/dist/collection/components/popover-canvas/test/default/popover-canvas.e2e.js +0 -30
  89. package/dist/collection/components/popover-canvas/test/show-false/popover-canvas.e2e.js +0 -30
  90. package/dist/collection/components/popover-canvas/test/show-true/popover-canvas.e2e.js +0 -30
  91. package/dist/collection/components/popover-menu/popover-menu.stories.js +0 -146
  92. package/dist/collection/components/popover-menu/test/default/popover-menu.e2e.js +0 -60
  93. package/dist/collection/components/popover-menu/test/icons-fluid/popover-menu.e2e.js +0 -27
  94. package/dist/collection/components/popover-menu/test/show/popover-menu.e2e.js +0 -20
  95. package/dist/collection/components/popover-menu/test/show-false/popover-menu.e2e.js +0 -20
  96. package/dist/collection/components/radio-button/radio-button.stories.js +0 -91
  97. package/dist/collection/components/side-menu/side-menu.stories.js +0 -224
  98. package/dist/collection/components/side-menu/test/collapsible/side-menu.e2e.js +0 -28
  99. package/dist/collection/components/side-menu/test/default/side-menu.e2e.js +0 -38
  100. package/dist/collection/components/slider/slider.stories.js +0 -243
  101. package/dist/collection/components/spinner/spinner.stories.js +0 -61
  102. package/dist/collection/components/stepper/stepper.stories.js +0 -95
  103. package/dist/collection/components/table/table/test/batch/table.e2e.js +0 -24
  104. package/dist/collection/components/table/table/test/default/table.e2e.js +0 -46
  105. package/dist/collection/components/table/table/test/expandable-row/table.e2e.js +0 -64
  106. package/dist/collection/components/table/table/test/filtering/table.e2e.js +0 -41
  107. package/dist/collection/components/table/table/test/multiselect/table.e2e.js +0 -47
  108. package/dist/collection/components/table/table/test/pagination/table.e2e.js +0 -53
  109. package/dist/collection/components/table/table/test/sorting/table.e2e.js +0 -36
  110. package/dist/collection/components/table/table-component-basic.stories.js +0 -184
  111. package/dist/collection/components/table/table-component-batch-actions.stories.js +0 -188
  112. package/dist/collection/components/table/table-component-custom-width.stories.js +0 -174
  113. package/dist/collection/components/table/table-component-expandable-rows.stories.js +0 -160
  114. package/dist/collection/components/table/table-component-filtering.stories.js +0 -195
  115. package/dist/collection/components/table/table-component-multiselect.stories.js +0 -211
  116. package/dist/collection/components/table/table-component-pagination.stories.js +0 -196
  117. package/dist/collection/components/table/table-component-sorting.stories.js +0 -240
  118. package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +0 -105
  119. package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +0 -99
  120. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +0 -101
  121. package/dist/collection/components/text-field/text-field.stories.js +0 -247
  122. package/dist/collection/components/textarea/test/basic/textarea.e2e.js +0 -26
  123. package/dist/collection/components/textarea/test/default/textarea.e2e.js +0 -34
  124. package/dist/collection/components/textarea/test/read-only/textarea.e2e.js +0 -26
  125. package/dist/collection/components/textarea/textarea.stories.js +0 -188
  126. package/dist/collection/components/toast/toast.stories.js +0 -90
  127. package/dist/collection/components/toggle/toggle.stories.js +0 -95
  128. package/dist/collection/components/tooltip/tooltip.stories.js +0 -126
  129. package/dist/collection/stories/Installation/angular.stories.js +0 -111
  130. package/dist/collection/stories/Installation/javascript.stories.js +0 -99
  131. package/dist/collection/stories/Installation/react.stories.js +0 -117
  132. package/dist/collection/stories/announcements/announce-tegel.stories.js +0 -262
  133. package/dist/collection/stories/announcements/prefix-change.stories.js +0 -93
  134. package/dist/collection/stories/formatHtmlPreview.js +0 -10
  135. package/dist/collection/stories/foundations/color/color-brand.stories.js +0 -38
  136. package/dist/collection/stories/foundations/color/color-scales.stories.js +0 -71
  137. package/dist/collection/stories/foundations/color/color-semantic.stories.js +0 -40
  138. package/dist/collection/stories/foundations/grid/grid.stories.js +0 -386
  139. package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +0 -100
  140. package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +0 -94
  141. package/dist/collection/stories/foundations/typography/typography-body.stories.js +0 -16
  142. package/dist/collection/stories/foundations/typography/typography-detail.stories.js +0 -17
  143. package/dist/collection/stories/foundations/typography/typography-headline.stories.js +0 -39
  144. package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +0 -12
  145. package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +0 -85
  146. package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +0 -259
  147. package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +0 -247
  148. package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +0 -140
  149. package/dist/collection/stories/tegel.stories.js +0 -283
  150. package/dist/collection/stories/utility/color/background-color.stories.js +0 -96
  151. package/dist/collection/stories/utility/color/text-color.stories.js +0 -94
  152. package/dist/tegel/p-556600b1.entry.js +0 -1
  153. package/dist/tegel/p-c6553022.entry.js +0 -1
  154. package/dist/tegel/p-f801cf0e.entry.js +0 -1
  155. package/dist/types/components/accordion/accordion.stories.d.ts +0 -77
  156. package/dist/types/components/badge/badge.stories.d.ts +0 -73
  157. package/dist/types/components/banner/banner.stories.d.ts +0 -69
  158. package/dist/types/components/block/block.stories.d.ts +0 -32
  159. package/dist/types/components/breadcrumbs/breadcrumbs.stories.d.ts +0 -16
  160. package/dist/types/components/button/button.stories.d.ts +0 -147
  161. package/dist/types/components/card/card.stories.d.ts +0 -128
  162. package/dist/types/components/checkbox/checkbox.stories.d.ts +0 -65
  163. package/dist/types/components/chip/chip.stories.d.ts +0 -99
  164. package/dist/types/components/datetime/datetime.stories.d.ts +0 -151
  165. package/dist/types/components/divider/divider.stories.d.ts +0 -58
  166. package/dist/types/components/dropdown/dropdown.stories.d.ts +0 -205
  167. package/dist/types/components/footer/footer.stories.d.ts +0 -44
  168. package/dist/types/components/header/header.stories.d.ts +0 -32
  169. package/dist/types/components/icon/icon.stories.d.ts +0 -36
  170. package/dist/types/components/link/link.stories.d.ts +0 -44
  171. package/dist/types/components/message/message.stories.d.ts +0 -88
  172. package/dist/types/components/modal/modal.stories.d.ts +0 -78
  173. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +0 -27
  174. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +0 -51
  175. package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -39
  176. package/dist/types/components/side-menu/side-menu.stories.d.ts +0 -65
  177. package/dist/types/components/slider/slider.stories.d.ts +0 -235
  178. package/dist/types/components/spinner/spinner.stories.d.ts +0 -46
  179. package/dist/types/components/stepper/stepper.stories.d.ts +0 -80
  180. package/dist/types/components/table/table-component-basic.stories.d.ts +0 -144
  181. package/dist/types/components/table/table-component-batch-actions.stories.d.ts +0 -139
  182. package/dist/types/components/table/table-component-custom-width.stories.d.ts +0 -131
  183. package/dist/types/components/table/table-component-expandable-rows.stories.d.ts +0 -131
  184. package/dist/types/components/table/table-component-filtering.stories.d.ts +0 -131
  185. package/dist/types/components/table/table-component-multiselect.stories.d.ts +0 -147
  186. package/dist/types/components/table/table-component-pagination.stories.d.ts +0 -131
  187. package/dist/types/components/table/table-component-sorting.stories.d.ts +0 -183
  188. package/dist/types/components/tabs/folder-tabs/folder-tabs.stories.d.ts +0 -69
  189. package/dist/types/components/tabs/inline-tabs/inline-tabs.stories.d.ts +0 -61
  190. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +0 -61
  191. package/dist/types/components/text-field/text-field.stories.d.ts +0 -201
  192. package/dist/types/components/textarea/textarea.stories.d.ts +0 -139
  193. package/dist/types/components/toast/toast.stories.d.ts +0 -64
  194. package/dist/types/components/toggle/toggle.stories.d.ts +0 -74
  195. package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -66
  196. package/dist/types/stories/Installation/angular.stories.d.ts +0 -6
  197. package/dist/types/stories/Installation/javascript.stories.d.ts +0 -7
  198. package/dist/types/stories/Installation/react.stories.d.ts +0 -6
  199. package/dist/types/stories/announcements/announce-tegel.stories.d.ts +0 -6
  200. package/dist/types/stories/announcements/prefix-change.stories.d.ts +0 -6
  201. package/dist/types/stories/formatHtmlPreview.d.ts +0 -2
  202. package/dist/types/stories/foundations/color/color-brand.stories.d.ts +0 -13
  203. package/dist/types/stories/foundations/color/color-scales.stories.d.ts +0 -30
  204. package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +0 -13
  205. package/dist/types/stories/foundations/grid/grid.stories.d.ts +0 -35
  206. package/dist/types/stories/foundations/spacing/spacing-element.stories.d.ts +0 -8
  207. package/dist/types/stories/foundations/spacing/spacing-layout.stories.d.ts +0 -8
  208. package/dist/types/stories/foundations/typography/typography-body.stories.d.ts +0 -8
  209. package/dist/types/stories/foundations/typography/typography-detail.stories.d.ts +0 -8
  210. package/dist/types/stories/foundations/typography/typography-headline.stories.d.ts +0 -21
  211. package/dist/types/stories/foundations/typography/typography-paragraph.stories.d.ts +0 -8
  212. package/dist/types/stories/patterns/navigation/navigation-basic.stories.d.ts +0 -23
  213. package/dist/types/stories/patterns/navigation/navigation-fewitems.stories.d.ts +0 -23
  214. package/dist/types/stories/patterns/navigation/navigation-manyitems.stories.d.ts +0 -38
  215. package/dist/types/stories/patterns/navigation/navigation-user-menu.stories.d.ts +0 -33
  216. package/dist/types/stories/tegel.stories.d.ts +0 -6
  217. package/dist/types/stories/utility/color/background-color.stories.d.ts +0 -64
  218. package/dist/types/stories/utility/color/text-color.stories.d.ts +0 -64
@@ -1,262 +0,0 @@
1
- const meta = {
2
- title: 'Intro/Announcements',
3
- parameters: {
4
- layout: 'fullscreen',
5
- options: {
6
- showPanel: false,
7
- showToolbar: false,
8
- },
9
- },
10
- };
11
- export default meta;
12
- export const Tegel = {
13
- render: () => `<style>
14
- article {
15
- box-sizing: border-box;
16
- max-width: 688px;
17
- padding: 32px;
18
- margin: auto;
19
- > * {
20
- margin-bottom: 72px;
21
- }
22
- }
23
-
24
- section > p,
25
- section > ul,
26
- section > tds-link {
27
- margin-bottom: 32px;
28
- }
29
-
30
- tds-link {
31
- display: inline-block;
32
- }
33
-
34
- .mb-72 {
35
- margin-bottom: 72px;
36
- }
37
- </style>
38
-
39
- <article class="tds-u-p2 tds-body-01">
40
- <section>
41
- <p class="tds-body-01"><strong>Published: 2022-04-25</strong></p>
42
- <h1 class="tds-headline-02">Annoucing @scania</h1>
43
- <p>
44
- <b>TLDR;</b> The new @scania/tegel package is an improvement and continuation of the previous
45
- @scania/components,
46
- @scania/theme-light, and @scania/icons packages. It simplifies the installation process and ships with types
47
- which offers type safety and improves the developer experience with intellisence and autocompletion.
48
- </p>
49
- </section>
50
- <section>
51
- <h4 class="tds-u-mb2">@scania/tegel 🧱</h4>
52
- <p>
53
- The new
54
- package includes all components as web components, removes the old CSS class components and makes the
55
- installation and updates easier. The current prefix for components, CSS variables, and utility classes -
56
- "sdds",
57
- will be changed. We have also created a new Storybook for @scania/tegel, which allows developers and
58
- designers
59
- to preview all variants of the components by changing the props.
60
- </p>
61
- </section>
62
- <section>
63
- <h4 class="tds-u-mb2">
64
- What is @scania/tegel? 🧱
65
- </h4>
66
-
67
-
68
-
69
-
70
- <p>
71
- In short, the new @scania/tegel package is an improvement and continuation of the previous
72
- @scania/component,
73
- @scania/theme-light and @scania/icons packages. These three packages have now instead been merged into one
74
- to
75
- simplify both the installation process, but also to make it easier for us to maintain and keep improving
76
- going
77
- forward.
78
- </p>
79
- <p>
80
- The new @scania/tegel is also shipped with types. This makes integrations in other Stenciljs
81
- projects
82
- possible, but also improves the developer experience with intellisence and autocompletion, and of course
83
- type
84
- safety. In this work we have also bumped the Stenciljs version (the compiler used to build our components)
85
- to
86
- the
87
- latest major.
88
- </p>
89
- <p>
90
- And we have saved the best for last, @scania/tegel is 100% web component. Previous packages
91
- had
92
- some
93
- web components, but also CSS components, these were utility classes that could be added to a predefined
94
- HTML
95
- structure to create the look and feel of Tegel. Now we are making a big effort to provide all components as
96
- web
97
- components.
98
- </p>
99
- </section>
100
- <section>
101
- <h4 class="tds-u-mb2">
102
- What improvements does @scania/tegel have? 🚀
103
- </h4>
104
-
105
-
106
- <p>
107
- So, what we are striving for in the new package is:
108
-
109
- <ul>
110
- <li>Easy installation and updates</li>
111
- <li>A clear and intuitive API</li>
112
- <li>Types to be included in package bundle</li>
113
- <li>All input elements to work within a form</li>
114
- <li>Only web components</li>
115
- <li>Dark mode</li>
116
- <li>Improved interactive documentation - Storybook</li>
117
- </ul>
118
-
119
- <p>
120
- With this new package we are creating a foundation for us to stand on going forward. We will keep improving
121
- and
122
- maintaining it after its initial release and with the changes we are introducing now we hope to be able to
123
- do
124
- this as
125
- smoothly as possible.
126
- </p>
127
-
128
-
129
-
130
- </p>
131
- </section>
132
- <section>
133
- <h4 class="tds-u-mb2">
134
- Removing CSS class components ❌
135
- </h4>
136
-
137
-
138
- <p>
139
- With this new package we are also removing our CSS components and instead introducing web component
140
- counterparts to these. This means that every component that was available as a CSS component in
141
- @scania/components will have a web component alternative in @scania/tegel. This removal will be done in our
142
- next
143
- release of @scania/tegel. This change does not change the current @scania/components package.
144
-
145
- </p>
146
- </section>
147
- <section>
148
- <h4 class="tds-u-mb2">
149
- Prefix change 🔁
150
- </h4>
151
-
152
-
153
- <tds-link class="tds-u-mt2 tds-body-01">
154
- <a href="?path=/story/intro-announcements--prefix-change">Read more here.</a>
155
- </tds-link>
156
- <p>
157
- We are also working on a prefix change for our new package. Instead of "sdds" the components, CSS variables
158
- and
159
- utility classes will instead be prefixed with something else, for example:
160
- <ul>
161
- <li> <{prefix}-button /> </li>
162
- <li> --{prefix}-button-color </li>
163
- <li>.{prefix}-u-flex</li>
164
- </ul>
165
- <p>
166
- This is done to have a clear distinction between what was @scania/components and what is @scania/tegel. What
167
- it
168
- also
169
- does is that it enables the two solutions to be installed alongside each other. This means that your
170
- migration
171
- can
172
- be
173
- done incrementally.
174
- </p>
175
- </p>
176
- </section>
177
- <section>
178
- <h4 class="tds-u-mb1">
179
- Migration docs 📜
180
- </h4>
181
-
182
-
183
- <p>
184
- Migrations are always hard, but during the last couple of months we have put a lot of effort into creating a
185
- "migration document", which explains and highlights all the changes in our API from version 4 of
186
- @scania/components
187
- and @scania/tegel. We hope that this will ease your migration to our new package. The migration document
188
- will
189
- continue to be updated until we release 1.0 and is available
190
- <tds-link><a
191
- href="https://tegel-storybook.netlify.app/?path=/story/intro-migrating-from-components%C2%A0v4--page">here.</a></tds-link>
192
- </p>
193
- </section>
194
- <section>
195
- <h4 class="tds-u-mb1">
196
- Support for @scania/components 🤳
197
- </h4>
198
-
199
-
200
- <p>
201
- We will keep supporting @scania/components for a short while going forward, however we see no major
202
- updates
203
- being
204
- done to the package. This means we will keep answering and helping with support questions and do
205
- minor
206
- releases with
207
- bugfixes, but we are not introducing any new features.
208
-
209
- </p>
210
- </section>
211
- <section>
212
- <h4 class="tds-u-mb1">
213
- When can I try our @scania/tegel? 🧪
214
- </h4>
215
-
216
-
217
- <p>
218
- Today! Some of you have already tried this package out, and provided us with valuable feedback,
219
- thank
220
- you!
221
- But
222
- please note that this package is still in beta and breaking changes are to be expected before we
223
- release
224
- 1.0. The
225
- package is available via npm and an installation guide is available <tds-link><a
226
- href="https://www.npmjs.com/package/@scania/tegel">here.</a></tds-link>
227
-
228
- </p>
229
- </section>
230
- <section>
231
-
232
- <h4 class="tds-u-mb1">
233
- Want to get in touch? 📞
234
- </h4>
235
-
236
-
237
- <p>
238
- Awesome! We are available via teams and have two support channels. One for
239
- <tds-link>
240
- <a
241
- href="https://teams.microsoft.com/l/channel/19%3a5e33f67fe502441f914fbcdc6e2548f5%40thread.skype/Development%2520support?groupId=79f9bfeb-73e2-424d-9477-b236191ece5e&tenantId=3bc062e4-ac9d-4c17-b4dd-3aad637ff1ac">development</a>
242
- </tds-link>
243
- and one for
244
- <tds-link>
245
- <a
246
- href="https://teams.microsoft.com/l/channel/19%3A8d30ded56af14672b471062ec1e66345%40thread.skype/Design%2520support?groupId=79f9bfeb-73e2-424d-9477-b236191ece5e&tenantId=3bc062e4-ac9d-4c17-b4dd-3aad637ff1ac">design.</a>
247
-
248
- </tds-link>
249
- If you want to submit a bug report or feature request, please do so via our
250
- <tds-link>
251
- <a href="https://github.com/scania-digital-design-system/tegel/issues">GitHub</a>
252
- </tds-link>.
253
-
254
- <p>
255
- All the best,<br />
256
- The Tegel Team.
257
- </p>
258
- </p>
259
- </section>
260
- </article>
261
- `,
262
- };
@@ -1,93 +0,0 @@
1
- const meta = {
2
- title: 'Intro/Announcements',
3
- parameters: {
4
- layout: 'fullscreen',
5
- options: {
6
- showPanel: false,
7
- showToolbar: false,
8
- },
9
- },
10
- };
11
- export default meta;
12
- export const PrefixChange = {
13
- render: () => `<style>
14
- article {
15
- box-sizing: border-box;
16
- max-width: 688px;
17
- padding: 32px;
18
- margin: auto;
19
- > * {
20
- margin-bottom: 72px;
21
- }
22
- }
23
-
24
- section > p,
25
- section > ul,
26
- section > tds-link {
27
- margin-bottom: 32px;
28
- }
29
-
30
- tds-link {
31
- display: inline-block;
32
- }
33
-
34
- .mb-72 {
35
- margin-bottom: 72px;
36
- }
37
- </style>
38
-
39
- <article class="tds-u-p2 tds-body-01">
40
- <section>
41
- <p class="tds-body-01"><strong>Published: 2022-06-05</strong></p>
42
- <h1 class="tds-headline-02">Prefix change 🔁</h1>
43
- <p>
44
- In a previous announcement, we mentioned that @scania/tegel would undergo a prefix change. We have been diligently
45
- working on this for the past few weeks, and we are pleased to inform you that it is now complete. Previously, all
46
- components, utility classes, and CSS variables were prefixed with 'sdds'. However, we have decided to introduce a
47
- different prefix for @scania/tegel, which will be 'tds'. As a result, all our components, utility classes, and CSS
48
- variables will now be prefixed with 'tds', as shown below:
49
- </p>
50
- <ul class="tds-body-01">
51
- <li> &lt;tds-button/&gt; </li>
52
- <li>--tds-1button-color</li>
53
- <li>.tds-u-flex</li>
54
- </ul>
55
- <p>
56
- We have made this change to establish a clear distinction between @scania/components and @scania/tegel. Additionally, it
57
- will facilitate a smoother transition to the new package for you, the users. You can now install @scania/tegel alongside
58
- @scania/components, allowing for an incremental transition.</p>
59
- </p>
60
- </section>
61
- <section>
62
- <h4 class="tds-u-mb1">
63
- Want to get in touch? 📞
64
- </h4>
65
-
66
-
67
- <p>
68
- Awesome! We are available via teams and have two support channels. One for
69
- <tds-link>
70
- <a
71
- href="https://teams.microsoft.com/l/channel/19%3a5e33f67fe502441f914fbcdc6e2548f5%40thread.skype/Development%2520support?groupId=79f9bfeb-73e2-424d-9477-b236191ece5e&tenantId=3bc062e4-ac9d-4c17-b4dd-3aad637ff1ac">development</a>
72
- </tds-link>
73
- and one for
74
- <tds-link>
75
- <a
76
- href="https://teams.microsoft.com/l/channel/19%3A8d30ded56af14672b471062ec1e66345%40thread.skype/Design%2520support?groupId=79f9bfeb-73e2-424d-9477-b236191ece5e&tenantId=3bc062e4-ac9d-4c17-b4dd-3aad637ff1ac">design.</a>
77
-
78
- </tds-link>
79
- If you want to submit a bug report or feature request, please do so via our
80
- <tds-link>
81
- <a href="https://github.com/scania-digital-design-system/tegel/issues">GitHub</a>
82
- </tds-link>.
83
-
84
- <p>
85
- All the best,<br />
86
- The Tegel Team.
87
- </p>
88
- </p>
89
- </section>
90
-
91
- </article>
92
- `,
93
- };
@@ -1,10 +0,0 @@
1
- import prettier from "prettier/standalone";
2
- import parserBabel from "prettier/parser-babel";
3
- import parserHtml from "prettier/parser-html";
4
- const prettierOptions = {
5
- bracketSameLine: false,
6
- htmlWhitespaceSensitivity: 'ignore',
7
- printWidth: 100,
8
- };
9
- const formatHtmlPreview = (htmlStr) => prettier.format(htmlStr, Object.assign({ parser: 'html', plugins: [parserBabel, parserHtml] }, prettierOptions));
10
- export default formatHtmlPreview;
@@ -1,38 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Color',
4
- parameters: {
5
- layout: 'fullscreen',
6
- docs: {
7
- source: {
8
- state: 'closed',
9
- },
10
- },
11
- },
12
- };
13
- const Template = () => formatHtmlPreview(`
14
- <style>
15
- /* Demo code for presentation purposes */
16
- .demo-wrapper {
17
- height: 90px;
18
- }
19
- .demo-wrapper span {
20
- color: white;
21
- background-color: black;
22
- border: 1px solid white;
23
- padding: 4px;
24
- position: absolute;
25
- }
26
- </style>
27
-
28
- <div class="demo-wrapper" style="background-color: var(--tds-black)">
29
- <span>--tds-black</span>
30
- </div>
31
- <div class="demo-wrapper" style="background-color: var(--tds-white)">
32
- <span>--tds-white</span>
33
- </div>
34
- <div class="demo-wrapper" style="background-color: var(--tds-blue)">
35
- <span>--tds-blue</span>
36
- </div>
37
- `);
38
- export const Brand = Template.bind({});
@@ -1,71 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Color',
4
- parameters: {
5
- layout: 'fullscreen',
6
- docs: {
7
- source: {
8
- state: 'closed',
9
- },
10
- },
11
- },
12
- argTypes: {
13
- color: {
14
- name: 'Color',
15
- description: 'Choose color scale to display',
16
- control: {
17
- type: 'radio',
18
- },
19
- options: { Grey: 'grey', Blue: 'blue', Red: 'red' },
20
- },
21
- },
22
- args: {
23
- color: 'grey',
24
- },
25
- };
26
- const Template = ({ color }) => {
27
- const scale = {
28
- grey: [
29
- '50',
30
- '100',
31
- '200',
32
- '300',
33
- '400',
34
- '500',
35
- '600',
36
- '700',
37
- '800',
38
- '846',
39
- '868',
40
- '900',
41
- '958',
42
- ],
43
- blue: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
44
- red: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
45
- };
46
- const picked = scale[color];
47
- let div = '';
48
- picked.forEach((num) => {
49
- div += `<div id="test" class="demo-wrapper" style="background-color: var(--tds-${color}-${num})">
50
- <span>--tds-${color}-${num}</span>
51
- </div>`;
52
- });
53
- return formatHtmlPreview(`
54
- <style>
55
- /* Demo code for presentation purposes */
56
- .demo-wrapper {
57
- height: 90px;
58
- }
59
- .demo-wrapper span {
60
- color: white;
61
- background-color: black;
62
- border: 1px solid white;
63
- padding: 4px;
64
- position: absolute;
65
- }
66
- </style>
67
-
68
- ${div}
69
- `);
70
- };
71
- export const Scales = Template.bind({});
@@ -1,40 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Color',
4
- parameters: {
5
- layout: 'fullscreen',
6
- docs: {
7
- source: {
8
- state: 'closed',
9
- },
10
- },
11
- },
12
- };
13
- const Template = () => formatHtmlPreview(`
14
- <style>
15
- /* Demo code for presentation purposes */
16
- .demo-wrapper {
17
- height: 90px;
18
- }
19
- .demo-wrapper span {
20
- color: white;
21
- background-color: black;
22
- border: 1px solid white;
23
- padding: 4px;
24
- position: absolute;
25
- }
26
- </style>
27
-
28
- <div class="demo-wrapper" style="background-color: var(--tds-positive)">
29
- <span>--tds-positive</span>
30
- </div>
31
- <div class="demo-wrapper" style="background-color: var(--tds-warning)">
32
- <span>--tds-warning</span>
33
- </div>
34
- <div class="demo-wrapper" style="background-color: var(--tds-negative)">
35
- <span>--tds-negative</span>
36
- </div>
37
- <div class="demo-wrapper" style="background-color: var(--tds-information)">
38
- <span>--tds-information</span>
39
- </div>`);
40
- export const Semantic = Template.bind({});