diff --git a/packages/react/src/FeatureFlags/index.ts b/packages/react/src/FeatureFlags/index.ts index 6e364de8102..5a04cce6524 100644 --- a/packages/react/src/FeatureFlags/index.ts +++ b/packages/react/src/FeatureFlags/index.ts @@ -1,3 +1,4 @@ export {FeatureFlags} from './FeatureFlags' export type {FeatureFlagsProps} from './FeatureFlags' export {useFeatureFlag} from './useFeatureFlag' +export {DefaultFeatureFlags} from './DefaultFeatureFlags' diff --git a/packages/react/src/Token/index.ts b/packages/react/src/Token/index.ts index 570bda99851..380c0100579 100644 --- a/packages/react/src/Token/index.ts +++ b/packages/react/src/Token/index.ts @@ -1,4 +1,6 @@ +export type {TokenSizeKeys} from './TokenBase' export {default} from './Token' export type {TokenProps} from './Token' export {default as IssueLabelToken} from './IssueLabelToken' +export type {IssueLabelTokenProps} from './IssueLabelToken' export {default as AvatarToken} from './AvatarToken' diff --git a/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap b/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap index 0aacd8ccf60..7dd8d301086 100644 --- a/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/packages/react/src/__tests__/__snapshots__/exports.test.ts.snap @@ -32,6 +32,8 @@ exports[`@primer/react should not update exports without a semver change 1`] = ` "AvatarToken", "BaseStyles", "type BaseStylesProps", + "type BetterCssProperties", + "type BetterSystemStyleObject", "Box", "type BoxProps", "BranchName", @@ -80,7 +82,9 @@ exports[`@primer/react should not update exports without a semver change 1`] = ` "IconButton", "type IconButtonProps", "IssueLabelToken", + "type IssueLabelTokenProps", "Label", + "type LabelColorOptions", "LabelGroup", "type LabelGroupProps", "type LabelProps", @@ -198,10 +202,12 @@ exports[`@primer/react should not update exports without a semver change 1`] = ` "useFocusTrap", "useFocusZone", "useFormControlForwardedProps", + "useIsomorphicLayoutEffect", "useOnEscapePress", "useOnOutsideClick", "useOpenAndCloseFocus", "useOverlay", + "useProvidedRefOrCreate", "useRefObjectAsForwardedRef", "useResizeObserver", "useResponsiveValue", @@ -213,6 +219,9 @@ exports[`@primer/react should not update exports without a semver change 1`] = ` exports[`@primer/react/deprecated should not update exports without a semver change 1`] = ` [ "ActionList", + "type ActionListGroupedListProps", + "type ActionListGroupProps", + "type ActionListItemProps", "type ActionListProps", "ActionMenu", "type ActionMenuProps", @@ -275,6 +284,7 @@ exports[`@primer/react/experimental should not update exports without a semver c "default", "default", "default", + "DefaultFeatureFlags", "Dialog", "type DialogButtonProps", "type DialogHeaderProps", diff --git a/packages/react/src/deprecated/ActionList/index.ts b/packages/react/src/deprecated/ActionList/index.ts index ae0bb410f65..60bacad8aaf 100644 --- a/packages/react/src/deprecated/ActionList/index.ts +++ b/packages/react/src/deprecated/ActionList/index.ts @@ -2,7 +2,7 @@ import {List} from './List' import {Group} from './Group' import {Item} from './Item' import {Divider} from './Divider' -export type {ListProps as ActionListProps} from './List' +export type {ListProps as ActionListProps, GroupedListProps} from './List' export type {GroupProps} from './Group' export type {ItemProps} from './Item' diff --git a/packages/react/src/deprecated/index.ts b/packages/react/src/deprecated/index.ts index 55f68741837..c1855693331 100644 --- a/packages/react/src/deprecated/index.ts +++ b/packages/react/src/deprecated/index.ts @@ -11,7 +11,12 @@ // Deprecated in v35.0.0 on March 9, 2022 // TODO: We can remove these 6 months after release: September 10, 2022 export {ActionList} from './ActionList' -export type {ActionListProps} from './ActionList' +export type { + ActionListProps, + ItemProps as ActionListItemProps, + GroupProps as ActionListGroupProps, + GroupedListProps as ActionListGroupedListProps, +} from './ActionList' export {ActionMenu} from './ActionMenu' export type {ActionMenuProps} from './ActionMenu' // (copied over from src/index) not exporting new DropdownMenu types yet due to conflict with Dropdown types above diff --git a/packages/react/src/experimental/index.ts b/packages/react/src/experimental/index.ts index 12a8a1a5b13..17a23c78479 100644 --- a/packages/react/src/experimental/index.ts +++ b/packages/react/src/experimental/index.ts @@ -83,7 +83,7 @@ export {UnderlinePanels} from './UnderlinePanels' export type {UnderlinePanelsProps, UnderlinePanelsTabProps, UnderlinePanelsPanelProps} from './UnderlinePanels' export {SkeletonBox, SkeletonText, SkeletonAvatar} from './Skeleton' -export {FeatureFlags} from '../FeatureFlags' +export {FeatureFlags, DefaultFeatureFlags} from '../FeatureFlags' export type {FeatureFlagsProps} from '../FeatureFlags' export {FilteredActionList} from '../FilteredActionList' diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index 24a4987c98a..87b20ec4eca 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -44,6 +44,8 @@ export type {FocusZoneHookSettings} from './hooks/useFocusZone' export {useRefObjectAsForwardedRef} from './hooks/useRefObjectAsForwardedRef' export {useResizeObserver} from './hooks/useResizeObserver' export {useResponsiveValue} from './hooks/useResponsiveValue' +export {default as useIsomorphicLayoutEffect} from './utils/useIsomorphicLayoutEffect' +export {useProvidedRefOrCreate} from './hooks/useProvidedRefOrCreate' // Utils export {createComponent} from './utils/create-component' @@ -104,7 +106,7 @@ export type {HeaderProps, HeaderItemProps, HeaderLinkProps} from './Header' export {default as Heading} from './Heading' export type {HeadingProps} from './Heading' export {default as Label} from './Label' -export type {LabelProps} from './Label' +export type {LabelProps, LabelColorOptions} from './Label' export {default as LabelGroup} from './LabelGroup' export type {LabelGroupProps} from './LabelGroup' export {default as Link} from './Link' @@ -169,7 +171,7 @@ export type { TimelineItemsProps, } from './Timeline' export {default as Token, IssueLabelToken, AvatarToken} from './Token' -export type {TokenProps} from './Token' +export type {TokenProps, IssueLabelTokenProps} from './Token' export {default as Tooltip} from './Tooltip/Tooltip' export type {TooltipProps} from './Tooltip/Tooltip' export {default as Truncate} from './Truncate' @@ -203,4 +205,4 @@ export {PageHeader} from './PageHeader' export type {PageHeaderProps} from './PageHeader' export {default as sx, merge} from './sx' -export type {SxProp} from './sx' +export type {BetterCssProperties, BetterSystemStyleObject, SxProp} from './sx'