@heliux-org/design-system-core 0.0.293 → 0.0.294-TableTestBuild

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 (335) hide show
  1. package/dist/01099e901d8d36c4208d.woff +0 -0
  2. package/dist/014b33f2d67746925624.woff2 +1 -0
  3. package/dist/01ddb13e174e5dc916e701c7efaa323b.woff2 +1 -0
  4. package/dist/01ddb76edb91ce0e42b2f4d2b117fe20.woff2 +1 -0
  5. package/dist/0204dde18eabd48872bc.woff +0 -0
  6. package/dist/03446f23dd9b11b08a50.woff2 +0 -0
  7. package/dist/03a843e969c73d167dfe1881bacceb81.woff +1 -0
  8. package/dist/09ad0d44c84b8ba10b08.woff2 +1 -0
  9. package/dist/09cce7da915e05bce40f.woff +1 -0
  10. package/dist/09cfa47ba8e8e7694606.woff +1 -0
  11. package/dist/0b03efa08247214660c7.woff2 +0 -0
  12. package/dist/0fbb1058f3361e047fca.woff2 +1 -0
  13. package/dist/10a7cf76e9c63de3773a.woff2 +0 -0
  14. package/dist/11d2826e26962217b6c9.woff +0 -0
  15. package/dist/13289e71e3f82bc351e3.woff +1 -0
  16. package/dist/136d07570e1fc99faa06.woff +0 -0
  17. package/dist/1492107708a4234faa12.woff2 +1 -0
  18. package/dist/16360d4137e1735070eef904fa94e6a8.woff +1 -0
  19. package/dist/18ad1cf5e2baedef7ba63332351bf412.woff +1 -0
  20. package/dist/1954637cd7a765c3e565.woff2 +0 -0
  21. package/dist/19572db4e7a381e7bf2fb83c32666be1.woff2 +1 -0
  22. package/dist/1a88434be4dcedb1a52f.woff2 +1 -0
  23. package/dist/1b9ba53f26dcc0beb844.woff2 +0 -0
  24. package/dist/1f4b4c24e700ed40c15d.woff +1 -0
  25. package/dist/232301dc2e7000ba9ed6.woff +0 -0
  26. package/dist/23d8d6b1a5073479abfcb58cf7b586b4.woff2 +1 -0
  27. package/dist/250c3a2ede6ce02f4a23.woff2 +0 -0
  28. package/dist/25338105b4de064cde15.woff +0 -0
  29. package/dist/29531b3b68d076a07707.woff2 +1 -0
  30. package/dist/2973470e0640c3bdee66.woff2 +0 -0
  31. package/dist/297ffdb5c554283afbb5.woff +0 -0
  32. package/dist/2a712138501c20b4d01b.woff2 +1 -0
  33. package/dist/2aed460e210a5e9fa9d2.woff2 +1 -0
  34. package/dist/33d1d8a1d63d6ae2f308.woff +1 -0
  35. package/dist/345cfd636ceea3a1a0f6.woff2 +0 -0
  36. package/dist/355190d2021a12f1cc6ad0525dd59c38.woff +1 -0
  37. package/dist/35c15972348798dad1efca7cf236175e.woff2 +1 -0
  38. package/dist/35fad97547043f76468c232e2bdf5a08.woff +1 -0
  39. package/dist/372969e7f85a7afdcb2946f68eab626d.woff +1 -0
  40. package/dist/386a08442f3625ff3fbe.woff2 +0 -0
  41. package/dist/3936ac0e60ab737d0f74.woff +0 -0
  42. package/dist/3a370a4e1fa49031c3f6.woff +0 -0
  43. package/dist/3b26695ac5295e07a0cd63df7ea66b10.woff2 +1 -0
  44. package/dist/3b99b639b060f6d2e0db5a0fdc495996.woff +1 -0
  45. package/dist/3c6d84970708c4007cf0159ba4df71c0.woff2 +1 -0
  46. package/dist/3ed2a6b08cffaa5b9790de3fc53b56f6.woff2 +1 -0
  47. package/dist/4082afcc8ecc984a4d8d.woff +0 -0
  48. package/dist/435b0f6f271370b0839f.woff +0 -0
  49. package/dist/43e7cfe43e0f0cf43319.woff +1 -0
  50. package/dist/47a0cd12a43866e41e9c.woff +1 -0
  51. package/dist/47aa3c5bb709255fac99.woff +0 -0
  52. package/dist/4847a2111cc8855a1e79.woff2 +0 -0
  53. package/dist/48fea4af52bcd858ce6d.woff +0 -0
  54. package/dist/49c3eb86c07f2edb67ea9aa6103c3b23.woff +1 -0
  55. package/dist/4a92609d862ec1ce681b.woff2 +1 -0
  56. package/dist/4b7978710036d8d520cf.woff +0 -0
  57. package/dist/4cc8c318e48c129331abd522210a6a3c.woff2 +1 -0
  58. package/dist/513294968676ce0c1b16.woff2 +1 -0
  59. package/dist/52204d5fcf3c5b87cd0048b120dd621c.woff +1 -0
  60. package/dist/5306fc642b7e9bca419c.woff2 +1 -0
  61. package/dist/537a6a86f72fc03dfb4b.woff2 +1 -0
  62. package/dist/54668f027d5519ae0290.woff +1 -0
  63. package/dist/54d4de458f4a7cf1de00.woff +1 -0
  64. package/dist/5518fbc8e4bc1fd8384e.woff +1 -0
  65. package/dist/582f881e26bdb790d1ab.woff2 +0 -0
  66. package/dist/58aa8475a6835b0930c56a994963aa05.woff2 +1 -0
  67. package/dist/59b92307682bb394d25b.woff2 +0 -0
  68. package/dist/5c4edf9d8f18059917c8bc1e2fa0ea90.woff2 +1 -0
  69. package/dist/5c8fa8cd79a6d09061de.woff +0 -0
  70. package/dist/5d51d5ad082ebe1aacec.woff2 +0 -0
  71. package/dist/5fdbb1bf3c7a7e0ed412.woff +1 -0
  72. package/dist/60cb1cbd11af7f89845b.woff2 +1 -0
  73. package/dist/60e20fa3232b4f90f34b5b3b1740e826.woff +1 -0
  74. package/dist/62c163261dab4a2f8eda3b31a6434adf.woff +1 -0
  75. package/dist/65940de5646f05a28592.woff +1 -0
  76. package/dist/66c62da463c3ce5c494d.woff +0 -0
  77. package/dist/66ceb65f7020d57d50b9.woff2 +0 -0
  78. package/dist/67e24d0983d58e847b05.woff +1 -0
  79. package/dist/691e82d42b380a7fe68f.woff +0 -0
  80. package/dist/69f2e3adff94869a1d8a.woff2 +0 -0
  81. package/dist/6aa01e407de54146957c547b30a3b0e6.woff +1 -0
  82. package/dist/6c601958e90e661de3382a7fe4f78e7f.woff2 +1 -0
  83. package/dist/6c690e1f6c653e4bf4866c11614f5827.woff2 +1 -0
  84. package/dist/6cfdc9d232b607d3df66.woff2 +0 -0
  85. package/dist/6d6421837c766e4d088f.woff +1 -0
  86. package/dist/6dc1dda9720e775f33dc.woff +0 -0
  87. package/dist/6dff4ee633b4cd8b6b39.woff +0 -0
  88. package/dist/6f4a6159caca9ab95587.woff2 +0 -0
  89. package/dist/70147ef2a77793b48d82.woff2 +1 -0
  90. package/dist/71e76016cb243cb61f4c.woff2 +0 -0
  91. package/dist/7251d5be33c6490cfb4986c3a49290e8.woff2 +1 -0
  92. package/dist/73240af009a904ae7afe.woff2 +1 -0
  93. package/dist/7472099cf2dd355e97a5.woff +1 -0
  94. package/dist/766750908073fa0cd7a6.woff +1 -0
  95. package/dist/774b80d9be696b17960a8deaef05adc0.woff2 +1 -0
  96. package/dist/77dce4945c4c5f155932.woff +1 -0
  97. package/dist/78a8b1f924d760497fa051e52fbb7795.woff2 +1 -0
  98. package/dist/79166d79f03989b8aba7.woff +1 -0
  99. package/dist/79baff6b2fa906d87852c03f7679eb3f.woff2 +1 -0
  100. package/dist/7b1d9b469b515b0c4cdd.woff +1 -0
  101. package/dist/7b57046ebc97a545f2bb.woff +0 -0
  102. package/dist/7b57de0ce8c95939e6b8.woff2 +1 -0
  103. package/dist/7c5ebcac4f4a3db1c778.woff2 +1 -0
  104. package/dist/7c761b0f2c601d1a483c.woff +0 -0
  105. package/dist/7e1290813e40739a052b.woff +1 -0
  106. package/dist/7e6a90782fef1d025002ed72b769e600.woff2 +1 -0
  107. package/dist/8036e0831788488e9ed646936f41fc05.woff +1 -0
  108. package/dist/81ad8820722a456be666.woff2 +1 -0
  109. package/dist/83cf4919339de9c1a4c48c9735a21723.woff +1 -0
  110. package/dist/8458a3bda74267bf5d97.woff2 +0 -0
  111. package/dist/89d77f5589e8a987ee717abe6d7e8dfd.woff2 +1 -0
  112. package/dist/8b45276c8d5867ea6b1e.woff2 +0 -0
  113. package/dist/8f03f0afb95f82422803.woff2 +0 -0
  114. package/dist/902e557cc62aff17d1b5.woff2 +0 -0
  115. package/dist/904e8c770706fdbf73a8.woff2 +0 -0
  116. package/dist/926521dbe259000a453262d6dcd49c7e.woff +1 -0
  117. package/dist/93368fc6cebb1d93c649.woff +1 -0
  118. package/dist/94623a4162bdde9850c432dcaf619b59.woff2 +1 -0
  119. package/dist/95775bff98b1cfdafc34dda5151c8802.woff +1 -0
  120. package/dist/973c21b55a914d39a309.woff +0 -0
  121. package/dist/9df6dc5e3cba70111b2be25f0692eb81.woff +1 -0
  122. package/dist/Table.js +1 -1
  123. package/dist/Table.js.map +1 -1
  124. package/dist/a118ebf10dd8a24c62c8.woff2 +1 -0
  125. package/dist/a3a96b09695f14dbd53a.woff2 +1 -0
  126. package/dist/a67b864a330c617dc636.woff2 +1 -0
  127. package/dist/a8e9c3637ef4939ceb079a3f13166bb8.woff2 +1 -0
  128. package/dist/a95154480606675e4b725f11d38034c2.woff +1 -0
  129. package/dist/ad100fe76ac13b04765ac92ef1ac9204.woff2 +1 -0
  130. package/dist/af077451598574c55faf.woff +1 -0
  131. package/dist/b24430ab47bf89dd9467.woff2 +1 -0
  132. package/dist/b27cb3871ed771961ef6f0abd49db997.woff2 +1 -0
  133. package/dist/b41f5a0ee6a4078d2c77.woff2 +1 -0
  134. package/dist/b5381a007239f959a8ffd87481486d32.woff2 +1 -0
  135. package/dist/b5fb6bb4bf91a7aaa50c.woff2 +0 -0
  136. package/dist/b66ab0190dcf7b5da696.woff +0 -0
  137. package/dist/b7b142be3ffae5c23169bac704b1bb60.woff +1 -0
  138. package/dist/b9649759f410addb8c032905cceeb97d.woff +1 -0
  139. package/dist/bd99033c95e6080c75315bbed34e6d59.woff2 +1 -0
  140. package/dist/bfe989eec14e93f897a73fb317c54aa9.woff2 +1 -0
  141. package/dist/c1899469e4a717878c96.woff +1 -0
  142. package/dist/c3776e542750e50906a6.woff2 +0 -0
  143. package/dist/c39f3347364862a2fcbc658a48ed4bd4.woff +1 -0
  144. package/dist/c3a7b44953f18240009b2e0ac912e9df.woff2 +1 -0
  145. package/dist/c431ed0a2362f8d52494.woff2 +0 -0
  146. package/dist/c577012f754683283865.woff2 +1 -0
  147. package/dist/c68ed1a8049685920a59dd4354f4aaa9.woff2 +1 -0
  148. package/dist/c8b0c1f510bf8de7daaf.woff +0 -0
  149. package/dist/c92cd7a3a5d153f9a0abf57dd804dd2b.woff +1 -0
  150. package/dist/c9b2b494eb80f7f2103e.woff2 +0 -0
  151. package/dist/components/Grid/Grid.js +32 -0
  152. package/dist/components/Grid/Grid.js.map +1 -0
  153. package/dist/components/Grid/index.js +18 -0
  154. package/dist/components/Grid/index.js.map +1 -0
  155. package/dist/components/Icon/Icons/components/Lines.js +21 -0
  156. package/dist/components/Icon/Icons/components/Lines.js.map +1 -0
  157. package/dist/components/Icon/Icons/components/Notifications.js +21 -0
  158. package/dist/components/Icon/Icons/components/Notifications.js.map +1 -0
  159. package/dist/components/Icon/Icons/components/Update.js +21 -0
  160. package/dist/components/Icon/Icons/components/Update.js.map +1 -0
  161. package/dist/components/NewTable/Table.js +6 -4
  162. package/dist/components/NewTable/Table.js.map +1 -1
  163. package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +92 -87
  164. package/dist/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  165. package/dist/d04675069ea1d1163d5b.woff +1 -0
  166. package/dist/d5c9e35869f14956363533d05784d64e.woff +1 -0
  167. package/dist/d77c896979b205e7f475.woff +1 -0
  168. package/dist/d819b79b58be33ac004b.woff +1 -0
  169. package/dist/d8e13db10ac0902e5aa9.woff +0 -0
  170. package/dist/d9ffac4b1274280a5dc6341396db6fac.woff +1 -0
  171. package/dist/da40969e6e82c3dc9082.woff2 +1 -0
  172. package/dist/da4786673aaa2c4b4f8d.woff +0 -0
  173. package/dist/db0557b7781482567e41.woff2 +0 -0
  174. package/dist/dbc02abfebdd8b088734.woff +0 -0
  175. package/dist/dcab3a63294cf260b4a8.woff2 +1 -0
  176. package/dist/e04ede2afc0ae86eded8.woff +1 -0
  177. package/dist/e2f1e36b0c624f25532d8f7eea997b81.woff2 +1 -0
  178. package/dist/e74b51075235ecbcce56ef63f802e2b4.woff +1 -0
  179. package/dist/e7ebb6275c8bf2c533ac.woff +0 -0
  180. package/dist/eaa4c684c6cbd502a918.woff2 +0 -0
  181. package/dist/ec8691527a0ae8f48e13.woff2 +1 -0
  182. package/dist/esm/components/Grid/Grid.d.ts +16 -0
  183. package/dist/esm/components/Grid/Grid.d.ts.map +1 -0
  184. package/dist/esm/components/Grid/index.d.ts +2 -0
  185. package/dist/esm/components/Grid/index.d.ts.map +1 -0
  186. package/dist/esm/components/Icon/Icons/components/Lines.d.ts +7 -0
  187. package/dist/esm/components/Icon/Icons/components/Lines.d.ts.map +1 -0
  188. package/dist/esm/components/Icon/Icons/components/Notifications.d.ts +7 -0
  189. package/dist/esm/components/Icon/Icons/components/Notifications.d.ts.map +1 -0
  190. package/dist/esm/components/Icon/Icons/components/Update.d.ts +7 -0
  191. package/dist/esm/components/Icon/Icons/components/Update.d.ts.map +1 -0
  192. package/dist/esm/components/NewTable/Table.d.ts.map +1 -1
  193. package/dist/esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  194. package/dist/esm/src/components/Grid/Grid.js +2 -0
  195. package/dist/esm/src/components/Grid/Grid.js.map +1 -0
  196. package/dist/esm/src/components/Icon/Icons/components/Lines.js +2 -0
  197. package/dist/esm/src/components/Icon/Icons/components/Lines.js.map +1 -0
  198. package/dist/esm/src/components/Icon/Icons/components/Notifications.js +2 -0
  199. package/dist/esm/src/components/Icon/Icons/components/Notifications.js.map +1 -0
  200. package/dist/esm/src/components/Icon/Icons/components/Update.js +2 -0
  201. package/dist/esm/src/components/Icon/Icons/components/Update.js.map +1 -0
  202. package/dist/esm/src/components/NewTable/Table.js +1 -1
  203. package/dist/esm/src/components/NewTable/Table.js.map +1 -1
  204. package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
  205. package/dist/esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  206. package/dist/f0acd6dd9d2dfb3ee94805c0534aaf5a.woff2 +1 -0
  207. package/dist/f0ae7cd56c0838373da6.woff2 +1 -0
  208. package/dist/f127fb3e26067096b39f.woff2 +1 -0
  209. package/dist/f21524cbececeda8295b7e0da9cf9d33.woff +1 -0
  210. package/dist/f2798934e74c3cb482ac.woff +0 -0
  211. package/dist/f358e02809604db8670a4f2d76aab7c3.woff +1 -0
  212. package/dist/f3f79dee35d5d2e35177.woff2 +1 -0
  213. package/dist/f445886ca310d5db40df.woff +1 -0
  214. package/dist/f44bfcba9cd05a5294d6.woff +0 -0
  215. package/dist/f6f16d45b3baa0c950a8.woff +1 -0
  216. package/dist/faae70a4933c7cc49e51aaa6bcad28cc.woff +1 -0
  217. package/dist/faafc5bdf648fa17b73bc05f44cc9668.woff +1 -0
  218. package/dist/fc39afa9a656eea4bef0.woff +1 -0
  219. package/dist/fcd095115aef9c8af77c.woff2 +0 -0
  220. package/dist/fde15f04e1d14415a4e05ee9a8c2cf02.woff +1 -0
  221. package/dist/fonts/Alliance-Mono.164f4884488954efba9ec76591a73503.woff +1 -0
  222. package/dist/fonts/Alliance-Mono.4c7ac54a7dfa122f25d7fdd4dfeaa959.woff2 +1 -0
  223. package/dist/fonts/Alliance-NeueBlack.0bfbc1cb826066552dab836cb7fa0abf.woff +1 -0
  224. package/dist/fonts/Alliance-NeueBlack.4f4e74a44effbe81b54bf5615d44242c.woff2 +1 -0
  225. package/dist/fonts/Alliance-NeueBlackItalic.5bdd4e9c7011fd5cbd37de3004a4e2b5.woff2 +1 -0
  226. package/dist/fonts/Alliance-NeueBlackItalic.bdf77e17cb99795ff12ca52fb07f9509.woff +1 -0
  227. package/dist/fonts/Alliance-NeueBold.085208854e04300e39e641c5b5302b7a.woff2 +1 -0
  228. package/dist/fonts/Alliance-NeueBold.26ab7f9dc4625a669bfe6ba311ebab35.woff +1 -0
  229. package/dist/fonts/Alliance-NeueBoldItalic.07cfe7ca033edf2e2bd3f85af60bf982.woff +1 -0
  230. package/dist/fonts/Alliance-NeueBoldItalic.ffad1cb45886073ad03536d08e285e86.woff2 +1 -0
  231. package/dist/fonts/Alliance-NeueExtraBold.500b09c0240bbaab8d2c1c1820920dd7.woff2 +1 -0
  232. package/dist/fonts/Alliance-NeueExtraBold.66285fbff1ddc389ab8412d0fca73e83.woff +1 -0
  233. package/dist/fonts/Alliance-NeueExtraBoldtalic.a5a9e565750d9354f4c1477fab933da5.woff +1 -0
  234. package/dist/fonts/Alliance-NeueExtraBoldtalic.e8c96cad53be70f8daed48cca6544e70.woff2 +1 -0
  235. package/dist/fonts/Alliance-NeueLight.90627507b283a7c34980f01d535ac461.woff2 +1 -0
  236. package/dist/fonts/Alliance-NeueLight.96e91b7a125a510c1d45e3bffce258ef.woff +1 -0
  237. package/dist/fonts/Alliance-NeueLightItalic.4119bbc389ff1fb42a98ef5148878aca.woff +1 -0
  238. package/dist/fonts/Alliance-NeueLightItalic.e497adce676d88b4a324d72d54d7503b.woff2 +1 -0
  239. package/dist/fonts/Alliance-NeueMedium.11c212ee6182037495ac44ae96ea373b.woff +1 -0
  240. package/dist/fonts/Alliance-NeueMedium.ebac6e88e281a6a65f1cd736f0bb1773.woff2 +1 -0
  241. package/dist/fonts/Alliance-NeueMediumItalic.4e1ef4b1585c0db4a39328a9e3814ac1.woff +1 -0
  242. package/dist/fonts/Alliance-NeueMediumItalic.b238d352ce63753da0e1b45070f6800c.woff2 +1 -0
  243. package/dist/fonts/Alliance-NeueRegular.346720b42d66deed0e7864c026ac4db7.woff +1 -0
  244. package/dist/fonts/Alliance-NeueRegular.9e53ee3bcaa8730f79fd6602e063ba37.woff2 +1 -0
  245. package/dist/fonts/Alliance-NeueRegularItalic.75006e9967efb398fdabb1b891bd0662.woff +1 -0
  246. package/dist/fonts/Alliance-NeueRegularItalic.cf4653fd61156cdf12593439702b505b.woff2 +1 -0
  247. package/dist/fonts/Alliance-NeueSemiBold.23ef58d677dc1a87367b983f2a1615ca.woff +1 -0
  248. package/dist/fonts/Alliance-NeueSemiBold.e3134caa7f12179d56a7b8cbc366ab53.woff2 +1 -0
  249. package/dist/fonts/Alliance-NeueSemiBoldItalic.318b318f601637b94a7d47b487583225.woff2 +1 -0
  250. package/dist/fonts/Alliance-NeueSemiBoldItalic.6d99e64150789fd5e65ac98876564cd7.woff +1 -0
  251. package/dist/fonts/Alliance-PlattBlack.24515b6b495d6e088eab43b83b5f53da.woff +1 -0
  252. package/dist/fonts/Alliance-PlattBlack.fedf51c1aa1ec0093d2abe4bf62861c0.woff2 +1 -0
  253. package/dist/fonts/Alliance-PlattBold.64bf49a72df1e3891a0ad2b3cb4e5474.woff +1 -0
  254. package/dist/fonts/Alliance-PlattBold.6a2801d9ab5eab9dfd410a9a7d1e090d.woff2 +1 -0
  255. package/dist/fonts/Alliance-PlattExtraBold.31136655400a915e357400fdf6b078c6.woff2 +1 -0
  256. package/dist/fonts/Alliance-PlattExtraBold.4a87edc0a690f2cbd1401a63f3dea7ab.woff +1 -0
  257. package/dist/fonts/Alliance-PlattLight.690858eafc528a06bf5eda5dcc7900d2.woff +1 -0
  258. package/dist/fonts/Alliance-PlattLight.cf6ec141b53f807d6810e7c498f1d96e.woff2 +1 -0
  259. package/dist/fonts/Alliance-PlattMedium.7aac8ca74e0acd9be37fc902c5d4babd.woff2 +1 -0
  260. package/dist/fonts/Alliance-PlattMedium.e4a2d0d129128454af037a833551bb60.woff +1 -0
  261. package/dist/fonts/Alliance-PlattRegular.6af87dc403719e993c52aec8fa312b71.woff2 +1 -0
  262. package/dist/fonts/Alliance-PlattRegular.7e45b38b4b11450c7f1a56395dadf926.woff +1 -0
  263. package/dist/fonts/Alliance-PlattSemiBold.2f85b1819e3c6c2fd2a4f0baef97bede.woff2 +1 -0
  264. package/dist/fonts/Alliance-PlattSemiBold.610ebffbf604ea718f2441831353bd51.woff +1 -0
  265. package/dist/fonts/Alliance-TextBlack.90bd88eede54e46a9d811d1b8182d7af.woff +1 -0
  266. package/dist/fonts/Alliance-TextBlack.c06a65cf54fec9f5cc67d2b7dca82ce2.woff2 +1 -0
  267. package/dist/fonts/Alliance-TextBlackItalic.599dbb8ec28f6da4deb3ce7913e5f7f9.woff +1 -0
  268. package/dist/fonts/Alliance-TextBlackItalic.c448c5849f817bcf250a85c15802fd6f.woff2 +1 -0
  269. package/dist/fonts/Alliance-TextBold.0c6f0bb74d778e30051a983c071583bc.woff +1 -0
  270. package/dist/fonts/Alliance-TextBold.12d1680f5d22b5e8f1b851695444d31d.woff2 +1 -0
  271. package/dist/fonts/Alliance-TextBoldItalic.984801af03f8840991ed2932d9a4c2a2.woff2 +1 -0
  272. package/dist/fonts/Alliance-TextBoldItalic.e28b0f147377a5894123a5271fdc9af9.woff +1 -0
  273. package/dist/fonts/Alliance-TextExtraBold.6ba126ea38065b576cdd9f399b80643b.woff2 +1 -0
  274. package/dist/fonts/Alliance-TextExtraBold.8afab8df5a53b6b103afc05695d933c5.woff +1 -0
  275. package/dist/fonts/Alliance-TextExtraBoldItalic.25a229f8ba1981dfd99434d70019c44d.woff2 +1 -0
  276. package/dist/fonts/Alliance-TextExtraBoldItalic.f4486f5def1f6005a4276d9f2b859588.woff +1 -0
  277. package/dist/fonts/Alliance-TextLight.451bf0d6f8387b8e53a937817c7cf43f.woff +1 -0
  278. package/dist/fonts/Alliance-TextLight.719755f0df1b16bef8098f3aa5e10707.woff2 +1 -0
  279. package/dist/fonts/Alliance-TextLightItalic.21da52c8f0382e71d9dfde2f2b3a58c1.woff2 +1 -0
  280. package/dist/fonts/Alliance-TextLightItalic.75d2bff2c904dc017e6c05aeb42f6192.woff +1 -0
  281. package/dist/icons/Lines.js +3 -0
  282. package/dist/icons/Lines.js.LICENSE.txt +8 -0
  283. package/dist/icons/Lines.js.map +1 -0
  284. package/dist/icons/Notifications.js +3 -0
  285. package/dist/icons/Notifications.js.LICENSE.txt +8 -0
  286. package/dist/icons/Notifications.js.map +1 -0
  287. package/dist/icons/Update.js +3 -0
  288. package/dist/icons/Update.js.LICENSE.txt +8 -0
  289. package/dist/icons/Update.js.map +1 -0
  290. package/dist/images/5cf0119910166fb74bc03b63b0b0ce5e.png +1 -0
  291. package/dist/images/f983ea46ffaf2444f5381f222fb8b090.png +1 -0
  292. package/dist/images/faac24eb82dc03336fb46c0cbe81893d.png +1 -0
  293. package/dist/main.js +1 -1
  294. package/dist/main.js.map +1 -1
  295. package/dist/mocked_classnames_esm/components/Grid/Grid.d.ts +16 -0
  296. package/dist/mocked_classnames_esm/components/Grid/Grid.d.ts.map +1 -0
  297. package/dist/mocked_classnames_esm/components/Grid/index.d.ts +2 -0
  298. package/dist/mocked_classnames_esm/components/Grid/index.d.ts.map +1 -0
  299. package/dist/mocked_classnames_esm/components/Icon/Icons/components/Lines.d.ts +7 -0
  300. package/dist/mocked_classnames_esm/components/Icon/Icons/components/Lines.d.ts.map +1 -0
  301. package/dist/mocked_classnames_esm/components/Icon/Icons/components/Notifications.d.ts +7 -0
  302. package/dist/mocked_classnames_esm/components/Icon/Icons/components/Notifications.d.ts.map +1 -0
  303. package/dist/mocked_classnames_esm/components/Icon/Icons/components/Update.d.ts +7 -0
  304. package/dist/mocked_classnames_esm/components/Icon/Icons/components/Update.d.ts.map +1 -0
  305. package/dist/mocked_classnames_esm/components/NewTable/Table.d.ts.map +1 -1
  306. package/dist/mocked_classnames_esm/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  307. package/dist/mocked_classnames_esm/src/components/Grid/Grid.js +2 -0
  308. package/dist/mocked_classnames_esm/src/components/Grid/Grid.js.map +1 -0
  309. package/dist/mocked_classnames_esm/src/components/Icon/Icons/components/Lines.js +2 -0
  310. package/dist/mocked_classnames_esm/src/components/Icon/Icons/components/Lines.js.map +1 -0
  311. package/dist/mocked_classnames_esm/src/components/Icon/Icons/components/Notifications.js +2 -0
  312. package/dist/mocked_classnames_esm/src/components/Icon/Icons/components/Notifications.js.map +1 -0
  313. package/dist/mocked_classnames_esm/src/components/Icon/Icons/components/Update.js +2 -0
  314. package/dist/mocked_classnames_esm/src/components/Icon/Icons/components/Update.js.map +1 -0
  315. package/dist/mocked_classnames_esm/src/components/NewTable/Table.js +1 -1
  316. package/dist/mocked_classnames_esm/src/components/NewTable/Table.js.map +1 -1
  317. package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js +1 -1
  318. package/dist/mocked_classnames_esm/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.js.map +1 -1
  319. package/dist/types/components/Grid/Grid.d.ts +16 -0
  320. package/dist/types/components/Grid/Grid.d.ts.map +1 -0
  321. package/dist/types/components/Grid/index.d.ts +2 -0
  322. package/dist/types/components/Grid/index.d.ts.map +1 -0
  323. package/dist/types/components/Icon/Icons/components/Lines.d.ts +7 -0
  324. package/dist/types/components/Icon/Icons/components/Lines.d.ts.map +1 -0
  325. package/dist/types/components/Icon/Icons/components/Notifications.d.ts +7 -0
  326. package/dist/types/components/Icon/Icons/components/Notifications.d.ts.map +1 -0
  327. package/dist/types/components/Icon/Icons/components/Update.d.ts +7 -0
  328. package/dist/types/components/Icon/Icons/components/Update.d.ts.map +1 -0
  329. package/dist/types/components/NewTable/Table.d.ts.map +1 -1
  330. package/dist/types/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.d.ts.map +1 -1
  331. package/package.json +2 -2
  332. package/src/components/NewTable/Table.tsx +19 -4
  333. package/src/components/NewTable/__stories__/NewTable.stories.tsx +222 -20
  334. package/src/components/NewTable/__stories__/newTable.mdx +132 -1
  335. package/src/components/NewTable/components/useLeafyGreenTable/useLeafyGreenTable.tsx +120 -117
@@ -292,7 +292,7 @@ export const WithOptionOnHover: StoryFn<StoryTableProps> = (args) => {
292
292
  const { rows } = table.getRowModel();
293
293
 
294
294
  return (
295
- <Table {...args} table={table} ref={tableContainerRef}>
295
+ <Table {...args} table={table}>
296
296
  <TableHead isSticky>
297
297
  {table.getHeaderGroups().map((headerGroup: HeaderGroup<any>) => (
298
298
  <HeaderRow key={headerGroup.id}>
@@ -377,7 +377,7 @@ export const WithNoContent: StoryFn<StoryTableProps> = (args) => {
377
377
  const { rows } = table.getRowModel();
378
378
 
379
379
  return (
380
- <Table {...args} table={table} ref={tableContainerRef}
380
+ <Table {...args} table={table}
381
381
  emptyTableContent={
382
382
  <EmptyState
383
383
  title="No data available"
@@ -459,7 +459,7 @@ export const WithGroupHeader: StoryFn<StoryTableProps> = (args) => {
459
459
  const { rows } = table.getRowModel();
460
460
 
461
461
  return (
462
- <Table {...args} table={table} ref={tableContainerRef}>
462
+ <Table {...args} table={table}>
463
463
  <TableHead isSticky>
464
464
  {table.getHeaderGroups().map((headerGroup) => (
465
465
  <HeaderRow key={headerGroup.id}>
@@ -566,7 +566,6 @@ export const WithInlineEdit: StoryFn<StoryTableProps> = (args) => {
566
566
  <Table
567
567
  {...args}
568
568
  table={table}
569
- ref={tableContainerRef}
570
569
  data-total-rows={table.getRowModel().rows.length}
571
570
  >
572
571
  <TableHead>
@@ -637,7 +636,6 @@ export const SortableRows: StoryFn<StoryTableProps> = (args) => {
637
636
  <Table
638
637
  {...args}
639
638
  table={table}
640
- ref={tableContainerRef}
641
639
  data-total-rows={table.getRowModel().rows.length}
642
640
  >
643
641
  <TableHead>
@@ -691,7 +689,7 @@ export const SingleSelect: StoryFn<StoryTableProps> = (args) => {
691
689
 
692
690
  return (
693
691
  <>
694
- <Table {...args} table={table} ref={tableContainerRef}>
692
+ <Table {...args} table={table}>
695
693
  <TableHead isSticky>
696
694
  {table.getHeaderGroups().map((headerGroup) => (
697
695
  <HeaderRow key={headerGroup.id}>
@@ -762,7 +760,7 @@ export const SelectableRows: StoryFn<StoryTableProps> = (args) => {
762
760
  <>
763
761
  <button onClick={logSelectedRows}>Log Selected Rows</button>
764
762
 
765
- <Table {...args} table={table} ref={tableContainerRef}>
763
+ <Table {...args} table={table}>
766
764
  <TableHead isSticky>
767
765
  {table.getHeaderGroups().map((headerGroup: HeaderGroup<Person>) => (
768
766
  <HeaderRow key={headerGroup.id}>
@@ -834,7 +832,7 @@ export const PreSelectedRows: StoryFn<StoryTableProps> = (args) => {
834
832
  <>
835
833
  <button onClick={logSelectedRows}>Log Selected Rows</button>
836
834
 
837
- <Table {...args} table={table} ref={tableContainerRef}>
835
+ <Table {...args} table={table}>
838
836
  <TableHead isSticky>
839
837
  {table.getHeaderGroups().map((headerGroup: HeaderGroup<Person>) => (
840
838
  <HeaderRow key={headerGroup.id}>
@@ -921,7 +919,7 @@ export const ExpandableContent: StoryFn<StoryTableProps> = (args) => {
921
919
  const { rows } = table.getRowModel();
922
920
 
923
921
  return (
924
- <Table {...args} table={table} ref={tableContainerRef}>
922
+ <Table {...args} table={table}>
925
923
  <TableHead>
926
924
  {table.getHeaderGroups().map((headerGroup: HeaderGroup<Person>) => (
927
925
  <HeaderRow key={headerGroup.id}>
@@ -1032,7 +1030,7 @@ export const ExpandableAndSelectableRows: StoryFn<StoryTableProps> = (args) => {
1032
1030
  <>
1033
1031
  <button onClick={logSelectedRows}>Log Selected Rows</button>
1034
1032
 
1035
- <Table {...args} table={table} ref={tableContainerRef}>
1033
+ <Table {...args} table={table}>
1036
1034
  <TableHead isSticky>
1037
1035
  {table.getHeaderGroups().map((headerGroup: HeaderGroup<Person>) => (
1038
1036
  <HeaderRow key={headerGroup.id}>
@@ -1244,7 +1242,6 @@ export const NestedRows: StoryFn<StoryTableProps> = (args) => {
1244
1242
  <Table
1245
1243
  {...args}
1246
1244
  table={table}
1247
- ref={tableContainerRef}
1248
1245
  data-total-rows={table.getRowModel().rows.length}
1249
1246
  >
1250
1247
  <TableHead>
@@ -1378,7 +1375,6 @@ export const BulkSelection: StoryFn<StoryTableProps> = (args) => {
1378
1375
  <Table
1379
1376
  {...args}
1380
1377
  table={table}
1381
- ref={tableContainerRef}
1382
1378
  data-total-rows={table.getRowModel().rows.length}
1383
1379
  >
1384
1380
  <TableHead>
@@ -1611,7 +1607,7 @@ export const ResizableColumns: StoryFn<StoryTableProps> = (args) => {
1611
1607
  const { rows } = table.getRowModel();
1612
1608
 
1613
1609
  return (
1614
- <Table {...args} table={table} ref={tableContainerRef}>
1610
+ <Table {...args} table={table}>
1615
1611
  <TableHead>
1616
1612
  {table.getHeaderGroups().map((headerGroup: HeaderGroup<Person>) => (
1617
1613
  <HeaderRow key={headerGroup.id}>
@@ -1767,7 +1763,7 @@ export const ColumnManager: StoryFn<{}> = (args) => {
1767
1763
 
1768
1764
  return (
1769
1765
  <div style={{ display: "flex" }}>
1770
- <Table {...args} table={table} ref={tableContainerRef}>
1766
+ <Table {...args} table={table}>
1771
1767
  <TableHead isSticky>
1772
1768
  {table
1773
1769
  .getHeaderGroups()
@@ -2098,7 +2094,6 @@ export const WithHeader: StoryFn<StoryTableProps> = (args) => {
2098
2094
  dropdownFilters={[{ columnName: "status", placeholder: "Status" }]}
2099
2095
  />
2100
2096
  }
2101
- ref={tableContainerRef}
2102
2097
  >
2103
2098
  <TableHead isSticky>
2104
2099
  {table.getHeaderGroups().map((headerGroup: HeaderGroup<Person>) => (
@@ -2323,7 +2318,6 @@ export const GlobalFilter: StoryFn<StoryTableProps> = (args) => {
2323
2318
  isFilterableable={true}
2324
2319
  />
2325
2320
  }
2326
- ref={tableContainerRef}
2327
2321
  withPagination={true}
2328
2322
  paginationProps={{
2329
2323
  numTotalItems: data.length,
@@ -2472,7 +2466,6 @@ export const WithPagination: StoryFn<StoryTableProps> = ({ ...rest }) => {
2472
2466
  <ScrollableContainer allowVerticalScrolling style={{height: "calc(100vh - 90px)"}}>
2473
2467
  <Table
2474
2468
  {...rest}
2475
- ref={tableContainerRef}
2476
2469
  table={table}
2477
2470
  withPagination={true}
2478
2471
  paginationProps={{
@@ -2772,7 +2765,7 @@ export const StickyColumns: StoryFn<StoryTableProps> = (args) => {
2772
2765
  return (
2773
2766
  <>
2774
2767
  <div style={{width: '100%', height: '80vh'}}>
2775
- <Table {...args} table={table} ref={tableContainerRef}
2768
+ <Table {...args} table={table}
2776
2769
  header={
2777
2770
  <TableHeader
2778
2771
  isSticky
@@ -2889,6 +2882,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2889
2882
  const data = useMemo(
2890
2883
  () => [
2891
2884
  {
2885
+ id: "1",
2892
2886
  name: "Name1",
2893
2887
  description: "Description7",
2894
2888
  progress: "Completed",
@@ -2896,6 +2890,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2896
2890
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2897
2891
  },
2898
2892
  {
2893
+ id: "2",
2899
2894
  name: "Name2",
2900
2895
  description: "Description7",
2901
2896
  progress: "Completed",
@@ -2903,6 +2898,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2903
2898
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
2904
2899
  },
2905
2900
  {
2901
+ id: "3",
2906
2902
  name: "Name3",
2907
2903
  description: "Description8",
2908
2904
  progress: "Pending",
@@ -2910,6 +2906,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2910
2906
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
2911
2907
  },
2912
2908
  {
2909
+ id: "4",
2913
2910
  name: "Name4",
2914
2911
  description: "Description8",
2915
2912
  progress: "Completed",
@@ -2917,6 +2914,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2917
2914
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2918
2915
  },
2919
2916
  {
2917
+ id: "5",
2920
2918
  name: "Name5",
2921
2919
  description: "Description9",
2922
2920
  progress: "Completed",
@@ -2924,6 +2922,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2924
2922
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2925
2923
  },
2926
2924
  {
2925
+ id: "6",
2927
2926
  name: "Name6",
2928
2927
  description: "Description9",
2929
2928
  progress: "Completed",
@@ -2931,6 +2930,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2931
2930
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
2932
2931
  },
2933
2932
  {
2933
+ id: "7",
2934
2934
  name: "Name7",
2935
2935
  description: "Description9",
2936
2936
  progress: "Completed",
@@ -2938,6 +2938,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2938
2938
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2939
2939
  },
2940
2940
  {
2941
+ id: "8",
2941
2942
  name: "Name8",
2942
2943
  description: "Description9",
2943
2944
  progress: "Completed",
@@ -2945,6 +2946,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2945
2946
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2946
2947
  },
2947
2948
  {
2949
+ id: "9",
2948
2950
  name: "Name9",
2949
2951
  description: "Description10",
2950
2952
  progress: "Pending",
@@ -2952,6 +2954,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2952
2954
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
2953
2955
  },
2954
2956
  {
2957
+ id: "10",
2955
2958
  name: "Name10",
2956
2959
  description: "Description11",
2957
2960
  progress: "Completed",
@@ -2959,6 +2962,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2959
2962
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2960
2963
  },
2961
2964
  {
2965
+ id: "11",
2962
2966
  name: "Name11",
2963
2967
  description: "Description11",
2964
2968
  progress: "Pending",
@@ -2966,6 +2970,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2966
2970
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2967
2971
  },
2968
2972
  {
2973
+ id: "12",
2969
2974
  name: "Name1",
2970
2975
  description: "Description7",
2971
2976
  progress: "Completed",
@@ -2973,6 +2978,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2973
2978
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2974
2979
  },
2975
2980
  {
2981
+ id: "13",
2976
2982
  name: "Name2",
2977
2983
  description: "Description7",
2978
2984
  progress: "Completed",
@@ -2980,6 +2986,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2980
2986
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
2981
2987
  },
2982
2988
  {
2989
+ id: "14",
2983
2990
  name: "Name3",
2984
2991
  description: "Description8",
2985
2992
  progress: "Pending",
@@ -2987,6 +2994,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2987
2994
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
2988
2995
  },
2989
2996
  {
2997
+ id: "15",
2990
2998
  name: "Name4",
2991
2999
  description: "Description8",
2992
3000
  progress: "Completed",
@@ -2994,6 +3002,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
2994
3002
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
2995
3003
  },
2996
3004
  {
3005
+ id: "16",
2997
3006
  name: "Name5",
2998
3007
  description: "Description9",
2999
3008
  progress: "Completed",
@@ -3001,6 +3010,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3001
3010
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
3002
3011
  },
3003
3012
  {
3013
+ id: "17",
3004
3014
  name: "Name6",
3005
3015
  description: "Description9",
3006
3016
  progress: "Completed",
@@ -3008,6 +3018,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3008
3018
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
3009
3019
  },
3010
3020
  {
3021
+ id: "18",
3011
3022
  name: "Name7",
3012
3023
  description: "Description9",
3013
3024
  progress: "Completed",
@@ -3015,6 +3026,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3015
3026
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
3016
3027
  },
3017
3028
  {
3029
+ id: "19",
3018
3030
  name: "Name8",
3019
3031
  description: "Description9",
3020
3032
  progress: "Completed",
@@ -3022,6 +3034,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3022
3034
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
3023
3035
  },
3024
3036
  {
3037
+ id: "20",
3025
3038
  name: "Name9",
3026
3039
  description: "Description10",
3027
3040
  progress: "Pending",
@@ -3029,6 +3042,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3029
3042
  assignee: { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
3030
3043
  },
3031
3044
  {
3045
+ id: "21",
3032
3046
  name: "Name10",
3033
3047
  description: "Description11",
3034
3048
  progress: "Completed",
@@ -3036,6 +3050,7 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3036
3050
  assignee: { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
3037
3051
  },
3038
3052
  {
3053
+ id: "22",
3039
3054
  name: "Name11",
3040
3055
  description: "Description11",
3041
3056
  progress: "Pending",
@@ -3057,12 +3072,15 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3057
3072
  ];
3058
3073
 
3059
3074
  const [filteredData, setFilteredData] = useState(data);
3075
+ const initiallySelectedRowIds = useMemo(() => [1, 6], []);
3060
3076
 
3061
3077
  const table = useLeafyGreenTable<any>({
3062
3078
  containerRef: tableContainerRef,
3063
3079
  data: filteredData,
3064
3080
  columns,
3065
3081
  useVirtualScrolling: true,
3082
+ hasSelectableRows: true,
3083
+ initiallySelectedRowIds
3066
3084
  });
3067
3085
 
3068
3086
  const { rows } = table.getRowModel();
@@ -3112,10 +3130,9 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3112
3130
  ]}
3113
3131
  maxDropdownFilters={3}
3114
3132
  tableName="with_filters"
3115
- defaultFiltersValues={defaultFiltersValues}
3133
+ // defaultFiltersValues={defaultFiltersValues}
3116
3134
  />
3117
3135
  }
3118
- ref={tableContainerRef}
3119
3136
  style={{ width: "100%" }}
3120
3137
  >
3121
3138
  <TableHead isSticky>
@@ -3168,3 +3185,188 @@ export const WithFilters: StoryFn<StoryTableProps> = (args) => {
3168
3185
  );
3169
3186
  };
3170
3187
 
3188
+ export const TestingStory: StoryFn<StoryTableProps> = (args) => {
3189
+ const tableContainerRef = React.useRef<HTMLDivElement>(null);
3190
+
3191
+ const columns = useMemo(
3192
+ () => [
3193
+ {
3194
+ id: "name",
3195
+ header: "Name",
3196
+ accessorKey: "name",
3197
+ size: 100,
3198
+ },
3199
+ {
3200
+ id: "description",
3201
+ header: "Description",
3202
+ accessorKey: "description",
3203
+ size: 200,
3204
+ },
3205
+ {
3206
+ id: "progress",
3207
+ header: "Progress",
3208
+ accessorKey: "progress",
3209
+ size: 120,
3210
+ },
3211
+ {
3212
+ id: "status",
3213
+ header: "Status",
3214
+ accessorKey: "status",
3215
+ size: 100,
3216
+ },
3217
+ {
3218
+ id: "assignee",
3219
+ header: "Assignee",
3220
+ accessorKey: "assignee",
3221
+ size: 150,
3222
+ cell: (info: { row: { original: { assignee: { leftAvatar: string; label: string; }; }; }; }) => {
3223
+ return (
3224
+ <div style={{ display: "flex", alignItems: "center", gap: "5px" }}>
3225
+ <img
3226
+ src={info.row.original.assignee.leftAvatar}
3227
+ alt={info.row.original.assignee.label}
3228
+ style={{ width: 20, height: 20, borderRadius: "50%" }}
3229
+ />
3230
+ {info.row.original.assignee.label}
3231
+ </div>
3232
+ );
3233
+ },
3234
+ },
3235
+ {
3236
+ id: "click-me",
3237
+ header: "Click",
3238
+ width: 100,
3239
+ cell: () => {
3240
+ return (
3241
+ <Link
3242
+ onClick={() => {}}
3243
+ text="Click me!"
3244
+ disableNavigation={true}
3245
+ />
3246
+ );
3247
+ },
3248
+ },
3249
+ ],
3250
+ []
3251
+ );
3252
+
3253
+ const generateRandomData = (count: number): Person[] => {
3254
+ const statuses = ['Active', 'Inactive', 'Pending'];
3255
+ const progresses = ['Completed', 'In Progress', 'Not Started'];
3256
+ const assignees = [
3257
+ { value: "Rotem", label: "Rotem Dekel", leftAvatar: person1 },
3258
+ { value: "Hadas", label: "Hadas Farhi", leftAvatar: person2 },
3259
+ ];
3260
+
3261
+ return Array.from({ length: count }, (_, index) => ({
3262
+ name: `Name${index + 1}`,
3263
+ description: `Description${Math.floor(Math.random() * 20) + 1}`,
3264
+ progress: progresses[Math.floor(Math.random() * progresses.length)],
3265
+ status: statuses[Math.floor(Math.random() * statuses.length)],
3266
+ assignee: assignees[Math.floor(Math.random() * assignees.length)],
3267
+ }));
3268
+ };
3269
+
3270
+ const data = useMemo(() => generateRandomData(5000), []);
3271
+ const [filteredData, setFilteredData] = useState(data);
3272
+
3273
+ const table = useLeafyGreenTable<Person>({
3274
+ containerRef: tableContainerRef,
3275
+ data: filteredData,
3276
+ columns,
3277
+ infiniteScrolling: true,
3278
+ });
3279
+
3280
+ const { rows } = table.getRowModel();
3281
+
3282
+ const headerButtons = [
3283
+ <Button
3284
+ key="1"
3285
+ onClick={() => console.log("Clicked button 1")}
3286
+ kind="primary"
3287
+ size="small"
3288
+ >
3289
+ Button 1
3290
+ </Button>,
3291
+ <Button
3292
+ key="2"
3293
+ onClick={() => console.log("Clicked button 2")}
3294
+ kind="secondary"
3295
+ size="small"
3296
+ >
3297
+ Button 2
3298
+ </Button>,
3299
+ <Button
3300
+ key="3"
3301
+ onClick={() => console.log("Clicked button 3")}
3302
+ kind="secondary"
3303
+ size="small"
3304
+ >
3305
+ Button 3
3306
+ </Button>,
3307
+ ];
3308
+
3309
+ return (
3310
+ <div style={{width: "100%"}}>
3311
+ <Box
3312
+ shadow={Box.shadows.XS}
3313
+ rounded={Box.roundeds.MEDIUM}
3314
+ padding={Box.paddings.SMALL}
3315
+ border={Box.borders.DEFAULT}
3316
+ className={"section emptyState"}
3317
+ backgroundColor={Box.backgroundColors.Primary}>
3318
+ <ScrollableContainer allowVerticalScrolling style={{height: "calc(100vh - 90px)"}}>
3319
+ <Table
3320
+ {...args}
3321
+ table={table}
3322
+ style={{width: '100%'}}
3323
+ header={
3324
+ <TableHeader
3325
+ isSticky
3326
+ data={data}
3327
+ onFilteredDataChange={setFilteredData}
3328
+ globalSearch={true}
3329
+ headerButtons={headerButtons}
3330
+ globalFilterColumns={["name", "description"]}
3331
+ dropdownFilters={[{ columnName: "status", placeholder: "Status" }]}
3332
+ />
3333
+ }
3334
+ >
3335
+ <TableHead isSticky>
3336
+ {table.getHeaderGroups().map((headerGroup: HeaderGroup<Person>) => (
3337
+ <HeaderRow key={headerGroup.id}>
3338
+ {headerGroup.headers.map((header) => (
3339
+ <HeaderCell key={header.id} header={header} align="left">
3340
+ {flexRender(
3341
+ header.column.columnDef.header,
3342
+ header.getContext()
3343
+ )}
3344
+ </HeaderCell>
3345
+ ))}
3346
+ </HeaderRow>
3347
+ ))}
3348
+ </TableHead>
3349
+ <TableBody>
3350
+ {table.getRowModel().rows.map((row: LeafyGreenTableRow<any>) => {
3351
+ return (
3352
+ <Row key={row.id} row={row}>
3353
+ {row.getVisibleCells().map((cell) => {
3354
+ return (
3355
+ <Cell key={cell.id} cell={cell}>
3356
+ {flexRender(
3357
+ cell.column.columnDef.cell,
3358
+ cell.getContext()
3359
+ )}
3360
+ </Cell>
3361
+ );
3362
+ })}
3363
+ </Row>
3364
+ );
3365
+ })}
3366
+ </TableBody>
3367
+ </Table>
3368
+ </ScrollableContainer>
3369
+ </Box>
3370
+ </div>
3371
+ );
3372
+ };
@@ -6,7 +6,9 @@ import * as NewTableStories from "./NewTable.stories";
6
6
 
7
7
  <Meta of={NewTableStories} />
8
8
 
9
- The `NewTable`
9
+ - [Props](#props)
10
+ - [Usage](#usage)
11
+ - [Feedback](#feedback)
10
12
 
11
13
  ## Component Props
12
14
 
@@ -15,3 +17,132 @@ The `NewTable`
15
17
  ## Usage Examples
16
18
 
17
19
  Below are examples demonstrating different configurations of the `NewTable` component.
20
+
21
+ ## With Option On Hover
22
+
23
+ To show any option on Hover, you can use `hoverIcon` prop in the `useLeafyGreenTable` hook. The type of `hoverIcon` is `React.ReactNode`.
24
+
25
+ <Canvas>
26
+ <Story of={NewTableStories.WithOptionOnHover} />
27
+ </Canvas>
28
+
29
+ ## With No Content
30
+
31
+ The `emptyTableContent` prop is used to display a message or component when there is no data in the table. Its type is `React.ReactNode`, meaning it can accept any valid React element, such as a string, JSX, or a React component.
32
+
33
+ <Canvas>
34
+ <Story of={NewTableStories.WithNoContent} />
35
+ </Canvas>
36
+
37
+ ## With Group Header
38
+
39
+ <Canvas>
40
+ <Story of={NewTableStories.WithGroupHeader} />
41
+ </Canvas>
42
+
43
+ ## With Inline Edit
44
+
45
+ <Canvas>
46
+ <Story of={NewTableStories.WithInlineEdit} />
47
+ </Canvas>
48
+
49
+ ## Sortable Rows
50
+
51
+ To enable sorting functionality for your table columns, you can use the `enableSorting` prop in the column object. Set `enableSorting: true` for any column you want to be sortable.
52
+ <Canvas>
53
+ <Story of={NewTableStories.SortableRows} />
54
+ </Canvas>
55
+
56
+ ## Single Select
57
+
58
+ `allowSelectSingle` This prop is used for single row selection. When enabled, it ensures that only one row can be selected at a time, automatically deselecting any previously selected row.
59
+
60
+ `onSelect` This prop is used to handle row selection. It triggers a callback when a row is selected, passing the selected row's data so you can perform actions like displaying details or updating the state.
61
+
62
+ <Canvas>
63
+ <Story of={NewTableStories.SingleSelect} />
64
+ </Canvas>
65
+
66
+ ## Selectable Rows
67
+
68
+ <Canvas>
69
+ <Story of={NewTableStories.SelectableRows} />
70
+ </Canvas>
71
+
72
+ ## Pre Selected Rows
73
+
74
+ <Canvas>
75
+ <Story of={NewTableStories.PreSelectedRows} />
76
+ </Canvas>
77
+
78
+ ## Expandable Content
79
+
80
+ <Canvas>
81
+ <Story of={NewTableStories.ExpandableContent} />
82
+ </Canvas>
83
+
84
+ ## Expandable and Selectable Rows
85
+
86
+ <Canvas>
87
+ <Story of={NewTableStories.ExpandableAndSelectableRows} />
88
+ </Canvas>
89
+
90
+ ## Nested Rows
91
+
92
+ <Canvas>
93
+ <Story of={NewTableStories.NestedRows} />
94
+ </Canvas>
95
+
96
+ ## Bulk Selection
97
+
98
+ <Canvas>
99
+ <Story of={NewTableStories.BulkSelection} />
100
+ </Canvas>
101
+
102
+ ## Horizontal Scroll
103
+
104
+ <Canvas>
105
+ <Story of={NewTableStories.HorizontalScroll} />
106
+ </Canvas>
107
+
108
+ ## Resizable Columns
109
+
110
+ <Canvas>
111
+ <Story of={NewTableStories.ResizableColumns} />
112
+ </Canvas>
113
+
114
+ ## Column Manager
115
+
116
+ <Canvas>
117
+ <Story of={NewTableStories.ColumnManager} />
118
+ </Canvas>
119
+
120
+ ## With Header
121
+
122
+ <Canvas>
123
+ <Story of={NewTableStories.WithHeader} />
124
+ </Canvas>
125
+
126
+ ## Global Filter
127
+
128
+ <Canvas>
129
+ <Story of={NewTableStories.GlobalFilter} />
130
+ </Canvas>
131
+
132
+ ## With Pagination
133
+
134
+ <Canvas>
135
+ <Story of={NewTableStories.WithPagination} />
136
+ </Canvas>
137
+
138
+ ## Sticky Columns
139
+
140
+ <Canvas>
141
+ <Story of={NewTableStories.StickyColumns} />
142
+ </Canvas>
143
+
144
+ ## With Filters
145
+
146
+ <Canvas>
147
+ <Story of={NewTableStories.WithFilters} />
148
+ </Canvas>