diff --git a/docs/vue.md b/docs/vue.md index 60c0e21..d65ea3c 100644 --- a/docs/vue.md +++ b/docs/vue.md @@ -105,4 +105,44 @@ See [Vue Component Map](vue/component-map.md). +## Layout And Data Patterns + +Second-wave adapter components cover common application surfaces: + +```vue + + + +``` + For AI agents and project-specific rules, see [Vue AI Usage Guide](vue/ai-usage-guide.md). diff --git a/docs/vue/ai-usage-guide.md b/docs/vue/ai-usage-guide.md index 9ac4c71..51e8cfb 100644 --- a/docs/vue/ai-usage-guide.md +++ b/docs/vue/ai-usage-guide.md @@ -51,6 +51,18 @@ - global notification: `GnToastProvider` + `useToast` - confirmation: `GnConfirmDialog` - structured rows: `GnTable` +- toolbar/action row: `GnToolbar` +- input addon layout: `GnInputGroup` +- search input: `GnSearchField` +- pagination: `GnPagination` +- empty result panel: `GnEmptyState` +- loading placeholders: `GnSkeleton` +- key-value metadata: `GnDescriptionList` +- determinate progress: `GnProgress` +- wizard/staged process: `GnSteps` +- chips/filters: `GnChip`, `GnChipGroup` +- user or entity identity: `GnAvatar`, `GnIdentity`, `GnAvatarStack` +- activity timeline/log: `GnTimeline`, `GnActivityLog` ## Do Not diff --git a/docs/vue/component-map.md b/docs/vue/component-map.md index 4ac73f6..cd66b03 100644 --- a/docs/vue/component-map.md +++ b/docs/vue/component-map.md @@ -22,6 +22,22 @@ | `GnToastProvider` | `.toast` | Provides `useToast()`. | | `GnConfirmDialog` | `GnModal` + actions | Emits `confirm` / `cancel`. | | `GnTable` | `.table`, `.table-wrapper` | Columns/rows with scoped cell slots. | +| `GnToolbar` | `.toolbar` | Title/meta with action slot. | +| `GnInputGroup` | `.input-group` | Addon/default/action slots. | +| `GnSearchField` | `.input-group.search-field` | Search input with clear action. | +| `GnPagination` | `.pagination` | `v-model:page` style via `update:page`. | +| `GnEmptyState` | `.empty-state` | Icon, title, text, actions. | +| `GnSkeleton` | `.skeleton`, `.skeleton-stack` | Loading placeholders. | +| `GnDescriptionList` | `.description-list` | Key-value metadata. | +| `GnProgress` | `.progress` | Determinate progress. | +| `GnSteps` | `.steps` | Wizard/staged process. | +| `GnChip` | `.chip` | Static/selectable/removable chip. | +| `GnChipGroup` | `.chip-group` | Chip layout wrapper. | +| `GnAvatar` | `.avatar` | Initials/icon/image/status. | +| `GnIdentity` | `.identity` | Avatar + title/meta row. | +| `GnAvatarStack` | `.avatar-stack` | Compact avatar group. | +| `GnTimeline` | `.timeline` | Activity/event timeline. | +| `GnActivityLog` | `.activity-log` | Compact log rows. | ## Variant Names diff --git a/examples/vue/src/main.js b/examples/vue/src/main.js index 3f37cc2..4791aef 100644 --- a/examples/vue/src/main.js +++ b/examples/vue/src/main.js @@ -3,10 +3,20 @@ import "gnexus-ui-kit/dist/assets/fonts/phosphor-icons/src/css/icons.css"; import { GnButton, + GnActivityLog, + GnAvatar, + GnBadge, + GnChip, + GnChipGroup, + GnDescriptionList, + GnEmptyState, GnInput, GnModal, GnPageHeader, + GnProgress, + GnSearchField, GnTabs, + GnToolbar, GnToastProvider, useToast } from "gnexus-ui-kit/vue"; @@ -14,21 +24,40 @@ const DemoScreen = { components: { GnButton, + GnActivityLog, + GnAvatar, + GnBadge, + GnChip, + GnChipGroup, + GnDescriptionList, + GnEmptyState, GnInput, GnModal, GnPageHeader, + GnProgress, + GnSearchField, GnTabs }, setup() { const activeTab = ref("overview"); const modalOpen = ref(false); const name = ref("Launch Plan"); + const query = ref(""); const toast = useToast(); const tabs = [ { id: "overview", label: "Overview", icon: "ph-chart-bar" }, { id: "activity", label: "Activity", icon: "ph-clock" } ]; + const details = [ + { key: "owner", term: "Owner", value: "Ops Console" }, + { key: "status", term: "Status", value: "Active" }, + { key: "region", term: "Region", value: "eu-central" } + ]; + const activity = [ + { key: "created", time: "10:12", title: "Workspace created" }, + { key: "synced", time: "10:18", title: "Tokens synced" } + ]; const save = () => { toast.success({ title: "Saved", text: `${name.value} updated` }); @@ -37,8 +66,11 @@ return { activeTab, + activity, + details, modalOpen, name, + query, tabs, save }; @@ -59,16 +91,47 @@
+ + + +
+ +
+
+ + + +
+