tvuikit 0.1.2 → 0.2.1

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.
@@ -1,42 +1,10 @@
1
- (function(O,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],T):(O=typeof globalThis<"u"?globalThis:O||self,T(O.tvuikit={},O.React))})(this,function(O,T){"use strict";const Q={default:"#0A0A0A",component:"#00000065",smooth:"#111111"},B={default:"#EDEDED",text:"#EDEDED",miniText:"#EDEDED40",card:"#27272780",component:"#272727"},Y={default:B.default,primary:"#2AFF6A",danger:"#FF0000",secondary:"#000000",tetriary:"#000000"},ee=Object.freeze(Object.defineProperty({__proto__:null,BACKGROUND:Q,BUTTONS:Y,FOREGROUND:B},Symbol.toStringTag,{value:"Module"}));var R=(o=>(o.h1="36px",o.h2="32px",o.h3="24px",o.h4="20px",o.h5="18px",o.base="16px",o.mini="14px",o))(R||{});const re=Object.freeze(Object.defineProperty({__proto__:null,COLORS:ee,FONTS:Object.freeze(Object.defineProperty({__proto__:null,FONT_SIZE:{h1:"36px",h2:"32px",h3:"24px",h4:"20px",h5:"18px",base:"16px",mini:"14px"},FontSize:R},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var k={exports:{}},w={};/**
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 H;function te(){if(H)return w;H=1;var o=Symbol.for("react.transitional.element"),g=Symbol.for("react.fragment");function d(s,l,p){var y=null;if(p!==void 0&&(y=""+p),l.key!==void 0&&(y=""+l.key),"key"in l){p={};for(var h in l)h!=="key"&&(p[h]=l[h])}else p=l;return l=p.ref,{$$typeof:o,type:s,key:y,ref:l!==void 0?l:null,props:p}}return w.Fragment=g,w.jsx=d,w.jsxs=d,w}var N={};/**
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 G;function ne(){return G||(G=1,process.env.NODE_ENV!=="production"&&function(){function o(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ae?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case xe:return"Profiler";case Ee:return"StrictMode";case je:return"Suspense";case De:return"SuspenseList";case Ne:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case S:return"Portal";case Re:return t.displayName||"Context";case Te:return(t._context.displayName||"Context")+".Consumer";case Se:var u=t.render;return t=t.displayName,t||(t=u.displayName||u.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case we:return u=t.displayName||null,u!==null?u:o(t.type)||"Memo";case L:u=t._payload,t=t._init;try{return o(t(u))}catch{}}return null}function g(t){return""+t}function d(t){try{g(t);var u=!1}catch{u=!0}if(u){u=console;var m=u.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return m.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),g(t)}}function s(t){if(t===j)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===L)return"<...>";try{var u=o(t);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function l(){var t=C.A;return t===null?null:t.getOwner()}function p(){return Error("react-stack-top-frame")}function y(t){if(z.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function h(t,u){function m(){X||(X=!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)",u))}m.isReactWarning=!0,Object.defineProperty(t,"key",{get:m,configurable:!0})}function a(){var t=o(this.type);return K[t]||(K[t]=!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.")),t=this.props.ref,t!==void 0?t:null}function r(t,u,m,_,A,F){var v=m.ref;return t={$$typeof:b,type:t,key:u,props:m,_owner:_},(v!==void 0?v:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:a}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:F}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function f(t,u,m,_,A,F){var v=u.children;if(v!==void 0)if(_)if(ke(v)){for(_=0;_<v.length;_++)n(v[_]);Object.freeze&&Object.freeze(v)}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 n(v);if(z.call(u,"key")){v=o(t);var D=Object.keys(u).filter(function(Pe){return Pe!=="key"});_=0<D.length?"{key: someKey, "+D.join(": ..., ")+": ...}":"{key: someKey}",Z[v+_]||(D=0<D.length?"{"+D.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(O,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],T):(O=typeof globalThis<"u"?globalThis:O||self,T(O.tvuikit={},O.React))})(this,(function(O,T){"use strict";const ee={default:"#0A0A0A",component:"#00000065",smooth:"#111111"},B={default:"#EDEDED",text:"#EDEDED",miniText:"#EDEDED40",card:"#27272780",component:"#272727"},Y={default:B.default,primary:"#2AFF6A",danger:"#FF0000",secondary:"#000000",tetriary:"#000000"},re=Object.freeze(Object.defineProperty({__proto__:null,BACKGROUND:ee,BUTTONS:Y,FOREGROUND:B},Symbol.toStringTag,{value:"Module"}));var R=(a=>(a.h1="36px",a.h2="32px",a.h3="24px",a.h4="20px",a.h5="18px",a.base="16px",a.mini="14px",a))(R||{});const te=Object.freeze(Object.defineProperty({__proto__:null,COLORS:re,FONTS:Object.freeze(Object.defineProperty({__proto__:null,FONT_SIZE:{h1:"36px",h2:"32px",h3:"24px",h4:"20px",h5:"18px",base:"16px",mini:"14px"},FontSize:R},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var A={exports:{}},w={};var H;function ne(){if(H)return w;H=1;var a=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function f(c,l,p){var y=null;if(p!==void 0&&(y=""+p),l.key!==void 0&&(y=""+l.key),"key"in l){p={};for(var h in l)h!=="key"&&(p[h]=l[h])}else p=l;return l=p.ref,{$$typeof:a,type:c,key:y,ref:l!==void 0?l:null,props:p}}return w.Fragment=d,w.jsx=f,w.jsxs=f,w}var N={};var G;function ae(){return G||(G=1,process.env.NODE_ENV!=="production"&&(function(){function a(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Me?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case Se:return"Profiler";case Re:return"StrictMode";case Ne:return"Suspense";case Ae:return"SuspenseList";case Pe:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case S:return"Portal";case De:return t.displayName||"Context";case je:return(t._context.displayName||"Context")+".Consumer";case we:var u=t.render;return t=t.displayName,t||(t=u.displayName||u.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ke:return u=t.displayName||null,u!==null?u:a(t.type)||"Memo";case C:u=t._payload,t=t._init;try{return a(t(u))}catch{}}return null}function d(t){return""+t}function f(t){try{d(t);var u=!1}catch{u=!0}if(u){u=console;var m=u.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return m.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),d(t)}}function c(t){if(t===j)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===C)return"<...>";try{var u=a(t);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function l(){var t=L.A;return t===null?null:t.getOwner()}function p(){return Error("react-stack-top-frame")}function y(t){if(q.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function h(t,u){function m(){X||(X=!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)",u))}m.isReactWarning=!0,Object.defineProperty(t,"key",{get:m,configurable:!0})}function o(){var t=a(this.type);return J[t]||(J[t]=!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.")),t=this.props.ref,t!==void 0?t:null}function r(t,u,m,v,P,F){var _=m.ref;return t={$$typeof:b,type:t,key:u,props:m,_owner:v},(_!==void 0?_:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:o}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:F}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function g(t,u,m,v,P,F){var _=u.children;if(_!==void 0)if(v)if(Ce(_)){for(v=0;v<_.length;v++)n(_[v]);Object.freeze&&Object.freeze(_)}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 n(_);if(q.call(u,"key")){_=a(t);var D=Object.keys(u).filter(function(Le){return Le!=="key"});v=0<D.length?"{key: someKey, "+D.join(": ..., ")+": ...}":"{key: someKey}",Q[_+v]||(D=0<D.length?"{"+D.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
2
  let props = %s;
19
3
  <%s {...props} />
20
4
  React keys must be passed directly to JSX without using spread:
21
5
  let props = %s;
22
- <%s key={someKey} {...props} />`,_,v,D,v),Z[v+_]=!0)}if(v=null,m!==void 0&&(d(m),v=""+m),y(u)&&(d(u.key),v=""+u.key),"key"in u){m={};for(var U in u)U!=="key"&&(m[U]=u[U])}else m=u;return v&&h(m,typeof t=="function"?t.displayName||t.name||"Unknown":t),r(t,v,m,l(),A,F)}function n(t){e(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===L&&(t._payload.status==="fulfilled"?e(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function e(t){return typeof t=="object"&&t!==null&&t.$$typeof===b}var i=T,b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),Ee=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),Te=Symbol.for("react.consumer"),Re=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),we=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),Ae=Symbol.for("react.client.reference"),C=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,ke=Array.isArray,I=console.createTask?console.createTask:function(){return null};i={react_stack_bottom_frame:function(t){return t()}};var X,K={},q=i.react_stack_bottom_frame.bind(i,p)(),J=I(s(p)),Z={};N.Fragment=j,N.jsx=function(t,u,m){var _=1e4>C.recentlyCreatedOwnerStacks++;return f(t,u,m,!1,_?Error("react-stack-top-frame"):q,_?I(s(t)):J)},N.jsxs=function(t,u,m){var _=1e4>C.recentlyCreatedOwnerStacks++;return f(t,u,m,!0,_?Error("react-stack-top-frame"):q,_?I(s(t)):J)}}()),N}process.env.NODE_ENV==="production"?k.exports=te():k.exports=ne();var c=k.exports;const P=({variant:o="default",children:g,className:d,...s})=>{const l={diabled:s.disabled?"bg-(--bg-smooth) text-(--fg-mini-text)":`bg-(--bg-card) color-${o} cursor-pointer`,"hover:disabled":s.disabled?"":"hover:px-5 hover:py-3","active:disabled":s.disabled?"":"active:px-3 active:py-1 active:bg-(--fg-component) active:opacity-[0.7]"};return c.jsx("button",{className:["px-4 py-2 w-fit rounded-lg page duration-200",l.diabled,l["hover:disabled"],l["active:disabled"],d].join(" "),...s,children:g})},ae=({style:o,imageVar:g,className:d="",...s})=>{const l=`bg-(image:${g})`;return c.jsx("div",{...s,className:[d,l].join(" "),style:{...o,backgroundSize:"cover",backgroundRepeat:"no-repeat"}})},oe=({className:o,...g})=>c.jsx("input",{placeholder:"input here...",...g,className:[o||"","bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-60"].join(" ")}),ie=({className:o,...g})=>c.jsx("textarea",{placeholder:"write here...",...g,className:[o||"","bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-150 min-h-10 resize"].join(" ")}),se=({flexDirection:o="row",className:g,...d})=>{const s=o==="col"?"flex-col":"flex-row";return c.jsx("div",{...d,className:[g||"",s,"bg-(image:--image-bg) flex gap-8 px-12 py-4 rounded-lg page"].join(" ")})};var M={exports:{}},E={};/**
23
- * @license React
24
- * react-dom.production.js
25
- *
26
- * Copyright (c) Meta Platforms, Inc. and affiliates.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */var V;function ce(){if(V)return E;V=1;var o=T;function g(a){var r="https://react.dev/errors/"+a;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)r+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+a+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var s={d:{f:d,r:function(){throw Error(g(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},l=Symbol.for("react.portal");function p(a,r,f){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:n==null?null:""+n,children:a,containerInfo:r,implementation:f}}var y=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(a,r){if(a==="font")return"";if(typeof r=="string")return r==="use-credentials"?r:""}return E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,E.createPortal=function(a,r){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(g(299));return p(a,r,null,f)},E.flushSync=function(a){var r=y.T,f=s.p;try{if(y.T=null,s.p=2,a)return a()}finally{y.T=r,s.p=f,s.d.f()}},E.preconnect=function(a,r){typeof a=="string"&&(r?(r=r.crossOrigin,r=typeof r=="string"?r==="use-credentials"?r:"":void 0):r=null,s.d.C(a,r))},E.prefetchDNS=function(a){typeof a=="string"&&s.d.D(a)},E.preinit=function(a,r){if(typeof a=="string"&&r&&typeof r.as=="string"){var f=r.as,n=h(f,r.crossOrigin),e=typeof r.integrity=="string"?r.integrity:void 0,i=typeof r.fetchPriority=="string"?r.fetchPriority:void 0;f==="style"?s.d.S(a,typeof r.precedence=="string"?r.precedence:void 0,{crossOrigin:n,integrity:e,fetchPriority:i}):f==="script"&&s.d.X(a,{crossOrigin:n,integrity:e,fetchPriority:i,nonce:typeof r.nonce=="string"?r.nonce:void 0})}},E.preinitModule=function(a,r){if(typeof a=="string")if(typeof r=="object"&&r!==null){if(r.as==null||r.as==="script"){var f=h(r.as,r.crossOrigin);s.d.M(a,{crossOrigin:f,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0})}}else r==null&&s.d.M(a)},E.preload=function(a,r){if(typeof a=="string"&&typeof r=="object"&&r!==null&&typeof r.as=="string"){var f=r.as,n=h(f,r.crossOrigin);s.d.L(a,f,{crossOrigin:n,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0,type:typeof r.type=="string"?r.type:void 0,fetchPriority:typeof r.fetchPriority=="string"?r.fetchPriority:void 0,referrerPolicy:typeof r.referrerPolicy=="string"?r.referrerPolicy:void 0,imageSrcSet:typeof r.imageSrcSet=="string"?r.imageSrcSet:void 0,imageSizes:typeof r.imageSizes=="string"?r.imageSizes:void 0,media:typeof r.media=="string"?r.media:void 0})}},E.preloadModule=function(a,r){if(typeof a=="string")if(r){var f=h(r.as,r.crossOrigin);s.d.m(a,{as:typeof r.as=="string"&&r.as!=="script"?r.as:void 0,crossOrigin:f,integrity:typeof r.integrity=="string"?r.integrity:void 0})}else s.d.m(a)},E.requestFormReset=function(a){s.d.r(a)},E.unstable_batchedUpdates=function(a,r){return a(r)},E.useFormState=function(a,r,f){return y.H.useFormState(a,r,f)},E.useFormStatus=function(){return y.H.useHostTransitionStatus()},E.version="19.2.3",E}var x={};/**
31
- * @license React
32
- * react-dom.development.js
33
- *
34
- * Copyright (c) Meta Platforms, Inc. and affiliates.
35
- *
36
- * This source code is licensed under the MIT license found in the
37
- * LICENSE file in the root directory of this source tree.
38
- */var W;function le(){return W||(W=1,process.env.NODE_ENV!=="production"&&function(){function o(){}function g(n){return""+n}function d(n,e,i){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{g(b);var S=!1}catch{S=!0}return S&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object"),g(b)),{$$typeof:r,key:b==null?null:""+b,children:n,containerInfo:e,implementation:i}}function s(n,e){if(n==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}function l(n){return n===null?"`null`":n===void 0?"`undefined`":n===""?"an empty string":'something with type "'+typeof n+'"'}function p(n){return n===null?"`null`":n===void 0?"`undefined`":n===""?"an empty string":typeof n=="string"?JSON.stringify(n):typeof n=="number"?"`"+n+"`":'something with type "'+typeof n+'"'}function y(){var n=f.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
6
+ <%s key={someKey} {...props} />`,v,_,D,_),Q[_+v]=!0)}if(_=null,m!==void 0&&(f(m),_=""+m),y(u)&&(f(u.key),_=""+u.key),"key"in u){m={};for(var U in u)U!=="key"&&(m[U]=u[U])}else m=u;return _&&h(m,typeof t=="function"?t.displayName||t.name||"Unknown":t),r(t,_,m,l(),P,F)}function n(t){e(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===C&&(t._payload.status==="fulfilled"?e(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function e(t){return typeof t=="object"&&t!==null&&t.$$typeof===b}var i=T,b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),Re=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),je=Symbol.for("react.consumer"),De=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),Ne=Symbol.for("react.suspense"),Ae=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),Pe=Symbol.for("react.activity"),Me=Symbol.for("react.client.reference"),L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Ce=Array.isArray,I=console.createTask?console.createTask:function(){return null};i={react_stack_bottom_frame:function(t){return t()}};var X,J={},K=i.react_stack_bottom_frame.bind(i,p)(),Z=I(c(p)),Q={};N.Fragment=j,N.jsx=function(t,u,m){var v=1e4>L.recentlyCreatedOwnerStacks++;return g(t,u,m,!1,v?Error("react-stack-top-frame"):K,v?I(c(t)):Z)},N.jsxs=function(t,u,m){var v=1e4>L.recentlyCreatedOwnerStacks++;return g(t,u,m,!0,v?Error("react-stack-top-frame"):K,v?I(c(t)):Z)}})()),N}var V;function oe(){return V||(V=1,process.env.NODE_ENV==="production"?A.exports=ne():A.exports=ae()),A.exports}var s=oe();const ie=({actived:a,children:d,name:f})=>s.jsx(T.Activity,{name:f,mode:a?"visible":"hidden",children:d}),se=({style:a,imageVar:d,className:f="",...c})=>{const l=`bg-(image:${d})`;return s.jsx("div",{...c,className:[f,l].join(" "),style:{...a,backgroundSize:"cover",backgroundRepeat:"no-repeat"}})},M=({variant:a="default",children:d,className:f,...c})=>{const l={diabled:c.disabled?"bg-(--bg-smooth) text-(--fg-mini-text)":`bg-(--bg-card) color-${a} cursor-pointer`,"hover:disabled":c.disabled?"":"hover:px-5 hover:py-3","active:disabled":c.disabled?"":"active:px-3 active:py-1 active:bg-(--fg-component) active:opacity-[0.7]"};return s.jsx("button",{className:["px-4 py-2 w-fit rounded-lg page duration-200",l.diabled,l["hover:disabled"],l["active:disabled"],f].join(" "),...c,children:d})},ce=({size:a,ref:d,className:f})=>s.jsx("svg",{ref:d,width:a,height:a,viewBox:"0 0 24 24",fill:"none",className:f,xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{transform:"translate(4 6)",children:s.jsx("path",{d:"M1 6L6 11L16 1",stroke:"#EDEDED",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),le=({size:a,ref:d,className:f})=>s.jsx("svg",{ref:d,width:a,height:a,viewBox:"0 0 12 12",fill:"none",className:f,xmlns:"http://www.w3.org/2000/svg",children:s.jsx("circle",{cx:"6",cy:"6",r:"6",fill:"#EDEDED"})}),ue=(8+1)*2,de=({inputName:a,inputId:d,className:f,style:c,onClick:l,size:p=24,checked:y=!1,type:h,...o})=>{const[r,g]=T.useState(y),n=T.useRef(null),e=T.useRef(null),i=`${p+ue}px`;return T.useEffect(()=>{n.current&&(e.current&&(e.current.checked=r),r?n.current.style.display=c?.display||"block":n.current.style.opacity="0",setTimeout(()=>{n.current&&(r?n.current.style.opacity="1":n.current.style.display="none")},100))},[r,c?.display]),s.jsxs("div",{className:["bg-(--bg-card) border-(--fg-mini-text) border-1 p-[8px] cursor-pointer duration-300",h==="checkbox"?"rounded-[20%]":"rounded-[100%]","hover:bg-(--fg-card)",f].join(" "),style:{height:i,width:i,...c},onClick:b=>{l?.(b),g(!r)},...o,children:[h==="checkbox"?s.jsx(ce,{className:"duration-300",ref:n,size:p}):s.jsx(le,{className:"duration-300",ref:n,size:p}),s.jsx("input",{ref:e,name:a,id:d,type:"checkbox",style:{display:"none"}})]})},fe=a=>s.jsx(de,{type:"checkbox",...a}),ge=({className:a,...d})=>s.jsx("input",{placeholder:"input here...",...d,className:[a||"","bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-60"].join(" ")}),pe=({className:a,...d})=>s.jsx("textarea",{placeholder:"write here...",...d,className:[a||"","bg-(--bg-card) px-4 py-2 rounded-lg min-w-30 max-w-150 min-h-10 resize"].join(" ")});var k={exports:{}},E={};var W;function ye(){if(W)return E;W=1;var a=T;function d(o){var r="https://react.dev/errors/"+o;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)r+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+o+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var c={d:{f,r:function(){throw Error(d(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},l=Symbol.for("react.portal");function p(o,r,g){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:n==null?null:""+n,children:o,containerInfo:r,implementation:g}}var y=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(o,r){if(o==="font")return"";if(typeof r=="string")return r==="use-credentials"?r:""}return E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,E.createPortal=function(o,r){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)throw Error(d(299));return p(o,r,null,g)},E.flushSync=function(o){var r=y.T,g=c.p;try{if(y.T=null,c.p=2,o)return o()}finally{y.T=r,c.p=g,c.d.f()}},E.preconnect=function(o,r){typeof o=="string"&&(r?(r=r.crossOrigin,r=typeof r=="string"?r==="use-credentials"?r:"":void 0):r=null,c.d.C(o,r))},E.prefetchDNS=function(o){typeof o=="string"&&c.d.D(o)},E.preinit=function(o,r){if(typeof o=="string"&&r&&typeof r.as=="string"){var g=r.as,n=h(g,r.crossOrigin),e=typeof r.integrity=="string"?r.integrity:void 0,i=typeof r.fetchPriority=="string"?r.fetchPriority:void 0;g==="style"?c.d.S(o,typeof r.precedence=="string"?r.precedence:void 0,{crossOrigin:n,integrity:e,fetchPriority:i}):g==="script"&&c.d.X(o,{crossOrigin:n,integrity:e,fetchPriority:i,nonce:typeof r.nonce=="string"?r.nonce:void 0})}},E.preinitModule=function(o,r){if(typeof o=="string")if(typeof r=="object"&&r!==null){if(r.as==null||r.as==="script"){var g=h(r.as,r.crossOrigin);c.d.M(o,{crossOrigin:g,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0})}}else r==null&&c.d.M(o)},E.preload=function(o,r){if(typeof o=="string"&&typeof r=="object"&&r!==null&&typeof r.as=="string"){var g=r.as,n=h(g,r.crossOrigin);c.d.L(o,g,{crossOrigin:n,integrity:typeof r.integrity=="string"?r.integrity:void 0,nonce:typeof r.nonce=="string"?r.nonce:void 0,type:typeof r.type=="string"?r.type:void 0,fetchPriority:typeof r.fetchPriority=="string"?r.fetchPriority:void 0,referrerPolicy:typeof r.referrerPolicy=="string"?r.referrerPolicy:void 0,imageSrcSet:typeof r.imageSrcSet=="string"?r.imageSrcSet:void 0,imageSizes:typeof r.imageSizes=="string"?r.imageSizes:void 0,media:typeof r.media=="string"?r.media:void 0})}},E.preloadModule=function(o,r){if(typeof o=="string")if(r){var g=h(r.as,r.crossOrigin);c.d.m(o,{as:typeof r.as=="string"&&r.as!=="script"?r.as:void 0,crossOrigin:g,integrity:typeof r.integrity=="string"?r.integrity:void 0})}else c.d.m(o)},E.requestFormReset=function(o){c.d.r(o)},E.unstable_batchedUpdates=function(o,r){return o(r)},E.useFormState=function(o,r,g){return y.H.useFormState(o,r,g)},E.useFormStatus=function(){return y.H.useHostTransitionStatus()},E.version="19.2.3",E}var x={};var $;function me(){return $||($=1,process.env.NODE_ENV!=="production"&&(function(){function a(){}function d(n){return""+n}function f(n,e,i){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{d(b);var S=!1}catch{S=!0}return S&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object"),d(b)),{$$typeof:r,key:b==null?null:""+b,children:n,containerInfo:e,implementation:i}}function c(n,e){if(n==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}function l(n){return n===null?"`null`":n===void 0?"`undefined`":n===""?"an empty string":'something with type "'+typeof n+'"'}function p(n){return n===null?"`null`":n===void 0?"`undefined`":n===""?"an empty string":typeof n=="string"?JSON.stringify(n):typeof n=="number"?"`"+n+"`":'something with type "'+typeof n+'"'}function y(){var n=g.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
39
7
  1. You might have mismatching versions of React and the renderer (such as React DOM)
40
8
  2. You might be breaking the Rules of Hooks
41
9
  3. You might have more than one copy of React in the same app
42
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=T,a={d:{f:o,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},r=Symbol.for("react.portal"),f=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),x.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,x.createPortal=function(n,e){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error("Target container is not a DOM element.");return d(n,e,null,i)},x.flushSync=function(n){var e=f.T,i=a.p;try{if(f.T=null,a.p=2,n)return n()}finally{f.T=e,a.p=i,a.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},x.preconnect=function(n,e){typeof n=="string"&&n?e!=null&&typeof e!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",p(e)):e!=null&&typeof e.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",l(e.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(n)),typeof n=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,a.d.C(n,e))},x.prefetchDNS=function(n){if(typeof n!="string"||!n)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(n));else if(1<arguments.length){var e=arguments[1];typeof e=="object"&&e.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(e)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(e))}typeof n=="string"&&a.d.D(n)},x.preinit=function(n,e){if(typeof n=="string"&&n?e==null||typeof e!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",p(e)):e.as!=="style"&&e.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',p(e.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(n)),typeof n=="string"&&e&&typeof e.as=="string"){var i=e.as,b=s(i,e.crossOrigin),S=typeof e.integrity=="string"?e.integrity:void 0,j=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;i==="style"?a.d.S(n,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:j}):i==="script"&&a.d.X(n,{crossOrigin:b,integrity:S,fetchPriority:j,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},x.preinitModule=function(n,e){var i="";if(typeof n=="string"&&n||(i+=" The `href` argument encountered was "+l(n)+"."),e!==void 0&&typeof e!="object"?i+=" The `options` argument encountered was "+l(e)+".":e&&"as"in e&&e.as!=="script"&&(i+=" The `as` option encountered was "+p(e.as)+"."),i)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",i);else switch(i=e&&typeof e.as=="string"?e.as:"script",i){case"script":break;default:i=p(i),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',i,n)}typeof n=="string"&&(typeof e=="object"&&e!==null?(e.as==null||e.as==="script")&&(i=s(e.as,e.crossOrigin),a.d.M(n,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})):e==null&&a.d.M(n))},x.preload=function(n,e){var i="";if(typeof n=="string"&&n||(i+=" The `href` argument encountered was "+l(n)+"."),e==null||typeof e!="object"?i+=" The `options` argument encountered was "+l(e)+".":typeof e.as=="string"&&e.as||(i+=" The `as` option encountered was "+l(e.as)+"."),i&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',i),typeof n=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){i=e.as;var b=s(i,e.crossOrigin);a.d.L(n,i,{crossOrigin:b,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},x.preloadModule=function(n,e){var i="";typeof n=="string"&&n||(i+=" The `href` argument encountered was "+l(n)+"."),e!==void 0&&typeof e!="object"?i+=" The `options` argument encountered was "+l(e)+".":e&&"as"in e&&typeof e.as!="string"&&(i+=" The `as` option encountered was "+l(e.as)+"."),i&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',i),typeof n=="string"&&(e?(i=s(e.as,e.crossOrigin),a.d.m(n,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0})):a.d.m(n))},x.requestFormReset=function(n){a.d.r(n)},x.unstable_batchedUpdates=function(n,e){return n(e)},x.useFormState=function(n,e,i){return y().useFormState(n,e,i)},x.useFormStatus=function(){return y().useHostTransitionStatus()},x.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),x}function $(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($)}catch(o){console.error(o)}}}process.env.NODE_ENV==="production"?($(),M.exports=ce()):M.exports=le();var ue=M.exports;const de=({container:o,children:g,portalKey:d,className:s="",zIndex:l,style:p,...y})=>{const h=l?"":"z-100";return ue.createPortal(c.jsx("div",{className:["fixed top-0 h-screen w-screen",h,s].join(" "),...y,style:{zIndex:l,...p},children:g}),o,d)},fe=({actived:o,children:g,name:d})=>c.jsx(T.Activity,{name:d,mode:o?"visible":"hidden",children:g}),ge=({size:o,ref:g,className:d})=>c.jsx("svg",{ref:g,width:o,height:o,viewBox:"0 0 24 24",fill:"none",className:d,xmlns:"http://www.w3.org/2000/svg",children:c.jsx("g",{transform:"translate(4 6)",children:c.jsx("path",{d:"M1 6L6 11L16 1",stroke:"#EDEDED",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),pe=({size:o,ref:g,className:d})=>c.jsx("svg",{ref:g,width:o,height:o,viewBox:"0 0 12 12",fill:"none",className:d,xmlns:"http://www.w3.org/2000/svg",children:c.jsx("circle",{cx:"6",cy:"6",r:"6",fill:"#EDEDED"})}),ye=(8+1)*2,me=({inputName:o,inputId:g,className:d,style:s,onClick:l,size:p=24,checked:y=!1,type:h,...a})=>{const[r,f]=T.useState(y),n=T.useRef(null),e=T.useRef(null),i=`${p+ye}px`;return T.useEffect(()=>{n.current&&(e.current&&(e.current.checked=r),r?n.current.style.display=(s==null?void 0:s.display)||"block":n.current.style.opacity="0",setTimeout(()=>{n.current&&(r?n.current.style.opacity="1":n.current.style.display="none")},100))},[r,s==null?void 0:s.display]),c.jsxs("div",{className:["bg-(--bg-card) border-(--fg-mini-text) border-1 p-[8px] cursor-pointer duration-300",h==="checkbox"?"rounded-[20%]":"rounded-[100%]","hover:bg-(--fg-card)",d].join(" "),style:{height:i,width:i,...s},onClick:b=>{l==null||l(b),f(!r)},...a,children:[h==="checkbox"?c.jsx(ge,{className:"duration-300",ref:n,size:p}):c.jsx(pe,{className:"duration-300",ref:n,size:p}),c.jsx("input",{ref:e,name:o,id:g,type:"checkbox",style:{display:"none"}})]})},he=o=>c.jsx(me,{type:"checkbox",...o}),_e=12,ve=8,be=({inputId:o,inputName:g,dangerousDisableError:d=!1,style:s,className:l,onClick:p,radioSize:y=24,checked:h=!1,...a})=>{const[r,f]=T.useState(h);y<_e&&!d&&console.error("radio size less than minimal, set radioSize = 12 or more too resolve");const n=y*4,e=n-ve*2-y,i=r?"bg-(--bg-card)":"bg-(--bg-section)",b=r?"bg-(--fg-default)":"bg-(--fg-mini-text)",S=r?e:0;return c.jsxs("div",{style:{width:`${n}px`,...s},className:["rounded-[200px] py-[6px] px-[8px] cursor-pointer duration-300",i,"hover:bg-(--fg-card)",l].join(" "),onClick:j=>{f(!r),p==null||p(j)},...a,children:[c.jsx("div",{className:["relative duration-300 rounded-[100%]",b].join(" "),style:{height:`${y}px`,width:`${y}px`,left:`${S}px`}}),c.jsx("input",{name:g,id:o,type:"checkbox",style:{display:"none"}})]})},Oe=Object.freeze(Object.defineProperty({__proto__:null,Button:()=>c.jsxs("div",{className:"flex flex-col justify-center gap-4",children:[Object.keys(Y).map(o=>c.jsxs(P,{variant:o,children:["Button ",o]},o)),c.jsx(P,{disabled:!0,children:"Button Disabled"})]}),Text:()=>c.jsxs("div",{className:"flex flex-col gap-2 rounded-lg",children:[c.jsxs("div",{children:[c.jsxs("h1",{children:["H1 text, ",R.h1]}),c.jsx("span",{children:"Пока не знаю"})]}),c.jsxs("div",{children:[c.jsxs("h2",{children:["H2 text, ",R.h2]}),c.jsx("span",{children:"Пока не знаю"})]}),c.jsxs("div",{children:[c.jsxs("h3",{children:["H3 text, ",R.h3]}),c.jsx("span",{children:"Пока не знаю"})]}),c.jsxs("div",{children:[c.jsxs("h4",{children:["H4 text, ",R.h4]}),c.jsx("span",{children:"Пока не знаю"})]}),c.jsxs("div",{children:[c.jsxs("h5",{children:["H5 text, ",R.h5]}),c.jsx("span",{children:"Пока не знаю"})]}),c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("span",{children:["Base text, ",R.base]}),c.jsx("span",{children:"Пока не знаю"})]}),c.jsxs("div",{className:"flex flex-col",children:[c.jsxs("span",{className:"text-mini",children:["Mini text, ",R.mini]}),c.jsx("span",{children:"Пока не знаю"})]})]})},Symbol.toStringTag,{value:"Module"}));O.Active=fe,O.Background=ae,O.Button=P,O.Checkbox=he,O.Guildline=Oe,O.Input=oe,O.Modal=de,O.Switch=be,O.Textarea=ie,O.VARIABLES=re,O.Wrapper=se,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
10
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var h=T,o={d:{f:a,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},r=Symbol.for("react.portal"),g=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),x.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,x.createPortal=function(n,e){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error("Target container is not a DOM element.");return f(n,e,null,i)},x.flushSync=function(n){var e=g.T,i=o.p;try{if(g.T=null,o.p=2,n)return n()}finally{g.T=e,o.p=i,o.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},x.preconnect=function(n,e){typeof n=="string"&&n?e!=null&&typeof e!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",p(e)):e!=null&&typeof e.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",l(e.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(n)),typeof n=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,o.d.C(n,e))},x.prefetchDNS=function(n){if(typeof n!="string"||!n)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(n));else if(1<arguments.length){var e=arguments[1];typeof e=="object"&&e.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(e)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",p(e))}typeof n=="string"&&o.d.D(n)},x.preinit=function(n,e){if(typeof n=="string"&&n?e==null||typeof e!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",p(e)):e.as!=="style"&&e.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',p(e.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",l(n)),typeof n=="string"&&e&&typeof e.as=="string"){var i=e.as,b=c(i,e.crossOrigin),S=typeof e.integrity=="string"?e.integrity:void 0,j=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;i==="style"?o.d.S(n,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:j}):i==="script"&&o.d.X(n,{crossOrigin:b,integrity:S,fetchPriority:j,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},x.preinitModule=function(n,e){var i="";typeof n=="string"&&n||(i+=" The `href` argument encountered was "+l(n)+"."),e!==void 0&&typeof e!="object"?i+=" The `options` argument encountered was "+l(e)+".":e&&"as"in e&&e.as!=="script"&&(i+=" The `as` option encountered was "+p(e.as)+"."),i?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",i):(i=e&&typeof e.as=="string"?e.as:"script",i)==="script"||(i=p(i),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',i,n)),typeof n=="string"&&(typeof e=="object"&&e!==null?(e.as==null||e.as==="script")&&(i=c(e.as,e.crossOrigin),o.d.M(n,{crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})):e==null&&o.d.M(n))},x.preload=function(n,e){var i="";if(typeof n=="string"&&n||(i+=" The `href` argument encountered was "+l(n)+"."),e==null||typeof e!="object"?i+=" The `options` argument encountered was "+l(e)+".":typeof e.as=="string"&&e.as||(i+=" The `as` option encountered was "+l(e.as)+"."),i&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',i),typeof n=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){i=e.as;var b=c(i,e.crossOrigin);o.d.L(n,i,{crossOrigin:b,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},x.preloadModule=function(n,e){var i="";typeof n=="string"&&n||(i+=" The `href` argument encountered was "+l(n)+"."),e!==void 0&&typeof e!="object"?i+=" The `options` argument encountered was "+l(e)+".":e&&"as"in e&&typeof e.as!="string"&&(i+=" The `as` option encountered was "+l(e.as)+"."),i&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',i),typeof n=="string"&&(e?(i=c(e.as,e.crossOrigin),o.d.m(n,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:i,integrity:typeof e.integrity=="string"?e.integrity:void 0})):o.d.m(n))},x.requestFormReset=function(n){o.d.r(n)},x.unstable_batchedUpdates=function(n,e){return n(e)},x.useFormState=function(n,e,i){return y().useFormState(n,e,i)},x.useFormStatus=function(){return y().useHostTransitionStatus()},x.version="19.2.3",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),x}var z;function he(){if(z)return k.exports;z=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(d){console.error(d)}}}return process.env.NODE_ENV==="production"?(a(),k.exports=ye()):k.exports=me(),k.exports}var ve=he();const _e=({container:a,children:d,portalKey:f,className:c="",zIndex:l,style:p,...y})=>{const h=l?"":"z-100";return ve.createPortal(s.jsx("div",{className:["fixed top-0 h-screen w-screen",h,c].join(" "),...y,style:{zIndex:l,...p},children:d}),a,f)},be=12,Oe=8,Ee=({inputId:a,inputName:d,dangerousDisableError:f=!1,style:c,className:l,onClick:p,radioSize:y=24,checked:h=!1,...o})=>{const[r,g]=T.useState(h);y<be&&!f&&console.error("radio size less than minimal, set radioSize = 12 or more too resolve");const n=y*4,e=n-Oe*2-y,i=r?"bg-(--bg-card)":"bg-(--bg-section)",b=r?"bg-(--fg-default)":"bg-(--fg-mini-text)",S=r?e:0;return s.jsxs("div",{style:{width:`${n}px`,...c},className:["rounded-[200px] py-[6px] px-[8px] cursor-pointer duration-300",i,"hover:bg-(--fg-card)",l].join(" "),onClick:j=>{g(!r),p?.(j)},...o,children:[s.jsx("div",{className:["relative duration-300 rounded-[100%]",b].join(" "),style:{height:`${y}px`,width:`${y}px`,left:`${S}px`}}),s.jsx("input",{name:d,id:a,type:"checkbox",style:{display:"none"}})]})},xe=({flexDirection:a="row",className:d,...f})=>{const c=a==="col"?"flex-col":"flex-row";return s.jsx("div",{...f,className:[d||"",c,"bg-(image:--image-bg) flex gap-8 px-12 py-4 rounded-lg page"].join(" ")})},Te=Object.freeze(Object.defineProperty({__proto__:null,Button:()=>s.jsxs("div",{className:"flex flex-col justify-center gap-4",children:[Object.keys(Y).map(a=>s.jsxs(M,{variant:a,children:["Button ",a]},a)),s.jsx(M,{disabled:!0,children:"Button Disabled"})]}),Text:()=>s.jsxs("div",{className:"flex flex-col gap-2 rounded-lg",children:[s.jsxs("div",{children:[s.jsxs("h1",{children:["H1 text, ",R.h1]}),s.jsx("span",{children:"Пока не знаю"})]}),s.jsxs("div",{children:[s.jsxs("h2",{children:["H2 text, ",R.h2]}),s.jsx("span",{children:"Пока не знаю"})]}),s.jsxs("div",{children:[s.jsxs("h3",{children:["H3 text, ",R.h3]}),s.jsx("span",{children:"Пока не знаю"})]}),s.jsxs("div",{children:[s.jsxs("h4",{children:["H4 text, ",R.h4]}),s.jsx("span",{children:"Пока не знаю"})]}),s.jsxs("div",{children:[s.jsxs("h5",{children:["H5 text, ",R.h5]}),s.jsx("span",{children:"Пока не знаю"})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("span",{children:["Base text, ",R.base]}),s.jsx("span",{children:"Пока не знаю"})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("span",{className:"text-mini",children:["Mini text, ",R.mini]}),s.jsx("span",{children:"Пока не знаю"})]})]})},Symbol.toStringTag,{value:"Module"}));O.Active=ie,O.Background=se,O.Button=M,O.Checkbox=fe,O.Guildline=Te,O.Input=ge,O.Modal=_e,O.Switch=Ee,O.Textarea=pe,O.VARIABLES=te,O.Wrapper=xe,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "tvuikit",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
+ "description": "A modern React UI kit for The Void Community projects",
8
9
  "main": "./dist/tvuikit.umd.js",
9
10
  "module": "./dist/tvuikit.es.js",
10
11
  "exports": {
@@ -19,6 +20,16 @@
19
20
  "email": "viserd.yt@gmail.com",
20
21
  "url": "https://fockusty.netlify.app"
21
22
  },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/The-Void-Community/tvuikit.git"
26
+ },
27
+ "homepage": "https://github.com/The-Void-Community/tvuikit#readme",
28
+ "bugs": {
29
+ "url": "https://github.com/The-Void-Community/tvuikit/issues"
30
+ },
31
+ "keywords": ["react", "ui-kit", "components", "design-system"],
32
+ "license": "MIT",
22
33
  "scripts": {
23
34
  "dev": "vite",
24
35
  "build": "tsc && vite build",
@@ -28,37 +39,37 @@
28
39
  "build-storybook": "storybook build"
29
40
  },
30
41
  "dependencies": {
31
- "@tailwindcss/vite": "^4.1.16",
42
+ "@tailwindcss/vite": "^4.1.18",
32
43
  "react": "^19.2.3",
33
44
  "react-dom": "^19.2.3",
34
- "tailwindcss": "^4.1.16"
45
+ "tailwindcss": "^4.1.18"
35
46
  },
36
47
  "devDependencies": {
37
48
  "@chromatic-com/storybook": "^4.1.3",
38
- "@eslint/js": "^9.23.0",
49
+ "@eslint/js": "^9.39.2",
39
50
  "@storybook/addon-docs": "^10.1.11",
40
51
  "@storybook/addon-links": "^10.1.11",
41
52
  "@storybook/addon-onboarding": "^10.1.11",
42
53
  "@storybook/addon-themes": "10.1.11",
43
54
  "@storybook/react-vite": "10.1.11",
44
- "@types/node": "^24.10.1",
55
+ "@types/node": "^25.0.3",
45
56
  "@types/react": "^19.2.7",
46
57
  "@types/react-dom": "^19.2.3",
47
- "@typescript-eslint/eslint-plugin": "^7.2.0",
48
- "@typescript-eslint/parser": "^7.2.0",
49
- "@vitejs/plugin-react": "^4.2.1",
50
- "eslint": "^9.23.0",
51
- "eslint-config-prettier": "^9.1.0",
52
- "eslint-plugin-prettier": "^5.2.5",
53
- "eslint-plugin-react-hooks": "^5.2.0",
54
- "eslint-plugin-react-refresh": "^0.4.19",
58
+ "@typescript-eslint/eslint-plugin": "^8.51.0",
59
+ "@typescript-eslint/parser": "^8.51.0",
60
+ "@vitejs/plugin-react": "^5.1.2",
61
+ "eslint": "^9.39.2",
62
+ "eslint-config-prettier": "^10.1.8",
63
+ "eslint-plugin-prettier": "^5.5.4",
64
+ "eslint-plugin-react-hooks": "^7.0.1",
65
+ "eslint-plugin-react-refresh": "^0.4.26",
55
66
  "eslint-plugin-storybook": "^10.1.11",
56
- "globals": "^15.15.0",
67
+ "globals": "^17.0.0",
57
68
  "storybook": "^10.1.11",
58
- "styled-components": "^6.1.11",
69
+ "styled-components": "^6.1.19",
59
70
  "typescript": "^5.9.3",
60
71
  "typescript-eslint": "^8.51.0",
61
- "vite": "^5.2.0",
62
- "vite-plugin-dts": "^3.9.1"
72
+ "vite": "^7.3.0",
73
+ "vite-plugin-dts": "^4.5.4"
63
74
  }
64
75
  }