panelui-native 0.13.0 → 0.16.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 +41 -23
- package/lib/module/components/button/index.js +12 -9
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/chip/index.js +313 -0
- package/lib/module/components/chip/index.js.map +1 -0
- package/lib/module/components/direction/index.js +86 -0
- package/lib/module/components/direction/index.js.map +1 -0
- package/lib/module/components/frame/index.js +41 -39
- package/lib/module/components/frame/index.js.map +1 -1
- package/lib/module/components/heatmap-chart/index.js +772 -0
- package/lib/module/components/heatmap-chart/index.js.map +1 -0
- package/lib/module/components/input/index.js +4 -0
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/message/index.js +16 -1
- package/lib/module/components/message/index.js.map +1 -1
- package/lib/module/components/scroll-canvas/index.js +175 -0
- package/lib/module/components/scroll-canvas/index.js.map +1 -0
- package/lib/module/components/scroll-text/index.js +213 -0
- package/lib/module/components/scroll-text/index.js.map +1 -0
- package/lib/module/components/select/index.js +20 -24
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/components/slider/index.js +2 -5
- package/lib/module/components/slider/index.js.map +1 -1
- package/lib/module/components/soundwave/index.js +813 -0
- package/lib/module/components/soundwave/index.js.map +1 -0
- package/lib/module/components/switch/index.js +15 -17
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/thinking-orb/index.js +741 -0
- package/lib/module/components/thinking-orb/index.js.map +1 -0
- package/lib/module/components/toggle-button/index.js +12 -3
- package/lib/module/components/toggle-button/index.js.map +1 -1
- package/lib/module/components/typography/index.js +196 -5
- 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-keyboard-avoidance.js +99 -59
- package/lib/module/hooks/use-keyboard-avoidance.js.map +1 -1
- package/lib/module/hooks/use-reveal-progress.js +75 -0
- package/lib/module/hooks/use-reveal-progress.js.map +1 -0
- package/lib/module/icons/index.js +69 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +9 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/index.js.map +1 -1
- package/lib/module/primitives/keyboard-avoider.js +21 -2
- package/lib/module/primitives/keyboard-avoider.js.map +1 -1
- package/lib/module/primitives/scroll-progress.js +114 -0
- package/lib/module/primitives/scroll-progress.js.map +1 -0
- package/lib/typescript/src/components/button/index.d.ts +3 -4
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/chip/index.d.ts +304 -0
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -0
- package/lib/typescript/src/components/direction/index.d.ts +64 -0
- package/lib/typescript/src/components/direction/index.d.ts.map +1 -0
- package/lib/typescript/src/components/frame/index.d.ts +15 -13
- package/lib/typescript/src/components/frame/index.d.ts.map +1 -1
- package/lib/typescript/src/components/heatmap-chart/index.d.ts +260 -0
- package/lib/typescript/src/components/heatmap-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/input/index.d.ts +19 -4
- package/lib/typescript/src/components/input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/message/index.d.ts.map +1 -1
- package/lib/typescript/src/components/scroll-canvas/index.d.ts +66 -0
- package/lib/typescript/src/components/scroll-canvas/index.d.ts.map +1 -0
- package/lib/typescript/src/components/scroll-text/index.d.ts +46 -0
- package/lib/typescript/src/components/scroll-text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/index.d.ts.map +1 -1
- package/lib/typescript/src/components/soundwave/index.d.ts +91 -0
- package/lib/typescript/src/components/soundwave/index.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/thinking-orb/index.d.ts +28 -0
- package/lib/typescript/src/components/thinking-orb/index.d.ts.map +1 -0
- package/lib/typescript/src/components/toggle-button/index.d.ts +12 -0
- package/lib/typescript/src/components/toggle-button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/typography/index.d.ts +154 -1
- package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/index.d.ts +2 -1
- package/lib/typescript/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts +16 -3
- package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-reveal-progress.d.ts +56 -0
- package/lib/typescript/src/hooks/use-reveal-progress.d.ts.map +1 -0
- package/lib/typescript/src/icons/index.d.ts +6 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +9 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/index.d.ts +15 -7
- package/lib/typescript/src/native/index.d.ts.map +1 -1
- package/lib/typescript/src/primitives/keyboard-avoider.d.ts +30 -3
- package/lib/typescript/src/primitives/keyboard-avoider.d.ts.map +1 -1
- package/lib/typescript/src/primitives/scroll-progress.d.ts +61 -0
- package/lib/typescript/src/primitives/scroll-progress.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/button/index.tsx +13 -11
- package/src/components/direction/index.tsx +90 -0
- package/src/components/frame/index.tsx +39 -50
- package/src/components/heatmap-chart/index.tsx +1024 -0
- package/src/components/input/index.tsx +23 -4
- package/src/components/message/index.tsx +17 -1
- package/src/components/scroll-canvas/index.tsx +220 -0
- package/src/components/scroll-text/index.tsx +277 -0
- package/src/components/select/index.tsx +4 -9
- package/src/components/slider/index.tsx +4 -7
- package/src/components/soundwave/index.tsx +1029 -0
- package/src/components/switch/index.tsx +5 -8
- package/src/components/thinking-orb/index.tsx +792 -0
- package/src/components/typography/index.tsx +231 -10
- package/src/hooks/index.ts +6 -0
- package/src/hooks/use-keyboard-avoidance.ts +111 -65
- package/src/hooks/use-reveal-progress.ts +106 -0
- package/src/icons/index.tsx +36 -0
- package/src/index.ts +53 -0
- package/src/native/index.ts +15 -7
- package/src/primitives/keyboard-avoider.tsx +41 -4
- package/src/primitives/scroll-progress.tsx +167 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toggle-button/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,wCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toggle-button/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,wCAAqC,CAAC;AAK7C,QAAA,MAAM,cAAc;;QAOd,0EAA0E;;;;QAE1E,4EAA4E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAF5E,0EAA0E;;;;QAE1E,4EAA4E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAF5E,0EAA0E;;;;QAE1E,4EAA4E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA6BhF,CAAC;AAEH,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,WAAW,C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AAE,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;AA4GD,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"}
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography — semantic text presets, and the marks that go on them.
|
|
3
|
+
*
|
|
4
|
+
* The type scale in one place, so headings stay consistent instead of being
|
|
5
|
+
* rebuilt out of size and weight classes at each call site. Built on the Text
|
|
6
|
+
* primitive, so every preset keeps `className` passthrough and theme colours.
|
|
7
|
+
*
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Typography type="h2">Billing</Typography>
|
|
10
|
+
* <Typography>Your plan renews on the 1st.</Typography>
|
|
11
|
+
* <Typography underline>Terms of service</Typography>
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* A preset sets size, weight and tracking together; the marks — `underline`,
|
|
15
|
+
* `italic`, `strike` — and `weight`, `align` and `transform` layer on top of
|
|
16
|
+
* whichever preset is in force. They are props rather than class names because
|
|
17
|
+
* the point of this component is that a screen never has to know which
|
|
18
|
+
* utilities add up to "a bolded lead paragraph".
|
|
19
|
+
*
|
|
20
|
+
* React Native draws no list markers and has no blockquote, so
|
|
21
|
+
* `Typography.List` and `Typography.Blockquote` build both out of a row and a
|
|
22
|
+
* rule — which is exactly the kind of thing this component exists to stop
|
|
23
|
+
* people rebuilding per screen.
|
|
24
|
+
*/
|
|
25
|
+
import { type ReactNode } from 'react';
|
|
1
26
|
import { View, type Text as RNText, type ViewProps } from 'react-native';
|
|
2
27
|
import { type VariantProps } from 'tailwind-variants';
|
|
3
28
|
import { type TextProps } from '../../primitives/text.js';
|
|
@@ -9,11 +34,43 @@ declare const typographyVariants: import("tailwind-variants").TVReturnType<{
|
|
|
9
34
|
h4: string;
|
|
10
35
|
h5: string;
|
|
11
36
|
h6: string;
|
|
37
|
+
/** The sentence under a heading, set larger and quieter than body. */
|
|
38
|
+
lead: string;
|
|
12
39
|
body: string;
|
|
13
40
|
'body-sm': string;
|
|
14
41
|
'body-xs': string;
|
|
42
|
+
/** Body, one step up — for a number or a name that carries the row. */
|
|
43
|
+
large: string;
|
|
44
|
+
/** Body, one step down and tighter — captions, footnotes, meta. */
|
|
45
|
+
small: string;
|
|
46
|
+
blockquote: string;
|
|
15
47
|
code: string;
|
|
16
48
|
};
|
|
49
|
+
weight: {
|
|
50
|
+
normal: string;
|
|
51
|
+
medium: string;
|
|
52
|
+
semibold: string;
|
|
53
|
+
bold: string;
|
|
54
|
+
};
|
|
55
|
+
align: {
|
|
56
|
+
left: string;
|
|
57
|
+
center: string;
|
|
58
|
+
right: string;
|
|
59
|
+
};
|
|
60
|
+
transform: {
|
|
61
|
+
uppercase: string;
|
|
62
|
+
lowercase: string;
|
|
63
|
+
capitalize: string;
|
|
64
|
+
};
|
|
65
|
+
underline: {
|
|
66
|
+
true: string;
|
|
67
|
+
};
|
|
68
|
+
italic: {
|
|
69
|
+
true: string;
|
|
70
|
+
};
|
|
71
|
+
strike: {
|
|
72
|
+
true: string;
|
|
73
|
+
};
|
|
17
74
|
muted: {
|
|
18
75
|
true: string;
|
|
19
76
|
};
|
|
@@ -25,11 +82,43 @@ declare const typographyVariants: import("tailwind-variants").TVReturnType<{
|
|
|
25
82
|
h4: string;
|
|
26
83
|
h5: string;
|
|
27
84
|
h6: string;
|
|
85
|
+
/** The sentence under a heading, set larger and quieter than body. */
|
|
86
|
+
lead: string;
|
|
28
87
|
body: string;
|
|
29
88
|
'body-sm': string;
|
|
30
89
|
'body-xs': string;
|
|
90
|
+
/** Body, one step up — for a number or a name that carries the row. */
|
|
91
|
+
large: string;
|
|
92
|
+
/** Body, one step down and tighter — captions, footnotes, meta. */
|
|
93
|
+
small: string;
|
|
94
|
+
blockquote: string;
|
|
31
95
|
code: string;
|
|
32
96
|
};
|
|
97
|
+
weight: {
|
|
98
|
+
normal: string;
|
|
99
|
+
medium: string;
|
|
100
|
+
semibold: string;
|
|
101
|
+
bold: string;
|
|
102
|
+
};
|
|
103
|
+
align: {
|
|
104
|
+
left: string;
|
|
105
|
+
center: string;
|
|
106
|
+
right: string;
|
|
107
|
+
};
|
|
108
|
+
transform: {
|
|
109
|
+
uppercase: string;
|
|
110
|
+
lowercase: string;
|
|
111
|
+
capitalize: string;
|
|
112
|
+
};
|
|
113
|
+
underline: {
|
|
114
|
+
true: string;
|
|
115
|
+
};
|
|
116
|
+
italic: {
|
|
117
|
+
true: string;
|
|
118
|
+
};
|
|
119
|
+
strike: {
|
|
120
|
+
true: string;
|
|
121
|
+
};
|
|
33
122
|
muted: {
|
|
34
123
|
true: string;
|
|
35
124
|
};
|
|
@@ -41,23 +130,71 @@ declare const typographyVariants: import("tailwind-variants").TVReturnType<{
|
|
|
41
130
|
h4: string;
|
|
42
131
|
h5: string;
|
|
43
132
|
h6: string;
|
|
133
|
+
/** The sentence under a heading, set larger and quieter than body. */
|
|
134
|
+
lead: string;
|
|
44
135
|
body: string;
|
|
45
136
|
'body-sm': string;
|
|
46
137
|
'body-xs': string;
|
|
138
|
+
/** Body, one step up — for a number or a name that carries the row. */
|
|
139
|
+
large: string;
|
|
140
|
+
/** Body, one step down and tighter — captions, footnotes, meta. */
|
|
141
|
+
small: string;
|
|
142
|
+
blockquote: string;
|
|
47
143
|
code: string;
|
|
48
144
|
};
|
|
145
|
+
weight: {
|
|
146
|
+
normal: string;
|
|
147
|
+
medium: string;
|
|
148
|
+
semibold: string;
|
|
149
|
+
bold: string;
|
|
150
|
+
};
|
|
151
|
+
align: {
|
|
152
|
+
left: string;
|
|
153
|
+
center: string;
|
|
154
|
+
right: string;
|
|
155
|
+
};
|
|
156
|
+
transform: {
|
|
157
|
+
uppercase: string;
|
|
158
|
+
lowercase: string;
|
|
159
|
+
capitalize: string;
|
|
160
|
+
};
|
|
161
|
+
underline: {
|
|
162
|
+
true: string;
|
|
163
|
+
};
|
|
164
|
+
italic: {
|
|
165
|
+
true: string;
|
|
166
|
+
};
|
|
167
|
+
strike: {
|
|
168
|
+
true: string;
|
|
169
|
+
};
|
|
49
170
|
muted: {
|
|
50
171
|
true: string;
|
|
51
172
|
};
|
|
52
173
|
}, undefined, "text-foreground", unknown, unknown, undefined>>;
|
|
53
174
|
export type TypographyType = NonNullable<VariantProps<typeof typographyVariants>['type']>;
|
|
175
|
+
export type TypographyWeight = NonNullable<VariantProps<typeof typographyVariants>['weight']>;
|
|
54
176
|
export interface TypographyProps extends Omit<TextProps, 'size' | 'weight'>, VariantProps<typeof typographyVariants> {
|
|
55
177
|
className?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Overrides the weight the preset sets. This is the one to reach for when a
|
|
180
|
+
* paragraph needs a bolded run and a heading would be wrong.
|
|
181
|
+
*/
|
|
182
|
+
weight?: TypographyWeight;
|
|
183
|
+
/** Underlines the text — a link, a defined term, a signature line. */
|
|
184
|
+
underline?: boolean;
|
|
185
|
+
/** Slants the text. */
|
|
186
|
+
italic?: boolean;
|
|
187
|
+
/** Strikes the text through: an old price, a completed task. */
|
|
188
|
+
strike?: boolean;
|
|
189
|
+
/** Horizontal alignment within whatever the text is laid out in. */
|
|
190
|
+
align?: 'left' | 'center' | 'right';
|
|
191
|
+
/** Case, applied for display without changing the string underneath. */
|
|
192
|
+
transform?: 'uppercase' | 'lowercase' | 'capitalize';
|
|
56
193
|
}
|
|
57
194
|
/** Heading levels, for `Typography.Heading`. */
|
|
58
195
|
type HeadingType = Extract<TypographyType, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
|
|
59
196
|
/** Body sizes, for `Typography.Paragraph`. */
|
|
60
|
-
type ParagraphType = Extract<TypographyType, 'body' | 'body-sm' | 'body-xs'>;
|
|
197
|
+
type ParagraphType = Extract<TypographyType, 'body' | 'body-sm' | 'body-xs' | 'lead' | 'large' | 'small'>;
|
|
61
198
|
export interface TypographyHeadingProps extends Omit<TypographyProps, 'type'> {
|
|
62
199
|
type?: HeadingType;
|
|
63
200
|
}
|
|
@@ -68,10 +205,26 @@ export interface TypographyCodeProps extends Omit<TypographyProps, 'type'> {
|
|
|
68
205
|
/** Classes for the surface behind the code text. */
|
|
69
206
|
containerClassName?: string;
|
|
70
207
|
}
|
|
208
|
+
export interface TypographyBlockquoteProps extends Omit<TypographyProps, 'type'> {
|
|
209
|
+
/** Classes for the row that carries the rule. */
|
|
210
|
+
containerClassName?: string;
|
|
211
|
+
}
|
|
212
|
+
export interface TypographyListProps extends ViewProps {
|
|
213
|
+
className?: string;
|
|
214
|
+
/** Numbered rather than bulleted. The numbers are drawn, not counted by CSS. */
|
|
215
|
+
ordered?: boolean;
|
|
216
|
+
children?: ReactNode;
|
|
217
|
+
}
|
|
218
|
+
export interface TypographyListItemProps extends Omit<TypographyProps, 'type'> {
|
|
219
|
+
type?: ParagraphType;
|
|
220
|
+
}
|
|
71
221
|
export declare const Typography: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<RNText>> & {
|
|
72
222
|
Heading: import("react").ForwardRefExoticComponent<TypographyHeadingProps & import("react").RefAttributes<RNText>>;
|
|
73
223
|
Paragraph: import("react").ForwardRefExoticComponent<TypographyParagraphProps & import("react").RefAttributes<RNText>>;
|
|
74
224
|
Code: import("react").ForwardRefExoticComponent<TypographyCodeProps & Pick<ViewProps, "testID"> & import("react").RefAttributes<View>>;
|
|
225
|
+
Blockquote: import("react").ForwardRefExoticComponent<TypographyBlockquoteProps & import("react").RefAttributes<View>>;
|
|
226
|
+
List: import("react").ForwardRefExoticComponent<TypographyListProps & import("react").RefAttributes<View>>;
|
|
227
|
+
ListItem: import("react").ForwardRefExoticComponent<TypographyListItemProps & import("react").RefAttributes<RNText>>;
|
|
75
228
|
};
|
|
76
229
|
export {};
|
|
77
230
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAG7D,QAAA,MAAM,kBAAkB;;;;;;;;QAUlB,sEAAsE;;;;;QAKtE,uEAAuE;;QAEvE,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAPnE,sEAAsE;;;;;QAKtE,uEAAuE;;QAEvE,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAPnE,sEAAsE;;;;;QAKtE,uE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AQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC7E,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AA0BD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IACxE,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgBD,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC9E,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgCD,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA8BD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC5E,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AA2BD,eAAO,MAAM,UAAU;;;;;;;CAOrB,CAAC"}
|
|
@@ -2,7 +2,8 @@ export { useCopyToClipboard, type UseCopyToClipboardOptions, type UseCopyToClipb
|
|
|
2
2
|
export { useDisclosure, type UseDisclosureOptions, type UseDisclosureResult, } from './use-disclosure.js';
|
|
3
3
|
export { useBreakpoint, BREAKPOINTS, type Breakpoint, type UseBreakpointResult, } from './use-breakpoint.js';
|
|
4
4
|
export { useKeyboard, type UseKeyboardResult } from './use-keyboard.js';
|
|
5
|
-
export { useKeyboardAvoidance, type UseKeyboardAvoidanceOptions, type UseKeyboardAvoidanceResult, } from './use-keyboard-avoidance.js';
|
|
5
|
+
export { useKeyboardAvoidance, type KeyboardAvoidanceMode, type UseKeyboardAvoidanceOptions, type UseKeyboardAvoidanceResult, } from './use-keyboard-avoidance.js';
|
|
6
|
+
export { useRevealProgress, type UseRevealProgressOptions, type UseRevealProgressResult, } from './use-reveal-progress.js';
|
|
6
7
|
export { useScrollSections, type UseScrollSectionsOptions, type UseScrollSectionsResult, } from './use-scroll-sections.js';
|
|
7
8
|
export { useDebouncedValue } from './use-debounced-value.js';
|
|
8
9
|
export { usePrevious } from './use-previous.js';
|
|
@@ -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,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,qBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,WAAW,EACX,KAAK,UAAU,EACf,KAAK,mBAAmB,GACzB,MAAM,qBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAgB,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,GAChC,MAAM,6BAA0B,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,0BAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAAuB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAgB,CAAC"}
|
|
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,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,qBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,WAAW,EACX,KAAK,UAAU,EACf,KAAK,mBAAmB,GACzB,MAAM,qBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAgB,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,GAChC,MAAM,6BAA0B,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,0BAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,0BAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAAuB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAgB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type LayoutChangeEvent, type View } from 'react-native';
|
|
2
2
|
import { useAnimatedStyle, type AnimatedRef } from 'react-native-reanimated';
|
|
3
|
+
export type KeyboardAvoidanceMode = 'lift' | 'dock';
|
|
3
4
|
export interface UseKeyboardAvoidanceOptions {
|
|
4
5
|
/** Set false to leave the element where it is. */
|
|
5
6
|
enabled?: boolean;
|
|
@@ -12,18 +13,30 @@ export interface UseKeyboardAvoidanceOptions {
|
|
|
12
13
|
* is tapped, and they all arrive at the same place on top of each other.
|
|
13
14
|
*/
|
|
14
15
|
active?: boolean;
|
|
15
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* `lift` moves an in-flow element by its overlap with the keyboard and
|
|
18
|
+
* tracks it as the page scrolls. `dock` travels with the keyboard outright,
|
|
19
|
+
* for an element already pinned to the bottom edge.
|
|
20
|
+
*/
|
|
21
|
+
mode?: KeyboardAvoidanceMode;
|
|
22
|
+
/** Gap to keep between the element's bottom edge and the keyboard. `lift` only. */
|
|
16
23
|
offset?: number;
|
|
24
|
+
/**
|
|
25
|
+
* How far above the bottom edge the element already sits — usually the safe
|
|
26
|
+
* area inset it is offset by. Subtracted from the travel, since the keyboard
|
|
27
|
+
* covers that strip too. `dock` only.
|
|
28
|
+
*/
|
|
29
|
+
bottomInset?: number;
|
|
17
30
|
}
|
|
18
31
|
export interface UseKeyboardAvoidanceResult {
|
|
19
32
|
/** Attach to the element that should stay visible. */
|
|
20
33
|
ref: AnimatedRef<View>;
|
|
21
|
-
/** Attach to the same element
|
|
34
|
+
/** Attach to the same element, so a re-layout at rest cannot leave it offset. */
|
|
22
35
|
onLayout: (event: LayoutChangeEvent) => void;
|
|
23
36
|
/** Apply to the same element. */
|
|
24
37
|
animatedStyle: ReturnType<typeof useAnimatedStyle>;
|
|
25
38
|
}
|
|
26
39
|
/** True when the keyboard controller is driving this, rather than the fallback. */
|
|
27
40
|
export declare function hasKeyboardController(): boolean;
|
|
28
|
-
export declare function useKeyboardAvoidance({ enabled, active, offset, }?: UseKeyboardAvoidanceOptions): UseKeyboardAvoidanceResult;
|
|
41
|
+
export declare function useKeyboardAvoidance({ enabled, active, mode, offset, bottomInset, }?: UseKeyboardAvoidanceOptions): UseKeyboardAvoidanceResult;
|
|
29
42
|
//# sourceMappingURL=use-keyboard-avoidance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-keyboard-avoidance.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-keyboard-avoidance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-keyboard-avoidance.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-keyboard-avoidance.ts"],"names":[],"mappings":"AA+CA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAML,gBAAgB,EAIhB,KAAK,WAAW,EAEjB,MAAM,yBAAyB,CAAC;AAYjC,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,2BAA2B;IAC1C,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACzC,sDAAsD;IACtD,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACvB,iFAAiF;IACjF,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7C,iCAAiC;IACjC,aAAa,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACpD;AA6BD,mFAAmF;AACnF,wBAAgB,qBAAqB,IAAI,OAAO,CAQ/C;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAc,EACd,MAAa,EACb,IAAa,EACb,MAAW,EACX,WAAe,GAChB,GAAE,2BAAgC,GAAG,0BAA0B,CAgG/D"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useRevealProgress — how far an element has travelled through the viewport.
|
|
3
|
+
*
|
|
4
|
+
* The number every scroll-driven effect is really made of: `0` before the
|
|
5
|
+
* element has arrived, `1` once it has passed, and a smooth scrub between the
|
|
6
|
+
* two. What an effect *does* with it — recolour, fade, zoom, step through
|
|
7
|
+
* frames — is the only part that differs.
|
|
8
|
+
*
|
|
9
|
+
* The window is set the way a scroll-trigger's is: `start` and `end` are
|
|
10
|
+
* positions down the viewport, as fractions of its height. Progress is `0`
|
|
11
|
+
* while the element's **top** is still below `start`, and reaches `1` when its
|
|
12
|
+
* **bottom** passes `end` — so a tall block scrubs across its own height rather
|
|
13
|
+
* than snapping the moment its first line appears.
|
|
14
|
+
*
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const { ref, progress } = useRevealProgress({ start: 0.9, end: 0.5 });
|
|
17
|
+
*
|
|
18
|
+
* <Animated.View ref={ref} style={useAnimatedStyle(() => ({
|
|
19
|
+
* opacity: progress.value,
|
|
20
|
+
* }))} />
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* The element is measured on the UI thread whenever the scroll position
|
|
24
|
+
* changes — not every frame, and not once at layout. Once is wrong the moment
|
|
25
|
+
* anything above it resizes; every frame is a measurement pass for a value that
|
|
26
|
+
* only changes when the scroller moves.
|
|
27
|
+
*/
|
|
28
|
+
import { type View } from 'react-native';
|
|
29
|
+
import { type AnimatedRef, type SharedValue } from 'react-native-reanimated';
|
|
30
|
+
export interface UseRevealProgressOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Where down the viewport the element's top sits when progress is `0`, as a
|
|
33
|
+
* fraction of the viewport height. `0.9` starts it just before it appears.
|
|
34
|
+
*/
|
|
35
|
+
start?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Where down the viewport the element's bottom sits when progress reaches
|
|
38
|
+
* `1`. Smaller values mean a longer scrub.
|
|
39
|
+
*/
|
|
40
|
+
end?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Drive the effect from a value of your own instead of from the scroll
|
|
43
|
+
* position. Anything passed here is used as-is and nothing is measured.
|
|
44
|
+
*/
|
|
45
|
+
progress?: SharedValue<number>;
|
|
46
|
+
/** Set false to hold progress at `1`, as though the element had passed. */
|
|
47
|
+
enabled?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface UseRevealProgressResult {
|
|
50
|
+
/** Attach to the element whose travel drives the effect. */
|
|
51
|
+
ref: AnimatedRef<View>;
|
|
52
|
+
/** `0` before, `1` after, scrubbed between. */
|
|
53
|
+
progress: SharedValue<number>;
|
|
54
|
+
}
|
|
55
|
+
export declare function useRevealProgress({ start, end, progress: external, enabled, }?: UseRevealProgressOptions): UseRevealProgressResult;
|
|
56
|
+
//# sourceMappingURL=use-reveal-progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-reveal-progress.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-reveal-progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,EAAuB,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,4DAA4D;IAC5D,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACvB,+CAA+C;IAC/C,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,KAAW,EACX,GAAS,EACT,QAAQ,EAAE,QAAQ,EAClB,OAAc,GACf,GAAE,wBAA6B,GAAG,uBAAuB,CAoCzD"}
|
|
@@ -72,4 +72,10 @@ export declare function FileIcon({ size, color, ...props }: IconProps): import("
|
|
|
72
72
|
export declare function ImageIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
73
73
|
/** A paperclip — attaching a file to a composer. */
|
|
74
74
|
export declare function PaperclipIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
75
|
+
/** A capsule on a stand — a microphone, for anything voice. */
|
|
76
|
+
export declare function MicIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
77
|
+
/** A filled triangle — start playback. */
|
|
78
|
+
export declare function PlayIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
79
|
+
/** Two filled bars — hold playback where it is. */
|
|
80
|
+
export declare function PauseIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
75
81
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAY,EAAmB,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvE,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAYD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA;AAED,gEAAgE;AAChE,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAEjD;AAkBD,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAalE;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAaxE;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAaxE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAazE;AAED,wBAAgB,KAAK,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAa9D;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAcnE;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,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAajE;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAapE;AAED,6DAA6D;AAC7D,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAYjE;AAED,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAajE;AAED,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAalE;AAED,oDAAoD;AACpD,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAatE;AAED,+DAA+D;AAC/D,wBAAgB,OAAO,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAahE;AAED,0CAA0C;AAC1C,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAOjE;AAED,mDAAmD;AACnD,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAOlE"}
|
|
@@ -4,6 +4,7 @@ export { Portal, PortalHost, PortalProvider } from './primitives/portal.js';
|
|
|
4
4
|
export { Text, type TextProps } from './primitives/text.js';
|
|
5
5
|
export { KeyboardAvoider, type KeyboardAvoiderProps, } from './primitives/keyboard-avoider.js';
|
|
6
6
|
export { AnimatedPressable, type AnimatedPressableProps, } from './primitives/animated-pressable.js';
|
|
7
|
+
export { ScrollProgress, useScrollProgress, type ScrollProgressProps, type ScrollProgressValue, } from './primitives/scroll-progress.js';
|
|
7
8
|
export { hasNativeUI } from './native/index.js';
|
|
8
9
|
export { hasHaptics, selectionTick } from './utils/haptics.js';
|
|
9
10
|
export { Accordion, type AccordionProps, type AccordionItemProps, type AccordionTriggerProps, type AccordionIndicatorProps, type AccordionContentProps, type AccordionVariant, type AccordionSelectionMode, } from './components/accordion/index.js';
|
|
@@ -15,12 +16,16 @@ export { BottomSheet, type BottomSheetProps, type BottomSheetContentProps, } fro
|
|
|
15
16
|
export { Button, type ButtonProps } from './components/button/index.js';
|
|
16
17
|
export { ToggleButton, ToggleButtonGroup, useToggleButton, type ToggleButtonProps, type ToggleButtonGroupProps, type ToggleButtonLabelProps, type ToggleButtonSize, type ToggleButtonVariant, type ToggleSelectionMode, } from './components/toggle-button/index.js';
|
|
17
18
|
export { Dialog, type DialogProps, type DialogContentProps, } from './components/dialog/index.js';
|
|
19
|
+
export { Soundwave, type SoundwaveProps, type SoundwaveState, type SoundwaveVariant, } from './components/soundwave/index.js';
|
|
20
|
+
export { Direction, useDirection, type DirectionProps, type DirectionValue, } from './components/direction/index.js';
|
|
18
21
|
export { Frame, type FrameProps, type FrameRootProps, type FramePanelProps, type FrameRowProps, type FrameSectionProps, type FrameVariant, } from './components/frame/index.js';
|
|
22
|
+
export { HeatmapChart, useHeatmapChart, buildHeatmapCalendar, type HeatmapChartProps, type HeatmapCellsProps, type HeatmapSeparatorProps, type HeatmapXAxisProps, type HeatmapYAxisProps, type HeatmapTooltipProps, type HeatmapLegendProps, type HeatmapColumn, type HeatmapBin, type HeatmapCell, type HeatmapLayout, } from './components/heatmap-chart/index.js';
|
|
19
23
|
export { Select, type SelectProps, type SelectItemProps, type SelectPresentation, } from './components/select/index.js';
|
|
20
24
|
export { SectionRail, type SectionRailProps, type SectionRailTriggerProps, type SectionRailBarProps, type SectionRailContentProps, type SectionRailItemProps, type SectionRailPlacement, type SectionRailAlign, } from './components/section-rail/index.js';
|
|
21
25
|
export { Tabs, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, } from './components/tabs/index.js';
|
|
22
26
|
export { Card, type CardProps } from './components/card/index.js';
|
|
23
27
|
export { Checkbox, type CheckboxProps } from './components/checkbox/index.js';
|
|
28
|
+
export { Chip, useChip, type ChipProps, type ChipLabelProps, type ChipVariant, type ChipSize, } from './components/chip/index.js';
|
|
24
29
|
export { EmptyState, type EmptyStateProps, type EmptyStateMediaProps, } from './components/empty-state/index.js';
|
|
25
30
|
export { Input, type InputProps } from './components/input/index.js';
|
|
26
31
|
export { InputGroup, type InputGroupProps, type InputGroupInputProps, type InputGroupDecoratorProps, } from './components/input-group/index.js';
|
|
@@ -36,6 +41,9 @@ export { RadioGroup, type RadioGroupProps, type RadioGroupItemProps, } from './c
|
|
|
36
41
|
export { ScrollFade, type ScrollFadeProps, } from './components/scroll-fade/index.js';
|
|
37
42
|
export { Separator, type SeparatorProps } from './components/separator/index.js';
|
|
38
43
|
export { Shimmer, type ShimmerProps } from './components/shimmer/index.js';
|
|
44
|
+
export { ScrollText, type ScrollTextProps, type ScrollTextEffect, type ScrollTextSplit, } from './components/scroll-text/index.js';
|
|
45
|
+
export { ScrollCanvas, type ScrollCanvasProps, type ScrollCanvasEffect, } from './components/scroll-canvas/index.js';
|
|
46
|
+
export { ThinkingOrb, type ThinkingOrbProps, type ThinkingOrbState, } from './components/thinking-orb/index.js';
|
|
39
47
|
export { Skeleton, type SkeletonProps } from './components/skeleton/index.js';
|
|
40
48
|
export { Slider, type SliderProps } from './components/slider/index.js';
|
|
41
49
|
export { Spinner, type SpinnerProps } from './components/spinner/index.js';
|
|
@@ -45,7 +53,7 @@ export { Switch, type SwitchProps } from './components/switch/index.js';
|
|
|
45
53
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineIndicatorProps, type TimelineStatProps, type TimelineVariant, type TimelineTone, } from './components/timeline/index.js';
|
|
46
54
|
export { Toast, ToastViewport, toast, useToast, type ToastProps, type ToastOptions, type ToastItem, type ToastVariant, type ToastPlacement, type ToastHandle, type ToastIndicatorProps, type ToastCloseProps, } from './components/toast/index.js';
|
|
47
55
|
export { Typography, type TypographyProps, type TypographyType, type TypographyHeadingProps, type TypographyParagraphProps, type TypographyCodeProps, } from './components/typography/index.js';
|
|
48
|
-
export { AlertTriangleIcon, AppleIcon, ArrowUpRightIcon, BellIcon, CardIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, FacebookIcon, FileIcon, GoogleIcon, IconColorProvider, InfoIcon, ImageIcon, MoonIcon, PackageIcon, PaperclipIcon, PlusSquareIcon, ReceiptIcon, SearchIcon, SendIcon, ShareNodesIcon, ShieldAlertIcon, ShieldCheckIcon, SunIcon, XIcon, useIconColor, type IconProps, } from './icons/index.js';
|
|
56
|
+
export { AlertTriangleIcon, AppleIcon, ArrowUpRightIcon, BellIcon, CardIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, FacebookIcon, FileIcon, GoogleIcon, IconColorProvider, InfoIcon, ImageIcon, MicIcon, MoonIcon, PackageIcon, PaperclipIcon, PauseIcon, PlayIcon, PlusSquareIcon, ReceiptIcon, SearchIcon, SendIcon, ShareNodesIcon, ShieldAlertIcon, ShieldCheckIcon, SunIcon, XIcon, useIconColor, type IconProps, } from './icons/index.js';
|
|
49
57
|
export * from './hooks/index.js';
|
|
50
58
|
export { cn } from './utils/cn.js';
|
|
51
59
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,kCAA+B,CAAC;AAG3F,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,sBAAmB,CAA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,OAAO,EAAE,EAAE,EAAE,MAAM,eAAY,CAAC"}
|
|
@@ -5,13 +5,15 @@ interface NativeUIModule {
|
|
|
5
5
|
/**
|
|
6
6
|
* Whether the host resizes itself to the platform content.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* is a
|
|
8
|
+
* This is on for every control here, and it is the whole answer to the
|
|
9
|
+
* jump. Sizing the *host* and leaving the control unsized inside it hands
|
|
10
|
+
* the platform a box it never agreed to: it lays out against its own
|
|
11
|
+
* intrinsic size, and settles into the box on the first thing that forces
|
|
12
|
+
* a second pass — which for a button is the first press.
|
|
13
|
+
*
|
|
14
|
+
* The per-axis form is for a control with no intrinsic width, like a
|
|
15
|
+
* slider or a picker: the width comes from ordinary layout and only the
|
|
16
|
+
* height is reported back.
|
|
15
17
|
*/
|
|
16
18
|
matchContents?: boolean | {
|
|
17
19
|
vertical?: boolean;
|
|
@@ -30,6 +32,12 @@ interface NativeUIModule {
|
|
|
30
32
|
matchContents?: boolean;
|
|
31
33
|
style?: unknown;
|
|
32
34
|
}>;
|
|
35
|
+
/**
|
|
36
|
+
* `style` here is not a React Native style — it is the small portable subset
|
|
37
|
+
* (`width`, `height`, padding, `backgroundColor`, `borderRadius`, `opacity`)
|
|
38
|
+
* that the toolkit compiles into real SwiftUI and Compose modifiers. It is
|
|
39
|
+
* how a control is given a definite size without the host having to guess.
|
|
40
|
+
*/
|
|
33
41
|
Button: ComponentType<Record<string, unknown>>;
|
|
34
42
|
Switch: ComponentType<Record<string, unknown>>;
|
|
35
43
|
Slider: ComponentType<Record<string, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/native/index.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,UAAU,c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rD;AAKD;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,cAAc,GAAG,IAAI,CAgBnD;AAED,gEAAgE;AAChE,wBAAgB,WAAW,IAAI,OAAO,CAErC"}
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KeyboardAvoider — a view that
|
|
2
|
+
* KeyboardAvoider — a view that keeps itself clear of the keyboard.
|
|
3
3
|
*
|
|
4
4
|
* A thin wrapper over `useKeyboardAvoidance` for the common case of "keep this
|
|
5
5
|
* box visible", so a form does not have to wire the ref, layout handler and
|
|
6
6
|
* animated style by hand.
|
|
7
|
+
*
|
|
8
|
+
* ```tsx
|
|
9
|
+
* // In the flow of a scrolling page: lifts by the overlap, follows the scroll.
|
|
10
|
+
* <KeyboardAvoider active={focused}>…</KeyboardAvoider>
|
|
11
|
+
*
|
|
12
|
+
* // Pinned to the bottom edge: rides the keyboard up and back down.
|
|
13
|
+
* <KeyboardAvoider
|
|
14
|
+
* mode="dock"
|
|
15
|
+
* bottomInset={insets.bottom}
|
|
16
|
+
* className="absolute left-0 right-0"
|
|
17
|
+
* style={{ bottom: insets.bottom + 16 }}
|
|
18
|
+
* >
|
|
19
|
+
* …
|
|
20
|
+
* </KeyboardAvoider>
|
|
21
|
+
* ```
|
|
7
22
|
*/
|
|
8
23
|
import type { ReactNode } from 'react';
|
|
9
24
|
import type { ViewProps } from 'react-native';
|
|
25
|
+
import { type KeyboardAvoidanceMode } from '../hooks/use-keyboard-avoidance.js';
|
|
10
26
|
export interface KeyboardAvoiderProps extends ViewProps {
|
|
11
27
|
className?: string;
|
|
12
28
|
/** Set false to leave the content where it is. */
|
|
@@ -18,11 +34,22 @@ export interface KeyboardAvoiderProps extends ViewProps {
|
|
|
18
34
|
* screen stay put.
|
|
19
35
|
*/
|
|
20
36
|
active?: boolean;
|
|
21
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* `lift` moves in-flow content up by its overlap with the keyboard and keeps
|
|
39
|
+
* tracking it as the page scrolls. `dock` travels with the keyboard, for a
|
|
40
|
+
* bar already pinned near the bottom edge.
|
|
41
|
+
*/
|
|
42
|
+
mode?: KeyboardAvoidanceMode;
|
|
43
|
+
/** Gap to keep between the content's bottom edge and the keyboard. `lift` only. */
|
|
22
44
|
offset?: number;
|
|
45
|
+
/**
|
|
46
|
+
* How far above the bottom edge the bar already sits — usually the safe area
|
|
47
|
+
* inset it is positioned by. `dock` only.
|
|
48
|
+
*/
|
|
49
|
+
bottomInset?: number;
|
|
23
50
|
children?: ReactNode;
|
|
24
51
|
}
|
|
25
|
-
export declare function KeyboardAvoider({ className, enabled, active, offset, children, style, onLayout, ...props }: KeyboardAvoiderProps): import("react").JSX.Element;
|
|
52
|
+
export declare function KeyboardAvoider({ className, enabled, active, mode, offset, bottomInset, children, style, onLayout, ...props }: KeyboardAvoiderProps): import("react").JSX.Element;
|
|
26
53
|
export declare namespace KeyboardAvoider {
|
|
27
54
|
var displayName: string;
|
|
28
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-avoider.d.ts","sourceRoot":"","sources":["../../../../src/primitives/keyboard-avoider.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"keyboard-avoider.d.ts","sourceRoot":"","sources":["../../../../src/primitives/keyboard-avoider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,oCAAiC,CAAC;AAEzC,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAc,EACd,MAAa,EACb,IAAa,EACb,MAAW,EACX,WAAe,EACf,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAuBtB;yBAlCe,eAAe"}
|