@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
@@ -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
 
@@ -27,7 +27,7 @@ All from `@smartsoft001/react`.
27
27
  | `SmartVerticalNavigationStandard` | component | The default vertical navigation rendering. |
28
28
  | `useVerticalNavigation` | hook | The behaviour every vertical navigation variant shares: `options.items` normalised into a first, untitled group followed by `options.groups`, and the item click. |
29
29
 
30
- The preset's class helpers (`getVerticalNavContainerClasses`, `getVerticalNavNavClasses`, `getVerticalNavGroupTitleClasses`, `getVerticalNavItemClasses`, `getVerticalNavIconClasses`, `getVerticalNavInitialClasses`, `getVerticalNavBadgeClasses`) are exported too, for a custom implementation that wants the preset look.
30
+ The preset's class helpers (`getVerticalNavContainerClasses` for the `<nav>`, `getVerticalNavNavClasses` for a group's list, `getVerticalNavListItemClasses`, `getVerticalNavGroupTitleClasses`, `getVerticalNavItemClasses`, `getVerticalNavIconClasses`, `getVerticalNavInitialClasses`, `getVerticalNavBadgeClasses`) are exported too, for a custom implementation that wants the preset look.
31
31
 
32
32
  ## Props and Types
33
33
 
@@ -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 one `nav` landmark (the groups are lists named by their title). |
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
 
@@ -198,7 +198,7 @@ export function PlainVerticalNav(props: SmartVerticalNavigationProps) {
198
198
 
199
199
  ## Styling
200
200
 
201
- - The standard rendering is unstyled; the preset renders every group as its own `<nav>` after its title, with `smart:dark:` variants.
201
+ - Both renderings put every group in one `<nav>` landmark (named by `options.ariaLabel`, `'Sidebar'` by default); a group is a list (`role="list"`) of its items, named by its title through `aria-labelledby`. The standard rendering is unstyled; the preset renders the vertical tabs, each group's title before its list, with `smart:dark:` variants.
202
202
 
203
203
  ## File Locations
204
204
 
@@ -84,7 +84,7 @@ The provider creates its services **once** and keeps them for its lifetime. Pass
84
84
  | `authInterceptor` | `boolean` | `true` | Adds the bearer token to the default HTTP client's requests. |
85
85
  | `storageService`, `authService`, `toastService`, `alertService`, `modalService`, `menuService`, `appService` | the service classes | created by the provider | Services of your own (e.g. subclasses). |
86
86
  | `modelLabelProvider` | `IModelLabelProvider \| null` | `null` | Field labels from code. |
87
- | `modelPossibilitiesProvider` | `IModelPossibilitiesProvider \| null` | `null` | Options of `enum` / `radio` / `check` / `strings` fields from code. |
87
+ | `modelPossibilitiesProvider` | `IModelPossibilitiesProvider \| null` | `null` | Options of `radio` / `check` fields and of the preset `enum` field, from code. |
88
88
  | `modelValidatorsProvider` | `IModelValidatorsProvider \| null` | `null` | Validators of model fields from code (`react-forms`). |
89
89
  | `modelExportProvider`, `modelImportProvider`, `appProvider` | provider interfaces | `null` | Held in the context (`useSmart()`) for components of your own; no library component reads them. |
90
90
  | `children` | `ReactNode` | — | The application. |
@@ -53,14 +53,14 @@ Enough for the store, the facade and components of your own.
53
53
  | Field | Type | What it does |
54
54
  | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
55
55
  | `title` | `string` | Required. The list page heading (translated). |
56
- | `details` | `boolean \| { cellPipe?: ICellPipe<T>; components?: { top?; bottom? } }` | Rows link to the item page, which opens read-only with `SmartDetails`; `components` render above / below the details. |
56
+ | `details` | `boolean \| { cellPipe?: ICellPipe<T>; components?: { top?; bottom? } }` | Rows link to the item page, which opens read-only with `SmartDetails`, and get a details action that opens the record in a modal (`SmartDetailsPage`); `components` render above / below the details. |
57
57
  | `edit` | `boolean \| { cellPipe?; components?: { top?; bottom? } }` | A record can be edited; `components` render above / below the form while editing. |
58
58
  | `add` | `boolean \| { components?: { top?; bottom? } }` | The add button (navigates to `<basePath>/add`); `components` render above / below the form while creating. |
59
59
  | `remove` | `boolean` | A remove action per row, confirmed by the list, offered only where the model's `remove.enabled` allows it. |
60
60
  | `search` | `boolean` | The search box of the page header; a search reads the first page with `searchText`. |
61
61
  | `export` | `boolean` | The export button: `SmartCrudExport` in a modal (CSV or XLSX of the current filter, without paging). |
62
62
  | `pagination` | `{ limit: number }` | Page size; the first read starts at offset 0. The backend caps a page (100 by default). |
63
- | `sort` | `boolean \| { default?: string; defaultDesc?: boolean }` | Whether sorting is offered, and the column the first read sorts by. |
63
+ | `sort` | `boolean \| { default?: string; defaultDesc?: boolean }` | Whether sorting is offered, and the column the first read sorts by. The desktop list headers sort the list: a click reads again with `sortBy` / `sortDesc` from the first page. |
64
64
  | `list` | `{ cellPipe?; components?: { top?; multi? }; mode?: ListMode; paginationMode?: PaginationMode; resetQuery?: 'beforeInit'; groups?: Array<ICrudListGroup> }` | Cell formatting, a component above the list and one in the multiselect panel, the list layout and paging mode, grouping, and with `resetQuery` a first read from the configured defaults instead of the filter the feature already has. |
65
65
  | `buttons` | `Array<IIconButtonOptions>` | Extra buttons appended to the list page header. |
66
66
  | `inputComponents` | `{ [key: string]: ComponentType<any> }` | Field components for named fields of the form (see `react-components-input`). |