@atlaskit/form 10.6.2 → 11.0.0

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/field.compiled.css +1 -0
  3. package/dist/cjs/field.js +15 -14
  4. package/dist/cjs/fieldset.compiled.css +1 -0
  5. package/dist/cjs/fieldset.js +11 -14
  6. package/dist/cjs/form-footer.compiled.css +4 -0
  7. package/dist/cjs/form-footer.js +15 -18
  8. package/dist/cjs/form-header.compiled.css +2 -0
  9. package/dist/cjs/form-header.js +16 -21
  10. package/dist/cjs/form-section.compiled.css +2 -0
  11. package/dist/cjs/form-section.js +17 -21
  12. package/dist/cjs/label.compiled.css +6 -0
  13. package/dist/cjs/label.js +15 -21
  14. package/dist/cjs/messages.compiled.css +10 -0
  15. package/dist/cjs/messages.js +34 -48
  16. package/dist/cjs/range-field.js +15 -13
  17. package/dist/cjs/required-asterisk.compiled.css +3 -0
  18. package/dist/cjs/required-asterisk.js +13 -16
  19. package/dist/es2019/field.compiled.css +1 -0
  20. package/dist/es2019/field.js +10 -15
  21. package/dist/es2019/fieldset.compiled.css +1 -0
  22. package/dist/es2019/fieldset.js +8 -13
  23. package/dist/es2019/form-footer.compiled.css +4 -0
  24. package/dist/es2019/form-footer.js +12 -17
  25. package/dist/es2019/form-header.compiled.css +2 -0
  26. package/dist/es2019/form-header.js +16 -20
  27. package/dist/es2019/form-section.compiled.css +2 -0
  28. package/dist/es2019/form-section.js +17 -20
  29. package/dist/es2019/label.compiled.css +6 -0
  30. package/dist/es2019/label.js +12 -20
  31. package/dist/es2019/messages.compiled.css +10 -0
  32. package/dist/es2019/messages.js +28 -47
  33. package/dist/es2019/range-field.js +21 -24
  34. package/dist/es2019/required-asterisk.compiled.css +3 -0
  35. package/dist/es2019/required-asterisk.js +10 -15
  36. package/dist/esm/field.compiled.css +1 -0
  37. package/dist/esm/field.js +10 -15
  38. package/dist/esm/fieldset.compiled.css +1 -0
  39. package/dist/esm/fieldset.js +8 -13
  40. package/dist/esm/form-footer.compiled.css +4 -0
  41. package/dist/esm/form-footer.js +12 -17
  42. package/dist/esm/form-header.compiled.css +2 -0
  43. package/dist/esm/form-header.js +16 -20
  44. package/dist/esm/form-section.compiled.css +2 -0
  45. package/dist/esm/form-section.js +17 -20
  46. package/dist/esm/label.compiled.css +6 -0
  47. package/dist/esm/label.js +12 -20
  48. package/dist/esm/messages.compiled.css +10 -0
  49. package/dist/esm/messages.js +30 -47
  50. package/dist/esm/range-field.js +15 -13
  51. package/dist/esm/required-asterisk.compiled.css +3 -0
  52. package/dist/esm/required-asterisk.js +10 -15
  53. package/dist/types/field.d.ts +1 -2
  54. package/dist/types/fieldset.d.ts +1 -2
  55. package/dist/types/form-footer.d.ts +1 -2
  56. package/dist/types/form-header.d.ts +1 -6
  57. package/dist/types/form-section.d.ts +1 -6
  58. package/dist/types/messages.d.ts +4 -5
  59. package/dist/types/required-asterisk.d.ts +2 -2
  60. package/dist/types-ts4.5/field.d.ts +1 -2
  61. package/dist/types-ts4.5/fieldset.d.ts +1 -2
  62. package/dist/types-ts4.5/form-footer.d.ts +1 -2
  63. package/dist/types-ts4.5/form-header.d.ts +1 -6
  64. package/dist/types-ts4.5/form-section.d.ts +1 -6
  65. package/dist/types-ts4.5/messages.d.ts +4 -5
  66. package/dist/types-ts4.5/required-asterisk.d.ts +2 -2
  67. package/package.json +11 -11
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
6
  import { type Align } from './types';
8
7
  export interface FormFooterProps {
9
8
  /**
@@ -24,4 +23,4 @@ export interface FormFooterProps {
24
23
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout)
25
24
  * - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout)
26
25
  */
27
- export default function FormFooter({ align, children }: FormFooterProps): jsx.JSX.Element;
26
+ export default function FormFooter({ align, children }: FormFooterProps): JSX.Element;
@@ -1,9 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
2
  export interface FormHeaderProps {
8
3
  /**
9
4
  * Title of the form. This is a header.
@@ -28,5 +23,5 @@ export interface FormHeaderProps {
28
23
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout)
29
24
  * - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout).
30
25
  */
31
- declare const FormHeader: ({ children, description, title }: FormHeaderProps) => jsx.JSX.Element;
26
+ declare const FormHeader: ({ children, description, title }: FormHeaderProps) => JSX.Element;
32
27
  export default FormHeader;
@@ -1,9 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
2
  export interface FormSectionProps {
8
3
  /**
9
4
  * Title of the form section.
@@ -28,5 +23,5 @@ export interface FormSectionProps {
28
23
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout)
29
24
  * - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout).
30
25
  */
31
- declare const FormSection: ({ children, description, title }: FormSectionProps) => jsx.JSX.Element;
26
+ declare const FormSection: ({ children, description, title }: FormSectionProps) => JSX.Element;
32
27
  export default FormSection;
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { type ReactNode } from 'react';
6
- import { jsx } from '@emotion/react';
7
6
  type MessageAppearance = 'default' | 'error' | 'valid';
8
7
  /**
9
8
  * API for the internal `<Message />` component. This is not public API.
@@ -36,7 +35,7 @@ type MessageProps = Pick<InternalMessageProps, 'children' | 'testId'>;
36
35
  * 'Password should be more than 4 characters'
37
36
  *
38
37
  */
39
- export declare const HelperMessage: ({ children, testId }: MessageProps) => jsx.JSX.Element;
38
+ export declare const HelperMessage: ({ children, testId }: MessageProps) => JSX.Element;
40
39
  /**
41
40
  * __Error message__
42
41
  *
@@ -44,7 +43,7 @@ export declare const HelperMessage: ({ children, testId }: MessageProps) => jsx.
44
43
  * 'Invalid username, needs to be more than 4 characters'.
45
44
  *
46
45
  */
47
- export declare const ErrorMessage: ({ children, testId }: MessageProps) => jsx.JSX.Element;
46
+ export declare const ErrorMessage: ({ children, testId }: MessageProps) => JSX.Element;
48
47
  /**
49
48
  * __Valid message__
50
49
  *
@@ -52,7 +51,7 @@ export declare const ErrorMessage: ({ children, testId }: MessageProps) => jsx.J
52
51
  * a helper message could be 'Nice one, this username is available'.
53
52
  *
54
53
  */
55
- export declare const ValidMessage: ({ children, testId }: MessageProps) => jsx.JSX.Element;
54
+ export declare const ValidMessage: ({ children, testId }: MessageProps) => JSX.Element;
56
55
  /**
57
56
  * __Message wrapper context__
58
57
  *
@@ -71,5 +70,5 @@ export declare const MessageWrapperContext: import("react").Context<{
71
70
  * may not render the message.
72
71
  *
73
72
  */
74
- export declare const MessageWrapper: ({ children }: MessageProps) => jsx.JSX.Element;
73
+ export declare const MessageWrapper: ({ children }: MessageProps) => JSX.Element;
75
74
  export {};
@@ -1,6 +1,6 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @jsxRuntime classic
3
4
  * @jsx jsx
4
5
  */
5
- import { jsx } from '@emotion/react';
6
- export default function RequiredAsterisk(): jsx.JSX.Element;
6
+ export default function RequiredAsterisk(): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "10.6.2",
3
+ "version": "11.0.0",
4
4
  "description": "A form allows users to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,14 +26,15 @@
26
26
  "runReact18": true
27
27
  },
28
28
  "dependencies": {
29
+ "@atlaskit/css": "^0.7.0",
29
30
  "@atlaskit/ds-lib": "^3.3.0",
30
31
  "@atlaskit/heading": "^4.0.0",
31
- "@atlaskit/icon": "^23.0.0",
32
+ "@atlaskit/icon": "^23.1.0",
32
33
  "@atlaskit/primitives": "^13.3.0",
33
34
  "@atlaskit/theme": "^14.0.0",
34
- "@atlaskit/tokens": "^2.4.0",
35
+ "@atlaskit/tokens": "^2.5.0",
35
36
  "@babel/runtime": "^7.0.0",
36
- "@emotion/react": "^11.7.1",
37
+ "@compiled/react": "^0.18.1",
37
38
  "final-form": "^4.20.3",
38
39
  "final-form-focus": "^1.1.2",
39
40
  "lodash": "^4.17.21",
@@ -50,12 +51,12 @@
50
51
  "@atlaskit/button": "^20.3.0",
51
52
  "@atlaskit/checkbox": "^15.2.0",
52
53
  "@atlaskit/modal-dialog": "^12.18.0",
53
- "@atlaskit/radio": "^6.6.0",
54
- "@atlaskit/range": "^7.4.0",
55
- "@atlaskit/select": "^18.7.0",
54
+ "@atlaskit/radio": "^7.0.0",
55
+ "@atlaskit/range": "^8.0.0",
56
+ "@atlaskit/select": "^18.9.0",
56
57
  "@atlaskit/ssr": "*",
57
- "@atlaskit/textfield": "^6.6.0",
58
- "@atlaskit/toggle": "^13.4.0",
58
+ "@atlaskit/textfield": "^6.7.0",
59
+ "@atlaskit/toggle": "^14.0.0",
59
60
  "@atlaskit/visual-regression": "*",
60
61
  "@testing-library/react": "^12.1.5",
61
62
  "@testing-library/react-hooks": "^8.0.1",
@@ -63,8 +64,7 @@
63
64
  "@types/final-form-focus": "^1.1.1",
64
65
  "jest-in-case": "^1.0.2",
65
66
  "react-dom": "^16.8.0",
66
- "react-router": "^4.2.0",
67
- "react-router-dom": "^4.2.2",
67
+ "react-router-dom": "^6.28.0",
68
68
  "typescript": "~5.4.2",
69
69
  "validator": "^9.4.1",
70
70
  "wait-for-expect": "^1.2.0"