panelui-native 0.38.0 → 0.41.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 +3 -1
- package/lib/module/components/card/index.js +172 -3
- package/lib/module/components/card/index.js.map +1 -1
- package/lib/module/components/drawer/index.js +13 -4
- package/lib/module/components/drawer/index.js.map +1 -1
- package/lib/module/components/heatmap-chart/index.js +113 -6
- package/lib/module/components/heatmap-chart/index.js.map +1 -1
- package/lib/module/components/map/index.js +72 -12
- package/lib/module/components/map/index.js.map +1 -1
- package/lib/module/components/pagination/index.js +529 -0
- package/lib/module/components/pagination/index.js.map +1 -0
- package/lib/module/components/panelside/index.js +68 -18
- package/lib/module/components/panelside/index.js.map +1 -1
- package/lib/module/components/ring-chart/index.js +183 -45
- package/lib/module/components/ring-chart/index.js.map +1 -1
- package/lib/module/components/steps/index.js +8 -6
- package/lib/module/components/steps/index.js.map +1 -1
- package/lib/module/components/table/index.js +100 -26
- package/lib/module/components/table/index.js.map +1 -1
- package/lib/module/components/text-animation/index.js +857 -0
- package/lib/module/components/text-animation/index.js.map +1 -0
- package/lib/module/components/timeline/index.js +8 -7
- package/lib/module/components/timeline/index.js.map +1 -1
- package/lib/module/icons/index.js +25 -7
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/components/card/index.d.ts +20 -0
- package/lib/typescript/src/components/card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/drawer/index.d.ts +13 -1
- package/lib/typescript/src/components/drawer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/heatmap-chart/index.d.ts +51 -3
- package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/map/index.d.ts +37 -2
- package/lib/typescript/src/components/map/index.d.ts.map +1 -1
- package/lib/typescript/src/components/pagination/index.d.ts +285 -0
- package/lib/typescript/src/components/pagination/index.d.ts.map +1 -0
- package/lib/typescript/src/components/panelside/index.d.ts +50 -4
- package/lib/typescript/src/components/panelside/index.d.ts.map +1 -1
- package/lib/typescript/src/components/ring-chart/index.d.ts +75 -8
- package/lib/typescript/src/components/ring-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/steps/index.d.ts +8 -6
- package/lib/typescript/src/components/steps/index.d.ts.map +1 -1
- package/lib/typescript/src/components/table/index.d.ts +59 -17
- package/lib/typescript/src/components/table/index.d.ts.map +1 -1
- package/lib/typescript/src/components/text-animation/index.d.ts +268 -0
- package/lib/typescript/src/components/text-animation/index.d.ts.map +1 -0
- package/lib/typescript/src/components/timeline/index.d.ts +8 -7
- package/lib/typescript/src/components/timeline/index.d.ts.map +1 -1
- package/lib/typescript/src/icons/index.d.ts +6 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +6 -4
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/card/index.tsx +227 -2
- package/src/components/drawer/index.tsx +31 -9
- package/src/components/heatmap-chart/index.tsx +147 -5
- package/src/components/map/index.tsx +158 -14
- package/src/components/pagination/index.tsx +603 -0
- package/src/components/panelside/index.tsx +134 -19
- package/src/components/ring-chart/index.tsx +269 -47
- package/src/components/steps/index.tsx +8 -6
- package/src/components/table/index.tsx +146 -30
- package/src/components/text-animation/index.tsx +1093 -0
- package/src/components/timeline/index.tsx +8 -7
- package/src/icons/index.tsx +23 -4
- package/src/index.ts +28 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* ```tsx
|
|
13
13
|
* <HeatmapChart data={weeks}>
|
|
14
|
+
* <HeatmapChart.Header title="Contributions" value="1,204" legend />
|
|
14
15
|
* <HeatmapChart.YAxis />
|
|
15
16
|
* <HeatmapChart.XAxis />
|
|
16
17
|
* <HeatmapChart.Cells />
|
|
@@ -41,7 +42,7 @@ import { View, type ViewProps } from 'react-native';
|
|
|
41
42
|
* composition stays a flat list of children instead of four nested slots the
|
|
42
43
|
* caller has to remember the order of.
|
|
43
44
|
*/
|
|
44
|
-
type Slot = 'cells' | 'x-axis' | 'y-axis' | 'rules' | 'tooltip' | 'legend';
|
|
45
|
+
type Slot = 'cells' | 'x-axis' | 'y-axis' | 'rules' | 'tooltip' | 'legend' | 'header';
|
|
45
46
|
export type HeatmapLayout = 'fluid' | 'fill';
|
|
46
47
|
/** One bin inside a column — usually a single day. */
|
|
47
48
|
export interface HeatmapBin {
|
|
@@ -193,15 +194,22 @@ export interface HeatmapXAxisProps {
|
|
|
193
194
|
* derived. Return an empty string to leave the column unlabelled.
|
|
194
195
|
*/
|
|
195
196
|
formatLabel?: (date: Date, column: number) => string;
|
|
197
|
+
/**
|
|
198
|
+
* Column labels, left to right. Overrides the month names — for a grid whose
|
|
199
|
+
* columns are not weeks, where there is no month to change and so nothing to
|
|
200
|
+
* emit a label on.
|
|
201
|
+
*/
|
|
202
|
+
labels?: string[];
|
|
196
203
|
}
|
|
197
204
|
/**
|
|
198
205
|
* Month labels above the grid.
|
|
199
206
|
*
|
|
200
207
|
* A label is emitted where the month changes rather than at a fixed interval,
|
|
201
208
|
* because months are not the same length — spacing them evenly puts "Mar" over
|
|
202
|
-
* a week in February.
|
|
209
|
+
* a week in February. A grid whose columns are not weeks has no such signal, so
|
|
210
|
+
* it passes `labels` and gets one over every column.
|
|
203
211
|
*/
|
|
204
|
-
declare function HeatmapXAxis({ className, formatLabel }: HeatmapXAxisProps): import("react").JSX.Element;
|
|
212
|
+
declare function HeatmapXAxis({ className, formatLabel, labels: given }: HeatmapXAxisProps): import("react").JSX.Element;
|
|
205
213
|
declare namespace HeatmapXAxis {
|
|
206
214
|
var slot: Slot;
|
|
207
215
|
}
|
|
@@ -267,7 +275,47 @@ declare function HeatmapLegend({ className, lessLabel, moreLabel, swatchSize, }:
|
|
|
267
275
|
declare namespace HeatmapLegend {
|
|
268
276
|
var slot: Slot;
|
|
269
277
|
}
|
|
278
|
+
export interface HeatmapHeaderProps extends ViewProps {
|
|
279
|
+
className?: string;
|
|
280
|
+
/** Small line above the value — what the grid is of. */
|
|
281
|
+
title?: string;
|
|
282
|
+
/** The readout. The largest thing on the card, and the first thing read. */
|
|
283
|
+
value?: string;
|
|
284
|
+
/** One muted line under the value — a period, a total, the held cell. */
|
|
285
|
+
caption?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Draw the ramp along the trailing edge, `Less ▢▢▢▢▢ More`. The key for a
|
|
288
|
+
* grid that scrolls sideways, where `HeatmapChart.Legend` under the cells
|
|
289
|
+
* would scroll away with them.
|
|
290
|
+
*/
|
|
291
|
+
legend?: boolean;
|
|
292
|
+
/** Text at the low end of the ramp, when `legend` is set. */
|
|
293
|
+
lessLabel?: string;
|
|
294
|
+
/** Text at the high end. */
|
|
295
|
+
moreLabel?: string;
|
|
296
|
+
/** Trailing slot — a control, a badge, a range picker. Wins over `legend`. */
|
|
297
|
+
children?: ReactNode;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* The strip above the grid: what the chart is of, what it currently reads, and
|
|
301
|
+
* what the shading means.
|
|
302
|
+
*
|
|
303
|
+
* It belongs to the chart rather than to the card around it because it is about
|
|
304
|
+
* the *grid* — the number changes as a finger moves across the cells, and the
|
|
305
|
+
* ramp is the scale the chart itself derived. The card's header is a caption on
|
|
306
|
+
* the tray the chart sits in; this is the chart introducing itself.
|
|
307
|
+
*
|
|
308
|
+
* The value is not derived here. Take it from `onActiveCellChange` and pass the
|
|
309
|
+
* formatted string down, so one header can show a total when nothing is held
|
|
310
|
+
* and a day's own count when something is.
|
|
311
|
+
*/
|
|
312
|
+
declare function HeatmapHeader({ className, title, value, caption, legend, lessLabel, moreLabel, children, ...props }: HeatmapHeaderProps): import("react").JSX.Element;
|
|
313
|
+
declare namespace HeatmapHeader {
|
|
314
|
+
var displayName: string;
|
|
315
|
+
var slot: Slot;
|
|
316
|
+
}
|
|
270
317
|
export declare const HeatmapChart: import("react").ForwardRefExoticComponent<HeatmapChartProps & import("react").RefAttributes<View>> & {
|
|
318
|
+
Header: typeof HeatmapHeader;
|
|
271
319
|
Cells: typeof HeatmapCells;
|
|
272
320
|
Separator: typeof HeatmapSeparator;
|
|
273
321
|
XAxis: typeof HeatmapXAxis;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/heatmap-chart/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/heatmap-chart/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAiFxF;;;;GAIG;AACH,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtF,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,0EAA0E;AAC1E,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB;AAED,4EAA4E;AAC5E,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAuCD;;;;GAI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AQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,KAAK,EACL,KAAK,EACL,OAAO,EACP,MAAc,EACd,SAAkB,EAClB,SAAkB,EAClB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,+BA2DpB;kBArEQ,aAAa;;;;AAyEtB,eAAO,MAAM,YAAY;;;;;;;;CAQvB,CAAC"}
|
|
@@ -312,6 +312,28 @@ export interface MapHeatmapProps {
|
|
|
312
312
|
data: unknown;
|
|
313
313
|
/** Feature property to weight each point by. Unweighted when omitted. */
|
|
314
314
|
weight?: string;
|
|
315
|
+
/**
|
|
316
|
+
* Base colour of the field — a theme token by name, or a literal. The ramp
|
|
317
|
+
* is this colour at rising opacity, so density reads as *more of the same
|
|
318
|
+
* thing* rather than as a change of subject.
|
|
319
|
+
*
|
|
320
|
+
* Defaults to `--color-chart-2`, which is a saturated accent in every theme.
|
|
321
|
+
* It is deliberately not `--color-chart-1`: that is the series colour a chart
|
|
322
|
+
* is about, and every theme starts it on something close to the foreground —
|
|
323
|
+
* near-black in a light theme, near-white in a dark one — which over a
|
|
324
|
+
* basemap is a smudge rather than a measurement.
|
|
325
|
+
*/
|
|
326
|
+
color?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Replace the derived ramp outright, coolest first. For the conventional
|
|
329
|
+
* heat ramp, where the hue carries the reading as well as the opacity —
|
|
330
|
+
* worth it when the field sits over varied terrain and one hue at five
|
|
331
|
+
* opacities stops being separable from what is underneath it.
|
|
332
|
+
*
|
|
333
|
+
* The first stop is drawn at the lowest density, the last at the highest.
|
|
334
|
+
* Density zero stays fully transparent either way.
|
|
335
|
+
*/
|
|
336
|
+
colors?: string[];
|
|
315
337
|
/**
|
|
316
338
|
* Spread of a single point, in points, at street zoom. Larger blurs more.
|
|
317
339
|
* The drawn radius shrinks as the map zooms out, so a point keeps covering
|
|
@@ -324,6 +346,12 @@ export interface MapHeatmapProps {
|
|
|
324
346
|
opacity?: number;
|
|
325
347
|
/** Above this zoom the layer fades out — see the note on the component. */
|
|
326
348
|
maxZoom?: number;
|
|
349
|
+
/**
|
|
350
|
+
* Draw the points themselves as the field fades out, coloured from the same
|
|
351
|
+
* ramp by weight. Without them, zooming past `maxZoom` leaves an empty map:
|
|
352
|
+
* the layer gets out of the way, and nothing takes its place.
|
|
353
|
+
*/
|
|
354
|
+
points?: boolean;
|
|
327
355
|
id?: string;
|
|
328
356
|
}
|
|
329
357
|
/**
|
|
@@ -336,15 +364,22 @@ export interface MapHeatmapProps {
|
|
|
336
364
|
*
|
|
337
365
|
* It fades out past `maxZoom` on purpose. Zoomed far enough in, every point is
|
|
338
366
|
* its own island and the blur says less than the points would — so the layer
|
|
339
|
-
* gets out of the way rather than smearing five records across a street.
|
|
367
|
+
* gets out of the way rather than smearing five records across a street. Set
|
|
368
|
+
* `points` and the records themselves fade in as it goes, which is the whole
|
|
369
|
+
* handover: a field while the question is where, marks once it is which.
|
|
340
370
|
*
|
|
341
371
|
* The radius is tied to zoom for the mirror-image reason. Left as a fixed
|
|
342
372
|
* number of screen points it would mean a different distance at every zoom:
|
|
343
373
|
* a blur that reads as a city at street level covers half a continent once
|
|
344
374
|
* the map is pulled out, and a field measured over land ends up sitting in
|
|
345
375
|
* the sea. Scaling it with the projection keeps the claim the same one.
|
|
376
|
+
*
|
|
377
|
+
* Intensity is tied to zoom too, and in the other direction. The same points
|
|
378
|
+
* are packed into fewer pixels the further out the map goes, so a constant
|
|
379
|
+
* intensity saturates the whole field at world zoom and shows nothing but its
|
|
380
|
+
* own ceiling.
|
|
346
381
|
*/
|
|
347
|
-
declare function MapHeatmap({ data, weight, radius, intensity, opacity, maxZoom, id, }: MapHeatmapProps): import("react").JSX.Element | null;
|
|
382
|
+
declare function MapHeatmap({ data, weight, color, colors, radius, intensity, opacity, maxZoom, points, id, }: MapHeatmapProps): import("react").JSX.Element | null;
|
|
348
383
|
declare namespace MapHeatmap {
|
|
349
384
|
var displayName: string;
|
|
350
385
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAM/D,OAAO,EAEL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,cAAW,CAAC;AACnB,OAAO,EACL,WAAW,EAEX,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,eAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC;AAkD9E,MAAM,MAAM,mBAAmB,GAC3B,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/map/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAM/D,OAAO,EAEL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,cAAW,CAAC;AACnB,OAAO,EACL,WAAW,EAEX,KAAK,SAAS,EACd,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACf,MAAM,eAAY,CAAC;AAEpB,OA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;;;;;;;;;;;;;GAwBG;AACH,iBAAS,UAAU,CAAC,EAClB,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,MAAW,EACX,SAAa,EACb,OAAc,EACd,OAAY,EACZ,MAAc,EACd,EAAc,GACf,EAAE,eAAe,sCAqIjB;kBAhJQ,UAAU;;;AAmJnB,MAAM,WAAW,oBAAoB;IACnC,iEAAiE;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wDAAwD;AACxD,iBAAS,eAAe,CAAC,EACvB,OAAe,EACf,QAAgB,GACjB,EAAE,oBAAoB,sCAItB;kBAPQ,eAAe;;;AAUxB,eAAO,MAAM,GAAG;;;;;;;;;;;CAWd,CAAC"}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination — moving through a result set one page at a time.
|
|
3
|
+
*
|
|
4
|
+
* The component owns the arithmetic and nothing else. Give it how many pages
|
|
5
|
+
* there are and which one you are on, and it works out which numbers to show,
|
|
6
|
+
* where the gaps fall, and which controls are dead at the ends; it never fetches
|
|
7
|
+
* and never slices, because the data is yours.
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Pagination count={12} page={page} onPageChange={setPage} />
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* Three presentations, because a phone is not a desktop:
|
|
14
|
+
*
|
|
15
|
+
* - `numbers` — the full run, with the middle folded into ellipses. Fits about
|
|
16
|
+
* seven targets across a phone, which is what `siblings` and `boundaries`
|
|
17
|
+
* are tuned for.
|
|
18
|
+
* - `compact` — the two arrows with `3 / 12` between them. Digits and a slash,
|
|
19
|
+
* so there is no sentence to translate.
|
|
20
|
+
* - `simple` — labelled Previous and Next, for a flow you walk rather than
|
|
21
|
+
* jump around in: a wizard, an article, a set of onboarding cards.
|
|
22
|
+
*
|
|
23
|
+
* Every target is at least 44pt in both axes, and the small size keeps that
|
|
24
|
+
* reach with `hitSlop` rather than by growing — the row gets denser, the
|
|
25
|
+
* fingers do not get smaller.
|
|
26
|
+
*
|
|
27
|
+
* An ellipsis is a button, not punctuation. A dead 44pt target in the middle of
|
|
28
|
+
* a row of live ones is a thing people tap and then think is broken, so tapping
|
|
29
|
+
* one jumps `pageJump` pages that way.
|
|
30
|
+
*
|
|
31
|
+
* Given children, the root becomes a row with them on the leading edge and the
|
|
32
|
+
* controls on the trailing one — which is where `Pagination.Status` goes:
|
|
33
|
+
*
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <Pagination count={12} page={page} onPageChange={setPage} variant="compact">
|
|
36
|
+
* <Pagination.Status page={page} pageSize={20} total={240} />
|
|
37
|
+
* </Pagination>
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
import { type ReactNode } from 'react';
|
|
41
|
+
import { View, type ViewProps } from 'react-native';
|
|
42
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
43
|
+
import { type AnimatedPressableProps } from '../../primitives/animated-pressable.js';
|
|
44
|
+
import { type TextProps } from '../../primitives/text.js';
|
|
45
|
+
export type PaginationVariant = 'numbers' | 'compact' | 'simple';
|
|
46
|
+
export type PaginationSize = 'sm' | 'default';
|
|
47
|
+
declare const paginationVariants: import("tailwind-variants").TVReturnType<{
|
|
48
|
+
size: {
|
|
49
|
+
default: {
|
|
50
|
+
list: string;
|
|
51
|
+
item: string;
|
|
52
|
+
itemLabel: string;
|
|
53
|
+
ellipsis: string;
|
|
54
|
+
status: string;
|
|
55
|
+
summary: string;
|
|
56
|
+
};
|
|
57
|
+
sm: {
|
|
58
|
+
list: string;
|
|
59
|
+
item: string;
|
|
60
|
+
itemLabel: string;
|
|
61
|
+
ellipsis: string;
|
|
62
|
+
status: string;
|
|
63
|
+
summary: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
/** Whether the item is the page you are on. */
|
|
67
|
+
current: {
|
|
68
|
+
true: {
|
|
69
|
+
item: string;
|
|
70
|
+
itemLabel: string;
|
|
71
|
+
};
|
|
72
|
+
false: {
|
|
73
|
+
itemLabel: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
disabled: {
|
|
77
|
+
true: {
|
|
78
|
+
item: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
root: string;
|
|
83
|
+
list: string;
|
|
84
|
+
item: string;
|
|
85
|
+
itemLabel: string;
|
|
86
|
+
ellipsis: string;
|
|
87
|
+
status: string;
|
|
88
|
+
summary: string;
|
|
89
|
+
}, undefined, {
|
|
90
|
+
size: {
|
|
91
|
+
default: {
|
|
92
|
+
list: string;
|
|
93
|
+
item: string;
|
|
94
|
+
itemLabel: string;
|
|
95
|
+
ellipsis: string;
|
|
96
|
+
status: string;
|
|
97
|
+
summary: string;
|
|
98
|
+
};
|
|
99
|
+
sm: {
|
|
100
|
+
list: string;
|
|
101
|
+
item: string;
|
|
102
|
+
itemLabel: string;
|
|
103
|
+
ellipsis: string;
|
|
104
|
+
status: string;
|
|
105
|
+
summary: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
/** Whether the item is the page you are on. */
|
|
109
|
+
current: {
|
|
110
|
+
true: {
|
|
111
|
+
item: string;
|
|
112
|
+
itemLabel: string;
|
|
113
|
+
};
|
|
114
|
+
false: {
|
|
115
|
+
itemLabel: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
disabled: {
|
|
119
|
+
true: {
|
|
120
|
+
item: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
root: string;
|
|
125
|
+
list: string;
|
|
126
|
+
item: string;
|
|
127
|
+
itemLabel: string;
|
|
128
|
+
ellipsis: string;
|
|
129
|
+
status: string;
|
|
130
|
+
summary: string;
|
|
131
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
132
|
+
size: {
|
|
133
|
+
default: {
|
|
134
|
+
list: string;
|
|
135
|
+
item: string;
|
|
136
|
+
itemLabel: string;
|
|
137
|
+
ellipsis: string;
|
|
138
|
+
status: string;
|
|
139
|
+
summary: string;
|
|
140
|
+
};
|
|
141
|
+
sm: {
|
|
142
|
+
list: string;
|
|
143
|
+
item: string;
|
|
144
|
+
itemLabel: string;
|
|
145
|
+
ellipsis: string;
|
|
146
|
+
status: string;
|
|
147
|
+
summary: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
/** Whether the item is the page you are on. */
|
|
151
|
+
current: {
|
|
152
|
+
true: {
|
|
153
|
+
item: string;
|
|
154
|
+
itemLabel: string;
|
|
155
|
+
};
|
|
156
|
+
false: {
|
|
157
|
+
itemLabel: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
disabled: {
|
|
161
|
+
true: {
|
|
162
|
+
item: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
root: string;
|
|
167
|
+
list: string;
|
|
168
|
+
item: string;
|
|
169
|
+
itemLabel: string;
|
|
170
|
+
ellipsis: string;
|
|
171
|
+
status: string;
|
|
172
|
+
summary: string;
|
|
173
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
174
|
+
export type PaginationItemValue = number | 'start-ellipsis' | 'end-ellipsis';
|
|
175
|
+
/**
|
|
176
|
+
* Which numbers to draw, and where the gaps go.
|
|
177
|
+
*
|
|
178
|
+
* The run is a fixed width rather than a sliding window: the same number of
|
|
179
|
+
* targets whichever page you are on, so the row does not reflow under the
|
|
180
|
+
* finger as you step through it and the arrow you were aiming at stays put.
|
|
181
|
+
* `boundaries` pins the ends, `siblings` pads the middle, and a gap of exactly
|
|
182
|
+
* one page is drawn as that page instead of an ellipsis — a `…` that hides a
|
|
183
|
+
* single number is longer than the number.
|
|
184
|
+
*
|
|
185
|
+
* Exported because a caller sometimes needs the same run for a control of their
|
|
186
|
+
* own, and two implementations of this would drift.
|
|
187
|
+
*/
|
|
188
|
+
export declare function paginationRange({ count, page, siblings, boundaries, }: {
|
|
189
|
+
count: number;
|
|
190
|
+
page: number;
|
|
191
|
+
siblings?: number;
|
|
192
|
+
boundaries?: number;
|
|
193
|
+
}): PaginationItemValue[];
|
|
194
|
+
export interface PaginationProps extends Omit<ViewProps, 'children'>, VariantProps<typeof paginationVariants> {
|
|
195
|
+
className?: string;
|
|
196
|
+
/**
|
|
197
|
+
* How many pages there are. Pages are numbered from 1, so this is also the
|
|
198
|
+
* last page's number.
|
|
199
|
+
*/
|
|
200
|
+
count: number;
|
|
201
|
+
/** The page being shown. Pass it to control the component. */
|
|
202
|
+
page?: number;
|
|
203
|
+
/** The page to start on when the component keeps its own. Defaults to 1. */
|
|
204
|
+
defaultPage?: number;
|
|
205
|
+
/** Called with the page that was asked for, already clamped to `count`. */
|
|
206
|
+
onPageChange?: (page: number) => void;
|
|
207
|
+
/** Which presentation to draw. */
|
|
208
|
+
variant?: PaginationVariant;
|
|
209
|
+
size?: PaginationSize;
|
|
210
|
+
/**
|
|
211
|
+
* How many pages to keep either side of the current one. Raise it on a
|
|
212
|
+
* tablet, where there is room for a longer run.
|
|
213
|
+
*/
|
|
214
|
+
siblings?: number;
|
|
215
|
+
/** How many pages to keep pinned at each end of the run. */
|
|
216
|
+
boundaries?: number;
|
|
217
|
+
/**
|
|
218
|
+
* Show the previous and next arrows. Turning them off leaves the numbers
|
|
219
|
+
* alone, so only do it where something else moves the page — a swipe, a
|
|
220
|
+
* scroller reaching its end.
|
|
221
|
+
*/
|
|
222
|
+
controls?: boolean;
|
|
223
|
+
/** How far tapping an ellipsis jumps. */
|
|
224
|
+
pageJump?: number;
|
|
225
|
+
/** Greys out and deafens the whole row — for a page that is still loading. */
|
|
226
|
+
disabled?: boolean;
|
|
227
|
+
/** Labels the row for a screen reader. Defaults to "Pagination". */
|
|
228
|
+
accessibilityLabel?: string;
|
|
229
|
+
/** Leading content — a `Pagination.Status`, a page-size control of your own. */
|
|
230
|
+
children?: ReactNode;
|
|
231
|
+
}
|
|
232
|
+
export interface PaginationItemProps extends Omit<AnimatedPressableProps, 'children' | 'disabled'> {
|
|
233
|
+
className?: string;
|
|
234
|
+
/** The page this target goes to. */
|
|
235
|
+
page: number;
|
|
236
|
+
/** Styles the number. */
|
|
237
|
+
labelClassName?: string;
|
|
238
|
+
children?: ReactNode;
|
|
239
|
+
}
|
|
240
|
+
export interface PaginationPreviousProps extends Omit<AnimatedPressableProps, 'children'> {
|
|
241
|
+
className?: string;
|
|
242
|
+
/** Write the word beside the arrow, rather than leaving it as a glyph. */
|
|
243
|
+
label?: boolean;
|
|
244
|
+
}
|
|
245
|
+
export interface PaginationNextProps extends Omit<AnimatedPressableProps, 'children'> {
|
|
246
|
+
className?: string;
|
|
247
|
+
/** Write the word beside the arrow, rather than leaving it as a glyph. */
|
|
248
|
+
label?: boolean;
|
|
249
|
+
}
|
|
250
|
+
export interface PaginationEllipsisProps extends Omit<AnimatedPressableProps, 'children'> {
|
|
251
|
+
className?: string;
|
|
252
|
+
/** Which way the gap runs: `-1` towards page 1, `1` towards the last page. */
|
|
253
|
+
direction?: -1 | 1;
|
|
254
|
+
/** How many pages a tap covers. */
|
|
255
|
+
jump?: number;
|
|
256
|
+
}
|
|
257
|
+
export interface PaginationSummaryProps extends TextProps {
|
|
258
|
+
className?: string;
|
|
259
|
+
}
|
|
260
|
+
export interface PaginationStatusProps extends TextProps {
|
|
261
|
+
className?: string;
|
|
262
|
+
/** Which page the span is counted from. Read from the root when left out. */
|
|
263
|
+
page?: number;
|
|
264
|
+
/** How many rows a page holds. Required for the span to be worked out. */
|
|
265
|
+
pageSize?: number;
|
|
266
|
+
/** How many rows there are altogether. */
|
|
267
|
+
total?: number;
|
|
268
|
+
children?: ReactNode;
|
|
269
|
+
}
|
|
270
|
+
export declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & import("react").RefAttributes<View>> & {
|
|
271
|
+
Item: import("react").ForwardRefExoticComponent<PaginationItemProps & import("react").RefAttributes<View>>;
|
|
272
|
+
Previous: {
|
|
273
|
+
({ ...props }: PaginationPreviousProps): import("react").JSX.Element;
|
|
274
|
+
displayName: string;
|
|
275
|
+
};
|
|
276
|
+
Next: {
|
|
277
|
+
({ ...props }: PaginationNextProps): import("react").JSX.Element;
|
|
278
|
+
displayName: string;
|
|
279
|
+
};
|
|
280
|
+
Ellipsis: import("react").ForwardRefExoticComponent<PaginationEllipsisProps & import("react").RefAttributes<View>>;
|
|
281
|
+
Summary: import("react").ForwardRefExoticComponent<PaginationSummaryProps & import("react").RefAttributes<import("react-native").Text>>;
|
|
282
|
+
Status: import("react").ForwardRefExoticComponent<PaginationStatusProps & import("react").RefAttributes<import("react-native").Text>>;
|
|
283
|
+
};
|
|
284
|
+
export {};
|
|
285
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/pagination/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,wCAAqC,CAAC;AAC7C,OAAO,EAAQ,KAAK,SAAS,EAAgB,MAAM,0BAAuB,CAAC;AAI3E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC;AAU9C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;IA6BpB,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA/C,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA/C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B;;;;;;CAmIvD,CAAC"}
|
|
@@ -81,6 +81,8 @@ import { type PressableProps, type ScrollViewProps, type TextInputProps, type Vi
|
|
|
81
81
|
import { type SharedValue } from 'react-native-reanimated';
|
|
82
82
|
export type PanelsideMode = 'push' | 'overlay';
|
|
83
83
|
export type PanelsideSwipeFrom = 'anywhere' | 'edge';
|
|
84
|
+
export type PanelsideItemSize = 'default' | 'sm';
|
|
85
|
+
export type PanelsideCtaSize = 'default' | 'lg';
|
|
84
86
|
export interface UsePanelsideResult {
|
|
85
87
|
open: boolean;
|
|
86
88
|
setOpen: (open: boolean) => void;
|
|
@@ -160,9 +162,29 @@ export interface PanelsideProps {
|
|
|
160
162
|
* Default true.
|
|
161
163
|
*/
|
|
162
164
|
dismissible?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* A tick under the finger when a swipe commits to opening or closing. Off by
|
|
167
|
+
* default — needs the optional `expo-haptics`, and is silent without it.
|
|
168
|
+
*
|
|
169
|
+
* It fires on the commit rather than during the drag: the panel following
|
|
170
|
+
* your thumb is already the feedback for the drag, and a tick per frame is
|
|
171
|
+
* what makes a gesture feel broken rather than responsive.
|
|
172
|
+
*/
|
|
173
|
+
haptics?: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* How far the scene shrinks at full open, as a scale factor. Sets the
|
|
176
|
+
* default for every `Panelside.Scene` underneath; the scene's own prop still
|
|
177
|
+
* wins. Here so the three numbers that describe the curve can be set once
|
|
178
|
+
* where the panel is configured, rather than on a part further down.
|
|
179
|
+
*/
|
|
180
|
+
scale?: number;
|
|
181
|
+
/** The corner radius the scene reaches at full open, in points. */
|
|
182
|
+
radius?: number;
|
|
183
|
+
/** How far the scene is dimmed at full open, 0 to 1. */
|
|
184
|
+
dim?: number;
|
|
163
185
|
className?: string;
|
|
164
186
|
}
|
|
165
|
-
declare function PanelsideRoot({ children, open: controlledOpen, onOpenChange, defaultOpen, mode, width: widthProp, dock, swipeEnabled, swipeFrom, edgeWidth, dismissible, className, }: PanelsideProps): import("react").JSX.Element;
|
|
187
|
+
declare function PanelsideRoot({ children, open: controlledOpen, onOpenChange, defaultOpen, mode, width: widthProp, dock, swipeEnabled, swipeFrom, edgeWidth, dismissible, haptics, scale, radius, dim, className, }: PanelsideProps): import("react").JSX.Element;
|
|
166
188
|
export interface PanelsidePanelProps extends ViewProps {
|
|
167
189
|
className?: string;
|
|
168
190
|
children?: ReactNode;
|
|
@@ -239,10 +261,16 @@ export interface PanelsideItemProps extends Omit<PressableProps, 'children'> {
|
|
|
239
261
|
*/
|
|
240
262
|
badge?: ReactNode;
|
|
241
263
|
disabled?: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Row density. `sm` tightens the padding for a panel that has to show more
|
|
266
|
+
* history at once, without touching the type size — a list you can read is
|
|
267
|
+
* worth more than two extra rows.
|
|
268
|
+
*/
|
|
269
|
+
size?: PanelsideItemSize;
|
|
242
270
|
/** Trailing content — usually a `Panelside.Action`. */
|
|
243
271
|
children?: ReactNode;
|
|
244
272
|
}
|
|
245
|
-
declare function PanelsideItem({ className, icon, label, active, badge, disabled, children, ...props }: PanelsideItemProps): import("react").JSX.Element;
|
|
273
|
+
declare function PanelsideItem({ className, icon, label, active, badge, disabled, size, children, ...props }: PanelsideItemProps): import("react").JSX.Element;
|
|
246
274
|
declare namespace PanelsideItem {
|
|
247
275
|
var displayName: string;
|
|
248
276
|
}
|
|
@@ -282,6 +310,15 @@ export interface PanelsideCtaProps extends Omit<PressableProps, 'children'> {
|
|
|
282
310
|
icon?: ReactNode;
|
|
283
311
|
/** `primary` is the filled accent pill; `secondary` is the quiet one. */
|
|
284
312
|
variant?: 'primary' | 'secondary';
|
|
313
|
+
/**
|
|
314
|
+
* How tall the pill is. `default` is 40pt, which sits level with the account
|
|
315
|
+
* button beside it in the footer; `lg` is the 48pt pill, for a panel where
|
|
316
|
+
* the call to action is the only thing in the row.
|
|
317
|
+
*
|
|
318
|
+
* Ignored under `native` — the platform sizes its own button, and asks for a
|
|
319
|
+
* control size rather than a height.
|
|
320
|
+
*/
|
|
321
|
+
size?: PanelsideCtaSize;
|
|
285
322
|
/**
|
|
286
323
|
* Render the platform's own button instead of the pill. Requires the
|
|
287
324
|
* optional `@expo/ui` package; without it this prop does nothing.
|
|
@@ -297,7 +334,7 @@ export interface PanelsideCtaProps extends Omit<PressableProps, 'children'> {
|
|
|
297
334
|
glass?: boolean;
|
|
298
335
|
children?: ReactNode;
|
|
299
336
|
}
|
|
300
|
-
declare function PanelsideCta({ className, label, icon, variant, native, glass, disabled, children, ...props }: PanelsideCtaProps): import("react").JSX.Element;
|
|
337
|
+
declare function PanelsideCta({ className, label, icon, variant, size, native, glass, disabled, children, ...props }: PanelsideCtaProps): import("react").JSX.Element;
|
|
301
338
|
declare namespace PanelsideCta {
|
|
302
339
|
var displayName: string;
|
|
303
340
|
}
|
|
@@ -308,15 +345,24 @@ export interface PanelsideSceneProps extends ViewProps {
|
|
|
308
345
|
* full height and stays behind the status bar, and the radius and dim do the
|
|
309
346
|
* work. Below one it shrinks about its centre, which insets it top and bottom
|
|
310
347
|
* as well as at the side.
|
|
348
|
+
*
|
|
349
|
+
* Falls back to the same prop on the `Panelside` root, so the three numbers
|
|
350
|
+
* that describe the curve can be set once where the panel is configured.
|
|
311
351
|
*/
|
|
312
352
|
scale?: number;
|
|
313
353
|
/** The corner radius the scene reaches at full travel. Default 44. */
|
|
314
354
|
radius?: number;
|
|
315
355
|
/** How far the scene dims at full travel, 0 to 1. Default 0.45. */
|
|
316
356
|
dim?: number;
|
|
357
|
+
/**
|
|
358
|
+
* Styles the layer that dims the scene. Its opacity is `dim`'s to set, so
|
|
359
|
+
* this is for the colour — a scrim that is not black, for a light theme
|
|
360
|
+
* where black at 45% reads as a hole rather than as shade.
|
|
361
|
+
*/
|
|
362
|
+
scrimClassName?: string;
|
|
317
363
|
children?: ReactNode;
|
|
318
364
|
}
|
|
319
|
-
declare function PanelsideScene({ className, scale, radius, dim, children, style, ...props }: PanelsideSceneProps): import("react").JSX.Element;
|
|
365
|
+
declare function PanelsideScene({ className, scale: scaleProp, radius: radiusProp, dim: dimProp, scrimClassName, children, style, ...props }: PanelsideSceneProps): import("react").JSX.Element;
|
|
320
366
|
declare namespace PanelsideScene {
|
|
321
367
|
var displayName: string;
|
|
322
368
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/panelside/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,OAAO,EASL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAiB,EAOf,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/panelside/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,OAAO,EASL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAiB,EAOf,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AAqIjC,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,CAAC;AAC/C,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,IAAI,CAAC;AACjD,MAAM,MAAM,gBAA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