@ashtuka/react-lib 1.0.15 → 1.0.17

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.
@@ -365,5 +365,5 @@ const fe = "_container_1xrzw_1", de = "_fullScreen_1xrzw_10", me = "_loaderConta
365
365
  ] });
366
366
  };
367
367
  export {
368
- xe as PageLoaderModule
368
+ xe as P
369
369
  };
@@ -0,0 +1,4 @@
1
+ import { P as a } from "./PageLoaderModule-BJcY2xBU.mjs";
2
+ export {
3
+ a as PageLoaderModule
4
+ };
@@ -0,0 +1,4 @@
1
+ import { P as a } from "./PageLoaderModule-BJcY2xBU.mjs";
2
+ export {
3
+ a as PageLoaderModule
4
+ };
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@ashtuka/react-lib",
3
- "version": "1.0.15",
4
- "main": "./dist/react-lib.umd.js",
5
- "module": "./dist/react-lib.mjs",
3
+ "version": "1.0.17",
4
+ "main": "./dist/react-lib.es.js",
5
+ "module": "./dist/react-lib.es.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./dist/react-lib.mjs",
10
- "require": "./dist/react-lib.umd.js",
9
+ "import": "./dist/react-lib.es.js",
11
10
  "types": "./dist/index.d.ts"
12
11
  },
13
- "./style.css": "./dist/style.css"
12
+ "./PageLoaderModule": {
13
+ "import": "./dist/react-lib.PageLoaderModule.es.js",
14
+ "types": "./dist/modules/PageLoaderModule/index.d.ts"
15
+ },
16
+ "./PageLoaderModule/style.css": "./dist/PageLoaderModule.css"
14
17
  },
15
18
  "files": [
16
19
  "dist"
@@ -1,27 +0,0 @@
1
- (function(p,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react"),require("react-localization")):typeof define=="function"&&define.amd?define(["exports","react","react-localization"],h):(p=typeof globalThis<"u"?globalThis:p||self,h(p.ReactLib={},p.React,p.LocalizedStrings))})(this,function(p,h,G){"use strict";var P=document.createElement("style");P.textContent=`._container_1xrzw_1{max-width:1200px;margin:0 auto;padding:0 16px;display:flex;justify-content:center;align-items:center}._fullScreen_1xrzw_10{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_1xrzw_26{position:relative;display:flex;justify-content:center;align-items:center;margin-right:24px}._inner_1xrzw_34{position:relative;width:64px;height:64px;transform-style:preserve-3d;perspective:800px}._inner_1xrzw_34 ._item_1xrzw_41{position:absolute;content:"";top:0;left:0;width:100%;height:100%;border-radius:50%;border-bottom:3px solid #374656}._inner_1xrzw_34 ._item_1xrzw_41:nth-child(1){animation:_rotate1_1xrzw_1 1.15s linear infinite}._inner_1xrzw_34 ._item_1xrzw_41:nth-child(2){animation:_rotate2_1xrzw_1 1.15s linear infinite}._inner_1xrzw_34 ._item_1xrzw_41:nth-child(3){animation:_rotate3_1xrzw_1 1.15s linear infinite}._inner_1xrzw_34 ._item_1xrzw_41:nth-child(1){animation-delay:-.8s}._inner_1xrzw_34 ._item_1xrzw_41:nth-child(2){animation-delay:-.4s}._inner_1xrzw_34 ._item_1xrzw_41:nth-child(3){animation-delay:0s}@keyframes _rotate1_1xrzw_1{0%{transform:rotateX(35deg) rotateY(-45deg) rotate(0)}to{transform:rotateX(35deg) rotateY(-45deg) rotate(1turn)}}@keyframes _rotate2_1xrzw_1{0%{transform:rotateX(50deg) rotateY(10deg) rotate(0)}to{transform:rotateX(50deg) rotateY(10deg) rotate(1turn)}}@keyframes _rotate3_1xrzw_1{0%{transform:rotateX(35deg) rotateY(55deg) rotate(0)}to{transform:rotateX(35deg) rotateY(55deg) rotate(1turn)}}._logo_1xrzw_94{margin-left:16px;width:116px}._sloganWrap_1xrzw_99{position:absolute;top:38px;left:117px;width:100px}._slogan_1xrzw_99{display:block;font-family:latoregular;font-size:10px;line-height:1}._title_1xrzw_113{margin-top:24px;font-size:18px;text-align:center;padding:0 16px}@media (min-width: 576px){._title_1xrzw_113{max-width:560px;font-size:24px}}
2
- /*$vite$:1*/`,document.head.appendChild(P);function J(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var R={exports:{}},v={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var A;function B(){if(A)return v;A=1;var o=Symbol.for("react.transitional.element"),x=Symbol.for("react.fragment");function c(d,i,t){var a=null;if(t!==void 0&&(a=""+t),i.key!==void 0&&(a=""+i.key),"key"in i){t={};for(var _ in i)_!=="key"&&(t[_]=i[_])}else t=i;return i=t.ref,{$$typeof:o,type:d,key:a,ref:i!==void 0?i:null,props:t}}return v.Fragment=x,v.jsx=c,v.jsxs=c,v}var b={};/**
11
- * @license React
12
- * react-jsx-runtime.development.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var N;function H(){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===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case ne:return"Profiler";case te:return"StrictMode";case se:return"Suspense";case le:return"SuspenseList";case ue: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 re:return"Portal";case ae:return(e.displayName||"Context")+".Provider";case oe:return(e._context.displayName||"Context")+".Consumer";case ie: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 x(e){return""+e}function c(e){try{x(e);var r=!1}catch{r=!0}if(r){r=console;var n=r.error,s=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.",s),x(e)}}function d(e){if(e===y)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===M)return"<...>";try{var r=o(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=j.A;return e===null?null:e.getOwner()}function t(){return Error("react-stack-top-frame")}function a(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function _(e,r){function n(){D||(D=!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 K(){var e=o(this.type);return U[e]||(U[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 ee(e,r,n,s,g,m,z,k){return n=m.ref,e={$$typeof:L,type:e,key:r,props:m,_owner:g},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:K}):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:z}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function F(e,r,n,s,g,m,z,k){var l=r.children;if(l!==void 0)if(s)if(_e(l)){for(s=0;s<l.length;s++)I(l[s]);Object.freeze&&Object.freeze(l)}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(l);if($.call(r,"key")){l=o(e);var w=Object.keys(r).filter(function(de){return de!=="key"});s=0<w.length?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}",q[l+s]||(w=0<w.length?"{"+w.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
19
- let props = %s;
20
- <%s {...props} />
21
- React keys must be passed directly to JSX without using spread:
22
- let props = %s;
23
- <%s key={someKey} {...props} />`,s,l,w,l),q[l+s]=!0)}if(l=null,n!==void 0&&(c(n),l=""+n),a(r)&&(c(r.key),l=""+r.key),"key"in r){n={};for(var O in r)O!=="key"&&(n[O]=r[O])}else n=r;return l&&_(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),ee(e,l,m,g,i(),n,z,k)}function I(e){typeof e=="object"&&e!==null&&e.$$typeof===L&&e._store&&(e._store.validated=1)}var E=h,L=Symbol.for("react.transitional.element"),re=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),oe=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ie=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"),ue=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),j=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,_e=Array.isArray,S=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(e){return e()}};var D,U={},X=E.react_stack_bottom_frame.bind(E,t)(),V=S(d(t)),q={};b.Fragment=y,b.jsx=function(e,r,n,s,g){var m=1e4>j.recentlyCreatedOwnerStacks++;return F(e,r,n,!1,s,g,m?Error("react-stack-top-frame"):X,m?S(d(e)):V)},b.jsxs=function(e,r,n,s,g){var m=1e4>j.recentlyCreatedOwnerStacks++;return F(e,r,n,!0,s,g,m?Error("react-stack-top-frame"):X,m?S(d(e)):V)}}()),b}process.env.NODE_ENV==="production"?R.exports=B():R.exports=H();var u=R.exports,C={exports:{}};/*!
24
- Copyright (c) 2018 Jed Watson.
25
- Licensed under the MIT License (MIT), see
26
- http://jedwatson.github.io/classnames
27
- */(function(o){(function(){var x={}.hasOwnProperty;function c(){for(var t="",a=0;a<arguments.length;a++){var _=arguments[a];_&&(t=i(t,d(_)))}return t}function d(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return c.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var a="";for(var _ in t)x.call(t,_)&&t[_]&&(a=i(a,_));return a}function i(t,a){return a?t?t+" "+a:t+a:t}o.exports?(c.default=c,o.exports=c):window.classNames=c})()})(C);var Z=C.exports;const Y=J(Z);var W=(o=>(o.UK="uk",o.RU="ru",o))(W||{});const f={container:"_container_1xrzw_1",fullScreen:"_fullScreen_1xrzw_10",loaderContainer:"_loaderContainer_1xrzw_26",inner:"_inner_1xrzw_34",item:"_item_1xrzw_41",logo:"_logo_1xrzw_94",sloganWrap:"_sloganWrap_1xrzw_99",slogan:"_slogan_1xrzw_99",title:"_title_1xrzw_113"},T=new G({uk:{sloganRow1:"Класний пошукатор",sloganRow2:"страхових"},ru:{sloganRow1:"Классный пошукатор",sloganRow2:"страховых"}}),Q=({classes:o="",isFullScreen:x,locale:c=W.UK,title:d,titleClasses:i=""})=>{T.setLanguage(c);const t=Y(f.container,o,{[f.fullScreen]:x}),a=Y(f.title,i);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:T.sloganRow1}),u.jsx("span",{className:f.slogan,children:T.sloganRow2})]})]}),d&&u.jsx("div",{className:a,children:d})]})};p.PageLoaderModule=Q,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
File without changes