@atlaskit/form 8.4.1 → 8.4.5

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,30 @@
1
1
  # @atlaskit/form
2
2
 
3
+ ## 8.4.5
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
+ - Updated dependencies
9
+
10
+ ## 8.4.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 8.4.3
17
+
18
+ ### Patch Changes
19
+
20
+ - [`2cf338dd802`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cf338dd802) - Added homepage to package.json
21
+
22
+ ## 8.4.2
23
+
24
+ ### Patch Changes
25
+
26
+ - [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
27
+
3
28
  ## 8.4.1
4
29
 
5
30
  ### Patch Changes
package/dist/cjs/field.js CHANGED
@@ -32,8 +32,6 @@ var _constants = require("@atlaskit/theme/constants");
32
32
 
33
33
  var _typography = require("@atlaskit/theme/typography");
34
34
 
35
- var _tokens = require("@atlaskit/tokens");
36
-
37
35
  var _form = require("./form");
38
36
 
39
37
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -57,7 +55,7 @@ var labelStyles = (0, _core.css)({
57
55
  });
58
56
  var requiredIndicatorStyles = (0, _core.css)({
59
57
  paddingLeft: "".concat(gridSize * 0.25, "px"),
60
- color: "".concat((0, _tokens.token)('color.text.danger', _colors.R400)),
58
+ color: "".concat("var(--ds-text-danger, ".concat(_colors.R400, ")")),
61
59
  fontFamily: "".concat(fontFamily)
62
60
  }); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
63
61
 
@@ -23,8 +23,6 @@ var _constants = require("@atlaskit/theme/constants");
23
23
 
24
24
  var _typography = require("@atlaskit/theme/typography");
25
25
 
26
- var _tokens = require("@atlaskit/tokens");
27
-
28
26
  var _field = require("./field");
29
27
 
30
28
  /** @jsx jsx */
@@ -43,13 +41,13 @@ var darkH200Styles = (0, _core.css)((0, _typography.h200)({
43
41
  }
44
42
  }));
45
43
  var messageErrorColorStyles = (0, _core.css)({
46
- color: (0, _tokens.token)('color.text.danger', _colors.R400)
44
+ color: "var(--ds-text-danger, ".concat(_colors.R400, ")")
47
45
  });
48
46
  var messageNeutralColorStyles = (0, _core.css)({
49
- color: (0, _tokens.token)('color.text.lowEmphasis', _colors.N200)
47
+ color: "var(--ds-text-lowEmphasis, ".concat(_colors.N200, ")")
50
48
  });
51
49
  var messageValidColorStyles = (0, _core.css)({
52
- color: (0, _tokens.token)('color.text.success', _colors.G400)
50
+ color: "var(--ds-text-success, ".concat(_colors.G400, ")")
53
51
  });
54
52
  var messageStyles = (0, _core.css)({
55
53
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "8.4.1",
3
+ "version": "8.4.5",
4
4
  "sideEffects": false
5
5
  }
@@ -7,7 +7,6 @@ import { R400 } from '@atlaskit/theme/colors';
7
7
  import { useGlobalTheme } from '@atlaskit/theme/components';
8
8
  import { fontFamily as getFontFamily, gridSize as getGridSize } from '@atlaskit/theme/constants';
9
9
  import { h200 } from '@atlaskit/theme/typography';
10
- import { token } from '@atlaskit/tokens';
11
10
  import { FormContext, IsDisabledContext } from './form';
12
11
  const gridSize = getGridSize();
13
12
  const fontFamily = getFontFamily();
@@ -22,7 +21,7 @@ const labelStyles = css({
22
21
  });
23
22
  const requiredIndicatorStyles = css({
24
23
  paddingLeft: `${gridSize * 0.25}px`,
25
- color: `${token('color.text.danger', R400)}`,
24
+ color: `${`var(--ds-text-danger, ${R400})`}`,
26
25
  fontFamily: `${fontFamily}`
27
26
  }); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
28
27
 
@@ -7,7 +7,6 @@ import { G400, N200, R400 } from '@atlaskit/theme/colors';
7
7
  import { useGlobalTheme } from '@atlaskit/theme/components';
8
8
  import { fontFamily as getFontFamily, gridSize as getGridSize } from '@atlaskit/theme/constants';
9
9
  import { h200 } from '@atlaskit/theme/typography';
10
- import { token } from '@atlaskit/tokens';
11
10
  import { FieldId } from './field';
12
11
  const gridSize = getGridSize();
13
12
  const fontFamily = getFontFamily(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
@@ -24,13 +23,13 @@ const darkH200Styles = css(h200({
24
23
  }
25
24
  }));
26
25
  const messageErrorColorStyles = css({
27
- color: token('color.text.danger', R400)
26
+ color: `var(--ds-text-danger, ${R400})`
28
27
  });
29
28
  const messageNeutralColorStyles = css({
30
- color: token('color.text.lowEmphasis', N200)
29
+ color: `var(--ds-text-lowEmphasis, ${N200})`
31
30
  });
32
31
  const messageValidColorStyles = css({
33
- color: token('color.text.success', G400)
32
+ color: `var(--ds-text-success, ${G400})`
34
33
  });
35
34
  const messageStyles = css({
36
35
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "8.4.1",
3
+ "version": "8.4.5",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/field.js CHANGED
@@ -15,7 +15,6 @@ import { R400 } from '@atlaskit/theme/colors';
15
15
  import { useGlobalTheme } from '@atlaskit/theme/components';
16
16
  import { fontFamily as getFontFamily, gridSize as getGridSize } from '@atlaskit/theme/constants';
17
17
  import { h200 } from '@atlaskit/theme/typography';
18
- import { token } from '@atlaskit/tokens';
19
18
  import { FormContext, IsDisabledContext } from './form';
20
19
  var gridSize = getGridSize();
21
20
  var fontFamily = getFontFamily();
@@ -30,7 +29,7 @@ var labelStyles = css({
30
29
  });
31
30
  var requiredIndicatorStyles = css({
32
31
  paddingLeft: "".concat(gridSize * 0.25, "px"),
33
- color: "".concat(token('color.text.danger', R400)),
32
+ color: "".concat("var(--ds-text-danger, ".concat(R400, ")")),
34
33
  fontFamily: "".concat(fontFamily)
35
34
  }); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
36
35
 
@@ -7,7 +7,6 @@ import { G400, N200, R400 } from '@atlaskit/theme/colors';
7
7
  import { useGlobalTheme } from '@atlaskit/theme/components';
8
8
  import { fontFamily as getFontFamily, gridSize as getGridSize } from '@atlaskit/theme/constants';
9
9
  import { h200 } from '@atlaskit/theme/typography';
10
- import { token } from '@atlaskit/tokens';
11
10
  import { FieldId } from './field';
12
11
  var gridSize = getGridSize();
13
12
  var fontFamily = getFontFamily(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
@@ -24,13 +23,13 @@ var darkH200Styles = css(h200({
24
23
  }
25
24
  }));
26
25
  var messageErrorColorStyles = css({
27
- color: token('color.text.danger', R400)
26
+ color: "var(--ds-text-danger, ".concat(R400, ")")
28
27
  });
29
28
  var messageNeutralColorStyles = css({
30
- color: token('color.text.lowEmphasis', N200)
29
+ color: "var(--ds-text-lowEmphasis, ".concat(N200, ")")
31
30
  });
32
31
  var messageValidColorStyles = css({
33
- color: token('color.text.success', G400)
32
+ color: "var(--ds-text-success, ".concat(G400, ")")
34
33
  });
35
34
  var messageStyles = css({
36
35
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "8.4.1",
3
+ "version": "8.4.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "8.4.1",
3
+ "version": "8.4.5",
4
4
  "description": "A form allows users to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,10 +35,11 @@
35
35
  "name": "Form"
36
36
  }
37
37
  },
38
+ "homepage": "https://atlassian.design/components/form/",
38
39
  "dependencies": {
39
40
  "@atlaskit/icon": "^21.9.0",
40
41
  "@atlaskit/theme": "^12.0.0",
41
- "@atlaskit/tokens": "^0.2.0",
42
+ "@atlaskit/tokens": "^0.4.0",
42
43
  "@babel/runtime": "^7.0.0",
43
44
  "@emotion/core": "^10.0.9",
44
45
  "final-form": "^4.20.1",
@@ -55,17 +56,15 @@
55
56
  "@atlaskit/button": "^16.1.0",
56
57
  "@atlaskit/calendar": "^12.1.0",
57
58
  "@atlaskit/checkbox": "^12.3.0",
58
- "@atlaskit/datetime-picker": "^11.0.0",
59
+ "@atlaskit/datetime-picker": "^11.1.0",
59
60
  "@atlaskit/docs": "^9.0.0",
60
- "@atlaskit/dropdown-menu": "^10.1.0",
61
+ "@atlaskit/dropdown-menu": "^11.0.0",
61
62
  "@atlaskit/droplist": "^11.0.0",
62
- "@atlaskit/modal-dialog": "^12.0.0",
63
- "@atlaskit/multi-select": "^15.0.0",
63
+ "@atlaskit/modal-dialog": "^12.2.0",
64
64
  "@atlaskit/radio": "^5.3.0",
65
- "@atlaskit/range": "^5.0.5",
65
+ "@atlaskit/range": "^5.1.0",
66
66
  "@atlaskit/section-message": "^6.1.0",
67
67
  "@atlaskit/select": "^15.2.0",
68
- "@atlaskit/single-select": "^10.0.0",
69
68
  "@atlaskit/ssr": "*",
70
69
  "@atlaskit/textarea": "^4.2.0",
71
70
  "@atlaskit/textfield": "^5.1.0",
@@ -97,10 +96,13 @@
97
96
  "@repo/internal": {
98
97
  "analytics": "analytics-next",
99
98
  "theming": [
100
- "new-theming-api",
99
+ "react-context",
101
100
  "tokens"
102
101
  ],
103
- "styling": "emotion",
102
+ "styling": [
103
+ "static",
104
+ "emotion"
105
+ ],
104
106
  "design-system": "v1",
105
107
  "deprecation": "no-deprecated-imports"
106
108
  }