@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,128 @@
|
|
|
1
|
+
import { jsxs as o, Fragment as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as a, C as p, a as l, B as d } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const g = () => {
|
|
8
|
+
const s = [
|
|
9
|
+
{ key: "prop", label: "Prop" },
|
|
10
|
+
{ key: "type", label: "Type" },
|
|
11
|
+
{ key: "default", label: "Default" },
|
|
12
|
+
{ key: "description", label: "Description" }
|
|
13
|
+
], i = [
|
|
14
|
+
{
|
|
15
|
+
prop: "menuItems",
|
|
16
|
+
type: "IMenuItem[]",
|
|
17
|
+
default: "Required",
|
|
18
|
+
description: "Navigation menu items"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
prop: "layout",
|
|
22
|
+
type: "LAYOUT_OPTIONS",
|
|
23
|
+
default: "HORIZONTAL",
|
|
24
|
+
description: "Layout type: CLEAN, ADMIN, or HORIZONTAL"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
prop: "mode",
|
|
28
|
+
type: "'light' | 'dark'",
|
|
29
|
+
default: "'light'",
|
|
30
|
+
description: "Color mode"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
prop: "showSettings",
|
|
34
|
+
type: "boolean",
|
|
35
|
+
default: "false",
|
|
36
|
+
description: "Show theme settings drawer button"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
prop: "customPaletteColor",
|
|
40
|
+
type: "object",
|
|
41
|
+
default: "-",
|
|
42
|
+
description: "Custom color palette (see Color Configuration)"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
prop: "logo",
|
|
46
|
+
type: "LogoType",
|
|
47
|
+
default: "{ path: '/', name: '' }",
|
|
48
|
+
description: "Logo configuration object with path and name"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
prop: "brandColor",
|
|
52
|
+
type: "PresetColorType",
|
|
53
|
+
default: "-",
|
|
54
|
+
description: "Brand color preset"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
prop: "headerClassName",
|
|
58
|
+
type: "string",
|
|
59
|
+
default: "-",
|
|
60
|
+
description: "Custom CSS classes for header"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
prop: "contentClassName",
|
|
64
|
+
type: "string",
|
|
65
|
+
default: "-",
|
|
66
|
+
description: "Custom CSS classes for content area"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
prop: "fullWidth",
|
|
70
|
+
type: "boolean",
|
|
71
|
+
default: "false",
|
|
72
|
+
description: "Enable full width layout"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
prop: "rightButton",
|
|
76
|
+
type: "ReactNode",
|
|
77
|
+
default: "-",
|
|
78
|
+
description: "Custom button component for header right area"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
prop: "className",
|
|
82
|
+
type: "string",
|
|
83
|
+
default: "-",
|
|
84
|
+
description: "Custom CSS classes for root layout"
|
|
85
|
+
}
|
|
86
|
+
];
|
|
87
|
+
return /* @__PURE__ */ o(n, { children: [
|
|
88
|
+
/* @__PURE__ */ o("div", { className: "text-center", children: [
|
|
89
|
+
/* @__PURE__ */ e(
|
|
90
|
+
a,
|
|
91
|
+
{
|
|
92
|
+
tag: "h2",
|
|
93
|
+
className: "mb-4 text-2xl sm:text-3xl md:text-4xl font-bold",
|
|
94
|
+
children: "ThemeProvider Component"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ e(
|
|
98
|
+
a,
|
|
99
|
+
{
|
|
100
|
+
tag: "p",
|
|
101
|
+
className: "text-base sm:text-lg text-gray-600 dark:text-gray-300 max-w-2xl mx-auto",
|
|
102
|
+
children: "Complete reference for ThemeProvider props and configuration"
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(l, { title: "ThemeProvider Props", className: "mt-2 mb-6", children: /* @__PURE__ */ o("div", { className: "space-y-6", children: [
|
|
107
|
+
/* @__PURE__ */ o(a, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: [
|
|
108
|
+
"The ThemeProvider is the root component that wraps your application and manages all theme state. Located in",
|
|
109
|
+
/* @__PURE__ */ e("code", { className: "px-2 py-1 font-mono rounded text-sm", children: "ui/tucu-ui/src/themes" }),
|
|
110
|
+
"directory."
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ e(
|
|
113
|
+
d,
|
|
114
|
+
{
|
|
115
|
+
columns: s.map((t) => ({
|
|
116
|
+
...t,
|
|
117
|
+
render: (r) => t.key === "prop" ? /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(r ?? "") }) : t.key === "type" || t.key === "default" ? /* @__PURE__ */ e("code", { className: "text-xs text-gray-600 dark:text-gray-400", children: String(r ?? "") }) : t.key === "description" ? /* @__PURE__ */ e("span", { className: "text-xs text-gray-600 dark:text-gray-400", children: String(r ?? "") }) : String(r ?? "")
|
|
118
|
+
})),
|
|
119
|
+
data: i,
|
|
120
|
+
containerClassName: "mb-4"
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
] }) }) })
|
|
124
|
+
] });
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
g as default
|
|
128
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-BoEJRnmP.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const i=()=>{const a=[{key:"prop",label:"Prop"},{key:"type",label:"Type"},{key:"default",label:"Default"},{key:"description",label:"Description"}],s=[{prop:"menuItems",type:"IMenuItem[]",default:"Required",description:"Navigation menu items"},{prop:"layout",type:"LAYOUT_OPTIONS",default:"HORIZONTAL",description:"Layout type: CLEAN, ADMIN, or HORIZONTAL"},{prop:"mode",type:"'light' | 'dark'",default:"'light'",description:"Color mode"},{prop:"showSettings",type:"boolean",default:"false",description:"Show theme settings drawer button"},{prop:"customPaletteColor",type:"object",default:"-",description:"Custom color palette (see Color Configuration)"},{prop:"logo",type:"LogoType",default:"{ path: '/', name: '' }",description:"Logo configuration object with path and name"},{prop:"brandColor",type:"PresetColorType",default:"-",description:"Brand color preset"},{prop:"headerClassName",type:"string",default:"-",description:"Custom CSS classes for header"},{prop:"contentClassName",type:"string",default:"-",description:"Custom CSS classes for content area"},{prop:"fullWidth",type:"boolean",default:"false",description:"Enable full width layout"},{prop:"rightButton",type:"ReactNode",default:"-",description:"Custom button component for header right area"},{prop:"className",type:"string",default:"-",description:"Custom CSS classes for root layout"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center",children:[e.jsx(t.Typography,{tag:"h2",className:"mb-4 text-2xl sm:text-3xl md:text-4xl font-bold",children:"ThemeProvider Component"}),e.jsx(t.Typography,{tag:"p",className:"text-base sm:text-lg text-gray-600 dark:text-gray-300 max-w-2xl mx-auto",children:"Complete reference for ThemeProvider props and configuration"})]}),e.jsx(t.CardContainer,{children:e.jsx(t.CardTitle,{title:"ThemeProvider Props",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs(t.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:["The ThemeProvider is the root component that wraps your application and manages all theme state. Located in",e.jsx("code",{className:"px-2 py-1 font-mono rounded text-sm",children:"ui/tucu-ui/src/themes"}),"directory."]}),e.jsx(t.BasicTable,{columns:a.map(r=>({...r,render:o=>r.key==="prop"?e.jsx("code",{className:"text-xs text-brand",children:String(o??"")}):r.key==="type"||r.key==="default"?e.jsx("code",{className:"text-xs text-gray-600 dark:text-gray-400",children:String(o??"")}):r.key==="description"?e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:String(o??"")}):String(o??"")})),data:s,containerClassName:"mb-4"})]})})})]})};exports.default=i;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-BoEJRnmP.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const i=()=>{const{addToast:a}=t.useToastStore(),r=[{key:"prop",label:"Prop",render:s=>e.jsx("code",{className:"text-xs text-brand",children:String(s)})},{key:"type",label:"Type",render:s=>e.jsx("code",{className:"text-xs",children:String(s)})},{key:"default",label:"Default",render:s=>{const o=String(s);return o==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:o})}},{key:"description",label:"Description"}],n=[{prop:"Toast Component",type:"React.FC",default:"-",description:"The Toast component renders automatically from the toast store"},{prop:"useToastStore",type:"Hook",default:"-",description:"Hook to manage toast notifications"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(t.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"Toast"}),e.jsx(t.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A toast notification system for displaying temporary messages with multiple variants and auto-dismiss functionality."})]}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Basic Examples",className:"mt-2 mb-2",children:e.jsxs("div",{className:"w-full p-4 sm:p-6",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Success Toast"}),e.jsx(t.Button,{onClick:()=>a({id:Date.now().toString(),title:"Success!",message:"Operation completed successfully.",variant:"success"}),children:"Show Success Toast"})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Error Toast"}),e.jsx(t.Button,{onClick:()=>a({id:Date.now().toString(),title:"Error!",message:"Something went wrong.",variant:"destructive"}),children:"Show Error Toast"})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Warning Toast"}),e.jsx(t.Button,{onClick:()=>a({id:Date.now().toString(),title:"Warning!",message:"Please review this information.",variant:"warning"}),children:"Show Warning Toast"})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Info Toast"}),e.jsx(t.Button,{onClick:()=>a({id:Date.now().toString(),title:"Info",message:"Here is some information.",variant:"info"}),children:"Show Info Toast"})]})]}),e.jsx(t.Toast,{})]})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.BasicTable,{columns:r,data:n})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.CodeBlock,{language:"tsx",code:`import { Toast, useToastStore } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
function MyComponent() {
|
|
4
|
+
const { addToast } = useToastStore();
|
|
5
|
+
|
|
6
|
+
const showSuccess = () => {
|
|
7
|
+
addToast({
|
|
8
|
+
id: Date.now().toString(),
|
|
9
|
+
title: 'Success!',
|
|
10
|
+
message: 'Operation completed successfully.',
|
|
11
|
+
variant: 'success',
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const showError = () => {
|
|
16
|
+
addToast({
|
|
17
|
+
id: Date.now().toString(),
|
|
18
|
+
title: 'Error!',
|
|
19
|
+
message: 'Something went wrong.',
|
|
20
|
+
variant: 'destructive',
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<>
|
|
26
|
+
<button onClick={showSuccess}>Show Success</button>
|
|
27
|
+
<button onClick={showError}>Show Error</button>
|
|
28
|
+
<Toast />
|
|
29
|
+
</>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Toast variants
|
|
34
|
+
addToast({ id: Date.now().toString(), variant: 'success', title: 'Success', message: '...' });
|
|
35
|
+
addToast({ id: Date.now().toString(), variant: 'destructive', title: 'Error', message: '...' });
|
|
36
|
+
addToast({ id: Date.now().toString(), variant: 'warning', title: 'Warning', message: '...' });
|
|
37
|
+
addToast({ id: Date.now().toString(), variant: 'info', title: 'Info', message: '...' });`})})})})]})};exports.default=i;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsxs as e, Fragment as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { a6 as d, T as s, C as a, a as i, s as n, a7 as m, B as p, c as h } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const N = () => {
|
|
8
|
+
const { addToast: r } = d();
|
|
9
|
+
return /* @__PURE__ */ e(c, { children: [
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "text-center space-y-4", children: [
|
|
11
|
+
/* @__PURE__ */ t(s, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Toast" }),
|
|
12
|
+
/* @__PURE__ */ t(
|
|
13
|
+
s,
|
|
14
|
+
{
|
|
15
|
+
tag: "p",
|
|
16
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
17
|
+
children: "A toast notification system for displaying temporary messages with multiple variants and auto-dismiss functionality."
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ t(a, { className: "overflow-hidden", children: /* @__PURE__ */ t(i, { title: "Basic Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: [
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
23
|
+
/* @__PURE__ */ e(a, { className: "p-4", children: [
|
|
24
|
+
/* @__PURE__ */ t(s, { tag: "h5", className: "mb-3", children: "Success Toast" }),
|
|
25
|
+
/* @__PURE__ */ t(
|
|
26
|
+
n,
|
|
27
|
+
{
|
|
28
|
+
onClick: () => r({
|
|
29
|
+
id: Date.now().toString(),
|
|
30
|
+
title: "Success!",
|
|
31
|
+
message: "Operation completed successfully.",
|
|
32
|
+
variant: "success"
|
|
33
|
+
}),
|
|
34
|
+
children: "Show Success Toast"
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ e(a, { className: "p-4", children: [
|
|
39
|
+
/* @__PURE__ */ t(s, { tag: "h5", className: "mb-3", children: "Error Toast" }),
|
|
40
|
+
/* @__PURE__ */ t(
|
|
41
|
+
n,
|
|
42
|
+
{
|
|
43
|
+
onClick: () => r({
|
|
44
|
+
id: Date.now().toString(),
|
|
45
|
+
title: "Error!",
|
|
46
|
+
message: "Something went wrong.",
|
|
47
|
+
variant: "destructive"
|
|
48
|
+
}),
|
|
49
|
+
children: "Show Error Toast"
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ e(a, { className: "p-4", children: [
|
|
54
|
+
/* @__PURE__ */ t(s, { tag: "h5", className: "mb-3", children: "Warning Toast" }),
|
|
55
|
+
/* @__PURE__ */ t(
|
|
56
|
+
n,
|
|
57
|
+
{
|
|
58
|
+
onClick: () => r({
|
|
59
|
+
id: Date.now().toString(),
|
|
60
|
+
title: "Warning!",
|
|
61
|
+
message: "Please review this information.",
|
|
62
|
+
variant: "warning"
|
|
63
|
+
}),
|
|
64
|
+
children: "Show Warning Toast"
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ e(a, { className: "p-4", children: [
|
|
69
|
+
/* @__PURE__ */ t(s, { tag: "h5", className: "mb-3", children: "Info Toast" }),
|
|
70
|
+
/* @__PURE__ */ t(
|
|
71
|
+
n,
|
|
72
|
+
{
|
|
73
|
+
onClick: () => r({
|
|
74
|
+
id: Date.now().toString(),
|
|
75
|
+
title: "Info",
|
|
76
|
+
message: "Here is some information.",
|
|
77
|
+
variant: "info"
|
|
78
|
+
}),
|
|
79
|
+
children: "Show Info Toast"
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] })
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ t(m, {})
|
|
85
|
+
] }) }) }),
|
|
86
|
+
/* @__PURE__ */ t(a, { className: "overflow-hidden", children: /* @__PURE__ */ t(i, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ t("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ t(p, { columns: [
|
|
87
|
+
{
|
|
88
|
+
key: "prop",
|
|
89
|
+
label: "Prop",
|
|
90
|
+
render: (o) => /* @__PURE__ */ t("code", { className: "text-xs text-brand", children: String(o) })
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: "type",
|
|
94
|
+
label: "Type",
|
|
95
|
+
render: (o) => /* @__PURE__ */ t("code", { className: "text-xs", children: String(o) })
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
key: "default",
|
|
99
|
+
label: "Default",
|
|
100
|
+
render: (o) => {
|
|
101
|
+
const l = String(o);
|
|
102
|
+
return l === "required" ? /* @__PURE__ */ t("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ t("code", { className: "text-xs", children: l });
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
key: "description",
|
|
107
|
+
label: "Description"
|
|
108
|
+
}
|
|
109
|
+
], data: [
|
|
110
|
+
{
|
|
111
|
+
prop: "Toast Component",
|
|
112
|
+
type: "React.FC",
|
|
113
|
+
default: "-",
|
|
114
|
+
description: "The Toast component renders automatically from the toast store"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
prop: "useToastStore",
|
|
118
|
+
type: "Hook",
|
|
119
|
+
default: "-",
|
|
120
|
+
description: "Hook to manage toast notifications"
|
|
121
|
+
}
|
|
122
|
+
] }) }) }) }),
|
|
123
|
+
/* @__PURE__ */ t(a, { className: "overflow-hidden", children: /* @__PURE__ */ t(i, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ t("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ t(
|
|
124
|
+
h,
|
|
125
|
+
{
|
|
126
|
+
language: "tsx",
|
|
127
|
+
code: `import { Toast, useToastStore } from '@e-burgos/tucu-ui';
|
|
128
|
+
|
|
129
|
+
function MyComponent() {
|
|
130
|
+
const { addToast } = useToastStore();
|
|
131
|
+
|
|
132
|
+
const showSuccess = () => {
|
|
133
|
+
addToast({
|
|
134
|
+
id: Date.now().toString(),
|
|
135
|
+
title: 'Success!',
|
|
136
|
+
message: 'Operation completed successfully.',
|
|
137
|
+
variant: 'success',
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const showError = () => {
|
|
142
|
+
addToast({
|
|
143
|
+
id: Date.now().toString(),
|
|
144
|
+
title: 'Error!',
|
|
145
|
+
message: 'Something went wrong.',
|
|
146
|
+
variant: 'destructive',
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
return (
|
|
151
|
+
<>
|
|
152
|
+
<button onClick={showSuccess}>Show Success</button>
|
|
153
|
+
<button onClick={showError}>Show Error</button>
|
|
154
|
+
<Toast />
|
|
155
|
+
</>
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// Toast variants
|
|
160
|
+
addToast({ id: Date.now().toString(), variant: 'success', title: 'Success', message: '...' });
|
|
161
|
+
addToast({ id: Date.now().toString(), variant: 'destructive', title: 'Error', message: '...' });
|
|
162
|
+
addToast({ id: Date.now().toString(), variant: 'warning', title: 'Warning', message: '...' });
|
|
163
|
+
addToast({ id: Date.now().toString(), variant: 'info', title: 'Info', message: '...' });`
|
|
164
|
+
}
|
|
165
|
+
) }) }) })
|
|
166
|
+
] });
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
N as default
|
|
170
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as h } from "react";
|
|
3
|
+
import { T as l, C as c, a as d, r, B as g, c as p } from "./index-DCf83AyI.mjs";
|
|
4
|
+
import { Save as m } from "lucide-react";
|
|
5
|
+
import "react-router-dom";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const T = () => {
|
|
8
|
+
const [t, s] = h(!1);
|
|
9
|
+
return /* @__PURE__ */ a(o, { children: [
|
|
10
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
11
|
+
/* @__PURE__ */ e(l, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "ToggleBar" }),
|
|
12
|
+
/* @__PURE__ */ e(
|
|
13
|
+
l,
|
|
14
|
+
{
|
|
15
|
+
tag: "p",
|
|
16
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
17
|
+
children: "A toggle bar component with title, subtitle, icon, and optional content. Perfect for settings panels and feature toggles."
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ e(c, { className: "overflow-hidden", children: /* @__PURE__ */ e(d, { title: "Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
22
|
+
/* @__PURE__ */ a(c, { className: "p-4", children: [
|
|
23
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "Basic ToggleBar" }),
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
|
+
r,
|
|
26
|
+
{
|
|
27
|
+
title: "Enable Notifications",
|
|
28
|
+
checked: t,
|
|
29
|
+
onChange: () => s(!t)
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ a(c, { className: "p-4", children: [
|
|
34
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "With Subtitle" }),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
r,
|
|
37
|
+
{
|
|
38
|
+
title: "Dark Mode",
|
|
39
|
+
subTitle: "Switch between light and dark themes",
|
|
40
|
+
checked: t,
|
|
41
|
+
onChange: () => s(!t)
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ a(c, { className: "p-4", children: [
|
|
46
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "With Icon" }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
r,
|
|
49
|
+
{
|
|
50
|
+
title: "Auto Save",
|
|
51
|
+
subTitle: "Automatically save your work",
|
|
52
|
+
icon: /* @__PURE__ */ e(m, { className: "w-5 h-5" }),
|
|
53
|
+
checked: t,
|
|
54
|
+
onChange: () => s(!t)
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ a(c, { className: "p-4", children: [
|
|
59
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "With Children" }),
|
|
60
|
+
/* @__PURE__ */ e(
|
|
61
|
+
r,
|
|
62
|
+
{
|
|
63
|
+
title: "Advanced Settings",
|
|
64
|
+
subTitle: "Show advanced configuration options",
|
|
65
|
+
checked: t,
|
|
66
|
+
onChange: () => s(!t),
|
|
67
|
+
children: /* @__PURE__ */ e("div", { className: "mt-4 space-y-2", children: /* @__PURE__ */ e(
|
|
68
|
+
l,
|
|
69
|
+
{
|
|
70
|
+
tag: "p",
|
|
71
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
72
|
+
children: "Additional content appears here when toggle is enabled."
|
|
73
|
+
}
|
|
74
|
+
) })
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] })
|
|
78
|
+
] }) }) }) }),
|
|
79
|
+
/* @__PURE__ */ e(c, { className: "overflow-hidden", children: /* @__PURE__ */ e(d, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(g, { columns: [
|
|
80
|
+
{
|
|
81
|
+
key: "prop",
|
|
82
|
+
label: "Prop",
|
|
83
|
+
render: (i) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(i) })
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "type",
|
|
87
|
+
label: "Type",
|
|
88
|
+
render: (i) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(i) })
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: "default",
|
|
92
|
+
label: "Default",
|
|
93
|
+
render: (i) => {
|
|
94
|
+
const n = String(i);
|
|
95
|
+
return n === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: n });
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "description",
|
|
100
|
+
label: "Description"
|
|
101
|
+
}
|
|
102
|
+
], data: [
|
|
103
|
+
{
|
|
104
|
+
prop: "title",
|
|
105
|
+
type: "string",
|
|
106
|
+
default: "required",
|
|
107
|
+
description: "Main title text"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
prop: "subTitle",
|
|
111
|
+
type: "string",
|
|
112
|
+
default: "-",
|
|
113
|
+
description: "Subtitle text displayed below the title"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
prop: "icon",
|
|
117
|
+
type: "React.ReactNode",
|
|
118
|
+
default: "-",
|
|
119
|
+
description: "Icon element to display next to the title"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
prop: "checked",
|
|
123
|
+
type: "boolean",
|
|
124
|
+
default: "required",
|
|
125
|
+
description: "Whether the toggle is checked"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
prop: "onChange",
|
|
129
|
+
type: "() => void",
|
|
130
|
+
default: "required",
|
|
131
|
+
description: "Callback when toggle state changes"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
prop: "children",
|
|
135
|
+
type: "React.ReactNode",
|
|
136
|
+
default: "-",
|
|
137
|
+
description: "Content to display below the toggle bar"
|
|
138
|
+
}
|
|
139
|
+
] }) }) }) }),
|
|
140
|
+
/* @__PURE__ */ e(c, { className: "overflow-hidden", children: /* @__PURE__ */ e(d, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
141
|
+
p,
|
|
142
|
+
{
|
|
143
|
+
language: "tsx",
|
|
144
|
+
code: `import { ToggleBar, LucideIcons } from '@e-burgos/tucu-ui';
|
|
145
|
+
|
|
146
|
+
const [checked, setChecked] = useState(false);
|
|
147
|
+
|
|
148
|
+
// Basic usage
|
|
149
|
+
<ToggleBar
|
|
150
|
+
title="Enable Notifications"
|
|
151
|
+
checked={checked}
|
|
152
|
+
onChange={() => setChecked(!checked)}
|
|
153
|
+
/>
|
|
154
|
+
|
|
155
|
+
// With subtitle
|
|
156
|
+
<ToggleBar
|
|
157
|
+
title="Dark Mode"
|
|
158
|
+
subTitle="Switch between light and dark themes"
|
|
159
|
+
checked={checked}
|
|
160
|
+
onChange={() => setChecked(!checked)}
|
|
161
|
+
/>
|
|
162
|
+
|
|
163
|
+
// With icon
|
|
164
|
+
<ToggleBar
|
|
165
|
+
title="Auto Save"
|
|
166
|
+
icon={<LucideIcons.Save className="w-5 h-5" />}
|
|
167
|
+
checked={checked}
|
|
168
|
+
onChange={() => setChecked(!checked)}
|
|
169
|
+
/>
|
|
170
|
+
|
|
171
|
+
// With children
|
|
172
|
+
<ToggleBar
|
|
173
|
+
title="Advanced Settings"
|
|
174
|
+
checked={checked}
|
|
175
|
+
onChange={() => setChecked(!checked)}
|
|
176
|
+
>
|
|
177
|
+
<div className="mt-4">
|
|
178
|
+
<p>Additional content here</p>
|
|
179
|
+
</div>
|
|
180
|
+
</ToggleBar>`
|
|
181
|
+
}
|
|
182
|
+
) }) }) })
|
|
183
|
+
] });
|
|
184
|
+
};
|
|
185
|
+
export {
|
|
186
|
+
T as default
|
|
187
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),t=require("./index-BoEJRnmP.js"),d=require("lucide-react");require("react-router-dom");require("react-dom");const o=()=>{const[a,l]=n.useState(!1),i=[{key:"prop",label:"Prop",render:s=>e.jsx("code",{className:"text-xs text-brand",children:String(s)})},{key:"type",label:"Type",render:s=>e.jsx("code",{className:"text-xs",children:String(s)})},{key:"default",label:"Default",render:s=>{const c=String(s);return c==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:c})}},{key:"description",label:"Description"}],r=[{prop:"title",type:"string",default:"required",description:"Main title text"},{prop:"subTitle",type:"string",default:"-",description:"Subtitle text displayed below the title"},{prop:"icon",type:"React.ReactNode",default:"-",description:"Icon element to display next to the title"},{prop:"checked",type:"boolean",default:"required",description:"Whether the toggle is checked"},{prop:"onChange",type:"() => void",default:"required",description:"Callback when toggle state changes"},{prop:"children",type:"React.ReactNode",default:"-",description:"Content to display below the toggle bar"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(t.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"ToggleBar"}),e.jsx(t.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A toggle bar component with title, subtitle, icon, and optional content. Perfect for settings panels and feature toggles."})]}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Examples",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Basic ToggleBar"}),e.jsx(t.ToggleBar,{title:"Enable Notifications",checked:a,onChange:()=>l(!a)})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"With Subtitle"}),e.jsx(t.ToggleBar,{title:"Dark Mode",subTitle:"Switch between light and dark themes",checked:a,onChange:()=>l(!a)})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"With Icon"}),e.jsx(t.ToggleBar,{title:"Auto Save",subTitle:"Automatically save your work",icon:e.jsx(d.Save,{className:"w-5 h-5"}),checked:a,onChange:()=>l(!a)})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"With Children"}),e.jsx(t.ToggleBar,{title:"Advanced Settings",subTitle:"Show advanced configuration options",checked:a,onChange:()=>l(!a),children:e.jsx("div",{className:"mt-4 space-y-2",children:e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Additional content appears here when toggle is enabled."})})})]})]})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.BasicTable,{columns:i,data:r})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.CodeBlock,{language:"tsx",code:`import { ToggleBar, LucideIcons } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
const [checked, setChecked] = useState(false);
|
|
4
|
+
|
|
5
|
+
// Basic usage
|
|
6
|
+
<ToggleBar
|
|
7
|
+
title="Enable Notifications"
|
|
8
|
+
checked={checked}
|
|
9
|
+
onChange={() => setChecked(!checked)}
|
|
10
|
+
/>
|
|
11
|
+
|
|
12
|
+
// With subtitle
|
|
13
|
+
<ToggleBar
|
|
14
|
+
title="Dark Mode"
|
|
15
|
+
subTitle="Switch between light and dark themes"
|
|
16
|
+
checked={checked}
|
|
17
|
+
onChange={() => setChecked(!checked)}
|
|
18
|
+
/>
|
|
19
|
+
|
|
20
|
+
// With icon
|
|
21
|
+
<ToggleBar
|
|
22
|
+
title="Auto Save"
|
|
23
|
+
icon={<LucideIcons.Save className="w-5 h-5" />}
|
|
24
|
+
checked={checked}
|
|
25
|
+
onChange={() => setChecked(!checked)}
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
// With children
|
|
29
|
+
<ToggleBar
|
|
30
|
+
title="Advanced Settings"
|
|
31
|
+
checked={checked}
|
|
32
|
+
onChange={() => setChecked(!checked)}
|
|
33
|
+
>
|
|
34
|
+
<div className="mt-4">
|
|
35
|
+
<p>Additional content here</p>
|
|
36
|
+
</div>
|
|
37
|
+
</ToggleBar>`})})})})]})};exports.default=o;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-BoEJRnmP.js"),l=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const o=()=>{const r=[{key:"prop",label:"Prop",render:s=>e.jsx("code",{className:"text-xs text-brand",children:String(s)})},{key:"type",label:"Type",render:s=>e.jsx("code",{className:"text-xs",children:String(s)})},{key:"default",label:"Default",render:s=>{const t=String(s);return t==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:t})}},{key:"description",label:"Description"}],n=[{prop:"label",type:"string",default:"required",description:"Button label text"},{prop:"icon",type:"React.ReactNode",default:"-",description:"Optional icon to display before the label"},{prop:"href",type:"string",default:"-",description:"Optional link URL"},{prop:"className",type:"string",default:"-",description:"Additional CSS classes"},{prop:"onClick",type:"() => void",default:"-",description:"Click handler function"}];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:"TopupButton"}),e.jsx(a.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A specialized button component for top-up or recharge actions, with support for icons and links."})]}),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:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Basic Topup Button"}),e.jsx(a.TopupButton,{label:"Add Funds"})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"With Icon"}),e.jsx(a.TopupButton,{label:"Top Up Account",icon:e.jsx(l.Plus,{className:"w-4 h-4"})})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"With Link"}),e.jsx(a.TopupButton,{label:"Recharge Now",href:"/topup",icon:e.jsx(l.CreditCard,{className:"w-4 h-4"})})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"With onClick Handler"}),e.jsx(a.TopupButton,{label:"Add Balance",icon:e.jsx(l.Wallet,{className:"w-4 h-4"}),onClick:()=>console.log("Topup clicked")})]})]})})})}),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:r,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 { TopupButton, LucideIcons } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
// Basic usage
|
|
4
|
+
<TopupButton label="Add Funds" />
|
|
5
|
+
|
|
6
|
+
// With icon
|
|
7
|
+
<TopupButton
|
|
8
|
+
label="Top Up Account"
|
|
9
|
+
icon={<LucideIcons.Plus className="w-4 h-4" />}
|
|
10
|
+
/>
|
|
11
|
+
|
|
12
|
+
// With link
|
|
13
|
+
<TopupButton
|
|
14
|
+
label="Recharge Now"
|
|
15
|
+
href="/topup"
|
|
16
|
+
icon={<LucideIcons.CreditCard className="w-4 h-4" />}
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
// With onClick handler
|
|
20
|
+
<TopupButton
|
|
21
|
+
label="Add Balance"
|
|
22
|
+
icon={<LucideIcons.Wallet className="w-4 h-4" />}
|
|
23
|
+
onClick={() => handleTopup()}
|
|
24
|
+
/>`})})})})]})};exports.default=o;
|