@granto-umbrella/umbrella-components 2.3.18 → 2.3.19

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.
@@ -3961,8 +3961,8 @@ const Ge = {
3961
3961
  color: ${F.branding.text.accent.enabled};
3962
3962
  `,
3963
3963
  danger: k0`
3964
- background: ${F.danger.surface.enabled};
3965
- color: ${F.danger.text.onSurface};
3964
+ background: ${F.global.surface.danger.disabled};
3965
+ color: ${F.global.text.feedback.strong.error};
3966
3966
  `,
3967
3967
  success: k0`
3968
3968
  background: ${F.success.surface.feedback};
@@ -83013,6 +83013,7 @@ const M8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83013
83013
  $width: u,
83014
83014
  $height: h,
83015
83015
  "data-testid": b,
83016
+ id: b,
83016
83017
  ...v,
83017
83018
  children: c ? /* @__PURE__ */ L.jsx(
83018
83019
  kt,
@@ -83211,6 +83212,7 @@ const gCt = n(
83211
83212
  wHt,
83212
83213
  {
83213
83214
  "data-testid": A,
83215
+ id: A,
83214
83216
  ...f || {},
83215
83217
  ref: PHt(H, f ? f.ref : null),
83216
83218
  style: v,
@@ -136,8 +136,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[$e]+=1);const W8={width:{none
136
136
  border: 1px solid ${C.branding.border.enabled};
137
137
  color: ${C.branding.text.accent.enabled};
138
138
  `,danger:R0`
139
- background: ${C.danger.surface.enabled};
140
- color: ${C.danger.text.onSurface};
139
+ background: ${C.global.surface.danger.disabled};
140
+ color: ${C.global.text.feedback.strong.error};
141
141
  `,success:R0`
142
142
  background: ${C.success.surface.feedback};
143
143
  color: ${C.success.text.feedback};
@@ -346,7 +346,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$e]+=1);const W8={width:{none
346
346
  cursor: not-allowed;
347
347
  opacity: 0.6;
348
348
  }
349
- `,t6=({children:t,size:e="md",variant:r="primary",radius:l="md",isLoading:n=!1,iconSize:c="lg",leftIcon:i,rightIcon:p,width:s,height:f,testId:h,...b})=>{const v=i&&Z8[i],d=p&&Z8[p];return L.jsx(syr,{$size:e,$variant:r,$radius:l,$width:s,$height:f,"data-testid":h,...b,children:n?L.jsx(Dt,{size:W.global.padding[c]}):L.jsxs(L.Fragment,{children:[v&&L.jsx("span",{className:"icon-left",children:L.jsx(v,{size:W.global.padding[c]})}),t,d&&L.jsx("span",{className:"icon-right",children:L.jsx(d,{size:W.global.padding[c]})})]})})},fyr=U.label`
349
+ `,t6=({children:t,size:e="md",variant:r="primary",radius:l="md",isLoading:n=!1,iconSize:c="lg",leftIcon:i,rightIcon:p,width:s,height:f,testId:h,...b})=>{const v=i&&Z8[i],d=p&&Z8[p];return L.jsx(syr,{$size:e,$variant:r,$radius:l,$width:s,$height:f,"data-testid":h,id:h,...b,children:n?L.jsx(Dt,{size:W.global.padding[c]}):L.jsxs(L.Fragment,{children:[v&&L.jsx("span",{className:"icon-left",children:L.jsx(v,{size:W.global.padding[c]})}),t,d&&L.jsx("span",{className:"icon-right",children:L.jsx(d,{size:W.global.padding[c]})})]})})},fyr=U.label`
350
350
  display: flex;
351
351
  align-items: center;
352
352
  gap: ${W.global.gap.sm};
@@ -444,7 +444,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[$e]+=1);const W8={width:{none
444
444
  align-items: center;
445
445
  justify-content: center;
446
446
  color: ${C.neutral[400]};
447
- `;function wyr(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}const jyr=a.forwardRef(({type:t="text",placeholder:e="",value:r,onChange:l,error:n=!1,disabled:c=!1,icon:i,label:p,supportText:s,radius:f="md",shadow:h="default",style:b,register:v,testId:d,className:Z,onBlur:A},H)=>L.jsxs(yyr,{children:[p&&L.jsx(gyr,{children:p}),L.jsxs(Eyr,{$error:n,$disabled:c,$radius:f,$shadow:h,children:[i&&L.jsx(Myr,{children:i}),L.jsx(Vyr,{"data-testid":d,...v||{},ref:wyr(H,v?v.ref:null),style:b,type:t,placeholder:e,value:r,onChange:l,onBlur:A,className:Z,disabled:c})]}),s&&L.jsx(Oyr,{$error:n,children:s})]}));var Pyr="Label",x72=g.forwardRef((t,e)=>L.jsx(B1.label,{...t,ref:e,onMouseDown:r=>{var n;r.target.closest("button, input, select, textarea")||((n=t.onMouseDown)==null||n.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));x72.displayName=Pyr;var uyr=x72;const Lyr=U(uyr)`
447
+ `;function wyr(...t){return e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}}const jyr=a.forwardRef(({type:t="text",placeholder:e="",value:r,onChange:l,error:n=!1,disabled:c=!1,icon:i,label:p,supportText:s,radius:f="md",shadow:h="default",style:b,register:v,testId:d,className:Z,onBlur:A},H)=>L.jsxs(yyr,{children:[p&&L.jsx(gyr,{children:p}),L.jsxs(Eyr,{$error:n,$disabled:c,$radius:f,$shadow:h,children:[i&&L.jsx(Myr,{children:i}),L.jsx(Vyr,{"data-testid":d,id:d,...v||{},ref:wyr(H,v?v.ref:null),style:b,type:t,placeholder:e,value:r,onChange:l,onBlur:A,className:Z,disabled:c})]}),s&&L.jsx(Oyr,{$error:n,children:s})]}));var Pyr="Label",x72=g.forwardRef((t,e)=>L.jsx(B1.label,{...t,ref:e,onMouseDown:r=>{var n;r.target.closest("button, input, select, textarea")||((n=t.onMouseDown)==null||n.call(t,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));x72.displayName=Pyr;var uyr=x72;const Lyr=U(uyr)`
448
448
  font-size: 0.875rem; /* Equivalente a text-sm */
449
449
  font-weight: 500; /* Equivalente a font-medium */
450
450
  line-height: 1; /* Equivalente a leading-none */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granto-umbrella/umbrella-components",
3
- "version": "2.3.18",
3
+ "version": "2.3.19",
4
4
  "description": "Umbrella Components for React",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -17,8 +17,8 @@ const badgeVariants = {
17
17
  color: ${semanticColors.branding.text.accent.enabled};
18
18
  `,
19
19
  danger: css`
20
- background: ${semanticColors.danger.surface.enabled};
21
- color: ${semanticColors.danger.text.onSurface};
20
+ background: ${semanticColors.global.surface.danger.disabled};
21
+ color: ${semanticColors.global.text.feedback.strong.error};
22
22
  `,
23
23
  success: css`
24
24
  background: ${semanticColors.success.surface.feedback};
@@ -31,6 +31,7 @@ const Button: React.FC<ButtonProps> = ({
31
31
  $width={width}
32
32
  $height={height}
33
33
  data-testid={testId}
34
+ id={testId}
34
35
  {...props}
35
36
  >
36
37
  {isLoading ? (
@@ -57,6 +57,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(
57
57
  {icon && <Icon>{icon}</Icon>}
58
58
  <StyledInput
59
59
  data-testid={testId}
60
+ id={testId}
60
61
  {...(register || {})}
61
62
  ref={mergeRefs(ref, register ? register.ref : null)}
62
63
  style={style}