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/dist/tkx-mOKMzvUK.js
DELETED
|
@@ -1,1174 +0,0 @@
|
|
|
1
|
-
import { I as e } from "./themes-BbJanqiC.js";
|
|
2
|
-
//#region src/engine/security.ts
|
|
3
|
-
var t = {
|
|
4
|
-
"<": "<",
|
|
5
|
-
">": ">",
|
|
6
|
-
"&": "&",
|
|
7
|
-
"'": "'",
|
|
8
|
-
"\"": """,
|
|
9
|
-
"`": "`"
|
|
10
|
-
};
|
|
11
|
-
function n(e) {
|
|
12
|
-
let n = String(e);
|
|
13
|
-
return n = n.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, ""), n.replace(/[<>&'"`]/g, (e) => t[e] ?? e);
|
|
14
|
-
}
|
|
15
|
-
function r(e) {
|
|
16
|
-
let t = {};
|
|
17
|
-
for (let n of Object.keys(e)) t[n] = i(e[n]);
|
|
18
|
-
return t;
|
|
19
|
-
}
|
|
20
|
-
function i(e) {
|
|
21
|
-
return typeof e == "string" ? n(e) : Array.isArray(e) ? e.map(i) : typeof e == "object" && e && !a(e) ? r(e) : e;
|
|
22
|
-
}
|
|
23
|
-
function a(e) {
|
|
24
|
-
return typeof e == "object" && !!e && "$$typeof" in e;
|
|
25
|
-
}
|
|
26
|
-
function o(e, t) {
|
|
27
|
-
let n = [];
|
|
28
|
-
for (let [r, i] of Object.entries(t)) {
|
|
29
|
-
let t = e[r], a = t == null;
|
|
30
|
-
if (i.required && a) {
|
|
31
|
-
n.push(`prop '${r}' is required`);
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (!a) {
|
|
35
|
-
if (typeof t !== i.type) {
|
|
36
|
-
n.push(`prop '${r}' must be of type ${i.type}, got ${typeof t}`);
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
i.type === "number" && typeof t == "number" && (i.min !== void 0 && t < i.min && n.push(`prop '${r}' must be >= ${i.min}`), i.max !== void 0 && t > i.max && n.push(`prop '${r}' must be <= ${i.max}`)), i.type === "string" && typeof t == "string" && i.pattern && !i.pattern.test(t) && n.push(`prop '${r}' does not match pattern ${i.pattern}`), i.enum && !i.enum.includes(t) && n.push(`prop '${r}' must be one of: ${i.enum.join(", ")}`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
valid: n.length === 0,
|
|
44
|
-
errors: n
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
var s = /* @__PURE__ */ new Map();
|
|
48
|
-
function c(e, t) {
|
|
49
|
-
let n = {
|
|
50
|
-
componentId: e,
|
|
51
|
-
permissions: t,
|
|
52
|
-
directives: {
|
|
53
|
-
"default-src": ["'self'"],
|
|
54
|
-
"style-src": t.allowInlineStyles ? ["'self'", "'unsafe-inline'"] : ["'self'"],
|
|
55
|
-
"img-src": t.allowDataUrls ? ["'self'", "data:"] : t.allowExternalSrc ? ["'self'", "*"] : ["'self'"],
|
|
56
|
-
"script-src": t.allowScripts ? ["'self'"] : ["'none'"]
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
return s.set(e, n), n;
|
|
60
|
-
}
|
|
61
|
-
function l(e, t) {
|
|
62
|
-
return s.get(e)?.permissions[t] === !0;
|
|
63
|
-
}
|
|
64
|
-
var u = [];
|
|
65
|
-
function d(t, n, r) {
|
|
66
|
-
let i = e(JSON.stringify(r ?? {})), a = e((u.length > 0 ? u[u.length - 1].chainHash : "00000000") + i + n + t), o = Object.freeze({
|
|
67
|
-
timestamp: Date.now(),
|
|
68
|
-
component: n,
|
|
69
|
-
action: t,
|
|
70
|
-
propsHash: i,
|
|
71
|
-
chainHash: a
|
|
72
|
-
});
|
|
73
|
-
return u = Object.freeze([...u, o]), o;
|
|
74
|
-
}
|
|
75
|
-
function f(e) {
|
|
76
|
-
let t = u;
|
|
77
|
-
return e?.component && (t = t.filter((t) => t.component === e.component)), e?.action && (t = t.filter((t) => t.action === e.action)), e?.limit && (t = t.slice(-e.limit)), t;
|
|
78
|
-
}
|
|
79
|
-
function p() {
|
|
80
|
-
let t = "00000000";
|
|
81
|
-
for (let n of u) {
|
|
82
|
-
if (e(t + n.propsHash + n.component + n.action) !== n.chainHash) return !1;
|
|
83
|
-
t = n.chainHash;
|
|
84
|
-
}
|
|
85
|
-
return !0;
|
|
86
|
-
}
|
|
87
|
-
var m = {
|
|
88
|
-
sanitize: n,
|
|
89
|
-
sanitizeProps: r,
|
|
90
|
-
validateProps: o,
|
|
91
|
-
createCSP: c,
|
|
92
|
-
hasPermission: l,
|
|
93
|
-
audit: d,
|
|
94
|
-
getAuditLog: f,
|
|
95
|
-
verifyAuditIntegrity: p
|
|
96
|
-
}, h = {
|
|
97
|
-
0: "0",
|
|
98
|
-
px: "1px",
|
|
99
|
-
"0.5": "2px",
|
|
100
|
-
1: "4px",
|
|
101
|
-
"1.5": "6px",
|
|
102
|
-
2: "8px",
|
|
103
|
-
"2.5": "10px",
|
|
104
|
-
3: "12px",
|
|
105
|
-
"3.5": "14px",
|
|
106
|
-
4: "16px",
|
|
107
|
-
5: "20px",
|
|
108
|
-
6: "24px",
|
|
109
|
-
7: "28px",
|
|
110
|
-
8: "32px",
|
|
111
|
-
9: "36px",
|
|
112
|
-
10: "40px",
|
|
113
|
-
11: "44px",
|
|
114
|
-
12: "48px",
|
|
115
|
-
14: "56px",
|
|
116
|
-
16: "64px",
|
|
117
|
-
20: "80px",
|
|
118
|
-
24: "96px",
|
|
119
|
-
28: "112px",
|
|
120
|
-
32: "128px",
|
|
121
|
-
36: "144px",
|
|
122
|
-
40: "160px",
|
|
123
|
-
44: "176px",
|
|
124
|
-
48: "192px",
|
|
125
|
-
52: "208px",
|
|
126
|
-
56: "224px",
|
|
127
|
-
60: "240px",
|
|
128
|
-
64: "256px",
|
|
129
|
-
72: "288px",
|
|
130
|
-
80: "320px",
|
|
131
|
-
96: "384px",
|
|
132
|
-
auto: "auto",
|
|
133
|
-
full: "100%",
|
|
134
|
-
screen: "100vw",
|
|
135
|
-
svh: "100svh",
|
|
136
|
-
dvh: "100dvh",
|
|
137
|
-
fit: "fit-content",
|
|
138
|
-
max: "max-content",
|
|
139
|
-
min: "min-content"
|
|
140
|
-
}, g = {
|
|
141
|
-
...h,
|
|
142
|
-
screen: "100vh"
|
|
143
|
-
}, _ = {
|
|
144
|
-
"1/2": "50%",
|
|
145
|
-
"1/3": "33.333333%",
|
|
146
|
-
"2/3": "66.666667%",
|
|
147
|
-
"1/4": "25%",
|
|
148
|
-
"2/4": "50%",
|
|
149
|
-
"3/4": "75%",
|
|
150
|
-
"1/5": "20%",
|
|
151
|
-
"2/5": "40%",
|
|
152
|
-
"3/5": "60%",
|
|
153
|
-
"4/5": "80%",
|
|
154
|
-
"1/6": "16.666667%",
|
|
155
|
-
"5/6": "83.333333%",
|
|
156
|
-
"1/12": "8.333333%",
|
|
157
|
-
"5/12": "41.666667%",
|
|
158
|
-
"7/12": "58.333333%",
|
|
159
|
-
"11/12": "91.666667%"
|
|
160
|
-
}, v = {
|
|
161
|
-
none: "0",
|
|
162
|
-
sm: "2px",
|
|
163
|
-
"": "4px",
|
|
164
|
-
md: "6px",
|
|
165
|
-
lg: "8px",
|
|
166
|
-
xl: "12px",
|
|
167
|
-
"2xl": "16px",
|
|
168
|
-
"3xl": "24px",
|
|
169
|
-
full: "9999px"
|
|
170
|
-
}, y = {
|
|
171
|
-
sm: "0 1px 2px 0 rgba(0,0,0,.05)",
|
|
172
|
-
"": "0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)",
|
|
173
|
-
md: "0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)",
|
|
174
|
-
lg: "0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)",
|
|
175
|
-
xl: "0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)",
|
|
176
|
-
"2xl": "0 25px 50px -12px rgba(0,0,0,.25)",
|
|
177
|
-
inner: "inset 0 2px 4px 0 rgba(0,0,0,.05)",
|
|
178
|
-
none: "none"
|
|
179
|
-
}, b = {
|
|
180
|
-
xs: ["0.75rem", "1rem"],
|
|
181
|
-
sm: ["0.875rem", "1.25rem"],
|
|
182
|
-
base: ["1rem", "1.5rem"],
|
|
183
|
-
lg: ["1.125rem", "1.75rem"],
|
|
184
|
-
xl: ["1.25rem", "1.75rem"],
|
|
185
|
-
"2xl": ["1.5rem", "2rem"],
|
|
186
|
-
"3xl": ["1.875rem", "2.25rem"],
|
|
187
|
-
"4xl": ["2.25rem", "2.5rem"],
|
|
188
|
-
"5xl": ["3rem", "1"],
|
|
189
|
-
"6xl": ["3.75rem", "1"],
|
|
190
|
-
"7xl": ["4.5rem", "1"],
|
|
191
|
-
"8xl": ["6rem", "1"],
|
|
192
|
-
"9xl": ["8rem", "1"]
|
|
193
|
-
}, x = {
|
|
194
|
-
thin: "100",
|
|
195
|
-
extralight: "200",
|
|
196
|
-
light: "300",
|
|
197
|
-
normal: "400",
|
|
198
|
-
medium: "500",
|
|
199
|
-
semibold: "600",
|
|
200
|
-
bold: "700",
|
|
201
|
-
extrabold: "800",
|
|
202
|
-
black: "900"
|
|
203
|
-
}, S = {
|
|
204
|
-
none: "1",
|
|
205
|
-
tight: "1.25",
|
|
206
|
-
snug: "1.375",
|
|
207
|
-
normal: "1.5",
|
|
208
|
-
relaxed: "1.625",
|
|
209
|
-
loose: "2",
|
|
210
|
-
3: "0.75rem",
|
|
211
|
-
4: "1rem",
|
|
212
|
-
5: "1.25rem",
|
|
213
|
-
6: "1.5rem",
|
|
214
|
-
7: "1.75rem",
|
|
215
|
-
8: "2rem",
|
|
216
|
-
9: "2.25rem",
|
|
217
|
-
10: "2.5rem"
|
|
218
|
-
}, C = {
|
|
219
|
-
tighter: "-0.05em",
|
|
220
|
-
tight: "-0.025em",
|
|
221
|
-
normal: "0em",
|
|
222
|
-
wide: "0.025em",
|
|
223
|
-
wider: "0.05em",
|
|
224
|
-
widest: "0.1em"
|
|
225
|
-
}, w = {
|
|
226
|
-
none: "0",
|
|
227
|
-
sm: "4px",
|
|
228
|
-
"": "8px",
|
|
229
|
-
md: "12px",
|
|
230
|
-
lg: "16px",
|
|
231
|
-
xl: "24px",
|
|
232
|
-
"2xl": "40px",
|
|
233
|
-
"3xl": "64px"
|
|
234
|
-
}, T = Object.fromEntries([
|
|
235
|
-
0,
|
|
236
|
-
5,
|
|
237
|
-
10,
|
|
238
|
-
15,
|
|
239
|
-
20,
|
|
240
|
-
25,
|
|
241
|
-
30,
|
|
242
|
-
35,
|
|
243
|
-
40,
|
|
244
|
-
45,
|
|
245
|
-
50,
|
|
246
|
-
55,
|
|
247
|
-
60,
|
|
248
|
-
65,
|
|
249
|
-
70,
|
|
250
|
-
75,
|
|
251
|
-
80,
|
|
252
|
-
85,
|
|
253
|
-
90,
|
|
254
|
-
95,
|
|
255
|
-
100
|
|
256
|
-
].map((e) => [String(e), String(e / 100)])), E = new Set([
|
|
257
|
-
"bg",
|
|
258
|
-
"surface",
|
|
259
|
-
"surfaceAlt",
|
|
260
|
-
"border",
|
|
261
|
-
"text",
|
|
262
|
-
"textMuted",
|
|
263
|
-
"primary",
|
|
264
|
-
"secondary",
|
|
265
|
-
"danger",
|
|
266
|
-
"warning",
|
|
267
|
-
"success",
|
|
268
|
-
"info"
|
|
269
|
-
]), D = {
|
|
270
|
-
sm: "640px",
|
|
271
|
-
md: "768px",
|
|
272
|
-
lg: "1024px",
|
|
273
|
-
xl: "1280px",
|
|
274
|
-
"2xl": "1536px"
|
|
275
|
-
}, O = /javascript\s*:|vbscript\s*:|data\s*:\s*text\/html|data\s*:\s*text\/javascript|expression\s*\(|[\r\n\x00]/i, k = new Set([
|
|
276
|
-
"behavior",
|
|
277
|
-
"-moz-binding",
|
|
278
|
-
"-webkit-binding",
|
|
279
|
-
"src"
|
|
280
|
-
]), A = new Set(/* @__PURE__ */ "width.min-width.max-width.height.min-height.max-height.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.position.top.right.bottom.left.z-index.inset.flex.flex-grow.flex-shrink.flex-basis.flex-direction.flex-wrap.align-items.align-self.align-content.justify-content.justify-items.justify-self.gap.row-gap.column-gap.grid-template-columns.grid-template-rows.grid-column.grid-row.grid-area.grid-template-areas.font-size.font-weight.font-family.font-style.line-height.letter-spacing.text-align.text-decoration.text-transform.text-overflow.white-space.word-break.word-wrap.overflow-wrap.color.background.background-color.background-image.background-position.background-size.background-repeat.opacity.border.border-top.border-right.border-bottom.border-left.border-width.border-style.border-color.border-radius.outline.outline-offset.box-shadow.text-shadow.filter.backdrop-filter.transform.transition.animation.display.overflow.overflow-x.overflow-y.visibility.pointer-events.cursor.user-select.aspect-ratio.object-fit.object-position.list-style.vertical-align.float.clear.resize.scroll-behavior.content".split("."));
|
|
281
|
-
function j(e) {
|
|
282
|
-
return O.test(e) || e.includes("}") || e.includes("{") || e.includes("<") || e.includes(">") ? null : e;
|
|
283
|
-
}
|
|
284
|
-
function M(e) {
|
|
285
|
-
let t = e.toLowerCase().trim();
|
|
286
|
-
return k.has(t) || !A.has(t) ? null : t;
|
|
287
|
-
}
|
|
288
|
-
function N(e) {
|
|
289
|
-
let t = e.match(/^\[(.+)]$/);
|
|
290
|
-
return t ? j(t[1]) : null;
|
|
291
|
-
}
|
|
292
|
-
function P(e) {
|
|
293
|
-
return E.has(e) ? `var(--tkx-${e})` : e === "transparent" ? "transparent" : e === "current" ? "currentColor" : e === "white" ? "#ffffff" : e === "black" ? "#000000" : e === "inherit" ? "inherit" : N(e) || (/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), e);
|
|
294
|
-
}
|
|
295
|
-
function F(e) {
|
|
296
|
-
let t = e.match(/^\[([a-zA-Z-]+):(.+)]$/);
|
|
297
|
-
if (t) {
|
|
298
|
-
let e = M(t[1]), n = j(t[2]);
|
|
299
|
-
return e && n ? { [e]: n } : null;
|
|
300
|
-
}
|
|
301
|
-
let n = {
|
|
302
|
-
flex: "flex",
|
|
303
|
-
"inline-flex": "inline-flex",
|
|
304
|
-
grid: "grid",
|
|
305
|
-
"inline-grid": "inline-grid",
|
|
306
|
-
block: "block",
|
|
307
|
-
"inline-block": "inline-block",
|
|
308
|
-
inline: "inline",
|
|
309
|
-
hidden: "none",
|
|
310
|
-
contents: "contents",
|
|
311
|
-
"flow-root": "flow-root",
|
|
312
|
-
table: "table",
|
|
313
|
-
"table-row": "table-row",
|
|
314
|
-
"table-cell": "table-cell",
|
|
315
|
-
"table-caption": "table-caption",
|
|
316
|
-
"list-item": "list-item"
|
|
317
|
-
};
|
|
318
|
-
if (n[e]) return { display: n[e] };
|
|
319
|
-
let r = {
|
|
320
|
-
"flex-row": "row",
|
|
321
|
-
"flex-col": "column",
|
|
322
|
-
"flex-row-reverse": "row-reverse",
|
|
323
|
-
"flex-col-reverse": "column-reverse"
|
|
324
|
-
};
|
|
325
|
-
if (r[e]) return { "flex-direction": r[e] };
|
|
326
|
-
let i = {
|
|
327
|
-
"flex-wrap": "wrap",
|
|
328
|
-
"flex-nowrap": "nowrap",
|
|
329
|
-
"flex-wrap-reverse": "wrap-reverse"
|
|
330
|
-
};
|
|
331
|
-
if (i[e]) return { "flex-wrap": i[e] };
|
|
332
|
-
let a = {
|
|
333
|
-
"flex-1": "1 1 0%",
|
|
334
|
-
"flex-auto": "1 1 auto",
|
|
335
|
-
"flex-none": "none",
|
|
336
|
-
"flex-initial": "0 1 auto"
|
|
337
|
-
};
|
|
338
|
-
if (a[e]) return { flex: a[e] };
|
|
339
|
-
if (e === "grow" || e === "flex-grow") return { "flex-grow": "1" };
|
|
340
|
-
if (e === "grow-0") return { "flex-grow": "0" };
|
|
341
|
-
if (e === "shrink" || e === "flex-shrink") return { "flex-shrink": "1" };
|
|
342
|
-
if (e === "shrink-0" || e === "flex-shrink-0") return { "flex-shrink": "0" };
|
|
343
|
-
let o = {
|
|
344
|
-
"items-start": "flex-start",
|
|
345
|
-
"items-end": "flex-end",
|
|
346
|
-
"items-center": "center",
|
|
347
|
-
"items-stretch": "stretch",
|
|
348
|
-
"items-baseline": "baseline"
|
|
349
|
-
};
|
|
350
|
-
if (o[e]) return { "align-items": o[e] };
|
|
351
|
-
let s = {
|
|
352
|
-
"justify-start": "flex-start",
|
|
353
|
-
"justify-end": "flex-end",
|
|
354
|
-
"justify-center": "center",
|
|
355
|
-
"justify-between": "space-between",
|
|
356
|
-
"justify-around": "space-around",
|
|
357
|
-
"justify-evenly": "space-evenly",
|
|
358
|
-
"justify-stretch": "stretch",
|
|
359
|
-
"justify-normal": "normal"
|
|
360
|
-
};
|
|
361
|
-
if (s[e]) return { "justify-content": s[e] };
|
|
362
|
-
let c = {
|
|
363
|
-
"self-auto": "auto",
|
|
364
|
-
"self-start": "flex-start",
|
|
365
|
-
"self-end": "flex-end",
|
|
366
|
-
"self-center": "center",
|
|
367
|
-
"self-stretch": "stretch",
|
|
368
|
-
"self-baseline": "baseline"
|
|
369
|
-
};
|
|
370
|
-
if (c[e]) return { "align-self": c[e] };
|
|
371
|
-
let l = {
|
|
372
|
-
"content-start": "flex-start",
|
|
373
|
-
"content-end": "flex-end",
|
|
374
|
-
"content-center": "center",
|
|
375
|
-
"content-between": "space-between",
|
|
376
|
-
"content-around": "space-around",
|
|
377
|
-
"content-evenly": "space-evenly",
|
|
378
|
-
"content-stretch": "stretch"
|
|
379
|
-
};
|
|
380
|
-
if (l[e]) return { "align-content": l[e] };
|
|
381
|
-
let u;
|
|
382
|
-
if (u = e.match(/^grid-cols-(\d+|none|subgrid)$/)) return { "grid-template-columns": u[1] === "none" ? "none" : u[1] === "subgrid" ? "subgrid" : `repeat(${u[1]},minmax(0,1fr))` };
|
|
383
|
-
if (u = e.match(/^grid-rows-(\d+|none|subgrid)$/)) return { "grid-template-rows": u[1] === "none" ? "none" : u[1] === "subgrid" ? "subgrid" : `repeat(${u[1]},minmax(0,1fr))` };
|
|
384
|
-
if (u = e.match(/^col-span-(full|\d+)$/)) return { "grid-column": u[1] === "full" ? "1 / -1" : `span ${u[1]} / span ${u[1]}` };
|
|
385
|
-
if (u = e.match(/^col-start-(\d+|auto)$/)) return { "grid-column-start": u[1] };
|
|
386
|
-
if (u = e.match(/^col-end-(\d+|auto)$/)) return { "grid-column-end": u[1] };
|
|
387
|
-
if (u = e.match(/^row-span-(full|\d+)$/)) return { "grid-row": u[1] === "full" ? "1 / -1" : `span ${u[1]} / span ${u[1]}` };
|
|
388
|
-
if (u = e.match(/^row-start-(\d+|auto)$/)) return { "grid-row-start": u[1] };
|
|
389
|
-
if (u = e.match(/^row-end-(\d+|auto)$/)) return { "grid-row-end": u[1] };
|
|
390
|
-
if (e === "grid-flow-row") return { "grid-auto-flow": "row" };
|
|
391
|
-
if (e === "grid-flow-col") return { "grid-auto-flow": "column" };
|
|
392
|
-
if (e === "grid-flow-dense") return { "grid-auto-flow": "dense" };
|
|
393
|
-
if (e === "grid-flow-row-dense") return { "grid-auto-flow": "row dense" };
|
|
394
|
-
if (e === "grid-flow-col-dense") return { "grid-auto-flow": "column dense" };
|
|
395
|
-
if (u = e.match(/^p-(.+)$/)) {
|
|
396
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
397
|
-
if (e) return { padding: e };
|
|
398
|
-
}
|
|
399
|
-
if (u = e.match(/^px-(.+)$/)) {
|
|
400
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
401
|
-
if (e) return {
|
|
402
|
-
"padding-left": e,
|
|
403
|
-
"padding-right": e
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
if (u = e.match(/^py-(.+)$/)) {
|
|
407
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
408
|
-
if (e) return {
|
|
409
|
-
"padding-top": e,
|
|
410
|
-
"padding-bottom": e
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
if (u = e.match(/^pt-(.+)$/)) {
|
|
414
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
415
|
-
if (e) return { "padding-top": e };
|
|
416
|
-
}
|
|
417
|
-
if (u = e.match(/^pr-(.+)$/)) {
|
|
418
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
419
|
-
if (e) return { "padding-right": e };
|
|
420
|
-
}
|
|
421
|
-
if (u = e.match(/^pb-(.+)$/)) {
|
|
422
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
423
|
-
if (e) return { "padding-bottom": e };
|
|
424
|
-
}
|
|
425
|
-
if (u = e.match(/^pl-(.+)$/)) {
|
|
426
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
427
|
-
if (e) return { "padding-left": e };
|
|
428
|
-
}
|
|
429
|
-
if (u = e.match(/^-?m-(.+)$/)) {
|
|
430
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
|
|
431
|
-
if (n) return { margin: t && n !== "0" ? `-${n}` : n };
|
|
432
|
-
}
|
|
433
|
-
if (u = e.match(/^-?mx-(.+)$/)) {
|
|
434
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
|
|
435
|
-
if (n) {
|
|
436
|
-
let e = t && n !== "0" ? `-${n}` : n;
|
|
437
|
-
return {
|
|
438
|
-
"margin-left": e,
|
|
439
|
-
"margin-right": e
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
if (u = e.match(/^-?my-(.+)$/)) {
|
|
444
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
|
|
445
|
-
if (n) {
|
|
446
|
-
let e = t && n !== "0" ? `-${n}` : n;
|
|
447
|
-
return {
|
|
448
|
-
"margin-top": e,
|
|
449
|
-
"margin-bottom": e
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (u = e.match(/^-?mt-(.+)$/)) {
|
|
454
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
|
|
455
|
-
if (n) return { "margin-top": t && n !== "0" ? `-${n}` : n };
|
|
456
|
-
}
|
|
457
|
-
if (u = e.match(/^-?mr-(.+)$/)) {
|
|
458
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
|
|
459
|
-
if (n) return { "margin-right": t && n !== "0" ? `-${n}` : n };
|
|
460
|
-
}
|
|
461
|
-
if (u = e.match(/^-?mb-(.+)$/)) {
|
|
462
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
|
|
463
|
-
if (n) return { "margin-bottom": t && n !== "0" ? `-${n}` : n };
|
|
464
|
-
}
|
|
465
|
-
if (u = e.match(/^-?ml-(.+)$/)) {
|
|
466
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? N(u[1]);
|
|
467
|
-
if (n) return { "margin-left": t && n !== "0" ? `-${n}` : n };
|
|
468
|
-
}
|
|
469
|
-
if (e === "mx-auto") return {
|
|
470
|
-
"margin-left": "auto",
|
|
471
|
-
"margin-right": "auto"
|
|
472
|
-
};
|
|
473
|
-
if (e === "my-auto") return {
|
|
474
|
-
"margin-top": "auto",
|
|
475
|
-
"margin-bottom": "auto"
|
|
476
|
-
};
|
|
477
|
-
if (u = e.match(/^gap-(.+)$/)) {
|
|
478
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
479
|
-
if (e) return { gap: e };
|
|
480
|
-
}
|
|
481
|
-
if (u = e.match(/^gap-x-(.+)$/)) {
|
|
482
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
483
|
-
if (e) return { "column-gap": e };
|
|
484
|
-
}
|
|
485
|
-
if (u = e.match(/^gap-y-(.+)$/)) {
|
|
486
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
487
|
-
if (e) return { "row-gap": e };
|
|
488
|
-
}
|
|
489
|
-
if (u = e.match(/^w-(.+)$/)) {
|
|
490
|
-
let e = u[1], t = h[e] ?? _[e] ?? N(e);
|
|
491
|
-
if (t) return { width: t };
|
|
492
|
-
}
|
|
493
|
-
if (u = e.match(/^min-w-(.+)$/)) {
|
|
494
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
495
|
-
if (e) return { "min-width": e };
|
|
496
|
-
}
|
|
497
|
-
if (u = e.match(/^max-w-(.+)$/)) {
|
|
498
|
-
let e = {
|
|
499
|
-
none: "none",
|
|
500
|
-
xs: "20rem",
|
|
501
|
-
sm: "24rem",
|
|
502
|
-
md: "28rem",
|
|
503
|
-
lg: "32rem",
|
|
504
|
-
xl: "36rem",
|
|
505
|
-
"2xl": "42rem",
|
|
506
|
-
"3xl": "48rem",
|
|
507
|
-
"4xl": "56rem",
|
|
508
|
-
"5xl": "64rem",
|
|
509
|
-
"6xl": "72rem",
|
|
510
|
-
"7xl": "80rem",
|
|
511
|
-
full: "100%",
|
|
512
|
-
screen: "100vw",
|
|
513
|
-
min: "min-content",
|
|
514
|
-
max: "max-content",
|
|
515
|
-
fit: "fit-content"
|
|
516
|
-
}[u[1]] ?? h[u[1]] ?? N(u[1]);
|
|
517
|
-
if (e) return { "max-width": e };
|
|
518
|
-
}
|
|
519
|
-
if (u = e.match(/^h-(.+)$/)) {
|
|
520
|
-
let e = u[1], t = g[e] ?? _[e] ?? N(e);
|
|
521
|
-
if (t) return { height: t };
|
|
522
|
-
}
|
|
523
|
-
if (u = e.match(/^min-h-(.+)$/)) {
|
|
524
|
-
let e = {
|
|
525
|
-
0: "0",
|
|
526
|
-
full: "100%",
|
|
527
|
-
screen: "100vh",
|
|
528
|
-
svh: "100svh",
|
|
529
|
-
dvh: "100dvh"
|
|
530
|
-
}[u[1]] ?? h[u[1]] ?? N(u[1]);
|
|
531
|
-
if (e) return { "min-height": e };
|
|
532
|
-
}
|
|
533
|
-
if (u = e.match(/^max-h-(.+)$/)) {
|
|
534
|
-
let e = g[u[1]] ?? N(u[1]);
|
|
535
|
-
if (e) return { "max-height": e };
|
|
536
|
-
}
|
|
537
|
-
if (u = e.match(/^size-(.+)$/)) {
|
|
538
|
-
let e = h[u[1]] ?? _[u[1]] ?? N(u[1]);
|
|
539
|
-
if (e) return {
|
|
540
|
-
width: e,
|
|
541
|
-
height: e
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
if (u = e.match(/^text-(xs|sm|base|lg|[2-9]xl|\d+xl)$/)) {
|
|
545
|
-
let [e, t] = b[u[1]] ?? ["1rem", "1.5rem"];
|
|
546
|
-
return {
|
|
547
|
-
"font-size": e,
|
|
548
|
-
"line-height": t
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
if (u = e.match(/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black|\d+)$/)) return { "font-weight": x[u[1]] ?? u[1] };
|
|
552
|
-
if (u = e.match(/^leading-(.+)$/)) {
|
|
553
|
-
let e = S[u[1]] ?? N(u[1]);
|
|
554
|
-
if (e) return { "line-height": e };
|
|
555
|
-
}
|
|
556
|
-
if (u = e.match(/^tracking-(.+)$/)) {
|
|
557
|
-
let e = C[u[1]] ?? N(u[1]);
|
|
558
|
-
if (e) return { "letter-spacing": e };
|
|
559
|
-
}
|
|
560
|
-
let d = {
|
|
561
|
-
"text-left": "left",
|
|
562
|
-
"text-center": "center",
|
|
563
|
-
"text-right": "right",
|
|
564
|
-
"text-justify": "justify",
|
|
565
|
-
"text-start": "start",
|
|
566
|
-
"text-end": "end"
|
|
567
|
-
};
|
|
568
|
-
if (d[e]) return { "text-align": d[e] };
|
|
569
|
-
if (e === "italic") return { "font-style": "italic" };
|
|
570
|
-
if (e === "not-italic") return { "font-style": "normal" };
|
|
571
|
-
if (e === "uppercase") return { "text-transform": "uppercase" };
|
|
572
|
-
if (e === "lowercase") return { "text-transform": "lowercase" };
|
|
573
|
-
if (e === "capitalize") return { "text-transform": "capitalize" };
|
|
574
|
-
if (e === "normal-case") return { "text-transform": "none" };
|
|
575
|
-
if (e === "underline") return { "text-decoration-line": "underline" };
|
|
576
|
-
if (e === "overline") return { "text-decoration-line": "overline" };
|
|
577
|
-
if (e === "line-through") return { "text-decoration-line": "line-through" };
|
|
578
|
-
if (e === "no-underline") return { "text-decoration-line": "none" };
|
|
579
|
-
if (e === "truncate") return {
|
|
580
|
-
overflow: "hidden",
|
|
581
|
-
"text-overflow": "ellipsis",
|
|
582
|
-
"white-space": "nowrap"
|
|
583
|
-
};
|
|
584
|
-
if (e === "text-ellipsis") return { "text-overflow": "ellipsis" };
|
|
585
|
-
if (e === "text-clip") return { "text-overflow": "clip" };
|
|
586
|
-
if (e === "whitespace-normal") return { "white-space": "normal" };
|
|
587
|
-
if (e === "whitespace-nowrap") return { "white-space": "nowrap" };
|
|
588
|
-
if (e === "whitespace-pre") return { "white-space": "pre" };
|
|
589
|
-
if (e === "whitespace-pre-wrap") return { "white-space": "pre-wrap" };
|
|
590
|
-
if (e === "whitespace-pre-line") return { "white-space": "pre-line" };
|
|
591
|
-
if (e === "break-words") return { "overflow-wrap": "break-word" };
|
|
592
|
-
if (e === "break-all") return { "word-break": "break-all" };
|
|
593
|
-
if (e === "break-keep") return { "word-break": "keep-all" };
|
|
594
|
-
if (e === "font-mono") return { "font-family": "var(--tkx-font-mono,monospace)" };
|
|
595
|
-
if (e === "font-sans") return { "font-family": "var(--tkx-font-family,system-ui,sans-serif)" };
|
|
596
|
-
if (e === "font-serif") return { "font-family": "ui-serif,Georgia,serif" };
|
|
597
|
-
if (e === "antialiased") return {
|
|
598
|
-
"-webkit-font-smoothing": "antialiased",
|
|
599
|
-
"-moz-osx-font-smoothing": "grayscale"
|
|
600
|
-
};
|
|
601
|
-
if (u = e.match(/^indent-(.+)$/)) {
|
|
602
|
-
let e = h[u[1]] ?? N(u[1]);
|
|
603
|
-
if (e) return { "text-indent": e };
|
|
604
|
-
}
|
|
605
|
-
if (u = e.match(/^line-clamp-(\d+)$/)) return {
|
|
606
|
-
overflow: "hidden",
|
|
607
|
-
display: "-webkit-box",
|
|
608
|
-
"-webkit-line-clamp": u[1],
|
|
609
|
-
"-webkit-box-orient": "vertical"
|
|
610
|
-
};
|
|
611
|
-
if (u = e.match(/^text-(.+)$/)) {
|
|
612
|
-
let [e, t] = u[1].split("/"), n = P(e);
|
|
613
|
-
if (![
|
|
614
|
-
"left",
|
|
615
|
-
"center",
|
|
616
|
-
"right",
|
|
617
|
-
"justify",
|
|
618
|
-
"start",
|
|
619
|
-
"end",
|
|
620
|
-
"xs",
|
|
621
|
-
"sm",
|
|
622
|
-
"base",
|
|
623
|
-
"lg",
|
|
624
|
-
"xl",
|
|
625
|
-
"2xl",
|
|
626
|
-
"3xl",
|
|
627
|
-
"4xl",
|
|
628
|
-
"5xl",
|
|
629
|
-
"6xl",
|
|
630
|
-
"7xl",
|
|
631
|
-
"8xl",
|
|
632
|
-
"9xl"
|
|
633
|
-
].includes(e)) {
|
|
634
|
-
if (t) {
|
|
635
|
-
let e = parseInt(t) / 100;
|
|
636
|
-
return {
|
|
637
|
-
color: n,
|
|
638
|
-
opacity: String(e)
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
return { color: n };
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
if (u = e.match(/^bg-(.+)$/)) {
|
|
645
|
-
let [e, t] = u[1].split("/"), n = P(e);
|
|
646
|
-
return t ? {
|
|
647
|
-
"background-color": n,
|
|
648
|
-
opacity: String(parseInt(t) / 100)
|
|
649
|
-
} : e === "none" ? { background: "none" } : { "background-color": n };
|
|
650
|
-
}
|
|
651
|
-
if (u = e.match(/^border-color-(.+)$/)) return { "border-color": P(u[1]) };
|
|
652
|
-
if (u = e.match(/^fill-(.+)$/)) return { fill: P(u[1]) };
|
|
653
|
-
if (u = e.match(/^stroke-(.+)$/)) return { stroke: P(u[1]) };
|
|
654
|
-
if (u = e.match(/^shadow-color-(.+)$/)) return { "--tkx-shadow-color": P(u[1]) };
|
|
655
|
-
if (u = e.match(/^ring-color-(.+)$/)) return { "--tkx-ring-color": P(u[1]) };
|
|
656
|
-
if (u = e.match(/^accent-(.+)$/)) return { "accent-color": P(u[1]) };
|
|
657
|
-
if (u = e.match(/^caret-(.+)$/)) return { "caret-color": P(u[1]) };
|
|
658
|
-
if (u = e.match(/^outline-color-(.+)$/)) return { "outline-color": P(u[1]) };
|
|
659
|
-
if (e === "border") return { "border-width": "1px" };
|
|
660
|
-
if (u = e.match(/^border-(\d+)$/)) return { "border-width": `${u[1]}px` };
|
|
661
|
-
if (e === "border-t") return { "border-top-width": "1px" };
|
|
662
|
-
if (u = e.match(/^border-t-(\d+)$/)) return { "border-top-width": `${u[1]}px` };
|
|
663
|
-
if (e === "border-r") return { "border-right-width": "1px" };
|
|
664
|
-
if (u = e.match(/^border-r-(\d+)$/)) return { "border-right-width": `${u[1]}px` };
|
|
665
|
-
if (e === "border-b") return { "border-bottom-width": "1px" };
|
|
666
|
-
if (u = e.match(/^border-b-(\d+)$/)) return { "border-bottom-width": `${u[1]}px` };
|
|
667
|
-
if (e === "border-l") return { "border-left-width": "1px" };
|
|
668
|
-
if (u = e.match(/^border-l-(\d+)$/)) return { "border-left-width": `${u[1]}px` };
|
|
669
|
-
if (e === "border-x") return {
|
|
670
|
-
"border-left-width": "1px",
|
|
671
|
-
"border-right-width": "1px"
|
|
672
|
-
};
|
|
673
|
-
if (e === "border-y") return {
|
|
674
|
-
"border-top-width": "1px",
|
|
675
|
-
"border-bottom-width": "1px"
|
|
676
|
-
};
|
|
677
|
-
if (e === "border-none") return { "border-style": "none" };
|
|
678
|
-
if (e === "border-solid") return { "border-style": "solid" };
|
|
679
|
-
if (e === "border-dashed") return { "border-style": "dashed" };
|
|
680
|
-
if (e === "border-dotted") return { "border-style": "dotted" };
|
|
681
|
-
if (e === "border-double") return { "border-style": "double" };
|
|
682
|
-
if ((u = e.match(/^border-([a-zA-Z].*)$/)) && E.has(u[1])) return { "border-color": `var(--tkx-${u[1]})` };
|
|
683
|
-
if (u = e.match(/^border-\[(.+)]$/)) return { "border-color": u[1] };
|
|
684
|
-
if (e === "border-0") return { "border-width": "0" };
|
|
685
|
-
if (e === "rounded") return { "border-radius": v[""] };
|
|
686
|
-
if (u = e.match(/^rounded-(none|sm|md|lg|xl|2xl|3xl|full|\[.+])$/)) return { "border-radius": v[u[1]] ?? N(u[1]) ?? u[1] };
|
|
687
|
-
if (u = e.match(/^rounded-(t|r|b|l|tl|tr|br|bl)(?:-(none|sm|md|lg|xl|2xl|3xl|full))?$/)) {
|
|
688
|
-
let e = u[1], t = v[u[2] ?? ""] ?? v[""];
|
|
689
|
-
return {
|
|
690
|
-
t: {
|
|
691
|
-
"border-top-left-radius": t,
|
|
692
|
-
"border-top-right-radius": t
|
|
693
|
-
},
|
|
694
|
-
r: {
|
|
695
|
-
"border-top-right-radius": t,
|
|
696
|
-
"border-bottom-right-radius": t
|
|
697
|
-
},
|
|
698
|
-
b: {
|
|
699
|
-
"border-bottom-left-radius": t,
|
|
700
|
-
"border-bottom-right-radius": t
|
|
701
|
-
},
|
|
702
|
-
l: {
|
|
703
|
-
"border-top-left-radius": t,
|
|
704
|
-
"border-bottom-left-radius": t
|
|
705
|
-
},
|
|
706
|
-
tl: { "border-top-left-radius": t },
|
|
707
|
-
tr: { "border-top-right-radius": t },
|
|
708
|
-
br: { "border-bottom-right-radius": t },
|
|
709
|
-
bl: { "border-bottom-left-radius": t }
|
|
710
|
-
}[e] ?? {};
|
|
711
|
-
}
|
|
712
|
-
let f = {
|
|
713
|
-
0: "0",
|
|
714
|
-
1: "1px",
|
|
715
|
-
2: "2px",
|
|
716
|
-
ring: "3px",
|
|
717
|
-
4: "4px",
|
|
718
|
-
8: "8px"
|
|
719
|
-
};
|
|
720
|
-
if (e === "ring") return { "box-shadow": "0 0 0 3px var(--tkx-ring-color,var(--tkx-primary))" };
|
|
721
|
-
if ((u = e.match(/^ring-(\d+)$/)) && f[u[1]]) return { "box-shadow": `0 0 0 ${f[u[1]]} var(--tkx-ring-color,var(--tkx-primary))` };
|
|
722
|
-
if (e === "ring-inset") return { "--tkx-ring-offset": "inset" };
|
|
723
|
-
if (u = e.match(/^ring-offset-(\d+)$/)) return {
|
|
724
|
-
"--tkx-ring-offset-width": `${u[1]}px`,
|
|
725
|
-
"box-shadow": `0 0 0 ${u[1]}px var(--tkx-bg)`
|
|
726
|
-
};
|
|
727
|
-
if (e === "shadow") return { "box-shadow": y[""] };
|
|
728
|
-
if (u = e.match(/^shadow-(sm|md|lg|xl|2xl|inner|none)$/)) return { "box-shadow": y[u[1]] };
|
|
729
|
-
if (u = e.match(/^opacity-(\d+)$/)) {
|
|
730
|
-
let e = T[u[1]];
|
|
731
|
-
if (e !== void 0) return { opacity: e };
|
|
732
|
-
}
|
|
733
|
-
if (e === "bg-none") return { background: "none" };
|
|
734
|
-
let p = {
|
|
735
|
-
"bg-auto": "auto",
|
|
736
|
-
"bg-cover": "cover",
|
|
737
|
-
"bg-contain": "contain"
|
|
738
|
-
};
|
|
739
|
-
if (p[e]) return { "background-size": p[e] };
|
|
740
|
-
let m = {
|
|
741
|
-
"bg-center": "center",
|
|
742
|
-
"bg-top": "top",
|
|
743
|
-
"bg-bottom": "bottom",
|
|
744
|
-
"bg-left": "left",
|
|
745
|
-
"bg-right": "right"
|
|
746
|
-
};
|
|
747
|
-
if (m[e]) return { "background-position": m[e] };
|
|
748
|
-
let D = {
|
|
749
|
-
"bg-repeat": "repeat",
|
|
750
|
-
"bg-no-repeat": "no-repeat",
|
|
751
|
-
"bg-repeat-x": "repeat-x",
|
|
752
|
-
"bg-repeat-y": "repeat-y"
|
|
753
|
-
};
|
|
754
|
-
if (D[e]) return { "background-repeat": D[e] };
|
|
755
|
-
if (e === "backdrop-blur") return { "backdrop-filter": `blur(${w[""]})` };
|
|
756
|
-
if (u = e.match(/^backdrop-blur-(none|sm|md|lg|xl|2xl|3xl)$/)) return { "backdrop-filter": `blur(${w[u[1]]})` };
|
|
757
|
-
if (e === "blur") return { filter: `blur(${w[""]})` };
|
|
758
|
-
if (u = e.match(/^blur-(none|sm|md|lg|xl|2xl|3xl)$/)) return { filter: `blur(${w[u[1]]})` };
|
|
759
|
-
if (e === "grayscale") return { filter: "grayscale(100%)" };
|
|
760
|
-
if (e === "grayscale-0") return { filter: "grayscale(0)" };
|
|
761
|
-
if (e === "invert") return { filter: "invert(100%)" };
|
|
762
|
-
if (e === "invert-0") return { filter: "invert(0)" };
|
|
763
|
-
let O = {
|
|
764
|
-
static: "static",
|
|
765
|
-
relative: "relative",
|
|
766
|
-
absolute: "absolute",
|
|
767
|
-
fixed: "fixed",
|
|
768
|
-
sticky: "sticky"
|
|
769
|
-
};
|
|
770
|
-
if (O[e]) return { position: O[e] };
|
|
771
|
-
if (e === "inset-0") return {
|
|
772
|
-
top: "0",
|
|
773
|
-
right: "0",
|
|
774
|
-
bottom: "0",
|
|
775
|
-
left: "0"
|
|
776
|
-
};
|
|
777
|
-
if (e === "inset-auto") return {
|
|
778
|
-
top: "auto",
|
|
779
|
-
right: "auto",
|
|
780
|
-
bottom: "auto",
|
|
781
|
-
left: "auto"
|
|
782
|
-
};
|
|
783
|
-
if (e === "inset-full") return {
|
|
784
|
-
top: "100%",
|
|
785
|
-
right: "100%",
|
|
786
|
-
bottom: "100%",
|
|
787
|
-
left: "100%"
|
|
788
|
-
};
|
|
789
|
-
if (e === "inset-x-0") return {
|
|
790
|
-
left: "0",
|
|
791
|
-
right: "0"
|
|
792
|
-
};
|
|
793
|
-
if (e === "inset-y-0") return {
|
|
794
|
-
top: "0",
|
|
795
|
-
bottom: "0"
|
|
796
|
-
};
|
|
797
|
-
if (u = e.match(/^-?top-(.+)$/)) {
|
|
798
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
|
|
799
|
-
if (n) return { top: t && n !== "0" ? `-${n}` : n };
|
|
800
|
-
}
|
|
801
|
-
if (u = e.match(/^-?right-(.+)$/)) {
|
|
802
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
|
|
803
|
-
if (n) return { right: t && n !== "0" ? `-${n}` : n };
|
|
804
|
-
}
|
|
805
|
-
if (u = e.match(/^-?bottom-(.+)$/)) {
|
|
806
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
|
|
807
|
-
if (n) return { bottom: t && n !== "0" ? `-${n}` : n };
|
|
808
|
-
}
|
|
809
|
-
if (u = e.match(/^-?left-(.+)$/)) {
|
|
810
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
|
|
811
|
-
if (n) return { left: t && n !== "0" ? `-${n}` : n };
|
|
812
|
-
}
|
|
813
|
-
let k = {
|
|
814
|
-
0: "0",
|
|
815
|
-
10: "10",
|
|
816
|
-
20: "20",
|
|
817
|
-
30: "30",
|
|
818
|
-
40: "40",
|
|
819
|
-
50: "50",
|
|
820
|
-
100: "100",
|
|
821
|
-
1e3: "1000",
|
|
822
|
-
9e3: "9000",
|
|
823
|
-
auto: "auto"
|
|
824
|
-
};
|
|
825
|
-
if (u = e.match(/^z-(.+)$/)) {
|
|
826
|
-
let e = k[u[1]] ?? N(u[1]);
|
|
827
|
-
if (e) return { "z-index": e };
|
|
828
|
-
}
|
|
829
|
-
let A = {
|
|
830
|
-
"overflow-auto": "auto",
|
|
831
|
-
"overflow-hidden": "hidden",
|
|
832
|
-
"overflow-visible": "visible",
|
|
833
|
-
"overflow-scroll": "scroll",
|
|
834
|
-
"overflow-clip": "clip"
|
|
835
|
-
};
|
|
836
|
-
if (A[e]) return { overflow: A[e] };
|
|
837
|
-
if (u = e.match(/^overflow-(x|y)-(auto|hidden|visible|scroll|clip)$/)) return { [`overflow-${u[1]}`]: u[2] };
|
|
838
|
-
if (e === "scrollbar-hide") return {
|
|
839
|
-
"-ms-overflow-style": "none",
|
|
840
|
-
"scrollbar-width": "none"
|
|
841
|
-
};
|
|
842
|
-
if (e === "visible") return { visibility: "visible" };
|
|
843
|
-
if (e === "invisible") return { visibility: "hidden" };
|
|
844
|
-
if (e === "collapse") return { visibility: "collapse" };
|
|
845
|
-
let F = {
|
|
846
|
-
"cursor-auto": "auto",
|
|
847
|
-
"cursor-default": "default",
|
|
848
|
-
"cursor-pointer": "pointer",
|
|
849
|
-
"cursor-wait": "wait",
|
|
850
|
-
"cursor-text": "text",
|
|
851
|
-
"cursor-move": "move",
|
|
852
|
-
"cursor-help": "help",
|
|
853
|
-
"cursor-not-allowed": "not-allowed",
|
|
854
|
-
"cursor-none": "none",
|
|
855
|
-
"cursor-grab": "grab",
|
|
856
|
-
"cursor-grabbing": "grabbing",
|
|
857
|
-
"cursor-zoom-in": "zoom-in",
|
|
858
|
-
"cursor-zoom-out": "zoom-out",
|
|
859
|
-
"cursor-crosshair": "crosshair"
|
|
860
|
-
};
|
|
861
|
-
if (F[e]) return { cursor: F[e] };
|
|
862
|
-
if (e === "select-none") return { "user-select": "none" };
|
|
863
|
-
if (e === "select-text") return { "user-select": "text" };
|
|
864
|
-
if (e === "select-all") return { "user-select": "all" };
|
|
865
|
-
if (e === "select-auto") return { "user-select": "auto" };
|
|
866
|
-
if (e === "pointer-events-none") return { "pointer-events": "none" };
|
|
867
|
-
if (e === "pointer-events-auto") return { "pointer-events": "auto" };
|
|
868
|
-
let I = {
|
|
869
|
-
0: "0",
|
|
870
|
-
50: ".5",
|
|
871
|
-
75: ".75",
|
|
872
|
-
90: ".9",
|
|
873
|
-
95: ".95",
|
|
874
|
-
100: "1",
|
|
875
|
-
105: "1.05",
|
|
876
|
-
110: "1.1",
|
|
877
|
-
125: "1.25",
|
|
878
|
-
150: "1.5"
|
|
879
|
-
};
|
|
880
|
-
if (u = e.match(/^scale-(.+)$/)) {
|
|
881
|
-
let e = I[u[1]] ?? N(u[1]);
|
|
882
|
-
if (e) return { transform: `scale(${e})` };
|
|
883
|
-
}
|
|
884
|
-
if (u = e.match(/^scale-x-(.+)$/)) {
|
|
885
|
-
let e = I[u[1]] ?? N(u[1]);
|
|
886
|
-
if (e) return { transform: `scaleX(${e})` };
|
|
887
|
-
}
|
|
888
|
-
if (u = e.match(/^scale-y-(.+)$/)) {
|
|
889
|
-
let e = I[u[1]] ?? N(u[1]);
|
|
890
|
-
if (e) return { transform: `scaleY(${e})` };
|
|
891
|
-
}
|
|
892
|
-
let L = {
|
|
893
|
-
0: "0deg",
|
|
894
|
-
1: "1deg",
|
|
895
|
-
2: "2deg",
|
|
896
|
-
3: "3deg",
|
|
897
|
-
6: "6deg",
|
|
898
|
-
12: "12deg",
|
|
899
|
-
45: "45deg",
|
|
900
|
-
90: "90deg",
|
|
901
|
-
180: "180deg"
|
|
902
|
-
};
|
|
903
|
-
if (u = e.match(/^-?rotate-(.+)$/)) {
|
|
904
|
-
let t = e.startsWith("-"), n = L[u[1]] ?? N(u[1]);
|
|
905
|
-
if (n) return { transform: t ? `rotate(-${n})` : `rotate(${n})` };
|
|
906
|
-
}
|
|
907
|
-
if (u = e.match(/^-?translate-x-(.+)$/)) {
|
|
908
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
|
|
909
|
-
if (n) return { transform: `translateX(${t && n !== "0" ? `-${n}` : n})` };
|
|
910
|
-
}
|
|
911
|
-
if (u = e.match(/^-?translate-y-(.+)$/)) {
|
|
912
|
-
let t = e.startsWith("-"), n = h[u[1]] ?? _[u[1]] ?? N(u[1]);
|
|
913
|
-
if (n) return { transform: `translateY(${t && n !== "0" ? `-${n}` : n})` };
|
|
914
|
-
}
|
|
915
|
-
if (u = e.match(/^-?skew-x-(.+)$/)) {
|
|
916
|
-
let t = e.startsWith("-"), n = N(u[1]) ?? `${u[1]}deg`;
|
|
917
|
-
return { transform: t ? `skewX(-${n})` : `skewX(${n})` };
|
|
918
|
-
}
|
|
919
|
-
if (u = e.match(/^-?skew-y-(.+)$/)) {
|
|
920
|
-
let t = e.startsWith("-"), n = N(u[1]) ?? `${u[1]}deg`;
|
|
921
|
-
return { transform: t ? `skewY(-${n})` : `skewY(${n})` };
|
|
922
|
-
}
|
|
923
|
-
let R = {
|
|
924
|
-
"origin-center": "center",
|
|
925
|
-
"origin-top": "top",
|
|
926
|
-
"origin-top-right": "top right",
|
|
927
|
-
"origin-right": "right",
|
|
928
|
-
"origin-bottom-right": "bottom right",
|
|
929
|
-
"origin-bottom": "bottom",
|
|
930
|
-
"origin-bottom-left": "bottom left",
|
|
931
|
-
"origin-left": "left",
|
|
932
|
-
"origin-top-left": "top left"
|
|
933
|
-
};
|
|
934
|
-
if (R[e]) return { "transform-origin": R[e] };
|
|
935
|
-
let z = {
|
|
936
|
-
transition: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
|
|
937
|
-
"transition-all": "all",
|
|
938
|
-
"transition-colors": "color,background-color,border-color,text-decoration-color,fill,stroke",
|
|
939
|
-
"transition-opacity": "opacity",
|
|
940
|
-
"transition-shadow": "box-shadow",
|
|
941
|
-
"transition-transform": "transform",
|
|
942
|
-
"transition-none": "none"
|
|
943
|
-
};
|
|
944
|
-
if (z[e]) return {
|
|
945
|
-
"transition-property": z[e],
|
|
946
|
-
"transition-timing-function": "cubic-bezier(0.4,0,0.2,1)",
|
|
947
|
-
"transition-duration": "150ms"
|
|
948
|
-
};
|
|
949
|
-
let B = {
|
|
950
|
-
75: "75ms",
|
|
951
|
-
100: "100ms",
|
|
952
|
-
150: "150ms",
|
|
953
|
-
200: "200ms",
|
|
954
|
-
300: "300ms",
|
|
955
|
-
500: "500ms",
|
|
956
|
-
700: "700ms",
|
|
957
|
-
1e3: "1000ms"
|
|
958
|
-
};
|
|
959
|
-
if (u = e.match(/^duration-(.+)$/)) {
|
|
960
|
-
let e = B[u[1]] ?? N(u[1]);
|
|
961
|
-
if (e) return { "transition-duration": e };
|
|
962
|
-
}
|
|
963
|
-
if (u = e.match(/^delay-(.+)$/)) {
|
|
964
|
-
let e = B[u[1]] ?? N(u[1]);
|
|
965
|
-
if (e) return { "transition-delay": e };
|
|
966
|
-
}
|
|
967
|
-
let V = {
|
|
968
|
-
"ease-linear": "linear",
|
|
969
|
-
"ease-in": "cubic-bezier(0.4,0,1,1)",
|
|
970
|
-
"ease-out": "cubic-bezier(0,0,0.2,1)",
|
|
971
|
-
"ease-in-out": "cubic-bezier(0.4,0,0.2,1)"
|
|
972
|
-
};
|
|
973
|
-
if (V[e]) return { "transition-timing-function": V[e] };
|
|
974
|
-
let H = {
|
|
975
|
-
"animate-none": "none",
|
|
976
|
-
"animate-spin": "tkx-spin 1s linear infinite",
|
|
977
|
-
"animate-ping": "tkx-ping 1s cubic-bezier(0,0,0.2,1) infinite",
|
|
978
|
-
"animate-pulse": "tkx-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",
|
|
979
|
-
"animate-bounce": "tkx-bounce 1s infinite",
|
|
980
|
-
"animate-fade-in": "tkx-fade-in 200ms ease both",
|
|
981
|
-
"animate-slide-up": "tkx-slide-up 200ms ease both",
|
|
982
|
-
"animate-shimmer": "tkx-shimmer 1.5s infinite"
|
|
983
|
-
};
|
|
984
|
-
if (H[e]) return { animation: H[e] };
|
|
985
|
-
let U = {
|
|
986
|
-
"object-contain": "contain",
|
|
987
|
-
"object-cover": "cover",
|
|
988
|
-
"object-fill": "fill",
|
|
989
|
-
"object-none": "none",
|
|
990
|
-
"object-scale-down": "scale-down"
|
|
991
|
-
};
|
|
992
|
-
return U[e] ? { "object-fit": U[e] } : e === "aspect-square" ? { "aspect-ratio": "1 / 1" } : e === "aspect-video" ? { "aspect-ratio": "16 / 9" } : e === "aspect-auto" ? { "aspect-ratio": "auto" } : (u = e.match(/^aspect-\[(.+)]$/)) ? { "aspect-ratio": u[1] } : e === "list-none" ? { "list-style-type": "none" } : e === "list-disc" ? { "list-style-type": "disc" } : e === "list-decimal" ? { "list-style-type": "decimal" } : e === "list-inside" ? { "list-style-position": "inside" } : e === "list-outside" ? { "list-style-position": "outside" } : (u = e.match(/^columns-(\d+)$/)) ? { columns: u[1] } : e === "resize" ? { resize: "both" } : e === "resize-none" ? { resize: "none" } : e === "resize-x" ? { resize: "horizontal" } : e === "resize-y" ? { resize: "vertical" } : e === "sr-only" ? {
|
|
993
|
-
position: "absolute",
|
|
994
|
-
width: "1px",
|
|
995
|
-
height: "1px",
|
|
996
|
-
padding: "0",
|
|
997
|
-
margin: "-1px",
|
|
998
|
-
overflow: "hidden",
|
|
999
|
-
clip: "rect(0,0,0,0)",
|
|
1000
|
-
"white-space": "nowrap",
|
|
1001
|
-
border: "0"
|
|
1002
|
-
} : e === "not-sr-only" ? {
|
|
1003
|
-
position: "static",
|
|
1004
|
-
width: "auto",
|
|
1005
|
-
height: "auto",
|
|
1006
|
-
padding: "0",
|
|
1007
|
-
margin: "0",
|
|
1008
|
-
overflow: "visible",
|
|
1009
|
-
clip: "auto",
|
|
1010
|
-
"white-space": "normal"
|
|
1011
|
-
} : e === "focus-ring" ? {
|
|
1012
|
-
outline: "2px solid var(--tkx-primary)",
|
|
1013
|
-
"outline-offset": "2px",
|
|
1014
|
-
"border-radius": "2px"
|
|
1015
|
-
} : e === "appearance-none" ? { appearance: "none" } : e === "outline-none" ? { outline: "none" } : e === "outline" ? {
|
|
1016
|
-
outline: "2px solid currentColor",
|
|
1017
|
-
"outline-offset": "2px"
|
|
1018
|
-
} : e === "float-left" ? { float: "left" } : e === "float-right" ? { float: "right" } : e === "float-none" ? { float: "none" } : e === "clear-both" ? { clear: "both" } : e === "isolate" ? { isolation: "isolate" } : e === "isolation-auto" ? { isolation: "auto" } : (u = e.match(/^will-change-(.+)$/)) ? { "will-change": u[1] } : e === "touch-manipulation" ? { "touch-action": "manipulation" } : e === "touch-none" ? { "touch-action": "none" } : e === "touch-pan-x" ? { "touch-action": "pan-x" } : e === "touch-pan-y" ? { "touch-action": "pan-y" } : e === "scroll-smooth" ? { "scroll-behavior": "smooth" } : e === "scroll-auto" ? { "scroll-behavior": "auto" } : (u = e.match(/^\[(--[a-zA-Z0-9-]+):(.+)]$/)) ? { [u[1]]: u[2] } : $(e) || null;
|
|
1019
|
-
}
|
|
1020
|
-
function I(e) {
|
|
1021
|
-
let t = 0, n = -1;
|
|
1022
|
-
for (let r = 0; r < e.length; r++) if (e[r] === "[") t++;
|
|
1023
|
-
else if (e[r] === "]") t--;
|
|
1024
|
-
else if (e[r] === ":" && t === 0) {
|
|
1025
|
-
n = r;
|
|
1026
|
-
break;
|
|
1027
|
-
}
|
|
1028
|
-
return n === -1 ? {
|
|
1029
|
-
variant: null,
|
|
1030
|
-
utility: e
|
|
1031
|
-
} : {
|
|
1032
|
-
variant: e.slice(0, n),
|
|
1033
|
-
utility: e.slice(n + 1)
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
function L(e, t) {
|
|
1037
|
-
for (let [n, r] of Object.entries(t)) e[n] = r;
|
|
1038
|
-
}
|
|
1039
|
-
function R(e) {
|
|
1040
|
-
return Object.entries(e).map(([e, t]) => `${e}:${t}`).join(";");
|
|
1041
|
-
}
|
|
1042
|
-
var z = /* @__PURE__ */ new Map(), B = null, V = null;
|
|
1043
|
-
function H() {
|
|
1044
|
-
return (!B || !B.isConnected) && (B = document.getElementById("tkx-atomic"), B || (B = document.createElement("style"), B.id = "tkx-atomic", document.head.appendChild(B))), B;
|
|
1045
|
-
}
|
|
1046
|
-
function U() {
|
|
1047
|
-
if (V) return V;
|
|
1048
|
-
try {
|
|
1049
|
-
let e = new CSSStyleSheet();
|
|
1050
|
-
return document.adoptedStyleSheets = [...document.adoptedStyleSheets, e], V = e, e;
|
|
1051
|
-
} catch {
|
|
1052
|
-
return null;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
function W(e, t) {
|
|
1056
|
-
if (z.has(e) || (z.set(e, t), typeof document > "u")) return;
|
|
1057
|
-
let n = U();
|
|
1058
|
-
if (n) {
|
|
1059
|
-
let e = G(t);
|
|
1060
|
-
for (let t of e) try {
|
|
1061
|
-
n.insertRule(t, n.cssRules.length);
|
|
1062
|
-
} catch {
|
|
1063
|
-
H().textContent += t + "\n";
|
|
1064
|
-
}
|
|
1065
|
-
} else H().textContent += t + "\n";
|
|
1066
|
-
}
|
|
1067
|
-
function G(e) {
|
|
1068
|
-
let t = [], n = 0, r = 0;
|
|
1069
|
-
for (let i = 0; i < e.length; i++) if (e[i] === "{") n++;
|
|
1070
|
-
else if (e[i] === "}" && (n--, n === 0)) {
|
|
1071
|
-
let n = e.slice(r, i + 1).trim();
|
|
1072
|
-
n && t.push(n), r = i + 1;
|
|
1073
|
-
}
|
|
1074
|
-
return t;
|
|
1075
|
-
}
|
|
1076
|
-
function K(e) {
|
|
1077
|
-
let t = [];
|
|
1078
|
-
for (let n of e) if (n) {
|
|
1079
|
-
if (typeof n == "string") t.push(...n.split(/\s+/).filter(Boolean));
|
|
1080
|
-
else if (Array.isArray(n)) t.push(...K(n));
|
|
1081
|
-
else if (typeof n == "object") for (let [e, r] of Object.entries(n)) r && t.push(e);
|
|
1082
|
-
}
|
|
1083
|
-
return t;
|
|
1084
|
-
}
|
|
1085
|
-
function q(...t) {
|
|
1086
|
-
let n = K(t);
|
|
1087
|
-
if (n.length === 0) return "";
|
|
1088
|
-
let r = {
|
|
1089
|
-
base: {},
|
|
1090
|
-
variants: {}
|
|
1091
|
-
};
|
|
1092
|
-
for (let e of n) {
|
|
1093
|
-
let { variant: t, utility: n } = I(e), i = F(n);
|
|
1094
|
-
i && (t ? (r.variants[t] || (r.variants[t] = {}), L(r.variants[t], i)) : L(r.base, i));
|
|
1095
|
-
}
|
|
1096
|
-
let i = [], a = R(r.base), o = e([a, ...Object.entries(r.variants).map(([e, t]) => `${e}{${R(t)}}`)].join("|")), s = `tkx-${o}`;
|
|
1097
|
-
a && i.push(`.${s}{${a}}`);
|
|
1098
|
-
for (let [e, t] of Object.entries(r.variants)) {
|
|
1099
|
-
let n = R(t);
|
|
1100
|
-
if (n) if (e.startsWith("@")) {
|
|
1101
|
-
let t = D[e.slice(1)];
|
|
1102
|
-
t && i.push(`@media(min-width:${t}){.${s}{${n}}}`);
|
|
1103
|
-
} else if (e === "motion-safe") i.push(`@media(prefers-reduced-motion:no-preference){.${s}{${n}}}`);
|
|
1104
|
-
else if (e === "motion-reduce") i.push(`@media(prefers-reduced-motion:reduce){.${s}{${n}}}`);
|
|
1105
|
-
else if (e === "contrast-more") i.push(`@media(prefers-contrast:more){.${s}{${n}}}`);
|
|
1106
|
-
else if (e === "forced-colors") i.push(`@media(forced-colors:active){.${s}{${n}}}`);
|
|
1107
|
-
else if (e === "dark") i.push(`@media(prefers-color-scheme:dark){.${s}{${n}}}`);
|
|
1108
|
-
else if (e === "print") i.push(`@media print{.${s}{${n}}}`);
|
|
1109
|
-
else if (e === "group-hover") i.push(`.group:hover .${s}{${n}}`);
|
|
1110
|
-
else if (e === "group-focus") i.push(`.group:focus-within .${s}{${n}}`);
|
|
1111
|
-
else if (e === "peer-hover") i.push(`.peer:hover~.${s}{${n}}`);
|
|
1112
|
-
else {
|
|
1113
|
-
let t = {
|
|
1114
|
-
hover: ":hover",
|
|
1115
|
-
focus: ":focus",
|
|
1116
|
-
"focus-visible": ":focus-visible",
|
|
1117
|
-
"focus-within": ":focus-within",
|
|
1118
|
-
active: ":active",
|
|
1119
|
-
disabled: ":disabled",
|
|
1120
|
-
checked: ":checked",
|
|
1121
|
-
required: ":required",
|
|
1122
|
-
valid: ":valid",
|
|
1123
|
-
invalid: ":invalid",
|
|
1124
|
-
first: ":first-child",
|
|
1125
|
-
last: ":last-child",
|
|
1126
|
-
odd: ":nth-child(odd)",
|
|
1127
|
-
even: ":nth-child(even)",
|
|
1128
|
-
"first-of-type": ":first-of-type",
|
|
1129
|
-
"last-of-type": ":last-of-type",
|
|
1130
|
-
"only-child": ":only-child",
|
|
1131
|
-
"only-of-type": ":only-of-type",
|
|
1132
|
-
empty: ":empty",
|
|
1133
|
-
visited: ":visited",
|
|
1134
|
-
target: ":target",
|
|
1135
|
-
"placeholder-shown": ":placeholder-shown",
|
|
1136
|
-
"read-only": ":read-only",
|
|
1137
|
-
before: "::before",
|
|
1138
|
-
after: "::after",
|
|
1139
|
-
placeholder: "::placeholder",
|
|
1140
|
-
selection: "::selection",
|
|
1141
|
-
"file-selector": "::file-selector-button",
|
|
1142
|
-
marker: "::marker"
|
|
1143
|
-
}[e] ?? `:${e}`;
|
|
1144
|
-
i.push(`.${s}${t}{${n}}`);
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
return i.length > 0 && W(o, i.join("")), s;
|
|
1148
|
-
}
|
|
1149
|
-
var J = q;
|
|
1150
|
-
function Y() {
|
|
1151
|
-
return Array.from(z.values()).join("\n");
|
|
1152
|
-
}
|
|
1153
|
-
function X() {
|
|
1154
|
-
z.clear(), B = null, V && typeof document < "u" && (document.adoptedStyleSheets = document.adoptedStyleSheets.filter((e) => e !== V), V = null);
|
|
1155
|
-
}
|
|
1156
|
-
function Z(...e) {
|
|
1157
|
-
return e.filter(Boolean).join(" ");
|
|
1158
|
-
}
|
|
1159
|
-
var Q = /* @__PURE__ */ new Map();
|
|
1160
|
-
function ee(e) {
|
|
1161
|
-
Q.set(e.name, e.utilities);
|
|
1162
|
-
}
|
|
1163
|
-
function te(e) {
|
|
1164
|
-
Q.delete(e);
|
|
1165
|
-
}
|
|
1166
|
-
function ne() {
|
|
1167
|
-
return Array.from(Q.keys());
|
|
1168
|
-
}
|
|
1169
|
-
function $(e) {
|
|
1170
|
-
for (let t of Q.values()) if (t[e]) return t[e];
|
|
1171
|
-
return null;
|
|
1172
|
-
}
|
|
1173
|
-
//#endregion
|
|
1174
|
-
export { q as a, te as c, d, f, p as g, o as h, $ as i, J as l, n as m, Y as n, ne as o, r as p, X as r, ee as s, Z as t, m as u };
|