@theroutingcompany/components 0.0.26-alpha.1 → 0.0.26-alpha.11
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 +10376 -8962
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +1325 -873
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -11
- package/types/{src/components → components}/AccessibleIcon/AccessibleIcon.d.ts +1 -2
- package/types/{src/components → components}/AlertDialog/AlertDialog.d.ts +2 -2
- package/types/{src/components → components}/Badge/Badge.d.ts +2 -2
- package/types/components/Box/Box.d.ts +17 -0
- package/types/{src/components → components}/Button/Button.d.ts +4 -8
- package/types/components/Button/ButtonBase.d.ts +6 -0
- package/types/components/Button/HighEmphasisButton/HighEmphasisButton.d.ts +6 -0
- package/types/components/Button/LowEmphasisButton/LowEmphasisButton.d.ts +5 -0
- package/types/components/Button/MediumEmphasisButton/MediumEmphasisButton.d.ts +5 -0
- package/types/components/ButtonV2/ButtonV2.d.ts +24 -0
- package/types/components/ButtonV2/styles.d.ts +25 -0
- package/types/{src/components → components}/Calendar/Calendar.d.ts +1 -2
- package/types/components/Calendar/CalendarCell.d.ts +11 -0
- package/types/{src/components → components}/Calendar/CalendarGrid.d.ts +1 -2
- package/types/{src/components → components}/Calendar/CalendarHeader.d.ts +1 -1
- package/types/{src/components → components}/Calendar/RangeCalendar.d.ts +1 -2
- package/types/{src/components → components}/Calendar/TimeDateSelect.d.ts +3 -1
- package/types/{src/components → components}/ComboBox/ComboBox.d.ts +1 -2
- package/types/{src/components → components}/Connect/Connect.d.ts +1 -1
- package/types/{src/components → components}/Dialog/Dialog.d.ts +2 -2
- package/types/{src/components → components}/Drawer/Drawer.d.ts +3 -3
- package/types/{src/components → components}/Fieldset/Fieldset.d.ts +1 -2
- package/types/components/Flex/Flex.d.ts +11 -0
- package/types/{src/components → components}/FormControl/FormControl.d.ts +14 -6
- package/types/components/IconButton/IconButton.d.ts +31 -0
- package/types/components/Input/InlineEdit/InlineEdit.d.ts +21 -0
- package/types/{src/components → components}/Input/InputBase.d.ts +12 -4
- package/types/{src/components → components}/Input/NumberInput/NumberInput.d.ts +6 -2
- package/types/{src/components → components}/Input/TextArea/TextArea.d.ts +5 -1
- package/types/{src/components → components}/Input/TextInput/TextInput.d.ts +8 -2
- package/types/components/Input/TimeInput/TimeInput.d.ts +9 -0
- package/types/{src/components → components}/Label/Label.d.ts +1 -1
- package/types/{src/components → components}/ListBox/ListBox.d.ts +5 -5
- package/types/{src/components → components}/MultiSelect/MultiSelectListBox.d.ts +1 -1
- package/types/{src/components → components}/MultiSelect/MultiSelectPopover.d.ts +1 -1
- package/types/{src/components → components}/NavigationMenu/NavigationMenu.d.ts +4 -4
- package/types/{src/components → components}/Page/PageHeader.d.ts +1 -1
- package/types/{src/components → components}/Paginator/Paginator.d.ts +1 -1
- package/types/{src/components → components}/Popover/Popover.d.ts +1 -1
- package/types/{src/components → components}/RadioGroup/RadioGroup.d.ts +2 -2
- package/types/{src/components → components}/ReactAriaButton/ReactAriaButton.d.ts +1 -1
- package/types/{src/components → components}/SegmentControl/SegmentControl.d.ts +1 -1
- package/types/{src/components → components}/Select/Select.d.ts +2 -2
- package/types/{src/components → components}/SingleSelect/SingleSelect.d.ts +1 -2
- package/types/components/Skeleton/Skeleton.d.ts +30 -0
- package/types/components/Stack/Stack.d.ts +15 -0
- package/types/{src/components → components}/Table/Table.d.ts +1 -2
- package/types/{src/components → components}/Toast/Toast.d.ts +2 -2
- package/types/{src/components → components}/Tooltip/IconTooltip.d.ts +1 -1
- package/types/{src/components → components}/Tooltip/Tooltip.d.ts +1 -1
- package/types/{src/components → components}/index.d.ts +4 -1
- package/types/{src/helpers → helpers}/index.d.ts +1 -0
- package/types/helpers/props.d.ts +45 -0
- package/types/{src/helpers → helpers}/tokenUtils.d.ts +3 -0
- package/types/helpers/typeHelpers.d.ts +90 -0
- package/types/styles/index.d.ts +34 -0
- package/types/cypress/support/commands.d.ts +0 -0
- package/types/cypress/support/component.d.ts +0 -9
- package/types/cypress.config.d.ts +0 -3
- package/types/src/components/Badge/Badge.cy.d.ts +0 -1
- package/types/src/components/Box/Box.d.ts +0 -133
- package/types/src/components/Button/ButtonBase.d.ts +0 -54
- package/types/src/components/Button/Group.d.ts +0 -10
- package/types/src/components/Button/styles.d.ts +0 -1
- package/types/src/components/Calendar/CalendarCell.d.ts +0 -12
- package/types/src/components/Flex/Flex.d.ts +0 -73
- package/types/src/components/Input/InlineEdit/InlineEdit.d.ts +0 -11
- package/types/src/components/Input/TimeInput/TimeInput.d.ts +0 -3
- package/types/src/components/Stack/Stack.d.ts +0 -0
- package/types/src/components/Tokens/Tokens.cy.d.ts +0 -1
- package/types/src/helpers/typeHelpers.d.ts +0 -27
- /package/types/{src/components → components}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/types/{src/components/Button → components/ButtonV2}/Icon.d.ts +0 -0
- /package/types/{src/components → components}/Calendar/index.d.ts +0 -0
- /package/types/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
- /package/types/{src/components → components}/DropdownMenu/DropdownMenu.d.ts +0 -0
- /package/types/{src/components → components}/FileUpload/FileUpload.d.ts +0 -0
- /package/types/{src/components → components}/FormControl/useFormInput.d.ts +0 -0
- /package/types/{src/components → components}/Grid/Grid.d.ts +0 -0
- /package/types/{src/components → components}/Heading/Heading.d.ts +0 -0
- /package/types/{src/components → components}/Inline/Inline.d.ts +0 -0
- /package/types/{src/components → components}/ListBox/timezones.d.ts +0 -0
- /package/types/{src/components → components}/MultiSelect/MultiSelect.d.ts +0 -0
- /package/types/{src/components → components}/MultiSelect/useMultiSelect.d.ts +0 -0
- /package/types/{src/components → components}/MultiSelect/useMultiSelectListState.d.ts +0 -0
- /package/types/{src/components → components}/MultiSelect/useMultiSelectState.d.ts +0 -0
- /package/types/{src/components → components}/Page/Page.d.ts +0 -0
- /package/types/{src/components → components}/Search/Search.d.ts +0 -0
- /package/types/{src/components → components}/Switch/Switch.d.ts +0 -0
- /package/types/{src/components → components}/Tabs/Tabs.d.ts +0 -0
- /package/types/{src/components → components}/Text/Text.d.ts +0 -0
- /package/types/{src/components → components}/Title/Title.d.ts +0 -0
- /package/types/{src/components → components}/UnstyledLink/UnstyledLink.d.ts +0 -0
- /package/types/{src/helpers → helpers}/css.d.ts +0 -0
- /package/types/{src/helpers → helpers}/interactionStates.d.ts +0 -0
- /package/types/{src/index.d.ts → index.d.ts} +0 -0
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.11",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -21,9 +21,11 @@
|
|
|
21
21
|
"types"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
24
|
+
"debug:reset:modules": "rm -f -- package-lock.json && rm -rf node_modules && npm i",
|
|
25
|
+
"link:tokens": "./scripts/link-tokens.sh",
|
|
26
|
+
"break:cache": "rm -rf node_modules && npm i --package-lock && npm run start --force",
|
|
27
|
+
"ready:prerelease": "npm run build && ./scripts/prerelease.sh",
|
|
28
|
+
"ready:release": "npm run build && ./scripts/release.sh",
|
|
27
29
|
"format": "prettier ./src/**/*.{ts,tsx} --write --no-config",
|
|
28
30
|
"clean": "rimraf ./dist ./types",
|
|
29
31
|
"storybook": "storybook dev -p 6006",
|
|
@@ -36,9 +38,7 @@
|
|
|
36
38
|
"build:components": "vite build",
|
|
37
39
|
"build": "npm run clean && npm run build:components && npm run build:types",
|
|
38
40
|
"chromatic": "npx chromatic --project-token=df154c51409f",
|
|
39
|
-
"deploy": "npm run chromatic"
|
|
40
|
-
"cy:open": "cypress open",
|
|
41
|
-
"cy:run": "cypress run"
|
|
41
|
+
"deploy": "npm run chromatic"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"license": "UNLICENSED",
|
|
@@ -99,10 +99,16 @@
|
|
|
99
99
|
"@react-types/combobox": "^3.6.2",
|
|
100
100
|
"@react-types/datepicker": "^3.3.1",
|
|
101
101
|
"@react-types/overlays": "^3.7.2",
|
|
102
|
+
"@types/styled-system": "^5.1.16",
|
|
102
103
|
"@react-types/select": "^3.8.1",
|
|
103
104
|
"@tanstack/react-table": "^8.9.1",
|
|
104
|
-
"@theroutingcompany/design-tokens": "0.0.4-alpha.
|
|
105
|
-
"
|
|
105
|
+
"@theroutingcompany/design-tokens": "^0.0.4-alpha.3",
|
|
106
|
+
"@styled-system/prop-types": "^5.1.2",
|
|
107
|
+
"@styled-system/props": "^5.1.5",
|
|
108
|
+
"csstype": "^3.1.2",
|
|
109
|
+
"react-transition-group": "^4.4.5",
|
|
110
|
+
"styled-components": "^5.3.9",
|
|
111
|
+
"styled-system": "^5.1.5"
|
|
106
112
|
},
|
|
107
113
|
"peerDependencies": {
|
|
108
114
|
"@material-ui/icons": "^4.11.3",
|
|
@@ -135,7 +141,6 @@
|
|
|
135
141
|
"@typescript-eslint/parser": "^5.58.0",
|
|
136
142
|
"@vitejs/plugin-react": "^3.1.0",
|
|
137
143
|
"chromatic": "^6.17.3",
|
|
138
|
-
"cypress": "^12.14.0",
|
|
139
144
|
"eslint": "^8.38.0",
|
|
140
145
|
"eslint-config-prettier": "^8.8.0",
|
|
141
146
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
@@ -150,7 +155,7 @@
|
|
|
150
155
|
"react-is": "^18.2.0",
|
|
151
156
|
"rimraf": "^5.0.0",
|
|
152
157
|
"storybook": "^7.0.3",
|
|
153
|
-
"styled-components": "^5.3.
|
|
158
|
+
"styled-components": "^5.3.11",
|
|
154
159
|
"stylelint": "^15.2.0",
|
|
155
160
|
"stylelint-config-prettier": "^9.0.5",
|
|
156
161
|
"stylelint-config-standard": "^32.0.0",
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as AccessibleIconPrimitive from '@radix-ui/react-accessible-icon';
|
|
3
|
-
export declare function AccessibleIcon({ children, label, }: AccessibleIconPrimitive.AccessibleIconProps): JSX.Element;
|
|
2
|
+
export declare function AccessibleIcon({ children, label, }: AccessibleIconPrimitive.AccessibleIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,7 @@ type StyledContentProps = {
|
|
|
6
6
|
size?: DialogWidth;
|
|
7
7
|
};
|
|
8
8
|
export type AlertDialogContentProps = StyledContentProps & AlertDialogPrimitive.DialogContentProps & ComponentPropsWithRef<'div'>;
|
|
9
|
-
export declare function AlertDialogContent({ children, size, ...props }: AlertDialogContentProps): JSX.Element;
|
|
9
|
+
export declare function AlertDialogContent({ children, size, ...props }: AlertDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare const AlertDialogTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>, any, {}, never>;
|
|
11
11
|
export declare const AlertDialogDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
12
12
|
export declare const AlertDialogFooter: import("styled-components").StyledComponent<"footer", any, {}, never>;
|
|
@@ -15,5 +15,5 @@ export declare const AlertDialogTrigger: import("react").ForwardRefExoticCompone
|
|
|
15
15
|
export declare const AlertDialogAction: import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
16
|
export declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
/** AlertDialog Cancel Button positioned in top right with × */
|
|
18
|
-
export declare const AlertDialogCancelButton: ({ children, ...buttonProps }: AlertDialogPrimitive.AlertDialogCancelProps) => JSX.Element;
|
|
18
|
+
export declare const AlertDialogCancelButton: ({ children, ...buttonProps }: AlertDialogPrimitive.AlertDialogCancelProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -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
|
-
export declare function Badge({ children, variant }: BadgeProps): JSX.Element;
|
|
28
|
+
export declare function Badge({ children, variant }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Polymorphic from 'helpers';
|
|
2
|
+
import { type SpacingTokenValues } from 'helpers/tokenUtils';
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
import type { BorderProps, ColorProps, FlexboxProps, GridGapProps, GridProps, LayoutProps, PositionProps, ResponsiveValue, ShadowProps, SpaceProps, TypographyProps } from 'styled-system';
|
|
5
|
+
interface CustomSpaceProps extends SpaceProps {
|
|
6
|
+
gap?: ResponsiveValue<SpacingTokenValues>;
|
|
7
|
+
}
|
|
8
|
+
export interface BoxProps extends BorderProps, ColorProps, FlexboxProps, GridProps, GridGapProps, LayoutProps, Omit<PositionProps, 'zIndex'>, // Override because styled-system by default only allows numbers here
|
|
9
|
+
ShadowProps, CustomSpaceProps, TypographyProps {
|
|
10
|
+
truncate?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
zIndex?: ResponsiveValue<string | number>;
|
|
13
|
+
}
|
|
14
|
+
type PolymorphicBox = Polymorphic.ForwardRefComponent<'div', BoxProps>;
|
|
15
|
+
export declare const boxSystem: import("styled-system").styleFn;
|
|
16
|
+
export declare const Box: PolymorphicBox;
|
|
17
|
+
export default Box;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
1
|
import { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
|
|
3
2
|
import { type AriaButtonProps } from '@react-aria/button';
|
|
4
|
-
import type { BoxProps } from 'components/Box/Box';
|
|
5
3
|
import type { Prettify, RenameMisprefixedProps } from '../../helpers';
|
|
6
4
|
type Variant = 'primary' | 'secondary' | 'danger' | 'inverse';
|
|
7
5
|
type Size = 'small' | 'large';
|
|
@@ -18,14 +16,12 @@ type ButtonDesignProps = {
|
|
|
18
16
|
variant?: Variant;
|
|
19
17
|
size?: Size;
|
|
20
18
|
};
|
|
21
|
-
export type ButtonBaseProps =
|
|
22
|
-
|
|
19
|
+
export type ButtonBaseProps = {
|
|
20
|
+
paddingSize: Size;
|
|
23
21
|
};
|
|
24
22
|
type ReactAriaProps = RenameMisprefixedProps<AriaButtonProps, 'is', 'isDisabled'>;
|
|
25
23
|
export type ButtonProps = Prettify<PropsWithChildren<ButtonDesignProps & ReactAriaProps & {
|
|
26
|
-
test?: React.ElementType | null;
|
|
27
|
-
} & {
|
|
28
24
|
onClick?: ReactAriaProps['onPress'];
|
|
29
25
|
} & Pick<ComponentPropsWithoutRef<'button'>, 'form'>>>;
|
|
30
|
-
export declare const Button:
|
|
31
|
-
export
|
|
26
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
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>;
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type ClickHandler, type FocusHandler } from 'helpers';
|
|
3
|
+
export type Variant = 'primary' | 'secondary' | 'tertiary' | 'danger';
|
|
4
|
+
export type Size = 'small' | 'large';
|
|
5
|
+
export declare const buttonV2System: import("styled-system").styleFn;
|
|
6
|
+
export declare const StyledButtonBox: import("styled-components").StyledComponent<import("helpers").ForwardRefComponent<"div", import("components/Box/Box").BoxProps>, any, any, never>;
|
|
7
|
+
export interface ButtonPropsV2 {
|
|
8
|
+
'data-id'?: string;
|
|
9
|
+
as?: React.ElementType;
|
|
10
|
+
to?: string;
|
|
11
|
+
toTitle?: string;
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
size?: Size;
|
|
15
|
+
fullWidth?: boolean;
|
|
16
|
+
submit?: boolean;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
onClick?: ClickHandler;
|
|
20
|
+
onFocus?: FocusHandler;
|
|
21
|
+
onBlur?: FocusHandler;
|
|
22
|
+
}
|
|
23
|
+
export declare const ButtonV2: import("react").ForwardRefExoticComponent<ButtonPropsV2 & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
export default ButtonV2;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Size, Variant } from './ButtonV2';
|
|
2
|
+
export declare function focus({ buttonColor }: {
|
|
3
|
+
buttonColor?: string;
|
|
4
|
+
}): string;
|
|
5
|
+
export declare const reset: () => string;
|
|
6
|
+
export declare const base: () => string;
|
|
7
|
+
export type LoadingProp = {
|
|
8
|
+
$loading?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const childwrapper: (props: LoadingProp) => string;
|
|
11
|
+
export declare const disabled: (props: {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
}) => "\n opacity: 0.6;\n &:hover {\n cursor: not-allowed;\n }\n " | undefined;
|
|
14
|
+
export declare const fullWidth: (props: {
|
|
15
|
+
fullWidth: boolean;
|
|
16
|
+
}) => "\n display: block;\n width: 100%;\n " | undefined;
|
|
17
|
+
export declare const group: () => string;
|
|
18
|
+
export declare const primary: import("styled-components").FlattenSimpleInterpolation;
|
|
19
|
+
export declare const secondary: import("styled-components").FlattenSimpleInterpolation;
|
|
20
|
+
export declare const tertiary: import("styled-components").FlattenSimpleInterpolation;
|
|
21
|
+
export declare const danger: import("styled-components").FlattenSimpleInterpolation;
|
|
22
|
+
export declare const getVariantStyles: (variant: Variant) => import("styled-components").FlattenSimpleInterpolation | undefined;
|
|
23
|
+
export declare const small: import("styled-components").FlattenSimpleInterpolation;
|
|
24
|
+
export declare const large: import("styled-components").FlattenSimpleInterpolation;
|
|
25
|
+
export declare const getDefaultSize: (size: Size) => import("styled-components").FlattenSimpleInterpolation | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type DateValue } from '@internationalized/date';
|
|
3
2
|
import type { CalendarProps } from '@react-aria/calendar';
|
|
4
3
|
export default function Calendar({ timeZone, ...props }: CalendarProps<DateValue> & {
|
|
5
4
|
timeZone: string;
|
|
6
|
-
}): JSX.Element;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type CalendarDate } from '@internationalized/date';
|
|
2
|
+
import type { RangeCalendarState } from '@react-stately/calendar';
|
|
3
|
+
type CalendarCellProps = {
|
|
4
|
+
state: RangeCalendarState;
|
|
5
|
+
date: CalendarDate;
|
|
6
|
+
currentMonth: CalendarDate;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
today: CalendarDate;
|
|
9
|
+
};
|
|
10
|
+
export declare function CalendarCell({ state, date, today, disabled, currentMonth, }: CalendarCellProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type DateDuration } from '@internationalized/date';
|
|
3
2
|
import type { CalendarState, RangeCalendarState } from '@react-stately/calendar';
|
|
4
3
|
interface CalendarGridProps<T> {
|
|
@@ -6,5 +5,5 @@ interface CalendarGridProps<T> {
|
|
|
6
5
|
offset?: DateDuration;
|
|
7
6
|
timeZone: string;
|
|
8
7
|
}
|
|
9
|
-
export declare function CalendarGrid<T extends CalendarState | RangeCalendarState>({ state, ...props }: CalendarGridProps<T>): JSX.Element;
|
|
8
|
+
export declare function CalendarGrid<T extends CalendarState | RangeCalendarState>({ state, ...props }: CalendarGridProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type DateValue } from '@internationalized/date';
|
|
3
2
|
import { type RangeCalendarProps } from '@react-aria/calendar';
|
|
4
3
|
export declare function RangeCalendar({ timeZone, ...props }: RangeCalendarProps<DateValue> & {
|
|
5
4
|
timeZone: string;
|
|
6
|
-
}): JSX.Element;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
|
+
import { TODOFIXME } from 'helpers';
|
|
4
5
|
export interface TimeDateSelectProps {
|
|
5
|
-
|
|
6
|
+
onTimeChange?: TODOFIXME;
|
|
7
|
+
onDateChange?: TODOFIXME;
|
|
6
8
|
}
|
|
7
9
|
export declare const TimeDateSelect: React.ForwardRefExoticComponent<TimeDateSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
10
|
export interface TimeDateSelectItemProps extends SelectPrimitive.SelectItemProps {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ComboBoxProps } from "@react-types/combobox";
|
|
3
2
|
export { Item, Section } from "@react-stately/collections";
|
|
4
3
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
4
|
export declare const Label: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
6
|
-
export declare function ComboBox<T extends object>(props: ComboBoxProps<T>): JSX.Element;
|
|
5
|
+
export declare function ComboBox<T extends object>(props: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,7 +12,7 @@ type StyledContentProps = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const dialogContentStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
14
14
|
export type DialogContentProps = StyledContentProps & DialogPrimitive.DialogContentProps & ComponentPropsWithRef<'div'>;
|
|
15
|
-
export declare function DialogContent({ children, size, ...props }: DialogContentProps): JSX.Element;
|
|
15
|
+
export declare function DialogContent({ children, size, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export declare const dialogTitleStyles: string;
|
|
17
17
|
export declare const DialogTitle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>, any, {}, never>;
|
|
18
18
|
export declare const dialogDescriptionStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -20,7 +20,7 @@ export declare const DialogDescription: import("styled-components").StyledCompon
|
|
|
20
20
|
export declare const DialogFooter: import("styled-components").StyledComponent<"footer", any, {}, never>;
|
|
21
21
|
export declare const dialogCloseButtonStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
22
22
|
/** Dialog Close Button positioned in top right with × */
|
|
23
|
-
export declare const DialogCloseButton: ({ children, ...buttonProps }: DialogPrimitive.DialogCloseProps) => JSX.Element;
|
|
23
|
+
export declare const DialogCloseButton: ({ children, ...buttonProps }: DialogPrimitive.DialogCloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare const Dialog: import("react").FC<DialogPrimitive.DialogProps>;
|
|
25
25
|
export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
26
|
export declare const DialogClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -4,7 +4,7 @@ import * as Dialog from '@radix-ui/react-dialog';
|
|
|
4
4
|
export declare const DrawerRoot: import("react").FC<Dialog.DialogProps>;
|
|
5
5
|
export declare const DrawerTrigger: import("react").ForwardRefExoticComponent<Dialog.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
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;
|
|
7
|
+
export declare const DrawerCloseButton: () => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const DrawerDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Dialog.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>, any, {}, never>;
|
|
9
9
|
export declare const DrawerSectionTitle: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
10
10
|
declare const widths: {
|
|
@@ -16,7 +16,7 @@ export type DrawerSize = keyof typeof widths;
|
|
|
16
16
|
type DrawerProps = PropsWithChildren<{
|
|
17
17
|
size?: DrawerSize;
|
|
18
18
|
}> & Dialog.DialogPortalProps;
|
|
19
|
-
export declare function Drawer({ children, size, ...props }: DrawerProps): JSX.Element;
|
|
19
|
+
export declare function Drawer({ children, size, ...props }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare const DrawerAccordionRoot: import("react").ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
21
|
export type DrawerSectionProps = AccordionPrimitive.AccordionItemProps;
|
|
22
22
|
/** CSS Variables to control child styles of section closed/open state
|
|
@@ -32,5 +32,5 @@ export type DrawerSectionHeaderProps = {
|
|
|
32
32
|
children: ReactNode;
|
|
33
33
|
icon: ReactNode;
|
|
34
34
|
};
|
|
35
|
-
export declare function DrawerSectionHeader({ children, icon, }: DrawerSectionHeaderProps): JSX.Element;
|
|
35
|
+
export declare function DrawerSectionHeader({ children, icon, }: DrawerSectionHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ComponentPropsWithoutStyles } from '../../helpers/typeHelpers';
|
|
3
2
|
export declare const StyledFieldSet: import("styled-components").StyledComponent<"fieldset", any, {}, never>;
|
|
4
3
|
/** Adding disabled to `<fieldset>` will disable all inputs inside it HTML wise,
|
|
@@ -18,5 +17,5 @@ export declare const StyledFieldSet: import("styled-components").StyledComponent
|
|
|
18
17
|
* </Fieldset>
|
|
19
18
|
* ```
|
|
20
19
|
*/
|
|
21
|
-
export declare function Fieldset({ children, disabled, ...fieldsetProps }: ComponentPropsWithoutStyles<'fieldset'>): JSX.Element;
|
|
20
|
+
export declare function Fieldset({ children, disabled, ...fieldsetProps }: ComponentPropsWithoutStyles<'fieldset'>): import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export declare function useFieldset(): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type BoxProps } from 'components/Box/Box';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export type FlexProps = {
|
|
4
|
+
'data-id'?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
} & BoxProps;
|
|
7
|
+
export declare function Flex(props: FlexProps): JSX.Element;
|
|
8
|
+
export declare namespace Flex {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
11
|
+
export default Flex;
|
|
@@ -8,7 +8,7 @@ type FormControlProps<FieldProps = AriaFieldProps> = PropsWithChildren<{
|
|
|
8
8
|
} & FieldProps>;
|
|
9
9
|
/** If in a `<FormControl/>`, read `fieldProps` generated by that FormControl's `useField` hook */
|
|
10
10
|
export declare function useFieldProps(): FieldAria['fieldProps'];
|
|
11
|
-
export declare function FormControl({ children, label, errorMessage, description, tooltipContent, tooltipIcon, validationState, id, ...props }: FormControlProps): JSX.Element;
|
|
11
|
+
export declare function FormControl({ children, label, errorMessage, description, tooltipContent, tooltipIcon, validationState, id, ...props }: FormControlProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare const TextFormControl: import("react").ForwardRefExoticComponent<{
|
|
13
13
|
tooltipContent?: string | undefined;
|
|
14
14
|
tooltipIcon?: ReactNode;
|
|
@@ -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;
|
|
25
24
|
label?: ReactNode;
|
|
26
25
|
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?: "search" | "text" | "none" | "tel" | "url" | "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,16 +55,20 @@ 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;
|
|
59
58
|
maxLength?: number | undefined;
|
|
60
59
|
minLength?: number | undefined;
|
|
61
60
|
readOnly?: boolean | undefined;
|
|
61
|
+
required?: boolean | undefined;
|
|
62
62
|
description?: ReactNode;
|
|
63
63
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
64
64
|
excludeFromTabOrder?: boolean | undefined;
|
|
65
65
|
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
66
66
|
errorMessage?: ReactNode;
|
|
67
|
-
} &
|
|
67
|
+
} & {
|
|
68
|
+
borderRadius?: import("components/Input/InputBase").InputRadius | undefined;
|
|
69
|
+
paddingSize?: import("components/Input/InputBase").InputSize | undefined;
|
|
70
|
+
height?: string | number | undefined;
|
|
71
|
+
} & import("components/Input/InputBase").FullWidth & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
68
72
|
export declare const NumberFormControl: import("react").ForwardRefExoticComponent<{
|
|
69
73
|
tooltipContent?: string | undefined;
|
|
70
74
|
tooltipIcon?: ReactNode;
|
|
@@ -73,7 +77,11 @@ export declare const NumberFormControl: import("react").ForwardRefExoticComponen
|
|
|
73
77
|
} & Omit<import("../../helpers/typeHelpers").RenameBooleanProps<import("@react-types/numberfield").AriaNumberFieldProps>, "minValue" | "maxValue"> & {
|
|
74
78
|
min?: number | undefined;
|
|
75
79
|
max?: number | undefined;
|
|
76
|
-
} &
|
|
80
|
+
} & {
|
|
81
|
+
borderRadius?: import("components/Input/InputBase").InputRadius | undefined;
|
|
82
|
+
paddingSize?: import("components/Input/InputBase").InputSize | undefined;
|
|
83
|
+
height?: string | number | undefined;
|
|
84
|
+
} & import("components/Input/InputBase").FullWidth & {
|
|
77
85
|
name?: string | undefined;
|
|
78
86
|
} & {
|
|
79
87
|
showStepper?: boolean | undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TODOFIXME } from 'helpers';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export declare const EditButtonRight: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("components/Button/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
4
|
+
type TextAlign = 'left' | 'center';
|
|
5
|
+
export interface InlineEditProps {
|
|
6
|
+
'data-id'?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
minWidth?: string;
|
|
12
|
+
textAlign?: TextAlign;
|
|
13
|
+
hideIcon?: boolean;
|
|
14
|
+
p?: string;
|
|
15
|
+
onChange?: TODOFIXME;
|
|
16
|
+
}
|
|
17
|
+
export declare const InlineEdit: {
|
|
18
|
+
({ children, placeholder, defaultValue, minWidth, hideIcon, fullWidth, textAlign, p, onChange, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import tokens from '@theroutingcompany/design-tokens';
|
|
2
2
|
export type InputSize = 'small' | 'large';
|
|
3
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;
|
|
4
|
+
export type FullWidth = {
|
|
5
|
+
fullWidth?: true;
|
|
6
|
+
};
|
|
4
7
|
export type InputBaseProps = {
|
|
5
|
-
paddingSize?: InputSize;
|
|
6
8
|
borderRadius?: InputRadius;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
paddingSize?: InputSize;
|
|
10
|
+
height?: number | string;
|
|
11
|
+
} & FullWidth;
|
|
12
|
+
export declare const InputBase: import("styled-components").StyledComponent<"input", any, {
|
|
13
|
+
borderRadius?: InputRadius | undefined;
|
|
14
|
+
paddingSize?: InputSize | undefined;
|
|
15
|
+
height?: string | number | undefined;
|
|
16
|
+
} & FullWidth, never>;
|
|
17
|
+
export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, FullWidth, never>;
|
|
10
18
|
export declare const InputErrorMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
19
|
export declare const InputDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
20
|
export declare const EndIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type AriaNumberFieldProps } from '@react-aria/numberfield';
|
|
3
3
|
import { type NumberFieldStateOptions } from '@react-stately/numberfield';
|
|
4
4
|
import type { ComponentPropsWithoutStyles, RenameBooleanProps, RenameMissuffixedProps } from '../../../helpers/typeHelpers';
|
|
5
|
-
import { type InputBaseProps } from '../InputBase';
|
|
5
|
+
import { type FullWidth, type InputBaseProps } from '../InputBase';
|
|
6
6
|
type ReactAriaNumberInputProps = RenameMissuffixedProps<RenameBooleanProps<AriaNumberFieldProps>, 'Value', 'minValue' | 'maxValue'>;
|
|
7
7
|
type ShowStepper = {
|
|
8
8
|
showStepper?: boolean;
|
|
@@ -35,7 +35,11 @@ export type NumberInputProps = ReactAriaNumberInputProps & InputBaseProps & Stan
|
|
|
35
35
|
export declare const NumberInput: import("react").ForwardRefExoticComponent<Omit<RenameBooleanProps<AriaNumberFieldProps>, "minValue" | "maxValue"> & {
|
|
36
36
|
min?: number | undefined;
|
|
37
37
|
max?: number | undefined;
|
|
38
|
-
} &
|
|
38
|
+
} & {
|
|
39
|
+
borderRadius?: import("../InputBase").InputRadius | undefined;
|
|
40
|
+
paddingSize?: import("../InputBase").InputSize | undefined;
|
|
41
|
+
height?: string | number | undefined;
|
|
42
|
+
} & FullWidth & StandardInputProps & ShowStepper & {
|
|
39
43
|
locale?: string | undefined;
|
|
40
44
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
41
45
|
export {};
|
|
@@ -4,5 +4,9 @@ import type { RenameBooleanProps } from '../../../helpers/typeHelpers';
|
|
|
4
4
|
import { type InputBaseProps } from '../InputBase';
|
|
5
5
|
type ReactAriaInputProps = Omit<RenameBooleanProps<AriaTextFieldOptions<'textarea'>>, 'inputElementType'>;
|
|
6
6
|
export type TextAreaInputProps = ReactAriaInputProps & InputBaseProps;
|
|
7
|
-
export declare const TextAreaInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps &
|
|
7
|
+
export declare const TextAreaInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & {
|
|
8
|
+
borderRadius?: import("../InputBase").InputRadius | undefined;
|
|
9
|
+
paddingSize?: import("../InputBase").InputSize | undefined;
|
|
10
|
+
height?: string | number | undefined;
|
|
11
|
+
} & import("../InputBase").FullWidth & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
8
12
|
export {};
|
|
@@ -4,12 +4,18 @@ import type { RenameBooleanProps } from '../../../helpers/typeHelpers';
|
|
|
4
4
|
import { type InputBaseProps, type InputRadius } from '../InputBase';
|
|
5
5
|
type ReactAriaInputProps = Omit<RenameBooleanProps<AriaTextFieldOptions<'input'>>, 'inputElementType'>;
|
|
6
6
|
interface CustomTextInputProps {
|
|
7
|
-
focus?: boolean
|
|
7
|
+
focus?: boolean;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
height?: number | string;
|
|
8
10
|
inputBorderRadius?: InputRadius;
|
|
9
11
|
connectLeft?: React.ReactNode | null;
|
|
10
12
|
connectRight?: React.ReactNode | null;
|
|
11
13
|
className?: string;
|
|
12
14
|
}
|
|
13
15
|
export type TextInputProps = ReactAriaInputProps & InputBaseProps & CustomTextInputProps;
|
|
14
|
-
export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps &
|
|
16
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & {
|
|
17
|
+
borderRadius?: InputRadius | undefined;
|
|
18
|
+
paddingSize?: import("../InputBase").InputSize | undefined;
|
|
19
|
+
height?: string | number | undefined;
|
|
20
|
+
} & import("../InputBase").FullWidth & CustomTextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
21
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TODOFIXME } from 'helpers';
|
|
2
|
+
export { Time } from '@internationalized/date';
|
|
3
|
+
interface TimeInputProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
defaultValue?: TODOFIXME;
|
|
6
|
+
value?: TODOFIXME;
|
|
7
|
+
onChange?: TODOFIXME;
|
|
8
|
+
}
|
|
9
|
+
export declare function TimeInput(props: TimeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,4 +9,4 @@ export interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
|
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
as?: 'legend' | 'span' | undefined;
|
|
11
11
|
}
|
|
12
|
-
export declare function Label({ children, bold, size, display, srOnly, ...remainingProps }: LabelProps): JSX.Element;
|
|
12
|
+
export declare function Label({ children, bold, size, display, srOnly, ...remainingProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
|