@youversion/design-system-components 0.0.8 → 0.0.11

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(y,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("clsx"),require("react")):typeof define=="function"&&define.amd?define(["exports","clsx","react"],g):(y=typeof globalThis<"u"?globalThis:y||self,g(y["design-system-components"]={},y.clsx,y.React))})(this,function(y,g,b){"use strict";function yt(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 ie=yt(b),le=t=>{if(t){if(typeof t!="string"&&t)return g(t.lightMode,t.darkMode);if(typeof t=="string")return t}},Ee=t=>{if(t){if(typeof t!="string"&&t)return g(t.block,t.blockEnd,t.blockStart,t.inline,t.inlineEnd,t.inlineStart);if(typeof t=="string")return t}},xt=({background:t,borderColor:o,borderRadius:a,borderWidth:n,className:l,component:s="div",color:u,elevation:f=0,height:m,margin:w,padding:c,width:x,...P},I)=>{const O={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=le(u),D=le(t),j=le(o),T=Ee(c),J=Ee(w),V=g(a,n,O[f],J,T,K,D,j,x,m,l);return b.createElement(s,{className:V,...P,ref:I})},se=b.forwardRef(xt);se.displayName="Box";var M={},kt={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 _e;function wt(){if(_e)return Y;_e=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 u(f,m,w){var c,x={},P=null,I=null;w!==void 0&&(P=""+w),m.key!==void 0&&(P=""+m.key),m.ref!==void 0&&(I=m.ref);for(c in m)n.call(m,c)&&!s.hasOwnProperty(c)&&(x[c]=m[c]);if(f&&f.defaultProps)for(c in m=f.defaultProps,m)x[c]===void 0&&(x[c]=m[c]);return{$$typeof:o,type:f,key:P,ref:I,props:x,_owner:l.current}}return Y.Fragment=a,Y.jsx=u,Y.jsxs=u,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 Te;function Et(){return Te||(Te=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"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),O=Symbol.iterator,K="@@iterator";function D(e){if(e===null||typeof e!="object")return null;var r=O&&e[O]||e[K];return typeof r=="function"?r:null}var j=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),d=1;d<r;d++)i[d-1]=arguments[d];J("error",e,i)}}function J(e,r,i){{var d=j.ReactDebugCurrentFrame,k=d.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,me=!1,W=!1,ee=!1,tr=!1,Ge;Ge=Symbol.for("react.module.reference");function rr(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===s||tr||e===l||e===w||e===c||ee||e===I||V||me||W||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===x||e.$$typeof===u||e.$$typeof===f||e.$$typeof===m||e.$$typeof===Ge||e.getModuleId!==void 0))}function nr(e,r,i){var d=e.displayName;if(d)return d;var k=r.displayName||r.name||"";return k!==""?i+"("+k+")":i}function He(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&T("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 He(r)+".Consumer";case u:var i=e;return He(i._context)+".Provider";case m:return nr(e,e.render,"ForwardRef");case x:var d=e.displayName||null;return d!==null?d:B(e.type)||"Memo";case P:{var k=e,E=k._payload,h=k._init;try{return B(h(E))}catch{return null}}}return null}var F=Object.assign,G=0,Xe,Ze,Qe,et,tt,rt,nt;function at(){}at.__reactDisabledLog=!0;function ar(){{if(G===0){Xe=console.log,Ze=console.info,Qe=console.warn,et=console.error,tt=console.group,rt=console.groupCollapsed,nt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:at,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function or(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:Xe}),info:F({},e,{value:Ze}),warn:F({},e,{value:Qe}),error:F({},e,{value:et}),group:F({},e,{value:tt}),groupCollapsed:F({},e,{value:rt}),groupEnd:F({},e,{value:nt})})}G<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=j.ReactCurrentDispatcher,be;function te(e,r,i){{if(be===void 0)try{throw Error()}catch(k){var d=k.stack.trim().match(/\n( *(at )?)/);be=d&&d[1]||""}return`
18
+ `+be+e}}var ve=!1,re;{var ir=typeof WeakMap=="function"?WeakMap:Map;re=new ir}function ot(e,r){if(!e||ve)return"";{var i=re.get(e);if(i!==void 0)return i}var d;ve=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var E;E=ge.current,ge.current=null,ar();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){d=L}Reflect.construct(e,[],h)}else{try{h.call()}catch(L){d=L}e.call(h.prototype)}}else{try{throw Error()}catch(L){d=L}e()}}catch(L){if(L&&d&&typeof L.stack=="string"){for(var v=L.stack.split(`
19
+ `),R=d.stack.split(`
20
+ `),_=v.length-1,S=R.length-1;_>=1&&S>=0&&v[_]!==R[S];)S--;for(;_>=1&&S>=0;_--,S--)if(v[_]!==R[S]){if(_!==1||S!==1)do if(_--,S--,S<0||v[_]!==R[S]){var N=`
21
+ `+v[_].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,N),N}while(_>=1&&S>=0);break}}}finally{ve=!1,ge.current=E,or(),Error.prepareStackTrace=k}var A=e?e.displayName||e.name:"",ht=A?te(A):"";return typeof e=="function"&&re.set(e,ht),ht}function lr(e,r,i){return ot(e,!1)}function sr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ne(e,r,i){if(e==null)return"";if(typeof e=="function")return ot(e,sr(e));if(typeof e=="string")return te(e);switch(e){case w:return te("Suspense");case c:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return lr(e.render);case x:return ne(e.type,r,i);case P:{var d=e,k=d._payload,E=d._init;try{return ne(E(k),r,i)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,it={},lt=j.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,i=ne(e.type,e._source,r?r.type:null);lt.setExtraStackFrame(i)}else lt.setExtraStackFrame(null)}function ur(e,r,i,d,k){{var E=Function.call.bind(ae);for(var h in e)if(E(e,h)){var v=void 0;try{if(typeof e[h]!="function"){var R=Error((d||"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 R.name="Invariant Violation",R}v=e[h](r,h,d,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){v=_}v&&!(v instanceof Error)&&(oe(k),T("%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).",d||"React class",i,h,typeof v),oe(null)),v instanceof Error&&!(v.message in it)&&(it[v.message]=!0,oe(k),T("Failed %s type: %s",i,v.message),oe(null))}}}var dr=Array.isArray;function he(e){return dr(e)}function cr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function fr(e){try{return st(e),!1}catch{return!0}}function st(e){return""+e}function ut(e){if(fr(e))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cr(e)),st(e)}var H=j.ReactCurrentOwner,pr={key:!0,ref:!0,__self:!0,__source:!0},dt,ct,ye;ye={};function mr(e){if(ae.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function gr(e){if(ae.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function br(e,r){if(typeof e.ref=="string"&&H.current&&r&&H.current.stateNode!==r){var i=B(H.current.type);ye[i]||(T('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(H.current.type),e.ref),ye[i]=!0)}}function vr(e,r){{var i=function(){dt||(dt=!0,T("%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 hr(e,r){{var i=function(){ct||(ct=!0,T("%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 yr=function(e,r,i,d,k,E,h){var v={$$typeof:o,type:e,key:r,ref:i,props:h,_owner:E};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function xr(e,r,i,d,k){{var E,h={},v=null,R=null;i!==void 0&&(ut(i),v=""+i),gr(r)&&(ut(r.key),v=""+r.key),mr(r)&&(R=r.ref,br(r,k));for(E in r)ae.call(r,E)&&!pr.hasOwnProperty(E)&&(h[E]=r[E]);if(e&&e.defaultProps){var _=e.defaultProps;for(E in _)h[E]===void 0&&(h[E]=_[E])}if(v||R){var S=typeof e=="function"?e.displayName||e.name||"Unknown":e;v&&vr(h,S),R&&hr(h,S)}return yr(e,v,R,k,d,H.current,h)}}var xe=j.ReactCurrentOwner,ft=j.ReactDebugCurrentFrame;function $(e){if(e){var r=e._owner,i=ne(e.type,e._source,r?r.type:null);ft.setExtraStackFrame(i)}else ft.setExtraStackFrame(null)}var ke;ke=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function pt(){{if(xe.current){var e=B(xe.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 kr(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 mt={};function wr(e){{var r=pt();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 gt(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=wr(r);if(mt[i])return;mt[i]=!0;var d="";e&&e._owner&&e._owner!==xe.current&&(d=" It was passed a child from "+B(e._owner.type)+"."),$(e),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,d),$(null)}}function bt(e,r){{if(typeof e!="object")return;if(he(e))for(var i=0;i<e.length;i++){var d=e[i];we(d)&&gt(d,r)}else if(we(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;)we(h.value)&&gt(h.value,r)}}}function Er(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===m||r.$$typeof===x))i=r.propTypes;else return;if(i){var d=B(r);ur(i,e.props,"prop",d,e)}else if(r.PropTypes!==void 0&&!ke){ke=!0;var k=B(r);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _r(e){{for(var r=Object.keys(e.props),i=0;i<r.length;i++){var d=r[i];if(d!=="children"&&d!=="key"){$(e),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),$(null);break}}e.ref!==null&&($(e),T("Invalid attribute `ref` supplied to `React.Fragment`."),$(null))}}function vt(e,r,i,d,k,E){{var h=rr(e);if(!h){var v="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(v+=" 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=kr(k);R?v+=R:v+=pt();var _;e===null?_="null":he(e)?_="array":e!==void 0&&e.$$typeof===o?(_="<"+(B(e.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,v)}var S=xr(e,r,i,k,E);if(S==null)return S;if(h){var N=r.children;if(N!==void 0)if(d)if(he(N)){for(var A=0;A<N.length;A++)bt(N[A],e);Object.freeze&&Object.freeze(N)}else T("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 bt(N,e)}return e===n?_r(S):Er(S),S}}function Tr(e,r,i){return vt(e,r,i,!0)}function Sr(e,r,i){return vt(e,r,i,!1)}var Cr=Sr,Or=Tr;U.Fragment=n,U.jsx=Cr,U.jsxs=Or}()),U}(function(t){process.env.NODE_ENV==="production"?t.exports=wt():t.exports=Et()})(kt);const ue=M.Fragment,p=M.jsx,C=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"},X={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"},de={...X,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"},_t=({size:t,variant:o})=>{switch(o){case"headline":return g(Se.base,Se[t]);case"label":return g(X.base,t?X[t]:X.default);case"paragraph":return g(de.base,t?de[t]:de.default);case"eyebrow":return g(Ce.base,Ce[t]);case"caption":return g(Oe.base,Oe[t]);case"buttonLabel":return g(Re.base,Re[t]);case"fieldLabel":return g(Pe.base,Pe[t]);case"fieldTextInput":return g(Ne.base,Ne[t]);default:return t}},Tt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},St=({className:t,component:o="p",children:a,font:n="primary",size:l,variant:s,...u},f)=>{const m="text-text-light dark:text-text-dark",w=Tt[n],c=_t({size:l,variant:s});return p(se,{className:g(m,c,w,t),component:o,ref:f,...u,children:a})},q=b.forwardRef(St);q.displayName="Text";const je=({children:t,component:o="a",className:a,active:n,...l})=>p(q,{className:g(["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 Ct=Object.defineProperty,Ot=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ie=(t,o,a)=>o in t?Ct(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,Pt=(t,o)=>{for(var a in o||(o={}))Be.call(o,a)&&Ie(t,a,o[a]);if(Z)for(var a of Z(o))Le.call(o,a)&&Ie(t,a,o[a]);return t},Nt=(t,o)=>Ot(t,Rt(o)),jt=(t,o)=>{var a={};for(var n in t)Be.call(t,n)&&o.indexOf(n)<0&&(a[n]=t[n]);if(t!=null&&Z)for(var n of Z(t))o.indexOf(n)<0&&Le.call(t,n)&&(a[n]=t[n]);return a},Bt=(t,o)=>{var a=t,{title:n,titleId:l}=a,s=jt(a,["title","titleId"]);return C("svg",Nt(Pt({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?p("title",{id:l,children:n}):null,p("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"})]}))},Lt=b.forwardRef(Bt),It=Lt;const Ft=({children:t,className:o,...a},n)=>{const l=b.Children.toArray(t),s=l.findIndex(u=>{var f;return b.isValidElement(u)?(f=u==null?void 0:u.props)==null?void 0:f.active:!1});return p("div",{className:g(["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((u,f)=>C("div",{className:"flex items-center",children:[f?p(It,{className:g(["mx-1",f>s&&"text-gray-15",f<=s&&"text-gray-25"]),size:"15"}):null,p("div",{className:g([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:u})]},`${f}-${u.toString()}`))})},Fe=b.forwardRef(Ft);Fe.displayName="Breadcrumbs";const Dt={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},ce=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"}}},z={lg:30,md:24,sm:18,xl:36,xs:12},fe="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",pe={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:u="button",variant:f="primary",...m},w)=>{const c=ce(n!==void 0?l:void 0),x=g(fe,pe[f],c[s],t);return C("button",{className:x,disabled:a,ref:w,type:u,...m,children:[l==="start"&&n!==void 0?b.createElement(n,{className:"mr-0.5 min-w-min",size:z[s]}):null,p("span",{className:"truncate",children:o}),l==="end"&&n!==void 0?b.createElement(n,{className:"ml-0.5 min-w-min",size:z[s]}):null]})},Ve=b.forwardRef(De);Ve.displayName="Button";const Vt=({error:t,className:o,label:a,disabled:n,name:l,...s},u)=>{const f=ie.useId(),m=ie.useMemo(()=>`checkbox-label-${f}`,[f]);return C("div",{className:g(["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:[p("input",{"aria-labelledby":m,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:u,type:"checkbox",...s}),C("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:[p("label",{htmlFor:l,id:m,children:a}),t?p("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]})]})},We=ie.forwardRef(Vt);We.displayName="Checkbox";const $e=({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],u=n[n.length-1],f=c=>{if(c.key==="Tab"){if(c.shiftKey){if(document.activeElement===s)c.preventDefault(),u.focus(),l=u;else for(let x=0;x<n.length;x++)if(n[x]===document.activeElement){l=n[x-1];break}}else if(!c.shiftKey){if(document.activeElement===u)c.preventDefault(),s.focus(),l=s;else for(let x=0;x<n.length;x++)if(n[x]===document.activeElement){l=n[x+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]),p("div",{ref:a,children:t})},Wt=({children:t,className:o,disabled:a,type:n="button",...l},s)=>p("button",{className:g(["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}),Q=b.forwardRef(Wt);Q.displayName="IconButton";const $t=({className:t,children:o,component:a="a",...n},l)=>b.createElement(a,{...n,className:g(["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),Ae=b.forwardRef($t);Ae.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),Mt=({className:t,disabled:o,endIcon:a,error:n,hint:l,label:s,name:u,onChange:f,placeholder:m,startIcon:w,value:c,...x},P)=>{const I=b.useRef(null),O=At({forwardedRef:P,innerRef:I}),[K,D]=b.useState(Boolean(c)),[j,T]=b.useState(!1);b.useEffect(()=>{var W;D(Boolean((W=O==null?void 0:O.current)==null?void 0:W.value)||Boolean(c||m))},[c,m,O]);const J=W=>{var ee;D(Boolean((ee=O==null?void 0:O.current)==null?void 0:ee.value)||Boolean(c||m)),f&&f(W)},V=()=>{o||!O.current||(O.current.focus(),T(!0))},me=()=>{T(!1)};return C("div",{className:"flex items-start flex-col gap-0.5",children:[C("div",{className:g(["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?p("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:w}):null,C("span",{className:"relative flex flex-1 overflow-hidden",children:[p("input",{className:g(["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:u,onBlur:me,onChange:J,placeholder:m,ref:O,value:c,...x}),p("label",{className:g("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||K?"text-13 -translate-y-1.5":"text-16"),htmlFor:u,children:s})]}),a?p("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:a}):null]}),n||l?C("div",{className:"flex flex-col",children:[n?p("span",{className:"text-alert dark:text-alert-dark",children:n}):null,l?p("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:l}):null]}):null]})},Me=b.forwardRef(Mt);Me.displayName="Input";const Ye=({className:t,children:o,component:a="a",icon:n,iconPosition:l,variant:s="primary",size:u="md",...f},m)=>{const w=ce(n!==void 0?l:void 0);return C(({children:x})=>b.createElement(a,{...f,className:g([fe,pe[s],w[u],t]),ref:m},x),{children:[l==="start"&&n!==void 0?b.createElement(n,{className:"mr-0.5 min-w-min",size:z[u]}):null,b.createElement("span",{className:"truncate"},o),l==="end"&&n!==void 0?b.createElement(n,{className:"ml-0.5 min-w-min",size:z[u]}):null]})},Ue=b.forwardRef(Ye);Ue.displayName="LinkButton";const Yt=({children:t,className:o,...a},n)=>p("ul",{className:g(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",o]),ref:n,...a,children:t}),qe=b.forwardRef(Yt);qe.displayName="List";const Ut=({children:t,className:o,divider:a,endAction:n,endIcon:l,onClick:s,startAction:u,startIcon:f,...m},w)=>{const c=x=>{s&&(x.code==="Enter"||x.key===" ")&&s()};return C("li",{className:g(["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,...m,children:[C("div",{className:g(["flex flex-1 py-2 gap-x-2 items-center",u?"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&&!u?p("div",{children:f}):null,p("div",{className:g(["flex-grow",u?"pis-2":null,n?"pie-2":null]),children:t}),l&&!n?p("div",{children:l}):null]}),u?p("div",{className:"absolute ltr:left-1 rtl:right-1",onClick:u,children:p(Q,{children:f})}):null,n?p("div",{className:"absolute ltr:right-1 rtl:left-1",onClick:n,children:p(Q,{children:l})}):null]})},ze=b.forwardRef(Ut);ze.displayName="ListItem";const qt=({children:t,className:o,endText:a,endTextProps:n,size:l="sm",subHeadline:s,subHeadlineProps:u})=>C("div",{className:"flex items-center justify-between break-words",children:[C("div",{className:"flex flex-col",children:[p(q,{className:o,size:l,variant:"label",children:t}),s?p(q,{...u,children:s}):null]}),a?p(q,{...n,children:a}):null]}),zt=({children:t,className:o,...a})=>p("div",{className:g(["relative",o]),...a,children:t}),Kt={"no-scrollbar":"_no-scrollbar_1ivfd_1"},Jt=({align:t,children:o,className:a,isDismissible:n,onClose:l,...s})=>{const u=b.useRef(null);b.useEffect(()=>{const m=c=>{switch(c.key){case"Escape":n&&l&&l();break;case" ":l&&l();break;case"Enter":l&&l();break}},w=c=>{typeof l=="function"&&(u.current&&!u.current.contains(c.target)?n&&l():l())};return window.addEventListener("click",w),document.addEventListener("keyup",m),()=>{window.removeEventListener("click",w),document.removeEventListener("keyup",m)}},[u,n,l]);const f=b.useMemo(()=>{const{horizontal:m,vertical:w}=t,c={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},x={bottom:"",top:"bottom-full"};return`${c[m]} ${x[w]}`},[t]);return p("div",{className:g(["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]",Kt["no-scrollbar"],f,a]),ref:u,...s,children:o})},Gt=({open:t,children:o})=>p(ue,{children:t?o:null}),Ht=({align:t={horizontal:"start",vertical:"bottom"},autoFocus:o=!0,children:a,className:n,isDismissible:l,isOpen:s,onClose:u,...f})=>p(Gt,{open:s,children:p($e,{autoFocus:o,children:p(Jt,{align:t,className:n,isDismissible:l,onClose:u,...f,children:a})})}),Xt=({onToggle:t,children:o,disabled:a})=>{const n=s=>{s.stopPropagation(),t()},l=b.cloneElement(o,{disabled:a,onClick:n});return p(ue,{children:l})},Zt={inputIcon:"_inputIcon_1pzdd_1"},Qt=({className:t,error:o,name:a,...n},l)=>C(ue,{children:[p("input",{className:g(["rounded-1 text-black dark:text-white p-2 border-small border-tertiary-light dark:border-tertiary-dark hover:cursor-pointer bg-transparent disabled:bg-gray-10 disabled:dark:bg-gray-40 disabled:cursor-auto",Zt.inputIcon,t]),id:a,name:a,ref:l,role:"textbox",type:"time",...n}),o?p("div",{className:"text-alert-light dark:text-alert-dark text-13",children:o}):null]}),Ke=b.forwardRef(Qt);Ke.displayName="TimePicker";const Je={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},er=({content:t,className:o,...a})=>p("div",{className:g(Je.tooltipWrapper,o),...a,children:p("span",{className:Je.tooltipContent,children:t})});y.Box=se,y.Breadcrumb=je,y.Breadcrumbs=Fe,y.Button=Ve,y.ButtonComponent=De,y.Checkbox=We,y.FocusTrap=$e,y.IconButton=Q,y.IconLinkButton=Ae,y.Input=Me,y.LinkButton=Ue,y.LinkButtonComponent=Ye,y.List=qe,y.ListItem=ze,y.ListItemText=qt,y.Popover=zt,y.PopoverBody=Ht,y.PopoverTrigger=Xt,y.TimePicker=Ke,y.Tooltip=er,y.buttonSizeOptions=Dt,y.defaultButtonClasses=fe,y.determineSizeClasses=ce,y.iconSizes=z,y.variantClasses=pe,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- ._no-scrollbar_1ivfd_1::-webkit-scrollbar{display:none}._no-scrollbar_1ivfd_1{-ms-overflow-style:none;scrollbar-width:none}._tooltipWrapper_qu88w_1{background:#fff;border-radius:8px;box-shadow:0 1px 3px #12121226;color:#121212;max-width:460px;padding-block:8px;padding-inline:12px;width:-moz-max-content;width:max-content}html[data-theme=dark] ._tooltipWrapper_qu88w_1{background:#2b3031;box-shadow:0 1px 3px #00000073;color:#fff}._tooltipContent_qu88w_18{font-size:.8125rem;font-style:normal;line-height:1.5}
1
+ ._no-scrollbar_1ivfd_1::-webkit-scrollbar{display:none}._no-scrollbar_1ivfd_1{-ms-overflow-style:none;scrollbar-width:none}html[data-theme=dark] ._inputIcon_1pzdd_1::-webkit-calendar-picker-indicator{filter:invert(100%)}._inputIcon_1pzdd_1::-webkit-calendar-picker-indicator:hover{cursor:pointer}._tooltipWrapper_qu88w_1{background:#fff;border-radius:8px;box-shadow:0 1px 3px #12121226;color:#121212;max-width:460px;padding-block:8px;padding-inline:12px;width:-moz-max-content;width:max-content}html[data-theme=dark] ._tooltipWrapper_qu88w_1{background:#2b3031;box-shadow:0 1px 3px #00000073;color:#fff}._tooltipContent_qu88w_18{font-size:.8125rem;font-style:normal;line-height:1.5}
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.11",
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",