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
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
4
|
-
import { useTheme } from '../themes';
|
|
5
|
-
import { getAccessibleForeground } from '../engine/wcag';
|
|
6
|
-
import { sanitizeString } from '../engine/security';
|
|
7
|
-
import { useReducedMotion } from '../hooks';
|
|
8
|
-
import { tkx, cx } from '../engine/tkx';
|
|
9
|
-
|
|
10
|
-
export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'link';
|
|
11
|
-
export type ButtonSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
12
|
-
export type ButtonColorScheme = 'primary' | 'secondary' | 'danger' | 'warning' | 'success';
|
|
13
|
-
|
|
14
|
-
export interface TkxButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
-
variant?: ButtonVariant;
|
|
16
|
-
size?: ButtonSize;
|
|
17
|
-
colorScheme?: ButtonColorScheme;
|
|
18
|
-
isLoading?: boolean;
|
|
19
|
-
loadingText?: string;
|
|
20
|
-
leftIcon?: ReactNode;
|
|
21
|
-
rightIcon?: ReactNode;
|
|
22
|
-
isFullWidth?: boolean;
|
|
23
|
-
glow?: boolean;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const SIZE_CLASS: Record<ButtonSize, string> = {
|
|
27
|
-
sm: 'text-xs font-semibold',
|
|
28
|
-
md: 'text-sm font-semibold',
|
|
29
|
-
lg: 'text-base font-semibold',
|
|
30
|
-
xl: 'text-lg font-semibold',
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const SIZE_PADDING: Record<ButtonSize, string> = {
|
|
34
|
-
sm: 'py-1.5 px-3',
|
|
35
|
-
md: 'py-2 px-4',
|
|
36
|
-
lg: 'py-2.5 px-5',
|
|
37
|
-
xl: 'py-3 px-6',
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const SIZE_MIN_H: Record<ButtonSize, string> = {
|
|
41
|
-
sm: 'min-h-[32px]',
|
|
42
|
-
md: 'min-h-[40px]',
|
|
43
|
-
lg: 'min-h-[48px]',
|
|
44
|
-
xl: 'min-h-[56px]',
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const SPINNER_SIZE: Record<ButtonSize, number> = { sm: 14, md: 16, lg: 18, xl: 20 };
|
|
48
|
-
|
|
49
|
-
function Spinner({ size }: { size: ButtonSize }) {
|
|
50
|
-
const dim = SPINNER_SIZE[size];
|
|
51
|
-
return (
|
|
52
|
-
<svg
|
|
53
|
-
width={dim}
|
|
54
|
-
height={dim}
|
|
55
|
-
viewBox="0 0 24 24"
|
|
56
|
-
fill="none"
|
|
57
|
-
aria-hidden="true"
|
|
58
|
-
className={tkx('animate-spin shrink-0')}
|
|
59
|
-
>
|
|
60
|
-
<circle cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="3" strokeOpacity="0.25" />
|
|
61
|
-
<path d="M12 2a10 10 0 0 1 10 10" stroke="currentColor" strokeWidth="3" strokeLinecap="round" />
|
|
62
|
-
</svg>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export const TkxButton = forwardRef<HTMLButtonElement, TkxButtonProps>(
|
|
67
|
-
(
|
|
68
|
-
{
|
|
69
|
-
variant = 'solid',
|
|
70
|
-
size = 'md',
|
|
71
|
-
colorScheme = 'primary',
|
|
72
|
-
isLoading = false,
|
|
73
|
-
loadingText,
|
|
74
|
-
leftIcon,
|
|
75
|
-
rightIcon,
|
|
76
|
-
isFullWidth = false,
|
|
77
|
-
glow = false,
|
|
78
|
-
disabled,
|
|
79
|
-
children,
|
|
80
|
-
className,
|
|
81
|
-
style,
|
|
82
|
-
...rest
|
|
83
|
-
},
|
|
84
|
-
ref,
|
|
85
|
-
) => {
|
|
86
|
-
const theme = useTheme();
|
|
87
|
-
const reducedMotion = useReducedMotion();
|
|
88
|
-
const isDisabled = disabled || isLoading;
|
|
89
|
-
|
|
90
|
-
const colorMap: Record<ButtonColorScheme, string> = {
|
|
91
|
-
primary: theme.primary, secondary: theme.secondary,
|
|
92
|
-
danger: theme.danger, warning: theme.warning, success: theme.success,
|
|
93
|
-
};
|
|
94
|
-
const accentColor = colorMap[colorScheme];
|
|
95
|
-
const textOnAccent = getAccessibleForeground(accentColor, ['#ffffff', '#000000', theme.bg]);
|
|
96
|
-
|
|
97
|
-
const safeChildren = typeof children === 'string' ? sanitizeString(children) : children;
|
|
98
|
-
const safeLoadingText = loadingText ? sanitizeString(loadingText) : undefined;
|
|
99
|
-
|
|
100
|
-
// Variant-specific inline styles (dynamic hex colors from theme)
|
|
101
|
-
const variantStyle: React.CSSProperties = variant === 'solid'
|
|
102
|
-
? {
|
|
103
|
-
backgroundColor: accentColor,
|
|
104
|
-
color: textOnAccent,
|
|
105
|
-
border: 'none',
|
|
106
|
-
boxShadow: glow && !reducedMotion ? `0 0 20px ${accentColor}55` : undefined,
|
|
107
|
-
}
|
|
108
|
-
: variant === 'outline'
|
|
109
|
-
? { backgroundColor: 'transparent', color: accentColor, border: `2px solid ${accentColor}` }
|
|
110
|
-
: variant === 'ghost'
|
|
111
|
-
? { backgroundColor: 'transparent', color: accentColor, border: 'none' }
|
|
112
|
-
: { backgroundColor: 'transparent', color: accentColor, border: 'none', textDecoration: 'underline' };
|
|
113
|
-
|
|
114
|
-
const base = tkx(
|
|
115
|
-
'inline-flex items-center justify-center gap-2',
|
|
116
|
-
'rounded-lg font-sans font-semibold',
|
|
117
|
-
'select-none relative overflow-hidden',
|
|
118
|
-
SIZE_CLASS[size],
|
|
119
|
-
SIZE_PADDING[size],
|
|
120
|
-
SIZE_MIN_H[size],
|
|
121
|
-
variant !== 'link' && SIZE_MIN_H[size],
|
|
122
|
-
isFullWidth && 'w-full',
|
|
123
|
-
isDisabled ? 'cursor-not-allowed opacity-60' : 'cursor-pointer',
|
|
124
|
-
!reducedMotion && 'transition-all duration-200',
|
|
125
|
-
'focus-visible:focus-ring',
|
|
126
|
-
);
|
|
127
|
-
|
|
128
|
-
return (
|
|
129
|
-
<button
|
|
130
|
-
ref={ref}
|
|
131
|
-
aria-busy={isLoading}
|
|
132
|
-
aria-disabled={isDisabled}
|
|
133
|
-
disabled={isDisabled}
|
|
134
|
-
className={cx(base, className)}
|
|
135
|
-
style={{ ...variantStyle, ...style }}
|
|
136
|
-
{...rest}
|
|
137
|
-
>
|
|
138
|
-
{isLoading ? (
|
|
139
|
-
<>
|
|
140
|
-
<Spinner size={size} />
|
|
141
|
-
{safeLoadingText ?? safeChildren}
|
|
142
|
-
</>
|
|
143
|
-
) : (
|
|
144
|
-
<>
|
|
145
|
-
{leftIcon && <span aria-hidden="true">{leftIcon}</span>}
|
|
146
|
-
{safeChildren}
|
|
147
|
-
{rightIcon && <span aria-hidden="true">{rightIcon}</span>}
|
|
148
|
-
</>
|
|
149
|
-
)}
|
|
150
|
-
</button>
|
|
151
|
-
);
|
|
152
|
-
},
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
TkxButton.displayName = 'TkxButton';
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';
|
|
4
|
-
import { useTheme } from '../themes';
|
|
5
|
-
import { useReducedMotion } from '../hooks';
|
|
6
|
-
import { tkx, cx } from '../engine/tkx';
|
|
7
|
-
|
|
8
|
-
export type CardVariant = 'default' | 'glass' | 'quantum' | 'elevated' | 'outlined';
|
|
9
|
-
export type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
10
|
-
|
|
11
|
-
export interface TkxCardProps extends HTMLAttributes<HTMLElement> {
|
|
12
|
-
variant?: CardVariant;
|
|
13
|
-
isHoverable?: boolean;
|
|
14
|
-
isClickable?: boolean;
|
|
15
|
-
padding?: CardPadding;
|
|
16
|
-
as?: 'div' | 'article' | 'section' | 'button';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const PADDING_CLASS: Record<CardPadding, string> = {
|
|
20
|
-
none: '', sm: 'p-3', md: 'p-5', lg: 'p-7',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const TkxCard = forwardRef<HTMLElement, TkxCardProps>(
|
|
24
|
-
({ variant = 'default', isHoverable, isClickable, padding = 'md', as, children, className, style, ...rest }, ref) => {
|
|
25
|
-
const theme = useTheme();
|
|
26
|
-
const reducedMotion = useReducedMotion();
|
|
27
|
-
const Tag = (as ?? (isClickable ? 'button' : 'div')) as 'div';
|
|
28
|
-
|
|
29
|
-
const variantStyle: React.CSSProperties = {
|
|
30
|
-
default: { backgroundColor: theme.surface, border: `1px solid ${theme.border}` },
|
|
31
|
-
glass: { backgroundColor: `${theme.surface}cc`, backdropFilter: 'blur(12px)', border: `1px solid ${theme.border}55`, boxShadow: `0 4px 24px ${theme.bg}40` },
|
|
32
|
-
quantum: { backgroundColor: theme.surfaceAlt, border: `1px solid ${theme.primary}33`, boxShadow: `0 0 24px ${theme.primary}18` },
|
|
33
|
-
elevated: { backgroundColor: theme.surface, boxShadow: `0 4px 20px ${theme.bg}60` },
|
|
34
|
-
outlined: { backgroundColor: 'transparent', border: `2px solid ${theme.border}` },
|
|
35
|
-
}[variant];
|
|
36
|
-
|
|
37
|
-
const base = tkx(
|
|
38
|
-
'rounded-xl w-full text-left block font-sans focus-visible:focus-ring',
|
|
39
|
-
PADDING_CLASS[padding],
|
|
40
|
-
(isHoverable || isClickable) && !reducedMotion && 'transition-transform duration-150 hover:scale-[1.01]',
|
|
41
|
-
isClickable ? 'cursor-pointer' : 'cursor-default',
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<Tag
|
|
46
|
-
ref={ref as React.Ref<HTMLDivElement>}
|
|
47
|
-
className={cx('tkx-card', base, className)}
|
|
48
|
-
style={{ color: theme.text, ...variantStyle, ...style }}
|
|
49
|
-
{...(rest as HTMLAttributes<HTMLDivElement>)}
|
|
50
|
-
>
|
|
51
|
-
{children}
|
|
52
|
-
</Tag>
|
|
53
|
-
);
|
|
54
|
-
},
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
TkxCard.displayName = 'TkxCard';
|
|
58
|
-
|
|
59
|
-
// ── Sub-components ────────────────────────────────────────────────────────────
|
|
60
|
-
|
|
61
|
-
export interface TkxCardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
62
|
-
title?: ReactNode;
|
|
63
|
-
subtitle?: ReactNode;
|
|
64
|
-
action?: ReactNode;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function TkxCardHeader({ title, subtitle, action, children, className, ...rest }: TkxCardHeaderProps) {
|
|
68
|
-
const theme = useTheme();
|
|
69
|
-
return (
|
|
70
|
-
<div className={cx(tkx('flex justify-between items-start mb-4'), className)} {...rest}>
|
|
71
|
-
<div className={tkx('flex-1 min-w-0')}>
|
|
72
|
-
{title && <h3 className={tkx('text-base font-semibold m-0')} style={{ color: theme.text }}>{title}</h3>}
|
|
73
|
-
{subtitle && <p className={tkx('text-sm mt-1 mb-0')} style={{ color: theme.textMuted }}>{subtitle}</p>}
|
|
74
|
-
{children}
|
|
75
|
-
</div>
|
|
76
|
-
{action && <div className={tkx('ml-3 shrink-0')}>{action}</div>}
|
|
77
|
-
</div>
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function TkxCardBody({ children, className, ...rest }: HTMLAttributes<HTMLDivElement>) {
|
|
82
|
-
return <div className={cx(tkx(''), className)} {...rest}>{children}</div>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function TkxCardFooter({ children, className, style, ...rest }: HTMLAttributes<HTMLDivElement>) {
|
|
86
|
-
const theme = useTheme();
|
|
87
|
-
return (
|
|
88
|
-
<div
|
|
89
|
-
className={cx(tkx('flex items-center justify-end gap-2 mt-4 pt-4'), className)}
|
|
90
|
-
style={{ borderTop: `1px solid ${theme.border}`, ...style }}
|
|
91
|
-
{...rest}
|
|
92
|
-
>
|
|
93
|
-
{children}
|
|
94
|
-
</div>
|
|
95
|
-
);
|
|
96
|
-
}
|