@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.
- package/README.md +1 -0
- package/dist/doc-metadata.json +97 -97
- package/dist/docs/components/accentBar.md +5 -5
- package/dist/docs/components/activity.md +7 -7
- package/dist/docs/components/animatedNumber.md +10 -10
- package/dist/docs/components/animatedTextReveal.md +42 -43
- package/dist/docs/components/animations.md +42 -34
- package/dist/docs/components/appHeader.md +20 -35
- package/dist/docs/components/appLayout.md +198 -221
- package/dist/docs/components/appNavigationBar.md +21 -21
- package/dist/docs/components/areaCharts.md +38 -38
- package/dist/docs/components/aspectRatioPlaceholder.md +4 -5
- package/dist/docs/components/assetTree.md +887 -614
- package/dist/docs/components/autosuggests.md +4 -4
- package/dist/docs/components/avatar.md +7 -7
- package/dist/docs/components/banner.md +2 -2
- package/dist/docs/components/barCharts.md +173 -173
- package/dist/docs/components/barList.md +19 -41
- package/dist/docs/components/basicMap.md +1 -1
- package/dist/docs/components/bottomSheet.md +74 -74
- package/dist/docs/components/button.md +161 -71
- package/dist/docs/components/buttonToolbar.md +3 -3
- package/dist/docs/components/calendarStripe.md +71 -123
- package/dist/docs/components/card.md +4 -4
- package/dist/docs/components/carousel.md +1 -1
- package/dist/docs/components/chartColors.md +1 -1
- package/dist/docs/components/chartsGettingStarted.md +1 -1
- package/dist/docs/components/chat.md +2 -2
- package/dist/docs/components/checkbox.md +56 -131
- package/dist/docs/components/clearableInput.md +23 -127
- package/dist/docs/components/collapse.md +14 -16
- package/dist/docs/components/composedCharts.md +31 -31
- package/dist/docs/components/contentLoader.md +125 -122
- package/dist/docs/components/dataTabs.md +103 -93
- package/dist/docs/components/datepickers.md +734 -764
- package/dist/docs/components/dialogs.md +299 -186
- package/dist/docs/components/divider.md +4 -4
- package/dist/docs/components/dropdowns.md +4555 -4498
- package/dist/docs/components/editableContent.md +97 -97
- package/dist/docs/components/expander.md +56 -56
- package/dist/docs/components/fade.md +41 -41
- package/dist/docs/components/fadeExpander.md +4 -4
- package/dist/docs/components/fadeUp.md +8 -10
- package/dist/docs/components/feedback.md +22 -21
- package/dist/docs/components/filePickers.md +25 -25
- package/dist/docs/components/formLabel.md +5 -7
- package/dist/docs/components/groupedItemList.md +37 -37
- package/dist/docs/components/iconList.md +4 -4
- package/dist/docs/components/imagePreloader.md +6 -6
- package/dist/docs/components/labeledElement.md +4 -3
- package/dist/docs/components/licensePlate.md +2 -2
- package/dist/docs/components/lineCharts.md +58 -58
- package/dist/docs/components/listMenu.md +63 -41
- package/dist/docs/components/loadMore.md +17 -17
- package/dist/docs/components/mainNavigation.md +1 -1
- package/dist/docs/components/mapCircle.md +1 -1
- package/dist/docs/components/mapCluster.md +1 -1
- package/dist/docs/components/mapContext.md +1 -1
- package/dist/docs/components/mapDraggableMarker.md +1 -1
- package/dist/docs/components/mapGettingStarted.md +1 -1
- package/dist/docs/components/mapInfoBubble.md +1 -1
- package/dist/docs/components/mapLayerGroup.md +1 -1
- package/dist/docs/components/mapMarker.md +339 -345
- package/dist/docs/components/mapPolygon.md +16 -20
- package/dist/docs/components/mapRoute.md +14 -20
- package/dist/docs/components/mapRouteGenerator.md +1 -1
- package/dist/docs/components/mapSettings.md +263 -274
- package/dist/docs/components/mapUtils.md +3 -5
- package/dist/docs/components/multiselects.md +1 -1
- package/dist/docs/components/noData.md +11 -11
- package/dist/docs/components/notifications.md +1 -1
- package/dist/docs/components/numbercontrol.md +39 -37
- package/dist/docs/components/onboarding.md +18 -38
- package/dist/docs/components/page.md +16 -16
- package/dist/docs/components/pager.md +8 -8
- package/dist/docs/components/pieCharts.md +124 -124
- package/dist/docs/components/popover.md +37 -53
- package/dist/docs/components/position.md +4 -4
- package/dist/docs/components/radialBarCharts.md +506 -506
- package/dist/docs/components/radiobutton.md +209 -191
- package/dist/docs/components/releaseNotes.md +9 -3
- package/dist/docs/components/resizer.md +7 -8
- package/dist/docs/components/responsiveColumnStripe.md +11 -11
- package/dist/docs/components/responsiveVideo.md +5 -5
- package/dist/docs/components/rioglyph.md +11 -11
- package/dist/docs/components/rules.md +118 -92
- package/dist/docs/components/saveableInput.md +366 -356
- package/dist/docs/components/selects.md +9996 -15
- package/dist/docs/components/sidebar.md +22 -23
- package/dist/docs/components/sliders.md +26 -26
- package/dist/docs/components/smoothScrollbars.md +61 -25
- package/dist/docs/components/spinners.md +32 -30
- package/dist/docs/components/states.md +236 -245
- package/dist/docs/components/statsWidgets.md +37 -28
- package/dist/docs/components/statusBar.md +22 -22
- package/dist/docs/components/stepButton.md +2 -2
- package/dist/docs/components/steppedProgressBars.md +45 -45
- package/dist/docs/components/subNavigation.md +3 -3
- package/dist/docs/components/supportMarker.md +1 -1
- package/dist/docs/components/svgImage.md +2 -38
- package/dist/docs/components/switch.md +11 -11
- package/dist/docs/components/tables.md +1 -1
- package/dist/docs/components/tagManager.md +40 -40
- package/dist/docs/components/tags.md +21 -20
- package/dist/docs/components/teaser.md +22 -23
- package/dist/docs/components/timeline.md +1 -1
- package/dist/docs/components/timepicker.md +17 -13
- package/dist/docs/components/toggleButton.md +65 -29
- package/dist/docs/components/tooltip.md +27 -50
- package/dist/docs/components/virtualList.md +75 -75
- package/dist/docs/foundations.md +167 -167
- package/dist/docs/start/changelog.md +23 -1
- package/dist/docs/start/goodtoknow.md +1 -1
- package/dist/docs/start/guidelines/color-combinations.md +1 -1
- package/dist/docs/start/guidelines/custom-css.md +1 -1
- package/dist/docs/start/guidelines/custom-rioglyph.md +1 -1
- package/dist/docs/start/guidelines/formatting.md +1 -1
- package/dist/docs/start/guidelines/iframe.md +80 -27
- package/dist/docs/start/guidelines/obfuscate-data.md +1 -1
- package/dist/docs/start/guidelines/print-css.md +1 -1
- package/dist/docs/start/guidelines/spinner.md +81 -81
- package/dist/docs/start/guidelines/supported-browsers.md +1 -1
- package/dist/docs/start/guidelines/writing.md +1 -1
- package/dist/docs/start/howto.md +9 -9
- package/dist/docs/start/intro.md +1 -1
- package/dist/docs/start/responsiveness.md +1 -1
- package/dist/docs/templates/common-table.md +11 -11
- package/dist/docs/templates/detail-views.md +2 -2
- package/dist/docs/templates/expandable-details.md +1 -1
- package/dist/docs/templates/feature-cards.md +55 -55
- package/dist/docs/templates/form-summary.md +22 -22
- package/dist/docs/templates/form-toggle.md +1 -1
- package/dist/docs/templates/list-blocks.md +197 -197
- package/dist/docs/templates/loading-progress.md +1 -1
- package/dist/docs/templates/options-panel.md +1 -1
- package/dist/docs/templates/panel-variants.md +1 -1
- package/dist/docs/templates/progress-cards.md +1 -1
- package/dist/docs/templates/progress-success.md +1 -1
- package/dist/docs/templates/settings-form.md +23 -23
- package/dist/docs/templates/stats-blocks.md +41 -41
- package/dist/docs/templates/table-panel.md +1 -1
- package/dist/docs/templates/table-row-animation.md +1 -1
- package/dist/docs/templates/usage-cards.md +1 -1
- package/dist/docs/utilities/deviceUtils.md +6 -3
- package/dist/docs/utilities/featureToggles.md +1 -1
- package/dist/docs/utilities/fuelTypeUtils.md +1 -1
- package/dist/docs/utilities/routeUtils.md +59 -23
- package/dist/docs/utilities/useAfterMount.md +1 -1
- package/dist/docs/utilities/useAutoAnimate.md +1 -1
- package/dist/docs/utilities/useAverage.md +1 -1
- package/dist/docs/utilities/useClickOutside.md +1 -1
- package/dist/docs/utilities/useClipboard.md +2 -2
- package/dist/docs/utilities/useCount.md +1 -1
- package/dist/docs/utilities/useDarkMode.md +1 -1
- package/dist/docs/utilities/useDebugInfo.md +4 -4
- package/dist/docs/utilities/useEffectOnce.md +1 -1
- package/dist/docs/utilities/useElapsedTime.md +1 -1
- package/dist/docs/utilities/useElementSize.md +1 -1
- package/dist/docs/utilities/useEsc.md +1 -1
- package/dist/docs/utilities/useEvent.md +1 -1
- package/dist/docs/utilities/useFocusTrap.md +1 -1
- package/dist/docs/utilities/useFullscreen.md +1 -1
- package/dist/docs/utilities/useHover.md +1 -1
- package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
- package/dist/docs/utilities/useInterval.md +1 -1
- package/dist/docs/utilities/useIsFocusWithin.md +1 -1
- package/dist/docs/utilities/useKey.md +7 -5
- package/dist/docs/utilities/useLocalStorage.md +1 -1
- package/dist/docs/utilities/useLocationSuggestions.md +1 -1
- package/dist/docs/utilities/useMax.md +1 -1
- package/dist/docs/utilities/useMin.md +1 -1
- package/dist/docs/utilities/useMutationObserver.md +1 -1
- package/dist/docs/utilities/useOnScreen.md +1 -1
- package/dist/docs/utilities/useOnlineStatus.md +1 -1
- package/dist/docs/utilities/usePostMessage.md +58 -2
- package/dist/docs/utilities/usePostMessageSender.md +1 -1
- package/dist/docs/utilities/usePrevious.md +1 -1
- package/dist/docs/utilities/useResizeObserver.md +1 -1
- package/dist/docs/utilities/useScrollPosition.md +1 -1
- package/dist/docs/utilities/useSearch.md +1 -1
- package/dist/docs/utilities/useSorting.md +1 -1
- package/dist/docs/utilities/useStateWithValidation.md +1 -1
- package/dist/docs/utilities/useSum.md +1 -1
- package/dist/docs/utilities/useTableExport.md +54 -54
- package/dist/docs/utilities/useTableSelection.md +93 -93
- package/dist/docs/utilities/useTimeout.md +1 -1
- package/dist/docs/utilities/useToggle.md +1 -1
- package/dist/docs/utilities/useWindowResize.md +1 -1
- package/dist/index.mjs +8 -8
- package/dist/version.json +2 -2
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#components/mapPolygon
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-02-03T14:05:37.151Z
|
|
7
7
|
|
|
8
8
|
## Polygon
|
|
9
9
|
|
|
@@ -38,7 +38,6 @@ Show traffic incidents
|
|
|
38
38
|
```tsx
|
|
39
39
|
import { useRef } from 'react';
|
|
40
40
|
|
|
41
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
42
41
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
43
42
|
import EventUtils from '@rio-cloud/rio-uikit/EventUtils';
|
|
44
43
|
import Polygon, { colorMapMarker } from '@rio-cloud/rio-uikit/Polygon';
|
|
@@ -85,7 +84,8 @@ export default () => {
|
|
|
85
84
|
[EventUtils.TAP]: (event: MapEvent) => {
|
|
86
85
|
console.log(event);
|
|
87
86
|
|
|
88
|
-
|
|
87
|
+
// biome-ignore lint/suspicious/noExplicitAny: we don't specify here which target element it might be
|
|
88
|
+
const target = event.target as any;
|
|
89
89
|
console.log({ boundingBox: target.getBoundingBox(), geometry: target.getGeometry() });
|
|
90
90
|
|
|
91
91
|
console.log({
|
|
@@ -125,13 +125,11 @@ export default () => {
|
|
|
125
125
|
{(api: MapApi) => {
|
|
126
126
|
mapApiRef.current = api;
|
|
127
127
|
|
|
128
|
+
const polygonStyle = { strokeColor: STROKE_COLOR, fillColor: FILL_COLOR } as H.map.SpatialStyle;
|
|
129
|
+
|
|
128
130
|
return (
|
|
129
131
|
<>
|
|
130
|
-
<Polygon
|
|
131
|
-
points={points}
|
|
132
|
-
style={{ strokeColor: STROKE_COLOR, fillColor: FILL_COLOR }}
|
|
133
|
-
eventListenerMap={eventListenerMap}
|
|
134
|
-
/>
|
|
132
|
+
<Polygon points={points} style={polygonStyle} eventListenerMap={eventListenerMap} />
|
|
135
133
|
<Marker
|
|
136
134
|
position={{ lat: 48.18, lng: 11.5951 }}
|
|
137
135
|
icon={
|
|
@@ -318,9 +316,6 @@ Show traffic incidents
|
|
|
318
316
|
```tsx
|
|
319
317
|
import { useRef, useState } from 'react';
|
|
320
318
|
|
|
321
|
-
import { UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT } from '../uikit_demo_credentials';
|
|
322
|
-
|
|
323
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
324
319
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
325
320
|
import EventUtils from '@rio-cloud/rio-uikit/EventUtils';
|
|
326
321
|
import MapSettings from '@rio-cloud/rio-uikit/MapSettings';
|
|
@@ -340,6 +335,8 @@ import Polygon, {
|
|
|
340
335
|
} from '@rio-cloud/rio-uikit/Polygon';
|
|
341
336
|
import Select, { type SelectOption } from '@rio-cloud/rio-uikit/Select';
|
|
342
337
|
|
|
338
|
+
import { UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT } from '../uikit_demo_credentials';
|
|
339
|
+
|
|
343
340
|
type HeaderOption = {
|
|
344
341
|
id: string;
|
|
345
342
|
label: string;
|
|
@@ -398,7 +395,8 @@ export default () => {
|
|
|
398
395
|
[EventUtils.TAP]: (event: MapEvent) => {
|
|
399
396
|
console.log(event);
|
|
400
397
|
|
|
401
|
-
|
|
398
|
+
// biome-ignore lint/suspicious/noExplicitAny: we don't specify here which target element it might be
|
|
399
|
+
const target = event.target as any;
|
|
402
400
|
console.log({ boundingBox: target.getBoundingBox(), geometry: target.getGeometry() });
|
|
403
401
|
|
|
404
402
|
console.log({
|
|
@@ -447,16 +445,14 @@ export default () => {
|
|
|
447
445
|
{(api: MapApi) => {
|
|
448
446
|
mapApiRef.current = api;
|
|
449
447
|
|
|
448
|
+
const polygonStyle = {
|
|
449
|
+
strokeColor: currentOption?.colors.stroke,
|
|
450
|
+
fillColor: currentOption?.colors.fill,
|
|
451
|
+
} as H.map.SpatialStyle;
|
|
452
|
+
|
|
450
453
|
return (
|
|
451
454
|
<>
|
|
452
|
-
<Polygon
|
|
453
|
-
points={points}
|
|
454
|
-
style={{
|
|
455
|
-
strokeColor: currentOption?.colors.stroke,
|
|
456
|
-
fillColor: currentOption?.colors.fill,
|
|
457
|
-
}}
|
|
458
|
-
eventListenerMap={eventListenerMap}
|
|
459
|
-
/>
|
|
455
|
+
<Polygon points={points} style={polygonStyle} eventListenerMap={eventListenerMap} />
|
|
460
456
|
<Marker
|
|
461
457
|
position={{ lat: 48.18, lng: 11.5951 }}
|
|
462
458
|
icon={
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#components/mapRoute
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-02-03T14:05:46.707Z
|
|
7
7
|
|
|
8
8
|
There are currently 3 different route styles built-in into the map component.
|
|
9
9
|
|
|
@@ -42,9 +42,8 @@ Show traffic incidents
|
|
|
42
42
|
#### React (tsx)
|
|
43
43
|
|
|
44
44
|
```tsx
|
|
45
|
-
import { useState } from 'react';
|
|
45
|
+
import { useId, useState } from 'react';
|
|
46
46
|
|
|
47
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
48
47
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
49
48
|
import EventUtils from '@rio-cloud/rio-uikit/EventUtils';
|
|
50
49
|
import Route from '@rio-cloud/rio-uikit/Route';
|
|
@@ -53,9 +52,9 @@ import SingleMapMarker from '@rio-cloud/rio-uikit/SingleMapMarker';
|
|
|
53
52
|
import MapSettings from '@rio-cloud/rio-uikit/MapSettings';
|
|
54
53
|
import MapTypeSettings from '@rio-cloud/rio-uikit/MapTypeSettings';
|
|
55
54
|
import Notification from '@rio-cloud/rio-uikit/Notification';
|
|
55
|
+
import type { MapEvent, Position } from '@rio-cloud/rio-uikit/mapTypes';
|
|
56
56
|
|
|
57
57
|
import { UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT } from '../uikit_demo_credentials';
|
|
58
|
-
import type { MapEvent, Position } from '@rio-cloud/rio-uikit/mapTypes';
|
|
59
58
|
|
|
60
59
|
const offset = 0.3;
|
|
61
60
|
|
|
@@ -85,25 +84,26 @@ const positions: Position[] = [
|
|
|
85
84
|
const route2Positions = positions.map(pos => ({ lat: pos.lat, lng: pos.lng + offset }));
|
|
86
85
|
const route3Positions = positions.map(pos => ({ lat: pos.lat, lng: pos.lng + offset * 2 }));
|
|
87
86
|
|
|
88
|
-
const getRandomValueToForceRerender = () => Math.random();
|
|
89
|
-
|
|
90
87
|
const Routes = () => {
|
|
91
88
|
const [activeRouteId, setActiveRouteId] = useState(1);
|
|
92
89
|
const isActive = (id: number) => activeRouteId === id;
|
|
93
90
|
const isFirstRouteActive = isActive(1);
|
|
94
91
|
const isSecondRouteActive = isActive(2);
|
|
95
92
|
|
|
93
|
+
const route1Key = useId();
|
|
94
|
+
const route2Key = useId();
|
|
95
|
+
|
|
96
96
|
const markerEventListenerMap = {
|
|
97
97
|
[EventUtils.TAP]: (event: MapEvent) => {
|
|
98
98
|
event.stopPropagation();
|
|
99
|
-
setActiveRouteId(event.currentTarget.getData().id);
|
|
99
|
+
setActiveRouteId((event.currentTarget as H.map.Object).getData().id);
|
|
100
100
|
},
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
const routeEventListenerMap = {
|
|
104
104
|
[EventUtils.TAP]: (event: MapEvent) => {
|
|
105
105
|
event.stopPropagation();
|
|
106
|
-
setActiveRouteId(event.currentTarget.getData().id);
|
|
106
|
+
setActiveRouteId((event.currentTarget as H.map.Object).getData().id);
|
|
107
107
|
Notification.info('Route clicked');
|
|
108
108
|
},
|
|
109
109
|
[EventUtils.POINTER_MOVE]: (event: MapEvent) => {
|
|
@@ -115,7 +115,7 @@ const Routes = () => {
|
|
|
115
115
|
return (
|
|
116
116
|
<>
|
|
117
117
|
<Route
|
|
118
|
-
key={
|
|
118
|
+
key={route1Key}
|
|
119
119
|
positions={positions}
|
|
120
120
|
startIcon={<SingleMapMarker iconNames={['start']} markerColor='bg-map-marker-route' />}
|
|
121
121
|
endIcon={<SingleMapMarker iconNames={['finish']} markerColor='bg-map-marker-route' />}
|
|
@@ -151,7 +151,7 @@ const Routes = () => {
|
|
|
151
151
|
}
|
|
152
152
|
/>,
|
|
153
153
|
<Marker
|
|
154
|
-
key='
|
|
154
|
+
key='3'
|
|
155
155
|
position={positions[5]}
|
|
156
156
|
icon={
|
|
157
157
|
<SingleMapMarker
|
|
@@ -164,7 +164,7 @@ const Routes = () => {
|
|
|
164
164
|
]}
|
|
165
165
|
/>
|
|
166
166
|
<Route
|
|
167
|
-
key={
|
|
167
|
+
key={route2Key}
|
|
168
168
|
positions={route2Positions}
|
|
169
169
|
hasArrows={false}
|
|
170
170
|
isRouteAlternative={!isSecondRouteActive}
|
|
@@ -288,7 +288,6 @@ Change routeToggle route
|
|
|
288
288
|
```tsx
|
|
289
289
|
import React, { useState } from 'react';
|
|
290
290
|
|
|
291
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
292
291
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
293
292
|
import Route from '@rio-cloud/rio-uikit/Route';
|
|
294
293
|
import SingleMapMarker from '@rio-cloud/rio-uikit/SingleMapMarker';
|
|
@@ -450,7 +449,6 @@ Toggle reduced styleToggle arrows
|
|
|
450
449
|
```tsx
|
|
451
450
|
import React, { useState } from 'react';
|
|
452
451
|
|
|
453
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
454
452
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
455
453
|
import Route from '@rio-cloud/rio-uikit/Route';
|
|
456
454
|
import SingleMapMarker from '@rio-cloud/rio-uikit/SingleMapMarker';
|
|
@@ -583,7 +581,6 @@ Show traffic incidents
|
|
|
583
581
|
#### React (tsx)
|
|
584
582
|
|
|
585
583
|
```tsx
|
|
586
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
587
584
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
588
585
|
import Route, {
|
|
589
586
|
ROUTE_COLOR_DANGER,
|
|
@@ -746,7 +743,6 @@ Show traffic incidents
|
|
|
746
743
|
#### React (tsx)
|
|
747
744
|
|
|
748
745
|
```tsx
|
|
749
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
750
746
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
751
747
|
import Route, { ROUTE_COLOR_DANGER, ROUTE_COLOR_WARNING, ARROW_COLOR_WARNING } from '@rio-cloud/rio-uikit/Route';
|
|
752
748
|
import SingleMapMarker from '@rio-cloud/rio-uikit/SingleMapMarker';
|
|
@@ -3541,8 +3537,6 @@ Segments are separate parts of the route, each containing a list of points, whic
|
|
|
3541
3537
|
import { useEffect, useState } from 'react';
|
|
3542
3538
|
|
|
3543
3539
|
import FilePicker from '@rio-cloud/rio-uikit/FilePicker';
|
|
3544
|
-
|
|
3545
|
-
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
3546
3540
|
import Map from '@rio-cloud/rio-uikit/Map';
|
|
3547
3541
|
import Route, { type RouteStyle } from '@rio-cloud/rio-uikit/Route';
|
|
3548
3542
|
import Marker from '@rio-cloud/rio-uikit/Marker';
|
|
@@ -3680,9 +3674,9 @@ const RouteSandboxExample = () => {
|
|
|
3680
3674
|
}
|
|
3681
3675
|
}, [text, showRouteEvents]);
|
|
3682
3676
|
|
|
3683
|
-
const handlePick = async (
|
|
3684
|
-
if (
|
|
3685
|
-
const newText = await
|
|
3677
|
+
const handlePick = async (files: File[]) => {
|
|
3678
|
+
if (files) {
|
|
3679
|
+
const newText = await files[0].text();
|
|
3686
3680
|
setText(newText);
|
|
3687
3681
|
}
|
|
3688
3682
|
};
|