@theroutingcompany/components 0.0.26-alpha.9 → 0.0.26
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 +6970 -6580
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +637 -434
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/types/components/AccessibleIcon/AccessibleIcon.d.ts +1 -2
- package/types/components/AlertDialog/AlertDialog.d.ts +2 -2
- package/types/components/Avatar/Avatar.d.ts +14 -0
- package/types/components/Badge/Badge.d.ts +2 -2
- package/types/components/Banner/Action.d.ts +3 -0
- package/types/components/Banner/Banner.d.ts +19 -0
- package/types/components/Banner/styles.d.ts +5 -0
- package/types/components/Button/Button.d.ts +3 -0
- package/types/components/ButtonGroup/ButtonGroup.d.ts +10 -0
- package/types/components/ButtonV2/ButtonV2.d.ts +6 -4
- package/types/components/ButtonV2/styles.d.ts +6 -8
- package/types/components/Calendar/Calendar.d.ts +1 -2
- package/types/components/Calendar/CalendarCell.d.ts +2 -2
- package/types/components/Calendar/CalendarGrid.d.ts +2 -2
- package/types/components/Calendar/CalendarHeader.d.ts +2 -2
- package/types/components/Calendar/RangeCalendar.d.ts +1 -2
- package/types/components/Calendar/TimeDateSelect.d.ts +4 -1
- package/types/components/ComboBox/ComboBox.d.ts +1 -2
- package/types/components/Dialog/Dialog.d.ts +2 -2
- package/types/components/Drawer/Drawer.d.ts +3 -3
- package/types/components/Fieldset/Fieldset.d.ts +1 -2
- package/types/components/FormControl/FormControl.d.ts +3 -11
- package/types/components/Input/InlineEdit/InlineEdit.d.ts +10 -8
- package/types/components/Input/InputBase.d.ts +3 -10
- package/types/components/Input/NumberInput/NumberInput.d.ts +2 -6
- package/types/components/Input/TextArea/TextArea.d.ts +1 -5
- package/types/components/Input/TextInput/TextInput.d.ts +1 -6
- package/types/components/Input/TimeInput/TimeInput.d.ts +8 -2
- package/types/components/Label/Label.d.ts +2 -1
- package/types/components/ListBox/ListBox.d.ts +5 -5
- package/types/components/MultiSelect/MultiSelectListBox.d.ts +1 -1
- package/types/components/MultiSelect/MultiSelectPopover.d.ts +1 -1
- package/types/components/NavigationMenu/NavigationMenu.d.ts +4 -4
- package/types/components/Page/PageHeader.d.ts +1 -1
- package/types/components/Paginator/Paginator.d.ts +1 -1
- package/types/components/Popover/Popover.d.ts +1 -1
- package/types/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/types/components/ReactAriaButton/ReactAriaButton.d.ts +1 -1
- package/types/components/Select/Select.d.ts +2 -2
- package/types/components/SingleSelect/SingleSelect.d.ts +1 -2
- package/types/components/Stack/Stack.d.ts +1 -0
- package/types/components/Table/Table.d.ts +1 -2
- package/types/components/Title/Title.d.ts +3 -0
- package/types/components/Toast/Toast.d.ts +2 -2
- package/types/components/Tooltip/IconTooltip.d.ts +1 -1
- package/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/types/components/index.d.ts +0 -1
- package/types/helpers/typeHelpers.d.ts +1 -0
- package/types/styles/index.d.ts +0 -33
- package/types/components/Heading/Heading.d.ts +0 -10
- package/types/components/SegmentControl/SegmentControl.d.ts +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.26
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"types"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
+
"debug:reset:modules": "rm -f -- package-lock.json && rm -rf node_modules && npm i",
|
|
24
25
|
"link:tokens": "./scripts/link-tokens.sh",
|
|
25
26
|
"break:cache": "rm -rf node_modules && npm i --package-lock && npm run start --force",
|
|
26
27
|
"ready:prerelease": "npm run build && ./scripts/prerelease.sh",
|
|
@@ -101,7 +102,7 @@
|
|
|
101
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.
|
|
105
|
+
"@theroutingcompany/design-tokens": "^0.0.5",
|
|
105
106
|
"@styled-system/prop-types": "^5.1.2",
|
|
106
107
|
"@styled-system/props": "^5.1.5",
|
|
107
108
|
"csstype": "^3.1.2",
|
|
@@ -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 {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type AlphaUpper = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
|
|
2
|
+
type AlphaLower = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
|
|
3
|
+
type Letter = AlphaUpper | AlphaLower;
|
|
4
|
+
export type AvatarSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
5
|
+
export interface AvatarProps {
|
|
6
|
+
size?: AvatarSize;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Avatar: ({ size, letter }: {
|
|
10
|
+
size: AvatarSize;
|
|
11
|
+
color: string;
|
|
12
|
+
letter: Letter;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default Avatar;
|
|
@@ -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: "
|
|
13
|
+
readonly color: "#909090";
|
|
14
14
|
};
|
|
15
15
|
readonly info: {
|
|
16
16
|
readonly background: "hsl(217.4deg 81.6% 51% / 8%)";
|
|
@@ -25,5 +25,5 @@ type BadgeVariant = keyof typeof colors;
|
|
|
25
25
|
export type BadgeProps = PropsWithChildren<{
|
|
26
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,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import Action from './Action';
|
|
3
|
+
declare const DEFAULT_VARIANT = "default";
|
|
4
|
+
declare const INFO_VARIANT = "info";
|
|
5
|
+
declare const SUCCESS_VARIANT = "success";
|
|
6
|
+
declare const WARNING_VARIANT = "warning";
|
|
7
|
+
declare const ERROR_VARIANT = "danger";
|
|
8
|
+
export type Variant = typeof DEFAULT_VARIANT | typeof INFO_VARIANT | typeof SUCCESS_VARIANT | typeof WARNING_VARIANT | typeof ERROR_VARIANT;
|
|
9
|
+
interface BannerProps extends React.ComponentPropsWithRef<'div'> {
|
|
10
|
+
'data-id'?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
layout?: 'default' | 'inline';
|
|
14
|
+
onDismiss?: (any: any) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const Banner: import("react").ForwardRefExoticComponent<BannerProps> & {
|
|
17
|
+
Action: typeof Action;
|
|
18
|
+
};
|
|
19
|
+
export default Banner;
|
|
@@ -23,5 +23,8 @@ type ReactAriaProps = RenameMisprefixedProps<AriaButtonProps, 'is', 'isDisabled'
|
|
|
23
23
|
export type ButtonProps = Prettify<PropsWithChildren<ButtonDesignProps & ReactAriaProps & {
|
|
24
24
|
onClick?: ReactAriaProps['onPress'];
|
|
25
25
|
} & Pick<ComponentPropsWithoutRef<'button'>, 'form'>>>;
|
|
26
|
+
/**
|
|
27
|
+
* Deprecated. Use ButtonV2 instead.
|
|
28
|
+
*/
|
|
26
29
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
27
30
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
3
|
+
export declare const StyledButtonGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<(ToggleGroup.ToggleGroupSingleProps | ToggleGroup.ToggleGroupMultipleProps) & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
4
|
+
export type ButtonGroupProps = Omit<ToggleGroup.ToggleGroupSingleProps, 'type' | 'style' | 'className'> & {
|
|
5
|
+
size?: 'small' | 'large';
|
|
6
|
+
};
|
|
7
|
+
export declare const ButtonGroup: {
|
|
8
|
+
({ children, size, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Item: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<ToggleGroup.ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
10
|
+
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type BoxProps } from 'components/Box/Box';
|
|
3
|
+
import { type ClickHandler, type FocusHandler, type ForwardRefComponent } from 'helpers';
|
|
3
4
|
export type Variant = 'primary' | 'secondary' | 'tertiary' | 'danger';
|
|
4
5
|
export type Size = 'small' | 'large';
|
|
5
6
|
export declare const buttonV2System: import("styled-system").styleFn;
|
|
6
|
-
export declare const StyledButtonBox: import("styled-components").StyledComponent<
|
|
7
|
-
export interface ButtonPropsV2 {
|
|
7
|
+
export declare const StyledButtonBox: import("styled-components").StyledComponent<ForwardRefComponent<"div", BoxProps>, any, any, never>;
|
|
8
|
+
export interface ButtonPropsV2 extends BoxProps {
|
|
8
9
|
'data-id'?: string;
|
|
9
10
|
as?: React.ElementType;
|
|
10
11
|
to?: string;
|
|
11
12
|
toTitle?: string;
|
|
12
13
|
variant?: Variant;
|
|
14
|
+
inverse?: boolean;
|
|
13
15
|
disabled?: boolean;
|
|
14
16
|
size?: Size;
|
|
15
|
-
fullWidth?: boolean;
|
|
16
17
|
submit?: boolean;
|
|
17
18
|
children?: React.ReactNode;
|
|
18
19
|
className?: string;
|
|
@@ -20,5 +21,6 @@ export interface ButtonPropsV2 {
|
|
|
20
21
|
onFocus?: FocusHandler;
|
|
21
22
|
onBlur?: FocusHandler;
|
|
22
23
|
}
|
|
24
|
+
export type PolymorphicButton = ForwardRefComponent<'button', ButtonPropsV2>;
|
|
23
25
|
export declare const ButtonV2: import("react").ForwardRefExoticComponent<ButtonPropsV2 & import("react").RefAttributes<HTMLButtonElement>>;
|
|
24
26
|
export default ButtonV2;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { Size, Variant } from './ButtonV2';
|
|
2
|
-
export declare function focus({ buttonColor }: {
|
|
3
|
-
buttonColor?: string;
|
|
4
|
-
}): string;
|
|
5
2
|
export declare const reset: () => string;
|
|
6
3
|
export declare const base: () => string;
|
|
7
4
|
export type LoadingProp = {
|
|
@@ -10,16 +7,17 @@ export type LoadingProp = {
|
|
|
10
7
|
export declare const childwrapper: (props: LoadingProp) => string;
|
|
11
8
|
export declare const disabled: (props: {
|
|
12
9
|
disabled: boolean;
|
|
13
|
-
}) => "\n opacity: 0.
|
|
14
|
-
export declare const fullWidth: (props: {
|
|
15
|
-
fullWidth: boolean;
|
|
16
|
-
}) => "\n display: block;\n width: 100%;\n " | undefined;
|
|
10
|
+
}) => "\n opacity: 0.8;\n\n &:hover {\n cursor: not-allowed;\n }\n " | undefined;
|
|
17
11
|
export declare const group: () => string;
|
|
18
12
|
export declare const primary: import("styled-components").FlattenSimpleInterpolation;
|
|
13
|
+
export declare const inverse_primary: import("styled-components").FlattenSimpleInterpolation;
|
|
19
14
|
export declare const secondary: import("styled-components").FlattenSimpleInterpolation;
|
|
15
|
+
export declare const inverse_secondary: import("styled-components").FlattenSimpleInterpolation;
|
|
20
16
|
export declare const tertiary: import("styled-components").FlattenSimpleInterpolation;
|
|
17
|
+
export declare const inverse_tertiary: import("styled-components").FlattenSimpleInterpolation;
|
|
21
18
|
export declare const danger: import("styled-components").FlattenSimpleInterpolation;
|
|
22
|
-
export declare const
|
|
19
|
+
export declare const inverse_danger: import("styled-components").FlattenSimpleInterpolation;
|
|
20
|
+
export declare const getVariantStyles: (variant: Variant, inverse: boolean) => import("styled-components").FlattenSimpleInterpolation | undefined;
|
|
23
21
|
export declare const small: import("styled-components").FlattenSimpleInterpolation;
|
|
24
22
|
export declare const large: import("styled-components").FlattenSimpleInterpolation;
|
|
25
23
|
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;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type CalendarDate } from '@internationalized/date';
|
|
3
2
|
import type { RangeCalendarState } from '@react-stately/calendar';
|
|
4
3
|
type CalendarCellProps = {
|
|
@@ -7,6 +6,7 @@ type CalendarCellProps = {
|
|
|
7
6
|
currentMonth: CalendarDate;
|
|
8
7
|
disabled?: boolean | undefined;
|
|
9
8
|
today: CalendarDate;
|
|
9
|
+
single?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare function CalendarCell({ state, date, today, disabled, currentMonth, }: CalendarCellProps): JSX.Element;
|
|
11
|
+
export declare function CalendarCell({ state, date, today, disabled, currentMonth, single, }: CalendarCellProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
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> {
|
|
5
4
|
state: T;
|
|
6
5
|
offset?: DateDuration;
|
|
7
6
|
timeZone: string;
|
|
7
|
+
single?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function CalendarGrid<T extends CalendarState | RangeCalendarState>({ state, ...props }: CalendarGridProps<T>): JSX.Element;
|
|
9
|
+
export declare function CalendarGrid<T extends CalendarState | RangeCalendarState>({ state, ...props }: CalendarGridProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { DOMAttributes } from 'react';
|
|
2
1
|
import type { AriaButtonProps } from '@react-aria/button';
|
|
3
2
|
import type { RangeCalendarState } from '@react-stately/calendar';
|
|
3
|
+
import type { DOMAttributes } from 'react';
|
|
4
4
|
export declare function CalendarHeader({ state, calendarProps, prevButtonProps, nextButtonProps, }: {
|
|
5
5
|
state: RangeCalendarState;
|
|
6
6
|
calendarProps: DOMAttributes<any>;
|
|
7
7
|
prevButtonProps: AriaButtonProps;
|
|
8
8
|
nextButtonProps: AriaButtonProps;
|
|
9
|
-
}): JSX.Element;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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,11 @@
|
|
|
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 { type TODOFIXME } from 'helpers';
|
|
4
5
|
export interface TimeDateSelectProps {
|
|
5
|
-
|
|
6
|
+
dateString: string;
|
|
7
|
+
timeZone: string;
|
|
8
|
+
onChange?: (date: TODOFIXME) => void;
|
|
6
9
|
}
|
|
7
10
|
export declare const TimeDateSelect: React.ForwardRefExoticComponent<TimeDateSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
11
|
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;
|
|
@@ -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;
|
|
@@ -64,11 +64,7 @@ export declare const TextAreaFormControl: import("react").ForwardRefExoticCompon
|
|
|
64
64
|
excludeFromTabOrder?: boolean | undefined;
|
|
65
65
|
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
66
66
|
errorMessage?: ReactNode;
|
|
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>>;
|
|
67
|
+
} & import("components/Input/InputBase").InputBaseProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
72
68
|
export declare const NumberFormControl: import("react").ForwardRefExoticComponent<{
|
|
73
69
|
tooltipContent?: string | undefined;
|
|
74
70
|
tooltipIcon?: ReactNode;
|
|
@@ -77,11 +73,7 @@ export declare const NumberFormControl: import("react").ForwardRefExoticComponen
|
|
|
77
73
|
} & Omit<import("../../helpers/typeHelpers").RenameBooleanProps<import("@react-types/numberfield").AriaNumberFieldProps>, "minValue" | "maxValue"> & {
|
|
78
74
|
min?: number | undefined;
|
|
79
75
|
max?: number | undefined;
|
|
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 & {
|
|
76
|
+
} & import("components/Input/InputBase").InputBaseProps & {
|
|
85
77
|
name?: string | undefined;
|
|
86
78
|
} & {
|
|
87
79
|
showStepper?: boolean | undefined;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
import { type ButtonPropsV2 } from 'components/ButtonV2/ButtonV2';
|
|
2
|
+
import { type TODOFIXME } from 'helpers';
|
|
1
3
|
import type { ReactNode } from 'react';
|
|
2
4
|
export declare const EditButtonRight: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("components/Button/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
3
|
-
|
|
4
|
-
export interface InlineEditProps {
|
|
5
|
+
export interface InlineEditProps extends ButtonPropsV2 {
|
|
5
6
|
'data-id'?: string;
|
|
6
7
|
children: ReactNode;
|
|
7
|
-
|
|
8
|
+
value?: number | string;
|
|
9
|
+
editValue?: number | string;
|
|
8
10
|
placeholder?: string;
|
|
9
|
-
fullWidth?: boolean;
|
|
10
|
-
minWidth?: string;
|
|
11
|
-
textAlign?: TextAlign;
|
|
12
11
|
hideIcon?: boolean;
|
|
13
12
|
p?: string;
|
|
13
|
+
onChange: TODOFIXME;
|
|
14
|
+
onToggle?: TODOFIXME;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
valid?: boolean;
|
|
14
17
|
}
|
|
15
18
|
export declare const InlineEdit: {
|
|
16
|
-
({ children, placeholder,
|
|
19
|
+
({ children, placeholder, value, editValue, hideIcon, p, onChange, onToggle, disabled, valid, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
displayName: string;
|
|
18
21
|
};
|
|
19
|
-
export {};
|
|
@@ -1,20 +1,13 @@
|
|
|
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
|
-
};
|
|
7
4
|
export type InputBaseProps = {
|
|
8
5
|
borderRadius?: InputRadius;
|
|
9
6
|
paddingSize?: InputSize;
|
|
10
7
|
height?: number | string;
|
|
11
|
-
}
|
|
12
|
-
export declare const InputBase: import("styled-components").StyledComponent<"input", any,
|
|
13
|
-
|
|
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>;
|
|
8
|
+
};
|
|
9
|
+
export declare const InputBase: import("styled-components").StyledComponent<"input", any, InputBaseProps, never>;
|
|
10
|
+
export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
11
|
export declare const InputErrorMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
12
|
export declare const InputDescription: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
20
13
|
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
|
|
5
|
+
import { type InputBaseProps } from '../InputBase';
|
|
6
6
|
type ReactAriaNumberInputProps = RenameMissuffixedProps<RenameBooleanProps<AriaNumberFieldProps>, 'Value', 'minValue' | 'maxValue'>;
|
|
7
7
|
type ShowStepper = {
|
|
8
8
|
showStepper?: boolean;
|
|
@@ -35,11 +35,7 @@ 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
|
-
} & {
|
|
39
|
-
borderRadius?: import("../InputBase").InputRadius | undefined;
|
|
40
|
-
paddingSize?: import("../InputBase").InputSize | undefined;
|
|
41
|
-
height?: string | number | undefined;
|
|
42
|
-
} & FullWidth & StandardInputProps & ShowStepper & {
|
|
38
|
+
} & InputBaseProps & StandardInputProps & ShowStepper & {
|
|
43
39
|
locale?: string | undefined;
|
|
44
40
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
45
41
|
export {};
|
|
@@ -4,9 +4,5 @@ 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 &
|
|
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>>;
|
|
7
|
+
export declare const TextAreaInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
12
8
|
export {};
|
|
@@ -5,7 +5,6 @@ import { type InputBaseProps, type InputRadius } from '../InputBase';
|
|
|
5
5
|
type ReactAriaInputProps = Omit<RenameBooleanProps<AriaTextFieldOptions<'input'>>, 'inputElementType'>;
|
|
6
6
|
interface CustomTextInputProps {
|
|
7
7
|
focus?: boolean;
|
|
8
|
-
fullWidth?: boolean;
|
|
9
8
|
height?: number | string;
|
|
10
9
|
inputBorderRadius?: InputRadius;
|
|
11
10
|
connectLeft?: React.ReactNode | null;
|
|
@@ -13,9 +12,5 @@ interface CustomTextInputProps {
|
|
|
13
12
|
className?: string;
|
|
14
13
|
}
|
|
15
14
|
export type TextInputProps = ReactAriaInputProps & InputBaseProps & CustomTextInputProps;
|
|
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
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<ReactAriaInputProps & InputBaseProps & CustomTextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
16
|
export {};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { type TODOFIXME } from 'helpers';
|
|
2
2
|
export { Time } from '@internationalized/date';
|
|
3
|
-
|
|
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;
|
|
@@ -8,5 +8,6 @@ export interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
|
|
|
8
8
|
display?: 'flex' | 'inline-flex' | 'inline' | 'block' | undefined;
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
as?: 'legend' | 'span' | undefined;
|
|
11
|
+
style?: Record<string, any>;
|
|
11
12
|
}
|
|
12
|
-
export declare function Label({ children, bold, size, display, srOnly, ...remainingProps }: LabelProps): JSX.Element;
|
|
13
|
+
export declare function Label({ children, bold, size, display, srOnly, style, ...remainingProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,18 +12,18 @@ interface MultiSelectListBoxProps extends AriaListBoxOptions<unknown> {
|
|
|
12
12
|
listBoxRef?: React.RefObject<HTMLUListElement>;
|
|
13
13
|
state: MultiSelectState<unknown>;
|
|
14
14
|
}
|
|
15
|
-
export declare function ListBox(props: ListBoxProps): JSX.Element;
|
|
16
|
-
export declare function MultiSelectListBox(props: MultiSelectListBoxProps): JSX.Element;
|
|
15
|
+
export declare function ListBox(props: ListBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function MultiSelectListBox(props: MultiSelectListBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare function OptionLabel({ children }: {
|
|
18
18
|
children: React.ReactNode;
|
|
19
|
-
}): JSX.Element;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare function OptionDescription({ children }: {
|
|
21
21
|
children: React.ReactNode;
|
|
22
|
-
}): JSX.Element;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
interface PopoverProps extends Omit<AriaPopoverProps, 'popoverRef'> {
|
|
24
24
|
children: React.ReactNode;
|
|
25
25
|
state: OverlayTriggerState;
|
|
26
26
|
popoverRef?: React.RefObject<HTMLDivElement>;
|
|
27
27
|
}
|
|
28
|
-
export declare function Popover(props: PopoverProps): JSX.Element;
|
|
28
|
+
export declare function Popover(props: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -5,5 +5,5 @@ interface ListBoxProps<T> extends AriaListBoxOptions<T> {
|
|
|
5
5
|
listBoxRef?: React.RefObject<HTMLUListElement>;
|
|
6
6
|
state: MultiSelectState<T>;
|
|
7
7
|
}
|
|
8
|
-
export declare const MultiSelectListBox: <T>(props: ListBoxProps<T>) => JSX.Element;
|
|
8
|
+
export declare const MultiSelectListBox: <T>(props: ListBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -7,5 +7,5 @@ type PopoverProps = {
|
|
|
7
7
|
triggerRef: React.RefObject<HTMLButtonElement>;
|
|
8
8
|
};
|
|
9
9
|
/** Do we really need two different popovers */
|
|
10
|
-
export declare function Popover({ isOpen, onClose, children, className, triggerRef, }: PopoverProps): JSX.Element;
|
|
10
|
+
export declare function Popover({ isOpen, onClose, children, className, triggerRef, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -23,7 +23,7 @@ export type TriggerProps = PropsWithChildren<{
|
|
|
23
23
|
open?: boolean;
|
|
24
24
|
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
25
25
|
}>;
|
|
26
|
-
declare const Trigger: ({ children }: TriggerProps) => JSX.Element;
|
|
26
|
+
declare const Trigger: ({ children }: TriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
/**
|
|
28
28
|
* List
|
|
29
29
|
*/
|
|
@@ -43,13 +43,13 @@ interface ItemProps<T extends React.ElementType> {
|
|
|
43
43
|
as?: T;
|
|
44
44
|
children?: React.ReactNode;
|
|
45
45
|
}
|
|
46
|
-
export declare function Item<T extends React.ElementType = 'div'>({ as, ...props }: ItemProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ItemProps<T>>): JSX.Element;
|
|
46
|
+
export declare function Item<T extends React.ElementType = 'div'>({ as, ...props }: ItemProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ItemProps<T>>): import("react/jsx-runtime").JSX.Element;
|
|
47
47
|
/**
|
|
48
48
|
* Separator
|
|
49
49
|
*/
|
|
50
50
|
export declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
51
51
|
declare const NavigationMenu: CompoundedComponent & {
|
|
52
|
-
Trigger: ({ children }: TriggerProps) => JSX.Element;
|
|
52
|
+
Trigger: ({ children }: TriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
53
|
List: ({ children, portalIdOverride, }: {
|
|
54
54
|
children: React.ReactNode[];
|
|
55
55
|
portalIdOverride?: string | undefined;
|
|
@@ -57,5 +57,5 @@ declare const NavigationMenu: CompoundedComponent & {
|
|
|
57
57
|
Item: typeof Item;
|
|
58
58
|
Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
59
59
|
};
|
|
60
|
-
declare const NavigationMenuPortal: () => JSX.Element;
|
|
60
|
+
declare const NavigationMenuPortal: () => import("react/jsx-runtime").JSX.Element;
|
|
61
61
|
export { NavigationMenu, NavigationMenuPortal };
|
|
@@ -8,5 +8,5 @@ import type { ComponentPropsWithoutRef } from 'react';
|
|
|
8
8
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const PageHeader: import("styled-components").StyledComponent<"header", any, {}, never>;
|
|
11
|
-
export declare const StickyPageHeader: ({ children, className, }: ComponentPropsWithoutRef<'div'>) => JSX.Element;
|
|
11
|
+
export declare const StickyPageHeader: ({ children, className, }: ComponentPropsWithoutRef<'div'>) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare const PageHeaderContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -17,5 +17,5 @@ type PaginationProps = {
|
|
|
17
17
|
className?: string | undefined;
|
|
18
18
|
displayAtMost?: number | undefined;
|
|
19
19
|
};
|
|
20
|
-
export declare function Pagination({ nrOfPages, currentPage, onPrevious, onClick, onNext, className, ariaLabel, displayAtMost, }: PaginationProps): JSX.Element;
|
|
20
|
+
export declare function Pagination({ nrOfPages, currentPage, onPrevious, onClick, onNext, className, ariaLabel, displayAtMost, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
3
|
export type { PopoverCloseProps, PopoverContentProps, } from '@radix-ui/react-popover';
|
|
4
|
-
export declare function PopoverContent({ children, forceMount, ...props }: PopoverPrimitive.PopoverContentProps): JSX.Element;
|
|
4
|
+
export declare function PopoverContent({ children, forceMount, ...props }: PopoverPrimitive.PopoverContentProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const PopoverClose: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
export declare const PopoverCloseCross: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
7
7
|
export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|