@starasia/radio 2.0.0 → 2.0.1
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/radio.es.js +3 -3
- package/dist/radio.umd.js +1 -1
- package/package.json +1 -1
package/dist/radio.es.js
CHANGED
|
@@ -130,7 +130,7 @@ input.starasia-radio-input-lg[type="radio"] {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
l(e);
|
|
133
|
-
const
|
|
133
|
+
const h = (r) => {
|
|
134
134
|
const { size: a = "md", label: i, description: n, ...o } = r;
|
|
135
135
|
return /* @__PURE__ */ t(
|
|
136
136
|
"div",
|
|
@@ -155,7 +155,7 @@ const c = (r) => {
|
|
|
155
155
|
{
|
|
156
156
|
style: {
|
|
157
157
|
display: "block",
|
|
158
|
-
color: "#
|
|
158
|
+
color: "var(--sa-text-subtle, #8c8f97)",
|
|
159
159
|
lineHeight: "initial"
|
|
160
160
|
},
|
|
161
161
|
children: n
|
|
@@ -167,5 +167,5 @@ const c = (r) => {
|
|
|
167
167
|
);
|
|
168
168
|
};
|
|
169
169
|
export {
|
|
170
|
-
|
|
170
|
+
h as Radio
|
|
171
171
|
};
|
package/dist/radio.umd.js
CHANGED
|
@@ -122,4 +122,4 @@ input.starasia-radio-input-lg[type="radio"] {
|
|
|
122
122
|
height: calc(var(--sa-radio-height-lg) - 7px);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
`,t="starasia-radio-styles";(o=>{if(!document.getElementById(t)){const i=document.createElement("style");i.id=t,i.textContent=o,document.head.appendChild(i)}})(d);const l=o=>{const{size:i="md",label:e,description:r,...s}=o;return a.jsxs("div",{className:"starasia-radio-container",style:{alignItems:r?"start":"center"},children:[a.jsx("input",{type:"radio",className:`starasia-radio-input starasia-radio-input-${i}`,...s}),e||r?a.jsxs("label",{htmlFor:s.id,style:{lineHeight:1.07},children:[e,r?a.jsx("span",{style:{display:"block",color:"#
|
|
125
|
+
`,t="starasia-radio-styles";(o=>{if(!document.getElementById(t)){const i=document.createElement("style");i.id=t,i.textContent=o,document.head.appendChild(i)}})(d);const l=o=>{const{size:i="md",label:e,description:r,...s}=o;return a.jsxs("div",{className:"starasia-radio-container",style:{alignItems:r?"start":"center"},children:[a.jsx("input",{type:"radio",className:`starasia-radio-input starasia-radio-input-${i}`,...s}),e||r?a.jsxs("label",{htmlFor:s.id,style:{lineHeight:1.07},children:[e,r?a.jsx("span",{style:{display:"block",color:"var(--sa-text-subtle, #8c8f97)",lineHeight:"initial"},children:r}):null]}):null]})};n.Radio=l,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|