@codemonster-ru/vueforge 0.71.0 → 0.72.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 +57 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.ts.mjs +2341 -2249
- package/dist/index.ts.umd.js +4 -4
- package/dist/package/components/__tests__/page-header.test.d.ts +1 -0
- package/dist/package/components/page-header.vue.d.ts +34 -0
- package/dist/package/config/theme-core.d.ts +29 -0
- package/dist/package/themes/default/components/page-header.d.ts +29 -0
- package/dist/package/themes/default/index.d.ts +28 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
FileUpload,
|
|
46
46
|
Breadcrumbs,
|
|
47
47
|
Divider,
|
|
48
|
+
PageHeader,
|
|
48
49
|
Select,
|
|
49
50
|
Autocomplete,
|
|
50
51
|
Combobox,
|
|
@@ -145,6 +146,12 @@ app.use(VueForge, {
|
|
|
145
146
|
<FileUpload v-model="resume" accept=".pdf,.doc,.docx" />
|
|
146
147
|
<Breadcrumbs :items="breadcrumbItems" />
|
|
147
148
|
<Divider label="OR" />
|
|
149
|
+
<PageHeader title="Projects" subtitle="Manage active projects and team workload.">
|
|
150
|
+
<template #actions>
|
|
151
|
+
<Button label="Import" variant="outlined" severity="secondary" />
|
|
152
|
+
<Button label="New project" icon="plus" />
|
|
153
|
+
</template>
|
|
154
|
+
</PageHeader>
|
|
148
155
|
<Select v-model="role" :options="roles" placeholder="Choose role" />
|
|
149
156
|
<Autocomplete v-model="country" :options="countries" placeholder="Find country" />
|
|
150
157
|
<Combobox v-model="countryId" :options="countries" placeholder="Pick country" clearable />
|
|
@@ -290,6 +297,7 @@ app.use(VueForge, {
|
|
|
290
297
|
- Link
|
|
291
298
|
- Breadcrumbs
|
|
292
299
|
- Divider
|
|
300
|
+
- PageHeader
|
|
293
301
|
- Menu
|
|
294
302
|
- Modal
|
|
295
303
|
- ConfirmDialog
|
|
@@ -358,6 +366,7 @@ Input / InputGroup / Search / Password / Textarea (quick API):
|
|
|
358
366
|
- `RichTextEditor`: formatting editor with toolbar actions and Markdown/HTML output.
|
|
359
367
|
- `Divider`: horizontal/vertical visual separator with optional label and style variants.
|
|
360
368
|
- `Spinner`: lightweight loading indicator with inline/overlay variants and severity colors.
|
|
369
|
+
- `PageHeader`: page-level heading block with breadcrumbs/meta/actions slots for dashboard screens.
|
|
361
370
|
- `Wizard`: multi-step flow container with linear navigation, per-step validation, and completion events.
|
|
362
371
|
- `Textarea`: multi-line control, same as Input plus `rows`.
|
|
363
372
|
- `TagInput`: token/tag control, supports `v-model` (array), suggestions, custom tags, `maxTags`, `clearable`, `size`, `variant`.
|
|
@@ -1613,6 +1622,53 @@ Component tokens (override via `theme.overrides.components.divider`):
|
|
|
1613
1622
|
- `gap`, `inset`
|
|
1614
1623
|
- `labelPadding`, `labelFontSize`
|
|
1615
1624
|
|
|
1625
|
+
## PageHeader
|
|
1626
|
+
|
|
1627
|
+
Props:
|
|
1628
|
+
|
|
1629
|
+
- `title?: string`
|
|
1630
|
+
- `subtitle?: string`
|
|
1631
|
+
- `size?: 'small' | 'normal' | 'large'` (default `normal`)
|
|
1632
|
+
- `divider?: boolean` (default `false`)
|
|
1633
|
+
|
|
1634
|
+
Slots:
|
|
1635
|
+
|
|
1636
|
+
- `breadcrumbs` (optional)
|
|
1637
|
+
- `title` (optional) - replaces `title` prop rendering
|
|
1638
|
+
- `subtitle` (optional) - replaces `subtitle` prop rendering
|
|
1639
|
+
- `meta` (optional)
|
|
1640
|
+
- `actions` (optional)
|
|
1641
|
+
- `default` (optional) - additional body content
|
|
1642
|
+
|
|
1643
|
+
Example:
|
|
1644
|
+
|
|
1645
|
+
```vue
|
|
1646
|
+
<PageHeader title="Projects" subtitle="Manage active projects and team workload.">
|
|
1647
|
+
<template #breadcrumbs>
|
|
1648
|
+
<Breadcrumbs :items="breadcrumbItems" />
|
|
1649
|
+
</template>
|
|
1650
|
+
<template #meta>
|
|
1651
|
+
<Badge severity="info" variant="soft">24 active</Badge>
|
|
1652
|
+
<Chip label="Last sync: 2m ago" />
|
|
1653
|
+
</template>
|
|
1654
|
+
<template #actions>
|
|
1655
|
+
<Button label="Import" variant="outlined" severity="secondary" />
|
|
1656
|
+
<Button label="New project" icon="plus" />
|
|
1657
|
+
</template>
|
|
1658
|
+
</PageHeader>
|
|
1659
|
+
```
|
|
1660
|
+
|
|
1661
|
+
### PageHeader tokens
|
|
1662
|
+
|
|
1663
|
+
Component tokens (override via `theme.overrides.components.pageHeader`):
|
|
1664
|
+
|
|
1665
|
+
- `gap`, `contentGap`, `breadcrumbGap`, `actionsGap`, `metaGap`
|
|
1666
|
+
- `padding`, `borderRadius`, `borderColor`, `backgroundColor`, `textColor`, `dividerColor`
|
|
1667
|
+
- `titleFontSize`, `titleLineHeight`, `titleFontWeight`
|
|
1668
|
+
- `subtitleFontSize`, `subtitleColor`
|
|
1669
|
+
- `small.padding`, `small.titleFontSize`, `small.subtitleFontSize`
|
|
1670
|
+
- `large.padding`, `large.titleFontSize`, `large.subtitleFontSize`
|
|
1671
|
+
|
|
1616
1672
|
## SegmentedControl
|
|
1617
1673
|
|
|
1618
1674
|
Props:
|
|
@@ -3146,7 +3202,7 @@ VueForge exposes design tokens as CSS variables generated from the theme preset.
|
|
|
3146
3202
|
Typed tokens:
|
|
3147
3203
|
|
|
3148
3204
|
- `ThemeTokens`/`ThemeOptions`/`ThemePreset` are exported for type-safe theming in TS.
|
|
3149
|
-
- `components.*` accepts component-specific tokens (typed keys: button/buttonGroup/card/checkbox/radio/tabs/accordion/toast/alert/emptyState/input/inputGroup/inlineEdit/searchInput/mentionInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/form/formField/textarea/richTextEditor/link/breadcrumbs/divider/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/notificationCenter/appShell/kanbanBoard/tour/select/autocomplete/combobox/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/spinner/badge/chip/filterChips/avatar/datatable/slider/splitter/stepper/wizard/rating/tree/treeselect/virtualScroller).
|
|
3205
|
+
- `components.*` accepts component-specific tokens (typed keys: button/buttonGroup/card/checkbox/radio/tabs/accordion/toast/alert/emptyState/input/inputGroup/inlineEdit/searchInput/mentionInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/form/formField/textarea/richTextEditor/link/breadcrumbs/divider/pageHeader/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/notificationCenter/appShell/kanbanBoard/tour/select/autocomplete/combobox/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/spinner/badge/chip/filterChips/avatar/datatable/slider/splitter/stepper/wizard/rating/tree/treeselect/virtualScroller).
|
|
3150
3206
|
|
|
3151
3207
|
Default core values (from `DefaultTheme`):
|
|
3152
3208
|
|