panelui-native 0.22.5 → 0.25.0
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 +8 -3
- package/lib/module/components/area-chart/index.js +826 -0
- package/lib/module/components/area-chart/index.js.map +1 -0
- package/lib/module/components/avatar/index.js +1 -1
- package/lib/module/components/avatar/index.js.map +1 -1
- package/lib/module/components/bar-chart/index.js +853 -0
- package/lib/module/components/bar-chart/index.js.map +1 -0
- package/lib/module/components/bottom-sheet/index.js +207 -23
- package/lib/module/components/bottom-sheet/index.js.map +1 -1
- package/lib/module/components/breadcrumb/index.js +275 -0
- package/lib/module/components/breadcrumb/index.js.map +1 -0
- package/lib/module/components/chip/index.js +2 -2
- package/lib/module/components/direction/index.js +13 -19
- package/lib/module/components/direction/index.js.map +1 -1
- package/lib/module/components/frame/index.js +17 -0
- package/lib/module/components/frame/index.js.map +1 -1
- package/lib/module/components/heatmap-chart/index.js +28 -8
- package/lib/module/components/heatmap-chart/index.js.map +1 -1
- package/lib/module/components/input-group/index.js +2 -2
- package/lib/module/components/input-group/index.js.map +1 -1
- package/lib/module/components/line-chart/index.js +4 -146
- package/lib/module/components/line-chart/index.js.map +1 -1
- package/lib/module/components/loader/index.js +758 -0
- package/lib/module/components/loader/index.js.map +1 -0
- package/lib/module/components/map/basemap.js +265 -0
- package/lib/module/components/map/basemap.js.map +1 -0
- package/lib/module/components/map/index.js +850 -0
- package/lib/module/components/map/index.js.map +1 -0
- package/lib/module/components/map/maplibre.js +87 -0
- package/lib/module/components/map/maplibre.js.map +1 -0
- package/lib/module/components/message/index.js +8 -7
- package/lib/module/components/message/index.js.map +1 -1
- package/lib/module/components/otp-input/index.js +2 -2
- package/lib/module/components/progress/index.js +8 -2
- package/lib/module/components/progress/index.js.map +1 -1
- package/lib/module/components/ring-chart/index.js +423 -0
- package/lib/module/components/ring-chart/index.js.map +1 -0
- package/lib/module/components/section-rail/index.js +2 -2
- package/lib/module/components/separator/index.js +76 -22
- package/lib/module/components/separator/index.js.map +1 -1
- package/lib/module/components/shimmer/index.js +10 -1
- package/lib/module/components/shimmer/index.js.map +1 -1
- package/lib/module/components/slider/index.js +19 -5
- package/lib/module/components/slider/index.js.map +1 -1
- package/lib/module/components/steps/index.js +1 -1
- package/lib/module/components/switch/index.js +6 -1
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/typography/index.js +5 -0
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/hooks/use-direction.js +43 -0
- package/lib/module/hooks/use-direction.js.map +1 -0
- package/lib/module/icons/index.js +117 -2
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +8 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/primitives/text.js +30 -10
- package/lib/module/primitives/text.js.map +1 -1
- package/lib/module/utils/chart.js +279 -0
- package/lib/module/utils/chart.js.map +1 -0
- package/lib/typescript/src/components/area-chart/index.d.ts +197 -0
- package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/bar-chart/index.d.ts +228 -0
- package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/index.d.ts +75 -4
- package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/breadcrumb/index.d.ts +100 -0
- package/lib/typescript/src/components/breadcrumb/index.d.ts.map +1 -0
- package/lib/typescript/src/components/direction/index.d.ts +11 -10
- package/lib/typescript/src/components/direction/index.d.ts.map +1 -1
- package/lib/typescript/src/components/frame/index.d.ts +17 -0
- package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
- package/lib/typescript/src/components/heatmap-chart/index.d.ts +22 -3
- package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/line-chart/index.d.ts +1 -0
- package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/loader/index.d.ts +38 -0
- package/lib/typescript/src/components/loader/index.d.ts.map +1 -0
- package/lib/typescript/src/components/map/basemap.d.ts +76 -0
- package/lib/typescript/src/components/map/basemap.d.ts.map +1 -0
- package/lib/typescript/src/components/map/index.d.ts +367 -0
- package/lib/typescript/src/components/map/index.d.ts.map +1 -0
- package/lib/typescript/src/components/map/maplibre.d.ts +193 -0
- package/lib/typescript/src/components/map/maplibre.d.ts.map +1 -0
- package/lib/typescript/src/components/message/index.d.ts.map +1 -1
- package/lib/typescript/src/components/progress/index.d.ts.map +1 -1
- package/lib/typescript/src/components/ring-chart/index.d.ts +156 -0
- package/lib/typescript/src/components/ring-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/separator/index.d.ts +36 -1
- package/lib/typescript/src/components/separator/index.d.ts.map +1 -1
- package/lib/typescript/src/components/shimmer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/typography/index.d.ts +6 -0
- package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-direction.d.ts +20 -0
- package/lib/typescript/src/hooks/use-direction.d.ts.map +1 -0
- package/lib/typescript/src/icons/index.d.ts +5 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +9 -3
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/primitives/text.d.ts.map +1 -1
- package/lib/typescript/src/utils/chart.d.ts +96 -0
- package/lib/typescript/src/utils/chart.d.ts.map +1 -0
- package/package.json +9 -1
- package/src/components/area-chart/index.tsx +994 -0
- package/src/components/avatar/index.tsx +1 -1
- package/src/components/bar-chart/index.tsx +1048 -0
- package/src/components/bottom-sheet/index.tsx +280 -20
- package/src/components/breadcrumb/index.tsx +365 -0
- package/src/components/chip/index.tsx +2 -2
- package/src/components/direction/index.tsx +20 -21
- package/src/components/frame/index.tsx +17 -0
- package/src/components/heatmap-chart/index.tsx +58 -11
- package/src/components/input-group/index.tsx +2 -2
- package/src/components/line-chart/index.tsx +13 -181
- package/src/components/loader/index.tsx +812 -0
- package/src/components/map/basemap.ts +304 -0
- package/src/components/map/index.tsx +1118 -0
- package/src/components/map/maplibre.ts +201 -0
- package/src/components/message/index.tsx +8 -7
- package/src/components/otp-input/index.tsx +2 -2
- package/src/components/progress/index.tsx +10 -2
- package/src/components/ring-chart/index.tsx +543 -0
- package/src/components/section-rail/index.tsx +2 -2
- package/src/components/separator/index.tsx +77 -19
- package/src/components/shimmer/index.tsx +10 -1
- package/src/components/slider/index.tsx +20 -5
- package/src/components/steps/index.tsx +1 -1
- package/src/components/switch/index.tsx +6 -1
- package/src/components/typography/index.tsx +5 -0
- package/src/hooks/use-direction.ts +45 -0
- package/src/icons/index.tsx +66 -0
- package/src/index.ts +84 -0
- package/src/primitives/text.tsx +25 -7
- package/src/utils/chart.ts +355 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The bridge to MapLibre.
|
|
3
|
+
*
|
|
4
|
+
* A map is the one component here that cannot be drawn in JavaScript. It needs
|
|
5
|
+
* a renderer with the tiles, the projection and the GPU work already solved,
|
|
6
|
+
* and that renderer is native code — which means `Map` is the only component
|
|
7
|
+
* in the library with a dependency you have to build for.
|
|
8
|
+
*
|
|
9
|
+
* Two things follow, and both are handled here rather than spread through the
|
|
10
|
+
* component:
|
|
11
|
+
*
|
|
12
|
+
* The package is resolved lazily and once. A project that never renders a map
|
|
13
|
+
* installs nothing, and the failure when it is missing is a readable fallback
|
|
14
|
+
* rather than a red screen — which matters because the most common way to hit
|
|
15
|
+
* it is running in a client that cannot load native modules at all.
|
|
16
|
+
*
|
|
17
|
+
* The types are declared here rather than imported from the package. They are
|
|
18
|
+
* structural and cover only what is used. Importing them would put the package
|
|
19
|
+
* in the library's published type surface, so anyone installing PanelUI would
|
|
20
|
+
* have to install a map renderer to typecheck their project, whether or not
|
|
21
|
+
* they ever draw a map.
|
|
22
|
+
*
|
|
23
|
+
* The cost of that choice is that nothing checks these declarations against the
|
|
24
|
+
* renderer, and React Native drops props it does not recognise without a word —
|
|
25
|
+
* so a renamed prop is silently ignored rather than caught. They track the
|
|
26
|
+
* renderer's **v11** API. When the peer range widens, re-read the props used
|
|
27
|
+
* below against the package rather than assuming they survived.
|
|
28
|
+
*/
|
|
29
|
+
import type { ComponentType, ReactElement, ReactNode, Ref } from 'react';
|
|
30
|
+
/** `[longitude, latitude]` — the order the style spec uses, not the spoken one. */
|
|
31
|
+
export type LngLat = [number, number];
|
|
32
|
+
/** `[west, south, east, north]`. */
|
|
33
|
+
export type LngLatBounds = [number, number, number, number];
|
|
34
|
+
/**
|
|
35
|
+
* A MapLibre style document. Left loose on purpose: the spec is large, it is
|
|
36
|
+
* versioned separately from this library, and the parts of it callers pass
|
|
37
|
+
* through are exactly the parts a narrower type would get in the way of.
|
|
38
|
+
*/
|
|
39
|
+
export type StyleSpecification = Record<string, unknown>;
|
|
40
|
+
/** Where the map is looking. */
|
|
41
|
+
export interface ViewState {
|
|
42
|
+
center: LngLat;
|
|
43
|
+
zoom: number;
|
|
44
|
+
bearing: number;
|
|
45
|
+
pitch: number;
|
|
46
|
+
bounds: LngLatBounds;
|
|
47
|
+
}
|
|
48
|
+
export interface MapRef {
|
|
49
|
+
getCenter(): Promise<LngLat>;
|
|
50
|
+
getZoom(): Promise<number>;
|
|
51
|
+
getBearing(): Promise<number>;
|
|
52
|
+
getPitch(): Promise<number>;
|
|
53
|
+
getBounds(): Promise<LngLatBounds>;
|
|
54
|
+
getViewState(): Promise<ViewState>;
|
|
55
|
+
}
|
|
56
|
+
/** Pixel insets held off the edges of the viewport. */
|
|
57
|
+
export interface ViewPadding {
|
|
58
|
+
top?: number;
|
|
59
|
+
right?: number;
|
|
60
|
+
bottom?: number;
|
|
61
|
+
left?: number;
|
|
62
|
+
}
|
|
63
|
+
/** Zoom, tilt and rotation — everything about the camera except where it sits. */
|
|
64
|
+
export interface CameraOptions {
|
|
65
|
+
zoom?: number;
|
|
66
|
+
bearing?: number;
|
|
67
|
+
pitch?: number;
|
|
68
|
+
padding?: ViewPadding;
|
|
69
|
+
}
|
|
70
|
+
/** How the camera gets there. */
|
|
71
|
+
export interface CameraAnimationOptions {
|
|
72
|
+
duration?: number;
|
|
73
|
+
easing?: 'linear' | 'ease' | 'fly';
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Where the camera starts. Either a centre or a box, never both — the renderer
|
|
77
|
+
* types them as a union for the same reason: a camera framing a box has no
|
|
78
|
+
* separate centre to honour.
|
|
79
|
+
*/
|
|
80
|
+
export type InitialViewState = (CameraOptions & {
|
|
81
|
+
center?: never;
|
|
82
|
+
bounds?: never;
|
|
83
|
+
}) | (CameraOptions & {
|
|
84
|
+
center: LngLat;
|
|
85
|
+
bounds?: never;
|
|
86
|
+
}) | (CameraOptions & {
|
|
87
|
+
bounds: LngLatBounds;
|
|
88
|
+
center?: never;
|
|
89
|
+
});
|
|
90
|
+
export interface CameraRef {
|
|
91
|
+
jumpTo(options: {
|
|
92
|
+
center: LngLat;
|
|
93
|
+
} & CameraOptions): void;
|
|
94
|
+
easeTo(options: {
|
|
95
|
+
center?: LngLat;
|
|
96
|
+
} & CameraOptions & CameraAnimationOptions): void;
|
|
97
|
+
flyTo(options: {
|
|
98
|
+
center?: LngLat;
|
|
99
|
+
} & CameraOptions & CameraAnimationOptions): void;
|
|
100
|
+
fitBounds(bounds: LngLatBounds, options?: CameraOptions & CameraAnimationOptions): void;
|
|
101
|
+
}
|
|
102
|
+
/** A native event as it arrives — the payload is under `nativeEvent`. */
|
|
103
|
+
export interface NativeEvent<T> {
|
|
104
|
+
nativeEvent: T;
|
|
105
|
+
}
|
|
106
|
+
interface MapLibreModule {
|
|
107
|
+
Map: ComponentType<{
|
|
108
|
+
ref?: Ref<MapRef>;
|
|
109
|
+
mapStyle: string | StyleSpecification;
|
|
110
|
+
style?: unknown;
|
|
111
|
+
logo?: boolean;
|
|
112
|
+
compass?: boolean;
|
|
113
|
+
attribution?: boolean;
|
|
114
|
+
scaleBar?: boolean;
|
|
115
|
+
dragPan?: boolean;
|
|
116
|
+
touchZoom?: boolean;
|
|
117
|
+
touchRotate?: boolean;
|
|
118
|
+
touchPitch?: boolean;
|
|
119
|
+
onPress?: (event: NativeEvent<{
|
|
120
|
+
coordinates: LngLat;
|
|
121
|
+
}>) => void;
|
|
122
|
+
onDidFinishLoadingMap?: () => void;
|
|
123
|
+
onRegionDidChange?: (event: NativeEvent<ViewState>) => void;
|
|
124
|
+
children?: ReactNode;
|
|
125
|
+
}>;
|
|
126
|
+
Camera: ComponentType<{
|
|
127
|
+
ref?: Ref<CameraRef>;
|
|
128
|
+
/**
|
|
129
|
+
* The camera's opening position. Applied once, on the first frame — every
|
|
130
|
+
* move after this one goes through the ref, so a re-render never yanks the
|
|
131
|
+
* map back out from under a gesture.
|
|
132
|
+
*/
|
|
133
|
+
initialViewState?: InitialViewState;
|
|
134
|
+
center?: LngLat;
|
|
135
|
+
bounds?: LngLatBounds;
|
|
136
|
+
zoom?: number;
|
|
137
|
+
bearing?: number;
|
|
138
|
+
pitch?: number;
|
|
139
|
+
minZoom?: number;
|
|
140
|
+
maxZoom?: number;
|
|
141
|
+
maxBounds?: LngLatBounds;
|
|
142
|
+
padding?: ViewPadding;
|
|
143
|
+
}>;
|
|
144
|
+
Marker: ComponentType<{
|
|
145
|
+
id?: string;
|
|
146
|
+
lngLat: LngLat;
|
|
147
|
+
anchor?: string;
|
|
148
|
+
children: ReactElement;
|
|
149
|
+
}>;
|
|
150
|
+
Callout: ComponentType<{
|
|
151
|
+
title?: string;
|
|
152
|
+
children?: ReactNode;
|
|
153
|
+
style?: unknown;
|
|
154
|
+
}>;
|
|
155
|
+
GeoJSONSource: ComponentType<{
|
|
156
|
+
id?: string;
|
|
157
|
+
data: unknown;
|
|
158
|
+
cluster?: boolean;
|
|
159
|
+
clusterRadius?: number;
|
|
160
|
+
clusterMaxZoom?: number;
|
|
161
|
+
lineMetrics?: boolean;
|
|
162
|
+
onPress?: (event: NativeEvent<{
|
|
163
|
+
features: unknown[];
|
|
164
|
+
}>) => void;
|
|
165
|
+
children?: ReactNode;
|
|
166
|
+
}>;
|
|
167
|
+
Layer: ComponentType<Record<string, unknown>>;
|
|
168
|
+
UserLocation: ComponentType<{
|
|
169
|
+
animated?: boolean;
|
|
170
|
+
accuracy?: boolean;
|
|
171
|
+
heading?: boolean;
|
|
172
|
+
minDisplacement?: number;
|
|
173
|
+
onPress?: () => void;
|
|
174
|
+
children?: ReactNode;
|
|
175
|
+
}>;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* True when a map can actually be drawn.
|
|
179
|
+
*
|
|
180
|
+
* False in any client that cannot load native modules, and in any project that
|
|
181
|
+
* has not installed the renderer. Worth checking before routing somewhere whose
|
|
182
|
+
* whole content is a map.
|
|
183
|
+
*/
|
|
184
|
+
export declare const hasMapLibre: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The renderer's components, or null.
|
|
187
|
+
*
|
|
188
|
+
* Returned as one object rather than as separate exports so a caller destructures
|
|
189
|
+
* once after a single null check, instead of narrowing each component in turn.
|
|
190
|
+
*/
|
|
191
|
+
export declare const MapLibre: MapLibreModule | null;
|
|
192
|
+
export {};
|
|
193
|
+
//# sourceMappingURL=maplibre.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maplibre.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/maplibre.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEzE,mFAAmF;AACnF,MAAM,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtC,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,M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AS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAqBD,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAiBD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAaD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA+BD,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAcD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAaD,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAwBD,eAAO,MAAM,OAAO;;;;;;;;;CASlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/progress/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAW5E,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/progress/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAW5E,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAS1D,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAyBpB,CAAC;AAEH,KAAK,oBAAoB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAElE,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,EACjC,oBAAoB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8CAA8C;IAC9C,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;IACzC,qDAAqD;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA0BD;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,gGAkHpB,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RingChart — progress towards several targets, as concentric arcs.
|
|
3
|
+
*
|
|
4
|
+
* ```tsx
|
|
5
|
+
* <RingChart data={goals}>
|
|
6
|
+
* <RingChart.Ring index={0} />
|
|
7
|
+
* <RingChart.Ring index={1} />
|
|
8
|
+
* <RingChart.Center />
|
|
9
|
+
* <RingChart.Legend />
|
|
10
|
+
* </RingChart>
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* ## What it is not
|
|
14
|
+
*
|
|
15
|
+
* It is not a pie or a donut, and the difference matters. A pie divides one
|
|
16
|
+
* whole between its slices, so its parts are only meaningful against each
|
|
17
|
+
* other and the angles must add to a full turn. A ring here is a value against
|
|
18
|
+
* *its own* target — three rings can all be at ninety percent of three
|
|
19
|
+
* unrelated numbers, and that is the reading. Nothing is normalised across
|
|
20
|
+
* rings, and nothing has to add up.
|
|
21
|
+
*
|
|
22
|
+
* That is also why each ring gets a track. An arc drawn on nothing shows how
|
|
23
|
+
* far something went; an arc drawn on a full circle shows how far it went *of
|
|
24
|
+
* what it was aiming at*, which is the entire question.
|
|
25
|
+
*
|
|
26
|
+
* ## Drawing
|
|
27
|
+
*
|
|
28
|
+
* Each ring is two arcs — a full-circle track and the progress over it — with
|
|
29
|
+
* only the progress animated, through `strokeDasharray`. Sweeping the arc by
|
|
30
|
+
* rebuilding its path would work, but a dash offset is two numbers moving on
|
|
31
|
+
* an unchanged path, and it keeps the rounded cap pinned to the moving end for
|
|
32
|
+
* free.
|
|
33
|
+
*
|
|
34
|
+
* Touch, not hover: a ring is selected by pressing it, and pressing the same
|
|
35
|
+
* one again clears the selection. There is no equivalent of a pointer resting
|
|
36
|
+
* somewhere without committing, so a chart that only revealed its numbers on
|
|
37
|
+
* hover would never reveal them at all.
|
|
38
|
+
*/
|
|
39
|
+
import { type ReactNode } from 'react';
|
|
40
|
+
import { type ViewProps } from 'react-native';
|
|
41
|
+
import { type SeriesColorIndex } from '../../utils/chart.js';
|
|
42
|
+
/** One ring per datum, and the datum is the whole of its contract. */
|
|
43
|
+
export interface RingDatum {
|
|
44
|
+
/** Name for the legend and the centre readout. */
|
|
45
|
+
label: string;
|
|
46
|
+
/** Where this ring has got to. */
|
|
47
|
+
value: number;
|
|
48
|
+
/** What it is aiming at. The ring is full when `value` reaches it. */
|
|
49
|
+
maxValue: number;
|
|
50
|
+
/** Explicit colour, overriding the `--color-chart-*` token. */
|
|
51
|
+
color?: string;
|
|
52
|
+
}
|
|
53
|
+
/** The selected ring, for something rendered inside the chart. */
|
|
54
|
+
export declare function useRingChart(): {
|
|
55
|
+
activeIndex: number;
|
|
56
|
+
activeRing: RingDatum | null;
|
|
57
|
+
};
|
|
58
|
+
export interface RingChartProps extends ViewProps {
|
|
59
|
+
className?: string;
|
|
60
|
+
/** One entry per ring, outermost first. */
|
|
61
|
+
data: RingDatum[];
|
|
62
|
+
/** Fixed diameter in points. Measured from the container when omitted. */
|
|
63
|
+
size?: number;
|
|
64
|
+
/** Thickness of each ring. */
|
|
65
|
+
strokeWidth?: number;
|
|
66
|
+
/** Gap between one ring and the next. */
|
|
67
|
+
ringGap?: number;
|
|
68
|
+
/** Milliseconds for the arcs to sweep in. */
|
|
69
|
+
animationDuration?: number;
|
|
70
|
+
/** Selected ring. Leave unset to let the chart track it. */
|
|
71
|
+
activeIndex?: number;
|
|
72
|
+
/** Fires with the selected ring, or `-1` when the selection is cleared. */
|
|
73
|
+
onActiveIndexChange?: (index: number) => void;
|
|
74
|
+
children?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
/** Imperative handle: re-run the sweep, for a "replay" control. */
|
|
77
|
+
export interface RingChartHandle {
|
|
78
|
+
replay: () => void;
|
|
79
|
+
}
|
|
80
|
+
export interface RingChartRingProps {
|
|
81
|
+
/** Which entry in `data` this ring draws. */
|
|
82
|
+
index: number;
|
|
83
|
+
/** Explicit colour, overriding the datum's and the token. */
|
|
84
|
+
color?: string;
|
|
85
|
+
/** Which of the five chart tokens to take, when the datum names no colour. */
|
|
86
|
+
colorIndex?: SeriesColorIndex;
|
|
87
|
+
/** Rounded ends, or square ones. */
|
|
88
|
+
lineCap?: 'round' | 'butt';
|
|
89
|
+
/** Opacity of the track behind the arc. */
|
|
90
|
+
trackOpacity?: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* One ring: a full-circle track, and the arc showing how far along it the
|
|
94
|
+
* value has got.
|
|
95
|
+
*
|
|
96
|
+
* The arc is swept with `strokeDasharray` rather than by rebuilding its path.
|
|
97
|
+
* Both work, but a dash offset moves two numbers on a path that never changes
|
|
98
|
+
* — and it keeps the rounded cap pinned to the moving end without any extra
|
|
99
|
+
* geometry.
|
|
100
|
+
*/
|
|
101
|
+
declare function RingChartRing({ index, color, colorIndex, lineCap, trackOpacity, }: RingChartRingProps): import("react").JSX.Element | null;
|
|
102
|
+
declare namespace RingChartRing {
|
|
103
|
+
var displayName: string;
|
|
104
|
+
var slot: "ring";
|
|
105
|
+
}
|
|
106
|
+
export interface RingChartCenterProps {
|
|
107
|
+
/**
|
|
108
|
+
* Heading shown when no ring is selected. Defaults to the outermost ring's
|
|
109
|
+
* own name, which is what the centre shows when nothing has been picked.
|
|
110
|
+
*/
|
|
111
|
+
defaultLabel?: string;
|
|
112
|
+
/** Format the number under the label. Defaults to a compact number. */
|
|
113
|
+
formatValue?: (value: number, ring: RingDatum | null) => string;
|
|
114
|
+
/**
|
|
115
|
+
* Draw the middle yourself. Given the selected ring, or `null` when nothing
|
|
116
|
+
* is selected.
|
|
117
|
+
*/
|
|
118
|
+
children?: (ring: RingDatum | null) => ReactNode;
|
|
119
|
+
className?: string;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* The readout in the hole.
|
|
123
|
+
*
|
|
124
|
+
* With nothing selected it shows the outermost ring — the one the eye lands on
|
|
125
|
+
* first. Not a total: the rings measure different things against different
|
|
126
|
+
* targets, so their values do not add up and their percentages do not average,
|
|
127
|
+
* and a total here would be a confident number about nothing. Selecting a ring
|
|
128
|
+
* swaps it for that ring's own figures.
|
|
129
|
+
*/
|
|
130
|
+
declare function RingChartCenter({ defaultLabel, formatValue, children, className, }: RingChartCenterProps): import("react").JSX.Element;
|
|
131
|
+
declare namespace RingChartCenter {
|
|
132
|
+
var displayName: string;
|
|
133
|
+
var slot: "overlay";
|
|
134
|
+
}
|
|
135
|
+
export interface RingChartLegendProps extends ViewProps {
|
|
136
|
+
className?: string;
|
|
137
|
+
/** Show each ring's percentage of its own target beside its name. */
|
|
138
|
+
showValue?: boolean;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* A swatch and a name per ring, pressable in the same way the rings are — the
|
|
142
|
+
* legend is usually the easier target of the two, and on a small chart it is
|
|
143
|
+
* the only comfortable one.
|
|
144
|
+
*/
|
|
145
|
+
declare function RingChartLegend({ className, showValue, ...props }: RingChartLegendProps): import("react").JSX.Element | null;
|
|
146
|
+
declare namespace RingChartLegend {
|
|
147
|
+
var displayName: string;
|
|
148
|
+
var slot: "overlay";
|
|
149
|
+
}
|
|
150
|
+
export declare const RingChart: import("react").ForwardRefExoticComponent<RingChartProps & import("react").RefAttributes<RingChartHandle>> & {
|
|
151
|
+
Ring: typeof RingChartRing;
|
|
152
|
+
Center: typeof RingChartCenter;
|
|
153
|
+
Legend: typeof RingChartLegend;
|
|
154
|
+
};
|
|
155
|
+
export {};
|
|
156
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ring-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAWvF,OAAO,EAAiC,KAAK,gBAAgB,EAAE,MAAM,sBAAmB,CAAC;AAKzF,sEAAsE;AACtE,MAAM,WAAW,SAAS;IACxB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAyBD,kEAAkE;AAClE,wBAAgB,YAAY;;;EAM3B;AAED,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,0EAA0E;IAC1E,IAAI,CAAC,EA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;AACH,iBAAS,eAAe,CAAC,EACvB,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,oBAAoB,+BAmDtB;kBAxDQ,eAAe;;;;AA4DxB,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,SAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,sCA6CvF;kBA7CQ,eAAe;;;;AAiDxB,eAAO,MAAM,SAAS;;;;CAIpB,CAAC"}
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Separator — a rule between content.
|
|
3
|
+
*
|
|
4
|
+
* React Native has no `<hr>` and no border shorthand that survives a flex row,
|
|
5
|
+
* so a separator here is a view with a size on one axis and a stretch on the
|
|
6
|
+
* other. That is why orientation is a prop rather than something the layout
|
|
7
|
+
* infers: the component has to know which axis carries the thickness.
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Separator />
|
|
11
|
+
* <Separator orientation="vertical" />
|
|
12
|
+
* <Separator>or</Separator>
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* A vertical separator takes its length from the parent, so the parent needs a
|
|
16
|
+
* height — inside a `flex-row` with `items-stretch`, or with an explicit `h-*`
|
|
17
|
+
* on either the row or the separator itself. Without one it measures zero and
|
|
18
|
+
* nothing draws.
|
|
19
|
+
*
|
|
20
|
+
* Passing children turns it into a *labelled* separator: the rule breaks around
|
|
21
|
+
* centred content — the "or continue with" divider in a sign-in form. Only the
|
|
22
|
+
* horizontal axis carries a label, because a stacked word is not a divider; a
|
|
23
|
+
* vertical separator ignores its children and stays a plain hairline.
|
|
24
|
+
*/
|
|
25
|
+
import { type ReactNode } from 'react';
|
|
1
26
|
import { View, type ViewProps } from 'react-native';
|
|
2
27
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
28
|
declare const separatorVariants: import("tailwind-variants").TVReturnType<{
|
|
@@ -38,9 +63,19 @@ export interface SeparatorProps extends ViewProps, VariantProps<typeof separator
|
|
|
38
63
|
/**
|
|
39
64
|
* Whether the separator is only visual. A decorative separator is skipped by
|
|
40
65
|
* screen readers; set false when the split itself carries meaning — between
|
|
41
|
-
* two groups of menu items, say — and it is announced instead.
|
|
66
|
+
* two groups of menu items, say — and it is announced instead. A labelled
|
|
67
|
+
* separator is never decorative: its label is content, so it is always read.
|
|
42
68
|
*/
|
|
43
69
|
decorative?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Optional label sitting in the break of a horizontal rule — the "or"
|
|
72
|
+
* between two sign-in paths. A bare string is wrapped in the muted label
|
|
73
|
+
* style; an element is rendered as-is. Ignored on the vertical axis, where a
|
|
74
|
+
* label is not a divider.
|
|
75
|
+
*/
|
|
76
|
+
children?: ReactNode;
|
|
77
|
+
/** Styles the label text of a labelled separator. */
|
|
78
|
+
labelClassName?: string;
|
|
44
79
|
}
|
|
45
80
|
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<View>>;
|
|
46
81
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/separator/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/separator/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAI1D,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAwBrB,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,SAAS,EACf,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,SAAS,iGAmErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shimmer/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shimmer/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAiBtB,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC5B,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2BAA2B;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,EAAW,EACX,QAAe,EACf,MAAU,EACV,SAAS,EACT,YAAY,EACZ,IAAa,EACb,IAAY,EACZ,OAAe,EACf,OAAc,EACd,aAAa,EACb,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,YAAY,+BA6Gd;yBA9He,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EACL,IAAI,EAGL,MAAM,cAAc,CAAC;AAQtB,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/slider/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EACL,IAAI,EAGL,MAAM,cAAc,CAAC;AAQtB,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAmB1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,EAAE,MAAM,CAAC;IACxB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAYD,eAAO,MAAM,MAAM,8FAgPlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAO1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAkBlB,CAAC;AAIH,MAAM,WAAW,WAAY,SAAQ,YAAY,CAAC,OAAO,cAAc,CAAC;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,8FAgElB,CAAC"}
|
|
@@ -53,6 +53,8 @@ declare const typographyVariants: import("tailwind-variants").TVReturnType<{
|
|
|
53
53
|
bold: string;
|
|
54
54
|
};
|
|
55
55
|
align: {
|
|
56
|
+
start: string;
|
|
57
|
+
end: string;
|
|
56
58
|
left: string;
|
|
57
59
|
center: string;
|
|
58
60
|
right: string;
|
|
@@ -101,6 +103,8 @@ declare const typographyVariants: import("tailwind-variants").TVReturnType<{
|
|
|
101
103
|
bold: string;
|
|
102
104
|
};
|
|
103
105
|
align: {
|
|
106
|
+
start: string;
|
|
107
|
+
end: string;
|
|
104
108
|
left: string;
|
|
105
109
|
center: string;
|
|
106
110
|
right: string;
|
|
@@ -149,6 +153,8 @@ declare const typographyVariants: import("tailwind-variants").TVReturnType<{
|
|
|
149
153
|
bold: string;
|
|
150
154
|
};
|
|
151
155
|
align: {
|
|
156
|
+
start: string;
|
|
157
|
+
end: string;
|
|
152
158
|
left: string;
|
|
153
159
|
center: string;
|
|
154
160
|
right: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAG7D,QAAA,MAAM,kBAAkB;;;;;;;;QAUlB,sEAAsE;;;;;QAKtE,uEAAuE;;QAEvE,mEAAmE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC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AAO,CAAC,cAAc,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;AACpF,8CAA8C;AAC9C,KAAK,aAAa,GAAG,OAAO,CAC1B,cAAc,EACd,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAC5D,CAAC;AAoCF,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC3E,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AA6BD,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC7E,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AA0BD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IACxE,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgBD,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC9E,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgCD,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA8BD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC5E,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AA2BD,eAAO,MAAM,UAAU;;;;;;;CAOrB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type DirectionValue = 'ltr' | 'rtl';
|
|
2
|
+
/** What the device is set to, for anything outside a provider. */
|
|
3
|
+
export declare const deviceDirection: () => DirectionValue;
|
|
4
|
+
export declare const DirectionContext: import("react").Context<DirectionValue | null>;
|
|
5
|
+
/**
|
|
6
|
+
* The reading direction in force, for a component that has to flip maths Yoga
|
|
7
|
+
* cannot flip for it. Safe with no provider mounted: it falls back to the
|
|
8
|
+
* device's own setting.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDirection(): DirectionValue;
|
|
11
|
+
/**
|
|
12
|
+
* `-1` in a right-to-left subtree, `1` otherwise.
|
|
13
|
+
*
|
|
14
|
+
* The form most of the pixel maths actually wants. A drag translation, an
|
|
15
|
+
* indicator offset and a sweep are all a number that has to change sign, and
|
|
16
|
+
* writing `dir === 'rtl' ? -x : x` at every one of them is where the sign
|
|
17
|
+
* errors live.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useDirectionSign(): 1 | -1;
|
|
20
|
+
//# sourceMappingURL=use-direction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-direction.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-direction.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3C,kEAAkE;AAClE,eAAO,MAAM,eAAe,QAAO,cACA,CAAC;AAEpC,eAAO,MAAM,gBAAgB,gDAA6C,CAAC;AAE3E;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,cAAc,CAE7C;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,IAAI,CAAC,GAAG,CAAC,CAAC,CAEzC"}
|
|
@@ -40,6 +40,7 @@ export declare function MinusIcon({ size, color, strokeWidth, ...props }: IconPr
|
|
|
40
40
|
export declare function ChevronDownIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
41
41
|
export declare function ChevronLeftIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
42
42
|
export declare function ChevronRightIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
43
|
+
export declare function EllipsisIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
43
44
|
export declare function XIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
44
45
|
export declare function SearchIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
45
46
|
export declare function ArrowUpRightIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
@@ -108,6 +109,10 @@ export declare function DownloadIcon({ size, color, ...props }: IconProps): impo
|
|
|
108
109
|
export declare function PlusIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
109
110
|
/** Four corners pushing outward — fit everything into view. */
|
|
110
111
|
export declare function MaximizeIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
112
|
+
/** Crosshairs on a centre dot — put me where I actually am. */
|
|
113
|
+
export declare function CrosshairIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
114
|
+
/** A compass needle — which way is north. */
|
|
115
|
+
export declare function CompassIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
111
116
|
/** A closed padlock — the thing behind it cannot be moved. */
|
|
112
117
|
export declare function LockIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
113
118
|
/** The same padlock with its shackle swung open — freely movable. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAY,EAAmB,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAY,EAAmB,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvE,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACz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,EAAE,EAAE,SAAS,+BAkBnE"}
|
|
@@ -12,16 +12,20 @@ export { Accordion, type AccordionProps, type AccordionItemProps, type Accordion
|
|
|
12
12
|
export { Alert, type AlertProps, type AlertIndicatorProps, } from './components/alert/index.js';
|
|
13
13
|
export { Avatar, type AvatarProps, type AvatarBadgeProps, } from './components/avatar/index.js';
|
|
14
14
|
export { Attachment, type AttachmentProps, type AttachmentGroupProps, type AttachmentMediaProps, type AttachmentContentProps, type AttachmentTitleProps, type AttachmentDescriptionProps, type AttachmentActionsProps, type AttachmentActionProps, type AttachmentState, } from './components/attachment/index.js';
|
|
15
|
+
export { AreaChart, useAreaChart, type AreaChartProps, type AreaChartHandle, type AreaChartGridProps, type AreaChartAreaProps, type AreaChartXAxisProps, type AreaChartYAxisProps, type AreaChartTooltipProps, type AreaChartLegendProps, type AreaChartDatum, type AreaChartStatus, } from './components/area-chart/index.js';
|
|
15
16
|
export { Badge, type BadgeProps } from './components/badge/index.js';
|
|
16
|
-
export {
|
|
17
|
+
export { BarChart, useBarChart, type BarChartProps, type BarChartHandle, type BarChartGridProps, type BarChartBarProps, type BarChartXAxisProps, type BarChartYAxisProps, type BarChartTooltipProps, type BarChartLegendProps, type BarChartDatum, type BarChartStatus, type BarChartOrientation, } from './components/bar-chart/index.js';
|
|
18
|
+
export { BottomSheet, type BottomSheetProps, type BottomSheetContentProps, type BottomSheetHeaderProps, type BottomSheetBodyProps, type BottomSheetFooterProps, } from './components/bottom-sheet/index.js';
|
|
19
|
+
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbListProps, type BreadcrumbItemProps, type BreadcrumbLinkProps, type BreadcrumbPageProps, type BreadcrumbSeparatorProps, type BreadcrumbEllipsisProps, } from './components/breadcrumb/index.js';
|
|
17
20
|
export { Button, type ButtonProps } from './components/button/index.js';
|
|
18
21
|
export { ToggleButton, ToggleButtonGroup, useToggleButton, type ToggleButtonProps, type ToggleButtonGroupProps, type ToggleButtonLabelProps, type ToggleButtonSize, type ToggleButtonVariant, type ToggleSelectionMode, } from './components/toggle-button/index.js';
|
|
19
22
|
export { Dialog, type DialogProps, type DialogContentProps, } from './components/dialog/index.js';
|
|
20
23
|
export { Soundwave, type SoundwaveProps, type SoundwaveState, type SoundwaveVariant, } from './components/soundwave/index.js';
|
|
21
|
-
export { Direction, useDirection, type DirectionProps, type DirectionValue, } from './components/direction/index.js';
|
|
24
|
+
export { Direction, useDirection, useDirectionSign, type DirectionProps, type DirectionValue, } from './components/direction/index.js';
|
|
22
25
|
export { Flow, type FlowProps, type FlowNodeProps, type FlowHandleProps, type FlowEdgeProps, type FlowGroupProps, type FlowBackgroundProps, type FlowControlsProps, type FlowMiniMapProps, type FlowConnection, type FlowViewport, type FlowNodePosition, type FlowEdgeVariant, type FlowSide, type FlowRect, type FlowPoint, } from './components/flow/index.js';
|
|
23
26
|
export { Frame, type FrameProps, type FrameRootProps, type FramePanelProps, type FrameRowProps, type FrameSectionProps, type FrameHeaderProps, type FrameActionProps, type FrameMediaProps, type FrameContentProps, type FrameActionsProps, type FrameVariant, } from './components/frame/index.js';
|
|
24
27
|
export { HeatmapChart, useHeatmapChart, buildHeatmapCalendar, type HeatmapChartProps, type HeatmapCellsProps, type HeatmapSeparatorProps, type HeatmapXAxisProps, type HeatmapYAxisProps, type HeatmapTooltipProps, type HeatmapLegendProps, type HeatmapColumn, type HeatmapBin, type HeatmapCell, type HeatmapLayout, } from './components/heatmap-chart/index.js';
|
|
28
|
+
export { Map, useMap, hasMapLibre, CARTO_SOURCE, type MapProps, type MapHandle, type MapMarkerProps, type MapLabelProps, type MapPopupProps, type MapControlsProps, type MapControlsPosition, type MapRouteProps, type MapArcProps, type MapGeoJSONProps, type MapClusterProps, type MapHeatmapProps, type MapUserLocationProps, type BasemapSource, type BasemapTokens, type LngLat, type LngLatBounds, type ViewState, } from './components/map/index.js';
|
|
25
29
|
export { Select, type SelectProps, type SelectItemProps, type SelectPresentation, } from './components/select/index.js';
|
|
26
30
|
export { SectionRail, type SectionRailProps, type SectionRailTriggerProps, type SectionRailBarProps, type SectionRailContentProps, type SectionRailItemProps, type SectionRailPlacement, type SectionRailAlign, } from './components/section-rail/index.js';
|
|
27
31
|
export { Tabs, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, } from './components/tabs/index.js';
|
|
@@ -38,6 +42,7 @@ export { OtpInput, type OtpInputProps } from './components/otp-input/index.js';
|
|
|
38
42
|
export { Item, type ItemProps, type ItemGroupProps, type ItemSeparatorProps, type ItemMediaProps, type ItemContentProps, type ItemTitleProps, type ItemDescriptionProps, type ItemActionsProps, type ItemHeaderProps, type ItemFooterProps, } from './components/item/index.js';
|
|
39
43
|
export { Label, type LabelProps, type LabelTextProps } from './components/label/index.js';
|
|
40
44
|
export { LineChart, useLineChart, type LineChartProps, type LineChartHandle, type LineChartGridProps, type LineChartLineProps, type LineChartAreaProps, type LineChartSkeletonProps, type LineChartXAxisProps, type LineChartTooltipProps, type LineChartLegendProps, type LineChartDatum, type LineChartStatus, type LineChartCurve, } from './components/line-chart/index.js';
|
|
45
|
+
export { Loader, type LoaderProps, type LoaderVariant, type LoaderSize, } from './components/loader/index.js';
|
|
41
46
|
export { Marker, type MarkerProps, type MarkerIconProps, type MarkerContentProps, } from './components/marker/index.js';
|
|
42
47
|
export { MessageScroller, useMessageScroller, useMessageScrollerVisibility, type MessageScrollerProps, type MessageScrollerViewportProps, type MessageScrollerContentProps, type MessageScrollerItemProps, type MessageScrollerButtonProps, type MessageScrollerPosition, } from './components/message-scroller/index.js';
|
|
43
48
|
export { Message, type MessageProps, type MessageGroupProps, type MessageAvatarProps, type MessageContentProps, type MessageHeaderProps, type MessageBubbleProps, type MessageBubbleContentProps, type MessageFooterProps, type MessageActionsProps, } from './components/message/index.js';
|
|
@@ -45,6 +50,7 @@ export { Popover, type PopoverProps, type PopoverTriggerProps, type PopoverConte
|
|
|
45
50
|
export { Progress, type ProgressProps } from './components/progress/index.js';
|
|
46
51
|
export { RadioGroup, type RadioGroupProps, type RadioGroupItemProps, } from './components/radio-group/index.js';
|
|
47
52
|
export { Rating, type RatingProps, type RatingColor, type RatingSize, } from './components/rating/index.js';
|
|
53
|
+
export { RingChart, useRingChart, type RingChartProps, type RingChartHandle, type RingChartRingProps, type RingChartCenterProps, type RingChartLegendProps, type RingDatum, } from './components/ring-chart/index.js';
|
|
48
54
|
export { ScrollFade, type ScrollFadeProps, } from './components/scroll-fade/index.js';
|
|
49
55
|
export { Separator, type SeparatorProps } from './components/separator/index.js';
|
|
50
56
|
export { Signature, hasSignatureFileSystem, hasSignatureRaster, type SignatureProps, type SignatureHandle, type SignatureFile, type SignatureSaveOptions, type SignatureToolbarProps, type SignatureButtonProps, } from './components/signature/index.js';
|
|
@@ -61,7 +67,7 @@ export { Switch, type SwitchProps } from './components/switch/index.js';
|
|
|
61
67
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineIndicatorProps, type TimelineStatProps, type TimelineVariant, type TimelineTone, } from './components/timeline/index.js';
|
|
62
68
|
export { Toast, ToastViewport, toast, useToast, type ToastProps, type ToastOptions, type ToastItem, type ToastVariant, type ToastPlacement, type ToastHandle, type ToastIndicatorProps, type ToastCloseProps, } from './components/toast/index.js';
|
|
63
69
|
export { Typography, type TypographyProps, type TypographyType, type TypographyHeadingProps, type TypographyParagraphProps, type TypographyCodeProps, } from './components/typography/index.js';
|
|
64
|
-
export { AlertTriangleIcon, AppleIcon, ArrowUpRightIcon, BellIcon, CardIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, DownloadIcon, FacebookIcon, FileIcon, GoogleIcon, IconColorProvider, InfoIcon, ImageIcon, LockIcon, MaximizeIcon, MicIcon, MinusIcon, MoonIcon, PackageIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, PlusSquareIcon, ReceiptIcon, RotateCcwIcon, SearchIcon, SendIcon, ShareNodesIcon, ShieldAlertIcon, ShieldCheckIcon, SunIcon, TrashIcon, UnlockIcon, XIcon, useIconColor, type IconProps, } from './icons/index.js';
|
|
70
|
+
export { AlertTriangleIcon, AppleIcon, ArrowUpRightIcon, BellIcon, CardIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, DownloadIcon, EllipsisIcon, FacebookIcon, FileIcon, GoogleIcon, IconColorProvider, InfoIcon, ImageIcon, LockIcon, MaximizeIcon, MicIcon, MinusIcon, MoonIcon, PackageIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, PlusSquareIcon, ReceiptIcon, RotateCcwIcon, SearchIcon, SendIcon, ShareNodesIcon, ShieldAlertIcon, ShieldCheckIcon, SunIcon, TrashIcon, UnlockIcon, XIcon, useIconColor, type IconProps, } from './icons/index.js';
|
|
65
71
|
export * from './hooks/index.js';
|
|
66
72
|
export { cn } from './utils/cn.js';
|
|
67
73
|
//# sourceMappingURL=index.d.ts.map
|