@macmotp/sirius-ui-dashboard 0.0.0-stage → 0.1.0-alpha.4

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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/dist/components/SDashboardLayout.types.d.ts +15 -0
  3. package/dist/components/SDashboardLayout.vue.d.ts +23 -0
  4. package/dist/components/SDashboardNav.types.d.ts +24 -0
  5. package/dist/components/SDashboardNav.vue.d.ts +26 -0
  6. package/dist/components/SDashboardPageHeader.types.d.ts +10 -0
  7. package/dist/components/SDashboardPageHeader.vue.d.ts +20 -0
  8. package/dist/components/SMetricCard.types.d.ts +15 -0
  9. package/dist/components/SMetricCard.vue.d.ts +17 -0
  10. package/dist/components/SPeopleList.types.d.ts +22 -0
  11. package/dist/components/SPeopleList.vue.d.ts +9 -0
  12. package/dist/components/STimeline.types.d.ts +14 -0
  13. package/dist/components/STimeline.vue.d.ts +26 -0
  14. package/dist/components/SUserCard.types.d.ts +7 -0
  15. package/dist/components/SUserCard.vue.d.ts +16 -0
  16. package/dist/components/SUtilityCard.types.d.ts +9 -0
  17. package/dist/components/SUtilityCard.vue.d.ts +17 -0
  18. package/dist/docs/docs/agent-guide.md +133 -0
  19. package/dist/docs/docs/component-catalog.md +169 -0
  20. package/dist/docs/docs/dashboard-patterns.md +55 -0
  21. package/dist/docs/docs/hospitality-patterns.md +81 -0
  22. package/dist/docs/docs/icons.md +98 -0
  23. package/dist/docs/docs/website-patterns.md +177 -0
  24. package/dist/docs/packages/auth/readme.md +126 -0
  25. package/dist/docs/packages/charts/bar-chart.md +131 -0
  26. package/dist/docs/packages/charts/donut-chart.md +111 -0
  27. package/dist/docs/packages/charts/readme.md +187 -0
  28. package/dist/docs/packages/dashboard/readme.md +375 -0
  29. package/dist/docs/packages/hospitality/readme.md +107 -0
  30. package/dist/docs/packages/theme/readme.md +166 -0
  31. package/dist/docs/packages/vue/readme.md +1192 -0
  32. package/dist/docs/packages/website/readme.md +382 -0
  33. package/dist/docs/readme.md +7 -0
  34. package/dist/index.d.ts +17 -0
  35. package/dist/index.js +618 -0
  36. package/dist/style.css +1 -0
  37. package/package.json +51 -4
  38. package/readme.md +375 -0
  39. package/README.md +0 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Marco Gava
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,15 @@
1
+ export interface SDashboardLayoutProps {
2
+ /** ID of an external page heading, for example in the header slot. */
3
+ mainLabelledby?: string;
4
+ navigationLabel?: string;
5
+ openNavigationLabel?: string;
6
+ closeNavigationLabel?: string;
7
+ skipLinkLabel?: string;
8
+ /** Pass a route URL/key to close mobile navigation after application navigation. */
9
+ navigationKey?: string | number;
10
+ }
11
+ export interface SDashboardNavigationSlot {
12
+ mobile: boolean;
13
+ /** Close mobile navigation and focus the content after the drawer's exit. */
14
+ close: () => void;
15
+ }
@@ -0,0 +1,23 @@
1
+ import type { SDashboardLayoutProps, SDashboardNavigationSlot } from './SDashboardLayout.types';
2
+ type __VLS_Slots = {
3
+ brand(props: SDashboardNavigationSlot): unknown;
4
+ navigation(props: SDashboardNavigationSlot): unknown;
5
+ sidebarFooter?(props: SDashboardNavigationSlot): unknown;
6
+ header?(): unknown;
7
+ headerActions?(): unknown;
8
+ default(): unknown;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<SDashboardLayoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SDashboardLayoutProps> & Readonly<{}>, {
11
+ navigationLabel: string;
12
+ openNavigationLabel: string;
13
+ closeNavigationLabel: string;
14
+ skipLinkLabel: string;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,24 @@
1
+ import type { Component } from 'vue';
2
+ export interface SDashboardNavItem {
3
+ id: string;
4
+ label: string;
5
+ href: string;
6
+ icon?: Component;
7
+ badge?: string | number;
8
+ /** Accessible badge text, for example "3 unread updates". */
9
+ badgeLabel?: string;
10
+ disabled?: boolean;
11
+ target?: string;
12
+ rel?: string;
13
+ linkProps?: Record<string, unknown>;
14
+ }
15
+ export interface SDashboardNavGroup<T extends SDashboardNavItem = SDashboardNavItem> {
16
+ id: string;
17
+ label?: string;
18
+ items: readonly T[];
19
+ }
20
+ export interface SDashboardNavProps<T extends SDashboardNavItem = SDashboardNavItem> {
21
+ groups: readonly SDashboardNavGroup<T>[];
22
+ current?: string;
23
+ linkAs?: 'a' | Component;
24
+ }
@@ -0,0 +1,26 @@
1
+ import type { SDashboardNavItem, SDashboardNavProps } from './SDashboardNav.types';
2
+ declare const __VLS_export: <T extends SDashboardNavItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<SDashboardNavProps<T> & {
4
+ onSelect?: ((item: T, event: MouseEvent) => any) | undefined;
5
+ }> & (typeof globalThis extends {
6
+ __VLS_PROPS_FALLBACK: infer P;
7
+ } ? P : {});
8
+ expose: (exposed: {}) => void;
9
+ attrs: any;
10
+ slots: {
11
+ badge?(props: {
12
+ item: T;
13
+ active: boolean;
14
+ }): unknown;
15
+ };
16
+ emit: (evt: "select", item: T, event: MouseEvent) => void;
17
+ }>) => import("vue").VNode & {
18
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
19
+ };
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
23
+ [K in keyof T]: T[K];
24
+ } : {
25
+ [K in keyof T as K]: T[K];
26
+ }) & {};
@@ -0,0 +1,10 @@
1
+ import type { Component } from 'vue';
2
+ import type { SBreadcrumbsItem } from '@macmotp/sirius-ui-vue';
3
+ export interface SDashboardPageHeaderProps {
4
+ title: string;
5
+ description?: string;
6
+ eyebrow?: string;
7
+ breadcrumbs?: readonly SBreadcrumbsItem[];
8
+ breadcrumbLabel?: string;
9
+ breadcrumbLinkAs?: 'a' | Component;
10
+ }
@@ -0,0 +1,20 @@
1
+ import type { SDashboardPageHeaderProps } from './SDashboardPageHeader.types';
2
+ type __VLS_Slots = {
3
+ title?(): unknown;
4
+ description?(): unknown;
5
+ breadcrumbs?(): unknown;
6
+ actions?(): unknown;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<SDashboardPageHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SDashboardPageHeaderProps> & Readonly<{}>, {
9
+ breadcrumbs: readonly import("@macmotp/sirius-ui-vue").SBreadcrumbsItem[];
10
+ breadcrumbLabel: string;
11
+ breadcrumbLinkAs: "a" | import("vue").Component;
12
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,15 @@
1
+ import type { SBadgeColor } from '@macmotp/sirius-ui-vue';
2
+ export interface SMetricCardComparison {
3
+ value: string;
4
+ label?: string;
5
+ color?: SBadgeColor;
6
+ }
7
+ export interface SMetricCardProps {
8
+ label: string;
9
+ value?: string | number;
10
+ detail?: string;
11
+ color?: SBadgeColor;
12
+ comparison?: SMetricCardComparison;
13
+ loading?: boolean;
14
+ loadingLabel?: string;
15
+ }
@@ -0,0 +1,17 @@
1
+ import type { SMetricCardProps } from './SMetricCard.types';
2
+ type __VLS_Slots = {
3
+ icon?(): unknown;
4
+ chart?(): unknown;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<SMetricCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SMetricCardProps> & Readonly<{}>, {
7
+ loading: boolean;
8
+ loadingLabel: string;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,22 @@
1
+ export interface SPeopleListItem {
2
+ id: string;
3
+ name: string;
4
+ email?: string;
5
+ role?: string;
6
+ avatarSrc?: string;
7
+ href?: string;
8
+ presence?: {
9
+ kind: 'online';
10
+ } | {
11
+ kind: 'last-seen';
12
+ label: string;
13
+ datetime: string;
14
+ };
15
+ }
16
+ export interface SPeopleListProps {
17
+ people: readonly SPeopleListItem[];
18
+ label?: string;
19
+ onlineLabel?: string;
20
+ lastSeenLabel?: string;
21
+ emptyText?: string;
22
+ }
@@ -0,0 +1,9 @@
1
+ import type { SPeopleListProps } from './SPeopleList.types';
2
+ declare const __VLS_export: import("vue").DefineComponent<SPeopleListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SPeopleListProps> & Readonly<{}>, {
3
+ label: string;
4
+ onlineLabel: string;
5
+ lastSeenLabel: string;
6
+ emptyText: string;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
@@ -0,0 +1,14 @@
1
+ export interface STimelineItem {
2
+ id: string;
3
+ title: string;
4
+ detail?: string;
5
+ time?: {
6
+ label: string;
7
+ datetime: string;
8
+ };
9
+ }
10
+ export interface STimelineProps<T extends STimelineItem = STimelineItem> {
11
+ items: readonly T[];
12
+ label?: string;
13
+ emptyText?: string;
14
+ }
@@ -0,0 +1,26 @@
1
+ import type { STimelineItem, STimelineProps } from './STimeline.types';
2
+ declare const __VLS_export: <T extends STimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<STimelineProps<T>> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: {}) => void;
7
+ attrs: any;
8
+ slots: {
9
+ marker?(props: {
10
+ item: T;
11
+ }): unknown;
12
+ detail?(props: {
13
+ item: T;
14
+ }): unknown;
15
+ };
16
+ emit: {};
17
+ }>) => import("vue").VNode & {
18
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
19
+ };
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
23
+ [K in keyof T]: T[K];
24
+ } : {
25
+ [K in keyof T as K]: T[K];
26
+ }) & {};
@@ -0,0 +1,7 @@
1
+ export interface SUserCardProps {
2
+ name: string;
3
+ role?: string;
4
+ detail?: string;
5
+ avatarSrc?: string;
6
+ layout?: 'inline' | 'stacked';
7
+ }
@@ -0,0 +1,16 @@
1
+ import type { SUserCardProps } from './SUserCard.types';
2
+ type __VLS_Slots = {
3
+ badge?(): unknown;
4
+ actions?(): unknown;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<SUserCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SUserCardProps> & Readonly<{}>, {
7
+ layout: "inline" | "stacked";
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,9 @@
1
+ export interface SUtilityCardRow {
2
+ id: string;
3
+ label: string;
4
+ value: string | number;
5
+ }
6
+ export interface SUtilityCardProps {
7
+ title: string;
8
+ rows: readonly SUtilityCardRow[];
9
+ }
@@ -0,0 +1,17 @@
1
+ import type { SUtilityCardProps, SUtilityCardRow } from './SUtilityCard.types';
2
+ type __VLS_Slots = {
3
+ identity?(): unknown;
4
+ actions?(): unknown;
5
+ value?(props: {
6
+ row: SUtilityCardRow;
7
+ }): unknown;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<SUtilityCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SUtilityCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,133 @@
1
+ # Build applications with SiriusUI
2
+
3
+ This is the entry point for agents consuming SiriusUI. Use existing components and their documented behavior to assemble an application. For changes to SiriusUI itself, also read the repository’s [implementation rules](https://github.com/macmotp/sirius-ui/blob/v0.1.0-alpha.4/AGENTS.md).
4
+
5
+ ## Read only what the task needs
6
+
7
+ 1. Check the consuming app’s dependencies, installed package versions, framework, router, theme entry, and existing icon configuration. Use that project’s instructions and conventions.
8
+ 2. Translate the request into a surface, primary visitor/user action, and a small content outline using the rules below.
9
+ 3. Open the [component catalog](component-catalog.md) and select public exports by task.
10
+ 4. Read the relevant package contracts, then the matching [dashboard patterns](dashboard-patterns.md) or [website patterns](website-patterns.md). For auth, use the [auth guide](../packages/auth/readme.md); for property/guest journeys, use [hospitality patterns](hospitality-patterns.md). Read the matching recipe rather than every showcase example.
11
+ 5. Consult the linked example when wiring data or handlers is unclear. Read source/types when the guide leaves an ambiguity. Do not load the entire architecture history to build a routine page.
12
+ 6. Implement the app’s data, routes, request lifecycle, permissions, copy, and assets around those components. Verify the resulting interaction in the consuming app.
13
+
14
+ In an installed package, start at `node_modules/@macmotp/sirius-ui-<package>/dist/docs/readme.md`. The bundled catalog, patterns, and package guides use local relative links; source/example links use the matching release tag. In a repository checkout, start with this file. New checkout changes do not become available in an existing release automatically.
15
+
16
+ ## Availability and authority
17
+
18
+ - Read package.json and the installed declarations before using an export. The catalog describes this checkout; installed releases can contain fewer components or different contracts.
19
+ - Theme, Vue, charts, dashboard, and auth are prepared as aligned alpha libraries. This does not establish that a particular version has been published to a registry. Check availability before giving installation commands.
20
+ - Website and hospitality remain private `0.0.0` workspace previews. Use these from a source checkout or a project-approved local integration until they are released. Do not assume npm installations exist for these previews.
21
+ - Import named exports and styles from public package entries. Treat `apps/*` and `apps/shared` as application examples, not installable libraries or supported deep imports.
22
+ - A template name in the showcase is a composition, not necessarily a public export. For example, FAQ sections use SWebsiteSection with SAccordion; portfolio grids use SGrid with SProjectCard.
23
+ - If a contract and implementation disagree, inspect the matching installed source/types or ask for the missing requirement. Do not guess a prop, event, slot, or component name.
24
+
25
+ ## Translate a generic request into a composition
26
+
27
+ Treat requests such as “build me a personal website” as requests to build an app using Sirius, not to redesign the library. Infer the intended audience, primary action, supplied content, and whether the surface is public, authenticated, or both. Use existing project context before asking questions. Make ordinary reversible choices and continue implementation; ask only when missing information materially changes the product or prevents a working result. Clearly mark missing personal/business content as placeholders rather than inventing facts.
28
+
29
+ | Request intent | Starting collection | Minimal composition / decision |
30
+ | --- | --- | --- |
31
+ | Personal website or professional profile | Website | SWebsiteLayout + header, hero, a concise about section, a genuine contact action, footer. Add selected work only when projects are supplied or requested |
32
+ | Portfolio | Website | Hero + SWebsiteSection containing SGrid/SProjectCard + about/contact. Add project detail routes if the scope calls for them |
33
+ | Agency or service business | Website | Hero + services/features + supported work/proof + contact/CTA + footer. Add team, locations, or plans only when the business needs them |
34
+ | Product marketing site | Website | Hero + capabilities/features + supported proof + primary conversion action. Pricing, FAQ, newsletter, and blog are optional, not mandatory sections |
35
+ | Blog or publication | Website | Header + SWebsiteBlog or an article-card collection + app-owned article pages + footer. A newsletter is optional |
36
+ | Admin panel or customer workspace | Dashboard, with Vue primitives | SDashboardLayout + navigation + task-specific cards/forms/tables. Add charts only when the request includes useful quantitative data |
37
+ | Login, recovery, or registration | Auth, with Vue primitives | SAuthLayout + the matching controlled auth form. The app/backend provides the authentication flow |
38
+ | Property website or stay enquiry | Hospitality + website, with core controls | Use the [hospitality patterns](hospitality-patterns.md) for room cards, stay search, and summaries. The app/backend owns inventory, rates, and enquiry/booking state; the initial preview does not confirm bookings |
39
+ | Store or another domain application | Available website/dashboard/core components | Use existing shells and primitives for presentation; model domain flows in the app. Do not invent a public ecommerce package or claim a booking engine exists |
40
+ | Public website plus private account area | Website and dashboard/auth on separate routes | Select one appropriate shell per route and share theme, branding, and app services |
41
+
42
+ A request’s label is a clue, not a fixed page specification. A photographer’s personal site may emphasize work; a writer’s may emphasize articles; a consultant’s may emphasize services. Follow supplied requirements and actual content. Do not turn every personal site into the Acme agency demo or every application into a dashboard.
43
+
44
+ ### Build the smallest suitable page
45
+
46
+ Before editing markup, choose one coherent section sequence and the data/actions each section needs. Prefer an existing original composition or supported variant whose structure already fits the goal. Keep useful defaults instead of evaluating every variant. Add, omit, or reorder sections to fit the request; do not render the whole showcase in production.
47
+
48
+ A lean personal page can be: introduction → about → contact → footer. A portfolio with supplied work can be: introduction → selected work → about → contact → footer. These are starting outlines, not mandatory templates. A precise user design or an existing project’s structure takes precedence.
49
+
50
+ - Use SWebsiteHero for the page introduction and its primary action. Its media is optional; do not force a phone mockup onto a biography with no app/product context.
51
+ - For prose, an about section, FAQ, plans, or projects, choose a section wrapper plus the relevant content/cards. For purpose-built sections such as SWebsiteBlog or SWebsiteTeam, use the section component directly.
52
+ - Include stats, testimonials, clients, awards, team members, offices, prices, and subscribers only when supplied, requested as explicit demo fixtures, or backed by real app data. Do not fill template slots with fabricated credibility claims.
53
+ - A solo person does not require a team directory. A contact link does not require a contact form/backend. A website does not require authentication, a newsletter, or a dashboard merely because these components exist.
54
+ - Match navigation and calls to action to sections/routes that actually exist. Give each action one clear purpose. If functionality is intentionally a preview, distinguish that from a completed integration.
55
+
56
+ ## Fit components together before customizing them
57
+
58
+ Use this order: **appropriate shell → section sequence → supported variants → app content/data and slots → app integration**. The shape of the page should come from the selected components, while the meaning comes from the consuming project.
59
+
60
+ | Layer | Composition rule |
61
+ | --- | --- |
62
+ | Route shell | Use one appropriate top-level layout for the route. SWebsiteLayout, SDashboardLayout, and SAuthLayout each provide a main region; do not nest complete shells inside each other |
63
+ | Page title | Provide one h1. SWebsiteLayout names the app-supplied heading; SAuthLayout supplies its own. Do not add a second page hero/title just to repeat the navigation context |
64
+ | Full website sections | Place section components as siblings in the layout content. They already own headings, content width, gutters, and section spacing. Do not automatically wrap them in another SWebsiteSection or SCard |
65
+ | Cards and primitives | Put SProjectCard, SPricingCard, SArticleCard, SAccordion, or form controls inside the appropriate app-owned section/grid when no higher-level section already fits |
66
+ | Grid ownership | Let SWebsiteBlog, SWebsiteFeatures, SWebsiteTeam, and other section components own their documented internal grids. Do not add a second outer grid around a full section to force its internal cards into columns |
67
+ | Slots | Supply branding, icons, media, actions, and app-owned form content through the documented slots. Keep noninteractive media slots free of nested links/buttons when a stretched title link covers them |
68
+ | State | Bind the documented model and events to app-owned state. A wrapper may own a form draft or billing period; it should not replace component keyboard/focus behavior |
69
+ | Navigation | Use href-compatible adapters and real destinations. Website preview hashes and Studio-prefixed helpers are examples, not production route APIs |
70
+ | Visual system | Use the shared theme, controls, typography, radii, and existing interaction styles across collections. Configure the app’s chosen icon set once rather than switching sets between unrelated sections |
71
+
72
+ The [website patterns](website-patterns.md#heading-hierarchy) define nested heading levels. Section wrappers, cards, and accordions must fit the surrounding document, not keep a standalone example’s heading level blindly. Container width also matters: verify that the selected variation fits the actual shell/sidebar as well as the viewport.
73
+
74
+ ### What may change for a normal build request
75
+
76
+ | Change | Expected approach |
77
+ | --- | --- |
78
+ | Wording, identity, records, images, links, formatting, translations | Replace app-owned content and bindings. Preserve the component’s supported structure and behavior |
79
+ | Section order, inclusion, supported variants, headings, slot content | Adapt the page composition to the request. Preserve each chosen variant’s internal layout, semantics, responsiveness, and interactions |
80
+ | App-specific workflow, forms, search, filters, permissions, requests | Compose a focused app-owned wrapper from public exports. Keep state/business rules outside the library |
81
+ | A visual requirement unsupported by a variant | First use available props, slots, semantic theme overrides, or another suitable variant. If needed, create a small app-owned composition from primitives and retain accessibility |
82
+ | New shared behavior or a component contract change | Treat this as library development, not routine page assembly. Follow the repository’s implementation workflow, document/test the change, and preserve other consumers’ defaults |
83
+
84
+ Do not apply a blanket “change wording only” rule: an unsuitable template still needs a different composition. Conversely, a generic app request is not a reason to fork a Sirius component, restyle all controls, change its events, or recreate an existing section in raw markup. If a genuine gap remains, use the smallest appropriate app composition and explain the gap. An ordinary local wrapper does not require a new shared API or an additional approval step.
85
+
86
+ ### Acceptance examples
87
+
88
+ | Generic request | Appropriate result | Avoid |
89
+ | --- | --- | --- |
90
+ | “Build me a personal website” | A lean public site with an introduction, about content, contact action, and deliberate placeholders for missing identity/content | Unrequested pricing, invented metrics/reviews, a fabricated team, or an entire dashboard shell |
91
+ | “Make it a portfolio with six projects” | A website shell, introduction, reusable project grid/cards with six actual/explicitly provisional records, and working project/contact destinations | Six copied implementations of a card, or project links with no matching destination |
92
+ | “I write essays and want people to subscribe” | Writer-focused introduction, article collection/detail routes, and a newsletter with app-owned request/error/success handling | Agency service copy or a form that pretends to subscribe without a handler |
93
+ | “Build an order-management dashboard” | A dashboard shell, API-driven table/pagination, filters and permitted actions using the app’s data contract | A marketing hero replacing the main task view, or frontend pagination pretending to cover all server records |
94
+
95
+ The result should be a working, purpose-specific application that still looks and behaves like Sirius. Report the chosen composition, assumptions/placeholders, integration status, and actual verification briefly; do not require a long formal plan before doing authorized work.
96
+
97
+ ## Preserve the contracts
98
+
99
+ Reuse component defaults, models, events, slots, keyboard handling, focus behavior, and native semantics. Change these only when the task explicitly requires it. Customize through public props, slots, semantic tokens, and app-owned composition before considering a shared component change.
100
+
101
+ | Responsibility | Owner |
102
+ | --- | --- |
103
+ | Rendering, documented local interaction, semantic structure | Sirius component |
104
+ | Routing/link adapter, active route, page title, navigation focus and scrolling | Consuming app |
105
+ | API calls, request cancellation, loading/error/success state | Consuming app |
106
+ | Authorization, persistence, server validation, pagination boundaries | Backend and consuming app |
107
+ | Formatting dates, money, percentages, chart units, and stat values | Consuming app |
108
+ | Content, translations, privacy destinations, image rights, and credits | Consuming app |
109
+ | Accent/background selection, appearance persistence, font loading | Consuming app using theme tokens |
110
+ | Icon-set selection and mappings | Consuming app using [icon configuration](icons.md) |
111
+
112
+ Use server-driven SPagination with server-returned page links for API tables. Do not replace it with client-side pagination of an incomplete dataset. Auth and newsletter components do not authenticate or send requests by themselves. SWebsiteContact accepts an app-owned form; it does not define the project’s form schema.
113
+
114
+ ## Theme and icons
115
+
116
+ Import each used package’s compiled stylesheet once, following the [catalog setup](component-catalog.md#setup). Core Vue styles are also needed when composing dashboard, auth, or website sections. A consuming app does not need Tailwind to use compiled component styling. If it uses Tailwind for its own slot content, follow the [theme guide](../packages/theme/readme.md).
117
+
118
+ Use semantic colors such as bg-canvas, bg-surface, text-content, text-content-muted, and border-line. Keep the selected accent and background palette independent of fixed success/warning/danger roles. Preserve control rounding and the default 2xl panel radius. Set appearance through the theme API rather than adding independent color systems to individual templates.
119
+
120
+ Do not install both Lucide and Heroicons just because the demo apps use both. Configure the chosen set once or supply documented icon slots. Do not modify core components to import an app’s preferred library. Missing custom icon names do not download icons dynamically.
121
+
122
+ ## Accessibility and responsive composition
123
+
124
+ - Give a page one h1 and a correctly named main landmark. Use the next heading level when nesting sections, examples, cards, and accordion groups. Keep generated IDs unless a surrounding landmark needs an explicit target.
125
+ - Use SField’s scoped control attributes for form labels, descriptions, and errors. Name icon-only actions on the action itself. Keep decorative icons and redundant avatars hidden from assistive technology.
126
+ - Preserve native anchor behavior, including modified clicks and new tabs. On SPA route changes, make focus/scroll behavior explicit. Return focus appropriately after dialogs/drawers close.
127
+ - Do not put interactive content in a stretched-link card’s media slot. Category/author links in editorial article cards already have separate targets; preserve that layering.
128
+ - Keep layouts shrinkable with min-w-0. Let action rows wrap. Use the documented responsive layouts and test them in their actual container, especially inside a sidebar or narrow panel.
129
+ - Check narrow and wide screens, long labels, keyboard navigation, visible focus, and both appearances. Exercise meaningful loading, validation, empty, and error states. A passing build does not establish visual or browser accessibility verification.
130
+
131
+ ## Completion criteria
132
+
133
+ Use the consuming app’s required checks. Report what was implemented and what was actually validated. If a browser cannot run, state that limitation rather than claiming the responsive layout was visually verified. If changing SiriusUI implementation, follow AGENTS.md and run the repository’s required checks. For documentation-only changes, validate paths, anchors, and bundled links.