@atlaskit/textarea 5.7.0 → 5.7.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 +8 -0
- package/dist/cjs/styles.js +3 -5
- package/dist/cjs/text-area.js +1 -1
- package/dist/es2019/styles.js +3 -5
- package/dist/es2019/text-area.js +1 -1
- package/dist/esm/styles.js +3 -5
- package/dist/esm/text-area.js +1 -1
- package/package.json +5 -4
- package/types/package.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/textarea
|
|
2
2
|
|
|
3
|
+
## 5.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#98226](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98226)
|
|
8
|
+
[`9c961c3cbcc7f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9c961c3cbcc7f) -
|
|
9
|
+
Internal changes to typography.
|
|
10
|
+
|
|
3
11
|
## 5.7.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/cjs/styles.js
CHANGED
|
@@ -69,8 +69,6 @@ var compactVerticalPadding = 2;
|
|
|
69
69
|
var verticalPadding = 6;
|
|
70
70
|
var horizontalPadding = 8;
|
|
71
71
|
var transitionDuration = '0.2s';
|
|
72
|
-
var fontFamily = "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)";
|
|
73
|
-
var codeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
|
|
74
72
|
var borderWidth = exports.borderWidth = 2;
|
|
75
73
|
|
|
76
74
|
// Safari puts on some difficult to remove styles, mainly for disabled inputs
|
|
@@ -192,7 +190,7 @@ var borderStyle = function borderStyle(appearance) {
|
|
|
192
190
|
var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
|
|
193
191
|
return (0, _react.css)({
|
|
194
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
195
|
-
fontFamily: isMonospaced ?
|
|
193
|
+
fontFamily: isMonospaced ? "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)" : "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
196
194
|
});
|
|
197
195
|
};
|
|
198
196
|
var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
|
|
@@ -258,10 +256,10 @@ var newFontStyles = (0, _react.css)((0, _defineProperty2.default)({
|
|
|
258
256
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
259
257
|
}));
|
|
260
258
|
var monospacedFontFamilyStyles = (0, _react.css)((0, _defineProperty2.default)({
|
|
261
|
-
fontFamily:
|
|
259
|
+
fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
|
|
262
260
|
}, _primitives.media.above.xs, {
|
|
263
261
|
// Reapply the monospaced font family as the font declaration used in the breakpoint in newFontStyles overrides it otherwise
|
|
264
|
-
fontFamily:
|
|
262
|
+
fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
|
|
265
263
|
}));
|
|
266
264
|
var getBaseStyles = exports.getBaseStyles = function getBaseStyles(_ref) {
|
|
267
265
|
var minimumRows = _ref.minimumRows,
|
package/dist/cjs/text-area.js
CHANGED
|
@@ -25,7 +25,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
25
25
|
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; }
|
|
26
26
|
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; }
|
|
27
27
|
var packageName = "@atlaskit/textarea";
|
|
28
|
-
var packageVersion = "5.7.
|
|
28
|
+
var packageVersion = "5.7.1";
|
|
29
29
|
var analyticsParams = {
|
|
30
30
|
componentName: 'textArea',
|
|
31
31
|
packageName: packageName,
|
package/dist/es2019/styles.js
CHANGED
|
@@ -58,8 +58,6 @@ const compactVerticalPadding = 2;
|
|
|
58
58
|
const verticalPadding = 6;
|
|
59
59
|
const horizontalPadding = 8;
|
|
60
60
|
const transitionDuration = '0.2s';
|
|
61
|
-
const fontFamily = "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)";
|
|
62
|
-
const codeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
|
|
63
61
|
export const borderWidth = 2;
|
|
64
62
|
|
|
65
63
|
// Safari puts on some difficult to remove styles, mainly for disabled inputs
|
|
@@ -178,7 +176,7 @@ const borderStyle = appearance => css({
|
|
|
178
176
|
});
|
|
179
177
|
const fontFamilyStyle = isMonospaced => css({
|
|
180
178
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
181
|
-
fontFamily: isMonospaced ?
|
|
179
|
+
fontFamily: isMonospaced ? "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)" : "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
182
180
|
});
|
|
183
181
|
const borderPaddingAndHeightStyles = (minimumRows = 1, appearance) => {
|
|
184
182
|
const borderWidth = appearance !== 'none' ? 1 : 2;
|
|
@@ -245,10 +243,10 @@ const newFontStyles = css({
|
|
|
245
243
|
}
|
|
246
244
|
});
|
|
247
245
|
const monospacedFontFamilyStyles = css({
|
|
248
|
-
fontFamily:
|
|
246
|
+
fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
|
|
249
247
|
[media.above.xs]: {
|
|
250
248
|
// Reapply the monospaced font family as the font declaration used in the breakpoint in newFontStyles overrides it otherwise
|
|
251
|
-
fontFamily:
|
|
249
|
+
fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
|
|
252
250
|
}
|
|
253
251
|
});
|
|
254
252
|
export const getBaseStyles = ({
|
package/dist/es2019/text-area.js
CHANGED
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
11
11
|
import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
|
|
12
12
|
const packageName = "@atlaskit/textarea";
|
|
13
|
-
const packageVersion = "5.7.
|
|
13
|
+
const packageVersion = "5.7.1";
|
|
14
14
|
const analyticsParams = {
|
|
15
15
|
componentName: 'textArea',
|
|
16
16
|
packageName,
|
package/dist/esm/styles.js
CHANGED
|
@@ -61,8 +61,6 @@ var compactVerticalPadding = 2;
|
|
|
61
61
|
var verticalPadding = 6;
|
|
62
62
|
var horizontalPadding = 8;
|
|
63
63
|
var transitionDuration = '0.2s';
|
|
64
|
-
var fontFamily = "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)";
|
|
65
|
-
var codeFontFamily = "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)";
|
|
66
64
|
export var borderWidth = 2;
|
|
67
65
|
|
|
68
66
|
// Safari puts on some difficult to remove styles, mainly for disabled inputs
|
|
@@ -184,7 +182,7 @@ var borderStyle = function borderStyle(appearance) {
|
|
|
184
182
|
var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
|
|
185
183
|
return css({
|
|
186
184
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
187
|
-
fontFamily: isMonospaced ?
|
|
185
|
+
fontFamily: isMonospaced ? "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)" : "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
188
186
|
});
|
|
189
187
|
};
|
|
190
188
|
var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
|
|
@@ -250,10 +248,10 @@ var newFontStyles = css(_defineProperty({
|
|
|
250
248
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
251
249
|
}));
|
|
252
250
|
var monospacedFontFamilyStyles = css(_defineProperty({
|
|
253
|
-
fontFamily:
|
|
251
|
+
fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
|
|
254
252
|
}, media.above.xs, {
|
|
255
253
|
// Reapply the monospaced font family as the font declaration used in the breakpoint in newFontStyles overrides it otherwise
|
|
256
|
-
fontFamily:
|
|
254
|
+
fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
|
|
257
255
|
}));
|
|
258
256
|
export var getBaseStyles = function getBaseStyles(_ref) {
|
|
259
257
|
var minimumRows = _ref.minimumRows,
|
package/dist/esm/text-area.js
CHANGED
|
@@ -16,7 +16,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
16
16
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
17
17
|
import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
|
|
18
18
|
var packageName = "@atlaskit/textarea";
|
|
19
|
-
var packageVersion = "5.7.
|
|
19
|
+
var packageVersion = "5.7.1";
|
|
20
20
|
var analyticsParams = {
|
|
21
21
|
componentName: 'textArea',
|
|
22
22
|
packageName: packageName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/textarea",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.1",
|
|
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/"
|
|
@@ -37,14 +37,15 @@
|
|
|
37
37
|
".": "./src/index.tsx",
|
|
38
38
|
"./component-tokens": "./src/component-tokens.tsx",
|
|
39
39
|
"./styles": "./src/styles.tsx",
|
|
40
|
-
"./text-area": "./src/text-area.tsx"
|
|
40
|
+
"./text-area": "./src/text-area.tsx",
|
|
41
|
+
"./types": "./src/types.tsx"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@atlaskit/analytics-next": "^10.
|
|
44
|
+
"@atlaskit/analytics-next": "^10.2.0",
|
|
44
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
45
46
|
"@atlaskit/primitives": "^13.3.0",
|
|
46
47
|
"@atlaskit/theme": "^14.0.0",
|
|
47
|
-
"@atlaskit/tokens": "^2.
|
|
48
|
+
"@atlaskit/tokens": "^2.5.0",
|
|
48
49
|
"@babel/runtime": "^7.0.0",
|
|
49
50
|
"@emotion/react": "^11.7.1"
|
|
50
51
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/textarea/types",
|
|
3
|
+
"main": "../dist/cjs/types.js",
|
|
4
|
+
"module": "../dist/esm/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/types.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/types.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.4": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/types.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|