diff --git a/static/app/styles/space.tsx b/static/app/styles/space.tsx index 1ed0ab9a07b71d..4592d24ed32ff5 100644 --- a/static/app/styles/space.tsx +++ b/static/app/styles/space.tsx @@ -12,7 +12,67 @@ const SPACES = { export type ValidSize = keyof typeof SPACES; /** - * @deprecated prefer using `theme.space` + * @deprecated prefer `theme.space['2xs']` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated prefer `theme.space.xs` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated prefer `theme.space.sm` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated prefer `theme.space.md` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated prefer `theme.space.lg` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated prefer `theme.space.xl` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated prefer `theme.space['2xl']` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated prefer `theme.space['3xl']` + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated replace with `theme.space.*` value from the + * + * + * | before | after | value | + * | ------ | ------ | -------------------- | + * | | `none` | `0px` (new!) | + * | `0.25` | `2xs` | `2px` | + * | `0.5` | `xs` | `4px` | + * | `0.75` | `sm` | `6px` | + * | `1` | `md` | `8px` | + * | `1.5` | `lg` | `12px` | + * | `2` | `xl` | `16px` | + * | `3` | `2xl` | `24px` (from `20px`) | + * | `4` | `3xl` | `32px` (from `30px`) | + */ +function space(size: S): (typeof SPACES)[S]; +/** + * @deprecated replace with `theme.space.*` + * | before | after | value | + * | ------ | ------ | -------------------- | + * | | `none` | `0px` (new!) | + * | `0.25` | `2xs` | `2px` | + * | `0.5` | `xs` | `4px` | + * | `0.75` | `sm` | `6px` | + * | `1` | `md` | `8px` | + * | `1.5` | `lg` | `12px` | + * | `2` | `xl` | `16px` | + * | `3` | `2xl` | `24px` (from `20px`) | + * | `4` | `3xl` | `32px` (from `30px`) | */ function space(size: S): (typeof SPACES)[S] { return SPACES[size];