@ashtuka/react-lib 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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @ashtuka/react-lib
2
+
3
+ React-бібліотека компонентів (для навчання)
@@ -0,0 +1,5 @@
1
+ export declare const BREAKPOINT_SM = 576;
2
+ export declare const BREAKPOINT_MD = 768;
3
+ export declare const BREAKPOINT_LG = 992;
4
+ export declare const BREAKPOINT_XL = 1200;
5
+ export declare const BREAKPOINT_2XL = 1400;
@@ -0,0 +1 @@
1
+ export * from './breakpoints';
@@ -0,0 +1,2 @@
1
+ export { PageLoaderModule } from './modules/PageLoaderModule';
2
+ export type { PageLoaderModuleProps } from './modules/PageLoaderModule';
@@ -0,0 +1,9 @@
1
+ import { Locale } from '@/types';
2
+ export type PageLoaderModuleProps = {
3
+ classes?: string;
4
+ isFullScreen?: boolean;
5
+ locale?: Locale;
6
+ title?: string;
7
+ titleClasses?: string;
8
+ };
9
+ export declare const PageLoaderModule: ({ classes, isFullScreen, locale, title, titleClasses, }: PageLoaderModuleProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { PageLoaderModule } from './PageLoaderModule';
2
+ export type { PageLoaderModuleProps } from './PageLoaderModule';
@@ -0,0 +1,369 @@
1
+ import ae from "react";
2
+ import se from "react-localization";
3
+ function le(o) {
4
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
5
+ }
6
+ var k = { exports: {} }, R = {};
7
+ /**
8
+ * @license React
9
+ * react-jsx-runtime.production.js
10
+ *
11
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var D;
17
+ function ce() {
18
+ if (D) return R;
19
+ D = 1;
20
+ var o = Symbol.for("react.transitional.element"), p = Symbol.for("react.fragment");
21
+ function i(m, s, t) {
22
+ var a = null;
23
+ if (t !== void 0 && (a = "" + t), s.key !== void 0 && (a = "" + s.key), "key" in s) {
24
+ t = {};
25
+ for (var u in s)
26
+ u !== "key" && (t[u] = s[u]);
27
+ } else t = s;
28
+ return s = t.ref, {
29
+ $$typeof: o,
30
+ type: m,
31
+ key: a,
32
+ ref: s !== void 0 ? s : null,
33
+ props: t
34
+ };
35
+ }
36
+ return R.Fragment = p, R.jsx = i, R.jsxs = i, R;
37
+ }
38
+ var b = {};
39
+ /**
40
+ * @license React
41
+ * react-jsx-runtime.development.js
42
+ *
43
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */
48
+ var L;
49
+ function ie() {
50
+ return L || (L = 1, process.env.NODE_ENV !== "production" && function() {
51
+ function o(e) {
52
+ if (e == null) return null;
53
+ if (typeof e == "function")
54
+ return e.$$typeof === te ? null : e.displayName || e.name || null;
55
+ if (typeof e == "string") return e;
56
+ switch (e) {
57
+ case T:
58
+ return "Fragment";
59
+ case X:
60
+ return "Profiler";
61
+ case J:
62
+ return "StrictMode";
63
+ case Q:
64
+ return "Suspense";
65
+ case K:
66
+ return "SuspenseList";
67
+ case re:
68
+ return "Activity";
69
+ }
70
+ if (typeof e == "object")
71
+ switch (typeof e.tag == "number" && console.error(
72
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
73
+ ), e.$$typeof) {
74
+ case G:
75
+ return "Portal";
76
+ case H:
77
+ return (e.displayName || "Context") + ".Provider";
78
+ case B:
79
+ return (e._context.displayName || "Context") + ".Consumer";
80
+ case Z:
81
+ var r = e.render;
82
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
83
+ case ee:
84
+ return r = e.displayName || null, r !== null ? r : o(e.type) || "Memo";
85
+ case y:
86
+ r = e._payload, e = e._init;
87
+ try {
88
+ return o(e(r));
89
+ } catch {
90
+ }
91
+ }
92
+ return null;
93
+ }
94
+ function p(e) {
95
+ return "" + e;
96
+ }
97
+ function i(e) {
98
+ try {
99
+ p(e);
100
+ var r = !1;
101
+ } catch {
102
+ r = !0;
103
+ }
104
+ if (r) {
105
+ r = console;
106
+ var n = r.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
107
+ return n.call(
108
+ r,
109
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
110
+ l
111
+ ), p(e);
112
+ }
113
+ }
114
+ function m(e) {
115
+ if (e === T) return "<>";
116
+ if (typeof e == "object" && e !== null && e.$$typeof === y)
117
+ return "<...>";
118
+ try {
119
+ var r = o(e);
120
+ return r ? "<" + r + ">" : "<...>";
121
+ } catch {
122
+ return "<...>";
123
+ }
124
+ }
125
+ function s() {
126
+ var e = x.A;
127
+ return e === null ? null : e.getOwner();
128
+ }
129
+ function t() {
130
+ return Error("react-stack-top-frame");
131
+ }
132
+ function a(e) {
133
+ if (C.call(e, "key")) {
134
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
135
+ if (r && r.isReactWarning) return !1;
136
+ }
137
+ return e.key !== void 0;
138
+ }
139
+ function u(e, r) {
140
+ function n() {
141
+ Y || (Y = !0, console.error(
142
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
143
+ r
144
+ ));
145
+ }
146
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
147
+ get: n,
148
+ configurable: !0
149
+ });
150
+ }
151
+ function V() {
152
+ var e = o(this.type);
153
+ return F[e] || (F[e] = !0, console.error(
154
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
155
+ )), e = this.props.ref, e !== void 0 ? e : null;
156
+ }
157
+ function q(e, r, n, l, E, _, j, S) {
158
+ return n = _.ref, e = {
159
+ $$typeof: P,
160
+ type: e,
161
+ key: r,
162
+ props: _,
163
+ _owner: E
164
+ }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
165
+ enumerable: !1,
166
+ get: V
167
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
168
+ configurable: !1,
169
+ enumerable: !1,
170
+ writable: !0,
171
+ value: 0
172
+ }), Object.defineProperty(e, "_debugInfo", {
173
+ configurable: !1,
174
+ enumerable: !1,
175
+ writable: !0,
176
+ value: null
177
+ }), Object.defineProperty(e, "_debugStack", {
178
+ configurable: !1,
179
+ enumerable: !1,
180
+ writable: !0,
181
+ value: j
182
+ }), Object.defineProperty(e, "_debugTask", {
183
+ configurable: !1,
184
+ enumerable: !1,
185
+ writable: !0,
186
+ value: S
187
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
188
+ }
189
+ function A(e, r, n, l, E, _, j, S) {
190
+ var c = r.children;
191
+ if (c !== void 0)
192
+ if (l)
193
+ if (ne(c)) {
194
+ for (l = 0; l < c.length; l++)
195
+ N(c[l]);
196
+ Object.freeze && Object.freeze(c);
197
+ } else
198
+ console.error(
199
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
+ );
201
+ else N(c);
202
+ if (C.call(r, "key")) {
203
+ c = o(e);
204
+ var v = Object.keys(r).filter(function(oe) {
205
+ return oe !== "key";
206
+ });
207
+ l = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", $[c + l] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
208
+ `A props object containing a "key" prop is being spread into JSX:
209
+ let props = %s;
210
+ <%s {...props} />
211
+ React keys must be passed directly to JSX without using spread:
212
+ let props = %s;
213
+ <%s key={someKey} {...props} />`,
214
+ l,
215
+ c,
216
+ v,
217
+ c
218
+ ), $[c + l] = !0);
219
+ }
220
+ if (c = null, n !== void 0 && (i(n), c = "" + n), a(r) && (i(r.key), c = "" + r.key), "key" in r) {
221
+ n = {};
222
+ for (var w in r)
223
+ w !== "key" && (n[w] = r[w]);
224
+ } else n = r;
225
+ return c && u(
226
+ n,
227
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
228
+ ), q(
229
+ e,
230
+ c,
231
+ _,
232
+ E,
233
+ s(),
234
+ n,
235
+ j,
236
+ S
237
+ );
238
+ }
239
+ function N(e) {
240
+ typeof e == "object" && e !== null && e.$$typeof === P && e._store && (e._store.validated = 1);
241
+ }
242
+ var g = ae, P = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), J = Symbol.for("react.strict_mode"), X = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), H = Symbol.for("react.context"), Z = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), re = Symbol.for("react.activity"), te = Symbol.for("react.client.reference"), x = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, ne = Array.isArray, h = console.createTask ? console.createTask : function() {
243
+ return null;
244
+ };
245
+ g = {
246
+ react_stack_bottom_frame: function(e) {
247
+ return e();
248
+ }
249
+ };
250
+ var Y, F = {}, I = g.react_stack_bottom_frame.bind(
251
+ g,
252
+ t
253
+ )(), W = h(m(t)), $ = {};
254
+ b.Fragment = T, b.jsx = function(e, r, n, l, E) {
255
+ var _ = 1e4 > x.recentlyCreatedOwnerStacks++;
256
+ return A(
257
+ e,
258
+ r,
259
+ n,
260
+ !1,
261
+ l,
262
+ E,
263
+ _ ? Error("react-stack-top-frame") : I,
264
+ _ ? h(m(e)) : W
265
+ );
266
+ }, b.jsxs = function(e, r, n, l, E) {
267
+ var _ = 1e4 > x.recentlyCreatedOwnerStacks++;
268
+ return A(
269
+ e,
270
+ r,
271
+ n,
272
+ !0,
273
+ l,
274
+ E,
275
+ _ ? Error("react-stack-top-frame") : I,
276
+ _ ? h(m(e)) : W
277
+ );
278
+ };
279
+ }()), b;
280
+ }
281
+ process.env.NODE_ENV === "production" ? k.exports = ce() : k.exports = ie();
282
+ var f = k.exports, U = { exports: {} };
283
+ /*!
284
+ Copyright (c) 2018 Jed Watson.
285
+ Licensed under the MIT License (MIT), see
286
+ http://jedwatson.github.io/classnames
287
+ */
288
+ (function(o) {
289
+ (function() {
290
+ var p = {}.hasOwnProperty;
291
+ function i() {
292
+ for (var t = "", a = 0; a < arguments.length; a++) {
293
+ var u = arguments[a];
294
+ u && (t = s(t, m(u)));
295
+ }
296
+ return t;
297
+ }
298
+ function m(t) {
299
+ if (typeof t == "string" || typeof t == "number")
300
+ return t;
301
+ if (typeof t != "object")
302
+ return "";
303
+ if (Array.isArray(t))
304
+ return i.apply(null, t);
305
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
306
+ return t.toString();
307
+ var a = "";
308
+ for (var u in t)
309
+ p.call(t, u) && t[u] && (a = s(a, u));
310
+ return a;
311
+ }
312
+ function s(t, a) {
313
+ return a ? t ? t + " " + a : t + a : t;
314
+ }
315
+ o.exports ? (i.default = i, o.exports = i) : window.classNames = i;
316
+ })();
317
+ })(U);
318
+ var ue = U.exports;
319
+ const M = /* @__PURE__ */ le(ue);
320
+ var z = /* @__PURE__ */ ((o) => (o.UK = "uk", o.RU = "ru", o))(z || {});
321
+ const fe = "_container_ot1x6_2", de = "_fullScreen_ot1x6_11", me = "_loaderContainer_ot1x6_27", _e = "_inner_ot1x6_35", pe = "_item_ot1x6_42", Ee = "_logo_ot1x6_95", ve = "_sloganWrap_ot1x6_100", Re = "_slogan_ot1x6_100", be = "_title_ot1x6_114", d = {
322
+ container: fe,
323
+ fullScreen: de,
324
+ loaderContainer: me,
325
+ inner: _e,
326
+ item: pe,
327
+ logo: Ee,
328
+ sloganWrap: ve,
329
+ slogan: Re,
330
+ title: be
331
+ }, O = new se({
332
+ uk: {
333
+ sloganRow1: "Класний пошукатор",
334
+ sloganRow2: "страхових"
335
+ },
336
+ ru: {
337
+ sloganRow1: "Классный пошукатор",
338
+ sloganRow2: "страховых"
339
+ }
340
+ }), xe = ({
341
+ classes: o = "",
342
+ isFullScreen: p,
343
+ locale: i = z.UK,
344
+ title: m,
345
+ titleClasses: s = ""
346
+ }) => {
347
+ O.setLanguage(i);
348
+ const t = M(d.container, o, {
349
+ [d.fullScreen]: p
350
+ }), a = M(d.title, s);
351
+ return /* @__PURE__ */ f.jsxs("div", { className: t, children: [
352
+ /* @__PURE__ */ f.jsxs("div", { className: d.loaderContainer, children: [
353
+ /* @__PURE__ */ f.jsxs("div", { className: d.inner, children: [
354
+ /* @__PURE__ */ f.jsx("div", { className: d.item, children: " " }),
355
+ /* @__PURE__ */ f.jsx("div", { className: d.item, children: " " }),
356
+ /* @__PURE__ */ f.jsx("div", { className: d.item, children: " " })
357
+ ] }),
358
+ /* @__PURE__ */ f.jsx("div", { className: d.logo, children: /* @__PURE__ */ f.jsx("img", { width: "148px", height: "40px", src: "https://polis.ua/static/img/logo/logoWithFlagLine.svg", alt: "Icon" }) }),
359
+ /* @__PURE__ */ f.jsxs("div", { className: d.sloganWrap, children: [
360
+ /* @__PURE__ */ f.jsx("span", { className: d.slogan, children: O.sloganRow1 }),
361
+ /* @__PURE__ */ f.jsx("span", { className: d.slogan, children: O.sloganRow2 })
362
+ ] })
363
+ ] }),
364
+ m && /* @__PURE__ */ f.jsx("div", { className: a, children: m })
365
+ ] });
366
+ };
367
+ export {
368
+ xe as PageLoaderModule
369
+ };
@@ -0,0 +1,26 @@
1
+ (function(p,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react"),require("react-localization")):typeof define=="function"&&define.amd?define(["exports","react","react-localization"],b):(p=typeof globalThis<"u"?globalThis:p||self,b(p.ReactLib={},p.React,p.LocalizedStrings))})(this,function(p,b,G){"use strict";function J(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var h={exports:{}},g={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var A;function X(){if(A)return g;A=1;var o=Symbol.for("react.transitional.element"),v=Symbol.for("react.fragment");function i(m,s,t){var a=null;if(t!==void 0&&(a=""+t),s.key!==void 0&&(a=""+s.key),"key"in s){t={};for(var d in s)d!=="key"&&(t[d]=s[d])}else t=s;return s=t.ref,{$$typeof:o,type:m,key:a,ref:s!==void 0?s:null,props:t}}return g.Fragment=v,g.jsx=i,g.jsxs=i,g}var T={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var N;function B(){return N||(N=1,process.env.NODE_ENV!=="production"&&function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case te:return"Profiler";case re:return"StrictMode";case se:return"Suspense";case le:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ee:return"Portal";case oe:return(e.displayName||"Context")+".Provider";case ne:return(e._context.displayName||"Context")+".Consumer";case ae:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return r=e.displayName||null,r!==null?r:o(e.type)||"Memo";case M:r=e._payload,e=e._init;try{return o(e(r))}catch{}}return null}function v(e){return""+e}function i(e){try{v(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,l=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",l),v(e)}}function m(e){if(e===S)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===M)return"<...>";try{var r=o(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function s(){var e=O.A;return e===null?null:e.getOwner()}function t(){return Error("react-stack-top-frame")}function a(e){if(D.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function d(e,r){function n(){U||(U=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function Q(){var e=o(this.type);return $[e]||($[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function K(e,r,n,l,E,_,k,y){return n=_.ref,e={$$typeof:L,type:e,key:r,props:_,_owner:E},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:Q}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function F(e,r,n,l,E,_,k,y){var c=r.children;if(c!==void 0)if(l)if(fe(c)){for(l=0;l<c.length;l++)I(c[l]);Object.freeze&&Object.freeze(c)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else I(c);if(D.call(r,"key")){c=o(e);var R=Object.keys(r).filter(function(de){return de!=="key"});l=0<R.length?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}",q[c+l]||(R=0<R.length?"{"+R.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,l,c,R,c),q[c+l]=!0)}if(c=null,n!==void 0&&(i(n),c=""+n),a(r)&&(i(r.key),c=""+r.key),"key"in r){n={};for(var P in r)P!=="key"&&(n[P]=r[P])}else n=r;return c&&d(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),K(e,c,_,E,s(),n,k,y)}function I(e){typeof e=="object"&&e!==null&&e.$$typeof===L&&e._store&&(e._store.validated=1)}var x=b,L=Symbol.for("react.transitional.element"),ee=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),re=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),O=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,fe=Array.isArray,w=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(e){return e()}};var U,$={},z=x.react_stack_bottom_frame.bind(x,t)(),V=w(m(t)),q={};T.Fragment=S,T.jsx=function(e,r,n,l,E){var _=1e4>O.recentlyCreatedOwnerStacks++;return F(e,r,n,!1,l,E,_?Error("react-stack-top-frame"):z,_?w(m(e)):V)},T.jsxs=function(e,r,n,l,E){var _=1e4>O.recentlyCreatedOwnerStacks++;return F(e,r,n,!0,l,E,_?Error("react-stack-top-frame"):z,_?w(m(e)):V)}}()),T}process.env.NODE_ENV==="production"?h.exports=X():h.exports=B();var u=h.exports,C={exports:{}};/*!
23
+ Copyright (c) 2018 Jed Watson.
24
+ Licensed under the MIT License (MIT), see
25
+ http://jedwatson.github.io/classnames
26
+ */(function(o){(function(){var v={}.hasOwnProperty;function i(){for(var t="",a=0;a<arguments.length;a++){var d=arguments[a];d&&(t=s(t,m(d)))}return t}function m(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var a="";for(var d in t)v.call(t,d)&&t[d]&&(a=s(a,d));return a}function s(t,a){return a?t?t+" "+a:t+a:t}o.exports?(i.default=i,o.exports=i):window.classNames=i})()})(C);var H=C.exports;const Y=J(H);var W=(o=>(o.UK="uk",o.RU="ru",o))(W||{});const f={container:"_container_ot1x6_2",fullScreen:"_fullScreen_ot1x6_11",loaderContainer:"_loaderContainer_ot1x6_27",inner:"_inner_ot1x6_35",item:"_item_ot1x6_42",logo:"_logo_ot1x6_95",sloganWrap:"_sloganWrap_ot1x6_100",slogan:"_slogan_ot1x6_100",title:"_title_ot1x6_114"},j=new G({uk:{sloganRow1:"Класний пошукатор",sloganRow2:"страхових"},ru:{sloganRow1:"Классный пошукатор",sloganRow2:"страховых"}}),Z=({classes:o="",isFullScreen:v,locale:i=W.UK,title:m,titleClasses:s=""})=>{j.setLanguage(i);const t=Y(f.container,o,{[f.fullScreen]:v}),a=Y(f.title,s);return u.jsxs("div",{className:t,children:[u.jsxs("div",{className:f.loaderContainer,children:[u.jsxs("div",{className:f.inner,children:[u.jsx("div",{className:f.item,children:" "}),u.jsx("div",{className:f.item,children:" "}),u.jsx("div",{className:f.item,children:" "})]}),u.jsx("div",{className:f.logo,children:u.jsx("img",{width:"148px",height:"40px",src:"https://polis.ua/static/img/logo/logoWithFlagLine.svg",alt:"Icon"})}),u.jsxs("div",{className:f.sloganWrap,children:[u.jsx("span",{className:f.slogan,children:j.sloganRow1}),u.jsx("span",{className:f.slogan,children:j.sloganRow2})]})]}),m&&u.jsx("div",{className:a,children:m})]})};p.PageLoaderModule=Z,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ ._container_ot1x6_2{max-width:1200px;margin:0 auto;padding:0 16px;display:flex;justify-content:center;align-items:center}._fullScreen_ot1x6_11{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;width:100vw;height:100vh;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}._loaderContainer_ot1x6_27{position:relative;display:flex;justify-content:center;align-items:center;margin-right:24px}._inner_ot1x6_35{position:relative;width:64px;height:64px;transform-style:preserve-3d;perspective:800px}._inner_ot1x6_35 ._item_ot1x6_42{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:50%;border-bottom:3px solid #374656}._inner_ot1x6_35 ._item_ot1x6_42:nth-child(1){animation:_rotate1_ot1x6_1 1.15s linear infinite}._inner_ot1x6_35 ._item_ot1x6_42:nth-child(2){animation:_rotate2_ot1x6_1 1.15s linear infinite}._inner_ot1x6_35 ._item_ot1x6_42:nth-child(3){animation:_rotate3_ot1x6_1 1.15s linear infinite}._inner_ot1x6_35 ._item_ot1x6_42:nth-child(1){animation-delay:-.8s}._inner_ot1x6_35 ._item_ot1x6_42:nth-child(2){animation-delay:-.4s}._inner_ot1x6_35 ._item_ot1x6_42:nth-child(3){animation-delay:0s}@keyframes _rotate1_ot1x6_1{0%{transform:rotateX(35deg) rotateY(-45deg) rotate(0)}to{transform:rotateX(35deg) rotateY(-45deg) rotate(1turn)}}@keyframes _rotate2_ot1x6_1{0%{transform:rotateX(50deg) rotateY(10deg) rotate(0)}to{transform:rotateX(50deg) rotateY(10deg) rotate(1turn)}}@keyframes _rotate3_ot1x6_1{0%{transform:rotateX(35deg) rotateY(55deg) rotate(0)}to{transform:rotateX(35deg) rotateY(55deg) rotate(1turn)}}._logo_ot1x6_95{margin-left:16px;width:116px}._sloganWrap_ot1x6_100{position:absolute;top:38px;left:117px;width:100px}._slogan_ot1x6_100{display:block;font-family:latoregular;font-size:10px;line-height:1}._title_ot1x6_114{margin-top:24px;font-size:18px;text-align:center;padding:0 16px}@media (min-width: 576px){._title_ot1x6_114{max-width:560px;font-size:24px}}
@@ -0,0 +1,4 @@
1
+ export declare enum Locale {
2
+ UK = "uk",
3
+ RU = "ru"
4
+ }
@@ -0,0 +1 @@
1
+ export * from './Locale';
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@ashtuka/react-lib",
3
+ "version": "1.0.0",
4
+ "main": "./dist/my-react-lib.umd.js",
5
+ "module": "./dist/my-react-lib.mjs",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/my-react-lib.mjs",
10
+ "require": "./dist/my-react-lib.umd.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "scripts": {
21
+ "dev": "vite",
22
+ "build": "vite build && tsc",
23
+ "lint": "eslint . --ext .ts,.tsx --fix",
24
+ "format": "prettier --write ."
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^19.1.1",
28
+ "react-dom": "^19.1.1",
29
+ "react-localization": "^2.0.6"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "^22.14.0",
33
+ "@types/react": "^19.1.9",
34
+ "@types/react-dom": "^19.1.7",
35
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
36
+ "@typescript-eslint/parser": "^8.29.1",
37
+ "@vitejs/plugin-react": "^4.0.0",
38
+ "classnames": "^2.5.1",
39
+ "eslint": "^8.57.1",
40
+ "eslint-config-prettier": "^10.1.1",
41
+ "eslint-import-resolver-typescript": "^4.4.4",
42
+ "eslint-plugin-import": "^2.31.0",
43
+ "eslint-plugin-jsx-a11y": "^6.10.2",
44
+ "eslint-plugin-react": "^7.37.5",
45
+ "eslint-plugin-react-hooks": "^5.2.0",
46
+ "eslint-plugin-vitest": "^0.5.4",
47
+ "prettier": "^3.5.3",
48
+ "react": "^19.1.1",
49
+ "react-dom": "^19.1.1",
50
+ "react-localization": "^2.0.6",
51
+ "sass": "^1.86.3",
52
+ "typescript": "^5.0.0",
53
+ "vite": "^5.0.0",
54
+ "vitest": "^1.0.0"
55
+ }
56
+ }