@sps-woodland/tags 7.2.1 → 7.2.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tokens } from "@sps-woodland/tokens";
|
|
2
2
|
import type { VariantDefinitions, RecipeVariant, BooleanRecipeVariant } from "@sps-woodland/core";
|
|
3
|
-
export
|
|
3
|
+
export type ClickableTagKind = keyof typeof Tokens.component["clickable-tag"]["kind"];
|
|
4
4
|
interface ClickableTagVariantDefinitions extends VariantDefinitions {
|
|
5
5
|
kind: RecipeVariant<ClickableTagKind>;
|
|
6
6
|
disabled: BooleanRecipeVariant;
|
package/lib/tag/Tag.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ComponentProps } from "@sps-woodland/core";
|
|
|
3
3
|
import type { IconName } from "@sps-woodland/tokens";
|
|
4
4
|
import type { RecipeVariants } from "@vanilla-extract/recipes";
|
|
5
5
|
import { tag } from "./Tag.css";
|
|
6
|
-
export
|
|
6
|
+
export type TagKind = Required<NonNullable<RecipeVariants<typeof tag>>>["kind"];
|
|
7
7
|
export declare const TagIcons: Record<TagKind, IconName>;
|
|
8
8
|
export declare function Tag({ children, className, kind, icon, ...rest }: ComponentProps<{
|
|
9
9
|
kind?: TagKind;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sps-woodland/tags",
|
|
3
3
|
"description": "SPS Woodland Design System tag components",
|
|
4
|
-
"version": "7.2.
|
|
4
|
+
"version": "7.2.2",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/cards",
|
|
@@ -13,21 +13,20 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@sps-woodland/core": "7.2.
|
|
17
|
-
"@sps-woodland/tokens": "7.2.
|
|
16
|
+
"@sps-woodland/core": "7.2.2",
|
|
17
|
+
"@sps-woodland/tokens": "7.2.2",
|
|
18
18
|
"@spscommerce/utils": "^6.12.1",
|
|
19
|
-
"react": "^16.
|
|
20
|
-
"react-dom": "^16.
|
|
19
|
+
"react": "^16.14.0",
|
|
20
|
+
"react-dom": "^16.14.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@sps-woodland/core": "7.2.
|
|
24
|
-
"@sps-woodland/
|
|
25
|
-
"@sps-woodland/tokens": "7.2.1",
|
|
23
|
+
"@sps-woodland/core": "7.2.2",
|
|
24
|
+
"@sps-woodland/tokens": "7.2.2",
|
|
26
25
|
"@spscommerce/utils": "^6.12.1",
|
|
27
|
-
"@vanilla-extract/css": "^1.9.
|
|
26
|
+
"@vanilla-extract/css": "^1.9.3",
|
|
28
27
|
"@vanilla-extract/recipes": "^0.2.5",
|
|
29
|
-
"react": "^16.
|
|
30
|
-
"react-dom": "^16.
|
|
28
|
+
"react": "^16.14.0",
|
|
29
|
+
"react-dom": "^16.14.0"
|
|
31
30
|
},
|
|
32
31
|
"scripts": {
|
|
33
32
|
"build": "pnpm run build:js && pnpm run build:types",
|