@sps-woodland/content-tiles 8.56.2 → 8.56.4
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.js +31 -46
- package/lib/index.umd.cjs +6 -6
- package/lib/style.css +2 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from "@sps-woodland/core/content-tiles";
|
|
2
1
|
import { code as e } from "@spscommerce/utils";
|
|
3
2
|
import { ContentTile as t } from "@sps-woodland/core/content-tile";
|
|
4
3
|
import { ContentTileList as n } from "@sps-woodland/core/content-tile-list";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
export * from "@sps-woodland/core/content-tiles";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/manifest.ts
|
|
7
|
+
var r = { "Content Tiles": {
|
|
8
|
+
components: [t, n],
|
|
9
|
+
examples: {
|
|
10
|
+
basic: {
|
|
11
|
+
label: "Basic",
|
|
12
|
+
examples: { basic: { react: e`
|
|
13
13
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
14
14
|
|
|
15
15
|
function Component() {
|
|
@@ -78,15 +78,12 @@ const s = {
|
|
|
78
78
|
</>
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
|
-
`
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
examples: {
|
|
88
|
-
basic: {
|
|
89
|
-
react: e`
|
|
81
|
+
` } }
|
|
82
|
+
},
|
|
83
|
+
singleTile: {
|
|
84
|
+
label: "Single Tile",
|
|
85
|
+
examples: {
|
|
86
|
+
basic: { react: e`
|
|
90
87
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
91
88
|
function Component() {
|
|
92
89
|
return (
|
|
@@ -101,10 +98,8 @@ const s = {
|
|
|
101
98
|
</>
|
|
102
99
|
)
|
|
103
100
|
}
|
|
104
|
-
`
|
|
105
|
-
|
|
106
|
-
error: {
|
|
107
|
-
react: e`
|
|
101
|
+
` },
|
|
102
|
+
error: { react: e`
|
|
108
103
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
109
104
|
|
|
110
105
|
function Component() {
|
|
@@ -124,10 +119,8 @@ const s = {
|
|
|
124
119
|
</>
|
|
125
120
|
)
|
|
126
121
|
}
|
|
127
|
-
`
|
|
128
|
-
|
|
129
|
-
tag: {
|
|
130
|
-
react: e`
|
|
122
|
+
` },
|
|
123
|
+
tag: { react: e`
|
|
131
124
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
132
125
|
import { Tag } from "@sps-woodland/tag";
|
|
133
126
|
|
|
@@ -145,15 +138,12 @@ const s = {
|
|
|
145
138
|
</>
|
|
146
139
|
);
|
|
147
140
|
}
|
|
148
|
-
`
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
examples: {
|
|
155
|
-
basic: {
|
|
156
|
-
react: e`
|
|
141
|
+
` }
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
sortableTiles: {
|
|
145
|
+
label: "Sortable Tiles",
|
|
146
|
+
examples: { basic: { react: e`
|
|
157
147
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
158
148
|
import { SortingHeader, SortingHeaderCell } from "@sps-woodland/sorting-header";
|
|
159
149
|
import { grid } from "@sps-woodland/tokens";
|
|
@@ -259,14 +249,9 @@ function Component() {
|
|
|
259
249
|
</div>
|
|
260
250
|
)
|
|
261
251
|
}
|
|
262
|
-
`
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
"Content Tiles": s
|
|
269
|
-
};
|
|
270
|
-
export {
|
|
271
|
-
a as MANIFEST
|
|
272
|
-
};
|
|
252
|
+
` } }
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
} };
|
|
256
|
+
//#endregion
|
|
257
|
+
export { r as MANIFEST };
|
package/lib/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,t){typeof exports
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@spscommerce/utils"),require("@sps-woodland/core/content-tile"),require("@sps-woodland/core/content-tile-list")):typeof define==`function`&&define.amd?define([`exports`,`@spscommerce/utils`,`@sps-woodland/core/content-tile`,`@sps-woodland/core/content-tile-list`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ContentTiles={},e.spscommerceUtils,e.spsWoodlandCoreContentTile,e.spsWoodlandCoreContentTileList))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.MANIFEST={"Content Tiles":{components:[n.ContentTile,r.ContentTileList],examples:{basic:{label:`Basic`,examples:{basic:{react:t.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
|
|
70
|
+
`}}},singleTile:{label:`Single Tile`,examples:{basic:{react:t.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:t.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
|
-
`},tag:{react:
|
|
105
|
+
`},tag:{react:t.code`
|
|
106
106
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
107
107
|
import { Tag } from "@sps-woodland/tag";
|
|
108
108
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
</>
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
`}}},sortableTiles:{label
|
|
123
|
+
`}}},sortableTiles:{label:`Sortable Tiles`,examples:{basic:{react:t.code`
|
|
124
124
|
import { ContentTileList, ContentTile } from "@sps-woodland/content-tiles";
|
|
125
125
|
import { SortingHeader, SortingHeaderCell } from "@sps-woodland/sorting-header";
|
|
126
126
|
import { grid } from "@sps-woodland/tokens";
|
|
@@ -226,4 +226,4 @@ function Component() {
|
|
|
226
226
|
</div>
|
|
227
227
|
)
|
|
228
228
|
}
|
|
229
|
-
`}}}}}};
|
|
229
|
+
`}}}}}};var i=require("@sps-woodland/core/content-tiles");Object.keys(i).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})})});
|
package/lib/style.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_content-
|
|
1
|
+
.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_1dggj5e0{grid-template-columns:1fr 1fr 1fr 1fr;gap:1rem;display:grid}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_1dggj5e1{color:#000}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_1dggj5e1:hover{color:#000;text-decoration:none}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw0{transition:all .25s}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw1{width:3.75rem;height:3.75rem}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw2{opacity:.25}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw3{width:3.75rem;height:3.75rem;margin:1rem auto}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw4{cursor:pointer;background-color:#fff;border:.0625rem solid #d2d4d4;border-radius:.25rem;height:8.625rem;text-decoration:none;display:block;position:relative}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw4:hover{color:#000;border-color:#007db8}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw4:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw5{border-color:#de002e}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw5:hover{cursor:not-allowed;border-color:#de002e}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw6{border-color:#e7760b}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw7{color:#d2d4d4;background-color:#f3f4f4;border-color:#d2d4d4}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw7:hover{cursor:not-allowed;border-color:#d2d4d4}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw8{color:#de002e}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inw9{color:#e7760b}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inwa{color:#717779}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inwb{padding:.5rem;position:absolute}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inwc{text-align:center;padding-left:.5rem;padding-right:.5rem}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inwd{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inwe{color:#007db8;margin-left:.5rem}.pkg_sps-woodland_core__family_content-tiles__version_8_56_4__hash_w95inwf{padding:.5rem;position:absolute;right:0}
|
|
2
|
+
/*$vite$:1*/
|
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": "8.56.
|
|
4
|
+
"version": "8.56.4",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/content-tiles",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"@spscommerce/utils": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
34
34
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
35
35
|
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
36
|
-
"@sps-woodland/core": "8.56.
|
|
37
|
-
"@sps-woodland/tokens": "8.56.
|
|
36
|
+
"@sps-woodland/core": "8.56.4",
|
|
37
|
+
"@sps-woodland/tokens": "8.56.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@spscommerce/utils": "9.
|
|
40
|
+
"@spscommerce/utils": "9.3.3",
|
|
41
41
|
"react": "16.14.0",
|
|
42
42
|
"react-dom": "16.14.0",
|
|
43
|
-
"@sps-woodland/core": "8.56.
|
|
44
|
-
"@sps-woodland/tokens": "8.56.
|
|
43
|
+
"@sps-woodland/core": "8.56.4",
|
|
44
|
+
"@sps-woodland/tokens": "8.56.4"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "pnpm run build:js && pnpm run build:types && pnpm run build:css",
|