@pantheon-systems/pds-toolkit-react 1.0.0-alpha.9 → 1.0.0-beta.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.
Files changed (153) hide show
  1. package/_dist/components/Avatar/Avatar.d.ts +5 -5
  2. package/_dist/components/BranchDiff/BranchDiff.d.ts +9 -9
  3. package/_dist/components/CTALink/CTALink.d.ts +5 -5
  4. package/_dist/components/CTASlice/CTASlice.d.ts +5 -5
  5. package/_dist/components/Callout/Callout.d.ts +7 -7
  6. package/_dist/components/CodeBlock/CodeBlock.d.ts +5 -5
  7. package/_dist/components/ComparisonList/ComparisonList.d.ts +6 -6
  8. package/_dist/components/DashboardStat/DashboardStat.d.ts +9 -9
  9. package/_dist/components/FileDiff/FileDiff.d.ts +10 -10
  10. package/_dist/components/FlowSteps/FlowSteps.d.ts +9 -9
  11. package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +5 -5
  12. package/_dist/components/Modal/Modal.d.ts +5 -5
  13. package/_dist/components/Pagination/Pagination.d.ts +6 -6
  14. package/_dist/components/PantheonLogo/PantheonLogo.d.ts +5 -5
  15. package/_dist/components/Picture/Picture.d.ts +14 -14
  16. package/_dist/components/Popover/Popover.d.ts +19 -19
  17. package/_dist/components/PullQuote/PullQuote.d.ts +6 -6
  18. package/_dist/components/RefreshChecker/RefreshChecker.d.ts +9 -9
  19. package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +12 -8
  20. package/_dist/components/Skiplink/Skiplink.d.ts +5 -5
  21. package/_dist/components/SocialLinks/SocialLinks.d.ts +6 -6
  22. package/_dist/components/StatusIndicator/StatusIndicator.d.ts +5 -5
  23. package/_dist/components/Table/Table.d.ts +8 -8
  24. package/_dist/components/TableOfContents/TableOfContents.d.ts +7 -7
  25. package/_dist/components/Tabs/Tabs.d.ts +13 -13
  26. package/_dist/components/Tag/Tag.d.ts +7 -7
  27. package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +8 -8
  28. package/_dist/components/Tooltip/Tooltip.d.ts +5 -5
  29. package/_dist/components/VideoEmbed/VideoEmbed.d.ts +5 -5
  30. package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +6 -6
  31. package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +5 -5
  32. package/_dist/components/badges/Tally/Tally.d.ts +7 -7
  33. package/_dist/components/buttons/Button/Button.d.ts +5 -5
  34. package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +6 -6
  35. package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +5 -5
  36. package/_dist/components/buttons/CloseButton/CloseButton.d.ts +5 -5
  37. package/_dist/components/buttons/IconButton/IconButton.d.ts +8 -8
  38. package/_dist/components/buttons/MenuButton/MenuButton.d.ts +5 -5
  39. package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +12 -12
  40. package/_dist/components/buttons/SplitButton/SplitButton.d.ts +5 -5
  41. package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +16 -10
  42. package/_dist/components/cards/Card/Card.d.ts +5 -5
  43. package/_dist/components/cards/CardHeading/CardHeading.d.ts +5 -5
  44. package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +9 -9
  45. package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +5 -5
  46. package/_dist/components/cards/LinksCard/LinksCard.d.ts +5 -5
  47. package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +10 -10
  48. package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +15 -15
  49. package/_dist/components/cards/PricingCard/PricingCard.d.ts +20 -20
  50. package/_dist/components/cards/SiteCard/SiteCard.d.ts +6 -7
  51. package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +6 -6
  52. package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +26 -26
  53. package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +13 -13
  54. package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +6 -6
  55. package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +6 -6
  56. package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +9 -9
  57. package/_dist/components/icons/Icon/Icon.d.ts +6 -6
  58. package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +5 -5
  59. package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +2 -2
  60. package/_dist/components/inputs/Checkbox/Checkbox.d.ts +6 -6
  61. package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +8 -8
  62. package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +6 -6
  63. package/_dist/components/inputs/Combobox/Combobox.d.ts +16 -16
  64. package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +11 -11
  65. package/_dist/components/inputs/Datepicker/Datepicker.d.ts +96 -0
  66. package/_dist/components/inputs/FileUpload/FileUpload.d.ts +5 -5
  67. package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +12 -12
  68. package/_dist/components/inputs/Select/Select.d.ts +12 -12
  69. package/_dist/components/inputs/Switch/Switch.d.ts +9 -7
  70. package/_dist/components/inputs/TextInput/TextInput.d.ts +6 -6
  71. package/_dist/components/inputs/Textarea/Textarea.d.ts +10 -10
  72. package/_dist/components/inputs/input-utilities.d.ts +29 -29
  73. package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +5 -5
  74. package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +5 -5
  75. package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +5 -5
  76. package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +5 -5
  77. package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +5 -5
  78. package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +1 -1
  79. package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +9 -9
  80. package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +5 -5
  81. package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +5 -5
  82. package/_dist/components/navigation/NavMenu/NavMenu.d.ts +7 -17
  83. package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +1 -1
  84. package/_dist/components/navigation/Navbar/Navbar.d.ts +6 -6
  85. package/_dist/components/navigation/SideNav/SideNav.d.ts +5 -5
  86. package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +5 -5
  87. package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -5
  88. package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +1 -1
  89. package/_dist/components/navigation/TabMenu/TabMenu.d.ts +6 -6
  90. package/_dist/components/navigation/UserMenu/UserMenu.d.ts +5 -5
  91. package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +9 -9
  92. package/_dist/components/navigation/navigation-types.d.ts +12 -4
  93. package/_dist/components/notifications/Banner/Banner.d.ts +8 -8
  94. package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +5 -5
  95. package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +5 -5
  96. package/_dist/components/notifications/Toaster/Toast.d.ts +5 -5
  97. package/_dist/components/notifications/Toaster/Toaster.d.ts +5 -5
  98. package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
  99. package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +5 -5
  100. package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +5 -5
  101. package/_dist/components/panels/Panel/Panel.d.ts +6 -6
  102. package/_dist/components/panels/PanelList/PanelList.d.ts +5 -5
  103. package/_dist/components/panels/PanelList/PanelRow.d.ts +5 -5
  104. package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +5 -5
  105. package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +5 -5
  106. package/_dist/components/steppers/Stepper/Stepper.d.ts +6 -6
  107. package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +5 -5
  108. package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +5 -5
  109. package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +8 -8
  110. package/_dist/components/tiles/Tile/Tile.d.ts +5 -5
  111. package/_dist/components/tiles/TileGrid/TileGrid.d.ts +6 -6
  112. package/_dist/css/component-css/pds-avatar.css +1 -1
  113. package/_dist/css/component-css/pds-button.css +1 -1
  114. package/_dist/css/component-css/pds-checkbox.css +1 -1
  115. package/_dist/css/component-css/pds-code-block.css +1 -1
  116. package/_dist/css/component-css/pds-datepicker.css +3 -0
  117. package/_dist/css/component-css/pds-index.css +31 -11
  118. package/_dist/css/component-css/pds-indicator-badge.css +5 -3
  119. package/_dist/css/component-css/pds-input-utilities.css +1 -1
  120. package/_dist/css/component-css/pds-panel-list.css +1 -1
  121. package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
  122. package/_dist/css/component-css/pds-popover.css +1 -1
  123. package/_dist/css/component-css/pds-radio-group.css +1 -1
  124. package/_dist/css/component-css/pds-section-message.css +1 -1
  125. package/_dist/css/component-css/pds-segmented-button.css +1 -1
  126. package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
  127. package/_dist/css/component-css/pds-side-nav.css +1 -1
  128. package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -1
  129. package/_dist/css/component-css/pds-switch.css +17 -1
  130. package/_dist/css/component-css/pds-tabs.css +1 -1
  131. package/_dist/css/component-css/pds-utility-button.css +1 -1
  132. package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +7 -0
  133. package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +7 -0
  134. package/_dist/css/pds-components.css +31 -11
  135. package/_dist/css/pds-core.css +2 -2
  136. package/_dist/index.css +1 -1
  137. package/_dist/index.d.ts +1 -1
  138. package/_dist/index.js +6937 -6586
  139. package/_dist/index.js.map +1 -1
  140. package/_dist/layouts/AppLayout/AppLayout.d.ts +5 -5
  141. package/_dist/layouts/Container/Container.d.ts +5 -5
  142. package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +13 -13
  143. package/_dist/layouts/DashboardInner/DashboardInner.d.ts +5 -5
  144. package/_dist/layouts/DocsLayout/DocsLayout.d.ts +6 -6
  145. package/_dist/layouts/FlexContainer/FlexContainer.d.ts +9 -9
  146. package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +2 -2
  147. package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +5 -5
  148. package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +5 -5
  149. package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +5 -5
  150. package/_dist/libs/components/utility-components.d.ts +3 -3
  151. package/_dist/libs/types/custom-types.d.ts +7 -7
  152. package/_dist/utilities/color/color-preview-swatches.d.ts +1 -1
  153. package/package.json +16 -8
@@ -6,6 +6,10 @@ type LabelStrings = {
6
6
  triggerButton: string;
7
7
  };
8
8
  export type SelectOptionType = {
9
+ /**
10
+ * Option disabled.
11
+ */
12
+ disabled?: boolean;
9
13
  /**
10
14
  * Option label.
11
15
  */
@@ -14,10 +18,6 @@ export type SelectOptionType = {
14
18
  * Option value.
15
19
  */
16
20
  value: string;
17
- /**
18
- * Option disabled.
19
- */
20
- disabled?: boolean;
21
21
  };
22
22
  export type SelectOptionGroupType = {
23
23
  /**
@@ -31,13 +31,17 @@ export type SelectOptionGroupType = {
31
31
  };
32
32
  export type SelectOptionsType = (SelectOptionType | SelectOptionGroupType)[];
33
33
  interface SelectOptionGroupProps {
34
- label: string;
35
34
  children: ReactNode;
35
+ label: string;
36
36
  }
37
37
  /**
38
38
  * Prop types for Select
39
39
  */
40
40
  export interface SelectProps {
41
+ /**
42
+ * Additional class names
43
+ */
44
+ className?: string;
41
45
  /**
42
46
  * Optional default value for the field. Must match the value of one of the options. Cannot be used in conjunction with the `value` prop.
43
47
  */
@@ -51,7 +55,7 @@ export interface SelectProps {
51
55
  */
52
56
  id: string;
53
57
  /**
54
- * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
58
+ * Max-width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
55
59
  */
56
60
  inputWidth?: number;
57
61
  /**
@@ -106,17 +110,13 @@ export interface SelectProps {
106
110
  * Value of the field. Must match the value of one of the options. Used to set the value of the field when controlled. Cannot be used in conjunction with the `defaultValue` prop.
107
111
  */
108
112
  value?: string;
109
- /**
110
- * Additional class names
111
- */
112
- className?: string;
113
113
  }
114
114
  /**
115
115
  * SelectOptionGroup component
116
116
  */
117
- export declare const SelectOptionGroup: ({ label, children, }: SelectOptionGroupProps) => import("react/jsx-runtime").JSX.Element;
117
+ export declare const SelectOptionGroup: ({ children, label, }: SelectOptionGroupProps) => import("react/jsx-runtime").JSX.Element;
118
118
  /**
119
119
  * Select UI component
120
120
  */
121
- export declare const Select: ({ defaultValue, disabled, id, inputWidth, label, labelStrings, message, onBlur, onFocus, onOptionSelect, options, required, showLabel, tooltipText, validationMessage, validationStatus, value, className, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
121
+ export declare const Select: ({ className, defaultValue, disabled, id, inputWidth, label, labelStrings, message, onBlur, onFocus, onOptionSelect, options, required, showLabel, tooltipText, validationMessage, validationStatus, value, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
122
122
  export {};
@@ -1,6 +1,5 @@
1
1
  import React, { ChangeEvent, ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import './switch.css';
3
- type SwitchPlacement = 'right' | 'below';
4
3
  /**
5
4
  * Prop types for Switch
6
5
  */
@@ -9,6 +8,10 @@ export interface SwitchProps extends ComponentPropsWithoutRef<'div'> {
9
8
  * Is the field checked?
10
9
  */
11
10
  checked?: boolean;
11
+ /**
12
+ * Additional class names for input.
13
+ */
14
+ className?: string;
12
15
  /**
13
16
  * Initial value for the input field. Only valid if the input is uncontrolled. Cannot be used in conjunction with the `checked` prop.
14
17
  */
@@ -26,7 +29,7 @@ export interface SwitchProps extends ComponentPropsWithoutRef<'div'> {
26
29
  */
27
30
  inputProps?: ComponentPropsWithoutRef<'input'>;
28
31
  /**
29
- * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
32
+ * Max-width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
30
33
  */
31
34
  inputWidth?: number;
32
35
  /**
@@ -62,13 +65,12 @@ export interface SwitchProps extends ComponentPropsWithoutRef<'div'> {
62
65
  */
63
66
  showStatusLabel?: boolean;
64
67
  /**
65
- * Determines switch placement, default set to `right`.
68
+ * Determines the placement of the toggle status label. Default set to `right`.
66
69
  */
67
- switchPlacement?: SwitchPlacement;
70
+ statusLabelPlacement?: 'right' | 'left';
68
71
  /**
69
- * Additional class names for input.
72
+ * Determines switch placement, default set to `right`.
70
73
  */
71
- className?: string;
74
+ switchPlacement?: 'right' | 'below';
72
75
  }
73
76
  export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
74
- export {};
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, ChangeEvent, FocusEvent, ReactNode } from 'react';
1
+ import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
2
2
  import { ValidationStatus } from '../input-types';
3
3
  import './text-input.css';
4
4
  type TranslationStringProps = {
@@ -18,6 +18,10 @@ export interface TextInputProps extends ComponentPropsWithoutRef<'div'> {
18
18
  * Auto complete attribute for the input field. The attribute value is either the keyword `off` or `on`, or an ordered list of space-separated tokens. Password fields are automatically off.
19
19
  */
20
20
  autoComplete?: string;
21
+ /**
22
+ * Additional class names for input.
23
+ */
24
+ className?: string;
21
25
  /**
22
26
  * Maximum character count for the character counter. Leave blank for no counter. Not valid for type `password`.
23
27
  */
@@ -52,7 +56,7 @@ export interface TextInputProps extends ComponentPropsWithoutRef<'div'> {
52
56
  */
53
57
  inputProps?: ComponentPropsWithoutRef<'input'>;
54
58
  /**
55
- * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
59
+ * Max-width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
56
60
  */
57
61
  inputWidth?: number;
58
62
  /**
@@ -127,10 +131,6 @@ export interface TextInputProps extends ComponentPropsWithoutRef<'div'> {
127
131
  * Value of the input field. Used to set the value of the input field when controlled. Cannot be used in conjunction with the `defaultValue` prop.
128
132
  */
129
133
  value?: string;
130
- /**
131
- * Additional class names for input.
132
- */
133
- className?: string;
134
134
  }
135
135
  /**
136
136
  * TextInput UI component
@@ -1,4 +1,4 @@
1
- import React, { ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
1
+ import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
2
2
  import { ValidationStatus } from '../input-types';
3
3
  import './textarea.css';
4
4
  export type TranslationStringProps = {
@@ -10,6 +10,10 @@ export type TranslationStringProps = {
10
10
  visibilityToggleShow: string;
11
11
  };
12
12
  export interface TextareaProps {
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Maximum character count for the character counter. Leave blank for no counter.
15
19
  */
@@ -27,13 +31,13 @@ export interface TextareaProps {
27
31
  */
28
32
  id: string;
29
33
  /**
30
- * Should the textarea be resizable by the user?
34
+ * Max-width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
31
35
  */
32
- isResizable?: boolean;
36
+ inputWidth?: number;
33
37
  /**
34
- * Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
38
+ * Should the textarea be resizable by the user?
35
39
  */
36
- inputWidth?: number;
40
+ isResizable?: boolean;
37
41
  /**
38
42
  * Text label associated with the input field.
39
43
  */
@@ -50,7 +54,7 @@ export interface TextareaProps {
50
54
  * Function to help lift the state and retrieve the input's value.
51
55
  * Should accept one argument, the input's value
52
56
  */
53
- onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
57
+ onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
54
58
  /**
55
59
  * onFocus event handler.
56
60
  */
@@ -99,10 +103,6 @@ export interface TextareaProps {
99
103
  * Value of the textarea field. Used to set the value of the textarea field when controlled. Cannot be used in conjunction with the `defaultValue` prop.
100
104
  */
101
105
  value?: string;
102
- /**
103
- * Additional class names
104
- */
105
- className?: string;
106
106
  }
107
107
  /**
108
108
  * Textarea UI component
@@ -1,5 +1,5 @@
1
1
  import React, { ComponentPropsWithoutRef, MouseEventHandler, ReactNode } from 'react';
2
- import { SelectOptionType, SelectOptionGroupType } from './Select/Select';
2
+ import { SelectOptionGroupType, SelectOptionType } from './Select/Select';
3
3
  import './input-utilities.css';
4
4
  export declare const inputCommonClasses: {
5
5
  base: string;
@@ -10,31 +10,23 @@ export declare const inputCommonClasses: {
10
10
  readonly: string;
11
11
  };
12
12
  export declare const getInputWidthStyle: (inputWidth: number) => {
13
- width: string;
13
+ maxWidth: string;
14
14
  };
15
15
  export declare const stripUrlProtocol: (value: string) => string;
16
16
  export declare const RequiredIcon: () => import("react/jsx-runtime").JSX.Element;
17
17
  interface InputLabelProps {
18
18
  /**
19
- * Input ID.
20
- */
21
- id: string;
22
- /**
23
- * Label text.
24
- */
25
- label: string;
26
- /**
27
- * Should the label be visible?
28
- */
29
- showLabel: boolean;
30
- /**
31
- * Is the field required?
19
+ * Additional class names.
32
20
  */
33
- required: boolean;
21
+ className?: string;
34
22
  /**
35
23
  * Is the field disabled?
36
24
  */
37
25
  disabled: boolean;
26
+ /**
27
+ * Input ID.
28
+ */
29
+ id: string;
38
30
  /**
39
31
  * Is the label a legend? Should be used when the input is a fieldset.
40
32
  */
@@ -45,23 +37,31 @@ interface InputLabelProps {
45
37
  */
46
38
  isPseudoLabel?: boolean;
47
39
  /**
48
- * Optional tooltip text to display additional information.
40
+ * Label text.
49
41
  */
50
- tooltipText?: string;
42
+ label: string;
51
43
  /**
52
- * Additional class names.
44
+ * Is the field required?
53
45
  */
54
- className?: string;
46
+ required: boolean;
47
+ /**
48
+ * Should the label be visible?
49
+ */
50
+ showLabel: boolean;
51
+ /**
52
+ * Optional tooltip text to display additional information.
53
+ */
54
+ tooltipText?: string;
55
55
  }
56
- export declare const InputLabel: ({ id, label, showLabel, required, disabled, isLegend, isPseudoLabel, tooltipText, className, }: InputLabelProps) => import("react/jsx-runtime").JSX.Element;
57
- export declare const InputMessage: ({ forInputGroup, id, message, hasValidationMessage, validationMessageHasDecorators, validationStatus, className, }: {
56
+ export declare const InputLabel: ({ className, disabled, id, isLegend, isPseudoLabel, label, required, showLabel, tooltipText, }: InputLabelProps) => import("react/jsx-runtime").JSX.Element;
57
+ export declare const InputMessage: ({ className, forInputGroup, hasValidationMessage, id, message, validationMessageHasDecorators, validationStatus, }: {
58
+ className?: string;
58
59
  forInputGroup?: boolean;
60
+ hasValidationMessage?: boolean;
59
61
  id: string;
60
62
  message?: string | ReactNode;
61
- hasValidationMessage?: boolean;
62
63
  validationMessageHasDecorators?: boolean;
63
64
  validationStatus?: string;
64
- className?: string;
65
65
  }) => import("react/jsx-runtime").JSX.Element;
66
66
  type DecoratorVariants = 'search' | 'error' | 'success' | 'filter';
67
67
  export declare const InputDecorator: ({ variant }: {
@@ -71,14 +71,14 @@ export declare const SearchShortcut: ({ inputId, shortcutLabel, }: {
71
71
  inputId: string;
72
72
  shortcutLabel: string;
73
73
  }) => import("react/jsx-runtime").JSX.Element;
74
- export declare const ClearButton: ({ id, clearLabel, handleClearInput, }: {
75
- id: string;
74
+ export declare const ClearButton: ({ clearLabel, handleClearInput, id, }: {
76
75
  clearLabel: string;
77
76
  handleClearInput: MouseEventHandler<HTMLButtonElement>;
78
- }) => import("react/jsx-runtime").JSX.Element;
79
- export declare const CharacterCounter: ({ id, currentLength, maxLength, overLimitMessage, }: {
80
77
  id: string;
78
+ }) => import("react/jsx-runtime").JSX.Element;
79
+ export declare const CharacterCounter: ({ currentLength, id, maxLength, overLimitMessage, }: {
81
80
  currentLength: number;
81
+ id: string;
82
82
  maxLength: number;
83
83
  overLimitMessage: string;
84
84
  }) => import("react/jsx-runtime").JSX.Element;
@@ -89,8 +89,8 @@ export declare const HiddenLabel: ({ label, ...props }: {
89
89
  export declare const isOptionGroup: (option: SelectOptionType | SelectOptionGroupType) => option is SelectOptionGroupType;
90
90
  interface SelectOptionProps extends ComponentPropsWithoutRef<'li'> {
91
91
  children?: ReactNode;
92
- isActive?: boolean;
93
92
  className?: string;
93
+ isActive?: boolean;
94
94
  }
95
95
  export declare const SelectOption: React.ForwardRefExoticComponent<SelectOptionProps & React.RefAttributes<HTMLLIElement>>;
96
96
  export {};
@@ -5,6 +5,10 @@ import './skeleton.css';
5
5
  * Prop types for Skeleton
6
6
  */
7
7
  export interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
8
12
  /**
9
13
  * Skeleton color scheme.
10
14
  */
@@ -51,12 +55,8 @@ export interface SkeletonProps extends ComponentPropsWithoutRef<'div'> {
51
55
  * This is only used when the shape is `text-block`, `code-block`, or `code-block-prefix`.
52
56
  */
53
57
  textSize?: TypeScaleOptions;
54
- /**
55
- * Additional class names
56
- */
57
- className?: string;
58
58
  }
59
59
  /**
60
60
  * Skeleton UI component
61
61
  */
62
- export declare const Skeleton: ({ colorType, isAnimated, shape, size, textIsJustified, textLineCount, textSize, className, ...props }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
62
+ export declare const Skeleton: ({ className, colorType, isAnimated, shape, size, textIsJustified, textLineCount, textSize, ...props }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,10 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  import './spinner.css';
3
3
  export interface SpinnerProps extends ComponentPropsWithoutRef<'span'> {
4
+ /**
5
+ * Additional class names
6
+ */
7
+ className?: string;
4
8
  /**
5
9
  * Spinner color
6
10
  */
@@ -21,12 +25,8 @@ export interface SpinnerProps extends ComponentPropsWithoutRef<'span'> {
21
25
  * Spinner size
22
26
  */
23
27
  size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
24
- /**
25
- * Additional class names
26
- */
27
- className?: string;
28
28
  }
29
29
  /**
30
30
  * Spinner UI component
31
31
  */
32
- export declare const Spinner: ({ colorType, isInline, label, showLabel, size, className, ...props }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const Spinner: ({ className, colorType, isInline, label, showLabel, size, ...props }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
@@ -8,16 +8,16 @@ export interface BreadcrumbProps extends ComponentPropsWithoutRef<'div'> {
8
8
  * Aria label for the breadcrumbs navigation.
9
9
  */
10
10
  ariaLabel?: string;
11
- /**
12
- * Array of breadcrumb items.
13
- */
14
- crumbs: ReactElement[];
15
11
  /**
16
12
  * Additional class names
17
13
  */
18
14
  className?: string;
15
+ /**
16
+ * Array of breadcrumb items.
17
+ */
18
+ crumbs: ReactElement[];
19
19
  }
20
20
  /**
21
21
  * Breadcrumb UI component
22
22
  */
23
- export declare const Breadcrumb: ({ ariaLabel, crumbs, className, ...props }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const Breadcrumb: ({ ariaLabel, className, crumbs, ...props }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,10 @@ export interface ButtonNavProps extends ComponentPropsWithRef<'nav'> {
10
10
  * Aria label for the navigation.
11
11
  */
12
12
  ariaLabel: string;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Menu items to render.
15
19
  */
@@ -18,12 +22,8 @@ export interface ButtonNavProps extends ComponentPropsWithRef<'nav'> {
18
22
  * Size of the Buttons.
19
23
  */
20
24
  size?: 'sm' | 'md';
21
- /**
22
- * Additional class names
23
- */
24
- className?: string;
25
25
  }
26
26
  /**
27
27
  * ButtonNav UI component
28
28
  */
29
- export declare const ButtonNav: ({ ariaLabel, menuItems, size, className, ...props }: ButtonNavProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const ButtonNav: ({ ariaLabel, className, menuItems, size, ...props }: ButtonNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,10 @@ export interface DashboardNavProps extends ComponentPropsWithoutRef<'nav'> {
9
9
  * Aria label for the navigation.
10
10
  */
11
11
  ariaLabel: string;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Labels for translatable strings.
14
18
  */
@@ -24,12 +28,8 @@ export interface DashboardNavProps extends ComponentPropsWithoutRef<'nav'> {
24
28
  * Text to display in the mobile menu trigger button when no active link is found.
25
29
  */
26
30
  mobileMenuSelectTextFallback?: string;
27
- /**
28
- * Additional class names
29
- */
30
- className?: string;
31
31
  }
32
32
  /**
33
33
  * DashboardNav UI component
34
34
  */
35
- export declare const DashboardNav: ({ ariaLabel, labels, menuItems, mobileMenuSelectTextFallback, className, ...props }: DashboardNavProps) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const DashboardNav: ({ ariaLabel, className, labels, menuItems, mobileMenuSelectTextFallback, ...props }: DashboardNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { NavigationItem } from '@components/navigation/navigation-types';
2
1
  import { PDSIcon } from '@components/icons/Icon/Icon';
2
+ import { NavigationItem } from '@components/navigation/navigation-types';
3
3
  import './dashboard-nav.css';
4
4
  export type DashboardNavItemProps = NavigationItem & {
5
5
  /**
@@ -10,10 +10,18 @@ type LabelStrings = {
10
10
  * Prop types for DashboardSearch
11
11
  */
12
12
  export interface DashboardSearchProps extends ComponentPropsWithoutRef<'div'> {
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Is the search input disabled?
15
19
  */
16
20
  disabled?: boolean;
21
+ /**
22
+ * Offset for the starting right position for the search input in rems.
23
+ */
24
+ horizontalOffset?: number;
17
25
  /**
18
26
  * ID for the component.
19
27
  */
@@ -54,17 +62,9 @@ export interface DashboardSearchProps extends ComponentPropsWithoutRef<'div'> {
54
62
  * Array of sites to search through.
55
63
  */
56
64
  siteList?: SiteOption[];
57
- /**
58
- * Offset for the starting right position for the search input in rems.
59
- */
60
- horizontalOffset?: number;
61
- /**
62
- * Additional class names
63
- */
64
- className?: string;
65
65
  }
66
66
  /**
67
67
  * DashboardSearch UI component
68
68
  */
69
- export declare const DashboardSearch: ({ disabled, id, isLoading, label, labelStrings, loadingText, noResultsText, onFocus, onOptionSelect, placeholder, siteList, horizontalOffset, className, ...props }: DashboardSearchProps) => import("react/jsx-runtime").JSX.Element;
69
+ export declare const DashboardSearch: ({ className, disabled, horizontalOffset, id, isLoading, label, labelStrings, loadingText, noResultsText, onFocus, onOptionSelect, placeholder, siteList, ...props }: DashboardSearchProps) => import("react/jsx-runtime").JSX.Element;
70
70
  export {};
@@ -24,16 +24,16 @@ export type SiteOption = {
24
24
  };
25
25
  /** Site option display props. */
26
26
  export interface SiteOptionDisplayProps extends ComponentPropsWithoutRef<'div'> {
27
- /**
28
- * Site option to display.
29
- */
30
- option: SiteOption;
31
27
  /**
32
28
  * Additional class names
33
29
  */
34
30
  className?: string;
31
+ /**
32
+ * Site option to display.
33
+ */
34
+ option: SiteOption;
35
35
  }
36
36
  /**
37
37
  * UI component to display site options.
38
38
  */
39
- export declare const SiteOptionDisplay: ({ option, className, ...props }: SiteOptionDisplayProps) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const SiteOptionDisplay: ({ className, option, ...props }: SiteOptionDisplayProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,6 +5,10 @@ import './dropdown-menu.css';
5
5
  * Prop types for DropdownMenu
6
6
  */
7
7
  export interface DropdownMenuProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Additional class names
10
+ */
11
+ className?: string;
8
12
  /**
9
13
  * Heading text. If a string is passed, it will be rendered as a heading. If a link is passed, it will be rendered as a link.
10
14
  */
@@ -17,12 +21,8 @@ export interface DropdownMenuProps extends ComponentPropsWithoutRef<'div'> {
17
21
  * Text to display in the mobile menu trigger button when no active link is found.
18
22
  */
19
23
  selectTextFallback: string;
20
- /**
21
- * Additional class names
22
- */
23
- className?: string;
24
24
  }
25
25
  /**
26
26
  * DropdownMenu UI component
27
27
  */
28
- export declare const DropdownMenu: ({ headingText, menuItems, selectTextFallback, className, ...props }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
28
+ export declare const DropdownMenu: ({ className, headingText, menuItems, selectTextFallback, ...props }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,6 @@
1
- import React, { ComponentPropsWithoutRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { MenuItem } from '../navigation-types';
2
3
  import './nav-menu.css';
3
- /**
4
- * Prop types for MenuItem
5
- */
6
- export interface MenuItem {
7
- id?: string;
8
- label: string;
9
- links?: MenuItem[];
10
- linkContent?: React.ReactNode;
11
- isActive?: boolean;
12
- isSeparator?: boolean;
13
- }
14
4
  /**
15
5
  * Prop types for NavMenu
16
6
  */
@@ -19,6 +9,10 @@ interface NavMenuProps extends ComponentPropsWithoutRef<'nav'> {
19
9
  * Aria label for `nav` element.
20
10
  */
21
11
  ariaLabel: string;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
22
16
  /**
23
17
  * Color scheme.
24
18
  */
@@ -31,13 +25,9 @@ interface NavMenuProps extends ComponentPropsWithoutRef<'nav'> {
31
25
  * Mobile menu will be enabled when viewport is at or below this number in pixels.
32
26
  */
33
27
  mobileMenuMaxWidth?: number;
34
- /**
35
- * Additional class names
36
- */
37
- className?: string;
38
28
  }
39
29
  /**
40
30
  * NavMenu UI component
41
31
  */
42
- export declare const NavMenu: ({ ariaLabel, colorType, menuItems, mobileMenuMaxWidth, className, ...props }: NavMenuProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const NavMenu: ({ ariaLabel, className, colorType, menuItems, mobileMenuMaxWidth, ...props }: NavMenuProps) => import("react/jsx-runtime").JSX.Element;
43
33
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { MenuItem } from './NavMenu';
2
+ import { MenuItem } from '../navigation-types';
3
3
  /**
4
4
  * Prop types for NavMenuDropdown
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import { PantheonLogoDisplayType } from '@components/PantheonLogo/PantheonLogo';
3
2
  import { ContainerWidth } from '@libs/types/custom-types';
3
+ import { PantheonLogoDisplayType } from '@components/PantheonLogo/PantheonLogo';
4
4
  import './navbar.css';
5
5
  /**
6
6
  * Prop types for Navbar
@@ -10,6 +10,10 @@ export interface NavbarProps extends ComponentPropsWithoutRef<'header'> {
10
10
  * Navbar content.
11
11
  */
12
12
  children?: ReactNode;
13
+ /**
14
+ * Additional class names
15
+ */
16
+ className?: string;
13
17
  /**
14
18
  * Color type of the navbar.
15
19
  */
@@ -49,12 +53,8 @@ export interface NavbarProps extends ComponentPropsWithoutRef<'header'> {
49
53
  closeMobileNav: string;
50
54
  openMobileNav: string;
51
55
  };
52
- /**
53
- * Additional class names
54
- */
55
- className?: string;
56
56
  }
57
57
  /**
58
58
  * Navbar UI component
59
59
  */
60
- export declare const Navbar: ({ children, colorType, containerWidth, hideBorder, hideLogo, logoDisplayType, logoLinkContent, logoSrc, logoSubBrand, translationStrings, className, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
60
+ export declare const Navbar: ({ children, className, colorType, containerWidth, hideBorder, hideLogo, logoDisplayType, logoLinkContent, logoSrc, logoSubBrand, translationStrings, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,10 @@ export interface SideNavProps extends ComponentPropsWithoutRef<'nav'> {
9
9
  * Aria label for the navigation.
10
10
  */
11
11
  ariaLabel: string;
12
+ /**
13
+ * Additional class names
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Heading text. If a link is passed, it will be rendered as a link.
14
18
  */
@@ -28,12 +32,8 @@ export interface SideNavProps extends ComponentPropsWithoutRef<'nav'> {
28
32
  * Text to display in the mobile menu trigger button when no active link is found.
29
33
  */
30
34
  mobileMenuSelectTextFallback?: string;
31
- /**
32
- * Additional class names
33
- */
34
- className?: string;
35
35
  }
36
36
  /**
37
37
  * SideNav UI component
38
38
  */
39
- export declare const SideNav: ({ ariaLabel, headingText, labels, menuItems, mobileMenuSelectTextFallback, className, ...props }: SideNavProps) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const SideNav: ({ ariaLabel, className, headingText, labels, menuItems, mobileMenuSelectTextFallback, ...props }: SideNavProps) => import("react/jsx-runtime").JSX.Element;