panelui-native 0.14.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 +2 -0
- package/lib/module/components/direction/index.js +86 -0
- package/lib/module/components/direction/index.js.map +1 -0
- package/lib/module/components/message/index.js +16 -1
- package/lib/module/components/message/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/typography/index.js +196 -5
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/icons/index.js +69 -0
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- 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/message/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/typography/index.d.ts +154 -1
- package/lib/typescript/src/components/typography/index.d.ts.map +1 -1
- package/lib/typescript/src/icons/index.d.ts +6 -0
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/direction/index.tsx +90 -0
- package/src/components/message/index.tsx +17 -1
- package/src/components/soundwave/index.tsx +1029 -0
- package/src/components/typography/index.tsx +231 -10
- package/src/icons/index.tsx +36 -0
- package/src/index.ts +15 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { type ViewProps } from 'react-native';
|
|
2
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
3
|
+
export type SoundwaveVariant = 'pills' | 'bars' | 'line' | 'ambient';
|
|
4
|
+
export type SoundwaveState = 'idle' | 'listening' | 'thinking' | 'speaking';
|
|
5
|
+
export interface SoundwaveProps extends Omit<ViewProps, 'children'> {
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Which look to draw: `pills` for a few capsules over a microphone button,
|
|
9
|
+
* `bars` for a metering strip, `line` for a travelling wave, `ambient` for a
|
|
10
|
+
* glow that fills its parent.
|
|
11
|
+
*/
|
|
12
|
+
variant?: SoundwaveVariant;
|
|
13
|
+
/**
|
|
14
|
+
* What the app is doing. With no `level` supplied this picks the motion the
|
|
15
|
+
* wave runs on its own; it always sets what a screen reader announces.
|
|
16
|
+
*/
|
|
17
|
+
state?: SoundwaveState;
|
|
18
|
+
/**
|
|
19
|
+
* Input level, 0–1, from your own recorder's metering. Pass a `SharedValue`
|
|
20
|
+
* to keep updates off the JS thread entirely. Omit it and the wave animates
|
|
21
|
+
* plausible motion for the current `state`.
|
|
22
|
+
*/
|
|
23
|
+
level?: number | SharedValue<number>;
|
|
24
|
+
/**
|
|
25
|
+
* Per-band levels, 0–1 each, for `bars` in `static` mode when the app has a
|
|
26
|
+
* real frequency analysis — or the stored shape of a finished recording.
|
|
27
|
+
* Resampled to the bar count, and drawn still rather than animated.
|
|
28
|
+
*/
|
|
29
|
+
levels?: number[];
|
|
30
|
+
/**
|
|
31
|
+
* Playback position through a recording, 0–1. Bars behind it keep full ink
|
|
32
|
+
* and the rest are dimmed, which is the voice-note progress bar. `bars` only,
|
|
33
|
+
* and it goes with `levels` — a recording has a fixed shape to play through.
|
|
34
|
+
*/
|
|
35
|
+
progress?: number | SharedValue<number>;
|
|
36
|
+
/** How many capsules (`pills`) or bars (`bars`) to draw. */
|
|
37
|
+
bars?: number;
|
|
38
|
+
/** Capsule width, or bar stroke width. Also the stroke width of `line`. */
|
|
39
|
+
barWidth?: number;
|
|
40
|
+
/** Gap between capsules. `bars` spaces itself evenly across the width. */
|
|
41
|
+
barGap?: number;
|
|
42
|
+
/** Drawing height. `ambient` ignores it and fills its parent. */
|
|
43
|
+
height?: number;
|
|
44
|
+
/**
|
|
45
|
+
* `static` gives every bar a band of the current level; `scrolling` keeps a
|
|
46
|
+
* history that slides across, newest at the trailing edge. `bars` only.
|
|
47
|
+
*/
|
|
48
|
+
mode?: 'static' | 'scrolling';
|
|
49
|
+
/** Grow bars from the middle out rather than up from the baseline. */
|
|
50
|
+
centered?: boolean;
|
|
51
|
+
/** Fade the wave out at both ends, so it does not stop at a hard edge. */
|
|
52
|
+
fadeEdges?: boolean;
|
|
53
|
+
/** Multiplier on the incoming level, applied before it is clamped to 1. */
|
|
54
|
+
sensitivity?: number;
|
|
55
|
+
/** Multiplier on the wave's own tempo, including how fast history scrolls. */
|
|
56
|
+
speed?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Ink. Takes a colour — `#f97316`, `rgba(…)` — or a **theme token name**,
|
|
59
|
+
* `color="--color-info"`, which resolves against the active theme and follows
|
|
60
|
+
* it into dark mode.
|
|
61
|
+
*
|
|
62
|
+
* Left unset, a wave inside a surface that publishes a foreground (a chat
|
|
63
|
+
* bubble, a button) is drawn in that foreground, and anywhere else in
|
|
64
|
+
* `--color-foreground` — or `--color-info` for `ambient`.
|
|
65
|
+
*/
|
|
66
|
+
color?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Colour across the wave instead of one flat ink: two or more colours spread
|
|
69
|
+
* left to right, or ramped up from the bottom edge for `ambient`. Literal
|
|
70
|
+
* colours only — for a themed one, resolve the tokens with `useCSSVariable`
|
|
71
|
+
* and pass the result.
|
|
72
|
+
*/
|
|
73
|
+
gradient?: readonly string[];
|
|
74
|
+
/**
|
|
75
|
+
* Colour of the part of a recording that has not played yet. Defaults to the
|
|
76
|
+
* ink at low opacity, which is right for most surfaces; set it when you want
|
|
77
|
+
* the track to read as its own thing. `bars` with `progress`.
|
|
78
|
+
*/
|
|
79
|
+
trackColor?: string;
|
|
80
|
+
/** Freeze on the current frame. */
|
|
81
|
+
paused?: boolean;
|
|
82
|
+
/** Corner radius `ambient` traces. Match it to the screen it sits on. */
|
|
83
|
+
radius?: number;
|
|
84
|
+
/** Overrides the per-state default announced to screen readers. */
|
|
85
|
+
accessibilityLabel?: string;
|
|
86
|
+
}
|
|
87
|
+
export declare function Soundwave({ className, variant, state, level, levels, progress, bars, barWidth, barGap, height, mode, centered, fadeEdges, sensitivity, speed, color, gradient, trackColor, paused, radius, accessibilityLabel, style, ...props }: SoundwaveProps): import("react").JSX.Element;
|
|
88
|
+
export declare namespace Soundwave {
|
|
89
|
+
var displayName: string;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/soundwave/index.tsx"],"names":[],"mappings":"AA6CA,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAiB,EAMf,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AAQjC,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAwrB5E,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAC9B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,OAAiB,EACjB,KAAmB,EACnB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAe,EACf,QAAe,EACf,SAAS,EACT,WAAe,EACf,KAAS,EACT,KAAK,EACL,QAAQ,EACR,UAAU,EACV,MAAc,EACd,MAAW,EACX,kBAAkB,EAClB,KAAK,EACL,GAAG,KAAK,EACT,EAAE,cAAc,+BA0JhB;yBAlLe,SAAS"}
|
|
@@ -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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C;AAC9C,KAAK,aAAa,GAAG,OAAO,CAC1B,cAAc,EACd,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAC5D,CAAC;AAoCF,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC3E,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AA6BD,MAAM,WAAW,wBAAyB,SAAQ,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"}
|
|
@@ -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,CA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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,wBAAgB,QAAQ,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"}
|
|
@@ -16,6 +16,8 @@ export { BottomSheet, type BottomSheetProps, type BottomSheetContentProps, } fro
|
|
|
16
16
|
export { Button, type ButtonProps } from './components/button/index.js';
|
|
17
17
|
export { ToggleButton, ToggleButtonGroup, useToggleButton, type ToggleButtonProps, type ToggleButtonGroupProps, type ToggleButtonLabelProps, type ToggleButtonSize, type ToggleButtonVariant, type ToggleSelectionMode, } from './components/toggle-button/index.js';
|
|
18
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';
|
|
19
21
|
export { Frame, type FrameProps, type FrameRootProps, type FramePanelProps, type FrameRowProps, type FrameSectionProps, type FrameVariant, } from './components/frame/index.js';
|
|
20
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';
|
|
21
23
|
export { Select, type SelectProps, type SelectItemProps, type SelectPresentation, } from './components/select/index.js';
|
|
@@ -51,7 +53,7 @@ export { Switch, type SwitchProps } from './components/switch/index.js';
|
|
|
51
53
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineIndicatorProps, type TimelineStatProps, type TimelineVariant, type TimelineTone, } from './components/timeline/index.js';
|
|
52
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';
|
|
53
55
|
export { Typography, type TypographyProps, type TypographyType, type TypographyHeadingProps, type TypographyParagraphProps, type TypographyCodeProps, } from './components/typography/index.js';
|
|
54
|
-
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';
|
|
55
57
|
export * from './hooks/index.js';
|
|
56
58
|
export { cn } from './utils/cn.js';
|
|
57
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,CAAC;AAG3B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAmB,CAAC;AACzD,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,kCAA+B,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5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native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "High-performance React Native UI components for Expo. Semantic design tokens, powered by Uniwind (Tailwind v4) and Reanimated.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Direction — reading direction for everything below it.
|
|
3
|
+
*
|
|
4
|
+
* ```tsx
|
|
5
|
+
* <Direction dir="rtl">
|
|
6
|
+
* <App />
|
|
7
|
+
* </Direction>
|
|
8
|
+
* ```
|
|
9
|
+
*
|
|
10
|
+
* The layout flip is Yoga's, not ours: the wrapper carries the `direction`
|
|
11
|
+
* style, and every row, `start`/`end` inset and horizontal padding underneath
|
|
12
|
+
* it mirrors natively. That is the whole reason this is a component and not a
|
|
13
|
+
* bare context — `direction` is a *style*, so a subtree is the unit it applies
|
|
14
|
+
* to.
|
|
15
|
+
*
|
|
16
|
+
* It is also the reason to prefer it over flipping the process with
|
|
17
|
+
* `I18nManager.forceRTL`, which needs an app restart to take effect, cannot be
|
|
18
|
+
* scoped to part of a screen, and cannot be previewed side by side. Here the
|
|
19
|
+
* value is a prop: change it and the next frame is mirrored.
|
|
20
|
+
*
|
|
21
|
+
* ## What Yoga does not flip
|
|
22
|
+
*
|
|
23
|
+
* Anything measured in raw pixels rather than laid out — a drag translation, an
|
|
24
|
+
* indicator offset, the direction a sweep travels. Those have to consult the
|
|
25
|
+
* value and negate it themselves, which is what `useDirection()` is for:
|
|
26
|
+
*
|
|
27
|
+
* ```tsx
|
|
28
|
+
* const dir = useDirection();
|
|
29
|
+
* const delta = (dir === 'rtl' ? -event.translationX : event.translationX) / width;
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* With no provider mounted, and for a `<Direction>` given no `dir`, the value
|
|
33
|
+
* comes from the device — so an app that did force RTL the old way still reads
|
|
34
|
+
* back the truth.
|
|
35
|
+
*/
|
|
36
|
+
import { createContext, useContext, useMemo, type ReactNode } from 'react';
|
|
37
|
+
import { I18nManager, View, type ViewProps } from 'react-native';
|
|
38
|
+
import { cn } from '../../utils/cn';
|
|
39
|
+
|
|
40
|
+
export type DirectionValue = 'ltr' | 'rtl';
|
|
41
|
+
|
|
42
|
+
/** What the device is set to, for anything outside a provider. */
|
|
43
|
+
const deviceDirection = (): DirectionValue => (I18nManager.isRTL ? 'rtl' : 'ltr');
|
|
44
|
+
|
|
45
|
+
const DirectionContext = createContext<DirectionValue | null>(null);
|
|
46
|
+
|
|
47
|
+
export interface DirectionProps extends ViewProps {
|
|
48
|
+
className?: string;
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Reading direction for this subtree. Defaults to the nearest enclosing
|
|
52
|
+
* `Direction`, or to the device when there is none — so a nested provider
|
|
53
|
+
* with no `dir` inherits rather than resetting to left-to-right.
|
|
54
|
+
*/
|
|
55
|
+
dir?: DirectionValue;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Provider. Renders one `View` — it has to, since the flip is a style — which
|
|
60
|
+
* fills its parent by default so it can wrap an app. Pass `className` to change
|
|
61
|
+
* that: `flex-none` or a width class both win over the default.
|
|
62
|
+
*/
|
|
63
|
+
export function Direction({ className, children, dir, style, ...props }: DirectionProps) {
|
|
64
|
+
const inherited = useContext(DirectionContext);
|
|
65
|
+
const value = dir ?? inherited ?? deviceDirection();
|
|
66
|
+
|
|
67
|
+
// The style object is memoised because it is the thing that invalidates
|
|
68
|
+
// layout for the entire subtree — a fresh one each render would re-run Yoga
|
|
69
|
+
// on every parent render, for a value that almost never changes.
|
|
70
|
+
const directionStyle = useMemo(() => ({ direction: value }) as const, [value]);
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<DirectionContext.Provider value={value}>
|
|
74
|
+
<View className={cn('flex-1', className)} style={[directionStyle, style]} {...props}>
|
|
75
|
+
{children}
|
|
76
|
+
</View>
|
|
77
|
+
</DirectionContext.Provider>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
Direction.displayName = 'Direction';
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The reading direction in force, for a component that has to flip maths Yoga
|
|
85
|
+
* cannot flip for it. Safe with no provider mounted: it falls back to the
|
|
86
|
+
* device's own setting.
|
|
87
|
+
*/
|
|
88
|
+
export function useDirection(): DirectionValue {
|
|
89
|
+
return useContext(DirectionContext) ?? deviceDirection();
|
|
90
|
+
}
|
|
@@ -31,6 +31,8 @@ import {
|
|
|
31
31
|
} from 'react';
|
|
32
32
|
import { View, type GestureResponderEvent, type ViewProps } from 'react-native';
|
|
33
33
|
import { tv, type VariantProps } from 'tailwind-variants';
|
|
34
|
+
import { useCSSVariable } from 'uniwind';
|
|
35
|
+
import { IconColorProvider } from '../../icons';
|
|
34
36
|
import { AnimatedPressable } from '../../primitives/animated-pressable';
|
|
35
37
|
import { Text, type TextProps } from '../../primitives/text';
|
|
36
38
|
import { cn } from '../../utils/cn';
|
|
@@ -257,9 +259,23 @@ const MessageBubble = forwardRef<View, MessageBubbleProps>(
|
|
|
257
259
|
const { align } = useMessageContext();
|
|
258
260
|
const { bubble } = messageVariants({ align });
|
|
259
261
|
|
|
262
|
+
/*
|
|
263
|
+
* A sent bubble is painted in the primary colour, and the theme's text
|
|
264
|
+
* colour is often that same colour — so anything inside it that resolves
|
|
265
|
+
* the foreground for itself draws black on black. Text has always been
|
|
266
|
+
* handled, through `Message.BubbleContent`; an icon or a waveform dropped
|
|
267
|
+
* into a bubble had no way to know. Publishing the bubble's own foreground
|
|
268
|
+
* here fixes all of them at once, the same way Button does for its label.
|
|
269
|
+
*/
|
|
270
|
+
const foreground = useCSSVariable(
|
|
271
|
+
align === 'end' ? '--color-primary-foreground' : '--color-foreground'
|
|
272
|
+
);
|
|
273
|
+
|
|
260
274
|
return (
|
|
261
275
|
<View ref={ref} className={bubble({ className })} {...props}>
|
|
262
|
-
{
|
|
276
|
+
<IconColorProvider color={typeof foreground === 'string' ? foreground : undefined}>
|
|
277
|
+
{children}
|
|
278
|
+
</IconColorProvider>
|
|
263
279
|
</View>
|
|
264
280
|
);
|
|
265
281
|
}
|