@sps-woodland/content-row 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 +36 -43
- package/package.json +13 -13
- package/sps-woodland-content-row-7.17.11.tgz +0 -0
package/lib/index.es.js
CHANGED
@@ -67,11 +67,15 @@ function u({
|
|
67
67
|
...d,
|
68
68
|
width: `${c}rem`
|
69
69
|
} : d;
|
70
|
-
return /* @__PURE__ */ s.createElement(
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
70
|
+
return /* @__PURE__ */ s.createElement(
|
71
|
+
"div",
|
72
|
+
{
|
73
|
+
className: C(B({ lean: t, borderless: o }), n),
|
74
|
+
...a,
|
75
|
+
style: m
|
76
|
+
},
|
77
|
+
e
|
78
|
+
);
|
75
79
|
}
|
76
80
|
b.set(u, {
|
77
81
|
name: "Content Row Col",
|
@@ -88,10 +92,7 @@ function y({
|
|
88
92
|
className: n,
|
89
93
|
...o
|
90
94
|
}) {
|
91
|
-
return /* @__PURE__ */ s.createElement("div", {
|
92
|
-
className: C(q, n),
|
93
|
-
...o
|
94
|
-
}, e);
|
95
|
+
return /* @__PURE__ */ s.createElement("div", { className: C(q, n), ...o }, e);
|
95
96
|
}
|
96
97
|
b.set(y, {
|
97
98
|
name: "Content Row Expansion"
|
@@ -122,40 +123,32 @@ function I({
|
|
122
123
|
function H(O) {
|
123
124
|
O.stopPropagation(), p && (!d || d()) ? (E(!1), f || S(!1), m && m()) : !p && (!a || a()) && (E(!0), f || S(!0), w && w());
|
124
125
|
}
|
125
|
-
const k = () => /* @__PURE__ */ s.createElement(G, {
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
)
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
widthPx: 44
|
152
|
-
}, /* @__PURE__ */ s.createElement(v, null)), R && h && o && /* @__PURE__ */ s.createElement(u, {
|
153
|
-
widthPx: 46
|
154
|
-
}, /* @__PURE__ */ s.createElement("section", {
|
155
|
-
className: M
|
156
|
-
}, /* @__PURE__ */ s.createElement(k, null)), /* @__PURE__ */ s.createElement("section", {
|
157
|
-
className: M
|
158
|
-
}, /* @__PURE__ */ s.createElement(v, null))), z), j && R);
|
126
|
+
const k = () => /* @__PURE__ */ s.createElement(G, { checked: g, onChange: c }), v = () => /* @__PURE__ */ s.createElement(
|
127
|
+
"button",
|
128
|
+
{
|
129
|
+
type: "button",
|
130
|
+
className: C(Q),
|
131
|
+
onClick: H,
|
132
|
+
"aria-label": F(`design-system:contentRow.${p ? "collapse" : "expand"}`)
|
133
|
+
},
|
134
|
+
/* @__PURE__ */ s.createElement(T, { className: C(U), icon: p ? "minus-circle" : "plus-circle" })
|
135
|
+
);
|
136
|
+
return /* @__PURE__ */ s.createElement("div", { className: C(L({ expanded: p }), n), ...V }, /* @__PURE__ */ s.createElement(
|
137
|
+
"div",
|
138
|
+
{
|
139
|
+
className: C(
|
140
|
+
J({
|
141
|
+
expanded: p,
|
142
|
+
selected: g,
|
143
|
+
cardSpacing: r
|
144
|
+
})
|
145
|
+
)
|
146
|
+
},
|
147
|
+
h && !o && /* @__PURE__ */ s.createElement(u, { widthPx: 46 }, /* @__PURE__ */ s.createElement(k, null)),
|
148
|
+
R && !o && /* @__PURE__ */ s.createElement(u, { widthPx: 44 }, /* @__PURE__ */ s.createElement(v, null)),
|
149
|
+
R && h && o && /* @__PURE__ */ s.createElement(u, { widthPx: 46 }, /* @__PURE__ */ s.createElement("section", { className: M }, /* @__PURE__ */ s.createElement(k, null)), /* @__PURE__ */ s.createElement("section", { className: M }, /* @__PURE__ */ s.createElement(v, null))),
|
150
|
+
z
|
151
|
+
), j && R);
|
159
152
|
}
|
160
153
|
b.set(I, {
|
161
154
|
name: "Content Row",
|
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.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/page-title",
|
@@ -26,28 +26,28 @@
|
|
26
26
|
"access": "public"
|
27
27
|
},
|
28
28
|
"peerDependencies": {
|
29
|
+
"@sps-woodland/core": "7.17.11",
|
30
|
+
"@sps-woodland/tokens": "7.17.11",
|
31
|
+
"@spscommerce/ds-colors": "7.17.11",
|
29
32
|
"@spscommerce/ds-illustrations": "6.37.3",
|
33
|
+
"@spscommerce/ds-react": "7.17.11",
|
34
|
+
"@spscommerce/ds-shared": "7.17.11",
|
30
35
|
"@spscommerce/utils": "^6.12.1",
|
31
36
|
"react": "^16.14.0",
|
32
|
-
"react-dom": "^16.14.0"
|
33
|
-
"@sps-woodland/core": "7.17.9",
|
34
|
-
"@sps-woodland/tokens": "7.17.9",
|
35
|
-
"@spscommerce/ds-colors": "7.17.9",
|
36
|
-
"@spscommerce/ds-react": "7.17.9",
|
37
|
-
"@spscommerce/ds-shared": "7.17.9"
|
37
|
+
"react-dom": "^16.14.0"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
+
"@sps-woodland/core": "7.17.11",
|
41
|
+
"@sps-woodland/tokens": "7.17.11",
|
42
|
+
"@spscommerce/ds-colors": "7.17.11",
|
40
43
|
"@spscommerce/ds-illustrations": "6.37.3",
|
44
|
+
"@spscommerce/ds-react": "7.17.11",
|
45
|
+
"@spscommerce/ds-shared": "7.17.11",
|
41
46
|
"@spscommerce/utils": "^6.12.1",
|
42
47
|
"@vanilla-extract/css": "^1.9.3",
|
43
48
|
"@vanilla-extract/recipes": "^0.2.5",
|
44
49
|
"react": "^16.14.0",
|
45
|
-
"react-dom": "^16.14.0"
|
46
|
-
"@sps-woodland/core": "7.17.9",
|
47
|
-
"@sps-woodland/tokens": "7.17.9",
|
48
|
-
"@spscommerce/ds-colors": "7.17.9",
|
49
|
-
"@spscommerce/ds-react": "7.17.9",
|
50
|
-
"@spscommerce/ds-shared": "7.17.9"
|
50
|
+
"react-dom": "^16.14.0"
|
51
51
|
},
|
52
52
|
"scripts": {
|
53
53
|
"build": "pnpm run build:js && pnpm run build:types",
|
Binary file
|