@linzjs/lui 17.14.1 → 17.15.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [17.15.1](https://github.com/linz/lui/compare/v17.15.0...v17.15.1) (2022-09-22)
2
+
3
+ # [17.15.0](https://github.com/linz/lui/compare/v17.14.1...v17.15.0) (2022-09-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * **LuiTextInput:** Adds support for ref to inputProps ([#765](https://github.com/linz/lui/issues/765)) ([056cbc4](https://github.com/linz/lui/commit/056cbc44938f6c88425e69d2dde3990c96fa0be8))
9
+
1
10
  ## [17.14.1](https://github.com/linz/lui/compare/v17.14.0...v17.14.1) (2022-09-14)
2
11
 
3
12
 
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 18c.5 0 1-.5 1-1v-6c0-.6-.5-1-1-1s-1 .4-1 1v6c0 .5.5 1 1 1Zm0 4c.5 0 1-.5 1-1s-.5-1-1-1-1 .5-1 1 .5 1 1 1Zm-3-2v2H2L22 2v6h-2V6.8L6.8 20H18Z" fill="#000"/></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V8l-6-6ZM5 12V4h9v5h5v3H5Zm11.601 3.96a.891.891 0 0 1 .78-.412c.22 0 .425.03.616.092.192.062.383.137.574.227L19 14.765a3.684 3.684 0 0 0-1.605-.365c-.513 0-.959.11-1.34.33a2.17 2.17 0 0 0-.87.935c-.202.406-.302.878-.302 1.414 0 .857.208 1.513.624 1.966.418.454 1.018.68 1.8.68.545 0 1.034-.095 1.466-.287v-1.183c-.217.09-.433.167-.648.23a2.329 2.329 0 0 1-.666.096c-.758 0-1.138-.498-1.138-1.495 0-.48.094-.855.28-1.127Zm-6.669 3.694H8.097l-1.892-3.649h-.032c.045.574.067 1.012.067 1.315v2.334H5v-5.18h1.828l1.885 3.6h.021c-.033-.522-.05-.941-.05-1.258v-2.341h1.248v5.18Zm4.57-2.015c0 .656-.178 1.169-.532 1.537-.352.366-.846.55-1.481.55-.61 0-1.095-.188-1.456-.564-.36-.375-.539-.883-.539-1.523 0-.655.176-1.163.528-1.524.354-.364.85-.546 1.488-.546.395 0 .743.084 1.045.252.303.168.535.409.698.723.166.311.248.676.248 1.095Zm-2.601 0c0 .344.046.608.138.79.092.18.247.269.464.269.215 0 .366-.09.454-.27.09-.181.134-.445.134-.79 0-.342-.045-.6-.134-.775-.09-.175-.244-.263-.461-.263-.213 0-.365.088-.457.263-.092.172-.138.43-.138.776Z" fill="#000"/></svg>
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8l-6-6ZM9.9 19.7H8.1L6.2 16c0 .6.1 1 .1 1.3v2.3H5v-5.2h1.8L8.7 18V14.4h1.2v5.3Zm4.1-.5c-.4.4-.8.5-1.5.5-.6 0-1.1-.2-1.5-.6-.4-.4-.5-.9-.5-1.5 0-.7.2-1.2.5-1.5.4-.4.9-.5 1.5-.5.4 0 .7.1 1 .3.3.2.5.4.7.7.2.3.2.7.2 1.1.1.6-.1 1.1-.4 1.5Zm4.6-3.3c-.2-.1-.4-.2-.6-.2-.2 0-.4-.1-.6-.1-.3 0-.6.1-.8.4-.2.3-.3.6-.3 1.1 0 1 .4 1.5 1.1 1.5.2 0 .5 0 .7-.1.2-.1.4-.1.6-.2v1.2c-.4.2-.9.3-1.5.3-.8 0-1.4-.2-1.8-.7-.4-.5-.6-1.1-.6-2 0-.5.1-1 .3-1.4.2-.4.5-.7.9-.9.4-.2.8-.3 1.3-.3.6 0 1.1.1 1.6.4l-.3 1ZM19 12H5V4h9v5h5v3Zm-7.1 5.6c0 .3 0 .6.1.8.1.2.2.3.5.3.2 0 .4-.1.5-.3.1-.2.1-.4.1-.8 0-.3 0-.6-.1-.8-.1-.2-.2-.3-.5-.3-.2 0-.4.1-.5.3-.1.2-.1.5-.1.8Z" fill="#000"/></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="2.5" y="6.5" width="19" height="13" rx="1.5" fill="#fff" stroke="#000"/><rect x="3" y="6" width="19" height="14" rx="2" stroke="#000" stroke-width="2"/><path d="M2 4a2 2 0 0 1 2-2h3v18H4a2 2 0 0 1-2-2V4Z" fill="#fff" stroke="#000" stroke-width="2"/><path d="M2 17a3 3 0 0 1 3-3h2v6H5a3 3 0 0 1-3-3Z" fill="#fff" stroke="#000" stroke-width="2"/><path fill="#fff" d="M6 15h3v4H6z"/><path d="M21 12H8M14 19V7M6 19v-4" stroke="#6B6966" stroke-width="1.5" stroke-linejoin="round"/></svg>
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 5H8V1.1H4c-1.7 0-3 1.3-3 3v14C1 19.8 2.3 21 4 21h16c1.7 0 3-1.3 3-3V8c0-1.7-1.3-3-3-3Zm1 3v3.3h-6.2V7H20c.6 0 1 .4 1 1Zm-7.8-1v4.3H8V7h5.2Zm-8 12H5c-1.1 0-2-.9-2-2s.9-2 2-2h.2v4Zm1.5 0v-4H8v-2.3h5.2V19H6.7ZM4 3.1h2V13H5c-.7 0-1.4.2-2 .6V4.1c0-.5.4-1 1-1ZM20 19h-5.2v-6.3H21V18c0 .6-.4 1-1 1Z" fill="#000"/></svg>
@@ -1 +1 @@
1
- <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 2h8l6 6v12c0 1.1-.9 2-2 2H5.99C4.89 22 4 21.1 4 20l.01-16c0-1.1.89-2 1.99-2Zm0 2v8h12V9h-5V4H6Zm-.98 15 1.513-2.51L5 14h1.433l.897 1.46.79-1.46h1.433l-1.547 2.55L9.52 19H8.087l-.87-1.407L6.452 19H5.02Zm4.804 0 .59-5h1.218l1.024 3.513L13.681 14h1.205l.596 5H14.23l-.322-2.698L13.252 19h-1.218l-.65-2.638L11.076 19H9.824Zm6.39-.31c.206.207.534.31.985.31H19v-1.17h-1.446c-.232 0-.348-.118-.348-.35V14h-1.3v3.701c0 .453.103.783.309.99Z"/></svg>
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6 2h8l6 6v12c0 1.1-.9 2-2 2H5.99C4.89 22 4 21.1 4 20l.01-16c0-1.1.89-2 1.99-2Zm0 2v8h12V9h-5V4H6Zm-.98 15 1.513-2.51L5 14h1.433l.897 1.46.79-1.46h1.433l-1.547 2.55L9.52 19H8.087l-.87-1.407L6.452 19H5.02Zm4.804 0 .59-5h1.218l1.024 3.513L13.681 14h1.205l.596 5H14.23l-.322-2.698L13.252 19h-1.218l-.65-2.638L11.076 19H9.824Zm6.39-.31c.206.207.534.31.985.31H19v-1.17h-1.446c-.232 0-.348-.118-.348-.35V14h-1.3v3.701c0 .453.103.783.309.99Z" fill="#000"/></svg>
@@ -541,6 +541,12 @@ iconMap['ic_minimise'] = (
541
541
  </svg>
542
542
  );
543
543
 
544
+ iconMap['ic_misclose_error'] = (
545
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
546
+ <path d="M21 18c.5 0 1-.5 1-1v-6c0-.6-.5-1-1-1s-1 .4-1 1v6c0 .5.5 1 1 1Zm0 4c.5 0 1-.5 1-1s-.5-1-1-1-1 .5-1 1 .5 1 1 1Zm-3-2v2H2L22 2v6h-2V6.8L6.8 20H18Z" />
547
+ </svg>
548
+ );
549
+
544
550
  iconMap['ic_more_vert'] = (
545
551
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
546
552
  <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
@@ -567,7 +573,7 @@ iconMap['ic_note_add'] = (
567
573
 
568
574
  iconMap['ic_notice_of_change'] = (
569
575
  <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
570
- <path d="M15 2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V8l-6-6ZM5 12V4h9v5h5v3H5Zm11.601 3.96a.891.891 0 0 1 .78-.412c.22 0 .425.03.616.092.192.062.383.137.574.227L19 14.765a3.684 3.684 0 0 0-1.605-.365c-.513 0-.959.11-1.34.33a2.17 2.17 0 0 0-.87.935c-.202.406-.302.878-.302 1.414 0 .857.208 1.513.624 1.966.418.454 1.018.68 1.8.68.545 0 1.034-.095 1.466-.287v-1.183c-.217.09-.433.167-.648.23a2.329 2.329 0 0 1-.666.096c-.758 0-1.138-.498-1.138-1.495 0-.48.094-.855.28-1.127Zm-6.669 3.694H8.097l-1.892-3.649h-.032c.045.574.067 1.012.067 1.315v2.334H5v-5.18h1.828l1.885 3.6h.021c-.033-.522-.05-.941-.05-1.258v-2.341h1.248v5.18Zm4.57-2.015c0 .656-.178 1.169-.532 1.537-.352.366-.846.55-1.481.55-.61 0-1.095-.188-1.456-.564-.36-.375-.539-.883-.539-1.523 0-.655.176-1.163.528-1.524.354-.364.85-.546 1.488-.546.395 0 .743.084 1.045.252.303.168.535.409.698.723.166.311.248.676.248 1.095Zm-2.601 0c0 .344.046.608.138.79.092.18.247.269.464.269.215 0 .366-.09.454-.27.09-.181.134-.445.134-.79 0-.342-.045-.6-.134-.775-.09-.175-.244-.263-.461-.263-.213 0-.365.088-.457.263-.092.172-.138.43-.138.776Z" />
576
+ <path d="M15 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8l-6-6ZM9.9 19.7H8.1L6.2 16c0 .6.1 1 .1 1.3v2.3H5v-5.2h1.8L8.7 18V14.4h1.2v5.3Zm4.1-.5c-.4.4-.8.5-1.5.5-.6 0-1.1-.2-1.5-.6-.4-.4-.5-.9-.5-1.5 0-.7.2-1.2.5-1.5.4-.4.9-.5 1.5-.5.4 0 .7.1 1 .3.3.2.5.4.7.7.2.3.2.7.2 1.1.1.6-.1 1.1-.4 1.5Zm4.6-3.3c-.2-.1-.4-.2-.6-.2-.2 0-.4-.1-.6-.1-.3 0-.6.1-.8.4-.2.3-.3.6-.3 1.1 0 1 .4 1.5 1.1 1.5.2 0 .5 0 .7-.1.2-.1.4-.1.6-.2v1.2c-.4.2-.9.3-1.5.3-.8 0-1.4-.2-1.8-.7-.4-.5-.6-1.1-.6-2 0-.5.1-1 .3-1.4.2-.4.5-.7.9-.9.4-.2.8-.3 1.3-.3.6 0 1.1.1 1.6.4l-.3 1ZM19 12H5V4h9v5h5v3Zm-7.1 5.6c0 .3 0 .6.1.8.1.2.2.3.5.3.2 0 .4-.1.5-.3.1-.2.1-.4.1-.8 0-.3 0-.6-.1-.8-.1-.2-.2-.3-.5-.3-.2 0-.4.1-.5.3-.1.2-.1.5-.1.8Z" />
571
577
  </svg>
572
578
  );
573
579
 
@@ -763,21 +769,7 @@ iconMap['ic_submit'] = (
763
769
 
764
770
  iconMap['ic_survey'] = (
765
771
  <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
766
- <rect x="2.5" y="6.5" rx="1.5" stroke="#000" />
767
- <rect x="3" y="6" rx="2" stroke="#000" stroke- />
768
- <path
769
- d="M2 4a2 2 0 0 1 2-2h3v18H4a2 2 0 0 1-2-2V4Z"
770
- stroke="#000"
771
- stroke-
772
- />
773
- <path d="M2 17a3 3 0 0 1 3-3h2v6H5a3 3 0 0 1-3-3Z" stroke="#000" stroke- />
774
- <path d="M6 15h3v4H6z" />
775
- <path
776
- d="M21 12H8M14 19V7M6 19v-4"
777
- stroke="#6B6966"
778
- stroke-width="1.5"
779
- stroke-linejoin="round"
780
- />
772
+ <path d="M20 5H8V1.1H4c-1.7 0-3 1.3-3 3v14C1 19.8 2.3 21 4 21h16c1.7 0 3-1.3 3-3V8c0-1.7-1.3-3-3-3Zm1 3v3.3h-6.2V7H20c.6 0 1 .4 1 1Zm-7.8-1v4.3H8V7h5.2Zm-8 12H5c-1.1 0-2-.9-2-2s.9-2 2-2h.2v4Zm1.5 0v-4H8v-2.3h5.2V19H6.7ZM4 3.1h2V13H5c-.7 0-1.4.2-2 .6V4.1c0-.5.4-1 1-1ZM20 19h-5.2v-6.3H21V18c0 .6-.4 1-1 1Z" />
781
773
  </svg>
782
774
  );
783
775
 
@@ -1,7 +1,7 @@
1
- import { ChangeEventHandler, InputHTMLAttributes } from 'react';
1
+ import { ChangeEventHandler, DetailedHTMLProps, InputHTMLAttributes } from 'react';
2
2
  export interface LuiTextInputProps {
3
3
  onChange?: ChangeEventHandler<HTMLInputElement>;
4
- inputProps?: InputHTMLAttributes<HTMLInputElement>;
4
+ inputProps?: DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
5
5
  error?: string;
6
6
  warning?: string;
7
7
  hideLabel?: boolean;
@@ -3,4 +3,7 @@ import { Size } from '../common/ResponsiveUtils';
3
3
  export interface ILOLActiveFirmMessageProperties {
4
4
  showFrom?: Size;
5
5
  }
6
+ /**
7
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
8
+ */
6
9
  export declare const LOLActiveFirmMessage: (props: ILOLActiveFirmMessageProperties) => JSX.Element | null;
@@ -9,4 +9,7 @@ export declare const SEARCH_LABEL = "Search";
9
9
  export declare const NOC_LABEL = "Post registered NoC";
10
10
  export declare const SURVEY_LABEL = "Survey";
11
11
  export declare const TITLES_LABEL = "Dealings";
12
+ /**
13
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
14
+ */
12
15
  export declare const LOLAppLauncherMenu: (props: ILOLAppLauncherMenuProps) => JSX.Element | null;
@@ -11,4 +11,7 @@ export interface LOLAuthorisedLinkProps {
11
11
  anyPrivileges: string[];
12
12
  openExternally?: boolean;
13
13
  }
14
+ /**
15
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
16
+ */
14
17
  export declare const LOLAuthorisedLink: (props: LOLAuthorisedLinkProps) => JSX.Element | null;
@@ -1,5 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ILOLAppLauncherMenuProps } from './LOLAppLauncherMenu';
3
+ /**
4
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
5
+ */
3
6
  export declare const LOLDrawerMenu: (props: {
4
7
  children: ReactNode;
5
8
  hasStickyHeader?: boolean;
@@ -2,4 +2,7 @@ import React from 'react';
2
2
  export interface ILOLDrawerMenuFirmSwitcherProperties {
3
3
  minimumFilterCount: number;
4
4
  }
5
+ /**
6
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
7
+ */
5
8
  export declare const LOLDrawerMenuFirmSwitcher: React.FC<ILOLDrawerMenuFirmSwitcherProperties>;
@@ -4,6 +4,9 @@ import { ILuiDropdownMenu } from '../LuiHeaderMenu/LuiHeaderMenus';
4
4
  export declare type ILOLFirmSwitcherMenu = Omit<ILuiDropdownMenu, 'icon' | 'label'> & {
5
5
  showClientRef?: boolean;
6
6
  };
7
+ /**
8
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
9
+ */
7
10
  export declare const LOLFirmSwitcherMenu: React.FC<ILOLFirmSwitcherMenu>;
8
11
  interface ILOLFirmSwitcherMenuContent {
9
12
  firms: IFirm[];
@@ -4,4 +4,7 @@ export interface Props {
4
4
  /** Return false if the logout should be aborted. */
5
5
  callBackBeforeLogout?: () => Promise<void | boolean>;
6
6
  }
7
+ /**
8
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
9
+ */
7
10
  export declare const LOLLogoutLink: (props: Props) => JSX.Element | null;
@@ -6,4 +6,7 @@ export interface ILOLSearchBoxProps {
6
6
  initOptionValue?: string;
7
7
  onMenuSelect?: (e: Event) => void;
8
8
  }
9
+ /**
10
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
11
+ */
9
12
  export declare const LOLSearchBox: ({ searchBoxOptions, initOptionValue, onMenuSelect, }: ILOLSearchBoxProps) => JSX.Element;
@@ -1,2 +1,5 @@
1
1
  import React from 'react';
2
+ /**
3
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
4
+ */
2
5
  export declare const LOLUserLastLogin: React.FC;
@@ -12,6 +12,9 @@ interface LOLGlobalClientRefContextProviderProperties {
12
12
  useUserIdAsClientReference?: boolean;
13
13
  children: React.ReactNode;
14
14
  }
15
+ /**
16
+ * Deprecated: this is Landonline specific and has been moved to https://github.com/linz/landonline-common-js
17
+ */
15
18
  export declare const LOLGlobalClientRefContextProvider: (props: LOLGlobalClientRefContextProviderProperties) => JSX.Element;
16
19
  export declare const GLOBAL_CLIENT_REFERENCE_KEY = "globalClientReference";
17
20
  export declare function getGlobalClientRefCache(): string | null;
@@ -8,6 +8,9 @@ interface IUserContext {
8
8
  }
9
9
  declare function useLOLUserContext(): IUserContext;
10
10
  declare const LOLUserContext: React.Context<IUserContext>;
11
+ /**
12
+ * Deprecated: this is Landonline specific and has been moved to https://github.com/linz/landonline-common-js
13
+ */
11
14
  declare function LOLUserContextProvider(props: {
12
15
  children: React.ReactNode;
13
16
  }): JSX.Element;
package/dist/index.js CHANGED
@@ -338,6 +338,8 @@ iconMap['ic_message_received'] = (React__default["default"].createElement("svg",
338
338
  React__default["default"].createElement("path", { d: "M19.5 4h-16c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9v-2h-9V8l8 5 8-5v5h2V6c0-1.1-.9-2-2-2Zm-8 7-8-5h16l-8 5Zm6 4-4 4 4 4v-3h4v-2h-4v-3Z" })));
339
339
  iconMap['ic_minimise'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
340
340
  React__default["default"].createElement("path", { d: "M7 19h10c.55 0 1 .45 1 1s-.45 1-1 1H7c-.55 0-1-.45-1-1s.45-1 1-1z" })));
341
+ iconMap['ic_misclose_error'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
342
+ React__default["default"].createElement("path", { d: "M21 18c.5 0 1-.5 1-1v-6c0-.6-.5-1-1-1s-1 .4-1 1v6c0 .5.5 1 1 1Zm0 4c.5 0 1-.5 1-1s-.5-1-1-1-1 .5-1 1 .5 1 1 1Zm-3-2v2H2L22 2v6h-2V6.8L6.8 20H18Z" })));
341
343
  iconMap['ic_more_vert'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
342
344
  React__default["default"].createElement("path", { d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" })));
343
345
  iconMap['ic_navigate_before'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
@@ -347,7 +349,7 @@ iconMap['ic_navigate_next'] = (React__default["default"].createElement("svg", {
347
349
  iconMap['ic_note_add'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
348
350
  React__default["default"].createElement("path", { d: "M13 11h-2v3H8v2h3v3h2v-3h3v-2h-3v-3Zm1-9H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6Zm4 18H6V4h7v5h5v11Z" })));
349
351
  iconMap['ic_notice_of_change'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
350
- React__default["default"].createElement("path", { d: "M15 2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V8l-6-6ZM5 12V4h9v5h5v3H5Zm11.601 3.96a.891.891 0 0 1 .78-.412c.22 0 .425.03.616.092.192.062.383.137.574.227L19 14.765a3.684 3.684 0 0 0-1.605-.365c-.513 0-.959.11-1.34.33a2.17 2.17 0 0 0-.87.935c-.202.406-.302.878-.302 1.414 0 .857.208 1.513.624 1.966.418.454 1.018.68 1.8.68.545 0 1.034-.095 1.466-.287v-1.183c-.217.09-.433.167-.648.23a2.329 2.329 0 0 1-.666.096c-.758 0-1.138-.498-1.138-1.495 0-.48.094-.855.28-1.127Zm-6.669 3.694H8.097l-1.892-3.649h-.032c.045.574.067 1.012.067 1.315v2.334H5v-5.18h1.828l1.885 3.6h.021c-.033-.522-.05-.941-.05-1.258v-2.341h1.248v5.18Zm4.57-2.015c0 .656-.178 1.169-.532 1.537-.352.366-.846.55-1.481.55-.61 0-1.095-.188-1.456-.564-.36-.375-.539-.883-.539-1.523 0-.655.176-1.163.528-1.524.354-.364.85-.546 1.488-.546.395 0 .743.084 1.045.252.303.168.535.409.698.723.166.311.248.676.248 1.095Zm-2.601 0c0 .344.046.608.138.79.092.18.247.269.464.269.215 0 .366-.09.454-.27.09-.181.134-.445.134-.79 0-.342-.045-.6-.134-.775-.09-.175-.244-.263-.461-.263-.213 0-.365.088-.457.263-.092.172-.138.43-.138.776Z" })));
352
+ React__default["default"].createElement("path", { d: "M15 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8l-6-6ZM9.9 19.7H8.1L6.2 16c0 .6.1 1 .1 1.3v2.3H5v-5.2h1.8L8.7 18V14.4h1.2v5.3Zm4.1-.5c-.4.4-.8.5-1.5.5-.6 0-1.1-.2-1.5-.6-.4-.4-.5-.9-.5-1.5 0-.7.2-1.2.5-1.5.4-.4.9-.5 1.5-.5.4 0 .7.1 1 .3.3.2.5.4.7.7.2.3.2.7.2 1.1.1.6-.1 1.1-.4 1.5Zm4.6-3.3c-.2-.1-.4-.2-.6-.2-.2 0-.4-.1-.6-.1-.3 0-.6.1-.8.4-.2.3-.3.6-.3 1.1 0 1 .4 1.5 1.1 1.5.2 0 .5 0 .7-.1.2-.1.4-.1.6-.2v1.2c-.4.2-.9.3-1.5.3-.8 0-1.4-.2-1.8-.7-.4-.5-.6-1.1-.6-2 0-.5.1-1 .3-1.4.2-.4.5-.7.9-.9.4-.2.8-.3 1.3-.3.6 0 1.1.1 1.6.4l-.3 1ZM19 12H5V4h9v5h5v3Zm-7.1 5.6c0 .3 0 .6.1.8.1.2.2.3.5.3.2 0 .4-.1.5-.3.1-.2.1-.4.1-.8 0-.3 0-.6-.1-.8-.1-.2-.2-.3-.5-.3-.2 0-.4.1-.5.3-.1.2-.1.5-.1.8Z" })));
351
353
  iconMap['ic_numbered_list'] = (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
352
354
  React__default["default"].createElement("path", { d: "M21 16h-2c-.28 0-.5.22-.5.5s.22.5.5.5h1.5v.5H20c-.28 0-.5.22-.5.5s.22.5.5.5h.5v.5H19c-.28 0-.5.22-.5.5s.22.5.5.5h2c.28 0 .5-.22.5-.5v-3c0-.28-.22-.5-.5-.5zM19 5h.5v2.5c0 .28.22.5.5.5s.5-.22.5-.5v-3c0-.28-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5s.22.5.5.5zm2.5 5.72v-.22c0-.28-.22-.5-.5-.5h-2c-.28 0-.5.22-.5.5s.22.5.5.5h1.3l-1.68 1.96a.49.49 0 0 0-.12.32v.22c0 .28.22.5.5.5h2c.28 0 .5-.22.5-.5s-.22-.5-.5-.5h-1.3l1.68-1.96a.49.49 0 0 0 .12-.32zM15.5 5h-12c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1zm0 12h-12c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1zm0-6h-12c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1z" })));
353
355
  iconMap['ic_office_building_corporate'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
@@ -415,12 +417,7 @@ iconMap['ic_square_selection'] = (React__default["default"].createElement("svg",
415
417
  iconMap['ic_submit'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
416
418
  React__default["default"].createElement("path", { d: "M2.01 21 23 12 2.01 3 2 10l15 2-15 2 .01 7Z" })));
417
419
  iconMap['ic_survey'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
418
- React__default["default"].createElement("rect", { x: "2.5", y: "6.5", rx: "1.5", stroke: "#000" }),
419
- React__default["default"].createElement("rect", { x: "3", y: "6", rx: "2", stroke: "#000", "stroke-": true }),
420
- React__default["default"].createElement("path", { d: "M2 4a2 2 0 0 1 2-2h3v18H4a2 2 0 0 1-2-2V4Z", stroke: "#000", "stroke-": true }),
421
- React__default["default"].createElement("path", { d: "M2 17a3 3 0 0 1 3-3h2v6H5a3 3 0 0 1-3-3Z", stroke: "#000", "stroke-": true }),
422
- React__default["default"].createElement("path", { d: "M6 15h3v4H6z" }),
423
- React__default["default"].createElement("path", { d: "M21 12H8M14 19V7M6 19v-4", stroke: "#6B6966", "stroke-width": "1.5", "stroke-linejoin": "round" })));
420
+ React__default["default"].createElement("path", { d: "M20 5H8V1.1H4c-1.7 0-3 1.3-3 3v14C1 19.8 2.3 21 4 21h16c1.7 0 3-1.3 3-3V8c0-1.7-1.3-3-3-3Zm1 3v3.3h-6.2V7H20c.6 0 1 .4 1 1Zm-7.8-1v4.3H8V7h5.2Zm-8 12H5c-1.1 0-2-.9-2-2s.9-2 2-2h.2v4Zm1.5 0v-4H8v-2.3h5.2V19H6.7ZM4 3.1h2V13H5c-.7 0-1.4.2-2 .6V4.1c0-.5.4-1 1-1ZM20 19h-5.2v-6.3H21V18c0 .6-.4 1-1 1Z" })));
424
421
  iconMap['ic_survey_report'] = (React__default["default"].createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
425
422
  React__default["default"].createElement("path", { d: "M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16H4V5h16v14Z" }),
426
423
  React__default["default"].createElement("path", { d: "M19.41 10.42 17.99 9l-3.17 3.17-1.41-1.42L12 12.16 14.82 15l4.59-4.58Z" }),
@@ -28678,8 +28675,12 @@ var searchBoxOptions = [
28678
28675
  var getDefaultSearchMenuOptions = function () {
28679
28676
  return searchBoxOptions;
28680
28677
  };
28678
+ /**
28679
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
28680
+ */
28681
28681
  var LOLSearchBox = function (_a) {
28682
28682
  var searchBoxOptions = _a.searchBoxOptions, initOptionValue = _a.initOptionValue, onMenuSelect = _a.onMenuSelect;
28683
+ useDeprecatedWarning('LOLSearchBox');
28683
28684
  return (React__default["default"].createElement(LuiSearchBox, { onMenuSelect: onMenuSelect, initOptionValue: initOptionValue, searchBoxOptions: searchBoxOptions ? searchBoxOptions : getDefaultSearchMenuOptions() }));
28684
28685
  };
28685
28686
 
@@ -28719,7 +28720,11 @@ var LOLUserContext = React__default["default"].createContext({
28719
28720
  isInternal: function () { return false; },
28720
28721
  hasAnyPrivilege: function () { return false; }
28721
28722
  });
28723
+ /**
28724
+ * Deprecated: this is Landonline specific and has been moved to https://github.com/linz/landonline-common-js
28725
+ */
28722
28726
  function LOLUserContextProvider(props) {
28727
+ useDeprecatedWarning('LOLUserContextProvider');
28723
28728
  var _a = useGetUserInfo(), isLoading = _a.isLoading, data = _a.data, isError = _a.isError;
28724
28729
  var _b = React.useState(), selectedFirm = _b[0], setSelectedFirm = _b[1];
28725
28730
  var _c = React.useState(false), ready = _c[0], setReady = _c[1];
@@ -28900,7 +28905,11 @@ var LOLGlobalClientRefContext = React__default["default"].createContext({
28900
28905
  // no-op
28901
28906
  }
28902
28907
  });
28908
+ /**
28909
+ * Deprecated: this is Landonline specific and has been moved to https://github.com/linz/landonline-common-js
28910
+ */
28903
28911
  var LOLGlobalClientRefContextProvider = function (props) {
28912
+ useDeprecatedWarning('LOLGlobalClientRefContextProvider');
28904
28913
  var useUserIdAsClientReference = props.useUserIdAsClientReference;
28905
28914
  var _a = useLOLUserContext(), user = _a.user, selectedFirm = _a.selectedFirm;
28906
28915
  var _b = React.useState(''), clientRef = _b[0], setClientRef = _b[1];
@@ -28959,8 +28968,12 @@ function setGlobalClientRefCache(clientReference) {
28959
28968
  }
28960
28969
  }
28961
28970
 
28971
+ /**
28972
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
28973
+ */
28962
28974
  var LOLFirmSwitcherMenu = function (_a) {
28963
28975
  var _b = _a.showClientRef, showClientRef = _b === void 0 ? false : _b, restOfProps = __rest(_a, ["showClientRef"]);
28976
+ useDeprecatedWarning('LOLFirmSwitcherMenu');
28964
28977
  var _c = useLOLUserContext(), user = _c.user, selectedFirm = _c.selectedFirm, changeFirm = _c.changeFirm, isInternal = _c.isInternal;
28965
28978
  var clientRef = useLOLGlobalClientRefContext().clientRef;
28966
28979
  var firms = user.firms;
@@ -29031,7 +29044,11 @@ var FirmSwitcher = function (_a) {
29031
29044
  React__default["default"].createElement(LuiFilterContainer, { showFilter: showFilter, filterFunction: filterFunction, renderFunction: renderFunction })));
29032
29045
  };
29033
29046
 
29047
+ /**
29048
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
29049
+ */
29034
29050
  var LOLLogoutLink = function (props) {
29051
+ useDeprecatedWarning('LOLLogoutLink');
29035
29052
  var redirectPathString = props.redirectPath();
29036
29053
  var user = useLOLUserContext().user;
29037
29054
  if (!user) {
@@ -29065,8 +29082,12 @@ var LOLLogoutLink = function (props) {
29065
29082
  return React__default["default"].createElement(LuiDrawerMenuOption, { label: "Logout ".concat(user.id), onClick: logout });
29066
29083
  };
29067
29084
 
29085
+ /**
29086
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
29087
+ */
29068
29088
  var LOLUserLastLogin = function () {
29069
29089
  var _a;
29090
+ useDeprecatedWarning('LOLUserLastLogin');
29070
29091
  var lastLogin;
29071
29092
  var context = useLOLUserContext();
29072
29093
  var lastLoginISO = (_a = context === null || context === void 0 ? void 0 : context.user) === null || _a === void 0 ? void 0 : _a.lastLogin;
@@ -29083,7 +29104,11 @@ var LOLUserLastLogin = function () {
29083
29104
  React__default["default"].createElement("span", null, "Not you? Please, call us on 0800 665 463"))));
29084
29105
  };
29085
29106
 
29107
+ /**
29108
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
29109
+ */
29086
29110
  var LOLActiveFirmMessage = function (props) {
29111
+ useDeprecatedWarning('LOLActiveFirmMessage');
29087
29112
  var _a = useLOLUserContext(), selectedFirm = _a.selectedFirm, user = _a.user;
29088
29113
  var _b = React.useState(false), visible = _b[0], setVisible = _b[1];
29089
29114
  var hide = props.showFrom !== 'xl' ? { from: props.showFrom || 'sm' } : undefined;
@@ -29105,7 +29130,11 @@ var LOLActiveFirmMessage = function (props) {
29105
29130
 
29106
29131
  var ExternalIcon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgZmlsbD0iIzk4OTE4OSI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE5IDE5SDVWNWg3VjNINWMtMS4xMSAwLTIgLjktMiAydjE0YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0ydi03aC0ydjd6TTE0IDN2MmgzLjU5bC05LjgzIDkuODMgMS40MSAxLjQxTDE5IDYuNDFWMTBoMlYzaC03eiIvPjwvc3ZnPg==';
29107
29132
 
29133
+ /**
29134
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
29135
+ */
29108
29136
  var LOLAuthorisedLink = function (props) {
29137
+ useDeprecatedWarning('LOLAuthorisedLink');
29109
29138
  var hasAnyPrivilege = useLOLUserContext().hasAnyPrivilege;
29110
29139
  var icon = props.icon, activeIcon = props.activeIcon, active = props.active, label = props.label, path = props.path, openExternally = props.openExternally, anyPrivileges = props.anyPrivileges;
29111
29140
  var onClickHandler = function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -29160,7 +29189,11 @@ var SEARCH_LABEL = 'Search';
29160
29189
  var NOC_LABEL = 'Post registered NoC';
29161
29190
  var SURVEY_LABEL = 'Survey';
29162
29191
  var TITLES_LABEL = 'Dealings';
29192
+ /**
29193
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
29194
+ */
29163
29195
  var LOLAppLauncherMenu = function (props) {
29196
+ useDeprecatedWarning('LOLAppLauncherMenu');
29164
29197
  var _a = useLOLUserContext(), user = _a.user, isInternal = _a.isInternal;
29165
29198
  var pathname = props.pathname, _b = props.enableNOCLink, enableNOCLink = _b === void 0 ? false : _b, _c = props.enableSurveyLink, enableSurveyLink = _c === void 0 ? false : _c, _d = props.enableTitlesLink, enableTitlesLink = _d === void 0 ? false : _d;
29166
29199
  if (!user) {
@@ -29213,7 +29246,11 @@ var LOLAppLauncherMenu = function (props) {
29213
29246
  return (React__default["default"].createElement(LuiDrawerMenuSection, { title: "Launch app" }, links.map(function (link) { return (React__default["default"].createElement(LOLAuthorisedLink, __assign({ key: link.path }, link))); })));
29214
29247
  };
29215
29248
 
29249
+ /**
29250
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
29251
+ */
29216
29252
  var LOLDrawerMenuFirmSwitcher = function (props) {
29253
+ useDeprecatedWarning('LOLDrawerMenuFirmSwitcher');
29217
29254
  var minimumFilterCount = props.minimumFilterCount;
29218
29255
  var _a = useLOLUserContext(), user = _a.user, selectedFirm = _a.selectedFirm, changeFirm = _a.changeFirm;
29219
29256
  var firms = user === null || user === void 0 ? void 0 : user.firms;
@@ -29226,7 +29263,11 @@ var LOLDrawerMenuFirmSwitcher = function (props) {
29226
29263
  return (React__default["default"].createElement(LOLFirmSwitcherMenuContent, { firms: firms, selectedFirm: selectedFirm, changeFirm: changeFirm, collapsible: true, minimumFilterCount: minimumFilterCount }));
29227
29264
  };
29228
29265
 
29266
+ /**
29267
+ * Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
29268
+ */
29229
29269
  var LOLDrawerMenu = function (props) {
29270
+ useDeprecatedWarning('LOLDrawerMenu');
29230
29271
  return (React__default["default"].createElement(LuiDrawerMenu, { hasStickyHeader: props.hasStickyHeader },
29231
29272
  React__default["default"].createElement("div", { className: "LOLDrawerMenu" },
29232
29273
  React__default["default"].createElement("div", { className: "LOLDrawerMenu-contents" }, props.children),