@theroutingcompany/components 0.0.67 → 0.0.68

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theroutingcompany/components",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -5,8 +5,11 @@ import type { BorderProps, ColorProps, FlexboxProps, GridGapProps, GridProps, La
5
5
  interface CustomSpaceProps extends SpaceProps {
6
6
  gap?: ResponsiveValue<SpacingTokenValues>;
7
7
  }
8
+ interface PointerEventsProps {
9
+ pointerEvents?: ResponsiveValue<string>;
10
+ }
8
11
  export interface BoxProps extends BorderProps, ColorProps, FlexboxProps, GridProps, GridGapProps, LayoutProps, Omit<PositionProps, 'zIndex'>, // Override because styled-system by default only allows numbers here
9
- ShadowProps, CustomSpaceProps, TypographyProps {
12
+ ShadowProps, CustomSpaceProps, TypographyProps, PointerEventsProps {
10
13
  truncate?: boolean;
11
14
  children?: React.ReactNode;
12
15
  zIndex?: ResponsiveValue<string | number>;
@@ -1,10 +1,12 @@
1
- import React from 'react';
1
+ import { type ForwardRefExoticComponent, type ReactNode } from 'react';
2
2
  import { type PortalProps } from '../Portal';
3
3
  import Content from './Content';
4
4
  import Header from './Header';
5
- declare const Close: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const Close: ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
6
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
7
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
6
8
  export type DrawerProps = {
7
- children?: React.ReactNode;
9
+ children?: ReactNode;
8
10
  closeOnEscape?: boolean;
9
11
  closeOnOutsideClick?: boolean;
10
12
  id?: string;
@@ -18,7 +20,7 @@ export type DrawerProps = {
18
20
  maxWidth?: string;
19
21
  dialogTitle?: string;
20
22
  };
21
- declare const Drawer: React.ForwardRefExoticComponent<DrawerProps> & {
23
+ declare const Drawer: ForwardRefExoticComponent<DrawerProps> & {
22
24
  Close: typeof Close;
23
25
  Content: typeof Content;
24
26
  Header: typeof Header;