@atlaskit/textarea 4.2.0 → 4.2.4

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,31 @@
1
1
  # @atlaskit/textarea
2
2
 
3
+ ## 4.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
8
+ - [`af7c289395b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af7c289395b) - Fix TypeScript issue where text area HTML attributes were not exposed in component prop types.
9
+ - Updated dependencies
10
+
11
+ ## 4.2.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 4.2.2
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
23
+ ## 4.2.1
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 4.2.0
4
30
 
5
31
  ### Minor Changes
@@ -7,67 +7,65 @@ exports.transparent = exports.disabledTextColor = exports.textColor = exports.pl
7
7
 
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
 
10
- var _tokens = require("@atlaskit/tokens");
11
-
12
10
  var disabledBackground = {
13
- light: (0, _tokens.token)('color.background.disabled', _colors.N20),
14
- dark: (0, _tokens.token)('color.background.disabled', _colors.DN20)
11
+ light: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
12
+ dark: "var(--ds-background-disabled, ".concat(_colors.DN20, ")")
15
13
  };
16
14
  exports.disabledBackground = disabledBackground;
17
15
  var disabledBorder = {
18
- light: (0, _tokens.token)('color.background.disabled', _colors.N40),
19
- dark: (0, _tokens.token)('color.background.disabled', _colors.DN40)
16
+ light: "var(--ds-background-disabled, ".concat(_colors.N40, ")"),
17
+ dark: "var(--ds-background-disabled, ".concat(_colors.DN40, ")")
20
18
  };
21
19
  exports.disabledBorder = disabledBorder;
22
20
  var invalidBorderColor = {
23
- light: (0, _tokens.token)('color.iconBorder.danger', _colors.R400),
24
- dark: (0, _tokens.token)('color.iconBorder.danger', _colors.R400)
21
+ light: "var(--ds-iconBorder-danger, ".concat(_colors.R400, ")"),
22
+ dark: "var(--ds-iconBorder-danger, ".concat(_colors.R400, ")")
25
23
  };
26
24
  exports.invalidBorderColor = invalidBorderColor;
27
25
  var defaultBorderColor = {
28
- light: (0, _tokens.token)('color.border.neutral', _colors.N40),
29
- dark: (0, _tokens.token)('color.border.neutral', _colors.DN40)
26
+ light: "var(--ds-border-neutral, ".concat(_colors.N40, ")"),
27
+ dark: "var(--ds-border-neutral, ".concat(_colors.DN40, ")")
30
28
  };
31
29
  exports.defaultBorderColor = defaultBorderColor;
32
30
  var defaultBorderColorFocus = {
33
- light: (0, _tokens.token)('color.border.focus', _colors.B100),
34
- dark: (0, _tokens.token)('color.border.focus', _colors.B75)
31
+ light: "var(--ds-border-focus, ".concat(_colors.B100, ")"),
32
+ dark: "var(--ds-border-focus, ".concat(_colors.B75, ")")
35
33
  };
36
34
  exports.defaultBorderColorFocus = defaultBorderColorFocus;
37
35
  var defaultBackgroundColor = {
38
- light: (0, _tokens.token)('color.background.subtleNeutral.resting', _colors.N10),
39
- dark: (0, _tokens.token)('color.background.subtleNeutral.resting', _colors.DN10)
36
+ light: "var(--ds-background-subtleNeutral-resting, ".concat(_colors.N10, ")"),
37
+ dark: "var(--ds-background-subtleNeutral-resting, ".concat(_colors.DN10, ")")
40
38
  };
41
39
  exports.defaultBackgroundColor = defaultBackgroundColor;
42
40
  var defaultBackgroundColorHover = {
43
- light: (0, _tokens.token)('color.background.default', _colors.N30),
44
- dark: (0, _tokens.token)('color.background.default', _colors.DN30)
41
+ light: "var(--ds-background-default, ".concat(_colors.N30, ")"),
42
+ dark: "var(--ds-background-default, ".concat(_colors.DN30, ")")
45
43
  };
46
44
  exports.defaultBackgroundColorHover = defaultBackgroundColorHover;
47
45
  var defaultBackgroundColorFocus = {
48
- light: (0, _tokens.token)('color.background.default', _colors.N0),
49
- dark: (0, _tokens.token)('color.background.default', _colors.DN10)
46
+ light: "var(--ds-background-default, ".concat(_colors.N0, ")"),
47
+ dark: "var(--ds-background-default, ".concat(_colors.DN10, ")")
50
48
  }; // TODO Subtle hover styles not defined in Figma: https://product-fabric.atlassian.net/browse/DSP-1568
51
49
 
52
50
  exports.defaultBackgroundColorFocus = defaultBackgroundColorFocus;
53
51
  var subtleHoverBackgroundColor = {
54
- light: (0, _tokens.token)('color.background.transparentNeutral.hover', _colors.N30),
55
- dark: (0, _tokens.token)('color.background.transparentNeutral.hover', _colors.DN30)
52
+ light: "var(--ds-background-transparentNeutral-hover, ".concat(_colors.N30, ")"),
53
+ dark: "var(--ds-background-transparentNeutral-hover, ".concat(_colors.DN30, ")")
56
54
  };
57
55
  exports.subtleHoverBackgroundColor = subtleHoverBackgroundColor;
58
56
  var placeholderTextColor = {
59
- light: (0, _tokens.token)('color.text.lowEmphasis', _colors.N100),
60
- dark: (0, _tokens.token)('color.text.lowEmphasis', _colors.DN200)
57
+ light: "var(--ds-text-lowEmphasis, ".concat(_colors.N100, ")"),
58
+ dark: "var(--ds-text-lowEmphasis, ".concat(_colors.DN200, ")")
61
59
  };
62
60
  exports.placeholderTextColor = placeholderTextColor;
63
61
  var textColor = {
64
- light: (0, _tokens.token)('color.text.highEmphasis', _colors.N900),
65
- dark: (0, _tokens.token)('color.text.highEmphasis', _colors.DN600)
62
+ light: "var(--ds-text-highEmphasis, ".concat(_colors.N900, ")"),
63
+ dark: "var(--ds-text-highEmphasis, ".concat(_colors.DN600, ")")
66
64
  };
67
65
  exports.textColor = textColor;
68
66
  var disabledTextColor = {
69
- light: (0, _tokens.token)('color.text.disabled', _colors.N70),
70
- dark: (0, _tokens.token)('color.text.disabled', _colors.DN90)
67
+ light: "var(--ds-text-disabled, ".concat(_colors.N70, ")"),
68
+ dark: "var(--ds-text-disabled, ".concat(_colors.DN90, ")")
71
69
  };
72
70
  exports.disabledTextColor = disabledTextColor;
73
71
  var transparent = {
@@ -38,7 +38,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
38
38
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
39
39
 
40
40
  var packageName = "@atlaskit/textarea";
41
- var packageVersion = "4.2.0";
41
+ var packageVersion = "4.2.4";
42
42
  var analyticsParams = {
43
43
  componentName: 'textArea',
44
44
  packageName: packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.2.0",
3
+ "version": "4.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,53 +1,52 @@
1
1
  import { B100, B75, DN10, DN20, DN200, DN30, DN40, DN600, DN90, N0, N10, N100, N20, N30, N40, N70, N900, R400 } from '@atlaskit/theme/colors';
2
- import { token } from '@atlaskit/tokens';
3
2
  export const disabledBackground = {
4
- light: token('color.background.disabled', N20),
5
- dark: token('color.background.disabled', DN20)
3
+ light: `var(--ds-background-disabled, ${N20})`,
4
+ dark: `var(--ds-background-disabled, ${DN20})`
6
5
  };
7
6
  export const disabledBorder = {
8
- light: token('color.background.disabled', N40),
9
- dark: token('color.background.disabled', DN40)
7
+ light: `var(--ds-background-disabled, ${N40})`,
8
+ dark: `var(--ds-background-disabled, ${DN40})`
10
9
  };
11
10
  export const invalidBorderColor = {
12
- light: token('color.iconBorder.danger', R400),
13
- dark: token('color.iconBorder.danger', R400)
11
+ light: `var(--ds-iconBorder-danger, ${R400})`,
12
+ dark: `var(--ds-iconBorder-danger, ${R400})`
14
13
  };
15
14
  export const defaultBorderColor = {
16
- light: token('color.border.neutral', N40),
17
- dark: token('color.border.neutral', DN40)
15
+ light: `var(--ds-border-neutral, ${N40})`,
16
+ dark: `var(--ds-border-neutral, ${DN40})`
18
17
  };
19
18
  export const defaultBorderColorFocus = {
20
- light: token('color.border.focus', B100),
21
- dark: token('color.border.focus', B75)
19
+ light: `var(--ds-border-focus, ${B100})`,
20
+ dark: `var(--ds-border-focus, ${B75})`
22
21
  };
23
22
  export const defaultBackgroundColor = {
24
- light: token('color.background.subtleNeutral.resting', N10),
25
- dark: token('color.background.subtleNeutral.resting', DN10)
23
+ light: `var(--ds-background-subtleNeutral-resting, ${N10})`,
24
+ dark: `var(--ds-background-subtleNeutral-resting, ${DN10})`
26
25
  };
27
26
  export const defaultBackgroundColorHover = {
28
- light: token('color.background.default', N30),
29
- dark: token('color.background.default', DN30)
27
+ light: `var(--ds-background-default, ${N30})`,
28
+ dark: `var(--ds-background-default, ${DN30})`
30
29
  };
31
30
  export const defaultBackgroundColorFocus = {
32
- light: token('color.background.default', N0),
33
- dark: token('color.background.default', DN10)
31
+ light: `var(--ds-background-default, ${N0})`,
32
+ dark: `var(--ds-background-default, ${DN10})`
34
33
  }; // TODO Subtle hover styles not defined in Figma: https://product-fabric.atlassian.net/browse/DSP-1568
35
34
 
36
35
  export const subtleHoverBackgroundColor = {
37
- light: token('color.background.transparentNeutral.hover', N30),
38
- dark: token('color.background.transparentNeutral.hover', DN30)
36
+ light: `var(--ds-background-transparentNeutral-hover, ${N30})`,
37
+ dark: `var(--ds-background-transparentNeutral-hover, ${DN30})`
39
38
  };
40
39
  export const placeholderTextColor = {
41
- light: token('color.text.lowEmphasis', N100),
42
- dark: token('color.text.lowEmphasis', DN200)
40
+ light: `var(--ds-text-lowEmphasis, ${N100})`,
41
+ dark: `var(--ds-text-lowEmphasis, ${DN200})`
43
42
  };
44
43
  export const textColor = {
45
- light: token('color.text.highEmphasis', N900),
46
- dark: token('color.text.highEmphasis', DN600)
44
+ light: `var(--ds-text-highEmphasis, ${N900})`,
45
+ dark: `var(--ds-text-highEmphasis, ${DN600})`
47
46
  };
48
47
  export const disabledTextColor = {
49
- light: token('color.text.disabled', N70),
50
- dark: token('color.text.disabled', DN90)
48
+ light: `var(--ds-text-disabled, ${N70})`,
49
+ dark: `var(--ds-text-disabled, ${DN90})`
51
50
  };
52
51
  export const transparent = {
53
52
  light: 'transparent',
@@ -8,7 +8,7 @@ import GlobalTheme from '@atlaskit/theme/components';
8
8
  import { borderWidth, getBaseStyles, themeStyles } from './styles';
9
9
  import { Theme } from './theme';
10
10
  const packageName = "@atlaskit/textarea";
11
- const packageVersion = "4.2.0";
11
+ const packageVersion = "4.2.4";
12
12
  const analyticsParams = {
13
13
  componentName: 'textArea',
14
14
  packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.2.0",
3
+ "version": "4.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,53 +1,52 @@
1
1
  import { B100, B75, DN10, DN20, DN200, DN30, DN40, DN600, DN90, N0, N10, N100, N20, N30, N40, N70, N900, R400 } from '@atlaskit/theme/colors';
2
- import { token } from '@atlaskit/tokens';
3
2
  export var disabledBackground = {
4
- light: token('color.background.disabled', N20),
5
- dark: token('color.background.disabled', DN20)
3
+ light: "var(--ds-background-disabled, ".concat(N20, ")"),
4
+ dark: "var(--ds-background-disabled, ".concat(DN20, ")")
6
5
  };
7
6
  export var disabledBorder = {
8
- light: token('color.background.disabled', N40),
9
- dark: token('color.background.disabled', DN40)
7
+ light: "var(--ds-background-disabled, ".concat(N40, ")"),
8
+ dark: "var(--ds-background-disabled, ".concat(DN40, ")")
10
9
  };
11
10
  export var invalidBorderColor = {
12
- light: token('color.iconBorder.danger', R400),
13
- dark: token('color.iconBorder.danger', R400)
11
+ light: "var(--ds-iconBorder-danger, ".concat(R400, ")"),
12
+ dark: "var(--ds-iconBorder-danger, ".concat(R400, ")")
14
13
  };
15
14
  export var defaultBorderColor = {
16
- light: token('color.border.neutral', N40),
17
- dark: token('color.border.neutral', DN40)
15
+ light: "var(--ds-border-neutral, ".concat(N40, ")"),
16
+ dark: "var(--ds-border-neutral, ".concat(DN40, ")")
18
17
  };
19
18
  export var defaultBorderColorFocus = {
20
- light: token('color.border.focus', B100),
21
- dark: token('color.border.focus', B75)
19
+ light: "var(--ds-border-focus, ".concat(B100, ")"),
20
+ dark: "var(--ds-border-focus, ".concat(B75, ")")
22
21
  };
23
22
  export var defaultBackgroundColor = {
24
- light: token('color.background.subtleNeutral.resting', N10),
25
- dark: token('color.background.subtleNeutral.resting', DN10)
23
+ light: "var(--ds-background-subtleNeutral-resting, ".concat(N10, ")"),
24
+ dark: "var(--ds-background-subtleNeutral-resting, ".concat(DN10, ")")
26
25
  };
27
26
  export var defaultBackgroundColorHover = {
28
- light: token('color.background.default', N30),
29
- dark: token('color.background.default', DN30)
27
+ light: "var(--ds-background-default, ".concat(N30, ")"),
28
+ dark: "var(--ds-background-default, ".concat(DN30, ")")
30
29
  };
31
30
  export var defaultBackgroundColorFocus = {
32
- light: token('color.background.default', N0),
33
- dark: token('color.background.default', DN10)
31
+ light: "var(--ds-background-default, ".concat(N0, ")"),
32
+ dark: "var(--ds-background-default, ".concat(DN10, ")")
34
33
  }; // TODO Subtle hover styles not defined in Figma: https://product-fabric.atlassian.net/browse/DSP-1568
35
34
 
36
35
  export var subtleHoverBackgroundColor = {
37
- light: token('color.background.transparentNeutral.hover', N30),
38
- dark: token('color.background.transparentNeutral.hover', DN30)
36
+ light: "var(--ds-background-transparentNeutral-hover, ".concat(N30, ")"),
37
+ dark: "var(--ds-background-transparentNeutral-hover, ".concat(DN30, ")")
39
38
  };
40
39
  export var placeholderTextColor = {
41
- light: token('color.text.lowEmphasis', N100),
42
- dark: token('color.text.lowEmphasis', DN200)
40
+ light: "var(--ds-text-lowEmphasis, ".concat(N100, ")"),
41
+ dark: "var(--ds-text-lowEmphasis, ".concat(DN200, ")")
43
42
  };
44
43
  export var textColor = {
45
- light: token('color.text.highEmphasis', N900),
46
- dark: token('color.text.highEmphasis', DN600)
44
+ light: "var(--ds-text-highEmphasis, ".concat(N900, ")"),
45
+ dark: "var(--ds-text-highEmphasis, ".concat(DN600, ")")
47
46
  };
48
47
  export var disabledTextColor = {
49
- light: token('color.text.disabled', N70),
50
- dark: token('color.text.disabled', DN90)
48
+ light: "var(--ds-text-disabled, ".concat(N70, ")"),
49
+ dark: "var(--ds-text-disabled, ".concat(DN90, ")")
51
50
  };
52
51
  export var transparent = {
53
52
  light: 'transparent',
@@ -15,7 +15,7 @@ import GlobalTheme from '@atlaskit/theme/components';
15
15
  import { borderWidth, getBaseStyles, themeStyles } from './styles';
16
16
  import { Theme } from './theme';
17
17
  var packageName = "@atlaskit/textarea";
18
- var packageVersion = "4.2.0";
18
+ var packageVersion = "4.2.4";
19
19
  var analyticsParams = {
20
20
  componentName: 'textArea',
21
21
  packageName: packageName,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.2.0",
3
+ "version": "4.2.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,50 +1,50 @@
1
1
  export declare const disabledBackground: {
2
- light: "var(--background-disabled)";
3
- dark: "var(--background-disabled)";
2
+ light: "var(--ds-background-disabled)";
3
+ dark: "var(--ds-background-disabled)";
4
4
  };
5
5
  export declare const disabledBorder: {
6
- light: "var(--background-disabled)";
7
- dark: "var(--background-disabled)";
6
+ light: "var(--ds-background-disabled)";
7
+ dark: "var(--ds-background-disabled)";
8
8
  };
9
9
  export declare const invalidBorderColor: {
10
- light: "var(--iconBorder-danger)";
11
- dark: "var(--iconBorder-danger)";
10
+ light: "var(--ds-iconBorder-danger)";
11
+ dark: "var(--ds-iconBorder-danger)";
12
12
  };
13
13
  export declare const defaultBorderColor: {
14
- light: "var(--border-neutral)";
15
- dark: "var(--border-neutral)";
14
+ light: "var(--ds-border-neutral)";
15
+ dark: "var(--ds-border-neutral)";
16
16
  };
17
17
  export declare const defaultBorderColorFocus: {
18
- light: "var(--border-focus)";
19
- dark: "var(--border-focus)";
18
+ light: "var(--ds-border-focus)";
19
+ dark: "var(--ds-border-focus)";
20
20
  };
21
21
  export declare const defaultBackgroundColor: {
22
- light: "var(--background-subtleNeutral-resting)";
23
- dark: "var(--background-subtleNeutral-resting)";
22
+ light: "var(--ds-background-subtleNeutral-resting)";
23
+ dark: "var(--ds-background-subtleNeutral-resting)";
24
24
  };
25
25
  export declare const defaultBackgroundColorHover: {
26
- light: "var(--background-default)";
27
- dark: "var(--background-default)";
26
+ light: "var(--ds-background-default)";
27
+ dark: "var(--ds-background-default)";
28
28
  };
29
29
  export declare const defaultBackgroundColorFocus: {
30
- light: "var(--background-default)";
31
- dark: "var(--background-default)";
30
+ light: "var(--ds-background-default)";
31
+ dark: "var(--ds-background-default)";
32
32
  };
33
33
  export declare const subtleHoverBackgroundColor: {
34
- light: "var(--background-transparentNeutral-hover)";
35
- dark: "var(--background-transparentNeutral-hover)";
34
+ light: "var(--ds-background-transparentNeutral-hover)";
35
+ dark: "var(--ds-background-transparentNeutral-hover)";
36
36
  };
37
37
  export declare const placeholderTextColor: {
38
- light: "var(--text-lowEmphasis)";
39
- dark: "var(--text-lowEmphasis)";
38
+ light: "var(--ds-text-lowEmphasis)";
39
+ dark: "var(--ds-text-lowEmphasis)";
40
40
  };
41
41
  export declare const textColor: {
42
- light: "var(--text-highEmphasis)";
43
- dark: "var(--text-highEmphasis)";
42
+ light: "var(--ds-text-highEmphasis)";
43
+ dark: "var(--ds-text-highEmphasis)";
44
44
  };
45
45
  export declare const disabledTextColor: {
46
- light: "var(--text-disabled)";
47
- dark: "var(--text-disabled)";
46
+ light: "var(--ds-text-disabled)";
47
+ dark: "var(--ds-text-disabled)";
48
48
  };
49
49
  export declare const transparent: {
50
50
  light: string;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
- export interface Props extends WithAnalyticsEventsProps {
4
+ export interface OwnProps extends WithAnalyticsEventsProps {
5
5
  /**
6
6
  * controls the appearance of the field.
7
7
  * subtle shows styling on hover.
@@ -61,5 +61,7 @@ export interface Props extends WithAnalyticsEventsProps {
61
61
  * serving as a hook for automated tests */
62
62
  testId?: string;
63
63
  }
64
- declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props, "appearance" | "maxHeight" | "resize" | "minimumRows" | "isMonospaced" | "isCompact" | "isDisabled" | "isReadOnly" | "isRequired" | "isInvalid" | "value" | "defaultValue" | "name" | "placeholder" | "onBlur" | "onChange" | "onFocus" | "spellCheck" | "theme" | "testId" | "createAnalyticsEvent"> & React.RefAttributes<HTMLTextAreaElement>>>;
64
+ declare type Combine<First, Second> = Omit<First, keyof Second> & Second;
65
+ export declare type Props = Combine<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'disabled' | 'required' | 'readonly'>, OwnProps>;
66
+ declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Combine<Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "color" | "hidden" | "style" | "wrap" | "autoComplete" | "autoFocus" | "cols" | "dirName" | "form" | "maxLength" | "minLength" | "name" | "placeholder" | "readOnly" | "rows" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, OwnProps>, "appearance" | "color" | "maxHeight" | "resize" | "hidden" | "style" | "wrap" | "minimumRows" | "isMonospaced" | "autoComplete" | "autoFocus" | "cols" | "dirName" | "form" | "maxLength" | "minLength" | "name" | "placeholder" | "readOnly" | "rows" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "isCompact" | "isDisabled" | "isReadOnly" | "isRequired" | "isInvalid" | "theme" | "testId" | "createAnalyticsEvent"> & React.RefAttributes<HTMLTextAreaElement>>>;
65
67
  export default TextArea;
@@ -31,8 +31,8 @@ export declare type ThemeTokens = {
31
31
  export declare const themeTokens: {
32
32
  borderColor: {
33
33
  standard: {
34
- light: "var(--border-neutral)";
35
- dark: "var(--border-neutral)";
34
+ light: "var(--ds-border-neutral)";
35
+ dark: "var(--ds-border-neutral)";
36
36
  };
37
37
  subtle: {
38
38
  light: string;
@@ -45,12 +45,12 @@ export declare const themeTokens: {
45
45
  };
46
46
  borderColorFocus: {
47
47
  standard: {
48
- light: "var(--border-focus)";
49
- dark: "var(--border-focus)";
48
+ light: "var(--ds-border-focus)";
49
+ dark: "var(--ds-border-focus)";
50
50
  };
51
51
  subtle: {
52
- light: "var(--border-focus)";
53
- dark: "var(--border-focus)";
52
+ light: "var(--ds-border-focus)";
53
+ dark: "var(--ds-border-focus)";
54
54
  };
55
55
  none: {
56
56
  light: string;
@@ -59,8 +59,8 @@ export declare const themeTokens: {
59
59
  };
60
60
  backgroundColor: {
61
61
  standard: {
62
- light: "var(--background-subtleNeutral-resting)";
63
- dark: "var(--background-subtleNeutral-resting)";
62
+ light: "var(--ds-background-subtleNeutral-resting)";
63
+ dark: "var(--ds-background-subtleNeutral-resting)";
64
64
  };
65
65
  subtle: {
66
66
  light: string;
@@ -73,12 +73,12 @@ export declare const themeTokens: {
73
73
  };
74
74
  backgroundColorFocus: {
75
75
  standard: {
76
- light: "var(--background-default)";
77
- dark: "var(--background-default)";
76
+ light: "var(--ds-background-default)";
77
+ dark: "var(--ds-background-default)";
78
78
  };
79
79
  subtle: {
80
- light: "var(--background-default)";
81
- dark: "var(--background-default)";
80
+ light: "var(--ds-background-default)";
81
+ dark: "var(--ds-background-default)";
82
82
  };
83
83
  none: {
84
84
  light: string;
@@ -87,12 +87,12 @@ export declare const themeTokens: {
87
87
  };
88
88
  backgroundColorHover: {
89
89
  standard: {
90
- light: "var(--background-default)";
91
- dark: "var(--background-default)";
90
+ light: "var(--ds-background-default)";
91
+ dark: "var(--ds-background-default)";
92
92
  };
93
93
  subtle: {
94
- light: "var(--background-transparentNeutral-hover)";
95
- dark: "var(--background-transparentNeutral-hover)";
94
+ light: "var(--ds-background-transparentNeutral-hover)";
95
+ dark: "var(--ds-background-transparentNeutral-hover)";
96
96
  };
97
97
  none: {
98
98
  light: string;
@@ -101,45 +101,45 @@ export declare const themeTokens: {
101
101
  };
102
102
  disabledRules: {
103
103
  light: {
104
- backgroundColor: "var(--background-disabled)";
105
- backgroundColorFocus: "var(--background-disabled)";
106
- backgroundColorHover: "var(--background-disabled)";
107
- borderColor: "var(--background-disabled)";
108
- borderColorFocus: "var(--border-focus)";
109
- textColor: "var(--text-disabled)";
104
+ backgroundColor: "var(--ds-background-disabled)";
105
+ backgroundColorFocus: "var(--ds-background-disabled)";
106
+ backgroundColorHover: "var(--ds-background-disabled)";
107
+ borderColor: "var(--ds-background-disabled)";
108
+ borderColorFocus: "var(--ds-border-focus)";
109
+ textColor: "var(--ds-text-disabled)";
110
110
  };
111
111
  dark: {
112
- backgroundColor: "var(--background-disabled)";
113
- backgroundColorFocus: "var(--background-disabled)";
114
- backgroundColorHover: "var(--background-disabled)";
115
- borderColor: "var(--background-disabled)";
116
- borderColorFocus: "var(--border-focus)";
117
- textColor: "var(--text-disabled)";
112
+ backgroundColor: "var(--ds-background-disabled)";
113
+ backgroundColorFocus: "var(--ds-background-disabled)";
114
+ backgroundColorHover: "var(--ds-background-disabled)";
115
+ borderColor: "var(--ds-background-disabled)";
116
+ borderColorFocus: "var(--ds-border-focus)";
117
+ textColor: "var(--ds-text-disabled)";
118
118
  };
119
119
  };
120
120
  invalidRules: {
121
121
  light: {
122
- borderColor: "var(--iconBorder-danger)";
123
- borderColorFocus: "var(--border-focus)";
124
- backgroundColor: "var(--background-subtleNeutral-resting)";
125
- backgroundColorFocus: "var(--background-default)";
126
- backgroundColorHover: "var(--background-default)";
122
+ borderColor: "var(--ds-iconBorder-danger)";
123
+ borderColorFocus: "var(--ds-border-focus)";
124
+ backgroundColor: "var(--ds-background-subtleNeutral-resting)";
125
+ backgroundColorFocus: "var(--ds-background-default)";
126
+ backgroundColorHover: "var(--ds-background-default)";
127
127
  };
128
128
  dark: {
129
- borderColor: "var(--iconBorder-danger)";
130
- borderColorFocus: "var(--border-focus)";
131
- backgroundColor: "var(--background-subtleNeutral-resting)";
132
- backgroundColorFocus: "var(--background-default)";
133
- backgroundColorHover: "var(--background-default)";
129
+ borderColor: "var(--ds-iconBorder-danger)";
130
+ borderColorFocus: "var(--ds-border-focus)";
131
+ backgroundColor: "var(--ds-background-subtleNeutral-resting)";
132
+ backgroundColorFocus: "var(--ds-background-default)";
133
+ backgroundColorHover: "var(--ds-background-default)";
134
134
  };
135
135
  };
136
136
  textColor: {
137
- light: "var(--text-highEmphasis)";
138
- dark: "var(--text-highEmphasis)";
137
+ light: "var(--ds-text-highEmphasis)";
138
+ dark: "var(--ds-text-highEmphasis)";
139
139
  };
140
140
  placeholderTextColor: {
141
- light: "var(--text-lowEmphasis)";
142
- dark: "var(--text-lowEmphasis)";
141
+ light: "var(--ds-text-lowEmphasis)";
142
+ dark: "var(--ds-text-lowEmphasis)";
143
143
  };
144
144
  };
145
145
  export declare const Theme: {
@@ -0,0 +1,5 @@
1
+ import type { OwnProps as Props } from '../src/text-area';
2
+
3
+ export default function TextareaProps(props: Props) {
4
+ return null;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.2.0",
3
+ "version": "4.2.4",
4
4
  "description": "A text area lets users enter long form text which spans over multiple lines.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@atlaskit/analytics-next": "^8.0.0",
29
- "@atlaskit/theme": "^11.4.0",
30
- "@atlaskit/tokens": "^0.1.0",
29
+ "@atlaskit/theme": "^12.0.0",
30
+ "@atlaskit/tokens": "^0.4.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/core": "^10.0.9"
33
33
  },
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/build-utils": "*",
39
39
  "@atlaskit/button": "^16.1.0",
40
40
  "@atlaskit/docs": "*",
41
- "@atlaskit/form": "^8.3.0",
41
+ "@atlaskit/form": "^8.4.0",
42
42
  "@atlaskit/section-message": "^6.1.0",
43
43
  "@atlaskit/ssr": "*",
44
44
  "@atlaskit/visual-regression": "*",
@@ -65,7 +65,10 @@
65
65
  "ui-components": "lite-mode",
66
66
  "analytics": "analytics-next",
67
67
  "theming": "tokens",
68
- "styling": "emotion",
68
+ "styling": [
69
+ "static",
70
+ "emotion"
71
+ ],
69
72
  "deprecation": "no-deprecated-imports"
70
73
  }
71
74
  },