agroptima-design-system 0.28.2 → 0.28.3

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": "agroptima-design-system",
3
- "version": "0.28.2",
3
+ "version": "0.28.3",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -51,7 +51,7 @@ export function Alert({
51
51
  {text}
52
52
  </span>
53
53
  </div>
54
- {button && <IconButton {...button} variant="primary" />}
54
+ {button && <IconButton {...button} variant="tertiary" />}
55
55
  </div>
56
56
  )
57
57
  }
@@ -54,6 +54,28 @@
54
54
  }
55
55
  }
56
56
 
57
+ &.tertiary {
58
+ > .icon {
59
+ > svg {
60
+ fill: color_alias.$neutral-color-400;
61
+ path {
62
+ fill: color_alias.$neutral-color-400;
63
+ }
64
+ }
65
+ }
66
+
67
+ &:hover {
68
+ > .icon {
69
+ > svg {
70
+ fill: color_alias.$neutral-color-400;
71
+ path {
72
+ fill: color_alias.$neutral-color-400;
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+
57
79
  &.primary,
58
80
  &.secondary {
59
81
  &:disabled {
@@ -5,7 +5,7 @@ import { Icon } from '../Icon'
5
5
  import type { BaseButtonProps } from './BaseButton'
6
6
  import { BaseButton } from './BaseButton'
7
7
 
8
- export type Variant = 'primary' | 'secondary'
8
+ export type Variant = 'primary' | 'secondary' | 'tertiary'
9
9
 
10
10
  interface CustomProps {
11
11
  icon: IconType
@@ -4,6 +4,11 @@ import { Meta } from "@storybook/blocks";
4
4
 
5
5
  # Changelog
6
6
 
7
+ ## 0.28.3
8
+
9
+ * Add tertiary variant to IconButton component
10
+ * Update exit button variant on Alert component
11
+
7
12
  ## 0.28.1
8
13
 
9
14
  * Align items to top in CardTable component
@@ -70,3 +70,13 @@ export const Secondary: Story = {
70
70
  },
71
71
  parameters: figmaPrimaryDesign,
72
72
  }
73
+
74
+ export const Tertiary: Story = {
75
+ args: {
76
+ icon: 'Delete',
77
+ variant: 'tertiary',
78
+ accessibilityLabel: 'Delete game',
79
+ disabled: false,
80
+ },
81
+ parameters: figmaPrimaryDesign,
82
+ }