@deck.gl/widgets 9.2.10 → 9.3.0-alpha.1
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/compass-widget.js +5 -5
- package/dist/compass-widget.js.map +1 -1
- package/dist/context-menu-widget.d.ts +23 -18
- package/dist/context-menu-widget.d.ts.map +1 -1
- package/dist/context-menu-widget.js +44 -48
- package/dist/context-menu-widget.js.map +1 -1
- package/dist/dist.dev.js +2533 -420
- package/dist/fullscreen-widget.js +1 -1
- package/dist/fullscreen-widget.js.map +1 -1
- package/dist/geocoder-widget.d.ts +2 -4
- package/dist/geocoder-widget.d.ts.map +1 -1
- package/dist/geocoder-widget.js +16 -20
- package/dist/geocoder-widget.js.map +1 -1
- package/dist/gimbal-widget.d.ts +0 -3
- package/dist/gimbal-widget.d.ts.map +1 -1
- package/dist/gimbal-widget.js +4 -22
- package/dist/gimbal-widget.js.map +1 -1
- package/dist/index.cjs +921 -370
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/info-widget.d.ts +38 -17
- package/dist/info-widget.d.ts.map +1 -1
- package/dist/info-widget.js +40 -130
- package/dist/info-widget.js.map +1 -1
- package/dist/lib/components/dropdown-menu.d.ts +10 -4
- package/dist/lib/components/dropdown-menu.d.ts.map +1 -1
- package/dist/lib/components/dropdown-menu.js +12 -7
- package/dist/lib/components/dropdown-menu.js.map +1 -1
- package/dist/lib/components/icon-menu.d.ts.map +1 -1
- package/dist/lib/components/icon-menu.js +2 -3
- package/dist/lib/components/icon-menu.js.map +1 -1
- package/dist/lib/components/popover.d.ts +30 -0
- package/dist/lib/components/popover.d.ts.map +1 -0
- package/dist/lib/components/popover.js +93 -0
- package/dist/lib/components/popover.js.map +1 -0
- package/dist/lib/components/range-input.d.ts +26 -0
- package/dist/lib/components/range-input.d.ts.map +1 -0
- package/dist/lib/components/range-input.js +261 -0
- package/dist/lib/components/range-input.js.map +1 -0
- package/dist/lib/components/user-content.d.ts +8 -0
- package/dist/lib/components/user-content.d.ts.map +1 -0
- package/dist/lib/components/user-content.js +15 -0
- package/dist/lib/components/user-content.js.map +1 -0
- package/dist/popup-widget.d.ts +63 -0
- package/dist/popup-widget.d.ts.map +1 -0
- package/dist/popup-widget.js +70 -0
- package/dist/popup-widget.js.map +1 -0
- package/dist/reset-view-widget.d.ts +1 -1
- package/dist/reset-view-widget.d.ts.map +1 -1
- package/dist/reset-view-widget.js +12 -11
- package/dist/reset-view-widget.js.map +1 -1
- package/dist/scrollbar-widget.d.ts +68 -0
- package/dist/scrollbar-widget.d.ts.map +1 -0
- package/dist/scrollbar-widget.js +181 -0
- package/dist/scrollbar-widget.js.map +1 -0
- package/dist/stats-widget.d.ts +4 -0
- package/dist/stats-widget.d.ts.map +1 -1
- package/dist/stats-widget.js +3 -3
- package/dist/stats-widget.js.map +1 -1
- package/dist/stylesheet.css +244 -29
- package/dist/theme-widget.d.ts.map +1 -1
- package/dist/theme-widget.js +7 -5
- package/dist/theme-widget.js.map +1 -1
- package/dist/themes.d.ts +30 -0
- package/dist/themes.d.ts.map +1 -1
- package/dist/themes.js +28 -4
- package/dist/themes.js.map +1 -1
- package/dist/timeline-widget.d.ts +25 -6
- package/dist/timeline-widget.d.ts.map +1 -1
- package/dist/timeline-widget.js +46 -18
- package/dist/timeline-widget.js.map +1 -1
- package/dist/zoom-widget.d.ts +2 -8
- package/dist/zoom-widget.d.ts.map +1 -1
- package/dist/zoom-widget.js +23 -18
- package/dist/zoom-widget.js.map +1 -1
- package/dist.min.js +2 -2
- package/package.json +4 -3
- package/src/compass-widget.tsx +5 -5
- package/src/context-menu-widget.tsx +86 -76
- package/src/fullscreen-widget.tsx +1 -1
- package/src/geocoder-widget.tsx +17 -24
- package/src/gimbal-widget.tsx +4 -26
- package/src/index.ts +11 -6
- package/src/info-widget.tsx +93 -157
- package/src/lib/components/dropdown-menu.tsx +42 -20
- package/src/lib/components/icon-menu.tsx +3 -4
- package/src/lib/components/popover.tsx +167 -0
- package/src/lib/components/range-input.tsx +432 -0
- package/src/lib/components/user-content.tsx +30 -0
- package/src/popup-widget.tsx +163 -0
- package/src/reset-view-widget.tsx +12 -11
- package/src/scrollbar-widget.tsx +288 -0
- package/src/stats-widget.tsx +10 -4
- package/src/stylesheet.css +244 -29
- package/src/theme-widget.tsx +7 -5
- package/src/themes.ts +35 -4
- package/src/timeline-widget.tsx +96 -33
- package/src/zoom-widget.tsx +25 -21
- package/dist/lib/components/grouped-icon-button.d.ts +0 -10
- package/dist/lib/components/grouped-icon-button.d.ts.map +0 -1
- package/dist/lib/components/grouped-icon-button.js +0 -7
- package/dist/lib/components/grouped-icon-button.js.map +0 -1
- package/dist/lib/components/simple-menu.d.ts +0 -16
- package/dist/lib/components/simple-menu.d.ts.map +0 -1
- package/dist/lib/components/simple-menu.js +0 -30
- package/dist/lib/components/simple-menu.js.map +0 -1
- package/src/lib/components/grouped-icon-button.tsx +0 -27
- package/src/lib/components/simple-menu.tsx +0 -52
|
@@ -5,32 +5,33 @@
|
|
|
5
5
|
/* global document */
|
|
6
6
|
import {Widget} from '@deck.gl/core';
|
|
7
7
|
import type {Deck, PickingInfo, WidgetProps} from '@deck.gl/core';
|
|
8
|
-
import {render} from 'preact';
|
|
9
|
-
import {SimpleMenu} from './lib/components/
|
|
10
|
-
|
|
11
|
-
/** The standard, modern way is to use event.button === 2, where button is the standardized property (0 = left, 1 = middle, 2 = right). */
|
|
12
|
-
const MOUSE_BUTTON_RIGHT = 2;
|
|
13
|
-
/** A name for the legacy MouseEvent.which value that corresponds to the right-mouse button. In older browsers, the check is: if (event.which === 3) */
|
|
14
|
-
const MOUSE_WHICH_RIGHT = 3;
|
|
15
|
-
|
|
16
|
-
export type ContextWidgetMenuItem = {
|
|
17
|
-
label: string;
|
|
18
|
-
key: string;
|
|
19
|
-
};
|
|
8
|
+
import {render, type JSX} from 'preact';
|
|
9
|
+
import {SimpleMenu, SimpleMenuProps} from './lib/components/dropdown-menu';
|
|
10
|
+
import {Popover, type PopoverProps} from './lib/components/popover';
|
|
20
11
|
|
|
21
12
|
export type ContextMenuWidgetProps = WidgetProps & {
|
|
22
13
|
/** View to attach to and interact with. Required when using multiple views. */
|
|
23
14
|
viewId?: string | null;
|
|
24
|
-
/** Controls visibility of the context menu */
|
|
25
|
-
visible?: boolean;
|
|
26
|
-
/** Screen position at which to place the menu */
|
|
27
|
-
position: {x: number; y: number};
|
|
28
|
-
/** Items to render */
|
|
29
|
-
menuItems: ContextWidgetMenuItem[];
|
|
30
15
|
/** Provide menu items for the menu given the picked object */
|
|
31
|
-
getMenuItems: (
|
|
16
|
+
getMenuItems: (
|
|
17
|
+
info: PickingInfo,
|
|
18
|
+
widget: ContextMenuWidget
|
|
19
|
+
) => SimpleMenuProps['menuItems'] | null;
|
|
32
20
|
/** Callback with the selected item */
|
|
33
|
-
onMenuItemSelected?: (
|
|
21
|
+
onMenuItemSelected?: (value: string, pickInfo: PickingInfo | null) => void;
|
|
22
|
+
/** Position menu relative to the anchor.
|
|
23
|
+
* @default 'bottom-start'
|
|
24
|
+
*/
|
|
25
|
+
placement?: PopoverProps['placement'];
|
|
26
|
+
/** Pixel offset
|
|
27
|
+
* @default 10
|
|
28
|
+
*/
|
|
29
|
+
offset?: PopoverProps['offset'];
|
|
30
|
+
/**
|
|
31
|
+
* Show an arrow pointing at the anchor. Optionally accepts a pixel size.
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
arrow?: PopoverProps['arrow'];
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
export class ContextMenuWidget extends Widget<ContextMenuWidgetProps> {
|
|
@@ -38,83 +39,92 @@ export class ContextMenuWidget extends Widget<ContextMenuWidgetProps> {
|
|
|
38
39
|
...Widget.defaultProps,
|
|
39
40
|
id: 'context',
|
|
40
41
|
viewId: null,
|
|
41
|
-
visible: false,
|
|
42
|
-
position: {x: 0, y: 0},
|
|
43
42
|
getMenuItems: undefined!,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
onMenuItemSelected: () => {},
|
|
44
|
+
placement: 'bottom-start',
|
|
45
|
+
offset: 10,
|
|
46
|
+
arrow: false
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
className = 'deck-widget-context-menu';
|
|
50
50
|
placement = 'fill' as const;
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
menu: {
|
|
53
|
+
items: SimpleMenuProps['menuItems'];
|
|
54
|
+
pickInfo: PickingInfo;
|
|
55
|
+
} | null = null;
|
|
53
56
|
|
|
54
57
|
constructor(props: ContextMenuWidgetProps) {
|
|
55
58
|
super(props);
|
|
56
|
-
this.pickInfo = null;
|
|
57
59
|
this.setProps(this.props);
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
onAdd({deck}: {deck: Deck<any>})
|
|
61
|
-
const element = document.createElement('div');
|
|
62
|
-
element.classList.add('deck-widget', 'deck-widget-context-menu');
|
|
63
|
-
const style = {
|
|
64
|
-
margin: '0px',
|
|
65
|
-
top: '0px',
|
|
66
|
-
left: '0px',
|
|
67
|
-
position: 'absolute',
|
|
68
|
-
pointerEvents: 'auto'
|
|
69
|
-
};
|
|
70
|
-
Object.entries(style).forEach(([key, value]) => element.style.setProperty(key, value));
|
|
71
|
-
|
|
72
|
-
deck.getCanvas()?.addEventListener('click', () => this.hide());
|
|
62
|
+
onAdd({deck}: {deck: Deck<any>}) {
|
|
73
63
|
deck.getCanvas()?.addEventListener('contextmenu', event => this.handleContextMenu(event));
|
|
74
|
-
return element;
|
|
75
64
|
}
|
|
76
65
|
|
|
77
|
-
|
|
78
|
-
const
|
|
66
|
+
handleContextMenu(srcEvent: MouseEvent) {
|
|
67
|
+
const targetRect = (srcEvent.target as HTMLElement).getBoundingClientRect();
|
|
68
|
+
const x = srcEvent.clientX - targetRect.x;
|
|
69
|
+
const y = srcEvent.clientY - targetRect.y;
|
|
79
70
|
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
71
|
+
const pickInfo = this.deck?.pickObject({x, y}) || {
|
|
72
|
+
x,
|
|
73
|
+
y,
|
|
74
|
+
picked: false,
|
|
75
|
+
layer: null,
|
|
76
|
+
color: null,
|
|
77
|
+
index: -1,
|
|
78
|
+
pixelRatio: 1
|
|
79
|
+
};
|
|
80
|
+
const menuItems = this.props.getMenuItems(pickInfo, this) || [];
|
|
81
|
+
this.menu =
|
|
82
|
+
menuItems.length > 0
|
|
83
|
+
? {
|
|
84
|
+
items: menuItems,
|
|
85
|
+
pickInfo
|
|
86
|
+
}
|
|
87
|
+
: null;
|
|
88
|
+
srcEvent.preventDefault();
|
|
89
|
+
this.updateHTML();
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
if (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
) {
|
|
97
|
-
this.pickInfo =
|
|
98
|
-
this.deck?.pickObject({
|
|
99
|
-
x: srcEvent.clientX,
|
|
100
|
-
y: srcEvent.clientY
|
|
101
|
-
}) || null;
|
|
102
|
-
const menuItems = (this.pickInfo && this.props.getMenuItems?.(this.pickInfo, this)) || [];
|
|
103
|
-
const visible = menuItems.length > 0;
|
|
104
|
-
this.setProps({
|
|
105
|
-
visible,
|
|
106
|
-
position: {x: srcEvent.clientX, y: srcEvent.clientY},
|
|
107
|
-
menuItems
|
|
108
|
-
});
|
|
109
|
-
this.updateHTML();
|
|
110
|
-
srcEvent.preventDefault();
|
|
111
|
-
return visible;
|
|
92
|
+
onRenderHTML(rootElement: HTMLElement): void {
|
|
93
|
+
if (!this.menu) {
|
|
94
|
+
render(null, rootElement);
|
|
95
|
+
return;
|
|
112
96
|
}
|
|
97
|
+
const {items, pickInfo} = this.menu;
|
|
113
98
|
|
|
114
|
-
|
|
99
|
+
const style = {
|
|
100
|
+
pointerEvents: 'auto',
|
|
101
|
+
position: 'static',
|
|
102
|
+
...this.props.style
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const ui = (
|
|
106
|
+
<Popover
|
|
107
|
+
x={pickInfo.x}
|
|
108
|
+
y={pickInfo.y}
|
|
109
|
+
placement={this.props.placement}
|
|
110
|
+
arrow={this.props.arrow}
|
|
111
|
+
arrowColor="var(--menu-background, #fff)"
|
|
112
|
+
offset={this.props.offset}
|
|
113
|
+
>
|
|
114
|
+
<SimpleMenu
|
|
115
|
+
menuItems={items}
|
|
116
|
+
onSelect={value => this.props.onMenuItemSelected(value, pickInfo)}
|
|
117
|
+
style={style}
|
|
118
|
+
isOpen
|
|
119
|
+
onClose={() => this.hide()}
|
|
120
|
+
/>
|
|
121
|
+
</Popover>
|
|
122
|
+
);
|
|
123
|
+
render(ui, rootElement);
|
|
115
124
|
}
|
|
116
125
|
|
|
117
|
-
hide()
|
|
118
|
-
this.
|
|
126
|
+
hide() {
|
|
127
|
+
this.menu = null;
|
|
128
|
+
this.updateHTML();
|
|
119
129
|
}
|
|
120
130
|
}
|
|
@@ -74,7 +74,7 @@ export class FullscreenWidget extends Widget<FullscreenWidgetProps> {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
getContainer() {
|
|
77
|
-
return this.props.container || this.deck?.getCanvas()?.parentElement;
|
|
77
|
+
return this.props.container || this.deck?.props.parent || this.deck?.getCanvas()?.parentElement;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
onFullscreenChange() {
|
package/src/geocoder-widget.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import {Widget} from '@deck.gl/core';
|
|
6
|
-
import type {WidgetPlacement,
|
|
6
|
+
import type {WidgetPlacement, WidgetProps} from '@deck.gl/core';
|
|
7
7
|
import {FlyToInterpolator, LinearInterpolator} from '@deck.gl/core';
|
|
8
8
|
import {render} from 'preact';
|
|
9
9
|
import {DropdownMenu, type MenuItem} from './lib/components/dropdown-menu';
|
|
@@ -157,7 +157,7 @@ export class GeocoderWidget extends Widget<GeocoderWidgetProps> {
|
|
|
157
157
|
try {
|
|
158
158
|
const coordinates = await CurrentLocationGeocoder.geocode();
|
|
159
159
|
if (coordinates) {
|
|
160
|
-
this.
|
|
160
|
+
this.flyTo(coordinates);
|
|
161
161
|
}
|
|
162
162
|
} catch (error) {
|
|
163
163
|
this.geocodeHistory.errorText = error instanceof Error ? error.message : 'Location error';
|
|
@@ -181,33 +181,26 @@ export class GeocoderWidget extends Widget<GeocoderWidgetProps> {
|
|
|
181
181
|
this.updateHTML();
|
|
182
182
|
}
|
|
183
183
|
if (coordinates) {
|
|
184
|
-
this.
|
|
184
|
+
this.flyTo(coordinates);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
const viewId
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
188
|
+
flyTo(viewState: ViewState) {
|
|
189
|
+
const viewIds = this.viewId ? [this.viewId] : (this.deck?.getViews().map(v => v.id) ?? []);
|
|
190
|
+
for (const viewId of viewIds) {
|
|
191
|
+
const currentViewState = this.getViewState(viewId);
|
|
192
|
+
const nextViewState: ViewState = {
|
|
193
|
+
...currentViewState,
|
|
194
|
+
...viewState
|
|
195
|
+
};
|
|
196
|
+
if (this.props.transitionDuration > 0) {
|
|
197
|
+
nextViewState.transitionDuration = this.props.transitionDuration;
|
|
198
|
+
nextViewState.transitionInterpolator =
|
|
199
|
+
'latitude' in nextViewState ? new FlyToInterpolator() : new LinearInterpolator();
|
|
200
|
+
}
|
|
201
|
+
this.setViewState(viewId, nextViewState);
|
|
200
202
|
}
|
|
201
|
-
|
|
202
|
-
// @ts-ignore Using private method temporary until there's a public one
|
|
203
|
-
this.deck._onViewStateChange({viewId, viewState: nextViewState, interactionState: {}});
|
|
204
203
|
}
|
|
205
|
-
|
|
206
|
-
onViewportChange(viewport: Viewport) {
|
|
207
|
-
this.viewports[viewport.id] = viewport;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
viewports: Record<string, Viewport> = {};
|
|
211
204
|
}
|
|
212
205
|
|
|
213
206
|
function getGeocoder(props: {geocoder?: string; customGeocoder?: Geocoder}): Geocoder {
|
package/src/gimbal-widget.tsx
CHANGED
|
@@ -119,7 +119,7 @@ export class GimbalWidget extends Widget<GimbalWidgetProps> {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
resetOrbitView(viewport?: Viewport) {
|
|
122
|
-
const viewId = this.
|
|
122
|
+
const viewId = this.viewId || viewport?.id || 'OrbitView';
|
|
123
123
|
const viewState = this.getViewState(viewId);
|
|
124
124
|
if ('rotationOrbit' in viewState || 'rotationX' in viewState) {
|
|
125
125
|
const nextViewState = {
|
|
@@ -131,13 +131,13 @@ export class GimbalWidget extends Widget<GimbalWidgetProps> {
|
|
|
131
131
|
transitionProps: ['rotationOrbit', 'rotationX']
|
|
132
132
|
})
|
|
133
133
|
};
|
|
134
|
-
|
|
135
|
-
this.deck._onViewStateChange({viewId, viewState: nextViewState, interactionState: {}});
|
|
134
|
+
this.setViewState(viewId, nextViewState);
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
getNormalizedRotation(viewport?: Viewport): {rotationOrbit: number; rotationX: number} {
|
|
140
|
-
const
|
|
139
|
+
const viewId = this.viewId || viewport?.id || 'OrbitView';
|
|
140
|
+
const viewState = this.getViewState(viewId);
|
|
141
141
|
const [rz, rx] = this.getRotation(viewState);
|
|
142
142
|
const rotationOrbit = normalizeAndClampAngle(rz);
|
|
143
143
|
const rotationX = normalizeAndClampAngle(rx);
|
|
@@ -150,28 +150,6 @@ export class GimbalWidget extends Widget<GimbalWidgetProps> {
|
|
|
150
150
|
}
|
|
151
151
|
return [0, 0];
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
// Move to Widget/WidgetManager?
|
|
155
|
-
|
|
156
|
-
getViewId(viewport?: Viewport) {
|
|
157
|
-
const viewId = this.viewId || viewport?.id || 'OrbitView';
|
|
158
|
-
return viewId;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
getViewState(viewId: string) {
|
|
162
|
-
const viewManager = this.getViewManager();
|
|
163
|
-
const viewState = (viewId && viewManager.getViewState(viewId)) || viewManager.viewState;
|
|
164
|
-
return viewState;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
getViewManager() {
|
|
168
|
-
// @ts-expect-error protected
|
|
169
|
-
const viewManager = this.deck?.viewManager;
|
|
170
|
-
if (!viewManager) {
|
|
171
|
-
throw new Error('wigdet must be added to a deck instance');
|
|
172
|
-
}
|
|
173
|
-
return viewManager;
|
|
174
|
-
}
|
|
175
153
|
}
|
|
176
154
|
|
|
177
155
|
function normalizeAndClampAngle(angle: number): number {
|
package/src/index.ts
CHANGED
|
@@ -19,7 +19,9 @@ export {ViewSelectorWidget as _ViewSelectorWidget} from './view-selector-widget'
|
|
|
19
19
|
|
|
20
20
|
// Information widgets
|
|
21
21
|
export {InfoWidget as _InfoWidget} from './info-widget';
|
|
22
|
+
export {PopupWidget} from './popup-widget';
|
|
22
23
|
export {ContextMenuWidget as _ContextMenuWidget} from './context-menu-widget';
|
|
24
|
+
export {ScrollbarWidget} from './scrollbar-widget';
|
|
23
25
|
|
|
24
26
|
// Control widgets
|
|
25
27
|
export {TimelineWidget as _TimelineWidget} from './timeline-widget';
|
|
@@ -48,6 +50,7 @@ export type {SplitterWidgetProps} from './splitter-widget';
|
|
|
48
50
|
export type {TimelineWidgetProps} from './timeline-widget';
|
|
49
51
|
export type {ViewSelectorWidgetProps} from './view-selector-widget';
|
|
50
52
|
export type {GimbalWidgetProps} from './gimbal-widget';
|
|
53
|
+
export type {ContentBounds, ScrollbarWidgetProps, ScrollbarDecoration} from './scrollbar-widget';
|
|
51
54
|
|
|
52
55
|
export {LightTheme, DarkTheme, LightGlassTheme, DarkGlassTheme} from './themes';
|
|
53
56
|
export type {DeckWidgetTheme} from './themes';
|
|
@@ -55,16 +58,18 @@ export type {DeckWidgetTheme} from './themes';
|
|
|
55
58
|
// Experimental preact components
|
|
56
59
|
export {ButtonGroup as _ButtonGroup, type ButtonGroupProps} from './lib/components/button-group';
|
|
57
60
|
export {IconButton as _IconButton, type IconButtonProps} from './lib/components/icon-button';
|
|
58
|
-
export {
|
|
59
|
-
GroupedIconButton as _GroupedIconButton,
|
|
60
|
-
type GroupedIconButtonProps
|
|
61
|
-
} from './lib/components/grouped-icon-button';
|
|
62
61
|
export {
|
|
63
62
|
DropdownMenu as _DropdownMenu,
|
|
64
|
-
type DropdownMenuProps
|
|
63
|
+
type DropdownMenuProps,
|
|
64
|
+
SimpleMenu as _SimpleMenu,
|
|
65
|
+
type SimpleMenuProps
|
|
65
66
|
} from './lib/components/dropdown-menu';
|
|
66
|
-
export {SimpleMenu as _SimpleMenu, type SimpleMenuProps} from './lib/components/simple-menu';
|
|
67
67
|
export {IconMenu as _IconMenu, type IconMenuProps} from './lib/components/icon-menu';
|
|
68
|
+
export {
|
|
69
|
+
RangeInput as _RangeInput,
|
|
70
|
+
type RangeInputProps,
|
|
71
|
+
type RangeInputDecoration
|
|
72
|
+
} from './lib/components/range-input';
|
|
68
73
|
|
|
69
74
|
// Experimental geocoders. May be removed, use at your own risk!
|
|
70
75
|
export {type Geocoder} from './lib/geocode/geocoder';
|