@scania/tegel 1.0.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 (337) hide show
  1. package/README.md +178 -178
  2. package/components/checkbox.js +75 -0
  3. package/{dist/components → components}/core-header-item.js +1 -0
  4. package/{dist/components → components}/divider.js +1 -0
  5. package/{dist/components → components}/header-dropdown-list-item.js +1 -0
  6. package/{dist/components → components}/header-dropdown-list.js +1 -0
  7. package/{dist/components → components}/header-item.js +1 -0
  8. package/{dist/components → components}/header-launcher-button.js +1 -0
  9. package/{dist/components → components}/icon.js +2 -1
  10. package/{dist/components → components}/popover-canvas.js +1 -0
  11. package/{dist/components → components}/popover-core.js +1 -0
  12. package/{dist/components → components}/side-menu-item.js +1 -0
  13. package/{dist/components → components}/side-menu-user-image.js +1 -0
  14. package/{dist/components → components}/side-menu-user-label.js +1 -0
  15. package/{dist/components → components}/tds-accordion-item.d.ts +1 -1
  16. package/{dist/components → components}/tds-accordion-item.js +6 -5
  17. package/{dist/components → components}/tds-accordion.d.ts +1 -1
  18. package/{dist/components → components}/tds-accordion.js +1 -0
  19. package/{dist/components → components}/tds-badge.d.ts +1 -1
  20. package/{dist/components → components}/tds-badge.js +1 -0
  21. package/{dist/components → components}/tds-banner.d.ts +1 -1
  22. package/{dist/components → components}/tds-banner.js +1 -9
  23. package/{dist/components → components}/tds-block.d.ts +1 -1
  24. package/{dist/components → components}/tds-block.js +1 -0
  25. package/{dist/components → components}/tds-body-cell.d.ts +1 -1
  26. package/{dist/components → components}/tds-body-cell.js +1 -0
  27. package/{dist/components → components}/tds-breadcrumb.d.ts +1 -1
  28. package/{dist/components → components}/tds-breadcrumb.js +1 -0
  29. package/{dist/components → components}/tds-breadcrumbs.d.ts +1 -1
  30. package/{dist/components → components}/tds-breadcrumbs.js +1 -0
  31. package/{dist/components → components}/tds-button.d.ts +1 -1
  32. package/{dist/components → components}/tds-button.js +1 -0
  33. package/{dist/components → components}/tds-card.d.ts +1 -1
  34. package/{dist/components → components}/tds-card.js +1 -0
  35. package/{dist/components → components}/tds-checkbox.d.ts +1 -1
  36. package/{dist/components → components}/tds-chip.d.ts +1 -1
  37. package/{dist/components → components}/tds-chip.js +1 -0
  38. package/{dist/components → components}/tds-core-header-item.d.ts +1 -1
  39. package/{dist/components → components}/tds-datetime.d.ts +1 -1
  40. package/{dist/components → components}/tds-datetime.js +9 -8
  41. package/{dist/components → components}/tds-divider.d.ts +1 -1
  42. package/{dist/components → components}/tds-dropdown-option.d.ts +1 -1
  43. package/{dist/components → components}/tds-dropdown-option.js +6 -5
  44. package/{dist/components → components}/tds-dropdown.d.ts +1 -1
  45. package/{dist/components → components}/tds-dropdown.js +18 -17
  46. package/{dist/components → components}/tds-folder-tab.d.ts +1 -1
  47. package/{dist/components → components}/tds-folder-tab.js +2 -1
  48. package/{dist/components → components}/tds-folder-tabs.d.ts +1 -1
  49. package/{dist/components → components}/tds-folder-tabs.js +1 -0
  50. package/{dist/components → components}/tds-footer-group.d.ts +1 -1
  51. package/{dist/components → components}/tds-footer-group.js +3 -2
  52. package/{dist/components → components}/tds-footer-item.d.ts +1 -1
  53. package/{dist/components → components}/tds-footer-item.js +1 -0
  54. package/{dist/components → components}/tds-footer.d.ts +1 -1
  55. package/{dist/components → components}/tds-footer.js +1 -0
  56. package/{dist/components → components}/tds-header-brand-symbol.d.ts +1 -1
  57. package/{dist/components → components}/tds-header-brand-symbol.js +1 -0
  58. package/{dist/components → components}/tds-header-cell.d.ts +1 -1
  59. package/{dist/components → components}/tds-header-cell.js +1 -0
  60. package/{dist/components → components}/tds-header-dropdown-list-item.d.ts +1 -1
  61. package/{dist/components → components}/tds-header-dropdown-list-user.d.ts +1 -1
  62. package/{dist/components → components}/tds-header-dropdown-list-user.js +1 -0
  63. package/{dist/components → components}/tds-header-dropdown-list.d.ts +1 -1
  64. package/{dist/components → components}/tds-header-dropdown.d.ts +1 -1
  65. package/{dist/components → components}/tds-header-dropdown.js +1 -0
  66. package/{dist/components → components}/tds-header-hamburger.d.ts +1 -1
  67. package/{dist/components → components}/tds-header-hamburger.js +1 -0
  68. package/{dist/components → components}/tds-header-item.d.ts +1 -1
  69. package/{dist/components → components}/tds-header-launcher-button.d.ts +1 -1
  70. package/{dist/components → components}/tds-header-launcher-grid-item.d.ts +1 -1
  71. package/{dist/components → components}/tds-header-launcher-grid-item.js +1 -0
  72. package/{dist/components → components}/tds-header-launcher-grid-title.d.ts +1 -1
  73. package/{dist/components → components}/tds-header-launcher-grid-title.js +1 -0
  74. package/{dist/components → components}/tds-header-launcher-grid.d.ts +1 -1
  75. package/{dist/components → components}/tds-header-launcher-grid.js +1 -0
  76. package/{dist/components → components}/tds-header-launcher-list-item.d.ts +1 -1
  77. package/{dist/components → components}/tds-header-launcher-list-item.js +1 -0
  78. package/{dist/components → components}/tds-header-launcher-list-title.d.ts +1 -1
  79. package/{dist/components → components}/tds-header-launcher-list-title.js +1 -0
  80. package/{dist/components → components}/tds-header-launcher-list.d.ts +1 -1
  81. package/{dist/components → components}/tds-header-launcher-list.js +1 -0
  82. package/{dist/components → components}/tds-header-launcher.d.ts +1 -1
  83. package/{dist/components → components}/tds-header-launcher.js +1 -0
  84. package/{dist/components → components}/tds-header-title.d.ts +1 -1
  85. package/{dist/components → components}/tds-header-title.js +1 -0
  86. package/{dist/components → components}/tds-header.d.ts +1 -1
  87. package/{dist/components → components}/tds-header.js +1 -0
  88. package/{dist/components → components}/tds-icon.d.ts +1 -1
  89. package/{dist/components → components}/tds-inline-tab.d.ts +1 -1
  90. package/{dist/components → components}/tds-inline-tab.js +2 -1
  91. package/{dist/components → components}/tds-inline-tabs.d.ts +1 -1
  92. package/{dist/components → components}/tds-inline-tabs.js +1 -0
  93. package/{dist/components → components}/tds-link.d.ts +1 -1
  94. package/{dist/components → components}/tds-link.js +4 -3
  95. package/{dist/components → components}/tds-message.d.ts +1 -1
  96. package/{dist/components → components}/tds-message.js +4 -3
  97. package/{dist/components → components}/tds-modal.d.ts +1 -1
  98. package/{dist/components → components}/tds-modal.js +1 -0
  99. package/{dist/components → components}/tds-navigation-tab.d.ts +1 -1
  100. package/{dist/components → components}/tds-navigation-tab.js +2 -1
  101. package/{dist/components → components}/tds-navigation-tabs.d.ts +1 -1
  102. package/{dist/components → components}/tds-navigation-tabs.js +1 -0
  103. package/{dist/components → components}/tds-popover-canvas.d.ts +1 -1
  104. package/{dist/components → components}/tds-popover-core.d.ts +1 -1
  105. package/{dist/components → components}/tds-popover-menu-item.d.ts +1 -1
  106. package/{dist/components → components}/tds-popover-menu-item.js +1 -0
  107. package/{dist/components → components}/tds-popover-menu.d.ts +1 -1
  108. package/{dist/components → components}/tds-popover-menu.js +1 -0
  109. package/{dist/components → components}/tds-radio-button.d.ts +1 -1
  110. package/{dist/components → components}/tds-radio-button.js +1 -0
  111. package/{dist/components → components}/tds-side-menu-close-button.d.ts +1 -1
  112. package/{dist/components → components}/tds-side-menu-close-button.js +1 -0
  113. package/{dist/components → components}/tds-side-menu-collapse-button.d.ts +1 -1
  114. package/{dist/components → components}/tds-side-menu-collapse-button.js +1 -0
  115. package/{dist/components → components}/tds-side-menu-dropdown-list-item.d.ts +1 -1
  116. package/{dist/components → components}/tds-side-menu-dropdown-list-item.js +1 -0
  117. package/{dist/components → components}/tds-side-menu-dropdown-list.d.ts +1 -1
  118. package/{dist/components → components}/tds-side-menu-dropdown-list.js +1 -0
  119. package/{dist/components → components}/tds-side-menu-dropdown.d.ts +1 -1
  120. package/{dist/components → components}/tds-side-menu-dropdown.js +1 -0
  121. package/{dist/components → components}/tds-side-menu-item.d.ts +1 -1
  122. package/{dist/components → components}/tds-side-menu-overlay.d.ts +1 -1
  123. package/{dist/components → components}/tds-side-menu-overlay.js +1 -0
  124. package/{dist/components → components}/tds-side-menu-user-image.d.ts +1 -1
  125. package/{dist/components → components}/tds-side-menu-user-label.d.ts +1 -1
  126. package/{dist/components → components}/tds-side-menu-user.d.ts +1 -1
  127. package/{dist/components → components}/tds-side-menu-user.js +1 -0
  128. package/{dist/components → components}/tds-side-menu.d.ts +1 -1
  129. package/{dist/components → components}/tds-side-menu.js +1 -0
  130. package/{dist/components → components}/tds-slider.d.ts +1 -1
  131. package/{dist/components → components}/tds-slider.js +1 -0
  132. package/{dist/components → components}/tds-spinner.d.ts +1 -1
  133. package/{dist/components → components}/tds-spinner.js +1 -0
  134. package/{dist/components → components}/tds-step.d.ts +1 -1
  135. package/{dist/components → components}/tds-step.js +1 -0
  136. package/{dist/components → components}/tds-stepper.d.ts +1 -1
  137. package/{dist/components → components}/tds-stepper.js +1 -0
  138. package/{dist/components → components}/tds-table-body-row-expandable.d.ts +1 -1
  139. package/{dist/components → components}/tds-table-body-row-expandable.js +1 -0
  140. package/{dist/components → components}/tds-table-body-row.d.ts +1 -1
  141. package/{dist/components → components}/tds-table-body-row.js +1 -0
  142. package/{dist/components → components}/tds-table-body.d.ts +1 -1
  143. package/{dist/components → components}/tds-table-body.js +1 -0
  144. package/{dist/components → components}/tds-table-footer.d.ts +1 -1
  145. package/{dist/components → components}/tds-table-footer.js +2 -1
  146. package/{dist/components → components}/tds-table-header.d.ts +1 -1
  147. package/{dist/components → components}/tds-table-header.js +1 -0
  148. package/{dist/components → components}/tds-table-toolbar.d.ts +1 -1
  149. package/{dist/components → components}/tds-table-toolbar.js +1 -0
  150. package/{dist/components → components}/tds-table.d.ts +1 -1
  151. package/{dist/components → components}/tds-table.js +1 -0
  152. package/{dist/components → components}/tds-text-field.d.ts +1 -1
  153. package/{dist/components → components}/tds-text-field.js +12 -11
  154. package/{dist/components → components}/tds-textarea.d.ts +1 -1
  155. package/{dist/components → components}/tds-textarea.js +11 -10
  156. package/{dist/components → components}/tds-toast.d.ts +1 -1
  157. package/{dist/components → components}/tds-toast.js +3 -2
  158. package/{dist/components → components}/tds-toggle.d.ts +1 -1
  159. package/{dist/components → components}/tds-toggle.js +1 -0
  160. package/{dist/components → components}/tds-tooltip.d.ts +1 -1
  161. package/{dist/components → components}/tds-tooltip.js +1 -0
  162. package/dist/cjs/tds-accordion-item.cjs.entry.js +5 -5
  163. package/dist/cjs/tds-banner.cjs.entry.js +0 -9
  164. package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
  165. package/dist/cjs/tds-datetime.cjs.entry.js +8 -8
  166. package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -5
  167. package/dist/cjs/tds-dropdown.cjs.entry.js +17 -17
  168. package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
  169. package/dist/cjs/tds-footer-group.cjs.entry.js +2 -2
  170. package/dist/cjs/tds-icon.cjs.entry.js +1 -1
  171. package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
  172. package/dist/cjs/tds-link.cjs.entry.js +3 -3
  173. package/dist/cjs/tds-message.cjs.entry.js +3 -3
  174. package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
  175. package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
  176. package/dist/cjs/tds-text-field.cjs.entry.js +11 -11
  177. package/dist/cjs/tds-textarea.cjs.entry.js +10 -10
  178. package/dist/cjs/tds-toast.cjs.entry.js +2 -2
  179. package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -6
  180. package/dist/collection/components/accordion/accordion.stories.js +21 -21
  181. package/dist/collection/components/badge/badge.stories.js +30 -30
  182. package/dist/collection/components/banner/banner.js +2 -25
  183. package/dist/collection/components/banner/banner.stories.js +16 -19
  184. package/dist/collection/components/block/block.stories.js +9 -9
  185. package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +12 -12
  186. package/dist/collection/components/button/button.stories.js +26 -26
  187. package/dist/collection/components/card/card.js +2 -2
  188. package/dist/collection/components/card/card.stories.js +31 -31
  189. package/dist/collection/components/checkbox/checkbox.css +14 -0
  190. package/dist/collection/components/checkbox/checkbox.js +1 -1
  191. package/dist/collection/components/checkbox/checkbox.stories.js +22 -22
  192. package/dist/collection/components/chip/chip.js +5 -5
  193. package/dist/collection/components/chip/chip.stories.js +93 -93
  194. package/dist/collection/components/datetime/datetime.js +8 -8
  195. package/dist/collection/components/datetime/datetime.stories.js +40 -40
  196. package/dist/collection/components/divider/divider.stories.js +4 -4
  197. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +4 -4
  198. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -5
  199. package/dist/collection/components/dropdown/dropdown.js +18 -18
  200. package/dist/collection/components/dropdown/dropdown.stories.js +57 -57
  201. package/dist/collection/components/footer/footer-group/footer-group.js +2 -2
  202. package/dist/collection/components/footer/footer.stories.js +93 -93
  203. package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -1
  204. package/dist/collection/components/header/header-item/header-item.js +1 -1
  205. package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -1
  206. package/dist/collection/components/header/header.stories.js +31 -31
  207. package/dist/collection/components/icon/icon.stories.js +2 -2
  208. package/dist/collection/components/icon/iconsArray.js +115 -115
  209. package/dist/collection/components/link/link.js +3 -3
  210. package/dist/collection/components/link/link.stories.js +9 -9
  211. package/dist/collection/components/message/message.js +3 -3
  212. package/dist/collection/components/message/message.stories.js +18 -18
  213. package/dist/collection/components/modal/modal.js +1 -1
  214. package/dist/collection/components/modal/modal.stories.js +27 -27
  215. package/dist/collection/components/popover-canvas/popover-canvas.js +1 -1
  216. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +33 -33
  217. package/dist/collection/components/popover-core/popover-core.js +1 -1
  218. package/dist/collection/components/popover-menu/popover-menu.js +1 -1
  219. package/dist/collection/components/popover-menu/popover-menu.stories.js +60 -60
  220. package/dist/collection/components/radio-button/radio-button.js +2 -2
  221. package/dist/collection/components/radio-button/radio-button.stories.js +44 -44
  222. package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
  223. package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
  224. package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +1 -1
  225. package/dist/collection/components/side-menu/side-menu.js +4 -4
  226. package/dist/collection/components/side-menu/side-menu.stories.js +143 -143
  227. package/dist/collection/components/slider/slider.js +1 -1
  228. package/dist/collection/components/slider/slider.stories.js +38 -38
  229. package/dist/collection/components/spinner/spinner.stories.js +5 -5
  230. package/dist/collection/components/stepper/stepper.js +2 -2
  231. package/dist/collection/components/stepper/stepper.stories.js +14 -14
  232. package/dist/collection/components/table/table/table.js +2 -2
  233. package/dist/collection/components/table/table-body-row/table-body-row.js +1 -1
  234. package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -1
  235. package/dist/collection/components/table/table-component-basic.stories.js +51 -51
  236. package/dist/collection/components/table/table-component-batch-actions.stories.js +58 -58
  237. package/dist/collection/components/table/table-component-custom-width.stories.js +52 -52
  238. package/dist/collection/components/table/table-component-expandable-rows.stories.js +38 -38
  239. package/dist/collection/components/table/table-component-filtering.stories.js +71 -71
  240. package/dist/collection/components/table/table-component-multiselect.stories.js +73 -73
  241. package/dist/collection/components/table/table-component-pagination.stories.js +72 -72
  242. package/dist/collection/components/table/table-component-sorting.stories.js +74 -74
  243. package/dist/collection/components/table/table-footer/table-footer.css +2 -1
  244. package/dist/collection/components/table/table-footer/table-footer.js +1 -1
  245. package/dist/collection/components/table/table-header/table-header.js +1 -1
  246. package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -3
  247. package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
  248. package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +1 -1
  249. package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
  250. package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +34 -34
  251. package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +1 -1
  252. package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
  253. package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +34 -34
  254. package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +1 -1
  255. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
  256. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +36 -36
  257. package/dist/collection/components/text-field/text-field.js +12 -12
  258. package/dist/collection/components/text-field/text-field.stories.js +45 -45
  259. package/dist/collection/components/textarea/textarea.js +10 -10
  260. package/dist/collection/components/textarea/textarea.stories.js +40 -40
  261. package/dist/collection/components/toast/toast.js +3 -3
  262. package/dist/collection/components/toast/toast.stories.js +15 -15
  263. package/dist/collection/components/toggle/toggle.js +1 -1
  264. package/dist/collection/components/toggle/toggle.stories.js +17 -17
  265. package/dist/collection/components/tooltip/tooltip.stories.js +33 -33
  266. package/dist/collection/stories/Installation/installation.stories.js +205 -205
  267. package/dist/collection/stories/announcements/announce-tegel.stories.js +248 -248
  268. package/dist/collection/stories/announcements/prefix-change.stories.js +79 -79
  269. package/dist/collection/stories/foundations/color/color-brand.stories.js +24 -24
  270. package/dist/collection/stories/foundations/color/color-scales.stories.js +18 -18
  271. package/dist/collection/stories/foundations/color/color-semantic.stories.js +26 -26
  272. package/dist/collection/stories/foundations/grid/grid.stories.js +334 -334
  273. package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +90 -90
  274. package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +84 -84
  275. package/dist/collection/stories/foundations/typography/typography-body.stories.js +7 -7
  276. package/dist/collection/stories/foundations/typography/typography-detail.stories.js +8 -8
  277. package/dist/collection/stories/foundations/typography/typography-headline.stories.js +17 -17
  278. package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +3 -3
  279. package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +53 -53
  280. package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +227 -227
  281. package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +202 -202
  282. package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +98 -98
  283. package/dist/collection/stories/tegel.stories.js +270 -279
  284. package/dist/collection/stories/utility/color/background-color.stories.js +13 -13
  285. package/dist/collection/stories/utility/color/text-color.stories.js +11 -11
  286. package/dist/esm/polyfills/core-js.js +0 -0
  287. package/dist/esm/polyfills/dom.js +0 -0
  288. package/dist/esm/polyfills/es5-html-element.js +0 -0
  289. package/dist/esm/polyfills/index.js +0 -0
  290. package/dist/esm/polyfills/system.js +0 -0
  291. package/dist/esm/tds-accordion-item.entry.js +5 -5
  292. package/dist/esm/tds-banner.entry.js +0 -9
  293. package/dist/esm/tds-checkbox.entry.js +1 -1
  294. package/dist/esm/tds-datetime.entry.js +8 -8
  295. package/dist/esm/tds-dropdown-option.entry.js +5 -5
  296. package/dist/esm/tds-dropdown.entry.js +17 -17
  297. package/dist/esm/tds-folder-tab.entry.js +1 -1
  298. package/dist/esm/tds-footer-group.entry.js +2 -2
  299. package/dist/esm/tds-icon.entry.js +1 -1
  300. package/dist/esm/tds-inline-tab.entry.js +1 -1
  301. package/dist/esm/tds-link.entry.js +3 -3
  302. package/dist/esm/tds-message.entry.js +3 -3
  303. package/dist/esm/tds-navigation-tab.entry.js +1 -1
  304. package/dist/esm/tds-table-footer.entry.js +1 -1
  305. package/dist/esm/tds-text-field.entry.js +11 -11
  306. package/dist/esm/tds-textarea.entry.js +10 -10
  307. package/dist/esm/tds-toast.entry.js +2 -2
  308. package/dist/tegel/p-2efaac74.entry.js +1 -0
  309. package/dist/tegel/{p-9b560c6d.entry.js → p-67fa6245.entry.js} +1 -1
  310. package/dist/tegel/p-e9ae12d7.entry.js +1 -0
  311. package/dist/tegel/{p-52edb8b7.entry.js → p-e9b8d1d5.entry.js} +1 -1
  312. package/dist/tegel/tegel.css +2 -4
  313. package/dist/tegel/tegel.esm.js +1 -1
  314. package/dist/types/components/banner/banner.d.ts +0 -5
  315. package/dist/types/components/text-field/text-field.d.ts +1 -1
  316. package/dist/types/components.d.ts +58 -64
  317. package/dist/types/global.d.ts +2 -2
  318. package/package.json +81 -80
  319. package/dist/components/checkbox.js +0 -74
  320. package/dist/tegel/p-cf75e7c1.entry.js +0 -1
  321. package/dist/tegel/p-faaa50c2.entry.js +0 -1
  322. /package/{dist/components → components}/index.d.ts +0 -0
  323. /package/{dist/components → components}/index.js +0 -0
  324. /package/{dist/components → components}/tds-checkbox.js +0 -0
  325. /package/{dist/components → components}/tds-core-header-item.js +0 -0
  326. /package/{dist/components → components}/tds-divider.js +0 -0
  327. /package/{dist/components → components}/tds-header-dropdown-list-item.js +0 -0
  328. /package/{dist/components → components}/tds-header-dropdown-list.js +0 -0
  329. /package/{dist/components → components}/tds-header-item.js +0 -0
  330. /package/{dist/components → components}/tds-header-launcher-button.js +0 -0
  331. /package/{dist/components → components}/tds-icon.js +0 -0
  332. /package/{dist/components → components}/tds-popover-canvas.js +0 -0
  333. /package/{dist/components → components}/tds-popover-core.js +0 -0
  334. /package/{dist/components → components}/tds-side-menu-item.js +0 -0
  335. /package/{dist/components → components}/tds-side-menu-user-image.js +0 -0
  336. /package/{dist/components → components}/tds-side-menu-user-label.js +0 -0
  337. /package/{dist/components → components}/utils.js +0 -0
@@ -10,284 +10,275 @@ const meta = {
10
10
  };
11
11
  export default meta;
12
12
  export const TegelDesignSystem = {
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
- <tds-banner type="information" icon="information" header="We are moving away from the sdds prefix!">
40
- <tds-link slot="bottom">
41
- <a target="_self" href="?path=/story/intro-announcements--prefix-change">
42
- Read more here!
43
- </a>
44
- </tds-link>
45
- </tds-banner>
46
-
47
- <article class="tds-body-01">
48
- <section>
49
- <h1 class="tds-headline-02 mb-72">Tegel Design System</h1>
50
- <p class="tds-paragraph-01 mb-72">The design system supports the design and development of digital solutions at
51
- Scania. The purpose is to secure a
52
- coherent, premium brand and user experience across all of Scania's digital touchpoints.
53
- </p>
54
-
55
- <tds-link>
56
- <a href="https://tegel.scania.com/">
57
- https://tegel.scania.com/
58
- </a>
59
- </tds-link>
60
- </section>
61
- <section>
62
- <h4 class="tds-u-mb2">Status</h4>
63
-
64
- <p>
65
- This package is currently in a <b>pre-beta</b> stage. We are now working hard towards a 1.0-beta release,
66
- but if
67
- you
68
- want to try out the package today you can! It's available via <tds-link><a href="https://www.npmjs.com/package/@scania/tegel">NPM</a></tds-link> and can be installed using the
69
- installation
70
- guide which you can find <tds-link><a target="_self" href="?path=/story/intro-installation--page">here.</a></tds-link>
71
- </p>
72
-
73
- </section>
74
- <section>
75
- <h4 class="tds-u-mb2">@scania/tegel 🧱</h4>
76
-
77
- <p>
78
- <b>TLDR;</b> The new @scania/tegel package is an improvement and continuation of the previous
79
- @scania/component,
80
- @scania/theme-light, and @scania/icons packages. It simplifies the installation process and ships with types
81
- which offers type safety and improves the developer experience with intellisence and autocompletion.
82
- </p>
83
- <p>
84
- The new
85
- package includes all components as web components, removes the old "native" components and makes the
86
- installation and updates easier. The current prefix for components, CSS variables, and utility classes -
87
- "sdds",
88
- will be changed. We have also created a new Storybook for @scania/tegel, which allows developers and
89
- designers
90
- to preview all variants of the components by changing the props.
91
- </p>
92
- </section>
93
- <section>
94
- <h4 class="tds-u-mb2">
95
- What is @scania/tegel? 🧱
96
- </h4>
97
-
98
-
99
-
100
-
101
- <p>
102
- In short, the new @scania/tegel package is an improvement and continuation of the previous
103
- @scania/component,
104
- @scania/theme-light and @scania/icons packages. These three packages have now instead been merged into one
105
- to
106
- simplify both the installation process, but also to make it easier for us to maintain and keep improving
107
- going
108
- forward.
109
- </p>
110
- <p>
111
- The new @scania/tegel is also shipped with types. This makes integrations in other Stenciljs
112
- projects
113
- possible, but also improves the developer experience with intellisence and autocompletion, and of course
114
- type
115
- safety. In this work we have also bumped the Stenciljs version (the compiler used to build our components)
116
- to
117
- the
118
- latest major.
119
- </p>
120
- <p>
121
- And we have saved the best for last, @scania/tegel is 100% web component. Previous packages
122
- had
123
- some
124
- web components, but also "native" components, these were utility classes that could be added to a predefined
125
- HTML
126
- structure to create the look and feel of Tegel. Now we are making a big effort to provide all components as
127
- web
128
- components.
129
- </p>
130
- </section>
131
- <section>
132
- <h4 class="tds-u-mb2">
133
- What improvements does @scania/tegel have? 🚀
134
- </h4>
135
-
136
-
137
- <p>
138
- So, what we are striving for in the new package is:
139
-
140
- <ul>
141
- <li>Easy installation and updates</li>
142
- <li>A clear and intuitive API</li>
143
- <li>Types to be included in package bundle</li>
144
- <li>All input elements to work within a form</li>
145
- <li>Only web components</li>
146
- <li>Dark mode</li>
147
- <li>Improved interactive documentation - Storybook</li>
148
- </ul>
149
-
150
- <p>
151
- With this new package we are creating a foundation for us to stand on going forward. We will keep improving
152
- and
153
- maintaining it after its initial release and with the changes we are introducing now we hope to be able to
154
- do
155
- this as
156
- smoothly as possible.
157
- </p>
158
-
159
-
160
-
161
- </p>
162
- </section>
163
- <section>
164
- <h4 class="tds-u-mb2">
165
- Removing "native" components
166
- </h4>
167
-
168
-
169
- <p>
170
- With this new package we are also removing our "native" components and instead introducing web component
171
- counterparts to these. This means that every component that was available as a "native" component in
172
- @scania/components will have a web component alternative in @scania/tegel. This removal will be done in our
173
- next
174
- release of @scania/tegel. This change does not change the current @scania/components package.
175
-
176
- </p>
177
- </section>
178
- <section>
179
- <h4 class="tds-u-mb2">
180
- Prefix change 🔁
181
- </h4>
182
-
183
-
184
- <tds-link class="tds-u-mt2 tds-body-01">
185
- <a target="_self" href="?path=/story/intro-announcements--prefix-change">Read more here.</a>
186
- </tds-link>
187
- <p>
188
- We are also working on a prefix change for our new package. Instead of "sdds" the components, CSS variables
189
- and
190
- utility classes will instead be prefixed with something else, for example:
191
- <ul>
192
- <li> <{prefix}-button /> </li>
193
- <li> --{prefix}-button-color </li>
194
- <li>.{prefix}-u-flex</li>
195
- </ul>
196
- <p>
197
- This is done to have a clear distinction between what was @scania/components and what is @scania/tegel. What
198
- it
199
- also
200
- does is that it enables the two solutions to be installed alongside each other. This means that your
201
- migration
202
- can
203
- be
204
- done incrementally.
205
- </p>
206
- </p>
207
- </section>
208
- <section>
209
- <h4 class="tds-u-mb1">
210
- Migration docs 📜
211
- </h4>
212
-
213
-
214
- <p>
215
- Migrations are always hard, but during the last couple of months we have put a lot of effort into creating a
216
- "migration document", which explains and highlights all the changes in our API from version 4 of
217
- @scania/components
218
- and @scania/tegel. We hope that this will ease your migration to our new package. The migration document
219
- will
220
- continue to be updated until we release 1.0 and is available
221
- <tds-link><a target="_self"
222
- href="?path=/story/intro-migrating-from-components-v4--page">here.</a></tds-link>
223
- </p>
224
- </section>
225
- <section>
226
- <h4 class="tds-u-mb1">
227
- Support for @scania/components 🤳
228
- </h4>
229
-
230
-
231
- <p>
232
- We will keep supporting @scania/components for a short while going forward, however we see no major
233
- updates
234
- being
235
- done to the package. This means we will keep answering and helping with support questions and do
236
- minor
237
- releases with
238
- bugfixes, but we are not introducing any new features.
239
-
240
- </p>
241
- </section>
242
- <section>
243
- <h4 class="tds-u-mb1">
244
- When can I try our @scania/tegel? 🧪
245
- </h4>
246
-
247
-
248
- <p>
249
- Today! Some of you have already tried this package out, and provided us with valuable feedback,
250
- thank
251
- you!
252
- But
253
- please note that this package is still in beta and breaking changes are to be expected before we
254
- release
255
- 1.0. The
256
- package is available via npm and an installation guide is available <tds-link><a
257
- href="https://www.npmjs.com/package/@scania/tegel">here.</a></tds-link>
258
-
259
- </p>
260
- </section>
261
- <section>
262
-
263
- <h4 class="tds-u-mb1">
264
- Want to get in touch? 📞
265
- </h4>
266
-
267
-
268
- <p>
269
- Awesome! We are available via teams and have two support channels. One for
270
- <tds-link>
271
- <a
272
- 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>
273
- </tds-link>
274
- and one for
275
- <tds-link>
276
- <a
277
- 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>
278
-
279
- </tds-link>
280
- If you want to submit a bug report or feature request, please do so via our
281
- <tds-link>
282
- <a href="https://github.com/scania-digital-design-system/tegel/issues">GitHub</a>
283
- </tds-link>.
284
-
285
- <p>
286
- All the best,<br />
287
- The Tegel Team.
288
- </p>
289
- </p>
290
- </section>
291
- </article>
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
+ <article class="tds-body-01">
39
+ <section>
40
+ <h1 class="tds-headline-02 mb-72">Tegel Design System</h1>
41
+ <p class="tds-paragraph-01 mb-72">The design system supports the design and development of digital solutions at
42
+ Scania. The purpose is to secure a
43
+ coherent, premium brand and user experience across all of Scania's digital touchpoints.
44
+ </p>
45
+
46
+ <tds-link>
47
+ <a href="https://tegel.scania.com/">
48
+ https://tegel.scania.com/
49
+ </a>
50
+ </tds-link>
51
+ </section>
52
+ <section>
53
+ <h4 class="tds-u-mb2">Status</h4>
54
+
55
+ <p>
56
+ This package is currently in a <b>beta</b> stage. We are now working hard towards a 1.0 release,
57
+ but if
58
+ you
59
+ want to try out the package today you can! It's available via <tds-link><a href="https://www.npmjs.com/package/@scania/tegel">NPM</a></tds-link> and can be installed using the
60
+ installation
61
+ guide which you can find <tds-link><a target="_self" href="?path=/story/intro-installation--page">here.</a></tds-link>
62
+ </p>
63
+
64
+ </section>
65
+ <section>
66
+ <h4 class="tds-u-mb2">@scania/tegel 🧱</h4>
67
+
68
+ <p>
69
+ <b>TLDR;</b> The new @scania/tegel package is an improvement and continuation of the previous
70
+ @scania/component,
71
+ @scania/theme-light, and @scania/icons packages. It simplifies the installation process and ships with types
72
+ which offers type safety and improves the developer experience with intellisence and autocompletion.
73
+ </p>
74
+ <p>
75
+ The new
76
+ package includes all components as web components, removes the old "native" components and makes the
77
+ installation and updates easier. The current prefix for components, CSS variables, and utility classes -
78
+ "sdds",
79
+ will be changed. We have also created a new Storybook for @scania/tegel, which allows developers and
80
+ designers
81
+ to preview all variants of the components by changing the props.
82
+ </p>
83
+ </section>
84
+ <section>
85
+ <h4 class="tds-u-mb2">
86
+ What is @scania/tegel? 🧱
87
+ </h4>
88
+
89
+
90
+
91
+
92
+ <p>
93
+ In short, the new @scania/tegel package is an improvement and continuation of the previous
94
+ @scania/component,
95
+ @scania/theme-light and @scania/icons packages. These three packages have now instead been merged into one
96
+ to
97
+ simplify both the installation process, but also to make it easier for us to maintain and keep improving
98
+ going
99
+ forward.
100
+ </p>
101
+ <p>
102
+ The new @scania/tegel is also shipped with types. This makes integrations in other Stenciljs
103
+ projects
104
+ possible, but also improves the developer experience with intellisence and autocompletion, and of course
105
+ type
106
+ safety. In this work we have also bumped the Stenciljs version (the compiler used to build our components)
107
+ to
108
+ the
109
+ latest major.
110
+ </p>
111
+ <p>
112
+ And we have saved the best for last, @scania/tegel is 100% web component. Previous packages
113
+ had
114
+ some
115
+ web components, but also "native" components, these were utility classes that could be added to a predefined
116
+ HTML
117
+ structure to create the look and feel of Tegel. Now we are making a big effort to provide all components as
118
+ web
119
+ components.
120
+ </p>
121
+ </section>
122
+ <section>
123
+ <h4 class="tds-u-mb2">
124
+ What improvements does @scania/tegel have? 🚀
125
+ </h4>
126
+
127
+
128
+ <p>
129
+ So, what we are striving for in the new package is:
130
+
131
+ <ul>
132
+ <li>Easy installation and updates</li>
133
+ <li>A clear and intuitive API</li>
134
+ <li>Types to be included in package bundle</li>
135
+ <li>All input elements to work within a form</li>
136
+ <li>Only web components</li>
137
+ <li>Dark mode</li>
138
+ <li>Improved interactive documentation - Storybook</li>
139
+ </ul>
140
+
141
+ <p>
142
+ With this new package we are creating a foundation for us to stand on going forward. We will keep improving
143
+ and
144
+ maintaining it after its initial release and with the changes we are introducing now we hope to be able to
145
+ do
146
+ this as
147
+ smoothly as possible.
148
+ </p>
149
+
150
+
151
+
152
+ </p>
153
+ </section>
154
+ <section>
155
+ <h4 class="tds-u-mb2">
156
+ Removing "native" components ❌
157
+ </h4>
158
+
159
+
160
+ <p>
161
+ With this new package we are also removing our "native" components and instead introducing web component
162
+ counterparts to these. This means that every component that was available as a "native" component in
163
+ @scania/components will have a web component alternative in @scania/tegel. This removal will be done in our
164
+ next
165
+ release of @scania/tegel. This change does not change the current @scania/components package.
166
+
167
+ </p>
168
+ </section>
169
+ <section>
170
+ <h4 class="tds-u-mb2">
171
+ Prefix change 🔁
172
+ </h4>
173
+
174
+
175
+ <tds-link class="tds-u-mt2 tds-body-01">
176
+ <a target="_self" href="?path=/story/intro-announcements--prefix-change">Read more here.</a>
177
+ </tds-link>
178
+ <p>
179
+ We are also working on a prefix change for our new package. Instead of "sdds" the components, CSS variables
180
+ and
181
+ utility classes will instead be prefixed with something else, for example:
182
+ <ul>
183
+ <li> <{prefix}-button /> </li>
184
+ <li> --{prefix}-button-color </li>
185
+ <li>.{prefix}-u-flex</li>
186
+ </ul>
187
+ <p>
188
+ This is done to have a clear distinction between what was @scania/components and what is @scania/tegel. What
189
+ it
190
+ also
191
+ does is that it enables the two solutions to be installed alongside each other. This means that your
192
+ migration
193
+ can
194
+ be
195
+ done incrementally.
196
+ </p>
197
+ </p>
198
+ </section>
199
+ <section>
200
+ <h4 class="tds-u-mb1">
201
+ Migration docs 📜
202
+ </h4>
203
+
204
+
205
+ <p>
206
+ Migrations are always hard, but during the last couple of months we have put a lot of effort into creating a
207
+ "migration document", which explains and highlights all the changes in our API from version 4 of
208
+ @scania/components
209
+ and @scania/tegel. We hope that this will ease your migration to our new package. The migration document
210
+ will
211
+ continue to be updated until we release 1.0 and is available
212
+ <tds-link><a target="_self"
213
+ href="?path=/story/intro-migrating-from-components-v4--page">here.</a></tds-link>
214
+ </p>
215
+ </section>
216
+ <section>
217
+ <h4 class="tds-u-mb1">
218
+ Support for @scania/components 🤳
219
+ </h4>
220
+
221
+
222
+ <p>
223
+ We will keep supporting @scania/components for a short while going forward, however we see no major
224
+ updates
225
+ being
226
+ done to the package. This means we will keep answering and helping with support questions and do
227
+ minor
228
+ releases with
229
+ bugfixes, but we are not introducing any new features.
230
+
231
+ </p>
232
+ </section>
233
+ <section>
234
+ <h4 class="tds-u-mb1">
235
+ When can I try our @scania/tegel? 🧪
236
+ </h4>
237
+
238
+
239
+ <p>
240
+ Today! Some of you have already tried this package out, and provided us with valuable feedback,
241
+ thank
242
+ you!
243
+ But
244
+ please note that this package is still in beta and breaking changes are to be expected before we
245
+ release
246
+ 1.0. The
247
+ package is available via npm and an installation guide is available <tds-link><a
248
+ href="https://www.npmjs.com/package/@scania/tegel">here.</a></tds-link>
249
+
250
+ </p>
251
+ </section>
252
+ <section>
253
+
254
+ <h4 class="tds-u-mb1">
255
+ Want to get in touch? 📞
256
+ </h4>
257
+
258
+
259
+ <p>
260
+ Awesome! We are available via teams and have two support channels. One for
261
+ <tds-link>
262
+ <a
263
+ 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>
264
+ </tds-link>
265
+ and one for
266
+ <tds-link>
267
+ <a
268
+ 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>
269
+
270
+ </tds-link>
271
+ If you want to submit a bug report or feature request, please do so via our
272
+ <tds-link>
273
+ <a href="https://github.com/scania-digital-design-system/tegel/issues">GitHub</a>
274
+ </tds-link>.
275
+
276
+ <p>
277
+ All the best,<br />
278
+ The Tegel Team.
279
+ </p>
280
+ </p>
281
+ </section>
282
+ </article>
292
283
  `,
293
284
  };
@@ -78,19 +78,19 @@ const Template = ({ backgroundColor, greyScale, blueScale, redScale }) => {
78
78
  scale = blueScale;
79
79
  break;
80
80
  }
81
- return formatHtmlPreview(`
82
- <style>
83
- .demo-wrapper{
84
- height: 400px;
85
- width: 400px;
86
- display: flex;
87
- justify-content: center;
88
- align-items: center;
89
- }
90
- </style>
91
- <div class="tds-background-${backgroundColor}-${scale} demo-wrapper">
92
- <h1>background-color:${backgroundColor}</h1>
93
- </div>
81
+ return formatHtmlPreview(`
82
+ <style>
83
+ .demo-wrapper{
84
+ height: 400px;
85
+ width: 400px;
86
+ display: flex;
87
+ justify-content: center;
88
+ align-items: center;
89
+ }
90
+ </style>
91
+ <div class="tds-background-${backgroundColor}-${scale} demo-wrapper">
92
+ <h1>background-color:${backgroundColor}</h1>
93
+ </div>
94
94
  `);
95
95
  };
96
96
  export const BackgroundColor = Template.bind({});
@@ -78,17 +78,17 @@ const Template = ({ color, greyScale, blueScale, redScale }) => {
78
78
  scale = blueScale;
79
79
  break;
80
80
  }
81
- return formatHtmlPreview(`
82
- <style>
83
- .demo-wrapper h1 {
84
- margin: 0;
85
- width: 300px;
86
- }
87
- </style>
88
- <div class="demo-wrapper">
89
- <h1 class="tds-text-${color}-${scale}">A text ${color} heading</h1>
90
- <p class="tds-text-${color}-${scale}">A text ${color} paragraph</p>
91
- </div>
81
+ return formatHtmlPreview(`
82
+ <style>
83
+ .demo-wrapper h1 {
84
+ margin: 0;
85
+ width: 300px;
86
+ }
87
+ </style>
88
+ <div class="demo-wrapper">
89
+ <h1 class="tds-text-${color}-${scale}">A text ${color} heading</h1>
90
+ <p class="tds-text-${color}-${scale}">A text ${color} paragraph</p>
91
+ </div>
92
92
  `);
93
93
  };
94
94
  export const TextColor = Template.bind({});
File without changes