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

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -55,16 +55,47 @@ const useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({
55
55
 
56
56
  const columnManagerRef = useRef<HTMLButtonElement>(null);
57
57
  const isInitialSetupDone = useRef(false);
58
+ const initialSelectionRef = useRef<{ [key: string]: boolean }>({});
59
+ const previousDataRef = useRef<T[]>([]);
60
+ const observerRef = useRef<IntersectionObserver | null>(null);
61
+ const loadMoreTriggerRef = useRef<HTMLDivElement | null>(null);
62
+
63
+ const getRowId = useCallback((row: T, index: number) => {
64
+ if (hasSelectableRows) {
65
+ return row.id?.toString() ?? index.toString();
66
+ }
67
+ return index.toString();
68
+ }, [hasSelectableRows]);
69
+
70
+ useEffect(() => {
71
+ if (!isInitialSetupDone.current && hasSelectableRows) {
72
+ initialSelectionRef.current = initiallySelectedRowIds.reduce((acc, id) => {
73
+ acc[id.toString()] = true;
74
+ return acc;
75
+ }, {});
76
+ isInitialSetupDone.current = true;
77
+ }
78
+ }, [initiallySelectedRowIds, hasSelectableRows]);
79
+
80
+ useEffect(() => {
81
+ setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);
82
+ }, [data, infiniteScrolling, initialLoadCount]);
58
83
 
59
84
  useEffect(() => {
60
- if (loadedData.length === 0) {
61
- setLoadedData(infiniteScrolling ? data.slice(0, initialLoadCount) : data);
62
- } else {
63
- setTimeout(() => {
64
- setLoadedData(infiniteScrolling ? data.slice(0, loadedData.length) : data);
65
- }, 0);
85
+ if (data !== previousDataRef.current && hasSelectableRows) {
86
+ const newRowSelection = { ...initialSelectionRef.current, ...rowSelection };
87
+ const filteredSelection = {};
88
+ data.forEach((row, index) => {
89
+ const rowId = getRowId(row, index);
90
+ if (newRowSelection[rowId]) {
91
+ filteredSelection[rowId] = true;
92
+ }
93
+ });
94
+
95
+ setRowSelection(filteredSelection);
96
+ previousDataRef.current = data;
66
97
  }
67
- }, [data, initialLoadCount, infiniteScrolling, loadedData.length]);
98
+ }, [data, getRowId, hasSelectableRows]);
68
99
 
69
100
  const baseSelectColumnConfig: LGColumnDef<T, V> = {
70
101
  id: "select",
@@ -75,17 +106,17 @@ const useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({
75
106
 
76
107
  useEffect(() => {
77
108
  if (selectAllRows && hasSelectableRows) {
78
- const allSelected = loadedData.reduce((acc, row, index) => {
79
- acc[index] = true;
109
+ const allSelected = data.reduce((acc, row, index) => {
110
+ acc[getRowId(row, index)] = true;
80
111
  return acc;
81
112
  }, {});
82
113
  setRowSelection(allSelected);
83
114
  }
84
- }, [selectAllRows, hasSelectableRows, loadedData]);
115
+ }, [selectAllRows, hasSelectableRows, data, getRowId]);
85
116
 
86
- const handleRowClick = (rowId: number) => {
117
+ const handleRowClick = (rowId: string) => {
87
118
  if (allowSelectSingle) {
88
- const selectedRowData = loadedData.find((d) => d.id === Number(rowId) + 1);
119
+ const selectedRowData = data.find((d, index) => getRowId(d, index) === rowId);
89
120
  onSelect?.(selectedRowData);
90
121
  }
91
122
  };
@@ -207,33 +238,27 @@ const useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({
207
238
  const [columnResizeMode, setColumnResizeMode] = useState<ColumnResizeMode>("onChange");
208
239
  const [columnResizeDirection, setColumnResizeDirection] = useState<ColumnResizeDirection>("ltr");
209
240
 
210
- const table = useReactTable<LGTableDataType<T>>({
211
- data: loadedData,
212
- columns,
213
- getCoreRowModel: getCoreRowModel(),
214
- getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,
215
- enableExpanding: true,
216
- enableSortingRemoval: hasSortableColumns ? true : undefined,
217
- getSubRows: (row) => row.subRows,
218
- getSortedRowModel: getSortedRowModel(),
219
- getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,
220
- initialState: initialState ? initialState : undefined,
221
- state: { rowSelection },
222
- onRowSelectionChange: setRowSelection,
223
- columnResizeMode,
224
- columnResizeDirection,
225
- autoResetPageIndex,
226
- ...rest,
227
- });
241
+ const toggleAllRowsSelected = (value?: boolean) => {
242
+ if (!hasSelectableRows) return;
228
243
 
229
- const { rows } = table.getCoreRowModel();
230
- const { rows: paginationRows } = table.getPaginationRowModel();
231
- const _rowVirtualizer = useVirtual({
232
- parentRef: containerRef,
233
- size: rows.length,
234
- overscan: 30,
235
- ...virtualizerOptions,
236
- });
244
+ const newSelection = { ...initialSelectionRef.current };
245
+ const rowsToSelect = selectCurrentPageOnly ? table.getPageRows() : table.getPreFilteredRowModel().rows;
246
+
247
+ const setTo = value ?? !table.getIsAllRowsSelected();
248
+ rowsToSelect.forEach((row) => {
249
+ newSelection[row.id] = setTo;
250
+ });
251
+
252
+ setRowSelection(newSelection);
253
+ };
254
+
255
+ const unselectAllRows = () => {
256
+ if (!hasSelectableRows) return;
257
+
258
+ setRowSelection({});
259
+ initialSelectionRef.current = {};
260
+ onUnselectAll?.();
261
+ };
237
262
 
238
263
  const loadMoreRows = useCallback(() => {
239
264
  if (!infiniteScrolling || isLoading || loadedData.length >= data.length) return;
@@ -244,102 +269,76 @@ const useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({
244
269
  return [...prevData, ...nextData];
245
270
  });
246
271
  setIsLoading(false);
247
- }, 1000);
248
- }, [infiniteScrolling, isLoading, data, loadMoreCount]);
272
+ if (onLoadMore) {
273
+ onLoadMore();
274
+ }
275
+ }, 500);
276
+ }, [infiniteScrolling, isLoading, data, loadMoreCount, onLoadMore, loadedData.length]);
249
277
 
250
278
  useEffect(() => {
251
- const handleScroll = () => {
252
- if (
253
- infiniteScrolling &&
254
- containerRef.current &&
255
- containerRef.current.scrollHeight - containerRef.current.scrollTop ===
256
- containerRef.current.clientHeight
257
- ) {
258
- loadMoreRows();
259
- }
260
- };
279
+ if (infiniteScrolling && loadMoreTriggerRef.current) {
280
+ observerRef.current = new IntersectionObserver(
281
+ (entries) => {
282
+ if (entries[0].isIntersecting) {
283
+ loadMoreRows();
284
+ }
285
+ },
286
+ { threshold: 0.1 }
287
+ );
261
288
 
262
- const container = containerRef.current;
263
- if (container) {
264
- container.addEventListener("scroll", handleScroll);
265
- return () => {
266
- container.removeEventListener("scroll", handleScroll);
267
- };
289
+ observerRef.current.observe(loadMoreTriggerRef.current);
268
290
  }
269
- }, [containerRef, loadMoreRows, infiniteScrolling]);
270
291
 
271
- useEffect(() => {
272
- const checkContainerHeight = () => {
273
- if (
274
- infiniteScrolling &&
275
- containerRef.current &&
276
- containerRef.current.scrollHeight <= containerRef.current.clientHeight
277
- ) {
278
- loadMoreRows();
292
+ return () => {
293
+ if (observerRef.current) {
294
+ observerRef.current.disconnect();
279
295
  }
280
296
  };
297
+ }, [infiniteScrolling, loadMoreRows]);
281
298
 
282
- const container = containerRef.current;
283
- if (container) {
284
- const observer = new MutationObserver(checkContainerHeight);
285
- observer.observe(container, { childList: true, subtree: true });
286
-
287
- checkContainerHeight();
288
-
289
- return () => {
290
- observer.disconnect();
291
- };
292
- }
293
- }, [containerRef, infiniteScrolling, loadMoreRows]);
294
-
295
- const toggleAllRowsSelected = () => {
296
- const isAllRowsSelected = selectCurrentPageOnly
297
- ? paginationRows.every((row) => rowSelection[row.id])
298
- : rows.every((row) => rowSelection[row.id]);
299
-
300
- const newSelection = {};
301
- const rowsToSelect = selectCurrentPageOnly ? paginationRows : rows;
302
-
303
- rowsToSelect.forEach((row) => {
304
- newSelection[row.id] = !isAllRowsSelected;
305
- });
306
-
307
- setRowSelection(newSelection);
299
+ const tableOptions = {
300
+ data: loadedData,
301
+ columns,
302
+ getCoreRowModel: getCoreRowModel(),
303
+ getRowCanExpand: (row) => !!row.original.renderExpandedContent || !!row.subRows?.length,
304
+ enableExpanding: true,
305
+ enableSortingRemoval: hasSortableColumns ? true : undefined,
306
+ getSubRows: (row) => row.subRows,
307
+ getSortedRowModel: getSortedRowModel(),
308
+ getPaginationRowModel: withPagination ? getPaginationRowModel() : undefined,
309
+ initialState: initialState ? initialState : undefined,
310
+ columnResizeMode,
311
+ columnResizeDirection,
312
+ autoResetPageIndex,
313
+ ...rest,
308
314
  };
309
315
 
310
- const unselectAllRows = () => {
311
- setRowSelection({});
312
- onUnselectAll?.();
313
- };
316
+ if (hasSelectableRows) {
317
+ tableOptions.getRowId = getRowId;
318
+ tableOptions.state = { rowSelection };
319
+ tableOptions.onRowSelectionChange = setRowSelection;
320
+ }
321
+
322
+ const table = useReactTable<LGTableDataType<T>>(tableOptions);
314
323
 
315
324
  table.toggleAllRowsSelected = toggleAllRowsSelected;
316
325
  table.unselectAllRows = unselectAllRows;
317
326
 
327
+ const { rows } = table.getCoreRowModel();
328
+ const { rows: paginationRows } = table.getPaginationRowModel();
329
+ const _rowVirtualizer = useVirtual({
330
+ parentRef: containerRef,
331
+ size: rows.length,
332
+ overscan: 30,
333
+ ...virtualizerOptions,
334
+ });
335
+
318
336
  useEffect(() => {
319
- if (onRowSelectionChange) {
320
- const selectedRows = Object.entries(rowSelection).reduce((selected, [key, value]) => {
321
- if (value) {
322
- selected.push(data[parseInt(key)]);
323
- }
324
- return selected;
325
- }, [] as T[]);
337
+ if (onRowSelectionChange && hasSelectableRows) {
338
+ const selectedRows = data.filter((row, index) => rowSelection[getRowId(row, index)]);
326
339
  onRowSelectionChange(selectedRows);
327
340
  }
328
- }, [rowSelection, data, onRowSelectionChange]);
329
-
330
- useLayoutEffect(() => {
331
- if (!isInitialSetupDone.current && table.getRowModel().rows.length > 0) {
332
- const rowIds = table.getRowModel().rows
333
- .filter((row) => initiallySelectedRowIds.includes(row.original.id))
334
- .map((row) => row.id);
335
- const initialRowSelection = rowIds.reduce((acc, id) => {
336
- acc[id] = true;
337
- return acc;
338
- }, {});
339
- setRowSelection(initialRowSelection);
340
- isInitialSetupDone.current = true;
341
- }
342
- }, [initiallySelectedRowIds, table.getRowModel().rows]);
341
+ }, [rowSelection, data, onRowSelectionChange, getRowId, hasSelectableRows]);
343
342
 
344
343
  return {
345
344
  ...table,
@@ -359,6 +358,10 @@ const useLeafyGreenTable = <T extends LGRowData, V extends unknown = unknown>({
359
358
  columnManagerRef,
360
359
  setHoveredRow,
361
360
  isLoading,
361
+ loadedData,
362
+ loadMoreTriggerRef,
363
+ infiniteScrolling,
364
+ loadMoreRows,
362
365
  } as LeafyGreenTable<T>;
363
366
  };
364
367