tekivex-ui 2.5.14 → 2.5.16

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 (392) hide show
  1. package/dist/charts.cjs +1 -1
  2. package/dist/charts.js +22 -553
  3. package/dist/chunk-B3ph66Zb.js +1 -0
  4. package/dist/chunk-Bc16rJT-.js +1 -0
  5. package/dist/chunk-BiHAhNbu.js +3 -0
  6. package/dist/chunk-CVRuGUFA.js +1 -0
  7. package/dist/chunk-Dc4_ud5s.js +1 -0
  8. package/dist/chunk-Dj40UFcz.js +1 -0
  9. package/dist/chunk-DjxOP8W4.js +1 -0
  10. package/dist/chunk-DmRB1Blb.js +1 -0
  11. package/dist/chunk-PJ50l0JC.js +1 -0
  12. package/dist/headless.cjs +1 -1
  13. package/dist/headless.js +1 -442
  14. package/dist/i18n.cjs +1 -1
  15. package/dist/i18n.js +1 -733
  16. package/dist/index.cjs +1 -147
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +419 -16193
  19. package/dist/quantum.cjs +1 -89
  20. package/dist/quantum.js +74 -2551
  21. package/dist/realtime.cjs +1 -23
  22. package/dist/realtime.js +1 -804
  23. package/dist/src/a11y/index.d.ts +0 -1
  24. package/dist/src/charts/TkxAreaChart.d.ts +0 -5
  25. package/dist/src/charts/TkxBarChart.d.ts +0 -3
  26. package/dist/src/charts/TkxDonutChart.d.ts +0 -5
  27. package/dist/src/charts/TkxLineChart.d.ts +0 -1
  28. package/dist/src/charts/TkxPieChart.d.ts +0 -3
  29. package/dist/src/charts/TkxRadarChart.d.ts +0 -3
  30. package/dist/src/charts/TkxScatterChart.d.ts +0 -2
  31. package/dist/src/charts/index.d.ts +0 -1
  32. package/dist/src/charts/shared.d.ts +0 -3
  33. package/dist/src/components/TkxAIChatBubble.d.ts +0 -9
  34. package/dist/src/components/TkxAIConfidenceBar.d.ts +0 -6
  35. package/dist/src/components/TkxAIThinking.d.ts +0 -6
  36. package/dist/src/components/TkxAccordion.d.ts +0 -1
  37. package/dist/src/components/TkxAffix.d.ts +0 -1
  38. package/dist/src/components/TkxAlert.d.ts +0 -1
  39. package/dist/src/components/TkxAnchor.d.ts +0 -1
  40. package/dist/src/components/TkxAppBar.d.ts +0 -1
  41. package/dist/src/components/TkxAutocomplete.d.ts +0 -1
  42. package/dist/src/components/TkxAvatar.d.ts +0 -1
  43. package/dist/src/components/TkxBadge.d.ts +0 -1
  44. package/dist/src/components/TkxBottomNav.d.ts +0 -1
  45. package/dist/src/components/TkxBreadcrumb.d.ts +0 -1
  46. package/dist/src/components/TkxButton.d.ts +0 -1
  47. package/dist/src/components/TkxCard.d.ts +0 -1
  48. package/dist/src/components/TkxCarousel.d.ts +0 -1
  49. package/dist/src/components/TkxCascader.d.ts +0 -1
  50. package/dist/src/components/TkxChat.d.ts +0 -1
  51. package/dist/src/components/TkxCheckbox.d.ts +0 -1
  52. package/dist/src/components/TkxClock.d.ts +0 -1
  53. package/dist/src/components/TkxColorPicker.d.ts +0 -1
  54. package/dist/src/components/TkxCommand.d.ts +0 -1
  55. package/dist/src/components/TkxConfigProvider.d.ts +0 -30
  56. package/dist/src/components/TkxDataGrid.d.ts +0 -15
  57. package/dist/src/components/TkxDatePicker.d.ts +0 -1
  58. package/dist/src/components/TkxDivider.d.ts +0 -1
  59. package/dist/src/components/TkxDrawer.d.ts +0 -1
  60. package/dist/src/components/TkxDropdown.d.ts +0 -1
  61. package/dist/src/components/TkxEmpty.d.ts +0 -1
  62. package/dist/src/components/TkxFileUpload.d.ts +0 -1
  63. package/dist/src/components/TkxForm.d.ts +0 -35
  64. package/dist/src/components/TkxIcon.d.ts +0 -1
  65. package/dist/src/components/TkxImage.d.ts +0 -1
  66. package/dist/src/components/TkxInput.d.ts +0 -1
  67. package/dist/src/components/TkxLayout.d.ts +0 -22
  68. package/dist/src/components/TkxList.d.ts +0 -1
  69. package/dist/src/components/TkxLiveFeed.d.ts +0 -1
  70. package/dist/src/components/TkxLiveLog.d.ts +0 -1
  71. package/dist/src/components/TkxLiveMetrics.d.ts +0 -1
  72. package/dist/src/components/TkxLogo.d.ts +0 -1
  73. package/dist/src/components/TkxMarkdown.d.ts +19 -0
  74. package/dist/src/components/TkxMasonry.d.ts +0 -1
  75. package/dist/src/components/TkxMentions.d.ts +0 -1
  76. package/dist/src/components/TkxMenu.d.ts +0 -1
  77. package/dist/src/components/TkxModal.d.ts +0 -1
  78. package/dist/src/components/TkxNumberInput.d.ts +0 -1
  79. package/dist/src/components/TkxOTP.d.ts +0 -1
  80. package/dist/src/components/TkxPagination.d.ts +0 -1
  81. package/dist/src/components/TkxPlayground.d.ts +0 -13
  82. package/dist/src/components/TkxPopover.d.ts +0 -1
  83. package/dist/src/components/TkxProgress.d.ts +0 -1
  84. package/dist/src/components/TkxQRCode.d.ts +0 -1
  85. package/dist/src/components/TkxQuantumForm.d.ts +0 -1
  86. package/dist/src/components/TkxRadio.d.ts +0 -1
  87. package/dist/src/components/TkxRating.d.ts +0 -1
  88. package/dist/src/components/TkxRealTimeChart.d.ts +0 -1
  89. package/dist/src/components/TkxResult.d.ts +0 -1
  90. package/dist/src/components/TkxRichTextDisplay.d.ts +0 -1
  91. package/dist/src/components/TkxSegmented.d.ts +0 -1
  92. package/dist/src/components/TkxSelect.d.ts +0 -3
  93. package/dist/src/components/TkxSkeleton.d.ts +0 -1
  94. package/dist/src/components/TkxSlider.d.ts +0 -1
  95. package/dist/src/components/TkxSnackbar.d.ts +0 -1
  96. package/dist/src/components/TkxSpeedDial.d.ts +0 -1
  97. package/dist/src/components/TkxSpin.d.ts +0 -1
  98. package/dist/src/components/TkxStatistic.d.ts +0 -1
  99. package/dist/src/components/TkxStepper.d.ts +0 -1
  100. package/dist/src/components/TkxTable.d.ts +0 -1
  101. package/dist/src/components/TkxTabs.d.ts +0 -1
  102. package/dist/src/components/TkxTag.d.ts +0 -1
  103. package/dist/src/components/TkxThemeBuilder.d.ts +0 -1
  104. package/dist/src/components/TkxTimeline.d.ts +0 -1
  105. package/dist/src/components/TkxToast.d.ts +0 -1
  106. package/dist/src/components/TkxToggle.d.ts +0 -1
  107. package/dist/src/components/TkxToolbar.d.ts +0 -1
  108. package/dist/src/components/TkxTooltip.d.ts +0 -1
  109. package/dist/src/components/TkxTour.d.ts +0 -1
  110. package/dist/src/components/TkxTransferList.d.ts +0 -1
  111. package/dist/src/components/TkxTreeView.d.ts +0 -1
  112. package/dist/src/components/TkxTypography.d.ts +0 -1
  113. package/dist/src/components/TkxVideoPlayer.d.ts +0 -1
  114. package/dist/src/components/TkxWatermark.d.ts +0 -1
  115. package/dist/src/components/index.d.ts +1 -1
  116. package/dist/src/engine/css.d.ts +0 -1
  117. package/dist/src/engine/index.d.ts +0 -1
  118. package/dist/src/engine/quantum-ai.d.ts +0 -73
  119. package/dist/src/engine/quantum.d.ts +0 -1
  120. package/dist/src/engine/security.d.ts +0 -9
  121. package/dist/src/engine/tkx.d.ts +0 -53
  122. package/dist/src/engine/wcag.d.ts +0 -1
  123. package/dist/src/headless/index.d.ts +0 -1
  124. package/dist/src/headless/useControllable.d.ts +0 -15
  125. package/dist/src/headless/useDebounce.d.ts +0 -12
  126. package/dist/src/headless/useDisclosure.d.ts +0 -13
  127. package/dist/src/headless/useFormState.d.ts +0 -13
  128. package/dist/src/headless/useInfiniteQuery.d.ts +0 -11
  129. package/dist/src/headless/useIntersectionObserver.d.ts +0 -10
  130. package/dist/src/headless/useListSelection.d.ts +0 -9
  131. package/dist/src/headless/useLocalStorage.d.ts +0 -8
  132. package/dist/src/headless/useMediaQuery.d.ts +0 -10
  133. package/dist/src/headless/useRovingTabIndex.d.ts +0 -15
  134. package/dist/src/headless/useSSE.d.ts +0 -9
  135. package/dist/src/headless/useThrottle.d.ts +0 -7
  136. package/dist/src/headless/useWebSocket.d.ts +0 -9
  137. package/dist/src/hooks/index.d.ts +0 -1
  138. package/dist/src/i18n/I18nProvider.d.ts +0 -1
  139. package/dist/src/i18n/index.d.ts +0 -1
  140. package/dist/src/quantum/index.d.ts +0 -1
  141. package/dist/src/realtime/index.d.ts +0 -1
  142. package/dist/src/themes/index.d.ts +0 -1
  143. package/package.json +5 -3
  144. package/dist/TkxForm-BaO4wvXt.js +0 -320
  145. package/dist/TkxForm-M6ttomry.cjs +0 -12
  146. package/dist/chunk-Bmb41Sf3.cjs +0 -1
  147. package/dist/hooks-6pRsPOyG.js +0 -58
  148. package/dist/hooks-mivgRljH.cjs +0 -1
  149. package/dist/index.d.ts.map +0 -1
  150. package/dist/src/a11y/index.d.ts.map +0 -1
  151. package/dist/src/charts/TkxAreaChart.d.ts.map +0 -1
  152. package/dist/src/charts/TkxBarChart.d.ts.map +0 -1
  153. package/dist/src/charts/TkxDonutChart.d.ts.map +0 -1
  154. package/dist/src/charts/TkxLineChart.d.ts.map +0 -1
  155. package/dist/src/charts/TkxPieChart.d.ts.map +0 -1
  156. package/dist/src/charts/TkxRadarChart.d.ts.map +0 -1
  157. package/dist/src/charts/TkxScatterChart.d.ts.map +0 -1
  158. package/dist/src/charts/index.d.ts.map +0 -1
  159. package/dist/src/charts/shared.d.ts.map +0 -1
  160. package/dist/src/components/TkxAIChatBubble.d.ts.map +0 -1
  161. package/dist/src/components/TkxAIConfidenceBar.d.ts.map +0 -1
  162. package/dist/src/components/TkxAIThinking.d.ts.map +0 -1
  163. package/dist/src/components/TkxAccordion.d.ts.map +0 -1
  164. package/dist/src/components/TkxAffix.d.ts.map +0 -1
  165. package/dist/src/components/TkxAlert.d.ts.map +0 -1
  166. package/dist/src/components/TkxAnchor.d.ts.map +0 -1
  167. package/dist/src/components/TkxAppBar.d.ts.map +0 -1
  168. package/dist/src/components/TkxAutocomplete.d.ts.map +0 -1
  169. package/dist/src/components/TkxAvatar.d.ts.map +0 -1
  170. package/dist/src/components/TkxBadge.d.ts.map +0 -1
  171. package/dist/src/components/TkxBottomNav.d.ts.map +0 -1
  172. package/dist/src/components/TkxBreadcrumb.d.ts.map +0 -1
  173. package/dist/src/components/TkxButton.d.ts.map +0 -1
  174. package/dist/src/components/TkxCard.d.ts.map +0 -1
  175. package/dist/src/components/TkxCarousel.d.ts.map +0 -1
  176. package/dist/src/components/TkxCascader.d.ts.map +0 -1
  177. package/dist/src/components/TkxChat.d.ts.map +0 -1
  178. package/dist/src/components/TkxCheckbox.d.ts.map +0 -1
  179. package/dist/src/components/TkxClock.d.ts.map +0 -1
  180. package/dist/src/components/TkxColorPicker.d.ts.map +0 -1
  181. package/dist/src/components/TkxCommand.d.ts.map +0 -1
  182. package/dist/src/components/TkxConfigProvider.d.ts.map +0 -1
  183. package/dist/src/components/TkxDataGrid.d.ts.map +0 -1
  184. package/dist/src/components/TkxDatePicker.d.ts.map +0 -1
  185. package/dist/src/components/TkxDivider.d.ts.map +0 -1
  186. package/dist/src/components/TkxDrawer.d.ts.map +0 -1
  187. package/dist/src/components/TkxDropdown.d.ts.map +0 -1
  188. package/dist/src/components/TkxEmpty.d.ts.map +0 -1
  189. package/dist/src/components/TkxFileUpload.d.ts.map +0 -1
  190. package/dist/src/components/TkxForm.d.ts.map +0 -1
  191. package/dist/src/components/TkxIcon.d.ts.map +0 -1
  192. package/dist/src/components/TkxImage.d.ts.map +0 -1
  193. package/dist/src/components/TkxInput.d.ts.map +0 -1
  194. package/dist/src/components/TkxLayout.d.ts.map +0 -1
  195. package/dist/src/components/TkxList.d.ts.map +0 -1
  196. package/dist/src/components/TkxLiveFeed.d.ts.map +0 -1
  197. package/dist/src/components/TkxLiveLog.d.ts.map +0 -1
  198. package/dist/src/components/TkxLiveMetrics.d.ts.map +0 -1
  199. package/dist/src/components/TkxLogo.d.ts.map +0 -1
  200. package/dist/src/components/TkxMasonry.d.ts.map +0 -1
  201. package/dist/src/components/TkxMentions.d.ts.map +0 -1
  202. package/dist/src/components/TkxMenu.d.ts.map +0 -1
  203. package/dist/src/components/TkxModal.d.ts.map +0 -1
  204. package/dist/src/components/TkxNumberInput.d.ts.map +0 -1
  205. package/dist/src/components/TkxOTP.d.ts.map +0 -1
  206. package/dist/src/components/TkxPagination.d.ts.map +0 -1
  207. package/dist/src/components/TkxPlayground.d.ts.map +0 -1
  208. package/dist/src/components/TkxPopover.d.ts.map +0 -1
  209. package/dist/src/components/TkxProgress.d.ts.map +0 -1
  210. package/dist/src/components/TkxQRCode.d.ts.map +0 -1
  211. package/dist/src/components/TkxQuantumForm.d.ts.map +0 -1
  212. package/dist/src/components/TkxRadio.d.ts.map +0 -1
  213. package/dist/src/components/TkxRating.d.ts.map +0 -1
  214. package/dist/src/components/TkxRealTimeChart.d.ts.map +0 -1
  215. package/dist/src/components/TkxResult.d.ts.map +0 -1
  216. package/dist/src/components/TkxRichTextDisplay.d.ts.map +0 -1
  217. package/dist/src/components/TkxSegmented.d.ts.map +0 -1
  218. package/dist/src/components/TkxSelect.d.ts.map +0 -1
  219. package/dist/src/components/TkxSkeleton.d.ts.map +0 -1
  220. package/dist/src/components/TkxSlider.d.ts.map +0 -1
  221. package/dist/src/components/TkxSnackbar.d.ts.map +0 -1
  222. package/dist/src/components/TkxSpeedDial.d.ts.map +0 -1
  223. package/dist/src/components/TkxSpin.d.ts.map +0 -1
  224. package/dist/src/components/TkxStatistic.d.ts.map +0 -1
  225. package/dist/src/components/TkxStepper.d.ts.map +0 -1
  226. package/dist/src/components/TkxTable.d.ts.map +0 -1
  227. package/dist/src/components/TkxTabs.d.ts.map +0 -1
  228. package/dist/src/components/TkxTag.d.ts.map +0 -1
  229. package/dist/src/components/TkxThemeBuilder.d.ts.map +0 -1
  230. package/dist/src/components/TkxTimeline.d.ts.map +0 -1
  231. package/dist/src/components/TkxToast.d.ts.map +0 -1
  232. package/dist/src/components/TkxToggle.d.ts.map +0 -1
  233. package/dist/src/components/TkxToolbar.d.ts.map +0 -1
  234. package/dist/src/components/TkxTooltip.d.ts.map +0 -1
  235. package/dist/src/components/TkxTour.d.ts.map +0 -1
  236. package/dist/src/components/TkxTransferList.d.ts.map +0 -1
  237. package/dist/src/components/TkxTreeView.d.ts.map +0 -1
  238. package/dist/src/components/TkxTypography.d.ts.map +0 -1
  239. package/dist/src/components/TkxVideoPlayer.d.ts.map +0 -1
  240. package/dist/src/components/TkxWatermark.d.ts.map +0 -1
  241. package/dist/src/components/index.d.ts.map +0 -1
  242. package/dist/src/engine/css.d.ts.map +0 -1
  243. package/dist/src/engine/index.d.ts.map +0 -1
  244. package/dist/src/engine/quantum-ai.d.ts.map +0 -1
  245. package/dist/src/engine/quantum.d.ts.map +0 -1
  246. package/dist/src/engine/security.d.ts.map +0 -1
  247. package/dist/src/engine/tkx.d.ts.map +0 -1
  248. package/dist/src/engine/wcag.d.ts.map +0 -1
  249. package/dist/src/headless/index.d.ts.map +0 -1
  250. package/dist/src/headless/useControllable.d.ts.map +0 -1
  251. package/dist/src/headless/useDebounce.d.ts.map +0 -1
  252. package/dist/src/headless/useDisclosure.d.ts.map +0 -1
  253. package/dist/src/headless/useFormState.d.ts.map +0 -1
  254. package/dist/src/headless/useInfiniteQuery.d.ts.map +0 -1
  255. package/dist/src/headless/useIntersectionObserver.d.ts.map +0 -1
  256. package/dist/src/headless/useListSelection.d.ts.map +0 -1
  257. package/dist/src/headless/useLocalStorage.d.ts.map +0 -1
  258. package/dist/src/headless/useMediaQuery.d.ts.map +0 -1
  259. package/dist/src/headless/useRovingTabIndex.d.ts.map +0 -1
  260. package/dist/src/headless/useSSE.d.ts.map +0 -1
  261. package/dist/src/headless/useThrottle.d.ts.map +0 -1
  262. package/dist/src/headless/useWebSocket.d.ts.map +0 -1
  263. package/dist/src/hooks/index.d.ts.map +0 -1
  264. package/dist/src/i18n/I18nProvider.d.ts.map +0 -1
  265. package/dist/src/i18n/index.d.ts.map +0 -1
  266. package/dist/src/quantum/index.d.ts.map +0 -1
  267. package/dist/src/realtime/index.d.ts.map +0 -1
  268. package/dist/src/themes/index.d.ts.map +0 -1
  269. package/dist/themes-BbJanqiC.js +0 -498
  270. package/dist/themes-CMq2vWXj.cjs +0 -2
  271. package/dist/tkx-BoP5V5zy.cjs +0 -4
  272. package/dist/tkx-mOKMzvUK.js +0 -1174
  273. package/src/a11y/index.tsx +0 -87
  274. package/src/charts/TkxAreaChart.tsx +0 -121
  275. package/src/charts/TkxBarChart.tsx +0 -117
  276. package/src/charts/TkxDonutChart.tsx +0 -164
  277. package/src/charts/TkxLineChart.tsx +0 -137
  278. package/src/charts/TkxPieChart.tsx +0 -103
  279. package/src/charts/TkxRadarChart.tsx +0 -92
  280. package/src/charts/TkxScatterChart.tsx +0 -104
  281. package/src/charts/index.ts +0 -22
  282. package/src/charts/shared.ts +0 -47
  283. package/src/components/TkxAIChatBubble.tsx +0 -256
  284. package/src/components/TkxAIConfidenceBar.tsx +0 -133
  285. package/src/components/TkxAIThinking.tsx +0 -193
  286. package/src/components/TkxAccordion.tsx +0 -590
  287. package/src/components/TkxAffix.tsx +0 -140
  288. package/src/components/TkxAlert.tsx +0 -94
  289. package/src/components/TkxAnchor.tsx +0 -195
  290. package/src/components/TkxAppBar.tsx +0 -262
  291. package/src/components/TkxAutocomplete.tsx +0 -455
  292. package/src/components/TkxAvatar.tsx +0 -103
  293. package/src/components/TkxBadge.tsx +0 -75
  294. package/src/components/TkxBottomNav.tsx +0 -241
  295. package/src/components/TkxBreadcrumb.tsx +0 -324
  296. package/src/components/TkxButton.tsx +0 -155
  297. package/src/components/TkxCard.tsx +0 -96
  298. package/src/components/TkxCarousel.tsx +0 -554
  299. package/src/components/TkxCascader.tsx +0 -278
  300. package/src/components/TkxChat.tsx +0 -356
  301. package/src/components/TkxCheckbox.tsx +0 -220
  302. package/src/components/TkxClock.tsx +0 -603
  303. package/src/components/TkxColorPicker.tsx +0 -635
  304. package/src/components/TkxCommand.tsx +0 -646
  305. package/src/components/TkxConfigProvider.tsx +0 -460
  306. package/src/components/TkxDataGrid.tsx +0 -941
  307. package/src/components/TkxDatePicker.tsx +0 -1625
  308. package/src/components/TkxDivider.tsx +0 -51
  309. package/src/components/TkxDrawer.tsx +0 -236
  310. package/src/components/TkxDropdown.tsx +0 -804
  311. package/src/components/TkxEmpty.tsx +0 -221
  312. package/src/components/TkxFileUpload.tsx +0 -373
  313. package/src/components/TkxForm.tsx +0 -683
  314. package/src/components/TkxIcon.tsx +0 -685
  315. package/src/components/TkxImage.tsx +0 -279
  316. package/src/components/TkxInput.tsx +0 -103
  317. package/src/components/TkxLayout.tsx +0 -649
  318. package/src/components/TkxList.tsx +0 -244
  319. package/src/components/TkxLiveFeed.tsx +0 -331
  320. package/src/components/TkxLiveLog.tsx +0 -472
  321. package/src/components/TkxLiveMetrics.tsx +0 -315
  322. package/src/components/TkxLogo.tsx +0 -299
  323. package/src/components/TkxMasonry.tsx +0 -178
  324. package/src/components/TkxMentions.tsx +0 -212
  325. package/src/components/TkxMenu.tsx +0 -1044
  326. package/src/components/TkxModal.tsx +0 -122
  327. package/src/components/TkxNumberInput.tsx +0 -410
  328. package/src/components/TkxOTP.tsx +0 -297
  329. package/src/components/TkxPagination.tsx +0 -390
  330. package/src/components/TkxPlayground.tsx +0 -845
  331. package/src/components/TkxPopover.tsx +0 -297
  332. package/src/components/TkxProgress.tsx +0 -114
  333. package/src/components/TkxQRCode.tsx +0 -176
  334. package/src/components/TkxQuantumForm.tsx +0 -594
  335. package/src/components/TkxRadio.tsx +0 -286
  336. package/src/components/TkxRating.tsx +0 -288
  337. package/src/components/TkxRealTimeChart.tsx +0 -383
  338. package/src/components/TkxResult.tsx +0 -130
  339. package/src/components/TkxRichTextDisplay.tsx +0 -396
  340. package/src/components/TkxSegmented.tsx +0 -171
  341. package/src/components/TkxSelect.tsx +0 -1130
  342. package/src/components/TkxSkeleton.tsx +0 -107
  343. package/src/components/TkxSlider.tsx +0 -495
  344. package/src/components/TkxSnackbar.tsx +0 -316
  345. package/src/components/TkxSpeedDial.tsx +0 -397
  346. package/src/components/TkxSpin.tsx +0 -263
  347. package/src/components/TkxStatistic.tsx +0 -263
  348. package/src/components/TkxStepper.tsx +0 -487
  349. package/src/components/TkxTable.tsx +0 -424
  350. package/src/components/TkxTabs.tsx +0 -126
  351. package/src/components/TkxTag.tsx +0 -321
  352. package/src/components/TkxThemeBuilder.tsx +0 -687
  353. package/src/components/TkxTimeline.tsx +0 -305
  354. package/src/components/TkxToast.tsx +0 -287
  355. package/src/components/TkxToggle.tsx +0 -95
  356. package/src/components/TkxToolbar.tsx +0 -262
  357. package/src/components/TkxTooltip.tsx +0 -85
  358. package/src/components/TkxTour.tsx +0 -241
  359. package/src/components/TkxTransferList.tsx +0 -489
  360. package/src/components/TkxTreeView.tsx +0 -423
  361. package/src/components/TkxTypography.tsx +0 -267
  362. package/src/components/TkxVideoPlayer.tsx +0 -1015
  363. package/src/components/TkxWatermark.tsx +0 -145
  364. package/src/components/index.ts +0 -79
  365. package/src/engine/css.ts +0 -126
  366. package/src/engine/index.ts +0 -12
  367. package/src/engine/quantum-ai.ts +0 -1045
  368. package/src/engine/quantum.ts +0 -207
  369. package/src/engine/security.ts +0 -232
  370. package/src/engine/tkx.ts +0 -1084
  371. package/src/engine/wcag.ts +0 -276
  372. package/src/headless/index.ts +0 -52
  373. package/src/headless/useControllable.ts +0 -42
  374. package/src/headless/useDebounce.ts +0 -37
  375. package/src/headless/useDisclosure.ts +0 -30
  376. package/src/headless/useFormState.ts +0 -113
  377. package/src/headless/useInfiniteQuery.ts +0 -155
  378. package/src/headless/useIntersectionObserver.ts +0 -53
  379. package/src/headless/useListSelection.ts +0 -103
  380. package/src/headless/useLocalStorage.ts +0 -48
  381. package/src/headless/useMediaQuery.ts +0 -39
  382. package/src/headless/useRovingTabIndex.ts +0 -86
  383. package/src/headless/useSSE.ts +0 -167
  384. package/src/headless/useThrottle.ts +0 -48
  385. package/src/headless/useWebSocket.ts +0 -231
  386. package/src/hooks/index.ts +0 -122
  387. package/src/i18n/I18nProvider.tsx +0 -36
  388. package/src/i18n/index.ts +0 -877
  389. package/src/quantum/index.ts +0 -39
  390. package/src/realtime/index.ts +0 -21
  391. package/src/styles/global.css +0 -167
  392. package/src/themes/index.ts +0 -294
@@ -1,207 +0,0 @@
1
- // ── Quantum Render Engine ────────────────────────────────────────────────────
2
- // FNV-1a hashing, LRU memoization, priority render queues, microtask batching
3
-
4
- // ── FNV-1a Hash ─────────────────────────────────────────────────────────────
5
-
6
- const FNV_OFFSET = 2166136261;
7
- const FNV_PRIME = 16777619;
8
-
9
- export function fnv1aHash(input: string): string {
10
- let hash = FNV_OFFSET;
11
- for (let i = 0; i < input.length; i++) {
12
- hash ^= input.charCodeAt(i);
13
- hash = (Math.imul(hash, FNV_PRIME)) >>> 0;
14
- }
15
- return hash.toString(16).padStart(8, '0');
16
- }
17
-
18
- // ── LRU Cache ────────────────────────────────────────────────────────────────
19
-
20
- export class LRUCache<K, V> {
21
- private cache = new Map<K, V>();
22
- private hits = 0;
23
- private misses = 0;
24
- readonly ceiling: number;
25
-
26
- constructor(ceiling = 512) {
27
- this.ceiling = Math.min(ceiling, 512);
28
- }
29
-
30
- get(key: K): V | undefined {
31
- if (!this.cache.has(key)) {
32
- this.misses++;
33
- return undefined;
34
- }
35
- this.hits++;
36
- const value = this.cache.get(key)!;
37
- // Move to end (most-recently-used)
38
- this.cache.delete(key);
39
- this.cache.set(key, value);
40
- return value;
41
- }
42
-
43
- set(key: K, value: V): void {
44
- if (this.cache.has(key)) {
45
- this.cache.delete(key);
46
- } else if (this.cache.size >= this.ceiling) {
47
- // Evict least-recently-used (first in insertion order)
48
- this.cache.delete(this.cache.keys().next().value!);
49
- }
50
- this.cache.set(key, value);
51
- }
52
-
53
- has(key: K): boolean {
54
- return this.cache.has(key);
55
- }
56
-
57
- invalidate(key?: K): void {
58
- if (key !== undefined) {
59
- this.cache.delete(key);
60
- } else {
61
- this.cache.clear();
62
- }
63
- }
64
-
65
- get size(): number {
66
- return this.cache.size;
67
- }
68
-
69
- get cacheHitRate(): number {
70
- const total = this.hits + this.misses;
71
- return total === 0 ? 0 : (this.hits / total) * 100;
72
- }
73
- }
74
-
75
- // ── Memoization via global LRU cache ────────────────────────────────────────
76
-
77
- const globalCache = new LRUCache<string, unknown>(512);
78
-
79
- export function memoize<T>(key: string, fn: () => T): T {
80
- const cached = globalCache.get(key);
81
- if (cached !== undefined) return cached as T;
82
- const result = fn();
83
- globalCache.set(key, result);
84
- return result;
85
- }
86
-
87
- // ── Priority Render Queue ────────────────────────────────────────────────────
88
-
89
- export type Priority = 'critical' | 'normal' | 'low';
90
-
91
- const PRIORITY_WEIGHTS: Record<Priority, number> = {
92
- critical: 3,
93
- normal: 2,
94
- low: 1,
95
- };
96
-
97
- interface QueueEntry {
98
- id: string;
99
- priority: Priority;
100
- task: () => void;
101
- weight: number;
102
- }
103
-
104
- export class RenderQueue {
105
- private queue: QueueEntry[] = [];
106
-
107
- enqueue(id: string, task: () => void, priority: Priority = 'normal'): void {
108
- this.queue.push({ id, task, priority, weight: PRIORITY_WEIGHTS[priority] });
109
- }
110
-
111
- flush(): void {
112
- this.queue.sort((a, b) => b.weight - a.weight);
113
- for (const entry of this.queue) {
114
- try {
115
- entry.task();
116
- } catch {
117
- // Swallow per-task errors so the queue continues
118
- }
119
- }
120
- this.queue = [];
121
- }
122
-
123
- get depth(): number {
124
- return this.queue.length;
125
- }
126
- }
127
-
128
- // ── Microtask Batch Updates ──────────────────────────────────────────────────
129
-
130
- interface RenderMetric {
131
- duration: number;
132
- timestamp: number;
133
- }
134
-
135
- const pendingBatch: Array<() => void> = [];
136
- let scheduledFlush = false;
137
- const renderMetrics: RenderMetric[] = [];
138
- let totalRenderTime = 0;
139
- let renderCount = 0;
140
-
141
- function flushBatch(): void {
142
- const tasks = pendingBatch.splice(0);
143
- const start = performance.now();
144
- for (const task of tasks) {
145
- try {
146
- task();
147
- } catch {
148
- // Continue queue on error
149
- }
150
- }
151
- const duration = performance.now() - start;
152
- totalRenderTime += duration;
153
- renderCount++;
154
- renderMetrics.push({ duration, timestamp: Date.now() });
155
- if (renderMetrics.length > 100) renderMetrics.shift();
156
- }
157
-
158
- export function batchUpdate(fn: () => void): void {
159
- pendingBatch.push(fn);
160
- if (!scheduledFlush) {
161
- scheduledFlush = true;
162
- queueMicrotask(() => {
163
- flushBatch();
164
- scheduledFlush = false;
165
- });
166
- }
167
- }
168
-
169
- // ── Profiling API ────────────────────────────────────────────────────────────
170
-
171
- export interface Metrics {
172
- avgRenderTime: number;
173
- cacheHitRate: number;
174
- renderCount: number;
175
- }
176
-
177
- export function getMetrics(n?: number): Metrics & { recent: RenderMetric[] } {
178
- const recent = n !== undefined ? renderMetrics.slice(-n) : renderMetrics.slice();
179
- return {
180
- avgRenderTime: renderCount === 0 ? 0 : totalRenderTime / renderCount,
181
- cacheHitRate: globalCache.cacheHitRate,
182
- renderCount,
183
- recent,
184
- };
185
- }
186
-
187
- export function invalidateCache(key?: string): void {
188
- if (key !== undefined) {
189
- globalCache.invalidate(key);
190
- } else {
191
- globalCache.invalidate();
192
- }
193
- }
194
-
195
- export const Quantum = {
196
- hash: fnv1aHash,
197
- memoize,
198
- batchUpdate,
199
- invalidate: invalidateCache,
200
- get avgRenderTime() {
201
- return renderCount === 0 ? 0 : totalRenderTime / renderCount;
202
- },
203
- get cacheHitRate() {
204
- return globalCache.cacheHitRate;
205
- },
206
- getMetrics,
207
- };
@@ -1,232 +0,0 @@
1
- // ── Security Shield ──────────────────────────────────────────────────────────
2
- // XSS prevention, CSP, prop validation, immutable audit trail
3
-
4
- import { fnv1aHash } from './quantum';
5
-
6
- // ── XSS Sanitization ─────────────────────────────────────────────────────────
7
-
8
- const HTML_ENTITIES: Record<string, string> = {
9
- '<': '&lt;',
10
- '>': '&gt;',
11
- '&': '&amp;',
12
- "'": '&#39;',
13
- '"': '&quot;',
14
- // Backticks can break out of unquoted/template-literal contexts in HTML
15
- // (legacy IE and some sinks). Escape defensively.
16
- '`': '&#96;',
17
- };
18
-
19
- /**
20
- * Escape HTML-sensitive characters in a value so it is safe to render as text.
21
- * Also strips NUL and most C0 control characters, which can be used to smuggle
22
- * payloads past naïve filters, and normalizes newlines.
23
- *
24
- * This is a defense-in-depth helper — it does NOT allow-list HTML. For rich
25
- * HTML input, use a dedicated sanitizer such as DOMPurify.
26
- */
27
- export function sanitizeString(input: unknown): string {
28
- let s = String(input);
29
- // Strip NUL + disallowed C0 controls (keep \t \n \r).
30
- // eslint-disable-next-line no-control-regex
31
- s = s.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, '');
32
- return s.replace(/[<>&'"`]/g, (char) => HTML_ENTITIES[char] ?? char);
33
- }
34
-
35
- export function sanitizeProps<T extends Record<string, unknown>>(props: T): T {
36
- const result: Record<string, unknown> = {};
37
- for (const key of Object.keys(props)) {
38
- result[key] = sanitizeValue(props[key]);
39
- }
40
- return result as T;
41
- }
42
-
43
- function sanitizeValue(value: unknown): unknown {
44
- if (typeof value === 'string') return sanitizeString(value);
45
- if (Array.isArray(value)) return value.map(sanitizeValue);
46
- if (value !== null && typeof value === 'object' && !isReactElement(value)) {
47
- return sanitizeProps(value as Record<string, unknown>);
48
- }
49
- return value;
50
- }
51
-
52
- function isReactElement(value: unknown): boolean {
53
- return typeof value === 'object' && value !== null && '$$typeof' in value;
54
- }
55
-
56
- // ── Runtime Prop Validation ──────────────────────────────────────────────────
57
-
58
- export interface PropSchema {
59
- type: 'string' | 'number' | 'boolean' | 'function' | 'object';
60
- required?: boolean;
61
- min?: number;
62
- max?: number;
63
- pattern?: RegExp;
64
- enum?: unknown[];
65
- }
66
-
67
- export interface ValidationResult {
68
- valid: boolean;
69
- errors: string[];
70
- }
71
-
72
- export function validateProps(
73
- props: Record<string, unknown>,
74
- schema: Record<string, PropSchema>,
75
- ): ValidationResult {
76
- const errors: string[] = [];
77
-
78
- for (const [key, rule] of Object.entries(schema)) {
79
- const value = props[key];
80
- const missing = value === undefined || value === null;
81
-
82
- if (rule.required && missing) {
83
- errors.push(`prop '${key}' is required`);
84
- continue;
85
- }
86
-
87
- if (missing) continue;
88
-
89
- if (typeof value !== rule.type) {
90
- errors.push(`prop '${key}' must be of type ${rule.type}, got ${typeof value}`);
91
- continue;
92
- }
93
-
94
- if (rule.type === 'number' && typeof value === 'number') {
95
- if (rule.min !== undefined && value < rule.min) {
96
- errors.push(`prop '${key}' must be >= ${rule.min}`);
97
- }
98
- if (rule.max !== undefined && value > rule.max) {
99
- errors.push(`prop '${key}' must be <= ${rule.max}`);
100
- }
101
- }
102
-
103
- if (rule.type === 'string' && typeof value === 'string') {
104
- if (rule.pattern && !rule.pattern.test(value)) {
105
- errors.push(`prop '${key}' does not match pattern ${rule.pattern}`);
106
- }
107
- }
108
-
109
- if (rule.enum && !rule.enum.includes(value)) {
110
- errors.push(`prop '${key}' must be one of: ${rule.enum.join(', ')}`);
111
- }
112
- }
113
-
114
- return { valid: errors.length === 0, errors };
115
- }
116
-
117
- // ── CSP Permission Model ─────────────────────────────────────────────────────
118
-
119
- export interface ComponentPermissions {
120
- allowInlineStyles?: boolean;
121
- allowDataUrls?: boolean;
122
- allowExternalSrc?: boolean;
123
- allowScripts?: boolean;
124
- }
125
-
126
- export interface CSPDirectives {
127
- componentId: string;
128
- permissions: ComponentPermissions;
129
- directives: Record<string, string[]>;
130
- }
131
-
132
- const cspRegistry = new Map<string, CSPDirectives>();
133
-
134
- export function createCSP(componentId: string, permissions: ComponentPermissions): CSPDirectives {
135
- const directives: Record<string, string[]> = {
136
- 'default-src': ["'self'"],
137
- 'style-src': permissions.allowInlineStyles ? ["'self'", "'unsafe-inline'"] : ["'self'"],
138
- 'img-src': permissions.allowDataUrls
139
- ? ["'self'", 'data:']
140
- : permissions.allowExternalSrc
141
- ? ["'self'", '*']
142
- : ["'self'"],
143
- 'script-src': permissions.allowScripts ? ["'self'"] : ["'none'"],
144
- };
145
-
146
- const csp: CSPDirectives = { componentId, permissions, directives };
147
- cspRegistry.set(componentId, csp);
148
- return csp;
149
- }
150
-
151
- export function hasPermission(componentId: string, permission: keyof ComponentPermissions): boolean {
152
- const csp = cspRegistry.get(componentId);
153
- return csp?.permissions[permission] === true;
154
- }
155
-
156
- // ── Immutable Audit Trail ────────────────────────────────────────────────────
157
-
158
- export interface AuditEntry {
159
- readonly timestamp: number;
160
- readonly component: string;
161
- readonly action: string;
162
- readonly propsHash: string;
163
- readonly chainHash: string;
164
- }
165
-
166
- export interface AuditFilter {
167
- component?: string;
168
- action?: string;
169
- limit?: number;
170
- }
171
-
172
- let auditTrail: readonly AuditEntry[] = [];
173
-
174
- export function audit(
175
- action: string,
176
- component: string,
177
- meta?: Record<string, unknown>,
178
- ): AuditEntry {
179
- const propsHash = fnv1aHash(JSON.stringify(meta ?? {}));
180
- const prevChainHash = auditTrail.length > 0 ? auditTrail[auditTrail.length - 1].chainHash : '00000000';
181
- const chainHash = fnv1aHash(prevChainHash + propsHash + component + action);
182
-
183
- const entry: AuditEntry = Object.freeze({
184
- timestamp: Date.now(),
185
- component,
186
- action,
187
- propsHash,
188
- chainHash,
189
- });
190
-
191
- auditTrail = Object.freeze([...auditTrail, entry]);
192
- return entry;
193
- }
194
-
195
- export function getAuditLog(filter?: AuditFilter): readonly AuditEntry[] {
196
- let result = auditTrail;
197
-
198
- if (filter?.component) {
199
- result = result.filter((e) => e.component === filter.component);
200
- }
201
- if (filter?.action) {
202
- result = result.filter((e) => e.action === filter.action);
203
- }
204
- if (filter?.limit) {
205
- result = result.slice(-filter.limit);
206
- }
207
-
208
- return result;
209
- }
210
-
211
- export function verifyAuditIntegrity(): boolean {
212
- let prevChainHash = '00000000';
213
-
214
- for (const entry of auditTrail) {
215
- const expectedChain = fnv1aHash(prevChainHash + entry.propsHash + entry.component + entry.action);
216
- if (expectedChain !== entry.chainHash) return false;
217
- prevChainHash = entry.chainHash;
218
- }
219
-
220
- return true;
221
- }
222
-
223
- export const Shield = {
224
- sanitize: sanitizeString,
225
- sanitizeProps,
226
- validateProps,
227
- createCSP,
228
- hasPermission,
229
- audit,
230
- getAuditLog,
231
- verifyAuditIntegrity,
232
- };