@synerise/ds-button 0.19.9 → 0.20.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
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.20.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.19.9...@synerise/ds-button@0.20.0) (2024-05-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **storybook7:** SB7.5 install and config ([abfced9](https://github.com/synerise/synerise-design/commit/abfced90c2661903338bff0f7022149fbf7583b9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.19.9](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.19.8...@synerise/ds-button@0.19.9) (2024-05-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @synerise/ds-button
|
package/dist/Button.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { ButtonProps } from 'antd/lib/button';
|
|
2
3
|
import { JustifyContentProperty } from 'csstype';
|
|
3
|
-
import * as React from 'react';
|
|
4
4
|
export type Props = Omit<ButtonProps, 'type'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Defines the type of the button. It affects the button color
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Props as ButtonProps } from '../Button.types';
|
|
2
2
|
type ButtonPropsOmitted = Omit<ButtonProps, 'type' | 'block' | 'color' | 'groupVariant' | 'icon' | 'iconColor' | 'leftIconSize' | 'mode' | 'rightIconSize' | 'size' | 'onChange'>;
|
|
3
|
-
export
|
|
3
|
+
export type CheckboxButtonProps = ButtonPropsOmitted & {
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
defaultChecked?: boolean;
|
|
6
6
|
hasError?: boolean;
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
onChange?: (checked: boolean) => void;
|
|
9
9
|
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
10
|
+
};
|
|
11
|
+
export type ButtonCheckboxIconProps = {
|
|
12
12
|
checked?: boolean;
|
|
13
13
|
indeterminate?: boolean;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
export {};
|
|
@@ -3,10 +3,10 @@ export declare enum ExpanderSize {
|
|
|
3
3
|
'S' = 24,
|
|
4
4
|
'M' = 32
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type ExpanderProps = {
|
|
7
7
|
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
8
8
|
size?: 'S' | 'M';
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
expanded?: boolean;
|
|
11
11
|
className?: string;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Props as ButtonProps } from '../Button.types';
|
|
2
2
|
type ButtonPropsOmitted = Omit<ButtonProps, 'type' | 'block' | 'color' | 'groupVariant' | 'icon' | 'iconColor' | 'leftIconSize' | 'mode' | 'rightIconSize' | 'size' | 'onChange'>;
|
|
3
|
-
export
|
|
3
|
+
export type StarButtonProps = ButtonPropsOmitted & {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
hasError?: boolean;
|
|
6
6
|
className?: string;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -13,9 +13,13 @@ declare class Button extends React.Component<ButtonProps> {
|
|
|
13
13
|
render(): JSX.Element;
|
|
14
14
|
}
|
|
15
15
|
export default Button;
|
|
16
|
+
export type { CreatorProps } from './Creator/Creator.types';
|
|
17
|
+
export type { StarButtonProps } from './Star/Star.types';
|
|
18
|
+
export type { CheckboxButtonProps } from './Checkbox/Checkbox.types';
|
|
19
|
+
export type { ExpanderProps } from './Expander/Expander.types';
|
|
16
20
|
export type { Props as ButtonProps } from './Button.types';
|
|
17
|
-
export { CreatorStatus } from './Creator/Creator.types';
|
|
18
21
|
export { ExpanderSize } from './Expander/Expander.types';
|
|
22
|
+
export { CreatorStatus } from './Creator/Creator.types';
|
|
19
23
|
export declare const ButtonStyles: {
|
|
20
24
|
Button: typeof MainButtonStyles;
|
|
21
25
|
Creator: typeof CreatorStyles;
|
package/dist/index.js
CHANGED
|
@@ -39,8 +39,8 @@ _defineProperty(Button, "Expander", Expander);
|
|
|
39
39
|
_defineProperty(Button, "Star", StarButton);
|
|
40
40
|
|
|
41
41
|
export default Button;
|
|
42
|
-
export { CreatorStatus } from './Creator/Creator.types';
|
|
43
42
|
export { ExpanderSize } from './Expander/Expander.types';
|
|
43
|
+
export { CreatorStatus } from './Creator/Creator.types';
|
|
44
44
|
export var ButtonStyles = {
|
|
45
45
|
Button: MainButtonStyles,
|
|
46
46
|
Creator: CreatorStyles,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Button UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-icon": "^0.
|
|
36
|
+
"@synerise/ds-icon": "^0.61.0",
|
|
37
37
|
"classnames": "2.3.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"styled-components": "5.0.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@synerise/ds-utils": "^0.26.
|
|
46
|
+
"@synerise/ds-utils": "^0.26.6",
|
|
47
47
|
"@testing-library/react": "10.0.1",
|
|
48
48
|
"csstype": "2.6.9"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "fc089bbf34c691a313b3fa648851d7831a23e3d0"
|
|
51
51
|
}
|