@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.
Files changed (57) hide show
  1. package/dist/trc-components.es.js +6970 -6580
  2. package/dist/trc-components.es.js.map +1 -1
  3. package/dist/trc-components.umd.js +637 -434
  4. package/dist/trc-components.umd.js.map +1 -1
  5. package/dist/tsconfig.tsbuildinfo +1 -1
  6. package/package.json +3 -2
  7. package/types/components/AccessibleIcon/AccessibleIcon.d.ts +1 -2
  8. package/types/components/AlertDialog/AlertDialog.d.ts +2 -2
  9. package/types/components/Avatar/Avatar.d.ts +14 -0
  10. package/types/components/Badge/Badge.d.ts +2 -2
  11. package/types/components/Banner/Action.d.ts +3 -0
  12. package/types/components/Banner/Banner.d.ts +19 -0
  13. package/types/components/Banner/styles.d.ts +5 -0
  14. package/types/components/Button/Button.d.ts +3 -0
  15. package/types/components/ButtonGroup/ButtonGroup.d.ts +10 -0
  16. package/types/components/ButtonV2/ButtonV2.d.ts +6 -4
  17. package/types/components/ButtonV2/styles.d.ts +6 -8
  18. package/types/components/Calendar/Calendar.d.ts +1 -2
  19. package/types/components/Calendar/CalendarCell.d.ts +2 -2
  20. package/types/components/Calendar/CalendarGrid.d.ts +2 -2
  21. package/types/components/Calendar/CalendarHeader.d.ts +2 -2
  22. package/types/components/Calendar/RangeCalendar.d.ts +1 -2
  23. package/types/components/Calendar/TimeDateSelect.d.ts +4 -1
  24. package/types/components/ComboBox/ComboBox.d.ts +1 -2
  25. package/types/components/Dialog/Dialog.d.ts +2 -2
  26. package/types/components/Drawer/Drawer.d.ts +3 -3
  27. package/types/components/Fieldset/Fieldset.d.ts +1 -2
  28. package/types/components/FormControl/FormControl.d.ts +3 -11
  29. package/types/components/Input/InlineEdit/InlineEdit.d.ts +10 -8
  30. package/types/components/Input/InputBase.d.ts +3 -10
  31. package/types/components/Input/NumberInput/NumberInput.d.ts +2 -6
  32. package/types/components/Input/TextArea/TextArea.d.ts +1 -5
  33. package/types/components/Input/TextInput/TextInput.d.ts +1 -6
  34. package/types/components/Input/TimeInput/TimeInput.d.ts +8 -2
  35. package/types/components/Label/Label.d.ts +2 -1
  36. package/types/components/ListBox/ListBox.d.ts +5 -5
  37. package/types/components/MultiSelect/MultiSelectListBox.d.ts +1 -1
  38. package/types/components/MultiSelect/MultiSelectPopover.d.ts +1 -1
  39. package/types/components/NavigationMenu/NavigationMenu.d.ts +4 -4
  40. package/types/components/Page/PageHeader.d.ts +1 -1
  41. package/types/components/Paginator/Paginator.d.ts +1 -1
  42. package/types/components/Popover/Popover.d.ts +1 -1
  43. package/types/components/RadioGroup/RadioGroup.d.ts +2 -2
  44. package/types/components/ReactAriaButton/ReactAriaButton.d.ts +1 -1
  45. package/types/components/Select/Select.d.ts +2 -2
  46. package/types/components/SingleSelect/SingleSelect.d.ts +1 -2
  47. package/types/components/Stack/Stack.d.ts +1 -0
  48. package/types/components/Table/Table.d.ts +1 -2
  49. package/types/components/Title/Title.d.ts +3 -0
  50. package/types/components/Toast/Toast.d.ts +2 -2
  51. package/types/components/Tooltip/IconTooltip.d.ts +1 -1
  52. package/types/components/Tooltip/Tooltip.d.ts +1 -1
  53. package/types/components/index.d.ts +0 -1
  54. package/types/helpers/typeHelpers.d.ts +1 -0
  55. package/types/styles/index.d.ts +0 -33
  56. package/types/components/Heading/Heading.d.ts +0 -10
  57. package/types/components/SegmentControl/SegmentControl.d.ts +0 -8
@@ -2,5 +2,5 @@
2
2
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
3
  export declare const RadioGroupRadio: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<RadioGroupPrimitive.RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
4
4
  export declare const RadioGroupIndicator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<RadioGroupPrimitive.RadioGroupIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
5
- export declare function RadioGroup({ children, disabled, loop, onValueChange, ...props }: RadioGroupPrimitive.RadioGroupProps): JSX.Element;
6
- export declare function Radio({ disabled, ...props }: RadioGroupPrimitive.RadioGroupItemProps): JSX.Element;
5
+ export declare function RadioGroup({ children, disabled, loop, onValueChange, ...props }: RadioGroupPrimitive.RadioGroupProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function Radio({ disabled, ...props }: RadioGroupPrimitive.RadioGroupItemProps): import("react/jsx-runtime").JSX.Element;
@@ -2,4 +2,4 @@ import { type ComponentPropsWithoutRef } from 'react';
2
2
  import { type AriaButtonProps } from '@react-aria/button';
3
3
  export type ReactAriaButtonProps = AriaButtonProps & ComponentPropsWithoutRef<'button'>;
4
4
  /** For internal use only! */
5
- export declare function ReactAriaButton(props: ReactAriaButtonProps): JSX.Element;
5
+ export declare function ReactAriaButton(props: ReactAriaButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import * as SelectPrimitive from '@radix-ui/react-select';
3
3
  export declare const StyledTrigger: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
4
- export declare function SelectContent({ children, ...props }: SelectPrimitive.SelectContentProps): JSX.Element;
4
+ export declare function SelectContent({ children, ...props }: SelectPrimitive.SelectContentProps): import("react/jsx-runtime").JSX.Element;
5
5
  export declare const Select: import("react").FC<SelectPrimitive.SelectProps>;
6
6
  export declare const SelectTrigger: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
7
7
  export declare const SelectValue: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -18,5 +18,5 @@ export declare const SelectScrollDownButton: import("styled-components").StyledC
18
18
  type SingleSelectProps = {
19
19
  items: string[];
20
20
  } & SelectPrimitive.SelectProps;
21
- export declare function SingleSelect({ items, ...selectProps }: SingleSelectProps): JSX.Element;
21
+ export declare function SingleSelect({ items, ...selectProps }: SingleSelectProps): import("react/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { AriaSelectProps } from '@react-types/select';
3
2
  export { Item as SingleSelectItem, Section as SingleSelectSection, } from '@react-stately/collections';
4
3
  type SingleSelectProps<T> = AriaSelectProps<T> & {
@@ -8,4 +7,4 @@ type SingleSelectProps<T> = AriaSelectProps<T> & {
8
7
  };
9
8
  export declare function SingleSelect<T extends object>(props: SingleSelectProps<T> & {
10
9
  hideLabel?: boolean | undefined;
11
- }): JSX.Element;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -6,6 +6,7 @@ export type StackProps = {
6
6
  children?: React.ReactNode;
7
7
  align?: ResponsiveValue<AlignX>;
8
8
  space?: ResponsiveValue<SpacingTokenValues>;
9
+ addLastSpace?: boolean;
9
10
  'data-id'?: string;
10
11
  };
11
12
  export declare function Stack(props: StackProps): JSX.Element;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  export declare const TableHeader: import("styled-components").StyledComponent<"th", any, {}, never>;
3
2
  export declare const TableDataCell: import("styled-components").StyledComponent<"td", any, {}, never>;
4
3
  export declare const Table: import("styled-components").StyledComponent<"table", any, {}, never>;
5
- export declare const TableSortButtons: () => JSX.Element;
4
+ export declare const TableSortButtons: () => 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;
@@ -6,12 +6,12 @@ export declare const ToastClose: import("styled-components").StyledComponent<imp
6
6
  export declare const ToastSeparator: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<SeparatorPrimitive.SeparatorProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
7
7
  type Sentiment = 'inverse' | 'negative' | 'info';
8
8
  export declare const ToastViewport: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<ToastPrimitive.ToastViewportProps & import("react").RefAttributes<HTMLOListElement>>, any, {}, never>;
9
- export declare function ToastProvider({ children, ...props }: ToastPrimitive.ToastProviderProps): JSX.Element;
9
+ export declare function ToastProvider({ children, ...props }: ToastPrimitive.ToastProviderProps): import("react/jsx-runtime").JSX.Element;
10
10
  export type ToastProps = PropsWithChildren<{
11
11
  sentiment: Sentiment;
12
12
  title: string;
13
13
  onDismiss?: () => void;
14
14
  }> & ToastPrimitive.ToastProps;
15
15
  export type ToastActionProps = ToastPrimitive.ToastActionProps;
16
- export declare function Toast({ title, children, sentiment, onDismiss, ...toastRootProps }: ToastProps): JSX.Element;
16
+ export declare function Toast({ title, children, sentiment, onDismiss, ...toastRootProps }: ToastProps): import("react/jsx-runtime").JSX.Element;
17
17
  export {};
@@ -4,5 +4,5 @@ type IconTooltipProps = {
4
4
  label?: string;
5
5
  icon?: ReactNode;
6
6
  };
7
- export declare function IconTooltip({ children, icon, label, }: IconTooltipProps): JSX.Element;
7
+ export declare function IconTooltip({ children, icon, label, }: IconTooltipProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
3
  export type { TooltipContentProps, TooltipProps, } from '@radix-ui/react-tooltip';
4
- declare function Content({ children, ...props }: TooltipPrimitive.TooltipContentProps): JSX.Element;
4
+ declare function Content({ children, ...props }: TooltipPrimitive.TooltipContentProps): import("react/jsx-runtime").JSX.Element;
5
5
  export declare const TooltipTrigger: import("react").ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
6
6
  export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
7
7
  export declare const Tooltip: import("react").FC<TooltipPrimitive.TooltipProps>;
@@ -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';
@@ -86,4 +86,5 @@ export type LinkActionProps = {
86
86
  };
87
87
  export type ClickHandler = MouseEventHandler<HTMLButtonElement>;
88
88
  export type FocusHandler = FocusEventHandler<HTMLButtonElement>;
89
+ export type TODOFIXME = any;
89
90
  export {};
@@ -1,34 +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";
3
- type FocusOutline = {
4
- /**
5
- * Color of the focus ring. Defaults to color_blue_700.
6
- */
7
- color?: string;
8
- /**
9
- * CSS selector to target the pseudo-element with the ring. Defaults to '&:focus'.
10
- */
11
- modifier?: string;
12
- /**
13
- * Pixel offset of the focus ring. Defaults to '3px'.
14
- */
15
- offset?: string;
16
- /**
17
- * Border radius of the focus ring. Defaults to borderRadius_200.
18
- */
19
- radius?: string;
20
- };
21
- /**
22
- * Creates focus styles on an :after pseudo-element.
23
- * @param string Color of the focus ring. Defaults to color_blue_700.
24
- * @param modifier CSS selector to target the pseudo-element with the ring, defaults to '&:focus'
25
- * @param offset Pixel offset of the focus ring. Defaults to '3px'.
26
- * @param radius Border radius of the focus ring. Defaults to borderRadius_200.
27
- *
28
- * @example
29
- * const Styled = styled.div`
30
- * ${focusOutline({ color: 'gray', modifier: '&:focus-within' })}
31
- * `;
32
- */
33
- export declare const focusOutline: ({ modifier, offset, }?: FocusOutline) => string;
34
- export {};
@@ -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) => JSX.Element;
8
- export declare const SegmentControlItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<ToggleGroup.ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;