Skip to content

Commit

Permalink
chore: remove usage of "export *" [part 2]
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Dec 2, 2024
1 parent 7e9766f commit 2c2f470
Show file tree
Hide file tree
Showing 279 changed files with 2,298 additions and 735 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
export * from './components/Accordion/index';
export type {
AccordionContextValues,
AccordionIndex,
AccordionProps,
AccordionSlots,
AccordionState,
AccordionToggleData,
AccordionToggleEvent,
AccordionToggleEventHandler,
} from './components/Accordion/index';
export {
Accordion,
accordionClassNames,
renderAccordion_unstable,
useAccordionContextValues_unstable,
useAccordionStyles_unstable,
useAccordion_unstable,
} from './components/Accordion/index';
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
export * from './components/AccordionHeader/index';
export type {
AccordionHeaderContextValues,
AccordionHeaderExpandIconPosition,
AccordionHeaderProps,
AccordionHeaderSize,
AccordionHeaderSlots,
AccordionHeaderState,
} from './components/AccordionHeader/index';
export {
AccordionHeader,
accordionHeaderClassNames,
renderAccordionHeader_unstable,
useAccordionHeaderContextValues_unstable,
useAccordionHeaderStyles_unstable,
useAccordionHeader_unstable,
} from './components/AccordionHeader/index';
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
export * from './components/AccordionItem/index';
export type {
AccordionItemContextValues,
AccordionItemProps,
AccordionItemSlots,
AccordionItemState,
AccordionItemValue,
} from './components/AccordionItem/index';
export {
AccordionItem,
accordionItemClassNames,
renderAccordionItem_unstable,
useAccordionItemContextValues_unstable,
useAccordionItemStyles_unstable,
useAccordionItem_unstable,
} from './components/AccordionItem/index';
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/AccordionPanel/index';
export type { AccordionPanelProps, AccordionPanelSlots, AccordionPanelState } from './components/AccordionPanel/index';
export {
AccordionPanel,
accordionPanelClassNames,
renderAccordionPanel_unstable,
useAccordionPanelStyles_unstable,
useAccordionPanel_unstable,
} from './components/AccordionPanel/index';
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
export * from './Accordion';
export * from './Accordion.types';
export * from './renderAccordion';
export * from './useAccordion';
export * from './useAccordionStyles.styles';
export * from './useAccordionContextValues';
export { Accordion } from './Accordion';
export type {
AccordionContextValues,
AccordionIndex,
AccordionProps,
AccordionSlots,
AccordionState,
AccordionToggleData,
AccordionToggleEvent,
AccordionToggleEventHandler,
} from './Accordion.types';
export { renderAccordion_unstable } from './renderAccordion';
export { useAccordion_unstable } from './useAccordion';
export { accordionClassNames, useAccordionStyles_unstable } from './useAccordionStyles.styles';
export { useAccordionContextValues_unstable } from './useAccordionContextValues';
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useAccordion_unstable = <Value = AccordionItemValue>(
root: slot.always(
getIntrinsicElementProps('div', {
...props,
// eslint-disable-next-line deprecation/deprecation

...(navigation ? arrowNavigationProps : undefined),
// FIXME:
// `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
export * from './AccordionHeader';
export * from './AccordionHeader.types';
export * from './renderAccordionHeader';
export * from './useAccordionHeader';
export * from './useAccordionHeaderContextValues';
export * from './useAccordionHeaderStyles.styles';
export { AccordionHeader } from './AccordionHeader';
export type {
AccordionHeaderContextValues,
AccordionHeaderExpandIconPosition,
AccordionHeaderProps,
AccordionHeaderSize,
AccordionHeaderSlots,
AccordionHeaderState,
} from './AccordionHeader.types';
export { renderAccordionHeader_unstable } from './renderAccordionHeader';
export { useAccordionHeader_unstable } from './useAccordionHeader';
export { useAccordionHeaderContextValues_unstable } from './useAccordionHeaderContextValues';
export { accordionHeaderClassNames, useAccordionHeaderStyles_unstable } from './useAccordionHeaderStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
export * from './AccordionItem';
export * from './AccordionItem.types';
export * from './renderAccordionItem';
export * from './useAccordionItem';
export * from './useAccordionItemContextValues';
export * from './useAccordionItemStyles.styles';
export { AccordionItem } from './AccordionItem';
export type {
AccordionItemContextValues,
AccordionItemProps,
AccordionItemSlots,
AccordionItemState,
AccordionItemValue,
} from './AccordionItem.types';
export { renderAccordionItem_unstable } from './renderAccordionItem';
export { useAccordionItem_unstable } from './useAccordionItem';
export { useAccordionItemContextValues_unstable } from './useAccordionItemContextValues';
export { accordionItemClassNames, useAccordionItemStyles_unstable } from './useAccordionItemStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './AccordionPanel';
export * from './AccordionPanel.types';
export * from './renderAccordionPanel';
export * from './useAccordionPanel';
export * from './useAccordionPanelStyles.styles';
export { AccordionPanel } from './AccordionPanel';
export type { AccordionPanelProps, AccordionPanelSlots, AccordionPanelState } from './AccordionPanel.types';
export { renderAccordionPanel_unstable } from './renderAccordionPanel';
export { useAccordionPanel_unstable } from './useAccordionPanel';
export { accordionPanelClassNames, useAccordionPanelStyles_unstable } from './useAccordionPanelStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
export * from './ActiveDescendantContext';
export * from './useActiveDescendant';
export * from './constants';
export * from './types';
export type { ActiveDescendantContextValue } from './ActiveDescendantContext';
export {
ActiveDescendantContextProvider,
useActiveDescendantContext,
useHasParentActiveDescendantContext,
} from './ActiveDescendantContext';
export type { ActiveDescendantChangeEvent } from './useActiveDescendant';
export { createActiveDescendantChangeEvent, useActiveDescendant } from './useActiveDescendant';
export { ACTIVEDESCENDANT_ATTRIBUTE, ACTIVEDESCENDANT_FOCUSVISIBLE_ATTRIBUTE } from './constants';
export type {
ActiveDescendantImperativeRef,
ActiveDescendantOptions,
FindOptions,
IteratorOptions,
UseActiveDescendantReturn,
} from './types';
14 changes: 11 additions & 3 deletions packages/react-components/react-aria/library/src/button/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
export * from './useARIAButtonProps';
export * from './useARIAButtonShorthand';
export * from './types';
export { useARIAButtonProps } from './useARIAButtonProps';
export { useARIAButtonShorthand } from './useARIAButtonShorthand';
export type {
ARIAButtonAlteredProps,
ARIAButtonElement,
ARIAButtonElementIntersection,
ARIAButtonProps,
ARIAButtonResultProps,
ARIAButtonSlotProps,
ARIAButtonType,
} from './types';
19 changes: 18 additions & 1 deletion packages/react-components/react-avatar/library/src/Avatar.ts
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
export * from './components/Avatar/index';
export type {
AvatarNamedColor,
AvatarProps,
AvatarShape,
AvatarSize,
AvatarSizes,
AvatarSlots,
AvatarState,
} from './components/Avatar/index';
export {
Avatar,
DEFAULT_STRINGS,
avatarClassNames,
renderAvatar_unstable,
useAvatarStyles_unstable,
useAvatar_unstable,
useSizeStyles,
} from './components/Avatar/index';
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
export * from './components/AvatarGroup/index';
export type {
AvatarGroupContextValue,
AvatarGroupContextValues,
AvatarGroupProps,
AvatarGroupSlots,
AvatarGroupState,
} from './components/AvatarGroup/index';
export {
AvatarGroup,
avatarGroupClassNames,
defaultAvatarGroupSize,
renderAvatarGroup_unstable,
useAvatarGroupContextValues,
useAvatarGroupStyles_unstable,
useAvatarGroup_unstable,
} from './components/AvatarGroup/index';
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
export * from './components/AvatarGroupItem/index';
export type {
AvatarGroupItemProps,
AvatarGroupItemSlots,
AvatarGroupItemState,
} from './components/AvatarGroupItem/index';
export {
AvatarGroupItem,
avatarGroupItemClassNames,
renderAvatarGroupItem_unstable,
useAvatarGroupItemStyles_unstable,
useAvatarGroupItem_unstable,
useGroupChildClassName,
} from './components/AvatarGroupItem/index';
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
export * from './components/AvatarGroupPopover/index';
export type {
AvatarGroupPopoverProps,
AvatarGroupPopoverSlots,
AvatarGroupPopoverState,
} from './components/AvatarGroupPopover/index';
export {
AvatarGroupPopover,
avatarGroupPopoverClassNames,
renderAvatarGroupPopover_unstable,
useAvatarGroupPopoverContextValues_unstable,
useAvatarGroupPopoverStyles_unstable,
useAvatarGroupPopover_unstable,
} from './components/AvatarGroupPopover/index';
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
export * from './Avatar.types';
export * from './Avatar';
export * from './renderAvatar';
export * from './useAvatar';
export * from './useAvatarStyles.styles';
export type {
AvatarNamedColor,
AvatarProps,
AvatarShape,
AvatarSize,
AvatarSizes,
AvatarSlots,
AvatarState,
} from './Avatar.types';
export { Avatar } from './Avatar';
export { renderAvatar_unstable } from './renderAvatar';
export { DEFAULT_STRINGS, useAvatar_unstable } from './useAvatar';
export { avatarClassNames, useAvatarStyles_unstable, useSizeStyles } from './useAvatarStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
export * from './AvatarGroup';
export * from './AvatarGroup.types';
export * from './renderAvatarGroup';
export * from './useAvatarGroup';
export * from './useAvatarGroupStyles.styles';
export * from './useAvatarGroupContextValues';
export { AvatarGroup } from './AvatarGroup';
export type {
AvatarGroupContextValue,
AvatarGroupContextValues,
AvatarGroupProps,
AvatarGroupSlots,
AvatarGroupState,
} from './AvatarGroup.types';
export { renderAvatarGroup_unstable } from './renderAvatarGroup';
export { defaultAvatarGroupSize, useAvatarGroup_unstable } from './useAvatarGroup';
export { avatarGroupClassNames, useAvatarGroupStyles_unstable } from './useAvatarGroupStyles.styles';
export { useAvatarGroupContextValues } from './useAvatarGroupContextValues';
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
export * from './AvatarGroupItem';
export * from './AvatarGroupItem.types';
export * from './renderAvatarGroupItem';
export * from './useAvatarGroupItem';
export * from './useAvatarGroupItemStyles.styles';
export { AvatarGroupItem } from './AvatarGroupItem';
export type { AvatarGroupItemProps, AvatarGroupItemSlots, AvatarGroupItemState } from './AvatarGroupItem.types';
export { renderAvatarGroupItem_unstable } from './renderAvatarGroupItem';
export { useAvatarGroupItem_unstable } from './useAvatarGroupItem';
export {
avatarGroupItemClassNames,
useAvatarGroupItemStyles_unstable,
useGroupChildClassName,
} from './useAvatarGroupItemStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
export * from './AvatarGroupPopover';
export * from './AvatarGroupPopover.types';
export * from './renderAvatarGroupPopover';
export * from './useAvatarGroupPopover';
export * from './useAvatarGroupPopoverStyles.styles';
export * from './useAvatarGroupPopoverContextValues';
export { AvatarGroupPopover } from './AvatarGroupPopover';
export type {
AvatarGroupPopoverProps,
AvatarGroupPopoverSlots,
AvatarGroupPopoverState,
} from './AvatarGroupPopover.types';
export { renderAvatarGroupPopover_unstable } from './renderAvatarGroupPopover';
export { useAvatarGroupPopover_unstable } from './useAvatarGroupPopover';
export {
avatarGroupPopoverClassNames,
useAvatarGroupPopoverStyles_unstable,
} from './useAvatarGroupPopoverStyles.styles';
export { useAvatarGroupPopoverContextValues_unstable } from './useAvatarGroupPopoverContextValues';
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './AvatarGroupContext';
export * from './AvatarContext';
export { AvatarGroupContext, AvatarGroupProvider, useAvatarGroupContext_unstable } from './AvatarGroupContext';
export type { AvatarContextValue } from './AvatarContext';
export { AvatarContextProvider, useAvatarContext } from './AvatarContext';
9 changes: 8 additions & 1 deletion packages/react-components/react-badge/library/src/Badge.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export * from './components/Badge/index';
export type { BadgeProps, BadgeSlots, BadgeState } from './components/Badge/index';
export {
Badge,
badgeClassNames,
renderBadge_unstable,
useBadgeStyles_unstable,
useBadge_unstable,
} from './components/Badge/index';
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
export * from './components/CounterBadge/index';
export type { CounterBadgeProps, CounterBadgeState } from './components/CounterBadge/index';
export {
CounterBadge,
counterBadgeClassNames,
useCounterBadgeStyles_unstable,
useCounterBadge_unstable,
} from './components/CounterBadge/index';
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
export * from './components/PresenceBadge/index';
export type { PresenceBadgeProps, PresenceBadgeState, PresenceBadgeStatus } from './components/PresenceBadge/index';
export {
PresenceBadge,
presenceAvailableFilled,
presenceAvailableRegular,
presenceAwayFilled,
presenceAwayRegular,
presenceBadgeClassNames,
presenceBlockedRegular,
presenceBusyFilled,
presenceDndFilled,
presenceDndRegular,
presenceOfflineRegular,
presenceOofRegular,
presenceUnknownRegular,
usePresenceBadgeStyles_unstable,
usePresenceBadge_unstable,
} from './components/PresenceBadge/index';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './Badge';
export { Badge } from './Badge';
// Explicit exports to omit BadgeCommons
export type { BadgeProps, BadgeSlots, BadgeState } from './Badge.types';
export * from './renderBadge';
export * from './useBadge';
export * from './useBadgeStyles.styles';
export { renderBadge_unstable } from './renderBadge';
export { useBadge_unstable } from './useBadge';
export { badgeClassNames, useBadgeStyles_unstable } from './useBadgeStyles.styles';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './CounterBadge';
export * from './CounterBadge.types';
export * from './useCounterBadge';
export * from './useCounterBadgeStyles.styles';
export { CounterBadge } from './CounterBadge';
export type { CounterBadgeProps, CounterBadgeState } from './CounterBadge.types';
export { useCounterBadge_unstable } from './useCounterBadge';
export { counterBadgeClassNames, useCounterBadgeStyles_unstable } from './useCounterBadgeStyles.styles';
Loading

0 comments on commit 2c2f470

Please sign in to comment.