@atlaskit/forge-react-types 0.58.0 → 0.59.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,12 @@
1
1
  # @atlaskit/forge-react-types
2
2
 
3
+ ## 0.59.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`e5e1ada56ae7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5e1ada56ae7f) -
8
+ New component AtlassianIcon added.
9
+
3
10
  ## 0.58.0
4
11
 
5
12
  ### Minor Changes
@@ -0,0 +1,37 @@
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 - AtlassianIconProps
5
+ *
6
+ * @codegen <<SignedSource::48d2fe2d1559dde01c83341d7d963d7f>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/atlassianicon/index.tsx <<SignedSource::953d41a93d1452a3e634edd32d3f49de>>
9
+ */
10
+ export type AtlassianIconType = 'blog' | 'branch' | 'bug' | 'calendar' | 'changes' | 'code' | 'commit' | 'database' | 'epic' | 'idea' | 'improvement' | 'incident' | 'new-feature' | 'page' | 'page-live-doc' | 'problem' | 'pull-request' | 'question' | 'story' | 'subtask' | 'task' | 'whiteboard' | 'work-item';
11
+ export type AtlassianIconProps = {
12
+ /**
13
+ * The glyph type of AtlassianIcon to render. This will automatically set the color.
14
+ * Available options are derived from @atlaskit/object metadata and will
15
+ * automatically include any new object types added to the design system.
16
+ */
17
+ glyph: AtlassianIconType;
18
+ /**
19
+ * The label for the AtlassianIcon. If decorative, set to empty string.
20
+ */
21
+ label?: string;
22
+ /**
23
+ * The size of the AtlassianIcon: 'small' (12px) or 'medium' (16px).
24
+ */
25
+ size?: 'small' | 'medium';
26
+ /**
27
+ * Test ID for testing
28
+ */
29
+ testId?: string;
30
+ };
31
+ /**
32
+ * An AtlassianIcon is an icon that represents an Atlassian-specific content type.
33
+ * The glyph prop automatically sets the color for the object.
34
+ *
35
+ * @see [AtlassianIcon](https://developer.atlassian.com/platform/forge/ui-kit/components/atlassian-icon/) in UI Kit documentation for more information
36
+ */
37
+ export type TAtlassianIcon<T> = (props: AtlassianIconProps) => T;
@@ -36,6 +36,7 @@ export type { ModalHeaderProps, TModalHeader } from './ModalHeaderProps.codegen'
36
36
  export type { ModalProps, TModal } from './ModalProps.codegen';
37
37
  export type { ModalTitleProps, TModalTitle } from './ModalTitleProps.codegen';
38
38
  export type { ModalTransitionProps, TModalTransition } from './ModalTransitionProps.codegen';
39
+ export type { AtlassianIconProps, TAtlassianIcon } from './AtlassianIconProps.codegen';
39
40
  export type { ProgressBarProps, TProgressBar } from './ProgressBarProps.codegen';
40
41
  export type { ProgressTrackerProps, TProgressTracker } from './ProgressTrackerProps.codegen';
41
42
  export type { RadioGroupProps, TRadioGroup } from './RadioGroupProps.codegen';
@@ -1,4 +1,4 @@
1
- export type { AdfRendererProps, AtlassianTileProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, TileProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, TTile, TAtlassianTile, } from './components/__generated__';
1
+ export type { AdfRendererProps, AtlassianTileProps, AtlassianIconProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, TileProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, TTile, TAtlassianTile, TAtlassianIcon, } from './components/__generated__';
2
2
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, DonutChartProps, PieChartProps, TBarChart, TStackBarChart, THorizontalStackBarChart, THorizontalBarChart, TLineChart, TDonutChart, TPieChart, } from './components/charts';
3
3
  export type { ChromelessEditorProps, CommentEditorProps, TChromelessEditor, TCommentEditor, } from './components/editor';
4
4
  export type { ChartColorTokens } from './types';
@@ -0,0 +1,37 @@
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 - AtlassianIconProps
5
+ *
6
+ * @codegen <<SignedSource::48d2fe2d1559dde01c83341d7d963d7f>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/atlassianicon/index.tsx <<SignedSource::953d41a93d1452a3e634edd32d3f49de>>
9
+ */
10
+ export type AtlassianIconType = 'blog' | 'branch' | 'bug' | 'calendar' | 'changes' | 'code' | 'commit' | 'database' | 'epic' | 'idea' | 'improvement' | 'incident' | 'new-feature' | 'page' | 'page-live-doc' | 'problem' | 'pull-request' | 'question' | 'story' | 'subtask' | 'task' | 'whiteboard' | 'work-item';
11
+ export type AtlassianIconProps = {
12
+ /**
13
+ * The glyph type of AtlassianIcon to render. This will automatically set the color.
14
+ * Available options are derived from @atlaskit/object metadata and will
15
+ * automatically include any new object types added to the design system.
16
+ */
17
+ glyph: AtlassianIconType;
18
+ /**
19
+ * The label for the AtlassianIcon. If decorative, set to empty string.
20
+ */
21
+ label?: string;
22
+ /**
23
+ * The size of the AtlassianIcon: 'small' (12px) or 'medium' (16px).
24
+ */
25
+ size?: 'small' | 'medium';
26
+ /**
27
+ * Test ID for testing
28
+ */
29
+ testId?: string;
30
+ };
31
+ /**
32
+ * An AtlassianIcon is an icon that represents an Atlassian-specific content type.
33
+ * The glyph prop automatically sets the color for the object.
34
+ *
35
+ * @see [AtlassianIcon](https://developer.atlassian.com/platform/forge/ui-kit/components/atlassian-icon/) in UI Kit documentation for more information
36
+ */
37
+ export type TAtlassianIcon<T> = (props: AtlassianIconProps) => T;
@@ -36,6 +36,7 @@ export type { ModalHeaderProps, TModalHeader } from './ModalHeaderProps.codegen'
36
36
  export type { ModalProps, TModal } from './ModalProps.codegen';
37
37
  export type { ModalTitleProps, TModalTitle } from './ModalTitleProps.codegen';
38
38
  export type { ModalTransitionProps, TModalTransition } from './ModalTransitionProps.codegen';
39
+ export type { AtlassianIconProps, TAtlassianIcon } from './AtlassianIconProps.codegen';
39
40
  export type { ProgressBarProps, TProgressBar } from './ProgressBarProps.codegen';
40
41
  export type { ProgressTrackerProps, TProgressTracker } from './ProgressTrackerProps.codegen';
41
42
  export type { RadioGroupProps, TRadioGroup } from './RadioGroupProps.codegen';
@@ -1,4 +1,4 @@
1
- export type { AdfRendererProps, AtlassianTileProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, TileProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, TTile, TAtlassianTile, } from './components/__generated__';
1
+ export type { AdfRendererProps, AtlassianTileProps, AtlassianIconProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, 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, TextProps, TextAreaProps, TextfieldProps, TileProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, PressableProps, TBadge, TBox, TButtonGroup, TButton, TCalendar, TCheckbox, TCheckboxGroup, TCodeBlock, TCode, TComment, TDatePicker, TDynamicTable, TEmptyState, TErrorMessage, TFileCard, TFlex, TFormFooter, TFormHeader, TForm, TFormSection, TGrid, THeading, THelperMessage, TIcon, TInline, TInlineEdit, TLabel, TLinkButton, TList, TListItem, TLoadingButton, TLozenge, TModalBody, TModalFooter, TModalHeader, TModal, TModalTitle, TModalTransition, TProgressBar, TProgressTracker, TRadioGroup, TRadio, TRange, TSectionMessageAction, TSectionMessage, TSelect, TSpinner, TStack, TTabList, TTabPanel, TTab, TTabs, TTagGroup, TTag, TTextArea, TTextfield, TTimePicker, TToggle, TTooltip, TValidMessage, TPopup, TAdfRenderer, TText, TPressable, TFilePicker, TTile, TAtlassianTile, TAtlassianIcon, } from './components/__generated__';
2
2
  export type { BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, DonutChartProps, PieChartProps, TBarChart, TStackBarChart, THorizontalStackBarChart, THorizontalBarChart, TLineChart, TDonutChart, TPieChart, } from './components/charts';
3
3
  export type { ChromelessEditorProps, CommentEditorProps, TChromelessEditor, TCommentEditor, } from './components/editor';
4
4
  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.58.0",
3
+ "version": "0.59.0",
4
4
  "description": "Component types for Forge UI Kit React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,6 +29,7 @@
29
29
  "@atlaskit/inline-edit": "^15.6.0",
30
30
  "@atlaskit/modal-dialog": "^14.10.0",
31
31
  "@atlaskit/navigation-system": "^5.32.0",
32
+ "@atlaskit/object": "^1.0.0",
32
33
  "@atlaskit/popup": "^4.13.0",
33
34
  "@atlaskit/primitives": "^18.0.0",
34
35
  "@atlaskit/progress-bar": "^4.1.0",
@@ -55,7 +56,7 @@
55
56
  },
56
57
  "devDependencies": {
57
58
  "@atlassian/codegen": "^0.1.0",
58
- "@atlassian/forge-ui": "^32.80.0",
59
+ "@atlassian/forge-ui": "^32.81.0",
59
60
  "@types/node": "^24.0.0",
60
61
  "lodash": "^4.17.21",
61
62
  "react": "^18.2.0",
@@ -0,0 +1,41 @@
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 - AtlassianIconProps
5
+ *
6
+ * @codegen <<SignedSource::48d2fe2d1559dde01c83341d7d963d7f>>
7
+ * @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
8
+ * @codegenDependency ../../../../forge-ui/src/components/UIKit/atlassianicon/index.tsx <<SignedSource::953d41a93d1452a3e634edd32d3f49de>>
9
+ */
10
+ /* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
11
+
12
+ export type AtlassianIconType = 'blog' | 'branch' | 'bug' | 'calendar' | 'changes' | 'code' | 'commit' | 'database' | 'epic' | 'idea' | 'improvement' | 'incident' | 'new-feature' | 'page' | 'page-live-doc' | 'problem' | 'pull-request' | 'question' | 'story' | 'subtask' | 'task' | 'whiteboard' | 'work-item';
13
+
14
+ export type AtlassianIconProps = {
15
+ /**
16
+ * The glyph type of AtlassianIcon to render. This will automatically set the color.
17
+ * Available options are derived from @atlaskit/object metadata and will
18
+ * automatically include any new object types added to the design system.
19
+ */
20
+ glyph: AtlassianIconType;
21
+ /**
22
+ * The label for the AtlassianIcon. If decorative, set to empty string.
23
+ */
24
+ label?: string;
25
+ /**
26
+ * The size of the AtlassianIcon: 'small' (12px) or 'medium' (16px).
27
+ */
28
+ size?: 'small' | 'medium';
29
+ /**
30
+ * Test ID for testing
31
+ */
32
+ testId?: string;
33
+ };
34
+
35
+ /**
36
+ * An AtlassianIcon is an icon that represents an Atlassian-specific content type.
37
+ * The glyph prop automatically sets the color for the object.
38
+ *
39
+ * @see [AtlassianIcon](https://developer.atlassian.com/platform/forge/ui-kit/components/atlassian-icon/) in UI Kit documentation for more information
40
+ */
41
+ export type TAtlassianIcon<T> = (props: AtlassianIconProps) => T;
@@ -36,6 +36,7 @@ export type { ModalHeaderProps, TModalHeader } from './ModalHeaderProps.codegen'
36
36
  export type { ModalProps, TModal } from './ModalProps.codegen';
37
37
  export type { ModalTitleProps, TModalTitle } from './ModalTitleProps.codegen';
38
38
  export type { ModalTransitionProps, TModalTransition } from './ModalTransitionProps.codegen';
39
+ export type { AtlassianIconProps, TAtlassianIcon } from './AtlassianIconProps.codegen';
39
40
  export type { ProgressBarProps, TProgressBar } from './ProgressBarProps.codegen';
40
41
  export type { ProgressTrackerProps, TProgressTracker } from './ProgressTrackerProps.codegen';
41
42
  export type { RadioGroupProps, TRadioGroup } from './RadioGroupProps.codegen';
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export type {
2
2
  AdfRendererProps,
3
3
  AtlassianTileProps,
4
+ AtlassianIconProps,
4
5
  BadgeProps,
5
6
  BoxProps,
6
7
  ButtonGroupProps,
@@ -131,6 +132,7 @@ export type {
131
132
  TFilePicker,
132
133
  TTile,
133
134
  TAtlassianTile,
135
+ TAtlassianIcon,
134
136
  } from './components/__generated__';
135
137
 
136
138
  export type {