@scania/tegel 0.0.1-beta.9 → 0.0.2

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 (530) hide show
  1. package/dist/cjs/index-b98965c7.js +1919 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/popper-11d5f714.js +1801 -0
  5. package/dist/cjs/sdds-accordion-item.cjs.entry.js +34 -0
  6. package/dist/cjs/sdds-accordion.cjs.entry.js +21 -0
  7. package/dist/cjs/sdds-badges.cjs.entry.js +54 -0
  8. package/dist/cjs/sdds-banner.cjs.entry.js +79 -0
  9. package/dist/cjs/sdds-block.cjs.entry.js +32 -0
  10. package/dist/cjs/sdds-body-cell_2.cjs.entry.js +173 -0
  11. package/dist/cjs/sdds-breadcrumb-item.cjs.entry.js +25 -0
  12. package/dist/cjs/sdds-breadcrumb.cjs.entry.js +23 -0
  13. package/dist/cjs/sdds-button.cjs.entry.js +37 -0
  14. package/dist/cjs/sdds-card.cjs.entry.js +56 -0
  15. package/dist/cjs/sdds-checkbox.cjs.entry.js +55 -0
  16. package/dist/cjs/sdds-datetime.cjs.entry.js +95 -0
  17. package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +92 -0
  18. package/dist/cjs/sdds-dropdown_2.cjs.entry.js +341 -0
  19. package/dist/cjs/sdds-header-cell.cjs.entry.js +139 -0
  20. package/dist/cjs/sdds-icon.cjs.entry.js +42 -0
  21. package/dist/cjs/sdds-inline-tab.cjs.entry.js +22 -0
  22. package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +98 -0
  23. package/dist/cjs/sdds-inline-tabs.cjs.entry.js +221 -0
  24. package/dist/cjs/sdds-link.cjs.entry.js +28 -0
  25. package/dist/cjs/sdds-message.cjs.entry.js +41 -0
  26. package/dist/cjs/sdds-modal.cjs.entry.js +51 -0
  27. package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +98 -0
  28. package/dist/cjs/sdds-popover-canvas.cjs.entry.js +84 -0
  29. package/dist/cjs/sdds-popover-menu.cjs.entry.js +85 -0
  30. package/dist/cjs/sdds-radio-button.cjs.entry.js +32 -0
  31. package/dist/cjs/sdds-slider.cjs.entry.js +357 -0
  32. package/dist/cjs/sdds-spinner.cjs.entry.js +21 -0
  33. package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +82 -0
  34. package/dist/cjs/sdds-table-body.cjs.entry.js +289 -0
  35. package/dist/cjs/sdds-table-footer.cjs.entry.js +164 -0
  36. package/dist/cjs/sdds-table-header.cjs.entry.js +99 -0
  37. package/dist/cjs/sdds-table-toolbar.cjs.entry.js +65 -0
  38. package/dist/cjs/sdds-table.cjs.entry.js +68 -0
  39. package/dist/cjs/sdds-textarea.cjs.entry.js +74 -0
  40. package/dist/cjs/sdds-textfield.cjs.entry.js +91 -0
  41. package/dist/cjs/sdds-toast.cjs.entry.js +86 -0
  42. package/dist/cjs/sdds-toggle.cjs.entry.js +44 -0
  43. package/dist/cjs/sdds-tooltip.cjs.entry.js +104 -0
  44. package/dist/cjs/tegel.cjs.js +19 -0
  45. package/dist/collection/collection-manifest.json +52 -0
  46. package/dist/collection/components/accordion/accordion-item/accordion-item.css +153 -0
  47. package/dist/collection/components/accordion/accordion-item/accordion-item.js +146 -0
  48. package/dist/collection/components/accordion/accordion.css +63 -0
  49. package/dist/collection/components/accordion/accordion.js +62 -0
  50. package/dist/collection/components/accordion/accordion.stories.js +90 -0
  51. package/dist/collection/components/badge/badge.stories.js +102 -0
  52. package/dist/collection/components/badge/badges.css +42 -0
  53. package/dist/collection/components/badge/badges.js +147 -0
  54. package/dist/collection/components/banner/banner.stories.js +92 -0
  55. package/dist/collection/components/banner/sdds-banner.css +88 -0
  56. package/dist/collection/components/banner/sdds-banner.js +330 -0
  57. package/dist/collection/components/banner/sdds-banner.stories.js +129 -0
  58. package/dist/collection/components/block/block-native.stories.js +48 -0
  59. package/dist/collection/components/block/sdds-block.css +22 -0
  60. package/dist/collection/components/block/sdds-block.js +55 -0
  61. package/dist/collection/components/block/sdds-block.stories.js +48 -0
  62. package/dist/collection/components/breadcrumb/breadcrumb-component.css +30 -0
  63. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.css +43 -0
  64. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +83 -0
  65. package/dist/collection/components/breadcrumb/breadcrumb.js +22 -0
  66. package/dist/collection/components/breadcrumb/breadcrumb.stories.js +26 -0
  67. package/dist/collection/components/button/button-component.js +155 -0
  68. package/dist/collection/components/button/button-native.stories.js +187 -0
  69. package/dist/collection/components/button/button-webcomponent.stories.js +189 -0
  70. package/dist/collection/components/button/button.css +670 -0
  71. package/dist/collection/components/card/card.stories.js +167 -0
  72. package/dist/collection/components/card/sdds-card.css +78 -0
  73. package/dist/collection/components/card/sdds-card.js +276 -0
  74. package/dist/collection/components/card/sdds-card.stories.js +168 -0
  75. package/dist/collection/components/checkbox/checkbox.stories.js +54 -0
  76. package/dist/collection/components/checkbox/sdds-checkbox.css +95 -0
  77. package/dist/collection/components/checkbox/sdds-checkbox.js +239 -0
  78. package/dist/collection/components/checkbox/sdds-checkbox.stories.js +71 -0
  79. package/dist/collection/components/chips/chips.stories.js +106 -0
  80. package/dist/collection/components/data-table/native-table.stories.js +160 -0
  81. package/dist/collection/components/data-table/table/table.css +15 -0
  82. package/dist/collection/components/data-table/table/table.js +252 -0
  83. package/dist/collection/components/data-table/table-body/table-body.css +22 -0
  84. package/dist/collection/components/data-table/table-body/table-body.js +425 -0
  85. package/dist/collection/components/data-table/table-body-cell/table-body-cell.css +40 -0
  86. package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +168 -0
  87. package/dist/collection/components/data-table/table-body-row/table-body-row.css +175 -0
  88. package/dist/collection/components/data-table/table-body-row/table-body-row.js +165 -0
  89. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.css +78 -0
  90. package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +156 -0
  91. package/dist/collection/components/data-table/table-component-basic.stories.js +161 -0
  92. package/dist/collection/components/data-table/table-component-batch-actions.stories.js +128 -0
  93. package/dist/collection/components/data-table/table-component-bodydata.stories.js +58 -0
  94. package/dist/collection/components/data-table/table-component-custom-width.stories.js +197 -0
  95. package/dist/collection/components/data-table/table-component-event-listeners.stories.js +151 -0
  96. package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +135 -0
  97. package/dist/collection/components/data-table/table-component-filtering.stories.js +137 -0
  98. package/dist/collection/components/data-table/table-component-multiselect.stories.js +158 -0
  99. package/dist/collection/components/data-table/table-component-pagination.stories.js +127 -0
  100. package/dist/collection/components/data-table/table-component-sorting.stories.js +126 -0
  101. package/dist/collection/components/data-table/table-footer/table-footer.css +97 -0
  102. package/dist/collection/components/data-table/table-footer/table-footer.js +354 -0
  103. package/dist/collection/components/data-table/table-header/table-header.css +190 -0
  104. package/dist/collection/components/data-table/table-header/table-header.js +152 -0
  105. package/dist/collection/components/data-table/table-header-cell/table-header-cell.css +127 -0
  106. package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +317 -0
  107. package/dist/collection/components/data-table/table-toolbar/table-toolbar.css +93 -0
  108. package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +141 -0
  109. package/dist/collection/components/datetime/datetime.css +385 -0
  110. package/dist/collection/components/datetime/datetime.js +352 -0
  111. package/dist/collection/components/datetime/datetime.stories.js +207 -0
  112. package/dist/collection/components/divider/divider.stories.js +133 -0
  113. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +339 -0
  114. package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +130 -0
  115. package/dist/collection/components/dropdown/dropdown-native.stories.js +90 -0
  116. package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +185 -0
  117. package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +167 -0
  118. package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +146 -0
  119. package/dist/collection/components/dropdown/dropdown.css +951 -0
  120. package/dist/collection/components/dropdown/dropdown.js +577 -0
  121. package/dist/collection/components/footer/footer.stories.js +117 -0
  122. package/dist/collection/components/header/header-all.stories.js +217 -0
  123. package/dist/collection/components/header/header-default.stories.js +47 -0
  124. package/dist/collection/components/header/header-inline.stories.js +113 -0
  125. package/dist/collection/components/header/header-search.stories.js +263 -0
  126. package/dist/collection/components/header/header-toolbar.stories.js +204 -0
  127. package/dist/collection/components/icon/icon-font.stories.js +57 -0
  128. package/dist/collection/components/icon/icon-web-component.stories.js +51 -0
  129. package/dist/collection/components/icon/icon.css +16 -0
  130. package/dist/collection/components/icon/icon.js +89 -0
  131. package/dist/collection/components/icon/iconsArray.js +2 -0
  132. package/dist/collection/components/link/link.stories.js +45 -0
  133. package/dist/collection/components/link/sdds-link.css +36 -0
  134. package/dist/collection/components/link/sdds-link.js +121 -0
  135. package/dist/collection/components/link/sdds-link.stories.js +70 -0
  136. package/dist/collection/components/message/message.stories.js +108 -0
  137. package/dist/collection/components/message/sdds-message.css +70 -0
  138. package/dist/collection/components/message/sdds-message.js +135 -0
  139. package/dist/collection/components/message/sdds-message.stories.js +106 -0
  140. package/dist/collection/components/modal/modal-native.stories.js +129 -0
  141. package/dist/collection/components/modal/modal-webcomponent.stories.js +86 -0
  142. package/dist/collection/components/modal/modal.css +350 -0
  143. package/dist/collection/components/modal/modal.js +148 -0
  144. package/dist/collection/components/popover-canvas/popover-canvas.css +20 -0
  145. package/dist/collection/components/popover-canvas/popover-canvas.js +219 -0
  146. package/dist/collection/components/popover-canvas/popover-canvas.stories.js +89 -0
  147. package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +121 -0
  148. package/dist/collection/components/popover-menu/popover-menu.css +19 -0
  149. package/dist/collection/components/popover-menu/popover-menu.js +220 -0
  150. package/dist/collection/components/popover-menu/popover-menu.stories.js +114 -0
  151. package/dist/collection/components/radio-button/radio-button-component.css +123 -0
  152. package/dist/collection/components/radio-button/radio-button-component.stories.js +91 -0
  153. package/dist/collection/components/radio-button/radio-button.js +160 -0
  154. package/dist/collection/components/radio-button/radio-button.stories.js +68 -0
  155. package/dist/collection/components/side-menu/side-menu.stories.js +182 -0
  156. package/dist/collection/components/slider/slider.css +297 -0
  157. package/dist/collection/components/slider/slider.js +721 -0
  158. package/dist/collection/components/slider/slider.stories.js +208 -0
  159. package/dist/collection/components/spinner/spinner.css +79 -0
  160. package/dist/collection/components/spinner/spinner.js +61 -0
  161. package/dist/collection/components/spinner/spinner.stories.js +59 -0
  162. package/dist/collection/components/stepper/stepper.stories.js +139 -0
  163. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.css +3 -0
  164. package/dist/collection/components/tabs/inline-tabs-default/inline-tab/inline-tab.js +80 -0
  165. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +156 -0
  166. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +312 -0
  167. package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +71 -0
  168. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +141 -0
  169. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +128 -0
  170. package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +46 -0
  171. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +157 -0
  172. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +128 -0
  173. package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +32 -0
  174. package/dist/collection/components/textarea/textarea.css +298 -0
  175. package/dist/collection/components/textarea/textarea.js +402 -0
  176. package/dist/collection/components/textarea/textarea.stories.js +169 -0
  177. package/dist/collection/components/textfield/textfield.css +502 -0
  178. package/dist/collection/components/textfield/textfield.js +439 -0
  179. package/dist/collection/components/textfield/textfield.stories.js +239 -0
  180. package/dist/collection/components/toast/sdds-toast.css +102 -0
  181. package/dist/collection/components/toast/sdds-toast.js +256 -0
  182. package/dist/collection/components/toast/sdds-toast.stories.js +86 -0
  183. package/dist/collection/components/toast/toast.stories.js +129 -0
  184. package/dist/collection/components/toggle/sdds-toggle.css +104 -0
  185. package/dist/collection/components/toggle/sdds-toggle.js +261 -0
  186. package/dist/collection/components/toggle/sdds-toggle.stories.js +92 -0
  187. package/dist/collection/components/toggle/toggle.stories.js +72 -0
  188. package/dist/collection/components/tooltip/tooltip.css +46 -0
  189. package/dist/collection/components/tooltip/tooltip.js +229 -0
  190. package/dist/collection/components/tooltip/tooltip.stories.js +115 -0
  191. package/dist/collection/components/utility/colour/background-color.stories.js +96 -0
  192. package/dist/collection/components/utility/colour/text-color.stories.js +94 -0
  193. package/dist/collection/foundations-stories/colour/colour-brand.stories.js +38 -0
  194. package/dist/collection/foundations-stories/colour/colour-scales.stories.js +71 -0
  195. package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +40 -0
  196. package/dist/collection/foundations-stories/grid/grid.stories.js +386 -0
  197. package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +100 -0
  198. package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +94 -0
  199. package/dist/collection/foundations-stories/typography/typography-body.stories.js +16 -0
  200. package/dist/collection/foundations-stories/typography/typography-detail.stories.js +17 -0
  201. package/dist/collection/foundations-stories/typography/typography-headline.stories.js +39 -0
  202. package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +12 -0
  203. package/dist/collection/index.js +1 -0
  204. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  205. package/dist/collection/stories/assets/colors.svg +1 -0
  206. package/dist/collection/stories/assets/comments.svg +1 -0
  207. package/dist/collection/stories/assets/direction.svg +1 -0
  208. package/dist/collection/stories/assets/flow.svg +1 -0
  209. package/dist/collection/stories/assets/plugin.svg +1 -0
  210. package/dist/collection/stories/assets/repo.svg +1 -0
  211. package/dist/collection/stories/assets/stackalt.svg +1 -0
  212. package/dist/collection/utils/utils.js +12 -0
  213. package/dist/components/dropdown-option.js +100 -0
  214. package/dist/components/dropdown.js +303 -0
  215. package/dist/components/icon.js +58 -0
  216. package/dist/components/index.d.ts +62 -0
  217. package/dist/components/index.js +42 -0
  218. package/dist/components/popper.js +1799 -0
  219. package/dist/components/sdds-accordion-item.d.ts +11 -0
  220. package/dist/components/sdds-accordion-item.js +60 -0
  221. package/dist/components/sdds-accordion.d.ts +11 -0
  222. package/dist/components/sdds-accordion.js +38 -0
  223. package/dist/components/sdds-badges.d.ts +11 -0
  224. package/dist/components/sdds-badges.js +75 -0
  225. package/dist/components/sdds-banner.d.ts +11 -0
  226. package/dist/components/sdds-banner.js +119 -0
  227. package/dist/components/sdds-block.d.ts +11 -0
  228. package/dist/components/sdds-block.js +48 -0
  229. package/dist/components/sdds-body-cell.d.ts +11 -0
  230. package/dist/components/sdds-body-cell.js +6 -0
  231. package/dist/components/sdds-breadcrumb-item.d.ts +11 -0
  232. package/dist/components/sdds-breadcrumb-item.js +43 -0
  233. package/dist/components/sdds-breadcrumb.d.ts +11 -0
  234. package/dist/components/sdds-breadcrumb.js +37 -0
  235. package/dist/components/sdds-button.d.ts +11 -0
  236. package/dist/components/sdds-button.js +59 -0
  237. package/dist/components/sdds-card.d.ts +11 -0
  238. package/dist/components/sdds-card.js +84 -0
  239. package/dist/components/sdds-checkbox.d.ts +11 -0
  240. package/dist/components/sdds-checkbox.js +76 -0
  241. package/dist/components/sdds-datetime.d.ts +11 -0
  242. package/dist/components/sdds-datetime.js +129 -0
  243. package/dist/components/sdds-dropdown-filter.d.ts +11 -0
  244. package/dist/components/sdds-dropdown-filter.js +138 -0
  245. package/dist/components/sdds-dropdown-option.d.ts +11 -0
  246. package/dist/components/sdds-dropdown-option.js +6 -0
  247. package/dist/components/sdds-dropdown.d.ts +11 -0
  248. package/dist/components/sdds-dropdown.js +6 -0
  249. package/dist/components/sdds-header-cell.d.ts +11 -0
  250. package/dist/components/sdds-header-cell.js +170 -0
  251. package/dist/components/sdds-icon.d.ts +11 -0
  252. package/dist/components/sdds-icon.js +6 -0
  253. package/dist/components/sdds-inline-tab.d.ts +11 -0
  254. package/dist/components/sdds-inline-tab.js +40 -0
  255. package/dist/components/sdds-inline-tabs-fullbleed.d.ts +11 -0
  256. package/dist/components/sdds-inline-tabs-fullbleed.js +117 -0
  257. package/dist/components/sdds-inline-tabs.d.ts +11 -0
  258. package/dist/components/sdds-inline-tabs.js +245 -0
  259. package/dist/components/sdds-link.d.ts +11 -0
  260. package/dist/components/sdds-link.js +6 -0
  261. package/dist/components/sdds-link2.js +44 -0
  262. package/dist/components/sdds-message.d.ts +11 -0
  263. package/dist/components/sdds-message.js +67 -0
  264. package/dist/components/sdds-modal.d.ts +11 -0
  265. package/dist/components/sdds-modal.js +77 -0
  266. package/dist/components/sdds-navigation-tabs.d.ts +11 -0
  267. package/dist/components/sdds-navigation-tabs.js +117 -0
  268. package/dist/components/sdds-popover-canvas.d.ts +11 -0
  269. package/dist/components/sdds-popover-canvas.js +108 -0
  270. package/dist/components/sdds-popover-menu.d.ts +11 -0
  271. package/dist/components/sdds-popover-menu.js +109 -0
  272. package/dist/components/sdds-radio-button.d.ts +11 -0
  273. package/dist/components/sdds-radio-button.js +52 -0
  274. package/dist/components/sdds-slider.d.ts +11 -0
  275. package/dist/components/sdds-slider.js +394 -0
  276. package/dist/components/sdds-spinner.d.ts +11 -0
  277. package/dist/components/sdds-spinner.js +37 -0
  278. package/dist/components/sdds-table-body-row-expandable.d.ts +11 -0
  279. package/dist/components/sdds-table-body-row-expandable.js +105 -0
  280. package/dist/components/sdds-table-body-row.d.ts +11 -0
  281. package/dist/components/sdds-table-body-row.js +6 -0
  282. package/dist/components/sdds-table-body.d.ts +11 -0
  283. package/dist/components/sdds-table-body.js +337 -0
  284. package/dist/components/sdds-table-footer.d.ts +11 -0
  285. package/dist/components/sdds-table-footer.js +195 -0
  286. package/dist/components/sdds-table-header.d.ts +11 -0
  287. package/dist/components/sdds-table-header.js +124 -0
  288. package/dist/components/sdds-table-toolbar.d.ts +11 -0
  289. package/dist/components/sdds-table-toolbar.js +87 -0
  290. package/dist/components/sdds-table.d.ts +11 -0
  291. package/dist/components/sdds-table.js +91 -0
  292. package/dist/components/sdds-textarea.d.ts +11 -0
  293. package/dist/components/sdds-textarea.js +109 -0
  294. package/dist/components/sdds-textfield.d.ts +11 -0
  295. package/dist/components/sdds-textfield.js +127 -0
  296. package/dist/components/sdds-toast.d.ts +11 -0
  297. package/dist/components/sdds-toast.js +117 -0
  298. package/dist/components/sdds-toggle.d.ts +11 -0
  299. package/dist/components/sdds-toggle.js +69 -0
  300. package/dist/components/sdds-tooltip.d.ts +11 -0
  301. package/dist/components/sdds-tooltip.js +127 -0
  302. package/dist/components/table-body-cell.js +101 -0
  303. package/dist/components/table-body-row.js +120 -0
  304. package/dist/esm/index-32571711.js +1891 -0
  305. package/dist/esm/index.js +1 -0
  306. package/dist/esm/loader.js +17 -0
  307. package/dist/esm/polyfills/core-js.js +11 -0
  308. package/dist/esm/polyfills/css-shim.js +1 -0
  309. package/dist/esm/polyfills/dom.js +79 -0
  310. package/dist/esm/polyfills/es5-html-element.js +1 -0
  311. package/dist/esm/polyfills/index.js +34 -0
  312. package/dist/esm/polyfills/system.js +6 -0
  313. package/dist/esm/popper-f860750c.js +1799 -0
  314. package/dist/esm/sdds-accordion-item.entry.js +30 -0
  315. package/dist/esm/sdds-accordion.entry.js +17 -0
  316. package/dist/esm/sdds-badges.entry.js +50 -0
  317. package/dist/esm/sdds-banner.entry.js +75 -0
  318. package/dist/esm/sdds-block.entry.js +28 -0
  319. package/dist/esm/sdds-body-cell_2.entry.js +168 -0
  320. package/dist/esm/sdds-breadcrumb-item.entry.js +21 -0
  321. package/dist/esm/sdds-breadcrumb.entry.js +19 -0
  322. package/dist/esm/sdds-button.entry.js +33 -0
  323. package/dist/esm/sdds-card.entry.js +52 -0
  324. package/dist/esm/sdds-checkbox.entry.js +51 -0
  325. package/dist/esm/sdds-datetime.entry.js +91 -0
  326. package/dist/esm/sdds-dropdown-filter.entry.js +88 -0
  327. package/dist/esm/sdds-dropdown_2.entry.js +336 -0
  328. package/dist/esm/sdds-header-cell.entry.js +135 -0
  329. package/dist/esm/sdds-icon.entry.js +38 -0
  330. package/dist/esm/sdds-inline-tab.entry.js +18 -0
  331. package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +94 -0
  332. package/dist/esm/sdds-inline-tabs.entry.js +217 -0
  333. package/dist/esm/sdds-link.entry.js +24 -0
  334. package/dist/esm/sdds-message.entry.js +37 -0
  335. package/dist/esm/sdds-modal.entry.js +47 -0
  336. package/dist/esm/sdds-navigation-tabs.entry.js +94 -0
  337. package/dist/esm/sdds-popover-canvas.entry.js +80 -0
  338. package/dist/esm/sdds-popover-menu.entry.js +81 -0
  339. package/dist/esm/sdds-radio-button.entry.js +28 -0
  340. package/dist/esm/sdds-slider.entry.js +353 -0
  341. package/dist/esm/sdds-spinner.entry.js +17 -0
  342. package/dist/esm/sdds-table-body-row-expandable.entry.js +78 -0
  343. package/dist/esm/sdds-table-body.entry.js +285 -0
  344. package/dist/esm/sdds-table-footer.entry.js +160 -0
  345. package/dist/esm/sdds-table-header.entry.js +95 -0
  346. package/dist/esm/sdds-table-toolbar.entry.js +61 -0
  347. package/dist/esm/sdds-table.entry.js +64 -0
  348. package/dist/esm/sdds-textarea.entry.js +70 -0
  349. package/dist/esm/sdds-textfield.entry.js +87 -0
  350. package/dist/esm/sdds-toast.entry.js +82 -0
  351. package/dist/esm/sdds-toggle.entry.js +40 -0
  352. package/dist/esm/sdds-tooltip.entry.js +100 -0
  353. package/dist/esm/tegel.js +17 -0
  354. package/dist/index.cjs.js +1 -0
  355. package/dist/index.js +1 -0
  356. package/dist/node_modules/@types/jest/index.d.ts +1512 -0
  357. package/dist/tegel/index.esm.js +0 -0
  358. package/dist/tegel/p-05d3cfc8.entry.js +1 -0
  359. package/dist/tegel/p-13a25c7f.entry.js +1 -0
  360. package/dist/tegel/p-13b783f1.js +2 -0
  361. package/dist/tegel/p-1dda8de9.entry.js +1 -0
  362. package/dist/tegel/p-2248b59e.entry.js +1 -0
  363. package/dist/tegel/p-232e5c9a.entry.js +1 -0
  364. package/dist/tegel/p-2375f0eb.entry.js +1 -0
  365. package/dist/tegel/p-29deedc6.entry.js +1 -0
  366. package/dist/tegel/p-2f52021b.entry.js +1 -0
  367. package/dist/tegel/p-3344582d.entry.js +1 -0
  368. package/dist/tegel/p-4b14324d.entry.js +1 -0
  369. package/dist/tegel/p-561fbe77.entry.js +1 -0
  370. package/dist/tegel/p-5a215722.entry.js +1 -0
  371. package/dist/tegel/p-5f7b1539.entry.js +1 -0
  372. package/dist/tegel/p-6f382b38.entry.js +1 -0
  373. package/dist/tegel/p-765e2719.entry.js +1 -0
  374. package/dist/tegel/p-76f60546.entry.js +1 -0
  375. package/dist/tegel/p-7a5244b6.entry.js +1 -0
  376. package/dist/tegel/p-816ff5f7.entry.js +1 -0
  377. package/dist/tegel/p-81d2d57b.entry.js +1 -0
  378. package/dist/tegel/p-87650f36.entry.js +1 -0
  379. package/dist/tegel/p-8e6f885c.entry.js +1 -0
  380. package/dist/tegel/p-8e9dcc20.entry.js +1 -0
  381. package/dist/tegel/p-997fc919.entry.js +1 -0
  382. package/dist/tegel/p-9a057c9a.entry.js +1 -0
  383. package/dist/tegel/p-9a95e92c.entry.js +1 -0
  384. package/dist/tegel/p-a75ff060.entry.js +1 -0
  385. package/dist/tegel/p-bf1216f9.entry.js +1 -0
  386. package/dist/tegel/p-bf597564.entry.js +1 -0
  387. package/dist/tegel/p-d2217bf0.entry.js +1 -0
  388. package/dist/tegel/p-e335137d.entry.js +1 -0
  389. package/dist/tegel/p-e34cce75.entry.js +1 -0
  390. package/dist/tegel/p-e55d09f2.entry.js +1 -0
  391. package/dist/tegel/p-ebbffa8a.entry.js +1 -0
  392. package/dist/tegel/p-ec26fc38.js +1 -0
  393. package/dist/tegel/p-ed076d47.entry.js +1 -0
  394. package/dist/tegel/p-ef887910.entry.js +1 -0
  395. package/dist/tegel/p-f4b70868.entry.js +1 -0
  396. package/dist/tegel/p-f52a0b63.entry.js +1 -0
  397. package/dist/tegel/p-f5bf214b.entry.js +1 -0
  398. package/dist/tegel/p-fd1b5923.entry.js +1 -0
  399. package/dist/tegel/tegel.css +109 -0
  400. package/dist/tegel/tegel.esm.js +1 -0
  401. package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +17 -0
  402. package/dist/types/components/accordion/accordion.d.ts +7 -0
  403. package/dist/types/components/accordion/accordion.stories.d.ts +77 -0
  404. package/dist/types/components/badge/badge.stories.d.ts +66 -0
  405. package/dist/types/components/badge/badges.d.ts +16 -0
  406. package/dist/types/components/banner/banner.stories.d.ts +68 -0
  407. package/dist/types/components/banner/sdds-banner.d.ts +48 -0
  408. package/dist/types/components/banner/sdds-banner.stories.d.ts +109 -0
  409. package/dist/types/components/block/block-native.stories.d.ts +31 -0
  410. package/dist/types/components/block/sdds-block.d.ts +9 -0
  411. package/dist/types/components/block/sdds-block.stories.d.ts +32 -0
  412. package/dist/types/components/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +9 -0
  413. package/dist/types/components/breadcrumb/breadcrumb.d.ts +5 -0
  414. package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +12 -0
  415. package/dist/types/components/button/button-component.d.ts +18 -0
  416. package/dist/types/components/button/button-native.stories.d.ts +148 -0
  417. package/dist/types/components/button/button-webcomponent.stories.d.ts +147 -0
  418. package/dist/types/components/card/card.stories.d.ts +138 -0
  419. package/dist/types/components/card/sdds-card.d.ts +39 -0
  420. package/dist/types/components/card/sdds-card.stories.d.ts +139 -0
  421. package/dist/types/components/checkbox/checkbox.stories.d.ts +39 -0
  422. package/dist/types/components/checkbox/sdds-checkbox.d.ts +38 -0
  423. package/dist/types/components/checkbox/sdds-checkbox.stories.d.ts +40 -0
  424. package/dist/types/components/chips/chips.stories.d.ts +77 -0
  425. package/dist/types/components/data-table/native-table.stories.d.ts +133 -0
  426. package/dist/types/components/data-table/table/table.d.ts +47 -0
  427. package/dist/types/components/data-table/table-body/table-body.d.ts +54 -0
  428. package/dist/types/components/data-table/table-body-cell/table-body-cell.d.ts +24 -0
  429. package/dist/types/components/data-table/table-body-row/table-body-row.d.ts +27 -0
  430. package/dist/types/components/data-table/table-body-row-expandable/table-body-row-expandable.d.ts +27 -0
  431. package/dist/types/components/data-table/table-component-basic.stories.d.ts +101 -0
  432. package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +99 -0
  433. package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +38 -0
  434. package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +148 -0
  435. package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +88 -0
  436. package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +88 -0
  437. package/dist/types/components/data-table/table-component-filtering.stories.d.ts +101 -0
  438. package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +101 -0
  439. package/dist/types/components/data-table/table-component-pagination.stories.d.ts +101 -0
  440. package/dist/types/components/data-table/table-component-sorting.stories.d.ts +100 -0
  441. package/dist/types/components/data-table/table-footer/table-footer.d.ts +50 -0
  442. package/dist/types/components/data-table/table-header/table-header.d.ts +27 -0
  443. package/dist/types/components/data-table/table-header-cell/table-header-cell.d.ts +44 -0
  444. package/dist/types/components/data-table/table-toolbar/table-toolbar.d.ts +22 -0
  445. package/dist/types/components/datetime/datetime.d.ts +42 -0
  446. package/dist/types/components/datetime/datetime.stories.d.ts +127 -0
  447. package/dist/types/components/divider/divider.stories.d.ts +65 -0
  448. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +42 -0
  449. package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +73 -0
  450. package/dist/types/components/dropdown/dropdown-native.stories.d.ts +57 -0
  451. package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +19 -0
  452. package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +129 -0
  453. package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +115 -0
  454. package/dist/types/components/dropdown/dropdown.d.ts +58 -0
  455. package/dist/types/components/footer/footer.stories.d.ts +45 -0
  456. package/dist/types/components/header/header-all.stories.d.ts +29 -0
  457. package/dist/types/components/header/header-default.stories.d.ts +29 -0
  458. package/dist/types/components/header/header-inline.stories.d.ts +29 -0
  459. package/dist/types/components/header/header-search.stories.d.ts +29 -0
  460. package/dist/types/components/header/header-toolbar.stories.d.ts +29 -0
  461. package/dist/types/components/icon/icon-font.stories.d.ts +38 -0
  462. package/dist/types/components/icon/icon-web-component.stories.d.ts +38 -0
  463. package/dist/types/components/icon/icon.d.ts +12 -0
  464. package/dist/types/components/link/link.stories.d.ts +33 -0
  465. package/dist/types/components/link/sdds-link.d.ts +13 -0
  466. package/dist/types/components/link/sdds-link.stories.d.ts +58 -0
  467. package/dist/types/components/message/message.stories.d.ts +69 -0
  468. package/dist/types/components/message/sdds-message.d.ts +14 -0
  469. package/dist/types/components/message/sdds-message.stories.d.ts +87 -0
  470. package/dist/types/components/modal/modal-native.stories.d.ts +59 -0
  471. package/dist/types/components/modal/modal-webcomponent.stories.d.ts +52 -0
  472. package/dist/types/components/modal/modal.d.ts +17 -0
  473. package/dist/types/components/popover-canvas/popover-canvas.d.ts +24 -0
  474. package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +25 -0
  475. package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +27 -0
  476. package/dist/types/components/popover-menu/popover-menu.d.ts +24 -0
  477. package/dist/types/components/popover-menu/popover-menu.stories.d.ts +27 -0
  478. package/dist/types/components/radio-button/radio-button-component.stories.d.ts +39 -0
  479. package/dist/types/components/radio-button/radio-button.d.ts +26 -0
  480. package/dist/types/components/radio-button/radio-button.stories.d.ts +33 -0
  481. package/dist/types/components/side-menu/side-menu.stories.d.ts +42 -0
  482. package/dist/types/components/slider/slider.d.ts +86 -0
  483. package/dist/types/components/slider/slider.stories.d.ts +169 -0
  484. package/dist/types/components/spinner/spinner.d.ts +7 -0
  485. package/dist/types/components/spinner/spinner.stories.d.ts +37 -0
  486. package/dist/types/components/stepper/stepper.stories.d.ts +56 -0
  487. package/dist/types/components/tabs/inline-tabs-default/inline-tab/inline-tab.d.ts +6 -0
  488. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.d.ts +40 -0
  489. package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +49 -0
  490. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.d.ts +20 -0
  491. package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +30 -0
  492. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +20 -0
  493. package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +13 -0
  494. package/dist/types/components/textarea/textarea.d.ts +48 -0
  495. package/dist/types/components/textarea/textarea.stories.d.ts +116 -0
  496. package/dist/types/components/textfield/textfield.d.ts +52 -0
  497. package/dist/types/components/textfield/textfield.stories.d.ts +180 -0
  498. package/dist/types/components/toast/sdds-toast.d.ts +36 -0
  499. package/dist/types/components/toast/sdds-toast.stories.d.ts +56 -0
  500. package/dist/types/components/toast/toast.stories.d.ts +69 -0
  501. package/dist/types/components/toggle/sdds-toggle.d.ts +34 -0
  502. package/dist/types/components/toggle/sdds-toggle.stories.d.ts +74 -0
  503. package/dist/types/components/toggle/toggle.stories.d.ts +55 -0
  504. package/dist/types/components/tooltip/tooltip.d.ts +24 -0
  505. package/dist/types/components/tooltip/tooltip.stories.d.ts +54 -0
  506. package/dist/types/components/utility/colour/background-color.stories.d.ts +58 -0
  507. package/dist/types/components/utility/colour/text-color.stories.d.ts +58 -0
  508. package/dist/types/components.d.ts +2643 -0
  509. package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +13 -0
  510. package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +13 -0
  511. package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +13 -0
  512. package/dist/types/foundations-stories/grid/grid.stories.d.ts +35 -0
  513. package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +8 -0
  514. package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +8 -0
  515. package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +8 -0
  516. package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +8 -0
  517. package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +21 -0
  518. package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +8 -0
  519. package/dist/types/global.d.ts +2 -0
  520. package/dist/types/index.d.ts +1 -0
  521. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  522. package/dist/types/utils/utils.d.ts +2 -0
  523. package/loader/cdn.js +3 -0
  524. package/loader/index.cjs.js +3 -0
  525. package/loader/index.d.ts +12 -0
  526. package/loader/index.es2017.js +3 -0
  527. package/loader/index.js +4 -0
  528. package/loader/package.json +11 -0
  529. package/package.json +1 -1
  530. package/readme.md +34 -0
@@ -0,0 +1,2643 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { Placement } from "@popperjs/core";
9
+ import { TablePropsChangedEvent } from "./components/data-table/table/table";
10
+ export namespace Components {
11
+ interface SddsAccordion {
12
+ /**
13
+ * Enable or disable divider lines between items
14
+ */
15
+ "divider": boolean;
16
+ /**
17
+ * Set the variant of the the accordion.
18
+ */
19
+ "modeVariant": 'primary' | 'secondary';
20
+ }
21
+ interface SddsAccordionItem {
22
+ /**
23
+ * Disabled option in `boolean`.
24
+ */
25
+ "disabled": boolean;
26
+ /**
27
+ * Changes where the expand icon is placed.
28
+ */
29
+ "expandIconPosition": 'start' | 'end';
30
+ /**
31
+ * Set to true to expand panel open
32
+ */
33
+ "expanded": boolean;
34
+ /**
35
+ * The header gives users the context about the additional information available inside the panel
36
+ */
37
+ "header": string;
38
+ /**
39
+ * When true 16px on right padding instead of 64px
40
+ */
41
+ "paddingReset": boolean;
42
+ }
43
+ interface SddsBadges {
44
+ /**
45
+ * Changes visibility of badge
46
+ */
47
+ "hidden": boolean;
48
+ /**
49
+ * @deprecated Use size prop instead. Changes badge from large to small size
50
+ */
51
+ "isSmall": boolean;
52
+ /**
53
+ * Sets component size.
54
+ */
55
+ "size": 'lg' | 'sm';
56
+ /**
57
+ * Value shown in badge
58
+ */
59
+ "value": string;
60
+ }
61
+ interface SddsBanner {
62
+ /**
63
+ * ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for banner close events you need to set this ID yourself to identify the banner, as the default ID is random and will be different every time.
64
+ */
65
+ "bannerId": string;
66
+ /**
67
+ * Header text.
68
+ */
69
+ "header": string;
70
+ /**
71
+ * Hides the banner
72
+ */
73
+ "hidden": boolean;
74
+ /**
75
+ * Hides the banner.
76
+ */
77
+ "hideBanner": () => Promise<{ bannerId: string; hidden: boolean; }>;
78
+ /**
79
+ * Href for the link
80
+ */
81
+ "href": string;
82
+ /**
83
+ * Name of the icon for the component. For error and information type the icon is predefined.
84
+ */
85
+ "icon": string;
86
+ /**
87
+ * 'noopener' is a security measure for legacy browsers that preventsthe opened page from getting access to the original page when using target='_blank'.
88
+ */
89
+ "linkRel": string;
90
+ /**
91
+ * Where to open the linked URL
92
+ */
93
+ "linkTarget": '_self' | '_blank' | '_parent' | '_top';
94
+ /**
95
+ * Link text.
96
+ */
97
+ "linkText": string;
98
+ /**
99
+ * Removes the close button on the banner.
100
+ */
101
+ "persistent": boolean;
102
+ /**
103
+ * Shows the banner
104
+ */
105
+ "showBanner": () => Promise<{ bannerId: string; hidden: boolean; }>;
106
+ /**
107
+ * Subheader text.
108
+ */
109
+ "subheader": string;
110
+ /**
111
+ * Type of banner
112
+ */
113
+ "type": 'error' | 'information' | 'none';
114
+ }
115
+ interface SddsBlock {
116
+ /**
117
+ * Mode variant of the component, based on current mode.
118
+ */
119
+ "modeVariant": 'primary' | 'secondary';
120
+ }
121
+ interface SddsBodyCell {
122
+ /**
123
+ * Passing same cell key for all body cells which is used in head cell enables features of text align and hovering
124
+ */
125
+ "cellKey": any;
126
+ /**
127
+ * Value that will be presented as text inside a cell
128
+ */
129
+ "cellValue": string | number;
130
+ /**
131
+ * Disables internal padding. Useful when passing other components to cell.
132
+ */
133
+ "disablePadding": boolean;
134
+ }
135
+ interface SddsBreadcrumb {
136
+ }
137
+ interface SddsBreadcrumbItem {
138
+ /**
139
+ * Boolean for the current link
140
+ */
141
+ "current": boolean;
142
+ /**
143
+ * Toggle the disabled state for the breadcrumb
144
+ */
145
+ "disabled": boolean;
146
+ /**
147
+ * Href for the link
148
+ */
149
+ "href": string;
150
+ }
151
+ interface SddsButton {
152
+ /**
153
+ * Control for disabled state of component
154
+ */
155
+ "disabled": boolean;
156
+ /**
157
+ * When enabled, makes button take 100% width
158
+ */
159
+ "fullbleed": boolean;
160
+ /**
161
+ * Set the mode variant of the the button.
162
+ */
163
+ "modeVariant": 'primary' | 'secondary';
164
+ "size": 'xs' | 'sm' | 'md' | 'lg';
165
+ /**
166
+ * Text inside a button
167
+ */
168
+ "text": string;
169
+ /**
170
+ * Type of button
171
+ */
172
+ "type": 'primary' | 'secondary' | 'ghost' | 'danger';
173
+ }
174
+ interface SddsCard {
175
+ /**
176
+ * Divider for the body
177
+ */
178
+ "bodyDivider": boolean;
179
+ /**
180
+ * Body image src
181
+ */
182
+ "bodyImg": string;
183
+ /**
184
+ * Alt text for the body image
185
+ */
186
+ "bodyImgAlt": string;
187
+ /**
188
+ * ID for the card, must be unique. **NOTE**: If you're listening for card events you need to set this ID yourself to identify the card, as the default ID is random and will be different every time.
189
+ */
190
+ "cardId": string;
191
+ /**
192
+ * Makes the card clickable.
193
+ */
194
+ "clickable": boolean;
195
+ /**
196
+ * Text in the header
197
+ */
198
+ "header": string;
199
+ /**
200
+ * Header image src
201
+ */
202
+ "headerImg": string;
203
+ /**
204
+ * Alt text for the header image
205
+ */
206
+ "headerImgAlt": string;
207
+ /**
208
+ * Placement of the header
209
+ */
210
+ "headerPlacement": 'above' | 'below';
211
+ /**
212
+ * Variant of the card based on the theme used.
213
+ */
214
+ "modeVariant": 'primary' | 'secondary';
215
+ /**
216
+ * Subheader text in the header
217
+ */
218
+ "subheader": string;
219
+ }
220
+ interface SddsCheckbox {
221
+ /**
222
+ * ID for the checkbox's input element. Randomly generated if not specified.
223
+ */
224
+ "checkboxId": string;
225
+ /**
226
+ * Sets the checkbox as checked
227
+ */
228
+ "checked": boolean;
229
+ /**
230
+ * Sets the checkbox in a disabled state
231
+ */
232
+ "disabled": boolean;
233
+ /**
234
+ * Name for the checkbox's input element.
235
+ */
236
+ "name": string;
237
+ /**
238
+ * Make the checkbox required
239
+ */
240
+ "required": boolean;
241
+ /**
242
+ * Toggles the checked value of the component.
243
+ */
244
+ "toggleCheckbox": () => Promise<{ checkboxId: string; checked: boolean; }>;
245
+ /**
246
+ * Value for the checkbox
247
+ */
248
+ "value": string;
249
+ }
250
+ interface SddsDatetime {
251
+ /**
252
+ * Autofocus for input
253
+ */
254
+ "autofocus": boolean;
255
+ /**
256
+ * Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for date-time: YY-MM-DDTHH-MM
257
+ */
258
+ "defaultValue": string | 'none';
259
+ /**
260
+ * Set input in disabled state
261
+ */
262
+ "disabled": boolean;
263
+ /**
264
+ * Helper text for the component
265
+ */
266
+ "helper": string;
267
+ /**
268
+ * Label text for the component
269
+ */
270
+ "label": string;
271
+ /**
272
+ * Set the variant of the the datetime component.
273
+ */
274
+ "modeVariant": 'primary' | 'secondary';
275
+ /**
276
+ * Name property
277
+ */
278
+ "name": string;
279
+ /**
280
+ * With setting
281
+ */
282
+ "noMinWidth": boolean;
283
+ /**
284
+ * Size of the input
285
+ */
286
+ "size": 'sm' | 'md' | '';
287
+ /**
288
+ * Error state of input
289
+ */
290
+ "state": string;
291
+ /**
292
+ * Which input type, text, password or similar
293
+ */
294
+ "type": 'datetime-local' | 'date' | 'time';
295
+ /**
296
+ * Value of the input text
297
+ */
298
+ "value": string;
299
+ }
300
+ interface SddsDropdown {
301
+ /**
302
+ * Add the value of the option as string to set it as default
303
+ */
304
+ "defaultOption": string;
305
+ /**
306
+ * Set to true for disabled states
307
+ */
308
+ "disabled": boolean;
309
+ /**
310
+ * Add helper text in the bottom of dropdown
311
+ */
312
+ "helper": string;
313
+ /**
314
+ * Set to true to make the width following the label text length
315
+ */
316
+ "inline": boolean;
317
+ /**
318
+ * Label text for label inside & outside
319
+ */
320
+ "label": string;
321
+ /**
322
+ * Controls position of label
323
+ */
324
+ "labelPosition": 'no-label' | 'inside' | 'outside';
325
+ /**
326
+ * Set the variant of the the dropdown.
327
+ */
328
+ "modeVariant": 'primary' | 'secondary';
329
+ /**
330
+ * Direction that the dropdown will open. By default set to auto.
331
+ */
332
+ "openDirection": 'down' | 'up' | 'auto';
333
+ /**
334
+ * Placeholder text for dropdown with no selectedLabel item
335
+ */
336
+ "placeholder": string;
337
+ "resetOption": () => Promise<void>;
338
+ /**
339
+ * Add the value of the option as string to set it as new selected value
340
+ */
341
+ "selectedOption": string;
342
+ /**
343
+ * Controls the size of dropdown. 'sm', 'md' and 'lg' correct values and 'small', 'medium' and 'large' are deprecated
344
+ */
345
+ "size": 'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large';
346
+ /**
347
+ * Support `error` state
348
+ */
349
+ "state": string;
350
+ /**
351
+ * `Controls type of dropdown.
352
+ */
353
+ "type": 'default' | 'multiselect' | 'filter';
354
+ }
355
+ interface SddsDropdownFilter {
356
+ /**
357
+ * Data is an array of objects that contains label and value `data = [{label:'Option 1', value:'opt-1'},{label:'Option 2', value:'opt-2'}]`
358
+ */
359
+ "data": string;
360
+ /**
361
+ * Add the value of the option to set it as default
362
+ */
363
+ "defaultOption": string;
364
+ /**
365
+ * Add the value of the option to set it as default
366
+ */
367
+ "disabled": boolean;
368
+ /**
369
+ * Add helper text in the bottom of dropdown
370
+ */
371
+ "helper": string;
372
+ /**
373
+ * Set to true to make the width following the label text length
374
+ */
375
+ "inline": boolean;
376
+ /**
377
+ * Label for dropdown with no selected item
378
+ */
379
+ "label": string;
380
+ /**
381
+ * Position of label
382
+ */
383
+ "labelPosition": 'no-label' | 'inside' | 'outside';
384
+ /**
385
+ * Placeholder text for dropdown with no selected item
386
+ */
387
+ "placeholder": string;
388
+ /**
389
+ * Use this method to reset the dropdown. Then it will go back to its initial state.
390
+ */
391
+ "resetOption": () => Promise<void>;
392
+ /**
393
+ * Add the value of the option as string to set it as new selected value
394
+ */
395
+ "selectedOption": string;
396
+ /**
397
+ * Controls the size of dropdown. 'sm', 'md' and 'lg' correct values and 'small', 'medium' and 'large' are deprecated
398
+ */
399
+ "size": 'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large';
400
+ /**
401
+ * Support `error` state
402
+ */
403
+ "state": string;
404
+ }
405
+ interface SddsDropdownOption {
406
+ /**
407
+ * Sets option to disabled state if true
408
+ */
409
+ "disabled": boolean;
410
+ /**
411
+ * Selected set to true if selected
412
+ */
413
+ "selected": boolean;
414
+ /**
415
+ * Value is a unique string that will be used for application logic
416
+ */
417
+ "value": string;
418
+ }
419
+ interface SddsHeaderCell {
420
+ /**
421
+ * Value of column key, usually comes from JSON, needed for sorting
422
+ */
423
+ "columnKey": string;
424
+ /**
425
+ * Text that displays in column cell
426
+ */
427
+ "columnTitle": string;
428
+ /**
429
+ * In case noMinWidth setting, user has to specify width value for each column, for example "150px"
430
+ */
431
+ "customWidth": string;
432
+ /**
433
+ * If passed as prop, enables sorting on that column
434
+ */
435
+ "sortable": boolean;
436
+ /**
437
+ * Setting for text align, default is left, but user can pass "right" as string - useful for numeric values
438
+ */
439
+ "textAlign": string;
440
+ }
441
+ interface SddsIcon {
442
+ /**
443
+ * Pass a name of the icon. For icon names, refer to https://digitaldesign.scania.com/foundations/icons/icon-library or storybook
444
+ */
445
+ "name": string;
446
+ /**
447
+ * Pass a size of icon as a string, for example: 32px, 1rem, 4em...
448
+ */
449
+ "size": string;
450
+ }
451
+ interface SddsInlineTab {
452
+ "default": boolean;
453
+ "disabled": boolean;
454
+ "label": string;
455
+ }
456
+ interface SddsInlineTabs {
457
+ /**
458
+ * different height settings. right now only supports "auto", otherwise ignored
459
+ */
460
+ "autoHeight": boolean;
461
+ /**
462
+ * either use this (default-tab="...") or read attribute "default" from one of the slotted children.
463
+ */
464
+ "defaultTab": string;
465
+ /**
466
+ * Variant of the tabs, primary= on white, secondary= on grey50
467
+ */
468
+ "modeVariant": 'primary' | 'secondary';
469
+ /**
470
+ * used for switching to a tab programmatically
471
+ */
472
+ "showTab": (key: string) => Promise<void>;
473
+ }
474
+ interface SddsInlineTabsFullbleed {
475
+ /**
476
+ * Variant of the tabs, primary= on white, secondary= on grey50
477
+ */
478
+ "modeVariant": 'primary' | 'secondary';
479
+ }
480
+ interface SddsLink {
481
+ /**
482
+ * Disables the link
483
+ */
484
+ "disabled": boolean;
485
+ /**
486
+ * URL for the link
487
+ */
488
+ "href": string;
489
+ /**
490
+ * 'noopener' is a security measure for legacy browsers that preventsthe opened page from getting access to the original page when using target='_blank'.
491
+ */
492
+ "rel": string;
493
+ /**
494
+ * Where to open the linked URL
495
+ */
496
+ "target": '_self' | '_blank' | '_parent' | '_top';
497
+ /**
498
+ * Displays the link with an underline.
499
+ */
500
+ "underline": boolean;
501
+ }
502
+ interface SddsMessage {
503
+ /**
504
+ * Header text for the component.
505
+ */
506
+ "header": string;
507
+ /**
508
+ * Minimal message styling.
509
+ */
510
+ "minimal": boolean;
511
+ /**
512
+ * Variant of the component, based on current mode.
513
+ */
514
+ "modeVariant": 'primary' | 'secondary';
515
+ /**
516
+ * Removes the icon in the message.
517
+ */
518
+ "noIcon": boolean;
519
+ /**
520
+ * Type of message.
521
+ */
522
+ "type": 'information' | 'error' | 'warning' | 'success';
523
+ }
524
+ interface SddsModal {
525
+ /**
526
+ * Sticky or Static Actions
527
+ */
528
+ "actions": 'sticky' | 'static';
529
+ "open": boolean;
530
+ /**
531
+ * Shows the modal
532
+ */
533
+ "openModal": () => Promise<void>;
534
+ /**
535
+ * Disables closing modal on clicking on overlay area.
536
+ */
537
+ "prevent": boolean;
538
+ /**
539
+ * Size of modal
540
+ */
541
+ "size": 'xs' | 'sm' | 'md' | 'lg';
542
+ }
543
+ interface SddsNavigationTabs {
544
+ /**
545
+ * Variant of the tabs, primary= on white, secondary= on grey50
546
+ */
547
+ "modeVariant": 'primary' | 'secondary';
548
+ }
549
+ interface SddsPopoverCanvas {
550
+ /**
551
+ * Sets the offset distance
552
+ */
553
+ "offsetDistance": number;
554
+ /**
555
+ * Sets the offset skidding
556
+ */
557
+ "offsetSkidding": number;
558
+ /**
559
+ * Decides the placement of the Popover Canvas
560
+ */
561
+ "placement": Placement;
562
+ /**
563
+ * Element that will trigger the popover (takes priority over selector)
564
+ */
565
+ "referenceEl": HTMLElement;
566
+ /**
567
+ * The CSS-selector for an element that will trigger the popover
568
+ */
569
+ "selector": string;
570
+ /**
571
+ * Decides if the Popover Canvas should be visible from the start
572
+ */
573
+ "show": boolean;
574
+ }
575
+ interface SddsPopoverMenu {
576
+ /**
577
+ * Sets the offset distance
578
+ */
579
+ "offsetDistance": number;
580
+ /**
581
+ * Sets the offset skidding
582
+ */
583
+ "offsetSkidding": number;
584
+ /**
585
+ * Decides the placement of the Popover Menu
586
+ */
587
+ "placement": Placement;
588
+ /**
589
+ * Element that will trigger the popover (takes priority over selector)
590
+ */
591
+ "referenceEl": HTMLElement;
592
+ /**
593
+ * The CSS-selector for an element that will trigger the popover
594
+ */
595
+ "selector": string;
596
+ /**
597
+ * Decides if the Popover Menu should be visible from the start
598
+ */
599
+ "show": boolean;
600
+ }
601
+ interface SddsRadioButton {
602
+ /**
603
+ * Decides if the radio button is checked or not.
604
+ */
605
+ "checked": boolean;
606
+ /**
607
+ * Decides if the radio button is disabled or not.
608
+ */
609
+ "disabled": boolean;
610
+ /**
611
+ * Name of radio button, used for reference.
612
+ */
613
+ "name": string;
614
+ /**
615
+ * Unique radio button identifier.
616
+ */
617
+ "radioId": string;
618
+ /**
619
+ * Decides if the radio button is required or not.
620
+ */
621
+ "required": boolean;
622
+ /**
623
+ * Value of input.
624
+ */
625
+ "value": string;
626
+ }
627
+ interface SddsSlider {
628
+ /**
629
+ * Decide to show the controls or not
630
+ */
631
+ "controls": boolean;
632
+ /**
633
+ * Sets the disabled state for the whole component
634
+ */
635
+ "disabled": boolean;
636
+ /**
637
+ * Decide to show the input field or not
638
+ */
639
+ "input": boolean;
640
+ /**
641
+ * Text for label
642
+ */
643
+ "label": string;
644
+ /**
645
+ * Maximum value
646
+ */
647
+ "max": string;
648
+ /**
649
+ * Minimum value
650
+ */
651
+ "min": string;
652
+ /**
653
+ * Name property (will be inherited by the native slider component)
654
+ */
655
+ "name": string;
656
+ /**
657
+ * Sets the read only state for the whole component
658
+ */
659
+ "readOnly": boolean;
660
+ /**
661
+ * Public method to re-initialise the slider if some configuration props are changed
662
+ */
663
+ "reset": () => Promise<void>;
664
+ /**
665
+ * Decide to show numbers above the tick markers or not
666
+ */
667
+ "showTickNumbers": boolean;
668
+ /**
669
+ * Sets the size of the scrubber
670
+ */
671
+ "size": 'sm' | '';
672
+ /**
673
+ * Id for the sliders input element, randomly generated if not specified.
674
+ */
675
+ "sliderId": string;
676
+ /**
677
+ * Snap to the ticks grid
678
+ */
679
+ "snap": boolean;
680
+ /**
681
+ * Defines how much to increment/decrement the value when using controls
682
+ */
683
+ "step": string;
684
+ /**
685
+ * Number of tick markers (tick for min- and max-value will be added automatically)
686
+ */
687
+ "ticks": string;
688
+ /**
689
+ * Decide to show the tooltip or not
690
+ */
691
+ "tooltip": boolean;
692
+ /**
693
+ * Initial value
694
+ */
695
+ "value": string;
696
+ }
697
+ interface SddsSpinner {
698
+ /**
699
+ * Size of spinner
700
+ */
701
+ "size": 'xs' | 'sm' | 'md' | 'lg';
702
+ /**
703
+ * Variant of spinner
704
+ */
705
+ "variant": 'standard' | 'inverted';
706
+ }
707
+ interface SddsTable {
708
+ /**
709
+ * Enables style where data-table toolbar, rows and footer are less high
710
+ */
711
+ "compactDesign": boolean;
712
+ /**
713
+ * Enables extended row feature of data-table
714
+ */
715
+ "enableExpandableRows": boolean;
716
+ /**
717
+ * Enables multiselect feature of data-table
718
+ */
719
+ "enableMultiselect": boolean;
720
+ /**
721
+ * Enables table to take 100% available width with equal spacing of columns
722
+ */
723
+ "enableResponsive": boolean;
724
+ /**
725
+ * Variant of the component, based on current mode.
726
+ */
727
+ "modeVariant": 'primary' | 'secondary';
728
+ /**
729
+ * Enables to customise width on data-table columns
730
+ */
731
+ "noMinWidth": boolean;
732
+ /**
733
+ * ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for table events you need to set this ID yourself to identify the table, as the default ID is random and will be different every time.
734
+ */
735
+ "tableId": string;
736
+ /**
737
+ * Enables style with vertical dividers between columns
738
+ */
739
+ "verticalDividers": boolean;
740
+ }
741
+ interface SddsTableBody {
742
+ /**
743
+ * Prop to pass JSON string which enables automatic rendering of table rows and cells
744
+ */
745
+ "bodyData": any;
746
+ /**
747
+ * Disables inbuilt filtering logic, leaving user an option to create own filter functionality while listening to events from sdds-table-toolbar component for search term
748
+ */
749
+ "disableFilteringFunction": boolean;
750
+ /**
751
+ * Disables inbuilt sorting logic, leaving user an option to create own sorting functionality while listening to events from sdds-header-cell component for sorting
752
+ */
753
+ "disableSortingFunction": boolean;
754
+ /**
755
+ * Prop for showcase of rendering JSON in body-data, just for presentation purposes
756
+ */
757
+ "enableDummyData": boolean;
758
+ }
759
+ interface SddsTableBodyRow {
760
+ }
761
+ interface SddsTableBodyRowExpandable {
762
+ /**
763
+ * In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
764
+ */
765
+ "colSpan": number;
766
+ }
767
+ interface SddsTableFooter {
768
+ /**
769
+ * Prop for client to set max number of pages
770
+ */
771
+ "clientMaxPages": number;
772
+ /**
773
+ * Prop for client to set current page number
774
+ */
775
+ "clientPaginationValue": number;
776
+ /**
777
+ * In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
778
+ */
779
+ "clientSetColumnsNumber": number;
780
+ /**
781
+ * Disables inbuilt pagination logic, leaving user an option to create own pagination functionality while listening to events from sdds-table-footer component
782
+ */
783
+ "disablePaginationFunction": boolean;
784
+ /**
785
+ * Prop to enable client controlled pagination
786
+ */
787
+ "enableClientPagination": boolean;
788
+ /**
789
+ * Enable pagination and show pagination controls
790
+ */
791
+ "enablePagination": boolean;
792
+ /**
793
+ * Sets how many rows to display when pagination is enabled
794
+ */
795
+ "rowsPerPage": number;
796
+ }
797
+ interface SddsTableHeader {
798
+ }
799
+ interface SddsTableToolbar {
800
+ /**
801
+ * Enables preview of searchbar
802
+ */
803
+ "enableFiltering": boolean;
804
+ /**
805
+ * Adds title to the data-table
806
+ */
807
+ "tableTitle": string;
808
+ }
809
+ interface SddsTextarea {
810
+ /**
811
+ * Control of autofocus
812
+ */
813
+ "autoFocus": boolean;
814
+ /**
815
+ * Textarea cols attribute
816
+ */
817
+ "cols": number;
818
+ /**
819
+ * Set input in disabled state
820
+ */
821
+ "disabled": boolean;
822
+ /**
823
+ * Helper text
824
+ */
825
+ "helper": string;
826
+ /**
827
+ * Label text
828
+ */
829
+ "label": string;
830
+ /**
831
+ * Position of the label for the textfield.
832
+ */
833
+ "labelPosition": 'inside' | 'outside' | 'no-label';
834
+ /**
835
+ * Max length of input
836
+ */
837
+ "maxLength": number;
838
+ /**
839
+ * Mode variant of the textarea
840
+ */
841
+ "modeVariant": 'primary' | 'secondary';
842
+ /**
843
+ * Name attribute
844
+ */
845
+ "name": string;
846
+ /**
847
+ * Placeholder text
848
+ */
849
+ "placeholder": string;
850
+ /**
851
+ * Set input in readonly state
852
+ */
853
+ "readOnly": boolean;
854
+ /**
855
+ * Textarea rows attribute
856
+ */
857
+ "rows": number;
858
+ /**
859
+ * Error state of input
860
+ */
861
+ "state": 'error' | 'success' | 'default';
862
+ /**
863
+ * Value of the input text
864
+ */
865
+ "value": string;
866
+ }
867
+ interface SddsTextfield {
868
+ /**
869
+ * Autofocus for input
870
+ */
871
+ "autofocus": boolean;
872
+ /**
873
+ * Set input in disabled state
874
+ */
875
+ "disabled": boolean;
876
+ /**
877
+ * Helper text
878
+ */
879
+ "helper": string;
880
+ /**
881
+ * Label text
882
+ */
883
+ "label": string;
884
+ /**
885
+ * Position of the label for the textfield.
886
+ */
887
+ "labelPosition": 'inside' | 'outside' | 'no-label';
888
+ /**
889
+ * Max length of input
890
+ */
891
+ "maxLength": number;
892
+ /**
893
+ * Mode variant of the textfield
894
+ */
895
+ "modeVariant": 'primary' | 'secondary';
896
+ /**
897
+ * Name property
898
+ */
899
+ "name": string;
900
+ /**
901
+ * With setting
902
+ */
903
+ "noMinWidth": boolean;
904
+ /**
905
+ * Placeholder text
906
+ */
907
+ "placeholder": string;
908
+ /**
909
+ * Set input in readonly state
910
+ */
911
+ "readOnly": boolean;
912
+ /**
913
+ * Size of the input
914
+ */
915
+ "size": 'sm' | 'md' | 'lg';
916
+ /**
917
+ * Error state of input
918
+ */
919
+ "state": 'error' | 'success' | 'default';
920
+ /**
921
+ * Which input type, text, password or similar
922
+ */
923
+ "type": 'text' | 'password';
924
+ /**
925
+ * Value of the input text
926
+ */
927
+ "value": string;
928
+ }
929
+ interface SddsToast {
930
+ /**
931
+ * Header text for the component.
932
+ */
933
+ "header": string;
934
+ /**
935
+ * Hides the toast.
936
+ */
937
+ "hidden": boolean;
938
+ /**
939
+ * Hides the toast.
940
+ */
941
+ "hideToast": () => Promise<{ toastId: string; }>;
942
+ /**
943
+ * ARIA role for the toast.
944
+ */
945
+ "role": 'alert' | 'log' | 'status';
946
+ /**
947
+ * Shows the toast.
948
+ */
949
+ "showToast": () => Promise<{ toastId: string; }>;
950
+ /**
951
+ * Subheader text for the component.
952
+ */
953
+ "subheader": string;
954
+ /**
955
+ * ID for the toast. Randomly generated if not specified.
956
+ */
957
+ "toastId": string;
958
+ /**
959
+ * Type of toast.
960
+ */
961
+ "type": 'information' | 'error' | 'warning' | 'success';
962
+ }
963
+ interface SddsToggle {
964
+ /**
965
+ * Aria-describedby for the toggles input element.
966
+ */
967
+ "ariaDescribedby": string;
968
+ /**
969
+ * Aria-labelledby for the toggles input element.
970
+ */
971
+ "ariaLabelledby": string;
972
+ /**
973
+ * Sets the toggle as checked
974
+ */
975
+ "checked": boolean;
976
+ /**
977
+ * Sets the toggle in a disabled state
978
+ */
979
+ "disabled": boolean;
980
+ /**
981
+ * Headline for the toggle
982
+ */
983
+ "headline": string;
984
+ /**
985
+ * Label for the toggle
986
+ */
987
+ "label": string;
988
+ /**
989
+ * Name of the toggles input element
990
+ */
991
+ "name": string;
992
+ /**
993
+ * Make the toggle required
994
+ */
995
+ "required": boolean;
996
+ /**
997
+ * Size of the toggle
998
+ */
999
+ "size": 'sm' | 'lg';
1000
+ /**
1001
+ * Toggles the toggle.
1002
+ */
1003
+ "toggle": () => Promise<{ toggleId: string; checked: boolean; }>;
1004
+ /**
1005
+ * ID of the toggles input element, if not specifed it's randomly generated
1006
+ */
1007
+ "toggleId": string;
1008
+ }
1009
+ interface SddsTooltip {
1010
+ /**
1011
+ * Allow mouse over tooltip. Useful when tooltip contains clickable elements like link or button.
1012
+ */
1013
+ "mouseOverTooltip": boolean;
1014
+ /**
1015
+ * Placement of tooltip.
1016
+ */
1017
+ "placement": Placement;
1018
+ /**
1019
+ * Element that will trigger the tooltip (takes priority over selector)
1020
+ */
1021
+ "referenceEl": HTMLElement;
1022
+ /**
1023
+ * The CSS-selector for an element that will trigger the tooltip
1024
+ */
1025
+ "selector": string;
1026
+ /**
1027
+ * Prop in control of showing and hiding prop
1028
+ */
1029
+ "show": boolean;
1030
+ /**
1031
+ * In case tooltip contains only text, no HTML, text can be passed by this prop
1032
+ */
1033
+ "text": string;
1034
+ }
1035
+ }
1036
+ export interface SddsAccordionItemCustomEvent<T> extends CustomEvent<T> {
1037
+ detail: T;
1038
+ target: HTMLSddsAccordionItemElement;
1039
+ }
1040
+ export interface SddsBannerCustomEvent<T> extends CustomEvent<T> {
1041
+ detail: T;
1042
+ target: HTMLSddsBannerElement;
1043
+ }
1044
+ export interface SddsCardCustomEvent<T> extends CustomEvent<T> {
1045
+ detail: T;
1046
+ target: HTMLSddsCardElement;
1047
+ }
1048
+ export interface SddsCheckboxCustomEvent<T> extends CustomEvent<T> {
1049
+ detail: T;
1050
+ target: HTMLSddsCheckboxElement;
1051
+ }
1052
+ export interface SddsDatetimeCustomEvent<T> extends CustomEvent<T> {
1053
+ detail: T;
1054
+ target: HTMLSddsDatetimeElement;
1055
+ }
1056
+ export interface SddsDropdownCustomEvent<T> extends CustomEvent<T> {
1057
+ detail: T;
1058
+ target: HTMLSddsDropdownElement;
1059
+ }
1060
+ export interface SddsDropdownOptionCustomEvent<T> extends CustomEvent<T> {
1061
+ detail: T;
1062
+ target: HTMLSddsDropdownOptionElement;
1063
+ }
1064
+ export interface SddsHeaderCellCustomEvent<T> extends CustomEvent<T> {
1065
+ detail: T;
1066
+ target: HTMLSddsHeaderCellElement;
1067
+ }
1068
+ export interface SddsRadioButtonCustomEvent<T> extends CustomEvent<T> {
1069
+ detail: T;
1070
+ target: HTMLSddsRadioButtonElement;
1071
+ }
1072
+ export interface SddsSliderCustomEvent<T> extends CustomEvent<T> {
1073
+ detail: T;
1074
+ target: HTMLSddsSliderElement;
1075
+ }
1076
+ export interface SddsTableCustomEvent<T> extends CustomEvent<T> {
1077
+ detail: T;
1078
+ target: HTMLSddsTableElement;
1079
+ }
1080
+ export interface SddsTableBodyCustomEvent<T> extends CustomEvent<T> {
1081
+ detail: T;
1082
+ target: HTMLSddsTableBodyElement;
1083
+ }
1084
+ export interface SddsTableBodyRowCustomEvent<T> extends CustomEvent<T> {
1085
+ detail: T;
1086
+ target: HTMLSddsTableBodyRowElement;
1087
+ }
1088
+ export interface SddsTableBodyRowExpandableCustomEvent<T> extends CustomEvent<T> {
1089
+ detail: T;
1090
+ target: HTMLSddsTableBodyRowExpandableElement;
1091
+ }
1092
+ export interface SddsTableFooterCustomEvent<T> extends CustomEvent<T> {
1093
+ detail: T;
1094
+ target: HTMLSddsTableFooterElement;
1095
+ }
1096
+ export interface SddsTableHeaderCustomEvent<T> extends CustomEvent<T> {
1097
+ detail: T;
1098
+ target: HTMLSddsTableHeaderElement;
1099
+ }
1100
+ export interface SddsTableToolbarCustomEvent<T> extends CustomEvent<T> {
1101
+ detail: T;
1102
+ target: HTMLSddsTableToolbarElement;
1103
+ }
1104
+ export interface SddsTextareaCustomEvent<T> extends CustomEvent<T> {
1105
+ detail: T;
1106
+ target: HTMLSddsTextareaElement;
1107
+ }
1108
+ export interface SddsTextfieldCustomEvent<T> extends CustomEvent<T> {
1109
+ detail: T;
1110
+ target: HTMLSddsTextfieldElement;
1111
+ }
1112
+ export interface SddsToastCustomEvent<T> extends CustomEvent<T> {
1113
+ detail: T;
1114
+ target: HTMLSddsToastElement;
1115
+ }
1116
+ export interface SddsToggleCustomEvent<T> extends CustomEvent<T> {
1117
+ detail: T;
1118
+ target: HTMLSddsToggleElement;
1119
+ }
1120
+ declare global {
1121
+ interface HTMLSddsAccordionElement extends Components.SddsAccordion, HTMLStencilElement {
1122
+ }
1123
+ var HTMLSddsAccordionElement: {
1124
+ prototype: HTMLSddsAccordionElement;
1125
+ new (): HTMLSddsAccordionElement;
1126
+ };
1127
+ interface HTMLSddsAccordionItemElement extends Components.SddsAccordionItem, HTMLStencilElement {
1128
+ }
1129
+ var HTMLSddsAccordionItemElement: {
1130
+ prototype: HTMLSddsAccordionItemElement;
1131
+ new (): HTMLSddsAccordionItemElement;
1132
+ };
1133
+ interface HTMLSddsBadgesElement extends Components.SddsBadges, HTMLStencilElement {
1134
+ }
1135
+ var HTMLSddsBadgesElement: {
1136
+ prototype: HTMLSddsBadgesElement;
1137
+ new (): HTMLSddsBadgesElement;
1138
+ };
1139
+ interface HTMLSddsBannerElement extends Components.SddsBanner, HTMLStencilElement {
1140
+ }
1141
+ var HTMLSddsBannerElement: {
1142
+ prototype: HTMLSddsBannerElement;
1143
+ new (): HTMLSddsBannerElement;
1144
+ };
1145
+ interface HTMLSddsBlockElement extends Components.SddsBlock, HTMLStencilElement {
1146
+ }
1147
+ var HTMLSddsBlockElement: {
1148
+ prototype: HTMLSddsBlockElement;
1149
+ new (): HTMLSddsBlockElement;
1150
+ };
1151
+ interface HTMLSddsBodyCellElement extends Components.SddsBodyCell, HTMLStencilElement {
1152
+ }
1153
+ var HTMLSddsBodyCellElement: {
1154
+ prototype: HTMLSddsBodyCellElement;
1155
+ new (): HTMLSddsBodyCellElement;
1156
+ };
1157
+ interface HTMLSddsBreadcrumbElement extends Components.SddsBreadcrumb, HTMLStencilElement {
1158
+ }
1159
+ var HTMLSddsBreadcrumbElement: {
1160
+ prototype: HTMLSddsBreadcrumbElement;
1161
+ new (): HTMLSddsBreadcrumbElement;
1162
+ };
1163
+ interface HTMLSddsBreadcrumbItemElement extends Components.SddsBreadcrumbItem, HTMLStencilElement {
1164
+ }
1165
+ var HTMLSddsBreadcrumbItemElement: {
1166
+ prototype: HTMLSddsBreadcrumbItemElement;
1167
+ new (): HTMLSddsBreadcrumbItemElement;
1168
+ };
1169
+ interface HTMLSddsButtonElement extends Components.SddsButton, HTMLStencilElement {
1170
+ }
1171
+ var HTMLSddsButtonElement: {
1172
+ prototype: HTMLSddsButtonElement;
1173
+ new (): HTMLSddsButtonElement;
1174
+ };
1175
+ interface HTMLSddsCardElement extends Components.SddsCard, HTMLStencilElement {
1176
+ }
1177
+ var HTMLSddsCardElement: {
1178
+ prototype: HTMLSddsCardElement;
1179
+ new (): HTMLSddsCardElement;
1180
+ };
1181
+ interface HTMLSddsCheckboxElement extends Components.SddsCheckbox, HTMLStencilElement {
1182
+ }
1183
+ var HTMLSddsCheckboxElement: {
1184
+ prototype: HTMLSddsCheckboxElement;
1185
+ new (): HTMLSddsCheckboxElement;
1186
+ };
1187
+ interface HTMLSddsDatetimeElement extends Components.SddsDatetime, HTMLStencilElement {
1188
+ }
1189
+ var HTMLSddsDatetimeElement: {
1190
+ prototype: HTMLSddsDatetimeElement;
1191
+ new (): HTMLSddsDatetimeElement;
1192
+ };
1193
+ interface HTMLSddsDropdownElement extends Components.SddsDropdown, HTMLStencilElement {
1194
+ }
1195
+ var HTMLSddsDropdownElement: {
1196
+ prototype: HTMLSddsDropdownElement;
1197
+ new (): HTMLSddsDropdownElement;
1198
+ };
1199
+ interface HTMLSddsDropdownFilterElement extends Components.SddsDropdownFilter, HTMLStencilElement {
1200
+ }
1201
+ var HTMLSddsDropdownFilterElement: {
1202
+ prototype: HTMLSddsDropdownFilterElement;
1203
+ new (): HTMLSddsDropdownFilterElement;
1204
+ };
1205
+ interface HTMLSddsDropdownOptionElement extends Components.SddsDropdownOption, HTMLStencilElement {
1206
+ }
1207
+ var HTMLSddsDropdownOptionElement: {
1208
+ prototype: HTMLSddsDropdownOptionElement;
1209
+ new (): HTMLSddsDropdownOptionElement;
1210
+ };
1211
+ interface HTMLSddsHeaderCellElement extends Components.SddsHeaderCell, HTMLStencilElement {
1212
+ }
1213
+ var HTMLSddsHeaderCellElement: {
1214
+ prototype: HTMLSddsHeaderCellElement;
1215
+ new (): HTMLSddsHeaderCellElement;
1216
+ };
1217
+ interface HTMLSddsIconElement extends Components.SddsIcon, HTMLStencilElement {
1218
+ }
1219
+ var HTMLSddsIconElement: {
1220
+ prototype: HTMLSddsIconElement;
1221
+ new (): HTMLSddsIconElement;
1222
+ };
1223
+ interface HTMLSddsInlineTabElement extends Components.SddsInlineTab, HTMLStencilElement {
1224
+ }
1225
+ var HTMLSddsInlineTabElement: {
1226
+ prototype: HTMLSddsInlineTabElement;
1227
+ new (): HTMLSddsInlineTabElement;
1228
+ };
1229
+ interface HTMLSddsInlineTabsElement extends Components.SddsInlineTabs, HTMLStencilElement {
1230
+ }
1231
+ var HTMLSddsInlineTabsElement: {
1232
+ prototype: HTMLSddsInlineTabsElement;
1233
+ new (): HTMLSddsInlineTabsElement;
1234
+ };
1235
+ interface HTMLSddsInlineTabsFullbleedElement extends Components.SddsInlineTabsFullbleed, HTMLStencilElement {
1236
+ }
1237
+ var HTMLSddsInlineTabsFullbleedElement: {
1238
+ prototype: HTMLSddsInlineTabsFullbleedElement;
1239
+ new (): HTMLSddsInlineTabsFullbleedElement;
1240
+ };
1241
+ interface HTMLSddsLinkElement extends Components.SddsLink, HTMLStencilElement {
1242
+ }
1243
+ var HTMLSddsLinkElement: {
1244
+ prototype: HTMLSddsLinkElement;
1245
+ new (): HTMLSddsLinkElement;
1246
+ };
1247
+ interface HTMLSddsMessageElement extends Components.SddsMessage, HTMLStencilElement {
1248
+ }
1249
+ var HTMLSddsMessageElement: {
1250
+ prototype: HTMLSddsMessageElement;
1251
+ new (): HTMLSddsMessageElement;
1252
+ };
1253
+ interface HTMLSddsModalElement extends Components.SddsModal, HTMLStencilElement {
1254
+ }
1255
+ var HTMLSddsModalElement: {
1256
+ prototype: HTMLSddsModalElement;
1257
+ new (): HTMLSddsModalElement;
1258
+ };
1259
+ interface HTMLSddsNavigationTabsElement extends Components.SddsNavigationTabs, HTMLStencilElement {
1260
+ }
1261
+ var HTMLSddsNavigationTabsElement: {
1262
+ prototype: HTMLSddsNavigationTabsElement;
1263
+ new (): HTMLSddsNavigationTabsElement;
1264
+ };
1265
+ interface HTMLSddsPopoverCanvasElement extends Components.SddsPopoverCanvas, HTMLStencilElement {
1266
+ }
1267
+ var HTMLSddsPopoverCanvasElement: {
1268
+ prototype: HTMLSddsPopoverCanvasElement;
1269
+ new (): HTMLSddsPopoverCanvasElement;
1270
+ };
1271
+ interface HTMLSddsPopoverMenuElement extends Components.SddsPopoverMenu, HTMLStencilElement {
1272
+ }
1273
+ var HTMLSddsPopoverMenuElement: {
1274
+ prototype: HTMLSddsPopoverMenuElement;
1275
+ new (): HTMLSddsPopoverMenuElement;
1276
+ };
1277
+ interface HTMLSddsRadioButtonElement extends Components.SddsRadioButton, HTMLStencilElement {
1278
+ }
1279
+ var HTMLSddsRadioButtonElement: {
1280
+ prototype: HTMLSddsRadioButtonElement;
1281
+ new (): HTMLSddsRadioButtonElement;
1282
+ };
1283
+ interface HTMLSddsSliderElement extends Components.SddsSlider, HTMLStencilElement {
1284
+ }
1285
+ var HTMLSddsSliderElement: {
1286
+ prototype: HTMLSddsSliderElement;
1287
+ new (): HTMLSddsSliderElement;
1288
+ };
1289
+ interface HTMLSddsSpinnerElement extends Components.SddsSpinner, HTMLStencilElement {
1290
+ }
1291
+ var HTMLSddsSpinnerElement: {
1292
+ prototype: HTMLSddsSpinnerElement;
1293
+ new (): HTMLSddsSpinnerElement;
1294
+ };
1295
+ interface HTMLSddsTableElement extends Components.SddsTable, HTMLStencilElement {
1296
+ }
1297
+ var HTMLSddsTableElement: {
1298
+ prototype: HTMLSddsTableElement;
1299
+ new (): HTMLSddsTableElement;
1300
+ };
1301
+ interface HTMLSddsTableBodyElement extends Components.SddsTableBody, HTMLStencilElement {
1302
+ }
1303
+ var HTMLSddsTableBodyElement: {
1304
+ prototype: HTMLSddsTableBodyElement;
1305
+ new (): HTMLSddsTableBodyElement;
1306
+ };
1307
+ interface HTMLSddsTableBodyRowElement extends Components.SddsTableBodyRow, HTMLStencilElement {
1308
+ }
1309
+ var HTMLSddsTableBodyRowElement: {
1310
+ prototype: HTMLSddsTableBodyRowElement;
1311
+ new (): HTMLSddsTableBodyRowElement;
1312
+ };
1313
+ interface HTMLSddsTableBodyRowExpandableElement extends Components.SddsTableBodyRowExpandable, HTMLStencilElement {
1314
+ }
1315
+ var HTMLSddsTableBodyRowExpandableElement: {
1316
+ prototype: HTMLSddsTableBodyRowExpandableElement;
1317
+ new (): HTMLSddsTableBodyRowExpandableElement;
1318
+ };
1319
+ interface HTMLSddsTableFooterElement extends Components.SddsTableFooter, HTMLStencilElement {
1320
+ }
1321
+ var HTMLSddsTableFooterElement: {
1322
+ prototype: HTMLSddsTableFooterElement;
1323
+ new (): HTMLSddsTableFooterElement;
1324
+ };
1325
+ interface HTMLSddsTableHeaderElement extends Components.SddsTableHeader, HTMLStencilElement {
1326
+ }
1327
+ var HTMLSddsTableHeaderElement: {
1328
+ prototype: HTMLSddsTableHeaderElement;
1329
+ new (): HTMLSddsTableHeaderElement;
1330
+ };
1331
+ interface HTMLSddsTableToolbarElement extends Components.SddsTableToolbar, HTMLStencilElement {
1332
+ }
1333
+ var HTMLSddsTableToolbarElement: {
1334
+ prototype: HTMLSddsTableToolbarElement;
1335
+ new (): HTMLSddsTableToolbarElement;
1336
+ };
1337
+ interface HTMLSddsTextareaElement extends Components.SddsTextarea, HTMLStencilElement {
1338
+ }
1339
+ var HTMLSddsTextareaElement: {
1340
+ prototype: HTMLSddsTextareaElement;
1341
+ new (): HTMLSddsTextareaElement;
1342
+ };
1343
+ interface HTMLSddsTextfieldElement extends Components.SddsTextfield, HTMLStencilElement {
1344
+ }
1345
+ var HTMLSddsTextfieldElement: {
1346
+ prototype: HTMLSddsTextfieldElement;
1347
+ new (): HTMLSddsTextfieldElement;
1348
+ };
1349
+ interface HTMLSddsToastElement extends Components.SddsToast, HTMLStencilElement {
1350
+ }
1351
+ var HTMLSddsToastElement: {
1352
+ prototype: HTMLSddsToastElement;
1353
+ new (): HTMLSddsToastElement;
1354
+ };
1355
+ interface HTMLSddsToggleElement extends Components.SddsToggle, HTMLStencilElement {
1356
+ }
1357
+ var HTMLSddsToggleElement: {
1358
+ prototype: HTMLSddsToggleElement;
1359
+ new (): HTMLSddsToggleElement;
1360
+ };
1361
+ interface HTMLSddsTooltipElement extends Components.SddsTooltip, HTMLStencilElement {
1362
+ }
1363
+ var HTMLSddsTooltipElement: {
1364
+ prototype: HTMLSddsTooltipElement;
1365
+ new (): HTMLSddsTooltipElement;
1366
+ };
1367
+ interface HTMLElementTagNameMap {
1368
+ "sdds-accordion": HTMLSddsAccordionElement;
1369
+ "sdds-accordion-item": HTMLSddsAccordionItemElement;
1370
+ "sdds-badges": HTMLSddsBadgesElement;
1371
+ "sdds-banner": HTMLSddsBannerElement;
1372
+ "sdds-block": HTMLSddsBlockElement;
1373
+ "sdds-body-cell": HTMLSddsBodyCellElement;
1374
+ "sdds-breadcrumb": HTMLSddsBreadcrumbElement;
1375
+ "sdds-breadcrumb-item": HTMLSddsBreadcrumbItemElement;
1376
+ "sdds-button": HTMLSddsButtonElement;
1377
+ "sdds-card": HTMLSddsCardElement;
1378
+ "sdds-checkbox": HTMLSddsCheckboxElement;
1379
+ "sdds-datetime": HTMLSddsDatetimeElement;
1380
+ "sdds-dropdown": HTMLSddsDropdownElement;
1381
+ "sdds-dropdown-filter": HTMLSddsDropdownFilterElement;
1382
+ "sdds-dropdown-option": HTMLSddsDropdownOptionElement;
1383
+ "sdds-header-cell": HTMLSddsHeaderCellElement;
1384
+ "sdds-icon": HTMLSddsIconElement;
1385
+ "sdds-inline-tab": HTMLSddsInlineTabElement;
1386
+ "sdds-inline-tabs": HTMLSddsInlineTabsElement;
1387
+ "sdds-inline-tabs-fullbleed": HTMLSddsInlineTabsFullbleedElement;
1388
+ "sdds-link": HTMLSddsLinkElement;
1389
+ "sdds-message": HTMLSddsMessageElement;
1390
+ "sdds-modal": HTMLSddsModalElement;
1391
+ "sdds-navigation-tabs": HTMLSddsNavigationTabsElement;
1392
+ "sdds-popover-canvas": HTMLSddsPopoverCanvasElement;
1393
+ "sdds-popover-menu": HTMLSddsPopoverMenuElement;
1394
+ "sdds-radio-button": HTMLSddsRadioButtonElement;
1395
+ "sdds-slider": HTMLSddsSliderElement;
1396
+ "sdds-spinner": HTMLSddsSpinnerElement;
1397
+ "sdds-table": HTMLSddsTableElement;
1398
+ "sdds-table-body": HTMLSddsTableBodyElement;
1399
+ "sdds-table-body-row": HTMLSddsTableBodyRowElement;
1400
+ "sdds-table-body-row-expandable": HTMLSddsTableBodyRowExpandableElement;
1401
+ "sdds-table-footer": HTMLSddsTableFooterElement;
1402
+ "sdds-table-header": HTMLSddsTableHeaderElement;
1403
+ "sdds-table-toolbar": HTMLSddsTableToolbarElement;
1404
+ "sdds-textarea": HTMLSddsTextareaElement;
1405
+ "sdds-textfield": HTMLSddsTextfieldElement;
1406
+ "sdds-toast": HTMLSddsToastElement;
1407
+ "sdds-toggle": HTMLSddsToggleElement;
1408
+ "sdds-tooltip": HTMLSddsTooltipElement;
1409
+ }
1410
+ }
1411
+ declare namespace LocalJSX {
1412
+ interface SddsAccordion {
1413
+ /**
1414
+ * Enable or disable divider lines between items
1415
+ */
1416
+ "divider"?: boolean;
1417
+ /**
1418
+ * Set the variant of the the accordion.
1419
+ */
1420
+ "modeVariant"?: 'primary' | 'secondary';
1421
+ }
1422
+ interface SddsAccordionItem {
1423
+ /**
1424
+ * Disabled option in `boolean`.
1425
+ */
1426
+ "disabled"?: boolean;
1427
+ /**
1428
+ * Changes where the expand icon is placed.
1429
+ */
1430
+ "expandIconPosition"?: 'start' | 'end';
1431
+ /**
1432
+ * Set to true to expand panel open
1433
+ */
1434
+ "expanded"?: boolean;
1435
+ /**
1436
+ * The header gives users the context about the additional information available inside the panel
1437
+ */
1438
+ "header"?: string;
1439
+ /**
1440
+ * Fires after the accordion item is closed or opened, emitting the value (as boolean) of the current state of the accordion
1441
+ */
1442
+ "onAccordionItemToggle"?: (event: SddsAccordionItemCustomEvent<boolean>) => void;
1443
+ /**
1444
+ * When true 16px on right padding instead of 64px
1445
+ */
1446
+ "paddingReset"?: boolean;
1447
+ }
1448
+ interface SddsBadges {
1449
+ /**
1450
+ * Changes visibility of badge
1451
+ */
1452
+ "hidden"?: boolean;
1453
+ /**
1454
+ * @deprecated Use size prop instead. Changes badge from large to small size
1455
+ */
1456
+ "isSmall"?: boolean;
1457
+ /**
1458
+ * Sets component size.
1459
+ */
1460
+ "size"?: 'lg' | 'sm';
1461
+ /**
1462
+ * Value shown in badge
1463
+ */
1464
+ "value"?: string;
1465
+ }
1466
+ interface SddsBanner {
1467
+ /**
1468
+ * ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for banner close events you need to set this ID yourself to identify the banner, as the default ID is random and will be different every time.
1469
+ */
1470
+ "bannerId"?: string;
1471
+ /**
1472
+ * Header text.
1473
+ */
1474
+ "header"?: string;
1475
+ /**
1476
+ * Hides the banner
1477
+ */
1478
+ "hidden"?: boolean;
1479
+ /**
1480
+ * Href for the link
1481
+ */
1482
+ "href"?: string;
1483
+ /**
1484
+ * Name of the icon for the component. For error and information type the icon is predefined.
1485
+ */
1486
+ "icon"?: string;
1487
+ /**
1488
+ * 'noopener' is a security measure for legacy browsers that preventsthe opened page from getting access to the original page when using target='_blank'.
1489
+ */
1490
+ "linkRel"?: string;
1491
+ /**
1492
+ * Where to open the linked URL
1493
+ */
1494
+ "linkTarget"?: '_self' | '_blank' | '_parent' | '_top';
1495
+ /**
1496
+ * Link text.
1497
+ */
1498
+ "linkText"?: string;
1499
+ /**
1500
+ * Sends unique banner identifier when the close button is pressed.
1501
+ */
1502
+ "onSddsClose"?: (event: SddsBannerCustomEvent<{
1503
+ bannerId: string;
1504
+ hidden: boolean;
1505
+ }>) => void;
1506
+ /**
1507
+ * Removes the close button on the banner.
1508
+ */
1509
+ "persistent"?: boolean;
1510
+ /**
1511
+ * Subheader text.
1512
+ */
1513
+ "subheader"?: string;
1514
+ /**
1515
+ * Type of banner
1516
+ */
1517
+ "type"?: 'error' | 'information' | 'none';
1518
+ }
1519
+ interface SddsBlock {
1520
+ /**
1521
+ * Mode variant of the component, based on current mode.
1522
+ */
1523
+ "modeVariant"?: 'primary' | 'secondary';
1524
+ }
1525
+ interface SddsBodyCell {
1526
+ /**
1527
+ * Passing same cell key for all body cells which is used in head cell enables features of text align and hovering
1528
+ */
1529
+ "cellKey"?: any;
1530
+ /**
1531
+ * Value that will be presented as text inside a cell
1532
+ */
1533
+ "cellValue"?: string | number;
1534
+ /**
1535
+ * Disables internal padding. Useful when passing other components to cell.
1536
+ */
1537
+ "disablePadding"?: boolean;
1538
+ }
1539
+ interface SddsBreadcrumb {
1540
+ }
1541
+ interface SddsBreadcrumbItem {
1542
+ /**
1543
+ * Boolean for the current link
1544
+ */
1545
+ "current"?: boolean;
1546
+ /**
1547
+ * Toggle the disabled state for the breadcrumb
1548
+ */
1549
+ "disabled"?: boolean;
1550
+ /**
1551
+ * Href for the link
1552
+ */
1553
+ "href"?: string;
1554
+ }
1555
+ interface SddsButton {
1556
+ /**
1557
+ * Control for disabled state of component
1558
+ */
1559
+ "disabled"?: boolean;
1560
+ /**
1561
+ * When enabled, makes button take 100% width
1562
+ */
1563
+ "fullbleed"?: boolean;
1564
+ /**
1565
+ * Set the mode variant of the the button.
1566
+ */
1567
+ "modeVariant"?: 'primary' | 'secondary';
1568
+ "size"?: 'xs' | 'sm' | 'md' | 'lg';
1569
+ /**
1570
+ * Text inside a button
1571
+ */
1572
+ "text"?: string;
1573
+ /**
1574
+ * Type of button
1575
+ */
1576
+ "type"?: 'primary' | 'secondary' | 'ghost' | 'danger';
1577
+ }
1578
+ interface SddsCard {
1579
+ /**
1580
+ * Divider for the body
1581
+ */
1582
+ "bodyDivider"?: boolean;
1583
+ /**
1584
+ * Body image src
1585
+ */
1586
+ "bodyImg"?: string;
1587
+ /**
1588
+ * Alt text for the body image
1589
+ */
1590
+ "bodyImgAlt"?: string;
1591
+ /**
1592
+ * ID for the card, must be unique. **NOTE**: If you're listening for card events you need to set this ID yourself to identify the card, as the default ID is random and will be different every time.
1593
+ */
1594
+ "cardId"?: string;
1595
+ /**
1596
+ * Makes the card clickable.
1597
+ */
1598
+ "clickable"?: boolean;
1599
+ /**
1600
+ * Text in the header
1601
+ */
1602
+ "header"?: string;
1603
+ /**
1604
+ * Header image src
1605
+ */
1606
+ "headerImg"?: string;
1607
+ /**
1608
+ * Alt text for the header image
1609
+ */
1610
+ "headerImgAlt"?: string;
1611
+ /**
1612
+ * Placement of the header
1613
+ */
1614
+ "headerPlacement"?: 'above' | 'below';
1615
+ /**
1616
+ * Variant of the card based on the theme used.
1617
+ */
1618
+ "modeVariant"?: 'primary' | 'secondary';
1619
+ /**
1620
+ * Sends unique card identifier when the card is clicked, if clickable=true
1621
+ */
1622
+ "onSddsClick"?: (event: SddsCardCustomEvent<{
1623
+ cardId: string;
1624
+ }>) => void;
1625
+ /**
1626
+ * Subheader text in the header
1627
+ */
1628
+ "subheader"?: string;
1629
+ }
1630
+ interface SddsCheckbox {
1631
+ /**
1632
+ * ID for the checkbox's input element. Randomly generated if not specified.
1633
+ */
1634
+ "checkboxId"?: string;
1635
+ /**
1636
+ * Sets the checkbox as checked
1637
+ */
1638
+ "checked"?: boolean;
1639
+ /**
1640
+ * Sets the checkbox in a disabled state
1641
+ */
1642
+ "disabled"?: boolean;
1643
+ /**
1644
+ * Name for the checkbox's input element.
1645
+ */
1646
+ "name"?: string;
1647
+ /**
1648
+ * Blur event for the checkbox
1649
+ */
1650
+ "onSddsBlur"?: (event: SddsCheckboxCustomEvent<FocusEvent>) => void;
1651
+ /**
1652
+ * Sends unique checkbox identifier and checked status when it is checked/unchecked.
1653
+ */
1654
+ "onSddsChange"?: (event: SddsCheckboxCustomEvent<{
1655
+ checkboxId: string;
1656
+ checked: boolean;
1657
+ value?: string;
1658
+ }>) => void;
1659
+ /**
1660
+ * Focus event for the checkbox
1661
+ */
1662
+ "onSddsFocus"?: (event: SddsCheckboxCustomEvent<FocusEvent>) => void;
1663
+ /**
1664
+ * Make the checkbox required
1665
+ */
1666
+ "required"?: boolean;
1667
+ /**
1668
+ * Value for the checkbox
1669
+ */
1670
+ "value"?: string;
1671
+ }
1672
+ interface SddsDatetime {
1673
+ /**
1674
+ * Autofocus for input
1675
+ */
1676
+ "autofocus"?: boolean;
1677
+ /**
1678
+ * Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for date-time: YY-MM-DDTHH-MM
1679
+ */
1680
+ "defaultValue"?: string | 'none';
1681
+ /**
1682
+ * Set input in disabled state
1683
+ */
1684
+ "disabled"?: boolean;
1685
+ /**
1686
+ * Helper text for the component
1687
+ */
1688
+ "helper"?: string;
1689
+ /**
1690
+ * Label text for the component
1691
+ */
1692
+ "label"?: string;
1693
+ /**
1694
+ * Set the variant of the the datetime component.
1695
+ */
1696
+ "modeVariant"?: 'primary' | 'secondary';
1697
+ /**
1698
+ * Name property
1699
+ */
1700
+ "name"?: string;
1701
+ /**
1702
+ * With setting
1703
+ */
1704
+ "noMinWidth"?: boolean;
1705
+ /**
1706
+ * Change event for the datetime
1707
+ */
1708
+ "onCustomChange"?: (event: SddsDatetimeCustomEvent<any>) => void;
1709
+ /**
1710
+ * Size of the input
1711
+ */
1712
+ "size"?: 'sm' | 'md' | '';
1713
+ /**
1714
+ * Error state of input
1715
+ */
1716
+ "state"?: string;
1717
+ /**
1718
+ * Which input type, text, password or similar
1719
+ */
1720
+ "type"?: 'datetime-local' | 'date' | 'time';
1721
+ /**
1722
+ * Value of the input text
1723
+ */
1724
+ "value"?: string;
1725
+ }
1726
+ interface SddsDropdown {
1727
+ /**
1728
+ * Add the value of the option as string to set it as default
1729
+ */
1730
+ "defaultOption"?: string;
1731
+ /**
1732
+ * Set to true for disabled states
1733
+ */
1734
+ "disabled"?: boolean;
1735
+ /**
1736
+ * Add helper text in the bottom of dropdown
1737
+ */
1738
+ "helper"?: string;
1739
+ /**
1740
+ * Set to true to make the width following the label text length
1741
+ */
1742
+ "inline"?: boolean;
1743
+ /**
1744
+ * Label text for label inside & outside
1745
+ */
1746
+ "label"?: string;
1747
+ /**
1748
+ * Controls position of label
1749
+ */
1750
+ "labelPosition"?: 'no-label' | 'inside' | 'outside';
1751
+ /**
1752
+ * Set the variant of the the dropdown.
1753
+ */
1754
+ "modeVariant"?: 'primary' | 'secondary';
1755
+ "onInputSearch"?: (event: SddsDropdownCustomEvent<any>) => void;
1756
+ /**
1757
+ * Direction that the dropdown will open. By default set to auto.
1758
+ */
1759
+ "openDirection"?: 'down' | 'up' | 'auto';
1760
+ /**
1761
+ * Placeholder text for dropdown with no selectedLabel item
1762
+ */
1763
+ "placeholder"?: string;
1764
+ /**
1765
+ * Add the value of the option as string to set it as new selected value
1766
+ */
1767
+ "selectedOption"?: string;
1768
+ /**
1769
+ * Controls the size of dropdown. 'sm', 'md' and 'lg' correct values and 'small', 'medium' and 'large' are deprecated
1770
+ */
1771
+ "size"?: 'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large';
1772
+ /**
1773
+ * Support `error` state
1774
+ */
1775
+ "state"?: string;
1776
+ /**
1777
+ * `Controls type of dropdown.
1778
+ */
1779
+ "type"?: 'default' | 'multiselect' | 'filter';
1780
+ }
1781
+ interface SddsDropdownFilter {
1782
+ /**
1783
+ * Data is an array of objects that contains label and value `data = [{label:'Option 1', value:'opt-1'},{label:'Option 2', value:'opt-2'}]`
1784
+ */
1785
+ "data"?: string;
1786
+ /**
1787
+ * Add the value of the option to set it as default
1788
+ */
1789
+ "defaultOption"?: string;
1790
+ /**
1791
+ * Add the value of the option to set it as default
1792
+ */
1793
+ "disabled"?: boolean;
1794
+ /**
1795
+ * Add helper text in the bottom of dropdown
1796
+ */
1797
+ "helper"?: string;
1798
+ /**
1799
+ * Set to true to make the width following the label text length
1800
+ */
1801
+ "inline"?: boolean;
1802
+ /**
1803
+ * Label for dropdown with no selected item
1804
+ */
1805
+ "label"?: string;
1806
+ /**
1807
+ * Position of label
1808
+ */
1809
+ "labelPosition"?: 'no-label' | 'inside' | 'outside';
1810
+ /**
1811
+ * Placeholder text for dropdown with no selected item
1812
+ */
1813
+ "placeholder"?: string;
1814
+ /**
1815
+ * Add the value of the option as string to set it as new selected value
1816
+ */
1817
+ "selectedOption"?: string;
1818
+ /**
1819
+ * Controls the size of dropdown. 'sm', 'md' and 'lg' correct values and 'small', 'medium' and 'large' are deprecated
1820
+ */
1821
+ "size"?: 'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large';
1822
+ /**
1823
+ * Support `error` state
1824
+ */
1825
+ "state"?: string;
1826
+ }
1827
+ interface SddsDropdownOption {
1828
+ /**
1829
+ * Sets option to disabled state if true
1830
+ */
1831
+ "disabled"?: boolean;
1832
+ "onSelectOption"?: (event: SddsDropdownOptionCustomEvent<any>) => void;
1833
+ /**
1834
+ * Selected set to true if selected
1835
+ */
1836
+ "selected"?: boolean;
1837
+ /**
1838
+ * Value is a unique string that will be used for application logic
1839
+ */
1840
+ "value"?: string;
1841
+ }
1842
+ interface SddsHeaderCell {
1843
+ /**
1844
+ * Value of column key, usually comes from JSON, needed for sorting
1845
+ */
1846
+ "columnKey"?: string;
1847
+ /**
1848
+ * Text that displays in column cell
1849
+ */
1850
+ "columnTitle"?: string;
1851
+ /**
1852
+ * In case noMinWidth setting, user has to specify width value for each column, for example "150px"
1853
+ */
1854
+ "customWidth"?: string;
1855
+ /**
1856
+ * Sends unique table identifier, column key so the body cells with the same key change background when user hovers over header cell
1857
+ */
1858
+ "onHeadCellHoverEvent"?: (event: SddsHeaderCellCustomEvent<any>) => void;
1859
+ /**
1860
+ * Sends unique table identifier,column key and sorting direction to the sdds-table-body component
1861
+ */
1862
+ "onSortColumnDataEvent"?: (event: SddsHeaderCellCustomEvent<any>) => void;
1863
+ /**
1864
+ * Sends unique table identifier, column key and text align value so the body cells with same key take the same text alignment as header cell
1865
+ */
1866
+ "onTextAlignEvent"?: (event: SddsHeaderCellCustomEvent<any>) => void;
1867
+ /**
1868
+ * If passed as prop, enables sorting on that column
1869
+ */
1870
+ "sortable"?: boolean;
1871
+ /**
1872
+ * Setting for text align, default is left, but user can pass "right" as string - useful for numeric values
1873
+ */
1874
+ "textAlign"?: string;
1875
+ }
1876
+ interface SddsIcon {
1877
+ /**
1878
+ * Pass a name of the icon. For icon names, refer to https://digitaldesign.scania.com/foundations/icons/icon-library or storybook
1879
+ */
1880
+ "name"?: string;
1881
+ /**
1882
+ * Pass a size of icon as a string, for example: 32px, 1rem, 4em...
1883
+ */
1884
+ "size"?: string;
1885
+ }
1886
+ interface SddsInlineTab {
1887
+ "default"?: boolean;
1888
+ "disabled"?: boolean;
1889
+ "label"?: string;
1890
+ }
1891
+ interface SddsInlineTabs {
1892
+ /**
1893
+ * different height settings. right now only supports "auto", otherwise ignored
1894
+ */
1895
+ "autoHeight"?: boolean;
1896
+ /**
1897
+ * either use this (default-tab="...") or read attribute "default" from one of the slotted children.
1898
+ */
1899
+ "defaultTab"?: string;
1900
+ /**
1901
+ * Variant of the tabs, primary= on white, secondary= on grey50
1902
+ */
1903
+ "modeVariant"?: 'primary' | 'secondary';
1904
+ }
1905
+ interface SddsInlineTabsFullbleed {
1906
+ /**
1907
+ * Variant of the tabs, primary= on white, secondary= on grey50
1908
+ */
1909
+ "modeVariant"?: 'primary' | 'secondary';
1910
+ }
1911
+ interface SddsLink {
1912
+ /**
1913
+ * Disables the link
1914
+ */
1915
+ "disabled"?: boolean;
1916
+ /**
1917
+ * URL for the link
1918
+ */
1919
+ "href"?: string;
1920
+ /**
1921
+ * 'noopener' is a security measure for legacy browsers that preventsthe opened page from getting access to the original page when using target='_blank'.
1922
+ */
1923
+ "rel"?: string;
1924
+ /**
1925
+ * Where to open the linked URL
1926
+ */
1927
+ "target"?: '_self' | '_blank' | '_parent' | '_top';
1928
+ /**
1929
+ * Displays the link with an underline.
1930
+ */
1931
+ "underline"?: boolean;
1932
+ }
1933
+ interface SddsMessage {
1934
+ /**
1935
+ * Header text for the component.
1936
+ */
1937
+ "header"?: string;
1938
+ /**
1939
+ * Minimal message styling.
1940
+ */
1941
+ "minimal"?: boolean;
1942
+ /**
1943
+ * Variant of the component, based on current mode.
1944
+ */
1945
+ "modeVariant"?: 'primary' | 'secondary';
1946
+ /**
1947
+ * Removes the icon in the message.
1948
+ */
1949
+ "noIcon"?: boolean;
1950
+ /**
1951
+ * Type of message.
1952
+ */
1953
+ "type"?: 'information' | 'error' | 'warning' | 'success';
1954
+ }
1955
+ interface SddsModal {
1956
+ /**
1957
+ * Sticky or Static Actions
1958
+ */
1959
+ "actions"?: 'sticky' | 'static';
1960
+ "open"?: boolean;
1961
+ /**
1962
+ * Disables closing modal on clicking on overlay area.
1963
+ */
1964
+ "prevent"?: boolean;
1965
+ /**
1966
+ * Size of modal
1967
+ */
1968
+ "size"?: 'xs' | 'sm' | 'md' | 'lg';
1969
+ }
1970
+ interface SddsNavigationTabs {
1971
+ /**
1972
+ * Variant of the tabs, primary= on white, secondary= on grey50
1973
+ */
1974
+ "modeVariant"?: 'primary' | 'secondary';
1975
+ }
1976
+ interface SddsPopoverCanvas {
1977
+ /**
1978
+ * Sets the offset distance
1979
+ */
1980
+ "offsetDistance"?: number;
1981
+ /**
1982
+ * Sets the offset skidding
1983
+ */
1984
+ "offsetSkidding"?: number;
1985
+ /**
1986
+ * Decides the placement of the Popover Canvas
1987
+ */
1988
+ "placement"?: Placement;
1989
+ /**
1990
+ * Element that will trigger the popover (takes priority over selector)
1991
+ */
1992
+ "referenceEl"?: HTMLElement;
1993
+ /**
1994
+ * The CSS-selector for an element that will trigger the popover
1995
+ */
1996
+ "selector"?: string;
1997
+ /**
1998
+ * Decides if the Popover Canvas should be visible from the start
1999
+ */
2000
+ "show"?: boolean;
2001
+ }
2002
+ interface SddsPopoverMenu {
2003
+ /**
2004
+ * Sets the offset distance
2005
+ */
2006
+ "offsetDistance"?: number;
2007
+ /**
2008
+ * Sets the offset skidding
2009
+ */
2010
+ "offsetSkidding"?: number;
2011
+ /**
2012
+ * Decides the placement of the Popover Menu
2013
+ */
2014
+ "placement"?: Placement;
2015
+ /**
2016
+ * Element that will trigger the popover (takes priority over selector)
2017
+ */
2018
+ "referenceEl"?: HTMLElement;
2019
+ /**
2020
+ * The CSS-selector for an element that will trigger the popover
2021
+ */
2022
+ "selector"?: string;
2023
+ /**
2024
+ * Decides if the Popover Menu should be visible from the start
2025
+ */
2026
+ "show"?: boolean;
2027
+ }
2028
+ interface SddsRadioButton {
2029
+ /**
2030
+ * Decides if the radio button is checked or not.
2031
+ */
2032
+ "checked"?: boolean;
2033
+ /**
2034
+ * Decides if the radio button is disabled or not.
2035
+ */
2036
+ "disabled"?: boolean;
2037
+ /**
2038
+ * Name of radio button, used for reference.
2039
+ */
2040
+ "name"?: string;
2041
+ /**
2042
+ * Sends unique radio button identifier and status when it is checked. If no ID is specified a random one will be generated. To use this listener don't use the randomized ID, use a specific one of your choosing.
2043
+ */
2044
+ "onSddsChange"?: (event: SddsRadioButtonCustomEvent<{
2045
+ radioId: string;
2046
+ value: string;
2047
+ }>) => void;
2048
+ /**
2049
+ * Unique radio button identifier.
2050
+ */
2051
+ "radioId"?: string;
2052
+ /**
2053
+ * Decides if the radio button is required or not.
2054
+ */
2055
+ "required"?: boolean;
2056
+ /**
2057
+ * Value of input.
2058
+ */
2059
+ "value"?: string;
2060
+ }
2061
+ interface SddsSlider {
2062
+ /**
2063
+ * Decide to show the controls or not
2064
+ */
2065
+ "controls"?: boolean;
2066
+ /**
2067
+ * Sets the disabled state for the whole component
2068
+ */
2069
+ "disabled"?: boolean;
2070
+ /**
2071
+ * Decide to show the input field or not
2072
+ */
2073
+ "input"?: boolean;
2074
+ /**
2075
+ * Text for label
2076
+ */
2077
+ "label"?: string;
2078
+ /**
2079
+ * Maximum value
2080
+ */
2081
+ "max"?: string;
2082
+ /**
2083
+ * Minimum value
2084
+ */
2085
+ "min"?: string;
2086
+ /**
2087
+ * Name property (will be inherited by the native slider component)
2088
+ */
2089
+ "name"?: string;
2090
+ /**
2091
+ * Sends unique checkbox identifier and value when the slider has a change in value.
2092
+ */
2093
+ "onSddsChange"?: (event: SddsSliderCustomEvent<{
2094
+ value: string;
2095
+ }>) => void;
2096
+ /**
2097
+ * Sets the read only state for the whole component
2098
+ */
2099
+ "readOnly"?: boolean;
2100
+ /**
2101
+ * Decide to show numbers above the tick markers or not
2102
+ */
2103
+ "showTickNumbers"?: boolean;
2104
+ /**
2105
+ * Sets the size of the scrubber
2106
+ */
2107
+ "size"?: 'sm' | '';
2108
+ /**
2109
+ * Id for the sliders input element, randomly generated if not specified.
2110
+ */
2111
+ "sliderId"?: string;
2112
+ /**
2113
+ * Snap to the ticks grid
2114
+ */
2115
+ "snap"?: boolean;
2116
+ /**
2117
+ * Defines how much to increment/decrement the value when using controls
2118
+ */
2119
+ "step"?: string;
2120
+ /**
2121
+ * Number of tick markers (tick for min- and max-value will be added automatically)
2122
+ */
2123
+ "ticks"?: string;
2124
+ /**
2125
+ * Decide to show the tooltip or not
2126
+ */
2127
+ "tooltip"?: boolean;
2128
+ /**
2129
+ * Initial value
2130
+ */
2131
+ "value"?: string;
2132
+ }
2133
+ interface SddsSpinner {
2134
+ /**
2135
+ * Size of spinner
2136
+ */
2137
+ "size"?: 'xs' | 'sm' | 'md' | 'lg';
2138
+ /**
2139
+ * Variant of spinner
2140
+ */
2141
+ "variant"?: 'standard' | 'inverted';
2142
+ }
2143
+ interface SddsTable {
2144
+ /**
2145
+ * Enables style where data-table toolbar, rows and footer are less high
2146
+ */
2147
+ "compactDesign"?: boolean;
2148
+ /**
2149
+ * Enables extended row feature of data-table
2150
+ */
2151
+ "enableExpandableRows"?: boolean;
2152
+ /**
2153
+ * Enables multiselect feature of data-table
2154
+ */
2155
+ "enableMultiselect"?: boolean;
2156
+ /**
2157
+ * Enables table to take 100% available width with equal spacing of columns
2158
+ */
2159
+ "enableResponsive"?: boolean;
2160
+ /**
2161
+ * Variant of the component, based on current mode.
2162
+ */
2163
+ "modeVariant"?: 'primary' | 'secondary';
2164
+ /**
2165
+ * Enables to customise width on data-table columns
2166
+ */
2167
+ "noMinWidth"?: boolean;
2168
+ /**
2169
+ * Broadcasts changes to the tables props
2170
+ */
2171
+ "onTablePropsChangedEvent"?: (event: SddsTableCustomEvent<TablePropsChangedEvent>) => void;
2172
+ /**
2173
+ * ID used for internal table functionality and events, must be unique. **NOTE**: If you're listening for table events you need to set this ID yourself to identify the table, as the default ID is random and will be different every time.
2174
+ */
2175
+ "tableId"?: string;
2176
+ /**
2177
+ * Enables style with vertical dividers between columns
2178
+ */
2179
+ "verticalDividers"?: boolean;
2180
+ }
2181
+ interface SddsTableBody {
2182
+ /**
2183
+ * Prop to pass JSON string which enables automatic rendering of table rows and cells
2184
+ */
2185
+ "bodyData"?: any;
2186
+ /**
2187
+ * Disables inbuilt filtering logic, leaving user an option to create own filter functionality while listening to events from sdds-table-toolbar component for search term
2188
+ */
2189
+ "disableFilteringFunction"?: boolean;
2190
+ /**
2191
+ * Disables inbuilt sorting logic, leaving user an option to create own sorting functionality while listening to events from sdds-header-cell component for sorting
2192
+ */
2193
+ "disableSortingFunction"?: boolean;
2194
+ /**
2195
+ * Prop for showcase of rendering JSON in body-data, just for presentation purposes
2196
+ */
2197
+ "enableDummyData"?: boolean;
2198
+ /**
2199
+ * Event that sends unique table identifier and enable/disable status for sorting functionality
2200
+ */
2201
+ "onSortingSwitcherEvent"?: (event: SddsTableBodyCustomEvent<any>) => void;
2202
+ /**
2203
+ * Sends unique table identifier and mainCheckbox status to all rows when multiselect feature is enabled
2204
+ */
2205
+ "onUpdateBodyCheckboxesEvent"?: (event: SddsTableBodyCustomEvent<any>) => void;
2206
+ /**
2207
+ * Sends unique table identifier and status if mainCheckbox should change its state based on selection status of single rows when multiselect feature is used
2208
+ */
2209
+ "onUpdateMainCheckboxEvent"?: (event: SddsTableBodyCustomEvent<any>) => void;
2210
+ }
2211
+ interface SddsTableBodyRow {
2212
+ /**
2213
+ * Send status of single row to the parent, sdds-table component that hold logic for data export and main checkbox control
2214
+ */
2215
+ "onBodyRowToTable"?: (event: SddsTableBodyRowCustomEvent<boolean>) => void;
2216
+ /**
2217
+ * Event that triggers pagination function. Needed as first rows have to be rendered in order for pagination to run
2218
+ */
2219
+ "onRunPaginationEvent"?: (event: SddsTableBodyRowCustomEvent<string>) => void;
2220
+ }
2221
+ interface SddsTableBodyRowExpandable {
2222
+ /**
2223
+ * In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
2224
+ */
2225
+ "colSpan"?: number;
2226
+ /**
2227
+ * Event that triggers pagination function. Needed as first rows have to be rendered in order for pagination to run
2228
+ */
2229
+ "onRunPaginationEvent"?: (event: SddsTableBodyRowExpandableCustomEvent<string>) => void;
2230
+ /**
2231
+ * Sends out status of itw own expended status feature to table header component
2232
+ */
2233
+ "onSingleRowExpandedEvent"?: (event: SddsTableBodyRowExpandableCustomEvent<any>) => void;
2234
+ }
2235
+ interface SddsTableFooter {
2236
+ /**
2237
+ * Prop for client to set max number of pages
2238
+ */
2239
+ "clientMaxPages"?: number;
2240
+ /**
2241
+ * Prop for client to set current page number
2242
+ */
2243
+ "clientPaginationValue"?: number;
2244
+ /**
2245
+ * In case that automatic count of columns does not work, user can manually set this one. Take in mind that expandable control is column too
2246
+ */
2247
+ "clientSetColumnsNumber"?: number;
2248
+ /**
2249
+ * Disables inbuilt pagination logic, leaving user an option to create own pagination functionality while listening to events from sdds-table-footer component
2250
+ */
2251
+ "disablePaginationFunction"?: boolean;
2252
+ /**
2253
+ * Prop to enable client controlled pagination
2254
+ */
2255
+ "enableClientPagination"?: boolean;
2256
+ /**
2257
+ * Enable pagination and show pagination controls
2258
+ */
2259
+ "enablePagination"?: boolean;
2260
+ /**
2261
+ * Event to send current page value back to sdds-table-body component
2262
+ */
2263
+ "onCurrentPageValueEvent"?: (event: SddsTableFooterCustomEvent<any>) => void;
2264
+ /**
2265
+ * Event that footer sends out in order to receive other necessary information from other subcomponents
2266
+ */
2267
+ "onEnablePaginationEvent"?: (event: SddsTableFooterCustomEvent<any>) => void;
2268
+ /**
2269
+ * Sets how many rows to display when pagination is enabled
2270
+ */
2271
+ "rowsPerPage"?: number;
2272
+ }
2273
+ interface SddsTableHeader {
2274
+ /**
2275
+ * Send status of main checkbox in header to the parent, sdds-table component
2276
+ */
2277
+ "onMainCheckboxSelectedEvent"?: (event: SddsTableHeaderCustomEvent<any>) => void;
2278
+ }
2279
+ interface SddsTableToolbar {
2280
+ /**
2281
+ * Enables preview of searchbar
2282
+ */
2283
+ "enableFiltering"?: boolean;
2284
+ /**
2285
+ * Used for sending users input to main parent <sdds-table> component
2286
+ */
2287
+ "onTableFilteringTerm"?: (event: SddsTableToolbarCustomEvent<any>) => void;
2288
+ /**
2289
+ * Adds title to the data-table
2290
+ */
2291
+ "tableTitle"?: string;
2292
+ }
2293
+ interface SddsTextarea {
2294
+ /**
2295
+ * Control of autofocus
2296
+ */
2297
+ "autoFocus"?: boolean;
2298
+ /**
2299
+ * Textarea cols attribute
2300
+ */
2301
+ "cols"?: number;
2302
+ /**
2303
+ * Set input in disabled state
2304
+ */
2305
+ "disabled"?: boolean;
2306
+ /**
2307
+ * Helper text
2308
+ */
2309
+ "helper"?: string;
2310
+ /**
2311
+ * Label text
2312
+ */
2313
+ "label"?: string;
2314
+ /**
2315
+ * Position of the label for the textfield.
2316
+ */
2317
+ "labelPosition"?: 'inside' | 'outside' | 'no-label';
2318
+ /**
2319
+ * Max length of input
2320
+ */
2321
+ "maxLength"?: number;
2322
+ /**
2323
+ * Mode variant of the textarea
2324
+ */
2325
+ "modeVariant"?: 'primary' | 'secondary';
2326
+ /**
2327
+ * Name attribute
2328
+ */
2329
+ "name"?: string;
2330
+ /**
2331
+ * Blur event for the textarea
2332
+ */
2333
+ "onSddsBlur"?: (event: SddsTextareaCustomEvent<FocusEvent>) => void;
2334
+ /**
2335
+ * Change event for the textarea
2336
+ */
2337
+ "onSddsChange"?: (event: SddsTextareaCustomEvent<any>) => void;
2338
+ /**
2339
+ * Focus event for the textarea
2340
+ */
2341
+ "onSddsFocus"?: (event: SddsTextareaCustomEvent<FocusEvent>) => void;
2342
+ /**
2343
+ * Input event for the textarea
2344
+ */
2345
+ "onSddsInput"?: (event: SddsTextareaCustomEvent<InputEvent>) => void;
2346
+ /**
2347
+ * Placeholder text
2348
+ */
2349
+ "placeholder"?: string;
2350
+ /**
2351
+ * Set input in readonly state
2352
+ */
2353
+ "readOnly"?: boolean;
2354
+ /**
2355
+ * Textarea rows attribute
2356
+ */
2357
+ "rows"?: number;
2358
+ /**
2359
+ * Error state of input
2360
+ */
2361
+ "state"?: 'error' | 'success' | 'default';
2362
+ /**
2363
+ * Value of the input text
2364
+ */
2365
+ "value"?: string;
2366
+ }
2367
+ interface SddsTextfield {
2368
+ /**
2369
+ * Autofocus for input
2370
+ */
2371
+ "autofocus"?: boolean;
2372
+ /**
2373
+ * Set input in disabled state
2374
+ */
2375
+ "disabled"?: boolean;
2376
+ /**
2377
+ * Helper text
2378
+ */
2379
+ "helper"?: string;
2380
+ /**
2381
+ * Label text
2382
+ */
2383
+ "label"?: string;
2384
+ /**
2385
+ * Position of the label for the textfield.
2386
+ */
2387
+ "labelPosition"?: 'inside' | 'outside' | 'no-label';
2388
+ /**
2389
+ * Max length of input
2390
+ */
2391
+ "maxLength"?: number;
2392
+ /**
2393
+ * Mode variant of the textfield
2394
+ */
2395
+ "modeVariant"?: 'primary' | 'secondary';
2396
+ /**
2397
+ * Name property
2398
+ */
2399
+ "name"?: string;
2400
+ /**
2401
+ * With setting
2402
+ */
2403
+ "noMinWidth"?: boolean;
2404
+ /**
2405
+ * Blur event for the textfield
2406
+ */
2407
+ "onSddsBlur"?: (event: SddsTextfieldCustomEvent<FocusEvent>) => void;
2408
+ /**
2409
+ * Change event for the textfield
2410
+ */
2411
+ "onSddsChange"?: (event: SddsTextfieldCustomEvent<any>) => void;
2412
+ /**
2413
+ * Focus event for the textfield
2414
+ */
2415
+ "onSddsFocus"?: (event: SddsTextfieldCustomEvent<FocusEvent>) => void;
2416
+ /**
2417
+ * Input event for the textfield
2418
+ */
2419
+ "onSddsInput"?: (event: SddsTextfieldCustomEvent<InputEvent>) => void;
2420
+ /**
2421
+ * Placeholder text
2422
+ */
2423
+ "placeholder"?: string;
2424
+ /**
2425
+ * Set input in readonly state
2426
+ */
2427
+ "readOnly"?: boolean;
2428
+ /**
2429
+ * Size of the input
2430
+ */
2431
+ "size"?: 'sm' | 'md' | 'lg';
2432
+ /**
2433
+ * Error state of input
2434
+ */
2435
+ "state"?: 'error' | 'success' | 'default';
2436
+ /**
2437
+ * Which input type, text, password or similar
2438
+ */
2439
+ "type"?: 'text' | 'password';
2440
+ /**
2441
+ * Value of the input text
2442
+ */
2443
+ "value"?: string;
2444
+ }
2445
+ interface SddsToast {
2446
+ /**
2447
+ * Header text for the component.
2448
+ */
2449
+ "header"?: string;
2450
+ /**
2451
+ * Hides the toast.
2452
+ */
2453
+ "hidden"?: boolean;
2454
+ /**
2455
+ * Sends unique toast identifier component is closed.
2456
+ */
2457
+ "onSddsClose"?: (event: SddsToastCustomEvent<{
2458
+ toastId: string;
2459
+ }>) => void;
2460
+ /**
2461
+ * ARIA role for the toast.
2462
+ */
2463
+ "role"?: 'alert' | 'log' | 'status';
2464
+ /**
2465
+ * Subheader text for the component.
2466
+ */
2467
+ "subheader"?: string;
2468
+ /**
2469
+ * ID for the toast. Randomly generated if not specified.
2470
+ */
2471
+ "toastId"?: string;
2472
+ /**
2473
+ * Type of toast.
2474
+ */
2475
+ "type"?: 'information' | 'error' | 'warning' | 'success';
2476
+ }
2477
+ interface SddsToggle {
2478
+ /**
2479
+ * Aria-describedby for the toggles input element.
2480
+ */
2481
+ "ariaDescribedby"?: string;
2482
+ /**
2483
+ * Aria-labelledby for the toggles input element.
2484
+ */
2485
+ "ariaLabelledby"?: string;
2486
+ /**
2487
+ * Sets the toggle as checked
2488
+ */
2489
+ "checked"?: boolean;
2490
+ /**
2491
+ * Sets the toggle in a disabled state
2492
+ */
2493
+ "disabled"?: boolean;
2494
+ /**
2495
+ * Headline for the toggle
2496
+ */
2497
+ "headline"?: string;
2498
+ /**
2499
+ * Label for the toggle
2500
+ */
2501
+ "label"?: string;
2502
+ /**
2503
+ * Name of the toggles input element
2504
+ */
2505
+ "name"?: string;
2506
+ /**
2507
+ * Sends unique toggle identifier and status when it is toggled.
2508
+ */
2509
+ "onSddsToggleChangeEvent"?: (event: SddsToggleCustomEvent<{
2510
+ toggleId: string;
2511
+ checked: boolean;
2512
+ }>) => void;
2513
+ /**
2514
+ * Make the toggle required
2515
+ */
2516
+ "required"?: boolean;
2517
+ /**
2518
+ * Size of the toggle
2519
+ */
2520
+ "size"?: 'sm' | 'lg';
2521
+ /**
2522
+ * ID of the toggles input element, if not specifed it's randomly generated
2523
+ */
2524
+ "toggleId"?: string;
2525
+ }
2526
+ interface SddsTooltip {
2527
+ /**
2528
+ * Allow mouse over tooltip. Useful when tooltip contains clickable elements like link or button.
2529
+ */
2530
+ "mouseOverTooltip"?: boolean;
2531
+ /**
2532
+ * Placement of tooltip.
2533
+ */
2534
+ "placement"?: Placement;
2535
+ /**
2536
+ * Element that will trigger the tooltip (takes priority over selector)
2537
+ */
2538
+ "referenceEl"?: HTMLElement;
2539
+ /**
2540
+ * The CSS-selector for an element that will trigger the tooltip
2541
+ */
2542
+ "selector"?: string;
2543
+ /**
2544
+ * Prop in control of showing and hiding prop
2545
+ */
2546
+ "show"?: boolean;
2547
+ /**
2548
+ * In case tooltip contains only text, no HTML, text can be passed by this prop
2549
+ */
2550
+ "text"?: string;
2551
+ }
2552
+ interface IntrinsicElements {
2553
+ "sdds-accordion": SddsAccordion;
2554
+ "sdds-accordion-item": SddsAccordionItem;
2555
+ "sdds-badges": SddsBadges;
2556
+ "sdds-banner": SddsBanner;
2557
+ "sdds-block": SddsBlock;
2558
+ "sdds-body-cell": SddsBodyCell;
2559
+ "sdds-breadcrumb": SddsBreadcrumb;
2560
+ "sdds-breadcrumb-item": SddsBreadcrumbItem;
2561
+ "sdds-button": SddsButton;
2562
+ "sdds-card": SddsCard;
2563
+ "sdds-checkbox": SddsCheckbox;
2564
+ "sdds-datetime": SddsDatetime;
2565
+ "sdds-dropdown": SddsDropdown;
2566
+ "sdds-dropdown-filter": SddsDropdownFilter;
2567
+ "sdds-dropdown-option": SddsDropdownOption;
2568
+ "sdds-header-cell": SddsHeaderCell;
2569
+ "sdds-icon": SddsIcon;
2570
+ "sdds-inline-tab": SddsInlineTab;
2571
+ "sdds-inline-tabs": SddsInlineTabs;
2572
+ "sdds-inline-tabs-fullbleed": SddsInlineTabsFullbleed;
2573
+ "sdds-link": SddsLink;
2574
+ "sdds-message": SddsMessage;
2575
+ "sdds-modal": SddsModal;
2576
+ "sdds-navigation-tabs": SddsNavigationTabs;
2577
+ "sdds-popover-canvas": SddsPopoverCanvas;
2578
+ "sdds-popover-menu": SddsPopoverMenu;
2579
+ "sdds-radio-button": SddsRadioButton;
2580
+ "sdds-slider": SddsSlider;
2581
+ "sdds-spinner": SddsSpinner;
2582
+ "sdds-table": SddsTable;
2583
+ "sdds-table-body": SddsTableBody;
2584
+ "sdds-table-body-row": SddsTableBodyRow;
2585
+ "sdds-table-body-row-expandable": SddsTableBodyRowExpandable;
2586
+ "sdds-table-footer": SddsTableFooter;
2587
+ "sdds-table-header": SddsTableHeader;
2588
+ "sdds-table-toolbar": SddsTableToolbar;
2589
+ "sdds-textarea": SddsTextarea;
2590
+ "sdds-textfield": SddsTextfield;
2591
+ "sdds-toast": SddsToast;
2592
+ "sdds-toggle": SddsToggle;
2593
+ "sdds-tooltip": SddsTooltip;
2594
+ }
2595
+ }
2596
+ export { LocalJSX as JSX };
2597
+ declare module "@stencil/core" {
2598
+ export namespace JSX {
2599
+ interface IntrinsicElements {
2600
+ "sdds-accordion": LocalJSX.SddsAccordion & JSXBase.HTMLAttributes<HTMLSddsAccordionElement>;
2601
+ "sdds-accordion-item": LocalJSX.SddsAccordionItem & JSXBase.HTMLAttributes<HTMLSddsAccordionItemElement>;
2602
+ "sdds-badges": LocalJSX.SddsBadges & JSXBase.HTMLAttributes<HTMLSddsBadgesElement>;
2603
+ "sdds-banner": LocalJSX.SddsBanner & JSXBase.HTMLAttributes<HTMLSddsBannerElement>;
2604
+ "sdds-block": LocalJSX.SddsBlock & JSXBase.HTMLAttributes<HTMLSddsBlockElement>;
2605
+ "sdds-body-cell": LocalJSX.SddsBodyCell & JSXBase.HTMLAttributes<HTMLSddsBodyCellElement>;
2606
+ "sdds-breadcrumb": LocalJSX.SddsBreadcrumb & JSXBase.HTMLAttributes<HTMLSddsBreadcrumbElement>;
2607
+ "sdds-breadcrumb-item": LocalJSX.SddsBreadcrumbItem & JSXBase.HTMLAttributes<HTMLSddsBreadcrumbItemElement>;
2608
+ "sdds-button": LocalJSX.SddsButton & JSXBase.HTMLAttributes<HTMLSddsButtonElement>;
2609
+ "sdds-card": LocalJSX.SddsCard & JSXBase.HTMLAttributes<HTMLSddsCardElement>;
2610
+ "sdds-checkbox": LocalJSX.SddsCheckbox & JSXBase.HTMLAttributes<HTMLSddsCheckboxElement>;
2611
+ "sdds-datetime": LocalJSX.SddsDatetime & JSXBase.HTMLAttributes<HTMLSddsDatetimeElement>;
2612
+ "sdds-dropdown": LocalJSX.SddsDropdown & JSXBase.HTMLAttributes<HTMLSddsDropdownElement>;
2613
+ "sdds-dropdown-filter": LocalJSX.SddsDropdownFilter & JSXBase.HTMLAttributes<HTMLSddsDropdownFilterElement>;
2614
+ "sdds-dropdown-option": LocalJSX.SddsDropdownOption & JSXBase.HTMLAttributes<HTMLSddsDropdownOptionElement>;
2615
+ "sdds-header-cell": LocalJSX.SddsHeaderCell & JSXBase.HTMLAttributes<HTMLSddsHeaderCellElement>;
2616
+ "sdds-icon": LocalJSX.SddsIcon & JSXBase.HTMLAttributes<HTMLSddsIconElement>;
2617
+ "sdds-inline-tab": LocalJSX.SddsInlineTab & JSXBase.HTMLAttributes<HTMLSddsInlineTabElement>;
2618
+ "sdds-inline-tabs": LocalJSX.SddsInlineTabs & JSXBase.HTMLAttributes<HTMLSddsInlineTabsElement>;
2619
+ "sdds-inline-tabs-fullbleed": LocalJSX.SddsInlineTabsFullbleed & JSXBase.HTMLAttributes<HTMLSddsInlineTabsFullbleedElement>;
2620
+ "sdds-link": LocalJSX.SddsLink & JSXBase.HTMLAttributes<HTMLSddsLinkElement>;
2621
+ "sdds-message": LocalJSX.SddsMessage & JSXBase.HTMLAttributes<HTMLSddsMessageElement>;
2622
+ "sdds-modal": LocalJSX.SddsModal & JSXBase.HTMLAttributes<HTMLSddsModalElement>;
2623
+ "sdds-navigation-tabs": LocalJSX.SddsNavigationTabs & JSXBase.HTMLAttributes<HTMLSddsNavigationTabsElement>;
2624
+ "sdds-popover-canvas": LocalJSX.SddsPopoverCanvas & JSXBase.HTMLAttributes<HTMLSddsPopoverCanvasElement>;
2625
+ "sdds-popover-menu": LocalJSX.SddsPopoverMenu & JSXBase.HTMLAttributes<HTMLSddsPopoverMenuElement>;
2626
+ "sdds-radio-button": LocalJSX.SddsRadioButton & JSXBase.HTMLAttributes<HTMLSddsRadioButtonElement>;
2627
+ "sdds-slider": LocalJSX.SddsSlider & JSXBase.HTMLAttributes<HTMLSddsSliderElement>;
2628
+ "sdds-spinner": LocalJSX.SddsSpinner & JSXBase.HTMLAttributes<HTMLSddsSpinnerElement>;
2629
+ "sdds-table": LocalJSX.SddsTable & JSXBase.HTMLAttributes<HTMLSddsTableElement>;
2630
+ "sdds-table-body": LocalJSX.SddsTableBody & JSXBase.HTMLAttributes<HTMLSddsTableBodyElement>;
2631
+ "sdds-table-body-row": LocalJSX.SddsTableBodyRow & JSXBase.HTMLAttributes<HTMLSddsTableBodyRowElement>;
2632
+ "sdds-table-body-row-expandable": LocalJSX.SddsTableBodyRowExpandable & JSXBase.HTMLAttributes<HTMLSddsTableBodyRowExpandableElement>;
2633
+ "sdds-table-footer": LocalJSX.SddsTableFooter & JSXBase.HTMLAttributes<HTMLSddsTableFooterElement>;
2634
+ "sdds-table-header": LocalJSX.SddsTableHeader & JSXBase.HTMLAttributes<HTMLSddsTableHeaderElement>;
2635
+ "sdds-table-toolbar": LocalJSX.SddsTableToolbar & JSXBase.HTMLAttributes<HTMLSddsTableToolbarElement>;
2636
+ "sdds-textarea": LocalJSX.SddsTextarea & JSXBase.HTMLAttributes<HTMLSddsTextareaElement>;
2637
+ "sdds-textfield": LocalJSX.SddsTextfield & JSXBase.HTMLAttributes<HTMLSddsTextfieldElement>;
2638
+ "sdds-toast": LocalJSX.SddsToast & JSXBase.HTMLAttributes<HTMLSddsToastElement>;
2639
+ "sdds-toggle": LocalJSX.SddsToggle & JSXBase.HTMLAttributes<HTMLSddsToggleElement>;
2640
+ "sdds-tooltip": LocalJSX.SddsTooltip & JSXBase.HTMLAttributes<HTMLSddsTooltipElement>;
2641
+ }
2642
+ }
2643
+ }