@happeouikit/form-elements 2.3.38 → 2.3.39
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/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -228,6 +228,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
228
228
|
background-color: ${({background:e})=>e||"var(--color-stroke)"};
|
|
229
229
|
border: 2px solid ${({background:e})=>e||"var(--color-stroke)"};
|
|
230
230
|
border-radius: var(--radius-pill);
|
|
231
|
+
flex-shrink: 0;
|
|
231
232
|
|
|
232
233
|
:active {
|
|
233
234
|
transform: none;
|
|
@@ -430,6 +431,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
430
431
|
padding-inline-end: 0;
|
|
431
432
|
padding-block-start: 0;
|
|
432
433
|
`,Oa=({label:e,subtitle:t,description:r,background:n,id:a,onChange:i,...o})=>{const[s]=f.useState(()=>a||`radio_${Ot()}`),u=f.useCallback(c=>{if(o.disabled)return;c.preventDefault();const d={...c,target:{...c.target,checked:!0,id:s}};typeof i=="function"&&i(d,!0)},[s,i,o.disabled]),l=f.useCallback(c=>{c.key.match(/enter|spacebar|\W{1}/i)&&(c.preventDefault(),u(c))},[u]);return W.jsxs(ch,{background:n,children:[W.jsx("input",{type:"radio","aria-describedby":r?`${s}_description`:void 0,...o,id:s,onKeyDown:l}),W.jsx(on,{onClick:u,onKeyDown:l,background:n}),e&&W.jsxs(ih,{children:[W.jsxs(oh,{children:[e&&W.jsx(lh,{bold:!0,htmlFor:s,"data-tip":o["data-tip"],"data-tip-disable":o["data-tip-disable"],onClick:u,children:e}),t&&W.jsx(sh,{children:t})]}),r&&W.jsx(uh,{id:`${s}_description`,children:r})]})]})};Oa.propTypes={label:P.node,subtitle:P.node,description:P.node};Oa.defaultProps={label:null};const on=S.span`
|
|
434
|
+
box-sizing: content-box;
|
|
433
435
|
position: relative;
|
|
434
436
|
height: 16px;
|
|
435
437
|
width: 16px;
|