@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
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("./index-CjRk4ezu.js"),l=require("lucide-react");require("react-router-dom");require("react-dom");const y=()=>{const[i,x]=r.useState(0),[d,h]=r.useState(0),[s,g]=r.useState(0),c=[{title:"Dashboard",path:"dashboard"},{title:"Analytics",path:"analytics"},{title:"Reports",path:"reports"},{title:"Settings",path:"settings"}],o=[{title:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(l.Home,{size:16}),"Home"]}),path:"home"},{title:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(l.User,{size:16}),"Profile"]}),path:"profile"},{title:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(l.Settings,{size:16}),"Settings"]}),path:"settings"}],n=[{title:"Orders",path:"orders"},{title:"Products",path:"products"},{title:"Customers",path:"customers"},{title:"Analytics",path:"analytics"},{title:"Marketing",path:"marketing"},{title:"Reports",path:"reports"},{title:"Integrations",path:"integrations"},{title:"Settings",path:"settings"}],p=[{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 m=String(a);return m==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:m})}},{key:"description",label:"Description"}],b=[{prop:"tabMenu",type:"TabSelectMenuItem[]",default:"required",description:"Array of menu items with title and path"},{prop:"selectedTabIndex",type:"number",default:"required",description:"Currently selected tab index (0-based)"},{prop:"onChange",type:"(index: number) => void",default:"required",description:"Callback function when tab selection changes"},{prop:"ref",type:"React.Ref<HTMLElement | null>",default:"-",description:"Forward ref to the select element"}],u=[{prop:"title",type:"React.ReactNode",default:"required",description:"Tab label (can be text, JSX, or components)"},{prop:"path",type:"string",default:"required",description:"Unique identifier/route path for the tab"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(t.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"TabSelect"}),e.jsx(t.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A mobile-friendly dropdown tab selector with smooth animations and transitions, designed for responsive tab navigation in constrained spaces."})]}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Basic Examples",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Basic TabSelect"}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400 mb-4",children:"Standard dropdown selector with text options. Click to expand and select a tab."}),e.jsx("div",{className:"max-w-md",children:e.jsx(t.TabSelect,{tabMenu:c,selectedTabIndex:i,onChange:x})}),e.jsx("div",{className:"mt-4 p-4 bg-light-dark rounded-lg",children:e.jsxs(t.Typography,{tag:"p",className:"text-sm",children:["Selected:"," ",e.jsx("span",{className:"font-semibold text-brand",children:c[i].title})]})})]}),e.jsxs("div",{children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"With Icons"}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400 mb-4",children:"Enhanced dropdown with icon support for better visual clarity."}),e.jsx("div",{className:"max-w-md",children:e.jsx(t.TabSelect,{tabMenu:o,selectedTabIndex:d,onChange:h})}),e.jsx("div",{className:"mt-4 p-4 bg-light-dark rounded-lg",children:e.jsxs(t.Typography,{tag:"p",className:"text-sm",children:["Current selection:"," ",e.jsx("span",{className:"font-semibold text-brand",children:o[d].path})]})})]}),e.jsxs("div",{children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Many Options"}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400 mb-4",children:"Handles large lists efficiently with scrollable dropdown."}),e.jsx("div",{className:"max-w-md",children:e.jsx(t.TabSelect,{tabMenu:n,selectedTabIndex:s,onChange:g})}),e.jsx("div",{className:"mt-4 p-4 bg-light-dark rounded-lg",children:e.jsxs(t.Typography,{tag:"p",className:"text-sm",children:["Selected option:"," ",e.jsx("span",{className:"font-semibold text-brand",children:n[s].title})," ","(",s+1," of ",n.length,")"]})})]})]})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Use Cases",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx(t.Typography,{tag:"h5",className:"mb-2",children:"Mobile Navigation"}),e.jsxs(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:["Perfect for replacing horizontal tab bars on mobile devices where space is limited.",e.jsx("code",{className:"ml-1 text-xs border border-gray-300 dark:border-gray-600 px-2 py-1 rounded",children:"ParamTab"})," ","automatically switches to TabSelect on mobile breakpoints."]}),e.jsx(t.CardContainer,{className:"p-4 bg-blue-50 dark:bg-blue-900/20",children:e.jsxs(t.Typography,{tag:"p",className:"text-sm",children:[e.jsx("span",{role:"img","aria-label":"tip",children:"💡"})," ",e.jsx("span",{className:"font-semibold",children:"Tip:"})," Use TabSelect when you have 4+ tabs and limited horizontal space."]})})]}),e.jsxs("div",{children:[e.jsx(t.Typography,{tag:"h5",className:"mb-2",children:"Form Filters"}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:"Use as a filter selector in forms and data tables to switch between different views or data categories."})]}),e.jsxs("div",{children:[e.jsx(t.Typography,{tag:"h5",className:"mb-2",children:"Settings Panels"}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Navigate between different settings sections in a compact, accessible dropdown format."})]})]})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Features",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsxs(t.Typography,{tag:"h5",className:"mb-2",children:[e.jsx("span",{role:"img","aria-label":"palette",children:"🎨"})," ","Smooth Animations"]}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Chevron rotation and dropdown transitions with translate-y effects."})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsxs(t.Typography,{tag:"h5",className:"mb-2",children:[e.jsx("span",{role:"img","aria-label":"moon",children:"🌙"})," ","Dark Mode"]}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Full dark mode support with automatic theme adaptation."})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsxs(t.Typography,{tag:"h5",className:"mb-2",children:[e.jsx("span",{role:"img","aria-label":"lightning",children:"⚡"})," ","Performance"]}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Optimized rendering with proper key management for large lists."})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsxs(t.Typography,{tag:"h5",className:"mb-2",children:[e.jsx("span",{role:"img","aria-label":"target",children:"🎯"})," ","Accessibility"]}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Keyboard navigation and focus management built-in."})]})]})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"TabSelectMenuItem Interface",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.BasicTable,{columns:p,data:u})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.BasicTable,{columns:p,data:b})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Code Examples",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.CodeBlock,{language:"tsx",code:`import { TabSelect } from '@e-burgos/tucu-ui';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Home, Settings, User } from 'lucide-react';
|
|
4
|
+
|
|
5
|
+
// Basic usage
|
|
6
|
+
function BasicExample() {
|
|
7
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
8
|
+
|
|
9
|
+
const tabMenu = [
|
|
10
|
+
{ title: 'Dashboard', path: 'dashboard' },
|
|
11
|
+
{ title: 'Analytics', path: 'analytics' },
|
|
12
|
+
{ title: 'Reports', path: 'reports' },
|
|
13
|
+
{ title: 'Settings', path: 'settings' },
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<TabSelect
|
|
18
|
+
tabMenu={tabMenu}
|
|
19
|
+
selectedTabIndex={selectedIndex}
|
|
20
|
+
onChange={setSelectedIndex}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// With icons
|
|
26
|
+
function IconExample() {
|
|
27
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
28
|
+
|
|
29
|
+
const tabMenu = [
|
|
30
|
+
{
|
|
31
|
+
title: (
|
|
32
|
+
<span className="flex items-center gap-2">
|
|
33
|
+
<Home size={16} />
|
|
34
|
+
Home
|
|
35
|
+
</span>
|
|
36
|
+
),
|
|
37
|
+
path: 'home'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: (
|
|
41
|
+
<span className="flex items-center gap-2">
|
|
42
|
+
<User size={16} />
|
|
43
|
+
Profile
|
|
44
|
+
</span>
|
|
45
|
+
),
|
|
46
|
+
path: 'profile'
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<TabSelect
|
|
52
|
+
tabMenu={tabMenu}
|
|
53
|
+
selectedTabIndex={selectedIndex}
|
|
54
|
+
onChange={setSelectedIndex}
|
|
55
|
+
/>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Integration with ParamTab
|
|
60
|
+
// ParamTab automatically uses TabSelect on mobile devices
|
|
61
|
+
import { ParamTab, TabPanel } from '@e-burgos/tucu-ui';
|
|
62
|
+
|
|
63
|
+
function ResponsiveTabs() {
|
|
64
|
+
const tabMenu = [
|
|
65
|
+
{ title: 'Overview', path: 'overview' },
|
|
66
|
+
{ title: 'Details', path: 'details' },
|
|
67
|
+
{ title: 'Settings', path: 'settings' },
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<ParamTab tabMenu={tabMenu}>
|
|
72
|
+
<TabPanel>Overview content</TabPanel>
|
|
73
|
+
<TabPanel>Details content</TabPanel>
|
|
74
|
+
<TabPanel>Settings content</TabPanel>
|
|
75
|
+
</ParamTab>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Custom styling
|
|
80
|
+
function CustomExample() {
|
|
81
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
82
|
+
|
|
83
|
+
const tabMenu = [
|
|
84
|
+
{ title: 'Option 1', path: 'opt1' },
|
|
85
|
+
{ title: 'Option 2', path: 'opt2' },
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<div className="max-w-md">
|
|
90
|
+
<TabSelect
|
|
91
|
+
tabMenu={tabMenu}
|
|
92
|
+
selectedTabIndex={selectedIndex}
|
|
93
|
+
onChange={(index) => {
|
|
94
|
+
console.log('Selected:', tabMenu[index].path);
|
|
95
|
+
setSelectedIndex(index);
|
|
96
|
+
}}
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
}`})})})})]})};exports.default=y;
|
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as S, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import { T as a, C as s, a as l, ad as d, B as x, c as T } from "./index-Hq6IUBmn.mjs";
|
|
4
|
+
import { Home as w, User as I, Settings as k } from "lucide-react";
|
|
5
|
+
import "react-router-dom";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const O = () => {
|
|
8
|
+
const [o, u] = c(0), [m, f] = c(0), [i, N] = c(0), p = [
|
|
9
|
+
{ title: "Dashboard", path: "dashboard" },
|
|
10
|
+
{ title: "Analytics", path: "analytics" },
|
|
11
|
+
{ title: "Reports", path: "reports" },
|
|
12
|
+
{ title: "Settings", path: "settings" }
|
|
13
|
+
], h = [
|
|
14
|
+
{
|
|
15
|
+
title: /* @__PURE__ */ t("span", { className: "flex items-center gap-2", children: [
|
|
16
|
+
/* @__PURE__ */ e(w, { size: 16 }),
|
|
17
|
+
"Home"
|
|
18
|
+
] }),
|
|
19
|
+
path: "home"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: /* @__PURE__ */ t("span", { className: "flex items-center gap-2", children: [
|
|
23
|
+
/* @__PURE__ */ e(I, { size: 16 }),
|
|
24
|
+
"Profile"
|
|
25
|
+
] }),
|
|
26
|
+
path: "profile"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: /* @__PURE__ */ t("span", { className: "flex items-center gap-2", children: [
|
|
30
|
+
/* @__PURE__ */ e(k, { size: 16 }),
|
|
31
|
+
"Settings"
|
|
32
|
+
] }),
|
|
33
|
+
path: "settings"
|
|
34
|
+
}
|
|
35
|
+
], r = [
|
|
36
|
+
{ title: "Orders", path: "orders" },
|
|
37
|
+
{ title: "Products", path: "products" },
|
|
38
|
+
{ title: "Customers", path: "customers" },
|
|
39
|
+
{ title: "Analytics", path: "analytics" },
|
|
40
|
+
{ title: "Marketing", path: "marketing" },
|
|
41
|
+
{ title: "Reports", path: "reports" },
|
|
42
|
+
{ title: "Integrations", path: "integrations" },
|
|
43
|
+
{ title: "Settings", path: "settings" }
|
|
44
|
+
], b = [
|
|
45
|
+
{
|
|
46
|
+
key: "prop",
|
|
47
|
+
label: "Prop",
|
|
48
|
+
render: (n) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(n) })
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "type",
|
|
52
|
+
label: "Type",
|
|
53
|
+
render: (n) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(n) })
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
key: "default",
|
|
57
|
+
label: "Default",
|
|
58
|
+
render: (n) => {
|
|
59
|
+
const g = String(n);
|
|
60
|
+
return g === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: g });
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: "description",
|
|
65
|
+
label: "Description"
|
|
66
|
+
}
|
|
67
|
+
], y = [
|
|
68
|
+
{
|
|
69
|
+
prop: "tabMenu",
|
|
70
|
+
type: "TabSelectMenuItem[]",
|
|
71
|
+
default: "required",
|
|
72
|
+
description: "Array of menu items with title and path"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
prop: "selectedTabIndex",
|
|
76
|
+
type: "number",
|
|
77
|
+
default: "required",
|
|
78
|
+
description: "Currently selected tab index (0-based)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
prop: "onChange",
|
|
82
|
+
type: "(index: number) => void",
|
|
83
|
+
default: "required",
|
|
84
|
+
description: "Callback function when tab selection changes"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
prop: "ref",
|
|
88
|
+
type: "React.Ref<HTMLElement | null>",
|
|
89
|
+
default: "-",
|
|
90
|
+
description: "Forward ref to the select element"
|
|
91
|
+
}
|
|
92
|
+
], v = [
|
|
93
|
+
{
|
|
94
|
+
prop: "title",
|
|
95
|
+
type: "React.ReactNode",
|
|
96
|
+
default: "required",
|
|
97
|
+
description: "Tab label (can be text, JSX, or components)"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
prop: "path",
|
|
101
|
+
type: "string",
|
|
102
|
+
default: "required",
|
|
103
|
+
description: "Unique identifier/route path for the tab"
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
return /* @__PURE__ */ t(S, { children: [
|
|
107
|
+
/* @__PURE__ */ t("div", { className: "text-center space-y-4", children: [
|
|
108
|
+
/* @__PURE__ */ e(a, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "TabSelect" }),
|
|
109
|
+
/* @__PURE__ */ e(
|
|
110
|
+
a,
|
|
111
|
+
{
|
|
112
|
+
tag: "p",
|
|
113
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
114
|
+
children: "A mobile-friendly dropdown tab selector with smooth animations and transitions, designed for responsive tab navigation in constrained spaces."
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
] }),
|
|
118
|
+
/* @__PURE__ */ e(s, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Basic Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ t("div", { className: "space-y-8", children: [
|
|
119
|
+
/* @__PURE__ */ t("div", { children: [
|
|
120
|
+
/* @__PURE__ */ e(a, { tag: "h5", className: "mb-3", children: "Basic TabSelect" }),
|
|
121
|
+
/* @__PURE__ */ e(
|
|
122
|
+
a,
|
|
123
|
+
{
|
|
124
|
+
tag: "p",
|
|
125
|
+
className: "text-sm text-gray-600 dark:text-gray-400 mb-4",
|
|
126
|
+
children: "Standard dropdown selector with text options. Click to expand and select a tab."
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ e("div", { className: "max-w-md", children: /* @__PURE__ */ e(
|
|
130
|
+
d,
|
|
131
|
+
{
|
|
132
|
+
tabMenu: p,
|
|
133
|
+
selectedTabIndex: o,
|
|
134
|
+
onChange: u
|
|
135
|
+
}
|
|
136
|
+
) }),
|
|
137
|
+
/* @__PURE__ */ e("div", { className: "mt-4 p-4 bg-light-dark rounded-lg", children: /* @__PURE__ */ t(a, { tag: "p", className: "text-sm", children: [
|
|
138
|
+
"Selected:",
|
|
139
|
+
" ",
|
|
140
|
+
/* @__PURE__ */ e("span", { className: "font-semibold text-brand", children: p[o].title })
|
|
141
|
+
] }) })
|
|
142
|
+
] }),
|
|
143
|
+
/* @__PURE__ */ t("div", { children: [
|
|
144
|
+
/* @__PURE__ */ e(a, { tag: "h5", className: "mb-3", children: "With Icons" }),
|
|
145
|
+
/* @__PURE__ */ e(
|
|
146
|
+
a,
|
|
147
|
+
{
|
|
148
|
+
tag: "p",
|
|
149
|
+
className: "text-sm text-gray-600 dark:text-gray-400 mb-4",
|
|
150
|
+
children: "Enhanced dropdown with icon support for better visual clarity."
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ e("div", { className: "max-w-md", children: /* @__PURE__ */ e(
|
|
154
|
+
d,
|
|
155
|
+
{
|
|
156
|
+
tabMenu: h,
|
|
157
|
+
selectedTabIndex: m,
|
|
158
|
+
onChange: f
|
|
159
|
+
}
|
|
160
|
+
) }),
|
|
161
|
+
/* @__PURE__ */ e("div", { className: "mt-4 p-4 bg-light-dark rounded-lg", children: /* @__PURE__ */ t(a, { tag: "p", className: "text-sm", children: [
|
|
162
|
+
"Current selection:",
|
|
163
|
+
" ",
|
|
164
|
+
/* @__PURE__ */ e("span", { className: "font-semibold text-brand", children: h[m].path })
|
|
165
|
+
] }) })
|
|
166
|
+
] }),
|
|
167
|
+
/* @__PURE__ */ t("div", { children: [
|
|
168
|
+
/* @__PURE__ */ e(a, { tag: "h5", className: "mb-3", children: "Many Options" }),
|
|
169
|
+
/* @__PURE__ */ e(
|
|
170
|
+
a,
|
|
171
|
+
{
|
|
172
|
+
tag: "p",
|
|
173
|
+
className: "text-sm text-gray-600 dark:text-gray-400 mb-4",
|
|
174
|
+
children: "Handles large lists efficiently with scrollable dropdown."
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ e("div", { className: "max-w-md", children: /* @__PURE__ */ e(
|
|
178
|
+
d,
|
|
179
|
+
{
|
|
180
|
+
tabMenu: r,
|
|
181
|
+
selectedTabIndex: i,
|
|
182
|
+
onChange: N
|
|
183
|
+
}
|
|
184
|
+
) }),
|
|
185
|
+
/* @__PURE__ */ e("div", { className: "mt-4 p-4 bg-light-dark rounded-lg", children: /* @__PURE__ */ t(a, { tag: "p", className: "text-sm", children: [
|
|
186
|
+
"Selected option:",
|
|
187
|
+
" ",
|
|
188
|
+
/* @__PURE__ */ e("span", { className: "font-semibold text-brand", children: r[i].title }),
|
|
189
|
+
" ",
|
|
190
|
+
"(",
|
|
191
|
+
i + 1,
|
|
192
|
+
" of ",
|
|
193
|
+
r.length,
|
|
194
|
+
")"
|
|
195
|
+
] }) })
|
|
196
|
+
] })
|
|
197
|
+
] }) }) }) }),
|
|
198
|
+
/* @__PURE__ */ e(s, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Use Cases", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ t("div", { className: "space-y-6", children: [
|
|
199
|
+
/* @__PURE__ */ t("div", { children: [
|
|
200
|
+
/* @__PURE__ */ e(a, { tag: "h5", className: "mb-2", children: "Mobile Navigation" }),
|
|
201
|
+
/* @__PURE__ */ t(
|
|
202
|
+
a,
|
|
203
|
+
{
|
|
204
|
+
tag: "p",
|
|
205
|
+
className: "text-sm text-gray-600 dark:text-gray-400 mb-3",
|
|
206
|
+
children: [
|
|
207
|
+
"Perfect for replacing horizontal tab bars on mobile devices where space is limited.",
|
|
208
|
+
/* @__PURE__ */ e("code", { className: "ml-1 text-xs border border-gray-300 dark:border-gray-600 px-2 py-1 rounded", children: "ParamTab" }),
|
|
209
|
+
" ",
|
|
210
|
+
"automatically switches to TabSelect on mobile breakpoints."
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
),
|
|
214
|
+
/* @__PURE__ */ e(s, { className: "p-4 bg-blue-50 dark:bg-blue-900/20", children: /* @__PURE__ */ t(a, { tag: "p", className: "text-sm", children: [
|
|
215
|
+
/* @__PURE__ */ e("span", { role: "img", "aria-label": "tip", children: "💡" }),
|
|
216
|
+
" ",
|
|
217
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: "Tip:" }),
|
|
218
|
+
" Use TabSelect when you have 4+ tabs and limited horizontal space."
|
|
219
|
+
] }) })
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ t("div", { children: [
|
|
222
|
+
/* @__PURE__ */ e(a, { tag: "h5", className: "mb-2", children: "Form Filters" }),
|
|
223
|
+
/* @__PURE__ */ e(
|
|
224
|
+
a,
|
|
225
|
+
{
|
|
226
|
+
tag: "p",
|
|
227
|
+
className: "text-sm text-gray-600 dark:text-gray-400 mb-3",
|
|
228
|
+
children: "Use as a filter selector in forms and data tables to switch between different views or data categories."
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] }),
|
|
232
|
+
/* @__PURE__ */ t("div", { children: [
|
|
233
|
+
/* @__PURE__ */ e(a, { tag: "h5", className: "mb-2", children: "Settings Panels" }),
|
|
234
|
+
/* @__PURE__ */ e(
|
|
235
|
+
a,
|
|
236
|
+
{
|
|
237
|
+
tag: "p",
|
|
238
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
239
|
+
children: "Navigate between different settings sections in a compact, accessible dropdown format."
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
] })
|
|
243
|
+
] }) }) }) }),
|
|
244
|
+
/* @__PURE__ */ e(s, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Features", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
245
|
+
/* @__PURE__ */ t(s, { className: "p-4", children: [
|
|
246
|
+
/* @__PURE__ */ t(a, { tag: "h5", className: "mb-2", children: [
|
|
247
|
+
/* @__PURE__ */ e("span", { role: "img", "aria-label": "palette", children: "🎨" }),
|
|
248
|
+
" ",
|
|
249
|
+
"Smooth Animations"
|
|
250
|
+
] }),
|
|
251
|
+
/* @__PURE__ */ e(
|
|
252
|
+
a,
|
|
253
|
+
{
|
|
254
|
+
tag: "p",
|
|
255
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
256
|
+
children: "Chevron rotation and dropdown transitions with translate-y effects."
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
] }),
|
|
260
|
+
/* @__PURE__ */ t(s, { className: "p-4", children: [
|
|
261
|
+
/* @__PURE__ */ t(a, { tag: "h5", className: "mb-2", children: [
|
|
262
|
+
/* @__PURE__ */ e("span", { role: "img", "aria-label": "moon", children: "🌙" }),
|
|
263
|
+
" ",
|
|
264
|
+
"Dark Mode"
|
|
265
|
+
] }),
|
|
266
|
+
/* @__PURE__ */ e(
|
|
267
|
+
a,
|
|
268
|
+
{
|
|
269
|
+
tag: "p",
|
|
270
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
271
|
+
children: "Full dark mode support with automatic theme adaptation."
|
|
272
|
+
}
|
|
273
|
+
)
|
|
274
|
+
] }),
|
|
275
|
+
/* @__PURE__ */ t(s, { className: "p-4", children: [
|
|
276
|
+
/* @__PURE__ */ t(a, { tag: "h5", className: "mb-2", children: [
|
|
277
|
+
/* @__PURE__ */ e("span", { role: "img", "aria-label": "lightning", children: "⚡" }),
|
|
278
|
+
" ",
|
|
279
|
+
"Performance"
|
|
280
|
+
] }),
|
|
281
|
+
/* @__PURE__ */ e(
|
|
282
|
+
a,
|
|
283
|
+
{
|
|
284
|
+
tag: "p",
|
|
285
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
286
|
+
children: "Optimized rendering with proper key management for large lists."
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
] }),
|
|
290
|
+
/* @__PURE__ */ t(s, { className: "p-4", children: [
|
|
291
|
+
/* @__PURE__ */ t(a, { tag: "h5", className: "mb-2", children: [
|
|
292
|
+
/* @__PURE__ */ e("span", { role: "img", "aria-label": "target", children: "🎯" }),
|
|
293
|
+
" ",
|
|
294
|
+
"Accessibility"
|
|
295
|
+
] }),
|
|
296
|
+
/* @__PURE__ */ e(
|
|
297
|
+
a,
|
|
298
|
+
{
|
|
299
|
+
tag: "p",
|
|
300
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
301
|
+
children: "Keyboard navigation and focus management built-in."
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
] })
|
|
305
|
+
] }) }) }) }),
|
|
306
|
+
/* @__PURE__ */ e(s, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "TabSelectMenuItem Interface", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(x, { columns: b, data: v }) }) }) }),
|
|
307
|
+
/* @__PURE__ */ e(s, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(x, { columns: b, data: y }) }) }) }),
|
|
308
|
+
/* @__PURE__ */ e(s, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Code Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
309
|
+
T,
|
|
310
|
+
{
|
|
311
|
+
language: "tsx",
|
|
312
|
+
code: `import { TabSelect } from '@e-burgos/tucu-ui';
|
|
313
|
+
import { useState } from 'react';
|
|
314
|
+
import { Home, Settings, User } from 'lucide-react';
|
|
315
|
+
|
|
316
|
+
// Basic usage
|
|
317
|
+
function BasicExample() {
|
|
318
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
319
|
+
|
|
320
|
+
const tabMenu = [
|
|
321
|
+
{ title: 'Dashboard', path: 'dashboard' },
|
|
322
|
+
{ title: 'Analytics', path: 'analytics' },
|
|
323
|
+
{ title: 'Reports', path: 'reports' },
|
|
324
|
+
{ title: 'Settings', path: 'settings' },
|
|
325
|
+
];
|
|
326
|
+
|
|
327
|
+
return (
|
|
328
|
+
<TabSelect
|
|
329
|
+
tabMenu={tabMenu}
|
|
330
|
+
selectedTabIndex={selectedIndex}
|
|
331
|
+
onChange={setSelectedIndex}
|
|
332
|
+
/>
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// With icons
|
|
337
|
+
function IconExample() {
|
|
338
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
339
|
+
|
|
340
|
+
const tabMenu = [
|
|
341
|
+
{
|
|
342
|
+
title: (
|
|
343
|
+
<span className="flex items-center gap-2">
|
|
344
|
+
<Home size={16} />
|
|
345
|
+
Home
|
|
346
|
+
</span>
|
|
347
|
+
),
|
|
348
|
+
path: 'home'
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
title: (
|
|
352
|
+
<span className="flex items-center gap-2">
|
|
353
|
+
<User size={16} />
|
|
354
|
+
Profile
|
|
355
|
+
</span>
|
|
356
|
+
),
|
|
357
|
+
path: 'profile'
|
|
358
|
+
},
|
|
359
|
+
];
|
|
360
|
+
|
|
361
|
+
return (
|
|
362
|
+
<TabSelect
|
|
363
|
+
tabMenu={tabMenu}
|
|
364
|
+
selectedTabIndex={selectedIndex}
|
|
365
|
+
onChange={setSelectedIndex}
|
|
366
|
+
/>
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// Integration with ParamTab
|
|
371
|
+
// ParamTab automatically uses TabSelect on mobile devices
|
|
372
|
+
import { ParamTab, TabPanel } from '@e-burgos/tucu-ui';
|
|
373
|
+
|
|
374
|
+
function ResponsiveTabs() {
|
|
375
|
+
const tabMenu = [
|
|
376
|
+
{ title: 'Overview', path: 'overview' },
|
|
377
|
+
{ title: 'Details', path: 'details' },
|
|
378
|
+
{ title: 'Settings', path: 'settings' },
|
|
379
|
+
];
|
|
380
|
+
|
|
381
|
+
return (
|
|
382
|
+
<ParamTab tabMenu={tabMenu}>
|
|
383
|
+
<TabPanel>Overview content</TabPanel>
|
|
384
|
+
<TabPanel>Details content</TabPanel>
|
|
385
|
+
<TabPanel>Settings content</TabPanel>
|
|
386
|
+
</ParamTab>
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// Custom styling
|
|
391
|
+
function CustomExample() {
|
|
392
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
393
|
+
|
|
394
|
+
const tabMenu = [
|
|
395
|
+
{ title: 'Option 1', path: 'opt1' },
|
|
396
|
+
{ title: 'Option 2', path: 'opt2' },
|
|
397
|
+
];
|
|
398
|
+
|
|
399
|
+
return (
|
|
400
|
+
<div className="max-w-md">
|
|
401
|
+
<TabSelect
|
|
402
|
+
tabMenu={tabMenu}
|
|
403
|
+
selectedTabIndex={selectedIndex}
|
|
404
|
+
onChange={(index) => {
|
|
405
|
+
console.log('Selected:', tabMenu[index].path);
|
|
406
|
+
setSelectedIndex(index);
|
|
407
|
+
}}
|
|
408
|
+
/>
|
|
409
|
+
</div>
|
|
410
|
+
);
|
|
411
|
+
}`
|
|
412
|
+
}
|
|
413
|
+
) }) }) })
|
|
414
|
+
] });
|
|
415
|
+
};
|
|
416
|
+
export {
|
|
417
|
+
O as default
|
|
418
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 r=()=>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:"Tailwind CSS Configuration"}),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:"Built on Tailwind CSS v4 with Tucu UI Design Tokens"})]}),e.jsx(s.CardContainer,{children:e.jsx(s.CardTitle,{title:"Design Tokens & Configuration",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-indigo-500 to-purple-500 rounded-lg shadow-lg",children:e.jsx(a.Palette,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h4",className:"font-semibold",children:"Color Spectrums"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400 text-sm",children:"The system uses Tucu UI Design Tokens organized into color spectrums:"}),e.jsxs("ul",{className:"space-y-2 text-sm text-gray-600 dark:text-gray-400",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(a.Circle,{className:"w-2 h-2 mt-1.5 shrink-0 text-brand"}),e.jsxs("span",{children:[e.jsx("strong",{children:"Color Spectrums:"})," Blue, Green, Orange, Gray, Indigo, Pink, Purple, Red, Teal, Yellow, Chartreuse"]})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(a.Circle,{className:"w-2 h-2 mt-1.5 shrink-0 text-brand"}),e.jsxs("span",{children:[e.jsx("strong",{children:"Color Scale:"})," Each spectrum has values from 0-100 (e.g., blue-0 to blue-100)"]})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(a.Circle,{className:"w-2 h-2 mt-1.5 shrink-0 text-brand"}),e.jsxs("span",{children:[e.jsx("strong",{children:"Light & Dark Variants:"})," Separate color sets for light and dark modes"]})]})]})]}),e.jsxs("div",{className:"space-y-4 mt-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-cyan-500 to-blue-500 rounded-lg shadow-lg",children:e.jsx(a.Code,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h4",className:"font-semibold",children:"Semantic Colors"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400 text-sm mb-3",children:"Semantic colors map design tokens to functional purposes:"}),e.jsx(s.CodeBlock,{language:"css",code:`/* Semantic Background Colors */
|
|
2
|
+
--color-semantic-bg-primary: var(--color-tucu-ui-blue-60);
|
|
3
|
+
--color-semantic-bg-secondary: var(--color-tucu-ui-gray-10);
|
|
4
|
+
--color-semantic-bg-positive: var(--color-tucu-ui-green-60);
|
|
5
|
+
--color-semantic-bg-negative: var(--color-tucu-ui-red-60);
|
|
6
|
+
|
|
7
|
+
/* Semantic Foreground Colors */
|
|
8
|
+
--color-semantic-fg: var(--color-tucu-ui-gray-100);
|
|
9
|
+
--color-semantic-fg-muted: var(--color-tucu-ui-gray-60);
|
|
10
|
+
--color-semantic-fg-primary: var(--color-tucu-ui-blue-60);`})]})]}),e.jsxs("div",{className:"space-y-4 mt-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-green-500 to-emerald-500 rounded-lg shadow-lg",children:e.jsx(a.Ruler,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h4",className:"font-semibold",children:"Spacing Scale"})]}),e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400 text-sm mb-3",children:"The spacing scale is mapped to Tucu UI Design Tokens. All spacing values use arbitrary values in pixels to maintain consistency:"}),e.jsx(s.CodeBlock,{language:"css",code:`/* Spacing Scale - Mapped to Tucu UI Design Tokens */
|
|
11
|
+
--spacing-0: 0px;
|
|
12
|
+
--spacing-1: 8px; /* --spacing-tucu-ui-1 */
|
|
13
|
+
--spacing-2: 16px; /* --spacing-tucu-ui-2 */
|
|
14
|
+
--spacing-3: 24px; /* --spacing-tucu-ui-3 */
|
|
15
|
+
--spacing-4: 32px; /* --spacing-tucu-ui-4 */
|
|
16
|
+
--spacing-5: 40px; /* --spacing-tucu-ui-5 */
|
|
17
|
+
--spacing-6: 48px; /* --spacing-tucu-ui-6 */
|
|
18
|
+
--spacing-8: 64px; /* --spacing-tucu-ui-8 */
|
|
19
|
+
--spacing-10: 80px; /* --spacing-tucu-ui-10 */`}),e.jsxs(s.Alert,{variant:"info",children:[" ",e.jsxs(s.Typography,{tag:"p",className:"text-sm",children:[e.jsx("strong",{children:"Note:"})," Components use arbitrary values like"," ",e.jsx("code",{className:"p-1 border border-gray-300 dark:border-gray-700 rounded text-xs",children:"p-[16px]"})," ","instead of"," ",e.jsx("code",{className:"p-1 border border-gray-300 dark:border-gray-700 rounded text-xs",children:"p-4"})," ","to maintain original Tailwind spacing values."]})]})]})]})})})]});exports.default=r;
|