@spscommerce/ds-react 5.10.4 → 5.10.5-ie
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/package.json +13 -19
- package/rollup.config.js +22 -0
- package/vite.config.js +1 -1
- package/lib/_template/SpsComponent.d.ts +0 -15
- package/lib/_template/SpsComponent.examples.d.ts +0 -2
- package/lib/_template/index.d.ts +0 -2
- package/lib/advanced-search/SpsAdvancedSearch.d.ts +0 -22
- package/lib/advanced-search/SpsAdvancedSearch.examples.d.ts +0 -2
- package/lib/advanced-search/index.d.ts +0 -2
- package/lib/autocomplete/SpsAutocomplete.d.ts +0 -27
- package/lib/autocomplete/SpsAutocomplete.examples.d.ts +0 -2
- package/lib/autocomplete/index.d.ts +0 -2
- package/lib/button/SpsButton.d.ts +0 -18
- package/lib/button/SpsButton.examples.d.ts +0 -2
- package/lib/button/SpsButtonGroup.d.ts +0 -10
- package/lib/button/SpsIconButtonPanel.d.ts +0 -10
- package/lib/button/index.d.ts +0 -4
- package/lib/card/SpsCard.d.ts +0 -16
- package/lib/card/SpsCard.examples.d.ts +0 -2
- package/lib/card/SpsCardHeader.d.ts +0 -14
- package/lib/card/SpsCardTabbedPane.d.ts +0 -19
- package/lib/card/index.d.ts +0 -3
- package/lib/card/useTab.d.ts +0 -18
- package/lib/card-v2/SpsCardV2.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Footer.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Header.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Title.d.ts +0 -2
- package/lib/card-v2/index.d.ts +0 -5
- package/lib/checkbox/SpsCheckbox.d.ts +0 -21
- package/lib/checkbox/SpsCheckbox.examples.d.ts +0 -2
- package/lib/checkbox/index.d.ts +0 -2
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +0 -17
- package/lib/checkbox-dropdown/index.d.ts +0 -1
- package/lib/clickable-tag/SpsClickableTag.d.ts +0 -16
- package/lib/clickable-tag/SpsClickableTag.examples.d.ts +0 -2
- package/lib/clickable-tag/index.d.ts +0 -2
- package/lib/column-chooser/SpsColumnChooser.d.ts +0 -19
- package/lib/column-chooser/SpsColumnChooser.examples.d.ts +0 -2
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +0 -17
- package/lib/column-chooser/index.d.ts +0 -3
- package/lib/conditional-field/SpsConditionalField.d.ts +0 -11
- package/lib/conditional-field/SpsConditionalField.examples.d.ts +0 -2
- package/lib/conditional-field/index.d.ts +0 -2
- package/lib/content-row/SpsContentRow.d.ts +0 -22
- package/lib/content-row/SpsContentRow.examples.d.ts +0 -2
- package/lib/content-row/SpsContentRowCol.d.ts +0 -15
- package/lib/content-row/SpsContentRowExpansion.d.ts +0 -10
- package/lib/content-row/index.d.ts +0 -4
- package/lib/currency-input/SpsCurrencyInput.d.ts +0 -18
- package/lib/currency-input/SpsCurrencyInput.examples.d.ts +0 -2
- package/lib/currency-input/index.d.ts +0 -2
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +0 -23
- package/lib/dateRangePicker/SpsDateRangePicker.examples.d.ts +0 -2
- package/lib/dateRangePicker/index.d.ts +0 -2
- package/lib/datepicker/SpsDatepicker.d.ts +0 -19
- package/lib/datepicker/SpsDatepicker.examples.d.ts +0 -2
- package/lib/datepicker/index.d.ts +0 -2
- package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +0 -21
- package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +0 -18
- package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +0 -13
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +0 -18
- package/lib/datepicker-v2/index.d.ts +0 -4
- package/lib/datepicker-v2/useCalendar.d.ts +0 -2
- package/lib/datepicker-v2/useMoment.d.ts +0 -3
- package/lib/datepicker-v2/utils.d.ts +0 -23
- package/lib/datepicker-v2/validation.d.ts +0 -10
- package/lib/datetime/SpsDateTime.d.ts +0 -26
- package/lib/datetime/SpsDateTime.examples.d.ts +0 -2
- package/lib/datetime/index.d.ts +0 -2
- package/lib/description-list/SpsDescriptionList.d.ts +0 -14
- package/lib/description-list/SpsDescriptionList.examples.d.ts +0 -2
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +0 -11
- package/lib/description-list/SpsDescriptionListTerm.d.ts +0 -18
- package/lib/description-list/index.d.ts +0 -4
- package/lib/dropdown/SpsDropdown.d.ts +0 -24
- package/lib/dropdown/SpsDropdown.examples.d.ts +0 -2
- package/lib/dropdown/index.d.ts +0 -2
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +0 -12
- package/lib/feedback-block/SpsFeedbackBlock.examples.d.ts +0 -2
- package/lib/feedback-block/index.d.ts +0 -2
- package/lib/fieldset/SpsFieldset.d.ts +0 -22
- package/lib/fieldset/SpsFieldset.examples.d.ts +0 -2
- package/lib/fieldset/index.d.ts +0 -2
- package/lib/filter-panel/SpsFilterPanel.d.ts +0 -10
- package/lib/filter-panel/SpsFilterPanel.examples.d.ts +0 -2
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +0 -11
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +0 -16
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +0 -16
- package/lib/filter-panel/index.d.ts +0 -5
- package/lib/filter-tile-list/SpsFilterTile.d.ts +0 -15
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +0 -10
- package/lib/filter-tile-list/SpsFilterTileList.examples.d.ts +0 -2
- package/lib/filter-tile-list/index.d.ts +0 -3
- package/lib/focused-task/SpsFocusedTask.d.ts +0 -13
- package/lib/focused-task/SpsFocusedTask.examples.d.ts +0 -2
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +0 -10
- package/lib/focused-task/index.d.ts +0 -3
- package/lib/form/AddRemoveFormRows.examples.d.ts +0 -18
- package/lib/form/SpsForm.d.ts +0 -24
- package/lib/form/SpsForm.examples.d.ts +0 -41
- package/lib/form/SpsFormComponentWrapper.d.ts +0 -19
- package/lib/form/hooks/SpsAbstractControl.interface.d.ts +0 -24
- package/lib/form/hooks/SpsControlSet.interface.d.ts +0 -7
- package/lib/form/hooks/formArray.d.ts +0 -12
- package/lib/form/hooks/formControl.d.ts +0 -9
- package/lib/form/hooks/formGroup.d.ts +0 -10
- package/lib/form/hooks/useForm.d.ts +0 -2
- package/lib/form/hooks/useFormControlId.d.ts +0 -4
- package/lib/form/hooks/useServerSideValidation.d.ts +0 -3
- package/lib/form/hooks/useSpsForm.d.ts +0 -77
- package/lib/form/index.d.ts +0 -15
- package/lib/form/validation/SpsValidators.d.ts +0 -16
- package/lib/form/validation/types.d.ts +0 -7
- package/lib/form/validation/validate.d.ts +0 -2
- package/lib/growler/SpsGrowler.d.ts +0 -17
- package/lib/growler/SpsGrowler.examples.d.ts +0 -2
- package/lib/growler/index.d.ts +0 -3
- package/lib/growler/useGrowlers.d.ts +0 -12
- package/lib/i18n.d.ts +0 -3
- package/lib/icon/SpsIcon.d.ts +0 -13
- package/lib/icon/index.d.ts +0 -1
- package/lib/incrementor/SpsIncrementor.d.ts +0 -15
- package/lib/incrementor/SpsIncrementor.examples.d.ts +0 -2
- package/lib/incrementor/index.d.ts +0 -2
- package/lib/index.cjs.js +0 -8473
- package/lib/index.d.ts +0 -71
- package/lib/index.es.js +0 -38081
- package/lib/input-group/SpsInputGroup.d.ts +0 -17
- package/lib/input-group/index.d.ts +0 -1
- package/lib/insight-tile/SpsInsightTile.d.ts +0 -18
- package/lib/insight-tile/SpsInsightTile.examples.d.ts +0 -2
- package/lib/insight-tile/SpsInsights.d.ts +0 -10
- package/lib/insight-tile/index.d.ts +0 -2
- package/lib/key-value-list/SpsKeyValueList.d.ts +0 -11
- package/lib/key-value-list/SpsKeyValueList.examples.d.ts +0 -2
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +0 -13
- package/lib/key-value-list/index.d.ts +0 -3
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +0 -16
- package/lib/key-value-tag/SpsKeyValueTag.examples.d.ts +0 -2
- package/lib/key-value-tag/index.d.ts +0 -2
- package/lib/label/SpsLabel.d.ts +0 -20
- package/lib/label/SpsLabel.examples.d.ts +0 -2
- package/lib/label/index.d.ts +0 -2
- package/lib/list-action-bar/SpsListActionBar.d.ts +0 -12
- package/lib/list-action-bar/SpsListActionBar.examples.d.ts +0 -2
- package/lib/list-action-bar/index.d.ts +0 -2
- package/lib/list-toolbar/SpsListToolbar.d.ts +0 -25
- package/lib/list-toolbar/SpsListToolbar.examples.d.ts +0 -3
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +0 -12
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +0 -10
- package/lib/list-toolbar/index.d.ts +0 -4
- package/lib/manifest.d.ts +0 -2
- package/lib/micro-block/SpsMicroBlock.d.ts +0 -13
- package/lib/micro-block/SpsMicroBlock.examples.d.ts +0 -2
- package/lib/micro-block/index.d.ts +0 -2
- package/lib/modal/SpsModal.d.ts +0 -25
- package/lib/modal/SpsModal.examples.d.ts +0 -2
- package/lib/modal/SpsModalAction.d.ts +0 -18
- package/lib/modal/SpsModalBody.d.ts +0 -10
- package/lib/modal/SpsModalFooter.d.ts +0 -16
- package/lib/modal/SpsModalHeader.d.ts +0 -11
- package/lib/modal/SpsModalOverlay.d.ts +0 -12
- package/lib/modal/index.d.ts +0 -2
- package/lib/modal-v2/SpsModalV2.d.ts +0 -18
- package/lib/modal-v2/index.d.ts +0 -1
- package/lib/multi-select/SpsMultiSelect.d.ts +0 -34
- package/lib/multi-select/SpsMultiSelect.examples.d.ts +0 -2
- package/lib/multi-select/index.d.ts +0 -2
- package/lib/option-list/SpsOptionList.d.ts +0 -3
- package/lib/option-list/SpsOptionListProps.d.ts +0 -75
- package/lib/option-list/index.d.ts +0 -1
- package/lib/option-list/useOptionListOptions.d.ts +0 -8
- package/lib/option-list/useOptionListSearch.d.ts +0 -13
- package/lib/option-list/useSpsAction.d.ts +0 -2
- package/lib/page-title/SpsPageSubtitle.d.ts +0 -10
- package/lib/page-title/SpsPageTitle.d.ts +0 -10
- package/lib/page-title/SpsPageTitle.examples.d.ts +0 -2
- package/lib/page-title/index.d.ts +0 -3
- package/lib/pagination/SpsPageSelector.d.ts +0 -14
- package/lib/pagination/SpsPagination.d.ts +0 -16
- package/lib/pagination/SpsPagination.examples.d.ts +0 -2
- package/lib/pagination/index.d.ts +0 -3
- package/lib/product-bar/SpsProductBar.d.ts +0 -19
- package/lib/product-bar/SpsProductBar.examples.d.ts +0 -2
- package/lib/product-bar/SpsProductBarTab.d.ts +0 -6
- package/lib/product-bar/index.d.ts +0 -3
- package/lib/progress-bar/SpsProgressBar.d.ts +0 -15
- package/lib/progress-bar/SpsProgressBar.examples.d.ts +0 -27
- package/lib/progress-bar/index.d.ts +0 -2
- package/lib/progress-ring/SpsProgressRing.d.ts +0 -13
- package/lib/progress-ring/index.d.ts +0 -1
- package/lib/prop-types.d.ts +0 -23
- package/lib/radio-button/SpsRadioButton.d.ts +0 -23
- package/lib/radio-button/SpsRadioButton.examples.d.ts +0 -2
- package/lib/radio-button/index.d.ts +0 -2
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +0 -11
- package/lib/scrollable-container/SpsScrollableContainer.examples.d.ts +0 -14
- package/lib/scrollable-container/index.d.ts +0 -2
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +0 -13
- package/lib/search-results-bar/SpsSearchResultsBar.examples.d.ts +0 -2
- package/lib/search-results-bar/index.d.ts +0 -2
- package/lib/select/SpsSelect.d.ts +0 -37
- package/lib/select/SpsSelect.examples.d.ts +0 -2
- package/lib/select/index.d.ts +0 -2
- package/lib/side-nav/SpsSideNav.d.ts +0 -38
- package/lib/side-nav/SpsSideNav.examples.d.ts +0 -2
- package/lib/side-nav/SpsSideNavBranch.d.ts +0 -9
- package/lib/side-nav/index.d.ts +0 -2
- package/lib/slack-link/SpsSlackLink.d.ts +0 -11
- package/lib/slack-link/SpsSlackLink.examples.d.ts +0 -2
- package/lib/slack-link/index.d.ts +0 -2
- package/lib/sorting-header/SpsSortingHeader.d.ts +0 -13
- package/lib/sorting-header/SpsSortingHeader.examples.d.ts +0 -2
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +0 -17
- package/lib/sorting-header/index.d.ts +0 -3
- package/lib/spinner/SpsSpinner.d.ts +0 -14
- package/lib/spinner/SpsSpinner.examples.d.ts +0 -2
- package/lib/spinner/index.d.ts +0 -2
- package/lib/split-button/SpsSplitButton.d.ts +0 -18
- package/lib/split-button/SpsSplitButton.examples.d.ts +0 -2
- package/lib/split-button/index.d.ts +0 -2
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +0 -25
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +0 -24
- package/lib/stepped-progress-bar/index.d.ts +0 -2
- package/lib/summary-list/SpsSummaryList.examples.d.ts +0 -2
- package/lib/summary-list/SpsSummaryListColumn.d.ts +0 -14
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +0 -10
- package/lib/summary-list/SpsSummaryListRow.d.ts +0 -13
- package/lib/summary-list/index.d.ts +0 -4
- package/lib/table/SpsTable.d.ts +0 -14
- package/lib/table/SpsTable.examples.d.ts +0 -2
- package/lib/table/SpsTableBody.d.ts +0 -11
- package/lib/table/SpsTableCell.d.ts +0 -15
- package/lib/table/SpsTableHead.d.ts +0 -15
- package/lib/table/SpsTableHeader.d.ts +0 -17
- package/lib/table/SpsTableRow.d.ts +0 -14
- package/lib/table/index.d.ts +0 -7
- package/lib/table/usePinnedStyles.d.ts +0 -4
- package/lib/tabs/SpsTabs.d.ts +0 -14
- package/lib/tabs-v2/SpsTab.d.ts +0 -6
- package/lib/tabs-v2/SpsTabPanel.d.ts +0 -5
- package/lib/tabs-v2/SpsTabsV2.d.ts +0 -2
- package/lib/tabs-v2/index.d.ts +0 -4
- package/lib/tag/SpsTag.d.ts +0 -13
- package/lib/tag/SpsTag.examples.d.ts +0 -2
- package/lib/tag/index.d.ts +0 -2
- package/lib/task-queue/SpsTaskQueue.d.ts +0 -36
- package/lib/task-queue/SpsTaskQueue.examples.d.ts +0 -2
- package/lib/task-queue/index.d.ts +0 -2
- package/lib/test-util.d.ts +0 -2
- package/lib/text-input/SpsTextInput.d.ts +0 -22
- package/lib/text-input/SpsTextInput.examples.d.ts +0 -2
- package/lib/text-input/index.d.ts +0 -2
- package/lib/textarea/SpsTextarea.d.ts +0 -22
- package/lib/textarea/SpsTextarea.examples.d.ts +0 -2
- package/lib/textarea/index.d.ts +0 -2
- package/lib/tile-list/SpsTile.d.ts +0 -16
- package/lib/tile-list/SpsTileList.d.ts +0 -10
- package/lib/tile-list/SpsTileList.examples.d.ts +0 -2
- package/lib/tile-list/index.d.ts +0 -3
- package/lib/toggle/SpsToggle.d.ts +0 -27
- package/lib/toggle/SpsToggle.examples.d.ts +0 -2
- package/lib/toggle/index.d.ts +0 -2
- package/lib/tooltip/SpsTooltip.d.ts +0 -29
- package/lib/tooltip/SpsTooltip.examples.d.ts +0 -2
- package/lib/tooltip/SpsTooltipTitle.d.ts +0 -13
- package/lib/tooltip/index.d.ts +0 -3
- package/lib/utils/FauxChangeEvent.d.ts +0 -20
- package/lib/utils/contentOf.d.ts +0 -2
- package/lib/utils/getPosition.d.ts +0 -11
- package/lib/utils/getScrollParent.d.ts +0 -1
- package/lib/utils/index.d.ts +0 -11
- package/lib/utils/selectChildren.d.ts +0 -5
- package/lib/utils/useCheckDeprecatedProps.d.ts +0 -2
- package/lib/utils/useDidUpdateEffect.d.ts +0 -2
- package/lib/utils/useDocumentEventListener.d.ts +0 -1
- package/lib/utils/useElementId.d.ts +0 -2
- package/lib/utils/useInputPopup.d.ts +0 -6
- package/lib/utils/usePatchReducer.d.ts +0 -2
- package/lib/utils/usePortal.d.ts +0 -6
- package/lib/vertical-rule/SpsVerticalRule.d.ts +0 -11
- package/lib/vertical-rule/index.d.ts +0 -1
- package/lib/wizard/SpsWizard.examples.d.ts +0 -2
- package/lib/wizard/SpsWizardSidebar.d.ts +0 -23
- package/lib/wizard/SpsWizardSubstep.d.ts +0 -14
- package/lib/wizard/index.d.ts +0 -3
- package/lib/workflow/SpsWorkflow.d.ts +0 -14
- package/lib/workflow/SpsWorkflow.examples.d.ts +0 -2
- package/lib/workflow/SpsWorkflowDocument.d.ts +0 -11
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +0 -13
- package/lib/workflow/SpsWorkflowStep.d.ts +0 -14
- package/lib/workflow/index.d.ts +0 -5
- package/lib/zero-state/SpsMicroZeroState.d.ts +0 -14
- package/lib/zero-state/SpsZeroState.d.ts +0 -13
- package/lib/zero-state/SpsZeroState.examples.d.ts +0 -2
- package/lib/zero-state/index.d.ts +0 -3
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
import type { SpsFormArray } from "../form/hooks/formArray";
|
|
3
|
-
import type { SpsFormGroup } from "../form/hooks/formGroup";
|
|
4
|
-
import type { SpsFormSetMeta } from "../form/hooks/useSpsForm";
|
|
5
|
-
declare const propTypes: {
|
|
6
|
-
formArray: PropTypes.Requireable<SpsFormArray<any>>;
|
|
7
|
-
formGroup: PropTypes.Requireable<SpsFormGroup>;
|
|
8
|
-
formMeta: PropTypes.Requireable<SpsFormSetMeta<any, import("../form/hooks/useSpsForm").InferredSpsFormMetaSetMembers<any>>>;
|
|
9
|
-
stacked: PropTypes.Requireable<boolean>;
|
|
10
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
|
-
className: PropTypes.Requireable<string>;
|
|
12
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
13
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
export declare type SpsInputGroupProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
16
|
-
export declare function SpsInputGroup({ children, className, formArray, formGroup, formMeta, stacked, "data-testid": testId, unsafelyReplaceClassName, ...rest }: SpsInputGroupProps): JSX.Element;
|
|
17
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SpsInputGroup";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SpsInsightTileKind, SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
horizontal: PropTypes.Requireable<boolean>;
|
|
5
|
-
icon: PropTypes.Requireable<SpsIcon>;
|
|
6
|
-
kind: PropTypes.Requireable<SpsInsightTileKind>;
|
|
7
|
-
title: PropTypes.Requireable<string>;
|
|
8
|
-
metric: PropTypes.Requireable<string> | PropTypes.Requireable<number>;
|
|
9
|
-
partnerCount: PropTypes.Requireable<number>;
|
|
10
|
-
totalPartners: PropTypes.Requireable<number>;
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
14
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
export declare type SpsInsightTileProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
17
|
-
export declare function SpsInsightTile(props: SpsInsightTileProps): JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsInsightsProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
-
export declare function SpsInsights(props: SpsInsightsProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
inline: PropTypes.Requireable<boolean>;
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare type SpsKeyValueListProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
10
|
-
export declare function SpsKeyValueList(props: SpsKeyValueListProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { KeyValueListTitleColor } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
itemKey: PropTypes.Validator<PropTypes.ReactNodeOrRenderFn>;
|
|
5
|
-
titleColor: PropTypes.Requireable<KeyValueListTitleColor>;
|
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
-
className: PropTypes.Requireable<string>;
|
|
8
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsKeyValueListItemProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
-
export declare function SpsKeyValueListItem(props: SpsKeyValueListItemProps): JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SpsIcon, TagKind } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
color: PropTypes.Requireable<TagKind>;
|
|
5
|
-
href: PropTypes.Requireable<string>;
|
|
6
|
-
icon: PropTypes.Requireable<SpsIcon>;
|
|
7
|
-
tagKey: PropTypes.Validator<string>;
|
|
8
|
-
value: PropTypes.Validator<string>;
|
|
9
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
12
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
13
|
-
};
|
|
14
|
-
export declare type SpsKeyValueTagProps = PropTypes.InferTS<typeof propTypes, HTMLSpanElement>;
|
|
15
|
-
export declare function SpsKeyValueTag(props: SpsKeyValueTagProps): JSX.Element;
|
|
16
|
-
export {};
|
package/lib/label/SpsLabel.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
4
|
-
import { SpsFormMetaBase } from "../form/hooks/useSpsForm";
|
|
5
|
-
declare const propTypes: {
|
|
6
|
-
description: PropTypes.Requireable<string>;
|
|
7
|
-
for: PropTypes.Validator<SpsFormMetaBase<any> | SpsFormControl<any>>;
|
|
8
|
-
stronglySuggested: PropTypes.Requireable<boolean>;
|
|
9
|
-
help: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
|
|
10
|
-
helpIcon: PropTypes.Requireable<SpsIcon>;
|
|
11
|
-
helpIconColor: PropTypes.Requireable<string>;
|
|
12
|
-
errors: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
|
|
13
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
|
-
className: PropTypes.Requireable<string>;
|
|
15
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
16
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
17
|
-
};
|
|
18
|
-
export declare type SpsLabelProps = PropTypes.InferTS<typeof propTypes, HTMLLabelElement>;
|
|
19
|
-
export declare function SpsLabel({ children, className, description, for: forProp, stronglySuggested, help, helpIcon, helpIconColor, errors, unsafelyReplaceClassName, "data-testid": testId, ...rest }: SpsLabelProps): JSX.Element;
|
|
20
|
-
export {};
|
package/lib/label/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
clearSelected: PropTypes.Validator<() => void>;
|
|
4
|
-
itemsSelected: PropTypes.Requireable<string | number>;
|
|
5
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
className: PropTypes.Requireable<string>;
|
|
7
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
8
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
|
-
export declare type SpsListActionBarProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
11
|
-
export declare function SpsListActionBar(props: SpsListActionBarProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { SpsTab } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
activeTab: PropTypes.Requireable<SpsTab>;
|
|
5
|
-
advancedSearch: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
isOpen: PropTypes.Requireable<boolean>;
|
|
7
|
-
enteredFields: PropTypes.Requireable<number>;
|
|
8
|
-
}>>;
|
|
9
|
-
onToggleAdvancedSearch: PropTypes.Requireable<(boolean: any) => void>;
|
|
10
|
-
onTabChange: PropTypes.Requireable<(SpsTab: any) => void>;
|
|
11
|
-
title: PropTypes.Requireable<string>;
|
|
12
|
-
tabs: PropTypes.Requireable<SpsTab[]>;
|
|
13
|
-
onToolbarPinned: PropTypes.Requireable<(boolean: any) => void>;
|
|
14
|
-
selectable: PropTypes.Requireable<boolean>;
|
|
15
|
-
isSelected: PropTypes.Requireable<boolean>;
|
|
16
|
-
isIndeterminate: PropTypes.Requireable<boolean>;
|
|
17
|
-
onSelectionChange: PropTypes.Requireable<(boolean: any) => void>;
|
|
18
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
-
className: PropTypes.Requireable<string>;
|
|
20
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
21
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
22
|
-
};
|
|
23
|
-
export declare type SpsListToolbarProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
24
|
-
export declare function SpsListToolbar(props: SpsListToolbarProps): JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
onSubmit: PropTypes.Requireable<React.FormEventHandler<Element>>;
|
|
5
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
className: PropTypes.Requireable<string>;
|
|
7
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
8
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
|
-
export declare type SpsListToolbarSearchProps = PropTypes.InferTS<typeof propTypes, HTMLElement>;
|
|
11
|
-
export declare function SpsListToolbarSearch(props: SpsListToolbarSearchProps): JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsListToolbarSearchInfoProps = PropTypes.InferTS<typeof propTypes, HTMLElement>;
|
|
9
|
-
export declare function SpsListToolbarSearchInfo(props: SpsListToolbarSearchInfoProps): JSX.Element;
|
|
10
|
-
export {};
|
package/lib/manifest.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FeedbackBlockKind } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
kind: PropTypes.Requireable<FeedbackBlockKind>;
|
|
5
|
-
message: PropTypes.Validator<PropTypes.ReactNodeLike>;
|
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
-
className: PropTypes.Requireable<string>;
|
|
8
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsMicroBlockProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
-
export declare function SpsMicroBlock(props: SpsMicroBlockProps): JSX.Element;
|
|
13
|
-
export {};
|
package/lib/modal/SpsModal.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
import { SpsModalHeader } from "./SpsModalHeader";
|
|
4
|
-
import { SpsModalOverlay } from "./SpsModalOverlay";
|
|
5
|
-
import { SpsModalBody } from "./SpsModalBody";
|
|
6
|
-
import { SpsModalFooter } from "./SpsModalFooter";
|
|
7
|
-
import { SpsModalAction } from "./SpsModalAction";
|
|
8
|
-
declare const propTypes: {
|
|
9
|
-
kind: PropTypes.Requireable<string>;
|
|
10
|
-
id: PropTypes.Requireable<string>;
|
|
11
|
-
isOpen: PropTypes.Requireable<boolean>;
|
|
12
|
-
header: PropTypes.Requireable<string | (() => string)>;
|
|
13
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
size: PropTypes.Requireable<string>;
|
|
16
|
-
backdrop: PropTypes.Requireable<string>;
|
|
17
|
-
actionRequired: PropTypes.Requireable<boolean>;
|
|
18
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
-
className: PropTypes.Requireable<string>;
|
|
20
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
21
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
22
|
-
};
|
|
23
|
-
export declare type SpsModalProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
24
|
-
declare function SpsModal(modalProps: SpsModalProps): React.ReactPortal;
|
|
25
|
-
export { SpsModal, SpsModalHeader, SpsModalOverlay, SpsModalBody, SpsModalFooter, SpsModalAction, };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonKind } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
kind: PropTypes.Requireable<ButtonKind>;
|
|
5
|
-
closeModal: PropTypes.Requireable<() => void>;
|
|
6
|
-
handleAsync: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
-
turnAsyncOn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
-
turnAsyncOff: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
isAsyncOn: PropTypes.Requireable<boolean>;
|
|
10
|
-
}>>;
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
14
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
export declare type SpsModalActionProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
17
|
-
export declare function SpsModalAction(props: SpsModalActionProps): JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsModalBodyProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
-
export declare function SpsModalBody(props: SpsModalBodyProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
handleAsync: PropTypes.Requireable<PropTypes.InferProps<{
|
|
4
|
-
turnAsyncOn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
5
|
-
turnAsyncOff: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
|
-
isAsyncOn: PropTypes.Requireable<boolean>;
|
|
7
|
-
}>>;
|
|
8
|
-
closeModal: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
12
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
13
|
-
};
|
|
14
|
-
export declare type SpsModalFooterProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
15
|
-
export declare function SpsModalFooter(props: SpsModalFooterProps): JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
header: PropTypes.Requireable<string | (() => string)>;
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare type SpsModalHeaderProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
10
|
-
export declare function SpsModalHeader(props: SpsModalHeaderProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
onOverlayClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
4
|
-
backdrop: PropTypes.Requireable<string>;
|
|
5
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
className: PropTypes.Requireable<string>;
|
|
7
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
8
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
9
|
-
};
|
|
10
|
-
export declare type SpsModalOverlayProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
11
|
-
export declare function SpsModalOverlay(props: SpsModalOverlayProps): JSX.Element;
|
|
12
|
-
export {};
|
package/lib/modal/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ModalKind, ModalSize } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as PropTypes from "../prop-types";
|
|
4
|
-
declare const propTypes: {
|
|
5
|
-
kind: PropTypes.Requireable<ModalKind>;
|
|
6
|
-
size: PropTypes.Requireable<ModalSize>;
|
|
7
|
-
title: PropTypes.Requireable<string>;
|
|
8
|
-
onClose: PropTypes.Requireable<() => void>;
|
|
9
|
-
focusElementOnOpen: PropTypes.Requireable<React.MutableRefObject<HTMLElement>>;
|
|
10
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
|
-
className: PropTypes.Requireable<string>;
|
|
12
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
13
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
export declare type SpsModalV2Props = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
16
|
-
export declare function SpsModalV2Footer({ children }: SpsModalV2Props): JSX.Element;
|
|
17
|
-
export declare function SpsModalV2({ children, className, id: idProp, kind, size, onClose, focusElementOnOpen, title, ...rest }: SpsModalV2Props): JSX.Element;
|
|
18
|
-
export {};
|
package/lib/modal-v2/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./SpsModalV2";
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { Eventually } from "@spscommerce/utils";
|
|
3
|
-
import type { SpsActionMethod } from "@spscommerce/ds-shared";
|
|
4
|
-
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
5
|
-
import * as PropTypes from "../prop-types";
|
|
6
|
-
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
7
|
-
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
8
|
-
declare const propTypes: {
|
|
9
|
-
action: PropTypes.Requireable<SpsActionMethod>;
|
|
10
|
-
captionKey: PropTypes.Requireable<string>;
|
|
11
|
-
debounce: PropTypes.Requireable<number>;
|
|
12
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
13
|
-
disableSelected: PropTypes.Requireable<boolean>;
|
|
14
|
-
comparisonKey: PropTypes.Requireable<string>;
|
|
15
|
-
formControl: PropTypes.Requireable<SpsFormControl<any[]>>;
|
|
16
|
-
formMeta: PropTypes.Requireable<SpsFormFieldMeta<any[]>>;
|
|
17
|
-
hideSelected: PropTypes.Requireable<boolean>;
|
|
18
|
-
icon: PropTypes.Requireable<SpsIcon>;
|
|
19
|
-
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
20
|
-
options: PropTypes.Validator<any[] | Promise<any[]> | ((filter?: string) => Eventually<any[]>)>;
|
|
21
|
-
placeholder: PropTypes.Requireable<string>;
|
|
22
|
-
tallOptionList: PropTypes.Requireable<boolean>;
|
|
23
|
-
textKey: PropTypes.Requireable<string>;
|
|
24
|
-
value: PropTypes.Requireable<any>;
|
|
25
|
-
zeroState: PropTypes.Requireable<string>;
|
|
26
|
-
loading: PropTypes.Requireable<boolean>;
|
|
27
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
28
|
-
className: PropTypes.Requireable<string>;
|
|
29
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
30
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
31
|
-
};
|
|
32
|
-
export declare type SpsMultiSelectProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
33
|
-
export declare function SpsMultiSelect({ action, captionKey, className, debounce, disabled, disableSelected, comparisonKey, formControl, formMeta, hideSelected, id, onChange, options, placeholder, tallOptionList, textKey, unsafelyReplaceClassName, value, zeroState, loading, icon, "data-testid": testId, ...rest }: SpsMultiSelectProps): JSX.Element;
|
|
34
|
-
export {};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { ChangeEventHandler, KeyboardEvent } from "react";
|
|
2
|
-
import type { SpsActionMethod } from "@spscommerce/ds-shared";
|
|
3
|
-
import { Position } from "@spscommerce/ds-shared";
|
|
4
|
-
import type { Eventually } from "@spscommerce/utils";
|
|
5
|
-
import * as PropTypes from "../prop-types";
|
|
6
|
-
export declare const spsOptionListPassthroughProps: {
|
|
7
|
-
docs: {
|
|
8
|
-
options: string;
|
|
9
|
-
captionKey: string;
|
|
10
|
-
disabledOptions: string;
|
|
11
|
-
comparisonKey: string;
|
|
12
|
-
tall: string;
|
|
13
|
-
textKey: string;
|
|
14
|
-
valueKey: string;
|
|
15
|
-
zeroState: string;
|
|
16
|
-
};
|
|
17
|
-
propTypes: {
|
|
18
|
-
captionKey: PropTypes.Requireable<string>;
|
|
19
|
-
comparisonKey: PropTypes.Requireable<string>;
|
|
20
|
-
disabledOptions: PropTypes.Requireable<any[]>;
|
|
21
|
-
options: PropTypes.Validator<any[] | Promise<any[]> | ((filter?: string) => Eventually<any[]>)>;
|
|
22
|
-
tall: PropTypes.Requireable<boolean>;
|
|
23
|
-
textKey: PropTypes.Requireable<string>;
|
|
24
|
-
valueKey: PropTypes.Requireable<string>;
|
|
25
|
-
zeroState: PropTypes.Requireable<string>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare const searchableOptionListProps: {
|
|
29
|
-
hideInlineSearch: PropTypes.Requireable<boolean>;
|
|
30
|
-
onSearchChange: PropTypes.Requireable<ChangeEventHandler<Element>>;
|
|
31
|
-
search: PropTypes.Requireable<string>;
|
|
32
|
-
searchDebounce: PropTypes.Requireable<number>;
|
|
33
|
-
searchPlaceholder: PropTypes.Requireable<string>;
|
|
34
|
-
searchInputRef: PropTypes.Requireable<import("react").MutableRefObject<HTMLInputElement>>;
|
|
35
|
-
};
|
|
36
|
-
export declare const propTypes: {
|
|
37
|
-
attachTo: PropTypes.Validator<import("react").MutableRefObject<HTMLElement>>;
|
|
38
|
-
conformWidth: PropTypes.Requireable<boolean>;
|
|
39
|
-
id: PropTypes.Validator<string>;
|
|
40
|
-
isOpen: PropTypes.Requireable<boolean>;
|
|
41
|
-
keepOpen: PropTypes.Requireable<boolean>;
|
|
42
|
-
keyDown: PropTypes.Requireable<KeyboardEvent<Element>>;
|
|
43
|
-
nullOption: PropTypes.Requireable<string>;
|
|
44
|
-
offsets: PropTypes.Requireable<number[]>;
|
|
45
|
-
onOptionListChanged: PropTypes.Requireable<(filteredListLength: number) => void>;
|
|
46
|
-
onOptionSelected: PropTypes.Requireable<(option: any) => void>;
|
|
47
|
-
onPositionFlip: PropTypes.Requireable<(opensUpward: boolean) => void>;
|
|
48
|
-
onSelfToggle: PropTypes.Requireable<(isOpen: boolean) => void>;
|
|
49
|
-
optionRole: PropTypes.Requireable<string>;
|
|
50
|
-
positionOverride: PropTypes.Requireable<Position[]>;
|
|
51
|
-
selectedOption: PropTypes.Requireable<any>;
|
|
52
|
-
specialAction: PropTypes.Requireable<SpsActionMethod>;
|
|
53
|
-
ignoreWidthStyles: PropTypes.Requireable<boolean>;
|
|
54
|
-
loading: PropTypes.Requireable<boolean>;
|
|
55
|
-
filterByTextAndCaptionKey: PropTypes.Requireable<boolean>;
|
|
56
|
-
hideInlineSearch: PropTypes.Requireable<boolean>;
|
|
57
|
-
onSearchChange: PropTypes.Requireable<ChangeEventHandler<Element>>;
|
|
58
|
-
search: PropTypes.Requireable<string>;
|
|
59
|
-
searchDebounce: PropTypes.Requireable<number>;
|
|
60
|
-
searchPlaceholder: PropTypes.Requireable<string>;
|
|
61
|
-
searchInputRef: PropTypes.Requireable<import("react").MutableRefObject<HTMLInputElement>>;
|
|
62
|
-
captionKey: PropTypes.Requireable<string>;
|
|
63
|
-
comparisonKey: PropTypes.Requireable<string>;
|
|
64
|
-
disabledOptions: PropTypes.Requireable<any[]>;
|
|
65
|
-
options: PropTypes.Validator<any[] | Promise<any[]> | ((filter?: string) => Eventually<any[]>)>;
|
|
66
|
-
tall: PropTypes.Requireable<boolean>;
|
|
67
|
-
textKey: PropTypes.Requireable<string>;
|
|
68
|
-
valueKey: PropTypes.Requireable<string>;
|
|
69
|
-
zeroState: PropTypes.Requireable<string>;
|
|
70
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
71
|
-
className: PropTypes.Requireable<string>;
|
|
72
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
73
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
74
|
-
};
|
|
75
|
-
export declare type SpsOptionListProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./useSpsAction";
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
];
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
8
|
-
}
|
|
9
|
-
export declare function useOptionListSearch({ hideInlineSearch, options, onSearchChange, search, searchPlaceholder, searchInputRef, }: SpsOptionListProps): [
|
|
10
|
-
JSX.Element,
|
|
11
|
-
OptionListSearchState,
|
|
12
|
-
React.Dispatch<Partial<OptionListSearchState>>
|
|
13
|
-
];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsPageSubtitleProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
-
export declare function SpsPageSubtitle(props: SpsPageSubtitleProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
};
|
|
8
|
-
export declare type SpsPageTitleProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
-
export declare function SpsPageTitle(props: SpsPageTitleProps): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
-
className: PropTypes.Requireable<string>;
|
|
5
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
-
numPages: PropTypes.Requireable<number>;
|
|
8
|
-
onPageChange: PropTypes.Requireable<(number: any) => void>;
|
|
9
|
-
page: PropTypes.Requireable<number>;
|
|
10
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
11
|
-
};
|
|
12
|
-
export declare type SpsPageSelectorProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
13
|
-
export declare function SpsPageSelector(props: SpsPageSelectorProps): JSX.Element;
|
|
14
|
-
export {};
|