@e-burgos/tucu-ui 1.1.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/1-CArqgiQa.js +1 -0
- package/1-Df9CGZha.mjs +4 -0
- package/APIReferenceSection-CHFWh_o7.mjs +142 -0
- package/APIReferenceSection-DluVuy7j.js +1 -0
- package/ActiveLinkSection-6ybcGGt2.mjs +120 -0
- package/ActiveLinkSection-eR2Tdsul.js +22 -0
- package/AdvancedColorSystemSection-B_8HoiQ3.mjs +194 -0
- package/AdvancedColorSystemSection-DKMWh-a_.js +17 -0
- package/AdvancedFeaturesSection-DbPXJd4H.js +1 -0
- package/AdvancedFeaturesSection-DpTDCRTm.js +1 -0
- package/AdvancedFeaturesSection-q8VXmitJ.mjs +100 -0
- package/AdvancedFeaturesSection-sL-_vRo2.mjs +82 -0
- package/AlertSection-Bqcg-w-7.js +25 -0
- package/AlertSection-Dn6NjQDr.mjs +143 -0
- package/AnchorLinkSection-3cpqAe_7.js +19 -0
- package/AnchorLinkSection-B5z9BGZb.mjs +94 -0
- package/ArchitecturalPatternsComparisonSection-D1lgF9Qq.js +31 -0
- package/ArchitecturalPatternsComparisonSection-D7aRdQjp.mjs +325 -0
- package/ArchitectureOverviewSection-CI-HqKmP.js +1 -0
- package/ArchitectureOverviewSection-N-DTRCmA.mjs +88 -0
- package/AuthorCardSection-ejoMkFT6.mjs +110 -0
- package/AuthorCardSection-q-e7Fvih.js +17 -0
- package/AvatarSection-CYIhQCW7.js +18 -0
- package/AvatarSection-CxQ9I8LE.mjs +137 -0
- package/BadgeSection-BYDufusc.mjs +238 -0
- package/BadgeSection-kYu8t7T2.js +48 -0
- package/BasicTableSection-B3eoFQgO.mjs +169 -0
- package/BasicTableSection-QXvy76bx.js +35 -0
- package/BasicUsageSection-Dk9S31nn.js +45 -0
- package/BasicUsageSection-gHN131UX.mjs +103 -0
- package/BestPracticesSection-B-5IaVUl.mjs +43 -0
- package/BestPracticesSection-B-x2dv0_.js +1 -0
- package/BestPracticesSection-C-4JCVk8.mjs +57 -0
- package/BestPracticesSection-CHiBf9j4.js +1 -0
- package/BestPracticesSection-CYYODLWD.mjs +84 -0
- package/BestPracticesSection-CgYDQZ08.js +1 -0
- package/BestPracticesSection-Csw9FmwN.mjs +83 -0
- package/BestPracticesSection-DTvZOXjW.js +1 -0
- package/BestPracticesSection-DgzVoetG.js +1 -0
- package/BestPracticesSection-NnTfU37k.mjs +41 -0
- package/BestPracticesSection-Rin8bHTr.js +1 -0
- package/BestPracticesSection-WJpORyLr.mjs +83 -0
- package/BestPracticesSection-bLuG1Luj.js +1 -0
- package/BestPracticesSection-vTl1Ddip.mjs +49 -0
- package/BorderRadiusSection-Bqpjgp5K.js +1 -0
- package/BorderRadiusSection-CYOGG5iZ.mjs +63 -0
- package/ButtonDripSection-BzblNRvl.mjs +99 -0
- package/ButtonDripSection-DRspv1Jd.js +12 -0
- package/ButtonLoaderSection-Blhaeqm7.js +30 -0
- package/ButtonLoaderSection-D9La-WQM.mjs +127 -0
- package/CHANGELOG.md +253 -0
- package/CardContainerSection-Cu1AzOCt.js +21 -0
- package/CardContainerSection-DS5PU6Wb.mjs +99 -0
- package/CardTitleSection-Wh6g54mJ.js +19 -0
- package/CardTitleSection-ju9F8Tyy.mjs +113 -0
- package/CarouselCardsSection-BVs6FbIw.js +37 -0
- package/CarouselCardsSection-BjTszCQ3.mjs +207 -0
- package/CarouselImageSection-B_H8sVnv.js +38 -0
- package/CarouselImageSection-CrvNktF1.mjs +218 -0
- package/CarouselSection-QmSC4Fer.mjs +159 -0
- package/CarouselSection-uwwpdSwJ.js +24 -0
- package/CheckboxSection-Dwy_YlRw.js +26 -0
- package/CheckboxSection-hX15QRdY.mjs +221 -0
- package/CodeExamplesSection-BNqHspuA.js +28 -0
- package/CodeExamplesSection-BUH5OyaH.mjs +137 -0
- package/CoinCardSection-BTdqO4no.mjs +174 -0
- package/CoinCardSection-DFEAiQGO.js +13 -0
- package/CoinInfoCardSection-3FTitkuN.mjs +174 -0
- package/CoinInfoCardSection-B7Oz1TWD.js +12 -0
- package/CoinListBoxSection-BaH4hZWa.js +24 -0
- package/CoinListBoxSection-_TubrBNV.mjs +219 -0
- package/CollapseSection-CRjrWcRJ.mjs +126 -0
- package/CollapseSection-DqNvLafS.js +27 -0
- package/CollectionCardSection-BGZ1mE8u.mjs +103 -0
- package/CollectionCardSection-DhyQKxxm.js +17 -0
- package/CollectionSelectListSection-CK1VQ7I0.mjs +102 -0
- package/CollectionSelectListSection-CKpKD67J.js +14 -0
- package/ColorCustomizationSection-CE36WYNY.js +1 -0
- package/ColorCustomizationSection-aKl6PI7A.mjs +117 -0
- package/ColorSystemSection-7uC0hJqW.mjs +149 -0
- package/ColorSystemSection-Bvcs1dxh.js +1 -0
- package/CommonErrorsSection-CFR64ylt.mjs +54 -0
- package/CommonErrorsSection-D4_FTfVZ.js +1 -0
- package/ComponentAnatomySection-CPYdBCO6.mjs +72 -0
- package/ComponentAnatomySection-T1qWJOin.js +1 -0
- package/ComponentStatusSection-CRoITF3h.mjs +84 -0
- package/ComponentStatusSection-DrPj3CJM.js +1 -0
- package/CurrencySwapIconsSection-BH3LQuBS.mjs +92 -0
- package/CurrencySwapIconsSection-CxKdhIow.js +7 -0
- package/CustomColorPaletteSection-B3CsPSOE.mjs +54 -0
- package/CustomColorPaletteSection-BtxfPGfC.js +19 -0
- package/CustomIconsSection-BgV-WAPJ.mjs +162 -0
- package/CustomIconsSection-DGEzlSMX.js +3 -0
- package/DefiAppLogoSection-Dho5mLuT.mjs +120 -0
- package/DefiAppLogoSection-PywyZ7Ds.js +36 -0
- package/DesignPrinciplesSection-BgaeCDku.mjs +81 -0
- package/DesignPrinciplesSection-DnOaJYVE.js +1 -0
- package/DrawerSection-BFrAtmLv.mjs +188 -0
- package/DrawerSection-BrAQSdGk.js +41 -0
- package/DynamicRoutesSection-BF1XqRl-.js +42 -0
- package/DynamicRoutesSection-BN90cnDy.mjs +100 -0
- package/FileInputSection-BV0_j5aJ.mjs +277 -0
- package/FileInputSection-CIFSCnZT.js +65 -0
- package/FileStructureSection-Bd08VEZK.mjs +87 -0
- package/FileStructureSection-DQQA-vIe.js +26 -0
- package/FormComponentsSection-C5NZO7yV.mjs +116 -0
- package/FormComponentsSection-CwJntEmg.js +1 -0
- package/FormMethodsSection-B98UkHBv.js +55 -0
- package/FormMethodsSection-D58xvtsL.mjs +119 -0
- package/HamburgerSection-BUji63CO.mjs +108 -0
- package/HamburgerSection-n_xmP-wn.js +18 -0
- package/HookCategoriesSection-DhGSTU0B.js +1 -0
- package/HookCategoriesSection-GYU7Iei5.mjs +97 -0
- package/HookDocumentationSection-CKJJ-w_i.js +73 -0
- package/HookDocumentationSection-DnqLYSGK.mjs +272 -0
- package/HookFeaturesSection-Bqg-CA71.mjs +81 -0
- package/HookFeaturesSection-Csey5UTc.js +1 -0
- package/IconArchitectureSection-Wv-G2b6a.js +1 -0
- package/IconArchitectureSection-hhRBUg-V.mjs +108 -0
- package/IconSizingGuideSection-Dx8mN7PX.mjs +69 -0
- package/IconSizingGuideSection-YB-CGtnr.js +1 -0
- package/IconSystemAPISection-QJWhdfpo.js +1 -0
- package/IconSystemAPISection-bXrudU06.mjs +61 -0
- package/IconSystemBenefitsSection-BwanyP3c.js +1 -0
- package/IconSystemBenefitsSection-DKLtXb24.mjs +41 -0
- package/ImageSection-CSmiHV0L.mjs +612 -0
- package/ImageSection-sHVjMCnz.js +80 -0
- package/ImplementationExamplesSection-DfHKYrzv.mjs +284 -0
- package/ImplementationExamplesSection-DwH6OVfU.js +178 -0
- package/ImplementationGuidelinesSection-Bj4DFmdL.mjs +52 -0
- package/ImplementationGuidelinesSection-DP_I_Hi1.js +1 -0
- package/ImplementationStatusSection-CRYiKU5h.mjs +23 -0
- package/ImplementationStatusSection-VVEoRERd.js +1 -0
- package/ImplementedFeaturesSection-BMT9e9nX.mjs +116 -0
- package/ImplementedFeaturesSection-DdDpTz2-.js +1 -0
- package/InputSearcherSection-CY1pJ7_p.js +32 -0
- package/InputSearcherSection-DBshLx3e.mjs +258 -0
- package/InputSection-BsdqucRI.js +37 -0
- package/InputSection-Ho687ul0.mjs +265 -0
- package/KeyboardNavigationSection-4iRK0ZQA.js +1 -0
- package/KeyboardNavigationSection-PpDOGCby.mjs +69 -0
- package/LayoutPrinciplesSection-D-vccfVu.mjs +106 -0
- package/LayoutPrinciplesSection-D9_fFAF_.js +1 -0
- package/LayoutTypesSection-BkcFBXXg.js +1 -0
- package/LayoutTypesSection-usXYbbCR.mjs +239 -0
- package/ListContainerSection-PLAbcoL1.mjs +191 -0
- package/ListContainerSection-yeYEWBZY.js +38 -0
- package/ListItemSection-Cf0jmpas.mjs +191 -0
- package/ListItemSection-sb6shrQt.js +36 -0
- package/LiveDemoSection-DEQKbTQk.mjs +16 -0
- package/LiveDemoSection-cPIxcIuZ.js +1 -0
- package/LiveDemonstrationsSection-0qjqbzL8.mjs +445 -0
- package/LiveDemonstrationsSection-DLwejyei.js +4 -0
- package/LivePriceFeedSection-DEhOelW8.js +20 -0
- package/LivePriceFeedSection-DyMixQjB.mjs +187 -0
- package/LoaderSection-HsHhN1fT.mjs +143 -0
- package/LoaderSection-Zl3r1AHf.js +22 -0
- package/LogoSection-BjaE8rJp.mjs +319 -0
- package/LogoSection-DrzsqfB_.js +100 -0
- package/LucideIconsSection-BfQQfNnw.mjs +128 -0
- package/LucideIconsSection-CFioLWY9.js +1 -0
- package/MFESupportSection-CfqZiAlG.mjs +354 -0
- package/MFESupportSection-aHAWy-oc.js +122 -0
- package/MenuItemsGuideSection-CfkMoYWs.js +126 -0
- package/MenuItemsGuideSection-DtqEz3te.mjs +325 -0
- package/ModalSection-DoA3JVZO.mjs +158 -0
- package/ModalSection-vV4oaIXq.js +29 -0
- package/NFTGridSection-BiqoU8o6.mjs +122 -0
- package/NFTGridSection-DmpbDmFp.js +11 -0
- package/NestedRoutesSection-BjrHulvK.mjs +88 -0
- package/NestedRoutesSection-CwHxcPIB.js +36 -0
- package/NotificationCardSection-BTvGBUp5.js +28 -0
- package/NotificationCardSection-yrGz8e61.mjs +153 -0
- package/PanelActionCardSection-De_RT7Xx.js +28 -0
- package/PanelActionCardSection-DtKYzJRz.mjs +138 -0
- package/PanelCardSection-BhHyd_RU.mjs +96 -0
- package/PanelCardSection-BwdNRgHL.js +15 -0
- package/ParamTabSection-D-64gIJ0.js +92 -0
- package/ParamTabSection-DW95bROn.mjs +561 -0
- package/PinCodeSection-DLxT1qlT.js +22 -0
- package/PinCodeSection-DRvKUePb.mjs +263 -0
- package/ProgressbarSection-CKbkhmQS.mjs +195 -0
- package/ProgressbarSection-CRCYjRpw.js +21 -0
- package/README.md +297 -83
- package/RadioGroupSection-BPp-Tp9a.mjs +288 -0
- package/RadioGroupSection-BUWSW6uI.js +27 -0
- package/RadioSection-CSn_sr4P.mjs +208 -0
- package/RadioSection-Cl2T68su.js +23 -0
- package/RevealContentSection-B4yEXfQY.mjs +111 -0
- package/RevealContentSection-DMZRYCm2.js +21 -0
- package/RouteConfigurationSection-CoQn38dJ.js +40 -0
- package/RouteConfigurationSection-DqLJ2vbf.mjs +81 -0
- package/ScrollToTopSection-DY_WQiIp.js +36 -0
- package/ScrollToTopSection-bsPO6VoN.mjs +193 -0
- package/ScrollbarSection-BQLoKdfQ.mjs +146 -0
- package/ScrollbarSection-f9m-PsRb.js +29 -0
- package/SelectSection-BN9qlOW6.mjs +275 -0
- package/SelectSection-BSY-VzxD.js +20 -0
- package/SettingsPanelSection-Beigs8Mz.js +1 -0
- package/SettingsPanelSection-C87nsYr6.mjs +126 -0
- package/ShadowsSection-Bc7fTEaF.js +1 -0
- package/ShadowsSection-swFi7rcU.mjs +90 -0
- package/SidebarMenuSection-CrXxweh8.js +46 -0
- package/SidebarMenuSection-Ok5nM-Gb.mjs +140 -0
- package/SidebarSection-DBreiJzV.js +25 -0
- package/SidebarSection-eGUICII0.mjs +122 -0
- package/SizingSection-B79GMG1e.js +1 -0
- package/SizingSection-BZ6K7FDU.mjs +86 -0
- package/SkeletonSection-CCNrjbhN.js +52 -0
- package/SkeletonSection-D3-GHpIx.mjs +259 -0
- package/SpacingSystemSection-00FcQc6s.js +1 -0
- package/SpacingSystemSection-CPC_ueHg.mjs +82 -0
- package/SpinnerSection-BKxNrkZS.mjs +107 -0
- package/SpinnerSection-CeTSWqKn.js +17 -0
- package/StandaloneAppSection-CL7q2RAc.mjs +244 -0
- package/StandaloneAppSection-xt8l3Kox.js +69 -0
- package/SwitchSection-CPHMvmxe.js +20 -0
- package/SwitchSection-KW_y9F1U.mjs +230 -0
- package/SystemOverviewSection-9jmtz2sd.mjs +93 -0
- package/SystemOverviewSection-QYqitAxQ.js +1 -0
- package/TabSection-Cytn9Eg_.js +84 -0
- package/TabSection-Dt7NHmRD.mjs +331 -0
- package/TabSelectSection-C3qtM1sO.js +100 -0
- package/TabSelectSection-CIkC-gNn.mjs +418 -0
- package/TailwindConfigSection-B3u_7Uj3.mjs +152 -0
- package/TailwindConfigSection-Beh2sEXt.js +19 -0
- package/TestingSection-DqUsgS3A.mjs +48 -0
- package/TestingSection-jzeFF7T4.js +12 -0
- package/TextareaSection-BC5OuD6Y.mjs +220 -0
- package/TextareaSection-DdF73vjR.js +21 -0
- package/ThemeArchitectureSection-CRMTbUjE.js +1 -0
- package/ThemeArchitectureSection-hVs57qtQ.mjs +86 -0
- package/ThemeConfigurationSection-ByKwC4NV.mjs +132 -0
- package/ThemeConfigurationSection-V9NL4B6w.js +1 -0
- package/ThemeHooksSection-BqMaxz3M.mjs +119 -0
- package/ThemeHooksSection-Cq7naa3J.js +1 -0
- package/ThemeProviderIntegrationSection-BdyKt0OG.js +61 -0
- package/ThemeProviderIntegrationSection-Dd4ey6yw.mjs +108 -0
- package/ThemeProviderRequiredSection-BC0SE1oX.mjs +95 -0
- package/ThemeProviderRequiredSection-C38NrwgR.js +1 -0
- package/ThemeProviderSection-DH9EOiSK.mjs +128 -0
- package/ThemeProviderSection-IP9yGtu9.js +1 -0
- package/ToastSection--5jtANA4.js +37 -0
- package/ToastSection-DMKHXDUt.mjs +170 -0
- package/ToggleBarSection-DFyy46ps.mjs +187 -0
- package/ToggleBarSection-sLrIdWGE.js +37 -0
- package/TopupButtonSection-D4UKj_4e.js +24 -0
- package/TopupButtonSection-MWCr2HgN.mjs +145 -0
- package/TransactionInfoSection-BDjeyKVu.mjs +113 -0
- package/TransactionInfoSection-Dow-BcLX.js +16 -0
- package/TucuUiLogoSection-B98FqIGR.mjs +121 -0
- package/TucuUiLogoSection-D33WplqP.js +26 -0
- package/TypographySection-BhLYx-Kc.mjs +129 -0
- package/TypographySection-C5qZROOc.mjs +214 -0
- package/TypographySection-CGqn0YKc.js +24 -0
- package/TypographySection-D833eiFZ.js +1 -0
- package/UsageExamplesSection-BYqtf6E5.mjs +147 -0
- package/UsageExamplesSection-B_3VW7eX.js +83 -0
- package/UsingThemeSystemSection-DnfcjVLJ.js +140 -0
- package/UsingThemeSystemSection-F28_AtB_.mjs +176 -0
- package/ValidationSystemSection-Ci83T7Q5.mjs +197 -0
- package/ValidationSystemSection-Dsoz_A_r.js +54 -0
- package/WCAGPrinciplesSection-DCjENTGT.js +1 -0
- package/WCAGPrinciplesSection-zEOESp2h.mjs +116 -0
- package/collection-1-BIsLOX9N.js +1 -0
- package/collection-1-NeFANkbk.mjs +4 -0
- package/components/common/badge.d.ts +16 -6
- package/components/common/skeleton.d.ts +36 -3
- package/components/icons/chevron-left.d.ts +1 -1
- package/components/index.d.ts +6 -3
- package/components/inputs/{uploader-two.d.ts → file-input.d.ts} +13 -13
- package/components/inputs/index.d.ts +1 -2
- package/components/inputs/input.d.ts +2 -0
- package/components/layouts/index.d.ts +13 -0
- package/components/layouts/menus/menu-item.d.ts +3 -2
- package/components/list/index.d.ts +2 -0
- package/components/list/list-Item.d.ts +13 -0
- package/components/list/list-container.d.ts +17 -0
- package/components/logos/defi-app-logo.d.ts +1 -0
- package/components/logos/full-logo.d.ts +1 -0
- package/components/logos/index.d.ts +2 -5
- package/components/logos/logo.d.ts +1 -2
- package/components/logos/tucu-ui-logo.d.ts +8 -0
- package/components/notifications/alert.d.ts +2 -1
- package/components/table/basic-table.d.ts +25 -0
- package/components/table/index.d.ts +1 -0
- package/components/tabs/param-tab.d.ts +7 -1
- package/components/tabs/tab.d.ts +18 -6
- package/components/utils/image.d.ts +17 -8
- package/components/utils/index.d.ts +0 -1
- package/components/utils/scroll-to-top.d.ts +38 -1
- package/demo/components/hero-card.d.ts +1 -0
- package/demo/components/index.d.ts +4 -0
- package/demo/components/lazy-component-section.d.ts +11 -0
- package/demo/components/nav-options.d.ts +2 -0
- package/demo/components/playground-button.d.ts +1 -0
- package/demo/components/table-of-contents.d.ts +16 -0
- package/demo/index.d.ts +1 -0
- package/demo/pages/blockchain/BlockchainComponents.d.ts +1 -0
- package/demo/pages/blockchain/blockchain-components-sections/CoinCardSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CoinInfoCardSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CoinListBoxSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CollectionCardSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CollectionSelectListSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/CurrencySwapIconsSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/LivePriceFeedSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/NFTGridSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/TransactionInfoSection.d.ts +3 -0
- package/demo/pages/blockchain/blockchain-components-sections/index.d.ts +9 -0
- package/demo/pages/components/ComponentsIntroduction.d.ts +1 -0
- package/demo/pages/components/InputsComponents.d.ts +2 -0
- package/demo/pages/components/UiComponents.d.ts +1 -0
- package/demo/pages/components/input-components-sections/CheckboxSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/FileInputSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/InputSearcherSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/InputSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/PinCodeSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/RadioGroupSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/RadioSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/SelectSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/SwitchSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/TextareaSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/ToggleBarSection.d.ts +3 -0
- package/demo/pages/components/input-components-sections/index.d.ts +11 -0
- package/demo/pages/components/ui-components-sections/ActiveLinkSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AlertSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AnchorLinkSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AuthorCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/AvatarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/BadgeSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/BasicTableSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ButtonDripSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ButtonLoaderSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CardContainerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CardTitleSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CarouselCardsSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CarouselImageSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CarouselSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/CollapseSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/DefiAppLogoSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/DrawerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/HamburgerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ImageSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ListContainerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ListItemSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/LoaderSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/LogoSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ModalSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/NotificationCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/PanelActionCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/PanelCardSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ParamTabSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ProgressbarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/RevealContentSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ScrollToTopSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ScrollbarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SidebarMenuSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SidebarSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SkeletonSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/SpinnerSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TabSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TabSelectSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/ToastSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TopupButtonSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TucuUiLogoSection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/TypographySection.d.ts +3 -0
- package/demo/pages/components/ui-components-sections/index.d.ts +40 -0
- package/demo/pages/design-system/DesignSystem.d.ts +2 -0
- package/demo/pages/design-system/LayoutSystem.d.ts +2 -0
- package/demo/pages/design-system/ThemingGuide.d.ts +2 -0
- package/demo/pages/design-system/design-system-sections/BorderRadiusSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ColorSystemSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ComponentAnatomySection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/DesignPrinciplesSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ImplementationGuidelinesSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/LayoutPrinciplesSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/ShadowsSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/SizingSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/SpacingSystemSection.d.ts +3 -0
- package/demo/pages/design-system/design-system-sections/TypographySection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/CommonErrorsSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/ImplementationExamplesSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/LayoutTypesSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/MenuItemsGuideSection.d.ts +3 -0
- package/demo/pages/design-system/layout-system-sections/ThemeProviderRequiredSection.d.ts +3 -0
- package/demo/pages/design-system/legacy/DesignSystemIntroduction.d.ts +2 -0
- package/demo/pages/design-system/legacy/ThemingGuideIntroduction.d.ts +2 -0
- package/demo/pages/design-system/theming-guide-sections/AdvancedColorSystemSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/AdvancedFeaturesSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ColorCustomizationSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/CustomColorPaletteSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/FileStructureSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/SettingsPanelSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/TailwindConfigSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeArchitectureSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeConfigurationSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeHooksSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/ThemeProviderSection.d.ts +3 -0
- package/demo/pages/design-system/theming-guide-sections/UsingThemeSystemSection.d.ts +3 -0
- package/demo/pages/features/Accessibility.d.ts +2 -0
- package/demo/pages/features/FeaturesIntroduction.d.ts +1 -0
- package/demo/pages/features/HooksUtilities.d.ts +2 -0
- package/demo/pages/features/IconsSystem.d.ts +2 -0
- package/demo/pages/features/RoutingSystem.d.ts +2 -0
- package/demo/pages/features/accessibility-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/CodeExamplesSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/ComponentStatusSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/ImplementationStatusSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/ImplementedFeaturesSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/KeyboardNavigationSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/TestingSection.d.ts +3 -0
- package/demo/pages/features/accessibility-sections/WCAGPrinciplesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/HookCategoriesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/HookDocumentationSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/HookFeaturesSection.d.ts +3 -0
- package/demo/pages/features/hooks-utilities-sections/LiveDemonstrationsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/CustomIconsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconArchitectureSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconSizingGuideSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconSystemAPISection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/IconSystemBenefitsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/LucideIconsSection.d.ts +3 -0
- package/demo/pages/features/icon-system-sections/UsageExamplesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/APIReferenceSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/ArchitecturalPatternsComparisonSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/DynamicRoutesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/MFESupportSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/NestedRoutesSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/RouteConfigurationSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/StandaloneAppSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/SystemOverviewSection.d.ts +3 -0
- package/demo/pages/features/routing-system-sections/ThemeProviderIntegrationSection.d.ts +3 -0
- package/demo/pages/form-system/FormSystem.d.ts +2 -0
- package/demo/pages/form-system/code-example-page.d.ts +2 -0
- package/demo/pages/form-system/example/constants.d.ts +12 -0
- package/demo/pages/form-system/example/simple-form-example.d.ts +3 -0
- package/demo/pages/form-system/form-example-page.d.ts +2 -0
- package/demo/pages/form-system/form-system-sections/AdvancedFeaturesSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/ArchitectureOverviewSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/BasicUsageSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/BestPracticesSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/FormComponentsSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/FormMethodsSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/LiveDemoSection.d.ts +3 -0
- package/demo/pages/form-system/form-system-sections/ValidationSystemSection.d.ts +3 -0
- package/demo/pages/index.d.ts +36 -0
- package/demo/pages/introduction/BasicUsageDemo.d.ts +1 -0
- package/demo/pages/introduction/BasicUsageExampleCode.d.ts +1 -0
- package/demo/pages/introduction/BasicUsageWithCustomRouterExampleCode.d.ts +1 -0
- package/demo/pages/introduction/ThemeProviderExamples.d.ts +7 -0
- package/demo/pages/introduction/index.d.ts +1 -0
- package/demo/pages/tailwind/AccessibilityUtilities.d.ts +1 -0
- package/demo/pages/tailwind/BackgroundUtilities.d.ts +1 -0
- package/demo/pages/tailwind/BordersUtilities.d.ts +1 -0
- package/demo/pages/tailwind/Colors.d.ts +1 -0
- package/demo/pages/tailwind/EffectsUtilities.d.ts +1 -0
- package/demo/pages/tailwind/FiltersUtilities.d.ts +1 -0
- package/demo/pages/tailwind/FlexboxGridUtilities.d.ts +1 -0
- package/demo/pages/tailwind/InteractivityUtilities.d.ts +1 -0
- package/demo/pages/tailwind/LayoutUtilities.d.ts +1 -0
- package/demo/pages/tailwind/SVGUtilities.d.ts +1 -0
- package/demo/pages/tailwind/TablesUtilities.d.ts +1 -0
- package/demo/pages/tailwind/TailwindIntroduction.d.ts +1 -0
- package/demo/pages/tailwind/TransformsUtilities.d.ts +1 -0
- package/demo/pages/tailwind/TransitionsAnimations.d.ts +1 -0
- package/demo/pages/tailwind/TypographyUtilities.d.ts +1 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/use-anchor-scroll.d.ts +1 -0
- package/hooks/use-window-scroll.d.ts +11 -1
- package/index-BoEJRnmP.js +906 -0
- package/index-DCf83AyI.mjs +53778 -0
- package/index.css +1 -1
- package/index.js +1 -179
- package/index.mjs +324 -45608
- package/package.json +2 -3
- package/tether-DaYvmdAU.mjs +5 -0
- package/tether-EofDinu3.js +1 -0
- package/themes/auth/components/auth-provider.d.ts +2 -0
- package/themes/components/theme-provider/index.d.ts +48 -6
- package/themes/components/theme-provider/mfe-app-theme-provider.d.ts +4 -1
- package/themes/components/theme-provider/standalone-app-theme-provider.d.ts +12 -0
- package/themes/components/theme-provider/theme-wrapper.d.ts +2 -1
- package/themes/config/index.d.ts +1 -1
- package/themes/hooks/use-theme.d.ts +0 -2
- package/themes/pages/access-denied.d.ts +6 -0
- package/themes/pages/default-error.d.ts +5 -0
- package/themes/pages/disabled-page.d.ts +5 -0
- package/themes/pages/forbidden.d.ts +5 -0
- package/themes/pages/index.d.ts +8 -0
- package/themes/pages/no-routes.d.ts +5 -0
- package/themes/pages/server-error.d.ts +5 -0
- package/themes/pages/unknown.d.ts +5 -0
- package/themes/pages/user-blocked.d.ts +5 -0
- package/themes/router/components/index.d.ts +1 -1
- package/themes/router/components/mfe-app-routes-provider.d.ts +2 -0
- package/themes/router/components/standalone-app-routes-provider.d.ts +20 -0
- package/themes/types/index.d.ts +2 -2
- package/components/inputs/uploader.d.ts +0 -2
- package/components/legacy/forms/checkbox.d.ts +0 -38
- package/components/legacy/forms/field-error-text.d.ts +0 -19
- package/components/legacy/forms/field-helper-text.d.ts +0 -18
- package/components/legacy/forms/file-input.d.ts +0 -8
- package/components/legacy/forms/form-system/example/error-container-example.d.ts +0 -3
- package/components/legacy/forms/form-system/example/form-example.d.ts +0 -3
- package/components/legacy/forms/form-system/example/form-methods-example.d.ts +0 -3
- package/components/legacy/forms/form-system/example/validations.d.ts +0 -14
- package/components/legacy/forms/form-system/form-field.d.ts +0 -14
- package/components/legacy/forms/form-system/form.d.ts +0 -13
- package/components/legacy/forms/form-system/hook-form.d.ts +0 -3
- package/components/legacy/forms/form-system/index.d.ts +0 -10
- package/components/legacy/forms/form-system/types/dependencies.type.d.ts +0 -11
- package/components/legacy/forms/form-system/types/extend-react-hook-form.type.d.ts +0 -16
- package/components/legacy/forms/form-system/types/index.d.ts +0 -3
- package/components/legacy/forms/form-system/types/validations.type.d.ts +0 -9
- package/components/legacy/forms/input-label.d.ts +0 -9
- package/components/legacy/forms/input-searcher.d.ts +0 -11
- package/components/legacy/forms/input-select.d.ts +0 -24
- package/components/legacy/forms/input-switch.d.ts +0 -13
- package/components/legacy/forms/input.d.ts +0 -16
- package/components/legacy/forms/pin-code.d.ts +0 -95
- package/components/legacy/forms/radio-group.d.ts +0 -56
- package/components/legacy/forms/radio.d.ts +0 -84
- package/components/legacy/forms/textarea.d.ts +0 -10
- package/components/logos/AppLogo.d.ts +0 -1
- package/components/logos/logo-dark.d.ts +0 -1
- package/components/logos/logo-icon.d.ts +0 -5
- package/components/logos/logo-iso-dark.d.ts +0 -1
- package/components/logos/logo-iso-light.d.ts +0 -1
- package/components/logos/logo-light.d.ts +0 -1
- package/components/utils/test-brand-classes.d.ts +0 -1
- package/themes/components/theme-provider/single-app-theme-provider.d.ts +0 -8
- package/themes/router/components/single-app-routes-provider.d.ts +0 -17
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as s, C as i, a as d, z as r, B as o, c as n } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import { a as t } from "./1-Df9CGZha.mjs";
|
|
8
|
+
const y = () => /* @__PURE__ */ a(c, { children: [
|
|
9
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
10
|
+
/* @__PURE__ */ e(s, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Avatar" }),
|
|
11
|
+
/* @__PURE__ */ e(
|
|
12
|
+
s,
|
|
13
|
+
{
|
|
14
|
+
tag: "p",
|
|
15
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
16
|
+
children: "A versatile avatar component for displaying user profile images with multiple sizes and shapes."
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ e(i, { className: "overflow-hidden", children: /* @__PURE__ */ e(d, { title: "Basic Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
21
|
+
/* @__PURE__ */ a(i, { className: "p-4", children: [
|
|
22
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Default Avatar" }),
|
|
23
|
+
/* @__PURE__ */ e(r, { image: t, alt: "User avatar" })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ a(i, { className: "p-4", children: [
|
|
26
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Without Border" }),
|
|
27
|
+
/* @__PURE__ */ e(r, { image: t, alt: "User avatar", border: !1 })
|
|
28
|
+
] })
|
|
29
|
+
] }) }) }) }),
|
|
30
|
+
/* @__PURE__ */ e(i, { className: "overflow-hidden", children: /* @__PURE__ */ e(d, { title: "Variants", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
31
|
+
/* @__PURE__ */ a("div", { children: [
|
|
32
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Sizes" }),
|
|
33
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-4", children: [
|
|
34
|
+
/* @__PURE__ */ e(r, { image: t, alt: "XS", size: "xs" }),
|
|
35
|
+
/* @__PURE__ */ e(r, { image: t, alt: "SM", size: "sm" }),
|
|
36
|
+
/* @__PURE__ */ e(r, { image: t, alt: "MD", size: "md" }),
|
|
37
|
+
/* @__PURE__ */ e(r, { image: t, alt: "LG", size: "lg" }),
|
|
38
|
+
/* @__PURE__ */ e(r, { image: t, alt: "XL", size: "xl" })
|
|
39
|
+
] })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ a("div", { children: [
|
|
42
|
+
/* @__PURE__ */ e(s, { tag: "h5", className: "mb-3", children: "Shapes" }),
|
|
43
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-4", children: [
|
|
44
|
+
/* @__PURE__ */ e(r, { image: t, alt: "Circle", shape: "circle" }),
|
|
45
|
+
/* @__PURE__ */ e(r, { image: t, alt: "Rounded", shape: "rounded" })
|
|
46
|
+
] })
|
|
47
|
+
] })
|
|
48
|
+
] }) }) }) }),
|
|
49
|
+
/* @__PURE__ */ e(i, { className: "overflow-hidden", children: /* @__PURE__ */ e(d, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(o, { columns: [
|
|
50
|
+
{
|
|
51
|
+
key: "prop",
|
|
52
|
+
label: "Prop",
|
|
53
|
+
render: (l) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(l) })
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
key: "type",
|
|
57
|
+
label: "Type",
|
|
58
|
+
render: (l) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(l) })
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: "default",
|
|
62
|
+
label: "Default",
|
|
63
|
+
render: (l) => {
|
|
64
|
+
const m = String(l);
|
|
65
|
+
return m === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: m });
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: "description",
|
|
70
|
+
label: "Description"
|
|
71
|
+
}
|
|
72
|
+
], data: [
|
|
73
|
+
{
|
|
74
|
+
prop: "image",
|
|
75
|
+
type: "string",
|
|
76
|
+
default: "required",
|
|
77
|
+
description: "URL or path to the avatar image"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
prop: "alt",
|
|
81
|
+
type: "string",
|
|
82
|
+
default: "required",
|
|
83
|
+
description: "Alt text for the image"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
prop: "size",
|
|
87
|
+
type: "'xl' | 'lg' | 'md' | 'sm' | 'xs'",
|
|
88
|
+
default: "'md'",
|
|
89
|
+
description: "Size of the avatar"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
prop: "shape",
|
|
93
|
+
type: "'rounded' | 'circle'",
|
|
94
|
+
default: "'circle'",
|
|
95
|
+
description: "Shape of the avatar"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
prop: "border",
|
|
99
|
+
type: "boolean",
|
|
100
|
+
default: "true",
|
|
101
|
+
description: "Whether to show border"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
prop: "className",
|
|
105
|
+
type: "string",
|
|
106
|
+
default: "-",
|
|
107
|
+
description: "Additional CSS classes"
|
|
108
|
+
}
|
|
109
|
+
] }) }) }) }),
|
|
110
|
+
/* @__PURE__ */ e(i, { className: "overflow-hidden", children: /* @__PURE__ */ e(d, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
111
|
+
n,
|
|
112
|
+
{
|
|
113
|
+
language: "tsx",
|
|
114
|
+
code: `import { Avatar } from '@e-burgos/tucu-ui';
|
|
115
|
+
|
|
116
|
+
// Basic usage
|
|
117
|
+
<Avatar image="/path/to/image.jpg" alt="User name" />
|
|
118
|
+
|
|
119
|
+
// Different sizes
|
|
120
|
+
<Avatar image={image} alt="User" size="xs" />
|
|
121
|
+
<Avatar image={image} alt="User" size="sm" />
|
|
122
|
+
<Avatar image={image} alt="User" size="md" />
|
|
123
|
+
<Avatar image={image} alt="User" size="lg" />
|
|
124
|
+
<Avatar image={image} alt="User" size="xl" />
|
|
125
|
+
|
|
126
|
+
// Different shapes
|
|
127
|
+
<Avatar image={image} alt="User" shape="circle" />
|
|
128
|
+
<Avatar image={image} alt="User" shape="rounded" />
|
|
129
|
+
|
|
130
|
+
// Without border
|
|
131
|
+
<Avatar image={image} alt="User" border={false} />`
|
|
132
|
+
}
|
|
133
|
+
) }) }) })
|
|
134
|
+
] });
|
|
135
|
+
export {
|
|
136
|
+
y as default
|
|
137
|
+
};
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { jsxs as i, Fragment as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, C as l, a as s, D as a, B as n, c as o } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const x = () => /* @__PURE__ */ i(d, { children: [
|
|
8
|
+
/* @__PURE__ */ i("div", { className: "text-center space-y-4", children: [
|
|
9
|
+
/* @__PURE__ */ e(r, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Badge" }),
|
|
10
|
+
/* @__PURE__ */ e(
|
|
11
|
+
r,
|
|
12
|
+
{
|
|
13
|
+
tag: "p",
|
|
14
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
15
|
+
children: "A badge component for displaying status indicators and labels with various styles and sizes."
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(s, { title: "Basic Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ i("div", { className: "space-y-6", children: [
|
|
20
|
+
/* @__PURE__ */ i("div", { children: [
|
|
21
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Status Badges" }),
|
|
22
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
23
|
+
/* @__PURE__ */ e(a, { status: "active", children: "Active" }),
|
|
24
|
+
/* @__PURE__ */ e(a, { status: "inactive", children: "Inactive" }),
|
|
25
|
+
/* @__PURE__ */ e(a, { status: "pending", children: "Pending" }),
|
|
26
|
+
/* @__PURE__ */ e(a, { status: "default", children: "Default" })
|
|
27
|
+
] })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ i("div", { children: [
|
|
30
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Status Indicators (Dots Only)" }),
|
|
31
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
32
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
33
|
+
/* @__PURE__ */ e(a, { status: "active", withDot: !0 }),
|
|
34
|
+
/* @__PURE__ */ e("span", { className: "text-sm", children: "Online" })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
37
|
+
/* @__PURE__ */ e(a, { status: "inactive", withDot: !0 }),
|
|
38
|
+
/* @__PURE__ */ e("span", { className: "text-sm", children: "Offline" })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
41
|
+
/* @__PURE__ */ e(a, { status: "pending", withDot: !0 }),
|
|
42
|
+
/* @__PURE__ */ e("span", { className: "text-sm", children: "Away" })
|
|
43
|
+
] })
|
|
44
|
+
] })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ i("div", { children: [
|
|
47
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "With Dot Indicator" }),
|
|
48
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
49
|
+
/* @__PURE__ */ e(a, { status: "active", withDot: !0, children: "Active" }),
|
|
50
|
+
/* @__PURE__ */ e(a, { status: "inactive", withDot: !0, children: "Inactive" }),
|
|
51
|
+
/* @__PURE__ */ e(a, { status: "pending", withDot: !0, children: "Pending" })
|
|
52
|
+
] })
|
|
53
|
+
] })
|
|
54
|
+
] }) }) }) }),
|
|
55
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(s, { title: "Colors", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
56
|
+
/* @__PURE__ */ e(a, { color: "primary", children: "Primary" }),
|
|
57
|
+
/* @__PURE__ */ e(a, { color: "success", children: "Success" }),
|
|
58
|
+
/* @__PURE__ */ e(a, { color: "info", children: "Info" }),
|
|
59
|
+
/* @__PURE__ */ e(a, { color: "warning", children: "Warning" }),
|
|
60
|
+
/* @__PURE__ */ e(a, { color: "danger", children: "Danger" }),
|
|
61
|
+
/* @__PURE__ */ e(a, { color: "gray", children: "Gray" })
|
|
62
|
+
] }) }) }) }),
|
|
63
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(s, { title: "Sizes", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
64
|
+
/* @__PURE__ */ e(a, { size: "tiny", color: "primary", children: "Tiny" }),
|
|
65
|
+
/* @__PURE__ */ e(a, { size: "small", color: "primary", children: "Small" }),
|
|
66
|
+
/* @__PURE__ */ e(a, { size: "medium", color: "primary", children: "Medium" }),
|
|
67
|
+
/* @__PURE__ */ e(a, { size: "large", color: "primary", children: "Large" })
|
|
68
|
+
] }) }) }) }),
|
|
69
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(s, { title: "Variants", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ i("div", { className: "space-y-4", children: [
|
|
70
|
+
/* @__PURE__ */ i("div", { children: [
|
|
71
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Solid" }),
|
|
72
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
73
|
+
/* @__PURE__ */ e(a, { variant: "solid", color: "primary", children: "Primary" }),
|
|
74
|
+
/* @__PURE__ */ e(a, { variant: "solid", color: "success", children: "Success" }),
|
|
75
|
+
/* @__PURE__ */ e(a, { variant: "solid", color: "danger", children: "Danger" })
|
|
76
|
+
] })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ i("div", { children: [
|
|
79
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Soft" }),
|
|
80
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
81
|
+
/* @__PURE__ */ e(a, { variant: "soft", color: "primary", children: "Primary" }),
|
|
82
|
+
/* @__PURE__ */ e(a, { variant: "soft", color: "success", children: "Success" }),
|
|
83
|
+
/* @__PURE__ */ e(a, { variant: "soft", color: "danger", children: "Danger" })
|
|
84
|
+
] })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ i("div", { children: [
|
|
87
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Outline" }),
|
|
88
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
89
|
+
/* @__PURE__ */ e(a, { variant: "outline", color: "primary", children: "Primary" }),
|
|
90
|
+
/* @__PURE__ */ e(a, { variant: "outline", color: "success", children: "Success" }),
|
|
91
|
+
/* @__PURE__ */ e(a, { variant: "outline", color: "danger", children: "Danger" })
|
|
92
|
+
] })
|
|
93
|
+
] }),
|
|
94
|
+
/* @__PURE__ */ i("div", { children: [
|
|
95
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Ghost" }),
|
|
96
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
97
|
+
/* @__PURE__ */ e(a, { variant: "ghost", color: "primary", children: "Primary" }),
|
|
98
|
+
/* @__PURE__ */ e(a, { variant: "ghost", color: "success", children: "Success" }),
|
|
99
|
+
/* @__PURE__ */ e(a, { variant: "ghost", color: "danger", children: "Danger" })
|
|
100
|
+
] })
|
|
101
|
+
] })
|
|
102
|
+
] }) }) }) }),
|
|
103
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(s, { title: "Shapes", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
104
|
+
/* @__PURE__ */ e(a, { shape: "rounded", color: "primary", children: "Rounded" }),
|
|
105
|
+
/* @__PURE__ */ e(a, { shape: "pill", color: "success", children: "Pill" }),
|
|
106
|
+
/* @__PURE__ */ e(a, { shape: "circle", color: "danger", size: "large", withDot: !0 })
|
|
107
|
+
] }) }) }) }),
|
|
108
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(s, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(n, { columns: [
|
|
109
|
+
{
|
|
110
|
+
key: "prop",
|
|
111
|
+
label: "Prop",
|
|
112
|
+
render: (t) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(t) })
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "type",
|
|
116
|
+
label: "Type",
|
|
117
|
+
render: (t) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(t) })
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
key: "default",
|
|
121
|
+
label: "Default",
|
|
122
|
+
render: (t) => {
|
|
123
|
+
const c = String(t);
|
|
124
|
+
return c === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: c });
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: "description",
|
|
129
|
+
label: "Description"
|
|
130
|
+
}
|
|
131
|
+
], data: [
|
|
132
|
+
{
|
|
133
|
+
prop: "children",
|
|
134
|
+
type: "ReactNode",
|
|
135
|
+
default: "-",
|
|
136
|
+
description: "Content to display inside the badge"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
prop: "status",
|
|
140
|
+
type: "'active' | 'inactive' | 'pending' | 'default'",
|
|
141
|
+
default: "-",
|
|
142
|
+
description: "Status indicator (overrides color prop)"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
prop: "color",
|
|
146
|
+
type: "'primary' | 'success' | 'info' | 'warning' | 'danger' | 'gray' | 'white'",
|
|
147
|
+
default: "'gray'",
|
|
148
|
+
description: "Color of the badge"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
prop: "size",
|
|
152
|
+
type: "'tiny' | 'small' | 'medium' | 'large'",
|
|
153
|
+
default: "'small'",
|
|
154
|
+
description: "Size of the badge"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
prop: "variant",
|
|
158
|
+
type: "'solid' | 'ghost' | 'outline' | 'soft'",
|
|
159
|
+
default: "'solid'",
|
|
160
|
+
description: "Visual variant of the badge"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
prop: "shape",
|
|
164
|
+
type: "'rounded' | 'pill' | 'circle'",
|
|
165
|
+
default: "'pill'",
|
|
166
|
+
description: "Shape of the badge"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
prop: "withDot",
|
|
170
|
+
type: "boolean",
|
|
171
|
+
default: "false",
|
|
172
|
+
description: "Show a dot indicator (without children shows only dot)"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
prop: "className",
|
|
176
|
+
type: "string",
|
|
177
|
+
default: "-",
|
|
178
|
+
description: "Additional CSS classes"
|
|
179
|
+
}
|
|
180
|
+
] }) }) }) }),
|
|
181
|
+
/* @__PURE__ */ e(l, { className: "overflow-hidden", children: /* @__PURE__ */ e(s, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
182
|
+
o,
|
|
183
|
+
{
|
|
184
|
+
language: "tsx",
|
|
185
|
+
code: `import { Badge } from '@e-burgos/tucu-ui';
|
|
186
|
+
|
|
187
|
+
// Basic usage with status
|
|
188
|
+
<Badge status="active">Active</Badge>
|
|
189
|
+
<Badge status="inactive">Inactive</Badge>
|
|
190
|
+
<Badge status="pending">Pending</Badge>
|
|
191
|
+
|
|
192
|
+
// Status indicators (dots only)
|
|
193
|
+
<Badge status="active" withDot />
|
|
194
|
+
<Badge status="inactive" withDot />
|
|
195
|
+
|
|
196
|
+
// With dot indicator and text
|
|
197
|
+
<Badge status="active" withDot>Active</Badge>
|
|
198
|
+
|
|
199
|
+
// Different colors
|
|
200
|
+
<Badge color="primary">Primary</Badge>
|
|
201
|
+
<Badge color="success">Success</Badge>
|
|
202
|
+
<Badge color="info">Info</Badge>
|
|
203
|
+
<Badge color="warning">Warning</Badge>
|
|
204
|
+
<Badge color="danger">Danger</Badge>
|
|
205
|
+
|
|
206
|
+
// Different sizes
|
|
207
|
+
<Badge size="tiny">Tiny</Badge>
|
|
208
|
+
<Badge size="small">Small</Badge>
|
|
209
|
+
<Badge size="medium">Medium</Badge>
|
|
210
|
+
<Badge size="large">Large</Badge>
|
|
211
|
+
|
|
212
|
+
// Different variants
|
|
213
|
+
<Badge variant="solid" color="primary">Solid</Badge>
|
|
214
|
+
<Badge variant="soft" color="success">Soft</Badge>
|
|
215
|
+
<Badge variant="outline" color="danger">Outline</Badge>
|
|
216
|
+
<Badge variant="ghost" color="info">Ghost</Badge>
|
|
217
|
+
|
|
218
|
+
// Different shapes
|
|
219
|
+
<Badge shape="rounded">Rounded</Badge>
|
|
220
|
+
<Badge shape="pill">Pill</Badge>
|
|
221
|
+
<Badge shape="circle" withDot />
|
|
222
|
+
|
|
223
|
+
// Combinations
|
|
224
|
+
<Badge
|
|
225
|
+
color="success"
|
|
226
|
+
variant="soft"
|
|
227
|
+
size="medium"
|
|
228
|
+
shape="pill"
|
|
229
|
+
withDot
|
|
230
|
+
>
|
|
231
|
+
Online
|
|
232
|
+
</Badge>`
|
|
233
|
+
}
|
|
234
|
+
) }) }) })
|
|
235
|
+
] });
|
|
236
|
+
export {
|
|
237
|
+
x as default
|
|
238
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-BoEJRnmP.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const t=()=>{const r=[{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 i=String(s);return i==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:i})}},{key:"description",label:"Description"}],l=[{prop:"children",type:"ReactNode",default:"-",description:"Content to display inside the badge"},{prop:"status",type:"'active' | 'inactive' | 'pending' | 'default'",default:"-",description:"Status indicator (overrides color prop)"},{prop:"color",type:"'primary' | 'success' | 'info' | 'warning' | 'danger' | 'gray' | 'white'",default:"'gray'",description:"Color of the badge"},{prop:"size",type:"'tiny' | 'small' | 'medium' | 'large'",default:"'small'",description:"Size of the badge"},{prop:"variant",type:"'solid' | 'ghost' | 'outline' | 'soft'",default:"'solid'",description:"Visual variant of the badge"},{prop:"shape",type:"'rounded' | 'pill' | 'circle'",default:"'pill'",description:"Shape of the badge"},{prop:"withDot",type:"boolean",default:"false",description:"Show a dot indicator (without children shows only dot)"},{prop:"className",type:"string",default:"-",description:"Additional CSS classes"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(a.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"Badge"}),e.jsx(a.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A badge component for displaying status indicators and labels with various styles and sizes."})]}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.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-6",children:[e.jsxs("div",{children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Status Badges"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{status:"active",children:"Active"}),e.jsx(a.Badge,{status:"inactive",children:"Inactive"}),e.jsx(a.Badge,{status:"pending",children:"Pending"}),e.jsx(a.Badge,{status:"default",children:"Default"})]})]}),e.jsxs("div",{children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Status Indicators (Dots Only)"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(a.Badge,{status:"active",withDot:!0}),e.jsx("span",{className:"text-sm",children:"Online"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(a.Badge,{status:"inactive",withDot:!0}),e.jsx("span",{className:"text-sm",children:"Offline"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(a.Badge,{status:"pending",withDot:!0}),e.jsx("span",{className:"text-sm",children:"Away"})]})]})]}),e.jsxs("div",{children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"With Dot Indicator"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{status:"active",withDot:!0,children:"Active"}),e.jsx(a.Badge,{status:"inactive",withDot:!0,children:"Inactive"}),e.jsx(a.Badge,{status:"pending",withDot:!0,children:"Pending"})]})]})]})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Colors",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{color:"primary",children:"Primary"}),e.jsx(a.Badge,{color:"success",children:"Success"}),e.jsx(a.Badge,{color:"info",children:"Info"}),e.jsx(a.Badge,{color:"warning",children:"Warning"}),e.jsx(a.Badge,{color:"danger",children:"Danger"}),e.jsx(a.Badge,{color:"gray",children:"Gray"})]})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Sizes",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{size:"tiny",color:"primary",children:"Tiny"}),e.jsx(a.Badge,{size:"small",color:"primary",children:"Small"}),e.jsx(a.Badge,{size:"medium",color:"primary",children:"Medium"}),e.jsx(a.Badge,{size:"large",color:"primary",children:"Large"})]})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Variants",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Solid"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{variant:"solid",color:"primary",children:"Primary"}),e.jsx(a.Badge,{variant:"solid",color:"success",children:"Success"}),e.jsx(a.Badge,{variant:"solid",color:"danger",children:"Danger"})]})]}),e.jsxs("div",{children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Soft"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{variant:"soft",color:"primary",children:"Primary"}),e.jsx(a.Badge,{variant:"soft",color:"success",children:"Success"}),e.jsx(a.Badge,{variant:"soft",color:"danger",children:"Danger"})]})]}),e.jsxs("div",{children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Outline"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{variant:"outline",color:"primary",children:"Primary"}),e.jsx(a.Badge,{variant:"outline",color:"success",children:"Success"}),e.jsx(a.Badge,{variant:"outline",color:"danger",children:"Danger"})]})]}),e.jsxs("div",{children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Ghost"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{variant:"ghost",color:"primary",children:"Primary"}),e.jsx(a.Badge,{variant:"ghost",color:"success",children:"Success"}),e.jsx(a.Badge,{variant:"ghost",color:"danger",children:"Danger"})]})]})]})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Shapes",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(a.Badge,{shape:"rounded",color:"primary",children:"Rounded"}),e.jsx(a.Badge,{shape:"pill",color:"success",children:"Pill"}),e.jsx(a.Badge,{shape:"circle",color:"danger",size:"large",withDot:!0})]})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(a.BasicTable,{columns:r,data:l})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(a.CodeBlock,{language:"tsx",code:`import { Badge } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
// Basic usage with status
|
|
4
|
+
<Badge status="active">Active</Badge>
|
|
5
|
+
<Badge status="inactive">Inactive</Badge>
|
|
6
|
+
<Badge status="pending">Pending</Badge>
|
|
7
|
+
|
|
8
|
+
// Status indicators (dots only)
|
|
9
|
+
<Badge status="active" withDot />
|
|
10
|
+
<Badge status="inactive" withDot />
|
|
11
|
+
|
|
12
|
+
// With dot indicator and text
|
|
13
|
+
<Badge status="active" withDot>Active</Badge>
|
|
14
|
+
|
|
15
|
+
// Different colors
|
|
16
|
+
<Badge color="primary">Primary</Badge>
|
|
17
|
+
<Badge color="success">Success</Badge>
|
|
18
|
+
<Badge color="info">Info</Badge>
|
|
19
|
+
<Badge color="warning">Warning</Badge>
|
|
20
|
+
<Badge color="danger">Danger</Badge>
|
|
21
|
+
|
|
22
|
+
// Different sizes
|
|
23
|
+
<Badge size="tiny">Tiny</Badge>
|
|
24
|
+
<Badge size="small">Small</Badge>
|
|
25
|
+
<Badge size="medium">Medium</Badge>
|
|
26
|
+
<Badge size="large">Large</Badge>
|
|
27
|
+
|
|
28
|
+
// Different variants
|
|
29
|
+
<Badge variant="solid" color="primary">Solid</Badge>
|
|
30
|
+
<Badge variant="soft" color="success">Soft</Badge>
|
|
31
|
+
<Badge variant="outline" color="danger">Outline</Badge>
|
|
32
|
+
<Badge variant="ghost" color="info">Ghost</Badge>
|
|
33
|
+
|
|
34
|
+
// Different shapes
|
|
35
|
+
<Badge shape="rounded">Rounded</Badge>
|
|
36
|
+
<Badge shape="pill">Pill</Badge>
|
|
37
|
+
<Badge shape="circle" withDot />
|
|
38
|
+
|
|
39
|
+
// Combinations
|
|
40
|
+
<Badge
|
|
41
|
+
color="success"
|
|
42
|
+
variant="soft"
|
|
43
|
+
size="medium"
|
|
44
|
+
shape="pill"
|
|
45
|
+
withDot
|
|
46
|
+
>
|
|
47
|
+
Online
|
|
48
|
+
</Badge>`})})})})]})};exports.default=t;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, C as t, a as c, B as s, c as h } from "./index-DCf83AyI.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const N = () => {
|
|
8
|
+
const d = [
|
|
9
|
+
{
|
|
10
|
+
key: "prop",
|
|
11
|
+
label: "Prop",
|
|
12
|
+
render: (l) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(l) })
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: "type",
|
|
16
|
+
label: "Type",
|
|
17
|
+
render: (l) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(l) })
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: "default",
|
|
21
|
+
label: "Default",
|
|
22
|
+
render: (l) => {
|
|
23
|
+
const i = String(l);
|
|
24
|
+
return i === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: i });
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "description",
|
|
29
|
+
label: "Description"
|
|
30
|
+
}
|
|
31
|
+
], m = [
|
|
32
|
+
{
|
|
33
|
+
prop: "columns",
|
|
34
|
+
type: "TableColumn<T>[]",
|
|
35
|
+
default: "required",
|
|
36
|
+
description: "Array of column definitions"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
prop: "data",
|
|
40
|
+
type: "T[]",
|
|
41
|
+
default: "required",
|
|
42
|
+
description: "Array of data rows"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
prop: "rounded",
|
|
46
|
+
type: "boolean",
|
|
47
|
+
default: "true",
|
|
48
|
+
description: "Whether to round table corners"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
prop: "border",
|
|
52
|
+
type: "boolean",
|
|
53
|
+
default: "true",
|
|
54
|
+
description: "Whether to show borders"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
prop: "hoverable",
|
|
58
|
+
type: "boolean",
|
|
59
|
+
default: "true",
|
|
60
|
+
description: "Whether rows are hoverable"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
prop: "striped",
|
|
64
|
+
type: "boolean",
|
|
65
|
+
default: "false",
|
|
66
|
+
description: "Whether to show striped rows"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
prop: "showHeader",
|
|
70
|
+
type: "boolean",
|
|
71
|
+
default: "true",
|
|
72
|
+
description: "Whether to show table header"
|
|
73
|
+
}
|
|
74
|
+
], o = [
|
|
75
|
+
{ key: "name", label: "Name" },
|
|
76
|
+
{ key: "age", label: "Age" },
|
|
77
|
+
{ key: "city", label: "City" }
|
|
78
|
+
], n = [
|
|
79
|
+
{ name: "John Doe", age: 30, city: "New York" },
|
|
80
|
+
{ name: "Jane Smith", age: 25, city: "Los Angeles" },
|
|
81
|
+
{ name: "Bob Johnson", age: 35, city: "Chicago" }
|
|
82
|
+
];
|
|
83
|
+
return /* @__PURE__ */ a(p, { children: [
|
|
84
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
85
|
+
/* @__PURE__ */ e(r, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "BasicTable" }),
|
|
86
|
+
/* @__PURE__ */ e(
|
|
87
|
+
r,
|
|
88
|
+
{
|
|
89
|
+
tag: "p",
|
|
90
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
91
|
+
children: "A flexible and customizable table component with support for custom rendering, styling, and interactions."
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ e(t, { 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__ */ a("div", { className: "space-y-4", children: [
|
|
96
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
97
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Basic Table" }),
|
|
98
|
+
/* @__PURE__ */ e(s, { columns: o, data: n })
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
101
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Striped Table" }),
|
|
102
|
+
/* @__PURE__ */ e(
|
|
103
|
+
s,
|
|
104
|
+
{
|
|
105
|
+
columns: o,
|
|
106
|
+
data: n,
|
|
107
|
+
striped: !0
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
112
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Without Border" }),
|
|
113
|
+
/* @__PURE__ */ e(
|
|
114
|
+
s,
|
|
115
|
+
{
|
|
116
|
+
columns: o,
|
|
117
|
+
data: n,
|
|
118
|
+
border: !1
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] })
|
|
122
|
+
] }) }) }) }),
|
|
123
|
+
/* @__PURE__ */ e(t, { 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(s, { columns: d, data: m }) }) }) }),
|
|
124
|
+
/* @__PURE__ */ e(t, { 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(
|
|
125
|
+
h,
|
|
126
|
+
{
|
|
127
|
+
language: "tsx",
|
|
128
|
+
code: `import { BasicTable } from '@e-burgos/tucu-ui';
|
|
129
|
+
|
|
130
|
+
const columns = [
|
|
131
|
+
{ key: 'name', label: 'Name' },
|
|
132
|
+
{ key: 'age', label: 'Age' },
|
|
133
|
+
{ key: 'city', label: 'City' },
|
|
134
|
+
];
|
|
135
|
+
|
|
136
|
+
const data = [
|
|
137
|
+
{ name: 'John Doe', age: 30, city: 'New York' },
|
|
138
|
+
{ name: 'Jane Smith', age: 25, city: 'Los Angeles' },
|
|
139
|
+
{ name: 'Bob Johnson', age: 35, city: 'Chicago' },
|
|
140
|
+
];
|
|
141
|
+
|
|
142
|
+
// Basic usage
|
|
143
|
+
<BasicTable columns={columns} data={data} />
|
|
144
|
+
|
|
145
|
+
// With custom render
|
|
146
|
+
const columnsWithRender = [
|
|
147
|
+
{
|
|
148
|
+
key: 'name',
|
|
149
|
+
label: 'Name',
|
|
150
|
+
render: (value) => <strong>{value}</strong>,
|
|
151
|
+
},
|
|
152
|
+
{ key: 'age', label: 'Age' },
|
|
153
|
+
];
|
|
154
|
+
|
|
155
|
+
// Striped table
|
|
156
|
+
<BasicTable columns={columns} data={data} striped />
|
|
157
|
+
|
|
158
|
+
// Without border
|
|
159
|
+
<BasicTable columns={columns} data={data} border={false} />
|
|
160
|
+
|
|
161
|
+
// Without hover effect
|
|
162
|
+
<BasicTable columns={columns} data={data} hoverable={false} />`
|
|
163
|
+
}
|
|
164
|
+
) }) }) })
|
|
165
|
+
] });
|
|
166
|
+
};
|
|
167
|
+
export {
|
|
168
|
+
N as default
|
|
169
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-BoEJRnmP.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const i=()=>{const o=[{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 l=String(s);return l==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:l})}},{key:"description",label:"Description"}],n=[{prop:"columns",type:"TableColumn<T>[]",default:"required",description:"Array of column definitions"},{prop:"data",type:"T[]",default:"required",description:"Array of data rows"},{prop:"rounded",type:"boolean",default:"true",description:"Whether to round table corners"},{prop:"border",type:"boolean",default:"true",description:"Whether to show borders"},{prop:"hoverable",type:"boolean",default:"true",description:"Whether rows are hoverable"},{prop:"striped",type:"boolean",default:"false",description:"Whether to show striped rows"},{prop:"showHeader",type:"boolean",default:"true",description:"Whether to show table header"}],t=[{key:"name",label:"Name"},{key:"age",label:"Age"},{key:"city",label:"City"}],r=[{name:"John Doe",age:30,city:"New York"},{name:"Jane Smith",age:25,city:"Los Angeles"},{name:"Bob Johnson",age:35,city:"Chicago"}];return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx(a.Typography,{tag:"h2",className:"text-3xl md:text-4xl font-bold",children:"BasicTable"}),e.jsx(a.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A flexible and customizable table component with support for custom rendering, styling, and interactions."})]}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.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-4",children:[e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Basic Table"}),e.jsx(a.BasicTable,{columns:t,data:r})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Striped Table"}),e.jsx(a.BasicTable,{columns:t,data:r,striped:!0})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Without Border"}),e.jsx(a.BasicTable,{columns:t,data:r,border:!1})]})]})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Props",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(a.BasicTable,{columns:o,data:n})})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Code Example",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsx(a.CodeBlock,{language:"tsx",code:`import { BasicTable } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
const columns = [
|
|
4
|
+
{ key: 'name', label: 'Name' },
|
|
5
|
+
{ key: 'age', label: 'Age' },
|
|
6
|
+
{ key: 'city', label: 'City' },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
const data = [
|
|
10
|
+
{ name: 'John Doe', age: 30, city: 'New York' },
|
|
11
|
+
{ name: 'Jane Smith', age: 25, city: 'Los Angeles' },
|
|
12
|
+
{ name: 'Bob Johnson', age: 35, city: 'Chicago' },
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
// Basic usage
|
|
16
|
+
<BasicTable columns={columns} data={data} />
|
|
17
|
+
|
|
18
|
+
// With custom render
|
|
19
|
+
const columnsWithRender = [
|
|
20
|
+
{
|
|
21
|
+
key: 'name',
|
|
22
|
+
label: 'Name',
|
|
23
|
+
render: (value) => <strong>{value}</strong>,
|
|
24
|
+
},
|
|
25
|
+
{ key: 'age', label: 'Age' },
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
// Striped table
|
|
29
|
+
<BasicTable columns={columns} data={data} striped />
|
|
30
|
+
|
|
31
|
+
// Without border
|
|
32
|
+
<BasicTable columns={columns} data={data} border={false} />
|
|
33
|
+
|
|
34
|
+
// Without hover effect
|
|
35
|
+
<BasicTable columns={columns} data={data} hoverable={false} />`})})})})]})};exports.default=i;
|