@rio-cloud/uikit-mcp 1.1.3 → 1.1.5

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 (191) hide show
  1. package/README.md +1 -0
  2. package/dist/doc-metadata.json +97 -97
  3. package/dist/docs/components/accentBar.md +5 -5
  4. package/dist/docs/components/activity.md +7 -7
  5. package/dist/docs/components/animatedNumber.md +10 -10
  6. package/dist/docs/components/animatedTextReveal.md +42 -43
  7. package/dist/docs/components/animations.md +42 -34
  8. package/dist/docs/components/appHeader.md +20 -35
  9. package/dist/docs/components/appLayout.md +198 -221
  10. package/dist/docs/components/appNavigationBar.md +21 -21
  11. package/dist/docs/components/areaCharts.md +38 -38
  12. package/dist/docs/components/aspectRatioPlaceholder.md +4 -5
  13. package/dist/docs/components/assetTree.md +887 -614
  14. package/dist/docs/components/autosuggests.md +4 -4
  15. package/dist/docs/components/avatar.md +7 -7
  16. package/dist/docs/components/banner.md +2 -2
  17. package/dist/docs/components/barCharts.md +173 -173
  18. package/dist/docs/components/barList.md +19 -41
  19. package/dist/docs/components/basicMap.md +1 -1
  20. package/dist/docs/components/bottomSheet.md +74 -74
  21. package/dist/docs/components/button.md +161 -71
  22. package/dist/docs/components/buttonToolbar.md +3 -3
  23. package/dist/docs/components/calendarStripe.md +71 -123
  24. package/dist/docs/components/card.md +4 -4
  25. package/dist/docs/components/carousel.md +1 -1
  26. package/dist/docs/components/chartColors.md +1 -1
  27. package/dist/docs/components/chartsGettingStarted.md +1 -1
  28. package/dist/docs/components/chat.md +2 -2
  29. package/dist/docs/components/checkbox.md +56 -131
  30. package/dist/docs/components/clearableInput.md +23 -127
  31. package/dist/docs/components/collapse.md +14 -16
  32. package/dist/docs/components/composedCharts.md +31 -31
  33. package/dist/docs/components/contentLoader.md +125 -122
  34. package/dist/docs/components/dataTabs.md +103 -93
  35. package/dist/docs/components/datepickers.md +734 -764
  36. package/dist/docs/components/dialogs.md +299 -186
  37. package/dist/docs/components/divider.md +4 -4
  38. package/dist/docs/components/dropdowns.md +4555 -4498
  39. package/dist/docs/components/editableContent.md +97 -97
  40. package/dist/docs/components/expander.md +56 -56
  41. package/dist/docs/components/fade.md +41 -41
  42. package/dist/docs/components/fadeExpander.md +4 -4
  43. package/dist/docs/components/fadeUp.md +8 -10
  44. package/dist/docs/components/feedback.md +22 -21
  45. package/dist/docs/components/filePickers.md +25 -25
  46. package/dist/docs/components/formLabel.md +5 -7
  47. package/dist/docs/components/groupedItemList.md +37 -37
  48. package/dist/docs/components/iconList.md +4 -4
  49. package/dist/docs/components/imagePreloader.md +6 -6
  50. package/dist/docs/components/labeledElement.md +4 -3
  51. package/dist/docs/components/licensePlate.md +2 -2
  52. package/dist/docs/components/lineCharts.md +58 -58
  53. package/dist/docs/components/listMenu.md +63 -41
  54. package/dist/docs/components/loadMore.md +17 -17
  55. package/dist/docs/components/mainNavigation.md +1 -1
  56. package/dist/docs/components/mapCircle.md +1 -1
  57. package/dist/docs/components/mapCluster.md +1 -1
  58. package/dist/docs/components/mapContext.md +1 -1
  59. package/dist/docs/components/mapDraggableMarker.md +1 -1
  60. package/dist/docs/components/mapGettingStarted.md +1 -1
  61. package/dist/docs/components/mapInfoBubble.md +1 -1
  62. package/dist/docs/components/mapLayerGroup.md +1 -1
  63. package/dist/docs/components/mapMarker.md +339 -345
  64. package/dist/docs/components/mapPolygon.md +16 -20
  65. package/dist/docs/components/mapRoute.md +14 -20
  66. package/dist/docs/components/mapRouteGenerator.md +1 -1
  67. package/dist/docs/components/mapSettings.md +263 -274
  68. package/dist/docs/components/mapUtils.md +3 -5
  69. package/dist/docs/components/multiselects.md +1 -1
  70. package/dist/docs/components/noData.md +11 -11
  71. package/dist/docs/components/notifications.md +1 -1
  72. package/dist/docs/components/numbercontrol.md +39 -37
  73. package/dist/docs/components/onboarding.md +18 -38
  74. package/dist/docs/components/page.md +16 -16
  75. package/dist/docs/components/pager.md +8 -8
  76. package/dist/docs/components/pieCharts.md +124 -124
  77. package/dist/docs/components/popover.md +37 -53
  78. package/dist/docs/components/position.md +4 -4
  79. package/dist/docs/components/radialBarCharts.md +506 -506
  80. package/dist/docs/components/radiobutton.md +209 -191
  81. package/dist/docs/components/releaseNotes.md +9 -3
  82. package/dist/docs/components/resizer.md +7 -8
  83. package/dist/docs/components/responsiveColumnStripe.md +11 -11
  84. package/dist/docs/components/responsiveVideo.md +5 -5
  85. package/dist/docs/components/rioglyph.md +11 -11
  86. package/dist/docs/components/rules.md +118 -92
  87. package/dist/docs/components/saveableInput.md +366 -356
  88. package/dist/docs/components/selects.md +9996 -15
  89. package/dist/docs/components/sidebar.md +22 -23
  90. package/dist/docs/components/sliders.md +26 -26
  91. package/dist/docs/components/smoothScrollbars.md +61 -25
  92. package/dist/docs/components/spinners.md +32 -30
  93. package/dist/docs/components/states.md +236 -245
  94. package/dist/docs/components/statsWidgets.md +37 -28
  95. package/dist/docs/components/statusBar.md +22 -22
  96. package/dist/docs/components/stepButton.md +2 -2
  97. package/dist/docs/components/steppedProgressBars.md +45 -45
  98. package/dist/docs/components/subNavigation.md +3 -3
  99. package/dist/docs/components/supportMarker.md +1 -1
  100. package/dist/docs/components/svgImage.md +2 -38
  101. package/dist/docs/components/switch.md +11 -11
  102. package/dist/docs/components/tables.md +1 -1
  103. package/dist/docs/components/tagManager.md +40 -40
  104. package/dist/docs/components/tags.md +21 -20
  105. package/dist/docs/components/teaser.md +22 -23
  106. package/dist/docs/components/timeline.md +1 -1
  107. package/dist/docs/components/timepicker.md +17 -13
  108. package/dist/docs/components/toggleButton.md +65 -29
  109. package/dist/docs/components/tooltip.md +27 -50
  110. package/dist/docs/components/virtualList.md +75 -75
  111. package/dist/docs/foundations.md +167 -167
  112. package/dist/docs/start/changelog.md +23 -1
  113. package/dist/docs/start/goodtoknow.md +1 -1
  114. package/dist/docs/start/guidelines/color-combinations.md +1 -1
  115. package/dist/docs/start/guidelines/custom-css.md +1 -1
  116. package/dist/docs/start/guidelines/custom-rioglyph.md +1 -1
  117. package/dist/docs/start/guidelines/formatting.md +1 -1
  118. package/dist/docs/start/guidelines/iframe.md +80 -27
  119. package/dist/docs/start/guidelines/obfuscate-data.md +1 -1
  120. package/dist/docs/start/guidelines/print-css.md +1 -1
  121. package/dist/docs/start/guidelines/spinner.md +81 -81
  122. package/dist/docs/start/guidelines/supported-browsers.md +1 -1
  123. package/dist/docs/start/guidelines/writing.md +1 -1
  124. package/dist/docs/start/howto.md +9 -9
  125. package/dist/docs/start/intro.md +1 -1
  126. package/dist/docs/start/responsiveness.md +1 -1
  127. package/dist/docs/templates/common-table.md +11 -11
  128. package/dist/docs/templates/detail-views.md +2 -2
  129. package/dist/docs/templates/expandable-details.md +1 -1
  130. package/dist/docs/templates/feature-cards.md +55 -55
  131. package/dist/docs/templates/form-summary.md +22 -22
  132. package/dist/docs/templates/form-toggle.md +1 -1
  133. package/dist/docs/templates/list-blocks.md +197 -197
  134. package/dist/docs/templates/loading-progress.md +1 -1
  135. package/dist/docs/templates/options-panel.md +1 -1
  136. package/dist/docs/templates/panel-variants.md +1 -1
  137. package/dist/docs/templates/progress-cards.md +1 -1
  138. package/dist/docs/templates/progress-success.md +1 -1
  139. package/dist/docs/templates/settings-form.md +23 -23
  140. package/dist/docs/templates/stats-blocks.md +41 -41
  141. package/dist/docs/templates/table-panel.md +1 -1
  142. package/dist/docs/templates/table-row-animation.md +1 -1
  143. package/dist/docs/templates/usage-cards.md +1 -1
  144. package/dist/docs/utilities/deviceUtils.md +6 -3
  145. package/dist/docs/utilities/featureToggles.md +1 -1
  146. package/dist/docs/utilities/fuelTypeUtils.md +1 -1
  147. package/dist/docs/utilities/routeUtils.md +59 -23
  148. package/dist/docs/utilities/useAfterMount.md +1 -1
  149. package/dist/docs/utilities/useAutoAnimate.md +1 -1
  150. package/dist/docs/utilities/useAverage.md +1 -1
  151. package/dist/docs/utilities/useClickOutside.md +1 -1
  152. package/dist/docs/utilities/useClipboard.md +2 -2
  153. package/dist/docs/utilities/useCount.md +1 -1
  154. package/dist/docs/utilities/useDarkMode.md +1 -1
  155. package/dist/docs/utilities/useDebugInfo.md +4 -4
  156. package/dist/docs/utilities/useEffectOnce.md +1 -1
  157. package/dist/docs/utilities/useElapsedTime.md +1 -1
  158. package/dist/docs/utilities/useElementSize.md +1 -1
  159. package/dist/docs/utilities/useEsc.md +1 -1
  160. package/dist/docs/utilities/useEvent.md +1 -1
  161. package/dist/docs/utilities/useFocusTrap.md +1 -1
  162. package/dist/docs/utilities/useFullscreen.md +1 -1
  163. package/dist/docs/utilities/useHover.md +1 -1
  164. package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
  165. package/dist/docs/utilities/useInterval.md +1 -1
  166. package/dist/docs/utilities/useIsFocusWithin.md +1 -1
  167. package/dist/docs/utilities/useKey.md +7 -5
  168. package/dist/docs/utilities/useLocalStorage.md +1 -1
  169. package/dist/docs/utilities/useLocationSuggestions.md +1 -1
  170. package/dist/docs/utilities/useMax.md +1 -1
  171. package/dist/docs/utilities/useMin.md +1 -1
  172. package/dist/docs/utilities/useMutationObserver.md +1 -1
  173. package/dist/docs/utilities/useOnScreen.md +1 -1
  174. package/dist/docs/utilities/useOnlineStatus.md +1 -1
  175. package/dist/docs/utilities/usePostMessage.md +58 -2
  176. package/dist/docs/utilities/usePostMessageSender.md +1 -1
  177. package/dist/docs/utilities/usePrevious.md +1 -1
  178. package/dist/docs/utilities/useResizeObserver.md +1 -1
  179. package/dist/docs/utilities/useScrollPosition.md +1 -1
  180. package/dist/docs/utilities/useSearch.md +1 -1
  181. package/dist/docs/utilities/useSorting.md +1 -1
  182. package/dist/docs/utilities/useStateWithValidation.md +1 -1
  183. package/dist/docs/utilities/useSum.md +1 -1
  184. package/dist/docs/utilities/useTableExport.md +54 -54
  185. package/dist/docs/utilities/useTableSelection.md +93 -93
  186. package/dist/docs/utilities/useTimeout.md +1 -1
  187. package/dist/docs/utilities/useToggle.md +1 -1
  188. package/dist/docs/utilities/useWindowResize.md +1 -1
  189. package/dist/index.mjs +8 -8
  190. package/dist/version.json +2 -2
  191. package/package.json +6 -6
@@ -3,7 +3,7 @@
3
3
  *Category:* Components
4
4
  *Section:* Interaction
5
5
  *Source:* https://uikit.developers.rio.cloud/#components/editableContent
6
- *Captured:* 2026-01-07T12:11:16.758Z
6
+ *Captured:* 2026-02-03T14:04:18.154Z
7
7
 
8
8
  The EditableContent component allows for inline editing text or other values. To make sure the user can recognize such an element, it's best to mark the text or content with a dotted line depending on the situation and where it is placed. Alternatively, you can place the "pencil" icon next to the content. Especially on mobile where no hover is available, the editable content must be marked permanently.
9
9
 
@@ -64,24 +64,24 @@ export default () => {
64
64
 
65
65
  | Name | Type | Default | Description |
66
66
  | --- | --- | --- | --- |
67
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
67
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
68
68
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
69
69
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
70
70
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
71
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
71
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
72
72
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
73
73
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
74
74
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
75
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
76
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
77
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
78
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
79
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
80
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
81
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
82
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
83
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
84
- | className | String | — | Additional classes to be set on the text wrapper element. |
75
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
76
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
77
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
78
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
79
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
80
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
81
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
82
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
83
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
84
+ | className | string | — | Additional classes to be set on the text wrapper element. |
85
85
 
86
86
  ### Example: Headline that can change
87
87
 
@@ -162,24 +162,24 @@ export default () => {
162
162
 
163
163
  | Name | Type | Default | Description |
164
164
  | --- | --- | --- | --- |
165
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
165
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
166
166
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
167
167
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
168
168
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
169
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
169
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
170
170
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
171
171
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
172
172
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
173
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
174
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
175
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
176
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
177
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
178
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
179
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
180
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
181
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
182
- | className | String | — | Additional classes to be set on the text wrapper element. |
173
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
174
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
175
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
176
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
177
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
178
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
179
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
180
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
181
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
182
+ | className | string | — | Additional classes to be set on the text wrapper element. |
183
183
 
184
184
  ### Example: Example 3
185
185
 
@@ -248,24 +248,24 @@ export default () => {
248
248
 
249
249
  | Name | Type | Default | Description |
250
250
  | --- | --- | --- | --- |
251
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
251
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
252
252
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
253
253
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
254
254
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
255
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
255
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
256
256
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
257
257
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
258
258
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
259
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
260
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
261
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
262
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
263
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
264
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
265
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
266
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
267
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
268
- | className | String | — | Additional classes to be set on the text wrapper element. |
259
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
260
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
261
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
262
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
263
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
264
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
265
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
266
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
267
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
268
+ | className | string | — | Additional classes to be set on the text wrapper element. |
269
269
 
270
270
  ### Example: Example 4
271
271
 
@@ -348,24 +348,24 @@ export default () => {
348
348
 
349
349
  | Name | Type | Default | Description |
350
350
  | --- | --- | --- | --- |
351
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
351
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
352
352
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
353
353
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
354
354
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
355
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
355
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
356
356
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
357
357
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
358
358
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
359
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
360
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
361
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
362
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
363
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
364
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
365
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
366
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
367
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
368
- | className | String | — | Additional classes to be set on the text wrapper element. |
359
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
360
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
361
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
362
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
363
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
364
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
365
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
366
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
367
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
368
+ | className | string | — | Additional classes to be set on the text wrapper element. |
369
369
 
370
370
  ### Example: Example 5
371
371
 
@@ -422,24 +422,24 @@ export default () => {
422
422
 
423
423
  | Name | Type | Default | Description |
424
424
  | --- | --- | --- | --- |
425
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
425
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
426
426
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
427
427
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
428
428
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
429
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
429
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
430
430
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
431
431
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
432
432
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
433
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
434
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
435
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
436
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
437
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
438
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
439
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
440
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
441
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
442
- | className | String | — | Additional classes to be set on the text wrapper element. |
433
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
434
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
435
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
436
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
437
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
438
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
439
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
440
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
441
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
442
+ | className | string | — | Additional classes to be set on the text wrapper element. |
443
443
 
444
444
  ### Example: Example 6
445
445
 
@@ -566,24 +566,24 @@ export default () => {
566
566
 
567
567
  | Name | Type | Default | Description |
568
568
  | --- | --- | --- | --- |
569
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
569
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
570
570
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
571
571
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
572
572
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
573
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
573
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
574
574
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
575
575
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
576
576
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
577
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
578
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
579
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
580
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
581
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
582
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
583
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
584
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
585
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
586
- | className | String | — | Additional classes to be set on the text wrapper element. |
577
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
578
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
579
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
580
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
581
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
582
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
583
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
584
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
585
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
586
+ | className | string | — | Additional classes to be set on the text wrapper element. |
587
587
 
588
588
  ### Example: Example 7
589
589
 
@@ -711,24 +711,24 @@ export default () => {
711
711
 
712
712
  | Name | Type | Default | Description |
713
713
  | --- | --- | --- | --- |
714
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
714
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
715
715
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
716
716
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
717
717
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
718
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
718
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
719
719
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
720
720
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
721
721
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
722
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
723
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
724
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
725
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
726
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
727
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
728
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
729
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
730
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
731
- | className | String | — | Additional classes to be set on the text wrapper element. |
722
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
723
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
724
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
725
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
726
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
727
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
728
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
729
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
730
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
731
+ | className | string | — | Additional classes to be set on the text wrapper element. |
732
732
 
733
733
  ## Usage guidelines
734
734
 
@@ -1107,21 +1107,21 @@ export default () => {
1107
1107
 
1108
1108
  | Name | Type | Default | Description |
1109
1109
  | --- | --- | --- | --- |
1110
- | show | Boolean | | Visibility flag used to control edit mode from outside. |
1110
+ | show | boolean | undefined | Visibility flag used to control edit mode from outside. |
1111
1111
  | onSave | (value: string) => void | — | Callback function triggered when the save button is clicked. |
1112
1112
  | onCancel | VoidFunction | — | Callback function triggered when the cancel button is clicked. |
1113
1113
  | onFocus | VoidFunction | — | Callback function triggered when the input gets focused. |
1114
- | onBlur | VoidFunction | — | Callback function triggered when input looses the focus. |
1114
+ | onBlur | VoidFunction | — | Callback function triggered when input looses it's focus. |
1115
1115
  | onEditMode | VoidFunction | — | Callback function triggered when entering the edit mode. |
1116
1116
  | onSaveValidation | (value: string) => boolean | — | Validation function to intercept saving and prevent save on error. |
1117
1117
  | isValid | boolean | true | Controls the error message visibility from outside. This is useful when using a custom input where the validation happens outside of this component. |
1118
- | errorMessage | ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
1119
- | customEditor | ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. the text element has borders, spacings different text sizes. |
1120
- | editorOffsetTop | Number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
1121
- | editorOffsetLeft | Number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
1122
- | size | String | md | Defines the input and button size. Use "lg" for headlines. |
1123
- | allowResize | Boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
1124
- | inputRows | Number | 1 | Defines the number of rows to use by the internal textarea component. |
1125
- | inputClassName | String | — | Additional classes to be set on the editor input itself. |
1126
- | editorClassName | String | — | Additional classes to be set on the editor wrapper element. |
1127
- | className | String | — | Additional classes to be set on the text wrapper element. |
1118
+ | errorMessage | React.ReactNode | — | The error message that shall be shown to the user in case the validation fails. |
1119
+ | customEditor | React.ReactNode | — | Use this prop to define a custom editor input component like Select, NumberInput, TimePicker or DatePicker. Handling input state changes of a custom editor need to be handled outside of this component. By default the EditableContent uses a built-in textarea to allow resizing for larger text. |
1120
+ | editorOffsetTop | number | 0 | Offset value to control the vertical position for the editor in case the text element has borders, spacings different text sizes. |
1121
+ | editorOffsetLeft | number | 0 | Offset value to control the horizontal position for the editor in case the text element has borders, spacings different text sizes. |
1122
+ | size | 'md' \| 'lg' | 'md' | Defines the input and button size. Use 'lg' for headlines. |
1123
+ | allowResize | boolean | false | Defines if the internal textarea is allowed to resize vertically. This comes in handy for larger text and when using multiple input rows. |
1124
+ | inputRows | number | 1 | Defines the number of rows to use by the internal textarea component. When a single line is used, the input is saved on "enter" key. |
1125
+ | inputClassName | string | — | Additional classes to be set on the editor input itself. |
1126
+ | editorClassName | string | — | Additional classes to be set on the editor wrapper element. |
1127
+ | className | string | — | Additional classes to be set on the text wrapper element. |
@@ -3,7 +3,7 @@
3
3
  *Category:* Components
4
4
  *Section:* Show/Hide
5
5
  *Source:* https://uikit.developers.rio.cloud/#components/expander
6
- *Captured:* 2026-01-07T12:11:22.960Z
6
+ *Captured:* 2026-02-03T14:04:24.384Z
7
7
 
8
8
  A simple panel component where the "panel-body" can be expanded.
9
9
 
@@ -117,22 +117,21 @@ export default () => {
117
117
 
118
118
  | Name | Type | Default | Description |
119
119
  | --- | --- | --- | --- |
120
- | title | String / Node | — | The title to be shown in the expander header. |
121
- | bsStyle | String | 'blank' | Component visual or contextual style variants. Possible values are: 'default' 'separator' 'blank' 'primary' 'secondary' 'info' 'warning' 'danger' 'success' |
122
- | iconLeft | Boolean | false | Defines if the icon will be align left, otherwise it is aligned right. |
123
- | open | Boolean | false | Defines if the panel will be opened or closed by default. The open/closed state will be handled internally |
124
- | unmountOnExit | Boolean | true | It unmounts the body component (remove it from the DOM) when it is collapsed. Set it to false to avoid the unmount. |
125
- | className | String | — | Additional classes to be set on the wrapper element. |
126
- | iconClassName | String | — | Additional classes added to the chevron icon |
127
- | headerClassName | String | — | Additional classes to be set on the panel header. |
128
- | titleClassName | String | — | Additional classes to be set on the header title. |
129
- | bodyClassName | String | — | Additional classes to be set on the panel body. |
120
+ | title | string \| React.ReactNode | — | The title to be shown in the expander header. |
121
+ | bsStyle | 'blank' \| 'default' \| 'separator' \| 'primary' \| 'secondary' \| 'info' \| 'warning' \| 'danger' \| 'success' | 'blank' | Component visual or contextual style variants. |
122
+ | iconLeft | boolean | false | Defines if the icon will be align left, otherwise it is aligned right. |
123
+ | open | boolean | false | Defines if the panel will be opened or closed by default. The open/closed state will be handled internally. |
124
+ | unmountOnExit | boolean | true | It unmounts the body component (remove it from the DOM) when it is collapsed. Set it to false to avoid the unmount. |
130
125
  | onToggle | (isOpen: boolean) => void | — | Callback function for when the header is clicked and the expander toggles. |
131
126
  | onEntered | VoidFunction | — | Callback fired after the component has expanded. |
132
127
  | onExited | VoidFunction | — | Callback fired after the component has collapsed. |
133
128
  | onAnimationStart | VoidFunction | — | Callback fired when the animation starts for either expand or collapse. |
134
- | children | Node | — | Any element to be rendered inside the panel body. |
135
- | children | Function | — | Providing a function enables the "render props" approach. The function gets the isOpen state passed and is responsible for rendering the custom content. |
129
+ | headerClassName | string | — | Additional classes to be set on the panel header. |
130
+ | titleClassName | string | — | Additional classes to be set on the header title. |
131
+ | bodyClassName | string | — | Additional classes to be set on the panel body. |
132
+ | iconClassName | string | — | Additional classes added to the chevron icon |
133
+ | className | string | — | Additional classes to be set on the wrapper element. |
134
+ | children | React.ReactNode \| ((isOpen: boolean) => React.ReactNode \| JSX.Element) | — | Any element to be rendered inside the panel body. Providing a function enables the render prop approach. See https://reactjs.org/docs/render-props.html The function gets the isOpen state passed and is responsible for rendering the custom content. |
136
135
 
137
136
  ### Example: Default
138
137
 
@@ -277,8 +276,8 @@ export default () => (
277
276
  bsStyle='separator'
278
277
  bodyClassName='padding-top-5 padding-x-0'
279
278
  >
280
- {(open: boolean) => {
281
- console.log(`isOpen: ${open}`);
279
+ {isOpen => {
280
+ console.log(`isOpen: ${isOpen}`);
282
281
  return content2;
283
282
  }}
284
283
  </ExpanderPanel>
@@ -291,8 +290,8 @@ export default () => (
291
290
  bsStyle='separator'
292
291
  bodyClassName='padding-top-5 padding-right-20'
293
292
  >
294
- {(open: boolean) => {
295
- console.log(`isOpen: ${open}`);
293
+ {isOpen => {
294
+ console.log(`isOpen: ${isOpen}`);
296
295
  return content2;
297
296
  }}
298
297
  </ExpanderPanel>
@@ -300,8 +299,8 @@ export default () => (
300
299
  <div className='grid-colspan-1 grid-colspan-2-lg'>
301
300
  <label className='text-color-dark'>Primary</label>
302
301
  <ExpanderPanel title='Lorem ipsum' titleClassName='text-normal' bsStyle='primary'>
303
- {(open: boolean) => {
304
- console.log(`isOpen: ${open}`);
302
+ {isOpen => {
303
+ console.log(`isOpen: ${isOpen}`);
305
304
  return content2;
306
305
  }}
307
306
  </ExpanderPanel>
@@ -309,37 +308,37 @@ export default () => (
309
308
  <div className='grid-colspan-1 grid-colspan-2-lg'>
310
309
  <label className='text-color-dark'>Primary</label>
311
310
  <ExpanderPanel title='Header with icon left' titleClassName='text-normal' iconLeft bsStyle='primary'>
312
- {(open: boolean) => {
313
- console.log(`isOpen: ${open}`);
311
+ {isOpen => {
312
+ console.log(`isOpen: ${isOpen}`);
314
313
  return content2;
315
314
  }}
316
315
  </ExpanderPanel>
317
316
  </div>
318
- <div className=''>
317
+ <div>
319
318
  <label className='text-color-dark'>Secondary</label>
320
319
  <ExpanderPanel title='Lorem ipsum' bsStyle='secondary'>
321
320
  {dummyTextExtraShort}
322
321
  </ExpanderPanel>
323
322
  </div>
324
- <div className=''>
323
+ <div>
325
324
  <label className='text-color-dark'>Info</label>
326
325
  <ExpanderPanel title='Lorem ipsum' bsStyle='info'>
327
326
  {dummyTextExtraShort}
328
327
  </ExpanderPanel>
329
328
  </div>
330
- <div className=''>
329
+ <div>
331
330
  <label className='text-color-dark'>Warning</label>
332
331
  <ExpanderPanel title='Lorem ipsum' bsStyle='warning'>
333
332
  {dummyTextExtraShort}
334
333
  </ExpanderPanel>
335
334
  </div>
336
- <div className=''>
335
+ <div>
337
336
  <label className='text-color-dark'>Danger</label>
338
337
  <ExpanderPanel title='Lorem ipsum' bsStyle='danger'>
339
338
  {dummyTextExtraShort}
340
339
  </ExpanderPanel>
341
340
  </div>
342
- <div className=''>
341
+ <div>
343
342
  <label className='text-color-dark'>success</label>
344
343
  <ExpanderPanel title='Lorem ipsum' bsStyle='success'>
345
344
  {dummyTextExtraShort}
@@ -386,7 +385,7 @@ const DynamicContent = () => {
386
385
  const idString = event.currentTarget.getAttribute('data-id');
387
386
  if (idString) {
388
387
  const id = Number.parseInt(idString, 10);
389
- if (!isNaN(id)) {
388
+ if (!Number.isNaN(id)) {
390
389
  setListItems(listItems.filter(item => item.id !== id));
391
390
  }
392
391
  }
@@ -542,7 +541,7 @@ const DynamicContent = () => {
542
541
  </div>
543
542
  </div>
544
543
  </div>
545
- <div class="">
544
+ <div>
546
545
  <label class="text-color-dark">Secondary</label>
547
546
  <div class="expander-panel panel panel-secondary" aria-label="expander panel">
548
547
  <div class="panel-heading" aria-label="panel heading">
@@ -552,7 +551,7 @@ const DynamicContent = () => {
552
551
  </div>
553
552
  </div>
554
553
  </div>
555
- <div class="">
554
+ <div>
556
555
  <label class="text-color-dark">Info</label>
557
556
  <div class="expander-panel panel panel-info" aria-label="expander panel">
558
557
  <div class="panel-heading" aria-label="panel heading">
@@ -562,7 +561,7 @@ const DynamicContent = () => {
562
561
  </div>
563
562
  </div>
564
563
  </div>
565
- <div class="">
564
+ <div>
566
565
  <label class="text-color-dark">Warning</label>
567
566
  <div class="expander-panel panel panel-warning" aria-label="expander panel">
568
567
  <div class="panel-heading" aria-label="panel heading">
@@ -572,7 +571,7 @@ const DynamicContent = () => {
572
571
  </div>
573
572
  </div>
574
573
  </div>
575
- <div class="">
574
+ <div>
576
575
  <label class="text-color-dark">Danger</label>
577
576
  <div class="expander-panel panel panel-danger" aria-label="expander panel">
578
577
  <div class="panel-heading" aria-label="panel heading">
@@ -582,7 +581,7 @@ const DynamicContent = () => {
582
581
  </div>
583
582
  </div>
584
583
  </div>
585
- <div class="">
584
+ <div>
586
585
  <label class="text-color-dark">success</label>
587
586
  <div class="expander-panel panel panel-success" aria-label="expander panel">
588
587
  <div class="panel-heading" aria-label="panel heading">
@@ -656,22 +655,21 @@ const DynamicContent = () => {
656
655
 
657
656
  | Name | Type | Default | Description |
658
657
  | --- | --- | --- | --- |
659
- | title | String / Node | — | The title to be shown in the expander header. |
660
- | bsStyle | String | 'blank' | Component visual or contextual style variants. Possible values are: 'default' 'separator' 'blank' 'primary' 'secondary' 'info' 'warning' 'danger' 'success' |
661
- | iconLeft | Boolean | false | Defines if the icon will be align left, otherwise it is aligned right. |
662
- | open | Boolean | false | Defines if the panel will be opened or closed by default. The open/closed state will be handled internally |
663
- | unmountOnExit | Boolean | true | It unmounts the body component (remove it from the DOM) when it is collapsed. Set it to false to avoid the unmount. |
664
- | className | String | — | Additional classes to be set on the wrapper element. |
665
- | iconClassName | String | — | Additional classes added to the chevron icon |
666
- | headerClassName | String | — | Additional classes to be set on the panel header. |
667
- | titleClassName | String | — | Additional classes to be set on the header title. |
668
- | bodyClassName | String | — | Additional classes to be set on the panel body. |
658
+ | title | string \| React.ReactNode | — | The title to be shown in the expander header. |
659
+ | bsStyle | 'blank' \| 'default' \| 'separator' \| 'primary' \| 'secondary' \| 'info' \| 'warning' \| 'danger' \| 'success' | 'blank' | Component visual or contextual style variants. |
660
+ | iconLeft | boolean | false | Defines if the icon will be align left, otherwise it is aligned right. |
661
+ | open | boolean | false | Defines if the panel will be opened or closed by default. The open/closed state will be handled internally. |
662
+ | unmountOnExit | boolean | true | It unmounts the body component (remove it from the DOM) when it is collapsed. Set it to false to avoid the unmount. |
669
663
  | onToggle | (isOpen: boolean) => void | — | Callback function for when the header is clicked and the expander toggles. |
670
664
  | onEntered | VoidFunction | — | Callback fired after the component has expanded. |
671
665
  | onExited | VoidFunction | — | Callback fired after the component has collapsed. |
672
666
  | onAnimationStart | VoidFunction | — | Callback fired when the animation starts for either expand or collapse. |
673
- | children | Node | — | Any element to be rendered inside the panel body. |
674
- | children | Function | — | Providing a function enables the "render props" approach. The function gets the isOpen state passed and is responsible for rendering the custom content. |
667
+ | headerClassName | string | — | Additional classes to be set on the panel header. |
668
+ | titleClassName | string | — | Additional classes to be set on the header title. |
669
+ | bodyClassName | string | — | Additional classes to be set on the panel body. |
670
+ | iconClassName | string | — | Additional classes added to the chevron icon |
671
+ | className | string | — | Additional classes to be set on the wrapper element. |
672
+ | children | React.ReactNode \| ((isOpen: boolean) => React.ReactNode \| JSX.Element) | — | Any element to be rendered inside the panel body. Providing a function enables the render prop approach. See https://reactjs.org/docs/render-props.html The function gets the isOpen state passed and is responsible for rendering the custom content. |
675
673
 
676
674
  ## ExpanderList
677
675
 
@@ -956,15 +954,17 @@ export default () => {
956
954
 
957
955
  | Name | Type | Default | Description |
958
956
  | --- | --- | --- | --- |
959
- | items | Array of Objects | [] | List of items to be rendered |
960
- | └id | String / Number | — | The "id" property is used to know which item is expanded. It will also be used to control the component from the outside. It can be a number or a string. If there is no "id" provided, a unique id is internally generated which will be used internally for the uncontrolled case. |
961
- | └header | String / Node | — | The header content. |
962
- | └body | String / Node | — | The body content. If there is no "body" provided, the list item is not expandable. |
963
- | └open | Boolean | — | Defines if the item will be expanded or closed by default. |
964
- | └className | String | — | Additional classes to be set on list item node. |
965
- | └headerClassName | String | — | Additional classes to be set on "expander-list-header" node. |
966
- | └bodyClassName | String | — | Additional classes to be set on "expander-list-body" node. |
967
- | rounded | Boolean | true | Defines whether the "expander-list-body" is rounded or not. |
968
- | border | Boolean | true | Defines whether the "expander-list-body" has a border or not. |
969
- | unmountOnExit | Boolean | true | It unmounts the body component (remove it from the DOM) when it is collapsed. Set it to false to avoid the unmount. |
970
- | className | String | | Additional classes to be set on the unordered list itself. |
957
+ | items | ExpanderListItem[] | | List of items to be rendered. The expanded state can be defined via the items open prop. |
958
+ | └id | string \| number | — | The "id" property is used to know which item is expanded. It will also be used to control the component from the outside. It can be a number or a string. If there is no "id" provided, a unique id is internally generated which will be used internally for the uncontrolled case.' |
959
+ | └header | string \| React.ReactNode | — | The header content. |
960
+ | └body | string \| React.ReactNode | — | The body content. If there is no "body" provided, the list item is not expandable. |
961
+ | └open | boolean | — | Defines if the item will be expanded or closed by default. |
962
+ | └onOpen | VoidFunction | — | Callback fired when item toggles to open after a click. |
963
+ | └onClose | VoidFunction | — | Callback fired when item toggles to close after a click. |
964
+ | └headerClassName | string | — | Additional classes to be set on "expander-list-header" node. |
965
+ | └bodyClassName | string | | Additional classes to be set on "expander-list-body" node. |
966
+ | └className | string | | Additional classes to be set on list item node. |
967
+ | rounded | boolean | true | Defines whether the "expander-list-body" is rounded or not. |
968
+ | bordered | boolean | true | Defines whether the "expander-list-body" has a border or not. |
969
+ | unmountOnExit | boolean | true | It unmounts the body component (remove it from the DOM) when it is collapsed. Set it to false to avoid the unmount. |
970
+ | className | string | — | Additional classes to be set on the unordered list itself. |