@synerise/ds-button 0.21.20 → 0.22.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,25 @@
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.22.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.21...@synerise/ds-button@0.22.0) (2024-12-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * **banner:** new component ([881a411](https://github.com/synerise/synerise-design/commit/881a41113241463b940eb9b2a6bde9ab10c143a4))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.21.21](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.20...@synerise/ds-button@0.21.21) (2024-11-29)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-button
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.21.20](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@0.21.19...@synerise/ds-button@0.21.20) (2024-11-28)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-button
@@ -1,29 +1,30 @@
1
1
  import { ElementType, MouseEvent } from 'react';
2
2
  import { ButtonProps as AntdButtonProps } from 'antd/lib/button';
3
3
  import { JustifyContentProperty } from 'csstype';
4
+ import { LiteralStringUnion } from '@synerise/ds-utils';
4
5
  export type ButtonProps = Omit<AntdButtonProps, 'type'> & {
5
6
  /**
6
7
  * Defines the type of the button. It affects the button color
7
8
  *
8
9
  * @default secondary
9
10
  */
10
- type?: string | 'primary' | 'secondary' | 'tertiary' | 'tertiary-white' | 'ghost-primary' | 'ghost' | 'ghost-white' | 'custom-color' | 'custom-color-ghost';
11
+ type?: LiteralStringUnion<'primary' | 'secondary' | 'tertiary' | 'tertiary-white' | 'ghost-primary' | 'ghost' | 'ghost-white' | 'custom-color' | 'custom-color-ghost'>;
11
12
  /**
12
13
  * Defines the type of the button content. It affects content inside the button
13
14
  *
14
15
  * @default simple
15
16
  */
16
- mode?: 'single-icon' | 'split' | 'two-icons' | 'label-icon' | 'icon-label' | string;
17
+ mode?: LiteralStringUnion<'single-icon' | 'split' | 'two-icons' | 'label-icon' | 'icon-label'>;
17
18
  /**
18
19
  * Defines color of `custom-color` button.
19
20
  *
20
21
  * @default red
21
22
  */
22
- color?: string | 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
23
+ color?: LiteralStringUnion<'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet'>;
23
24
  /**
24
25
  * Defines shape of the button.
25
26
  */
26
- groupVariant?: string | 'left-rounded' | 'squared' | 'right-rounded';
27
+ groupVariant?: LiteralStringUnion<'left-rounded' | 'squared' | 'right-rounded'>;
27
28
  /**
28
29
  * Defines justify of content in button.
29
30
  */
@@ -39,7 +40,7 @@ export type ButtonProps = Omit<AntdButtonProps, 'type'> & {
39
40
  * Sets the handler to handle `click` event
40
41
  */
41
42
  onClick?: (event: MouseEvent<HTMLElement>) => void;
42
- iconColor?: string | 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
43
+ iconColor?: LiteralStringUnion<'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet'>;
43
44
  error?: boolean;
44
45
  activated?: boolean;
45
46
  readOnly?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-button",
3
- "version": "0.21.20",
3
+ "version": "0.22.0",
4
4
  "description": "Button UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-icon": "^0.67.1",
37
+ "@synerise/ds-icon": "^0.68.0",
38
38
  "@synerise/ds-utils": "^0.31.2",
39
39
  "classnames": "2.3.2",
40
40
  "csstype": "^2.6.9"
@@ -45,5 +45,5 @@
45
45
  "react": ">=16.9.0 <= 17.0.2",
46
46
  "styled-components": "5.0.1"
47
47
  },
48
- "gitHead": "4a56ee7ef816c22341ce704154dc7aa65b7d1dcc"
48
+ "gitHead": "03c0625fb7b5baaa35f6633a425fb803469b6a20"
49
49
  }