@volvo-cars/react-forms
Advanced tools
Comparing version 0.11.1 to 0.11.2
"use client" | ||
import{forwardRef as te,useState as re}from"react";import{IconButton as oe}from"@volvo-cars/react-icons";import{forwardRef as D}from"react";import{cssMerge as j}from"@volvo-cars/css/utils";import{Icon as W}from"@volvo-cars/react-icons";import{jsx as X,jsxs as Y}from"react/jsx-runtime";function v({errorMessage:s,id:e,className:t=""}){return s?Y("p",{id:e,className:`micro text-feedback-red flex items-center ${t}`.trim(),role:"alert",children:[X(W,{className:"mr-8",type:"error-12",color:"feedback-red"}),s]}):null}import{jsx as Z}from"react/jsx-runtime";function b({children:s,id:e,className:t=""}){return Z("p",{id:e,className:`micro text-secondary ${t}`.trim(),children:s})}import{useId as _}from"react";function I(s){let e=_(),t=s||e;return{rootId:t,inputId:t+"-input",errorId:t+"-error",hintId:t+"-hint"}}import{jsx as E,jsxs as G}from"react/jsx-runtime";var ee=D(function(e,t){return E(T,{...e,type:"text",ref:t})}),T=D(function({hint:e,id:t,label:n,hidden:d,dir:p,errorMessage:o,lang:c,translate:u,slot:l,isValid:r,className:a,style:i,contentAfter:f,...g},m){let{inputId:x,errorId:P,hintId:C}=I(t),h=g["aria-invalid"]||r===!1||!!o,y={placeholder:" ",...g,ref:m,id:x,"aria-invalid":h?!0:void 0,"aria-errormessage":o?P:void 0,"aria-describedby":e?C:void 0};return G("div",{id:t,className:j("v-input-floating-label",a),hidden:d,dir:p,lang:c,translate:u,slot:l,style:i,children:[E("label",{htmlFor:x,children:n}),f?G("div",{className:"v-input","data-input-delegate":!0,"aria-invalid":h?!0:void 0,children:[E("input",{...y,className:"bg-transparent"}),f]}):E("input",{...y}),E(v,{errorMessage:o,id:P,className:"mt-4"}),e&&E(b,{id:C,className:"mt-4",children:e})]})});import{jsx as F}from"react/jsx-runtime";var ne=te(function({value:e,onChange:t,onBlur:n,defaultValue:d,...p},o){let[c,u]=re(!e&&!d);function l(r){let{validity:a}=r.currentTarget,i=r.currentTarget.required;i||(r.currentTarget.required=!0),u(a.valueMissing&&!a.badInput),i||(r.currentTarget.required=!1)}return F(T,{...p,value:e,defaultValue:d,type:"date",ref:o,onBlur:r=>{n?.(r),l(r)},onChange:r=>{t?.(r),l(r)},"data-blank":c?"":void 0,contentAfter:F(oe,{className:"ml-8 -mr-8",variant:"clear",iconName:"calendar","aria-hidden":!0,tabIndex:-1,"aria-label":"",onClick:r=>{let a=r.currentTarget.parentElement?.querySelector("input[type=date]");if(a)try{if(a.showPicker(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent))throw new Error}catch{a.click(),a.focus()}}})})});import{forwardRef as ae,useState as le}from"react";import{IconButton as se}from"@volvo-cars/react-icons";import{jsx as z}from"react/jsx-runtime";var pe=ae(function({id:e,defaultPasswordVisible:t=!1,showPasswordLabel:n,...d},p){let[o,c]=le(t),{inputId:u,rootId:l}=I(e);return z(T,{...d,type:o?"text":"password",id:l,ref:p,contentAfter:z(se,{className:"-mr-8",variant:"clear",iconName:o?"other-eye":"other-eyeslash",...n?{"aria-pressed":o,"aria-label":n,"aria-controls":u}:{"aria-label":"","aria-hidden":!0,tabIndex:-1},onClick:()=>c(r=>!r)})})});import{forwardRef as ie}from"react";import{jsx as ue}from"react/jsx-runtime";var de=ie(function(e,t){return ue(T,{...e,type:"email",inputMode:"email",ref:t})});import{forwardRef as ce}from"react";import{jsx as fe}from"react/jsx-runtime";var me=ce(function(e,t){return fe(T,{...e,type:"tel",ref:t})});import{forwardRef as Pe}from"react";import{jsx as ge}from"react/jsx-runtime";var xe=Pe(function(e,t){return ge(T,{...e,type:"url",inputMode:"url",ref:t})});import{Children as Ie,forwardRef as be,isValidElement as Ce,useState as ve}from"react";import{cssMerge as Te}from"@volvo-cars/css/utils";import{jsx as B,jsxs as q}from"react/jsx-runtime";var he=be(function({hint:e,id:t,label:n,hidden:d,dir:p,errorMessage:o,lang:c,translate:u,slot:l,value:r,defaultValue:a,children:i,isValid:f,className:g,...m},x){let P=!1;Ie.forEach(i,H=>{Ce(H)&&H.type==="option"&&H.props.value===""&&(P=!0)});let[C,h]=ve(!a),y=typeof r=="string",{inputId:L,errorId:R,hintId:M}=I(t),Q=m["aria-invalid"]||f===!1||!!o,A=y?!r:C;return q("div",{id:t,className:Te("v-input-floating-label",g),hidden:d,dir:p,lang:c,translate:u,slot:l,children:[B("label",{htmlFor:L,children:n}),q("select",{...m,ref:x,id:L,onChange:y?m.onChange:H=>{m.onChange?.(H),h(!H.target.value)},value:r,defaultValue:a,"data-blank":A?"":void 0,"aria-invalid":Q?"true":void 0,"aria-errormessage":o?R:void 0,"aria-describedby":e?M:void 0,children:[!a&&!P&&B("option",{value:"",hidden:!A,disabled:!A,children:n}),i]}),B(v,{errorMessage:o,id:R,className:"mt-4"}),e&&B(b,{id:M,className:"mt-4",children:e})]})});import{forwardRef as ye}from"react";import{cssMerge as He}from"@volvo-cars/css/utils";import{jsx as k,jsxs as K}from"react/jsx-runtime";var Ee=ye(function({label:e,id:t,hint:n,hidden:d,dir:p,lang:o,translate:c,slot:u,style:l,errorMessage:r,isValid:a,className:i,...f},g){let{inputId:m,hintId:x,errorId:P}=I(t),C=f["aria-invalid"]||a===!1||!!r;return K("div",{className:He("flex-row",i),hidden:d,dir:p,lang:o,translate:c,slot:u,style:l,children:[k("input",{...f,ref:g,type:"checkbox",id:m,"aria-invalid":C?!0:void 0,"aria-errormessage":r?P:void 0,"aria-describedby":n?x:void 0}),K("div",{className:"flex-col stack-4 ml-8",children:[k("label",{htmlFor:m,children:e}),k(v,{errorMessage:r,id:P}),n&&k(b,{id:x,children:n})]})]})});import{forwardRef as Me,useContext as Be}from"react";import{cssMerge as ke}from"@volvo-cars/css/utils";import{createContext as Le}from"react";import{jsx as U,jsxs as $}from"react/jsx-runtime";function Re({legend:s,id:e,hint:t,name:n,children:d,required:p,defaultValue:o,value:c,hidden:u,dir:l,lang:r,translate:a,slot:i,errorMessage:f,onChange:g,form:m,enterKeyHint:x,readOnly:P,isValid:C,...h}){let{inputId:y,hintId:L,errorId:R}=I(e),M=h["aria-invalid"]||C===!1||!!f;return $("fieldset",{...h,hidden:u,dir:l,lang:r,translate:a,slot:i,form:m,id:y,role:"radiogroup","aria-invalid":M?!0:void 0,"aria-errormessage":f?R:void 0,"aria-describedby":t?L:void 0,"aria-required":p?!0:void 0,children:[U("legend",{className:"mb-4",children:s}),t&&U(b,{id:L,className:"mb-16",children:t}),$("div",{className:"stack-8",hidden:u,children:[U(v,{errorMessage:f,id:R,className:"mb-16"}),U(O,{value:{defaultValue:o,enterKeyHint:x,form:m,name:n,onChange:g,readOnly:P,required:p,value:c},children:d})]})]})}var S=Le({}),O=S.Provider;import{jsx as w,jsxs as J}from"react/jsx-runtime";var Ue=Me(function({label:e,id:t,hint:n,hidden:d,dir:p,lang:o,translate:c,slot:u,value:l,className:r,style:a,...i},f){let{inputId:g,hintId:m}=I(t),{value:x,defaultValue:P,...C}=Be(S),h,y;return typeof x<"u"?h=l===x:typeof P<"u"&&l===P&&(y=!0),J("div",{id:t,className:ke("flex-row",r),hidden:d,dir:p,lang:o,translate:c,slot:u,style:a,children:[w("input",{...i,...C,ref:f,checked:h,defaultChecked:y,type:"radio",id:g,value:l}),n?J("div",{className:"flex-col stack-4 ml-8",children:[w("label",{htmlFor:g,children:e}),w(b,{id:m,children:n})]}):w("label",{htmlFor:g,className:"ml-8",children:e})]})});import{forwardRef as we}from"react";import{cssMerge as Ne}from"@volvo-cars/css/utils";import{jsx as N,jsxs as Se}from"react/jsx-runtime";var Ae=we(function({hint:e,id:t,label:n,hidden:d,dir:p,errorMessage:o,lang:c,translate:u,slot:l,isValid:r,className:a,style:i,...f},g){let{inputId:m,errorId:x,hintId:P}=I(t),C=f["aria-invalid"]||r===!1||!!o;return Se("div",{id:t,className:Ne("v-input-floating-label",a),hidden:d,dir:p,lang:c,translate:u,slot:l,style:i,children:[N("label",{htmlFor:m,children:n}),N("textarea",{placeholder:" ",...f,ref:g,id:m,"aria-invalid":C?!0:void 0,"aria-errormessage":o?x:void 0,"aria-describedby":e?P:void 0}),N(v,{errorMessage:o,id:x,className:"mb-4"}),e&&N(b,{id:P,className:"mt-4",children:e})]})});import{forwardRef as Ve}from"react";import{Fragment as De,jsx as V,jsxs as Fe}from"react/jsx-runtime";var Ge=Ve(function({color:e,size:t,loading:n,loadingLabel:d,disabled:p,children:o,variant:c="filled",className:u="",...l},r){let a=!p&&n;return V("button",{ref:r,type:"submit",...l,onClick:i=>{p||n?i.preventDefault():l.onClick&&l.onClick(i)},className:`button-${c} ${u}`.trim(),"aria-disabled":p||n||void 0,"data-loading":a||void 0,"aria-live":typeof n=="boolean"?"polite":void 0,"data-color":e==="neutral"?void 0:e,"data-size":t==="small"?"small":void 0,children:a?Fe(De,{children:[V("span",{className:"invisible",children:o}),V("progress",{className:"spinner","aria-label":d})]}):o})});export{Ee as Checkbox,ne as DateInput,de as EmailInput,v as ErrorMessage,b as Hint,pe as PasswordInput,Ue as Radio,O as RadioContextProvider,Re as RadioGroup,he as Select,Ge as SubmitButton,me as TelInput,Ae as TextArea,ee as TextInput,xe as UrlInput}; | ||
import{forwardRef as re,useState as oe}from"react";import{IconButton as ne}from"@volvo-cars/react-icons";import{forwardRef as F}from"react";import{cssMerge as ee}from"@volvo-cars/css/utils";import{Icon as X}from"@volvo-cars/react-icons";import{jsx as Y,jsxs as Z}from"react/jsx-runtime";function T({errorMessage:l,id:e,className:t=""}){return l?Z("p",{id:e,className:`micro text-feedback-red flex items-center ${t}`.trim(),role:"alert",children:[Y(X,{className:"mr-8",type:"error-12",color:"feedback-red"}),l]}):null}import{jsx as _}from"react/jsx-runtime";function v({children:l,id:e,className:t=""}){return _("p",{id:e,className:`micro text-secondary ${t}`.trim(),children:l})}import{useId as j}from"react";function C(l){let e=j(),t=l||e;return{rootId:t,inputId:t+"-input",errorId:t+"-error",hintId:t+"-hint"}}import{jsx as L,jsxs as D}from"react/jsx-runtime";var te=F(function(e,t){return L(y,{...e,type:"text",ref:t})}),y=F(function({hint:e,id:t,label:o,hidden:s,dir:p,errorMessage:i,lang:m,translate:u,slot:a,isValid:r,className:n,style:d,contentAfter:f,...I},c){let{inputId:b,errorId:P,hintId:g}=C(t),x=I.disabled?void 0:i,h=I["aria-invalid"]||r===!1||!!x,H={placeholder:" ",...I,ref:c,id:b,"aria-invalid":h?!0:void 0,"aria-errormessage":x?P:void 0,"aria-describedby":e?g:void 0};return D("div",{id:t,className:ee("v-input-floating-label",n),hidden:s,dir:p,lang:m,translate:u,slot:a,style:d,children:[L("label",{htmlFor:b,children:o}),f?D("div",{className:"v-input","data-input-delegate":!0,"aria-invalid":h?!0:void 0,children:[L("input",{...H,className:"bg-transparent"}),f]}):L("input",{...H}),L(T,{errorMessage:x,id:P,className:"mt-4"}),e&&L(v,{id:g,className:"mt-4",children:e})]})});import{jsx as z}from"react/jsx-runtime";var ae=re(function({value:e,onChange:t,onBlur:o,defaultValue:s,...p},i){let[m,u]=oe(!e&&!s);function a(r){let{validity:n}=r.currentTarget,d=r.currentTarget.required;d||(r.currentTarget.required=!0),u(n.valueMissing&&!n.badInput),d||(r.currentTarget.required=!1)}return z(y,{...p,value:e,defaultValue:s,type:"date",ref:i,onBlur:r=>{o?.(r),a(r)},onChange:r=>{t?.(r),a(r)},"data-blank":m?"":void 0,contentAfter:z(ne,{className:"ml-8 -mr-8",variant:"clear",iconName:"calendar","aria-hidden":!0,tabIndex:-1,"aria-label":"",onClick:r=>{let n=r.currentTarget.parentElement?.querySelector("input[type=date]");if(n)try{if(n.showPicker(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent))throw new Error}catch{n.click(),n.focus()}}})})});import{forwardRef as le,useState as se}from"react";import{IconButton as pe}from"@volvo-cars/react-icons";import{jsx as q}from"react/jsx-runtime";var ie=le(function({id:e,defaultPasswordVisible:t=!1,showPasswordLabel:o,...s},p){let[i,m]=se(t),{inputId:u,rootId:a}=C(e);return q(y,{...s,type:i?"text":"password",id:a,ref:p,contentAfter:q(pe,{className:"-mr-8",variant:"clear",disabled:s.disabled,tabIndex:s.disabled||!o?-1:void 0,iconName:i?"other-eye":"other-eyeslash",...o?{"aria-pressed":i,"aria-label":o,"aria-controls":u}:{"aria-label":"","aria-hidden":!0},onClick:()=>m(r=>!r)})})});import{forwardRef as de}from"react";import{jsx as ce}from"react/jsx-runtime";var ue=de(function(e,t){return ce(y,{...e,type:"email",inputMode:"email",ref:t})});import{forwardRef as me}from"react";import{jsx as Pe}from"react/jsx-runtime";var fe=me(function(e,t){return Pe(y,{...e,type:"tel",ref:t})});import{forwardRef as ge}from"react";import{jsx as Ie}from"react/jsx-runtime";var xe=ge(function(e,t){return Ie(y,{...e,type:"url",inputMode:"url",ref:t})});import{Children as be,forwardRef as Ce,isValidElement as ve,useState as Te}from"react";import{cssMerge as ye}from"@volvo-cars/css/utils";import{jsx as k,jsxs as K}from"react/jsx-runtime";var he=Ce(function({hint:e,id:t,label:o,hidden:s,dir:p,errorMessage:i,lang:m,translate:u,slot:a,value:r,defaultValue:n,children:d,isValid:f,className:I,...c},b){let P=!1;be.forEach(d,M=>{ve(M)&&M.type==="option"&&M.props.value===""&&(P=!0)});let[g,x]=Te(!n),h=typeof r=="string",{inputId:H,errorId:R,hintId:E}=C(t),B=c.disabled?void 0:i,W=c["aria-invalid"]||f===!1||!!B,S=h?!r:g;return K("div",{id:t,className:ye("v-input-floating-label",I),hidden:s,dir:p,lang:m,translate:u,slot:a,children:[k("label",{htmlFor:H,children:o}),K("select",{...c,ref:b,id:H,onChange:h?c.onChange:M=>{c.onChange?.(M),x(!M.target.value)},value:r,defaultValue:n,"data-blank":S?"":void 0,"aria-invalid":W?"true":void 0,"aria-errormessage":B?R:void 0,"aria-describedby":e?E:void 0,children:[!n&&!P&&k("option",{value:"",hidden:!S,disabled:!S,children:o}),d]}),k(T,{errorMessage:B,id:R,className:"mt-4"}),e&&k(v,{id:E,className:"mt-4",children:e})]})});import{forwardRef as He}from"react";import{cssMerge as Ee}from"@volvo-cars/css/utils";import{jsx as U,jsxs as $}from"react/jsx-runtime";var Me=He(function({label:e,id:t,hint:o,hidden:s,dir:p,lang:i,translate:m,slot:u,style:a,errorMessage:r,isValid:n,className:d,...f},I){let{inputId:c,hintId:b,errorId:P}=C(t),g=f.disabled?void 0:r,x=f["aria-invalid"]||n===!1||!!g;return $("div",{className:Ee("flex-row",d),hidden:s,dir:p,lang:i,translate:m,slot:u,style:a,children:[U("input",{...f,ref:I,type:"checkbox",id:c,"aria-invalid":x?!0:void 0,"aria-errormessage":g?P:void 0,"aria-describedby":o?b:void 0}),$("div",{className:"flex-col stack-4 ml-8",children:[U("label",{htmlFor:c,children:e}),U(T,{errorMessage:g,id:P}),o&&U(v,{id:b,children:o})]})]})});import{forwardRef as Be,useContext as ke}from"react";import{cssMerge as Ue}from"@volvo-cars/css/utils";import{createContext as Le}from"react";import{jsx as w,jsxs as O}from"react/jsx-runtime";function Re({legend:l,id:e,hint:t,name:o,children:s,required:p,defaultValue:i,value:m,hidden:u,dir:a,lang:r,translate:n,slot:d,errorMessage:f,onChange:I,form:c,enterKeyHint:b,readOnly:P,isValid:g,...x}){let{inputId:h,hintId:H,errorId:R}=C(e),E=x.disabled?void 0:f,B=x["aria-invalid"]||g===!1||!!E;return O("fieldset",{...x,hidden:u,dir:a,lang:r,translate:n,slot:d,form:c,id:h,role:"radiogroup","aria-invalid":B?!0:void 0,"aria-errormessage":E?R:void 0,"aria-describedby":t?H:void 0,"aria-required":p?!0:void 0,children:[w("legend",{className:"mb-4",children:l}),t&&w(v,{id:H,className:"mb-16",children:t}),O("div",{className:"stack-8",hidden:u,children:[w(T,{errorMessage:E,id:R,className:"mb-16"}),w(J,{value:{defaultValue:i,enterKeyHint:b,form:c,name:o,onChange:I,readOnly:P,required:p,value:m},children:s})]})]})}var V=Le({}),J=V.Provider;import{jsx as N,jsxs as Q}from"react/jsx-runtime";var we=Be(function({label:e,id:t,hint:o,hidden:s,dir:p,lang:i,translate:m,slot:u,value:a,className:r,style:n,...d},f){let{inputId:I,hintId:c}=C(t),{value:b,defaultValue:P,...g}=ke(V),x,h;return typeof b<"u"?x=a===b:typeof P<"u"&&a===P&&(h=!0),Q("div",{id:t,className:Ue("flex-row",r),hidden:s,dir:p,lang:i,translate:m,slot:u,style:n,children:[N("input",{...d,...g,ref:f,checked:x,defaultChecked:h,type:"radio",id:I,value:a}),o?Q("div",{className:"flex-col stack-4 ml-8",children:[N("label",{htmlFor:I,children:e}),N(v,{id:c,children:o})]}):N("label",{htmlFor:I,className:"ml-8",children:e})]})});import{forwardRef as Ne}from"react";import{cssMerge as Ae}from"@volvo-cars/css/utils";import{jsx as A,jsxs as Ve}from"react/jsx-runtime";var Se=Ne(function({hint:e,id:t,label:o,hidden:s,dir:p,errorMessage:i,lang:m,translate:u,slot:a,isValid:r,className:n,style:d,...f},I){let{inputId:c,errorId:b,hintId:P}=C(t),g=f.disabled?void 0:i,x=f["aria-invalid"]||r===!1||!!g;return Ve("div",{id:t,className:Ae("v-input-floating-label",n),hidden:s,dir:p,lang:m,translate:u,slot:a,style:d,children:[A("label",{htmlFor:c,children:o}),A("textarea",{placeholder:" ",...f,ref:I,id:c,"aria-invalid":x?!0:void 0,"aria-errormessage":g?b:void 0,"aria-describedby":e?P:void 0}),A(T,{errorMessage:g,id:b,className:"mb-4"}),e&&A(v,{id:P,className:"mt-4",children:e})]})});import{forwardRef as Ge}from"react";import{Fragment as Fe,jsx as G,jsxs as ze}from"react/jsx-runtime";var De=Ge(function({color:e,size:t,loading:o,loadingLabel:s,disabled:p,children:i,variant:m="filled",className:u="",...a},r){let n=!p&&o;return G("button",{ref:r,type:"submit",...a,onClick:d=>{p||o?d.preventDefault():a.onClick&&a.onClick(d)},className:`button-${m} ${u}`.trim(),"aria-disabled":p||o||void 0,"data-loading":n||void 0,"aria-live":typeof o=="boolean"?"polite":void 0,"data-color":e==="neutral"?void 0:e,"data-size":t==="small"?"small":void 0,children:n?ze(Fe,{children:[G("span",{className:"invisible",children:i}),G("progress",{className:"spinner","aria-label":s})]}):i})});export{Me as Checkbox,ae as DateInput,ue as EmailInput,T as ErrorMessage,v as Hint,ie as PasswordInput,we as Radio,J as RadioContextProvider,Re as RadioGroup,he as Select,De as SubmitButton,fe as TelInput,Se as TextArea,te as TextInput,xe as UrlInput}; | ||
//# sourceMappingURL=index.js.map |
"use client" | ||
var q=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Me=Object.prototype.hasOwnProperty;var Be=(o,e)=>{for(var t in e)q(o,t,{get:e[t],enumerable:!0})},ke=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Re(e))!Me.call(o,l)&&l!==t&&q(o,l,{get:()=>e[l],enumerable:!(n=Le(e,l))||n.enumerable});return o};var Ue=o=>ke(q({},"__esModule",{value:!0}),o);var we={};Be(we,{Checkbox:()=>xe,DateInput:()=>ee,EmailInput:()=>ne,ErrorMessage:()=>v,Hint:()=>I,PasswordInput:()=>re,Radio:()=>Ce,RadioContextProvider:()=>Q,RadioGroup:()=>Ie,Select:()=>me,SubmitButton:()=>He,TelInput:()=>se,TextArea:()=>he,TextInput:()=>_,UrlInput:()=>de});module.exports=Ue(we);var G=require("react"),j=require("@volvo-cars/react-icons");var K=require("react"),Z=require("@volvo-cars/css/utils");var W=require("@volvo-cars/react-icons"),V=require("react/jsx-runtime");function v({errorMessage:o,id:e,className:t=""}){return o?(0,V.jsxs)("p",{id:e,className:`micro text-feedback-red flex items-center ${t}`.trim(),role:"alert",children:[(0,V.jsx)(W.Icon,{className:"mr-8",type:"error-12",color:"feedback-red"}),o]}):null}var X=require("react/jsx-runtime");function I({children:o,id:e,className:t=""}){return(0,X.jsx)("p",{id:e,className:`micro text-secondary ${t}`.trim(),children:o})}var Y=require("react");function b(o){let e=(0,Y.useId)(),t=o||e;return{rootId:t,inputId:t+"-input",errorId:t+"-error",hintId:t+"-hint"}}var H=require("react/jsx-runtime"),_=(0,K.forwardRef)(function(e,t){return(0,H.jsx)(T,{...e,type:"text",ref:t})}),T=(0,K.forwardRef)(function({hint:e,id:t,label:n,hidden:l,dir:i,errorMessage:a,lang:c,translate:u,slot:p,isValid:r,className:s,style:d,contentAfter:f,...g},m){let{inputId:x,errorId:P,hintId:C}=b(t),h=g["aria-invalid"]||r===!1||!!a,y={placeholder:" ",...g,ref:m,id:x,"aria-invalid":h?!0:void 0,"aria-errormessage":a?P:void 0,"aria-describedby":e?C:void 0};return(0,H.jsxs)("div",{id:t,className:(0,Z.cssMerge)("v-input-floating-label",s),hidden:l,dir:i,lang:c,translate:u,slot:p,style:d,children:[(0,H.jsx)("label",{htmlFor:x,children:n}),f?(0,H.jsxs)("div",{className:"v-input","data-input-delegate":!0,"aria-invalid":h?!0:void 0,children:[(0,H.jsx)("input",{...y,className:"bg-transparent"}),f]}):(0,H.jsx)("input",{...y}),(0,H.jsx)(v,{errorMessage:a,id:P,className:"mt-4"}),e&&(0,H.jsx)(I,{id:C,className:"mt-4",children:e})]})});var $=require("react/jsx-runtime"),ee=(0,G.forwardRef)(function({value:e,onChange:t,onBlur:n,defaultValue:l,...i},a){let[c,u]=(0,G.useState)(!e&&!l);function p(r){let{validity:s}=r.currentTarget,d=r.currentTarget.required;d||(r.currentTarget.required=!0),u(s.valueMissing&&!s.badInput),d||(r.currentTarget.required=!1)}return(0,$.jsx)(T,{...i,value:e,defaultValue:l,type:"date",ref:a,onBlur:r=>{n?.(r),p(r)},onChange:r=>{t?.(r),p(r)},"data-blank":c?"":void 0,contentAfter:(0,$.jsx)(j.IconButton,{className:"ml-8 -mr-8",variant:"clear",iconName:"calendar","aria-hidden":!0,tabIndex:-1,"aria-label":"",onClick:r=>{let s=r.currentTarget.parentElement?.querySelector("input[type=date]");if(s)try{if(s.showPicker(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent))throw new Error}catch{s.click(),s.focus()}}})})});var D=require("react"),te=require("@volvo-cars/react-icons");var O=require("react/jsx-runtime"),re=(0,D.forwardRef)(function({id:e,defaultPasswordVisible:t=!1,showPasswordLabel:n,...l},i){let[a,c]=(0,D.useState)(t),{inputId:u,rootId:p}=b(e);return(0,O.jsx)(T,{...l,type:a?"text":"password",id:p,ref:i,contentAfter:(0,O.jsx)(te.IconButton,{className:"-mr-8",variant:"clear",iconName:a?"other-eye":"other-eyeslash",...n?{"aria-pressed":a,"aria-label":n,"aria-controls":u}:{"aria-label":"","aria-hidden":!0,tabIndex:-1},onClick:()=>c(r=>!r)})})});var oe=require("react");var ae=require("react/jsx-runtime"),ne=(0,oe.forwardRef)(function(e,t){return(0,ae.jsx)(T,{...e,type:"email",inputMode:"email",ref:t})});var le=require("react");var pe=require("react/jsx-runtime"),se=(0,le.forwardRef)(function(e,t){return(0,pe.jsx)(T,{...e,type:"tel",ref:t})});var ie=require("react");var ue=require("react/jsx-runtime"),de=(0,ie.forwardRef)(function(e,t){return(0,ue.jsx)(T,{...e,type:"url",inputMode:"url",ref:t})});var L=require("react"),ce=require("@volvo-cars/css/utils");var E=require("react/jsx-runtime"),me=(0,L.forwardRef)(function({hint:e,id:t,label:n,hidden:l,dir:i,errorMessage:a,lang:c,translate:u,slot:p,value:r,defaultValue:s,children:d,isValid:f,className:g,...m},x){let P=!1;L.Children.forEach(d,w=>{(0,L.isValidElement)(w)&&w.type==="option"&&w.props.value===""&&(P=!0)});let[C,h]=(0,L.useState)(!s),y=typeof r=="string",{inputId:N,errorId:A,hintId:S}=b(t),Ee=m["aria-invalid"]||f===!1||!!a,z=y?!r:C;return(0,E.jsxs)("div",{id:t,className:(0,ce.cssMerge)("v-input-floating-label",g),hidden:l,dir:i,lang:c,translate:u,slot:p,children:[(0,E.jsx)("label",{htmlFor:N,children:n}),(0,E.jsxs)("select",{...m,ref:x,id:N,onChange:y?m.onChange:w=>{m.onChange?.(w),h(!w.target.value)},value:r,defaultValue:s,"data-blank":z?"":void 0,"aria-invalid":Ee?"true":void 0,"aria-errormessage":a?A:void 0,"aria-describedby":e?S:void 0,children:[!s&&!P&&(0,E.jsx)("option",{value:"",hidden:!z,disabled:!z,children:n}),d]}),(0,E.jsx)(v,{errorMessage:a,id:A,className:"mt-4"}),e&&(0,E.jsx)(I,{id:S,className:"mt-4",children:e})]})});var fe=require("react"),Pe=require("@volvo-cars/css/utils");var R=require("react/jsx-runtime"),xe=(0,fe.forwardRef)(function({label:e,id:t,hint:n,hidden:l,dir:i,lang:a,translate:c,slot:u,style:p,errorMessage:r,isValid:s,className:d,...f},g){let{inputId:m,hintId:x,errorId:P}=b(t),C=f["aria-invalid"]||s===!1||!!r;return(0,R.jsxs)("div",{className:(0,Pe.cssMerge)("flex-row",d),hidden:l,dir:i,lang:a,translate:c,slot:u,style:p,children:[(0,R.jsx)("input",{...f,ref:g,type:"checkbox",id:m,"aria-invalid":C?!0:void 0,"aria-errormessage":r?P:void 0,"aria-describedby":n?x:void 0}),(0,R.jsxs)("div",{className:"flex-col stack-4 ml-8",children:[(0,R.jsx)("label",{htmlFor:m,children:e}),(0,R.jsx)(v,{errorMessage:r,id:P}),n&&(0,R.jsx)(I,{id:x,children:n})]})]})});var F=require("react"),be=require("@volvo-cars/css/utils");var ge=require("react");var M=require("react/jsx-runtime");function Ie({legend:o,id:e,hint:t,name:n,children:l,required:i,defaultValue:a,value:c,hidden:u,dir:p,lang:r,translate:s,slot:d,errorMessage:f,onChange:g,form:m,enterKeyHint:x,readOnly:P,isValid:C,...h}){let{inputId:y,hintId:N,errorId:A}=b(e),S=h["aria-invalid"]||C===!1||!!f;return(0,M.jsxs)("fieldset",{...h,hidden:u,dir:p,lang:r,translate:s,slot:d,form:m,id:y,role:"radiogroup","aria-invalid":S?!0:void 0,"aria-errormessage":f?A:void 0,"aria-describedby":t?N:void 0,"aria-required":i?!0:void 0,children:[(0,M.jsx)("legend",{className:"mb-4",children:o}),t&&(0,M.jsx)(I,{id:N,className:"mb-16",children:t}),(0,M.jsxs)("div",{className:"stack-8",hidden:u,children:[(0,M.jsx)(v,{errorMessage:f,id:A,className:"mb-16"}),(0,M.jsx)(Q,{value:{defaultValue:a,enterKeyHint:x,form:m,name:n,onChange:g,readOnly:P,required:i,value:c},children:l})]})]})}var J=(0,ge.createContext)({}),Q=J.Provider;var B=require("react/jsx-runtime"),Ce=(0,F.forwardRef)(function({label:e,id:t,hint:n,hidden:l,dir:i,lang:a,translate:c,slot:u,value:p,className:r,style:s,...d},f){let{inputId:g,hintId:m}=b(t),{value:x,defaultValue:P,...C}=(0,F.useContext)(J),h,y;return typeof x<"u"?h=p===x:typeof P<"u"&&p===P&&(y=!0),(0,B.jsxs)("div",{id:t,className:(0,be.cssMerge)("flex-row",r),hidden:l,dir:i,lang:a,translate:c,slot:u,style:s,children:[(0,B.jsx)("input",{...d,...C,ref:f,checked:h,defaultChecked:y,type:"radio",id:g,value:p}),n?(0,B.jsxs)("div",{className:"flex-col stack-4 ml-8",children:[(0,B.jsx)("label",{htmlFor:g,children:e}),(0,B.jsx)(I,{id:m,children:n})]}):(0,B.jsx)("label",{htmlFor:g,className:"ml-8",children:e})]})});var ve=require("react"),Te=require("@volvo-cars/css/utils");var U=require("react/jsx-runtime"),he=(0,ve.forwardRef)(function({hint:e,id:t,label:n,hidden:l,dir:i,errorMessage:a,lang:c,translate:u,slot:p,isValid:r,className:s,style:d,...f},g){let{inputId:m,errorId:x,hintId:P}=b(t),C=f["aria-invalid"]||r===!1||!!a;return(0,U.jsxs)("div",{id:t,className:(0,Te.cssMerge)("v-input-floating-label",s),hidden:l,dir:i,lang:c,translate:u,slot:p,style:d,children:[(0,U.jsx)("label",{htmlFor:m,children:n}),(0,U.jsx)("textarea",{placeholder:" ",...f,ref:g,id:m,"aria-invalid":C?!0:void 0,"aria-errormessage":a?x:void 0,"aria-describedby":e?P:void 0}),(0,U.jsx)(v,{errorMessage:a,id:x,className:"mb-4"}),e&&(0,U.jsx)(I,{id:P,className:"mt-4",children:e})]})});var ye=require("react"),k=require("react/jsx-runtime"),He=(0,ye.forwardRef)(function({color:e,size:t,loading:n,loadingLabel:l,disabled:i,children:a,variant:c="filled",className:u="",...p},r){let s=!i&&n;return(0,k.jsx)("button",{ref:r,type:"submit",...p,onClick:d=>{i||n?d.preventDefault():p.onClick&&p.onClick(d)},className:`button-${c} ${u}`.trim(),"aria-disabled":i||n||void 0,"data-loading":s||void 0,"aria-live":typeof n=="boolean"?"polite":void 0,"data-color":e==="neutral"?void 0:e,"data-size":t==="small"?"small":void 0,children:s?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{className:"invisible",children:a}),(0,k.jsx)("progress",{className:"spinner","aria-label":l})]}):a})});0&&(module.exports={Checkbox,DateInput,EmailInput,ErrorMessage,Hint,PasswordInput,Radio,RadioContextProvider,RadioGroup,Select,SubmitButton,TelInput,TextArea,TextInput,UrlInput}); | ||
var K=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var Be=Object.prototype.hasOwnProperty;var ke=(n,e)=>{for(var t in e)K(n,t,{get:e[t],enumerable:!0})},Ue=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Re(e))!Be.call(n,a)&&a!==t&&K(n,a,{get:()=>e[a],enumerable:!(o=Le(e,a))||o.enumerable});return n};var we=n=>Ue(K({},"__esModule",{value:!0}),n);var Ne={};ke(Ne,{Checkbox:()=>xe,DateInput:()=>te,EmailInput:()=>ae,ErrorMessage:()=>T,Hint:()=>C,PasswordInput:()=>oe,Radio:()=>ve,RadioContextProvider:()=>W,RadioGroup:()=>be,Select:()=>fe,SubmitButton:()=>Ee,TelInput:()=>pe,TextArea:()=>he,TextInput:()=>j,UrlInput:()=>ue});module.exports=we(Ne);var D=require("react"),ee=require("@volvo-cars/react-icons");var $=require("react"),_=require("@volvo-cars/css/utils");var X=require("@volvo-cars/react-icons"),G=require("react/jsx-runtime");function T({errorMessage:n,id:e,className:t=""}){return n?(0,G.jsxs)("p",{id:e,className:`micro text-feedback-red flex items-center ${t}`.trim(),role:"alert",children:[(0,G.jsx)(X.Icon,{className:"mr-8",type:"error-12",color:"feedback-red"}),n]}):null}var Y=require("react/jsx-runtime");function C({children:n,id:e,className:t=""}){return(0,Y.jsx)("p",{id:e,className:`micro text-secondary ${t}`.trim(),children:n})}var Z=require("react");function v(n){let e=(0,Z.useId)(),t=n||e;return{rootId:t,inputId:t+"-input",errorId:t+"-error",hintId:t+"-hint"}}var H=require("react/jsx-runtime"),j=(0,$.forwardRef)(function(e,t){return(0,H.jsx)(y,{...e,type:"text",ref:t})}),y=(0,$.forwardRef)(function({hint:e,id:t,label:o,hidden:a,dir:p,errorMessage:i,lang:m,translate:u,slot:s,isValid:r,className:l,style:d,contentAfter:f,...I},c){let{inputId:b,errorId:P,hintId:g}=v(t),x=I.disabled?void 0:i,h=I["aria-invalid"]||r===!1||!!x,E={placeholder:" ",...I,ref:c,id:b,"aria-invalid":h?!0:void 0,"aria-errormessage":x?P:void 0,"aria-describedby":e?g:void 0};return(0,H.jsxs)("div",{id:t,className:(0,_.cssMerge)("v-input-floating-label",l),hidden:a,dir:p,lang:m,translate:u,slot:s,style:d,children:[(0,H.jsx)("label",{htmlFor:b,children:o}),f?(0,H.jsxs)("div",{className:"v-input","data-input-delegate":!0,"aria-invalid":h?!0:void 0,children:[(0,H.jsx)("input",{...E,className:"bg-transparent"}),f]}):(0,H.jsx)("input",{...E}),(0,H.jsx)(T,{errorMessage:x,id:P,className:"mt-4"}),e&&(0,H.jsx)(C,{id:g,className:"mt-4",children:e})]})});var O=require("react/jsx-runtime"),te=(0,D.forwardRef)(function({value:e,onChange:t,onBlur:o,defaultValue:a,...p},i){let[m,u]=(0,D.useState)(!e&&!a);function s(r){let{validity:l}=r.currentTarget,d=r.currentTarget.required;d||(r.currentTarget.required=!0),u(l.valueMissing&&!l.badInput),d||(r.currentTarget.required=!1)}return(0,O.jsx)(y,{...p,value:e,defaultValue:a,type:"date",ref:i,onBlur:r=>{o?.(r),s(r)},onChange:r=>{t?.(r),s(r)},"data-blank":m?"":void 0,contentAfter:(0,O.jsx)(ee.IconButton,{className:"ml-8 -mr-8",variant:"clear",iconName:"calendar","aria-hidden":!0,tabIndex:-1,"aria-label":"",onClick:r=>{let l=r.currentTarget.parentElement?.querySelector("input[type=date]");if(l)try{if(l.showPicker(),/^((?!chrome|android).)*safari/i.test(navigator.userAgent))throw new Error}catch{l.click(),l.focus()}}})})});var F=require("react"),re=require("@volvo-cars/react-icons");var J=require("react/jsx-runtime"),oe=(0,F.forwardRef)(function({id:e,defaultPasswordVisible:t=!1,showPasswordLabel:o,...a},p){let[i,m]=(0,F.useState)(t),{inputId:u,rootId:s}=v(e);return(0,J.jsx)(y,{...a,type:i?"text":"password",id:s,ref:p,contentAfter:(0,J.jsx)(re.IconButton,{className:"-mr-8",variant:"clear",disabled:a.disabled,tabIndex:a.disabled||!o?-1:void 0,iconName:i?"other-eye":"other-eyeslash",...o?{"aria-pressed":i,"aria-label":o,"aria-controls":u}:{"aria-label":"","aria-hidden":!0},onClick:()=>m(r=>!r)})})});var ne=require("react");var le=require("react/jsx-runtime"),ae=(0,ne.forwardRef)(function(e,t){return(0,le.jsx)(y,{...e,type:"email",inputMode:"email",ref:t})});var se=require("react");var ie=require("react/jsx-runtime"),pe=(0,se.forwardRef)(function(e,t){return(0,ie.jsx)(y,{...e,type:"tel",ref:t})});var de=require("react");var ce=require("react/jsx-runtime"),ue=(0,de.forwardRef)(function(e,t){return(0,ce.jsx)(y,{...e,type:"url",inputMode:"url",ref:t})});var L=require("react"),me=require("@volvo-cars/css/utils");var M=require("react/jsx-runtime"),fe=(0,L.forwardRef)(function({hint:e,id:t,label:o,hidden:a,dir:p,errorMessage:i,lang:m,translate:u,slot:s,value:r,defaultValue:l,children:d,isValid:f,className:I,...c},b){let P=!1;L.Children.forEach(d,A=>{(0,L.isValidElement)(A)&&A.type==="option"&&A.props.value===""&&(P=!0)});let[g,x]=(0,L.useState)(!l),h=typeof r=="string",{inputId:E,errorId:S,hintId:N}=v(t),V=c.disabled?void 0:i,Me=c["aria-invalid"]||f===!1||!!V,q=h?!r:g;return(0,M.jsxs)("div",{id:t,className:(0,me.cssMerge)("v-input-floating-label",I),hidden:a,dir:p,lang:m,translate:u,slot:s,children:[(0,M.jsx)("label",{htmlFor:E,children:o}),(0,M.jsxs)("select",{...c,ref:b,id:E,onChange:h?c.onChange:A=>{c.onChange?.(A),x(!A.target.value)},value:r,defaultValue:l,"data-blank":q?"":void 0,"aria-invalid":Me?"true":void 0,"aria-errormessage":V?S:void 0,"aria-describedby":e?N:void 0,children:[!l&&!P&&(0,M.jsx)("option",{value:"",hidden:!q,disabled:!q,children:o}),d]}),(0,M.jsx)(T,{errorMessage:V,id:S,className:"mt-4"}),e&&(0,M.jsx)(C,{id:N,className:"mt-4",children:e})]})});var Pe=require("react"),ge=require("@volvo-cars/css/utils");var R=require("react/jsx-runtime"),xe=(0,Pe.forwardRef)(function({label:e,id:t,hint:o,hidden:a,dir:p,lang:i,translate:m,slot:u,style:s,errorMessage:r,isValid:l,className:d,...f},I){let{inputId:c,hintId:b,errorId:P}=v(t),g=f.disabled?void 0:r,x=f["aria-invalid"]||l===!1||!!g;return(0,R.jsxs)("div",{className:(0,ge.cssMerge)("flex-row",d),hidden:a,dir:p,lang:i,translate:m,slot:u,style:s,children:[(0,R.jsx)("input",{...f,ref:I,type:"checkbox",id:c,"aria-invalid":x?!0:void 0,"aria-errormessage":g?P:void 0,"aria-describedby":o?b:void 0}),(0,R.jsxs)("div",{className:"flex-col stack-4 ml-8",children:[(0,R.jsx)("label",{htmlFor:c,children:e}),(0,R.jsx)(T,{errorMessage:g,id:P}),o&&(0,R.jsx)(C,{id:b,children:o})]})]})});var z=require("react"),Ce=require("@volvo-cars/css/utils");var Ie=require("react");var B=require("react/jsx-runtime");function be({legend:n,id:e,hint:t,name:o,children:a,required:p,defaultValue:i,value:m,hidden:u,dir:s,lang:r,translate:l,slot:d,errorMessage:f,onChange:I,form:c,enterKeyHint:b,readOnly:P,isValid:g,...x}){let{inputId:h,hintId:E,errorId:S}=v(e),N=x.disabled?void 0:f,V=x["aria-invalid"]||g===!1||!!N;return(0,B.jsxs)("fieldset",{...x,hidden:u,dir:s,lang:r,translate:l,slot:d,form:c,id:h,role:"radiogroup","aria-invalid":V?!0:void 0,"aria-errormessage":N?S:void 0,"aria-describedby":t?E:void 0,"aria-required":p?!0:void 0,children:[(0,B.jsx)("legend",{className:"mb-4",children:n}),t&&(0,B.jsx)(C,{id:E,className:"mb-16",children:t}),(0,B.jsxs)("div",{className:"stack-8",hidden:u,children:[(0,B.jsx)(T,{errorMessage:N,id:S,className:"mb-16"}),(0,B.jsx)(W,{value:{defaultValue:i,enterKeyHint:b,form:c,name:o,onChange:I,readOnly:P,required:p,value:m},children:a})]})]})}var Q=(0,Ie.createContext)({}),W=Q.Provider;var k=require("react/jsx-runtime"),ve=(0,z.forwardRef)(function({label:e,id:t,hint:o,hidden:a,dir:p,lang:i,translate:m,slot:u,value:s,className:r,style:l,...d},f){let{inputId:I,hintId:c}=v(t),{value:b,defaultValue:P,...g}=(0,z.useContext)(Q),x,h;return typeof b<"u"?x=s===b:typeof P<"u"&&s===P&&(h=!0),(0,k.jsxs)("div",{id:t,className:(0,Ce.cssMerge)("flex-row",r),hidden:a,dir:p,lang:i,translate:m,slot:u,style:l,children:[(0,k.jsx)("input",{...d,...g,ref:f,checked:x,defaultChecked:h,type:"radio",id:I,value:s}),o?(0,k.jsxs)("div",{className:"flex-col stack-4 ml-8",children:[(0,k.jsx)("label",{htmlFor:I,children:e}),(0,k.jsx)(C,{id:c,children:o})]}):(0,k.jsx)("label",{htmlFor:I,className:"ml-8",children:e})]})});var Te=require("react"),ye=require("@volvo-cars/css/utils");var w=require("react/jsx-runtime"),he=(0,Te.forwardRef)(function({hint:e,id:t,label:o,hidden:a,dir:p,errorMessage:i,lang:m,translate:u,slot:s,isValid:r,className:l,style:d,...f},I){let{inputId:c,errorId:b,hintId:P}=v(t),g=f.disabled?void 0:i,x=f["aria-invalid"]||r===!1||!!g;return(0,w.jsxs)("div",{id:t,className:(0,ye.cssMerge)("v-input-floating-label",l),hidden:a,dir:p,lang:m,translate:u,slot:s,style:d,children:[(0,w.jsx)("label",{htmlFor:c,children:o}),(0,w.jsx)("textarea",{placeholder:" ",...f,ref:I,id:c,"aria-invalid":x?!0:void 0,"aria-errormessage":g?b:void 0,"aria-describedby":e?P:void 0}),(0,w.jsx)(T,{errorMessage:g,id:b,className:"mb-4"}),e&&(0,w.jsx)(C,{id:P,className:"mt-4",children:e})]})});var He=require("react"),U=require("react/jsx-runtime"),Ee=(0,He.forwardRef)(function({color:e,size:t,loading:o,loadingLabel:a,disabled:p,children:i,variant:m="filled",className:u="",...s},r){let l=!p&&o;return(0,U.jsx)("button",{ref:r,type:"submit",...s,onClick:d=>{p||o?d.preventDefault():s.onClick&&s.onClick(d)},className:`button-${m} ${u}`.trim(),"aria-disabled":p||o||void 0,"data-loading":l||void 0,"aria-live":typeof o=="boolean"?"polite":void 0,"data-color":e==="neutral"?void 0:e,"data-size":t==="small"?"small":void 0,children:l?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("span",{className:"invisible",children:i}),(0,U.jsx)("progress",{className:"spinner","aria-label":a})]}):i})});0&&(module.exports={Checkbox,DateInput,EmailInput,ErrorMessage,Hint,PasswordInput,Radio,RadioContextProvider,RadioGroup,Select,SubmitButton,TelInput,TextArea,TextInput,UrlInput}); | ||
//# sourceMappingURL=index.js.map |
@@ -87,3 +87,3 @@ /// <reference types="react" /> | ||
*/ | ||
export declare function RadioGroup({ legend, id, hint, name, children, required, defaultValue, value, hidden, dir, lang, translate, slot, errorMessage, onChange, form, enterKeyHint, readOnly, isValid, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element; | ||
export declare function RadioGroup({ legend, id, hint, name, children, required, defaultValue, value, hidden, dir, lang, translate, slot, errorMessage: errorMessageProp, onChange, form, enterKeyHint, readOnly, isValid, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element; | ||
export type RadioContextValue = Pick<RadioGroupProps, 'defaultValue' | 'enterKeyHint' | 'form' | 'name' | 'onChange' | 'readOnly' | 'required' | 'value'>; | ||
@@ -90,0 +90,0 @@ export declare const RadioContext: React.Context<RadioContextValue>; |
@@ -87,4 +87,4 @@ /// <reference types="react" /> | ||
autoComplete?: string | undefined; | ||
inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined; | ||
inputMode?: "search" | "none" | "email" | "tel" | "text" | "url" | "numeric" | "decimal" | undefined; | ||
} & import("react").RefAttributes<HTMLInputElement>>; | ||
export {}; |
{ | ||
"name": "@volvo-cars/react-forms", | ||
"description": "React form components", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"license": "UNLICENSED", | ||
@@ -41,7 +41,7 @@ "sideEffects": false, | ||
"devDependencies": { | ||
"@types/react": "18.2.37", | ||
"@types/react": "18.2.41", | ||
"@volvo-cars/browserslist-config": "1.4.2", | ||
"react": "18.2.0", | ||
"tsup": "8.0.0", | ||
"typescript": "5.2.2" | ||
"tsup": "8.0.1", | ||
"typescript": "5.3.2" | ||
}, | ||
@@ -48,0 +48,0 @@ "browserslist": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
184273
1154