@pantheon-systems/pds-toolkit-react 1.0.0-dev.254 → 1.0.0-dev.256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_dist/components/icons/Icon/Icon.d.ts +12 -2
- package/_dist/components/navigation/DashboardNav/dashboard-nav-utilities.d.ts +0 -1
- package/_dist/components/navigation/navigation-types.d.ts +0 -1
- package/_dist/components/navigation/navigation-utilities.d.ts +0 -1
- package/_dist/components/notifications/Toaster/useToast.d.ts +1 -5
- package/_dist/css/pds-core.css +1 -1
- package/_dist/index.js +23 -14
- package/_dist/index.js.map +1 -1
- package/_dist/libs/components/sb-docs-toc-layout.d.ts +4 -0
- package/_dist/libs/types/custom-types.d.ts +1 -0
- package/package.json +3 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Display } from '@libs/types/custom-types';
|
|
2
3
|
/**
|
|
3
4
|
* PDS Icon type.
|
|
4
5
|
*/
|
|
@@ -7,6 +8,10 @@ export type PDSIcon = keyof typeof svgData;
|
|
|
7
8
|
* Icon component prop types
|
|
8
9
|
*/
|
|
9
10
|
export interface IconProps {
|
|
11
|
+
/**
|
|
12
|
+
* Display value
|
|
13
|
+
*/
|
|
14
|
+
display?: Display;
|
|
10
15
|
/**
|
|
11
16
|
* Which icon to render
|
|
12
17
|
*/
|
|
@@ -15,6 +20,11 @@ export interface IconProps {
|
|
|
15
20
|
* Which size of icon to render
|
|
16
21
|
*/
|
|
17
22
|
iconSize?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
23
|
+
/**
|
|
24
|
+
* Vertical align value
|
|
25
|
+
*/
|
|
26
|
+
verticalAlign?: string;
|
|
27
|
+
/**
|
|
18
28
|
/**
|
|
19
29
|
* Additional class names
|
|
20
30
|
*/
|
|
@@ -23,7 +33,7 @@ export interface IconProps {
|
|
|
23
33
|
/**
|
|
24
34
|
* A component used to display an icon
|
|
25
35
|
*/
|
|
26
|
-
export declare const Icon: ({ iconName, iconSize, className, ...props }: IconProps) => React.JSX.Element;
|
|
36
|
+
export declare const Icon: ({ display, iconName, iconSize, verticalAlign, className, ...props }: IconProps) => React.JSX.Element;
|
|
27
37
|
declare const svgData: {
|
|
28
38
|
readonly angleDown: {
|
|
29
39
|
readonly path: "M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z";
|
|
@@ -714,5 +724,5 @@ declare const svgData: {
|
|
|
714
724
|
readonly width: "576";
|
|
715
725
|
};
|
|
716
726
|
};
|
|
717
|
-
export declare const iconList:
|
|
727
|
+
export declare const iconList: PDSIcon[];
|
|
718
728
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PDSIcon } from '@components/icons/Icon/Icon';
|
|
3
2
|
import { NavigationItem } from '@components/navigation/navigation-types';
|
|
4
3
|
export declare const processDashboardNavLinkContent: (baseClass: string, linkContent: JSX.Element | string, links?: NavigationItem[], icon?: PDSIcon) => JSX.Element;
|
|
@@ -7,8 +7,4 @@ export declare enum ToastType {
|
|
|
7
7
|
Success = "success",
|
|
8
8
|
Info = "info"
|
|
9
9
|
}
|
|
10
|
-
export declare const useToast: () => [
|
|
11
|
-
(type: ToastType, message: string | ReactElement, options?: ToastOptions) => string | number,
|
|
12
|
-
typeof toastApi,
|
|
13
|
-
ReturnType<typeof cssTransition>
|
|
14
|
-
];
|
|
10
|
+
export declare const useToast: () => [(type: ToastType, message: string | ReactElement, options?: ToastOptions) => string | number, typeof toastApi, ReturnType<typeof cssTransition>];
|