hisd3-ui-kit 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 HISD3
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # HISD3 UI KIT
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { StyledTheme } from "../../types/theme";
3
+ import { IUserEmployee } from "../../types/account";
4
+ interface HISD3SidebarProps {
5
+ account: IUserEmployee;
6
+ logoUrl: string;
7
+ appName: string;
8
+ menuItems: any[];
9
+ onLogout: () => Promise<void>;
10
+ pathname: string;
11
+ styledTheme: StyledTheme;
12
+ collapsed?: boolean;
13
+ loading?: boolean;
14
+ hideSidebar?: boolean;
15
+ layoutTop?: boolean;
16
+ avatarSrc?: string;
17
+ settingsUrl?: string;
18
+ }
19
+ export declare const HISD3Sidebar: React.FC<HISD3SidebarProps>;
20
+ export default HISD3Sidebar;
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useEffect, useState } from "react";
3
+ import { ProLayout, ProConfigProvider } from "@ant-design/pro-components";
4
+ import { Dropdown, Modal } from "antd";
5
+ import { SettingOutlined, LogoutOutlined, DownOutlined, ExclamationCircleOutlined, } from "@ant-design/icons";
6
+ import { ThemeProvider } from "styled-components";
7
+ import { StyledCrUserInfoInner, StyledCrUserInfoAvatar, StyledCrUserInfoContent, StyledUsername, StyledUsernameInfo, StyledUserArrow, StyledCrUserDesignation, StyledCrUserInfo, } from "./index.styled";
8
+ export const HISD3Sidebar = ({ account, logoUrl, appName, menuItems, onLogout, pathname, avatarSrc, styledTheme, settingsUrl, collapsed = false, loading = false, hideSidebar = false, layoutTop = false, }) => {
9
+ const [isCollapsed, setIsCollapsed] = useState(collapsed);
10
+ useEffect(() => {
11
+ if (collapsed !== isCollapsed) {
12
+ setIsCollapsed(collapsed);
13
+ }
14
+ }, [collapsed]);
15
+ const confirmLogout = () => {
16
+ Modal.confirm({
17
+ title: "Are you sure you want to logout?",
18
+ content: "Please click OK to continue",
19
+ icon: _jsx(ExclamationCircleOutlined, {}),
20
+ onOk: onLogout,
21
+ });
22
+ };
23
+ if (typeof document === "undefined") {
24
+ return null;
25
+ }
26
+ return (_jsx(ThemeProvider, { theme: styledTheme, children: _jsx(ProConfigProvider, { hashed: false, children: !hideSidebar ? (_jsx(ProLayout, { layout: layoutTop ? "top" : "side", title: appName, logo: logoUrl, location: { pathname }, loading: loading, collapsed: isCollapsed, onCollapse: (collapse) => setIsCollapsed(collapse), menuDataRender: () => menuItems, menu: {
27
+ collapsedShowGroupTitle: true,
28
+ }, token: {
29
+ header: {
30
+ colorBgMenuItemSelected: "rgba(0,0,0,0.04)",
31
+ },
32
+ sider: {
33
+ colorBgMenuItemActive: "#e0f7f7",
34
+ colorBgMenuItemHover: "#e0f7f7",
35
+ colorTextMenuItemHover: "#00796b",
36
+ colorBgMenuItemSelected: "#e0f7f7",
37
+ colorTextMenuSelected: "#00796b",
38
+ },
39
+ }, headerTitleRender: (logo, title) => (_jsxs("a", { href: "/", children: [logo, title] })), menuFooterRender: () => (_jsx(StyledCrUserInfo, { className: "cr-user-info-light", children: _jsx(Dropdown, { trigger: ["click"], placement: "topRight", menu: {
40
+ items: [
41
+ {
42
+ key: "settings",
43
+ icon: _jsx(SettingOutlined, {}),
44
+ label: "Settings",
45
+ onClick: () => (window.location.href = settingsUrl ?? "/settings"),
46
+ },
47
+ {
48
+ key: "logout",
49
+ icon: _jsx(LogoutOutlined, {}),
50
+ label: "Logout",
51
+ onClick: confirmLogout,
52
+ },
53
+ ],
54
+ }, children: _jsxs(StyledCrUserInfoInner, { className: "ant-dropdown-link", children: [avatarSrc && (_jsx(StyledCrUserInfoAvatar, { src: avatarSrc, size: "small" })), _jsxs(StyledCrUserInfoContent, { children: [_jsxs(StyledUsernameInfo, { children: [_jsx(StyledUsername, { children: account.fullName }), _jsx(StyledUserArrow, { children: _jsx(DownOutlined, {}) })] }), _jsx(StyledCrUserDesignation, { children: account.positionType })] })] }) }) })), menuItemRender: (item, dom) => _jsx("a", { href: item.path || "/", children: dom }) })) : (
55
+ // If no sidebar, just render children
56
+ _jsx(_Fragment, {})) }) }));
57
+ };
58
+ export default HISD3Sidebar;
@@ -0,0 +1,17 @@
1
+ export declare const StyledDropdownList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("antd").ListProps<unknown> & {
2
+ ref?: React.ForwardedRef<HTMLDivElement>;
3
+ }, never>> & string & Omit<(<T>(props: import("antd").ListProps<T> & {
4
+ ref?: React.ForwardedRef<HTMLDivElement>;
5
+ }) => ReturnType<(<T_1>(props: import("antd").ListProps<T_1>, ref: React.ForwardedRef<HTMLDivElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>>)>) & Pick<import("react").FC<{}>, "displayName"> & {
6
+ Item: import("antd/es/list/Item").ListItemTypeProps;
7
+ }, keyof import("react").Component<any, {}, any>>;
8
+ export declare const StyledCrUserInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const StyledCrUserInfoInner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
10
+ export declare const StyledCrUserInfoAvatar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("antd").AvatarProps & import("react").RefAttributes<HTMLSpanElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("antd").AvatarProps & import("react").RefAttributes<HTMLSpanElement>> & {
11
+ Group: import("react").FC<import("antd/es/avatar/AvatarGroup").AvatarGroupProps>;
12
+ }, keyof import("react").Component<any, {}, any>>;
13
+ export declare const StyledCrUserInfoContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
14
+ export declare const StyledUsernameInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
15
+ export declare const StyledUsername: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
16
+ export declare const StyledUserArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
17
+ export declare const StyledCrUserDesignation: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
@@ -0,0 +1,100 @@
1
+ import styled from "styled-components";
2
+ import { Avatar, List } from "antd";
3
+ export const StyledDropdownList = styled(List) `
4
+ & .ant-list-item {
5
+ padding: 5px 12px;
6
+ cursor: pointer;
7
+ }
8
+ `;
9
+ export const StyledCrUserInfo = styled.div `
10
+ background-color: transparent;
11
+ padding: 7px 12px;
12
+ height: 56px;
13
+ display: flex;
14
+ flex-direction: column;
15
+ justify-content: center;
16
+ transition: all 0.2s ease;
17
+
18
+ @media screen and (min-width: ${({ theme }) => theme.breakpoints.md}px) {
19
+ padding-top: 10px;
20
+ padding-bottom: 10px;
21
+ height: 71px;
22
+ }
23
+
24
+ & .ant-dropdown-link {
25
+ color: inherit;
26
+
27
+ & .anticon {
28
+ font-size: ${({ theme }) => theme.font.size.sm};
29
+ }
30
+ }
31
+
32
+ &.light {
33
+ & .ant-dropdown-link {
34
+ color: inherit;
35
+ }
36
+ }
37
+ `;
38
+ export const StyledCrUserInfoInner = styled.a `
39
+ display: flex;
40
+ align-items: center;
41
+ `;
42
+ export const StyledCrUserInfoAvatar = styled(Avatar) `
43
+ font-size: 24px;
44
+ background-color: ${({ theme }) => theme.palette.orange[6]};
45
+ width: 40px;
46
+ height: 40px;
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ `;
51
+ export const StyledCrUserInfoContent = styled.span `
52
+ width: calc(100% - 62px);
53
+ margin-left: 16px;
54
+ transition: all 0.2s ease;
55
+
56
+ [dir="rtl"] & {
57
+ margin-left: 0;
58
+ margin-right: 16px;
59
+ }
60
+ `;
61
+ export const StyledUsernameInfo = styled.span `
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+ `;
66
+ export const StyledUsername = styled.h3 `
67
+ margin-bottom: 0;
68
+ font-size: ${({ theme }) => theme.font.size.sm};
69
+ font-weight: ${({ theme }) => theme.font.weight.lg};
70
+ color: #000000e0;
71
+
72
+ &.light {
73
+ color: #000000e0;
74
+ }
75
+ `;
76
+ export const StyledUserArrow = styled.span `
77
+ margin-left: 12px;
78
+ width: 24px;
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+
83
+ [dir="rtl"] & {
84
+ margin-left: 0;
85
+ margin-right: 12px;
86
+ }
87
+
88
+ & svg {
89
+ display: block;
90
+ }
91
+ `;
92
+ export const StyledCrUserDesignation = styled.span `
93
+ margin-top: -2px;
94
+ color: #000000e0;
95
+ font-size: ${({ theme }) => theme.font.size.sm};
96
+
97
+ .ant-layout-sider-dark & {
98
+ color: #000000e0;
99
+ }
100
+ `;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface SidebarProps {
3
+ children: React.ReactNode;
4
+ }
5
+ declare const HISD3Sidebar: React.FC<SidebarProps>;
6
+ export default HISD3Sidebar;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Layout, Menu } from "antd";
3
+ import { HomeOutlined, SearchOutlined, SettingOutlined, } from "@ant-design/icons";
4
+ const { Sider, Content } = Layout;
5
+ const HISD3Sidebar = (props) => {
6
+ return (_jsxs(Layout, { style: { minHeight: "100vh" }, children: [_jsx(Sider, { width: 200, style: { background: "#fff" }, children: _jsxs(Menu, { mode: "inline", defaultSelectedKeys: ["1"], style: { height: "100%", borderRight: 0 }, children: [_jsx(Menu.Item, { icon: _jsx(HomeOutlined, {}), children: "Home" }, "1"), _jsx(Menu.Item, { icon: _jsx(SearchOutlined, {}), children: "Search" }, "2"), _jsx(Menu.Item, { icon: _jsx(SettingOutlined, {}), children: "Settings" }, "3")] }) }), _jsx(Layout, { style: { padding: "0 24px 24px" }, children: _jsx(Content, { style: {
7
+ padding: 24,
8
+ margin: 0,
9
+ minHeight: 280,
10
+ }, children: props.children }) })] }));
11
+ };
12
+ export default HISD3Sidebar;
@@ -0,0 +1,419 @@
1
+ export declare enum ThemeStyle {
2
+ MODERN = "modern",
3
+ STANDARD = "standard"
4
+ }
5
+ export declare enum ThemeStyleRadius {
6
+ MODERN = "30px",
7
+ STANDARD = "16px"
8
+ }
9
+ export declare enum ThemeMode {
10
+ LIGHT = "light",
11
+ SEMI_DARK = "semi-dark",
12
+ DARK = "dark"
13
+ }
14
+ export declare enum LayoutType {
15
+ FULL_WIDTH = "full-width",
16
+ BOXED = "boxed",
17
+ FRAMED = "framed"
18
+ }
19
+ export declare enum MenuStyle {
20
+ DEFAULT = "default",
21
+ STANDARD = "standard",
22
+ ROUNDED = "rounded",
23
+ ROUNDED_REVERSE = "rounded-reverse",
24
+ CURVED_MENU = "curved-menu"
25
+ }
26
+ export declare enum NavStyle {
27
+ DEFAULT = "default",
28
+ MINI = "mini",
29
+ MINI_SIDEBAR_TOGGLE = "mini-sidebar-toggle",
30
+ STANDARD = "standard",
31
+ HEADER_USER = "user-header",
32
+ HEADER_USER_MINI = "user-mini-header",
33
+ DRAWER = "drawer",
34
+ BIT_BUCKET = "bit-bucket",
35
+ H_DEFAULT = "h-default",
36
+ HOR_HEADER_FIXED = "hor-header-fixed",
37
+ HOR_DARK_LAYOUT = "hor-dark-layout"
38
+ }
39
+ export declare enum FooterType {
40
+ FIXED = "fixed",
41
+ FLUID = "fluid"
42
+ }
43
+ export declare enum LayoutDirection {
44
+ RTL = "rtl",
45
+ LTR = "ltr"
46
+ }
47
+ export declare enum HeaderType {
48
+ DARK = "dark",
49
+ LIGHT = "light"
50
+ }
51
+ export declare enum RouteTransition {
52
+ NONE = "none",
53
+ FADE = "fade",
54
+ SLIDE_LEFT = "slideLeft",
55
+ SLIDE_RIGHT = "slideRight",
56
+ SLIDE_UP = "slideUp",
57
+ SLIDE_DOWN = "slideDown"
58
+ }
59
+ export declare enum Fonts {
60
+ LIGHT = "300",
61
+ REGULAR = "400",
62
+ MEDIUM = "500",
63
+ BOLD = "600"
64
+ }
65
+ export declare enum AuthType {
66
+ FIREBASE = "firebase",
67
+ AWS_COGNITO = "aws_cognito",
68
+ AUTH0 = "auth0",
69
+ JWT_AUTH = "jwt_auth"
70
+ }
71
+ export declare enum AppAnimates {
72
+ SLIDEUPIN = "transition.slideUpIn",
73
+ SLIDEUPOUT = "transition.slideUpOut",
74
+ SLIDEDOWNIN = "transition.slideDownIn",
75
+ SLIDEDOWNOUT = "transition.slideDownOut",
76
+ SLIDELEFTIN = "transition.slideLeftIn",
77
+ SLIDELEFTOUT = "transition.slideLeftOut",
78
+ SLIDERIGHTIN = "transition.slideRightIn",
79
+ SLIDERIGHTOUT = "transition.slideRightOut",
80
+ FADEIN = "transition.fadeIn",
81
+ FADEOUT = "transition.fadeOut"
82
+ }
83
+ export declare const AppAnimateGroups: {
84
+ SLIDEUPIN: {
85
+ hidden: {
86
+ y: number;
87
+ };
88
+ visible: {
89
+ opacity: number;
90
+ y: number;
91
+ transition: {
92
+ ease: string;
93
+ delay: number;
94
+ when: string;
95
+ duration: number;
96
+ staggerChildren: number;
97
+ };
98
+ };
99
+ };
100
+ SLIDEUPOUT: {
101
+ hidden: {
102
+ y: number;
103
+ };
104
+ visible: {
105
+ opacity: number;
106
+ y: string;
107
+ transition: {
108
+ ease: string;
109
+ delay: number;
110
+ when: string;
111
+ duration: number;
112
+ staggerChildren: number;
113
+ };
114
+ };
115
+ };
116
+ SLIDEDOWNIN: {
117
+ hidden: {
118
+ opacity: number;
119
+ y: string;
120
+ };
121
+ visible: {
122
+ opacity: number;
123
+ y: number;
124
+ transition: {
125
+ ease: string;
126
+ delay: number;
127
+ when: string;
128
+ duration: number;
129
+ staggerChildren: number;
130
+ };
131
+ };
132
+ };
133
+ SLIDEDOWNOUT: {
134
+ hidden: {
135
+ y: number;
136
+ };
137
+ visible: {
138
+ opacity: number;
139
+ y: string;
140
+ transition: {
141
+ ease: string;
142
+ delay: number;
143
+ when: string;
144
+ duration: number;
145
+ staggerChildren: number;
146
+ };
147
+ };
148
+ };
149
+ SLIDELEFTIN: {
150
+ hidden: {
151
+ x: string;
152
+ };
153
+ visible: {
154
+ opacity: number;
155
+ x: number;
156
+ transition: {
157
+ ease: string;
158
+ delay: number;
159
+ when: string;
160
+ duration: number;
161
+ staggerChildren: number;
162
+ };
163
+ };
164
+ };
165
+ SLIDELEFTOUT: {
166
+ hidden: {
167
+ x: number;
168
+ };
169
+ visible: {
170
+ opacity: number;
171
+ x: string;
172
+ transition: {
173
+ ease: string;
174
+ delay: number;
175
+ when: string;
176
+ duration: number;
177
+ staggerChildren: number;
178
+ };
179
+ };
180
+ };
181
+ SLIDERIGHTIN: {
182
+ hidden: {
183
+ x: string;
184
+ };
185
+ visible: {
186
+ opacity: number;
187
+ x: number;
188
+ transition: {
189
+ ease: string;
190
+ delay: number;
191
+ when: string;
192
+ duration: number;
193
+ staggerChildren: number;
194
+ };
195
+ };
196
+ };
197
+ SLIDERIGHTOUT: {
198
+ hidden: {
199
+ x: number;
200
+ };
201
+ visible: {
202
+ opacity: number;
203
+ x: string;
204
+ transition: {
205
+ ease: string;
206
+ delay: number;
207
+ when: string;
208
+ duration: number;
209
+ staggerChildren: number;
210
+ };
211
+ };
212
+ };
213
+ FADEIN: {
214
+ hidden: {
215
+ opacity: number;
216
+ scale: number;
217
+ };
218
+ visible: {
219
+ opacity: number;
220
+ scale: number;
221
+ transition: {
222
+ ease: string;
223
+ when: string;
224
+ staggerChildren: number;
225
+ };
226
+ };
227
+ };
228
+ FADEOUT: {
229
+ hidden: {
230
+ opacity: number;
231
+ scale: number;
232
+ };
233
+ visible: {
234
+ opacity: number;
235
+ scale: number;
236
+ transition: {
237
+ ease: string;
238
+ when: string;
239
+ staggerChildren: number;
240
+ };
241
+ };
242
+ };
243
+ NOANIMATION: {
244
+ hidden: {
245
+ opacity: number;
246
+ };
247
+ visible: {
248
+ opacity: number;
249
+ };
250
+ };
251
+ };
252
+ export declare const AppMotionAnimate: {
253
+ SLIDEUPIN: {
254
+ variants: {
255
+ hidden: {
256
+ y: number;
257
+ opacity: number;
258
+ };
259
+ visible: {
260
+ opacity: number;
261
+ y: number;
262
+ };
263
+ };
264
+ transition: {
265
+ ease: string;
266
+ when: string;
267
+ };
268
+ };
269
+ SLIDEUPOUT: {
270
+ variants: {
271
+ hidden: {
272
+ y: number;
273
+ opacity: number;
274
+ };
275
+ visible: {
276
+ opacity: number;
277
+ y: string;
278
+ };
279
+ };
280
+ transition: {
281
+ ease: string;
282
+ when: string;
283
+ };
284
+ };
285
+ SLIDEDOWNIN: {
286
+ variants: {
287
+ hidden: {
288
+ y: number;
289
+ opacity: number;
290
+ };
291
+ visible: {
292
+ opacity: number;
293
+ y: number;
294
+ };
295
+ };
296
+ transition: {
297
+ ease: string;
298
+ when: string;
299
+ };
300
+ };
301
+ SLIDEDOWNOUT: {
302
+ variants: {
303
+ hidden: {
304
+ y: number;
305
+ opacity: number;
306
+ };
307
+ visible: {
308
+ opacity: number;
309
+ y: string;
310
+ };
311
+ };
312
+ transition: {
313
+ ease: string;
314
+ when: string;
315
+ };
316
+ };
317
+ SLIDELEFTIN: {
318
+ variants: {
319
+ hidden: {
320
+ x: number;
321
+ opacity: number;
322
+ };
323
+ visible: {
324
+ opacity: number;
325
+ x: number;
326
+ };
327
+ };
328
+ transition: {
329
+ ease: string;
330
+ when: string;
331
+ };
332
+ };
333
+ SLIDELEFTOUT: {
334
+ variants: {
335
+ hidden: {
336
+ x: number;
337
+ opacity: number;
338
+ };
339
+ visible: {
340
+ opacity: number;
341
+ x: string;
342
+ };
343
+ };
344
+ transition: {
345
+ ease: string;
346
+ when: string;
347
+ };
348
+ };
349
+ SLIDERIGHTIN: {
350
+ variants: {
351
+ hidden: {
352
+ x: number;
353
+ opacity: number;
354
+ };
355
+ visible: {
356
+ opacity: number;
357
+ x: number;
358
+ };
359
+ };
360
+ transition: {
361
+ ease: string;
362
+ when: string;
363
+ };
364
+ };
365
+ SLIDERIGHTOUT: {
366
+ variants: {
367
+ hidden: {
368
+ x: number;
369
+ opacity: number;
370
+ };
371
+ visible: {
372
+ opacity: number;
373
+ x: string;
374
+ };
375
+ };
376
+ transition: {
377
+ ease: string;
378
+ when: string;
379
+ };
380
+ };
381
+ FADEIN: {
382
+ variants: {
383
+ hidden: {
384
+ opacity: number;
385
+ };
386
+ visible: {
387
+ opacity: number;
388
+ };
389
+ };
390
+ transition: {
391
+ duration: number;
392
+ ease: string;
393
+ when: string;
394
+ };
395
+ };
396
+ FADEOUT: {
397
+ variants: {
398
+ hidden: {
399
+ opacity: number;
400
+ };
401
+ visible: {
402
+ opacity: number;
403
+ };
404
+ };
405
+ transition: {
406
+ duration: number;
407
+ ease: string;
408
+ when: string;
409
+ };
410
+ };
411
+ };
412
+ export declare enum MessageType {
413
+ MEDIA = 1,
414
+ TEXT = 2
415
+ }
416
+ export declare enum RoutePermittedRole {
417
+ Admin = "admin",
418
+ User = "user"
419
+ }