panelui-native 0.28.1 → 0.32.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.
Files changed (121) hide show
  1. package/README.md +22 -3
  2. package/lib/module/components/calendar/index.js +450 -132
  3. package/lib/module/components/calendar/index.js.map +1 -1
  4. package/lib/module/components/code-block/highlight.js +363 -0
  5. package/lib/module/components/code-block/highlight.js.map +1 -0
  6. package/lib/module/components/code-block/index.js +313 -0
  7. package/lib/module/components/code-block/index.js.map +1 -0
  8. package/lib/module/components/date-picker/index.js +8 -1
  9. package/lib/module/components/date-picker/index.js.map +1 -1
  10. package/lib/module/components/heatmap-chart/index.js +9 -8
  11. package/lib/module/components/heatmap-chart/index.js.map +1 -1
  12. package/lib/module/components/map/index.js +50 -4
  13. package/lib/module/components/map/index.js.map +1 -1
  14. package/lib/module/components/menu/index.js +714 -0
  15. package/lib/module/components/menu/index.js.map +1 -0
  16. package/lib/module/components/plan/index.js +582 -0
  17. package/lib/module/components/plan/index.js.map +1 -0
  18. package/lib/module/components/popover/index.js +35 -4
  19. package/lib/module/components/popover/index.js.map +1 -1
  20. package/lib/module/components/post/index.js +992 -0
  21. package/lib/module/components/post/index.js.map +1 -0
  22. package/lib/module/components/radio-group/index.js +13 -8
  23. package/lib/module/components/radio-group/index.js.map +1 -1
  24. package/lib/module/components/reasoning/index.js +244 -0
  25. package/lib/module/components/reasoning/index.js.map +1 -0
  26. package/lib/module/components/response/index.js +296 -0
  27. package/lib/module/components/response/index.js.map +1 -0
  28. package/lib/module/components/response/markdown.js +463 -0
  29. package/lib/module/components/response/markdown.js.map +1 -0
  30. package/lib/module/components/select/index.js +97 -15
  31. package/lib/module/components/select/index.js.map +1 -1
  32. package/lib/module/components/sources/index.js +221 -0
  33. package/lib/module/components/sources/index.js.map +1 -0
  34. package/lib/module/components/table/index.js +632 -0
  35. package/lib/module/components/table/index.js.map +1 -0
  36. package/lib/module/components/task/index.js +300 -0
  37. package/lib/module/components/task/index.js.map +1 -0
  38. package/lib/module/components/textarea/index.js +295 -0
  39. package/lib/module/components/textarea/index.js.map +1 -0
  40. package/lib/module/components/tooltip/index.js +179 -23
  41. package/lib/module/components/tooltip/index.js.map +1 -1
  42. package/lib/module/icons/index.js +339 -0
  43. package/lib/module/icons/index.js.map +1 -1
  44. package/lib/module/index.js +12 -1
  45. package/lib/module/index.js.map +1 -1
  46. package/lib/module/primitives/collapse.js +112 -0
  47. package/lib/module/primitives/collapse.js.map +1 -0
  48. package/lib/module/utils/date.js +129 -22
  49. package/lib/module/utils/date.js.map +1 -1
  50. package/lib/typescript/src/components/calendar/index.d.ts +79 -5
  51. package/lib/typescript/src/components/calendar/index.d.ts.map +1 -1
  52. package/lib/typescript/src/components/code-block/highlight.d.ts +39 -0
  53. package/lib/typescript/src/components/code-block/highlight.d.ts.map +1 -0
  54. package/lib/typescript/src/components/code-block/index.d.ts +113 -0
  55. package/lib/typescript/src/components/code-block/index.d.ts.map +1 -0
  56. package/lib/typescript/src/components/date-picker/index.d.ts +7 -1
  57. package/lib/typescript/src/components/date-picker/index.d.ts.map +1 -1
  58. package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -1
  59. package/lib/typescript/src/components/map/index.d.ts +8 -1
  60. package/lib/typescript/src/components/map/index.d.ts.map +1 -1
  61. package/lib/typescript/src/components/menu/index.d.ts +261 -0
  62. package/lib/typescript/src/components/menu/index.d.ts.map +1 -0
  63. package/lib/typescript/src/components/plan/index.d.ts +238 -0
  64. package/lib/typescript/src/components/plan/index.d.ts.map +1 -0
  65. package/lib/typescript/src/components/popover/index.d.ts +35 -1
  66. package/lib/typescript/src/components/popover/index.d.ts.map +1 -1
  67. package/lib/typescript/src/components/post/index.d.ts +358 -0
  68. package/lib/typescript/src/components/post/index.d.ts.map +1 -0
  69. package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
  70. package/lib/typescript/src/components/reasoning/index.d.ts +97 -0
  71. package/lib/typescript/src/components/reasoning/index.d.ts.map +1 -0
  72. package/lib/typescript/src/components/response/index.d.ts +91 -0
  73. package/lib/typescript/src/components/response/index.d.ts.map +1 -0
  74. package/lib/typescript/src/components/response/markdown.d.ts +88 -0
  75. package/lib/typescript/src/components/response/markdown.d.ts.map +1 -0
  76. package/lib/typescript/src/components/select/index.d.ts +27 -2
  77. package/lib/typescript/src/components/select/index.d.ts.map +1 -1
  78. package/lib/typescript/src/components/sources/index.d.ts +85 -0
  79. package/lib/typescript/src/components/sources/index.d.ts.map +1 -0
  80. package/lib/typescript/src/components/table/index.d.ts +274 -0
  81. package/lib/typescript/src/components/table/index.d.ts.map +1 -0
  82. package/lib/typescript/src/components/task/index.d.ts +103 -0
  83. package/lib/typescript/src/components/task/index.d.ts.map +1 -0
  84. package/lib/typescript/src/components/textarea/index.d.ts +175 -0
  85. package/lib/typescript/src/components/textarea/index.d.ts.map +1 -0
  86. package/lib/typescript/src/components/tooltip/index.d.ts +63 -8
  87. package/lib/typescript/src/components/tooltip/index.d.ts.map +1 -1
  88. package/lib/typescript/src/icons/index.d.ts +54 -1
  89. package/lib/typescript/src/icons/index.d.ts.map +1 -1
  90. package/lib/typescript/src/index.d.ts +14 -3
  91. package/lib/typescript/src/index.d.ts.map +1 -1
  92. package/lib/typescript/src/primitives/collapse.d.ts +42 -0
  93. package/lib/typescript/src/primitives/collapse.d.ts.map +1 -0
  94. package/lib/typescript/src/utils/date.d.ts +49 -5
  95. package/lib/typescript/src/utils/date.d.ts.map +1 -1
  96. package/package.json +1 -1
  97. package/src/components/calendar/index.tsx +519 -139
  98. package/src/components/code-block/highlight.ts +278 -0
  99. package/src/components/code-block/index.tsx +341 -0
  100. package/src/components/date-picker/index.tsx +19 -1
  101. package/src/components/heatmap-chart/index.tsx +9 -9
  102. package/src/components/map/index.tsx +53 -4
  103. package/src/components/menu/index.tsx +812 -0
  104. package/src/components/plan/index.tsx +648 -0
  105. package/src/components/popover/index.tsx +69 -2
  106. package/src/components/post/index.tsx +1116 -0
  107. package/src/components/radio-group/index.tsx +11 -2
  108. package/src/components/reasoning/index.tsx +297 -0
  109. package/src/components/response/index.tsx +390 -0
  110. package/src/components/response/markdown.ts +489 -0
  111. package/src/components/select/index.tsx +132 -12
  112. package/src/components/sources/index.tsx +278 -0
  113. package/src/components/table/index.tsx +747 -0
  114. package/src/components/task/index.tsx +329 -0
  115. package/src/components/textarea/index.tsx +381 -0
  116. package/src/components/tooltip/index.tsx +203 -20
  117. package/src/icons/index.tsx +264 -1
  118. package/src/index.ts +131 -0
  119. package/src/primitives/collapse.tsx +128 -0
  120. package/src/utils/date.ts +146 -22
  121. package/theme.css +112 -0
@@ -0,0 +1,274 @@
1
+ /**
2
+ * Table — rows and columns that stay lined up.
3
+ *
4
+ * React Native has no table layout: no `<table>`, no column model, nothing that
5
+ * makes the third cell of one row the same width as the third cell of the next.
6
+ * A table here is therefore a stack of flex rows, and the columns exist only
7
+ * because every row divides its width the same way. That is the one rule the
8
+ * component cannot enforce for you — `flex` and `width` on a `Table.Head` and
9
+ * on the `Table.Cell` beneath it have to agree, or the column drifts.
10
+ *
11
+ * Everything else it does own: the hairlines between rows and the missing one
12
+ * under the last, the muted header and footer, the striping, the alignment of a
13
+ * numeric column, and the sort arrow that turns over rather than swapping.
14
+ *
15
+ * ```tsx
16
+ * <Table variant="outline">
17
+ * <Table.Header>
18
+ * <Table.Row>
19
+ * <Table.Head flex={2}>Invoice</Table.Head>
20
+ * <Table.Head align="end" sortDirection="desc" onPress={toggleSort}>
21
+ * Amount
22
+ * </Table.Head>
23
+ * </Table.Row>
24
+ * </Table.Header>
25
+ * <Table.Body>
26
+ * <Table.Row>
27
+ * <Table.Cell flex={2}>INV-001</Table.Cell>
28
+ * <Table.Cell align="end">$250.00</Table.Cell>
29
+ * </Table.Row>
30
+ * </Table.Body>
31
+ * </Table>
32
+ * ```
33
+ *
34
+ * `Table.Frame` is the same table in a widget shell, with the column headings
35
+ * lifted onto the tray above the card. It takes the whole table and does the
36
+ * lift itself, so the columns are still declared once.
37
+ *
38
+ * A table wider than the phone belongs in a horizontal scroller with a
39
+ * `minWidth` on the table, not squeezed until the columns are unreadable — wrap
40
+ * it in `ScrollFade` and the cut edge tells you there is more to the right.
41
+ *
42
+ * Long tables belong in a `FlatList` rather than in `Table.Body`, which renders
43
+ * every row it is given. `Table.Row` takes `index` and `last` directly for that
44
+ * case, since a virtualised row has no parent to read them from.
45
+ */
46
+ import { type ReactNode } from 'react';
47
+ import { View, type ViewProps } from 'react-native';
48
+ import { type VariantProps } from 'tailwind-variants';
49
+ import { type AnimatedPressableProps } from '../../primitives/animated-pressable.js';
50
+ import { type TextProps } from '../../primitives/text.js';
51
+ type TableSize = 'default' | 'sm';
52
+ type CellAlign = 'start' | 'center' | 'end';
53
+ export type TableSortDirection = 'asc' | 'desc';
54
+ declare const tableVariants: import("tailwind-variants").TVReturnType<{
55
+ variant: {
56
+ /** Hairlines only — the table sits directly on the page. */
57
+ default: {};
58
+ /** Framed and clipped, for a table that reads as its own card. */
59
+ outline: {
60
+ root: string;
61
+ };
62
+ };
63
+ size: {
64
+ default: {
65
+ row: string;
66
+ headLabel: string;
67
+ cellLabel: string;
68
+ caption: string;
69
+ };
70
+ sm: {
71
+ row: string;
72
+ headLabel: string;
73
+ cellLabel: string;
74
+ caption: string;
75
+ };
76
+ };
77
+ }, {
78
+ root: string;
79
+ row: string;
80
+ head: string;
81
+ headLabel: string;
82
+ cell: string;
83
+ cellLabel: string;
84
+ caption: string;
85
+ }, undefined, {
86
+ variant: {
87
+ /** Hairlines only — the table sits directly on the page. */
88
+ default: {};
89
+ /** Framed and clipped, for a table that reads as its own card. */
90
+ outline: {
91
+ root: string;
92
+ };
93
+ };
94
+ size: {
95
+ default: {
96
+ row: string;
97
+ headLabel: string;
98
+ cellLabel: string;
99
+ caption: string;
100
+ };
101
+ sm: {
102
+ row: string;
103
+ headLabel: string;
104
+ cellLabel: string;
105
+ caption: string;
106
+ };
107
+ };
108
+ }, {
109
+ root: string;
110
+ row: string;
111
+ head: string;
112
+ headLabel: string;
113
+ cell: string;
114
+ cellLabel: string;
115
+ caption: string;
116
+ }, import("tailwind-variants").TVReturnType<{
117
+ variant: {
118
+ /** Hairlines only — the table sits directly on the page. */
119
+ default: {};
120
+ /** Framed and clipped, for a table that reads as its own card. */
121
+ outline: {
122
+ root: string;
123
+ };
124
+ };
125
+ size: {
126
+ default: {
127
+ row: string;
128
+ headLabel: string;
129
+ cellLabel: string;
130
+ caption: string;
131
+ };
132
+ sm: {
133
+ row: string;
134
+ headLabel: string;
135
+ cellLabel: string;
136
+ caption: string;
137
+ };
138
+ };
139
+ }, {
140
+ root: string;
141
+ row: string;
142
+ head: string;
143
+ headLabel: string;
144
+ cell: string;
145
+ cellLabel: string;
146
+ caption: string;
147
+ }, undefined, unknown, unknown, undefined>>;
148
+ export interface TableProps extends ViewProps, VariantProps<typeof tableVariants> {
149
+ className?: string;
150
+ /**
151
+ * Row density. `Table.Row`, `Table.Head` and `Table.Cell` follow it, so it
152
+ * only needs setting here.
153
+ */
154
+ size?: TableSize;
155
+ /**
156
+ * Tint every other body row. Helps the eye track across a wide row; drop it
157
+ * for a short table, where the stripes are louder than the data.
158
+ */
159
+ striped?: boolean;
160
+ children?: ReactNode;
161
+ }
162
+ export interface TableHeaderProps extends ViewProps {
163
+ className?: string;
164
+ children?: ReactNode;
165
+ }
166
+ export interface TableBodyProps extends ViewProps {
167
+ className?: string;
168
+ children?: ReactNode;
169
+ }
170
+ export interface TableFooterProps extends ViewProps {
171
+ className?: string;
172
+ children?: ReactNode;
173
+ }
174
+ export interface TableRowProps extends Omit<AnimatedPressableProps, 'children' | 'disabled'> {
175
+ className?: string;
176
+ /** Marks the row as the chosen one — for a table you pick from. */
177
+ selected?: boolean;
178
+ disabled?: boolean;
179
+ /**
180
+ * Position in the section, for a row rendered outside `Table.Body` — a
181
+ * `FlatList` item, say. Decides which rows a striped table tints.
182
+ */
183
+ index?: number;
184
+ /**
185
+ * Whether this is the section's final row, for a row rendered outside
186
+ * `Table.Body`. The last row drops its hairline so it does not double up with
187
+ * the table's own bottom edge.
188
+ */
189
+ last?: boolean;
190
+ children?: ReactNode;
191
+ }
192
+ export interface TableHeadProps extends Omit<ViewProps, 'children'> {
193
+ className?: string;
194
+ /**
195
+ * Share of the leftover width, relative to the other cells in the row.
196
+ * Defaults to 1, so columns divide the row evenly. Must match the `flex` on
197
+ * the cells beneath it.
198
+ */
199
+ flex?: number;
200
+ /**
201
+ * Fixed width in pixels, for a column that must not move — an icon, a state
202
+ * dot. Must match the `width` on the cells beneath it.
203
+ */
204
+ width?: number;
205
+ /**
206
+ * Which edge the column's content sits against. Use `end` for numbers: a
207
+ * money column reads as a column only when the digits line up.
208
+ */
209
+ align?: CellAlign;
210
+ /**
211
+ * Show the sort arrow without committing to a direction — the column can be
212
+ * sorted, but is not the one being sorted by. Implied by `sortDirection`.
213
+ */
214
+ sortable?: boolean;
215
+ /** The direction this column is currently sorted in. Turns the arrow over. */
216
+ sortDirection?: TableSortDirection;
217
+ /** Called on a tap. Supplying it makes the header a button. */
218
+ onPress?: AnimatedPressableProps['onPress'];
219
+ /** Styles the header's text. */
220
+ labelClassName?: string;
221
+ children?: ReactNode;
222
+ }
223
+ export interface TableCellProps extends ViewProps {
224
+ className?: string;
225
+ /**
226
+ * Share of the leftover width, relative to the other cells in the row.
227
+ * Defaults to 1. Must match the `flex` on the head above it.
228
+ */
229
+ flex?: number;
230
+ /**
231
+ * Fixed width in pixels, for a column that must not move. Must match the
232
+ * `width` on the head above it.
233
+ */
234
+ width?: number;
235
+ /** Which edge the cell's content sits against. Match the head above it. */
236
+ align?: CellAlign;
237
+ /** Styles the cell's text. */
238
+ labelClassName?: string;
239
+ children?: ReactNode;
240
+ }
241
+ export interface TableCaptionProps extends TextProps {
242
+ className?: string;
243
+ }
244
+ export interface TableEmptyProps extends ViewProps {
245
+ className?: string;
246
+ children?: ReactNode;
247
+ }
248
+ export interface TableFrameProps extends Omit<ViewProps, 'children'> {
249
+ className?: string;
250
+ /** Caption on the tray, above the column headings. */
251
+ title?: ReactNode;
252
+ /** Trailing slot on the title row — a button, a badge, a menu. */
253
+ action?: ReactNode;
254
+ /** A line under the title, for what the table is counting. */
255
+ description?: ReactNode;
256
+ /** Row density, as on `Table`. */
257
+ size?: TableSize;
258
+ /** Tint every other body row, as on `Table`. */
259
+ striped?: boolean;
260
+ children?: ReactNode;
261
+ }
262
+ export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<View>> & {
263
+ Frame: import("react").ForwardRefExoticComponent<TableFrameProps & import("react").RefAttributes<View>>;
264
+ Header: import("react").ForwardRefExoticComponent<TableHeaderProps & import("react").RefAttributes<View>>;
265
+ Body: import("react").ForwardRefExoticComponent<TableBodyProps & import("react").RefAttributes<View>>;
266
+ Footer: import("react").ForwardRefExoticComponent<TableFooterProps & import("react").RefAttributes<View>>;
267
+ Row: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<View>>;
268
+ Head: import("react").ForwardRefExoticComponent<TableHeadProps & import("react").RefAttributes<View>>;
269
+ Cell: import("react").ForwardRefExoticComponent<TableCellProps & import("react").RefAttributes<View>>;
270
+ Caption: import("react").ForwardRefExoticComponent<TableCaptionProps & import("react").RefAttributes<import("react-native").Text>>;
271
+ Empty: import("react").ForwardRefExoticComponent<TableEmptyProps & import("react").RefAttributes<View>>;
272
+ };
273
+ export {};
274
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAEL,KAAK,sBAAsB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QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA4BD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAClE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,kEAAkE;IAClE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,kCAAkC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAkGD,eAAO,MAAM,KAAK;;;;;;;;;;CAUhB,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,CA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a,+BAWvE;kBAXQ,QAAQ;;;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"}
@@ -3,9 +3,15 @@
3
3
  *
4
4
  * A popover is a panel you open and deal with; a tooltip is a whisper. It
5
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 rather than
7
- * surface-coloured, why it is not dismissible with a scrim, and why it closes
8
- * after a beat instead of waiting to be told.
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.
9
15
  *
10
16
  * On touch there is no hover to open it, so the gesture is a long press by
11
17
  * default — the platform's own "tell me more" gesture — with `openOn="press"`
@@ -33,6 +39,7 @@ import { type ViewProps } from 'react-native';
33
39
  import { type TextProps } from '../../primitives/text.js';
34
40
  export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
35
41
  export type TooltipAlign = 'start' | 'center' | 'end';
42
+ export type TooltipVariant = 'inverted' | 'surface';
36
43
  export type TooltipOpenOn = 'longPress' | 'press';
37
44
  export interface TooltipProps {
38
45
  children: ReactNode;
@@ -98,9 +105,58 @@ export interface TooltipContentProps extends ViewProps {
98
105
  offset?: number;
99
106
  /** Nudge along the alignment axis, in pixels. */
100
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;
101
136
  children?: ReactNode;
102
137
  }
103
- declare function TooltipContent({ className, placement, align, offset, alignOffset, children, onLayout: onLayoutProp, style, ...props }: TooltipContentProps): import("react").JSX.Element | null;
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
+ }
104
160
  export interface TooltipArrowProps extends ViewProps {
105
161
  className?: string;
106
162
  }
@@ -116,10 +172,9 @@ export declare const Tooltip: typeof TooltipRoot & {
116
172
  Trigger: typeof TooltipTrigger;
117
173
  Content: typeof TooltipContent;
118
174
  Arrow: typeof TooltipArrow;
119
- Text: {
120
- ({ className, ...props }: TextProps): import("react").JSX.Element;
121
- displayName: string;
122
- };
175
+ Title: typeof TooltipTitle;
176
+ Description: typeof TooltipDescription;
177
+ Text: typeof TooltipText;
123
178
  };
124
179
  export {};
125
180
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tooltip/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAWL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAWtB,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,GA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