@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,239 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { ai as r, T as t, C as m, D as p } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import { Layout as h, Menu as g, Minimize2 as u, Zap as x, CheckCircle as v, Star as b, Check as f, Code as N } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const L = () => {
|
|
8
|
+
const o = [
|
|
9
|
+
{
|
|
10
|
+
name: "Admin Layout",
|
|
11
|
+
description: "Traditional admin layout with expandable sidebar and fixed header. Designed for complex applications with hierarchical navigation and multiple sections.",
|
|
12
|
+
icon: /* @__PURE__ */ e(h, { className: "w-8 h-8 text-white filter drop-shadow-sm" }),
|
|
13
|
+
color: "from-blue-500 via-cyan-500 to-teal-500",
|
|
14
|
+
value: r.ADMIN,
|
|
15
|
+
useCases: [
|
|
16
|
+
"Dashboard applications",
|
|
17
|
+
"Admin panels and management systems",
|
|
18
|
+
"Complex applications with many navigation items",
|
|
19
|
+
"Applications requiring hierarchical menu structure",
|
|
20
|
+
"Enterprise software and internal tools",
|
|
21
|
+
"Applications with multiple sections and subsections"
|
|
22
|
+
],
|
|
23
|
+
features: [
|
|
24
|
+
"Expandable sidebar navigation (visible on xl screens)",
|
|
25
|
+
"Fixed header with logo and action buttons",
|
|
26
|
+
"Responsive drawer menu for mobile devices",
|
|
27
|
+
"RTL/LTR direction support",
|
|
28
|
+
"Full-width content option available",
|
|
29
|
+
"Sidebar padding: 96px (xl) / 112px (2xl)",
|
|
30
|
+
"Content padding: 16px (mobile) / 24px (sm) / 32px (lg) / 40px (3xl)"
|
|
31
|
+
],
|
|
32
|
+
technical: {
|
|
33
|
+
sidebar: "ExpandableSidebar component (hidden on mobile, visible xl+)",
|
|
34
|
+
header: "AdminHeader component with menu toggle",
|
|
35
|
+
drawer: "Drawer component for mobile navigation",
|
|
36
|
+
breakpoint: "Sidebar visible from xl breakpoint (1024px)"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "Horizontal Layout",
|
|
41
|
+
description: "Modern horizontal navigation layout with top menu bar. Ideal for content-focused sites, marketing pages, and applications with simple navigation.",
|
|
42
|
+
icon: /* @__PURE__ */ e(g, { className: "w-8 h-8 text-white filter drop-shadow-sm" }),
|
|
43
|
+
color: "from-purple-500 via-violet-500 to-indigo-500",
|
|
44
|
+
value: r.HORIZONTAL,
|
|
45
|
+
useCases: [
|
|
46
|
+
"Content-focused websites",
|
|
47
|
+
"Marketing and landing pages",
|
|
48
|
+
"Simple applications with few navigation items",
|
|
49
|
+
"Portfolio and showcase sites",
|
|
50
|
+
"Blog and content management systems",
|
|
51
|
+
"Public-facing applications"
|
|
52
|
+
],
|
|
53
|
+
features: [
|
|
54
|
+
"Horizontal top navigation menu",
|
|
55
|
+
"Sticky header with logo and action buttons",
|
|
56
|
+
"Mobile hamburger menu with drawer",
|
|
57
|
+
"Backdrop blur effects on header",
|
|
58
|
+
"Full-width content option available",
|
|
59
|
+
"Content padding: 8px (mobile) / 24px (sm) / 32px (lg) / 40px (3xl)",
|
|
60
|
+
"Minimal vertical space usage"
|
|
61
|
+
],
|
|
62
|
+
technical: {
|
|
63
|
+
header: "HorizontalHeader component with horizontal menu",
|
|
64
|
+
menu: "HorizontalNavMenu component",
|
|
65
|
+
drawer: "Drawer component for mobile navigation",
|
|
66
|
+
breakpoint: "Horizontal menu visible on all screen sizes"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "Clean Layout",
|
|
71
|
+
description: "Minimal layout without navigation elements. Perfect for authentication pages, standalone content, and full-screen experiences.",
|
|
72
|
+
icon: /* @__PURE__ */ e(u, { className: "w-8 h-8 text-white filter drop-shadow-sm" }),
|
|
73
|
+
color: "from-emerald-500 via-green-500 to-teal-500",
|
|
74
|
+
value: r.CLEAN,
|
|
75
|
+
useCases: [
|
|
76
|
+
"Authentication pages (login, signup, password reset)",
|
|
77
|
+
"Landing pages and marketing sites",
|
|
78
|
+
"Standalone content pages",
|
|
79
|
+
"Full-screen applications",
|
|
80
|
+
"Modal and overlay content",
|
|
81
|
+
"Embedded widgets and components"
|
|
82
|
+
],
|
|
83
|
+
features: [
|
|
84
|
+
"No navigation elements or headers",
|
|
85
|
+
"Full viewport height (100vh)",
|
|
86
|
+
"Flex column layout",
|
|
87
|
+
"Perfect for centered content",
|
|
88
|
+
"Minimal overhead and dependencies",
|
|
89
|
+
"No menu items required",
|
|
90
|
+
"Customizable via className prop"
|
|
91
|
+
],
|
|
92
|
+
technical: {
|
|
93
|
+
structure: "Simple flex container with full height",
|
|
94
|
+
dependencies: "No header, sidebar, or menu components",
|
|
95
|
+
customization: "Full control via className prop",
|
|
96
|
+
useWhen: "No navigation needed, standalone content"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
];
|
|
100
|
+
return /* @__PURE__ */ a(d, { children: [
|
|
101
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
102
|
+
/* @__PURE__ */ e(t, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Layout Types" }),
|
|
103
|
+
/* @__PURE__ */ e(
|
|
104
|
+
t,
|
|
105
|
+
{
|
|
106
|
+
tag: "p",
|
|
107
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
108
|
+
children: "Three distinct layout patterns for various application types. Choose the right layout based on your application's navigation needs and structure."
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ e("div", { className: "space-y-8", children: o.map((i, l) => /* @__PURE__ */ e(
|
|
113
|
+
m,
|
|
114
|
+
{
|
|
115
|
+
className: "group hover:shadow-large transition-all duration-300 overflow-hidden",
|
|
116
|
+
children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
117
|
+
/* @__PURE__ */ a("div", { className: "flex items-start gap-4", children: [
|
|
118
|
+
/* @__PURE__ */ e(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
className: `p-3 rounded-xl bg-gradient-to-br ${i.color} group-hover:scale-110 transition-all duration-300 shadow-lg shrink-0`,
|
|
122
|
+
children: i.icon
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ a("div", { className: "flex-1", children: [
|
|
126
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3 mb-2", children: [
|
|
127
|
+
/* @__PURE__ */ e(
|
|
128
|
+
t,
|
|
129
|
+
{
|
|
130
|
+
tag: "h3",
|
|
131
|
+
className: "font-semibold text-xl group-hover:text-primary transition-colors duration-300",
|
|
132
|
+
children: i.name
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ e(p, { variant: "outline", className: "text-xs", children: i.value })
|
|
136
|
+
] }),
|
|
137
|
+
/* @__PURE__ */ e(
|
|
138
|
+
t,
|
|
139
|
+
{
|
|
140
|
+
tag: "p",
|
|
141
|
+
className: "text-gray-600 dark:text-gray-400 leading-relaxed",
|
|
142
|
+
children: i.description
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
] })
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
148
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
149
|
+
/* @__PURE__ */ e(x, { className: "w-5 h-5 text-primary" }),
|
|
150
|
+
/* @__PURE__ */ e(t, { tag: "h4", className: "font-semibold text-base", children: "When to Use" })
|
|
151
|
+
] }),
|
|
152
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: i.useCases.map((n, s) => /* @__PURE__ */ a(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
className: "flex items-start gap-2 p-2 bg-gray-100 dark:bg-gray-800 rounded-lg",
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ e(v, { className: "w-3 h-3 text-primary mt-1 shrink-0" }),
|
|
158
|
+
/* @__PURE__ */ e(
|
|
159
|
+
t,
|
|
160
|
+
{
|
|
161
|
+
tag: "span",
|
|
162
|
+
className: "text-sm text-gray-700 dark:text-gray-300",
|
|
163
|
+
children: n
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
s
|
|
169
|
+
)) })
|
|
170
|
+
] }),
|
|
171
|
+
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
172
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
173
|
+
/* @__PURE__ */ e(b, { className: "w-5 h-5 text-primary" }),
|
|
174
|
+
/* @__PURE__ */ e(t, { tag: "h4", className: "font-semibold text-base", children: "Features" })
|
|
175
|
+
] }),
|
|
176
|
+
/* @__PURE__ */ e("div", { className: "space-y-2", children: i.features.map((n, s) => /* @__PURE__ */ a(
|
|
177
|
+
"div",
|
|
178
|
+
{
|
|
179
|
+
className: "flex items-start gap-2",
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ e(f, { className: "w-4 h-4 text-green-500 shrink-0 mt-0.5" }),
|
|
182
|
+
/* @__PURE__ */ e(
|
|
183
|
+
t,
|
|
184
|
+
{
|
|
185
|
+
tag: "span",
|
|
186
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
187
|
+
children: n
|
|
188
|
+
}
|
|
189
|
+
)
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
s
|
|
193
|
+
)) })
|
|
194
|
+
] }),
|
|
195
|
+
/* @__PURE__ */ a("div", { className: "space-y-3 pt-3 border-t border-gray-200 dark:border-gray-700", children: [
|
|
196
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
197
|
+
/* @__PURE__ */ e(N, { className: "w-5 h-5 text-primary" }),
|
|
198
|
+
/* @__PURE__ */ e(t, { tag: "h4", className: "font-semibold text-base", children: "Technical Details" })
|
|
199
|
+
] }),
|
|
200
|
+
/* @__PURE__ */ e("div", { className: "space-y-2", children: Object.entries(i.technical).map(
|
|
201
|
+
([n, s], c) => /* @__PURE__ */ a(
|
|
202
|
+
"div",
|
|
203
|
+
{
|
|
204
|
+
className: "flex items-start gap-2 text-sm",
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ a(
|
|
207
|
+
t,
|
|
208
|
+
{
|
|
209
|
+
tag: "span",
|
|
210
|
+
className: "font-medium text-gray-700 dark:text-gray-300 capitalize min-w-[100px]",
|
|
211
|
+
children: [
|
|
212
|
+
n.replace(/([A-Z])/g, " $1").trim(),
|
|
213
|
+
":"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ e(
|
|
218
|
+
t,
|
|
219
|
+
{
|
|
220
|
+
tag: "span",
|
|
221
|
+
className: "text-gray-600 dark:text-gray-400",
|
|
222
|
+
children: s
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
c
|
|
228
|
+
)
|
|
229
|
+
) })
|
|
230
|
+
] })
|
|
231
|
+
] })
|
|
232
|
+
},
|
|
233
|
+
l
|
|
234
|
+
)) })
|
|
235
|
+
] });
|
|
236
|
+
};
|
|
237
|
+
export {
|
|
238
|
+
L as default
|
|
239
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),t=require("./index-CjRk4ezu.js"),r=require("lucide-react");require("react-router-dom");require("react-dom");const p=()=>{const[n,a]=d.useState(!1),i=[{id:"1",label:"Edit",icon:e.jsx(r.Edit,{className:"w-4 h-4"}),onClick:()=>console.log("Edit clicked")},{id:"2",label:"Delete",icon:e.jsx(r.Trash,{className:"w-4 h-4"}),onClick:()=>console.log("Delete clicked")},{id:"3",label:"Share",icon:e.jsx(r.Share,{className:"w-4 h-4"}),onClick:()=>console.log("Share clicked")}],l=[{key:"prop",label:"Prop",render:s=>e.jsx("code",{className:"text-xs text-brand",children:String(s)})},{key:"type",label:"Type",render:s=>e.jsx("code",{className:"text-xs",children:String(s)})},{key:"default",label:"Default",render:s=>{const o=String(s);return o==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:o})}},{key:"description",label:"Description"}],c=[{prop:"items",type:"ListItemProps[]",default:"required",description:"Array of list items to display"},{prop:"label",type:"string",default:"-",description:"Label for the trigger button"},{prop:"triggerIcon",type:"React.ReactNode",default:"-",description:"Custom icon for the trigger"},{prop:"position",type:"'left' | 'right' | 'top' | 'bottom'",default:"'bottom'",description:"Position of the dropdown"},{prop:"align",type:"'start' | 'end' | 'center'",default:"'end'",description:"Alignment of the dropdown"},{prop:"trigger",type:"'hover' | 'click'",default:"'hover'",description:"Trigger type for opening the dropdown"},{prop:"keepOpen",type:"boolean",default:"false",description:"Whether to keep dropdown open after item click"}];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:"ListContainer"}),e.jsx(t.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A dropdown container component for displaying lists of items with customizable trigger and positioning."})]}),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:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Hover Trigger"}),e.jsx(t.ListContainer,{items:i,trigger:"hover"})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Click Trigger"}),e.jsx(t.ListContainer,{items:i,trigger:"click",isOpen:n,onOpenChange:a})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"With Custom Icon"}),e.jsx(t.ListContainer,{items:i,triggerIcon:e.jsx(r.Activity,{className:"w-4! h-4!"})})]}),e.jsxs(t.CardContainer,{className:"p-4",children:[e.jsx(t.Typography,{tag:"h5",className:"mb-3",children:"Different Positions"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(t.ListContainer,{items:i,position:"top"}),e.jsx(t.ListContainer,{items:i,position:"right"}),e.jsx(t.ListContainer,{items:i,position:"left"})]})]})]})})})}),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:l,data:c})})})}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(t.CodeBlock,{language:"tsx",code:`import { ListContainer, ListItem, LucideIcons } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
const items = [
|
|
4
|
+
{
|
|
5
|
+
id: '1',
|
|
6
|
+
label: 'Edit',
|
|
7
|
+
icon: <LucideIcons.Edit className="w-4 h-4" />,
|
|
8
|
+
onClick: () => handleEdit(),
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: '2',
|
|
12
|
+
label: 'Delete',
|
|
13
|
+
icon: <LucideIcons.Trash className="w-4 h-4" />,
|
|
14
|
+
onClick: () => handleDelete(),
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
// Hover trigger
|
|
19
|
+
<ListContainer items={items} trigger="hover" />
|
|
20
|
+
|
|
21
|
+
// Click trigger
|
|
22
|
+
<ListContainer
|
|
23
|
+
items={items}
|
|
24
|
+
trigger="click"
|
|
25
|
+
isOpen={isOpen}
|
|
26
|
+
onOpenChange={setIsOpen}
|
|
27
|
+
/>
|
|
28
|
+
|
|
29
|
+
// With custom icon
|
|
30
|
+
<ListContainer
|
|
31
|
+
items={items}
|
|
32
|
+
triggerIcon={<LucideIcons.MoreVertical className="w-5 h-5" />}
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
// Different positions
|
|
36
|
+
<ListContainer items={items} position="top" />
|
|
37
|
+
<ListContainer items={items} position="right" />
|
|
38
|
+
<ListContainer items={items} position="bottom" />`})})})})]})};exports.default=p;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { T as o, C as i, a as l, Y as r, B as h, c as g } from "./index-Hq6IUBmn.mjs";
|
|
4
|
+
import { Activity as f, Edit as u, Trash as N, Share as b } from "lucide-react";
|
|
5
|
+
import "react-router-dom";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const T = () => {
|
|
8
|
+
const [c, d] = m(!1), s = [
|
|
9
|
+
{
|
|
10
|
+
id: "1",
|
|
11
|
+
label: "Edit",
|
|
12
|
+
icon: /* @__PURE__ */ e(u, { className: "w-4 h-4" }),
|
|
13
|
+
onClick: () => console.log("Edit clicked")
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: "2",
|
|
17
|
+
label: "Delete",
|
|
18
|
+
icon: /* @__PURE__ */ e(N, { className: "w-4 h-4" }),
|
|
19
|
+
onClick: () => console.log("Delete clicked")
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: "3",
|
|
23
|
+
label: "Share",
|
|
24
|
+
icon: /* @__PURE__ */ e(b, { className: "w-4 h-4" }),
|
|
25
|
+
onClick: () => console.log("Share clicked")
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
return /* @__PURE__ */ t(p, { children: [
|
|
29
|
+
/* @__PURE__ */ t("div", { className: "text-center space-y-4", children: [
|
|
30
|
+
/* @__PURE__ */ e(o, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "ListContainer" }),
|
|
31
|
+
/* @__PURE__ */ e(
|
|
32
|
+
o,
|
|
33
|
+
{
|
|
34
|
+
tag: "p",
|
|
35
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
36
|
+
children: "A dropdown container component for displaying lists of items with customizable trigger and positioning."
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ e(i, { 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: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
41
|
+
/* @__PURE__ */ t(i, { className: "p-4", children: [
|
|
42
|
+
/* @__PURE__ */ e(o, { tag: "h5", className: "mb-3", children: "Hover Trigger" }),
|
|
43
|
+
/* @__PURE__ */ e(r, { items: s, trigger: "hover" })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ t(i, { className: "p-4", children: [
|
|
46
|
+
/* @__PURE__ */ e(o, { tag: "h5", className: "mb-3", children: "Click Trigger" }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
r,
|
|
49
|
+
{
|
|
50
|
+
items: s,
|
|
51
|
+
trigger: "click",
|
|
52
|
+
isOpen: c,
|
|
53
|
+
onOpenChange: d
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ t(i, { className: "p-4", children: [
|
|
58
|
+
/* @__PURE__ */ e(o, { tag: "h5", className: "mb-3", children: "With Custom Icon" }),
|
|
59
|
+
/* @__PURE__ */ e(
|
|
60
|
+
r,
|
|
61
|
+
{
|
|
62
|
+
items: s,
|
|
63
|
+
triggerIcon: /* @__PURE__ */ e(f, { className: "w-4! h-4!" })
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ t(i, { className: "p-4", children: [
|
|
68
|
+
/* @__PURE__ */ e(o, { tag: "h5", className: "mb-3", children: "Different Positions" }),
|
|
69
|
+
/* @__PURE__ */ t("div", { className: "flex gap-4", children: [
|
|
70
|
+
/* @__PURE__ */ e(r, { items: s, position: "top" }),
|
|
71
|
+
/* @__PURE__ */ e(r, { items: s, position: "right" }),
|
|
72
|
+
/* @__PURE__ */ e(r, { items: s, position: "left" })
|
|
73
|
+
] })
|
|
74
|
+
] })
|
|
75
|
+
] }) }) }) }),
|
|
76
|
+
/* @__PURE__ */ e(i, { 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(h, { columns: [
|
|
77
|
+
{
|
|
78
|
+
key: "prop",
|
|
79
|
+
label: "Prop",
|
|
80
|
+
render: (a) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(a) })
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: "type",
|
|
84
|
+
label: "Type",
|
|
85
|
+
render: (a) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(a) })
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "default",
|
|
89
|
+
label: "Default",
|
|
90
|
+
render: (a) => {
|
|
91
|
+
const n = String(a);
|
|
92
|
+
return n === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: n });
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: "description",
|
|
97
|
+
label: "Description"
|
|
98
|
+
}
|
|
99
|
+
], data: [
|
|
100
|
+
{
|
|
101
|
+
prop: "items",
|
|
102
|
+
type: "ListItemProps[]",
|
|
103
|
+
default: "required",
|
|
104
|
+
description: "Array of list items to display"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
prop: "label",
|
|
108
|
+
type: "string",
|
|
109
|
+
default: "-",
|
|
110
|
+
description: "Label for the trigger button"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
prop: "triggerIcon",
|
|
114
|
+
type: "React.ReactNode",
|
|
115
|
+
default: "-",
|
|
116
|
+
description: "Custom icon for the trigger"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
prop: "position",
|
|
120
|
+
type: "'left' | 'right' | 'top' | 'bottom'",
|
|
121
|
+
default: "'bottom'",
|
|
122
|
+
description: "Position of the dropdown"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
prop: "align",
|
|
126
|
+
type: "'start' | 'end' | 'center'",
|
|
127
|
+
default: "'end'",
|
|
128
|
+
description: "Alignment of the dropdown"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
prop: "trigger",
|
|
132
|
+
type: "'hover' | 'click'",
|
|
133
|
+
default: "'hover'",
|
|
134
|
+
description: "Trigger type for opening the dropdown"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
prop: "keepOpen",
|
|
138
|
+
type: "boolean",
|
|
139
|
+
default: "false",
|
|
140
|
+
description: "Whether to keep dropdown open after item click"
|
|
141
|
+
}
|
|
142
|
+
] }) }) }) }),
|
|
143
|
+
/* @__PURE__ */ e(i, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
144
|
+
g,
|
|
145
|
+
{
|
|
146
|
+
language: "tsx",
|
|
147
|
+
code: `import { ListContainer, ListItem, LucideIcons } from '@e-burgos/tucu-ui';
|
|
148
|
+
|
|
149
|
+
const items = [
|
|
150
|
+
{
|
|
151
|
+
id: '1',
|
|
152
|
+
label: 'Edit',
|
|
153
|
+
icon: <LucideIcons.Edit className="w-4 h-4" />,
|
|
154
|
+
onClick: () => handleEdit(),
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: '2',
|
|
158
|
+
label: 'Delete',
|
|
159
|
+
icon: <LucideIcons.Trash className="w-4 h-4" />,
|
|
160
|
+
onClick: () => handleDelete(),
|
|
161
|
+
},
|
|
162
|
+
];
|
|
163
|
+
|
|
164
|
+
// Hover trigger
|
|
165
|
+
<ListContainer items={items} trigger="hover" />
|
|
166
|
+
|
|
167
|
+
// Click trigger
|
|
168
|
+
<ListContainer
|
|
169
|
+
items={items}
|
|
170
|
+
trigger="click"
|
|
171
|
+
isOpen={isOpen}
|
|
172
|
+
onOpenChange={setIsOpen}
|
|
173
|
+
/>
|
|
174
|
+
|
|
175
|
+
// With custom icon
|
|
176
|
+
<ListContainer
|
|
177
|
+
items={items}
|
|
178
|
+
triggerIcon={<LucideIcons.MoreVertical className="w-5 h-5" />}
|
|
179
|
+
/>
|
|
180
|
+
|
|
181
|
+
// Different positions
|
|
182
|
+
<ListContainer items={items} position="top" />
|
|
183
|
+
<ListContainer items={items} position="right" />
|
|
184
|
+
<ListContainer items={items} position="bottom" />`
|
|
185
|
+
}
|
|
186
|
+
) }) }) })
|
|
187
|
+
] });
|
|
188
|
+
};
|
|
189
|
+
export {
|
|
190
|
+
T as default
|
|
191
|
+
};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as s, C as l, a as c, Z as a, B as r, c as o } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import { Home as m, Settings as p, User as h, Star as u } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const v = () => /* @__PURE__ */ t(n, { children: [
|
|
8
|
+
/* @__PURE__ */ t("div", { className: "text-center space-y-4", children: [
|
|
9
|
+
/* @__PURE__ */ e(s, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "ListItem" }),
|
|
10
|
+
/* @__PURE__ */ e(
|
|
11
|
+
s,
|
|
12
|
+
{
|
|
13
|
+
tag: "p",
|
|
14
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
15
|
+
children: "A list item component for displaying items in dropdowns and menus with support for icons, labels, and custom content."
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(c, { 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-4", children: [
|
|
20
|
+
/* @__PURE__ */ t(l, { className: "p-4", children: [
|
|
21
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Basic List Items" }),
|
|
22
|
+
/* @__PURE__ */ t("ul", { className: "space-y-1", children: [
|
|
23
|
+
/* @__PURE__ */ e(a, { id: "1", label: "Item 1" }),
|
|
24
|
+
/* @__PURE__ */ e(a, { id: "2", label: "Item 2" }),
|
|
25
|
+
/* @__PURE__ */ e(a, { id: "3", label: "Item 3" })
|
|
26
|
+
] })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ t(l, { className: "p-4", children: [
|
|
29
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "With Icons" }),
|
|
30
|
+
/* @__PURE__ */ t("ul", { className: "space-y-1", children: [
|
|
31
|
+
/* @__PURE__ */ e(
|
|
32
|
+
a,
|
|
33
|
+
{
|
|
34
|
+
id: "1",
|
|
35
|
+
label: "Home",
|
|
36
|
+
icon: /* @__PURE__ */ e(m, { className: "w-4 h-4" })
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
a,
|
|
41
|
+
{
|
|
42
|
+
id: "2",
|
|
43
|
+
label: "Settings",
|
|
44
|
+
icon: /* @__PURE__ */ e(p, { className: "w-4 h-4" })
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
a,
|
|
49
|
+
{
|
|
50
|
+
id: "3",
|
|
51
|
+
label: "Profile",
|
|
52
|
+
icon: /* @__PURE__ */ e(h, { className: "w-4 h-4" })
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ t(l, { className: "p-4", children: [
|
|
58
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "States" }),
|
|
59
|
+
/* @__PURE__ */ t("ul", { className: "space-y-1", children: [
|
|
60
|
+
/* @__PURE__ */ e(a, { id: "1", label: "Active Item", active: !0 }),
|
|
61
|
+
/* @__PURE__ */ e(a, { id: "2", label: "Normal Item" }),
|
|
62
|
+
/* @__PURE__ */ e(a, { id: "3", label: "Disabled Item", disabled: !0 })
|
|
63
|
+
] })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ t(l, { className: "p-4", children: [
|
|
66
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "With Custom Content" }),
|
|
67
|
+
/* @__PURE__ */ e("ul", { className: "space-y-1", children: /* @__PURE__ */ e(
|
|
68
|
+
a,
|
|
69
|
+
{
|
|
70
|
+
id: "1",
|
|
71
|
+
content: /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
72
|
+
/* @__PURE__ */ e(u, { className: "w-4 h-4" }),
|
|
73
|
+
/* @__PURE__ */ e("span", { children: "Custom Content" })
|
|
74
|
+
] })
|
|
75
|
+
}
|
|
76
|
+
) })
|
|
77
|
+
] })
|
|
78
|
+
] }) }) }) }),
|
|
79
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(c, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(r, { columns: [
|
|
80
|
+
{
|
|
81
|
+
key: "prop",
|
|
82
|
+
label: "Prop",
|
|
83
|
+
render: (i) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(i) })
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "type",
|
|
87
|
+
label: "Type",
|
|
88
|
+
render: (i) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(i) })
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: "default",
|
|
92
|
+
label: "Default",
|
|
93
|
+
render: (i) => {
|
|
94
|
+
const d = String(i);
|
|
95
|
+
return d === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: d });
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "description",
|
|
100
|
+
label: "Description"
|
|
101
|
+
}
|
|
102
|
+
], data: [
|
|
103
|
+
{
|
|
104
|
+
prop: "id",
|
|
105
|
+
type: "string | number",
|
|
106
|
+
default: "required",
|
|
107
|
+
description: "Unique identifier for the item"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
prop: "label",
|
|
111
|
+
type: "string",
|
|
112
|
+
default: "-",
|
|
113
|
+
description: "Text label for the item"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
prop: "icon",
|
|
117
|
+
type: "React.ReactNode",
|
|
118
|
+
default: "-",
|
|
119
|
+
description: "Icon to display before the label"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
prop: "content",
|
|
123
|
+
type: "React.ReactNode",
|
|
124
|
+
default: "-",
|
|
125
|
+
description: "Custom content to display instead of label"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
prop: "onClick",
|
|
129
|
+
type: "() => void",
|
|
130
|
+
default: "-",
|
|
131
|
+
description: "Click handler function"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
prop: "disabled",
|
|
135
|
+
type: "boolean",
|
|
136
|
+
default: "false",
|
|
137
|
+
description: "Whether the item is disabled"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
prop: "active",
|
|
141
|
+
type: "boolean",
|
|
142
|
+
default: "false",
|
|
143
|
+
description: "Whether the item is active"
|
|
144
|
+
}
|
|
145
|
+
] }) }) }) }),
|
|
146
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(c, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
147
|
+
o,
|
|
148
|
+
{
|
|
149
|
+
language: "tsx",
|
|
150
|
+
code: `import { ListItem, LucideIcons } from '@e-burgos/tucu-ui';
|
|
151
|
+
|
|
152
|
+
// Basic usage
|
|
153
|
+
<ul>
|
|
154
|
+
<ListItem id="1" label="Item 1" />
|
|
155
|
+
<ListItem id="2" label="Item 2" />
|
|
156
|
+
</ul>
|
|
157
|
+
|
|
158
|
+
// With icons
|
|
159
|
+
<ListItem
|
|
160
|
+
id="1"
|
|
161
|
+
label="Home"
|
|
162
|
+
icon={<LucideIcons.Home className="w-4 h-4" />}
|
|
163
|
+
/>
|
|
164
|
+
|
|
165
|
+
// With states
|
|
166
|
+
<ListItem id="1" label="Active" active />
|
|
167
|
+
<ListItem id="2" label="Disabled" disabled />
|
|
168
|
+
|
|
169
|
+
// With custom content
|
|
170
|
+
<ListItem
|
|
171
|
+
id="1"
|
|
172
|
+
content={
|
|
173
|
+
<div className="flex items-center gap-2">
|
|
174
|
+
<LucideIcons.Star className="w-4 h-4" />
|
|
175
|
+
<span>Custom</span>
|
|
176
|
+
</div>
|
|
177
|
+
}
|
|
178
|
+
/>
|
|
179
|
+
|
|
180
|
+
// With onClick
|
|
181
|
+
<ListItem
|
|
182
|
+
id="1"
|
|
183
|
+
label="Clickable"
|
|
184
|
+
onClick={() => handleClick()}
|
|
185
|
+
/>`
|
|
186
|
+
}
|
|
187
|
+
) }) }) })
|
|
188
|
+
] });
|
|
189
|
+
export {
|
|
190
|
+
v as default
|
|
191
|
+
};
|