@purpurds/button 5.20.0 → 5.21.0

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/LICENSE.txt CHANGED
@@ -1,12 +1,12 @@
1
1
  Name: @purpurds/action
2
- Version: 5.19.1
2
+ Version: 5.20.1
3
3
  License: AGPL-3.0-only
4
4
  Private: false
5
5
 
6
6
  ---
7
7
 
8
8
  Name: @purpurds/spinner
9
- Version: 5.19.1
9
+ Version: 5.20.1
10
10
  License: AGPL-3.0-only
11
11
  Private: false
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpurds/button",
3
- "version": "5.20.0",
3
+ "version": "5.21.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "./dist/button.cjs.js",
6
6
  "types": "./dist/button.d.ts",
@@ -15,15 +15,16 @@
15
15
  "source": "src/button.tsx",
16
16
  "dependencies": {
17
17
  "classnames": "~2.5.0",
18
- "@purpurds/action": "5.20.0",
19
- "@purpurds/icon": "5.20.0",
20
- "@purpurds/tokens": "5.20.0",
21
- "@purpurds/spinner": "5.20.0"
18
+ "@storybook/preview-api": "^8.3.5",
19
+ "@purpurds/action": "5.21.0",
20
+ "@purpurds/icon": "5.21.0",
21
+ "@purpurds/spinner": "5.21.0",
22
+ "@purpurds/tokens": "5.21.0"
22
23
  },
23
24
  "devDependencies": {
24
25
  "@rushstack/eslint-patch": "~1.10.0",
25
- "@storybook/react": "^8.2.6",
26
- "storybook": "^8.2.6",
26
+ "@storybook/react": "^8.3.5",
27
+ "storybook": "^8.3.5",
27
28
  "@telia/base-rig": "~8.2.0",
28
29
  "@telia/react-rig": "~3.2.0",
29
30
  "@testing-library/dom": "~9.3.3",
@@ -39,11 +40,11 @@
39
40
  "prettier": "~2.8.8",
40
41
  "react-dom": "^18.3.1",
41
42
  "react": "^18.3.1",
42
- "typescript": "^5.5.4",
43
- "vite": "5.3.4",
44
- "vitest": "~1.5.0",
43
+ "typescript": "^5.6.3",
44
+ "vite": "5.4.8",
45
+ "vitest": "^2.1.2",
45
46
  "@purpurds/component-rig": "1.0.0",
46
- "@purpurds/icon": "5.20.0"
47
+ "@purpurds/icon": "5.21.0"
47
48
  },
48
49
  "scripts": {
49
50
  "build:dev": "vite",
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { sizes } from "@purpurds/action";
3
- import { Icon, plus } from "@purpurds/icon";
3
+ import { IconPlus } from "@purpurds/icon";
4
4
  import type { Meta, StoryObj } from "@storybook/react";
5
5
 
6
6
  import "@purpurds/icon/styles";
@@ -77,7 +77,7 @@ export const ButtonWithLeftIcon: Story = {
77
77
  render: ({ children, ...args }) => (
78
78
  <div style={adaptiveBackground(args.negative)}>
79
79
  <Button {...args}>
80
- <Icon svg={plus} size="xs" /> {children}
80
+ <IconPlus size="xs" /> {children}
81
81
  </Button>
82
82
  </div>
83
83
  ),
@@ -92,7 +92,7 @@ export const ButtonWithRightIcon: Story = {
92
92
  render: ({ children, ...args }) => (
93
93
  <div style={adaptiveBackground(args.negative)}>
94
94
  <Button {...args}>
95
- {children} <Icon svg={plus} size="xs" />
95
+ {children} <IconPlus size="xs" />
96
96
  </Button>
97
97
  </div>
98
98
  ),
@@ -111,7 +111,7 @@ export const ButtonWithOnlyIcon: Story = {
111
111
  render: ({ ...args }) => (
112
112
  <div style={adaptiveBackground(args.negative)}>
113
113
  <Button {...args}>
114
- <Icon svg={plus} size="xs" />
114
+ <IconPlus size="xs" />
115
115
  </Button>
116
116
  </div>
117
117
  ),