@pantheon-systems/pds-toolkit-react 1.0.0-dev.239 → 1.0.0-dev.240

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 (29) hide show
  1. package/_dist/components/SocialLinks/SocialLinks.d.ts +1 -1
  2. package/_dist/components/Tabs/Tabs.d.ts +1 -1
  3. package/_dist/components/buttons/Button/Button.d.ts +1 -1
  4. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +1 -1
  5. package/_dist/components/buttons/IconButton/IconButton.d.ts +1 -1
  6. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +1 -1
  7. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +1 -1
  8. package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +1 -1
  9. package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +47 -0
  10. package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +21 -0
  11. package/_dist/components/icons/PaymentIcon/svgData.d.ts +8 -0
  12. package/_dist/components/inputs/input-utilities.d.ts +2 -1
  13. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +1 -1
  14. package/_dist/components/navigation/DashboardNav/dashboard-nav-utilities.d.ts +1 -1
  15. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +1 -1
  16. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +1 -1
  17. package/_dist/css/component-css/pds-index.css +3 -3
  18. package/_dist/css/component-css/pds-input-group.css +1 -1
  19. package/_dist/css/component-css/pds-payment-card.css +1 -0
  20. package/_dist/css/component-css/pds-payment-icon.css +1 -0
  21. package/_dist/css/pds-components.css +3 -3
  22. package/_dist/index.css +1 -1
  23. package/_dist/index.d.ts +4 -2
  24. package/_dist/index.js +3735 -3349
  25. package/_dist/index.js.map +1 -1
  26. package/_dist/libs/types/custom-types.d.ts +1 -1
  27. package/package.json +1 -1
  28. /package/_dist/components/{Icon → icons/Icon}/Icon.d.ts +0 -0
  29. /package/_dist/components/{PlatformIcon → icons/PlatformIcon}/PlatformIcon.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './social-links.css';
4
4
  interface SocialLinksProps extends ComponentPropsWithoutRef<'ul'> {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './tabs.css';
4
4
  interface Tabs {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode, MouseEvent } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './button.css';
4
4
  interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import { ButtonDisplayType, ButtonSize, ButtonVariant } from '@libs/types/custom-types';
4
4
  import '../Button/button.css';
5
5
  import './button-link.css';
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, MouseEvent } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './icon-button.css';
4
4
  interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
2
  import { HeadingItemType, LinkItemType, MenuItemType, NodeItemType, SeparatorItemType } from '@libs/types/custom-types';
3
- import { PDSIcon } from '@components/Icon/Icon';
3
+ import { PDSIcon } from '@components/icons/Icon/Icon';
4
4
  import './menu-button.css';
5
5
  /**
6
6
  * Prop types for MenuButton
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './segmented-button.css';
4
4
  /**
5
5
  * Structure for each option in the SegmentedButton component.
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './utility-button.css';
4
4
  /**
5
5
  * Prop types for UtilityButton
@@ -0,0 +1,47 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import './payment-card.css';
3
+ /**
4
+ * Prop types for PaymentCard
5
+ */
6
+ export interface PaymentCardProps extends ComponentPropsWithoutRef<'div'> {
7
+ /**
8
+ * The type of payment icon to display.
9
+ */
10
+ cardType?: 'visa' | 'mastercard' | 'amex' | 'discover';
11
+ /**
12
+ * The last four digits of the card number.
13
+ */
14
+ cardNumber?: number;
15
+ /**
16
+ * The name of the cardholder.
17
+ */
18
+ cardholderName?: string;
19
+ /**
20
+ * Expiration date of the card in MM/YY format.
21
+ */
22
+ expDate?: string;
23
+ /**
24
+ * A string for the lower left corner.
25
+ */
26
+ cardUsage?: string;
27
+ /**
28
+ * Translation string for “view details”
29
+ */
30
+ detailsLabel?: string;
31
+ /**
32
+ * Function for when “view details” is clicked
33
+ */
34
+ detailsCallback?: () => void;
35
+ /**
36
+ * Function for when this card is selected
37
+ */
38
+ selectionCallback?: () => void;
39
+ /**
40
+ * Additional class names
41
+ */
42
+ className?: string;
43
+ }
44
+ /**
45
+ * PaymentCard UI component
46
+ */
47
+ export declare const PaymentCard: ({ cardType, cardNumber, cardholderName, expDate, cardUsage, detailsLabel, detailsCallback, selectionCallback, className, ...props }: PaymentCardProps) => React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ import './payment-icon.css';
3
+ type PaymentType = 'visa' | 'mastercard' | 'amex' | 'discover' | 'generic';
4
+ /**
5
+ * Prop types for PaymentIcon
6
+ */
7
+ export interface PaymentIconProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * The type of payment icon to display.
10
+ */
11
+ paymentType: PaymentType;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
16
+ }
17
+ /**
18
+ * PaymentIcon UI component
19
+ */
20
+ export declare const PaymentIcon: ({ paymentType, className, ...props }: PaymentIconProps) => React.JSX.Element;
21
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const svgData: {
3
+ amex: React.JSX.Element;
4
+ discover: React.JSX.Element;
5
+ generic: React.JSX.Element;
6
+ mastercard: React.JSX.Element;
7
+ visa: React.JSX.Element;
8
+ };
@@ -53,7 +53,8 @@ interface InputLabelProps {
53
53
  className?: string;
54
54
  }
55
55
  export declare const InputLabel: ({ id, label, showLabel, required, disabled, isLegend, isPseudoLabel, tooltipText, className, }: InputLabelProps) => React.JSX.Element;
56
- export declare const InputMessage: ({ id, message, hasValidationMessage, validationMessageHasDecorators, validationStatus, className, }: {
56
+ export declare const InputMessage: ({ forInputGroup, id, message, hasValidationMessage, validationMessageHasDecorators, validationStatus, className, }: {
57
+ forInputGroup?: boolean;
57
58
  id: string;
58
59
  message?: string | ReactNode;
59
60
  hasValidationMessage?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { NavigationItem } from '@components/navigation/navigation-types';
3
- import { PDSIcon } from '@components/Icon/Icon';
3
+ import { PDSIcon } from '@components/icons/Icon/Icon';
4
4
  import './dashboard-nav.css';
5
5
  export type DashboardNavItemProps = NavigationItem & {
6
6
  /**
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import { NavigationItem } from '@components/navigation/navigation-types';
4
4
  export declare const processDashboardNavLinkContent: (baseClass: string, linkContent: JSX.Element | string, links?: NavigationItem[], icon?: PDSIcon) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import { TabMenuDropdownProps } from './TabMenuDropdown';
4
4
  import { NavigationItem } from '@components/navigation/navigation-types';
5
5
  import './tab-menu.css';
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PDSIcon } from '@components/Icon/Icon';
2
+ import { PDSIcon } from '@components/icons/Icon/Icon';
3
3
  import './user-menu.css';
4
4
  /**
5
5
  * Prop types for UserMenuItem