sbwb-ds 1.0.66 → 1.0.67

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/sbwb-ds.js CHANGED
@@ -50693,9 +50693,10 @@ const vce = F.div`
50693
50693
  width: o = "100%",
50694
50694
  onChange: s,
50695
50695
  defaultChecked: l = !1,
50696
- ...c
50697
- }, u) => {
50698
- const h = Ae[`SelectedTrue1${t === "Small" ? "Sm" : "Md"}`], f = Ae[`SelectedFalse1${t === "Small" ? "Sm" : "Md"}`], d = xt(null);
50696
+ checked: c = !1,
50697
+ ...u
50698
+ }, h) => {
50699
+ const f = Ae[`SelectedTrue1${t === "Small" ? "Sm" : "Md"}`], d = Ae[`SelectedFalse1${t === "Small" ? "Sm" : "Md"}`], v = xt(null);
50699
50700
  return /* @__PURE__ */ R(jce, { width: o, children: /* @__PURE__ */ fe(
50700
50701
  qce,
50701
50702
  {
@@ -50713,17 +50714,18 @@ const vce = F.div`
50713
50714
  size: t,
50714
50715
  "data-testid": "radio",
50715
50716
  value: n,
50717
+ checked: c,
50716
50718
  name: a,
50717
50719
  defaultChecked: l,
50718
50720
  onChange: s,
50719
- ...c,
50720
- ref: (v) => {
50721
- d.current = v, typeof u == "function" ? u(v) : u && (u.current = v);
50721
+ ...u,
50722
+ ref: (p) => {
50723
+ v.current = p, typeof h == "function" ? h(p) : h && (h.current = p);
50722
50724
  }
50723
50725
  }
50724
50726
  ),
50725
- /* @__PURE__ */ R(Kce, { size: t, disabled: i, children: /* @__PURE__ */ R(h, {}) }),
50726
- /* @__PURE__ */ R(Qce, { size: t, disabled: i, children: /* @__PURE__ */ R(f, {}) }),
50727
+ /* @__PURE__ */ R(Kce, { size: t, disabled: i, children: /* @__PURE__ */ R(f, {}) }),
50728
+ /* @__PURE__ */ R(Qce, { size: t, disabled: i, children: /* @__PURE__ */ R(d, {}) }),
50727
50729
  r
50728
50730
  ]
50729
50731
  }
@@ -1795,7 +1795,7 @@ echarts.use([`+T+"]);":"Unknown series "+k))}return}if(h==="tooltip"){if(w){proc
1795
1795
  fill: ${({disabled:e})=>e?S.colors.neutralColors.colorNeutralCloudy:S.colors.neutralColors.colorNeutralDark};
1796
1796
  }
1797
1797
  }
1798
- `,xV=$.forwardRef(({id:e,label:r,size:t="Medium",value:n,name:a,disabled:i=!1,width:o="100%",onChange:s,defaultChecked:l=!1,...c},u)=>{const h=Ae[`SelectedTrue1${t==="Small"?"Sm":"Md"}`],f=Ae[`SelectedFalse1${t==="Small"?"Sm":"Md"}`],d=$.useRef(null);return N(Tae,{width:o,children:he(Hae,{htmlFor:`radio-${r}`,disabled:i,size:t,"data-testid":"radio-label",children:[N(o5,{type:"radio",disabled:i,id:`radio-${r}`,size:t,"data-testid":"radio",value:n,name:a,defaultChecked:l,onChange:s,...c,ref:v=>{d.current=v,typeof u=="function"?u(v):u&&(u.current=v)}}),N(Aae,{size:t,disabled:i,children:N(h,{})}),N(Pae,{size:t,disabled:i,children:N(f,{})}),r]})})});xV.displayName="Radio";const Iae=z.div`
1798
+ `,xV=$.forwardRef(({id:e,label:r,size:t="Medium",value:n,name:a,disabled:i=!1,width:o="100%",onChange:s,defaultChecked:l=!1,checked:c=!1,...u},h)=>{const f=Ae[`SelectedTrue1${t==="Small"?"Sm":"Md"}`],d=Ae[`SelectedFalse1${t==="Small"?"Sm":"Md"}`],v=$.useRef(null);return N(Tae,{width:o,children:he(Hae,{htmlFor:`radio-${r}`,disabled:i,size:t,"data-testid":"radio-label",children:[N(o5,{type:"radio",disabled:i,id:`radio-${r}`,size:t,"data-testid":"radio",value:n,checked:c,name:a,defaultChecked:l,onChange:s,...u,ref:p=>{v.current=p,typeof h=="function"?h(p):h&&(h.current=p)}}),N(Aae,{size:t,disabled:i,children:N(f,{})}),N(Pae,{size:t,disabled:i,children:N(d,{})}),r]})})});xV.displayName="Radio";const Iae=z.div`
1799
1799
  height: ${({height:e})=>e||"auto"};
1800
1800
  width: ${({width:e})=>e||"fit-content"};
1801
1801
  background-color: ${({backgroundColor:e})=>{switch(e){case"solo":return S.colors.backgroundColors.colorBackgroundSky;case"sky":return S.colors.backgroundColors.colorBackgroundSky;case"grass":return S.colors.backgroundColors.colorBackgroundCarpet;case"carpet":return S.colors.backgroundColors.colorBackgroundCarpet;case"snow":return S.colors.backgroundColors.colorBackgroundSnow}}};
@@ -5,7 +5,8 @@ interface RadioProps extends RadioElementProps {
5
5
  id?: string;
6
6
  label?: string;
7
7
  disabled?: boolean;
8
- value?: boolean;
8
+ value?: string;
9
+ checked?: boolean;
9
10
  size: 'Small' | 'Medium';
10
11
  name?: string;
11
12
  width?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbwb-ds",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "type": "module",
5
5
  "description": "Sistema de design para padronização dos processos visuais do portal SUBWEB",
6
6
  "main": "dist/sbwb-ds.js",
@@ -7,7 +7,8 @@ interface RadioProps extends RadioElementProps {
7
7
  id?: string;
8
8
  label?: string;
9
9
  disabled?: boolean;
10
- value?: boolean;
10
+ value?: string;
11
+ checked?: boolean;
11
12
  size: 'Small' | 'Medium';
12
13
  name?: string;
13
14
  width?: string;
@@ -30,7 +31,7 @@ const Radio: React.FC<RadioProps> = forwardRef<
30
31
  width = '100%',
31
32
  onChange,
32
33
  defaultChecked = false,
33
-
34
+ checked = false,
34
35
  ...props
35
36
  },
36
37
  ref
@@ -54,6 +55,7 @@ const Radio: React.FC<RadioProps> = forwardRef<
54
55
  size={size}
55
56
  data-testid="radio"
56
57
  value={value}
58
+ checked={checked}
57
59
  name={name}
58
60
  defaultChecked={defaultChecked}
59
61
  onChange={onChange}