@atlaskit/forge-react-types 0.27.22 → 0.27.24

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,19 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.27.24
4
+
5
+ ### Patch Changes
6
+
7
+ - [#156934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156934)
8
+ [`1833a87214a2e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1833a87214a2e) -
9
+ Update UI Kit TimePicker component props
10
+
11
+ ## 0.27.23
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 0.27.22
4
18
 
5
19
  ### Patch Changes
@@ -0,0 +1,46 @@
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::db62df2c8928eb77a589694a6741e9ae>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::45eaafdd9a1bbc8b356cc8a9b5365bc1>>
9
+ */
10
+ import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
+ export interface FieldProps {
12
+ id: string;
13
+ isRequired: boolean;
14
+ isDisabled: boolean;
15
+ isInvalid: boolean;
16
+ onChange: (event: unknown) => void;
17
+ onBlur: (event: unknown) => void;
18
+ onFocus: (event: unknown) => void;
19
+ value: any;
20
+ 'aria-invalid': 'true' | 'false';
21
+ 'aria-labelledby': string;
22
+ name: string;
23
+ }
24
+ type Appearance = 'default' | 'subtle' | 'none';
25
+ type Spacing = 'compact' | 'default';
26
+ export type TimePickerProps = {
27
+ appearance?: Appearance;
28
+ autoFocus?: boolean;
29
+ defaultIsOpen?: boolean;
30
+ defaultValue?: string;
31
+ isOpen?: boolean;
32
+ label?: string;
33
+ onChange?: (value: string) => void;
34
+ spacing?: Spacing;
35
+ times?: string[];
36
+ timeIsEditable?: boolean;
37
+ value?: string;
38
+ isInvalid?: boolean;
39
+ hideIcon?: boolean;
40
+ timeFormat?: string;
41
+ placeholder?: string;
42
+ locale?: string;
43
+ testId?: string;
44
+ selectProps?: DateTimePickerSelectProps;
45
+ } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
46
+ export {};
@@ -54,6 +54,7 @@ export type { TagGroupProps } from './TagGroupProps.codegen';
54
54
  export type { SimpleTagProps as TagProps } from './TagProps.codegen';
55
55
  export type { TextAreaProps } from './TextAreaProps.codegen';
56
56
  export type { TextfieldProps } from './TextfieldProps.codegen';
57
+ export type { TimePickerProps } from './TimePickerProps.codegen';
57
58
  export type { ToggleProps } from './ToggleProps.codegen';
58
59
  export type { TooltipProps } from './TooltipProps.codegen';
59
60
  export type { ValidMessageProps } from './ValidMessageProps.codegen';
@@ -1,3 +1,3 @@
1
- export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, PopupProps, InlineEditProps, } from './components/__generated__';
1
+ export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, } from './components/__generated__';
2
2
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, PieChartProps, } from './components/charts';
3
3
  export type { ChartColorTokens } from './types';
@@ -0,0 +1,46 @@
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::db62df2c8928eb77a589694a6741e9ae>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/timepicker/__generated__/index.partial.tsx <<SignedSource::45eaafdd9a1bbc8b356cc8a9b5365bc1>>
9
+ */
10
+ import type { DateTimePickerSelectProps } from '@atlaskit/datetime-picker';
11
+ export interface FieldProps {
12
+ id: string;
13
+ isRequired: boolean;
14
+ isDisabled: boolean;
15
+ isInvalid: boolean;
16
+ onChange: (event: unknown) => void;
17
+ onBlur: (event: unknown) => void;
18
+ onFocus: (event: unknown) => void;
19
+ value: any;
20
+ 'aria-invalid': 'true' | 'false';
21
+ 'aria-labelledby': string;
22
+ name: string;
23
+ }
24
+ type Appearance = 'default' | 'subtle' | 'none';
25
+ type Spacing = 'compact' | 'default';
26
+ export type TimePickerProps = {
27
+ appearance?: Appearance;
28
+ autoFocus?: boolean;
29
+ defaultIsOpen?: boolean;
30
+ defaultValue?: string;
31
+ isOpen?: boolean;
32
+ label?: string;
33
+ onChange?: (value: string) => void;
34
+ spacing?: Spacing;
35
+ times?: string[];
36
+ timeIsEditable?: boolean;
37
+ value?: string;
38
+ isInvalid?: boolean;
39
+ hideIcon?: boolean;
40
+ timeFormat?: string;
41
+ placeholder?: string;
42
+ locale?: string;
43
+ testId?: string;
44
+ selectProps?: DateTimePickerSelectProps;
45
+ } & Partial<Omit<FieldProps, 'onChange' | 'isRequired'>>;
46
+ export {};
@@ -54,6 +54,7 @@ export type { TagGroupProps } from './TagGroupProps.codegen';
54
54
  export type { SimpleTagProps as TagProps } from './TagProps.codegen';
55
55
  export type { TextAreaProps } from './TextAreaProps.codegen';
56
56
  export type { TextfieldProps } from './TextfieldProps.codegen';
57
+ export type { TimePickerProps } from './TimePickerProps.codegen';
57
58
  export type { ToggleProps } from './ToggleProps.codegen';
58
59
  export type { TooltipProps } from './TooltipProps.codegen';
59
60
  export type { ValidMessageProps } from './ValidMessageProps.codegen';
@@ -1,3 +1,3 @@
1
- export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, ValidMessageProps, PopupProps, InlineEditProps, } from './components/__generated__';
1
+ export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, } from './components/__generated__';
2
2
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, SingleValueChartProps, PieChartProps, } from './components/charts';
3
3
  export type { ChartColorTokens } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.27.22",
3
+ "version": "0.27.24",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,26 +26,26 @@
26
26
  "dependencies": {
27
27
  "@atlaskit/badge": "^16.4.0",
28
28
  "@atlaskit/banner": "^12.5.0",
29
- "@atlaskit/button": "^20.2.0",
29
+ "@atlaskit/button": "^20.3.0",
30
30
  "@atlaskit/calendar": "^15.0.0",
31
- "@atlaskit/checkbox": "^15.0.0",
31
+ "@atlaskit/checkbox": "^15.1.0",
32
32
  "@atlaskit/code": "^15.6.0",
33
- "@atlaskit/datetime-picker": "^15.4.0",
33
+ "@atlaskit/datetime-picker": "^15.5.0",
34
34
  "@atlaskit/dynamic-table": "^16.1.0",
35
- "@atlaskit/empty-state": "^7.11.0",
35
+ "@atlaskit/empty-state": "^7.12.0",
36
36
  "@atlaskit/form": "^10.5.0",
37
37
  "@atlaskit/heading": "^2.4.0",
38
38
  "@atlaskit/inline-edit": "^13.7.0",
39
- "@atlaskit/lozenge": "^11.11.0",
39
+ "@atlaskit/lozenge": "^11.12.0",
40
40
  "@atlaskit/modal-dialog": "^12.17.0",
41
- "@atlaskit/popup": "^1.28.0",
41
+ "@atlaskit/popup": "^1.29.0",
42
42
  "@atlaskit/primitives": "^12.2.0",
43
43
  "@atlaskit/progress-bar": "2.3.3",
44
- "@atlaskit/progress-tracker": "8.9.4",
44
+ "@atlaskit/progress-tracker": "8.10.0",
45
45
  "@atlaskit/radio": "^6.5.0",
46
46
  "@atlaskit/range": "^7.4.0",
47
47
  "@atlaskit/section-message": "^6.6.0",
48
- "@atlaskit/select": "^18.1.0",
48
+ "@atlaskit/select": "^18.3.0",
49
49
  "@atlaskit/spinner": "^16.3.0",
50
50
  "@atlaskit/tabs": "^16.5.0",
51
51
  "@atlaskit/tag": "^12.6.0",
@@ -54,7 +54,8 @@ export type { TagGroupProps } from './TagGroupProps.codegen';
54
54
  export type { SimpleTagProps as TagProps } from './TagProps.codegen';
55
55
  export type { TextAreaProps } from './TextAreaProps.codegen';
56
56
  export type { TextfieldProps } from './TextfieldProps.codegen';
57
+ export type { TimePickerProps } from './TimePickerProps.codegen';
57
58
  export type { ToggleProps } from './ToggleProps.codegen';
58
59
  export type { TooltipProps } from './TooltipProps.codegen';
59
60
  export type { ValidMessageProps } from './ValidMessageProps.codegen';
60
- export type { PopupProps } from './PopupProps.codegen';
61
+ export type { PopupProps } from './PopupProps.codegen';
package/src/index.ts CHANGED
@@ -56,6 +56,7 @@ export type {
56
56
  TextfieldProps,
57
57
  ToggleProps,
58
58
  TooltipProps,
59
+ TimePickerProps,
59
60
  ValidMessageProps,
60
61
  PopupProps,
61
62
  InlineEditProps,