Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@volvo-cars/react-forms

Package Overview
Dependencies
Maintainers
8
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volvo-cars/react-forms - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

dist/esm/index.js
"use client"
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 y({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 R,jsxs as D}from"react/jsx-runtime";var te=F(function(e,t){return R(T,{...e,type:"text",ref:t})}),T=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("input-floating-label",n),hidden:s,dir:p,lang:m,translate:u,slot:a,style:d,children:[R("label",{htmlFor:b,children:o}),f?D("div",{className:"input","data-input-delegate":!0,"aria-invalid":h?!0:void 0,children:[R("input",{...H,className:"bg-transparent"}),f]}):R("input",{...H}),R(y,{errorMessage:x,id:P,className:"mt-4"}),e&&R(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(T,{...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(T,{...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(T,{...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(T,{...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(T,{...e,type:"url",inputMode:"url",ref:t})});import{Children as be,forwardRef as Ce,isValidElement as ve,useState as ye}from"react";import{cssMerge as Te}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]=ye(!n),h=typeof r=="string",{inputId:H,errorId:L,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:Te("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?L:void 0,"aria-describedby":e?E:void 0,children:[!n&&!P&&k("option",{value:"",hidden:!S,disabled:!S,children:o}),d]}),k(y,{errorMessage:B,id:L,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(y,{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 Re}from"react";import{jsx as N,jsxs as O}from"react/jsx-runtime";function Le({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:L}=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?L:void 0,"aria-describedby":t?H:void 0,"aria-required":p?!0:void 0,children:[N("legend",{className:"mb-4",children:l}),t&&N(v,{id:H,className:"mb-16",children:t}),O("div",{className:"stack-8",hidden:u,children:[N(y,{errorMessage:E,id:L,className:"mb-16"}),N(J,{value:{defaultValue:i,enterKeyHint:b,form:c,name:o,onChange:I,readOnly:P,required:p,value:m},children:s})]})]})}var V=Re({}),J=V.Provider;import{jsx as w,jsxs as Q}from"react/jsx-runtime";var Ne=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:[w("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:[w("label",{htmlFor:I,children:e}),w(v,{id:c,children:o})]}):w("label",{htmlFor:I,className:"ml-8",children:e})]})});import{forwardRef as we}from"react";import{cssMerge as Ae}from"@volvo-cars/css/utils";import{jsx as A,jsxs as Ve}from"react/jsx-runtime";var Se=we(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("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(y,{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,y as ErrorMessage,v as Hint,ie as PasswordInput,Ne as Radio,J as RadioContextProvider,Le as RadioGroup,he as Select,De as SubmitButton,fe as TelInput,Se as TextArea,te 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 D}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 v({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 T({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 M,jsxs as F}from"react/jsx-runtime";var te=D(function(e,t){return M(y,{...e,type:"text",ref:t})}),y=D(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,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 F("div",{id:t,className:ee("input-floating-label",n),hidden:s,dir:p,lang:m,translate:u,slot:a,style:d,children:[M("label",{htmlFor:b,children:o}),f?F("div",{className:"input","data-input-delegate":!0,"aria-invalid":h?!0:void 0,children:[M("input",{...E,className:"bg-transparent"}),f]}):M("input",{...E}),M(v,{errorMessage:x,id:P,className:"mt-4"}),e&&M(T,{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 Te,useState as ve}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,R=>{Te(R)&&R.type==="option"&&R.props.value===""&&(P=!0)});let[g,x]=ve(!n),h=typeof r=="string",{inputId:E,errorId:L,hintId:H}=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("input-floating-label",I),hidden:s,dir:p,lang:m,translate:u,slot:a,children:[k("label",{htmlFor:E,children:o}),K("select",{...c,ref:b,id:E,onChange:h?c.onChange:R=>{c.onChange?.(R),x(!R.target.value)},value:r,defaultValue:n,"data-blank":S?"":void 0,"aria-invalid":W?"true":void 0,"aria-errormessage":B?L:void 0,"aria-describedby":e?H:void 0,children:[!n&&!P&&k("option",{value:"",hidden:!S,disabled:!S,children:o}),d]}),k(v,{errorMessage:B,id:L,className:"mt-4"}),e&&k(T,{id:H,className:"mt-4",children:e})]})});import{forwardRef as Ee}from"react";import{cssMerge as He}from"@volvo-cars/css/utils";import{jsx as U,jsxs as $}from"react/jsx-runtime";var Re=Ee(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:He("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(v,{errorMessage:g,id:P}),o&&U(T,{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 Me}from"react";import{jsx as w,jsxs as O}from"react/jsx-runtime";function Le({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:E,errorId:L}=C(e),H=x.disabled?void 0:f,B=x["aria-invalid"]||g===!1||!!H;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":H?L:void 0,"aria-describedby":t?E:void 0,"aria-required":p?!0:void 0,children:[w("legend",{className:"mb-4",children:l}),t&&w(T,{id:E,className:"mb-16",children:t}),O("div",{className:"stack-8",hidden:u,children:[w(v,{errorMessage:H,id:L,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=Me({}),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(T,{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("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(v,{errorMessage:g,id:b,className:"mb-4"}),e&&A(T,{id:P,className:"mt-4",children:e})]})});import{forwardRef as Ge}from"react";import{Fragment as De,jsx as G,jsxs as ze}from"react/jsx-runtime";var Fe=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(De,{children:[G("span",{className:"invisible",children:i}),G("progress",{className:"spinner","aria-label":s})]}):i})});export{Re as Checkbox,ae as DateInput,ue as EmailInput,v as ErrorMessage,T as Hint,ie as PasswordInput,we as Radio,J as RadioContextProvider,Le as RadioGroup,he as Select,Fe as SubmitButton,fe as TelInput,Se as TextArea,te as TextInput,xe as UrlInput};
//# sourceMappingURL=index.js.map
"use client"
var K=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var Le=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 Le(e))!Be.call(n,a)&&a!==t&&K(n,a,{get:()=>e[a],enumerable:!(o=Re(e,a))||o.enumerable});return n};var Ne=n=>Ue(K({},"__esModule",{value:!0}),n);var we={};ke(we,{Checkbox:()=>xe,DateInput:()=>te,EmailInput:()=>ae,ErrorMessage:()=>y,Hint:()=>C,PasswordInput:()=>oe,Radio:()=>ve,RadioContextProvider:()=>W,RadioGroup:()=>be,Select:()=>fe,SubmitButton:()=>Ee,TelInput:()=>pe,TextArea:()=>he,TextInput:()=>j,UrlInput:()=>ue});module.exports=Ne(we);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 y({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)(T,{...e,type:"text",ref:t})}),T=(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)("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:"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)(y,{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)(T,{...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)(T,{...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)(T,{...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)(T,{...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)(T,{...e,type:"url",inputMode:"url",ref:t})});var R=require("react"),me=require("@volvo-cars/css/utils");var M=require("react/jsx-runtime"),fe=(0,R.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;R.Children.forEach(d,A=>{(0,R.isValidElement)(A)&&A.type==="option"&&A.props.value===""&&(P=!0)});let[g,x]=(0,R.useState)(!l),h=typeof r=="string",{inputId:E,errorId:S,hintId:w}=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)("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?w:void 0,children:[!l&&!P&&(0,M.jsx)("option",{value:"",hidden:!q,disabled:!q,children:o}),d]}),(0,M.jsx)(y,{errorMessage:V,id:S,className:"mt-4"}),e&&(0,M.jsx)(C,{id:w,className:"mt-4",children:e})]})});var Pe=require("react"),ge=require("@volvo-cars/css/utils");var L=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,L.jsxs)("div",{className:(0,ge.cssMerge)("flex-row",d),hidden:a,dir:p,lang:i,translate:m,slot:u,style:s,children:[(0,L.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,L.jsxs)("div",{className:"flex-col stack-4 ml-8",children:[(0,L.jsx)("label",{htmlFor:c,children:e}),(0,L.jsx)(y,{errorMessage:g,id:P}),o&&(0,L.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),w=x.disabled?void 0:f,V=x["aria-invalid"]||g===!1||!!w;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":w?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)(y,{errorMessage:w,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 ye=require("react"),Te=require("@volvo-cars/css/utils");var N=require("react/jsx-runtime"),he=(0,ye.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,N.jsxs)("div",{id:t,className:(0,Te.cssMerge)("input-floating-label",l),hidden:a,dir:p,lang:m,translate:u,slot:s,style:d,children:[(0,N.jsx)("label",{htmlFor:c,children:o}),(0,N.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,N.jsx)(y,{errorMessage:g,id:b,className:"mb-4"}),e&&(0,N.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});
var K=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var Le=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 Le(e))!Be.call(n,a)&&a!==t&&K(n,a,{get:()=>e[a],enumerable:!(o=Me(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:()=>v,Hint:()=>C,PasswordInput:()=>oe,Radio:()=>Te,RadioContextProvider:()=>W,RadioGroup:()=>be,Select:()=>fe,SubmitButton:()=>He,TelInput:()=>pe,TextArea:()=>he,TextInput:()=>j,UrlInput:()=>ue});module.exports=we(Ne);var F=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 v({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 T(n){let e=(0,Z.useId)(),t=n||e;return{rootId:t,inputId:t+"-input",errorId:t+"-error",hintId:t+"-hint"}}var E=require("react/jsx-runtime"),j=(0,$.forwardRef)(function(e,t){return(0,E.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}=T(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(0,E.jsxs)("div",{id:t,className:(0,_.cssMerge)("input-floating-label",l),hidden:a,dir:p,lang:m,translate:u,slot:s,style:d,children:[(0,E.jsx)("label",{htmlFor:b,children:o}),f?(0,E.jsxs)("div",{className:"input","data-input-delegate":!0,"aria-invalid":h?!0:void 0,children:[(0,E.jsx)("input",{...H,className:"bg-transparent"}),f]}):(0,E.jsx)("input",{...H}),(0,E.jsx)(v,{errorMessage:x,id:P,className:"mt-4"}),e&&(0,E.jsx)(C,{id:g,className:"mt-4",children:e})]})});var O=require("react/jsx-runtime"),te=(0,F.forwardRef)(function({value:e,onChange:t,onBlur:o,defaultValue:a,...p},i){let[m,u]=(0,F.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 D=require("react"),re=require("@volvo-cars/react-icons");var J=require("react/jsx-runtime"),oe=(0,D.forwardRef)(function({id:e,defaultPasswordVisible:t=!1,showPasswordLabel:o,...a},p){let[i,m]=(0,D.useState)(t),{inputId:u,rootId:s}=T(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 M=require("react"),me=require("@volvo-cars/css/utils");var R=require("react/jsx-runtime"),fe=(0,M.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;M.Children.forEach(d,A=>{(0,M.isValidElement)(A)&&A.type==="option"&&A.props.value===""&&(P=!0)});let[g,x]=(0,M.useState)(!l),h=typeof r=="string",{inputId:H,errorId:S,hintId:N}=T(t),V=c.disabled?void 0:i,Re=c["aria-invalid"]||f===!1||!!V,q=h?!r:g;return(0,R.jsxs)("div",{id:t,className:(0,me.cssMerge)("input-floating-label",I),hidden:a,dir:p,lang:m,translate:u,slot:s,children:[(0,R.jsx)("label",{htmlFor:H,children:o}),(0,R.jsxs)("select",{...c,ref:b,id:H,onChange:h?c.onChange:A=>{c.onChange?.(A),x(!A.target.value)},value:r,defaultValue:l,"data-blank":q?"":void 0,"aria-invalid":Re?"true":void 0,"aria-errormessage":V?S:void 0,"aria-describedby":e?N:void 0,children:[!l&&!P&&(0,R.jsx)("option",{value:"",hidden:!q,disabled:!q,children:o}),d]}),(0,R.jsx)(v,{errorMessage:V,id:S,className:"mt-4"}),e&&(0,R.jsx)(C,{id:N,className:"mt-4",children:e})]})});var Pe=require("react"),ge=require("@volvo-cars/css/utils");var L=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}=T(t),g=f.disabled?void 0:r,x=f["aria-invalid"]||l===!1||!!g;return(0,L.jsxs)("div",{className:(0,ge.cssMerge)("flex-row",d),hidden:a,dir:p,lang:i,translate:m,slot:u,style:s,children:[(0,L.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,L.jsxs)("div",{className:"flex-col stack-4 ml-8",children:[(0,L.jsx)("label",{htmlFor:c,children:e}),(0,L.jsx)(v,{errorMessage:g,id:P}),o&&(0,L.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:H,errorId:S}=T(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?H:void 0,"aria-required":p?!0:void 0,children:[(0,B.jsx)("legend",{className:"mb-4",children:n}),t&&(0,B.jsx)(C,{id:H,className:"mb-16",children:t}),(0,B.jsxs)("div",{className:"stack-8",hidden:u,children:[(0,B.jsx)(v,{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"),Te=(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}=T(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 ve=require("react"),ye=require("@volvo-cars/css/utils");var w=require("react/jsx-runtime"),he=(0,ve.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}=T(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)("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)(v,{errorMessage:g,id:b,className:"mb-4"}),e&&(0,w.jsx)(C,{id:P,className:"mt-4",children:e})]})});var Ee=require("react"),U=require("react/jsx-runtime"),He=(0,Ee.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,4 +87,4 @@ /// <reference types="react" />

autoComplete?: string | undefined;
inputMode?: "search" | "none" | "text" | "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": "1.1.1",
"version": "1.1.2",
"license": "UNLICENSED",

@@ -38,11 +38,11 @@ "sideEffects": false,

"dependencies": {
"@volvo-cars/react-icons": "^0.18.0"
"@volvo-cars/react-icons": "^0.19.0"
},
"devDependencies": {
"@types/react": "18.2.67",
"@types/react": "18.3.1",
"@volvo-cars/browserslist-config": "1.4.3",
"@volvo-cars/css": "1.3.0",
"react": "18.2.0",
"@volvo-cars/css": "1.6.0",
"react": "18.3.1",
"tsup": "8.0.2",
"typescript": "5.4.2"
"typescript": "5.4.5"
},

@@ -49,0 +49,0 @@ "browserslist": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc