@spscommerce/ds-react 5.16.1 → 5.18.1

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.
@@ -0,0 +1,20 @@
1
+ import type { SortDirection, SpsIcon } from "@spscommerce/ds-shared";
2
+ import * as PropTypes from "../prop-types";
3
+ export interface SortOption {
4
+ label: string;
5
+ key: string;
6
+ direction: SortDirection;
7
+ icon: SpsIcon;
8
+ }
9
+ declare const propTypes: {
10
+ options: PropTypes.Requireable<SortOption[]>;
11
+ onSortChange: PropTypes.Requireable<(key: string, direction: SortDirection) => void>;
12
+ defaultOption: PropTypes.Requireable<SortOption>;
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 SpsListToolbarSortByProps = PropTypes.InferTS<typeof propTypes, HTMLElement>;
19
+ export declare function SpsListToolbarSortBy(props: SpsListToolbarSortByProps): JSX.Element;
20
+ export {};
@@ -1,4 +1,5 @@
1
1
  export * from "./SpsListToolbar";
2
2
  export * from "./SpsListToolbarSearch";
3
3
  export * from "./SpsListToolbarSearchInfo";
4
+ export * from "./SpsListToolbarSortBy";
4
5
  export * from "./SpsListToolbar.examples";
@@ -1,4 +1,4 @@
1
- import { SpsIcon } from "@spscommerce/ds-shared";
1
+ import type { SpsIcon } from "@spscommerce/ds-shared";
2
2
  import { SteppedProgressBarColor } from "@spscommerce/ds-shared";
3
3
  import * as PropTypes from "../prop-types";
4
4
  declare const propTypes: {
@@ -7,18 +7,15 @@ declare const propTypes: {
7
7
  completedStepsCount: PropTypes.Requireable<number>;
8
8
  disabled: PropTypes.Requireable<boolean>;
9
9
  showStepsCounter: PropTypes.Requireable<boolean>;
10
- icons: PropTypes.Requireable<IconsProps[]>;
11
- tooltipsData: PropTypes.Requireable<TooltipsProps[]>;
12
10
  color: PropTypes.Requireable<SteppedProgressBarColor>;
11
+ data: PropTypes.Requireable<SteppedProgressBarData[]>;
13
12
  };
14
- export interface IconsProps {
13
+ export interface SteppedProgressBarData {
15
14
  index: number;
16
15
  icon: SpsIcon;
17
- }
18
- export interface TooltipsProps {
19
- index: number;
20
16
  title: string;
21
17
  description: string;
18
+ skipped: boolean;
22
19
  }
23
20
  export declare type SpsSteppedProgressBarProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
24
21
  export declare function SpsSteppedProgressBar(props: SpsSteppedProgressBarProps): JSX.Element;
@@ -11,6 +11,10 @@ export declare const SpsSteppedProgressBarExamples: {
11
11
  description: () => JSX.Element;
12
12
  react: string;
13
13
  };
14
+ skippedSteps: {
15
+ description: () => JSX.Element;
16
+ react: string;
17
+ };
14
18
  completed: {
15
19
  description: () => JSX.Element;
16
20
  react: string;
@@ -1,7 +1,8 @@
1
1
  import { SpsIcon } from "@spscommerce/ds-shared";
2
2
  import * as PropTypes from "../prop-types";
3
3
  declare const propTypes: {
4
- icon: PropTypes.Validator<SpsIcon>;
4
+ illustration: PropTypes.Requireable<string>;
5
+ icon: PropTypes.Requireable<SpsIcon>;
5
6
  heading: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
6
7
  subHeading: PropTypes.Requireable<PropTypes.ReactNodeOrRenderFn>;
7
8
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -1,6 +1,7 @@
1
1
  import * as PropTypes from "../prop-types";
2
2
  declare const propTypes: {
3
- artwork: PropTypes.Validator<string>;
3
+ illustration: PropTypes.Requireable<string>;
4
+ artwork: PropTypes.Requireable<string>;
4
5
  heading: PropTypes.Validator<string>;
5
6
  subHeading: PropTypes.Requireable<string>;
6
7
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
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": "5.16.1",
4
+ "version": "5.18.1",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
@@ -28,10 +28,11 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@react-stately/collections": "^3.3.3",
31
- "@spscommerce/ds-colors": "5.16.1",
32
- "@spscommerce/ds-shared": "5.16.1",
33
- "@spscommerce/positioning": "5.16.1",
34
- "@spscommerce/utils": "5.16.1",
31
+ "@spscommerce/ds-colors": "5.18.1",
32
+ "@spscommerce/ds-illustrations": "5.18.1",
33
+ "@spscommerce/ds-shared": "5.18.1",
34
+ "@spscommerce/positioning": "5.18.1",
35
+ "@spscommerce/utils": "5.18.1",
35
36
  "moment": "^2.25.3",
36
37
  "moment-timezone": "^0.5.28",
37
38
  "react": "^16.9.0",
@@ -39,10 +40,11 @@
39
40
  },
40
41
  "devDependencies": {
41
42
  "@react-stately/collections": "^3.3.3",
42
- "@spscommerce/ds-colors": "5.16.1",
43
- "@spscommerce/ds-shared": "5.16.1",
44
- "@spscommerce/positioning": "5.16.1",
45
- "@spscommerce/utils": "5.16.1",
43
+ "@spscommerce/ds-colors": "5.18.1",
44
+ "@spscommerce/ds-illustrations": "5.18.1",
45
+ "@spscommerce/ds-shared": "5.18.1",
46
+ "@spscommerce/positioning": "5.18.1",
47
+ "@spscommerce/utils": "5.18.1",
46
48
  "@testing-library/react": "^9.3.2",
47
49
  "@types/prop-types": "^15.7.1",
48
50
  "@types/react": "^16.9.0",