@marwes-ui/vue 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 +523 -268
- package/dist/index.js +3310 -1722
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,7 +13,8 @@ Vue 3 components for the Marwes design system with default styling, typed theme
|
|
|
13
13
|
|
|
14
14
|
Vue 3.4+ • 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
|
+
[Vue Storybook](https://storybook-vue.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/vue` (with `vue` as a peer), 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 Vue app
|
|
53
|
+
|
|
54
|
+
Run at the root of your project:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm dlx @marwes-ui/cli init --adapter vue
|
|
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 vue-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 vue --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
|
|
|
@@ -63,8 +90,8 @@ const subscribed = ref(false)
|
|
|
63
90
|
|
|
64
91
|
<template>
|
|
65
92
|
<MarwesProvider>
|
|
66
|
-
<Input v-model="email" placeholder="Email"
|
|
67
|
-
<Checkbox v-model="subscribed"
|
|
93
|
+
<Input v-model="email" placeholder="Email" label="Email" />
|
|
94
|
+
<Checkbox v-model="subscribed" label="Subscribe" />
|
|
68
95
|
<Button :variant="ButtonVariant.secondary">Preview</Button>
|
|
69
96
|
<SubmitButton>Save</SubmitButton>
|
|
70
97
|
</MarwesProvider>
|
|
@@ -191,7 +218,7 @@ Provider and hooks:
|
|
|
191
218
|
- `useToast`
|
|
192
219
|
|
|
193
220
|
Actions and buttons:
|
|
194
|
-
- `Button`
|
|
221
|
+
- `Button`, `IconButton`
|
|
195
222
|
- `PrimaryButton`, `SecondaryButton`, `TextButton`, `SuccessButton`
|
|
196
223
|
- `SubmitButton`, `CancelButton`, `CreateButton`, `DestructiveButton`
|
|
197
224
|
- `LinkButton`, `SaveButton`, `ConfirmButton`, `VerifyButton`
|
|
@@ -208,21 +235,26 @@ Forms and inputs:
|
|
|
208
235
|
- `Radio`, `RadioGroupField`, `YesNoRadioGroup`, `RatingRadioGroup`, `OptionRadioGroup`
|
|
209
236
|
- `Switch`, `SwitchField`, `FeatureToggle`, `PreferenceSwitch`, `PermissionSwitch`
|
|
210
237
|
- `Slider`, `SliderField`, `VolumeSlider`, `BrightnessSlider`, `RadiusSlider`
|
|
238
|
+
- `SegmentedControlField`, `PaginationField`
|
|
211
239
|
|
|
212
240
|
Content and layout:
|
|
213
241
|
- `Card`, `ProductCard`, `ProfileCard`, `StatCard`
|
|
214
|
-
- `H1`, `H2`, `H3`, `Paragraph`
|
|
242
|
+
- `H1`, `H2`, `H3`, `Paragraph`, `Text`, `TypographyText`
|
|
215
243
|
- `Spacer`, `Spacing`, `Divider`
|
|
244
|
+
- `Breadcrumb`
|
|
216
245
|
- `Icon`
|
|
217
246
|
- `Avatar`, `AvatarBadge`, `AvatarGroup`, `ProfileAvatar`, `PresenceAvatar`, `TeamAvatarGroup`
|
|
247
|
+
- `StatTile`, `Skeleton`
|
|
218
248
|
|
|
219
249
|
Feedback and overlays:
|
|
220
250
|
- `Badge`, `BadgeGroup`, `StatusBadge`, `PriorityBadge`, `NotificationBadge`
|
|
251
|
+
- `Banner`, `InfoBanner`, `SuccessBanner`, `WarningBanner`, `ErrorBanner`
|
|
252
|
+
- `ProgressBar`
|
|
221
253
|
- `Spinner`, `ButtonSpinner`, `EmptyStateSpinner`
|
|
222
254
|
- `Toast`, `ToastContainer`, `ToastProvider`
|
|
223
255
|
- `SuccessToast`, `ErrorToast`, `WarningToast`, `InfoToast`
|
|
224
|
-
- `Tooltip`, `TooltipGroup`
|
|
225
|
-
- `Dialog`, `DialogModal`, `ConfirmDialog`, `DestructiveDialog`, `InfoDialog`
|
|
256
|
+
- `Tooltip`, `TooltipGroup`, `ContextMenu`
|
|
257
|
+
- `Dialog`, `DialogModal`, `Drawer`, `ConfirmDialog`, `DestructiveDialog`, `InfoDialog`
|
|
226
258
|
- `Accordion`, `AccordionField`, `FAQAccordion`, `SettingsAccordion`, `SectionsAccordion`
|
|
227
259
|
- `Tab`, `TabGroup`, `TabPanel`, `NavigationTabs`, `ContentTabs`, `SettingsTabs`
|
|
228
260
|
|