@theroutingcompany/components 0.0.39 → 0.0.40-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 +4 -4
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +2 -2
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Accordion/Accordion.d.ts +8 -7
- package/types/components/Text/Text.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
export declare const SectionTitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
|
-
export
|
|
4
|
+
export interface SectionHeaderProps extends AccordionPrimitive.AccordionHeaderProps {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
icon?: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function SectionHeader({ children, icon }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
export declare function SectionHeader({ children, icon, ...rest }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface AccordionProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
type: 'multiple' | 'single';
|
|
12
|
+
}
|
|
9
13
|
declare const Accordion: {
|
|
10
|
-
({ children, type, ...rest }:
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
type: 'multiple' | 'single';
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
({ children, type, ...rest }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
displayName: string;
|
|
15
16
|
Item: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AccordionPrimitive.AccordionItemProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
16
17
|
Header: typeof SectionHeader;
|
|
@@ -5,12 +5,12 @@ 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'> {
|
|
7
7
|
type: 'body';
|
|
8
|
-
size?: 'small' | 'medium' | 'large';
|
|
8
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
9
9
|
bold?: boolean;
|
|
10
10
|
as?: TextElements;
|
|
11
11
|
}
|
|
12
12
|
interface NumberTextProps extends ComponentPropsWithoutRef<'p'> {
|
|
13
|
-
size?: 'small' | 'medium' | 'large';
|
|
13
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
14
14
|
type: 'number';
|
|
15
15
|
as?: TextElements;
|
|
16
16
|
}
|