@atlaskit/textarea 5.7.0 → 5.7.2
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 +14 -0
- package/dist/cjs/styles.js +6 -8
- package/dist/cjs/text-area.js +1 -1
- package/dist/es2019/styles.js +6 -8
- package/dist/es2019/text-area.js +1 -1
- package/dist/esm/styles.js +6 -8
- 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,19 @@
|
|
|
1
1
|
# @atlaskit/textarea
|
|
2
2
|
|
|
3
|
+
## 5.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#98226](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98226)
|
|
14
|
+
[`9c961c3cbcc7f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9c961c3cbcc7f) -
|
|
15
|
+
Internal changes to typography.
|
|
16
|
+
|
|
3
17
|
## 5.7.0
|
|
4
18
|
|
|
5
19
|
### 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
|
|
@@ -191,8 +189,8 @@ var borderStyle = function borderStyle(appearance) {
|
|
|
191
189
|
};
|
|
192
190
|
var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
|
|
193
191
|
return (0, _react.css)({
|
|
194
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
195
|
-
fontFamily: isMonospaced ?
|
|
192
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
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() {
|
|
@@ -208,7 +206,7 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
|
|
|
208
206
|
minHeight: borderBoxMinHeightCompact(minimumRows, borderHeight),
|
|
209
207
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
210
208
|
padding: "".concat(compactVerticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
|
|
211
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
209
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
212
210
|
lineHeight: lineHeightCompact / 14
|
|
213
211
|
},
|
|
214
212
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -217,7 +215,7 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
|
|
|
217
215
|
minHeight: borderBoxMinHeight(minimumRows, borderHeight),
|
|
218
216
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
219
217
|
padding: "".concat(verticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
|
|
220
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
218
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
221
219
|
lineHeight: lineHeightBase / 14
|
|
222
220
|
}
|
|
223
221
|
});
|
|
@@ -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.2";
|
|
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
|
|
@@ -177,8 +175,8 @@ const borderStyle = appearance => css({
|
|
|
177
175
|
borderStyle: appearance === 'none' ? 'none' : 'solid'
|
|
178
176
|
});
|
|
179
177
|
const fontFamilyStyle = isMonospaced => css({
|
|
180
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
181
|
-
fontFamily: isMonospaced ?
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
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;
|
|
@@ -191,7 +189,7 @@ const borderPaddingAndHeightStyles = (minimumRows = 1, appearance) => {
|
|
|
191
189
|
minHeight: borderBoxMinHeightCompact(minimumRows, borderHeight),
|
|
192
190
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
193
191
|
padding: `${compactVerticalPadding}px ${horizontalPaddingWithoutBorderWidth}px`,
|
|
194
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
192
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
195
193
|
lineHeight: lineHeightCompact / 14
|
|
196
194
|
},
|
|
197
195
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -200,7 +198,7 @@ const borderPaddingAndHeightStyles = (minimumRows = 1, appearance) => {
|
|
|
200
198
|
minHeight: borderBoxMinHeight(minimumRows, borderHeight),
|
|
201
199
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
202
200
|
padding: `${verticalPadding}px ${horizontalPaddingWithoutBorderWidth}px`,
|
|
203
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
201
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
204
202
|
lineHeight: lineHeightBase / 14
|
|
205
203
|
}
|
|
206
204
|
});
|
|
@@ -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.2";
|
|
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
|
|
@@ -183,8 +181,8 @@ var borderStyle = function borderStyle(appearance) {
|
|
|
183
181
|
};
|
|
184
182
|
var fontFamilyStyle = function fontFamilyStyle(isMonospaced) {
|
|
185
183
|
return css({
|
|
186
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
187
|
-
fontFamily: isMonospaced ?
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
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() {
|
|
@@ -200,7 +198,7 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
|
|
|
200
198
|
minHeight: borderBoxMinHeightCompact(minimumRows, borderHeight),
|
|
201
199
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
202
200
|
padding: "".concat(compactVerticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
|
|
203
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
201
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
204
202
|
lineHeight: lineHeightCompact / 14
|
|
205
203
|
},
|
|
206
204
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -209,7 +207,7 @@ var borderPaddingAndHeightStyles = function borderPaddingAndHeightStyles() {
|
|
|
209
207
|
minHeight: borderBoxMinHeight(minimumRows, borderHeight),
|
|
210
208
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
211
209
|
padding: "".concat(verticalPadding, "px ").concat(horizontalPaddingWithoutBorderWidth, "px"),
|
|
212
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
210
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
213
211
|
lineHeight: lineHeightBase / 14
|
|
214
212
|
}
|
|
215
213
|
});
|
|
@@ -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.2";
|
|
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.2",
|
|
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": "^
|
|
48
|
+
"@atlaskit/tokens": "^3.0.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
|
+
}
|