@pantheon-systems/pds-toolkit-react 1.0.0-dev.149 → 1.0.0-dev.150

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.
@@ -620,5 +620,5 @@ declare const svgData: {
620
620
  readonly width: "576";
621
621
  };
622
622
  };
623
- export declare const iconList: ("angleDown" | "angleLeft" | "angleRight" | "angleUp" | "arrowDownToLine" | "arrowLeft" | "arrowRight" | "asterisk" | "banBug" | "bars" | "barsFilter" | "billboard" | "bitbucket" | "bolt" | "book" | "books" | "bracketRight" | "broomWide" | "building" | "buildings" | "calendarDays" | "caretDown" | "caretLeft" | "caretRight" | "caretUp" | "ccAmex" | "ccDiscover" | "ccGeneric" | "ccMC" | "ccVisa" | "chartLine" | "chartNetwork" | "chartSimple" | "check" | "circle" | "circleCheck" | "circleExclamation" | "circleInfo" | "circleMinus" | "circleMinusOutline" | "circleNotch" | "circlePlus" | "circlePlusOutline" | "circleQuestion" | "circleXmark" | "cloud" | "cloudArrowUp" | "code" | "codeBranch" | "codeMerge" | "command" | "comment" | "copy" | "diamondExclamation" | "discourse" | "download" | "drupal" | "ellipsis" | "ellipsisVertical" | "emptySet" | "exclamation" | "externalLink" | "eye" | "eyeSlash" | "facebook" | "file" | "fileContract" | "fileCSV" | "fileExport" | "fileImport" | "filePDF" | "folder" | "gear" | "github" | "gitlab" | "globe" | "globeLine" | "graduationCap" | "grid" | "gripDots" | "gripDotsVertical" | "heart" | "house" | "idCard" | "instagram" | "keySkeleton" | "laptopCode" | "leaf" | "lifeRing" | "linkedin" | "linkSimple" | "linkSimpleSlash" | "magnifyingGlass" | "messages" | "minus" | "moon" | "paperclip" | "paperPlane" | "pen" | "phone" | "play" | "plus" | "quotesLeft" | "quotesRight" | "rectangleList" | "robot" | "rotate" | "rotateClock" | "rss" | "save" | "server" | "shield" | "shovel" | "siren" | "sitemap" | "slack" | "slashForward" | "slidersSimple" | "snowflake" | "sparkles" | "squareCheck" | "squareCode" | "squareMinus" | "squarePen" | "squareQuestion" | "squareTerminal" | "star" | "sun" | "table" | "terminal" | "threads" | "trash" | "triangleExclamation" | "twitter" | "upload" | "user" | "userGear" | "userPlus" | "users" | "video" | "wavePulse" | "windowRestore" | "wordpress" | "wrench" | "xmark" | "xmarkLarge" | "xTwitter" | "youtube")[];
623
+ export declare const iconList: ("angleDown" | "angleLeft" | "angleRight" | "angleUp" | "arrowDownToLine" | "arrowLeft" | "arrowRight" | "asterisk" | "banBug" | "bars" | "barsFilter" | "billboard" | "bitbucket" | "bolt" | "book" | "books" | "bracketRight" | "broomWide" | "building" | "buildings" | "calendarDays" | "ccAmex" | "ccDiscover" | "ccGeneric" | "ccMC" | "ccVisa" | "chartSimple" | "cloud" | "cloudArrowUp" | "code" | "codeBranch" | "codeMerge" | "caretDown" | "caretLeft" | "caretRight" | "caretUp" | "chartLine" | "chartNetwork" | "check" | "circle" | "circleExclamation" | "circleCheck" | "circleInfo" | "circleMinus" | "circleMinusOutline" | "circleNotch" | "circlePlus" | "circlePlusOutline" | "circleQuestion" | "circleXmark" | "command" | "comment" | "copy" | "diamondExclamation" | "discourse" | "download" | "drupal" | "ellipsis" | "ellipsisVertical" | "emptySet" | "exclamation" | "externalLink" | "eye" | "eyeSlash" | "facebook" | "file" | "fileContract" | "fileCSV" | "fileExport" | "fileImport" | "filePDF" | "folder" | "gear" | "github" | "gitlab" | "globe" | "globeLine" | "graduationCap" | "grid" | "gripDots" | "gripDotsVertical" | "heart" | "house" | "idCard" | "instagram" | "keySkeleton" | "laptopCode" | "leaf" | "lifeRing" | "linkedin" | "linkSimple" | "linkSimpleSlash" | "magnifyingGlass" | "messages" | "minus" | "moon" | "paperclip" | "paperPlane" | "pen" | "phone" | "play" | "plus" | "quotesLeft" | "quotesRight" | "rectangleList" | "robot" | "rotate" | "rotateClock" | "rss" | "save" | "server" | "shield" | "shovel" | "siren" | "sitemap" | "slack" | "slashForward" | "slidersSimple" | "snowflake" | "sparkles" | "squareCheck" | "squareCode" | "squareMinus" | "squarePen" | "squareQuestion" | "squareTerminal" | "star" | "sun" | "table" | "terminal" | "threads" | "trash" | "triangleExclamation" | "twitter" | "upload" | "user" | "userGear" | "userPlus" | "users" | "video" | "wavePulse" | "windowRestore" | "wordpress" | "wrench" | "xmark" | "xmarkLarge" | "xTwitter" | "youtube")[];
624
624
  export {};
@@ -1,23 +1,34 @@
1
- export function PullQuote({ attribution, image, layoutType, quote, className, ...props }: {
2
- [x: string]: any;
3
- attribution: any;
4
- image: any;
5
- layoutType?: string;
6
- quote: any;
7
- className: any;
8
- }): React.JSX.Element;
9
- export namespace PullQuote {
10
- namespace propTypes {
11
- let attribution: PropTypes.Requireable<PropTypes.InferProps<{
12
- name: PropTypes.Requireable<string>;
13
- title: PropTypes.Requireable<string>;
14
- org: PropTypes.Requireable<string>;
15
- }>>;
16
- let image: PropTypes.Requireable<string>;
17
- let layoutType: PropTypes.Requireable<string>;
18
- let quote: PropTypes.Validator<string>;
19
- let className: PropTypes.Requireable<string>;
20
- }
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import './pull-quote.css';
3
+ interface Attribution {
4
+ name: string;
5
+ title: string;
6
+ org: string;
21
7
  }
22
- import React from 'react';
23
- import PropTypes from 'prop-types';
8
+ interface PullQuoteProps extends ComponentPropsWithoutRef<'div'> {
9
+ /**
10
+ * Attribution for the quote
11
+ */
12
+ attribution?: Attribution;
13
+ /**
14
+ * Image src. For stand-alone layout only, will not render for inline layout.
15
+ */
16
+ image?: string;
17
+ /**
18
+ * The layout type for the pull quote
19
+ */
20
+ layoutType?: 'stand-alone' | 'inline';
21
+ /**
22
+ * The quote text
23
+ */
24
+ quote: string;
25
+ /**
26
+ * Additional class names
27
+ */
28
+ className?: string;
29
+ }
30
+ /**
31
+ * PullQuote UI component
32
+ */
33
+ export declare const PullQuote: ({ attribution, image, layoutType, quote, className, ...props }: PullQuoteProps) => React.JSX.Element;
34
+ export {};
@@ -8,19 +8,19 @@ interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
8
8
  /**
9
9
  * Text or HTML content to use as the trigger instead of an icon. Leave null to use the icon. This allows passing HTML content to customize the trigger appearance or functionality.
10
10
  */
11
- customTrigger: ReactNode;
11
+ customTrigger?: ReactNode;
12
12
  /**
13
13
  * The spacing between the trigger and the tooltip in pixels. Only applies to tooltips with a custom trigger. Icon triggers have a fixed spacing.
14
14
  */
15
- offsetValue: number;
15
+ offsetValue?: number;
16
16
  /**
17
17
  * The accessible text for the trigger. Only necessary when the trigger is an icon.
18
18
  */
19
- triggerAccessibleText: string;
19
+ triggerAccessibleText?: string;
20
20
  /**
21
21
  * Icon to trigger tooltip
22
22
  */
23
- triggerIcon: 'circleInfo' | 'circleQuestion' | 'circleExclamation';
23
+ triggerIcon?: 'circleInfo' | 'circleQuestion' | 'circleExclamation';
24
24
  /**
25
25
  * Additional class names
26
26
  */
@@ -1,25 +1,42 @@
1
- export function AnimatedButton({ ariaLabel, buttonType, disabled, icon1, icon2, onClick, size, className, ...props }: {
2
- [x: string]: any;
3
- ariaLabel: any;
4
- buttonType?: string;
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { PDSIcon } from '@components/Icon/Icon';
3
+ import './animated-button.css';
4
+ interface AnimatedButtonProps extends ComponentPropsWithoutRef<'button'> {
5
+ /**
6
+ * Aria-label attribute.
7
+ */
8
+ ariaLabel: string;
9
+ /**
10
+ * Type of button
11
+ */
12
+ buttonType?: 'button' | 'submit' | 'reset';
13
+ /**
14
+ * Is the button disabled?
15
+ */
5
16
  disabled?: boolean;
6
- icon1: any;
7
- icon2: any;
8
- onClick: any;
9
- size?: string;
10
- className: any;
11
- }): React.JSX.Element;
12
- export namespace AnimatedButton {
13
- namespace propTypes {
14
- let ariaLabel: PropTypes.Validator<string>;
15
- let buttonType: PropTypes.Requireable<string>;
16
- let disabled: PropTypes.Requireable<boolean>;
17
- let icon1: PropTypes.Validator<string>;
18
- let icon2: PropTypes.Validator<string>;
19
- let onClick: PropTypes.Requireable<(...args: any[]) => any>;
20
- let size: PropTypes.Requireable<string>;
21
- let className: PropTypes.Requireable<string>;
22
- }
17
+ /**
18
+ * Icon 1 -- The first icon to display in animation.
19
+ */
20
+ icon1: PDSIcon;
21
+ /**
22
+ * Icon 2 -- The second icon to display in animation.
23
+ */
24
+ icon2: PDSIcon;
25
+ /**
26
+ * Click event handler callback
27
+ */
28
+ onClick?: () => void;
29
+ /**
30
+ * Which size of button to render
31
+ */
32
+ size?: 'sm' | 'md' | 'lg';
33
+ /**
34
+ * Additional class names
35
+ */
36
+ className?: string;
23
37
  }
24
- import React from 'react';
25
- import PropTypes from 'prop-types';
38
+ /**
39
+ * AnimatedButton UI component
40
+ */
41
+ export declare const AnimatedButton: ({ ariaLabel, buttonType, disabled, icon1, icon2, onClick, size, className, ...props }: AnimatedButtonProps) => React.JSX.Element;
42
+ export {};
@@ -1,25 +1,42 @@
1
- export function IconButton({ ariaLabel, buttonType, disabled, iconName, onClick, size, variant, className, ...props }: {
2
- [x: string]: any;
3
- ariaLabel: any;
4
- buttonType?: string;
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { PDSIcon } from '@components/Icon/Icon';
3
+ import './icon-button.css';
4
+ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
5
+ /**
6
+ * Aria-label attribute.
7
+ */
8
+ ariaLabel: string;
9
+ /**
10
+ * Type of button
11
+ */
12
+ buttonType?: 'button' | 'submit' | 'reset';
13
+ /**
14
+ * Is the button disabled?
15
+ */
5
16
  disabled?: boolean;
6
- iconName: any;
17
+ /**
18
+ * Which icon to render
19
+ */
20
+ iconName: PDSIcon;
21
+ /**
22
+ * Click event handler callback
23
+ */
7
24
  onClick?: () => void;
8
- size?: string;
9
- variant?: string;
10
- className: any;
11
- }): React.JSX.Element;
12
- export namespace IconButton {
13
- namespace propTypes {
14
- let ariaLabel: PropTypes.Validator<string>;
15
- let buttonType: PropTypes.Requireable<string>;
16
- let disabled: PropTypes.Requireable<boolean>;
17
- let iconName: PropTypes.Validator<string>;
18
- let onClick: PropTypes.Requireable<(...args: any[]) => any>;
19
- let size: PropTypes.Requireable<string>;
20
- let variant: PropTypes.Requireable<string>;
21
- let className: PropTypes.Requireable<string>;
22
- }
25
+ /**
26
+ * Which size of button to render
27
+ */
28
+ size?: 'sm' | 'md' | 'lg';
29
+ /**
30
+ * Which variant of button to render
31
+ */
32
+ variant?: 'standard' | 'critical';
33
+ /**
34
+ * Additional class names
35
+ */
36
+ className?: string;
23
37
  }
24
- import React from 'react';
25
- import PropTypes from 'prop-types';
38
+ /**
39
+ * IconButton UI component
40
+ */
41
+ export declare const IconButton: ({ ariaLabel, buttonType, disabled, iconName, onClick, size, variant, className, ...props }: IconButtonProps) => React.JSX.Element;
42
+ export {};
@@ -43,6 +43,10 @@ export interface TextInputProps extends ComponentPropsWithoutRef<'div'> {
43
43
  * Input ID.
44
44
  */
45
45
  id: string;
46
+ /**
47
+ * Additional props for the `<input>` element.
48
+ */
49
+ inputProps?: ComponentPropsWithoutRef<'input'>;
46
50
  /**
47
51
  * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
48
52
  */