@atlaskit/textfield 6.0.1 → 6.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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/textfield
|
|
2
2
|
|
|
3
|
+
## 6.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#81644](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81644) [`8ab7a816dca7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ab7a816dca7) - Revert input border change from the previous version
|
|
8
|
+
|
|
9
|
+
## 6.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#80805](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80805) [`427c2dd9e0d6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/427c2dd9e0d6) - [ux] Update input border width from 2px to 1px with darker color to meet 3:1 color contrast
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 6.0.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/text-field.js
CHANGED
|
@@ -16,14 +16,14 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
var _excluded = ["appearance", "className", "elemAfterInput", "elemBeforeInput", "isCompact", "isDisabled", "isInvalid", "isMonospaced", "isReadOnly", "isRequired", "name", "onBlur", "onChange", "onFocus", "onMouseDown", "placeholder", "testId", "width"];
|
|
18
18
|
/** @jsx jsx */
|
|
19
|
-
function _getRequireWildcardCache(
|
|
20
|
-
function _interopRequireWildcard(
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
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; }
|
|
22
22
|
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; }
|
|
23
23
|
var analyticsParams = {
|
|
24
24
|
componentName: 'textField',
|
|
25
25
|
packageName: "@atlaskit/textfield",
|
|
26
|
-
packageVersion: "6.
|
|
26
|
+
packageVersion: "6.1.1"
|
|
27
27
|
};
|
|
28
28
|
var Textfield = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
29
29
|
var _props$appearance = props.appearance,
|
|
@@ -7,7 +7,7 @@ import { containerStyles as getContainerStyles, inputStyles as getInputStyles }
|
|
|
7
7
|
const analyticsParams = {
|
|
8
8
|
componentName: 'textField',
|
|
9
9
|
packageName: "@atlaskit/textfield",
|
|
10
|
-
packageVersion: "6.
|
|
10
|
+
packageVersion: "6.1.1"
|
|
11
11
|
};
|
|
12
12
|
const Textfield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
13
13
|
const {
|
package/dist/esm/text-field.js
CHANGED
|
@@ -13,7 +13,7 @@ import { containerStyles as getContainerStyles, inputStyles as getInputStyles }
|
|
|
13
13
|
var analyticsParams = {
|
|
14
14
|
componentName: 'textField',
|
|
15
15
|
packageName: "@atlaskit/textfield",
|
|
16
|
-
packageVersion: "6.
|
|
16
|
+
packageVersion: "6.1.1"
|
|
17
17
|
};
|
|
18
18
|
var Textfield = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
19
19
|
var _props$appearance = props.appearance,
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { AllHTMLAttributes, FormEventHandler } from 'react';
|
|
2
2
|
export interface TextfieldProps extends Omit<AllHTMLAttributes<HTMLInputElement>, 'disabled'> {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Controls the appearance of the field.
|
|
5
|
+
* Subtle shows styling on hover.
|
|
6
|
+
* None prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions.
|
|
5
7
|
*/
|
|
6
8
|
appearance?: Appearance;
|
|
7
9
|
/**
|
|
@@ -10,7 +12,8 @@ export interface TextfieldProps extends Omit<AllHTMLAttributes<HTMLInputElement>
|
|
|
10
12
|
isCompact?: boolean;
|
|
11
13
|
/**
|
|
12
14
|
* Sets the field as to appear disabled,
|
|
13
|
-
*
|
|
15
|
+
* people will not be able to interact with the text field and it won't appear in the focus order.
|
|
16
|
+
* Wherever possible, prefer using validation and error messaging over disabled fields for a more accessible experience.
|
|
14
17
|
*/
|
|
15
18
|
isDisabled?: boolean;
|
|
16
19
|
/**
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { AllHTMLAttributes, FormEventHandler } from 'react';
|
|
2
2
|
export interface TextfieldProps extends Omit<AllHTMLAttributes<HTMLInputElement>, 'disabled'> {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Controls the appearance of the field.
|
|
5
|
+
* Subtle shows styling on hover.
|
|
6
|
+
* None prevents all field styling. Take care when using the none appearance as this doesn't include accessible interactions.
|
|
5
7
|
*/
|
|
6
8
|
appearance?: Appearance;
|
|
7
9
|
/**
|
|
@@ -10,7 +12,8 @@ export interface TextfieldProps extends Omit<AllHTMLAttributes<HTMLInputElement>
|
|
|
10
12
|
isCompact?: boolean;
|
|
11
13
|
/**
|
|
12
14
|
* Sets the field as to appear disabled,
|
|
13
|
-
*
|
|
15
|
+
* people will not be able to interact with the text field and it won't appear in the focus order.
|
|
16
|
+
* Wherever possible, prefer using validation and error messaging over disabled fields for a more accessible experience.
|
|
14
17
|
*/
|
|
15
18
|
isDisabled?: boolean;
|
|
16
19
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/textfield",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "A text field is an input that allows a user to write or edit text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
31
31
|
"@atlaskit/theme": "^12.6.0",
|
|
32
|
-
"@atlaskit/tokens": "^1.
|
|
32
|
+
"@atlaskit/tokens": "^1.41.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/react": "^11.7.1"
|
|
35
35
|
},
|