funuicss 3.5.6 → 3.5.8
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/css/fun.css +8 -7
- package/index.d.ts +2 -0
- package/index.js +5 -1
- package/js/Firebase.d.ts +0 -0
- package/js/Firebase.js +1 -0
- package/js/firebase/Auth.d.ts +191 -0
- package/js/firebase/Auth.js +746 -0
- package/js/firebase/FireStore.d.ts +54 -0
- package/js/firebase/FireStore.js +285 -0
- package/package.json +2 -1
- package/ui/table/Table.d.ts +2 -1
- package/ui/table/Table.js +2 -2
- package/ui/video/Video.js +25 -23
package/css/fun.css
CHANGED
|
@@ -2406,7 +2406,7 @@ h6, .h6 {
|
|
|
2406
2406
|
transition: 0.1s linear;
|
|
2407
2407
|
}
|
|
2408
2408
|
.hoverable:hover{
|
|
2409
|
-
background-color: var(--
|
|
2409
|
+
background-color: var(--hoverable) !important;
|
|
2410
2410
|
/* filter: brightness(90%); */
|
|
2411
2411
|
|
|
2412
2412
|
}
|
|
@@ -2742,7 +2742,7 @@ color: var(--text-color);
|
|
|
2742
2742
|
display: flex;
|
|
2743
2743
|
flex-direction: column;
|
|
2744
2744
|
justify-content: flex-end;
|
|
2745
|
-
padding: 1rem;
|
|
2745
|
+
padding: 1rem ;
|
|
2746
2746
|
display: none;
|
|
2747
2747
|
|
|
2748
2748
|
border-radius: 1rem;
|
|
@@ -2787,8 +2787,8 @@ color: var(--text-color);
|
|
|
2787
2787
|
.video_time{
|
|
2788
2788
|
background-color: var(--raiseThemes) !important;
|
|
2789
2789
|
backdrop-filter: var(--raiseBackdrop) !important;
|
|
2790
|
-
border-radius:
|
|
2791
|
-
padding:
|
|
2790
|
+
border-radius:2rem;
|
|
2791
|
+
padding: 1rem;
|
|
2792
2792
|
line-height: 0;
|
|
2793
2793
|
color: var(--text-color);
|
|
2794
2794
|
}
|
|
@@ -2800,14 +2800,14 @@ color: var(--text-color);
|
|
|
2800
2800
|
display: flex;
|
|
2801
2801
|
align-items: center;
|
|
2802
2802
|
justify-content: center;
|
|
2803
|
-
width:
|
|
2804
|
-
height:
|
|
2805
|
-
border: 2px solid var(--borderColor) !important;
|
|
2803
|
+
width: 5rem;
|
|
2804
|
+
height: 5rem;
|
|
2806
2805
|
border-radius: 50%;
|
|
2807
2806
|
background-color: var(--raiseOpaque);
|
|
2808
2807
|
backdrop-filter: var(--raiseBackdrop) !important;
|
|
2809
2808
|
transition: transform 0.3s ease;
|
|
2810
2809
|
cursor: pointer;
|
|
2810
|
+
line-height: 0 !important;
|
|
2811
2811
|
z-index: 2;
|
|
2812
2812
|
|
|
2813
2813
|
}
|
|
@@ -4443,6 +4443,7 @@ th {
|
|
|
4443
4443
|
}
|
|
4444
4444
|
.table.hoverableTr tr:hover {
|
|
4445
4445
|
filter: var(--hoverable);
|
|
4446
|
+
background-color: var(--hoverable) !important;
|
|
4446
4447
|
}
|
|
4447
4448
|
|
|
4448
4449
|
.table.dark {
|
package/index.d.ts
CHANGED
|
@@ -58,3 +58,5 @@ export { default as Select } from "./ui/select/Select";
|
|
|
58
58
|
export { default as Cookie } from "./js/Cookie";
|
|
59
59
|
export { FunGet } from "./js/Fun";
|
|
60
60
|
export { default as GoogleAnalytics } from "./js/google/analytics";
|
|
61
|
+
export { FunFireAuth } from "./js/firebase/Auth";
|
|
62
|
+
export { FunFireStore } from "./js/firebase/FireStore";
|
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.View = exports.ScrollInView = exports.Accordion = exports.Flex = exports.RichText = exports.Carousel = exports.Video = exports.SideBar = exports.ChartPie = exports.Lines = exports.Bars = exports.FullCenteredPage = exports.CircleGroup = exports.Circle = exports.Hr = exports.Section = exports.RowFlex = exports.Tip = exports.AppBar = exports.ToolTip = exports.Notification = exports.FunLoader = exports.ProgressBar = exports.DropMenu = exports.DropItem = exports.Dropdown = exports.DropDown = exports.DropUp = exports.UnAuthorized = exports.NotFound = exports.StepLine = exports.StepHeader = exports.Step = exports.StepContainer = exports.Div = exports.Text = exports.List = exports.Table = exports.Modal = exports.Loader = exports.SearchableInput = exports.Input = exports.Col = exports.Grid = exports.Container = exports.BreadCrumb = exports.Card = exports.Button = exports.ThemeProvider = exports.Alert = void 0;
|
|
7
|
-
exports.GoogleAnalytics = exports.FunGet = exports.Cookie = exports.Select = exports.ScrollToTop = exports.FlexItem = exports.Slider = exports.Vista = exports.Calendar = exports.DatePicker = void 0;
|
|
7
|
+
exports.FunFireStore = exports.FunFireAuth = exports.GoogleAnalytics = exports.FunGet = exports.Cookie = exports.Select = exports.ScrollToTop = exports.FlexItem = exports.Slider = exports.Vista = exports.Calendar = exports.DatePicker = void 0;
|
|
8
8
|
var Alert_1 = require("./ui/alert/Alert");
|
|
9
9
|
Object.defineProperty(exports, "Alert", { enumerable: true, get: function () { return __importDefault(Alert_1).default; } });
|
|
10
10
|
var theme_1 = require("./ui/theme/theme");
|
|
@@ -126,3 +126,7 @@ var Fun_1 = require("./js/Fun");
|
|
|
126
126
|
Object.defineProperty(exports, "FunGet", { enumerable: true, get: function () { return Fun_1.FunGet; } });
|
|
127
127
|
var analytics_1 = require("./js/google/analytics");
|
|
128
128
|
Object.defineProperty(exports, "GoogleAnalytics", { enumerable: true, get: function () { return __importDefault(analytics_1).default; } });
|
|
129
|
+
var Auth_1 = require("./js/firebase/Auth");
|
|
130
|
+
Object.defineProperty(exports, "FunFireAuth", { enumerable: true, get: function () { return Auth_1.FunFireAuth; } });
|
|
131
|
+
var FireStore_1 = require("./js/firebase/FireStore");
|
|
132
|
+
Object.defineProperty(exports, "FunFireStore", { enumerable: true, get: function () { return FireStore_1.FunFireStore; } });
|
package/js/Firebase.d.ts
ADDED
|
File without changes
|
package/js/Firebase.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { Auth, User, UserCredential } from 'firebase/auth';
|
|
2
|
+
interface AuthResponse {
|
|
3
|
+
user: User;
|
|
4
|
+
credential: UserCredential;
|
|
5
|
+
isNewUser?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface AuthStateCallback {
|
|
8
|
+
(user: User | null): void;
|
|
9
|
+
}
|
|
10
|
+
type ProviderType = 'google' | 'facebook' | 'github' | 'twitter' | 'microsoft' | 'apple';
|
|
11
|
+
/**
|
|
12
|
+
* Firebase Authentication Operations
|
|
13
|
+
* Users must pass their Auth instance to each method
|
|
14
|
+
*/
|
|
15
|
+
export declare const FunFireAuth: {
|
|
16
|
+
/**
|
|
17
|
+
* 📧 Sign in with email and password
|
|
18
|
+
* @param auth - Firebase Auth instance
|
|
19
|
+
* @param email - User email
|
|
20
|
+
* @param password - User password
|
|
21
|
+
*/
|
|
22
|
+
signInWithEmail: (auth: Auth, email: string, password: string) => Promise<AuthResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* ✍️ Create account with email and password
|
|
25
|
+
* @param auth - Firebase Auth instance
|
|
26
|
+
* @param email - User email
|
|
27
|
+
* @param password - User password
|
|
28
|
+
* @param displayName - Optional display name
|
|
29
|
+
* @param photoURL - Optional photo URL
|
|
30
|
+
*/
|
|
31
|
+
createAccount: (auth: Auth, email: string, password: string, displayName?: string, photoURL?: string) => Promise<AuthResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* 🔐 Sign in with Google (Popup)
|
|
34
|
+
* @param auth - Firebase Auth instance
|
|
35
|
+
*/
|
|
36
|
+
signInWithGoogle: (auth: Auth) => Promise<AuthResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* 🔐 Sign in with Facebook (Popup)
|
|
39
|
+
* @param auth - Firebase Auth instance
|
|
40
|
+
*/
|
|
41
|
+
signInWithFacebook: (auth: Auth) => Promise<AuthResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* 🔐 Sign in with GitHub (Popup)
|
|
44
|
+
* @param auth - Firebase Auth instance
|
|
45
|
+
*/
|
|
46
|
+
signInWithGithub: (auth: Auth) => Promise<AuthResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* 🔐 Sign in with Twitter (Popup)
|
|
49
|
+
* @param auth - Firebase Auth instance
|
|
50
|
+
*/
|
|
51
|
+
signInWithTwitter: (auth: Auth) => Promise<AuthResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* 🔐 Sign in with Microsoft (Popup)
|
|
54
|
+
* @param auth - Firebase Auth instance
|
|
55
|
+
*/
|
|
56
|
+
signInWithMicrosoft: (auth: Auth) => Promise<AuthResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* 🔐 Sign in with Apple (Popup)
|
|
59
|
+
* @param auth - Firebase Auth instance
|
|
60
|
+
*/
|
|
61
|
+
signInWithApple: (auth: Auth) => Promise<AuthResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* 🔐 Generic provider sign in with redirect (better for mobile)
|
|
64
|
+
* @param auth - Firebase Auth instance
|
|
65
|
+
* @param providerType - Provider type
|
|
66
|
+
*/
|
|
67
|
+
signInWithRedirect: (auth: Auth, providerType: ProviderType) => Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* 🚪 Sign out
|
|
70
|
+
* @param auth - Firebase Auth instance
|
|
71
|
+
*/
|
|
72
|
+
signOut: (auth: Auth) => Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* 🔄 Send password reset email
|
|
75
|
+
* @param auth - Firebase Auth instance
|
|
76
|
+
* @param email - User email
|
|
77
|
+
* @param actionCodeSettings - Optional action code settings for custom redirect
|
|
78
|
+
*/
|
|
79
|
+
resetPassword: (auth: Auth, email: string, actionCodeSettings?: {
|
|
80
|
+
url: string;
|
|
81
|
+
handleCodeInApp?: boolean;
|
|
82
|
+
}) => Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* ✉️ Send email verification
|
|
85
|
+
* @param auth - Firebase Auth instance
|
|
86
|
+
* @param actionCodeSettings - Optional action code settings for custom redirect
|
|
87
|
+
*/
|
|
88
|
+
sendVerificationEmail: (auth: Auth, actionCodeSettings?: {
|
|
89
|
+
url: string;
|
|
90
|
+
handleCodeInApp?: boolean;
|
|
91
|
+
}) => Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* 🔑 Update user password
|
|
94
|
+
* @param auth - Firebase Auth instance
|
|
95
|
+
* @param newPassword - New password
|
|
96
|
+
*/
|
|
97
|
+
updatePassword: (auth: Auth, newPassword: string) => Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* 📧 Update user email
|
|
100
|
+
* @param auth - Firebase Auth instance
|
|
101
|
+
* @param newEmail - New email
|
|
102
|
+
*/
|
|
103
|
+
updateEmail: (auth: Auth, newEmail: string) => Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* 👤 Update user profile
|
|
106
|
+
* @param auth - Firebase Auth instance
|
|
107
|
+
* @param displayName - Display name
|
|
108
|
+
* @param photoURL - Photo URL
|
|
109
|
+
*/
|
|
110
|
+
updateProfile: (auth: Auth, displayName?: string, photoURL?: string) => Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* 🔐 Reauthenticate user (required before sensitive operations)
|
|
113
|
+
* @param auth - Firebase Auth instance
|
|
114
|
+
* @param password - Current password
|
|
115
|
+
*/
|
|
116
|
+
reauthenticate: (auth: Auth, password: string) => Promise<UserCredential>;
|
|
117
|
+
/**
|
|
118
|
+
* ❌ Delete user account
|
|
119
|
+
* @param auth - Firebase Auth instance
|
|
120
|
+
*/
|
|
121
|
+
deleteAccount: (auth: Auth) => Promise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* 👁️ Listen to auth state changes
|
|
124
|
+
* @param auth - Firebase Auth instance
|
|
125
|
+
* @param callback - Callback function that receives user or null
|
|
126
|
+
* @returns Unsubscribe function
|
|
127
|
+
*/
|
|
128
|
+
onAuthStateChanged: (auth: Auth, callback: AuthStateCallback) => (() => void);
|
|
129
|
+
/**
|
|
130
|
+
* 🔍 Get current user
|
|
131
|
+
* @param auth - Firebase Auth instance
|
|
132
|
+
* @returns Current user or null
|
|
133
|
+
*/
|
|
134
|
+
getCurrentUser: (auth: Auth) => User | null;
|
|
135
|
+
/**
|
|
136
|
+
* 🔍 Check if email exists
|
|
137
|
+
* @param auth - Firebase Auth instance
|
|
138
|
+
* @param email - Email to check
|
|
139
|
+
* @returns Array of sign-in methods for the email
|
|
140
|
+
*/
|
|
141
|
+
checkEmailExists: (auth: Auth, email: string) => Promise<string[]>;
|
|
142
|
+
/**
|
|
143
|
+
* ✅ Apply action code (email verification, password reset)
|
|
144
|
+
* @param auth - Firebase Auth instance
|
|
145
|
+
* @param code - Action code from email link
|
|
146
|
+
*/
|
|
147
|
+
applyActionCode: (auth: Auth, code: string) => Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* 🔍 Verify password reset code
|
|
150
|
+
* @param auth - Firebase Auth instance
|
|
151
|
+
* @param code - Password reset code
|
|
152
|
+
* @returns Email associated with the code
|
|
153
|
+
*/
|
|
154
|
+
verifyPasswordResetCode: (auth: Auth, code: string) => Promise<string>;
|
|
155
|
+
/**
|
|
156
|
+
* ✅ Confirm password reset
|
|
157
|
+
* @param auth - Firebase Auth instance
|
|
158
|
+
* @param code - Password reset code
|
|
159
|
+
* @param newPassword - New password
|
|
160
|
+
*/
|
|
161
|
+
confirmPasswordReset: (auth: Auth, code: string, newPassword: string) => Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* 🔗 Link account with Google
|
|
164
|
+
* @param auth - Firebase Auth instance
|
|
165
|
+
*/
|
|
166
|
+
linkWithGoogle: (auth: Auth) => Promise<UserCredential>;
|
|
167
|
+
/**
|
|
168
|
+
* 🔓 Unlink provider from account
|
|
169
|
+
* @param auth - Firebase Auth instance
|
|
170
|
+
* @param providerId - Provider ID to unlink (e.g., 'google.com', 'password')
|
|
171
|
+
*/
|
|
172
|
+
unlinkProvider: (auth: Auth, providerId: string) => Promise<User>;
|
|
173
|
+
/**
|
|
174
|
+
* 📱 Get ID token (for backend verification)
|
|
175
|
+
* @param auth - Firebase Auth instance
|
|
176
|
+
* @param forceRefresh - Force token refresh
|
|
177
|
+
*/
|
|
178
|
+
getIdToken: (auth: Auth, forceRefresh?: boolean) => Promise<string>;
|
|
179
|
+
};
|
|
180
|
+
export declare const AuthErrorCodes: {
|
|
181
|
+
EMAIL_EXISTS: string;
|
|
182
|
+
INVALID_EMAIL: string;
|
|
183
|
+
WEAK_PASSWORD: string;
|
|
184
|
+
USER_NOT_FOUND: string;
|
|
185
|
+
WRONG_PASSWORD: string;
|
|
186
|
+
TOO_MANY_REQUESTS: string;
|
|
187
|
+
NETWORK_ERROR: string;
|
|
188
|
+
POPUP_CLOSED: string;
|
|
189
|
+
REQUIRES_RECENT_LOGIN: string;
|
|
190
|
+
};
|
|
191
|
+
export type { AuthResponse, AuthStateCallback, ProviderType };
|