@atlaskit/form 10.3.1 → 10.4.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/README.md +2 -1
  3. package/__perf__/default.tsx +46 -57
  4. package/dist/cjs/field.js +3 -1
  5. package/dist/cjs/fieldset.js +6 -1
  6. package/dist/cjs/form-footer.js +7 -2
  7. package/dist/cjs/form-header.js +6 -1
  8. package/dist/cjs/form-section.js +5 -0
  9. package/dist/cjs/label.js +11 -2
  10. package/dist/cjs/messages.js +5 -0
  11. package/dist/cjs/required-asterisk.js +4 -0
  12. package/dist/es2019/field.js +5 -0
  13. package/dist/es2019/fieldset.js +5 -1
  14. package/dist/es2019/form-footer.js +6 -2
  15. package/dist/es2019/form-header.js +5 -1
  16. package/dist/es2019/form-section.js +4 -0
  17. package/dist/es2019/label.js +10 -2
  18. package/dist/es2019/messages.js +4 -0
  19. package/dist/es2019/required-asterisk.js +4 -0
  20. package/dist/esm/field.js +5 -0
  21. package/dist/esm/fieldset.js +5 -1
  22. package/dist/esm/form-footer.js +6 -2
  23. package/dist/esm/form-header.js +5 -1
  24. package/dist/esm/form-section.js +4 -0
  25. package/dist/esm/label.js +10 -2
  26. package/dist/esm/messages.js +4 -0
  27. package/dist/esm/required-asterisk.js +4 -0
  28. package/dist/types/field.d.ts +3 -0
  29. package/dist/types/fieldset.d.ts +3 -0
  30. package/dist/types/form-footer.d.ts +4 -1
  31. package/dist/types/form-header.d.ts +3 -0
  32. package/dist/types/form-section.d.ts +3 -0
  33. package/dist/types/label.d.ts +3 -0
  34. package/dist/types/messages.d.ts +3 -0
  35. package/dist/types/required-asterisk.d.ts +3 -0
  36. package/dist/types-ts4.5/field.d.ts +3 -0
  37. package/dist/types-ts4.5/fieldset.d.ts +3 -0
  38. package/dist/types-ts4.5/form-footer.d.ts +4 -1
  39. package/dist/types-ts4.5/form-header.d.ts +3 -0
  40. package/dist/types-ts4.5/form-section.d.ts +3 -0
  41. package/dist/types-ts4.5/label.d.ts +3 -0
  42. package/dist/types-ts4.5/messages.d.ts +3 -0
  43. package/dist/types-ts4.5/required-asterisk.d.ts +3 -0
  44. package/extract-react-types/checkbox-field-props.tsx +1 -1
  45. package/extract-react-types/field-props.tsx +1 -1
  46. package/extract-react-types/fieldset-props.tsx +1 -1
  47. package/extract-react-types/form-footer-props.tsx +1 -1
  48. package/extract-react-types/form-header-props.tsx +1 -1
  49. package/extract-react-types/form-props.tsx +1 -1
  50. package/extract-react-types/form-section-props.tsx +1 -1
  51. package/extract-react-types/range-field-props.tsx +1 -1
  52. package/package.json +133 -133
  53. package/report.api.md +144 -181
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/form
2
2
 
3
+ ## 10.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#110670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110670)
8
+ [`c733254a2dd6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c733254a2dd6e) -
9
+ Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
10
+ is implicitly set to automatic.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 10.3.1
4
17
 
5
18
  ### Patch Changes
@@ -38,7 +51,7 @@
38
51
 
39
52
  - [#98612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98612)
40
53
  [`7a11b97d325a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7a11b97d325a) -
41
- Add support for React 18.
54
+ Add support for React 18 in non-strict mode.
42
55
 
43
56
  ### Patch Changes
44
57
 
package/README.md CHANGED
@@ -10,4 +10,5 @@ yarn add @atlaskit/form
10
10
 
11
11
  ## Usage
12
12
 
13
- Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/core/form).
13
+ Detailed docs and example usage can be found
14
+ [here](https://atlaskit.atlassian.com/packages/core/form).
@@ -7,61 +7,50 @@ import TextField from '@atlaskit/textfield';
7
7
  import Form, { ErrorMessage, Field, FormFooter, HelperMessage } from '../src';
8
8
 
9
9
  export default () => (
10
- <div
11
- style={{
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
13
- display: 'flex',
14
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
15
- width: '400px',
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
17
- maxWidth: '100%',
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
19
- margin: '0 auto',
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
21
- flexDirection: 'column',
22
- }}
23
- >
24
- <Form<{ username: string; password: string; remember: boolean }>
25
- onSubmit={(data) => {
26
- return new Promise((resolve) => setTimeout(resolve, 2000)).then(() =>
27
- data.username === 'error' ? { username: 'IN_USE' } : undefined,
28
- );
29
- }}
30
- >
31
- {({ formProps, submitting }) => (
32
- <form {...formProps}>
33
- <Field
34
- name="username"
35
- label="User name"
36
- isRequired
37
- defaultValue="hello"
38
- >
39
- {({ fieldProps, error }) => (
40
- <Fragment>
41
- <TextField autoComplete="off" {...fieldProps} />
42
- {!error && (
43
- <HelperMessage>
44
- You can use letters, numbers & periods.
45
- </HelperMessage>
46
- )}
47
- {error && (
48
- <ErrorMessage>
49
- This user name is already in use, try another one.
50
- </ErrorMessage>
51
- )}
52
- </Fragment>
53
- )}
54
- </Field>
55
- <FormFooter>
56
- <ButtonGroup label="Form submit options">
57
- <Button appearance="subtle">Cancel</Button>
58
- <Button type="submit" appearance="primary" isLoading={submitting}>
59
- Sign up
60
- </Button>
61
- </ButtonGroup>
62
- </FormFooter>
63
- </form>
64
- )}
65
- </Form>
66
- </div>
10
+ <div
11
+ style={{
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
13
+ display: 'flex',
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
15
+ width: '400px',
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
17
+ maxWidth: '100%',
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
19
+ margin: '0 auto',
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
21
+ flexDirection: 'column',
22
+ }}
23
+ >
24
+ <Form<{ username: string; password: string; remember: boolean }>
25
+ onSubmit={(data) => {
26
+ return new Promise((resolve) => setTimeout(resolve, 2000)).then(() =>
27
+ data.username === 'error' ? { username: 'IN_USE' } : undefined,
28
+ );
29
+ }}
30
+ >
31
+ {({ formProps, submitting }) => (
32
+ <form {...formProps}>
33
+ <Field name="username" label="User name" isRequired defaultValue="hello">
34
+ {({ fieldProps, error }) => (
35
+ <Fragment>
36
+ <TextField autoComplete="off" {...fieldProps} />
37
+ {!error && <HelperMessage>You can use letters, numbers & periods.</HelperMessage>}
38
+ {error && (
39
+ <ErrorMessage>This user name is already in use, try another one.</ErrorMessage>
40
+ )}
41
+ </Fragment>
42
+ )}
43
+ </Field>
44
+ <FormFooter>
45
+ <ButtonGroup label="Form submit options">
46
+ <Button appearance="subtle">Cancel</Button>
47
+ <Button type="submit" appearance="primary" isLoading={submitting}>
48
+ Sign up
49
+ </Button>
50
+ </ButtonGroup>
51
+ </FormFooter>
52
+ </form>
53
+ )}
54
+ </Form>
55
+ </div>
67
56
  );
package/dist/cjs/field.js CHANGED
@@ -17,7 +17,9 @@ var _form = require("./form");
17
17
  var _label = require("./label");
18
18
  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
- 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 */
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; } /**
21
+ * @jsxRuntime classic
22
+ */ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
21
23
  var fieldWrapperStyles = (0, _react2.css)({
22
24
  marginBlockStart: "var(--ds-space-100, 8px)"
23
25
  });
@@ -6,10 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _label = require("./label");
9
+ /**
10
+ * @jsxRuntime classic
11
+ */
9
12
  /** @jsx jsx */
10
13
 
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+
11
16
  var fieldSetStyles = (0, _react.css)({
12
- marginTop: "var(--ds-space-100, 8px)"
17
+ marginBlockStart: "var(--ds-space-100, 8px)"
13
18
  });
14
19
 
15
20
  /**
@@ -5,12 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = FormFooter;
7
7
  var _react = require("@emotion/react");
8
+ /**
9
+ * @jsxRuntime classic
10
+ */
8
11
  /** @jsx jsx */
9
12
 
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
+
10
15
  var formFooterWrapperStyles = (0, _react.css)({
11
16
  display: 'flex',
12
- marginTop: "var(--ds-space-300, 24px)",
13
- justifyContent: 'flex-end'
17
+ justifyContent: 'flex-end',
18
+ marginBlockStart: "var(--ds-space-300, 24px)"
14
19
  });
15
20
  var justifyContentStyles = (0, _react.css)({
16
21
  justifyContent: 'flex-start'
@@ -11,8 +11,13 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
11
  var _primitives = require("@atlaskit/primitives");
12
12
  var _constants = require("@atlaskit/theme/constants");
13
13
  var _typography = require("@atlaskit/theme/typography");
14
+ /**
15
+ * @jsxRuntime classic
16
+ */
14
17
  /** @jsx jsx */
15
18
 
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
20
+
16
21
  var fontFamily = (0, _constants.fontFamily)();
17
22
  var formHeaderContentStyles = (0, _primitives.xcss)({
18
23
  minWidth: '100%',
@@ -33,7 +38,7 @@ var formHeaderWrapperStyles = (0, _react.css)({
33
38
  fontFamily: "".concat(fontFamily)
34
39
  });
35
40
 
36
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
41
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
37
42
  var lightH700Styles = (0, _react.css)((0, _typography.h700)({
38
43
  theme: {
39
44
  mode: 'light'
@@ -8,8 +8,13 @@ exports.default = void 0;
8
8
  var _react = require("@emotion/react");
9
9
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
10
10
  var _primitives = require("@atlaskit/primitives");
11
+ /**
12
+ * @jsxRuntime classic
13
+ */
11
14
  /** @jsx jsx */
12
15
 
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
+
13
18
  var formSectionDescriptionStyles = (0, _primitives.xcss)({
14
19
  marginBlockStart: 'space.100'
15
20
  });
package/dist/cjs/label.js CHANGED
@@ -7,8 +7,13 @@ exports.default = exports.Legend = exports.Label = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
9
  var _colors = require("@atlaskit/theme/colors");
10
+ /**
11
+ * @jsxRuntime classic
12
+ */
10
13
  /** @jsx jsx */
11
14
 
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
+
12
17
  var fieldsetLabelStyles = (0, _react.css)({
13
18
  display: 'inline-block',
14
19
  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)",
@@ -38,7 +43,9 @@ var Label = exports.Label = function Label(_ref) {
38
43
  id = _ref.id,
39
44
  testId = _ref.testId;
40
45
  return (0, _react.jsx)("label", {
41
- css: [fieldsetLabelStyles, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles],
46
+ css: [fieldsetLabelStyles,
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
48
+ (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles],
42
49
  id: id,
43
50
  htmlFor: htmlFor,
44
51
  "data-testid": testId
@@ -53,7 +60,9 @@ var Label = exports.Label = function Label(_ref) {
53
60
  var Legend = exports.Legend = function Legend(_ref2) {
54
61
  var children = _ref2.children;
55
62
  return (0, _react.jsx)("legend", {
56
- css: [fieldsetLabelStyles, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles]
63
+ css: [fieldsetLabelStyles,
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
65
+ (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles]
57
66
  }, children);
58
67
  };
59
68
  var _default = exports.default = Label;
@@ -10,8 +10,13 @@ var _success = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/succe
10
10
  var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/error"));
11
11
  var _colors = require("@atlaskit/theme/colors");
12
12
  var _fieldIdContext = require("./field-id-context");
13
+ /**
14
+ * @jsxRuntime classic
15
+ */
13
16
  /** @jsx jsx */
14
17
 
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+
15
20
  /**
16
21
  * API for the internal `<Message />` component. This is not public API.
17
22
  */
@@ -6,7 +6,11 @@ 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
+ /**
10
+ * @jsxRuntime classic
11
+ */
9
12
  /** @jsx jsx */
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
14
 
11
15
  var requiredIndicatorStyles = (0, _react.css)({
12
16
  color: "var(--ds-text-danger, ".concat(_colors.R400, ")"),
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { useContext, useEffect, useMemo, useRef, useState } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { uid } from 'react-uid';
5
10
  import invariant from 'tiny-invariant';
@@ -1,9 +1,13 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import { Legend } from './label';
5
9
  const fieldSetStyles = css({
6
- marginTop: "var(--ds-space-100, 8px)"
10
+ marginBlockStart: "var(--ds-space-100, 8px)"
7
11
  });
8
12
 
9
13
  /**
@@ -1,10 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  const formFooterWrapperStyles = css({
5
9
  display: 'flex',
6
- marginTop: "var(--ds-space-300, 24px)",
7
- justifyContent: 'flex-end'
10
+ justifyContent: 'flex-end',
11
+ marginBlockStart: "var(--ds-space-300, 24px)"
8
12
  });
9
13
  const justifyContentStyles = css({
10
14
  justifyContent: 'flex-start'
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import Heading from '@atlaskit/heading';
5
9
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -26,7 +30,7 @@ const formHeaderWrapperStyles = css({
26
30
  fontFamily: `${fontFamily}`
27
31
  });
28
32
 
29
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
33
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
34
  const lightH700Styles = css(h700({
31
35
  theme: {
32
36
  mode: 'light'
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { jsx } from '@emotion/react';
4
8
  import Heading from '@atlaskit/heading';
5
9
  import { Box, xcss } from '@atlaskit/primitives';
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
9
  import { N200 } from '@atlaskit/theme/colors';
@@ -32,7 +36,9 @@ export const Label = ({
32
36
  id,
33
37
  testId
34
38
  }) => jsx("label", {
35
- css: [fieldsetLabelStyles, getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles],
39
+ css: [fieldsetLabelStyles,
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
41
+ getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles],
36
42
  id: id,
37
43
  htmlFor: htmlFor,
38
44
  "data-testid": testId
@@ -47,7 +53,9 @@ export const Legend = ({
47
53
  children
48
54
  }) => {
49
55
  return jsx("legend", {
50
- css: [fieldsetLabelStyles, getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles]
56
+ css: [fieldsetLabelStyles,
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
58
+ getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles]
51
59
  }, children);
52
60
  };
53
61
  export default Label;
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
5
9
  import ErrorIcon from '@atlaskit/icon/glyph/error';
@@ -1,4 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
6
  import { css, jsx } from '@emotion/react';
3
7
  import { R400 } from '@atlaskit/theme/colors';
4
8
  const requiredIndicatorStyles = css({
package/dist/esm/field.js CHANGED
@@ -3,8 +3,13 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _typeof from "@babel/runtime/helpers/typeof";
4
4
  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; }
5
5
  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) { _defineProperty(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; }
6
+ /**
7
+ * @jsxRuntime classic
8
+ */
6
9
  /** @jsx jsx */
7
10
  import { useContext, useEffect, useMemo, useRef, useState } from 'react';
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
13
  import { css, jsx } from '@emotion/react';
9
14
  import { uid } from 'react-uid';
10
15
  import invariant from 'tiny-invariant';
@@ -1,9 +1,13 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import { Legend } from './label';
5
9
  var fieldSetStyles = css({
6
- marginTop: "var(--ds-space-100, 8px)"
10
+ marginBlockStart: "var(--ds-space-100, 8px)"
7
11
  });
8
12
 
9
13
  /**
@@ -1,10 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  var formFooterWrapperStyles = css({
5
9
  display: 'flex',
6
- marginTop: "var(--ds-space-300, 24px)",
7
- justifyContent: 'flex-end'
10
+ justifyContent: 'flex-end',
11
+ marginBlockStart: "var(--ds-space-300, 24px)"
8
12
  });
9
13
  var justifyContentStyles = css({
10
14
  justifyContent: 'flex-start'
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import Heading from '@atlaskit/heading';
5
9
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -26,7 +30,7 @@ var formHeaderWrapperStyles = css({
26
30
  fontFamily: "".concat(fontFamily)
27
31
  });
28
32
 
29
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
33
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
30
34
  var lightH700Styles = css(h700({
31
35
  theme: {
32
36
  mode: 'light'
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { jsx } from '@emotion/react';
4
8
  import Heading from '@atlaskit/heading';
5
9
  import { Box, xcss } from '@atlaskit/primitives';
package/dist/esm/label.js CHANGED
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
9
  import { N200 } from '@atlaskit/theme/colors';
@@ -32,7 +36,9 @@ export var Label = function Label(_ref) {
32
36
  id = _ref.id,
33
37
  testId = _ref.testId;
34
38
  return jsx("label", {
35
- css: [fieldsetLabelStyles, getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles],
39
+ css: [fieldsetLabelStyles,
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
41
+ getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles],
36
42
  id: id,
37
43
  htmlFor: htmlFor,
38
44
  "data-testid": testId
@@ -47,7 +53,9 @@ export var Label = function Label(_ref) {
47
53
  export var Legend = function Legend(_ref2) {
48
54
  var children = _ref2.children;
49
55
  return jsx("legend", {
50
- css: [fieldsetLabelStyles, getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles]
56
+ css: [fieldsetLabelStyles,
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
58
+ getBooleanFF('platform.design-system-team.form-label-typography-updates') ? newFieldsetLabelStyles : oldFieldsetLabelStyles]
51
59
  }, children);
52
60
  };
53
61
  export default Label;
@@ -1,5 +1,9 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
5
9
  import ErrorIcon from '@atlaskit/icon/glyph/error';
@@ -1,4 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
6
  import { css, jsx } from '@emotion/react';
3
7
  import { R400 } from '@atlaskit/theme/colors';
4
8
  var requiredIndicatorStyles = css({
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type FormEvent, type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -21,4 +24,4 @@ export interface FormFooterProps {
21
24
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout)
22
25
  * - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout)
23
26
  */
24
- export default function FormFooter({ align, children, }: FormFooterProps): jsx.JSX.Element;
27
+ export default function FormFooter({ align, children }: FormFooterProps): jsx.JSX.Element;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type FC, type ReactNode } from 'react';
3
6
  export interface LabelProps {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
6
  export default function RequiredAsterisk(): jsx.JSX.Element;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type FormEvent, type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';