@synerise/ds-switch 0.6.31 → 0.7.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 +19 -0
- package/dist/modules.d.js +1 -0
- package/dist/style/index.css +1 -1
- package/package.json +8 -8
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.7.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@0.7.0...@synerise/ds-switch@0.7.1) (2025-02-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-switch
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.7.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@0.6.31...@synerise/ds-switch@0.7.0) (2025-01-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* antd@4.24 react@18 ([d97a667](https://github.com/synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.6.31](https://github.com/synerise/synerise-design/compare/@synerise/ds-switch@0.6.30...@synerise/ds-switch@0.6.31) (2025-01-21)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-switch
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/dist/style/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ant-
|
|
1
|
+
.ant-switch{margin:0;padding:0;color:#6a7580;font-size:13px;font-variant:tabular-nums;line-height:1.38;list-style:none;font-feature-settings:'tnum';position:relative;display:inline-block;box-sizing:border-box;min-width:44px;height:22px;line-height:22px;vertical-align:middle;background-color:#b5bdc3;border:0;border-radius:100px;cursor:pointer;transition:all .2s;user-select:none}.ant-switch:focus{outline:0;box-shadow:0 0 0 2px rgba(181,189,195,.1)}.ant-switch-checked:focus{box-shadow:0 0 0 2px #e6f4ff}.ant-switch:focus:hover{box-shadow:none}.ant-switch-checked{background-color:#54cb0b}.ant-switch-disabled,.ant-switch-loading{cursor:not-allowed;opacity:.4}.ant-switch-disabled *,.ant-switch-loading *{box-shadow:none;cursor:not-allowed}.ant-switch-inner{display:block;margin:0 7px 0 25px;color:#fff;font-size:11px;transition:margin .2s}.ant-switch-checked .ant-switch-inner{margin:0 25px 0 7px}.ant-switch-handle{position:absolute;top:2px;left:2px;width:18px;height:18px;transition:all .2s ease-in-out}.ant-switch-handle::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#fff;border-radius:9px;box-shadow:0 2px 4px 0 rgba(0,35,11,.2);transition:all .2s ease-in-out;content:''}.ant-switch-checked .ant-switch-handle{left:calc(100% - 18px - 2px)}.ant-switch:not(.ant-switch-disabled):active .ant-switch-handle::before{right:-30%;left:0}.ant-switch:not(.ant-switch-disabled):active.ant-switch-checked .ant-switch-handle::before{right:0;left:-30%}.ant-switch-loading-icon.anticon{position:relative;top:2.5px;color:rgba(0,0,0,.65);vertical-align:top}.ant-switch-checked .ant-switch-loading-icon{color:#54cb0b}.ant-switch-small{min-width:28px;height:16px;line-height:16px}.ant-switch-small .ant-switch-inner{margin:0 5px 0 18px;font-size:11px}.ant-switch-small .ant-switch-handle{width:12px;height:12px}.ant-switch-small .ant-switch-loading-icon{top:1.5px;font-size:9px}.ant-switch-small.ant-switch-checked .ant-switch-inner{margin:0 18px 0 5px}.ant-switch-small.ant-switch-checked .ant-switch-handle{left:calc(100% - 12px - 2px)}.ant-switch-rtl{direction:rtl}.ant-switch-rtl .ant-switch-inner{margin:0 25px 0 7px}.ant-switch-rtl .ant-switch-handle{right:2px;left:auto}.ant-switch-rtl:not(.ant-switch-rtl-disabled):active .ant-switch-handle::before{right:0;left:-30%}.ant-switch-rtl:not(.ant-switch-rtl-disabled):active.ant-switch-checked .ant-switch-handle::before{right:-30%;left:0}.ant-switch-rtl.ant-switch-checked .ant-switch-inner{margin:0 7px 0 25px}.ant-switch-rtl.ant-switch-checked .ant-switch-handle{right:calc(100% - 18px - 2px)}.ant-switch-rtl.ant-switch-small.ant-switch-checked .ant-switch-handle{right:calc(100% - 12px - 2px)}.ant-switch{min-width:unset;width:28px;height:16px;border:2px solid transparent}.ant-switch:not(.ant-switch-disabled):active::after,.ant-switch:not(.ant-switch-disabled):active::before{width:12px}.ant-switch+.switch-texts .switch-label{color:#57616d}.ant-switch.ant-switch.error{background-color:#f52922}.ant-switch:hover{background-color:#949ea6}.ant-switch:hover+.switch-texts .switch-label{color:#384350}.ant-switch .ant-switch-handle{width:12px;height:12px;top:0;left:0}.ant-switch .ant-switch-handle::before{box-shadow:none}.ant-switch.ant-switch .ant-click-animating-node{display:none}.ant-switch-checked:hover{background-color:#76dc25}.ant-switch-checked+.switch-texts .switch-label{color:#57616d}.ant-switch-checked+.switch-texts .switch-label:hover{color:#384350}.ant-switch-checked.ant-switch-checked .ant-switch-handle{left:calc(100% - 12px)}.ant-switch:focus{box-shadow:none;border:2px solid #0b68ff}.ant-switch-checked::after{margin-left:0}.ant-switch:not(.ant-switch-checked)::after{left:0}.ant-switch-disabled+.switch-texts .switch-label{color:#6a7580;opacity:.4}.ant-switch-disabled+.switch-texts .switch-description{color:#6a7580;opacity:.4}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-switch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Switch UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-input": "^0.
|
|
38
|
-
"@synerise/ds-typography": "^0.
|
|
39
|
-
"@synerise/ds-utils": "^0.
|
|
37
|
+
"@synerise/ds-input": "^0.25.1",
|
|
38
|
+
"@synerise/ds-typography": "^0.17.0",
|
|
39
|
+
"@synerise/ds-utils": "^0.32.0",
|
|
40
40
|
"classnames": "2.3.2",
|
|
41
41
|
"uuid": "^8.3.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@synerise/ds-core": "*",
|
|
45
|
-
"antd": "4.
|
|
46
|
-
"react": ">=16.9.0 <=
|
|
47
|
-
"styled-components": "5.
|
|
45
|
+
"antd": "4.24.16",
|
|
46
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
47
|
+
"styled-components": "^5.3.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "9aaa7260a474fb987a6dad183ce6e609ddc965d2"
|
|
50
50
|
}
|