ekm-ui 0.3.74 → 0.3.78

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 (264) hide show
  1. package/.turbo/turbo-build.log +128 -128
  2. package/CHANGELOG.md +12 -0
  3. package/dist/accordion.d.ts +28 -21
  4. package/dist/accordion.mjs +1 -1
  5. package/dist/alert-banner.mjs +1 -1
  6. package/dist/avatar.mjs +1 -1
  7. package/dist/badge.mjs +1 -1
  8. package/dist/breadcrumb.mjs +1 -1
  9. package/dist/card-payment-block.css +1 -1
  10. package/dist/card-payment-block.css.map +1 -1
  11. package/dist/card-payment-block.mjs +46 -46
  12. package/dist/checkbox.mjs +1 -1
  13. package/dist/chunk-2OTVEVU7.mjs +11 -0
  14. package/dist/chunk-2OTVEVU7.mjs.map +1 -0
  15. package/dist/{chunk-47S6AX7M.mjs → chunk-2PW7KHXJ.mjs} +1 -1
  16. package/dist/chunk-2PW7KHXJ.mjs.map +1 -0
  17. package/dist/{chunk-CMA7TSQG.mjs → chunk-35VEFUPA.mjs} +4 -4
  18. package/dist/chunk-35VEFUPA.mjs.map +1 -0
  19. package/dist/{chunk-ZWJSMASL.mjs → chunk-3AGRJPPN.mjs} +3 -3
  20. package/dist/chunk-3AGRJPPN.mjs.map +1 -0
  21. package/dist/{chunk-MRJOYGDD.mjs → chunk-3TAXDPV6.mjs} +2 -2
  22. package/dist/{chunk-MRJOYGDD.mjs.map → chunk-3TAXDPV6.mjs.map} +1 -1
  23. package/dist/{chunk-5DQUZENZ.mjs → chunk-6F3XKP3G.mjs} +2 -2
  24. package/dist/chunk-6F3XKP3G.mjs.map +1 -0
  25. package/dist/{chunk-HEKVJKLH.mjs → chunk-6UK5Y6KZ.mjs} +2 -2
  26. package/dist/{chunk-HEKVJKLH.mjs.map → chunk-6UK5Y6KZ.mjs.map} +1 -1
  27. package/dist/{chunk-EWNPNF2B.mjs → chunk-76V2THLN.mjs} +3 -3
  28. package/dist/chunk-76V2THLN.mjs.map +1 -0
  29. package/dist/chunk-7GLTVVKS.mjs +12 -0
  30. package/dist/chunk-7GLTVVKS.mjs.map +1 -0
  31. package/dist/{chunk-UUWBHZKH.mjs → chunk-7MH2LXFV.mjs} +4 -4
  32. package/dist/{chunk-UUWBHZKH.mjs.map → chunk-7MH2LXFV.mjs.map} +1 -1
  33. package/dist/{chunk-7YKZ7D7U.mjs → chunk-ATNP3Z6G.mjs} +2 -2
  34. package/dist/{chunk-25FJ277C.mjs → chunk-AYH56CFA.mjs} +3 -3
  35. package/dist/chunk-AYH56CFA.mjs.map +1 -0
  36. package/dist/{chunk-NEJOZRKV.mjs → chunk-BK5RX7N5.mjs} +2 -2
  37. package/dist/chunk-BK5RX7N5.mjs.map +1 -0
  38. package/dist/{chunk-F6ZWBNIM.mjs → chunk-CIUW5YZ7.mjs} +2 -2
  39. package/dist/chunk-CIUW5YZ7.mjs.map +1 -0
  40. package/dist/{chunk-WMFTYTMD.mjs → chunk-CZC4EJOD.mjs} +3 -3
  41. package/dist/chunk-CZC4EJOD.mjs.map +1 -0
  42. package/dist/{chunk-CEK5K5TU.mjs → chunk-D3VRYN5H.mjs} +4 -4
  43. package/dist/chunk-D3VRYN5H.mjs.map +1 -0
  44. package/dist/{chunk-W3DRXKTC.mjs → chunk-DBTYTFGU.mjs} +2 -2
  45. package/dist/chunk-DBTYTFGU.mjs.map +1 -0
  46. package/dist/{chunk-JCWSMIVA.mjs → chunk-E6KQBM7F.mjs} +2 -2
  47. package/dist/chunk-E6KQBM7F.mjs.map +1 -0
  48. package/dist/{chunk-5FPVCRAI.mjs → chunk-ECOC3JRK.mjs} +1 -1
  49. package/dist/{chunk-5FPVCRAI.mjs.map → chunk-ECOC3JRK.mjs.map} +1 -1
  50. package/dist/{chunk-3LINEESX.mjs → chunk-EH3ZVEVT.mjs} +1 -1
  51. package/dist/chunk-EH3ZVEVT.mjs.map +1 -0
  52. package/dist/{chunk-YJKULMWM.mjs → chunk-EX5FMSQL.mjs} +2 -2
  53. package/dist/chunk-EX5FMSQL.mjs.map +1 -0
  54. package/dist/{chunk-ASCPOK5F.mjs → chunk-FVUORQJX.mjs} +4 -4
  55. package/dist/chunk-FVUORQJX.mjs.map +1 -0
  56. package/dist/{chunk-WFRV27QA.mjs → chunk-G5A3E5IG.mjs} +3 -3
  57. package/dist/chunk-G5A3E5IG.mjs.map +1 -0
  58. package/dist/{chunk-2IL2LP47.mjs → chunk-HOCKBMTF.mjs} +3 -3
  59. package/dist/chunk-HOCKBMTF.mjs.map +1 -0
  60. package/dist/{chunk-FRIXS4BL.mjs → chunk-JPF3K5TD.mjs} +1 -1
  61. package/dist/chunk-JPF3K5TD.mjs.map +1 -0
  62. package/dist/{chunk-AYXC2DCM.mjs → chunk-K2G6O2LX.mjs} +3 -3
  63. package/dist/chunk-K2G6O2LX.mjs.map +1 -0
  64. package/dist/chunk-LVJYP46A.mjs +9 -0
  65. package/dist/chunk-LVJYP46A.mjs.map +1 -0
  66. package/dist/{chunk-VQ3MZS4J.mjs → chunk-MPIWXVKP.mjs} +2 -2
  67. package/dist/chunk-MPIWXVKP.mjs.map +1 -0
  68. package/dist/{chunk-DZABAR36.mjs → chunk-NJC2WLYK.mjs} +2 -2
  69. package/dist/chunk-NJC2WLYK.mjs.map +1 -0
  70. package/dist/{chunk-5CGIKL2Y.mjs → chunk-OG6UBKMG.mjs} +2 -2
  71. package/dist/chunk-OG6UBKMG.mjs.map +1 -0
  72. package/dist/chunk-PEODF7PL.mjs +34 -0
  73. package/dist/chunk-PEODF7PL.mjs.map +1 -0
  74. package/dist/{chunk-FAFXVD4P.mjs → chunk-PJZVMYPN.mjs} +4 -4
  75. package/dist/chunk-PJZVMYPN.mjs.map +1 -0
  76. package/dist/{chunk-KEIDXVZB.mjs → chunk-PT4IH2KW.mjs} +2 -2
  77. package/dist/chunk-PT4IH2KW.mjs.map +1 -0
  78. package/dist/{chunk-MXH3TZWM.mjs → chunk-QFECX4D6.mjs} +1 -1
  79. package/dist/chunk-QFECX4D6.mjs.map +1 -0
  80. package/dist/{chunk-5VH26DHQ.mjs → chunk-QMFUWXJJ.mjs} +1 -1
  81. package/dist/chunk-QMFUWXJJ.mjs.map +1 -0
  82. package/dist/chunk-R4A5DO7E.mjs +12 -0
  83. package/dist/chunk-R4A5DO7E.mjs.map +1 -0
  84. package/dist/{chunk-LQQDRIZN.mjs → chunk-RGCO6BCU.mjs} +3 -3
  85. package/dist/chunk-RGCO6BCU.mjs.map +1 -0
  86. package/dist/{chunk-PPMW7YAZ.mjs → chunk-SFSA2WUE.mjs} +28 -28
  87. package/dist/chunk-SFSA2WUE.mjs.map +1 -0
  88. package/dist/{chunk-XUXHB434.mjs → chunk-SM4TG5VI.mjs} +1 -1
  89. package/dist/chunk-SM4TG5VI.mjs.map +1 -0
  90. package/dist/{chunk-D6H235SZ.mjs → chunk-UPAA75QA.mjs} +1 -1
  91. package/dist/chunk-UPAA75QA.mjs.map +1 -0
  92. package/dist/{chunk-256SAVHD.mjs → chunk-W3XYS7M3.mjs} +1 -1
  93. package/dist/{chunk-256SAVHD.mjs.map → chunk-W3XYS7M3.mjs.map} +1 -1
  94. package/dist/chunk-X2JENUDV.mjs +16 -0
  95. package/dist/chunk-X2JENUDV.mjs.map +1 -0
  96. package/dist/chunk-XBWUYKZW.mjs +10 -0
  97. package/dist/chunk-XBWUYKZW.mjs.map +1 -0
  98. package/dist/{chunk-Q365BFES.mjs → chunk-YJINOUZ7.mjs} +1 -1
  99. package/dist/chunk-YJINOUZ7.mjs.map +1 -0
  100. package/dist/{chunk-4IKXV4FQ.mjs → chunk-Z5YZVKS5.mjs} +2 -2
  101. package/dist/{chunk-ZHCGY4YB.mjs → chunk-ZO5NWKNY.mjs} +2 -2
  102. package/dist/{chunk-ZHCGY4YB.mjs.map → chunk-ZO5NWKNY.mjs.map} +1 -1
  103. package/dist/color-picker.mjs +1 -1
  104. package/dist/dashboard-notification.mjs +1 -1
  105. package/dist/date-range-picker.mjs +4 -4
  106. package/dist/drag-and-drop.css +1 -1
  107. package/dist/drag-and-drop.css.map +1 -1
  108. package/dist/drag-and-drop.mjs +46 -46
  109. package/dist/draggable-stacked-list-item.mjs +2 -2
  110. package/dist/drawer.mjs +1 -1
  111. package/dist/dropdown.mjs +1 -1
  112. package/dist/feature-cards/feature-card.mjs +2 -2
  113. package/dist/featurePageComponents/feature-page-group.mjs +1 -1
  114. package/dist/file-picker/file-listing.d.ts +1 -1
  115. package/dist/file-picker/file-listing.mjs +2 -2
  116. package/dist/file-picker/file-picker.css +1 -1
  117. package/dist/file-picker/file-picker.css.map +1 -1
  118. package/dist/file-picker/file-picker.d.ts +2 -2
  119. package/dist/file-picker/file-picker.mjs +46 -46
  120. package/dist/fixed-alert.mjs +1 -1
  121. package/dist/footer-heart-icon.mjs +1 -1
  122. package/dist/form-row.mjs +2 -2
  123. package/dist/index.css +1 -1
  124. package/dist/index.css.map +1 -1
  125. package/dist/index.mjs +46 -46
  126. package/dist/input-copy.mjs +2 -2
  127. package/dist/label.mjs +1 -1
  128. package/dist/layout/layout.css +1 -1
  129. package/dist/layout/layout.css.map +1 -1
  130. package/dist/layout/layout.mjs +46 -46
  131. package/dist/loading-button.mjs +1 -1
  132. package/dist/love-footer.mjs +2 -2
  133. package/dist/mini-feature-block.mjs +2 -2
  134. package/dist/modal.mjs +1 -1
  135. package/dist/navbar/navbar.mjs +1 -1
  136. package/dist/no-results-block.d.ts +1 -1
  137. package/dist/no-results-block.mjs +1 -1
  138. package/dist/page-header.mjs +2 -2
  139. package/dist/pagination/pagination.mjs +1 -1
  140. package/dist/product-picker/product-drawer.css +1 -1
  141. package/dist/product-picker/product-drawer.css.map +1 -1
  142. package/dist/product-picker/product-drawer.mjs +46 -46
  143. package/dist/product-picker/product-listing.d.ts +1 -1
  144. package/dist/product-picker/product-listing.mjs +2 -2
  145. package/dist/progress-bar.mjs +1 -1
  146. package/dist/radio.mjs +1 -1
  147. package/dist/rich-text-editor/index.mjs +1 -1
  148. package/dist/search/search.mjs +1 -1
  149. package/dist/select.mjs +1 -1
  150. package/dist/sort/sort.mjs +1 -1
  151. package/dist/spinner.mjs +1 -1
  152. package/dist/stacked-list-item.css +1 -1
  153. package/dist/stacked-list-item.css.map +1 -1
  154. package/dist/stacked-list-item.mjs +46 -46
  155. package/dist/table-header/table-header.mjs +3 -3
  156. package/dist/table-result-block.css +1 -1
  157. package/dist/table-result-block.css.map +1 -1
  158. package/dist/table-result-block.mjs +46 -46
  159. package/dist/text-row.mjs +1 -1
  160. package/dist/textarea.mjs +1 -1
  161. package/dist/textinput.mjs +1 -1
  162. package/dist/toast/index.mjs +1 -1
  163. package/dist/toggleswitch.mjs +1 -1
  164. package/dist/tooltip/tooltip.mjs +1 -1
  165. package/dist/video-dashboard-notification.mjs +1 -1
  166. package/dist/video-modal.mjs +1 -1
  167. package/package.json +4 -2
  168. package/src/accordion.tsx +120 -58
  169. package/src/alert-banner.tsx +78 -56
  170. package/src/avatar.tsx +71 -49
  171. package/src/badge.tsx +38 -30
  172. package/src/breadcrumb.tsx +28 -21
  173. package/src/checkbox.tsx +28 -20
  174. package/src/color-picker.tsx +2 -4
  175. package/src/dashboard-notification.tsx +1 -2
  176. package/src/date-range-picker.tsx +208 -139
  177. package/src/drag-and-drop.tsx +4 -4
  178. package/src/draggable-stacked-list-item.tsx +2 -2
  179. package/src/drawer.tsx +2 -2
  180. package/src/dropdown.tsx +91 -73
  181. package/src/featurePageComponents/feature-page-group.tsx +0 -1
  182. package/src/file-picker/file-listing.tsx +86 -38
  183. package/src/file-picker/file-picker.tsx +296 -212
  184. package/src/fixed-alert.tsx +2 -5
  185. package/src/footer-heart-icon.tsx +31 -7
  186. package/src/form-row.tsx +1 -1
  187. package/src/index.tsx +1 -1
  188. package/src/input-copy.tsx +1 -1
  189. package/src/label.tsx +12 -6
  190. package/src/layout/layout.tsx +2 -2
  191. package/src/loading-button.tsx +21 -21
  192. package/src/mini-feature-block.tsx +2 -6
  193. package/src/modal.tsx +46 -34
  194. package/src/navbar/navbar.tsx +1 -1
  195. package/src/no-results-block.tsx +7 -3
  196. package/src/page-header.tsx +13 -8
  197. package/src/pagination/pagination.tsx +1 -1
  198. package/src/product-picker/product-drawer.tsx +226 -144
  199. package/src/product-picker/product-listing.tsx +84 -45
  200. package/src/progress-bar.tsx +39 -25
  201. package/src/radio.tsx +11 -11
  202. package/src/rich-text-editor/headless-editor.ts +5 -5
  203. package/src/search/search.tsx +4 -4
  204. package/src/select.tsx +2 -3
  205. package/src/sort/sort.tsx +33 -31
  206. package/src/spinner.tsx +3 -3
  207. package/src/stacked-list-item.tsx +1 -1
  208. package/src/table-header/table-header.tsx +114 -90
  209. package/src/table-result-block.tsx +12 -10
  210. package/src/text-row.tsx +1 -1
  211. package/src/textarea.tsx +27 -24
  212. package/src/textinput.tsx +31 -28
  213. package/src/toast/index.tsx +4 -4
  214. package/src/toggleswitch.tsx +3 -1
  215. package/src/tooltip/tooltip.tsx +1 -1
  216. package/src/video-dashboard-notification.tsx +0 -2
  217. package/src/video-modal.tsx +2 -5
  218. package/dist/chunk-25FJ277C.mjs.map +0 -1
  219. package/dist/chunk-2IL2LP47.mjs.map +0 -1
  220. package/dist/chunk-3LINEESX.mjs.map +0 -1
  221. package/dist/chunk-47S6AX7M.mjs.map +0 -1
  222. package/dist/chunk-5CGIKL2Y.mjs.map +0 -1
  223. package/dist/chunk-5DQUZENZ.mjs.map +0 -1
  224. package/dist/chunk-5VH26DHQ.mjs.map +0 -1
  225. package/dist/chunk-ASCPOK5F.mjs.map +0 -1
  226. package/dist/chunk-AYXC2DCM.mjs.map +0 -1
  227. package/dist/chunk-CEK5K5TU.mjs.map +0 -1
  228. package/dist/chunk-CMA7TSQG.mjs.map +0 -1
  229. package/dist/chunk-CZNQ24DQ.mjs +0 -16
  230. package/dist/chunk-CZNQ24DQ.mjs.map +0 -1
  231. package/dist/chunk-D6H235SZ.mjs.map +0 -1
  232. package/dist/chunk-DZABAR36.mjs.map +0 -1
  233. package/dist/chunk-EWNPNF2B.mjs.map +0 -1
  234. package/dist/chunk-F6ZWBNIM.mjs.map +0 -1
  235. package/dist/chunk-FAFXVD4P.mjs.map +0 -1
  236. package/dist/chunk-FRIXS4BL.mjs.map +0 -1
  237. package/dist/chunk-HZTQAUGX.mjs +0 -34
  238. package/dist/chunk-HZTQAUGX.mjs.map +0 -1
  239. package/dist/chunk-JACXLYPD.mjs +0 -12
  240. package/dist/chunk-JACXLYPD.mjs.map +0 -1
  241. package/dist/chunk-JCWSMIVA.mjs.map +0 -1
  242. package/dist/chunk-KEIDXVZB.mjs.map +0 -1
  243. package/dist/chunk-LQQDRIZN.mjs.map +0 -1
  244. package/dist/chunk-MXH3TZWM.mjs.map +0 -1
  245. package/dist/chunk-NEJOZRKV.mjs.map +0 -1
  246. package/dist/chunk-PPMW7YAZ.mjs.map +0 -1
  247. package/dist/chunk-Q365BFES.mjs.map +0 -1
  248. package/dist/chunk-REFCK56T.mjs +0 -12
  249. package/dist/chunk-REFCK56T.mjs.map +0 -1
  250. package/dist/chunk-VPLCWU7T.mjs +0 -9
  251. package/dist/chunk-VPLCWU7T.mjs.map +0 -1
  252. package/dist/chunk-VQ3MZS4J.mjs.map +0 -1
  253. package/dist/chunk-W3DRXKTC.mjs.map +0 -1
  254. package/dist/chunk-WFRV27QA.mjs.map +0 -1
  255. package/dist/chunk-WLJEFSES.mjs +0 -10
  256. package/dist/chunk-WLJEFSES.mjs.map +0 -1
  257. package/dist/chunk-WMFTYTMD.mjs.map +0 -1
  258. package/dist/chunk-XUXHB434.mjs.map +0 -1
  259. package/dist/chunk-YJKULMWM.mjs.map +0 -1
  260. package/dist/chunk-ZJATBQ3X.mjs +0 -10
  261. package/dist/chunk-ZJATBQ3X.mjs.map +0 -1
  262. package/dist/chunk-ZWJSMASL.mjs.map +0 -1
  263. /package/dist/{chunk-7YKZ7D7U.mjs.map → chunk-ATNP3Z6G.mjs.map} +0 -0
  264. /package/dist/{chunk-4IKXV4FQ.mjs.map → chunk-Z5YZVKS5.mjs.map} +0 -0
@@ -1,56 +1,56 @@
1
- export { e as TableResultBlock } from './chunk-HZTQAUGX.mjs';
2
- import './chunk-PPMW7YAZ.mjs';
3
- import './chunk-Q365BFES.mjs';
1
+ export { e as TableResultBlock } from './chunk-PEODF7PL.mjs';
2
+ import './chunk-SFSA2WUE.mjs';
3
+ import './chunk-YJINOUZ7.mjs';
4
4
  import './chunk-EHJJX6ZZ.mjs';
5
- import './chunk-ZJATBQ3X.mjs';
6
- import './chunk-CEK5K5TU.mjs';
7
- import './chunk-UUWBHZKH.mjs';
8
- import './chunk-ASCPOK5F.mjs';
9
- import './chunk-LQQDRIZN.mjs';
10
- import './chunk-256SAVHD.mjs';
11
- import './chunk-VPLCWU7T.mjs';
12
- import './chunk-CMA7TSQG.mjs';
13
- import './chunk-2IL2LP47.mjs';
14
- import './chunk-25FJ277C.mjs';
15
- import './chunk-FAFXVD4P.mjs';
16
- import './chunk-7YKZ7D7U.mjs';
5
+ import './chunk-2OTVEVU7.mjs';
6
+ import './chunk-D3VRYN5H.mjs';
7
+ import './chunk-7MH2LXFV.mjs';
8
+ import './chunk-FVUORQJX.mjs';
9
+ import './chunk-RGCO6BCU.mjs';
10
+ import './chunk-W3XYS7M3.mjs';
11
+ import './chunk-LVJYP46A.mjs';
12
+ import './chunk-35VEFUPA.mjs';
13
+ import './chunk-HOCKBMTF.mjs';
14
+ import './chunk-AYH56CFA.mjs';
15
+ import './chunk-PJZVMYPN.mjs';
16
+ import './chunk-ATNP3Z6G.mjs';
17
17
  import './chunk-P7TACBB4.mjs';
18
- import './chunk-5VH26DHQ.mjs';
19
- import './chunk-NEJOZRKV.mjs';
20
- import './chunk-5CGIKL2Y.mjs';
21
- import './chunk-MXH3TZWM.mjs';
22
- import './chunk-MRJOYGDD.mjs';
23
- import './chunk-5FPVCRAI.mjs';
18
+ import './chunk-QMFUWXJJ.mjs';
19
+ import './chunk-BK5RX7N5.mjs';
20
+ import './chunk-OG6UBKMG.mjs';
21
+ import './chunk-QFECX4D6.mjs';
22
+ import './chunk-3TAXDPV6.mjs';
23
+ import './chunk-ECOC3JRK.mjs';
24
24
  import './chunk-6K6D4X6D.mjs';
25
- import './chunk-ZHCGY4YB.mjs';
26
- import './chunk-5DQUZENZ.mjs';
27
- import './chunk-ZWJSMASL.mjs';
28
- import './chunk-4IKXV4FQ.mjs';
29
- import './chunk-W3DRXKTC.mjs';
30
- import './chunk-WMFTYTMD.mjs';
31
- import './chunk-EWNPNF2B.mjs';
32
- import './chunk-VQ3MZS4J.mjs';
33
- import './chunk-REFCK56T.mjs';
25
+ import './chunk-ZO5NWKNY.mjs';
26
+ import './chunk-6F3XKP3G.mjs';
27
+ import './chunk-3AGRJPPN.mjs';
28
+ import './chunk-Z5YZVKS5.mjs';
29
+ import './chunk-DBTYTFGU.mjs';
30
+ import './chunk-CZC4EJOD.mjs';
31
+ import './chunk-76V2THLN.mjs';
32
+ import './chunk-MPIWXVKP.mjs';
33
+ import './chunk-R4A5DO7E.mjs';
34
34
  import './chunk-ZT7KDTGF.mjs';
35
- import './chunk-47S6AX7M.mjs';
36
- import './chunk-FRIXS4BL.mjs';
35
+ import './chunk-2PW7KHXJ.mjs';
36
+ import './chunk-JPF3K5TD.mjs';
37
37
  import './chunk-PJMH47GY.mjs';
38
- import './chunk-DZABAR36.mjs';
39
- import './chunk-XUXHB434.mjs';
40
- import './chunk-F6ZWBNIM.mjs';
38
+ import './chunk-NJC2WLYK.mjs';
39
+ import './chunk-SM4TG5VI.mjs';
40
+ import './chunk-CIUW5YZ7.mjs';
41
41
  import './chunk-PT4DPY4L.mjs';
42
- import './chunk-CZNQ24DQ.mjs';
43
- import './chunk-WFRV27QA.mjs';
44
- import './chunk-HEKVJKLH.mjs';
45
- import './chunk-D6H235SZ.mjs';
46
- import './chunk-AYXC2DCM.mjs';
47
- import './chunk-WLJEFSES.mjs';
48
- import './chunk-JACXLYPD.mjs';
49
- import './chunk-KEIDXVZB.mjs';
42
+ import './chunk-X2JENUDV.mjs';
43
+ import './chunk-G5A3E5IG.mjs';
44
+ import './chunk-6UK5Y6KZ.mjs';
45
+ import './chunk-UPAA75QA.mjs';
46
+ import './chunk-K2G6O2LX.mjs';
47
+ import './chunk-XBWUYKZW.mjs';
48
+ import './chunk-7GLTVVKS.mjs';
49
+ import './chunk-PT4IH2KW.mjs';
50
50
  import './chunk-S3J72WZM.mjs';
51
- import './chunk-YJKULMWM.mjs';
52
- import './chunk-3LINEESX.mjs';
53
- import './chunk-JCWSMIVA.mjs';
51
+ import './chunk-EX5FMSQL.mjs';
52
+ import './chunk-EH3ZVEVT.mjs';
53
+ import './chunk-E6KQBM7F.mjs';
54
54
  import './chunk-SAXGEQRG.mjs';
55
55
  import './chunk-QHJF4QWW.mjs';
56
56
  import './chunk-GBY2NNWZ.mjs';
package/dist/text-row.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { a as TextRow } from './chunk-5FPVCRAI.mjs';
1
+ export { a as TextRow } from './chunk-ECOC3JRK.mjs';
2
2
  import './chunk-23SJGKDR.mjs';
3
3
  //# sourceMappingURL=out.js.map
4
4
  //# sourceMappingURL=text-row.mjs.map
package/dist/textarea.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { a as TextArea } from './chunk-2IL2LP47.mjs';
1
+ export { a as TextArea } from './chunk-HOCKBMTF.mjs';
2
2
  import './chunk-PUJZGK7Y.mjs';
3
3
  import './chunk-23SJGKDR.mjs';
4
4
  //# sourceMappingURL=out.js.map
@@ -1,4 +1,4 @@
1
- export { a as TextInput } from './chunk-5DQUZENZ.mjs';
1
+ export { a as TextInput } from './chunk-6F3XKP3G.mjs';
2
2
  import './chunk-PUJZGK7Y.mjs';
3
3
  import './chunk-23SJGKDR.mjs';
4
4
  //# sourceMappingURL=out.js.map
@@ -1,4 +1,4 @@
1
- export { a as ToastContext, b as ToastProvider, c as useToast } from '../chunk-UUWBHZKH.mjs';
1
+ export { a as ToastContext, b as ToastProvider, c as useToast } from '../chunk-7MH2LXFV.mjs';
2
2
  import '../chunk-23SJGKDR.mjs';
3
3
  //# sourceMappingURL=out.js.map
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- export { a as ToggleSwitch } from './chunk-WLJEFSES.mjs';
1
+ export { a as ToggleSwitch } from './chunk-XBWUYKZW.mjs';
2
2
  import './chunk-PUJZGK7Y.mjs';
3
3
  import './chunk-23SJGKDR.mjs';
4
4
  //# sourceMappingURL=out.js.map
@@ -1,4 +1,4 @@
1
- export { a as ToolTip } from '../chunk-ASCPOK5F.mjs';
1
+ export { a as ToolTip } from '../chunk-FVUORQJX.mjs';
2
2
  import '../chunk-23SJGKDR.mjs';
3
3
  //# sourceMappingURL=out.js.map
4
4
  //# sourceMappingURL=tooltip.mjs.map
@@ -1,4 +1,4 @@
1
- export { a as VideoDashboardNotification } from './chunk-25FJ277C.mjs';
1
+ export { a as VideoDashboardNotification } from './chunk-AYH56CFA.mjs';
2
2
  import './chunk-23SJGKDR.mjs';
3
3
  //# sourceMappingURL=out.js.map
4
4
  //# sourceMappingURL=video-dashboard-notification.mjs.map
@@ -1,4 +1,4 @@
1
- export { a as VideoModal } from './chunk-FAFXVD4P.mjs';
1
+ export { a as VideoModal } from './chunk-PJZVMYPN.mjs';
2
2
  import './chunk-23SJGKDR.mjs';
3
3
  //# sourceMappingURL=out.js.map
4
4
  //# sourceMappingURL=video-modal.mjs.map
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "ekm-ui",
3
- "version": "0.3.74",
3
+ "version": "0.3.78",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ],
7
7
  "main": "./dist/index.mjs",
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
- ".": "./dist/index.mjs",
10
+ ".": "./dist",
11
+ "./index.mjs": "./dist/index.mjs",
11
12
  "./styles.css": "./dist/index.css"
12
13
  },
13
14
  "license": "MIT",
@@ -62,6 +63,7 @@
62
63
  "@dnd-kit/utilities": "^3.2.1",
63
64
  "@headlessui/react": "^1.7.14",
64
65
  "@heroicons/react": "^2.0.18",
66
+ "@types/pluralize": "^0.0.33",
65
67
  "classname-variants": "^1.3.2",
66
68
  "clsx": "^1.2.1",
67
69
  "flowbite": "^1.8.1",
package/src/accordion.tsx CHANGED
@@ -1,103 +1,165 @@
1
- //@ts-nocheck
2
- import { useState, createContext, useContext, useEffect, useRef, cloneElement, Children } from 'react'
3
- import { HiChevronDown, HiChevronUp } from 'react-icons/hi'
4
- import PropTypes from 'prop-types'
5
- export const AccordionContext = createContext()
6
-
7
- export function Accordion({ children, ...props }) {
8
- const panelListRef = useRef([])
9
- const [currentlyShowing, setCurrentlyShowing] = useState(null)
10
-
11
- const handleSelection = (id) => {
1
+ import React, {
2
+ useState,
3
+ createContext,
4
+ useContext,
5
+ useEffect,
6
+ useRef,
7
+ cloneElement,
8
+ Children,
9
+ } from "react";
10
+ import { HiChevronDown, HiChevronUp } from "react-icons/hi";
11
+ import PropTypes from "prop-types";
12
+
13
+ type AccordionContext = {
14
+ currentlyShowing: string | null;
15
+ handleSelection: (id: string) => void;
16
+ addPanelOrder: (id: string) => void;
17
+ getPanelList: () => string[];
18
+ };
19
+
20
+ export const AccordionContext = createContext<AccordionContext>({
21
+ currentlyShowing: null,
22
+ handleSelection: (_: string) => {},
23
+ addPanelOrder: (_: string) => {},
24
+ getPanelList: () => [],
25
+ });
26
+
27
+ type AccordionProps = {
28
+ children: React.ReactElement<AccordionPanelProps>[];
29
+ };
30
+
31
+ export function Accordion({ children }: AccordionProps) {
32
+ const panelListRef = useRef<string[]>([]);
33
+ const [currentlyShowing, setCurrentlyShowing] = useState<string | null>(null);
34
+
35
+ const handleSelection = (id: string) => {
12
36
  if (currentlyShowing === id) {
13
- setCurrentlyShowing(null)
37
+ setCurrentlyShowing(null);
14
38
  } else {
15
- setCurrentlyShowing(id)
39
+ setCurrentlyShowing(id);
16
40
  }
17
- }
41
+ };
18
42
 
19
- const addPanelOrder = (id) => {
20
- panelListRef.current.push(id)
21
- }
43
+ const addPanelOrder = (id: string) => {
44
+ panelListRef.current.push(id);
45
+ };
22
46
 
23
47
  const getPanelList = () => {
24
- return panelListRef.current
25
- }
48
+ return panelListRef.current;
49
+ };
26
50
 
27
- return <AccordionContext.Provider value={{ currentlyShowing, handleSelection, addPanelOrder, getPanelList }}>{children}</AccordionContext.Provider>
51
+ return (
52
+ <AccordionContext.Provider
53
+ value={{ currentlyShowing, handleSelection, addPanelOrder, getPanelList }}
54
+ >
55
+ {children}
56
+ </AccordionContext.Provider>
57
+ );
28
58
  }
29
59
 
30
- export function AccordionPanel({ children, ...props }) {
31
- const context = useContext(AccordionContext)
60
+ type AccordionPanelProps = {
61
+ children: React.DetailedReactHTMLElement<any, HTMLElement>;
62
+ id: string;
63
+ };
64
+
65
+ export function AccordionPanel({ children, id }: AccordionPanelProps) {
66
+ const context = useContext(AccordionContext);
67
+
32
68
  useEffect(() => {
33
- context.addPanelOrder(props.id)
34
- }, [])
69
+ context.addPanelOrder(id);
70
+ }, []);
35
71
 
36
72
  return (
37
- <div id={`${props.id}-panel`} data-accordion="collapse">
73
+ <div id={`${id}-panel`} data-accordion="collapse">
38
74
  {Children.map(children, (child) => {
39
- return cloneElement(child, { id: props.id })
75
+ return cloneElement(child, { id: id });
40
76
  })}
41
77
  </div>
42
- )
78
+ );
43
79
  }
44
80
 
45
- export function AccordionTitle({ children, ...props }) {
46
- const context = useContext(AccordionContext)
81
+ type AccordionTitleProps = {
82
+ children: React.ReactNode;
83
+ id: string;
84
+ };
47
85
 
48
- const handleSelection = (e) => {
49
- context.handleSelection(props.id)
50
- }
86
+ export function AccordionTitle({ children, id }: AccordionTitleProps) {
87
+ const context = useContext(AccordionContext);
51
88
 
52
- const panelList = context.getPanelList()
53
- const isLastPanel = panelList[panelList.length - 1] === props.id
89
+ const handleSelection = () => {
90
+ context.handleSelection(id);
91
+ };
92
+
93
+ const panelList = context.getPanelList();
94
+ const isLastPanel = panelList[panelList.length - 1] === id;
54
95
 
55
96
  return (
56
- <h2 id={`${props.id}-title`}>
97
+ <h2 id={`${id}-title`}>
57
98
  <button
58
99
  type="button"
59
- className={`flex items-center justify-between w-full p-5 font-medium text-left border ${
60
- isLastPanel && context.currentlyShowing !== props.id ? 'border-b-1' : 'border-b-0'
100
+ className={`flex w-full items-center justify-between border p-5 text-left font-medium ${
101
+ isLastPanel && context.currentlyShowing !== id
102
+ ? "border-b-1"
103
+ : "border-b-0"
61
104
  } border-gray-200 ${
62
- panelList[0] === props.id ? 'rounded-t-xl' : isLastPanel && context.currentlyShowing !== props.id ? 'rounded-b-xl' : 'rounded-none'
63
- } ${context.currentlyShowing === props.id && 'bg-gray-100'}
64
- dark:focus:ring-gray-800 dark:border-gray-700 hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-500 dark:text-gray-400`}
65
- data-accordion-target={`#${props.id}-title`}
105
+ panelList[0] === id
106
+ ? "rounded-t-xl"
107
+ : isLastPanel && context.currentlyShowing !== id
108
+ ? "rounded-b-xl"
109
+ : "rounded-none"
110
+ } ${context.currentlyShowing === id && "bg-gray-100"}
111
+ text-gray-500 hover:bg-gray-100 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-800 dark:focus:ring-gray-800`}
112
+ data-accordion-target={`#${id}-title`}
66
113
  aria-expanded="true"
67
- aria-controls={`${props.id}-title`}
114
+ aria-controls={`${id}-title`}
68
115
  onClick={handleSelection}
69
116
  >
70
117
  <span>{children}</span>
71
- {context.currentlyShowing === `${props.id}` ? <HiChevronUp className="w-6 h-6" /> : <HiChevronDown className="w-6 h-6" />}
118
+ {context.currentlyShowing === `${id}` ? (
119
+ <HiChevronUp className="h-6 w-6" />
120
+ ) : (
121
+ <HiChevronDown className="h-6 w-6" />
122
+ )}
72
123
  </button>
73
124
  </h2>
74
- )
125
+ );
75
126
  }
76
127
 
77
- export function AccordionContent({ children, ...props }) {
78
- const context = useContext(AccordionContext)
79
- const panelList = context.getPanelList()
128
+ type AccordionContentProps = {
129
+ children: React.ReactNode;
130
+ id: string;
131
+ };
132
+
133
+ export function AccordionContent({ children, id }: AccordionContentProps) {
134
+ const context = useContext(AccordionContext);
135
+ const panelList = context.getPanelList();
80
136
  return (
81
- <div className={props.id !== context.currentlyShowing ? 'hidden' : ''} aria-labelledby="accordion-collapse-heading-1">
137
+ <div
138
+ className={id !== context.currentlyShowing ? "hidden" : ""}
139
+ aria-labelledby="accordion-collapse-heading-1"
140
+ >
82
141
  <div
83
- className={`p-5 border ${
84
- panelList[panelList.length - 1] === props.id && context.currentlyShowing === props.id ? 'rounded-b-xl border-b-1' : 'border-b-0'
142
+ className={`border p-5 ${
143
+ panelList[panelList.length - 1] === id &&
144
+ context.currentlyShowing === id
145
+ ? "border-b-1 rounded-b-xl"
146
+ : "border-b-0"
85
147
  } border-gray-200 dark:border-gray-700 dark:bg-gray-900`}
86
148
  >
87
149
  {children}
88
150
  </div>
89
151
  </div>
90
- )
152
+ );
91
153
  }
92
154
 
93
- Accordion.Panel = AccordionPanel
94
- Accordion.Title = AccordionTitle
95
- Accordion.Content = AccordionContent
155
+ Accordion.Panel = AccordionPanel;
156
+ Accordion.Title = AccordionTitle;
157
+ Accordion.Content = AccordionContent;
96
158
 
97
159
  Accordion.propTypes = {
98
160
  /** Components to be rendered as Part of the Compound Component, each panel is a seperate accordion section*/
99
- children: PropTypes.shape({ type: PropTypes.arrayOf([AccordionPanel]) }).isRequired,
100
- }
161
+ children: PropTypes.arrayOf(PropTypes.element),
162
+ };
101
163
 
102
164
  AccordionPanel.propTypes = {
103
165
  /** Unique id for the dropdown */
@@ -107,9 +169,9 @@ AccordionPanel.propTypes = {
107
169
  PropTypes.shape({ type: PropTypes.oneOf([AccordionTitle]) }),
108
170
  PropTypes.shape({ type: PropTypes.oneOf([AccordionContent]) }),
109
171
  ]).isRequired,
110
- }
172
+ };
111
173
 
112
174
  AccordionContent.propTypes = {
113
175
  /** Components held within the Content section of the AccordionPanel*/
114
176
  children: PropTypes.oneOfType([PropTypes.elementType]),
115
- }
177
+ };
@@ -1,100 +1,122 @@
1
1
  //@ts-nocheck
2
2
 
3
- import { variantProps } from 'classname-variants/react'
4
- import { FaTimes } from 'react-icons/fa'
5
- import { FaTimes, FaInfoCircle, FaCheckCircle, FaExclamationCircle, FaExclamationTriangle } from 'react-icons/fa'
6
- import PropTypes from 'prop-types'
3
+ import { variantProps } from "classname-variants/react";
4
+ import { FaTimes } from "react-icons/fa";
5
+ import {
6
+ FaTimes,
7
+ FaInfoCircle,
8
+ FaCheckCircle,
9
+ FaExclamationCircle,
10
+ FaExclamationTriangle,
11
+ } from "react-icons/fa";
12
+ import PropTypes from "prop-types";
7
13
 
8
14
  const alertProps = variantProps({
9
- base: 'flex p-4 mb-4',
15
+ base: "flex p-4 mb-4",
10
16
  variants: {
11
17
  type: {
12
- info: 'text-blue-800 border border-blue-300 bg-blue-50 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-800',
13
- default: 'text-gray-800 border border-gray-300 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-800',
14
- success: 'text-green-800 border border-green-300 bg-green-50 dark:bg-gray-800 dark:text-green-400 dark:border-green-800',
15
- danger: 'text-red-800 border border-red-300 bg-red-50 dark:bg-gray-800 dark:text-red-400 dark:border-red-800',
16
- warning: 'text-yellow-800 border border-yellow-300 bg-yellow-50 dark:bg-gray-800 dark:text-yellow-400 dark:border-yellow-800',
18
+ info: "text-blue-800 border border-blue-300 bg-blue-50 dark:bg-gray-800 dark:text-blue-400 dark:border-blue-800",
19
+ default:
20
+ "text-gray-800 border border-gray-300 bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-800",
21
+ success:
22
+ "text-green-800 border border-green-300 bg-green-50 dark:bg-gray-800 dark:text-green-400 dark:border-green-800",
23
+ danger:
24
+ "text-red-800 border border-red-300 bg-red-50 dark:bg-gray-800 dark:text-red-400 dark:border-red-800",
25
+ warning:
26
+ "text-yellow-800 border border-yellow-300 bg-yellow-50 dark:bg-gray-800 dark:text-yellow-400 dark:border-yellow-800",
17
27
  },
18
28
  size: {
19
- sm: 'text-sm',
20
- md: 'text-md',
21
- lg: 'text-lg',
29
+ sm: "text-sm",
30
+ md: "text-md",
31
+ lg: "text-lg",
22
32
  },
23
33
  rounded: {
24
- true: 'rounded-lg',
25
- false: 'rounded-none',
34
+ true: "rounded-lg",
35
+ false: "rounded-none",
26
36
  },
27
37
  defaultVariants: {
28
- type: 'info',
38
+ type: "info",
29
39
  rounded: true,
30
- size: 'md',
40
+ size: "md",
31
41
  },
32
42
  },
33
- })
43
+ });
34
44
 
35
45
  const dismissProps = variantProps({
36
- base: 'ml-auto -mx-1.5 -my-1.5 rounded-lg focus:ring-2 p-1.5 inline-flex items-center justify-center h-8 w-8',
46
+ base: "ml-auto -mx-1.5 -my-1.5 rounded-lg focus:ring-2 p-1.5 inline-flex items-center justify-center h-8 w-8",
37
47
  variants: {
38
48
  type: {
39
- info: ' bg-blue-50 text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:bg-gray-800 dark:text-blue-400 dark:hover:bg-gray-700',
40
- default: ' bg-grey-50 text-gray-500 focus:ring-gray-400 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700',
41
- success: ' bg-green-50 text-green-500 focus:ring-green-400 hover:bg-green-200 dark:bg-green-800 dark:text-green-400 dark:hover:bg-gray-700',
42
- danger: ' bg-red-50 text-red-500 focus:ring-red-400 hover:bg-red-200 dark:bg-gray-800 dark:text-red-400 dark:hover:bg-gray-700',
43
- warning: ' bg-yellow-50 text-yellow-500 focus:ring-yellow-400 hover:bg-yellow-200 dark:bg-gray-800 dark:text-yellow-400 dark:hover:bg-gray-700',
49
+ info: " bg-blue-50 text-blue-500 focus:ring-blue-400 hover:bg-blue-200 dark:bg-gray-800 dark:text-blue-400 dark:hover:bg-gray-700",
50
+ default:
51
+ " bg-grey-50 text-gray-500 focus:ring-gray-400 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700",
52
+ success:
53
+ " bg-green-50 text-green-500 focus:ring-green-400 hover:bg-green-200 dark:bg-green-800 dark:text-green-400 dark:hover:bg-gray-700",
54
+ danger:
55
+ " bg-red-50 text-red-500 focus:ring-red-400 hover:bg-red-200 dark:bg-gray-800 dark:text-red-400 dark:hover:bg-gray-700",
56
+ warning:
57
+ " bg-yellow-50 text-yellow-500 focus:ring-yellow-400 hover:bg-yellow-200 dark:bg-gray-800 dark:text-yellow-400 dark:hover:bg-gray-700",
44
58
  },
45
59
  },
46
- })
47
-
48
- export function AlertBanner({ children, type, showIcon, onDismiss, rounded}) {
60
+ });
49
61
 
62
+ export function AlertBanner({ children, type, showIcon, onDismiss, rounded }) {
50
63
  const renderIcon = () => {
51
64
  switch (type) {
52
- case 'info':
53
- return <FaInfoCircle />
54
- case 'success':
55
- return <FaCheckCircle />
56
- case 'danger':
57
- return <FaExclamationCircle />
58
- case 'warning':
59
- return <FaExclamationTriangle />
65
+ case "info":
66
+ return <FaInfoCircle />;
67
+ case "success":
68
+ return <FaCheckCircle />;
69
+ case "danger":
70
+ return <FaExclamationCircle />;
71
+ case "warning":
72
+ return <FaExclamationTriangle />;
60
73
  default:
61
- return <FaInfoCircle />
74
+ return <FaInfoCircle />;
62
75
  }
63
- }
76
+ };
64
77
 
65
78
  return (
66
79
  <div {...alertProps({ type, rounded })} role="alert">
67
- {showIcon && <div className="flex-shrink-0 inline w-4 h-4 mr-3 mt-1">{renderIcon()}</div>}
80
+ {showIcon && (
81
+ <div className="mr-3 mt-1 inline h-4 w-4 flex-shrink-0">
82
+ {renderIcon()}
83
+ </div>
84
+ )}
68
85
  <span className="sr-only">{type}</span>
69
86
  {children && <div>{children}</div>}
70
87
 
71
88
  {onDismiss && (
72
- <button type="button" {...dismissProps({ type })} data-dismiss-target="#alert-1" aria-label="Close" onClick={onDismiss}>
89
+ <button
90
+ type="button"
91
+ {...dismissProps({ type })}
92
+ data-dismiss-target="#alert-1"
93
+ aria-label="Close"
94
+ onClick={onDismiss}
95
+ >
73
96
  <span className="sr-only">Close</span>
74
97
  <FaTimes />
75
98
  </button>
76
99
  )}
77
100
  </div>
78
- )
101
+ );
79
102
  }
80
103
 
81
104
  AlertBanner.defaultProps = {
82
- showIcon: true,
83
- rounded: true,
84
- }
105
+ showIcon: true,
106
+ rounded: true,
107
+ };
85
108
 
86
109
  AlertBanner.propTypes = {
87
- /** Type of Alert */
88
- type: PropTypes.oneOf(['info', 'success', 'warning', 'danger']).isRequired,
89
- /** Determins if the icon assosiated with the alert type should be shown (defaults to true) */
90
- showIcon: PropTypes.bool,
91
- /** Function to be called when Alert is dismissed */
92
- onDismiss: PropTypes.func,
93
- /** Whether Alert should have rounded corners */
94
- rounded: PropTypes.bool,
95
- /** Components to be rendered as Part of the Compound Component*/
96
- children: PropTypes.node.isRequired,
97
- }
98
-
99
- AlertBanner.displayName = "AlertBanner"
110
+ /** Type of Alert */
111
+ type: PropTypes.oneOf(["info", "success", "warning", "danger"]).isRequired,
112
+ /** Determins if the icon assosiated with the alert type should be shown (defaults to true) */
113
+ showIcon: PropTypes.bool,
114
+ /** Function to be called when Alert is dismissed */
115
+ onDismiss: PropTypes.func,
116
+ /** Whether Alert should have rounded corners */
117
+ rounded: PropTypes.bool,
118
+ /** Components to be rendered as Part of the Compound Component*/
119
+ children: PropTypes.node.isRequired,
120
+ };
100
121
 
122
+ AlertBanner.displayName = "AlertBanner";