@theroutingcompany/components 0.0.26-alpha.18 → 0.0.26-alpha.19
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 +5290 -5160
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +403 -355
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/types/components/Avatar/Avatar.d.ts +14 -0
- 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/ButtonGroup/ButtonGroup.d.ts +10 -0
- package/types/components/ButtonV2/ButtonV2.d.ts +5 -4
- package/types/components/ButtonV2/styles.d.ts +0 -3
- package/types/components/Calendar/CalendarCell.d.ts +2 -1
- package/types/components/Calendar/CalendarGrid.d.ts +1 -0
- package/types/components/Calendar/CalendarHeader.d.ts +1 -1
- package/types/components/Calendar/TimeDateSelect.d.ts +3 -2
- package/types/components/FormControl/FormControl.d.ts +2 -10
- package/types/components/Input/InlineEdit/InlineEdit.d.ts +4 -7
- 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/Label/Label.d.ts +2 -1
- package/types/components/Stack/Stack.d.ts +1 -0
- package/types/components/Title/Title.d.ts +3 -0
- package/types/components/index.d.ts +0 -1
- package/types/styles/index.d.ts +0 -1
- 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-alpha.
|
|
3
|
+
"version": "0.0.26-alpha.19",
|
|
4
4
|
"description": "The Routing Company Components",
|
|
5
5
|
"main": "./dist/trc-components.umd.js",
|
|
6
6
|
"module": "./dist/trc-components.es.js",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/styled-system": "^5.1.16",
|
|
103
103
|
"@react-types/select": "^3.8.1",
|
|
104
104
|
"@tanstack/react-table": "^8.9.1",
|
|
105
|
-
"@theroutingcompany/design-tokens": "^0.0.4-alpha.
|
|
105
|
+
"@theroutingcompany/design-tokens": "^0.0.4-alpha.5",
|
|
106
106
|
"@styled-system/prop-types": "^5.1.2",
|
|
107
107
|
"@styled-system/props": "^5.1.5",
|
|
108
108
|
"csstype": "^3.1.2",
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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,10 +1,11 @@
|
|
|
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;
|
|
@@ -13,7 +14,6 @@ export interface ButtonPropsV2 {
|
|
|
13
14
|
inverse?: boolean;
|
|
14
15
|
disabled?: boolean;
|
|
15
16
|
size?: Size;
|
|
16
|
-
fullWidth?: boolean;
|
|
17
17
|
submit?: boolean;
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
className?: string;
|
|
@@ -21,5 +21,6 @@ export interface ButtonPropsV2 {
|
|
|
21
21
|
onFocus?: FocusHandler;
|
|
22
22
|
onBlur?: FocusHandler;
|
|
23
23
|
}
|
|
24
|
+
export type PolymorphicButton = ForwardRefComponent<'button', ButtonPropsV2>;
|
|
24
25
|
export declare const ButtonV2: import("react").ForwardRefExoticComponent<ButtonPropsV2 & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
26
|
export default ButtonV2;
|
|
@@ -8,9 +8,6 @@ export declare const childwrapper: (props: LoadingProp) => string;
|
|
|
8
8
|
export declare const disabled: (props: {
|
|
9
9
|
disabled: boolean;
|
|
10
10
|
}) => "\n opacity: 0.8;\n\n &:hover {\n cursor: not-allowed;\n }\n " | undefined;
|
|
11
|
-
export declare const fullWidth: (props: {
|
|
12
|
-
fullWidth: boolean;
|
|
13
|
-
}) => "\n display: block;\n width: 100%;\n " | undefined;
|
|
14
11
|
export declare const group: () => string;
|
|
15
12
|
export declare const primary: import("styled-components").FlattenSimpleInterpolation;
|
|
16
13
|
export declare const inverse_primary: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -6,6 +6,7 @@ type CalendarCellProps = {
|
|
|
6
6
|
currentMonth: CalendarDate;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
today: CalendarDate;
|
|
9
|
+
single?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare function CalendarCell({ state, date, today, disabled, currentMonth, }: CalendarCellProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function CalendarCell({ state, date, today, disabled, currentMonth, single, }: CalendarCellProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -4,6 +4,7 @@ interface CalendarGridProps<T> {
|
|
|
4
4
|
state: T;
|
|
5
5
|
offset?: DateDuration;
|
|
6
6
|
timeZone: string;
|
|
7
|
+
single?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export declare function CalendarGrid<T extends CalendarState | RangeCalendarState>({ state, ...props }: CalendarGridProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
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>;
|
|
@@ -3,8 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
4
|
import { type TODOFIXME } from 'helpers';
|
|
5
5
|
export interface TimeDateSelectProps {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
dateString: string;
|
|
7
|
+
timeZone: string;
|
|
8
|
+
onChange?: (date: TODOFIXME) => void;
|
|
8
9
|
}
|
|
9
10
|
export declare const TimeDateSelect: React.ForwardRefExoticComponent<TimeDateSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
11
|
export interface TimeDateSelectItemProps extends SelectPrimitive.SelectItemProps {
|
|
@@ -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,24 +1,21 @@
|
|
|
1
|
+
import { type ButtonPropsV2 } from 'components/ButtonV2/ButtonV2';
|
|
1
2
|
import { type TODOFIXME } from 'helpers';
|
|
2
3
|
import type { ReactNode } from 'react';
|
|
3
4
|
export declare const EditButtonRight: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("components/Button/Button").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
4
|
-
|
|
5
|
-
export interface InlineEditProps {
|
|
5
|
+
export interface InlineEditProps extends ButtonPropsV2 {
|
|
6
6
|
'data-id'?: string;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
value?: number | string;
|
|
9
9
|
editValue?: number | string;
|
|
10
10
|
placeholder?: string;
|
|
11
|
-
fullWidth?: boolean;
|
|
12
|
-
minWidth?: string;
|
|
13
|
-
textAlign?: TextAlign;
|
|
14
11
|
hideIcon?: boolean;
|
|
15
12
|
p?: string;
|
|
16
13
|
onChange: TODOFIXME;
|
|
17
14
|
onToggle: TODOFIXME;
|
|
18
15
|
disabled?: boolean;
|
|
16
|
+
valid?: boolean;
|
|
19
17
|
}
|
|
20
18
|
export declare const InlineEdit: {
|
|
21
|
-
({ children, placeholder, value, editValue,
|
|
19
|
+
({ children, placeholder, value, editValue, hideIcon, p, onChange, onToggle, disabled, valid, ...rest }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
|
|
22
20
|
displayName: string;
|
|
23
21
|
};
|
|
24
|
-
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 {};
|
|
@@ -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): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function Label({ children, bold, size, display, srOnly, style, ...remainingProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,9 @@ import type * as Polymorphic from '@radix-ui/react-polymorphic';
|
|
|
2
2
|
export interface TitleProps {
|
|
3
3
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'legend' | 'figcaption';
|
|
4
4
|
size: 'small' | 'medium' | 'large' | 'xsmall';
|
|
5
|
+
weight?: 'light' | 'regular' | 'medium' | 'bold';
|
|
6
|
+
marginBottom?: string;
|
|
7
|
+
mb?: string;
|
|
5
8
|
}
|
|
6
9
|
export type PolymorphicTitle = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', TitleProps>;
|
|
7
10
|
export declare const Title: PolymorphicTitle;
|
|
@@ -16,7 +16,6 @@ export * from './Fieldset/Fieldset';
|
|
|
16
16
|
export * from './FileUpload/FileUpload';
|
|
17
17
|
export * from './Flex/Flex';
|
|
18
18
|
export * from './FormControl/FormControl';
|
|
19
|
-
export * from './Heading/Heading';
|
|
20
19
|
export * from './Input/NumberInput/NumberInput';
|
|
21
20
|
export * from './Input/TextInput/TextInput';
|
|
22
21
|
export * from './Input/InlineEdit/InlineEdit';
|
package/types/styles/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export declare const buttonReset = "\n border: none;\n margin: 0;\n padding: 0;\n overflow: visible;\n width: auto;\n background: transparent;\n color: inherit;\n font: inherit;\n line-height: normal;\n -webkit-font-smoothing: inherit;\n -moz-osx-font-smoothing: inherit;\n -webkit-appearance: none;\n\n &::-moz-focus-inner {\n border: 0;\n padding: 0;\n }\n";
|
|
2
|
-
export declare const visuallyHidden = "\n border: 0 !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n clip-path: inset(50%) !important;\n height: 1px !important;\n margin: -1px !important;\n overflow: hidden !important;\n padding: 0 !important;\n position: absolute !important;\n width: 1px !important;\n word-wrap: normal !important;\n";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as Polymorphic from '@radix-ui/react-polymorphic';
|
|
2
|
-
type HeadingProps = {
|
|
3
|
-
size: 'small' | 'medium' | 'large';
|
|
4
|
-
className: never;
|
|
5
|
-
style: never;
|
|
6
|
-
};
|
|
7
|
-
type PolymorphicHeading = Polymorphic.ForwardRefComponent<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', // more? span? div?
|
|
8
|
-
HeadingProps>;
|
|
9
|
-
export declare const Heading: PolymorphicHeading;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
3
|
-
export declare const StyledSegmentControlRoot: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<(ToggleGroup.ToggleGroupSingleProps | ToggleGroup.ToggleGroupMultipleProps) & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
4
|
-
export type SegmentControlRootProps = Omit<ToggleGroup.ToggleGroupSingleProps, 'type' | 'style' | 'className'> & {
|
|
5
|
-
size?: 'small' | 'large';
|
|
6
|
-
};
|
|
7
|
-
export declare const SegmentControlRoot: ({ children, size, ...props }: SegmentControlRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const SegmentControlItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<ToggleGroup.ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|