@electroplix/components 0.0.2 → 0.2.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/README.md +585 -3
- package/cli.cjs +211 -0
- package/dist/README.md +107 -2
- package/dist/index.esm.js +17803 -4325
- package/dist/src/__tests__/test-utils.d.ts +8 -0
- package/dist/src/__tests__/test-utils.d.ts.map +1 -0
- package/dist/src/components/blog/index.d.ts +88 -0
- package/dist/src/components/blog/index.d.ts.map +1 -0
- package/dist/src/components/buttons/index.d.ts +71 -0
- package/dist/src/components/buttons/index.d.ts.map +1 -0
- package/dist/src/components/content/BlockquoteTestimonial.d.ts +24 -0
- package/dist/src/components/content/BlockquoteTestimonial.d.ts.map +1 -0
- package/dist/src/components/content/CalloutBox.d.ts +26 -0
- package/dist/src/components/content/CalloutBox.d.ts.map +1 -0
- package/dist/src/components/content/HeadingSection.d.ts +26 -0
- package/dist/src/components/content/HeadingSection.d.ts.map +1 -0
- package/dist/src/components/content/InlineCodeText.d.ts +24 -0
- package/dist/src/components/content/InlineCodeText.d.ts.map +1 -0
- package/dist/src/components/content/ParagraphBlock.d.ts +23 -0
- package/dist/src/components/content/ParagraphBlock.d.ts.map +1 -0
- package/dist/src/components/content/RichMarkdown.d.ts +20 -0
- package/dist/src/components/content/RichMarkdown.d.ts.map +1 -0
- package/dist/src/components/content/index.d.ts +7 -0
- package/dist/src/components/content/index.d.ts.map +1 -0
- package/dist/src/components/data-display/Badge.d.ts +9 -0
- package/dist/src/components/data-display/Badge.d.ts.map +1 -0
- package/dist/src/components/data-display/BadgeGroup.d.ts +8 -0
- package/dist/src/components/data-display/BadgeGroup.d.ts.map +1 -0
- package/dist/src/components/data-display/BarChart.d.ts +12 -0
- package/dist/src/components/data-display/BarChart.d.ts.map +1 -0
- package/dist/src/components/data-display/CalendarGrid.d.ts +15 -0
- package/dist/src/components/data-display/CalendarGrid.d.ts.map +1 -0
- package/dist/src/components/data-display/DataTable.d.ts +24 -0
- package/dist/src/components/data-display/DataTable.d.ts.map +1 -0
- package/dist/src/components/data-display/LineChart.d.ts +11 -0
- package/dist/src/components/data-display/LineChart.d.ts.map +1 -0
- package/dist/src/components/data-display/PieChart.d.ts +9 -0
- package/dist/src/components/data-display/PieChart.d.ts.map +1 -0
- package/dist/src/components/data-display/ProgressBar.d.ts +11 -0
- package/dist/src/components/data-display/ProgressBar.d.ts.map +1 -0
- package/dist/src/components/data-display/RatingStars.d.ts +10 -0
- package/dist/src/components/data-display/RatingStars.d.ts.map +1 -0
- package/dist/src/components/data-display/Sparkline.d.ts +7 -0
- package/dist/src/components/data-display/Sparkline.d.ts.map +1 -0
- package/dist/src/components/data-display/Timeline.d.ts +12 -0
- package/dist/src/components/data-display/Timeline.d.ts.map +1 -0
- package/dist/src/components/data-display/index.d.ts +12 -0
- package/dist/src/components/data-display/index.d.ts.map +1 -0
- package/dist/src/components/ecommerce/index.d.ts +110 -0
- package/dist/src/components/ecommerce/index.d.ts.map +1 -0
- package/dist/src/components/forms/AddressAutocomplete.d.ts +27 -0
- package/dist/src/components/forms/AddressAutocomplete.d.ts.map +1 -0
- package/dist/src/components/forms/Captcha.d.ts +23 -0
- package/dist/src/components/forms/Captcha.d.ts.map +1 -0
- package/dist/src/components/forms/ContactForm.d.ts +28 -0
- package/dist/src/components/forms/ContactForm.d.ts.map +1 -0
- package/dist/src/components/forms/DateTimePicker.d.ts +27 -0
- package/dist/src/components/forms/DateTimePicker.d.ts.map +1 -0
- package/dist/src/components/forms/FileUploader.d.ts +24 -0
- package/dist/src/components/forms/FileUploader.d.ts.map +1 -0
- package/dist/src/components/forms/FormShell.d.ts +17 -0
- package/dist/src/components/forms/FormShell.d.ts.map +1 -0
- package/dist/src/components/forms/InputField.d.ts +32 -0
- package/dist/src/components/forms/InputField.d.ts.map +1 -0
- package/dist/src/components/forms/MultiStepWizard.d.ts +29 -0
- package/dist/src/components/forms/MultiStepWizard.d.ts.map +1 -0
- package/dist/src/components/forms/NewsletterSignup.d.ts +26 -0
- package/dist/src/components/forms/NewsletterSignup.d.ts.map +1 -0
- package/dist/src/components/forms/RadioGroup.d.ts +31 -0
- package/dist/src/components/forms/RadioGroup.d.ts.map +1 -0
- package/dist/src/components/forms/SelectDropdown.d.ts +33 -0
- package/dist/src/components/forms/SelectDropdown.d.ts.map +1 -0
- package/dist/src/components/forms/TextAreaField.d.ts +30 -0
- package/dist/src/components/forms/TextAreaField.d.ts.map +1 -0
- package/dist/src/components/forms/ToggleSwitch.d.ts +25 -0
- package/dist/src/components/forms/ToggleSwitch.d.ts.map +1 -0
- package/dist/src/components/forms/ValidationWrapper.d.ts +24 -0
- package/dist/src/components/forms/ValidationWrapper.d.ts.map +1 -0
- package/dist/src/components/forms/index.d.ts +29 -0
- package/dist/src/components/forms/index.d.ts.map +1 -0
- package/dist/src/components/hero/CTAOverlayHero.d.ts +29 -0
- package/dist/src/components/hero/CTAOverlayHero.d.ts.map +1 -0
- package/dist/src/components/hero/CarouselHero.d.ts +29 -0
- package/dist/src/components/hero/CarouselHero.d.ts.map +1 -0
- package/dist/src/components/hero/HeroShell.d.ts +18 -0
- package/dist/src/components/hero/HeroShell.d.ts.map +1 -0
- package/dist/src/components/hero/PatternedHero.d.ts +34 -0
- package/dist/src/components/hero/PatternedHero.d.ts.map +1 -0
- package/dist/src/components/hero/SplitHero.d.ts +31 -0
- package/dist/src/components/hero/SplitHero.d.ts.map +1 -0
- package/dist/src/components/hero/StaticHero.d.ts +26 -0
- package/dist/src/components/hero/StaticHero.d.ts.map +1 -0
- package/dist/src/components/hero/VideoHeaderHero.d.ts +29 -0
- package/dist/src/components/hero/VideoHeaderHero.d.ts.map +1 -0
- package/dist/src/components/hero/index.d.ts +15 -0
- package/dist/src/components/hero/index.d.ts.map +1 -0
- package/dist/src/components/lists-cards/index.d.ts +104 -0
- package/dist/src/components/lists-cards/index.d.ts.map +1 -0
- package/dist/src/components/marketing/index.d.ts +95 -0
- package/dist/src/components/marketing/index.d.ts.map +1 -0
- package/dist/src/components/media/index.d.ts +95 -0
- package/dist/src/components/media/index.d.ts.map +1 -0
- package/dist/src/components/miscellaneous/index.d.ts +63 -0
- package/dist/src/components/miscellaneous/index.d.ts.map +1 -0
- package/dist/src/components/modals/index.d.ts +83 -0
- package/dist/src/components/modals/index.d.ts.map +1 -0
- package/dist/src/components/navigation/AnchorLinks.d.ts +25 -0
- package/dist/src/components/navigation/AnchorLinks.d.ts.map +1 -0
- package/dist/src/components/navigation/Breadcrumbs.d.ts +25 -0
- package/dist/src/components/navigation/Breadcrumbs.d.ts.map +1 -0
- package/dist/src/components/navigation/LanguageSelector.d.ts +24 -0
- package/dist/src/components/navigation/LanguageSelector.d.ts.map +1 -0
- package/dist/src/components/navigation/MegaMenu.d.ts +28 -0
- package/dist/src/components/navigation/MegaMenu.d.ts.map +1 -0
- package/dist/src/components/navigation/Pagination.d.ts +18 -0
- package/dist/src/components/navigation/Pagination.d.ts.map +1 -0
- package/dist/src/{lib/Navbar.d.ts → components/navigation/PrimaryNav.d.ts} +10 -11
- package/dist/src/components/navigation/PrimaryNav.d.ts.map +1 -0
- package/dist/src/components/navigation/SideDrawerNav.d.ts +22 -0
- package/dist/src/components/navigation/SideDrawerNav.d.ts.map +1 -0
- package/dist/src/components/navigation/SidebarMenu.d.ts +25 -0
- package/dist/src/components/navigation/SidebarMenu.d.ts.map +1 -0
- package/dist/src/components/navigation/Stepper.d.ts +17 -0
- package/dist/src/components/navigation/Stepper.d.ts.map +1 -0
- package/dist/src/components/navigation/Tabs.d.ts +22 -0
- package/dist/src/components/navigation/Tabs.d.ts.map +1 -0
- package/dist/src/components/navigation/index.d.ts +21 -0
- package/dist/src/components/navigation/index.d.ts.map +1 -0
- package/dist/src/components/onboarding/index.d.ts +66 -0
- package/dist/src/components/onboarding/index.d.ts.map +1 -0
- package/dist/src/components/search/index.d.ts +58 -0
- package/dist/src/components/search/index.d.ts.map +1 -0
- package/dist/src/components/site-identity/index.d.ts +48 -0
- package/dist/src/components/site-identity/index.d.ts.map +1 -0
- package/dist/src/components/social/index.d.ts +68 -0
- package/dist/src/components/social/index.d.ts.map +1 -0
- package/dist/src/components/user-accounts/index.d.ts +68 -0
- package/dist/src/components/user-accounts/index.d.ts.map +1 -0
- package/dist/src/core/config.d.ts +37 -0
- package/dist/src/core/config.d.ts.map +1 -0
- package/dist/src/core/icons.d.ts +25 -0
- package/dist/src/core/icons.d.ts.map +1 -0
- package/dist/src/core/index.d.ts +8 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/provider.d.ts +45 -0
- package/dist/src/core/provider.d.ts.map +1 -0
- package/dist/src/core/types.d.ts +145 -0
- package/dist/src/core/types.d.ts.map +1 -0
- package/dist/src/core/utils.d.ts +70 -0
- package/dist/src/core/utils.d.ts.map +1 -0
- package/dist/src/index.d.ts +19 -2
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +54 -3
- package/dist/src/lib/Navbar.d.ts.map +0 -1
- package/dist/src/lib/components.d.ts +0 -3
- package/dist/src/lib/components.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,7 +1,589 @@
|
|
|
1
1
|
# @electroplix/components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> Parametric, config-driven React UI components. **~154 components** across **18 categories** — zero external CSS, zero icon dependencies, fully themeable via a single provider.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@electroplix/components)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Table of Contents
|
|
10
|
+
|
|
11
|
+
- [Installation](#installation)
|
|
12
|
+
- [Quick Start](#quick-start)
|
|
13
|
+
- [Configuration](#configuration)
|
|
14
|
+
- [Component Categories](#component-categories)
|
|
15
|
+
- [Icon System](#icon-system)
|
|
16
|
+
- [CLI](#cli)
|
|
17
|
+
- [Utilities](#utilities)
|
|
18
|
+
- [API Reference](#api-reference)
|
|
19
|
+
- [Testing](#testing)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install @electroplix/components
|
|
27
|
+
# or
|
|
28
|
+
pnpm add @electroplix/components
|
|
29
|
+
# or
|
|
30
|
+
yarn add @electroplix/components
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Peer dependencies:** `react >=18.0.0` and `react-dom >=18.0.0`
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
### 1. Wrap your app with the provider
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
// app/layout.tsx (Next.js App Router)
|
|
43
|
+
import { ElectroplixProvider } from "@electroplix/components";
|
|
44
|
+
import config from "./electroplix.config";
|
|
45
|
+
|
|
46
|
+
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
47
|
+
return (
|
|
48
|
+
<html>
|
|
49
|
+
<body>
|
|
50
|
+
<ElectroplixProvider config={config}>
|
|
51
|
+
{children}
|
|
52
|
+
</ElectroplixProvider>
|
|
53
|
+
</body>
|
|
54
|
+
</html>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 2. Use components anywhere
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
"use client";
|
|
63
|
+
import {
|
|
64
|
+
PrimaryNav,
|
|
65
|
+
StaticHero,
|
|
66
|
+
PrimaryButton,
|
|
67
|
+
ContactForm,
|
|
68
|
+
BlogCard,
|
|
69
|
+
} from "@electroplix/components";
|
|
70
|
+
|
|
71
|
+
export default function HomePage() {
|
|
72
|
+
return (
|
|
73
|
+
<>
|
|
74
|
+
<PrimaryNav logoText="MyApp" links={[{ label: "Home", href: "/" }]} />
|
|
75
|
+
<StaticHero title="Welcome" subtitle="Build faster." ctaLabel="Get Started" />
|
|
76
|
+
<PrimaryButton label="Click me" onClick={() => alert("Clicked!")} />
|
|
77
|
+
</>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Configuration
|
|
85
|
+
|
|
86
|
+
Create an `electroplix.config.ts` file using the server-safe `./config` entry:
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
// electroplix.config.ts
|
|
90
|
+
import { defineConfig } from "@electroplix/components/config";
|
|
91
|
+
|
|
92
|
+
export default defineConfig({
|
|
93
|
+
navigation: {
|
|
94
|
+
bgColor: "#1a1a2e",
|
|
95
|
+
accentColor: "#e94560",
|
|
96
|
+
sticky: true,
|
|
97
|
+
height: 64,
|
|
98
|
+
},
|
|
99
|
+
buttons: {
|
|
100
|
+
bgColor: "#e94560",
|
|
101
|
+
textColor: "#ffffff",
|
|
102
|
+
radius: 12,
|
|
103
|
+
},
|
|
104
|
+
hero: {
|
|
105
|
+
bgColor: "#16213e",
|
|
106
|
+
minH: 600,
|
|
107
|
+
},
|
|
108
|
+
forms: {
|
|
109
|
+
inputBg: "rgba(255,255,255,0.05)",
|
|
110
|
+
radius: 8,
|
|
111
|
+
},
|
|
112
|
+
// ... configure any of the 18 categories
|
|
113
|
+
});
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Available config keys
|
|
117
|
+
|
|
118
|
+
| Key | Theme Type | Category |
|
|
119
|
+
|-----|-----------|----------|
|
|
120
|
+
| `blog` | `BlogTheme` | Blog components |
|
|
121
|
+
| `buttons` | `ButtonTheme` | Button components |
|
|
122
|
+
| `content` | `ContentTheme` | Content components |
|
|
123
|
+
| `dataDisplay` | `DataDisplayTheme` | Charts, tables, badges |
|
|
124
|
+
| `ecommerce` | `EcommerceTheme` | Product cards, cart, checkout |
|
|
125
|
+
| `forms` | `FormsTheme` | Form inputs and wizards |
|
|
126
|
+
| `hero` | `HeroTheme` | Hero sections |
|
|
127
|
+
| `listsCards` | `ListsCardsTheme` | Lists, cards, pricing |
|
|
128
|
+
| `marketing` | `MarketingTheme` | Marketing blocks |
|
|
129
|
+
| `media` | `MediaTheme` | Images, video, galleries |
|
|
130
|
+
| `miscellaneous` | `MiscTheme` | Misc UI utilities |
|
|
131
|
+
| `modals` | `ModalsTheme` | Modals, toasts, tooltips |
|
|
132
|
+
| `navigation` | `NavigationTheme` | Navbars, tabs, menus |
|
|
133
|
+
| `onboarding` | `OnboardingTheme` | Wizards, tours, FAQ |
|
|
134
|
+
| `search` | `SearchTheme` | Search bars and results |
|
|
135
|
+
| `siteIdentity` | `SiteIdentityTheme` | Logo, branding |
|
|
136
|
+
| `social` | `SocialTheme` | Social sharing, login |
|
|
137
|
+
| `userAccounts` | `UserAccountsTheme` | Auth forms, profile |
|
|
138
|
+
|
|
139
|
+
Every theme extends `BaseTheme` which provides: `bgColor`, `textColor`, `accentColor`, `borderColor`, `fontFamily`, `radius`, `spacing`, `headingSize`, `bodySize`, `fontWeight`, `lineHeight`, `letterSpacing`, `shadow`.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Component Categories
|
|
144
|
+
|
|
145
|
+
### Navigation (10)
|
|
146
|
+
|
|
147
|
+
| Component | Key Props | Description |
|
|
148
|
+
|-----------|----------|-------------|
|
|
149
|
+
| `PrimaryNav` | `logoText`, `links`, `showSearch`, `showCTA`, `sticky` | Main navigation bar |
|
|
150
|
+
| `SidebarMenu` | `items`, `width` | Vertical sidebar navigation |
|
|
151
|
+
| `SideDrawerNav` | `links`, `width`, `position` | Slide-out drawer navigation |
|
|
152
|
+
| `MegaMenu` | `label`, `sections` | Dropdown mega menu |
|
|
153
|
+
| `Tabs` | `tabs`, `defaultTab`, `orientation` | Tab navigation |
|
|
154
|
+
| `Breadcrumbs` | `items`, `showHomeIcon` | Breadcrumb trail |
|
|
155
|
+
| `Pagination` | `currentPage`, `totalPages`, `onPageChange` | Page navigation |
|
|
156
|
+
| `Stepper` | `steps`, `currentStep`, `orientation` | Step indicator |
|
|
157
|
+
| `AnchorLinks` | `items`, `orientation`, `offset` | In-page anchor navigation |
|
|
158
|
+
| `LanguageSelector` | `languages`, `current`, `onChange` | Language picker dropdown |
|
|
159
|
+
|
|
160
|
+
```tsx
|
|
161
|
+
<PrimaryNav
|
|
162
|
+
logoText="Acme"
|
|
163
|
+
links={[
|
|
164
|
+
{ label: "Products", href: "/products" },
|
|
165
|
+
{ label: "Pricing", href: "/pricing" },
|
|
166
|
+
{ label: "Docs", href: "/docs" },
|
|
167
|
+
]}
|
|
168
|
+
showSearch
|
|
169
|
+
showCTA
|
|
170
|
+
ctaText="Sign Up"
|
|
171
|
+
ctaHref="/signup"
|
|
172
|
+
sticky
|
|
173
|
+
/>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Hero (7)
|
|
177
|
+
|
|
178
|
+
| Component | Key Props | Description |
|
|
179
|
+
|-----------|----------|-------------|
|
|
180
|
+
| `HeroShell` | `as`, `bgColor`, `minH`, `maxW`, `children` | Base hero wrapper |
|
|
181
|
+
| `StaticHero` | `title`, `subtitle`, `ctaLabel`, `onCta` | Simple static hero |
|
|
182
|
+
| `CarouselHero` | `slides`, `autoplay`, `intervalMs` | Auto-rotating hero slides |
|
|
183
|
+
| `CTAOverlayHero` | `title`, `bgImage`, `overlay`, `form` | Hero with CTA overlay |
|
|
184
|
+
| `PatternedHero` | `title`, `pattern`, `stats`, `badge` | Hero with decorative pattern |
|
|
185
|
+
| `SplitHero` | `title`, `image`, `features`, `reverse` | Side-by-side hero |
|
|
186
|
+
| `VideoHeaderHero` | `videoSrc`, `poster`, `title` | Full-width video hero |
|
|
187
|
+
|
|
188
|
+
```tsx
|
|
189
|
+
<StaticHero
|
|
190
|
+
title="Build Incredible Products"
|
|
191
|
+
subtitle="Ship faster with pre-built components."
|
|
192
|
+
ctaLabel="Get Started Free"
|
|
193
|
+
onCta={() => router.push("/signup")}
|
|
194
|
+
titleSize={48}
|
|
195
|
+
align="center"
|
|
196
|
+
/>
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Buttons (10)
|
|
200
|
+
|
|
201
|
+
| Component | Key Props | Description |
|
|
202
|
+
|-----------|----------|-------------|
|
|
203
|
+
| `PrimaryButton` | `label`, `onClick`, `icon`, `isLoading` | Filled primary button |
|
|
204
|
+
| `SecondaryButton` | `label`, `onClick` | Outlined secondary button |
|
|
205
|
+
| `TertiaryButton` | `label`, `onClick` | Ghost/text button |
|
|
206
|
+
| `IconButton` | `icon`, `onClick`, `size` | Icon-only button |
|
|
207
|
+
| `FloatingActionButton` | `icon`, `onClick`, `position`, `fixed` | FAB button |
|
|
208
|
+
| `ButtonGroup` | `buttons`, `toggle`, `onChange` | Grouped/toggle buttons |
|
|
209
|
+
| `LoadingButton` | `label`, `onClick`, `isLoading` | Button with spinner |
|
|
210
|
+
| `ShareButton` | `url`, `label` | Native share / clipboard |
|
|
211
|
+
| `DownloadButton` | `fileUrl`, `label` | File download button |
|
|
212
|
+
| `PrintButton` | `label` | Print page button |
|
|
213
|
+
|
|
214
|
+
```tsx
|
|
215
|
+
<PrimaryButton
|
|
216
|
+
label="Add to Cart"
|
|
217
|
+
icon="shopping-cart"
|
|
218
|
+
onClick={handleAddToCart}
|
|
219
|
+
bgColor="#7C3AED"
|
|
220
|
+
radius={12}
|
|
221
|
+
/>
|
|
222
|
+
|
|
223
|
+
<ButtonGroup
|
|
224
|
+
buttons={[
|
|
225
|
+
{ label: "Monthly", value: "monthly" },
|
|
226
|
+
{ label: "Yearly", value: "yearly" },
|
|
227
|
+
]}
|
|
228
|
+
toggle
|
|
229
|
+
onChange={(v) => setBilling(v)}
|
|
230
|
+
/>
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Forms (14)
|
|
234
|
+
|
|
235
|
+
| Component | Key Props | Description |
|
|
236
|
+
|-----------|----------|-------------|
|
|
237
|
+
| `FormShell` | `maxW`, `px`, `py`, `children` | Form layout wrapper |
|
|
238
|
+
| `InputField` | `label`, `name`, `type`, `value`, `onChange`, `error` | Text/email/password input |
|
|
239
|
+
| `TextAreaField` | `label`, `value`, `onChange`, `showPreview` | Multi-line text area with markdown preview |
|
|
240
|
+
| `SelectDropdown` | `options`, `value`, `onChange`, `label` | Dropdown select |
|
|
241
|
+
| `RadioGroup` | `options`, `value`, `onChange`, `label` | Radio button group |
|
|
242
|
+
| `ToggleSwitch` | `label`, `checked`, `onChange` | On/off toggle |
|
|
243
|
+
| `DateTimePicker` | `label`, `mode`, `value`, `onChange` | Date/time/datetime picker |
|
|
244
|
+
| `FileUploader` | `onFiles`, `accept`, `maxSize` | Drag-and-drop file upload |
|
|
245
|
+
| `ContactForm` | `title`, `onSubmit` | Pre-built contact form |
|
|
246
|
+
| `NewsletterSignup` | `title`, `subtitle`, `onSubmit` | Email signup form |
|
|
247
|
+
| `MultiStepWizard` | `steps`, `onFinish` | Multi-step form wizard |
|
|
248
|
+
| `Captcha` | `mode`, `onVerify` | Text/math captcha |
|
|
249
|
+
| `AddressAutocomplete` | `suggestions`, `onQuery`, `onSelect` | Address autocomplete |
|
|
250
|
+
| `ValidationWrapper` | `errors`, `children`, `success` | Error/success message wrapper |
|
|
251
|
+
|
|
252
|
+
```tsx
|
|
253
|
+
<InputField
|
|
254
|
+
label="Email"
|
|
255
|
+
name="email"
|
|
256
|
+
type="email"
|
|
257
|
+
value={email}
|
|
258
|
+
onChange={(e) => setEmail(e.target.value)}
|
|
259
|
+
error={errors.email}
|
|
260
|
+
icon="mail"
|
|
261
|
+
/>
|
|
262
|
+
|
|
263
|
+
<MultiStepWizard
|
|
264
|
+
steps={[
|
|
265
|
+
{ label: "Personal", content: <PersonalStep /> },
|
|
266
|
+
{ label: "Payment", content: <PaymentStep /> },
|
|
267
|
+
{ label: "Confirm", content: <ConfirmStep /> },
|
|
268
|
+
]}
|
|
269
|
+
onFinish={handleSubmit}
|
|
270
|
+
/>
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Content (6)
|
|
274
|
+
|
|
275
|
+
| Component | Key Props | Description |
|
|
276
|
+
|-----------|----------|-------------|
|
|
277
|
+
| `BlockquoteTestimonial` | `quote`, `author`, `role`, `avatarUrl` | Styled blockquote |
|
|
278
|
+
| `CalloutBox` | `variant`, `title`, `message`, `dismissible` | Alert/callout box (info/warning/error/success) |
|
|
279
|
+
| `HeadingSection` | `eyebrow`, `title`, `subtitle`, `align` | Section heading block |
|
|
280
|
+
| `InlineCodeText` | `text`, `copyable` | Inline code with syntax highlighting |
|
|
281
|
+
| `ParagraphBlock` | `paragraphs`, `showDropCap` | Formatted paragraph(s) |
|
|
282
|
+
| `RichMarkdown` | `markdown`, `baseSize` | Mini markdown renderer |
|
|
283
|
+
|
|
284
|
+
### Data Display (11)
|
|
285
|
+
|
|
286
|
+
| Component | Key Props | Description |
|
|
287
|
+
|-----------|----------|-------------|
|
|
288
|
+
| `Badge` | `children`, `tone`, `pill` | Status/label badge |
|
|
289
|
+
| `BadgeGroup` | `items`, `tone`, `title` | Grouped badges |
|
|
290
|
+
| `BarChart` | `data`, `labels`, `title`, `showGrid` | SVG bar chart |
|
|
291
|
+
| `LineChart` | `data`, `labels`, `title`, `showGrid` | SVG line chart |
|
|
292
|
+
| `PieChart` | `data`, `labels`, `title` | SVG pie chart |
|
|
293
|
+
| `Sparkline` | `data`, `width`, `height` | Compact trend line |
|
|
294
|
+
| `ProgressBar` | `value`, `showLabel`, `showTrend` | Progress indicator |
|
|
295
|
+
| `RatingStars` | `value`, `outOf`, `interactive`, `onChange` | Star rating |
|
|
296
|
+
| `DataTable` | `columns`, `rows`, `pageSize`, `searchable` | Sortable/paginated table |
|
|
297
|
+
| `CalendarGrid` | `year`, `month`, `marks`, `onDateClick` | Month calendar grid |
|
|
298
|
+
| `Timeline` | `items` | Vertical timeline |
|
|
299
|
+
|
|
300
|
+
```tsx
|
|
301
|
+
<BarChart
|
|
302
|
+
data={[120, 280, 150, 350, 210]}
|
|
303
|
+
labels={["Mon", "Tue", "Wed", "Thu", "Fri"]}
|
|
304
|
+
title="Weekly Sales"
|
|
305
|
+
showGrid
|
|
306
|
+
/>
|
|
307
|
+
|
|
308
|
+
<DataTable
|
|
309
|
+
columns={[
|
|
310
|
+
{ key: "name", label: "Name" },
|
|
311
|
+
{ key: "email", label: "Email" },
|
|
312
|
+
{ key: "role", label: "Role" },
|
|
313
|
+
]}
|
|
314
|
+
rows={users}
|
|
315
|
+
pageSize={10}
|
|
316
|
+
searchable
|
|
317
|
+
/>
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Ecommerce (10)
|
|
321
|
+
|
|
322
|
+
| Component | Key Props | Description |
|
|
323
|
+
|-----------|----------|-------------|
|
|
324
|
+
| `ProductCard` | `product`, `currency`, `onAddToCart` | Product display card |
|
|
325
|
+
| `ProductGrid` | `products`, `columns`, `onAddToCart` | Product card grid |
|
|
326
|
+
| `ProductDetail` | `product`, `images`, `variants`, `onAddToCart` | Full product page |
|
|
327
|
+
| `VariantSelector` | `groups`, `selected`, `onChange` | Size/color variant picker |
|
|
328
|
+
| `CartDrawer` | `items`, `onQtyChange`, `onRemove`, `onCheckout` | Slide-out cart drawer |
|
|
329
|
+
| `MiniCartPanel` | `items`, `currency`, `onCheckout` | Compact cart summary |
|
|
330
|
+
| `OrderSummary` | `orderId`, `lines`, `total`, `currency` | Order receipt/summary |
|
|
331
|
+
| `QuickAddButton` | `productId`, `label`, `onAdd` | Quick add-to-cart button |
|
|
332
|
+
| `WishlistButton` | `productId`, `wishlisted`, `onToggle` | Heart wishlist toggle |
|
|
333
|
+
| `PaymentButtons` | `methods`, `onPay` | Payment method buttons |
|
|
334
|
+
|
|
335
|
+
```tsx
|
|
336
|
+
<ProductCard
|
|
337
|
+
product={{ id: "1", name: "T-Shirt", price: 29.99, image: "/tshirt.jpg" }}
|
|
338
|
+
currency="USD"
|
|
339
|
+
onAddToCart={(p) => addToCart(p)}
|
|
340
|
+
/>
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Lists & Cards (8)
|
|
344
|
+
|
|
345
|
+
| Component | Key Props | Description |
|
|
346
|
+
|-----------|----------|-------------|
|
|
347
|
+
| `BlockShell` | `maxW`, `children` | Section wrapper |
|
|
348
|
+
| `Accordion` | `items`, `allowMultiple` | Expandable accordion |
|
|
349
|
+
| `GenericList` | `items`, `title` | Simple labeled list |
|
|
350
|
+
| `FeatureGrid` | `items`, `columns`, `title` | Feature card grid |
|
|
351
|
+
| `ItemCardGrid` | `items`, `columns`, `onItemClick` | Clickable card grid |
|
|
352
|
+
| `PricingTable` | `plans`, `onSelect` | Pricing tier comparison |
|
|
353
|
+
| `SortableTable` | `columns`, `rows`, `caption` | Sortable data table |
|
|
354
|
+
| `LCTimeline` | `items` | Lists & Cards timeline |
|
|
355
|
+
|
|
356
|
+
### Marketing (8)
|
|
357
|
+
|
|
358
|
+
| Component | Key Props | Description |
|
|
359
|
+
|-----------|----------|-------------|
|
|
360
|
+
| `ComparisonTable` | `plans`, `features`, `onSelect` | Feature comparison table |
|
|
361
|
+
| `CountdownTimer` | `targetDate`, `label`, `onExpire` | Countdown to date |
|
|
362
|
+
| `FeatureHighlights` | `items`, `columns`, `title` | Feature showcase grid |
|
|
363
|
+
| `LeadMagnetGate` | `title`, `description`, `onSubmit`, `children` | Gated content form |
|
|
364
|
+
| `MarketingHeroBlock` | `headline`, `subheadline`, `ctaLabel` | Marketing hero section |
|
|
365
|
+
| `PromoPopup` | `title`, `message`, `ctaLabel`, `isOpen` | Promotional popup |
|
|
366
|
+
| `TestimonialsCarousel` | `testimonials`, `autoPlay` | Rotating testimonials |
|
|
367
|
+
| `TrustBadges` | `badges`, `title` | Trust/certification badges |
|
|
368
|
+
|
|
369
|
+
### Media (11)
|
|
370
|
+
|
|
371
|
+
| Component | Key Props | Description |
|
|
372
|
+
|-----------|----------|-------------|
|
|
373
|
+
| `MediaShell` | `maxW`, `children` | Media section wrapper |
|
|
374
|
+
| `ResponsiveVideo` | `src`, `poster`, `aspectRatio` | Responsive video player |
|
|
375
|
+
| `AudioEmbed` | `src`, `title`, `showWaveform` | Audio player |
|
|
376
|
+
| `AvatarProfile` | `src`, `name`, `size`, `badge` | User avatar |
|
|
377
|
+
| `IconGrid` | `icons`, `columns` | Icon showcase grid |
|
|
378
|
+
| `ImageGallery` | `items`, `columns`, `onSelect` | Image gallery |
|
|
379
|
+
| `LightboxGallery` | `items`, `columns` | Gallery with lightbox |
|
|
380
|
+
| `MasonryGrid` | `items`, `columns` | Masonry layout |
|
|
381
|
+
| `PolaroidImage` | `src`, `caption`, `rotation` | Polaroid-style image |
|
|
382
|
+
| `LottieOrSVG` | `type`, `src`, `width`, `height` | Lottie/SVG renderer |
|
|
383
|
+
| `ImageCropperUploader` | `onUpload`, `accept`, `maxSizeMB` | Image upload with preview |
|
|
384
|
+
|
|
385
|
+
### Miscellaneous (8)
|
|
386
|
+
|
|
387
|
+
| Component | Key Props | Description |
|
|
388
|
+
|-----------|----------|-------------|
|
|
389
|
+
| `CookieConsent` | `message`, `onAccept`, `onDecline`, `position` | Cookie consent bar |
|
|
390
|
+
| `ScrollProgressBar` | `color`, `height` | Scroll progress indicator |
|
|
391
|
+
| `ThemeToggle` | `isDark`, `onToggle` | Dark/light mode toggle |
|
|
392
|
+
| `EmptyState` | `icon`, `title`, `description`, `ctaLabel` | Empty state placeholder |
|
|
393
|
+
| `AppInstallBanner` | `title`, `iosUrl`, `androidUrl` | App install CTA |
|
|
394
|
+
| `DownloadBlock` | `fileName`, `fileSize`, `href` | File download block |
|
|
395
|
+
| `InlineCode` | `children`, `copyable` | Inline code snippet |
|
|
396
|
+
| `RSSFeed` | `items`, `title` | RSS feed display |
|
|
397
|
+
|
|
398
|
+
### Modals (9)
|
|
399
|
+
|
|
400
|
+
| Component | Key Props | Description |
|
|
401
|
+
|-----------|----------|-------------|
|
|
402
|
+
| `OverlayBase` | `isOpen`, `onClose`, `children`, `position` | Base overlay wrapper |
|
|
403
|
+
| `GenericModal` | `isOpen`, `title`, `onClose`, `children` | Generic modal dialog |
|
|
404
|
+
| `ConfirmDialog` | `isOpen`, `title`, `message`, `onConfirm` | Confirmation dialog |
|
|
405
|
+
| `FormDialog` | `isOpen`, `title`, `onSubmit`, `children` | Modal with form |
|
|
406
|
+
| `LoadingOverlay` | `isOpen`, `message` | Full-screen loading |
|
|
407
|
+
| `Tooltip` | `text`, `position`, `children` | Hover tooltip |
|
|
408
|
+
| `ToastBanners` | `toasts`, `onDismiss`, `position` | Toast notifications |
|
|
409
|
+
| `CookieNotice` | `isOpen`, `onAccept`, `onDecline` | Cookie consent modal |
|
|
410
|
+
| `WelcomePopup` | `isOpen`, `title`, `message`, `onCta` | Welcome popup |
|
|
411
|
+
|
|
412
|
+
### Onboarding (6)
|
|
413
|
+
|
|
414
|
+
| Component | Key Props | Description |
|
|
415
|
+
|-----------|----------|-------------|
|
|
416
|
+
| `FAQAccordion` | `items`, `title`, `allowMultiple` | FAQ expandable list |
|
|
417
|
+
| `OnboardingWizard` | `steps`, `onComplete` | Step-by-step onboarding |
|
|
418
|
+
| `ProductTour` | `steps`, `isOpen`, `onComplete` | Guided product tour |
|
|
419
|
+
| `TooltipHelp` | `text`, `position` | Help tooltip with icon |
|
|
420
|
+
| `SupportChat` | `messages`, `onSend`, `title` | Chat-like support widget |
|
|
421
|
+
| `ContactSupportBlock` | `email`, `phone`, `title` | Support contact block |
|
|
422
|
+
|
|
423
|
+
### Search (6)
|
|
424
|
+
|
|
425
|
+
| Component | Key Props | Description |
|
|
426
|
+
|-----------|----------|-------------|
|
|
427
|
+
| `SiteSearchBar` | `placeholder`, `onSearch`, `autoFocus` | Search input bar |
|
|
428
|
+
| `AutoSuggest` | `suggestions`, `onSelect`, `onQueryChange` | Autocomplete search |
|
|
429
|
+
| `FacetFilters` | `facets`, `selected`, `onChange` | Faceted filter sidebar |
|
|
430
|
+
| `SearchResultCard` | `item`, `onClick` | Individual search result |
|
|
431
|
+
| `SearchResults` | `items`, `query`, `loading` | Search results list |
|
|
432
|
+
| `SearchEmptyState` | `query`, `title` | No results placeholder |
|
|
433
|
+
|
|
434
|
+
### Site Identity (6)
|
|
435
|
+
|
|
436
|
+
| Component | Key Props | Description |
|
|
437
|
+
|-----------|----------|-------------|
|
|
438
|
+
| `LogoDisplay` | `src`, `alt`, `width`, `href` | Logo image display |
|
|
439
|
+
| `AnimatedBrandMark` | `text`, `fontSize`, `accentColor` | Animated brand text |
|
|
440
|
+
| `Taglines` | `lines`, `rotate`, `interval` | Rotating taglines |
|
|
441
|
+
| `BrandingShell` | `logoSrc`, `brandName`, `tagline` | Brand identity wrapper |
|
|
442
|
+
| `BrandIconGrid` | `icons`, `columns` | Brand icon showcase |
|
|
443
|
+
| `FaviconUploader` | `onUpload`, `currentSrc` | Favicon upload with preview |
|
|
444
|
+
|
|
445
|
+
### Social (7)
|
|
446
|
+
|
|
447
|
+
| Component | Key Props | Description |
|
|
448
|
+
|-----------|----------|-------------|
|
|
449
|
+
| `SocialShareBar` | `url`, `title`, `networks` | Social sharing buttons |
|
|
450
|
+
| `SocialLoginButtons` | `providers`, `onLogin` | OAuth login buttons |
|
|
451
|
+
| `SocialEmbed` | `type`, `url`, `width` | Social media embed |
|
|
452
|
+
| `FollowLike` | `isFollowed`, `followerCount`, `onFollow` | Follow/like toggle |
|
|
453
|
+
| `ReactionsBar` | `reactions`, `onReact` | Emoji reactions bar |
|
|
454
|
+
| `CommentsBox` | `comments`, `onSubmit` | Comment section |
|
|
455
|
+
| `ReviewsForm` | `onSubmit` | Rating + review form |
|
|
456
|
+
|
|
457
|
+
### User Accounts (7)
|
|
458
|
+
|
|
459
|
+
| Component | Key Props | Description |
|
|
460
|
+
|-----------|----------|-------------|
|
|
461
|
+
| `AuthForm` | `mode`, `onSubmit`, `loading`, `error` | Login/signup form |
|
|
462
|
+
| `PasswordReset` | `onSubmit`, `loading`, `success` | Password reset form |
|
|
463
|
+
| `MultiFactorAuthInput` | `length`, `onComplete`, `error` | MFA code input |
|
|
464
|
+
| `ProfileOverview` | `name`, `email`, `avatar`, `stats` | Profile display card |
|
|
465
|
+
| `ProfileSettings` | `name`, `email`, `onSave` | Profile edit form |
|
|
466
|
+
| `AccountSettings` | `sections`, `title` | Account settings sections |
|
|
467
|
+
| `RoleBadge` | `role`, `variant`, `color` | User role badge |
|
|
468
|
+
|
|
469
|
+
### Blog (9)
|
|
470
|
+
|
|
471
|
+
| Component | Key Props | Description |
|
|
472
|
+
|-----------|----------|-------------|
|
|
473
|
+
| `BlogCard` | `post`, `onClick`, `variant` | Blog post card (vertical/horizontal/minimal) |
|
|
474
|
+
| `AuthorByline` | `name`, `avatar`, `bio`, `date` | Author info block |
|
|
475
|
+
| `TagList` | `tags`, `onTagClick`, `activeTag` | Tag/category list |
|
|
476
|
+
| `BlogBadge` | `label`, `color` | Blog category badge |
|
|
477
|
+
| `ReadingBar` | `color`, `height`, `containerRef` | Reading progress bar |
|
|
478
|
+
| `ArticleRenderer` | `html`, `maxW` | HTML article renderer |
|
|
479
|
+
| `RelatedPosts` | `posts`, `title`, `onPostClick` | Related posts grid |
|
|
480
|
+
| `ArchiveList` | `groups`, `onPostClick` | Grouped archive list |
|
|
481
|
+
| `CommentsSection` | `comments`, `onSubmit` | Threaded comments |
|
|
482
|
+
|
|
483
|
+
---
|
|
484
|
+
|
|
485
|
+
## Icon System
|
|
486
|
+
|
|
487
|
+
The package includes **113+ inline SVG icons** — zero external dependencies. Use the `Icon` component:
|
|
488
|
+
|
|
489
|
+
```tsx
|
|
490
|
+
import { Icon, ICON_NAMES } from "@electroplix/components";
|
|
491
|
+
|
|
492
|
+
<Icon name="search" size={24} color="#8B5CF6" />
|
|
493
|
+
<Icon name="shopping-cart" size={20} />
|
|
494
|
+
<Icon name="heart" />
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
All available icon names: `activity`, `alert-circle`, `alert-triangle`, `align-left`, `arrow-left`, `arrow-right`, `arrow-up-right`, `award`, `bar-chart`, `bar-chart-3`, `bell`, `bot`, `building-2`, `calendar`, `camera`, `check`, `check-circle`, `check-circle-2`, `chevron-down`, `chevron-left`, `chevron-right`, `chevrons-left`, `chevrons-right`, `chevron-up`, `circle`, `circle-dot`, `clipboard`, `clock`, `code`, `command`, `cookie`, `copy`, `corner-down-left`, `credit-card`, `download`, `edit-2`, `external-link`, `eye`, `eye-off`, `file`, `file-code`, `file-down`, `file-text`, `filter`, `gift`, `github`, `globe`, `grid-3x3`, `headphones`, `heart`, `help-circle`, `home`, `image`, `inbox`, `info`, `layout-grid`, `link-2`, `list`, `list-checks`, `loader-2`, `lock`, `mail`, `map-pin`, `menu`, `message-circle`, `message-square`, `minus`, `moon`, `more-horizontal`, `more-vertical`, `music`, `package`, `palette`, `paperclip`, `phone`, `pie-chart`, `play`, `plus`, `printer`, `quote`, `receipt`, `refresh-cw`, `rocket`, `rss`, `scale`, `search`, `search-code`, `search-x`, `send`, `settings`, `share-2`, `shield`, `shield-check`, `shopping-bag`, `shopping-cart`, `smartphone`, `sparkles`, `star`, `sun`, `table`, `tag`, `toggle-left`, `toggle-right`, `trash`, `trash-2`, `trending-down`, `trending-up`, `truck`, `type`, `upload`, `user`, `user-plus`, `verified`, `volume-2`, `wallet`, `x`, `x-circle`, `zap`, `zoom-in`
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
## CLI
|
|
502
|
+
|
|
503
|
+
The package includes a CLI for scaffolding:
|
|
504
|
+
|
|
505
|
+
```bash
|
|
506
|
+
# Initialize config file
|
|
507
|
+
npx electroplix-components init
|
|
508
|
+
|
|
509
|
+
# Add a component category to your project
|
|
510
|
+
npx electroplix-components add navigation
|
|
511
|
+
|
|
512
|
+
# List all available components
|
|
513
|
+
npx electroplix-components list
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
## Utilities
|
|
519
|
+
|
|
520
|
+
Exported utility functions and hooks:
|
|
521
|
+
|
|
522
|
+
| Export | Type | Description |
|
|
523
|
+
|--------|------|-------------|
|
|
524
|
+
| `sx(...styles)` | Function | Merge style objects |
|
|
525
|
+
| `cn(...classes)` | Function | Merge class names |
|
|
526
|
+
| `money(amount, currency)` | Function | Format currency |
|
|
527
|
+
| `truncate(text, length)` | Function | Truncate text with ellipsis |
|
|
528
|
+
| `timeAgo(date)` | Function | Relative time string |
|
|
529
|
+
| `useFocusTrap(ref)` | Hook | Trap keyboard focus inside element |
|
|
530
|
+
| `useClickOutside(ref, cb)` | Hook | Detect clicks outside element |
|
|
531
|
+
| `useMediaQuery(query)` | Hook | Responsive media query |
|
|
532
|
+
| `useDebounce(value, ms)` | Hook | Debounce a value |
|
|
533
|
+
| `validate(value, rules)` | Function | Run validation rules |
|
|
534
|
+
| `emailRule`, `requiredRule` | Rule | Pre-built validation rules |
|
|
535
|
+
| `minLengthRule(n)`, `maxLengthRule(n)` | Rule factory | Length validators |
|
|
536
|
+
| `baseButtonStyle(opts)` | Function | Base button CSS |
|
|
537
|
+
| `inputStyle(opts)` | Function | Base input CSS |
|
|
538
|
+
| `labelStyle(opts)` | Function | Base label CSS |
|
|
539
|
+
|
|
540
|
+
---
|
|
541
|
+
|
|
542
|
+
## API Reference
|
|
543
|
+
|
|
544
|
+
### `ElectroplixProvider`
|
|
545
|
+
|
|
546
|
+
```tsx
|
|
547
|
+
<ElectroplixProvider config={myConfig}>
|
|
548
|
+
{children}
|
|
549
|
+
</ElectroplixProvider>
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
- **`config`** — `Partial<ElectroplixConfig> | undefined` — optional theme overrides for any/all categories. Falls back to `defaultConfig` for unset values.
|
|
553
|
+
|
|
554
|
+
### Category hooks
|
|
555
|
+
|
|
556
|
+
Each component internally calls its category hook. You can also use them directly:
|
|
557
|
+
|
|
558
|
+
```tsx
|
|
559
|
+
import { useButtonTheme, useNavTheme } from "@electroplix/components";
|
|
560
|
+
|
|
561
|
+
function MyCustomButton() {
|
|
562
|
+
const t = useButtonTheme();
|
|
563
|
+
return <button style={{ background: t.bgColor, color: t.textColor }}>Custom</button>;
|
|
564
|
+
}
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
### `defineConfig(config)`
|
|
568
|
+
|
|
569
|
+
Type-safe config authoring helper. Returns the config as-is.
|
|
570
|
+
|
|
571
|
+
### `mergeTheme(target, ...sources)`
|
|
572
|
+
|
|
573
|
+
Shallow-merge theme objects. `undefined` values in sources are skipped.
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Testing
|
|
578
|
+
|
|
579
|
+
```bash
|
|
580
|
+
pnpm nx test @electroplix/components
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
19 test suites, 163 tests covering all 18 categories.
|
|
584
|
+
|
|
585
|
+
---
|
|
586
|
+
|
|
587
|
+
## License
|
|
588
|
+
|
|
589
|
+
MIT
|