panelui-native 0.62.0 → 0.65.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 +5 -0
- package/lib/module/components/area-chart/index.js +14 -4
- package/lib/module/components/area-chart/index.js.map +1 -1
- package/lib/module/components/badge/index.js +1 -1
- package/lib/module/components/badge/index.js.map +1 -1
- package/lib/module/components/bar-chart/index.js +53 -6
- package/lib/module/components/bar-chart/index.js.map +1 -1
- package/lib/module/components/bottom-sheet/index.js +2 -2
- package/lib/module/components/bottom-sheet/index.js.map +1 -1
- package/lib/module/components/button/index.js +19 -9
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/candlestick-chart/index.js +14 -4
- package/lib/module/components/candlestick-chart/index.js.map +1 -1
- package/lib/module/components/card/index.js +26 -1
- package/lib/module/components/card/index.js.map +1 -1
- package/lib/module/components/carousel/index.js +28 -14
- package/lib/module/components/carousel/index.js.map +1 -1
- package/lib/module/components/checkbox/index.js +2 -3
- package/lib/module/components/checkbox/index.js.map +1 -1
- package/lib/module/components/dialog/index.js +51 -5
- package/lib/module/components/dialog/index.js.map +1 -1
- package/lib/module/components/drawer/index.js +2 -2
- package/lib/module/components/drawer/index.js.map +1 -1
- package/lib/module/components/fab/index.js +4 -3
- package/lib/module/components/fab/index.js.map +1 -1
- package/lib/module/components/field/index.js +41 -6
- package/lib/module/components/field/index.js.map +1 -1
- package/lib/module/components/flow/flow-accessibility.js +84 -0
- package/lib/module/components/flow/flow-accessibility.js.map +1 -0
- package/lib/module/components/flow/index.js +100 -39
- package/lib/module/components/flow/index.js.map +1 -1
- package/lib/module/components/form/use-form.js +93 -66
- package/lib/module/components/form/use-form.js.map +1 -1
- package/lib/module/components/heatmap-chart/index.js +2 -2
- package/lib/module/components/heatmap-chart/index.js.map +1 -1
- package/lib/module/components/hex-chart/index.js +4 -4
- package/lib/module/components/hex-chart/index.js.map +1 -1
- package/lib/module/components/kpi/index.js +3 -1
- package/lib/module/components/kpi/index.js.map +1 -1
- package/lib/module/components/line-chart/index.js +17 -7
- package/lib/module/components/line-chart/index.js.map +1 -1
- package/lib/module/components/map/index.js +71 -8
- package/lib/module/components/map/index.js.map +1 -1
- package/lib/module/components/map/map-accessibility.js +20 -0
- package/lib/module/components/map/map-accessibility.js.map +1 -0
- package/lib/module/components/map/maplibre.js.map +1 -1
- package/lib/module/components/menu/index.js +4 -1
- package/lib/module/components/menu/index.js.map +1 -1
- package/lib/module/components/number-input/index.js +1 -23
- package/lib/module/components/number-input/index.js.map +1 -1
- package/lib/module/components/number-input/number-input-math.js +44 -0
- package/lib/module/components/number-input/number-input-math.js.map +1 -0
- package/lib/module/components/pie-chart/index.js +2 -2
- package/lib/module/components/pie-chart/index.js.map +1 -1
- package/lib/module/components/plot/index.js +1329 -0
- package/lib/module/components/plot/index.js.map +1 -0
- package/lib/module/components/polar-area-chart/index.js +2 -2
- package/lib/module/components/polar-area-chart/index.js.map +1 -1
- package/lib/module/components/radar-chart/index.js +14 -4
- package/lib/module/components/radar-chart/index.js.map +1 -1
- package/lib/module/components/radio-group/index.js +1 -2
- package/lib/module/components/radio-group/index.js.map +1 -1
- package/lib/module/components/ring-chart/index.js +2 -2
- package/lib/module/components/ring-chart/index.js.map +1 -1
- package/lib/module/components/section-rail/index.js +120 -15
- package/lib/module/components/section-rail/index.js.map +1 -1
- package/lib/module/components/selection-mode/index.js +129 -18
- package/lib/module/components/selection-mode/index.js.map +1 -1
- package/lib/module/components/sortable/index.js +20 -60
- package/lib/module/components/sortable/index.js.map +1 -1
- package/lib/module/components/sortable/reorder.js +63 -0
- package/lib/module/components/sortable/reorder.js.map +1 -0
- package/lib/module/components/swipe/index.js +4 -4
- package/lib/module/components/swipe/index.js.map +1 -1
- package/lib/module/components/switch/index.js +36 -3
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/time-picker/accessibility.js +21 -0
- package/lib/module/components/time-picker/accessibility.js.map +1 -0
- package/lib/module/components/time-picker/index.js +34 -8
- package/lib/module/components/time-picker/index.js.map +1 -1
- package/lib/module/components/waterfall-chart/index.js +1325 -0
- package/lib/module/components/waterfall-chart/index.js.map +1 -0
- package/lib/module/index.js +8 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/primitives/modal-isolation-store.js +29 -0
- package/lib/module/primitives/modal-isolation-store.js.map +1 -0
- package/lib/module/primitives/portal.js +36 -4
- package/lib/module/primitives/portal.js.map +1 -1
- package/lib/module/providers/panel-ui-provider.js +27 -6
- package/lib/module/providers/panel-ui-provider.js.map +1 -1
- package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/badge/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/candlestick-chart/index.d.ts +6 -3
- package/lib/typescript/src/components/candlestick-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/card/index.d.ts +48 -1
- package/lib/typescript/src/components/card/index.d.ts.map +1 -1
- package/lib/typescript/src/components/carousel/index.d.ts +1 -1
- package/lib/typescript/src/components/carousel/index.d.ts.map +1 -1
- package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -1
- package/lib/typescript/src/components/dialog/index.d.ts +47 -2
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/components/fab/index.d.ts.map +1 -1
- package/lib/typescript/src/components/field/index.d.ts +8 -1
- package/lib/typescript/src/components/field/index.d.ts.map +1 -1
- package/lib/typescript/src/components/flow/flow-accessibility.d.ts +49 -0
- package/lib/typescript/src/components/flow/flow-accessibility.d.ts.map +1 -0
- package/lib/typescript/src/components/flow/index.d.ts +14 -2
- package/lib/typescript/src/components/flow/index.d.ts.map +1 -1
- package/lib/typescript/src/components/form/use-form.d.ts.map +1 -1
- package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/hex-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/kpi/index.d.ts.map +1 -1
- package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/map/index.d.ts +13 -5
- package/lib/typescript/src/components/map/index.d.ts.map +1 -1
- package/lib/typescript/src/components/map/map-accessibility.d.ts +19 -0
- package/lib/typescript/src/components/map/map-accessibility.d.ts.map +1 -0
- package/lib/typescript/src/components/map/maplibre.d.ts +2 -0
- package/lib/typescript/src/components/map/maplibre.d.ts.map +1 -1
- package/lib/typescript/src/components/menu/index.d.ts.map +1 -1
- package/lib/typescript/src/components/number-input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/number-input/number-input-math.d.ts +9 -0
- package/lib/typescript/src/components/number-input/number-input-math.d.ts.map +1 -0
- package/lib/typescript/src/components/plot/index.d.ts +471 -0
- package/lib/typescript/src/components/plot/index.d.ts.map +1 -0
- package/lib/typescript/src/components/radar-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/section-rail/index.d.ts +8 -1
- package/lib/typescript/src/components/section-rail/index.d.ts.map +1 -1
- package/lib/typescript/src/components/selection-mode/index.d.ts +82 -6
- package/lib/typescript/src/components/selection-mode/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sortable/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sortable/reorder.d.ts +14 -0
- package/lib/typescript/src/components/sortable/reorder.d.ts.map +1 -0
- package/lib/typescript/src/components/swipe/index.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/index.d.ts +3 -3
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/time-picker/accessibility.d.ts +10 -0
- package/lib/typescript/src/components/time-picker/accessibility.d.ts.map +1 -0
- package/lib/typescript/src/components/time-picker/index.d.ts.map +1 -1
- package/lib/typescript/src/components/waterfall-chart/index.d.ts +379 -0
- package/lib/typescript/src/components/waterfall-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +4 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/primitives/modal-isolation-store.d.ts +10 -0
- package/lib/typescript/src/primitives/modal-isolation-store.d.ts.map +1 -0
- package/lib/typescript/src/primitives/portal.d.ts +6 -0
- package/lib/typescript/src/primitives/portal.d.ts.map +1 -1
- package/lib/typescript/src/providers/panel-ui-provider.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/components/area-chart/index.tsx +14 -4
- package/src/components/badge/index.tsx +4 -1
- package/src/components/bar-chart/index.tsx +54 -7
- package/src/components/bottom-sheet/index.tsx +3 -3
- package/src/components/button/index.tsx +15 -21
- package/src/components/candlestick-chart/index.tsx +20 -7
- package/src/components/card/index.tsx +32 -7
- package/src/components/carousel/index.tsx +42 -20
- package/src/components/checkbox/index.tsx +1 -2
- package/src/components/dialog/index.tsx +58 -5
- package/src/components/drawer/index.tsx +3 -3
- package/src/components/fab/index.tsx +8 -12
- package/src/components/field/index.tsx +52 -10
- package/src/components/flow/flow-accessibility.ts +109 -0
- package/src/components/flow/index.tsx +162 -50
- package/src/components/form/use-form.ts +101 -65
- package/src/components/heatmap-chart/index.tsx +2 -3
- package/src/components/hex-chart/index.tsx +4 -5
- package/src/components/kpi/index.tsx +3 -1
- package/src/components/line-chart/index.tsx +17 -6
- package/src/components/map/index.tsx +110 -7
- package/src/components/map/map-accessibility.ts +41 -0
- package/src/components/map/maplibre.ts +2 -0
- package/src/components/menu/index.tsx +4 -1
- package/src/components/number-input/index.tsx +1 -26
- package/src/components/number-input/number-input-math.ts +50 -0
- package/src/components/pie-chart/index.tsx +2 -2
- package/src/components/plot/index.tsx +1565 -0
- package/src/components/polar-area-chart/index.tsx +2 -2
- package/src/components/radar-chart/index.tsx +14 -4
- package/src/components/radio-group/index.tsx +1 -2
- package/src/components/ring-chart/index.tsx +2 -2
- package/src/components/section-rail/index.tsx +133 -14
- package/src/components/selection-mode/index.tsx +163 -26
- package/src/components/sortable/index.tsx +27 -69
- package/src/components/sortable/reorder.ts +88 -0
- package/src/components/swipe/index.tsx +7 -4
- package/src/components/switch/index.tsx +42 -6
- package/src/components/time-picker/accessibility.ts +24 -0
- package/src/components/time-picker/index.tsx +48 -2
- package/src/components/waterfall-chart/index.tsx +1589 -0
- package/src/index.ts +69 -0
- package/src/primitives/modal-isolation-store.ts +31 -0
- package/src/primitives/portal.tsx +34 -4
- package/src/providers/panel-ui-provider.tsx +41 -9
- package/theme.css +54 -3
|
@@ -64,6 +64,20 @@ declare const selectionVariants: import("tailwind-variants").TVReturnType<{
|
|
|
64
64
|
ring: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* The action laid out along its label instead of above it.
|
|
69
|
+
*
|
|
70
|
+
* A screen's bar carries three or four actions side by side, so each one is
|
|
71
|
+
* a narrow column and the label belongs under the glyph. A sheet's footer
|
|
72
|
+
* usually carries one, full width — stacked there it is a tall block that
|
|
73
|
+
* costs the list a row of its own for no gain.
|
|
74
|
+
*/
|
|
75
|
+
compact: {
|
|
76
|
+
true: {
|
|
77
|
+
action: string;
|
|
78
|
+
actionLabel: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
67
81
|
destructive: {
|
|
68
82
|
true: {
|
|
69
83
|
actionLabel: string;
|
|
@@ -101,6 +115,7 @@ declare const selectionVariants: import("tailwind-variants").TVReturnType<{
|
|
|
101
115
|
bar: string;
|
|
102
116
|
action: string;
|
|
103
117
|
actionLabel: string;
|
|
118
|
+
groupLabel: string;
|
|
104
119
|
}, undefined, {
|
|
105
120
|
selected: {
|
|
106
121
|
true: {
|
|
@@ -108,6 +123,20 @@ declare const selectionVariants: import("tailwind-variants").TVReturnType<{
|
|
|
108
123
|
ring: string;
|
|
109
124
|
};
|
|
110
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* The action laid out along its label instead of above it.
|
|
128
|
+
*
|
|
129
|
+
* A screen's bar carries three or four actions side by side, so each one is
|
|
130
|
+
* a narrow column and the label belongs under the glyph. A sheet's footer
|
|
131
|
+
* usually carries one, full width — stacked there it is a tall block that
|
|
132
|
+
* costs the list a row of its own for no gain.
|
|
133
|
+
*/
|
|
134
|
+
compact: {
|
|
135
|
+
true: {
|
|
136
|
+
action: string;
|
|
137
|
+
actionLabel: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
111
140
|
destructive: {
|
|
112
141
|
true: {
|
|
113
142
|
actionLabel: string;
|
|
@@ -145,6 +174,7 @@ declare const selectionVariants: import("tailwind-variants").TVReturnType<{
|
|
|
145
174
|
bar: string;
|
|
146
175
|
action: string;
|
|
147
176
|
actionLabel: string;
|
|
177
|
+
groupLabel: string;
|
|
148
178
|
}, import("tailwind-variants").TVReturnType<{
|
|
149
179
|
selected: {
|
|
150
180
|
true: {
|
|
@@ -152,6 +182,20 @@ declare const selectionVariants: import("tailwind-variants").TVReturnType<{
|
|
|
152
182
|
ring: string;
|
|
153
183
|
};
|
|
154
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* The action laid out along its label instead of above it.
|
|
187
|
+
*
|
|
188
|
+
* A screen's bar carries three or four actions side by side, so each one is
|
|
189
|
+
* a narrow column and the label belongs under the glyph. A sheet's footer
|
|
190
|
+
* usually carries one, full width — stacked there it is a tall block that
|
|
191
|
+
* costs the list a row of its own for no gain.
|
|
192
|
+
*/
|
|
193
|
+
compact: {
|
|
194
|
+
true: {
|
|
195
|
+
action: string;
|
|
196
|
+
actionLabel: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
155
199
|
destructive: {
|
|
156
200
|
true: {
|
|
157
201
|
actionLabel: string;
|
|
@@ -189,6 +233,7 @@ declare const selectionVariants: import("tailwind-variants").TVReturnType<{
|
|
|
189
233
|
bar: string;
|
|
190
234
|
action: string;
|
|
191
235
|
actionLabel: string;
|
|
236
|
+
groupLabel: string;
|
|
192
237
|
}, undefined, unknown, unknown, undefined>>;
|
|
193
238
|
type SelectionVariantProps = VariantProps<typeof selectionVariants>;
|
|
194
239
|
interface SelectionModeContextValue {
|
|
@@ -323,11 +368,37 @@ export interface SelectionModeGroupProps extends ViewProps {
|
|
|
323
368
|
* For things recognised by sight rather than read — swatches, thumbnails,
|
|
324
369
|
* slides. A grid of six colours is one glance; the same six as rows is a
|
|
325
370
|
* scroll.
|
|
371
|
+
*
|
|
372
|
+
* Ignored when `horizontal` is set.
|
|
326
373
|
*/
|
|
327
374
|
columns?: number;
|
|
328
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Lay the items out in one row that scrolls sideways.
|
|
377
|
+
*
|
|
378
|
+
* For a strip of small things next to other controls — swatches above a
|
|
379
|
+
* slider, filters above a list. A grid of the same items claims as many rows
|
|
380
|
+
* as it needs and pushes everything below it off the sheet; a strip costs one
|
|
381
|
+
* row whatever the count.
|
|
382
|
+
*
|
|
383
|
+
* Wins over `columns`, which asks for the opposite arrangement.
|
|
384
|
+
*/
|
|
385
|
+
horizontal?: boolean;
|
|
386
|
+
/** How wide each item is in a horizontal strip, in points. */
|
|
387
|
+
itemWidth?: number;
|
|
388
|
+
/** Space between items in a grid or a strip, in points. */
|
|
329
389
|
gap?: number;
|
|
330
|
-
/**
|
|
390
|
+
/**
|
|
391
|
+
* A caption above the items, on the leading edge.
|
|
392
|
+
*
|
|
393
|
+
* Worth setting on anything picked by sight. A strip of colours with nothing
|
|
394
|
+
* in front of it is a row of circles the reader has to work out the purpose
|
|
395
|
+
* of, and a screen reader has nothing at all to announce it by — so this is
|
|
396
|
+
* also the group's accessibility label.
|
|
397
|
+
*/
|
|
398
|
+
label?: string;
|
|
399
|
+
/** Extra classes for that caption. */
|
|
400
|
+
labelClassName?: string;
|
|
401
|
+
/** Hairlines between stacked items. On by default; off in a grid or a strip. */
|
|
331
402
|
separators?: boolean;
|
|
332
403
|
children: ReactNode;
|
|
333
404
|
}
|
|
@@ -341,7 +412,7 @@ export interface SelectionModeGroupProps extends ViewProps {
|
|
|
341
412
|
*
|
|
342
413
|
* Stacked by default, with a rule between each item. Pass `columns` for a grid.
|
|
343
414
|
*/
|
|
344
|
-
declare function SelectionModeGroup({ className, columns, gap, separators, children, style, ...props }: SelectionModeGroupProps): import("react").JSX.Element;
|
|
415
|
+
declare function SelectionModeGroup({ className, columns, horizontal, itemWidth, gap, label, labelClassName, separators, children, style, ...props }: SelectionModeGroupProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
345
416
|
declare namespace SelectionModeGroup {
|
|
346
417
|
var displayName: string;
|
|
347
418
|
}
|
|
@@ -362,7 +433,7 @@ export interface SelectionModeHeaderProps extends ViewProps {
|
|
|
362
433
|
* legible — a list whose rows have quietly changed what a tap does, with no
|
|
363
434
|
* banner saying so, is a list that loses somebody's work.
|
|
364
435
|
*/
|
|
365
|
-
declare function SelectionModeHeader({ className, title, hideSelectAll, children, ...props }: SelectionModeHeaderProps): import("react").JSX.Element
|
|
436
|
+
declare function SelectionModeHeader({ className, title, hideSelectAll, children, ...props }: SelectionModeHeaderProps): import("react").JSX.Element;
|
|
366
437
|
declare namespace SelectionModeHeader {
|
|
367
438
|
var displayName: string;
|
|
368
439
|
}
|
|
@@ -442,10 +513,15 @@ export interface SelectionModeSheetProps {
|
|
|
442
513
|
/**
|
|
443
514
|
* How tall the sheet opens.
|
|
444
515
|
*
|
|
445
|
-
* `
|
|
516
|
+
* `full` by default, and deliberately not `auto`. A sheet that sizes to its
|
|
446
517
|
* content gives its scrolling body no height to fill, and a list inside a box
|
|
447
518
|
* of no height draws nothing — which looks like an empty sheet rather than
|
|
448
|
-
* like a missing style.
|
|
519
|
+
* like a missing style.
|
|
520
|
+
*
|
|
521
|
+
* Full rather than half because a picker spends a header and a footer before
|
|
522
|
+
* it draws a single row. At half a screen that leaves four or five rows for
|
|
523
|
+
* the thing the sheet was opened to do, and the reader scrolls a list that
|
|
524
|
+
* would have fitted. Pass `half` for a sheet of two or three choices.
|
|
449
525
|
*/
|
|
450
526
|
size?: 'auto' | 'half' | 'full';
|
|
451
527
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/selection-mode/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/selection-mode/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAY3E,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwC1D,QAAA,MAAM,iBAAiB;;;;;;;IAkBnB;;;;;;;OAOG;;;;;;;;;;;;;;;;;IAUH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAxBH;;;;;;;OAOG;;;;;;;;;;;;;;;;;IAUH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAxBH;;;;;;;OAOG;;;;;;;;;;;;;;;;;IAUH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;2CASL,CAAC;AAEH,KAAK,qBAAqB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,CAA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;AACH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,KAAgB,EAChB,aAAqB,EACrB,IAAa,EACb,QAAQ,GACT,EAAE,uBAAuB,+BA6DzB;kBAtEQ,kBAAkB;;;AAiF3B,eAAO,MAAM,aAAa;;;;;;;;CAQxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/sortable/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,QAAQ,EAAE,EAYf,KAAK,WAAW,EAEjB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/sortable/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,QAAQ,EAAE,EAYf,KAAK,WAAW,EAEjB,MAAM,yBAAyB,CAAC;AA2DjC,0BAA0B;AAC1B,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAExD,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB;IACrC,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;;;;;;;;;;GAeG;AACH,wB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@@ -0,0 +1,14 @@
|
|
|
1
|
+
type PinnedItems = Readonly<Record<string, boolean>>;
|
|
2
|
+
/**
|
|
3
|
+
* Move one item, then restore pinned items to the slots in `laid`.
|
|
4
|
+
*
|
|
5
|
+
* Restoring after the move lets an item cross a pin instead of turning that
|
|
6
|
+
* slot into a wall. The laid-out order is the source of truth because it is
|
|
7
|
+
* the last arrangement the caller rendered and therefore the one whose pins
|
|
8
|
+
* are known to be in their promised positions.
|
|
9
|
+
*/
|
|
10
|
+
export declare function moveWithPinned(list: readonly string[], laid: readonly string[], pinned: PinnedItems, id: string, from: number, to: number): string[];
|
|
11
|
+
/** Move by one available slot, stepping past pinned slots that would be a no-op. */
|
|
12
|
+
export declare function stepWithPinned(list: readonly string[], laid: readonly string[], pinned: PinnedItems, id: string, from: number, delta: number): string[];
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=reorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder.d.ts","sourceRoot":"","sources":["../../../../../src/components/sortable/reorder.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,MAAM,EAAE,WAAW,EACnB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GACT,MAAM,EAAE,CAiDV;AAED,oFAAoF;AACpF,wBAAgB,cAAc,CAC5B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,MAAM,EAAE,WAAW,EACnB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACZ,MAAM,EAAE,CAWV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/swipe/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAaL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAU5E,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AA0B1D,KAAK,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAEjC,+DAA+D;AAC/D,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,WAAW;IAC1B,wDAAwD;IACxD,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAChC,wBAAwB;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AA2BD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AA2ED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,IAAI;IAAE,QAAQ,EAAE,MAAM,IAAI,CAAA;CAAE,CAIxD;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/swipe/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAaL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC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M,IAAI,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA0FD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA+CD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAgXD,eAAO,MAAM,KAAK;;;;;CAKhB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
1
|
+
import { View, type PressableProps } from 'react-native';
|
|
2
2
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
3
|
declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
size: {
|
|
@@ -61,7 +61,7 @@ declare const switchVariants: import("tailwind-variants").TVReturnType<{
|
|
|
61
61
|
activeTrack: string;
|
|
62
62
|
thumb: string;
|
|
63
63
|
}, undefined, unknown, unknown, undefined>>;
|
|
64
|
-
export interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
64
|
+
export interface SwitchProps extends VariantProps<typeof switchVariants>, Pick<PressableProps, 'accessibilityLabel' | 'accessibilityHint' | 'accessibilityLabelledBy'> {
|
|
65
65
|
className?: string;
|
|
66
66
|
value: boolean;
|
|
67
67
|
onValueChange?: (value: boolean) => void;
|
|
@@ -74,7 +74,7 @@ export interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
|
74
74
|
* `className` and `size` are ignored.
|
|
75
75
|
*/
|
|
76
76
|
native?: boolean;
|
|
77
|
-
/**
|
|
77
|
+
/** Names the control to assistive technology; native mode also draws it. */
|
|
78
78
|
label?: string;
|
|
79
79
|
/**
|
|
80
80
|
* Tick the haptic engine each time the switch is flipped — a toggle you feel
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAOpE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQ1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAkBlB,CAAC;AAiBH,MAAM,WAAW,WACf,SAAQ,YAAY,CAAC,OAAO,cAAc,CAAC,EACzC,IAAI,CAAC,cAAc,EAAE,oBAAoB,GAAG,mBAAmB,GAAG,yBAAyB,CAAC;IAC9F,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,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,8FAoFlB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Resolve a standard adjustable action without wrapping past either bound. */
|
|
2
|
+
export declare function indexForAccessibilityAction(index: number, length: number, actionName: string, disabled?: boolean): number | undefined;
|
|
3
|
+
/** Keep the numeric adjustable range aligned with the values the face offers. */
|
|
4
|
+
export declare function accessibilityValueForIndex(index: number, length: number, text: string): {
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
now: number;
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=accessibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessibility.d.ts","sourceRoot":"","sources":["../../../../../src/components/time-picker/accessibility.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,QAAQ,UAAQ,GACf,MAAM,GAAG,SAAS,CAMpB;AAED,iFAAiF;AACjF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;;EAQrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/time-picker/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAML,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/time-picker/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;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