@theroutingcompany/components 0.0.30 → 0.0.31-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theroutingcompany/components",
3
- "version": "0.0.30",
3
+ "version": "0.0.31-alpha.1",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -1,7 +1,7 @@
1
1
  import type * as Polymorphic from '@radix-ui/react-polymorphic';
2
2
  import { type ComponentPropsWithoutRef } from 'react';
3
3
  import { type SpaceProps } from 'styled-system';
4
- type TextElements = 'p' | 'div' | 'span' | 'legend' | 'caption' | 'figcaption' | 'strong' | 'em' | 'strong' | 'abbr' | 'mark' | 'q' | 'small' | 'time';
4
+ export type TextElements = 'p' | 'div' | 'span' | 'legend' | 'caption' | 'figcaption' | 'strong' | 'em' | 'strong' | 'abbr' | 'mark' | 'q' | 'small' | 'time';
5
5
  interface BodyTextProps extends ComponentPropsWithoutRef<'p'> {
6
6
  type: 'body';
7
7
  size?: 'small' | 'medium' | 'large';
@@ -9,22 +9,18 @@ interface BodyTextProps extends ComponentPropsWithoutRef<'p'> {
9
9
  as?: TextElements;
10
10
  }
11
11
  interface NumberTextProps extends ComponentPropsWithoutRef<'p'> {
12
- size?: 'xsmall' | 'small' | 'medium' | 'large';
12
+ size?: 'small' | 'medium' | 'large';
13
13
  type: 'number';
14
14
  as?: TextElements;
15
15
  }
16
- interface CaptionTextProps extends ComponentPropsWithoutRef<'p'> {
17
- size?: 'small' | 'medium';
18
- type: 'caption';
19
- as?: TextElements;
20
- }
21
- export type TextProps = Partial<NumberTextProps | CaptionTextProps | BodyTextProps> & {
16
+ export type TextProps = Partial<NumberTextProps | BodyTextProps> & {
22
17
  weak?: boolean;
18
+ negative?: boolean;
23
19
  bold?: boolean;
24
20
  italic?: boolean;
25
21
  as?: TextElements;
26
22
  color?: string;
27
23
  } & SpaceProps;
28
- type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
24
+ export type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
29
25
  export declare const Text: PolymorphicText;
30
26
  export default Text;
@@ -1,19 +1,17 @@
1
1
  import type * as Polymorphic from '@radix-ui/react-polymorphic';
2
2
  import { type BoxProps } from 'components/Box';
3
- interface TitleBaseProps extends BoxProps {
4
- weight?: 'light' | 'normal' | 'regular' | 'medium' | 'bold';
5
- }
6
3
  export declare const TitleBase: import("styled-components").StyledComponent<import("helpers").ForwardRefComponent<"div", BoxProps>, any, {
7
4
  color?: string | undefined;
8
- } & Omit<TitleBaseProps, "color">, never>;
5
+ } & Omit<BoxProps & {
6
+ $normal: boolean;
7
+ }, "color">, never>;
9
8
  export interface TitleProps {
10
- as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'legend' | 'figcaption';
11
- size?: 'small' | 'medium' | 'large' | 'xsmall';
12
- weight?: 'light' | 'normal' | 'regular' | 'medium' | 'bold';
9
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
10
+ looksLike?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body';
13
11
  height?: string;
14
12
  color?: string;
15
13
  weak?: boolean;
14
+ normal?: boolean;
16
15
  }
17
16
  export type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', TitleProps>;
18
17
  export declare const Title: PolymorphicTitle;
19
- export {};