boottent-design 0.1.90 → 0.1.92

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,4 +1,4 @@
1
- "use strict";var so=Object.defineProperty;var no=(e,t,o)=>t in e?so(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var H=(e,t,o)=>no(e,typeof t!="symbol"?t+"":t,o);const n=require("react/jsx-runtime"),r=require("./Combination-nXAec6Ur.cjs"),U=require("react"),_e=require("react-dom");function Se(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=Se(U),ao=Se(_e);let G;const ro=new Uint8Array(16);function io(){if(!G&&(G=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!G))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return G(ro)}const w=[];for(let e=0;e<256;++e)w.push((e+256).toString(16).slice(1));function co(e,t=0){return w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]}const lo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Pe={randomUUID:lo};function uo(e,t,o){if(Pe.randomUUID&&!t&&!e)return Pe.randomUUID();e=e||{};const s=e.random||(e.rng||io)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,co(s)}class po{constructor(){H(this,"listeners",new Set);H(this,"portals",new Map);H(this,"queue",[]);H(this,"isProcessing",!1)}processQueue(){if(!(this.isProcessing||this.queue.length===0)){for(this.isProcessing=!0;this.queue.length>0;){const t=this.queue.shift();t&&t()}this.isProcessing=!1}}isPortalOpen(t){var o;return((o=this.portals.get(t))==null?void 0:o.isOpen)??!1}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}showPortal(t,o){const s=o.id||this.generateId(t);if(this.isPortalOpen(s))return console.warn(`Portal with id "${s}" is already open.`),s;const a={id:s,type:t,props:o};return this.portals.set(s,{...a,isOpen:!0}),this.queue.push(()=>{this.listeners.forEach(c=>{c(a,!0)})}),this.processQueue(),s}setPortalOpen(t,o){const s=this.portals.get(t);s&&(s.isOpen=o,this.portals.set(t,s),this.queue.push(()=>{this.listeners.forEach(a=>{a(s,o)})}),this.processQueue())}getIsPortalOpen(t){var o;return((o=this.portals.get(t))==null?void 0:o.isOpen)??!1}getOpenPortals(){const t=[];for(const[o,s]of this.portals.entries())s.isOpen&&t.push(o);return t}generateId(t){return`${t}_${uo()}`}}const fo=new po,mo=5,go=2e3;let ae=0;function Oe(){return ae=(ae+1)%Number.MAX_SAFE_INTEGER,ae.toString()}const re=new Map,Ae=e=>{if(re.has(e))return;const t=setTimeout(()=>{re.delete(e),W({type:"REMOVE_TOAST",toastId:e})},go);re.set(e,t)},xo=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,mo)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=t;return o?Ae(o):e.toasts.forEach(s=>{Ae(s.id||Oe())}),{...e,toasts:e.toasts.map(s=>s.id===o||o===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},B=[];let X={toasts:[]};function W(e){X=xo(X,e),B.forEach(t=>{t(X)})}function Ie({...e}){const t=Oe(),o=a=>W({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>W({type:"DISMISS_TOAST",toastId:t});return W({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||(s(),e.onClose&&e.onClose())}}}),{id:t,dismiss:s,update:o}}function vo(){const[e,t]=i.useState(X);return i.useEffect(()=>(B.push(t),()=>{const o=B.indexOf(t);o>-1&&B.splice(o,1)}),[e]),{...e,toast:Ie,dismiss:o=>W({type:"DISMISS_TOAST",toastId:o})}}var ue="Dialog",[Me,Fe]=r.createContextScope(ue),[yo,C]=Me(ue),$e=e=>{const{__scopeDialog:t,children:o,open:s,defaultOpen:a,onOpenChange:c,modal:d=!0}=e,u=i.useRef(null),m=i.useRef(null),[l=!1,g]=r.useControllableState({prop:s,defaultProp:a,onChange:c});return n.jsx(yo,{scope:t,triggerRef:u,contentRef:m,contentId:r.useId(),titleId:r.useId(),descriptionId:r.useId(),open:l,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),modal:d,children:o})};$e.displayName=ue;var ke="DialogTrigger",Le=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(ke,o),c=r.useComposedRefs(t,a.triggerRef);return n.jsx(r.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":me(a.open),...s,ref:c,onClick:r.composeEventHandlers(e.onClick,a.onOpenToggle)})});Le.displayName=ke;var pe="DialogPortal",[ho,Ve]=Me(pe,{forceMount:void 0}),He=e=>{const{__scopeDialog:t,forceMount:o,children:s,container:a}=e,c=C(pe,t);return n.jsx(ho,{scope:t,forceMount:o,children:i.Children.map(s,d=>n.jsx(r.Presence,{present:o||c.open,children:n.jsx(r.Portal,{asChild:!0,container:a,children:d})}))})};He.displayName=pe;var Q="DialogOverlay",We=i.forwardRef((e,t)=>{const o=Ve(Q,e.__scopeDialog),{forceMount:s=o.forceMount,...a}=e,c=C(Q,e.__scopeDialog);return c.modal?n.jsx(r.Presence,{present:s||c.open,children:n.jsx(wo,{...a,ref:t})}):null});We.displayName=Q;var wo=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(Q,o);return n.jsx(r.ReactRemoveScroll,{as:r.Slot,allowPinchZoom:!0,shards:[a.contentRef],children:n.jsx(r.Primitive.div,{"data-state":me(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),I="DialogContent",Ue=i.forwardRef((e,t)=>{const o=Ve(I,e.__scopeDialog),{forceMount:s=o.forceMount,...a}=e,c=C(I,e.__scopeDialog);return n.jsx(r.Presence,{present:s||c.open,children:c.modal?n.jsx(To,{...a,ref:t}):n.jsx(Eo,{...a,ref:t})})});Ue.displayName=I;var To=i.forwardRef((e,t)=>{const o=C(I,e.__scopeDialog),s=i.useRef(null),a=r.useComposedRefs(t,o.contentRef,s);return i.useEffect(()=>{const c=s.current;if(c)return r.hideOthers(c)},[]),n.jsx(Ke,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:r.composeEventHandlers(e.onCloseAutoFocus,c=>{var d;c.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:r.composeEventHandlers(e.onPointerDownOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0;(d.button===2||u)&&c.preventDefault()}),onFocusOutside:r.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault())})}),Eo=i.forwardRef((e,t)=>{const o=C(I,e.__scopeDialog),s=i.useRef(!1),a=i.useRef(!1);return n.jsx(Ke,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,u;(d=e.onCloseAutoFocus)==null||d.call(e,c),c.defaultPrevented||(s.current||(u=o.triggerRef.current)==null||u.focus(),c.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:c=>{var m,l;(m=e.onInteractOutside)==null||m.call(e,c),c.defaultPrevented||(s.current=!0,c.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=c.target;((l=o.triggerRef.current)==null?void 0:l.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&a.current&&c.preventDefault()}})}),Ke=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:c,...d}=e,u=C(I,o),m=i.useRef(null),l=r.useComposedRefs(t,m);return r.useFocusGuards(),n.jsxs(n.Fragment,{children:[n.jsx(r.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:c,children:n.jsx(r.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":me(u.open),...d,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(No,{titleId:u.titleId}),n.jsx(Ro,{contentRef:m,descriptionId:u.descriptionId})]})]})}),fe="DialogTitle",ze=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(fe,o);return n.jsx(r.Primitive.h2,{id:a.titleId,...s,ref:t})});ze.displayName=fe;var qe="DialogDescription",Ge=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(qe,o);return n.jsx(r.Primitive.p,{id:a.descriptionId,...s,ref:t})});Ge.displayName=qe;var Ye="DialogClose",Be=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(Ye,o);return n.jsx(r.Primitive.button,{type:"button",...s,ref:t,onClick:r.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});Be.displayName=Ye;function me(e){return e?"open":"closed"}var Xe="DialogTitleWarning",[Do,Qe]=r.createContext2(Xe,{contentName:I,titleName:fe,docsSlug:"dialog"}),No=({titleId:e})=>{const t=Qe(Xe),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1
+ "use strict";var so=Object.defineProperty;var no=(e,t,o)=>t in e?so(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var H=(e,t,o)=>no(e,typeof t!="symbol"?t+"":t,o);const n=require("react/jsx-runtime"),r=require("./Combination-DUvKCt2E.cjs"),U=require("react"),_e=require("react-dom");function Se(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const i=Se(U),ao=Se(_e);let G;const ro=new Uint8Array(16);function io(){if(!G&&(G=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!G))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return G(ro)}const w=[];for(let e=0;e<256;++e)w.push((e+256).toString(16).slice(1));function co(e,t=0){return w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]}const lo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Pe={randomUUID:lo};function uo(e,t,o){if(Pe.randomUUID&&!t&&!e)return Pe.randomUUID();e=e||{};const s=e.random||(e.rng||io)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,co(s)}class po{constructor(){H(this,"listeners",new Set);H(this,"portals",new Map);H(this,"queue",[]);H(this,"isProcessing",!1)}processQueue(){if(!(this.isProcessing||this.queue.length===0)){for(this.isProcessing=!0;this.queue.length>0;){const t=this.queue.shift();t&&t()}this.isProcessing=!1}}isPortalOpen(t){var o;return((o=this.portals.get(t))==null?void 0:o.isOpen)??!1}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}showPortal(t,o){const s=o.id||this.generateId(t);if(this.isPortalOpen(s))return console.warn(`Portal with id "${s}" is already open.`),s;const a={id:s,type:t,props:o};return this.portals.set(s,{...a,isOpen:!0}),this.queue.push(()=>{this.listeners.forEach(c=>{c(a,!0)})}),this.processQueue(),s}setPortalOpen(t,o){const s=this.portals.get(t);s&&(s.isOpen=o,this.portals.set(t,s),this.queue.push(()=>{this.listeners.forEach(a=>{a(s,o)})}),this.processQueue())}getIsPortalOpen(t){var o;return((o=this.portals.get(t))==null?void 0:o.isOpen)??!1}getOpenPortals(){const t=[];for(const[o,s]of this.portals.entries())s.isOpen&&t.push(o);return t}generateId(t){return`${t}_${uo()}`}}const fo=new po,mo=5,go=2e3;let ae=0;function Oe(){return ae=(ae+1)%Number.MAX_SAFE_INTEGER,ae.toString()}const re=new Map,Ae=e=>{if(re.has(e))return;const t=setTimeout(()=>{re.delete(e),W({type:"REMOVE_TOAST",toastId:e})},go);re.set(e,t)},xo=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,mo)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=t;return o?Ae(o):e.toasts.forEach(s=>{Ae(s.id||Oe())}),{...e,toasts:e.toasts.map(s=>s.id===o||o===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},B=[];let X={toasts:[]};function W(e){X=xo(X,e),B.forEach(t=>{t(X)})}function Ie({...e}){const t=Oe(),o=a=>W({type:"UPDATE_TOAST",toast:{...a,id:t}}),s=()=>W({type:"DISMISS_TOAST",toastId:t});return W({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||(s(),e.onClose&&e.onClose())}}}),{id:t,dismiss:s,update:o}}function vo(){const[e,t]=i.useState(X);return i.useEffect(()=>(B.push(t),()=>{const o=B.indexOf(t);o>-1&&B.splice(o,1)}),[e]),{...e,toast:Ie,dismiss:o=>W({type:"DISMISS_TOAST",toastId:o})}}var ue="Dialog",[Me,Fe]=r.createContextScope(ue),[yo,C]=Me(ue),$e=e=>{const{__scopeDialog:t,children:o,open:s,defaultOpen:a,onOpenChange:c,modal:d=!0}=e,u=i.useRef(null),m=i.useRef(null),[l=!1,g]=r.useControllableState({prop:s,defaultProp:a,onChange:c});return n.jsx(yo,{scope:t,triggerRef:u,contentRef:m,contentId:r.useId(),titleId:r.useId(),descriptionId:r.useId(),open:l,onOpenChange:g,onOpenToggle:i.useCallback(()=>g(v=>!v),[g]),modal:d,children:o})};$e.displayName=ue;var ke="DialogTrigger",Le=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(ke,o),c=r.useComposedRefs(t,a.triggerRef);return n.jsx(r.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":me(a.open),...s,ref:c,onClick:r.composeEventHandlers(e.onClick,a.onOpenToggle)})});Le.displayName=ke;var pe="DialogPortal",[ho,Ve]=Me(pe,{forceMount:void 0}),He=e=>{const{__scopeDialog:t,forceMount:o,children:s,container:a}=e,c=C(pe,t);return n.jsx(ho,{scope:t,forceMount:o,children:i.Children.map(s,d=>n.jsx(r.Presence,{present:o||c.open,children:n.jsx(r.Portal,{asChild:!0,container:a,children:d})}))})};He.displayName=pe;var Q="DialogOverlay",We=i.forwardRef((e,t)=>{const o=Ve(Q,e.__scopeDialog),{forceMount:s=o.forceMount,...a}=e,c=C(Q,e.__scopeDialog);return c.modal?n.jsx(r.Presence,{present:s||c.open,children:n.jsx(wo,{...a,ref:t})}):null});We.displayName=Q;var wo=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(Q,o);return n.jsx(r.ReactRemoveScroll,{as:r.Slot,allowPinchZoom:!0,shards:[a.contentRef],children:n.jsx(r.Primitive.div,{"data-state":me(a.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),I="DialogContent",Ue=i.forwardRef((e,t)=>{const o=Ve(I,e.__scopeDialog),{forceMount:s=o.forceMount,...a}=e,c=C(I,e.__scopeDialog);return n.jsx(r.Presence,{present:s||c.open,children:c.modal?n.jsx(To,{...a,ref:t}):n.jsx(Eo,{...a,ref:t})})});Ue.displayName=I;var To=i.forwardRef((e,t)=>{const o=C(I,e.__scopeDialog),s=i.useRef(null),a=r.useComposedRefs(t,o.contentRef,s);return i.useEffect(()=>{const c=s.current;if(c)return r.hideOthers(c)},[]),n.jsx(Ke,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:r.composeEventHandlers(e.onCloseAutoFocus,c=>{var d;c.preventDefault(),(d=o.triggerRef.current)==null||d.focus()}),onPointerDownOutside:r.composeEventHandlers(e.onPointerDownOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0;(d.button===2||u)&&c.preventDefault()}),onFocusOutside:r.composeEventHandlers(e.onFocusOutside,c=>c.preventDefault())})}),Eo=i.forwardRef((e,t)=>{const o=C(I,e.__scopeDialog),s=i.useRef(!1),a=i.useRef(!1);return n.jsx(Ke,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,u;(d=e.onCloseAutoFocus)==null||d.call(e,c),c.defaultPrevented||(s.current||(u=o.triggerRef.current)==null||u.focus(),c.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:c=>{var m,l;(m=e.onInteractOutside)==null||m.call(e,c),c.defaultPrevented||(s.current=!0,c.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=c.target;((l=o.triggerRef.current)==null?void 0:l.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&a.current&&c.preventDefault()}})}),Ke=i.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:c,...d}=e,u=C(I,o),m=i.useRef(null),l=r.useComposedRefs(t,m);return r.useFocusGuards(),n.jsxs(n.Fragment,{children:[n.jsx(r.FocusScope,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:c,children:n.jsx(r.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":me(u.open),...d,ref:l,onDismiss:()=>u.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(No,{titleId:u.titleId}),n.jsx(Ro,{contentRef:m,descriptionId:u.descriptionId})]})]})}),fe="DialogTitle",ze=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(fe,o);return n.jsx(r.Primitive.h2,{id:a.titleId,...s,ref:t})});ze.displayName=fe;var qe="DialogDescription",Ge=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(qe,o);return n.jsx(r.Primitive.p,{id:a.descriptionId,...s,ref:t})});Ge.displayName=qe;var Ye="DialogClose",Be=i.forwardRef((e,t)=>{const{__scopeDialog:o,...s}=e,a=C(Ye,o);return n.jsx(r.Primitive.button,{type:"button",...s,ref:t,onClick:r.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});Be.displayName=Ye;function me(e){return e?"open":"closed"}var Xe="DialogTitleWarning",[Do,Qe]=r.createContext2(Xe,{contentName:I,titleName:fe,docsSlug:"dialog"}),No=({titleId:e})=>{const t=Qe(Xe),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("./portal-container-Bvs2jEfn.cjs"),i=require("react"),f=()=>{const[r,l]=i.useState([]);i.useEffect(()=>{const e=t.portalManager.subscribe((s,u)=>{l(n=>{if(u){if(!n.find(o=>o.id===s.id))return[...n,{...s,isOpen:u}]}else return n.map(o=>o.id===s.id?{...o,isOpen:u}:o);return n})});return()=>{e()}},[]);const c=i.useCallback(e=>{t.portalManager.setPortalOpen(e,!1)},[]);i.useEffect(()=>{const e=[];return r.forEach(s=>{if(!s.isOpen){const u=setTimeout(()=>{l(n=>n.filter(o=>o.id!==s.id))},300);e.push(u)}}),()=>{e.forEach(s=>clearTimeout(s))}},[r]);const d=i.useCallback(e=>{const s=e.props;t.toast({title:s.title,description:s.description,action:s.action,closeButton:s.closeButton,variant:s.variant,position:s.position,size:s.size,className:s.className}),c(e.id)},[c]);return i.useEffect(()=>{r.forEach(e=>{e.type==="toast"&&e.isOpen&&d(e)})},[r,d]),a.jsxs(t.PortalContainer,{children:[a.jsx(t.Toaster,{}),r.map(e=>{var s;if(!e.isOpen)return null;switch(e.type){case"modal":return a.jsx(t.Modal,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),c(e.id)},description:(s=e.props.description)==null?void 0:s.toString()},e.id);case"alert":return a.jsx(t.Alert,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),c(e.id)}},e.id);case"dialog":return a.jsx(t.Dialog,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),c(e.id)}},e.id);case"toast":return null;default:return null}})]})};exports.PortalProvider=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("./portal-container-shITDvBg.cjs"),i=require("react"),f=()=>{const[r,l]=i.useState([]);i.useEffect(()=>{const e=t.portalManager.subscribe((s,u)=>{l(n=>{if(u){if(!n.find(o=>o.id===s.id))return[...n,{...s,isOpen:u}]}else return n.map(o=>o.id===s.id?{...o,isOpen:u}:o);return n})});return()=>{e()}},[]);const c=i.useCallback(e=>{t.portalManager.setPortalOpen(e,!1)},[]);i.useEffect(()=>{const e=[];return r.forEach(s=>{if(!s.isOpen){const u=setTimeout(()=>{l(n=>n.filter(o=>o.id!==s.id))},300);e.push(u)}}),()=>{e.forEach(s=>clearTimeout(s))}},[r]);const d=i.useCallback(e=>{const s=e.props;t.toast({title:s.title,description:s.description,action:s.action,closeButton:s.closeButton,variant:s.variant,position:s.position,size:s.size,className:s.className}),c(e.id)},[c]);return i.useEffect(()=>{r.forEach(e=>{e.type==="toast"&&e.isOpen&&d(e)})},[r,d]),a.jsxs(t.PortalContainer,{children:[a.jsx(t.Toaster,{}),r.map(e=>{var s;if(!e.isOpen)return null;switch(e.type){case"modal":return a.jsx(t.Modal,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),c(e.id)},description:(s=e.props.description)==null?void 0:s.toString()},e.id);case"alert":return a.jsx(t.Alert,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),c(e.id)}},e.id);case"dialog":return a.jsx(t.Dialog,{...e.props,onClose:()=>{e.props.onClose&&e.props.onClose(),c(e.id)}},e.id);case"toast":return null;default:return null}})]})};exports.PortalProvider=f;
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as a } from "react/jsx-runtime";
2
- import { p as l, t as m, P as C, T as h, D as P, A as b, M as T } from "./portal-container-5WySfffx.js";
2
+ import { p as l, t as m, P as C, T as h, D as P, A as b, M as T } from "./portal-container-BN_PRBT5.js";
3
3
  import { useState as g, useEffect as c, useCallback as f } from "react";
4
4
  const j = () => {
5
5
  const [i, u] = g([]);
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ @font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ 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);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,#00000080,#0000)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-fade.swiper-free-mode .swiper-slide{transition-timing-function:ease-out}.swiper-fade .swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}:root{--swiper-navigation-size: 44px}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size) / 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none!important}.swiper-button-prev svg,.swiper-button-next svg{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-prev svg,.swiper-rtl .swiper-button-next svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-lock{display:none}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-pagination-bullet{background-color:#fff;opacity:.3;width:12px;border-radius:2px;transition:all .3s ease}.swiper-pagination-bullet-active{opacity:.9;scale:120%}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BYvdZxyS.cjs"),t=require("./index-DCCz1A-0.cjs"),i={bold30:["30px",{lineHeight:"38px",fontWeight:"700"}],bold24:["24px",{lineHeight:"32px",fontWeight:"700"}],bold20:["20px",{lineHeight:"28px",fontWeight:"700"}],semibold18:["18px",{lineHeight:"26px",fontWeight:"600"}],semibold16:["16px",{lineHeight:"24px",fontWeight:"600"}],semibold15:["15px",{lineHeight:"23px",fontWeight:"600"}],semibold14:["14px",{lineHeight:"20px",fontWeight:"600"}],semibold13:["13px",{lineHeight:"19px",fontWeight:"600"}],semibold12:["12px",{lineHeight:"16px",fontWeight:"600"}],medium16:["16px",{lineHeight:"24px",fontWeight:"500"}],medium14:["14px",{lineHeight:"20px",fontWeight:"500"}],regular16:["16px",{lineHeight:"24px",fontWeight:"400"}],regular14:["14px",{lineHeight:"20px",fontWeight:"400"}],regular13:["13px",{lineHeight:"19px",fontWeight:"400"}],regular12:["12px",{lineHeight:"16px",fontWeight:"400"}]},o={bold:700,semibold:600,medium:500,regular:400};exports.adProducts=e.adProducts;exports.campCategoryColors=e.campCategoryColors;exports.defaultBannerColor=e.defaultBannerColor;exports.colors=t.colors;exports.fontWeight=o;exports.typography=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-z9hRvvSX.cjs"),t=require("./index-DKCqkplO.cjs"),i={bold30:["30px",{lineHeight:"38px",fontWeight:"700"}],bold24:["24px",{lineHeight:"32px",fontWeight:"700"}],bold20:["20px",{lineHeight:"28px",fontWeight:"700"}],semibold18:["18px",{lineHeight:"26px",fontWeight:"600"}],semibold16:["16px",{lineHeight:"24px",fontWeight:"600"}],semibold15:["15px",{lineHeight:"23px",fontWeight:"600"}],semibold14:["14px",{lineHeight:"20px",fontWeight:"600"}],semibold13:["13px",{lineHeight:"19px",fontWeight:"600"}],semibold12:["12px",{lineHeight:"16px",fontWeight:"600"}],medium16:["16px",{lineHeight:"24px",fontWeight:"500"}],medium14:["14px",{lineHeight:"20px",fontWeight:"500"}],regular16:["16px",{lineHeight:"24px",fontWeight:"400"}],regular14:["14px",{lineHeight:"20px",fontWeight:"400"}],regular13:["13px",{lineHeight:"19px",fontWeight:"400"}],regular12:["12px",{lineHeight:"16px",fontWeight:"400"}]},o={bold:700,semibold:600,medium:500,regular:400};exports.adProducts=e.adProducts;exports.campCategoryColors=e.campCategoryColors;exports.defaultBannerColor=e.defaultBannerColor;exports.colors=t.colors;exports.fontWeight=o;exports.typography=i;
package/dist/tokens.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as g, c as p, d as l } from "./index-BEhdkAFQ.js";
2
- import { c as x } from "./index-BidWqsww.js";
1
+ import { a as g, c as p, d as l } from "./index-CEwEyzHV.js";
2
+ import { c as x } from "./index-BFsbj9HY.js";
3
3
  const e = {
4
4
  bold30: ["30px", { lineHeight: "38px", fontWeight: "700" }],
5
5
  bold24: ["24px", { lineHeight: "32px", fontWeight: "700" }],
@@ -6,6 +6,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
6
6
  import { PropsWithChildren } from 'react';
7
7
  import * as React_2 from 'react';
8
8
  import { ReactNode } from 'react';
9
+ import { Swiper } from 'swiper/types';
9
10
  import * as ToastPrimitives from '@radix-ui/react-toast';
10
11
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
11
12
  import { UseControllerProps } from 'react-hook-form';
@@ -61,6 +62,27 @@ declare const buttonVariants: (props?: ({
61
62
  shape?: "square" | "rounded" | null | undefined;
62
63
  } & ClassProp) | undefined) => string;
63
64
 
65
+ export declare const Carousel: default_2.FC<CarouselProps>;
66
+
67
+ export declare type CarouselProps = {
68
+ slides: default_2.ReactNode[];
69
+ loop?: boolean;
70
+ autoplay?: boolean | {
71
+ delay: number;
72
+ };
73
+ spaceBetween?: number;
74
+ slidesPerView?: number;
75
+ pagination?: boolean | {
76
+ el: string;
77
+ };
78
+ navigation?: NavigationProps;
79
+ className?: string;
80
+ slideClassName?: string;
81
+ effect?: "slide" | "fade" | "cube" | "coverflow" | "flip" | "creative" | "cards";
82
+ style?: default_2.CSSProperties;
83
+ onChange?: (swiper: Swiper) => void;
84
+ };
85
+
64
86
  export declare const CheckboxBooleanFormField: default_2.FC<BooleanCheckboxFormFieldProps>;
65
87
 
66
88
  declare interface CheckboxFormFieldProps extends FormFieldProps {
@@ -158,6 +180,11 @@ declare interface ModalProps {
158
180
 
159
181
  export declare const Multiple: default_2.FC<ToggleButtonMultipleProps>;
160
182
 
183
+ declare type NavigationProps = boolean | {
184
+ nextEl: default_2.ReactNode;
185
+ prevEl: default_2.ReactNode;
186
+ };
187
+
161
188
  export declare const PortalContainer: ({ children }: Props_2) => default_2.ReactPortal | null;
162
189
 
163
190
  export declare type PremiumCardProps = {
@@ -242,7 +269,7 @@ export declare type TitleTagCardProps = {
242
269
  };
243
270
 
244
271
  declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
245
- variant?: "black" | "white" | null | undefined;
272
+ variant?: "white" | "black" | null | undefined;
246
273
  size?: "sm" | "md" | "lg" | "xl" | "full" | "fit" | null | undefined;
247
274
  } & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
248
275
 
@@ -339,101 +366,6 @@ export declare const usePortal: () => {
339
366
 
340
367
  export { }
341
368
 
342
- declare namespace _default {
343
- let content: string[];
344
- namespace theme {
345
- namespace container {
346
- let center: boolean;
347
- let padding: string;
348
- let screens: {
349
- "2xl": string;
350
- };
351
- }
352
- namespace fontFamily {
353
- let sans: string[];
354
- }
355
- namespace extend {
356
- export { typography as fontSize };
357
- export { fontWeight };
358
- export namespace colors {
359
- let border: string;
360
- let input: string;
361
- let ring: string;
362
- let background: string;
363
- let foreground: string;
364
- namespace primary {
365
- export let DEFAULT: string;
366
- let foreground_1: string;
367
- export { foreground_1 as foreground };
368
- }
369
- namespace secondary {
370
- let DEFAULT_1: string;
371
- export { DEFAULT_1 as DEFAULT };
372
- let foreground_2: string;
373
- export { foreground_2 as foreground };
374
- }
375
- namespace destructive {
376
- let DEFAULT_2: string;
377
- export { DEFAULT_2 as DEFAULT };
378
- let foreground_3: string;
379
- export { foreground_3 as foreground };
380
- }
381
- namespace muted {
382
- let DEFAULT_3: string;
383
- export { DEFAULT_3 as DEFAULT };
384
- let foreground_4: string;
385
- export { foreground_4 as foreground };
386
- let border_1: string;
387
- export { border_1 as border };
388
- }
389
- namespace accent {
390
- let DEFAULT_4: string;
391
- export { DEFAULT_4 as DEFAULT };
392
- let foreground_5: string;
393
- export { foreground_5 as foreground };
394
- }
395
- namespace popover {
396
- let DEFAULT_5: string;
397
- export { DEFAULT_5 as DEFAULT };
398
- let foreground_6: string;
399
- export { foreground_6 as foreground };
400
- }
401
- namespace card {
402
- let DEFAULT_6: string;
403
- export { DEFAULT_6 as DEFAULT };
404
- let foreground_7: string;
405
- export { foreground_7 as foreground };
406
- }
407
- }
408
- export namespace borderRadius {
409
- let lg: string;
410
- let md: string;
411
- let sm: string;
412
- }
413
- export let keyframes: {
414
- "accordion-down": {
415
- from: {
416
- height: string;
417
- };
418
- to: {
419
- height: string;
420
- };
421
- };
422
- "accordion-up": {
423
- from: {
424
- height: string;
425
- };
426
- to: {
427
- height: string;
428
- };
429
- };
430
- };
431
- }
432
- }
433
- let plugins: never[];
434
- let darkMode: string;
435
- }
436
-
437
369
  declare namespace _default {
438
370
  namespace plugins {
439
371
  let tailwindcss: {};
@@ -4,101 +4,6 @@ export declare const PortalProvider: () => JSX_2.Element;
4
4
 
5
5
  export { }
6
6
 
7
- declare namespace _default {
8
- let content: string[];
9
- namespace theme {
10
- namespace container {
11
- let center: boolean;
12
- let padding: string;
13
- let screens: {
14
- "2xl": string;
15
- };
16
- }
17
- namespace fontFamily {
18
- let sans: string[];
19
- }
20
- namespace extend {
21
- export { typography as fontSize };
22
- export { fontWeight };
23
- export namespace colors {
24
- let border: string;
25
- let input: string;
26
- let ring: string;
27
- let background: string;
28
- let foreground: string;
29
- namespace primary {
30
- export let DEFAULT: string;
31
- let foreground_1: string;
32
- export { foreground_1 as foreground };
33
- }
34
- namespace secondary {
35
- let DEFAULT_1: string;
36
- export { DEFAULT_1 as DEFAULT };
37
- let foreground_2: string;
38
- export { foreground_2 as foreground };
39
- }
40
- namespace destructive {
41
- let DEFAULT_2: string;
42
- export { DEFAULT_2 as DEFAULT };
43
- let foreground_3: string;
44
- export { foreground_3 as foreground };
45
- }
46
- namespace muted {
47
- let DEFAULT_3: string;
48
- export { DEFAULT_3 as DEFAULT };
49
- let foreground_4: string;
50
- export { foreground_4 as foreground };
51
- let border_1: string;
52
- export { border_1 as border };
53
- }
54
- namespace accent {
55
- let DEFAULT_4: string;
56
- export { DEFAULT_4 as DEFAULT };
57
- let foreground_5: string;
58
- export { foreground_5 as foreground };
59
- }
60
- namespace popover {
61
- let DEFAULT_5: string;
62
- export { DEFAULT_5 as DEFAULT };
63
- let foreground_6: string;
64
- export { foreground_6 as foreground };
65
- }
66
- namespace card {
67
- let DEFAULT_6: string;
68
- export { DEFAULT_6 as DEFAULT };
69
- let foreground_7: string;
70
- export { foreground_7 as foreground };
71
- }
72
- }
73
- export namespace borderRadius {
74
- let lg: string;
75
- let md: string;
76
- let sm: string;
77
- }
78
- export let keyframes: {
79
- "accordion-down": {
80
- from: {
81
- height: string;
82
- };
83
- to: {
84
- height: string;
85
- };
86
- };
87
- "accordion-up": {
88
- from: {
89
- height: string;
90
- };
91
- to: {
92
- height: string;
93
- };
94
- };
95
- };
96
- }
97
- }
98
- let plugins: never[];
99
- let darkMode: string;
100
- }
101
-
102
7
  declare namespace _default {
103
8
  namespace plugins {
104
9
  let tailwindcss: {};
@@ -21,7 +21,77 @@ declare type CampCategoryType = {
21
21
  };
22
22
 
23
23
  export declare const colors: {
24
- [key: string]: any;
24
+ black: string;
25
+ white: string;
26
+ grey: {
27
+ 50: string;
28
+ 100: string;
29
+ 200: string;
30
+ 300: string;
31
+ 400: string;
32
+ 500: string;
33
+ 600: string;
34
+ 700: string;
35
+ 800: string;
36
+ 900: string;
37
+ 950: string;
38
+ };
39
+ main: {
40
+ 50: string;
41
+ 100: string;
42
+ 200: string;
43
+ 300: string;
44
+ 400: string;
45
+ 500: string;
46
+ 600: string;
47
+ 700: string;
48
+ 800: string;
49
+ 900: string;
50
+ 950: string;
51
+ };
52
+ red: {
53
+ 50: string;
54
+ 300: string;
55
+ 400: string;
56
+ 500: string;
57
+ };
58
+ pink: {
59
+ 50: string;
60
+ 500: string;
61
+ };
62
+ yellow: {
63
+ 100: string;
64
+ 300: string;
65
+ 400: string;
66
+ };
67
+ orange: {
68
+ 50: string;
69
+ 500: string;
70
+ };
71
+ brown: {
72
+ 50: string;
73
+ 500: string;
74
+ };
75
+ lime: {
76
+ 50: string;
77
+ 500: string;
78
+ };
79
+ green: {
80
+ 50: string;
81
+ 500: string;
82
+ 600: string;
83
+ };
84
+ teal: {
85
+ 50: string;
86
+ 500: string;
87
+ };
88
+ blue: {
89
+ 50: string;
90
+ 100: string;
91
+ 400: string;
92
+ 500: string;
93
+ 600: string;
94
+ };
25
95
  };
26
96
 
27
97
  export declare const defaultBannerColor: {
@@ -51,101 +121,6 @@ export declare const typography: FontSize;
51
121
 
52
122
  export { }
53
123
 
54
- declare namespace _default {
55
- let content: string[];
56
- namespace theme {
57
- namespace container {
58
- let center: boolean;
59
- let padding: string;
60
- let screens: {
61
- "2xl": string;
62
- };
63
- }
64
- namespace fontFamily {
65
- let sans: string[];
66
- }
67
- namespace extend {
68
- export { typography as fontSize };
69
- export { fontWeight };
70
- export namespace colors {
71
- let border: string;
72
- let input: string;
73
- let ring: string;
74
- let background: string;
75
- let foreground: string;
76
- namespace primary {
77
- export let DEFAULT: string;
78
- let foreground_1: string;
79
- export { foreground_1 as foreground };
80
- }
81
- namespace secondary {
82
- let DEFAULT_1: string;
83
- export { DEFAULT_1 as DEFAULT };
84
- let foreground_2: string;
85
- export { foreground_2 as foreground };
86
- }
87
- namespace destructive {
88
- let DEFAULT_2: string;
89
- export { DEFAULT_2 as DEFAULT };
90
- let foreground_3: string;
91
- export { foreground_3 as foreground };
92
- }
93
- namespace muted {
94
- let DEFAULT_3: string;
95
- export { DEFAULT_3 as DEFAULT };
96
- let foreground_4: string;
97
- export { foreground_4 as foreground };
98
- let border_1: string;
99
- export { border_1 as border };
100
- }
101
- namespace accent {
102
- let DEFAULT_4: string;
103
- export { DEFAULT_4 as DEFAULT };
104
- let foreground_5: string;
105
- export { foreground_5 as foreground };
106
- }
107
- namespace popover {
108
- let DEFAULT_5: string;
109
- export { DEFAULT_5 as DEFAULT };
110
- let foreground_6: string;
111
- export { foreground_6 as foreground };
112
- }
113
- namespace card {
114
- let DEFAULT_6: string;
115
- export { DEFAULT_6 as DEFAULT };
116
- let foreground_7: string;
117
- export { foreground_7 as foreground };
118
- }
119
- }
120
- export namespace borderRadius {
121
- let lg: string;
122
- let md: string;
123
- let sm: string;
124
- }
125
- export let keyframes: {
126
- "accordion-down": {
127
- from: {
128
- height: string;
129
- };
130
- to: {
131
- height: string;
132
- };
133
- };
134
- "accordion-up": {
135
- from: {
136
- height: string;
137
- };
138
- to: {
139
- height: string;
140
- };
141
- };
142
- };
143
- }
144
- }
145
- let plugins: never[];
146
- let darkMode: string;
147
- }
148
-
149
124
  declare namespace _default {
150
125
  namespace plugins {
151
126
  let tailwindcss: {};
@@ -167,7 +167,7 @@ export declare type SvgIconType = {
167
167
  };
168
168
 
169
169
  declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
170
- variant?: "black" | "white" | null | undefined;
170
+ variant?: "white" | "black" | null | undefined;
171
171
  size?: "sm" | "md" | "lg" | "xl" | "full" | "fit" | null | undefined;
172
172
  } & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
173
173
 
@@ -231,101 +231,6 @@ declare type TooltipPosition = "top-left" | "top-center" | "top-right" | "bottom
231
231
 
232
232
  export { }
233
233
 
234
- declare namespace _default {
235
- let content: string[];
236
- namespace theme {
237
- namespace container {
238
- let center: boolean;
239
- let padding: string;
240
- let screens: {
241
- "2xl": string;
242
- };
243
- }
244
- namespace fontFamily {
245
- let sans: string[];
246
- }
247
- namespace extend {
248
- export { typography as fontSize };
249
- export { fontWeight };
250
- export namespace colors {
251
- let border: string;
252
- let input: string;
253
- let ring: string;
254
- let background: string;
255
- let foreground: string;
256
- namespace primary {
257
- export let DEFAULT: string;
258
- let foreground_1: string;
259
- export { foreground_1 as foreground };
260
- }
261
- namespace secondary {
262
- let DEFAULT_1: string;
263
- export { DEFAULT_1 as DEFAULT };
264
- let foreground_2: string;
265
- export { foreground_2 as foreground };
266
- }
267
- namespace destructive {
268
- let DEFAULT_2: string;
269
- export { DEFAULT_2 as DEFAULT };
270
- let foreground_3: string;
271
- export { foreground_3 as foreground };
272
- }
273
- namespace muted {
274
- let DEFAULT_3: string;
275
- export { DEFAULT_3 as DEFAULT };
276
- let foreground_4: string;
277
- export { foreground_4 as foreground };
278
- let border_1: string;
279
- export { border_1 as border };
280
- }
281
- namespace accent {
282
- let DEFAULT_4: string;
283
- export { DEFAULT_4 as DEFAULT };
284
- let foreground_5: string;
285
- export { foreground_5 as foreground };
286
- }
287
- namespace popover {
288
- let DEFAULT_5: string;
289
- export { DEFAULT_5 as DEFAULT };
290
- let foreground_6: string;
291
- export { foreground_6 as foreground };
292
- }
293
- namespace card {
294
- let DEFAULT_6: string;
295
- export { DEFAULT_6 as DEFAULT };
296
- let foreground_7: string;
297
- export { foreground_7 as foreground };
298
- }
299
- }
300
- export namespace borderRadius {
301
- let lg: string;
302
- let md: string;
303
- let sm: string;
304
- }
305
- export let keyframes: {
306
- "accordion-down": {
307
- from: {
308
- height: string;
309
- };
310
- to: {
311
- height: string;
312
- };
313
- };
314
- "accordion-up": {
315
- from: {
316
- height: string;
317
- };
318
- to: {
319
- height: string;
320
- };
321
- };
322
- };
323
- }
324
- }
325
- let plugins: never[];
326
- let darkMode: string;
327
- }
328
-
329
234
  declare namespace _default {
330
235
  namespace plugins {
331
236
  let tailwindcss: {};