@elcrm/telegram 0.0.81 → 0.0.83
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/dist/BottomSheet/index.d.ts +4 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +61 -16
- package/dist/index.es.js +923 -898
- package/dist/index.umd.js +20 -20
- package/package.json +2 -2
|
@@ -4,6 +4,9 @@ type TBottomsheet = {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
title?: string;
|
|
6
6
|
isOverlay?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
footer?: boolean;
|
|
9
|
+
onOpen?: (isOpen: boolean) => void;
|
|
7
10
|
};
|
|
8
11
|
/**
|
|
9
12
|
* Компонент BottomSheet
|
|
@@ -13,6 +16,6 @@ type TBottomsheet = {
|
|
|
13
16
|
* @param {string} [props.title] - Заголовок окна (опционально)
|
|
14
17
|
* @param {boolean} [props.isOverlay=true] - Показывать ли затемняющую подложку (по умолчанию true)
|
|
15
18
|
*/
|
|
16
|
-
declare const BottomSheet: ({ children, title, isOverlay }: TBottomsheet) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const BottomSheet: ({ children, title, isOverlay, footer, className, onOpen, }: TBottomsheet) => import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
export default BottomSheet;
|
|
18
21
|
export { toggleBottomsheet };
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)
|
|
1
|
+
@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}._h_1ryiq_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ryiq_1._row_1ryiq_14{flex-direction:row}._h_1ryiq_1._column_1ryiq_17{flex-direction:column}._h_1ryiq_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_1ryiq_1 div[data-active=true]{color:var(--tg-theme-button-color)}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,16 +11,35 @@ declare namespace Telegram {
|
|
|
11
11
|
const WebApp: any;
|
|
12
12
|
const getUser: () => any;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @
|
|
17
|
-
*
|
|
14
|
+
* Объект для отображения уведомлений с поддержкой тем оформления и хаптик-отклика.
|
|
15
|
+
*
|
|
16
|
+
* @property {Function} Send - Основной метод для отправки уведомления.
|
|
17
|
+
* @param {string|object} type - Тип уведомления ('error', 'success', 'warning') или объект: {type, text, thema}.
|
|
18
|
+
* @param {string} [text] - Текст уведомления (используется если type - строка).
|
|
19
|
+
* @param {boolean} [thema] - Признак применения темы оформления (используется если type - строка).
|
|
20
|
+
*
|
|
21
|
+
* @property {Function} Error - Показывает уведомление об ошибке.
|
|
22
|
+
* @param {string} [text] - Текст уведомления.
|
|
23
|
+
*
|
|
24
|
+
* @property {Function} Success - Показывает уведомление об успехе.
|
|
25
|
+
* @param {string} [text] - Текст уведомления.
|
|
26
|
+
*
|
|
27
|
+
* @property {Function} Warning - Показывает предупреждение.
|
|
28
|
+
* @param {string} [text] - Текст уведомления.
|
|
18
29
|
*
|
|
19
30
|
* Пример использования:
|
|
20
|
-
* Telegram.Notice('error', 'Что-то пошло не так');
|
|
21
|
-
* Telegram.Notice({type: 'success', text: 'Операция выполнена', thema: true});
|
|
31
|
+
* Telegram.Notice.Send('error', 'Что-то пошло не так');
|
|
32
|
+
* Telegram.Notice.Send({type: 'success', text: 'Операция выполнена', thema: true});
|
|
33
|
+
* Telegram.Notice.Error('Произошла ошибка');
|
|
34
|
+
* Telegram.Notice.Success('Операция выполнена успешно');
|
|
35
|
+
* Telegram.Notice.Warning('Внимание!');
|
|
22
36
|
*/
|
|
23
|
-
const Notice:
|
|
37
|
+
const Notice: {
|
|
38
|
+
Send: (type: any, text?: any, thema?: any) => void;
|
|
39
|
+
Error: (text?: any) => void;
|
|
40
|
+
Success: (text?: any) => void;
|
|
41
|
+
Warning: (text?: any) => void;
|
|
42
|
+
};
|
|
24
43
|
const Header: () => import("react/jsx-runtime").JSX.Element;
|
|
25
44
|
/**
|
|
26
45
|
* @param {TAction[]} [actions] - Массив действий для отображения в футере
|
|
@@ -38,10 +57,13 @@ declare namespace Telegram {
|
|
|
38
57
|
* @param {string} [props.title] - Заголовок окна (опционально)
|
|
39
58
|
* @param {boolean} [props.isOverlay=true] - Показывать ли затемняющую подложку (по умолчанию true)
|
|
40
59
|
*/
|
|
41
|
-
const BottomSheet: ({ children, title, isOverlay }: {
|
|
60
|
+
const BottomSheet: ({ children, title, isOverlay, footer, className, onOpen, }: {
|
|
42
61
|
children: React.ReactNode;
|
|
43
62
|
title?: string;
|
|
44
63
|
isOverlay?: boolean;
|
|
64
|
+
className?: string;
|
|
65
|
+
footer?: boolean;
|
|
66
|
+
onOpen?: (isOpen: boolean) => void;
|
|
45
67
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
46
68
|
const toggleBottomSheet: () => void;
|
|
47
69
|
const SafeArea: ({ className, children, isScroll }: import("./SafeArea").TSafeArea) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -52,6 +74,7 @@ declare namespace Telegram {
|
|
|
52
74
|
callback: never[];
|
|
53
75
|
set: (j: MainButton | boolean) => void;
|
|
54
76
|
};
|
|
77
|
+
const BackButtonPrev: () => void;
|
|
55
78
|
/**
|
|
56
79
|
* @param {object} params - параметры компонента
|
|
57
80
|
* @param {string} [params.page] - Текущая страница для определения активного действия
|
|
@@ -78,10 +101,13 @@ export declare const Footer: ({ actions, children, className, toHide, page, onPa
|
|
|
78
101
|
* @param {string} [props.title] - Заголовок окна (опционально)
|
|
79
102
|
* @param {boolean} [props.isOverlay=true] - Показывать ли затемняющую подложку (по умолчанию true)
|
|
80
103
|
*/
|
|
81
|
-
export declare const BottomSheet: ({ children, title, isOverlay }: {
|
|
104
|
+
export declare const BottomSheet: ({ children, title, isOverlay, footer, className, onOpen, }: {
|
|
82
105
|
children: React.ReactNode;
|
|
83
106
|
title?: string;
|
|
84
107
|
isOverlay?: boolean;
|
|
108
|
+
className?: string;
|
|
109
|
+
footer?: boolean;
|
|
110
|
+
onOpen?: (isOpen: boolean) => void;
|
|
85
111
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
86
112
|
/**
|
|
87
113
|
* @param {object} params - параметры компонента
|
|
@@ -93,16 +119,35 @@ export declare const BackButton: (params: boolean | {
|
|
|
93
119
|
callback?: () => void;
|
|
94
120
|
}) => void;
|
|
95
121
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* @
|
|
99
|
-
*
|
|
122
|
+
* Объект для отображения уведомлений с поддержкой тем оформления и хаптик-отклика.
|
|
123
|
+
*
|
|
124
|
+
* @property {Function} Send - Основной метод для отправки уведомления.
|
|
125
|
+
* @param {string|object} type - Тип уведомления ('error', 'success', 'warning') или объект: {type, text, thema}.
|
|
126
|
+
* @param {string} [text] - Текст уведомления (используется если type - строка).
|
|
127
|
+
* @param {boolean} [thema] - Признак применения темы оформления (используется если type - строка).
|
|
128
|
+
*
|
|
129
|
+
* @property {Function} Error - Показывает уведомление об ошибке.
|
|
130
|
+
* @param {string} [text] - Текст уведомления.
|
|
131
|
+
*
|
|
132
|
+
* @property {Function} Success - Показывает уведомление об успехе.
|
|
133
|
+
* @param {string} [text] - Текст уведомления.
|
|
134
|
+
*
|
|
135
|
+
* @property {Function} Warning - Показывает предупреждение.
|
|
136
|
+
* @param {string} [text] - Текст уведомления.
|
|
100
137
|
*
|
|
101
138
|
* Пример использования:
|
|
102
|
-
* Notice('error', 'Что-то пошло не так');
|
|
103
|
-
* Notice({type: 'success', text: 'Операция выполнена', thema: true});
|
|
139
|
+
* Notice.Send('error', 'Что-то пошло не так');
|
|
140
|
+
* Notice.Send({type: 'success', text: 'Операция выполнена', thema: true});
|
|
141
|
+
* Notice.Error('Произошла ошибка');
|
|
142
|
+
* Notice.Success('Операция выполнена успешно');
|
|
143
|
+
* Notice.Warning('Внимание!');
|
|
104
144
|
*/
|
|
105
|
-
export declare const Notice:
|
|
145
|
+
export declare const Notice: {
|
|
146
|
+
Send: (type: any, text?: any, thema?: any) => void;
|
|
147
|
+
Error: (text?: any) => void;
|
|
148
|
+
Success: (text?: any) => void;
|
|
149
|
+
Warning: (text?: any) => void;
|
|
150
|
+
};
|
|
106
151
|
export declare const SafeArea: ({ className, children, isScroll }: import('./SafeArea').TSafeArea) => import("react/jsx-runtime").JSX.Element;
|
|
107
152
|
export declare const Loading: ({ children, className }: import('./Loading').TLoading) => import("react/jsx-runtime").JSX.Element;
|
|
108
153
|
export declare const Menu: ({ items }: import('./Menu').TMenu) => import("react/jsx-runtime").JSX.Element;
|