@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,146 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, C as a, a as o, J as i, B as h, c as p } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const S = () => {
|
|
8
|
+
const d = [
|
|
9
|
+
{
|
|
10
|
+
key: "prop",
|
|
11
|
+
label: "Prop",
|
|
12
|
+
render: (t) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(t) })
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: "type",
|
|
16
|
+
label: "Type",
|
|
17
|
+
render: (t) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(t) })
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: "default",
|
|
21
|
+
label: "Default",
|
|
22
|
+
render: (t) => {
|
|
23
|
+
const s = String(t);
|
|
24
|
+
return s === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: s });
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "description",
|
|
29
|
+
label: "Description"
|
|
30
|
+
}
|
|
31
|
+
], n = [
|
|
32
|
+
{
|
|
33
|
+
prop: "children",
|
|
34
|
+
type: "React.ReactNode",
|
|
35
|
+
default: "required",
|
|
36
|
+
description: "Content to display inside the scrollbar"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
prop: "autoHide",
|
|
40
|
+
type: "'never' | 'scroll' | 'leave' | 'move'",
|
|
41
|
+
default: "'scroll'",
|
|
42
|
+
description: "When to hide the scrollbar"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
prop: "direction",
|
|
46
|
+
type: "'horizontal' | 'vertical' | 'both'",
|
|
47
|
+
default: "'vertical'",
|
|
48
|
+
description: "Scroll direction"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
prop: "className",
|
|
52
|
+
type: "string",
|
|
53
|
+
default: "-",
|
|
54
|
+
description: "Additional CSS classes"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
prop: "scrollbarStyle",
|
|
58
|
+
type: "{ track?: CSSProperties; thumb?: CSSProperties }",
|
|
59
|
+
default: "-",
|
|
60
|
+
description: "Custom styles for scrollbar track and thumb"
|
|
61
|
+
}
|
|
62
|
+
], c = Array.from({ length: 20 }, (t, s) => /* @__PURE__ */ e("div", { className: "p-4 border-b", children: /* @__PURE__ */ l(r, { tag: "p", children: [
|
|
63
|
+
"Content item ",
|
|
64
|
+
s + 1
|
|
65
|
+
] }) }, s));
|
|
66
|
+
return /* @__PURE__ */ l(m, { children: [
|
|
67
|
+
/* @__PURE__ */ l("div", { className: "text-center space-y-4", children: [
|
|
68
|
+
/* @__PURE__ */ e(r, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Scrollbar" }),
|
|
69
|
+
/* @__PURE__ */ e(
|
|
70
|
+
r,
|
|
71
|
+
{
|
|
72
|
+
tag: "p",
|
|
73
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
74
|
+
children: "A customizable scrollbar component with auto-hide functionality and custom styling options."
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ e(a, { className: "overflow-hidden", children: /* @__PURE__ */ e(o, { title: "Basic Examples", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ l("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
79
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
80
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Vertical Scrollbar" }),
|
|
81
|
+
/* @__PURE__ */ e(i, { className: "h-48", children: /* @__PURE__ */ e("div", { children: c.slice(0, 10) }) })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
84
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Auto Hide on Leave" }),
|
|
85
|
+
/* @__PURE__ */ e(i, { className: "h-48", autoHide: "leave", children: /* @__PURE__ */ e("div", { children: c.slice(0, 10) }) })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
88
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Never Hide" }),
|
|
89
|
+
/* @__PURE__ */ e(i, { className: "h-48", autoHide: "never", children: /* @__PURE__ */ e("div", { children: c.slice(0, 10) }) })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ l(a, { className: "p-4", children: [
|
|
92
|
+
/* @__PURE__ */ e(r, { tag: "h5", className: "mb-3", children: "Custom Styled" }),
|
|
93
|
+
/* @__PURE__ */ e(
|
|
94
|
+
i,
|
|
95
|
+
{
|
|
96
|
+
className: "h-48",
|
|
97
|
+
scrollbarStyle: {
|
|
98
|
+
track: { backgroundColor: "transparent" },
|
|
99
|
+
thumb: { borderRadius: "8px", width: "8px" }
|
|
100
|
+
},
|
|
101
|
+
children: /* @__PURE__ */ e("div", { children: c.slice(0, 10) })
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
] })
|
|
105
|
+
] }) }) }) }),
|
|
106
|
+
/* @__PURE__ */ e(a, { className: "overflow-hidden", children: /* @__PURE__ */ e(o, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(h, { columns: d, data: n }) }) }) }),
|
|
107
|
+
/* @__PURE__ */ e(a, { className: "overflow-hidden", children: /* @__PURE__ */ e(o, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
108
|
+
p,
|
|
109
|
+
{
|
|
110
|
+
language: "tsx",
|
|
111
|
+
code: `import { Scrollbar } from '@e-burgos/tucu-ui';
|
|
112
|
+
|
|
113
|
+
// Basic usage
|
|
114
|
+
<Scrollbar className="h-48">
|
|
115
|
+
<div>
|
|
116
|
+
{/* Your content here */}
|
|
117
|
+
</div>
|
|
118
|
+
</Scrollbar>
|
|
119
|
+
|
|
120
|
+
// Auto hide on leave
|
|
121
|
+
<Scrollbar className="h-48" autoHide="leave">
|
|
122
|
+
<div>{content}</div>
|
|
123
|
+
</Scrollbar>
|
|
124
|
+
|
|
125
|
+
// Never hide
|
|
126
|
+
<Scrollbar className="h-48" autoHide="never">
|
|
127
|
+
<div>{content}</div>
|
|
128
|
+
</Scrollbar>
|
|
129
|
+
|
|
130
|
+
// Custom styled
|
|
131
|
+
<Scrollbar
|
|
132
|
+
className="h-48"
|
|
133
|
+
scrollbarStyle={{
|
|
134
|
+
track: { backgroundColor: 'transparent' },
|
|
135
|
+
thumb: { borderRadius: '8px', width: '8px' },
|
|
136
|
+
}}
|
|
137
|
+
>
|
|
138
|
+
<div>{content}</div>
|
|
139
|
+
</Scrollbar>`
|
|
140
|
+
}
|
|
141
|
+
) }) }) })
|
|
142
|
+
] });
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
S as default
|
|
146
|
+
};
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { T as l, C as t, a as o, S as r, B as h, c as u } from "./index-Hq6IUBmn.mjs";
|
|
4
|
+
import "lucide-react";
|
|
5
|
+
import "react-router-dom";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const C = () => {
|
|
8
|
+
const [c, p] = m(void 0), i = [
|
|
9
|
+
{ name: "Argentina", value: "ar" },
|
|
10
|
+
{ name: "Brasil", value: "br" },
|
|
11
|
+
{ name: "Chile", value: "cl" },
|
|
12
|
+
{ name: "Colombia", value: "co" },
|
|
13
|
+
{ name: "México", value: "mx" }
|
|
14
|
+
];
|
|
15
|
+
return /* @__PURE__ */ a(d, { children: [
|
|
16
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
17
|
+
/* @__PURE__ */ e(l, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Select" }),
|
|
18
|
+
/* @__PURE__ */ e(
|
|
19
|
+
l,
|
|
20
|
+
{
|
|
21
|
+
tag: "p",
|
|
22
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
23
|
+
children: "A dropdown select component for choosing from a list of options."
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ e(t, { className: "overflow-hidden", children: /* @__PURE__ */ e(o, { title: "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: [
|
|
28
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
29
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "Basic Select" }),
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
r,
|
|
32
|
+
{
|
|
33
|
+
label: "Country",
|
|
34
|
+
placeholder: "Select a country",
|
|
35
|
+
options: i,
|
|
36
|
+
selectedOption: c,
|
|
37
|
+
onChange: p
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
42
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "With Helper Text" }),
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
r,
|
|
45
|
+
{
|
|
46
|
+
label: "Language",
|
|
47
|
+
placeholder: "Select a language",
|
|
48
|
+
helperText: "Choose your preferred language",
|
|
49
|
+
options: [
|
|
50
|
+
{ name: "English", value: "en" },
|
|
51
|
+
{ name: "Spanish", value: "es" },
|
|
52
|
+
{ name: "French", value: "fr" }
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
58
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "With Error" }),
|
|
59
|
+
/* @__PURE__ */ e(
|
|
60
|
+
r,
|
|
61
|
+
{
|
|
62
|
+
label: "Category",
|
|
63
|
+
placeholder: "Select a category",
|
|
64
|
+
errorMessage: "Category is required",
|
|
65
|
+
options: [
|
|
66
|
+
{ name: "Option 1", value: "opt1" },
|
|
67
|
+
{ name: "Option 2", value: "opt2" }
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
73
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "Disabled" }),
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
r,
|
|
76
|
+
{
|
|
77
|
+
label: "Status",
|
|
78
|
+
placeholder: "Select status",
|
|
79
|
+
disabled: !0,
|
|
80
|
+
options: [
|
|
81
|
+
{ name: "Active", value: "active" },
|
|
82
|
+
{ name: "Inactive", value: "inactive" }
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
88
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "Required Field" }),
|
|
89
|
+
/* @__PURE__ */ e(
|
|
90
|
+
r,
|
|
91
|
+
{
|
|
92
|
+
label: "Priority",
|
|
93
|
+
placeholder: "Select priority",
|
|
94
|
+
required: !0,
|
|
95
|
+
options: [
|
|
96
|
+
{ name: "Low", value: "low" },
|
|
97
|
+
{ name: "Medium", value: "medium" },
|
|
98
|
+
{ name: "High", value: "high" }
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
] })
|
|
103
|
+
] }) }) }) }),
|
|
104
|
+
/* @__PURE__ */ e(t, { className: "overflow-hidden", children: /* @__PURE__ */ e(o, { title: "Variants", 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-3 gap-4", children: [
|
|
105
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
106
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "Ghost (default)" }),
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
r,
|
|
109
|
+
{
|
|
110
|
+
label: "Ghost Variant",
|
|
111
|
+
placeholder: "Select option",
|
|
112
|
+
variant: "ghost",
|
|
113
|
+
options: i
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
118
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "Solid" }),
|
|
119
|
+
/* @__PURE__ */ e(
|
|
120
|
+
r,
|
|
121
|
+
{
|
|
122
|
+
label: "Solid Variant",
|
|
123
|
+
placeholder: "Select option",
|
|
124
|
+
variant: "solid",
|
|
125
|
+
options: i
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
] }),
|
|
129
|
+
/* @__PURE__ */ a(t, { className: "p-4", children: [
|
|
130
|
+
/* @__PURE__ */ e(l, { tag: "h5", className: "mb-3", children: "Transparent" }),
|
|
131
|
+
/* @__PURE__ */ e(
|
|
132
|
+
r,
|
|
133
|
+
{
|
|
134
|
+
label: "Transparent Variant",
|
|
135
|
+
placeholder: "Select option",
|
|
136
|
+
variant: "transparent",
|
|
137
|
+
options: i
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
] })
|
|
141
|
+
] }) }) }) }),
|
|
142
|
+
/* @__PURE__ */ e(t, { className: "overflow-hidden", children: /* @__PURE__ */ e(o, { title: "Props", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(h, { columns: [
|
|
143
|
+
{
|
|
144
|
+
key: "prop",
|
|
145
|
+
label: "Prop",
|
|
146
|
+
render: (s) => /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(s) })
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
key: "type",
|
|
150
|
+
label: "Type",
|
|
151
|
+
render: (s) => /* @__PURE__ */ e("code", { className: "text-xs", children: String(s) })
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: "default",
|
|
155
|
+
label: "Default",
|
|
156
|
+
render: (s) => {
|
|
157
|
+
const n = String(s);
|
|
158
|
+
return n === "required" ? /* @__PURE__ */ e("span", { className: "text-xs text-red-500", children: "required" }) : /* @__PURE__ */ e("code", { className: "text-xs", children: n });
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
key: "description",
|
|
163
|
+
label: "Description"
|
|
164
|
+
}
|
|
165
|
+
], data: [
|
|
166
|
+
{
|
|
167
|
+
prop: "options",
|
|
168
|
+
type: "SelectOption[]",
|
|
169
|
+
default: "required",
|
|
170
|
+
description: "Array of select options"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
prop: "selectedOption",
|
|
174
|
+
type: "SelectOption",
|
|
175
|
+
default: "-",
|
|
176
|
+
description: "Currently selected option"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
prop: "onChange",
|
|
180
|
+
type: "(option: SelectOption) => void",
|
|
181
|
+
default: "-",
|
|
182
|
+
description: "Callback when selection changes"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
prop: "onSelect",
|
|
186
|
+
type: "(value: string) => void",
|
|
187
|
+
default: "-",
|
|
188
|
+
description: "Callback with selected value string"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
prop: "variant",
|
|
192
|
+
type: "'ghost' | 'solid' | 'transparent'",
|
|
193
|
+
default: "'ghost'",
|
|
194
|
+
description: "Visual variant of the select"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
prop: "label",
|
|
198
|
+
type: "string",
|
|
199
|
+
default: "-",
|
|
200
|
+
description: "Field label text"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
prop: "placeholder",
|
|
204
|
+
type: "string",
|
|
205
|
+
default: "-",
|
|
206
|
+
description: "Placeholder text"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
prop: "disabled",
|
|
210
|
+
type: "boolean",
|
|
211
|
+
default: "false",
|
|
212
|
+
description: "Disables the select field"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
prop: "required",
|
|
216
|
+
type: "boolean",
|
|
217
|
+
default: "false",
|
|
218
|
+
description: "Marks the field as required"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
prop: "errorMessage",
|
|
222
|
+
type: "string",
|
|
223
|
+
default: "-",
|
|
224
|
+
description: "Error message to display"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
prop: "helperText",
|
|
228
|
+
type: "string",
|
|
229
|
+
default: "-",
|
|
230
|
+
description: "Helper text displayed below the select"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
prop: "value",
|
|
234
|
+
type: "string",
|
|
235
|
+
default: "-",
|
|
236
|
+
description: "String value for react-hook-form integration"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
prop: "name",
|
|
240
|
+
type: "string",
|
|
241
|
+
default: "-",
|
|
242
|
+
description: "Name attribute for form submission"
|
|
243
|
+
}
|
|
244
|
+
] }) }) }) }),
|
|
245
|
+
/* @__PURE__ */ e(t, { className: "overflow-hidden", children: /* @__PURE__ */ e(o, { title: "Code Example", className: "mt-2 mb-2", children: /* @__PURE__ */ e("div", { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ e(
|
|
246
|
+
u,
|
|
247
|
+
{
|
|
248
|
+
language: "tsx",
|
|
249
|
+
code: `import { Select } from '@e-burgos/tucu-ui';
|
|
250
|
+
|
|
251
|
+
const options = [
|
|
252
|
+
{ name: 'Argentina', value: 'ar' },
|
|
253
|
+
{ name: 'Brasil', value: 'br' },
|
|
254
|
+
{ name: 'Chile', value: 'cl' },
|
|
255
|
+
];
|
|
256
|
+
|
|
257
|
+
<Select
|
|
258
|
+
label="Country"
|
|
259
|
+
placeholder="Select a country"
|
|
260
|
+
options={options}
|
|
261
|
+
selectedOption={selectedOption}
|
|
262
|
+
onChange={setSelectedOption}
|
|
263
|
+
/>
|
|
264
|
+
|
|
265
|
+
// Variants
|
|
266
|
+
<Select label="Ghost" variant="ghost" options={options} />
|
|
267
|
+
<Select label="Solid" variant="solid" options={options} />
|
|
268
|
+
<Select label="Transparent" variant="transparent" options={options} />`
|
|
269
|
+
}
|
|
270
|
+
) }) }) })
|
|
271
|
+
] });
|
|
272
|
+
};
|
|
273
|
+
export {
|
|
274
|
+
C as default
|
|
275
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),a=require("./index-CjRk4ezu.js");require("lucide-react");require("react-router-dom");require("react-dom");const d=()=>{const[r,i]=c.useState(void 0),l=[{name:"Argentina",value:"ar"},{name:"Brasil",value:"br"},{name:"Chile",value:"cl"},{name:"Colombia",value:"co"},{name:"México",value:"mx"}],n=[{key:"prop",label:"Prop",render:t=>e.jsx("code",{className:"text-xs text-brand",children:String(t)})},{key:"type",label:"Type",render:t=>e.jsx("code",{className:"text-xs",children:String(t)})},{key:"default",label:"Default",render:t=>{const s=String(t);return s==="required"?e.jsx("span",{className:"text-xs text-red-500",children:"required"}):e.jsx("code",{className:"text-xs",children:s})}},{key:"description",label:"Description"}],o=[{prop:"options",type:"SelectOption[]",default:"required",description:"Array of select options"},{prop:"selectedOption",type:"SelectOption",default:"-",description:"Currently selected option"},{prop:"onChange",type:"(option: SelectOption) => void",default:"-",description:"Callback when selection changes"},{prop:"onSelect",type:"(value: string) => void",default:"-",description:"Callback with selected value string"},{prop:"variant",type:"'ghost' | 'solid' | 'transparent'",default:"'ghost'",description:"Visual variant of the select"},{prop:"label",type:"string",default:"-",description:"Field label text"},{prop:"placeholder",type:"string",default:"-",description:"Placeholder text"},{prop:"disabled",type:"boolean",default:"false",description:"Disables the select field"},{prop:"required",type:"boolean",default:"false",description:"Marks the field as required"},{prop:"errorMessage",type:"string",default:"-",description:"Error message to display"},{prop:"helperText",type:"string",default:"-",description:"Helper text displayed below the select"},{prop:"value",type:"string",default:"-",description:"String value for react-hook-form integration"},{prop:"name",type:"string",default:"-",description:"Name attribute for form submission"}];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:"Select"}),e.jsx(a.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"A dropdown select component for choosing from a list of options."})]}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Examples",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full p-4 sm:p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Basic Select"}),e.jsx(a.Select,{label:"Country",placeholder:"Select a country",options:l,selectedOption:r,onChange:i})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"With Helper Text"}),e.jsx(a.Select,{label:"Language",placeholder:"Select a language",helperText:"Choose your preferred language",options:[{name:"English",value:"en"},{name:"Spanish",value:"es"},{name:"French",value:"fr"}]})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"With Error"}),e.jsx(a.Select,{label:"Category",placeholder:"Select a category",errorMessage:"Category is required",options:[{name:"Option 1",value:"opt1"},{name:"Option 2",value:"opt2"}]})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Disabled"}),e.jsx(a.Select,{label:"Status",placeholder:"Select status",disabled:!0,options:[{name:"Active",value:"active"},{name:"Inactive",value:"inactive"}]})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Required Field"}),e.jsx(a.Select,{label:"Priority",placeholder:"Select priority",required:!0,options:[{name:"Low",value:"low"},{name:"Medium",value:"medium"},{name:"High",value:"high"}]})]})]})})})}),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:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Ghost (default)"}),e.jsx(a.Select,{label:"Ghost Variant",placeholder:"Select option",variant:"ghost",options:l})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Solid"}),e.jsx(a.Select,{label:"Solid Variant",placeholder:"Select option",variant:"solid",options:l})]}),e.jsxs(a.CardContainer,{className:"p-4",children:[e.jsx(a.Typography,{tag:"h5",className:"mb-3",children:"Transparent"}),e.jsx(a.Select,{label:"Transparent Variant",placeholder:"Select option",variant:"transparent",options:l})]})]})})})}),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:n,data:o})})})}),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 { Select } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
const options = [
|
|
4
|
+
{ name: 'Argentina', value: 'ar' },
|
|
5
|
+
{ name: 'Brasil', value: 'br' },
|
|
6
|
+
{ name: 'Chile', value: 'cl' },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
<Select
|
|
10
|
+
label="Country"
|
|
11
|
+
placeholder="Select a country"
|
|
12
|
+
options={options}
|
|
13
|
+
selectedOption={selectedOption}
|
|
14
|
+
onChange={setSelectedOption}
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
// Variants
|
|
18
|
+
<Select label="Ghost" variant="ghost" options={options} />
|
|
19
|
+
<Select label="Solid" variant="solid" options={options} />
|
|
20
|
+
<Select label="Transparent" variant="transparent" options={options} />`})})})})]})};exports.default=d;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { ah as x, C as f, a as y, T as t, D as s, s as c } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import { Settings as b, Check as m } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const A = () => {
|
|
8
|
+
const {
|
|
9
|
+
mode: l,
|
|
10
|
+
layout: r,
|
|
11
|
+
primaryPreset: o,
|
|
12
|
+
secondaryPreset: g,
|
|
13
|
+
accentPreset: h,
|
|
14
|
+
direction: p,
|
|
15
|
+
setMode: u,
|
|
16
|
+
setIsSettingsOpen: N,
|
|
17
|
+
isSettingsOpen: d
|
|
18
|
+
} = x();
|
|
19
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(y, { title: "Settings Panel", className: "mt-2 mb-6", children: /* @__PURE__ */ a("div", { className: "space-y-6", children: [
|
|
20
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
21
|
+
/* @__PURE__ */ e("div", { className: "p-2 bg-gradient-to-br from-orange-500 to-red-500 rounded-lg shadow-lg", children: /* @__PURE__ */ e(b, { className: "w-5 h-5 text-white filter drop-shadow-sm" }) }),
|
|
22
|
+
/* @__PURE__ */ e(t, { tag: "h4", className: "font-semibold", children: "Built-in Settings UI" })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 gap-6", children: [
|
|
25
|
+
/* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
26
|
+
/* @__PURE__ */ e(
|
|
27
|
+
t,
|
|
28
|
+
{
|
|
29
|
+
tag: "p",
|
|
30
|
+
className: "text-gray-600 dark:text-gray-400",
|
|
31
|
+
children: "The theme system includes a built-in settings panel that allows users to:"
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
35
|
+
/* @__PURE__ */ a("div", { children: [
|
|
36
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-2", children: "Core Settings" }),
|
|
37
|
+
/* @__PURE__ */ e("ul", { className: "space-y-1", children: [
|
|
38
|
+
"Toggle between light and dark modes",
|
|
39
|
+
"Switch between LTR and RTL text direction",
|
|
40
|
+
"Choose between Clean, Admin, and Horizontal layouts"
|
|
41
|
+
].map((i, n) => /* @__PURE__ */ a("li", { className: "flex items-center gap-2", children: [
|
|
42
|
+
/* @__PURE__ */ e(m, { className: "w-3 h-3 text-green-500" }),
|
|
43
|
+
/* @__PURE__ */ e("span", { className: "text-xs", children: i })
|
|
44
|
+
] }, n)) })
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ a("div", { children: [
|
|
47
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium mb-2", children: "Color Management" }),
|
|
48
|
+
/* @__PURE__ */ e("ul", { className: "space-y-1", children: [
|
|
49
|
+
"Select from 34 predefined color presets",
|
|
50
|
+
"Configure primary, secondary, and accent colors",
|
|
51
|
+
"Customize dark and light theme colors",
|
|
52
|
+
"Manage muted colors and background variants"
|
|
53
|
+
].map((i, n) => /* @__PURE__ */ a("li", { className: "flex items-center gap-2", children: [
|
|
54
|
+
/* @__PURE__ */ e(m, { className: "w-3 h-3 text-green-500" }),
|
|
55
|
+
/* @__PURE__ */ e("span", { className: "text-xs", children: i })
|
|
56
|
+
] }, n)) })
|
|
57
|
+
] })
|
|
58
|
+
] })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
61
|
+
/* @__PURE__ */ e(t, { tag: "h5", className: "font-medium", children: "Current Settings" }),
|
|
62
|
+
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
63
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-2 gap-3", children: [
|
|
64
|
+
/* @__PURE__ */ a("div", { className: "flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg", children: [
|
|
65
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Mode" }),
|
|
66
|
+
/* @__PURE__ */ e(s, { variant: "outline", className: "text-xs", children: l })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ a("div", { className: "flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg", children: [
|
|
69
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Layout" }),
|
|
70
|
+
/* @__PURE__ */ a(s, { variant: "outline", className: "text-xs", children: [
|
|
71
|
+
r === "horizontal" ? "Horizontal" : r === "clean" ? "Clean" : "Admin",
|
|
72
|
+
" "
|
|
73
|
+
] })
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ a("div", { className: "flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg", children: [
|
|
76
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Primary" }),
|
|
77
|
+
/* @__PURE__ */ e(s, { variant: "outline", className: "text-xs", children: o?.label || "DEFAULT_PRIMARY" })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ a("div", { className: "flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg", children: [
|
|
80
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Secondary" }),
|
|
81
|
+
/* @__PURE__ */ e(s, { variant: "outline", className: "text-xs", children: g?.label || "DEFAULT_SECONDARY" })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ a("div", { className: "flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg", children: [
|
|
84
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Accent" }),
|
|
85
|
+
/* @__PURE__ */ e(s, { variant: "outline", className: "text-xs", children: h?.label || "DEFAULT_ACCENT" })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ a("div", { className: "flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg", children: [
|
|
88
|
+
/* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Direction" }),
|
|
89
|
+
/* @__PURE__ */ e(s, { variant: "outline", className: "text-xs", children: p || "LTR" })
|
|
90
|
+
] })
|
|
91
|
+
] }),
|
|
92
|
+
/* @__PURE__ */ a("div", { className: "flex gap-2 w-full mt-4", children: [
|
|
93
|
+
/* @__PURE__ */ a(
|
|
94
|
+
c,
|
|
95
|
+
{
|
|
96
|
+
size: "small",
|
|
97
|
+
onClick: () => u(l === "dark" ? "light" : "dark"),
|
|
98
|
+
className: "flex-1",
|
|
99
|
+
children: [
|
|
100
|
+
"Toggle ",
|
|
101
|
+
l === "dark" ? "Light" : "Dark"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ a(
|
|
106
|
+
c,
|
|
107
|
+
{
|
|
108
|
+
size: "small",
|
|
109
|
+
variant: "ghost",
|
|
110
|
+
onClick: () => N(!d),
|
|
111
|
+
className: "flex-1",
|
|
112
|
+
children: [
|
|
113
|
+
d ? "Close" : "Open",
|
|
114
|
+
" Settings"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] })
|
|
119
|
+
] })
|
|
120
|
+
] })
|
|
121
|
+
] })
|
|
122
|
+
] }) }) });
|
|
123
|
+
};
|
|
124
|
+
export {
|
|
125
|
+
A as default
|
|
126
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-CjRk4ezu.js"),i=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const h=()=>{const{mode:a,layout:n,primaryPreset:d,secondaryPreset:c,accentPreset:m,direction:o,setMode:g,setIsSettingsOpen:x,isSettingsOpen:r}=s.useTheme();return e.jsx(s.CardContainer,{children:e.jsx(s.CardTitle,{title:"Settings Panel",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-orange-500 to-red-500 rounded-lg shadow-lg",children:e.jsx(i.Settings,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(s.Typography,{tag:"h4",className:"font-semibold",children:"Built-in Settings UI"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(s.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"The theme system includes a built-in settings panel that allows users to:"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-2",children:"Core Settings"}),e.jsx("ul",{className:"space-y-1",children:["Toggle between light and dark modes","Switch between LTR and RTL text direction","Choose between Clean, Admin, and Horizontal layouts"].map((t,l)=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(i.Check,{className:"w-3 h-3 text-green-500"}),e.jsx("span",{className:"text-xs",children:t})]},l))})]}),e.jsxs("div",{children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium mb-2",children:"Color Management"}),e.jsx("ul",{className:"space-y-1",children:["Select from 34 predefined color presets","Configure primary, secondary, and accent colors","Customize dark and light theme colors","Manage muted colors and background variants"].map((t,l)=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(i.Check,{className:"w-3 h-3 text-green-500"}),e.jsx("span",{className:"text-xs",children:t})]},l))})]})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx(s.Typography,{tag:"h5",className:"font-medium",children:"Current Settings"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg",children:[e.jsx("span",{className:"text-sm font-medium",children:"Mode"}),e.jsx(s.Badge,{variant:"outline",className:"text-xs",children:a})]}),e.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg",children:[e.jsx("span",{className:"text-sm font-medium",children:"Layout"}),e.jsxs(s.Badge,{variant:"outline",className:"text-xs",children:[n==="horizontal"?"Horizontal":n==="clean"?"Clean":"Admin"," "]})]}),e.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg",children:[e.jsx("span",{className:"text-sm font-medium",children:"Primary"}),e.jsx(s.Badge,{variant:"outline",className:"text-xs",children:d?.label||"DEFAULT_PRIMARY"})]}),e.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg",children:[e.jsx("span",{className:"text-sm font-medium",children:"Secondary"}),e.jsx(s.Badge,{variant:"outline",className:"text-xs",children:c?.label||"DEFAULT_SECONDARY"})]}),e.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg",children:[e.jsx("span",{className:"text-sm font-medium",children:"Accent"}),e.jsx(s.Badge,{variant:"outline",className:"text-xs",children:m?.label||"DEFAULT_ACCENT"})]}),e.jsxs("div",{className:"flex justify-between items-center p-3 bg-gray-200 dark:bg-gray-800 rounded-lg",children:[e.jsx("span",{className:"text-sm font-medium",children:"Direction"}),e.jsx(s.Badge,{variant:"outline",className:"text-xs",children:o||"LTR"})]})]}),e.jsxs("div",{className:"flex gap-2 w-full mt-4",children:[e.jsxs(s.Button,{size:"small",onClick:()=>g(a==="dark"?"light":"dark"),className:"flex-1",children:["Toggle ",a==="dark"?"Light":"Dark"]}),e.jsxs(s.Button,{size:"small",variant:"ghost",onClick:()=>x(!r),className:"flex-1",children:[r?"Close":"Open"," Settings"]})]})]})]})]})]})})})};exports.default=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-CjRk4ezu.js");require("lucide-react");require("react-router-dom");require("react");require("react-dom");const s=a=>{if(typeof window>"u")return"";const r=document.documentElement;return getComputedStyle(r).getPropertyValue(a).trim()||""},n=()=>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:"Shadows"}),e.jsx(t.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Shadow tokens from Tucu UI Design System for depth and elevation"})]}),e.jsx(t.CardContainer,{className:"overflow-hidden",children:e.jsx(t.CardTitle,{title:"Shadow Tokens",className:"mt-2 mb-2",children:e.jsx("div",{className:"w-full space-y-8 p-4 sm:p-6",children:e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[{name:"Main",varName:"--shadow-main",description:"Primary shadow for cards and elevated elements"},{name:"Light",varName:"--shadow-light",description:"Subtle shadow for minimal elevation"},{name:"Large",varName:"--shadow-large",description:"Prominent shadow for modals and overlays"},{name:"Card",varName:"--shadow-card",description:"Standard shadow for card components"},{name:"Transaction",varName:"--shadow-transaction",description:"Shadow for transaction lists and tables"},{name:"Expand",varName:"--shadow-expand",description:"Strong shadow for expanded elements"},{name:"Button",varName:"--shadow-button",description:"Shadow for button components"},{name:"Drop Shadow Main",varName:"--drop-shadow-main",description:"Drop shadow for images and graphics"}].map(a=>{const r=s(a.varName);return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(t.Typography,{tag:"h3",className:"font-semibold",children:a.name}),e.jsx(t.Typography,{tag:"p",className:"text-sm text-muted",children:a.description})]}),e.jsx("div",{className:"h-32 bg-white dark:bg-gray-800 rounded-lg p-4 flex items-center justify-center",style:{boxShadow:r||`var(${a.varName})`},children:e.jsx(t.Typography,{tag:"h4",className:"text-center",children:a.name})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(t.Typography,{tag:"h4",className:"text-muted text-xs break-all font-mono",children:a.varName}),r&&e.jsx(t.Typography,{tag:"h4",className:"text-muted text-[10px] break-all",children:r})]})]},a.name)})})})})})]});exports.default=n;
|