@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:* Content
5
5
  *Source:* https://uikit.developers.rio.cloud/#components/dataTabs
6
- *Captured:* 2026-01-07T12:11:40.597Z
6
+ *Captured:* 2026-02-03T14:04:45.261Z
7
7
 
8
8
  Passing a single tab content component via commonTabContent prop into the DataTabs component allows to update that single component when switching tabs. This comes in handy for instance when you want to animate a graph with different values from each tab.
9
9
 
@@ -161,19 +161,21 @@ export const RouteType = () => (
161
161
 
162
162
  | Name | Type | Default | Description |
163
163
  | --- | --- | --- | --- |
164
- | activeKey | String | "" | Sets key and id. |
165
- | onSelectTab | boolean | () => {} | Called when a tab is being activated. |
166
- | commonTabContent | ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
167
- | vertical | boolean | false | Whether the layout should be vertical. |
164
+ | activeKey | string | '' | Sets key and id. |
168
165
  | bordered | boolean | true | Whether the component should add a border. |
169
- | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
170
166
  | className | string | — | Additional classes to be set on the wrapper element. |
171
- | tabContentClassName | string | — | Additional classes to be set on the tabContent wrapper element. |
167
+ | commonTabContent | React.ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
168
+ | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
169
+ | arrowClassName | string | 'bg-highlight-dark border-color-transparent' | Additional classes to be set on the arrow. |
170
+ | onSelectTab | (tabKey: string) => void | — | Called when a tab is being activated. |
171
+ | tabClassName | string | — | Additional classes to be set on the tab element. |
172
+ | tabHoverClassName | string | 'bg-highlight-decent text-color-darkest' | Utility hover classes to be set on the tab element. |
173
+ | tabActiveClassName | string | 'bg-highlight-dark text-color-white' | Utility active classes to be set on the tab element. |
174
+ | tabFirstChildClassName | string | — | Utility first-child classes to be set on the tab element. |
175
+ | tabLastChildClassName | string | — | Utility last-child classes to be set on the tab element. |
176
+ | tabContentClassName | string | — | Utility content classes to be set on the tab element. |
172
177
  | tabsWrapperClassName | string | — | Additional classes to be set on the tabs wrapper element. |
173
- | arrowClassName | string | bg-highlight-dark | Additional classes to be set on the arrow. |
174
- | tabClassName | string | bg-white | Additional classes to be set on the tab element. |
175
- | tabHoverClassName | string | text-color-darkest | Utility hover classes to be set on the tab element. |
176
- | tabActiveClassName | string | text-color-darkest | Utility active classes to be set on the tab element. |
178
+ | vertical | boolean | false | Whether the layout should be vertical. |
177
179
 
178
180
  #### Props: DataTab
179
181
 
@@ -181,13 +183,13 @@ export const RouteType = () => (
181
183
 
182
184
  | Name | Type | Default | Description |
183
185
  | --- | --- | --- | --- |
186
+ | active | boolean | false | Whether this tab is the one currently active. |
184
187
  | tabKey | string | — | Used to identify the tab. |
185
- | title | string \| ReactNode | | The content for the tab. |
186
- | active | boolean | — | Whether this tab is the one currently active. |
187
- | disableTransition | boolean | — | Whether the transition effect should be disabled. |
188
+ | disableTransition | boolean | false | Whether the transition effect should be disabled. |
189
+ | title | React.ReactNode | — | The content for the tab. |
188
190
  | onAnimationStart | VoidFunction | — | Callback for when the animation starts. |
189
191
  | onAnimationEnd | VoidFunction | — | Callback for when the animation ends. |
190
- | className | String | — | Additional classes to be set on the element. |
192
+ | className | string | — | Additional classes to be set on the element. |
191
193
 
192
194
  ### Example: Example 2
193
195
 
@@ -341,19 +343,21 @@ export const RouteType = () => (
341
343
 
342
344
  | Name | Type | Default | Description |
343
345
  | --- | --- | --- | --- |
344
- | activeKey | String | "" | Sets key and id. |
345
- | onSelectTab | boolean | () => {} | Called when a tab is being activated. |
346
- | commonTabContent | ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
347
- | vertical | boolean | false | Whether the layout should be vertical. |
346
+ | activeKey | string | '' | Sets key and id. |
348
347
  | bordered | boolean | true | Whether the component should add a border. |
349
- | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
350
348
  | className | string | — | Additional classes to be set on the wrapper element. |
351
- | tabContentClassName | string | — | Additional classes to be set on the tabContent wrapper element. |
349
+ | commonTabContent | React.ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
350
+ | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
351
+ | arrowClassName | string | 'bg-highlight-dark border-color-transparent' | Additional classes to be set on the arrow. |
352
+ | onSelectTab | (tabKey: string) => void | — | Called when a tab is being activated. |
353
+ | tabClassName | string | — | Additional classes to be set on the tab element. |
354
+ | tabHoverClassName | string | 'bg-highlight-decent text-color-darkest' | Utility hover classes to be set on the tab element. |
355
+ | tabActiveClassName | string | 'bg-highlight-dark text-color-white' | Utility active classes to be set on the tab element. |
356
+ | tabFirstChildClassName | string | — | Utility first-child classes to be set on the tab element. |
357
+ | tabLastChildClassName | string | — | Utility last-child classes to be set on the tab element. |
358
+ | tabContentClassName | string | — | Utility content classes to be set on the tab element. |
352
359
  | tabsWrapperClassName | string | — | Additional classes to be set on the tabs wrapper element. |
353
- | arrowClassName | string | bg-highlight-dark | Additional classes to be set on the arrow. |
354
- | tabClassName | string | bg-white | Additional classes to be set on the tab element. |
355
- | tabHoverClassName | string | text-color-darkest | Utility hover classes to be set on the tab element. |
356
- | tabActiveClassName | string | text-color-darkest | Utility active classes to be set on the tab element. |
360
+ | vertical | boolean | false | Whether the layout should be vertical. |
357
361
 
358
362
  #### Props: DataTab
359
363
 
@@ -361,13 +365,13 @@ export const RouteType = () => (
361
365
 
362
366
  | Name | Type | Default | Description |
363
367
  | --- | --- | --- | --- |
368
+ | active | boolean | false | Whether this tab is the one currently active. |
364
369
  | tabKey | string | — | Used to identify the tab. |
365
- | title | string \| ReactNode | | The content for the tab. |
366
- | active | boolean | — | Whether this tab is the one currently active. |
367
- | disableTransition | boolean | — | Whether the transition effect should be disabled. |
370
+ | disableTransition | boolean | false | Whether the transition effect should be disabled. |
371
+ | title | React.ReactNode | — | The content for the tab. |
368
372
  | onAnimationStart | VoidFunction | — | Callback for when the animation starts. |
369
373
  | onAnimationEnd | VoidFunction | — | Callback for when the animation ends. |
370
- | className | String | — | Additional classes to be set on the element. |
374
+ | className | string | — | Additional classes to be set on the element. |
371
375
 
372
376
  ## DataTabs inside an ExpanderPanel and custom color
373
377
 
@@ -570,19 +574,21 @@ export const RouteType = () => (
570
574
 
571
575
  | Name | Type | Default | Description |
572
576
  | --- | --- | --- | --- |
573
- | activeKey | String | "" | Sets key and id. |
574
- | onSelectTab | boolean | () => {} | Called when a tab is being activated. |
575
- | commonTabContent | ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
576
- | vertical | boolean | false | Whether the layout should be vertical. |
577
+ | activeKey | string | '' | Sets key and id. |
577
578
  | bordered | boolean | true | Whether the component should add a border. |
578
- | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
579
579
  | className | string | — | Additional classes to be set on the wrapper element. |
580
- | tabContentClassName | string | — | Additional classes to be set on the tabContent wrapper element. |
580
+ | commonTabContent | React.ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
581
+ | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
582
+ | arrowClassName | string | 'bg-highlight-dark border-color-transparent' | Additional classes to be set on the arrow. |
583
+ | onSelectTab | (tabKey: string) => void | — | Called when a tab is being activated. |
584
+ | tabClassName | string | — | Additional classes to be set on the tab element. |
585
+ | tabHoverClassName | string | 'bg-highlight-decent text-color-darkest' | Utility hover classes to be set on the tab element. |
586
+ | tabActiveClassName | string | 'bg-highlight-dark text-color-white' | Utility active classes to be set on the tab element. |
587
+ | tabFirstChildClassName | string | — | Utility first-child classes to be set on the tab element. |
588
+ | tabLastChildClassName | string | — | Utility last-child classes to be set on the tab element. |
589
+ | tabContentClassName | string | — | Utility content classes to be set on the tab element. |
581
590
  | tabsWrapperClassName | string | — | Additional classes to be set on the tabs wrapper element. |
582
- | arrowClassName | string | bg-highlight-dark | Additional classes to be set on the arrow. |
583
- | tabClassName | string | bg-white | Additional classes to be set on the tab element. |
584
- | tabHoverClassName | string | text-color-darkest | Utility hover classes to be set on the tab element. |
585
- | tabActiveClassName | string | text-color-darkest | Utility active classes to be set on the tab element. |
591
+ | vertical | boolean | false | Whether the layout should be vertical. |
586
592
 
587
593
  #### Props: DataTab
588
594
 
@@ -590,13 +596,13 @@ export const RouteType = () => (
590
596
 
591
597
  | Name | Type | Default | Description |
592
598
  | --- | --- | --- | --- |
599
+ | active | boolean | false | Whether this tab is the one currently active. |
593
600
  | tabKey | string | — | Used to identify the tab. |
594
- | title | string \| ReactNode | | The content for the tab. |
595
- | active | boolean | — | Whether this tab is the one currently active. |
596
- | disableTransition | boolean | — | Whether the transition effect should be disabled. |
601
+ | disableTransition | boolean | false | Whether the transition effect should be disabled. |
602
+ | title | React.ReactNode | — | The content for the tab. |
597
603
  | onAnimationStart | VoidFunction | — | Callback for when the animation starts. |
598
604
  | onAnimationEnd | VoidFunction | — | Callback for when the animation ends. |
599
- | className | String | — | Additional classes to be set on the element. |
605
+ | className | string | — | Additional classes to be set on the element. |
600
606
 
601
607
  ## DataTabs with shared common tab content and custom styling
602
608
 
@@ -648,7 +654,7 @@ Hide last tab
648
654
  /* eslint-disable max-len */
649
655
  import type React from 'react';
650
656
  import { useState } from 'react';
651
- import faker from 'faker';
657
+ import { faker } from '@faker-js/faker';
652
658
 
653
659
  import ExpanderPanel from '@rio-cloud/rio-uikit/ExpanderPanel';
654
660
  import DataTabs from '@rio-cloud/rio-uikit/DataTabs';
@@ -663,7 +669,7 @@ type DummyItem = { name: string; value: number };
663
669
  const getData = (): DummyItem[] =>
664
670
  ['Page A', 'Page B', 'Page C', 'Page D', 'Page E', 'Page F', 'Page G'].map(item => ({
665
671
  name: item,
666
- value: faker.random.arrayElement([3200, 3000, 2000, 2780, 1890, 2390, 3490]),
672
+ value: faker.helpers.arrayElement([3200, 3000, 2000, 2780, 1890, 2390, 3490]),
667
673
  }));
668
674
 
669
675
  const DummyContent = ({ tabKey }: { tabKey: string }) => (
@@ -837,7 +843,7 @@ export const RouteType = () => (
837
843
  </title>
838
844
  <desc>
839
845
  </desc>
840
- <g tabindex="-1" id="recharts-zindex--100-:r5:">
846
+ <g tabindex="-1">
841
847
  <g class="recharts-cartesian-grid">
842
848
  <g class="recharts-cartesian-grid-horizontal">
843
849
  <line stroke-dasharray="0" stroke="#e5ebf0 " fill="none" x="15" y="15" width="470" height="140" x1="15" y1="155" x2="485" y2="155">
@@ -853,7 +859,7 @@ export const RouteType = () => (
853
859
  </g>
854
860
  </g>
855
861
  </g>
856
- <g tabindex="-1" id="recharts-zindex--50-:r6:">
862
+ <g tabindex="-1">
857
863
  </g>
858
864
  <defs>
859
865
  <clipPath id="recharts1-clip">
@@ -861,19 +867,19 @@ export const RouteType = () => (
861
867
  </rect>
862
868
  </clipPath>
863
869
  </defs>
864
- <g tabindex="-1" id="recharts-zindex-100-:r8:">
870
+ <g tabindex="-1">
865
871
  </g>
866
- <g tabindex="-1" id="recharts-zindex-200-:r9:">
872
+ <g tabindex="-1">
867
873
  </g>
868
- <g tabindex="-1" id="recharts-zindex-300-:ra:">
874
+ <g tabindex="-1">
869
875
  </g>
870
- <g tabindex="-1" id="recharts-zindex-400-:rb:">
876
+ <g tabindex="-1">
871
877
  <g class="recharts-layer recharts-line">
872
- <path stroke="#67abc5 " fill="none" stroke-width="1" id="recharts-line-:r7:" height="140" width="470" class="recharts-curve recharts-line-curve" stroke-dasharray="469.85504150390625px 0px" d="M45,62.056C67.778,46.306,90.556,30.556,113.333,30.556C136.111,30.556,158.889,77.222,181.667,77.222C204.444,77.222,227.222,19.278,250,19.278C272.778,19.278,295.556,46.889,318.333,46.889C341.111,46.889,363.889,38.333,386.667,38.333C409.444,38.333,432.222,50.194,455,62.056">
878
+ <path stroke="#67abc5 " fill="none" stroke-width="1" id="recharts-line-:r5:" height="140" width="470" class="recharts-curve recharts-line-curve" stroke-dasharray="431.9348px 0.000014453125004365575px" d="M45,23.75C67.778,28.563,90.556,33.375,113.333,33.375C136.111,33.375,158.889,15,181.667,15C204.444,15,227.222,33.375,250,33.375C272.778,33.375,295.556,15,318.333,15C341.111,15,363.889,50.438,386.667,50.438C409.444,50.438,432.222,41.906,455,33.375">
873
879
  </path>
874
880
  </g>
875
881
  </g>
876
- <g tabindex="-1" id="recharts-zindex-500-:rc:">
882
+ <g tabindex="-1">
877
883
  <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
878
884
  <line angle="0" height="30" orientation="bottom" x="15" y="155" width="470" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="15" y1="155" x2="485" y2="155">
879
885
  </line>
@@ -911,31 +917,31 @@ export const RouteType = () => (
911
917
  </g>
912
918
  </g>
913
919
  </g>
914
- <g tabindex="-1" id="recharts-zindex-600-:rd:">
920
+ <g tabindex="-1">
915
921
  <g class="recharts-layer recharts-line-dots">
916
- <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="45" cy="62.05555555555556" class="recharts-dot recharts-line-dot">
922
+ <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="45" cy="23.75" class="recharts-dot recharts-line-dot">
917
923
  </circle>
918
- <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="113.33333333333333" cy="30.55555555555556" class="recharts-dot recharts-line-dot">
924
+ <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="113.33333333333333" cy="33.375" class="recharts-dot recharts-line-dot">
919
925
  </circle>
920
- <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="181.66666666666666" cy="77.22222222222221" class="recharts-dot recharts-line-dot">
926
+ <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="181.66666666666666" cy="15" class="recharts-dot recharts-line-dot">
921
927
  </circle>
922
- <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="250" cy="19.27777777777778" class="recharts-dot recharts-line-dot">
928
+ <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="250" cy="33.375" class="recharts-dot recharts-line-dot">
923
929
  </circle>
924
- <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="318.3333333333333" cy="46.888888888888886" class="recharts-dot recharts-line-dot">
930
+ <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="318.3333333333333" cy="15" class="recharts-dot recharts-line-dot">
925
931
  </circle>
926
- <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="386.66666666666663" cy="38.33333333333333" class="recharts-dot recharts-line-dot">
932
+ <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="386.66666666666663" cy="50.43750000000001" class="recharts-dot recharts-line-dot">
927
933
  </circle>
928
- <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="455" cy="62.05555555555556" class="recharts-dot recharts-line-dot">
934
+ <circle r="3" stroke="#67abc5 " fill="#fff" stroke-width="1" height="140" width="470" cx="455" cy="33.375" class="recharts-dot recharts-line-dot">
929
935
  </circle>
930
936
  </g>
931
937
  </g>
932
- <g tabindex="-1" id="recharts-zindex-1000-:re:">
938
+ <g tabindex="-1">
933
939
  </g>
934
- <g tabindex="-1" id="recharts-zindex-1100-:rf:">
940
+ <g tabindex="-1">
935
941
  </g>
936
- <g tabindex="-1" id="recharts-zindex-1200-:rg:">
942
+ <g tabindex="-1">
937
943
  </g>
938
- <g tabindex="-1" id="recharts-zindex-2000-:rh:">
944
+ <g tabindex="-1">
939
945
  <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
940
946
  <g class="recharts-layer recharts-cartesian-axis-tick-label">
941
947
  <text height="30" orientation="bottom" width="470" stroke="none" x="45" y="163" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
@@ -1000,19 +1006,21 @@ export const RouteType = () => (
1000
1006
 
1001
1007
  | Name | Type | Default | Description |
1002
1008
  | --- | --- | --- | --- |
1003
- | activeKey | String | "" | Sets key and id. |
1004
- | onSelectTab | boolean | () => {} | Called when a tab is being activated. |
1005
- | commonTabContent | ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
1006
- | vertical | boolean | false | Whether the layout should be vertical. |
1009
+ | activeKey | string | '' | Sets key and id. |
1007
1010
  | bordered | boolean | true | Whether the component should add a border. |
1008
- | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
1009
1011
  | className | string | — | Additional classes to be set on the wrapper element. |
1010
- | tabContentClassName | string | — | Additional classes to be set on the tabContent wrapper element. |
1012
+ | commonTabContent | React.ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
1013
+ | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
1014
+ | arrowClassName | string | 'bg-highlight-dark border-color-transparent' | Additional classes to be set on the arrow. |
1015
+ | onSelectTab | (tabKey: string) => void | — | Called when a tab is being activated. |
1016
+ | tabClassName | string | — | Additional classes to be set on the tab element. |
1017
+ | tabHoverClassName | string | 'bg-highlight-decent text-color-darkest' | Utility hover classes to be set on the tab element. |
1018
+ | tabActiveClassName | string | 'bg-highlight-dark text-color-white' | Utility active classes to be set on the tab element. |
1019
+ | tabFirstChildClassName | string | — | Utility first-child classes to be set on the tab element. |
1020
+ | tabLastChildClassName | string | — | Utility last-child classes to be set on the tab element. |
1021
+ | tabContentClassName | string | — | Utility content classes to be set on the tab element. |
1011
1022
  | tabsWrapperClassName | string | — | Additional classes to be set on the tabs wrapper element. |
1012
- | arrowClassName | string | bg-highlight-dark | Additional classes to be set on the arrow. |
1013
- | tabClassName | string | bg-white | Additional classes to be set on the tab element. |
1014
- | tabHoverClassName | string | text-color-darkest | Utility hover classes to be set on the tab element. |
1015
- | tabActiveClassName | string | text-color-darkest | Utility active classes to be set on the tab element. |
1023
+ | vertical | boolean | false | Whether the layout should be vertical. |
1016
1024
 
1017
1025
  #### Props: DataTab
1018
1026
 
@@ -1020,13 +1028,13 @@ export const RouteType = () => (
1020
1028
 
1021
1029
  | Name | Type | Default | Description |
1022
1030
  | --- | --- | --- | --- |
1031
+ | active | boolean | false | Whether this tab is the one currently active. |
1023
1032
  | tabKey | string | — | Used to identify the tab. |
1024
- | title | string \| ReactNode | | The content for the tab. |
1025
- | active | boolean | — | Whether this tab is the one currently active. |
1026
- | disableTransition | boolean | — | Whether the transition effect should be disabled. |
1033
+ | disableTransition | boolean | false | Whether the transition effect should be disabled. |
1034
+ | title | React.ReactNode | — | The content for the tab. |
1027
1035
  | onAnimationStart | VoidFunction | — | Callback for when the animation starts. |
1028
1036
  | onAnimationEnd | VoidFunction | — | Callback for when the animation ends. |
1029
- | className | String | — | Additional classes to be set on the element. |
1037
+ | className | string | — | Additional classes to be set on the element. |
1030
1038
 
1031
1039
  ### Example: Example 5
1032
1040
 
@@ -1222,19 +1230,21 @@ export default () => {
1222
1230
 
1223
1231
  | Name | Type | Default | Description |
1224
1232
  | --- | --- | --- | --- |
1225
- | activeKey | String | "" | Sets key and id. |
1226
- | onSelectTab | boolean | () => {} | Called when a tab is being activated. |
1227
- | commonTabContent | ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
1228
- | vertical | boolean | false | Whether the layout should be vertical. |
1233
+ | activeKey | string | '' | Sets key and id. |
1229
1234
  | bordered | boolean | true | Whether the component should add a border. |
1230
- | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
1231
1235
  | className | string | — | Additional classes to be set on the wrapper element. |
1232
- | tabContentClassName | string | — | Additional classes to be set on the tabContent wrapper element. |
1236
+ | commonTabContent | React.ReactNode | — | Tab content that is used for all tabs. Using a common tab content will ignore any DataTab child. Additionally, there will be no transition when switching tabs as it is a single tab content component. |
1237
+ | disableTransition | boolean | false | Transitions between tab contents are enabled by default. Set if you want to disable them. The Navigation tabs will still remain animated. |
1238
+ | arrowClassName | string | 'bg-highlight-dark border-color-transparent' | Additional classes to be set on the arrow. |
1239
+ | onSelectTab | (tabKey: string) => void | — | Called when a tab is being activated. |
1240
+ | tabClassName | string | — | Additional classes to be set on the tab element. |
1241
+ | tabHoverClassName | string | 'bg-highlight-decent text-color-darkest' | Utility hover classes to be set on the tab element. |
1242
+ | tabActiveClassName | string | 'bg-highlight-dark text-color-white' | Utility active classes to be set on the tab element. |
1243
+ | tabFirstChildClassName | string | — | Utility first-child classes to be set on the tab element. |
1244
+ | tabLastChildClassName | string | — | Utility last-child classes to be set on the tab element. |
1245
+ | tabContentClassName | string | — | Utility content classes to be set on the tab element. |
1233
1246
  | tabsWrapperClassName | string | — | Additional classes to be set on the tabs wrapper element. |
1234
- | arrowClassName | string | bg-highlight-dark | Additional classes to be set on the arrow. |
1235
- | tabClassName | string | bg-white | Additional classes to be set on the tab element. |
1236
- | tabHoverClassName | string | text-color-darkest | Utility hover classes to be set on the tab element. |
1237
- | tabActiveClassName | string | text-color-darkest | Utility active classes to be set on the tab element. |
1247
+ | vertical | boolean | false | Whether the layout should be vertical. |
1238
1248
 
1239
1249
  #### Props: DataTab
1240
1250
 
@@ -1242,10 +1252,10 @@ export default () => {
1242
1252
 
1243
1253
  | Name | Type | Default | Description |
1244
1254
  | --- | --- | --- | --- |
1255
+ | active | boolean | false | Whether this tab is the one currently active. |
1245
1256
  | tabKey | string | — | Used to identify the tab. |
1246
- | title | string \| ReactNode | | The content for the tab. |
1247
- | active | boolean | — | Whether this tab is the one currently active. |
1248
- | disableTransition | boolean | — | Whether the transition effect should be disabled. |
1257
+ | disableTransition | boolean | false | Whether the transition effect should be disabled. |
1258
+ | title | React.ReactNode | — | The content for the tab. |
1249
1259
  | onAnimationStart | VoidFunction | — | Callback for when the animation starts. |
1250
1260
  | onAnimationEnd | VoidFunction | — | Callback for when the animation ends. |
1251
- | className | String | — | Additional classes to be set on the element. |
1261
+ | className | string | — | Additional classes to be set on the element. |