@sps-woodland/content-tiles 7.17.13 → 7.19.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.
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { Metadata as
|
|
2
|
-
import * as
|
|
3
|
-
import { grid as
|
|
1
|
+
import { Metadata as b, cl as o, contentOf as f, Icon as g } from "@sps-woodland/core";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { grid as y } from "@sps-woodland/tokens";
|
|
4
4
|
import { code as d } from "@spscommerce/utils";
|
|
5
|
-
var
|
|
6
|
-
function E(e,
|
|
7
|
-
return
|
|
5
|
+
var N = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_85dplj0", S = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_85dplj1";
|
|
6
|
+
function E(e, s, t) {
|
|
7
|
+
return s in e ? Object.defineProperty(e, s, {
|
|
8
8
|
value: t,
|
|
9
9
|
enumerable: !0,
|
|
10
10
|
configurable: !0,
|
|
11
11
|
writable: !0
|
|
12
|
-
}) : e[
|
|
12
|
+
}) : e[s] = t, e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function w(e, s) {
|
|
15
15
|
var t = Object.keys(e);
|
|
16
16
|
if (Object.getOwnPropertySymbols) {
|
|
17
17
|
var n = Object.getOwnPropertySymbols(e);
|
|
18
|
-
|
|
19
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
18
|
+
s && (n = n.filter(function(r) {
|
|
19
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
20
20
|
})), t.push.apply(t, n);
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
24
24
|
function v(e) {
|
|
25
|
-
for (var
|
|
26
|
-
var t = arguments[
|
|
27
|
-
|
|
25
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
26
|
+
var t = arguments[s] != null ? arguments[s] : {};
|
|
27
|
+
s % 2 ? w(Object(t), !0).forEach(function(n) {
|
|
28
28
|
E(e, n, t[n]);
|
|
29
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
29
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : w(Object(t)).forEach(function(n) {
|
|
30
30
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
return e;
|
|
34
34
|
}
|
|
35
|
-
var O = (e,
|
|
35
|
+
var O = (e, s, t) => {
|
|
36
36
|
for (var n of Object.keys(e)) {
|
|
37
|
-
var
|
|
38
|
-
if (e[n] !== ((
|
|
37
|
+
var r;
|
|
38
|
+
if (e[n] !== ((r = s[n]) !== null && r !== void 0 ? r : t[n]))
|
|
39
39
|
return !1;
|
|
40
40
|
}
|
|
41
41
|
return !0;
|
|
42
|
-
},
|
|
43
|
-
var t = e.defaultClassName, n = v(v({}, e.defaultVariants),
|
|
44
|
-
for (var
|
|
45
|
-
var p,
|
|
46
|
-
if (
|
|
47
|
-
var
|
|
48
|
-
typeof
|
|
49
|
-
var i = e.variantClassNames[
|
|
42
|
+
}, u = (e) => (s) => {
|
|
43
|
+
var t = e.defaultClassName, n = v(v({}, e.defaultVariants), s);
|
|
44
|
+
for (var r in n) {
|
|
45
|
+
var p, l = (p = n[r]) !== null && p !== void 0 ? p : e.defaultVariants[r];
|
|
46
|
+
if (l != null) {
|
|
47
|
+
var c = l;
|
|
48
|
+
typeof c == "boolean" && (c = c === !0 ? "true" : "false");
|
|
49
|
+
var i = e.variantClassNames[r][c];
|
|
50
50
|
i && (t += " " + i);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
for (var [
|
|
54
|
-
O(
|
|
53
|
+
for (var [_, m] of e.compoundVariants)
|
|
54
|
+
O(_, n, e.defaultVariants) && (t += " " + m);
|
|
55
55
|
return t;
|
|
56
|
-
}, D =
|
|
57
|
-
function
|
|
56
|
+
}, D = u({ defaultClassName: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf4", variantClassNames: { error: { true: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf5" }, warning: { true: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf6" }, disabled: { true: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf7" } }, defaultVariants: { error: !1, warning: !1, disabled: !1 }, compoundVariants: [] }), L = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf0", x = u({ defaultClassName: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf1", variantClassNames: { disabled: { true: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf2" } }, defaultVariants: { disabled: !1 }, compoundVariants: [] }), R = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf3", h = u({ defaultClassName: "", variantClassNames: { error: { true: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf8" }, warning: { true: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf9" }, disabled: { true: "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfa" } }, defaultVariants: { error: !1, disabled: !1, warning: !1 }, compoundVariants: [] }), A = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfb", I = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfc", j = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfe", P = "pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfd";
|
|
57
|
+
function C({
|
|
58
58
|
className: e,
|
|
59
|
-
href:
|
|
59
|
+
href: s,
|
|
60
60
|
icon: t,
|
|
61
61
|
error: n = !1,
|
|
62
|
-
errorIcon:
|
|
62
|
+
errorIcon: r,
|
|
63
63
|
title: p,
|
|
64
|
-
warning:
|
|
65
|
-
warningIcon:
|
|
64
|
+
warning: l = !1,
|
|
65
|
+
warningIcon: c,
|
|
66
66
|
disabled: i = !1,
|
|
67
|
-
target:
|
|
68
|
-
onClick:
|
|
69
|
-
...
|
|
67
|
+
target: _,
|
|
68
|
+
onClick: m,
|
|
69
|
+
...T
|
|
70
70
|
}) {
|
|
71
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ a.createElement("div", { className: o(y[3], L, e), ...T }, /* @__PURE__ */ a.createElement(
|
|
72
72
|
"a",
|
|
73
73
|
{
|
|
74
|
-
href: i ? void 0 :
|
|
75
|
-
className: o(D({ error: n, warning:
|
|
76
|
-
target:
|
|
77
|
-
onClick:
|
|
74
|
+
href: i ? void 0 : s,
|
|
75
|
+
className: o(D({ error: n, warning: l, disabled: i }), S),
|
|
76
|
+
target: _,
|
|
77
|
+
onClick: m
|
|
78
78
|
},
|
|
79
|
-
(
|
|
79
|
+
(l || n) && /* @__PURE__ */ a.createElement("div", { className: A }, l && (c ? f(c) : /* @__PURE__ */ a.createElement(
|
|
80
80
|
g,
|
|
81
81
|
{
|
|
82
82
|
icon: "status-warning",
|
|
83
|
-
className: o(
|
|
83
|
+
className: o(h({ warning: l, disabled: i }))
|
|
84
84
|
}
|
|
85
|
-
)), n && (
|
|
86
|
-
/* @__PURE__ */
|
|
85
|
+
)), n && (r ? f(r) : /* @__PURE__ */ a.createElement(g, { icon: "ban", className: o(h({ error: n, disabled: i })) }))),
|
|
86
|
+
/* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("div", { className: o(R) }, typeof t == "string" ? /* @__PURE__ */ a.createElement("img", { className: o(x({ disabled: i })), src: t, alt: "" }) : f(t)), /* @__PURE__ */ a.createElement("div", { className: o(I) }, /* @__PURE__ */ a.createElement("p", { className: o(P) }, p, _ === "_blank" && /* @__PURE__ */ a.createElement(g, { icon: "tabs", className: o(j) }))))
|
|
87
87
|
));
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
b.set(C, {
|
|
90
90
|
name: "Content Tile",
|
|
91
91
|
props: {
|
|
92
92
|
href: { type: "string" },
|
|
@@ -101,16 +101,16 @@ T.set(k, {
|
|
|
101
101
|
onClick: { type: "() => void" }
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
|
-
function
|
|
104
|
+
function k({
|
|
105
105
|
children: e,
|
|
106
|
-
className:
|
|
106
|
+
className: s,
|
|
107
107
|
...t
|
|
108
108
|
}) {
|
|
109
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ a.createElement("div", { className: o(N, s), ...t }, e);
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
b.set(k, { name: "Content Tile List" });
|
|
112
112
|
const V = {
|
|
113
|
-
components: [
|
|
113
|
+
components: [C, k],
|
|
114
114
|
examples: {
|
|
115
115
|
basic: {
|
|
116
116
|
label: "Basic",
|
|
@@ -354,7 +354,7 @@ function Component() {
|
|
|
354
354
|
"Content Tiles": V
|
|
355
355
|
};
|
|
356
356
|
export {
|
|
357
|
-
|
|
358
|
-
|
|
357
|
+
C as ContentTile,
|
|
358
|
+
k as ContentTileList,
|
|
359
359
|
K as MANIFEST
|
|
360
360
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"
|
|
1
|
+
(function(a,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("@sps-woodland/core"),require("react"),require("@sps-woodland/tokens"),require("@spscommerce/utils")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react","@sps-woodland/tokens","@spscommerce/utils"],r):(a=typeof globalThis<"u"?globalThis:a||self,r(a.ContentTiles={},a.core,a.React,a.tokens,a.utils))})(this,function(a,r,C,k,_){"use strict";function T(e){if(e&&e.__esModule)return e;const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const o=T(C),V="";var y="pkg_sps-woodland_content-tiles__version_7_19_0__hash_85dplj0",S="pkg_sps-woodland_content-tiles__version_7_19_0__hash_85dplj1";const H="";function N(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function v(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);s&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function h(e){for(var s=1;s<arguments.length;s++){var t=arguments[s]!=null?arguments[s]:{};s%2?v(Object(t),!0).forEach(function(n){N(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var O=(e,s,t)=>{for(var n of Object.keys(e)){var i;if(e[n]!==((i=s[n])!==null&&i!==void 0?i:t[n]))return!1}return!0},m=e=>s=>{var t=e.defaultClassName,n=h(h({},e.defaultVariants),s);for(var i in n){var p,c=(p=n[i])!==null&&p!==void 0?p:e.defaultVariants[i];if(c!=null){var d=c;typeof d=="boolean"&&(d=d===!0?"true":"false");var l=e.variantClassNames[i][d];l&&(t+=" "+l)}}for(var[f,w]of e.compoundVariants)O(f,n,e.defaultVariants)&&(t+=" "+w);return t},E=m({defaultClassName:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf4",variantClassNames:{error:{true:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf5"},warning:{true:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf6"},disabled:{true:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf7"}},defaultVariants:{error:!1,warning:!1,disabled:!1},compoundVariants:[]}),D="pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf0",L=m({defaultClassName:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf1",variantClassNames:{disabled:{true:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf2"}},defaultVariants:{disabled:!1},compoundVariants:[]}),j="pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf3",b=m({defaultClassName:"",variantClassNames:{error:{true:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf8"},warning:{true:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf9"},disabled:{true:"pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfa"}},defaultVariants:{error:!1,disabled:!1,warning:!1},compoundVariants:[]}),x="pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfb",R="pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfc",I="pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfe",A="pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfd";function u({className:e,href:s,icon:t,error:n=!1,errorIcon:i,title:p,warning:c=!1,warningIcon:d,disabled:l=!1,target:f,onClick:w,...M}){return o.createElement("div",{className:r.cl(k.grid[3],D,e),...M},o.createElement("a",{href:l?void 0:s,className:r.cl(E({error:n,warning:c,disabled:l}),S),target:f,onClick:w},(c||n)&&o.createElement("div",{className:x},c&&(d?r.contentOf(d):o.createElement(r.Icon,{icon:"status-warning",className:r.cl(b({warning:c,disabled:l}))})),n&&(i?r.contentOf(i):o.createElement(r.Icon,{icon:"ban",className:r.cl(b({error:n,disabled:l}))}))),o.createElement("div",null,o.createElement("div",{className:r.cl(j)},typeof t=="string"?o.createElement("img",{className:r.cl(L({disabled:l})),src:t,alt:""}):r.contentOf(t)),o.createElement("div",{className:r.cl(R)},o.createElement("p",{className:r.cl(A)},p,f==="_blank"&&o.createElement(r.Icon,{icon:"tabs",className:r.cl(I)}))))))}r.Metadata.set(u,{name:"Content Tile",props:{href:{type:"string"},icon:{type:"React.ReactNode | (() => React.ReactNode)",required:!0},error:{type:"boolean",default:"false"},errorIcon:{type:"React.ReactNode | (() => React.ReactNode)"},title:{type:"string",required:!0},warning:{type:"boolean",default:"false"},warningIcon:{type:"React.ReactNode | (() => React.ReactNode)"},disabled:{type:"boolean",default:"false"},target:{type:"string"},onClick:{type:"() => void"}}});function g({children:e,className:s,...t}){return o.createElement("div",{className:r.cl(y,s),...t},e)}r.Metadata.set(g,{name:"Content Tile List"});const P={"Content Tiles":{components:[u,g],examples:{basic:{label:"Basic",examples:{basic:{react:_.code`
|
|
2
2
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
3
3
|
|
|
4
4
|
function Component() {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
</>
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
`}}},singleTile:{label:"Single Tile",examples:{basic:{react:
|
|
70
|
+
`}}},singleTile:{label:"Single Tile",examples:{basic:{react:_.code`
|
|
71
71
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
72
72
|
function Component() {
|
|
73
73
|
return (
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</>
|
|
83
83
|
)
|
|
84
84
|
}
|
|
85
|
-
`},error:{react:
|
|
85
|
+
`},error:{react:_.code`
|
|
86
86
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
87
87
|
|
|
88
88
|
function Component() {
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</>
|
|
103
103
|
)
|
|
104
104
|
}
|
|
105
|
-
`}}},sortableTiles:{label:"Sortable Tiles",examples:{basic:{react:
|
|
105
|
+
`}}},sortableTiles:{label:"Sortable Tiles",examples:{basic:{react:_.code`
|
|
106
106
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
107
107
|
import { SortingHeader, SortingHeaderCell } from "@sps-woodland/sorting-header";
|
|
108
108
|
import { grid } from "@sps-woodland/tokens";
|
|
@@ -208,4 +208,4 @@ function Component() {
|
|
|
208
208
|
</div>
|
|
209
209
|
)
|
|
210
210
|
}
|
|
211
|
-
`}}}}}
|
|
211
|
+
`}}}}}};a.ContentTile=u,a.ContentTileList=g,a.MANIFEST=P,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.pkg_sps-woodland_content-tiles__version_7_19_0__hash_85dplj0{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:1rem}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_85dplj1{color:#000}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_85dplj1:hover{text-decoration:none;color:#000}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf0{transition:all .25s ease}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf1{height:3.75rem;width:3.75rem}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf2{opacity:.25}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf3{height:3.75rem;width:3.75rem;margin-left:auto;margin-right:auto;margin-top:1rem;margin-bottom:1rem}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf4{display:block;background-color:#fff;border-radius:.25rem;border-color:#d2d4d4;border-style:solid;border-width:.0625rem;cursor:pointer;height:8.625rem;text-decoration:none}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf4:hover{border-color:#007db8;color:#000}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf5{border-color:#de002e}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf5:hover{border-color:#de002e;cursor:not-allowed}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf6{border-color:#e7760b}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf7{border-color:#d2d4d4;background-color:#f3f4f4;color:#d2d4d4}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf7:hover{border-color:#d2d4d4;cursor:not-allowed}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf8{color:#de002e}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnf9{color:#e7760b}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfa{color:#717779}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfb{position:absolute;padding:.5rem}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfc{text-align:center;padding-left:.5rem;padding-right:.5rem}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfd{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pkg_sps-woodland_content-tiles__version_7_19_0__hash_1k4ncnfe{text-align:center;padding:.5rem;color:#007db8}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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.
|
|
4
|
+
"version": "7.19.0",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/content-tiles",
|
|
8
8
|
"homepage": "https://github.com/SPSCommerce/woodland/tree/master/packages/@sps-woodland/content-tiles#readme",
|
|
9
|
-
"module": "./lib/index.es.js",
|
|
10
9
|
"type": "module",
|
|
11
|
-
"
|
|
10
|
+
"module": "./lib/index.js",
|
|
11
|
+
"main": "./lib/index.umd.cjs",
|
|
12
12
|
"types": "./lib/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"default": "./lib/index.
|
|
15
|
+
"require": "./lib/index.umd.cjs",
|
|
16
|
+
"import": "./lib/index.js",
|
|
17
|
+
"default": "./lib/index.js",
|
|
18
18
|
"types": "./lib/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./lib/style.css": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@spscommerce/utils": "^6.12.1",
|
|
30
30
|
"react": "^16.14.0",
|
|
31
31
|
"react-dom": "^16.14.0",
|
|
32
|
-
"@sps-woodland/core": "7.
|
|
33
|
-
"@sps-woodland/tokens": "7.
|
|
32
|
+
"@sps-woodland/core": "7.19.0",
|
|
33
|
+
"@sps-woodland/tokens": "7.19.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@spscommerce/utils": "^6.12.1",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@vanilla-extract/recipes": "^0.2.5",
|
|
39
39
|
"react": "^16.14.0",
|
|
40
40
|
"react-dom": "^16.14.0",
|
|
41
|
-
"@sps-woodland/
|
|
42
|
-
"@sps-woodland/
|
|
41
|
+
"@sps-woodland/tokens": "7.19.0",
|
|
42
|
+
"@sps-woodland/core": "7.19.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "pnpm run build:js && pnpm run build:types",
|
|
Binary file
|
package/vite.config.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
3
3
|
import { defineConfig } from "vite";
|
|
4
|
-
|
|
4
|
+
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.js";
|
|
5
5
|
import pkg from "./package.json";
|
|
6
6
|
|
|
7
|
+
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
8
|
+
|
|
7
9
|
export default defineConfig({
|
|
8
|
-
plugins: [
|
|
10
|
+
plugins: [
|
|
11
|
+
vanillaExtractPlugin(
|
|
12
|
+
getVanillaExtractPluginProps({
|
|
13
|
+
packageName: pkg.name,
|
|
14
|
+
packageVersion,
|
|
15
|
+
})
|
|
16
|
+
),
|
|
17
|
+
],
|
|
9
18
|
build: {
|
|
10
19
|
lib: {
|
|
11
20
|
entry: path.resolve(__dirname, "src/index.ts"),
|
|
12
|
-
|
|
13
|
-
fileName:
|
|
21
|
+
name: "ContentTiles",
|
|
22
|
+
fileName: "index",
|
|
14
23
|
},
|
|
15
24
|
outDir: path.resolve(__dirname, "./lib"),
|
|
16
25
|
emptyOutDir: false,
|