@smartsoft001/claude-plugins 2.125.0 → 2.126.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.
Files changed (47) hide show
  1. package/package.json +1 -1
  2. package/plugins/smart/.claude-plugin/plugin.json +1 -1
  3. package/plugins/smart/skills/angular-components-accordion/SKILL.md +38 -0
  4. package/plugins/smart/skills/angular-components-action-panel/SKILL.md +49 -0
  5. package/plugins/smart/skills/angular-components-avatar/SKILL.md +8 -0
  6. package/plugins/smart/skills/angular-components-badge/SKILL.md +47 -3
  7. package/plugins/smart/skills/angular-components-breadcrumbs/SKILL.md +9 -0
  8. package/plugins/smart/skills/angular-components-button/SKILL.md +18 -0
  9. package/plugins/smart/skills/angular-components-button-group/SKILL.md +11 -0
  10. package/plugins/smart/skills/angular-components-calendar/SKILL.md +7 -0
  11. package/plugins/smart/skills/angular-components-card/SKILL.md +20 -0
  12. package/plugins/smart/skills/angular-components-card-heading/SKILL.md +59 -0
  13. package/plugins/smart/skills/angular-components-command-palette/SKILL.md +47 -0
  14. package/plugins/smart/skills/angular-components-container/SKILL.md +31 -0
  15. package/plugins/smart/skills/angular-components-date-edit/SKILL.md +26 -0
  16. package/plugins/smart/skills/angular-components-date-range/SKILL.md +34 -0
  17. package/plugins/smart/skills/angular-components-description-list/SKILL.md +22 -0
  18. package/plugins/smart/skills/angular-components-detail/SKILL.md +49 -0
  19. package/plugins/smart/skills/angular-components-divider/SKILL.md +23 -0
  20. package/plugins/smart/skills/angular-components-drawer/SKILL.md +10 -0
  21. package/plugins/smart/skills/angular-components-dropdown/SKILL.md +8 -0
  22. package/plugins/smart/skills/angular-components-empty-state/SKILL.md +5 -0
  23. package/plugins/smart/skills/angular-components-feed/SKILL.md +9 -0
  24. package/plugins/smart/skills/angular-components-form/SKILL.md +28 -0
  25. package/plugins/smart/skills/angular-components-grid-list/SKILL.md +33 -0
  26. package/plugins/smart/skills/angular-components-icon/SKILL.md +131 -0
  27. package/plugins/smart/skills/angular-components-info/SKILL.md +8 -0
  28. package/plugins/smart/skills/angular-components-input/SKILL.md +56 -0
  29. package/plugins/smart/skills/angular-components-list/SKILL.md +50 -0
  30. package/plugins/smart/skills/angular-components-media-object/SKILL.md +53 -0
  31. package/plugins/smart/skills/angular-components-modal/SKILL.md +11 -0
  32. package/plugins/smart/skills/angular-components-multi-column-layout/SKILL.md +44 -0
  33. package/plugins/smart/skills/angular-components-navbar/SKILL.md +21 -0
  34. package/plugins/smart/skills/angular-components-notification/SKILL.md +16 -1
  35. package/plugins/smart/skills/angular-components-page/SKILL.md +58 -0
  36. package/plugins/smart/skills/angular-components-page-heading/SKILL.md +78 -0
  37. package/plugins/smart/skills/angular-components-paging/SKILL.md +50 -0
  38. package/plugins/smart/skills/angular-components-progress-bars/SKILL.md +13 -0
  39. package/plugins/smart/skills/angular-components-section-heading/SKILL.md +36 -0
  40. package/plugins/smart/skills/angular-components-sidebar-layout/SKILL.md +45 -0
  41. package/plugins/smart/skills/angular-components-sign-in-form/SKILL.md +39 -0
  42. package/plugins/smart/skills/angular-components-stacked-layout/SKILL.md +41 -0
  43. package/plugins/smart/skills/angular-components-stats/SKILL.md +43 -0
  44. package/plugins/smart/skills/angular-components-tabs/SKILL.md +43 -0
  45. package/plugins/smart/skills/angular-components-toggle/SKILL.md +42 -0
  46. package/plugins/smart/skills/angular-components-vertical-navigation/SKILL.md +5 -0
  47. package/plugins/smart/skills/smart-crud/SKILL.md +212 -0
@@ -196,6 +196,28 @@ export class MyCustomDescriptionListComponent extends DescriptionListBaseCompone
196
196
  />
197
197
  ```
198
198
 
199
+ ## Preset
200
+
201
+ `DescriptionListPresetComponent` (`<smart-description-list-preset>`) is a styled drop-in replacement for the barebones standard component. It renders the same structure with Tailwind utility classes (every class carries the `smart:` prefix, with explicit `smart:dark:*` twins):
202
+
203
+ - Optional header (`data-role="header"`): title as `<h3>` (`text-base font-semibold text-gray-900 dark:text-white`) and description as `<p>` (`text-sm text-gray-500 dark:text-gray-400`). Rendered only when title or description is set.
204
+ - List (`data-role="list"`): the `<dl>` carries `divide-y divide-gray-200 dark:divide-gray-700`; the external `cssClass` is merged onto it.
205
+ - Rows (`data-role="row"`): `grid py-3 sm:grid-cols-3 sm:gap-4` with `<dt>` (`data-role="term"`, `text-sm font-medium text-gray-500 dark:text-gray-400`) and `<dd>` (`data-role="value"`, `text-sm text-gray-900 dark:text-white sm:col-span-2`). `valueTpl` wins over `value`; `actionTpl` renders right-aligned inside `data-role="action"`.
206
+ - Optional `attachmentsTpl` (`data-role="attachments"`) and `footerTpl` (`data-role="footer"`) render as separate sections below the list.
207
+
208
+ Because the wrapper forwards inputs canonically through `NgComponentOutlet`, the preset declares `override cssClass = input<string>('')` (dropping the inherited `class` alias). Register it through the token to restyle every `<smart-description-list>`:
209
+
210
+ ```typescript
211
+ providers: [
212
+ {
213
+ provide: DESCRIPTION_LIST_STANDARD_COMPONENT_TOKEN,
214
+ useValue: DescriptionListPresetComponent,
215
+ },
216
+ ];
217
+ ```
218
+
219
+ No new `IDescriptionListOptions` fields are introduced; the preset consumes the existing API. Class recipes live in `preset/preset-classes.util.ts` (not exported from the barrel).
220
+
199
221
  ## File Locations
200
222
 
201
223
  - Wrapper: `packages/shared/angular/src/lib/components/description-list/description-list.component.ts`
@@ -95,6 +95,55 @@ providers: [
95
95
 
96
96
  Maps are merged (`{ ...baseMap, ...extendMap }`), so only selected types need to be overridden.
97
97
 
98
+ ## Preline field presets
99
+
100
+ Fifteen field types ship a Preline-styled **preset** (`Detail<Field>PresetComponent`, selector
101
+ `smart-detail-<field>-preset`) alongside the default sub-component, living in `<field>/preset/`:
102
+
103
+ | FieldType | Preset | Look |
104
+ | --------------- | ------------------------------------ | ------------------------------------------------------------ |
105
+ | `email` | `DetailEmailPresetComponent` | `mailto:` link, blue + `hover:underline`, envelope icon |
106
+ | `enum` | `DetailEnumPresetComponent` | Values as soft blue badges (reuses badge preset recipes) |
107
+ | `flag` | `DetailFlagPresetComponent` | Soft badge — green ✓ / red ✗ (reuses badge preset recipes) |
108
+ | `color` | `DetailColorPresetComponent` | `size-6` rounded swatch + monospace hex code |
109
+ | `address` | `DetailAddressPresetComponent` | Multi-line `text-sm` block with pin icon |
110
+ | `dateRange` | `DetailDateRangePresetComponent` | `start – end` as two soft gray chips |
111
+ | `phoneNumberPl` | `DetailPhoneNumberPlPresetComponent` | `tel:` link styled as a soft blue badge |
112
+ | `logo` | `DetailLogoPresetComponent` | `<img>` `max-h-10 object-contain` |
113
+ | `image` | `DetailImagePresetComponent` | 150×150 preview, `rounded-xl`, border + `shadow-2xs` |
114
+ | `video` | `DetailVideoPresetComponent` | `<video controls>` framed `rounded-xl` border + `shadow-2xs` |
115
+ | `attachment` | `DetailAttachmentPresetComponent` | File chip: icon, file name (`fileName`/`name`), download |
116
+ | `pdf` | `DetailPdfPresetComponent` | File chip: red PDF icon, file name, show button |
117
+ | `text` | `DetailTextPresetComponent` | `text-sm` typography, `text-pretty`; em-dash when empty |
118
+ | `object` | `DetailObjectPresetComponent` | Card envelope around the untouched nested details |
119
+ | `array` | `DetailArrayPresetComponent` | `space-y-2` stack of item cards; em-dash when empty |
120
+
121
+ Apply them via the ready-made partial map:
122
+
123
+ ```typescript
124
+ import {
125
+ DETAIL_FIELD_COMPONENTS_TOKEN,
126
+ DETAIL_PRESET_FIELD_COMPONENTS,
127
+ } from '@smartsoft001/angular';
128
+
129
+ providers: [
130
+ {
131
+ provide: DETAIL_FIELD_COMPONENTS_TOKEN,
132
+ useValue: DETAIL_PRESET_FIELD_COMPONENTS,
133
+ },
134
+ ];
135
+ ```
136
+
137
+ Notes:
138
+
139
+ - The map is partial — all other field types keep their standard components (maps merge over `baseMap`).
140
+ Registering `text` in the map does NOT change the fallback for unmapped/unknown types — the map is
141
+ keyed per `FieldType`, so those still fall back to the standard `DetailTextComponent`.
142
+ - Unlike their standard components, the `text` and `array` presets render an em-dash placeholder when
143
+ the value is empty (the standard components collapse to nothing).
144
+ - The presets have a fixed look; `IDetailOptions` carries no per-field style channel (deliberate,
145
+ matches the fidelity-gap deferral from the Preline group).
146
+
98
147
  ## Extending the Base Class
99
148
 
100
149
  ```typescript
@@ -23,6 +23,28 @@ Main wrapper component. Renders `DividerStandardComponent` by default. When `DIV
23
23
 
24
24
  Default concrete implementation. Renders a `<div role="separator">` host with optional title, label, action button, or a plain `<hr />` when none of these are provided.
25
25
 
26
+ ### DividerPresetComponent (`<smart-divider-preset>`)
27
+
28
+ Styled variation that extends `DividerBaseComponent` and is a drop-in replacement for `DividerStandardComponent`. Register it via `DIVIDER_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-divider>`, or use the `<smart-divider-preset>` selector directly. It translates Preline's divider patterns to `smart:`-prefixed Tailwind (with explicit `dark:` variants): a plain `<hr>`, an inline `label`/`iconName`/`title` divider with connecting line(s) drawn left/center/right via `options.position` (default `center`), a centered `actionLabel` button, and a `with-toolbar` row (label + line + action). The visual is chosen by `options.variant`; when omitted it is **inferred** from the provided inputs (`actionLabel` → `with-button`, `title` → `with-title`, `iconName` → `with-icon`, `label` → `with-label`, otherwise plain `<hr>`). The `with-title` variant uses Preline's uppercase/muted "Or" treatment. Class recipes live in `preset/preset-classes.util.ts` (`getContainerClasses`, `getActionClasses`, `getIconClasses`, `getPlainClasses`, `getToolbarClasses`, `getToolbarLineClasses`).
29
+
30
+ > Because `DividerComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `DividerPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-divider-preset>` selector directly, or just pass `class` on `<smart-divider>` (the wrapper forwards it).
31
+ >
32
+ > Note: `iconName` has no icon-font dependency here — it is rendered as the text content of a `size-4` icon slot, so consumers wiring an icon font (e.g. Material Icons) get the correct sizing.
33
+
34
+ ```typescript
35
+ import {
36
+ DIVIDER_STANDARD_COMPONENT_TOKEN,
37
+ DividerPresetComponent,
38
+ } from '@smartsoft001/angular';
39
+
40
+ providers: [
41
+ {
42
+ provide: DIVIDER_STANDARD_COMPONENT_TOKEN,
43
+ useValue: DividerPresetComponent,
44
+ },
45
+ ];
46
+ ```
47
+
26
48
  ### DividerBaseComponent (abstract)
27
49
 
28
50
  Abstract base directive for extending custom divider implementations.
@@ -126,6 +148,7 @@ export class MyCustomDividerComponent extends DividerBaseComponent {}
126
148
 
127
149
  - Wrapper: `packages/shared/angular/src/lib/components/divider/divider.component.ts`
128
150
  - Standard: `packages/shared/angular/src/lib/components/divider/standard/standard.component.ts`
151
+ - Preset: `packages/shared/angular/src/lib/components/divider/preset/preset.component.ts` (classes: `preset/preset-classes.util.ts`)
129
152
  - Base class: `packages/shared/angular/src/lib/components/divider/base/base.component.ts`
130
153
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`DIVIDER_STANDARD_COMPONENT_TOKEN`)
131
154
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IDividerOptions`, `SmartDividerVariant`)
@@ -23,6 +23,14 @@ Main wrapper component. Renders `DrawerStandardComponent` by default. When `DRAW
23
23
 
24
24
  Barebones placeholder concrete implementation. When `open()` is `true`, renders an optional overlay `<div class="drawer-overlay">` (when `options.withOverlay`) and an `<aside role="dialog" aria-modal="true">` with a `data-position` attribute (`left` or `right`, default `right`). When a `title` is provided, the aside includes a `<header>` with an `<h2 id="smart-drawer-title">` and a close `<button aria-label="Close">`. Projected content is rendered via `<ng-content />`. It does not include Tailwind UI styling — it exists solely as the default structural placeholder until a custom implementation is registered through the token.
25
25
 
26
+ ### DrawerPresetComponent (`<smart-drawer-preset>`)
27
+
28
+ Fully-styled variation that extends `DrawerBaseComponent` and is a drop-in replacement for `DrawerStandardComponent`. Register it via `DRAWER_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-drawer>`, or use the `<smart-drawer-preset>` selector directly. It renders the translated Preline **offcanvas** look: a fixed, sliding side panel (`role="dialog"`, `aria-modal="true"`, `tabindex="-1"`) with a header (title + circular close button with the Preline X icon), a `<ng-content />` body, and an optional dimmed backdrop. It consumes `options.position` (`left`/`right`, default `right` → `data-position` + start/end placement), `options.wide` (`max-w-xs` → `max-w-md`), `options.withOverlay` (renders a click-to-close backdrop), and `options.brandedHeader` (blue header bar with inverted title/close styling). Open/close is Angular-driven via the `open` model + `@if` and `close()` (no Preline JS runtime). All classes are `smart:`-prefixed Tailwind with explicit `dark:` variants. The class recipes live in `preset/preset-classes.util.ts` (`getDrawerPanelClasses`, `getDrawerBackdropClasses`, `getDrawerHeaderClasses`, `getDrawerTitleClasses`, `getDrawerCloseClasses`, `getDrawerBodyClasses`).
29
+
30
+ > Because `DrawerComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `DrawerPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-drawer-preset>` selector directly, or just pass `class` on `<smart-drawer>` (the wrapper forwards it).
31
+ >
32
+ > The preset uses `<ng-content />` for its body, which works with the `<smart-drawer-preset>` selector directly but is **not** propagated when rendered through `DRAWER_STANDARD_COMPONENT_TOKEN` (see "Content Projection Limitation"). It does not consume `options.stickyFooter` (no footer slot in the base API) or `options.variant` (content-type variants are projected via `<ng-content />`, not built into the offcanvas shell). Top/bottom placements from the Preline reference are not expressible — `IDrawerOptions.position` is `left | right` only.
33
+
26
34
  ### DrawerBaseComponent (abstract)
27
35
 
28
36
  Abstract base directive for extending custom drawer implementations. Exposes `open` as a two-way `ModelSignal<boolean>` (default `false`), `title` as an `InputSignal<string | undefined>`, `options` as an `InputSignal<IDrawerOptions | undefined>`, `cssClass` as an `InputSignal<string>` (with alias `class`), a `closed` output, and a `close()` method that sets `open` to `false` and emits `closed`.
@@ -189,6 +197,8 @@ When extending the base directly, remember to:
189
197
 
190
198
  - Wrapper: `packages/shared/angular/src/lib/components/drawer/drawer.component.ts`
191
199
  - Standard: `packages/shared/angular/src/lib/components/drawer/standard/standard.component.ts`
200
+ - Preset variation: `packages/shared/angular/src/lib/components/drawer/preset/preset.component.ts`
201
+ - Preset class recipes: `packages/shared/angular/src/lib/components/drawer/preset/preset-classes.util.ts`
192
202
  - Base class: `packages/shared/angular/src/lib/components/drawer/base/base.component.ts`
193
203
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`DRAWER_STANDARD_COMPONENT_TOKEN`)
194
204
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IDrawerOptions`, `SmartDrawerVariant`)
@@ -23,6 +23,12 @@ Main wrapper component. Renders `DropdownStandardComponent` by default. When `DR
23
23
 
24
24
  Default concrete implementation. Renders a trigger button and a menu list using modern Angular control flow.
25
25
 
26
+ ### DropdownPresetComponent (`<smart-dropdown-preset>`)
27
+
28
+ Fully styled variation that extends `DropdownBaseComponent` and is a drop-in replacement for `DropdownStandardComponent`. Register it via `DROPDOWN_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-dropdown>`, or use the `<smart-dropdown-preset>` selector directly. Renders a trigger button (with a rotating chevron) and a menu, dispatched through `options.variant` (default `'simple'`): `simple`, `with-dividers` (items split into divider-separated groups), `with-icons` (renders each `item.icon` string), `with-header` (a header block from `options.headerLabel`, items shown with icons), and `minimal` (borderless ghost trigger). All classes are `smart:`-prefixed Tailwind with explicit `dark:` variants. Open/close is driven by the inherited `open` signal + a `(click)` toggle and `@if` — Preline's JS plugin is NOT used, but its visual classes and ARIA (`aria-haspopup="menu"`, `aria-expanded`) are preserved. The class recipes live in `preset/preset-classes.util.ts` (`getDropdownTriggerClasses`, `getDropdownMenuClasses`, `getDropdownChevronClasses`).
29
+
30
+ > Because `DropdownComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `DropdownPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-dropdown-preset>` selector directly, or just pass `class` on `<smart-dropdown>` (the wrapper forwards it).
31
+
26
32
  ### DropdownBaseComponent (abstract)
27
33
 
28
34
  Abstract base directive for extending custom dropdown implementations.
@@ -165,6 +171,8 @@ export class MyCustomDropdownComponent extends DropdownBaseComponent {}
165
171
 
166
172
  - Wrapper: `packages/shared/angular/src/lib/components/dropdown/dropdown.component.ts`
167
173
  - Standard: `packages/shared/angular/src/lib/components/dropdown/standard/standard.component.ts`
174
+ - Preset: `packages/shared/angular/src/lib/components/dropdown/preset/preset.component.ts` (recipes in `preset/preset-classes.util.ts`)
175
+ - Stories: `packages/shared/angular/src/lib/components/dropdown/dropdown.component.stories.ts`
168
176
  - Base class: `packages/shared/angular/src/lib/components/dropdown/base/base.component.ts`
169
177
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`DROPDOWN_STANDARD_COMPONENT_TOKEN`)
170
178
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IDropdownItem`, `IDropdownOptions`, `SmartDropdownVariant`)
@@ -23,6 +23,10 @@ Main wrapper. Delegates to `EmptyStateStandardComponent` by default. When `EMPTY
23
23
 
24
24
  Barebones placeholder using native HTML. Renders an outer wrapper with `cssClass`, a `<div class="empty-state">` containing optional `iconTpl` (rendered via `NgTemplateOutlet`), `<h3 class="title">{{ options.title }}</h3>`, `<p class="description">{{ options.description }}</p>`, an optional `formTpl` slot, an optional row of action buttons or anchors (`<button class="action variant-{variant}">` or `<a>` when `action.href` provided), an optional list of items (`<a class="item-link">` when `item.href` provided, otherwise `<button class="item-button">`) with title / description / meta / icon / image, and an optional footer link.
25
25
 
26
+ ### EmptyStatePresetComponent (`<smart-empty-state-preset>`)
27
+
28
+ Fully-styled drop-in replacement for `EmptyStateStandardComponent`, adapting Preline's "Invoice Table Empty State" centered block: a rounded icon tile (`iconTpl`), title, description, a "Learn more" text link (`footerLinkLabel` / `footerLinkHref`) and a row of action buttons. Optional `items` render as a simple bordered list so it stays a full drop-in. All Tailwind classes are `smart:`-prefixed with explicit `dark:` variants. Action `variant` maps to: `primary` (blue button), `secondary` (white/layer button), `ghost` (text + hover) and `link` (inline blue link). Register through `EMPTY_STATE_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-empty-state>`, or use the selector directly. Like every preset it declares `override cssClass = input<string>('')` (no `class` alias) so `NgComponentOutlet` binds `cssClass` by its canonical name.
29
+
26
30
  ### EmptyStateBaseComponent (abstract)
27
31
 
28
32
  Abstract base directive. Exposes:
@@ -193,6 +197,7 @@ export class MyCustomEmptyStateComponent extends EmptyStateBaseComponent {
193
197
 
194
198
  - Wrapper: `packages/shared/angular/src/lib/components/empty-state/empty-state.component.ts`
195
199
  - Standard: `packages/shared/angular/src/lib/components/empty-state/standard/standard.component.ts`
200
+ - Preset: `packages/shared/angular/src/lib/components/empty-state/preset/preset.component.ts`
196
201
  - Base class: `packages/shared/angular/src/lib/components/empty-state/base/base.component.ts`
197
202
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`EMPTY_STATE_STANDARD_COMPONENT_TOKEN`)
198
203
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IEmptyStateOptions`, `IEmptyStateAction`, `IEmptyStateItem`, `SmartEmptyStateLayout`)
@@ -23,6 +23,12 @@ Main wrapper component. Renders `FeedStandardComponent` by default. When `FEED_S
23
23
 
24
24
  Barebones placeholder concrete implementation. Renders a wrapper `<div>` containing an optional `<h3 class="title">`, optional `<p class="description">`, and a `<ol role="list">` with one `<li class="event">` per event. Each event renders the icon/avatar (icon template wins over avatar URL), an optional `<time class="timestamp">`, the title (rendered as `<a class="title">` if `href` is provided, otherwise `<span class="title">`), an optional description, and a nested `<ul class="comments">` with one `<li class="comment">` per comment (avatar, author name, optional timestamp, content). When events list is empty, the optional `emptyTpl` is rendered inside `<div class="empty">`. An optional `commentSubmitTpl` renders inside `<div class="comment-submit">`. A bottom `footerTpl` renders inside `<div class="footer">`. The external `cssClass` is applied to the root wrapper. It does not include any visual styling — it exists solely as the default structural placeholder until a custom implementation is registered through the token.
25
25
 
26
+ ### FeedPresetComponent (`<smart-feed-preset>`)
27
+
28
+ Styled variation that extends `FeedBaseComponent` and is a drop-in replacement for `FeedStandardComponent`. Register it via `FEED_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-feed>`, or use the `<smart-feed-preset>` selector directly. It renders the Preline timeline look in vanilla Tailwind: a vertical rail (drawn with an `after:` pseudo-element, hidden on the last item) with a per-event circular marker, a left-hand side timestamp column, the event title (rendered as a link when `href` is set), an event description, and nested comments shown as Preline-style author rows. The marker chooses `iconTpl` first, then `avatarUrl` (image), then a default dot. Comments render the author avatar when `authorAvatarUrl` is set, otherwise an initials fallback derived from the first letter of `authorName`. The `emptyTpl`, `commentSubmitTpl`, and `footerTpl` slots are honored. All classes are `smart:`-prefixed Tailwind with explicit `dark:` variants; the class recipes live in `preset/preset-classes.util.ts`.
29
+
30
+ > Because `FeedComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `FeedPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-feed-preset>` selector directly, or just pass `class` on `<smart-feed>` (the wrapper forwards it).
31
+
26
32
  ### FeedBaseComponent (abstract)
27
33
 
28
34
  Abstract base directive for extending custom feed implementations. Exposes `options` as an `InputSignal<IFeedOptions | undefined>` and `cssClass` as an `InputSignal<string>` (with alias `class`).
@@ -194,6 +200,9 @@ export class MyCustomFeedComponent extends FeedBaseComponent {
194
200
 
195
201
  - Wrapper: `packages/shared/angular/src/lib/components/feed/feed.component.ts`
196
202
  - Standard: `packages/shared/angular/src/lib/components/feed/standard/standard.component.ts`
203
+ - Preset variation: `packages/shared/angular/src/lib/components/feed/preset/preset.component.ts`
204
+ - Preset class recipes: `packages/shared/angular/src/lib/components/feed/preset/preset-classes.util.ts`
197
205
  - Base class: `packages/shared/angular/src/lib/components/feed/base/base.component.ts`
206
+ - Stories: `packages/shared/angular/src/lib/components/feed/feed.component.stories.ts`
198
207
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`FEED_STANDARD_COMPONENT_TOKEN`)
199
208
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IFeedOptions`, `IFeedEvent`, `IFeedComment`, `SmartFeedVariant`)
@@ -150,10 +150,38 @@ export class MyCustomFormComponent extends FormBaseComponent<any> {}
150
150
 
151
151
  Each field is rendered via `<smart-input>`. Per-field dispatch by `FieldType` is handled inside `<smart-input>` itself. See the `angular-components-input` skill for per-field details.
152
152
 
153
+ ## Preset
154
+
155
+ `FormPresetComponent` (`<smart-form-preset>`) is a styled, drop-in replacement for `FormStandardComponent`. It extends the standard component and reuses all of its logic (field iteration, statuses, submit-on-enter, and the value/valid/partial outputs on the wrapper). The preset only restyles the **shell**: the form root gets a vertical rhythm (`smart:space-y-5`) and each field row is wrapped in a `data-role="field"` element (with the field key on `data-key`); the root carries `data-role="form"`.
156
+
157
+ **The form preset does NOT restyle field internals.** Each field is still rendered by `<smart-input>`, so to get the full styled look, register the input presets alongside it. The recommended duet provides both tokens:
158
+
159
+ ```typescript
160
+ import {
161
+ FormPresetComponent,
162
+ FORM_STANDARD_COMPONENT_TOKEN,
163
+ } from '@smartsoft001/angular';
164
+ import {
165
+ INPUT_FIELD_COMPONENTS_TOKEN,
166
+ INPUT_PRESET_FIELD_COMPONENTS,
167
+ } from '@smartsoft001/angular';
168
+
169
+ providers: [
170
+ { provide: FORM_STANDARD_COMPONENT_TOKEN, useValue: FormPresetComponent },
171
+ {
172
+ provide: INPUT_FIELD_COMPONENTS_TOKEN,
173
+ useValue: INPUT_PRESET_FIELD_COMPONENTS,
174
+ },
175
+ ];
176
+ ```
177
+
178
+ Providing only `FORM_STANDARD_COMPONENT_TOKEN` restyles the form layout but leaves the inputs in their default look. The preset keeps the inherited `class` alias, so `<smart-form class="…">` still lands external classes on the form root.
179
+
153
180
  ## File Locations
154
181
 
155
182
  - Wrapper: `packages/shared/angular/src/lib/components/form/form.component.ts`
156
183
  - Standard: `packages/shared/angular/src/lib/components/form/standard/standard.component.ts`
184
+ - Preset: `packages/shared/angular/src/lib/components/form/preset/preset.component.ts`
157
185
  - Base class: `packages/shared/angular/src/lib/components/form/base/base.component.ts`
158
186
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`FORM_STANDARD_COMPONENT_TOKEN`)
159
187
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IFormOptions`)
@@ -213,3 +213,36 @@ export class MyCustomGridListComponent extends GridListBaseComponent {
213
213
  - Base class: `packages/shared/angular/src/lib/components/grid-list/base/base.component.ts`
214
214
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`GRID_LIST_STANDARD_COMPONENT_TOKEN`)
215
215
  - Interfaces: `packages/shared/angular/src/lib/models/interfaces.ts` (`IGridListOptions`, `IGridListItem`, `SmartGridListLayout`, `SmartGridListColumns`)
216
+
217
+ ## Preset
218
+
219
+ `GridListPresetComponent` (`<smart-grid-list-preset>`) is a styled drop-in replacement for the barebones standard component, built entirely with vanilla Tailwind utilities (every class carries the `smart:` prefix) and explicit `smart:dark:*` twins in the same template. It extends `GridListStandardComponent` and reads the same `IGridListOptions` — no new options fields are introduced.
220
+
221
+ Layout:
222
+
223
+ - Optional `title` / `description` render as a header block above the grid.
224
+ - The grid is `smart:grid smart:grid-cols-1`, widened responsively from `columns` (`smart:sm:grid-cols-2` from `sm`, then `smart:lg:grid-cols-<n>` from `lg`; `1`/unset stays single-column) and spaced from `gap` (`sm`→`smart:gap-3`, `md`/default→`smart:gap-4`, `lg`→`smart:gap-6`).
225
+ - Each item is a bordered rounded card. `layout` drives the interior arrangement: `cards` (default) stacks media on top of the body, `horizontal` places media inline to the left of the body, `logos` centers a contained logo above a centered caption.
226
+ - Per item: `iconTpl` (wins over `imageUrl`) or `imageUrl` render as the media slot; the title renders as a link with a `smart:hover:text-blue-600` accent when `href` is set, otherwise plain text; `badgeTpl` sits beside the title; `description` renders under it; `actionTpl` renders in a bordered tile footer.
227
+ - Empty items render `emptyTpl` or a centered default message; `footerTpl` renders below the grid.
228
+
229
+ Every zone is addressable via `data-role` hooks: `header`, `grid`, `item`, `media`, `title`, `description`, `badge`, `action`, `empty`, `footer`.
230
+
231
+ Register it through the token to restyle every `<smart-grid-list>`:
232
+
233
+ ```typescript
234
+ providers: [
235
+ {
236
+ provide: GRID_LIST_STANDARD_COMPONENT_TOKEN,
237
+ useValue: GridListPresetComponent,
238
+ },
239
+ ];
240
+ ```
241
+
242
+ Because `GridListComponent` forwards inputs canonically through `NgComponentOutlet`, the preset overrides `cssClass` to drop the inherited `class` alias (`override cssClass = input<string>('')`); the value is merged onto the root wrapper.
243
+
244
+ Class recipes live in `preset/preset-classes.util.ts` (`getGridListColumnsClasses`, `getGridListGapClasses`, `getGridListGridClasses`, `getGridListTileClasses`, `getGridListMediaClasses`) and are intentionally not re-exported from the barrel to avoid `export *` collisions.
245
+
246
+ Documented gaps: `layout` only affects the tile interior arrangement (not per-item overrides); there is no built-in pagination or selection state.
247
+
248
+ - Preset: `packages/shared/angular/src/lib/components/grid-list/preset/preset.component.ts`
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: angular-components-icon
3
+ description: Icon component API, IconName glyph set, template override, and the styled Preset variation for @smartsoft001/angular
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Icon Component
8
+
9
+ Inline SVG glyph primitive. `<smart-icon>` dispatches over a fixed `IconName`
10
+ set via `@switch`, rendering one of the standalone glyph components. Unlike the
11
+ other component groups the icon has **no `*_STANDARD_COMPONENT_TOKEN`** and **no
12
+ `IIconOptions`** — it is configured entirely through direct inputs.
13
+
14
+ ## When to Use This Skill
15
+
16
+ - Developer needs a built-in glyph (spinner, chevron) → use `<smart-icon>`
17
+ - Developer wants to inline a custom SVG through the same API → pass `[template]`
18
+ - Developer wants a styled icon in a box/badge surface → use `<smart-icon-preset>`
19
+
20
+ ## Public API
21
+
22
+ ### `smart-icon`
23
+
24
+ | Input | Type | Default | Description |
25
+ | ---------- | ---------------------------- | ----------- | -------------------------------------- |
26
+ | `name` | `IconName` | `undefined` | Which built-in glyph to render |
27
+ | `template` | `TemplateRef<unknown>\|null` | `null` | Custom SVG; overrides `name` when set |
28
+ | `class` | `string` | `''` | Extra CSS class forwarded to the glyph |
29
+
30
+ `class` is the alias of the internal `cssClass` input (`input('', { alias: 'class' })`).
31
+
32
+ ### IconName
33
+
34
+ ```typescript
35
+ type IconName = 'spinner' | 'chevron-down' | 'chevron-up';
36
+ ```
37
+
38
+ Each value maps to a standalone component (`smart-icon-spinner`,
39
+ `smart-icon-chevron-down`, `smart-icon-chevron-up`) that renders a raw `<svg>`
40
+ with `smart:`-prefixed Tailwind sizing.
41
+
42
+ ### Dispatch
43
+
44
+ The wrapper picks the branch with `@switch (name())`; when `template()` is set it
45
+ renders `[ngTemplateOutlet]` instead and ignores `name`.
46
+
47
+ ## Usage
48
+
49
+ ```html
50
+ <!-- Built-in glyph -->
51
+ <smart-icon name="spinner"></smart-icon>
52
+
53
+ <!-- Restyle via the class alias -->
54
+ <smart-icon
55
+ name="chevron-down"
56
+ class="smart:size-8 smart:text-red-500"
57
+ ></smart-icon>
58
+
59
+ <!-- Custom SVG through the template override -->
60
+ <ng-template #heart>
61
+ <svg
62
+ viewBox="0 0 24 24"
63
+ fill="currentColor"
64
+ class="smart:size-8 smart:text-pink-500"
65
+ >
66
+ <path d="..." />
67
+ </svg>
68
+ </ng-template>
69
+ <smart-icon [template]="heart"></smart-icon>
70
+ ```
71
+
72
+ ## Preset
73
+
74
+ `<smart-icon-preset>` (`IconPresetComponent`) composes `<smart-icon>` inside a
75
+ themed container. It is **composition, not inheritance** — it does not extend the
76
+ base icon; it renders one and wraps it. Because there is no token, the preset is
77
+ used through its selector directly (there is nothing to register).
78
+
79
+ ### Inputs
80
+
81
+ | Input | Type | Default | Description |
82
+ | ---------- | ---------------------------- | ----------- | ----------------------------------- |
83
+ | `name` | `IconName` | `'spinner'` | Glyph rendered by the inner icon |
84
+ | `template` | `TemplateRef<unknown>\|null` | `null` | Custom SVG override |
85
+ | `variant` | `IconPresetVariant` | `'plain'` | Container treatment |
86
+ | `size` | `IconPresetSize` | `'md'` | Glyph footprint + box padding |
87
+ | `class` | `string` | `''` | Extra class merged on the container |
88
+
89
+ ### Variants (`IconPresetVariant`)
90
+
91
+ | Variant | Surface |
92
+ | ----------- | ---------------------------------------------------------------------------- |
93
+ | `plain` | No box — icon sits inline (inline-flex, centered) |
94
+ | `contained` | Bordered white square (`rounded-lg`, gray border, `shadow-2xs`) + dark twins |
95
+ | `soft` | Tinted round pill (`rounded-full`, `bg-blue-50`, blue text) + dark twins |
96
+
97
+ ### Sizes (`IconPresetSize`)
98
+
99
+ | Size | Glyph | Box padding |
100
+ | ---- | -------------- | ------------- |
101
+ | `sm` | `smart:size-4` | `smart:p-1.5` |
102
+ | `md` | `smart:size-5` | `smart:p-2` |
103
+ | `lg` | `smart:size-6` | `smart:p-2.5` |
104
+
105
+ `plain` ignores the padding (no box). The container is exposed via
106
+ `data-role="icon-preset"` for testing.
107
+
108
+ ```html
109
+ <smart-icon-preset
110
+ variant="soft"
111
+ name="chevron-down"
112
+ size="lg"
113
+ ></smart-icon-preset>
114
+ ```
115
+
116
+ ## Documented Gaps / Limitations
117
+
118
+ - **No token and no `IIconOptions`** by design — the icon and its preset are
119
+ configured through direct inputs only, so `<smart-icon>` cannot be globally
120
+ reskinned the way token-driven components can.
121
+ - The `IconName` set is closed; new built-in glyphs require a new standalone
122
+ glyph component plus a `@switch` branch. For one-off SVGs use `[template]`.
123
+
124
+ ## File Locations
125
+
126
+ - Wrapper: `packages/shared/angular/src/lib/components/icon/icon.component.ts`
127
+ - Base + `IconName`: `packages/shared/angular/src/lib/components/icon/base/base.component.ts`
128
+ - Glyphs: `packages/shared/angular/src/lib/components/icon/{spinner,chevron-down,chevron-up}/`
129
+ - Preset: `packages/shared/angular/src/lib/components/icon/preset/preset.component.ts`
130
+ - Preset classes: `packages/shared/angular/src/lib/components/icon/preset/preset-classes.util.ts`
131
+ - Stories: `packages/shared/angular/src/lib/components/icon/icon.component.stories.ts`
@@ -28,6 +28,12 @@ Default concrete implementation. Renders:
28
28
  - Tailwind-styled container with `smart:dark:*` dark-mode classes,
29
29
  - a `document:click` listener that closes the popover on outside click.
30
30
 
31
+ ### InfoPresetComponent (`<smart-info-preset>`)
32
+
33
+ Styled variation that extends `InfoBaseComponent` and is a drop-in replacement for `InfoStandardComponent`. Register it via `INFO_STANDARD_COMPONENT_TOKEN` to restyle every `<smart-info>`, or use the `<smart-info-preset>` selector directly. It renders the Preline **Tooltip** look: a circular icon toggle plus a small tooltip bubble. Visibility is driven by Angular hover/focus (`(mouseenter)`/`(mouseleave)` + `(focus)`/`(blur)`) using the inherited `isOpen` signal and `@if` — Preline's JS plugin is not installed. It keeps the translated Preline visual classes, exposes a `placement` input (`'top'` (default) | `'bottom'` | `'left'` | `'right'`) for tooltip position, and renders `role="tooltip"` with `aria-describedby` wiring on the toggle. All classes are `smart:`-prefixed Tailwind with explicit `dark:` variants. The class recipes live in `preset/preset-classes.util.ts` (`getInfoContainerClasses`, `getInfoToggleClasses`, `getInfoTooltipClasses`).
34
+
35
+ > Because `InfoComponent` renders injected components via `NgComponentOutlet` (which passes inputs by canonical name), `InfoPresetComponent` overrides `cssClass` as `input<string>('')` **without** the `class` alias. Bind it as `[cssClass]` when using the `<smart-info-preset>` selector directly, or just pass `class` on `<smart-info>` (the wrapper forwards it). The `placement` input is only available on the preset selector directly — the `<smart-info>` wrapper forwards only `options` and `cssClass`, so through the token tooltips default to `'top'`.
36
+
31
37
  ### InfoBaseComponent (abstract)
32
38
 
33
39
  Abstract base directive for extending custom info implementations. Exposes `options`, `cssClass`, `isOpen` signal, and `toggle()`/`open()`/`close()` methods.
@@ -155,6 +161,8 @@ When extending the base directly, remember to:
155
161
 
156
162
  - Wrapper: `packages/shared/angular/src/lib/components/info/info.component.ts`
157
163
  - Standard: `packages/shared/angular/src/lib/components/info/standard/standard.component.ts`
164
+ - Preset variation: `packages/shared/angular/src/lib/components/info/preset/preset.component.ts`
165
+ - Preset class recipes: `packages/shared/angular/src/lib/components/info/preset/preset-classes.util.ts`
158
166
  - Base class: `packages/shared/angular/src/lib/components/info/base/base.component.ts`
159
167
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`INFO_STANDARD_COMPONENT_TOKEN`)
160
168
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IInfoOptions`)
@@ -126,6 +126,62 @@ providers: [
126
126
 
127
127
  Maps are merged (`{ ...baseMap, ...extendMap }`), so only selected types need to be overridden.
128
128
 
129
+ ## Preline field presets
130
+
131
+ Each field type ships a Preline-styled **preset** (`Input<Field>PresetComponent`, selector
132
+ `smart-input-<field>-preset`) alongside the default Tailwind-UI-styled field component. The
133
+ presets live in `<field>/preset/` and all translate the Preline look to `smart:`-prefixed vanilla
134
+ Tailwind with explicit `dark:` variants. Apply them by providing the ready-made map
135
+ `INPUT_PRESET_FIELD_COMPONENTS` for the token (it covers all field types except the standalone
136
+ validation-message preset):
137
+
138
+ ```typescript
139
+ import {
140
+ INPUT_FIELD_COMPONENTS_TOKEN,
141
+ INPUT_PRESET_FIELD_COMPONENTS,
142
+ } from '@smartsoft001/angular';
143
+
144
+ providers: [
145
+ {
146
+ provide: INPUT_FIELD_COMPONENTS_TOKEN,
147
+ useValue: INPUT_PRESET_FIELD_COMPONENTS,
148
+ },
149
+ // or override only some: { ...INPUT_PRESET_FIELD_COMPONENTS, [FieldType.text]: MyText }
150
+ ];
151
+ ```
152
+
153
+ `INPUT_PRESET_FIELD_COMPONENTS` maps **every** `FieldType` that ships an input component
154
+ (`dateTime` has no input component, so it has no map entry). The field-type presets and their
155
+ selectors mirror the default components in the table above (`smart-input-<field>-preset`), including
156
+ the most recently added ones:
157
+
158
+ | FieldType | Preset component | Selector | Look |
159
+ | --------- | ----------------------------- | ---------------------------- | --------------------------------------------------------------- |
160
+ | `color` | `InputColorPresetComponent` | `smart-input-color-preset` | Native color input in a rounded frame + swatch + hex |
161
+ | `object` | `InputObjectPresetComponent` | `smart-input-object-preset` | Styled card frame around the nested form (unchanged nesting) |
162
+ | `address` | `InputAddressPresetComponent` | `smart-input-address-preset` | Responsive grid of Preline text sub-inputs (street/no/zip/city) |
163
+ | `flag` | `InputFlagPresetComponent` | `smart-input-flag-preset` | Preline checkbox (blue checked state) + inline label |
164
+ | `pdf` | `InputPdfPresetComponent` | `smart-input-pdf-preset` | Dashed drop-zone (accept `.pdf`) + show/delete preview |
165
+ | `video` | `InputVideoPresetComponent` | `smart-input-video-preset` | Dashed drop-zone (accept `.mp4`) + play/delete + `<video>` |
166
+ | `array` | `InputArrayPresetComponent` | `smart-input-array-preset` | Item cards (`space-y-2`), outline add / ghost-red remove |
167
+
168
+ Notes:
169
+
170
+ - Interactive Preline widgets (enum select, password strength meter, date pickers, file
171
+ drop-zone) are driven by Angular signals — the Preline JS plugins are **not** required.
172
+ - File-based presets (`pdf`, `video`, plus `file`/`image`/`attachment`) keep the hidden
173
+ `#inputObj` file input and reuse `InputFileBaseComponent`'s upload/button wiring; the drop-zone
174
+ and drag-and-drop are added on top.
175
+ - `object` reuses `FORM_COMPONENT_TOKEN` and the `NgComponentOutlet`/`DynamicIoDirective` nesting of
176
+ the default component — only the surrounding frame is styled, the nested rendering is untouched.
177
+ - `array` extends the concrete `InputArrayComponent` (add/remove/CVA logic untouched); each item is
178
+ a card, the empty state renders an em dash, and both add and remove buttons hide when
179
+ `fieldOptions().possibilities.static` is true.
180
+ - `InputErrorPresetComponent` (`smart-input-error-preset`) is a Preline-styled validation-message
181
+ variant. Because `InputComponent` hard-codes `<smart-input-error>` (no token for it), use this
182
+ preset via its selector directly — it is not part of `INPUT_PRESET_FIELD_COMPONENTS`, and wiring
183
+ it into the wrapper is out of scope.
184
+
129
185
  ## Extending the Base Class
130
186
 
131
187
  ```typescript
@@ -176,6 +176,56 @@ providers: [
176
176
  ];
177
177
  ```
178
178
 
179
+ ## Preline mode presets
180
+
181
+ Every mode ships a Preline-styled **preset** alongside the default child:
182
+
183
+ | ListMode | Preset | Look |
184
+ | ------------- | -------------------------------- | ----------------------------------------------------------------------- |
185
+ | `desktop` | `ListDesktopPresetComponent` | Preline table (`smart-list-desktop-preset`), styling via `presentation` |
186
+ | `mobile` | `ListMobilePresetComponent` | Responsive card grid (`smart-list-mobile-preset`), image → card image |
187
+ | `masonryGrid` | `ListMasonryGridPresetComponent` | Masonry card columns (`smart-list-masonry-grid-preset`), image → card |
188
+
189
+ Apply them via the ready-made map (covers all three modes):
190
+
191
+ ```typescript
192
+ import {
193
+ LIST_MODE_COMPONENTS_TOKEN,
194
+ LIST_PRESET_MODE_COMPONENTS,
195
+ } from '@smartsoft001/angular';
196
+
197
+ providers: [
198
+ {
199
+ provide: LIST_MODE_COMPONENTS_TOKEN,
200
+ useValue: LIST_PRESET_MODE_COMPONENTS,
201
+ },
202
+ ];
203
+ ```
204
+
205
+ The desktop preset reads the optional `IListOptions.presentation` field:
206
+
207
+ ```typescript
208
+ presentation?: {
209
+ variant?: 'default' | 'striped' | 'bordered' | 'borderless';
210
+ hoverable?: boolean;
211
+ header?: 'default' | 'muted' | 'none';
212
+ };
213
+ ```
214
+
215
+ Notes:
216
+
217
+ - `presentation` is consumed only by the desktop preset; the standard components ignore it.
218
+ - The mobile preset maps fields onto card anatomy: `FieldType.image`/`logo` → card image, first
219
+ non-image field → title, remaining fields → body text; the item action renders as the card's
220
+ primary button (label i18n key: `details`).
221
+ - The masonryGrid preset keeps the base masonry column algorithm and image mechanism
222
+ (`NgOptimizedImage` from the model's image field) and restyles items with the same card recipe as
223
+ the mobile preset; it has no item action buttons (matching the standard masonry child).
224
+ - Preline "Table with search" / "with pagination" / "selectable rows" variants are covered by the
225
+ existing `searchbar` feature, `smart-paging` (`PaginationMode.singlePage`), and `select: 'multi'`
226
+ respectively — not by `presentation`. Table caption/footer variants are not supported (no API
227
+ channel in `IListOptions`).
228
+
179
229
  ## Extending the Base Class
180
230
 
181
231
  ```typescript
@@ -137,3 +137,56 @@ export class MyCustomMediaObjectComponent extends MediaObjectBaseComponent {}
137
137
  - Base class: `packages/shared/angular/src/lib/components/media-object/base/base.component.ts`
138
138
  - Token: `packages/shared/angular/src/lib/shared.inectors.ts` (`MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN`)
139
139
  - Interface: `packages/shared/angular/src/lib/models/interfaces.ts` (`IMediaObjectOptions`)
140
+
141
+ ## Preset
142
+
143
+ `MediaObjectPresetComponent` (selector `smart-media-object-preset`) is a styled,
144
+ drop-in replacement for the standard component. It extends
145
+ `MediaObjectStandardComponent` and reuses the same inputs
146
+ (`mediaUrl`, `mediaAlt`, `options`, `class`), so registering it through the
147
+ token restyles every `<smart-media-object>`.
148
+
149
+ Look: a flex row (`smart:flex smart:gap-4`) with a rounded, cover-fitted
150
+ thumbnail (`smart:size-16 smart:rounded-lg smart:object-cover smart:shrink-0`)
151
+ beside small, muted body text (`smart:text-sm smart:text-gray-700
152
+ smart:dark:text-gray-300`). All utilities are `smart:`-prefixed and dark-mode
153
+ aware.
154
+
155
+ `IMediaObjectOptions` drives every variant (no new fields):
156
+
157
+ - `position: 'right'` reverses the row (`smart:flex-row-reverse`).
158
+ - `alignment: 'top' | 'center' | 'bottom'` maps to
159
+ `smart:items-start | items-center | items-end`; `'stretched'` instead makes
160
+ the media fill the row height (`smart:self-stretch smart:h-auto`).
161
+ - `responsive: true` stacks into a column on mobile then rows out from `sm`
162
+ (`smart:flex-col smart:sm:flex-row`, reversed when `position: 'right'`).
163
+ - `nested: true` tightens the gap to `smart:gap-3` and indents with
164
+ `smart:mt-4`.
165
+ - `wide: true` widens the thumbnail to `smart:w-32` (keeping a `smart:h-16`
166
+ height).
167
+
168
+ `data-role` hooks (`root`, `media`, `body`) and the `data-position` /
169
+ `data-alignment` attributes are exposed for testing and targeting; the
170
+ `smart-media-object-body` marker class is preserved for content projection
171
+ parity with the standard component.
172
+
173
+ Register it as the standard replacement:
174
+
175
+ ```ts
176
+ import { MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN } from '@smartsoft001/angular';
177
+ import { MediaObjectPresetComponent } from '@smartsoft001/angular';
178
+
179
+ providers: [
180
+ {
181
+ provide: MEDIA_OBJECT_STANDARD_COMPONENT_TOKEN,
182
+ useValue: MediaObjectPresetComponent,
183
+ },
184
+ ],
185
+ ```
186
+
187
+ Class recipes live in `media-object/preset/preset-classes.util.ts`
188
+ (`getMediaObjectRootClasses`, `getMediaObjectMediaClasses`,
189
+ `getMediaObjectBodyClasses`).
190
+
191
+ Gaps: the media is always an `<img>` (no icon/video slot), and `wide` uses a
192
+ fixed `w-32`/`h-16` footprint rather than an intrinsic aspect ratio.