@atlaskit/textarea 4.3.9 → 4.3.11

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,17 @@
1
1
  # @atlaskit/textarea
2
2
 
3
+ ## 4.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bedbdec0e82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bedbdec0e82) - Update hover state appearance of subtle Textarea, Textfield and Select components to match the hover states of their default counterparts.
8
+
9
+ ## 4.3.10
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
14
+
3
15
  ## 4.3.9
4
16
 
5
17
  ### Patch Changes
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/component-tokens.js",
5
5
  "module:es2019": "../dist/es2019/component-tokens.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/component-tokens.d.ts"
7
+ "types": "../dist/types/component-tokens.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/component-tokens.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.transparent = exports.textColor = exports.subtleHoverBackgroundColor = exports.placeholderTextColor = exports.invalidBorderColor = exports.disabledTextColor = exports.disabledBorder = exports.disabledBackground = exports.defaultBorderColorFocus = exports.defaultBorderColor = exports.defaultBackgroundColorHover = exports.defaultBackgroundColorFocus = exports.defaultBackgroundColor = void 0;
6
+ exports.transparent = exports.textColor = exports.subtleBorderColorHover = exports.placeholderTextColor = exports.invalidBorderColor = exports.disabledTextColor = exports.disabledBorder = exports.disabledBackground = exports.defaultBorderColorFocus = exports.defaultBorderColor = exports.defaultBackgroundColorHover = exports.defaultBackgroundColorFocus = exports.defaultBackgroundColor = void 0;
7
7
 
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
 
@@ -47,11 +47,11 @@ var defaultBackgroundColorFocus = {
47
47
  dark: "var(--ds-background-input-pressed, ".concat(_colors.DN10, ")")
48
48
  };
49
49
  exports.defaultBackgroundColorFocus = defaultBackgroundColorFocus;
50
- var subtleHoverBackgroundColor = {
51
- light: "var(--ds-background-input-hovered, ".concat(_colors.N30, ")"),
52
- dark: "var(--ds-background-input-hovered, ".concat(_colors.DN30, ")")
50
+ var subtleBorderColorHover = {
51
+ light: "var(--ds-border-input, transparent)",
52
+ dark: "var(--ds-border-input, transparent)"
53
53
  };
54
- exports.subtleHoverBackgroundColor = subtleHoverBackgroundColor;
54
+ exports.subtleBorderColorHover = subtleBorderColorHover;
55
55
  var placeholderTextColor = {
56
56
  light: "var(--ds-text-subtlest, ".concat(_colors.N100, ")"),
57
57
  dark: "var(--ds-text-subtlest, ".concat(_colors.DN200, ")")
@@ -82,10 +82,11 @@ var placeholderStyle = function placeholderStyle(placeholderTextColor) {
82
82
  };
83
83
  };
84
84
 
85
- var hoverBackgroundStyle = function hoverBackgroundStyle(props) {
85
+ var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(props) {
86
86
  return {
87
87
  '&:hover:not(:read-only):not(:focus)': {
88
88
  backgroundColor: props.backgroundColorHover,
89
+ borderColor: props.borderColorHover,
89
90
  '&:disabled': {
90
91
  backgroundColor: props.disabledRules.backgroundColorHover
91
92
  },
@@ -150,7 +151,7 @@ var staticStyles = {
150
151
  borderRadius: borderRadius,
151
152
  boxSizing: 'border-box',
152
153
  overflow: 'auto',
153
- transition: "background-color ".concat(transitionDuration, " ease-in-out"),
154
+ transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
154
155
  wordWrap: 'break-word',
155
156
  fontSize: fontSize,
156
157
  borderWidth: borderWidth,
@@ -185,7 +186,7 @@ var getBaseStyles = function getBaseStyles(_ref) {
185
186
  exports.getBaseStyles = getBaseStyles;
186
187
 
187
188
  var themeStyles = function themeStyles(props) {
188
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)), hoverBackgroundStyle(props)), placeholderStyle(props.placeholderTextColor)), {}, {
189
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)), hoverBackgroundAndBorderStyles(props)), placeholderStyle(props.placeholderTextColor)), {}, {
189
190
  color: props.textColor,
190
191
  '&:disabled': {
191
192
  color: props.disabledRules.textColor
@@ -40,7 +40,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
40
40
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
41
41
 
42
42
  var packageName = "@atlaskit/textarea";
43
- var packageVersion = "4.3.9";
43
+ var packageVersion = "4.3.11";
44
44
  var analyticsParams = {
45
45
  componentName: 'textArea',
46
46
  packageName: packageName,
package/dist/cjs/theme.js CHANGED
@@ -61,7 +61,7 @@ var backgroundColorFocus = {
61
61
  };
62
62
  var backgroundColorHover = {
63
63
  standard: componentTokens.defaultBackgroundColorHover,
64
- subtle: componentTokens.subtleHoverBackgroundColor,
64
+ subtle: componentTokens.defaultBackgroundColorHover,
65
65
  none: componentTokens.transparent
66
66
  };
67
67
  var borderColor = {
@@ -74,6 +74,11 @@ var borderColorFocus = {
74
74
  subtle: componentTokens.defaultBorderColorFocus,
75
75
  none: componentTokens.transparent
76
76
  };
77
+ var borderColorHover = {
78
+ standard: componentTokens.defaultBorderColor,
79
+ subtle: componentTokens.subtleBorderColorHover,
80
+ none: componentTokens.transparent
81
+ };
77
82
 
78
83
  /**
79
84
  * @deprecated
@@ -104,6 +109,7 @@ var Theme = (0, _components.createTheme)(function (_ref) {
104
109
  return {
105
110
  borderColor: borderColor[appearance][mode],
106
111
  borderColorFocus: borderColorFocus[appearance][mode],
112
+ borderColorHover: borderColorHover[appearance][mode],
107
113
  backgroundColorHover: backgroundColorHover[appearance][mode],
108
114
  backgroundColorFocus: backgroundColorFocus[appearance][mode],
109
115
  backgroundColor: backgroundColor[appearance][mode],
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.3.9",
3
+ "version": "4.3.11",
4
4
  "sideEffects": false
5
5
  }
@@ -31,9 +31,9 @@ export const defaultBackgroundColorFocus = {
31
31
  light: `var(--ds-background-input-pressed, ${N0})`,
32
32
  dark: `var(--ds-background-input-pressed, ${DN10})`
33
33
  };
34
- export const subtleHoverBackgroundColor = {
35
- light: `var(--ds-background-input-hovered, ${N30})`,
36
- dark: `var(--ds-background-input-hovered, ${DN30})`
34
+ export const subtleBorderColorHover = {
35
+ light: "var(--ds-border-input, transparent)",
36
+ dark: "var(--ds-border-input, transparent)"
37
37
  };
38
38
  export const placeholderTextColor = {
39
39
  light: `var(--ds-text-subtlest, ${N100})`,
@@ -62,10 +62,11 @@ const placeholderStyle = placeholderTextColor => ({
62
62
  }
63
63
  });
64
64
 
65
- const hoverBackgroundStyle = props => {
65
+ const hoverBackgroundAndBorderStyles = props => {
66
66
  return {
67
67
  '&:hover:not(:read-only):not(:focus)': {
68
68
  backgroundColor: props.backgroundColorHover,
69
+ borderColor: props.borderColorHover,
69
70
  '&:disabled': {
70
71
  backgroundColor: props.disabledRules.backgroundColorHover
71
72
  },
@@ -125,7 +126,8 @@ const staticStyles = {
125
126
  borderRadius: borderRadius,
126
127
  boxSizing: 'border-box',
127
128
  overflow: 'auto',
128
- transition: `background-color ${transitionDuration} ease-in-out`,
129
+ transition: `background-color ${transitionDuration} ease-in-out,
130
+ border-color ${transitionDuration} ease-in-out`,
129
131
  wordWrap: 'break-word',
130
132
  fontSize,
131
133
  borderWidth: borderWidth,
@@ -161,7 +163,7 @@ export const getBaseStyles = ({
161
163
  });
162
164
  export const themeStyles = props => {
163
165
  return { ...bgAndBorderColorStyles(props),
164
- ...hoverBackgroundStyle(props),
166
+ ...hoverBackgroundAndBorderStyles(props),
165
167
  ...placeholderStyle(props.placeholderTextColor),
166
168
  color: props.textColor,
167
169
  '&:disabled': {
@@ -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.3.9";
11
+ const packageVersion = "4.3.11";
12
12
  const analyticsParams = {
13
13
  componentName: 'textArea',
14
14
  packageName,
@@ -46,7 +46,7 @@ const backgroundColorFocus = {
46
46
  };
47
47
  const backgroundColorHover = {
48
48
  standard: componentTokens.defaultBackgroundColorHover,
49
- subtle: componentTokens.subtleHoverBackgroundColor,
49
+ subtle: componentTokens.defaultBackgroundColorHover,
50
50
  none: componentTokens.transparent
51
51
  };
52
52
  const borderColor = {
@@ -59,6 +59,11 @@ const borderColorFocus = {
59
59
  subtle: componentTokens.defaultBorderColorFocus,
60
60
  none: componentTokens.transparent
61
61
  };
62
+ const borderColorHover = {
63
+ standard: componentTokens.defaultBorderColor,
64
+ subtle: componentTokens.subtleBorderColorHover,
65
+ none: componentTokens.transparent
66
+ };
62
67
 
63
68
  /**
64
69
  * @deprecated
@@ -88,6 +93,7 @@ export const Theme = createTheme(({
88
93
  }) => ({
89
94
  borderColor: borderColor[appearance][mode],
90
95
  borderColorFocus: borderColorFocus[appearance][mode],
96
+ borderColorHover: borderColorHover[appearance][mode],
91
97
  backgroundColorHover: backgroundColorHover[appearance][mode],
92
98
  backgroundColorFocus: backgroundColorFocus[appearance][mode],
93
99
  backgroundColor: backgroundColor[appearance][mode],
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.3.9",
3
+ "version": "4.3.11",
4
4
  "sideEffects": false
5
5
  }
@@ -31,9 +31,9 @@ export var defaultBackgroundColorFocus = {
31
31
  light: "var(--ds-background-input-pressed, ".concat(N0, ")"),
32
32
  dark: "var(--ds-background-input-pressed, ".concat(DN10, ")")
33
33
  };
34
- export var subtleHoverBackgroundColor = {
35
- light: "var(--ds-background-input-hovered, ".concat(N30, ")"),
36
- dark: "var(--ds-background-input-hovered, ".concat(DN30, ")")
34
+ export var subtleBorderColorHover = {
35
+ light: "var(--ds-border-input, transparent)",
36
+ dark: "var(--ds-border-input, transparent)"
37
37
  };
38
38
  export var placeholderTextColor = {
39
39
  light: "var(--ds-text-subtlest, ".concat(N100, ")"),
@@ -72,10 +72,11 @@ var placeholderStyle = function placeholderStyle(placeholderTextColor) {
72
72
  };
73
73
  };
74
74
 
75
- var hoverBackgroundStyle = function hoverBackgroundStyle(props) {
75
+ var hoverBackgroundAndBorderStyles = function hoverBackgroundAndBorderStyles(props) {
76
76
  return {
77
77
  '&:hover:not(:read-only):not(:focus)': {
78
78
  backgroundColor: props.backgroundColorHover,
79
+ borderColor: props.borderColorHover,
79
80
  '&:disabled': {
80
81
  backgroundColor: props.disabledRules.backgroundColorHover
81
82
  },
@@ -140,7 +141,7 @@ var staticStyles = {
140
141
  borderRadius: borderRadius,
141
142
  boxSizing: 'border-box',
142
143
  overflow: 'auto',
143
- transition: "background-color ".concat(transitionDuration, " ease-in-out"),
144
+ transition: "background-color ".concat(transitionDuration, " ease-in-out,\n border-color ").concat(transitionDuration, " ease-in-out"),
144
145
  wordWrap: 'break-word',
145
146
  fontSize: fontSize,
146
147
  borderWidth: borderWidth,
@@ -171,7 +172,7 @@ export var getBaseStyles = function getBaseStyles(_ref) {
171
172
  });
172
173
  };
173
174
  export var themeStyles = function themeStyles(props) {
174
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)), hoverBackgroundStyle(props)), placeholderStyle(props.placeholderTextColor)), {}, {
175
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bgAndBorderColorStyles(props)), hoverBackgroundAndBorderStyles(props)), placeholderStyle(props.placeholderTextColor)), {}, {
175
176
  color: props.textColor,
176
177
  '&:disabled': {
177
178
  color: props.disabledRules.textColor
@@ -16,7 +16,7 @@ import GlobalTheme from '@atlaskit/theme/components';
16
16
  import { borderWidth, getBaseStyles, themeStyles } from './styles';
17
17
  import { Theme } from './theme';
18
18
  var packageName = "@atlaskit/textarea";
19
- var packageVersion = "4.3.9";
19
+ var packageVersion = "4.3.11";
20
20
  var analyticsParams = {
21
21
  componentName: 'textArea',
22
22
  packageName: packageName,
package/dist/esm/theme.js CHANGED
@@ -46,7 +46,7 @@ var backgroundColorFocus = {
46
46
  };
47
47
  var backgroundColorHover = {
48
48
  standard: componentTokens.defaultBackgroundColorHover,
49
- subtle: componentTokens.subtleHoverBackgroundColor,
49
+ subtle: componentTokens.defaultBackgroundColorHover,
50
50
  none: componentTokens.transparent
51
51
  };
52
52
  var borderColor = {
@@ -59,6 +59,11 @@ var borderColorFocus = {
59
59
  subtle: componentTokens.defaultBorderColorFocus,
60
60
  none: componentTokens.transparent
61
61
  };
62
+ var borderColorHover = {
63
+ standard: componentTokens.defaultBorderColor,
64
+ subtle: componentTokens.subtleBorderColorHover,
65
+ none: componentTokens.transparent
66
+ };
62
67
 
63
68
  /**
64
69
  * @deprecated
@@ -88,6 +93,7 @@ export var Theme = createTheme(function (_ref) {
88
93
  return {
89
94
  borderColor: borderColor[appearance][mode],
90
95
  borderColorFocus: borderColorFocus[appearance][mode],
96
+ borderColorHover: borderColorHover[appearance][mode],
91
97
  backgroundColorHover: backgroundColorHover[appearance][mode],
92
98
  backgroundColorFocus: backgroundColorFocus[appearance][mode],
93
99
  backgroundColor: backgroundColor[appearance][mode],
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.3.9",
3
+ "version": "4.3.11",
4
4
  "sideEffects": false
5
5
  }
@@ -30,9 +30,9 @@ export declare const defaultBackgroundColorFocus: {
30
30
  light: "var(--ds-background-input-pressed)";
31
31
  dark: "var(--ds-background-input-pressed)";
32
32
  };
33
- export declare const subtleHoverBackgroundColor: {
34
- light: "var(--ds-background-input-hovered)";
35
- dark: "var(--ds-background-input-hovered)";
33
+ export declare const subtleBorderColorHover: {
34
+ light: "var(--ds-border-input)";
35
+ dark: "var(--ds-border-input)";
36
36
  };
37
37
  export declare const placeholderTextColor: {
38
38
  light: "var(--ds-text-subtlest)";
@@ -103,5 +103,5 @@ export declare type TextAreaProps = Combine<Omit<React.TextareaHTMLAttributes<HT
103
103
  * - [Code](https://atlassian.design/components/textarea/code)
104
104
  * - [Usage](https://atlassian.design/components/textarea/usage)
105
105
  */
106
- declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TextAreaProps, "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>>>;
106
+ declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TextAreaProps, "appearance" | "color" | "maxHeight" | "resize" | "hidden" | "style" | "wrap" | "minimumRows" | "isMonospaced" | "isCompact" | "isDisabled" | "isReadOnly" | "isRequired" | "isInvalid" | "value" | "defaultValue" | "name" | "placeholder" | "onBlur" | "onChange" | "onFocus" | "spellCheck" | "theme" | "testId" | "autoComplete" | "autoFocus" | "cols" | "dirName" | "form" | "maxLength" | "minLength" | "readOnly" | "rows" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "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" | "onFocusCapture" | "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" | "createAnalyticsEvent"> & React.RefAttributes<HTMLTextAreaElement>>>;
107
107
  export default TextArea;
@@ -16,6 +16,7 @@ export declare type ThemeProps = {
16
16
  export declare type ThemeTokens = {
17
17
  borderColor: string;
18
18
  borderColorFocus: string;
19
+ borderColorHover: string;
19
20
  backgroundColor: string;
20
21
  backgroundColorFocus: string;
21
22
  backgroundColorHover: string;
@@ -0,0 +1,52 @@
1
+ export declare const disabledBackground: {
2
+ light: "var(--ds-background-disabled)";
3
+ dark: "var(--ds-background-disabled)";
4
+ };
5
+ export declare const disabledBorder: {
6
+ light: "var(--ds-border-disabled)";
7
+ dark: "var(--ds-border-disabled)";
8
+ };
9
+ export declare const invalidBorderColor: {
10
+ light: "var(--ds-border-danger)";
11
+ dark: "var(--ds-border-danger)";
12
+ };
13
+ export declare const defaultBorderColor: {
14
+ light: "var(--ds-border-input)";
15
+ dark: "var(--ds-border-input)";
16
+ };
17
+ export declare const defaultBorderColorFocus: {
18
+ light: "var(--ds-border-focused)";
19
+ dark: "var(--ds-border-focused)";
20
+ };
21
+ export declare const defaultBackgroundColor: {
22
+ light: "var(--ds-background-input)";
23
+ dark: "var(--ds-background-input)";
24
+ };
25
+ export declare const defaultBackgroundColorHover: {
26
+ light: "var(--ds-background-input-hovered)";
27
+ dark: "var(--ds-background-input-hovered)";
28
+ };
29
+ export declare const defaultBackgroundColorFocus: {
30
+ light: "var(--ds-background-input-pressed)";
31
+ dark: "var(--ds-background-input-pressed)";
32
+ };
33
+ export declare const subtleBorderColorHover: {
34
+ light: "var(--ds-border-input)";
35
+ dark: "var(--ds-border-input)";
36
+ };
37
+ export declare const placeholderTextColor: {
38
+ light: "var(--ds-text-subtlest)";
39
+ dark: "var(--ds-text-subtlest)";
40
+ };
41
+ export declare const textColor: {
42
+ light: "var(--ds-text)";
43
+ dark: "var(--ds-text)";
44
+ };
45
+ export declare const disabledTextColor: {
46
+ light: "var(--ds-text-disabled)";
47
+ dark: "var(--ds-text-disabled)";
48
+ };
49
+ export declare const transparent: {
50
+ light: string;
51
+ dark: string;
52
+ };
@@ -0,0 +1,3 @@
1
+ export { default } from './text-area';
2
+ export { Theme, themeTokens } from './theme';
3
+ export type { ThemeAppearance, ThemeProps, ThemeTokens } from './theme';
@@ -0,0 +1,13 @@
1
+ /** @jsx jsx */
2
+ import { CSSObject } from '@emotion/core';
3
+ import { ThemeTokens } from './theme';
4
+ export interface StyleProps {
5
+ minimumRows: number | undefined;
6
+ resize: string | undefined;
7
+ appearance: string | undefined;
8
+ isMonospaced: boolean | undefined;
9
+ maxHeight: string;
10
+ }
11
+ export declare const borderWidth = 2;
12
+ export declare const getBaseStyles: ({ minimumRows, resize, appearance, isMonospaced, maxHeight, }: StyleProps) => CSSObject;
13
+ export declare const themeStyles: (props: ThemeTokens) => CSSObject;
@@ -0,0 +1,107 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
+ export interface OwnProps extends WithAnalyticsEventsProps {
5
+ /**
6
+ * controls the appearance of the field.
7
+ * subtle shows styling on hover.
8
+ * none prevents all field styling.
9
+ */
10
+ appearance?: 'standard' | 'subtle' | 'none';
11
+ /**
12
+ * Set whether the fields should expand to fill available horizontal space.
13
+ */
14
+ isCompact?: boolean;
15
+ /**
16
+ * Sets the field as uneditable, with a changed hover state.
17
+ */
18
+ isDisabled?: boolean;
19
+ /**
20
+ * If true, prevents the value of the input from being edited.
21
+ */
22
+ isReadOnly?: boolean;
23
+ /**
24
+ * Set required for form that the field is part of.
25
+ */
26
+ isRequired?: boolean;
27
+ /**
28
+ * Sets styling to indicate that the input is invalid.
29
+ */
30
+ isInvalid?: boolean;
31
+ /**
32
+ * The minimum number of rows of text to display
33
+ */
34
+ minimumRows?: number;
35
+ /**
36
+ * The maxheight of the textarea
37
+ */
38
+ maxHeight?: string;
39
+ /**
40
+ * The value of the text-area.
41
+ */
42
+ value?: string;
43
+ /**
44
+ * The default value of the textarea
45
+ */
46
+ defaultValue?: string;
47
+ /**
48
+ * Name of the input form control
49
+ */
50
+ name?: string;
51
+ /**
52
+ * The placeholder within the textarea
53
+ */
54
+ placeholder?: string;
55
+ /**
56
+ * Handler to be called when the input is blurred
57
+ */
58
+ onBlur?: React.FocusEventHandler<HTMLTextAreaElement>;
59
+ /**
60
+ * Handler to be called when the input changes.
61
+ */
62
+ onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
63
+ /**
64
+ * Handler to be called when the input is focused
65
+ */
66
+ onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
67
+ /**
68
+ * Sets content text value to monospace
69
+ */
70
+ isMonospaced?: boolean;
71
+ /**
72
+ * Enables the resizing of the textarea:
73
+ * auto: both directions.
74
+ * horizontal: only along the x axis.
75
+ * vertical: only along the y axis.
76
+ * smart (default): vertically grows and shrinks the textarea automatically to wrap your input text.
77
+ * none: explicitly disallow resizing on the textarea.
78
+ */
79
+ resize?: 'auto' | 'vertical' | 'horizontal' | 'smart' | 'none';
80
+ /**
81
+ * Enables native spell check on the `textarea` element.
82
+ */
83
+ spellCheck?: boolean;
84
+ /**
85
+ * The theme function TextArea consumes to derive theming constants for use in styling its components
86
+ */
87
+ theme?: any;
88
+ /**
89
+ * A `testId` prop is provided for specified elements, which is a unique
90
+ * string that appears as a data attribute `data-testid` in the rendered code,
91
+ * serving as a hook for automated tests
92
+ */
93
+ testId?: string;
94
+ }
95
+ declare type Combine<First, Second> = Omit<First, keyof Second> & Second;
96
+ export declare type TextAreaProps = Combine<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'disabled' | 'required' | 'readonly'>, OwnProps>;
97
+ /**
98
+ * __Text area__
99
+ *
100
+ * A text area lets users enter long form text which spans over multiple lines.
101
+ *
102
+ * - [Examples](https://atlassian.design/components/textarea/examples)
103
+ * - [Code](https://atlassian.design/components/textarea/code)
104
+ * - [Usage](https://atlassian.design/components/textarea/usage)
105
+ */
106
+ declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<TextAreaProps, "appearance" | "color" | "maxHeight" | "resize" | "hidden" | "style" | "wrap" | "minimumRows" | "isMonospaced" | "isCompact" | "isDisabled" | "isReadOnly" | "isRequired" | "isInvalid" | "value" | "defaultValue" | "name" | "placeholder" | "onBlur" | "onChange" | "onFocus" | "spellCheck" | "theme" | "testId" | "autoComplete" | "autoFocus" | "cols" | "dirName" | "form" | "maxLength" | "minLength" | "readOnly" | "rows" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "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" | "onFocusCapture" | "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" | "createAnalyticsEvent"> & React.RefAttributes<HTMLTextAreaElement>>>;
107
+ export default TextArea;
@@ -0,0 +1,174 @@
1
+ /// <reference types="react" />
2
+ export declare type ThemeAppearance = 'standard' | 'subtle' | 'none';
3
+ export declare type ThemeProps = {
4
+ appearance: ThemeAppearance;
5
+ /**
6
+ * @deprecated
7
+ * Mode is deprecated and will be deleted in the future.
8
+ */
9
+ mode: 'dark' | 'light';
10
+ };
11
+ /**
12
+ * @deprecated
13
+ * Component-level theming is deprecated in the design system.
14
+ * Components should respect the global theme.
15
+ */
16
+ export declare type ThemeTokens = {
17
+ borderColor: string;
18
+ borderColorFocus: string;
19
+ borderColorHover: string;
20
+ backgroundColor: string;
21
+ backgroundColorFocus: string;
22
+ backgroundColorHover: string;
23
+ disabledRules: {
24
+ backgroundColor: string;
25
+ backgroundColorFocus: string;
26
+ backgroundColorHover: string;
27
+ borderColor: string;
28
+ borderColorFocus: string;
29
+ textColor: string;
30
+ };
31
+ invalidRules: {
32
+ borderColor: string;
33
+ borderColorFocus: string;
34
+ backgroundColor: string;
35
+ backgroundColorFocus: string;
36
+ backgroundColorHover: string;
37
+ };
38
+ textColor: string;
39
+ placeholderTextColor: string;
40
+ };
41
+ /**
42
+ * @deprecated
43
+ * Component-level theming is deprecated in the design system.
44
+ * Components should respect the global theme.
45
+ */
46
+ export declare const themeTokens: {
47
+ borderColor: {
48
+ standard: {
49
+ light: "var(--ds-border-input)";
50
+ dark: "var(--ds-border-input)";
51
+ };
52
+ subtle: {
53
+ light: string;
54
+ dark: string;
55
+ };
56
+ none: {
57
+ light: string;
58
+ dark: string;
59
+ };
60
+ };
61
+ borderColorFocus: {
62
+ standard: {
63
+ light: "var(--ds-border-focused)";
64
+ dark: "var(--ds-border-focused)";
65
+ };
66
+ subtle: {
67
+ light: "var(--ds-border-focused)";
68
+ dark: "var(--ds-border-focused)";
69
+ };
70
+ none: {
71
+ light: string;
72
+ dark: string;
73
+ };
74
+ };
75
+ backgroundColor: {
76
+ standard: {
77
+ light: "var(--ds-background-input)";
78
+ dark: "var(--ds-background-input)";
79
+ };
80
+ subtle: {
81
+ light: string;
82
+ dark: string;
83
+ };
84
+ none: {
85
+ light: string;
86
+ dark: string;
87
+ };
88
+ };
89
+ backgroundColorFocus: {
90
+ standard: {
91
+ light: "var(--ds-background-input-pressed)";
92
+ dark: "var(--ds-background-input-pressed)";
93
+ };
94
+ subtle: {
95
+ light: "var(--ds-background-input-pressed)";
96
+ dark: "var(--ds-background-input-pressed)";
97
+ };
98
+ none: {
99
+ light: string;
100
+ dark: string;
101
+ };
102
+ };
103
+ backgroundColorHover: {
104
+ standard: {
105
+ light: "var(--ds-background-input-hovered)";
106
+ dark: "var(--ds-background-input-hovered)";
107
+ };
108
+ subtle: {
109
+ light: "var(--ds-background-input-hovered)";
110
+ dark: "var(--ds-background-input-hovered)";
111
+ };
112
+ none: {
113
+ light: string;
114
+ dark: string;
115
+ };
116
+ };
117
+ disabledRules: {
118
+ light: {
119
+ backgroundColor: "var(--ds-background-disabled)";
120
+ backgroundColorFocus: "var(--ds-background-disabled)";
121
+ backgroundColorHover: "var(--ds-background-disabled)";
122
+ borderColor: "var(--ds-border-disabled)";
123
+ borderColorFocus: "var(--ds-border-focused)";
124
+ textColor: "var(--ds-text-disabled)";
125
+ };
126
+ dark: {
127
+ backgroundColor: "var(--ds-background-disabled)";
128
+ backgroundColorFocus: "var(--ds-background-disabled)";
129
+ backgroundColorHover: "var(--ds-background-disabled)";
130
+ borderColor: "var(--ds-border-disabled)";
131
+ borderColorFocus: "var(--ds-border-focused)";
132
+ textColor: "var(--ds-text-disabled)";
133
+ };
134
+ };
135
+ invalidRules: {
136
+ light: {
137
+ borderColor: "var(--ds-border-danger)";
138
+ borderColorFocus: "var(--ds-border-focused)";
139
+ backgroundColor: "var(--ds-background-input)";
140
+ backgroundColorFocus: "var(--ds-background-input-pressed)";
141
+ backgroundColorHover: "var(--ds-background-input-hovered)";
142
+ };
143
+ dark: {
144
+ borderColor: "var(--ds-border-danger)";
145
+ borderColorFocus: "var(--ds-border-focused)";
146
+ backgroundColor: "var(--ds-background-input)";
147
+ backgroundColorFocus: "var(--ds-background-input-pressed)";
148
+ backgroundColorHover: "var(--ds-background-input-hovered)";
149
+ };
150
+ };
151
+ textColor: {
152
+ light: "var(--ds-text)";
153
+ dark: "var(--ds-text)";
154
+ };
155
+ placeholderTextColor: {
156
+ light: "var(--ds-text-subtlest)";
157
+ dark: "var(--ds-text-subtlest)";
158
+ };
159
+ };
160
+ /**
161
+ * @deprecated
162
+ * Component-level theming is deprecated in the design system.
163
+ * Components should respect the global theme.
164
+ */
165
+ export declare const Theme: {
166
+ Consumer: import("react").ComponentType<{
167
+ children: (tokens: ThemeTokens) => import("react").ReactNode;
168
+ } & ThemeProps>;
169
+ Provider: import("react").ComponentType<{
170
+ children?: import("react").ReactNode;
171
+ value?: import("@atlaskit/theme/components").ThemeProp<ThemeTokens, ThemeProps> | undefined;
172
+ }>;
173
+ useTheme: (props: ThemeProps) => ThemeTokens;
174
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textarea",
3
- "version": "4.3.9",
3
+ "version": "4.3.11",
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/"
@@ -12,6 +12,13 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.0 <4.5": {
17
+ "*": [
18
+ "dist/types-ts4.0/*"
19
+ ]
20
+ }
21
+ },
15
22
  "sideEffects": false,
16
23
  "atlaskit:src": "src/index.tsx",
17
24
  "homepage": "https://atlassian.design/components/textarea/",
@@ -32,7 +39,7 @@
32
39
  },
33
40
  "dependencies": {
34
41
  "@atlaskit/analytics-next": "^8.0.0",
35
- "@atlaskit/theme": "^12.1.0",
42
+ "@atlaskit/theme": "^12.2.0",
36
43
  "@atlaskit/tokens": "^0.10.0",
37
44
  "@babel/runtime": "^7.0.0",
38
45
  "@emotion/core": "^10.0.9"
@@ -45,17 +52,17 @@
45
52
  "@atlaskit/docs": "*",
46
53
  "@atlaskit/ds-lib": "^2.1.0",
47
54
  "@atlaskit/form": "^8.5.0",
48
- "@atlaskit/section-message": "^6.1.0",
55
+ "@atlaskit/section-message": "^6.2.0",
49
56
  "@atlaskit/ssr": "*",
50
57
  "@atlaskit/visual-regression": "*",
51
58
  "@atlaskit/webdriver-runner": "*",
52
59
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
53
- "@testing-library/dom": "^7.7.3",
54
- "@testing-library/react": "^8.0.1",
60
+ "@testing-library/dom": "^8.17.1",
61
+ "@testing-library/react": "^12.1.5",
55
62
  "jscodeshift": "^0.13.0",
56
63
  "react-dom": "^16.8.0",
57
64
  "storybook-addon-performance": "^0.16.0",
58
- "typescript": "4.3.5",
65
+ "typescript": "4.5.5",
59
66
  "wait-for-expect": "^1.2.0"
60
67
  },
61
68
  "keywords": [
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/styles.js",
5
5
  "module:es2019": "../dist/es2019/styles.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/styles.d.ts"
7
+ "types": "../dist/types/styles.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/styles.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/text-area.js",
5
5
  "module:es2019": "../dist/es2019/text-area.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/text-area.d.ts"
7
+ "types": "../dist/types/text-area.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/text-area.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/theme.js",
5
5
  "module:es2019": "../dist/es2019/theme.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/theme.d.ts"
7
+ "types": "../dist/types/theme.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/theme.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }