Skip to content

Commit

Permalink
updated deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffrey Chong committed Sep 7, 2023
1 parent 2faae9e commit 234cea4
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 24 deletions.
3 changes: 1 addition & 2 deletions draft-packages/avatar/KaizenDraft/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ const renderInitials = (
}

/**
* {@link https://cultureamp.design/components/avatar/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-avatar-avatar--default-story Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const Avatar = ({
fullName,
Expand Down
3 changes: 1 addition & 2 deletions draft-packages/avatar/KaizenDraft/Avatar/AvatarGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ const renderAvatars = (
)

/**
* {@link https://cultureamp.design/components/avatar-group/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-avatar-avatar-group--default-story Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const AvatarGroup = ({
size = "medium",
Expand Down
3 changes: 1 addition & 2 deletions draft-packages/badge/KaizenDraft/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ interface DotProps extends Omit<CommonProps, "variant"> {
export type BadgeProps = CommonProps | DotProps

/**
* {@link https://cultureamp.design/components/badge/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-badge--default-story Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const Badge = ({
children,
Expand Down
3 changes: 1 addition & 2 deletions draft-packages/card/KaizenDraft/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export interface CardProps
}

/**
* {@link https://cultureamp.design/components/card/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/story/components-card--default-story Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const Card = ({
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ type State = {
}

/**
* {@link https://cultureamp.design/components/collapsible/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-collapsible--single-collapsible-kaizen-site-demo Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export class Collapsible extends React.Component<CollapsibleProps, State> {
public state = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export interface CollapsibleGroupProps
}

/**
* {@link https://cultureamp.design/components/collapsible/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-collapsible--collapsible-group-default Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const CollapsibleGroup = ({
children,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export type ExpertAdviceCollapsibleProps = Omit<
>

/**
* {@link https://cultureamp.design/components/collapsible/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-collapsible-expert-advice-collapsible--default-story Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const ExpertAdviceCollapsible = (
props: ExpertAdviceCollapsibleProps
Expand Down
3 changes: 1 addition & 2 deletions draft-packages/divider/KaizenDraft/Divider/Divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export interface DividerProps
}

/**
* {@link https://cultureamp.design/components/divider/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-divider--default-story Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const Divider = ({
variant,
Expand Down
3 changes: 3 additions & 0 deletions packages/brand-moment/src/BrandMoment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export interface BrandMomentProps
}
}

/**
* @deprecated Please use the same component from `@kaizen/components`
*/
export const BrandMoment = ({
mood,
illustration,
Expand Down
3 changes: 3 additions & 0 deletions packages/brand/src/Brand/Brand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export interface BrandProps
reversed?: boolean
}

/**
* @deprecated Please use the same component from `@kaizen/components`
*/
export const Brand = ({
variant,
alt,
Expand Down
3 changes: 1 addition & 2 deletions packages/button/src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export type ButtonProps = GenericProps &
}

/**
* {@link https://cultureamp.design/components/button/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-button--default-kaizen-site-demo Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const Button = forwardRef(
(props: ButtonProps, ref: Ref<ButtonRef | undefined>) => (
Expand Down
3 changes: 1 addition & 2 deletions packages/button/src/Button/DirectionalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ const iconMap = {
}

/**
* {@link https://cultureamp.design/components/pagination/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/story/components-button-pagination-buttons--default-kaizen-directional-link Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const DirectionalLink = (props: DirectionalLinkProps): JSX.Element => (
<GenericButton
Expand Down
3 changes: 1 addition & 2 deletions packages/button/src/Button/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export type IconButtonProps = GenericProps &
}

/**
* {@link https://cultureamp.design/components/icon-button/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/docs/components-button--default-kaizen-demo-icon Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const IconButton = (props: IconButtonProps): JSX.Element => (
<GenericButton iconButton {...props} />
Expand Down
3 changes: 1 addition & 2 deletions packages/button/src/Button/PaginationLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export interface PaginationLinkProps extends GenericProps {
}

/**
* {@link https://cultureamp.design/components/pagination/ Guidance} |
* {@link https://cultureamp.design/storybook/?path=/story/components-button-pagination-buttons--default-kaizen-pagination-link Storybook}
* @deprecated Please use the same component from `@kaizen/components`
*/
export const PaginationLink = (props: PaginationLinkProps): JSX.Element => (
<GenericButton
Expand Down
3 changes: 3 additions & 0 deletions packages/button/src/Button/components/GenericButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ const getCustomProps = (props: Record<string, any>): Record<string, string> => {
}, {})
}

/**
* @deprecated We no longer support the external use of GenericButton
*/
const GenericButton = forwardRef(
(props: Props, ref: Ref<ButtonRef | undefined>) => {
const buttonRef = useRef<HTMLButtonElement | HTMLAnchorElement>()
Expand Down

0 comments on commit 234cea4

Please sign in to comment.