@theroutingcompany/components 0.0.8 → 0.0.10
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 +245 -7
- package/dist/trc-components.es.js +8222 -6071
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +388 -246
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -7
- package/types/components/Button/Button.d.ts +5 -33
- package/types/components/Dialog/Dialog.d.ts +5 -6
- package/types/components/Fieldset/Fieldset.d.ts +14 -1
- package/types/components/FileUpload/FileUpload.d.ts +13 -0
- package/types/components/Flex.d.ts +0 -0
- package/types/components/IconButton/IconButton.d.ts +13 -3
- package/types/components/Input/TextInput/TextInput.d.ts +3 -3
- package/types/components/Label/Label.d.ts +2 -1
- package/types/components/Paginator/Paginator.d.ts +6 -34
- package/types/components/Popover/Popover.d.ts +3 -2
- package/types/components/ProgressBar/ProgressBar.d.ts +7 -0
- package/types/components/Table/Table.d.ts +1 -3
- package/types/components/Tabs/Tabs.d.ts +8 -0
- package/types/components/Text/Text.d.ts +1 -0
- package/types/components/Title/Title.d.ts +3 -4
- package/types/components/index.d.ts +3 -1
- package/types/helpers/typeHelpers.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.10",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -21,12 +21,14 @@
|
|
|
21
21
|
"types"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"
|
|
24
|
+
"postpublish": "npm run chromatic",
|
|
25
|
+
"prepublish": "npm run build",
|
|
26
|
+
"publish": "npm publish --access public",
|
|
25
27
|
"format": "prettier ./dist/**/*.{js,css,scss} --write --no-config",
|
|
26
28
|
"clean": "rimraf ./dist ./types",
|
|
27
29
|
"storybook": "storybook dev -p 6006",
|
|
28
30
|
"build-storybook": "storybook build",
|
|
29
|
-
"lint": "eslint
|
|
31
|
+
"lint": "eslint --cache src",
|
|
30
32
|
"lint:css": "stylelint src/components/**/*.{tsx,ts}",
|
|
31
33
|
"prepublishOnly": "npm run build",
|
|
32
34
|
"build:types": "tsc --incremental",
|
|
@@ -49,15 +51,18 @@
|
|
|
49
51
|
"@radix-ui/react-select": "^1.1.2",
|
|
50
52
|
"@radix-ui/react-separator": "^1.0.1",
|
|
51
53
|
"@radix-ui/react-switch": "^1.0.1",
|
|
54
|
+
"@radix-ui/react-tabs": "^1.0.1",
|
|
52
55
|
"@radix-ui/react-toast": "^1.1.2",
|
|
53
56
|
"@radix-ui/react-toggle-group": "^1.0.1",
|
|
54
57
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
55
58
|
"@react-aria/breadcrumbs": "^3.4.1",
|
|
56
59
|
"@react-aria/button": "^3.6.4",
|
|
60
|
+
"@react-aria/dnd": "^3.0.1",
|
|
57
61
|
"@react-aria/focus": "^3.10.1",
|
|
58
62
|
"@react-aria/interactions": "^3.13.1",
|
|
59
63
|
"@react-aria/label": "^3.4.4",
|
|
60
64
|
"@react-aria/numberfield": "^3.3.4",
|
|
65
|
+
"@react-aria/progress": "^3.3.4",
|
|
61
66
|
"@react-aria/radio": "^3.4.2",
|
|
62
67
|
"@react-aria/searchfield": "^3.4.4",
|
|
63
68
|
"@react-aria/textfield": "^3.8.1",
|
|
@@ -66,7 +71,7 @@
|
|
|
66
71
|
"@react-stately/radio": "^3.6.2",
|
|
67
72
|
"@react-stately/searchfield": "^3.3.4",
|
|
68
73
|
"@tanstack/react-table": "^8.7.6",
|
|
69
|
-
"@theroutingcompany/design-tokens": "^0.0.
|
|
74
|
+
"@theroutingcompany/design-tokens": "^0.0.3",
|
|
70
75
|
"styled-components": "^5.3.6"
|
|
71
76
|
},
|
|
72
77
|
"peerDependencies": {
|
|
@@ -87,9 +92,10 @@
|
|
|
87
92
|
"@storybook/addon-interactions": "^7.0.0-beta.2",
|
|
88
93
|
"@storybook/addon-links": "^7.0.0-beta.2",
|
|
89
94
|
"@storybook/react": "^7.0.0-beta.2",
|
|
90
|
-
"@storybook/react-vite": "^7.0.0-
|
|
95
|
+
"@storybook/react-vite": "^7.0.0-alpha.25",
|
|
91
96
|
"@storybook/testing-library": "^0.0.14-next.0",
|
|
92
97
|
"@types/eslint": "^8.4.10",
|
|
98
|
+
"@types/mime-types": "^2.1.1",
|
|
93
99
|
"@types/prettier": "^2.7.2",
|
|
94
100
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
95
101
|
"@types/react-dom": "^17.0.0 || ^18.0.0",
|
|
@@ -100,12 +106,13 @@
|
|
|
100
106
|
"@vitejs/plugin-react": "^3.0.1",
|
|
101
107
|
"chromatic": "^6.14.0",
|
|
102
108
|
"csstype": "^3.1.1",
|
|
103
|
-
"eslint": "^8.
|
|
109
|
+
"eslint": "^8.32.0",
|
|
104
110
|
"eslint-config-prettier": "^8.6.0",
|
|
105
111
|
"eslint-plugin-jsx-a11y": "^6.7.0",
|
|
106
112
|
"eslint-plugin-react": "^7.32.0",
|
|
113
|
+
"eslint-plugin-storybook": "^0.6.10",
|
|
107
114
|
"postcss-styled-syntax": "^0.3.1",
|
|
108
|
-
"prettier": "^2.8.
|
|
115
|
+
"prettier": "^2.8.3",
|
|
109
116
|
"react": "^16.14.0",
|
|
110
117
|
"react-dom": "^16.14.0",
|
|
111
118
|
"react-is": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type AriaButtonProps } from '@react-aria/button';
|
|
3
3
|
import type { RenameMisprefixedProps } from 'helpers';
|
|
4
4
|
type Variant = 'primary' | 'secondary' | 'danger' | 'inverse';
|
|
@@ -20,36 +20,8 @@ export type ButtonBaseProps = {
|
|
|
20
20
|
paddingSize: Size;
|
|
21
21
|
};
|
|
22
22
|
type ReactAriaProps = RenameMisprefixedProps<AriaButtonProps, 'is', 'isDisabled'>;
|
|
23
|
-
export type ButtonProps = PropsWithChildren<ButtonDesignProps> &
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
size?: Size | undefined;
|
|
28
|
-
} & {
|
|
29
|
-
children?: import("react").ReactNode;
|
|
30
|
-
} & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
31
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
32
|
-
} & Omit<AriaButtonProps<"button">, "isDisabled"> & {
|
|
33
|
-
disabled?: boolean | undefined;
|
|
34
|
-
}, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
|
|
35
|
-
emphasis?: "medium" | undefined;
|
|
36
|
-
variant?: "primary" | "danger" | "inverse" | undefined;
|
|
37
|
-
size?: Size | undefined;
|
|
38
|
-
} & {
|
|
39
|
-
children?: import("react").ReactNode;
|
|
40
|
-
} & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
41
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
42
|
-
} & Omit<AriaButtonProps<"button">, "isDisabled"> & {
|
|
43
|
-
disabled?: boolean | undefined;
|
|
44
|
-
}, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
|
|
45
|
-
emphasis?: "high" | undefined;
|
|
46
|
-
variant?: Variant | undefined;
|
|
47
|
-
size?: Size | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
children?: import("react").ReactNode;
|
|
50
|
-
} & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
51
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
52
|
-
} & Omit<AriaButtonProps<"button">, "isDisabled"> & {
|
|
53
|
-
disabled?: boolean | undefined;
|
|
54
|
-
}, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export type ButtonProps = PropsWithChildren<ButtonDesignProps> & ReactAriaProps & {
|
|
24
|
+
onClick?: ReactAriaProps["onPress"];
|
|
25
|
+
};
|
|
26
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
55
27
|
export {};
|
|
@@ -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,9 +1,22 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ComponentPropsWithoutStyles } from 'helpers/typeHelpers';
|
|
3
3
|
export declare const StyledFieldSet: import("styled-components").StyledComponent<"fieldset", any, {}, never>;
|
|
4
|
-
/** Adding disabled to
|
|
4
|
+
/** Adding disabled to `<fieldset>` will disable all inputs inside it HTML wise,
|
|
5
5
|
* the problem is that React won't know about that they the input components are disabled (prop-wise)
|
|
6
|
+
*
|
|
6
7
|
* This 'compound component' makes it known to child input components via React context (for example for react-aria input hooks)
|
|
8
|
+
*
|
|
9
|
+
* ```jsx
|
|
10
|
+
* <fieldset disabled>
|
|
11
|
+
* <Input> // ❌ Not disabled!
|
|
12
|
+
* </fieldset>
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ```jsx
|
|
16
|
+
* <Fieldset disabled>
|
|
17
|
+
* <Input> // ✅ Disabled by Fieldset context
|
|
18
|
+
* </Fieldset>
|
|
19
|
+
* ```
|
|
7
20
|
*/
|
|
8
21
|
export declare function Fieldset({ children, disabled, ...fieldsetProps }: ComponentPropsWithoutStyles<'fieldset'>): JSX.Element;
|
|
9
22
|
export declare function useFieldset(): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type FileDescription = {
|
|
3
|
+
name: string;
|
|
4
|
+
mime: `${string}/${string}`;
|
|
5
|
+
};
|
|
6
|
+
type DropTargetProps = {
|
|
7
|
+
file: File | null;
|
|
8
|
+
fileTypes: FileDescription[];
|
|
9
|
+
onAddFile: (f: File) => void;
|
|
10
|
+
onDeleteFile: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const FileUpload: import("react").ForwardRefExoticComponent<DropTargetProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export {};
|
|
File without changes
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { type AriaButtonProps } from '@react-aria/button';
|
|
2
|
-
import { type ComponentPropsWithRef } from 'react';
|
|
3
3
|
type Size = 'small' | 'large';
|
|
4
4
|
type Variant = 'primary' | 'secondary' | 'danger' | 'inverse';
|
|
5
5
|
type Shape = 'circle' | 'square';
|
|
6
|
-
export type StyledIconButtonProps =
|
|
6
|
+
export type StyledIconButtonProps = AriaButtonProps & {
|
|
7
|
+
onClick?: AriaButtonProps['onPress'] | undefined;
|
|
8
|
+
} & {
|
|
7
9
|
label: string;
|
|
8
10
|
size?: Size;
|
|
9
11
|
variant?: Variant;
|
|
@@ -17,5 +19,13 @@ export type StyledIconButtonProps = ComponentPropsWithRef<'button'> & AriaButton
|
|
|
17
19
|
* </IconButton>
|
|
18
20
|
*
|
|
19
21
|
*/
|
|
20
|
-
export declare const IconButton: import("react").ForwardRefExoticComponent<
|
|
22
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<AriaButtonProps<"button"> & {
|
|
23
|
+
onClick?: AriaButtonProps['onPress'] | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
label: string;
|
|
26
|
+
size?: Size | undefined;
|
|
27
|
+
variant?: Variant | undefined;
|
|
28
|
+
shape?: Shape | undefined;
|
|
29
|
+
disabled?: boolean | undefined;
|
|
30
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
31
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type AriaTextFieldOptions } from '@react-aria/textfield';
|
|
3
|
-
import type {
|
|
3
|
+
import type { RenameBooleanProps } from 'helpers/typeHelpers';
|
|
4
4
|
import { type InputBaseProps } from '../InputBase';
|
|
5
5
|
type ReactAriaInputProps = Omit<RenameBooleanProps<AriaTextFieldOptions<'input'>>, 'inputElementType'>;
|
|
6
|
-
export type TextInputProps = ReactAriaInputProps & InputBaseProps
|
|
6
|
+
export type TextInputProps = ReactAriaInputProps & InputBaseProps;
|
|
7
7
|
/**
|
|
8
8
|
* 1. With custom label element as prop
|
|
9
9
|
* ```jsx
|
|
@@ -23,5 +23,5 @@ export type TextInputProps = ReactAriaInputProps & InputBaseProps & ComponentPro
|
|
|
23
23
|
* </label>
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps &
|
|
26
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
27
27
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ComponentPropsWithoutStyles } from 'helpers/typeHelpers';
|
|
3
3
|
interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
|
|
4
4
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -6,6 +6,7 @@ interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
|
|
|
6
6
|
/** Screen Reader Only */
|
|
7
7
|
srOnly?: boolean;
|
|
8
8
|
display?: 'flex' | 'inline-flex' | 'inline' | 'black';
|
|
9
|
+
children: ReactNode;
|
|
9
10
|
}
|
|
10
11
|
export declare function Label({ children, bold, size, display, srOnly, ...remainingProps }: LabelProps): JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,40 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
type
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type ButtonProps } from 'components';
|
|
3
|
+
type PaginatorButtonProps = ButtonProps & {
|
|
3
4
|
label: string;
|
|
4
5
|
direction: 'left' | 'right';
|
|
6
|
+
title?: string;
|
|
5
7
|
};
|
|
6
|
-
export declare const PaginatorButton: import("react").ForwardRefExoticComponent<
|
|
7
|
-
export declare const PaginatorNumber: import("react").ForwardRefExoticComponent<(
|
|
8
|
-
emphasis?: "low" | undefined;
|
|
9
|
-
variant?: "primary" | "danger" | "inverse" | undefined;
|
|
10
|
-
size?: ("small" | "large") | undefined;
|
|
11
|
-
} & {
|
|
12
|
-
children?: import("react").ReactNode;
|
|
13
|
-
} & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
14
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
15
|
-
} & Omit<import("@react-types/button").AriaButtonProps<"button">, "isDisabled"> & {
|
|
16
|
-
disabled?: boolean | undefined;
|
|
17
|
-
}, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
|
|
18
|
-
emphasis?: "medium" | undefined;
|
|
19
|
-
variant?: "primary" | "danger" | "inverse" | undefined;
|
|
20
|
-
size?: ("small" | "large") | undefined;
|
|
21
|
-
} & {
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
} & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
24
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
25
|
-
} & Omit<import("@react-types/button").AriaButtonProps<"button">, "isDisabled"> & {
|
|
26
|
-
disabled?: boolean | undefined;
|
|
27
|
-
}, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant"> | Pick<{
|
|
28
|
-
emphasis?: "high" | undefined;
|
|
29
|
-
variant?: ("primary" | "secondary" | "danger" | "inverse") | undefined;
|
|
30
|
-
size?: ("small" | "large") | undefined;
|
|
31
|
-
} & {
|
|
32
|
-
children?: import("react").ReactNode;
|
|
33
|
-
} & Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
34
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
35
|
-
} & Omit<import("@react-types/button").AriaButtonProps<"button">, "isDisabled"> & {
|
|
36
|
-
disabled?: boolean | undefined;
|
|
37
|
-
}, "key" | "size" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement> | "target" | "href" | "rel" | "elementType" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onPressUp" | "onFocusChange" | "excludeFromTabOrder" | "emphasis" | "variant">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export declare const PaginatorButton: import("react").ForwardRefExoticComponent<PaginatorButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const PaginatorNumber: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
38
10
|
type PaginationProps = {
|
|
39
11
|
nrOfPages: number;
|
|
40
12
|
currentPage: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
-
export type { PopoverCloseProps, PopoverContentProps } from '@radix-ui/react-popover';
|
|
3
|
+
export type { PopoverCloseProps, PopoverContentProps, } from '@radix-ui/react-popover';
|
|
4
4
|
export declare function PopoverContent({ children, ...props }: PopoverPrimitive.PopoverContentProps): JSX.Element;
|
|
5
|
-
export declare const PopoverClose: import("
|
|
5
|
+
export declare const PopoverClose: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const PopoverCloseCross: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
6
7
|
export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
7
8
|
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare
|
|
3
|
-
children: any;
|
|
4
|
-
}): JSX.Element;
|
|
2
|
+
export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
|
|
5
3
|
export declare const TableDataCell: import("styled-components").StyledComponent<"td", any, {}, never>;
|
|
6
4
|
export declare const Table: import("styled-components").StyledComponent<"table", any, {}, never>;
|
|
7
5
|
export declare const TableSortButtons: () => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as Tabs from '@radix-ui/react-tabs';
|
|
3
|
+
export type { TabsContentProps, TabsTriggerProps, TabsProps, } from '@radix-ui/react-tabs';
|
|
4
|
+
export declare const TabsRoot: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
5
|
+
export declare const TabsList: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsListProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
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>;
|
|
8
|
+
export declare const TabsContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Tabs.TabsContentProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
@@ -30,6 +30,7 @@ type SentimentTextColorProps = {
|
|
|
30
30
|
type TextColorProps = NormalTextColorProps | SentimentTextColorProps;
|
|
31
31
|
export type TextProps = TextColorProps & Partial<NumberTextProps | CaptionTextProps | BodyTextProps> & {
|
|
32
32
|
bold?: boolean;
|
|
33
|
+
italic?: boolean;
|
|
33
34
|
as?: TextElements;
|
|
34
35
|
};
|
|
35
36
|
type PolymorphicText = Polymorphic.ForwardRefComponent<TextElements, TextProps>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type * as Polymorphic from '@radix-ui/react-polymorphic';
|
|
2
|
-
interface TitleProps {
|
|
3
|
-
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'legend';
|
|
2
|
+
export interface TitleProps {
|
|
3
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'legend' | 'figcaption';
|
|
4
4
|
size: 'small' | 'medium' | 'large' | 'xsmall';
|
|
5
5
|
}
|
|
6
|
-
type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', // more? span? div?
|
|
6
|
+
export type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', // more? span? div?
|
|
7
7
|
TitleProps>;
|
|
8
8
|
export declare const Title: PolymorphicTitle;
|
|
9
|
-
export {};
|
|
@@ -5,19 +5,21 @@ 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';
|
|
@@ -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];
|