@marwes-ui/react 1.3.0 → 1.4.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 +41 -9
- package/dist/index.d.ts +533 -371
- package/dist/index.js +2330 -1203
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,7 +13,8 @@ React components for the Marwes design system with default styling, typed theme
|
|
|
13
13
|
|
|
14
14
|
React 18+ • TypeScript-first • Default CSS included • ThemeInput • Google Fonts DX • Purpose components
|
|
15
15
|
|
|
16
|
-
[
|
|
16
|
+
[**marwes.io**](https://marwes.io) — official site, theme builder, and install guides
|
|
17
|
+
[React Storybook](https://storybook-react.marwes.io/latest/) • [Documentation](https://github.com/niklas-westman/marwes/tree/main/docs) • [GitHub](https://github.com/niklas-westman/marwes)
|
|
17
18
|
|
|
18
19
|
</div>
|
|
19
20
|
|
|
@@ -44,11 +45,37 @@ This split keeps installation simple for app teams while giving humans and AI ag
|
|
|
44
45
|
|
|
45
46
|
## Install
|
|
46
47
|
|
|
48
|
+
The Marwes CLI is the official installation path. It installs `@marwes-ui/react` (with `react` and `react-dom` as peers), wraps your app root with `MarwesProvider`, and leaves you ready to render components with default Marwes styling — no separate CSS setup.
|
|
49
|
+
|
|
50
|
+
For full setup guides, theme customization, and the theme builder, visit [marwes.io](https://marwes.io).
|
|
51
|
+
|
|
52
|
+
### Existing React app
|
|
53
|
+
|
|
54
|
+
Run at the root of your project:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm dlx @marwes-ui/cli init --adapter react
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Also works with `npx @marwes-ui/cli`, `yarn dlx @marwes-ui/cli`, and `bunx @marwes-ui/cli`.
|
|
61
|
+
|
|
62
|
+
### New Vite app
|
|
63
|
+
|
|
64
|
+
Scaffold a fresh Vite starter with Marwes preinstalled:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pnpm create marwes@latest my-app --template react-ts
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### AI-assisted setup
|
|
71
|
+
|
|
72
|
+
Add `--agentic` to hand setup to an AI coding agent (Claude Code, Cursor, etc.). The CLI runs the normal install, then runs `doctor` and prints the guardrails the agent should follow:
|
|
73
|
+
|
|
47
74
|
```bash
|
|
48
|
-
pnpm
|
|
75
|
+
pnpm dlx @marwes-ui/cli init --adapter react --agentic
|
|
49
76
|
```
|
|
50
77
|
|
|
51
|
-
|
|
78
|
+
After install, jump to the [Quick Start](#quick-start) below.
|
|
52
79
|
|
|
53
80
|
## Quick Start
|
|
54
81
|
|
|
@@ -65,8 +92,8 @@ import {
|
|
|
65
92
|
export function App() {
|
|
66
93
|
return (
|
|
67
94
|
<MarwesProvider>
|
|
68
|
-
<Input placeholder="Email"
|
|
69
|
-
<Checkbox
|
|
95
|
+
<Input placeholder="Email" label="Email" />
|
|
96
|
+
<Checkbox label="Subscribe" />
|
|
70
97
|
<Button variant={ButtonVariant.secondary}>Preview</Button>
|
|
71
98
|
<SubmitButton>Save</SubmitButton>
|
|
72
99
|
</MarwesProvider>
|
|
@@ -199,7 +226,7 @@ Provider and hooks:
|
|
|
199
226
|
- `useToast`
|
|
200
227
|
|
|
201
228
|
Actions and buttons:
|
|
202
|
-
- `Button`
|
|
229
|
+
- `Button`, `IconButton`
|
|
203
230
|
- `PrimaryButton`, `SecondaryButton`, `TextButton`, `SuccessButton`
|
|
204
231
|
- `SubmitButton`, `CancelButton`, `CreateButton`, `DestructiveButton`
|
|
205
232
|
- `LinkButton`, `SaveButton`, `ConfirmButton`, `VerifyButton`
|
|
@@ -216,21 +243,26 @@ Forms and inputs:
|
|
|
216
243
|
- `Radio`, `RadioGroupField`, `YesNoRadioGroup`, `RatingRadioGroup`, `OptionRadioGroup`
|
|
217
244
|
- `Switch`, `SwitchField`, `FeatureToggle`, `PreferenceSwitch`, `PermissionSwitch`
|
|
218
245
|
- `Slider`, `SliderField`, `VolumeSlider`, `BrightnessSlider`, `RadiusSlider`
|
|
246
|
+
- `SegmentedControlField`, `PaginationField`
|
|
219
247
|
|
|
220
248
|
Content and layout:
|
|
221
249
|
- `Card`, `ProductCard`, `ProfileCard`, `StatCard`
|
|
222
|
-
- `H1`, `H2`, `H3`, `Paragraph`
|
|
250
|
+
- `H1`, `H2`, `H3`, `Paragraph`, `Text`, `TypographyText`
|
|
223
251
|
- `Spacer`, `Spacing`, `Divider`
|
|
252
|
+
- `Breadcrumb`
|
|
224
253
|
- `Icon`
|
|
225
254
|
- `Avatar`, `AvatarBadge`, `AvatarGroup`, `ProfileAvatar`, `PresenceAvatar`, `TeamAvatarGroup`
|
|
255
|
+
- `StatTile`, `Skeleton`
|
|
226
256
|
|
|
227
257
|
Feedback and overlays:
|
|
228
258
|
- `Badge`, `BadgeGroup`, `StatusBadge`, `PriorityBadge`, `NotificationBadge`
|
|
259
|
+
- `Banner`, `InfoBanner`, `SuccessBanner`, `WarningBanner`, `ErrorBanner`
|
|
260
|
+
- `ProgressBar`
|
|
229
261
|
- `Spinner`, `ButtonSpinner`, `EmptyStateSpinner`
|
|
230
262
|
- `Toast`, `ToastContainer`, `ToastProvider`
|
|
231
263
|
- `SuccessToast`, `ErrorToast`, `WarningToast`, `InfoToast`
|
|
232
|
-
- `Tooltip`, `TooltipGroup`
|
|
233
|
-
- `Dialog`, `DialogModal`, `ConfirmDialog`, `DestructiveDialog`, `InfoDialog`
|
|
264
|
+
- `Tooltip`, `TooltipGroup`, `ContextMenu`
|
|
265
|
+
- `Dialog`, `DialogModal`, `Drawer`, `ConfirmDialog`, `DestructiveDialog`, `InfoDialog`
|
|
234
266
|
- `Accordion`, `AccordionField`, `FAQAccordion`, `SettingsAccordion`, `SectionsAccordion`
|
|
235
267
|
- `Tab`, `TabGroup`, `TabPanel`, `NavigationTabs`, `ContentTabs`, `SettingsTabs`
|
|
236
268
|
|