@alphakits/ui 2.4.3 → 2.4.4

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,207 @@
1
+ const e = [
2
+ {
3
+ title: "Central Accountability Architect",
4
+ address: "398 Metz Mews",
5
+ phone: "453-960-8170",
6
+ howToFind: "Dooley Square",
7
+ disinfection: "molestiae consequatur non",
8
+ wifi: !0,
9
+ wardrobe: !0,
10
+ freeParking: !0,
11
+ parking: !1,
12
+ ventilation: !1,
13
+ waitingAreaSize: 95,
14
+ neededEmployees: 5,
15
+ sortPosition: 10,
16
+ id: 1,
17
+ createdAt: "cd3ba579-026f-4fdc-9bd6-7e8c6de1717a",
18
+ profile: "1"
19
+ },
20
+ {
21
+ title: "Investor Optimization Director",
22
+ address: "089 Forrest Highway",
23
+ phone: "390-373-4707",
24
+ howToFind: "Zoe Courts",
25
+ disinfection: "repellat quam nisi",
26
+ wifi: !1,
27
+ wardrobe: !1,
28
+ freeParking: !0,
29
+ parking: !0,
30
+ ventilation: !0,
31
+ waitingAreaSize: 89,
32
+ neededEmployees: 10,
33
+ sortPosition: 6,
34
+ id: 2,
35
+ createdAt: "900d4ebc-f3cf-44d4-b184-ba894dea9389",
36
+ profile: "1"
37
+ },
38
+ {
39
+ title: "Lead Research Liaison",
40
+ address: "69665 Moen Key",
41
+ phone: "429-918-0646",
42
+ howToFind: "Fabiola Ways",
43
+ disinfection: "assumenda temporibus autem",
44
+ wifi: !1,
45
+ wardrobe: !1,
46
+ freeParking: !0,
47
+ parking: !0,
48
+ ventilation: !1,
49
+ waitingAreaSize: 20,
50
+ neededEmployees: 5,
51
+ sortPosition: 5,
52
+ id: 3,
53
+ createdAt: "c9f3c68a-f9cf-4251-9fd1-43dace424182",
54
+ profile: "1"
55
+ },
56
+ {
57
+ title: "International Assurance Associate",
58
+ address: "766 MacGyver Valleys",
59
+ phone: "676-980-9807",
60
+ howToFind: "Lang Spur",
61
+ disinfection: "tempore quae esse",
62
+ wifi: !1,
63
+ wardrobe: !0,
64
+ freeParking: !0,
65
+ parking: !0,
66
+ ventilation: !0,
67
+ waitingAreaSize: 38,
68
+ neededEmployees: 7,
69
+ sortPosition: 6,
70
+ id: 4,
71
+ createdAt: "2165b7c8-f03a-4730-af4f-05bc9c7fb264",
72
+ profile: "1"
73
+ }
74
+ ], a = [
75
+ {
76
+ title: "Dynamic Applications Coordinator",
77
+ video: "f8b61843-64f5-4bfb-9f76-dd495cb75fb5",
78
+ photo: "http://placeimg.com/640/480/technics",
79
+ photos: ["http://placeimg.com/640/480/food"],
80
+ time: 94976,
81
+ break: 22117,
82
+ type: "VR",
83
+ minAge: 18,
84
+ difficult: 5,
85
+ fear: 10,
86
+ teaser: "Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support",
87
+ legend: "The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients",
88
+ importantInformation: "Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support",
89
+ hasActors: !1,
90
+ neededModerators: 6,
91
+ schedulePeriod: 7803,
92
+ languages: ["ru"],
93
+ defaultLanguage: "ru",
94
+ minDaysForFreeCanceling: 5,
95
+ awailableForNavigator: !1,
96
+ awailableForWidgets: !1,
97
+ ticketSystem: !0,
98
+ questroomIds: [],
99
+ walletId: "62a1490f-6e25-4dea-83a9-1fb7604c0575",
100
+ locationId: 1,
101
+ sortPosition: 7,
102
+ id: 345345,
103
+ uid: "952322b8-1a03-4ec3-b26e-6b38cb6a67e1",
104
+ createdAt: "2e27729a-8580-43fe-9e4c-3e1f20a7b5e5",
105
+ profile: "1"
106
+ },
107
+ {
108
+ title: "Principal Response Liaison",
109
+ video: "de9ca5f7-b471-42d0-bc30-125162208ced",
110
+ photo: "http://placeimg.com/640/480/people",
111
+ photos: ["http://placeimg.com/640/480/city"],
112
+ time: 16379,
113
+ break: 20789,
114
+ type: "VR",
115
+ minAge: 16,
116
+ difficult: 1,
117
+ fear: 2,
118
+ teaser: "The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality",
119
+ legend: "The beautiful range of Apple Naturalé that has an exciting mix of natural ingredients. With the Goodness of 100% Natural Ingredients",
120
+ importantInformation: "New ABC 13 9370, 13.3, 5th Gen CoreA5-8250U, 8GB RAM, 256GB SSD, power UHD Graphics, OS 10 Home, OS Office A & J 2016",
121
+ hasActors: !0,
122
+ neededModerators: 5,
123
+ schedulePeriod: 29793,
124
+ languages: ["ru"],
125
+ defaultLanguage: "ru",
126
+ minDaysForFreeCanceling: 8,
127
+ awailableForNavigator: !1,
128
+ awailableForWidgets: !0,
129
+ ticketSystem: !0,
130
+ questroomIds: [],
131
+ walletId: "1da9a23f-bc4f-41c0-8fb6-cd28d12d7898",
132
+ locationId: 3,
133
+ sortPosition: 6,
134
+ id: 345345,
135
+ uid: "dbaca4f7-d7c4-4fec-9859-2ac08dd07056",
136
+ createdAt: "119ff39c-d0e5-4f9c-9302-6abc405e1a68",
137
+ profile: "1"
138
+ },
139
+ {
140
+ title: "Corporate Metrics Producer",
141
+ video: "5d30bfba-3f3f-4fa7-b15f-c6f3ca87dc5d",
142
+ photo: "http://placeimg.com/640/480/people",
143
+ photos: ["http://placeimg.com/640/480/nature"],
144
+ time: 83659,
145
+ break: 38135,
146
+ type: "Escape room",
147
+ minAge: 14,
148
+ difficult: 8,
149
+ fear: 9,
150
+ teaser: "The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design",
151
+ legend: "The Football Is Good For Training And Recreational Purposes",
152
+ importantInformation: "The automobile layout consists of a front-engine design, with transaxle-type transmissions mounted at the rear of the engine and four wheel drive",
153
+ hasActors: !1,
154
+ neededModerators: 3,
155
+ schedulePeriod: 77886,
156
+ languages: ["ru"],
157
+ defaultLanguage: "ru",
158
+ minDaysForFreeCanceling: 6,
159
+ awailableForNavigator: !0,
160
+ awailableForWidgets: !0,
161
+ ticketSystem: !0,
162
+ questroomIds: [],
163
+ walletId: "62a1490f-6e25-4dea-83a9-1fb7604c0575",
164
+ locationId: 3,
165
+ sortPosition: 10,
166
+ id: 3232,
167
+ uid: 435,
168
+ createdAt: "59d4d79c-fc49-42d5-858f-a5ea997b259a",
169
+ profile: "1"
170
+ },
171
+ {
172
+ title: "International Division Associate",
173
+ video: "86ebe48a-8b55-4ab7-98d8-18c2114679a4",
174
+ photo: "http://placeimg.com/640/480/technics",
175
+ photos: ["http://placeimg.com/640/480/nightlife"],
176
+ time: 14309,
177
+ break: 29278,
178
+ type: "VR",
179
+ minAge: 12,
180
+ difficult: 8,
181
+ fear: 9,
182
+ teaser: "New range of formal shirts are designed keeping you in mind. With fits and styling that will make you stand apart",
183
+ legend: "Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support",
184
+ importantInformation: "The Apollotech B340 is an affordable wireless mouse with reliable connectivity, 12 months battery life and modern design",
185
+ hasActors: !0,
186
+ neededModerators: 4,
187
+ schedulePeriod: 51071,
188
+ languages: ["ru"],
189
+ defaultLanguage: "ru",
190
+ minDaysForFreeCanceling: 8,
191
+ awailableForNavigator: !0,
192
+ awailableForWidgets: !1,
193
+ ticketSystem: !0,
194
+ questroomIds: [],
195
+ walletId: "1da9a23f-bc4f-41c0-8fb6-cd28d12d7898",
196
+ locationId: 4,
197
+ sortPosition: 8,
198
+ id: 234,
199
+ uid: "2b2d59c0-689a-4049-9b98-51cfa73eb500",
200
+ createdAt: "591b55b2-648e-4da6-802f-e44649557cb8",
201
+ profile: "1"
202
+ }
203
+ ];
204
+ export {
205
+ e as locations,
206
+ a as questrooms
207
+ };
@@ -0,0 +1,99 @@
1
+ export declare const locationsWithQuestrooms: {
2
+ createdAt: string;
3
+ updatedAt: string;
4
+ id: number;
5
+ profileId: number;
6
+ deletedAt: null;
7
+ title: string;
8
+ phone: string;
9
+ address: string;
10
+ coordinates: {
11
+ type: string;
12
+ coordinates: number[];
13
+ };
14
+ cityId: number;
15
+ howToFind: string;
16
+ disinfection: string;
17
+ wifi: boolean;
18
+ wardrobe: boolean;
19
+ freeParking: boolean;
20
+ parking: boolean;
21
+ ventilation: boolean;
22
+ waitingArea: boolean;
23
+ waitingAreaSize: number;
24
+ sortPosition: number;
25
+ questroomsCount: number;
26
+ questrooms: ({
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ id: number;
30
+ profileId: number;
31
+ deletedAt: null;
32
+ title: string;
33
+ slug: string;
34
+ type: string;
35
+ locationId: number;
36
+ difficult: number;
37
+ fear: number;
38
+ minAge: number;
39
+ actors: boolean;
40
+ questroomIds: never[];
41
+ languages: never[];
42
+ defaultLanguage: null;
43
+ onlinePaymentsCashbox: null;
44
+ cashPaymentsCashbox: number;
45
+ cardPaymentsCashbox: number;
46
+ awailableForNavigator: boolean;
47
+ awailableForWidgets: boolean;
48
+ breakInterval: number;
49
+ time: number;
50
+ minHoursForFreeCanceling: number;
51
+ ticketSystem: boolean;
52
+ photo: string;
53
+ video: null;
54
+ photos: string[];
55
+ legend: string;
56
+ teaser: null;
57
+ sortPosition: number;
58
+ rating: number;
59
+ playersMin: number;
60
+ playersMax: number;
61
+ tags: never[];
62
+ } | {
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ id: number;
66
+ profileId: number;
67
+ deletedAt: null;
68
+ title: string;
69
+ slug: string;
70
+ type: string;
71
+ locationId: number;
72
+ difficult: number;
73
+ fear: number;
74
+ minAge: number;
75
+ actors: boolean;
76
+ questroomIds: never[];
77
+ languages: string[];
78
+ defaultLanguage: string;
79
+ onlinePaymentsCashbox: null;
80
+ cashPaymentsCashbox: number;
81
+ cardPaymentsCashbox: number;
82
+ awailableForNavigator: boolean;
83
+ awailableForWidgets: boolean;
84
+ breakInterval: number;
85
+ time: number;
86
+ minHoursForFreeCanceling: number;
87
+ ticketSystem: boolean;
88
+ photo: string;
89
+ video: null;
90
+ photos: string[];
91
+ legend: string;
92
+ teaser: null;
93
+ sortPosition: number;
94
+ rating: number;
95
+ playersMin: number;
96
+ playersMax: number;
97
+ tags: never[];
98
+ })[];
99
+ }[];
@@ -0,0 +1,196 @@
1
+ const e = [
2
+ {
3
+ createdAt: "2022-02-14T09:36:56.628Z",
4
+ updatedAt: "2022-02-14T09:36:56.628Z",
5
+ id: 1,
6
+ profileId: 1,
7
+ deletedAt: null,
8
+ title: "Location",
9
+ phone: "89610370713",
10
+ address: "Ulitsa Karla Marksa, 211, 36, Tambov, Tambovskaya oblast', Russland, 392020",
11
+ coordinates: { type: "Point", coordinates: [52.73865, 41.447576] },
12
+ cityId: 1,
13
+ howToFind: "ooo",
14
+ disinfection: "after_each_game",
15
+ wifi: !0,
16
+ wardrobe: !0,
17
+ freeParking: !1,
18
+ parking: !1,
19
+ ventilation: !1,
20
+ waitingArea: !1,
21
+ waitingAreaSize: 0,
22
+ sortPosition: 0,
23
+ questroomsCount: 0,
24
+ questrooms: [
25
+ {
26
+ createdAt: "2022-02-14T09:37:41.467Z",
27
+ updatedAt: "2022-02-14T09:37:41.519Z",
28
+ id: 1,
29
+ profileId: 1,
30
+ deletedAt: null,
31
+ title: "Quest",
32
+ slug: "/ru/tambov/quest",
33
+ type: "escape",
34
+ locationId: 1,
35
+ difficult: 6,
36
+ fear: 4,
37
+ minAge: 12,
38
+ actors: !1,
39
+ questroomIds: [],
40
+ languages: [],
41
+ defaultLanguage: null,
42
+ onlinePaymentsCashbox: null,
43
+ cashPaymentsCashbox: 1,
44
+ cardPaymentsCashbox: 1,
45
+ awailableForNavigator: !0,
46
+ awailableForWidgets: !0,
47
+ breakInterval: 15,
48
+ time: 60,
49
+ minHoursForFreeCanceling: 24,
50
+ ticketSystem: !1,
51
+ photo: "https://firebasestorage.googleapis.com/v0/b/escapegames-94b53.appspot.com/o/questrooms_photos%2F6UUAIJG8QRA8_1200x800.jpeg?alt=media&token=6UUAIJG8QRA8",
52
+ video: null,
53
+ photos: [
54
+ "https://firebasestorage.googleapis.com/v0/b/escapegames-94b53.appspot.com/o/questrooms_photos%2F6UUAIJG8QRA8_1200x800.jpeg?alt=media&token=6UUAIJG8QRA8"
55
+ ],
56
+ legend: "mbmnb",
57
+ teaser: null,
58
+ sortPosition: 1,
59
+ rating: 0,
60
+ playersMin: 6,
61
+ playersMax: 6,
62
+ tags: []
63
+ },
64
+ {
65
+ createdAt: "2022-02-15T11:39:03.173Z",
66
+ updatedAt: "2022-02-15T11:39:03.230Z",
67
+ id: 3,
68
+ profileId: 1,
69
+ deletedAt: null,
70
+ title: "Horror",
71
+ slug: "/ru/tambov/horror",
72
+ type: "suspense",
73
+ locationId: 1,
74
+ difficult: 6,
75
+ fear: 10,
76
+ minAge: 18,
77
+ actors: !0,
78
+ questroomIds: [],
79
+ languages: ["ru"],
80
+ defaultLanguage: "ru",
81
+ onlinePaymentsCashbox: null,
82
+ cashPaymentsCashbox: 1,
83
+ cardPaymentsCashbox: 2,
84
+ awailableForNavigator: !0,
85
+ awailableForWidgets: !0,
86
+ breakInterval: 15,
87
+ time: 60,
88
+ minHoursForFreeCanceling: 24,
89
+ ticketSystem: !1,
90
+ photo: "https://firebasestorage.googleapis.com/v0/b/escapegames-94b53.appspot.com/o/questrooms_photos%2FK6FFGYZVFZ8O_1200x800.jpeg?alt=media&token=K6FFGYZVFZ8O",
91
+ video: null,
92
+ photos: [
93
+ "https://firebasestorage.googleapis.com/v0/b/escapegames-94b53.appspot.com/o/questrooms_photos%2FK6FFGYZVFZ8O_1200x800.jpeg?alt=media&token=K6FFGYZVFZ8O"
94
+ ],
95
+ legend: "djjdjs",
96
+ teaser: null,
97
+ sortPosition: 1,
98
+ rating: 0,
99
+ playersMin: 6,
100
+ playersMax: 6,
101
+ tags: []
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ createdAt: "2022-02-15T09:58:11.845Z",
107
+ updatedAt: "2022-02-15T09:58:11.845Z",
108
+ id: 2,
109
+ profileId: 1,
110
+ deletedAt: null,
111
+ title: "Location 2",
112
+ phone: "89996661122",
113
+ address: "Ulitsa Chichkanova, 91, 36, Tambov, Tambovskaya oblast', Russland, 392020",
114
+ coordinates: { type: "Point", coordinates: [52.737719, 41.4491831] },
115
+ cityId: 1,
116
+ howToFind: "Идете к нам и находите",
117
+ disinfection: "after_each_game",
118
+ wifi: !1,
119
+ wardrobe: !0,
120
+ freeParking: !0,
121
+ parking: !1,
122
+ ventilation: !1,
123
+ waitingArea: !1,
124
+ waitingAreaSize: 0,
125
+ sortPosition: 0,
126
+ questroomsCount: 0,
127
+ questrooms: [
128
+ {
129
+ createdAt: "2022-02-15T09:59:27.571Z",
130
+ updatedAt: "2022-02-15T09:59:27.625Z",
131
+ id: 2,
132
+ profileId: 1,
133
+ deletedAt: null,
134
+ title: "Супер Квест",
135
+ slug: "/ru/tambov/super-kvest",
136
+ type: "escape",
137
+ locationId: 2,
138
+ difficult: 6,
139
+ fear: 4,
140
+ minAge: 12,
141
+ actors: !1,
142
+ questroomIds: [],
143
+ languages: ["ru"],
144
+ defaultLanguage: "ru",
145
+ onlinePaymentsCashbox: null,
146
+ cashPaymentsCashbox: 1,
147
+ cardPaymentsCashbox: 2,
148
+ awailableForNavigator: !0,
149
+ awailableForWidgets: !0,
150
+ breakInterval: 15,
151
+ time: 60,
152
+ minHoursForFreeCanceling: 24,
153
+ ticketSystem: !1,
154
+ photo: "https://firebasestorage.googleapis.com/v0/b/escapegames-94b53.appspot.com/o/questrooms_photos%2FSGP5TQSPV7FF_1200x800.jpeg?alt=media&token=SGP5TQSPV7FF",
155
+ video: null,
156
+ photos: [
157
+ "https://firebasestorage.googleapis.com/v0/b/escapegames-94b53.appspot.com/o/questrooms_photos%2FSGP5TQSPV7FF_1200x800.jpeg?alt=media&token=SGP5TQSPV7FF"
158
+ ],
159
+ legend: "nbvnbv",
160
+ teaser: null,
161
+ sortPosition: 1,
162
+ rating: 0,
163
+ playersMin: 6,
164
+ playersMax: 6,
165
+ tags: []
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ createdAt: "2022-02-16T05:08:44.512Z",
171
+ updatedAt: "2022-02-16T05:08:44.512Z",
172
+ id: 3,
173
+ profileId: 1,
174
+ deletedAt: null,
175
+ title: "Еще одна локация",
176
+ phone: "86669991488",
177
+ address: "Derzhavinskaya Ulitsa, 13, 14, Tambov, Tambovskaya oblast', Russland, 392000",
178
+ coordinates: { type: "Point", coordinates: [52.7249686, 41.4472712] },
179
+ cityId: 1,
180
+ howToFind: "Mi tyt",
181
+ disinfection: "after_each_game",
182
+ wifi: !0,
183
+ wardrobe: !0,
184
+ freeParking: !0,
185
+ parking: !0,
186
+ ventilation: !0,
187
+ waitingArea: !0,
188
+ waitingAreaSize: 10,
189
+ sortPosition: 0,
190
+ questroomsCount: 0,
191
+ questrooms: []
192
+ }
193
+ ];
194
+ export {
195
+ e as locationsWithQuestrooms
196
+ };
@@ -0,0 +1,21 @@
1
+ import { FC } from 'react';
2
+ export type ConfirmView = 'primary' | 'negative';
3
+ export type ConfirmMode = 'confirm' | 'alert';
4
+ export type ConfirmPopupProps = {
5
+ title: string;
6
+ description?: string;
7
+ confirmText: string;
8
+ cancelText: string;
9
+ confirmView?: ConfirmView;
10
+ mode?: ConfirmMode;
11
+ onConfirm: () => void;
12
+ onCancel: () => void;
13
+ };
14
+ export declare const ConfirmPopup: FC<ConfirmPopupProps>;
15
+ type ShowConfirmOptions = Omit<ConfirmPopupProps, 'onConfirm' | 'onCancel' | 'mode'>;
16
+ type ShowAlertOptions = Omit<ConfirmPopupProps, 'onConfirm' | 'onCancel' | 'mode' | 'confirmText' | 'cancelText' | 'confirmView'> & {
17
+ buttonText?: string;
18
+ };
19
+ export declare const showConfirm: (options: ShowConfirmOptions) => Promise<boolean>;
20
+ export declare const showAlert: (options: ShowAlertOptions) => Promise<void>;
21
+ export {};
@@ -0,0 +1,119 @@
1
+ import { jsx as n, jsxs as w } from "react/jsx-runtime";
2
+ import { useCallback as C, useEffect as b } from "react";
3
+ import { createPortal as P } from "react-dom";
4
+ import { createRoot as g } from "react-dom/client";
5
+ import { Button as y } from "../button/component.js";
6
+ import { Flex as E } from "../flex/component.js";
7
+ import { Typography as v } from "../typography/component.js";
8
+ import f from "./index.module.css.js";
9
+ const T = ({
10
+ title: e,
11
+ description: t,
12
+ confirmText: r,
13
+ cancelText: i,
14
+ confirmView: m = "primary",
15
+ mode: a = "confirm",
16
+ onConfirm: l,
17
+ onCancel: o
18
+ }) => {
19
+ const c = a === "alert", x = C(
20
+ (s) => {
21
+ s.target === s.currentTarget && o();
22
+ },
23
+ [o]
24
+ );
25
+ return b(() => {
26
+ const s = (p) => {
27
+ p.key === "Escape" && o(), p.key === "Enter" && (c ? o : l)();
28
+ };
29
+ return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
30
+ }, [o, l, c]), P(
31
+ /* @__PURE__ */ n(
32
+ "div",
33
+ {
34
+ className: f.backdrop,
35
+ onClick: x,
36
+ role: "dialog",
37
+ "aria-modal": "true",
38
+ children: /* @__PURE__ */ w("div", { className: f.card, children: [
39
+ /* @__PURE__ */ n(v.Title, { tag: "h3", view: "xsmall", color: "primary", children: e }),
40
+ t && /* @__PURE__ */ n(v.Text, { color: "secondary", view: "primary-medium", children: t }),
41
+ /* @__PURE__ */ w(E, { gap: "xs", justify: "start", children: [
42
+ !c && /* @__PURE__ */ n(y, { size: "xs", view: "outlined", block: !0, onClick: o, children: i }),
43
+ /* @__PURE__ */ n(
44
+ y,
45
+ {
46
+ size: "xs",
47
+ className: f[m],
48
+ view: "primary",
49
+ block: !0,
50
+ onClick: c ? o : l,
51
+ children: c ? i : r
52
+ }
53
+ )
54
+ ] })
55
+ ] })
56
+ }
57
+ ),
58
+ document.body
59
+ );
60
+ };
61
+ let d = null, u = null;
62
+ const h = () => {
63
+ d && (d.unmount(), d = null), u && (u.remove(), u = null);
64
+ }, k = (e, t) => {
65
+ h();
66
+ const r = document.createElement("div");
67
+ r.setAttribute("data-confirm-popup", ""), document.body.appendChild(r);
68
+ const i = g(r);
69
+ d = i, u = r;
70
+ let m = !1;
71
+ const a = (l) => () => {
72
+ m || (m = !0, h(), l(), t());
73
+ };
74
+ i.render(
75
+ /* @__PURE__ */ n(
76
+ T,
77
+ {
78
+ ...e,
79
+ onConfirm: a(e.onConfirm),
80
+ onCancel: a(e.onCancel)
81
+ }
82
+ )
83
+ );
84
+ }, K = (e) => typeof window > "u" ? Promise.resolve(!1) : new Promise((t) => {
85
+ let r = !1;
86
+ k(
87
+ {
88
+ ...e,
89
+ mode: "confirm",
90
+ onConfirm: () => {
91
+ r = !0;
92
+ },
93
+ onCancel: () => {
94
+ r = !1;
95
+ }
96
+ },
97
+ () => t(r)
98
+ );
99
+ }), q = (e) => typeof window > "u" ? Promise.resolve() : new Promise((t) => {
100
+ k(
101
+ {
102
+ title: e.title,
103
+ description: e.description,
104
+ confirmText: "",
105
+ cancelText: e.buttonText ?? "Понятно",
106
+ mode: "alert",
107
+ onConfirm: () => {
108
+ },
109
+ onCancel: () => {
110
+ }
111
+ },
112
+ () => t()
113
+ );
114
+ });
115
+ export {
116
+ T as ConfirmPopup,
117
+ q as showAlert,
118
+ K as showConfirm
119
+ };
@@ -0,0 +1 @@
1
+ .backdrop_bTWm{position:fixed;inset:0;z-index:99999990;background:#00000073;display:flex;align-items:center;justify-content:center;padding:16px;animation:backdrop-in_2Gfp .15s ease-out}.card_QdKQ{background:var(--color-bg-primary);border-radius:12px;box-shadow:0 12px 40px #00000040;width:100%;max-width:360px;padding:20px;display:flex;flex-direction:column;gap:12px;animation:card-in_kaZX .18s ease-out}.actions_MbU4{display:flex;gap:8px;margin-top:4px}.negative_htRp{background:var(--color-bg-negative);border:1px solid var(--color-border-secondary)}.actions_MbU4>*{flex:1}@keyframes backdrop-in_2Gfp{0%{opacity:0}to{opacity:1}}@keyframes card-in_kaZX{0%{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -0,0 +1,6 @@
1
+ import { ConfirmPopup as f, showAlert as m, showConfirm as p } from "./component.js";
2
+ export {
3
+ f as ConfirmPopup,
4
+ m as showAlert,
5
+ p as showConfirm
6
+ };
@@ -0,0 +1,17 @@
1
+ import * as __css from './index.css';
2
+ export const __cssModule = __css;
3
+ const a = "backdrop_bTWm", c = "card_QdKQ", n = "actions_MbU4", t = "negative_htRp", o = {
4
+ backdrop: a,
5
+ "backdrop-in": "backdrop-in_2Gfp",
6
+ card: c,
7
+ "card-in": "card-in_kaZX",
8
+ actions: n,
9
+ negative: t
10
+ };
11
+ export {
12
+ n as actions,
13
+ a as backdrop,
14
+ c as card,
15
+ o as default,
16
+ t as negative
17
+ };