@scottish-government/designsystem-react 0.2.0 → 0.3.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.
@@ -1,5 +1,6 @@
1
1
  declare namespace SGDS.Component {
2
2
  interface DatePicker extends React.AllHTMLAttributes<HTMLElement> {
3
+ dateSelectCallback?: Function;
3
4
  disabledDates?: string,
4
5
  error?: boolean,
5
6
  errorMessage?: string,
@@ -1,5 +1,6 @@
1
1
  declare namespace SGDS.Component {
2
2
  interface PhaseBanner extends React.AllHTMLAttributes<HTMLDivElement> {
3
+ content?: string,
3
4
  phaseName: string
4
5
  }
5
6
  }
@@ -0,0 +1,13 @@
1
+ declare namespace SGDS.Component {
2
+ interface SiteHeader extends React.AllHTMLAttributes<HTMLHeadingElement> {
3
+ logo?: {
4
+ alt: string,
5
+ href?: string,
6
+ src: string
7
+ },
8
+ navigationItems: SGDS.Component.SiteNavigation.Link[],
9
+ phaseBanner?: SGDS.Component.PhaseBanner,
10
+ siteSearch?: SGDS.Component.SiteSearch,
11
+ siteTitle?: string
12
+ }
13
+ }
@@ -8,6 +8,7 @@ declare namespace SGDS.Component {
8
8
  }
9
9
 
10
10
  interface SiteNavigation extends React.AllHTMLAttributes<HTMLElement> {
11
- items: SiteNavigation.Link[]
11
+ items: SiteNavigation.Link[],
12
+ ref?: React.RefObject<null>
12
13
  }
13
14
  }
@@ -8,14 +8,14 @@ declare namespace SGDS.Component {
8
8
  }
9
9
 
10
10
  interface Answer extends React.AllHTMLAttributes<HTMLElement> {
11
- value: string
11
+ value: number | string
12
12
  }
13
13
 
14
14
  interface Item extends React.LiHTMLAttributes<HTMLLIElement> {
15
15
  actions?: SummaryList.Action[],
16
16
  index: number,
17
17
  title: string
18
- value: string | string[]
18
+ value?: string | string[]
19
19
  }
20
20
 
21
21
  }
@@ -8,14 +8,16 @@ const react_1 = require("react");
8
8
  const date_picker_1 = __importDefault(require("@scottish-government/design-system/src/components/date-picker/date-picker"));
9
9
  const error_message_1 = __importDefault(require("../error-message/error-message"));
10
10
  const text_input_1 = __importDefault(require("../text-input/text-input"));
11
- const DatePicker = ({ className, disabledDates, error, errorMessage, hintText, id, iconPath = './', label, maxDate, minDate, multiple, name, onBlur, onChange, value, width = 'fixed-10', ...props }) => {
12
- // todo: dateSelectCallback function
11
+ const DatePicker = ({ className, dateSelectCallback, disabledDates, error, errorMessage, hintText, id, iconPath = './', label, maxDate, minDate, multiple, name, onBlur, onChange, value, width = 'fixed-10', ...props }) => {
13
12
  const ref = (0, react_1.useRef)(null);
14
13
  (0, react_1.useEffect)(() => {
15
14
  if (ref.current) {
16
- new date_picker_1.default(ref.current, { imagePath: iconPath }).init();
15
+ new date_picker_1.default(ref.current, {
16
+ dateSelectCallback,
17
+ imagePath: iconPath
18
+ }).init();
17
19
  }
18
- }, [ref, iconPath]);
20
+ }, [ref, dateSelectCallback, iconPath]);
19
21
  function handleBlur(event) {
20
22
  if (typeof onBlur === 'function') {
21
23
  onBlur(event);
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const tag_1 = __importDefault(require("../tag/tag"));
7
- const PhaseBanner = ({ children, className, phaseName, ...props }) => {
7
+ const PhaseBanner = ({ children, className, content, phaseName, ...props }) => {
8
8
  return (<div className={[
9
9
  'ds_phase-banner',
10
10
  className
@@ -13,7 +13,7 @@ const PhaseBanner = ({ children, className, phaseName, ...props }) => {
13
13
  <p className="ds_phase-banner__content">
14
14
  {phaseName && <tag_1.default title={phaseName} className="ds_phase-banner__tag"/>}
15
15
  <span className="ds_phase-banner__text">
16
- {children || "This is a new service"}
16
+ {content ? content : children || "This is a new service"}
17
17
  </span>
18
18
  </p>
19
19
  </div>
@@ -0,0 +1,68 @@
1
+ 'use client';
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const react_1 = require("react");
8
+ const icon_1 = __importDefault(require("../../common/icon"));
9
+ const phase_banner_1 = __importDefault(require("../phase-banner/phase-banner"));
10
+ const site_navigation_1 = __importDefault(require("../site-navigation/site-navigation"));
11
+ const site_search_1 = __importDefault(require("../site-search/site-search"));
12
+ // @ts-ignore
13
+ const site_navigation_2 = __importDefault(require("@scottish-government/design-system/src/components/site-navigation/site-navigation"));
14
+ const SiteHeader = ({ logo = {}, navigationItems, phaseBanner, siteSearch, siteTitle, ...props }) => {
15
+ const mobileMenuRef = (0, react_1.useRef)(null);
16
+ (0, react_1.useEffect)(() => {
17
+ if (mobileMenuRef.current) {
18
+ new site_navigation_2.default(mobileMenuRef.current).init();
19
+ }
20
+ }, [mobileMenuRef]);
21
+ return (<header className="ds_site-header" {...props}>
22
+ <div className="ds_wrapper">
23
+ <div className="ds_site-header__content">
24
+ <div className="ds_site-branding">
25
+ {logo &&
26
+ <a className="ds_site-branding__logo ds_site-branding__link" href={logo.href ? logo.href : '/'}>
27
+ <img className="ds_site-branding__logo-image" src={logo.src} alt={logo.alt}/>
28
+ </a>}
29
+
30
+ {siteTitle && <div className="ds_site-branding__title">
31
+ {siteTitle}
32
+ </div>}
33
+ </div>
34
+
35
+ {navigationItems &&
36
+ <div className="ds_site-header__controls">
37
+ <label aria-controls="mobile-navigation" className="ds_site-header__control js-toggle-menu" htmlFor="menu">
38
+ <span className="ds_site-header__control-text">Menu</span>
39
+ <icon_1.default fill className="ds_site-header__control-icon" icon="Menu" aria-hidden="true"/>
40
+ <icon_1.default fill className="ds_site-header__control-icon ds_site-header__control-icon--active-icon" icon="Close" aria-hidden="true"/>
41
+ </label>
42
+ </div>}
43
+
44
+ {navigationItems &&
45
+ <input className="ds_site-navigation__toggle" id="menu" type="checkbox"/>}
46
+ {navigationItems &&
47
+ <site_navigation_1.default id="mobile-navigation" className="ds_site-navigation--mobile" items={navigationItems} ref={mobileMenuRef}/>}
48
+
49
+ {siteSearch &&
50
+ <site_search_1.default className="ds_site-header__search" {...siteSearch}/>}
51
+ </div>
52
+ </div>
53
+
54
+ {phaseBanner &&
55
+ <phase_banner_1.default phaseName={phaseBanner.phaseName}>
56
+ {phaseBanner.content}
57
+ </phase_banner_1.default>}
58
+
59
+ {navigationItems &&
60
+ <div className="ds_site-header__navigation">
61
+ <div className="ds_wrapper">
62
+ <site_navigation_1.default items={navigationItems}/>
63
+ </div>
64
+ </div>}
65
+ </header>);
66
+ };
67
+ SiteHeader.displayName = 'SiteHeader';
68
+ exports.default = SiteHeader;
@@ -20,10 +20,7 @@ function convertToSlug(string) {
20
20
  .replace(/ +/g, "-");
21
21
  }
22
22
  const Answer = ({ value }) => {
23
- let processedValue;
24
- if (typeof value === 'string') {
25
- processedValue = escapedNewLineToLineBreakTag(value);
26
- }
23
+ const processedValue = escapedNewLineToLineBreakTag(value.toString());
27
24
  return (<q className="ds_summary-list__answer">{processedValue}</q>);
28
25
  };
29
26
  exports.Answer = Answer;
@@ -39,11 +36,11 @@ const Action = ({ describedby, href, onclick, title, }) => {
39
36
  exports.Action = Action;
40
37
  const Item = ({ actions, index = 1, title, value }) => {
41
38
  let values = [];
42
- if (typeof value === 'string') {
43
- values = [value];
39
+ if (Array.isArray(value)) {
40
+ values = value;
44
41
  }
45
42
  else {
46
- values = value;
43
+ values = [value || ''];
47
44
  }
48
45
  const describedById = `q${index + 1}-${convertToSlug(title)}`;
49
46
  return (<li className="ds_summary-list__item">
@@ -1 +1 @@
1
- {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/react/global.d.ts","../node_modules/csstype/index.d.ts","../node_modules/@types/react/index.d.ts","../@types/global.d.ts","../@types/sgds.d.ts","../@types/common/ConditionalWrapper.d.ts","../@types/common/HintText.d.ts","../@types/common/Icon.d.ts","../@types/common/ScreenReaderText.d.ts","../@types/common/WrapperTag.d.ts","../@types/components/Accordion.d.ts","../@types/components/AspectBox.d.ts","../@types/components/BackToTop.d.ts","../@types/components/Breadcrumbs.d.ts","../@types/components/Button.d.ts","../@types/components/Checkbox.d.ts","../@types/components/ConfirmationMessage.d.ts","../@types/components/ContentsNav.d.ts","../@types/components/DatePicker.d.ts","../@types/components/Details.d.ts","../@types/components/ErrorMessage.d.ts","../@types/components/ErrorSummary.d.ts","../@types/components/HideThisPage.d.ts","../@types/components/InsetText.d.ts","../@types/components/Metadata.d.ts","../@types/components/NotificationBanner.d.ts","../@types/components/NotificationPanel.d.ts","../@types/components/PageHeader.d.ts","../@types/components/Pagination.d.ts","../@types/components/PhaseBanner.d.ts","../@types/components/Question.d.ts","../@types/components/RadioButton.d.ts","../@types/components/Select.d.ts","../@types/components/SequentialNavigation.d.ts","../@types/components/SideNavigation.d.ts","../@types/components/SiteNavigation.d.ts","../@types/components/SiteSearch.d.ts","../@types/components/SkipLinks.d.ts","../@types/components/SummaryCard.d.ts","../@types/components/SummaryList.d.ts","../@types/components/Tag.d.ts","../@types/components/TaskList.d.ts","../@types/components/TextInput.d.ts","../@types/components/Textarea.d.ts","../@types/components/WarningText.d.ts","../src/common/conditional-wrapper.tsx","../src/common/hint-text.tsx","../src/icons/ArrowUpward.tsx","../src/icons/CalendarToday.tsx","../src/icons/Cancel.tsx","../src/icons/CheckCircle.tsx","../src/icons/ChevronLeft.tsx","../src/icons/ChevronRight.tsx","../src/icons/Close.tsx","../src/icons/Description.tsx","../src/icons/DoubleChevronLeft.tsx","../src/icons/DoubleChevronRight.tsx","../src/icons/Error.tsx","../src/icons/ExpandLess.tsx","../src/icons/ExpandMore.tsx","../src/icons/List.tsx","../src/icons/Menu.tsx","../src/icons/PriorityHigh.tsx","../src/icons/Search.tsx","../src/icons/index.ts","../src/common/icon.tsx","../src/common/screen-reader-text.tsx","../src/common/wrapper-tag.tsx","../src/components/accordion/accordion.tsx","../src/components/aspect-box/aspect-box.tsx","../src/components/back-to-top/back-to-top.tsx","../src/components/breadcrumbs/breadcrumbs.tsx","../src/components/button/button.tsx","../src/components/checkbox/checkbox.tsx","../src/components/confirmation-message/confirmation-message.tsx","../src/components/contents-nav/contents-nav.tsx","../src/components/error-message/error-message.tsx","../src/components/text-input/text-input.tsx","../src/components/date-picker/date-picker.tsx","../src/components/details/details.tsx","../src/components/error-summary/error-summary.tsx","../src/components/hide-this-page/hide-this-page.tsx","../src/components/inset-text/inset-text.tsx","../src/components/notification-banner/notification-banner.tsx","../src/components/notification-panel/notification-panel.tsx","../src/components/page-header/page-header.tsx","../src/components/page-metadata/page-metadata.tsx","../src/components/pagination/pagination.tsx","../src/components/tag/tag.tsx","../src/components/phase-banner/phase-banner.tsx","../src/components/question/question.tsx","../src/components/radio-button/radio-button.tsx","../src/components/select/select.tsx","../src/components/sequential-navigation/sequential-navigation.tsx","../src/components/side-navigation/side-navigation.tsx","../src/components/site-navigation/site-navigation.tsx","../src/components/site-search/site-search.tsx","../src/components/skip-links/skip-links.tsx","../src/components/summary-list/summary-list.tsx","../src/components/summary-card/summary-card.tsx","../src/components/task-list/task-list.tsx","../src/components/textarea/textarea.tsx","../src/components/warning-text/warning-text.tsx"],"fileIdsList":[[83],[81,82],[83,145],[83,148],[83,146],[146,147,148],[83,127],[146,148],[148],[83,157,158],[126],[83,146,147],[146],[169],[127,148,157],[127],[127,157],[83,153],[148,179],[126,148],[83,126,127,147,169],[83,126,127,153,157],[83,126,127,157],[128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"170d4db14678c68178ee8a3d5a990d5afb759ecb6ec44dbd885c50f6da6204f6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"d4d7d3f832882a4b2d611a7eaaa80c780c3342b5732090130fa9af4a40bd051e","impliedFormat":1},{"version":"19539467bf78201a93c2a00eeb99c728f52b4e623f14a7f20a691137e784c334","impliedFormat":1},{"version":"d488a94b787eea4a3452f0d71858584d75bbe7717c390d4f192e7220eccc9d5e","affectsGlobalScope":true,"impliedFormat":1},{"version":"098d9d86ccf5d87f66dd1aba5edc7a79ac3c743252d0fcfc165f0842bbbbc03d","affectsGlobalScope":true,"impliedFormat":1},{"version":"5c64ea2259c2aca1681436a2c3515bbb8ae5961c9e3b7586599b9ea93d5126bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"8eed310d2db0da3da23118a505eac0b6a44b1b167a3029ca3946ed816d6c6310","affectsGlobalScope":true,"impliedFormat":1},{"version":"a2e5bd2aad7954b25979f0365662427432b417fee161a0143f4b57df59a77bee","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e4b84a1a0cf7e4beddc9fd133eeb16f57be77a743ed54a22a16f2573dd1049c","affectsGlobalScope":true,"impliedFormat":1},{"version":"501194205e656e49eda24bc4cb2991153086ce84f5de2cc6298958780baf5dc0","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d9f663a357c9604e121dbb84c3197397d4cf0a70c632a7bb8ab52ecffb47fe9","affectsGlobalScope":true,"impliedFormat":1},{"version":"795a3344a3c1b9b23670d059e1d787d9b19bf4f5ba95a2bf1bf6d45f68edf879","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a44882e64a6d02f9a1f7a5df840527c880f521f8391b34139bc3e0bc1a01071","affectsGlobalScope":true,"impliedFormat":1},{"version":"859f84766ebee648a181490b4f8ebc29a3f2759f5e42bc208772eccb094c52db","affectsGlobalScope":true,"impliedFormat":1},{"version":"0cbae2256b8da5fa94a91e4588aacdeb0a76fdc4b95f130fd2a52ce14bae56ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b53d63911fa086cb2fe8dd1fd9fa37db0b0461fee2130174948fefab42b615","affectsGlobalScope":true,"impliedFormat":1},{"version":"0d1bbfc37f476714da448da21f0149cb29764dc28cc293860cd869b433bb4faa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ddd452d2f677bf5eb95e1672bc1376a0745531d256f7cceca0d0bdfedabfefa7","affectsGlobalScope":true,"impliedFormat":1},{"version":"2308590a9d9174ba57f30d6cfe8e07756948759df448de60f3f2efd31615c49b","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f933631f0519bd773d97948188b592717de588ecd462f11345d7a37c5df5176","affectsGlobalScope":true,"impliedFormat":1},{"version":"c451de37bca08e532fe1b5688fb7c057bf7d96e8045b9f583dd130be97f09024","affectsGlobalScope":true,"impliedFormat":1},{"version":"2516bb822c2a7518b292c5ba9eac441fba997a3d1c8b6df7e81a2fe806b6e477","affectsGlobalScope":true,"impliedFormat":1},{"version":"c206b97d5374757c38f36fb1b6c356b4af822ab252d21a3e90c1b467df41ba13","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4a7a40fb52c0bebeeeed3e67e40d02c576daf6d0c568433b1004fbdc281826b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2bbe44e8ca142c128f00c20f9fe339ae169d7a1ea7cb04c15b9741788663d5a","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8db02e37668444307cf5df8a0acc6c6a7439b51666c97c345abfa4b82bc21bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"98ca85bc6fcc9b784ae5e74a4645a079ea54f01f8ccce536d08d69bf35bee782","affectsGlobalScope":true,"impliedFormat":1},{"version":"53ce3d7076412b563e1c7e54e888b38b0e6045843151079e09467df5e9c5e8cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e1bd61a56720b4adb5bb5fca7a7f91ed91cb5afc70860cd652f10cb390a9321","affectsGlobalScope":true,"impliedFormat":1},{"version":"4d00e31abec9e0f86cf5930cb318852dfbdb7249e86a3135cb80d38a9872b142","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e9bd4fd9758ed505ae41d33753a0cdf46e1549c7809f50bcac83a698905b7e7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fe4b9f17452cbf2eb5723458db431366666f7a49547e309b6215cf81abd30e1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e4e533ab1cd3bb55d1a4e87645737eb9b1697a0f203d8f87ea749d33e069d44","affectsGlobalScope":true,"impliedFormat":1},{"version":"d26f2ab557b364856451c4b6fe7a13f7bb259502decf8f3c4d05df5ee9e8a495","affectsGlobalScope":true,"impliedFormat":1},{"version":"5dbaaa54ab4b7a06488588a23fad4fb1e29c6698120846421e0748cae042caf5","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fba9b8227813f40a4b1da3b0621a6875ac3a60fb03f716bad5ba35ae31200e7","affectsGlobalScope":true,"impliedFormat":1},{"version":"f79373f20bb8b8a2268e13516a67c003b5f87edd088d49478028031299567fce","affectsGlobalScope":true,"impliedFormat":1},{"version":"08a0f462dedef2590111bfa9de1d5fa956dedb8c2ca02cb5da93a831961d3f0f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9b17a7f2be7c7fe2a86ff9fc7639aed1c6572731e65ca7652560604ad92813f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"f320fba72ee15fdba35a7e57744f432f12d200d4cf4ff8ddfdfe7faee84a8cae","affectsGlobalScope":true,"impliedFormat":1},{"version":"b229c3f876810314bd63b09c469d69aeb2e02c22ca6342dfdccb5202c7874d0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"c3e2bde011912c71f039c03fed5121c804bb49fdd3845f6aef36f620e9d113ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc670c5cfaeed3b2362c9addc3b2037c2633f284f6d5d2679d9bcf043a8f21e5","affectsGlobalScope":true,"impliedFormat":1},{"version":"02e9eac7ab6147b04f14766548bdfea780b3e8b662ae95d2f6c855b34bc2de50","affectsGlobalScope":true,"impliedFormat":1},{"version":"68fe33fa82c2dd40de4f5e62d46ff7712a55e5ff11c5a00f45d46e3f4736dd32","impliedFormat":1},{"version":"81196068f2e4f59cc70e5a595b073a5798eef50054ed3807a43e457f78c84c55","impliedFormat":1},{"version":"d48a57bbd0f108b0b823e4b7e504202849565bc7ec3d6152c1edd034085e634d","impliedFormat":1},{"version":"cdc6aa72ff56d7ba4b5663b538499b7a62e28949b90998d9de586efa1f0da6c2","impliedFormat":1},{"version":"fbe469b136d2a63dd6646f4db9fd20a0450fb36669c41b7e0cbfab02e4fd92c9","impliedFormat":1},{"version":"efe87d1b6cb3254e1653596191c4a1fa9b804bdae9698688ba5baf810dbc4023","impliedFormat":1},{"version":"e0342cb84d606a3b91e9784941133d2f13bd165357a1c7dbb2b3601f974e645b","impliedFormat":1},{"version":"1470e989c2de33c13f0fcfa6a474155fe4feae743b159de0c8b083b7dc1b3873","impliedFormat":1},{"version":"857f0ef3de579385929b8000aa19144ecc5832542a4d723c8caa303a0ad8bd9a","impliedFormat":1},{"version":"e0b7f78273174809c37621c93e4afdb6dda2e4c0f40805408f4fa56514e652ae","impliedFormat":1},{"version":"3cc501ddf785b169b74f8e432bde654cd922a754750bb29a576b2a79b8f9618e","impliedFormat":1},{"version":"a971267c48315984df5712dfeb2b281a17a5548caa891a54c2502279b7e2444f","impliedFormat":1},{"version":"3d72a0e2843bcabaf41c6ef01643d13a75e06d76cb3495b48151ef96822c40fb","impliedFormat":1},{"version":"3049d785b956bb9de6260c9c1d5cc58f4226362a7fa82c01351df3531163d906","impliedFormat":1},{"version":"acb8d9e9d696eab779c15c7c8b055222af07080555be8accc9b018cd8d534cba","impliedFormat":1},{"version":"98789e27920c08833bd9ccae41894fb57127b9f4d0477b9b733834126038744b","impliedFormat":1},{"version":"312bbdca0451338ddba6e043ff7b0e00fe1f3e8297e08d043090f8e33ca01201","impliedFormat":1},{"version":"847b85d627fdf793907ca6e4fb9474b97990f3ea74fe11f3f8de11428015812d","impliedFormat":1},{"version":"d1a2785ad9fcef9d68e4a921ee246c013e486f5e1481561f39e46a37e1a5dcd1","impliedFormat":1},{"version":"3dd438650ddd09deba40546d202441b76eb13c472f1629ebe83e08a3b8b0a314","impliedFormat":1},{"version":"b67a2c276be67d499f5e7fcf4e74db7f80e64d5fa81f386ca612037c3221c52d","impliedFormat":1},{"version":"71658a25bc2c1c615459d63c9e1ecc230822572c06112d570f63b2a6352333b1","impliedFormat":1},{"version":"1c1d08289fee4149d7a9b6a71f2d8f622312c642ba23ca6c67dbc182a34a90e6","impliedFormat":1},{"version":"e1773f8ac220dbf2d375272db9402d66c2d1da29587c0247ac9f52751134d8fb","impliedFormat":1},{"version":"68ed7411ba50ebf08ff30d1adb3907f4760f0426fe150d0499ee735a7fb421c3","impliedFormat":1},{"version":"952003a41df47efd4953172b57ae292ec5b07011d3e1c6bd6dbcd03e1ea9d05c","impliedFormat":1},{"version":"a4b009a721caedee5187f0ba1b9bba106e76238727de2f915730607fa22f0df3","impliedFormat":1},{"version":"6a243a02400cfe956a2921089defaac4e24add269cdbd02d34bd89b00e8f33ed","impliedFormat":1},{"version":"ee6fac5b0e386e8d8c31dcaf02b1ebf8e5b19eaa7d36f29f5f1491a139fdb0a3","impliedFormat":1},{"version":"c7fd28b5593005835d464907b9972e0d262e0e3543e61d44faa61a68bdf7a8f5","impliedFormat":1},{"version":"70287ac8ab96b9601995d6325dca0543dd1a650a7f85db613efb5c14be6eb839","impliedFormat":1},{"version":"0416a5fe878ebedc02e06bfe19bd663ecc9c04509dea0e5e3f4bbfc62de890b8","impliedFormat":1},{"version":"7fa59462b792f41759b3582468896930915eac62083db3a13f13952a045113ba","impliedFormat":1},{"version":"18b46142bd8bf3904a662a606816d6dd3af28a78aa20bd6c442b7ddcaff5100b","impliedFormat":1},{"version":"d63b732a10871586e4e10603788a3b4beedd0e4dfcf96e3f9a62e3024d605953","impliedFormat":1},{"version":"9f7ae44732e9f7076ca40ce78ec819b129412b9bc8f82fd1979662c248a52a1f","impliedFormat":1},{"version":"168e368aa5c3570939d938550b9d509957ae2ef24894e217691280fac5a89299","impliedFormat":1},{"version":"bb075edab757fa79c11ea29b67ff72f5bf9714314f03959aca0ba98b3b9aec4c","impliedFormat":1},{"version":"fd339668c2b6c235082ada57bd3676472f27824d095441528b34a93aabf1cd14","impliedFormat":1},{"version":"ce42cccbdd55dbfea43e32448bd29252b778bba1e1a4857a3612525f37275185","impliedFormat":1},{"version":"9afd7adbfef5e5cb2c7bf1bc4699e770e3a5322860a681c413b76518f212a8a7","impliedFormat":1},{"version":"72f00bc306c9515ec674649012078c7d282b4eff1e3d5958fa3bce27d8661e6f","impliedFormat":1},{"version":"fc3ddeca79c454884293b639e446fe5dc6c0448a8a01d8593c034161a96b3b3f","impliedFormat":1},{"version":"19ac84ce5462c741d67e99fb788a5f7766bb392f938a9ea6f94534a71d4a7b7a","impliedFormat":1},{"version":"9b1eea31953c44c52a024e203a10763f2477740e6beaff8ae2e57cbad50d8512","impliedFormat":1},{"version":"1d9498d7d5307bd7d44e931893a5024d0f50d13ca16afce3917690603b063744","impliedFormat":1},{"version":"f197bb05cc35c9d3d553ef4db6255c66537928cb1767b35177829e3180224826","impliedFormat":1},{"version":"c2babf2ff10557783429d954b613d5fc8164f14ff7645c939bfd5fe1e7880b19","impliedFormat":1},{"version":"ca9fbca3a40eb55e3566e6b5c67a535faf6c0d50654f0c3d49b9b62cd84650fb","impliedFormat":1},{"version":"5b50fb0a2b3e7d124e4b7547cc1670fa3a6b0430abafa488ec82a45605917b66","impliedFormat":1},{"version":"823be4a3cafb660e571baa2a82240a584304192e83e9d473b34f154235cb9870","impliedFormat":1},{"version":"23425ab5f8c466058835f3b85605196321e479bc39aa121164de50013c603167","impliedFormat":1},{"version":"d8a8326bd7f6c4ec38d06566169e7ad954a8e9cca2faadd1996e9fa6e89653ce","impliedFormat":1},{"version":"1ba2a777ae44b18fa7dc8368998a43561ca2b957dd228105f6a02917e0ee682e","impliedFormat":1},{"version":"77236e6487c2775625ceb2878be7a55885535f4bb6b219731b58f484414d8783","impliedFormat":1},{"version":"6f17fe396319d1eff09115d2c2729a1a42303547d441c6ef4a896396f5d70fdf","impliedFormat":1},{"version":"a1f4efb52cf44b460191d725e11839224bbb3d3ddfa66d72f47bd786d5dedb58","impliedFormat":1},{"version":"651fdffc4aca1129ae4a70228d3171e8acb637307bb6a85b791cd68f33416aaf","impliedFormat":1}],"root":[[84,144],[146,183]],"options":{"allowJs":false,"esModuleInterop":true,"jsx":1,"module":199,"noFallthroughCasesInSwitch":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","strict":true,"target":99},"referencedMap":[[84,1],[83,2],[146,3],[149,4],[150,1],[151,5],[153,6],[154,7],[155,8],[156,9],[159,10],[161,11],[162,1],[164,12],[165,9],[168,13],[170,14],[171,15],[172,16],[173,17],[175,1],[177,18],[180,19],[179,20],[181,21],[158,22],[182,23],[128,1],[129,1],[130,1],[131,1],[132,1],[133,1],[134,1],[135,1],[136,1],[137,1],[138,1],[139,1],[140,1],[141,1],[142,1],[143,1],[144,1],[145,24]],"version":"5.8.3"}
1
+ {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/react/global.d.ts","../node_modules/csstype/index.d.ts","../node_modules/@types/react/index.d.ts","../@types/global.d.ts","../@types/sgds.d.ts","../@types/common/ConditionalWrapper.d.ts","../@types/common/HintText.d.ts","../@types/common/Icon.d.ts","../@types/common/ScreenReaderText.d.ts","../@types/common/WrapperTag.d.ts","../@types/components/Accordion.d.ts","../@types/components/AspectBox.d.ts","../@types/components/BackToTop.d.ts","../@types/components/Breadcrumbs.d.ts","../@types/components/Button.d.ts","../@types/components/Checkbox.d.ts","../@types/components/ConfirmationMessage.d.ts","../@types/components/ContentsNav.d.ts","../@types/components/DatePicker.d.ts","../@types/components/Details.d.ts","../@types/components/ErrorMessage.d.ts","../@types/components/ErrorSummary.d.ts","../@types/components/HideThisPage.d.ts","../@types/components/InsetText.d.ts","../@types/components/Metadata.d.ts","../@types/components/NotificationBanner.d.ts","../@types/components/NotificationPanel.d.ts","../@types/components/PageHeader.d.ts","../@types/components/Pagination.d.ts","../@types/components/PhaseBanner.d.ts","../@types/components/Question.d.ts","../@types/components/RadioButton.d.ts","../@types/components/Select.d.ts","../@types/components/SequentialNavigation.d.ts","../@types/components/SideNavigation.d.ts","../@types/components/SiteHeader.d.ts","../@types/components/SiteNavigation.d.ts","../@types/components/SiteSearch.d.ts","../@types/components/SkipLinks.d.ts","../@types/components/SummaryCard.d.ts","../@types/components/SummaryList.d.ts","../@types/components/Tag.d.ts","../@types/components/TaskList.d.ts","../@types/components/TextInput.d.ts","../@types/components/Textarea.d.ts","../@types/components/WarningText.d.ts","../src/common/conditional-wrapper.tsx","../src/common/hint-text.tsx","../src/icons/ArrowUpward.tsx","../src/icons/CalendarToday.tsx","../src/icons/Cancel.tsx","../src/icons/CheckCircle.tsx","../src/icons/ChevronLeft.tsx","../src/icons/ChevronRight.tsx","../src/icons/Close.tsx","../src/icons/Description.tsx","../src/icons/DoubleChevronLeft.tsx","../src/icons/DoubleChevronRight.tsx","../src/icons/Error.tsx","../src/icons/ExpandLess.tsx","../src/icons/ExpandMore.tsx","../src/icons/List.tsx","../src/icons/Menu.tsx","../src/icons/PriorityHigh.tsx","../src/icons/Search.tsx","../src/icons/index.ts","../src/common/icon.tsx","../src/common/screen-reader-text.tsx","../src/common/wrapper-tag.tsx","../src/components/accordion/accordion.tsx","../src/components/aspect-box/aspect-box.tsx","../src/components/back-to-top/back-to-top.tsx","../src/components/breadcrumbs/breadcrumbs.tsx","../src/components/button/button.tsx","../src/components/checkbox/checkbox.tsx","../src/components/confirmation-message/confirmation-message.tsx","../src/components/contents-nav/contents-nav.tsx","../src/components/error-message/error-message.tsx","../src/components/text-input/text-input.tsx","../src/components/date-picker/date-picker.tsx","../src/components/details/details.tsx","../src/components/error-summary/error-summary.tsx","../src/components/hide-this-page/hide-this-page.tsx","../src/components/inset-text/inset-text.tsx","../src/components/notification-banner/notification-banner.tsx","../src/components/notification-panel/notification-panel.tsx","../src/components/page-header/page-header.tsx","../src/components/page-metadata/page-metadata.tsx","../src/components/pagination/pagination.tsx","../src/components/tag/tag.tsx","../src/components/phase-banner/phase-banner.tsx","../src/components/question/question.tsx","../src/components/radio-button/radio-button.tsx","../src/components/select/select.tsx","../src/components/sequential-navigation/sequential-navigation.tsx","../src/components/side-navigation/side-navigation.tsx","../src/components/site-navigation/site-navigation.tsx","../src/components/site-search/site-search.tsx","../src/components/site-header/site-header.tsx","../src/components/skip-links/skip-links.tsx","../src/components/summary-list/summary-list.tsx","../src/components/summary-card/summary-card.tsx","../src/components/task-list/task-list.tsx","../src/components/textarea/textarea.tsx","../src/components/warning-text/warning-text.tsx"],"fileIdsList":[[83],[81,82],[83,146],[83,149],[83,147],[147,148,149],[83,128],[147,149],[149],[83,158,159],[127],[83,147,148],[147],[170],[128,149,158],[128],[128,158],[83,147,171,177,178],[83,154],[149,181],[127,149],[83,127,128,148,170],[83,127,128,154,158],[83,127,128,158],[129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"170d4db14678c68178ee8a3d5a990d5afb759ecb6ec44dbd885c50f6da6204f6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"d4d7d3f832882a4b2d611a7eaaa80c780c3342b5732090130fa9af4a40bd051e","impliedFormat":1},{"version":"19539467bf78201a93c2a00eeb99c728f52b4e623f14a7f20a691137e784c334","impliedFormat":1},{"version":"d488a94b787eea4a3452f0d71858584d75bbe7717c390d4f192e7220eccc9d5e","affectsGlobalScope":true,"impliedFormat":1},{"version":"098d9d86ccf5d87f66dd1aba5edc7a79ac3c743252d0fcfc165f0842bbbbc03d","affectsGlobalScope":true,"impliedFormat":1},{"version":"5c64ea2259c2aca1681436a2c3515bbb8ae5961c9e3b7586599b9ea93d5126bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"8eed310d2db0da3da23118a505eac0b6a44b1b167a3029ca3946ed816d6c6310","affectsGlobalScope":true,"impliedFormat":1},{"version":"a2e5bd2aad7954b25979f0365662427432b417fee161a0143f4b57df59a77bee","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e4b84a1a0cf7e4beddc9fd133eeb16f57be77a743ed54a22a16f2573dd1049c","affectsGlobalScope":true,"impliedFormat":1},{"version":"501194205e656e49eda24bc4cb2991153086ce84f5de2cc6298958780baf5dc0","affectsGlobalScope":true,"impliedFormat":1},{"version":"7d9f663a357c9604e121dbb84c3197397d4cf0a70c632a7bb8ab52ecffb47fe9","affectsGlobalScope":true,"impliedFormat":1},{"version":"795a3344a3c1b9b23670d059e1d787d9b19bf4f5ba95a2bf1bf6d45f68edf879","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a44882e64a6d02f9a1f7a5df840527c880f521f8391b34139bc3e0bc1a01071","affectsGlobalScope":true,"impliedFormat":1},{"version":"859f84766ebee648a181490b4f8ebc29a3f2759f5e42bc208772eccb094c52db","affectsGlobalScope":true,"impliedFormat":1},{"version":"0cbae2256b8da5fa94a91e4588aacdeb0a76fdc4b95f130fd2a52ce14bae56ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b53d63911fa086cb2fe8dd1fd9fa37db0b0461fee2130174948fefab42b615","affectsGlobalScope":true,"impliedFormat":1},{"version":"0d1bbfc37f476714da448da21f0149cb29764dc28cc293860cd869b433bb4faa","affectsGlobalScope":true,"impliedFormat":1},{"version":"3b284bb0522cbc9d24e506e3fee0da98b27951f88051a6195f98d9fb22b59bd0","affectsGlobalScope":true,"impliedFormat":1},{"version":"2308590a9d9174ba57f30d6cfe8e07756948759df448de60f3f2efd31615c49b","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f933631f0519bd773d97948188b592717de588ecd462f11345d7a37c5df5176","affectsGlobalScope":true,"impliedFormat":1},{"version":"c451de37bca08e532fe1b5688fb7c057bf7d96e8045b9f583dd130be97f09024","affectsGlobalScope":true,"impliedFormat":1},{"version":"2516bb822c2a7518b292c5ba9eac441fba997a3d1c8b6df7e81a2fe806b6e477","affectsGlobalScope":true,"impliedFormat":1},{"version":"c206b97d5374757c38f36fb1b6c356b4af822ab252d21a3e90c1b467df41ba13","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4a7a40fb52c0bebeeeed3e67e40d02c576daf6d0c568433b1004fbdc281826b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2bbe44e8ca142c128f00c20f9fe339ae169d7a1ea7cb04c15b9741788663d5a","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8db02e37668444307cf5df8a0acc6c6a7439b51666c97c345abfa4b82bc21bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"98ca85bc6fcc9b784ae5e74a4645a079ea54f01f8ccce536d08d69bf35bee782","affectsGlobalScope":true,"impliedFormat":1},{"version":"53ce3d7076412b563e1c7e54e888b38b0e6045843151079e09467df5e9c5e8cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4ba6f778f0044c8f53d0fc059d1f67892d6ae5810e38e59462b727eb5b72ad6","affectsGlobalScope":true,"impliedFormat":1},{"version":"4d00e31abec9e0f86cf5930cb318852dfbdb7249e86a3135cb80d38a9872b142","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e9bd4fd9758ed505ae41d33753a0cdf46e1549c7809f50bcac83a698905b7e7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fe4b9f17452cbf2eb5723458db431366666f7a49547e309b6215cf81abd30e1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e4e533ab1cd3bb55d1a4e87645737eb9b1697a0f203d8f87ea749d33e069d44","affectsGlobalScope":true,"impliedFormat":1},{"version":"d26f2ab557b364856451c4b6fe7a13f7bb259502decf8f3c4d05df5ee9e8a495","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a910368c69138f6efe186997d42428a8dee0a17d7c6e318a77c9f5eef46ba35","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebf92bba7da776647db0b137a4dd1bee2a18711b7dd71aad6aa389359d5ed810","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fba9b8227813f40a4b1da3b0621a6875ac3a60fb03f716bad5ba35ae31200e7","affectsGlobalScope":true,"impliedFormat":1},{"version":"f79373f20bb8b8a2268e13516a67c003b5f87edd088d49478028031299567fce","affectsGlobalScope":true,"impliedFormat":1},{"version":"08a0f462dedef2590111bfa9de1d5fa956dedb8c2ca02cb5da93a831961d3f0f","affectsGlobalScope":true,"impliedFormat":1},{"version":"477a87953ee685333f2cf710e9ff782ec97cdb3a26dbe551b1915949db847ffe","affectsGlobalScope":true,"impliedFormat":1},{"version":"f320fba72ee15fdba35a7e57744f432f12d200d4cf4ff8ddfdfe7faee84a8cae","affectsGlobalScope":true,"impliedFormat":1},{"version":"b229c3f876810314bd63b09c469d69aeb2e02c22ca6342dfdccb5202c7874d0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"c3e2bde011912c71f039c03fed5121c804bb49fdd3845f6aef36f620e9d113ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc670c5cfaeed3b2362c9addc3b2037c2633f284f6d5d2679d9bcf043a8f21e5","affectsGlobalScope":true,"impliedFormat":1},{"version":"02e9eac7ab6147b04f14766548bdfea780b3e8b662ae95d2f6c855b34bc2de50","affectsGlobalScope":true,"impliedFormat":1},{"version":"68fe33fa82c2dd40de4f5e62d46ff7712a55e5ff11c5a00f45d46e3f4736dd32","impliedFormat":1},{"version":"81196068f2e4f59cc70e5a595b073a5798eef50054ed3807a43e457f78c84c55","impliedFormat":1},{"version":"d48a57bbd0f108b0b823e4b7e504202849565bc7ec3d6152c1edd034085e634d","impliedFormat":1},{"version":"cdc6aa72ff56d7ba4b5663b538499b7a62e28949b90998d9de586efa1f0da6c2","impliedFormat":1},{"version":"fbe469b136d2a63dd6646f4db9fd20a0450fb36669c41b7e0cbfab02e4fd92c9","impliedFormat":1},{"version":"efe87d1b6cb3254e1653596191c4a1fa9b804bdae9698688ba5baf810dbc4023","impliedFormat":1},{"version":"e0342cb84d606a3b91e9784941133d2f13bd165357a1c7dbb2b3601f974e645b","impliedFormat":1},{"version":"1470e989c2de33c13f0fcfa6a474155fe4feae743b159de0c8b083b7dc1b3873","impliedFormat":1},{"version":"857f0ef3de579385929b8000aa19144ecc5832542a4d723c8caa303a0ad8bd9a","impliedFormat":1},{"version":"e0b7f78273174809c37621c93e4afdb6dda2e4c0f40805408f4fa56514e652ae","impliedFormat":1},{"version":"3cc501ddf785b169b74f8e432bde654cd922a754750bb29a576b2a79b8f9618e","impliedFormat":1},{"version":"a971267c48315984df5712dfeb2b281a17a5548caa891a54c2502279b7e2444f","impliedFormat":1},{"version":"3d72a0e2843bcabaf41c6ef01643d13a75e06d76cb3495b48151ef96822c40fb","impliedFormat":1},{"version":"3049d785b956bb9de6260c9c1d5cc58f4226362a7fa82c01351df3531163d906","impliedFormat":1},{"version":"acb8d9e9d696eab779c15c7c8b055222af07080555be8accc9b018cd8d534cba","impliedFormat":1},{"version":"98789e27920c08833bd9ccae41894fb57127b9f4d0477b9b733834126038744b","impliedFormat":1},{"version":"312bbdca0451338ddba6e043ff7b0e00fe1f3e8297e08d043090f8e33ca01201","impliedFormat":1},{"version":"847b85d627fdf793907ca6e4fb9474b97990f3ea74fe11f3f8de11428015812d","impliedFormat":1},{"version":"d1a2785ad9fcef9d68e4a921ee246c013e486f5e1481561f39e46a37e1a5dcd1","impliedFormat":1},{"version":"3dd438650ddd09deba40546d202441b76eb13c472f1629ebe83e08a3b8b0a314","impliedFormat":1},{"version":"b67a2c276be67d499f5e7fcf4e74db7f80e64d5fa81f386ca612037c3221c52d","impliedFormat":1},{"version":"71658a25bc2c1c615459d63c9e1ecc230822572c06112d570f63b2a6352333b1","impliedFormat":1},{"version":"1c1d08289fee4149d7a9b6a71f2d8f622312c642ba23ca6c67dbc182a34a90e6","impliedFormat":1},{"version":"e1773f8ac220dbf2d375272db9402d66c2d1da29587c0247ac9f52751134d8fb","impliedFormat":1},{"version":"68ed7411ba50ebf08ff30d1adb3907f4760f0426fe150d0499ee735a7fb421c3","impliedFormat":1},{"version":"952003a41df47efd4953172b57ae292ec5b07011d3e1c6bd6dbcd03e1ea9d05c","impliedFormat":1},{"version":"a4b009a721caedee5187f0ba1b9bba106e76238727de2f915730607fa22f0df3","impliedFormat":1},{"version":"6a243a02400cfe956a2921089defaac4e24add269cdbd02d34bd89b00e8f33ed","impliedFormat":1},{"version":"11f94491d7a64a591feb9634d78f2897e3d31f235b4f8d7d9e6c6de8f8c096fa","impliedFormat":1},{"version":"c7fd28b5593005835d464907b9972e0d262e0e3543e61d44faa61a68bdf7a8f5","impliedFormat":1},{"version":"70287ac8ab96b9601995d6325dca0543dd1a650a7f85db613efb5c14be6eb839","impliedFormat":1},{"version":"0416a5fe878ebedc02e06bfe19bd663ecc9c04509dea0e5e3f4bbfc62de890b8","impliedFormat":1},{"version":"7fa59462b792f41759b3582468896930915eac62083db3a13f13952a045113ba","impliedFormat":1},{"version":"28cf5db0a47813c1b66462e5e2946f38c0131cbf7e5da1c5a04e4d1c8ab5ce38","impliedFormat":1},{"version":"d63b732a10871586e4e10603788a3b4beedd0e4dfcf96e3f9a62e3024d605953","impliedFormat":1},{"version":"9f7ae44732e9f7076ca40ce78ec819b129412b9bc8f82fd1979662c248a52a1f","impliedFormat":1},{"version":"168e368aa5c3570939d938550b9d509957ae2ef24894e217691280fac5a89299","impliedFormat":1},{"version":"bb075edab757fa79c11ea29b67ff72f5bf9714314f03959aca0ba98b3b9aec4c","impliedFormat":1},{"version":"fd339668c2b6c235082ada57bd3676472f27824d095441528b34a93aabf1cd14","impliedFormat":1},{"version":"ce42cccbdd55dbfea43e32448bd29252b778bba1e1a4857a3612525f37275185","impliedFormat":1},{"version":"9afd7adbfef5e5cb2c7bf1bc4699e770e3a5322860a681c413b76518f212a8a7","impliedFormat":1},{"version":"72f00bc306c9515ec674649012078c7d282b4eff1e3d5958fa3bce27d8661e6f","impliedFormat":1},{"version":"fc3ddeca79c454884293b639e446fe5dc6c0448a8a01d8593c034161a96b3b3f","impliedFormat":1},{"version":"19ac84ce5462c741d67e99fb788a5f7766bb392f938a9ea6f94534a71d4a7b7a","impliedFormat":1},{"version":"38a43d0cd7a8d198f9a38bb227d18c9d0f0c20e5556e527130de060842eeb955","impliedFormat":1},{"version":"1d9498d7d5307bd7d44e931893a5024d0f50d13ca16afce3917690603b063744","impliedFormat":1},{"version":"f197bb05cc35c9d3d553ef4db6255c66537928cb1767b35177829e3180224826","impliedFormat":1},{"version":"c2babf2ff10557783429d954b613d5fc8164f14ff7645c939bfd5fe1e7880b19","impliedFormat":1},{"version":"ca9fbca3a40eb55e3566e6b5c67a535faf6c0d50654f0c3d49b9b62cd84650fb","impliedFormat":1},{"version":"5b50fb0a2b3e7d124e4b7547cc1670fa3a6b0430abafa488ec82a45605917b66","impliedFormat":1},{"version":"823be4a3cafb660e571baa2a82240a584304192e83e9d473b34f154235cb9870","impliedFormat":1},{"version":"23425ab5f8c466058835f3b85605196321e479bc39aa121164de50013c603167","impliedFormat":1},{"version":"ba59f76f9d6a9bc784c20518b0fcacc5a4c98de8db7b7c08afd774acb05c59c0","impliedFormat":1},{"version":"d8a8326bd7f6c4ec38d06566169e7ad954a8e9cca2faadd1996e9fa6e89653ce","impliedFormat":1},{"version":"a1918e56b471693bfa777ed8b29b63d4fd391498cfa19576f2274588c3164116","impliedFormat":1},{"version":"77236e6487c2775625ceb2878be7a55885535f4bb6b219731b58f484414d8783","impliedFormat":1},{"version":"6f17fe396319d1eff09115d2c2729a1a42303547d441c6ef4a896396f5d70fdf","impliedFormat":1},{"version":"a1f4efb52cf44b460191d725e11839224bbb3d3ddfa66d72f47bd786d5dedb58","impliedFormat":1},{"version":"651fdffc4aca1129ae4a70228d3171e8acb637307bb6a85b791cd68f33416aaf","impliedFormat":1}],"root":[[84,145],[147,185]],"options":{"allowJs":false,"esModuleInterop":true,"jsx":1,"module":199,"noFallthroughCasesInSwitch":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","strict":true,"target":99},"referencedMap":[[84,1],[83,2],[147,3],[150,4],[151,1],[152,5],[154,6],[155,7],[156,8],[157,9],[160,10],[162,11],[163,1],[165,12],[166,9],[169,13],[171,14],[172,15],[173,16],[174,17],[176,1],[179,18],[178,19],[182,20],[181,21],[183,22],[159,23],[184,24],[129,1],[130,1],[131,1],[132,1],[133,1],[134,1],[135,1],[136,1],[137,1],[138,1],[139,1],[140,1],[141,1],[142,1],[143,1],[144,1],[145,1],[146,25]],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scottish-government/designsystem-react",
3
3
  "description": "A React/JSX implementation of the Scottish Government Design System",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Scottish Government Digital Design System team",
@@ -30,8 +30,6 @@ test('accordion renders correctly', () => {
30
30
  </Accordion>
31
31
  );
32
32
 
33
- // console.log(items.map(item => { console.log(item.id); return item.title; }));
34
-
35
33
  const accordion = screen.getByTestId(id);
36
34
  const openAllButton = document.querySelector('.ds_accordion__open-all');
37
35
  const accordionItems = document.querySelectorAll('.ds_accordion-item');
@@ -76,7 +76,7 @@ export const CheckboxGroup: React.FC<SGDS.Component.Checkbox.Group> = ({
76
76
  if (ref.current) {
77
77
  new DSCheckboxes(ref.current).init();
78
78
  }
79
- }, [ref])
79
+ }, [ref]);
80
80
 
81
81
  return (
82
82
  <div
@@ -6,6 +6,7 @@ import TextInput from '../text-input/text-input';
6
6
 
7
7
  const DatePicker: React.FC<SGDS.Component.DatePicker> = ({
8
8
  className,
9
+ dateSelectCallback,
9
10
  disabledDates,
10
11
  error,
11
12
  errorMessage,
@@ -23,15 +24,16 @@ const DatePicker: React.FC<SGDS.Component.DatePicker> = ({
23
24
  width = 'fixed-10',
24
25
  ...props
25
26
  }) => {
26
- // todo: dateSelectCallback function
27
-
28
27
  const ref = useRef(null);
29
28
 
30
29
  useEffect(() => {
31
30
  if (ref.current) {
32
- new DSDatePicker(ref.current, {imagePath: iconPath}).init();
31
+ new DSDatePicker(ref.current, {
32
+ dateSelectCallback,
33
+ imagePath: iconPath
34
+ }).init();
33
35
  }
34
- }, [ref, iconPath]);
36
+ }, [ref, dateSelectCallback, iconPath]);
35
37
 
36
38
  function handleBlur(event: React.FocusEvent) {
37
39
  if (typeof onBlur === 'function') {
@@ -3,6 +3,7 @@ import Tag from "../tag/tag";
3
3
  const PhaseBanner: React.FC<SGDS.Component.PhaseBanner> = ({
4
4
  children,
5
5
  className,
6
+ content,
6
7
  phaseName,
7
8
  ...props
8
9
  }) => {
@@ -18,7 +19,7 @@ const PhaseBanner: React.FC<SGDS.Component.PhaseBanner> = ({
18
19
  <p className="ds_phase-banner__content">
19
20
  {phaseName && <Tag title={phaseName} className="ds_phase-banner__tag" />}
20
21
  <span className="ds_phase-banner__text">
21
- {children || "This is a new service"}
22
+ {content ? content : children || "This is a new service"}
22
23
  </span>
23
24
  </p>
24
25
  </div>
@@ -0,0 +1,251 @@
1
+ import { test, expect } from 'vitest';
2
+ import { render, screen, within } from '@testing-library/react';
3
+ import SiteHeader from './site-header';
4
+ import SiteNavigation from '../site-navigation/site-navigation';
5
+ import SiteSearch from '../site-search/site-search';
6
+ import PhaseBanner from '../phase-banner/phase-banner';
7
+
8
+ test('site header renders correctly (maximal, testing markup structure)', () => {
9
+ render(
10
+ <SiteHeader
11
+ logo={{
12
+ alt: 'The Scottish Government',
13
+ src: './scottish-government.svg'
14
+ }}
15
+ navigationItems={[
16
+ { title: 'About', href: '#about' },
17
+ { title: 'Get started', href: '#get-started' },
18
+ { title: 'Styles', href: '#styles' },
19
+ { title: 'Components', href: '#components' },
20
+ { title: 'Patterns', href: '#patterns' },
21
+ { title: 'Guidance', href: '#guidance' },
22
+ ]}
23
+ phaseBanner={{
24
+ phaseName: 'Beta'
25
+ }}
26
+ siteSearch
27
+ siteTitle="Design System React"
28
+ />
29
+ );
30
+
31
+ const siteHeader = screen.getByRole('banner');
32
+ const siteHeaderContent = siteHeader.querySelector('.ds_site-header__content');
33
+ const siteHeaderContentWrapper = siteHeaderContent?.parentElement;
34
+ const siteHeaderBranding = siteHeader.querySelector('.ds_site-branding');
35
+ const siteHeaderControls = siteHeader.querySelector('.ds_site-header__controls');
36
+ const siteHeaderNavToggle = siteHeader.querySelector('.ds_site-navigation__toggle');
37
+ const siteHeaderNavigationMobile = within(siteHeader).getAllByRole('navigation')[0];
38
+ const siteHeaderNavigationDesktop = within(siteHeader).getAllByRole('navigation')[1];
39
+ const siteHeaderPhaseBanner = siteHeader.querySelector('.ds_phase-banner');
40
+ const siteHeaderSearch = within(siteHeader).getByRole('search').parentNode;
41
+
42
+ expect(siteHeader).toHaveClass('ds_site-header');
43
+ expect(siteHeaderContentWrapper).toHaveClass('ds_wrapper');
44
+
45
+ expect(siteHeaderBranding?.parentNode).toEqual(siteHeaderContent);
46
+ expect(siteHeaderControls?.parentNode).toEqual(siteHeaderContent);
47
+ expect(siteHeaderNavToggle?.parentNode).toEqual(siteHeaderContent);
48
+ expect(siteHeaderNavigationMobile.parentNode).toEqual(siteHeaderContent);
49
+ expect(siteHeaderSearch?.parentNode).toEqual(siteHeaderContent);
50
+
51
+ expect(siteHeaderBranding?.previousSibling).toBeNull();
52
+ expect(siteHeaderControls?.previousSibling).toEqual(siteHeaderBranding);
53
+ expect(siteHeaderNavToggle?.previousSibling).toEqual(siteHeaderControls);
54
+ expect(siteHeaderNavigationMobile.previousSibling).toEqual(siteHeaderNavToggle);
55
+ expect(siteHeaderSearch?.previousSibling).toEqual(siteHeaderNavigationMobile);
56
+
57
+ expect(siteHeaderNavigationDesktop.parentNode).toHaveClass('ds_wrapper');
58
+ expect(siteHeaderNavigationDesktop?.parentNode?.parentNode).toHaveClass('ds_site-header__navigation');
59
+
60
+ expect(siteHeaderNavigationDesktop?.parentNode?.parentNode?.previousSibling).toEqual(siteHeaderPhaseBanner);
61
+
62
+ expect(siteHeaderPhaseBanner?.previousSibling).toEqual(siteHeaderContentWrapper);
63
+
64
+ expect(siteHeaderPhaseBanner?.parentNode).toEqual(siteHeader);
65
+ expect(siteHeaderNavigationDesktop?.parentNode?.parentNode?.parentNode).toEqual(siteHeader);
66
+ expect(siteHeaderContentWrapper?.parentNode).toEqual(siteHeader);
67
+ });
68
+
69
+ test('site header branding: logo only, default URL', () => {
70
+ const logo = {
71
+ alt: 'The Scottish Government',
72
+ src: './scottish-government.svg'
73
+ };
74
+
75
+ render(
76
+ <SiteHeader
77
+ logo={logo}
78
+ />
79
+ );
80
+
81
+ const siteHeader = screen.getByRole('banner');
82
+ const siteHeaderBranding = siteHeader.querySelector('.ds_site-branding');
83
+ const siteHeaderLogoLink = within(siteHeader).getByRole('link');
84
+ const siteHeaderLogoImg = within(siteHeader).getByRole('img');
85
+
86
+ expect(siteHeaderLogoLink).toHaveClass('ds_site-branding__logo', 'ds_site-branding__link');
87
+ expect(siteHeaderLogoLink).toHaveAttribute('href', '/');
88
+
89
+ expect(siteHeaderLogoImg).toHaveClass('ds_site-branding__logo-image');
90
+ expect(siteHeaderLogoImg).toHaveAttribute('src', logo.src);
91
+ expect(siteHeaderLogoImg).toHaveAttribute('alt', logo.alt);
92
+
93
+ expect(siteHeaderLogoImg.parentNode).toEqual(siteHeaderLogoLink);
94
+ expect(siteHeaderLogoLink.parentNode).toEqual(siteHeaderBranding);
95
+ });
96
+
97
+ test('site header branding: logo and site title', () => {
98
+ const logo = {
99
+ alt: 'The Scottish Government',
100
+ src: './scottish-government.svg'
101
+ };
102
+ const siteTitleContent = 'Design System React';
103
+
104
+ render(
105
+ <SiteHeader
106
+ logo={logo}
107
+ siteTitle={siteTitleContent}
108
+ />
109
+ );
110
+
111
+ const siteHeader = screen.getByRole('banner');
112
+ const siteHeaderBranding = siteHeader.querySelector('.ds_site-branding');
113
+ const siteHeaderLogoLink = within(siteHeader).getByRole('link');
114
+ const siteTitle = siteHeader.querySelector('.ds_site-branding__title');
115
+
116
+ expect(siteTitle?.tagName).toEqual('DIV');
117
+ expect(siteTitle?.textContent).toEqual(siteTitleContent);
118
+ expect(siteTitle?.parentNode).toEqual(siteHeaderBranding);
119
+ expect(siteTitle?.previousSibling).toEqual(siteHeaderLogoLink);
120
+ });
121
+
122
+ test('site header branding: custom link URL', () => {
123
+ const logo = {
124
+ alt: 'The Scottish Government',
125
+ href: '/home.aspx',
126
+ src: './scottish-government.svg'
127
+ };
128
+
129
+ render(
130
+ <SiteHeader
131
+ logo={logo}
132
+ />
133
+ );
134
+
135
+ const siteHeader = screen.getByRole('banner');
136
+ const siteHeaderLogoLink = within(siteHeader).getByRole('link');
137
+
138
+ expect(siteHeaderLogoLink).toHaveAttribute('href', logo.href);
139
+ });
140
+
141
+ test('site header with site search', () => {
142
+ const searchProps = {
143
+ action: 'apple',
144
+ autocompleteEndpoint: 'banana',
145
+ autocompleteSuggestionMappingFunction: 'cucumber',
146
+ className: 'durian',
147
+ id: 'eggplant',
148
+ method: 'POST',
149
+ name: 'guava',
150
+ placeholder: 'haw'
151
+ };
152
+
153
+ render(
154
+ <>
155
+ <SiteHeader siteSearch={searchProps} />
156
+ <SiteSearch data-testid="sitesearch" {...searchProps} />
157
+ </>
158
+ );
159
+
160
+ const siteHeader = screen.getByRole('banner');
161
+ const siteHeaderSearch = within(siteHeader).getByRole('search')
162
+ const siteSearchReference = screen.getByTestId('sitesearch');
163
+
164
+ expect(siteHeaderSearch.outerHTML).toEqual(siteSearchReference.innerHTML);
165
+ });
166
+
167
+ test('site header with site navigation', () => {
168
+ const navigationItems = [
169
+ { title: 'About', href: '#about' },
170
+ { title: 'Get started', href: '#get-started' },
171
+ { title: 'Styles', href: '#styles' },
172
+ { title: 'Components', href: '#components' },
173
+ { title: 'Patterns', href: '#patterns' },
174
+ { title: 'Guidance', href: '#guidance' },
175
+ ];
176
+
177
+ render(
178
+ <>
179
+ <SiteHeader navigationItems={navigationItems} />
180
+ <SiteNavigation data-testid="sitenavigation" items={navigationItems} />
181
+ </>
182
+ );
183
+
184
+ const siteHeader = screen.getByRole('banner');
185
+ const siteHeaderNavigationMobile = within(siteHeader).getAllByRole('navigation')[0];
186
+ const siteHeaderNavigationDesktop = within(siteHeader).getAllByRole('navigation')[1];
187
+ const siteNavigationReference = screen.getByTestId('sitenavigation');
188
+ const siteNavControl = within(siteHeader).getByRole('checkbox');
189
+ const siteNavControlLabel = document.querySelector(`[for="${siteNavControl.id}"]`);
190
+ const siteNavControls = siteNavControlLabel?.parentElement;
191
+
192
+ expect(siteHeaderNavigationMobile).toHaveClass('ds_site-navigation', 'ds_site-navigation--mobile');
193
+ expect(siteHeaderNavigationMobile).toHaveAttribute('id', 'mobile-navigation');
194
+
195
+ expect(siteHeaderNavigationDesktop).toHaveClass('ds_site-navigation');
196
+ expect(siteHeaderNavigationDesktop).not.toHaveAttribute('id', 'mobile-navigation');
197
+
198
+ expect(siteHeaderNavigationMobile.innerHTML).toEqual(siteNavigationReference.innerHTML);
199
+ expect(siteHeaderNavigationDesktop.innerHTML).toEqual(siteNavigationReference.innerHTML);
200
+
201
+ expect(siteNavControl).toHaveClass('ds_site-navigation__toggle');
202
+ expect(siteNavControl).toHaveAttribute('id', 'menu');
203
+
204
+ expect(siteNavControlLabel).toHaveClass('ds_site-header__control', 'js-toggle-menu');
205
+ expect(siteNavControlLabel).toHaveAttribute('aria-controls', siteHeaderNavigationMobile.id);
206
+ expect(siteNavControlLabel?.textContent).toEqual('Menu');
207
+ expect(siteNavControlLabel?.tagName).toEqual('LABEL');
208
+ // todo: check for icons and structure
209
+
210
+ expect(siteNavControls).toHaveClass('ds_site-header__controls');
211
+ expect(siteNavControls?.tagName).toEqual('DIV');
212
+ });
213
+
214
+ test('site header with phase banner', () => {
215
+ const phaseBannerProps = {
216
+ content: 'My content',
217
+ phaseName: 'Beta'
218
+ };
219
+
220
+ render(
221
+ <>
222
+ <SiteHeader phaseBanner={phaseBannerProps} />
223
+ <PhaseBanner data-testid="phasebanner" {...phaseBannerProps} />
224
+ </>
225
+ );
226
+
227
+ const siteHeader = screen.getByRole('banner');
228
+ const siteHeaderPhaseBanner = siteHeader.querySelector('.ds_phase-banner');
229
+ const phaseBannerReference = screen.getByTestId('phasebanner');
230
+
231
+ expect(siteHeaderPhaseBanner?.tagName).toEqual('DIV');
232
+ expect(siteHeaderPhaseBanner?.innerHTML).toEqual(phaseBannerReference.innerHTML);
233
+ });
234
+
235
+ test('passing additional props', () => {
236
+ render(
237
+ <SiteHeader data-test="foo" />
238
+ );
239
+
240
+ const siteHeader = screen.getByRole('banner');
241
+ expect(siteHeader?.dataset.test).toEqual('foo');
242
+ });
243
+
244
+ test('passing additional CSS classes', () => {
245
+ render(
246
+ <SiteHeader className="foo" />
247
+ );
248
+
249
+ const siteHeader = screen.getByRole('banner');
250
+ expect(siteHeader).toHaveClass('foo');
251
+ });
@@ -0,0 +1,87 @@
1
+ 'use client';
2
+
3
+ import { useEffect, useRef } from 'react';
4
+
5
+ import Icon from '../../common/icon';
6
+ import PhaseBanner from '../phase-banner/phase-banner';
7
+ import SiteNavigation from "../site-navigation/site-navigation";
8
+ import SiteSearch from "../site-search/site-search";
9
+
10
+ // @ts-ignore
11
+ import DSMobileMenu from '@scottish-government/design-system/src/components/site-navigation/site-navigation';
12
+
13
+ const SiteHeader: React.FC<SGDS.Component.SiteHeader> = ({
14
+ logo = {},
15
+ navigationItems,
16
+ phaseBanner,
17
+ siteSearch,
18
+ siteTitle,
19
+ ...props
20
+ }) => {
21
+ const mobileMenuRef = useRef(null);
22
+
23
+ useEffect(() => {
24
+ if (mobileMenuRef.current) {
25
+ new DSMobileMenu(mobileMenuRef.current).init();
26
+ }
27
+ }, [mobileMenuRef]);
28
+
29
+ return (
30
+ <header className="ds_site-header" {...props}>
31
+ <div className="ds_wrapper">
32
+ <div className="ds_site-header__content">
33
+ <div className="ds_site-branding">
34
+ {logo &&
35
+ <a className="ds_site-branding__logo ds_site-branding__link" href={logo.href ? logo.href : '/'}>
36
+ <img className="ds_site-branding__logo-image" src={logo.src} alt={logo.alt} />
37
+ </a>
38
+ }
39
+
40
+ {siteTitle && <div className="ds_site-branding__title">
41
+ {siteTitle}
42
+ </div>}
43
+ </div>
44
+
45
+ {navigationItems &&
46
+ <div className="ds_site-header__controls">
47
+ <label aria-controls="mobile-navigation" className="ds_site-header__control js-toggle-menu" htmlFor="menu">
48
+ <span className="ds_site-header__control-text">Menu</span>
49
+ <Icon fill className="ds_site-header__control-icon" icon="Menu" aria-hidden="true" />
50
+ <Icon fill className="ds_site-header__control-icon ds_site-header__control-icon--active-icon" icon="Close" aria-hidden="true" />
51
+ </label>
52
+ </div>
53
+ }
54
+
55
+ {navigationItems &&
56
+ <input className="ds_site-navigation__toggle" id="menu" type="checkbox" />
57
+ }
58
+ {navigationItems &&
59
+ <SiteNavigation id="mobile-navigation" className="ds_site-navigation--mobile" items={navigationItems} ref={mobileMenuRef} />
60
+ }
61
+
62
+ {siteSearch &&
63
+ <SiteSearch className="ds_site-header__search" {...siteSearch} />
64
+ }
65
+ </div>
66
+ </div>
67
+
68
+ {phaseBanner &&
69
+ <PhaseBanner phaseName={phaseBanner.phaseName}>
70
+ {phaseBanner.content}
71
+ </PhaseBanner>
72
+ }
73
+
74
+ {navigationItems &&
75
+ <div className="ds_site-header__navigation">
76
+ <div className="ds_wrapper">
77
+ <SiteNavigation items={navigationItems} />
78
+ </div>
79
+ </div>
80
+ }
81
+ </header>
82
+ );
83
+ };
84
+
85
+ SiteHeader.displayName = 'SiteHeader';
86
+
87
+ export default SiteHeader;
@@ -123,10 +123,25 @@ test('summary list item with multiple values', () => {
123
123
 
124
124
  expect(valueListItems?.length).toEqual(items[3].value.length);
125
125
 
126
- expect(valueListItems[0]?.tagName).toEqual('LI');
126
+ expect(valueListItems[0].tagName).toEqual('LI');
127
127
  expect(valueListItems[0].innerHTML).toEqual(`<q class="ds_summary-list__answer">${items[3].value[0]}</q>`);
128
128
  });
129
129
 
130
+ test('summary list item with no value', () => {
131
+ render(
132
+ <Item
133
+ actions={items[3].actions}
134
+ title={items[3].title}
135
+ />
136
+ );
137
+
138
+ const item = screen.getAllByRole('listitem')[0];
139
+ const value = item.querySelector('.ds_summary-list__value');
140
+ const answer = value?.children[0];
141
+
142
+ expect(answer?.textContent).toEqual('');
143
+ });
144
+
130
145
  test('summary list item with multiple actions', () => {
131
146
  render(
132
147
  <Item
@@ -19,10 +19,7 @@ function convertToSlug(string: string) {
19
19
  export const Answer: React.FC<SGDS.Component.SummaryList.Answer> = ({
20
20
  value
21
21
  }) => {
22
- let processedValue;
23
- if (typeof value === 'string') {
24
- processedValue = escapedNewLineToLineBreakTag(value);
25
- }
22
+ const processedValue = escapedNewLineToLineBreakTag(value.toString());
26
23
 
27
24
  return (
28
25
  <q className="ds_summary-list__answer">{processedValue}</q>
@@ -62,10 +59,10 @@ export const Item: React.FC<SGDS.Component.SummaryList.Item> = ({
62
59
  }) => {
63
60
  let values: string[] = [];
64
61
 
65
- if (typeof value === 'string') {
66
- values = [value];
67
- } else {
62
+ if (Array.isArray(value)) {
68
63
  values = value;
64
+ } else {
65
+ values = [value || ''];
69
66
  }
70
67
 
71
68
  const describedById = `q${index+1}-${convertToSlug(title)}`;