@atlaskit/form 13.0.0 → 14.0.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
+ ## 14.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`a225bfa035441`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a225bfa035441) -
8
+ Adds simplified rendering pattern for the form component. When rendering with JSX as chilren and
9
+ not a function as children, the HTML `form` element will be implicitly rendered with props passed
10
+ down from the ADS form component.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 13.0.0
4
17
 
5
18
  ### Major Changes
package/dist/cjs/field.js CHANGED
@@ -1,4 +1,4 @@
1
- /* field.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* field.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* fieldset.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* fieldset.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* form-footer.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-footer.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* form-header.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-header.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  /* eslint-disable @atlaskit/design-system/use-primitives */
3
3
  "use strict";
4
4
 
@@ -1,4 +1,4 @@
1
- /* form-section.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-section.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
package/dist/cjs/form.js CHANGED
@@ -175,7 +175,7 @@ function Form(props) {
175
175
  })) : children();
176
176
  return result === undefined ? null : result;
177
177
  } else {
178
- return (0, _platformFeatureFlags.fg)('platform_design-system-team_form-upgrade') ? /*#__PURE__*/_react.default.createElement("form", (0, _extends2.default)({}, formProps, userProvidedFormProps), children) : children;
178
+ return /*#__PURE__*/_react.default.createElement("form", (0, _extends2.default)({}, formProps, userProvidedFormProps), children);
179
179
  }
180
180
  }();
181
181
  return /*#__PURE__*/_react.default.createElement(FormContext.Provider, {
package/dist/cjs/label.js CHANGED
@@ -1,4 +1,4 @@
1
- /* label.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* label.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* messages.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* messages.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* required-asterisk.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* required-asterisk.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* field.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* field.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./field.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
@@ -1,4 +1,4 @@
1
- /* fieldset.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* fieldset.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./fieldset.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* form-footer.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-footer.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./form-footer.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* form-header.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-header.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  /* eslint-disable @atlaskit/design-system/use-primitives */
3
3
  import "./form-header.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* form-section.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-section.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./form-section.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -151,7 +151,7 @@ export default function Form(props) {
151
151
  }) : children();
152
152
  return result === undefined ? null : result;
153
153
  } else {
154
- return fg('platform_design-system-team_form-upgrade') ? /*#__PURE__*/React.createElement("form", _extends({}, formProps, userProvidedFormProps), children) : children;
154
+ return /*#__PURE__*/React.createElement("form", _extends({}, formProps, userProvidedFormProps), children);
155
155
  }
156
156
  })();
157
157
  return /*#__PURE__*/React.createElement(FormContext.Provider, {
@@ -1,4 +1,4 @@
1
- /* label.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* label.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./label.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* messages.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* messages.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./messages.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* required-asterisk.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* required-asterisk.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./required-asterisk.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
package/dist/esm/field.js CHANGED
@@ -1,4 +1,4 @@
1
- /* field.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* field.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import _typeof from "@babel/runtime/helpers/typeof";
@@ -1,4 +1,4 @@
1
- /* fieldset.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* fieldset.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./fieldset.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* form-footer.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-footer.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./form-footer.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* form-header.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-header.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  /* eslint-disable @atlaskit/design-system/use-primitives */
3
3
  import "./form-header.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* form-section.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* form-section.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./form-section.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
package/dist/esm/form.js CHANGED
@@ -165,7 +165,7 @@ export default function Form(props) {
165
165
  })) : children();
166
166
  return result === undefined ? null : result;
167
167
  } else {
168
- return fg('platform_design-system-team_form-upgrade') ? /*#__PURE__*/React.createElement("form", _extends({}, formProps, userProvidedFormProps), children) : children;
168
+ return /*#__PURE__*/React.createElement("form", _extends({}, formProps, userProvidedFormProps), children);
169
169
  }
170
170
  }();
171
171
  return /*#__PURE__*/React.createElement(FormContext.Provider, {
package/dist/esm/label.js CHANGED
@@ -1,4 +1,4 @@
1
- /* label.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* label.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./label.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* messages.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* messages.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import "./messages.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* required-asterisk.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* required-asterisk.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./required-asterisk.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "13.0.0",
3
+ "version": "14.0.0",
4
4
  "description": "A form allows users to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@atlaskit/css": "^0.14.0",
29
- "@atlaskit/ds-lib": "^5.0.0",
29
+ "@atlaskit/ds-lib": "^5.1.0",
30
30
  "@atlaskit/heading": "^5.2.0",
31
31
  "@atlaskit/icon": "^28.2.0",
32
32
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -110,9 +110,6 @@
110
110
  "platform_dst_form_screenreader_message_fix": {
111
111
  "type": "boolean"
112
112
  },
113
- "platform_design-system-team_form-upgrade": {
114
- "type": "boolean"
115
- },
116
113
  "platform_design-system-team_field-upgrade": {
117
114
  "type": "boolean"
118
115
  },