@sps-woodland/tags 7.17.9 → 7.17.11
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.es.js +26 -46
- package/package.json +7 -7
- package/sps-woodland-tags-7.17.11.tgz +0 -0
package/lib/index.es.js
CHANGED
|
@@ -74,32 +74,30 @@ function C({
|
|
|
74
74
|
function w(g) {
|
|
75
75
|
g.stopPropagation(), e && e(g);
|
|
76
76
|
}
|
|
77
|
-
return /* @__PURE__ */ t.createElement("div", {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
className: O,
|
|
100
|
-
|
|
101
|
-
icon: s ? "plus-sign" : "x"
|
|
102
|
-
})));
|
|
77
|
+
return /* @__PURE__ */ t.createElement("div", { className: m(_({ kind: c, disabled: l }), r), ...d }, /* @__PURE__ */ t.createElement(
|
|
78
|
+
"span",
|
|
79
|
+
{
|
|
80
|
+
className: m(
|
|
81
|
+
h({
|
|
82
|
+
link: !!n || !!e,
|
|
83
|
+
disabled: l,
|
|
84
|
+
addOrRemove: s || o
|
|
85
|
+
})
|
|
86
|
+
),
|
|
87
|
+
onClick: w,
|
|
88
|
+
title: p
|
|
89
|
+
},
|
|
90
|
+
n ? /* @__PURE__ */ t.createElement("a", { className: x, href: n }, a) : a
|
|
91
|
+
), (s || o) && !l && /* @__PURE__ */ t.createElement(
|
|
92
|
+
"div",
|
|
93
|
+
{
|
|
94
|
+
className: E,
|
|
95
|
+
onClick: l ? void 0 : T,
|
|
96
|
+
tabIndex: -1,
|
|
97
|
+
"aria-label": s ? "Add" : "Remove"
|
|
98
|
+
},
|
|
99
|
+
/* @__PURE__ */ t.createElement(v, { className: O, "aria-hidden": "true", icon: s ? "plus-sign" : "x" })
|
|
100
|
+
));
|
|
103
101
|
}
|
|
104
102
|
b.set(C, {
|
|
105
103
|
name: "Clickable Tag",
|
|
@@ -128,13 +126,7 @@ function f({
|
|
|
128
126
|
icon: l,
|
|
129
127
|
...n
|
|
130
128
|
}) {
|
|
131
|
-
return /* @__PURE__ */ t.createElement("span", {
|
|
132
|
-
className: m(F({ kind: e }), r),
|
|
133
|
-
...n
|
|
134
|
-
}, l && /* @__PURE__ */ t.createElement(v, {
|
|
135
|
-
className: m(q({ kind: e })),
|
|
136
|
-
icon: P[e]
|
|
137
|
-
}), a);
|
|
129
|
+
return /* @__PURE__ */ t.createElement("span", { className: m(F({ kind: e }), r), ...n }, l && /* @__PURE__ */ t.createElement(v, { className: m(q({ kind: e })), icon: P[e] }), a);
|
|
138
130
|
}
|
|
139
131
|
b.set(f, {
|
|
140
132
|
name: "Tag",
|
|
@@ -154,19 +146,7 @@ function N({
|
|
|
154
146
|
value: s,
|
|
155
147
|
...o
|
|
156
148
|
}) {
|
|
157
|
-
return /* @__PURE__ */ t.createElement("span", {
|
|
158
|
-
className: m(j, r),
|
|
159
|
-
...o
|
|
160
|
-
}, /* @__PURE__ */ t.createElement(f, {
|
|
161
|
-
className: m(I),
|
|
162
|
-
icon: n,
|
|
163
|
-
kind: e
|
|
164
|
-
}, c), /* @__PURE__ */ t.createElement(f, {
|
|
165
|
-
className: m(D({ href: !!l, kind: e }))
|
|
166
|
-
}, l ? /* @__PURE__ */ t.createElement("a", {
|
|
167
|
-
className: R,
|
|
168
|
-
href: l
|
|
169
|
-
}, s) : s));
|
|
149
|
+
return /* @__PURE__ */ t.createElement("span", { className: m(j, r), ...o }, /* @__PURE__ */ t.createElement(f, { className: m(I), icon: n, kind: e }, c), /* @__PURE__ */ t.createElement(f, { className: m(D({ href: !!l, kind: e })) }, l ? /* @__PURE__ */ t.createElement("a", { className: R, href: l }, s) : s));
|
|
170
150
|
}
|
|
171
151
|
b.set(N, {
|
|
172
152
|
name: "Key Value Tag",
|
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.17.
|
|
4
|
+
"version": "7.17.11",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/cards",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
+
"@sps-woodland/core": "7.17.11",
|
|
30
|
+
"@sps-woodland/tokens": "7.17.11",
|
|
29
31
|
"@spscommerce/utils": "^6.12.1",
|
|
30
32
|
"react": "^16.14.0",
|
|
31
|
-
"react-dom": "^16.14.0"
|
|
32
|
-
"@sps-woodland/core": "7.17.9",
|
|
33
|
-
"@sps-woodland/tokens": "7.17.9"
|
|
33
|
+
"react-dom": "^16.14.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
+
"@sps-woodland/core": "7.17.11",
|
|
37
|
+
"@sps-woodland/tokens": "7.17.11",
|
|
36
38
|
"@spscommerce/utils": "^6.12.1",
|
|
37
39
|
"@vanilla-extract/css": "^1.9.3",
|
|
38
40
|
"@vanilla-extract/recipes": "^0.2.5",
|
|
39
41
|
"react": "^16.14.0",
|
|
40
|
-
"react-dom": "^16.14.0"
|
|
41
|
-
"@sps-woodland/core": "7.17.9",
|
|
42
|
-
"@sps-woodland/tokens": "7.17.9"
|
|
42
|
+
"react-dom": "^16.14.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "pnpm run build:js && pnpm run build:types",
|
|
Binary file
|