@spscommerce/ds-react 8.20.11 → 8.20.12
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/lib/advanced-search/SpsAdvancedSearch.d.ts +1 -1
- package/lib/autocomplete/SpsAutocomplete.d.ts +1 -1
- package/lib/button/SpsButton.d.ts +1 -1
- package/lib/button/SpsButtonGroup.d.ts +1 -1
- package/lib/button/SpsIconButtonPanel.d.ts +1 -1
- package/lib/card/SpsCard.d.ts +1 -1
- package/lib/card/SpsCardHeader.d.ts +1 -1
- package/lib/card/SpsCardTabbedPane.d.ts +1 -1
- package/lib/card/useTab.d.ts +1 -1
- package/lib/checkbox/SpsCheckbox.d.ts +1 -1
- package/lib/checkbox-dropdown/SpsCheckboxDropdown.d.ts +3 -3
- package/lib/clickable-tag/SpsClickableTag.d.ts +1 -1
- package/lib/column-chooser/SpsColumnChooser.d.ts +1 -1
- package/lib/column-chooser/SpsColumnChooserColumn.d.ts +1 -1
- package/lib/conditional-field/SpsConditionalField.d.ts +1 -1
- package/lib/content-row/SpsContentRow.d.ts +1 -1
- package/lib/content-row/SpsContentRowCol.d.ts +1 -1
- package/lib/content-row/SpsContentRowExpansion.d.ts +1 -1
- package/lib/currency-input/SpsCurrencyInput.d.ts +1 -1
- package/lib/dateRangePicker/SpsDateRangePicker.d.ts +1 -1
- package/lib/dateTimeRangePicker/SpsDateTimeRangePicker.d.ts +1 -1
- package/lib/datepicker/SpsDatepicker.d.ts +1 -1
- package/lib/datepicker/SpsDatepickerCalendar.d.ts +1 -1
- package/lib/datepicker/SpsDatepickerPopup.d.ts +2 -2
- package/lib/datetime/SpsDateTime.d.ts +1 -1
- package/lib/description-list/SpsDescriptionList.d.ts +1 -1
- package/lib/description-list/SpsDescriptionListDefinition.d.ts +1 -1
- package/lib/description-list/SpsDescriptionListTerm.d.ts +1 -1
- package/lib/dropdown/SpsDropdown.d.ts +1 -1
- package/lib/feedback-block/SpsFeedbackBlock.d.ts +1 -1
- package/lib/fieldset/SpsFieldset.d.ts +1 -1
- package/lib/filter-panel/SpsFilterPanel.d.ts +1 -1
- package/lib/filter-panel/SpsFilterPanelCap.d.ts +1 -1
- package/lib/filter-panel/SpsFilterPanelFilterBox.d.ts +1 -1
- package/lib/filter-panel/SpsFilterPanelSection.d.ts +1 -1
- package/lib/filter-tile-list/SpsFilterTile.d.ts +1 -1
- package/lib/filter-tile-list/SpsFilterTileList.d.ts +1 -1
- package/lib/focused-task/SpsFocusedTask.d.ts +1 -1
- package/lib/focused-task/SpsFocusedTaskActions.d.ts +1 -1
- package/lib/form/SpsForm.d.ts +3 -3
- package/lib/form/SpsFormComponentWrapper.d.ts +3 -3
- package/lib/form/hooks/useSpsForm.d.ts +9 -9
- package/lib/form/validation/SpsValidators.d.ts +3 -3
- package/lib/form/validation/types.d.ts +4 -4
- package/lib/growler/SpsGrowler.d.ts +1 -1
- package/lib/icon/SpsIcon.d.ts +1 -1
- package/lib/incrementor/SpsIncrementor.d.ts +1 -1
- package/lib/index.cjs.js +56 -56
- package/lib/index.es.js +549 -546
- package/lib/input-group/SpsInputGroup.d.ts +1 -1
- package/lib/insight-tile/SpsInsightTile.d.ts +1 -1
- package/lib/insight-tile/SpsInsights.d.ts +1 -1
- package/lib/key-value-list/SpsKeyValueList.d.ts +1 -1
- package/lib/key-value-list/SpsKeyValueListItem.d.ts +1 -1
- package/lib/key-value-tag/SpsKeyValueTag.d.ts +1 -1
- package/lib/label/SpsLabel.d.ts +1 -1
- package/lib/list-action-bar/SpsListActionBar.d.ts +1 -1
- package/lib/list-toolbar/SpsListToolbar.d.ts +1 -1
- package/lib/list-toolbar/SpsListToolbarSearch.d.ts +1 -1
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +1 -1
- package/lib/list-toolbar/SpsListToolbarSortBy.d.ts +1 -1
- package/lib/micro-block/SpsMicroBlock.d.ts +1 -1
- package/lib/modal/SpsModal.d.ts +1 -1
- package/lib/modal/useModals.d.ts +1 -1
- package/lib/multi-select/SpsMultiSelect.d.ts +1 -1
- package/lib/multi-value-text-input/SpsMultiValueTextInput.d.ts +1 -1
- package/lib/option-list/SpsOptionListProps.d.ts +1 -1
- package/lib/page-title/SpsPageSubtitle.d.ts +1 -1
- package/lib/page-title/SpsPageTitle.d.ts +1 -1
- package/lib/pagination/SpsPageSelector.d.ts +1 -1
- package/lib/pagination/SpsPagination.d.ts +1 -1
- package/lib/product-bar/SpsProductBar.d.ts +1 -1
- package/lib/product-bar/SpsProductBarTab.d.ts +1 -1
- package/lib/progress-bar/SpsProgressBar.d.ts +1 -1
- package/lib/progress-ring/SpsProgressRing.d.ts +1 -1
- package/lib/radio-button/SpsRadioButton.d.ts +1 -1
- package/lib/scrollable-container/SpsScrollableContainer.d.ts +1 -1
- package/lib/search-results-bar/SpsSearchResultsBar.d.ts +1 -1
- package/lib/search-results-bar/SpsSearchResultsBarV2.d.ts +1 -1
- package/lib/select/SpsSelect.d.ts +27 -27
- package/lib/slack-link/SpsSlackLink.d.ts +1 -1
- package/lib/slide-in-panel/SpsSlideInPanel.d.ts +1 -1
- package/lib/sorting-header/SpsSortingHeader.d.ts +1 -1
- package/lib/sorting-header/SpsSortingHeaderCell.d.ts +1 -1
- package/lib/spinner/SpsSpinner.d.ts +1 -1
- package/lib/split-button/SpsSplitButton.d.ts +1 -1
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +1 -1
- package/lib/summary-list/SpsSummaryListColumn.d.ts +1 -1
- package/lib/summary-list/SpsSummaryListExpansion.d.ts +1 -1
- package/lib/summary-list/SpsSummaryListRow.d.ts +1 -1
- package/lib/table/SpsTable.d.ts +1 -1
- package/lib/table/SpsTableBody.d.ts +1 -1
- package/lib/table/SpsTableCell.d.ts +1 -1
- package/lib/table/SpsTableHead.d.ts +1 -1
- package/lib/table/SpsTableHeader.d.ts +1 -1
- package/lib/table/SpsTableRow.d.ts +1 -1
- package/lib/tabs/SpsTabs.d.ts +1 -1
- package/lib/tag/SpsTag.d.ts +1 -1
- package/lib/task-queue/SpsTaskQueue.d.ts +2 -2
- package/lib/text-input/SpsTextInput.d.ts +13 -13
- package/lib/textarea/SpsTextarea.d.ts +1 -1
- package/lib/tile-list/SpsTile.d.ts +1 -1
- package/lib/tile-list/SpsTileList.d.ts +1 -1
- package/lib/time-input/SpsTimeInput.d.ts +1 -1
- package/lib/toggle/SpsToggle.d.ts +1 -1
- package/lib/tooltip/SpsTooltip.d.ts +1 -1
- package/lib/tooltip/SpsTooltipTitle.d.ts +1 -1
- package/lib/utils/Provide.d.ts +1 -1
- package/lib/utils/bindProps.d.ts +1 -1
- package/lib/utils/usePortal.d.ts +2 -2
- package/lib/vertical-rule/SpsVerticalRule.d.ts +1 -1
- package/lib/wizard/SpsWizardSidebar.d.ts +1 -1
- package/lib/wizard/SpsWizardSubstep.d.ts +1 -1
- package/lib/workflow/SpsWorkflow.d.ts +1 -1
- package/lib/workflow/SpsWorkflowDocument.d.ts +1 -1
- package/lib/workflow/SpsWorkflowDocumentStatus.d.ts +1 -1
- package/lib/workflow/SpsWorkflowStep.d.ts +1 -1
- package/lib/zero-state/SpsMicroZeroState.d.ts +1 -1
- package/lib/zero-state/SpsZeroState.d.ts +1 -1
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
3
|
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
-
export
|
|
4
|
+
export type SpsTimeInputProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
5
|
autoComplete?: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
formMeta?: SpsFormFieldMeta<string>;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
3
3
|
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
4
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
-
export
|
|
5
|
+
export type SpsToggleProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
6
|
autoComplete?: string;
|
|
7
7
|
active?: boolean;
|
|
8
8
|
description?: string;
|
|
@@ -8,7 +8,7 @@ export declare enum TooltipVisibility {
|
|
|
8
8
|
DELAYED_HIDDEN = "delayed_hidden"
|
|
9
9
|
}
|
|
10
10
|
export declare function toggleTooltipState(state: TooltipVisibility): TooltipVisibility.VISIBLE | TooltipVisibility.HIDDEN;
|
|
11
|
-
export
|
|
11
|
+
export type SpsTooltipProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
12
12
|
for: React.MutableRefObject<any> | string;
|
|
13
13
|
hideDelay?: number;
|
|
14
14
|
isShown?: TooltipVisibility;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
3
|
import { SpsIconSize } from "@spscommerce/ds-shared";
|
|
4
4
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
5
|
-
export
|
|
5
|
+
export type SpsTooltipTitleProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
6
6
|
icon?: SpsIcon;
|
|
7
7
|
iconSize?: SpsIconSize;
|
|
8
8
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
package/lib/utils/Provide.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import * as React from "react";
|
|
|
16
16
|
* (component tree that will have access to context from these providers)
|
|
17
17
|
* </Provide>
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
type ProvideProps = React.HTMLProps<HTMLDivElement> & {
|
|
20
20
|
providers?: React.ElementType[];
|
|
21
21
|
};
|
|
22
22
|
export declare const Provide: React.FC<ProvideProps>;
|
package/lib/utils/bindProps.d.ts
CHANGED
|
@@ -29,5 +29,5 @@ import * as React from "react";
|
|
|
29
29
|
* This was created to be used with <Provide> (see Provide.tsx in this same directory),
|
|
30
30
|
* but may have other use cases.
|
|
31
31
|
*/
|
|
32
|
-
export
|
|
32
|
+
export type BoundFC<T extends React.ElementType, K extends Partial<React.ComponentProps<T>>> = React.FC<Omit<React.ComponentProps<T>, keyof K>>;
|
|
33
33
|
export declare function bindProps<T extends React.ElementType, K extends Partial<React.ComponentProps<T>>>(E: T, boundProps: K, deps?: unknown[]): BoundFC<T, K>;
|
package/lib/utils/usePortal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode, ReactPortal, RefObject } from "react";
|
|
2
2
|
export declare const PortalContext: import("react").Context<{
|
|
3
|
-
parentElementRef?: RefObject<HTMLElement
|
|
4
|
-
fixed?: boolean
|
|
3
|
+
parentElementRef?: RefObject<HTMLElement>;
|
|
4
|
+
fixed?: boolean;
|
|
5
5
|
} | null>;
|
|
6
6
|
export declare function usePortal(id: string, classes?: string[]): (jsx: ReactNode) => ReactPortal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
-
export
|
|
3
|
+
export type SpsVerticalRuleProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLDivElement>;
|
|
4
4
|
export declare function SpsVerticalRule(props: SpsVerticalRuleProps): React.JSX.Element;
|
|
5
5
|
export declare function SpsVr(props: SpsVerticalRuleProps): React.JSX.Element;
|
|
@@ -12,7 +12,7 @@ export interface WizardPhase {
|
|
|
12
12
|
title: string;
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type SpsWizardSidebarProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
16
16
|
phases?: WizardPhase[];
|
|
17
17
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
18
18
|
export declare function SpsWizardSidebar({ className, phases, }: SpsWizardSidebarProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { WizardSubstepConditions } from "@spscommerce/ds-shared";
|
|
3
3
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
-
export
|
|
4
|
+
export type SpsWizardSubstepProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
5
|
condition: WizardSubstepConditions;
|
|
6
6
|
display: string;
|
|
7
7
|
orderPosition: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
-
export
|
|
4
|
+
export type SpsWorkflowProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
5
|
heading?: string;
|
|
6
6
|
icon?: SpsIcon;
|
|
7
7
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
-
export
|
|
3
|
+
export type SpsWorkflowDocumentProps = React.PropsWithChildren<SpsGlobalPropTypes> & React.HTMLAttributes<HTMLSpanElement>;
|
|
4
4
|
export declare function SpsWorkflowDocument(props: SpsWorkflowDocumentProps): React.JSX.Element;
|
|
5
5
|
export declare function SpsWfDoc(props: SpsWorkflowDocumentProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
-
export
|
|
4
|
+
export type SpsWorkflowDocumentStatusProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
5
|
icon?: SpsIcon;
|
|
6
6
|
}> & React.HTMLAttributes<HTMLSpanElement>;
|
|
7
7
|
export declare function SpsWorkflowDocumentStatus(props: SpsWorkflowDocumentStatusProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
-
export
|
|
4
|
+
export type SpsWorkflowStepProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
5
|
icon: SpsIcon;
|
|
6
6
|
title: string;
|
|
7
7
|
}> & React.HTMLAttributes<HTMLDivElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
4
|
-
export
|
|
4
|
+
export type SpsMicroZeroStateProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
5
5
|
illustration?: string;
|
|
6
6
|
icon?: SpsIcon;
|
|
7
7
|
heading?: React.ReactNode | (() => React.ReactNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { SpsGlobalPropTypes } from "../prop-types";
|
|
3
|
-
export
|
|
3
|
+
export type SpsZeroStateProps = React.PropsWithChildren<SpsGlobalPropTypes & {
|
|
4
4
|
illustration?: string;
|
|
5
5
|
artwork?: string;
|
|
6
6
|
heading: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/ds-react",
|
|
3
3
|
"description": "SPS Design System React components",
|
|
4
|
-
"version": "8.20.
|
|
4
|
+
"version": "8.20.12",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-react",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"moment-timezone": "^0.5.28",
|
|
47
47
|
"react": "^16.9.0",
|
|
48
48
|
"react-dom": "^16.9.0",
|
|
49
|
-
"@sps-woodland/illustrations": "8.20.
|
|
50
|
-
"@sps-woodland/tabs": "8.20.
|
|
51
|
-
"@spscommerce/ds-colors": "8.20.
|
|
52
|
-
"@spscommerce/ds-shared": "8.20.
|
|
53
|
-
"@spscommerce/positioning": "8.20.
|
|
49
|
+
"@sps-woodland/illustrations": "8.20.12",
|
|
50
|
+
"@sps-woodland/tabs": "8.20.12",
|
|
51
|
+
"@spscommerce/ds-colors": "8.20.12",
|
|
52
|
+
"@spscommerce/ds-shared": "8.20.12",
|
|
53
|
+
"@spscommerce/positioning": "8.20.12"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@react-spectrum/provider": "^3.4.1",
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"raf-stub": "^2.0.2",
|
|
73
73
|
"react": "^16.9.0",
|
|
74
74
|
"react-dom": "^16.9.0",
|
|
75
|
-
"@sps-woodland/illustrations": "8.20.
|
|
76
|
-
"@sps-woodland/tabs": "8.20.
|
|
77
|
-
"@spscommerce/ds-colors": "8.20.
|
|
78
|
-
"@spscommerce/ds-shared": "8.20.
|
|
79
|
-
"@spscommerce/positioning": "8.20.
|
|
80
|
-
"test": "8.20.
|
|
75
|
+
"@sps-woodland/illustrations": "8.20.12",
|
|
76
|
+
"@sps-woodland/tabs": "8.20.12",
|
|
77
|
+
"@spscommerce/ds-colors": "8.20.12",
|
|
78
|
+
"@spscommerce/ds-shared": "8.20.12",
|
|
79
|
+
"@spscommerce/positioning": "8.20.12",
|
|
80
|
+
"test": "8.20.12"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "pnpm run build:js && pnpm run build:types",
|