panelui-native 0.6.0 → 0.9.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 +1 -1
- package/lib/module/components/accordion/index.js +7 -5
- package/lib/module/components/accordion/index.js.map +1 -1
- package/lib/module/components/alert/index.js +3 -6
- package/lib/module/components/alert/index.js.map +1 -1
- package/lib/module/components/attachment/index.js +219 -0
- package/lib/module/components/attachment/index.js.map +1 -0
- package/lib/module/components/bottom-sheet/index.js +82 -4
- package/lib/module/components/bottom-sheet/index.js.map +1 -1
- package/lib/module/components/button/index.js +36 -1
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/dialog/index.js +6 -2
- package/lib/module/components/dialog/index.js.map +1 -1
- package/lib/module/components/empty-state/index.js +98 -22
- package/lib/module/components/empty-state/index.js.map +1 -1
- package/lib/module/components/inline-select/index.js +171 -46
- package/lib/module/components/inline-select/index.js.map +1 -1
- package/lib/module/components/input/index.js +28 -5
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/input-group/index.js +0 -1
- package/lib/module/components/input-group/index.js.map +1 -1
- package/lib/module/components/item/index.js +359 -0
- package/lib/module/components/item/index.js.map +1 -0
- package/lib/module/components/label/index.js +5 -3
- package/lib/module/components/label/index.js.map +1 -1
- package/lib/module/components/line-chart/index.js +1024 -0
- package/lib/module/components/line-chart/index.js.map +1 -0
- package/lib/module/components/marker/index.js +190 -0
- package/lib/module/components/marker/index.js.map +1 -0
- package/lib/module/components/message/index.js +334 -0
- package/lib/module/components/message/index.js.map +1 -0
- package/lib/module/components/message-scroller/index.js +451 -0
- package/lib/module/components/message-scroller/index.js.map +1 -0
- package/lib/module/components/popover/index.js +500 -0
- package/lib/module/components/popover/index.js.map +1 -0
- package/lib/module/components/radio-group/index.js +104 -16
- package/lib/module/components/radio-group/index.js.map +1 -1
- package/lib/module/components/scroll-fade/index.js +119 -71
- package/lib/module/components/scroll-fade/index.js.map +1 -1
- package/lib/module/components/select/index.js +35 -6
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/components/separator/index.js +91 -0
- package/lib/module/components/separator/index.js.map +1 -0
- package/lib/module/components/shimmer/index.js +111 -64
- package/lib/module/components/shimmer/index.js.map +1 -1
- package/lib/module/components/surface/index.js +24 -4
- package/lib/module/components/surface/index.js.map +1 -1
- package/lib/module/components/switch/index.js +20 -1
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/toast/index.js +7 -8
- package/lib/module/components/toast/index.js.map +1 -1
- package/lib/module/components/typography/index.js +3 -3
- package/lib/module/hooks/index.js +1 -0
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/use-breakpoint.js +2 -2
- package/lib/module/hooks/use-copy-to-clipboard.js +0 -2
- package/lib/module/hooks/use-copy-to-clipboard.js.map +1 -1
- package/lib/module/hooks/use-keyboard-avoidance.js +120 -0
- package/lib/module/hooks/use-keyboard-avoidance.js.map +1 -0
- package/lib/module/icons/index.js +73 -4
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +13 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/index.js +53 -0
- package/lib/module/native/index.js.map +1 -0
- package/lib/module/primitives/keyboard-avoider.js +40 -0
- package/lib/module/primitives/keyboard-avoider.js.map +1 -0
- package/lib/module/primitives/scrim.js +72 -0
- package/lib/module/primitives/scrim.js.map +1 -0
- package/lib/module/providers/panel-ui-provider.js +24 -4
- package/lib/module/providers/panel-ui-provider.js.map +1 -1
- package/lib/module/theme/use-theme.js +1 -1
- package/lib/typescript/src/components/accordion/index.d.ts +7 -5
- package/lib/typescript/src/components/accordion/index.d.ts.map +1 -1
- package/lib/typescript/src/components/alert/index.d.ts +3 -6
- package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
- package/lib/typescript/src/components/attachment/index.d.ts +93 -0
- package/lib/typescript/src/components/attachment/index.d.ts.map +1 -0
- package/lib/typescript/src/components/bottom-sheet/index.d.ts +27 -2
- package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts +11 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/dialog/index.d.ts +7 -1
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
- package/lib/typescript/src/components/empty-state/index.d.ts +156 -7
- package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -1
- package/lib/typescript/src/components/inline-select/index.d.ts +29 -6
- package/lib/typescript/src/components/inline-select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/input/index.d.ts +13 -0
- package/lib/typescript/src/components/input/index.d.ts.map +1 -1
- package/lib/typescript/src/components/input-group/index.d.ts +0 -1
- package/lib/typescript/src/components/input-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/item/index.d.ts +286 -0
- package/lib/typescript/src/components/item/index.d.ts.map +1 -0
- package/lib/typescript/src/components/label/index.d.ts +5 -3
- package/lib/typescript/src/components/label/index.d.ts.map +1 -1
- package/lib/typescript/src/components/line-chart/index.d.ts +247 -0
- package/lib/typescript/src/components/line-chart/index.d.ts.map +1 -0
- package/lib/typescript/src/components/marker/index.d.ts +137 -0
- package/lib/typescript/src/components/marker/index.d.ts.map +1 -0
- package/lib/typescript/src/components/message/index.d.ts +177 -0
- package/lib/typescript/src/components/message/index.d.ts.map +1 -0
- package/lib/typescript/src/components/message-scroller/index.d.ts +150 -0
- package/lib/typescript/src/components/message-scroller/index.d.ts.map +1 -0
- package/lib/typescript/src/components/popover/index.d.ts +130 -0
- package/lib/typescript/src/components/popover/index.d.ts.map +1 -0
- package/lib/typescript/src/components/radio-group/index.d.ts +32 -0
- package/lib/typescript/src/components/radio-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/scroll-fade/index.d.ts +18 -9
- package/lib/typescript/src/components/scroll-fade/index.d.ts.map +1 -1
- package/lib/typescript/src/components/select/index.d.ts +16 -1
- package/lib/typescript/src/components/select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/separator/index.d.ts +47 -0
- package/lib/typescript/src/components/separator/index.d.ts.map +1 -0
- package/lib/typescript/src/components/shimmer/index.d.ts +38 -20
- package/lib/typescript/src/components/shimmer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/surface/index.d.ts +51 -2
- package/lib/typescript/src/components/surface/index.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/index.d.ts +10 -0
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/index.d.ts +4 -4
- package/lib/typescript/src/components/toast/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/index.d.ts +1 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-breakpoint.d.ts +2 -2
- package/lib/typescript/src/hooks/use-copy-to-clipboard.d.ts +0 -2
- package/lib/typescript/src/hooks/use-copy-to-clipboard.d.ts.map +1 -1
- package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts +20 -0
- package/lib/typescript/src/hooks/use-keyboard-avoidance.d.ts.map +1 -0
- package/lib/typescript/src/icons/index.d.ts +10 -4
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +11 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/index.d.ts +35 -0
- package/lib/typescript/src/native/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/keyboard-avoider.d.ts +22 -0
- package/lib/typescript/src/primitives/keyboard-avoider.d.ts.map +1 -0
- package/lib/typescript/src/primitives/scrim.d.ts +21 -0
- package/lib/typescript/src/primitives/scrim.d.ts.map +1 -0
- package/lib/typescript/src/providers/panel-ui-provider.d.ts +1 -1
- package/lib/typescript/src/providers/panel-ui-provider.d.ts.map +1 -1
- package/lib/typescript/src/theme/use-theme.d.ts +1 -1
- package/package.json +16 -3
- package/src/components/accordion/index.tsx +7 -5
- package/src/components/alert/index.tsx +3 -6
- package/src/components/attachment/index.tsx +279 -0
- package/src/components/bottom-sheet/index.tsx +102 -2
- package/src/components/button/index.tsx +52 -0
- package/src/components/dialog/index.tsx +10 -1
- package/src/components/empty-state/index.tsx +64 -19
- package/src/components/inline-select/index.tsx +191 -44
- package/src/components/input/index.tsx +39 -3
- package/src/components/input-group/index.tsx +0 -1
- package/src/components/item/index.tsx +387 -0
- package/src/components/label/index.tsx +5 -3
- package/src/components/line-chart/index.tsx +1224 -0
- package/src/components/marker/index.tsx +194 -0
- package/src/components/message/index.tsx +336 -0
- package/src/components/message-scroller/index.tsx +574 -0
- package/src/components/popover/index.tsx +599 -0
- package/src/components/radio-group/index.tsx +108 -17
- package/src/components/scroll-fade/index.tsx +163 -51
- package/src/components/select/index.tsx +54 -9
- package/src/components/separator/index.tsx +97 -0
- package/src/components/shimmer/index.tsx +151 -58
- package/src/components/surface/index.tsx +32 -5
- package/src/components/switch/index.tsx +27 -1
- package/src/components/toast/index.tsx +7 -8
- package/src/components/typography/index.tsx +3 -3
- package/src/hooks/index.ts +5 -0
- package/src/hooks/use-breakpoint.ts +2 -2
- package/src/hooks/use-copy-to-clipboard.ts +0 -2
- package/src/hooks/use-keyboard-avoidance.ts +140 -0
- package/src/icons/index.tsx +52 -4
- package/src/index.ts +92 -0
- package/src/native/index.ts +79 -0
- package/src/primitives/keyboard-avoider.tsx +49 -0
- package/src/primitives/scrim.tsx +95 -0
- package/src/providers/panel-ui-provider.tsx +30 -9
- package/src/theme/use-theme.ts +1 -1
- package/theme.css +63 -3
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ScrollFade — fades the edges of a scroll container.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* timelines, so the fades are SVG gradients overlaid on each edge, with their
|
|
8
|
-
* opacity following the scroll position.
|
|
4
|
+
* Content that runs past a boundary reads better fading out than being cut
|
|
5
|
+
* off, and the fade doubles as an affordance: an edge that is fading is an
|
|
6
|
+
* edge with more content behind it.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* Scroll position, content size and viewport size are all held in shared
|
|
9
|
+
* values and consumed by `useAnimatedStyle`, so the fades track the scroll on
|
|
10
|
+
* the UI thread without re-rendering React.
|
|
12
11
|
*
|
|
13
12
|
* ```tsx
|
|
14
13
|
* <ScrollFade>
|
|
@@ -23,15 +22,25 @@ export interface ScrollFadeProps extends ViewProps {
|
|
|
23
22
|
/** Depth of the fade in pixels. */
|
|
24
23
|
size?: number;
|
|
25
24
|
/** Which edges fade. */
|
|
26
|
-
edges?: 'both' | 'start' | 'end';
|
|
25
|
+
edges?: 'both' | 'start' | 'end' | 'none';
|
|
26
|
+
/**
|
|
27
|
+
* Scroll axis. Inferred from the child's `horizontal` prop when omitted —
|
|
28
|
+
* pass it explicitly for children that scroll horizontally without that prop
|
|
29
|
+
* (a `FlatList` with `horizontal` set through `contentContainerStyle`, say).
|
|
30
|
+
*/
|
|
31
|
+
orientation?: 'horizontal' | 'vertical';
|
|
27
32
|
/**
|
|
28
33
|
* Colour the fade resolves to — normally whatever sits behind the
|
|
29
34
|
* scrollable. Defaults to the theme's background.
|
|
30
35
|
*/
|
|
31
36
|
color?: string;
|
|
37
|
+
/** Distance in pixels over which an edge fades from clear to full. */
|
|
38
|
+
fadeInDistance?: number;
|
|
39
|
+
/** Set false to render the child with no fades at all. */
|
|
40
|
+
enabled?: boolean;
|
|
32
41
|
children?: ReactNode;
|
|
33
42
|
}
|
|
34
|
-
export declare function ScrollFade({ className, size, edges, color, children, ...props }: ScrollFadeProps): import("react").JSX.Element;
|
|
43
|
+
export declare function ScrollFade({ className, size, edges, orientation, color, fadeInDistance, enabled, children, ...props }: ScrollFadeProps): import("react").JSX.Element;
|
|
35
44
|
export declare namespace ScrollFade {
|
|
36
45
|
var displayName: string;
|
|
37
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/scroll-fade/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/scroll-fade/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAML,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAgBtB,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAC1C;;;;OAIG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAUD,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,IAAS,EACT,KAAc,EACd,WAAW,EACX,KAAK,EACL,cAAyC,EACzC,OAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,eAAe,+BAiHjB;yBA3He,UAAU"}
|
|
@@ -13,9 +13,24 @@ export interface SelectProps {
|
|
|
13
13
|
/** Sheet title shown above the options. */
|
|
14
14
|
title?: string;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Render the platform's own picker instead of the trigger-and-sheet pair.
|
|
18
|
+
* Requires the optional `@expo/ui` package; without it this prop does
|
|
19
|
+
* nothing.
|
|
20
|
+
*
|
|
21
|
+
* **Theme tokens do not apply** — the platform draws the picker, so
|
|
22
|
+
* `className` and `title` are ignored. `Select.Item` children still declare
|
|
23
|
+
* the options.
|
|
24
|
+
*/
|
|
25
|
+
native?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Native picker style. `menu` is a compact button opening a dropdown;
|
|
28
|
+
* `wheel` is an always-visible rotor (iOS; falls back to `menu` elsewhere).
|
|
29
|
+
*/
|
|
30
|
+
nativeAppearance?: 'menu' | 'wheel';
|
|
16
31
|
children: ReactNode;
|
|
17
32
|
}
|
|
18
|
-
declare function SelectRoot({ className, value, onValueChange, placeholder, title, disabled, children, }: SelectProps): import("react").JSX.Element;
|
|
33
|
+
declare function SelectRoot({ className, value, onValueChange, placeholder, title, disabled, native, nativeAppearance, children, }: SelectProps): import("react").JSX.Element;
|
|
19
34
|
export declare const Select: typeof SelectRoot & {
|
|
20
35
|
Item: typeof SelectItem;
|
|
21
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAoCf,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,4DAA4D;AAC5D,iBAAS,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,eAAe,+BA4BpD;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,KAAK,EACL,aAAa,EACb,WAAgC,EAChC,KAAK,EACL,QAAQ,EACR,MAAM,EACN,gBAAyB,EACzB,QAAQ,GACT,EAAE,WAAW,+BA+Fb;AAED,eAAO,MAAM,MAAM;;CAEjB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { View, type ViewProps } from 'react-native';
|
|
2
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
3
|
+
declare const separatorVariants: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
orientation: {
|
|
5
|
+
horizontal: string;
|
|
6
|
+
vertical: string;
|
|
7
|
+
};
|
|
8
|
+
variant: {
|
|
9
|
+
thin: string;
|
|
10
|
+
thick: string;
|
|
11
|
+
};
|
|
12
|
+
}, undefined, "bg-border", {
|
|
13
|
+
orientation: {
|
|
14
|
+
horizontal: string;
|
|
15
|
+
vertical: string;
|
|
16
|
+
};
|
|
17
|
+
variant: {
|
|
18
|
+
thin: string;
|
|
19
|
+
thick: string;
|
|
20
|
+
};
|
|
21
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
22
|
+
orientation: {
|
|
23
|
+
horizontal: string;
|
|
24
|
+
vertical: string;
|
|
25
|
+
};
|
|
26
|
+
variant: {
|
|
27
|
+
thin: string;
|
|
28
|
+
thick: string;
|
|
29
|
+
};
|
|
30
|
+
}, undefined, "bg-border", unknown, unknown, undefined>>;
|
|
31
|
+
export interface SeparatorProps extends ViewProps, VariantProps<typeof separatorVariants> {
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Thickness in pixels, overriding the variant. Sets the height of a
|
|
35
|
+
* horizontal separator and the width of a vertical one.
|
|
36
|
+
*/
|
|
37
|
+
thickness?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the separator is only visual. A decorative separator is skipped by
|
|
40
|
+
* screen readers; set false when the split itself carries meaning — between
|
|
41
|
+
* two groups of menu items, say — and it is announced instead.
|
|
42
|
+
*/
|
|
43
|
+
decorative?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<View>>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/separator/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAwBrB,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,SAAS,EACf,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,SAAS,iGA6BrB,CAAC"}
|
|
@@ -1,41 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shimmer —
|
|
2
|
+
* Shimmer — a highlight that sweeps *through* content rather than over it.
|
|
3
3
|
*
|
|
4
|
-
* The
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* overlay by Reanimated, on the UI thread.
|
|
9
|
-
*
|
|
10
|
-
* The visible difference: the band passes *over* the content rather than
|
|
11
|
-
* being clipped to glyph shapes. On body-sized text the two read the same; on
|
|
12
|
-
* very large text the web version is crisper.
|
|
4
|
+
* The content is used as a mask, and a gradient band is swept behind it on the
|
|
5
|
+
* UI thread. Because the content is the mask, the highlight is clipped to the
|
|
6
|
+
* glyph shapes: text reads as though the letters themselves are catching a
|
|
7
|
+
* light, which is the "thinking…" treatment familiar from AI chat interfaces.
|
|
13
8
|
*
|
|
14
9
|
* ```tsx
|
|
15
|
-
* <Shimmer>
|
|
16
|
-
* <Text muted>Generating response…</Text>
|
|
17
|
-
* </Shimmer>
|
|
10
|
+
* <Shimmer>Thinking…</Shimmer>
|
|
18
11
|
* ```
|
|
12
|
+
*
|
|
13
|
+
* Set `as="view"` to shimmer arbitrary children (skeleton blocks, cards) — the
|
|
14
|
+
* mask is then the rendered subtree's alpha instead of a line of text.
|
|
19
15
|
*/
|
|
20
16
|
import { type ReactNode } from 'react';
|
|
21
|
-
import { type ViewProps } from 'react-native';
|
|
17
|
+
import { type StyleProp, type TextStyle, type ViewProps } from 'react-native';
|
|
22
18
|
export interface ShimmerProps extends ViewProps {
|
|
23
19
|
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* `text` renders `children` as a single styled string and masks the sweep to
|
|
22
|
+
* the glyphs. `view` masks the sweep to whatever subtree you pass.
|
|
23
|
+
*/
|
|
24
|
+
as?: 'text' | 'view';
|
|
24
25
|
/** Milliseconds for one sweep. */
|
|
25
26
|
duration?: number;
|
|
26
|
-
/**
|
|
27
|
+
/** Width of the highlight band, as a multiple of the content width. */
|
|
28
|
+
spread?: number;
|
|
29
|
+
/** Colour of the content at rest. Defaults to the theme's muted foreground. */
|
|
30
|
+
baseColor?: string;
|
|
31
|
+
/** Colour at the centre of the sweep. Defaults to the theme's foreground. */
|
|
32
|
+
shimmerColor?: string;
|
|
33
|
+
/** `loop` restarts from the left; `ping-pong` reverses on each pass. */
|
|
34
|
+
mode?: 'loop' | 'ping-pong';
|
|
35
|
+
/** Sweep once instead of repeating. */
|
|
27
36
|
once?: boolean;
|
|
28
37
|
/** Sweep right-to-left. */
|
|
29
38
|
reverse?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
/**
|
|
39
|
+
/** Set false to render the content statically without animating. */
|
|
40
|
+
enabled?: boolean;
|
|
41
|
+
/** Extra classes for the text when `as="text"`. */
|
|
42
|
+
textClassName?: string;
|
|
43
|
+
/** Extra styles for the text when `as="text"`. */
|
|
44
|
+
textStyle?: StyleProp<TextStyle>;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use `shimmerColor`.
|
|
47
|
+
*/
|
|
33
48
|
color?: string;
|
|
34
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Peak opacity of the highlight.
|
|
51
|
+
* @deprecated Set `shimmerColor` to a colour with the alpha you want.
|
|
52
|
+
*/
|
|
35
53
|
intensity?: number;
|
|
36
54
|
children?: ReactNode;
|
|
37
55
|
}
|
|
38
|
-
export declare function Shimmer({ className, duration, once, reverse,
|
|
56
|
+
export declare function Shimmer({ className, as, duration, spread, baseColor, shimmerColor, mode, once, reverse, enabled, textClassName, textStyle, color, intensity, children, ...props }: ShimmerProps): import("react").JSX.Element;
|
|
39
57
|
export declare namespace Shimmer {
|
|
40
58
|
var displayName: string;
|
|
41
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shimmer/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shimmer/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAgBtB,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC5B,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2BAA2B;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,EAAW,EACX,QAAe,EACf,MAAU,EACV,SAAS,EACT,YAAY,EACZ,IAAa,EACb,IAAY,EACZ,OAAe,EACf,OAAc,EACd,aAAa,EACb,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,YAAY,+BAqGd;yBAtHe,OAAO"}
|
|
@@ -7,13 +7,37 @@ declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
7
7
|
tertiary: string;
|
|
8
8
|
transparent: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
padding: {
|
|
11
|
+
none: string;
|
|
12
|
+
sm: string;
|
|
13
|
+
default: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
};
|
|
16
|
+
bordered: {
|
|
17
|
+
true: string;
|
|
18
|
+
};
|
|
19
|
+
elevated: {
|
|
20
|
+
true: string;
|
|
21
|
+
};
|
|
22
|
+
}, undefined, "overflow-hidden rounded-3xl", {
|
|
11
23
|
variant: {
|
|
12
24
|
default: string;
|
|
13
25
|
secondary: string;
|
|
14
26
|
tertiary: string;
|
|
15
27
|
transparent: string;
|
|
16
28
|
};
|
|
29
|
+
padding: {
|
|
30
|
+
none: string;
|
|
31
|
+
sm: string;
|
|
32
|
+
default: string;
|
|
33
|
+
lg: string;
|
|
34
|
+
};
|
|
35
|
+
bordered: {
|
|
36
|
+
true: string;
|
|
37
|
+
};
|
|
38
|
+
elevated: {
|
|
39
|
+
true: string;
|
|
40
|
+
};
|
|
17
41
|
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
18
42
|
variant: {
|
|
19
43
|
default: string;
|
|
@@ -21,9 +45,34 @@ declare const surfaceVariants: import("tailwind-variants").TVReturnType<{
|
|
|
21
45
|
tertiary: string;
|
|
22
46
|
transparent: string;
|
|
23
47
|
};
|
|
24
|
-
|
|
48
|
+
padding: {
|
|
49
|
+
none: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
default: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
};
|
|
54
|
+
bordered: {
|
|
55
|
+
true: string;
|
|
56
|
+
};
|
|
57
|
+
elevated: {
|
|
58
|
+
true: string;
|
|
59
|
+
};
|
|
60
|
+
}, undefined, "overflow-hidden rounded-3xl", unknown, unknown, undefined>>;
|
|
25
61
|
export interface SurfaceProps extends ViewProps, VariantProps<typeof surfaceVariants> {
|
|
26
62
|
className?: string;
|
|
63
|
+
/**
|
|
64
|
+
* A hairline border. A surface the same colour as what it sits on needs one
|
|
65
|
+
* to read as a distinct plane rather than dissolving into the background.
|
|
66
|
+
*/
|
|
67
|
+
bordered?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* A soft shadow lifting the surface off the page. Off by default because a
|
|
70
|
+
* nested surface reads its depth from its fill, not from a shadow it would
|
|
71
|
+
* only cast onto its parent.
|
|
72
|
+
*/
|
|
73
|
+
elevated?: boolean;
|
|
74
|
+
/** Inner spacing. `none` is for a surface wrapping a bled image or a chart. */
|
|
75
|
+
padding?: 'none' | 'sm' | 'default' | 'lg';
|
|
27
76
|
}
|
|
28
77
|
export declare const Surface: import("react").ForwardRefExoticComponent<SurfaceProps & import("react").RefAttributes<View>>;
|
|
29
78
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/surface/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/surface/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAc,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EA0BnB,CAAC;AAEH,MAAM,WAAW,YACf,SAAQ,SAAS,EACf,YAAY,CAAC,OAAO,eAAe,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,OAAO,+FAYnB,CAAC"}
|
|
@@ -66,6 +66,16 @@ export interface SwitchProps extends VariantProps<typeof switchVariants> {
|
|
|
66
66
|
value: boolean;
|
|
67
67
|
onValueChange?: (value: boolean) => void;
|
|
68
68
|
disabled?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Render the platform's own switch instead of this one. Requires the
|
|
71
|
+
* optional `@expo/ui` package; without it this prop does nothing.
|
|
72
|
+
*
|
|
73
|
+
* **Theme tokens do not apply** — the platform draws the control, so
|
|
74
|
+
* `className` and `size` are ignored.
|
|
75
|
+
*/
|
|
76
|
+
native?: boolean;
|
|
77
|
+
/** Text label drawn beside the control. Native mode only. */
|
|
78
|
+
label?: string;
|
|
69
79
|
}
|
|
70
80
|
/**
|
|
71
81
|
* Animated switch. Thumb position and active-track opacity are driven on the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAK1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAkBlB,CAAC;AAIH,MAAM,WAAW,WAAY,SAAQ,YAAY,CAAC,OAAO,cAAc,CAAC;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,8FAkDlB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Toast — transient notification.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Three ways to raise one, because the right amount of ceremony differs: a
|
|
5
|
+
* bare string, a config object with a title, description and action, or a
|
|
6
|
+
* custom component when none of that fits. The anatomy underneath is the same
|
|
7
|
+
* in all three.
|
|
8
8
|
*
|
|
9
9
|
* The viewport is mounted for you by PanelUIProvider; `useToast()` works
|
|
10
10
|
* anywhere below it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAkBpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAG7D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,oBAAW,CAAC;AACrD,OAAO,EACL,KAAK,EAEL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,kBAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAkBpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAG7D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,oBAAW,CAAC;AACrD,OAAO,EACL,KAAK,EAEL,KAAK,WA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-2,6 +2,7 @@ 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
6
|
export { useDebouncedValue } from './use-debounced-value.js';
|
|
6
7
|
export { usePrevious } from './use-previous.js';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,GAC9B,MAAM,4BAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EACb,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,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,2BAA2B,EAChC,KAAK,0BAA0B,GAChC,MAAM,6BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAAuB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAgB,CAAC"}
|
|
@@ -16,8 +16,8 @@ export interface UseBreakpointResult {
|
|
|
16
16
|
isLandscape: boolean;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Responsive state from the window size — the React Native answer to
|
|
20
|
-
*
|
|
19
|
+
* Responsive state from the window size — the React Native answer to a media
|
|
20
|
+
* query, which has no equivalent here.
|
|
21
21
|
*
|
|
22
22
|
* For styling, prefer Uniwind's responsive class prefixes (`md:flex-row`).
|
|
23
23
|
* Reach for this when the *behaviour* changes, not just the look — rendering
|
|
@@ -11,8 +11,6 @@ export interface UseCopyToClipboardResult {
|
|
|
11
11
|
/**
|
|
12
12
|
* Copy text to the clipboard, with a temporary "copied" state.
|
|
13
13
|
*
|
|
14
|
-
* Mirrors coss.com/ui's `useCopyToClipboard`.
|
|
15
|
-
*
|
|
16
14
|
* Requires `expo-clipboard`, which is an optional peer dependency — React
|
|
17
15
|
* Native removed `Clipboard` from core, and pulling in a required native
|
|
18
16
|
* module for one hook would cost every consumer who never calls it:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-copy-to-clipboard.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-copy-to-clipboard.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,yBAAyB;IACxC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,yDAAyD;IACzD,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED
|
|
1
|
+
{"version":3,"file":"use-copy-to-clipboard.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-copy-to-clipboard.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,yBAAyB;IACxC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,yDAAyD;IACzD,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAc,EACd,MAAM,GACP,GAAE,yBAA8B,GAAG,wBAAwB,CA6B3D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type LayoutChangeEvent, type View } from 'react-native';
|
|
2
|
+
import { useAnimatedStyle, type AnimatedRef } from 'react-native-reanimated';
|
|
3
|
+
export interface UseKeyboardAvoidanceOptions {
|
|
4
|
+
/** Set false to leave the element where it is. */
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
/** Gap to keep between the element's bottom edge and the keyboard. */
|
|
7
|
+
offset?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface UseKeyboardAvoidanceResult {
|
|
10
|
+
/** Attach to the element that should stay visible. */
|
|
11
|
+
ref: AnimatedRef<View>;
|
|
12
|
+
/** Attach to the same element — it is how the resting position is measured. */
|
|
13
|
+
onLayout: (event: LayoutChangeEvent) => void;
|
|
14
|
+
/** Apply to the same element. */
|
|
15
|
+
animatedStyle: ReturnType<typeof useAnimatedStyle>;
|
|
16
|
+
}
|
|
17
|
+
/** True when the keyboard controller is driving this, rather than the fallback. */
|
|
18
|
+
export declare function hasKeyboardController(): boolean;
|
|
19
|
+
export declare function useKeyboardAvoidance({ enabled, offset, }?: UseKeyboardAvoidanceOptions): UseKeyboardAvoidanceResult;
|
|
20
|
+
//# sourceMappingURL=use-keyboard-avoidance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-keyboard-avoidance.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-keyboard-avoidance.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAGL,gBAAgB,EAEhB,KAAK,WAAW,EAEjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,2BAA2B;IAC1C,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,sDAAsD;IACtD,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACvB,+EAA+E;IAC/E,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,MAAW,GACZ,GAAE,2BAAgC,GAAG,0BAA0B,CAsC/D"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Icon set.
|
|
3
3
|
*
|
|
4
4
|
* Two families live here:
|
|
5
|
-
* - Stroked 24×24 icons
|
|
6
|
-
*
|
|
7
|
-
* - Filled 16×16 status icons for Alert and Toast indicators
|
|
8
|
-
*
|
|
5
|
+
* - Stroked 24×24 icons on Lucide geometry, for chrome such as chevrons and
|
|
6
|
+
* the close button.
|
|
7
|
+
* - Filled 16×16 status icons for Alert and Toast indicators, which read
|
|
8
|
+
* better small than a stroked equivalent would.
|
|
9
9
|
*
|
|
10
10
|
* Every icon resolves its colour in the same order: an explicit `color` prop,
|
|
11
11
|
* then the colour inherited from an enclosing `IconColorProvider`, then its
|
|
@@ -66,4 +66,10 @@ export declare function CardIcon({ size, color, ...props }: IconProps): import("
|
|
|
66
66
|
export declare function ReceiptIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
67
67
|
/** Paper plane — sent, submitted, approved-and-forwarded. */
|
|
68
68
|
export declare function SendIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
69
|
+
/** Document with a folded corner — a file attachment. */
|
|
70
|
+
export declare function FileIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
71
|
+
/** Framed picture with a sun and a corner peak — an image attachment. */
|
|
72
|
+
export declare function ImageIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
73
|
+
/** A paperclip — attaching a file to a composer. */
|
|
74
|
+
export declare function PaperclipIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
|
|
69
75
|
//# 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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E;AAED,wDAAwD;AACxD,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAcxE;AAED,mDAAmD;AACnD,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAmBxE;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,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"}
|
|
@@ -2,10 +2,13 @@ export { PanelUIProvider, type PanelUIProviderProps } from './providers/panel-ui
|
|
|
2
2
|
export { useTheme, useThemeMode, PANEL_THEMES, PANEL_THEME_NAMES, PANEL_EXTRA_THEMES, type ThemeName, type ThemeMode, type PanelTheme, type PanelThemeFamily, } from './theme/use-theme.js';
|
|
3
3
|
export { Portal, PortalHost, PortalProvider } from './primitives/portal.js';
|
|
4
4
|
export { Text, type TextProps } from './primitives/text.js';
|
|
5
|
+
export { KeyboardAvoider, type KeyboardAvoiderProps, } from './primitives/keyboard-avoider.js';
|
|
5
6
|
export { AnimatedPressable, type AnimatedPressableProps, } from './primitives/animated-pressable.js';
|
|
7
|
+
export { hasNativeUI } from './native/index.js';
|
|
6
8
|
export { Accordion, type AccordionProps, type AccordionItemProps, type AccordionTriggerProps, type AccordionIndicatorProps, type AccordionContentProps, type AccordionVariant, type AccordionSelectionMode, } from './components/accordion/index.js';
|
|
7
9
|
export { Alert, type AlertProps, type AlertIndicatorProps, } from './components/alert/index.js';
|
|
8
10
|
export { Avatar, type AvatarProps, type AvatarBadgeProps, } from './components/avatar/index.js';
|
|
11
|
+
export { Attachment, type AttachmentProps, type AttachmentGroupProps, type AttachmentMediaProps, type AttachmentContentProps, type AttachmentTitleProps, type AttachmentDescriptionProps, type AttachmentActionsProps, type AttachmentActionProps, type AttachmentState, } from './components/attachment/index.js';
|
|
9
12
|
export { Badge, type BadgeProps } from './components/badge/index.js';
|
|
10
13
|
export { BottomSheet, type BottomSheetProps, type BottomSheetContentProps, } from './components/bottom-sheet/index.js';
|
|
11
14
|
export { Button, type ButtonProps } from './components/button/index.js';
|
|
@@ -19,10 +22,17 @@ export { Checkbox, type CheckboxProps } from './components/checkbox/index.js';
|
|
|
19
22
|
export { EmptyState, type EmptyStateProps, type EmptyStateMediaProps, } from './components/empty-state/index.js';
|
|
20
23
|
export { Input, type InputProps } from './components/input/index.js';
|
|
21
24
|
export { InputGroup, type InputGroupProps, type InputGroupInputProps, type InputGroupDecoratorProps, } from './components/input-group/index.js';
|
|
25
|
+
export { Item, type ItemProps, type ItemGroupProps, type ItemSeparatorProps, type ItemMediaProps, type ItemContentProps, type ItemTitleProps, type ItemDescriptionProps, type ItemActionsProps, type ItemHeaderProps, type ItemFooterProps, } from './components/item/index.js';
|
|
22
26
|
export { Label, type LabelProps, type LabelTextProps } from './components/label/index.js';
|
|
27
|
+
export { LineChart, useLineChart, type LineChartProps, type LineChartHandle, type LineChartGridProps, type LineChartLineProps, type LineChartAreaProps, type LineChartSkeletonProps, type LineChartXAxisProps, type LineChartTooltipProps, type LineChartLegendProps, type LineChartDatum, type LineChartStatus, type LineChartCurve, } from './components/line-chart/index.js';
|
|
28
|
+
export { Marker, type MarkerProps, type MarkerIconProps, type MarkerContentProps, } from './components/marker/index.js';
|
|
29
|
+
export { MessageScroller, useMessageScroller, useMessageScrollerVisibility, type MessageScrollerProps, type MessageScrollerViewportProps, type MessageScrollerContentProps, type MessageScrollerItemProps, type MessageScrollerButtonProps, type MessageScrollerPosition, } from './components/message-scroller/index.js';
|
|
30
|
+
export { Message, type MessageProps, type MessageGroupProps, type MessageAvatarProps, type MessageContentProps, type MessageHeaderProps, type MessageBubbleProps, type MessageBubbleContentProps, type MessageFooterProps, type MessageActionsProps, } from './components/message/index.js';
|
|
31
|
+
export { Popover, type PopoverProps, type PopoverTriggerProps, type PopoverContentProps, type PopoverArrowProps, type PopoverCloseProps, type PopoverPlacement, type PopoverAlign, type PopoverPresentation, } from './components/popover/index.js';
|
|
23
32
|
export { Progress, type ProgressProps } from './components/progress/index.js';
|
|
24
33
|
export { RadioGroup, type RadioGroupProps, type RadioGroupItemProps, } from './components/radio-group/index.js';
|
|
25
34
|
export { ScrollFade, type ScrollFadeProps, } from './components/scroll-fade/index.js';
|
|
35
|
+
export { Separator, type SeparatorProps } from './components/separator/index.js';
|
|
26
36
|
export { Shimmer, type ShimmerProps } from './components/shimmer/index.js';
|
|
27
37
|
export { Skeleton, type SkeletonProps } from './components/skeleton/index.js';
|
|
28
38
|
export { Spinner, type SpinnerProps } from './components/spinner/index.js';
|
|
@@ -32,7 +42,7 @@ export { Switch, type SwitchProps } from './components/switch/index.js';
|
|
|
32
42
|
export { Timeline, type TimelineProps, type TimelineItemProps, type TimelineIndicatorProps, type TimelineStatProps, type TimelineVariant, type TimelineTone, } from './components/timeline/index.js';
|
|
33
43
|
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';
|
|
34
44
|
export { Typography, type TypographyProps, type TypographyType, type TypographyHeadingProps, type TypographyParagraphProps, type TypographyCodeProps, } from './components/typography/index.js';
|
|
35
|
-
export { AlertTriangleIcon, AppleIcon, ArrowUpRightIcon, BellIcon, CardIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, FacebookIcon, GoogleIcon, IconColorProvider, InfoIcon, MoonIcon, PackageIcon, PlusSquareIcon, ReceiptIcon, SearchIcon, SendIcon, ShareNodesIcon, ShieldAlertIcon, ShieldCheckIcon, SunIcon, XIcon, useIconColor, type IconProps, } from './icons/index.js';
|
|
45
|
+
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';
|
|
36
46
|
export * from './hooks/index.js';
|
|
37
47
|
export { cn } from './utils/cn.js';
|
|
38
48
|
//# 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,SA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AmB,GACzB,MAAM,kCAAyB,CAAC;AAGjC,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,SAAS,EACT,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,eAAe,EACf,OAAO,EACP,KAAK,EACL,YAAY,EACZ,KAAK,SAAS,GACf,MAAM,kBAAS,CAAC;AAGjB,cAAc,kBAAS,CAAC;AAGxB,OAAO,EAAE,EAAE,EAAE,MAAM,eAAY,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
interface NativeUIModule {
|
|
3
|
+
Host: ComponentType<{
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
matchContents?: boolean;
|
|
6
|
+
style?: unknown;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Hosts React Native views inside the native tree. Anything of ours that
|
|
11
|
+
* goes inside a native container has to be wrapped in this or the native
|
|
12
|
+
* layout does not measure it — children spill outside their container.
|
|
13
|
+
*/
|
|
14
|
+
RNHostView: ComponentType<{
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
matchContents?: boolean;
|
|
17
|
+
style?: unknown;
|
|
18
|
+
}>;
|
|
19
|
+
Button: ComponentType<Record<string, unknown>>;
|
|
20
|
+
Switch: ComponentType<Record<string, unknown>>;
|
|
21
|
+
Picker: ComponentType<Record<string, unknown>> & {
|
|
22
|
+
Item: ComponentType<Record<string, unknown>>;
|
|
23
|
+
};
|
|
24
|
+
BottomSheet: ComponentType<Record<string, unknown>>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The native UI module, or null when it is not installed or the platform has
|
|
28
|
+
* no toolkit behind it. Resolved once and cached — a failed require is not
|
|
29
|
+
* retried on every render.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getNativeUI(): NativeUIModule | null;
|
|
32
|
+
/** Whether `native` will actually render a platform control. */
|
|
33
|
+
export declare function hasNativeUI(): boolean;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,cAAc;IACtB,IAAI,EAAE,aAAa,CAAC;QAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC,CAAC;IACH;;;;OAIG;IACH,UAAU,EAAE,aAAa,CAAC;QACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC,CAAC;IACH,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG;QAC/C,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;KAC9C,CAAC;IACF,WAAW,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACrD;AAKD;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,cAAc,GAAG,IAAI,CAgBnD;AAED,gEAAgE;AAChE,wBAAgB,WAAW,IAAI,OAAO,CAErC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KeyboardAvoider — a view that lifts itself just clear of the keyboard.
|
|
3
|
+
*
|
|
4
|
+
* A thin wrapper over `useKeyboardAvoidance` for the common case of "keep this
|
|
5
|
+
* box visible", so a form does not have to wire the ref, layout handler and
|
|
6
|
+
* animated style by hand.
|
|
7
|
+
*/
|
|
8
|
+
import type { ReactNode } from 'react';
|
|
9
|
+
import type { ViewProps } from 'react-native';
|
|
10
|
+
export interface KeyboardAvoiderProps extends ViewProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Set false to leave the content where it is. */
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
/** Gap to keep between the content's bottom edge and the keyboard. */
|
|
15
|
+
offset?: number;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function KeyboardAvoider({ className, enabled, offset, children, style, onLayout, ...props }: KeyboardAvoiderProps): import("react").JSX.Element;
|
|
19
|
+
export declare namespace KeyboardAvoider {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=keyboard-avoider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard-avoider.d.ts","sourceRoot":"","sources":["../../../../src/primitives/keyboard-avoider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,OAAc,EACd,MAAW,EACX,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,+BAiBtB;yBAzBe,eAAe"}
|