@smartsoft001/claude-plugins 2.114.0 → 2.115.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/claude-plugins",
3
- "version": "2.114.0",
3
+ "version": "2.115.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "smart",
3
3
  "description": "Smartsoft integration - safety validation, audit logging, and auto-formatting hooks",
4
- "version": "2.114.0"
4
+ "version": "2.115.0"
5
5
  }
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: angular-components
3
+ description: Build UI in end-user projects using @smartsoft001/angular components. Knows available components and delegates to per-component skills for API details.
4
+ ---
5
+
6
+ # Angular Components Agent
7
+
8
+ Agent for building UI in end-user Angular projects using components from `@smartsoft001/angular`.
9
+
10
+ ## When to Use
11
+
12
+ Use this agent when a developer needs to:
13
+
14
+ - Build a page or feature UI using `@smartsoft001/angular` components
15
+ - Choose the right component for a UI requirement
16
+ - Get correct usage, imports, and options for a component
17
+
18
+ ## Available Components
19
+
20
+ | Component | Skill | Selector | Description |
21
+ | --------- | --------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------- |
22
+ | Button | `angular-components-button` | `<smart-button>` | Button with shapes (standard/rounded/circular), variants (primary/secondary/soft), sizes, color palette |
23
+ | Icon | — | `<smart-icon>` | SVG icon component (spinner) |
24
+
25
+ ## Skills to Use
26
+
27
+ When a user asks about a specific component, **always delegate to the per-component skill** for detailed API, usage examples, and options:
28
+
29
+ - **Button** → use skill `angular-components-button`
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ npm i @smartsoft001/angular
35
+ ```
36
+
37
+ ## Import Pattern
38
+
39
+ ```typescript
40
+ import { ButtonComponent } from '@smartsoft001/angular';
41
+ ```
42
+
43
+ ## Shared Types
44
+
45
+ All components use shared types from `@smartsoft001/angular`:
46
+
47
+ - `SmartVariant` — `'primary' | 'secondary' | 'soft'`
48
+ - `SmartSize` — `'xs' | 'sm' | 'md' | 'lg' | 'xl'`
49
+ - `SmartColor` — 22 Tailwind color names (default: `'indigo'`)
50
+
51
+ ## Styling
52
+
53
+ - Tailwind CSS v4 with `smart:` prefix
54
+ - Dark mode via `dark:smart:` prefix
55
+ - External classes via `class` input
@@ -0,0 +1,109 @@
1
+ ---
2
+ name: angular-components-button
3
+ description: Button component API, variants, and usage patterns for @smartsoft001/angular
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Button Component
8
+
9
+ Standalone Angular button component with multiple shapes, variants, sizes, and color palette support.
10
+
11
+ ## API
12
+
13
+ ### Selector
14
+
15
+ `<smart-button>` (wrapper) or directly: `<smart-button-standard>`, `<smart-button-rounded>`, `<smart-button-circular>`
16
+
17
+ ### Inputs
18
+
19
+ | Input | Type | Default | Description |
20
+ | ---------- | ---------------- | -------- | ------------------------------------------- |
21
+ | `options` | `IButtonOptions` | required | Button configuration |
22
+ | `disabled` | `boolean` | `false` | Disabled state |
23
+ | `class` | `string` | `''` | External CSS classes (alias for `cssClass`) |
24
+
25
+ ### IButtonOptions
26
+
27
+ ```typescript
28
+ interface IButtonOptions {
29
+ type?: 'submit' | 'button';
30
+ confirm?: boolean;
31
+ click: () => void;
32
+ loading?: Signal<boolean>;
33
+ variant?: SmartVariant; // 'primary' | 'secondary' | 'soft'
34
+ size?: SmartSize; // 'xs' | 'sm' | 'md' | 'lg' | 'xl'
35
+ color?: SmartColor; // 22 Tailwind colors, default 'indigo'
36
+ rounded?: boolean; // Use rounded shape
37
+ circular?: boolean; // Use circular (icon-only) shape
38
+ }
39
+ ```
40
+
41
+ ## Shapes
42
+
43
+ ### Standard (`<smart-button-standard>`)
44
+
45
+ - Border radius based on size: `smart:rounded-sm` (xs/sm), `smart:rounded-md` (md/lg/xl)
46
+ - Supports confirm mode (cancel/confirm buttons)
47
+
48
+ ### Rounded (`<smart-button-rounded>`)
49
+
50
+ - Always `smart:rounded-full`
51
+ - Supports confirm mode
52
+
53
+ ### Circular (`<smart-button-circular>`)
54
+
55
+ - Always `smart:rounded-full`, padding only (no px/py)
56
+ - Icon-only — pass SVG as `<ng-content>`
57
+ - No confirm mode
58
+
59
+ ## Variants (via `variant` option)
60
+
61
+ - **primary** — colored background (`smart:bg-{color}-600`), white text
62
+ - **secondary** — white background, gray border (`smart:inset-ring`), gray text
63
+ - **soft** — light colored background (`smart:bg-{color}-50`), colored text
64
+
65
+ ## Color Palette
66
+
67
+ Uses `COMPONENT_COLORS` from `models/colors.ts`. All 22 Tailwind colors supported. Default: `indigo`.
68
+
69
+ ## Usage Examples
70
+
71
+ ```html
72
+ <!-- Standard primary -->
73
+ <smart-button [options]="{ click: onClick, variant: 'primary', size: 'md' }">
74
+ Click me
75
+ </smart-button>
76
+
77
+ <!-- Rounded secondary with color -->
78
+ <smart-button
79
+ [options]="{ click: onClick, variant: 'secondary', size: 'lg', rounded: true, color: 'red' }"
80
+ >
81
+ Delete
82
+ </smart-button>
83
+
84
+ <!-- Circular with icon -->
85
+ <smart-button [options]="{ click: onClick, circular: true }">
86
+ <svg>...</svg>
87
+ </smart-button>
88
+
89
+ <!-- With loading -->
90
+ <smart-button [options]="{ click: onClick, loading: loadingSignal }">
91
+ Save
92
+ </smart-button>
93
+
94
+ <!-- With confirm -->
95
+ <smart-button
96
+ [options]="{ click: onDelete, confirm: true, variant: 'primary', color: 'red' }"
97
+ >
98
+ Delete
99
+ </smart-button>
100
+
101
+ <!-- With external class -->
102
+ <smart-button class="smart:mt-4" [options]="opts">Submit</smart-button>
103
+ ```
104
+
105
+ ## Related
106
+
107
+ - Icon component: `packages/shared/angular/src/lib/components/icon/` (spinner SVG)
108
+ - Color map: `packages/shared/angular/src/lib/models/colors.ts` (`COMPONENT_COLORS`)
109
+ - Shared types: `SmartVariant`, `SmartSize`, `SmartColor` in `models/interfaces.ts`