@scottish-government/designsystem-react 0.11.0 → 0.12.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.
Files changed (112) hide show
  1. package/@types/components/PageHeader.d.ts +2 -1
  2. package/CHANGELOG.md +8 -0
  3. package/dist/common/AbstractNotificationBanner.d.ts +9 -0
  4. package/dist/common/ActionLink.d.ts +5 -0
  5. package/dist/common/ConditionalWrapper.d.ts +8 -0
  6. package/dist/common/FileIcon.d.ts +6 -0
  7. package/dist/common/HintText.d.ts +5 -0
  8. package/dist/common/Icon.d.ts +6 -0
  9. package/dist/common/ScreenReaderText.d.ts +5 -0
  10. package/dist/common/WrapperTag.d.ts +8 -0
  11. package/dist/components/Accordion/Accordion.d.ts +10 -0
  12. package/dist/components/AspectBox/AspectBox.d.ts +6 -0
  13. package/dist/components/BackToTop/BackToTop.d.ts +5 -0
  14. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
  15. package/dist/components/Button/Button.d.ts +5 -0
  16. package/dist/components/ButtonGroup/ButtonGroup.d.ts +5 -0
  17. package/dist/components/CategoryItem/CategoryItem.d.ts +5 -0
  18. package/dist/components/CategoryList/CategoryList.d.ts +6 -0
  19. package/dist/components/Checkbox/Checkbox.d.ts +5 -0
  20. package/dist/components/Checkbox/CheckboxGroup.d.ts +6 -0
  21. package/dist/components/ConfirmationMessage/ConfirmationMessage.d.ts +5 -0
  22. package/dist/components/ContentsNav/ContentsNav.d.ts +10 -0
  23. package/dist/components/CookieBanner/CookieBanner.d.ts +9 -0
  24. package/dist/components/DatePicker/DatePicker.d.ts +5 -0
  25. package/dist/components/Details/Details.d.ts +5 -0
  26. package/dist/components/ErrorMessage/ErrorMessage.d.ts +5 -0
  27. package/dist/components/ErrorSummary/ErrorSummary.d.ts +9 -0
  28. package/dist/components/FileDownload/FileDownload.d.ts +5 -0
  29. package/dist/components/HideThisPage/HideThisPage.d.ts +6 -0
  30. package/dist/components/InsetText/InsetText.d.ts +5 -0
  31. package/dist/components/NotificationBanner/NotificationBanner.d.ts +9 -0
  32. package/dist/components/NotificationPanel/NotificationPanel.d.ts +5 -0
  33. package/dist/components/PageHeader/PageHeader.d.ts +5 -0
  34. package/dist/components/PageHeader/PageHeader.jsx +2 -2
  35. package/dist/components/PageMetadata/PageMetadata.d.ts +9 -0
  36. package/dist/components/Pagination/Pagination.d.ts +7 -0
  37. package/dist/components/PhaseBanner/PhaseBanner.d.ts +5 -0
  38. package/dist/components/Question/Question.d.ts +5 -0
  39. package/dist/components/RadioButton/RadioButton.d.ts +5 -0
  40. package/dist/components/RadioButton/RadioGroup.d.ts +6 -0
  41. package/dist/components/SearchFacets/SearchFacets.d.ts +14 -0
  42. package/dist/components/SearchFilters/SearchFilters.d.ts +16 -0
  43. package/dist/components/SearchResult/SearchResult.d.ts +28 -0
  44. package/dist/components/SearchSort/SearchSort.d.ts +10 -0
  45. package/dist/components/Select/Select.d.ts +5 -0
  46. package/dist/components/SequentialNavigation/SequentialNavigation.d.ts +13 -0
  47. package/dist/components/SideNavigation/SideNavigation.d.ts +13 -0
  48. package/dist/components/SiteFooter/SiteFooter.d.ts +22 -0
  49. package/dist/components/SiteHeader/SiteHeader.d.ts +22 -0
  50. package/dist/components/SiteHeader/SiteHeader.jsx +0 -1
  51. package/dist/components/SiteNavigation/SiteNavigation.d.ts +9 -0
  52. package/dist/components/SiteSearch/SiteSearch.d.ts +5 -0
  53. package/dist/components/SkipLinks/SkipLinks.d.ts +10 -0
  54. package/dist/components/SkipLinks/SkipLinks.jsx +42 -0
  55. package/dist/components/SummaryCard/SummaryCard.d.ts +10 -0
  56. package/dist/components/SummaryList/SummaryList.d.ts +18 -0
  57. package/dist/components/Table/Table.d.ts +5 -0
  58. package/dist/components/Tabs/Tabs.d.ts +10 -0
  59. package/dist/components/Tag/Tag.d.ts +5 -0
  60. package/dist/components/TaskList/TaskList.d.ts +13 -0
  61. package/dist/components/TextInput/TextInput.d.ts +5 -0
  62. package/dist/components/Textarea/Textarea.d.ts +5 -0
  63. package/dist/components/WarningText/WarningText.d.ts +5 -0
  64. package/dist/hooks/useTracking.d.ts +1 -0
  65. package/dist/images/documents/audio.d.ts +4 -0
  66. package/dist/images/documents/csv.d.ts +4 -0
  67. package/dist/images/documents/excel.d.ts +4 -0
  68. package/dist/images/documents/file.d.ts +4 -0
  69. package/dist/images/documents/generic.d.ts +4 -0
  70. package/dist/images/documents/geodata.d.ts +4 -0
  71. package/dist/images/documents/ical.d.ts +4 -0
  72. package/dist/images/documents/ico.d.ts +4 -0
  73. package/dist/images/documents/image.d.ts +4 -0
  74. package/dist/images/documents/index.d.ts +22 -0
  75. package/dist/images/documents/odf.d.ts +4 -0
  76. package/dist/images/documents/odg.d.ts +4 -0
  77. package/dist/images/documents/odp.d.ts +4 -0
  78. package/dist/images/documents/ods.d.ts +4 -0
  79. package/dist/images/documents/odt.d.ts +4 -0
  80. package/dist/images/documents/pdf.d.ts +4 -0
  81. package/dist/images/documents/ppt.d.ts +4 -0
  82. package/dist/images/documents/rtf.d.ts +4 -0
  83. package/dist/images/documents/text.d.ts +4 -0
  84. package/dist/images/documents/video.d.ts +4 -0
  85. package/dist/images/documents/word.d.ts +4 -0
  86. package/dist/images/documents/xml.d.ts +4 -0
  87. package/dist/images/documents/zip.d.ts +4 -0
  88. package/dist/images/icons/arrow_upward.d.ts +4 -0
  89. package/dist/images/icons/calendar_today.d.ts +4 -0
  90. package/dist/images/icons/cancel.d.ts +4 -0
  91. package/dist/images/icons/check_circle.d.ts +4 -0
  92. package/dist/images/icons/chevron_left.d.ts +4 -0
  93. package/dist/images/icons/chevron_right.d.ts +4 -0
  94. package/dist/images/icons/close.d.ts +4 -0
  95. package/dist/images/icons/description.d.ts +4 -0
  96. package/dist/images/icons/double_chevron_left.d.ts +4 -0
  97. package/dist/images/icons/double_chevron_right.d.ts +4 -0
  98. package/dist/images/icons/error.d.ts +4 -0
  99. package/dist/images/icons/expand_less.d.ts +4 -0
  100. package/dist/images/icons/expand_more.d.ts +4 -0
  101. package/dist/images/icons/index.d.ts +17 -0
  102. package/dist/images/icons/list.d.ts +4 -0
  103. package/dist/images/icons/menu.d.ts +4 -0
  104. package/dist/images/icons/priority_high.d.ts +4 -0
  105. package/dist/images/icons/search.d.ts +4 -0
  106. package/dist/tsconfig.tsbuildinfo +1 -1
  107. package/dist/utils/context.d.ts +4 -0
  108. package/package.json +5 -5
  109. package/src/components/PageHeader/PageHeader.tsx +2 -1
  110. package/src/components/SiteHeader/SiteHeader.tsx +0 -2
  111. package/src/components/SkipLinks/SkipLinks.tsx +10 -0
  112. package/tsconfig.json +14 -14
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare const Tabs: {
3
+ ({ baseId, children, className, headingLevel, isBorderless, isManual, title, ...props }: SGDS.Component.Tabs): React.JSX.Element;
4
+ displayName: string;
5
+ Item: {
6
+ ({ isBorderless, children, className, id, tabLabel, ...props }: SGDS.Component.Tabs.Item): React.JSX.Element;
7
+ displayName: string;
8
+ };
9
+ };
10
+ export default Tabs;
@@ -0,0 +1,5 @@
1
+ declare const Tag: {
2
+ ({ children, className, colour, ...props }: SGDS.Component.Tag): import("react").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default Tag;
@@ -0,0 +1,13 @@
1
+ declare const TaskList: {
2
+ ({ children, className, headingId, title, ...props }: SGDS.Component.TaskList): import("react").JSX.Element;
3
+ displayName: string;
4
+ Item: {
5
+ ({ children, className, href, id, isComplete, linkComponent, statusText, tagColour, title, ...props }: SGDS.Component.TaskList.Item): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ Group: {
9
+ ({ children, className, intro, title, ...props }: SGDS.Component.TaskList.Group): import("react").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ };
13
+ export default TaskList;
@@ -0,0 +1,5 @@
1
+ declare const TextInput: {
2
+ ({ buttonIcon, buttonText, children, className, countThreshold, width, isCurrency, currencySymbol, errorMessage, hasButton, hasError, hintText, id, label, maxlength, name, onBlur, onChange, placeholder, type, value, ...props }: SGDS.Component.TextInput): import("react").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default TextInput;
@@ -0,0 +1,5 @@
1
+ declare const Textarea: {
2
+ ({ className, countThreshold, errorMessage, hasError, hintText, id, label, maxlength, name, onBlur, onChange, placeholder, rows, value, ...props }: SGDS.Component.Textarea): import("react").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default Textarea;
@@ -0,0 +1,5 @@
1
+ declare const WarningText: {
2
+ ({ children, className, ...props }: SGDS.Component.WarningText): import("react").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default WarningText;
@@ -0,0 +1 @@
1
+ export default function (): void;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgAudio: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgAudio;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgCsv: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgCsv;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgExcel: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgExcel;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgFile: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgFile;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgGeneric: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgGeneric;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgGeodata: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgGeodata;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgIcal: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgIcal;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgIco: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgIco;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgImage: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgImage;
@@ -0,0 +1,22 @@
1
+ export { default as Audio } from "./audio";
2
+ export { default as Csv } from "./csv";
3
+ export { default as Excel } from "./excel";
4
+ export { default as File } from "./file";
5
+ export { default as Generic } from "./generic";
6
+ export { default as Geodata } from "./geodata";
7
+ export { default as Ical } from "./ical";
8
+ export { default as Ico } from "./ico";
9
+ export { default as Image } from "./image";
10
+ export { default as Odf } from "./odf";
11
+ export { default as Odg } from "./odg";
12
+ export { default as Odp } from "./odp";
13
+ export { default as Ods } from "./ods";
14
+ export { default as Odt } from "./odt";
15
+ export { default as Pdf } from "./pdf";
16
+ export { default as Ppt } from "./ppt";
17
+ export { default as Rtf } from "./rtf";
18
+ export { default as Text } from "./text";
19
+ export { default as Video } from "./video";
20
+ export { default as Word } from "./word";
21
+ export { default as Xml } from "./xml";
22
+ export { default as Zip } from "./zip";
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgOdf: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgOdf;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgOdg: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgOdg;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgOdp: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgOdp;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgOds: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgOds;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgOdt: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgOdt;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgPdf: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgPdf;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgPpt: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgPpt;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgRtf: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgRtf;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgText: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgText;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgVideo: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgVideo;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgWord: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgWord;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgXml: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgXml;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgZip: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgZip;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgArrowUpward: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgArrowUpward;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgCalendarToday: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgCalendarToday;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgCancel: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgCancel;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgCheckCircle: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgCheckCircle;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgChevronLeft: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgChevronLeft;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgChevronRight: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgChevronRight;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgClose: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgClose;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgDescription: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgDescription;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgDoubleChevronLeft: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgDoubleChevronLeft;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgDoubleChevronRight: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgDoubleChevronRight;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgError: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgError;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgExpandLess: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgExpandLess;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgExpandMore: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgExpandMore;
@@ -0,0 +1,17 @@
1
+ export { default as ArrowUpward } from "./arrow_upward";
2
+ export { default as CalendarToday } from "./calendar_today";
3
+ export { default as Cancel } from "./cancel";
4
+ export { default as CheckCircle } from "./check_circle";
5
+ export { default as ChevronLeft } from "./chevron_left";
6
+ export { default as ChevronRight } from "./chevron_right";
7
+ export { default as Close } from "./close";
8
+ export { default as Description } from "./description";
9
+ export { default as DoubleChevronLeft } from "./double_chevron_left";
10
+ export { default as DoubleChevronRight } from "./double_chevron_right";
11
+ export { default as Error } from "./error";
12
+ export { default as ExpandLess } from "./expand_less";
13
+ export { default as ExpandMore } from "./expand_more";
14
+ export { default as List } from "./list";
15
+ export { default as Menu } from "./menu";
16
+ export { default as PriorityHigh } from "./priority_high";
17
+ export { default as Search } from "./search";
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgList: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgList;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgMenu: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgMenu;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgPriorityHigh: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgPriorityHigh;
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { SVGProps } from "react";
3
+ declare const SvgSearch: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgSearch;