@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,132 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { C as c, a as d, T as r } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import { Settings as s, Palette as n } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const A = () => /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(d, { title: "Theme Configuration", className: "mt-2 mb-6", children: /* @__PURE__ */ e("div", { className: "space-y-8", children: /* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-6", children: [
|
|
8
|
+
/* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
9
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "p-2 bg-gradient-to-br from-emerald-500 to-teal-500 rounded-lg shadow-lg", children: /* @__PURE__ */ e(s, { className: "w-5 h-5 text-white filter drop-shadow-sm" }) }),
|
|
11
|
+
/* @__PURE__ */ e(r, { tag: "h4", className: "font-semibold", children: "Available Options" })
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ e("div", { className: "space-y-3", children: [
|
|
14
|
+
{ label: "Mode", value: "'light' | 'dark'" },
|
|
15
|
+
{ label: "Direction", value: "'ltr' | 'rtl'" },
|
|
16
|
+
{
|
|
17
|
+
label: "Layout",
|
|
18
|
+
value: "'clean' | 'admin' | 'horizontal'"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: "Primary Color",
|
|
22
|
+
value: "34+ predefined colors"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "Dark Primary Color",
|
|
26
|
+
value: "34+ predefined colors"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "Secondary Color",
|
|
30
|
+
value: "34+ predefined colors"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "Dark Secondary Color",
|
|
34
|
+
value: "34+ predefined colors"
|
|
35
|
+
},
|
|
36
|
+
{ label: "Accent Color", value: "34+ predefined colors" },
|
|
37
|
+
{
|
|
38
|
+
label: "Dark Accent Color",
|
|
39
|
+
value: "34+ predefined colors"
|
|
40
|
+
},
|
|
41
|
+
{ label: "Muted Color", value: "34+ predefined colors" },
|
|
42
|
+
{
|
|
43
|
+
label: "Dark Muted Color",
|
|
44
|
+
value: "34+ predefined colors"
|
|
45
|
+
},
|
|
46
|
+
{ label: "Dark Background", value: "Theme base colors" },
|
|
47
|
+
{ label: "Light Background", value: "Theme base colors" },
|
|
48
|
+
{ label: "Light Dark", value: "Theme base colors" },
|
|
49
|
+
{ label: "Dark Light Dark", value: "Theme base colors" },
|
|
50
|
+
{ label: "Language", value: "'en' | 'es' | 'fr'" }
|
|
51
|
+
].map((l, o) => /* @__PURE__ */ a(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: "flex justify-between items-center py-2 px-3 bg-gray-200 dark:bg-gray-800 rounded-lg",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ e("span", { className: "font-medium", children: l.label }),
|
|
57
|
+
/* @__PURE__ */ e("code", { className: "text-sm text-gray-600 dark:text-gray-400", children: l.value })
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
o
|
|
61
|
+
)) })
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ a("div", { className: "space-y-4 mt-4", children: [
|
|
64
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "p-2 bg-gradient-to-br from-pink-500 to-rose-500 rounded-lg shadow-lg", children: /* @__PURE__ */ e(n, { className: "w-5 h-5 text-white filter drop-shadow-sm" }) }),
|
|
66
|
+
/* @__PURE__ */ e(r, { tag: "h4", className: "font-semibold", children: "Color Presets" })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3 overflow-y-auto", children: [
|
|
69
|
+
{ name: "DEFAULT_PRIMARY", color: "#0052ff" },
|
|
70
|
+
{ name: "DEFAULT_DARK_PRIMARY", color: "#578bfa" },
|
|
71
|
+
{ name: "DEFAULT_SECONDARY", color: "#eef0f3" },
|
|
72
|
+
{ name: "DEFAULT_DARK_SECONDARY", color: "#282b31" },
|
|
73
|
+
{ name: "DEFAULT_ACCENT", color: "#f7d21a" },
|
|
74
|
+
{ name: "DEFAULT_DARK_ACCENT", color: "#936000" },
|
|
75
|
+
{ name: "DEFAULT_MUTED", color: "#5b616e" },
|
|
76
|
+
{ name: "DEFAULT_DARK_MUTED", color: "#8a919e" },
|
|
77
|
+
{ name: "DEFAULT_LIGHT_BG", color: "#ffffff" },
|
|
78
|
+
{ name: "DEFAULT_DARK_BG", color: "#0a0b0d" },
|
|
79
|
+
{ name: "DEFAULT_LIGHT_DARK", color: "#f7f8f9" },
|
|
80
|
+
{ name: "DEFAULT_DARK_LIGHT_DARK", color: "#141519" },
|
|
81
|
+
{ name: "BLUE", color: "#105eff" },
|
|
82
|
+
{ name: "DARK_BLUE", color: "#2162ee" },
|
|
83
|
+
{ name: "GREEN", color: "#129961" },
|
|
84
|
+
{ name: "DARK_GREEN", color: "#159962" },
|
|
85
|
+
{ name: "ORANGE", color: "#e1591b" },
|
|
86
|
+
{ name: "DARK_ORANGE", color: "#e66020" },
|
|
87
|
+
{ name: "GRAY", color: "#717886" },
|
|
88
|
+
{ name: "DARK_GRAY", color: "#727886" },
|
|
89
|
+
{ name: "INDIGO", color: "#596ff2" },
|
|
90
|
+
{ name: "DARK_INDIGO", color: "#5c71ee" },
|
|
91
|
+
{ name: "PINK", color: "#cb51bb" },
|
|
92
|
+
{ name: "DARK_PINK", color: "#d058c1" },
|
|
93
|
+
{ name: "PURPLE", color: "#9d6bf2" },
|
|
94
|
+
{ name: "DARK_PURPLE", color: "#bc7bfb" },
|
|
95
|
+
{ name: "RED", color: "#e13947" },
|
|
96
|
+
{ name: "DARK_RED", color: "#e6404e" },
|
|
97
|
+
{ name: "TEAL", color: "#0093cb" },
|
|
98
|
+
{ name: "DARK_TEAL", color: "#0095cd" },
|
|
99
|
+
{ name: "YELLOW", color: "#cf9700" },
|
|
100
|
+
{ name: "DARK_YELLOW", color: "#c79e00" },
|
|
101
|
+
{ name: "CHARTREUSE", color: "#56b340" },
|
|
102
|
+
{ name: "DARK_CHARTREUSE", color: "#7bc869" }
|
|
103
|
+
].map((l, o) => /* @__PURE__ */ a(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: "flex items-center gap-2 p-2 bg-gray-200 dark:bg-gray-800 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ e(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: "w-4 h-4 rounded-full border border-gray-300 dark:border-gray-600 shadow-sm",
|
|
112
|
+
style: { backgroundColor: l.color }
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ e("span", { className: "text-xs font-medium truncate", children: l.name })
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
o
|
|
119
|
+
)) }),
|
|
120
|
+
/* @__PURE__ */ e(
|
|
121
|
+
r,
|
|
122
|
+
{
|
|
123
|
+
tag: "p",
|
|
124
|
+
className: "text-xs text-gray-500 dark:text-gray-400 mt-2",
|
|
125
|
+
children: "34 total color presets available (12 default + 22 spectrum colors)"
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] })
|
|
129
|
+
] }) }) }) });
|
|
130
|
+
export {
|
|
131
|
+
A as default
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./index-BoEJRnmP.js"),o=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const s=()=>e.jsx(l.CardContainer,{children:e.jsx(l.CardTitle,{title:"Theme Configuration",className:"mt-2 mb-6",children:e.jsx("div",{className:"space-y-8",children:e.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-emerald-500 to-teal-500 rounded-lg shadow-lg",children:e.jsx(o.Settings,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(l.Typography,{tag:"h4",className:"font-semibold",children:"Available Options"})]}),e.jsx("div",{className:"space-y-3",children:[{label:"Mode",value:"'light' | 'dark'"},{label:"Direction",value:"'ltr' | 'rtl'"},{label:"Layout",value:"'clean' | 'admin' | 'horizontal'"},{label:"Primary Color",value:"34+ predefined colors"},{label:"Dark Primary Color",value:"34+ predefined colors"},{label:"Secondary Color",value:"34+ predefined colors"},{label:"Dark Secondary Color",value:"34+ predefined colors"},{label:"Accent Color",value:"34+ predefined colors"},{label:"Dark Accent Color",value:"34+ predefined colors"},{label:"Muted Color",value:"34+ predefined colors"},{label:"Dark Muted Color",value:"34+ predefined colors"},{label:"Dark Background",value:"Theme base colors"},{label:"Light Background",value:"Theme base colors"},{label:"Light Dark",value:"Theme base colors"},{label:"Dark Light Dark",value:"Theme base colors"},{label:"Language",value:"'en' | 'es' | 'fr'"}].map((a,r)=>e.jsxs("div",{className:"flex justify-between items-center py-2 px-3 bg-gray-200 dark:bg-gray-800 rounded-lg",children:[e.jsx("span",{className:"font-medium",children:a.label}),e.jsx("code",{className:"text-sm text-gray-600 dark:text-gray-400",children:a.value})]},r))})]}),e.jsxs("div",{className:"space-y-4 mt-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-pink-500 to-rose-500 rounded-lg shadow-lg",children:e.jsx(o.Palette,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(l.Typography,{tag:"h4",className:"font-semibold",children:"Color Presets"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3 overflow-y-auto",children:[{name:"DEFAULT_PRIMARY",color:"#0052ff"},{name:"DEFAULT_DARK_PRIMARY",color:"#578bfa"},{name:"DEFAULT_SECONDARY",color:"#eef0f3"},{name:"DEFAULT_DARK_SECONDARY",color:"#282b31"},{name:"DEFAULT_ACCENT",color:"#f7d21a"},{name:"DEFAULT_DARK_ACCENT",color:"#936000"},{name:"DEFAULT_MUTED",color:"#5b616e"},{name:"DEFAULT_DARK_MUTED",color:"#8a919e"},{name:"DEFAULT_LIGHT_BG",color:"#ffffff"},{name:"DEFAULT_DARK_BG",color:"#0a0b0d"},{name:"DEFAULT_LIGHT_DARK",color:"#f7f8f9"},{name:"DEFAULT_DARK_LIGHT_DARK",color:"#141519"},{name:"BLUE",color:"#105eff"},{name:"DARK_BLUE",color:"#2162ee"},{name:"GREEN",color:"#129961"},{name:"DARK_GREEN",color:"#159962"},{name:"ORANGE",color:"#e1591b"},{name:"DARK_ORANGE",color:"#e66020"},{name:"GRAY",color:"#717886"},{name:"DARK_GRAY",color:"#727886"},{name:"INDIGO",color:"#596ff2"},{name:"DARK_INDIGO",color:"#5c71ee"},{name:"PINK",color:"#cb51bb"},{name:"DARK_PINK",color:"#d058c1"},{name:"PURPLE",color:"#9d6bf2"},{name:"DARK_PURPLE",color:"#bc7bfb"},{name:"RED",color:"#e13947"},{name:"DARK_RED",color:"#e6404e"},{name:"TEAL",color:"#0093cb"},{name:"DARK_TEAL",color:"#0095cd"},{name:"YELLOW",color:"#cf9700"},{name:"DARK_YELLOW",color:"#c79e00"},{name:"CHARTREUSE",color:"#56b340"},{name:"DARK_CHARTREUSE",color:"#7bc869"}].map((a,r)=>e.jsxs("div",{className:"flex items-center gap-2 p-2 bg-gray-200 dark:bg-gray-800 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:[e.jsx("div",{className:"w-4 h-4 rounded-full border border-gray-300 dark:border-gray-600 shadow-sm",style:{backgroundColor:a.color}}),e.jsx("span",{className:"text-xs font-medium truncate",children:a.name})]},r))}),e.jsx(l.Typography,{tag:"p",className:"text-xs text-gray-500 dark:text-gray-400 mt-2",children:"34 total color presets available (12 default + 22 spectrum colors)"})]})]})})})});exports.default=s;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, C as s, a } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const h = () => /* @__PURE__ */ t(l, { children: [
|
|
8
|
+
/* @__PURE__ */ t("div", { className: "text-center", children: [
|
|
9
|
+
/* @__PURE__ */ e(
|
|
10
|
+
r,
|
|
11
|
+
{
|
|
12
|
+
tag: "h2",
|
|
13
|
+
className: "mb-4 text-2xl sm:text-3xl md:text-4xl font-bold",
|
|
14
|
+
children: "Theme Hooks"
|
|
15
|
+
}
|
|
16
|
+
),
|
|
17
|
+
/* @__PURE__ */ e(
|
|
18
|
+
r,
|
|
19
|
+
{
|
|
20
|
+
tag: "p",
|
|
21
|
+
className: "text-base sm:text-lg text-gray-600 dark:text-gray-300 max-w-2xl mx-auto",
|
|
22
|
+
children: "Powerful hooks for theme management and customization"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
27
|
+
/* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(a, { title: "useTheme Hook", className: "mt-2 mb-6", children: /* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
28
|
+
/* @__PURE__ */ t(
|
|
29
|
+
r,
|
|
30
|
+
{
|
|
31
|
+
tag: "p",
|
|
32
|
+
className: "text-gray-600 dark:text-gray-400 text-sm",
|
|
33
|
+
children: [
|
|
34
|
+
"The",
|
|
35
|
+
" ",
|
|
36
|
+
/* @__PURE__ */ e("code", { className: "px-2 py-1 bg-light-dark rounded text-sm", children: "useTheme" }),
|
|
37
|
+
" ",
|
|
38
|
+
"hook provides access to all theme state and setters. It uses Zustand for state management with localStorage persistence."
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: [
|
|
43
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "font-semibold text-sm", children: "Available State:" }),
|
|
44
|
+
/* @__PURE__ */ t("ul", { className: "text-xs text-gray-600 dark:text-gray-400 space-y-1 ml-4 list-disc", children: [
|
|
45
|
+
/* @__PURE__ */ e("li", { children: "mode, layout, direction, logo, lang" }),
|
|
46
|
+
/* @__PURE__ */ e("li", { children: "primaryPreset, darkPrimaryPreset" }),
|
|
47
|
+
/* @__PURE__ */ e("li", { children: "secondaryPreset, darkSecondaryPreset" }),
|
|
48
|
+
/* @__PURE__ */ e("li", { children: "accentPreset, darkAccentPreset" }),
|
|
49
|
+
/* @__PURE__ */ e("li", { children: "mutedPreset, darkMutedPreset" }),
|
|
50
|
+
/* @__PURE__ */ e("li", { children: "darkBgPreset, lightBgPreset" }),
|
|
51
|
+
/* @__PURE__ */ e("li", { children: "lightDarkPreset, darkLightDarkPreset" }),
|
|
52
|
+
/* @__PURE__ */ e("li", { children: "isSettingsOpen, showSettings" })
|
|
53
|
+
] })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ t("div", { className: "space-y-2", children: [
|
|
56
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "font-semibold text-sm", children: "Available Setters:" }),
|
|
57
|
+
/* @__PURE__ */ t("ul", { className: "text-xs text-gray-600 dark:text-gray-400 space-y-1 ml-4 list-disc", children: [
|
|
58
|
+
/* @__PURE__ */ e("li", { children: "setMode, setLayout, setDirection" }),
|
|
59
|
+
/* @__PURE__ */ e("li", { children: "setPrimaryPreset, setDarkPrimaryPreset" }),
|
|
60
|
+
/* @__PURE__ */ e("li", { children: "setSecondaryPreset, setDarkSecondaryPreset" }),
|
|
61
|
+
/* @__PURE__ */ e("li", { children: "setAccentPreset, setDarkAccentPreset" }),
|
|
62
|
+
/* @__PURE__ */ e("li", { children: "setMutedPreset, setDarkMutedPreset" }),
|
|
63
|
+
/* @__PURE__ */ e("li", { children: "setDarkBgPreset, setLightBgPreset" }),
|
|
64
|
+
/* @__PURE__ */ e("li", { children: "setLightDarkPreset, setDarkLightDarkPreset" }),
|
|
65
|
+
/* @__PURE__ */ e("li", { children: "setLogo, setLang, setIsSettingsOpen" }),
|
|
66
|
+
/* @__PURE__ */ e("li", { children: "setShowSettings, restoreDefaultColors" })
|
|
67
|
+
] })
|
|
68
|
+
] })
|
|
69
|
+
] }) }) }),
|
|
70
|
+
/* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(
|
|
71
|
+
a,
|
|
72
|
+
{
|
|
73
|
+
title: "useThemeColor & useDirection",
|
|
74
|
+
className: "mt-2 mb-6",
|
|
75
|
+
children: /* @__PURE__ */ e("div", { className: "space-y-4", children: /* @__PURE__ */ t("div", { className: "space-y-3", children: [
|
|
76
|
+
/* @__PURE__ */ t("div", { children: [
|
|
77
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "font-semibold text-sm mb-2", children: "useThemeColor" }),
|
|
78
|
+
/* @__PURE__ */ e(
|
|
79
|
+
r,
|
|
80
|
+
{
|
|
81
|
+
tag: "p",
|
|
82
|
+
className: "text-xs text-gray-600 dark:text-gray-400 mb-2",
|
|
83
|
+
children: "Automatically used by ThemeWrapper to inject CSS variables into the document root:"
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ t("ul", { className: "text-xs text-gray-600 dark:text-gray-400 space-y-1 ml-4 list-disc", children: [
|
|
87
|
+
/* @__PURE__ */ e("li", { children: "--color-semantic-bg-primary" }),
|
|
88
|
+
/* @__PURE__ */ e("li", { children: "--color-semantic-dark-bg-primary" }),
|
|
89
|
+
/* @__PURE__ */ e("li", { children: "--color-semantic-bg-secondary" }),
|
|
90
|
+
/* @__PURE__ */ e("li", { children: "--color-semantic-accent-bold-yellow" }),
|
|
91
|
+
/* @__PURE__ */ e("li", { children: "--color-semantic-fg-muted" }),
|
|
92
|
+
/* @__PURE__ */ e("li", { children: "--color-semantic-bg" }),
|
|
93
|
+
/* @__PURE__ */ e("li", { children: "--color-semantic-bg-secondary-wash" })
|
|
94
|
+
] })
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ t("div", { children: [
|
|
97
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "font-semibold text-sm mb-2", children: "useDirection" }),
|
|
98
|
+
/* @__PURE__ */ t(
|
|
99
|
+
r,
|
|
100
|
+
{
|
|
101
|
+
tag: "p",
|
|
102
|
+
className: "text-xs text-gray-600 dark:text-gray-400",
|
|
103
|
+
children: [
|
|
104
|
+
"Sets the document direction for RTL/LTR support. Sets",
|
|
105
|
+
" ",
|
|
106
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 bg-light-dark rounded text-xs", children: "document.documentElement.dir" }),
|
|
107
|
+
"."
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] })
|
|
112
|
+
] }) })
|
|
113
|
+
}
|
|
114
|
+
) })
|
|
115
|
+
] })
|
|
116
|
+
] });
|
|
117
|
+
export {
|
|
118
|
+
h as default
|
|
119
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BoEJRnmP.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const t=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center",children:[e.jsx(s.Typography,{tag:"h2",className:"mb-4 text-2xl sm:text-3xl md:text-4xl font-bold",children:"Theme Hooks"}),e.jsx(s.Typography,{tag:"p",className:"text-base sm:text-lg text-gray-600 dark:text-gray-300 max-w-2xl mx-auto",children:"Powerful hooks for theme management and customization"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsx(s.CardContainer,{children:e.jsx(s.CardTitle,{title:"useTheme Hook",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400 text-sm",children:["The"," ",e.jsx("code",{className:"px-2 py-1 bg-light-dark rounded text-sm",children:"useTheme"})," ","hook provides access to all theme state and setters. It uses Zustand for state management with localStorage persistence."]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s.Typography,{tag:"h5",className:"font-semibold text-sm",children:"Available State:"}),e.jsxs("ul",{className:"text-xs text-gray-600 dark:text-gray-400 space-y-1 ml-4 list-disc",children:[e.jsx("li",{children:"mode, layout, direction, logo, lang"}),e.jsx("li",{children:"primaryPreset, darkPrimaryPreset"}),e.jsx("li",{children:"secondaryPreset, darkSecondaryPreset"}),e.jsx("li",{children:"accentPreset, darkAccentPreset"}),e.jsx("li",{children:"mutedPreset, darkMutedPreset"}),e.jsx("li",{children:"darkBgPreset, lightBgPreset"}),e.jsx("li",{children:"lightDarkPreset, darkLightDarkPreset"}),e.jsx("li",{children:"isSettingsOpen, showSettings"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s.Typography,{tag:"h5",className:"font-semibold text-sm",children:"Available Setters:"}),e.jsxs("ul",{className:"text-xs text-gray-600 dark:text-gray-400 space-y-1 ml-4 list-disc",children:[e.jsx("li",{children:"setMode, setLayout, setDirection"}),e.jsx("li",{children:"setPrimaryPreset, setDarkPrimaryPreset"}),e.jsx("li",{children:"setSecondaryPreset, setDarkSecondaryPreset"}),e.jsx("li",{children:"setAccentPreset, setDarkAccentPreset"}),e.jsx("li",{children:"setMutedPreset, setDarkMutedPreset"}),e.jsx("li",{children:"setDarkBgPreset, setLightBgPreset"}),e.jsx("li",{children:"setLightDarkPreset, setDarkLightDarkPreset"}),e.jsx("li",{children:"setLogo, setLang, setIsSettingsOpen"}),e.jsx("li",{children:"setShowSettings, restoreDefaultColors"})]})]})]})})}),e.jsx(s.CardContainer,{children:e.jsx(s.CardTitle,{title:"useThemeColor & useDirection",className:"mt-2 mb-6",children:e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-semibold text-sm mb-2",children:"useThemeColor"}),e.jsx(s.Typography,{tag:"p",className:"text-xs text-gray-600 dark:text-gray-400 mb-2",children:"Automatically used by ThemeWrapper to inject CSS variables into the document root:"}),e.jsxs("ul",{className:"text-xs text-gray-600 dark:text-gray-400 space-y-1 ml-4 list-disc",children:[e.jsx("li",{children:"--color-semantic-bg-primary"}),e.jsx("li",{children:"--color-semantic-dark-bg-primary"}),e.jsx("li",{children:"--color-semantic-bg-secondary"}),e.jsx("li",{children:"--color-semantic-accent-bold-yellow"}),e.jsx("li",{children:"--color-semantic-fg-muted"}),e.jsx("li",{children:"--color-semantic-bg"}),e.jsx("li",{children:"--color-semantic-bg-secondary-wash"})]})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-semibold text-sm mb-2",children:"useDirection"}),e.jsxs(s.Typography,{tag:"p",className:"text-xs text-gray-600 dark:text-gray-400",children:["Sets the document direction for RTL/LTR support. Sets"," ",e.jsx("code",{className:"px-1 py-0.5 bg-light-dark rounded text-xs",children:"document.documentElement.dir"}),"."]})]})]})})})})]})]});exports.default=t;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 o=()=>e.jsx("div",{className:"space-y-8",children:e.jsx(t.CardContainer,{children:e.jsx(t.CardTitle,{title:"ThemeProvider Integration",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 routing system is fully integrated with the ThemeProvider, providing seamless navigation, layout management, and theming support. The ThemeProvider supports two architectural patterns:",e.jsx("strong",{children:" Standalone"})," (default) for traditional SPAs and",e.jsx("strong",{children:" Micro Frontends (MFE)"})," for distributed architectures."]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(t.Typography,{tag:"h4",className:"font-semibold",children:"StandaloneAppThemeProvider Props"}),e.jsx(t.CodeBlock,{language:"typescript",code:`interface StandaloneAppProviderProps
|
|
2
|
+
extends Omit<ThemeWrapperProps, 'menuItems' | 'children'> {
|
|
3
|
+
menuItems: StandaloneAppRoutesMenuItem[]; // Required: Array of route items
|
|
4
|
+
customRoutes?: React.ReactElement<typeof Routes>; // Override default routing
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface ThemeWrapperProps {
|
|
8
|
+
// Layout Configuration
|
|
9
|
+
layout?: 'classic' | 'minimal' | 'none';
|
|
10
|
+
|
|
11
|
+
// Branding
|
|
12
|
+
logo?: { name: string; secondName?: string };
|
|
13
|
+
rightButton?: React.ReactNode;
|
|
14
|
+
|
|
15
|
+
// Theming
|
|
16
|
+
brandColor?: PresetColorType;
|
|
17
|
+
mode?: 'light' | 'dark';
|
|
18
|
+
customPaletteColor?: { ... };
|
|
19
|
+
|
|
20
|
+
// Settings Panel
|
|
21
|
+
showSettings?: boolean;
|
|
22
|
+
}`})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(t.Typography,{tag:"h4",className:"font-semibold",children:"Custom Layout Example"}),e.jsx(t.CodeBlock,{language:"tsx",code:`import { StandaloneAppThemeProvider } from '@e-burgos/tucu-ui';
|
|
23
|
+
|
|
24
|
+
function CustomLayoutApp() {
|
|
25
|
+
return (
|
|
26
|
+
<StandaloneAppThemeProvider
|
|
27
|
+
layout="minimal"
|
|
28
|
+
menuItems={menuItems}
|
|
29
|
+
logo={{ name: 'My', secondName: 'App' }}
|
|
30
|
+
rightButton={
|
|
31
|
+
<div className="flex gap-2">
|
|
32
|
+
<Button variant="ghost" size="small">
|
|
33
|
+
Profile
|
|
34
|
+
</Button>
|
|
35
|
+
<Button variant="ghost" size="small">
|
|
36
|
+
Logout
|
|
37
|
+
</Button>
|
|
38
|
+
</div>
|
|
39
|
+
}
|
|
40
|
+
headerClassName="bg-brand/5 border-b border-brand/20"
|
|
41
|
+
contentClassName="max-w-7xl mx-auto"
|
|
42
|
+
fullWidth={false}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
}`})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(t.Typography,{tag:"h4",className:"font-semibold",children:"Custom Routes Override"}),e.jsxs(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["You can completely override the default routing by providing your own"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"customRoutes"})," ","prop."]}),e.jsx(t.CodeBlock,{language:"tsx",code:`import { Routes, Route } from 'react-router-dom';
|
|
46
|
+
import { StandaloneAppThemeProvider } from '@e-burgos/tucu-ui';
|
|
47
|
+
|
|
48
|
+
function App() {
|
|
49
|
+
return (
|
|
50
|
+
<StandaloneAppThemeProvider
|
|
51
|
+
menuItems={menuItems}
|
|
52
|
+
customRoutes={
|
|
53
|
+
<Routes>
|
|
54
|
+
<Route path="/" element={<HomePage />} />
|
|
55
|
+
<Route path="/custom" element={<CustomPage />} />
|
|
56
|
+
<Route path="*" element={<NotFoundPage />} />
|
|
57
|
+
</Routes>
|
|
58
|
+
}
|
|
59
|
+
/>
|
|
60
|
+
);
|
|
61
|
+
}`})]})]})]})]})})})});exports.default=o;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { C as r, a as s, T as o, c as a } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const h = () => /* @__PURE__ */ e("div", { className: "space-y-8", children: /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(s, { title: "ThemeProvider Integration", className: "mt-2 mb-6", children: /* @__PURE__ */ t("div", { className: "space-y-6", children: [
|
|
8
|
+
/* @__PURE__ */ t(o, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: [
|
|
9
|
+
"The routing system is fully integrated with the ThemeProvider, providing seamless navigation, layout management, and theming support. The ThemeProvider supports two architectural patterns:",
|
|
10
|
+
/* @__PURE__ */ e("strong", { children: " Standalone" }),
|
|
11
|
+
" (default) for traditional SPAs and",
|
|
12
|
+
/* @__PURE__ */ e("strong", { children: " Micro Frontends (MFE)" }),
|
|
13
|
+
" for distributed architectures."
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ t("div", { className: "space-y-6", children: [
|
|
16
|
+
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
17
|
+
/* @__PURE__ */ e(o, { tag: "h4", className: "font-semibold", children: "StandaloneAppThemeProvider Props" }),
|
|
18
|
+
/* @__PURE__ */ e(a, { language: "typescript", code: `interface StandaloneAppProviderProps
|
|
19
|
+
extends Omit<ThemeWrapperProps, 'menuItems' | 'children'> {
|
|
20
|
+
menuItems: StandaloneAppRoutesMenuItem[]; // Required: Array of route items
|
|
21
|
+
customRoutes?: React.ReactElement<typeof Routes>; // Override default routing
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface ThemeWrapperProps {
|
|
25
|
+
// Layout Configuration
|
|
26
|
+
layout?: 'classic' | 'minimal' | 'none';
|
|
27
|
+
|
|
28
|
+
// Branding
|
|
29
|
+
logo?: { name: string; secondName?: string };
|
|
30
|
+
rightButton?: React.ReactNode;
|
|
31
|
+
|
|
32
|
+
// Theming
|
|
33
|
+
brandColor?: PresetColorType;
|
|
34
|
+
mode?: 'light' | 'dark';
|
|
35
|
+
customPaletteColor?: { ... };
|
|
36
|
+
|
|
37
|
+
// Settings Panel
|
|
38
|
+
showSettings?: boolean;
|
|
39
|
+
}` })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: [
|
|
42
|
+
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
43
|
+
/* @__PURE__ */ e(o, { tag: "h4", className: "font-semibold", children: "Custom Layout Example" }),
|
|
44
|
+
/* @__PURE__ */ e(a, { language: "tsx", code: `import { StandaloneAppThemeProvider } from '@e-burgos/tucu-ui';
|
|
45
|
+
|
|
46
|
+
function CustomLayoutApp() {
|
|
47
|
+
return (
|
|
48
|
+
<StandaloneAppThemeProvider
|
|
49
|
+
layout="minimal"
|
|
50
|
+
menuItems={menuItems}
|
|
51
|
+
logo={{ name: 'My', secondName: 'App' }}
|
|
52
|
+
rightButton={
|
|
53
|
+
<div className="flex gap-2">
|
|
54
|
+
<Button variant="ghost" size="small">
|
|
55
|
+
Profile
|
|
56
|
+
</Button>
|
|
57
|
+
<Button variant="ghost" size="small">
|
|
58
|
+
Logout
|
|
59
|
+
</Button>
|
|
60
|
+
</div>
|
|
61
|
+
}
|
|
62
|
+
headerClassName="bg-brand/5 border-b border-brand/20"
|
|
63
|
+
contentClassName="max-w-7xl mx-auto"
|
|
64
|
+
fullWidth={false}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
}` })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
70
|
+
/* @__PURE__ */ e(o, { tag: "h4", className: "font-semibold", children: "Custom Routes Override" }),
|
|
71
|
+
/* @__PURE__ */ t(
|
|
72
|
+
o,
|
|
73
|
+
{
|
|
74
|
+
tag: "p",
|
|
75
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
76
|
+
children: [
|
|
77
|
+
"You can completely override the default routing by providing your own",
|
|
78
|
+
" ",
|
|
79
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs", children: "customRoutes" }),
|
|
80
|
+
" ",
|
|
81
|
+
"prop."
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ e(a, { language: "tsx", code: `import { Routes, Route } from 'react-router-dom';
|
|
86
|
+
import { StandaloneAppThemeProvider } from '@e-burgos/tucu-ui';
|
|
87
|
+
|
|
88
|
+
function App() {
|
|
89
|
+
return (
|
|
90
|
+
<StandaloneAppThemeProvider
|
|
91
|
+
menuItems={menuItems}
|
|
92
|
+
customRoutes={
|
|
93
|
+
<Routes>
|
|
94
|
+
<Route path="/" element={<HomePage />} />
|
|
95
|
+
<Route path="/custom" element={<CustomPage />} />
|
|
96
|
+
<Route path="*" element={<NotFoundPage />} />
|
|
97
|
+
</Routes>
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
100
|
+
);
|
|
101
|
+
}` })
|
|
102
|
+
] })
|
|
103
|
+
] })
|
|
104
|
+
] })
|
|
105
|
+
] }) }) }) });
|
|
106
|
+
export {
|
|
107
|
+
h as default
|
|
108
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsxs as r, Fragment as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { a4 as a, C as d, a as n, T as o } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import { AlertTriangle as i } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const g = () => /* @__PURE__ */ r(t, { children: [
|
|
8
|
+
/* @__PURE__ */ e(a, { variant: "warning", children: /* @__PURE__ */ r("div", { children: [
|
|
9
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-2 font-semibold", children: [
|
|
10
|
+
/* @__PURE__ */ e(i, { className: "h-4 w-4" }),
|
|
11
|
+
"ThemeProvider Required"
|
|
12
|
+
] }),
|
|
13
|
+
/* @__PURE__ */ r("div", { children: [
|
|
14
|
+
"Before using any layout components or theme hooks, you MUST wrap your application with ThemeProvider. All layout components and theme hooks depend on the theme context provided by ThemeProvider. Located in",
|
|
15
|
+
" ",
|
|
16
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded text-xs", children: "ui/tucu-ui/src/themes/components/theme-provider" }),
|
|
17
|
+
"."
|
|
18
|
+
] })
|
|
19
|
+
] }) }),
|
|
20
|
+
/* @__PURE__ */ e(d, { className: "overflow-hidden", children: /* @__PURE__ */ e(n, { title: "Routing System", className: "mt-2 mb-2", children: /* @__PURE__ */ r("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
21
|
+
/* @__PURE__ */ r(o, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: [
|
|
22
|
+
/* @__PURE__ */ e("strong", { children: "ThemeProvider" }),
|
|
23
|
+
" includes",
|
|
24
|
+
" ",
|
|
25
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded text-xs", children: "BrowserRouter" }),
|
|
26
|
+
" ",
|
|
27
|
+
"from React Router and handles routing automatically. You have two options:"
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ r("div", { className: "space-y-4", children: [
|
|
30
|
+
/* @__PURE__ */ r("div", { className: "p-4 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800", children: [
|
|
31
|
+
/* @__PURE__ */ e(o, { tag: "h4", className: "font-semibold mb-2", children: "1. Automatic Routing (Default)" }),
|
|
32
|
+
/* @__PURE__ */ r(
|
|
33
|
+
o,
|
|
34
|
+
{
|
|
35
|
+
tag: "p",
|
|
36
|
+
className: "text-sm text-gray-700 dark:text-gray-300 mb-2",
|
|
37
|
+
children: [
|
|
38
|
+
"Provide ",
|
|
39
|
+
/* @__PURE__ */ e("code", { children: "menuItems" }),
|
|
40
|
+
" with ",
|
|
41
|
+
/* @__PURE__ */ e("code", { children: "component" }),
|
|
42
|
+
" ",
|
|
43
|
+
"prop. ThemeProvider will automatically generate routes from your menu items."
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ r(
|
|
48
|
+
o,
|
|
49
|
+
{
|
|
50
|
+
tag: "p",
|
|
51
|
+
className: "text-xs text-gray-600 dark:text-gray-400",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ e("strong", { children: "Use when:" }),
|
|
54
|
+
" You want routing based on menu items. Each menu item with a ",
|
|
55
|
+
/* @__PURE__ */ e("code", { children: "component" }),
|
|
56
|
+
" prop becomes a route."
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ r("div", { className: "p-4 bg-green-50 dark:bg-green-900/20 rounded-lg border border-green-200 dark:border-green-800", children: [
|
|
62
|
+
/* @__PURE__ */ e(o, { tag: "h4", className: "font-semibold mb-2", children: "2. Custom Routing" }),
|
|
63
|
+
/* @__PURE__ */ r(
|
|
64
|
+
o,
|
|
65
|
+
{
|
|
66
|
+
tag: "p",
|
|
67
|
+
className: "text-sm text-gray-700 dark:text-gray-300 mb-2",
|
|
68
|
+
children: [
|
|
69
|
+
"Provide ",
|
|
70
|
+
/* @__PURE__ */ e("code", { children: "customRoutes" }),
|
|
71
|
+
" prop with your own",
|
|
72
|
+
" ",
|
|
73
|
+
/* @__PURE__ */ e("code", { children: "<Routes>" }),
|
|
74
|
+
" component. This gives you full control over routing."
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ r(
|
|
79
|
+
o,
|
|
80
|
+
{
|
|
81
|
+
tag: "p",
|
|
82
|
+
className: "text-xs text-gray-600 dark:text-gray-400",
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ e("strong", { children: "Use when:" }),
|
|
85
|
+
" You need custom routing logic, landing pages without navigation, or complex routing scenarios."
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] })
|
|
90
|
+
] })
|
|
91
|
+
] }) }) })
|
|
92
|
+
] });
|
|
93
|
+
export {
|
|
94
|
+
g as default
|
|
95
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./index-BoEJRnmP.js"),o=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const t=()=>e.jsxs(e.Fragment,{children:[e.jsx(r.Alert,{variant:"warning",children:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 font-semibold",children:[e.jsx(o.AlertTriangle,{className:"h-4 w-4"}),"ThemeProvider Required"]}),e.jsxs("div",{children:["Before using any layout components or theme hooks, you MUST wrap your application with ThemeProvider. All layout components and theme hooks depend on the theme context provided by ThemeProvider. Located in"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded text-xs",children:"ui/tucu-ui/src/themes/components/theme-provider"}),"."]})]})}),e.jsx(r.CardContainer,{className:"overflow-hidden",children:e.jsx(r.CardTitle,{title:"Routing System",className:"mt-2 mb-2",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs(r.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:[e.jsx("strong",{children:"ThemeProvider"})," includes"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded text-xs",children:"BrowserRouter"})," ","from React Router and handles routing automatically. You have two options:"]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"p-4 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",children:[e.jsx(r.Typography,{tag:"h4",className:"font-semibold mb-2",children:"1. Automatic Routing (Default)"}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-700 dark:text-gray-300 mb-2",children:["Provide ",e.jsx("code",{children:"menuItems"})," with ",e.jsx("code",{children:"component"})," ","prop. ThemeProvider will automatically generate routes from your menu items."]}),e.jsxs(r.Typography,{tag:"p",className:"text-xs text-gray-600 dark:text-gray-400",children:[e.jsx("strong",{children:"Use when:"})," You want routing based on menu items. Each menu item with a ",e.jsx("code",{children:"component"})," prop becomes a route."]})]}),e.jsxs("div",{className:"p-4 bg-green-50 dark:bg-green-900/20 rounded-lg border border-green-200 dark:border-green-800",children:[e.jsx(r.Typography,{tag:"h4",className:"font-semibold mb-2",children:"2. Custom Routing"}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-700 dark:text-gray-300 mb-2",children:["Provide ",e.jsx("code",{children:"customRoutes"})," prop with your own"," ",e.jsx("code",{children:"<Routes>"})," component. This gives you full control over routing."]}),e.jsxs(r.Typography,{tag:"p",className:"text-xs text-gray-600 dark:text-gray-400",children:[e.jsx("strong",{children:"Use when:"})," You need custom routing logic, landing pages without navigation, or complex routing scenarios."]})]})]})]})})})]});exports.default=t;
|