@atlaskit/forge-react-types 0.23.0 → 0.24.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.24.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#119932](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119932)
8
+ [`798a9f4b8913d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/798a9f4b8913d) -
9
+ Add TimePicker component and types. Update DatePicker type
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 0.23.0
4
16
 
5
17
  ### Minor Changes
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -3,10 +3,11 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::f4e6b9ae946e8fe8074d89a3ff2ac52e>>
6
+ * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::c81073870b6e0df94ccfaf046550c325>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
10
+ import type { SelectProps } from '@atlaskit/select';
10
11
  export interface FieldProps {
11
12
  id: string;
12
13
  isRequired: boolean;
@@ -43,5 +44,6 @@ export type DatePickerProps = {
43
44
  testId?: string;
44
45
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
45
46
  onChange?: (value: string) => void;
47
+ selectProps?: SelectProps<any | false>;
46
48
  } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
47
49
  export {};
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::fd5b4a75262f77b460d434e1c57d8ba1>>
6
+ * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::5bb6824f9a98335ce4b0fcdd02f71802>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListProps {
@@ -3,10 +3,11 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::f4e6b9ae946e8fe8074d89a3ff2ac52e>>
6
+ * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::c81073870b6e0df94ccfaf046550c325>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
10
+ import type { SelectProps } from '@atlaskit/select';
10
11
  export interface FieldProps {
11
12
  id: string;
12
13
  isRequired: boolean;
@@ -43,5 +44,6 @@ export type DatePickerProps = {
43
44
  testId?: string;
44
45
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
45
46
  onChange?: (value: string) => void;
47
+ selectProps?: SelectProps<any | false>;
46
48
  } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
47
49
  export {};
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::fd5b4a75262f77b460d434e1c57d8ba1>>
6
+ * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::5bb6824f9a98335ce4b0fcdd02f71802>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
9
9
  */
10
10
  import React from 'react';
11
11
  export interface ListProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/badge": "^16.3.0",
29
29
  "@atlaskit/banner": "^12.4.0",
30
- "@atlaskit/button": "^18.3.0",
30
+ "@atlaskit/button": "^18.4.0",
31
31
  "@atlaskit/calendar": "^14.3.0",
32
32
  "@atlaskit/checkbox": "^13.5.0",
33
33
  "@atlaskit/code": "^15.4.0",
@@ -36,23 +36,23 @@
36
36
  "@atlaskit/form": "^10.4.0",
37
37
  "@atlaskit/heading": "^2.4.0",
38
38
  "@atlaskit/inline-edit": "^13.4.1",
39
- "@atlaskit/lozenge": "^11.8.0",
39
+ "@atlaskit/lozenge": "^11.9.0",
40
40
  "@atlaskit/modal-dialog": "^12.14.0",
41
41
  "@atlaskit/primitives": "^11.0.0",
42
42
  "@atlaskit/progress-bar": "2.2.0",
43
- "@atlaskit/progress-tracker": "8.7.4",
43
+ "@atlaskit/progress-tracker": "8.7.5",
44
44
  "@atlaskit/radio": "^6.4.0",
45
45
  "@atlaskit/range": "^7.3.0",
46
46
  "@atlaskit/section-message": "^6.5.0",
47
47
  "@atlaskit/select": "^17.11.0",
48
48
  "@atlaskit/spinner": "^16.2.0",
49
- "@atlaskit/tabs": "^16.2.0",
49
+ "@atlaskit/tabs": "^16.3.0",
50
50
  "@atlaskit/tag": "^12.4.0",
51
51
  "@atlaskit/tag-group": "^10.4.0",
52
52
  "@atlaskit/textarea": "^5.5.0",
53
53
  "@atlaskit/textfield": "^6.4.0",
54
54
  "@atlaskit/toggle": "^13.2.0",
55
- "@atlaskit/tokens": "^1.53.0",
55
+ "@atlaskit/tokens": "^1.54.0",
56
56
  "@atlaskit/tooltip": "^18.5.0",
57
57
  "@babel/runtime": "^7.0.0"
58
58
  },
@@ -3,10 +3,12 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - DatePickerProps
5
5
  *
6
- * @codegen <<SignedSource::f4e6b9ae946e8fe8074d89a3ff2ac52e>>
6
+ * @codegen <<SignedSource::31aa010a923433b4bc243613653cb355>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::c81073870b6e0df94ccfaf046550c325>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/datepicker/__generated__/index.partial.tsx <<SignedSource::f46fc2b51471f647b60a3fec382a3f5d>>
9
9
  */
10
+ import type { SelectProps } from '@atlaskit/select';
11
+
10
12
  export interface FieldProps {
11
13
  id: string;
12
14
  isRequired: boolean;
@@ -45,4 +47,5 @@ export type DatePickerProps = {
45
47
  testId?: string;
46
48
  weekStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
47
49
  onChange?:(value: string) => void;
50
+ selectProps?: SelectProps<any | false>;
48
51
  } & Partial<Omit<FieldProps, 'onChange' | 'isRequired' >>;
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * Extract component prop types from UIKit 2 components - ListProps
5
5
  *
6
- * @codegen <<SignedSource::fd5b4a75262f77b460d434e1c57d8ba1>>
6
+ * @codegen <<SignedSource::3feee8080c7b3707219a850f5565f712>>
7
7
  * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
- * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::5bb6824f9a98335ce4b0fcdd02f71802>>
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/list/list.tsx <<SignedSource::abaa74b57000347ef37668a50d2ad68c>>
9
9
  */
10
10
  import React from 'react';
11
11
 
@@ -0,0 +1,49 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ *
4
+ * Extract component prop types from UIKit 2 components - TimePickerProps
5
+ *
6
+ * @codegen <<SignedSource::a11aa419ac642ea0ddca74ef6b84f350>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/timepicker/__generated__/index.partial.tsx <<SignedSource::2e6a672ddad4f76e568e3236e7bd4e8e>>
9
+ */
10
+ import type { SelectProps } from '@atlaskit/select';
11
+
12
+ export interface FieldProps {
13
+ id: string;
14
+ isRequired: boolean;
15
+ isDisabled: boolean;
16
+ isInvalid: boolean;
17
+ onChange: (event: any) => any;
18
+ onBlur: () => any;
19
+ onFocus: () => any;
20
+ value: any;
21
+ 'aria-invalid': 'true' | 'false';
22
+ 'aria-labelledby': string;
23
+ name: string;
24
+ }
25
+
26
+ type Appearance = 'default' | 'subtle' | 'none';
27
+ type Spacing = 'compact' | 'default';
28
+
29
+ export type TimePickerProps = {
30
+ appearance?: Appearance;
31
+ autoFocus?: boolean;
32
+ defaultIsOpen?: boolean;
33
+ defaultValue?: string;
34
+ formatDisplayLabel?: (time: string, timeFormat: string) => string;
35
+ isOpen?: boolean;
36
+ label?: string;
37
+ onChange?: (value: string) => void;
38
+ spacing?: Spacing;
39
+ times?: string[];
40
+ timeIsEditable?: boolean;
41
+ value?: string;
42
+ isInvalid?: boolean;
43
+ hideIcon?: boolean;
44
+ timeFormat?: string;
45
+ placeholder?: string;
46
+ locale?: string;
47
+ testId?: string;
48
+ selectProps?: SelectProps<any | false>;
49
+ } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;