@julien-wiegandt/open-ui 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/open-ui.js +2 -1
- package/dist/open-ui.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/open-ui.js
CHANGED
|
@@ -4405,7 +4405,8 @@ const Pd = St.input`
|
|
|
4405
4405
|
color: n.error ? t.palette.error.main : t.palette[n.color ?? "default"].main,
|
|
4406
4406
|
size: "12",
|
|
4407
4407
|
children: n.label
|
|
4408
|
-
}
|
|
4408
|
+
},
|
|
4409
|
+
n.label
|
|
4409
4410
|
),
|
|
4410
4411
|
n.required && /* @__PURE__ */ A.jsx(bt, { color: t.palette.error.main, size: "12", children: "*" })
|
|
4411
4412
|
]
|
package/dist/open-ui.umd.cjs
CHANGED
|
@@ -237,7 +237,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wi]+=1);const Zt={none:"0px",
|
|
|
237
237
|
background-position: center;
|
|
238
238
|
cursor: pointer;
|
|
239
239
|
}
|
|
240
|
-
`,Ul=R.forwardRef((n,e)=>{const t=$t();return D.jsxs(we,{direction:"column",children:[(n.label||n.required)&&D.jsxs(we,{direction:"row",gap:.5,align:"center",mb:n.type==="color"?"0px":"4px",style:{minHeight:"1.2em"},children:[n.label&&D.jsx(ut,{color:n.error?t.palette.error.main:t.palette[n.color??"default"].main,size:"12",children:n.label}),n.required&&D.jsx(ut,{color:t.palette.error.main,size:"12",children:"*"})]}),D.jsx(vd,{ref:e,...n}),n.error&&D.jsx(ut,{color:t.palette.error.main,size:"10",mt:n.type==="color"?"0px":"4px",style:{minHeight:"1.2em"},children:n.error})]})});Ul.displayName="Input";const wd=(n,e)=>{switch(n){case 1:return e==="sm"?"28px":"32px";case 2:return e==="sm"?"22px":"24px";case 3:return"20px";case 4:return"18px";case 5:return"16px";case 6:return"14px";default:return"1rem"}},bd=gt.h1`
|
|
240
|
+
`,Ul=R.forwardRef((n,e)=>{const t=$t();return D.jsxs(we,{direction:"column",children:[(n.label||n.required)&&D.jsxs(we,{direction:"row",gap:.5,align:"center",mb:n.type==="color"?"0px":"4px",style:{minHeight:"1.2em"},children:[n.label&&D.jsx(ut,{color:n.error?t.palette.error.main:t.palette[n.color??"default"].main,size:"12",children:n.label},n.label),n.required&&D.jsx(ut,{color:t.palette.error.main,size:"12",children:"*"})]}),D.jsx(vd,{ref:e,...n}),n.error&&D.jsx(ut,{color:t.palette.error.main,size:"10",mt:n.type==="color"?"0px":"4px",style:{minHeight:"1.2em"},children:n.error})]})});Ul.displayName="Input";const wd=(n,e)=>{switch(n){case 1:return e==="sm"?"28px":"32px";case 2:return e==="sm"?"22px":"24px";case 3:return"20px";case 4:return"18px";case 5:return"16px";case 6:return"14px";default:return"1rem"}},bd=gt.h1`
|
|
241
241
|
font-family: ${({theme:n})=>n.title.fontFamily};
|
|
242
242
|
margin: 0;
|
|
243
243
|
color: ${({color:n})=>n};
|