@theroutingcompany/components 0.0.9 → 0.0.11
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 +8 -0
- package/dist/trc-components.es.js +8671 -6335
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +385 -240
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/types/components/Dialog/Dialog.d.ts +5 -6
- package/types/components/FileUpload/FileUpload.d.ts +2 -2
- package/types/components/Input/InputBase.d.ts +1 -1
- package/types/components/Label/Label.d.ts +5 -4
- package/types/components/Tabs/Tabs.d.ts +1 -0
- package/types/components/index.d.ts +4 -1
- package/types/helpers/typeHelpers.d.ts +1 -1
- package/types/components/Flex.d.ts +0 -0
- package/types/components/ProgressBar/ProgressBar.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"types"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"
|
|
24
|
+
"postpublish": "npm run chromatic",
|
|
25
|
+
"prepublish": "npm run build",
|
|
25
26
|
"format": "prettier ./dist/**/*.{js,css,scss} --write --no-config",
|
|
26
27
|
"clean": "rimraf ./dist ./types",
|
|
27
28
|
"storybook": "storybook dev -p 6006",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
2
|
import type { ComponentPropsWithRef } from 'react';
|
|
4
3
|
export declare const overlayShow: import("styled-components").Keyframes;
|
|
@@ -14,11 +13,11 @@ type StyledContentProps = {
|
|
|
14
13
|
};
|
|
15
14
|
export type DialogContentProps = StyledContentProps & DialogPrimitive.DialogContentProps & ComponentPropsWithRef<'div'>;
|
|
16
15
|
export declare function DialogContent({ children, size, ...props }: DialogContentProps): JSX.Element;
|
|
17
|
-
export declare const DialogTitle: import("styled-components").StyledComponent<
|
|
18
|
-
export declare const DialogDescription: import("styled-components").StyledComponent<
|
|
16
|
+
export declare const DialogTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>, any, {}, never>;
|
|
17
|
+
export declare const DialogDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<DialogPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
19
18
|
export declare const DialogFooter: import("styled-components").StyledComponent<"footer", any, {}, never>;
|
|
20
19
|
export declare const DialogCloseButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
21
|
-
export declare const Dialog:
|
|
22
|
-
export declare const DialogTrigger:
|
|
23
|
-
export declare const DialogClose:
|
|
20
|
+
export declare const Dialog: import("react").FC<DialogPrimitive.DialogProps>;
|
|
21
|
+
export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
export declare const DialogClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
23
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type FileDescription = {
|
|
2
|
+
export type FileDescription = {
|
|
3
3
|
name: string;
|
|
4
4
|
mime: `${string}/${string}`;
|
|
5
5
|
};
|
|
@@ -9,5 +9,5 @@ type DropTargetProps = {
|
|
|
9
9
|
onAddFile: (f: File) => void;
|
|
10
10
|
onDeleteFile: () => void;
|
|
11
11
|
};
|
|
12
|
-
export declare
|
|
12
|
+
export declare const FileUpload: import("react").ForwardRefExoticComponent<DropTargetProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ComponentPropsWithoutStyles } from 'helpers/typeHelpers';
|
|
3
|
-
interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
|
|
3
|
+
export interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
|
|
4
4
|
size?: 'small' | 'medium' | 'large';
|
|
5
5
|
bold?: boolean;
|
|
6
6
|
/** Screen Reader Only */
|
|
7
7
|
srOnly?: boolean;
|
|
8
|
-
display?: 'flex' | 'inline-flex' | 'inline' | '
|
|
8
|
+
display?: 'flex' | 'inline-flex' | 'inline' | 'block' | undefined;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
as?: "legend" | "span" | undefined;
|
|
9
11
|
}
|
|
10
12
|
export declare function Label({ children, bold, size, display, srOnly, ...remainingProps }: LabelProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -4,4 +4,5 @@ export type { TabsContentProps, TabsTriggerProps, TabsProps, } from '@radix-ui/r
|
|
|
4
4
|
export declare const TabsRoot: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
5
5
|
export declare const TabsList: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsListProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
6
6
|
export declare const TabsTrigger: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
7
|
+
export declare const TabTriggerWithIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
7
8
|
export declare const TabsContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsContentProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
@@ -5,20 +5,23 @@ export * from './Button/Button';
|
|
|
5
5
|
export * from './Checkbox/Checkbox';
|
|
6
6
|
export * from './Dialog/Dialog';
|
|
7
7
|
export * from './Fieldset/Fieldset';
|
|
8
|
+
export * from './FileUpload/FileUpload';
|
|
8
9
|
export * from './FormControl/FormControl';
|
|
9
10
|
export * from './Heading/Heading';
|
|
10
11
|
export * from './IconButton/IconButton';
|
|
11
12
|
export * from './Input/NumberInput/NumberInput';
|
|
12
13
|
export * from './Input/TextInput/TextInput';
|
|
13
14
|
export * from './Label/Label';
|
|
15
|
+
export * from './Tabs/Tabs';
|
|
14
16
|
export * from './Toast/Toast';
|
|
15
17
|
export * from './Page/Page';
|
|
16
18
|
export * from './Paginator/Paginator';
|
|
17
19
|
export * from './Popover/Popover';
|
|
18
20
|
export * from './RadioGroup/RadioGroup';
|
|
19
21
|
export * from './Select/Select';
|
|
20
|
-
export * from
|
|
22
|
+
export * from './Search/Search';
|
|
21
23
|
export * from './Switch/Switch';
|
|
22
24
|
export * from './Text/Text';
|
|
23
25
|
export * from './Title/Title';
|
|
24
26
|
export * from './Tooltip/Tooltip';
|
|
27
|
+
export * from './Tooltip/IconTooltip';
|
|
@@ -5,7 +5,7 @@ declare module 'csstype' {
|
|
|
5
5
|
[index: `--${string}`]: string | number | undefined;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
export type ComponentPropsWithoutStyles<E extends ElementType> = Omit<ComponentPropsWithoutRef<E>, 'style'
|
|
8
|
+
export type ComponentPropsWithoutStyles<E extends ElementType> = Omit<ComponentPropsWithoutRef<E>, 'style'>;
|
|
9
9
|
type RemovePrefix<S extends string, Prefix extends string = 'is'> = S extends `${Prefix}${infer R}` ? Uncapitalize<R> : never;
|
|
10
10
|
export type RenameMisprefixedProps<InputProps extends Record<PropertyKey, any>, Prefix extends string, MisnamedKeys extends `${Prefix}${string}`> = Omit<InputProps, MisnamedKeys> & {
|
|
11
11
|
[S in MisnamedKeys as RemovePrefix<S, Prefix>]?: InputProps[S];
|
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type AriaProgressBarProps } from '@react-aria/progress';
|
|
3
|
-
type ProgressBarProps = {
|
|
4
|
-
width?: number | undefined;
|
|
5
|
-
} & AriaProgressBarProps;
|
|
6
|
-
export declare function ProgressBar(props: ProgressBarProps): JSX.Element;
|
|
7
|
-
export {};
|