@synerise/ds-button 0.21.21 → 0.22.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/CHANGELOG.md +11 -0
- package/dist/Button.types.d.ts +6 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [0.22.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.21...@synerise/ds-button@0.22.0) (2024-12-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **banner:** new component ([881a411](https://github.com/synerise/synerise-design/commit/881a41113241463b940eb9b2a6bde9ab10c143a4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.21.21](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.20...@synerise/ds-button@0.21.21) (2024-11-29)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-button
|
package/dist/Button.types.d.ts
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { ElementType, MouseEvent } from 'react';
|
|
2
2
|
import { ButtonProps as AntdButtonProps } from 'antd/lib/button';
|
|
3
3
|
import { JustifyContentProperty } from 'csstype';
|
|
4
|
+
import { LiteralStringUnion } from '@synerise/ds-utils';
|
|
4
5
|
export type ButtonProps = Omit<AntdButtonProps, 'type'> & {
|
|
5
6
|
/**
|
|
6
7
|
* Defines the type of the button. It affects the button color
|
|
7
8
|
*
|
|
8
9
|
* @default secondary
|
|
9
10
|
*/
|
|
10
|
-
type?:
|
|
11
|
+
type?: LiteralStringUnion<'primary' | 'secondary' | 'tertiary' | 'tertiary-white' | 'ghost-primary' | 'ghost' | 'ghost-white' | 'custom-color' | 'custom-color-ghost'>;
|
|
11
12
|
/**
|
|
12
13
|
* Defines the type of the button content. It affects content inside the button
|
|
13
14
|
*
|
|
14
15
|
* @default simple
|
|
15
16
|
*/
|
|
16
|
-
mode?: 'single-icon' | 'split' | 'two-icons' | 'label-icon' | 'icon-label'
|
|
17
|
+
mode?: LiteralStringUnion<'single-icon' | 'split' | 'two-icons' | 'label-icon' | 'icon-label'>;
|
|
17
18
|
/**
|
|
18
19
|
* Defines color of `custom-color` button.
|
|
19
20
|
*
|
|
20
21
|
* @default red
|
|
21
22
|
*/
|
|
22
|
-
color?:
|
|
23
|
+
color?: LiteralStringUnion<'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet'>;
|
|
23
24
|
/**
|
|
24
25
|
* Defines shape of the button.
|
|
25
26
|
*/
|
|
26
|
-
groupVariant?:
|
|
27
|
+
groupVariant?: LiteralStringUnion<'left-rounded' | 'squared' | 'right-rounded'>;
|
|
27
28
|
/**
|
|
28
29
|
* Defines justify of content in button.
|
|
29
30
|
*/
|
|
@@ -39,7 +40,7 @@ export type ButtonProps = Omit<AntdButtonProps, 'type'> & {
|
|
|
39
40
|
* Sets the handler to handle `click` event
|
|
40
41
|
*/
|
|
41
42
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
42
|
-
iconColor?:
|
|
43
|
+
iconColor?: LiteralStringUnion<'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet'>;
|
|
43
44
|
error?: boolean;
|
|
44
45
|
activated?: boolean;
|
|
45
46
|
readOnly?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Button UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"react": ">=16.9.0 <= 17.0.2",
|
|
46
46
|
"styled-components": "5.0.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "03c0625fb7b5baaa35f6633a425fb803469b6a20"
|
|
49
49
|
}
|