@synerise/ds-button 0.20.0 → 0.20.1

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.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.20.0...@synerise/ds-button@0.20.1) (2024-05-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **button:** add type to ButtonWithStar ([173e81b](https://github.com/synerise/synerise-design/commit/173e81b60667fd3334c9695aa9cfdf124f3a71c2))
12
+
13
+
14
+
15
+
16
+
6
17
  # [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
18
 
8
19
 
@@ -1,5 +1,6 @@
1
+ import * as React from 'react';
1
2
  export declare const RIPPLE_ANIMATION_TIME = 500;
2
3
  export declare const Spinner: import("styled-components").StyledComponent<"div", any, {}, never>;
3
4
  export declare const RippleEffect: import("styled-components").StyledComponent<"span", any, {}, never>;
4
5
  export declare const ButtonFocus: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const AntdButton: import("styled-components").StyledComponent<({ mode, type, loading, justifyContent, groupVariant, customColor, rightIconSize, leftIconSize, pressed, size, iconColor, error, activated, ...rest }: any) => JSX.Element, any, {}, never>;
6
+ export declare const AntdButton: import("styled-components").StyledComponent<({ mode, type, loading, justifyContent, groupVariant, customColor, rightIconSize, leftIconSize, pressed, size, iconColor, error, activated, ...rest }: any) => React.JSX.Element, any, {}, never>;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { CreatorProps } from './Creator.types';
2
- declare const Creator: ({ onClick, disabled, label, block, status, className }: CreatorProps) => JSX.Element;
3
+ declare const Creator: ({ onClick, disabled, label, block, status, className }: CreatorProps) => React.JSX.Element;
3
4
  export default Creator;
@@ -1,5 +1,6 @@
1
+ import * as React from 'react';
1
2
  export declare const CreatorLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
2
- export declare const Creator: import("styled-components").StyledComponent<({ status, pressed, withLabel, ...rest }: any) => JSX.Element, any, {
3
+ export declare const Creator: import("styled-components").StyledComponent<({ status, pressed, withLabel, ...rest }: any) => React.JSX.Element, any, {
3
4
  withLabel: boolean;
4
5
  pressed: boolean;
5
6
  status: string;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ExpanderProps } from './Expander.types';
2
- declare const Expander: ({ size, expanded, disabled, onClick, className }: ExpanderProps) => JSX.Element;
3
+ declare const Expander: ({ size, expanded, disabled, onClick, className }: ExpanderProps) => React.JSX.Element;
3
4
  export default Expander;
@@ -1,4 +1,5 @@
1
1
  import { Keyframes } from 'styled-components';
2
+ import * as React from 'react';
2
3
  import { ThemeProps } from '@synerise/ds-core';
3
4
  export type ExpanderProps = {
4
5
  onClick: () => void;
@@ -7,4 +8,4 @@ export type ExpanderProps = {
7
8
  expanded: boolean;
8
9
  };
9
10
  export declare const focusAnimation: ({ theme }: ThemeProps) => Keyframes;
10
- export declare const Expander: import("styled-components").StyledComponent<({ children, expanded, size, ...rest }: any) => JSX.Element, any, {}, never>;
11
+ export declare const Expander: import("styled-components").StyledComponent<({ children, expanded, size, ...rest }: any) => React.JSX.Element, any, {}, never>;
package/dist/Star/Star.js CHANGED
@@ -1,4 +1,4 @@
1
- var _excluded = ["hasError", "active"];
1
+ var _excluded = ["hasError", "active", "type"];
2
2
 
3
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
@@ -12,6 +12,8 @@ import * as S from './Star.styles';
12
12
  var StarButton = function StarButton(props) {
13
13
  var hasError = props.hasError,
14
14
  active = props.active,
15
+ _props$type = props.type,
16
+ type = _props$type === void 0 ? 'ghost' : _props$type,
15
17
  restProps = _objectWithoutPropertiesLoose(props, _excluded);
16
18
 
17
19
  return /*#__PURE__*/React.createElement(Button, _extends({
@@ -22,7 +24,7 @@ var StarButton = function StarButton(props) {
22
24
  transition: 'none'
23
25
  },
24
26
  tabIndex: 0,
25
- type: "ghost"
27
+ type: type
26
28
  }, restProps), /*#__PURE__*/React.createElement(S.IconWrapper, {
27
29
  active: active,
28
30
  error: hasError
@@ -4,5 +4,6 @@ export type StarButtonProps = ButtonPropsOmitted & {
4
4
  active?: boolean;
5
5
  hasError?: boolean;
6
6
  className?: string;
7
+ type?: string;
7
8
  };
8
9
  export {};
package/dist/index.d.ts CHANGED
@@ -7,10 +7,10 @@ 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
9
  static readonly Checkbox: (props: import("./Checkbox/Checkbox.types").CheckboxButtonProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
10
- static readonly Creator: ({ onClick, disabled, label, block, status, className }: import("./Creator/Creator.types").CreatorProps) => JSX.Element;
11
- static readonly Expander: ({ size, expanded, disabled, onClick, className }: import("./Expander/Expander.types").ExpanderProps) => JSX.Element;
10
+ static readonly Creator: ({ onClick, disabled, label, block, status, className }: import("./Creator/Creator.types").CreatorProps) => React.JSX.Element;
11
+ static readonly Expander: ({ size, expanded, disabled, onClick, className }: import("./Expander/Expander.types").ExpanderProps) => React.JSX.Element;
12
12
  static readonly Star: (props: import("./Star/Star.types").StarButtonProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
13
- render(): JSX.Element;
13
+ render(): React.JSX.Element;
14
14
  }
15
15
  export default Button;
16
16
  export type { CreatorProps } from './Creator/Creator.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-button",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
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.61.0",
36
+ "@synerise/ds-icon": "^0.62.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.6",
46
+ "@synerise/ds-utils": "^0.27.0",
47
47
  "@testing-library/react": "10.0.1",
48
48
  "csstype": "2.6.9"
49
49
  },
50
- "gitHead": "fc089bbf34c691a313b3fa648851d7831a23e3d0"
50
+ "gitHead": "6bd94c78745df68ee3b853120a863ab24fc233ef"
51
51
  }