@rio-cloud/uikit-mcp 1.1.5 → 1.1.7
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.
- package/dist/doc-metadata.json +129 -29
- package/dist/docs/components/accentBar.md +2 -2
- package/dist/docs/components/activity.md +2 -2
- package/dist/docs/components/animatedNumber.md +3 -3
- package/dist/docs/components/animatedTextReveal.md +7 -7
- package/dist/docs/components/animations.md +33 -33
- package/dist/docs/components/appHeader.md +8 -8
- package/dist/docs/components/appLayout.md +106 -89
- package/dist/docs/components/appNavigationBar.md +2 -2
- package/dist/docs/components/areaCharts.md +14 -14
- package/dist/docs/components/aspectRatioPlaceholder.md +2 -2
- package/dist/docs/components/assetTree.md +209 -404
- package/dist/docs/components/autosuggests.md +2 -2
- package/dist/docs/components/avatar.md +2 -2
- package/dist/docs/components/banner.md +3 -3
- package/dist/docs/components/barCharts.md +24 -24
- package/dist/docs/components/barList.md +11 -11
- package/dist/docs/components/basicMap.md +2 -2
- package/dist/docs/components/bottomSheet.md +2 -2
- package/dist/docs/components/button.md +400 -32
- package/dist/docs/components/buttonToolbar.md +2 -2
- package/dist/docs/components/calendarStripe.md +96 -36
- package/dist/docs/components/card.md +2 -2
- package/dist/docs/components/carousel.md +2 -2
- package/dist/docs/components/chartColors.md +2 -2
- package/dist/docs/components/chartsGettingStarted.md +2 -2
- package/dist/docs/components/chat.md +3 -3
- package/dist/docs/components/checkbox.md +17 -20
- package/dist/docs/components/circularProgress.md +465 -0
- package/dist/docs/components/clearableInput.md +2 -2
- package/dist/docs/components/collapse.md +3 -3
- package/dist/docs/components/composedCharts.md +20 -20
- package/dist/docs/components/contentLoader.md +102 -102
- package/dist/docs/components/dataTabs.md +10 -10
- package/dist/docs/components/datepickers.md +31 -31
- package/dist/docs/components/dialogs.md +2 -2
- package/dist/docs/components/divider.md +2 -2
- package/dist/docs/components/dropdowns.md +4354 -4387
- package/dist/docs/components/editableContent.md +2 -2
- package/dist/docs/components/expander.md +2 -2
- package/dist/docs/components/fade.md +2 -2
- package/dist/docs/components/fadeExpander.md +3 -3
- package/dist/docs/components/fadeUp.md +3 -3
- package/dist/docs/components/feedback.md +2 -2
- package/dist/docs/components/filePickers.md +2 -2
- package/dist/docs/components/formLabel.md +5 -4
- package/dist/docs/components/groupedItemList.md +2 -2
- package/dist/docs/components/iconList.md +4 -4
- package/dist/docs/components/imagePreloader.md +2 -2
- package/dist/docs/components/labeledElement.md +2 -2
- package/dist/docs/components/licensePlate.md +2 -2
- package/dist/docs/components/lineCharts.md +11 -11
- package/dist/docs/components/listMenu.md +7 -7
- package/dist/docs/components/loadMore.md +2 -2
- package/dist/docs/components/mainNavigation.md +5 -5
- package/dist/docs/components/mapCircle.md +2 -2
- package/dist/docs/components/mapCluster.md +2 -2
- package/dist/docs/components/mapContext.md +2 -2
- package/dist/docs/components/mapDraggableMarker.md +2 -2
- package/dist/docs/components/mapGettingStarted.md +2 -2
- package/dist/docs/components/mapInfoBubble.md +2 -2
- package/dist/docs/components/mapLayerGroup.md +2 -2
- package/dist/docs/components/mapMarker.md +2 -2
- package/dist/docs/components/mapPolygon.md +2 -2
- package/dist/docs/components/mapRoute.md +2 -2
- package/dist/docs/components/mapRouteGenerator.md +2 -2
- package/dist/docs/components/mapSettings.md +9 -9
- package/dist/docs/components/mapUtils.md +2 -2
- package/dist/docs/components/multiselects.md +2 -2
- package/dist/docs/components/noData.md +2 -2
- package/dist/docs/components/notifications.md +2 -2
- package/dist/docs/components/numbercontrol.md +5 -4
- package/dist/docs/components/onboarding.md +2 -2
- package/dist/docs/components/page.md +2 -2
- package/dist/docs/components/pager.md +2 -2
- package/dist/docs/components/pieCharts.md +89 -78
- package/dist/docs/components/popover.md +2 -2
- package/dist/docs/components/position.md +2 -2
- package/dist/docs/components/radialBarCharts.md +2054 -2012
- package/dist/docs/components/radioCardGroup.md +487 -0
- package/dist/docs/components/radiobutton.md +2 -2
- package/dist/docs/components/releaseNotes.md +2 -2
- package/dist/docs/components/resizer.md +2 -2
- package/dist/docs/components/responsiveColumnStripe.md +2 -2
- package/dist/docs/components/responsiveVideo.md +2 -2
- package/dist/docs/components/rioglyph.md +2 -2
- package/dist/docs/components/rules.md +2 -2
- package/dist/docs/components/saveableInput.md +20 -20
- package/dist/docs/components/selects.md +2 -2
- package/dist/docs/components/sidebar.md +2 -2
- package/dist/docs/components/sliders.md +2 -2
- package/dist/docs/components/smoothScrollbars.md +2 -2
- package/dist/docs/components/spinners.md +2 -2
- package/dist/docs/components/states.md +2 -2
- package/dist/docs/components/statsWidgets.md +2 -2
- package/dist/docs/components/statusBar.md +2 -2
- package/dist/docs/components/stepButton.md +2 -2
- package/dist/docs/components/steppedProgressBars.md +2 -2
- package/dist/docs/components/subNavigation.md +17 -17
- package/dist/docs/components/supportMarker.md +2 -2
- package/dist/docs/components/svgImage.md +38 -2
- package/dist/docs/components/switch.md +210 -83
- package/dist/docs/components/tables.md +2 -2
- package/dist/docs/components/tagManager.md +2 -2
- package/dist/docs/components/tags.md +2 -2
- package/dist/docs/components/teaser.md +2 -2
- package/dist/docs/components/textTruncateMiddle.md +151 -0
- package/dist/docs/components/timeline.md +2 -2
- package/dist/docs/components/timepicker.md +660 -64
- package/dist/docs/components/toggleButton.md +37 -9
- package/dist/docs/components/tooltip.md +5 -4
- package/dist/docs/components/tracker.md +631 -0
- package/dist/docs/components/virtualList.md +77 -77
- package/dist/docs/foundations.md +594 -222
- package/dist/docs/start/changelog.md +54 -2
- package/dist/docs/start/goodtoknow.md +2 -2
- package/dist/docs/start/guidelines/color-combinations.md +2 -2
- package/dist/docs/start/guidelines/custom-css.md +2 -2
- package/dist/docs/start/guidelines/custom-rioglyph.md +2 -2
- package/dist/docs/start/guidelines/formatting.md +2 -2
- package/dist/docs/start/guidelines/iframe.md +3 -3
- package/dist/docs/start/guidelines/obfuscate-data.md +2 -2
- package/dist/docs/start/guidelines/print-css.md +2 -2
- package/dist/docs/start/guidelines/spinner.md +82 -82
- package/dist/docs/start/guidelines/state-in-url.md +263 -0
- package/dist/docs/start/guidelines/supported-browsers.md +2 -2
- package/dist/docs/start/guidelines/writing.md +2 -2
- package/dist/docs/start/howto.md +10 -10
- package/dist/docs/start/intro.md +2 -2
- package/dist/docs/start/responsiveness.md +2 -2
- package/dist/docs/templates/common-table.md +15 -14
- package/dist/docs/templates/detail-views.md +3 -3
- package/dist/docs/templates/expandable-details.md +2 -2
- package/dist/docs/templates/feature-cards.md +56 -56
- package/dist/docs/templates/form-summary.md +23 -23
- package/dist/docs/templates/form-toggle.md +2 -2
- package/dist/docs/templates/list-blocks.md +204 -204
- package/dist/docs/templates/loading-progress.md +2 -2
- package/dist/docs/templates/options-panel.md +2 -2
- package/dist/docs/templates/panel-variants.md +2 -2
- package/dist/docs/templates/progress-cards.md +2 -2
- package/dist/docs/templates/progress-success.md +2 -2
- package/dist/docs/templates/settings-form.md +24 -24
- package/dist/docs/templates/stats-blocks.md +15 -15
- package/dist/docs/templates/table-panel.md +2 -2
- package/dist/docs/templates/table-row-animation.md +2 -2
- package/dist/docs/templates/usage-cards.md +2 -2
- package/dist/docs/utilities/classNames.md +191 -0
- package/dist/docs/utilities/deviceUtils.md +2 -2
- package/dist/docs/utilities/featureToggles.md +2 -2
- package/dist/docs/utilities/fuelTypeUtils.md +2 -2
- package/dist/docs/utilities/routeUtils.md +326 -90
- package/dist/docs/utilities/useAfterMount.md +2 -2
- package/dist/docs/utilities/useAutoAnimate.md +2 -2
- package/dist/docs/utilities/useAverage.md +2 -2
- package/dist/docs/utilities/useClickOutside.md +2 -2
- package/dist/docs/utilities/useClipboard.md +3 -3
- package/dist/docs/utilities/useCookies.md +188 -0
- package/dist/docs/utilities/useCount.md +2 -2
- package/dist/docs/utilities/useDarkMode.md +2 -2
- package/dist/docs/utilities/useDebugInfo.md +5 -5
- package/dist/docs/utilities/useEffectOnce.md +2 -2
- package/dist/docs/utilities/useElapsedTime.md +2 -2
- package/dist/docs/utilities/useElementSize.md +2 -2
- package/dist/docs/utilities/useEsc.md +2 -2
- package/dist/docs/utilities/useEvent.md +2 -2
- package/dist/docs/utilities/useFocusTrap.md +2 -2
- package/dist/docs/utilities/useFullscreen.md +2 -2
- package/dist/docs/utilities/useHover.md +2 -2
- package/dist/docs/utilities/useIncomingPostMessages.md +2 -2
- package/dist/docs/utilities/useInterval.md +2 -2
- package/dist/docs/utilities/useIsFocusWithin.md +2 -2
- package/dist/docs/utilities/useKey.md +2 -2
- package/dist/docs/utilities/useLocalStorage.md +2 -2
- package/dist/docs/utilities/useLocationSuggestions.md +2 -2
- package/dist/docs/utilities/useMax.md +2 -2
- package/dist/docs/utilities/useMin.md +2 -2
- package/dist/docs/utilities/useMutationObserver.md +2 -2
- package/dist/docs/utilities/useOnScreen.md +2 -2
- package/dist/docs/utilities/useOnlineStatus.md +2 -2
- package/dist/docs/utilities/usePostMessage.md +3 -3
- package/dist/docs/utilities/usePostMessageSender.md +2 -2
- package/dist/docs/utilities/usePrevious.md +2 -2
- package/dist/docs/utilities/useResizeObserver.md +2 -2
- package/dist/docs/utilities/useRioCookieConsent.md +90 -0
- package/dist/docs/utilities/useScrollPosition.md +2 -2
- package/dist/docs/utilities/useSearch.md +2 -2
- package/dist/docs/utilities/useSearchHighlight.md +815 -0
- package/dist/docs/utilities/useSorting.md +2 -2
- package/dist/docs/utilities/useStateWithValidation.md +2 -2
- package/dist/docs/utilities/useSum.md +2 -2
- package/dist/docs/utilities/useTableExport.md +52 -52
- package/dist/docs/utilities/useTableSelection.md +90 -90
- package/dist/docs/utilities/useTimeout.md +2 -2
- package/dist/docs/utilities/useToggle.md +3 -3
- package/dist/docs/utilities/useUrlState.md +418 -0
- package/dist/docs/utilities/useWindowResize.md +2 -2
- package/dist/index.mjs +1 -1
- package/dist/version.json +2 -2
- package/package.json +9 -9
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Content
|
|
5
|
-
*Source:* https://uikit.developers.rio.cloud
|
|
6
|
-
*Captured:* 2026-02-
|
|
5
|
+
*Source:* https://uikit.developers.rio.cloud/#/components/teaser
|
|
6
|
+
*Captured:* 2026-02-23T15:48:49.832Z
|
|
7
7
|
|
|
8
8
|
The teaser component was built to create all kinds of landing and/or single pages. for example, be used in dialogs or sidebars.
|
|
9
9
|
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# TextTruncateMiddle
|
|
2
|
+
|
|
3
|
+
*Category:* Components
|
|
4
|
+
*Section:* Content
|
|
5
|
+
*Source:* https://uikit.developers.rio.cloud/#/components/textTruncateMiddle
|
|
6
|
+
*Captured:* 2026-02-23T15:48:50.545Z
|
|
7
|
+
|
|
8
|
+
TextTruncateMiddle truncates long text in the middle and keeps the end segment visible.
|
|
9
|
+
|
|
10
|
+
## TextTruncateMiddle
|
|
11
|
+
|
|
12
|
+
Useful for IDs, URLs, and file names where the suffix helps identify the value quickly.
|
|
13
|
+
|
|
14
|
+
### Example: Example 1
|
|
15
|
+
|
|
16
|
+
Drag the right handle to change width2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1ehttps://service.example.com/fleet/vehicles/2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1e/details
|
|
17
|
+
|
|
18
|
+
Suffix length
|
|
19
|
+
9
|
|
20
|
+
|
|
21
|
+
#### Summary
|
|
22
|
+
|
|
23
|
+
Drag the right handle to change width2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1ehttps://service.example.com/fleet/vehicles/2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1e/details
|
|
24
|
+
|
|
25
|
+
Suffix length
|
|
26
|
+
9
|
|
27
|
+
|
|
28
|
+
#### React (tsx)
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import { useState } from 'react';
|
|
32
|
+
|
|
33
|
+
import Resizer from '@rio-cloud/rio-uikit/Resizer';
|
|
34
|
+
import Slider from '@rio-cloud/rio-uikit/Slider';
|
|
35
|
+
import TextTruncateMiddle from '@rio-cloud/rio-uikit/TextTruncateMiddle';
|
|
36
|
+
|
|
37
|
+
const sampleId = '2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1e';
|
|
38
|
+
const sampleUrl = 'https://service.example.com/fleet/vehicles/2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1e/details';
|
|
39
|
+
|
|
40
|
+
const MIN_SUFFIX_LENGTH = 2;
|
|
41
|
+
const MAX_SUFFIX_LENGTH = 12;
|
|
42
|
+
|
|
43
|
+
const MIN_WIDTH = 220;
|
|
44
|
+
const MAX_WIDTH = 620;
|
|
45
|
+
const INITIAL_WIDTH = 300;
|
|
46
|
+
const INITIAL_SUFFIX_LENGTH = 9;
|
|
47
|
+
|
|
48
|
+
export default () => {
|
|
49
|
+
const [suffixLength, setSuffixLength] = useState(INITIAL_SUFFIX_LENGTH);
|
|
50
|
+
const [contentWidth, setContentWidth] = useState(INITIAL_WIDTH);
|
|
51
|
+
|
|
52
|
+
const onResize = (diff: number) => {
|
|
53
|
+
setContentWidth(currentWidth => {
|
|
54
|
+
const updatedWidth = currentWidth - diff;
|
|
55
|
+
if (updatedWidth < MIN_WIDTH) {
|
|
56
|
+
return MIN_WIDTH;
|
|
57
|
+
}
|
|
58
|
+
if (updatedWidth > MAX_WIDTH) {
|
|
59
|
+
return MAX_WIDTH;
|
|
60
|
+
}
|
|
61
|
+
return updatedWidth;
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<div className='max-width-700'>
|
|
67
|
+
<label>Drag the right handle to change width</label>
|
|
68
|
+
|
|
69
|
+
<div className='position-relative border rounded padding-15 bg-white' style={{ width: contentWidth }}>
|
|
70
|
+
<TextTruncateMiddle
|
|
71
|
+
className='border rounded padding-x-10 padding-y-5 margin-bottom-15'
|
|
72
|
+
text={sampleId}
|
|
73
|
+
suffixLength={suffixLength}
|
|
74
|
+
endClassName='text-medium'
|
|
75
|
+
/>
|
|
76
|
+
|
|
77
|
+
<TextTruncateMiddle
|
|
78
|
+
className='border rounded padding-x-10 padding-y-5'
|
|
79
|
+
text={sampleUrl}
|
|
80
|
+
suffixLength={suffixLength}
|
|
81
|
+
/>
|
|
82
|
+
|
|
83
|
+
<Resizer
|
|
84
|
+
className='right-0 display-grid place-items-center width-auto height-100pct padding-x-2'
|
|
85
|
+
position={Resizer.RIGHT}
|
|
86
|
+
onResize={onResize}
|
|
87
|
+
>
|
|
88
|
+
<div className='height-30 width-2 bg-gray' />
|
|
89
|
+
</Resizer>
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div className='margin-top-20 max-width-300'>
|
|
93
|
+
<label>Suffix length</label>
|
|
94
|
+
<Slider
|
|
95
|
+
value={suffixLength}
|
|
96
|
+
minValue={MIN_SUFFIX_LENGTH}
|
|
97
|
+
maxValue={MAX_SUFFIX_LENGTH}
|
|
98
|
+
step={1}
|
|
99
|
+
valueLabels
|
|
100
|
+
onChange={value => setSuffixLength(value)}
|
|
101
|
+
onDragEnd={value => setSuffixLength(value)}
|
|
102
|
+
/>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
);
|
|
106
|
+
};
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### HTML (html)
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<div class="max-width-700">
|
|
113
|
+
<label>Drag the right handle to change width</label>
|
|
114
|
+
<div class="position-relative border rounded padding-15 bg-white" style="width: 300px;">
|
|
115
|
+
<span class="ellipsis-middle border rounded padding-x-10 padding-y-5 margin-bottom-15" title="2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1e">
|
|
116
|
+
<span class="">2bb5e796-6c5e-4bc4-871b-f3af-</span>
|
|
117
|
+
<span class="text-medium">d469-1c1e</span>
|
|
118
|
+
</span>
|
|
119
|
+
<span class="ellipsis-middle border rounded padding-x-10 padding-y-5" title="https://service.example.com/fleet/vehicles/2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1e/details">
|
|
120
|
+
<span class="">https://service.example.com/fleet/vehicles/2bb5e796-6c5e-4bc4-871b-f3af-d469-1c1</span>
|
|
121
|
+
<span class="">e/details</span>
|
|
122
|
+
</span>
|
|
123
|
+
<div class="Resizer resize-horizontal resize-right right-0 display-grid place-items-center width-auto height-100pct padding-x-2">
|
|
124
|
+
<div class="height-30 width-2 bg-gray">
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="margin-top-20 max-width-300">
|
|
129
|
+
<label>Suffix length</label>
|
|
130
|
+
<div class="range-slider show-value-labels" style="color: var(--brand-primary);">
|
|
131
|
+
<div class="range-whole-track">
|
|
132
|
+
</div>
|
|
133
|
+
<div class="range-track" style="width: 70%;">
|
|
134
|
+
<div class="range-value">
|
|
135
|
+
<span>9</span>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<input class="" min="2" max="12" step="1" type="range" value="9">
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
#### Props
|
|
145
|
+
|
|
146
|
+
| Name | Type | Default | Description |
|
|
147
|
+
| --- | --- | --- | --- |
|
|
148
|
+
| text | string | — | Full text value to render. |
|
|
149
|
+
| suffixLength | number | 6 | Number of characters preserved at the end. |
|
|
150
|
+
| startClassName | string | — | Additional classes for the first text segment (start). |
|
|
151
|
+
| endClassName | string | — | Additional classes for the second text segment (end). |
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* CSS Only
|
|
5
|
-
*Source:* https://uikit.developers.rio.cloud
|
|
6
|
-
*Captured:* 2026-02-
|
|
5
|
+
*Source:* https://uikit.developers.rio.cloud/#/components/timeline
|
|
6
|
+
*Captured:* 2026-02-23T15:49:07.437Z
|
|
7
7
|
|
|
8
8
|
The timeline component is a pure CSS component.
|
|
9
9
|
|