@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,386 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Grid',
4
- parameters: {
5
- layout: 'fullscreen',
6
- },
7
- args: {
8
- fluidContainer: false,
9
- padding: true,
10
- },
11
- argTypes: {
12
- fluidContainer: {
13
- name: 'Fluid container',
14
- description: 'Set container to fluid or not',
15
- control: {
16
- type: 'boolean',
17
- },
18
- },
19
- padding: {
20
- name: 'Fluid container',
21
- description: 'Toggle padding on columns',
22
- control: {
23
- type: 'boolean',
24
- },
25
- },
26
- },
27
- };
28
- // Styling for grid templates
29
- const style = formatHtmlPreview(`
30
- <style>
31
- /* Demo code for presentation purposes */
32
- .tds-container,
33
- .tds-container-fluid {
34
- background-color: #ff00009e;
35
- color: black;
36
- outline: 1px solid red;
37
- }
38
-
39
- .tds-row > div {
40
- outline: 1px solid #ef1919;
41
- background: #fbc5c5;
42
- min-height: 50px;
43
- }
44
-
45
- .tds-sidebar {
46
- background-color: rgba(255, 0, 0, 0.1);
47
- }
48
-
49
- .inside-demo {
50
- background: #ef9191;
51
- height: 100%;
52
- word-break: break-word;
53
- }
54
-
55
- .container-demo {
56
- margin-top: 16px;
57
- }
58
-
59
- </style>`);
60
- const GridTemplate = ({ fluidContainer, padding }) => formatHtmlPreview(`
61
- ${style}
62
- <h4>Grid</h4>
63
-
64
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'} ${padding === false ? 'tds-no-padding' : ''}">
65
-
66
- <div class="tds-row">
67
- <div class="tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
68
- <div class="inside-demo">12</div>
69
- </div>
70
- </div>
71
-
72
- <div class="tds-row">
73
- <div class="tds-col-max-11 tds-col-xxlg-11 tds-col-xlg-11 tds-col-lg-11 tds-col-md-11 tds-col-sm-11 tds-col-xs-11">
74
- <div class="inside-demo">11</div>
75
- </div>
76
- </div>
77
-
78
- <div class="tds-row">
79
- <div class="tds-col-max-10 tds-col-xxlg-10 tds-col-xlg-10 tds-col-lg-10 tds-col-md-10 tds-col-sm-10 tds-col-xs-10">
80
- <div class="inside-demo">10</div>
81
- </div>
82
- </div>
83
-
84
- <div class="tds-row">
85
- <div class="tds-col-max-9 tds-col-xxlg-9 tds-col-xlg-9 tds-col-lg-9 tds-col-md-9 tds-col-sm-9 tds-col-xs-9">
86
- <div class="inside-demo">9</div>
87
- </div>
88
- </div>
89
-
90
- <div class="tds-row">
91
- <div class="tds-col-max-8 tds-col-xxlg-8 tds-col-xlg-8 tds-col-lg-8 tds-col-md-8 tds-col-sm-8 tds-col-xs-8">
92
- <div class="inside-demo">8</div>
93
- </div>
94
- </div>
95
-
96
- <div class="tds-row">
97
- <div class="tds-col-max-7 tds-col-xxlg-7 tds-col-xlg-7 tds-col-lg-7 tds-col-md-7 tds-col-sm-7 tds-col-xs-7">
98
- <div class="inside-demo">7</div>
99
- </div>
100
- </div>
101
-
102
- <div class="tds-row">
103
- <div class="tds-col-max-6 tds-col-xxlg-6 tds-col-xlg-6 tds-col-lg-6 tds-col-md-6 tds-col-sm-6 tds-col-xs-6">
104
- <div class="inside-demo">6</div>
105
- </div>
106
- </div>
107
-
108
- <div class="tds-row">
109
- <div class="tds-col-max-5 tds-col-xxlg-5 tds-col-xlg-5 tds-col-lg-5 tds-col-md-5 tds-col-sm-5 tds-col-xs-5">
110
- <div class="inside-demo">5</div>
111
- </div>
112
- </div>
113
-
114
- <div class="tds-row">
115
- <div class="tds-col-max-4 tds-col-xxlg-4 tds-col-xlg-4 tds-col-lg-4 tds-col-md-4 tds-col-sm-4 tds-col-xs-4">
116
- <div class="inside-demo">4</div>
117
- </div>
118
- </div>
119
-
120
- <div class="tds-row">
121
- <div class="tds-col-max-3 tds-col-xxlg-3 tds-col-xlg-3 tds-col-lg-3 tds-col-md-3 tds-col-sm-3 tds-col-xs-3">
122
- <div class="inside-demo">3</div>
123
- </div>
124
- </div>
125
-
126
- <div class="tds-row">
127
- <div class="tds-col-max-2 tds-col-xxlg-2 tds-col-xlg-2 tds-col-lg-2 tds-col-md-2 tds-col-sm-2 tds-col-xs-2">
128
- <div class="inside-demo">2</div>
129
- </div>
130
- </div>
131
-
132
- <div class="tds-row">
133
- <div class="tds-col-max-1 tds-col-xxlg-1 tds-col-xlg-1 tds-col-lg-1 tds-col-md-1 tds-col-sm-1 tds-col-xs-1">
134
- <div class="inside-demo">1</div>
135
- </div>
136
- </div>
137
- </div>
138
- `);
139
- // Controls for the grid
140
- export const Default = GridTemplate.bind({});
141
- const GridAutoColTemplate = ({ fluidContainer, padding }) => formatHtmlPreview(`
142
- ${style}
143
-
144
- <h4>Grid Auto columns</h4>
145
- <h5>Container 1</h5>
146
-
147
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'} ${padding === false ? 'tds-no-padding' : ''}">
148
- <div class="tds-row">
149
- <div class="tds-col">
150
- <div class="inside-demo">.tds-col</div>
151
- </div>
152
- </div>
153
- </div>
154
-
155
- <h5>Container 2</h5>
156
-
157
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'} ${padding === false ? 'tds-no-padding' : ''}">
158
- <div class="tds-row">
159
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
160
- <div class="inside-demo">.tds-col</div>
161
- </div>
162
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
163
- <div class="inside-demo">.tds-col</div>
164
- </div>
165
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
166
- <div class="inside-demo">.tds-col</div>
167
- </div>
168
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
169
- <div class="inside-demo">.tds-col</div>
170
- </div>
171
- </div>
172
- </div>
173
-
174
- <h5>Container 3</h5>
175
-
176
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'} ${padding === false ? 'tds-no-padding' : ''}">
177
- <div class="tds-row">
178
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
179
- <div class="inside-demo">.tds-col</div>
180
- </div>
181
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
182
- <div class="inside-demo">.tds-col</div>
183
- </div>
184
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
185
- <div class="inside-demo">.tds-col</div>
186
- </div>
187
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
188
- <div class="inside-demo">.tds-col</div>
189
- </div>
190
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
191
- <div class="inside-demo">.tds-col</div>
192
- </div>
193
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
194
- <div class="inside-demo">.tds-col</div>
195
- </div>
196
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
197
- <div class="inside-demo">.tds-col</div>
198
- </div>
199
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
200
- <div class="inside-demo">.tds-col</div>
201
- </div>
202
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
203
- <div class="inside-demo">.tds-col</div>
204
- </div>
205
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
206
- <div class="inside-demo">.tds-col</div>
207
- </div>
208
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
209
- <div class="inside-demo">.tds-col</div>
210
- </div>
211
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
212
- <div class="inside-demo">.tds-col</div>
213
- </div>
214
- </div>
215
- </div>
216
- `);
217
- export const Auto = GridAutoColTemplate.bind({});
218
- const GridPushTemplate = ({ fluidContainer, collapse, padding }) => formatHtmlPreview(`
219
- ${style}
220
-
221
- <h4>Grid Push</h4>
222
-
223
- <div class="tds-push">
224
- <div class="tds-sidebar ${collapse ? 'tds-sidebar-collapse' : ''}">
225
- </div>
226
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'} ${padding === false ? 'tds-no-padding' : ''}">
227
- <div class="tds-row">
228
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
229
- <div class="inside-demo">1</div>
230
- </div>
231
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
232
- <div class="inside-demo">1</div>
233
- </div>
234
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
235
- <div class="inside-demo">1</div>
236
- </div>
237
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
238
- <div class="inside-demo">1</div>
239
- </div>
240
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
241
- <div class="inside-demo">1</div>
242
- </div>
243
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
244
- <div class="inside-demo">1</div>
245
- </div>
246
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
247
- <div class="inside-demo">1</div>
248
- </div>
249
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
250
- <div class="inside-demo">1</div>
251
- </div>
252
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
253
- <div class="inside-demo">1</div>
254
- </div>
255
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
256
- <div class="inside-demo">1</div>
257
- </div>
258
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
259
- <div class="inside-demo">1</div>
260
- </div>
261
- <div class="tds-col-max tds-col-xxlg tds-col-xlg tds-col-lg tds-col-md tds-col-sm tds-col-xs">
262
- <div class="inside-demo">1</div>
263
- </div>
264
- </div>
265
- </div>
266
- </div>
267
- `);
268
- export const Push = GridPushTemplate.bind({});
269
- Push.args = {
270
- collapse: false,
271
- };
272
- const GridOffsetTemplate = ({ fluidContainer, padding }) => formatHtmlPreview(`
273
- ${style}
274
-
275
- <h4>Grid Offset</h4>
276
-
277
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'} ${padding === false ? 'tds-no-padding' : ''}">
278
- <div class="tds-row">
279
- <div class="tds-col-max-1 tds-col-max-2-offset tds-col-xxlg-1 tds-col-xxlg-2-offset tds-col-xlg-1 tds-col-xlg-2-offset tds-col-lg-1 tds-col-lg-2-offset tds-col-md-1 tds-col-md-2-offset tds-col-sm-1 tds-col-sm-2-offset tds-col-xs-1 tds-col-xs-2-offset">
280
- <div class="inside-demo">Offset</div>
281
- </div>
282
- <div class="tds-col-max-1 tds-col-max-2-offset tds-col-xxlg-1 tds-col-xxlg-2-offset tds-col-xlg-1 tds-col-xlg-2-offset tds-col-lg-1 tds-col-lg-2-offset tds-col-md-1 tds-col-md-2-offset tds-col-sm-1 tds-col-sm-2-offset tds-col-xs-1 tds-col-xs-2-offset">
283
- <div class="inside-demo">Offset</div>
284
- </div>
285
- <div class="tds-col-max-2 tds-col-max-2-offset tds-col-xxlg-2 tds-col-xxlg-2-offset tds-col-xlg-2 tds-col-xlg-2-offset tds-col-lg-2 tds-col-lg-2-offset tds-col-md-2 tds-col-md-2-offset tds-col-sm-2 tds-col-sm-2-offset tds-col-xs-2 tds-col-xs-2-offset">
286
- <div class="inside-demo">Offset</div>
287
- </div>
288
- </div>
289
- </div>
290
- `);
291
- export const Offset = GridOffsetTemplate.bind({});
292
- const GridNoPaddingTemplate = ({ fluidContainer, padding }) => formatHtmlPreview(`
293
- ${style}
294
-
295
- <h4>Grid no-padding</h4>
296
-
297
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'} demo-example-cols">
298
- <div class="tds-row">
299
- <div class="tds-no-padding tds-col-max-8 tds-col-xxlg-8 tds-col-xlg-8 tds-col-lg-8 tds-col-md-8 tds-col-sm-8 tds-col-xs-8">
300
- <div class="inside-demo">no padding</div>
301
- </div>
302
- <div class="tds-no-padding tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
303
- <div class="inside-demo">no padding</div>
304
- </div>
305
- <div class="${padding ? '' : 'tds-no-padding'} tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
306
- <div class="inside-demo">padding</div>
307
- </div>
308
- <div class="${padding ? '' : 'tds-no-padding'} tds-col-max-8 tds-col-xxlg-8 tds-col-xlg-8 tds-col-lg-8 tds-col-md-8 tds-col-sm-8 tds-col-xs-8">
309
- <div class="inside-demo">padding</div>
310
- </div>
311
- </div>
312
- </div>
313
- `);
314
- export const NoPadding = GridNoPaddingTemplate.bind({});
315
- NoPadding.args = {
316
- padding: true,
317
- };
318
- const GridFluidTemplate = ({ fluidContainer = true, padding }) => formatHtmlPreview(`
319
- ${style}
320
-
321
- <h4>Grid fluid</h4>
322
-
323
- <div class="tds-container-fluid ${padding === false ? 'tds-no-padding' : ''}">
324
- <div class="tds-row">
325
- <div class="tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
326
- <div class="inside-demo">container fluid</div>
327
- </div>
328
- </div>
329
- </div>
330
- <div class="${fluidContainer ? 'tds-container-fluid' : 'tds-container'} ${padding === false ? 'tds-no-padding' : ''} container-demo">
331
- <div class="tds-row">
332
- <div class="tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
333
- <div class="inside-demo">container</div>
334
- </div>
335
- </div>
336
- </div>
337
- `);
338
- export const Fluid = GridFluidTemplate.bind({});
339
- const GridNestedTemplate = ({ fluidContainer, padding }) => formatHtmlPreview(`
340
- ${style}
341
-
342
- <h4>Nested</h4>
343
-
344
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'}">
345
- <div class="tds-row">
346
- <div class="${padding === false ? 'tds-no-padding' : ''} tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
347
- <div class="inside-demo">12</div>
348
- </div>
349
- </div>
350
- <div class="tds-row">
351
- <div class="tds-col-max-6 tds-col-xxlg-6 tds-col-xlg-6 tds-col-lg-6 tds-col-md-6 tds-col-sm-6 tds-col-xs-6">
352
- <div class="tds-row">
353
- <div class="${padding === false ? 'tds-no-padding' : ''} tds-col-max-6 tds-col-xxlg-6 tds-col-xlg-6 tds-col-lg-6 tds-col-md-6 tds-col-sm-6 tds-col-xs-6">
354
- <div class="inside-demo">6 nested</div>
355
- </div>
356
- <div class=" ${padding === false ? 'tds-no-padding' : ''} tds-col-max-6 tds-col-xxlg-6 tds-col-xlg-6 tds-col-lg-6 tds-col-md-6 tds-col-sm-6 tds-col-xs-6">
357
- <div class="inside-demo">6 nested</div>
358
- </div>
359
- </div>
360
- </div>
361
- <div class="${padding === false ? 'tds-no-padding' : ''} tds-col-max-6 tds-col-xxlg-6 tds-col-xlg-6 tds-col-lg-6 tds-col-md-6 tds-col-sm-6 tds-col-xs-6">
362
- <div class="inside-demo">6</div>
363
- </div>
364
- </div>
365
- </div>
366
- `);
367
- export const Nested = GridNestedTemplate.bind({});
368
- const GridHideShow = ({ fluidContainer }) => formatHtmlPreview(`
369
- ${style}
370
-
371
- <h4>Hide/show element</h4>
372
-
373
- <div class="${fluidContainer === true ? 'tds-container-fluid' : 'tds-container'}">
374
- <div class="tds-row">
375
- <div class="tds-hide-xlg tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
376
- <div class="inside-demo">Hide on xlg and wider</div>
377
- </div>
378
- </div>
379
- <div class="tds-row">
380
- <div class="tds-hide-xs tds-show-md tds-col-max-12 tds-col-xxlg-12 tds-col-xlg-12 tds-col-lg-12 tds-col-md-12 tds-col-sm-12 tds-col-xs-12">
381
- <div class="inside-demo">Show on md and wider</div>
382
- </div>
383
- </div>
384
- </div>
385
- `);
386
- export const ShowHide = GridHideShow.bind({});
@@ -1,100 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Spacing',
4
- parameters: {
5
- layout: 'fullscreen',
6
- },
7
- };
8
- const Template = () => formatHtmlPreview(`
9
- <style>
10
- /* Demo code for presentation purposes */
11
- .tds-spacing-element-demo-box {
12
- background-color: var(--tds-red-500);
13
- display: inline-block;
14
- }
15
- table th, table td {
16
- padding: 8px;
17
- text-align: center;
18
- }
19
-
20
- th:last-child {
21
- text-align: left;
22
- }
23
- th:last-child,
24
- td:last-child {
25
- text-align: left;
26
- }
27
- </style>
28
-
29
- <h4>Spacing Element</h4>
30
- <table>
31
- <tr>
32
- <th>Px</th>
33
- <th>Token</th>
34
- <th>CSS</th>
35
- <th>Scale</th>
36
- </tr>
37
- <tr>
38
- <td>2px</td>
39
- <td><code>$spacing-element-2</code></td>
40
- <td><code>.tds-spacing-element-2</code></td>
41
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-2); height: var(--tds-spacing-element-2)"></span></td>
42
- </tr>
43
- <tr>
44
- <td>4px</td>
45
- <td><code>$spacing-element-4</code></td>
46
- <td><code>.tds-spacing-element-4</code></td>
47
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-4); height: var(--tds-spacing-element-4)"></span></td>
48
- </tr>
49
- <tr>
50
- <td>8px</td>
51
- <td><code>$spacing-element-8</code></td>
52
- <td><code>.tds-spacing-element-8</code></td>
53
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-8); height: var(--tds-spacing-element-8)"></span></td>
54
- </tr>
55
- <tr>
56
- <td>12px</td>
57
- <td><code>$spacing-element-12</code></td>
58
- <td><code>.tds-spacing-element-12</code></td>
59
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-12); height: var(--tds-spacing-element-12);"></span></td>
60
- </tr>
61
- <tr>
62
- <td>16px</td>
63
- <td><code>$spacing-element-16</code></td>
64
- <td><code>.tds-spacing-element-16</code></td>
65
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-16); height: var(--tds-spacing-element-16);"></span></td>
66
- </tr>
67
- <tr>
68
- <td>20px</td>
69
- <td><code>$spacing-element-20</code></td>
70
- <td><code>.tds-spacing-element-20</code></td>
71
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-20); height: var(--tds-spacing-element-20);"></span></td>
72
- </tr>
73
- <tr>
74
- <td>24px</td>
75
- <td><code>$spacing-element-24</code></td>
76
- <td><code>.tds-spacing-element-24</code></td>
77
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-24); height: var(--tds-spacing-element-24);"></span></td>
78
- </tr>
79
- <tr>
80
- <td>32px</td>
81
- <td><code>$spacing-element-32</code></td>
82
- <td><code>.tds-spacing-element-32</code></td>
83
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-32); height: var(--tds-spacing-element-32);"></span></td>
84
- </tr>
85
- <tr>
86
- <td>40px</td>
87
- <td><code>$spacing-element-40</code></td>
88
- <td><code>.tds-spacing-element-40</code></td>
89
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-40); height: var(--tds-spacing-element-40);"></span></td>
90
- </tr>
91
- <tr>
92
- <td>48px</td>
93
- <td><code>$spacing-element-48</code></td>
94
- <td><code>.tds-spacing-element-48</code></td>
95
- <td><span class="tds-spacing-element-demo-box" style="width: var(--tds-spacing-element-48); height: var(--tds-spacing-element-48);"></span></td>
96
- </tr>
97
- </table>
98
- `);
99
- export const SpacingElement = Template.bind({});
100
- SpacingElement.args = {};
@@ -1,94 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Spacing',
4
- parameters: {
5
- layout: 'fullscreen',
6
- },
7
- };
8
- const Template = () => formatHtmlPreview(`
9
- <style>
10
- /* Demo code for presentation purposes */
11
- .demo-wrapper {
12
- background-color: var(--tds-blue-500);
13
- display: inline-block;
14
- }
15
- table th, table td {
16
- padding: 8px;
17
- }
18
- th:last-child,
19
- td:last-child {
20
- text-align: left;
21
- }
22
- </style>
23
-
24
- <table>
25
- <tr>
26
- <th>Px</th>
27
- <th>Token</th>
28
- <th>CSS</th>
29
- <th>Scale</th>
30
- </tr>
31
- <tr>
32
- <td>8px</td>
33
- <td><code>$spacing-layout-8</code></td>
34
- <td><code>.tds-spacing-layout-8</code></td>
35
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-8); height: var(--tds-spacing-layout-8)"></span></td>
36
- </tr>
37
- <tr>
38
- <td>16px</td>
39
- <td><code>$spacing-layout-16</code></td>
40
- <td><code>.tds-spacing-layout-16</code></td>
41
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-16); height: var(--tds-spacing-layout-16);"></span></td>
42
- </tr>
43
- <tr>
44
- <td>24px</td>
45
- <td><code>$spacing-layout-24</code></td>
46
- <td><code>.tds-spacing-layout-24</code></td>
47
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-24); height: var(--tds-spacing-layout-24);"></span></td>
48
- </tr>
49
- <tr>
50
- <td>32px</td>
51
- <td><code>$spacing-layout-32</code></td>
52
- <td><code>.tds-spacing-layout-32</code></td>
53
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-32); height: var(--tds-spacing-layout-32);"></span></td>
54
- </tr>
55
- <tr>
56
- <td>48px</td>
57
- <td><code>$spacing-layout-48</code></td>
58
- <td><code>.tds-spacing-layout-48</code></td>
59
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-48); height: var(--tds-spacing-layout-48);"></span></td>
60
- </tr>
61
- <tr>
62
- <td>64px</td>
63
- <td><code>$spacing-layout-64</code></td>
64
- <td><code>.tds-spacing-layout-64</code></td>
65
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-64); height: var(--tds-spacing-layout-64);"></span></td>
66
- </tr>
67
- <tr>
68
- <td>72px</td>
69
- <td><code>$spacing-layout-72</code></td>
70
- <td><code>.tds-spacing-layout-72</code></td>
71
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-72); height: var(--tds-spacing-layout-72);"></span></td>
72
- </tr>
73
- <tr>
74
- <td>96px</td>
75
- <td><code>$spacing-layout-96</code></td>
76
- <td><code>.tds-spacing-layout-96</code></td>
77
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-96); height: var(--tds-spacing-layout-96);"></span></td>
78
- </tr>
79
- <tr>
80
- <td>128px</td>
81
- <td><code>$spacing-layout-128</code></td>
82
- <td><code>.tds-spacing-layout-128</code></td>
83
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-128); height: var(--tds-spacing-layout-128);"></span></td>
84
- </tr>
85
- <tr>
86
- <td>160px</td>
87
- <td><code>$spacing-layout-160</code></td>
88
- <td><code>.tds-spacing-layout-160</code></td>
89
- <td><span class="demo-wrapper" style="width: var(--tds-spacing-layout-160); height: var(--tds-spacing-layout-160);"></span></td>
90
- </tr>
91
- </table>
92
- `);
93
- export const SpacingLayout = Template.bind({});
94
- SpacingLayout.args = {};
@@ -1,16 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Typography',
4
- parameters: {
5
- layout: 'fullscreen',
6
- },
7
- };
8
- const Template = () => formatHtmlPreview(`
9
- <p class='tds-body-01'>
10
- Our larger text style used for body text. We usually use it for paragraphs exceeding 3 lines. The size works well on both larger and smaller breakpoints for reading.
11
- </p>
12
- <p class='tds-body-02'>
13
- Our smaller text style used for body text. We usually use it for paragraphs with less than 3 lines. The size works well on both larger and smaller breakpoints for reading. It could also be used within certain components.
14
- </p>
15
- `);
16
- export const Body = Template.bind({});
@@ -1,17 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Typography',
4
- parameters: {
5
- layout: 'fullscreen',
6
- },
7
- };
8
- const Template = () => formatHtmlPreview(`
9
- <p class='tds-detail-01'>This text style is used in components, such as the cookie component.</p>
10
- <p class='tds-detail-02'>This text style is used in components, such as data tables and buttons.</p>
11
- <p class='tds-detail-03'>This text style is used for longer detailed text exceeding 3 lines within Functional applications.</p>
12
- <p class='tds-detail-04'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
13
- <p class='tds-detail-05'>This text style is used in components, such as the tooltip and as a label for the text field component.</p>
14
- <p class='tds-detail-06'>THIS TEXT STYLE IS USED FOR LABELS AND POTENTIALLY COMPONENTS.</p>
15
- <p class='tds-detail-07'>This text style should only be used for very small instances, for instance as a label inside a text field.</p>
16
- `);
17
- export const Detail = Template.bind({});
@@ -1,39 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Typography',
4
- parameters: {
5
- layout: 'fullscreen',
6
- },
7
- argTypes: {
8
- type: {
9
- name: 'Type',
10
- description: 'The type of headline. Functional/Expressive.',
11
- control: {
12
- type: 'radio',
13
- },
14
- options: { Functional: 'functional', Expressive: 'expressive' },
15
- },
16
- },
17
- };
18
- const Template = ({ type }) => formatHtmlPreview(`
19
- <style>
20
- /* Demo code for presentation purposes */
21
- .demo-wrapper h1 {
22
- margin: 0;
23
- }
24
- </style>
25
-
26
- <div class="demo-wrapper">
27
- <h1 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-01">Headline</h1>
28
- <h2 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-02">Headline</h2>
29
- <h3 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-03">A headline for page layouts</h3>
30
- <h4 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-04">A headline for page layouts</h4>
31
- <h5 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-05">A sub headline, which is most commonly paired with body-01</h5>
32
- <h6 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-06">A sub headline, which is most commonly paired with body-02</h6>
33
- <h7 class="tds-${type === 'expressive' ? `${type}-` : ''}headline-07">A sub headline, which is most commonly paired with detail-02 </h7>
34
- </div>
35
- `);
36
- export const Headlines = Template.bind({});
37
- Headlines.args = {
38
- type: 'functional',
39
- };
@@ -1,12 +0,0 @@
1
- import formatHtmlPreview from "../../formatHtmlPreview";
2
- export default {
3
- title: 'Foundations/Typography',
4
- parameters: {
5
- layout: 'fullscreen',
6
- },
7
- };
8
- const Template = () => formatHtmlPreview(`
9
- <p class='tds-paragraph-01'>Our large paragraph, which should be used for introduction texts on page layouts.</p>
10
- <p class='tds-paragraph-02'>Our smaller paragraph, mainly present on mobile breakpoints, which should be used for introduction texts on page layouts.</p>
11
- `);
12
- export const Paragraph = Template.bind({});