@mparticle/aquarium 1.35.0 → 1.35.1-fix-typography.1

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.
@@ -1,30 +1,34 @@
1
- import { type TypographyProps as AntTypographyProps } from 'antd';
2
- import { type ReactNode } from 'react';
3
- import { type TextProps as AntTextProps } from 'antd/es/typography/Text';
4
- import { type TitleProps as AntTitleProps } from 'antd/es/typography/Title';
5
- import { type LinkProps as AntLinkProps } from 'antd/es/typography/Link';
6
- import { type ParagraphProps as AntParagraphProps } from 'antd/es/typography/Paragraph';
7
- export interface ITypographyProps extends AntTypographyProps {
1
+ import type { ReactNode } from 'react';
2
+ import type { TextProps as AntTextProps } from 'antd/es/typography/Text';
3
+ import type { TitleProps as AntTitleProps } from 'antd/es/typography/Title';
4
+ import type { LinkProps as AntLinkProps } from 'antd/es/typography/Link';
5
+ import type { ParagraphProps as AntParagraphProps } from 'antd/es/typography/Paragraph';
6
+ import { type TypographyColor } from './colors';
7
+ type TypographySize = 'base' | 'sm' | 'lg' | 'xl' | number;
8
+ interface InternalTypographyProps {
9
+ size?: TypographySize;
10
+ color?: TypographyColor;
8
11
  children: ReactNode;
9
12
  }
10
13
  export declare const Typography: {
11
- (props: ITypographyProps): import("react/jsx-runtime").JSX.Element;
12
- Text: ({ size, ...props }: ITextProps) => import("react/jsx-runtime").JSX.Element;
14
+ (): import("react/jsx-runtime").JSX.Element;
15
+ Text: (props: ITextProps) => import("react/jsx-runtime").JSX.Element;
13
16
  Title: (props: ITitleProps) => import("react/jsx-runtime").JSX.Element;
14
17
  Link: (props: ILinkProps) => import("react/jsx-runtime").JSX.Element;
15
18
  Paragraph: (props: IParagraphProps) => import("react/jsx-runtime").JSX.Element;
16
19
  };
17
- type TypographySize = 'base' | 'sm' | 'lg' | 'xl';
18
- export interface ITextProps extends AntTextProps {
19
- size?: TypographySize;
20
+ type InternalTextProps = InternalTypographyProps & AntTextProps;
21
+ type InternalTitleProps = InternalTypographyProps & AntTitleProps;
22
+ type InternalLinkProps = InternalTypographyProps & AntLinkProps;
23
+ type InternalParagraphProps = InternalTypographyProps & AntParagraphProps;
24
+ export interface ITextProps extends InternalTextProps {
25
+ tooltip?: boolean;
20
26
  }
21
- interface ITitleProps extends AntTitleProps {
22
- children: ReactNode;
27
+ export interface ITitleProps extends InternalTitleProps {
23
28
  }
24
- export interface ILinkProps extends AntLinkProps {
25
- children: ReactNode;
29
+ export interface ILinkProps extends InternalLinkProps {
30
+ tooltip?: boolean;
26
31
  }
27
- export interface IParagraphProps extends AntParagraphProps {
28
- children: ReactNode;
32
+ export interface IParagraphProps extends InternalParagraphProps {
29
33
  }
30
34
  export {};
@@ -0,0 +1,3 @@
1
+ export declare const TypographyColors: readonly ["ColorText", "ColorTextSecondary", "ColorTextTertiary", "ColorTextQuaternary", "ColorInfoText", "ColorInfoTextActive", "ColorPrimaryTextHover", "ColorPrimaryText", "ColorPrimaryTextActive", "ColorSuccessTextHover", "ColorSuccessText", "ColorSuccessTextActive", "ColorErrorTextHover", "ColorErrorText", "ColorErrorTextActive", "ColorWarningTextHover", "ColorWarningText", "ColorWarningTextActive", "ColorLink", "ColorLinkHover", "ColorLinkActive", "ColorTextPlaceholder", "ColorTextDisabled", "ColorTextHeading", "ColorTextLabel", "ColorTextDescription", "ColorTextLightSolid"];
2
+ export type TypographyColor = (typeof TypographyColors)[number];
3
+ export declare function getColorFromStyles(color: TypographyColor | string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/aquarium",
3
- "version": "1.35.0",
3
+ "version": "1.35.1-fix-typography.1",
4
4
  "description": "mParticle Component Library",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [