@synerise/ds-button 0.18.1 → 0.18.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 +16 -0
- package/dist/Button.styles.d.ts +0 -1
- package/dist/Button.types.d.ts +2 -2
- package/dist/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/Creator/Creator.styles.d.ts +0 -1
- package/dist/Expander/Expander.styles.d.ts +1 -2
- package/dist/Star/Star.types.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.18.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.18.2...@synerise/ds-button@0.18.3) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.18.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.18.1...@synerise/ds-button@0.18.2) (2023-09-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.18.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.18.0...@synerise/ds-button@0.18.1) (2023-09-05)
|
|
7
23
|
|
|
8
24
|
|
package/dist/Button.styles.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const RIPPLE_ANIMATION_TIME = 500;
|
|
3
2
|
export declare const Spinner: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
3
|
export declare const RippleEffect: import("styled-components").StyledComponent<"span", any, {}, never>;
|
package/dist/Button.types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from 'antd/lib/button';
|
|
2
2
|
import { JustifyContentProperty } from 'csstype';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
export
|
|
4
|
+
export type Props = Omit<ButtonProps, 'type'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Defines the type of the button. It affects the button color
|
|
7
7
|
*
|
|
@@ -44,7 +44,7 @@ export declare type Props = Omit<ButtonProps, 'type'> & {
|
|
|
44
44
|
activated?: boolean;
|
|
45
45
|
readOnly?: boolean;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type ButtonSubComponents = {
|
|
48
48
|
Expander: React.ElementType;
|
|
49
49
|
Creator: React.ElementType;
|
|
50
50
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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
3
|
export interface CheckboxButtonProps extends ButtonPropsOmitted {
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
defaultChecked?: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const CreatorLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
2
|
export declare const Creator: import("styled-components").StyledComponent<({ pressed, withLabel, ...rest }: any) => JSX.Element, any, {
|
|
4
3
|
withLabel: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
3
|
export interface StarButtonProps extends ButtonPropsOmitted {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
hasError?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import * as CreatorStyles from './Creator/Creator.styles';
|
|
|
6
6
|
import * as ExpanderStyles from './Expander/Expander.styles';
|
|
7
7
|
import * as StarStyles from './Star/Star.styles';
|
|
8
8
|
declare class Button extends React.Component<ButtonProps> {
|
|
9
|
-
static readonly Checkbox: (props: import("./Checkbox/Checkbox.types").CheckboxButtonProps) => React.ReactElement<any, string |
|
|
9
|
+
static readonly Checkbox: (props: import("./Checkbox/Checkbox.types").CheckboxButtonProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
10
|
static readonly Creator: React.FC<import("./Creator/Creator.types").CreatorProps>;
|
|
11
11
|
static readonly Expander: React.FC<import("./Expander/Expander.types").ExpanderProps>;
|
|
12
|
-
static readonly Star: (props: import("./Star/Star.types").StarButtonProps) => React.ReactElement<any, string |
|
|
12
|
+
static readonly Star: (props: import("./Star/Star.types").StarButtonProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
13
|
render(): JSX.Element;
|
|
14
14
|
}
|
|
15
15
|
export default Button;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-button",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "Button UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-icon": "^0.58.
|
|
35
|
+
"@synerise/ds-icon": "^0.58.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@synerise/ds-core": "*",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"styled-components": "5.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@synerise/ds-utils": "^0.24.
|
|
44
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
45
45
|
"@testing-library/react": "10.0.1",
|
|
46
46
|
"csstype": "2.6.9"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
|
|
49
49
|
}
|