@theroutingcompany/components 0.0.20-alpha.1 → 0.0.21
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 +9068 -10382
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +910 -896
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +62 -64
- package/types/components/AlertDialog/AlertDialog.d.ts +7 -8
- package/types/components/Badge/Badge.d.ts +29 -0
- package/types/components/Box/Box.d.ts +22 -22
- package/types/components/Dialog/Dialog.d.ts +1 -1
- package/types/components/Flex/Flex.d.ts +21 -21
- package/types/components/FormControl/FormControl.d.ts +1 -1
- package/types/components/ListBox/ListBox.d.ts +4 -4
- package/types/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/types/components/MultiSelect/MultiSelectPopover.d.ts +3 -2
- package/types/components/MultiSelect/useMultiSelect.d.ts +2 -2
- package/types/components/MultiSelect/useMultiSelectListState.d.ts +3 -3
- package/types/components/MultiSelect/useMultiSelectState.d.ts +2 -2
- package/types/components/ReactAriaButton/ReactAriaButton.d.ts +1 -1
- package/types/components/SegmentControl/SegmentControl.d.ts +3 -3
- package/types/components/Select/Select.d.ts +15 -15
- package/types/components/Text/Text.d.ts +1 -1
- package/types/components/index.d.ts +1 -0
- package/types/helpers/tokenUtils.d.ts +1 -1
- package/types/helpers/typeHelpers.d.ts +3 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
3
|
-
export declare const StyledTrigger: import("styled-components").StyledComponent<
|
|
3
|
+
export declare const StyledTrigger: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
4
4
|
export declare function SelectContent({ children, ...props }: SelectPrimitive.SelectContentProps): JSX.Element;
|
|
5
|
-
export declare const Select:
|
|
6
|
-
export declare const SelectTrigger: import("styled-components").StyledComponent<
|
|
7
|
-
export declare const SelectValue:
|
|
8
|
-
export declare const SelectIcon: import("styled-components").StyledComponent<
|
|
9
|
-
export declare const SelectViewport: import("styled-components").StyledComponent<
|
|
10
|
-
export declare const SelectGroup:
|
|
11
|
-
export declare const SelectItem: import("styled-components").StyledComponent<
|
|
12
|
-
export declare const SelectItemText:
|
|
13
|
-
export declare const SelectItemIndicator: import("styled-components").StyledComponent<
|
|
14
|
-
export declare const SelectGroupLabel: import("styled-components").StyledComponent<
|
|
15
|
-
export declare const SelectSeparator: import("styled-components").StyledComponent<
|
|
16
|
-
export declare const SelectScrollUpButton: import("styled-components").StyledComponent<
|
|
17
|
-
export declare const SelectScrollDownButton: import("styled-components").StyledComponent<
|
|
5
|
+
export declare const Select: import("react").FC<SelectPrimitive.SelectProps>;
|
|
6
|
+
export declare const SelectTrigger: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
7
|
+
export declare const SelectValue: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export declare const SelectIcon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectIconProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
9
|
+
export declare const SelectViewport: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectViewportProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
10
|
+
export declare const SelectGroup: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const SelectItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
12
|
+
export declare const SelectItemText: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
export declare const SelectItemIndicator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
14
|
+
export declare const SelectGroupLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectLabelProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
15
|
+
export declare const SelectSeparator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectSeparatorProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
16
|
+
export declare const SelectScrollUpButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectScrollUpButtonProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
17
|
+
export declare const SelectScrollDownButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectScrollDownButtonProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
18
18
|
type SingleSelectProps = {
|
|
19
19
|
items: string[];
|
|
20
20
|
} & SelectPrimitive.SelectProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as Polymorphic from '@radix-ui/react-polymorphic';
|
|
2
1
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type * as Polymorphic from '@radix-ui/react-polymorphic';
|
|
3
3
|
type TextElements = 'p' | 'div' | 'span' | 'legend' | 'caption' | 'figcaption' | 'strong' | 'em' | 'strong' | 'abbr' | 'mark' | 'q' | 'small' | 'time';
|
|
4
4
|
interface BodyTextProps extends ComponentPropsWithoutRef<'p'> {
|
|
5
5
|
type: 'body';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import nestedTokens from '@theroutingcompany/design-tokens/dist/json/tokens.json';
|
|
2
1
|
import type { CSSProperties } from 'react';
|
|
2
|
+
import nestedTokens from '@theroutingcompany/design-tokens/dist/json/tokens.json';
|
|
3
3
|
export declare function filterDefined(obj: Record<PropertyKey, unknown> | CSSProperties | undefined): {
|
|
4
4
|
[k: string]: any;
|
|
5
5
|
} | undefined;
|
|
@@ -4,6 +4,9 @@ declare module 'csstype' {
|
|
|
4
4
|
[index: `--${string}`]: string | number | undefined;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
+
export type Falsy = '' | 0 | false | null | undefined;
|
|
8
|
+
/** Util for filtering arrays with type guard to remove falsy values from the type */
|
|
9
|
+
export declare function typedBoolean<T>(value: T): value is Exclude<T, Falsy>;
|
|
7
10
|
/** Utility type to get pretty readout of all of the members of an intersection. TS Quirk */
|
|
8
11
|
export type Prettify<T> = {
|
|
9
12
|
[K in keyof T]: T[K];
|