@synerise/ds-switch 0.5.1 → 0.6.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,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.6.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@0.6.0...@synerise/ds-switch@0.6.1) (2024-06-21)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-switch
9
+
10
+
11
+
12
+
13
+
14
+ # [0.6.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@0.5.1...@synerise/ds-switch@0.6.0) (2024-05-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * **list-item:** added prefix, suffix, ordered props ([3927035](https://github.com/synerise/synerise-design/commit/39270352b6a681f3ac402edb6c2fb7a245883304))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.5.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@0.5.0...@synerise/ds-switch@0.5.1) (2024-05-23)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-switch
package/dist/Switch.d.ts CHANGED
@@ -1,5 +1,11 @@
1
+ import React from 'react';
1
2
  import '@synerise/ds-core/dist/js/style';
2
3
  import './style/index.less';
4
+ import { SwitchProps as AntdSwitchProps } from 'antd/lib/switch';
3
5
  import { Props } from './Switch.types';
4
- export declare const Switch: ({ errorText, label, description, onChange, withFormElementMargin, tooltipIcon, tooltip, className, ...antdSwitchProps }: Props) => JSX.Element;
6
+ export declare const ExtendedAntdSwitchComponent: React.ComponentType<AntdSwitchProps & {
7
+ id: string;
8
+ ref?: React.RefObject<HTMLInputElement> | undefined;
9
+ }>;
10
+ export declare const Switch: ({ errorText, label, description, onChange, withFormElementMargin, tooltipIcon, tooltip, className, ...antdSwitchProps }: Props) => React.JSX.Element;
5
11
  export default Switch;
package/dist/Switch.js CHANGED
@@ -13,7 +13,7 @@ import "./style/index.css";
13
13
  import AntdSwitch from 'antd/lib/switch';
14
14
  import * as S from './Switch.styles';
15
15
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
- var ExtendedAntdSwitchComponent = AntdSwitch;
16
+ export var ExtendedAntdSwitchComponent = AntdSwitch;
17
17
  export var Switch = function Switch(_ref) {
18
18
  var errorText = _ref.errorText,
19
19
  label = _ref.label,
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { default } from './Switch';
1
+ export { default, ExtendedAntdSwitchComponent as RawSwitch } from './Switch';
2
2
  export type { Props as SwitchProps } from './Switch.types';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { default } from './Switch';
1
+ export { default, ExtendedAntdSwitchComponent as RawSwitch } from './Switch';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-switch",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "Switch UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-input": "^0.21.4",
36
+ "@synerise/ds-input": "^0.22.0",
37
37
  "@synerise/ds-typography": "^0.15.0",
38
- "@synerise/ds-utils": "^0.26.6",
38
+ "@synerise/ds-utils": "^0.27.0",
39
39
  "classnames": "2.3.2",
40
40
  "uuid": "^8.3.2"
41
41
  },
@@ -48,5 +48,5 @@
48
48
  "devDependencies": {
49
49
  "@testing-library/react": "10.0.1"
50
50
  },
51
- "gitHead": "357031f4340eb9a2835f7b0cabffb5b1ad231db8"
51
+ "gitHead": "ef835e848d4f02cca258130baa6c9f44dfa15dd0"
52
52
  }