@theroutingcompany/components 0.0.30-alpha.9 → 0.0.31-alpha.0

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-alpha.9",
3
+ "version": "0.0.31-alpha.0",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -10,7 +10,7 @@ type DialogWidth = keyof typeof dialogWidths;
10
10
  type StyledContentProps = {
11
11
  size?: DialogWidth;
12
12
  };
13
- export declare const dialogContentStyles: import("styled-components").FlattenSimpleInterpolation;
13
+ export declare const dialogContentStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<StyledContentProps, any>>;
14
14
  export type DialogContentProps = StyledContentProps & DialogPrimitive.DialogContentProps & ComponentPropsWithRef<'div'>;
15
15
  export declare function DialogContent({ children, size, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
16
16
  export declare const dialogTitleStyles: string;
@@ -11,5 +11,7 @@ export interface LabelProps extends ComponentPropsWithoutStyles<'label'>, Omit<B
11
11
  as?: 'legend' | 'span' | undefined;
12
12
  style?: Record<string, any>;
13
13
  color?: string;
14
+ pointer?: boolean;
14
15
  }
15
- export declare function Label({ children, bold, size, display, srOnly, style, color, ...remainingProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Label({ children, bold, size, display, pointer, srOnly, style, color, ...remainingProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
17
+ export default Label;
@@ -1,3 +1,4 @@
1
+ import { BoxProps } from 'components/Box';
1
2
  import type { ComponentPropsWithoutRef } from 'react';
2
3
  /** Wrapper for page content with padding
3
4
  *
@@ -9,4 +10,4 @@ import type { ComponentPropsWithoutRef } from 'react';
9
10
  */
10
11
  export declare const PageHeader: import("styled-components").StyledComponent<"header", any, {}, never>;
11
12
  export declare const StickyPageHeader: ({ children, className, }: ComponentPropsWithoutRef<'div'>) => import("react/jsx-runtime").JSX.Element;
12
- export declare const PageHeaderContent: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ export declare const PageHeaderContent: import("styled-components").StyledComponent<import("../..").ForwardRefComponent<"div", BoxProps>, any, BoxProps, never>;
@@ -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,17 @@ 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;
23
18
  bold?: boolean;
24
19
  italic?: boolean;
25
20
  as?: TextElements;
26
21
  color?: string;
27
22
  } & SpaceProps;
28
- type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
23
+ export type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
29
24
  export declare const Text: PolymorphicText;
30
- export {};
25
+ 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 {};