reaxify 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -55
- package/dist/index.es.js +1166 -10013
- package/dist/index.umd.js +22 -0
- package/package.json +4 -11
- package/dist/components/Accordion/index.stories.d.ts +0 -6
- package/dist/components/Badge/index.stories.d.ts +0 -7
- package/dist/components/Box/index.stories.d.ts +0 -5
- package/dist/components/Button/index.stories.d.ts +0 -8
- package/dist/components/ButtonGroup/index.stories.d.ts +0 -9
- package/dist/components/Card/index.stories.d.ts +0 -5
- package/dist/components/Drawer/index.stories.d.ts +0 -6
- package/dist/components/Form/index.stories.d.ts +0 -5
- package/dist/components/InputGroup/index.stories.d.ts +0 -5
- package/dist/components/Menu/index.stories.d.ts +0 -7
- package/dist/components/Modal/index.stories.d.ts +0 -5
- package/dist/components/Progress/index.stories.d.ts +0 -5
- package/dist/components/Skeleton/index.stories.d.ts +0 -5
- package/dist/components/Stack/index.stories.d.ts +0 -7
- package/dist/components/Table/index.stories.d.ts +0 -5
- package/dist/components/Tabs/index.stories.d.ts +0 -5
- package/dist/components/Typography/index.stories.d.ts +0 -5
- package/dist/helpers/index.stories.d.ts +0 -11
- package/dist/hooks/index.stories.d.ts +0 -9
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(function(d,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react"),require("axios"),require("lodash"),require("iconsax-react"),require("react-animate-height"),require("tailwind-merge"),require("react-transition-group"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","axios","lodash","iconsax-react","react-animate-height","tailwind-merge","react-transition-group","react-dom"],o):(d=typeof globalThis<"u"?globalThis:d||self,o(d.reaxify={},d.React,d.baseAxios,d.lodash,d.iconsaxReact,d.AnimateHeight,d.tailwindMerge,d.reactTransitionGroup,d.ReactDom))})(this,function(d,o,Ye,Ve,We,Ge,y,ae,Ue){"use strict";function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ie={exports:{}},K={};/**
|
|
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 ye;function Ke(){if(ye)return K;ye=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var u=null;if(i!==void 0&&(u=""+i),a.key!==void 0&&(u=""+a.key),"key"in a){i={};for(var f in a)f!=="key"&&(i[f]=a[f])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:u,ref:a!==void 0?a:null,props:i}}return K.Fragment=t,K.jsx=n,K.jsxs=n,K}var X={};/**
|
|
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 we;function Xe(){return we||(we=1,process.env.NODE_ENV!=="production"&&function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===se?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case g:return"Fragment";case E:return"Profiler";case p:return"StrictMode";case P:return"Suspense";case V:return"SuspenseList";case k:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case A:return"Portal";case N:return(s.displayName||"Context")+".Provider";case T:return(s._context.displayName||"Context")+".Consumer";case _:var x=s.render;return s=s.displayName,s||(s=x.displayName||x.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case H:return x=s.displayName||null,x!==null?x:e(s.type)||"Memo";case W:x=s._payload,s=s._init;try{return e(s(x))}catch{}}return null}function t(s){return""+s}function n(s){try{t(s);var x=!1}catch{x=!0}if(x){x=console;var j=x.error,R=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return j.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R),t(s)}}function r(s){if(s===g)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===W)return"<...>";try{var x=e(s);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function a(){var s=pe.A;return s===null?null:s.getOwner()}function i(){return Error("react-stack-top-frame")}function u(s){if(Le.call(s,"key")){var x=Object.getOwnPropertyDescriptor(s,"key").get;if(x&&x.isReactWarning)return!1}return s.key!==void 0}function f(s,x){function j(){ze||(ze=!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)",x))}j.isReactWarning=!0,Object.defineProperty(s,"key",{get:j,configurable:!0})}function m(){var s=e(this.type);return Ie[s]||(Ie[s]=!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.")),s=this.props.ref,s!==void 0?s:null}function l(s,x,j,R,F,L,ge,he){return j=L.ref,s={$$typeof:v,type:s,key:x,props:L,_owner:F},(j!==void 0?j:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:m}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function b(s,x,j,R,F,L,ge,he){var S=x.children;if(S!==void 0)if(R)if(nn(S)){for(R=0;R<S.length;R++)h(S[R]);Object.freeze&&Object.freeze(S)}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 h(S);if(Le.call(x,"key")){S=e(s);var J=Object.keys(x).filter(function(rn){return rn!=="key"});R=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",Be[S+R]||(J=0<J.length?"{"+J.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} />`,R,S,J,S),Be[S+R]=!0)}if(S=null,j!==void 0&&(n(j),S=""+j),u(x)&&(n(x.key),S=""+x.key),"key"in x){j={};for(var xe in x)xe!=="key"&&(j[xe]=x[xe])}else j=x;return S&&f(j,typeof s=="function"?s.displayName||s.name||"Unknown":s),l(s,S,L,F,a(),j,ge,he)}function h(s){typeof s=="object"&&s!==null&&s.$$typeof===v&&s._store&&(s._store.validated=1)}var w=o,v=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),N=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),se=Symbol.for("react.client.reference"),pe=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Le=Object.prototype.hasOwnProperty,nn=Array.isArray,be=console.createTask?console.createTask:function(){return null};w={"react-stack-bottom-frame":function(s){return s()}};var ze,Ie={},He=w["react-stack-bottom-frame"].bind(w,i)(),Fe=be(r(i)),Be={};X.Fragment=g,X.jsx=function(s,x,j,R,F){var L=1e4>pe.recentlyCreatedOwnerStacks++;return b(s,x,j,!1,R,F,L?Error("react-stack-top-frame"):He,L?be(r(s)):Fe)},X.jsxs=function(s,x,j,R,F){var L=1e4>pe.recentlyCreatedOwnerStacks++;return b(s,x,j,!0,R,F,L?Error("react-stack-top-frame"):He,L?be(r(s)):Fe)}}()),X}process.env.NODE_ENV==="production"?ie.exports=Ke():ie.exports=Xe();var c=ie.exports;const ve=o.createContext({config:{},beforeRequest:[],afterResponse:[],afterError:[]});function Ze({config:e={},beforeRequest:t=[],afterResponse:n=[],afterError:r=[],children:a}){return c.jsx(ve.Provider,{value:{config:e,beforeRequest:t,afterResponse:n,afterError:r},children:a})}var Ee={exports:{}},C=Ee.exports={},M,D;function ce(){throw new Error("setTimeout has not been defined")}function le(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?M=setTimeout:M=ce}catch{M=ce}try{typeof clearTimeout=="function"?D=clearTimeout:D=le}catch{D=le}})();function Te(e){if(M===setTimeout)return setTimeout(e,0);if((M===ce||!M)&&setTimeout)return M=setTimeout,setTimeout(e,0);try{return M(e,0)}catch{try{return M.call(null,e,0)}catch{return M.call(this,e,0)}}}function Qe(e){if(D===clearTimeout)return clearTimeout(e);if((D===le||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(e);try{return D(e)}catch{try{return D.call(null,e)}catch{return D.call(this,e)}}}var z=[],G=!1,B,$=-1;function qe(){!G||!B||(G=!1,B.length?z=B.concat(z):$=-1,z.length&&je())}function je(){if(!G){var e=Te(qe);G=!0;for(var t=z.length;t;){for(B=z,z=[];++$<t;)B&&B[$].run();$=-1,t=z.length}B=null,G=!1,Qe(e)}}C.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];z.push(new Ce(e,t)),z.length===1&&!G&&Te(je)};function Ce(e,t){this.fun=e,this.array=t}Ce.prototype.run=function(){this.fun.apply(null,this.array)},C.title="browser",C.browser=!0,C.env={},C.argv=[],C.version="",C.versions={};function I(){}C.on=I,C.addListener=I,C.once=I,C.off=I,C.removeListener=I,C.removeAllListeners=I,C.emit=I,C.prependListener=I,C.prependOnceListener=I,C.listeners=function(e){return[]},C.binding=function(e){throw new Error("process.binding is not supported")},C.cwd=function(){return"/"},C.chdir=function(e){throw new Error("process.chdir is not supported")},C.umask=function(){return 0};var $e=Ee.exports;const et=Je($e);function tt(e=null){const t=o.useContext(ve),n=o.useMemo(()=>new AbortController,[]),r=o.useMemo(()=>{const g={...t.config,...e==null?void 0:e.config};return Ye.create(g)},[t.config,e==null?void 0:e.config]),[a,i]=o.useState([]),[u,f]=o.useState(null),m=o.useCallback(g=>{i(p=>{const E=Ve.cloneDeep(p);return g?E.push(""):E.pop(),E})},[]),l=o.useCallback(g=>{const p=[...t.beforeRequest,...(e==null?void 0:e.beforeRequest)??[]];return p.length?p.reduce(async(E,T)=>T(await E),Promise.resolve(g)):g},[t.beforeRequest,e==null?void 0:e.beforeRequest]),b=o.useCallback(g=>{const p=[...t.afterResponse,...(e==null?void 0:e.afterResponse)??[]];return p.length?p.reduce(async(E,T)=>T(await E),Promise.resolve(g)):g},[t.afterResponse,e==null?void 0:e.afterResponse]),h=o.useCallback(g=>{const p=[...t.afterError,...(e==null?void 0:e.afterError)??[]];return p.length?p.reduce(async(E,T)=>T(await E),Promise.resolve(g)):g},[t.afterError,e==null?void 0:e.afterError]),w=o.useCallback(async g=>(g.signal||(g.signal=n.signal),m(!0),f(null),await l(g)),[n,m,l]),v=o.useCallback(async g=>{const p=await b(g);return m(!1),f(null),p},[m,b]),A=o.useCallback(g=>(h(g),m(!1),f(g),Promise.reject(g)),[m,h]);return o.useLayoutEffect(()=>{const g=r.interceptors.request.use(w),p=r.interceptors.response.use(v,A);return()=>{r.interceptors.request.eject(g),r.interceptors.response.eject(p)}},[r.interceptors.request,r.interceptors.response,w,v,A]),o.useLayoutEffect(()=>()=>{!(et.env.NODE_ENV!=="production")&&n.abort("Canceled.")},[]),[r,!!a.length,u]}function ee(...e){if(e.length)return e.filter(Boolean).join(" ")}async function nt(e){var n,r;return!((n=navigator==null?void 0:navigator.clipboard)!=null&&n.writeText)?Promise.reject(!1):await((r=navigator==null?void 0:navigator.clipboard)==null?void 0:r.writeText(e).then(()=>!0).catch(()=>!1))}function rt(e){return ke(e)||Re(e)||Se(e)||Ne(e)}function ke(e){return e==null}function Re(e){return e===""}function Se(e){return!Array.isArray(e)&&typeof e=="object"&&!Object.keys(e??{}).length}function Ne(e){return Array.isArray(e)&&!e.length}function ot(){return typeof window>"u"}function st(e,t=1){const n=[];let r,a;for(r=0,a=-1;r<e.length;r++)r%t===0&&(a++,n[a]=[]),n[a].push(e[r]);return n}function ue(){const e=[Math.random()*1e6,new Date().getTime()].map(Math.ceil).join("");return Number(e).toString(16)}function at(e){if(!e)return"";const t=/[^\d.-]/g;return e.replace(t,"")}function it(e){if(!e)return"";const t=[/۰/g,/۱/g,/۲/g,/۳/g,/۴/g,/۵/g,/۶/g,/۷/g,/۸/g,/۹/g],n=[/٠/g,/١/g,/٢/g,/٣/g,/٤/g,/٥/g,/٦/g,/٧/g,/٨/g,/٩/g];for(let r=0;r<10;r++){const a=t[r],i=n[r],u=`${r}`;e=e.replace(a,u).replace(i,u)}return e}function ct(e){return e<10?`0${e}`:`${e}`}async function lt(e){return await new Promise(t=>{setTimeout(()=>{t(null)},e)})}const de=o.createContext({activeKey:null,onChange:()=>{}}),te=o.createContext({active:!1,eventKey:null});function U({activeKey:e=null,onChange:t=()=>{},children:n}){return c.jsx(de.Provider,{value:{activeKey:e,onChange:t},children:n})}function ut({as:e,eventKey:t=null,className:n,children:r,...a}){const{activeKey:i}=o.useContext(de),u=e||"div",f=o.useMemo(()=>ue(),[]),m=t||f,l=o.useMemo(()=>Array.isArray(i)?i.includes(m):m===i,[i,m]);return c.jsx(u,{className:y.twMerge("block w-full border border-[#e8eaee] rounded",n),...a,children:c.jsx(te.Provider,{value:{eventKey:m,active:l},children:r})})}function dt({type:e,className:t,children:n,onClick:r,...a}){const{eventKey:i}=o.useContext(te),{onChange:u}=o.useContext(de),f=m=>{i&&u(i),r==null||r(m)};return c.jsx("button",{type:e,className:y.twMerge("w-full flex items-center text-start text-base px-5 py-4 rounded-t cursor-pointer",t),onClick:f,...a,children:n})}function ft({className:e,...t}){const{active:n}=o.useContext(te);return c.jsx(We.ArrowDown2,{color:"currentColor",className:y.twMerge("size-5 transition-transform",n?"-rotate-180":"rotate-0",e),...t})}function mt({duration:e=300,children:t}){const{active:n}=o.useContext(te);return c.jsx(Ge,{duration:e,height:n?"auto":0,className:"w-full",animationStateClasses:{animating:"",animatingUp:"",animatingDown:"",static:"",animatingToHeightZero:"",animatingToHeightAuto:"",animatingToHeightSpecific:"",staticHeightZero:"",staticHeightAuto:"",staticHeightSpecific:""},children:t})}function pt({className:e,children:t,...n}){return c.jsx("div",{className:y.twMerge("w-full block px-5 py-4 rounded-b",e),...n,children:t})}U.Item=ut,U.Toggle=dt,U.Icon=ft,U.Collapse=mt,U.Body=pt;function bt({as:e,variant:t="solid",color:n=null,size:r="md",className:a,children:i,...u}){const f=e||"span",m=o.useMemo(()=>{var h;if(!n)return"border-transparent";const b={primary:{solid:"bg-primary text-white border-primary",outline:"bg-transparent text-primary border-primary",soft:"bg-primary/10 text-primary border-primary/10"},secondary:{solid:"bg-secondary text-white border-secondary",outline:"bg-transparent text-secondary border-secondary",soft:"bg-secondary/10 text-secondary border-secondary/10"},success:{solid:"bg-success text-white border-success",outline:"bg-transparent text-success border-success",soft:"bg-success/10 text-success border-success/10"},info:{solid:"bg-info text-white border-info",outline:"bg-transparent text-info border-info",soft:"bg-info/10 text-info border-info/10"},warning:{solid:"bg-warning text-white border-warning",outline:"bg-transparent text-warning border-warning",soft:"bg-warning/10 text-warning border-warning/10"},danger:{solid:"bg-danger text-white border-danger",outline:"bg-transparent text-danger border-danger",soft:"bg-danger/10 text-danger border-danger/10"},dark:{solid:"bg-dark text-white border-dark",outline:"bg-transparent text-dark border-dark",soft:"bg-dark/10 text-dark border-dark/10"},light:{solid:"bg-light text-dark border-light",outline:"bg-transparent text-dark border-light",soft:"bg-light/10 text-dark border-light/10"}};return((h=b==null?void 0:b[n])==null?void 0:h[t])??null},[n,t]),l=o.useMemo(()=>{if(!r)return null;const b={sm:"text-xs py-0.5 px-1.5",md:"text-sm py-[0.1875rem] px-2",lg:"text-base py-1 px-3"};return b==null?void 0:b[r]},[r]);return c.jsx(f,{className:y.twMerge("inline-flex border border-[#e8eaee] items-center text-center font-medium align-middle whitespace-nowrap rounded",m,l,a),...u,children:i})}function gt({as:e,...t}){const n=e||"div";return c.jsx(n,{...t})}function ht(e){const t=o.useRef(new AbortController);o.useEffect(()=>{var r,a;const n=t.current;return(a=(r=navigator==null?void 0:navigator.credentials)==null?void 0:r.get)==null||a.call(r,{otp:{transport:["sms"]},signal:n.signal}).then(i=>{const u=i;e((u==null?void 0:u.code)||null)}),()=>{n==null||n.abort("signal has been aborted.")}},[e])}function Pe(){return o.useCallback(t=>{const n=t.currentTarget.querySelector(".ripple-group")||t.currentTarget,r=n.getBoundingClientRect(),a=t.clientX-r.left,i=t.clientY-r.top,u=r.width,f=r.height,m=Math.max(u,f),l=20,b=Math.ceil(m/l)*2,h=document.createElement("span");h.className=["ripple","absolute","rounded-full","pointer-events-none","transition-[opacity,scale]","duration-500","bg-current","size-[var(--size)] top-[var(--top)] left-[var(--left)] scale-[var(--scale)] opacity-[var(--opacity)]"].join(" "),h.style.setProperty("--size",`${l}px`),h.style.setProperty("--top",`${i-l/2}px`),h.style.setProperty("--left",`${a-l/2}px`),h.style.setProperty("--scale","1"),h.style.setProperty("--opacity","0.2"),n.appendChild(h),setTimeout(()=>{h.style.setProperty("--scale",`${b}`),h.style.setProperty("--opacity","0")},0),setTimeout(()=>n.removeChild(h),500)},[])}function Ae(){const e=o.useRef(null),t=o.useCallback(()=>{e.current&&clearTimeout(e.current)},[]),n=o.useCallback((r,a=1e3)=>{t(),e.current=setTimeout(r,a)},[t]);return o.useEffect(()=>()=>{t()},[t]),n}function xt(){const[e,t]=o.useState("visible"),n=e==="visible";return o.useEffect(()=>{const r=()=>{t(document.visibilityState)};return r(),document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)}},[]),n}function yt(){const[e,t]=o.useState(!navigator.onLine);return o.useEffect(()=>{const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("offline",n),window.addEventListener("online",r),()=>{window.removeEventListener("offline",n),window.removeEventListener("online",r)}},[]),e}function wt(){const[e,t]=o.useState(null);return o.useEffect(()=>{const n=a=>{t(a.key)},r=()=>{t(null)};return window.addEventListener("keydown",n),window.addEventListener("keyup",r),window.addEventListener("blur",r),()=>{window.removeEventListener("keydown",n),window.removeEventListener("keyup",r),window.removeEventListener("blur",r)}},[]),e}function vt(){const[e,t]=o.useState([0,0]);return o.useEffect(()=>{const n=a=>{t([a.x,a.y])},r=a=>{const i=a.changedTouches[0];t([i.clientX,i.clientY])};return window.addEventListener("mousemove",n),window.addEventListener("touchmove",r),()=>{window.removeEventListener("mousemove",n),window.removeEventListener("touchmove",r)}},[]),e}function Et(e,t){o.useEffect(()=>{if(!e)return;const r="current"in e?e.current:e;if(!r)return;const a=i=>{!r.contains(i.target)&&t(i)};return window.addEventListener("click",a),()=>{window.removeEventListener("click",a)}},[e,t])}function Tt(e,t,n="localStorage"){const r=o.useCallback(m=>{try{window[n].setItem(e,JSON.stringify(m))}catch(l){console.error(l)}},[e,n]),a=o.useCallback(()=>{try{const m=window[n].getItem(e);return m?JSON.parse(m):void 0}catch(m){console.error(m)}},[e,n]),[i,u]=o.useState(()=>a()||t),f=()=>{u(t),r(t)};return o.useEffect(()=>{r(i)},[i,r]),[i,u,f]}function jt(e=!1){const[t,n]=o.useState(e);return[t,()=>{n(i=>!i)},()=>{n(!1)}]}const Z=o.createContext({active:null,onChange:()=>{},buttonGroupClasses:""});function ne({active:e=null,onChange:t=()=>{},children:n}){return c.jsx(Z.Provider,{value:{active:e,onChange:t,buttonGroupClasses:"relative flex items-center"},children:n})}function Ct({className:e,...t}){const{active:n}=o.useContext(Z),r=o.useRef(null),a=Ae(),i=o.useCallback(()=>{const u=r.current,f=u==null?void 0:u.parentElement,l=f==null?void 0:f.querySelector("button[data-active='true']");if(!f||!l||!u)return;const b=(l==null?void 0:l.offsetLeft)??0,h=window.getComputedStyle(l).paddingInline,w=(l==null?void 0:l.getBoundingClientRect().width)??0,v=b,A=w;u.style.setProperty("left",`${v}px`),u.style.setProperty("width",`${A}px`),u.style.setProperty("padding",`0 ${h}`),l==null||l.scrollIntoView({inline:"center",block:"nearest",behavior:"smooth"})},[]);return o.useEffect(()=>{const f=()=>{a(()=>i(),100)};return window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f)}},[i,a]),o.useEffect(i,[i,n]),c.jsx("span",{ref:r,className:y.twMerge("absolute bottom-0 left-0 w-auto h-px transition-[width,left] overflow-hidden",e),...t,children:c.jsx("span",{className:"block size-full rounded-full bg-primary"})})}function kt({eventKey:e,className:t,children:n,onClick:r,...a}){const{active:i,onChange:u}=o.useContext(Z),f=e===i,m=l=>{!f&&u(e),r==null||r(l)};return c.jsx(_e,{as:"button",type:"button","data-active":f,onClick:m,color:f?"primary":null,variant:"text",className:ee("shadow-none border-none",t),...a,children:n})}function Rt({eventKey:e,children:t}){const{active:n}=o.useContext(Z);return n!==e?null:c.jsx(o.Fragment,{children:t})}ne.Indicator=Ct,ne.Button=kt,ne.Item=Rt;const Oe=o.createContext({});function St({as:e,variant:t,color:n,size:r,loading:a,orientation:i="horizontal",className:u,children:f,...m}){const l=e||"div",{buttonGroupClasses:b}=o.useContext(Z),h=o.useMemo(()=>({horizontal:"flex-row",vertical:"flex-col"})[i],[i]),w=o.useMemo(()=>({horizontal:"rounded-none first-of-type:rounded-s last-of-type:rounded-e",vertical:"rounded-none first-of-type:rounded-t last-of-type:rounded-b"})[i],[i]);return c.jsx(l,{className:y.twMerge("w-fit flex items-stretch justify-center",h,b,u),...m,children:c.jsx(Oe.Provider,{value:{variant:t,color:n,size:r,loading:a,buttonClasses:w},children:f})})}function O({as:e,className:t,children:n,...r}){const a=e||"div";return c.jsx(a,{className:y.twMerge("block w-full bg-white rounded shadow",t),...r,children:n})}function Nt({className:e,children:t,...n}){return c.jsx("div",{className:y.twMerge("w-full border-b border-[#e8eaee] p-4",e),...n,children:t})}function Pt({className:e,children:t,...n}){return c.jsx("div",{className:y.twMerge("w-full p-4",e),...n,children:t})}function At({className:e,children:t,...n}){return c.jsx("div",{className:y.twMerge("w-full border-t border-[#e8eaee] p-4",e),...n,children:t})}O.Header=Nt,O.Body=Pt,O.Footer=At;function re({children:e}){const t=o.useMemo(()=>{const n=ue(),r=document.createElement("div");return r.id=n,document.body.appendChild(r),r},[]);return Ue.createPortal(e,t)}const fe=o.createContext({open:!1,onClose:()=>{},duration:300,anchor:"start",transitionState:"unmounted"});function Q({as:e,open:t=!1,onClose:n=()=>{},duration:r=300,anchor:a="end",className:i="",children:u,...f}){const m=o.useRef(null),l=e||"div",b={entering:"active opacity-100 pointer-events-auto",entered:"active opacity-100 pointer-events-auto",exiting:"opacity-0 pointer-events-none",exited:"opacity-0 pointer-events-none",unmounted:""},h=o.useMemo(()=>({start:"flex-row-reverse",end:"flex-row",top:"flex-col-reverse",bottom:"flex-col"})[a],[a]);return c.jsx(re,{children:c.jsx(ae.Transition,{nodeRef:m,in:t,timeout:r,unmountOnExit:!0,children:w=>c.jsxs(l,{ref:m,style:{transitionDuration:`${r}ms`},className:y.twMerge("drawer fixed size-full inset-0 flex z-10 bg-black/20 backdrop-blur transition-opacity [--drawer-ratio:1] rtl:[--drawer-ratio:-1]",b[w],h,i),...f,children:[c.jsx("button",{type:"button",onClick:()=>n(),className:"h-full flex-1 opacity-0 cursor-default min-w-[5%]"}),c.jsx(fe.Provider,{value:{open:t,onClose:n,transitionState:w,duration:r,anchor:a},children:u})]})})})}function Ot({children:e,className:t="",...n}){const{anchor:r,duration:a,transitionState:i}=o.useContext(fe),u=o.useMemo(()=>({start:"w-[30rem] h-full max-w-[97.5%]",end:"w-[30rem] h-full max-w-[97.5%]",top:"w-full h-[30rem] max-h-[97.5%]",bottom:"w-full h-[30rem] max-h-[97.5%]"})[r],[r]),f=o.useMemo(()=>({start:"rounded-e",end:"rounded-s",top:"rounded-b",bottom:"rounded-t"})[r],[r]),m=o.useMemo(()=>({start:{entering:"translate-x-0",entered:"translate-x-0",exiting:"-translate-x-[calc(100%*var(--drawer-ratio))]",exited:"-translate-x-[calc(100%*var(--drawer-ratio))]",unmounted:""},end:{entering:"translate-x-0",entered:"translate-x-0",exiting:"translate-x-[calc(100%*var(--drawer-ratio))]",exited:"translate-x-[calc(100%*var(--drawer-ratio))]",unmounted:""},top:{entering:"translate-y-0",entered:"translate-y-0",exiting:"-translate-y-full",exited:"-translate-y-full",unmounted:""},bottom:{entering:"translate-y-0",entered:"translate-y-0",exiting:"translate-y-full",exited:"translate-y-full",unmounted:""}})[r],[r]);return c.jsx(O,{as:"div",style:{transitionDuration:`${a}ms`},className:y.twMerge("relative flex flex-col transition-[translate,width] rounded-none",u,m[i],f,t),...n,children:e})}function _t(e){return c.jsx(O.Header,{...e})}function Mt({className:e,...t}){return c.jsx(O.Body,{className:ee("flex-1 overflow-auto",e),...t})}function Dt(e){return c.jsx(O.Footer,{...e})}Q.Menu=Ot,Q.Header=_t,Q.Body=Mt,Q.Footer=Dt;const me=o.createContext({size:"md",open:!1,onClose:()=>{},transitionState:"unmounted",duration:300});function q({as:e,size:t="md",open:n=!1,onClose:r=()=>{},duration:a=300,className:i,children:u,...f}){const m=o.useRef(null),l=e||"div",b={entering:"active opacity-100 pointer-events-auto",entered:"active opacity-100 pointer-events-auto",exiting:"opacity-0 pointer-events-none",exited:"opacity-0 pointer-events-none",unmounted:""};return c.jsx(re,{children:c.jsx(ae.Transition,{nodeRef:m,in:n,timeout:a,unmountOnExit:!0,children:h=>c.jsxs(l,{ref:m,style:{transitionDuration:`${a}ms`},className:y.twMerge("modal fixed size-full inset-0 flex flex-col z-10 bg-black/20 transition-opacity backdrop-blur p-4",b[h],i),...f,children:[c.jsx("button",{type:"button",onClick:()=>r(),className:"absolute inset-0 cursor-default opacity-0"}),c.jsx(me.Provider,{value:{size:t,open:n,onClose:r,transitionState:h,duration:a},children:u})]})})})}function Lt({className:e,children:t,...n}){const{size:r,transitionState:a,duration:i}=o.useContext(me),u={entering:"scale-100",entered:"scale-100",exiting:"scale-75",exited:"scale-75",unmounted:""},f=o.useMemo(()=>r==="sm"?"min-[576px]:w-[300px]":r==="lg"?"min-[992px]:w-[800px]":"min-[576px]:w-[500px]",[r]);return c.jsx(O,{as:"div",style:{transitionDuration:`${i}ms`},className:y.twMerge("max-w-full max-h-full m-auto transition-transform",f,u[a],e),...n,children:t})}function zt(e){return c.jsx(O.Header,{...e})}function It(e){return c.jsx(O.Body,{...e})}function Ht(e){return c.jsx(O.Footer,{...e})}q.Dialog=Lt,q.Header=zt,q.Body=It,q.Footer=Ht;function _e({as:e,variant:t,color:n,size:r,loading:a,stopPropagation:i=!1,closeModal:u=!1,closeDrawer:f=!1,className:m,onClick:l,children:b,...h}){const w=o.useContext(Oe),v=o.useContext(me),A=o.useContext(fe),g=Pe(),p=e||"button",E=t??w.variant??"solid",T=o.useMemo(()=>n!==void 0?n:w.color!==void 0?w.color:"primary",[n,w.color]),N=r??w.size??"md",_=a??w.loading??!1,P=o.useMemo(()=>{var se;if(!T)return"border-transparent";const k={primary:{solid:"bg-primary text-white border-primary",outline:"bg-transparent text-primary border-primary",text:"bg-transparent text-primary border-transparent"},secondary:{solid:"bg-secondary text-white border-secondary",outline:"bg-transparent text-secondary border-secondary",text:"bg-transparent text-secondary border-transparent"},success:{solid:"bg-success text-white border-success",outline:"bg-transparent text-success border-success",text:"bg-transparent text-success border-transparent"},info:{solid:"bg-info text-white border-info",outline:"bg-transparent text-info border-info",text:"bg-transparent text-info border-transparent"},warning:{solid:"bg-warning text-white border-warning",outline:"bg-transparent text-warning border-warning",text:"bg-transparent text-warning border-transparent"},danger:{solid:"bg-danger text-white border-danger",outline:"bg-transparent text-danger border-danger",text:"bg-transparent text-danger border-transparent"},dark:{solid:"bg-dark text-white border-dark",outline:"bg-transparent text-dark border-dark",text:"bg-transparent text-dark border-transparent"},light:{solid:"bg-light text-dark border-light",outline:"bg-transparent text-dark border-light",text:"bg-transparent text-dark border-transparent"}};return((se=k==null?void 0:k[T])==null?void 0:se[E])??null},[T,E]),V=o.useMemo(()=>P==null?void 0:P.split(" ").find(k=>k.startsWith("text-")),[P]),H=o.useMemo(()=>{if(!N)return null;const k={sm:"text-base py-1 px-3.5",md:"text-base py-1.5 px-4",lg:"text-lg py-2 px-5"};return k==null?void 0:k[N]},[N]),W=k=>{g(k),u&&v.onClose(),f&&A.onClose(),i&&k.stopPropagation(),l==null||l(k)};return c.jsxs(p,{className:y.twMerge("relative inline-block no-underline whitespace-nowrap font-medium text-center rounded border border-[#e8eaee] shadow cursor-pointer hover:shadow-md transition-[box-shadow,opacity,color,background-color,border-color]",P,H,_?"disabled:opacity-100 disabled:cursor-wait disabled:text-transparent":"disabled:opacity-75 disabled:cursor-not-allowed active:shadow-lg",w.buttonClasses,m),onClick:W,disabled:h.disabled||_,...h,children:[b,_&&c.jsx("span",{className:"absolute inset-0 size-full flex items-center justify-center bg-transparent p-2",children:c.jsx("span",{className:ee("h-full aspect-square rounded-full border-4 border-current border-l-transparent animate-spin",V)})}),c.jsx("span",{className:"ripple-group absolute size-full inset-0 overflow-hidden pointer-events-none"})]})}const Ft=o.createContext({});function Bt({disabled:e=!1,onSubmit:t,onError:n,children:r,...a}){const i=o.useRef({}),u=(l,b)=>{i.current[l]=b},f=l=>{delete i.current[l]},m=l=>{var E;l.preventDefault();const h=[...l.currentTarget.querySelectorAll("div[id]")].map(T=>{const N=T.id||null;if(!N)return{element:T,isValid:!0};const _=i.current[N],P=_==null?void 0:_();return{element:T,isValid:P}});if(h.every(T=>!!T.isValid))return t==null?void 0:t(l);const v=(E=h.find(T=>!T.isValid))==null?void 0:E.element,A=v==null?void 0:v.querySelector("input"),g=v==null?void 0:v.querySelector("textarea"),p=A||g;p==null||p.select(),v==null||v.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),n==null||n(l)};return c.jsx("form",{...a,onSubmit:m,children:c.jsx(Ft.Provider,{value:{setFormControl:u,removeFormControl:f,formDisabled:e},children:r})})}const oe=o.createContext({open:!1,onClose:()=>{},transitionState:"unmounted",closeOnClick:!1});function Me({as:e,open:t,onClose:n,closeOnClick:r=!1,anchorEl:a=null,className:i,children:u,...f}){const m=e||"div",l=16,b=o.useRef(null),h=o.useRef({left:l,right:l,top:l}),w={entering:"scale-100 opacity-100",entered:"scale-100 opacity-100",exiting:"scale-90 opacity-0",exited:"scale-90 opacity-0",unmounted:""},v=o.useCallback(p=>{h.current=p},[]),A=o.useCallback(p=>{var E,T,N;(E=b.current)==null||E.style.setProperty("--left",`${p.left}px`),(T=b.current)==null||T.style.setProperty("--right",`${p.right}px`),(N=b.current)==null||N.style.setProperty("--top",`${p.top}px`)},[]),g=o.useCallback(()=>{var W,k;if(!t||!a)return;const p=a.getBoundingClientRect(),E=window.innerWidth,T=window.innerHeight,N=((W=b.current)==null?void 0:W.offsetWidth)||150,_=((k=b.current)==null?void 0:k.offsetHeight)||200;let P=p.left,V=p.right,H=p.bottom;P=Math.min(Math.max(P,l),E-N-l),V=Math.min(Math.max(E-p.right,l),E-N-l),H=Math.min(Math.max(H,l),T-_-l),v({left:P,right:V,top:H}),A({left:P,right:V,top:H})},[t,a,v,A]);return o.useEffect(()=>{g()},[g,u]),o.useEffect(()=>{const p=()=>{g()};return window.addEventListener("scroll",p),window.addEventListener("resize",p),()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",p)}},[g]),c.jsx(re,{children:c.jsx(ae.Transition,{nodeRef:b,in:t,timeout:300,unmountOnExit:!0,children:p=>c.jsx(oe.Provider,{value:{open:t,onClose:n,transitionState:p,closeOnClick:r},children:c.jsxs(Yt,{children:[c.jsx(Vt,{}),c.jsx(m,{ref:b,className:y.twMerge("w-fit min-w-[12.5rem] bg-white shadow rounded p-2 transition-[scale,opacity] absolute top-[var(--top)] left-[var(--left)] right-auto origin-top-left rtl:left-auto rtl:right-[var(--right)] rtl:origin-top-right",w[p],i),...f,children:u})]})})})})}function Yt({children:e}){const{transitionState:t}=o.useContext(oe),n={entering:"active pointer-events-auto",entered:"active pointer-events-auto",exiting:"pointer-events-none",exited:"pointer-events-none",unmounted:""};return c.jsx("div",{className:y.twMerge("menu fixed inset-0 size-full flex flex-col bg-transparent transition-opacity overflow-hidden z-10",n[t]),children:e})}function Vt(){const{onClose:e}=o.useContext(oe);return c.jsx("button",{type:"button",className:"w-full flex-1 opacity-0 cursor-default lg:absolute lg:size-full lg:inset-0",onClick:e})}function Wt({as:e,closeOnClick:t,type:n="button",className:r,children:a,onClick:i,...u}){const f=e||"div",{closeOnClick:m,onClose:l}=o.useContext(oe),b=t??m,h=w=>{b&&(l==null||l()),i==null||i(w)};return c.jsx(f,{type:n,className:y.twMerge("flex items-center px-3 py-2 w-full text-dark text-base font-normal rounded transition-colors hover:bg-dark hover:text-white",r),onClick:h,...u,children:a})}Me.Item=Wt;function Gt({color:e="primary",value:t=0,className:n,...r}){const a=o.useMemo(()=>{if(!e)return"border-transparent";const i={primary:"bg-primary/15 text-primary",secondary:"bg-secondary/15 text-secondary",success:"bg-success/15 text-success",info:"bg-info/15 text-info",warning:"bg-warning/15 text-warning",danger:"bg-danger/15 text-danger",dark:"bg-dark/15 text-dark",light:"bg-light/15 text-light"};return(i==null?void 0:i[e])??null},[e]);return c.jsx("div",{className:y.twMerge("block w-full h-2.5 rounded-full overflow-hidden",a,n),...r,children:c.jsx("span",{style:{width:`${t}%`},className:"block h-full max-w-full bg-current rounded-[inherit] transition-[width]"})})}function Ut({className:e,children:t,...n}){return c.jsx("div",{className:y.twMerge("size-10 rounded bg-gray-200 text-gray-200 animate-pulse",e),...n,children:t})}function Jt({as:e,variant:t="horizontal",wrap:n=!1,className:r,children:a,...i}){const u=e||"div",f=o.useMemo(()=>({horizontal:"flex-row *:min-w-0",vertical:"flex-col *:min-h-0"})[t],[t]);return c.jsx(u,{className:y.twMerge("w-full flex",f,n&&"flex-wrap",r),...i,children:a})}const De=o.createContext({striped:!1,bordered:!1,hover:!1});function Kt({className:e,children:t,...n}){return c.jsx("div",{className:y.twMerge("w-full overflow-auto",e),...n,children:t})}function Y({striped:e=!1,bordered:t=!1,hover:n=!1,className:r,children:a,...i}){return c.jsx("table",{className:y.twMerge("min-w-full border-collapse border-spacing-0",r),...i,children:c.jsx(De.Provider,{value:{bordered:t,hover:n,striped:e},children:a})})}function Xt({sticky:e=!1,className:t,children:n,...r}){return c.jsx("thead",{className:y.twMerge(e&&"sticky top-0 left-0 right-0 z-[2]",t),...r,children:n})}function Zt({className:e,children:t,...n}){return c.jsx("tbody",{className:y.twMerge("",e),...n,children:t})}function Qt({className:e,children:t,...n}){const{bordered:r,hover:a,striped:i}=o.useContext(De),u=!!r,f=r==="dashed",m=r==="solid";return c.jsx("tr",{className:y.twMerge("bg-white",u&&"border-b border-solid",f&&"border-dashed",m&&"border-solid",a&&"transition-colors hover:bg-gray-200",i&&"even:bg-gray-100",e),...n,children:t})}function qt({sticky:e=!1,className:t,children:n,...r}){return c.jsx("th",{className:y.twMerge("font-medium text-sm py-2 px-4 whitespace-nowrap text-center first:text-start last:text-end",e&&"bg-inherit sticky end-0 z-[1]",t),...r,children:n})}function $t({sticky:e=!1,className:t,children:n,...r}){return c.jsx("td",{className:y.twMerge("font-normal text-sm py-2 px-4 whitespace-nowrap text-center first:text-start last:text-end",e&&"bg-inherit sticky end-0 z-[1]",t),...r,children:n})}Y.Container=Kt,Y.Header=Xt,Y.Body=Zt,Y.Row=Qt,Y.HeaderCell=qt,Y.DataCell=$t;function en({as:e,variant:t="body-1",className:n,...r}){const a=o.useMemo(()=>e||{"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6","body-1":"p","body-2":"p"}[t]||"p",[e,t]),i=o.useMemo(()=>({"heading-1":"text-5xl font-semibold","heading-2":"text-4xl font-semibold","heading-3":"text-3xl font-semibold","heading-4":"text-2xl font-semibold","heading-5":"text-xl font-medium","heading-6":"text-lg font-medium","body-1":"text-base font-normal","body-2":"text-sm font-normal"})[t],[t]);return c.jsx(a,{className:y.twMerge("",i,n),...r})}function tn({children:e}){return c.jsx(o.Fragment,{children:e})}d.Accordion=U,d.AxiosProvider=Ze,d.Badge=bt,d.Box=gt,d.Button=_e,d.ButtonGroup=St,d.Card=O,d.Drawer=Q,d.Form=Bt,d.Menu=Me,d.Modal=q,d.Portal=re,d.Progress=Gt,d.Skeleton=Ut,d.Stack=Jt,d.Table=Y,d.Tabs=ne,d.ThemeProvider=tn,d.Typography=en,d.cn=ee,d.copy=nt,d.isEmpty=rt,d.isEmptyArray=Ne,d.isEmptyObject=Se,d.isEmptyString=Re,d.isEmptyValue=ke,d.isServer=ot,d.matrixArray=st,d.randomID=ue,d.replaceNonDigits=at,d.replacePersianNumbers=it,d.twoDigitNumber=ct,d.useAutoFill=ht,d.useAxios=tt,d.useCreateRipple=Pe,d.useDebounce=Ae,d.useDocumentVisible=xt,d.useIsOffline=yt,d.useKeyDown=wt,d.useMouse=vt,d.useOutsideClick=Et,d.usePersistedState=Tt,d.useToggle=jt,d.wait=lt,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reaxify",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.cjs.js",
|
|
7
|
-
"module": "dist/index.es.js",
|
|
8
6
|
"types": "dist/index.d.ts",
|
|
9
7
|
"files": [
|
|
10
8
|
"dist"
|
|
@@ -14,14 +12,9 @@
|
|
|
14
12
|
},
|
|
15
13
|
"exports": {
|
|
16
14
|
".": {
|
|
17
|
-
"import": "./dist/index.js",
|
|
18
|
-
"require": "./dist/index.
|
|
19
|
-
}
|
|
20
|
-
"./axios": "./dist/axios/index.js",
|
|
21
|
-
"./components": "./dist/components/index.js",
|
|
22
|
-
"./helpers": "./dist/helpers/index.js",
|
|
23
|
-
"./hooks": "./dist/hooks/index.js",
|
|
24
|
-
"./providers": "./dist/components/index.js"
|
|
15
|
+
"import": "./dist/index.es.js",
|
|
16
|
+
"require": "./dist/index.umd.js"
|
|
17
|
+
}
|
|
25
18
|
},
|
|
26
19
|
"scripts": {
|
|
27
20
|
"dev": "vite",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as Accordion } from '.';
|
|
3
|
-
declare const meta: Meta<typeof Accordion>;
|
|
4
|
-
export declare function Single(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function Multiple(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default meta;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as Badge } from '.';
|
|
3
|
-
declare const meta: Meta<typeof Badge>;
|
|
4
|
-
export declare function Colors(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function Variants(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function Sizes(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default meta;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as Button } from '.';
|
|
3
|
-
declare const meta: Meta<typeof Button>;
|
|
4
|
-
export declare function Colors(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function Variants(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function Sizes(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function Loading(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default meta;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as ButtonGroup } from '.';
|
|
3
|
-
declare const meta: Meta<typeof ButtonGroup>;
|
|
4
|
-
export declare function Colors(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function Variants(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function Sizes(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function Loading(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function Orientations(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default meta;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as Drawer } from '.';
|
|
3
|
-
declare const meta: Meta<typeof Drawer>;
|
|
4
|
-
export declare function Default(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function Anchor(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default meta;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as Menu } from '.';
|
|
3
|
-
declare const meta: Meta<typeof Menu>;
|
|
4
|
-
export declare function Dropdown(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function CloseOnClick(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function CloseOnClickOneItem(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default meta;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
import { default as Stack } from '.';
|
|
3
|
-
declare const meta: Meta<typeof Stack>;
|
|
4
|
-
export declare function Horizontal(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function Vertical(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function Wrap(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default meta;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export declare function ClassName(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function Copy(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function IsEmpty(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function MatrixArray(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function RandomID(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function ReplaceNonDigits(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function TwoDigitNumber(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare function Wait(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default meta;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
declare const meta: Meta;
|
|
3
|
-
export declare function CreateRipple(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function Debounce(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function KeyDown(): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function PersistedState(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function Mouse(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function OutsideClick(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default meta;
|