@synerise/ds-button 1.4.4 → 1.4.6
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,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
|
+
## [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)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [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)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-button
|
package/dist/Button.styles.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export declare const RippleEffect: import("styled-components").StyledComponent<"
|
|
|
5
5
|
export declare const ButtonFocus: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const Tag: import("styled-components").StyledComponent<({ id, name, className, disabled, removable, image, shape, color, textColor, onRemove, onClick, prefixel, suffixel, texts, asPill, dashed, ...htmlAttributes }: import("@synerise/ds-tag").TagProps) => React.JSX.Element, any, {}, never>;
|
|
7
7
|
export declare const ButtonLabel: import("styled-components").StyledComponent<"div", any, {
|
|
8
|
-
withTooltip?: boolean
|
|
8
|
+
withTooltip?: boolean;
|
|
9
9
|
}, never>;
|
|
10
10
|
export declare const AntdButton: import("styled-components").StyledComponent<({ mode, type, loading, justifyContent, groupVariant, customColor, rightIconSize, leftIconSize, pressed, size, iconColor, error, ...rest }: any) => React.JSX.Element, any, {}, never>;
|
package/dist/Button.styles.js
CHANGED
|
@@ -10,15 +10,8 @@ export var RIPPLE_ANIMATION_TIME = 500;
|
|
|
10
10
|
var leftIcon = '0 4px 0 8px';
|
|
11
11
|
var rightIcon = '0 8px 0 4px';
|
|
12
12
|
var rippleInitialSize = 20;
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
tertiary: 'tertiary',
|
|
16
|
-
ghost: 'ghost'
|
|
17
|
-
};
|
|
18
|
-
var splitType = {
|
|
19
|
-
secondary: 'secondary',
|
|
20
|
-
tertiary: 'tertiary'
|
|
21
|
-
};
|
|
13
|
+
var buttonTypes = ['secondary', 'tertiary', 'ghost'];
|
|
14
|
+
var splitTypes = ['secondary', 'tertiary'];
|
|
22
15
|
var pressedStyles = function pressedStyles(props) {
|
|
23
16
|
return css(["color:", ";background:", ";&.ant-btn .btn-focus{box-shadow:inset 0 0 0 1px ", ";}", " > .ds-icon:before{background-color:", ";}"], props.theme.palette['blue-600'], props.theme.palette['blue-100'], props.theme.palette['blue-300'], ButtonLabel, props.theme.palette['blue-200']);
|
|
24
17
|
};
|
|
@@ -94,9 +87,9 @@ export var AntdButton = styled(function (_ref) {
|
|
|
94
87
|
}, function (props) {
|
|
95
88
|
return props.loading && css(["> *:not(.btn-focus){opacity:0;visibility:hidden;}", "{opacity:1;visibility:visible;}"], Spinner);
|
|
96
89
|
}, function (props) {
|
|
97
|
-
return
|
|
90
|
+
return buttonTypes.includes(props.type) && !props.error && css(["&.ant-btn{&:not(:disabled){svg{fill:", ";}&:hover{svg{fill:currentColor;}}}}"], props.iconColor ? props.theme.palette[props.iconColor + "-600"] : 'currentColor');
|
|
98
91
|
}, function (props) {
|
|
99
|
-
return props.mode === 'split' && css(["&.ant-btn{padding-right:0;transition:0s;", "{position:relative;}", " > .ds-icon{margin:0 4px 0 15px;position:relative;&:before{content:'';background-color:", ";top:", ";height:", ";width:1px;left:-4px;position:absolute;transition:all 0.3s ease;}}}"], ButtonLabel, ButtonLabel,
|
|
92
|
+
return props.mode === 'split' && css(["&.ant-btn{padding-right:0;transition:0s;", "{position:relative;}", " > .ds-icon{margin:0 4px 0 15px;position:relative;&:before{content:'';background-color:", ";top:", ";height:", ";width:1px;left:-4px;position:absolute;transition:all 0.3s ease;}}}"], ButtonLabel, ButtonLabel, !splitTypes.includes(props.type) ? "rgba(255, 255, 255, 0.15);" : props.theme.palette['grey-300'], props.size === 'large' ? '-12px' : '-4px', props.size === 'large' ? '48px' : '32px');
|
|
100
93
|
}, function (props) {
|
|
101
94
|
return props.mode === 'two-icons' && css(["&.ant-btn{padding:0;transition:0s;", " > ", ":first-of-type,", " > .ds-icon:first-of-type,& > ", ":first-of-type,& > .ds-icon:first-of-type{margin:", ";}", " > ", ":nth-of-type(2),", " > .ds-icon:nth-of-type(2),& > ", ":nth-of-type(2),& > .ds-icon:nth-of-type(2){margin:", ";}}", "{margin:0 12px 0 0;}"], ButtonLabel, IconContainer, ButtonLabel, IconContainer, leftIcon, ButtonLabel, IconContainer, ButtonLabel, IconContainer, rightIcon, Tag);
|
|
102
95
|
}, function (props) {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {
|
|
3
|
-
active?: boolean
|
|
4
|
-
error?: boolean
|
|
2
|
+
active?: boolean;
|
|
3
|
+
error?: boolean;
|
|
5
4
|
}, never>;
|
|
6
|
-
export declare const DefaultIcon: import("styled-components").StyledComponent<(props:
|
|
7
|
-
export declare const HoverIcon: import("styled-components").StyledComponent<(props:
|
|
5
|
+
export declare const DefaultIcon: import("styled-components").StyledComponent<(props: React.SVGProps<SVGSVGElement>) => JSX.Element, any, {}, never>;
|
|
6
|
+
export declare const HoverIcon: import("styled-components").StyledComponent<(props: React.SVGProps<SVGSVGElement>) => JSX.Element, any, {}, never>;
|
|
8
7
|
declare const _default: {
|
|
9
8
|
IconWrapper: import("styled-components").StyledComponent<"span", any, {
|
|
10
|
-
active?: boolean
|
|
11
|
-
error?: boolean
|
|
9
|
+
active?: boolean;
|
|
10
|
+
error?: boolean;
|
|
12
11
|
}, never>;
|
|
13
12
|
};
|
|
14
13
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {
|
|
2
|
-
active?: boolean
|
|
3
|
-
error?: boolean
|
|
2
|
+
active?: boolean;
|
|
3
|
+
error?: boolean;
|
|
4
4
|
}, never>;
|
|
5
5
|
declare const _default: {
|
|
6
6
|
IconWrapper: import("styled-components").StyledComponent<"span", any, {
|
|
7
|
-
active?: boolean
|
|
8
|
-
error?: boolean
|
|
7
|
+
active?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
9
|
}, never>;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
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<Props> {
|
|
9
|
-
static readonly Checkbox: (props: import("./Checkbox/Checkbox.types").CheckboxButtonProps) => React.ReactElement
|
|
9
|
+
static readonly Checkbox: (props: import("./Checkbox/Checkbox.types").CheckboxButtonProps) => React.ReactElement;
|
|
10
10
|
static readonly Creator: ({ onClick, disabled, label, block, status, className, ...htmlAttributes }: import("./Creator/Creator.types").CreatorProps) => React.JSX.Element;
|
|
11
11
|
static readonly Expander: ({ size, expanded, disabled, onClick, className, }: import("./Expander/Expander.types").ExpanderProps) => React.JSX.Element;
|
|
12
|
-
static readonly Star: (props: import("./Star/Star.types").StarButtonProps) => React.ReactElement
|
|
12
|
+
static readonly Star: (props: import("./Star/Star.types").StarButtonProps) => React.ReactElement;
|
|
13
13
|
render(): React.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": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "Button UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-icon": "^1.6.
|
|
38
|
-
"@synerise/ds-tag": "^1.1.
|
|
39
|
-
"@synerise/ds-tooltip": "^1.1.
|
|
40
|
-
"@synerise/ds-utils": "^1.
|
|
37
|
+
"@synerise/ds-icon": "^1.6.2",
|
|
38
|
+
"@synerise/ds-tag": "^1.1.15",
|
|
39
|
+
"@synerise/ds-tooltip": "^1.1.15",
|
|
40
|
+
"@synerise/ds-utils": "^1.4.0",
|
|
41
41
|
"classnames": "^2.5.1",
|
|
42
42
|
"csstype": "^2.6.9"
|
|
43
43
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"react": ">=16.9.0 <= 18.3.1",
|
|
48
48
|
"styled-components": "^5.3.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "b35b1875727156fe9f5b3bad55aed5ca447c8c8d"
|
|
51
51
|
}
|