@theroutingcompany/components 0.0.28 → 0.0.29
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 +4847 -4841
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +895 -896
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/types/components/Connect/Connect.d.ts +3 -5
- package/types/components/Flex/Flex.d.ts +7 -5
- package/types/components/Input/InlineEdit/InlineEdit.d.ts +8 -4
- package/types/utils/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/styled-system": "^5.1.16",
|
|
103
103
|
"@react-types/select": "^3.8.1",
|
|
104
104
|
"@tanstack/react-table": "^8.9.1",
|
|
105
|
-
"@theroutingcompany/design-tokens": "^0.0.
|
|
105
|
+
"@theroutingcompany/design-tokens": "^0.0.6",
|
|
106
106
|
"@styled-system/prop-types": "^5.1.2",
|
|
107
107
|
"@styled-system/props": "^5.1.5",
|
|
108
108
|
"csstype": "^3.1.2",
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type ConnectProps = {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
left?: React.ReactNode;
|
|
5
5
|
right?: React.ReactNode;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
|
+
tabIndex?: number;
|
|
7
8
|
};
|
|
8
|
-
declare
|
|
9
|
-
declare namespace Connect {
|
|
10
|
-
var displayName: string;
|
|
11
|
-
}
|
|
9
|
+
declare const Connect: React.ForwardRefExoticComponent<ConnectProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
10
|
export default Connect;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BoxProps } from 'components/Box/Box';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
export type FlexProps = {
|
|
4
4
|
'data-id'?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
+
tabIndex?: number;
|
|
6
7
|
} & BoxProps;
|
|
7
|
-
export declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare const Flex: import("react").ForwardRefExoticComponent<{
|
|
9
|
+
'data-id'?: string | undefined;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
tabIndex?: number | undefined;
|
|
12
|
+
} & BoxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
13
|
export default Flex;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type ButtonPropsV2 } from 'components/ButtonV2/ButtonV2';
|
|
2
|
-
import { type TODOFIXME } from 'helpers';
|
|
3
2
|
import type { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* TODO:
|
|
5
|
+
* - Get escape and enter keys canceling/saving (difficult because we have to take into account the component API we've put together for where we add that code)
|
|
6
|
+
*/
|
|
4
7
|
export declare const EditButtonRight: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("components/Button/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
5
8
|
export interface InlineEditProps extends ButtonPropsV2 {
|
|
6
9
|
'data-id'?: string;
|
|
@@ -10,12 +13,13 @@ export interface InlineEditProps extends ButtonPropsV2 {
|
|
|
10
13
|
placeholder?: string;
|
|
11
14
|
hideIcon?: boolean;
|
|
12
15
|
p?: string;
|
|
13
|
-
onChange:
|
|
14
|
-
onToggle?:
|
|
16
|
+
onChange: () => void;
|
|
17
|
+
onToggle?: (toggled: any) => void;
|
|
18
|
+
onCancel?: () => void;
|
|
15
19
|
disabled?: boolean;
|
|
16
20
|
valid?: boolean;
|
|
17
21
|
}
|
|
18
22
|
export declare const InlineEdit: {
|
|
19
|
-
({ children, placeholder, value, editValue, hideIcon, p, onChange, onToggle, disabled, valid, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
({ children, placeholder, value, editValue, hideIcon, p, onChange, onToggle, onCancel, disabled, valid, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
20
24
|
displayName: string;
|
|
21
25
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handleOutsideClick: (event: MouseEvent, ref: React.RefObject<HTMLDivElement>, close: () => void) => void;
|