panelui-native 0.25.0 → 0.30.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 +18 -1
- package/lib/module/components/accordion/index.js +8 -8
- package/lib/module/components/accordion/index.js.map +1 -1
- package/lib/module/components/alert/index.js +2 -2
- package/lib/module/components/alert/index.js.map +1 -1
- package/lib/module/components/area-chart/index.js +182 -50
- package/lib/module/components/area-chart/index.js.map +1 -1
- package/lib/module/components/attachment/index.js +2 -1
- package/lib/module/components/attachment/index.js.map +1 -1
- package/lib/module/components/avatar/index.js +3 -3
- package/lib/module/components/avatar/index.js.map +1 -1
- package/lib/module/components/badge/index.js +4 -4
- package/lib/module/components/badge/index.js.map +1 -1
- package/lib/module/components/bar-chart/index.js +197 -56
- package/lib/module/components/bar-chart/index.js.map +1 -1
- package/lib/module/components/bottom-sheet/index.js +15 -10
- package/lib/module/components/bottom-sheet/index.js.map +1 -1
- package/lib/module/components/breadcrumb/index.js +6 -6
- package/lib/module/components/breadcrumb/index.js.map +1 -1
- package/lib/module/components/button/index.js +11 -6
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/calendar/index.js +792 -0
- package/lib/module/components/calendar/index.js.map +1 -0
- package/lib/module/components/carousel/index.js +680 -0
- package/lib/module/components/carousel/index.js.map +1 -0
- package/lib/module/components/chip/index.js +4 -4
- package/lib/module/components/chip/index.js.map +1 -1
- package/lib/module/components/code-block/highlight.js +363 -0
- package/lib/module/components/code-block/highlight.js.map +1 -0
- package/lib/module/components/code-block/index.js +313 -0
- package/lib/module/components/code-block/index.js.map +1 -0
- package/lib/module/components/date-picker/index.js +165 -0
- package/lib/module/components/date-picker/index.js.map +1 -0
- package/lib/module/components/dialog/index.js +7 -2
- package/lib/module/components/dialog/index.js.map +1 -1
- package/lib/module/components/direction/index.js +2 -1
- package/lib/module/components/direction/index.js.map +1 -1
- package/lib/module/components/empty-state/index.js +2 -2
- package/lib/module/components/empty-state/index.js.map +1 -1
- package/lib/module/components/field/index.js +5 -5
- package/lib/module/components/field/index.js.map +1 -1
- package/lib/module/components/flow/index.js +3 -3
- package/lib/module/components/flow/index.js.map +1 -1
- package/lib/module/components/frame/index.js +5 -5
- package/lib/module/components/frame/index.js.map +1 -1
- package/lib/module/components/input-group/index.js +3 -2
- package/lib/module/components/input-group/index.js.map +1 -1
- package/lib/module/components/item/index.js +9 -9
- package/lib/module/components/item/index.js.map +1 -1
- package/lib/module/components/label/index.js +4 -4
- package/lib/module/components/label/index.js.map +1 -1
- package/lib/module/components/line-chart/index.js +167 -44
- package/lib/module/components/line-chart/index.js.map +1 -1
- package/lib/module/components/map/index.js +7 -7
- package/lib/module/components/map/index.js.map +1 -1
- package/lib/module/components/marker/index.js +3 -3
- package/lib/module/components/marker/index.js.map +1 -1
- package/lib/module/components/menu/index.js +714 -0
- package/lib/module/components/menu/index.js.map +1 -0
- package/lib/module/components/message/index.js +7 -7
- package/lib/module/components/message/index.js.map +1 -1
- package/lib/module/components/message-scroller/index.js +5 -4
- package/lib/module/components/message-scroller/index.js.map +1 -1
- package/lib/module/components/plan/index.js +296 -0
- package/lib/module/components/plan/index.js.map +1 -0
- package/lib/module/components/popover/index.js +73 -10
- package/lib/module/components/popover/index.js.map +1 -1
- package/lib/module/components/radio-group/index.js +15 -10
- package/lib/module/components/radio-group/index.js.map +1 -1
- package/lib/module/components/reasoning/index.js +244 -0
- package/lib/module/components/reasoning/index.js.map +1 -0
- package/lib/module/components/section-rail/index.js +4 -4
- package/lib/module/components/section-rail/index.js.map +1 -1
- package/lib/module/components/select/index.js +10 -4
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/components/sources/index.js +221 -0
- package/lib/module/components/sources/index.js.map +1 -0
- package/lib/module/components/steps/index.js +4 -4
- package/lib/module/components/steps/index.js.map +1 -1
- package/lib/module/components/tabs/index.js +7 -7
- package/lib/module/components/tabs/index.js.map +1 -1
- package/lib/module/components/task/index.js +300 -0
- package/lib/module/components/task/index.js.map +1 -0
- package/lib/module/components/textarea/index.js +295 -0
- package/lib/module/components/textarea/index.js.map +1 -0
- package/lib/module/components/timeline/index.js +4 -4
- package/lib/module/components/timeline/index.js.map +1 -1
- package/lib/module/components/toast/index.js +2 -2
- package/lib/module/components/toast/index.js.map +1 -1
- package/lib/module/components/toggle-button/index.js +5 -5
- package/lib/module/components/toggle-button/index.js.map +1 -1
- package/lib/module/components/tooltip/index.js +648 -0
- package/lib/module/components/tooltip/index.js.map +1 -0
- package/lib/module/components/typography/index.js +2 -2
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/hooks/index.js +1 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/use-back-handler.js +37 -0
- package/lib/module/hooks/use-back-handler.js.map +1 -0
- package/lib/module/icons/index.js +202 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +13 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/primitives/collapse.js +112 -0
- package/lib/module/primitives/collapse.js.map +1 -0
- package/lib/module/primitives/keyboard-avoider.js +2 -1
- package/lib/module/primitives/keyboard-avoider.js.map +1 -1
- package/lib/module/primitives/text.js +25 -1
- package/lib/module/primitives/text.js.map +1 -1
- package/lib/module/utils/date.js +386 -0
- package/lib/module/utils/date.js.map +1 -0
- package/lib/typescript/src/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
- package/lib/typescript/src/components/area-chart/index.d.ts +41 -1
- package/lib/typescript/src/components/area-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/attachment/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bar-chart/index.d.ts +44 -2
- package/lib/typescript/src/components/bar-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/breadcrumb/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/calendar/index.d.ts +173 -0
- package/lib/typescript/src/components/calendar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/carousel/index.d.ts +179 -0
- package/lib/typescript/src/components/carousel/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -1
- package/lib/typescript/src/components/code-block/highlight.d.ts +39 -0
- package/lib/typescript/src/components/code-block/highlight.d.ts.map +1 -0
- package/lib/typescript/src/components/code-block/index.d.ts +113 -0
- package/lib/typescript/src/components/code-block/index.d.ts.map +1 -0
- package/lib/typescript/src/components/date-picker/index.d.ts +97 -0
- package/lib/typescript/src/components/date-picker/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/components/direction/index.d.ts.map +1 -1
- package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -1
- package/lib/typescript/src/components/field/index.d.ts.map +1 -1
- package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
- package/lib/typescript/src/components/input-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/item/index.d.ts.map +1 -1
- package/lib/typescript/src/components/label/index.d.ts.map +1 -1
- package/lib/typescript/src/components/line-chart/index.d.ts +41 -2
- package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -1
- package/lib/typescript/src/components/map/index.d.ts.map +1 -1
- package/lib/typescript/src/components/marker/index.d.ts.map +1 -1
- package/lib/typescript/src/components/menu/index.d.ts +261 -0
- package/lib/typescript/src/components/menu/index.d.ts.map +1 -0
- package/lib/typescript/src/components/message/index.d.ts.map +1 -1
- package/lib/typescript/src/components/message-scroller/index.d.ts.map +1 -1
- package/lib/typescript/src/components/plan/index.d.ts +127 -0
- package/lib/typescript/src/components/plan/index.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/index.d.ts +35 -1
- package/lib/typescript/src/components/popover/index.d.ts.map +1 -1
- package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/reasoning/index.d.ts +97 -0
- package/lib/typescript/src/components/reasoning/index.d.ts.map +1 -0
- package/lib/typescript/src/components/select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/sources/index.d.ts +85 -0
- package/lib/typescript/src/components/sources/index.d.ts.map +1 -0
- package/lib/typescript/src/components/steps/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
- package/lib/typescript/src/components/task/index.d.ts +103 -0
- package/lib/typescript/src/components/task/index.d.ts.map +1 -0
- package/lib/typescript/src/components/textarea/index.d.ts +175 -0
- package/lib/typescript/src/components/textarea/index.d.ts.map +1 -0
- package/lib/typescript/src/components/timeline/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toggle-button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/tooltip/index.d.ts +180 -0
- package/lib/typescript/src/components/tooltip/index.d.ts.map +1 -0
- package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/index.d.ts +1 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-back-handler.d.ts +19 -0
- package/lib/typescript/src/hooks/use-back-handler.d.ts.map +1 -0
- package/lib/typescript/src/icons/index.d.ts +17 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +16 -4
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/primitives/collapse.d.ts +42 -0
- package/lib/typescript/src/primitives/collapse.d.ts.map +1 -0
- package/lib/typescript/src/primitives/keyboard-avoider.d.ts.map +1 -1
- package/lib/typescript/src/primitives/text.d.ts +20 -0
- package/lib/typescript/src/primitives/text.d.ts.map +1 -1
- package/lib/typescript/src/utils/date.d.ts +116 -0
- package/lib/typescript/src/utils/date.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/accordion/index.tsx +8 -12
- package/src/components/alert/index.tsx +2 -2
- package/src/components/area-chart/index.tsx +208 -55
- package/src/components/attachment/index.tsx +2 -2
- package/src/components/avatar/index.tsx +3 -3
- package/src/components/badge/index.tsx +6 -6
- package/src/components/bar-chart/index.tsx +214 -54
- package/src/components/bottom-sheet/index.tsx +17 -16
- package/src/components/breadcrumb/index.tsx +6 -8
- package/src/components/button/index.tsx +12 -8
- package/src/components/calendar/index.tsx +970 -0
- package/src/components/carousel/index.tsx +788 -0
- package/src/components/chip/index.tsx +4 -6
- package/src/components/code-block/highlight.ts +278 -0
- package/src/components/code-block/index.tsx +341 -0
- package/src/components/date-picker/index.tsx +255 -0
- package/src/components/dialog/index.tsx +7 -2
- package/src/components/direction/index.tsx +2 -1
- package/src/components/empty-state/index.tsx +2 -2
- package/src/components/field/index.tsx +3 -5
- package/src/components/flow/index.tsx +3 -3
- package/src/components/frame/index.tsx +5 -7
- package/src/components/input-group/index.tsx +3 -2
- package/src/components/item/index.tsx +9 -9
- package/src/components/label/index.tsx +2 -2
- package/src/components/line-chart/index.tsx +189 -50
- package/src/components/map/index.tsx +7 -9
- package/src/components/marker/index.tsx +3 -3
- package/src/components/menu/index.tsx +812 -0
- package/src/components/message/index.tsx +7 -7
- package/src/components/message-scroller/index.tsx +5 -4
- package/src/components/plan/index.tsx +325 -0
- package/src/components/popover/index.tsx +111 -8
- package/src/components/radio-group/index.tsx +13 -4
- package/src/components/reasoning/index.tsx +297 -0
- package/src/components/section-rail/index.tsx +4 -4
- package/src/components/select/index.tsx +10 -4
- package/src/components/sources/index.tsx +278 -0
- package/src/components/steps/index.tsx +4 -4
- package/src/components/tabs/index.tsx +7 -9
- package/src/components/task/index.tsx +329 -0
- package/src/components/textarea/index.tsx +381 -0
- package/src/components/timeline/index.tsx +4 -4
- package/src/components/toast/index.tsx +2 -2
- package/src/components/toggle-button/index.tsx +5 -7
- package/src/components/tooltip/index.tsx +793 -0
- package/src/components/typography/index.tsx +2 -2
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-back-handler.ts +37 -0
- package/src/icons/index.tsx +147 -0
- package/src/index.ts +116 -0
- package/src/primitives/collapse.tsx +128 -0
- package/src/primitives/keyboard-avoider.tsx +2 -1
- package/src/primitives/text.tsx +28 -1
- package/src/utils/date.ts +446 -0
- package/theme.css +112 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sources — where an answer came from, folded under a count.
|
|
3
|
+
*
|
|
4
|
+
* A cited answer usually cites more places than anyone wants listed above it,
|
|
5
|
+
* so the list opens from a single line: "Used 6 sources". Folded is the resting
|
|
6
|
+
* state, unlike `Reasoning`, because a citation list is a thing you go and
|
|
7
|
+
* check rather than a thing you watch arrive.
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Sources>
|
|
11
|
+
* <Sources.Trigger count={sources.length} />
|
|
12
|
+
* <Sources.Content>
|
|
13
|
+
* {sources.map((source) => (
|
|
14
|
+
* <Sources.Source key={source.url} href={source.url} title={source.title} />
|
|
15
|
+
* ))}
|
|
16
|
+
* </Sources.Content>
|
|
17
|
+
* </Sources>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Where the props come from
|
|
21
|
+
*
|
|
22
|
+
* With the AI SDK these are the `source-url` parts of an assistant message:
|
|
23
|
+
* `part.url` is the `href` and `part.title` the `title`. A part carries no
|
|
24
|
+
* title of its own when the model did not supply one, in which case the host
|
|
25
|
+
* of the URL is a better label than the whole of it.
|
|
26
|
+
*/
|
|
27
|
+
import { type ReactNode } from 'react';
|
|
28
|
+
import { type PressableProps, type ViewProps } from 'react-native';
|
|
29
|
+
export interface SourcesProps extends Omit<ViewProps, 'children'> {
|
|
30
|
+
className?: string;
|
|
31
|
+
/** Controlled open state. */
|
|
32
|
+
open?: boolean;
|
|
33
|
+
/** Initial state when uncontrolled. Folded, which is where a citation list belongs. */
|
|
34
|
+
defaultOpen?: boolean;
|
|
35
|
+
onOpenChange?: (open: boolean) => void;
|
|
36
|
+
children?: ReactNode;
|
|
37
|
+
}
|
|
38
|
+
declare function SourcesRoot({ className, open: openProp, defaultOpen, onOpenChange, children, ...props }: SourcesProps): import("react").JSX.Element;
|
|
39
|
+
declare namespace SourcesRoot {
|
|
40
|
+
var displayName: string;
|
|
41
|
+
}
|
|
42
|
+
export interface SourcesTriggerProps extends Omit<PressableProps, 'children' | 'style'> {
|
|
43
|
+
className?: string;
|
|
44
|
+
/** How many sources the list holds. Reads "Used 6 sources". */
|
|
45
|
+
count?: number;
|
|
46
|
+
/** Replaces the whole row. */
|
|
47
|
+
children?: ReactNode;
|
|
48
|
+
}
|
|
49
|
+
declare function SourcesTrigger({ className, count, children, onPress, ...props }: SourcesTriggerProps): import("react").JSX.Element;
|
|
50
|
+
declare namespace SourcesTrigger {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
53
|
+
export interface SourcesContentProps extends Omit<ViewProps, 'children'> {
|
|
54
|
+
className?: string;
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
}
|
|
57
|
+
declare function SourcesContent({ className, children, ...props }: SourcesContentProps): import("react").JSX.Element;
|
|
58
|
+
declare namespace SourcesContent {
|
|
59
|
+
var displayName: string;
|
|
60
|
+
}
|
|
61
|
+
export interface SourcesSourceProps extends Omit<PressableProps, 'children' | 'style'> {
|
|
62
|
+
className?: string;
|
|
63
|
+
/** Where the row goes. Opened with the platform's own handler. */
|
|
64
|
+
href?: string;
|
|
65
|
+
/**
|
|
66
|
+
* What the row says. Falls back to the URL's host, which is a better label
|
|
67
|
+
* than a hundred characters of path — and models often send no title at all.
|
|
68
|
+
*/
|
|
69
|
+
title?: string;
|
|
70
|
+
/** Leading glyph. A link by default; a favicon suits a real citation list. */
|
|
71
|
+
icon?: ReactNode;
|
|
72
|
+
children?: ReactNode;
|
|
73
|
+
}
|
|
74
|
+
/** One citation. */
|
|
75
|
+
declare function SourcesSource({ className, href, title, icon, children, onPress, ...props }: SourcesSourceProps): import("react").JSX.Element;
|
|
76
|
+
declare namespace SourcesSource {
|
|
77
|
+
var displayName: string;
|
|
78
|
+
}
|
|
79
|
+
export declare const Sources: typeof SourcesRoot & {
|
|
80
|
+
Trigger: typeof SourcesTrigger;
|
|
81
|
+
Content: typeof SourcesContent;
|
|
82
|
+
Source: typeof SourcesSource;
|
|
83
|
+
};
|
|
84
|
+
export {};
|
|
85
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/sources/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAwCtB,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uFAAuF;IACvF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,IAAI,EAAE,QAAQ,EACd,WAAmB,EACnB,YAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,YAAY,+BAuBd;kBA9BQ,WAAW;;;AAiCpB,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,mBAAmB,+BAyCrB;kBA/CQ,cAAc;;;AAiDvB,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAS7E;kBATQ,cAAc;;;AAWvB,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8EAA8E;IAC9E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,oBAAoB;AACpB,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAgCpB;kBAxCQ,aAAa;;;AA2DtB,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/steps/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAa,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpF,OAAO,EAAQ,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/steps/index.tsx"],"names":[],"mappings":"AAAA;;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AC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAkB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BA2CrF;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,KAAK,EACL,IAAI,EACJ,KAAK,EACL,QAAgB,EAChB,QAAQ,GACT,EAAE,gBAAgB,+BAoClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,sCA4BrF;AAED,eAAO,MAAM,IAAI;;;;CAIf,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task — one step an agent took, and what it did while it was there.
|
|
3
|
+
*
|
|
4
|
+
* The header is the step; the body is the detail nobody reads unless something
|
|
5
|
+
* went wrong. Open by default, because a task that is running is the thing the
|
|
6
|
+
* reader is watching — and it stays open afterwards rather than folding itself
|
|
7
|
+
* away, because unlike a reasoning trace the steps are the record of what
|
|
8
|
+
* happened and are worth scrolling back through.
|
|
9
|
+
*
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Task status="running">
|
|
12
|
+
* <Task.Trigger title="Searching the codebase" />
|
|
13
|
+
* <Task.Content>
|
|
14
|
+
* <Task.Item>
|
|
15
|
+
* Read <Task.File>calendar/index.tsx</Task.File>
|
|
16
|
+
* </Task.Item>
|
|
17
|
+
* </Task.Content>
|
|
18
|
+
* </Task>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Where the props come from
|
|
22
|
+
*
|
|
23
|
+
* With the AI SDK a task is a tool-call part: `part.type` is `tool-<name>` and
|
|
24
|
+
* `part.state` runs `input-streaming` → `input-available` → `output-available`
|
|
25
|
+
* or `output-error`. Those map onto `status` as pending, running, complete and
|
|
26
|
+
* error; `part.input` is usually what the body should say.
|
|
27
|
+
*/
|
|
28
|
+
import { type ReactNode } from 'react';
|
|
29
|
+
import { type PressableProps, type ViewProps } from 'react-native';
|
|
30
|
+
export type TaskStatus = 'pending' | 'running' | 'complete' | 'error';
|
|
31
|
+
export interface TaskProps extends Omit<ViewProps, 'children'> {
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Where the step has got to. Drives the leading glyph, and puts a shimmer on
|
|
35
|
+
* the title while it is `running`.
|
|
36
|
+
*/
|
|
37
|
+
status?: TaskStatus;
|
|
38
|
+
/** Controlled open state. */
|
|
39
|
+
open?: boolean;
|
|
40
|
+
/** Initial state when uncontrolled. Open — the steps are the record. */
|
|
41
|
+
defaultOpen?: boolean;
|
|
42
|
+
onOpenChange?: (open: boolean) => void;
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
}
|
|
45
|
+
declare function TaskRoot({ className, status, open: openProp, defaultOpen, onOpenChange, children, ...props }: TaskProps): import("react").JSX.Element;
|
|
46
|
+
declare namespace TaskRoot {
|
|
47
|
+
var displayName: string;
|
|
48
|
+
}
|
|
49
|
+
export interface TaskTriggerProps extends Omit<PressableProps, 'children' | 'style'> {
|
|
50
|
+
className?: string;
|
|
51
|
+
/** What the step is. Shimmers while the status is `running`. */
|
|
52
|
+
title?: string;
|
|
53
|
+
/** Leading glyph. Derived from `status` when not given. */
|
|
54
|
+
icon?: ReactNode;
|
|
55
|
+
/** Replaces the whole row. */
|
|
56
|
+
children?: ReactNode;
|
|
57
|
+
}
|
|
58
|
+
declare function TaskTrigger({ className, title, icon, children, onPress, ...props }: TaskTriggerProps): import("react").JSX.Element;
|
|
59
|
+
declare namespace TaskTrigger {
|
|
60
|
+
var displayName: string;
|
|
61
|
+
}
|
|
62
|
+
export interface TaskContentProps extends Omit<ViewProps, 'children'> {
|
|
63
|
+
className?: string;
|
|
64
|
+
children?: ReactNode;
|
|
65
|
+
}
|
|
66
|
+
declare function TaskContent({ className, children, ...props }: TaskContentProps): import("react").JSX.Element;
|
|
67
|
+
declare namespace TaskContent {
|
|
68
|
+
var displayName: string;
|
|
69
|
+
}
|
|
70
|
+
export interface TaskItemProps extends Omit<ViewProps, 'children'> {
|
|
71
|
+
className?: string;
|
|
72
|
+
children?: ReactNode;
|
|
73
|
+
}
|
|
74
|
+
/** One line of what the step did. */
|
|
75
|
+
declare function TaskItem({ className, children, ...props }: TaskItemProps): import("react").JSX.Element;
|
|
76
|
+
declare namespace TaskItem {
|
|
77
|
+
var displayName: string;
|
|
78
|
+
}
|
|
79
|
+
export interface TaskFileProps extends Omit<ViewProps, 'children'> {
|
|
80
|
+
className?: string;
|
|
81
|
+
/** A glyph for the file's kind, drawn before the name. */
|
|
82
|
+
icon?: ReactNode;
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* A filename inside a line, drawn as a chip.
|
|
87
|
+
*
|
|
88
|
+
* Bordered rather than merely monospaced, because a path in the middle of a
|
|
89
|
+
* sentence is otherwise indistinguishable from the sentence — and the paths
|
|
90
|
+
* are the part of a task line anyone actually scans for.
|
|
91
|
+
*/
|
|
92
|
+
declare function TaskFile({ className, icon, children, ...props }: TaskFileProps): import("react").JSX.Element;
|
|
93
|
+
declare namespace TaskFile {
|
|
94
|
+
var displayName: string;
|
|
95
|
+
}
|
|
96
|
+
export declare const Task: typeof TaskRoot & {
|
|
97
|
+
Trigger: typeof TaskTrigger;
|
|
98
|
+
Content: typeof TaskContent;
|
|
99
|
+
Item: typeof TaskItem;
|
|
100
|
+
File: typeof TaskFile;
|
|
101
|
+
};
|
|
102
|
+
export {};
|
|
103
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/task/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAqBpF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AA8CtE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,MAAmB,EACnB,IAAI,EAAE,QAAQ,EACd,WAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,SAAS,+BAuBX;kBA/BQ,QAAQ;;;AAkCjB,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,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;AAkBjB,eAAO,MAAM,IAAI;;;;;CAKf,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { TextInput, type TextInputProps } from 'react-native';
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
+
import type { KeyboardAvoidanceMode } from '../../hooks/use-keyboard-avoidance.js';
|
|
4
|
+
declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
outline: {
|
|
7
|
+
field: string;
|
|
8
|
+
};
|
|
9
|
+
filled: {
|
|
10
|
+
field: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
sm: {
|
|
15
|
+
field: string;
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
field: string;
|
|
19
|
+
};
|
|
20
|
+
lg: {
|
|
21
|
+
field: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
true: {
|
|
26
|
+
field: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/** Past the limit the counter is the error, so it is tinted like one. */
|
|
30
|
+
over: {
|
|
31
|
+
true: {
|
|
32
|
+
count: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
container: string;
|
|
37
|
+
field: string;
|
|
38
|
+
footer: string;
|
|
39
|
+
description: string;
|
|
40
|
+
error: string;
|
|
41
|
+
count: string;
|
|
42
|
+
}, undefined, {
|
|
43
|
+
variant: {
|
|
44
|
+
outline: {
|
|
45
|
+
field: string;
|
|
46
|
+
};
|
|
47
|
+
filled: {
|
|
48
|
+
field: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
size: {
|
|
52
|
+
sm: {
|
|
53
|
+
field: string;
|
|
54
|
+
};
|
|
55
|
+
md: {
|
|
56
|
+
field: string;
|
|
57
|
+
};
|
|
58
|
+
lg: {
|
|
59
|
+
field: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
disabled: {
|
|
63
|
+
true: {
|
|
64
|
+
field: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** Past the limit the counter is the error, so it is tinted like one. */
|
|
68
|
+
over: {
|
|
69
|
+
true: {
|
|
70
|
+
count: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
container: string;
|
|
75
|
+
field: string;
|
|
76
|
+
footer: string;
|
|
77
|
+
description: string;
|
|
78
|
+
error: string;
|
|
79
|
+
count: string;
|
|
80
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
81
|
+
variant: {
|
|
82
|
+
outline: {
|
|
83
|
+
field: string;
|
|
84
|
+
};
|
|
85
|
+
filled: {
|
|
86
|
+
field: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
size: {
|
|
90
|
+
sm: {
|
|
91
|
+
field: string;
|
|
92
|
+
};
|
|
93
|
+
md: {
|
|
94
|
+
field: string;
|
|
95
|
+
};
|
|
96
|
+
lg: {
|
|
97
|
+
field: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
disabled: {
|
|
101
|
+
true: {
|
|
102
|
+
field: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/** Past the limit the counter is the error, so it is tinted like one. */
|
|
106
|
+
over: {
|
|
107
|
+
true: {
|
|
108
|
+
count: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
container: string;
|
|
113
|
+
field: string;
|
|
114
|
+
footer: string;
|
|
115
|
+
description: string;
|
|
116
|
+
error: string;
|
|
117
|
+
count: string;
|
|
118
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
119
|
+
type TextareaVariantProps = VariantProps<typeof textareaVariants>;
|
|
120
|
+
export interface TextareaProps extends Omit<TextInputProps, 'multiline' | 'numberOfLines'>, Omit<TextareaVariantProps, 'disabled' | 'over'> {
|
|
121
|
+
className?: string;
|
|
122
|
+
containerClassName?: string;
|
|
123
|
+
label?: string;
|
|
124
|
+
description?: string;
|
|
125
|
+
/** Error message. When set, the field renders in its invalid state. */
|
|
126
|
+
errorMessage?: string;
|
|
127
|
+
/** Marks the field required — an asterisk on the label, and the a11y state. */
|
|
128
|
+
isRequired?: boolean;
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
/** How many lines of text the field is tall before it scrolls or grows. */
|
|
131
|
+
rows?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Grow with the text, one line at a time, up to `maxRows` — after which the
|
|
134
|
+
* field holds its height and scrolls instead. Without it the field stays at
|
|
135
|
+
* `rows` and scrolls from the first line past it.
|
|
136
|
+
*/
|
|
137
|
+
autoGrow?: boolean;
|
|
138
|
+
/** The tallest `autoGrow` will go. Ignored without it. */
|
|
139
|
+
maxRows?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Show how much of `maxLength` is used, under the field. Needs `maxLength`;
|
|
142
|
+
* a counter with no limit to count towards says nothing.
|
|
143
|
+
*/
|
|
144
|
+
showCount?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Keep the field clear of the software keyboard. Moves by exactly the
|
|
147
|
+
* overlap, and not at all when the field is already clear — or when the
|
|
148
|
+
* keyboard belongs to a different field. The overlap is re-read every frame
|
|
149
|
+
* while the field is focused, so the field keeps its place in the page as it
|
|
150
|
+
* scrolls under and back out of the keyboard.
|
|
151
|
+
*
|
|
152
|
+
* Install `react-native-keyboard-controller` for this to behave on Android.
|
|
153
|
+
*
|
|
154
|
+
* Do not toggle this at runtime — it changes which component renders the
|
|
155
|
+
* container, which would remount the field and drop focus.
|
|
156
|
+
*/
|
|
157
|
+
avoidKeyboard?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* How the field gets clear. `lift` moves it up by its overlap and follows
|
|
160
|
+
* the scroll — right for a field in the flow of a page. `dock` makes it
|
|
161
|
+
* travel with the keyboard, for a composer already pinned near the bottom
|
|
162
|
+
* edge; pair it with `keyboardBottomInset`.
|
|
163
|
+
*/
|
|
164
|
+
keyboardMode?: KeyboardAvoidanceMode;
|
|
165
|
+
/** Gap kept between the field and the keyboard. `keyboardMode="lift"` only. */
|
|
166
|
+
keyboardOffset?: number;
|
|
167
|
+
/**
|
|
168
|
+
* How far above the bottom edge the field already sits — usually the safe
|
|
169
|
+
* area inset. `keyboardMode="dock"` only.
|
|
170
|
+
*/
|
|
171
|
+
keyboardBottomInset?: number;
|
|
172
|
+
}
|
|
173
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<TextInput>>;
|
|
174
|
+
export {};
|
|
175
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/textarea/index.tsx"],"names":[],"mappings":"AAsBA,OAAO,EACL,SAAS,EAIT,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAoC,CAAC;AAsBhF,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;IA8BlB,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAzE,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAzE,yEAAyE;;;;;;;;;;;;;2CAS3E,CAAC;AAEH,KAAK,oBAAoB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAElE,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,eAAe,CAAC,EACzD,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,MAAM,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+EAA+E;IAC/E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID,eAAO,MAAM,QAAQ,qGA0NpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/timeline/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzE,OAAO,EAAQ,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/timeline/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAkBpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAQ,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAkBpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAQ,KAAK,SAAS,EAAgB,MAAM,0BAAuB,CAAC;AAG3E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,oBAAW,CAAC;AACrD,OAAO,EACL,KAAK,EAEL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,kBAAe,CAAC;AAiDvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAuBjB,CAAC;AA4BH,MAAM,WAAW,UAAW,SAAQ,SAAS,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAuBD,MAAM,WAAW,mBAAoB,SAAQ,SA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,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,UAAU,CAAC,EAC3D,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAChE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2EAA2E;IAC3E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AA0GD,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,sBAAsB,+BAczE;kBAdQ,iBAAiB;;;AAiB1B,eAAO,MAAM,YAAY;;CAEvB,CAAC;AAEH,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tooltip — a small label that names the thing under your finger.
|
|
3
|
+
*
|
|
4
|
+
* A popover is a panel you open and deal with; a tooltip is a whisper. It
|
|
5
|
+
* carries a word or two about what a control does, appears without taking the
|
|
6
|
+
* screen, and goes away on its own. That is why it is inverted by default, why
|
|
7
|
+
* it is not dismissible with a scrim, and why it closes after a beat instead of
|
|
8
|
+
* waiting to be told.
|
|
9
|
+
*
|
|
10
|
+
* The inversion is a default rather than a rule, because the whisper has a
|
|
11
|
+
* larger sibling: a tooltip that carries a heading and a sentence stops reading
|
|
12
|
+
* as a different layer and starts reading as a panel with the wrong colours.
|
|
13
|
+
* `variant="surface"` makes it one, and the sizing props — `width`,
|
|
14
|
+
* `minWidth`, `maxHeight`, `scrollable` — are what let it hold that much.
|
|
15
|
+
*
|
|
16
|
+
* On touch there is no hover to open it, so the gesture is a long press by
|
|
17
|
+
* default — the platform's own "tell me more" gesture — with `openOn="press"`
|
|
18
|
+
* for the cases where a tap should reveal it instead.
|
|
19
|
+
*
|
|
20
|
+
* ```tsx
|
|
21
|
+
* <Tooltip label="Copy link">
|
|
22
|
+
* <Tooltip.Trigger>
|
|
23
|
+
* <IconButton icon={<LinkIcon />} />
|
|
24
|
+
* </Tooltip.Trigger>
|
|
25
|
+
* <Tooltip.Content>
|
|
26
|
+
* <Tooltip.Arrow />
|
|
27
|
+
* Copy link
|
|
28
|
+
* </Tooltip.Content>
|
|
29
|
+
* </Tooltip>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* Placement is a preference, not a promise: the trigger is measured when it is
|
|
33
|
+
* pressed, the label measures itself on its first layout, and the two are
|
|
34
|
+
* reconciled against the safe area — so `placement="top"` means *above, if
|
|
35
|
+
* above fits*, and a trigger near the top edge shows its tooltip below instead.
|
|
36
|
+
*/
|
|
37
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
38
|
+
import { type ViewProps } from 'react-native';
|
|
39
|
+
import { type TextProps } from '../../primitives/text.js';
|
|
40
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
41
|
+
export type TooltipAlign = 'start' | 'center' | 'end';
|
|
42
|
+
export type TooltipVariant = 'inverted' | 'surface';
|
|
43
|
+
export type TooltipOpenOn = 'longPress' | 'press';
|
|
44
|
+
export interface TooltipProps {
|
|
45
|
+
children: ReactNode;
|
|
46
|
+
/** Controlled open state. */
|
|
47
|
+
open?: boolean;
|
|
48
|
+
onOpenChange?: (open: boolean) => void;
|
|
49
|
+
/** Initial state when uncontrolled. */
|
|
50
|
+
defaultOpen?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether a long press or a plain press reveals the label. Long press is the
|
|
53
|
+
* default because it does not steal a tappable control's own press.
|
|
54
|
+
*/
|
|
55
|
+
openOn?: TooltipOpenOn;
|
|
56
|
+
/**
|
|
57
|
+
* How long the label stays up before hiding itself, in milliseconds. `0`
|
|
58
|
+
* keeps it up until it is dismissed by a tap outside or the trigger again.
|
|
59
|
+
*/
|
|
60
|
+
duration?: number;
|
|
61
|
+
/**
|
|
62
|
+
* The label's text, mirrored onto the trigger as its accessibility label so
|
|
63
|
+
* a screen reader announces what the tooltip says without opening it. Set it
|
|
64
|
+
* whenever the trigger has no text of its own — an icon-only button.
|
|
65
|
+
*/
|
|
66
|
+
label?: string;
|
|
67
|
+
}
|
|
68
|
+
declare function TooltipRoot({ children, open, onOpenChange, defaultOpen, openOn, duration, label, }: TooltipProps): import("react").JSX.Element;
|
|
69
|
+
export interface TooltipTriggerProps {
|
|
70
|
+
/**
|
|
71
|
+
* Classes on the wrapper the child is measured through. It shrinks to the
|
|
72
|
+
* child by default; widen it only if the label should be anchored to
|
|
73
|
+
* something bigger than the control.
|
|
74
|
+
*/
|
|
75
|
+
className?: string;
|
|
76
|
+
children: ReactElement<{
|
|
77
|
+
onPress?: (...args: unknown[]) => void;
|
|
78
|
+
onLongPress?: (...args: unknown[]) => void;
|
|
79
|
+
accessibilityLabel?: string;
|
|
80
|
+
accessibilityHint?: string;
|
|
81
|
+
}>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Wraps its child and reveals the label on it — a long press by default, a
|
|
85
|
+
* press when the root asks for one. It is also what gets measured, so the
|
|
86
|
+
* label knows where to sit.
|
|
87
|
+
*
|
|
88
|
+
* The child is wrapped in a view rather than handed a ref: the ref has to
|
|
89
|
+
* survive whatever the child is — a button, a plain Pressable, an icon — and
|
|
90
|
+
* only a wrapper we own is guaranteed to be measurable.
|
|
91
|
+
*
|
|
92
|
+
* That wrapper shrinks to its child on purpose. A view stretches to its parent
|
|
93
|
+
* by default, and a wrapper that filled the row would be measured as the whole
|
|
94
|
+
* row — putting a centred label over the middle of the screen rather than over
|
|
95
|
+
* the control it names.
|
|
96
|
+
*/
|
|
97
|
+
declare function TooltipTrigger({ className, children }: TooltipTriggerProps): import("react").JSX.Element;
|
|
98
|
+
export interface TooltipContentProps extends ViewProps {
|
|
99
|
+
className?: string;
|
|
100
|
+
/** Preferred side of the trigger. Flipped when that side does not fit. */
|
|
101
|
+
placement?: TooltipPlacement;
|
|
102
|
+
/** Where the label sits along the trigger's other axis. */
|
|
103
|
+
align?: TooltipAlign;
|
|
104
|
+
/** Gap between the trigger and the label, in pixels. */
|
|
105
|
+
offset?: number;
|
|
106
|
+
/** Nudge along the alignment axis, in pixels. */
|
|
107
|
+
alignOffset?: number;
|
|
108
|
+
/**
|
|
109
|
+
* Which set of colours the panel, its arrow and its text draw from.
|
|
110
|
+
*
|
|
111
|
+
* `inverted` is the default and right for a label: a whisper over the page
|
|
112
|
+
* should read as a different layer rather than as another panel of it.
|
|
113
|
+
* `surface` matches the popover — reach for it once the tooltip carries a
|
|
114
|
+
* heading and a sentence, where the inversion stops reading as a whisper.
|
|
115
|
+
*/
|
|
116
|
+
variant?: TooltipVariant;
|
|
117
|
+
/**
|
|
118
|
+
* `content-fit` sizes to the content, `trigger` matches the trigger's width,
|
|
119
|
+
* `full` spans the safe area, and a number is that many pixels. Worth setting
|
|
120
|
+
* for anything longer than a label, which would otherwise run to whatever
|
|
121
|
+
* width the sentence happens to want.
|
|
122
|
+
*/
|
|
123
|
+
width?: number | 'trigger' | 'full' | 'content-fit';
|
|
124
|
+
/** Floor for the panel's width, in pixels. */
|
|
125
|
+
minWidth?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Ceiling for the panel's height, in pixels. Always clamped to the room
|
|
128
|
+
* inside the safe area, which is also the default.
|
|
129
|
+
*/
|
|
130
|
+
maxHeight?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Scroll the body when it is taller than `maxHeight`. Off by default — a
|
|
133
|
+
* label has nothing to scroll, and a scroller around one only adds a bounce.
|
|
134
|
+
*/
|
|
135
|
+
scrollable?: boolean;
|
|
136
|
+
children?: ReactNode;
|
|
137
|
+
}
|
|
138
|
+
declare function TooltipContent({ className, placement, align, offset, alignOffset, variant, width, minWidth, maxHeight, scrollable, children, onLayout: onLayoutProp, style, ...props }: TooltipContentProps): import("react").JSX.Element | null;
|
|
139
|
+
/** The label's default text, coloured to whatever the panel is made of. */
|
|
140
|
+
declare function TooltipText({ className, ...props }: TextProps): import("react").JSX.Element;
|
|
141
|
+
declare namespace TooltipText {
|
|
142
|
+
var displayName: string;
|
|
143
|
+
}
|
|
144
|
+
export interface TooltipTitleProps extends TextProps {
|
|
145
|
+
className?: string;
|
|
146
|
+
}
|
|
147
|
+
/** A heading, for a tooltip carrying more than a label. */
|
|
148
|
+
declare function TooltipTitle({ className, ...props }: TooltipTitleProps): import("react").JSX.Element;
|
|
149
|
+
declare namespace TooltipTitle {
|
|
150
|
+
var displayName: string;
|
|
151
|
+
}
|
|
152
|
+
export interface TooltipDescriptionProps extends TextProps {
|
|
153
|
+
className?: string;
|
|
154
|
+
}
|
|
155
|
+
/** The sentence under a `Tooltip.Title`, in the panel's secondary colour. */
|
|
156
|
+
declare function TooltipDescription({ className, ...props }: TooltipDescriptionProps): import("react").JSX.Element;
|
|
157
|
+
declare namespace TooltipDescription {
|
|
158
|
+
var displayName: string;
|
|
159
|
+
}
|
|
160
|
+
export interface TooltipArrowProps extends ViewProps {
|
|
161
|
+
className?: string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A small square rotated into a diamond, half-buried under the label so only
|
|
165
|
+
* the point shows. It shares the label's fill and points at the trigger's
|
|
166
|
+
* centre, which Content resolves and publishes — so when `align` shifts the
|
|
167
|
+
* label off-centre, or a clamp slides it back on screen, the arrow stays over
|
|
168
|
+
* the trigger rather than over the label's middle.
|
|
169
|
+
*/
|
|
170
|
+
declare function TooltipArrow({ className, style, ...props }: TooltipArrowProps): import("react").JSX.Element | null;
|
|
171
|
+
export declare const Tooltip: typeof TooltipRoot & {
|
|
172
|
+
Trigger: typeof TooltipTrigger;
|
|
173
|
+
Content: typeof TooltipContent;
|
|
174
|
+
Arrow: typeof TooltipArrow;
|
|
175
|
+
Title: typeof TooltipTitle;
|
|
176
|
+
Description: typeof TooltipDescription;
|
|
177
|
+
Text: typeof TooltipText;
|
|
178
|
+
};
|
|
179
|
+
export {};
|
|
180
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tooltip/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAWL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAML,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAYtB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAY7D,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,CAAC;AAgFpD,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,OAAO,CAAC;AAYlD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAA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,OAAO;;;;;;;CAOlB,CAAC"}
|
|
@@ -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,
|
|
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,EAAgB,MAAM,0BAAuB,CAAC;AAG3E,QAAA,MAAM,kBAAkB;;;;;;;;QAUlB,sEAAsE;;;;;QAKtE,uEAAuE;;QAEvE,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAPnE,sEAAsE;;;;;QAKtE,uEAAuE;;QAEvE,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAPnE,sEAAsE;;;;;QAKtE,uEAAuE;;QAEvE,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DA0CvE,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,CACtC,YAAY,CAAC,OAAO,kBAAkB,C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M,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"}
|
|
@@ -5,6 +5,7 @@ export { useKeyboard, type UseKeyboardResult } from './use-keyboard.js';
|
|
|
5
5
|
export { useKeyboardAvoidance, type KeyboardAvoidanceMode, type UseKeyboardAvoidanceOptions, type UseKeyboardAvoidanceResult, } from './use-keyboard-avoidance.js';
|
|
6
6
|
export { useRevealProgress, type UseRevealProgressOptions, type UseRevealProgressResult, } from './use-reveal-progress.js';
|
|
7
7
|
export { useScrollSections, type UseScrollSectionsOptions, type UseScrollSectionsResult, } from './use-scroll-sections.js';
|
|
8
|
+
export { useBackHandler } from './use-back-handler.js';
|
|
8
9
|
export { useDebouncedValue } from './use-debounced-value.js';
|
|
9
10
|
export { usePrevious } from './use-previous.js';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,4BAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EACb,KAA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