@elcrm/telegram 0.0.66 → 0.0.67

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,18 @@
1
+ import { default as React } from 'react';
2
+ declare let toggleBottomsheet: () => void;
3
+ type TBottomsheet = {
4
+ children: React.ReactNode;
5
+ title?: string;
6
+ isOverlay?: boolean;
7
+ };
8
+ /**
9
+ * Компонент BottomSheet
10
+ *
11
+ * @param {object} props - параметры компонента
12
+ * @param {React.ReactNode} props.children - Контент внутри шита
13
+ * @param {string} [props.title] - Заголовок окна (опционально)
14
+ * @param {boolean} [props.isOverlay=true] - Показывать ли затемняющую подложку (по умолчанию true)
15
+ */
16
+ declare const BottomSheet: ({ children, title, isOverlay }: TBottomsheet) => import("react/jsx-runtime").JSX.Element;
17
+ export default BottomSheet;
18
+ export { toggleBottomsheet };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { Modal as _Modal } from './Madal/index';
2
3
  declare namespace Telegram {
3
4
  const WebApp: any;
@@ -15,8 +16,21 @@ declare namespace Telegram {
15
16
  */
16
17
  const Notice: (type: any, text?: any, thema?: any) => void;
17
18
  const Header: () => import("react/jsx-runtime").JSX.Element;
18
- const Footer: ({ actions, children, className, page, setPage, direction, }: import("./Footer/Footer").TFooter) => import("react/jsx-runtime").JSX.Element;
19
- const toggleFooterMenu: () => void;
19
+ const Footer: ({ actions, children, className, page, setPage, direction, }: import("./Footer").TFooter) => import("react/jsx-runtime").JSX.Element;
20
+ /**
21
+ * Компонент BottomSheet
22
+ *
23
+ * @param {object} props - параметры компонента
24
+ * @param {React.ReactNode} props.children - Контент внутри шита
25
+ * @param {string} [props.title] - Заголовок окна (опционально)
26
+ * @param {boolean} [props.isOverlay=true] - Показывать ли затемняющую подложку (по умолчанию true)
27
+ */
28
+ const Bottomsheet: ({ children, title, isOverlay }: {
29
+ children: React.ReactNode;
30
+ title?: string;
31
+ isOverlay?: boolean;
32
+ }) => import("react/jsx-runtime").JSX.Element;
33
+ const toggleBottomsheet: () => void;
20
34
  const Modal: typeof _Modal;
21
35
  const MainButton: {
22
36
  callback: never[];
@@ -37,8 +51,7 @@ type MainButton = {
37
51
  callback?: () => void;
38
52
  page: string;
39
53
  };
40
- export default Telegram;
41
- export declare const Header: () => import("react/jsx-runtime").JSX.Element, Footer: ({ actions, children, className, page, setPage, direction, }: import('./Footer/Footer').TFooter) => import("react/jsx-runtime").JSX.Element, toggleFooterMenu: () => void, Modal: typeof _Modal, MainButton: {
54
+ export declare const Header: () => import("react/jsx-runtime").JSX.Element, Footer: ({ actions, children, className, page, setPage, direction, }: import('./Footer').TFooter) => import("react/jsx-runtime").JSX.Element, toggleBottomsheet: () => void, Modal: typeof _Modal, MainButton: {
42
55
  callback: never[];
43
56
  set: (j: MainButton | boolean) => void;
44
57
  }, BackButton: {
@@ -46,4 +59,9 @@ export declare const Header: () => import("react/jsx-runtime").JSX.Element, Foot
46
59
  listen: any;
47
60
  router: (j: any) => void;
48
61
  set: (j: any) => void;
49
- };
62
+ }, Bottomsheet: ({ children, title, isOverlay }: {
63
+ children: React.ReactNode;
64
+ title?: string;
65
+ isOverlay?: boolean;
66
+ }) => import("react/jsx-runtime").JSX.Element, WebApp: any, getUser: () => any, Notice: (type: any, text?: any, thema?: any) => void;
67
+ export default Telegram;