@synerise/ds-button 0.18.2 → 0.18.4

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
+ ## [0.18.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.18.3...@synerise/ds-button@0.18.4) (2023-10-11)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-button
9
+
10
+
11
+
12
+
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-button
17
+
18
+
19
+
20
+
21
+
6
22
  ## [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)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-button
@@ -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>;
@@ -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 declare type Props = Omit<ButtonProps, 'type'> & {
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 declare type ButtonSubComponents = {
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
- declare type ButtonPropsOmitted = Omit<ButtonProps, 'type' | 'block' | 'color' | 'groupVariant' | 'icon' | 'iconColor' | 'leftIconSize' | 'mode' | 'rightIconSize' | 'size' | 'onChange'>;
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,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { Keyframes } from 'styled-components';
3
2
  import { ThemeProps } from '@synerise/ds-core';
4
- export declare type ExpanderProps = {
3
+ export type ExpanderProps = {
5
4
  onClick: () => void;
6
5
  size: number;
7
6
  disabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import { Props as ButtonProps } from '../Button.types';
2
- declare type ButtonPropsOmitted = Omit<ButtonProps, 'type' | 'block' | 'color' | 'groupVariant' | 'icon' | 'iconColor' | 'leftIconSize' | 'mode' | 'rightIconSize' | 'size' | 'onChange'>;
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 | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
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 | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
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.2",
3
+ "version": "0.18.4",
4
4
  "description": "Button UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -21,6 +21,7 @@
21
21
  "build:js": "babel --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
22
  "build:watch": "npm run build:js -- --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
+ "pack:ci": "npm pack --pack-destination ../../portal/storybook-static/static",
24
25
  "prepublish": "npm run build",
25
26
  "test": "jest",
26
27
  "test:watch": "npm run test -- --watchAll",
@@ -32,7 +33,7 @@
32
33
  ],
33
34
  "types": "dist/index.d.ts",
34
35
  "dependencies": {
35
- "@synerise/ds-icon": "^0.58.2"
36
+ "@synerise/ds-icon": "^0.58.4"
36
37
  },
37
38
  "peerDependencies": {
38
39
  "@synerise/ds-core": "*",
@@ -41,9 +42,9 @@
41
42
  "styled-components": "5.0.1"
42
43
  },
43
44
  "devDependencies": {
44
- "@synerise/ds-utils": "^0.24.16",
45
+ "@synerise/ds-utils": "^0.24.18",
45
46
  "@testing-library/react": "10.0.1",
46
47
  "csstype": "2.6.9"
47
48
  },
48
- "gitHead": "f1f520c4c5ef9f90bacb5d5e0b2e778ceb8fdf79"
49
+ "gitHead": "8eb4a3e304406a8dbb9258803c48952461fc5a55"
49
50
  }