@pantheon-systems/pds-toolkit-react 1.0.0-dev.9999 → 1.1.0
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/README.md +1 -1
- package/_dist/components/Avatar/Avatar.d.ts +6 -6
- package/_dist/components/BranchDiff/BranchDiff.d.ts +10 -10
- package/_dist/components/CTALink/CTALink.d.ts +6 -6
- package/_dist/components/CTASlice/CTASlice.d.ts +7 -7
- package/_dist/components/Callout/Callout.d.ts +9 -8
- package/_dist/components/Callout/sample-callout-content.d.ts +1 -2
- package/_dist/components/CodeBlock/CodeBlock.d.ts +6 -6
- package/_dist/components/ComparisonList/ComparisonList.d.ts +7 -7
- package/_dist/components/DashboardStat/DashboardStat.d.ts +11 -11
- package/_dist/components/FileDiff/FileDiff.d.ts +11 -11
- package/_dist/components/FlowSteps/FlowSteps.d.ts +10 -10
- package/_dist/components/FlowSteps/example-steps.d.ts +3 -4
- package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +6 -6
- package/_dist/components/Modal/Modal.d.ts +6 -6
- package/_dist/components/Pagination/Pagination.d.ts +8 -8
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +6 -6
- package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +3 -4
- package/_dist/components/Picture/Picture.d.ts +15 -15
- package/_dist/components/Popover/Popover.d.ts +22 -23
- package/_dist/components/PullQuote/PullQuote.d.ts +7 -7
- package/_dist/components/RefreshChecker/RefreshChecker.d.ts +10 -10
- package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +17 -12
- package/_dist/components/Skiplink/Skiplink.d.ts +6 -6
- package/_dist/components/SocialLinks/SocialLinks.d.ts +8 -8
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +8 -7
- package/_dist/components/Table/Table.d.ts +9 -9
- package/_dist/components/TableOfContents/TableOfContents.d.ts +9 -9
- package/_dist/components/Tabs/Tabs.d.ts +15 -15
- package/_dist/components/Tag/Tag.d.ts +8 -8
- package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +9 -9
- package/_dist/components/Tooltip/Tooltip.d.ts +7 -7
- package/_dist/components/VideoEmbed/VideoEmbed.d.ts +6 -6
- package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +7 -7
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +8 -7
- package/_dist/components/badges/Tally/Tally.d.ts +8 -8
- package/_dist/components/buttons/Button/Button.d.ts +11 -10
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +8 -8
- package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +6 -6
- package/_dist/components/buttons/CloseButton/CloseButton.d.ts +6 -6
- package/_dist/components/buttons/IconButton/IconButton.d.ts +12 -11
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +11 -11
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +13 -14
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +9 -9
- package/_dist/components/buttons/SplitButton/split-button-sample-data.d.ts +1 -2
- package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +25 -11
- package/_dist/components/cards/Card/Card.d.ts +7 -7
- package/_dist/components/cards/CardHeading/CardHeading.d.ts +6 -7
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +10 -10
- package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +7 -7
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +7 -7
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +12 -12
- package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +16 -16
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +22 -22
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +13 -8
- package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +9 -9
- package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +27 -27
- package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +15 -15
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +7 -7
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +7 -7
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +11 -11
- package/_dist/components/footer/SiteFooter/footer-content.d.ts +1 -2
- package/_dist/components/icons/Icon/Icon.d.ts +19 -8
- package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +6 -6
- package/_dist/components/icons/PaymentIcon/svgData.d.ts +5 -6
- package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +3 -3
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +7 -7
- package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +9 -9
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +8 -8
- package/_dist/components/inputs/Combobox/Combobox.d.ts +22 -17
- package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +12 -12
- package/_dist/components/inputs/Datepicker/Datepicker.d.ts +96 -0
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +6 -6
- package/_dist/components/inputs/InputGroup/InputGroup.d.ts +2 -2
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +13 -13
- package/_dist/components/inputs/Select/Select.d.ts +23 -14
- package/_dist/components/inputs/Select/select-sample-data.d.ts +6 -0
- package/_dist/components/inputs/Switch/Switch.d.ts +9 -7
- package/_dist/components/inputs/TextInput/TextInput.d.ts +9 -9
- package/_dist/components/inputs/Textarea/Textarea.d.ts +14 -13
- package/_dist/components/inputs/input-utilities.d.ts +35 -35
- package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +7 -7
- package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +6 -6
- package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +6 -6
- package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +7 -7
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +6 -6
- package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +5 -6
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +12 -12
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +7 -7
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +8 -18
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +4 -4
- package/_dist/components/navigation/Navbar/Navbar.d.ts +8 -8
- package/_dist/components/navigation/SideNav/SideNav.d.ts +7 -7
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +7 -7
- package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +6 -6
- package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +5 -6
- package/_dist/components/navigation/TabMenu/TabMenu.d.ts +10 -10
- package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +4 -5
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +7 -7
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +24 -10
- package/_dist/components/navigation/navigation-utilities.d.ts +3 -3
- package/_dist/components/notifications/Banner/Banner.d.ts +11 -9
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +8 -7
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +9 -8
- package/_dist/components/notifications/Toaster/Toast.d.ts +6 -6
- package/_dist/components/notifications/Toaster/Toaster.d.ts +6 -6
- package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
- package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +6 -6
- package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +6 -6
- package/_dist/components/panels/Panel/Panel.d.ts +16 -9
- package/_dist/components/panels/PanelList/PanelList.d.ts +8 -4
- package/_dist/components/panels/PanelList/PanelRow.d.ts +6 -6
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +8 -7
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +6 -6
- package/_dist/components/steppers/Stepper/Stepper.d.ts +7 -7
- package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +7 -7
- package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +6 -6
- package/_dist/components/steppers/VerticalStepper/vertical-stepper-sample-data.d.ts +3 -4
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +9 -9
- package/_dist/components/tiles/Tile/Tile.d.ts +7 -7
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +8 -8
- package/_dist/css/component-css/pds-avatar.css +1 -1
- package/_dist/css/component-css/pds-button.css +1 -1
- package/_dist/css/component-css/pds-checkbox.css +1 -1
- package/_dist/css/component-css/pds-code-block.css +1 -1
- package/_dist/css/component-css/pds-combobox-multiselect.css +1 -1
- package/_dist/css/component-css/pds-combobox.css +1 -1
- package/_dist/css/component-css/pds-dashboard-nav.css +1 -1
- package/_dist/css/component-css/pds-dashboard-search.css +1 -1
- package/_dist/css/component-css/pds-datepicker.css +3 -0
- package/_dist/css/component-css/pds-index.css +34 -16
- package/_dist/css/component-css/pds-indicator-badge.css +5 -3
- package/_dist/css/component-css/pds-input-utilities.css +1 -1
- package/_dist/css/component-css/pds-menu-button.css +1 -2
- package/_dist/css/component-css/pds-navbar.css +1 -1
- package/_dist/css/component-css/pds-panel-list.css +1 -1
- package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
- package/_dist/css/component-css/pds-popover.css +1 -1
- package/_dist/css/component-css/pds-progress-bar.css +1 -1
- package/_dist/css/component-css/pds-progress-ring.css +1 -1
- package/_dist/css/component-css/pds-radio-group.css +1 -1
- package/_dist/css/component-css/pds-section-message.css +1 -1
- package/_dist/css/component-css/pds-segmented-button.css +1 -1
- package/_dist/css/component-css/pds-select.css +1 -1
- package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
- package/_dist/css/component-css/pds-side-nav-global.css +1 -1
- package/_dist/css/component-css/pds-side-nav.css +1 -2
- package/_dist/css/component-css/pds-site-card.css +1 -1
- package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -1
- package/_dist/css/component-css/pds-switch.css +17 -1
- package/_dist/css/component-css/pds-tab-menu.css +1 -1
- package/_dist/css/component-css/pds-table.css +1 -1
- package/_dist/css/component-css/pds-tabs.css +1 -1
- package/_dist/css/component-css/pds-utility-button.css +1 -1
- package/_dist/css/component-css/pds-workspace-selector.css +1 -1
- package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +7 -0
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +7 -0
- package/_dist/css/pds-components.css +34 -16
- package/_dist/css/pds-core.css +2 -2
- package/_dist/css/pds-layouts.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +5 -2
- package/_dist/index.js +8309 -8595
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/AppLayout/AppLayout.d.ts +7 -7
- package/_dist/layouts/Container/Container.d.ts +7 -7
- package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +13 -13
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +8 -7
- package/_dist/layouts/DocsLayout/DocsLayout.d.ts +7 -7
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +11 -11
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +3 -3
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +9 -8
- package/_dist/layouts/StepperLayout/StepperLayout.d.ts +2 -2
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +7 -7
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +7 -7
- package/_dist/{components/navigation/DashboardSearch → libs/components/SiteOptionDisplay}/SiteOptionDisplay.d.ts +11 -7
- package/_dist/libs/components/sb-docs-toc-layout.d.ts +2 -2
- package/_dist/libs/components/utility-components.d.ts +4 -4
- package/_dist/libs/types/custom-types.d.ts +46 -10
- package/_dist/{components/navigation → libs/types}/navigation-types.d.ts +15 -7
- package/_dist/mocks/data/navigation-items.d.ts +58 -147
- package/_dist/mocks/markup/dashboard-main-content.d.ts +3 -4
- package/_dist/mocks/markup/dashboard-navigation.d.ts +3 -4
- package/_dist/mocks/markup/inputs.d.ts +1 -2
- package/_dist/mocks/markup/modal.d.ts +1 -2
- package/_dist/mocks/markup/panel-row-content.d.ts +5 -6
- package/_dist/utilities/color/color-preview-swatches.d.ts +3 -4
- package/_dist/utilities/context-providers/OverlayContext/OverlayContext.d.ts +12 -0
- package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +1 -1
- package/_dist/vars/animation.d.ts +2 -2
- package/package.json +50 -43
- /package/_dist/{components/inputs → libs/types}/input-types.d.ts +0 -0
- /package/_dist/{layouts → libs/types}/layout-types.d.ts +0 -0
|
@@ -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
|
-
*
|
|
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
|
|
68
|
+
* Determines the placement of the toggle status label. Default set to `right`.
|
|
66
69
|
*/
|
|
67
|
-
|
|
70
|
+
statusLabelPlacement?: 'right' | 'left';
|
|
68
71
|
/**
|
|
69
|
-
*
|
|
72
|
+
* Determines switch placement, default set to `right`.
|
|
70
73
|
*/
|
|
71
|
-
|
|
74
|
+
switchPlacement?: 'right' | 'below';
|
|
72
75
|
}
|
|
73
76
|
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
74
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import { ValidationStatus } from '
|
|
1
|
+
import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
3
|
import './text-input.css';
|
|
4
|
-
type
|
|
4
|
+
type LabelStrings = {
|
|
5
5
|
clearButton: string;
|
|
6
6
|
counterOverLimit?: string;
|
|
7
7
|
searchShortcut: string;
|
|
@@ -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
|
-
*
|
|
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
|
/**
|
|
@@ -110,7 +114,7 @@ export interface TextInputProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
110
114
|
/**
|
|
111
115
|
* Translation strings for various labels or other visually-hidden text.
|
|
112
116
|
*/
|
|
113
|
-
translationStrings?:
|
|
117
|
+
translationStrings?: LabelStrings;
|
|
114
118
|
/**
|
|
115
119
|
* Type of input field to use.
|
|
116
120
|
*/
|
|
@@ -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,7 +1,7 @@
|
|
|
1
|
-
import React, { ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
|
|
2
|
-
import { ValidationStatus } from '
|
|
1
|
+
import React, { ChangeEvent, ComponentPropsWithoutRef, FocusEvent, ReactNode } from 'react';
|
|
2
|
+
import { ValidationStatus } from '../../../libs/types/input-types';
|
|
3
3
|
import './textarea.css';
|
|
4
|
-
|
|
4
|
+
type LabelStrings = {
|
|
5
5
|
clearButton: string;
|
|
6
6
|
counterOverLimit?: string;
|
|
7
7
|
searchShortcut: string;
|
|
@@ -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
|
-
*
|
|
34
|
+
* Max-width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
|
|
31
35
|
*/
|
|
32
|
-
|
|
36
|
+
inputWidth?: number;
|
|
33
37
|
/**
|
|
34
|
-
*
|
|
38
|
+
* Should the textarea be resizable by the user?
|
|
35
39
|
*/
|
|
36
|
-
|
|
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:
|
|
57
|
+
onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
54
58
|
/**
|
|
55
59
|
* onFocus event handler.
|
|
56
60
|
*/
|
|
@@ -86,7 +90,7 @@ export interface TextareaProps {
|
|
|
86
90
|
/**
|
|
87
91
|
* Translation strings for various labels or other visually-hidden text.
|
|
88
92
|
*/
|
|
89
|
-
translationStrings?:
|
|
93
|
+
translationStrings?: LabelStrings;
|
|
90
94
|
/**
|
|
91
95
|
* Validation message for the textarea field based on the validation status.
|
|
92
96
|
*/
|
|
@@ -99,12 +103,9 @@ 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
|
|
109
109
|
*/
|
|
110
110
|
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
111
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
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
|
-
|
|
13
|
+
maxWidth: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const stripUrlProtocol: (value: string) => string;
|
|
16
|
-
export declare const RequiredIcon: () =>
|
|
16
|
+
export declare const RequiredIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
interface InputLabelProps {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
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
|
-
|
|
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,52 +37,60 @@ interface InputLabelProps {
|
|
|
45
37
|
*/
|
|
46
38
|
isPseudoLabel?: boolean;
|
|
47
39
|
/**
|
|
48
|
-
*
|
|
40
|
+
* Label text.
|
|
49
41
|
*/
|
|
50
|
-
|
|
42
|
+
label: string;
|
|
51
43
|
/**
|
|
52
|
-
*
|
|
44
|
+
* Is the field required?
|
|
53
45
|
*/
|
|
54
|
-
|
|
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: ({
|
|
57
|
-
export declare const InputMessage: ({ forInputGroup, id, message,
|
|
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
|
-
|
|
65
|
-
}) => React.JSX.Element;
|
|
65
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
66
66
|
type DecoratorVariants = 'search' | 'error' | 'success' | 'filter';
|
|
67
67
|
export declare const InputDecorator: ({ variant }: {
|
|
68
68
|
variant: DecoratorVariants;
|
|
69
|
-
}) =>
|
|
69
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
70
70
|
export declare const SearchShortcut: ({ inputId, shortcutLabel, }: {
|
|
71
71
|
inputId: string;
|
|
72
72
|
shortcutLabel: string;
|
|
73
|
-
}) =>
|
|
74
|
-
export declare const ClearButton: ({
|
|
75
|
-
id: string;
|
|
73
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
74
|
+
export declare const ClearButton: ({ clearLabel, handleClearInput, id, }: {
|
|
76
75
|
clearLabel: string;
|
|
77
76
|
handleClearInput: MouseEventHandler<HTMLButtonElement>;
|
|
78
|
-
}) => React.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;
|
|
85
85
|
export declare const HiddenLabel: ({ label, ...props }: {
|
|
86
86
|
[x: string]: any;
|
|
87
87
|
label: any;
|
|
88
|
-
}) =>
|
|
88
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
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 {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SpacingScaleOptions, TypeScaleOptions } from '
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { SpacingScaleOptions, TypeScaleOptions } from '../../../libs/types/custom-types';
|
|
3
3
|
import './skeleton.css';
|
|
4
4
|
/**
|
|
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,
|
|
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
|
-
import
|
|
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,
|
|
32
|
+
export declare const Spinner: ({ className, colorType, isInline, label, showLabel, size, ...props }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
2
|
import './breadcrumb.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for Breadcrumb
|
|
@@ -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,
|
|
23
|
+
export declare const Breadcrumb: ({ ariaLabel, className, crumbs, ...props }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NavigationItem } from '
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
3
3
|
import './button-nav.css';
|
|
4
4
|
export type ButtonNavItem = Omit<NavigationItem, 'links'>;
|
|
5
5
|
/**
|
|
@@ -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,
|
|
29
|
+
export declare const ButtonNav: ({ ariaLabel, className, menuItems, size, ...props }: ButtonNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { DashboardNavItemProps } from './DashboardNavItem';
|
|
3
3
|
import './dashboard-nav.css';
|
|
4
4
|
/**
|
|
@@ -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,
|
|
35
|
+
export declare const DashboardNav: ({ ariaLabel, className, labels, menuItems, mobileMenuSelectTextFallback, ...props }: DashboardNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NavigationItem } from '
|
|
3
|
-
import { PDSIcon } from '@components/icons/Icon/Icon';
|
|
1
|
+
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
4
3
|
import './dashboard-nav.css';
|
|
5
|
-
export
|
|
4
|
+
export interface DashboardNavItemProps extends NavigationItem {
|
|
6
5
|
/**
|
|
7
6
|
* Icon to display next to the link content.
|
|
8
7
|
*/
|
|
@@ -18,8 +17,8 @@ export type DashboardNavItemProps = NavigationItem & {
|
|
|
18
17
|
submenu: string;
|
|
19
18
|
toggle: string;
|
|
20
19
|
};
|
|
21
|
-
}
|
|
20
|
+
}
|
|
22
21
|
/**
|
|
23
22
|
* DashboardNavItem UI component
|
|
24
23
|
*/
|
|
25
|
-
export declare const DashboardNavItem: ({ icon, isActive, isSidebarExpanded, labels, linkContent, links, }: DashboardNavItemProps) =>
|
|
24
|
+
export declare const DashboardNavItem: ({ icon, isActive, isSidebarExpanded, labels, linkContent, links, }: DashboardNavItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { SiteOption } from '
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { SiteOption } from '../../../libs/components/SiteOptionDisplay/SiteOptionDisplay';
|
|
3
3
|
import './dashboard-search.css';
|
|
4
4
|
type LabelStrings = {
|
|
5
5
|
clearButton?: string;
|
|
6
6
|
inputInstructions?: string;
|
|
7
|
-
openSearchButton?: string;
|
|
8
7
|
};
|
|
9
8
|
/**
|
|
10
9
|
* Prop types for DashboardSearch
|
|
11
10
|
*/
|
|
12
11
|
export interface DashboardSearchProps extends ComponentPropsWithoutRef<'div'> {
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
13
16
|
/**
|
|
14
17
|
* Is the search input disabled?
|
|
15
18
|
*/
|
|
16
19
|
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Offset for the starting right position for the search input in rems.
|
|
22
|
+
* @deprecated This prop is no longer used since absolute positioning was removed.
|
|
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,
|
|
69
|
+
export declare const DashboardSearch: ({ className, disabled, horizontalOffset: _horizontalOffset, id, isLoading, label, labelStrings, loadingText, noResultsText, onFocus, onOptionSelect, placeholder, siteList, ...props }: DashboardSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
70
70
|
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NavigationItem } from '
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
|
+
import { NavigationItem } from '../../../libs/types/navigation-types';
|
|
3
3
|
import './dropdown-menu.css';
|
|
4
4
|
/**
|
|
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,
|
|
28
|
+
export declare const DropdownMenu: ({ className, headingText, menuItems, selectTextFallback, ...props }: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { NavMenuItem } from '../../../libs/types/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
|
*/
|
|
@@ -26,18 +20,14 @@ interface NavMenuProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
26
20
|
/**
|
|
27
21
|
* Menu Items.
|
|
28
22
|
*/
|
|
29
|
-
menuItems?:
|
|
23
|
+
menuItems?: NavMenuItem[];
|
|
30
24
|
/**
|
|
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,
|
|
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
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { NavMenuItem } from '../../../libs/types/navigation-types';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for NavMenuDropdown
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ interface NavMenuDropdownProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
7
7
|
/**
|
|
8
8
|
* Dropdown items.
|
|
9
9
|
*/
|
|
10
|
-
items?:
|
|
10
|
+
items?: NavMenuItem[];
|
|
11
11
|
/**
|
|
12
12
|
* Dropdown label.
|
|
13
13
|
*/
|
|
@@ -20,5 +20,5 @@ interface NavMenuDropdownProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
20
20
|
/**
|
|
21
21
|
* NavMenuDropdown UI component
|
|
22
22
|
*/
|
|
23
|
-
export declare const NavMenuDropdown: ({ items, label, mobileMenuMaxWidth, }: NavMenuDropdownProps) =>
|
|
23
|
+
export declare const NavMenuDropdown: ({ items, label, mobileMenuMaxWidth, }: NavMenuDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { ContainerWidth } from '../../../libs/types/custom-types';
|
|
3
|
+
import { PantheonLogoDisplayType } from '../../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,
|
|
60
|
+
export declare const Navbar: ({ children, className, colorType, containerWidth, hideBorder, hideLogo, logoDisplayType, logoLinkContent, logoSrc, logoSubBrand, translationStrings, ...props }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
|