@purpurds/button 5.20.1 → 5.21.1
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 +2 -2
- package/package.json +12 -11
- package/src/button.stories.tsx +4 -4
package/dist/LICENSE.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/button",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.21.1",
|
|
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
|
-
"@
|
|
19
|
-
"@purpurds/
|
|
20
|
-
"@purpurds/
|
|
21
|
-
"@purpurds/icon": "5.
|
|
18
|
+
"@storybook/preview-api": "^8.3.5",
|
|
19
|
+
"@purpurds/action": "5.21.1",
|
|
20
|
+
"@purpurds/tokens": "5.21.1",
|
|
21
|
+
"@purpurds/icon": "5.21.1",
|
|
22
|
+
"@purpurds/spinner": "5.21.1"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@rushstack/eslint-patch": "~1.10.0",
|
|
25
|
-
"@storybook/react": "^8.
|
|
26
|
-
"storybook": "^8.
|
|
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.
|
|
43
|
-
"vite": "5.
|
|
44
|
-
"vitest": "
|
|
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.
|
|
47
|
+
"@purpurds/icon": "5.21.1"
|
|
47
48
|
},
|
|
48
49
|
"scripts": {
|
|
49
50
|
"build:dev": "vite",
|
package/src/button.stories.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { sizes } from "@purpurds/action";
|
|
3
|
-
import {
|
|
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
|
-
<
|
|
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} <
|
|
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
|
-
<
|
|
114
|
+
<IconPlus size="xs" />
|
|
115
115
|
</Button>
|
|
116
116
|
</div>
|
|
117
117
|
),
|