@pantheon-systems/pds-toolkit-react 1.0.0-dev.15 → 1.0.0-dev.151
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 +31 -1
- package/_dist/components/Avatar/Avatar.d.ts +19 -0
- package/_dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/_dist/components/Breadcrumbs/BreadcrumbsContent.d.ts +12 -0
- package/_dist/components/Breadcrumbs/BreadcrumbsContext.d.ts +17 -0
- package/_dist/components/Breadcrumbs/ListItem.d.ts +14 -0
- package/_dist/components/Breadcrumbs/MobileCrumbs.d.ts +2 -0
- package/_dist/components/CTALink/CTALink.d.ts +20 -0
- package/_dist/components/CTASlice/CTASlice.d.ts +34 -0
- package/_dist/components/Callout/Callout.d.ts +24 -0
- package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
- package/_dist/components/ComparisonList/ComparisonList.d.ts +42 -0
- package/_dist/components/Heading/Heading.d.ts +15 -0
- package/_dist/components/Icon/Icon.d.ts +624 -0
- package/_dist/components/Icon/iconList.d.ts +1 -0
- package/_dist/components/Modal/Modal.d.ts +40 -0
- package/_dist/components/Pager/AdvancedPagination.d.ts +4 -0
- package/_dist/components/Pager/BasicPagination.d.ts +4 -0
- package/_dist/components/Pager/MiniPagination.d.ts +4 -0
- package/_dist/components/Pager/NavigationButton.d.ts +13 -0
- package/_dist/components/Pager/Pager.d.ts +24 -0
- package/_dist/components/Pager/PagerContext.d.ts +23 -0
- package/_dist/components/Pager/PagerItem.d.ts +14 -0
- package/_dist/components/Pager/usePaginationUI.d.ts +1 -0
- package/_dist/components/Panel/Panel.d.ts +30 -0
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +25 -0
- package/_dist/components/PlatformIcon/PlatformIcon.d.ts +13 -0
- package/_dist/components/Popover/Popover.d.ts +57 -0
- package/_dist/components/PullQuote/PullQuote.d.ts +34 -0
- package/_dist/components/Skiplink/Skiplink.d.ts +21 -0
- package/_dist/components/SocialLinks/SocialLinks.d.ts +13 -0
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +20 -0
- package/_dist/components/Stepper/Stepper.d.ts +46 -0
- package/_dist/components/Table/Table.d.ts +15 -0
- package/_dist/components/TableOfContents/TableOfContents.d.ts +25 -0
- package/_dist/components/Tabs/Tabs.d.ts +40 -0
- package/_dist/components/Tag/Tag.d.ts +39 -0
- package/_dist/components/Tooltip/Tooltip.d.ts +33 -0
- package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +27 -0
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +35 -0
- package/_dist/components/badges/Tally/Tally.d.ts +35 -0
- package/_dist/components/buttons/AnimatedButton/AnimatedButton.d.ts +42 -0
- package/_dist/components/buttons/Button/Button.d.ts +5 -0
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +24 -0
- package/_dist/components/buttons/IconButton/IconButton.d.ts +42 -0
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +63 -0
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +45 -0
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +36 -0
- package/_dist/components/buttons/ToggleButton/ToggleButton.d.ts +35 -0
- package/_dist/components/cards/Card/Card.d.ts +30 -0
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +38 -0
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +17 -0
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +25 -0
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +64 -0
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +25 -0
- package/_dist/components/expansion-panels/ExpansionPanel/ExpansionPanel.d.ts +19 -0
- package/_dist/components/expansion-panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +15 -0
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +15 -0
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +17 -0
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +18 -0
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +5 -0
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +44 -0
- package/_dist/components/inputs/Combobox/Combobox.d.ts +5 -0
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +37 -0
- package/_dist/components/inputs/InputFormatted/InputFormatted.d.ts +35 -0
- package/_dist/components/inputs/InputGroup/InputGroup.d.ts +13 -0
- package/_dist/components/inputs/InputObscured/InputObscured.d.ts +33 -0
- package/_dist/components/inputs/InputText/InputText.d.ts +75 -0
- package/_dist/components/inputs/InputWrapper/InputWrapper.d.ts +5 -0
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +46 -0
- package/_dist/components/inputs/Select/Select.d.ts +44 -0
- package/_dist/components/inputs/TextInput/TextInput.d.ts +127 -0
- package/_dist/components/inputs/Textarea/Textarea.d.ts +39 -0
- package/_dist/components/inputs/ToggleSwitch/ToggleSwitch.d.ts +33 -0
- package/_dist/components/inputs/input-utilities.d.ts +44 -0
- package/_dist/components/inputs/inputs-common.d.ts +40 -0
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +25 -0
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +69 -0
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +10 -0
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +17 -0
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +19 -0
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +14 -0
- package/_dist/components/navigation/Navbar/Navbar.d.ts +35 -0
- package/_dist/components/navigation/SideNav/SideNav.d.ts +29 -0
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +29 -0
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +44 -0
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +58 -0
- package/_dist/components/notifications/Banner/Banner.d.ts +35 -0
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +37 -0
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +47 -0
- package/_dist/components/notifications/Toaster/Toast.d.ts +30 -0
- package/_dist/components/notifications/Toaster/Toaster.d.ts +16 -0
- package/_dist/components/notifications/Toaster/useToast.d.ts +2 -0
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +35 -0
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +25 -0
- package/_dist/components/progress-indicators/Spinner/Spinner.d.ts +33 -0
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +22 -0
- package/_dist/components/tiles/StatsTileList/StatsTileList.d.ts +26 -0
- package/_dist/components/tiles/Tile/Tile.d.ts +23 -0
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +38 -0
- package/_dist/css/component-css/pds-animated-button.css +9 -0
- package/_dist/css/component-css/pds-avatar-tile-list.css +1 -0
- package/_dist/css/component-css/pds-avatar.css +1 -0
- package/_dist/css/component-css/pds-banner.css +1 -0
- package/_dist/css/component-css/pds-breadcrumbs.css +1 -0
- package/_dist/css/component-css/pds-button-link.css +1 -0
- package/_dist/css/component-css/pds-button.css +81 -0
- package/_dist/css/component-css/pds-callout.css +1 -0
- package/_dist/css/component-css/pds-card-select-group.css +1 -0
- package/_dist/css/component-css/pds-card.css +1 -0
- package/_dist/css/component-css/pds-checkbox-group.css +1 -0
- package/_dist/css/component-css/pds-checkbox.css +1 -0
- package/_dist/css/component-css/pds-combobox.css +1 -0
- package/_dist/css/component-css/pds-comparison-list.css +1 -0
- package/_dist/css/component-css/pds-cta-link.css +1 -0
- package/_dist/css/component-css/pds-cta-slice.css +1 -0
- package/_dist/css/component-css/pds-dashboard-nav.css +2 -0
- package/_dist/css/component-css/pds-dashboard-search.css +1 -0
- package/_dist/css/component-css/pds-dropdown-menu.css +2 -0
- package/_dist/css/component-css/pds-expansion-panel-group.css +1 -0
- package/_dist/css/component-css/pds-expansion-panel.css +1 -0
- package/_dist/css/component-css/pds-file-upload.css +5 -0
- package/_dist/css/component-css/pds-footer-heading.css +1 -0
- package/_dist/css/component-css/pds-footer-links.css +1 -0
- package/_dist/css/component-css/pds-heading.css +1 -0
- package/_dist/css/component-css/pds-icon-button.css +17 -0
- package/_dist/css/component-css/pds-icon-story-only.css +1 -0
- package/_dist/css/component-css/pds-index.css +160 -0
- package/_dist/css/component-css/pds-indicator-badge.css +37 -0
- package/_dist/css/component-css/pds-inline-message.css +1 -0
- package/_dist/css/component-css/pds-input-group.css +1 -0
- package/_dist/css/component-css/pds-input-text.css +1 -0
- package/_dist/css/component-css/pds-input-utilities.css +1 -0
- package/_dist/css/component-css/pds-input-wrapper.css +1 -0
- package/_dist/css/component-css/pds-inputs-common-deprecated.css +1 -0
- package/_dist/css/component-css/pds-inputs-common.css +1 -0
- package/_dist/css/component-css/pds-links-card.css +1 -0
- package/_dist/css/component-css/pds-menu-button.css +1 -0
- package/_dist/css/component-css/pds-modal.css +1 -0
- package/_dist/css/component-css/pds-nav-menu.css +1 -0
- package/_dist/css/component-css/pds-navbar.css +3 -0
- package/_dist/css/component-css/pds-new-site-card.css +1 -0
- package/_dist/css/component-css/pds-pager.css +1 -0
- package/_dist/css/component-css/pds-panel.css +1 -0
- package/_dist/css/component-css/pds-pantheon-logo.css +1 -0
- package/_dist/css/component-css/pds-platform-icon.css +1 -0
- package/_dist/css/component-css/pds-popover.css +1 -0
- package/_dist/css/component-css/pds-pricing-card-local.css +1 -0
- package/_dist/css/component-css/pds-pricing-card.css +1 -0
- package/_dist/css/component-css/pds-progress-bar.css +1 -0
- package/_dist/css/component-css/pds-progress-ring.css +1 -0
- package/_dist/css/component-css/pds-pull-quote.css +1 -0
- package/_dist/css/component-css/pds-radio-group.css +1 -0
- package/_dist/css/component-css/pds-section-message.css +1 -0
- package/_dist/css/component-css/pds-segmented-button.css +1 -0
- package/_dist/css/component-css/pds-select.css +1 -0
- package/_dist/css/component-css/pds-side-nav-compact.css +1 -0
- package/_dist/css/component-css/pds-side-nav.css +1 -0
- package/_dist/css/component-css/pds-site-card.css +1 -0
- package/_dist/css/component-css/pds-site-footer.css +1 -0
- package/_dist/css/component-css/pds-skiplink.css +1 -0
- package/_dist/css/component-css/pds-social-links.css +1 -0
- package/_dist/css/component-css/pds-spinner.css +1 -0
- package/_dist/css/component-css/pds-split-button.css +2 -0
- package/_dist/css/component-css/pds-stats-tile-list.css +1 -0
- package/_dist/css/component-css/pds-status-badge.css +9 -0
- package/_dist/css/component-css/pds-status-indicator.css +1 -0
- package/_dist/css/component-css/pds-stepper.css +1 -0
- package/_dist/css/component-css/pds-table-of-contents.css +1 -0
- package/_dist/css/component-css/pds-table.css +1 -0
- package/_dist/css/component-css/pds-tabs.css +1 -0
- package/_dist/css/component-css/pds-tag.css +1 -0
- package/_dist/css/component-css/pds-tally.css +1 -0
- package/_dist/css/component-css/pds-text-input.css +1 -0
- package/_dist/css/component-css/pds-textarea.css +1 -0
- package/_dist/css/component-css/pds-tile.css +1 -0
- package/_dist/css/component-css/pds-tiles-common.css +1 -0
- package/_dist/css/component-css/pds-toaster.css +1 -0
- package/_dist/css/component-css/pds-toggle-button.css +1 -0
- package/_dist/css/component-css/pds-toggle-switch.css +3 -0
- package/_dist/css/component-css/pds-tooltip.css +1 -0
- package/_dist/css/component-css/pds-user-menu-story-only.css +1 -0
- package/_dist/css/component-css/pds-user-menu.css +1 -0
- package/_dist/css/component-css/pds-workspace-selector.css +1 -0
- package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +272 -0
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +333 -0
- package/_dist/css/design-tokens/pds-design-tokens.css +103 -0
- package/_dist/css/pds-components.css +123 -70
- package/_dist/css/pds-core.css +6 -2
- package/_dist/css/pds-layouts.css +1 -1
- package/_dist/index.css +1 -0
- package/_dist/index.d.ts +91 -0
- package/_dist/index.js +11428 -0
- package/_dist/index.js.map +1 -0
- package/_dist/layouts/Container/Container.d.ts +16 -0
- package/_dist/layouts/DashboardLayout/DashboardLayout.d.ts +44 -0
- package/_dist/layouts/DashboardLayout/DemoContent.d.ts +2 -0
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +27 -0
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +21 -0
- package/_dist/layouts/StepperLayout/StepperLayout.d.ts +13 -0
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +15 -0
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +17 -0
- package/_dist/libs/components/customPropTypes.d.ts +85 -0
- package/_dist/libs/components/utils.d.ts +2 -0
- package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
- package/_dist/vars/spacing.d.ts +17 -0
- package/_dist/vars/z-index.d.ts +5 -0
- package/package.json +86 -43
- package/_dist/cjs/index.js +0 -88
- package/_dist/cjs/index.js.map +0 -1
- package/_dist/esm/index.js +0 -88
- package/_dist/esm/index.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export function FileUpload({ accept, chooseFileLabel, clearButtonLabel, disabled, fieldLabel, id, inputWidth, message, multiple, onFileChange, required, showLabel, validationFunction, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
accept: any;
|
|
4
|
+
chooseFileLabel?: string;
|
|
5
|
+
clearButtonLabel?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
fieldLabel: any;
|
|
8
|
+
id: any;
|
|
9
|
+
inputWidth: any;
|
|
10
|
+
message: any;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
onFileChange: any;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
showLabel?: boolean;
|
|
15
|
+
validationFunction: any;
|
|
16
|
+
className: any;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
export namespace FileUpload {
|
|
19
|
+
namespace propTypes {
|
|
20
|
+
let accept: PropTypes.Requireable<string>;
|
|
21
|
+
let chooseFileLabel: PropTypes.Requireable<string>;
|
|
22
|
+
let clearButtonLabel: PropTypes.Requireable<string>;
|
|
23
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
24
|
+
let fieldLabel: PropTypes.Requireable<string>;
|
|
25
|
+
let id: PropTypes.Validator<string>;
|
|
26
|
+
let inputWidth: PropTypes.Requireable<number>;
|
|
27
|
+
let message: PropTypes.Requireable<string>;
|
|
28
|
+
let multiple: PropTypes.Requireable<boolean>;
|
|
29
|
+
let onFileChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
let required: PropTypes.Requireable<boolean>;
|
|
31
|
+
let showLabel: PropTypes.Requireable<boolean>;
|
|
32
|
+
let validationFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
+
let className: PropTypes.Requireable<string>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
import React from 'react';
|
|
37
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function InputFormatted({ disabled, formatting, hasClearButton, id, initialValue, label, message, onChange, placeholder, required, showLabel, validationFunction, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
formatting: any;
|
|
5
|
+
hasClearButton?: boolean;
|
|
6
|
+
id: any;
|
|
7
|
+
initialValue?: string;
|
|
8
|
+
label: any;
|
|
9
|
+
message: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
placeholder: any;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
showLabel?: boolean;
|
|
14
|
+
validationFunction: any;
|
|
15
|
+
className: any;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
export namespace InputFormatted {
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
20
|
+
let formatting: PropTypes.Validator<string>;
|
|
21
|
+
let id: PropTypes.Validator<string>;
|
|
22
|
+
let hasClearButton: PropTypes.Requireable<boolean>;
|
|
23
|
+
let initialValue: PropTypes.Requireable<string>;
|
|
24
|
+
let label: PropTypes.Validator<string>;
|
|
25
|
+
let message: PropTypes.Requireable<string>;
|
|
26
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
+
let placeholder: PropTypes.Requireable<string>;
|
|
28
|
+
let required: PropTypes.Requireable<boolean>;
|
|
29
|
+
let showLabel: PropTypes.Requireable<boolean>;
|
|
30
|
+
let validationFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
let className: PropTypes.Requireable<string>;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
import React from 'react';
|
|
35
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function InputGroup({ children, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
className: any;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export namespace InputGroup {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
9
|
+
let className: PropTypes.Requireable<string>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function InputObscured({ counterFunction, disabled, hasClearButton, id, initialValue, label, message, onChange, required, showLabel, validationFunction, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
counterFunction?: () => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
hasClearButton?: boolean;
|
|
6
|
+
id: any;
|
|
7
|
+
initialValue?: string;
|
|
8
|
+
label: any;
|
|
9
|
+
message: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
showLabel?: boolean;
|
|
13
|
+
validationFunction: any;
|
|
14
|
+
className: any;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
export namespace InputObscured {
|
|
17
|
+
namespace propTypes {
|
|
18
|
+
let counterFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
20
|
+
let hasClearButton: PropTypes.Requireable<boolean>;
|
|
21
|
+
let id: PropTypes.Validator<string>;
|
|
22
|
+
let initialValue: PropTypes.Requireable<string>;
|
|
23
|
+
let label: PropTypes.Validator<string>;
|
|
24
|
+
let message: PropTypes.Requireable<string>;
|
|
25
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
+
let required: PropTypes.Requireable<boolean>;
|
|
27
|
+
let showLabel: PropTypes.Requireable<boolean>;
|
|
28
|
+
let validationFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
let className: PropTypes.Requireable<string>;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
import React from 'react';
|
|
33
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export function InputText({ autoComplete, counterFunction, disabled, hasClearButton, hasSearchShortcut, id, initialValue, inputWidth, label, labelStrings, message, onChange, onFocus, placeholder, readonly, required, showLabel, specialFormatting, specialFormattingValidation, toggleVisibility, type, validationFunction, validationMessages, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
autoComplete?: string;
|
|
4
|
+
counterFunction?: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
hasClearButton?: boolean;
|
|
7
|
+
hasSearchShortcut?: boolean;
|
|
8
|
+
id: any;
|
|
9
|
+
initialValue?: string;
|
|
10
|
+
inputWidth: any;
|
|
11
|
+
label: any;
|
|
12
|
+
labelStrings?: {
|
|
13
|
+
clearButton: string;
|
|
14
|
+
searchShortcut: string;
|
|
15
|
+
visibilityStatus: string;
|
|
16
|
+
visibilityToggleHide: string;
|
|
17
|
+
visibilityToggleShow: string;
|
|
18
|
+
};
|
|
19
|
+
message: any;
|
|
20
|
+
onChange: any;
|
|
21
|
+
onFocus: any;
|
|
22
|
+
placeholder: any;
|
|
23
|
+
readonly?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
showLabel?: boolean;
|
|
26
|
+
specialFormatting: any;
|
|
27
|
+
specialFormattingValidation?: boolean;
|
|
28
|
+
toggleVisibility?: boolean;
|
|
29
|
+
type?: string;
|
|
30
|
+
validationFunction: any;
|
|
31
|
+
validationMessages?: {
|
|
32
|
+
creditCardError: string;
|
|
33
|
+
phoneError: string;
|
|
34
|
+
};
|
|
35
|
+
className: any;
|
|
36
|
+
}): React.JSX.Element;
|
|
37
|
+
export namespace InputText {
|
|
38
|
+
namespace propTypes {
|
|
39
|
+
let autoComplete: PropTypes.Requireable<string>;
|
|
40
|
+
let counterFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
41
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
42
|
+
let hasClearButton: PropTypes.Requireable<boolean>;
|
|
43
|
+
let hasSearchShortcut: PropTypes.Requireable<boolean>;
|
|
44
|
+
let id: PropTypes.Validator<string>;
|
|
45
|
+
let initialValue: PropTypes.Requireable<string>;
|
|
46
|
+
let inputWidth: PropTypes.Requireable<number>;
|
|
47
|
+
let label: PropTypes.Validator<string>;
|
|
48
|
+
let labelStrings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
49
|
+
clearButton: PropTypes.Requireable<string>;
|
|
50
|
+
searchShortcut: PropTypes.Requireable<string>;
|
|
51
|
+
visibilityStatus: PropTypes.Requireable<string>;
|
|
52
|
+
visibilityToggleHide: PropTypes.Requireable<string>;
|
|
53
|
+
visibilityToggleShow: PropTypes.Requireable<string>;
|
|
54
|
+
}>>;
|
|
55
|
+
let message: PropTypes.Requireable<string>;
|
|
56
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
+
let onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
|
+
let placeholder: PropTypes.Requireable<string>;
|
|
59
|
+
let readonly: PropTypes.Requireable<boolean>;
|
|
60
|
+
let required: PropTypes.Requireable<boolean>;
|
|
61
|
+
let showLabel: PropTypes.Requireable<boolean>;
|
|
62
|
+
let specialFormatting: PropTypes.Requireable<string>;
|
|
63
|
+
let specialFormattingValidation: PropTypes.Requireable<boolean>;
|
|
64
|
+
let toggleVisibility: PropTypes.Requireable<boolean>;
|
|
65
|
+
let type: PropTypes.Requireable<string>;
|
|
66
|
+
let validationFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
67
|
+
let validationMessages: PropTypes.Requireable<PropTypes.InferProps<{
|
|
68
|
+
creditCardError: PropTypes.Requireable<string>;
|
|
69
|
+
phoneError: PropTypes.Requireable<string>;
|
|
70
|
+
}>>;
|
|
71
|
+
let className: PropTypes.Requireable<string>;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
import React from 'react';
|
|
75
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export function RadioGroup({ disabled, id, initialSelection, inputWidth, label, message, onChange, options, required, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
id: any;
|
|
5
|
+
initialSelection: any;
|
|
6
|
+
inputWidth: any;
|
|
7
|
+
label: any;
|
|
8
|
+
message: any;
|
|
9
|
+
onChange: any;
|
|
10
|
+
options: any;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
className: any;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
export namespace RadioGroup {
|
|
15
|
+
namespace propTypes {
|
|
16
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
17
|
+
let id: PropTypes.Validator<string>;
|
|
18
|
+
let initialSelection: PropTypes.Requireable<string>;
|
|
19
|
+
let inputWidth: PropTypes.Requireable<number>;
|
|
20
|
+
let label: PropTypes.Validator<string>;
|
|
21
|
+
let message: PropTypes.Requireable<string>;
|
|
22
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
+
let options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
|
+
/**
|
|
25
|
+
* Is the option disabled?
|
|
26
|
+
*/
|
|
27
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Option unique ID
|
|
30
|
+
*/
|
|
31
|
+
id: PropTypes.Requireable<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Option label
|
|
34
|
+
*/
|
|
35
|
+
label: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
36
|
+
/**
|
|
37
|
+
* Option value
|
|
38
|
+
*/
|
|
39
|
+
value: PropTypes.Requireable<string>;
|
|
40
|
+
}>[]>;
|
|
41
|
+
let required: PropTypes.Requireable<boolean>;
|
|
42
|
+
let className: PropTypes.Requireable<string>;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
import React from 'react';
|
|
46
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export function Select({ disabled, id, initialValue, inputWidth, label, message, onOptionSelect, options, required, selectOptionsLabel, showLabel, validationFunction, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
id: any;
|
|
5
|
+
initialValue: any;
|
|
6
|
+
inputWidth: any;
|
|
7
|
+
label: any;
|
|
8
|
+
message: any;
|
|
9
|
+
onOptionSelect: any;
|
|
10
|
+
options: any;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
selectOptionsLabel?: string;
|
|
13
|
+
showLabel?: boolean;
|
|
14
|
+
validationFunction: any;
|
|
15
|
+
className: any;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
export namespace Select {
|
|
18
|
+
namespace propTypes {
|
|
19
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
20
|
+
let id: PropTypes.Validator<string>;
|
|
21
|
+
let initialValue: PropTypes.Requireable<string>;
|
|
22
|
+
let inputWidth: PropTypes.Requireable<number>;
|
|
23
|
+
let label: PropTypes.Validator<string>;
|
|
24
|
+
let message: PropTypes.Requireable<string>;
|
|
25
|
+
let onOptionSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
+
let options: PropTypes.Validator<PropTypes.InferProps<{
|
|
27
|
+
/**
|
|
28
|
+
* Option label.
|
|
29
|
+
*/
|
|
30
|
+
label: PropTypes.Validator<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Option value. Will default to label if not provided.
|
|
33
|
+
*/
|
|
34
|
+
value: PropTypes.Requireable<string>;
|
|
35
|
+
}>[]>;
|
|
36
|
+
let required: PropTypes.Requireable<boolean>;
|
|
37
|
+
let selectOptionsLabel: PropTypes.Requireable<string>;
|
|
38
|
+
let showLabel: PropTypes.Requireable<boolean>;
|
|
39
|
+
let validationFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
+
let className: PropTypes.Requireable<string>;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
import React from 'react';
|
|
44
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ChangeEvent, FocusEvent } from 'react';
|
|
2
|
+
import './text-input.css';
|
|
3
|
+
type TranslationStringProps = {
|
|
4
|
+
clearButton: string;
|
|
5
|
+
counterOverLimit?: string;
|
|
6
|
+
searchShortcut: string;
|
|
7
|
+
visibilityStatus: string;
|
|
8
|
+
visibilityToggleHide: string;
|
|
9
|
+
visibilityToggleShow: string;
|
|
10
|
+
};
|
|
11
|
+
type HtmlInputTypes = 'text' | 'number' | 'email' | 'password' | 'tel' | 'url' | 'search';
|
|
12
|
+
type ValidationStatus = 'success' | 'error';
|
|
13
|
+
/**
|
|
14
|
+
* Prop types for TextInput
|
|
15
|
+
*/
|
|
16
|
+
export interface TextInputProps extends ComponentPropsWithoutRef<'div'> {
|
|
17
|
+
/**
|
|
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
|
+
*/
|
|
20
|
+
autoComplete?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Maximum character count for the character counter. Leave blank for no counter. Not valid for type `password`.
|
|
23
|
+
*/
|
|
24
|
+
counterMaxLength?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Initial value for the input field. Only valid if the input is uncontrolled. Cannot be used in conjunction with the `value` prop.
|
|
27
|
+
*/
|
|
28
|
+
defaultValue?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Is the field disabled?
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Does the input contain a clear button?
|
|
35
|
+
*/
|
|
36
|
+
hasClearButton?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Does the input contain the search shortcut?
|
|
39
|
+
* Only valid if the input type is `search`.
|
|
40
|
+
*/
|
|
41
|
+
hasSearchShortcut?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Input ID.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
/**
|
|
47
|
+
* Additional props for the `<input>` element.
|
|
48
|
+
*/
|
|
49
|
+
inputProps?: ComponentPropsWithoutRef<'input'>;
|
|
50
|
+
/**
|
|
51
|
+
* Width of the input field. Accepts a number in pixels. Leave blank for width: 100%.
|
|
52
|
+
*/
|
|
53
|
+
inputWidth?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Input label.
|
|
56
|
+
*/
|
|
57
|
+
label: string;
|
|
58
|
+
/**
|
|
59
|
+
* Input message. Used to provide supplemental text. Will be displayed below the input field.
|
|
60
|
+
*/
|
|
61
|
+
message?: string;
|
|
62
|
+
/**
|
|
63
|
+
* onBlur event handler.
|
|
64
|
+
*/
|
|
65
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
66
|
+
/**
|
|
67
|
+
* onChange event handler. Controlled inputs should use this to manage the input value. Uncontrolled inputs will manage their own state, but may still use this to access the event object.
|
|
68
|
+
*/
|
|
69
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Function to clear the input field. Only necessary if the input is controlled. This functionality is built-in for uncontrolled inputs.
|
|
72
|
+
*/
|
|
73
|
+
onClear?: () => void;
|
|
74
|
+
/**
|
|
75
|
+
* onFocus event handler.
|
|
76
|
+
*/
|
|
77
|
+
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Optional placeholder text to display when the input field is empty.
|
|
80
|
+
*/
|
|
81
|
+
placeholder?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Is the field read-only?
|
|
84
|
+
*/
|
|
85
|
+
readonly?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Is this field required?
|
|
88
|
+
*/
|
|
89
|
+
required?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Should the label be visible? If false, it will render for screen readers only.
|
|
92
|
+
*/
|
|
93
|
+
showLabel?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Show Toggle visibility control for input. Valid for type `password` only.
|
|
96
|
+
*/
|
|
97
|
+
showVisibilityToggle?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Translation strings for various labels or other visually-hidden text.
|
|
100
|
+
*/
|
|
101
|
+
translationStrings?: TranslationStringProps;
|
|
102
|
+
/**
|
|
103
|
+
* Type of input field to use.
|
|
104
|
+
*/
|
|
105
|
+
type: HtmlInputTypes;
|
|
106
|
+
/**
|
|
107
|
+
* Validation message for the input field based on the validation status.
|
|
108
|
+
*/
|
|
109
|
+
validationMessage?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Validation status of the input field.
|
|
112
|
+
*/
|
|
113
|
+
validationStatus?: ValidationStatus;
|
|
114
|
+
/**
|
|
115
|
+
* 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.
|
|
116
|
+
*/
|
|
117
|
+
value?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Additional class names for input.
|
|
120
|
+
*/
|
|
121
|
+
className?: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* TextInput UI component
|
|
125
|
+
*/
|
|
126
|
+
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
127
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function Textarea({ counterFunction, disabled, id, initialValue, inputWidth, isResizable, label, message, onChange, placeholder, readonly, required, rows, validationFunction, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
counterFunction?: () => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
id: any;
|
|
6
|
+
initialValue?: string;
|
|
7
|
+
inputWidth: any;
|
|
8
|
+
isResizable?: boolean;
|
|
9
|
+
label: any;
|
|
10
|
+
message: any;
|
|
11
|
+
onChange: any;
|
|
12
|
+
placeholder: any;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
rows?: number;
|
|
16
|
+
validationFunction: any;
|
|
17
|
+
className: any;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
export namespace Textarea {
|
|
20
|
+
namespace propTypes {
|
|
21
|
+
let counterFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
23
|
+
let id: PropTypes.Validator<string>;
|
|
24
|
+
let initialValue: PropTypes.Requireable<string>;
|
|
25
|
+
let isResizable: PropTypes.Requireable<boolean>;
|
|
26
|
+
let inputWidth: PropTypes.Requireable<number>;
|
|
27
|
+
let label: PropTypes.Validator<string>;
|
|
28
|
+
let message: PropTypes.Requireable<string>;
|
|
29
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
let placeholder: PropTypes.Requireable<string>;
|
|
31
|
+
let readonly: PropTypes.Requireable<boolean>;
|
|
32
|
+
let required: PropTypes.Requireable<boolean>;
|
|
33
|
+
let rows: PropTypes.Requireable<number>;
|
|
34
|
+
let validationFunction: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
+
let className: PropTypes.Requireable<string>;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
import React from 'react';
|
|
39
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function ToggleSwitch({ disabled, id, inputWidth, label, message, onChange, required, showLabel, showStatusLabel, statusOnLabel, statusOffLabel, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
id: any;
|
|
5
|
+
inputWidth: any;
|
|
6
|
+
label: any;
|
|
7
|
+
message: any;
|
|
8
|
+
onChange: any;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
showLabel?: boolean;
|
|
11
|
+
showStatusLabel?: boolean;
|
|
12
|
+
statusOnLabel?: string;
|
|
13
|
+
statusOffLabel?: string;
|
|
14
|
+
className: any;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
export namespace ToggleSwitch {
|
|
17
|
+
namespace propTypes {
|
|
18
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
19
|
+
let id: PropTypes.Validator<string>;
|
|
20
|
+
let inputWidth: PropTypes.Requireable<number>;
|
|
21
|
+
let label: PropTypes.Validator<string>;
|
|
22
|
+
let message: PropTypes.Requireable<string>;
|
|
23
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
let required: PropTypes.Requireable<boolean>;
|
|
25
|
+
let showLabel: PropTypes.Requireable<boolean>;
|
|
26
|
+
let showStatusLabel: PropTypes.Requireable<boolean>;
|
|
27
|
+
let statusOffLabel: PropTypes.Requireable<string>;
|
|
28
|
+
let statusOnLabel: PropTypes.Requireable<string>;
|
|
29
|
+
let className: PropTypes.Requireable<string>;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
import React from 'react';
|
|
33
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { MouseEventHandler } from 'react';
|
|
2
|
+
import './input-utilities.css';
|
|
3
|
+
export declare const inputCommonClasses: {
|
|
4
|
+
base: string;
|
|
5
|
+
disabled: string;
|
|
6
|
+
required: string;
|
|
7
|
+
error: string;
|
|
8
|
+
success: string;
|
|
9
|
+
readonly: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const InputLabel: ({ id, label, showLabel, required, disabled, isLegend, }: {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
showLabel: boolean;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
isLegend?: boolean;
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
|
+
export declare const InputMessage: ({ id, message, hasValidationMessage, validationStatus, }: {
|
|
20
|
+
id: string;
|
|
21
|
+
message: string;
|
|
22
|
+
hasValidationMessage: boolean;
|
|
23
|
+
validationStatus: string;
|
|
24
|
+
}) => React.JSX.Element;
|
|
25
|
+
type DecoratorVariants = 'search' | 'error' | 'success';
|
|
26
|
+
export declare const InputDecorator: ({ variant }: {
|
|
27
|
+
variant: DecoratorVariants;
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
|
+
export declare const SearchShortcut: ({ inputId, shortcutLabel, }: {
|
|
30
|
+
inputId: string;
|
|
31
|
+
shortcutLabel: string;
|
|
32
|
+
}) => React.JSX.Element;
|
|
33
|
+
export declare const ClearButton: ({ id, clearLabel, handleClearInput, }: {
|
|
34
|
+
id: string;
|
|
35
|
+
clearLabel: string;
|
|
36
|
+
handleClearInput: MouseEventHandler<HTMLButtonElement>;
|
|
37
|
+
}) => React.JSX.Element;
|
|
38
|
+
export declare const CharacterCounter: ({ id, currentLength, maxLength, overLimitMessage, }: {
|
|
39
|
+
id: string;
|
|
40
|
+
currentLength: number;
|
|
41
|
+
maxLength: number;
|
|
42
|
+
overLimitMessage: string;
|
|
43
|
+
}) => React.JSX.Element;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export namespace cssClassesList {
|
|
2
|
+
let error: string;
|
|
3
|
+
let success: string;
|
|
4
|
+
let required: string;
|
|
5
|
+
let disabled: string;
|
|
6
|
+
}
|
|
7
|
+
export function ClearButton({ id, label, handleClearInput }: {
|
|
8
|
+
id: any;
|
|
9
|
+
label: any;
|
|
10
|
+
handleClearInput: any;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export namespace ClearButton {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let id: PropTypes.Validator<string>;
|
|
15
|
+
let label: PropTypes.Validator<string>;
|
|
16
|
+
let handleClearInput: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export function Decorator({ type }: {
|
|
20
|
+
type: any;
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
export namespace Decorator {
|
|
23
|
+
export namespace propTypes_1 {
|
|
24
|
+
let type: PropTypes.Validator<string>;
|
|
25
|
+
}
|
|
26
|
+
export { propTypes_1 as propTypes };
|
|
27
|
+
}
|
|
28
|
+
export function SearchShortcut({ label }: {
|
|
29
|
+
label: any;
|
|
30
|
+
}): React.JSX.Element;
|
|
31
|
+
export namespace SearchShortcut {
|
|
32
|
+
export namespace propTypes_2 {
|
|
33
|
+
let label_1: PropTypes.Validator<string>;
|
|
34
|
+
export { label_1 as label };
|
|
35
|
+
}
|
|
36
|
+
export { propTypes_2 as propTypes };
|
|
37
|
+
}
|
|
38
|
+
export const SelectOption: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
39
|
+
import React from 'react';
|
|
40
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function DashboardNav({ ariaLabel, labels, menuItems, mobileMenuSelectTextFallback, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
ariaLabel?: string;
|
|
4
|
+
labels?: {
|
|
5
|
+
submenu: string;
|
|
6
|
+
toggle: string;
|
|
7
|
+
};
|
|
8
|
+
menuItems: any;
|
|
9
|
+
mobileMenuSelectTextFallback?: string;
|
|
10
|
+
className: any;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export namespace DashboardNav {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let ariaLabel: PropTypes.Requireable<string>;
|
|
15
|
+
let labels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
+
submenu: PropTypes.Requireable<string>;
|
|
17
|
+
toggle: PropTypes.Requireable<string>;
|
|
18
|
+
}>>;
|
|
19
|
+
let menuItems: PropTypes.Validator<any[]>;
|
|
20
|
+
let mobileMenuSelectTextFallback: PropTypes.Requireable<string>;
|
|
21
|
+
let className: PropTypes.Requireable<string>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export function DashboardSearch({ disabled, id, isLoading, label, labelStrings, loadingText, noResultsText, onFocus, onOptionSelect, placeholder, siteList, startingRightPosition, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
id: any;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
labelStrings?: {
|
|
8
|
+
clearButton: string;
|
|
9
|
+
inputInstructions: string;
|
|
10
|
+
openSearchButton: string;
|
|
11
|
+
};
|
|
12
|
+
loadingText?: string;
|
|
13
|
+
noResultsText?: string;
|
|
14
|
+
onFocus: any;
|
|
15
|
+
onOptionSelect: any;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
siteList: any;
|
|
18
|
+
startingRightPosition?: number;
|
|
19
|
+
className: any;
|
|
20
|
+
}): React.JSX.Element;
|
|
21
|
+
export namespace DashboardSearch {
|
|
22
|
+
namespace propTypes {
|
|
23
|
+
let disabled: PropTypes.Requireable<boolean>;
|
|
24
|
+
let id: PropTypes.Requireable<string>;
|
|
25
|
+
let isLoading: PropTypes.Requireable<boolean>;
|
|
26
|
+
let label: PropTypes.Requireable<string>;
|
|
27
|
+
let labelStrings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
28
|
+
/**
|
|
29
|
+
* Clear button label
|
|
30
|
+
*/
|
|
31
|
+
clearButton: PropTypes.Requireable<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Input instructions
|
|
34
|
+
*/
|
|
35
|
+
inputInstructions: PropTypes.Requireable<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Open search button label
|
|
38
|
+
*/
|
|
39
|
+
openSearchButton: PropTypes.Requireable<string>;
|
|
40
|
+
}>>;
|
|
41
|
+
let loadingText: PropTypes.Requireable<string>;
|
|
42
|
+
let noResultsText: PropTypes.Requireable<string>;
|
|
43
|
+
let onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
|
+
let onOptionSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
|
+
let placeholder: PropTypes.Requireable<string>;
|
|
46
|
+
let siteList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
47
|
+
/**
|
|
48
|
+
* Site ID
|
|
49
|
+
*/
|
|
50
|
+
id: PropTypes.Requireable<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Site name.
|
|
53
|
+
*/
|
|
54
|
+
name: PropTypes.Requireable<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Site status
|
|
57
|
+
*/
|
|
58
|
+
status: PropTypes.Requireable<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Site type
|
|
61
|
+
*/
|
|
62
|
+
type: PropTypes.Requireable<string>;
|
|
63
|
+
}>[]>;
|
|
64
|
+
let startingRightPosition: PropTypes.Requireable<number>;
|
|
65
|
+
let className: PropTypes.Requireable<string>;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
import React from 'react';
|
|
69
|
+
import PropTypes from 'prop-types';
|