@spscommerce/ds-react 4.6.0 → 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.
- package/lib/index.cjs.js +352 -242
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +352 -244
- package/lib/insight-tile/SpsInsightTile.d.ts +18 -0
- package/lib/insight-tile/SpsInsightTile.examples.d.ts +2 -0
- package/lib/insight-tile/SpsInsights.d.ts +10 -0
- package/lib/insight-tile/index.d.ts +2 -0
- package/package.json +9 -9
|
@@ -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,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 {};
|
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.
|
|
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",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-stately/collections": "^3.3.3",
|
|
31
|
-
"@spscommerce/ds-colors": "^4.
|
|
32
|
-
"@spscommerce/ds-shared": "^4.
|
|
33
|
-
"@spscommerce/positioning": "^4.
|
|
34
|
-
"@spscommerce/utils": "^4.
|
|
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",
|
|
35
35
|
"clsx": "^1.0.3",
|
|
36
36
|
"moment": "^2.25.3",
|
|
37
37
|
"moment-timezone": "^0.5.28",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"scroll-into-view-if-needed": "^2.2.20"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@spscommerce/ds-colors": "^4.
|
|
48
|
-
"@spscommerce/ds-shared": "^4.
|
|
49
|
-
"@spscommerce/positioning": "^4.
|
|
50
|
-
"@spscommerce/utils": "^4.
|
|
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",
|
|
51
51
|
"@types/prop-types": "^15.7.1",
|
|
52
52
|
"@types/react": "^16.8.8",
|
|
53
53
|
"clsx": "^1.0.3",
|