@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,140 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-CjRk4ezu.js"),r=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const o=()=>e.jsx(t.CardContainer,{children:e.jsx(t.CardTitle,{title:"Using the Theme System",className:"mt-2 mb-6",children:e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-blue-500 to-cyan-500 rounded-lg shadow-lg",children:e.jsx(r.Code,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(t.Typography,{tag:"h4",className:"font-semibold",children:"ThemeProvider Setup"})]}),e.jsx(t.CodeBlock,{language:"tsx",code:`import { ThemeProvider, LAYOUT_OPTIONS } from '@ui/tucu-ui';
|
|
2
|
+
|
|
3
|
+
function App() {
|
|
4
|
+
const menuItems = [
|
|
5
|
+
{ label: 'Home', path: '/', icon: HomeIcon },
|
|
6
|
+
{ label: 'Dashboard', path: '/dashboard', icon: DashboardIcon },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<ThemeProvider
|
|
11
|
+
// Layout Configuration
|
|
12
|
+
layout={LAYOUT_OPTIONS.HORIZONTAL} // CLEAN | ADMIN | HORIZONTAL
|
|
13
|
+
menuItems={menuItems}
|
|
14
|
+
logo={{ path: '/', name: 'MyApp' }}
|
|
15
|
+
|
|
16
|
+
// Color Configuration
|
|
17
|
+
brandColor="Blue" // Primary brand color preset
|
|
18
|
+
customPaletteColor={{
|
|
19
|
+
primary: '#0052ff', // Hex color or preset name
|
|
20
|
+
darkPrimary: '#578bfa',
|
|
21
|
+
secondary: '#eef0f3',
|
|
22
|
+
darkSecondary: '#282b31',
|
|
23
|
+
accent: '#f7d21a',
|
|
24
|
+
darkAccent: '#936000',
|
|
25
|
+
muted: '#5b616e',
|
|
26
|
+
darkMuted: '#8a919e',
|
|
27
|
+
darkBg: '#0a0b0d',
|
|
28
|
+
lightBg: '#ffffff',
|
|
29
|
+
lightDark: '#f7f8f9',
|
|
30
|
+
darkLightDark: '#141519',
|
|
31
|
+
}}
|
|
32
|
+
|
|
33
|
+
// Theme Settings
|
|
34
|
+
mode="light" // 'light' | 'dark'
|
|
35
|
+
showSettings={true}
|
|
36
|
+
|
|
37
|
+
// Additional Features
|
|
38
|
+
headerClassName="custom-header"
|
|
39
|
+
contentClassName="custom-content"
|
|
40
|
+
fullWidth={false}
|
|
41
|
+
rightButton={<UserMenu />}
|
|
42
|
+
className="custom-layout"
|
|
43
|
+
>
|
|
44
|
+
{/* Routes are automatically handled by ThemeProvider */}
|
|
45
|
+
{/* Or provide customRoutes prop for custom routing */}
|
|
46
|
+
</ThemeProvider>
|
|
47
|
+
);
|
|
48
|
+
}`})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-purple-500 to-violet-500 rounded-lg shadow-lg",children:e.jsx(r.Zap,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(t.Typography,{tag:"h4",className:"font-semibold",children:"useTheme Hook"})]}),e.jsx(t.CodeBlock,{language:"tsx",code:`import { useTheme, LAYOUT_OPTIONS } from '@ui/tucu-ui';
|
|
49
|
+
|
|
50
|
+
function ThemeControls() {
|
|
51
|
+
const {
|
|
52
|
+
// State
|
|
53
|
+
mode,
|
|
54
|
+
layout,
|
|
55
|
+
primaryPreset,
|
|
56
|
+
darkPrimaryPreset,
|
|
57
|
+
secondaryPreset,
|
|
58
|
+
darkSecondaryPreset,
|
|
59
|
+
accentPreset,
|
|
60
|
+
darkAccentPreset,
|
|
61
|
+
mutedPreset,
|
|
62
|
+
darkMutedPreset,
|
|
63
|
+
darkBgPreset,
|
|
64
|
+
lightBgPreset,
|
|
65
|
+
lightDarkPreset,
|
|
66
|
+
darkLightDarkPreset,
|
|
67
|
+
direction,
|
|
68
|
+
logo,
|
|
69
|
+
lang,
|
|
70
|
+
isSettingsOpen,
|
|
71
|
+
showSettings,
|
|
72
|
+
|
|
73
|
+
// Setters
|
|
74
|
+
setMode,
|
|
75
|
+
setLayout,
|
|
76
|
+
setPrimaryPreset,
|
|
77
|
+
setDarkPrimaryPreset,
|
|
78
|
+
setSecondaryPreset,
|
|
79
|
+
setDarkSecondaryPreset,
|
|
80
|
+
setAccentPreset,
|
|
81
|
+
setDarkAccentPreset,
|
|
82
|
+
setMutedPreset,
|
|
83
|
+
setDarkMutedPreset,
|
|
84
|
+
setDarkBgPreset,
|
|
85
|
+
setLightBgPreset,
|
|
86
|
+
setLightDarkPreset,
|
|
87
|
+
setDarkLightDarkPreset,
|
|
88
|
+
setDirection,
|
|
89
|
+
setLogo,
|
|
90
|
+
setLang,
|
|
91
|
+
setIsSettingsOpen,
|
|
92
|
+
setShowSettings,
|
|
93
|
+
restoreDefaultColors,
|
|
94
|
+
} = useTheme();
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<div>
|
|
98
|
+
{/* Basic Controls */}
|
|
99
|
+
<button onClick={() => setMode(mode === 'light' ? 'dark' : 'light')}>
|
|
100
|
+
Toggle {mode === 'light' ? 'Dark' : 'Light'} Mode
|
|
101
|
+
</button>
|
|
102
|
+
|
|
103
|
+
<select
|
|
104
|
+
value={layout}
|
|
105
|
+
onChange={(e) => setLayout(e.target.value as LAYOUT_OPTIONS)}
|
|
106
|
+
>
|
|
107
|
+
<option value={LAYOUT_OPTIONS.CLEAN}>Clean</option>
|
|
108
|
+
<option value={LAYOUT_OPTIONS.ADMIN}>Admin</option>
|
|
109
|
+
<option value={LAYOUT_OPTIONS.HORIZONTAL}>Horizontal</option>
|
|
110
|
+
</select>
|
|
111
|
+
|
|
112
|
+
<select
|
|
113
|
+
value={direction}
|
|
114
|
+
onChange={(e) => setDirection(e.target.value as 'ltr' | 'rtl')}
|
|
115
|
+
>
|
|
116
|
+
<option value="ltr">LTR</option>
|
|
117
|
+
<option value="rtl">RTL</option>
|
|
118
|
+
</select>
|
|
119
|
+
|
|
120
|
+
{/* Advanced Color Controls */}
|
|
121
|
+
<button onClick={() => setPrimaryPreset({ label: 'Blue', value: '#105eff' })}>
|
|
122
|
+
Set Primary Color
|
|
123
|
+
</button>
|
|
124
|
+
|
|
125
|
+
<button onClick={() => setSecondaryPreset({ label: 'DEFAULT_SECONDARY', value: '#eef0f3' })}>
|
|
126
|
+
Set Secondary Color
|
|
127
|
+
</button>
|
|
128
|
+
|
|
129
|
+
{/* Settings Panel Control */}
|
|
130
|
+
<button onClick={() => setIsSettingsOpen(!isSettingsOpen)}>
|
|
131
|
+
{isSettingsOpen ? 'Close' : 'Open'} Settings
|
|
132
|
+
</button>
|
|
133
|
+
|
|
134
|
+
{/* Restore Defaults */}
|
|
135
|
+
<button onClick={restoreDefaultColors}>
|
|
136
|
+
Restore Default Colors
|
|
137
|
+
</button>
|
|
138
|
+
</div>
|
|
139
|
+
);
|
|
140
|
+
}`})]})]})})});exports.default=o;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, C as i, a as l, c as d, a4 as c, B as u } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import { FileText as p, Code as h, Info as g } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const F = () => {
|
|
8
|
+
const n = [
|
|
9
|
+
{ key: "rule", label: "Rule" },
|
|
10
|
+
{ key: "example", label: "Example" },
|
|
11
|
+
{ key: "description", label: "Description" }
|
|
12
|
+
], o = [
|
|
13
|
+
{
|
|
14
|
+
rule: "required",
|
|
15
|
+
example: "required: 'Field is required'",
|
|
16
|
+
description: "Makes field required"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
rule: "minLength",
|
|
20
|
+
example: "minLength: { value: 2, message: '...' }",
|
|
21
|
+
description: "Minimum string length"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
rule: "maxLength",
|
|
25
|
+
example: "maxLength: { value: 100, message: '...' }",
|
|
26
|
+
description: "Maximum string length"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
rule: "pattern",
|
|
30
|
+
example: "pattern: { value: /regex/, message: '...' }",
|
|
31
|
+
description: "Regex pattern validation"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
rule: "min",
|
|
35
|
+
example: "min: { value: 18, message: '...' }",
|
|
36
|
+
description: "Minimum numeric value"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
rule: "max",
|
|
40
|
+
example: "max: { value: 100, message: '...' }",
|
|
41
|
+
description: "Maximum numeric value"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
return /* @__PURE__ */ a(m, { children: [
|
|
45
|
+
/* @__PURE__ */ a("div", { className: "text-center space-y-4", children: [
|
|
46
|
+
/* @__PURE__ */ e(r, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "Validation System" }),
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
r,
|
|
49
|
+
{
|
|
50
|
+
tag: "p",
|
|
51
|
+
className: "text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",
|
|
52
|
+
children: "Centralized validation with built-in and custom rules"
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ e(i, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Validation Approaches", className: "mt-2 mb-2", children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
57
|
+
/* @__PURE__ */ e(r, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "You can define validation in two ways:" }),
|
|
58
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: [
|
|
59
|
+
/* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
60
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
61
|
+
/* @__PURE__ */ e("div", { className: "p-2 bg-linear-to-br from-blue-500 to-cyan-500 rounded-lg shadow-lg", children: /* @__PURE__ */ e(p, { className: "w-5 h-5 text-white filter drop-shadow-sm" }) }),
|
|
62
|
+
/* @__PURE__ */ e(r, { tag: "h4", className: "font-semibold", children: "Centralized Validation Schema" })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
r,
|
|
66
|
+
{
|
|
67
|
+
tag: "p",
|
|
68
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
69
|
+
children: "Define all validation rules in a single schema object and pass it to the Form component. This eliminates the need to define rules on each FormField."
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e(
|
|
73
|
+
d,
|
|
74
|
+
{
|
|
75
|
+
language: "tsx",
|
|
76
|
+
code: `import { FormValidations } from '@e-burgos/tucu-ui';
|
|
77
|
+
|
|
78
|
+
export const formValidations: FormValidations<FormValues> = {
|
|
79
|
+
name: {
|
|
80
|
+
required: 'This is a required field.',
|
|
81
|
+
minLength: {
|
|
82
|
+
value: 2,
|
|
83
|
+
message: 'The name must be at least 2 characters long.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
email: {
|
|
87
|
+
required: 'This is a required field.',
|
|
88
|
+
pattern: {
|
|
89
|
+
value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i,
|
|
90
|
+
message: 'Invalid email address.',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
// Use in Form component
|
|
96
|
+
<Form<FormValues>
|
|
97
|
+
onSubmit={handleSubmit}
|
|
98
|
+
validationSchema={formValidations}
|
|
99
|
+
useFormProps={{ defaultValues }}
|
|
100
|
+
>
|
|
101
|
+
{/* FormFields don't need rules prop */}
|
|
102
|
+
<FormField<FormValues> name="name" label="Name">
|
|
103
|
+
<Input />
|
|
104
|
+
</FormField>
|
|
105
|
+
</Form>`
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] }),
|
|
109
|
+
/* @__PURE__ */ a("div", { className: "space-y-4", children: [
|
|
110
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
111
|
+
/* @__PURE__ */ e("div", { className: "p-2 bg-linear-to-br from-purple-500 to-violet-500 rounded-lg shadow-lg", children: /* @__PURE__ */ e(h, { className: "w-5 h-5 text-white filter drop-shadow-sm" }) }),
|
|
112
|
+
/* @__PURE__ */ e(r, { tag: "h4", className: "font-semibold", children: "Per-Field Validation" })
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ a(
|
|
115
|
+
r,
|
|
116
|
+
{
|
|
117
|
+
tag: "p",
|
|
118
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
119
|
+
children: [
|
|
120
|
+
"Define validation rules directly on each FormField using the",
|
|
121
|
+
" ",
|
|
122
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs", children: "rules" }),
|
|
123
|
+
" ",
|
|
124
|
+
"prop. Useful for field-specific validation."
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
/* @__PURE__ */ e(
|
|
129
|
+
d,
|
|
130
|
+
{
|
|
131
|
+
language: "tsx",
|
|
132
|
+
code: `<FormField<FormValues>
|
|
133
|
+
name="password"
|
|
134
|
+
label="Password"
|
|
135
|
+
rules={{
|
|
136
|
+
required: 'Password is required',
|
|
137
|
+
minLength: {
|
|
138
|
+
value: 8,
|
|
139
|
+
message: 'Password must be at least 8 characters',
|
|
140
|
+
},
|
|
141
|
+
validate: {
|
|
142
|
+
strength: (value) => {
|
|
143
|
+
const hasUpper = /[A-Z]/.test(value);
|
|
144
|
+
const hasLower = /[a-z]/.test(value);
|
|
145
|
+
const hasNumber = /\\d/.test(value);
|
|
146
|
+
|
|
147
|
+
if (!hasUpper || !hasLower || !hasNumber) {
|
|
148
|
+
return 'Password must contain uppercase, lowercase, and number';
|
|
149
|
+
}
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}}
|
|
154
|
+
>
|
|
155
|
+
<Input type="password" />
|
|
156
|
+
</FormField>`
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
] })
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ e(c, { variant: "info", dismissible: !1, children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
|
|
162
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
163
|
+
/* @__PURE__ */ e(g, { className: "h-4 w-4" }),
|
|
164
|
+
/* @__PURE__ */ e(r, { tag: "span", className: "font-semibold", children: "Validation Schema vs Rules Prop" })
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ a(r, { tag: "p", className: "text-sm", children: [
|
|
167
|
+
/* @__PURE__ */ e("strong", { children: "validationSchema:" }),
|
|
168
|
+
" Centralized validation for all fields. Rules are automatically applied.",
|
|
169
|
+
" ",
|
|
170
|
+
/* @__PURE__ */ e("strong", { children: "rules prop:" }),
|
|
171
|
+
" Field-specific validation that overrides schema rules for that field. Both can be used together, with",
|
|
172
|
+
" ",
|
|
173
|
+
/* @__PURE__ */ e("code", { className: "px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs", children: "rules" }),
|
|
174
|
+
" ",
|
|
175
|
+
"taking precedence."
|
|
176
|
+
] })
|
|
177
|
+
] }) })
|
|
178
|
+
] }) }) }),
|
|
179
|
+
/* @__PURE__ */ e(i, { className: "overflow-hidden", children: /* @__PURE__ */ e(l, { title: "Available Validation Rules", className: "mt-2 mb-2", children: /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
|
|
180
|
+
/* @__PURE__ */ e(r, { tag: "p", className: "text-gray-600 dark:text-gray-400", children: "Complete list of validation rules supported by React Hook Form:" }),
|
|
181
|
+
/* @__PURE__ */ e(
|
|
182
|
+
u,
|
|
183
|
+
{
|
|
184
|
+
columns: n.map((t) => ({
|
|
185
|
+
...t,
|
|
186
|
+
render: (s) => t.key === "rule" ? /* @__PURE__ */ e("code", { className: "text-xs text-brand", children: String(s ?? "") }) : t.key === "example" ? /* @__PURE__ */ e("code", { className: "text-xs text-gray-600 dark:text-gray-400", children: String(s ?? "") }) : t.key === "description" ? /* @__PURE__ */ e("span", { className: "text-xs text-gray-600 dark:text-gray-400", children: String(s ?? "") }) : String(s ?? "")
|
|
187
|
+
})),
|
|
188
|
+
data: o,
|
|
189
|
+
containerClassName: "mb-4"
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
] }) }) })
|
|
193
|
+
] });
|
|
194
|
+
};
|
|
195
|
+
export {
|
|
196
|
+
F as default
|
|
197
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./index-CjRk4ezu.js"),t=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const n=()=>{const i=[{key:"rule",label:"Rule"},{key:"example",label:"Example"},{key:"description",label:"Description"}],l=[{rule:"required",example:"required: 'Field is required'",description:"Makes field required"},{rule:"minLength",example:"minLength: { value: 2, message: '...' }",description:"Minimum string length"},{rule:"maxLength",example:"maxLength: { value: 100, message: '...' }",description:"Maximum string length"},{rule:"pattern",example:"pattern: { value: /regex/, message: '...' }",description:"Regex pattern validation"},{rule:"min",example:"min: { value: 18, message: '...' }",description:"Minimum numeric value"},{rule:"max",example:"max: { value: 100, message: '...' }",description:"Maximum numeric value"}];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:"Validation System"}),e.jsx(a.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Centralized validation with built-in and custom rules"})]}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Validation Approaches",className:"mt-2 mb-2",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsx(a.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"You can define validation in two ways:"}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-linear-to-br from-blue-500 to-cyan-500 rounded-lg shadow-lg",children:e.jsx(t.FileText,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(a.Typography,{tag:"h4",className:"font-semibold",children:"Centralized Validation Schema"})]}),e.jsx(a.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:"Define all validation rules in a single schema object and pass it to the Form component. This eliminates the need to define rules on each FormField."}),e.jsx(a.CodeBlock,{language:"tsx",code:`import { FormValidations } from '@e-burgos/tucu-ui';
|
|
2
|
+
|
|
3
|
+
export const formValidations: FormValidations<FormValues> = {
|
|
4
|
+
name: {
|
|
5
|
+
required: 'This is a required field.',
|
|
6
|
+
minLength: {
|
|
7
|
+
value: 2,
|
|
8
|
+
message: 'The name must be at least 2 characters long.',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
email: {
|
|
12
|
+
required: 'This is a required field.',
|
|
13
|
+
pattern: {
|
|
14
|
+
value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i,
|
|
15
|
+
message: 'Invalid email address.',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// Use in Form component
|
|
21
|
+
<Form<FormValues>
|
|
22
|
+
onSubmit={handleSubmit}
|
|
23
|
+
validationSchema={formValidations}
|
|
24
|
+
useFormProps={{ defaultValues }}
|
|
25
|
+
>
|
|
26
|
+
{/* FormFields don't need rules prop */}
|
|
27
|
+
<FormField<FormValues> name="name" label="Name">
|
|
28
|
+
<Input />
|
|
29
|
+
</FormField>
|
|
30
|
+
</Form>`})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-linear-to-br from-purple-500 to-violet-500 rounded-lg shadow-lg",children:e.jsx(t.Code,{className:"w-5 h-5 text-white filter drop-shadow-sm"})}),e.jsx(a.Typography,{tag:"h4",className:"font-semibold",children:"Per-Field Validation"})]}),e.jsxs(a.Typography,{tag:"p",className:"text-sm text-gray-600 dark:text-gray-400",children:["Define validation rules directly on each FormField using the"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"rules"})," ","prop. Useful for field-specific validation."]}),e.jsx(a.CodeBlock,{language:"tsx",code:`<FormField<FormValues>
|
|
31
|
+
name="password"
|
|
32
|
+
label="Password"
|
|
33
|
+
rules={{
|
|
34
|
+
required: 'Password is required',
|
|
35
|
+
minLength: {
|
|
36
|
+
value: 8,
|
|
37
|
+
message: 'Password must be at least 8 characters',
|
|
38
|
+
},
|
|
39
|
+
validate: {
|
|
40
|
+
strength: (value) => {
|
|
41
|
+
const hasUpper = /[A-Z]/.test(value);
|
|
42
|
+
const hasLower = /[a-z]/.test(value);
|
|
43
|
+
const hasNumber = /\\d/.test(value);
|
|
44
|
+
|
|
45
|
+
if (!hasUpper || !hasLower || !hasNumber) {
|
|
46
|
+
return 'Password must contain uppercase, lowercase, and number';
|
|
47
|
+
}
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
<Input type="password" />
|
|
54
|
+
</FormField>`})]})]}),e.jsx(a.Alert,{variant:"info",dismissible:!1,children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t.Info,{className:"h-4 w-4"}),e.jsx(a.Typography,{tag:"span",className:"font-semibold",children:"Validation Schema vs Rules Prop"})]}),e.jsxs(a.Typography,{tag:"p",className:"text-sm",children:[e.jsx("strong",{children:"validationSchema:"})," Centralized validation for all fields. Rules are automatically applied."," ",e.jsx("strong",{children:"rules prop:"})," Field-specific validation that overrides schema rules for that field. Both can be used together, with"," ",e.jsx("code",{className:"px-1 py-0.5 border border-gray-300 dark:border-gray-600 rounded text-xs",children:"rules"})," ","taking precedence."]})]})})]})})}),e.jsx(a.CardContainer,{className:"overflow-hidden",children:e.jsx(a.CardTitle,{title:"Available Validation Rules",className:"mt-2 mb-2",children:e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsx(a.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400",children:"Complete list of validation rules supported by React Hook Form:"}),e.jsx(a.BasicTable,{columns:i.map(s=>({...s,render:r=>s.key==="rule"?e.jsx("code",{className:"text-xs text-brand",children:String(r??"")}):s.key==="example"?e.jsx("code",{className:"text-xs text-gray-600 dark:text-gray-400",children:String(r??"")}):s.key==="description"?e.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:String(r??"")}):String(r??"")})),data:l,containerClassName:"mb-4"})]})})})]})};exports.default=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-CjRk4ezu.js"),s=require("lucide-react");require("react-router-dom");require("react");require("react-dom");const n=()=>{const r=[{title:"Perceivable",description:"Information and UI components must be presentable to users in ways they can perceive.",icon:e.jsx(s.Eye,{className:"w-8 h-8 text-white filter drop-shadow-sm"}),color:"from-orange-500 via-amber-500 to-yellow-500",features:["Color contrast ratios","Alt text for images","Scalable text","Audio descriptions"]},{title:"Operable",description:"UI components and navigation must be operable by all users.",icon:e.jsx(s.Hand,{className:"w-8 h-8 text-white filter drop-shadow-sm"}),color:"from-orange-500 via-amber-500 to-yellow-500",features:["Keyboard navigation","Focus management","No seizure triggers","Sufficient time limits"]},{title:"Understandable",description:"Information and UI operation must be understandable.",icon:e.jsx(s.Brain,{className:"w-8 h-8 text-white filter drop-shadow-sm"}),color:"from-orange-500 via-amber-500 to-yellow-500",features:["Readable text","Predictable functionality","Input assistance","Error identification"]},{title:"Robust",description:"Content must be robust enough for various assistive technologies.",icon:e.jsx(s.Wrench,{className:"w-8 h-8 text-white filter drop-shadow-sm"}),color:"from-orange-500 via-amber-500 to-yellow-500",features:["Valid HTML","Compatible markup","Future-proof code","Assistive tech support"]}];return e.jsxs("div",{className:"space-y-8",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:"WCAG 2.1 AA Principles"}),e.jsx(t.Typography,{tag:"p",className:"text-xl text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:"Four fundamental principles that guide our accessibility implementation"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6",children:r.map((a,i)=>e.jsx(t.CardContainer,{className:"group hover:shadow-large transition-all duration-300 hover:-translate-y-1",children:e.jsxs("div",{className:"w-full space-y-4 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:`p-3 rounded-xl bg-linear-to-br ${a.color} group-hover:scale-110 transition-all duration-300 shadow-lg hover:shadow-xl`,children:a.icon}),e.jsx(t.Typography,{tag:"h3",className:"font-semibold text-lg group-hover:text-primary transition-colors duration-300",children:a.title})]}),e.jsx(t.Typography,{tag:"p",className:"text-gray-600 dark:text-gray-400 leading-relaxed",children:a.description}),e.jsx("div",{className:"space-y-2",children:a.features.map((o,l)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(s.Check,{className:"w-4 h-4 text-green-500 shrink-0"}),e.jsx(t.Typography,{tag:"span",className:"text-sm text-gray-600 dark:text-gray-400",children:o})]},l))})]})},i))})]})};exports.default=n;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, C as l } from "./index-Hq6IUBmn.mjs";
|
|
3
|
+
import { Check as n, Eye as c, Hand as d, Brain as m, Wrench as p } from "lucide-react";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const y = () => /* @__PURE__ */ t("div", { className: "space-y-8", children: [
|
|
8
|
+
/* @__PURE__ */ t("div", { className: "text-center space-y-4", children: [
|
|
9
|
+
/* @__PURE__ */ e(r, { tag: "h2", className: "text-3xl md:text-4xl font-bold", children: "WCAG 2.1 AA Principles" }),
|
|
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: "Four fundamental principles that guide our accessibility implementation"
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6", children: [
|
|
20
|
+
{
|
|
21
|
+
title: "Perceivable",
|
|
22
|
+
description: "Information and UI components must be presentable to users in ways they can perceive.",
|
|
23
|
+
icon: /* @__PURE__ */ e(c, { className: "w-8 h-8 text-white filter drop-shadow-sm" }),
|
|
24
|
+
color: "from-orange-500 via-amber-500 to-yellow-500",
|
|
25
|
+
features: [
|
|
26
|
+
"Color contrast ratios",
|
|
27
|
+
"Alt text for images",
|
|
28
|
+
"Scalable text",
|
|
29
|
+
"Audio descriptions"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: "Operable",
|
|
34
|
+
description: "UI components and navigation must be operable by all users.",
|
|
35
|
+
icon: /* @__PURE__ */ e(d, { className: "w-8 h-8 text-white filter drop-shadow-sm" }),
|
|
36
|
+
color: "from-orange-500 via-amber-500 to-yellow-500",
|
|
37
|
+
features: [
|
|
38
|
+
"Keyboard navigation",
|
|
39
|
+
"Focus management",
|
|
40
|
+
"No seizure triggers",
|
|
41
|
+
"Sufficient time limits"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: "Understandable",
|
|
46
|
+
description: "Information and UI operation must be understandable.",
|
|
47
|
+
icon: /* @__PURE__ */ e(m, { className: "w-8 h-8 text-white filter drop-shadow-sm" }),
|
|
48
|
+
color: "from-orange-500 via-amber-500 to-yellow-500",
|
|
49
|
+
features: [
|
|
50
|
+
"Readable text",
|
|
51
|
+
"Predictable functionality",
|
|
52
|
+
"Input assistance",
|
|
53
|
+
"Error identification"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: "Robust",
|
|
58
|
+
description: "Content must be robust enough for various assistive technologies.",
|
|
59
|
+
icon: /* @__PURE__ */ e(p, { className: "w-8 h-8 text-white filter drop-shadow-sm" }),
|
|
60
|
+
color: "from-orange-500 via-amber-500 to-yellow-500",
|
|
61
|
+
features: [
|
|
62
|
+
"Valid HTML",
|
|
63
|
+
"Compatible markup",
|
|
64
|
+
"Future-proof code",
|
|
65
|
+
"Assistive tech support"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
].map((a, s) => /* @__PURE__ */ e(
|
|
69
|
+
l,
|
|
70
|
+
{
|
|
71
|
+
className: "group hover:shadow-large transition-all duration-300 hover:-translate-y-1",
|
|
72
|
+
children: /* @__PURE__ */ t("div", { className: "w-full space-y-4 p-4 sm:p-6", children: [
|
|
73
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-4", children: [
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
className: `p-3 rounded-xl bg-linear-to-br ${a.color} group-hover:scale-110 transition-all duration-300 shadow-lg hover:shadow-xl`,
|
|
78
|
+
children: a.icon
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ e(
|
|
82
|
+
r,
|
|
83
|
+
{
|
|
84
|
+
tag: "h3",
|
|
85
|
+
className: "font-semibold text-lg group-hover:text-primary transition-colors duration-300",
|
|
86
|
+
children: a.title
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ e(
|
|
91
|
+
r,
|
|
92
|
+
{
|
|
93
|
+
tag: "p",
|
|
94
|
+
className: "text-gray-600 dark:text-gray-400 leading-relaxed",
|
|
95
|
+
children: a.description
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ e("div", { className: "space-y-2", children: a.features.map((o, i) => /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
99
|
+
/* @__PURE__ */ e(n, { className: "w-4 h-4 text-green-500 shrink-0" }),
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
r,
|
|
102
|
+
{
|
|
103
|
+
tag: "span",
|
|
104
|
+
className: "text-sm text-gray-600 dark:text-gray-400",
|
|
105
|
+
children: o
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] }, i)) })
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jIrAqCpUHv/AJ796/S8cAD0r99yKpjqmXUJY+kqVfljor6q278z9f4Zh7PJ8LBKShGNqfNe/LpbfUKzNX0G18R2E+mXkCzwXCMjKyhhhhg8HPrXq3j/AMDXngu6khulZQhIyRjpxz/nt9ced2mvW1pDNK4BKK3X8eOv+TjPSvXk+WLk1ov6sej9dw1bCLEwlGpRqR0e6knb1XU/A/8Ab5/ZK0XQILzX/Dai3vJTJK0cahfmOTyFx/k186fsT/BvwfqGuwSeN76KO4hnXZFcMoJIbjhsZ54/H8a/U79rDxNZeIxd204UoPMUDOfXtn/P41+QesC+8N6o+oaDdS2rxS7wI3K52nIztI+uf0GKrC8O4LEz+u2hzuz5ZQVr2TvdddrdX13PkpcMZRicVHNaVON4O88O5ctOTundx239f8v6d/A+kaDouh2dnoBgNpHCioYNuCoUDPy/T1rs6/HT9j39qHWNQv7bwr4guGmclIlaVyWPRc8n+n5V+5Pw68FXfjqaBbRWKzKhBUZ++vt9fx/KtK1GVCXJK1raen9f0j6xYvDYfCOtNxo0aMbS6Rior9NF18rn/9k=";
|
|
2
|
+
export {
|
|
3
|
+
A as c
|
|
4
|
+
};
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ShapeNames = 'rounded' | 'pill' | 'circle';
|
|
3
|
+
type VariantNames = 'solid' | 'ghost' | 'outline' | 'soft';
|
|
4
|
+
type ColorNames = 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'gray' | 'white' | 'light-dark';
|
|
5
|
+
type SizeNames = 'tiny' | 'small' | 'medium' | 'large';
|
|
6
|
+
type StatusNames = 'active' | 'inactive' | 'pending' | 'default';
|
|
7
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
8
|
+
children?: React.ReactNode;
|
|
2
9
|
className?: string;
|
|
3
|
-
status?:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
status?: StatusNames;
|
|
11
|
+
color?: ColorNames;
|
|
12
|
+
size?: SizeNames;
|
|
13
|
+
variant?: VariantNames;
|
|
14
|
+
shape?: ShapeNames;
|
|
15
|
+
withDot?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const Badge: ({ children, className, status, color, size, variant, shape, withDot, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
18
|
export default Badge;
|
|
@@ -1,6 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ShapeNames = 'rectangle' | 'circle' | 'text' | 'rounded';
|
|
3
|
+
type AnimationNames = 'pulse' | 'wave' | 'shimmer' | 'none';
|
|
4
|
+
type SizeNames = 'tiny' | 'small' | 'medium' | 'large' | 'full';
|
|
5
|
+
export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Animation type for the skeleton
|
|
8
|
+
* @default 'shimmer'
|
|
9
|
+
*/
|
|
10
|
+
animation?: AnimationNames;
|
|
11
|
+
/**
|
|
12
|
+
* Shape of the skeleton
|
|
13
|
+
* @default 'rounded'
|
|
14
|
+
*/
|
|
15
|
+
shape?: ShapeNames;
|
|
16
|
+
/**
|
|
17
|
+
* Predefined size of the skeleton
|
|
18
|
+
* @default 'medium'
|
|
19
|
+
*/
|
|
20
|
+
size?: SizeNames;
|
|
21
|
+
/**
|
|
22
|
+
* Width of the skeleton (overrides size)
|
|
23
|
+
*/
|
|
24
|
+
width?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Height of the skeleton (overrides size)
|
|
27
|
+
*/
|
|
28
|
+
height?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Number of skeleton lines to render (useful for text skeletons)
|
|
31
|
+
*/
|
|
32
|
+
count?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Additional CSS classes
|
|
35
|
+
*/
|
|
3
36
|
className?: string;
|
|
4
37
|
}
|
|
5
|
-
export declare function Skeleton({ className,
|
|
38
|
+
export declare function Skeleton({ animation, shape, size, width, height, count, className, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
39
|
export default Skeleton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ChevronLeft(props: React.SVGAttributes<SVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ChevronLeft({ className, ...props }: React.SVGAttributes<SVGElement>): import("react/jsx-runtime").JSX.Element;
|
package/components/index.d.ts
CHANGED
|
@@ -5,13 +5,16 @@ export * from './cards';
|
|
|
5
5
|
export * from './carousel';
|
|
6
6
|
export * from './common';
|
|
7
7
|
export * from './dialog';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './forms';
|
|
9
9
|
export * from './icons';
|
|
10
|
+
export * from './inputs';
|
|
11
|
+
export * from './layouts';
|
|
10
12
|
export * from './links';
|
|
13
|
+
export * from './list';
|
|
11
14
|
export * from './loaders';
|
|
12
15
|
export * from './logos';
|
|
13
16
|
export * from './notifications';
|
|
17
|
+
export * from './table';
|
|
18
|
+
export * from './tabs';
|
|
14
19
|
export * from './typography';
|
|
15
20
|
export * from './utils';
|
|
16
|
-
export * from './forms';
|
|
17
|
-
export * from './inputs';
|