@theroutingcompany/components 0.0.26-alpha.1 → 0.0.26-alpha.10

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 (102) hide show
  1. package/dist/trc-components.es.js +10374 -8961
  2. package/dist/trc-components.es.js.map +1 -1
  3. package/dist/trc-components.umd.js +1325 -873
  4. package/dist/trc-components.umd.js.map +1 -1
  5. package/dist/tsconfig.tsbuildinfo +1 -1
  6. package/package.json +16 -11
  7. package/types/{src/components → components}/AccessibleIcon/AccessibleIcon.d.ts +1 -2
  8. package/types/{src/components → components}/AlertDialog/AlertDialog.d.ts +2 -2
  9. package/types/{src/components → components}/Badge/Badge.d.ts +2 -2
  10. package/types/components/Box/Box.d.ts +17 -0
  11. package/types/{src/components → components}/Button/Button.d.ts +4 -8
  12. package/types/components/Button/ButtonBase.d.ts +6 -0
  13. package/types/components/Button/HighEmphasisButton/HighEmphasisButton.d.ts +6 -0
  14. package/types/components/Button/LowEmphasisButton/LowEmphasisButton.d.ts +5 -0
  15. package/types/components/Button/MediumEmphasisButton/MediumEmphasisButton.d.ts +5 -0
  16. package/types/components/ButtonV2/ButtonV2.d.ts +24 -0
  17. package/types/components/ButtonV2/styles.d.ts +25 -0
  18. package/types/{src/components → components}/Calendar/Calendar.d.ts +1 -2
  19. package/types/components/Calendar/CalendarCell.d.ts +11 -0
  20. package/types/{src/components → components}/Calendar/CalendarGrid.d.ts +1 -2
  21. package/types/{src/components → components}/Calendar/CalendarHeader.d.ts +1 -1
  22. package/types/{src/components → components}/Calendar/RangeCalendar.d.ts +1 -2
  23. package/types/{src/components → components}/Calendar/TimeDateSelect.d.ts +3 -1
  24. package/types/{src/components → components}/ComboBox/ComboBox.d.ts +1 -2
  25. package/types/{src/components → components}/Connect/Connect.d.ts +1 -1
  26. package/types/{src/components → components}/Dialog/Dialog.d.ts +2 -2
  27. package/types/{src/components → components}/Drawer/Drawer.d.ts +3 -3
  28. package/types/{src/components → components}/Fieldset/Fieldset.d.ts +1 -2
  29. package/types/components/Flex/Flex.d.ts +11 -0
  30. package/types/{src/components → components}/FormControl/FormControl.d.ts +14 -6
  31. package/types/components/IconButton/IconButton.d.ts +31 -0
  32. package/types/components/Input/InlineEdit/InlineEdit.d.ts +19 -0
  33. package/types/{src/components → components}/Input/InputBase.d.ts +12 -4
  34. package/types/{src/components → components}/Input/NumberInput/NumberInput.d.ts +6 -2
  35. package/types/{src/components → components}/Input/TextArea/TextArea.d.ts +5 -1
  36. package/types/{src/components → components}/Input/TextInput/TextInput.d.ts +8 -2
  37. package/types/components/Input/TimeInput/TimeInput.d.ts +9 -0
  38. package/types/{src/components → components}/Label/Label.d.ts +1 -1
  39. package/types/{src/components → components}/ListBox/ListBox.d.ts +5 -5
  40. package/types/{src/components → components}/MultiSelect/MultiSelectListBox.d.ts +1 -1
  41. package/types/{src/components → components}/MultiSelect/MultiSelectPopover.d.ts +1 -1
  42. package/types/{src/components → components}/NavigationMenu/NavigationMenu.d.ts +4 -4
  43. package/types/{src/components → components}/Page/PageHeader.d.ts +1 -1
  44. package/types/{src/components → components}/Paginator/Paginator.d.ts +1 -1
  45. package/types/{src/components → components}/Popover/Popover.d.ts +1 -1
  46. package/types/{src/components → components}/RadioGroup/RadioGroup.d.ts +2 -2
  47. package/types/{src/components → components}/ReactAriaButton/ReactAriaButton.d.ts +1 -1
  48. package/types/{src/components → components}/SegmentControl/SegmentControl.d.ts +1 -1
  49. package/types/{src/components → components}/Select/Select.d.ts +2 -2
  50. package/types/{src/components → components}/SingleSelect/SingleSelect.d.ts +1 -2
  51. package/types/components/Skeleton/Skeleton.d.ts +30 -0
  52. package/types/components/Stack/Stack.d.ts +15 -0
  53. package/types/{src/components → components}/Table/Table.d.ts +1 -2
  54. package/types/{src/components → components}/Toast/Toast.d.ts +2 -2
  55. package/types/{src/components → components}/Tooltip/IconTooltip.d.ts +1 -1
  56. package/types/{src/components → components}/Tooltip/Tooltip.d.ts +1 -1
  57. package/types/{src/components → components}/index.d.ts +4 -1
  58. package/types/{src/helpers → helpers}/index.d.ts +1 -0
  59. package/types/helpers/props.d.ts +45 -0
  60. package/types/{src/helpers → helpers}/tokenUtils.d.ts +3 -0
  61. package/types/helpers/typeHelpers.d.ts +90 -0
  62. package/types/styles/index.d.ts +34 -0
  63. package/types/cypress/support/commands.d.ts +0 -0
  64. package/types/cypress/support/component.d.ts +0 -9
  65. package/types/cypress.config.d.ts +0 -3
  66. package/types/src/components/Badge/Badge.cy.d.ts +0 -1
  67. package/types/src/components/Box/Box.d.ts +0 -133
  68. package/types/src/components/Button/ButtonBase.d.ts +0 -54
  69. package/types/src/components/Button/Group.d.ts +0 -10
  70. package/types/src/components/Button/styles.d.ts +0 -1
  71. package/types/src/components/Calendar/CalendarCell.d.ts +0 -12
  72. package/types/src/components/Flex/Flex.d.ts +0 -73
  73. package/types/src/components/Input/InlineEdit/InlineEdit.d.ts +0 -11
  74. package/types/src/components/Input/TimeInput/TimeInput.d.ts +0 -3
  75. package/types/src/components/Stack/Stack.d.ts +0 -0
  76. package/types/src/components/Tokens/Tokens.cy.d.ts +0 -1
  77. package/types/src/helpers/typeHelpers.d.ts +0 -27
  78. /package/types/{src/components → components}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
  79. /package/types/{src/components/Button → components/ButtonV2}/Icon.d.ts +0 -0
  80. /package/types/{src/components → components}/Calendar/index.d.ts +0 -0
  81. /package/types/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
  82. /package/types/{src/components → components}/DropdownMenu/DropdownMenu.d.ts +0 -0
  83. /package/types/{src/components → components}/FileUpload/FileUpload.d.ts +0 -0
  84. /package/types/{src/components → components}/FormControl/useFormInput.d.ts +0 -0
  85. /package/types/{src/components → components}/Grid/Grid.d.ts +0 -0
  86. /package/types/{src/components → components}/Heading/Heading.d.ts +0 -0
  87. /package/types/{src/components → components}/Inline/Inline.d.ts +0 -0
  88. /package/types/{src/components → components}/ListBox/timezones.d.ts +0 -0
  89. /package/types/{src/components → components}/MultiSelect/MultiSelect.d.ts +0 -0
  90. /package/types/{src/components → components}/MultiSelect/useMultiSelect.d.ts +0 -0
  91. /package/types/{src/components → components}/MultiSelect/useMultiSelectListState.d.ts +0 -0
  92. /package/types/{src/components → components}/MultiSelect/useMultiSelectState.d.ts +0 -0
  93. /package/types/{src/components → components}/Page/Page.d.ts +0 -0
  94. /package/types/{src/components → components}/Search/Search.d.ts +0 -0
  95. /package/types/{src/components → components}/Switch/Switch.d.ts +0 -0
  96. /package/types/{src/components → components}/Tabs/Tabs.d.ts +0 -0
  97. /package/types/{src/components → components}/Text/Text.d.ts +0 -0
  98. /package/types/{src/components → components}/Title/Title.d.ts +0 -0
  99. /package/types/{src/components → components}/UnstyledLink/UnstyledLink.d.ts +0 -0
  100. /package/types/{src/helpers → helpers}/css.d.ts +0 -0
  101. /package/types/{src/helpers → helpers}/interactionStates.d.ts +0 -0
  102. /package/types/{src/index.d.ts → index.d.ts} +0 -0
@@ -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>;
@@ -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;
@@ -4,5 +4,5 @@ export declare const StyledSegmentControlRoot: import("styled-components").Style
4
4
  export type SegmentControlRootProps = Omit<ToggleGroup.ToggleGroupSingleProps, 'type' | 'style' | 'className'> & {
5
5
  size?: 'small' | 'large';
6
6
  };
7
- export declare const SegmentControlRoot: ({ children, size, ...props }: SegmentControlRootProps) => JSX.Element;
7
+ export declare const SegmentControlRoot: ({ children, size, ...props }: SegmentControlRootProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const SegmentControlItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<ToggleGroup.ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
@@ -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;
@@ -0,0 +1,30 @@
1
+ import { type BoxProps } from 'components/Box/Box';
2
+ import React from 'react';
3
+ export declare const Animator: import("styled-components").StyledComponent<import("../..").ForwardRefComponent<"div", BoxProps>, any, Omit<BoxProps, "as">, never>;
4
+ export type SkeletonHeaderProps = {
5
+ 'data-id'?: string;
6
+ looksLike?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
7
+ width?: string;
8
+ };
9
+ export declare const SkeletonHeader: React.ForwardRefExoticComponent<SkeletonHeaderProps & React.RefAttributes<HTMLDivElement>>;
10
+ export type SkeletonBodyProps = {
11
+ 'data-id'?: string;
12
+ lines?: number;
13
+ height?: string;
14
+ };
15
+ export declare const SkeletonBody: React.ForwardRefExoticComponent<SkeletonBodyProps & React.RefAttributes<HTMLDivElement>>;
16
+ export type SkeletonBoxProps = Omit<BoxProps, 'as'> & {
17
+ 'data-id'?: string;
18
+ };
19
+ export declare const SkeletonBox: React.ForwardRefExoticComponent<Omit<BoxProps, "as"> & {
20
+ 'data-id'?: string | undefined;
21
+ } & React.RefAttributes<HTMLDivElement>>;
22
+ declare function Skeleton(): null;
23
+ declare namespace Skeleton {
24
+ var Header: React.ForwardRefExoticComponent<SkeletonHeaderProps & React.RefAttributes<HTMLDivElement>>;
25
+ var Box: React.ForwardRefExoticComponent<Omit<BoxProps, "as"> & {
26
+ 'data-id'?: string | undefined;
27
+ } & React.RefAttributes<HTMLDivElement>>;
28
+ var Body: React.ForwardRefExoticComponent<SkeletonBodyProps & React.RefAttributes<HTMLDivElement>>;
29
+ }
30
+ export default Skeleton;
@@ -0,0 +1,15 @@
1
+ import type { AlignX } from 'helpers';
2
+ import { type SpacingTokenValues } from 'helpers/tokenUtils';
3
+ import React from 'react';
4
+ import type { ResponsiveValue } from 'styled-system';
5
+ export type StackProps = {
6
+ children?: React.ReactNode;
7
+ align?: ResponsiveValue<AlignX>;
8
+ space?: ResponsiveValue<SpacingTokenValues>;
9
+ 'data-id'?: string;
10
+ };
11
+ export declare function Stack(props: StackProps): JSX.Element;
12
+ export declare namespace Stack {
13
+ var displayName: string;
14
+ }
15
+ export default Stack;
@@ -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;
@@ -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>;
@@ -2,11 +2,13 @@ export * from './AccessibleIcon/AccessibleIcon';
2
2
  export * from './AlertDialog/AlertDialog';
3
3
  export * from './Badge/Badge';
4
4
  export * from './Box/Box';
5
+ export * from './Stack/Stack';
5
6
  export * from './Breadcrumbs/Breadcrumbs';
7
+ export * from './Button/ButtonBase';
6
8
  export * from './Button/Button';
9
+ export * from './ButtonV2/ButtonV2';
7
10
  export * from './Calendar';
8
11
  export * from './Drawer/Drawer';
9
- export * from './Button/ButtonBase';
10
12
  export * from './Checkbox/Checkbox';
11
13
  export * from './Dialog/Dialog';
12
14
  export * from './DropdownMenu/DropdownMenu';
@@ -30,6 +32,7 @@ export * from './RadioGroup/RadioGroup';
30
32
  export * from './Search/Search';
31
33
  export * from './SingleSelect/SingleSelect';
32
34
  export * from './Switch/Switch';
35
+ export * from './IconButton/IconButton';
33
36
  export * from './Tabs/Tabs';
34
37
  export * from './Text/Text';
35
38
  export * from './Title/Title';
@@ -1 +1,2 @@
1
1
  export * from './typeHelpers';
2
+ export * from './props';
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Omits styled system props from an object
3
+ * @param {Object} props
4
+ * @param {Array} names
5
+ *
6
+ * @example
7
+ * import { margin } from 'styled-system';
8
+ *
9
+ * omit({ my: '100', className: 'classs' }, margin.propNames)
10
+ * > { className: 'class' }
11
+ */
12
+ export declare function omit(props: {
13
+ [k: string]: any;
14
+ }, names: string[]): {
15
+ [k: string]: any;
16
+ };
17
+ /**
18
+ * Picks styled system props from an object
19
+ * @param {Object} props
20
+ * @param {Array} names
21
+ *
22
+ * @example
23
+ * import { margin } from 'styled-system';
24
+ *
25
+ * pick({ my: '100', py: '100' }, margin.propNames)
26
+ * > { my: '100' }
27
+ */
28
+ export declare function pick(props: {
29
+ [k: string]: any;
30
+ }, names: string[]): {
31
+ [k: string]: any;
32
+ };
33
+ /**
34
+ * Returns a configuration object for styled-components with omitted props, to be used with .withConfig
35
+ * @param {Array} arr
36
+ * @param {Object} config
37
+ *
38
+ * @see https://styled-components.com/docs/api#shouldforwardprop
39
+ */
40
+ export declare function clean(arr?: string[], config?: {
41
+ [k: string]: any;
42
+ }): {
43
+ shouldForwardProp: (prop: string, defaultFn: (prop: string) => boolean) => boolean;
44
+ [k: string]: any;
45
+ };
@@ -1,9 +1,12 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import nestedTokens from '@theroutingcompany/design-tokens/dist/json/tokens.json';
3
+ import type flatTokens from '@theroutingcompany/design-tokens/dist/ts/tokens';
3
4
  export declare function filterDefined(obj: Record<PropertyKey, unknown> | CSSProperties | undefined): {
4
5
  [k: string]: any;
5
6
  } | undefined;
6
7
  export type RemoveVendorProperties<P extends string | number> = P extends `-moz-${string}` | `-webkit-${string}` ? never : P;
8
+ type FlatTokenNames = keyof typeof flatTokens;
9
+ export type SpacingTokenValues = (typeof flatTokens)[Extract<FlatTokenNames, `spacing_${string}`>];
7
10
  type Spacing = (typeof nestedTokens)['spacing'];
8
11
  export type SpacingToken = keyof Spacing;
9
12
  export declare const getSpacingValue: (token: string) => string;
@@ -0,0 +1,90 @@
1
+ import type { ComponentPropsWithoutRef, ElementType, FocusEventHandler, MouseEventHandler } from 'react';
2
+ declare module 'csstype' {
3
+ interface Properties {
4
+ [index: `--${string}`]: string | number | undefined;
5
+ }
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>;
10
+ /** Utility type to get pretty readout of all of the members of an intersection. TS Quirk */
11
+ export type Prettify<T> = {
12
+ [K in keyof T]: T[K];
13
+ } & {};
14
+ export type ComponentPropsWithoutStyles<E extends ElementType> = Omit<ComponentPropsWithoutRef<E>, 'style'>;
15
+ type RemovePrefix<S extends string, Prefix extends string = 'is'> = S extends `${Prefix}${infer R}` ? Uncapitalize<R> : never;
16
+ export type RenameMisprefixedProps<InputProps extends Record<PropertyKey, any>, Prefix extends string, MisnamedKeys extends `${Prefix}${string}`> = Omit<InputProps, MisnamedKeys> & {
17
+ [S in MisnamedKeys as RemovePrefix<S, Prefix>]?: InputProps[S];
18
+ };
19
+ type RemoveSuffix<S extends string, Suffix extends string = 'Value'> = S extends `${infer R}${Suffix}` ? Uncapitalize<R> : never;
20
+ export type RenameMissuffixedProps<InputProps extends Record<PropertyKey, any>, Suffix extends string, MisnamedKeys extends `${string}${Suffix}`> = Omit<InputProps, MisnamedKeys> & {
21
+ [S in MisnamedKeys as RemoveSuffix<S, Suffix>]?: InputProps[S];
22
+ };
23
+ /** Get a type warning when an `errorMessage` is passed without a `validationState` prop. */
24
+ type MisprefixedBooleanProps = 'isDisabled' | 'isRequired' | 'isReadOnly';
25
+ /** renames `isDisabled`, `isRequired,` and `isReadonly` to `disabled`, `required,` and `readOnly` in an object type */
26
+ export type RenameBooleanProps<InputProps extends Record<PropertyKey, any>> = RenameMisprefixedProps<InputProps, 'is', MisprefixedBooleanProps>;
27
+ export type Merge<P1 = {
28
+ [key: string]: any;
29
+ }, P2 = {
30
+ [key: string]: any;
31
+ }> = Omit<P1, keyof P2> & P2;
32
+ /**
33
+ * Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
34
+ */
35
+ export type OwnProps<E> = E extends ForwardRefComponent<any, infer P> ? P : {
36
+ [key: string]: any;
37
+ };
38
+ /**
39
+ * Infers the JSX.IntrinsicElement if E is a ForwardRefExoticComponentWithAs
40
+ */
41
+ export type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never;
42
+ export type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
43
+ as?: E;
44
+ }>>;
45
+ export interface ForwardRefComponent<IntrinsicElementString, OwnProps = {
46
+ [key: string]: any;
47
+ }> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
48
+ /**
49
+ * When `as` prop is passed, use this overload.
50
+ * Merges original own props (without DOM props) and the inferred props
51
+ * from `as` element with the own props taking precendence.
52
+ *
53
+ * We explicitly avoid `React.ElementType` and manually narrow the prop types
54
+ * so that events are typed when using JSX.IntrinsicElements.
55
+ */
56
+ <As = IntrinsicElementString>(props: As extends '' ? {
57
+ as: keyof JSX.IntrinsicElements;
58
+ } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
59
+ as: As;
60
+ }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
61
+ as: As;
62
+ }> : never): React.ReactElement | null;
63
+ }
64
+ /**
65
+ * Alignment Types
66
+ */
67
+ export type AlignX = 'center' | 'left' | 'right';
68
+ export type AlignY = 'center' | 'top' | 'bottom';
69
+ export type Breakpoints = 'default' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
70
+ export type BreakpointsWithoutDefault = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
71
+ export type Headings = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
72
+ export type LinkActionProps = {
73
+ to?: string | {
74
+ [key: string]: any;
75
+ };
76
+ disabled?: boolean;
77
+ external?: boolean;
78
+ /**
79
+ * @deprecated Use `as` instead
80
+ */
81
+ component?: React.ElementType;
82
+ /**
83
+ * @deprecated Use `as` instead
84
+ */
85
+ Component?: React.ElementType;
86
+ };
87
+ export type ClickHandler = MouseEventHandler<HTMLButtonElement>;
88
+ export type FocusHandler = FocusEventHandler<HTMLButtonElement>;
89
+ export type TODOFIXME = any;
90
+ export {};
@@ -0,0 +1,34 @@
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 {};
File without changes
@@ -1,9 +0,0 @@
1
- import { mount } from 'cypress/react18';
2
- import './commands';
3
- declare global {
4
- namespace Cypress {
5
- interface Chainable {
6
- mount: typeof mount;
7
- }
8
- }
9
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="cypress" />
2
- declare const _default: Cypress.ConfigOptions<any>;
3
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,133 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import type { Property } from 'csstype';
3
- import type { BorderRadiusToken, ElevationToken, RemoveVendorProperties, SizingToken, SpacingToken } from '../../helpers/tokenUtils';
4
- export type BoxProps = PropsWithChildren<{
5
- display?: 'block' | 'inline-block' | 'contents' | 'none' | 'inline';
6
- position?: RemoveVendorProperties<Property.Position>;
7
- top?: Property.Top<SpacingToken>;
8
- bottom?: Property.Bottom<SpacingToken>;
9
- left?: Property.Left<SpacingToken>;
10
- right?: Property.Right<SpacingToken>;
11
- zIndex?: Property.ZIndex;
12
- /** width */
13
- w?: RemoveVendorProperties<Property.Width<SizingToken>>;
14
- /** min-width */
15
- minW?: RemoveVendorProperties<Property.MinWidth<SizingToken>>;
16
- /** max-width */
17
- maxW?: RemoveVendorProperties<Property.MaxWidth<SizingToken>>;
18
- /** height */
19
- h?: RemoveVendorProperties<Property.Height<SizingToken>>;
20
- /** min-height */
21
- minH?: RemoveVendorProperties<Property.MinHeight<SizingToken>>;
22
- /** max-height */
23
- maxH?: RemoveVendorProperties<Property.MaxHeight<SizingToken>>;
24
- /** margin */
25
- m?: RemoveVendorProperties<Property.Margin<SpacingToken>>;
26
- /** margin-top */
27
- mt?: RemoveVendorProperties<Property.MarginTop<SpacingToken>>;
28
- /** margin-bottom */
29
- mb?: RemoveVendorProperties<Property.MarginBottom<SpacingToken>>;
30
- /** margin-left */
31
- ml?: RemoveVendorProperties<Property.MarginLeft<SpacingToken>>;
32
- /** margin-right */
33
- mr?: RemoveVendorProperties<Property.MarginRight<SpacingToken>>;
34
- /** padding */
35
- p?: RemoveVendorProperties<Property.Padding<SpacingToken>>;
36
- /** padding-top */
37
- pt?: RemoveVendorProperties<Property.PaddingTop<SpacingToken>>;
38
- /** padding-right */
39
- pr?: RemoveVendorProperties<Property.PaddingRight<SpacingToken>>;
40
- /** padding-bottom */
41
- pb?: RemoveVendorProperties<Property.PaddingBottom<SpacingToken>>;
42
- /** padding-left */
43
- pl?: RemoveVendorProperties<Property.PaddingLeft<SpacingToken>>;
44
- borderRadius?: Property.BorderRadius<BorderRadiusToken>;
45
- borderTopLeftRadius?: Property.BorderTopLeftRadius<BorderRadiusToken>;
46
- borderTopRightRadius?: Property.BorderTopRightRadius<BorderRadiusToken>;
47
- borderBottomLeftRadius?: Property.BorderBottomLeftRadius<BorderRadiusToken>;
48
- borderBottomRightRadius?: Property.BorderBottomRightRadius<BorderRadiusToken>;
49
- /** box-shadow */
50
- elevation?: ElevationToken;
51
- flexShrink?: RemoveVendorProperties<Property.FlexShrink>;
52
- flexGrow?: RemoveVendorProperties<Property.FlexGrow>;
53
- flexBasis?: RemoveVendorProperties<Property.FlexBasis<SizingToken>>;
54
- flex?: Property.Flex<SizingToken>;
55
- alignSelf?: Property.AlignSelf;
56
- order?: Property.Order;
57
- border?: Property.Border;
58
- borderColor?: Property.BorderColor;
59
- borderWidth?: Property.BorderWidth;
60
- /** background */
61
- bg?: Property.Background;
62
- /** background-color */
63
- bgColor?: Property.BackgroundColor;
64
- opacity?: Property.Background;
65
- color?: Property.Color;
66
- overflow?: RemoveVendorProperties<Property.Overflow>;
67
- }>;
68
- export declare const Box: import("styled-components").StyledComponent<"div", any, {
69
- display?: "none" | "inline" | "block" | "inline-block" | "contents" | undefined;
70
- position?: RemoveVendorProperties<Property.Position> | undefined;
71
- top?: Property.Top<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
72
- bottom?: Property.Bottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
73
- left?: Property.Left<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
74
- right?: Property.Right<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900"> | undefined;
75
- zIndex?: Property.ZIndex | undefined;
76
- /** width */
77
- w?: RemoveVendorProperties<Property.Width<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
78
- /** min-width */
79
- minW?: RemoveVendorProperties<Property.MinWidth<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
80
- /** max-width */
81
- maxW?: RemoveVendorProperties<Property.MaxWidth<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
82
- /** height */
83
- h?: RemoveVendorProperties<Property.Height<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
84
- /** min-height */
85
- minH?: RemoveVendorProperties<Property.MinHeight<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
86
- /** max-height */
87
- maxH?: RemoveVendorProperties<Property.MaxHeight<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
88
- /** margin */
89
- m?: RemoveVendorProperties<Property.Margin<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
90
- /** margin-top */
91
- mt?: RemoveVendorProperties<Property.MarginTop<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
92
- /** margin-bottom */
93
- mb?: RemoveVendorProperties<Property.MarginBottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
94
- /** margin-left */
95
- ml?: RemoveVendorProperties<Property.MarginLeft<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
96
- /** margin-right */
97
- mr?: RemoveVendorProperties<Property.MarginRight<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
98
- /** padding */
99
- p?: RemoveVendorProperties<Property.Padding<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
100
- /** padding-top */
101
- pt?: RemoveVendorProperties<Property.PaddingTop<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
102
- /** padding-right */
103
- pr?: RemoveVendorProperties<Property.PaddingRight<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
104
- /** padding-bottom */
105
- pb?: RemoveVendorProperties<Property.PaddingBottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
106
- /** padding-left */
107
- pl?: RemoveVendorProperties<Property.PaddingLeft<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
108
- borderRadius?: Property.BorderRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
109
- borderTopLeftRadius?: Property.BorderTopLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
110
- borderTopRightRadius?: Property.BorderTopRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
111
- borderBottomLeftRadius?: Property.BorderBottomLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
112
- borderBottomRightRadius?: Property.BorderBottomRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
113
- /** box-shadow */
114
- elevation?: ElevationToken | undefined;
115
- flexShrink?: RemoveVendorProperties<Property.FlexShrink> | undefined;
116
- flexGrow?: RemoveVendorProperties<Property.FlexGrow> | undefined;
117
- flexBasis?: RemoveVendorProperties<Property.FlexBasis<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500">> | undefined;
118
- flex?: Property.Flex<"0" | "1000" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900" | "350" | "1100" | "1150" | "1200" | "1300" | "1350" | "1400" | "1500"> | undefined;
119
- alignSelf?: Property.AlignSelf | undefined;
120
- order?: Property.Order | undefined;
121
- border?: Property.Border<0 | (string & {})> | undefined;
122
- borderColor?: Property.BorderColor | undefined;
123
- borderWidth?: Property.BorderWidth<0 | (string & {})> | undefined;
124
- /** background */
125
- bg?: Property.Background<0 | (string & {})> | undefined;
126
- /** background-color */
127
- bgColor?: Property.BackgroundColor | undefined;
128
- opacity?: Property.Background<0 | (string & {})> | undefined;
129
- color?: Property.Color | undefined;
130
- overflow?: RemoveVendorProperties<Property.Overflow> | undefined;
131
- } & {
132
- children?: import("react").ReactNode;
133
- }, never>;