@smartsoft001/claude-plugins 2.201.0 → 2.203.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 (114) hide show
  1. package/package.json +1 -1
  2. package/plugins/smart-angular/.claude-plugin/plugin.json +1 -1
  3. package/plugins/smart-angular/skills/angular-components-accordion/SKILL.md +84 -80
  4. package/plugins/smart-angular/skills/angular-components-action-panel/SKILL.md +35 -60
  5. package/plugins/smart-angular/skills/angular-components-alert/SKILL.md +24 -29
  6. package/plugins/smart-angular/skills/angular-components-avatar/SKILL.md +30 -30
  7. package/plugins/smart-angular/skills/angular-components-badge/SKILL.md +18 -12
  8. package/plugins/smart-angular/skills/angular-components-breadcrumbs/SKILL.md +27 -10
  9. package/plugins/smart-angular/skills/angular-components-button/SKILL.md +43 -17
  10. package/plugins/smart-angular/skills/angular-components-button-group/SKILL.md +26 -14
  11. package/plugins/smart-angular/skills/angular-components-calendar/SKILL.md +47 -28
  12. package/plugins/smart-angular/skills/angular-components-card/SKILL.md +29 -22
  13. package/plugins/smart-angular/skills/angular-components-card-heading/SKILL.md +24 -18
  14. package/plugins/smart-angular/skills/angular-components-command-palette/SKILL.md +41 -32
  15. package/plugins/smart-angular/skills/angular-components-container/SKILL.md +21 -20
  16. package/plugins/smart-angular/skills/angular-components-date-edit/SKILL.md +48 -45
  17. package/plugins/smart-angular/skills/angular-components-date-range/SKILL.md +72 -82
  18. package/plugins/smart-angular/skills/angular-components-description-list/SKILL.md +23 -10
  19. package/plugins/smart-angular/skills/angular-components-detail/SKILL.md +20 -8
  20. package/plugins/smart-angular/skills/angular-components-details/SKILL.md +64 -13
  21. package/plugins/smart-angular/skills/angular-components-divider/SKILL.md +36 -18
  22. package/plugins/smart-angular/skills/angular-components-drawer/SKILL.md +28 -23
  23. package/plugins/smart-angular/skills/angular-components-dropdown/SKILL.md +35 -16
  24. package/plugins/smart-angular/skills/angular-components-empty-state/SKILL.md +49 -11
  25. package/plugins/smart-angular/skills/angular-components-feed/SKILL.md +45 -12
  26. package/plugins/smart-angular/skills/angular-components-form/SKILL.md +53 -25
  27. package/plugins/smart-angular/skills/angular-components-grid-list/SKILL.md +37 -13
  28. package/plugins/smart-angular/skills/angular-components-icon/SKILL.md +8 -8
  29. package/plugins/smart-angular/skills/angular-components-info/SKILL.md +19 -15
  30. package/plugins/smart-angular/skills/angular-components-input/SKILL.md +86 -49
  31. package/plugins/smart-angular/skills/angular-components-list/SKILL.md +131 -81
  32. package/plugins/smart-angular/skills/angular-components-list-container/SKILL.md +24 -32
  33. package/plugins/smart-angular/skills/angular-components-media-object/SKILL.md +19 -17
  34. package/plugins/smart-angular/skills/angular-components-modal/SKILL.md +78 -17
  35. package/plugins/smart-angular/skills/angular-components-multi-column-layout/SKILL.md +19 -16
  36. package/plugins/smart-angular/skills/angular-components-navbar/SKILL.md +38 -21
  37. package/plugins/smart-angular/skills/angular-components-notification/SKILL.md +32 -33
  38. package/plugins/smart-angular/skills/angular-components-page/SKILL.md +48 -52
  39. package/plugins/smart-angular/skills/angular-components-page-heading/SKILL.md +42 -25
  40. package/plugins/smart-angular/skills/angular-components-paging/SKILL.md +17 -15
  41. package/plugins/smart-angular/skills/angular-components-password-strength/SKILL.md +21 -19
  42. package/plugins/smart-angular/skills/angular-components-progress-bars/SKILL.md +61 -24
  43. package/plugins/smart-angular/skills/angular-components-searchbar/SKILL.md +30 -37
  44. package/plugins/smart-angular/skills/angular-components-section-heading/SKILL.md +38 -27
  45. package/plugins/smart-angular/skills/angular-components-select-menu/SKILL.md +33 -17
  46. package/plugins/smart-angular/skills/angular-components-sidebar-layout/SKILL.md +30 -26
  47. package/plugins/smart-angular/skills/angular-components-sidebar-navigation/SKILL.md +79 -16
  48. package/plugins/smart-angular/skills/angular-components-sign-in-form/SKILL.md +64 -24
  49. package/plugins/smart-angular/skills/angular-components-stacked-layout/SKILL.md +24 -23
  50. package/plugins/smart-angular/skills/angular-components-stacked-list/SKILL.md +40 -21
  51. package/plugins/smart-angular/skills/angular-components-stats/SKILL.md +28 -15
  52. package/plugins/smart-angular/skills/angular-components-table/SKILL.md +42 -22
  53. package/plugins/smart-angular/skills/angular-components-tabs/SKILL.md +37 -13
  54. package/plugins/smart-angular/skills/angular-components-textarea/SKILL.md +48 -46
  55. package/plugins/smart-angular/skills/angular-components-toggle/SKILL.md +21 -28
  56. package/plugins/smart-angular/skills/angular-components-vertical-navigation/SKILL.md +66 -24
  57. package/plugins/smart-angular/skills/smart-crud/SKILL.md +5 -2
  58. package/plugins/smart-core/.claude-plugin/plugin.json +1 -1
  59. package/plugins/smart-react/.claude-plugin/plugin.json +1 -1
  60. package/plugins/smart-react/skills/react-components-action-panel/SKILL.md +13 -13
  61. package/plugins/smart-react/skills/react-components-alert/SKILL.md +2 -2
  62. package/plugins/smart-react/skills/react-components-avatar/SKILL.md +11 -11
  63. package/plugins/smart-react/skills/react-components-badge/SKILL.md +2 -2
  64. package/plugins/smart-react/skills/react-components-breadcrumbs/SKILL.md +7 -7
  65. package/plugins/smart-react/skills/react-components-button/SKILL.md +20 -20
  66. package/plugins/smart-react/skills/react-components-button-group/SKILL.md +2 -2
  67. package/plugins/smart-react/skills/react-components-calendar/SKILL.md +13 -13
  68. package/plugins/smart-react/skills/react-components-card/SKILL.md +1 -1
  69. package/plugins/smart-react/skills/react-components-card-heading/SKILL.md +2 -2
  70. package/plugins/smart-react/skills/react-components-command-palette/SKILL.md +3 -3
  71. package/plugins/smart-react/skills/react-components-container/SKILL.md +6 -6
  72. package/plugins/smart-react/skills/react-components-date-edit/SKILL.md +1 -1
  73. package/plugins/smart-react/skills/react-components-date-range/SKILL.md +4 -4
  74. package/plugins/smart-react/skills/react-components-description-list/SKILL.md +1 -1
  75. package/plugins/smart-react/skills/react-components-detail/SKILL.md +25 -16
  76. package/plugins/smart-react/skills/react-components-details/SKILL.md +16 -16
  77. package/plugins/smart-react/skills/react-components-divider/SKILL.md +6 -6
  78. package/plugins/smart-react/skills/react-components-drawer/SKILL.md +1 -1
  79. package/plugins/smart-react/skills/react-components-dropdown/SKILL.md +1 -1
  80. package/plugins/smart-react/skills/react-components-empty-state/SKILL.md +1 -1
  81. package/plugins/smart-react/skills/react-components-feed/SKILL.md +1 -1
  82. package/plugins/smart-react/skills/react-components-grid-list/SKILL.md +1 -1
  83. package/plugins/smart-react/skills/react-components-info/SKILL.md +3 -1
  84. package/plugins/smart-react/skills/react-components-input/SKILL.md +51 -17
  85. package/plugins/smart-react/skills/react-components-list/SKILL.md +81 -45
  86. package/plugins/smart-react/skills/react-components-list-container/SKILL.md +6 -6
  87. package/plugins/smart-react/skills/react-components-loader/SKILL.md +1 -1
  88. package/plugins/smart-react/skills/react-components-media-object/SKILL.md +1 -1
  89. package/plugins/smart-react/skills/react-components-modal/SKILL.md +10 -10
  90. package/plugins/smart-react/skills/react-components-multi-column-layout/SKILL.md +1 -1
  91. package/plugins/smart-react/skills/react-components-navbar/SKILL.md +1 -1
  92. package/plugins/smart-react/skills/react-components-notification/SKILL.md +9 -9
  93. package/plugins/smart-react/skills/react-components-overlays/SKILL.md +3 -3
  94. package/plugins/smart-react/skills/react-components-page/SKILL.md +5 -5
  95. package/plugins/smart-react/skills/react-components-page-heading/SKILL.md +6 -6
  96. package/plugins/smart-react/skills/react-components-paging/SKILL.md +28 -28
  97. package/plugins/smart-react/skills/react-components-password-strength/SKILL.md +4 -4
  98. package/plugins/smart-react/skills/react-components-progress-bars/SKILL.md +19 -19
  99. package/plugins/smart-react/skills/react-components-searchbar/SKILL.md +10 -10
  100. package/plugins/smart-react/skills/react-components-section-heading/SKILL.md +13 -13
  101. package/plugins/smart-react/skills/react-components-select-menu/SKILL.md +19 -19
  102. package/plugins/smart-react/skills/react-components-sidebar-layout/SKILL.md +9 -9
  103. package/plugins/smart-react/skills/react-components-sidebar-navigation/SKILL.md +29 -29
  104. package/plugins/smart-react/skills/react-components-sign-in-form/SKILL.md +3 -3
  105. package/plugins/smart-react/skills/react-components-stacked-layout/SKILL.md +1 -1
  106. package/plugins/smart-react/skills/react-components-stacked-list/SKILL.md +2 -2
  107. package/plugins/smart-react/skills/react-components-stats/SKILL.md +2 -2
  108. package/plugins/smart-react/skills/react-components-table/SKILL.md +1 -1
  109. package/plugins/smart-react/skills/react-components-tabs/SKILL.md +2 -2
  110. package/plugins/smart-react/skills/react-components-textarea/SKILL.md +8 -8
  111. package/plugins/smart-react/skills/react-components-toggle/SKILL.md +3 -2
  112. package/plugins/smart-react/skills/react-components-vertical-navigation/SKILL.md +9 -9
  113. package/plugins/smart-react/skills/react-provider/SKILL.md +1 -1
  114. package/plugins/smart-react/skills/smart-crud-react/SKILL.md +2 -2
@@ -67,11 +67,11 @@ Payload of `onActionClick`.
67
67
 
68
68
  ### `IModalAction`
69
69
 
70
- | Field | Type | Default | Description |
71
- | ---------- | ------------------------- | ------------ | --------------------------------------------- |
72
- | `id` | `string` | required | Reported as `actionId`. |
73
- | `label` | `string` | required | Button text. |
74
- | `variant?` | `SmartModalActionVariant` | `'centered'` | `primary` (default), `secondary` or `danger`. |
70
+ | Field | Type | Default | Description |
71
+ | ---------- | ------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------ |
72
+ | `id` | `string` | required | Reported as `actionId`. |
73
+ | `label` | `string` | required | Button text. |
74
+ | `variant?` | `SmartModalActionVariant` | `'primary'` | `primary`, `secondary` or `danger`; the standard exposes it as `data-variant`, the preset styles the button by it. |
75
75
 
76
76
  ### Related types
77
77
 
@@ -81,7 +81,7 @@ Payload of `onActionClick`.
81
81
 
82
82
  ## Opening a component in a modal from code
83
83
 
84
- `useModalService().show({ component, props })` opens `component` inside a `SmartModal` rendered by the modal host of `SmartProvider` (see `react-components-overlays`). The component receives its `props` and a `dismiss(data)` prop; `onDidDismiss()` resolves with `{ data }`. `useModalService().dismiss(data)` closes the modal opened last.
84
+ `useModalService().show({ component, props })` opens `component` inside a `SmartModal` with its close button, rendered by the modal host of `SmartProvider` (see `react-components-overlays`, which also describes `mode`, `cssClass` and `backdropDismiss`). The component receives its `props` and a `dismiss(data)` prop; `onDidDismiss()` resolves with `{ data }`, `{ data: null }` when the modal closed itself. `useModalService().dismiss(data)` closes the modal opened last.
85
85
 
86
86
  ```tsx
87
87
  import { SmartButton, useModalService } from '@smartsoft001/react';
@@ -185,7 +185,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
185
185
  }
186
186
  ```
187
187
 
188
- `SmartModalPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartModal`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
188
+ `SmartModalPreset` is the styled (preset) implementation: register it under the `'modal'` key of `SmartProvider`'s `components`, render it directly in place of `SmartModal`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
189
189
 
190
190
  ### The `useModal` hook
191
191
 
@@ -211,7 +211,7 @@ function useModal({
211
211
  ```tsx
212
212
  import { SmartModalProps, useModal } from '@smartsoft001/react';
213
213
 
214
- export function SheetModal(props: SmartModalProps) {
214
+ export function CustomModal(props: SmartModalProps) {
215
215
  const { open, close, invokeAction } = useModal(props);
216
216
 
217
217
  if (!open) return null;
@@ -247,12 +247,12 @@ export function SheetModal(props: SmartModalProps) {
247
247
  }
248
248
  ```
249
249
 
250
- Registered as `components={{ modal: SheetModal }}`, it renders both the `SmartModal`s placed by hand and the modals of `ModalService.show` (which pass `open`, `className` from `cssClass`, `onClosed` and the component as `children`).
250
+ Registered as `components={{ modal: CustomModal }}`, it renders both the `SmartModal`s placed by hand and the modals of `ModalService.show` (which pass `open`, `className` from `cssClass`, `options` with `withDismiss: true`, `onClosed` and the component as `children`).
251
251
 
252
252
  ## Styling
253
253
 
254
254
  - `SmartModalStandard` is always in the DOM as a `<dialog>` and shown through its `open` attribute; its native `close` event closes the modal too. Action buttons carry `data-variant`.
255
- - `SmartModalPreset` renders inline with a `fixed` backdrop over the viewport; a click on the backdrop itself or Escape closes it. It carries `smart:dark:` variants.
255
+ - `SmartModalPreset` renders inline with a `fixed` backdrop over the viewport; a click on the backdrop itself or Escape closes it; with preset modals stacked, Escape closes only the one on top. It carries `smart:dark:` variants.
256
256
 
257
257
  ## File Locations
258
258
 
@@ -116,7 +116,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
116
116
  }
117
117
  ```
118
118
 
119
- `SmartMultiColumnLayoutPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartMultiColumnLayout`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
119
+ `SmartMultiColumnLayoutPreset` is the styled (preset) implementation: register it under the `'multi-column-layout'` key of `SmartProvider`'s `components`, render it directly in place of `SmartMultiColumnLayout`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
120
120
 
121
121
  ```tsx
122
122
  import { SmartMultiColumnLayoutProps } from '@smartsoft001/react';
@@ -131,7 +131,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
131
131
  }
132
132
  ```
133
133
 
134
- `SmartNavbarPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartNavbar`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
134
+ `SmartNavbarPreset` is the styled (preset) implementation: register it under the `'navbar'` key of `SmartProvider`'s `components`, render it directly in place of `SmartNavbar`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
135
135
 
136
136
  ### The `useNavbar` hook
137
137
 
@@ -62,11 +62,11 @@ Payload of `onActionClick`.
62
62
 
63
63
  ### `INotificationAction`
64
64
 
65
- | Field | Type | Default | Description |
66
- | ---------- | -------------------------- | ---------- | ------------------------------ |
67
- | `id` | `string` | required | Reported as `actionId`. |
68
- | `label` | `string` | required | Button text. |
69
- | `variant?` | `'primary' \| 'secondary'` | `'simple'` | `primary` or `secondary` look. |
65
+ | Field | Type | Default | Description |
66
+ | ---------- | -------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------- |
67
+ | `id` | `string` | required | Reported as `actionId`. |
68
+ | `label` | `string` | required | Button text. |
69
+ | `variant?` | `'primary' \| 'secondary'` | `'primary'` | `primary` or `secondary` look; the standard exposes it as `data-variant`, the preset styles the action by it. |
70
70
 
71
71
  ### Related types
72
72
 
@@ -154,7 +154,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
154
154
  }
155
155
  ```
156
156
 
157
- `SmartNotificationPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartNotification`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
157
+ `SmartNotificationPreset` is the styled (preset) implementation: register it under the `'notification'` key of `SmartProvider`'s `components`, render it directly in place of `SmartNotification`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
158
158
 
159
159
  ### The `useNotification` hook
160
160
 
@@ -175,7 +175,7 @@ function useNotification({
175
175
  ```tsx
176
176
  import { SmartNotificationProps, useNotification } from '@smartsoft001/react';
177
177
 
178
- export function BannerNotification(props: SmartNotificationProps) {
178
+ export function CustomNotification(props: SmartNotificationProps) {
179
179
  const { dismiss, invokeAction } = useNotification(props);
180
180
 
181
181
  return (
@@ -205,11 +205,11 @@ export function BannerNotification(props: SmartNotificationProps) {
205
205
  }
206
206
  ```
207
207
 
208
- Registered as `components={{ notification: BannerNotification }}`, it also renders the toasts of `ToastService`.
208
+ Registered as `components={{ notification: CustomNotification }}`, it also renders the toasts of `ToastService`.
209
209
 
210
210
  ## Styling
211
211
 
212
- - Both renderings carry `smart:dark:` variants; the preset renders the six toast looks and labels itself with a `useId()`-based id.
212
+ - `SmartNotificationStandard` is unstyled semantic markup (no classes); `SmartNotificationPreset` renders the six toast looks with `smart:dark:` variants and labels itself with a `useId()`-based id.
213
213
 
214
214
  ## File Locations
215
215
 
@@ -67,9 +67,9 @@ A toast with a title shows the title as the heading and the message under it; wi
67
67
  interface IModalServiceOptions {
68
68
  component: ComponentType<any>; // receives `props` and a `dismiss(data)` prop
69
69
  props?: Record<string, unknown>;
70
- mode?: 'default' | 'bottom'; // not read by SmartModalHost
70
+ mode?: 'default' | 'bottom'; // 'bottom' adds the smart-modal-bottom class
71
71
  cssClass?: string[]; // joined into the SmartModal className
72
- backdropDismiss?: boolean; // not read by SmartModalHost
72
+ backdropDismiss?: boolean; // false: the backdrop and Escape leave it open
73
73
  }
74
74
 
75
75
  interface IModal {
@@ -78,7 +78,7 @@ interface IModal {
78
78
  }
79
79
  ```
80
80
 
81
- `SmartModalHost` renders each request as `<SmartModal open className={cssClass.join(' ')} onClosed={() => dismiss()}>` around `<component {...props} dismiss={dismiss} />`, so closing the modal by its own controls resolves `onDidDismiss()` with `{ data: null }`.
81
+ `SmartModalHost` renders each request in a `<div data-role="modal" data-mode={mode}>` as `<SmartModal open className options={{ withDismiss: true }} onClosed={() => dismiss()}>` around `<component {...props} dismiss={dismiss} />`, its `className` being `cssClass` plus `smart-modal-bottom` for `mode: 'bottom'`. So every modal shows its close button, and closing the modal by its own controls (close button, backdrop, Escape) resolves `onDidDismiss()` with `{ data: null }`. The modals stack in opening order, the last one on top. With `backdropDismiss: false` a click on the backdrop (outside the `role="dialog"` element) is stopped before the modal sees it, and `ModalService` stops Escape at the document while that modal is on top; the close button and `dismiss()` still close it. `smart-modal-bottom` is a class for the application to style (a sheet docked at the bottom); the modal implementations do not style it.
82
82
 
83
83
  ## Usage
84
84
 
@@ -45,10 +45,10 @@ Extends `SmartPageVariantProps`.
45
45
 
46
46
  The props of a page variant (what `<SmartPage>` hands to the resolved component): the options, with `bodyTpl` already merged with the wrapper's children, and the CSS class.
47
47
 
48
- | Prop | Type | Default | Description |
49
- | ------------ | ---------------------- | ------- | ----------------------------------------------------------------------------- |
50
- | `options?` | `IPageOptions \| null` | — | The page options, with `bodyTpl` already set from `children`. |
51
- | `className?` | `string` | — | Classes of the page root (the standard rendering has no root and ignores it). |
48
+ | Prop | Type | Default | Description |
49
+ | ------------ | ---------------------- | ------- | ------------------------------------------------------------- |
50
+ | `options?` | `IPageOptions \| null` | — | The page options, with `bodyTpl` already set from `children`. |
51
+ | `className?` | `string` | — | Classes of the page root (`data-role="page"`). |
52
52
 
53
53
  ### `IPageOptions`
54
54
 
@@ -208,7 +208,7 @@ function usePage();
208
208
 
209
209
  ## Styling
210
210
 
211
- - `SmartPageStandard` renders no wrapper element (header and body are siblings) and does not apply `className`.
211
+ - `SmartPageStandard` renders the header and the body in one root element (`data-role="page"`) and puts `className` on it.
212
212
  - `SmartPagePreset` appends `className` to its root and renders a gray page body with the content in a card, with `smart:dark:` variants.
213
213
 
214
214
  ## File Locations
@@ -6,7 +6,7 @@ user-invocable: false
6
6
 
7
7
  # Page Heading (`SmartPageHeading`)
8
8
 
9
- `SmartPageHeading` renders the heading of a page from `options`: a title and subtitle plus `ReactNode` slots (breadcrumbs, banner, avatar, logo, meta, stats, actions, filters, nav), each rendered only when given. The standard rendering is unstyled: breadcrumbs and banner above a `<header>` with the title and the other slots. `SmartPageHeadingPreset` renders a navbar-like `<header>` (logo or title, desktop nav, actions or avatar, a mobile toggle) laid out by `options.presentation.layout`; it reads only `title`, `logoTpl`, `navTpl`, `actionsTpl`, `avatarTpl` and `presentation`, so the subtitle, breadcrumbs, banner, meta, stats and filters slots are rendered by the standard heading only.
9
+ `SmartPageHeading` renders the heading of a page from `options`: a title and subtitle plus `ReactNode` slots (breadcrumbs, banner, avatar, logo, meta, stats, actions, filters, nav), each rendered only when given. The standard rendering is unstyled: breadcrumbs and banner above a `<header>` with the title and the other slots. `SmartPageHeadingPreset` renders a navbar-like `<header>` (a brand zone with the logo, the title as an `<h1>` and the subtitle, a desktop nav, actions or avatar, a mobile toggle) laid out by `options.presentation.layout`; it reads only `title`, `subtitle`, `logoTpl`, `navTpl`, `actionsTpl`, `avatarTpl` and `presentation`, so the breadcrumbs, banner, meta, stats and filters slots are rendered by the standard heading only.
10
10
 
11
11
  ## When to Use This Skill
12
12
 
@@ -26,7 +26,7 @@ All from `@smartsoft001/react`.
26
26
  | `SmartPageHeadingPreset` | component | HyperUI-styled page heading variation (preset). |
27
27
  | `SmartPageHeadingStandard` | component | The default page heading rendering: unstyled breadcrumbs and banner slots above a `<header>` holding the title, subtitle and the avatar / logo / meta / stats / actions / filters slots. |
28
28
 
29
- The preset's class helpers (`getPageHeadingHeaderClasses`, `getPageHeadingBarClasses`) are exported too, for a custom implementation that wants the preset look.
29
+ The preset's class helpers (`getPageHeadingHeaderClasses`, `getPageHeadingBarClasses`) and the `PageHeadingPresetLayout` type (`'links-left' | 'links-center' | 'links-right' | 'user'`) are exported too, for a custom implementation that wants the preset look.
30
30
 
31
31
  ## Props and Types
32
32
 
@@ -41,15 +41,15 @@ The preset's class helpers (`getPageHeadingHeaderClasses`, `getPageHeadingBarCla
41
41
 
42
42
  | Field | Type | Default | Description |
43
43
  | ----------------- | ------------------------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------- |
44
- | `title?` | `string` | — | The page title (the preset falls back to it when there is no logo). |
45
- | `subtitle?` | `string` | — | Text under the title (standard). |
44
+ | `title?` | `string` | — | The page title, an `<h1>` (the preset puts it in the brand zone, after the logo). |
45
+ | `subtitle?` | `string` | — | Text under the title. |
46
46
  | `breadcrumbsTpl?` | `ReactNode` | — | Breadcrumbs above the header (standard). |
47
47
  | `metaTpl?` | `ReactNode` | — | Meta information: dates, location, counts (standard). |
48
48
  | `avatarTpl?` | `ReactNode` | — | An avatar (the preset's `user` layout shows it in place of the actions). |
49
49
  | `bannerTpl?` | `ReactNode` | — | A banner image above the header (standard). |
50
50
  | `actionsTpl?` | `ReactNode` | — | Action buttons. |
51
51
  | `statsTpl?` | `ReactNode` | — | A stats row (standard). |
52
- | `logoTpl?` | `ReactNode` | — | Brand / logo zone of the preset. |
52
+ | `logoTpl?` | `ReactNode` | — | A logo (the preset's brand zone, before the title). |
53
53
  | `filtersTpl?` | `ReactNode` | — | Filter controls (standard). |
54
54
  | `navTpl?` | `ReactNode` | — | Navigation links (the preset's desktop nav zone and mobile panel). |
55
55
  | `presentation?` | `{ layout?: 'links-left' \| 'links-center' \| 'links-right' \| 'user'; }` | — | `layout` of the preset: `links-left` (default), `links-center`, `links-right` or `user`. |
@@ -117,7 +117,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
117
117
  }
118
118
  ```
119
119
 
120
- `SmartPageHeadingPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartPageHeading`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
120
+ `SmartPageHeadingPreset` is the styled (preset) implementation: register it under the `'page-heading'` key of `SmartProvider`'s `components`, render it directly in place of `SmartPageHeading`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
121
121
 
122
122
  ```tsx
123
123
  import { SmartPageHeadingProps } from '@smartsoft001/react';
@@ -6,7 +6,7 @@ user-invocable: false
6
6
 
7
7
  # Paging (`SmartPaging`)
8
8
 
9
- `SmartPaging` renders pagination controls: previous / next buttons around a page list with `'...'` gaps (all pages up to 7, otherwise the first, the last and the neighbours of the current one), and, in the preset's `card-footer` variant, a "Showing x to y of z results" summary. The page is **owned by the parent**: pass `currentPage` and update it from `onPageChange(page)`. Navigation beyond the first or last page is ignored.
9
+ `SmartPaging` renders pagination controls: previous / next buttons around a page list with `'...'` gaps (all pages up to 7, otherwise the first, the last and the neighbours of the current one), and, in the preset's `card-footer` variant, a "Showing x to y of z results" summary. The page is **owned by the parent**: pass `currentPage` and update it from `onPageChange(page)`. Navigation beyond the first or last page is ignored; clicking the current page still reports it.
10
10
 
11
11
  ## When to Use This Skill
12
12
 
@@ -27,21 +27,21 @@ All from `@smartsoft001/react`.
27
27
  | `SmartPagingStandard` | component | The default paging rendering: translated prev / next buttons around the page list. |
28
28
  | `usePaging` | hook | The behaviour every paging variant shares: the "showing x to y" range, the page list with `'...'` gaps (all pages up to 7, otherwise the first, the last and the neighbours of the current one), and the guarded navigation that reports the requested page through `onPageChange`. |
29
29
 
30
- The preset's class helpers (`getPagingContainerClasses`, `getPagingNavClasses`, `getPagingPageClasses`, `PAGING_ELLIPSIS_CLASSES`, `PAGING_RESULTS_CLASSES`, `PAGING_PAGE_LIST_CLASSES`, `PAGING_NAV_BUTTON_CLASSES`) are exported too, for a custom implementation that wants the preset look.
30
+ The preset's class helpers (`getPagingContainerClasses`, `getPagingNavClasses`, `getPagingPageClasses`, `PAGING_ELLIPSIS_CLASSES`, `PAGING_RESULTS_CLASSES`, `PAGING_PAGE_LIST_CLASSES`, `PAGING_NAV_BUTTON_CLASSES`) and their `SmartPagingPresetVariant` type (the same union as `PagingVariant`) are exported too, for a custom implementation that wants the preset look.
31
31
 
32
32
  ## Props and Types
33
33
 
34
34
  ### `SmartPagingProps`
35
35
 
36
- | Prop | Type | Default | Description |
37
- | --------------- | ------------------------ | --------------- | --------------------------------------------------------------- |
38
- | `currentPage?` | `number` | `1` | The current page, 1-based. |
39
- | `totalPages?` | `number` | `1` | Number of pages. |
40
- | `pageSize?` | `number` | `10` | Items per page, for the summary. |
41
- | `totalItems?` | `number` | `0` | Total number of items, for the summary. |
42
- | `variant?` | `PagingVariant` | `'card-footer'` | The layout (preset); the standard exposes it as `data-variant`. |
43
- | `className?` | `string` | — | Classes on the `<nav>`. |
44
- | `onPageChange?` | `(page: number) => void` | — | Called with the requested page. |
36
+ | Prop | Type | Default | Description |
37
+ | --------------- | ------------------------ | --------------- | ------------------------------------------------------------------ |
38
+ | `currentPage?` | `number` | `1` | The current page, 1-based. |
39
+ | `totalPages?` | `number` | `1` | Number of pages. |
40
+ | `pageSize?` | `number` | `10` | Items per page, for the preset's `card-footer` summary. |
41
+ | `totalItems?` | `number` | `0` | Total number of items, for the preset's `card-footer` summary. |
42
+ | `variant?` | `PagingVariant` | `'card-footer'` | The layout (preset); the standard exposes it as `data-variant`. |
43
+ | `className?` | `string` | — | Classes on the root: the standard's `<nav>`, the preset's `<div>`. |
44
+ | `onPageChange?` | `(page: number) => void` | — | Called with the requested page. |
45
45
 
46
46
  ### Related types
47
47
 
@@ -97,7 +97,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
97
97
  }
98
98
  ```
99
99
 
100
- `SmartPagingPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartPaging`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
100
+ `SmartPagingPreset` is the styled (preset) implementation: register it under the `'paging'` key of `SmartProvider`'s `components`, render it directly in place of `SmartPaging`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
101
101
 
102
102
  ### The `usePaging` hook
103
103
 
@@ -114,21 +114,21 @@ function usePaging({
114
114
  }: SmartPagingProps);
115
115
  ```
116
116
 
117
- | Returns | Type | Description |
118
- | -------------- | ------------------------ | ----------------------------------------------------------------------------- |
119
- | `currentPage` | `number` | `currentPage` with its default. |
120
- | `totalPages` | `number` | `totalPages` with its default. |
121
- | `pageSize` | `number` | `pageSize` with its default. |
122
- | `totalItems` | `number` | `totalItems` with its default. |
123
- | `variant` | `PagingVariant` | `variant` with its default. |
124
- | `showingFrom` | `number` | First item number of the current page. |
125
- | `showingTo` | `number` | Last item number of the current page. |
126
- | `canGoBack` | `boolean` | `currentPage > 1`. |
127
- | `canGoForward` | `boolean` | `currentPage < totalPages`. |
128
- | `pages` | `(number \| "...")[]` | The page numbers to render, with `'...'` gaps. |
129
- | `goToPage` | `(page: number) => void` | Reports a page through `onPageChange` (ignored when out of range or current). |
130
- | `nextPage` | `() => void` | Reports the next page. |
131
- | `previousPage` | `() => void` | Reports the previous page. |
117
+ | Returns | Type | Description |
118
+ | -------------- | ------------------------ | ------------------------------------------------------------------ |
119
+ | `currentPage` | `number` | `currentPage` with its default. |
120
+ | `totalPages` | `number` | `totalPages` with its default. |
121
+ | `pageSize` | `number` | `pageSize` with its default. |
122
+ | `totalItems` | `number` | `totalItems` with its default. |
123
+ | `variant` | `PagingVariant` | `variant` with its default. |
124
+ | `showingFrom` | `number` | First item number of the current page. |
125
+ | `showingTo` | `number` | Last item number of the current page. |
126
+ | `canGoBack` | `boolean` | `currentPage > 1`. |
127
+ | `canGoForward` | `boolean` | `currentPage < totalPages`. |
128
+ | `pages` | `(number \| "...")[]` | The page numbers to render, with `'...'` gaps. |
129
+ | `goToPage` | `(page: number) => void` | Reports a page through `onPageChange` (ignored when out of range). |
130
+ | `nextPage` | `() => void` | Reports the next page. |
131
+ | `previousPage` | `() => void` | Reports the previous page. |
132
132
 
133
133
  ```tsx
134
134
  import { SmartPagingProps, usePaging } from '@smartsoft001/react';
@@ -169,7 +169,7 @@ export function PageSelect(props: SmartPagingProps) {
169
169
 
170
170
  ## Styling
171
171
 
172
- - `SmartPagingStandard` renders translated prev / next buttons and the page list; `SmartPagingPreset` renders the three layouts with `smart:dark:` variants, but its "Showing x to y of z results", "Previous" and "Next" texts are not translated.
172
+ - `SmartPagingStandard` renders translated prev / next buttons and the page list, without a summary (`pageSize`, `totalItems` and `variant` change nothing visible there); `SmartPagingPreset` renders the three layouts with `smart:dark:` variants, but its "Showing x to y of z results", "Previous" and "Next" texts are not translated.
173
173
 
174
174
  ## File Locations
175
175
 
@@ -6,7 +6,7 @@ user-invocable: false
6
6
 
7
7
  # Password Strength (`SmartPasswordStrength`)
8
8
 
9
- `SmartPasswordStrength` rates `passwordToCheck` on four rules (lower-case letters, upper-case letters, symbols, more than 6 characters) and shows a three-bar meter with a translated message (`INPUT.PASSWORD-STRENGTH.poor` / `notGood` / `good`). With `showHint` it lists the rules the password does not meet yet. `onPasswordStrength(strong)` reports whenever the rating changes; `strong` is `true` once all rules are met. There is no preset: the standard meter is already styled.
9
+ `SmartPasswordStrength` rates `passwordToCheck` on four rules (lower-case letters, upper-case letters, symbols, more than 6 characters) and shows a three-bar meter with a translated message (`INPUT.PASSWORD-STRENGTH.poor` / `notGood` / `good`). With `showHint` it lists the rules the password does not meet yet. `onPasswordStrength(strong)` reports once on mount and again whenever the score changes; `strong` is `true` once all rules are met. There is no preset: the standard meter is already styled.
10
10
 
11
11
  ## When to Use This Skill
12
12
 
@@ -106,9 +106,9 @@ function usePasswordStrength({
106
106
  | ------------------ | ------------------------- | ---------------------------------------------------------------------------------------------------------------- |
107
107
  | `result` | `PasswordStrengthResult` | The rules the password meets. |
108
108
  | `strength` | `number` | The score: 10 (poor), 20 (not good), 30 (strong); any other value (an empty password, digits only) is not rated. |
109
- | `strengthIndex` | `0 \| 2 \| 1 \| 3` | `0` poor, `1` not good, `2` good, `3` not rated. |
109
+ | `strengthIndex` | `0 \| 1 \| 2 \| 3` | `0` poor, `1` not good, `2` good, `3` not rated. |
110
110
  | `msg` | `PasswordStrengthMessage` | The message key suffix for `INPUT.PASSWORD-STRENGTH.<msg>`. |
111
- | `barClasses` | `string[]` | The classes of the three bars (filled per strength). |
111
+ | `barClasses` | `string[]` | The classes of the three bars (red, orange or yellow fill per strength, gray when empty). |
112
112
  | `msgClass` | `string` | The colour class of the message. |
113
113
  | `containerClasses` | `string` | The container classes, with `className` appended. |
114
114
 
@@ -136,7 +136,7 @@ export function TextPasswordStrength(props: SmartPasswordStrengthProps) {
136
136
 
137
137
  ## Styling
138
138
 
139
- - The standard meter fills the bars in red / yellow / green tones with `smart:dark:` variants; the container is a third of the width (`smart:w-1/3`, full width below `sm`).
139
+ - The standard meter fills one red bar for poor, two orange bars for not good and three yellow bars for good (gray while not rated), with `smart:dark:` variants; the message takes the same colour. The container is a third of the width (`smart:w-1/3`, full width below `sm`).
140
140
 
141
141
  ## File Locations
142
142
 
@@ -38,15 +38,15 @@ The preset's class helpers (`getProgressBarsColumnClasses`, `isProgressBarsVerti
38
38
 
39
39
  ### `IProgressBarsOptions`
40
40
 
41
- | Field | Type | Default | Description |
42
- | -------------- | ------------------------- | ------------ | -------------------------------------------------------- |
43
- | `layout?` | `SmartProgressBarsLayout` | `'simple'` | A step layout, or `progress-bar` for the percentage bar. |
44
- | `ariaLabel?` | `string` | `'Progress'` | Accessible name of the `<nav>`. |
45
- | `steps?` | `IProgressStep[]` | `[]` | The steps of a step layout. |
46
- | `title?` | `string` | — | Title of the progress bar. |
47
- | `srOnlyTitle?` | `string` | — | Title for screen readers only. |
48
- | `value?` | `number` | `0` | Percentage of the progress bar (0–100). |
49
- | `columns?` | `IProgressBarColumn[]` | `[]` | Captions under the progress bar. |
41
+ | Field | Type | Default | Description |
42
+ | -------------- | ------------------------- | ------------ | ----------------------------------------------------------------------------------------------------- |
43
+ | `layout?` | `SmartProgressBarsLayout` | `'simple'` | A step layout, or `progress-bar` for the percentage bar. |
44
+ | `ariaLabel?` | `string` | `'Progress'` | Accessible name of the step `<nav>`; the preset also puts it on the bar's `role="progressbar"` track. |
45
+ | `steps?` | `IProgressStep[]` | `[]` | The steps of a step layout. |
46
+ | `title?` | `string` | — | Title above the steps or the bar (the preset bar also shows the `value%` next to it). |
47
+ | `srOnlyTitle?` | `string` | — | Bar mode: a heading for screen readers only. |
48
+ | `value?` | `number` | `0` | Bar mode: the percentage, clamped to 0–100. |
49
+ | `columns?` | `IProgressBarColumn[]` | `[]` | Bar mode: captions under the bar. |
50
50
 
51
51
  ### `IProgressStepClick`
52
52
 
@@ -56,15 +56,15 @@ The preset's class helpers (`getProgressBarsColumnClasses`, `isProgressBarsVerti
56
56
 
57
57
  ### `IProgressStep`
58
58
 
59
- | Field | Type | Default | Description |
60
- | -------------- | ------------------------- | -------- | ---------------------------------------------- |
61
- | `id` | `string` | required | Reported as `stepId`. |
62
- | `name?` | `string` | — | Step name. |
63
- | `description?` | `string` | — | Text under the name (layouts "with text"). |
64
- | `status?` | `SmartProgressStepStatus` | — | `complete`, `current` or `upcoming`. |
65
- | `href?` | `string` | — | Renders the step as a link. |
66
- | `iconTpl?` | `ReactNode` | — | Icon of the step. |
67
- | `index?` | `string` | — | Number shown in the step marker (e.g. `'01'`). |
59
+ | Field | Type | Default | Description |
60
+ | -------------- | ------------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------- |
61
+ | `id` | `string` | required | Reported as `stepId`. |
62
+ | `name?` | `string` | — | Step name. |
63
+ | `description?` | `string` | — | Text under the name, in every step layout. |
64
+ | `status?` | `SmartProgressStepStatus` | `'upcoming'` | `complete`, `current` (adds `aria-current="step"`) or `upcoming`. |
65
+ | `href?` | `string` | — | Renders the step as a link (through the navigation adapter for internal paths); no `onStepClick`. |
66
+ | `iconTpl?` | `ReactNode` | — | Icon of the step; the preset shows it in the marker, so not in the `simple` layout. |
67
+ | `index?` | `string` | — | Number of the step (e.g. `'01'`): the standard shows it when there is no `iconTpl`, the preset in circle markers. |
68
68
 
69
69
  ### `IProgressBarColumn`
70
70
 
@@ -150,7 +150,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
150
150
  }
151
151
  ```
152
152
 
153
- `SmartProgressBarsPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartProgressBars`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
153
+ `SmartProgressBarsPreset` is the styled (preset) implementation: register it under the `'progress-bars'` key of `SmartProvider`'s `components`, render it directly in place of `SmartProgressBars`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
154
154
 
155
155
  ```tsx
156
156
  import { SmartProgressBarsProps } from '@smartsoft001/react';
@@ -6,12 +6,12 @@ user-invocable: false
6
6
 
7
7
  # Searchbar (`SmartSearchbar`)
8
8
 
9
- `SmartSearchbar` is a search input whose text is reported **once the typing settles** (`options.debounceTime`, 1000 ms by default) through `onTextChange`. While empty, it hides itself on blur; with `options.showToggleButton` a magnifier button shows it again. Both `text` and `show` can be controlled (`text` / `onTextChange`, `show` / `onShowChange`) or left to the component (`defaultText`, `defaultShow` = `true`). There is no preset.
9
+ `SmartSearchbar` is a search input whose text is reported **once the typing settles** (`options.debounceTime`, 1000 ms by default) through `onTextChange`. While empty, it hides itself on blur; with `options.showToggleButton` a magnifying-glass button shows it again. Both `text` and `show` can be controlled (`text` / `onTextChange`, `show` / `onShowChange`) or left to the component (`defaultText`, `defaultShow` = `true`). There is no preset.
10
10
 
11
11
  ## When to Use This Skill
12
12
 
13
13
  - A search box that filters a list after the user stops typing
14
- - A collapsible search field behind a magnifier button
14
+ - A collapsible search field behind a magnifying-glass button
15
15
  - Providing the application's own search box (the `searchbar` registry key) on `useSearchbar`
16
16
 
17
17
  ## Exports
@@ -41,14 +41,14 @@ All from `@smartsoft001/react`.
41
41
 
42
42
  ### `ISearchbarOptions`
43
43
 
44
- | Field | Type | Default | Description |
45
- | ------------------- | ------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
46
- | `placeholder?` | `string` | `'search'` | Placeholder of the input, passed through the translations (a key or text). |
47
- | `label?` | `string` | — | Declared for implementations of your own; the standard rendering does not read it (give the input a visible label around it, or use your own implementation). |
48
- | `debounceTime?` | `number` | `1000` | Milliseconds the typing has to settle before `onTextChange`. |
49
- | `showToggleButton?` | `boolean` | — | Renders a magnifier button while the field is hidden. |
50
- | `size?` | `SmartSize` | — | Declared for implementations of your own; the standard rendering does not read it. |
51
- | `color?` | `SmartColor` | — | Declared for implementations of your own; the standard rendering does not read it. |
44
+ | Field | Type | Default | Description |
45
+ | ------------------- | ------------ | ---------- | ------------------------------------------------------------------------------------------------------------------ |
46
+ | `placeholder?` | `string` | `'search'` | Placeholder of the input, passed through the translations (a key or text). |
47
+ | `label?` | `string` | — | Not read by the built-in implementations; available to a custom implementation (e.g. as the input's `aria-label`). |
48
+ | `debounceTime?` | `number` | `1000` | Milliseconds the typing has to settle before `onTextChange`. |
49
+ | `showToggleButton?` | `boolean` | — | Renders a magnifying-glass button while the field is hidden. |
50
+ | `size?` | `SmartSize` | — | Not read by the built-in implementations; available to a custom implementation. |
51
+ | `color?` | `SmartColor` | — | Not read by the built-in implementations; available to a custom implementation. |
52
52
 
53
53
  `SmartColor`, `SmartSize` are described in the `react-provider` skill.
54
54
 
@@ -24,7 +24,7 @@ All from `@smartsoft001/react`.
24
24
  | `SmartSectionHeadingPreset` | component | HyperUI-styled "content with image" section heading (preset). |
25
25
  | `SmartSectionHeadingStandard` | component | The default section heading rendering: an unstyled `<h3>` title (with its `label`), description and the badge / input group / actions slots, and a tabs slot under the header. |
26
26
 
27
- The preset's class helpers (`getSectionHeadingGridClasses`, `getSectionHeadingTextClasses`, `getSectionHeadingImageClasses`, `SECTION_HEADING_SECTION_CLASSES`, `SECTION_HEADING_CONTAINER_CLASSES`, `SECTION_HEADING_EYEBROW_CLASSES`, `SECTION_HEADING_TITLE_CLASSES`, `SECTION_HEADING_DESCRIPTION_CLASSES`, `SECTION_HEADING_ACTIONS_CLASSES`) are exported too, for a custom implementation that wants the preset look.
27
+ The preset's class helpers (`getSectionHeadingGridClasses`, `getSectionHeadingTextClasses`, `getSectionHeadingImageClasses`, `SECTION_HEADING_SECTION_CLASSES`, `SECTION_HEADING_CONTAINER_CLASSES`, `SECTION_HEADING_EYEBROW_CLASSES`, `SECTION_HEADING_TITLE_CLASSES`, `SECTION_HEADING_DESCRIPTION_CLASSES`, `SECTION_HEADING_ACTIONS_CLASSES`) are exported too, with the type `SectionHeadingPresetLayout` (the layout argument of the helpers), for a custom implementation that wants the preset look.
28
28
 
29
29
  ## Props and Types
30
30
 
@@ -37,17 +37,17 @@ The preset's class helpers (`getSectionHeadingGridClasses`, `getSectionHeadingTe
37
37
 
38
38
  ### `ISectionHeadingOptions`
39
39
 
40
- | Field | Type | Default | Description |
41
- | ---------------- | ---------------------------------------------------------- | ------- | --------------------------------------------------------------------------------------- |
42
- | `title?` | `string` | — | The heading. |
43
- | `description?` | `string` | — | Text under the heading. |
44
- | `label?` | `string` | — | Eyebrow text next to / above the title. |
45
- | `actionsTpl?` | `ReactNode` | — | Action buttons. |
46
- | `tabsTpl?` | `ReactNode` | — | Tabs under the header (standard). |
47
- | `inputGroupTpl?` | `ReactNode` | — | A search or input group (standard). |
48
- | `badgeTpl?` | `ReactNode` | — | A badge next to the label. |
49
- | `imageTpl?` | `ReactNode` | — | Image beside the text (preset). |
50
- | `presentation?` | `{ layout?: 'half' \| 'narrow' \| 'wide' \| 'vertical'; }` | — | `layout` of the preset: `half` (default), `narrow`, `wide` (image first) or `vertical`. |
40
+ | Field | Type | Default | Description |
41
+ | ---------------- | ---------------------------------------------------------- | ------- | -------------------------------------------------------------------------------------------- |
42
+ | `title?` | `string` | — | The heading (`<h3>` in the standard, `<h2>` in the preset). |
43
+ | `description?` | `string` | — | Text under the heading. |
44
+ | `label?` | `string` | — | Standard: a `.label` span inside the title (needs `title`). Preset: eyebrow above the title. |
45
+ | `actionsTpl?` | `ReactNode` | — | Action buttons. |
46
+ | `tabsTpl?` | `ReactNode` | — | Standard only: tabs under the header; the preset does not render it. |
47
+ | `inputGroupTpl?` | `ReactNode` | — | Standard only: a search or input group; the preset does not render it. |
48
+ | `badgeTpl?` | `ReactNode` | — | A badge: in the header row (standard) or next to the eyebrow label (preset). |
49
+ | `imageTpl?` | `ReactNode` | — | Preset only: the image beside the text. |
50
+ | `presentation?` | `{ layout?: 'half' \| 'narrow' \| 'wide' \| 'vertical'; }` | — | `layout` of the preset: `half` (default), `narrow`, `wide` (image first) or `vertical`. |
51
51
 
52
52
  ## Usage
53
53
 
@@ -100,7 +100,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
100
100
  }
101
101
  ```
102
102
 
103
- `SmartSectionHeadingPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartSectionHeading`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
103
+ `SmartSectionHeadingPreset` is the styled (preset) implementation: register it under the `'section-heading'` key of `SmartProvider`'s `components`, render it directly in place of `SmartSectionHeading`, or spread `SMART_PRESET_COMPONENTS` on the provider to register every preset at once (see the `react-provider` skill). Pass `components` as a stable object (a module constant or a memoised value), or the context changes on every render.
104
104
 
105
105
  ```tsx
106
106
  import { SmartSectionHeadingProps } from '@smartsoft001/react';
@@ -41,26 +41,26 @@ All from `@smartsoft001/react`.
41
41
 
42
42
  ### `ISelectMenuOptions`
43
43
 
44
- | Field | Type | Default | Description |
45
- | -------------- | ------------------------ | ------- | ----------------------------------------------------------------------------- |
46
- | `items?` | `ISelectMenuItem[]` | `[]` | The choices. |
47
- | `placeholder?` | `string` | — | An empty first option. |
48
- | `variant?` | `SmartSelectMenuVariant` | — | For implementations of your own; the standard native select does not read it. |
49
- | `emptyTpl?` | `ReactNode` | — | Shown when there are no items. |
50
- | `ariaLabel?` | `string` | — | Accessible name of the select. |
44
+ | Field | Type | Default | Description |
45
+ | -------------- | ------------------------ | ------- | ------------------------------------------------------------------------------- |
46
+ | `items?` | `ISelectMenuItem[]` | `[]` | The choices. |
47
+ | `placeholder?` | `string` | — | An empty first option. |
48
+ | `variant?` | `SmartSelectMenuVariant` | — | Not read by the built-in implementations; available to a custom implementation. |
49
+ | `emptyTpl?` | `ReactNode` | — | Shown when there are no items. |
50
+ | `ariaLabel?` | `string` | — | Accessible name of the select. |
51
51
 
52
52
  ### `ISelectMenuItem`
53
53
 
54
- | Field | Type | Default | Description |
55
- | ------------ | ------------------------------------------- | -------- | ------------------------------------------------------ |
56
- | `value` | `string \| number` | required | The value reported through `onValueChange`. |
57
- | `label` | `string` | required | The option text. |
58
- | `avatarUrl?` | `string` | — | For a custom listbox (not shown by the native select). |
59
- | `iconTpl?` | `ReactNode` | — | For a custom listbox (not shown by the native select). |
60
- | `secondary?` | `string` | — | For a custom listbox (not shown by the native select). |
61
- | `status?` | `'online' \| 'offline' \| 'busy' \| string` | — | For a custom listbox (not shown by the native select). |
62
- | `disabled?` | `boolean` | — | Disables the option. |
63
- | `ariaLabel?` | `string` | — | Accessible name of the option. |
54
+ | Field | Type | Default | Description |
55
+ | ------------ | ------------------------------------------- | -------- | ------------------------------------------------------------------------------- |
56
+ | `value` | `string \| number` | required | The value reported through `onValueChange`. |
57
+ | `label` | `string` | required | The option text. |
58
+ | `avatarUrl?` | `string` | — | Not read by the built-in implementations; available to a custom implementation. |
59
+ | `iconTpl?` | `ReactNode` | — | Not read by the built-in implementations; available to a custom implementation. |
60
+ | `secondary?` | `string` | — | Not read by the built-in implementations; available to a custom implementation. |
61
+ | `status?` | `'online' \| 'offline' \| 'busy' \| string` | — | Not read by the built-in implementations; available to a custom implementation. |
62
+ | `disabled?` | `boolean` | — | Disables the option. |
63
+ | `ariaLabel?` | `string` | — | Accessible name of the option. |
64
64
 
65
65
  ### Related types
66
66
 
@@ -151,11 +151,11 @@ export function AvatarListbox(props: SmartSelectMenuProps) {
151
151
  }
152
152
  ```
153
153
 
154
- Registered as `components={{ 'select-menu': AvatarListbox }}`, every `SmartSelectMenu` renders it.
154
+ Registered under the `'select-menu'` key, as above, every `SmartSelectMenu` below the provider renders the custom listbox.
155
155
 
156
156
  ## Styling
157
157
 
158
- - The native select carries `smart:dark:` variants; `className` is appended to the root element.
158
+ - The native select is unstyled (no Tailwind classes, only the `select-menu` and `empty` class hooks); `className` is set on the root element.
159
159
 
160
160
  ## File Locations
161
161