@sps-woodland/content-tiles 7.17.8 → 7.17.10
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,2 +1,3 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import type { ComponentProps } from "@sps-woodland/core";
|
|
2
|
-
export declare function ContentTileList({ children, className, ...rest }: ComponentProps<unknown, HTMLDivElement>): JSX.Element;
|
|
3
|
+
export declare function ContentTileList({ children, className, ...rest }: ComponentProps<unknown, HTMLDivElement>): React.JSX.Element;
|
package/lib/index.es.js
CHANGED
|
@@ -68,36 +68,23 @@ function k({
|
|
|
68
68
|
onClick: f,
|
|
69
69
|
...N
|
|
70
70
|
}) {
|
|
71
|
-
return /* @__PURE__ */ s.createElement("div", {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
icon: "ban",
|
|
86
|
-
className: o(
|
|
87
|
-
|
|
88
|
-
className: o(R)
|
|
89
|
-
}, typeof t == "string" ? /* @__PURE__ */ s.createElement("img", {
|
|
90
|
-
className: o(x({ disabled: i })),
|
|
91
|
-
src: t,
|
|
92
|
-
alt: ""
|
|
93
|
-
}) : u(t)), /* @__PURE__ */ s.createElement("div", {
|
|
94
|
-
className: o(I)
|
|
95
|
-
}, /* @__PURE__ */ s.createElement("p", {
|
|
96
|
-
className: o(P)
|
|
97
|
-
}, p, m === "_blank" && /* @__PURE__ */ s.createElement(g, {
|
|
98
|
-
icon: "tabs",
|
|
99
|
-
className: o(j)
|
|
100
|
-
}))))));
|
|
71
|
+
return /* @__PURE__ */ s.createElement("div", { className: o(h[3], L, e), ...N }, /* @__PURE__ */ s.createElement(
|
|
72
|
+
"a",
|
|
73
|
+
{
|
|
74
|
+
href: i ? void 0 : r,
|
|
75
|
+
className: o(D({ error: n, warning: c, disabled: i }), _),
|
|
76
|
+
target: m,
|
|
77
|
+
onClick: f
|
|
78
|
+
},
|
|
79
|
+
(c || n) && /* @__PURE__ */ s.createElement("div", { className: A }, c && (l ? u(l) : /* @__PURE__ */ s.createElement(
|
|
80
|
+
g,
|
|
81
|
+
{
|
|
82
|
+
icon: "status-warning",
|
|
83
|
+
className: o(C({ warning: c, disabled: i }))
|
|
84
|
+
}
|
|
85
|
+
)), n && (a ? u(a) : /* @__PURE__ */ s.createElement(g, { icon: "ban", className: o(C({ error: n, disabled: i })) }))),
|
|
86
|
+
/* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement("div", { className: o(R) }, typeof t == "string" ? /* @__PURE__ */ s.createElement("img", { className: o(x({ disabled: i })), src: t, alt: "" }) : u(t)), /* @__PURE__ */ s.createElement("div", { className: o(I) }, /* @__PURE__ */ s.createElement("p", { className: o(P) }, p, m === "_blank" && /* @__PURE__ */ s.createElement(g, { icon: "tabs", className: o(j) }))))
|
|
87
|
+
));
|
|
101
88
|
}
|
|
102
89
|
T.set(k, {
|
|
103
90
|
name: "Content Tile",
|
|
@@ -119,10 +106,7 @@ function y({
|
|
|
119
106
|
className: r,
|
|
120
107
|
...t
|
|
121
108
|
}) {
|
|
122
|
-
return /* @__PURE__ */ s.createElement("div", {
|
|
123
|
-
className: o(S, r),
|
|
124
|
-
...t
|
|
125
|
-
}, e);
|
|
109
|
+
return /* @__PURE__ */ s.createElement("div", { className: o(S, r), ...t }, e);
|
|
126
110
|
}
|
|
127
111
|
T.set(y, { name: "Content Tile List" });
|
|
128
112
|
const V = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sps-woodland/content-tiles",
|
|
3
3
|
"description": "SPS Woodland Design System content-tile and content tile list components.",
|
|
4
|
-
"version": "7.17.
|
|
4
|
+
"version": "7.17.10",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/content-tiles",
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
+
"@sps-woodland/core": "7.17.10",
|
|
30
|
+
"@sps-woodland/tokens": "7.17.10",
|
|
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.8",
|
|
33
|
-
"@sps-woodland/tokens": "7.17.8"
|
|
33
|
+
"react-dom": "^16.14.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
+
"@sps-woodland/core": "7.17.10",
|
|
37
|
+
"@sps-woodland/tokens": "7.17.10",
|
|
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.8",
|
|
42
|
-
"@sps-woodland/tokens": "7.17.8"
|
|
42
|
+
"react-dom": "^16.14.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "pnpm run build:js && pnpm run build:types",
|