tekivex-ui 2.5.15 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.cjs +1 -1
- package/dist/charts.js +22 -553
- package/dist/chunk-B3ph66Zb.js +1 -0
- package/dist/chunk-Bc16rJT-.js +1 -0
- package/dist/chunk-Dike2DLU.js +3 -0
- package/dist/chunk-DjxOP8W4.js +1 -0
- package/dist/chunk-DkoFTL1O.js +1 -0
- package/dist/chunk-DmRB1Blb.js +1 -0
- package/dist/chunk-DnCXUUx5.js +1 -0
- package/dist/chunk-LWkKqC8d.js +1 -0
- package/dist/chunk-PJ50l0JC.js +1 -0
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +1 -442
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.js +1 -733
- package/dist/index.cjs +1 -152
- package/dist/index.d.ts +4 -2
- package/dist/index.js +429 -16786
- package/dist/quantum.cjs +1 -89
- package/dist/quantum.js +74 -2551
- package/dist/realtime.cjs +1 -23
- package/dist/realtime.js +1 -804
- package/dist/src/a11y/index.d.ts +0 -1
- package/dist/src/charts/TkxAreaChart.d.ts +0 -5
- package/dist/src/charts/TkxBarChart.d.ts +0 -3
- package/dist/src/charts/TkxDonutChart.d.ts +0 -5
- package/dist/src/charts/TkxLineChart.d.ts +0 -1
- package/dist/src/charts/TkxPieChart.d.ts +0 -3
- package/dist/src/charts/TkxRadarChart.d.ts +0 -3
- package/dist/src/charts/TkxScatterChart.d.ts +0 -2
- package/dist/src/charts/index.d.ts +0 -1
- package/dist/src/charts/shared.d.ts +0 -3
- package/dist/src/components/TkxAIChatBubble.d.ts +0 -9
- package/dist/src/components/TkxAIConfidenceBar.d.ts +0 -6
- package/dist/src/components/TkxAIThinking.d.ts +0 -6
- package/dist/src/components/TkxAccordion.d.ts +0 -1
- package/dist/src/components/TkxAffix.d.ts +0 -1
- package/dist/src/components/TkxAlert.d.ts +0 -1
- package/dist/src/components/TkxAnchor.d.ts +0 -1
- package/dist/src/components/TkxAppBar.d.ts +0 -1
- package/dist/src/components/TkxAutocomplete.d.ts +0 -1
- package/dist/src/components/TkxAvatar.d.ts +0 -1
- package/dist/src/components/TkxBadge.d.ts +0 -1
- package/dist/src/components/TkxBottomNav.d.ts +0 -1
- package/dist/src/components/TkxBreadcrumb.d.ts +0 -1
- package/dist/src/components/TkxButton.d.ts +0 -1
- package/dist/src/components/TkxCard.d.ts +0 -1
- package/dist/src/components/TkxCarousel.d.ts +0 -1
- package/dist/src/components/TkxCascader.d.ts +0 -1
- package/dist/src/components/TkxChat.d.ts +0 -1
- package/dist/src/components/TkxCheckbox.d.ts +0 -1
- package/dist/src/components/TkxClock.d.ts +0 -1
- package/dist/src/components/TkxColorPicker.d.ts +0 -1
- package/dist/src/components/TkxCommand.d.ts +0 -1
- package/dist/src/components/TkxConfigProvider.d.ts +0 -30
- package/dist/src/components/TkxDataGrid.d.ts +0 -15
- package/dist/src/components/TkxDatePicker.d.ts +0 -1
- package/dist/src/components/TkxDivider.d.ts +0 -1
- package/dist/src/components/TkxDrawer.d.ts +0 -1
- package/dist/src/components/TkxDropdown.d.ts +0 -1
- package/dist/src/components/TkxEmpty.d.ts +0 -1
- package/dist/src/components/TkxFileUpload.d.ts +0 -1
- package/dist/src/components/TkxForm.d.ts +0 -35
- package/dist/src/components/TkxIcon.d.ts +0 -1
- package/dist/src/components/TkxImage.d.ts +0 -1
- package/dist/src/components/TkxInput.d.ts +1 -1
- package/dist/src/components/TkxLayout.d.ts +0 -22
- package/dist/src/components/TkxList.d.ts +0 -1
- package/dist/src/components/TkxLiveFeed.d.ts +0 -1
- package/dist/src/components/TkxLiveLog.d.ts +0 -1
- package/dist/src/components/TkxLiveMetrics.d.ts +0 -1
- package/dist/src/components/TkxLogo.d.ts +0 -1
- package/dist/src/components/TkxMarkdown.d.ts +0 -10
- package/dist/src/components/TkxMasonry.d.ts +0 -1
- package/dist/src/components/TkxMentions.d.ts +0 -1
- package/dist/src/components/TkxMenu.d.ts +0 -1
- package/dist/src/components/TkxModal.d.ts +0 -1
- package/dist/src/components/TkxNumberInput.d.ts +0 -1
- package/dist/src/components/TkxOTP.d.ts +0 -1
- package/dist/src/components/TkxOrgChart.d.ts +32 -0
- package/dist/src/components/TkxPagination.d.ts +0 -1
- package/dist/src/components/TkxPlayground.d.ts +0 -13
- package/dist/src/components/TkxPopover.d.ts +0 -1
- package/dist/src/components/TkxProgress.d.ts +0 -1
- package/dist/src/components/TkxQRCode.d.ts +0 -1
- package/dist/src/components/TkxQuantumForm.d.ts +0 -1
- package/dist/src/components/TkxRadio.d.ts +0 -1
- package/dist/src/components/TkxRating.d.ts +0 -1
- package/dist/src/components/TkxRealTimeChart.d.ts +0 -1
- package/dist/src/components/TkxResult.d.ts +0 -1
- package/dist/src/components/TkxRichTextDisplay.d.ts +0 -1
- package/dist/src/components/TkxSegmented.d.ts +0 -1
- package/dist/src/components/TkxSelect.d.ts +0 -3
- package/dist/src/components/TkxSkeleton.d.ts +0 -1
- package/dist/src/components/TkxSlider.d.ts +0 -1
- package/dist/src/components/TkxSnackbar.d.ts +0 -1
- package/dist/src/components/TkxSpeedDial.d.ts +0 -1
- package/dist/src/components/TkxSpin.d.ts +0 -1
- package/dist/src/components/TkxStatistic.d.ts +0 -1
- package/dist/src/components/TkxStepper.d.ts +0 -1
- package/dist/src/components/TkxTable.d.ts +0 -1
- package/dist/src/components/TkxTabs.d.ts +0 -1
- package/dist/src/components/TkxTag.d.ts +0 -1
- package/dist/src/components/TkxThemeBuilder.d.ts +0 -1
- package/dist/src/components/TkxTimeline.d.ts +0 -1
- package/dist/src/components/TkxToast.d.ts +0 -1
- package/dist/src/components/TkxToggle.d.ts +0 -1
- package/dist/src/components/TkxToolbar.d.ts +0 -1
- package/dist/src/components/TkxTooltip.d.ts +0 -1
- package/dist/src/components/TkxTour.d.ts +0 -1
- package/dist/src/components/TkxTransferList.d.ts +0 -1
- package/dist/src/components/TkxTreeView.d.ts +0 -1
- package/dist/src/components/TkxTypography.d.ts +0 -1
- package/dist/src/components/TkxVideoPlayer.d.ts +0 -1
- package/dist/src/components/TkxWatermark.d.ts +0 -1
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/engine/css.d.ts +0 -1
- package/dist/src/engine/index.d.ts +0 -1
- package/dist/src/engine/quantum-ai.d.ts +0 -73
- package/dist/src/engine/quantum.d.ts +0 -1
- package/dist/src/engine/security.d.ts +45 -9
- package/dist/src/engine/tkx.d.ts +0 -53
- package/dist/src/engine/wcag.d.ts +0 -1
- package/dist/src/headless/index.d.ts +0 -1
- package/dist/src/headless/useControllable.d.ts +0 -15
- package/dist/src/headless/useDebounce.d.ts +0 -12
- package/dist/src/headless/useDisclosure.d.ts +0 -13
- package/dist/src/headless/useFormState.d.ts +0 -13
- package/dist/src/headless/useInfiniteQuery.d.ts +0 -11
- package/dist/src/headless/useIntersectionObserver.d.ts +0 -10
- package/dist/src/headless/useListSelection.d.ts +0 -9
- package/dist/src/headless/useLocalStorage.d.ts +0 -8
- package/dist/src/headless/useMediaQuery.d.ts +0 -10
- package/dist/src/headless/useRovingTabIndex.d.ts +0 -15
- package/dist/src/headless/useSSE.d.ts +0 -9
- package/dist/src/headless/useThrottle.d.ts +0 -7
- package/dist/src/headless/useWebSocket.d.ts +0 -9
- package/dist/src/hooks/index.d.ts +0 -1
- package/dist/src/i18n/I18nProvider.d.ts +0 -1
- package/dist/src/i18n/index.d.ts +0 -1
- package/dist/src/quantum/index.d.ts +0 -1
- package/dist/src/realtime/index.d.ts +0 -1
- package/dist/src/themes/index.d.ts +0 -1
- package/package.json +5 -3
- package/dist/TkxForm-BaO4wvXt.js +0 -320
- package/dist/TkxForm-M6ttomry.cjs +0 -12
- package/dist/chunk-Bmb41Sf3.cjs +0 -1
- package/dist/hooks-6pRsPOyG.js +0 -58
- package/dist/hooks-mivgRljH.cjs +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/src/a11y/index.d.ts.map +0 -1
- package/dist/src/charts/TkxAreaChart.d.ts.map +0 -1
- package/dist/src/charts/TkxBarChart.d.ts.map +0 -1
- package/dist/src/charts/TkxDonutChart.d.ts.map +0 -1
- package/dist/src/charts/TkxLineChart.d.ts.map +0 -1
- package/dist/src/charts/TkxPieChart.d.ts.map +0 -1
- package/dist/src/charts/TkxRadarChart.d.ts.map +0 -1
- package/dist/src/charts/TkxScatterChart.d.ts.map +0 -1
- package/dist/src/charts/index.d.ts.map +0 -1
- package/dist/src/charts/shared.d.ts.map +0 -1
- package/dist/src/components/TkxAIChatBubble.d.ts.map +0 -1
- package/dist/src/components/TkxAIConfidenceBar.d.ts.map +0 -1
- package/dist/src/components/TkxAIThinking.d.ts.map +0 -1
- package/dist/src/components/TkxAccordion.d.ts.map +0 -1
- package/dist/src/components/TkxAffix.d.ts.map +0 -1
- package/dist/src/components/TkxAlert.d.ts.map +0 -1
- package/dist/src/components/TkxAnchor.d.ts.map +0 -1
- package/dist/src/components/TkxAppBar.d.ts.map +0 -1
- package/dist/src/components/TkxAutocomplete.d.ts.map +0 -1
- package/dist/src/components/TkxAvatar.d.ts.map +0 -1
- package/dist/src/components/TkxBadge.d.ts.map +0 -1
- package/dist/src/components/TkxBottomNav.d.ts.map +0 -1
- package/dist/src/components/TkxBreadcrumb.d.ts.map +0 -1
- package/dist/src/components/TkxButton.d.ts.map +0 -1
- package/dist/src/components/TkxCard.d.ts.map +0 -1
- package/dist/src/components/TkxCarousel.d.ts.map +0 -1
- package/dist/src/components/TkxCascader.d.ts.map +0 -1
- package/dist/src/components/TkxChat.d.ts.map +0 -1
- package/dist/src/components/TkxCheckbox.d.ts.map +0 -1
- package/dist/src/components/TkxClock.d.ts.map +0 -1
- package/dist/src/components/TkxColorPicker.d.ts.map +0 -1
- package/dist/src/components/TkxCommand.d.ts.map +0 -1
- package/dist/src/components/TkxConfigProvider.d.ts.map +0 -1
- package/dist/src/components/TkxDataGrid.d.ts.map +0 -1
- package/dist/src/components/TkxDatePicker.d.ts.map +0 -1
- package/dist/src/components/TkxDivider.d.ts.map +0 -1
- package/dist/src/components/TkxDrawer.d.ts.map +0 -1
- package/dist/src/components/TkxDropdown.d.ts.map +0 -1
- package/dist/src/components/TkxEmpty.d.ts.map +0 -1
- package/dist/src/components/TkxFileUpload.d.ts.map +0 -1
- package/dist/src/components/TkxForm.d.ts.map +0 -1
- package/dist/src/components/TkxIcon.d.ts.map +0 -1
- package/dist/src/components/TkxImage.d.ts.map +0 -1
- package/dist/src/components/TkxInput.d.ts.map +0 -1
- package/dist/src/components/TkxLayout.d.ts.map +0 -1
- package/dist/src/components/TkxList.d.ts.map +0 -1
- package/dist/src/components/TkxLiveFeed.d.ts.map +0 -1
- package/dist/src/components/TkxLiveLog.d.ts.map +0 -1
- package/dist/src/components/TkxLiveMetrics.d.ts.map +0 -1
- package/dist/src/components/TkxLogo.d.ts.map +0 -1
- package/dist/src/components/TkxMarkdown.d.ts.map +0 -1
- package/dist/src/components/TkxMasonry.d.ts.map +0 -1
- package/dist/src/components/TkxMentions.d.ts.map +0 -1
- package/dist/src/components/TkxMenu.d.ts.map +0 -1
- package/dist/src/components/TkxModal.d.ts.map +0 -1
- package/dist/src/components/TkxNumberInput.d.ts.map +0 -1
- package/dist/src/components/TkxOTP.d.ts.map +0 -1
- package/dist/src/components/TkxPagination.d.ts.map +0 -1
- package/dist/src/components/TkxPlayground.d.ts.map +0 -1
- package/dist/src/components/TkxPopover.d.ts.map +0 -1
- package/dist/src/components/TkxProgress.d.ts.map +0 -1
- package/dist/src/components/TkxQRCode.d.ts.map +0 -1
- package/dist/src/components/TkxQuantumForm.d.ts.map +0 -1
- package/dist/src/components/TkxRadio.d.ts.map +0 -1
- package/dist/src/components/TkxRating.d.ts.map +0 -1
- package/dist/src/components/TkxRealTimeChart.d.ts.map +0 -1
- package/dist/src/components/TkxResult.d.ts.map +0 -1
- package/dist/src/components/TkxRichTextDisplay.d.ts.map +0 -1
- package/dist/src/components/TkxSegmented.d.ts.map +0 -1
- package/dist/src/components/TkxSelect.d.ts.map +0 -1
- package/dist/src/components/TkxSkeleton.d.ts.map +0 -1
- package/dist/src/components/TkxSlider.d.ts.map +0 -1
- package/dist/src/components/TkxSnackbar.d.ts.map +0 -1
- package/dist/src/components/TkxSpeedDial.d.ts.map +0 -1
- package/dist/src/components/TkxSpin.d.ts.map +0 -1
- package/dist/src/components/TkxStatistic.d.ts.map +0 -1
- package/dist/src/components/TkxStepper.d.ts.map +0 -1
- package/dist/src/components/TkxTable.d.ts.map +0 -1
- package/dist/src/components/TkxTabs.d.ts.map +0 -1
- package/dist/src/components/TkxTag.d.ts.map +0 -1
- package/dist/src/components/TkxThemeBuilder.d.ts.map +0 -1
- package/dist/src/components/TkxTimeline.d.ts.map +0 -1
- package/dist/src/components/TkxToast.d.ts.map +0 -1
- package/dist/src/components/TkxToggle.d.ts.map +0 -1
- package/dist/src/components/TkxToolbar.d.ts.map +0 -1
- package/dist/src/components/TkxTooltip.d.ts.map +0 -1
- package/dist/src/components/TkxTour.d.ts.map +0 -1
- package/dist/src/components/TkxTransferList.d.ts.map +0 -1
- package/dist/src/components/TkxTreeView.d.ts.map +0 -1
- package/dist/src/components/TkxTypography.d.ts.map +0 -1
- package/dist/src/components/TkxVideoPlayer.d.ts.map +0 -1
- package/dist/src/components/TkxWatermark.d.ts.map +0 -1
- package/dist/src/components/index.d.ts.map +0 -1
- package/dist/src/engine/css.d.ts.map +0 -1
- package/dist/src/engine/index.d.ts.map +0 -1
- package/dist/src/engine/quantum-ai.d.ts.map +0 -1
- package/dist/src/engine/quantum.d.ts.map +0 -1
- package/dist/src/engine/security.d.ts.map +0 -1
- package/dist/src/engine/tkx.d.ts.map +0 -1
- package/dist/src/engine/wcag.d.ts.map +0 -1
- package/dist/src/headless/index.d.ts.map +0 -1
- package/dist/src/headless/useControllable.d.ts.map +0 -1
- package/dist/src/headless/useDebounce.d.ts.map +0 -1
- package/dist/src/headless/useDisclosure.d.ts.map +0 -1
- package/dist/src/headless/useFormState.d.ts.map +0 -1
- package/dist/src/headless/useInfiniteQuery.d.ts.map +0 -1
- package/dist/src/headless/useIntersectionObserver.d.ts.map +0 -1
- package/dist/src/headless/useListSelection.d.ts.map +0 -1
- package/dist/src/headless/useLocalStorage.d.ts.map +0 -1
- package/dist/src/headless/useMediaQuery.d.ts.map +0 -1
- package/dist/src/headless/useRovingTabIndex.d.ts.map +0 -1
- package/dist/src/headless/useSSE.d.ts.map +0 -1
- package/dist/src/headless/useThrottle.d.ts.map +0 -1
- package/dist/src/headless/useWebSocket.d.ts.map +0 -1
- package/dist/src/hooks/index.d.ts.map +0 -1
- package/dist/src/i18n/I18nProvider.d.ts.map +0 -1
- package/dist/src/i18n/index.d.ts.map +0 -1
- package/dist/src/quantum/index.d.ts.map +0 -1
- package/dist/src/realtime/index.d.ts.map +0 -1
- package/dist/src/themes/index.d.ts.map +0 -1
- package/dist/themes-BbJanqiC.js +0 -498
- package/dist/themes-CMq2vWXj.cjs +0 -2
- package/dist/tkx-BoP5V5zy.cjs +0 -4
- package/dist/tkx-mOKMzvUK.js +0 -1174
- package/src/a11y/index.tsx +0 -87
- package/src/charts/TkxAreaChart.tsx +0 -121
- package/src/charts/TkxBarChart.tsx +0 -117
- package/src/charts/TkxDonutChart.tsx +0 -164
- package/src/charts/TkxLineChart.tsx +0 -137
- package/src/charts/TkxPieChart.tsx +0 -103
- package/src/charts/TkxRadarChart.tsx +0 -92
- package/src/charts/TkxScatterChart.tsx +0 -104
- package/src/charts/index.ts +0 -22
- package/src/charts/shared.ts +0 -47
- package/src/components/TkxAIChatBubble.tsx +0 -256
- package/src/components/TkxAIConfidenceBar.tsx +0 -133
- package/src/components/TkxAIThinking.tsx +0 -193
- package/src/components/TkxAccordion.tsx +0 -590
- package/src/components/TkxAffix.tsx +0 -140
- package/src/components/TkxAlert.tsx +0 -94
- package/src/components/TkxAnchor.tsx +0 -195
- package/src/components/TkxAppBar.tsx +0 -262
- package/src/components/TkxAutocomplete.tsx +0 -455
- package/src/components/TkxAvatar.tsx +0 -103
- package/src/components/TkxBadge.tsx +0 -75
- package/src/components/TkxBottomNav.tsx +0 -241
- package/src/components/TkxBreadcrumb.tsx +0 -324
- package/src/components/TkxButton.tsx +0 -155
- package/src/components/TkxCard.tsx +0 -96
- package/src/components/TkxCarousel.tsx +0 -554
- package/src/components/TkxCascader.tsx +0 -278
- package/src/components/TkxChat.tsx +0 -356
- package/src/components/TkxCheckbox.tsx +0 -220
- package/src/components/TkxClock.tsx +0 -603
- package/src/components/TkxColorPicker.tsx +0 -635
- package/src/components/TkxCommand.tsx +0 -646
- package/src/components/TkxConfigProvider.tsx +0 -460
- package/src/components/TkxDataGrid.tsx +0 -941
- package/src/components/TkxDatePicker.tsx +0 -1625
- package/src/components/TkxDivider.tsx +0 -51
- package/src/components/TkxDrawer.tsx +0 -236
- package/src/components/TkxDropdown.tsx +0 -804
- package/src/components/TkxEmpty.tsx +0 -221
- package/src/components/TkxFileUpload.tsx +0 -373
- package/src/components/TkxForm.tsx +0 -683
- package/src/components/TkxIcon.tsx +0 -685
- package/src/components/TkxImage.tsx +0 -279
- package/src/components/TkxInput.tsx +0 -103
- package/src/components/TkxLayout.tsx +0 -649
- package/src/components/TkxList.tsx +0 -244
- package/src/components/TkxLiveFeed.tsx +0 -331
- package/src/components/TkxLiveLog.tsx +0 -472
- package/src/components/TkxLiveMetrics.tsx +0 -315
- package/src/components/TkxLogo.tsx +0 -299
- package/src/components/TkxMarkdown.tsx +0 -855
- package/src/components/TkxMasonry.tsx +0 -178
- package/src/components/TkxMentions.tsx +0 -212
- package/src/components/TkxMenu.tsx +0 -1044
- package/src/components/TkxModal.tsx +0 -122
- package/src/components/TkxNumberInput.tsx +0 -410
- package/src/components/TkxOTP.tsx +0 -297
- package/src/components/TkxPagination.tsx +0 -390
- package/src/components/TkxPlayground.tsx +0 -845
- package/src/components/TkxPopover.tsx +0 -297
- package/src/components/TkxProgress.tsx +0 -114
- package/src/components/TkxQRCode.tsx +0 -176
- package/src/components/TkxQuantumForm.tsx +0 -594
- package/src/components/TkxRadio.tsx +0 -286
- package/src/components/TkxRating.tsx +0 -288
- package/src/components/TkxRealTimeChart.tsx +0 -383
- package/src/components/TkxResult.tsx +0 -130
- package/src/components/TkxRichTextDisplay.tsx +0 -396
- package/src/components/TkxSegmented.tsx +0 -171
- package/src/components/TkxSelect.tsx +0 -1130
- package/src/components/TkxSkeleton.tsx +0 -107
- package/src/components/TkxSlider.tsx +0 -495
- package/src/components/TkxSnackbar.tsx +0 -316
- package/src/components/TkxSpeedDial.tsx +0 -397
- package/src/components/TkxSpin.tsx +0 -263
- package/src/components/TkxStatistic.tsx +0 -263
- package/src/components/TkxStepper.tsx +0 -487
- package/src/components/TkxTable.tsx +0 -424
- package/src/components/TkxTabs.tsx +0 -126
- package/src/components/TkxTag.tsx +0 -321
- package/src/components/TkxThemeBuilder.tsx +0 -687
- package/src/components/TkxTimeline.tsx +0 -305
- package/src/components/TkxToast.tsx +0 -287
- package/src/components/TkxToggle.tsx +0 -95
- package/src/components/TkxToolbar.tsx +0 -262
- package/src/components/TkxTooltip.tsx +0 -85
- package/src/components/TkxTour.tsx +0 -241
- package/src/components/TkxTransferList.tsx +0 -489
- package/src/components/TkxTreeView.tsx +0 -423
- package/src/components/TkxTypography.tsx +0 -267
- package/src/components/TkxVideoPlayer.tsx +0 -1015
- package/src/components/TkxWatermark.tsx +0 -145
- package/src/components/index.ts +0 -80
- package/src/engine/css.ts +0 -126
- package/src/engine/index.ts +0 -12
- package/src/engine/quantum-ai.ts +0 -1045
- package/src/engine/quantum.ts +0 -207
- package/src/engine/security.ts +0 -232
- package/src/engine/tkx.ts +0 -1084
- package/src/engine/wcag.ts +0 -276
- package/src/headless/index.ts +0 -52
- package/src/headless/useControllable.ts +0 -42
- package/src/headless/useDebounce.ts +0 -37
- package/src/headless/useDisclosure.ts +0 -30
- package/src/headless/useFormState.ts +0 -113
- package/src/headless/useInfiniteQuery.ts +0 -155
- package/src/headless/useIntersectionObserver.ts +0 -53
- package/src/headless/useListSelection.ts +0 -103
- package/src/headless/useLocalStorage.ts +0 -48
- package/src/headless/useMediaQuery.ts +0 -39
- package/src/headless/useRovingTabIndex.ts +0 -86
- package/src/headless/useSSE.ts +0 -167
- package/src/headless/useThrottle.ts +0 -48
- package/src/headless/useWebSocket.ts +0 -231
- package/src/hooks/index.ts +0 -122
- package/src/i18n/I18nProvider.tsx +0 -36
- package/src/i18n/index.ts +0 -877
- package/src/quantum/index.ts +0 -39
- package/src/realtime/index.ts +0 -21
- package/src/styles/global.css +0 -167
- package/src/themes/index.ts +0 -294
package/src/engine/quantum.ts
DELETED
|
@@ -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
|
-
};
|
package/src/engine/security.ts
DELETED
|
@@ -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
|
-
'<': '<',
|
|
10
|
-
'>': '>',
|
|
11
|
-
'&': '&',
|
|
12
|
-
"'": ''',
|
|
13
|
-
'"': '"',
|
|
14
|
-
// Backticks can break out of unquoted/template-literal contexts in HTML
|
|
15
|
-
// (legacy IE and some sinks). Escape defensively.
|
|
16
|
-
'`': '`',
|
|
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
|
-
};
|