@synerise/ds-checkbox 1.2.27 → 1.2.29
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 +10 -0
- package/dist/Checkbox.styles.d.ts +1 -1
- package/dist/Checkbox.styles.js +2 -2
- package/package.json +12 -3
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.29](https://github.com/synerise/synerise-design/compare/@synerise/ds-checkbox@1.2.28...@synerise/ds-checkbox@1.2.29) (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.28](https://github.com/synerise/synerise-design/compare/@synerise/ds-checkbox@1.2.27...@synerise/ds-checkbox@1.2.28) (2026-04-29)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @synerise/ds-checkbox
|
|
15
|
+
|
|
6
16
|
## [1.2.27](https://github.com/synerise/synerise-design/compare/@synerise/ds-checkbox@1.2.26...@synerise/ds-checkbox@1.2.27) (2026-04-28)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @synerise/ds-checkbox
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Checkbox as BaseAntCheckbox, CheckboxProps } from 'antd';
|
|
2
2
|
/**
|
|
3
3
|
* error TS4023: Exported variable 'AntdCheckbox' has or is using name 'CompoundedComponent' from external module "/Users/biedronne/Documents/Work/DS2/synerise-design/node_modules/antd/lib/checkbox/index" but cannot be named.
|
|
4
4
|
*/
|
package/dist/Checkbox.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Checkbox } from "antd";
|
|
2
2
|
import styled, { css } from "styled-components";
|
|
3
3
|
const checkSvgWithCustomColor = (color) => {
|
|
4
4
|
const colorValueForSvg = color.replace(/#/, "%23");
|
|
@@ -6,7 +6,7 @@ const checkSvgWithCustomColor = (color) => {
|
|
|
6
6
|
return iconWithColor;
|
|
7
7
|
};
|
|
8
8
|
const soloCss = /* @__PURE__ */ css(["padding:4px;"]);
|
|
9
|
-
const AntdCheckbox = /* @__PURE__ */ styled(
|
|
9
|
+
const AntdCheckbox = /* @__PURE__ */ styled(Checkbox).withConfig({
|
|
10
10
|
displayName: "Checkboxstyles__AntdCheckbox",
|
|
11
11
|
componentId: "sc-10i9aa0-0"
|
|
12
12
|
})(["&&{display:flex;align-items:center;line-height:1;", ";.ant-checkbox{top:0;}}.ant-checkbox-input:focus + .ant-checkbox-inner{border:1px solid ", ";box-shadow:inset 0 0 0 1px ", ";}&& > .ant-checkbox-disabled.ant-checkbox-checked > span.ant-checkbox-inner{background-image:", ";}&& > .ant-checkbox-checked > span.ant-checkbox-inner{background-image:", ";::after{display:none;}:focus{border:none;}}&&{> .ant-checkbox-indeterminate,.ant-checkbox-indeterminate.ant-checkbox-checked{> span.ant-checkbox-inner{background-color:", ";border:1px solid ", ";background-image:none;::after{background:#fff;height:2px;display:table;left:50%;}}}:hover{> .ant-checkbox-indeterminate,.ant-checkbox-indeterminate.ant-checkbox-checked{> span.ant-checkbox-inner{background-color:", ";}}}}&&:hover > .ant-checkbox:not(.ant-checkbox-checked):not( .ant-checkbox-indeterminate ):not(.ant-checkbox-disabled) > span.ant-checkbox-inner{border-width:1px;border-style:solid;border-color:", " !important;outline:none;background-image:", ";}"], (props) => props.$solo && soloCss, (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-600"], (props) => `url("${checkSvgWithCustomColor(props.theme.palette["grey-400"])}")`, (props) => `url("${checkSvgWithCustomColor(props.theme.palette.white)}")`, (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-500"], (props) => props.theme.palette["blue-600"], (props) => `url("${checkSvgWithCustomColor(props.theme.palette["blue-600"])}")`);
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-checkbox",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
4
4
|
"description": "Checkbox 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",
|
|
@@ -31,7 +40,7 @@
|
|
|
31
40
|
"*.less"
|
|
32
41
|
],
|
|
33
42
|
"dependencies": {
|
|
34
|
-
"@synerise/ds-typography": "^1.1.
|
|
43
|
+
"@synerise/ds-typography": "^1.1.21"
|
|
35
44
|
},
|
|
36
45
|
"devDependencies": {
|
|
37
46
|
"vitest": "4"
|
|
@@ -42,5 +51,5 @@
|
|
|
42
51
|
"react": ">=16.9.0 <= 18.3.1",
|
|
43
52
|
"styled-components": "^5.3.3"
|
|
44
53
|
},
|
|
45
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "c5eee882509cbeb4544cb45939620881b829d4d9"
|
|
46
55
|
}
|