@theroutingcompany/components 0.0.26-alpha.16 → 0.0.26-alpha.18
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 +6727 -6445
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +510 -355
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/types/components/Badge/Badge.d.ts +1 -1
- package/types/components/Button/Button.d.ts +3 -0
- package/types/components/ButtonV2/ButtonV2.d.ts +1 -0
- package/types/components/ButtonV2/styles.d.ts +6 -5
- package/types/components/Input/InlineEdit/InlineEdit.d.ts +2 -1
- package/types/styles/index.d.ts +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.26-alpha.
|
|
3
|
+
"version": "0.0.26-alpha.18",
|
|
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.4-alpha.
|
|
105
|
+
"@theroutingcompany/design-tokens": "^0.0.4-alpha.4",
|
|
106
106
|
"@styled-system/prop-types": "^5.1.2",
|
|
107
107
|
"@styled-system/props": "^5.1.5",
|
|
108
108
|
"csstype": "^3.1.2",
|
|
@@ -23,5 +23,8 @@ type ReactAriaProps = RenameMisprefixedProps<AriaButtonProps, 'is', 'isDisabled'
|
|
|
23
23
|
export type ButtonProps = Prettify<PropsWithChildren<ButtonDesignProps & ReactAriaProps & {
|
|
24
24
|
onClick?: ReactAriaProps['onPress'];
|
|
25
25
|
} & Pick<ComponentPropsWithoutRef<'button'>, 'form'>>>;
|
|
26
|
+
/**
|
|
27
|
+
* Deprecated. Use ButtonV2 instead.
|
|
28
|
+
*/
|
|
26
29
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
30
|
export {};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { Size, Variant } from './ButtonV2';
|
|
2
|
-
export declare function focus({ buttonColor }: {
|
|
3
|
-
buttonColor?: string;
|
|
4
|
-
}): string;
|
|
5
2
|
export declare const reset: () => string;
|
|
6
3
|
export declare const base: () => string;
|
|
7
4
|
export type LoadingProp = {
|
|
@@ -10,16 +7,20 @@ export type LoadingProp = {
|
|
|
10
7
|
export declare const childwrapper: (props: LoadingProp) => string;
|
|
11
8
|
export declare const disabled: (props: {
|
|
12
9
|
disabled: boolean;
|
|
13
|
-
}) => "\n opacity: 0.
|
|
10
|
+
}) => "\n opacity: 0.8;\n\n &:hover {\n cursor: not-allowed;\n }\n " | undefined;
|
|
14
11
|
export declare const fullWidth: (props: {
|
|
15
12
|
fullWidth: boolean;
|
|
16
13
|
}) => "\n display: block;\n width: 100%;\n " | undefined;
|
|
17
14
|
export declare const group: () => string;
|
|
18
15
|
export declare const primary: import("styled-components").FlattenSimpleInterpolation;
|
|
16
|
+
export declare const inverse_primary: import("styled-components").FlattenSimpleInterpolation;
|
|
19
17
|
export declare const secondary: import("styled-components").FlattenSimpleInterpolation;
|
|
18
|
+
export declare const inverse_secondary: import("styled-components").FlattenSimpleInterpolation;
|
|
20
19
|
export declare const tertiary: import("styled-components").FlattenSimpleInterpolation;
|
|
20
|
+
export declare const inverse_tertiary: import("styled-components").FlattenSimpleInterpolation;
|
|
21
21
|
export declare const danger: import("styled-components").FlattenSimpleInterpolation;
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const inverse_danger: import("styled-components").FlattenSimpleInterpolation;
|
|
23
|
+
export declare const getVariantStyles: (variant: Variant, inverse: boolean) => import("styled-components").FlattenSimpleInterpolation | undefined;
|
|
23
24
|
export declare const small: import("styled-components").FlattenSimpleInterpolation;
|
|
24
25
|
export declare const large: import("styled-components").FlattenSimpleInterpolation;
|
|
25
26
|
export declare const getDefaultSize: (size: Size) => import("styled-components").FlattenSimpleInterpolation | undefined;
|
|
@@ -6,6 +6,7 @@ export interface InlineEditProps {
|
|
|
6
6
|
'data-id'?: string;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
value?: number | string;
|
|
9
|
+
editValue?: number | string;
|
|
9
10
|
placeholder?: string;
|
|
10
11
|
fullWidth?: boolean;
|
|
11
12
|
minWidth?: string;
|
|
@@ -17,7 +18,7 @@ export interface InlineEditProps {
|
|
|
17
18
|
disabled?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare const InlineEdit: {
|
|
20
|
-
({ children, placeholder, value, minWidth, hideIcon, fullWidth, textAlign, p, onChange, onToggle, disabled, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
({ children, placeholder, value, editValue, minWidth, hideIcon, fullWidth, textAlign, p, onChange, onToggle, disabled, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
displayName: string;
|
|
22
23
|
};
|
|
23
24
|
export {};
|
package/types/styles/index.d.ts
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
1
|
export declare const buttonReset = "\n border: none;\n margin: 0;\n padding: 0;\n overflow: visible;\n width: auto;\n background: transparent;\n color: inherit;\n font: inherit;\n line-height: normal;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n\n &::-moz-focus-inner {\n border: 0;\n padding: 0;\n }\n";
|
|
2
2
|
export declare const visuallyHidden = "\n border: 0 !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n clip-path: inset(50%) !important;\n height: 1px !important;\n margin: -1px !important;\n overflow: hidden !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n word-wrap: normal !important;\n";
|
|
3
|
-
type FocusOutline = {
|
|
4
|
-
/**
|
|
5
|
-
* Color of the focus ring. Defaults to color_blue_700.
|
|
6
|
-
*/
|
|
7
|
-
color?: string;
|
|
8
|
-
/**
|
|
9
|
-
* CSS selector to target the pseudo-element with the ring. Defaults to '&:focus'.
|
|
10
|
-
*/
|
|
11
|
-
modifier?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Pixel offset of the focus ring. Defaults to '3px'.
|
|
14
|
-
*/
|
|
15
|
-
offset?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Border radius of the focus ring. Defaults to borderRadius_200.
|
|
18
|
-
*/
|
|
19
|
-
radius?: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Creates focus styles on an :after pseudo-element.
|
|
23
|
-
* @param string Color of the focus ring. Defaults to color_blue_700.
|
|
24
|
-
* @param modifier CSS selector to target the pseudo-element with the ring, defaults to '&:focus'
|
|
25
|
-
* @param offset Pixel offset of the focus ring. Defaults to '3px'.
|
|
26
|
-
* @param radius Border radius of the focus ring. Defaults to borderRadius_200.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* const Styled = styled.div`
|
|
30
|
-
* ${focusOutline({ color: 'gray', modifier: '&:focus-within' })}
|
|
31
|
-
* `;
|
|
32
|
-
*/
|
|
33
|
-
export declare const focusOutline: ({ modifier, offset, }?: FocusOutline) => string;
|
|
34
|
-
export {};
|