@sps-woodland/content-row 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.
Files changed (2) hide show
  1. package/lib/index.es.js +36 -43
  2. package/package.json +13 -13
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("div", {
71
- className: C(B({ lean: t, borderless: o }), n),
72
- ...a,
73
- style: m
74
- }, e);
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
- checked: g,
127
- onChange: c
128
- }), v = () => /* @__PURE__ */ s.createElement("button", {
129
- type: "button",
130
- className: C(Q),
131
- onClick: H,
132
- "aria-label": F(`design-system:contentRow.${p ? "collapse" : "expand"}`)
133
- }, /* @__PURE__ */ s.createElement(T, {
134
- className: C(U),
135
- icon: p ? "minus-circle" : "plus-circle"
136
- }));
137
- return /* @__PURE__ */ s.createElement("div", {
138
- className: C(L({ expanded: p }), n),
139
- ...V
140
- }, /* @__PURE__ */ s.createElement("div", {
141
- className: C(
142
- J({
143
- expanded: p,
144
- selected: g,
145
- cardSpacing: r
146
- })
147
- )
148
- }, h && !o && /* @__PURE__ */ s.createElement(u, {
149
- widthPx: 46
150
- }, /* @__PURE__ */ s.createElement(k, null)), R && !o && /* @__PURE__ */ s.createElement(u, {
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.8",
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/page-title",
@@ -26,28 +26,28 @@
26
26
  "access": "public"
27
27
  },
28
28
  "peerDependencies": {
29
+ "@sps-woodland/core": "7.17.10",
30
+ "@sps-woodland/tokens": "7.17.10",
31
+ "@spscommerce/ds-colors": "7.17.10",
29
32
  "@spscommerce/ds-illustrations": "6.37.3",
33
+ "@spscommerce/ds-react": "7.17.10",
34
+ "@spscommerce/ds-shared": "7.17.10",
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.8",
34
- "@sps-woodland/tokens": "7.17.8",
35
- "@spscommerce/ds-colors": "7.17.8",
36
- "@spscommerce/ds-react": "7.17.8",
37
- "@spscommerce/ds-shared": "7.17.8"
37
+ "react-dom": "^16.14.0"
38
38
  },
39
39
  "devDependencies": {
40
+ "@sps-woodland/core": "7.17.10",
41
+ "@sps-woodland/tokens": "7.17.10",
42
+ "@spscommerce/ds-colors": "7.17.10",
40
43
  "@spscommerce/ds-illustrations": "6.37.3",
44
+ "@spscommerce/ds-react": "7.17.10",
45
+ "@spscommerce/ds-shared": "7.17.10",
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.8",
47
- "@sps-woodland/tokens": "7.17.8",
48
- "@spscommerce/ds-colors": "7.17.8",
49
- "@spscommerce/ds-react": "7.17.8",
50
- "@spscommerce/ds-shared": "7.17.8"
50
+ "react-dom": "^16.14.0"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "pnpm run build:js && pnpm run build:types",