@atlaskit/forge-react-types 0.11.2 → 0.12.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,13 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#98956](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98956)
8
+ [`90fe0e7d1f6a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/90fe0e7d1f6a) -
9
+ Add calendar codegen component to UI Kit 2
10
+
3
11
  ## 0.11.2
4
12
 
5
13
  ### Patch Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,14 @@
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 - CalendarProps
5
+ *
6
+ * @codegen <<SignedSource::809fe60e51015ea45199d65e850e76f5>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::1a1e92ebb117bd23b5ed2fbbf8f309ff>>
9
+ */
10
+ import React from 'react';
11
+ import PlatformCalendar from '@atlaskit/calendar';
12
+ type PlatformCalendarProps = React.ComponentProps<typeof PlatformCalendar>;
13
+ export type CalendarProps = Pick<PlatformCalendarProps, 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'disabledDateFilter' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'>;
14
+ export {};
@@ -5,6 +5,7 @@ export type { BoxProps } from './BoxProps.codegen';
5
5
  export type { ButtonGroupProps } from './ButtonGroupProps.codegen';
6
6
  export type { ButtonProps } from './ButtonProps.codegen';
7
7
  export type { CheckboxProps } from './CheckboxProps.codegen';
8
+ export type { CalendarProps } from './CalendarProps.codegen';
8
9
  export type { CheckboxGroupProps } from './CheckboxGroupProps.codegen';
9
10
  export type { CodeBlockProps } from './CodeBlockProps.codegen';
10
11
  export type { CodeProps } from './CodeProps.codegen';
@@ -1 +1 @@
1
- export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, 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, } from './components/__generated__';
1
+ export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, 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, } from './components/__generated__';
@@ -0,0 +1,14 @@
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 - CalendarProps
5
+ *
6
+ * @codegen <<SignedSource::809fe60e51015ea45199d65e850e76f5>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::1a1e92ebb117bd23b5ed2fbbf8f309ff>>
9
+ */
10
+ import React from 'react';
11
+ import PlatformCalendar from '@atlaskit/calendar';
12
+ type PlatformCalendarProps = React.ComponentProps<typeof PlatformCalendar>;
13
+ export type CalendarProps = Pick<PlatformCalendarProps, 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'disabledDateFilter' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'>;
14
+ export {};
@@ -5,6 +5,7 @@ export type { BoxProps } from './BoxProps.codegen';
5
5
  export type { ButtonGroupProps } from './ButtonGroupProps.codegen';
6
6
  export type { ButtonProps } from './ButtonProps.codegen';
7
7
  export type { CheckboxProps } from './CheckboxProps.codegen';
8
+ export type { CalendarProps } from './CalendarProps.codegen';
8
9
  export type { CheckboxGroupProps } from './CheckboxGroupProps.codegen';
9
10
  export type { CodeBlockProps } from './CodeBlockProps.codegen';
10
11
  export type { CodeProps } from './CodeProps.codegen';
@@ -1 +1 @@
1
- export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, 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, } from './components/__generated__';
1
+ export type { BadgeProps, BannerProps, BleedProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, DatePickerProps, DynamicTableProps, 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, } from './components/__generated__';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/forge-react-types",
3
- "version": "0.11.2",
3
+ "version": "0.12.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,6 +28,7 @@
28
28
  "@atlaskit/badge": "^16.1.0",
29
29
  "@atlaskit/banner": "^12.3.0",
30
30
  "@atlaskit/button": "^17.14.0",
31
+ "@atlaskit/calendar": "^14.2.1",
31
32
  "@atlaskit/checkbox": "^13.3.0",
32
33
  "@atlaskit/code": "^15.2.0",
33
34
  "@atlaskit/dynamic-table": "^14.16.0",
@@ -49,7 +50,7 @@
49
50
  "@atlaskit/textarea": "^5.4.0",
50
51
  "@atlaskit/textfield": "^6.3.0",
51
52
  "@atlaskit/toggle": "^13.1.0",
52
- "@atlaskit/tokens": "^1.47.0",
53
+ "@atlaskit/tokens": "^1.48.0",
53
54
  "@atlaskit/tooltip": "^18.3.0",
54
55
  "@babel/runtime": "^7.0.0"
55
56
  },
@@ -0,0 +1,18 @@
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 - CalendarProps
5
+ *
6
+ * @codegen <<SignedSource::809fe60e51015ea45199d65e850e76f5>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit2-codegen/calendar/__generated__/index.partial.tsx <<SignedSource::1a1e92ebb117bd23b5ed2fbbf8f309ff>>
9
+ */
10
+ import React from 'react';
11
+ import PlatformCalendar from '@atlaskit/calendar';
12
+
13
+ type PlatformCalendarProps = React.ComponentProps<typeof PlatformCalendar>;
14
+
15
+ export type CalendarProps = Pick<
16
+ PlatformCalendarProps,
17
+ 'day' | 'defaultDay' | 'defaultMonth' | 'defaultYear' | 'defaultPreviouslySelected' | 'defaultSelected' | 'disabled' | 'disabledDateFilter' | 'maxDate' | 'minDate' | 'nextMonthLabel' | 'onBlur' | 'onChange' | 'onFocus' | 'onSelect' | 'previouslySelected' | 'previousMonthLabel' | 'selected' | 'today' | 'year' | 'locale' | 'testId' | 'weekStartDay' | 'tabIndex'
18
+ >;
@@ -5,6 +5,7 @@ export type { BoxProps } from './BoxProps.codegen';
5
5
  export type { ButtonGroupProps } from './ButtonGroupProps.codegen';
6
6
  export type { ButtonProps } from './ButtonProps.codegen';
7
7
  export type { CheckboxProps } from './CheckboxProps.codegen';
8
+ export type { CalendarProps } from './CalendarProps.codegen';
8
9
  export type { CheckboxGroupProps } from './CheckboxGroupProps.codegen';
9
10
  export type { CodeBlockProps } from './CodeBlockProps.codegen';
10
11
  export type { CodeProps } from './CodeProps.codegen';
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export type {
5
5
  BoxProps,
6
6
  ButtonGroupProps,
7
7
  ButtonProps,
8
+ CalendarProps,
8
9
  CheckboxProps,
9
10
  CheckboxGroupProps,
10
11
  CodeBlockProps,