@e-burgos/tucu-ui 1.1.1 → 1.5.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/1-CArqgiQa.js +1 -0
- package/1-Df9CGZha.mjs +4 -0
- package/APIReferenceSection-CHFWh_o7.mjs +142 -0
- package/APIReferenceSection-DluVuy7j.js +1 -0
- package/ActiveLinkSection-6ybcGGt2.mjs +120 -0
- package/ActiveLinkSection-eR2Tdsul.js +22 -0
- package/AdvancedColorSystemSection-B_8HoiQ3.mjs +194 -0
- package/AdvancedColorSystemSection-DKMWh-a_.js +17 -0
- package/AdvancedFeaturesSection-DbPXJd4H.js +1 -0
- package/AdvancedFeaturesSection-DpTDCRTm.js +1 -0
- package/AdvancedFeaturesSection-q8VXmitJ.mjs +100 -0
- package/AdvancedFeaturesSection-sL-_vRo2.mjs +82 -0
- package/AlertSection-Bqcg-w-7.js +25 -0
- package/AlertSection-Dn6NjQDr.mjs +143 -0
- package/AnchorLinkSection-3cpqAe_7.js +19 -0
- package/AnchorLinkSection-B5z9BGZb.mjs +94 -0
- package/ArchitecturalPatternsComparisonSection-D1lgF9Qq.js +31 -0
- package/ArchitecturalPatternsComparisonSection-D7aRdQjp.mjs +325 -0
- package/ArchitectureOverviewSection-CI-HqKmP.js +1 -0
- package/ArchitectureOverviewSection-N-DTRCmA.mjs +88 -0
- package/AuthorCardSection-ejoMkFT6.mjs +110 -0
- package/AuthorCardSection-q-e7Fvih.js +17 -0
- package/AvatarSection-CYIhQCW7.js +18 -0
- package/AvatarSection-CxQ9I8LE.mjs +137 -0
- package/BadgeSection-BYDufusc.mjs +238 -0
- package/BadgeSection-kYu8t7T2.js +48 -0
- package/BasicTableSection-B3eoFQgO.mjs +169 -0
- package/BasicTableSection-QXvy76bx.js +35 -0
- package/BasicUsageSection-Dk9S31nn.js +45 -0
- package/BasicUsageSection-gHN131UX.mjs +103 -0
- package/BestPracticesSection-B-5IaVUl.mjs +43 -0
- package/BestPracticesSection-B-x2dv0_.js +1 -0
- package/BestPracticesSection-C-4JCVk8.mjs +57 -0
- package/BestPracticesSection-CHiBf9j4.js +1 -0
- package/BestPracticesSection-CYYODLWD.mjs +84 -0
- package/BestPracticesSection-CgYDQZ08.js +1 -0
- package/BestPracticesSection-Csw9FmwN.mjs +83 -0
- package/BestPracticesSection-DTvZOXjW.js +1 -0
- package/BestPracticesSection-DgzVoetG.js +1 -0
- package/BestPracticesSection-NnTfU37k.mjs +41 -0
- package/BestPracticesSection-Rin8bHTr.js +1 -0
- package/BestPracticesSection-WJpORyLr.mjs +83 -0
- package/BestPracticesSection-bLuG1Luj.js +1 -0
- package/BestPracticesSection-vTl1Ddip.mjs +49 -0
- package/BorderRadiusSection-Bqpjgp5K.js +1 -0
- package/BorderRadiusSection-CYOGG5iZ.mjs +63 -0
- package/ButtonDripSection-BzblNRvl.mjs +99 -0
- package/ButtonDripSection-DRspv1Jd.js +12 -0
- package/ButtonLoaderSection-Blhaeqm7.js +30 -0
- package/ButtonLoaderSection-D9La-WQM.mjs +127 -0
- package/CHANGELOG.md +253 -0
- package/CardContainerSection-Cu1AzOCt.js +21 -0
- package/CardContainerSection-DS5PU6Wb.mjs +99 -0
- package/CardTitleSection-Wh6g54mJ.js +19 -0
- package/CardTitleSection-ju9F8Tyy.mjs +113 -0
- package/CarouselCardsSection-BVs6FbIw.js +37 -0
- package/CarouselCardsSection-BjTszCQ3.mjs +207 -0
- package/CarouselImageSection-B_H8sVnv.js +38 -0
- package/CarouselImageSection-CrvNktF1.mjs +218 -0
- package/CarouselSection-QmSC4Fer.mjs +159 -0
- package/CarouselSection-uwwpdSwJ.js +24 -0
- package/CheckboxSection-Dwy_YlRw.js +26 -0
- package/CheckboxSection-hX15QRdY.mjs +221 -0
- package/CodeExamplesSection-BNqHspuA.js +28 -0
- package/CodeExamplesSection-BUH5OyaH.mjs +137 -0
- package/CoinCardSection-BTdqO4no.mjs +174 -0
- package/CoinCardSection-DFEAiQGO.js +13 -0
- package/CoinInfoCardSection-3FTitkuN.mjs +174 -0
- package/CoinInfoCardSection-B7Oz1TWD.js +12 -0
- package/CoinListBoxSection-BaH4hZWa.js +24 -0
- package/CoinListBoxSection-_TubrBNV.mjs +219 -0
- package/CollapseSection-CRjrWcRJ.mjs +126 -0
- package/CollapseSection-DqNvLafS.js +27 -0
- package/CollectionCardSection-BGZ1mE8u.mjs +103 -0
- package/CollectionCardSection-DhyQKxxm.js +17 -0
- package/CollectionSelectListSection-CK1VQ7I0.mjs +102 -0
- package/CollectionSelectListSection-CKpKD67J.js +14 -0
- package/ColorCustomizationSection-CE36WYNY.js +1 -0
- package/ColorCustomizationSection-aKl6PI7A.mjs +117 -0
- package/ColorSystemSection-7uC0hJqW.mjs +149 -0
- package/ColorSystemSection-Bvcs1dxh.js +1 -0
- package/CommonErrorsSection-CFR64ylt.mjs +54 -0
- package/CommonErrorsSection-D4_FTfVZ.js +1 -0
- package/ComponentAnatomySection-CPYdBCO6.mjs +72 -0
- package/ComponentAnatomySection-T1qWJOin.js +1 -0
- package/ComponentStatusSection-CRoITF3h.mjs +84 -0
- package/ComponentStatusSection-DrPj3CJM.js +1 -0
- package/CurrencySwapIconsSection-BH3LQuBS.mjs +92 -0
- package/CurrencySwapIconsSection-CxKdhIow.js +7 -0
- package/CustomColorPaletteSection-B3CsPSOE.mjs +54 -0
- package/CustomColorPaletteSection-BtxfPGfC.js +19 -0
- package/CustomIconsSection-BgV-WAPJ.mjs +162 -0
- package/CustomIconsSection-DGEzlSMX.js +3 -0
- package/DefiAppLogoSection-Dho5mLuT.mjs +120 -0
- package/DefiAppLogoSection-PywyZ7Ds.js +36 -0
- package/DesignPrinciplesSection-BgaeCDku.mjs +81 -0
- package/DesignPrinciplesSection-DnOaJYVE.js +1 -0
- package/DrawerSection-BFrAtmLv.mjs +188 -0
- package/DrawerSection-BrAQSdGk.js +41 -0
- package/DynamicRoutesSection-BF1XqRl-.js +42 -0
- package/DynamicRoutesSection-BN90cnDy.mjs +100 -0
- package/FileInputSection-BV0_j5aJ.mjs +277 -0
- package/FileInputSection-CIFSCnZT.js +65 -0
- package/FileStructureSection-Bd08VEZK.mjs +87 -0
- package/FileStructureSection-DQQA-vIe.js +26 -0
- package/FormComponentsSection-C5NZO7yV.mjs +116 -0
- package/FormComponentsSection-CwJntEmg.js +1 -0
- package/FormMethodsSection-B98UkHBv.js +55 -0
- package/FormMethodsSection-D58xvtsL.mjs +119 -0
- package/HamburgerSection-BUji63CO.mjs +108 -0
- package/HamburgerSection-n_xmP-wn.js +18 -0
- package/HookCategoriesSection-DhGSTU0B.js +1 -0
- package/HookCategoriesSection-GYU7Iei5.mjs +97 -0
- package/HookDocumentationSection-CKJJ-w_i.js +73 -0
- package/HookDocumentationSection-DnqLYSGK.mjs +272 -0
- package/HookFeaturesSection-Bqg-CA71.mjs +81 -0
- package/HookFeaturesSection-Csey5UTc.js +1 -0
- package/IconArchitectureSection-Wv-G2b6a.js +1 -0
- package/IconArchitectureSection-hhRBUg-V.mjs +108 -0
- package/IconSizingGuideSection-Dx8mN7PX.mjs +69 -0
- package/IconSizingGuideSection-YB-CGtnr.js +1 -0
- package/IconSystemAPISection-QJWhdfpo.js +1 -0
- package/IconSystemAPISection-bXrudU06.mjs +61 -0
- package/IconSystemBenefitsSection-BwanyP3c.js +1 -0
- package/IconSystemBenefitsSection-DKLtXb24.mjs +41 -0
- package/ImageSection-CSmiHV0L.mjs +612 -0
- package/ImageSection-sHVjMCnz.js +80 -0
- package/ImplementationExamplesSection-DfHKYrzv.mjs +284 -0
- package/ImplementationExamplesSection-DwH6OVfU.js +178 -0
- package/ImplementationGuidelinesSection-Bj4DFmdL.mjs +52 -0
- package/ImplementationGuidelinesSection-DP_I_Hi1.js +1 -0
- package/ImplementationStatusSection-CRYiKU5h.mjs +23 -0
- package/ImplementationStatusSection-VVEoRERd.js +1 -0
- package/ImplementedFeaturesSection-BMT9e9nX.mjs +116 -0
- package/ImplementedFeaturesSection-DdDpTz2-.js +1 -0
- package/InputSearcherSection-CY1pJ7_p.js +32 -0
- package/InputSearcherSection-DBshLx3e.mjs +258 -0
- package/InputSection-BsdqucRI.js +37 -0
- package/InputSection-Ho687ul0.mjs +265 -0
- package/KeyboardNavigationSection-4iRK0ZQA.js +1 -0
- package/KeyboardNavigationSection-PpDOGCby.mjs +69 -0
- package/LayoutPrinciplesSection-D-vccfVu.mjs +106 -0
- package/LayoutPrinciplesSection-D9_fFAF_.js +1 -0
- package/LayoutTypesSection-BkcFBXXg.js +1 -0
- package/LayoutTypesSection-usXYbbCR.mjs +239 -0
- package/ListContainerSection-PLAbcoL1.mjs +191 -0
- package/ListContainerSection-yeYEWBZY.js +38 -0
- package/ListItemSection-Cf0jmpas.mjs +191 -0
- package/ListItemSection-sb6shrQt.js +36 -0
- package/LiveDemoSection-DEQKbTQk.mjs +16 -0
- package/LiveDemoSection-cPIxcIuZ.js +1 -0
- package/LiveDemonstrationsSection-0qjqbzL8.mjs +445 -0
- package/LiveDemonstrationsSection-DLwejyei.js +4 -0
- package/LivePriceFeedSection-DEhOelW8.js +20 -0
- package/LivePriceFeedSection-DyMixQjB.mjs +187 -0
- package/LoaderSection-HsHhN1fT.mjs +143 -0
- package/LoaderSection-Zl3r1AHf.js +22 -0
- package/LogoSection-BjaE8rJp.mjs +319 -0
- package/LogoSection-DrzsqfB_.js +100 -0
- package/LucideIconsSection-BfQQfNnw.mjs +128 -0
- package/LucideIconsSection-CFioLWY9.js +1 -0
- package/MFESupportSection-CfqZiAlG.mjs +354 -0
- package/MFESupportSection-aHAWy-oc.js +122 -0
- package/MenuItemsGuideSection-CfkMoYWs.js +126 -0
- package/MenuItemsGuideSection-DtqEz3te.mjs +325 -0
- package/ModalSection-DoA3JVZO.mjs +158 -0
- package/ModalSection-vV4oaIXq.js +29 -0
- package/NFTGridSection-BiqoU8o6.mjs +122 -0
- package/NFTGridSection-DmpbDmFp.js +11 -0
- package/NestedRoutesSection-BjrHulvK.mjs +88 -0
- package/NestedRoutesSection-CwHxcPIB.js +36 -0
- package/NotificationCardSection-BTvGBUp5.js +28 -0
- package/NotificationCardSection-yrGz8e61.mjs +153 -0
- package/PanelActionCardSection-De_RT7Xx.js +28 -0
- package/PanelActionCardSection-DtKYzJRz.mjs +138 -0
- package/PanelCardSection-BhHyd_RU.mjs +96 -0
- package/PanelCardSection-BwdNRgHL.js +15 -0
- package/ParamTabSection-D-64gIJ0.js +92 -0
- package/ParamTabSection-DW95bROn.mjs +561 -0
- package/PinCodeSection-DLxT1qlT.js +22 -0
- package/PinCodeSection-DRvKUePb.mjs +263 -0
- package/ProgressbarSection-CKbkhmQS.mjs +195 -0
- package/ProgressbarSection-CRCYjRpw.js +21 -0
- package/README.md +297 -83
- package/RadioGroupSection-BPp-Tp9a.mjs +288 -0
- package/RadioGroupSection-BUWSW6uI.js +27 -0
- package/RadioSection-CSn_sr4P.mjs +208 -0
- package/RadioSection-Cl2T68su.js +23 -0
- package/RevealContentSection-B4yEXfQY.mjs +111 -0
- package/RevealContentSection-DMZRYCm2.js +21 -0
- package/RouteConfigurationSection-CoQn38dJ.js +40 -0
- package/RouteConfigurationSection-DqLJ2vbf.mjs +81 -0
- package/ScrollToTopSection-DY_WQiIp.js +36 -0
- package/ScrollToTopSection-bsPO6VoN.mjs +193 -0
- package/ScrollbarSection-BQLoKdfQ.mjs +146 -0
- package/ScrollbarSection-f9m-PsRb.js +29 -0
- package/SelectSection-BN9qlOW6.mjs +275 -0
- package/SelectSection-BSY-VzxD.js +20 -0
- package/SettingsPanelSection-Beigs8Mz.js +1 -0
- package/SettingsPanelSection-C87nsYr6.mjs +126 -0
- package/ShadowsSection-Bc7fTEaF.js +1 -0
- package/ShadowsSection-swFi7rcU.mjs +90 -0
- package/SidebarMenuSection-CrXxweh8.js +46 -0
- package/SidebarMenuSection-Ok5nM-Gb.mjs +140 -0
- package/SidebarSection-DBreiJzV.js +25 -0
- package/SidebarSection-eGUICII0.mjs +122 -0
- package/SizingSection-B79GMG1e.js +1 -0
- package/SizingSection-BZ6K7FDU.mjs +86 -0
- package/SkeletonSection-CCNrjbhN.js +52 -0
- package/SkeletonSection-D3-GHpIx.mjs +259 -0
- package/SpacingSystemSection-00FcQc6s.js +1 -0
- package/SpacingSystemSection-CPC_ueHg.mjs +82 -0
- package/SpinnerSection-BKxNrkZS.mjs +107 -0
- package/SpinnerSection-CeTSWqKn.js +17 -0
- package/StandaloneAppSection-CL7q2RAc.mjs +244 -0
- package/StandaloneAppSection-xt8l3Kox.js +69 -0
- package/SwitchSection-CPHMvmxe.js +20 -0
- package/SwitchSection-KW_y9F1U.mjs +230 -0
- package/SystemOverviewSection-9jmtz2sd.mjs +93 -0
- package/SystemOverviewSection-QYqitAxQ.js +1 -0
- package/TabSection-Cytn9Eg_.js +84 -0
- package/TabSection-Dt7NHmRD.mjs +331 -0
- package/TabSelectSection-C3qtM1sO.js +100 -0
- package/TabSelectSection-CIkC-gNn.mjs +418 -0
- package/TailwindConfigSection-B3u_7Uj3.mjs +152 -0
- package/TailwindConfigSection-Beh2sEXt.js +19 -0
- package/TestingSection-DqUsgS3A.mjs +48 -0
- package/TestingSection-jzeFF7T4.js +12 -0
- package/TextareaSection-BC5OuD6Y.mjs +220 -0
- package/TextareaSection-DdF73vjR.js +21 -0
- package/ThemeArchitectureSection-CRMTbUjE.js +1 -0
- package/ThemeArchitectureSection-hVs57qtQ.mjs +86 -0
- package/ThemeConfigurationSection-ByKwC4NV.mjs +132 -0
- package/ThemeConfigurationSection-V9NL4B6w.js +1 -0
- package/ThemeHooksSection-BqMaxz3M.mjs +119 -0
- package/ThemeHooksSection-Cq7naa3J.js +1 -0
- package/ThemeProviderIntegrationSection-BdyKt0OG.js +61 -0
- package/ThemeProviderIntegrationSection-Dd4ey6yw.mjs +108 -0
- package/ThemeProviderRequiredSection-BC0SE1oX.mjs +95 -0
- package/ThemeProviderRequiredSection-C38NrwgR.js +1 -0
- package/ThemeProviderSection-DH9EOiSK.mjs +128 -0
- package/ThemeProviderSection-IP9yGtu9.js +1 -0
- package/ToastSection--5jtANA4.js +37 -0
- package/ToastSection-DMKHXDUt.mjs +170 -0
- package/ToggleBarSection-DFyy46ps.mjs +187 -0
- package/ToggleBarSection-sLrIdWGE.js +37 -0
- package/TopupButtonSection-D4UKj_4e.js +24 -0
- package/TopupButtonSection-MWCr2HgN.mjs +145 -0
- package/TransactionInfoSection-BDjeyKVu.mjs +113 -0
- package/TransactionInfoSection-Dow-BcLX.js +16 -0
- package/TucuUiLogoSection-B98FqIGR.mjs +121 -0
- package/TucuUiLogoSection-D33WplqP.js +26 -0
- package/TypographySection-BhLYx-Kc.mjs +129 -0
- package/TypographySection-C5qZROOc.mjs +214 -0
- package/TypographySection-CGqn0YKc.js +24 -0
- package/TypographySection-D833eiFZ.js +1 -0
- package/UsageExamplesSection-BYqtf6E5.mjs +147 -0
- package/UsageExamplesSection-B_3VW7eX.js +83 -0
- package/UsingThemeSystemSection-DnfcjVLJ.js +140 -0
- package/UsingThemeSystemSection-F28_AtB_.mjs +176 -0
- package/ValidationSystemSection-Ci83T7Q5.mjs +197 -0
- package/ValidationSystemSection-Dsoz_A_r.js +54 -0
- package/WCAGPrinciplesSection-DCjENTGT.js +1 -0
- package/WCAGPrinciplesSection-zEOESp2h.mjs +116 -0
- package/collection-1-BIsLOX9N.js +1 -0
- package/collection-1-NeFANkbk.mjs +4 -0
- package/components/common/badge.d.ts +16 -6
- package/components/common/skeleton.d.ts +36 -3
- package/components/icons/chevron-left.d.ts +1 -1
- package/components/index.d.ts +6 -3
- package/components/inputs/{uploader-two.d.ts → file-input.d.ts} +13 -13
- package/components/inputs/index.d.ts +1 -2
- package/components/inputs/input.d.ts +2 -0
- package/components/layouts/index.d.ts +13 -0
- package/components/layouts/menus/menu-item.d.ts +3 -2
- package/components/list/index.d.ts +2 -0
- package/components/list/list-Item.d.ts +13 -0
- package/components/list/list-container.d.ts +17 -0
- package/components/logos/defi-app-logo.d.ts +1 -0
- package/components/logos/full-logo.d.ts +1 -0
- package/components/logos/index.d.ts +2 -5
- package/components/logos/logo.d.ts +1 -2
- package/components/logos/tucu-ui-logo.d.ts +8 -0
- package/components/notifications/alert.d.ts +2 -1
- package/components/table/basic-table.d.ts +25 -0
- package/components/table/index.d.ts +1 -0
- package/components/tabs/param-tab.d.ts +7 -1
- package/components/tabs/tab.d.ts +18 -6
- package/components/utils/image.d.ts +17 -8
- package/components/utils/index.d.ts +0 -1
- package/components/utils/scroll-to-top.d.ts +38 -1
- package/demo/components/hero-card.d.ts +1 -0
- package/demo/components/index.d.ts +4 -0
- package/demo/components/lazy-component-section.d.ts +11 -0
- package/demo/components/nav-options.d.ts +2 -0
- package/demo/components/playground-button.d.ts +1 -0
- package/demo/components/table-of-contents.d.ts +16 -0
- package/demo/index.d.ts +1 -0
- package/demo/pages/blockchain/BlockchainComponents.d.ts +1 -0
- package/demo/pages/blockchain/blockchain-components-sections/CoinCardSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CoinInfoCardSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CoinListBoxSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CollectionCardSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CollectionSelectListSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CurrencySwapIconsSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/LivePriceFeedSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/NFTGridSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/TransactionInfoSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/index.d.ts +9 -0
- package/demo/pages/components/ComponentsIntroduction.d.ts +1 -0
- package/demo/pages/components/InputsComponents.d.ts +2 -0
- package/demo/pages/components/UiComponents.d.ts +1 -0
- package/demo/pages/components/input-components-sections/CheckboxSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/FileInputSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/InputSearcherSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/InputSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/PinCodeSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/RadioGroupSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/RadioSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/SelectSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/SwitchSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/TextareaSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/ToggleBarSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/index.d.ts +11 -0
- package/demo/pages/components/ui-components-sections/ActiveLinkSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AlertSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AnchorLinkSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AuthorCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AvatarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/BadgeSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/BasicTableSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ButtonDripSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ButtonLoaderSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CardContainerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CardTitleSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CarouselCardsSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CarouselImageSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CarouselSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CollapseSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/DefiAppLogoSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/DrawerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/HamburgerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ImageSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ListContainerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ListItemSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/LoaderSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/LogoSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ModalSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/NotificationCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/PanelActionCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/PanelCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ParamTabSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ProgressbarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/RevealContentSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ScrollToTopSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ScrollbarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SidebarMenuSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SidebarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SkeletonSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SpinnerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TabSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TabSelectSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ToastSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TopupButtonSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TucuUiLogoSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TypographySection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/index.d.ts +40 -0
- package/demo/pages/design-system/DesignSystem.d.ts +2 -0
- package/demo/pages/design-system/LayoutSystem.d.ts +2 -0
- package/demo/pages/design-system/ThemingGuide.d.ts +2 -0
- package/demo/pages/design-system/design-system-sections/BorderRadiusSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ColorSystemSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ComponentAnatomySection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/DesignPrinciplesSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ImplementationGuidelinesSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/LayoutPrinciplesSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ShadowsSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/SizingSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/SpacingSystemSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/TypographySection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/CommonErrorsSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/ImplementationExamplesSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/LayoutTypesSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/MenuItemsGuideSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/ThemeProviderRequiredSection.d.ts +3 -0
- package/demo/pages/design-system/legacy/DesignSystemIntroduction.d.ts +2 -0
- package/demo/pages/design-system/legacy/ThemingGuideIntroduction.d.ts +2 -0
- package/demo/pages/design-system/theming-guide-sections/AdvancedColorSystemSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/AdvancedFeaturesSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ColorCustomizationSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/CustomColorPaletteSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/FileStructureSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/SettingsPanelSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/TailwindConfigSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeArchitectureSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeConfigurationSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeHooksSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeProviderSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/UsingThemeSystemSection.d.ts +3 -0
- package/demo/pages/features/Accessibility.d.ts +2 -0
- package/demo/pages/features/FeaturesIntroduction.d.ts +1 -0
- package/demo/pages/features/HooksUtilities.d.ts +2 -0
- package/demo/pages/features/IconsSystem.d.ts +2 -0
- package/demo/pages/features/RoutingSystem.d.ts +2 -0
- package/demo/pages/features/accessibility-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/CodeExamplesSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/ComponentStatusSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/ImplementationStatusSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/ImplementedFeaturesSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/KeyboardNavigationSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/TestingSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/WCAGPrinciplesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/HookCategoriesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/HookDocumentationSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/HookFeaturesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/LiveDemonstrationsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/CustomIconsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconArchitectureSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconSizingGuideSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconSystemAPISection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconSystemBenefitsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/LucideIconsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/UsageExamplesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/APIReferenceSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/ArchitecturalPatternsComparisonSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/DynamicRoutesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/MFESupportSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/NestedRoutesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/RouteConfigurationSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/StandaloneAppSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/SystemOverviewSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/ThemeProviderIntegrationSection.d.ts +3 -0
- package/demo/pages/form-system/FormSystem.d.ts +2 -0
- package/demo/pages/form-system/code-example-page.d.ts +2 -0
- package/demo/pages/form-system/example/constants.d.ts +12 -0
- package/demo/pages/form-system/example/simple-form-example.d.ts +3 -0
- package/demo/pages/form-system/form-example-page.d.ts +2 -0
- package/demo/pages/form-system/form-system-sections/AdvancedFeaturesSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/ArchitectureOverviewSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/BasicUsageSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/FormComponentsSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/FormMethodsSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/LiveDemoSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/ValidationSystemSection.d.ts +3 -0
- package/demo/pages/index.d.ts +36 -0
- package/demo/pages/introduction/BasicUsageDemo.d.ts +1 -0
- package/demo/pages/introduction/BasicUsageExampleCode.d.ts +1 -0
- package/demo/pages/introduction/BasicUsageWithCustomRouterExampleCode.d.ts +1 -0
- package/demo/pages/introduction/ThemeProviderExamples.d.ts +7 -0
- package/demo/pages/introduction/index.d.ts +1 -0
- package/demo/pages/tailwind/AccessibilityUtilities.d.ts +1 -0
- package/demo/pages/tailwind/BackgroundUtilities.d.ts +1 -0
- package/demo/pages/tailwind/BordersUtilities.d.ts +1 -0
- package/demo/pages/tailwind/Colors.d.ts +1 -0
- package/demo/pages/tailwind/EffectsUtilities.d.ts +1 -0
- package/demo/pages/tailwind/FiltersUtilities.d.ts +1 -0
- package/demo/pages/tailwind/FlexboxGridUtilities.d.ts +1 -0
- package/demo/pages/tailwind/InteractivityUtilities.d.ts +1 -0
- package/demo/pages/tailwind/LayoutUtilities.d.ts +1 -0
- package/demo/pages/tailwind/SVGUtilities.d.ts +1 -0
- package/demo/pages/tailwind/TablesUtilities.d.ts +1 -0
- package/demo/pages/tailwind/TailwindIntroduction.d.ts +1 -0
- package/demo/pages/tailwind/TransformsUtilities.d.ts +1 -0
- package/demo/pages/tailwind/TransitionsAnimations.d.ts +1 -0
- package/demo/pages/tailwind/TypographyUtilities.d.ts +1 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/use-anchor-scroll.d.ts +1 -0
- package/hooks/use-window-scroll.d.ts +11 -1
- package/index-BoEJRnmP.js +906 -0
- package/index-DCf83AyI.mjs +53778 -0
- package/index.css +1 -1
- package/index.js +1 -179
- package/index.mjs +324 -45608
- package/package.json +2 -3
- package/tether-DaYvmdAU.mjs +5 -0
- package/tether-EofDinu3.js +1 -0
- package/themes/auth/components/auth-provider.d.ts +2 -0
- package/themes/components/theme-provider/index.d.ts +48 -6
- package/themes/components/theme-provider/mfe-app-theme-provider.d.ts +4 -1
- package/themes/components/theme-provider/standalone-app-theme-provider.d.ts +12 -0
- package/themes/components/theme-provider/theme-wrapper.d.ts +2 -1
- package/themes/config/index.d.ts +1 -1
- package/themes/hooks/use-theme.d.ts +0 -2
- package/themes/pages/access-denied.d.ts +6 -0
- package/themes/pages/default-error.d.ts +5 -0
- package/themes/pages/disabled-page.d.ts +5 -0
- package/themes/pages/forbidden.d.ts +5 -0
- package/themes/pages/index.d.ts +8 -0
- package/themes/pages/no-routes.d.ts +5 -0
- package/themes/pages/server-error.d.ts +5 -0
- package/themes/pages/unknown.d.ts +5 -0
- package/themes/pages/user-blocked.d.ts +5 -0
- package/themes/router/components/index.d.ts +1 -1
- package/themes/router/components/mfe-app-routes-provider.d.ts +2 -0
- package/themes/router/components/standalone-app-routes-provider.d.ts +20 -0
- package/themes/types/index.d.ts +2 -2
- package/components/inputs/uploader.d.ts +0 -2
- package/components/legacy/forms/checkbox.d.ts +0 -38
- package/components/legacy/forms/field-error-text.d.ts +0 -19
- package/components/legacy/forms/field-helper-text.d.ts +0 -18
- package/components/legacy/forms/file-input.d.ts +0 -8
- package/components/legacy/forms/form-system/example/error-container-example.d.ts +0 -3
- package/components/legacy/forms/form-system/example/form-example.d.ts +0 -3
- package/components/legacy/forms/form-system/example/form-methods-example.d.ts +0 -3
- package/components/legacy/forms/form-system/example/validations.d.ts +0 -14
- package/components/legacy/forms/form-system/form-field.d.ts +0 -14
- package/components/legacy/forms/form-system/form.d.ts +0 -13
- package/components/legacy/forms/form-system/hook-form.d.ts +0 -3
- package/components/legacy/forms/form-system/index.d.ts +0 -10
- package/components/legacy/forms/form-system/types/dependencies.type.d.ts +0 -11
- package/components/legacy/forms/form-system/types/extend-react-hook-form.type.d.ts +0 -16
- package/components/legacy/forms/form-system/types/index.d.ts +0 -3
- package/components/legacy/forms/form-system/types/validations.type.d.ts +0 -9
- package/components/legacy/forms/input-label.d.ts +0 -9
- package/components/legacy/forms/input-searcher.d.ts +0 -11
- package/components/legacy/forms/input-select.d.ts +0 -24
- package/components/legacy/forms/input-switch.d.ts +0 -13
- package/components/legacy/forms/input.d.ts +0 -16
- package/components/legacy/forms/pin-code.d.ts +0 -95
- package/components/legacy/forms/radio-group.d.ts +0 -56
- package/components/legacy/forms/radio.d.ts +0 -84
- package/components/legacy/forms/textarea.d.ts +0 -10
- package/components/logos/AppLogo.d.ts +0 -1
- package/components/logos/logo-dark.d.ts +0 -1
- package/components/logos/logo-icon.d.ts +0 -5
- package/components/logos/logo-iso-dark.d.ts +0 -1
- package/components/logos/logo-iso-light.d.ts +0 -1
- package/components/logos/logo-light.d.ts +0 -1
- package/components/utils/test-brand-classes.d.ts +0 -1
- package/themes/components/theme-provider/single-app-theme-provider.d.ts +0 -8
- package/themes/router/components/single-app-routes-provider.d.ts +0 -17
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BoEJRnmP.js"),a=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const r=()=>{const l=[{key:"prop",label:"Prop",render:t=>e.jsx("code",{className:"text-xs text-brand",children:String(t)})},{key:"type",label:"Type",render:t=>e.jsx("code",{className:"text-xs",children:String(t)})},{key:"default",label:"Default",render:t=>{const i=String(t);return i==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:i})}},{key:"description",label:"Description"}],c=[{prop:"id",type:"string | number",default:"required",description:"Unique identifier for the item"},{prop:"label",type:"string",default:"-",description:"Text label for the item"},{prop:"icon",type:"React.ReactNode",default:"-",description:"Icon to display before the label"},{prop:"content",type:"React.ReactNode",default:"-",description:"Custom content to display instead of label"},{prop:"onClick",type:"() => void",default:"-",description:"Click handler function"},{prop:"disabled",type:"boolean",default:"false",description:"Whether the item is disabled"},{prop:"active",type:"boolean",default:"false",description:"Whether the item is active"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(s.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"ListItem"}),e.jsx(s.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A list item component for displaying items in dropdowns and menus with support for icons, labels, and custom content."})]}),e.jsx(s.CardContainer,{className:"overflow-hidden",children:e.jsx(s.CardTitle,{title:"Basic Examples",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(s.CardContainer,{className:"p-4",children:[e.jsx(s.Typography,{tag:"h5",className:"mb-3",children:"Basic List Items"}),e.jsxs("ul",{className:"space-y-1",children:[e.jsx(s.ListItem,{id:"1",label:"Item 1"}),e.jsx(s.ListItem,{id:"2",label:"Item 2"}),e.jsx(s.ListItem,{id:"3",label:"Item 3"})]})]}),e.jsxs(s.CardContainer,{className:"p-4",children:[e.jsx(s.Typography,{tag:"h5",className:"mb-3",children:"With Icons"}),e.jsxs("ul",{className:"space-y-1",children:[e.jsx(s.ListItem,{id:"1",label:"Home",icon:e.jsx(a.Home,{className:"w-4 h-4"})}),e.jsx(s.ListItem,{id:"2",label:"Settings",icon:e.jsx(a.Settings,{className:"w-4 h-4"})}),e.jsx(s.ListItem,{id:"3",label:"Profile",icon:e.jsx(a.User,{className:"w-4 h-4"})})]})]}),e.jsxs(s.CardContainer,{className:"p-4",children:[e.jsx(s.Typography,{tag:"h5",className:"mb-3",children:"States"}),e.jsxs("ul",{className:"space-y-1",children:[e.jsx(s.ListItem,{id:"1",label:"Active Item",active:!0}),e.jsx(s.ListItem,{id:"2",label:"Normal Item"}),e.jsx(s.ListItem,{id:"3",label:"Disabled Item",disabled:!0})]})]}),e.jsxs(s.CardContainer,{className:"p-4",children:[e.jsx(s.Typography,{tag:"h5",className:"mb-3",children:"With Custom Content"}),e.jsx("ul",{className:"space-y-1",children:e.jsx(s.ListItem,{id:"1",content:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(a.Star,{className:"w-4 h-4"}),e.jsx("span",{children:"Custom Content"})]})})})]})]})})})}),e.jsx(s.CardContainer,{className:"overflow-hidden",children:e.jsx(s.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(s.BasicTable,{columns:l,data:c})})})}),e.jsx(s.CardContainer,{className:"overflow-hidden",children:e.jsx(s.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(s.CodeBlock,{language:"tsx",code:`import { ListItem, LucideIcons } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
// Basic usage
|
|
4
|
+
<ul>
|
|
5
|
+
<ListItem id="1" label="Item 1" />
|
|
6
|
+
<ListItem id="2" label="Item 2" />
|
|
7
|
+
</ul>
|
|
8
|
+
|
|
9
|
+
// With icons
|
|
10
|
+
<ListItem
|
|
11
|
+
id="1"
|
|
12
|
+
label="Home"
|
|
13
|
+
icon={<LucideIcons.Home className="w-4 h-4" />}
|
|
14
|
+
/>
|
|
15
|
+
|
|
16
|
+
// With states
|
|
17
|
+
<ListItem id="1" label="Active" active />
|
|
18
|
+
<ListItem id="2" label="Disabled" disabled />
|
|
19
|
+
|
|
20
|
+
// With custom content
|
|
21
|
+
<ListItem
|
|
22
|
+
id="1"
|
|
23
|
+
content={
|
|
24
|
+
<div className="flex items-center gap-2">
|
|
25
|
+
<LucideIcons.Star className="w-4 h-4" />
|
|
26
|
+
<span>Custom</span>
|
|
27
|
+
</div>
|
|
28
|
+
}
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
// With onClick
|
|
32
|
+
<ListItem
|
|
33
|
+
id="1"
|
|
34
|
+
label="Clickable"
|
|
35
|
+
onClick={() => handleClick()}
|
|
36
|
+
/>`})})})})]})};exports.default=r;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as e, Fragment as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { C as m, a as s, T as t, s as i, W as l } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import { Play as o } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const x = () => /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(s, { title: "Live Demo Form", className: "mt-2 mb-6", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
8
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3 mb-4", children: [
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "p-2 bg-linear-to-br from-green-500 to-emerald-500 rounded-lg shadow-lg", children: /* @__PURE__ */ e(o, { className: "w-5 h-5 text-white filter drop-shadow-sm" }) }),
|
|
10
|
+
/* @__PURE__ */ e(t, { tag: "h4", className: "font-semibold", children: "Interactive Form Example" })
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ e("div", { className: "flex justify-center", children: /* @__PURE__ */ e(i, { size: "small", className: "animate-bounce", children: /* @__PURE__ */ e(l, { to: "/form-system/example", children: "Go to Form Example" }) }) })
|
|
13
|
+
] }) }) }) });
|
|
14
|
+
export {
|
|
15
|
+
x as default
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./index-BoEJRnmP.js"),s=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const i=()=>e.jsx(e.Fragment,{children:e.jsx(r.CardContainer,{children:e.jsx(r.CardTitle,{title:"Live Demo Form",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"p-2 bg-linear-to-br from-green-500 to-emerald-500 rounded-lg shadow-lg",children:e.jsx(s.Play,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(r.Typography,{tag:"h4",className:"font-semibold",children:"Interactive Form Example"})]}),e.jsx("div",{className:"flex justify-center",children:e.jsx(r.Button,{size:"small",className:"animate-bounce",children:e.jsx(r.AnchorLink,{to:"/form-system/example",children:"Go to Form Example"})})})]})})})});exports.default=i;
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as i, useRef as X, useEffect as Y } from "react";
|
|
3
|
+
import { aj as q, ak as K, al as V, a6 as Z, am as _, an as F, ao as J, ap as Q, aq as ee, ar as ae, as as te, at as se, au as re, T as t, C as d, D as l, c as le, s as r } from "./index-DCf83AyI.mjs";
|
|
4
|
+
import { Monitor as ie, Ruler as de, MousePointer as oe, ChevronDown as ne, Copy as ce, Settings as me, LayoutGrid as he, Zap as ge, ChevronLeft as pe, ChevronRight as ue, Lock as xe, X as Ne } from "lucide-react";
|
|
5
|
+
import "react-router-dom";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const Ce = () => {
|
|
8
|
+
const [n, S] = i("Hello, World!"), [u, M] = q(), [c, m] = i(!1), [x, N] = i(!1), [T, b] = i(""), [I, y] = i("Checking..."), v = K(), { isMobile: f } = V(), { addToast: h } = Z(), { isGridCompact: g, setIsGridCompact: L } = _(), { x: B, y: z } = F(), w = J(), k = X(null), [E, { width: R, height: D }] = Q(), [W, C] = ee(), {
|
|
9
|
+
sliderEl: $,
|
|
10
|
+
sliderPrevBtn: G,
|
|
11
|
+
sliderNextBtn: j,
|
|
12
|
+
scrollToTheRight: A,
|
|
13
|
+
scrollToTheLeft: O
|
|
14
|
+
} = ae("/");
|
|
15
|
+
te(c), se(k, () => {
|
|
16
|
+
N(!1);
|
|
17
|
+
}), re("keydown", (s) => {
|
|
18
|
+
b(s.key), setTimeout(() => b(""), 1e3);
|
|
19
|
+
}), Y(() => {
|
|
20
|
+
y(w ? "Component is mounted" : "Component is not mounted");
|
|
21
|
+
}, [w]);
|
|
22
|
+
const P = () => {
|
|
23
|
+
M(n), h({
|
|
24
|
+
id: `copy-${Date.now()}`,
|
|
25
|
+
title: "Copied!",
|
|
26
|
+
message: `Copied "${n}" to clipboard`,
|
|
27
|
+
variant: "success"
|
|
28
|
+
});
|
|
29
|
+
}, U = () => {
|
|
30
|
+
const s = !g;
|
|
31
|
+
L(s), h({
|
|
32
|
+
id: `layout-${Date.now()}`,
|
|
33
|
+
title: "Layout Changed",
|
|
34
|
+
message: `Switched to ${s ? "Compact" : "Normal"} layout`,
|
|
35
|
+
variant: "info"
|
|
36
|
+
});
|
|
37
|
+
}, o = (s = "success") => {
|
|
38
|
+
h({
|
|
39
|
+
id: `toast-${Date.now()}`,
|
|
40
|
+
title: "Test Toast",
|
|
41
|
+
message: `This is a ${s} toast notification`,
|
|
42
|
+
variant: s,
|
|
43
|
+
timeout: 3e3
|
|
44
|
+
});
|
|
45
|
+
}, H = Array.from({ length: 10 }, (s, p) => ({
|
|
46
|
+
id: p + 1,
|
|
47
|
+
title: `Item ${p + 1}`,
|
|
48
|
+
content: `Content for item ${p + 1}`
|
|
49
|
+
}));
|
|
50
|
+
return /* @__PURE__ */ a("div", { className: "space-y-8", children: [
|
|
51
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
52
|
+
/* @__PURE__ */ e(t, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Live Hook Demonstrations" }),
|
|
53
|
+
/* @__PURE__ */ e(
|
|
54
|
+
t,
|
|
55
|
+
{
|
|
56
|
+
tag: "p",
|
|
57
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
58
|
+
children: "Interactive examples showing hooks in action"
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ a("div", { className: "space-y-8", children: [
|
|
63
|
+
/* @__PURE__ */ e(d, { className: "group hover:shadow-large transition-all duration-300 hover:-translate-y-1", children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
64
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "p-2 rounded-lg bg-linear-to-br from-blue-500 via-cyan-500 to-teal-500 shadow-lg", children: /* @__PURE__ */ e(ie, { className: "w-6 h-6 text-white filter drop-shadow-sm" }) }),
|
|
66
|
+
/* @__PURE__ */ e(t, { tag: "h3", className: "text-xl font-semibold", children: "Responsive Detection" })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "Real-time breakpoint detection and mobile state tracking." }),
|
|
69
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
70
|
+
/* @__PURE__ */ a("div", { className: "bg-white dark:bg-gray-800 p-4 rounded-lg border", children: [
|
|
71
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useBreakpoint" }),
|
|
72
|
+
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
73
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
74
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: "Current:" }),
|
|
75
|
+
/* @__PURE__ */ e(l, { className: "text-dark dark:text-white", children: v })
|
|
76
|
+
] }),
|
|
77
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-xs text-gray-500", children: "Resize your window to see changes" })
|
|
78
|
+
] })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ a("div", { className: "bg-white dark:bg-gray-800 p-4 rounded-lg border", children: [
|
|
81
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useIsMobile" }),
|
|
82
|
+
/* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
83
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
84
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: "Is Mobile:" }),
|
|
85
|
+
/* @__PURE__ */ e(l, { className: "text-dark dark:text-white", children: f ? "Yes" : "No" })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-xs text-gray-500", children: "True for xs, sm, md breakpoints" })
|
|
88
|
+
] })
|
|
89
|
+
] })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ e("div", { className: "bg-light-dark p-4 rounded-xl border dark:border-gray-700 overflow-x-auto", children: /* @__PURE__ */ e(
|
|
92
|
+
le,
|
|
93
|
+
{
|
|
94
|
+
language: "tsx",
|
|
95
|
+
noExpand: !0,
|
|
96
|
+
code: `
|
|
97
|
+
const breakpoint = useBreakpoint();
|
|
98
|
+
const { isMobile } = useIsMobile();
|
|
99
|
+
// Current: ${v}, Mobile: ${f}`
|
|
100
|
+
}
|
|
101
|
+
) })
|
|
102
|
+
] }) }),
|
|
103
|
+
/* @__PURE__ */ e(d, { className: "group hover:shadow-large transition-all duration-300 hover:-translate-y-1", children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
104
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
105
|
+
/* @__PURE__ */ e("div", { className: "p-2 rounded-lg bg-linear-to-br from-green-500 via-emerald-500 to-teal-500 shadow-lg", children: /* @__PURE__ */ e(de, { className: "w-6 h-6 text-white filter drop-shadow-sm" }) }),
|
|
106
|
+
/* @__PURE__ */ e(t, { tag: "h3", className: "text-xl font-semibold", children: "Element Measurement" })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "Track element dimensions and bounds in real-time." }),
|
|
109
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
110
|
+
/* @__PURE__ */ a("div", { children: [
|
|
111
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useElementSize" }),
|
|
112
|
+
/* @__PURE__ */ a(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
ref: E,
|
|
116
|
+
className: "bg-blue-100 dark:bg-blue-800 p-4 rounded-lg border-2 border-dashed border-blue-300 dark:border-blue-600 resize overflow-auto min-h-[100px]",
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-sm", children: "Resize this element (drag corner)" }),
|
|
119
|
+
/* @__PURE__ */ a(
|
|
120
|
+
t,
|
|
121
|
+
{
|
|
122
|
+
tag: "p",
|
|
123
|
+
className: "text-xs text-gray-600 dark:text-gray-400 mt-2",
|
|
124
|
+
children: [
|
|
125
|
+
"Size: ",
|
|
126
|
+
Math.round(R),
|
|
127
|
+
" ×",
|
|
128
|
+
" ",
|
|
129
|
+
Math.round(D),
|
|
130
|
+
"px"
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ a("div", { children: [
|
|
139
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useMeasure" }),
|
|
140
|
+
/* @__PURE__ */ a(
|
|
141
|
+
"div",
|
|
142
|
+
{
|
|
143
|
+
ref: W,
|
|
144
|
+
className: "bg-cyan-100 dark:bg-cyan-800 p-4 rounded-lg border-2 border-dashed border-cyan-300 dark:border-cyan-600 min-h-[100px]",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-sm", children: "Measured element" }),
|
|
147
|
+
/* @__PURE__ */ a(
|
|
148
|
+
t,
|
|
149
|
+
{
|
|
150
|
+
tag: "p",
|
|
151
|
+
className: "text-xs text-gray-600 dark:text-gray-400 mt-2",
|
|
152
|
+
children: [
|
|
153
|
+
"Bounds: ",
|
|
154
|
+
Math.round(C.width),
|
|
155
|
+
" ×",
|
|
156
|
+
" ",
|
|
157
|
+
Math.round(C.height),
|
|
158
|
+
"px"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
] })
|
|
166
|
+
] })
|
|
167
|
+
] }) }),
|
|
168
|
+
/* @__PURE__ */ e(d, { className: "group hover:shadow-large transition-all duration-300 hover:-translate-y-1", children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
169
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
170
|
+
/* @__PURE__ */ e("div", { className: "p-2 rounded-lg bg-linear-to-br from-purple-500 via-violet-500 to-indigo-500 shadow-lg", children: /* @__PURE__ */ e(oe, { className: "w-6 h-6 text-white filter drop-shadow-sm" }) }),
|
|
171
|
+
/* @__PURE__ */ e(t, { tag: "h3", className: "text-xl font-semibold", children: "User Interaction" })
|
|
172
|
+
] }),
|
|
173
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "Interactive demonstrations of click detection and clipboard operations." }),
|
|
174
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
175
|
+
/* @__PURE__ */ a("div", { children: [
|
|
176
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useClickAway" }),
|
|
177
|
+
/* @__PURE__ */ a("div", { className: "relative", ref: k, children: [
|
|
178
|
+
/* @__PURE__ */ a(
|
|
179
|
+
r,
|
|
180
|
+
{
|
|
181
|
+
onClick: () => N(!x),
|
|
182
|
+
variant: "ghost",
|
|
183
|
+
className: "w-full",
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ e(ne, { className: "w-4 h-4 mr-2" }),
|
|
186
|
+
"Click to open dropdown"
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
x && /* @__PURE__ */ e("div", { className: "absolute top-full left-0 right-0 mt-2 bg-white dark:bg-gray-800 border rounded-lg shadow-lg p-4 z-10", children: /* @__PURE__ */ e(t, { tag: "p", className: "text-sm", children: "Click outside to close this dropdown" }) })
|
|
191
|
+
] })
|
|
192
|
+
] }),
|
|
193
|
+
/* @__PURE__ */ a("div", { children: [
|
|
194
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useCopyToClipboard" }),
|
|
195
|
+
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
196
|
+
/* @__PURE__ */ e(
|
|
197
|
+
"input",
|
|
198
|
+
{
|
|
199
|
+
type: "text",
|
|
200
|
+
value: n,
|
|
201
|
+
onChange: (s) => S(s.target.value),
|
|
202
|
+
className: "w-full px-3 py-2 border rounded-lg dark:bg-gray-800 dark:border-gray-600",
|
|
203
|
+
placeholder: "Enter text to copy"
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ a(r, { onClick: P, className: "w-full", children: [
|
|
207
|
+
/* @__PURE__ */ e(ce, { className: "w-4 h-4 mr-2" }),
|
|
208
|
+
"Copy to Clipboard"
|
|
209
|
+
] }),
|
|
210
|
+
u && /* @__PURE__ */ a(
|
|
211
|
+
t,
|
|
212
|
+
{
|
|
213
|
+
tag: "p",
|
|
214
|
+
className: "text-sm text-green-600 dark:text-green-400",
|
|
215
|
+
children: [
|
|
216
|
+
"✓ Copied: ",
|
|
217
|
+
String(u)
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
] })
|
|
222
|
+
] })
|
|
223
|
+
] })
|
|
224
|
+
] }) }),
|
|
225
|
+
/* @__PURE__ */ e(d, { className: "group hover:shadow-large transition-all duration-300 hover:-translate-y-1", children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
226
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
227
|
+
/* @__PURE__ */ e("div", { className: "p-2 rounded-lg bg-linear-to-br from-green-500 via-emerald-500 to-teal-500 shadow-lg", children: /* @__PURE__ */ e(me, { className: "w-6 h-6 text-white filter drop-shadow-sm" }) }),
|
|
228
|
+
/* @__PURE__ */ e(t, { tag: "h3", className: "text-xl font-semibold", children: "UI State Management" })
|
|
229
|
+
] }),
|
|
230
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "Global state management for UI behaviors and notifications." }),
|
|
231
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
232
|
+
/* @__PURE__ */ a("div", { children: [
|
|
233
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useGridSwitcher" }),
|
|
234
|
+
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
235
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
236
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: "Current layout:" }),
|
|
237
|
+
/* @__PURE__ */ e(l, { className: "text-dark dark:text-white", children: g ? "Compact" : "Normal" })
|
|
238
|
+
] }),
|
|
239
|
+
/* @__PURE__ */ a(
|
|
240
|
+
r,
|
|
241
|
+
{
|
|
242
|
+
onClick: U,
|
|
243
|
+
variant: "ghost",
|
|
244
|
+
className: "w-full",
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ e(he, { className: "w-4 h-4 mr-2" }),
|
|
247
|
+
"Switch to ",
|
|
248
|
+
g ? "Normal" : "Compact"
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
] })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ a("div", { children: [
|
|
255
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useToastStore" }),
|
|
256
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
257
|
+
/* @__PURE__ */ e(
|
|
258
|
+
r,
|
|
259
|
+
{
|
|
260
|
+
color: "success",
|
|
261
|
+
fullWidth: !0,
|
|
262
|
+
onClick: () => o("success"),
|
|
263
|
+
children: "Success"
|
|
264
|
+
}
|
|
265
|
+
),
|
|
266
|
+
/* @__PURE__ */ e(
|
|
267
|
+
r,
|
|
268
|
+
{
|
|
269
|
+
color: "danger",
|
|
270
|
+
fullWidth: !0,
|
|
271
|
+
onClick: () => o("destructive"),
|
|
272
|
+
children: "Error"
|
|
273
|
+
}
|
|
274
|
+
),
|
|
275
|
+
/* @__PURE__ */ e(
|
|
276
|
+
r,
|
|
277
|
+
{
|
|
278
|
+
color: "warning",
|
|
279
|
+
fullWidth: !0,
|
|
280
|
+
onClick: () => o("warning"),
|
|
281
|
+
children: "Warning"
|
|
282
|
+
}
|
|
283
|
+
),
|
|
284
|
+
/* @__PURE__ */ e(
|
|
285
|
+
r,
|
|
286
|
+
{
|
|
287
|
+
color: "info",
|
|
288
|
+
fullWidth: !0,
|
|
289
|
+
onClick: () => o("info"),
|
|
290
|
+
children: "Info"
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
] })
|
|
294
|
+
] })
|
|
295
|
+
] })
|
|
296
|
+
] }) }),
|
|
297
|
+
/* @__PURE__ */ e(d, { className: "group hover:shadow-large transition-all duration-300 hover:-translate-y-1", children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
298
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
299
|
+
/* @__PURE__ */ e("div", { className: "p-2 rounded-lg bg-linear-to-br from-orange-500 via-amber-500 to-yellow-500 shadow-lg", children: /* @__PURE__ */ e(ge, { className: "w-6 h-6 text-white filter drop-shadow-sm" }) }),
|
|
300
|
+
/* @__PURE__ */ e(t, { tag: "h3", className: "text-xl font-semibold", children: "Advanced Utilities" })
|
|
301
|
+
] }),
|
|
302
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "Advanced hooks for complex UI behaviors and interactions." }),
|
|
303
|
+
/* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
304
|
+
/* @__PURE__ */ a("div", { children: [
|
|
305
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useScrollableSlider" }),
|
|
306
|
+
/* @__PURE__ */ a("div", { className: "relative", children: [
|
|
307
|
+
/* @__PURE__ */ e(
|
|
308
|
+
"button",
|
|
309
|
+
{
|
|
310
|
+
ref: G,
|
|
311
|
+
onClick: O,
|
|
312
|
+
className: "absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-white dark:bg-gray-800 border rounded-full p-2 shadow-md opacity-0 invisible transition-opacity",
|
|
313
|
+
children: /* @__PURE__ */ e(pe, { className: "w-4 h-4" })
|
|
314
|
+
}
|
|
315
|
+
),
|
|
316
|
+
/* @__PURE__ */ e(
|
|
317
|
+
"div",
|
|
318
|
+
{
|
|
319
|
+
ref: $,
|
|
320
|
+
className: "flex gap-4 overflow-x-auto scrollbar-hide py-4",
|
|
321
|
+
children: H.map((s) => /* @__PURE__ */ a(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
className: "shrink-0 w-48 p-4 bg-white dark:bg-gray-800 border rounded-lg",
|
|
325
|
+
children: [
|
|
326
|
+
/* @__PURE__ */ e(t, { tag: "h6", className: "font-medium mb-2", children: s.title }),
|
|
327
|
+
/* @__PURE__ */ e(
|
|
328
|
+
t,
|
|
329
|
+
{
|
|
330
|
+
tag: "p",
|
|
331
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
332
|
+
children: s.content
|
|
333
|
+
}
|
|
334
|
+
)
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
s.id
|
|
338
|
+
))
|
|
339
|
+
}
|
|
340
|
+
),
|
|
341
|
+
/* @__PURE__ */ e(
|
|
342
|
+
"button",
|
|
343
|
+
{
|
|
344
|
+
ref: j,
|
|
345
|
+
onClick: A,
|
|
346
|
+
className: "absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-white dark:bg-gray-800 border rounded-full p-2 shadow-md transition-opacity",
|
|
347
|
+
children: /* @__PURE__ */ e(ue, { className: "w-4 h-4" })
|
|
348
|
+
}
|
|
349
|
+
)
|
|
350
|
+
] })
|
|
351
|
+
] }),
|
|
352
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
353
|
+
/* @__PURE__ */ a("div", { children: [
|
|
354
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useEventListener" }),
|
|
355
|
+
/* @__PURE__ */ a("div", { className: "bg-white dark:bg-gray-800 p-4 rounded-lg border", children: [
|
|
356
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-sm mb-2", children: "Press any key to see event detection:" }),
|
|
357
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
358
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: "Last key:" }),
|
|
359
|
+
/* @__PURE__ */ e(l, { className: "text-dark dark:text-white", children: T || "None" })
|
|
360
|
+
] })
|
|
361
|
+
] })
|
|
362
|
+
] }),
|
|
363
|
+
/* @__PURE__ */ a("div", { children: [
|
|
364
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useWindowScroll" }),
|
|
365
|
+
/* @__PURE__ */ a("div", { className: "bg-white dark:bg-gray-800 p-4 rounded-lg border", children: [
|
|
366
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-sm mb-2", children: "Current scroll position:" }),
|
|
367
|
+
/* @__PURE__ */ a("div", { className: "space-y-1", children: [
|
|
368
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
369
|
+
/* @__PURE__ */ e("span", { className: "text-xs text-gray-600 dark:text-gray-400", children: "X:" }),
|
|
370
|
+
/* @__PURE__ */ a(l, { className: "text-dark dark:text-white", children: [
|
|
371
|
+
Math.round(B),
|
|
372
|
+
"px"
|
|
373
|
+
] })
|
|
374
|
+
] }),
|
|
375
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
376
|
+
/* @__PURE__ */ e("span", { className: "text-xs text-gray-600 dark:text-gray-400", children: "Y:" }),
|
|
377
|
+
/* @__PURE__ */ a(l, { className: "text-dark dark:text-white", children: [
|
|
378
|
+
Math.round(z),
|
|
379
|
+
"px"
|
|
380
|
+
] })
|
|
381
|
+
] })
|
|
382
|
+
] })
|
|
383
|
+
] })
|
|
384
|
+
] })
|
|
385
|
+
] }),
|
|
386
|
+
/* @__PURE__ */ a("div", { children: [
|
|
387
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useLockBodyScroll" }),
|
|
388
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-4", children: [
|
|
389
|
+
/* @__PURE__ */ a(r, { onClick: () => m(!0), variant: "ghost", children: [
|
|
390
|
+
/* @__PURE__ */ e(xe, { className: "w-4 h-4 mr-2" }),
|
|
391
|
+
"Open Modal (Locks Scroll)"
|
|
392
|
+
] }),
|
|
393
|
+
/* @__PURE__ */ a(
|
|
394
|
+
t,
|
|
395
|
+
{
|
|
396
|
+
tag: "p",
|
|
397
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
398
|
+
children: [
|
|
399
|
+
"Body scroll is ",
|
|
400
|
+
c ? "locked" : "unlocked"
|
|
401
|
+
]
|
|
402
|
+
}
|
|
403
|
+
)
|
|
404
|
+
] })
|
|
405
|
+
] }),
|
|
406
|
+
/* @__PURE__ */ a("div", { children: [
|
|
407
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-3", children: "useIsMounted" }),
|
|
408
|
+
/* @__PURE__ */ a("div", { className: "bg-white dark:bg-gray-800 p-4 rounded-lg border", children: [
|
|
409
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-sm mb-2", children: "Component mount status:" }),
|
|
410
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
411
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-gray-600 dark:text-gray-400", children: "Status:" }),
|
|
412
|
+
/* @__PURE__ */ e(l, { className: "text-dark dark:text-white", children: I })
|
|
413
|
+
] })
|
|
414
|
+
] })
|
|
415
|
+
] })
|
|
416
|
+
] })
|
|
417
|
+
] }) })
|
|
418
|
+
] }),
|
|
419
|
+
c && /* @__PURE__ */ e("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50", children: /* @__PURE__ */ a("div", { className: "bg-white dark:bg-gray-800 p-6 rounded-lg max-w-md w-full mx-4", children: [
|
|
420
|
+
/* @__PURE__ */ a("div", { className: "flex items-center justify-between mb-4", children: [
|
|
421
|
+
/* @__PURE__ */ e(t, { tag: "h3", className: "font-semibold", children: "Modal with Locked Scroll" }),
|
|
422
|
+
/* @__PURE__ */ e(
|
|
423
|
+
"button",
|
|
424
|
+
{
|
|
425
|
+
onClick: () => m(!1),
|
|
426
|
+
className: "text-gray-500 hover:text-gray-700",
|
|
427
|
+
children: /* @__PURE__ */ e(Ne, { className: "w-5 h-5" })
|
|
428
|
+
}
|
|
429
|
+
)
|
|
430
|
+
] }),
|
|
431
|
+
/* @__PURE__ */ e(
|
|
432
|
+
t,
|
|
433
|
+
{
|
|
434
|
+
tag: "p",
|
|
435
|
+
className: "text-gray-600 dark:text-gray-400 mb-4",
|
|
436
|
+
children: "While this modal is open, body scrolling is locked using the useLockBodyScroll hook. The scrollbar width is preserved to prevent layout shift."
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
/* @__PURE__ */ e(r, { onClick: () => m(!1), className: "w-full", children: "Close Modal" })
|
|
440
|
+
] }) })
|
|
441
|
+
] });
|
|
442
|
+
};
|
|
443
|
+
export {
|
|
444
|
+
Ce as default
|
|
445
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),s=require("./index-BoEJRnmP.js"),t=require("lucide-react");require("react-router-dom");require("react-dom");const P=()=>{const[d,f]=r.useState("Hello, World!"),[m,w]=s.useCopyToClipboard(),[i,o]=r.useState(!1),[x,g]=r.useState(!1),[k,p]=r.useState(""),[T,y]=r.useState("Checking..."),u=s.useBreakpoint(),{isMobile:j}=s.useIsMobile(),{addToast:n}=s.useToastStore(),{isGridCompact:c,setIsGridCompact:C}=s.useGridSwitcher(),{x:S,y:M}=s.useWindowScroll(),N=s.useIsMounted(),b=r.useRef(null),[B,{width:I,height:L}]=s.useElementSize(),[R,v]=s.useMeasure(),{sliderEl:z,sliderPrevBtn:E,sliderNextBtn:W,scrollToTheRight:$,scrollToTheLeft:D}=s.useScrollableSlider("/");s.useLockBodyScroll(i),s.useClickAway(b,()=>{g(!1)}),s.useEventListener("keydown",a=>{p(a.key),setTimeout(()=>p(""),1e3)}),r.useEffect(()=>{y(N?"Component is mounted":"Component is not mounted")},[N]);const G=()=>{w(d),n({id:`copy-${Date.now()}`,title:"Copied!",message:`Copied "${d}" to clipboard`,variant:"success"})},q=()=>{const a=!c;C(a),n({id:`layout-${Date.now()}`,title:"Layout Changed",message:`Switched to ${a?"Compact":"Normal"} layout`,variant:"info"})},l=(a="success")=>{n({id:`toast-${Date.now()}`,title:"Test Toast",message:`This is a ${a} toast notification`,variant:a,timeout:3e3})},O=Array.from({length:10},(a,h)=>({id:h+1,title:`Item ${h+1}`,content:`Content for item ${h+1}`}));return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(s.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"Live Hook Demonstrations"}),e.jsx(s.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Interactive examples showing hooks in action"})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsx(s.CardContainer,{className:"group hover:shadow-large transition-all duration-300 hover:-translate-y-1",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-blue-500 via-cyan-500 to-teal-500 shadow-lg",children:e.jsx(t.Monitor,{className:"w-6 h-6 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h3",className:"text-xl font-semibold",children:"Responsive Detection"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"Real-time breakpoint detection and mobile state tracking."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg border",children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useBreakpoint"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Current:"}),e.jsx(s.Badge,{className:"text-dark dark:text-white",children:u})]}),e.jsx(s.Typography,{tag:"p",className:"text-xs text-gray-500",children:"Resize your window to see changes"})]})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg border",children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useIsMobile"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Is Mobile:"}),e.jsx(s.Badge,{className:"text-dark dark:text-white",children:j?"Yes":"No"})]}),e.jsx(s.Typography,{tag:"p",className:"text-xs text-gray-500",children:"True for xs, sm, md breakpoints"})]})]})]}),e.jsx("div",{className:"bg-light-dark p-4 rounded-xl border dark:border-gray-700 overflow-x-auto",children:e.jsx(s.CodeBlock,{language:"tsx",noExpand:!0,code:`
|
|
2
|
+
const breakpoint = useBreakpoint();
|
|
3
|
+
const { isMobile } = useIsMobile();
|
|
4
|
+
// Current: ${u}, Mobile: ${j}`})})]})}),e.jsx(s.CardContainer,{className:"group hover:shadow-large transition-all duration-300 hover:-translate-y-1",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-green-500 via-emerald-500 to-teal-500 shadow-lg",children:e.jsx(t.Ruler,{className:"w-6 h-6 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h3",className:"text-xl font-semibold",children:"Element Measurement"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"Track element dimensions and bounds in real-time."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useElementSize"}),e.jsxs("div",{ref:B,className:"bg-blue-100 dark:bg-blue-800 p-4 rounded-lg border-2 border-dashed border-blue-300 dark:border-blue-600 resize overflow-auto min-h-[100px]",children:[e.jsx(s.Typography,{tag:"p",className:"text-sm",children:"Resize this element (drag corner)"}),e.jsxs(s.Typography,{tag:"p",className:"text-xs text-gray-600 dark:text-gray-400 mt-2",children:["Size: ",Math.round(I)," ×"," ",Math.round(L),"px"]})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useMeasure"}),e.jsxs("div",{ref:R,className:"bg-cyan-100 dark:bg-cyan-800 p-4 rounded-lg border-2 border-dashed border-cyan-300 dark:border-cyan-600 min-h-[100px]",children:[e.jsx(s.Typography,{tag:"p",className:"text-sm",children:"Measured element"}),e.jsxs(s.Typography,{tag:"p",className:"text-xs text-gray-600 dark:text-gray-400 mt-2",children:["Bounds: ",Math.round(v.width)," ×"," ",Math.round(v.height),"px"]})]})]})]})]})}),e.jsx(s.CardContainer,{className:"group hover:shadow-large transition-all duration-300 hover:-translate-y-1",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-purple-500 via-violet-500 to-indigo-500 shadow-lg",children:e.jsx(t.MousePointer,{className:"w-6 h-6 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h3",className:"text-xl font-semibold",children:"User Interaction"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"Interactive demonstrations of click detection and clipboard operations."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useClickAway"}),e.jsxs("div",{className:"relative",ref:b,children:[e.jsxs(s.Button,{onClick:()=>g(!x),variant:"ghost",className:"w-full",children:[e.jsx(t.ChevronDown,{className:"w-4 h-4 mr-2"}),"Click to open dropdown"]}),x&&e.jsx("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white dark:bg-gray-800 border rounded-lg shadow-lg p-4 z-10",children:e.jsx(s.Typography,{tag:"p",className:"text-sm",children:"Click outside to close this dropdown"})})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useCopyToClipboard"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("input",{type:"text",value:d,onChange:a=>f(a.target.value),className:"w-full px-3 py-2 border rounded-lg dark:bg-gray-800 dark:border-gray-600",placeholder:"Enter text to copy"}),e.jsxs(s.Button,{onClick:G,className:"w-full",children:[e.jsx(t.Copy,{className:"w-4 h-4 mr-2"}),"Copy to Clipboard"]}),m&&e.jsxs(s.Typography,{tag:"p",className:"text-sm text-green-600 dark:text-green-400",children:["✓ Copied: ",String(m)]})]})]})]})]})}),e.jsx(s.CardContainer,{className:"group hover:shadow-large transition-all duration-300 hover:-translate-y-1",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-green-500 via-emerald-500 to-teal-500 shadow-lg",children:e.jsx(t.Settings,{className:"w-6 h-6 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h3",className:"text-xl font-semibold",children:"UI State Management"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"Global state management for UI behaviors and notifications."}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useGridSwitcher"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Current layout:"}),e.jsx(s.Badge,{className:"text-dark dark:text-white",children:c?"Compact":"Normal"})]}),e.jsxs(s.Button,{onClick:q,variant:"ghost",className:"w-full",children:[e.jsx(t.LayoutGrid,{className:"w-4 h-4 mr-2"}),"Switch to ",c?"Normal":"Compact"]})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useToastStore"}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsx(s.Button,{color:"success",fullWidth:!0,onClick:()=>l("success"),children:"Success"}),e.jsx(s.Button,{color:"danger",fullWidth:!0,onClick:()=>l("destructive"),children:"Error"}),e.jsx(s.Button,{color:"warning",fullWidth:!0,onClick:()=>l("warning"),children:"Warning"}),e.jsx(s.Button,{color:"info",fullWidth:!0,onClick:()=>l("info"),children:"Info"})]})]})]})]})}),e.jsx(s.CardContainer,{className:"group hover:shadow-large transition-all duration-300 hover:-translate-y-1",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-orange-500 via-amber-500 to-yellow-500 shadow-lg",children:e.jsx(t.Zap,{className:"w-6 h-6 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h3",className:"text-xl font-semibold",children:"Advanced Utilities"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"Advanced hooks for complex UI behaviors and interactions."}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useScrollableSlider"}),e.jsxs("div",{className:"relative",children:[e.jsx("button",{ref:E,onClick:D,className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-white dark:bg-gray-800 border rounded-full p-2 shadow-md opacity-0 invisible transition-opacity",children:e.jsx(t.ChevronLeft,{className:"w-4 h-4"})}),e.jsx("div",{ref:z,className:"flex gap-4 overflow-x-auto scrollbar-hide py-4",children:O.map(a=>e.jsxs("div",{className:"shrink-0 w-48 p-4 bg-white dark:bg-gray-800 border rounded-lg",children:[e.jsx(s.Typography,{tag:"h6",className:"font-medium mb-2",children:a.title}),e.jsx(s.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:a.content})]},a.id))}),e.jsx("button",{ref:W,onClick:$,className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-white dark:bg-gray-800 border rounded-full p-2 shadow-md transition-opacity",children:e.jsx(t.ChevronRight,{className:"w-4 h-4"})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useEventListener"}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg border",children:[e.jsx(s.Typography,{tag:"p",className:"text-sm mb-2",children:"Press any key to see event detection:"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Last key:"}),e.jsx(s.Badge,{className:"text-dark dark:text-white",children:k||"None"})]})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useWindowScroll"}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg border",children:[e.jsx(s.Typography,{tag:"p",className:"text-sm mb-2",children:"Current scroll position:"}),e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:"X:"}),e.jsxs(s.Badge,{className:"text-dark dark:text-white",children:[Math.round(S),"px"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:"Y:"}),e.jsxs(s.Badge,{className:"text-dark dark:text-white",children:[Math.round(M),"px"]})]})]})]})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useLockBodyScroll"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(s.Button,{onClick:()=>o(!0),variant:"ghost",children:[e.jsx(t.Lock,{className:"w-4 h-4 mr-2"}),"Open Modal (Locks Scroll)"]}),e.jsxs(s.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["Body scroll is ",i?"locked":"unlocked"]})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-3",children:"useIsMounted"}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-4 rounded-lg border",children:[e.jsx(s.Typography,{tag:"p",className:"text-sm mb-2",children:"Component mount status:"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Status:"}),e.jsx(s.Badge,{className:"text-dark dark:text-white",children:T})]})]})]})]})]})})]}),i&&e.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:e.jsxs("div",{className:"bg-white dark:bg-gray-800 p-6 rounded-lg max-w-md w-full mx-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx(s.Typography,{tag:"h3",className:"font-semibold",children:"Modal with Locked Scroll"}),e.jsx("button",{onClick:()=>o(!1),className:"text-gray-500 hover:text-gray-700",children:e.jsx(t.X,{className:"w-5 h-5"})})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400 mb-4",children:"While this modal is open, body scrolling is locked using the useLockBodyScroll hook. The scrollbar width is preserved to prevent layout shift."}),e.jsx(s.Button,{onClick:()=>o(!1),className:"w-full",children:"Close Modal"})]})})]})};exports.default=P;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-BoEJRnmP.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const c=()=>{const t=[{name:1,value:45e3},{name:2,value:45200},{name:3,value:44800},{name:4,value:45100},{name:5,value:45300}],s=[{key:"prop",label:"Prop",render:r=>e.jsx("code",{className:"text-xs text-brand",children:String(r)})},{key:"type",label:"Type",render:r=>e.jsx("code",{className:"text-xs",children:String(r)})},{key:"default",label:"Default",render:r=>{const i=String(r);return i==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:i})}},{key:"description",label:"Description"}],n=[{prop:"id",type:"string",default:"required",description:"Unique identifier for the price feed"},{prop:"name",type:"string",default:"required",description:"Full name of the cryptocurrency"},{prop:"symbol",type:"string",default:"required",description:"Cryptocurrency symbol"},{prop:"icon",type:"React.ReactElement",default:"required",description:"Icon element for the cryptocurrency"},{prop:"balance",type:"string",default:"required",description:"Coin balance amount"},{prop:"usdBalance",type:"string",default:"required",description:"USD equivalent balance"},{prop:"change",type:"string",default:"required",description:"Price change percentage"},{prop:"isChangePositive",type:"boolean",default:"required",description:"Whether the price change is positive"},{prop:"prices",type:"Price[]",default:"required",description:"Array of price data points for the chart"},{prop:"isBorder",type:"boolean",default:"false",description:"Whether to show border instead of shadow"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(a.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"LivePriceFeed"}),e.jsx(a.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Real-time price display with integrated chart visualization for cryptocurrency price tracking."})]}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Basic Examples",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"With Chart"}),e.jsx(a.LivePriceFeed,{id:"bitcoin",name:"Bitcoin",symbol:"BTC",icon:e.jsx(a.Bitcoin,{className:"w-6 h-6"}),balance:"1.25",usdBalance:"45,000",change:"+2.5%",isChangePositive:!0,prices:t})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Negative Change"}),e.jsx(a.LivePriceFeed,{id:"ethereum",name:"Ethereum",symbol:"ETH",icon:e.jsx(a.Ethereum,{className:"w-6 h-6"}),balance:"5.5",usdBalance:"16,500",change:"-1.8%",isChangePositive:!1,prices:[{name:1,value:3e3},{name:2,value:2950},{name:3,value:2980},{name:4,value:2920},{name:5,value:2900}]})]})]})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(a.BasicTable,{columns:s,data:n})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(a.CodeBlock,{language:"tsx",code:`import { LivePriceFeed } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
const priceData = [
|
|
4
|
+
{ name: 1, value: 45000 },
|
|
5
|
+
{ name: 2, value: 45200 },
|
|
6
|
+
{ name: 3, value: 44800 },
|
|
7
|
+
{ name: 4, value: 45100 },
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
<LivePriceFeed
|
|
11
|
+
id="bitcoin"
|
|
12
|
+
name="Bitcoin"
|
|
13
|
+
symbol="BTC"
|
|
14
|
+
icon={<Bitcoin />}
|
|
15
|
+
balance="1.25"
|
|
16
|
+
usdBalance="45,000"
|
|
17
|
+
change="+2.5%"
|
|
18
|
+
isChangePositive={true}
|
|
19
|
+
prices={priceData}
|
|
20
|
+
/>`})})})})]})};exports.default=c;
|