@scottish-government/designsystem-react 0.11.1 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ declare const AbstractNotificationBanner: {
2
+ ({ children, className, hasColourIcon, hasInverseIcon, icon, isDismissable, title, ...props }: SGDS.Common.AbstractNotificationBanner): import("react").JSX.Element;
3
+ displayName: string;
4
+ Buttons: {
5
+ ({ children }: SGDS.Common.AbstractNotificationBanner.Buttons): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ };
9
+ export default AbstractNotificationBanner;
@@ -0,0 +1,5 @@
1
+ declare const ActionLink: {
2
+ ({ children, describedby, href, linkComponent, onclick }: SGDS.Common.ActionLink): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
3
+ displayName: string;
4
+ };
5
+ export default ActionLink;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Wraps all children in a specified HTML tag if a condition is met.
3
+ */
4
+ declare const ConditionalWrapper: {
5
+ ({ condition, wrapper, children }: SGDS.Common.ConditionalWrapper): any;
6
+ displayName: string;
7
+ };
8
+ export default ConditionalWrapper;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const FileIcon: {
3
+ ({ ariaLabel, className, icon }: SGDS.Common.FileIcon): React.JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default FileIcon;
@@ -0,0 +1,5 @@
1
+ declare const HintText: {
2
+ ({ children, id, text, ...props }: SGDS.Common.HintText): import("react").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default HintText;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare const Icon: {
3
+ ({ ariaLabel, className, isFilled, icon, iconSize }: SGDS.Common.Icon): React.JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ declare const ScreenReaderText: {
2
+ ({ children, ...props }: SGDS.Common.ScreenReaderText): import("react").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default ScreenReaderText;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Wraps all children in a specified HTML tag.
3
+ */
4
+ declare const WrapperTag: {
5
+ ({ children, tagName, ...props }: SGDS.Common.WrapperTag): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
8
+ export default WrapperTag;
@@ -0,0 +1,5 @@
1
+ declare const ButtonGroup: {
2
+ ({ children, className, isInline, ...props }: SGDS.Component.ButtonGroup): import("react").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export default ButtonGroup;
@@ -0,0 +1 @@
1
+ export default function (): void;
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.11.1",
4
+ "version": "0.12.1",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Scottish Government Digital Design System team",