@youversion/design-system-components 0.0.8 → 0.0.9

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.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(x,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("clsx"),require("react")):typeof define=="function"&&define.amd?define(["exports","clsx","react"],v):(x=typeof globalThis<"u"?globalThis:x||self,v(x["design-system-components"]={},x.clsx,x.React))})(this,function(x,v,g){"use strict";const oe=t=>{if(t){if(typeof t!="string"&&t)return v(t.lightMode,t.darkMode);if(typeof t=="string")return t}},ke=t=>{if(t){if(typeof t!="string"&&t)return v(t.block,t.blockEnd,t.blockStart,t.inline,t.inlineEnd,t.inlineStart);if(typeof t=="string")return t}},gt=({background:t,borderColor:o,borderRadius:i,borderWidth:n,className:l,component:c="div",color:d,elevation:f=0,height:p,margin:E,padding:u,width:k,...O},F)=>{const C={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},K=oe(d),D=oe(t),j=oe(o),S=ke(u),z=ke(E),V=v(i,n,C[f],z,S,K,D,j,k,p,l);return g.createElement(c,{className:V,...O,ref:F})},ie=g.forwardRef(gt);ie.displayName="Box";var M={},bt={get exports(){return M},set exports(t){M=t}},Y={};/**
1
+ (function(x,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("clsx"),require("react")):typeof define=="function"&&define.amd?define(["exports","clsx","react"],v):(x=typeof globalThis<"u"?globalThis:x||self,v(x["design-system-components"]={},x.clsx,x.React))})(this,function(x,v,b){"use strict";function ht(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const oe=ht(b),ie=t=>{if(t){if(typeof t!="string"&&t)return v(t.lightMode,t.darkMode);if(typeof t=="string")return t}},we=t=>{if(t){if(typeof t!="string"&&t)return v(t.block,t.blockEnd,t.blockStart,t.inline,t.inlineEnd,t.inlineStart);if(typeof t=="string")return t}},yt=({background:t,borderColor:o,borderRadius:a,borderWidth:n,className:l,component:s="div",color:d,elevation:f=0,height:p,margin:w,padding:c,width:y,...R},F)=>{const C={0:"",1:"shadow-light-1 dark:shadow-dark-1",2:"shadow-light-2 dark:shadow-dark-2",4:"shadow-light-4 dark:shadow-dark-4",8:"shadow-light-8 dark:shadow-dark-8",12:"shadow-light-12 dark:shadow-dark-12"},z=ie(d),D=ie(t),j=ie(o),S=we(c),K=we(w),V=v(a,n,C[f],K,S,z,D,j,y,p,l);return b.createElement(s,{className:V,...R,ref:F})},le=b.forwardRef(yt);le.displayName="Box";var M={},xt={get exports(){return M},set exports(t){M=t}},Y={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ee;function yt(){if(Ee)return Y;Ee=1;var t=g,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(f,p,E){var u,k={},O=null,F=null;E!==void 0&&(O=""+E),p.key!==void 0&&(O=""+p.key),p.ref!==void 0&&(F=p.ref);for(u in p)n.call(p,u)&&!c.hasOwnProperty(u)&&(k[u]=p[u]);if(f&&f.defaultProps)for(u in p=f.defaultProps,p)k[u]===void 0&&(k[u]=p[u]);return{$$typeof:o,type:f,key:O,ref:F,props:k,_owner:l.current}}return Y.Fragment=i,Y.jsx=d,Y.jsxs=d,Y}var U={};/**
9
+ */var Ee;function kt(){if(Ee)return Y;Ee=1;var t=b,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function d(f,p,w){var c,y={},R=null,F=null;w!==void 0&&(R=""+w),p.key!==void 0&&(R=""+p.key),p.ref!==void 0&&(F=p.ref);for(c in p)n.call(p,c)&&!s.hasOwnProperty(c)&&(y[c]=p[c]);if(f&&f.defaultProps)for(c in p=f.defaultProps,p)y[c]===void 0&&(y[c]=p[c]);return{$$typeof:o,type:f,key:R,ref:F,props:y,_owner:l.current}}return Y.Fragment=a,Y.jsx=d,Y.jsxs=d,Y}var U={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var we;function ht(){return we||(we=1,process.env.NODE_ENV!=="production"&&function(){var t=g,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),C=Symbol.iterator,K="@@iterator";function D(e){if(e===null||typeof e!="object")return null;var r=C&&e[C]||e[K];return typeof r=="function"?r:null}var j=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];z("error",e,a)}}function z(e,r,a){{var s=j.ReactDebugCurrentFrame,h=s.getStackAddendum();h!==""&&(r+="%s",a=a.concat([h]));var w=a.map(function(y){return String(y)});w.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,w)}}var V=!1,fe=!1,W=!1,Q=!1,Jt=!1,Ke;Ke=Symbol.for("react.module.reference");function Gt(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===c||Jt||e===l||e===E||e===u||Q||e===F||V||fe||W||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===k||e.$$typeof===d||e.$$typeof===f||e.$$typeof===p||e.$$typeof===Ke||e.getModuleId!==void 0))}function Ht(e,r,a){var s=e.displayName;if(s)return s;var h=r.displayName||r.name||"";return h!==""?a+"("+h+")":a}function ze(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case i:return"Portal";case c:return"Profiler";case l:return"StrictMode";case E:return"Suspense";case u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var r=e;return ze(r)+".Consumer";case d:var a=e;return ze(a._context)+".Provider";case p:return Ht(e,e.render,"ForwardRef");case k:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case O:{var h=e,w=h._payload,y=h._init;try{return B(y(w))}catch{return null}}}return null}var I=Object.assign,J=0,Je,Ge,He,Xe,Ze,Qe,et;function tt(){}tt.__reactDisabledLog=!0;function Xt(){{if(J===0){Je=console.log,Ge=console.info,He=console.warn,Xe=console.error,Ze=console.group,Qe=console.groupCollapsed,et=console.groupEnd;var e={configurable:!0,enumerable:!0,value:tt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function Zt(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:Je}),info:I({},e,{value:Ge}),warn:I({},e,{value:He}),error:I({},e,{value:Xe}),group:I({},e,{value:Ze}),groupCollapsed:I({},e,{value:Qe}),groupEnd:I({},e,{value:et})})}J<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=j.ReactCurrentDispatcher,me;function ee(e,r,a){{if(me===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);me=s&&s[1]||""}return`
18
- `+me+e}}var ve=!1,te;{var Qt=typeof WeakMap=="function"?WeakMap:Map;te=new Qt}function rt(e,r){if(!e||ve)return"";{var a=te.get(e);if(a!==void 0)return a}var s;ve=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=pe.current,pe.current=null,Xt();try{if(r){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(L){s=L}Reflect.construct(e,[],y)}else{try{y.call()}catch(L){s=L}e.call(y.prototype)}}else{try{throw Error()}catch(L){s=L}e()}}catch(L){if(L&&s&&typeof L.stack=="string"){for(var m=L.stack.split(`
19
- `),R=s.stack.split(`
20
- `),_=m.length-1,T=R.length-1;_>=1&&T>=0&&m[_]!==R[T];)T--;for(;_>=1&&T>=0;_--,T--)if(m[_]!==R[T]){if(_!==1||T!==1)do if(_--,T--,T<0||m[_]!==R[T]){var P=`
21
- `+m[_].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,P),P}while(_>=1&&T>=0);break}}}finally{ve=!1,pe.current=w,Zt(),Error.prepareStackTrace=h}var $=e?e.displayName||e.name:"",vt=$?ee($):"";return typeof e=="function"&&te.set(e,vt),vt}function er(e,r,a){return rt(e,!1)}function tr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,a){if(e==null)return"";if(typeof e=="function")return rt(e,tr(e));if(typeof e=="string")return ee(e);switch(e){case E:return ee("Suspense");case u:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return er(e.render);case k:return re(e.type,r,a);case O:{var s=e,h=s._payload,w=s._init;try{return re(w(h),r,a)}catch{}}}return""}var ne=Object.prototype.hasOwnProperty,nt={},at=j.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,a=re(e.type,e._source,r?r.type:null);at.setExtraStackFrame(a)}else at.setExtraStackFrame(null)}function rr(e,r,a,s,h){{var w=Function.call.bind(ne);for(var y in e)if(w(e,y)){var m=void 0;try{if(typeof e[y]!="function"){var R=Error((s||"React class")+": "+a+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}m=e[y](r,y,s,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){m=_}m&&!(m instanceof Error)&&(ae(h),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",a,y,typeof m),ae(null)),m instanceof Error&&!(m.message in nt)&&(nt[m.message]=!0,ae(h),S("Failed %s type: %s",a,m.message),ae(null))}}}var nr=Array.isArray;function ge(e){return nr(e)}function ar(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function or(e){try{return ot(e),!1}catch{return!0}}function ot(e){return""+e}function it(e){if(or(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ar(e)),ot(e)}var G=j.ReactCurrentOwner,ir={key:!0,ref:!0,__self:!0,__source:!0},lt,st,be;be={};function lr(e){if(ne.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function sr(e){if(ne.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ur(e,r){if(typeof e.ref=="string"&&G.current&&r&&G.current.stateNode!==r){var a=B(G.current.type);be[a]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(G.current.type),e.ref),be[a]=!0)}}function dr(e,r){{var a=function(){lt||(lt=!0,S("%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://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function cr(e,r){{var a=function(){st||(st=!0,S("%s: `ref` 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://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var fr=function(e,r,a,s,h,w,y){var m={$$typeof:o,type:e,key:r,ref:a,props:y,_owner:w};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function pr(e,r,a,s,h){{var w,y={},m=null,R=null;a!==void 0&&(it(a),m=""+a),sr(r)&&(it(r.key),m=""+r.key),lr(r)&&(R=r.ref,ur(r,h));for(w in r)ne.call(r,w)&&!ir.hasOwnProperty(w)&&(y[w]=r[w]);if(e&&e.defaultProps){var _=e.defaultProps;for(w in _)y[w]===void 0&&(y[w]=_[w])}if(m||R){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&dr(y,T),R&&cr(y,T)}return fr(e,m,R,h,s,G.current,y)}}var ye=j.ReactCurrentOwner,ut=j.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,a=re(e.type,e._source,r?r.type:null);ut.setExtraStackFrame(a)}else ut.setExtraStackFrame(null)}var he;he=!1;function xe(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function dt(){{if(ye.current){var e=B(ye.current.type);if(e)return`
17
+ */var _e;function wt(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&function(){var t=b,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),C=Symbol.iterator,z="@@iterator";function D(e){if(e===null||typeof e!="object")return null;var r=C&&e[C]||e[z];return typeof r=="function"?r:null}var j=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];K("error",e,i)}}function K(e,r,i){{var u=j.ReactDebugCurrentFrame,k=u.getStackAddendum();k!==""&&(r+="%s",i=i.concat([k]));var E=i.map(function(h){return String(h)});E.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,E)}}var V=!1,pe=!1,W=!1,Q=!1,Zt=!1,Je;Je=Symbol.for("react.module.reference");function Qt(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===s||Zt||e===l||e===w||e===c||Q||e===F||V||pe||W||typeof e=="object"&&e!==null&&(e.$$typeof===R||e.$$typeof===y||e.$$typeof===d||e.$$typeof===f||e.$$typeof===p||e.$$typeof===Je||e.getModuleId!==void 0))}function er(e,r,i){var u=e.displayName;if(u)return u;var k=r.displayName||r.name||"";return k!==""?i+"("+k+")":i}function Ge(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case a:return"Portal";case s:return"Profiler";case l:return"StrictMode";case w:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var r=e;return Ge(r)+".Consumer";case d:var i=e;return Ge(i._context)+".Provider";case p:return er(e,e.render,"ForwardRef");case y:var u=e.displayName||null;return u!==null?u:B(e.type)||"Memo";case R:{var k=e,E=k._payload,h=k._init;try{return B(h(E))}catch{return null}}}return null}var I=Object.assign,J=0,He,Xe,Ze,Qe,et,tt,rt;function nt(){}nt.__reactDisabledLog=!0;function tr(){{if(J===0){He=console.log,Xe=console.info,Ze=console.warn,Qe=console.error,et=console.group,tt=console.groupCollapsed,rt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:nt,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function rr(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:He}),info:I({},e,{value:Xe}),warn:I({},e,{value:Ze}),error:I({},e,{value:Qe}),group:I({},e,{value:et}),groupCollapsed:I({},e,{value:tt}),groupEnd:I({},e,{value:rt})})}J<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=j.ReactCurrentDispatcher,ge;function ee(e,r,i){{if(ge===void 0)try{throw Error()}catch(k){var u=k.stack.trim().match(/\n( *(at )?)/);ge=u&&u[1]||""}return`
18
+ `+ge+e}}var ve=!1,te;{var nr=typeof WeakMap=="function"?WeakMap:Map;te=new nr}function at(e,r){if(!e||ve)return"";{var i=te.get(e);if(i!==void 0)return i}var u;ve=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var E;E=me.current,me.current=null,tr();try{if(r){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(L){u=L}Reflect.construct(e,[],h)}else{try{h.call()}catch(L){u=L}e.call(h.prototype)}}else{try{throw Error()}catch(L){u=L}e()}}catch(L){if(L&&u&&typeof L.stack=="string"){for(var g=L.stack.split(`
19
+ `),O=u.stack.split(`
20
+ `),_=g.length-1,T=O.length-1;_>=1&&T>=0&&g[_]!==O[T];)T--;for(;_>=1&&T>=0;_--,T--)if(g[_]!==O[T]){if(_!==1||T!==1)do if(_--,T--,T<0||g[_]!==O[T]){var N=`
21
+ `+g[_].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,N),N}while(_>=1&&T>=0);break}}}finally{ve=!1,me.current=E,rr(),Error.prepareStackTrace=k}var $=e?e.displayName||e.name:"",bt=$?ee($):"";return typeof e=="function"&&te.set(e,bt),bt}function ar(e,r,i){return at(e,!1)}function or(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,i){if(e==null)return"";if(typeof e=="function")return at(e,or(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case c:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ar(e.render);case y:return re(e.type,r,i);case R:{var u=e,k=u._payload,E=u._init;try{return re(E(k),r,i)}catch{}}}return""}var ne=Object.prototype.hasOwnProperty,ot={},it=j.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,i=re(e.type,e._source,r?r.type:null);it.setExtraStackFrame(i)}else it.setExtraStackFrame(null)}function ir(e,r,i,u,k){{var E=Function.call.bind(ne);for(var h in e)if(E(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+i+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](r,h,u,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){g=_}g&&!(g instanceof Error)&&(ae(k),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",i,h,typeof g),ae(null)),g instanceof Error&&!(g.message in ot)&&(ot[g.message]=!0,ae(k),S("Failed %s type: %s",i,g.message),ae(null))}}}var lr=Array.isArray;function be(e){return lr(e)}function sr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function ur(e){try{return lt(e),!1}catch{return!0}}function lt(e){return""+e}function st(e){if(ur(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",sr(e)),lt(e)}var G=j.ReactCurrentOwner,dr={key:!0,ref:!0,__self:!0,__source:!0},ut,dt,he;he={};function cr(e){if(ne.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function fr(e){if(ne.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function pr(e,r){if(typeof e.ref=="string"&&G.current&&r&&G.current.stateNode!==r){var i=B(G.current.type);he[i]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(G.current.type),e.ref),he[i]=!0)}}function mr(e,r){{var i=function(){ut||(ut=!0,S("%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://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function gr(e,r){{var i=function(){dt||(dt=!0,S("%s: `ref` 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://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var vr=function(e,r,i,u,k,E,h){var g={$$typeof:o,type:e,key:r,ref:i,props:h,_owner:E};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function br(e,r,i,u,k){{var E,h={},g=null,O=null;i!==void 0&&(st(i),g=""+i),fr(r)&&(st(r.key),g=""+r.key),cr(r)&&(O=r.ref,pr(r,k));for(E in r)ne.call(r,E)&&!dr.hasOwnProperty(E)&&(h[E]=r[E]);if(e&&e.defaultProps){var _=e.defaultProps;for(E in _)h[E]===void 0&&(h[E]=_[E])}if(g||O){var T=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&mr(h,T),O&&gr(h,T)}return vr(e,g,O,k,u,G.current,h)}}var ye=j.ReactCurrentOwner,ct=j.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,i=re(e.type,e._source,r?r.type:null);ct.setExtraStackFrame(i)}else ct.setExtraStackFrame(null)}var xe;xe=!1;function ke(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function ft(){{if(ye.current){var e=B(ye.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function mr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function hr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+a+"."}return""}}var ct={};function vr(e){{var r=dt();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
25
+ Check your code at `+r+":"+i+"."}return""}}var pt={};function yr(e){{var r=ft();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`
26
26
 
27
- Check the top-level render call using <`+a+">.")}return r}}function ft(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=vr(r);if(ct[a])return;ct[a]=!0;var s="";e&&e._owner&&e._owner!==ye.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),A(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,s),A(null)}}function pt(e,r){{if(typeof e!="object")return;if(ge(e))for(var a=0;a<e.length;a++){var s=e[a];xe(s)&&ft(s,r)}else if(xe(e))e._store&&(e._store.validated=!0);else if(e){var h=D(e);if(typeof h=="function"&&h!==e.entries)for(var w=h.call(e),y;!(y=w.next()).done;)xe(y.value)&&ft(y.value,r)}}}function gr(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===k))a=r.propTypes;else return;if(a){var s=B(r);rr(a,e.props,"prop",s,e)}else if(r.PropTypes!==void 0&&!he){he=!0;var h=B(r);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function br(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var s=r[a];if(s!=="children"&&s!=="key"){A(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),A(null);break}}e.ref!==null&&(A(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function mt(e,r,a,s,h,w){{var y=Gt(e);if(!y){var m="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=mr(h);R?m+=R:m+=dt();var _;e===null?_="null":ge(e)?_="array":e!==void 0&&e.$$typeof===o?(_="<"+(B(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,m)}var T=pr(e,r,a,h,w);if(T==null)return T;if(y){var P=r.children;if(P!==void 0)if(s)if(ge(P)){for(var $=0;$<P.length;$++)pt(P[$],e);Object.freeze&&Object.freeze(P)}else S("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 pt(P,e)}return e===n?br(T):gr(T),T}}function yr(e,r,a){return mt(e,r,a,!0)}function hr(e,r,a){return mt(e,r,a,!1)}var xr=hr,kr=yr;U.Fragment=n,U.jsx=xr,U.jsxs=kr}()),U}(function(t){process.env.NODE_ENV==="production"?t.exports=yt():t.exports=ht()})(bt);const _e=M.Fragment,b=M.jsx,N=M.jsxs,Se={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},H={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},le={...H,base:"font-regular leading-loose",xl:"text-23 md:text-28"},Te={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},Ce={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Re={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},Oe={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Pe={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},xt=({size:t,variant:o})=>{switch(o){case"headline":return v(Se.base,Se[t]);case"label":return v(H.base,t?H[t]:H.default);case"paragraph":return v(le.base,t?le[t]:le.default);case"eyebrow":return v(Te.base,Te[t]);case"caption":return v(Ce.base,Ce[t]);case"buttonLabel":return v(Re.base,Re[t]);case"fieldLabel":return v(Oe.base,Oe[t]);case"fieldTextInput":return v(Pe.base,Pe[t]);default:return t}},kt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},Et=({className:t,component:o="p",children:i,font:n="primary",size:l,variant:c,...d},f)=>{const p="text-text-light dark:text-text-dark",E=kt[n],u=xt({size:l,variant:c});return b(ie,{className:v(p,u,E,t),component:o,ref:f,...d,children:i})},se=g.forwardRef(Et);se.displayName="Text";const Ne=({children:t,component:o="a",className:i,active:n,...l})=>b(se,{className:v(["font-bold text-gray-50 leading-default",n?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",i]),component:o,...l,children:t});Ne.displayName="Breadcrumb";var wt=Object.defineProperty,_t=Object.defineProperties,St=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Le=(t,o,i)=>o in t?wt(t,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[o]=i,Tt=(t,o)=>{for(var i in o||(o={}))je.call(o,i)&&Le(t,i,o[i]);if(X)for(var i of X(o))Be.call(o,i)&&Le(t,i,o[i]);return t},Ct=(t,o)=>_t(t,St(o)),Rt=(t,o)=>{var i={};for(var n in t)je.call(t,n)&&o.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&X)for(var n of X(t))o.indexOf(n)<0&&Be.call(t,n)&&(i[n]=t[n]);return i},Ot=(t,o)=>{var i=t,{title:n,titleId:l}=i,c=Rt(i,["title","titleId"]);return N("svg",Ct(Tt({width:c.size||"24",height:c.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":l},c),{children:[n?b("title",{id:l,children:n}):null,b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},Pt=g.forwardRef(Ot),Nt=Pt;const jt=({children:t,className:o,...i},n)=>{const l=g.Children.toArray(t),c=l.findIndex(d=>{var f;return g.isValidElement(d)?(f=d==null?void 0:d.props)==null?void 0:f.active:!1});return b("div",{className:v(["flex bg-canvas-light dark:bg-canvas-dark py-0.5 flex-row min-h-[48px] rtl:rotate-180",o]),ref:n,...i,children:l.map((d,f)=>N("div",{className:"flex items-center",children:[f?b(Nt,{className:v(["mx-1",f>c&&"text-gray-15",f<=c&&"text-gray-25"]),size:"15"}):null,b("div",{className:v([f<c?"bg-gray-10 dark:bg-gray-40 py-1.5 px-3 rounded-3 cursor-pointer":"px-0.5",f>c&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"]),children:d})]},`${f}-${d.toString()}`))})},Fe=g.forwardRef(jt);Fe.displayName="Breadcrumbs";const Bt={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},ue=t=>{switch(t){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},q={lg:30,md:24,sm:18,xl:36,xs:12},de="items-center leading-default font-bold ease-in-out duration-100 focus:outline-2 focus:outline-info-light dark:focus:outline-info-dark flex w-full max-w-fit",ce={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent outline outline-2 outline-gray-50 dark:outline-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},Ie=({className:t,children:o,disabled:i,icon:n,iconPosition:l,size:c="md",variant:d="primary",...f},p)=>{const E=ue(n!==void 0?l:void 0),u=v(de,ce[d],E[c],t);return N("button",{...f,className:u,disabled:i,ref:p,children:[l==="start"&&n!==void 0?g.createElement(n,{className:"mr-0.5 min-w-min",size:q[c]}):null,b("span",{className:"truncate",children:o}),l==="end"&&n!==void 0?g.createElement(n,{className:"ml-0.5 min-w-min",size:q[c]}):null]})},De=g.forwardRef(Ie);De.displayName="Button";const Ve=({children:t,autoFocus:o=!0})=>{const i=g.useRef(null);return g.useEffect(()=>{if(i.current){const n=i.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let l=document.activeElement;const c=n[0],d=n[n.length-1],f=u=>{if(u.key==="Tab"){if(u.shiftKey){if(document.activeElement===c)u.preventDefault(),d.focus(),l=d;else for(let k=0;k<n.length;k++)if(n[k]===document.activeElement){l=n[k-1];break}}else if(!u.shiftKey){if(document.activeElement===d)u.preventDefault(),c.focus(),l=c;else for(let k=0;k<n.length;k++)if(n[k]===document.activeElement){l=n[k+1];break}}}};o&&(()=>{if(i.current){const u=i.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');u&&u.focus()}})();const E=u=>{i.current&&!i.current.contains(u.target)&&l.focus()};return document.addEventListener("keydown",f),document.addEventListener("click",E),()=>{document.removeEventListener("keydown",f),document.removeEventListener("click",E)}}},[o]),b("div",{ref:i,children:t})},Lt=({children:t,className:o,disabled:i,...n},l)=>b("button",{className:v(["rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0 disabled:text-text-muted-light dark:disabled:text-text-muted-dark",o]),disabled:i,ref:l,...n,children:t}),Z=g.forwardRef(Lt);Z.displayName="IconButton";const Ft=({className:t,children:o,component:i="a",...n},l)=>g.createElement(i,{...n,className:v(["rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0",t]),ref:l},o),We=g.forwardRef(Ft);We.displayName="IconLinkButton";const It=({innerRef:t,forwardedRef:o})=>(g.useEffect(()=>{[t,o].forEach(i=>{i&&(typeof i=="function"?i(t.current||null):i.current=t.current||null)})},[t,o]),t),Dt=({className:t,disabled:o,endIcon:i,error:n,hint:l,label:c,name:d,onChange:f,placeholder:p,startIcon:E,value:u,...k},O)=>{const F=g.useRef(null),C=It({forwardedRef:O,innerRef:F}),[K,D]=g.useState(Boolean(u)),[j,S]=g.useState(!1);g.useEffect(()=>{var W;D(Boolean((W=C==null?void 0:C.current)==null?void 0:W.value)||Boolean(u||p))},[u,p,C]);const z=W=>{var Q;D(Boolean((Q=C==null?void 0:C.current)==null?void 0:Q.value)||Boolean(u||p)),f&&f(W)},V=()=>{o||!C.current||(C.current.focus(),S(!0))},fe=()=>{S(!1)};return N("div",{className:"flex items-start flex-col gap-0.5",children:[N("div",{className:v(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",o?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:V,onFocus:V,children:[E?b("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:E}):null,N("span",{className:"relative flex flex-1 overflow-hidden",children:[b("input",{className:v(["self-stretch bg-transparent flex-auto outline-none overflow-hidden pbs-3 pbe-1",E?"pis-1":"pis-2",i?"pie-1":"pie-2",t]),disabled:o,id:d,onBlur:fe,onChange:z,placeholder:p,ref:C,value:u,...k}),b("label",{className:v("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",E?"ltr:left-1 rtl:right-1":"ltr:left-2 rtl:right-2",j||K?"text-13 -translate-y-1.5":"text-16"),htmlFor:d,children:c})]}),i?b("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:i}):null]}),n||l?N("div",{className:"flex flex-col",children:[n?b("span",{className:"text-alert dark:text-alert-dark",children:n}):null,l?b("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:l}):null]}):null]})},Ae=g.forwardRef(Dt);Ae.displayName="Input";const $e=({className:t,children:o,component:i="a",icon:n,iconPosition:l,variant:c="primary",size:d="md",...f},p)=>{const E=ue(n!==void 0?l:void 0);return N(({children:k})=>g.createElement(i,{...f,className:v([de,ce[c],E[d],t]),ref:p},k),{children:[l==="start"&&n!==void 0?g.createElement(n,{className:"mr-0.5 min-w-min",size:q[d]}):null,g.createElement("span",{className:"truncate"},o),l==="end"&&n!==void 0?g.createElement(n,{className:"ml-0.5 min-w-min",size:q[d]}):null]})},Me=g.forwardRef($e);Me.displayName="LinkButton";const Vt=({children:t,className:o,...i},n)=>b("ul",{className:v(["w-fit bg-canvas-light dark:bg-canvas-dark rounded-1 py-0.5",o]),ref:n,...i,children:t}),Ye=g.forwardRef(Vt);Ye.displayName="List";const Wt=({children:t,className:o,divider:i,endAction:n,endIcon:l,onClick:c,startAction:d,startIcon:f,...p},E)=>{const u=k=>{c&&(k.code==="Enter"||k.key===" ")&&c()};return N("li",{className:v(["flex items-center box-border relative",i?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,o]),ref:E,...p,children:[d?b("div",{className:"absolute ltr:left-1 rtl:right-1",onClick:d,children:b(Z,{children:f})}):null,N("div",{className:v(["flex flex-1 py-2 gap-x-2",d?"pis-4":"pis-2",n?"pie-4":"pie-2",c?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-40":void 0]),onClick:c,onKeyUp:u,onTouchEnd:c,tabIndex:c?0:void 0,children:[f&&!d?b("div",{children:f}):null,b("div",{className:v(["flex-grow",d?"pis-2":null,n?"pie-2":null]),children:t}),l&&!n?b("div",{children:l}):null]}),n?b("div",{className:"absolute ltr:right-1 rtl:left-1",onClick:n,children:b(Z,{children:l})}):null]})},Ue=g.forwardRef(Wt);Ue.displayName="ListItem";const At=({children:t,className:o,size:i="sm"})=>b(se,{className:o,size:i,variant:"label",children:t}),$t=({children:t,className:o,...i})=>b("div",{className:v(["relative",o]),...i,children:t}),Mt={"no-scrollbar":"_no-scrollbar_1ivfd_1"},Yt=({align:t,children:o,className:i,isDismissible:n,onClose:l,...c})=>{const d=g.useRef(null);g.useEffect(()=>{const p=u=>{switch(u.key){case"Escape":n&&l&&l();break;case" ":l&&l();break;case"Enter":l&&l();break}},E=u=>{typeof l=="function"&&(d.current&&!d.current.contains(u.target)?n&&l():l())};return window.addEventListener("click",E),document.addEventListener("keyup",p),()=>{window.removeEventListener("click",E),document.removeEventListener("keyup",p)}},[d,n,l]);const f=g.useMemo(()=>{const{horizontal:p,vertical:E}=t,u={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},k={bottom:"",top:"bottom-full"};return`${u[p]} ${k[E]}`},[t]);return b("div",{className:v(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mb-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px]",Mt["no-scrollbar"],f,i]),ref:d,...c,children:o})},Ut=({open:t,children:o})=>b(_e,{children:t?o:null}),qt=({align:t={horizontal:"start",vertical:"bottom"},autoFocus:o=!0,children:i,className:n,isDismissible:l,isOpen:c,onClose:d,...f})=>b(Ut,{open:c,children:b(Ve,{autoFocus:o,children:b(Yt,{align:t,className:n,isDismissible:l,onClose:d,...f,children:i})})}),Kt=({onToggle:t,children:o,disabled:i})=>{const n=c=>{c.stopPropagation(),t()},l=g.cloneElement(o,{disabled:i,onClick:n});return b(_e,{children:l})},qe={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},zt=({content:t,className:o,...i})=>b("div",{className:v(qe.tooltipWrapper,o),...i,children:b("span",{className:qe.tooltipContent,children:t})});x.Box=ie,x.Breadcrumb=Ne,x.Breadcrumbs=Fe,x.Button=De,x.ButtonComponent=Ie,x.FocusTrap=Ve,x.IconButton=Z,x.IconLinkButton=We,x.Input=Ae,x.LinkButton=Me,x.LinkButtonComponent=$e,x.List=Ye,x.ListItem=Ue,x.ListItemText=At,x.Popover=$t,x.PopoverBody=qt,x.PopoverTrigger=Kt,x.Tooltip=zt,x.buttonSizeOptions=Bt,x.defaultButtonClasses=de,x.determineSizeClasses=ue,x.iconSizes=q,x.variantClasses=ce,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+i+">.")}return r}}function mt(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=yr(r);if(pt[i])return;pt[i]=!0;var u="";e&&e._owner&&e._owner!==ye.current&&(u=" It was passed a child from "+B(e._owner.type)+"."),A(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,u),A(null)}}function gt(e,r){{if(typeof e!="object")return;if(be(e))for(var i=0;i<e.length;i++){var u=e[i];ke(u)&&mt(u,r)}else if(ke(e))e._store&&(e._store.validated=!0);else if(e){var k=D(e);if(typeof k=="function"&&k!==e.entries)for(var E=k.call(e),h;!(h=E.next()).done;)ke(h.value)&&mt(h.value,r)}}}function xr(e){{var r=e.type;if(r==null||typeof r=="string")return;var i;if(typeof r=="function")i=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===y))i=r.propTypes;else return;if(i){var u=B(r);ir(i,e.props,"prop",u,e)}else if(r.PropTypes!==void 0&&!xe){xe=!0;var k=B(r);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kr(e){{for(var r=Object.keys(e.props),i=0;i<r.length;i++){var u=r[i];if(u!=="children"&&u!=="key"){A(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),A(null);break}}e.ref!==null&&(A(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function vt(e,r,i,u,k,E){{var h=Qt(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=hr(k);O?g+=O:g+=ft();var _;e===null?_="null":be(e)?_="array":e!==void 0&&e.$$typeof===o?(_="<"+(B(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,g)}var T=br(e,r,i,k,E);if(T==null)return T;if(h){var N=r.children;if(N!==void 0)if(u)if(be(N)){for(var $=0;$<N.length;$++)gt(N[$],e);Object.freeze&&Object.freeze(N)}else S("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 gt(N,e)}return e===n?kr(T):xr(T),T}}function wr(e,r,i){return vt(e,r,i,!0)}function Er(e,r,i){return vt(e,r,i,!1)}var _r=Er,Sr=wr;U.Fragment=n,U.jsx=_r,U.jsxs=Sr}()),U}(function(t){process.env.NODE_ENV==="production"?t.exports=kt():t.exports=wt()})(xt);const Se=M.Fragment,m=M.jsx,P=M.jsxs,Te={base:"font-bold",xs:"text-16 md:text-19 leading-default",sm:"text-19 md:text-23 leading-default md:leading-comfy",md:"text-23 md:text-28 leading-comfy",lg:"text-28 md:text-33 leading-comfy",xl:"text-33 md:text-40 leading-comfy",xxl:"text-33 md:text-57 leading-comfy"},H={base:"font-medium leading-default",default:"text-16 md:text-19",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23 md:text-28 tracking-tight"},se={...H,base:"font-regular leading-loose",xl:"text-23 md:text-28"},Ce={base:"font-medium leading-default tracking-wider uppercase text-text-muted-light dark:text-text-muted-dark",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19",xl:"text-23"},Oe={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Re={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},Pe={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},Ne={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},Et=({size:t,variant:o})=>{switch(o){case"headline":return v(Te.base,Te[t]);case"label":return v(H.base,t?H[t]:H.default);case"paragraph":return v(se.base,t?se[t]:se.default);case"eyebrow":return v(Ce.base,Ce[t]);case"caption":return v(Oe.base,Oe[t]);case"buttonLabel":return v(Re.base,Re[t]);case"fieldLabel":return v(Pe.base,Pe[t]);case"fieldTextInput":return v(Ne.base,Ne[t]);default:return t}},_t={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},St=({className:t,component:o="p",children:a,font:n="primary",size:l,variant:s,...d},f)=>{const p="text-text-light dark:text-text-dark",w=_t[n],c=Et({size:l,variant:s});return m(le,{className:v(p,c,w,t),component:o,ref:f,...d,children:a})},ue=b.forwardRef(St);ue.displayName="Text";const je=({children:t,component:o="a",className:a,active:n,...l})=>m(ue,{className:v(["font-bold text-gray-50 leading-default",n?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",a]),component:o,...l,children:t});je.displayName="Breadcrumb";var Tt=Object.defineProperty,Ct=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Fe=(t,o,a)=>o in t?Tt(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,Rt=(t,o)=>{for(var a in o||(o={}))Be.call(o,a)&&Fe(t,a,o[a]);if(X)for(var a of X(o))Le.call(o,a)&&Fe(t,a,o[a]);return t},Pt=(t,o)=>Ct(t,Ot(o)),Nt=(t,o)=>{var a={};for(var n in t)Be.call(t,n)&&o.indexOf(n)<0&&(a[n]=t[n]);if(t!=null&&X)for(var n of X(t))o.indexOf(n)<0&&Le.call(t,n)&&(a[n]=t[n]);return a},jt=(t,o)=>{var a=t,{title:n,titleId:l}=a,s=Nt(a,["title","titleId"]);return P("svg",Pt(Rt({width:s.size||"24",height:s.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":l},s),{children:[n?m("title",{id:l,children:n}):null,m("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 18.707a1 1 0 0 1 0-1.414l4.94-4.94a.5.5 0 0 0 0-.707l-4.94-4.939a1 1 0 0 1 1.414-1.414l5.647 5.646a1.5 1.5 0 0 1 0 2.122l-5.647 5.646a1 1 0 0 1-1.414 0Z",fill:"currentColor"})]}))},Bt=b.forwardRef(jt),Lt=Bt;const Ft=({children:t,className:o,...a},n)=>{const l=b.Children.toArray(t),s=l.findIndex(d=>{var f;return b.isValidElement(d)?(f=d==null?void 0:d.props)==null?void 0:f.active:!1});return m("div",{className:v(["flex bg-canvas-light dark:bg-canvas-dark py-0.5 flex-row min-h-[48px] rtl:rotate-180",o]),ref:n,...a,children:l.map((d,f)=>P("div",{className:"flex items-center",children:[f?m(Lt,{className:v(["mx-1",f>s&&"text-gray-15",f<=s&&"text-gray-25"]),size:"15"}):null,m("div",{className:v([f<s?"bg-gray-10 dark:bg-gray-40 py-1.5 px-3 rounded-3 cursor-pointer":"px-0.5",f>s&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"]),children:d})]},`${f}-${d.toString()}`))})},Ie=b.forwardRef(Ft);Ie.displayName="Breadcrumbs";const It={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},de=t=>{switch(t){case"start":return{lg:"rounded-4 text-19 pis-[20px] pie-4 py-2",md:"rounded-3 text-xs pis-2 pie-3 py-1.5",sm:"rounded-3 text-13 pis-1.5 pie-3 py-1.5",xl:"rounded-4 text-23 pis-3 pie-4 py-2",xs:"rounded-3 text-11 pis-1 pie-2 py-1"};case"end":return{lg:"rounded-4 text-19 pie-[20px] pis-4 py-2",md:"rounded-3 text-xs pie-2 pis-3 py-1.5",sm:"rounded-3 text-13 pie-1.5 pis-3 py-1.5",xl:"rounded-4 text-23 pie-3 pis-4 py-2",xs:"rounded-3 text-11 pie-1 pis-2 py-1"};default:return{lg:"rounded-4 text-19 px-4 py-2",md:"rounded-3 text-xs px-3 py-1.5",sm:"rounded-3 text-13 px-3 py-1.5",xl:"rounded-4 text-23 px-4 py-2",xs:"rounded-3 text-11 px-2 py-1"}}},q={lg:30,md:24,sm:18,xl:36,xs:12},ce="items-center leading-default font-bold ease-in-out duration-100 focus:outline-2 focus:outline-info-light dark:focus:outline-info-dark flex w-full max-w-fit",fe={all_caps:"bg-transparent text-gray-50 dark:text-white hover:text-info-light dark:hover:text-info-dark active:text-blue-40 dark:active:text-blue-20 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white uppercase",borderless:"bg-transparent text-gray-50 dark:text-white hover:bg-gray-10 dark:hover:bg-gray-40 disabled:opacity-50 dark:disabled:bg-transparent",brand:"bg-yv-red dark:bg-yv-red-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",primary:"bg-gray-50 dark:bg-gray-10 text-white dark:text-gray-50 hover:bg-gray-40 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",risk:"bg-orange-30 dark:bg-alert-dark text-white disabled:opacity-50 disabled:bg-gray-10 dark:disabled:bg-gray-40 disabled:text-gray-50 dark:disabled:text-white",secondary:"bg-gray-10 dark:bg-gray-40 text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-gray-10 disabled:text-gray-50",stroked:"bg-transparent outline outline-2 outline-gray-50 dark:outline-white text-gray-50 dark:text-white hover:bg-gray-40 dark:hover:bg-gray-10 hover:text-white dark:hover:text-gray-50 active:bg-gray-50 disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white"},De=({className:t,children:o,disabled:a,icon:n,iconPosition:l,size:s="md",type:d="button",variant:f="primary",...p},w)=>{const c=de(n!==void 0?l:void 0),y=v(ce,fe[f],c[s],t);return P("button",{className:y,disabled:a,ref:w,type:d,...p,children:[l==="start"&&n!==void 0?b.createElement(n,{className:"mr-0.5 min-w-min",size:q[s]}):null,m("span",{className:"truncate",children:o}),l==="end"&&n!==void 0?b.createElement(n,{className:"ml-0.5 min-w-min",size:q[s]}):null]})},Ve=b.forwardRef(De);Ve.displayName="Button";const Dt=({error:t,className:o,label:a,disabled:n,name:l,...s},d)=>{const f=oe.useId(),p=oe.useMemo(()=>`checkbox-label-${f}`,[f]);return P("div",{className:v(["flex items-baseline rounded-0.5 w-fit focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",o]),children:[m("input",{"aria-labelledby":p,className:"w-1.5 h-1.5 mr-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:n,id:l,name:l,ref:d,type:"checkbox",...s}),P("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:[m("label",{htmlFor:l,id:p,children:a}),t?m("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]})]})},We=oe.forwardRef(Dt);We.displayName="Checkbox";const Ae=({children:t,autoFocus:o=!0})=>{const a=b.useRef(null);return b.useEffect(()=>{if(a.current){const n=a.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let l=document.activeElement;const s=n[0],d=n[n.length-1],f=c=>{if(c.key==="Tab"){if(c.shiftKey){if(document.activeElement===s)c.preventDefault(),d.focus(),l=d;else for(let y=0;y<n.length;y++)if(n[y]===document.activeElement){l=n[y-1];break}}else if(!c.shiftKey){if(document.activeElement===d)c.preventDefault(),s.focus(),l=s;else for(let y=0;y<n.length;y++)if(n[y]===document.activeElement){l=n[y+1];break}}}};o&&(()=>{if(a.current){const c=a.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');c&&c.focus()}})();const w=c=>{a.current&&!a.current.contains(c.target)&&l.focus()};return document.addEventListener("keydown",f),document.addEventListener("click",w),()=>{document.removeEventListener("keydown",f),document.removeEventListener("click",w)}}},[o]),m("div",{ref:a,children:t})},Vt=({children:t,className:o,disabled:a,type:n="button",...l},s)=>m("button",{className:v(["rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0 disabled:text-text-muted-light dark:disabled:text-text-muted-dark",o]),disabled:a,ref:s,type:n,...l,children:t}),Z=b.forwardRef(Vt);Z.displayName="IconButton";const Wt=({className:t,children:o,component:a="a",...n},l)=>b.createElement(a,{...n,className:v(["rounded-full hover:bg-gray-10 dark:hover:bg-gray-40 text-text-light dark:text-white inline-flex justify-center items-center p-1 focus-visible:outline-2 focus-visible:outline focus-visible:outline-info dark:focus-visible:outline-info-dark outline-offset-0",t]),ref:l},o),$e=b.forwardRef(Wt);$e.displayName="IconLinkButton";const At=({innerRef:t,forwardedRef:o})=>(b.useEffect(()=>{[t,o].forEach(a=>{a&&(typeof a=="function"?a(t.current||null):a.current=t.current||null)})},[t,o]),t),$t=({className:t,disabled:o,endIcon:a,error:n,hint:l,label:s,name:d,onChange:f,placeholder:p,startIcon:w,value:c,...y},R)=>{const F=b.useRef(null),C=At({forwardedRef:R,innerRef:F}),[z,D]=b.useState(Boolean(c)),[j,S]=b.useState(!1);b.useEffect(()=>{var W;D(Boolean((W=C==null?void 0:C.current)==null?void 0:W.value)||Boolean(c||p))},[c,p,C]);const K=W=>{var Q;D(Boolean((Q=C==null?void 0:C.current)==null?void 0:Q.value)||Boolean(c||p)),f&&f(W)},V=()=>{o||!C.current||(C.current.focus(),S(!0))},pe=()=>{S(!1)};return P("div",{className:"flex items-start flex-col gap-0.5",children:[P("div",{className:v(["items-center self-stretch rounded-1 border-small border-solid cursor-text flex flex-row relative focus-within:border-transparent focus-within:outline-2 focus-within:outline-info focus-within:outline focus-within:dark:border-transparent focus-within:dark:outline-info-dark",o?"bg-gray-10 dark:bg-gray-40":null,n?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:V,onFocus:V,children:[w?m("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:w}):null,P("span",{className:"relative flex flex-1 overflow-hidden",children:[m("input",{className:v(["self-stretch bg-transparent flex-auto outline-none overflow-hidden pbs-3 pbe-1",w?"pis-1":"pis-2",a?"pie-1":"pie-2",t]),disabled:o,id:d,onBlur:pe,onChange:K,placeholder:p,ref:C,value:c,...y}),m("label",{className:v("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",w?"ltr:left-1 rtl:right-1":"ltr:left-2 rtl:right-2",j||z?"text-13 -translate-y-1.5":"text-16"),htmlFor:d,children:s})]}),a?m("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:a}):null]}),n||l?P("div",{className:"flex flex-col",children:[n?m("span",{className:"text-alert dark:text-alert-dark",children:n}):null,l?m("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:l}):null]}):null]})},Me=b.forwardRef($t);Me.displayName="Input";const Ye=({className:t,children:o,component:a="a",icon:n,iconPosition:l,variant:s="primary",size:d="md",...f},p)=>{const w=de(n!==void 0?l:void 0);return P(({children:y})=>b.createElement(a,{...f,className:v([ce,fe[s],w[d],t]),ref:p},y),{children:[l==="start"&&n!==void 0?b.createElement(n,{className:"mr-0.5 min-w-min",size:q[d]}):null,b.createElement("span",{className:"truncate"},o),l==="end"&&n!==void 0?b.createElement(n,{className:"ml-0.5 min-w-min",size:q[d]}):null]})},Ue=b.forwardRef(Ye);Ue.displayName="LinkButton";const Mt=({children:t,className:o,...a},n)=>m("ul",{className:v(["w-fit bg-canvas-light dark:bg-canvas-dark rounded-1 py-0.5",o]),ref:n,...a,children:t}),qe=b.forwardRef(Mt);qe.displayName="List";const Yt=({children:t,className:o,divider:a,endAction:n,endIcon:l,onClick:s,startAction:d,startIcon:f,...p},w)=>{const c=y=>{s&&(y.code==="Enter"||y.key===" ")&&s()};return P("li",{className:v(["flex items-center box-border relative",a?"after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px":null,o]),ref:w,...p,children:[d?m("div",{className:"absolute ltr:left-1 rtl:right-1",onClick:d,children:m(Z,{children:f})}):null,P("div",{className:v(["flex flex-1 py-2 gap-x-2",d?"pis-4":"pis-2",n?"pie-4":"pie-2",s?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-40":void 0]),onClick:s,onKeyUp:c,onTouchEnd:s,tabIndex:s?0:void 0,children:[f&&!d?m("div",{children:f}):null,m("div",{className:v(["flex-grow",d?"pis-2":null,n?"pie-2":null]),children:t}),l&&!n?m("div",{children:l}):null]}),n?m("div",{className:"absolute ltr:right-1 rtl:left-1",onClick:n,children:m(Z,{children:l})}):null]})},ze=b.forwardRef(Yt);ze.displayName="ListItem";const Ut=({children:t,className:o,size:a="sm"})=>m(ue,{className:o,size:a,variant:"label",children:t}),qt=({children:t,className:o,...a})=>m("div",{className:v(["relative",o]),...a,children:t}),zt={"no-scrollbar":"_no-scrollbar_1ivfd_1"},Kt=({align:t,children:o,className:a,isDismissible:n,onClose:l,...s})=>{const d=b.useRef(null);b.useEffect(()=>{const p=c=>{switch(c.key){case"Escape":n&&l&&l();break;case" ":l&&l();break;case"Enter":l&&l();break}},w=c=>{typeof l=="function"&&(d.current&&!d.current.contains(c.target)?n&&l():l())};return window.addEventListener("click",w),document.addEventListener("keyup",p),()=>{window.removeEventListener("click",w),document.removeEventListener("keyup",p)}},[d,n,l]);const f=b.useMemo(()=>{const{horizontal:p,vertical:w}=t,c={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},y={bottom:"",top:"bottom-full"};return`${c[p]} ${y[w]}`},[t]);return m("div",{className:v(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mb-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px]",zt["no-scrollbar"],f,a]),ref:d,...s,children:o})},Jt=({open:t,children:o})=>m(Se,{children:t?o:null}),Gt=({align:t={horizontal:"start",vertical:"bottom"},autoFocus:o=!0,children:a,className:n,isDismissible:l,isOpen:s,onClose:d,...f})=>m(Jt,{open:s,children:m(Ae,{autoFocus:o,children:m(Kt,{align:t,className:n,isDismissible:l,onClose:d,...f,children:a})})}),Ht=({onToggle:t,children:o,disabled:a})=>{const n=s=>{s.stopPropagation(),t()},l=b.cloneElement(o,{disabled:a,onClick:n});return m(Se,{children:l})},Ke={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Xt=({content:t,className:o,...a})=>m("div",{className:v(Ke.tooltipWrapper,o),...a,children:m("span",{className:Ke.tooltipContent,children:t})});x.Box=le,x.Breadcrumb=je,x.Breadcrumbs=Ie,x.Button=Ve,x.ButtonComponent=De,x.Checkbox=We,x.FocusTrap=Ae,x.IconButton=Z,x.IconLinkButton=$e,x.Input=Me,x.LinkButton=Ue,x.LinkButtonComponent=Ye,x.List=qe,x.ListItem=ze,x.ListItemText=Ut,x.Popover=qt,x.PopoverBody=Gt,x.PopoverTrigger=Ht,x.Tooltip=Xt,x.buttonSizeOptions=It,x.defaultButtonClasses=ce,x.determineSizeClasses=de,x.iconSizes=q,x.variantClasses=fe,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "@testing-library/user-event": "14.4.3",
38
38
  "@types/jest": "29.4.0",
39
39
  "@types/node": "18.14.1",
40
- "@types/react": "17.0.37",
40
+ "@types/react": "18.0.28",
41
41
  "@types/react-dom": "17.0.11",
42
42
  "@types/testing-library__jest-dom": "5.14.5",
43
43
  "@vitejs/plugin-react": "3.1.0",