@sewadah/selaras 0.3.2 → 0.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 +6 -0
- package/agent/catalog.mjs +73 -0
- package/agent/mcp.mjs +15 -0
- package/agent/server.mjs +58 -0
- package/dist/agent/catalog.json +1 -0
- package/dist/module.json +1 -1
- package/dist/runtime/internal/ComboboxSelectBase.d.vue.ts +29 -21
- package/dist/runtime/internal/ComboboxSelectBase.vue +138 -61
- package/dist/runtime/internal/ComboboxSelectBase.vue.d.ts +29 -21
- package/dist/runtime/internal/ComboboxSelectBody.d.vue.ts +1 -0
- package/dist/runtime/internal/ComboboxSelectBody.vue +2 -2
- package/dist/runtime/internal/ComboboxSelectBody.vue.d.ts +1 -0
- package/dist/runtime/theme/select.js +1 -4
- package/package.json +15 -5
- package/skills/selaras/SKILL.md +40 -0
- package/skills/selaras/agents/openai.yaml +4 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: selaras
|
|
3
|
+
description: Build and customize Vue and Nuxt interfaces with @sewadah/selaras. Use when a project uses Selaras or the user asks to adopt it, including component selection, forms, overlays, theming, icons, localization, and adaptive interfaces.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Selaras
|
|
7
|
+
|
|
8
|
+
Use the existing Selaras catalog to compose the requested interface. Check documentation before assuming a component is missing or inventing its props. Preserve the application's design and the user's scope.
|
|
9
|
+
|
|
10
|
+
## Find the right component
|
|
11
|
+
|
|
12
|
+
If a Selaras MCP connection is available, start with `list_components` or `search_documentation`, then use `get_documentation` and `get_example` for matching APIs and examples. Its offline catalog follows the installed package version. Tools retrieve documentation; use the user's requirements to decide which components fit. Do not assume a missing MCP connection prevents the task.
|
|
13
|
+
|
|
14
|
+
Without MCP, read the [documentation index](https://sewadahapp.github.io/selaras/llms.txt), then retrieve the relevant Markdown guides through its links. Each guide includes component contracts and Vue example source. Prefer targeted pages over loading `llms-full.txt` for every task.
|
|
15
|
+
|
|
16
|
+
If the project has Selaras installed, inspect its package version and existing Nuxt configuration first. Published web documentation may describe a newer version; confirm uncertain APIs against installed public types. Component names below use the default `S` prefix; the application can configure another prefix.
|
|
17
|
+
|
|
18
|
+
Look beyond Button and Input when choosing components:
|
|
19
|
+
|
|
20
|
+
- Forms: Select, Autocomplete, InputNumber, DatePicker, ColorPicker, Checkbox, Switch, RadioGroup, Form, and FormField.
|
|
21
|
+
- Actions and search: Dropdown, ContextMenu, NavigationMenu, CommandPalette, Kbd, and the hotkey directive.
|
|
22
|
+
- Data and feedback: Table, Timeline, Tree, Pagination, Alert, Toast, and Skeleton.
|
|
23
|
+
- Overlays: Modal, AlertDialog, Drawer, Slideover, Popover, and Tooltip; inspect programmatic composables when the interaction calls for them.
|
|
24
|
+
- Layout and content: App, Container, Header, Card, Tabs, Accordion, ScrollArea, Dashboard components, and documentation composites.
|
|
25
|
+
|
|
26
|
+
These are discovery hints, not substitute API definitions. Read the matching catalog entry and a relevant example before implementing. Build a custom component when documented components do not fit the requirement.
|
|
27
|
+
|
|
28
|
+
## Integration and customization
|
|
29
|
+
|
|
30
|
+
For a new integration, read [Installation](https://sewadahapp.github.io/selaras/raw/overview/getting-started/installation.md) and [Nuxt configuration](https://sewadahapp.github.io/selaras/raw/overview/getting-started/nuxt-configuration.md). Existing projects may already have providers and styles configured; inspect before changing them.
|
|
31
|
+
|
|
32
|
+
- `SApp` supplies shared providers. Toast and CommandPalette still require the documented mounted components.
|
|
33
|
+
- Use supported props for behavior and appearance, slots for custom content, `class` for the root, and `ui` for documented component parts.
|
|
34
|
+
- Read [Theming](https://sewadahapp.github.io/selaras/raw/overview/theming/overview.md) for CSS tokens, global `app.config.selaras.ui` and defaults, or scoped `STheme`. Do not invent slot names or assume every prop has a global default.
|
|
35
|
+
- Read [Icons](https://sewadahapp.github.io/selaras/raw/overview/getting-started/icons.md) for Nuxt Icon loading and configuration. Internal icon purposes use `app.config.selaras.icons`; explicitly supplied icons remain local.
|
|
36
|
+
- Read [Messages](https://sewadahapp.github.io/selaras/raw/overview/getting-started/messages.md) for internal text and accessible labels. The formatting locale and translated messages are separate settings.
|
|
37
|
+
- Read [Color modes](https://sewadahapp.github.io/selaras/raw/overview/theming/color-modes.md) for light, dark, and system preferences. Documentation showcase themes are not automatically installed application presets.
|
|
38
|
+
- Read [Adaptive interfaces](https://sewadahapp.github.io/selaras/raw/overview/getting-started/adaptive-interfaces.md) before opting supported controls into mobile modal presentation. `adaptive` is opt-in, not a universal component prop.
|
|
39
|
+
|
|
40
|
+
Match item shapes, model values, and selection events to the component contract. Preserve accessible names, keyboard behavior, focus restoration, and form associations when customizing slots. Validate interactions relevant to the change in the project's normal checks, including mobile presentation when enabled.
|