@atlaskit/form 10.0.0 → 10.1.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 +20 -0
- package/dist/cjs/label.js +6 -13
- package/dist/es2019/label.js +6 -13
- package/dist/esm/label.js +6 -13
- package/dist/types/label.d.ts +1 -1
- package/dist/types-ts4.5/label.d.ts +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/form
|
|
2
2
|
|
|
3
|
+
## 10.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#100993](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100993)
|
|
8
|
+
[`cb7514abb833`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb7514abb833) -
|
|
9
|
+
Typography tokens for form labels.
|
|
10
|
+
|
|
11
|
+
## 10.1.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#98612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98612)
|
|
16
|
+
[`7a11b97d325a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7a11b97d325a) -
|
|
17
|
+
Add support for React 18.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 10.0.0
|
|
4
24
|
|
|
5
25
|
### Major Changes
|
package/dist/cjs/label.js
CHANGED
|
@@ -6,23 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.Legend = exports.Label = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
10
|
-
var _typography = require("@atlaskit/theme/typography");
|
|
11
9
|
/** @jsx jsx */
|
|
12
10
|
|
|
13
|
-
var
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
15
|
-
var fieldsetLabelStyles = (0, _react.css)([(0, _typography.h200)({
|
|
16
|
-
theme: {
|
|
17
|
-
mode: 'light'
|
|
18
|
-
}
|
|
19
|
-
}), {
|
|
11
|
+
var fieldsetLabelStyles = (0, _react.css)({
|
|
20
12
|
display: 'inline-block',
|
|
21
|
-
marginTop: 0,
|
|
22
|
-
marginBottom: "var(--ds-space-050, 4px)",
|
|
23
13
|
color: "var(--ds-text-subtle, ".concat(_colors.N200, ")"),
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
15
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
16
|
+
marginBlockEnd: "var(--ds-space-050, 4px)",
|
|
17
|
+
marginBlockStart: 0
|
|
18
|
+
});
|
|
26
19
|
|
|
27
20
|
/**
|
|
28
21
|
* __Label__
|
package/dist/es2019/label.js
CHANGED
|
@@ -2,21 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
|
-
|
|
6
|
-
import { h200 } from '@atlaskit/theme/typography';
|
|
7
|
-
const fontFamily = getFontFamily();
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
9
|
-
const fieldsetLabelStyles = css([h200({
|
|
10
|
-
theme: {
|
|
11
|
-
mode: 'light'
|
|
12
|
-
}
|
|
13
|
-
}), {
|
|
5
|
+
const fieldsetLabelStyles = css({
|
|
14
6
|
display: 'inline-block',
|
|
15
|
-
marginTop: 0,
|
|
16
|
-
marginBottom: "var(--ds-space-050, 4px)",
|
|
17
7
|
color: `var(--ds-text-subtle, ${N200})`,
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
9
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
10
|
+
marginBlockEnd: "var(--ds-space-050, 4px)",
|
|
11
|
+
marginBlockStart: 0
|
|
12
|
+
});
|
|
20
13
|
|
|
21
14
|
/**
|
|
22
15
|
* __Label__
|
package/dist/esm/label.js
CHANGED
|
@@ -2,21 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
|
-
|
|
6
|
-
import { h200 } from '@atlaskit/theme/typography';
|
|
7
|
-
var fontFamily = getFontFamily();
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
9
|
-
var fieldsetLabelStyles = css([h200({
|
|
10
|
-
theme: {
|
|
11
|
-
mode: 'light'
|
|
12
|
-
}
|
|
13
|
-
}), {
|
|
5
|
+
var fieldsetLabelStyles = css({
|
|
14
6
|
display: 'inline-block',
|
|
15
|
-
marginTop: 0,
|
|
16
|
-
marginBottom: "var(--ds-space-050, 4px)",
|
|
17
7
|
color: "var(--ds-text-subtle, ".concat(N200, ")"),
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
9
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
10
|
+
marginBlockEnd: "var(--ds-space-050, 4px)",
|
|
11
|
+
marginBlockStart: 0
|
|
12
|
+
});
|
|
20
13
|
|
|
21
14
|
/**
|
|
22
15
|
* __Label__
|
package/dist/types/label.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/form",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"description": "A form allows users to input information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,14 +24,15 @@
|
|
|
24
24
|
"website": {
|
|
25
25
|
"name": "Form",
|
|
26
26
|
"category": "Components"
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
|
+
"runReact18": true
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@atlaskit/heading": "^2.2.0",
|
|
31
|
-
"@atlaskit/icon": "^22.
|
|
32
|
-
"@atlaskit/primitives": "^6.
|
|
32
|
+
"@atlaskit/icon": "^22.2.0",
|
|
33
|
+
"@atlaskit/primitives": "^6.2.0",
|
|
33
34
|
"@atlaskit/theme": "^12.8.0",
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
35
|
+
"@atlaskit/tokens": "^1.48.0",
|
|
35
36
|
"@babel/runtime": "^7.0.0",
|
|
36
37
|
"@emotion/react": "^11.7.1",
|
|
37
38
|
"final-form": "^4.20.3",
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
"tiny-invariant": "^1.2.0"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
44
|
-
"react": "^16.8.0"
|
|
45
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@af/accessibility-testing": "*",
|