@granto-umbrella/umbrella-components 2.3.18 → 2.3.20

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/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.20",
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};
@@ -94,6 +94,23 @@ const buttonVariants = {
94
94
  background: ${semanticColors.global.surface.disabled};
95
95
  }
96
96
  `,
97
+ outline_danger: css`
98
+ border: 1px solid ${semanticColors.danger.surface.enabled};
99
+ color: ${semanticColors.danger.text.enabled};
100
+ background: transparent;
101
+ &:hover {
102
+ border: 1px solid ${semanticColors.danger.surface.hover};
103
+ color: ${semanticColors.danger.text.hover};
104
+ }
105
+ &:active {
106
+ border: 1px solid ${semanticColors.danger.surface.pressed};
107
+ color: ${semanticColors.danger.text.pressed};
108
+ }
109
+ &:disabled {
110
+ border: 1px solid ${semanticColors.danger.surface.disabled};
111
+ color: ${semanticColors.danger.text.disabled};
112
+ }
113
+ `,
97
114
  ghost: css`
98
115
  background: transparent;
99
116
  color: ${semanticColors.branding.text.accent.enabled};
@@ -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 ? (
@@ -6,6 +6,7 @@ export interface ButtonProps
6
6
  | "outline"
7
7
  | "outline_ghost"
8
8
  | "outline_ghost_disabled"
9
+ | "outline_danger"
9
10
  | "danger"
10
11
  | "ghost"
11
12
  | "ghost_alert"
@@ -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}