@smartsoft001/claude-plugins 2.201.0 → 2.202.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 (109) 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 +35 -12
  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 +78 -49
  31. package/plugins/smart-angular/skills/angular-components-list/SKILL.md +85 -78
  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 +23 -16
  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 +46 -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-core/.claude-plugin/plugin.json +1 -1
  58. package/plugins/smart-react/.claude-plugin/plugin.json +1 -1
  59. package/plugins/smart-react/skills/react-components-action-panel/SKILL.md +13 -13
  60. package/plugins/smart-react/skills/react-components-alert/SKILL.md +2 -2
  61. package/plugins/smart-react/skills/react-components-avatar/SKILL.md +11 -11
  62. package/plugins/smart-react/skills/react-components-badge/SKILL.md +2 -2
  63. package/plugins/smart-react/skills/react-components-breadcrumbs/SKILL.md +7 -7
  64. package/plugins/smart-react/skills/react-components-button/SKILL.md +20 -20
  65. package/plugins/smart-react/skills/react-components-button-group/SKILL.md +2 -2
  66. package/plugins/smart-react/skills/react-components-calendar/SKILL.md +13 -13
  67. package/plugins/smart-react/skills/react-components-card/SKILL.md +1 -1
  68. package/plugins/smart-react/skills/react-components-card-heading/SKILL.md +2 -2
  69. package/plugins/smart-react/skills/react-components-command-palette/SKILL.md +3 -3
  70. package/plugins/smart-react/skills/react-components-container/SKILL.md +6 -6
  71. package/plugins/smart-react/skills/react-components-date-edit/SKILL.md +1 -1
  72. package/plugins/smart-react/skills/react-components-date-range/SKILL.md +4 -4
  73. package/plugins/smart-react/skills/react-components-description-list/SKILL.md +1 -1
  74. package/plugins/smart-react/skills/react-components-detail/SKILL.md +25 -16
  75. package/plugins/smart-react/skills/react-components-details/SKILL.md +10 -10
  76. package/plugins/smart-react/skills/react-components-divider/SKILL.md +6 -6
  77. package/plugins/smart-react/skills/react-components-drawer/SKILL.md +1 -1
  78. package/plugins/smart-react/skills/react-components-dropdown/SKILL.md +1 -1
  79. package/plugins/smart-react/skills/react-components-empty-state/SKILL.md +1 -1
  80. package/plugins/smart-react/skills/react-components-feed/SKILL.md +1 -1
  81. package/plugins/smart-react/skills/react-components-grid-list/SKILL.md +1 -1
  82. package/plugins/smart-react/skills/react-components-info/SKILL.md +3 -1
  83. package/plugins/smart-react/skills/react-components-input/SKILL.md +41 -17
  84. package/plugins/smart-react/skills/react-components-list/SKILL.md +34 -31
  85. package/plugins/smart-react/skills/react-components-list-container/SKILL.md +6 -6
  86. package/plugins/smart-react/skills/react-components-loader/SKILL.md +1 -1
  87. package/plugins/smart-react/skills/react-components-media-object/SKILL.md +1 -1
  88. package/plugins/smart-react/skills/react-components-modal/SKILL.md +8 -8
  89. package/plugins/smart-react/skills/react-components-multi-column-layout/SKILL.md +1 -1
  90. package/plugins/smart-react/skills/react-components-navbar/SKILL.md +1 -1
  91. package/plugins/smart-react/skills/react-components-notification/SKILL.md +9 -9
  92. package/plugins/smart-react/skills/react-components-page-heading/SKILL.md +6 -6
  93. package/plugins/smart-react/skills/react-components-paging/SKILL.md +28 -28
  94. package/plugins/smart-react/skills/react-components-password-strength/SKILL.md +4 -4
  95. package/plugins/smart-react/skills/react-components-progress-bars/SKILL.md +19 -19
  96. package/plugins/smart-react/skills/react-components-searchbar/SKILL.md +10 -10
  97. package/plugins/smart-react/skills/react-components-section-heading/SKILL.md +13 -13
  98. package/plugins/smart-react/skills/react-components-select-menu/SKILL.md +19 -19
  99. package/plugins/smart-react/skills/react-components-sidebar-layout/SKILL.md +9 -9
  100. package/plugins/smart-react/skills/react-components-sidebar-navigation/SKILL.md +29 -29
  101. package/plugins/smart-react/skills/react-components-sign-in-form/SKILL.md +3 -3
  102. package/plugins/smart-react/skills/react-components-stacked-layout/SKILL.md +1 -1
  103. package/plugins/smart-react/skills/react-components-stacked-list/SKILL.md +2 -2
  104. package/plugins/smart-react/skills/react-components-stats/SKILL.md +2 -2
  105. package/plugins/smart-react/skills/react-components-table/SKILL.md +1 -1
  106. package/plugins/smart-react/skills/react-components-tabs/SKILL.md +2 -2
  107. package/plugins/smart-react/skills/react-components-textarea/SKILL.md +8 -8
  108. package/plugins/smart-react/skills/react-components-toggle/SKILL.md +3 -2
  109. package/plugins/smart-react/skills/react-components-vertical-navigation/SKILL.md +7 -7
@@ -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
 
@@ -40,14 +40,14 @@ The preset's class helpers (`getSidebarLayoutRootClasses`, `getSidebarLayoutHead
40
40
 
41
41
  ### `ISidebarLayoutOptions`
42
42
 
43
- | Field | Type | Default | Description |
44
- | ------------------- | ------------------------------------ | ------- | ---------------------------------------------------------------- |
45
- | `title?` | `string` | — | Heading of the header zone when `headerTpl` is not set (preset). |
46
- | `sidebarTpl?` | `ReactNode` | — | The sidebar content. |
47
- | `headerTpl?` | `ReactNode` | — | The header zone. |
48
- | `sidebarPosition?` | `'left' \| 'right'` | — | `right` renders the sidebar after the content. |
49
- | `mobileBreakpoint?` | `SmartSidebarLayoutMobileBreakpoint` | — | Declared; neither rendering reads it. |
50
- | `condensed?` | `boolean` | `false` | Preset: a narrow sidebar (icons only). |
43
+ | Field | Type | Default | Description |
44
+ | ------------------- | ------------------------------------ | -------- | -------------------------------------------------------------------------------------------- |
45
+ | `title?` | `string` | — | Heading of the header zone when `headerTpl` is not set (preset). |
46
+ | `sidebarTpl?` | `ReactNode` | — | The sidebar content. |
47
+ | `headerTpl?` | `ReactNode` | — | The header zone. |
48
+ | `sidebarPosition?` | `'left' \| 'right'` | `'left'` | `right` renders the sidebar after the content. |
49
+ | `mobileBreakpoint?` | `SmartSidebarLayoutMobileBreakpoint` | — | Not read by the built-in implementations; available to a custom implementation. |
50
+ | `condensed?` | `boolean` | `false` | Preset only: narrows the sidebar from `w-64` to `w-16` (the sidebar content is not changed). |
51
51
 
52
52
  ### Related types
53
53
 
@@ -108,7 +108,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
108
108
  }
109
109
  ```
110
110
 
111
- `SmartSidebarLayoutPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartSidebarLayout`, 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.
111
+ `SmartSidebarLayoutPreset` is the styled (preset) implementation: register it under the `'sidebar-layout'` key of `SmartProvider`'s `components`, render it directly in place of `SmartSidebarLayout`, 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.
112
112
 
113
113
  ```tsx
114
114
  import { SmartSidebarLayoutProps } from '@smartsoft001/react';
@@ -37,14 +37,14 @@ All from `@smartsoft001/react`.
37
37
 
38
38
  ### `ISidebarNavOptions`
39
39
 
40
- | Field | Type | Default | Description |
41
- | ------------ | ----------------------- | ----------- | ---------------------------------------------------------------------------- |
42
- | `layout?` | `SmartSidebarNavLayout` | — | Declared (`SmartSidebarNavLayout`); the standard rendering does not read it. |
43
- | `ariaLabel?` | `string` | `'Sidebar'` | Accessible name of the `nav`. |
44
- | `logo?` | `ISidebarNavLogo` | — | The brand at the top. |
45
- | `items?` | `ISidebarNavItem[]` | — | The first, untitled group of items. |
46
- | `groups?` | `ISidebarNavGroup[]` | — | Further groups, each with a title. |
47
- | `profile?` | `ISidebarNavProfile` | — | A profile link at the bottom. |
40
+ | Field | Type | Default | Description |
41
+ | ------------ | ----------------------- | ----------- | ------------------------------------------------------------------------------- |
42
+ | `layout?` | `SmartSidebarNavLayout` | — | Not read by the built-in implementations; available to a custom implementation. |
43
+ | `ariaLabel?` | `string` | `'Sidebar'` | Accessible name of the `nav`. |
44
+ | `logo?` | `ISidebarNavLogo` | — | The brand at the top. |
45
+ | `items?` | `ISidebarNavItem[]` | — | The first, untitled group of items. |
46
+ | `groups?` | `ISidebarNavGroup[]` | — | Further groups, each with a title. |
47
+ | `profile?` | `ISidebarNavProfile` | — | A profile link at the bottom. |
48
48
 
49
49
  ### `ISidebarNavItemClick`
50
50
 
@@ -61,28 +61,28 @@ All from `@smartsoft001/react`.
61
61
 
62
62
  ### `ISidebarNavLogo`
63
63
 
64
- | Field | Type | Default | Description |
65
- | ---------- | ----------- | ------- | ----------------------------------------- |
66
- | `url?` | `string` | — | Logo image. |
67
- | `urlDark?` | `string` | — | Logo image for dark mode. |
68
- | `alt?` | `string` | — | Alt text of the logo. |
69
- | `href?` | `string` | — | Link of the logo. |
70
- | `tpl?` | `ReactNode` | — | The logo as a node; wins over the images. |
64
+ | Field | Type | Default | Description |
65
+ | ---------- | ----------- | ------- | ------------------------------------------------------------------------------- |
66
+ | `url?` | `string` | — | Logo image. |
67
+ | `urlDark?` | `string` | — | A second image with the `sidebar-logo-img-dark` class hook (for dark mode). |
68
+ | `alt?` | `string` | `''` | Alt text of both images. |
69
+ | `href?` | `string` | — | Wraps the images in a link (through the navigation adapter for internal paths). |
70
+ | `tpl?` | `ReactNode` | — | The logo as a node; wins over the images. |
71
71
 
72
72
  ### `ISidebarNavItem`
73
73
 
74
- | Field | Type | Default | Description |
75
- | ------------- | ------------------- | -------- | ------------------------------------------------------------------- |
76
- | `id` | `string` | required | Reported as `itemId`. |
77
- | `label?` | `string` | — | Item text. |
78
- | `href?` | `string` | — | Renders a link (through the navigation adapter for internal paths). |
79
- | `current?` | `boolean` | — | Marks the current page. |
80
- | `badge?` | `string \| number` | — | A count or text badge. |
81
- | `iconTpl?` | `ReactNode` | — | Item icon. |
82
- | `initial?` | `string` | — | A letter shown instead of an icon (e.g. for teams). |
83
- | `expandable?` | `boolean` | — | Makes the item a toggle for its `children`. |
84
- | `expanded?` | `boolean` | — | Initial expanded state. |
85
- | `children?` | `ISidebarNavItem[]` | — | Nested items of an expandable item. |
74
+ | Field | Type | Default | Description |
75
+ | ------------- | ------------------- | -------- | ---------------------------------------------------------------------------------------- |
76
+ | `id` | `string` | required | Reported as `itemId`. |
77
+ | `label?` | `string` | — | Item text. |
78
+ | `href?` | `string` | — | Renders a link (through the navigation adapter for internal paths). |
79
+ | `current?` | `boolean` | — | Marks the current page (`current` class, `aria-current="page"`); not on toggles. |
80
+ | `badge?` | `string \| number` | — | A count or text badge; not on toggles and children. |
81
+ | `iconTpl?` | `ReactNode` | — | Item icon; not on children. |
82
+ | `initial?` | `string` | — | A letter shown instead of an icon (e.g. for teams); not on toggles and children. |
83
+ | `expandable?` | `boolean` | — | Makes the item a toggle for its `children` (top-level items only). |
84
+ | `expanded?` | `boolean` | `false` | Initial expanded state of an expandable item. |
85
+ | `children?` | `ISidebarNavItem[]` | — | Nested items of an expandable item; one level, rendered with `label`, `href`, `current`. |
86
86
 
87
87
  ### `ISidebarNavGroup`
88
88
 
@@ -98,8 +98,8 @@ All from `@smartsoft001/react`.
98
98
  | ------------- | -------- | ------- | ---------------------------------------------- |
99
99
  | `name?` | `string` | — | User name. |
100
100
  | `avatarUrl?` | `string` | — | Avatar image. |
101
- | `avatarAlt?` | `string` | — | Alt text of the avatar. |
102
- | `href?` | `string` | — | Profile link. |
101
+ | `avatarAlt?` | `string` | `''` | Alt text of the avatar. |
102
+ | `href?` | `string` | `'#'` | Profile link. |
103
103
  | `srOnlyText?` | `string` | — | Text for screen readers (e.g. "Your profile"). |
104
104
 
105
105
  ### Related types
@@ -46,9 +46,9 @@ The preset's class helpers (`getSignInFormContainerClasses`, `getSignInFormCardC
46
46
  | Field | Type | Default | Description |
47
47
  | ---------------------- | ----------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
48
48
  | `socialProviders?` | `ISocialProvider[]` | `[]` | Social sign-in buttons. |
49
- | `layout?` | `SmartSignInFormLayout` | `'simple'` | Preset: `simple` (default), `simple-no-labels`, `card` or `split-screen`. |
49
+ | `layout?` | `SmartSignInFormLayout` | `'simple'` | Preset only: `simple` (default), `simple-no-labels`, `card` or `split-screen`. The standard ignores it. |
50
50
  | `showLabels?` | `boolean` | — | `false` hides the field labels (the `simple-no-labels` preset layout hides them unless this is `true`). |
51
- | `heroImageUrl?` | `string` | — | Image of the `split-screen` layout. |
51
+ | `heroImageUrl?` | `string` | — | Preset only: the cover image of the `split-screen` layout. The standard ignores it. |
52
52
  | `forgotPasswordHref?` | `string` | — | "Forgot password" link (sign-in mode). |
53
53
  | `signUpHref?` | `string` | — | Link to the sign-up screen (sign-in mode). |
54
54
  | `signInHref?` | `string` | — | Link to the sign-in screen (sign-up mode). |
@@ -155,7 +155,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
155
155
  }
156
156
  ```
157
157
 
158
- `SmartSignInFormPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartSignInForm`, 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
+ `SmartSignInFormPreset` is the styled (preset) implementation: register it under the `'sign-in-form'` key of `SmartProvider`'s `components`, render it directly in place of `SmartSignInForm`, 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.
159
159
 
160
160
  ### The `useSignInForm` hook
161
161
 
@@ -104,7 +104,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
104
104
  }
105
105
  ```
106
106
 
107
- `SmartStackedLayoutPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartStackedLayout`, 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.
107
+ `SmartStackedLayoutPreset` is the styled (preset) implementation: register it under the `'stacked-layout'` key of `SmartProvider`'s `components`, render it directly in place of `SmartStackedLayout`, 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.
108
108
 
109
109
  ```tsx
110
110
  import { SmartStackedLayoutProps } from '@smartsoft001/react';
@@ -26,7 +26,7 @@ All from `@smartsoft001/react`.
26
26
  | `SmartStackedListPreset` | component | Styled stacked list variation (preset). |
27
27
  | `SmartStackedListStandard` | component | The default stacked-list rendering: one `li.item` per item (icon template > avatar, title as a link when `href` is set, description, meta, badge and action slots), the `emptyTpl` when there are no items, then the `footerTpl` slot. |
28
28
 
29
- The preset's class helpers (`getStackedListRootClasses`, `getStackedListListClasses`, `getStackedListItemClasses`, `STACKED_LIST_ROOT`, `STACKED_LIST_TITLE`, `STACKED_LIST_DESCRIPTION`, `STACKED_LIST_HEADER`, `STACKED_LIST_DIVIDERS`, `STACKED_LIST_FULL_WIDTH_CARD`, `STACKED_LIST_ITEM`, `STACKED_LIST_ITEM_CARD_PADDING`, `STACKED_LIST_LEAD`, `STACKED_LIST_AVATAR`, `STACKED_LIST_ICON`, `STACKED_LIST_BODY`, `STACKED_LIST_ITEM_TITLE`, `STACKED_LIST_ITEM_TITLE_LINK`, `STACKED_LIST_ITEM_DESCRIPTION`, `STACKED_LIST_ITEM_META`, `STACKED_LIST_TRAIL`, `STACKED_LIST_EMPTY`, `STACKED_LIST_FOOTER`) are exported too, for a custom implementation that wants the preset look.
29
+ The preset's class helpers (`getStackedListRootClasses`, `getStackedListListClasses`, `getStackedListItemClasses`, `STACKED_LIST_ROOT`, `STACKED_LIST_TITLE`, `STACKED_LIST_DESCRIPTION`, `STACKED_LIST_HEADER`, `STACKED_LIST_DIVIDERS`, `STACKED_LIST_FULL_WIDTH_CARD`, `STACKED_LIST_ITEM`, `STACKED_LIST_ITEM_CARD_PADDING`, `STACKED_LIST_LEAD`, `STACKED_LIST_AVATAR`, `STACKED_LIST_ICON`, `STACKED_LIST_BODY`, `STACKED_LIST_ITEM_TITLE`, `STACKED_LIST_ITEM_TITLE_LINK`, `STACKED_LIST_ITEM_DESCRIPTION`, `STACKED_LIST_ITEM_META`, `STACKED_LIST_TRAIL`, `STACKED_LIST_EMPTY`, `STACKED_LIST_FOOTER`) are exported too, with the type `IStackedListPresetFlags` (the `withDividers` / `fullWidthOnMobile` flags the list and item helpers take), for a custom implementation that wants the preset look.
30
30
 
31
31
  ## Props and Types
32
32
 
@@ -115,7 +115,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
115
115
  }
116
116
  ```
117
117
 
118
- `SmartStackedListPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartStackedList`, 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.
118
+ `SmartStackedListPreset` is the styled (preset) implementation: register it under the `'stacked-list'` key of `SmartProvider`'s `components`, render it directly in place of `SmartStackedList`, 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
119
 
120
120
  ```tsx
121
121
  import { SmartStackedListProps } from '@smartsoft001/react';
@@ -23,7 +23,7 @@ All from `@smartsoft001/react`.
23
23
  | `SmartStatsPreset` | component | Styled stats variation (preset). |
24
24
  | `SmartStatsStandard` | component | The default stats rendering: an unstyled title and a `<dl>` with one item per stat (icon, label, value, previous value, change tagged with `data-trend`, action). |
25
25
 
26
- The preset's class helpers (`getStatsContainerClasses`, `getStatsGridClasses`, `getStatsTitleClasses`, `getStatsLabelClasses`, `getStatsValueClasses`, `getStatsSubClasses`, `getStatsIconWrapClasses`, `getStatsActionClasses`, `getStatsChangeClasses`) are exported too, for a custom implementation that wants the preset look.
26
+ The preset's class helpers (`getStatsContainerClasses`, `getStatsGridClasses`, `getStatsTitleClasses`, `getStatsLabelClasses`, `getStatsValueClasses`, `getStatsSubClasses`, `getStatsIconWrapClasses`, `getStatsActionClasses`, `getStatsChangeClasses`) are exported too, with the type `SmartStatsColumns` (`1 | 2 | 3 | 4`, the argument of `getStatsGridClasses`), for a custom implementation that wants the preset look.
27
27
 
28
28
  ## Props and Types
29
29
 
@@ -110,7 +110,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
110
110
  }
111
111
  ```
112
112
 
113
- `SmartStatsPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartStats`, 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.
113
+ `SmartStatsPreset` is the styled (preset) implementation: register it under the `'stats'` key of `SmartProvider`'s `components`, render it directly in place of `SmartStats`, 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.
114
114
 
115
115
  ```tsx
116
116
  import { SmartStatsProps } from '@smartsoft001/react';
@@ -173,7 +173,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
173
173
  }
174
174
  ```
175
175
 
176
- `SmartTablePreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartTable`, 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.
176
+ `SmartTablePreset` is the styled (preset) implementation: register it under the `'table'` key of `SmartProvider`'s `components`, render it directly in place of `SmartTable`, 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.
177
177
 
178
178
  `renderTableCell(row, column)` is the cell rule every rendering uses (the `cellTpl`, else `row[column.key]` as text), so a custom table stays consistent:
179
179
 
@@ -26,7 +26,7 @@ All from `@smartsoft001/react`.
26
26
  | `SmartTabsStandard` | component | The default tabs rendering. |
27
27
  | `useTabs` | hook | The behaviour every tabs variant shares: the selection, controlled through `selectedId` or kept internally when that prop is `undefined`, and `selectTab`, which selects a tab and reports it through `onSelectedIdChange` and `onTabChange`. |
28
28
 
29
- The preset's class helpers (`getTabsContainerClasses`, `getTabsNavClasses`, `getTabsTriggerClasses`, `getTabsBadgeClasses`, `getTabsIconClasses`, `getTabsMobileSelectClasses`) are exported too, for a custom implementation that wants the preset look.
29
+ The preset's class helpers (`getTabsContainerClasses`, `getTabsNavClasses`, `getTabsTriggerClasses`, `getTabsBadgeClasses`, `getTabsIconClasses`, `getTabsMobileSelectClasses`) are exported too, with the type `SmartTabsPresetLayout` (the layout argument of the helpers), for a custom implementation that wants the preset look.
30
30
 
31
31
  ## Props and Types
32
32
 
@@ -122,7 +122,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
122
122
  }
123
123
  ```
124
124
 
125
- `SmartTabsPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartTabs`, 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.
125
+ `SmartTabsPreset` is the styled (preset) implementation: register it under the `'tabs'` key of `SmartProvider`'s `components`, render it directly in place of `SmartTabs`, 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.
126
126
 
127
127
  ### The `useTabs` hook
128
128
 
@@ -27,7 +27,7 @@ All from `@smartsoft001/react`.
27
27
  | `SmartTextareaStandard` | component | The default, unstyled textarea. |
28
28
  | `useTextarea` | hook | The behaviour every textarea variant shares: the `value`, controlled through `value` / `onValueChange` or kept internally from `defaultValue`, and `actionClick()`, which reports an action with the current text unless `disabled`. |
29
29
 
30
- The preset's class helpers (`textareaFieldClasses`, `textareaFrameClasses`, `textareaBarClasses`, `textareaBarInside`, `textareaActionClasses`, `textareaTabClasses`, `TEXTAREA_ROOT`, `TEXTAREA_AVATAR`, `TEXTAREA_BODY`, `TEXTAREA_LABEL`, `TEXTAREA_REQUIRED`, `TEXTAREA_TOOLBAR`, `TEXTAREA_ACTIONS`, `TEXTAREA_TABS`, `TEXTAREA_PREVIEW_PANE`, `TEXTAREA_PREVIEW_BELOW`, `TEXTAREA_COUNTER`, `TEXTAREA_FOOTER`) are exported too, for a custom implementation that wants the preset look.
30
+ The preset's class helpers (`textareaFieldClasses`, `textareaFrameClasses`, `textareaBarClasses`, `textareaBarInside`, `textareaActionClasses`, `textareaTabClasses`, `TEXTAREA_ROOT`, `TEXTAREA_AVATAR`, `TEXTAREA_BODY`, `TEXTAREA_LABEL`, `TEXTAREA_REQUIRED`, `TEXTAREA_TOOLBAR`, `TEXTAREA_ACTIONS`, `TEXTAREA_TABS`, `TEXTAREA_PREVIEW_PANE`, `TEXTAREA_PREVIEW_BELOW`, `TEXTAREA_COUNTER`, `TEXTAREA_FOOTER`) are exported too, with the type `SmartTextareaPresetVariant` (the variant argument of the helpers), for a custom implementation that wants the preset look.
31
31
 
32
32
  ## Props and Types
33
33
 
@@ -73,12 +73,12 @@ Payload of `onActionClick`.
73
73
 
74
74
  ### `ITextareaAction`
75
75
 
76
- | Field | Type | Default | Description |
77
- | ---------- | ------------------------------------- | ---------- | --------------------------------------- |
78
- | `id` | `string` | required | Reported as `actionId`. |
79
- | `label?` | `string` | — | Button text. |
80
- | `iconTpl?` | `ReactNode` | — | Icon of the button. |
81
- | `variant?` | `'primary' \| 'secondary' \| 'ghost'` | `'simple'` | `primary`, `secondary` or `ghost` look. |
76
+ | Field | Type | Default | Description |
77
+ | ---------- | ------------------------------------- | ------------- | --------------------------------------- |
78
+ | `id` | `string` | required | Reported as `actionId`. |
79
+ | `label?` | `string` | — | Button text. |
80
+ | `iconTpl?` | `ReactNode` | — | Icon of the button. |
81
+ | `variant?` | `'primary' \| 'secondary' \| 'ghost'` | `'secondary'` | `primary`, `secondary` or `ghost` look. |
82
82
 
83
83
  ### Related types
84
84
 
@@ -135,7 +135,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
135
135
  }
136
136
  ```
137
137
 
138
- `SmartTextareaPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartTextarea`, 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.
138
+ `SmartTextareaPreset` is the styled (preset) implementation: register it under the `'textarea'` key of `SmartProvider`'s `components`, render it directly in place of `SmartTextarea`, 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.
139
139
 
140
140
  ### The `useTextarea` hook
141
141
 
@@ -98,7 +98,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
98
98
  }
99
99
  ```
100
100
 
101
- `SmartTogglePreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartToggle`, 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
+ `SmartTogglePreset` is the styled (preset) implementation: register it under the `'toggle'` key of `SmartProvider`'s `components`, render it directly in place of `SmartToggle`, 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.
102
102
 
103
103
  ### The `useToggle` hook
104
104
 
@@ -143,7 +143,8 @@ export function SwitchButton(props: SmartToggleProps) {
143
143
 
144
144
  ## Styling
145
145
 
146
- - `SmartToggleStandard` is a native checkbox with a `<label htmlFor>`; `SmartTogglePreset` draws the track and thumb with `peer-*` states and `smart:dark:` variants.
146
+ - `SmartToggleStandard` is an unstyled native checkbox; `SmartTogglePreset` draws the track and thumb with `peer-*` states and `smart:dark:` variants.
147
+ - In both, `options.label` is a `<label htmlFor>` of the checkbox (its accessible name) and `options.description` is referenced by the checkbox's `aria-describedby`.
147
148
 
148
149
  ## File Locations
149
150
 
@@ -41,12 +41,12 @@ The preset's class helpers (`getVerticalNavContainerClasses`, `getVerticalNavNav
41
41
 
42
42
  ### `IVerticalNavOptions`
43
43
 
44
- | Field | Type | Default | Description |
45
- | ------------ | ------------------------ | ----------- | -------------------------------------------------------------------------------------------- |
46
- | `layout?` | `SmartVerticalNavLayout` | — | Declared (`SmartVerticalNavLayout`); neither the standard nor the preset rendering reads it. |
47
- | `ariaLabel?` | `string` | `'Sidebar'` | Accessible name of the `nav`. |
48
- | `items?` | `IVerticalNavItem[]` | — | The first, untitled group. |
49
- | `groups?` | `IVerticalNavGroup[]` | — | Further groups, each with a title. |
44
+ | Field | Type | Default | Description |
45
+ | ------------ | ------------------------ | ----------- | ----------------------------------------------------------------------------------------------------- |
46
+ | `layout?` | `SmartVerticalNavLayout` | — | Not read by the built-in implementations (standard and preset); available to a custom implementation. |
47
+ | `ariaLabel?` | `string` | `'Sidebar'` | Accessible name of the `nav`. |
48
+ | `items?` | `IVerticalNavItem[]` | — | The first, untitled group. |
49
+ | `groups?` | `IVerticalNavGroup[]` | — | Further groups, each with a title. |
50
50
 
51
51
  ### `IVerticalNavItemClick`
52
52
 
@@ -139,7 +139,7 @@ export function AppProviders({ children }: { children: ReactNode }) {
139
139
  }
140
140
  ```
141
141
 
142
- `SmartVerticalNavigationPreset` is the styled (preset) implementation: register it as above, render it directly in place of `SmartVerticalNavigation`, 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.
142
+ `SmartVerticalNavigationPreset` is the styled (preset) implementation: register it under the `'vertical-navigation'` key of `SmartProvider`'s `components`, render it directly in place of `SmartVerticalNavigation`, 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.
143
143
 
144
144
  ### The `useVerticalNavigation` hook
145
145