agroptima-design-system 0.28.1 → 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.
@@ -15,7 +15,6 @@ jobs:
15
15
  with:
16
16
  node-version: '20.x'
17
17
  registry-url: 'https://registry.npmjs.org'
18
- - run: npm config set legacy-peer-deps true
19
18
  - run: npm ci --force
20
19
  - run: npm publish
21
20
  env:
@@ -17,7 +17,6 @@ const config: StorybookConfig = {
17
17
  getAbsolutePath('@storybook/addon-interactions'),
18
18
  '@storybook/addon-a11y',
19
19
  '@storybook/addon-designs',
20
- '@chromatic-com/storybook',
21
20
  ],
22
21
 
23
22
  framework: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "0.28.1",
3
+ "version": "0.28.3",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -22,19 +22,18 @@
22
22
  "sass": "^1.83.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@chromatic-com/storybook": "^3.2.4",
26
25
  "@eslint/eslintrc": "^3.2.0",
27
26
  "@eslint/js": "^9.16.0",
28
- "@storybook/addon-a11y": "^8.5.1",
29
- "@storybook/addon-designs": "^8.0.4",
30
- "@storybook/addon-essentials": "^8.5.1",
31
- "@storybook/addon-interactions": "^8.5.1",
32
- "@storybook/addon-links": "^8.5.1",
33
- "@storybook/addon-viewport": "^8.5.1",
34
- "@storybook/blocks": "^8.5.1",
35
- "@storybook/nextjs": "^8.5.1",
36
- "@storybook/react": "^8.5.1",
37
- "@storybook/test": "^8.5.1",
27
+ "@storybook/addon-a11y": "^8.5.2",
28
+ "@storybook/addon-designs": "^8.1.0",
29
+ "@storybook/addon-essentials": "^8.5.2",
30
+ "@storybook/addon-interactions": "^8.5.2",
31
+ "@storybook/addon-links": "^8.5.2",
32
+ "@storybook/addon-viewport": "^8.5.2",
33
+ "@storybook/blocks": "^8.5.2",
34
+ "@storybook/nextjs": "^8.5.2",
35
+ "@storybook/react": "^8.5.2",
36
+ "@storybook/test": "^8.5.2",
38
37
  "@svgr/webpack": "^8.1.0",
39
38
  "@testing-library/jest-dom": "^6.6.3",
40
39
  "@testing-library/react": "^16.1.0",
@@ -55,7 +54,7 @@
55
54
  "jest-axe": "^9.0.0",
56
55
  "jest-environment-jsdom": "^29.7.0",
57
56
  "prettier": "^3.4.2",
58
- "storybook": "^8.5.1",
57
+ "storybook": "^8.5.2",
59
58
  "ts-node": "^10.9.2",
60
59
  "typescript": "^5.7.2"
61
60
  },
@@ -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
+ }