@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.
@@ -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: ("angleDown" | "angleLeft" | "angleRight" | "angleUp" | "anglesLeft" | "anglesRight" | "arrowDownToLine" | "arrowLeft" | "arrowRight" | "asterisk" | "banBug" | "bars" | "barsFilter" | "billboard" | "bitbucket" | "bluesky" | "bolt" | "boltPantheon" | "book" | "books" | "bracketRight" | "broomWide" | "building" | "buildings" | "calendarDays" | "ccAmex" | "ccDiscover" | "ccGeneric" | "ccMC" | "ccVisa" | "chartSimple" | "cloud" | "cloudArrowUp" | "cloudPlus" | "code" | "codeBranch" | "codeMerge" | "caretDown" | "caretLeft" | "caretRight" | "caretUp" | "chartLine" | "chartNetwork" | "check" | "circle" | "circleExclamation" | "circleCheck" | "circleInfo" | "circleMinus" | "circleMinusOutline" | "circleNotch" | "circlePlus" | "circlePlusOutline" | "circleQuestion" | "circleXmark" | "command" | "comment" | "copy" | "desktop" | "diamondExclamation" | "diamonds4" | "discourse" | "download" | "drupal" | "ellipsis" | "ellipsisVertical" | "emptySet" | "envelope" | "exclamation" | "expand" | "externalLink" | "eye" | "eyeSlash" | "facebook" | "file" | "fileCheck" | "fileContract" | "fileCSV" | "fileDiff" | "fileExport" | "fileImport" | "fileLines" | "filePDF" | "fileZip" | "folder" | "folderTree" | "gear" | "github" | "gitlab" | "globe" | "globeLine" | "graduationCap" | "grid" | "gripDots" | "gripDotsVertical" | "heart" | "house" | "idCard" | "instagram" | "keySkeleton" | "laptop" | "laptopCode" | "leaf" | "lifeRing" | "linkedin" | "linkSimple" | "linkSimpleSlash" | "listCheck" | "lock" | "lockOpen" | "magnifyingGlass" | "memo" | "messages" | "minus" | "moon" | "paperclip" | "paperPlane" | "pen" | "phone" | "play" | "plus" | "quotesLeft" | "quotesRight" | "rectangleList" | "rocketLaunch" | "robot" | "rotate" | "rotateClock" | "rotateLeft" | "rotateRight" | "rss" | "save" | "server" | "shield" | "shovel" | "siren" | "sitemap" | "slack" | "slashForward" | "slidersSimple" | "snowflake" | "sparkles" | "squareCheck" | "squareCode" | "squareMinus" | "squarePen" | "squareQuestion" | "squareTerminal" | "star" | "sun" | "table" | "terminal" | "threads" | "thumbsDown" | "thumbsUp" | "trash" | "triangleExclamation" | "twitter" | "upload" | "user" | "userGear" | "userPlus" | "users" | "video" | "wavePulse" | "windowRestore" | "wordpress" | "wrench" | "xmark" | "xmarkLarge" | "xTwitter" | "youtube")[];
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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type NavigationItem = {
3
2
  /**
4
3
  * A boolean indicating whether the item is the active item.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NavigationItem } from '@components/navigation/navigation-types';
3
2
  export declare const isActiveItem: (item: NavigationItem) => boolean;
4
3
  export declare const isActiveTrail: (item: NavigationItem) => boolean;
@@ -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>];