@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,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
import type { SpsFormArray } from "../form/hooks/formArray";
|
|
4
|
+
import type { SpsFormGroup } from "../form/hooks/formGroup";
|
|
5
|
+
import type { SpsFormSetMeta } from "../form/hooks/useSpsForm";
|
|
6
|
+
export type SpsInputGroupProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
7
|
+
formArray?: SpsFormArray<any>;
|
|
8
|
+
formGroup?: SpsFormGroup;
|
|
9
|
+
formMeta?: SpsFormSetMeta<any>;
|
|
10
|
+
stacked?: boolean;
|
|
11
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare function SpsInputGroup({ children, className, formArray, formGroup, formMeta, stacked, "data-testid": testId, unsafelyReplaceClassName, ...rest }: SpsInputGroupProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsInputGroup";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SpsInsightTileKind, SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsInsightTileProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
horizontal?: boolean;
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
kind?: SpsInsightTileKind;
|
|
8
|
+
title?: string;
|
|
9
|
+
metric?: number | string;
|
|
10
|
+
partnerCount?: number;
|
|
11
|
+
totalPartners?: number;
|
|
12
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
export declare function SpsInsightTile(props: SpsInsightTileProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsInsightsProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsInsights(props: SpsInsightsProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsKeyValueListProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
inline?: boolean;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare function SpsKeyValueList(props: SpsKeyValueListProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { KeyValueListTitleColor } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsKeyValueListItemProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
itemKey: string | React.ReactNode | (() => React.ReactNode);
|
|
6
|
+
titleColor?: KeyValueListTitleColor;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsKeyValueListItem(props: SpsKeyValueListItemProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpsIcon, TagKind } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsKeyValueTagProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
color?: TagKind;
|
|
6
|
+
href?: string;
|
|
7
|
+
icon?: SpsIcon;
|
|
8
|
+
tagKey: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}> & React.HTMLAttributes<HTMLSpanElement>;
|
|
11
|
+
export declare function SpsKeyValueTag(props: SpsKeyValueTagProps): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
5
|
+
import { SpsFormMetaBase } from "../form/hooks/useSpsForm";
|
|
6
|
+
export type SpsLabelProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
7
|
+
description?: string;
|
|
8
|
+
for: SpsFormMetaBase<any> | SpsFormControl<any>;
|
|
9
|
+
stronglySuggested?: boolean;
|
|
10
|
+
help?: React.ReactNode | (() => React.ReactNode);
|
|
11
|
+
helpIcon?: SpsIcon;
|
|
12
|
+
helpIconColor?: string;
|
|
13
|
+
errors?: React.ReactNode | (() => React.ReactNode);
|
|
14
|
+
}> & React.HTMLAttributes<HTMLLabelElement>;
|
|
15
|
+
export declare function SpsLabel({ children, className, description, for: forProp, stronglySuggested, help, helpIcon, helpIconColor, errors, unsafelyReplaceClassName, "data-testid": testId, ...rest }: SpsLabelProps): React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsListActionBarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
clearSelected: () => void;
|
|
5
|
+
itemsSelected: string | number;
|
|
6
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
export declare function SpsListActionBar(props: SpsListActionBarProps): React.ReactElement;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SpsTab } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsListToolbarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
activeTab?: SpsTab;
|
|
6
|
+
advancedSearch?: {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
enteredFields?: number;
|
|
9
|
+
};
|
|
10
|
+
onToggleAdvancedSearch?: (boolean: any) => void;
|
|
11
|
+
onTabChange?: (SpsTab: any) => void;
|
|
12
|
+
title?: string;
|
|
13
|
+
tabs?: SpsTab[];
|
|
14
|
+
onToolbarPinned?: (boolean: any) => void;
|
|
15
|
+
selectable?: boolean;
|
|
16
|
+
isSelected?: boolean;
|
|
17
|
+
isIndeterminate?: boolean;
|
|
18
|
+
onSelectionChange?: (boolean: any) => void;
|
|
19
|
+
pinResultsBar?: boolean;
|
|
20
|
+
pinToolbar?: boolean;
|
|
21
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
22
|
+
export declare function SpsListToolbar(props: SpsListToolbarProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsListToolbarSearchProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
onSubmit?: React.FormEventHandler;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
export declare function SpsListToolbarSearch(props: SpsListToolbarSearchProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsListToolbarSearchInfoProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLElement>;
|
|
4
|
+
export declare function SpsListToolbarSearchInfo(props: SpsListToolbarSearchInfoProps): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SortDirection, SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export interface SortOption {
|
|
5
|
+
label: string;
|
|
6
|
+
key: string;
|
|
7
|
+
direction: SortDirection;
|
|
8
|
+
icon: SpsIcon;
|
|
9
|
+
}
|
|
10
|
+
export type SpsListToolbarSortByProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
11
|
+
options?: SortOption[];
|
|
12
|
+
activeOption?: SortOption;
|
|
13
|
+
onSortChange?: (option: SortOption) => void;
|
|
14
|
+
defaultOption?: SortOption;
|
|
15
|
+
}> & React.HTMLAttributes<HTMLElement>;
|
|
16
|
+
export declare function SpsListToolbarSortBy(props: SpsListToolbarSortByProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FeedbackBlockKind } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsMicroBlockProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
kind?: FeedbackBlockKind;
|
|
6
|
+
message: string;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsMicroBlock(props: SpsMicroBlockProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModalKind, ModalSize } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsModalProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
kind?: ModalKind;
|
|
6
|
+
size?: ModalSize;
|
|
7
|
+
title?: string;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
focusElementOnOpen?: React.MutableRefObject<HTMLElement>;
|
|
10
|
+
fullHeight?: boolean;
|
|
11
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare function SpsModalFooter({ children }: SpsModalProps): React.JSX.Element;
|
|
13
|
+
export declare function SpsModal({ children, className, id: idProp, kind, size, onClose, focusElementOnOpen, title, fullHeight, ...rest }: SpsModalProps): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type UseModalsType = [
|
|
2
|
+
modals: JSX.Element[],
|
|
3
|
+
pushModal: <T>(component: JSX.Element) => Promise<ModalResult<T>>,
|
|
4
|
+
popModal: <T>(result?: ModalResult<T>) => void
|
|
5
|
+
];
|
|
6
|
+
export declare enum ModalAction {
|
|
7
|
+
Ok = "Ok",
|
|
8
|
+
Cancel = "Cancel"
|
|
9
|
+
}
|
|
10
|
+
export interface ModalResult<T> {
|
|
11
|
+
action: ModalAction;
|
|
12
|
+
data?: T;
|
|
13
|
+
}
|
|
14
|
+
export declare const useModals: () => UseModalsType;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Eventually } from "@spscommerce/utils";
|
|
3
|
+
import type { SpsActionMethod, SpsIcon } from "@spscommerce/ds-shared";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
6
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
7
|
+
export type SpsMultiSelectProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
8
|
+
autoComplete?: string;
|
|
9
|
+
action?: SpsActionMethod;
|
|
10
|
+
captionKey?: string;
|
|
11
|
+
clearSearchOnBlur?: boolean;
|
|
12
|
+
clearSearchOnEnter?: boolean;
|
|
13
|
+
comparisonKey?: string;
|
|
14
|
+
conformWidth?: boolean;
|
|
15
|
+
debounce?: number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
disableOptionsMemoization?: boolean;
|
|
18
|
+
disableSelected?: boolean;
|
|
19
|
+
formControl?: SpsFormControl<any[]>;
|
|
20
|
+
formMeta?: SpsFormFieldMeta<any[]>;
|
|
21
|
+
hideSelected?: boolean;
|
|
22
|
+
icon?: SpsIcon;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
filterByTextAndCaptionKey?: boolean;
|
|
25
|
+
maxHeightOptionListPx?: number;
|
|
26
|
+
maxHeightOptionListRem?: number;
|
|
27
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
28
|
+
onSearchChange?: (searchText: string) => void;
|
|
29
|
+
options: Eventually<any[]> | ((filter?: string) => Eventually<any[]>);
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
tallOptionList?: boolean;
|
|
32
|
+
textKey?: string;
|
|
33
|
+
value?: any;
|
|
34
|
+
zeroState?: string;
|
|
35
|
+
wrap?: boolean;
|
|
36
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
37
|
+
export declare function SpsMultiSelect({ action, captionKey, className, clearSearchOnBlur, clearSearchOnEnter, conformWidth, debounce, disabled, disableSelected, comparisonKey, formControl, formMeta, hideSelected, id, onChange, onSearchChange, options, placeholder, tallOptionList, textKey, unsafelyReplaceClassName, value: valueProp, zeroState, loading, filterByTextAndCaptionKey, icon, maxHeightOptionListPx, maxHeightOptionListRem, disableOptionsMemoization, "data-testid": testId, wrap, ...rest }: SpsMultiSelectProps): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 SpsMultiValueTextInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
7
|
+
autoComplete?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formControl?: SpsFormControl<any[]>;
|
|
10
|
+
formMeta?: SpsFormFieldMeta<any[]>;
|
|
11
|
+
icon?: SpsIcon;
|
|
12
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
13
|
+
onEntryChange?: (searchText: string) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
value?: string[];
|
|
16
|
+
createTagOptions?: string[];
|
|
17
|
+
isSingleLine?: boolean;
|
|
18
|
+
dynamicPasting?: boolean;
|
|
19
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
20
|
+
export declare function SpsMultiValueTextInput({ className, disabled, formControl, formMeta, id, onChange, onEntryChange, placeholder, unsafelyReplaceClassName, value, icon, createTagOptions, "data-testid": testId, isSingleLine, dynamicPasting, ...rest }: SpsMultiValueTextInputProps): React.JSX.Element;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ChangeEventHandler, KeyboardEvent, MutableRefObject, PropsWithChildren, HTMLAttributes } from "react";
|
|
2
|
+
import type { SpsActionMethod, Position } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { Eventually } from "@spscommerce/utils";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
/**
|
|
6
|
+
* Minimal keyboard event data to store in state.
|
|
7
|
+
* We don't store the full KeyboardEvent because React 19's profiler traverses
|
|
8
|
+
* all object properties in dev mode, and KeyboardEvent.view is a Window reference
|
|
9
|
+
* that causes SecurityError when accessed in cross-origin iframes.
|
|
10
|
+
*/
|
|
11
|
+
export interface MinimalKeyboardEvent {
|
|
12
|
+
key: string;
|
|
13
|
+
preventDefault: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const spsOptionListPassthroughProps: {
|
|
16
|
+
docs: {
|
|
17
|
+
options: string;
|
|
18
|
+
captionKey: string;
|
|
19
|
+
disabledOptions: string;
|
|
20
|
+
comparisonKey: string;
|
|
21
|
+
tall: string;
|
|
22
|
+
textKey: string;
|
|
23
|
+
valueKey: string;
|
|
24
|
+
zeroState: string;
|
|
25
|
+
maxHeightPx: string;
|
|
26
|
+
maxHeightRem: string;
|
|
27
|
+
disableOptionsMemoization: string;
|
|
28
|
+
onSpecialActionSelect: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export interface SpsOptionListPassthroughProps {
|
|
32
|
+
captionKey?: string;
|
|
33
|
+
comparisonKey?: string;
|
|
34
|
+
disabledOptions?: any[];
|
|
35
|
+
options: any[] | Promise<any[]> | ((filter?: string) => Eventually<any[]>);
|
|
36
|
+
tall?: boolean;
|
|
37
|
+
textKey?: string;
|
|
38
|
+
valueKey?: string;
|
|
39
|
+
zeroState?: string;
|
|
40
|
+
maxHeightPx?: number;
|
|
41
|
+
maxHeightRem?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface SpsSearchableOptionListProps {
|
|
44
|
+
/**
|
|
45
|
+
* Hides the inline search input when options is a function (async).
|
|
46
|
+
* By default, async options show the search input; set this to true to hide it.
|
|
47
|
+
*/
|
|
48
|
+
hideInlineSearch?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Shows the inline search input when options is a static array.
|
|
51
|
+
* By default, static arrays don't show the search input; set this to true to show it.
|
|
52
|
+
* Useful when you want to manage filtering externally via onSearchChange.
|
|
53
|
+
*/
|
|
54
|
+
showInlineSearch?: boolean;
|
|
55
|
+
onSearchChange?: ChangeEventHandler;
|
|
56
|
+
search?: string;
|
|
57
|
+
searchDebounce?: number;
|
|
58
|
+
searchPlaceholder?: string;
|
|
59
|
+
searchInputRef?: MutableRefObject<HTMLInputElement | null>;
|
|
60
|
+
onSpecialActionSelect?: () => void;
|
|
61
|
+
}
|
|
62
|
+
export type SpsOptionListProps = PropsWithChildren<SpsGlobalPropTypes & SpsOptionListPassthroughProps & SpsSearchableOptionListProps & {
|
|
63
|
+
attachTo: MutableRefObject<HTMLElement | null>;
|
|
64
|
+
conformWidth?: boolean;
|
|
65
|
+
id: string;
|
|
66
|
+
isOpen?: boolean;
|
|
67
|
+
keepOpen?: boolean;
|
|
68
|
+
keyDown?: MinimalKeyboardEvent | null;
|
|
69
|
+
nullOption?: string;
|
|
70
|
+
offsets?: number[];
|
|
71
|
+
onOptionListChanged?: (filteredListLength: number) => void;
|
|
72
|
+
onOptionSelected?: (option: any) => void;
|
|
73
|
+
onPositionFlip?: (opensUpward: boolean) => void;
|
|
74
|
+
onSelfToggle?: (isOpen: boolean) => void;
|
|
75
|
+
optionRole?: string;
|
|
76
|
+
positionOverride?: Position[];
|
|
77
|
+
selectedOption?: any;
|
|
78
|
+
specialAction?: SpsActionMethod;
|
|
79
|
+
ignoreWidthStyles?: boolean;
|
|
80
|
+
loading?: boolean;
|
|
81
|
+
filterByTextAndCaptionKey?: boolean;
|
|
82
|
+
disableOptionsMemoization?: boolean;
|
|
83
|
+
disableDefaultOptionsFiltering?: boolean;
|
|
84
|
+
typeaheadEvent?: MinimalKeyboardEvent;
|
|
85
|
+
}> & HTMLAttributes<HTMLDivElement>;
|
|
86
|
+
/**
|
|
87
|
+
* Helper to extract minimal keyboard event data for safe storage in React state.
|
|
88
|
+
*/
|
|
89
|
+
export declare function toMinimalKeyboardEvent(event: KeyboardEvent | React.KeyboardEvent<Element>): MinimalKeyboardEvent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useSpsAction";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { SpsOptionListOption } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsOptionListProps } from "./SpsOptionListProps";
|
|
4
|
+
import type { OptionListSearchState } from "./useOptionListSearch";
|
|
5
|
+
export declare function useOptionListOptions(props: SpsOptionListProps, searchState: OptionListSearchState, searchStatePatch: React.Dispatch<Partial<OptionListSearchState>>): [
|
|
6
|
+
ReadonlyArray<SpsOptionListOption<any>>,
|
|
7
|
+
boolean
|
|
8
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsOptionListProps } from "./SpsOptionListProps";
|
|
3
|
+
export interface OptionListSearchState {
|
|
4
|
+
isAsync: boolean;
|
|
5
|
+
pending: boolean;
|
|
6
|
+
value: string;
|
|
7
|
+
replacementPattern: RegExp | null;
|
|
8
|
+
}
|
|
9
|
+
export declare function useOptionListSearch({ hideInlineSearch, showInlineSearch, options, onSearchChange, search, searchPlaceholder, searchInputRef, }: SpsOptionListProps): [
|
|
10
|
+
JSX.Element,
|
|
11
|
+
OptionListSearchState,
|
|
12
|
+
React.Dispatch<Partial<OptionListSearchState>>
|
|
13
|
+
];
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsPageSubtitleProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsPageSubtitle(props: SpsPageSubtitleProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsPageTitleProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsPageTitle(props: SpsPageTitleProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsPageSelectorProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
numPages?: number;
|
|
5
|
+
onPageChange?: (pageNumber: number) => void;
|
|
6
|
+
page?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
unknownPageCount?: boolean;
|
|
9
|
+
nextPageBtnDisabled?: boolean;
|
|
10
|
+
onBeforeChange?: (page: number) => boolean | Promise<boolean>;
|
|
11
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare function SpsPageSelector(props: SpsPageSelectorProps): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsPaginationProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
onPageChange: (page: number, pageSize: number, indices: [number, number]) => void;
|
|
5
|
+
page?: number;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
pageSizeOptions?: number[];
|
|
8
|
+
totalResults?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
unknownPageCount?: boolean;
|
|
11
|
+
nextPageBtnDisabled?: boolean;
|
|
12
|
+
resultsOnPage?: number;
|
|
13
|
+
onBeforeChange?: (page: number, pageSize: number) => boolean | Promise<boolean>;
|
|
14
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
export declare function SpsPagination(props: SpsPaginationProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsProductBarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
activeTab?: string;
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
onTabChange?: (newTab: string) => void;
|
|
7
|
+
onProductNameClick?: React.MouseEventHandler;
|
|
8
|
+
productLogoSrc?: string;
|
|
9
|
+
productName?: string;
|
|
10
|
+
productNameHref?: string;
|
|
11
|
+
tabs?: string[];
|
|
12
|
+
}> & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
export declare function SpsProductBar(props: SpsProductBarProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type SpsProductBarTagProps<T extends React.ElementType> = {
|
|
3
|
+
active: boolean;
|
|
4
|
+
as?: T;
|
|
5
|
+
} & React.ComponentPropsWithoutRef<T>;
|
|
6
|
+
export declare function SpsProductBarTab<T extends React.ElementType = "a">(props: SpsProductBarTagProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsProgressBarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
percentComplete?: number;
|
|
5
|
+
title?: string;
|
|
6
|
+
detail?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
export declare function SpsProgressBar(props: SpsProgressBarProps): React.JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const SpsProgressBarExamples: {
|
|
3
|
+
general: {
|
|
4
|
+
label: string;
|
|
5
|
+
customSection: () => React.JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
standard: {
|
|
8
|
+
label: string;
|
|
9
|
+
description: () => React.JSX.Element;
|
|
10
|
+
examples: {
|
|
11
|
+
standard: {
|
|
12
|
+
label: string;
|
|
13
|
+
description: () => React.JSX.Element;
|
|
14
|
+
react: string;
|
|
15
|
+
};
|
|
16
|
+
completed: {
|
|
17
|
+
label: string;
|
|
18
|
+
description: () => React.JSX.Element;
|
|
19
|
+
react: string;
|
|
20
|
+
};
|
|
21
|
+
disabled: {
|
|
22
|
+
label: string;
|
|
23
|
+
description: () => React.JSX.Element;
|
|
24
|
+
react: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|