@theroutingcompany/components 0.0.45 → 0.0.46-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 +2089 -2033
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +329 -328
- 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 +9 -2
- package/types/components/Divider/Divider.d.ts +10 -0
- package/types/components/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import { AccordionItemProps } from '@radix-ui/react-accordion';
|
|
2
3
|
import { type ReactNode } from 'react';
|
|
3
4
|
export declare const SectionTitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
5
|
export interface SectionHeaderProps extends AccordionPrimitive.AccordionHeaderProps {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
icon?: ReactNode;
|
|
8
|
+
bold?: boolean;
|
|
7
9
|
}
|
|
8
|
-
export declare function SectionHeader({ children, icon, ...rest }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function SectionHeader({ children, icon, bold, ...rest }: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
type SectionItemProps = {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
includeBottomDivider?: boolean;
|
|
14
|
+
} & AccordionItemProps;
|
|
15
|
+
export declare function SectionItem({ children, includeBottomDivider, ...rest }: SectionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
16
|
export interface AccordionProps {
|
|
10
17
|
children: ReactNode;
|
|
11
18
|
type: 'multiple' | 'single';
|
|
@@ -13,7 +20,7 @@ export interface AccordionProps {
|
|
|
13
20
|
declare const Accordion: {
|
|
14
21
|
({ children, type, ...rest }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
22
|
displayName: string;
|
|
16
|
-
Item:
|
|
23
|
+
Item: typeof SectionItem;
|
|
17
24
|
Header: typeof SectionHeader;
|
|
18
25
|
Content: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AccordionPrimitive.AccordionContentProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
19
26
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type BoxProps } from 'components/Box/Box';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type DividerBoxProps = Omit<BoxProps, 'as'> & {
|
|
4
|
+
'data-id'?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const Divider: React.ForwardRefExoticComponent<Omit<BoxProps, "as"> & {
|
|
8
|
+
'data-id'?: string | undefined;
|
|
9
|
+
color?: string | undefined;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -12,6 +12,7 @@ export * from './Calendar';
|
|
|
12
12
|
export * from './Checkbox/Checkbox';
|
|
13
13
|
export * from './ComboBox';
|
|
14
14
|
export * from './Dialog/Dialog';
|
|
15
|
+
export * from './Divider/Divider';
|
|
15
16
|
export * from './Drawer';
|
|
16
17
|
export * from './DropdownMenu/DropdownMenu';
|
|
17
18
|
export * from './Fieldset/Fieldset';
|