@theroutingcompany/components 0.0.1 → 0.0.2
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 +2181 -2097
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +210 -181
- package/dist/trc-components.umd.js.map +1 -1
- package/package.json +6 -1
- package/types/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/types/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/components/Input/InputBase.d.ts +1 -1
- package/types/components/ReactAriaButton/ReactAriaButton.d.ts +3 -0
- package/types/components/Search/Search.d.ts +11 -0
- package/types/components/Select/Select.d.ts +1 -2
- package/types/components/Switch/Switch.d.ts +1 -1
- package/types/components/Table/Table.d.ts +6 -0
- package/types/components/Tooltip/Tooltip.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -52,13 +52,16 @@
|
|
|
52
52
|
"@react-aria/breadcrumbs": "^3.4.1",
|
|
53
53
|
"@react-aria/button": "^3.6.4",
|
|
54
54
|
"@react-aria/focus": "^3.10.1",
|
|
55
|
+
"@react-aria/interactions": "^3.13.1",
|
|
55
56
|
"@react-aria/label": "^3.4.4",
|
|
56
57
|
"@react-aria/numberfield": "^3.3.4",
|
|
57
58
|
"@react-aria/radio": "^3.4.2",
|
|
59
|
+
"@react-aria/searchfield": "^3.4.4",
|
|
58
60
|
"@react-aria/textfield": "^3.8.1",
|
|
59
61
|
"@react-aria/utils": "^3.14.2",
|
|
60
62
|
"@react-stately/numberfield": "^3.3.1",
|
|
61
63
|
"@react-stately/radio": "^3.6.2",
|
|
64
|
+
"@react-stately/searchfield": "^3.3.4",
|
|
62
65
|
"@tanstack/react-table": "^8.7.4",
|
|
63
66
|
"@theroutingcompany/design-tokens": "^0.0.1",
|
|
64
67
|
"flag-icons": "^6.6.6",
|
|
@@ -89,12 +92,14 @@
|
|
|
89
92
|
"@storybook/testing-library": "^0.0.14-next.0",
|
|
90
93
|
"@styled-system/prop-types": "^5.1.5",
|
|
91
94
|
"@types/lodash.kebabcase": "^4.1.7",
|
|
95
|
+
"@types/prettier": "^2.7.2",
|
|
92
96
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
93
97
|
"@types/react-dom": "^17.0.0 || ^18.0.0",
|
|
94
98
|
"@types/react-is": "^17.0.0 || ^18.0.0",
|
|
95
99
|
"@vitejs/plugin-react": "^2.2.0",
|
|
96
100
|
"chromatic": "^6.11.4",
|
|
97
101
|
"csstype": "^3.1.1",
|
|
102
|
+
"prettier": "2.8.1",
|
|
98
103
|
"react": "^16.14.0",
|
|
99
104
|
"react-dom": "^16.14.0",
|
|
100
105
|
"react-is": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { type AriaBreadcrumbItemProps, type AriaBreadcrumbsProps } from '@react-aria/breadcrumbs';
|
|
3
3
|
import type { ComponentPropsWithoutStyles, RenameMisprefixedProps } from 'helpers/typeHelpers';
|
|
4
4
|
export declare const Breadcrumbs: import("react").ForwardRefExoticComponent<AriaBreadcrumbsProps & {
|
|
5
|
-
children?:
|
|
5
|
+
children?: ReactNode;
|
|
6
6
|
} & import("react").RefAttributes<HTMLOListElement>>;
|
|
7
7
|
export type BreadcrumbItemProps = RenameMisprefixedProps<AriaBreadcrumbItemProps, 'is', 'isDisabled'> & ComponentPropsWithoutStyles<'a'> & {
|
|
8
8
|
as?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
3
|
export type CheckedState = CheckboxPrimitive.CheckedState;
|
|
4
|
-
export type CheckboxProps = CheckboxPrimitive.CheckboxProps & {
|
|
4
|
+
export type CheckboxProps = Omit<CheckboxPrimitive.CheckboxProps, 'defaultChecked'> & {
|
|
5
5
|
invalid?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare function Checkbox({ disabled, checked, invalid, ...props }: CheckboxProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type AriaSearchFieldProps } from '@react-aria/searchfield';
|
|
3
|
+
export declare const Search: import("react").ForwardRefExoticComponent<{
|
|
4
|
+
size: 'small' | 'large';
|
|
5
|
+
autoSuggest?: boolean;
|
|
6
|
+
leadingIcon?: boolean;
|
|
7
|
+
} & Omit<AriaSearchFieldProps, "isDisabled" | "isRequired" | "isReadOnly"> & {
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
3
|
export declare const StyledTrigger: any;
|
|
4
|
-
declare function
|
|
4
|
+
export declare function SelectContent({ children, ...props }: SelectPrimitive.SelectContentProps): JSX.Element;
|
|
5
5
|
export declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
6
6
|
export declare const SelectTrigger: any;
|
|
7
7
|
export declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
8
8
|
export declare const SelectIcon: any;
|
|
9
|
-
export declare const SelectContent: typeof Content;
|
|
10
9
|
export declare const SelectViewport: any;
|
|
11
10
|
export declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
11
|
export declare const SelectItem: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
3
3
|
export type { SwitchProps } from '@radix-ui/react-switch';
|
|
4
|
-
export declare
|
|
4
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchPrimitive.SwitchProps & import("react").RefAttributes<typeof SwitchPrimitive>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
3
3
|
export type { TooltipContentProps, TooltipProps, } from '@radix-ui/react-tooltip';
|
|
4
4
|
declare function Content({ children, ...props }: TooltipPrimitive.TooltipContentProps): JSX.Element;
|
|
5
|
-
export declare const TooltipTrigger:
|
|
5
|
+
export declare const TooltipTrigger: ({ children, ...props }: TooltipPrimitive.TooltipTriggerProps) => JSX.Element;
|
|
6
6
|
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
7
7
|
export declare const Tooltip: import("react").FC<TooltipPrimitive.TooltipProps>;
|
|
8
8
|
export declare const TooltipContent: typeof Content;
|