@atlaskit/form 9.0.3 → 9.0.5
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 +12 -0
- package/dist/cjs/label.js +5 -9
- package/dist/es2019/label.js +7 -12
- package/dist/esm/label.js +3 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/form
|
|
2
2
|
|
|
3
|
+
## 9.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#61141](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61141) [`57a79a328287`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57a79a328287) - Revert the solution with the hidden span in the Label which was merged in scope of DST-11061.
|
|
8
|
+
|
|
9
|
+
## 9.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029) [`b9826ea49c47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9826ea49c47) - Update dependencies that were impacted by HOT-106483 to latest.
|
|
14
|
+
|
|
3
15
|
## 9.0.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/label.js
CHANGED
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Legend = exports.Label = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _react2 = require("@emotion/react");
|
|
7
|
+
var _react = require("@emotion/react");
|
|
9
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
10
|
var _typography = require("@atlaskit/theme/typography");
|
|
@@ -13,7 +12,7 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
13
12
|
|
|
14
13
|
var fontFamily = (0, _constants.fontFamily)();
|
|
15
14
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
16
|
-
var fieldsetLabelStyles = (0,
|
|
15
|
+
var fieldsetLabelStyles = (0, _react.css)([(0, _typography.h200)({
|
|
17
16
|
theme: {
|
|
18
17
|
mode: 'light'
|
|
19
18
|
}
|
|
@@ -38,15 +37,12 @@ var Label = exports.Label = function Label(_ref) {
|
|
|
38
37
|
htmlFor = _ref.htmlFor,
|
|
39
38
|
id = _ref.id,
|
|
40
39
|
testId = _ref.testId;
|
|
41
|
-
return (0,
|
|
42
|
-
hidden: true,
|
|
43
|
-
id: "label--".concat(id || htmlFor)
|
|
44
|
-
}, children), (0, _react2.jsx)("label", {
|
|
40
|
+
return (0, _react.jsx)("label", {
|
|
45
41
|
css: fieldsetLabelStyles,
|
|
46
42
|
id: id,
|
|
47
43
|
htmlFor: htmlFor,
|
|
48
44
|
"data-testid": testId
|
|
49
|
-
}, children)
|
|
45
|
+
}, children);
|
|
50
46
|
};
|
|
51
47
|
|
|
52
48
|
/**
|
|
@@ -56,7 +52,7 @@ var Label = exports.Label = function Label(_ref) {
|
|
|
56
52
|
*/
|
|
57
53
|
var Legend = exports.Legend = function Legend(_ref2) {
|
|
58
54
|
var children = _ref2.children;
|
|
59
|
-
return (0,
|
|
55
|
+
return (0, _react.jsx)("legend", {
|
|
60
56
|
css: fieldsetLabelStyles
|
|
61
57
|
}, children);
|
|
62
58
|
};
|
package/dist/es2019/label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
@@ -31,17 +31,12 @@ export const Label = ({
|
|
|
31
31
|
htmlFor,
|
|
32
32
|
id,
|
|
33
33
|
testId
|
|
34
|
-
}) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
id: id,
|
|
41
|
-
htmlFor: htmlFor,
|
|
42
|
-
"data-testid": testId
|
|
43
|
-
}, children));
|
|
44
|
-
};
|
|
34
|
+
}) => jsx("label", {
|
|
35
|
+
css: fieldsetLabelStyles,
|
|
36
|
+
id: id,
|
|
37
|
+
htmlFor: htmlFor,
|
|
38
|
+
"data-testid": testId
|
|
39
|
+
}, children);
|
|
45
40
|
|
|
46
41
|
/**
|
|
47
42
|
* __Legend__
|
package/dist/esm/label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
|
|
@@ -31,15 +31,12 @@ export var Label = function Label(_ref) {
|
|
|
31
31
|
htmlFor = _ref.htmlFor,
|
|
32
32
|
id = _ref.id,
|
|
33
33
|
testId = _ref.testId;
|
|
34
|
-
return jsx(
|
|
35
|
-
hidden: true,
|
|
36
|
-
id: "label--".concat(id || htmlFor)
|
|
37
|
-
}, children), jsx("label", {
|
|
34
|
+
return jsx("label", {
|
|
38
35
|
css: fieldsetLabelStyles,
|
|
39
36
|
id: id,
|
|
40
37
|
htmlFor: htmlFor,
|
|
41
38
|
"data-testid": testId
|
|
42
|
-
}, children)
|
|
39
|
+
}, children);
|
|
43
40
|
};
|
|
44
41
|
|
|
45
42
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/form",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.5",
|
|
4
4
|
"description": "A form allows users to input information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/icon": "^22.0.0",
|
|
31
31
|
"@atlaskit/theme": "^12.6.0",
|
|
32
|
-
"@atlaskit/tokens": "^1.
|
|
32
|
+
"@atlaskit/tokens": "^1.30.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/react": "^11.7.1",
|
|
35
35
|
"final-form": "^4.20.1",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"@af/accessibility-testing": "*",
|
|
46
46
|
"@af/integration-testing": "*",
|
|
47
47
|
"@af/visual-regression": "*",
|
|
48
|
-
"@atlaskit/button": "^
|
|
48
|
+
"@atlaskit/button": "^17.1.0",
|
|
49
49
|
"@atlaskit/checkbox": "^13.0.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
51
51
|
"@atlaskit/range": "^7.1.0",
|
|
52
|
-
"@atlaskit/select": "^17.0.
|
|
52
|
+
"@atlaskit/select": "^17.0.3",
|
|
53
53
|
"@atlaskit/ssr": "*",
|
|
54
54
|
"@atlaskit/textfield": "^6.0.0",
|
|
55
55
|
"@atlaskit/visual-regression": "*",
|