@youversion/design-system-components 0.19.0 → 0.20.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b244409: Update table background colors for dark mode
8
+
3
9
  ## 0.19.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.es.js CHANGED
@@ -4381,7 +4381,7 @@ function Xa({ active: e, children: t, component: r = "a", className: n, href: o
4381
4381
  }
4382
4382
  );
4383
4383
  }
4384
- const xa = ue.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i("div", { className: "w-full overflow-auto pbs-1 pis-1 pie-1 pbe-1.5 bg-white dark:bg-canvas-dark rounded-3 shadow-light-2 dark:shadow-dark-2", children: /* @__PURE__ */ i("table", { className: u("w-full", e), ref: r, ...t }) }));
4384
+ const xa = ue.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ i("div", { className: "w-full overflow-auto pbs-1 pis-1 pie-1 pbe-1.5 bg-white dark:bg-canvas-secondary-dark rounded-3 shadow-light-2 dark:shadow-dark-2", children: /* @__PURE__ */ i("table", { className: u("w-full", e), ref: r, ...t }) }));
4385
4385
  xa.displayName = "Table";
4386
4386
  const ya = ue.forwardRef(
4387
4387
  ({ className: e, ...t }, r) => /* @__PURE__ */ i("tbody", { className: u(e), ref: r, ...t })
@@ -4392,7 +4392,7 @@ const wa = ue.forwardRef(
4392
4392
  "td",
4393
4393
  {
4394
4394
  className: u(
4395
- "p-1 align-middle first:rounded-s-1 last:rounded-e-1 group-even:bg-canvas-secondary-light dark:group-even:bg-canvas-secondary-dark [&:not(:last-child)]:border-e-[0.5px] border-tertiary-light dark:border-tertiary-dark",
4395
+ "p-1 align-middle first:rounded-s-1 last:rounded-e-1 group-even:bg-canvas-secondary-light dark:group-even:bg-canvas-dark [&:not(:last-child)]:border-e-[0.5px] border-tertiary-light dark:border-tertiary-dark",
4396
4396
  e
4397
4397
  ),
4398
4398
  ref: r,
package/dist/index.umd.js CHANGED
@@ -1,3 +1,3 @@
1
1
  (function(m,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("clsx"),require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","clsx","react/jsx-runtime","react","react-dom"],Z):(m=typeof globalThis<"u"?globalThis:m||self,Z(m["design-system-components"]={},m.clsx,m["react/jsx-runtime"],m.React))})(this,function(m,Z,n,d){"use strict";function br(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const re=br(d);var gr=Object.defineProperty,hr=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ze=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vr=(e,t)=>{for(var r in t||(t={}))_e.call(t,r)&&Ze(e,r,t[r]);if(ge)for(var r of ge(t))Ue.call(t,r)&&Ze(e,r,t[r]);return e},yr=(e,t)=>hr(e,mr(t)),xr=(e,t)=>{var r={};for(var o in e)_e.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ge)for(var o of ge(e))t.indexOf(o)<0&&Ue.call(e,o)&&(r[o]=e[o]);return r},wr=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=xr(r,["title","titleId"]);return n.jsxs("svg",yr(vr({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.207 10a.5.5 0 0 0-.354.854l3.793 3.792a.5.5 0 0 0 .707 0l3.793-3.792a.5.5 0 0 0-.353-.854H8.207Z",fill:"currentColor"})]}))},kr=d.forwardRef(wr),qe=kr,Ke={0:"0px",px:"1px","0.25":"2px","0.5":"4px",1:"8px","1.5":"12px",2:"16px",3:"24px",4:"32px",5:"40px",6:"48px",8:"64px",10:"80px",12:"96px",16:"128px",20:"144px",22:"160px",full:"100%"},Xe={borderRadius:Ke,borderWidth:{none:"0px",small:"1px",standard:"2px",large:"3px"}},Le={fontSize:{11:"0.6875rem",13:"0.8125rem",16:"1rem",19:"1.1875rem",23:"1.4375rem",28:"1.75rem",33:"2.0625rem",40:"2.5rem",48:"3rem",57:"3.5625rem",69:"4.3125rem",83:"5.1875rem",99:"6.1875rem",119:"7.4375rem",143:"8.9375rem"},fontWeight:{thin:100,regular:400,medium:500,bold:700},fontFamily:{"aktiv-grotesk":'Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"aktiv-grotesk-exanded":'Aktiv Grotesk Expanded, Aktiv Grotesk, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',"untitled-serif":"Untitled Serif, Baskerville, Georgia, Times New Roman, serif"},lineHeight:{0:0,tight:1,comfy:1.1,default:1.25,loose:1.5}};function Sr(){for(var e=0,t,r,o="";e<arguments.length;)(t=arguments[e++])&&(r=Je(t))&&(o&&(o+=" "),o+=r);return o}function Je(e){if(typeof e=="string")return e;for(var t,r="",o=0;o<e.length;o++)e[o]&&(t=Je(e[o]))&&(r&&(r+=" "),r+=t);return r}var Me="-";function Nr(e){var t=Er(e),r=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,a=o===void 0?{}:o;function l(i){var c=i.split(Me);return c[0]===""&&c.length!==1&&c.shift(),Ye(c,t)||Cr(i)}function s(i,c){var u=r[i]||[];return c&&a[i]?[].concat(u,a[i]):u}return{getClassGroupId:l,getConflictingClassGroupIds:s}}function Ye(e,t){var s;if(e.length===0)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),a=o?Ye(e.slice(1),o):void 0;if(a)return a;if(t.validators.length!==0){var l=e.join(Me);return(s=t.validators.find(function(i){var c=i.validator;return c(l)}))==null?void 0:s.classGroupId}}var Re=/^\[(.+)\]$/;function Cr(e){if(Re.test(e)){var t=Re.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Er(e){var t=e.theme,r=e.prefix,o={nextPart:new Map,validators:[]},a=Lr(Object.entries(e.classGroups),r);return a.forEach(function(l){var s=l[0],i=l[1];Pe(i,o,s,t)}),o}function Pe(e,t,r,o){e.forEach(function(a){if(typeof a=="string"){var l=a===""?t:Qe(t,a);l.classGroupId=r;return}if(typeof a=="function"){if(Ir(a)){Pe(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var i=s[0],c=s[1];Pe(c,Qe(t,i),r,o)})})}function Qe(e,t){var r=e;return t.split(Me).forEach(function(o){r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Ir(e){return e.isThemeGetter}function Lr(e,t){return t?e.map(function(r){var o=r[0],a=r[1],l=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(i){var c=i[0],u=i[1];return[t+c,u]})):s});return[o,l]}):e}function Mr(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,o=new Map;function a(l,s){r.set(l,s),t++,t>e&&(t=0,o=r,r=new Map)}return{get:function(s){var i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set:function(s,i){r.has(s)?r.set(s,i):a(s,i)}}}var et="!";function Pr(e){var t=e.separator||":",r=t.length===1,o=t[0],a=t.length;return function(s){for(var i=[],c=0,u=0,g,h=0;h<s.length;h++){var y=s[h];if(c===0){if(y===o&&(r||s.slice(h,h+a)===t)){i.push(s.slice(u,h)),u=h+a;continue}if(y==="/"){g=h;continue}}y==="["?c++:y==="]"&&c--}var v=i.length===0?s:s.substring(u),p=v.startsWith(et),x=p?v.substring(1):v,w=g&&g>u?g-u:void 0;return{modifiers:i,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:w}}}function Tr(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(o){var a=o[0]==="[";a?(t.push.apply(t,r.sort().concat([o])),r=[]):r.push(o)}),t.push.apply(t,r.sort()),t}function zr(e){return{cache:Mr(e.cacheSize),splitModifiers:Pr(e),...Nr(e)}}var Br=/\s+/;function jr(e,t){var r=t.splitModifiers,o=t.getClassGroupId,a=t.getConflictingClassGroupIds,l=new Set;return e.trim().split(Br).map(function(s){var i=r(s),c=i.modifiers,u=i.hasImportantModifier,g=i.baseClassName,h=i.maybePostfixModifierPosition,y=o(h?g.substring(0,h):g),v=!!h;if(!y){if(!h)return{isTailwindClass:!1,originalClassName:s};if(y=o(g),!y)return{isTailwindClass:!1,originalClassName:s};v=!1}var p=Tr(c).join(":"),x=u?p+et:p;return{isTailwindClass:!0,modifierId:x,classGroupId:y,originalClassName:s,hasPostfixModifier:v}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var i=s.modifierId,c=s.classGroupId,u=s.hasPostfixModifier,g=i+c;return l.has(g)?!1:(l.add(g),a(c,u).forEach(function(h){return l.add(i+h)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function tt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a,l,s=i;function i(u){var g=t[0],h=t.slice(1),y=h.reduce(function(v,p){return p(v)},g());return o=zr(y),a=o.cache.get,l=o.cache.set,s=c,c(u)}function c(u){var g=a(u);if(g)return g;var h=jr(u,o);return l(u,h),h}return function(){return s(Sr.apply(null,arguments))}}function k(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ar=/^\d+\/\d+$/,Gr=new Set(["px","full","screen"]),Fr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/,Wr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function D(e){return q(e)||Gr.has(e)||Ar.test(e)||_(e)}function _(e){return K(e,"length",Ur)}function Hr(e){return K(e,"size",ot)}function Or(e){return K(e,"position",ot)}function $r(e){return K(e,"url",Zr)}function he(e){return K(e,"number",q)}function q(e){return!Number.isNaN(Number(e))}function Vr(e){return e.endsWith("%")&&q(e.slice(0,-1))}function se(e){return nt(e)||K(e,"number",nt)}function I(e){return rt.test(e)}function ie(){return!0}function U(e){return Fr.test(e)}function _r(e){return K(e,"",qr)}function K(e,t,r){var o=rt.exec(e);return o?o[1]?o[1]===t:r(o[2]):!1}function Ur(e){return Dr.test(e)}function ot(){return!1}function Zr(e){return e.startsWith("url(")}function nt(e){return Number.isInteger(Number(e))}function qr(e){return Wr.test(e)}function at(){var e=k("colors"),t=k("spacing"),r=k("blur"),o=k("brightness"),a=k("borderColor"),l=k("borderRadius"),s=k("borderSpacing"),i=k("borderWidth"),c=k("contrast"),u=k("grayscale"),g=k("hueRotate"),h=k("invert"),y=k("gap"),v=k("gradientColorStops"),p=k("gradientColorStopPositions"),x=k("inset"),w=k("margin"),L=k("opacity"),E=k("padding"),j=k("saturate"),C=k("scale"),N=k("sepia"),b=k("skew"),V=k("space"),P=k("translate"),J=function(){return["auto","contain","none"]},M=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",t]},F=function(){return["",D]},T=function(){return["auto",q,I]},ne=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},H=function(){return["solid","dashed","dotted","double","none"]},Ee=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},ae=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",I]},Ie=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},R=function(){return[q,he]},le=function(){return[q,I]};return{cacheSize:500,theme:{colors:[ie],spacing:[D],blur:["none","",U,_],brightness:R(),borderColor:[e],borderRadius:["none","","full",U,_],borderSpacing:[t],borderWidth:F(),contrast:R(),grayscale:Y(),hueRotate:le(),invert:Y(),gap:[t],gradientColorStops:[e],gradientColorStopPositions:[Vr,_],inset:W(),margin:W(),opacity:R(),padding:[t],saturate:R(),scale:R(),sepia:Y(),skew:le(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Ie()}],"break-before":[{"break-before":Ie()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(ne(),[I])}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",se]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",se]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:[se]},I]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[se]},I]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal"].concat(ae())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(ae(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(ae(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",D]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[U]},U,_]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",D]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",he]}],"font-family":[{font:[ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",_]}],"line-clamp":[{"line-clamp":["none",q,he]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(H(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",D]}],"underline-offset":[{"underline-offset":["auto",D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ne(),[Or])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Hr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$r]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[].concat(H(),["hidden"])}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:H()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(H())}],"outline-offset":[{"outline-offset":[D]}],"outline-w":[{outline:[D]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[D]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,_r]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":Ee()}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",U,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[h]}],saturate:[{saturate:[j]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[se,I]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-ms":[{"scroll-ms":[t]}],"scroll-me":[{"scroll-me":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-ps":[{"scroll-ps":[t]}],"scroll-pe":[{"scroll-pe":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[D,he]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Kr(e,t){for(var r in t)lt(e,r,t[r]);return e}var Xr=Object.prototype.hasOwnProperty,Jr=new Set(["string","number","boolean"]);function lt(e,t,r){if(!Xr.call(e,t)||Jr.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var o in r)lt(e[t],o,r[o])}}function Yr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return typeof e=="function"?tt.apply(void 0,[at,e].concat(r)):tt.apply(void 0,[function(){return Kr(at(),e)}].concat(r))}const Rr=Object.keys(Le.fontSize),Qr=Object.keys(Le.fontWeight),eo=Object.keys(Le.lineHeight),G=Object.keys(Ke),to=Object.keys(Xe.borderWidth),ro=Object.keys(Xe.borderRadius),oo=Yr({classGroups:{"font-size":[{text:Rr}],"font-weight":[{font:Qr}],leading:[{leading:eo}],mbe:[{mbe:G}],mbs:[{mbs:G}],mie:[{mie:G}],mis:[{mis:G}],mlb:[{mlb:G}],mli:[{mli:G}],pbe:[{pbe:G}],pbs:[{pbs:G}],pie:[{pie:G}],pis:[{pis:G}],plb:[{plb:G}],pli:[{pli:G}]},conflictingClassGroups:{m:["mie","mis","mbe","mbs","mlb","mli"],mlb:["mbe","mbs"],mli:["mie","mis"],mx:["mie","mis","mli"],my:["mbe","mbs","mlb"],p:["pie","pis","pbe","pbs","plb","pli"],plb:["pbe","pbs"],pli:["pie","pis"],px:["pie","pis","pli"],py:["pbe","pbs","plb"]},theme:{borderRadius:ro,borderWidth:to}});function f(...e){return oo(Z(e))}const Te=e=>{if(e){if(typeof e!="string"&&e)return Z(e.lightMode,e.darkMode);if(typeof e=="string")return e}},st=e=>{if(e){if(typeof e!="string"&&e)return Z(e.block,e.blockEnd,e.blockStart,e.inline,e.inlineEnd,e.inlineStart);if(typeof e=="string")return e}},no=({background:e,borderColor:t,borderRadius:r,borderWidth:o,className:a,component:l="div",color:s,elevation:i=0,height:c,margin:u,padding:g,width:h,...y},v)=>{const p={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"},x=Te(s),w=Te(e),L=Te(t),E=st(g),j=st(u),C=f(r,o,p[i],j,E,x,w,L,h,c,a);return d.createElement(l,{className:C,...y,ref:v})},S=d.forwardRef(no);S.displayName="Box";const de=({innerRef:e,forwardedRef:t})=>(d.useEffect(()=>{[e,t].forEach(r=>{r&&(typeof r=="function"?r(e.current||null):r.current=e.current||null)})},[e,t]),e);function it(){d.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const ao=({className:e,disabled:t,endIcon:r,error:o,hint:a,label:l,name:s,onChange:i,placeholder:c,startIcon:u,value:g,...h},y)=>{const v=d.useRef(null),p=de({forwardedRef:y,innerRef:v}),[x,w]=d.useState(!!g),[L,E]=d.useState(!1);d.useEffect(()=>{var b;w(!!((b=p==null?void 0:p.current)!=null&&b.value)||!!(g||c))},[g,c,p]);const j=b=>{var V;w(!!((V=p==null?void 0:p.current)!=null&&V.value)||!!(g||c)),i&&i(b)},C=()=>{t||!p.current||(p.current.focus(),E(!0))},N=()=>{E(!1)};return n.jsxs("div",{className:f(["flex items-start flex-col gap-0.5",e]),children:[n.jsxs("div",{className:f(["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",t?"bg-gray-10 dark:bg-gray-40":null,o?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),onClick:C,onFocus:C,children:[u?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:u}):null,n.jsxs("span",{className:"relative flex flex-1 overflow-hidden",children:[n.jsx("input",{className:f(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px]",u?"pis-1":"pis-2",r?"pie-1":"pie-2",l?"pbs-3 pbe-1":"pbs-2 pbe-2"]),disabled:t,id:s,onBlur:N,onChange:j,placeholder:c,ref:p,value:g,...h}),l?n.jsx("label",{className:f("items-center text-text-muted-light dark:text-text-muted-dark flex font-regular leading-loose pointer-events-none absolute block-start-2 select-none",u?"inline-start-1":"inline-start-2",L||x?"text-13 -translate-y-1.5":"text-16"),htmlFor:s,children:l}):null]}),r?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:r}):null]}),o||a?n.jsxs("div",{className:"flex flex-col",children:[o?n.jsx("span",{className:"text-alert dark:text-alert-dark",children:o}):null,a?n.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:a}):null]}):null]})},ze=d.forwardRef(ao);ze.displayName="Input";const lo=({children:e,className:t,...r},o)=>n.jsx("ul",{className:f(["bg-canvas-light dark:bg-canvas-secondary-dark rounded-1 py-0.5",t]),ref:o,...r,children:e}),Be=d.forwardRef(lo);Be.displayName="List";const so=({children:e,className:t,disabled:r,divider:o,onClick:a,...l},s)=>{const i=c=>{a&&(c.code==="Enter"||c.key===" ")&&a()};return n.jsx("li",{className:f(["flex items-center box-border relative",o?"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,t]),ref:s,...l,children:n.jsx("div",{className:f(["flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",a?"cursor-pointer hover:bg-gray-10 hover:dark:bg-gray-50":void 0,r?"pointer-events-none":""]),onClick:a,onKeyUp:i,onTouchEnd:a,tabIndex:a?0:void 0,children:e})})},me=d.forwardRef(so);me.displayName="ListItem";const io=({label:e,name:t,options:r,disabled:o=!1,error:a,hint:l,noOptionsText:s,onChange:i,onSelect:c,value:u,...g},h)=>{const y=d.useRef(null),v=d.useRef(null),[p,x]=d.useState(u),[w,L]=d.useState(!1);d.useImperativeHandle(h,()=>({clearSelection(){x(null),i("")},...y.current}),[i]);const E=b=>{w||L(!0),!b.length&&p&&x(null),i(b)},j=b=>{c(b),i(b.label),x(b.label),L(!1)},C=d.useCallback(b=>{v.current&&!v.current.contains(b.target)&&(!p&&u&&i(""),p&&u&&i(p),L(!1))},[i,p,u]),N=d.useMemo(()=>r.filter(b=>b.label.toLowerCase().includes(u.toLowerCase()))??[],[r,u]);return d.useEffect(()=>(document.addEventListener("click",C,!0),()=>{document.removeEventListener("click",C,!0)}),[C]),n.jsxs(S,{className:"relative",ref:v,children:[n.jsx(ze,{disabled:o,endIcon:n.jsx(qe,{size:"24"}),error:a,hint:l,label:e,name:t??e,onChange:b=>{E(b.target.value)},onFocus:()=>L(!0),ref:y,value:u??"",...g}),w?n.jsx(S,{className:"absolute top-[calc(100%+1px)] w-full z-50",children:n.jsx(Be,{className:"max-h-[300px] overflow-y-auto",children:N.length?N.map((b,V)=>n.jsx(me,{onClick:()=>j(b),children:b.label},`${b.value}-${V}`)):n.jsx(me,{children:s},"no-options")})}):null]})},dt=d.forwardRef(io);dt.displayName="AutocompleteSelect";const ct={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"},ve={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"},je={...ve,base:"font-regular leading-loose",xl:"text-23 md:text-28"},ut={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"},ft={base:"font-regular leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},pt={base:"font-bold leading-default",xs:"text-11",sm:"text-13",md:"text-16",lg:"text-19"},bt={base:"font-medium leading-default text-text-muted-light dark:text-text-muted-dark",sm:"text-11",md:"text-13",lg:"text-16"},gt={base:"font-regular leading-loose",md:"text-16",lg:"text-19"},ht=({size:e,variant:t})=>{switch(t){case"headline":return f(ct.base,ct[e]);case"label":return f(ve.base,e?ve[e]:ve.default);case"paragraph":return f(je.base,e?je[e]:je.default);case"eyebrow":return f(ut.base,ut[e]);case"caption":return f(ft.base,ft[e]);case"buttonLabel":return f(pt.base,pt[e]);case"fieldLabel":return f(bt.base,bt[e]);case"fieldTextInput":return f(gt.base,gt[e]);default:return e}},mt={primary:"font-aktiv-grotesk",secondary:"font-untitled-serif"},co=({className:e,component:t="p",children:r,font:o="primary",size:a,variant:l,...s},i)=>{const c="text-text-light dark:text-text-dark",u=mt[o],g=ht({size:a,variant:l});return n.jsx(S,{className:f(c,g,u,e),component:t,ref:i,...s,children:r})},B=d.forwardRef(co);B.displayName="Text";const vt=({children:e,component:t="a",className:r,disabled:o,active:a,...l})=>n.jsx(B,{className:f(["font-bold text-gray-50 leading-default whitespace-nowrap",a?"underline decoration-yv-red decoration-2 underline-offset-8 text-16 leading-loose":"text-13",o?"cursor-none pointer-events-none text-text-muted-light dark:text-text-muted-dark":"",r]),component:t,...l,children:e});vt.displayName="Breadcrumb";var uo=Object.defineProperty,fo=Object.defineProperties,po=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,wt=(e,t,r)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bo=(e,t)=>{for(var r in t||(t={}))yt.call(t,r)&&wt(e,r,t[r]);if(ye)for(var r of ye(t))xt.call(t,r)&&wt(e,r,t[r]);return e},go=(e,t)=>fo(e,po(t)),ho=(e,t)=>{var r={};for(var o in e)yt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ye)for(var o of ye(e))t.indexOf(o)<0&&xt.call(e,o)&&(r[o]=e[o]);return r},mo=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=ho(r,["title","titleId"]);return n.jsxs("svg",go(bo({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("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"})]}))},vo=d.forwardRef(mo),yo=vo;const xo=({children:e,className:t,...r},o)=>{const a=d.Children.toArray(e),l=a.findIndex(s=>{var i;return d.isValidElement(s)?(i=s==null?void 0:s.props)==null?void 0:i.active:!1});return n.jsx("div",{className:f(["flex py-0.5 flex-row min-h-[48px] rtl:rotate-180",t]),ref:o,...r,children:a.map((s,i)=>n.jsxs("div",{className:"flex items-center",children:[i?n.jsx(yo,{className:f(["mx-1",i>l&&"text-gray-15",i<=l&&"text-gray-25"]),size:"15"}):null,typeof s=="object"&&"type"in s?d.createElement(s.type,{...s.props,className:f([s.props.className??"",i<l?"bg-gray-10 dark:bg-gray-40 py-1 px-2 rounded-3 cursor-pointer":"px-0.5",i>l&&"[&>*]:text-gray-15 [&>*]:text-16 [&>*]:leading-loose [&>*]:font-medium","rtl:rotate-180"])}):s]},`${i}-${s.toString()}`))})},kt=d.forwardRef(xo);kt.displayName="Breadcrumbs";const wo={lg:"lg",md:"md",sm:"sm",xl:"xl",xs:"xs"},Ae=e=>{switch(e){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"}}},ce={lg:30,md:24,sm:18,xl:36,xs:12},Ge="items-center leading-default font-bold ease-in-out duration-100 focus:ring-2 focus:ring-info-light dark:focus:ring-info-dark flex w-full max-w-fit h-fit",ue={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","risk:all_caps":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 disabled:text-gray-50 dark:disabled:text-white active:shadow-none dark:active:shadow-none uppercase","risk:borderless":"bg-transparent text-alert dark:text-alert-dark active:bg-gray-10 dark:active:bg-gray-40 hover:text-alert-light-hover hover:bg-white dark:hover:bg-gray-40 dark:hover:text-alert-dark-hover hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2 disabled:opacity-50 dark:disabled:bg-transparent active:shadow-none dark:active:shadow-none","risk:stroked":"bg-transparent ring ring-2 ring-alert dark:ring-alert-dark text-alert dark:text-alert-dark hover:bg-alert dark:hover:bg-alert-dark hover:text-white dark:hover:text-white active:bg-alert dark:active:bg-alert-dark disabled:opacity-50 disabled:bg-transparent dark:disabled:bg-transparent disabled:text-gray-50 dark:disabled:text-white hover:shadow-risk-light-2 dark:hover:shadow-risk-dark-2",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 ring ring-2 ring-gray-50 dark:ring-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"},St=({className:e,children:t,disabled:r,icon:o,iconAction:a,iconPosition:l,size:s="md",type:i="button",variant:c="primary",...u},g)=>{const h=Ae(o!==void 0?l:void 0),y=f(Ge,ue[c],h[s],e);return n.jsxs("button",{className:y,disabled:r,ref:g,type:i,...u,children:[l==="start"&&o!==void 0?d.createElement(o,{className:"mie-0.5",onClick:a??void 0,size:ce[s]}):null,n.jsx("span",{className:"truncate",children:t}),l==="end"&&o!==void 0?d.createElement(o,{className:"mis-0.5",onClick:a??void 0,size:ce[s]}):null]})},fe=d.forwardRef(St);fe.displayName="Button";const ko=({error:e,className:t,label:r,disabled:o,name:a,...l},s)=>{const i=d.useId(),c=d.useMemo(()=>`checkbox-label-${i}`,[i]);return n.jsxs("div",{className:f(["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",t]),children:[n.jsx("input",{"aria-labelledby":c,className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer",disabled:o,id:a,name:a,ref:s,type:"checkbox",...l}),r?n.jsx("div",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",children:n.jsx("label",{htmlFor:a,id:c,children:r})}):null,e?n.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:e}):null]})},Nt=d.forwardRef(ko);Nt.displayName="Checkbox";var So=Object.defineProperty,No=Object.defineProperties,Co=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,It=(e,t,r)=>t in e?So(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Eo=(e,t)=>{for(var r in t||(t={}))Ct.call(t,r)&&It(e,r,t[r]);if(xe)for(var r of xe(t))Et.call(t,r)&&It(e,r,t[r]);return e},Io=(e,t)=>No(e,Co(t)),Lo=(e,t)=>{var r={};for(var o in e)Ct.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&xe)for(var o of xe(e))t.indexOf(o)<0&&Et.call(e,o)&&(r[o]=e[o]);return r},Mo=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Lo(r,["title","titleId"]);return n.jsxs("svg",Io(Eo({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},Po=d.forwardRef(Mo),To=Po;const Fe=({children:e,autoFocus:t=!0})=>{const r=d.useRef(null);return d.useEffect(()=>{if(r.current){const o=r.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');let a=document.activeElement;const l=o[0],s=o[o.length-1],i=g=>{if(g.key==="Tab"){if(g.shiftKey){if(document.activeElement===l)g.preventDefault(),s.focus(),a=s;else for(let h=0;h<o.length;h++)if(o[h]===document.activeElement){a=o[h-1];break}}else if(!g.shiftKey){if(document.activeElement===s)g.preventDefault(),l.focus(),a=l;else for(let h=0;h<o.length;h++)if(o[h]===document.activeElement){a=o[h+1];break}}}};t&&(()=>{if(r.current){const g=r.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');g&&g.focus()}})();const u=g=>{r.current&&!r.current.contains(g.target)&&a.focus()};return document.addEventListener("keydown",i),document.addEventListener("click",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("click",u)}}},[t]),n.jsx("div",{ref:r,children:e})},zo=({children:e,className:t,disabled:r,type:o="button",variant:a="borderless",...l},s)=>n.jsx("button",{className:f(["rounded-full inline-flex justify-center items-center p-1",t,ue[a],r?"pointer-events-none":""]),disabled:r,ref:s,type:o,...l,children:e}),we=d.forwardRef(zo);we.displayName="IconButton";const Bo={1:"h1",2:"h2",3:"h3",4:"h4"},jo=({className:e,children:t,font:r="primary",level:o=1,size:a,variant:l,...s},i)=>{const c="text-text-light dark:text-text-dark",u=mt[r],g=ht({size:a,variant:l});return n.jsx(S,{className:f(c,g,u,e),component:Bo[o],ref:i,...s,children:t})},De=d.forwardRef(jo);De.displayName="Heading";const Ao=({autoFocus:e=!0,children:t,className:r,confirmationButtons:o,dialogType:a="confirmation",heading:l,isDismissableOnOutsideClick:s=!0,onClose:i,...c},u)=>{it();const g=a==="confirmation"?"max-w-[400px]":"max-w-[700px]";return n.jsxs("div",{className:"flex items-center justify-center w-full h-screen z-20 absolute inset-0",children:[n.jsx("div",{className:"absolute inset-0 bg-overlay-light dark:bg-overlay-dark","data-testid":"dialog-overlay",id:"overlay",onClick:s?i:void 0}),n.jsx(Fe,{autoFocus:e,children:n.jsxs("dialog",{className:f(" z-20 relative rounded-2 p-3 mlb-4 mli-2 bg-canvas-light dark:bg-canvas-dark",g,r),open:!0,ref:u,...c,children:[a==="modal"?n.jsx(we,{className:"absolute inline-end-2 block-start-2","data-testid":"close-modal-button",onClick:i,children:n.jsx(To,{})}):null,n.jsx("div",{children:l?n.jsx(De,{className:"pbe-1",size:"md",variant:"headline",children:l}):null}),n.jsx("div",{children:t}),n.jsx("div",{className:"w-full flex justify-end items-center pbs-2",children:o==null?void 0:o.map(({label:h,...y},v)=>n.jsx(fe,{"aria-label":h,size:"sm",variant:"all_caps",...y,children:h},`${h}${v}`))})]})})]})},Lt=d.forwardRef(Ao);Lt.displayName="Dialog";const Go=({className:e,...t})=>n.jsx("hr",{...t,className:f("w-full border-gray-15 dark:border-gray-30 border-standard",e)});function Fo({className:e,height:t,progress:r}){return n.jsx("div",{className:f([`w-full bg-gray-15 h-${t} rounded-3 overflow-hidden`,e]),children:n.jsx("div",{className:`bg-yv-red h-${t} ease-in-out duration-300`,style:{transitionProperty:"width",width:`${r}%`}})})}const Do=({className:e,children:t,component:r="a",variant:o="borderless",...a},l)=>d.createElement(r,{...a,className:f(["rounded-full inline-flex justify-center items-center p-1 no-underline cursor-pointer",ue[o],e]),ref:l},t),Mt=d.forwardRef(Do);Mt.displayName="IconLinkButton";var Wo=Object.defineProperty,Ho=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,zt=(e,t,r)=>t in e?Wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$o=(e,t)=>{for(var r in t||(t={}))Pt.call(t,r)&&zt(e,r,t[r]);if(ke)for(var r of ke(t))Tt.call(t,r)&&zt(e,r,t[r]);return e},Vo=(e,t)=>Ho(e,Oo(t)),_o=(e,t)=>{var r={};for(var o in e)Pt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ke)for(var o of ke(e))t.indexOf(o)<0&&Tt.call(e,o)&&(r[o]=e[o]);return r},Uo=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=_o(r,["title","titleId"]);return n.jsxs("svg",Vo($o({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 0 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}))},Zo=d.forwardRef(Uo),qo=Zo,Ko=Object.defineProperty,Xo=Object.defineProperties,Jo=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,At=(e,t,r)=>t in e?Ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yo=(e,t)=>{for(var r in t||(t={}))Bt.call(t,r)&&At(e,r,t[r]);if(Se)for(var r of Se(t))jt.call(t,r)&&At(e,r,t[r]);return e},Ro=(e,t)=>Xo(e,Jo(t)),Qo=(e,t)=>{var r={};for(var o in e)Bt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Se)for(var o of Se(e))t.indexOf(o)<0&&jt.call(e,o)&&(r[o]=e[o]);return r},en=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=Qo(r,["title","titleId"]);return n.jsxs("svg",Ro(Yo({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("path",{d:"M9.346 14.272c.15.228.499.228 1.194.228h5.628c.81 0 1.215 0 1.36-.262.145-.261-.07-.605-.5-1.292l-.667-1.068c-.386-.618-.58-.928-.861-.928s-.475.31-.861.928l-.453.724-1.252-2.924c-.4-.931-.6-1.397-.934-1.397-.335 0-.534.466-.934 1.397l-1.46 3.406c-.273.64-.41.96-.26 1.188ZM18 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.879 3.379C6 4.257 6 5.672 6 8.5v3c0 2.828 0 4.243.879 5.121.878.879 2.293.879 5.121.879h3c2.828 0 4.243 0 5.121-.879C21 15.743 21 14.328 21 11.5v-3c0-2.828 0-4.243-.879-5.121C19.243 2.5 17.828 2.5 15 2.5h-3c-2.828 0-4.243 0-5.121.879ZM18.02 4.623c-.65-.087-1.55-.092-3.021-.092h-3c-1.472 0-2.371.005-3.021.092-.301.04-.466.09-.554.126a.292.292 0 0 0-.11.066.292.292 0 0 0-.066.11 2.313 2.313 0 0 0-.126.554c-.087.65-.092 1.55-.092 3.021v3c0 1.472.005 2.371.092 3.021.04.301.09.466.126.554.03.072.05.095.066.11a.292.292 0 0 0 .11.066c.088.036.253.085.554.126.65.087 1.55.092 3.021.092h3c1.472 0 2.371-.005 3.021-.092.301-.04.466-.09.554-.126a.292.292 0 0 0 .11-.066.292.292 0 0 0 .066-.11c.036-.088.085-.253.126-.554.087-.65.092-1.55.092-3.021v-3c0-1.472-.005-2.371-.092-3.021a2.313 2.313 0 0 0-.126-.554.292.292 0 0 0-.066-.11.292.292 0 0 0-.11-.066 2.313 2.313 0 0 0-.554-.126Z",fill:"currentColor"}),n.jsx("path",{d:"M2 8.5c0-1 1-2 2-2v9a4 4 0 0 0 4 4h9c0 1-.887 2-2 2H8a6 6 0 0 1-6-6v-7Z",fill:"currentColor"})]}))},tn=d.forwardRef(en),rn=tn,on=Object.defineProperty,nn=Object.defineProperties,an=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Dt=(e,t,r)=>t in e?on(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ln=(e,t)=>{for(var r in t||(t={}))Gt.call(t,r)&&Dt(e,r,t[r]);if(Ne)for(var r of Ne(t))Ft.call(t,r)&&Dt(e,r,t[r]);return e},sn=(e,t)=>nn(e,an(t)),dn=(e,t)=>{var r={};for(var o in e)Gt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&Ne)for(var o of Ne(e))t.indexOf(o)<0&&Ft.call(e,o)&&(r[o]=e[o]);return r},cn=(e,t)=>{var r=e,{title:o,titleId:a}=r,l=dn(r,["title","titleId"]);return n.jsxs("svg",sn(ln({width:l.size||"24",height:l.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},l),{children:[o?n.jsx("title",{id:a,children:o}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a1 1 0 0 1 1-1 9 9 0 0 1 9 9 1 1 0 1 1-2 0 7.001 7.001 0 0 0-7-7 1 1 0 0 1-1-1Z",fill:"currentColor",children:n.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:l.dur,repeatCount:"indefinite"})})]}))},un=d.forwardRef(cn),Wt=un;const fn=({acceptedFileTypes:e=["image/*"],changeImageButtonLabel:t="Change",chooseImageButtonLabel:r="Choose Image",className:o,disabled:a=!1,dismissCallback:l,dismissImageAriaLabel:s="Remove Image",error:i="",fileMaxKbSizeError:c=(P,J)=>`${P} is too big to upload, the maximum size is ${J}kb. Please try again.`,fileMaxSizeError:u=P=>`${P} is too large to upload. The maximum dimensions are ${b==null?void 0:b.maxWidth}x${b==null?void 0:b.maxHeight}. Please try again.`,fileMinSizeError:g=P=>`${P} is too small to upload. The minimum dimensions are ${b==null?void 0:b.minWidth}x${b==null?void 0:b.minHeight}. Please try again.`,fileRatioError:h=P=>`${P} must have a ratio of, ${b==null?void 0:b.imageRatio}. Please try again.`,fileCallback:y,hero:v=!1,hint:p,imageWidth:x=160,imageSrc:w,label:L="Upload Image",name:E="imageUpload",onBlur:j,preProcessing:C,shape:N="circle",validation:b},V)=>{const P=d.useRef(null),J=de({forwardedRef:V,innerRef:P}),[M,W]=d.useState(void 0),[F,T]=d.useState(w?"resolved":"idle"),[ne,H]=d.useState(i),Ee=()=>P!=null&&P.current?P.current.click():void 0,ae=d.useMemo(()=>M&&F!=="rejected"?(T("resolved"),M.imageSrc):w&&F==="resolved"?(T("resolved"),w):null,[M,w,F]),Y=d.useMemo(()=>{const O=()=>{l&&l(w),W(void 0),T("idle")};switch(F){case"pending":return n.jsx(S,{className:"animate-spin",children:n.jsx(Wt,{className:"text-info-light dark:text-info-dark","data-testid":"loading spinner",size:"32"})});case"resolved":return n.jsxs(n.Fragment,{children:[n.jsx("img",{alt:`${M==null?void 0:M.id} preview`,className:f(["object-fit w-full h-full",N==="circle"?"rounded-full":"rounded-0.5",N!=="unset"||!v?"aspect-square":"",N==="unset"&&v?"aspect-video":"",N==="unset"&&!v?"!aspect-auto":""]),onLoad:()=>M!=null&&M.imageSrc?URL.revokeObjectURL(M.imageSrc):void 0,src:ae||void 0,width:x}),a?null:n.jsx(fe,{"aria-label":s,className:"absolute -top-0.5 -right-0.5 rounded-3 !p-0 !text-text-muted-light dark:text-text-muted-dark bg-white dark:bg-gray-40 dark:hover:bg-white dark:hover:!text-gray-45 hover:!text-white shadow-light-1 dark:shadow-dark-1","data-testid":"remove image",onClick:O,children:n.jsx(qo,{})})]});default:return n.jsx(S,{className:"gray-10 dark:gray-30",children:n.jsx(rn,{"data-testid":"placeholder image",size:"32"})})}},[a,l,s,v,M==null?void 0:M.id,M==null?void 0:M.imageSrc,w,F,x,ae,N]),Ie=({file:O,imageUrl:Q})=>new Promise((ee,te)=>{var pr;const A=new Image,be=(pr=b==null?void 0:b.imageRatio)==null?void 0:pr.split("/");A.onload=async()=>{if(b)if(b!=null&&b.maxByteSize&&O.size>b.maxByteSize){W(void 0),T("rejected");const Ea=c(O.name,Math.round(b.maxByteSize/1e3));return H(Ea),te(!1)}else{if(b!=null&&b.minWidth&&A.width<(b==null?void 0:b.minWidth)||b!=null&&b.minHeight&&A.height<(b==null?void 0:b.minHeight))return W(void 0),T("rejected"),H(g(O.name)),te(!1);if(b!=null&&b.maxHeight&&A.height>(b==null?void 0:b.maxHeight)||b!=null&&b.maxWidth&&A.width>(b==null?void 0:b.maxWidth))return W(void 0),T("rejected"),H(u(O.name)),te(!1);if(b!=null&&b.imageRatio&&(be==null?void 0:be.length)===2&&parseInt(be[0])/parseInt(be[1])!==A.width/A.height)return W(void 0),T("rejected"),H(h(O.name)),te(!1)}return x=A.width,typeof y=="function"&&(console.log("Callback"),await y(O,A)),H(""),ee(!0)},A.src=Q}),R=async O=>{try{const{files:Q}=O.target;if(Q){const ee=Q[0],te=URL.createObjectURL(ee);let A=!0;T("pending"),C&&await C(ee),A=await Ie({file:ee,imageUrl:te}),A&&(W({file:ee,id:ee.name,imageSrc:te}),T("resolved"))}}catch(Q){if(Q instanceof Error)throw Q}},le=f([N==="circle"&&!v?"rounded-full aspect-square":""]),z=f([N==="square"&&!v?"aspect-square rounded-1":""]),Na=f([N==="unset"&&!v?"rounded-1":"",N==="unset"&&F!=="idle"&&!v?"aspect-auto":"",N==="unset"&&F!=="resolved"&&!v?"aspect-square":""]),Ca=f([v?"rounded-1 aspect-video":""]);return n.jsxs(S,{className:f([o]),children:[n.jsxs(S,{className:f(["relative border-small border-solid rounded-1 mbe-0.5 pbs-1 pbe-2 px-2 text-text-muted-light dark:text-text-muted-dark",,ne?"border-alert-light dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark",a?"select-none bg-gray-10 dark:bg-gray-40 pointer-events-none":""]),children:[n.jsx(B,{className:"pbe-1.5 text-text-muted-light dark:text-text-muted-dark",children:n.jsx("label",{htmlFor:E,children:L})}),n.jsxs(S,{className:"flex relative flex-wrap justify-center md:justify-start",children:[n.jsx(S,{className:f(["flex justify-center items-center relative mbe-2 md:mbe-0 md:mie-2",v?"w-full":"md:w-1/2 w-4/5",a?"border-small border-solid border-tertiary-light":"",F!=="resolved"?"bg-gray-10 dark:bg-gray-3":"",le,z,Na,Ca]),children:Y}),n.jsx(fe,{className:f(["my-auto !ring-gray-15 dark:!ring-gray-30 !ring-1 disabled:!bg-gray-15 disabled:!ring-none",v?"!mbs-2":""]),disabled:a,onClick:Ee,size:"sm",variant:"stroked",children:F==="resolved"?t:r}),n.jsx("input",{accept:e.toString(),className:"hidden",disabled:a,id:E,name:E,onBlur:j,onChange:R,ref:J,title:"",type:"file",value:""})]})]}),ne?n.jsx(B,{className:"dark:!text-alert-dark !text-alert-light text-13",children:ne}):null,p?n.jsx(B,{className:"text-text-muted-light dark:text-text-muted-dark text-13",children:p}):null]})},Ht=d.forwardRef(fn);Ht.displayName="ImageUpload";const Ot=({className:e,children:t,component:r="a",icon:o,iconPosition:a,variant:l="primary",size:s="md",...i},c)=>{const u=Ae(o!==void 0?a:void 0),g=({children:h})=>d.createElement(r,{...i,className:f([Ge,ue[l],u[s],"no-underline cursor-pointer",e]),ref:c},h);return n.jsxs(g,{children:[a==="start"&&o!==void 0?d.createElement(o,{className:"mie-0.5 flex-shrink-0",size:ce[s]}):null,d.createElement("span",{className:"truncate"},t),a==="end"&&o!==void 0?d.createElement(o,{className:"mis-0.5 flex-shrink-0",size:ce[s]}):null]})},$t=d.forwardRef(Ot);$t.displayName="LinkButton";function pn({children:e,className:t,position:r}){let o="";return r&&(r==="start"?o="order-first":o="order-last"),n.jsx("div",{className:f("flex gap-1",o,t),children:e})}function bn({children:e,className:t}){return n.jsx("div",{className:f("flex-grow",t),children:e})}const gn=({children:e,className:t,endText:r,endTextProps:o,size:a="sm",subHeadline:l,subHeadlineProps:s})=>n.jsxs("div",{className:f(["flex items-center justify-between break-words",t]),children:[n.jsxs("div",{className:"flex flex-col",children:[n.jsx(B,{size:a,variant:"label",children:e}),l?n.jsx(B,{...s,children:l}):null]}),r?n.jsx(B,{...o,children:r}):null]});function hn({"aria-label":e="Loading…",duration:t=.9,iconSize:r="40px",className:o,color:a="text-gray-15",height:l="h-full",width:s="w-full",iconProps:i={}}){return n.jsx(S,{"aria-label":e,className:f(["items-center flex justify-center",a,l,s,o]),children:n.jsx(Wt,{...i,dur:`${t}s`,height:r,width:r})})}const mn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.293a1 1 0 0 1 0 1.414l-4.94 4.94a.5.5 0 0 0 0 .707l4.94 4.939a1 1 0 0 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 5.293a1 1 0 0 1 0 1.414l-4.94 4.94a.5.5 0 0 0 0 .707l4.94 4.939a1 1 0 0 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"})]}),vn=d.forwardRef(mn),yn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.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"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.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"})]}),xn=d.forwardRef(yn),wn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.707 5.293a1 1 0 0 1 0 1.414l-5.116 5.116a.25.25 0 0 0 0 .354l5.116 5.116a1 1 0 1 1-1.414 1.414l-5.647-5.646a1.5 1.5 0 0 1 0-2.122l5.647-5.646a1 1 0 0 1 1.414 0Z",fill:"currentColor"})]}),kn=d.forwardRef(wn),Sn=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("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"})]}),Nn=d.forwardRef(Sn),Cn=({page:e,pages:t,maxPages:r=5})=>{const o=(r-1)/2,a=Math.floor(o),l=Math.ceil(o),s=Math.min(r,t.length);let i=e-a;return e-a<=1?i=1:e+l>=t.length&&(i=Math.max(1,t.length-r+1)),Array.from(Array(s).keys()).map(u=>u+i).map(u=>t[u-1])},En=({pages:e,currentPage:t,onClick:r,component:o="button",pageLabel:a=u=>`Go to page ${u}`,nextLabel:l="Go to next page",previousLabel:s="Go to previous page",firstLabel:i="Go to first page",lastLabel:c="Go to last page"})=>{const u="w-4 h-4 mli-0.5 flex justify-center items-center rounded-full cursor-pointer leading-snug",g=f(u,"bg-transparent hover:bg-gray-35 hover:dark:bg-white text-muted-light","dark:text-text-muted-dark hover:!text-canvas-light hover:dark:text-gray-50","border border-transparent focus:border-info focus:dark:border-info","hover:border-transparent hover:dark:border-transparent"),h=g,y=f(u,"bg-yv-red !text-white dark:!text-white"),v=d.useMemo(()=>Cn({page:e.findIndex(p=>p===t)+1,pages:e}),[e,t]);return n.jsxs(S,{className:"h-4 flex items-center justify-center",children:[t!==e[0]?n.jsxs(n.Fragment,{children:[n.jsx(S,{"aria-label":i,className:f(h,"hidden md:flex mli-0"),component:o,onClick:()=>r(e[0]),children:n.jsx(vn,{size:"16"})}),n.jsx(S,{"aria-label":s,className:f(h,"mli-0"),component:o,onClick:()=>r(e[e.findIndex(p=>p===t)-1]),children:n.jsx(kn,{size:"16"})})]}):null,v.map(p=>n.jsx(S,{"aria-label":a(e.findIndex(x=>x===p)+1),className:f(p===t?y:g,"hidden md:flex"),component:o,onClick:()=>r(p),children:n.jsx(B,{className:f(p===t?y:"text-inherit hover:text-inherit","hidden md:flex"),size:"sm",variant:"fieldLabel",children:e.findIndex(x=>x===p)+1})},p)),n.jsx(B,{className:"text-text-muted-light dark:text-text-muted-dark flex items-center md:hidden",size:"sm",variant:"paragraph",children:`${e.indexOf(t)+1} of ${e.length}`}),t!==e[e.length-1]?n.jsxs(n.Fragment,{children:[n.jsx(S,{"aria-label":l,className:f(g,h,"mli-0"),component:o,onClick:()=>r(e[e.findIndex(p=>p===t)+1]),children:n.jsx(Nn,{size:"16"})}),n.jsx(S,{"aria-label":c,className:f(g,h,"hidden md:flex mli-0"),component:o,onClick:()=>r(e[e.length-1]),children:n.jsx(xn,{size:"16"})})]}):null]})},In=({children:e,className:t,...r})=>n.jsx("div",{className:f(["relative",t]),...r,children:e}),Ln=typeof window<"u"?d.useLayoutEffect:()=>{};let pe=new Map,Vt=new Set;function _t(){if(typeof window>"u")return;let e=r=>{let o=pe.get(r.target);o||(o=new Set,pe.set(r.target,o),r.target.addEventListener("transitioncancel",t)),o.add(r.propertyName)},t=r=>{let o=pe.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",t),pe.delete(r.target)),pe.size===0)){for(let a of Vt)a();Vt.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?_t():document.addEventListener("DOMContentLoaded",_t));function Mn(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Pn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Tn(){return Pn(/^Mac/i)}function zn(){return Mn(/Android/i)}function Bn(e){return e.mozInputSource===0&&e.isTrusted?!0:zn()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function We(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jn=d.createContext(null);jn.displayName="PressResponderContext";class An{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Gn(e){let t=d.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Ln(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),d.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,a=l=>{var s,i;t.current.isFocused=!1,o.disabled&&((i=(s=t.current).onBlur)===null||i===void 0||i.call(s,new An("blur",l))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&o.disabled&&(t.current.observer.disconnect(),o.dispatchEvent(new FocusEvent("blur")),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[])}let Fn=new Set,Ut=!1,X=!1,He=!1;function Oe(e,t){for(let r of Fn)r(e,t)}function Dn(e){return!(e.metaKey||!Tn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zt(e){X=!0,Dn(e)&&Oe("keyboard",e)}function oe(e){(e.type==="mousedown"||e.type==="pointerdown")&&(X=!0,Oe("pointer",e))}function Wn(e){Bn(e)&&(X=!0)}function Hn(e){e.target===window||e.target===document||(!X&&!He&&Oe("virtual",e),X=!1,He=!1)}function On(){X=!1,He=!0}function qt(){if(typeof window>"u"||Ut)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){X=!0,e.apply(this,arguments)},document.addEventListener("keydown",Zt,!0),document.addEventListener("keyup",Zt,!0),document.addEventListener("click",Wn,!0),window.addEventListener("focus",Hn,!0),window.addEventListener("blur",On,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",oe,!0),document.addEventListener("pointermove",oe,!0),document.addEventListener("pointerup",oe,!0)):(document.addEventListener("mousedown",oe,!0),document.addEventListener("mousemove",oe,!0),document.addEventListener("mouseup",oe,!0)),Ut=!0}typeof document<"u"&&(document.readyState!=="loading"?qt():document.addEventListener("DOMContentLoaded",qt));function $n(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:a}=e,l=d.useRef({isFocusWithin:!1}),s=d.useCallback(u=>{l.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(l.current.isFocusWithin=!1,r&&r(u),a&&a(!1))},[r,a,l]),i=Gn(s),c=d.useCallback(u=>{!l.current.isFocusWithin&&document.activeElement===u.target&&(o&&o(u),a&&a(!0),l.current.isFocusWithin=!0,i(u))},[o,a,i]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:s}}}function Vn(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:a}=e,s=d.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:r,onInteractOutsideStart:a}).current;s.onInteractOutside=r,s.onInteractOutsideStart=a,d.useEffect(()=>{if(o)return;let i=c=>{Ce(c,t)&&s.onInteractOutside&&(s.onInteractOutsideStart&&s.onInteractOutsideStart(c),s.isPointerDown=!0)};if(typeof PointerEvent<"u"){let c=u=>{s.isPointerDown&&s.onInteractOutside&&Ce(u,t)&&s.onInteractOutside(u),s.isPointerDown=!1};return document.addEventListener("pointerdown",i,!0),document.addEventListener("pointerup",c,!0),()=>{document.removeEventListener("pointerdown",i,!0),document.removeEventListener("pointerup",c,!0)}}else{let c=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&s.onInteractOutside&&Ce(g,t)&&s.onInteractOutside(g),s.isPointerDown=!1},u=g=>{s.ignoreEmulatedMouseEvents=!0,s.onInteractOutside&&s.isPointerDown&&Ce(g,t)&&s.onInteractOutside(g),s.isPointerDown=!1};return document.addEventListener("mousedown",i,!0),document.addEventListener("mouseup",c,!0),document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",u,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("mouseup",c,!0),document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",u,!0)}}},[t,s,o])}function Ce(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}let _n=null;function Kt(e,t){return t.some(r=>r.contains(e))}function Un(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Jt.traverse(Jt.getTreeNode(t)))if(Kt(e,r.current))return!0;return!1}function Zn(e){return Un(e,_n)}class $e{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let a=this.fastMap.get(r??null),l=new Xt({scopeRef:t});a.addChild(l),l.parent=a,this.fastMap.set(t,l),o&&(l.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),o=r.parent;for(let l of this.traverse())l!==r&&r.nodeToRestore&&l.nodeToRestore&&r.scopeRef.current&&Kt(l.nodeToRestore,r.scopeRef.current)&&(l.nodeToRestore=r.nodeToRestore);let a=r.children;o.removeChild(r),a.size>0&&a.forEach(l=>o.addChild(l)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new $e;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){We(this,"fastMap",new Map),this.root=new Xt({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xt{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){We(this,"children",new Set),We(this,"contain",!1),this.scopeRef=t.scopeRef}}let Jt=new $e;const $=[];function qn(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:a,isDismissable:l=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:i}=e;d.useEffect(()=>(a&&$.push(t),()=>{let p=$.indexOf(t);p>=0&&$.splice(p,1)}),[a,t]);let c=()=>{$[$.length-1]===t&&r&&r()},u=p=>{(!i||i(p.target))&&$[$.length-1]===t&&(p.stopPropagation(),p.preventDefault())},g=p=>{(!i||i(p.target))&&($[$.length-1]===t&&(p.stopPropagation(),p.preventDefault()),c())},h=p=>{p.key==="Escape"&&!s&&(p.stopPropagation(),p.preventDefault(),c())};Vn({ref:t,onInteractOutside:l?g:null,onInteractOutsideStart:u});let{focusWithinProps:y}=$n({isDisabled:!o,onBlurWithin:p=>{p.relatedTarget&&Zn(p.relatedTarget)||(!i||i(p.relatedTarget))&&r()}}),v=p=>{p.target===p.currentTarget&&p.preventDefault()};return{overlayProps:{onKeyDown:h,...y},underlayProps:{onPointerDown:v}}}const Kn=({align:e,children:t,className:r,...o})=>{const a=d.useMemo(()=>{const{horizontal:l,vertical:s}=e,i={center:"left-1/2",end:"inline-end-0",start:"inline-start-0"},c={bottom:"",top:"bottom-full"};return`${i[l]} ${c[s]}`},[e]);return n.jsx("div",{className:f(["absolute shadow-light-2 dark:shadow-dark-2 rounded-1 bg-canvas-light dark:bg-overlay-body-dark mbe-0.5 w-max overflow-y-scroll min-h-[200px] max-h-[400px] scrollbar-hide z-10",a,r]),...o,children:t})},Xn=({open:e,children:t})=>n.jsx(n.Fragment,{children:e?t:null}),Jn=({align:e={horizontal:"start",vertical:"bottom"},autoFocus:t=!0,children:r,className:o,isDismissible:a,isOpen:l,onClose:s,...i})=>{const c=d.useRef(null),{overlayProps:u}=qn({isDismissable:a,isKeyboardDismissDisabled:!a,isOpen:l,onClose:s},c);return n.jsx(Xn,{open:l,children:n.jsx(Fe,{autoFocus:t,children:n.jsx(Kn,{align:e,className:o,onClose:s,...i,children:n.jsx("div",{ref:c,...u,onClick:s,children:r})})})})},Yn=({onToggle:e,children:t,className:r,disabled:o})=>{const a=i=>{i.preventDefault(),i.stopPropagation(),e()},l=d.useRef(null),s=d.cloneElement(t,{className:r,disabled:o,onClick:a,ref:l});return n.jsx(n.Fragment,{children:s})},Rn=(e,t)=>{const{children:r,error:o,hint:a,label:l}=e;return n.jsxs("div",{...e,className:"flex-col rounded-0.5 w-fit",ref:t,children:[n.jsx("label",{children:l}),o?n.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13",children:o}):null,a?n.jsx("p",{className:"text-13 text-gray-25 dark:text-gray-20",children:a}):null,r]})},Yt=d.forwardRef(Rn);Yt.displayName="Radio Set";const Qn=({children:e,disabled:t,name:r,value:o,...a},l)=>n.jsxs("div",{className:"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",children:[n.jsx("input",{className:"w-1.5 h-1.5 mie-0.5 flex-none rounded-0.25 focus-within:outline-none peer display: inline",disabled:t,id:r,name:r,ref:l,...a,type:"radio",value:o}),n.jsx("label",{className:"peer-disabled:text-text-muted-light peer-disabled:dark:text-text-muted-dark text-text-light dark:text-text-dark",htmlFor:"name",children:e})]}),Rt=d.forwardRef(Qn);Rt.displayName="RadioSetItem";const ea=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 19a7.5 7.5 0 1 1 5.963-2.95l3.336 3.335a1 1 0 0 1-1.414 1.414l-3.336-3.336A7.467 7.467 0 0 1 10.5 19Zm0-2.031a5.469 5.469 0 1 1 0-10.938 5.469 5.469 0 0 1 0 10.938Z",fill:"currentColor"})]}),ta=d.forwardRef(ea),ra=({title:e,titleId:t,...r},o)=>n.jsxs("svg",{width:r.size||"24",height:r.size||"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,"aria-labelledby":t,...r,children:[e?n.jsx("title",{id:t,children:e}):null,n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.768 11.646a.5.5 0 0 0 0 .708l3.182 3.182a1 1 0 0 1-1.414 1.414l-3.182-3.182a.5.5 0 0 0-.708 0L8.464 16.95a1 1 0 1 1-1.414-1.414l3.182-3.182a.5.5 0 0 0 0-.708L7.05 8.464A1 1 0 1 1 8.464 7.05l3.182 3.182a.5.5 0 0 0 .707 0l3.183-3.182a1 1 0 1 1 1.414 1.414l-3.182 3.182Z",fill:"currentColor"})]}),oa=d.forwardRef(ra),na=({className:e,disabled:t,error:r,hint:o,label:a,name:l,onChange:s,placeholder:i,value:c,dismissButtonLabel:u,...g},h)=>{const y=d.useRef(null),v=de({forwardedRef:h,innerRef:y}),p=w=>{s&&s(w.target.value)},x=()=>{s&&s("")};return n.jsxs("div",{className:f(["flex items-start flex-col gap-0.5",e]),children:[n.jsxs("div",{className:f(["items-center self-stretch rounded-10 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",t?"bg-gray-10 dark:bg-gray-40":null,r?"border-alert dark:border-alert-dark":"border-tertiary-light dark:border-tertiary-dark"]),children:[n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pis-1.5",children:n.jsx(ta,{})}),n.jsx("input",{className:f(["self-stretch bg-transparent flex-auto outline-none overflow-hidden h-[56px] pis-1 pie-1"]),disabled:t,id:l,name:l,onChange:p,placeholder:i,ref:v,type:"search",value:c,...g}),n.jsx("label",{className:"sr-only",htmlFor:l,children:a}),c?n.jsx("div",{className:"text-text-muted-light dark:text-text-muted-dark pie-1.5",children:n.jsx(we,{"aria-label":u,className:"p-0.25 hover:text-white bg-gray-45 dark:bg-gray-50",onClick:x,variant:"primary",children:n.jsx(oa,{})})}):null]}),r||o?n.jsxs("div",{className:"flex flex-col",children:[r?n.jsx("span",{className:"text-alert dark:text-alert-dark",children:r}):null,o?n.jsx("span",{className:"text-text-muted-light dark:text-text-muted-dark text-13 leading-default",children:o}):null]}):null]})},Qt=d.forwardRef(na);Qt.displayName="Search";function aa({className:e,defaultValue:t,onChange:r=()=>{},values:o,...a},l){const[s,i]=d.useState(t??0),c=s>0?s-1:0,u=g=>{i(g),r(g)};return n.jsx(S,{...a,className:`inline-flex overflow-hidden text-gray-40 dark:text-white ${e}`,ref:l,children:o.map((g,h)=>n.jsx(tr,{activeIndex:s,currentIndex:h,lastIndex:o.length-1,onSelectedValue:u,prevIndex:c,value:g}))})}const er=d.forwardRef(aa);er.displayName="SegmentedControl";function tr({activeIndex:e,currentIndex:t,lastIndex:r,onSelectedValue:o,prevIndex:a,value:l}){return n.jsxs(n.Fragment,{children:[n.jsx("button",{className:f(`font-bold text-center hover:cursor-pointer p-2 leading-tight border-y-small border-tertiary-light dark:border-tertiary-dark border-solid
2
2
  ${t===e?" bg-gray-40 dark:bg-white text-white dark:text-gray-40 border-gray-40 dark:border-white":""}
3
- `,t===0?"border-l-small rounded-ss-1 rounded-es-1":"",t===r?"border-r-small rounded-se-1 rounded-ee-1":""),onClick:t!==e?()=>o(t):void 0,children:l}),a===t||e===t||r===t?null:n.jsx("span",{className:"inline-block w-px bg-tertiary-light dark:bg-tertiary-dark"})]})}const la=({...e})=>n.jsx("option",{...e}),rr="_select_1dwiy_1",Ba={select:rr},sa="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",ia="border-alert-light dark:border-alert-dark",da="border-tertiary-light dark:border-tertiary-dark",Ve="text-text-muted-light dark:text-text-muted-dark",or=f(Ve,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),ca="-translate-y-1 opacity-100",ua="text-overlay-text dark:text-text-dark",fa="!pbs-3 !pbe-1",pa="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",ba=({children:e,className:t,disabled:r=!1,error:o,hint:a,label:l,name:s,onChange:i,value:c,...u},g)=>{var j;const h=f(rr,sa),y=d.useRef(null),v=de({forwardedRef:g,innerRef:y}),[p,x]=d.useState(!!(c||(j=v==null?void 0:v.current)!=null&&j.value));d.useEffect(()=>{var C;x(!!((C=v==null?void 0:v.current)!=null&&C.value||c))},[c,v]);const w=d.useMemo(()=>{const C=f(h,ua,l?fa:null),N=f(h,Ve);return p?C:N},[h,p,l]),L=d.useMemo(()=>{const C=f(or,ca),N=f(or);return p?C:N},[p]),E=C=>{var N;x(!!((N=v==null?void 0:v.current)!=null&&N.value||c)),i&&i(C)};return n.jsxs("div",{className:f(t),children:[n.jsxs("div",{className:"relative w-full border-none",children:[n.jsx("select",{...u,className:f([w,o?ia:da]),disabled:r,id:s,name:s,onChange:E,ref:v,value:c,children:e}),n.jsx("label",{className:L,htmlFor:s,children:l}),n.jsx("div",{className:pa,children:n.jsx(qe,{size:"24"})})]}),o||a?n.jsxs("div",{className:"mbs-0.5",children:[o?n.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:o}):null,a?n.jsx("p",{className:f(Ve,"text-13 m-0"),children:a}):null]}):null]})},ga=d.forwardRef(ba);function ha({checked:e,disabled:t,label:r,error:o,wrapperClassName:a,containerClassName:l,circleClassName:s,hint:i,...c},u){return n.jsxs("label",{className:f("flex cursor-pointer select-none items-start flex-col",l),children:[n.jsx("span",{className:"text-13 font-medium text-gray-25",children:r}),n.jsxs(S,{className:f("relative w-8",t?"opacity-50":""),children:[n.jsx("input",{checked:e,className:"sr-only",disabled:t,ref:u,type:"checkbox",...c}),n.jsx(S,{className:f("box block h-[34px] w-full rounded-2 focus:border-0.25 focus:border-blue-30 focus:border-solid",e?"bg-blue-30":"bg-gray-15",o?"border-[1px] border-solid border-orange-30":"",a),type:"button"}),n.jsx(S,{className:f("absolute block-start-0.25 h-[30px] w-[30px] items-center justify-center rounded-full bg-white transition-all",e?"inline-start-4":"inline-start-0.25",s)})]}),n.jsxs(S,{children:[o?n.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 font-regular",children:o}):null,i?n.jsx("p",{className:"text-text-muted-light dark:text-text-muted-dark text-13 font-regular",children:i}):null]})]})}const nr=d.forwardRef(ha);nr.displayName="Switch";function ma({active:e,children:t,component:r="a",className:o,href:a}){return n.jsx(B,{className:f("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",o),component:r,href:a,children:t})}const ar=re.forwardRef(({className:e,...t},r)=>n.jsx("div",{className:"w-full overflow-auto pbs-1 pis-1 pie-1 pbe-1.5 bg-white dark:bg-canvas-dark rounded-3 shadow-light-2 dark:shadow-dark-2",children:n.jsx("table",{className:f("w-full",e),ref:r,...t})}));ar.displayName="Table";const lr=re.forwardRef(({className:e,...t},r)=>n.jsx("tbody",{className:f(e),ref:r,...t}));lr.displayName="TableBody";const sr=re.forwardRef(({className:e,...t},r)=>n.jsx("td",{className:f("p-1 align-middle first:rounded-s-1 last:rounded-e-1 group-even:bg-canvas-secondary-light dark:group-even:bg-canvas-secondary-dark [&:not(:last-child)]:border-e-[0.5px] border-tertiary-light dark:border-tertiary-dark",e),ref:r,...t}));sr.displayName="TableCell";const ir=re.forwardRef(({className:e,...t},r)=>n.jsx("th",{className:f("first:rounded-ss-1.5 last:rounded-se-1.5 bg-canvas-secondary-light dark:bg-canvas-secondary-dark text-center text-13 p-0.5",e),ref:r,...t}));ir.displayName="TableHead";const dr=re.forwardRef(({className:e,...t},r)=>n.jsx("thead",{className:f(e),ref:r,...t}));dr.displayName="TableHeader";const cr=re.forwardRef(({className:e,...t},r)=>n.jsx("tr",{className:f("group",e),ref:r,...t}));cr.displayName="TableRow";const va={caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20",default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"},ya={lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1",sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"},xa=({message:e,variant:t="default",size:r="sm",className:o})=>{const a=va[t],l=ya[r];return n.jsx(S,{className:f(a,l,o),children:n.jsx(B,{children:e})})},wa={inputIcon:"_inputIcon_1pzdd_1"},ka=({className:e,error:t,name:r,...o},a)=>n.jsxs(n.Fragment,{children:[n.jsx("input",{className:f(["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 h-[58px]",wa.inputIcon,e]),id:r,name:r,ref:a,role:"textbox",type:"time",...o}),t?n.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),ur=d.forwardRef(ka);ur.displayName="TimePicker";const fr={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Sa=({content:e,className:t,...r})=>n.jsx("div",{className:f(fr.tooltipWrapper,t),...r,children:n.jsx("span",{className:fr.tooltipContent,children:e})});m.AutocompleteSelect=dt,m.Box=S,m.Breadcrumb=vt,m.Breadcrumbs=kt,m.Button=fe,m.ButtonComponent=St,m.Checkbox=Nt,m.Dialog=Lt,m.Divider=Go,m.FocusTrap=Fe,m.Heading=De,m.HorizontalLoader=Fo,m.IconButton=we,m.IconLinkButton=Mt,m.ImageUpload=Ht,m.Input=ze,m.LinkButton=$t,m.LinkButtonComponent=Ot,m.List=Be,m.ListItem=me,m.ListItemActions=pn,m.ListItemContent=bn,m.ListItemText=gn,m.LoadingSpinner=hn,m.Option=la,m.Pagination=En,m.Popover=In,m.PopoverBody=Jn,m.PopoverTrigger=Yn,m.RadioSet=Yt,m.RadioSetItem=Rt,m.Search=Qt,m.SegmentedControl=er,m.SegmentedControlItem=tr,m.Select=ga,m.Switch=nr,m.Tab=ma,m.Table=ar,m.TableBody=lr,m.TableCell=sr,m.TableHead=ir,m.TableHeader=dr,m.TableRow=cr,m.Tag=xa,m.Text=B,m.TimePicker=ur,m.Tooltip=Sa,m.buttonSizeOptions=wo,m.cn=f,m.defaultButtonClasses=Ge,m.determineSizeClasses=Ae,m.iconSizes=ce,m.useCombinedRefs=de,m.useLockBodyScroll=it,m.variantClasses=ue,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
3
+ `,t===0?"border-l-small rounded-ss-1 rounded-es-1":"",t===r?"border-r-small rounded-se-1 rounded-ee-1":""),onClick:t!==e?()=>o(t):void 0,children:l}),a===t||e===t||r===t?null:n.jsx("span",{className:"inline-block w-px bg-tertiary-light dark:bg-tertiary-dark"})]})}const la=({...e})=>n.jsx("option",{...e}),rr="_select_1dwiy_1",Ba={select:rr},sa="appearance-none outline-none bg-transparent disabled:bg-gray-10 dark:disabled:bg-gray-40 rounded-1 border-solid border-small font-aktiv-grotesk text-16 leading-loose p-2 w-full mlb-0",ia="border-alert-light dark:border-alert-dark",da="border-tertiary-light dark:border-tertiary-dark",Ve="text-text-muted-light dark:text-text-muted-dark",or=f(Ve,"font-aktiv-grotesk font-medium text-13 absolute inline-start-2 block-start-2 pointer-events-none opacity-0 h-1.5"),ca="-translate-y-1 opacity-100",ua="text-overlay-text dark:text-text-dark",fa="!pbs-3 !pbe-1",pa="absolute block-end-2 inline-end-1.5 leading-0 pointer-events-none text-text-muted-light dark:text-text-muted-dark",ba=({children:e,className:t,disabled:r=!1,error:o,hint:a,label:l,name:s,onChange:i,value:c,...u},g)=>{var j;const h=f(rr,sa),y=d.useRef(null),v=de({forwardedRef:g,innerRef:y}),[p,x]=d.useState(!!(c||(j=v==null?void 0:v.current)!=null&&j.value));d.useEffect(()=>{var C;x(!!((C=v==null?void 0:v.current)!=null&&C.value||c))},[c,v]);const w=d.useMemo(()=>{const C=f(h,ua,l?fa:null),N=f(h,Ve);return p?C:N},[h,p,l]),L=d.useMemo(()=>{const C=f(or,ca),N=f(or);return p?C:N},[p]),E=C=>{var N;x(!!((N=v==null?void 0:v.current)!=null&&N.value||c)),i&&i(C)};return n.jsxs("div",{className:f(t),children:[n.jsxs("div",{className:"relative w-full border-none",children:[n.jsx("select",{...u,className:f([w,o?ia:da]),disabled:r,id:s,name:s,onChange:E,ref:v,value:c,children:e}),n.jsx("label",{className:L,htmlFor:s,children:l}),n.jsx("div",{className:pa,children:n.jsx(qe,{size:"24"})})]}),o||a?n.jsxs("div",{className:"mbs-0.5",children:[o?n.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 m-0",children:o}):null,a?n.jsx("p",{className:f(Ve,"text-13 m-0"),children:a}):null]}):null]})},ga=d.forwardRef(ba);function ha({checked:e,disabled:t,label:r,error:o,wrapperClassName:a,containerClassName:l,circleClassName:s,hint:i,...c},u){return n.jsxs("label",{className:f("flex cursor-pointer select-none items-start flex-col",l),children:[n.jsx("span",{className:"text-13 font-medium text-gray-25",children:r}),n.jsxs(S,{className:f("relative w-8",t?"opacity-50":""),children:[n.jsx("input",{checked:e,className:"sr-only",disabled:t,ref:u,type:"checkbox",...c}),n.jsx(S,{className:f("box block h-[34px] w-full rounded-2 focus:border-0.25 focus:border-blue-30 focus:border-solid",e?"bg-blue-30":"bg-gray-15",o?"border-[1px] border-solid border-orange-30":"",a),type:"button"}),n.jsx(S,{className:f("absolute block-start-0.25 h-[30px] w-[30px] items-center justify-center rounded-full bg-white transition-all",e?"inline-start-4":"inline-start-0.25",s)})]}),n.jsxs(S,{children:[o?n.jsx("p",{className:"text-alert-light dark:text-alert-dark text-13 font-regular",children:o}):null,i?n.jsx("p",{className:"text-text-muted-light dark:text-text-muted-dark text-13 font-regular",children:i}):null]})]})}const nr=d.forwardRef(ha);nr.displayName="Switch";function ma({active:e,children:t,component:r="a",className:o,href:a}){return n.jsx(B,{className:f("text-gray-50 whitespace-nowrap text-16 leading-loose mie-2",e?"font-bold underline decoration-yv-red decoration-2 underline-offset-8":"text-text-muted-light dark:text-text-muted-dark",o),component:r,href:a,children:t})}const ar=re.forwardRef(({className:e,...t},r)=>n.jsx("div",{className:"w-full overflow-auto pbs-1 pis-1 pie-1 pbe-1.5 bg-white dark:bg-canvas-secondary-dark rounded-3 shadow-light-2 dark:shadow-dark-2",children:n.jsx("table",{className:f("w-full",e),ref:r,...t})}));ar.displayName="Table";const lr=re.forwardRef(({className:e,...t},r)=>n.jsx("tbody",{className:f(e),ref:r,...t}));lr.displayName="TableBody";const sr=re.forwardRef(({className:e,...t},r)=>n.jsx("td",{className:f("p-1 align-middle first:rounded-s-1 last:rounded-e-1 group-even:bg-canvas-secondary-light dark:group-even:bg-canvas-dark [&:not(:last-child)]:border-e-[0.5px] border-tertiary-light dark:border-tertiary-dark",e),ref:r,...t}));sr.displayName="TableCell";const ir=re.forwardRef(({className:e,...t},r)=>n.jsx("th",{className:f("first:rounded-ss-1.5 last:rounded-se-1.5 bg-canvas-secondary-light dark:bg-canvas-secondary-dark text-center text-13 p-0.5",e),ref:r,...t}));ir.displayName="TableHead";const dr=re.forwardRef(({className:e,...t},r)=>n.jsx("thead",{className:f(e),ref:r,...t}));dr.displayName="TableHeader";const cr=re.forwardRef(({className:e,...t},r)=>n.jsx("tr",{className:f("group",e),ref:r,...t}));cr.displayName="TableRow";const va={caution:"bg-yellow-10 dark:bg-yellow-50 text-yellow-40 dark:text-yellow-20",default:"bg-gray-10 dark:bg-gray-40 text-light dark:text-dark",error:"bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",info:"bg-blue-10 dark:bg-blue-50 text-blue-40, dark:text-blue-20",secondary:"bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",success:"bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"},ya={lg:"text-16 w-fit rounded-0.5 plb-0.5 pli-1",sm:"text-11 w-fit rounded-0.5 plb-0.25 pli-0.5"},xa=({message:e,variant:t="default",size:r="sm",className:o})=>{const a=va[t],l=ya[r];return n.jsx(S,{className:f(a,l,o),children:n.jsx(B,{children:e})})},wa={inputIcon:"_inputIcon_1pzdd_1"},ka=({className:e,error:t,name:r,...o},a)=>n.jsxs(n.Fragment,{children:[n.jsx("input",{className:f(["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 h-[58px]",wa.inputIcon,e]),id:r,name:r,ref:a,role:"textbox",type:"time",...o}),t?n.jsx("div",{className:"text-alert-light dark:text-alert-dark text-13",children:t}):null]}),ur=d.forwardRef(ka);ur.displayName="TimePicker";const fr={tooltipWrapper:"_tooltipWrapper_qu88w_1",tooltipContent:"_tooltipContent_qu88w_18"},Sa=({content:e,className:t,...r})=>n.jsx("div",{className:f(fr.tooltipWrapper,t),...r,children:n.jsx("span",{className:fr.tooltipContent,children:e})});m.AutocompleteSelect=dt,m.Box=S,m.Breadcrumb=vt,m.Breadcrumbs=kt,m.Button=fe,m.ButtonComponent=St,m.Checkbox=Nt,m.Dialog=Lt,m.Divider=Go,m.FocusTrap=Fe,m.Heading=De,m.HorizontalLoader=Fo,m.IconButton=we,m.IconLinkButton=Mt,m.ImageUpload=Ht,m.Input=ze,m.LinkButton=$t,m.LinkButtonComponent=Ot,m.List=Be,m.ListItem=me,m.ListItemActions=pn,m.ListItemContent=bn,m.ListItemText=gn,m.LoadingSpinner=hn,m.Option=la,m.Pagination=En,m.Popover=In,m.PopoverBody=Jn,m.PopoverTrigger=Yn,m.RadioSet=Yt,m.RadioSetItem=Rt,m.Search=Qt,m.SegmentedControl=er,m.SegmentedControlItem=tr,m.Select=ga,m.Switch=nr,m.Tab=ma,m.Table=ar,m.TableBody=lr,m.TableCell=sr,m.TableHead=ir,m.TableHeader=dr,m.TableRow=cr,m.Tag=xa,m.Text=B,m.TimePicker=ur,m.Tooltip=Sa,m.buttonSizeOptions=wo,m.cn=f,m.defaultButtonClasses=Ge,m.determineSizeClasses=Ae,m.iconSizes=ce,m.useCombinedRefs=de,m.useLockBodyScroll=it,m.variantClasses=ue,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",