@theroutingcompany/components 0.0.25 → 0.0.26-alpha.0
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 +5 -285
- package/dist/trc-components.es.js +14387 -14066
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +891 -1113
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -3
- package/types/cypress/support/component.d.ts +9 -0
- package/types/cypress.config.d.ts +3 -0
- package/types/src/components/Badge/Badge.cy.d.ts +1 -0
- package/types/{components → src/components}/Badge/Badge.d.ts +2 -2
- package/types/{components → src/components}/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/{components → src/components}/Button/Button.d.ts +8 -4
- package/types/src/components/Button/ButtonBase.d.ts +54 -0
- package/types/src/components/Button/Group.d.ts +10 -0
- package/types/src/components/Button/Icon.d.ts +10 -0
- package/types/src/components/Button/styles.d.ts +1 -0
- package/types/src/components/Calendar/Calendar.d.ts +6 -0
- package/types/src/components/Calendar/CalendarCell.d.ts +12 -0
- package/types/src/components/Calendar/CalendarGrid.d.ts +10 -0
- package/types/src/components/Calendar/TimeDateSelect.d.ts +11 -0
- package/types/src/components/Calendar/index.d.ts +6 -0
- package/types/src/components/Connect/Connect.d.ts +12 -0
- package/types/{components → src/components}/Flex/Flex.d.ts +1 -1
- package/types/{components → src/components}/FormControl/FormControl.d.ts +3 -3
- package/types/src/components/Inline/Inline.d.ts +0 -0
- package/types/src/components/Input/InlineEdit/InlineEdit.d.ts +11 -0
- package/types/{components → src/components}/Input/InputBase.d.ts +3 -0
- package/types/src/components/Input/TextInput/TextInput.d.ts +15 -0
- package/types/{components → src/components}/MultiSelect/MultiSelectListBox.d.ts +3 -3
- package/types/src/components/Stack/Stack.d.ts +0 -0
- package/types/{components → src/components}/Title/Title.d.ts +1 -2
- package/types/src/components/Tokens/Tokens.cy.d.ts +1 -0
- package/types/src/components/UnstyledLink/UnstyledLink.d.ts +0 -0
- package/types/{components → src/components}/index.d.ts +1 -1
- package/types/components/Button/ButtonBase.d.ts +0 -6
- package/types/components/Button/HighEmphasisButton/HighEmphasisButton.d.ts +0 -6
- package/types/components/Button/LowEmphasisButton/LowEmphasisButton.d.ts +0 -5
- package/types/components/Button/MediumEmphasisButton/MediumEmphasisButton.d.ts +0 -5
- package/types/components/Calendar/CalendarCell.d.ts +0 -12
- package/types/components/Calendar/CalendarGrid.d.ts +0 -10
- package/types/components/Calendar/index.d.ts +0 -4
- package/types/components/IconButton/IconButton.d.ts +0 -31
- package/types/components/Input/TextInput/TextInput.d.ts +0 -27
- /package/types/{components/Grid/Grid.d.ts → cypress/support/commands.d.ts} +0 -0
- /package/types/{components → src/components}/AccessibleIcon/AccessibleIcon.d.ts +0 -0
- /package/types/{components → src/components}/AlertDialog/AlertDialog.d.ts +0 -0
- /package/types/{components → src/components}/Box/Box.d.ts +0 -0
- /package/types/{components → src/components}/Calendar/CalendarHeader.d.ts +0 -0
- /package/types/{components → src/components}/Calendar/RangeCalendar.d.ts +0 -0
- /package/types/{components → src/components}/Checkbox/Checkbox.d.ts +0 -0
- /package/types/{components → src/components}/ComboBox/ComboBox.d.ts +0 -0
- /package/types/{components → src/components}/Dialog/Dialog.d.ts +0 -0
- /package/types/{components → src/components}/Drawer/Drawer.d.ts +0 -0
- /package/types/{components → src/components}/DropdownMenu/DropdownMenu.d.ts +0 -0
- /package/types/{components → src/components}/Fieldset/Fieldset.d.ts +0 -0
- /package/types/{components → src/components}/FileUpload/FileUpload.d.ts +0 -0
- /package/types/{components → src/components}/FormControl/useFormInput.d.ts +0 -0
- /package/types/{components/Stack/Stack.d.ts → src/components/Grid/Grid.d.ts} +0 -0
- /package/types/{components → src/components}/Heading/Heading.d.ts +0 -0
- /package/types/{components → src/components}/Input/NumberInput/NumberInput.d.ts +0 -0
- /package/types/{components → src/components}/Input/TextArea/TextArea.d.ts +0 -0
- /package/types/{components → src/components}/Input/TimeInput/TimeInput.d.ts +0 -0
- /package/types/{components → src/components}/Label/Label.d.ts +0 -0
- /package/types/{components → src/components}/ListBox/ListBox.d.ts +0 -0
- /package/types/{components → src/components}/ListBox/timezones.d.ts +0 -0
- /package/types/{components → src/components}/MultiSelect/MultiSelect.d.ts +0 -0
- /package/types/{components → src/components}/MultiSelect/MultiSelectPopover.d.ts +0 -0
- /package/types/{components → src/components}/MultiSelect/useMultiSelect.d.ts +0 -0
- /package/types/{components → src/components}/MultiSelect/useMultiSelectListState.d.ts +0 -0
- /package/types/{components → src/components}/MultiSelect/useMultiSelectState.d.ts +0 -0
- /package/types/{components → src/components}/NavigationMenu/NavigationMenu.d.ts +0 -0
- /package/types/{components → src/components}/Page/Page.d.ts +0 -0
- /package/types/{components → src/components}/Page/PageHeader.d.ts +0 -0
- /package/types/{components → src/components}/Paginator/Paginator.d.ts +0 -0
- /package/types/{components → src/components}/Popover/Popover.d.ts +0 -0
- /package/types/{components → src/components}/RadioGroup/RadioGroup.d.ts +0 -0
- /package/types/{components → src/components}/ReactAriaButton/ReactAriaButton.d.ts +0 -0
- /package/types/{components → src/components}/Search/Search.d.ts +0 -0
- /package/types/{components → src/components}/SegmentControl/SegmentControl.d.ts +0 -0
- /package/types/{components → src/components}/Select/Select.d.ts +0 -0
- /package/types/{components → src/components}/SingleSelect/SingleSelect.d.ts +0 -0
- /package/types/{components → src/components}/Switch/Switch.d.ts +0 -0
- /package/types/{components → src/components}/Table/Table.d.ts +0 -0
- /package/types/{components → src/components}/Tabs/Tabs.d.ts +0 -0
- /package/types/{components → src/components}/Text/Text.d.ts +0 -0
- /package/types/{components → src/components}/Toast/Toast.d.ts +0 -0
- /package/types/{components → src/components}/Tooltip/IconTooltip.d.ts +0 -0
- /package/types/{components → src/components}/Tooltip/Tooltip.d.ts +0 -0
- /package/types/{helpers → src/helpers}/css.d.ts +0 -0
- /package/types/{helpers → src/helpers}/index.d.ts +0 -0
- /package/types/{helpers → src/helpers}/interactionStates.d.ts +0 -0
- /package/types/{helpers → src/helpers}/tokenUtils.d.ts +0 -0
- /package/types/{helpers → src/helpers}/typeHelpers.d.ts +0 -0
- /package/types/{index.d.ts → src/index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26-alpha.0",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
"build:components": "vite build",
|
|
37
37
|
"build": "npm run clean && npm run build:components && npm run build:types",
|
|
38
38
|
"chromatic": "npx chromatic --project-token=df154c51409f",
|
|
39
|
-
"deploy": "npm run chromatic"
|
|
39
|
+
"deploy": "npm run chromatic",
|
|
40
|
+
"cy:open": "cypress open",
|
|
41
|
+
"cy:run": "cypress run"
|
|
40
42
|
},
|
|
41
43
|
"sideEffects": false,
|
|
42
44
|
"license": "UNLICENSED",
|
|
@@ -99,7 +101,7 @@
|
|
|
99
101
|
"@react-types/overlays": "^3.7.2",
|
|
100
102
|
"@react-types/select": "^3.8.1",
|
|
101
103
|
"@tanstack/react-table": "^8.9.1",
|
|
102
|
-
"@theroutingcompany/design-tokens": "
|
|
104
|
+
"@theroutingcompany/design-tokens": "file:../design-tokens",
|
|
103
105
|
"csstype": "^3.1.2"
|
|
104
106
|
},
|
|
105
107
|
"peerDependencies": {
|
|
@@ -133,6 +135,7 @@
|
|
|
133
135
|
"@typescript-eslint/parser": "^5.58.0",
|
|
134
136
|
"@vitejs/plugin-react": "^3.1.0",
|
|
135
137
|
"chromatic": "^6.17.3",
|
|
138
|
+
"cypress": "^12.14.0",
|
|
136
139
|
"eslint": "^8.38.0",
|
|
137
140
|
"eslint-config-prettier": "^8.8.0",
|
|
138
141
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,7 +10,7 @@ declare const colors: {
|
|
|
10
10
|
};
|
|
11
11
|
readonly muted: {
|
|
12
12
|
readonly background: "hsl(0deg 0% 10% / 8%)";
|
|
13
|
-
readonly color: "hsl(
|
|
13
|
+
readonly color: "hsl(0deg 0% 56%)";
|
|
14
14
|
};
|
|
15
15
|
readonly info: {
|
|
16
16
|
readonly background: "hsl(217.4deg 81.6% 51% / 8%)";
|
|
@@ -23,7 +23,7 @@ declare const colors: {
|
|
|
23
23
|
};
|
|
24
24
|
type BadgeVariant = keyof typeof colors;
|
|
25
25
|
export type BadgeProps = PropsWithChildren<{
|
|
26
|
-
variant
|
|
26
|
+
variant?: BadgeVariant;
|
|
27
27
|
}>;
|
|
28
28
|
export declare function Badge({ children, variant }: BadgeProps): JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -7,7 +7,7 @@ export declare const Breadcrumbs: import("react").ForwardRefExoticComponent<Aria
|
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
} & import("react").RefAttributes<HTMLOListElement>>;
|
|
9
9
|
export type BreadcrumbItemProps<ExtraProps = unknown> = RenameMisprefixedProps<AriaBreadcrumbItemProps, 'is', 'isDisabled'> & {
|
|
10
|
-
LinkComponent?: JSX.Element |
|
|
10
|
+
LinkComponent?: JSX.Element | 'a';
|
|
11
11
|
href?: string | undefined;
|
|
12
12
|
} & ExtraProps;
|
|
13
13
|
export declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<Omit<AriaBreadcrumbItemProps, "isDisabled"> & {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type React from 'react';
|
|
1
2
|
import { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
|
|
2
3
|
import { type AriaButtonProps } from '@react-aria/button';
|
|
4
|
+
import type { BoxProps } from 'components/Box/Box';
|
|
3
5
|
import type { Prettify, RenameMisprefixedProps } from '../../helpers';
|
|
4
6
|
type Variant = 'primary' | 'secondary' | 'danger' | 'inverse';
|
|
5
7
|
type Size = 'small' | 'large';
|
|
@@ -16,12 +18,14 @@ type ButtonDesignProps = {
|
|
|
16
18
|
variant?: Variant;
|
|
17
19
|
size?: Size;
|
|
18
20
|
};
|
|
19
|
-
export type ButtonBaseProps = {
|
|
20
|
-
|
|
21
|
+
export type ButtonBaseProps = BoxProps & {
|
|
22
|
+
buttonPadding?: string;
|
|
21
23
|
};
|
|
22
24
|
type ReactAriaProps = RenameMisprefixedProps<AriaButtonProps, 'is', 'isDisabled'>;
|
|
23
25
|
export type ButtonProps = Prettify<PropsWithChildren<ButtonDesignProps & ReactAriaProps & {
|
|
26
|
+
test?: React.ElementType | null;
|
|
27
|
+
} & {
|
|
24
28
|
onClick?: ReactAriaProps['onPress'];
|
|
25
29
|
} & Pick<ComponentPropsWithoutRef<'button'>, 'form'>>>;
|
|
26
|
-
export declare const Button:
|
|
27
|
-
export
|
|
30
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
export default Button;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const buttonPadding: {
|
|
3
|
+
readonly small: "0.5rem 0.75rem";
|
|
4
|
+
readonly large: "0.75rem 1rem";
|
|
5
|
+
};
|
|
6
|
+
export declare const ButtonBase: import("styled-components").StyledComponent<"div", any, {
|
|
7
|
+
display?: "none" | "inline" | "block" | "inline-block" | "contents" | undefined;
|
|
8
|
+
position?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.Position> | undefined;
|
|
9
|
+
top?: import("csstype").Property.Top<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
|
|
10
|
+
bottom?: import("csstype").Property.Bottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
|
|
11
|
+
left?: import("csstype").Property.Left<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
|
|
12
|
+
right?: import("csstype").Property.Right<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
|
|
13
|
+
zIndex?: import("csstype").Property.ZIndex | undefined;
|
|
14
|
+
w?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.Width<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
|
|
15
|
+
minW?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MinWidth<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
|
|
16
|
+
maxW?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MaxWidth<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
|
|
17
|
+
h?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.Height<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
|
|
18
|
+
minH?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MinHeight<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
|
|
19
|
+
maxH?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MaxHeight<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
|
|
20
|
+
m?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.Margin<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
21
|
+
mt?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MarginTop<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
22
|
+
mb?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MarginBottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
23
|
+
ml?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MarginLeft<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
24
|
+
mr?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.MarginRight<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
25
|
+
p?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.Padding<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
26
|
+
pt?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.PaddingTop<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
27
|
+
pr?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.PaddingRight<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
28
|
+
pb?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.PaddingBottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
29
|
+
pl?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.PaddingLeft<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
|
|
30
|
+
borderRadius?: import("csstype").Property.BorderRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
|
|
31
|
+
borderTopLeftRadius?: import("csstype").Property.BorderTopLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
|
|
32
|
+
borderTopRightRadius?: import("csstype").Property.BorderTopRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
|
|
33
|
+
borderBottomLeftRadius?: import("csstype").Property.BorderBottomLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
|
|
34
|
+
borderBottomRightRadius?: import("csstype").Property.BorderBottomRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
|
|
35
|
+
elevation?: import("../../helpers/tokenUtils").ElevationToken | undefined;
|
|
36
|
+
flexShrink?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.FlexShrink> | undefined;
|
|
37
|
+
flexGrow?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.FlexGrow> | undefined;
|
|
38
|
+
flexBasis?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.FlexBasis<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
|
|
39
|
+
flex?: import("csstype").Property.Flex<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500"> | undefined;
|
|
40
|
+
alignSelf?: import("csstype").Property.AlignSelf | undefined;
|
|
41
|
+
order?: import("csstype").Property.Order | undefined;
|
|
42
|
+
border?: import("csstype").Property.Border<0 | (string & {})> | undefined;
|
|
43
|
+
borderColor?: import("csstype").Property.BorderColor | undefined;
|
|
44
|
+
borderWidth?: import("csstype").Property.BorderWidth<0 | (string & {})> | undefined;
|
|
45
|
+
bg?: import("csstype").Property.Background<0 | (string & {})> | undefined;
|
|
46
|
+
bgColor?: import("csstype").Property.BackgroundColor | undefined;
|
|
47
|
+
opacity?: import("csstype").Property.Background<0 | (string & {})> | undefined;
|
|
48
|
+
color?: import("csstype").Property.Color | undefined;
|
|
49
|
+
overflow?: import("../../helpers/tokenUtils").RemoveVendorProperties<import("csstype").Property.Overflow> | undefined;
|
|
50
|
+
} & {
|
|
51
|
+
children?: import("react").ReactNode;
|
|
52
|
+
} & {
|
|
53
|
+
buttonPadding?: string | undefined;
|
|
54
|
+
}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type ButtonGroupProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const Group: {
|
|
7
|
+
({ children, className }: ButtonGroupProps): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default Group;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type IconBaseProps = {
|
|
3
|
+
width?: number | string;
|
|
4
|
+
height?: number | string;
|
|
5
|
+
size?: number | string;
|
|
6
|
+
label?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ButtonIconProps = IconBaseProps;
|
|
9
|
+
declare const Icon: React.ForwardRefExoticComponent<IconBaseProps & React.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export default Icon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const group: () => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type DateValue } from '@internationalized/date';
|
|
3
|
+
import type { CalendarProps } from '@react-aria/calendar';
|
|
4
|
+
export default function Calendar({ timeZone, ...props }: CalendarProps<DateValue> & {
|
|
5
|
+
timeZone: string;
|
|
6
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type CalendarDate } from '@internationalized/date';
|
|
3
|
+
import type { CalendarState, RangeCalendarState } from '@react-stately/calendar';
|
|
4
|
+
type CalendarCellProps<T> = {
|
|
5
|
+
state: T;
|
|
6
|
+
date: CalendarDate;
|
|
7
|
+
currentMonth: CalendarDate;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
today: CalendarDate;
|
|
10
|
+
};
|
|
11
|
+
export declare function CalendarCell<T extends CalendarState | RangeCalendarState>({ state, date, today, disabled, currentMonth, }: CalendarCellProps<T>): JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type DateDuration } from '@internationalized/date';
|
|
3
|
+
import type { CalendarState, RangeCalendarState } from '@react-stately/calendar';
|
|
4
|
+
interface CalendarGridProps<T> {
|
|
5
|
+
state: T;
|
|
6
|
+
offset?: DateDuration;
|
|
7
|
+
timeZone: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function CalendarGrid<T extends CalendarState | RangeCalendarState>({ state, ...props }: CalendarGridProps<T>): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
|
+
export interface TimeDateSelectProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const TimeDateSelect: React.ForwardRefExoticComponent<TimeDateSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export interface TimeDateSelectItemProps extends SelectPrimitive.SelectItemProps {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const TimeDateSelectItem: React.ForwardRefExoticComponent<TimeDateSelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type ConnectProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
left?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
6
|
+
flexChildren?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function Connect(props: ConnectProps): JSX.Element;
|
|
9
|
+
declare namespace Connect {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
export default Connect;
|
|
@@ -2,7 +2,7 @@ import type { PropsWithChildren } from 'react';
|
|
|
2
2
|
import type { Property } from 'csstype';
|
|
3
3
|
import { type SpacingToken } from '../../helpers/tokenUtils';
|
|
4
4
|
export type FlexProps = PropsWithChildren<{
|
|
5
|
-
display?: 'flex' |
|
|
5
|
+
display?: 'flex' | 'inline-flex';
|
|
6
6
|
wrap?: Property.FlexWrap;
|
|
7
7
|
direction?: Property.FlexDirection;
|
|
8
8
|
alignItems?: Property.AlignItems;
|
|
@@ -21,15 +21,15 @@ export declare const TextAreaFormControl: import("react").ForwardRefExoticCompon
|
|
|
21
21
|
} & AriaFieldProps & {
|
|
22
22
|
children?: ReactNode;
|
|
23
23
|
} & ComponentPropsWithoutStyles<"textarea"> & {
|
|
24
|
+
type?: "url" | "search" | "text" | (string & {}) | "tel" | "email" | "password" | undefined;
|
|
24
25
|
label?: ReactNode;
|
|
25
26
|
pattern?: string | undefined;
|
|
26
|
-
type?: "search" | "text" | (string & {}) | "tel" | "url" | "email" | "password" | undefined;
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
defaultValue?: string | undefined;
|
|
29
29
|
autoFocus?: boolean | undefined;
|
|
30
30
|
id?: string | undefined;
|
|
31
31
|
placeholder?: string | undefined;
|
|
32
|
-
inputMode?: "
|
|
32
|
+
inputMode?: "url" | "search" | "text" | "none" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
33
33
|
'aria-activedescendant'?: string | undefined;
|
|
34
34
|
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
|
35
35
|
'aria-describedby'?: string | undefined;
|
|
@@ -55,10 +55,10 @@ export declare const TextAreaFormControl: import("react").ForwardRefExoticCompon
|
|
|
55
55
|
disabled?: boolean | undefined;
|
|
56
56
|
value?: string | undefined;
|
|
57
57
|
autoComplete?: string | undefined;
|
|
58
|
+
required?: boolean | undefined;
|
|
58
59
|
maxLength?: number | undefined;
|
|
59
60
|
minLength?: number | undefined;
|
|
60
61
|
readOnly?: boolean | undefined;
|
|
61
|
-
required?: boolean | undefined;
|
|
62
62
|
description?: ReactNode;
|
|
63
63
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
64
64
|
excludeFromTabOrder?: boolean | undefined;
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare const EditButtonRight: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("components/Button/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
3
|
+
interface CustomProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
padding?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
}
|
|
9
|
+
export type InlineEditProps = CustomProps;
|
|
10
|
+
export declare const InlineEdit: import("react").ForwardRefExoticComponent<CustomProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import tokens from '@theroutingcompany/design-tokens';
|
|
1
2
|
export type InputSize = 'small' | 'large';
|
|
3
|
+
export type InputRadius = typeof tokens.border_radius_0 | typeof tokens.border_radius_100 | typeof tokens.border_radius_200 | typeof tokens.border_radius_400 | typeof tokens.border_radius_800;
|
|
2
4
|
export type InputBaseProps = {
|
|
3
5
|
paddingSize?: InputSize;
|
|
6
|
+
borderRadius?: InputRadius;
|
|
4
7
|
};
|
|
5
8
|
export declare const InputBase: import("styled-components").StyledComponent<"input", any, InputBaseProps, never>;
|
|
6
9
|
export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type AriaTextFieldOptions } from '@react-aria/textfield';
|
|
3
|
+
import type { RenameBooleanProps } from '../../../helpers/typeHelpers';
|
|
4
|
+
import { type InputBaseProps, type InputRadius } from '../InputBase';
|
|
5
|
+
type ReactAriaInputProps = Omit<RenameBooleanProps<AriaTextFieldOptions<'input'>>, 'inputElementType'>;
|
|
6
|
+
interface CustomTextInputProps {
|
|
7
|
+
focus?: boolean | undefined;
|
|
8
|
+
inputBorderRadius?: InputRadius;
|
|
9
|
+
connectLeft?: React.ReactNode | null;
|
|
10
|
+
connectRight?: React.ReactNode | null;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export type TextInputProps = ReactAriaInputProps & InputBaseProps & CustomTextInputProps;
|
|
14
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps & CustomTextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import type { AriaListBoxOptions } from
|
|
3
|
-
import type { MultiSelectState } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AriaListBoxOptions } from '@react-aria/listbox';
|
|
3
|
+
import type { MultiSelectState } from './useMultiSelectState';
|
|
4
4
|
interface ListBoxProps<T> extends AriaListBoxOptions<T> {
|
|
5
5
|
listBoxRef?: React.RefObject<HTMLUListElement>;
|
|
6
6
|
state: MultiSelectState<T>;
|
|
File without changes
|
|
@@ -3,6 +3,5 @@ export interface TitleProps {
|
|
|
3
3
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'legend' | 'figcaption';
|
|
4
4
|
size: 'small' | 'medium' | 'large' | 'xsmall';
|
|
5
5
|
}
|
|
6
|
-
export type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6',
|
|
7
|
-
TitleProps>;
|
|
6
|
+
export type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', TitleProps>;
|
|
8
7
|
export declare const Title: PolymorphicTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -15,9 +15,9 @@ export * from './FileUpload/FileUpload';
|
|
|
15
15
|
export * from './Flex/Flex';
|
|
16
16
|
export * from './FormControl/FormControl';
|
|
17
17
|
export * from './Heading/Heading';
|
|
18
|
-
export * from './IconButton/IconButton';
|
|
19
18
|
export * from './Input/NumberInput/NumberInput';
|
|
20
19
|
export * from './Input/TextInput/TextInput';
|
|
20
|
+
export * from './Input/InlineEdit/InlineEdit';
|
|
21
21
|
export * from './Input/TimeInput/TimeInput';
|
|
22
22
|
export * from './Label/Label';
|
|
23
23
|
export * from './MultiSelect/MultiSelect';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ButtonBaseProps } from './Button';
|
|
2
|
-
export declare const buttonPadding: {
|
|
3
|
-
readonly small: "0.5rem 0.75rem";
|
|
4
|
-
readonly large: "0.75rem 1rem";
|
|
5
|
-
};
|
|
6
|
-
export declare const ButtonBase: import("styled-components").StyledComponent<"button", any, ButtonBaseProps, never>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const highEmphasisButtons: {
|
|
2
|
-
readonly primary: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
3
|
-
readonly secondary: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
4
|
-
readonly danger: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
5
|
-
readonly inverse: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
6
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const lowEmphasisButtons: {
|
|
2
|
-
readonly primary: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
3
|
-
readonly danger: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
4
|
-
readonly inverse: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
5
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const mediumEmphasisButtons: {
|
|
2
|
-
readonly primary: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
3
|
-
readonly danger: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
4
|
-
readonly inverse: import("styled-components").StyledComponent<"button", any, import("../Button").ButtonBaseProps, never>;
|
|
5
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type CalendarDate } from '@internationalized/date';
|
|
3
|
-
import type { RangeCalendarState } from '@react-stately/calendar';
|
|
4
|
-
type CalendarCellProps = {
|
|
5
|
-
state: RangeCalendarState;
|
|
6
|
-
date: CalendarDate;
|
|
7
|
-
currentMonth: CalendarDate;
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
|
-
today: CalendarDate;
|
|
10
|
-
};
|
|
11
|
-
export declare function CalendarCell({ state, date, today, disabled, currentMonth, }: CalendarCellProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type DateDuration } from '@internationalized/date';
|
|
3
|
-
import type { RangeCalendarState } from '@react-stately/calendar';
|
|
4
|
-
type CalendarGridProps = {
|
|
5
|
-
state: RangeCalendarState;
|
|
6
|
-
offset?: DateDuration;
|
|
7
|
-
timeZone: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function CalendarGrid({ state, timeZone, offset, }: CalendarGridProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type AriaButtonProps } from '@react-aria/button';
|
|
3
|
-
type Size = 'small' | 'large';
|
|
4
|
-
type Variant = 'primary' | 'secondary' | 'danger' | 'inverse';
|
|
5
|
-
type Shape = 'circle' | 'square';
|
|
6
|
-
export type StyledIconButtonProps = AriaButtonProps & {
|
|
7
|
-
onClick?: AriaButtonProps['onPress'] | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
label: string;
|
|
10
|
-
size?: Size;
|
|
11
|
-
variant?: Variant;
|
|
12
|
-
shape?: Shape;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
};
|
|
15
|
-
/** Be sure to add add a `label` prop. Note `aria-label` is already taken care of by the `label` prop.
|
|
16
|
-
* ```jsx
|
|
17
|
-
* <IconButton label="Add new item">
|
|
18
|
-
* <AddIcon/>
|
|
19
|
-
* </IconButton>
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
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>>;
|
|
31
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type AriaTextFieldOptions } from '@react-aria/textfield';
|
|
3
|
-
import type { RenameBooleanProps } from '../../../helpers/typeHelpers';
|
|
4
|
-
import { type InputBaseProps } from '../InputBase';
|
|
5
|
-
type ReactAriaInputProps = Omit<RenameBooleanProps<AriaTextFieldOptions<'input'>>, 'inputElementType'>;
|
|
6
|
-
export type TextInputProps = ReactAriaInputProps & InputBaseProps;
|
|
7
|
-
/**
|
|
8
|
-
* 1. With custom label element as prop
|
|
9
|
-
* ```jsx
|
|
10
|
-
* <TextInput label={<Label>Label text</Label>} />
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* 2. With string label as prop
|
|
14
|
-
* ```jsx
|
|
15
|
-
* <TextInput label="Label text" />
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* 3. Wrapped by <label>
|
|
19
|
-
* ```jsx
|
|
20
|
-
* <label>
|
|
21
|
-
* Label text
|
|
22
|
-
* <TextInput />
|
|
23
|
-
* </label>
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
27
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|