@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,100 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { C as r, a as n, T as s, c as i } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import { Shield as m, Flag as d, Database as c } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const y = () => /* @__PURE__ */ e("div", { className: "space-y-8", children: /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(n, { title: "Dynamic & Conditional Routes", className: "mt-2 mb-6", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
8
|
+
/* @__PURE__ */ e(s, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "Create dynamic routing based on user permissions, feature flags, or application state." }),
|
|
9
|
+
/* @__PURE__ */ e(i, { language: "tsx", code: `import { useMemo } from 'react';
|
|
10
|
+
|
|
11
|
+
export const useMenuItems = () => {
|
|
12
|
+
const { userRole, featureFlags } = useAppState();
|
|
13
|
+
|
|
14
|
+
const menuItems = useMemo(() => [
|
|
15
|
+
// Static routes
|
|
16
|
+
{
|
|
17
|
+
name: 'Home',
|
|
18
|
+
path: '/',
|
|
19
|
+
component: <HomePage />,
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
// Dynamic routes based on user permissions
|
|
23
|
+
...(userRole === 'admin' ? [{
|
|
24
|
+
name: 'Admin',
|
|
25
|
+
path: '/admin',
|
|
26
|
+
component: <AdminPage />,
|
|
27
|
+
dropdownItems: [
|
|
28
|
+
{
|
|
29
|
+
name: 'Users',
|
|
30
|
+
path: '/admin/users',
|
|
31
|
+
component: <UsersPage />,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Settings',
|
|
35
|
+
path: '/admin/settings',
|
|
36
|
+
component: <AdminSettingsPage />,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
}] : []),
|
|
40
|
+
|
|
41
|
+
// Feature-flagged routes
|
|
42
|
+
...(featureFlags.newFeature ? [{
|
|
43
|
+
name: 'New Feature',
|
|
44
|
+
path: '/new-feature',
|
|
45
|
+
component: <NewFeaturePage />,
|
|
46
|
+
}] : []),
|
|
47
|
+
], [userRole, featureFlags]);
|
|
48
|
+
|
|
49
|
+
return { menuItems };
|
|
50
|
+
};` }),
|
|
51
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [
|
|
52
|
+
{
|
|
53
|
+
title: "Role-Based Access",
|
|
54
|
+
description: "Show/hide routes based on user permissions",
|
|
55
|
+
icon: /* @__PURE__ */ e(m, { className: "w-5 h-5 text-white filter drop-shadow-sm" }),
|
|
56
|
+
color: "from-red-500 to-rose-500"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: "Feature Flags",
|
|
60
|
+
description: "Enable routes based on feature toggles",
|
|
61
|
+
icon: /* @__PURE__ */ e(d, { className: "w-5 h-5 text-white filter drop-shadow-sm" }),
|
|
62
|
+
color: "from-blue-500 to-cyan-500"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: "State-Driven",
|
|
66
|
+
description: "Routes that change based on app state",
|
|
67
|
+
icon: /* @__PURE__ */ e(c, { className: "w-5 h-5 text-white filter drop-shadow-sm" }),
|
|
68
|
+
color: "from-green-500 to-emerald-500"
|
|
69
|
+
}
|
|
70
|
+
].map((t, o) => /* @__PURE__ */ a(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
className: "flex items-start gap-3 p-3 bg-light-dark rounded-lg",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ e(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: `p-2 rounded-lg bg-linear-to-br ${t.color} shadow-lg shrink-0`,
|
|
79
|
+
children: t.icon
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ a("div", { children: [
|
|
83
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "font-medium mb-1", children: t.title }),
|
|
84
|
+
/* @__PURE__ */ e(
|
|
85
|
+
s,
|
|
86
|
+
{
|
|
87
|
+
tag: "p",
|
|
88
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
89
|
+
children: t.description
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] })
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
o
|
|
96
|
+
)) })
|
|
97
|
+
] }) }) }) });
|
|
98
|
+
export {
|
|
99
|
+
y as default
|
|
100
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-CjRk4ezu.js"),a=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const o=()=>e.jsx("div",{className:"space-y-8",children:e.jsx(s.CardContainer,{children:e.jsx(s.CardTitle,{title:"Dynamic & Conditional Routes",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"Create dynamic routing based on user permissions, feature flags, or application state."}),e.jsx(s.CodeBlock,{language:"tsx",code:`import { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
export const useMenuItems = () => {
|
|
4
|
+
const { userRole, featureFlags } = useAppState();
|
|
5
|
+
|
|
6
|
+
const menuItems = useMemo(() => [
|
|
7
|
+
// Static routes
|
|
8
|
+
{
|
|
9
|
+
name: 'Home',
|
|
10
|
+
path: '/',
|
|
11
|
+
component: <HomePage />,
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
// Dynamic routes based on user permissions
|
|
15
|
+
...(userRole === 'admin' ? [{
|
|
16
|
+
name: 'Admin',
|
|
17
|
+
path: '/admin',
|
|
18
|
+
component: <AdminPage />,
|
|
19
|
+
dropdownItems: [
|
|
20
|
+
{
|
|
21
|
+
name: 'Users',
|
|
22
|
+
path: '/admin/users',
|
|
23
|
+
component: <UsersPage />,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Settings',
|
|
27
|
+
path: '/admin/settings',
|
|
28
|
+
component: <AdminSettingsPage />,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
}] : []),
|
|
32
|
+
|
|
33
|
+
// Feature-flagged routes
|
|
34
|
+
...(featureFlags.newFeature ? [{
|
|
35
|
+
name: 'New Feature',
|
|
36
|
+
path: '/new-feature',
|
|
37
|
+
component: <NewFeaturePage />,
|
|
38
|
+
}] : []),
|
|
39
|
+
], [userRole, featureFlags]);
|
|
40
|
+
|
|
41
|
+
return { menuItems };
|
|
42
|
+
};`}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{title:"Role-Based Access",description:"Show/hide routes based on user permissions",icon:e.jsx(a.Shield,{className:"w-5 h-5 text-white filter drop-shadow-sm"}),color:"from-red-500 to-rose-500"},{title:"Feature Flags",description:"Enable routes based on feature toggles",icon:e.jsx(a.Flag,{className:"w-5 h-5 text-white filter drop-shadow-sm"}),color:"from-blue-500 to-cyan-500"},{title:"State-Driven",description:"Routes that change based on app state",icon:e.jsx(a.Database,{className:"w-5 h-5 text-white filter drop-shadow-sm"}),color:"from-green-500 to-emerald-500"}].map((t,r)=>e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-light-dark rounded-lg",children:[e.jsx("div",{className:`p-2 rounded-lg bg-linear-to-br ${t.color} shadow-lg shrink-0`,children:t.icon}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-1",children:t.title}),e.jsx(s.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:t.description})]})]},r))})]})})})});exports.default=o;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { jsxs as l, Fragment as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as t, C as a, a as i, F as s, B as o, c as n } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const y = () => /* @__PURE__ */ l(r, { children: [
|
|
8
|
+
/* @__PURE__ */ l("div", { className: "text-center space-y-4", children: [
|
|
9
|
+
/* @__PURE__ */ e(t, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "FileInput" }),
|
|
10
|
+
/* @__PURE__ */ e(
|
|
11
|
+
t,
|
|
12
|
+
{
|
|
13
|
+
tag: "p",
|
|
14
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
15
|
+
children: "An advanced file input component with native HTML5 drag-and-drop support, image preview, and flexible file type validation. The component implements native drag and drop functionality without external dependencies."
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ e(a, { className: "overflow-hidden", children: /* @__PURE__ */ e(i, { title: "Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ l("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
20
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
21
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "Images Only" }),
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
s,
|
|
24
|
+
{
|
|
25
|
+
label: "Upload Images",
|
|
26
|
+
accept: "img",
|
|
27
|
+
placeholderText: "PNG, JPG, GIF, WEBP. Max 100mb."
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
32
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "Multiple Images" }),
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
s,
|
|
35
|
+
{
|
|
36
|
+
label: "Upload Multiple Images",
|
|
37
|
+
accept: "img",
|
|
38
|
+
multiple: !0,
|
|
39
|
+
placeholderText: "Select multiple images"
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
44
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "PDF Documents" }),
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
s,
|
|
47
|
+
{
|
|
48
|
+
label: "Upload PDF",
|
|
49
|
+
accept: "pdf",
|
|
50
|
+
placeholderText: "PDF files only. Max 100mb."
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
55
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "CSV & Excel Files" }),
|
|
56
|
+
/* @__PURE__ */ e(
|
|
57
|
+
s,
|
|
58
|
+
{
|
|
59
|
+
label: "Upload CSV or Excel",
|
|
60
|
+
accept: "csvAndExcel",
|
|
61
|
+
multiple: !0,
|
|
62
|
+
placeholderText: "CSV, XLSX, or XLS files. Max 100mb."
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }),
|
|
66
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
67
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "Images & PDFs" }),
|
|
68
|
+
/* @__PURE__ */ e(
|
|
69
|
+
s,
|
|
70
|
+
{
|
|
71
|
+
label: "Upload Images or PDFs",
|
|
72
|
+
accept: "imgAndPdf",
|
|
73
|
+
multiple: !0,
|
|
74
|
+
placeholderText: "Images or PDF documents"
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
79
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "All File Types" }),
|
|
80
|
+
/* @__PURE__ */ e(
|
|
81
|
+
s,
|
|
82
|
+
{
|
|
83
|
+
label: "Upload Any File",
|
|
84
|
+
accept: "all",
|
|
85
|
+
multiple: !0,
|
|
86
|
+
placeholderText: "Drag and drop any file type or click to browse"
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
91
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "Any File (No Restriction)" }),
|
|
92
|
+
/* @__PURE__ */ e(
|
|
93
|
+
s,
|
|
94
|
+
{
|
|
95
|
+
label: "Upload Files",
|
|
96
|
+
multiple: !0,
|
|
97
|
+
placeholderText: "Accept any file type - no restrictions"
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
102
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "mb-3", children: "Disabled" }),
|
|
103
|
+
/* @__PURE__ */ e(s, { accept: "img", disabled: !0 })
|
|
104
|
+
] })
|
|
105
|
+
] }) }) }) }),
|
|
106
|
+
/* @__PURE__ */ e(a, { 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(o, { columns: [
|
|
107
|
+
{
|
|
108
|
+
key: "prop",
|
|
109
|
+
label: "Prop",
|
|
110
|
+
render: (p) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(p) })
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: "type",
|
|
114
|
+
label: "Type",
|
|
115
|
+
render: (p) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(p) })
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
key: "default",
|
|
119
|
+
label: "Default",
|
|
120
|
+
render: (p) => {
|
|
121
|
+
const c = String(p);
|
|
122
|
+
return c === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: c });
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
key: "description",
|
|
127
|
+
label: "Description"
|
|
128
|
+
}
|
|
129
|
+
], data: [
|
|
130
|
+
{
|
|
131
|
+
prop: "accept",
|
|
132
|
+
type: "'img' | 'pdf' | 'csvAndExcel' | 'imgAndPdf' | 'all'",
|
|
133
|
+
default: "undefined (accepts all)",
|
|
134
|
+
description: 'File types to accept. If not provided or set to "all", accepts any file type'
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
prop: "multiple",
|
|
138
|
+
type: "boolean",
|
|
139
|
+
default: "false",
|
|
140
|
+
description: "Allow multiple file selection"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
prop: "disabled",
|
|
144
|
+
type: "boolean",
|
|
145
|
+
default: "false",
|
|
146
|
+
description: "Disables the upload component"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
prop: "label",
|
|
150
|
+
type: "React.ReactNode",
|
|
151
|
+
default: "'CHOOSE FILE'",
|
|
152
|
+
description: "Button label text"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
prop: "placeholderText",
|
|
156
|
+
type: "React.ReactNode",
|
|
157
|
+
default: "'PNG, GIF, WEBP, MP4 or MP3. Max 100mb.'",
|
|
158
|
+
description: "Placeholder text displayed in the upload area"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
prop: "children",
|
|
162
|
+
type: "React.ReactNode",
|
|
163
|
+
default: "-",
|
|
164
|
+
description: "Custom content to display in the upload area"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
prop: "wrapperClassName",
|
|
168
|
+
type: "string",
|
|
169
|
+
default: "-",
|
|
170
|
+
description: "Custom CSS classes for the wrapper container"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
prop: "className",
|
|
174
|
+
type: "string",
|
|
175
|
+
default: "-",
|
|
176
|
+
description: "Custom CSS classes for the input element"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
prop: "labelClassName",
|
|
180
|
+
type: "string",
|
|
181
|
+
default: "-",
|
|
182
|
+
description: "Custom CSS classes for the label/button"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
prop: "containerClassName",
|
|
186
|
+
type: "string",
|
|
187
|
+
default: "-",
|
|
188
|
+
description: "Custom CSS classes for the container element"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
prop: "containerProps",
|
|
192
|
+
type: "React.HTMLAttributes<HTMLDivElement>",
|
|
193
|
+
default: "-",
|
|
194
|
+
description: "Additional props to pass to the container element"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
prop: "additionalInputProps",
|
|
198
|
+
type: "React.InputHTMLAttributes<HTMLInputElement>",
|
|
199
|
+
default: "-",
|
|
200
|
+
description: "Additional props to pass to the input element"
|
|
201
|
+
}
|
|
202
|
+
] }) }) }) }),
|
|
203
|
+
/* @__PURE__ */ e(a, { 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(
|
|
204
|
+
n,
|
|
205
|
+
{
|
|
206
|
+
language: "tsx",
|
|
207
|
+
code: `import { FileInput } from '@e-burgos/tucu-ui';
|
|
208
|
+
|
|
209
|
+
// Images only
|
|
210
|
+
<FileInput
|
|
211
|
+
label="Upload Images"
|
|
212
|
+
accept="img"
|
|
213
|
+
placeholderText="PNG, JPG, GIF, WEBP. Max 100mb."
|
|
214
|
+
/>
|
|
215
|
+
|
|
216
|
+
// Multiple images
|
|
217
|
+
<FileInput
|
|
218
|
+
label="Upload Multiple Images"
|
|
219
|
+
accept="img"
|
|
220
|
+
multiple
|
|
221
|
+
placeholderText="Select multiple images"
|
|
222
|
+
/>
|
|
223
|
+
|
|
224
|
+
// PDF documents
|
|
225
|
+
<FileInput
|
|
226
|
+
label="Upload PDF"
|
|
227
|
+
accept="pdf"
|
|
228
|
+
placeholderText="PDF files only. Max 100mb."
|
|
229
|
+
/>
|
|
230
|
+
|
|
231
|
+
// CSV and Excel files
|
|
232
|
+
<FileInput
|
|
233
|
+
label="Upload CSV or Excel"
|
|
234
|
+
accept="csvAndExcel"
|
|
235
|
+
multiple
|
|
236
|
+
placeholderText="CSV, XLSX, or XLS files. Max 100mb."
|
|
237
|
+
/>
|
|
238
|
+
|
|
239
|
+
// Images and PDFs
|
|
240
|
+
<FileInput
|
|
241
|
+
label="Upload Images or PDFs"
|
|
242
|
+
accept="imgAndPdf"
|
|
243
|
+
multiple
|
|
244
|
+
placeholderText="Images or PDF documents"
|
|
245
|
+
/>
|
|
246
|
+
|
|
247
|
+
// All predefined file types
|
|
248
|
+
<FileInput
|
|
249
|
+
label="Upload Any File"
|
|
250
|
+
accept="all"
|
|
251
|
+
multiple
|
|
252
|
+
placeholderText="Drag and drop any file type or click to browse"
|
|
253
|
+
/>
|
|
254
|
+
|
|
255
|
+
// Any file type (no restrictions)
|
|
256
|
+
<FileInput
|
|
257
|
+
label="Upload Files"
|
|
258
|
+
multiple
|
|
259
|
+
placeholderText="Accept any file type - no restrictions"
|
|
260
|
+
/>
|
|
261
|
+
|
|
262
|
+
// Disabled
|
|
263
|
+
<FileInput accept="img" disabled />
|
|
264
|
+
|
|
265
|
+
// Custom styling
|
|
266
|
+
<FileInput
|
|
267
|
+
accept="img"
|
|
268
|
+
wrapperClassName="custom-wrapper"
|
|
269
|
+
containerClassName="custom-container"
|
|
270
|
+
labelClassName="custom-label"
|
|
271
|
+
/>`
|
|
272
|
+
}
|
|
273
|
+
) }) }) })
|
|
274
|
+
] });
|
|
275
|
+
export {
|
|
276
|
+
y as default
|
|
277
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./index-CjRk4ezu.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const p=()=>{const s=[{key:"prop",label:"Prop",render:a=>e.jsx("code",{className:"text-xs text-brand",children:String(a)})},{key:"type",label:"Type",render:a=>e.jsx("code",{className:"text-xs",children:String(a)})},{key:"default",label:"Default",render:a=>{const t=String(a);return t==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:t})}},{key:"description",label:"Description"}],i=[{prop:"accept",type:"'img' | 'pdf' | 'csvAndExcel' | 'imgAndPdf' | 'all'",default:"undefined (accepts all)",description:'File types to accept. If not provided or set to "all", accepts any file type'},{prop:"multiple",type:"boolean",default:"false",description:"Allow multiple file selection"},{prop:"disabled",type:"boolean",default:"false",description:"Disables the upload component"},{prop:"label",type:"React.ReactNode",default:"'CHOOSE FILE'",description:"Button label text"},{prop:"placeholderText",type:"React.ReactNode",default:"'PNG, GIF, WEBP, MP4 or MP3. Max 100mb.'",description:"Placeholder text displayed in the upload area"},{prop:"children",type:"React.ReactNode",default:"-",description:"Custom content to display in the upload area"},{prop:"wrapperClassName",type:"string",default:"-",description:"Custom CSS classes for the wrapper container"},{prop:"className",type:"string",default:"-",description:"Custom CSS classes for the input element"},{prop:"labelClassName",type:"string",default:"-",description:"Custom CSS classes for the label/button"},{prop:"containerClassName",type:"string",default:"-",description:"Custom CSS classes for the container element"},{prop:"containerProps",type:"React.HTMLAttributes<HTMLDivElement>",default:"-",description:"Additional props to pass to the container element"},{prop:"additionalInputProps",type:"React.InputHTMLAttributes<HTMLInputElement>",default:"-",description:"Additional props to pass to the input element"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(l.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"FileInput"}),e.jsx(l.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"An advanced file input component with native HTML5 drag-and-drop support, image preview, and flexible file type validation. The component implements native drag and drop functionality without external dependencies."})]}),e.jsx(l.CardContainer,{className:"overflow-hidden",children:e.jsx(l.CardTitle,{title:"Examples",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"Images Only"}),e.jsx(l.FileInput,{label:"Upload Images",accept:"img",placeholderText:"PNG, JPG, GIF, WEBP. Max 100mb."})]}),e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"Multiple Images"}),e.jsx(l.FileInput,{label:"Upload Multiple Images",accept:"img",multiple:!0,placeholderText:"Select multiple images"})]}),e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"PDF Documents"}),e.jsx(l.FileInput,{label:"Upload PDF",accept:"pdf",placeholderText:"PDF files only. Max 100mb."})]}),e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"CSV & Excel Files"}),e.jsx(l.FileInput,{label:"Upload CSV or Excel",accept:"csvAndExcel",multiple:!0,placeholderText:"CSV, XLSX, or XLS files. Max 100mb."})]}),e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"Images & PDFs"}),e.jsx(l.FileInput,{label:"Upload Images or PDFs",accept:"imgAndPdf",multiple:!0,placeholderText:"Images or PDF documents"})]}),e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"All File Types"}),e.jsx(l.FileInput,{label:"Upload Any File",accept:"all",multiple:!0,placeholderText:"Drag and drop any file type or click to browse"})]}),e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"Any File (No Restriction)"}),e.jsx(l.FileInput,{label:"Upload Files",multiple:!0,placeholderText:"Accept any file type - no restrictions"})]}),e.jsxs(l.CardContainer,{className:"p-4",children:[e.jsx(l.Typography,{tag:"h5",className:"mb-3",children:"Disabled"}),e.jsx(l.FileInput,{accept:"img",disabled:!0})]})]})})})}),e.jsx(l.CardContainer,{className:"overflow-hidden",children:e.jsx(l.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(l.BasicTable,{columns:s,data:i})})})}),e.jsx(l.CardContainer,{className:"overflow-hidden",children:e.jsx(l.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(l.CodeBlock,{language:"tsx",code:`import { FileInput } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
// Images only
|
|
4
|
+
<FileInput
|
|
5
|
+
label="Upload Images"
|
|
6
|
+
accept="img"
|
|
7
|
+
placeholderText="PNG, JPG, GIF, WEBP. Max 100mb."
|
|
8
|
+
/>
|
|
9
|
+
|
|
10
|
+
// Multiple images
|
|
11
|
+
<FileInput
|
|
12
|
+
label="Upload Multiple Images"
|
|
13
|
+
accept="img"
|
|
14
|
+
multiple
|
|
15
|
+
placeholderText="Select multiple images"
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
// PDF documents
|
|
19
|
+
<FileInput
|
|
20
|
+
label="Upload PDF"
|
|
21
|
+
accept="pdf"
|
|
22
|
+
placeholderText="PDF files only. Max 100mb."
|
|
23
|
+
/>
|
|
24
|
+
|
|
25
|
+
// CSV and Excel files
|
|
26
|
+
<FileInput
|
|
27
|
+
label="Upload CSV or Excel"
|
|
28
|
+
accept="csvAndExcel"
|
|
29
|
+
multiple
|
|
30
|
+
placeholderText="CSV, XLSX, or XLS files. Max 100mb."
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
// Images and PDFs
|
|
34
|
+
<FileInput
|
|
35
|
+
label="Upload Images or PDFs"
|
|
36
|
+
accept="imgAndPdf"
|
|
37
|
+
multiple
|
|
38
|
+
placeholderText="Images or PDF documents"
|
|
39
|
+
/>
|
|
40
|
+
|
|
41
|
+
// All predefined file types
|
|
42
|
+
<FileInput
|
|
43
|
+
label="Upload Any File"
|
|
44
|
+
accept="all"
|
|
45
|
+
multiple
|
|
46
|
+
placeholderText="Drag and drop any file type or click to browse"
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
// Any file type (no restrictions)
|
|
50
|
+
<FileInput
|
|
51
|
+
label="Upload Files"
|
|
52
|
+
multiple
|
|
53
|
+
placeholderText="Accept any file type - no restrictions"
|
|
54
|
+
/>
|
|
55
|
+
|
|
56
|
+
// Disabled
|
|
57
|
+
<FileInput accept="img" disabled />
|
|
58
|
+
|
|
59
|
+
// Custom styling
|
|
60
|
+
<FileInput
|
|
61
|
+
accept="img"
|
|
62
|
+
wrapperClassName="custom-wrapper"
|
|
63
|
+
containerClassName="custom-container"
|
|
64
|
+
labelClassName="custom-label"
|
|
65
|
+
/>`})})})})]})};exports.default=p;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-CjRk4ezu.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:"File Structure & Important Notes"}),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:"Understanding the theme system architecture"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsx(s.CardContainer,{children:e.jsx(s.CardTitle,{title:"File Structure",className:"mt-2 mb-6",children:e.jsx("div",{className:"space-y-4",children:e.jsx(s.CodeBlock,{language:"markdown",code:`ui/tucu-ui/src/
|
|
2
|
+
├── themes/
|
|
3
|
+
│ ├── components/
|
|
4
|
+
│ │ ├── theme-provider/
|
|
5
|
+
│ │ │ ├── index.tsx
|
|
6
|
+
│ │ │ ├── single-app-theme-provider.tsx
|
|
7
|
+
│ │ │ ├── mfe-app-theme-provider.tsx
|
|
8
|
+
│ │ │ └── theme-wrapper.tsx
|
|
9
|
+
│ │ └── settings/
|
|
10
|
+
│ │ ├── settings-button.tsx
|
|
11
|
+
│ │ ├── settings-drawer.tsx
|
|
12
|
+
│ │ ├── switch-mode.tsx
|
|
13
|
+
│ │ └── lang-selector.tsx
|
|
14
|
+
│ ├── hooks/
|
|
15
|
+
│ │ ├── use-theme.tsx
|
|
16
|
+
│ │ ├── use-theme-color.ts
|
|
17
|
+
│ │ └── use-direction.ts
|
|
18
|
+
│ ├── config/
|
|
19
|
+
│ │ └── index.ts
|
|
20
|
+
│ ├── auth/
|
|
21
|
+
│ ├── pages/
|
|
22
|
+
│ ├── router/
|
|
23
|
+
│ ├── types/
|
|
24
|
+
│ └── index.ts
|
|
25
|
+
└── assets/css/
|
|
26
|
+
└── globals.css`})})})}),e.jsx(s.CardContainer,{children:e.jsx(s.CardTitle,{title:"Important Notes",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs(s.Alert,{variant:"info",dismissible:!1,children:[e.jsx(s.Typography,{tag:"h5",className:"font-semibold text-sm mb-2",children:"Spacing Classes"}),e.jsxs(s.Typography,{tag:"p",className:"text-xs",children:["All spacing classes use arbitrary values (e.g.,"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded",children:"p-[16px]"}),") instead of Tailwind defaults to maintain original spacing values."]})]}),e.jsxs(s.Alert,{variant:"warning",dismissible:!1,children:[e.jsx(s.Typography,{tag:"h5",className:"font-semibold text-sm mb-2",children:"Theme Persistence"}),e.jsxs(s.Typography,{tag:"p",className:"text-xs",children:["Theme settings are automatically persisted to localStorage using Zustand's persist middleware. Storage key:"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded",children:"theme-storage"}),"."]})]}),e.jsxs(s.Alert,{variant:"success",dismissible:!1,children:[e.jsx(s.Typography,{tag:"h5",className:"font-semibold text-sm mb-2",children:"CSS Variables"}),e.jsx(s.Typography,{tag:"p",className:"text-xs",children:"Theme colors are injected as CSS variables on the document root. These variables are used by Tailwind utilities and can be referenced directly in CSS or inline styles."})]})]})})})]})]});exports.default=t;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsxs as s, Fragment as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as t, C as r, a as i, c as d, a4 as a } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const p = () => /* @__PURE__ */ s(l, { children: [
|
|
8
|
+
/* @__PURE__ */ s("div", { className: "text-center", children: [
|
|
9
|
+
/* @__PURE__ */ e(
|
|
10
|
+
t,
|
|
11
|
+
{
|
|
12
|
+
tag: "h2",
|
|
13
|
+
className: "mb-4 text-2xl sm:text-3xl md:text-4xl font-bold",
|
|
14
|
+
children: "File Structure & Important Notes"
|
|
15
|
+
}
|
|
16
|
+
),
|
|
17
|
+
/* @__PURE__ */ e(
|
|
18
|
+
t,
|
|
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: "Understanding the theme system architecture"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: [
|
|
27
|
+
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(i, { title: "File Structure", className: "mt-2 mb-6", children: /* @__PURE__ */ e("div", { className: "space-y-4", children: /* @__PURE__ */ e(
|
|
28
|
+
d,
|
|
29
|
+
{
|
|
30
|
+
language: "markdown",
|
|
31
|
+
code: `ui/tucu-ui/src/
|
|
32
|
+
├── themes/
|
|
33
|
+
│ ├── components/
|
|
34
|
+
│ │ ├── theme-provider/
|
|
35
|
+
│ │ │ ├── index.tsx
|
|
36
|
+
│ │ │ ├── single-app-theme-provider.tsx
|
|
37
|
+
│ │ │ ├── mfe-app-theme-provider.tsx
|
|
38
|
+
│ │ │ └── theme-wrapper.tsx
|
|
39
|
+
│ │ └── settings/
|
|
40
|
+
│ │ ├── settings-button.tsx
|
|
41
|
+
│ │ ├── settings-drawer.tsx
|
|
42
|
+
│ │ ├── switch-mode.tsx
|
|
43
|
+
│ │ └── lang-selector.tsx
|
|
44
|
+
│ ├── hooks/
|
|
45
|
+
│ │ ├── use-theme.tsx
|
|
46
|
+
│ │ ├── use-theme-color.ts
|
|
47
|
+
│ │ └── use-direction.ts
|
|
48
|
+
│ ├── config/
|
|
49
|
+
│ │ └── index.ts
|
|
50
|
+
│ ├── auth/
|
|
51
|
+
│ ├── pages/
|
|
52
|
+
│ ├── router/
|
|
53
|
+
│ ├── types/
|
|
54
|
+
│ └── index.ts
|
|
55
|
+
└── assets/css/
|
|
56
|
+
└── globals.css`
|
|
57
|
+
}
|
|
58
|
+
) }) }) }),
|
|
59
|
+
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(i, { title: "Important Notes", className: "mt-2 mb-6", children: /* @__PURE__ */ s("div", { className: "space-y-4", children: [
|
|
60
|
+
/* @__PURE__ */ s(a, { variant: "info", dismissible: !1, children: [
|
|
61
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-semibold text-sm mb-2", children: "Spacing Classes" }),
|
|
62
|
+
/* @__PURE__ */ s(t, { tag: "p", className: "text-xs", children: [
|
|
63
|
+
"All spacing classes use arbitrary values (e.g.,",
|
|
64
|
+
" ",
|
|
65
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded", children: "p-[16px]" }),
|
|
66
|
+
") instead of Tailwind defaults to maintain original spacing values."
|
|
67
|
+
] })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ s(a, { variant: "warning", dismissible: !1, children: [
|
|
70
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-semibold text-sm mb-2", children: "Theme Persistence" }),
|
|
71
|
+
/* @__PURE__ */ s(t, { tag: "p", className: "text-xs", children: [
|
|
72
|
+
"Theme settings are automatically persisted to localStorage using Zustand's persist middleware. Storage key:",
|
|
73
|
+
" ",
|
|
74
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 border border-gray-300 dark:border-gray-700 rounded", children: "theme-storage" }),
|
|
75
|
+
"."
|
|
76
|
+
] })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ s(a, { variant: "success", dismissible: !1, children: [
|
|
79
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-semibold text-sm mb-2", children: "CSS Variables" }),
|
|
80
|
+
/* @__PURE__ */ e(t, { tag: "p", className: "text-xs", children: "Theme colors are injected as CSS variables on the document root. These variables are used by Tailwind utilities and can be referenced directly in CSS or inline styles." })
|
|
81
|
+
] })
|
|
82
|
+
] }) }) })
|
|
83
|
+
] })
|
|
84
|
+
] });
|
|
85
|
+
export {
|
|
86
|
+
p as default
|
|
87
|
+
};
|