@theroutingcompany/components 0.0.115 → 0.0.117-alpha.0

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.115",
3
+ "version": "0.0.117-alpha.0",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  export type ModalHeaderProps = {
3
3
  children?: React.ReactNode;
4
4
  showCloseButton?: boolean;
5
- mb?: string;
5
+ pb?: string;
6
6
  };
7
7
  declare const Header: React.ForwardRefExoticComponent<ModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
8
8
  export default Header;
@@ -5,11 +5,11 @@ import Content from './Content';
5
5
  import Footer from './Footer';
6
6
  import Header from './Header';
7
7
  export declare const dialogWidths: {
8
- readonly small: "360px";
9
- readonly medium: "540px";
10
- readonly large: "960px";
8
+ readonly small: "450px";
9
+ readonly medium: "650px";
10
+ readonly large: "850px";
11
11
  };
12
- export type DialogWidth = keyof typeof dialogWidths;
12
+ export type ModalSize = keyof typeof dialogWidths;
13
13
  export type ModalProps = {
14
14
  children?: ReactNode;
15
15
  className?: string;
@@ -18,7 +18,7 @@ export type ModalProps = {
18
18
  onClose?: () => void;
19
19
  open: boolean;
20
20
  portalId?: PortalProps['containerId'];
21
- size?: 'small' | 'medium' | 'large';
21
+ size?: ModalSize;
22
22
  maxWidth?: string;
23
23
  } & MaxWidthProps;
24
24
  declare const Modal: ForwardRefExoticComponent<ModalProps> & {
@@ -1,3 +1,4 @@
1
+ import type { ModalSize } from 'components/Modal/Modal';
1
2
  import React, { type SetStateAction, type Dispatch } from 'react';
2
3
  /**
3
4
  * Context is created here to pass modal onClose and open state to composed Modal components
@@ -6,6 +7,7 @@ type ContextProps = {
6
7
  setModalTitle?: Dispatch<SetStateAction<string>>;
7
8
  onClose?: () => void;
8
9
  open?: boolean;
10
+ size: ModalSize;
9
11
  };
10
12
  export declare const ModalContext: React.Context<ContextProps>;
11
13
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { CollectionChildren } from '@react-types/shared';
2
2
  import React from 'react';
3
3
  import { useMultiSelectState } from './useMultiSelectState';
4
- export { Item as MultiSelectItem, Section as MultiSelectSection } from '@react-stately/collections';
4
+ export { Item as MultiSelectItem, Section as MultiSelectSection, } from '@react-stately/collections';
5
5
  export type OptionItem = {
6
6
  children?: never;
7
7
  id: string;