@db-ux/wc-core-components 4.10.1 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/bundle/db-accordion-item.js +1 -1
  4. package/bundle/db-accordion.js +1 -1
  5. package/bundle/db-badge.js +1 -1
  6. package/bundle/db-brand.js +1 -1
  7. package/bundle/db-button.js +1 -1
  8. package/bundle/db-card.js +1 -1
  9. package/bundle/db-checkbox.js +1 -1
  10. package/bundle/db-custom-button.js +1 -1
  11. package/bundle/db-custom-select-dropdown.js +1 -1
  12. package/bundle/db-custom-select-form-field.js +1 -1
  13. package/bundle/db-custom-select-list-item.js +1 -1
  14. package/bundle/db-custom-select-list.js +1 -1
  15. package/bundle/db-custom-select.js +1 -1
  16. package/bundle/db-divider.js +1 -1
  17. package/bundle/db-drawer.js +1 -1
  18. package/bundle/db-header.js +1 -1
  19. package/bundle/db-icon.js +1 -1
  20. package/bundle/db-infotext.js +1 -1
  21. package/bundle/db-input.js +1 -1
  22. package/bundle/db-link.js +1 -1
  23. package/bundle/db-navigation-item.js +1 -1
  24. package/bundle/db-navigation.js +1 -1
  25. package/bundle/db-notification.js +1 -1
  26. package/bundle/db-page.js +1 -1
  27. package/bundle/db-popover.js +1 -1
  28. package/bundle/db-radio.js +1 -1
  29. package/bundle/db-section.js +1 -1
  30. package/bundle/db-select.js +1 -1
  31. package/bundle/db-stack.js +1 -1
  32. package/bundle/db-switch.js +1 -1
  33. package/bundle/db-tab-item.js +1 -1
  34. package/bundle/db-tab-list.js +1 -1
  35. package/bundle/db-tab-panel.js +1 -1
  36. package/bundle/db-table-body.d.ts +11 -0
  37. package/bundle/db-table-body.js +1 -0
  38. package/bundle/db-table-caption.d.ts +11 -0
  39. package/bundle/db-table-caption.js +1 -0
  40. package/bundle/db-table-data-cell.d.ts +11 -0
  41. package/bundle/db-table-data-cell.js +1 -0
  42. package/bundle/db-table-footer.d.ts +11 -0
  43. package/bundle/db-table-footer.js +1 -0
  44. package/bundle/db-table-head.d.ts +11 -0
  45. package/bundle/db-table-head.js +1 -0
  46. package/bundle/db-table-header-cell.d.ts +11 -0
  47. package/bundle/db-table-header-cell.js +1 -0
  48. package/bundle/db-table-row.d.ts +11 -0
  49. package/bundle/db-table-row.js +1 -0
  50. package/bundle/db-table.d.ts +11 -0
  51. package/bundle/db-table.js +1 -0
  52. package/bundle/db-tabs.js +1 -1
  53. package/bundle/db-tag.js +1 -1
  54. package/bundle/db-textarea.js +1 -1
  55. package/bundle/db-tooltip.js +1 -1
  56. package/bundle/index.js +1 -1
  57. package/bundle/{p-DS39nEhJ.js → p-B5ANMEnQ.js} +1 -1
  58. package/bundle/p-BJwvv-yT.js +1 -0
  59. package/bundle/{p-DE_eDJiD.js → p-BNiKxu3y.js} +1 -1
  60. package/bundle/p-B_bPnncM.js +1 -0
  61. package/bundle/p-BnLhi6Lz.js +1 -0
  62. package/bundle/p-BrBlnLrn.js +1 -0
  63. package/bundle/p-CByFfoSH.js +1 -0
  64. package/bundle/{p-bzxfqhtq.js → p-CQo0C7QE.js} +1 -1
  65. package/bundle/p-CR2ZbfYe.js +1 -0
  66. package/bundle/p-CYYSsu3p.js +1 -0
  67. package/bundle/p-CeDu282h.js +1 -0
  68. package/bundle/p-CfLPOLHz.js +1 -0
  69. package/bundle/p-CoOxyQb2.js +1 -0
  70. package/bundle/p-CqED0CfD.js +1 -0
  71. package/bundle/p-Cr_z1Jfi.js +1 -0
  72. package/bundle/{p-e18AQLns.js → p-D-XzX0R7.js} +1 -1
  73. package/{dist/db-ux/p-D5mInaY7.js → bundle/p-D6L0n3gO.js} +1 -1
  74. package/bundle/p-DJTpgiBy.js +1 -0
  75. package/bundle/p-DMSIvqcA.js +1 -0
  76. package/bundle/p-DUiroUyR.js +1 -0
  77. package/bundle/p-DdyMClpj.js +1 -0
  78. package/bundle/p-DjVjS2Tb.js +1 -0
  79. package/bundle/p-in4Kv88F.js +1 -0
  80. package/dist/cjs/db-accordion-item.cjs.entry.js +4 -4
  81. package/dist/cjs/db-accordion.cjs.entry.js +3 -3
  82. package/dist/cjs/db-badge.cjs.entry.js +4 -4
  83. package/dist/cjs/db-brand.cjs.entry.js +4 -4
  84. package/dist/cjs/db-button.cjs.entry.js +6 -5
  85. package/dist/cjs/db-card.cjs.entry.js +4 -4
  86. package/dist/cjs/db-checkbox.cjs.entry.js +5 -5
  87. package/dist/cjs/db-custom-button.cjs.entry.js +6 -5
  88. package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +18 -17
  89. package/dist/cjs/db-custom-select-form-field.cjs.entry.js +4 -4
  90. package/dist/cjs/db-custom-select.cjs.entry.js +10 -10
  91. package/dist/cjs/db-divider.cjs.entry.js +3 -3
  92. package/dist/cjs/db-drawer.cjs.entry.js +5 -5
  93. package/dist/cjs/db-header.cjs.entry.js +4 -4
  94. package/dist/cjs/db-icon.cjs.entry.js +4 -4
  95. package/dist/cjs/db-infotext.cjs.entry.js +4 -4
  96. package/dist/cjs/db-link_4.cjs.entry.js +248 -0
  97. package/dist/cjs/db-navigation-item.cjs.entry.js +4 -4
  98. package/dist/cjs/db-navigation.cjs.entry.js +4 -4
  99. package/dist/cjs/db-notification.cjs.entry.js +4 -4
  100. package/dist/cjs/db-page.cjs.entry.js +4 -4
  101. package/dist/cjs/db-popover.cjs.entry.js +5 -5
  102. package/dist/cjs/db-radio.cjs.entry.js +5 -5
  103. package/dist/cjs/db-section.cjs.entry.js +4 -4
  104. package/dist/cjs/db-select.cjs.entry.js +6 -6
  105. package/dist/cjs/db-stack.cjs.entry.js +4 -4
  106. package/dist/cjs/db-switch.cjs.entry.js +5 -5
  107. package/dist/cjs/db-tab-item_3.cjs.entry.js +12 -11
  108. package/dist/cjs/db-table-body_3.cjs.entry.js +194 -0
  109. package/dist/cjs/{db-link.cjs.entry.js → db-table-caption.cjs.entry.js} +7 -8
  110. package/dist/cjs/db-table.cjs.entry.js +158 -0
  111. package/dist/cjs/db-tabs.cjs.entry.js +4 -4
  112. package/dist/cjs/db-textarea.cjs.entry.js +5 -5
  113. package/dist/cjs/db-tooltip.cjs.entry.js +5 -5
  114. package/dist/cjs/db-ux.cjs.js +3 -3
  115. package/dist/cjs/{document-click-listener-B2-xKJv3.js → document-click-listener-DdNXbErU.js} +1 -1
  116. package/dist/cjs/{document-scroll-listener-ChQ7XZRk.js → document-scroll-listener-CvAZ6uPr.js} +1 -1
  117. package/dist/cjs/{form-components-_ncB_U2D.js → form-components-CmQlkARp.js} +1 -1
  118. package/dist/cjs/{index-DLuhzJ0p.js → index-C313bRqJ.js} +22 -1
  119. package/dist/cjs/{index-2_9ESkQu.js → index-spuu3sXz.js} +13 -8
  120. package/dist/cjs/index.cjs.js +23 -4
  121. package/dist/cjs/loader.cjs.js +2 -2
  122. package/dist/collection/collection-manifest.json +9 -1
  123. package/dist/collection/components/accordion/accordion.js +1 -1
  124. package/dist/collection/components/accordion-item/accordion-item.js +2 -2
  125. package/dist/collection/components/badge/badge.js +2 -2
  126. package/dist/collection/components/brand/brand.js +3 -3
  127. package/dist/collection/components/button/button.js +7 -6
  128. package/dist/collection/components/card/card.js +2 -2
  129. package/dist/collection/components/checkbox/checkbox.js +3 -3
  130. package/dist/collection/components/custom-button/custom-button.js +7 -6
  131. package/dist/collection/components/custom-select/custom-select.js +7 -7
  132. package/dist/collection/components/custom-select-dropdown/custom-select-dropdown.js +2 -2
  133. package/dist/collection/components/custom-select-form-field/custom-select-form-field.js +2 -2
  134. package/dist/collection/components/custom-select-list/custom-select-list.js +2 -2
  135. package/dist/collection/components/custom-select-list-item/custom-select-list-item.js +3 -3
  136. package/dist/collection/components/divider/divider.js +1 -1
  137. package/dist/collection/components/drawer/drawer.js +3 -3
  138. package/dist/collection/components/header/header.js +2 -2
  139. package/dist/collection/components/icon/icon.js +3 -3
  140. package/dist/collection/components/infotext/infotext.js +3 -3
  141. package/dist/collection/components/input/input.js +11 -10
  142. package/dist/collection/components/link/link.js +2 -2
  143. package/dist/collection/components/navigation/navigation.js +2 -2
  144. package/dist/collection/components/navigation-item/navigation-item.js +3 -3
  145. package/dist/collection/components/notification/notification.js +3 -3
  146. package/dist/collection/components/page/page.js +2 -2
  147. package/dist/collection/components/popover/popover.js +2 -2
  148. package/dist/collection/components/radio/radio.js +2 -2
  149. package/dist/collection/components/section/section.js +2 -2
  150. package/dist/collection/components/select/select.js +5 -5
  151. package/dist/collection/components/stack/stack.js +2 -2
  152. package/dist/collection/components/switch/switch.js +6 -6
  153. package/dist/collection/components/tab-item/tab-item.js +9 -8
  154. package/dist/collection/components/tab-list/tab-list.js +2 -2
  155. package/dist/collection/components/tab-panel/tab-panel.js +2 -2
  156. package/dist/collection/components/table/examples/data.js +258 -0
  157. package/dist/collection/components/table/index.js +2 -0
  158. package/dist/collection/components/table/model.js +6 -0
  159. package/dist/collection/components/table/table.js +478 -0
  160. package/dist/collection/components/table-body/index.js +2 -0
  161. package/dist/collection/components/table-body/model.js +1 -0
  162. package/dist/collection/components/table-body/table-body.js +144 -0
  163. package/dist/collection/components/table-caption/index.js +2 -0
  164. package/dist/collection/components/table-caption/model.js +1 -0
  165. package/dist/collection/components/table-caption/table-caption.js +116 -0
  166. package/dist/collection/components/table-data-cell/index.js +2 -0
  167. package/dist/collection/components/table-data-cell/model.js +1 -0
  168. package/dist/collection/components/table-data-cell/table-data-cell.js +298 -0
  169. package/dist/collection/components/table-footer/index.js +2 -0
  170. package/dist/collection/components/table-footer/model.js +1 -0
  171. package/dist/collection/components/table-footer/table-footer.js +144 -0
  172. package/dist/collection/components/table-head/index.js +2 -0
  173. package/dist/collection/components/table-head/model.js +1 -0
  174. package/dist/collection/components/table-head/table-head.js +147 -0
  175. package/dist/collection/components/table-header-cell/index.js +2 -0
  176. package/dist/collection/components/table-header-cell/model.js +1 -0
  177. package/dist/collection/components/table-header-cell/table-header-cell.js +376 -0
  178. package/dist/collection/components/table-row/index.js +2 -0
  179. package/dist/collection/components/table-row/model.js +1 -0
  180. package/dist/collection/components/table-row/table-row.js +202 -0
  181. package/dist/collection/components/tabs/tabs.js +2 -2
  182. package/dist/collection/components/tag/tag.js +3 -3
  183. package/dist/collection/components/textarea/textarea.js +3 -3
  184. package/dist/collection/components/tooltip/tooltip.js +2 -2
  185. package/dist/collection/index.js +16 -0
  186. package/dist/collection/shared/model.js +1 -1
  187. package/dist/collection/utils/index.js +13 -8
  188. package/dist/custom-elements.json +6998 -3826
  189. package/dist/db-ux/db-ux.esm.js +1 -1
  190. package/dist/db-ux/index.esm.js +1 -1
  191. package/dist/db-ux/{p-f65e1db8.entry.js → p-08271c80.entry.js} +1 -1
  192. package/dist/db-ux/{p-368d25ab.entry.js → p-105ffa74.entry.js} +1 -1
  193. package/dist/db-ux/p-15adca91.entry.js +1 -0
  194. package/dist/db-ux/{p-47910fdc.entry.js → p-1a322a0c.entry.js} +1 -1
  195. package/dist/db-ux/p-1f7232c0.entry.js +1 -0
  196. package/dist/db-ux/p-27e2f6f2.entry.js +1 -0
  197. package/dist/db-ux/p-2907f214.entry.js +1 -0
  198. package/dist/db-ux/p-2ff958e4.entry.js +1 -0
  199. package/dist/db-ux/p-3423b7af.entry.js +1 -0
  200. package/dist/db-ux/{p-28c257d5.entry.js → p-365e6edf.entry.js} +1 -1
  201. package/dist/db-ux/{p-4580938f.entry.js → p-42516007.entry.js} +1 -1
  202. package/dist/db-ux/p-5045182c.entry.js +1 -0
  203. package/dist/db-ux/{p-aad0c4ef.entry.js → p-5e1d42e5.entry.js} +1 -1
  204. package/dist/db-ux/{p-f27c6655.entry.js → p-61b28212.entry.js} +1 -1
  205. package/dist/db-ux/{p-9712c9c9.entry.js → p-6850a53c.entry.js} +1 -1
  206. package/dist/db-ux/p-6bff55b4.entry.js +1 -0
  207. package/dist/db-ux/p-6e7c5e42.entry.js +1 -0
  208. package/dist/db-ux/p-76adf385.entry.js +1 -0
  209. package/dist/db-ux/p-78f7b353.entry.js +1 -0
  210. package/dist/db-ux/p-7fa5d304.entry.js +1 -0
  211. package/dist/db-ux/p-95b69e71.entry.js +1 -0
  212. package/dist/db-ux/p-99ebe6ec.entry.js +1 -0
  213. package/dist/db-ux/p-BihrW11j.js +1 -0
  214. package/dist/db-ux/p-BlbKvvUv.js +2 -0
  215. package/{bundle/p-4nwUOzw7.js → dist/db-ux/p-BtImZ8Nt.js} +1 -1
  216. package/dist/db-ux/p-OOIf-5XP.js +1 -0
  217. package/dist/db-ux/p-a5dc355d.entry.js +1 -0
  218. package/dist/db-ux/{p-f583f756.entry.js → p-a6113789.entry.js} +1 -1
  219. package/dist/db-ux/p-b9c0feaf.entry.js +1 -0
  220. package/dist/db-ux/p-c14fa91a.entry.js +1 -0
  221. package/dist/db-ux/p-c65b807e.entry.js +1 -0
  222. package/dist/db-ux/{p-b1e7ba0f.entry.js → p-dd9cedbe.entry.js} +1 -1
  223. package/dist/db-ux/{p-331ad11c.entry.js → p-e3f705fd.entry.js} +1 -1
  224. package/dist/db-ux/{p-0ae85978.entry.js → p-e4cddc9f.entry.js} +1 -1
  225. package/dist/db-ux/p-e7a8612c.entry.js +1 -0
  226. package/dist/db-ux/{p-cac5b161.entry.js → p-ee8c3243.entry.js} +1 -1
  227. package/dist/db-ux/p-f0d0acfc.entry.js +1 -0
  228. package/dist/db-ux/{p-13afb969.entry.js → p-f15748ea.entry.js} +1 -1
  229. package/dist/db-ux/p-fumiz06Y.js +1 -0
  230. package/dist/esm/db-accordion-item.entry.js +4 -4
  231. package/dist/esm/db-accordion.entry.js +3 -3
  232. package/dist/esm/db-badge.entry.js +4 -4
  233. package/dist/esm/db-brand.entry.js +4 -4
  234. package/dist/esm/db-button.entry.js +6 -5
  235. package/dist/esm/db-card.entry.js +4 -4
  236. package/dist/esm/db-checkbox.entry.js +5 -5
  237. package/dist/esm/db-custom-button.entry.js +6 -5
  238. package/dist/esm/db-custom-select-dropdown_5.entry.js +18 -17
  239. package/dist/esm/db-custom-select-form-field.entry.js +4 -4
  240. package/dist/esm/db-custom-select.entry.js +10 -10
  241. package/dist/esm/db-divider.entry.js +3 -3
  242. package/dist/esm/db-drawer.entry.js +5 -5
  243. package/dist/esm/db-header.entry.js +4 -4
  244. package/dist/esm/db-icon.entry.js +4 -4
  245. package/dist/esm/db-infotext.entry.js +4 -4
  246. package/dist/esm/db-link_4.entry.js +243 -0
  247. package/dist/esm/db-navigation-item.entry.js +4 -4
  248. package/dist/esm/db-navigation.entry.js +4 -4
  249. package/dist/esm/db-notification.entry.js +4 -4
  250. package/dist/esm/db-page.entry.js +4 -4
  251. package/dist/esm/db-popover.entry.js +5 -5
  252. package/dist/esm/db-radio.entry.js +5 -5
  253. package/dist/esm/db-section.entry.js +4 -4
  254. package/dist/esm/db-select.entry.js +6 -6
  255. package/dist/esm/db-stack.entry.js +4 -4
  256. package/dist/esm/db-switch.entry.js +5 -5
  257. package/dist/esm/db-tab-item_3.entry.js +12 -11
  258. package/dist/esm/db-table-body_3.entry.js +190 -0
  259. package/dist/esm/{db-link.entry.js → db-table-caption.entry.js} +7 -8
  260. package/dist/esm/db-table.entry.js +156 -0
  261. package/dist/esm/db-tabs.entry.js +4 -4
  262. package/dist/esm/db-textarea.entry.js +5 -5
  263. package/dist/esm/db-tooltip.entry.js +5 -5
  264. package/dist/esm/db-ux.js +4 -4
  265. package/dist/esm/{document-click-listener-D7W_VE5O.js → document-click-listener-9wJfRcvz.js} +1 -1
  266. package/dist/esm/{document-scroll-listener-DOBe3Oa9.js → document-scroll-listener-4F0ZAg9p.js} +1 -1
  267. package/dist/esm/{form-components-D6LQfJvq.js → form-components-ZV7IN0oG.js} +1 -1
  268. package/dist/esm/{index-Cr2cgn5B.js → index-BlbKvvUv.js} +22 -1
  269. package/dist/esm/{index-xkoBSP8R.js → index-fumiz06Y.js} +13 -8
  270. package/dist/esm/index.js +16 -5
  271. package/dist/esm/loader.js +3 -3
  272. package/dist/types/components/table/examples/data.d.ts +9 -0
  273. package/dist/types/components/table/index.d.ts +2 -0
  274. package/dist/types/components/table/model.d.ts +74 -0
  275. package/dist/types/components/table/table.d.ts +38 -0
  276. package/dist/types/components/table-body/index.d.ts +2 -0
  277. package/dist/types/components/table-body/model.d.ts +8 -0
  278. package/dist/types/components/table-body/table-body.d.ts +20 -0
  279. package/dist/types/components/table-caption/index.d.ts +2 -0
  280. package/dist/types/components/table-caption/model.d.ts +5 -0
  281. package/dist/types/components/table-caption/table-caption.d.ts +19 -0
  282. package/dist/types/components/table-data-cell/index.d.ts +2 -0
  283. package/dist/types/components/table-data-cell/model.d.ts +5 -0
  284. package/dist/types/components/table-data-cell/table-data-cell.d.ts +26 -0
  285. package/dist/types/components/table-footer/index.d.ts +2 -0
  286. package/dist/types/components/table-footer/model.d.ts +8 -0
  287. package/dist/types/components/table-footer/table-footer.d.ts +20 -0
  288. package/dist/types/components/table-head/index.d.ts +2 -0
  289. package/dist/types/components/table-head/model.d.ts +10 -0
  290. package/dist/types/components/table-head/table-head.d.ts +59 -0
  291. package/dist/types/components/table-header-cell/index.d.ts +2 -0
  292. package/dist/types/components/table-header-cell/model.d.ts +24 -0
  293. package/dist/types/components/table-header-cell/table-header-cell.d.ts +29 -0
  294. package/dist/types/components/table-row/index.d.ts +2 -0
  295. package/dist/types/components/table-row/model.d.ts +30 -0
  296. package/dist/types/components/table-row/table-row.d.ts +24 -0
  297. package/dist/types/components.d.ts +278 -0
  298. package/dist/types/index.d.ts +16 -0
  299. package/dist/types/shared/figma.d.ts +70 -18
  300. package/dist/types/shared/model.d.ts +44 -2
  301. package/dist/types/stencil-public-runtime.d.ts +1 -0
  302. package/dist/types/utils/index.d.ts +9 -4
  303. package/dist/vscode.html-custom-data.json +400 -2
  304. package/dist/web-types.json +744 -5
  305. package/package.json +6 -6
  306. package/bundle/p-4TaCoruo.js +0 -1
  307. package/bundle/p-BJJFATCC.js +0 -1
  308. package/bundle/p-CCbaTFJ9.js +0 -1
  309. package/bundle/p-CEiQBevg.js +0 -1
  310. package/bundle/p-CV8l9qaA.js +0 -1
  311. package/bundle/p-CmqAwQNR.js +0 -1
  312. package/bundle/p-D4Ym01qf.js +0 -1
  313. package/bundle/p-DVYa1bHg.js +0 -1
  314. package/bundle/p-DwwxAylo.js +0 -1
  315. package/bundle/p-QNp8H1KD.js +0 -1
  316. package/bundle/p-_2t1bnPD.js +0 -1
  317. package/dist/db-ux/p-174d2486.entry.js +0 -1
  318. package/dist/db-ux/p-293510ca.entry.js +0 -1
  319. package/dist/db-ux/p-339a6ca0.entry.js +0 -1
  320. package/dist/db-ux/p-34e21986.entry.js +0 -1
  321. package/dist/db-ux/p-5d2e2a8d.entry.js +0 -1
  322. package/dist/db-ux/p-691ae341.entry.js +0 -1
  323. package/dist/db-ux/p-7c58337d.entry.js +0 -1
  324. package/dist/db-ux/p-7f4d00df.entry.js +0 -1
  325. package/dist/db-ux/p-9b907b56.entry.js +0 -1
  326. package/dist/db-ux/p-9c3ff50e.entry.js +0 -1
  327. package/dist/db-ux/p-CHLgQ9vn.js +0 -1
  328. package/dist/db-ux/p-Cr2cgn5B.js +0 -2
  329. package/dist/db-ux/p-D_roHmuC.js +0 -1
  330. package/dist/db-ux/p-a56886ea.entry.js +0 -1
  331. package/dist/db-ux/p-a617da42.entry.js +0 -1
  332. package/dist/db-ux/p-ae3183f0.entry.js +0 -1
  333. package/dist/db-ux/p-ae457f95.entry.js +0 -1
  334. package/dist/db-ux/p-dcf02351.entry.js +0 -1
  335. package/dist/db-ux/p-e46dc907.entry.js +0 -1
  336. package/dist/db-ux/p-fe5d3eb6.entry.js +0 -1
  337. package/dist/db-ux/p-xkoBSP8R.js +0 -1
@@ -0,0 +1,258 @@
1
+ const defaultHeader = [{
2
+ cells: [{
3
+ content: 'A',
4
+ scope: 'col'
5
+ }, {
6
+ content: 'B',
7
+ scope: 'col'
8
+ }, {
9
+ content: 'C',
10
+ scope: 'col'
11
+ }]
12
+ }];
13
+ const defaultBody = [{
14
+ cells: [{
15
+ content: '1',
16
+ headerCell: true,
17
+ scope: 'row'
18
+ }, {
19
+ content: '2'
20
+ }, {
21
+ content: '3'
22
+ }]
23
+ }, {
24
+ cells: [{
25
+ content: '4',
26
+ headerCell: true,
27
+ scope: 'row'
28
+ }, {
29
+ content: '5'
30
+ }, {
31
+ content: '6'
32
+ }]
33
+ }, {
34
+ cells: [{
35
+ content: '7',
36
+ headerCell: true,
37
+ scope: 'row'
38
+ }, {
39
+ content: '8'
40
+ }, {
41
+ content: '9'
42
+ }]
43
+ }];
44
+ const defaultFooter = [{
45
+ cells: [{
46
+ content: 'Footer 1',
47
+ headerCell: true,
48
+ scope: 'row'
49
+ }, {
50
+ content: 'Footer 2',
51
+ colSpan: 2
52
+ }]
53
+ }];
54
+ export const defaultTable = {
55
+ header: defaultHeader,
56
+ body: defaultBody,
57
+ footer: defaultFooter
58
+ };
59
+ export const horizontalAlignmentStartTable = {
60
+ header: [{
61
+ cells: [{
62
+ content: 'A',
63
+ horizontalAlignment: 'start',
64
+ scope: 'col'
65
+ }, {
66
+ content: 'B',
67
+ horizontalAlignment: 'start',
68
+ colSpan: 2,
69
+ scope: 'col'
70
+ }]
71
+ }],
72
+ body: [{
73
+ cells: [{
74
+ content: '1',
75
+ headerCell: true,
76
+ horizontalAlignment: 'start',
77
+ scope: 'row'
78
+ }, {
79
+ content: '2',
80
+ horizontalAlignment: 'start'
81
+ }, {
82
+ content: '3',
83
+ horizontalAlignment: 'start'
84
+ }]
85
+ }]
86
+ };
87
+ export const horizontalAlignmentCenterTable = {
88
+ header: [{
89
+ cells: [{
90
+ content: 'A',
91
+ horizontalAlignment: 'center',
92
+ scope: 'col'
93
+ }, {
94
+ content: 'B',
95
+ horizontalAlignment: 'center',
96
+ colSpan: 2,
97
+ scope: 'col'
98
+ }]
99
+ }],
100
+ body: [{
101
+ cells: [{
102
+ content: '1',
103
+ headerCell: true,
104
+ horizontalAlignment: 'center',
105
+ scope: 'row'
106
+ }, {
107
+ content: '2',
108
+ horizontalAlignment: 'center'
109
+ }, {
110
+ content: '3',
111
+ horizontalAlignment: 'center'
112
+ }]
113
+ }]
114
+ };
115
+ export const horizontalAlignmentEndTable = {
116
+ header: [{
117
+ cells: [{
118
+ content: 'A',
119
+ horizontalAlignment: 'end',
120
+ scope: 'col'
121
+ }, {
122
+ content: 'B',
123
+ horizontalAlignment: 'end',
124
+ colSpan: 2,
125
+ scope: 'col'
126
+ }]
127
+ }],
128
+ body: [{
129
+ cells: [{
130
+ content: '1',
131
+ headerCell: true,
132
+ horizontalAlignment: 'end',
133
+ scope: 'row'
134
+ }, {
135
+ content: '2',
136
+ horizontalAlignment: 'end'
137
+ }, {
138
+ content: '3',
139
+ horizontalAlignment: 'end'
140
+ }]
141
+ }]
142
+ };
143
+ export const subHeaderEmphasisNoneTable = {
144
+ header: [...defaultHeader, {
145
+ cells: [{
146
+ content: 'Sub A',
147
+ scope: 'col'
148
+ }, {
149
+ content: 'Sub B',
150
+ scope: 'col'
151
+ }, {
152
+ content: 'Sub C',
153
+ scope: 'col'
154
+ }]
155
+ }],
156
+ body: defaultBody,
157
+ footer: defaultFooter
158
+ };
159
+ export const subHeaderEmphasisWeakTable = {
160
+ header: [...defaultHeader, {
161
+ subHeaderEmphasis: 'weak',
162
+ cells: [{
163
+ content: 'Sub A',
164
+ scope: 'col'
165
+ }, {
166
+ content: 'Sub B',
167
+ scope: 'col'
168
+ }, {
169
+ content: 'Sub C',
170
+ scope: 'col'
171
+ }]
172
+ }],
173
+ body: defaultBody,
174
+ footer: defaultFooter
175
+ };
176
+ export const subHeaderEmphasisStrongTable = {
177
+ header: [...defaultHeader, {
178
+ subHeaderEmphasis: 'strong',
179
+ cells: [{
180
+ content: 'Sub A',
181
+ scope: 'col'
182
+ }, {
183
+ content: 'Sub B',
184
+ scope: 'col'
185
+ }, {
186
+ content: 'Sub C',
187
+ scope: 'col'
188
+ }]
189
+ }],
190
+ body: defaultBody,
191
+ footer: defaultFooter
192
+ };
193
+ export const overflowTable = {
194
+ header: [{
195
+ cells: [{
196
+ content: 'A',
197
+ scope: 'col'
198
+ }, {
199
+ content: 'B',
200
+ scope: 'col'
201
+ }, {
202
+ content: 'C',
203
+ scope: 'col'
204
+ }, {
205
+ content: 'D',
206
+ scope: 'col'
207
+ }, {
208
+ content: 'E',
209
+ scope: 'col'
210
+ }, {
211
+ content: 'F',
212
+ scope: 'col'
213
+ }, {
214
+ link: {
215
+ text: 'G',
216
+ href: '#'
217
+ },
218
+ scope: 'col'
219
+ }]
220
+ }],
221
+ body: Array.from({
222
+ length: 20
223
+ }, (_, i) => ({
224
+ cells: [{
225
+ content: `Row ${i + 1}`,
226
+ headerCell: true,
227
+ scope: 'row'
228
+ }, {
229
+ content: `Data ${i + 1}-B`
230
+ }, {
231
+ content: `Data ${i + 1}-C`
232
+ }, {
233
+ content: `Data ${i + 1}-D`
234
+ }, {
235
+ content: `Data ${i + 1}-E`
236
+ }, {
237
+ content: `Data ${i + 1}-F`
238
+ }, {
239
+ link: {
240
+ text: `Data ${i + 1}-G`,
241
+ href: '#'
242
+ }
243
+ }]
244
+ })),
245
+ footer: [{
246
+ cells: [{
247
+ content: 'Footer 1',
248
+ headerCell: true,
249
+ scope: 'row'
250
+ }, {
251
+ link: {
252
+ text: 'Footer 2',
253
+ href: '#'
254
+ },
255
+ colSpan: 6
256
+ }]
257
+ }]
258
+ };
@@ -0,0 +1,2 @@
1
+ import { DBTable } from "./table";
2
+ export default DBTable;
@@ -0,0 +1,6 @@
1
+ export const DBTableRowSizeList = ['x-small', 'small', 'medium', 'large'];
2
+ export const DBTableVariantList = ['flat', 'zebra', 'spaced'];
3
+ export const DBTableDividerList = ['none', 'both', 'horizontal', 'vertical'];
4
+ export const DBTableMobileVariantList = ['table', 'list'];
5
+ export const DBTableStickyHeaderList = ['none', 'both', 'horizontal', 'vertical'];
6
+ export const DBTableColumnsSizeList = ['auto', '1fr', 'min-content', 'max-content'];