@e-burgos/tucu-ui 1.1.1 → 2.0.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-BWjvmObc.mjs +142 -0
- package/APIReferenceSection-BYpmlTa1.js +1 -0
- package/ActiveLinkSection-QE4rt7E7.mjs +120 -0
- package/ActiveLinkSection-koQfqiWT.js +22 -0
- package/AdvancedColorSystemSection-BMjT0GS3.js +17 -0
- package/AdvancedColorSystemSection-Cm3q7pci.mjs +194 -0
- package/AdvancedFeaturesSection-BvQzMRC_.js +1 -0
- package/AdvancedFeaturesSection-CsHt-5rZ.mjs +100 -0
- package/AdvancedFeaturesSection-UC1uVDPQ.js +1 -0
- package/AdvancedFeaturesSection-o4D1pf9b.mjs +82 -0
- package/AlertSection-DPxTJhXM.mjs +143 -0
- package/AlertSection-Di1Vmdlp.js +25 -0
- package/AnchorLinkSection-Ce1TtPg5.mjs +94 -0
- package/AnchorLinkSection-dexXCWm0.js +19 -0
- package/ArchitecturalPatternsComparisonSection-BGoc7LRz.mjs +325 -0
- package/ArchitecturalPatternsComparisonSection-bFhTZY--.js +31 -0
- package/ArchitectureOverviewSection-0kw6rJQn.mjs +88 -0
- package/ArchitectureOverviewSection-DI3j5QrY.js +1 -0
- package/AuthorCardSection-C9nyTm-Y.js +17 -0
- package/AuthorCardSection-CdrGEAlv.mjs +110 -0
- package/AvatarSection-DurCy8Tv.js +18 -0
- package/AvatarSection-w5aVByxo.mjs +137 -0
- package/BadgeSection-BBrQIp_J.mjs +238 -0
- package/BadgeSection-C18_hgvN.js +48 -0
- package/BasicTableSection-CRoBEEqA.js +35 -0
- package/BasicTableSection-CV_O4PiF.mjs +169 -0
- package/BasicUsageSection-BNMeKpps.js +45 -0
- package/BasicUsageSection-uA18k0GU.mjs +103 -0
- package/BestPracticesSection-B-JPz0Dc.js +1 -0
- package/BestPracticesSection-B9z8NSkq.mjs +57 -0
- package/BestPracticesSection-BATlfVaQ.mjs +49 -0
- package/BestPracticesSection-BDukov7c.mjs +83 -0
- package/BestPracticesSection-BWkl5DsH.mjs +41 -0
- package/BestPracticesSection-BbhipFte.mjs +43 -0
- package/BestPracticesSection-Bp-_tC8C.js +1 -0
- package/BestPracticesSection-CEu4bNZE.js +1 -0
- package/BestPracticesSection-CYtEiufQ.js +1 -0
- package/BestPracticesSection-CaE-0BTV.js +1 -0
- package/BestPracticesSection-CdY0wZsv.js +1 -0
- package/BestPracticesSection-CoE_Xgj2.mjs +84 -0
- package/BestPracticesSection-DN9K2d3_.js +1 -0
- package/BestPracticesSection-n_GJKuXp.mjs +83 -0
- package/BorderRadiusSection-BqRzkDYG.js +1 -0
- package/BorderRadiusSection-CvnMLFCh.mjs +63 -0
- package/ButtonDripSection-BLa_mdeq.mjs +99 -0
- package/ButtonDripSection-D62t7cNU.js +12 -0
- package/ButtonLoaderSection-BAEAsnOQ.js +30 -0
- package/ButtonLoaderSection-dY9Ctlyf.mjs +127 -0
- package/CHANGELOG.md +253 -0
- package/CardContainerSection-Cso5x1TX.mjs +99 -0
- package/CardContainerSection-_OZaMbIu.js +21 -0
- package/CardTitleSection-BNmdH8MJ.mjs +113 -0
- package/CardTitleSection-CGnIM20t.js +19 -0
- package/CarouselCardsSection-CqwkiKuv.js +37 -0
- package/CarouselCardsSection-DJUza5iT.mjs +207 -0
- package/CarouselImageSection-CoNZlkZS.mjs +218 -0
- package/CarouselImageSection-sUP78k0h.js +38 -0
- package/CarouselSection-CLso38c7.mjs +159 -0
- package/CarouselSection-DrLjfsDL.js +24 -0
- package/CheckboxSection-B1Thom62.mjs +221 -0
- package/CheckboxSection-ClRdRrG3.js +26 -0
- package/CodeExamplesSection-DGdE5jIe.mjs +137 -0
- package/CodeExamplesSection-raO1hI2K.js +28 -0
- package/CoinCardSection-BMWMx77E.js +13 -0
- package/CoinCardSection-CcmSvFrb.mjs +174 -0
- package/CoinInfoCardSection-BXKoUx90.mjs +174 -0
- package/CoinInfoCardSection-Cg7mcq06.js +12 -0
- package/CoinListBoxSection-CUGweWcL.mjs +219 -0
- package/CoinListBoxSection-DlBbVyVM.js +24 -0
- package/CollapseSection-98dxj6hh.mjs +126 -0
- package/CollapseSection-kmcNxPMt.js +27 -0
- package/CollectionCardSection-BECI5Bd7.js +17 -0
- package/CollectionCardSection-kQBMh56J.mjs +103 -0
- package/CollectionSelectListSection-DF33zicH.mjs +102 -0
- package/CollectionSelectListSection-Db5SV44f.js +14 -0
- package/ColorCustomizationSection-Bb6emsjF.mjs +117 -0
- package/ColorCustomizationSection-CoATCcOw.js +1 -0
- package/ColorSystemSection-BMcNOrJZ.js +1 -0
- package/ColorSystemSection-Cb3ON86x.mjs +149 -0
- package/CommonErrorsSection-CP45i0KI.mjs +54 -0
- package/CommonErrorsSection-Q2gLNsG4.js +1 -0
- package/ComponentAnatomySection-Bbig6v0L.mjs +72 -0
- package/ComponentAnatomySection-Bq47Shzj.js +1 -0
- package/ComponentStatusSection-2PqavyCq.js +1 -0
- package/ComponentStatusSection-DJCpIv1y.mjs +84 -0
- package/CurrencySwapIconsSection-CycYbE0J.js +7 -0
- package/CurrencySwapIconsSection-JqjAN8xl.mjs +92 -0
- package/CustomColorPaletteSection-CfXiJg17.mjs +54 -0
- package/CustomColorPaletteSection-CzjNz2Lg.js +19 -0
- package/CustomIconsSection-0cWmXojJ.js +3 -0
- package/CustomIconsSection-DJMbKrH3.mjs +162 -0
- package/DefiAppLogoSection-D7jgArKN.mjs +120 -0
- package/DefiAppLogoSection-alsK3oh9.js +36 -0
- package/DesignPrinciplesSection-CbLaXe_T.mjs +81 -0
- package/DesignPrinciplesSection-DHN9U0MX.js +1 -0
- package/DrawerSection-C2gb1jbq.js +41 -0
- package/DrawerSection-CxC9PQJU.mjs +188 -0
- package/DynamicRoutesSection-C0hcJyEO.mjs +100 -0
- package/DynamicRoutesSection-DTEL6uSr.js +42 -0
- package/FileInputSection-BuwiaCIE.mjs +277 -0
- package/FileInputSection-qzkjHIPs.js +65 -0
- package/FileStructureSection-COelsTGH.js +26 -0
- package/FileStructureSection-DGFd5OvW.mjs +87 -0
- package/FormComponentsSection-Dz4NJWIU.mjs +116 -0
- package/FormComponentsSection-jDaUkbDC.js +1 -0
- package/FormMethodsSection-BYQ_foZq.js +55 -0
- package/FormMethodsSection-vLlj8oqq.mjs +119 -0
- package/HamburgerSection-DCyFcRlT.mjs +108 -0
- package/HamburgerSection-jpcdZ_hA.js +18 -0
- package/HookCategoriesSection-CxOrlkB5.mjs +97 -0
- package/HookCategoriesSection-DyOM1Dtj.js +1 -0
- package/HookDocumentationSection-CkH1P0yQ.mjs +272 -0
- package/HookDocumentationSection-b60lRPki.js +73 -0
- package/HookFeaturesSection-CFQ-th28.mjs +81 -0
- package/HookFeaturesSection-CM3rSPy7.js +1 -0
- package/IconArchitectureSection-B44gXgNP.mjs +108 -0
- package/IconArchitectureSection-DNcAfKY5.js +1 -0
- package/IconSizingGuideSection-CIOX5rAk.mjs +69 -0
- package/IconSizingGuideSection-u_m129SM.js +1 -0
- package/IconSystemAPISection-BTFd0SEj.js +1 -0
- package/IconSystemAPISection-C5oHKJSa.mjs +61 -0
- package/IconSystemBenefitsSection-4vjBgOcL.js +1 -0
- package/IconSystemBenefitsSection-DzNHxfsx.mjs +41 -0
- package/ImageSection-B4Egz61c.mjs +612 -0
- package/ImageSection-KRwcaC7i.js +80 -0
- package/ImplementationExamplesSection-B0Iyb8pc.mjs +284 -0
- package/ImplementationExamplesSection-D3GzoJHk.js +178 -0
- package/ImplementationGuidelinesSection-B986S98s.mjs +52 -0
- package/ImplementationGuidelinesSection-Di6FUATm.js +1 -0
- package/ImplementationStatusSection-CqAnYtcw.js +1 -0
- package/ImplementationStatusSection-zClYTFYV.mjs +23 -0
- package/ImplementedFeaturesSection-BzhXFsJc.js +1 -0
- package/ImplementedFeaturesSection-bsALbW35.mjs +116 -0
- package/InputSearcherSection-DQcFOSI_.js +32 -0
- package/InputSearcherSection-uyHUHUxD.mjs +258 -0
- package/InputSection-BhZmA0wW.js +37 -0
- package/InputSection-BnRWQKM5.mjs +265 -0
- package/KeyboardNavigationSection-BVRBWrR_.mjs +69 -0
- package/KeyboardNavigationSection-DkV3cH4w.js +1 -0
- package/LayoutPrinciplesSection-DTVK1_Ht.mjs +106 -0
- package/LayoutPrinciplesSection-wdSSdypw.js +1 -0
- package/LayoutTypesSection-BTUS9xIl.js +1 -0
- package/LayoutTypesSection-D4eq7w9u.mjs +239 -0
- package/ListContainerSection-CMukx5sM.js +38 -0
- package/ListContainerSection-Lq00hl5g.mjs +191 -0
- package/ListItemSection-CEpCtoxu.mjs +191 -0
- package/ListItemSection-D3CkNixV.js +36 -0
- package/LiveDemoSection-DQDdyS8_.js +1 -0
- package/LiveDemoSection-Duz-z9Az.mjs +16 -0
- package/LiveDemonstrationsSection-7OJufZVy.js +4 -0
- package/LiveDemonstrationsSection-DFRqLVsW.mjs +445 -0
- package/LivePriceFeedSection-BwQbsy1e.js +20 -0
- package/LivePriceFeedSection-CVUYaDLi.mjs +187 -0
- package/LoaderSection-DkC3hHKp.js +22 -0
- package/LoaderSection-DsDLwNrN.mjs +143 -0
- package/LogoSection-B_ll9gcD.js +100 -0
- package/LogoSection-BwE_ImN2.mjs +319 -0
- package/LucideIconsSection-BQH5Dipy.mjs +128 -0
- package/LucideIconsSection-DYNzZsEN.js +1 -0
- package/MFESupportSection-C1rBEqCL.js +122 -0
- package/MFESupportSection-CMTM8pC1.mjs +354 -0
- package/MenuItemsGuideSection-CFz7XSzU.mjs +325 -0
- package/MenuItemsGuideSection-uxlCicIJ.js +126 -0
- package/ModalSection-C27D58m_.mjs +158 -0
- package/ModalSection-DkdV4fA3.js +29 -0
- package/NFTGridSection-BtE3eC62.js +11 -0
- package/NFTGridSection-DLjDwzgW.mjs +122 -0
- package/NestedRoutesSection-D-oKOn0R.js +36 -0
- package/NestedRoutesSection-DeQN7AC9.mjs +88 -0
- package/NotificationCardSection-CDjX06Tt.js +28 -0
- package/NotificationCardSection-Ct2oUuXB.mjs +153 -0
- package/PanelActionCardSection-BgWaRFVD.mjs +138 -0
- package/PanelActionCardSection-Dpkzx-FH.js +28 -0
- package/PanelCardSection-DtwFeOlW.js +15 -0
- package/PanelCardSection-g8jYQ2i1.mjs +96 -0
- package/ParamTabSection-DEcMYPi2.mjs +561 -0
- package/ParamTabSection-fAirqQfE.js +92 -0
- package/PinCodeSection-BTtSu9RK.mjs +263 -0
- package/PinCodeSection-HOx7RS53.js +22 -0
- package/ProgressbarSection-C_ipN0ko.mjs +195 -0
- package/ProgressbarSection-Cb4de9hD.js +21 -0
- package/README.md +355 -113
- package/RadioGroupSection-BIMkY1F0.js +27 -0
- package/RadioGroupSection-CLbIvqN6.mjs +288 -0
- package/RadioSection-DZD5W976.js +23 -0
- package/RadioSection-LW7GeXAA.mjs +208 -0
- package/RevealContentSection-PGiR5VJY.mjs +111 -0
- package/RevealContentSection-kDLDHOGV.js +21 -0
- package/RouteConfigurationSection-BmwVvMMw.mjs +81 -0
- package/RouteConfigurationSection-DR7u1n3x.js +40 -0
- package/ScrollToTopSection-BWEgLKlr.js +36 -0
- package/ScrollToTopSection-CXx2x8gR.mjs +193 -0
- package/ScrollbarSection-DsoKO-RW.js +29 -0
- package/ScrollbarSection-Dubf9f65.mjs +146 -0
- package/SelectSection-Btr390sY.mjs +275 -0
- package/SelectSection-D85H1YXr.js +20 -0
- package/SettingsPanelSection-BCjJfaLV.mjs +126 -0
- package/SettingsPanelSection-CySxJ7Tt.js +1 -0
- package/ShadowsSection-D0X4gGde.js +1 -0
- package/ShadowsSection-sQXQR0iT.mjs +90 -0
- package/SidebarMenuSection-CLhinak1.mjs +140 -0
- package/SidebarMenuSection-D9_kKfNh.js +46 -0
- package/SidebarSection-BgHwGWPt.js +25 -0
- package/SidebarSection-DUgnUh5w.mjs +122 -0
- package/SizingSection-B89FO3ff.mjs +86 -0
- package/SizingSection-Z0pVTNKq.js +1 -0
- package/SkeletonSection-BdhX4Xfv.mjs +259 -0
- package/SkeletonSection-sriDQIKQ.js +52 -0
- package/SpacingSystemSection-B9JXurvm.js +1 -0
- package/SpacingSystemSection-BPW-n6rL.mjs +82 -0
- package/SpinnerSection-CUdRcW4b.mjs +107 -0
- package/SpinnerSection-D1xuIeR2.js +17 -0
- package/StandaloneAppSection-BF1C6FEF.mjs +244 -0
- package/StandaloneAppSection-fhZ8XHQq.js +69 -0
- package/SwitchSection-BENFMw9r.mjs +230 -0
- package/SwitchSection-wuPSVKvN.js +20 -0
- package/SystemOverviewSection-DS9SHn0L.mjs +93 -0
- package/SystemOverviewSection-HRr9gFGM.js +1 -0
- package/TabSection-Cb3Fykn2.js +84 -0
- package/TabSection-aOHyWLGr.mjs +331 -0
- package/TabSelectSection-CaGKQfWS.js +100 -0
- package/TabSelectSection-M0E_Atxn.mjs +418 -0
- package/TailwindConfigSection-BreVbZy8.js +19 -0
- package/TailwindConfigSection-C-PDB_22.mjs +152 -0
- package/TestingSection-BW3pNxaB.js +12 -0
- package/TestingSection-BwmJOUpE.mjs +48 -0
- package/TextareaSection-BfNhLRBw.js +21 -0
- package/TextareaSection-kn20lUc6.mjs +220 -0
- package/ThemeArchitectureSection-C7b32fMB.mjs +86 -0
- package/ThemeArchitectureSection-C8pBxgU3.js +1 -0
- package/ThemeConfigurationSection-HI8FyfUk.js +1 -0
- package/ThemeConfigurationSection-dExOlKvV.mjs +132 -0
- package/ThemeHooksSection-00QYTX0m.js +1 -0
- package/ThemeHooksSection-lG4XldVs.mjs +119 -0
- package/ThemeProviderIntegrationSection-ByuwG8qJ.mjs +108 -0
- package/ThemeProviderIntegrationSection-rB1ZigMz.js +61 -0
- package/ThemeProviderRequiredSection-B1-gtNbe.mjs +95 -0
- package/ThemeProviderRequiredSection-v10DfTl0.js +1 -0
- package/ThemeProviderSection-BFOZTXGP.mjs +128 -0
- package/ThemeProviderSection-BsMcUESl.js +1 -0
- package/ToastSection-5qocQ7cH.mjs +170 -0
- package/ToastSection-BKsJOkbs.js +37 -0
- package/ToggleBarSection-Cx7gCx2L.js +37 -0
- package/ToggleBarSection-KeVNyc_h.mjs +187 -0
- package/TopupButtonSection-BkGsoYjc.js +24 -0
- package/TopupButtonSection-DFl6wlGA.mjs +145 -0
- package/TransactionInfoSection-2IX3m2mI.js +16 -0
- package/TransactionInfoSection-DQfuXrqZ.mjs +113 -0
- package/TucuUiLogoSection-BHibuIVc.js +26 -0
- package/TucuUiLogoSection-D5VLGORL.mjs +121 -0
- package/TypographySection-CkBNo8uk.js +1 -0
- package/TypographySection-DszlzyIX.mjs +129 -0
- package/TypographySection-Dv7RJSzI.js +24 -0
- package/TypographySection-fYLxICoM.mjs +214 -0
- package/UsageExamplesSection-Bs8jQesE.mjs +147 -0
- package/UsageExamplesSection-DlCIZC7Y.js +83 -0
- package/UsingThemeSystemSection-BKh8A4-r.mjs +176 -0
- package/UsingThemeSystemSection-Dk5n1wP3.js +140 -0
- package/ValidationSystemSection-9-Sh0rkM.mjs +197 -0
- package/ValidationSystemSection-BrpnhJ2J.js +54 -0
- package/WCAGPrinciplesSection-W_P3HWdG.js +1 -0
- package/WCAGPrinciplesSection-nFfogbYI.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-CjRk4ezu.js +920 -0
- package/index-Hq6IUBmn.mjs +53892 -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,319 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as s, C as o, a as i, a1 as t, B as d, c as m } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const y = () => /* @__PURE__ */ a(r, { children: [
|
|
8
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
9
|
+
/* @__PURE__ */ e(s, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Logo" }),
|
|
10
|
+
/* @__PURE__ */ e(
|
|
11
|
+
s,
|
|
12
|
+
{
|
|
13
|
+
tag: "p",
|
|
14
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
15
|
+
children: "A flexible logo component that automatically adapts to light/dark mode and supports various sizes and configurations."
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ e(o, { className: "overflow-hidden", children: /* @__PURE__ */ e(i, { title: "Basic Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
20
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
21
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Default Logo (uses defaults)" }),
|
|
22
|
+
/* @__PURE__ */ e(t, {})
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
25
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Custom Names" }),
|
|
26
|
+
/* @__PURE__ */ e(t, { name: "Custom", secondName: "App" })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
29
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Different Sizes" }),
|
|
30
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-4 flex-wrap", children: [
|
|
31
|
+
/* @__PURE__ */ e(t, { name: "TUCU", size: "small" }),
|
|
32
|
+
/* @__PURE__ */ e(t, { name: "TUCU", size: "medium" }),
|
|
33
|
+
/* @__PURE__ */ e(t, { name: "TUCU", size: "large" }),
|
|
34
|
+
/* @__PURE__ */ e(t, { name: "TUCU", size: "xlarge" })
|
|
35
|
+
] })
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
38
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "With Custom Link Path" }),
|
|
39
|
+
/* @__PURE__ */ e(t, { name: "TUCU", path: "/home" })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
42
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Isotype Mode (First Letters Only)" }),
|
|
43
|
+
/* @__PURE__ */ e(t, { name: "TUCU", secondName: "UI", isoType: !0 })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
46
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "With Custom Classes" }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
t,
|
|
49
|
+
{
|
|
50
|
+
name: "TUCU",
|
|
51
|
+
className: "opacity-80 hover:opacity-100 transition-opacity"
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
56
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Custom Logo Component" }),
|
|
57
|
+
/* @__PURE__ */ e(
|
|
58
|
+
t,
|
|
59
|
+
{
|
|
60
|
+
name: "MY",
|
|
61
|
+
secondName: "APP",
|
|
62
|
+
logo: /* @__PURE__ */ e("div", { className: "w-16 h-16 bg-linear-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center text-white font-bold text-xl shadow-lg", children: "M" })
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] })
|
|
66
|
+
] }) }) }) }),
|
|
67
|
+
/* @__PURE__ */ e(o, { className: "overflow-hidden", children: /* @__PURE__ */ e(i, { title: "Advanced Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
68
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
69
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Custom Logo with SVG Icon" }),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
t,
|
|
72
|
+
{
|
|
73
|
+
name: "COMPANY",
|
|
74
|
+
secondName: "LLC",
|
|
75
|
+
logo: /* @__PURE__ */ a(
|
|
76
|
+
"svg",
|
|
77
|
+
{
|
|
78
|
+
width: "64",
|
|
79
|
+
height: "64",
|
|
80
|
+
viewBox: "0 0 64 64",
|
|
81
|
+
fill: "none",
|
|
82
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
83
|
+
className: "rounded-lg",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ e(
|
|
86
|
+
"rect",
|
|
87
|
+
{
|
|
88
|
+
width: "64",
|
|
89
|
+
height: "64",
|
|
90
|
+
rx: "12",
|
|
91
|
+
fill: "url(#gradient)"
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ a(
|
|
95
|
+
"linearGradient",
|
|
96
|
+
{
|
|
97
|
+
id: "gradient",
|
|
98
|
+
x1: "0",
|
|
99
|
+
y1: "0",
|
|
100
|
+
x2: "64",
|
|
101
|
+
y2: "64",
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#3B82F6" }),
|
|
104
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#8B5CF6" })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
) }),
|
|
108
|
+
/* @__PURE__ */ e("path", { d: "M32 20L40 28L32 36L24 28L32 20Z", fill: "white" }),
|
|
109
|
+
/* @__PURE__ */ e(
|
|
110
|
+
"path",
|
|
111
|
+
{
|
|
112
|
+
d: "M20 32L28 40L36 32L28 24L20 32Z",
|
|
113
|
+
fill: "white",
|
|
114
|
+
opacity: "0.8"
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
124
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Custom Logo with Image" }),
|
|
125
|
+
/* @__PURE__ */ e(
|
|
126
|
+
t,
|
|
127
|
+
{
|
|
128
|
+
name: "COMPANY",
|
|
129
|
+
secondName: "",
|
|
130
|
+
logo: /* @__PURE__ */ e("div", { className: "w-16 h-16 bg-linear-to-br from-indigo-500 via-purple-500 to-pink-500 rounded-xl flex items-center justify-center text-white font-bold text-2xl shadow-lg border-2 border-white/20", children: "C" })
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
135
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Only Primary Name" }),
|
|
136
|
+
/* @__PURE__ */ e(t, { name: "MYAPP", secondName: "" })
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ a(o, { className: "p-4", children: [
|
|
139
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Only Secondary Name" }),
|
|
140
|
+
/* @__PURE__ */ e(t, { name: "", secondName: "BRAND" })
|
|
141
|
+
] })
|
|
142
|
+
] }) }) }) }),
|
|
143
|
+
/* @__PURE__ */ e(o, { className: "overflow-hidden", children: /* @__PURE__ */ e(i, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(d, { columns: [
|
|
144
|
+
{
|
|
145
|
+
key: "prop",
|
|
146
|
+
label: "Prop",
|
|
147
|
+
render: (l) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(l) })
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
key: "type",
|
|
151
|
+
label: "Type",
|
|
152
|
+
render: (l) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(l) })
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
key: "default",
|
|
156
|
+
label: "Default",
|
|
157
|
+
render: (l) => {
|
|
158
|
+
const n = String(l);
|
|
159
|
+
return n === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: n });
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
key: "description",
|
|
164
|
+
label: "Description"
|
|
165
|
+
}
|
|
166
|
+
], data: [
|
|
167
|
+
{
|
|
168
|
+
prop: "name",
|
|
169
|
+
type: "string",
|
|
170
|
+
default: "-",
|
|
171
|
+
description: 'Primary logo text. Defaults to "TUCU" if not provided'
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
prop: "secondName",
|
|
175
|
+
type: "string",
|
|
176
|
+
default: "-",
|
|
177
|
+
description: 'Secondary logo text. Defaults to "UI" if not provided'
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
prop: "path",
|
|
181
|
+
type: "string",
|
|
182
|
+
default: "'/'",
|
|
183
|
+
description: "Link path for the logo anchor link"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
prop: "className",
|
|
187
|
+
type: "string",
|
|
188
|
+
default: "-",
|
|
189
|
+
description: "Additional CSS classes for the logo container"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
prop: "size",
|
|
193
|
+
type: "'small' | 'medium' | 'large' | 'xlarge'",
|
|
194
|
+
default: "'medium'",
|
|
195
|
+
description: "Size of the logo. Affects both icon and text sizes"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
prop: "logo",
|
|
199
|
+
type: "React.ReactNode | null",
|
|
200
|
+
default: "null",
|
|
201
|
+
description: "Custom logo component to replace the default TucuUiLogo"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
prop: "isoType",
|
|
205
|
+
type: "boolean",
|
|
206
|
+
default: "false",
|
|
207
|
+
description: "Show only the first letter of each name (isotype mode)"
|
|
208
|
+
}
|
|
209
|
+
] }) }) }) }),
|
|
210
|
+
/* @__PURE__ */ e(o, { className: "overflow-hidden", children: /* @__PURE__ */ e(i, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
211
|
+
m,
|
|
212
|
+
{
|
|
213
|
+
language: "tsx",
|
|
214
|
+
code: `import { Logo } from '@e-burgos/tucu-ui';
|
|
215
|
+
|
|
216
|
+
// Default usage (uses "TUCU" and "UI" as defaults)
|
|
217
|
+
<Logo />
|
|
218
|
+
|
|
219
|
+
// Custom names
|
|
220
|
+
<Logo name="Custom" secondName="App" />
|
|
221
|
+
|
|
222
|
+
// Different sizes
|
|
223
|
+
<Logo name="TUCU" size="small" />
|
|
224
|
+
<Logo name="TUCU" size="medium" />
|
|
225
|
+
<Logo name="TUCU" size="large" />
|
|
226
|
+
<Logo name="TUCU" size="xlarge" />
|
|
227
|
+
|
|
228
|
+
// With custom link path
|
|
229
|
+
<Logo name="TUCU" path="/home" />
|
|
230
|
+
|
|
231
|
+
// Isotype mode (shows only first letters)
|
|
232
|
+
<Logo name="TUCU" secondName="UI" isoType />
|
|
233
|
+
|
|
234
|
+
// With custom CSS classes
|
|
235
|
+
<Logo
|
|
236
|
+
name="TUCU"
|
|
237
|
+
className="opacity-80 hover:opacity-100 transition-opacity"
|
|
238
|
+
/>
|
|
239
|
+
|
|
240
|
+
// With custom logo component (ReactNode)
|
|
241
|
+
<Logo
|
|
242
|
+
name="MY"
|
|
243
|
+
secondName="APP"
|
|
244
|
+
logo={
|
|
245
|
+
<div className="w-16 h-16 bg-linear-to-br from-blue-500 to-purple-600 rounded-lg flex items-center justify-center text-white font-bold text-xl shadow-lg">
|
|
246
|
+
M
|
|
247
|
+
</div>
|
|
248
|
+
}
|
|
249
|
+
/>
|
|
250
|
+
|
|
251
|
+
// With custom SVG logo
|
|
252
|
+
<Logo
|
|
253
|
+
name="COMPANY"
|
|
254
|
+
secondName="LLC"
|
|
255
|
+
logo={
|
|
256
|
+
<svg
|
|
257
|
+
width="64"
|
|
258
|
+
height="64"
|
|
259
|
+
viewBox="0 0 64 64"
|
|
260
|
+
fill="none"
|
|
261
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
262
|
+
className="rounded-lg"
|
|
263
|
+
>
|
|
264
|
+
<rect
|
|
265
|
+
width="64"
|
|
266
|
+
height="64"
|
|
267
|
+
rx="12"
|
|
268
|
+
fill="url(#gradient)"
|
|
269
|
+
/>
|
|
270
|
+
<defs>
|
|
271
|
+
<linearGradient
|
|
272
|
+
id="gradient"
|
|
273
|
+
x1="0"
|
|
274
|
+
y1="0"
|
|
275
|
+
x2="64"
|
|
276
|
+
y2="64"
|
|
277
|
+
>
|
|
278
|
+
<stop offset="0%" stopColor="#3B82F6" />
|
|
279
|
+
<stop offset="100%" stopColor="#8B5CF6" />
|
|
280
|
+
</linearGradient>
|
|
281
|
+
</defs>
|
|
282
|
+
<path d="M32 20L40 28L32 36L24 28L32 20Z" fill="white" />
|
|
283
|
+
<path
|
|
284
|
+
d="M20 32L28 40L36 32L28 24L20 32Z"
|
|
285
|
+
fill="white"
|
|
286
|
+
opacity="0.8"
|
|
287
|
+
/>
|
|
288
|
+
</svg>
|
|
289
|
+
}
|
|
290
|
+
/>
|
|
291
|
+
|
|
292
|
+
// Custom logo with image/div component
|
|
293
|
+
<Logo
|
|
294
|
+
name="COMPANY"
|
|
295
|
+
secondName=""
|
|
296
|
+
logo={
|
|
297
|
+
<div className="w-16 h-16 bg-linear-to-br from-indigo-500 via-purple-500 to-pink-500 rounded-xl flex items-center justify-center text-white font-bold text-2xl shadow-lg border-2 border-white/20">
|
|
298
|
+
C
|
|
299
|
+
</div>
|
|
300
|
+
}
|
|
301
|
+
/>
|
|
302
|
+
|
|
303
|
+
// Only primary name (empty secondName)
|
|
304
|
+
<Logo name="MYAPP" secondName="" />
|
|
305
|
+
|
|
306
|
+
// Only secondary name (empty name)
|
|
307
|
+
<Logo name="" secondName="BRAND" />
|
|
308
|
+
|
|
309
|
+
// The component automatically:
|
|
310
|
+
// - Adapts to light/dark mode
|
|
311
|
+
// - Shows TucuUiLogo icon when no custom logo is provided
|
|
312
|
+
// - Defaults to "TUCU" and "UI" if names are undefined
|
|
313
|
+
// - Handles empty strings for name or secondName`
|
|
314
|
+
}
|
|
315
|
+
) }) }) })
|
|
316
|
+
] });
|
|
317
|
+
export {
|
|
318
|
+
y as default
|
|
319
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d } from "react";
|
|
3
|
+
import { T as t, C as p, a as h } from "./index-Hq6IUBmn.mjs";
|
|
4
|
+
import { Home as w, Menu as g, ArrowLeft as x, ArrowRight as N, ChevronUp as u, ChevronDown as v, Grid3X3 as f, List as y, Navigation as C, Plus as b, Minus as L, X as k, Check as I, Edit as T, Trash2 as A, Download as D, Upload as M, Zap as R } from "lucide-react";
|
|
5
|
+
import "react-router-dom";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const j = () => {
|
|
8
|
+
const [r, c] = d(null), l = [
|
|
9
|
+
{
|
|
10
|
+
category: "Navigation & Layout",
|
|
11
|
+
description: "Essential navigation and layout icons from Lucide",
|
|
12
|
+
icon: /* @__PURE__ */ e(C, { className: "w-6 h-6 text-white filter drop-shadow-sm" }),
|
|
13
|
+
color: "from-blue-500 via-indigo-500 to-purple-500",
|
|
14
|
+
icons: [
|
|
15
|
+
{ name: "Home", component: /* @__PURE__ */ e(w, { className: "w-6 h-6" }) },
|
|
16
|
+
{ name: "Menu", component: /* @__PURE__ */ e(g, { className: "w-6 h-6" }) },
|
|
17
|
+
{
|
|
18
|
+
name: "ArrowLeft",
|
|
19
|
+
component: /* @__PURE__ */ e(x, { className: "w-6 h-6" })
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "ArrowRight",
|
|
23
|
+
component: /* @__PURE__ */ e(N, { className: "w-6 h-6" })
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "ChevronUp",
|
|
27
|
+
component: /* @__PURE__ */ e(u, { className: "w-6 h-6" })
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "ChevronDown",
|
|
31
|
+
component: /* @__PURE__ */ e(v, { className: "w-6 h-6" })
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "Grid",
|
|
35
|
+
component: /* @__PURE__ */ e(f, { className: "w-6 h-6" })
|
|
36
|
+
},
|
|
37
|
+
{ name: "List", component: /* @__PURE__ */ e(y, { className: "w-6 h-6" }) }
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
category: "Actions & Controls",
|
|
42
|
+
description: "Common action and control icons from Lucide",
|
|
43
|
+
icon: /* @__PURE__ */ e(R, { className: "w-6 h-6 text-white filter drop-shadow-sm" }),
|
|
44
|
+
color: "from-purple-500 via-pink-500 to-rose-500",
|
|
45
|
+
icons: [
|
|
46
|
+
{ name: "Plus", component: /* @__PURE__ */ e(b, { className: "w-6 h-6" }) },
|
|
47
|
+
{ name: "Minus", component: /* @__PURE__ */ e(L, { className: "w-6 h-6" }) },
|
|
48
|
+
{ name: "X", component: /* @__PURE__ */ e(k, { className: "w-6 h-6" }) },
|
|
49
|
+
{ name: "Check", component: /* @__PURE__ */ e(I, { className: "w-6 h-6" }) },
|
|
50
|
+
{ name: "Edit", component: /* @__PURE__ */ e(T, { className: "w-6 h-6" }) },
|
|
51
|
+
{
|
|
52
|
+
name: "Trash2",
|
|
53
|
+
component: /* @__PURE__ */ e(A, { className: "w-6 h-6" })
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "Download",
|
|
57
|
+
component: /* @__PURE__ */ e(D, { className: "w-6 h-6" })
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "Upload",
|
|
61
|
+
component: /* @__PURE__ */ e(M, { className: "w-6 h-6" })
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
], i = (a) => {
|
|
66
|
+
const s = `<LucideIcons.${a} className="w-6 h-6" />`;
|
|
67
|
+
navigator.clipboard.writeText(s), c(a), setTimeout(() => c(null), 2e3);
|
|
68
|
+
};
|
|
69
|
+
return /* @__PURE__ */ o("div", { className: "space-y-8", children: [
|
|
70
|
+
/* @__PURE__ */ o("div", { className: "text-center space-y-4", children: [
|
|
71
|
+
/* @__PURE__ */ e(t, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Lucide React Icons" }),
|
|
72
|
+
/* @__PURE__ */ e(
|
|
73
|
+
t,
|
|
74
|
+
{
|
|
75
|
+
tag: "p",
|
|
76
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
77
|
+
children: "Popular icons from the Lucide React library (5000+ available)"
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ e("div", { className: "space-y-8", children: l.map((a, s) => /* @__PURE__ */ e(p, { className: "overflow-hidden", children: /* @__PURE__ */ e(h, { title: a.category, className: "mt-2 mb-2", children: /* @__PURE__ */ o("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
82
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-3", children: [
|
|
83
|
+
/* @__PURE__ */ e(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
className: `p-2 rounded-lg bg-linear-to-br ${a.color} shadow-lg`,
|
|
87
|
+
children: a.icon
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ o("div", { children: [
|
|
91
|
+
/* @__PURE__ */ e(t, { tag: "h3", className: "text-xl font-semibold", children: a.category }),
|
|
92
|
+
/* @__PURE__ */ e(
|
|
93
|
+
t,
|
|
94
|
+
{
|
|
95
|
+
tag: "p",
|
|
96
|
+
className: "text-gray-600 dark:text-gray-400",
|
|
97
|
+
children: a.description
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-4 sm:grid-cols-6 md:grid-cols-8 gap-4", children: a.icons.map((n, m) => /* @__PURE__ */ o(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
className: "flex flex-col items-center gap-2 p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors cursor-pointer group relative",
|
|
106
|
+
onClick: () => i(n.name),
|
|
107
|
+
title: `Click to copy: LucideIcons.${n.name}`,
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ e("div", { className: "text-gray-700 dark:text-gray-300 group-hover:text-brand transition-colors", children: n.component }),
|
|
110
|
+
/* @__PURE__ */ e(
|
|
111
|
+
t,
|
|
112
|
+
{
|
|
113
|
+
tag: "span",
|
|
114
|
+
className: "text-xs text-center text-gray-500 dark:text-gray-400",
|
|
115
|
+
children: n.name
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
r === n.name && /* @__PURE__ */ e("div", { className: "absolute -top-8 left-1/2 transform -translate-x-1/2 px-2 py-1 bg-green-500 text-white text-xs rounded whitespace-nowrap z-10", children: "Copied!" })
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
m
|
|
122
|
+
)) })
|
|
123
|
+
] }) }) }, s)) })
|
|
124
|
+
] });
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
j as default
|
|
128
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),o=require("./index-CjRk4ezu.js"),s=require("lucide-react");require("react-router-dom");require("react-dom");const p=()=>{const[r,c]=d.useState(null),i=[{category:"Navigation & Layout",description:"Essential navigation and layout icons from Lucide",icon:e.jsx(s.Navigation,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),color:"from-blue-500 via-indigo-500 to-purple-500",icons:[{name:"Home",component:e.jsx(s.Home,{className:"w-6 h-6"})},{name:"Menu",component:e.jsx(s.Menu,{className:"w-6 h-6"})},{name:"ArrowLeft",component:e.jsx(s.ArrowLeft,{className:"w-6 h-6"})},{name:"ArrowRight",component:e.jsx(s.ArrowRight,{className:"w-6 h-6"})},{name:"ChevronUp",component:e.jsx(s.ChevronUp,{className:"w-6 h-6"})},{name:"ChevronDown",component:e.jsx(s.ChevronDown,{className:"w-6 h-6"})},{name:"Grid",component:e.jsx(s.Grid3X3,{className:"w-6 h-6"})},{name:"List",component:e.jsx(s.List,{className:"w-6 h-6"})}]},{category:"Actions & Controls",description:"Common action and control icons from Lucide",icon:e.jsx(s.Zap,{className:"w-6 h-6 text-white filter drop-shadow-sm"}),color:"from-purple-500 via-pink-500 to-rose-500",icons:[{name:"Plus",component:e.jsx(s.Plus,{className:"w-6 h-6"})},{name:"Minus",component:e.jsx(s.Minus,{className:"w-6 h-6"})},{name:"X",component:e.jsx(s.X,{className:"w-6 h-6"})},{name:"Check",component:e.jsx(s.Check,{className:"w-6 h-6"})},{name:"Edit",component:e.jsx(s.Edit,{className:"w-6 h-6"})},{name:"Trash2",component:e.jsx(s.Trash2,{className:"w-6 h-6"})},{name:"Download",component:e.jsx(s.Download,{className:"w-6 h-6"})},{name:"Upload",component:e.jsx(s.Upload,{className:"w-6 h-6"})}]}],l=a=>{const t=`<LucideIcons.${a} className="w-6 h-6" />`;navigator.clipboard.writeText(t),c(a),setTimeout(()=>c(null),2e3)};return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(o.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"Lucide React Icons"}),e.jsx(o.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Popular icons from the Lucide React library (5000+ available)"})]}),e.jsx("div",{className:"space-y-8",children:i.map((a,t)=>e.jsx(o.CardContainer,{className:"overflow-hidden",children:e.jsx(o.CardTitle,{title:a.category,className:"mt-2 mb-2",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`p-2 rounded-lg bg-linear-to-br ${a.color} shadow-lg`,children:a.icon}),e.jsxs("div",{children:[e.jsx(o.Typography,{tag:"h3",className:"text-xl font-semibold",children:a.category}),e.jsx(o.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:a.description})]})]}),e.jsx("div",{className:"grid grid-cols-4 sm:grid-cols-6 md:grid-cols-8 gap-4",children:a.icons.map((n,m)=>e.jsxs("div",{className:"flex flex-col items-center gap-2 p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors cursor-pointer group relative",onClick:()=>l(n.name),title:`Click to copy: LucideIcons.${n.name}`,children:[e.jsx("div",{className:"text-gray-700 dark:text-gray-300 group-hover:text-brand transition-colors",children:n.component}),e.jsx(o.Typography,{tag:"span",className:"text-xs text-center text-gray-500 dark:text-gray-400",children:n.name}),r===n.name&&e.jsx("div",{className:"absolute -top-8 left-1/2 transform -translate-x-1/2 px-2 py-1 bg-green-500 text-white text-xs rounded whitespace-nowrap z-10",children:"Copied!"})]},m))})]})})},t))})]})};exports.default=p;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./index-CjRk4ezu.js"),a=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const t=()=>e.jsx("div",{className:"space-y-8",children:e.jsx(r.CardContainer,{children:e.jsx(r.CardTitle,{title:"Micro Frontends (MFE) Support",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-purple-500 to-indigo-500 shadow-lg",children:e.jsx(a.Box,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(r.Typography,{tag:"h4",className:"font-semibold",children:"Micro Frontend (MFE) Pattern"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:["The ",e.jsx("strong",{children:"Micro Frontend (MFE) Pattern"})," is designed for distributed architectures where multiple applications need to be deployed independently. It requires explicit route configuration with"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"appRoutesConfig"})," ","and a"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"basePath"}),". Perfect for micro frontend architectures that need route isolation, authentication boundaries, and independent deployments."]}),e.jsx(r.Alert,{variant:"info",dismissible:!1,children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(a.Info,{className:"w-4 h-4"}),e.jsx(r.Typography,{tag:"span",className:"font-semibold",children:"MFE Mode Requirements"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm",children:["When using"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:'architecturalPatterns="mfe"'}),", you must provide"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"basePath"})," ","and"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"appRoutesConfig"}),". TypeScript will enforce these requirements at compile time."]})]})}),e.jsxs("div",{className:"space-y-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 rounded-lg bg-linear-to-br from-indigo-500 to-purple-500 shadow-lg",children:e.jsx(a.Code,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(r.Typography,{tag:"h4",className:"font-semibold",children:"Conditional TypeScript Types"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["The ThemeProvider uses discriminated unions to automatically enforce the correct props based on"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"architecturalPatterns"}),'. When set to "mfe", TypeScript requires MFE-specific props.']}),e.jsx(r.CodeBlock,{language:"typescript",code:`// Conditional TypeScript Types
|
|
2
|
+
// The ThemeProvider automatically infers the correct props based on architecturalPatterns
|
|
3
|
+
|
|
4
|
+
// MFE Pattern
|
|
5
|
+
type MfeThemeProviderProps = MfeAppThemeProviderProps & {
|
|
6
|
+
architecturalPatterns: 'mfe';
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
// TypeScript enforces required props for MFE mode
|
|
10
|
+
// basePath and appRoutesConfig are required when architecturalPatterns="mfe"`})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-purple-500 to-indigo-500 shadow-lg",children:e.jsx(a.Settings,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(r.Typography,{tag:"h4",className:"font-semibold",children:"IAppRouteConfig Interface"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["MFE pattern uses the"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"IAppRouteConfig"})," ","interface for explicit route configuration with access control and route management."]}),e.jsx(r.CodeBlock,{language:"typescript",code:`interface IAppRouteConfig extends RouteProps {
|
|
11
|
+
key: string; // Unique identifier for the route
|
|
12
|
+
isPublic?: boolean; // Whether the route is publicly accessible
|
|
13
|
+
disabled?: boolean; // Whether the route is disabled
|
|
14
|
+
element: JSX.Element; // The component to render
|
|
15
|
+
}`})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-green-500 to-emerald-500 shadow-lg",children:e.jsx(a.Play,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(r.Typography,{tag:"h4",className:"font-semibold",children:"Basic MFE Usage"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["Set"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:'architecturalPatterns="mfe"'})," ","to activate MFE mode. TypeScript will require"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"basePath"})," ","and"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"appRoutesConfig"}),"."]}),e.jsx(r.CodeBlock,{language:"tsx",code:`import { ThemeProvider } from '@e-burgos/tucu-ui';
|
|
16
|
+
import '@e-burgos/tucu-ui/styles';
|
|
17
|
+
|
|
18
|
+
const appRoutesConfig: IAppRouteConfig[] = [
|
|
19
|
+
{
|
|
20
|
+
key: 'home',
|
|
21
|
+
path: '/',
|
|
22
|
+
element: <HomePage />,
|
|
23
|
+
isPublic: true, // Public route, no authentication required
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
key: 'dashboard',
|
|
27
|
+
path: '/dashboard',
|
|
28
|
+
element: <DashboardPage />,
|
|
29
|
+
isPublic: false, // Private route, requires authentication
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: 'profile',
|
|
33
|
+
path: '/profile',
|
|
34
|
+
element: <ProfilePage />,
|
|
35
|
+
isPublic: false,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
function MfeApp() {
|
|
40
|
+
return (
|
|
41
|
+
<ThemeProvider
|
|
42
|
+
architecturalPatterns="mfe" // Activates MFE mode
|
|
43
|
+
basePath="/my-app" // Base path for the micro frontend
|
|
44
|
+
appRoutesConfig={appRoutesConfig} // Required for MFE
|
|
45
|
+
logo={{ name: 'My', secondName: 'App' }}
|
|
46
|
+
showSettings
|
|
47
|
+
/>
|
|
48
|
+
);
|
|
49
|
+
}`})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-orange-500 to-amber-500 shadow-lg",children:e.jsx(a.Zap,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(r.Typography,{tag:"h4",className:"font-semibold",children:"Advanced: Public/Private Routes"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["MFE pattern automatically handles authentication for private routes. Use"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"isPublic"})," ","to control access and"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"disabled"})," ","to temporarily disable routes."]}),e.jsx(r.CodeBlock,{language:"tsx",code:`import { ThemeProvider } from '@e-burgos/tucu-ui';
|
|
50
|
+
import '@e-burgos/tucu-ui/styles';
|
|
51
|
+
|
|
52
|
+
const appRoutesConfig: IAppRouteConfig[] = [
|
|
53
|
+
// Public routes (accessible without authentication)
|
|
54
|
+
{
|
|
55
|
+
key: 'login',
|
|
56
|
+
path: '/login',
|
|
57
|
+
element: <LoginPage />,
|
|
58
|
+
isPublic: true,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: 'register',
|
|
62
|
+
path: '/register',
|
|
63
|
+
element: <RegisterPage />,
|
|
64
|
+
isPublic: true,
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
// Private routes (require authentication)
|
|
68
|
+
{
|
|
69
|
+
key: 'dashboard',
|
|
70
|
+
path: '/dashboard',
|
|
71
|
+
element: <DashboardPage />,
|
|
72
|
+
isPublic: false,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: 'settings',
|
|
76
|
+
path: '/settings',
|
|
77
|
+
element: <SettingsPage />,
|
|
78
|
+
isPublic: false,
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
// Disabled routes (temporarily unavailable)
|
|
82
|
+
{
|
|
83
|
+
key: 'beta-feature',
|
|
84
|
+
path: '/beta',
|
|
85
|
+
element: <BetaFeaturePage />,
|
|
86
|
+
disabled: true,
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
|
|
90
|
+
function MfeApp() {
|
|
91
|
+
return (
|
|
92
|
+
<ThemeProvider
|
|
93
|
+
architecturalPatterns="mfe"
|
|
94
|
+
basePath="/mfe-app"
|
|
95
|
+
appRoutesConfig={appRoutesConfig}
|
|
96
|
+
logo={{ name: 'MFE', secondName: 'App' }}
|
|
97
|
+
showSettings
|
|
98
|
+
// Note: menuItems and customRoutes are NOT allowed in MFE mode
|
|
99
|
+
// TypeScript will show an error if you try to use them
|
|
100
|
+
/>
|
|
101
|
+
);
|
|
102
|
+
}`})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-lg bg-linear-to-br from-red-500 to-pink-500 shadow-lg",children:e.jsx(a.Shield,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(r.Typography,{tag:"h4",className:"font-semibold",children:"Type Safety Examples"})]}),e.jsx(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"TypeScript prevents invalid prop combinations at compile time, ensuring type safety and preventing configuration errors."}),e.jsx(r.CodeBlock,{language:"tsx",code:`// ✅ Correct - MFE Pattern with required props
|
|
103
|
+
<ThemeProvider
|
|
104
|
+
architecturalPatterns="mfe"
|
|
105
|
+
basePath="/app"
|
|
106
|
+
appRoutesConfig={[...]}
|
|
107
|
+
/>
|
|
108
|
+
|
|
109
|
+
// ❌ Error - MFE Pattern without required props
|
|
110
|
+
<ThemeProvider
|
|
111
|
+
architecturalPatterns="mfe"
|
|
112
|
+
// TypeScript Error: Property 'basePath' is missing
|
|
113
|
+
// TypeScript Error: Property 'appRoutesConfig' is missing
|
|
114
|
+
/>
|
|
115
|
+
|
|
116
|
+
// ❌ Error - Mixing MFE with Standalone App props
|
|
117
|
+
<ThemeProvider
|
|
118
|
+
architecturalPatterns="mfe"
|
|
119
|
+
menuItems={[...]} // Error: Property does not exist on MFE type
|
|
120
|
+
basePath="/app"
|
|
121
|
+
appRoutesConfig={[...]}
|
|
122
|
+
/>`})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(r.Typography,{tag:"h4",className:"font-semibold text-lg",children:"Key Features"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(r.CardContainer,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(a.CheckCircle,{className:"w-5 h-5 text-green-500"}),e.jsx(r.Typography,{tag:"h5",className:"font-semibold",children:"Explicit Route Configuration"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["Full control over route configuration with"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"appRoutesConfig"}),". Each route is explicitly defined."]})]}),e.jsxs(r.CardContainer,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(a.CheckCircle,{className:"w-5 h-5 text-green-500"}),e.jsx(r.Typography,{tag:"h5",className:"font-semibold",children:"Route Isolation"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["Each micro frontend has its own"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"basePath"}),", ensuring complete route isolation."]})]}),e.jsxs(r.CardContainer,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(a.CheckCircle,{className:"w-5 h-5 text-green-500"}),e.jsx(r.Typography,{tag:"h5",className:"font-semibold",children:"Authentication Integration"})]}),e.jsxs(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["Built-in support for public/private routes with"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"isPublic"}),". Automatic authentication handling."]})]}),e.jsxs(r.CardContainer,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(a.CheckCircle,{className:"w-5 h-5 text-green-500"}),e.jsx(r.Typography,{tag:"h5",className:"font-semibold",children:"Independent Deployment"})]}),e.jsx(r.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Perfect for micro frontend architectures where each app can be developed, built, and deployed independently."})]})]})]})]})})})});exports.default=t;
|