@synerise/ds-switch 1.2.20 → 1.2.22
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 +8 -0
- package/package.json +9 -11
- package/dist/Switch.figma.d.ts +0 -1
- package/dist/Switch.figma.js +0 -101
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.2.22](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@1.2.21...@synerise/ds-switch@1.2.22) (2026-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-switch
|
|
9
|
+
|
|
10
|
+
## [1.2.21](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@1.2.20...@synerise/ds-switch@1.2.21) (2026-04-01)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-switch
|
|
13
|
+
|
|
6
14
|
## [1.2.20](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@1.2.19...@synerise/ds-switch@1.2.20) (2026-03-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-switch
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-switch",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22",
|
|
4
4
|
"description": "Switch UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -17,14 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "vite build",
|
|
20
|
-
"build:css": "node ../../../scripts/style/less.js",
|
|
21
|
-
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
20
|
"build:watch": "vite build --watch",
|
|
23
|
-
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
21
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
22
|
"prepublish": "pnpm run build",
|
|
26
|
-
"test": "
|
|
27
|
-
"test:watch": "
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"test:watch": "vitest",
|
|
28
25
|
"types": "tsc --noEmit",
|
|
29
26
|
"check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
|
|
30
27
|
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
@@ -35,18 +32,19 @@
|
|
|
35
32
|
],
|
|
36
33
|
"types": "dist/index.d.ts",
|
|
37
34
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-form-field": "^1.3.
|
|
39
|
-
"@synerise/ds-typography": "^1.1.
|
|
35
|
+
"@synerise/ds-form-field": "^1.3.12",
|
|
36
|
+
"@synerise/ds-typography": "^1.1.15",
|
|
40
37
|
"classnames": "^2.5.1"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
40
|
+
"@synerise/ds-tooltip": "^1.4.12"
|
|
44
41
|
},
|
|
45
42
|
"peerDependencies": {
|
|
46
43
|
"@synerise/ds-core": "*",
|
|
47
44
|
"antd": "4.24.16",
|
|
48
45
|
"react": ">=16.9.0 <= 18.3.1",
|
|
49
|
-
"styled-components": "^5.3.3"
|
|
46
|
+
"styled-components": "^5.3.3",
|
|
47
|
+
"vitest": "4"
|
|
50
48
|
},
|
|
51
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ce3c6d75efe8573a2b274853636f959b75a6cd32"
|
|
52
50
|
}
|
package/dist/Switch.figma.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/Switch.figma.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Switch, RawSwitch } from "./Switch.js";
|
|
4
|
-
const FIGMA_URL = "https://www.figma.com/design/fsSZONXpVvtrDsCgtu01Jb/Synerise-Design-System?node-id=249-3688&m=dev";
|
|
5
|
-
const labelProps = {
|
|
6
|
-
labelNested: figma.nestedProps("Label", {
|
|
7
|
-
text: figma.string("Text")
|
|
8
|
-
})
|
|
9
|
-
};
|
|
10
|
-
const descriptionProps = {
|
|
11
|
-
labelNested: figma.nestedProps("Label", {
|
|
12
|
-
text: figma.string("Text")
|
|
13
|
-
}),
|
|
14
|
-
descriptionNested: figma.nestedProps("Description", {
|
|
15
|
-
text: figma.string("Text")
|
|
16
|
-
})
|
|
17
|
-
};
|
|
18
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
19
|
-
variant: {
|
|
20
|
-
State: "Default",
|
|
21
|
-
"Content Type": "Solo"
|
|
22
|
-
},
|
|
23
|
-
example: () => /* @__PURE__ */ jsx(RawSwitch, {})
|
|
24
|
-
});
|
|
25
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
26
|
-
variant: {
|
|
27
|
-
State: "Default",
|
|
28
|
-
"Content Type": "Label"
|
|
29
|
-
},
|
|
30
|
-
props: labelProps,
|
|
31
|
-
example: ({
|
|
32
|
-
labelNested
|
|
33
|
-
}) => /* @__PURE__ */ jsx(Switch, { label: labelNested.text })
|
|
34
|
-
});
|
|
35
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
36
|
-
variant: {
|
|
37
|
-
State: "Default",
|
|
38
|
-
"Content Type": "With Description"
|
|
39
|
-
},
|
|
40
|
-
props: descriptionProps,
|
|
41
|
-
example: ({
|
|
42
|
-
labelNested,
|
|
43
|
-
descriptionNested
|
|
44
|
-
}) => /* @__PURE__ */ jsx(Switch, { label: labelNested.text, description: descriptionNested.text })
|
|
45
|
-
});
|
|
46
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
47
|
-
variant: {
|
|
48
|
-
State: "Selected",
|
|
49
|
-
"Content Type": "Solo"
|
|
50
|
-
},
|
|
51
|
-
example: () => /* @__PURE__ */ jsx(RawSwitch, { checked: true })
|
|
52
|
-
});
|
|
53
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
54
|
-
variant: {
|
|
55
|
-
State: "Selected",
|
|
56
|
-
"Content Type": "Label"
|
|
57
|
-
},
|
|
58
|
-
props: labelProps,
|
|
59
|
-
example: ({
|
|
60
|
-
labelNested
|
|
61
|
-
}) => /* @__PURE__ */ jsx(Switch, { checked: true, label: labelNested.text })
|
|
62
|
-
});
|
|
63
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
64
|
-
variant: {
|
|
65
|
-
State: "Selected",
|
|
66
|
-
"Content Type": "With Description"
|
|
67
|
-
},
|
|
68
|
-
props: descriptionProps,
|
|
69
|
-
example: ({
|
|
70
|
-
labelNested,
|
|
71
|
-
descriptionNested
|
|
72
|
-
}) => /* @__PURE__ */ jsx(Switch, { checked: true, label: labelNested.text, description: descriptionNested.text })
|
|
73
|
-
});
|
|
74
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
75
|
-
variant: {
|
|
76
|
-
State: "Disabled",
|
|
77
|
-
"Content Type": "Solo"
|
|
78
|
-
},
|
|
79
|
-
example: () => /* @__PURE__ */ jsx(RawSwitch, { disabled: true })
|
|
80
|
-
});
|
|
81
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
82
|
-
variant: {
|
|
83
|
-
State: "Disabled",
|
|
84
|
-
"Content Type": "Label"
|
|
85
|
-
},
|
|
86
|
-
props: labelProps,
|
|
87
|
-
example: ({
|
|
88
|
-
labelNested
|
|
89
|
-
}) => /* @__PURE__ */ jsx(Switch, { disabled: true, label: labelNested.text })
|
|
90
|
-
});
|
|
91
|
-
figma.connect(Switch, FIGMA_URL, {
|
|
92
|
-
variant: {
|
|
93
|
-
State: "Disabled",
|
|
94
|
-
"Content Type": "With Description"
|
|
95
|
-
},
|
|
96
|
-
props: descriptionProps,
|
|
97
|
-
example: ({
|
|
98
|
-
labelNested,
|
|
99
|
-
descriptionNested
|
|
100
|
-
}) => /* @__PURE__ */ jsx(Switch, { disabled: true, label: labelNested.text, description: descriptionNested.text })
|
|
101
|
-
});
|