@spscommerce/ds-react 0.0.0-20260319-8230915ce
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 +55 -0
- package/lib/advanced-search/SpsAdvancedSearch.d.ts +10 -0
- package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +2 -0
- package/lib/advanced-search/index.d.ts +2 -0
- package/lib/autocomplete/SpsAutocomplete.d.ts +31 -0
- package/lib/autocomplete/SpsAutocomplete.examples.d.ts +2 -0
- package/lib/autocomplete/index.d.ts +2 -0
- package/lib/button/SpsButton.d.ts +14 -0
- package/lib/button/SpsButton.examples.d.ts +2 -0
- package/lib/button/SpsButtonGroup.d.ts +4 -0
- package/lib/button/SpsIconButtonPanel.d.ts +4 -0
- package/lib/button/index.d.ts +4 -0
- package/lib/card/SpsCard.d.ts +11 -0
- package/lib/card/SpsCardHeader.d.ts +9 -0
- package/lib/card/SpsCardTabbedPane.d.ts +15 -0
- package/lib/card/index.d.ts +2 -0
- package/lib/card/useTab.d.ts +18 -0
- package/lib/card-v2/SpsCardV2.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Footer.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Header.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Title.d.ts +2 -0
- package/lib/card-v2/index.d.ts +5 -0
- package/lib/checkbox/SpsCheckbox.d.ts +17 -0
- package/lib/checkbox/SpsCheckbox.examples.d.ts +2 -0
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +9 -0
- package/lib/checkbox-dropdown/index.d.ts +1 -0
- package/lib/clickable-tag/SpsClickableTag.d.ts +12 -0
- package/lib/clickable-tag/SpsClickableTag.examples.d.ts +2 -0
- package/lib/clickable-tag/index.d.ts +2 -0
- package/lib/column-chooser/SpsColumnChooser.d.ts +16 -0
- package/lib/column-chooser/SpsColumnChooser.examples.d.ts +2 -0
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +13 -0
- package/lib/column-chooser/index.d.ts +3 -0
- package/lib/conditional-field/SpsConditionalField.d.ts +6 -0
- package/lib/conditional-field/SpsConditionalField.examples.d.ts +2 -0
- package/lib/conditional-field/index.d.ts +2 -0
- package/lib/content-row/SpsContentRow.d.ts +16 -0
- package/lib/content-row/SpsContentRow.examples.d.ts +2 -0
- package/lib/content-row/SpsContentRowCol.d.ts +10 -0
- package/lib/content-row/SpsContentRowExpansion.d.ts +4 -0
- package/lib/content-row/index.d.ts +4 -0
- package/lib/context-bar/SpsContextBar.d.ts +6 -0
- package/lib/context-bar/index.d.ts +1 -0
- package/lib/currency-input/SpsCurrencyInput.d.ts +13 -0
- package/lib/currency-input/SpsCurrencyInput.examples.d.ts +2 -0
- package/lib/currency-input/index.d.ts +2 -0
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +21 -0
- package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -0
- package/lib/dateRangePicker/index.d.ts +2 -0
- package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.d.ts +23 -0
- package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.examples.d.ts +2 -0
- package/lib/dateTimeRangePicker/index.d.ts +2 -0
- package/lib/datepicker/SpsDatepicker.d.ts +18 -0
- package/lib/datepicker/SpsDatepicker.examples.d.ts +2 -0
- package/lib/datepicker/SpsDatepickerCalendar.d.ts +15 -0
- package/lib/datepicker/SpsDatepickerPopup.d.ts +11 -0
- package/lib/datepicker/index.d.ts +4 -0
- package/lib/datepicker/useCalendar.d.ts +2 -0
- package/lib/datepicker/useMoment.d.ts +3 -0
- package/lib/datepicker/utils.d.ts +38 -0
- package/lib/datepicker/validation.d.ts +11 -0
- package/lib/datetime/SpsDateTime.d.ts +11 -0
- package/lib/datetime/SpsDateTime.examples.d.ts +2 -0
- package/lib/datetime/SpsLocaleProvider.d.ts +7 -0
- package/lib/datetime/index.d.ts +3 -0
- package/lib/datetime/localeDefinitions.d.ts +20 -0
- package/lib/datetime/momentLocale.d.ts +3 -0
- package/lib/description-list/SpsDescriptionList.d.ts +9 -0
- package/lib/description-list/SpsDescriptionList.examples.d.ts +2 -0
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +5 -0
- package/lib/description-list/SpsDescriptionListTerm.d.ts +13 -0
- package/lib/description-list/index.d.ts +4 -0
- package/lib/dropdown/SpsDropdown.d.ts +24 -0
- package/lib/dropdown/SpsDropdown.examples.d.ts +2 -0
- package/lib/dropdown/index.d.ts +2 -0
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +7 -0
- package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -0
- package/lib/feedback-block/index.d.ts +2 -0
- package/lib/fieldset/SpsFieldset.d.ts +22 -0
- package/lib/fieldset/SpsFieldset.examples.d.ts +2 -0
- package/lib/fieldset/index.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanel.d.ts +4 -0
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +2 -0
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +6 -0
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +10 -0
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +11 -0
- package/lib/filter-panel/index.d.ts +5 -0
- package/lib/filter-tile-list/SpsFilterTile.d.ts +10 -0
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +4 -0
- package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +2 -0
- package/lib/filter-tile-list/index.d.ts +3 -0
- package/lib/focused-task/SpsFocusedTask.d.ts +8 -0
- package/lib/focused-task/SpsFocusedTask.examples.d.ts +2 -0
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +4 -0
- package/lib/focused-task/index.d.ts +3 -0
- package/lib/form/AddRemoveFormRows.examples.d.ts +18 -0
- package/lib/form/SpsForm.d.ts +18 -0
- package/lib/form/SpsForm.examples.d.ts +1 -0
- package/lib/form/SpsFormComponentWrapper.d.ts +14 -0
- package/lib/form/hooks/SpsAbstractControl.interface.d.ts +24 -0
- package/lib/form/hooks/SpsControlSet.interface.d.ts +7 -0
- package/lib/form/hooks/formArray.d.ts +12 -0
- package/lib/form/hooks/formControl.d.ts +9 -0
- package/lib/form/hooks/formGroup.d.ts +10 -0
- package/lib/form/hooks/useCustomValidator.d.ts +7 -0
- package/lib/form/hooks/useForm.d.ts +2 -0
- package/lib/form/hooks/useFormControlId.d.ts +4 -0
- package/lib/form/hooks/useServerSideValidation.d.ts +3 -0
- package/lib/form/hooks/useSpsForm.d.ts +92 -0
- package/lib/form/index.d.ts +16 -0
- package/lib/form/validation/SpsValidators.d.ts +20 -0
- package/lib/form/validation/types.d.ts +10 -0
- package/lib/form/validation/validate.d.ts +2 -0
- package/lib/growler/SpsGrowler.d.ts +11 -0
- package/lib/growler/SpsGrowler.examples.d.ts +2 -0
- package/lib/growler/index.d.ts +3 -0
- package/lib/growler/useGrowlers.d.ts +13 -0
- package/lib/icon/SpsIcon.d.ts +9 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/incrementor/SpsIncrementor.d.ts +12 -0
- package/lib/incrementor/SpsIncrementor.examples.d.ts +2 -0
- package/lib/incrementor/index.d.ts +2 -0
- package/lib/index.d.ts +74 -0
- package/lib/index.js +35288 -0
- package/lib/index.umd.cjs +11826 -0
- package/lib/input-group/SpsInputGroup.d.ts +12 -0
- package/lib/input-group/index.d.ts +1 -0
- package/lib/insight-tile/SpsInsightTile.d.ts +13 -0
- package/lib/insight-tile/SpsInsights.d.ts +4 -0
- package/lib/insight-tile/index.d.ts +2 -0
- package/lib/key-value-list/SpsKeyValueList.d.ts +6 -0
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +8 -0
- package/lib/key-value-list/index.d.ts +2 -0
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +11 -0
- package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -0
- package/lib/key-value-tag/index.d.ts +2 -0
- package/lib/label/SpsLabel.d.ts +15 -0
- package/lib/label/SpsLabel.examples.d.ts +2 -0
- package/lib/label/index.d.ts +2 -0
- package/lib/list-action-bar/SpsListActionBar.d.ts +7 -0
- package/lib/list-action-bar/SpsListActionBar.examples.d.ts +2 -0
- package/lib/list-action-bar/index.d.ts +2 -0
- package/lib/list-toolbar/SpsListToolbar.d.ts +22 -0
- package/lib/list-toolbar/SpsListToolbar.examples.d.ts +4 -0
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +6 -0
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +4 -0
- package/lib/list-toolbar/SpsListToolbarSortBy.d.ts +16 -0
- package/lib/list-toolbar/index.d.ts +5 -0
- package/lib/manifest.d.ts +2 -0
- package/lib/micro-block/SpsMicroBlock.d.ts +8 -0
- package/lib/micro-block/SpsMicroBlock.examples.d.ts +2 -0
- package/lib/micro-block/index.d.ts +2 -0
- package/lib/modal/SpsModal.d.ts +13 -0
- package/lib/modal/SpsModal.examples.d.ts +2 -0
- package/lib/modal/index.d.ts +3 -0
- package/lib/modal/useModals.d.ts +15 -0
- package/lib/multi-select/SpsMultiSelect.d.ts +37 -0
- package/lib/multi-select/SpsMultiSelect.examples.d.ts +2 -0
- package/lib/multi-select/index.d.ts +2 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +20 -0
- package/lib/multi-value-text-input/SpsMultiValueTextInput.examples.d.ts +2 -0
- package/lib/multi-value-text-input/index.d.ts +2 -0
- package/lib/multi-value-text-input/splitStringByDelimiter.d.ts +2 -0
- package/lib/option-list/SpsOptionList.d.ts +3 -0
- package/lib/option-list/SpsOptionListProps.d.ts +89 -0
- package/lib/option-list/index.d.ts +1 -0
- package/lib/option-list/useOptionListOptions.d.ts +8 -0
- package/lib/option-list/useOptionListSearch.d.ts +13 -0
- package/lib/option-list/usePreventScroll.d.ts +7 -0
- package/lib/option-list/useSpsAction.d.ts +2 -0
- package/lib/option-list-v2/SpsOptionListV2.d.ts +0 -0
- package/lib/option-list-v2/index.d.ts +0 -0
- package/lib/page-title/SpsPageSubtitle.d.ts +4 -0
- package/lib/page-title/SpsPageTitle.d.ts +4 -0
- package/lib/page-title/SpsPageTitle.examples.d.ts +2 -0
- package/lib/page-title/index.d.ts +3 -0
- package/lib/pagination/SpsPageSelector.d.ts +12 -0
- package/lib/pagination/SpsPagination.d.ts +15 -0
- package/lib/pagination/SpsPagination.examples.d.ts +2 -0
- package/lib/pagination/index.d.ts +3 -0
- package/lib/product-bar/SpsProductBar.d.ts +13 -0
- package/lib/product-bar/SpsProductBar.examples.d.ts +2 -0
- package/lib/product-bar/SpsProductBarTab.d.ts +6 -0
- package/lib/product-bar/index.d.ts +3 -0
- package/lib/progress-bar/SpsProgressBar.d.ts +10 -0
- package/lib/progress-bar/SpsProgressBar.examples.d.ts +28 -0
- package/lib/progress-bar/index.d.ts +2 -0
- package/lib/progress-ring/SpsProgressRing.d.ts +8 -0
- package/lib/progress-ring/index.d.ts +1 -0
- package/lib/prop-types.d.ts +4 -0
- package/lib/radio-button/SpsRadioButton.d.ts +19 -0
- package/lib/radio-button/SpsRadioButton.examples.d.ts +2 -0
- package/lib/radio-button/index.d.ts +2 -0
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +6 -0
- package/lib/scrollable-container/index.d.ts +1 -0
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +8 -0
- package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -0
- package/lib/search-results-bar/SpsSearchResultsBarV2.d.ts +9 -0
- package/lib/search-results-bar/index.d.ts +3 -0
- package/lib/select/SpsSelect.d.ts +76 -0
- package/lib/select/SpsSelect.examples.d.ts +2 -0
- package/lib/select/index.d.ts +2 -0
- package/lib/side-nav/SpsSideNav.d.ts +38 -0
- package/lib/side-nav/SpsSideNav.examples.d.ts +2 -0
- package/lib/side-nav/SpsSideNavBranch.d.ts +9 -0
- package/lib/side-nav/index.d.ts +2 -0
- package/lib/slack-link/SpsSlackLink.d.ts +6 -0
- package/lib/slack-link/SpsSlackLink.examples.d.ts +2 -0
- package/lib/slack-link/index.d.ts +2 -0
- package/lib/slide-in-panel/SpsSlideInPanel.d.ts +11 -0
- package/lib/slide-in-panel/SpsSlideInPanel.examples.d.ts +2 -0
- package/lib/slide-in-panel/index.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeader.d.ts +8 -0
- package/lib/sorting-header/SpsSortingHeader.examples.d.ts +2 -0
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +12 -0
- package/lib/sorting-header/index.d.ts +3 -0
- package/lib/spinner/SpsSpinner.d.ts +9 -0
- package/lib/spinner/index.d.ts +1 -0
- package/lib/split-button/SpsSplitButton.d.ts +17 -0
- package/lib/split-button/SpsSplitButton.examples.d.ts +2 -0
- package/lib/split-button/index.d.ts +2 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +21 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +29 -0
- package/lib/stepped-progress-bar/index.d.ts +2 -0
- package/lib/summary-list/SpsSummaryList.examples.d.ts +2 -0
- package/lib/summary-list/SpsSummaryListColumn.d.ts +9 -0
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +4 -0
- package/lib/summary-list/SpsSummaryListRow.d.ts +8 -0
- package/lib/summary-list/index.d.ts +4 -0
- package/lib/table/SpsTable.d.ts +14 -0
- package/lib/table/SpsTable.examples.d.ts +2 -0
- package/lib/table/SpsTableBody.d.ts +5 -0
- package/lib/table/SpsTableCell.d.ts +10 -0
- package/lib/table/SpsTableContext.d.ts +20 -0
- package/lib/table/SpsTableHead.d.ts +7 -0
- package/lib/table/SpsTableHeader.d.ts +10 -0
- package/lib/table/SpsTableRow.d.ts +5 -0
- package/lib/table/index.d.ts +8 -0
- package/lib/table/useColumnResizer.d.ts +9 -0
- package/lib/table/usePinnedStyles.d.ts +6 -0
- package/lib/tabs/SpsTabs.d.ts +9 -0
- package/lib/tabs-v2/SpsTab.d.ts +7 -0
- package/lib/tabs-v2/SpsTabPanel.d.ts +6 -0
- package/lib/tabs-v2/SpsTabsV2.d.ts +3 -0
- package/lib/tabs-v2/index.d.ts +4 -0
- package/lib/tag/SpsTag.d.ts +9 -0
- package/lib/tag/SpsTag.examples.d.ts +2 -0
- package/lib/tag/index.d.ts +2 -0
- package/lib/task-queue/SpsTaskQueue.d.ts +30 -0
- package/lib/task-queue/SpsTaskQueue.examples.d.ts +2 -0
- package/lib/task-queue/index.d.ts +2 -0
- package/lib/text-input/SpsTextInput.d.ts +33 -0
- package/lib/text-input/SpsTextInput.examples.d.ts +2 -0
- package/lib/text-input/index.d.ts +2 -0
- package/lib/textarea/SpsTextarea.d.ts +18 -0
- package/lib/textarea/SpsTextarea.examples.d.ts +2 -0
- package/lib/textarea/index.d.ts +2 -0
- package/lib/tile-list/SpsTile.d.ts +15 -0
- package/lib/tile-list/SpsTileList.d.ts +4 -0
- package/lib/tile-list/SpsTileList.examples.d.ts +2 -0
- package/lib/tile-list/index.d.ts +3 -0
- package/lib/time-input/SpsTimeInput.d.ts +18 -0
- package/lib/time-input/SpsTimeInput.examples.d.ts +2 -0
- package/lib/time-input/index.d.ts +2 -0
- package/lib/toggle/SpsToggle.d.ts +18 -0
- package/lib/toggle/SpsToggle.examples.d.ts +2 -0
- package/lib/toggle/index.d.ts +2 -0
- package/lib/tooltip/SpsTooltip.d.ts +23 -0
- package/lib/tooltip/SpsTooltip.examples.d.ts +2 -0
- package/lib/tooltip/SpsTooltipTitle.d.ts +9 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/utils/FauxChangeEvent.d.ts +20 -0
- package/lib/utils/Provide.d.ts +24 -0
- package/lib/utils/bindProps.d.ts +33 -0
- package/lib/utils/contentOf.d.ts +2 -0
- package/lib/utils/getPosition.d.ts +11 -0
- package/lib/utils/getScrollParent.d.ts +1 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/letterAndNumberKeys.d.ts +1 -0
- package/lib/utils/selectChildren.d.ts +5 -0
- package/lib/utils/useCheckDeprecatedProps.d.ts +1 -0
- package/lib/utils/useDidUpdateEffect.d.ts +11 -0
- package/lib/utils/useDocumentEventListener.d.ts +1 -0
- package/lib/utils/useElementId.d.ts +3 -0
- package/lib/utils/useInputPopup.d.ts +6 -0
- package/lib/utils/usePatchReducer.d.ts +2 -0
- package/lib/utils/usePortal.d.ts +6 -0
- package/lib/vertical-rule/SpsVerticalRule.d.ts +5 -0
- package/lib/vertical-rule/index.d.ts +1 -0
- package/lib/wizard/SpsWizard.examples.d.ts +2 -0
- package/lib/wizard/SpsWizardSidebar.d.ts +18 -0
- package/lib/wizard/SpsWizardSubstep.d.ts +9 -0
- package/lib/wizard/index.d.ts +3 -0
- package/lib/workflow/SpsWorkflow.DeprecationWarning.d.ts +2 -0
- package/lib/workflow/SpsWorkflow.d.ts +9 -0
- package/lib/workflow/SpsWorkflow.examples.d.ts +2 -0
- package/lib/workflow/SpsWorkflowDocument.d.ts +5 -0
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +8 -0
- package/lib/workflow/SpsWorkflowStep.d.ts +9 -0
- package/lib/workflow/index.d.ts +5 -0
- package/lib/zero-state/SpsMicroZeroState.d.ts +10 -0
- package/lib/zero-state/SpsZeroState.d.ts +9 -0
- package/lib/zero-state/SpsZeroState.examples.d.ts +2 -0
- package/lib/zero-state/index.d.ts +3 -0
- package/package.json +92 -0
- package/vite.config.mjs +20 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsIcon, SpsTask } from "@spscommerce/ds-shared";
|
|
3
|
+
import { TooltipKind, Position } from "@spscommerce/ds-shared";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export interface ReactSpsTaskAction {
|
|
6
|
+
label?: string;
|
|
7
|
+
caption?: string;
|
|
8
|
+
icon?: SpsIcon;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick?: (task: ReactSpsTask) => void;
|
|
11
|
+
}
|
|
12
|
+
export type ReactSpsTask = Pick<SpsTask, "heading" | "status" | "unread"> & {
|
|
13
|
+
id?: string;
|
|
14
|
+
subheading?: React.ReactNode;
|
|
15
|
+
actions?: Array<ReactSpsTaskAction | React.ReactElement>;
|
|
16
|
+
};
|
|
17
|
+
export type SpsTaskQueueProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
18
|
+
tasks?: ReactSpsTask[];
|
|
19
|
+
taskQueuePosition?: Position;
|
|
20
|
+
notificationText?: string;
|
|
21
|
+
tooltipConfig?: {
|
|
22
|
+
position?: Position;
|
|
23
|
+
kind?: TooltipKind;
|
|
24
|
+
};
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
onOpen?: () => void;
|
|
27
|
+
onClearCompleted?: () => void;
|
|
28
|
+
suppressTooltips?: boolean;
|
|
29
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
30
|
+
export declare function SpsTaskQueue({ tasks, taskQueuePosition, notificationText, tooltipConfig, onOpen, onClose, onClearCompleted, className, "data-testid": testId, unsafelyReplaceClassName, suppressTooltips, ...rest }: SpsTaskQueueProps): React.JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
5
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
6
|
+
export type SpsTextInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
7
|
+
autoComplete?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formControl?: SpsFormControl<string>;
|
|
10
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
11
|
+
icon?: SpsIcon;
|
|
12
|
+
name?: string;
|
|
13
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
value?: string;
|
|
16
|
+
additionalText?: string;
|
|
17
|
+
notClearable?: boolean;
|
|
18
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
19
|
+
export declare const SpsTextInput: React.ForwardRefExoticComponent<SpsGlobalPropTypes & {
|
|
20
|
+
autoComplete?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
formControl?: SpsFormControl<string>;
|
|
23
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
24
|
+
icon?: SpsIcon;
|
|
25
|
+
name?: string;
|
|
26
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
value?: string;
|
|
29
|
+
additionalText?: string;
|
|
30
|
+
notClearable?: boolean;
|
|
31
|
+
} & {
|
|
32
|
+
children?: React.ReactNode | undefined;
|
|
33
|
+
} & React.HTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
4
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
+
export type SpsTextareaProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
autoComplete?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
formControl?: SpsFormControl<string>;
|
|
9
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
10
|
+
name?: string;
|
|
11
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
14
|
+
rows?: number;
|
|
15
|
+
value?: string;
|
|
16
|
+
additionalText?: string;
|
|
17
|
+
}> & React.HTMLAttributes<HTMLTextAreaElement>;
|
|
18
|
+
export declare function SpsTextarea({ className, disabled, formControl, formMeta, id, name, onChange, placeholder, ref, rows, "data-testid": testId, unsafelyReplaceClassName, value, additionalText, ...rest }: SpsTextareaProps): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsTileProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
icon: React.ReactNode | (() => React.ReactNode);
|
|
7
|
+
error?: boolean;
|
|
8
|
+
errorIcon?: React.ReactNode | (() => React.ReactNode);
|
|
9
|
+
title: string;
|
|
10
|
+
warning?: boolean;
|
|
11
|
+
warningIcon?: React.ReactNode | (() => React.ReactNode);
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
tagElement?: React.ReactNode | (() => React.ReactNode);
|
|
14
|
+
}> & React.HTMLAttributes<HTMLAnchorElement>;
|
|
15
|
+
export declare function SpsTile(props: SpsTileProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsTileListProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsTileList(props: SpsTileListProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
+
import type { SpsFormControl } from "../form";
|
|
5
|
+
export type SpsTimeInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
autoComplete?: string;
|
|
7
|
+
currentUser?: any;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formControl?: SpsFormControl<string>;
|
|
10
|
+
formMeta?: SpsFormFieldMeta<string>;
|
|
11
|
+
onChange?: (newValue: string) => void;
|
|
12
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
13
|
+
value?: string;
|
|
14
|
+
twentyFourHour?: boolean;
|
|
15
|
+
placeholder12h?: string;
|
|
16
|
+
placeholder24h?: string;
|
|
17
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
18
|
+
export declare const SpsTimeInput: React.ForwardRefExoticComponent<Pick<SpsTimeInputProps, "formMeta" | "value" | "formControl" | keyof SpsGlobalPropTypes | "disabled" | "autoComplete" | "currentUser" | keyof React.HTMLAttributes<HTMLInputElement> | "twentyFourHour" | "placeholder24h" | "placeholder12h"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
3
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export type SpsToggleProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
autoComplete?: string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
formControl?: SpsFormControl<boolean>;
|
|
11
|
+
formMeta?: SpsFormFieldMeta<boolean>;
|
|
12
|
+
id?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
large?: boolean;
|
|
15
|
+
onChange?: (isActive: boolean) => void;
|
|
16
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
17
|
+
}> & Omit<React.HTMLAttributes<HTMLInputElement>, "onChange">;
|
|
18
|
+
export declare function SpsToggle(props: SpsToggleProps): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Position, TooltipKind, TooltipShowTrigger } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export declare enum TooltipVisibility {
|
|
5
|
+
VISIBLE = "visible",
|
|
6
|
+
DEFER_VISIBLE = "defer_visible",
|
|
7
|
+
HIDDEN = "hidden",
|
|
8
|
+
DELAYED_HIDDEN = "delayed_hidden"
|
|
9
|
+
}
|
|
10
|
+
export declare function toggleTooltipState(state: TooltipVisibility): TooltipVisibility.VISIBLE | TooltipVisibility.HIDDEN;
|
|
11
|
+
export type SpsTooltipProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
12
|
+
for: React.MutableRefObject<any> | string;
|
|
13
|
+
hideDelay?: number;
|
|
14
|
+
isShown?: TooltipVisibility;
|
|
15
|
+
kind?: TooltipKind;
|
|
16
|
+
offsets?: number[];
|
|
17
|
+
onDeferred?: () => void;
|
|
18
|
+
position?: Position;
|
|
19
|
+
altPosition?: Position;
|
|
20
|
+
showOn?: TooltipShowTrigger;
|
|
21
|
+
title?: string | React.ReactNode;
|
|
22
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
23
|
+
export declare function SpsTooltip({ children, className, for: forProp, "data-testid": testId, hideDelay, isShown, kind, offsets, onDeferred, position, altPosition, showOn, style, title, unsafelyReplaceClassName, }: SpsTooltipProps): React.ReactPortal;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import { SpsIconSize } from "@spscommerce/ds-shared";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export type SpsTooltipTitleProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
iconSize?: SpsIconSize;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare function SpsTooltipTitle({ icon, iconSize, children, }: SpsTooltipTitleProps): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ChangeEvent } from "react";
|
|
2
|
+
export declare class FauxChangeEvent<T> implements ChangeEvent<T> {
|
|
3
|
+
target: EventTarget & T;
|
|
4
|
+
nativeEvent: Event;
|
|
5
|
+
currentTarget: EventTarget & T;
|
|
6
|
+
private isPgStoppedInternal;
|
|
7
|
+
constructor(target: EventTarget & T, eventInit?: EventInit);
|
|
8
|
+
get bubbles(): boolean;
|
|
9
|
+
get cancelable(): boolean;
|
|
10
|
+
get defaultPrevented(): boolean;
|
|
11
|
+
get eventPhase(): number;
|
|
12
|
+
get isTrusted(): boolean;
|
|
13
|
+
get timeStamp(): number;
|
|
14
|
+
get type(): string;
|
|
15
|
+
preventDefault(): void;
|
|
16
|
+
isDefaultPrevented(): boolean;
|
|
17
|
+
stopPropagation(): void;
|
|
18
|
+
isPropagationStopped(): boolean;
|
|
19
|
+
persist(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This is the use case for Nested: wrapping JSX in a flat list of
|
|
4
|
+
* multiple React context providers instead of creating a pyramid of doom.
|
|
5
|
+
*
|
|
6
|
+
* bindProps (see bindProps.tsx in this same directory) was
|
|
7
|
+
* created to be used with this, so you can set props on the
|
|
8
|
+
* providers, including and especially `value` on the built-in
|
|
9
|
+
* context object's `.Provider` component.
|
|
10
|
+
*
|
|
11
|
+
* <Provide providers={[
|
|
12
|
+
* ProplessProviderFromALibrary,
|
|
13
|
+
* bindProps(MyReallyUsefulContext.Provider, { value: "foo" }),
|
|
14
|
+
* // ...etc
|
|
15
|
+
* ]}>
|
|
16
|
+
* (component tree that will have access to context from these providers)
|
|
17
|
+
* </Provide>
|
|
18
|
+
*/
|
|
19
|
+
type ProvideProps = React.HTMLProps<HTMLDivElement> & {
|
|
20
|
+
providers?: React.ElementType[];
|
|
21
|
+
};
|
|
22
|
+
export declare const Provide: React.FC<ProvideProps>;
|
|
23
|
+
export declare const SpsApp: React.FC<ProvideProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* takes in an ElementType (e.g. a React component) and
|
|
4
|
+
* returns a new version of that component where certain
|
|
5
|
+
* props are ALWAYS set to predefined values.
|
|
6
|
+
*
|
|
7
|
+
* for example, consider the following component:
|
|
8
|
+
* const Foo: React.FC<{
|
|
9
|
+
* a: string;
|
|
10
|
+
* b: string;
|
|
11
|
+
* }> = function ({ a, b }) {
|
|
12
|
+
* return (
|
|
13
|
+
* <span>
|
|
14
|
+
* a is {a} and b is {b}
|
|
15
|
+
* </span>
|
|
16
|
+
* );
|
|
17
|
+
* };
|
|
18
|
+
*
|
|
19
|
+
* <Foo a="dog" b="cat"/> would produce <span>a is dog and b is cat</span>
|
|
20
|
+
*
|
|
21
|
+
* But if you bind the prop a...
|
|
22
|
+
* const FooWithBoundA = bindProps(Foo, { a: "parakeet" });
|
|
23
|
+
*
|
|
24
|
+
* then <FooWithBoundA b="cat"/> will produce <span>a is parakeet and b is cat</span>
|
|
25
|
+
*
|
|
26
|
+
* The type of the props is the same, except that prop a is pre-set and so no
|
|
27
|
+
* longer something that can be passed in.
|
|
28
|
+
*
|
|
29
|
+
* This was created to be used with <Provide> (see Provide.tsx in this same directory),
|
|
30
|
+
* but may have other use cases.
|
|
31
|
+
*/
|
|
32
|
+
export type BoundFC<T extends React.ElementType, K extends Partial<React.ComponentProps<T>>> = React.FC<Omit<React.ComponentProps<T>, keyof K>>;
|
|
33
|
+
export declare function bindProps<T extends React.ElementType, K extends Partial<React.ComponentProps<T>>>(E: T, boundProps: K, deps?: unknown[]): BoundFC<T, K>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CSSProperties, RefObject } from "react";
|
|
2
|
+
import { Position } from "@spscommerce/ds-shared";
|
|
3
|
+
export declare function flipPosition(position: Position): Position;
|
|
4
|
+
export declare function getPosition(subjectRef: RefObject<HTMLElement>, targetRef: RefObject<HTMLElement>, position: Position, { altPosition, setMinWidth, setWidth, parentElementRef, fixed, offsets, }: {
|
|
5
|
+
altPosition?: Position;
|
|
6
|
+
setMinWidth?: boolean;
|
|
7
|
+
setWidth?: boolean;
|
|
8
|
+
parentElementRef?: RefObject<HTMLElement>;
|
|
9
|
+
fixed?: boolean;
|
|
10
|
+
offsets?: [number, number];
|
|
11
|
+
}): [CSSProperties, boolean];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getScrollParent: (node: any) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./bindProps";
|
|
2
|
+
export * from "./contentOf";
|
|
3
|
+
export * from "./FauxChangeEvent";
|
|
4
|
+
export * from "./getPosition";
|
|
5
|
+
export * from "./Provide";
|
|
6
|
+
export * from "./selectChildren";
|
|
7
|
+
export * from "./useCheckDeprecatedProps";
|
|
8
|
+
export * from "./useDidUpdateEffect";
|
|
9
|
+
export * from "./useDocumentEventListener";
|
|
10
|
+
export * from "./useElementId";
|
|
11
|
+
export * from "./useInputPopup";
|
|
12
|
+
export * from "./usePatchReducer";
|
|
13
|
+
export * from "./usePortal";
|
|
14
|
+
export * from "./letterAndNumberKeys";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const letterAndNumberKeys: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCheckDeprecatedProps(componentName: string, propsDoc: Record<string, any>, props: any): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EffectCallback } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Like useEffect, but skips the initial mount and only runs on subsequent updates.
|
|
4
|
+
*
|
|
5
|
+
* React Strict Mode compatibility:
|
|
6
|
+
* Strict Mode simulates unmount/remount cycles in development. Without the cleanup
|
|
7
|
+
* effect below, the ref would persist as `true` across the simulated remount,
|
|
8
|
+
* causing the callback to fire on what should still be the initial mount.
|
|
9
|
+
* The empty-deps effect resets the ref on unmount, ensuring correct behavior.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useDidUpdateEffect(cb: EffectCallback, deps?: any[]): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDocumentEventListener(eventName: string, listenerFactory: (...args: unknown[]) => EventListenerOrEventListenerObject, deps: unknown[]): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare function useInputPopup(rootRef: React.MutableRefObject<HTMLElement | null>, popupRef: React.MutableRefObject<HTMLElement | null>, onHide?: () => void): {
|
|
3
|
+
showPopup: boolean;
|
|
4
|
+
doShowPopup: () => void;
|
|
5
|
+
doHidePopup: (suppressNextShow?: any) => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode, ReactPortal, RefObject } from "react";
|
|
2
|
+
export declare const PortalContext: import("react").Context<{
|
|
3
|
+
parentElementRef?: RefObject<HTMLElement>;
|
|
4
|
+
fixed?: boolean;
|
|
5
|
+
} | null>;
|
|
6
|
+
export declare function usePortal(id: string, classes?: string[]): (jsx: ReactNode) => ReactPortal;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsVerticalRuleProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsVerticalRule(props: SpsVerticalRuleProps): React.JSX.Element;
|
|
5
|
+
export declare function SpsVr(props: SpsVerticalRuleProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsVerticalRule";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export interface WizardStep {
|
|
4
|
+
title: string;
|
|
5
|
+
percentComplete: number;
|
|
6
|
+
active: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface WizardPhase {
|
|
11
|
+
steps: WizardStep[];
|
|
12
|
+
title: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type SpsWizardSidebarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
16
|
+
phases?: WizardPhase[];
|
|
17
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
18
|
+
export declare function SpsWizardSidebar({ className, phases, }: SpsWizardSidebarProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { WizardSubstepConditions } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsWizardSubstepProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
condition: WizardSubstepConditions;
|
|
6
|
+
display: string;
|
|
7
|
+
orderPosition: string | number;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare function SpsWizardSubstep(props: SpsWizardSubstepProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsWorkflowProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
heading?: string;
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsWorkflow(props: SpsWorkflowProps): React.JSX.Element;
|
|
9
|
+
export declare function SpsWf(props: SpsWorkflowProps): React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsWorkflowDocumentProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLSpanElement>;
|
|
4
|
+
export declare function SpsWorkflowDocument(props: SpsWorkflowDocumentProps): React.JSX.Element;
|
|
5
|
+
export declare function SpsWfDoc(props: SpsWorkflowDocumentProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsWorkflowDocumentStatusProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
icon?: SpsIcon;
|
|
6
|
+
}> & React.HTMLAttributes<HTMLSpanElement>;
|
|
7
|
+
export declare function SpsWorkflowDocumentStatus(props: SpsWorkflowDocumentStatusProps): React.JSX.Element;
|
|
8
|
+
export declare function SpsWfDs(props: SpsWorkflowDocumentStatusProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsWorkflowStepProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
icon: SpsIcon;
|
|
6
|
+
title: string;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsWorkflowStep(props: SpsWorkflowStepProps): React.JSX.Element;
|
|
9
|
+
export declare function SpsWfStep(props: SpsWorkflowStepProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsMicroZeroStateProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
illustration?: string;
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
heading?: React.ReactNode | (() => React.ReactNode);
|
|
8
|
+
subHeading?: React.ReactNode | (() => React.ReactNode);
|
|
9
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export declare function SpsMicroZeroState(props: SpsMicroZeroStateProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsZeroStateProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
illustration?: string;
|
|
5
|
+
artwork?: string;
|
|
6
|
+
heading: string;
|
|
7
|
+
subHeading?: string;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare function SpsZeroState(props: SpsZeroStateProps): React.JSX.Element;
|