@synerise/ds-button-group 1.1.9 → 1.1.10

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,14 @@
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.1.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-button-group@1.1.9...@synerise/ds-button-group@1.1.10) (2025-07-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-button-group
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.1.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-button-group@1.1.8...@synerise/ds-button-group@1.1.9) (2025-07-17)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-button-group
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
- export declare const ButtonDivider: import("styled-components").StyledComponent<(props: import("@synerise/ds-divider").DividerProps) => import("react").JSX.Element, any, {}, never>;
1
+ export declare const ButtonDivider: import("styled-components").StyledComponent<(props: import("@synerise/ds-divider").DividerProps) => React.JSX.Element, any, {}, never>;
@@ -1,14 +1,15 @@
1
1
  import { type Keyframes } from 'styled-components';
2
2
  import { type ThemeProps } from '@synerise/ds-core';
3
+ import { type LiteralStringUnion } from '@synerise/ds-utils';
3
4
  export declare const focusAnimation: ({ theme }: ThemeProps) => Keyframes;
4
5
  export declare const Container: import("styled-components").StyledComponent<"div", any, {
5
- options?: boolean | undefined;
6
- fullWidth?: boolean | undefined;
7
- buttonsPosition: string | 'left' | 'center' | 'right';
8
- disabled?: boolean | undefined;
9
- splitMode?: boolean | undefined;
10
- compact?: boolean | undefined;
11
- error?: boolean | undefined;
6
+ options?: boolean;
7
+ fullWidth?: boolean;
8
+ buttonsPosition: LiteralStringUnion<"left" | "center" | "right">;
9
+ disabled?: boolean;
10
+ splitMode?: boolean;
11
+ compact?: boolean;
12
+ error?: boolean;
12
13
  }, never>;
13
14
  export declare const Title: import("styled-components").StyledComponent<"h4", any, {}, never>;
14
15
  export declare const Description: import("styled-components").StyledComponent<"p", any, {}, never>;
@@ -1,8 +1,18 @@
1
1
  import styled, { css, keyframes } from 'styled-components';
2
- var mapButtonsPosition = {
3
- left: 'flex-start',
4
- right: 'flex-end',
5
- center: 'center'
2
+ var getButtonsPosition = function getButtonsPosition(position) {
3
+ var mapButtonsPosition = {
4
+ left: 'flex-start',
5
+ right: 'flex-end',
6
+ center: 'center'
7
+ };
8
+ switch (position) {
9
+ case 'left':
10
+ case 'right':
11
+ case 'center':
12
+ return mapButtonsPosition[position];
13
+ default:
14
+ return '';
15
+ }
6
16
  };
7
17
  export var focusAnimation = function focusAnimation(_ref) {
8
18
  var theme = _ref.theme;
@@ -16,7 +26,7 @@ export var Container = styled.div.withConfig({
16
26
  }, function (props) {
17
27
  return props.compact ? '0px' : '8px';
18
28
  }, function (props) {
19
- return mapButtonsPosition[props.buttonsPosition];
29
+ return getButtonsPosition(props.buttonsPosition);
20
30
  }, function (props) {
21
31
  return !!props.splitMode && !props.error && css(["*:not(:first-child).ds-button.single-icon,.ds-button.single-icon.ant-btn-custom-color,.ds-button.single-icon.ant-btn-tertiary-white{border-left:1px solid rgba(255,255,255,0.15);&:disabled.ds-button.single-icon{&.ant-btn-tertiary-white{border-left:1px solid rgba(255,255,255,0.2) !important;}&.ant-btn-tertiary{border-left:1px solid rgba(106,117,128,0.1) !important;}&.ant-btn-custom-color{border-left:1px solid rgba(255,255,255,0.8) !important;}&.ant-btn-primary{border-left:1px solid rgba(255,255,255,0.5) !important;}}}*:not(:first-child).ds-button.single-icon.ant-btn-ghost-primary,.ds-button.single-icon.ant-btn-ghost,.ds-button.single-icon.ant-btn-ghost-white,.ds-button.single-icon.ant-btn-secondary{border-left:0px;padding-left:1px;}*:not(:first-child).ds-button.single-icon.ant-btn-tertiary{border-left:1px solid rgba(106,117,128,0.2);}.ds-button.label.ant-btn-tertiary[disabled]{color:", " !important;}&:hover:not(:disabled){*:not(:first-child).ds-button.single-icon{&.ant-btn-tertiary,&.ant-btn-tertiary-white,&.ant-btn-primary,&.ant-btn-custom-color{border-left:transparent !important;}}}.ds-button:focus{&.ant-btn-primary,&.ant-btn-tertiary,&.ant-btn-tertiary-white,&.ant-btn-custom-color{border-color:transparent !important;&:active{border-color:transparent !important;}}}"], props.theme.palette['grey-500']);
22
32
  }, function (props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-button-group",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Button-Group UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,9 +34,9 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^1.4.5",
38
- "@synerise/ds-divider": "^1.0.16",
39
- "@synerise/ds-utils": "^1.3.1"
37
+ "@synerise/ds-button": "^1.4.6",
38
+ "@synerise/ds-divider": "^1.0.17",
39
+ "@synerise/ds-utils": "^1.4.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
@@ -44,5 +44,5 @@
44
44
  "react": ">=16.9.0 <= 18.3.1",
45
45
  "styled-components": "^5.3.3"
46
46
  },
47
- "gitHead": "4e851d649cb25346f2f8e0575dde91cc50f43bc4"
47
+ "gitHead": "b35b1875727156fe9f5b3bad55aed5ca447c8c8d"
48
48
  }