@spscommerce/ds-react 4.5.0-ie → 4.7.0

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,18 @@
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<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 {};
@@ -0,0 +1,2 @@
1
+ import { DSReactExamples } from '@spscommerce/ds-shared';
2
+ export declare const SpsInsightTileExamples: DSReactExamples;
@@ -0,0 +1,10 @@
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 {};
@@ -0,0 +1,2 @@
1
+ export * from './SpsInsights';
2
+ export * from './SpsInsightTile';
@@ -0,0 +1,6 @@
1
+ import { TabListState } from '@react-stately/tabs';
2
+ import { Node } from '@react-types/shared';
3
+ export default function SpsTab<T>({ item, state, }: {
4
+ item: Node<T>;
5
+ state: TabListState<T>;
6
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { TabListState } from '@react-stately/tabs';
2
+ import { AriaTabPanelProps } from '@react-types/tabs';
3
+ export default function SpsTabPanel<T>({ state, ...props }: {
4
+ state: TabListState<T>;
5
+ } & AriaTabPanelProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { TabListProps } from '@react-types/tabs';
2
+ export default function SpsTabsV2(props: TabListProps<object>): JSX.Element;
@@ -0,0 +1,4 @@
1
+ import SpsTab from './SpsTab';
2
+ import SpsTabPanel from './SpsTabPanel';
3
+ import SpsTabsV2 from './SpsTabsV2';
4
+ export { SpsTab, SpsTabPanel, SpsTabsV2, };
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": "4.5.0-ie",
4
+ "version": "4.7.0",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
@@ -19,14 +19,19 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
+ "@react-aria/tabs": "^3.0.1",
23
+ "@react-stately/tabs": "^3.0.1",
24
+ "@react-types/shared": "^3.8.0",
25
+ "@react-types/tabs": "^3.0.1",
22
26
  "axe-prop-types": "^1.0.9",
23
27
  "tiny-invariant": "^1.0.4"
24
28
  },
25
29
  "peerDependencies": {
26
- "@spscommerce/ds-colors": "^4.5.0",
27
- "@spscommerce/ds-shared": "^4.5.0",
28
- "@spscommerce/positioning": "^4.5.0",
29
- "@spscommerce/utils": "^4.5.0",
30
+ "@react-stately/collections": "^3.3.3",
31
+ "@spscommerce/ds-colors": "^4.7.0",
32
+ "@spscommerce/ds-shared": "^4.7.0",
33
+ "@spscommerce/positioning": "^4.7.0",
34
+ "@spscommerce/utils": "^4.7.0",
30
35
  "clsx": "^1.0.3",
31
36
  "moment": "^2.25.3",
32
37
  "moment-timezone": "^0.5.28",
@@ -39,10 +44,10 @@
39
44
  "scroll-into-view-if-needed": "^2.2.20"
40
45
  },
41
46
  "devDependencies": {
42
- "@spscommerce/ds-colors": "^4.5.0",
43
- "@spscommerce/ds-shared": "^4.5.0",
44
- "@spscommerce/positioning": "^4.5.0",
45
- "@spscommerce/utils": "^4.5.0",
47
+ "@spscommerce/ds-colors": "^4.7.0",
48
+ "@spscommerce/ds-shared": "^4.7.0",
49
+ "@spscommerce/positioning": "^4.7.0",
50
+ "@spscommerce/utils": "^4.7.0",
46
51
  "@types/prop-types": "^15.7.1",
47
52
  "@types/react": "^16.8.8",
48
53
  "clsx": "^1.0.3",