@synerise/ds-switch 1.2.26 → 1.2.28

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,16 @@
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.2.28](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@1.2.27...@synerise/ds-switch@1.2.28) (2026-05-04)
7
+
8
+ ### Bug Fixes
9
+
10
+ - add exports field to all component packages for correct ESM detection ([6eccfde](https://github.com/synerise/synerise-design/commit/6eccfde8f2dd73c59860793231fbd7bcd61813b4))
11
+
12
+ ## [1.2.27](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@1.2.26...@synerise/ds-switch@1.2.27) (2026-04-29)
13
+
14
+ **Note:** Version bump only for package @synerise/ds-switch
15
+
6
16
  ## [1.2.26](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@1.2.25...@synerise/ds-switch@1.2.26) (2026-04-28)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-switch
package/dist/Switch.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
- export declare const RawSwitch: React.ForwardRefExoticComponent<import('antd/lib/switch').SwitchProps & React.RefAttributes<HTMLElement>>;
3
- export declare const Switch: React.ForwardRefExoticComponent<Omit<import('antd/lib/switch').SwitchProps, "size"> & {
2
+ export declare const RawSwitch: React.ForwardRefExoticComponent<import('antd').SwitchProps & React.RefAttributes<HTMLElement>>;
3
+ export declare const Switch: React.ForwardRefExoticComponent<Omit<import('antd').SwitchProps, "size"> & {
4
4
  errorText?: React.ReactNode;
5
5
  label: React.ReactNode;
6
6
  description?: React.ReactNode;
package/dist/Switch.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import AntdSwitch from "antd/lib/switch";
2
+ import { Switch as Switch$1 } from "antd";
3
3
  import classnames from "classnames";
4
4
  import { forwardRef, useId, useRef } from "react";
5
5
  import { SwitchWrapper, LabelSwitchWrapper, Texts, Label, DescriptionWrapper, BelowLabel, Error, Description } from "./Switch.styles.js";
6
6
  import "./style/index.css";
7
- const RawSwitch = AntdSwitch;
7
+ const RawSwitch = Switch$1;
8
8
  const Switch = forwardRef(({
9
9
  errorText,
10
10
  label,
@@ -1,4 +1,4 @@
1
- import { SwitchProps as AntdSwitchProps } from 'antd/lib/switch';
1
+ import { SwitchProps as AntdSwitchProps } from 'antd';
2
2
  import { ReactNode } from 'react';
3
3
  import { TooltipProps as DsTooltipProps } from '@synerise/ds-tooltip';
4
4
  type TooltipProps = {
package/package.json CHANGED
@@ -1,10 +1,19 @@
1
1
  {
2
2
  "name": "@synerise/ds-switch",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "description": "Switch UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
7
7
  "main": "dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./dist/*.js": "./dist/*.js",
15
+ "./dist/*": "./dist/*.js"
16
+ },
8
17
  "files": [
9
18
  "/dist",
10
19
  "CHANGELOG.md",
@@ -32,12 +41,12 @@
32
41
  ],
33
42
  "types": "dist/index.d.ts",
34
43
  "dependencies": {
35
- "@synerise/ds-form-field": "^1.3.16",
36
- "@synerise/ds-typography": "^1.1.19",
44
+ "@synerise/ds-form-field": "^1.3.18",
45
+ "@synerise/ds-typography": "^1.1.21",
37
46
  "classnames": "^2.5.1"
38
47
  },
39
48
  "devDependencies": {
40
- "@synerise/ds-tooltip": "^1.4.16"
49
+ "@synerise/ds-tooltip": "^1.4.18"
41
50
  },
42
51
  "peerDependencies": {
43
52
  "@synerise/ds-core": "*",
@@ -46,5 +55,5 @@
46
55
  "styled-components": "^5.3.3",
47
56
  "vitest": "4"
48
57
  },
49
- "gitHead": "25cf79a6df348141419f397813e4f6a5533deb5f"
58
+ "gitHead": "c5eee882509cbeb4544cb45939620881b829d4d9"
50
59
  }