@theroutingcompany/components 0.0.35 → 0.0.36

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.35",
3
+ "version": "0.0.36",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -1,6 +1,6 @@
1
1
  import type * as Polymorphic from '@radix-ui/react-polymorphic';
2
2
  import { type ComponentPropsWithoutRef } from 'react';
3
- import { type SpaceProps } from 'styled-system';
3
+ import { type SpaceProps, type SizeProps, type LayoutProps } from 'styled-system';
4
4
  type FontStyle = 'normal' | 'italic';
5
5
  export type TextElements = 'p' | 'div' | 'span' | 'legend' | 'caption' | 'figcaption' | 'strong' | 'em' | 'strong' | 'abbr' | 'mark' | 'q' | 'small' | 'time';
6
6
  interface BodyTextProps extends ComponentPropsWithoutRef<'p'> {
@@ -22,7 +22,7 @@ export type TextProps = Partial<NumberTextProps | BodyTextProps> & {
22
22
  as?: TextElements;
23
23
  color?: string;
24
24
  fontStyle?: FontStyle;
25
- } & SpaceProps;
25
+ } & SpaceProps & SizeProps & LayoutProps;
26
26
  export type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
27
27
  export declare const Text: PolymorphicText;
28
28
  export default Text;