@trii/components 2.0.41 → 2.0.44

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.
@@ -7,6 +7,7 @@ export interface Props {
7
7
  contactId?: string;
8
8
  t: (key: string) => string;
9
9
  sx?: SxProps<Theme>;
10
+ navigate: (path: string) => void;
10
11
  }
11
- declare const EditContactModal: ({ open, onClose, baseUrl, spaceId, contactId, sx, t }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ declare const EditContactModal: ({ open, onClose, baseUrl, spaceId, contactId, sx, t, navigate, }: Props) => import("react/jsx-runtime").JSX.Element;
12
13
  export default EditContactModal;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type NavigateFn = (path: string) => void;
3
+ interface NavigateProviderProps {
4
+ navigate: NavigateFn;
5
+ children: ReactNode;
6
+ }
7
+ export declare const NavigateProvider: ({ navigate, children }: NavigateProviderProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const useNavigateContext: () => NavigateFn;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ value: string;
3
+ displayValue: string;
4
+ businessId: string;
5
+ };
6
+ declare function SelectBusinessLabel({ value, displayValue, businessId }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export default SelectBusinessLabel;
@@ -0,0 +1 @@
1
+ export { default } from './SelectBusinessLabel';
@@ -0,0 +1 @@
1
+ export { default as SelectBusinessLabel } from './SelectBusinessLabel';
package/dist/index.d.ts CHANGED
@@ -22,7 +22,8 @@ interface Props {
22
22
  contactId?: string;
23
23
  t: (key: string) => string;
24
24
  sx?: SxProps<Theme>;
25
+ navigate: (path: string) => void;
25
26
  }
26
- declare const EditContactModal: ({ open, onClose, baseUrl, spaceId, contactId, sx, t }: Props) => react_jsx_runtime.JSX.Element;
27
+ declare const EditContactModal: ({ open, onClose, baseUrl, spaceId, contactId, sx, t, navigate, }: Props) => react_jsx_runtime.JSX.Element;
27
28
 
28
29
  export { ContactInfoPopup, EditContactModal };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/components",
3
- "version": "2.0.41",
3
+ "version": "2.0.44",
4
4
  "description": "Trii components package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",