rockin 0.0.1

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.
@@ -0,0 +1,200 @@
1
+ type PluginListenerHandle = {
2
+ remove: () => Promise<void>;
3
+ };
4
+ type AppUrlOpenEvent = {
5
+ url: string;
6
+ };
7
+ type AppPlugin = {
8
+ addListener?: (eventName: "appUrlOpen", listener: (event: AppUrlOpenEvent) => void) => PluginListenerHandle | Promise<PluginListenerHandle>;
9
+ };
10
+ type StatusBarStyle = "DARK" | "LIGHT" | "DEFAULT";
11
+ type StatusBarPlugin = {
12
+ setBackgroundColor?: (options: {
13
+ color: string;
14
+ }) => Promise<void>;
15
+ setStyle?: (options: {
16
+ style: StatusBarStyle;
17
+ }) => Promise<void>;
18
+ };
19
+ type BrowserPlugin = {
20
+ open?: (options: {
21
+ url: string;
22
+ }) => Promise<void>;
23
+ };
24
+ type NativeSharePlugin = {
25
+ share?: (options: {
26
+ title?: string;
27
+ text?: string;
28
+ url?: string;
29
+ files?: string[];
30
+ dialogTitle?: string;
31
+ }) => Promise<void>;
32
+ };
33
+ type NativeThemePlugin = {
34
+ setStyle?: (options: {
35
+ style: "dark" | "light" | "system";
36
+ }) => Promise<void>;
37
+ };
38
+ type NativePaymentPlugin = {
39
+ openUpiUrl?: (options: {
40
+ url: string;
41
+ title?: string;
42
+ }) => Promise<{
43
+ opened: boolean;
44
+ }>;
45
+ };
46
+ type NativeSharedFile = {
47
+ name: string;
48
+ type: string;
49
+ size: number;
50
+ data: string;
51
+ };
52
+ type NativeImagePickerPlugin = {
53
+ pickImages?: (options: {
54
+ limit?: number;
55
+ title?: string;
56
+ }) => Promise<{
57
+ files: NativeSharedFile[];
58
+ }>;
59
+ };
60
+ type NativeSharePayload = {
61
+ id: string;
62
+ title?: string | null;
63
+ text?: string | null;
64
+ files: NativeSharedFile[];
65
+ };
66
+ type NativeShareTargetPlugin = {
67
+ addListener?: (eventName: "shareReceived", listener: (event: NativeSharePayload) => void) => PluginListenerHandle | Promise<PluginListenerHandle>;
68
+ getPendingShare?: () => Promise<{
69
+ share: NativeSharePayload | null;
70
+ }>;
71
+ clearPendingShare?: () => Promise<void>;
72
+ };
73
+ type NativeAppSettingsPlugin = {
74
+ openAppSettings?: () => Promise<void>;
75
+ };
76
+ type NativeUpdateState = {
77
+ status: "downloading" | "downloaded" | "installing" | "installed" | "failed" | "canceled" | "unknown";
78
+ bytesDownloaded: number;
79
+ totalBytesToDownload: number;
80
+ };
81
+ type NativeUpdateInfo = NativeUpdateState & {
82
+ available: boolean;
83
+ inProgress: boolean;
84
+ availableVersionCode: number;
85
+ installStatus: NativeUpdateState["status"];
86
+ };
87
+ type NativeInAppUpdatePlugin = {
88
+ checkForUpdate?: () => Promise<NativeUpdateInfo>;
89
+ startUpdate?: () => Promise<void>;
90
+ completeUpdate?: () => Promise<void>;
91
+ addListener?: (eventName: "updateStateChanged", listener: (state: NativeUpdateState) => void) => PluginListenerHandle | Promise<PluginListenerHandle>;
92
+ };
93
+ type NativeShareFilePlugin = {
94
+ saveImage?: (options: {
95
+ data: string;
96
+ fileName?: string;
97
+ }) => Promise<{
98
+ path?: string;
99
+ }>;
100
+ };
101
+ type CameraPhoto = {
102
+ format?: string;
103
+ path?: string;
104
+ webPath?: string;
105
+ };
106
+ type CameraPlugin = {
107
+ getPhoto?: (options: {
108
+ allowEditing?: boolean;
109
+ quality?: number;
110
+ resultType: "uri";
111
+ source?: "PROMPT" | "CAMERA" | "PHOTOS";
112
+ }) => Promise<CameraPhoto>;
113
+ pickImages?: (options: {
114
+ limit?: number;
115
+ quality?: number;
116
+ }) => Promise<{
117
+ photos: CameraPhoto[];
118
+ }>;
119
+ };
120
+ type CapacitorRuntime = {
121
+ isNativePlatform?: () => boolean;
122
+ getPlatform?: () => string;
123
+ Plugins?: {
124
+ App?: AppPlugin;
125
+ Browser?: BrowserPlugin;
126
+ Camera?: CameraPlugin;
127
+ NativeAppSettings?: NativeAppSettingsPlugin;
128
+ NativeInAppUpdate?: NativeInAppUpdatePlugin;
129
+ NativeImagePicker?: NativeImagePickerPlugin;
130
+ NativeShareFile?: NativeShareFilePlugin;
131
+ NativePayment?: NativePaymentPlugin;
132
+ NativeTheme?: NativeThemePlugin;
133
+ NativeShareTarget?: NativeShareTargetPlugin;
134
+ Share?: NativeSharePlugin;
135
+ StatusBar?: StatusBarPlugin;
136
+ };
137
+ };
138
+ declare global {
139
+ interface Window {
140
+ Capacitor?: CapacitorRuntime;
141
+ }
142
+ }
143
+ declare function isNativeApp(): boolean;
144
+ declare function getNativePlatform(): string | null;
145
+ declare function getNativeAppPlugin(): AppPlugin | null;
146
+ declare function getNativeStatusBarPlugin(): StatusBarPlugin | null;
147
+ declare function getNativeBrowserPlugin(): BrowserPlugin | null;
148
+ declare function getNativeSharePlugin(): NativeSharePlugin | null;
149
+ declare function getNativeCameraPlugin(): CameraPlugin | null;
150
+ declare function getNativeImagePickerPlugin(): NativeImagePickerPlugin | null;
151
+ declare function getNativeShareFilePlugin(): NativeShareFilePlugin | null;
152
+ declare function getNativeThemePlugin(): NativeThemePlugin | null;
153
+ declare function getNativePaymentPlugin(): NativePaymentPlugin | null;
154
+ declare function getNativeShareTargetPlugin(): NativeShareTargetPlugin | null;
155
+ declare function getNativeAppSettingsPlugin(): NativeAppSettingsPlugin | null;
156
+ declare function getNativeInAppUpdatePlugin(): NativeInAppUpdatePlugin | null;
157
+ /** Opens the OS App Info page. Returns false when unavailable (web or old shell). */
158
+ declare function openNativeAppSettings(): Promise<boolean>;
159
+ declare function openUpiPaymentUrl(url: string, options?: {
160
+ isNative?: boolean;
161
+ title?: string;
162
+ }): Promise<boolean>;
163
+ declare function openExternalUrl(url: string, options?: {
164
+ isNative?: boolean;
165
+ target?: string;
166
+ features?: string;
167
+ }): Promise<boolean>;
168
+ /**
169
+ * Saves base64 image bytes into app-private storage and returns a file:// URL
170
+ * that @capacitor/share can attach. Returns null outside the native app or
171
+ * when the save fails, so callers can fall back to a text-only share.
172
+ */
173
+ declare function saveNativeShareImage(dataUrl: string, options?: {
174
+ fileName?: string;
175
+ isNative?: boolean;
176
+ }): Promise<string | null>;
177
+ declare function shareNativeOrWeb(data: {
178
+ title?: string;
179
+ text?: string;
180
+ url?: string;
181
+ files?: string[];
182
+ dialogTitle?: string;
183
+ }, options?: {
184
+ isNative?: boolean;
185
+ }): Promise<boolean>;
186
+ declare function nativeSharedFileToFile(sharedFile: NativeSharedFile, fallbackName?: string): File;
187
+ declare function pickNativeImageFiles({ isNative, multiple, limit, quality, prefix, }: {
188
+ isNative?: boolean;
189
+ multiple?: boolean;
190
+ limit?: number;
191
+ quality?: number;
192
+ prefix?: string;
193
+ }): Promise<File[] | null>;
194
+ declare function pickNativeChooserImageFiles({ isNative, limit, title, }: {
195
+ isNative?: boolean;
196
+ limit?: number;
197
+ title?: string;
198
+ }): Promise<File[] | null>;
199
+
200
+ export { type NativeSharePayload, type NativeSharedFile, type NativeUpdateInfo, type NativeUpdateState, getNativeAppPlugin, getNativeAppSettingsPlugin, getNativeBrowserPlugin, getNativeCameraPlugin, getNativeImagePickerPlugin, getNativeInAppUpdatePlugin, getNativePaymentPlugin, getNativePlatform, getNativeShareFilePlugin, getNativeSharePlugin, getNativeShareTargetPlugin, getNativeStatusBarPlugin, getNativeThemePlugin, isNativeApp, nativeSharedFileToFile, openExternalUrl, openNativeAppSettings, openUpiPaymentUrl, pickNativeChooserImageFiles, pickNativeImageFiles, saveNativeShareImage, shareNativeOrWeb };
@@ -0,0 +1,48 @@
1
+ import {
2
+ getNativeAppPlugin,
3
+ getNativeAppSettingsPlugin,
4
+ getNativeBrowserPlugin,
5
+ getNativeCameraPlugin,
6
+ getNativeImagePickerPlugin,
7
+ getNativeInAppUpdatePlugin,
8
+ getNativePaymentPlugin,
9
+ getNativePlatform,
10
+ getNativeShareFilePlugin,
11
+ getNativeSharePlugin,
12
+ getNativeShareTargetPlugin,
13
+ getNativeStatusBarPlugin,
14
+ getNativeThemePlugin,
15
+ isNativeApp,
16
+ nativeSharedFileToFile,
17
+ openExternalUrl,
18
+ openNativeAppSettings,
19
+ openUpiPaymentUrl,
20
+ pickNativeChooserImageFiles,
21
+ pickNativeImageFiles,
22
+ saveNativeShareImage,
23
+ shareNativeOrWeb
24
+ } from "../chunk-ATPUW3SQ.js";
25
+ export {
26
+ getNativeAppPlugin,
27
+ getNativeAppSettingsPlugin,
28
+ getNativeBrowserPlugin,
29
+ getNativeCameraPlugin,
30
+ getNativeImagePickerPlugin,
31
+ getNativeInAppUpdatePlugin,
32
+ getNativePaymentPlugin,
33
+ getNativePlatform,
34
+ getNativeShareFilePlugin,
35
+ getNativeSharePlugin,
36
+ getNativeShareTargetPlugin,
37
+ getNativeStatusBarPlugin,
38
+ getNativeThemePlugin,
39
+ isNativeApp,
40
+ nativeSharedFileToFile,
41
+ openExternalUrl,
42
+ openNativeAppSettings,
43
+ openUpiPaymentUrl,
44
+ pickNativeChooserImageFiles,
45
+ pickNativeImageFiles,
46
+ saveNativeShareImage,
47
+ shareNativeOrWeb
48
+ };
@@ -0,0 +1,93 @@
1
+ .loader-wrapper {
2
+ height: var(--spinner-size, 20px);
3
+ width: var(--spinner-size, 20px);
4
+ }
5
+
6
+ .loader-spinner {
7
+ position: relative;
8
+ top: 50%;
9
+ left: 50%;
10
+ height: var(--spinner-size, 20px);
11
+ width: var(--spinner-size, 20px);
12
+ }
13
+
14
+ .loader-bar {
15
+ animation: loader-spin 1.2s linear infinite;
16
+ background: var(--spinner-color);
17
+ border-radius: 6px;
18
+ height: 8%;
19
+ left: -10%;
20
+ position: absolute;
21
+ top: -3.9%;
22
+ width: 24%;
23
+ }
24
+
25
+ .loader-bar:nth-child(1) {
26
+ animation-delay: -1.2s;
27
+ transform: rotate(0.0001deg) translate(146%);
28
+ }
29
+
30
+ .loader-bar:nth-child(2) {
31
+ animation-delay: -1.1s;
32
+ transform: rotate(30deg) translate(146%);
33
+ }
34
+
35
+ .loader-bar:nth-child(3) {
36
+ animation-delay: -1s;
37
+ transform: rotate(60deg) translate(146%);
38
+ }
39
+
40
+ .loader-bar:nth-child(4) {
41
+ animation-delay: -0.9s;
42
+ transform: rotate(90deg) translate(146%);
43
+ }
44
+
45
+ .loader-bar:nth-child(5) {
46
+ animation-delay: -0.8s;
47
+ transform: rotate(120deg) translate(146%);
48
+ }
49
+
50
+ .loader-bar:nth-child(6) {
51
+ animation-delay: -0.7s;
52
+ transform: rotate(150deg) translate(146%);
53
+ }
54
+
55
+ .loader-bar:nth-child(7) {
56
+ animation-delay: -0.6s;
57
+ transform: rotate(180deg) translate(146%);
58
+ }
59
+
60
+ .loader-bar:nth-child(8) {
61
+ animation-delay: -0.5s;
62
+ transform: rotate(210deg) translate(146%);
63
+ }
64
+
65
+ .loader-bar:nth-child(9) {
66
+ animation-delay: -0.4s;
67
+ transform: rotate(240deg) translate(146%);
68
+ }
69
+
70
+ .loader-bar:nth-child(10) {
71
+ animation-delay: -0.3s;
72
+ transform: rotate(270deg) translate(146%);
73
+ }
74
+
75
+ .loader-bar:nth-child(11) {
76
+ animation-delay: -0.2s;
77
+ transform: rotate(300deg) translate(146%);
78
+ }
79
+
80
+ .loader-bar:nth-child(12) {
81
+ animation-delay: -0.1s;
82
+ transform: rotate(330deg) translate(146%);
83
+ }
84
+
85
+ @keyframes loader-spin {
86
+ 0% {
87
+ opacity: 1;
88
+ }
89
+
90
+ 100% {
91
+ opacity: 0.15;
92
+ }
93
+ }
@@ -0,0 +1 @@
1
+ export * from 'lucide-react';
package/dist/lucide.js ADDED
@@ -0,0 +1,2 @@
1
+ // src/lucide.ts
2
+ export * from "lucide-react";