@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,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { RingSize } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsProgressRingProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
progress?: number;
|
|
6
|
+
size?: RingSize;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsProgressRing({ size, progress, }: SpsProgressRingProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsProgressRing";
|
|
@@ -0,0 +1,19 @@
|
|
|
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 SpsRadioButtonProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
autoComplete?: string;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
formControl?: SpsFormControl<any>;
|
|
10
|
+
formMeta?: SpsFormFieldMeta<any>;
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
centered?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
16
|
+
ref?: React.MutableRefObject<HTMLDivElement>;
|
|
17
|
+
value?: any;
|
|
18
|
+
}> & React.HTMLAttributes<HTMLInputElement>;
|
|
19
|
+
export declare function SpsRadioButton({ checked, className, "data-testid": testId, disabled, formControl, formMeta, id, inline, centered, label, name, onChange, ref, unsafelyReplaceClassName, value, ...rest }: SpsRadioButtonProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsScrollableContainerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
maxHeight?: string;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
export declare function SpsScrollableContainer(props: SpsScrollableContainerProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsScrollableContainer";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsSearchResultsBarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
resultsCount?: number;
|
|
5
|
+
totalResults?: number;
|
|
6
|
+
onClear?: () => void;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsSearchResultsBar(props: SpsSearchResultsBarProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsSearchResultsBarV2Props = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
results?: number | string | null;
|
|
5
|
+
selections?: Record<string, string[]>;
|
|
6
|
+
zeroStateText?: string;
|
|
7
|
+
onClear?: () => void;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare function SpsSearchResultsBarV2(props: SpsSearchResultsBarV2Props): React.JSX.Element;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { SpsActionMethod } from "@spscommerce/ds-shared";
|
|
2
|
+
import type { Eventually } from "@spscommerce/utils";
|
|
3
|
+
import * as React from "react";
|
|
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 SpsSelectProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
8
|
+
action?: SpsActionMethod;
|
|
9
|
+
captionKey?: string;
|
|
10
|
+
comparisonKey?: string;
|
|
11
|
+
conformWidth?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
disabledOptions?: any[];
|
|
14
|
+
formControl?: SpsFormControl<any>;
|
|
15
|
+
formMeta?: SpsFormFieldMeta<any>;
|
|
16
|
+
notClearable?: boolean;
|
|
17
|
+
options: Eventually<any[]> | ((filter?: string) => Eventually<any[]>);
|
|
18
|
+
onChange?: React.ChangeEventHandler;
|
|
19
|
+
onSearchChange?: (searchText: string) => void;
|
|
20
|
+
onOpen?: () => void;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
searchDebounce?: number;
|
|
23
|
+
searchPlaceholder?: string;
|
|
24
|
+
showInlineSearch?: boolean;
|
|
25
|
+
tallOptionList?: boolean;
|
|
26
|
+
textKey?: string;
|
|
27
|
+
valueKey?: string;
|
|
28
|
+
value?: any;
|
|
29
|
+
zeroState?: string;
|
|
30
|
+
autoFixWidth?: boolean;
|
|
31
|
+
loading?: boolean;
|
|
32
|
+
filterByTextAndCaptionKey?: boolean;
|
|
33
|
+
maxHeightOptionListPx?: number;
|
|
34
|
+
maxHeightOptionListRem?: number;
|
|
35
|
+
disableOptionsMemoization?: boolean;
|
|
36
|
+
disableDefaultOptionsFiltering?: boolean;
|
|
37
|
+
onBeforeChange?: (value: string) => boolean | Promise<boolean>;
|
|
38
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
39
|
+
type FocusRef = {
|
|
40
|
+
focus: () => void;
|
|
41
|
+
} | null;
|
|
42
|
+
export declare const SpsSelect: React.ForwardRefExoticComponent<SpsGlobalPropTypes & {
|
|
43
|
+
action?: SpsActionMethod;
|
|
44
|
+
captionKey?: string;
|
|
45
|
+
comparisonKey?: string;
|
|
46
|
+
conformWidth?: boolean;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
disabledOptions?: any[];
|
|
49
|
+
formControl?: SpsFormControl<any>;
|
|
50
|
+
formMeta?: SpsFormFieldMeta<any>;
|
|
51
|
+
notClearable?: boolean;
|
|
52
|
+
options: Eventually<any[]> | ((filter?: string) => Eventually<any[]>);
|
|
53
|
+
onChange?: React.ChangeEventHandler;
|
|
54
|
+
onSearchChange?: (searchText: string) => void;
|
|
55
|
+
onOpen?: () => void;
|
|
56
|
+
placeholder?: string;
|
|
57
|
+
searchDebounce?: number;
|
|
58
|
+
searchPlaceholder?: string;
|
|
59
|
+
showInlineSearch?: boolean;
|
|
60
|
+
tallOptionList?: boolean;
|
|
61
|
+
textKey?: string;
|
|
62
|
+
valueKey?: string;
|
|
63
|
+
value?: any;
|
|
64
|
+
zeroState?: string;
|
|
65
|
+
autoFixWidth?: boolean;
|
|
66
|
+
loading?: boolean;
|
|
67
|
+
filterByTextAndCaptionKey?: boolean;
|
|
68
|
+
maxHeightOptionListPx?: number;
|
|
69
|
+
maxHeightOptionListRem?: number;
|
|
70
|
+
disableOptionsMemoization?: boolean;
|
|
71
|
+
disableDefaultOptionsFiltering?: boolean;
|
|
72
|
+
onBeforeChange?: (value: string) => boolean | Promise<boolean>;
|
|
73
|
+
} & {
|
|
74
|
+
children?: React.ReactNode | undefined;
|
|
75
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<FocusRef>>;
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsIcon, TagKind } from "@spscommerce/ds-shared";
|
|
4
|
+
export interface SideNavItem {
|
|
5
|
+
name: string;
|
|
6
|
+
tag?: TagKind;
|
|
7
|
+
key?: string | number;
|
|
8
|
+
tagContent?: string;
|
|
9
|
+
subNavItems?: SideNavItem[];
|
|
10
|
+
icon?: SpsIcon;
|
|
11
|
+
}
|
|
12
|
+
export interface SideNavSection {
|
|
13
|
+
sectionTitle?: string;
|
|
14
|
+
key?: string | number;
|
|
15
|
+
navItems: SideNavItem[];
|
|
16
|
+
}
|
|
17
|
+
export interface SideNavBranch extends SideNavItem {
|
|
18
|
+
expanded: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface SpsSideNavProps {
|
|
21
|
+
title?: string;
|
|
22
|
+
titleIcon?: SpsIcon;
|
|
23
|
+
activeNavItem: string;
|
|
24
|
+
onNavChange?: (newNav: string, newNavKey?: string | number) => void;
|
|
25
|
+
navOptions: SideNavSection[];
|
|
26
|
+
tabs?: string[];
|
|
27
|
+
initialActiveTab?: string;
|
|
28
|
+
onTabChange?: (newTab: string) => void;
|
|
29
|
+
filterable?: boolean;
|
|
30
|
+
filterInputPlaceholder?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Helper to find if parent navigation contains the active child branch
|
|
34
|
+
* @param nav SideNavItems[] array of navigation branches to be checked
|
|
35
|
+
* @param activeTab string currently active tab
|
|
36
|
+
*/
|
|
37
|
+
export declare const findParentBranches: (nav: SideNavItem[], activeTab: string) => boolean;
|
|
38
|
+
export declare const SpsSideNav: React.FC<SpsSideNavProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SideNavBranch } from "./SpsSideNav";
|
|
4
|
+
export interface SpsSideNavBranchProps {
|
|
5
|
+
branch: SideNavBranch;
|
|
6
|
+
activeBranch: string;
|
|
7
|
+
setActiveBranch: (activeChildBranchName: string, activeChildBranchKey?: string | number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const SpsSideNavBranch: React.FC<SpsSideNavBranchProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsSlackLinkProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
channelId: string;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLAnchorElement>;
|
|
6
|
+
export declare function SpsSlackLink(props: SpsSlackLinkProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsSlideInPanelProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
title?: string;
|
|
5
|
+
show?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
focusElementOnOpen?: React.MutableRefObject<HTMLElement>;
|
|
8
|
+
closeOnEscapePressed: boolean;
|
|
9
|
+
noBackground?: boolean;
|
|
10
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
export declare function SpsSlideInPanel({ children, className, id: idProp, show, closeOnEscapePressed, onClose, focusElementOnOpen, title, noBackground, ...rest }: SpsSlideInPanelProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SortChangeHandler, SortedColumn } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsSortingHeaderProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
sort: SortedColumn[];
|
|
6
|
+
onSortChange: SortChangeHandler;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsSortingHeader({ className, "data-testid": testId, unsafelyReplaceClassName, sort, onSortChange, children, ...rest }: SpsSortingHeaderProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SortChangeHandler, SortedColumn } from "@spscommerce/ds-shared";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsSortingHeaderCellProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
sortKey?: string;
|
|
6
|
+
sortDisabled?: boolean;
|
|
7
|
+
sort?: SortedColumn[];
|
|
8
|
+
onSortChange?: SortChangeHandler;
|
|
9
|
+
widthPx?: number;
|
|
10
|
+
widthRem?: number;
|
|
11
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
12
|
+
export declare function SpsSortingHeaderCell({ className, "data-testid": testId, unsafelyReplaceClassName, sortKey, sort, sortDisabled, onSortChange, onClick, children, widthPx, widthRem, style, ...rest }: SpsSortingHeaderCellProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SpinnerSize } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsSpinnerProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
alt?: string;
|
|
6
|
+
size?: SpinnerSize;
|
|
7
|
+
title?: string;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
export declare function SpsSpinner(props: SpsSpinnerProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SpsSpinner";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import { StdButtonKind } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
import { SpsDropdown } from "../dropdown/SpsDropdown";
|
|
6
|
+
export type SpsSplitButtonProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
href?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
icon?: SpsIcon;
|
|
11
|
+
kind?: StdButtonKind;
|
|
12
|
+
options?: Parameters<typeof SpsDropdown>[0]["options"];
|
|
13
|
+
spinning?: boolean;
|
|
14
|
+
spinningTitle?: string;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
17
|
+
export declare function SpsSplitButton(props: SpsSplitButtonProps): React.JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import { SteppedProgressBarColor } from "@spscommerce/ds-shared";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export interface SteppedProgressBarData {
|
|
6
|
+
index: number;
|
|
7
|
+
icon: SpsIcon;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
skipped: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type SpsSteppedProgressBarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
13
|
+
title?: string;
|
|
14
|
+
stepsCount?: number;
|
|
15
|
+
completedStepsCount?: number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
showStepsCounter?: boolean;
|
|
18
|
+
color?: SteppedProgressBarColor;
|
|
19
|
+
data?: SteppedProgressBarData[];
|
|
20
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
21
|
+
export declare function SpsSteppedProgressBar(props: SpsSteppedProgressBarProps): React.JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const SpsSteppedProgressBarExamples: {
|
|
3
|
+
standard: {
|
|
4
|
+
label: string;
|
|
5
|
+
description: () => React.JSX.Element;
|
|
6
|
+
examples: {
|
|
7
|
+
standard: {
|
|
8
|
+
description: () => React.JSX.Element;
|
|
9
|
+
react: string;
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
description: () => React.JSX.Element;
|
|
13
|
+
react: string;
|
|
14
|
+
};
|
|
15
|
+
skippedSteps: {
|
|
16
|
+
description: () => React.JSX.Element;
|
|
17
|
+
react: string;
|
|
18
|
+
};
|
|
19
|
+
completed: {
|
|
20
|
+
description: () => React.JSX.Element;
|
|
21
|
+
react: string;
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
description: () => React.JSX.Element;
|
|
25
|
+
react: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsSummaryListColumnProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
borderless?: boolean;
|
|
5
|
+
lean?: boolean;
|
|
6
|
+
leaner?: boolean;
|
|
7
|
+
width?: string;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
export declare function SpsSummaryListColumn(props: SpsSummaryListColumnProps): React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsSummaryListExpansionProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
|
+
export declare function SpsSummaryListExpansion(props: SpsSummaryListExpansionProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsSummaryListRowProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
onToggle?: (isExpanded: boolean) => void;
|
|
7
|
+
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare function SpsSummaryListRow(props: SpsSummaryListRowProps): React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SortChangeHandler, SortedColumn, ResizeState, ResizeStateChangeHandler } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsTableProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
onSortChange?: SortChangeHandler;
|
|
6
|
+
sort?: SortedColumn[];
|
|
7
|
+
selectable?: boolean;
|
|
8
|
+
maxHeightPx?: number;
|
|
9
|
+
maxHeightRem?: number;
|
|
10
|
+
resizeable?: boolean;
|
|
11
|
+
resizeState?: ResizeState;
|
|
12
|
+
onResizeStateChange?: ResizeStateChangeHandler;
|
|
13
|
+
}> & React.HTMLAttributes<HTMLTableElement>;
|
|
14
|
+
export declare function SpsTable({ children, className, onSortChange, sort, "data-testid": testId, unsafelyReplaceClassName, maxHeightPx, maxHeightRem, resizeable, resizeState, onResizeStateChange, ...rest }: SpsTableProps): React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsTableBodyProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
4
|
+
export declare function SpsTableBody(props: SpsTableBodyProps): React.JSX.Element;
|
|
5
|
+
export declare function SpsTbody(props: SpsTableBodyProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsTableCellProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
buttonCell?: boolean;
|
|
5
|
+
controlCell?: boolean;
|
|
6
|
+
wrap?: 200 | 300 | 400 | 500 | 600;
|
|
7
|
+
pinned?: boolean;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLTableCellElement>;
|
|
9
|
+
export declare function SpsTableCell(props: SpsTableCellProps): React.JSX.Element;
|
|
10
|
+
export declare function SpsTd(props: SpsTableCellProps): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SortChangeHandler, SortedColumn, ResizeState, ResizeStateChangeHandler } from "@spscommerce/ds-shared";
|
|
3
|
+
interface SpsTableContextValue {
|
|
4
|
+
resizeable: boolean;
|
|
5
|
+
resizeState: ResizeState;
|
|
6
|
+
setResizeState: ResizeStateChangeHandler;
|
|
7
|
+
setSingleResizeState: (resizeKey: string, columnWidth: number | null) => void;
|
|
8
|
+
sort: SortedColumn[];
|
|
9
|
+
setSort: SortChangeHandler;
|
|
10
|
+
}
|
|
11
|
+
declare const SpsTableContext: React.Context<SpsTableContextValue>;
|
|
12
|
+
interface SpsTableContextProviderProps {
|
|
13
|
+
resizeable?: boolean;
|
|
14
|
+
sort?: SortedColumn[];
|
|
15
|
+
onSortChange?: SortChangeHandler;
|
|
16
|
+
resizeState?: ResizeState;
|
|
17
|
+
onResizeStateChange?: ResizeStateChangeHandler;
|
|
18
|
+
}
|
|
19
|
+
declare const SpsTableContextProvider: React.FC<SpsTableContextProviderProps>;
|
|
20
|
+
export { SpsTableContext, SpsTableContextProvider };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsTableHeadProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
pinned?: boolean;
|
|
5
|
+
}> & React.HTMLAttributes<HTMLTableSectionElement>;
|
|
6
|
+
export declare function SpsTableHead({ children, className, "data-testid": testId, unsafelyReplaceClassName, pinned, ...rest }: SpsTableHeadProps): React.JSX.Element;
|
|
7
|
+
export declare function SpsThead(props: SpsTableHeadProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsTableHeaderProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
|
+
controlCell?: boolean;
|
|
5
|
+
sortKey?: string;
|
|
6
|
+
resizeKey?: string;
|
|
7
|
+
pinned?: boolean;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLTableCellElement>;
|
|
9
|
+
export declare function SpsTableHeader({ children, className, controlCell, sortKey, resizeKey, "data-testid": testId, unsafelyReplaceClassName, pinned, ...rest }: SpsTableHeaderProps): React.JSX.Element;
|
|
10
|
+
export declare function SpsTh(props: SpsTableHeaderProps): React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
+
export type SpsTableRowProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLTableRowElement>;
|
|
4
|
+
export declare function SpsTableRow({ children, className, "data-testid": testId, unsafelyReplaceClassName, ...rest }: SpsTableRowProps): React.JSX.Element;
|
|
5
|
+
export declare function SpsTr(props: SpsTableRowProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./SpsTable";
|
|
2
|
+
export * from "./SpsTableHeader";
|
|
3
|
+
export * from "./SpsTableHead";
|
|
4
|
+
export * from "./SpsTableRow";
|
|
5
|
+
export * from "./SpsTableBody";
|
|
6
|
+
export * from "./SpsTableCell";
|
|
7
|
+
export * from "./SpsTable.examples";
|
|
8
|
+
export * from "./useColumnResizer";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const useColumnHeaderResizer: ({ tableHeaderRef, resizerRef, resizeKey, }: {
|
|
3
|
+
tableHeaderRef: React.MutableRefObject<HTMLTableCellElement | null>;
|
|
4
|
+
resizerRef: React.MutableRefObject<HTMLSpanElement | null>;
|
|
5
|
+
resizeKey: string;
|
|
6
|
+
}) => {
|
|
7
|
+
isResizeable: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const useColumnCellResizer: (tableCellRef: React.MutableRefObject<HTMLTableCellElement | null>) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ResizeState } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const usePinnedCellStyle: (isPinned: boolean, elementRef: React.MutableRefObject<HTMLTableCellElement | null>) => void;
|
|
4
|
+
export declare const usePinnedTableBackgroundStyle: (containerRef: React.MutableRefObject<HTMLDivElement | null>) => void;
|
|
5
|
+
export declare const usePinnedTableHeadStyle: (containerRef: React.MutableRefObject<HTMLDivElement | null>, maxHeight?: number, resizeState?: ResizeState) => void;
|
|
6
|
+
export declare const useMaxHeightTableStyle: (containerRef: React.MutableRefObject<HTMLDivElement | null>, maxHeight?: number) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SpsTab } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
+
export type SpsTabsProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
|
+
tabs: SpsTab[];
|
|
6
|
+
activeTab?: SpsTab;
|
|
7
|
+
onTabChange?: (newTab: SpsTab) => void;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
export declare function SpsTabs(props: SpsTabsProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { TabListState } from "@react-stately/tabs";
|
|
3
|
+
import type { AriaTabPanelProps } from "@react-types/tabs";
|
|
4
|
+
export default function SpsTabPanel<T>({ state, ...props }: {
|
|
5
|
+
state: TabListState<T>;
|
|
6
|
+
} & AriaTabPanelProps): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import { TagKind } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
+
export type SpsTagProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
|
+
icon?: SpsIcon;
|
|
7
|
+
kind?: TagKind;
|
|
8
|
+
}> & React.HTMLAttributes<HTMLSpanElement>;
|
|
9
|
+
export declare function SpsTag(props: SpsTagProps): React.JSX.Element;
|