@atlaskit/form 9.1.1 → 9.2.0

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/form
2
2
 
3
+ ## 9.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#89977](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89977) [`4922acfee53b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4922acfee53b) - Typography tokens for RequiredAsterisk.
8
+
9
+ ## 9.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#68248](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68248) [`22e0fd4f6694`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22e0fd4f6694) - Move the onBlur event from the input to the input container in `DatePicker`.
14
+ Add the type `aria-describedby` in to Field component.
15
+
3
16
  ## 9.1.1
4
17
 
5
18
  ### Patch Changes
package/dist/cjs/field.js CHANGED
@@ -19,7 +19,7 @@ var _requiredAsterisk = _interopRequireDefault(require("./required-asterisk"));
19
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
21
21
  var fieldWrapperStyles = (0, _react2.css)({
22
- marginTop: "var(--ds-space-100, 8px)"
22
+ marginBlockStart: "var(--ds-space-100, 8px)"
23
23
  });
24
24
  function isEvent(event) {
25
25
  return Boolean(event && event.target);
@@ -6,14 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = RequiredAsterisk;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
- var _constants = require("@atlaskit/theme/constants");
10
9
  /** @jsx jsx */
11
10
 
12
- var fontFamily = (0, _constants.fontFamily)();
13
11
  var requiredIndicatorStyles = (0, _react.css)({
14
- paddingLeft: "var(--ds-space-025, 2px)",
15
12
  color: "var(--ds-text-danger, ".concat(_colors.R400, ")"),
16
- fontFamily: fontFamily
13
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
14
+ paddingInlineStart: "var(--ds-space-025, 2px)"
17
15
  });
18
16
  function RequiredAsterisk() {
19
17
  return (0, _react.jsx)("span", {
@@ -8,7 +8,7 @@ import { FormContext, IsDisabledContext } from './form';
8
8
  import { Label } from './label';
9
9
  import RequiredAsterisk from './required-asterisk';
10
10
  const fieldWrapperStyles = css({
11
- marginTop: "var(--ds-space-100, 8px)"
11
+ marginBlockStart: "var(--ds-space-100, 8px)"
12
12
  });
13
13
  function isEvent(event) {
14
14
  return Boolean(event && event.target);
@@ -1,12 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { R400 } from '@atlaskit/theme/colors';
4
- import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
5
- const fontFamily = getFontFamily();
6
4
  const requiredIndicatorStyles = css({
7
- paddingLeft: "var(--ds-space-025, 2px)",
8
5
  color: `var(--ds-text-danger, ${R400})`,
9
- fontFamily
6
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
7
+ paddingInlineStart: "var(--ds-space-025, 2px)"
10
8
  });
11
9
  export default function RequiredAsterisk() {
12
10
  return jsx("span", {
package/dist/esm/field.js CHANGED
@@ -13,7 +13,7 @@ import { FormContext, IsDisabledContext } from './form';
13
13
  import { Label } from './label';
14
14
  import RequiredAsterisk from './required-asterisk';
15
15
  var fieldWrapperStyles = css({
16
- marginTop: "var(--ds-space-100, 8px)"
16
+ marginBlockStart: "var(--ds-space-100, 8px)"
17
17
  });
18
18
  function isEvent(event) {
19
19
  return Boolean(event && event.target);
@@ -1,12 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { R400 } from '@atlaskit/theme/colors';
4
- import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
5
- var fontFamily = getFontFamily();
6
4
  var requiredIndicatorStyles = css({
7
- paddingLeft: "var(--ds-space-025, 2px)",
8
5
  color: "var(--ds-text-danger, ".concat(R400, ")"),
9
- fontFamily: fontFamily
6
+ fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
7
+ paddingInlineStart: "var(--ds-space-025, 2px)"
10
8
  });
11
9
  export default function RequiredAsterisk() {
12
10
  return jsx("span", {
@@ -14,6 +14,7 @@ export interface FieldProps<FieldValue, Element extends SupportedElements = HTML
14
14
  name: string;
15
15
  'aria-invalid': 'true' | 'false';
16
16
  'aria-labelledby': string;
17
+ 'aria-describedby'?: string;
17
18
  }
18
19
  export interface Meta {
19
20
  dirty: boolean;
@@ -14,6 +14,7 @@ export interface FieldProps<FieldValue, Element extends SupportedElements = HTML
14
14
  name: string;
15
15
  'aria-invalid': 'true' | 'false';
16
16
  'aria-labelledby': string;
17
+ 'aria-describedby'?: string;
17
18
  }
18
19
  export interface Meta {
19
20
  dirty: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
4
4
  "description": "A form allows users to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -47,9 +47,11 @@
47
47
  "@af/integration-testing": "*",
48
48
  "@af/visual-regression": "*",
49
49
  "@atlaskit/banner": "^12.2.0",
50
- "@atlaskit/button": "^17.11.0",
50
+ "@atlaskit/button": "^17.12.0",
51
51
  "@atlaskit/checkbox": "^13.1.0",
52
52
  "@atlaskit/ds-lib": "^2.2.0",
53
+ "@atlaskit/modal-dialog": "*",
54
+ "@atlaskit/radio": "*",
53
55
  "@atlaskit/range": "^7.1.0",
54
56
  "@atlaskit/select": "^17.6.0",
55
57
  "@atlaskit/ssr": "*",