@synerise/ds-button 1.5.1 → 1.5.2
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 +8 -85
- 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,97 @@
|
|
|
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.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.5.1...@synerise/ds-button@1.5.2) (2025-12-15)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @synerise/ds-button
|
|
9
9
|
|
|
10
|
+
## [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)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
13
13
|
|
|
14
14
|
# [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
15
|
|
|
16
|
-
|
|
17
16
|
### Features
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
- **dropdown:** dropdownMenu component ([f0ec827](https://github.com/synerise/synerise-design/commit/f0ec82792cdcb021fa9a454912f6e7a892e53895))
|
|
24
19
|
|
|
25
20
|
## [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
21
|
|
|
27
|
-
|
|
28
22
|
### Bug Fixes
|
|
29
23
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
- **button:** fixes to readOnly button fo every type ([c9998c0](https://github.com/synerise/synerise-design/commit/c9998c0ad2d56d625763e34a3c5fcb2d4f46857e))
|
|
35
25
|
|
|
36
26
|
## [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
27
|
|
|
38
28
|
**Note:** Version bump only for package @synerise/ds-button
|
|
39
29
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
30
|
## [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
31
|
|
|
46
32
|
**Note:** Version bump only for package @synerise/ds-button
|
|
47
33
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
34
|
## [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
35
|
|
|
54
36
|
**Note:** Version bump only for package @synerise/ds-button
|
|
55
37
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
38
|
## [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
39
|
|
|
62
40
|
**Note:** Version bump only for package @synerise/ds-button
|
|
63
41
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
42
|
## [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
43
|
|
|
70
44
|
**Note:** Version bump only for package @synerise/ds-button
|
|
71
45
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
46
|
## [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
47
|
|
|
78
48
|
**Note:** Version bump only for package @synerise/ds-button
|
|
79
49
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
50
|
## [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
51
|
|
|
86
52
|
**Note:** Version bump only for package @synerise/ds-button
|
|
87
53
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
54
|
## [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
55
|
|
|
94
|
-
|
|
95
56
|
### Bug Fixes
|
|
96
57
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
58
|
+
- **button:** add new prop centerLabel ([fb9dcd1](https://github.com/synerise/synerise-design/commit/fb9dcd1bfc6b853e46f8bd1989efaee48f6bc1b3))
|
|
102
59
|
|
|
103
60
|
## [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
61
|
|
|
105
62
|
**Note:** Version bump only for package @synerise/ds-button
|
|
106
63
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
64
|
## [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
65
|
|
|
113
66
|
**Note:** Version bump only for package @synerise/ds-button
|
|
114
67
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
68
|
## [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
69
|
|
|
121
70
|
**Note:** Version bump only for package @synerise/ds-button
|
|
122
71
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
72
|
## [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
73
|
|
|
129
74
|
**Note:** Version bump only for package @synerise/ds-button
|
|
130
75
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
76
|
## [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
77
|
|
|
137
78
|
**Note:** Version bump only for package @synerise/ds-button
|
|
138
79
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
80
|
## [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
81
|
|
|
145
82
|
**Note:** Version bump only for package @synerise/ds-button
|
|
146
83
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
84
|
## [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
85
|
|
|
153
86
|
**Note:** Version bump only for package @synerise/ds-button
|
|
154
87
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
88
|
# [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
89
|
|
|
161
|
-
|
|
162
90
|
### Bug Fixes
|
|
163
91
|
|
|
164
|
-
|
|
165
|
-
|
|
92
|
+
- **button:** fix transition of animation between modes ([7c96663](https://github.com/synerise/synerise-design/commit/7c966638ebb16b0acaf41b0d70df22224c97b89d))
|
|
166
93
|
|
|
167
94
|
### Features
|
|
168
95
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
96
|
+
- **factors:** array factor type ([195d328](https://github.com/synerise/synerise-design/commit/195d3286e98b5f07fc9c1e56001e6ae844b7a080))
|
|
174
97
|
|
|
175
98
|
## [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
99
|
|
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.2",
|
|
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.1",
|
|
39
|
+
"@synerise/ds-tag": "^1.4.2",
|
|
40
|
+
"@synerise/ds-tooltip": "^1.3.2",
|
|
41
|
+
"@synerise/ds-utils": "^1.5.1",
|
|
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": "b1279d5354132a2bf0b6f0cfa343db4c6c928f72"
|
|
52
52
|
}
|