@theroutingcompany/components 0.0.23 → 0.0.24-alpha.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/README.md +37 -3
- package/dist/trc-components.es.js +26 -18
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +22 -17
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -55
- package/types/components/Drawer/Drawer.d.ts +35 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24-alpha.2",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -39,61 +39,62 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@internationalized/date": "^3.2.0",
|
|
41
41
|
"@material-ui/icons": "^4.11.3",
|
|
42
|
-
"@radix-ui/react-accessible-icon": "^1.0.
|
|
43
|
-
"@radix-ui/react-
|
|
44
|
-
"@radix-ui/react-
|
|
45
|
-
"@radix-ui/react-
|
|
46
|
-
"@radix-ui/react-
|
|
47
|
-
"@radix-ui/react-
|
|
42
|
+
"@radix-ui/react-accessible-icon": "^1.0.3",
|
|
43
|
+
"@radix-ui/react-accordion": "^1.1.2",
|
|
44
|
+
"@radix-ui/react-alert-dialog": "^1.0.4",
|
|
45
|
+
"@radix-ui/react-checkbox": "^1.0.4",
|
|
46
|
+
"@radix-ui/react-collapsible": "^1.0.3",
|
|
47
|
+
"@radix-ui/react-dialog": "^1.0.4",
|
|
48
|
+
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
|
48
49
|
"@radix-ui/react-polymorphic": "^0.0.14",
|
|
49
|
-
"@radix-ui/react-popover": "^1.0.
|
|
50
|
-
"@radix-ui/react-radio-group": "^1.1.
|
|
51
|
-
"@radix-ui/react-select": "^1.2.
|
|
52
|
-
"@radix-ui/react-separator": "^1.0.
|
|
53
|
-
"@radix-ui/react-switch": "^1.0.
|
|
54
|
-
"@radix-ui/react-tabs": "^1.0.
|
|
55
|
-
"@radix-ui/react-toast": "^1.1.
|
|
56
|
-
"@radix-ui/react-toggle-group": "^1.0.
|
|
57
|
-
"@radix-ui/react-tooltip": "^1.0.
|
|
58
|
-
"@react-aria/breadcrumbs": "^3.5.
|
|
59
|
-
"@react-aria/button": "^3.7.
|
|
60
|
-
"@react-aria/calendar": "^3.
|
|
61
|
-
"@react-aria/combobox": "^3.6.
|
|
62
|
-
"@react-aria/datepicker": "^3.4.
|
|
63
|
-
"@react-aria/dnd": "^3.2.
|
|
64
|
-
"@react-aria/focus": "^3.12.
|
|
65
|
-
"@react-aria/i18n": "^3.7.
|
|
66
|
-
"@react-aria/interactions": "^3.15.
|
|
67
|
-
"@react-aria/label": "^3.5.
|
|
68
|
-
"@react-aria/listbox": "^3.9.
|
|
69
|
-
"@react-aria/menu": "^3.9.
|
|
70
|
-
"@react-aria/numberfield": "^3.5.
|
|
71
|
-
"@react-aria/overlays": "^3.14.
|
|
72
|
-
"@react-aria/progress": "^3.4.
|
|
73
|
-
"@react-aria/radio": "^3.6.
|
|
74
|
-
"@react-aria/searchfield": "^3.5.
|
|
75
|
-
"@react-aria/select": "^3.10.
|
|
76
|
-
"@react-aria/selection": "^3.
|
|
77
|
-
"@react-aria/textfield": "^3.9.
|
|
78
|
-
"@react-aria/utils": "^3.
|
|
79
|
-
"@react-stately/calendar": "^3.2.
|
|
80
|
-
"@react-stately/collections": "^3.
|
|
81
|
-
"@react-stately/combobox": "^3.5.
|
|
82
|
-
"@react-stately/datepicker": "^3.4.
|
|
83
|
-
"@react-stately/list": "^3.8.
|
|
84
|
-
"@react-stately/menu": "^3.5.
|
|
85
|
-
"@react-stately/numberfield": "^3.4.
|
|
86
|
-
"@react-stately/overlays": "^3.5.
|
|
87
|
-
"@react-stately/radio": "^3.8.
|
|
88
|
-
"@react-stately/searchfield": "^3.4.
|
|
89
|
-
"@react-stately/select": "^3.5.
|
|
90
|
-
"@react-stately/selection": "^3.13.
|
|
91
|
-
"@react-types/calendar": "^3.2.
|
|
92
|
-
"@react-types/combobox": "^3.6.
|
|
93
|
-
"@react-types/datepicker": "^3.3.
|
|
94
|
-
"@react-types/overlays": "^3.7.
|
|
95
|
-
"@react-types/select": "^3.8.
|
|
96
|
-
"@tanstack/react-table": "^8.
|
|
50
|
+
"@radix-ui/react-popover": "^1.0.6",
|
|
51
|
+
"@radix-ui/react-radio-group": "^1.1.3",
|
|
52
|
+
"@radix-ui/react-select": "^1.2.2",
|
|
53
|
+
"@radix-ui/react-separator": "^1.0.3",
|
|
54
|
+
"@radix-ui/react-switch": "^1.0.3",
|
|
55
|
+
"@radix-ui/react-tabs": "^1.0.4",
|
|
56
|
+
"@radix-ui/react-toast": "^1.1.4",
|
|
57
|
+
"@radix-ui/react-toggle-group": "^1.0.4",
|
|
58
|
+
"@radix-ui/react-tooltip": "^1.0.6",
|
|
59
|
+
"@react-aria/breadcrumbs": "^3.5.2",
|
|
60
|
+
"@react-aria/button": "^3.7.2",
|
|
61
|
+
"@react-aria/calendar": "^3.3.0",
|
|
62
|
+
"@react-aria/combobox": "^3.6.1",
|
|
63
|
+
"@react-aria/datepicker": "^3.4.1",
|
|
64
|
+
"@react-aria/dnd": "^3.2.1",
|
|
65
|
+
"@react-aria/focus": "^3.12.1",
|
|
66
|
+
"@react-aria/i18n": "^3.7.2",
|
|
67
|
+
"@react-aria/interactions": "^3.15.1",
|
|
68
|
+
"@react-aria/label": "^3.5.2",
|
|
69
|
+
"@react-aria/listbox": "^3.9.1",
|
|
70
|
+
"@react-aria/menu": "^3.9.1",
|
|
71
|
+
"@react-aria/numberfield": "^3.5.1",
|
|
72
|
+
"@react-aria/overlays": "^3.14.1",
|
|
73
|
+
"@react-aria/progress": "^3.4.2",
|
|
74
|
+
"@react-aria/radio": "^3.6.1",
|
|
75
|
+
"@react-aria/searchfield": "^3.5.2",
|
|
76
|
+
"@react-aria/select": "^3.10.1",
|
|
77
|
+
"@react-aria/selection": "^3.15.0",
|
|
78
|
+
"@react-aria/textfield": "^3.9.2",
|
|
79
|
+
"@react-aria/utils": "^3.17.0",
|
|
80
|
+
"@react-stately/calendar": "^3.2.1",
|
|
81
|
+
"@react-stately/collections": "^3.8.0",
|
|
82
|
+
"@react-stately/combobox": "^3.5.1",
|
|
83
|
+
"@react-stately/datepicker": "^3.4.1",
|
|
84
|
+
"@react-stately/list": "^3.8.1",
|
|
85
|
+
"@react-stately/menu": "^3.5.2",
|
|
86
|
+
"@react-stately/numberfield": "^3.4.2",
|
|
87
|
+
"@react-stately/overlays": "^3.5.2",
|
|
88
|
+
"@react-stately/radio": "^3.8.1",
|
|
89
|
+
"@react-stately/searchfield": "^3.4.2",
|
|
90
|
+
"@react-stately/select": "^3.5.1",
|
|
91
|
+
"@react-stately/selection": "^3.13.1",
|
|
92
|
+
"@react-types/calendar": "^3.2.1",
|
|
93
|
+
"@react-types/combobox": "^3.6.2",
|
|
94
|
+
"@react-types/datepicker": "^3.3.1",
|
|
95
|
+
"@react-types/overlays": "^3.7.2",
|
|
96
|
+
"@react-types/select": "^3.8.1",
|
|
97
|
+
"@tanstack/react-table": "^8.9.1",
|
|
97
98
|
"@theroutingcompany/design-tokens": "^0.0.3",
|
|
98
99
|
"csstype": "^3.1.2"
|
|
99
100
|
},
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
import * as Dialog from '@radix-ui/react-dialog';
|
|
4
|
+
export declare const DrawerRoot: import("react").FC<Dialog.DialogProps>;
|
|
5
|
+
export declare const DrawerTrigger: import("react").ForwardRefExoticComponent<Dialog.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const DrawerTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Dialog.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>, any, {}, never>;
|
|
7
|
+
export declare const DrawerCloseButton: () => JSX.Element;
|
|
8
|
+
export declare const DrawerDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Dialog.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
9
|
+
export declare const DrawerSectionTitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
10
|
+
declare const widths: {
|
|
11
|
+
readonly medium: 540;
|
|
12
|
+
readonly large: 900;
|
|
13
|
+
};
|
|
14
|
+
export type DrawerSize = keyof typeof widths;
|
|
15
|
+
type DrawerProps = PropsWithChildren<{
|
|
16
|
+
size?: DrawerSize;
|
|
17
|
+
}>;
|
|
18
|
+
export declare function Drawer({ children, size }: DrawerProps): JSX.Element;
|
|
19
|
+
export declare const DrawerAccordionRoot: ({ children, ...props }: AccordionPrimitive.AccordionMultipleProps) => JSX.Element;
|
|
20
|
+
export type DrawerSectionProps = AccordionPrimitive.AccordionItemProps;
|
|
21
|
+
/** CSS Variables to control child styles of section closed/open state
|
|
22
|
+
* | Name | Description |
|
|
23
|
+
* | --------------------------|-------------------------------------------------|
|
|
24
|
+
* | --chevron-rotation | Rotation of icon in section expand button |
|
|
25
|
+
* | --icon-elevation | The drop shadow of the section header icon |
|
|
26
|
+
* | --icon-background | The background color of the section header icon |
|
|
27
|
+
*/
|
|
28
|
+
export declare const DrawerSection: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AccordionPrimitive.AccordionItemProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
29
|
+
export declare const DrawerSectionContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AccordionPrimitive.AccordionContentProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
30
|
+
export type DrawerSectionHeaderProps = {
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
icon: ReactNode;
|
|
33
|
+
};
|
|
34
|
+
export declare function DrawerSectionHeader({ children, icon, }: DrawerSectionHeaderProps): JSX.Element;
|
|
35
|
+
export {};
|