reactnatively 1.0.0 → 2.1.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 +48 -45
- package/dist/animations.d.mts +59 -0
- package/dist/animations.d.ts +59 -0
- package/dist/animations.js +36 -0
- package/dist/animations.js.map +1 -0
- package/dist/animations.mjs +5 -0
- package/dist/animations.mjs.map +1 -0
- package/dist/chunk-BJTO5JO5.mjs +10 -0
- package/dist/chunk-BJTO5JO5.mjs.map +1 -0
- package/dist/chunk-DGUM43GV.js +12 -0
- package/dist/chunk-DGUM43GV.js.map +1 -0
- package/dist/chunk-N2PBBXCI.js +12545 -0
- package/dist/chunk-N2PBBXCI.js.map +1 -0
- package/dist/chunk-STYEL3E3.mjs +12098 -0
- package/dist/chunk-STYEL3E3.mjs.map +1 -0
- package/dist/glass.d.mts +155 -0
- package/dist/glass.d.ts +155 -0
- package/dist/glass.js +94 -0
- package/dist/glass.js.map +1 -0
- package/dist/glass.mjs +5 -0
- package/dist/glass.mjs.map +1 -0
- package/dist/hooks.d.mts +6 -0
- package/dist/hooks.d.ts +6 -0
- package/dist/hooks.js +75 -0
- package/dist/hooks.js.map +1 -0
- package/dist/hooks.mjs +8 -0
- package/dist/hooks.mjs.map +1 -0
- package/dist/index.d.mts +7 -206
- package/dist/index.d.ts +7 -206
- package/dist/index.js +587 -12276
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -12099
- package/dist/index.mjs.map +1 -1
- package/dist/primitives.d.mts +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/primitives.js +53 -0
- package/dist/primitives.js.map +1 -0
- package/dist/primitives.mjs +4 -0
- package/dist/primitives.mjs.map +1 -0
- package/dist/theme.d.mts +1 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +14 -0
- package/dist/theme.js.map +1 -0
- package/dist/theme.mjs +3 -0
- package/dist/theme.mjs.map +1 -0
- package/dist/utils.d.mts +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +14 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +3 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +37 -7
package/dist/glass.d.mts
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export { FrostPanel, FrostPanelProps, GLASS_CAPABILITY, GlassCapability, GlassConfig, GlassMaterialPolicy, GlassPlatformProvider, GlassPlatformProviderProps, GlassPowerMode, GlassQuality, GlassSurfacePriority, GlassView, GlassViewProps, IS_FULL_GLASS, IS_NO_GLASS, IS_PARTIAL_GLASS, RenderBudgetPolicy, ResolvedGlassStyle, SUPPORTS_BLUR, adjustBlurForCapability, resolveGlass, useBlurSurfaceBudget, useGlassPlatform, useGlassStyle } from 'reactnatively-glass';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
5
|
+
|
|
6
|
+
interface BlurSurfaceProps {
|
|
7
|
+
elevation?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
8
|
+
variant?: 'surface' | 'frosted' | 'elevated' | 'ultraThin';
|
|
9
|
+
borderRadius?: number;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* BlurSurface — thin wrapper around GlassView exposing a clean API.
|
|
16
|
+
* Used as a standalone decorative blur layer. No children required.
|
|
17
|
+
*/
|
|
18
|
+
declare const BlurSurface: React.NamedExoticComponent<BlurSurfaceProps>;
|
|
19
|
+
|
|
20
|
+
type DynamicIslandState = 'compact' | 'expanded' | 'minimal';
|
|
21
|
+
interface DynamicIslandProps {
|
|
22
|
+
state?: DynamicIslandState;
|
|
23
|
+
defaultState?: DynamicIslandState;
|
|
24
|
+
onStateChange?: (state: DynamicIslandState) => void;
|
|
25
|
+
/** Small content for compact pill */
|
|
26
|
+
compactContent?: ReactNode;
|
|
27
|
+
/** Rich content for expanded state */
|
|
28
|
+
expandedContent?: ReactNode;
|
|
29
|
+
/** Tiny indicator dot */
|
|
30
|
+
minimalContent?: ReactNode;
|
|
31
|
+
onPress?: () => void;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* DynamicIsland — morphing pill that cycles between compact, expanded, and minimal states.
|
|
37
|
+
* Animated width/height transitions via withSpring(SPRING_BOUNCE).
|
|
38
|
+
*/
|
|
39
|
+
declare const DynamicIsland: React.NamedExoticComponent<DynamicIslandProps>;
|
|
40
|
+
|
|
41
|
+
interface DockItem {
|
|
42
|
+
icon: ReactNode;
|
|
43
|
+
label: string;
|
|
44
|
+
onPress: () => void;
|
|
45
|
+
}
|
|
46
|
+
interface FloatingDockProps {
|
|
47
|
+
items: DockItem[];
|
|
48
|
+
position?: 'bottom' | 'top';
|
|
49
|
+
glass?: boolean;
|
|
50
|
+
/** Items scale up on touch proximity */
|
|
51
|
+
magnification?: boolean;
|
|
52
|
+
style?: StyleProp<ViewStyle>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* FloatingDock — macOS-inspired dock with magnification on touch proximity.
|
|
57
|
+
* GlassView pill container with items in a row.
|
|
58
|
+
*/
|
|
59
|
+
declare const FloatingDock: React.NamedExoticComponent<FloatingDockProps>;
|
|
60
|
+
|
|
61
|
+
interface MorphingContainerShape {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
borderRadius: number;
|
|
65
|
+
}
|
|
66
|
+
interface MorphingContainerProps {
|
|
67
|
+
shape?: MorphingContainerShape;
|
|
68
|
+
glass?: boolean;
|
|
69
|
+
children?: ReactNode;
|
|
70
|
+
style?: StyleProp<ViewStyle>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* MorphingContainer — GlassView that spring-animates between different shape prop values.
|
|
75
|
+
* All three dimensions (width, height, borderRadius) animate in unison via withSpring.
|
|
76
|
+
*/
|
|
77
|
+
declare const MorphingContainer: React.NamedExoticComponent<MorphingContainerProps>;
|
|
78
|
+
|
|
79
|
+
interface GlassNavbarProps {
|
|
80
|
+
title?: string;
|
|
81
|
+
leading?: ReactNode;
|
|
82
|
+
trailing?: ReactNode;
|
|
83
|
+
/** SharedValue from useScrollHandler — controls glass intensity with scroll */
|
|
84
|
+
scrollY?: SharedValue<number>;
|
|
85
|
+
style?: StyleProp<ViewStyle>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* GlassNavbar — top navigation bar whose glass intensity scales with scroll position.
|
|
90
|
+
* At scrollY=0: transparent (elevation 0). At scrollY>50: frosted (elevation 2).
|
|
91
|
+
*/
|
|
92
|
+
declare const GlassNavbar: React.NamedExoticComponent<GlassNavbarProps>;
|
|
93
|
+
|
|
94
|
+
interface GlassSidebarItem {
|
|
95
|
+
label: string;
|
|
96
|
+
icon: ReactNode;
|
|
97
|
+
value: string;
|
|
98
|
+
badge?: number;
|
|
99
|
+
}
|
|
100
|
+
interface GlassSidebarProps {
|
|
101
|
+
items: GlassSidebarItem[];
|
|
102
|
+
activeItem?: string;
|
|
103
|
+
onItemPress?: (value: string) => void;
|
|
104
|
+
isCollapsed?: boolean;
|
|
105
|
+
width?: number;
|
|
106
|
+
collapsedWidth?: number;
|
|
107
|
+
style?: StyleProp<ViewStyle>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* GlassSidebar — persistent (non-modal) sidebar with collapsible animation.
|
|
112
|
+
* Width springs between expanded/collapsed; labels fade out when collapsed.
|
|
113
|
+
*/
|
|
114
|
+
declare const GlassSidebar: React.NamedExoticComponent<GlassSidebarProps>;
|
|
115
|
+
|
|
116
|
+
interface InteractiveGlassSurfaceProps {
|
|
117
|
+
children?: ReactNode;
|
|
118
|
+
/** Tilt strength 0–1, default 0.05 */
|
|
119
|
+
parallaxStrength?: number;
|
|
120
|
+
elevation?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
121
|
+
style?: StyleProp<ViewStyle>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* InteractiveGlassSurface — GlassView that simulates a gyroscope tilt effect
|
|
126
|
+
* by tracking touch position relative to the component center.
|
|
127
|
+
* Springs back to 0,0 on touch end.
|
|
128
|
+
*/
|
|
129
|
+
declare const InteractiveGlassSurface: React.NamedExoticComponent<InteractiveGlassSurfaceProps>;
|
|
130
|
+
|
|
131
|
+
type MediaPanelState = 'mini' | 'expanded';
|
|
132
|
+
interface FloatingMediaPanelProps {
|
|
133
|
+
state?: MediaPanelState;
|
|
134
|
+
defaultState?: MediaPanelState;
|
|
135
|
+
onStateChange?: (state: MediaPanelState) => void;
|
|
136
|
+
/** Album art / thumbnail */
|
|
137
|
+
artwork?: ReactNode;
|
|
138
|
+
title?: string;
|
|
139
|
+
subtitle?: string;
|
|
140
|
+
isPlaying?: boolean;
|
|
141
|
+
onPlayPause?: () => void;
|
|
142
|
+
onNext?: () => void;
|
|
143
|
+
onPrevious?: () => void;
|
|
144
|
+
/** Playback progress 0–1 */
|
|
145
|
+
progress?: number;
|
|
146
|
+
style?: StyleProp<ViewStyle>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* FloatingMediaPanel — glass panel that morphs between a slim mini bar and a
|
|
151
|
+
* full expanded player. Drag up to expand, drag down to minimise.
|
|
152
|
+
*/
|
|
153
|
+
declare const FloatingMediaPanel: React.NamedExoticComponent<FloatingMediaPanelProps>;
|
|
154
|
+
|
|
155
|
+
export { BlurSurface, type BlurSurfaceProps, type DockItem, DynamicIsland, type DynamicIslandProps, type DynamicIslandState, FloatingDock, type FloatingDockProps, FloatingMediaPanel, type FloatingMediaPanelProps, GlassNavbar, type GlassNavbarProps, GlassSidebar, type GlassSidebarItem, type GlassSidebarProps, InteractiveGlassSurface, type InteractiveGlassSurfaceProps, type MediaPanelState, MorphingContainer, type MorphingContainerProps, type MorphingContainerShape };
|
package/dist/glass.d.ts
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export { FrostPanel, FrostPanelProps, GLASS_CAPABILITY, GlassCapability, GlassConfig, GlassMaterialPolicy, GlassPlatformProvider, GlassPlatformProviderProps, GlassPowerMode, GlassQuality, GlassSurfacePriority, GlassView, GlassViewProps, IS_FULL_GLASS, IS_NO_GLASS, IS_PARTIAL_GLASS, RenderBudgetPolicy, ResolvedGlassStyle, SUPPORTS_BLUR, adjustBlurForCapability, resolveGlass, useBlurSurfaceBudget, useGlassPlatform, useGlassStyle } from 'reactnatively-glass';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import { SharedValue } from 'react-native-reanimated';
|
|
5
|
+
|
|
6
|
+
interface BlurSurfaceProps {
|
|
7
|
+
elevation?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
8
|
+
variant?: 'surface' | 'frosted' | 'elevated' | 'ultraThin';
|
|
9
|
+
borderRadius?: number;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* BlurSurface — thin wrapper around GlassView exposing a clean API.
|
|
16
|
+
* Used as a standalone decorative blur layer. No children required.
|
|
17
|
+
*/
|
|
18
|
+
declare const BlurSurface: React.NamedExoticComponent<BlurSurfaceProps>;
|
|
19
|
+
|
|
20
|
+
type DynamicIslandState = 'compact' | 'expanded' | 'minimal';
|
|
21
|
+
interface DynamicIslandProps {
|
|
22
|
+
state?: DynamicIslandState;
|
|
23
|
+
defaultState?: DynamicIslandState;
|
|
24
|
+
onStateChange?: (state: DynamicIslandState) => void;
|
|
25
|
+
/** Small content for compact pill */
|
|
26
|
+
compactContent?: ReactNode;
|
|
27
|
+
/** Rich content for expanded state */
|
|
28
|
+
expandedContent?: ReactNode;
|
|
29
|
+
/** Tiny indicator dot */
|
|
30
|
+
minimalContent?: ReactNode;
|
|
31
|
+
onPress?: () => void;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* DynamicIsland — morphing pill that cycles between compact, expanded, and minimal states.
|
|
37
|
+
* Animated width/height transitions via withSpring(SPRING_BOUNCE).
|
|
38
|
+
*/
|
|
39
|
+
declare const DynamicIsland: React.NamedExoticComponent<DynamicIslandProps>;
|
|
40
|
+
|
|
41
|
+
interface DockItem {
|
|
42
|
+
icon: ReactNode;
|
|
43
|
+
label: string;
|
|
44
|
+
onPress: () => void;
|
|
45
|
+
}
|
|
46
|
+
interface FloatingDockProps {
|
|
47
|
+
items: DockItem[];
|
|
48
|
+
position?: 'bottom' | 'top';
|
|
49
|
+
glass?: boolean;
|
|
50
|
+
/** Items scale up on touch proximity */
|
|
51
|
+
magnification?: boolean;
|
|
52
|
+
style?: StyleProp<ViewStyle>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* FloatingDock — macOS-inspired dock with magnification on touch proximity.
|
|
57
|
+
* GlassView pill container with items in a row.
|
|
58
|
+
*/
|
|
59
|
+
declare const FloatingDock: React.NamedExoticComponent<FloatingDockProps>;
|
|
60
|
+
|
|
61
|
+
interface MorphingContainerShape {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
borderRadius: number;
|
|
65
|
+
}
|
|
66
|
+
interface MorphingContainerProps {
|
|
67
|
+
shape?: MorphingContainerShape;
|
|
68
|
+
glass?: boolean;
|
|
69
|
+
children?: ReactNode;
|
|
70
|
+
style?: StyleProp<ViewStyle>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* MorphingContainer — GlassView that spring-animates between different shape prop values.
|
|
75
|
+
* All three dimensions (width, height, borderRadius) animate in unison via withSpring.
|
|
76
|
+
*/
|
|
77
|
+
declare const MorphingContainer: React.NamedExoticComponent<MorphingContainerProps>;
|
|
78
|
+
|
|
79
|
+
interface GlassNavbarProps {
|
|
80
|
+
title?: string;
|
|
81
|
+
leading?: ReactNode;
|
|
82
|
+
trailing?: ReactNode;
|
|
83
|
+
/** SharedValue from useScrollHandler — controls glass intensity with scroll */
|
|
84
|
+
scrollY?: SharedValue<number>;
|
|
85
|
+
style?: StyleProp<ViewStyle>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* GlassNavbar — top navigation bar whose glass intensity scales with scroll position.
|
|
90
|
+
* At scrollY=0: transparent (elevation 0). At scrollY>50: frosted (elevation 2).
|
|
91
|
+
*/
|
|
92
|
+
declare const GlassNavbar: React.NamedExoticComponent<GlassNavbarProps>;
|
|
93
|
+
|
|
94
|
+
interface GlassSidebarItem {
|
|
95
|
+
label: string;
|
|
96
|
+
icon: ReactNode;
|
|
97
|
+
value: string;
|
|
98
|
+
badge?: number;
|
|
99
|
+
}
|
|
100
|
+
interface GlassSidebarProps {
|
|
101
|
+
items: GlassSidebarItem[];
|
|
102
|
+
activeItem?: string;
|
|
103
|
+
onItemPress?: (value: string) => void;
|
|
104
|
+
isCollapsed?: boolean;
|
|
105
|
+
width?: number;
|
|
106
|
+
collapsedWidth?: number;
|
|
107
|
+
style?: StyleProp<ViewStyle>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* GlassSidebar — persistent (non-modal) sidebar with collapsible animation.
|
|
112
|
+
* Width springs between expanded/collapsed; labels fade out when collapsed.
|
|
113
|
+
*/
|
|
114
|
+
declare const GlassSidebar: React.NamedExoticComponent<GlassSidebarProps>;
|
|
115
|
+
|
|
116
|
+
interface InteractiveGlassSurfaceProps {
|
|
117
|
+
children?: ReactNode;
|
|
118
|
+
/** Tilt strength 0–1, default 0.05 */
|
|
119
|
+
parallaxStrength?: number;
|
|
120
|
+
elevation?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
121
|
+
style?: StyleProp<ViewStyle>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* InteractiveGlassSurface — GlassView that simulates a gyroscope tilt effect
|
|
126
|
+
* by tracking touch position relative to the component center.
|
|
127
|
+
* Springs back to 0,0 on touch end.
|
|
128
|
+
*/
|
|
129
|
+
declare const InteractiveGlassSurface: React.NamedExoticComponent<InteractiveGlassSurfaceProps>;
|
|
130
|
+
|
|
131
|
+
type MediaPanelState = 'mini' | 'expanded';
|
|
132
|
+
interface FloatingMediaPanelProps {
|
|
133
|
+
state?: MediaPanelState;
|
|
134
|
+
defaultState?: MediaPanelState;
|
|
135
|
+
onStateChange?: (state: MediaPanelState) => void;
|
|
136
|
+
/** Album art / thumbnail */
|
|
137
|
+
artwork?: ReactNode;
|
|
138
|
+
title?: string;
|
|
139
|
+
subtitle?: string;
|
|
140
|
+
isPlaying?: boolean;
|
|
141
|
+
onPlayPause?: () => void;
|
|
142
|
+
onNext?: () => void;
|
|
143
|
+
onPrevious?: () => void;
|
|
144
|
+
/** Playback progress 0–1 */
|
|
145
|
+
progress?: number;
|
|
146
|
+
style?: StyleProp<ViewStyle>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* FloatingMediaPanel — glass panel that morphs between a slim mini bar and a
|
|
151
|
+
* full expanded player. Drag up to expand, drag down to minimise.
|
|
152
|
+
*/
|
|
153
|
+
declare const FloatingMediaPanel: React.NamedExoticComponent<FloatingMediaPanelProps>;
|
|
154
|
+
|
|
155
|
+
export { BlurSurface, type BlurSurfaceProps, type DockItem, DynamicIsland, type DynamicIslandProps, type DynamicIslandState, FloatingDock, type FloatingDockProps, FloatingMediaPanel, type FloatingMediaPanelProps, GlassNavbar, type GlassNavbarProps, GlassSidebar, type GlassSidebarItem, type GlassSidebarProps, InteractiveGlassSurface, type InteractiveGlassSurfaceProps, type MediaPanelState, MorphingContainer, type MorphingContainerProps, type MorphingContainerShape };
|
package/dist/glass.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkN2PBBXCI_js = require('./chunk-N2PBBXCI.js');
|
|
4
|
+
require('./chunk-DGUM43GV.js');
|
|
5
|
+
var reactnativelyGlass = require('reactnatively-glass');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "BlurSurface", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkN2PBBXCI_js.BlurSurface; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "DynamicIsland", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkN2PBBXCI_js.DynamicIsland; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "FloatingDock", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkN2PBBXCI_js.FloatingDock; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "FloatingMediaPanel", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkN2PBBXCI_js.FloatingMediaPanel; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "GlassNavbar", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkN2PBBXCI_js.GlassNavbar; }
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "GlassSidebar", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkN2PBBXCI_js.GlassSidebar; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "InteractiveGlassSurface", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkN2PBBXCI_js.InteractiveGlassSurface; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "MorphingContainer", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkN2PBBXCI_js.MorphingContainer; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "FrostPanel", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return reactnativelyGlass.FrostPanel; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "GLASS_CAPABILITY", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return reactnativelyGlass.GLASS_CAPABILITY; }
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "GlassPlatformProvider", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () { return reactnativelyGlass.GlassPlatformProvider; }
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "GlassView", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return reactnativelyGlass.GlassView; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "IS_FULL_GLASS", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return reactnativelyGlass.IS_FULL_GLASS; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "IS_NO_GLASS", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return reactnativelyGlass.IS_NO_GLASS; }
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "IS_PARTIAL_GLASS", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return reactnativelyGlass.IS_PARTIAL_GLASS; }
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(exports, "SUPPORTS_BLUR", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return reactnativelyGlass.SUPPORTS_BLUR; }
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(exports, "adjustBlurForCapability", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () { return reactnativelyGlass.adjustBlurForCapability; }
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "resolveGlass", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () { return reactnativelyGlass.resolveGlass; }
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(exports, "useBlurSurfaceBudget", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function () { return reactnativelyGlass.useBlurSurfaceBudget; }
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(exports, "useGlassPlatform", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function () { return reactnativelyGlass.useGlassPlatform; }
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, "useGlassStyle", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () { return reactnativelyGlass.useGlassStyle; }
|
|
92
|
+
});
|
|
93
|
+
//# sourceMappingURL=glass.js.map
|
|
94
|
+
//# sourceMappingURL=glass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"glass.js","sourcesContent":[]}
|
package/dist/glass.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { BlurSurface, DynamicIsland, FloatingDock, FloatingMediaPanel, GlassNavbar, GlassSidebar, InteractiveGlassSurface, MorphingContainer } from './chunk-STYEL3E3.mjs';
|
|
2
|
+
import './chunk-BJTO5JO5.mjs';
|
|
3
|
+
export { FrostPanel, GLASS_CAPABILITY, GlassPlatformProvider, GlassView, IS_FULL_GLASS, IS_NO_GLASS, IS_PARTIAL_GLASS, SUPPORTS_BLUR, adjustBlurForCapability, resolveGlass, useBlurSurfaceBudget, useGlassPlatform, useGlassStyle } from 'reactnatively-glass';
|
|
4
|
+
//# sourceMappingURL=glass.mjs.map
|
|
5
|
+
//# sourceMappingURL=glass.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"glass.mjs","sourcesContent":[]}
|
package/dist/hooks.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from 'reactnatively-hooks';
|
|
2
|
+
export { EntranceAnimationConfig, EntranceVariant, HapticIntent, InteractionContextValue, InteractionIntensity, InteractionPolicy, PressAnimationConfig, PressAnimationResult, useDuration, useEntranceAnimation, useInteraction, usePressAnimation, useReducedMotion, useSpring } from 'reactnatively-animations';
|
|
3
|
+
export { useBlurSurfaceBudget, useGlassPlatform, useGlassStyle } from 'reactnatively-glass';
|
|
4
|
+
export { useColorScheme, useIsDark, useTheme, useToken } from 'reactnatively-theme';
|
|
5
|
+
export { useAccessibilityPolicy } from 'reactnatively-primitives';
|
|
6
|
+
import 'reactnatively-utils';
|
package/dist/hooks.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from 'reactnatively-hooks';
|
|
2
|
+
export { EntranceAnimationConfig, EntranceVariant, HapticIntent, InteractionContextValue, InteractionIntensity, InteractionPolicy, PressAnimationConfig, PressAnimationResult, useDuration, useEntranceAnimation, useInteraction, usePressAnimation, useReducedMotion, useSpring } from 'reactnatively-animations';
|
|
3
|
+
export { useBlurSurfaceBudget, useGlassPlatform, useGlassStyle } from 'reactnatively-glass';
|
|
4
|
+
export { useColorScheme, useIsDark, useTheme, useToken } from 'reactnatively-theme';
|
|
5
|
+
export { useAccessibilityPolicy } from 'reactnatively-primitives';
|
|
6
|
+
import 'reactnatively-utils';
|
package/dist/hooks.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./chunk-DGUM43GV.js');
|
|
4
|
+
var reactnativelyHooks = require('reactnatively-hooks');
|
|
5
|
+
var reactnativelyAnimations = require('reactnatively-animations');
|
|
6
|
+
var reactnativelyGlass = require('reactnatively-glass');
|
|
7
|
+
var reactnativelyTheme = require('reactnatively-theme');
|
|
8
|
+
var reactnativelyPrimitives = require('reactnatively-primitives');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, "useDuration", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return reactnativelyAnimations.useDuration; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "useEntranceAnimation", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return reactnativelyAnimations.useEntranceAnimation; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "useInteraction", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return reactnativelyAnimations.useInteraction; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "usePressAnimation", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return reactnativelyAnimations.usePressAnimation; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "useReducedMotion", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return reactnativelyAnimations.useReducedMotion; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "useSpring", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return reactnativelyAnimations.useSpring; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "useBlurSurfaceBudget", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return reactnativelyGlass.useBlurSurfaceBudget; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "useGlassPlatform", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return reactnativelyGlass.useGlassPlatform; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "useGlassStyle", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return reactnativelyGlass.useGlassStyle; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "useColorScheme", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return reactnativelyTheme.useColorScheme; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "useIsDark", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return reactnativelyTheme.useIsDark; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "useTheme", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return reactnativelyTheme.useTheme; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "useToken", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return reactnativelyTheme.useToken; }
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, "useAccessibilityPolicy", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () { return reactnativelyPrimitives.useAccessibilityPolicy; }
|
|
67
|
+
});
|
|
68
|
+
Object.keys(reactnativelyHooks).forEach(function (k) {
|
|
69
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return reactnativelyHooks[k]; }
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=hooks.js.map
|
|
75
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"hooks.js","sourcesContent":[]}
|
package/dist/hooks.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './chunk-BJTO5JO5.mjs';
|
|
2
|
+
export * from 'reactnatively-hooks';
|
|
3
|
+
export { useDuration, useEntranceAnimation, useInteraction, usePressAnimation, useReducedMotion, useSpring } from 'reactnatively-animations';
|
|
4
|
+
export { useBlurSurfaceBudget, useGlassPlatform, useGlassStyle } from 'reactnatively-glass';
|
|
5
|
+
export { useColorScheme, useIsDark, useTheme, useToken } from 'reactnatively-theme';
|
|
6
|
+
export { useAccessibilityPolicy } from 'reactnatively-primitives';
|
|
7
|
+
//# sourceMappingURL=hooks.mjs.map
|
|
8
|
+
//# sourceMappingURL=hooks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"hooks.mjs","sourcesContent":[]}
|