@commercetools-uikit/stamp 19.9.0 → 19.11.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.
|
@@ -156,7 +156,7 @@ Stamp.defaultProps = defaultProps;
|
|
|
156
156
|
var Stamp$1 = Stamp;
|
|
157
157
|
|
|
158
158
|
// NOTE: This string will be replaced on build time with the package version.
|
|
159
|
-
var version = "19.
|
|
159
|
+
var version = "19.11.0";
|
|
160
160
|
|
|
161
161
|
exports["default"] = Stamp$1;
|
|
162
162
|
exports.version = version;
|
|
@@ -149,7 +149,7 @@ Stamp.defaultProps = defaultProps;
|
|
|
149
149
|
var Stamp$1 = Stamp;
|
|
150
150
|
|
|
151
151
|
// NOTE: This string will be replaced on build time with the package version.
|
|
152
|
-
var version = "19.
|
|
152
|
+
var version = "19.11.0";
|
|
153
153
|
|
|
154
154
|
exports["default"] = Stamp$1;
|
|
155
155
|
exports.version = version;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
export type TTone = 'critical' | 'warning' | 'positive' | 'information' | 'primary' | 'secondary';
|
|
3
3
|
export type TStampProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Indicates the color scheme of stamp
|
|
6
|
+
*/
|
|
4
7
|
tone?: TTone;
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, renders a condensed version of the stamp.
|
|
10
|
+
*/
|
|
5
11
|
isCondensed: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Content to render within the stamp.
|
|
14
|
+
* This property has been **deprecated** in favor of `label`.
|
|
15
|
+
*/
|
|
6
16
|
children?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Icon to render beside (left) the stamp text.
|
|
19
|
+
*/
|
|
7
20
|
icon?: ReactElement;
|
|
21
|
+
/**
|
|
22
|
+
* Text to render within the stamp.
|
|
23
|
+
*/
|
|
8
24
|
label?: string;
|
|
9
25
|
};
|
|
10
26
|
export declare const availableTones: TTone[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/stamp",
|
|
3
3
|
"description": "Stamps are visual labels which hold small amounts of information regarding an item. (E.g Indicating if a product is published in a list).",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.11.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/design-system": "19.
|
|
25
|
-
"@commercetools-uikit/spacings-inline": "19.
|
|
26
|
-
"@commercetools-uikit/text": "19.
|
|
27
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/design-system": "19.11.0",
|
|
25
|
+
"@commercetools-uikit/spacings-inline": "19.11.0",
|
|
26
|
+
"@commercetools-uikit/text": "19.11.0",
|
|
27
|
+
"@commercetools-uikit/utils": "19.11.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"prop-types": "15.8.1"
|
|
30
30
|
},
|