@youversion/design-system-components 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/Box/Box.d.ts +44 -0
  3. package/dist/Box/Box.d.ts.map +1 -0
  4. package/dist/Box/index.d.ts +2 -0
  5. package/dist/Box/index.d.ts.map +1 -0
  6. package/dist/Button/Button.d.ts +62 -0
  7. package/dist/Button/Button.d.ts.map +1 -0
  8. package/dist/Button/index.d.ts +2 -0
  9. package/dist/Button/index.d.ts.map +1 -0
  10. package/dist/IconButton/IconButton.d.ts +27 -0
  11. package/dist/IconButton/IconButton.d.ts.map +1 -0
  12. package/dist/IconButton/index.d.ts +2 -0
  13. package/dist/IconButton/index.d.ts.map +1 -0
  14. package/dist/IconLinkButton/IconLinkButton.d.ts +34 -0
  15. package/dist/IconLinkButton/IconLinkButton.d.ts.map +1 -0
  16. package/dist/IconLinkButton/index.d.ts +2 -0
  17. package/dist/IconLinkButton/index.d.ts.map +1 -0
  18. package/dist/Input/Input.d.ts +47 -0
  19. package/dist/Input/Input.d.ts.map +1 -0
  20. package/dist/Input/index.d.ts +2 -0
  21. package/dist/Input/index.d.ts.map +1 -0
  22. package/dist/List/List.d.ts +32 -0
  23. package/dist/List/List.d.ts.map +1 -0
  24. package/dist/List/index.d.ts +2 -0
  25. package/dist/List/index.d.ts.map +1 -0
  26. package/dist/ListItem/ListItem.d.ts +35 -0
  27. package/dist/ListItem/ListItem.d.ts.map +1 -0
  28. package/dist/ListItem/index.d.ts +2 -0
  29. package/dist/ListItem/index.d.ts.map +1 -0
  30. package/dist/ListItemText/ListItemText.d.ts +34 -0
  31. package/dist/ListItemText/ListItemText.d.ts.map +1 -0
  32. package/dist/ListItemText/index.d.ts +2 -0
  33. package/dist/ListItemText/index.d.ts.map +1 -0
  34. package/dist/Tooltip/Tooltip.d.ts +34 -0
  35. package/dist/Tooltip/Tooltip.d.ts.map +1 -0
  36. package/dist/Tooltip/Tooltip.module.css.d.ts +6 -0
  37. package/dist/Tooltip/index.d.ts +2 -0
  38. package/dist/Tooltip/index.d.ts.map +1 -0
  39. package/dist/Typography/Heading/Heading.d.ts +30 -0
  40. package/dist/Typography/Heading/Heading.d.ts.map +1 -0
  41. package/dist/Typography/Heading/index.d.ts +2 -0
  42. package/dist/Typography/Heading/index.d.ts.map +1 -0
  43. package/dist/Typography/Text/Text.d.ts +19 -0
  44. package/dist/Typography/Text/Text.d.ts.map +1 -0
  45. package/dist/Typography/Text/index.d.ts +2 -0
  46. package/dist/Typography/Text/index.d.ts.map +1 -0
  47. package/dist/Typography/Typography.d.ts +44 -0
  48. package/dist/Typography/Typography.d.ts.map +1 -0
  49. package/dist/Typography/Variants.d.ts +5 -0
  50. package/dist/Typography/Variants.d.ts.map +1 -0
  51. package/dist/Typography/index.d.ts +3 -0
  52. package/dist/Typography/index.d.ts.map +1 -0
  53. package/dist/hooks/index.d.ts +2 -0
  54. package/dist/hooks/index.d.ts.map +1 -0
  55. package/dist/hooks/useCombinedRefs.d.ts +33 -0
  56. package/dist/hooks/useCombinedRefs.d.ts.map +1 -0
  57. package/dist/index.d.ts +10 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.es.js +669 -384
  60. package/dist/index.umd.js +10 -10
  61. package/dist/utils/get-resolved-dark-mode-value.d.ts +25 -0
  62. package/dist/utils/get-resolved-dark-mode-value.d.ts.map +1 -0
  63. package/dist/utils/get-resolved-logical-property.d.ts +25 -0
  64. package/dist/utils/get-resolved-logical-property.d.ts.map +1 -0
  65. package/dist/utils/tailwind-types.d.ts +29 -0
  66. package/dist/utils/tailwind-types.d.ts.map +1 -0
  67. package/package.json +7 -4
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(y,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("clsx"),require("react")):typeof define=="function"&&define.amd?define(["exports","clsx","react"],T):(y=typeof globalThis<"u"?globalThis:y||self,T(y["design-system-components"]={},y.clsx,y.React))})(this,function(y,T,N){"use strict";const J=i=>{if(i){if(typeof i!="string"&&i)return T(i.lightMode,i.darkMode);if(typeof i=="string")return i}},ie=i=>{if(i){if(typeof i!="string"&&i)return T(i.block,i.blockEnd,i.blockStart,i.inline,i.inlineEnd,i.inlineStart);if(typeof i=="string")return i}},We=({background:i,borderColor:b,borderRadius:S,borderWidth:w,className:x,component:j="div",color:P,elevation:m=0,height:c,margin:C,padding:v,width:h,...E},D)=>{const L={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=J(P),K=J(i),O=J(b),d=ie(v),H=ie(C),X=T(S,w,L[m],H,d,z,K,O,h,c,x);return N.createElement(j,{className:X,...E,ref:D})},Ie=N.forwardRef(We);var G={},Ye={get exports(){return G},set exports(i){G=i}},W={};/**
1
+ (function(y,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("clsx"),require("react")):typeof define=="function"&&define.amd?define(["exports","clsx","react"],c):(y=typeof globalThis<"u"?globalThis:y||self,c(y["design-system-components"]={},y.clsx,y.React))})(this,function(y,c,x){"use strict";const re=a=>{if(a){if(typeof a!="string"&&a)return c(a.lightMode,a.darkMode);if(typeof a=="string")return a}},pe=a=>{if(a){if(typeof a!="string"&&a)return c(a.block,a.blockEnd,a.blockStart,a.inline,a.inlineEnd,a.inlineStart);if(typeof a=="string")return a}},ot=({background:a,borderColor:s,borderRadius:u,borderWidth:d,className:v,component:w="div",color:R,elevation:k=0,height:g,margin:_,padding:p,width:S,...P},I)=>{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"},U=re(R),B=re(a),j=re(s),m=pe(p),q=pe(_),A=c(u,d,C[k],q,m,U,B,j,S,g,v);return x.createElement(w,{className:A,...P,ref:I})},ae=x.forwardRef(ot);ae.displayName="Box";var H={},it={get exports(){return H},set exports(a){H=a}},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 se;function Me(){if(se)return W;se=1;var i=N,b=Symbol.for("react.element"),S=Symbol.for("react.fragment"),w=Object.prototype.hasOwnProperty,x=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j={key:!0,ref:!0,__self:!0,__source:!0};function P(m,c,C){var v,h={},E=null,D=null;C!==void 0&&(E=""+C),c.key!==void 0&&(E=""+c.key),c.ref!==void 0&&(D=c.ref);for(v in c)w.call(c,v)&&!j.hasOwnProperty(v)&&(h[v]=c[v]);if(m&&m.defaultProps)for(v in c=m.defaultProps,c)h[v]===void 0&&(h[v]=c[v]);return{$$typeof:b,type:m,key:E,ref:D,props:h,_owner:x.current}}return W.Fragment=S,W.jsx=P,W.jsxs=P,W}var I={};/**
9
+ */var ve;function st(){if(ve)return Y;ve=1;var a=x,s=Symbol.for("react.element"),u=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,v=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function R(k,g,_){var p,S={},P=null,I=null;_!==void 0&&(P=""+_),g.key!==void 0&&(P=""+g.key),g.ref!==void 0&&(I=g.ref);for(p in g)d.call(g,p)&&!w.hasOwnProperty(p)&&(S[p]=g[p]);if(k&&k.defaultProps)for(p in g=k.defaultProps,g)S[p]===void 0&&(S[p]=g[p]);return{$$typeof:s,type:k,key:P,ref:I,props:S,_owner:v.current}}return Y.Fragment=u,Y.jsx=R,Y.jsxs=R,Y}var M={};/**
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 ue;function Ne(){return ue||(ue=1,process.env.NODE_ENV!=="production"&&function(){var i=N,b=Symbol.for("react.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),m=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),L=Symbol.iterator,z="@@iterator";function K(e){if(e===null||typeof e!="object")return null;var r=L&&e[L]||e[z];return typeof r=="function"?r:null}var O=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];H("error",e,t)}}function H(e,r,t){{var n=O.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var X=!1,Ve=!1,$e=!1,Ue=!1,Be=!1,ce;ce=Symbol.for("react.module.reference");function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===w||e===j||Be||e===x||e===C||e===v||Ue||e===D||X||Ve||$e||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===h||e.$$typeof===P||e.$$typeof===m||e.$$typeof===c||e.$$typeof===ce||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function de(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 w:return"Fragment";case S:return"Portal";case j:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m:var r=e;return de(r)+".Consumer";case P:var t=e;return de(t._context)+".Provider";case c:return Je(e,e.render,"ForwardRef");case h:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case E:{var s=e,u=s._payload,o=s._init;try{return _(o(u))}catch{return null}}}return null}var k=Object.assign,Y=0,ve,pe,ge,he,ye,be,me;function Ee(){}Ee.__reactDisabledLog=!0;function Ge(){{if(Y===0){ve=console.log,pe=console.info,ge=console.warn,he=console.error,ye=console.group,be=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function ze(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ve}),info:k({},e,{value:pe}),warn:k({},e,{value:ge}),error:k({},e,{value:he}),group:k({},e,{value:ye}),groupCollapsed:k({},e,{value:be}),groupEnd:k({},e,{value:me})})}Y<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=O.ReactCurrentDispatcher,Q;function V(e,r,t){{if(Q===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);Q=n&&n[1]||""}return`
18
- `+Q+e}}var ee=!1,$;{var Ke=typeof WeakMap=="function"?WeakMap:Map;$=new Ke}function _e(e,r){if(!e||ee)return"";{var t=$.get(e);if(t!==void 0)return t}var n;ee=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=Z.current,Z.current=null,Ge();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(R){n=R}Reflect.construct(e,[],o)}else{try{o.call()}catch(R){n=R}e.call(o.prototype)}}else{try{throw Error()}catch(R){n=R}e()}}catch(R){if(R&&n&&typeof R.stack=="string"){for(var a=R.stack.split(`
19
- `),p=n.stack.split(`
20
- `),f=a.length-1,l=p.length-1;f>=1&&l>=0&&a[f]!==p[l];)l--;for(;f>=1&&l>=0;f--,l--)if(a[f]!==p[l]){if(f!==1||l!==1)do if(f--,l--,l<0||a[f]!==p[l]){var g=`
21
- `+a[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,g),g}while(f>=1&&l>=0);break}}}finally{ee=!1,Z.current=u,ze(),Error.prepareStackTrace=s}var A=e?e.displayName||e.name:"",Ae=A?V(A):"";return typeof e=="function"&&$.set(e,Ae),Ae}function He(e,r,t){return _e(e,!1)}function Xe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return _e(e,Xe(e));if(typeof e=="string")return V(e);switch(e){case C:return V("Suspense");case v:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return He(e.render);case h:return U(e.type,r,t);case E:{var n=e,s=n._payload,u=n._init;try{return U(u(s),r,t)}catch{}}}return""}var B=Object.prototype.hasOwnProperty,Re={},Te=O.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}function Ze(e,r,t,n,s){{var u=Function.call.bind(B);for(var o in e)if(u(e,o)){var a=void 0;try{if(typeof e[o]!="function"){var p=Error((n||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}a=e[o](r,o,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){a=f}a&&!(a instanceof Error)&&(q(s),d("%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).",n||"React class",t,o,typeof a),q(null)),a instanceof Error&&!(a.message in Re)&&(Re[a.message]=!0,q(s),d("Failed %s type: %s",t,a.message),q(null))}}}var Qe=Array.isArray;function re(e){return Qe(e)}function er(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function rr(e){try{return we(e),!1}catch{return!0}}function we(e){return""+e}function Ce(e){if(rr(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",er(e)),we(e)}var M=O.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0},Oe,Se,te;te={};function nr(e){if(B.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function ar(e){if(B.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&M.current&&r&&M.current.stateNode!==r){var t=_(M.current.type);te[t]||(d('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',_(M.current.type),e.ref),te[t]=!0)}}function ir(e,r){{var t=function(){Oe||(Oe=!0,d("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function sr(e,r){{var t=function(){Se||(Se=!0,d("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ur=function(e,r,t,n,s,u,o){var a={$$typeof:b,type:e,key:r,ref:t,props:o,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function fr(e,r,t,n,s){{var u,o={},a=null,p=null;t!==void 0&&(Ce(t),a=""+t),ar(r)&&(Ce(r.key),a=""+r.key),nr(r)&&(p=r.ref,or(r,s));for(u in r)B.call(r,u)&&!tr.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var f=e.defaultProps;for(u in f)o[u]===void 0&&(o[u]=f[u])}if(a||p){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ir(o,l),p&&sr(o,l)}return ur(e,a,p,s,n,M.current,o)}}var ne=O.ReactCurrentOwner,Pe=O.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}var ae;ae=!1;function oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function ke(){{if(ne.current){var e=_(ne.current.type);if(e)return`
17
+ */var be;function lt(){return be||(be=1,process.env.NODE_ENV!=="production"&&function(){var a=x,s=Symbol.for("react.element"),u=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),k=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),C=Symbol.iterator,U="@@iterator";function B(e){if(e===null||typeof e!="object")return null;var t=C&&e[C]||e[U];return typeof t=="function"?t:null}var j=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];q("error",e,r)}}function q(e,t,r){{var n=j.ReactDebugCurrentFrame,l=n.getStackAddendum();l!==""&&(t+="%s",r=r.concat([l]));var f=r.map(function(i){return String(i)});f.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,f)}}var A=!1,oe=!1,V=!1,X=!1,xt=!1,De;De=Symbol.for("react.module.reference");function kt(e){return!!(typeof e=="string"||typeof e=="function"||e===d||e===w||xt||e===v||e===_||e===p||X||e===I||A||oe||V||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===S||e.$$typeof===R||e.$$typeof===k||e.$$typeof===g||e.$$typeof===De||e.getModuleId!==void 0))}function Et(e,t,r){var n=e.displayName;if(n)return n;var l=t.displayName||t.name||"";return l!==""?r+"("+l+")":r}function Le(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&m("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 d:return"Fragment";case u:return"Portal";case w:return"Profiler";case v:return"StrictMode";case _:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case k:var t=e;return Le(t)+".Consumer";case R:var r=e;return Le(r._context)+".Provider";case g:return Et(e,e.render,"ForwardRef");case S:var n=e.displayName||null;return n!==null?n:N(e.type)||"Memo";case P:{var l=e,f=l._payload,i=l._init;try{return N(i(f))}catch{return null}}}return null}var D=Object.assign,J=0,Be,Ae,Ve,We,$e,Ye,Me;function Ue(){}Ue.__reactDisabledLog=!0;function wt(){{if(J===0){Be=console.log,Ae=console.info,Ve=console.warn,We=console.error,$e=console.group,Ye=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function _t(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:Be}),info:D({},e,{value:Ae}),warn:D({},e,{value:Ve}),error:D({},e,{value:We}),group:D({},e,{value:$e}),groupCollapsed:D({},e,{value:Ye}),groupEnd:D({},e,{value:Me})})}J<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=j.ReactCurrentDispatcher,se;function Z(e,t,r){{if(se===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);se=n&&n[1]||""}return`
18
+ `+se+e}}var le=!1,Q;{var Rt=typeof WeakMap=="function"?WeakMap:Map;Q=new Rt}function qe(e,t){if(!e||le)return"";{var r=Q.get(e);if(r!==void 0)return r}var n;le=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var f;f=ie.current,ie.current=null,wt();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(F){n=F}Reflect.construct(e,[],i)}else{try{i.call()}catch(F){n=F}e.call(i.prototype)}}else{try{throw Error()}catch(F){n=F}e()}}catch(F){if(F&&n&&typeof F.stack=="string"){for(var o=F.stack.split(`
19
+ `),T=n.stack.split(`
20
+ `),b=o.length-1,h=T.length-1;b>=1&&h>=0&&o[b]!==T[h];)h--;for(;b>=1&&h>=0;b--,h--)if(o[b]!==T[h]){if(b!==1||h!==1)do if(b--,h--,h<0||o[b]!==T[h]){var O=`
21
+ `+o[b].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,O),O}while(b>=1&&h>=0);break}}}finally{le=!1,ie.current=f,_t(),Error.prepareStackTrace=l}var $=e?e.displayName||e.name:"",nt=$?Z($):"";return typeof e=="function"&&Q.set(e,nt),nt}function Ct(e,t,r){return qe(e,!1)}function Tt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function z(e,t,r){if(e==null)return"";if(typeof e=="function")return qe(e,Tt(e));if(typeof e=="string")return Z(e);switch(e){case _:return Z("Suspense");case p:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return Ct(e.render);case S:return z(e.type,t,r);case P:{var n=e,l=n._payload,f=n._init;try{return z(f(l),t,r)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,Je={},Ge=j.ReactDebugCurrentFrame;function te(e){if(e){var t=e._owner,r=z(e.type,e._source,t?t.type:null);Ge.setExtraStackFrame(r)}else Ge.setExtraStackFrame(null)}function St(e,t,r,n,l){{var f=Function.call.bind(ee);for(var i in e)if(f(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var T=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}o=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){o=b}o&&!(o instanceof Error)&&(te(l),m("%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).",n||"React class",r,i,typeof o),te(null)),o instanceof Error&&!(o.message in Je)&&(Je[o.message]=!0,te(l),m("Failed %s type: %s",r,o.message),te(null))}}}var Ot=Array.isArray;function ue(e){return Ot(e)}function Pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function jt(e){try{return He(e),!1}catch{return!0}}function He(e){return""+e}function Ke(e){if(jt(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pt(e)),He(e)}var G=j.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},Xe,Ze,de;de={};function Ft(e){if(ee.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function It(e){if(ee.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Dt(e,t){if(typeof e.ref=="string"&&G.current&&t&&G.current.stateNode!==t){var r=N(G.current.type);de[r]||(m('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',N(G.current.type),e.ref),de[r]=!0)}}function Lt(e,t){{var r=function(){Xe||(Xe=!0,m("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function Bt(e,t){{var r=function(){Ze||(Ze=!0,m("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var At=function(e,t,r,n,l,f,i){var o={$$typeof:s,type:e,key:t,ref:r,props:i,_owner:f};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function Vt(e,t,r,n,l){{var f,i={},o=null,T=null;r!==void 0&&(Ke(r),o=""+r),It(t)&&(Ke(t.key),o=""+t.key),Ft(t)&&(T=t.ref,Dt(t,l));for(f in t)ee.call(t,f)&&!Nt.hasOwnProperty(f)&&(i[f]=t[f]);if(e&&e.defaultProps){var b=e.defaultProps;for(f in b)i[f]===void 0&&(i[f]=b[f])}if(o||T){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&Lt(i,h),T&&Bt(i,h)}return At(e,o,T,l,n,G.current,i)}}var fe=j.ReactCurrentOwner,Qe=j.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,r=z(e.type,e._source,t?t.type:null);Qe.setExtraStackFrame(r)}else Qe.setExtraStackFrame(null)}var ce;ce=!1;function ge(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function ze(){{if(fe.current){var e=N(fe.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function lr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function Wt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),r=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var xe={};function cr(e){{var r=ke();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+t+":"+r+"."}return""}}var et={};function $t(e){{var t=ze();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(xe[t])return;xe[t]=!0;var n="";e&&e._owner&&e._owner!==ne.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),F(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),F(null)}}function De(e,r){{if(typeof e!="object")return;if(re(e))for(var t=0;t<e.length;t++){var n=e[t];oe(n)&&je(n,r)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var s=K(e);if(typeof s=="function"&&s!==e.entries)for(var u=s.call(e),o;!(o=u.next()).done;)oe(o.value)&&je(o.value,r)}}}function dr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===h))t=r.propTypes;else return;if(t){var n=_(r);Ze(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ae){ae=!0;var s=_(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){F(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),F(null);break}}e.ref!==null&&(F(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}function Fe(e,r,t,n,s,u){{var o=qe(e);if(!o){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 p=lr(s);p?a+=p:a+=ke();var f;e===null?f="null":re(e)?f="array":e!==void 0&&e.$$typeof===b?(f="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):f=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",f,a)}var l=fr(e,r,t,s,u);if(l==null)return l;if(o){var g=r.children;if(g!==void 0)if(n)if(re(g)){for(var A=0;A<g.length;A++)De(g[A],e);Object.freeze&&Object.freeze(g)}else d("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 De(g,e)}return e===w?vr(l):dr(l),l}}function pr(e,r,t){return Fe(e,r,t,!0)}function gr(e,r,t){return Fe(e,r,t,!1)}var hr=gr,yr=pr;I.Fragment=w,I.jsx=hr,I.jsxs=yr}()),I}(function(i){process.env.NODE_ENV==="production"?i.exports=Me():i.exports=Ne()})(Ye);const fe=G.jsx,le={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Le=({content:i,className:b,...S})=>fe("div",{className:T(le.tooltipWrapper,b),...S,children:fe("span",{className:le.tooltipContent,children:i})});y.Box=Ie,y.Tooltip=Le,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
27
+ Check the top-level render call using <`+r+">.")}return t}}function tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=$t(t);if(et[r])return;et[r]=!0;var n="";e&&e._owner&&e._owner!==fe.current&&(n=" It was passed a child from "+N(e._owner.type)+"."),W(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),W(null)}}function rt(e,t){{if(typeof e!="object")return;if(ue(e))for(var r=0;r<e.length;r++){var n=e[r];ge(n)&&tt(n,t)}else if(ge(e))e._store&&(e._store.validated=!0);else if(e){var l=B(e);if(typeof l=="function"&&l!==e.entries)for(var f=l.call(e),i;!(i=f.next()).done;)ge(i.value)&&tt(i.value,t)}}}function Yt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===S))r=t.propTypes;else return;if(r){var n=N(t);St(r,e.props,"prop",n,e)}else if(t.PropTypes!==void 0&&!ce){ce=!0;var l=N(t);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",l||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if(n!=="children"&&n!=="key"){W(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),W(null);break}}e.ref!==null&&(W(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}function at(e,t,r,n,l,f){{var i=kt(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 T=Wt(l);T?o+=T:o+=ze();var b;e===null?b="null":ue(e)?b="array":e!==void 0&&e.$$typeof===s?(b="<"+(N(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,o)}var h=Vt(e,t,r,l,f);if(h==null)return h;if(i){var O=t.children;if(O!==void 0)if(n)if(ue(O)){for(var $=0;$<O.length;$++)rt(O[$],e);Object.freeze&&Object.freeze(O)}else m("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 rt(O,e)}return e===d?Mt(h):Yt(h),h}}function Ut(e,t,r){return at(e,t,r,!0)}function qt(e,t,r){return at(e,t,r,!1)}var Jt=qt,Gt=Ut;M.Fragment=d,M.jsx=Jt,M.jsxs=Gt}()),M}(function(a){process.env.NODE_ENV==="production"?a.exports=st():a.exports=lt()})(it);const E=H.jsx,L=H.jsxs,me={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"},he={lg:30,md:24,sm:18,xl:36,xs:12},ye={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"},xe=({className:a,children:s,disabled:u,icon:d,iconPosition:v,variant:w="md",theme:R="primary",...k},g)=>{const _=c("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",me[w],ye[R],a);return L("button",{...k,className:_,disabled:u,ref:g,children:[E("span",{children:v==="start"&&d!==void 0&&x.createElement(d,{className:"mr-0.5",size:he[w]})}),E("span",{className:"truncate",children:s}),E("span",{children:v==="end"&&d!==void 0&&x.createElement(d,{className:"ml-0.5",size:he[w]})})]})},ke=x.forwardRef(xe);ke.displayName="Button";const ut=({children:a,className:s,disabled:u,...d},v)=>E("button",{className:c(["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",s]),disabled:u,ref:v,...d,children:a}),Ee=x.forwardRef(ut);Ee.displayName="IconButton";const dt=({className:a,children:s,component:u="a",...d},v)=>x.createElement(u,{...d,className:c(["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",a]),ref:v},s),we=x.forwardRef(dt);we.displayName="IconLinkButton";const ft=({innerRef:a,forwardedRef:s})=>(x.useEffect(()=>{[a,s].forEach(u=>{u&&(typeof u=="function"?u(a.current||null):u.current=a.current||null)})},[a,s]),a),ct=({className:a,disabled:s,endIcon:u,error:d,hint:v,label:w,name:R,onChange:k,placeholder:g,startIcon:_,value:p,...S},P)=>{const I=x.useRef(null),C=ft({forwardedRef:P,innerRef:I}),[U,B]=x.useState(Boolean(p)),[j,m]=x.useState(!1);x.useEffect(()=>{var V;B(Boolean((V=C==null?void 0:C.current)==null?void 0:V.value)||Boolean(p||g))},[p,g,C]);const q=V=>{var X;B(Boolean((X=C==null?void 0:C.current)==null?void 0:X.value)||Boolean(p||g)),k&&k(V)},A=()=>{s||!C.current||(C.current.focus(),m(!0))},oe=()=>{m(!1)};return L("div",{className:"flex items-start flex-col gap-0.5",children:[L("div",{className:c(["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",s?"bg-gray-10 dark:bg-gray-40":null,d?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:A,onFocus:A,children:[_?E("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:_}):null,L("span",{className:"relative flex flex-1 overflow-hidden",children:[E("input",{className:c(["self-stretch bg-transparent flex-auto outline-none overflow-hidden pbs-3 pbe-1",_?"pis-1":"pis-2",u?"pie-1":"pie-2",a]),disabled:s,id:R,onBlur:oe,onChange:q,placeholder:g,ref:C,value:p,...S}),E("label",{className:c("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute top-2 select-none",_?"left-1 rtl:right-1":"left-2 rtl:right-2",j||U?"text-13 -translate-y-1.5":"text-16"),htmlFor:R,children:w})]}),u?E("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:u}):null]}),d||v?L("div",{className:"flex flex-col",children:[d?E("span",{className:"text-alert dark:text-alert-dark",children:d}):null,v?E("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:v}):null]}):null]})},_e=x.forwardRef(ct);_e.displayName="Input";const gt=({children:a,className:s,...u},d)=>E("ul",{className:c(["w-fit bg-canvas-light dark:bg-canvas-dark shadow-light-8 dark:shadow-dark-8 rounded-1 py-0.5",s]),ref:d,...u,children:a}),Re=x.forwardRef(gt);Re.displayName="List";const pt=({children:a,className:s,divider:u,endIcon:d,onClick:v,startIcon:w,...R},k)=>L("li",{className:c(["flex items-center gap-x-2 px-2 py-2 box-border relative",u?"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,v?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-40":null,s]),onClick:v,ref:k,...R,children:[w?E("div",{children:w}):null,a,d?E("div",{children:d}):null]}),Ce=x.forwardRef(pt);Ce.displayName="ListItem";const 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"},K={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"},ne={...K,base:"font-regular leading-loose",xl:"text-23 md:text-28"},Se={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"},Pe={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},je={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"},vt=({size:a,variant:s})=>{switch(s){case"headline":return c(Te.base,Te[a]);case"label":return c(K.base,a?K[a]:K.default);case"paragraph":return c(ne.base,a?ne[a]:ne.default);case"eyebrow":return c(Se.base,Se[a]);case"caption":return c(Oe.base,Oe[a]);case"buttonLabel":return c(Pe.base,Pe[a]);case"fieldLabel":return c(je.base,je[a]);case"fieldTextInput":return c(Ne.base,Ne[a]);default:return a}},bt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},mt=({className:a,component:s="p",children:u,font:d="primary",size:v,variant:w,...R},k)=>{const g="text-text-light dark:text-text-dark",_=bt[d],p=vt({size:v,variant:w});return E(ae,{className:c(g,p,_,a),component:s,ref:k,...R,children:u})},Fe=x.forwardRef(mt);Fe.displayName="Text";const ht=({children:a,className:s,size:u="sm"})=>E(Fe,{className:c(["flex-grow",s]),size:u,variant:"label",children:a}),Ie={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},yt=({content:a,className:s,...u})=>E("div",{className:c(Ie.tooltipWrapper,s),...u,children:E("span",{className:Ie.tooltipContent,children:a})});y.Box=ae,y.Button=ke,y.ButtonComponent=xe,y.IconButton=Ee,y.IconLinkButton=we,y.Input=_e,y.List=Re,y.ListItem=Ce,y.ListItemText=ht,y.Tooltip=yt,y.themeClasses=ye,y.variantClasses=me,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,25 @@
1
+ import { BgDarkModeProperties, BorderDarkModeProperties, TextDarkModeProperties } from './tailwind-types';
2
+ type DarkModeProperties = TextDarkModeProperties | BgDarkModeProperties | BorderDarkModeProperties;
3
+ /**
4
+ * A utililty function that handles returning the correct light & dark mode tailwind classes.
5
+ *
6
+ * @param value - Either a `string` or an object with the type of {@link DarkMode}.
7
+ * @returns - Returns a `string` of either the `value` prop or a combination of the light and dark mode values.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { getResolvedDarkModeValue } from '@utils/get-resolved-dark-mode-value';
12
+ *
13
+ * const color = {
14
+ * lightMode: 'text-gray-50',
15
+ * darkMode: 'dark:text-gray-10'
16
+ * }
17
+ *
18
+ * const resolvedColor = getResolvedDarkModeValue(color);
19
+ * @returns 'text-gray-50 dark:text-gray-10'
20
+ *
21
+ * ```
22
+ */
23
+ export declare const getResolvedDarkModeValue: <T extends string | DarkModeProperties>(value?: T | undefined) => string | undefined;
24
+ export {};
25
+ //# sourceMappingURL=get-resolved-dark-mode-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-resolved-dark-mode-value.d.ts","sourceRoot":"","sources":["../../../src/utils/get-resolved-dark-mode-value.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1G,KAAK,kBAAkB,GAAG,sBAAsB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAEnG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,oEAAuD,MAAM,GAAG,SAUpG,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { MarginLogicalProperties, PaddingLogicalProperties } from './tailwind-types';
2
+ type FlowRelativeProperties = MarginLogicalProperties | PaddingLogicalProperties;
3
+ /**
4
+ * A utililty function that handles returning the correct logical tailwind classes.
5
+ *
6
+ * @param value - Either a `string` or an object with the type of {@link FlowRelativeProperties}.
7
+ * @returns - Returns a `string` of either the `value` prop or a combination of the logical property values.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { getResolvedLogicalProperty } from '@utils/get-resolved-logical-property';
12
+ *
13
+ * const padding = {
14
+ * inline: 'pli-1',
15
+ * block: 'plb-1',
16
+ * }
17
+ *
18
+ * const resolvedPadding = getResolvedLogicalProperty(padding);
19
+ * @returns 'pli-1 plb-1'
20
+ *
21
+ * ```
22
+ */
23
+ export declare const getResolvedLogicalProperty: <T extends string | FlowRelativeProperties>(value?: T | undefined) => string | undefined;
24
+ export {};
25
+ //# sourceMappingURL=get-resolved-logical-property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-resolved-logical-property.d.ts","sourceRoot":"","sources":["../../../src/utils/get-resolved-logical-property.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAErF,KAAK,sBAAsB,GAAG,uBAAuB,GAAG,wBAAwB,CAAC;AAEjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,0BAA0B,wEAEpC,MAAM,GAAG,SAUX,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { BorderRadius, BorderWidth, Colors, Spacing } from '@youversion/design-system-tokens';
2
+ export type TWClasses = string | object;
3
+ export type DarkModeProperties<Prefix extends Lowercase<string>> = {
4
+ darkMode?: `dark:${Prefix}-${Colors}`;
5
+ lightMode?: `${Prefix}-${Colors}`;
6
+ };
7
+ export type TextDarkModeProperties = DarkModeProperties<'text'>;
8
+ export type BgDarkModeProperties = DarkModeProperties<'bg'>;
9
+ export type BorderDarkModeProperties = DarkModeProperties<'border'>;
10
+ export type ColorOptions = `text-${Colors}` | TextDarkModeProperties;
11
+ export type BGColorOptions = `bg-${Colors}` | BgDarkModeProperties;
12
+ export type WidthOptions = `w-${Spacing}`;
13
+ export type HeightOptions = `h-${Spacing}`;
14
+ export type BorderRadiusOptions = `rounded-${BorderRadius}`;
15
+ export type BorderWidthOptions = `border-${BorderWidth}`;
16
+ export type BorderColorOptions = `border-${Colors}` | BorderDarkModeProperties;
17
+ export type LogicalProperties<Prefix extends Lowercase<string>> = {
18
+ block?: `${Prefix}lb-${Spacing}` | `${Prefix}y-${Spacing}`;
19
+ blockEnd?: `${Prefix}be-${Spacing}` | `${Prefix}b-${Spacing}`;
20
+ blockStart?: `${Prefix}bs-${Spacing}` | `${Prefix}t-${Spacing}`;
21
+ inline?: `${Prefix}li-${Spacing}` | `${Prefix}x-${Spacing}`;
22
+ inlineEnd?: `${Prefix}ie-${Spacing}` | `${Prefix}r-${Spacing}`;
23
+ inlineStart?: `${Prefix}is-${Spacing}` | `${Prefix}l-${Spacing}`;
24
+ };
25
+ export type MarginLogicalProperties = LogicalProperties<'m'>;
26
+ export type PaddingLogicalProperties = LogicalProperties<'p'>;
27
+ export type PaddingOptions = `p-${Spacing}` | PaddingLogicalProperties;
28
+ export type MarginOptions = `m-${Spacing}` | MarginLogicalProperties;
29
+ //# sourceMappingURL=tailwind-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind-types.d.ts","sourceRoot":"","sources":["../../../src/utils/tailwind-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAE9F,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,SAAS,CAAC,MAAM,CAAC,IAAI;IACjE,QAAQ,CAAC,EAAE,QAAQ,MAAM,IAAI,MAAM,EAAE,CAAC;IACtC,SAAS,CAAC,EAAE,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;AAChE,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC5D,MAAM,MAAM,wBAAwB,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,QAAQ,MAAM,EAAE,GAAG,sBAAsB,CAAC;AACrE,MAAM,MAAM,cAAc,GAAG,MAAM,MAAM,EAAE,GAAG,oBAAoB,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG,KAAK,OAAO,EAAE,CAAC;AAC1C,MAAM,MAAM,aAAa,GAAG,KAAK,OAAO,EAAE,CAAC;AAC3C,MAAM,MAAM,mBAAmB,GAAG,WAAW,YAAY,EAAE,CAAC;AAC5D,MAAM,MAAM,kBAAkB,GAAG,UAAU,WAAW,EAAE,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,UAAU,MAAM,EAAE,GAAG,wBAAwB,CAAC;AAE/E,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,SAAS,CAAC,MAAM,CAAC,IAAI;IAChE,KAAK,CAAC,EAAE,GAAG,MAAM,MAAM,OAAO,EAAE,GAAG,GAAG,MAAM,KAAK,OAAO,EAAE,CAAC;IAC3D,QAAQ,CAAC,EAAE,GAAG,MAAM,MAAM,OAAO,EAAE,GAAG,GAAG,MAAM,KAAK,OAAO,EAAE,CAAC;IAC9D,UAAU,CAAC,EAAE,GAAG,MAAM,MAAM,OAAO,EAAE,GAAG,GAAG,MAAM,KAAK,OAAO,EAAE,CAAC;IAChE,MAAM,CAAC,EAAE,GAAG,MAAM,MAAM,OAAO,EAAE,GAAG,GAAG,MAAM,KAAK,OAAO,EAAE,CAAC;IAC5D,SAAS,CAAC,EAAE,GAAG,MAAM,MAAM,OAAO,EAAE,GAAG,GAAG,MAAM,KAAK,OAAO,EAAE,CAAC;IAC/D,WAAW,CAAC,EAAE,GAAG,MAAM,MAAM,OAAO,EAAE,GAAG,GAAG,MAAM,KAAK,OAAO,EAAE,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;AAE9D,MAAM,MAAM,cAAc,GAAG,KAAK,OAAO,EAAE,GAAG,wBAAwB,CAAC;AACvE,MAAM,MAAM,aAAa,GAAG,KAAK,OAAO,EAAE,GAAG,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "dist/**"
11
11
  ],
12
12
  "scripts": {
13
- "generate:css-types": "tcm -p '**/*.module.css' src -c",
13
+ "generate:css-types": "tcm -p '**/*.module.css' src",
14
14
  "dev": "yarn generate:css-types -w",
15
15
  "build": "vite build",
16
16
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@youversion/design-system-core": "0.0.1",
25
25
  "@youversion/design-system-icons": "0.0.1",
26
- "@youversion/design-system-tokens": "0.0.1",
26
+ "@youversion/design-system-tokens": "0.0.2",
27
27
  "clsx": "1.2.1",
28
28
  "react": "18.2.0"
29
29
  },
@@ -52,7 +52,8 @@
52
52
  "ts-node": "10.9.1",
53
53
  "typed-css-modules": "0.7.2",
54
54
  "typescript": "4.9.3",
55
- "vite": "4.1.4"
55
+ "vite": "4.1.4",
56
+ "vite-plugin-dts": "2.1.0"
56
57
  },
57
58
  "exports": {
58
59
  ".": {
@@ -60,6 +61,8 @@
60
61
  "require": "./dist/index.umd.js"
61
62
  },
62
63
  "./postcss-config": "./postcss.config.cjs",
64
+ "./global.css": "./dist/styles/global.css",
65
+ "./reset.css": "./dist/styles/global.css",
63
66
  "./styles": "./src/styles/index.css",
64
67
  "./dist/style.css": "./dist/style.css"
65
68
  }