@theroutingcompany/components 0.0.30-alpha.6 → 0.0.30-alpha.9
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/README.md +1 -1
- package/dist/trc-components.es.js +2732 -2724
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +42 -34
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Dialog/Dialog.d.ts +1 -1
- package/types/components/Text/Text.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentPropsWithRef } from 'react';
|
|
2
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
2
|
+
import type { ComponentPropsWithRef } from 'react';
|
|
3
3
|
export declare const overlayStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
4
4
|
export declare const dialogWidths: {
|
|
5
5
|
readonly small: "360px";
|
|
@@ -1,5 +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
4
|
type TextElements = 'p' | 'div' | 'span' | 'legend' | 'caption' | 'figcaption' | 'strong' | 'em' | 'strong' | 'abbr' | 'mark' | 'q' | 'small' | 'time';
|
|
4
5
|
interface BodyTextProps extends ComponentPropsWithoutRef<'p'> {
|
|
5
6
|
type: 'body';
|
|
@@ -23,7 +24,7 @@ export type TextProps = Partial<NumberTextProps | CaptionTextProps | BodyTextPro
|
|
|
23
24
|
italic?: boolean;
|
|
24
25
|
as?: TextElements;
|
|
25
26
|
color?: string;
|
|
26
|
-
};
|
|
27
|
+
} & SpaceProps;
|
|
27
28
|
type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
|
|
28
29
|
export declare const Text: PolymorphicText;
|
|
29
30
|
export {};
|