@synerise/ds-button 1.5.1 → 1.5.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/CHANGELOG.md +10 -83
- package/README.md +8 -8
- package/dist/Button.types.d.ts +3 -1
- package/dist/index.d.ts +1 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,174 +3,101 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [1.5.
|
|
6
|
+
## [1.5.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.5.2...@synerise/ds-button@1.5.3) (2026-01-07)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @synerise/ds-button
|
|
9
9
|
|
|
10
|
+
## [1.5.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.5.1...@synerise/ds-button@1.5.2) (2025-12-15)
|
|
10
11
|
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
11
13
|
|
|
14
|
+
## [1.5.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.5.0...@synerise/ds-button@1.5.1) (2025-11-28)
|
|
12
15
|
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
13
17
|
|
|
14
18
|
# [1.5.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.16...@synerise/ds-button@1.5.0) (2025-11-06)
|
|
15
19
|
|
|
16
|
-
|
|
17
20
|
### Features
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
- **dropdown:** dropdownMenu component ([f0ec827](https://github.com/synerise/synerise-design/commit/f0ec82792cdcb021fa9a454912f6e7a892e53895))
|
|
24
23
|
|
|
25
24
|
## [1.4.16](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.15...@synerise/ds-button@1.4.16) (2025-10-22)
|
|
26
25
|
|
|
27
|
-
|
|
28
26
|
### Bug Fixes
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
- **button:** fixes to readOnly button fo every type ([c9998c0](https://github.com/synerise/synerise-design/commit/c9998c0ad2d56d625763e34a3c5fcb2d4f46857e))
|
|
35
29
|
|
|
36
30
|
## [1.4.15](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.14...@synerise/ds-button@1.4.15) (2025-10-16)
|
|
37
31
|
|
|
38
32
|
**Note:** Version bump only for package @synerise/ds-button
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
34
|
## [1.4.14](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.13...@synerise/ds-button@1.4.14) (2025-10-10)
|
|
45
35
|
|
|
46
36
|
**Note:** Version bump only for package @synerise/ds-button
|
|
47
37
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
38
|
## [1.4.13](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.12...@synerise/ds-button@1.4.13) (2025-10-08)
|
|
53
39
|
|
|
54
40
|
**Note:** Version bump only for package @synerise/ds-button
|
|
55
41
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
42
|
## [1.4.12](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.11...@synerise/ds-button@1.4.12) (2025-09-25)
|
|
61
43
|
|
|
62
44
|
**Note:** Version bump only for package @synerise/ds-button
|
|
63
45
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
46
|
## [1.4.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.10...@synerise/ds-button@1.4.11) (2025-09-19)
|
|
69
47
|
|
|
70
48
|
**Note:** Version bump only for package @synerise/ds-button
|
|
71
49
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
50
|
## [1.4.10](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.9...@synerise/ds-button@1.4.10) (2025-09-16)
|
|
77
51
|
|
|
78
52
|
**Note:** Version bump only for package @synerise/ds-button
|
|
79
53
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
54
|
## [1.4.9](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.8...@synerise/ds-button@1.4.9) (2025-08-28)
|
|
85
55
|
|
|
86
56
|
**Note:** Version bump only for package @synerise/ds-button
|
|
87
57
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
58
|
## [1.4.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.7...@synerise/ds-button@1.4.8) (2025-08-20)
|
|
93
59
|
|
|
94
|
-
|
|
95
60
|
### Bug Fixes
|
|
96
61
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
62
|
+
- **button:** add new prop centerLabel ([fb9dcd1](https://github.com/synerise/synerise-design/commit/fb9dcd1bfc6b853e46f8bd1989efaee48f6bc1b3))
|
|
102
63
|
|
|
103
64
|
## [1.4.7](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.6...@synerise/ds-button@1.4.7) (2025-08-14)
|
|
104
65
|
|
|
105
66
|
**Note:** Version bump only for package @synerise/ds-button
|
|
106
67
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
68
|
## [1.4.6](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.5...@synerise/ds-button@1.4.6) (2025-07-24)
|
|
112
69
|
|
|
113
70
|
**Note:** Version bump only for package @synerise/ds-button
|
|
114
71
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
72
|
## [1.4.5](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.4...@synerise/ds-button@1.4.5) (2025-07-17)
|
|
120
73
|
|
|
121
74
|
**Note:** Version bump only for package @synerise/ds-button
|
|
122
75
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
76
|
## [1.4.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.3...@synerise/ds-button@1.4.4) (2025-07-15)
|
|
128
77
|
|
|
129
78
|
**Note:** Version bump only for package @synerise/ds-button
|
|
130
79
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
80
|
## [1.4.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.2...@synerise/ds-button@1.4.3) (2025-07-08)
|
|
136
81
|
|
|
137
82
|
**Note:** Version bump only for package @synerise/ds-button
|
|
138
83
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
84
|
## [1.4.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.1...@synerise/ds-button@1.4.2) (2025-07-01)
|
|
144
85
|
|
|
145
86
|
**Note:** Version bump only for package @synerise/ds-button
|
|
146
87
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
88
|
## [1.4.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.4.0...@synerise/ds-button@1.4.1) (2025-06-26)
|
|
152
89
|
|
|
153
90
|
**Note:** Version bump only for package @synerise/ds-button
|
|
154
91
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
92
|
# [1.4.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.3.3...@synerise/ds-button@1.4.0) (2025-06-24)
|
|
160
93
|
|
|
161
|
-
|
|
162
94
|
### Bug Fixes
|
|
163
95
|
|
|
164
|
-
|
|
165
|
-
|
|
96
|
+
- **button:** fix transition of animation between modes ([7c96663](https://github.com/synerise/synerise-design/commit/7c966638ebb16b0acaf41b0d70df22224c97b89d))
|
|
166
97
|
|
|
167
98
|
### Features
|
|
168
99
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
100
|
+
- **factors:** array factor type ([195d328](https://github.com/synerise/synerise-design/commit/195d3286e98b5f07fc9c1e56001e6ae844b7a080))
|
|
174
101
|
|
|
175
102
|
## [1.3.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.3.2...@synerise/ds-button@1.3.3) (2025-06-05)
|
|
176
103
|
|
package/README.md
CHANGED
|
@@ -88,14 +88,14 @@ Special type of Button, with two states: default and activated (selected). Inher
|
|
|
88
88
|
|
|
89
89
|
## Button.Creator
|
|
90
90
|
|
|
91
|
-
| Property
|
|
92
|
-
|
|
|
93
|
-
| block
|
|
94
|
-
| disabled
|
|
95
|
-
| label
|
|
96
|
-
| onClick
|
|
97
|
-
| status
|
|
98
|
-
| labelAlign
|
|
91
|
+
| Property | Description | Type | Default |
|
|
92
|
+
| ---------- | ------------------------------------------------------ | --------------------------------- | --------- |
|
|
93
|
+
| block | Defines if the button should take all available space. | boolean | `false` |
|
|
94
|
+
| disabled | Defines if the button is disabled. | boolean | `false` |
|
|
95
|
+
| label | Label of the button. | string / React.ReactNode | - |
|
|
96
|
+
| onClick | Callback executed after clicking the button | (event: React.MouseEvent) => void | - |
|
|
97
|
+
| status | Defines the color of the button. | `upload` / `error`/ `default` | `default` |
|
|
98
|
+
| labelAlign | Defines label in center or left | `center` / `left` | `center` |
|
|
99
99
|
|
|
100
100
|
## Button.Expander
|
|
101
101
|
|
package/dist/Button.types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ButtonProps as AntdButtonProps } from 'antd/lib/button';
|
|
2
2
|
import type { JustifyContentProperty } from 'csstype';
|
|
3
|
-
import type { MouseEvent } from 'react';
|
|
3
|
+
import type { ForwardRefExoticComponent, MouseEvent, RefAttributes } from 'react';
|
|
4
|
+
import { type StyledComponent } from 'styled-components';
|
|
4
5
|
import type { TagProps } from '@synerise/ds-tag';
|
|
5
6
|
import type { TooltipProps } from '@synerise/ds-tooltip';
|
|
6
7
|
import type { LiteralStringUnion } from '@synerise/ds-utils';
|
|
@@ -59,4 +60,5 @@ export type ButtonProps = Omit<AntdButtonProps, 'type' | 'ghost'> & {
|
|
|
59
60
|
};
|
|
60
61
|
/** @deprecated - use ButtonProps instead */
|
|
61
62
|
export type Props = ButtonProps;
|
|
63
|
+
export type StyledButton<CustomProps extends object = object> = StyledComponent<ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>, object, CustomProps, never>;
|
|
62
64
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as MainButtonStyles from './Button.styles';
|
|
2
|
-
import { type Props } from './Button.types';
|
|
3
2
|
import CheckboxButton from './Checkbox/Checkbox';
|
|
4
3
|
import * as CheckboxStyles from './Checkbox/Checkbox.styles';
|
|
5
4
|
import Creator from './Creator/Creator';
|
|
@@ -15,7 +14,7 @@ export { type CreatorProps, CreatorStatus } from './Creator/Creator.types';
|
|
|
15
14
|
export type { StarButtonProps } from './Star/Star.types';
|
|
16
15
|
export type { CheckboxButtonProps } from './Checkbox/Checkbox.types';
|
|
17
16
|
export { ExpanderSize, type ExpanderProps } from './Expander/Expander.types';
|
|
18
|
-
export type ButtonProps
|
|
17
|
+
export type { ButtonProps, StyledButton } from './Button.types';
|
|
19
18
|
export declare const ButtonStyles: {
|
|
20
19
|
Button: typeof MainButtonStyles;
|
|
21
20
|
Creator: typeof CreatorStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-button",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Button UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
22
|
"build:watch": "npm run build:js -- --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
|
-
"pack:ci": "
|
|
24
|
+
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "npm run build",
|
|
26
26
|
"test": "jest",
|
|
27
27
|
"test:watch": "npm run test -- --watchAll",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-icon": "^1.9.
|
|
39
|
-
"@synerise/ds-tag": "^1.4.
|
|
40
|
-
"@synerise/ds-tooltip": "^1.3.
|
|
41
|
-
"@synerise/ds-utils": "^1.5.
|
|
38
|
+
"@synerise/ds-icon": "^1.9.2",
|
|
39
|
+
"@synerise/ds-tag": "^1.4.3",
|
|
40
|
+
"@synerise/ds-tooltip": "^1.3.3",
|
|
41
|
+
"@synerise/ds-utils": "^1.5.2",
|
|
42
42
|
"classnames": "^2.5.1",
|
|
43
43
|
"csstype": "^2.6.9"
|
|
44
44
|
},
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react": ">=16.9.0 <= 18.3.1",
|
|
49
49
|
"styled-components": "^5.3.3"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "f38e4b2dca1d43c39af0b189c93808de62c11e9b"
|
|
52
52
|
}
|