@atlaskit/checkbox 17.2.1 → 17.2.2
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 +7 -0
- package/dist/cjs/checkbox.js +1 -1
- package/dist/cjs/internal/checkbox-icon.js +29 -58
- package/dist/es2019/checkbox.js +1 -1
- package/dist/es2019/internal/checkbox-icon.js +29 -57
- package/dist/esm/checkbox.js +1 -1
- package/dist/esm/internal/checkbox-icon.js +29 -57
- package/package.json +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/checkbox
|
|
2
2
|
|
|
3
|
+
## 17.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3503d88dece46`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3503d88dece46) -
|
|
8
|
+
Removing feature flag with changing internal use of custom icons.
|
|
9
|
+
|
|
3
10
|
## 17.2.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/checkbox.js
CHANGED
|
@@ -77,7 +77,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
|
|
|
77
77
|
analyticsData: analyticsContext,
|
|
78
78
|
componentName: 'checkbox',
|
|
79
79
|
packageName: "@atlaskit/checkbox",
|
|
80
|
-
packageVersion: "
|
|
80
|
+
packageVersion: "0.0.0-development"
|
|
81
81
|
});
|
|
82
82
|
var internalRef = (0, _react.useRef)(null);
|
|
83
83
|
var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* checkbox-icon.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
@@ -11,7 +10,6 @@ require("./checkbox-icon.compiled.css");
|
|
|
11
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
11
|
var React = _react;
|
|
13
12
|
var _runtime = require("@compiled/react/runtime");
|
|
14
|
-
var _svg = _interopRequireDefault(require("@atlaskit/icon/svg"));
|
|
15
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
15
|
var svgStyles = null;
|
|
@@ -69,61 +67,34 @@ var CheckboxIcon = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
69
67
|
var icon = (0, _react.useMemo)(function () {
|
|
70
68
|
return getIcon(isIndeterminate, isChecked);
|
|
71
69
|
}, [isIndeterminate, isChecked]);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
style
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}), icon));
|
|
102
|
-
}
|
|
103
|
-
return (
|
|
104
|
-
/*#__PURE__*/
|
|
105
|
-
// eslint-disable-next-line @atlaskit/design-system/no-custom-icons
|
|
106
|
-
React.createElement(_svg.default, {
|
|
107
|
-
label: "",
|
|
108
|
-
primaryColor: "var(--checkbox-background-color)",
|
|
109
|
-
secondaryColor: "var(--checkbox-tick-color)"
|
|
110
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
111
|
-
fillRule: "evenodd"
|
|
112
|
-
}, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
|
|
113
|
-
fill: "currentColor",
|
|
114
|
-
x: "5.5",
|
|
115
|
-
y: "5.5",
|
|
116
|
-
width: "13",
|
|
117
|
-
height: "13",
|
|
118
|
-
rx: (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') ? '2' : '1.5'
|
|
119
|
-
}) : /*#__PURE__*/React.createElement("rect", {
|
|
120
|
-
fill: "currentColor",
|
|
121
|
-
x: "6",
|
|
122
|
-
y: "6",
|
|
123
|
-
width: "12",
|
|
124
|
-
height: "12",
|
|
125
|
-
rx: "2"
|
|
126
|
-
}), icon))
|
|
127
|
-
);
|
|
70
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
71
|
+
width: 24,
|
|
72
|
+
height: 24,
|
|
73
|
+
viewBox: "0 0 24 24",
|
|
74
|
+
style: {
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
76
|
+
color: 'var(--checkbox-background-color)',
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
78
|
+
fill: 'var(--checkbox-tick-color)'
|
|
79
|
+
},
|
|
80
|
+
role: "presentation",
|
|
81
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw"])
|
|
82
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
83
|
+
fillRule: "evenodd"
|
|
84
|
+
}, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
|
|
85
|
+
fill: "currentColor",
|
|
86
|
+
x: "5.5",
|
|
87
|
+
y: "5.5",
|
|
88
|
+
width: "13",
|
|
89
|
+
height: "13",
|
|
90
|
+
rx: "1.5"
|
|
91
|
+
}) : /*#__PURE__*/React.createElement("rect", {
|
|
92
|
+
fill: "currentColor",
|
|
93
|
+
x: "6",
|
|
94
|
+
y: "6",
|
|
95
|
+
width: "12",
|
|
96
|
+
height: "12",
|
|
97
|
+
rx: "2"
|
|
98
|
+
}), icon));
|
|
128
99
|
});
|
|
129
100
|
var _default = exports.default = CheckboxIcon;
|
package/dist/es2019/checkbox.js
CHANGED
|
@@ -59,7 +59,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox({
|
|
|
59
59
|
analyticsData: analyticsContext,
|
|
60
60
|
componentName: 'checkbox',
|
|
61
61
|
packageName: "@atlaskit/checkbox",
|
|
62
|
-
packageVersion: "
|
|
62
|
+
packageVersion: "0.0.0-development"
|
|
63
63
|
});
|
|
64
64
|
const internalRef = useRef(null);
|
|
65
65
|
const mergedRefs = mergeRefs([internalRef, ref]);
|
|
@@ -3,7 +3,6 @@ import "./checkbox-icon.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { memo, useMemo } from 'react';
|
|
6
|
-
import PrimitiveSVGIcon from '@atlaskit/icon/svg';
|
|
7
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
const svgStyles = null;
|
|
9
8
|
function getIcon(isIndeterminate, isChecked) {
|
|
@@ -59,61 +58,34 @@ const CheckboxIcon = /*#__PURE__*/memo(({
|
|
|
59
58
|
isChecked
|
|
60
59
|
}) => {
|
|
61
60
|
const icon = useMemo(() => getIcon(isIndeterminate, isChecked), [isIndeterminate, isChecked]);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
style
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}), icon));
|
|
92
|
-
}
|
|
93
|
-
return (
|
|
94
|
-
/*#__PURE__*/
|
|
95
|
-
// eslint-disable-next-line @atlaskit/design-system/no-custom-icons
|
|
96
|
-
React.createElement(PrimitiveSVGIcon, {
|
|
97
|
-
label: "",
|
|
98
|
-
primaryColor: "var(--checkbox-background-color)",
|
|
99
|
-
secondaryColor: "var(--checkbox-tick-color)"
|
|
100
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
101
|
-
fillRule: "evenodd"
|
|
102
|
-
}, fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
|
|
103
|
-
fill: "currentColor",
|
|
104
|
-
x: "5.5",
|
|
105
|
-
y: "5.5",
|
|
106
|
-
width: "13",
|
|
107
|
-
height: "13",
|
|
108
|
-
rx: fg('platform-dst-shape-theme-default') ? '2' : '1.5'
|
|
109
|
-
}) : /*#__PURE__*/React.createElement("rect", {
|
|
110
|
-
fill: "currentColor",
|
|
111
|
-
x: "6",
|
|
112
|
-
y: "6",
|
|
113
|
-
width: "12",
|
|
114
|
-
height: "12",
|
|
115
|
-
rx: "2"
|
|
116
|
-
}), icon))
|
|
117
|
-
);
|
|
61
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
62
|
+
width: 24,
|
|
63
|
+
height: 24,
|
|
64
|
+
viewBox: "0 0 24 24",
|
|
65
|
+
style: {
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
67
|
+
color: 'var(--checkbox-background-color)',
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
69
|
+
fill: 'var(--checkbox-tick-color)'
|
|
70
|
+
},
|
|
71
|
+
role: "presentation",
|
|
72
|
+
className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw"])
|
|
73
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
74
|
+
fillRule: "evenodd"
|
|
75
|
+
}, fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
|
|
76
|
+
fill: "currentColor",
|
|
77
|
+
x: "5.5",
|
|
78
|
+
y: "5.5",
|
|
79
|
+
width: "13",
|
|
80
|
+
height: "13",
|
|
81
|
+
rx: "1.5"
|
|
82
|
+
}) : /*#__PURE__*/React.createElement("rect", {
|
|
83
|
+
fill: "currentColor",
|
|
84
|
+
x: "6",
|
|
85
|
+
y: "6",
|
|
86
|
+
width: "12",
|
|
87
|
+
height: "12",
|
|
88
|
+
rx: "2"
|
|
89
|
+
}), icon));
|
|
118
90
|
});
|
|
119
91
|
export default CheckboxIcon;
|
package/dist/esm/checkbox.js
CHANGED
|
@@ -68,7 +68,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(_ref
|
|
|
68
68
|
analyticsData: analyticsContext,
|
|
69
69
|
componentName: 'checkbox',
|
|
70
70
|
packageName: "@atlaskit/checkbox",
|
|
71
|
-
packageVersion: "
|
|
71
|
+
packageVersion: "0.0.0-development"
|
|
72
72
|
});
|
|
73
73
|
var internalRef = useRef(null);
|
|
74
74
|
var mergedRefs = mergeRefs([internalRef, ref]);
|
|
@@ -3,7 +3,6 @@ import "./checkbox-icon.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { memo, useMemo } from 'react';
|
|
6
|
-
import PrimitiveSVGIcon from '@atlaskit/icon/svg';
|
|
7
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
var svgStyles = null;
|
|
9
8
|
function getIcon(isIndeterminate, isChecked) {
|
|
@@ -60,61 +59,34 @@ var CheckboxIcon = /*#__PURE__*/memo(function (_ref) {
|
|
|
60
59
|
var icon = useMemo(function () {
|
|
61
60
|
return getIcon(isIndeterminate, isChecked);
|
|
62
61
|
}, [isIndeterminate, isChecked]);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
style
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}), icon));
|
|
93
|
-
}
|
|
94
|
-
return (
|
|
95
|
-
/*#__PURE__*/
|
|
96
|
-
// eslint-disable-next-line @atlaskit/design-system/no-custom-icons
|
|
97
|
-
React.createElement(PrimitiveSVGIcon, {
|
|
98
|
-
label: "",
|
|
99
|
-
primaryColor: "var(--checkbox-background-color)",
|
|
100
|
-
secondaryColor: "var(--checkbox-tick-color)"
|
|
101
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
102
|
-
fillRule: "evenodd"
|
|
103
|
-
}, fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
|
|
104
|
-
fill: "currentColor",
|
|
105
|
-
x: "5.5",
|
|
106
|
-
y: "5.5",
|
|
107
|
-
width: "13",
|
|
108
|
-
height: "13",
|
|
109
|
-
rx: fg('platform-dst-shape-theme-default') ? '2' : '1.5'
|
|
110
|
-
}) : /*#__PURE__*/React.createElement("rect", {
|
|
111
|
-
fill: "currentColor",
|
|
112
|
-
x: "6",
|
|
113
|
-
y: "6",
|
|
114
|
-
width: "12",
|
|
115
|
-
height: "12",
|
|
116
|
-
rx: "2"
|
|
117
|
-
}), icon))
|
|
118
|
-
);
|
|
62
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
63
|
+
width: 24,
|
|
64
|
+
height: 24,
|
|
65
|
+
viewBox: "0 0 24 24",
|
|
66
|
+
style: {
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
68
|
+
color: 'var(--checkbox-background-color)',
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
70
|
+
fill: 'var(--checkbox-tick-color)'
|
|
71
|
+
},
|
|
72
|
+
role: "presentation",
|
|
73
|
+
className: ax(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw"])
|
|
74
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
75
|
+
fillRule: "evenodd"
|
|
76
|
+
}, fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
|
|
77
|
+
fill: "currentColor",
|
|
78
|
+
x: "5.5",
|
|
79
|
+
y: "5.5",
|
|
80
|
+
width: "13",
|
|
81
|
+
height: "13",
|
|
82
|
+
rx: "1.5"
|
|
83
|
+
}) : /*#__PURE__*/React.createElement("rect", {
|
|
84
|
+
fill: "currentColor",
|
|
85
|
+
x: "6",
|
|
86
|
+
y: "6",
|
|
87
|
+
width: "12",
|
|
88
|
+
height: "12",
|
|
89
|
+
rx: "2"
|
|
90
|
+
}), icon));
|
|
119
91
|
});
|
|
120
92
|
export default CheckboxIcon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/checkbox",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.2",
|
|
4
4
|
"description": "A checkbox is an input control that allows a user to select one or more options from a number of choices.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
36
|
"@atlaskit/css": "^0.18.0",
|
|
37
37
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
38
|
-
"@atlaskit/icon": "^29.2.0",
|
|
39
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
39
|
"@atlaskit/theme": "^21.0.0",
|
|
41
40
|
"@atlaskit/tokens": "^8.6.0",
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"@af/visual-regression": "workspace:^",
|
|
52
51
|
"@atlaskit/button": "^23.8.0",
|
|
53
52
|
"@atlaskit/docs": "^11.2.0",
|
|
54
|
-
"@atlaskit/form": "^15.
|
|
53
|
+
"@atlaskit/form": "^15.1.0",
|
|
55
54
|
"@atlaskit/link": "^3.2.0",
|
|
56
55
|
"@atlaskit/primitives": "^16.4.0",
|
|
57
56
|
"@atlaskit/section-message": "^8.11.0",
|
|
@@ -91,9 +90,6 @@
|
|
|
91
90
|
"platform-visual-refresh-icons": {
|
|
92
91
|
"type": "boolean"
|
|
93
92
|
},
|
|
94
|
-
"platform-custom-icon-migration": {
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
},
|
|
97
93
|
"platform-dst-shape-theme-default": {
|
|
98
94
|
"type": "boolean"
|
|
99
95
|
}
|