@theroutingcompany/components 0.0.54 → 0.0.55-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/dist/trc-components.es.js +6379 -6410
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +370 -407
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/ButtonV2/ButtonV2.d.ts +1 -1
- package/types/components/TabList/TabList.d.ts +1 -1
- package/types/components/Text/Text.d.ts +15 -5
package/package.json
CHANGED
|
@@ -24,5 +24,5 @@ export interface ButtonPropsV2 extends BoxProps {
|
|
|
24
24
|
onBlur?: FocusHandler;
|
|
25
25
|
}
|
|
26
26
|
export type PolymorphicButton = ForwardRefComponent<'button', ButtonPropsV2>;
|
|
27
|
-
export declare const ButtonV2:
|
|
27
|
+
export declare const ButtonV2: PolymorphicButton;
|
|
28
28
|
export default ButtonV2;
|
|
@@ -10,7 +10,7 @@ export declare const TabList: {
|
|
|
10
10
|
displayName: string;
|
|
11
11
|
List: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<RadixTabs.TabsListProps & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
12
12
|
Trigger: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<RadixTabs.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>, any, TriggerProps, never>;
|
|
13
|
-
Action: import("styled-components").StyledComponent<
|
|
13
|
+
Action: import("styled-components").StyledComponent<import("components/ButtonV2/ButtonV2").PolymorphicButton, any, {}, never>;
|
|
14
14
|
Content: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<RadixTabs.TabsContentProps & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
15
15
|
};
|
|
16
16
|
interface TriggerProps extends RadixTabs.TabsTriggerProps {
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import type * as Polymorphic from '@radix-ui/react-polymorphic';
|
|
2
|
+
import { type BoxProps } from 'components/Box';
|
|
2
3
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
3
4
|
import { type LayoutProps, type SizeProps, type SpaceProps } from 'styled-system';
|
|
4
|
-
type
|
|
5
|
+
export type TextType = 'body' | 'number';
|
|
6
|
+
export type TextSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
7
|
+
export type FontStyle = 'normal' | 'italic';
|
|
5
8
|
export type TextElements = 'p' | 'div' | 'span' | 'legend' | 'caption' | 'figcaption' | 'strong' | 'em' | 'strong' | 'abbr' | 'mark' | 'q' | 'small' | 'time';
|
|
6
|
-
interface
|
|
9
|
+
interface TextBaseProps {
|
|
10
|
+
type: TextType;
|
|
11
|
+
fontStyle?: FontStyle;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
fontWeight?: string;
|
|
14
|
+
truncate?: boolean;
|
|
15
|
+
size?: TextSize;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
}
|
|
18
|
+
interface BodyTextProps extends TextBaseProps {
|
|
7
19
|
type: 'body';
|
|
8
|
-
size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
9
|
-
bold?: boolean;
|
|
10
20
|
as?: TextElements;
|
|
11
21
|
}
|
|
12
22
|
interface NumberTextProps extends ComponentPropsWithoutRef<'p'> {
|
|
@@ -23,7 +33,7 @@ export type TextProps = Partial<NumberTextProps | BodyTextProps> & {
|
|
|
23
33
|
color?: string;
|
|
24
34
|
fontStyle?: FontStyle;
|
|
25
35
|
truncate?: boolean;
|
|
26
|
-
} & SpaceProps & SizeProps & LayoutProps;
|
|
36
|
+
} & SpaceProps & SizeProps & LayoutProps & BoxProps;
|
|
27
37
|
export type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
|
|
28
38
|
export declare const Text: PolymorphicText;
|
|
29
39
|
export default Text;
|