@sps-woodland/content-row 7.4.1 → 7.4.3
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.cjs.js +9 -9
- package/lib/index.es.js +80 -80
- package/package.json +11 -11
package/lib/index.cjs.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const z=require("react"),a=require("@sps-woodland/core"),F=require("@spscommerce/ds-react"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const z=require("react"),a=require("@sps-woodland/core"),F=require("@spscommerce/ds-react"),c=require("@spscommerce/utils");function O(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=O(z);function A(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function k(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function v(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?k(Object(o),!0).forEach(function(n){A(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):k(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}var D=(e,t,o)=>{for(var n of Object.keys(e)){var r;if(e[n]!==((r=t[n])!==null&&r!==void 0?r:o[n]))return!1}return!0},b=e=>t=>{var o=e.defaultClassName,n=v(v({},e.defaultVariants),t);for(var r in n){var i,d=(i=n[r])!==null&&i!==void 0?i:e.defaultVariants[r];if(d!=null){var l=d;typeof l=="boolean"&&(l=l===!0?"true":"false");var m=e.variantClassNames[r][l];m&&(o+=" "+m)}}for(var[C,w]of e.compoundVariants)D(C,n,e.defaultVariants)&&(o+=" "+w);return o},H=b({defaultClassName:"_1mxrufv0",variantClassNames:{lean:{true:"_1mxrufv1",false:"_1mxrufv2"},borderless:{true:"_1mxrufv3",false:"_1mxrufv4"}},defaultVariants:{lean:!1,borderless:!1},compoundVariants:[]});function p({children:e,className:t,borderless:o,lean:n,widthPx:r,widthRem:i,style:d,...l}){const m=r?r/16:i,C=m?{...d,width:`${m}rem`}:d;return s.createElement("div",{className:a.cl(H({lean:n,borderless:o}),t),...l,style:C},e)}a.Metadata.set(p,{name:"Content Row Col",props:{borderless:{type:"boolean"},lean:{type:"boolean"},widthPx:{type:"number"},widthRem:{type:"number"}}});var T=b({defaultClassName:"_11ztjee1",variantClassNames:{expanded:{true:"_11ztjee2",false:"_11ztjee3"}},defaultVariants:{expanded:!1},compoundVariants:[]}),q=b({defaultClassName:"_11ztjee4",variantClassNames:{expanded:{true:"_11ztjee5",false:"_11ztjee6"},selected:{true:"_11ztjee7",false:"_11ztjee8"},cardSpacing:{true:"_11ztjee9",false:"_11ztjeea"}},defaultVariants:{expanded:!1,selected:!1,cardSpacing:!1},compoundVariants:[[{expanded:!0,cardSpacing:!0},"_11ztjeeb"]]}),G="_11ztjeee",K="_11ztjeec",W="_11ztjeed",N="_11ztjeef";function f({children:e,className:t,...o}){return s.createElement("div",{className:a.cl(G,t),...o},e)}a.Metadata.set(f,{name:"Content Row Expansion"});function x({children:e,className:t,alternateLayout:o=!1,initiallyExpanded:n=!1,cardSpacing:r=!1,expanded:i,onBeforeCollapsed:d,onBeforeExpanded:l,onSelectionChange:m,onCollapsed:C,onExpanded:w,selectable:y=!1,selected:h,...M}){const[P,[R]]=a.selectChildren(e,[{type:p},{type:f}]),{t:I}=s.useContext(a.I18nContext),[V,g]=s.useState(n),u=typeof i=="boolean"?i:V;function _(j){j.stopPropagation(),u&&(!d||d())?(g(!1),C&&C()):!u&&(!l||l())&&(g(!0),w&&w())}const E=()=>s.createElement(F.SpsCheckbox,{checked:h,onChange:m}),S=()=>s.createElement("button",{type:"button",className:a.cl(K),onClick:_,"aria-label":I(`design-system:contentRow.${u?"collapse":"expand"}`)},s.createElement(a.Icon,{className:a.cl(W),icon:u?"minus-circle":"plus-circle"}));return s.createElement("div",{className:a.cl(T({expanded:u}),t),...M},s.createElement("div",{className:a.cl(q({expanded:u,selected:h,cardSpacing:r}))},y&&!o&&s.createElement(p,{widthPx:46},s.createElement(E,null)),R&&!o&&s.createElement(p,{widthPx:44},s.createElement(S,null)),R&&y&&o&&s.createElement(p,{widthPx:46},s.createElement("section",{className:N},s.createElement(E,null)),s.createElement("section",{className:N},s.createElement(S,null))),P),R)}a.Metadata.set(x,{name:"Content Row",props:{alternateLayout:{type:"boolean",default:"false"},initiallyExpanded:{type:"boolean",default:"false"},cardSpacing:{type:"boolean",default:"false"},expanded:{type:"boolean"},onBeforeCollapsed:{type:"() => boolean"},onBeforeExpanded:{type:"() => boolean"},onSelectionChange:{type:"ChangeEventHandler"},onCollapsed:{type:"() => void"},onExpanded:{type:"() => void"},selectable:{type:"boolean",default:"false"},selected:{type:"boolean"}}});const B={components:[x,p,f],examples:{basic:{label:"Content Rows",examples:{basic:{react:c.code`
|
2
2
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-rows";
|
3
3
|
import { Icon } from "@sps-woodland/core";
|
4
4
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -16,7 +16,7 @@
|
|
16
16
|
</ContentRow>
|
17
17
|
)
|
18
18
|
}
|
19
|
-
`},withCheckbox:{react:
|
19
|
+
`},withCheckbox:{react:c.code`
|
20
20
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-rows";
|
21
21
|
import { Icon } from "@sps-woodland/core";
|
22
22
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -46,7 +46,7 @@
|
|
46
46
|
</ContentRow>
|
47
47
|
)
|
48
48
|
}
|
49
|
-
`},withCheckboxAndFavorite:{react:
|
49
|
+
`},withCheckboxAndFavorite:{react:c.code`
|
50
50
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-rows";
|
51
51
|
import { Icon } from "@sps-woodland/core";
|
52
52
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -79,7 +79,7 @@
|
|
79
79
|
</ContentRow>
|
80
80
|
)
|
81
81
|
}
|
82
|
-
`}}},expandable:{label:"Expandable Content Rows",examples:{basic:{react:
|
82
|
+
`}}},expandable:{label:"Expandable Content Rows",examples:{basic:{react:c.code`
|
83
83
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
84
84
|
import { Card } from "@sps-woodland/cards";
|
85
85
|
import { Icon } from "@sps-woodland/core";
|
@@ -111,7 +111,7 @@
|
|
111
111
|
</ContentRow>
|
112
112
|
)
|
113
113
|
}
|
114
|
-
`},expandableWithCheckbox:{react:
|
114
|
+
`},expandableWithCheckbox:{react:c.code`
|
115
115
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
116
116
|
import { Card } from "@sps-woodland/cards";
|
117
117
|
import { Icon } from "@sps-woodland/core";
|
@@ -155,7 +155,7 @@
|
|
155
155
|
</ContentRow>
|
156
156
|
)
|
157
157
|
}
|
158
|
-
`},expandableWithCheckboxAlternate:{react:
|
158
|
+
`},expandableWithCheckboxAlternate:{react:c.code`
|
159
159
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
160
160
|
import { Card } from "@sps-woodland/cards";
|
161
161
|
import { Icon } from "@sps-woodland/core";
|
@@ -200,7 +200,7 @@
|
|
200
200
|
</ContentRow>
|
201
201
|
)
|
202
202
|
}
|
203
|
-
`},expandableWithCheckboxAndFavorite:{react:
|
203
|
+
`},expandableWithCheckboxAndFavorite:{react:c.code`
|
204
204
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
205
205
|
import { Card } from "@sps-woodland/cards";
|
206
206
|
import { Icon } from "@sps-woodland/core";
|
@@ -247,7 +247,7 @@
|
|
247
247
|
</ContentRow>
|
248
248
|
)
|
249
249
|
}
|
250
|
-
`},expandableWithCheckboxAndFavoriteAlternate:{react:
|
250
|
+
`},expandableWithCheckboxAndFavoriteAlternate:{react:c.code`
|
251
251
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
252
252
|
import { Card } from "@sps-woodland/cards";
|
253
253
|
import { Icon } from "@sps-woodland/core";
|
@@ -295,7 +295,7 @@
|
|
295
295
|
</ContentRow>
|
296
296
|
)
|
297
297
|
}
|
298
|
-
`}}},sortable:{label:"Sortable Content Rows",examples:{basic:{react:
|
298
|
+
`}}},sortable:{label:"Sortable Content Rows",examples:{basic:{react:c.code`
|
299
299
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
300
300
|
import { Card } from "@sps-woodland/cards";
|
301
301
|
import { SortingHeader, SortingHeaderCell } from "@sps-woodland/sortable-header";
|
package/lib/index.es.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { Metadata as
|
2
|
+
import { Metadata as R, cl as C, selectChildren as _, I18nContext as O, Icon as A } from "@sps-woodland/core";
|
3
3
|
import { SpsCheckbox as D } from "@spscommerce/ds-react";
|
4
|
-
import { code as
|
4
|
+
import { code as l } from "@spscommerce/utils";
|
5
5
|
function H(e, t, o) {
|
6
6
|
return t in e ? Object.defineProperty(e, t, {
|
7
7
|
value: o,
|
@@ -10,7 +10,7 @@ function H(e, t, o) {
|
|
10
10
|
writable: !0
|
11
11
|
}) : e[t] = o, e;
|
12
12
|
}
|
13
|
-
function
|
13
|
+
function S(e, t) {
|
14
14
|
var o = Object.keys(e);
|
15
15
|
if (Object.getOwnPropertySymbols) {
|
16
16
|
var n = Object.getOwnPropertySymbols(e);
|
@@ -20,12 +20,12 @@ function v(e, t) {
|
|
20
20
|
}
|
21
21
|
return o;
|
22
22
|
}
|
23
|
-
function
|
23
|
+
function v(e) {
|
24
24
|
for (var t = 1; t < arguments.length; t++) {
|
25
25
|
var o = arguments[t] != null ? arguments[t] : {};
|
26
|
-
t % 2 ?
|
26
|
+
t % 2 ? S(Object(o), !0).forEach(function(n) {
|
27
27
|
H(e, n, o[n]);
|
28
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) :
|
28
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : S(Object(o)).forEach(function(n) {
|
29
29
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
|
30
30
|
});
|
31
31
|
}
|
@@ -38,42 +38,42 @@ var T = (e, t, o) => {
|
|
38
38
|
return !1;
|
39
39
|
}
|
40
40
|
return !0;
|
41
|
-
},
|
42
|
-
var o = e.defaultClassName, n =
|
41
|
+
}, b = (e) => (t) => {
|
42
|
+
var o = e.defaultClassName, n = v(v({}, e.defaultVariants), t);
|
43
43
|
for (var r in n) {
|
44
|
-
var
|
45
|
-
if (
|
46
|
-
var
|
47
|
-
typeof
|
48
|
-
var
|
49
|
-
|
44
|
+
var i, d = (i = n[r]) !== null && i !== void 0 ? i : e.defaultVariants[r];
|
45
|
+
if (d != null) {
|
46
|
+
var a = d;
|
47
|
+
typeof a == "boolean" && (a = a === !0 ? "true" : "false");
|
48
|
+
var c = e.variantClassNames[r][a];
|
49
|
+
c && (o += " " + c);
|
50
50
|
}
|
51
51
|
}
|
52
|
-
for (var [m,
|
53
|
-
T(m, n, e.defaultVariants) && (o += " " +
|
52
|
+
for (var [m, w] of e.compoundVariants)
|
53
|
+
T(m, n, e.defaultVariants) && (o += " " + w);
|
54
54
|
return o;
|
55
|
-
}, G =
|
56
|
-
function
|
55
|
+
}, G = b({ defaultClassName: "_1mxrufv0", variantClassNames: { lean: { true: "_1mxrufv1", false: "_1mxrufv2" }, borderless: { true: "_1mxrufv3", false: "_1mxrufv4" } }, defaultVariants: { lean: !1, borderless: !1 }, compoundVariants: [] });
|
56
|
+
function u({
|
57
57
|
children: e,
|
58
58
|
className: t,
|
59
59
|
borderless: o,
|
60
60
|
lean: n,
|
61
61
|
widthPx: r,
|
62
|
-
widthRem:
|
63
|
-
style:
|
64
|
-
...
|
62
|
+
widthRem: i,
|
63
|
+
style: d,
|
64
|
+
...a
|
65
65
|
}) {
|
66
|
-
const
|
67
|
-
...
|
68
|
-
width: `${
|
69
|
-
} :
|
66
|
+
const c = r ? r / 16 : i, m = c ? {
|
67
|
+
...d,
|
68
|
+
width: `${c}rem`
|
69
|
+
} : d;
|
70
70
|
return /* @__PURE__ */ s.createElement("div", {
|
71
|
-
className:
|
72
|
-
...
|
71
|
+
className: C(G({ lean: n, borderless: o }), t),
|
72
|
+
...a,
|
73
73
|
style: m
|
74
74
|
}, e);
|
75
75
|
}
|
76
|
-
|
76
|
+
R.set(u, {
|
77
77
|
name: "Content Row Col",
|
78
78
|
props: {
|
79
79
|
borderless: { type: "boolean" },
|
@@ -82,79 +82,79 @@ b.set(C, {
|
|
82
82
|
widthRem: { type: "number" }
|
83
83
|
}
|
84
84
|
});
|
85
|
-
var K =
|
86
|
-
function
|
85
|
+
var K = b({ defaultClassName: "_11ztjee1", variantClassNames: { expanded: { true: "_11ztjee2", false: "_11ztjee3" } }, defaultVariants: { expanded: !1 }, compoundVariants: [] }), W = b({ defaultClassName: "_11ztjee4", variantClassNames: { expanded: { true: "_11ztjee5", false: "_11ztjee6" }, selected: { true: "_11ztjee7", false: "_11ztjee8" }, cardSpacing: { true: "_11ztjee9", false: "_11ztjeea" } }, defaultVariants: { expanded: !1, selected: !1, cardSpacing: !1 }, compoundVariants: [[{ expanded: !0, cardSpacing: !0 }, "_11ztjeeb"]] }), B = "_11ztjeee", L = "_11ztjeec", J = "_11ztjeed", N = "_11ztjeef";
|
86
|
+
function x({
|
87
87
|
children: e,
|
88
88
|
className: t,
|
89
89
|
...o
|
90
90
|
}) {
|
91
91
|
return /* @__PURE__ */ s.createElement("div", {
|
92
|
-
className:
|
92
|
+
className: C(B, t),
|
93
93
|
...o
|
94
94
|
}, e);
|
95
95
|
}
|
96
|
-
|
96
|
+
R.set(x, {
|
97
97
|
name: "Content Row Expansion"
|
98
98
|
});
|
99
|
-
function
|
99
|
+
function P({
|
100
100
|
children: e,
|
101
101
|
className: t,
|
102
102
|
alternateLayout: o = !1,
|
103
103
|
initiallyExpanded: n = !1,
|
104
104
|
cardSpacing: r = !1,
|
105
|
-
expanded:
|
106
|
-
onBeforeCollapsed:
|
107
|
-
onBeforeExpanded:
|
108
|
-
onSelectionChange:
|
105
|
+
expanded: i,
|
106
|
+
onBeforeCollapsed: d,
|
107
|
+
onBeforeExpanded: a,
|
108
|
+
onSelectionChange: c,
|
109
109
|
onCollapsed: m,
|
110
|
-
onExpanded:
|
111
|
-
selectable:
|
112
|
-
selected:
|
113
|
-
...
|
110
|
+
onExpanded: w,
|
111
|
+
selectable: y = !1,
|
112
|
+
selected: h,
|
113
|
+
...I
|
114
114
|
}) {
|
115
|
-
const [
|
116
|
-
{ type:
|
117
|
-
{ type:
|
118
|
-
]), { t:
|
115
|
+
const [M, [f]] = _(e, [
|
116
|
+
{ type: u },
|
117
|
+
{ type: x }
|
118
|
+
]), { t: V } = s.useContext(O), [z, g] = s.useState(n), p = typeof i == "boolean" ? i : z;
|
119
119
|
function F(j) {
|
120
|
-
j.stopPropagation(),
|
120
|
+
j.stopPropagation(), p && (!d || d()) ? (g(!1), m && m()) : !p && (!a || a()) && (g(!0), w && w());
|
121
121
|
}
|
122
|
-
const
|
123
|
-
checked:
|
124
|
-
onChange:
|
125
|
-
}),
|
122
|
+
const E = () => /* @__PURE__ */ s.createElement(D, {
|
123
|
+
checked: h,
|
124
|
+
onChange: c
|
125
|
+
}), k = () => /* @__PURE__ */ s.createElement("button", {
|
126
126
|
type: "button",
|
127
|
-
className:
|
127
|
+
className: C(L),
|
128
128
|
onClick: F,
|
129
|
-
"aria-label":
|
129
|
+
"aria-label": V(`design-system:contentRow.${p ? "collapse" : "expand"}`)
|
130
130
|
}, /* @__PURE__ */ s.createElement(A, {
|
131
|
-
className:
|
132
|
-
icon:
|
131
|
+
className: C(J),
|
132
|
+
icon: p ? "minus-circle" : "plus-circle"
|
133
133
|
}));
|
134
134
|
return /* @__PURE__ */ s.createElement("div", {
|
135
|
-
className:
|
136
|
-
...
|
135
|
+
className: C(K({ expanded: p }), t),
|
136
|
+
...I
|
137
137
|
}, /* @__PURE__ */ s.createElement("div", {
|
138
|
-
className:
|
138
|
+
className: C(
|
139
139
|
W({
|
140
|
-
expanded:
|
141
|
-
selected:
|
140
|
+
expanded: p,
|
141
|
+
selected: h,
|
142
142
|
cardSpacing: r
|
143
143
|
})
|
144
144
|
)
|
145
|
-
},
|
145
|
+
}, y && !o && /* @__PURE__ */ s.createElement(u, {
|
146
146
|
widthPx: 46
|
147
|
-
}, /* @__PURE__ */ s.createElement(
|
147
|
+
}, /* @__PURE__ */ s.createElement(E, null)), f && !o && /* @__PURE__ */ s.createElement(u, {
|
148
148
|
widthPx: 44
|
149
|
-
}, /* @__PURE__ */ s.createElement(
|
149
|
+
}, /* @__PURE__ */ s.createElement(k, null)), f && y && o && /* @__PURE__ */ s.createElement(u, {
|
150
150
|
widthPx: 46
|
151
151
|
}, /* @__PURE__ */ s.createElement("section", {
|
152
|
-
className:
|
153
|
-
}, /* @__PURE__ */ s.createElement(
|
154
|
-
className:
|
155
|
-
}, /* @__PURE__ */ s.createElement(
|
152
|
+
className: N
|
153
|
+
}, /* @__PURE__ */ s.createElement(E, null)), /* @__PURE__ */ s.createElement("section", {
|
154
|
+
className: N
|
155
|
+
}, /* @__PURE__ */ s.createElement(k, null))), M), f);
|
156
156
|
}
|
157
|
-
|
157
|
+
R.set(P, {
|
158
158
|
name: "Content Row",
|
159
159
|
props: {
|
160
160
|
alternateLayout: { type: "boolean", default: "false" },
|
@@ -171,13 +171,13 @@ b.set(I, {
|
|
171
171
|
}
|
172
172
|
});
|
173
173
|
const q = {
|
174
|
-
components: [
|
174
|
+
components: [P, u, x],
|
175
175
|
examples: {
|
176
176
|
basic: {
|
177
177
|
label: "Content Rows",
|
178
178
|
examples: {
|
179
179
|
basic: {
|
180
|
-
react:
|
180
|
+
react: l`
|
181
181
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-rows";
|
182
182
|
import { Icon } from "@sps-woodland/core";
|
183
183
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -198,7 +198,7 @@ const q = {
|
|
198
198
|
`
|
199
199
|
},
|
200
200
|
withCheckbox: {
|
201
|
-
react:
|
201
|
+
react: l`
|
202
202
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-rows";
|
203
203
|
import { Icon } from "@sps-woodland/core";
|
204
204
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -231,7 +231,7 @@ const q = {
|
|
231
231
|
`
|
232
232
|
},
|
233
233
|
withCheckboxAndFavorite: {
|
234
|
-
react:
|
234
|
+
react: l`
|
235
235
|
import { ContentRow, ContentRowCol } from "@sps-woodland/content-rows";
|
236
236
|
import { Icon } from "@sps-woodland/core";
|
237
237
|
import { sprinkles } from "@sps-woodland/tokens";
|
@@ -272,7 +272,7 @@ const q = {
|
|
272
272
|
label: "Expandable Content Rows",
|
273
273
|
examples: {
|
274
274
|
basic: {
|
275
|
-
react:
|
275
|
+
react: l`
|
276
276
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
277
277
|
import { Card } from "@sps-woodland/cards";
|
278
278
|
import { Icon } from "@sps-woodland/core";
|
@@ -307,7 +307,7 @@ const q = {
|
|
307
307
|
`
|
308
308
|
},
|
309
309
|
expandableWithCheckbox: {
|
310
|
-
react:
|
310
|
+
react: l`
|
311
311
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
312
312
|
import { Card } from "@sps-woodland/cards";
|
313
313
|
import { Icon } from "@sps-woodland/core";
|
@@ -354,7 +354,7 @@ const q = {
|
|
354
354
|
`
|
355
355
|
},
|
356
356
|
expandableWithCheckboxAlternate: {
|
357
|
-
react:
|
357
|
+
react: l`
|
358
358
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
359
359
|
import { Card } from "@sps-woodland/cards";
|
360
360
|
import { Icon } from "@sps-woodland/core";
|
@@ -402,7 +402,7 @@ const q = {
|
|
402
402
|
`
|
403
403
|
},
|
404
404
|
expandableWithCheckboxAndFavorite: {
|
405
|
-
react:
|
405
|
+
react: l`
|
406
406
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
407
407
|
import { Card } from "@sps-woodland/cards";
|
408
408
|
import { Icon } from "@sps-woodland/core";
|
@@ -452,7 +452,7 @@ const q = {
|
|
452
452
|
`
|
453
453
|
},
|
454
454
|
expandableWithCheckboxAndFavoriteAlternate: {
|
455
|
-
react:
|
455
|
+
react: l`
|
456
456
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
457
457
|
import { Card } from "@sps-woodland/cards";
|
458
458
|
import { Icon } from "@sps-woodland/core";
|
@@ -508,7 +508,7 @@ const q = {
|
|
508
508
|
label: "Sortable Content Rows",
|
509
509
|
examples: {
|
510
510
|
basic: {
|
511
|
-
react:
|
511
|
+
react: l`
|
512
512
|
import { ContentRow, ContentRowCol, ContentRowExpansion } from "@sps-woodland/content-rows";
|
513
513
|
import { Card } from "@sps-woodland/cards";
|
514
514
|
import { SortingHeader, SortingHeaderCell } from "@sps-woodland/sortable-header";
|
@@ -616,8 +616,8 @@ const q = {
|
|
616
616
|
"Content Rows": q
|
617
617
|
};
|
618
618
|
export {
|
619
|
-
|
620
|
-
|
621
|
-
|
619
|
+
P as ContentRow,
|
620
|
+
u as ContentRowCol,
|
621
|
+
x as ContentRowExpansion,
|
622
622
|
Y as MANIFEST
|
623
623
|
};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sps-woodland/content-row",
|
3
3
|
"description": "SPS Woodland Design System page title component",
|
4
|
-
"version": "7.4.
|
4
|
+
"version": "7.4.3",
|
5
5
|
"author": "SPS Commerce",
|
6
6
|
"license": "UNLICENSED",
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/page-title",
|
@@ -25,23 +25,23 @@
|
|
25
25
|
"access": "public"
|
26
26
|
},
|
27
27
|
"peerDependencies": {
|
28
|
-
"@sps-woodland/core": "7.4.
|
29
|
-
"@sps-woodland/tokens": "7.4.
|
30
|
-
"@spscommerce/ds-colors": "7.4.
|
28
|
+
"@sps-woodland/core": "7.4.3",
|
29
|
+
"@sps-woodland/tokens": "7.4.3",
|
30
|
+
"@spscommerce/ds-colors": "7.4.3",
|
31
31
|
"@spscommerce/ds-illustrations": "6.37.3",
|
32
|
-
"@spscommerce/ds-react": "7.4.
|
33
|
-
"@spscommerce/ds-shared": "7.4.
|
32
|
+
"@spscommerce/ds-react": "7.4.3",
|
33
|
+
"@spscommerce/ds-shared": "7.4.3",
|
34
34
|
"@spscommerce/utils": "^6.12.1",
|
35
35
|
"react": "^16.14.0",
|
36
36
|
"react-dom": "^16.14.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@sps-woodland/core": "7.4.
|
40
|
-
"@sps-woodland/tokens": "7.4.
|
41
|
-
"@spscommerce/ds-colors": "7.4.
|
39
|
+
"@sps-woodland/core": "7.4.3",
|
40
|
+
"@sps-woodland/tokens": "7.4.3",
|
41
|
+
"@spscommerce/ds-colors": "7.4.3",
|
42
42
|
"@spscommerce/ds-illustrations": "6.37.3",
|
43
|
-
"@spscommerce/ds-react": "7.4.
|
44
|
-
"@spscommerce/ds-shared": "7.4.
|
43
|
+
"@spscommerce/ds-react": "7.4.3",
|
44
|
+
"@spscommerce/ds-shared": "7.4.3",
|
45
45
|
"@spscommerce/utils": "^6.12.1",
|
46
46
|
"@vanilla-extract/css": "^1.9.3",
|
47
47
|
"@vanilla-extract/recipes": "^0.2.5",
|