@sps-woodland/list-bar 8.2.2 → 8.3.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.
package/lib/index.es.js CHANGED
@@ -16,32 +16,7 @@ function R({
16
16
  ...h
17
17
  }) {
18
18
  const { t: l } = e.useContext(w), p = a ? Object.keys(a).reduce((i, u) => (a[u].length > 0 && (i[u] = a[u]), i), {}) : {};
19
- return /* @__PURE__ */ e.createElement("div", {
20
- className: me,
21
- ...h
22
- }, t != null && /* @__PURE__ */ e.createElement("div", {
23
- className: pe
24
- }, /* @__PURE__ */ e.createElement("span", null, l("design-system:searchResultsBar.results")), /* @__PURE__ */ e.createElement(C, {
25
- className: Be,
26
- kind: "info"
27
- }, /* @__PURE__ */ e.createElement("span", null, t))), /* @__PURE__ */ e.createElement("div", {
28
- className: ve
29
- }, Object.keys(p).length > 0 ? Object.keys(p).map((i, u) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", {
30
- key: u,
31
- className: Se
32
- }, i, ":"), p[i].map((B, g) => /* @__PURE__ */ e.createElement(C, {
33
- className: fe,
34
- key: g,
35
- kind: "key"
36
- }, /* @__PURE__ */ e.createElement("span", null, B))))) : /* @__PURE__ */ e.createElement("span", {
37
- className: "font-italic"
38
- }, r || l("design-system:searchResultsBar.noAdvancedSearchSelections"))), /* @__PURE__ */ e.createElement("div", {
39
- className: he
40
- }, /* @__PURE__ */ e.createElement(T, {
41
- className: ue,
42
- kind: "link",
43
- onClick: n
44
- }, l("design-system:searchResultsBar.clearResults"))));
19
+ return /* @__PURE__ */ e.createElement("div", { className: me, ...h }, t != null && /* @__PURE__ */ e.createElement("div", { className: pe }, /* @__PURE__ */ e.createElement("span", null, l("design-system:searchResultsBar.results")), /* @__PURE__ */ e.createElement(C, { className: Be, kind: "info" }, /* @__PURE__ */ e.createElement("span", null, t))), /* @__PURE__ */ e.createElement("div", { className: ve }, Object.keys(p).length > 0 ? Object.keys(p).map((i, u) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { key: u, className: Se }, i, ":"), p[i].map((B, g) => /* @__PURE__ */ e.createElement(C, { className: fe, key: g, kind: "key" }, /* @__PURE__ */ e.createElement("span", null, B))))) : /* @__PURE__ */ e.createElement("span", { className: "font-italic" }, r || l("design-system:searchResultsBar.noAdvancedSearchSelections"))), /* @__PURE__ */ e.createElement("div", { className: he }, /* @__PURE__ */ e.createElement(T, { className: ue, kind: "link", onClick: n }, l("design-system:searchResultsBar.clearResults"))));
45
20
  }
46
21
  b.set(R, {
47
22
  name: "Search Results Bar",
@@ -123,13 +98,7 @@ function F({
123
98
  function r(n) {
124
99
  n.preventDefault(), t && t(n);
125
100
  }
126
- return /* @__PURE__ */ e.createElement("form", {
127
- onSubmit: r,
128
- className: Me,
129
- noValidate: !0
130
- }, /* @__PURE__ */ e.createElement(ae, {
131
- className: Fe
132
- }, /* @__PURE__ */ e.createElement(Oe, null, a)));
101
+ return /* @__PURE__ */ e.createElement("form", { onSubmit: r, className: Me, noValidate: !0 }, /* @__PURE__ */ e.createElement(ae, { className: Fe }, /* @__PURE__ */ e.createElement(Oe, null, a)));
133
102
  }
134
103
  b.set(F, {
135
104
  name: "ListBarSearch",
@@ -204,48 +173,24 @@ function j({
204
173
  custom: (d) => b.isWoodlandComponent(d) && b.get(d).name === "Tabs"
205
174
  }
206
175
  ]);
207
- return /* @__PURE__ */ e.createElement("div", {
208
- className: x(B),
209
- ref: f,
210
- ...g
211
- }, /* @__PURE__ */ e.createElement("div", {
212
- className: Le({ pinned: S }),
213
- ref: E
214
- }, V ? X(V, { context: "container" }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
215
- className: we
216
- }, !!c && /* @__PURE__ */ e.createElement("div", {
217
- className: Ie
218
- }, /* @__PURE__ */ e.createElement(re, {
219
- checked: m,
220
- indeterminate: h,
221
- onChange: () => {
222
- l == null || l(!m);
176
+ return /* @__PURE__ */ e.createElement("div", { className: x(B), ref: f, ...g }, /* @__PURE__ */ e.createElement("div", { className: Le({ pinned: S }), ref: E }, V ? X(V, { context: "container" }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: we }, !!c && /* @__PURE__ */ e.createElement("div", { className: Ie }, /* @__PURE__ */ e.createElement(
177
+ re,
178
+ {
179
+ checked: m,
180
+ indeterminate: h,
181
+ onChange: () => {
182
+ l == null || l(!m);
183
+ }
223
184
  }
224
- })), /* @__PURE__ */ e.createElement("div", {
225
- className: Re
226
- }, !r && N, !r && z, N.length > 0 && t && /* @__PURE__ */ e.createElement("div", {
227
- className: Ae,
228
- "data-testid": `${k}__advanced-search`
229
- }, /* @__PURE__ */ e.createElement("div", {
230
- className: Ce
231
- }, /* @__PURE__ */ e.createElement(T, {
232
- kind: "link",
233
- onClick: W
234
- }, H("design-system:listToolbar.advancedSearchToggle"))), (t.enteredFields || 0) > 0 && /* @__PURE__ */ e.createElement(C, {
235
- className: ye,
236
- kind: "info",
237
- "data-testid": `${k}__entered-fields`
238
- }, /* @__PURE__ */ e.createElement("span", null, t.enteredFields))), r && /* @__PURE__ */ e.createElement("div", {
239
- className: xe
240
- }, r)), S ? /* @__PURE__ */ e.createElement("div", {
241
- className: G
242
- }, /* @__PURE__ */ e.createElement($.Provider, {
243
- value: { fixed: !0 }
244
- }, _)) : /* @__PURE__ */ e.createElement("div", {
245
- className: G
246
- }, _)), /* @__PURE__ */ e.createElement("div", {
247
- className: be
248
- }, (!S || S && p) && Z))));
185
+ )), /* @__PURE__ */ e.createElement("div", { className: Re }, !r && N, !r && z, N.length > 0 && t && /* @__PURE__ */ e.createElement(
186
+ "div",
187
+ {
188
+ className: Ae,
189
+ "data-testid": `${k}__advanced-search`
190
+ },
191
+ /* @__PURE__ */ e.createElement("div", { className: Ce }, /* @__PURE__ */ e.createElement(T, { kind: "link", onClick: W }, H("design-system:listToolbar.advancedSearchToggle"))),
192
+ (t.enteredFields || 0) > 0 && /* @__PURE__ */ e.createElement(C, { className: ye, kind: "info", "data-testid": `${k}__entered-fields` }, /* @__PURE__ */ e.createElement("span", null, t.enteredFields))
193
+ ), r && /* @__PURE__ */ e.createElement("div", { className: xe }, r)), S ? /* @__PURE__ */ e.createElement("div", { className: G }, /* @__PURE__ */ e.createElement($.Provider, { value: { fixed: !0 } }, _)) : /* @__PURE__ */ e.createElement("div", { className: G }, _)), /* @__PURE__ */ e.createElement("div", { className: be }, (!S || S && p) && Z))));
249
194
  }
250
195
  b.set(j, {
251
196
  name: "ListBar",
@@ -278,12 +223,15 @@ function K({
278
223
  r && r(l);
279
224
  }
280
225
  ]);
281
- return /* @__PURE__ */ e.createElement(ne, {
282
- className: x(c, ke),
283
- icon: (a == null ? void 0 : a.icon) || (n == null ? void 0 : n.icon),
284
- label: (a == null ? void 0 : a.label) || (n == null ? void 0 : n.label),
285
- options: h
286
- });
226
+ return /* @__PURE__ */ e.createElement(
227
+ ne,
228
+ {
229
+ className: x(c, ke),
230
+ icon: (a == null ? void 0 : a.icon) || (n == null ? void 0 : n.icon),
231
+ label: (a == null ? void 0 : a.label) || (n == null ? void 0 : n.label),
232
+ options: h
233
+ }
234
+ );
287
235
  }
288
236
  b.set(K, {
289
237
  name: "ListBarSortBy",
@@ -312,33 +260,17 @@ function q({
312
260
  function g() {
313
261
  l && l();
314
262
  }
315
- return /* @__PURE__ */ e.createElement("div", {
316
- className: x(Ne({ open: h })),
317
- ...u
318
- }, /* @__PURE__ */ e.createElement(se, {
319
- onSubmit: n,
320
- formArray: t,
321
- formGroup: a,
322
- formMeta: r
323
- }, /* @__PURE__ */ e.createElement("div", {
324
- className: De
325
- }, i), /* @__PURE__ */ e.createElement("div", {
326
- className: Ve
327
- }, m && /* @__PURE__ */ e.createElement("div", {
328
- id: "footer_links"
329
- }, ee(m)), /* @__PURE__ */ e.createElement("div", {
330
- className: _e
331
- }, /* @__PURE__ */ e.createElement(T, {
332
- kind: "default",
333
- type: "button",
334
- className: de({ mr: "sm" }),
335
- onClick: g,
336
- disabled: c
337
- }, B("design-system:advancedSearch.clear")), /* @__PURE__ */ e.createElement(T, {
338
- kind: "key",
339
- type: "submit",
340
- disabled: c
341
- }, B("design-system:advancedSearch.search"))))));
263
+ return /* @__PURE__ */ e.createElement("div", { className: x(Ne({ open: h })), ...u }, /* @__PURE__ */ e.createElement(se, { onSubmit: n, formArray: t, formGroup: a, formMeta: r }, /* @__PURE__ */ e.createElement("div", { className: De }, i), /* @__PURE__ */ e.createElement("div", { className: Ve }, m && /* @__PURE__ */ e.createElement("div", { id: "footer_links" }, ee(m)), /* @__PURE__ */ e.createElement("div", { className: _e }, /* @__PURE__ */ e.createElement(
264
+ T,
265
+ {
266
+ kind: "default",
267
+ type: "button",
268
+ className: de({ mr: "sm" }),
269
+ onClick: g,
270
+ disabled: c
271
+ },
272
+ B("design-system:advancedSearch.clear")
273
+ ), /* @__PURE__ */ e.createElement(T, { kind: "key", type: "submit", disabled: c }, B("design-system:advancedSearch.search"))))));
342
274
  }
343
275
  b.set(q, {
344
276
  name: "Advanced Search",
@@ -358,21 +290,11 @@ const Pe = {
358
290
  examples: {
359
291
  general: {
360
292
  label: "General Usage",
361
- description: ({ NavigateTo: t, Link: a }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, 'Advanced Search is comprised of a panel of input fields, and a text button that exposes and hides the panel. By default, the Advanced Search panel is hidden (with the exception of "Advanced Search Only" scenarios).'), /* @__PURE__ */ e.createElement("p", null, "Advanced Search works in conjunction with the", " ", /* @__PURE__ */ e.createElement(t, {
362
- to: "list-toolbar"
363
- }, "List Bar"), " and", " ", /* @__PURE__ */ e.createElement(t, {
364
- to: "search-results-bar"
365
- }, "Search Results"), " components. Refer to those pages for additional details."), /* @__PURE__ */ e.createElement("p", null, "Use the following guidelines when including Advanced Search on your page:", /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement("li", null, "The Advanced Search Panel can contain any number of input fields."), /* @__PURE__ */ e.createElement("li", null, "The Advanced Search Panel can place input fields in any unique layout to best serve the needs of the search criteria, but must adhere to the rules of the", " ", /* @__PURE__ */ e.createElement(a, {
366
- to: "/style-and-layout/grid/"
367
- }, "SPS Grid"), " and guidelines for", " ", /* @__PURE__ */ e.createElement(t, {
368
- to: "form"
369
- }, "Form Layouts"), "."))))
293
+ description: ({ NavigateTo: t, Link: a }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, 'Advanced Search is comprised of a panel of input fields, and a text button that exposes and hides the panel. By default, the Advanced Search panel is hidden (with the exception of "Advanced Search Only" scenarios).'), /* @__PURE__ */ e.createElement("p", null, "Advanced Search works in conjunction with the", " ", /* @__PURE__ */ e.createElement(t, { to: "list-toolbar" }, "List Bar"), " and", " ", /* @__PURE__ */ e.createElement(t, { to: "search-results-bar" }, "Search Results"), " components. Refer to those pages for additional details."), /* @__PURE__ */ e.createElement("p", null, "Use the following guidelines when including Advanced Search on your page:", /* @__PURE__ */ e.createElement("ul", null, /* @__PURE__ */ e.createElement("li", null, "The Advanced Search Panel can contain any number of input fields."), /* @__PURE__ */ e.createElement("li", null, "The Advanced Search Panel can place input fields in any unique layout to best serve the needs of the search criteria, but must adhere to the rules of the", " ", /* @__PURE__ */ e.createElement(a, { to: "/style-and-layout/grid/" }, "SPS Grid"), " and guidelines for", " ", /* @__PURE__ */ e.createElement(t, { to: "form" }, "Form Layouts"), "."))))
370
294
  },
371
295
  basic: {
372
296
  label: "Basic Usage",
373
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "A Basic Advanced Search consists of the List Bar with a search input and an Advanced Search text button. For more details on additional button and component options in the List Bar reference the ", /* @__PURE__ */ e.createElement(t, {
374
- to: "list-toolbar"
375
- }, "List Bar"), " page.")),
297
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "A Basic Advanced Search consists of the List Bar with a search input and an Advanced Search text button. For more details on additional button and component options in the List Bar reference the ", /* @__PURE__ */ e.createElement(t, { to: "list-toolbar" }, "List Bar"), " page.")),
376
298
  examples: {
377
299
  basic: {
378
300
  react: o`
@@ -634,39 +556,14 @@ function Ge() {
634
556
  function n() {
635
557
  a(!0);
636
558
  }
637
- return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "The List Bar is divided into a number of different sections. It spans the entire width of the corresponding list."), /* @__PURE__ */ e.createElement(T, {
638
- kind: "link",
639
- onClick: n
640
- }, "View Content Order Example"), /* @__PURE__ */ e.createElement(oe, {
641
- isOpen: t,
642
- onClose: r
643
- }, /* @__PURE__ */ e.createElement("h1", null, "Content Order"), /* @__PURE__ */ e.createElement("img", {
644
- src: "assets/images/list-toolbar-example.svg",
645
- alt: "A List Toolbar with labels on each section",
646
- className: "w-100 mb-3"
647
- }), /* @__PURE__ */ e.createElement(le, null, /* @__PURE__ */ e.createElement(ce, null, /* @__PURE__ */ e.createElement(A, {
648
- style: { width: "80px" }
649
- }, "Order"), /* @__PURE__ */ e.createElement(A, null, "Section"), /* @__PURE__ */ e.createElement(A, null, "Notes")), /* @__PURE__ */ e.createElement(ie, null, /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
650
- className: "sps-tag sps-tag--info"
651
- }, "1")), /* @__PURE__ */ e.createElement(s, null, "Checkbox"), /* @__PURE__ */ e.createElement(s, null, "For Content Rows and Content Tiles only.")), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
652
- className: "sps-tag sps-tag--info"
653
- }, "2")), /* @__PURE__ */ e.createElement(s, null, "Search/Filter Box"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
654
- className: "sps-tag sps-tag--info"
655
- }, "3")), /* @__PURE__ */ e.createElement(s, null, "Saved Search"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
656
- className: "sps-tag sps-tag--info"
657
- }, "4")), /* @__PURE__ */ e.createElement(s, null, "Advanced Search"), /* @__PURE__ */ e.createElement(s, null, "For more information, visit the Advanced Search page.")), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
658
- className: "sps-tag sps-tag--info"
659
- }, "5")), /* @__PURE__ */ e.createElement(s, null, "Column Editor"), /* @__PURE__ */ e.createElement(s, {
660
- wrap: 500
661
- }, "Use for Tables only. For more information, visit the Column Editor page.")), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
662
- className: "sps-tag sps-tag--info"
663
- }, "6")), /* @__PURE__ */ e.createElement(s, null, "List View Selector"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
664
- className: "sps-tag sps-tag--info"
665
- }, "7")), /* @__PURE__ */ e.createElement(s, null, "Sorting"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", {
666
- className: "sps-tag sps-tag--info"
667
- }, "8")), /* @__PURE__ */ e.createElement(s, null, "Buttons"), /* @__PURE__ */ e.createElement(s, {
668
- wrap: 500
669
- }, "Buttons always appear in the rightmost section of the List Toolbar. For the ordering of Buttons, refer to the Button Groups section on the Buttons page."))))));
559
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "The List Bar is divided into a number of different sections. It spans the entire width of the corresponding list."), /* @__PURE__ */ e.createElement(T, { kind: "link", onClick: n }, "View Content Order Example"), /* @__PURE__ */ e.createElement(oe, { isOpen: t, onClose: r }, /* @__PURE__ */ e.createElement("h1", null, "Content Order"), /* @__PURE__ */ e.createElement(
560
+ "img",
561
+ {
562
+ src: "assets/images/list-toolbar-example.svg",
563
+ alt: "A List Toolbar with labels on each section",
564
+ className: "w-100 mb-3"
565
+ }
566
+ ), /* @__PURE__ */ e.createElement(le, null, /* @__PURE__ */ e.createElement(ce, null, /* @__PURE__ */ e.createElement(A, { style: { width: "80px" } }, "Order"), /* @__PURE__ */ e.createElement(A, null, "Section"), /* @__PURE__ */ e.createElement(A, null, "Notes")), /* @__PURE__ */ e.createElement(ie, null, /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "1")), /* @__PURE__ */ e.createElement(s, null, "Checkbox"), /* @__PURE__ */ e.createElement(s, null, "For Content Rows and Content Tiles only.")), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "2")), /* @__PURE__ */ e.createElement(s, null, "Search/Filter Box"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "3")), /* @__PURE__ */ e.createElement(s, null, "Saved Search"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "4")), /* @__PURE__ */ e.createElement(s, null, "Advanced Search"), /* @__PURE__ */ e.createElement(s, null, "For more information, visit the Advanced Search page.")), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "5")), /* @__PURE__ */ e.createElement(s, null, "Column Editor"), /* @__PURE__ */ e.createElement(s, { wrap: 500 }, "Use for Tables only. For more information, visit the Column Editor page.")), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "6")), /* @__PURE__ */ e.createElement(s, null, "List View Selector"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "7")), /* @__PURE__ */ e.createElement(s, null, "Sorting"), /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement(v, null, /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement("span", { className: "sps-tag sps-tag--info" }, "8")), /* @__PURE__ */ e.createElement(s, null, "Buttons"), /* @__PURE__ */ e.createElement(s, { wrap: 500 }, "Buttons always appear in the rightmost section of the List Toolbar. For the ordering of Buttons, refer to the Button Groups section on the Buttons page."))))));
670
567
  }
671
568
  const Ue = {
672
569
  description: () => /* @__PURE__ */ e.createElement("p", null, "The List Toolbar provides the ability to interact with elements in a list or table. It can contain elements to search, filter, sort, or perform other actions."),
@@ -682,11 +579,7 @@ const Ue = {
682
579
  },
683
580
  checkbox: {
684
581
  label: "Checkbox",
685
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use a Checkbox in the List Bar when items in a", " ", /* @__PURE__ */ e.createElement(t, {
686
- to: "content-row"
687
- }, "Content Row"), " or", " ", /* @__PURE__ */ e.createElement(t, {
688
- to: "content-tile"
689
- }, "Content Tile"), " are selectable. The Checkbox selects all items in the list, and will cause the Action Bar to appear. Do not use this with a Table, as Tables have a built-in checkbox in the header row."),
582
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use a Checkbox in the List Bar when items in a", " ", /* @__PURE__ */ e.createElement(t, { to: "content-row" }, "Content Row"), " or", " ", /* @__PURE__ */ e.createElement(t, { to: "content-tile" }, "Content Tile"), " are selectable. The Checkbox selects all items in the list, and will cause the Action Bar to appear. Do not use this with a Table, as Tables have a built-in checkbox in the header row."),
690
583
  examples: {
691
584
  basic: {
692
585
  react: o`
@@ -950,9 +843,7 @@ const Ue = {
950
843
  },
951
844
  advancedSearch: {
952
845
  label: "Advanced Search",
953
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Include the Advanced Search feature when more complex options are required to narrow down search results. For more information, visit the", " ", /* @__PURE__ */ e.createElement(t, {
954
- to: "advanced-search"
955
- }, "Advanced Search"), " page."),
846
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Include the Advanced Search feature when more complex options are required to narrow down search results. For more information, visit the", " ", /* @__PURE__ */ e.createElement(t, { to: "advanced-search" }, "Advanced Search"), " page."),
956
847
  examples: {
957
848
  advancedSearch: {
958
849
  react: o`
@@ -998,9 +889,7 @@ const Ue = {
998
889
  `
999
890
  },
1000
891
  withResultsBar: {
1001
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "You can include ", /* @__PURE__ */ e.createElement(t, {
1002
- to: "search-results-bar"
1003
- }, "Search Results Bar"), "."),
892
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "You can include ", /* @__PURE__ */ e.createElement(t, { to: "search-results-bar" }, "Search Results Bar"), "."),
1004
893
  react: o`
1005
894
  import { ListBar, ListBarSearch, SearchResultsBar, AdvancedSearch } from "@sps-woodland/list-bar";
1006
895
  import { Button } from "@sps-woodland/buttons";
@@ -1188,11 +1077,7 @@ const Ue = {
1188
1077
  },
1189
1078
  columnEditor: {
1190
1079
  label: "Column Editor",
1191
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use a Column Editor when tables require the ability to show or hide specific columns based on the user's preferences. The Column Editor should only be used for", " ", /* @__PURE__ */ e.createElement(t, {
1192
- to: "tables"
1193
- }, "Tables"), ", and not any other type of list view. For more information, visit the ", /* @__PURE__ */ e.createElement(t, {
1194
- to: "column-chooser"
1195
- }, "Column Editor"), " page."),
1080
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use a Column Editor when tables require the ability to show or hide specific columns based on the user's preferences. The Column Editor should only be used for", " ", /* @__PURE__ */ e.createElement(t, { to: "tables" }, "Tables"), ", and not any other type of list view. For more information, visit the ", /* @__PURE__ */ e.createElement(t, { to: "column-chooser" }, "Column Editor"), " page."),
1196
1081
  examples: {
1197
1082
  columnEditor: {
1198
1083
  react: o`
@@ -1240,9 +1125,7 @@ const Ue = {
1240
1125
  },
1241
1126
  buttons: {
1242
1127
  label: "Buttons",
1243
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use Buttons only for actions that do not affect existing list items, such as exporting the list or creating a new list item. For actions that are taken on list items, such as changing a status of a list item, refer to the", " ", /* @__PURE__ */ e.createElement(t, {
1244
- to: "list-action-bar"
1245
- }, "List Action Bar"), "."),
1128
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use Buttons only for actions that do not affect existing list items, such as exporting the list or creating a new list item. For actions that are taken on list items, such as changing a status of a list item, refer to the", " ", /* @__PURE__ */ e.createElement(t, { to: "list-action-bar" }, "List Action Bar"), "."),
1246
1129
  examples: {
1247
1130
  buttons: {
1248
1131
  react: o`
@@ -1282,9 +1165,7 @@ const Ue = {
1282
1165
  },
1283
1166
  tabs: {
1284
1167
  label: "Tabs",
1285
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "When tabs are included, they appear above the List Toolbar. Tab rules are outlined on the ", /* @__PURE__ */ e.createElement(t, {
1286
- to: "cards"
1287
- }, "Cards"), " page."), /* @__PURE__ */ e.createElement("p", null, /* @__PURE__ */ e.createElement("code", null, "<Item>"), " comes from the ", /* @__PURE__ */ e.createElement("code", null, "@react-stately/collections"), "package, which is a peer dependency of our React components.")),
1168
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "When tabs are included, they appear above the List Toolbar. Tab rules are outlined on the ", /* @__PURE__ */ e.createElement(t, { to: "cards" }, "Cards"), " page."), /* @__PURE__ */ e.createElement("p", null, /* @__PURE__ */ e.createElement("code", null, "<Item>"), " comes from the ", /* @__PURE__ */ e.createElement("code", null, "@react-stately/collections"), "package, which is a peer dependency of our React components.")),
1288
1169
  examples: {
1289
1170
  tabs: {
1290
1171
  react: o`
@@ -1338,9 +1219,7 @@ const Ue = {
1338
1219
  },
1339
1220
  title: {
1340
1221
  label: "Title",
1341
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use Titles when there is no Search or Filter input required for the list items, such as when the only search options are in an Advanced Search panel. For more information, visit the ", /* @__PURE__ */ e.createElement(t, {
1342
- to: "advanced-search"
1343
- }, "Advanced Search"), " page."),
1222
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement("p", null, "Use Titles when there is no Search or Filter input required for the list items, such as when the only search options are in an Advanced Search panel. For more information, visit the ", /* @__PURE__ */ e.createElement(t, { to: "advanced-search" }, "Advanced Search"), " page."),
1344
1223
  examples: {
1345
1224
  title: {
1346
1225
  react: o`
@@ -1429,9 +1308,7 @@ const Ue = {
1429
1308
  examples: {
1430
1309
  basic: {
1431
1310
  label: "Basic",
1432
- description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "The SearchResultsBar should be used with List Bar and Advanced Search."), /* @__PURE__ */ e.createElement("p", null, "For more examples go to the Advanced Search section on the", " ", /* @__PURE__ */ e.createElement(t, {
1433
- to: "list-bar"
1434
- }, "List Bar"), " page.")),
1311
+ description: ({ NavigateTo: t }) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "The SearchResultsBar should be used with List Bar and Advanced Search."), /* @__PURE__ */ e.createElement("p", null, "For more examples go to the Advanced Search section on the", " ", /* @__PURE__ */ e.createElement(t, { to: "list-bar" }, "List Bar"), " page.")),
1435
1312
  examples: {
1436
1313
  basic: {
1437
1314
  react: o`
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import type { ComponentManifestEntry } from "@sps-woodland/core";
2
- export declare function ContentOrderExample(): JSX.Element;
3
+ export declare function ContentOrderExample(): React.JSX.Element;
3
4
  export declare const ListBarExamples: ComponentManifestEntry;
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- ._9h4p701{background:#ffffff;border-color:#d2d4d4;border-style:solid;border-width:.0625rem;border-radius:.25rem;display:flex;flex-flow:column wrap;margin-top:0;margin-right:0;margin-bottom:.5rem;margin-left:0;position:relative}._9h4p702{width:75rem;border-radius:0;margin-left:-37.5rem;position:fixed;top:3.75rem;left:50%;z-index:999}._9h4p702:after{content:"";background:linear-gradient(180deg,rgba(0,0,0,.1),transparent);display:block;height:.625rem;left:-.0625rem;position:absolute;top:calc(100% + 1px);width:75rem}._9h4p704{display:flex;flex-wrap:wrap;padding:.5rem}._9h4p705{display:flex;align-items:center;border-right-color:#d2d4d4;border-right-style:solid;border-right-width:.0625rem;padding:1rem;margin:-.5rem .5rem -.5rem -.5rem}._9h4p706{align-items:center;display:inline-flex;flex:1 0 auto;height:2rem;vertical-align:middle}._9h4p707{padding-top:.25rem;padding-right:0;padding-bottom:.25rem;padding-left:0;white-space:nowrap}._9h4p708{display:inline-block;position:relative}._9h4p709{margin-left:.25rem}._9h4p70a{align-items:center;display:flex;float:left;font-size:.75rem;font-weight:600;line-height:1.5rem;margin-bottom:0;padding-left:.5rem;text-transform:uppercase}._9h4p70b{display:inline-block;height:2rem;margin-left:.5rem;text-align:right;vertical-align:middle;white-space:nowrap}._9h4p70c{flex:1;margin-right:.25rem;max-width:25rem}._9h4p70e{background-color:#e9e9ea;border-color:#717779;border-width:.0625rem;border-style:solid;border-bottom-left-radius:0;border-bottom-right-radius:.25rem;border-top-left-radius:0;border-top-right-radius:.25rem;border-left-width:0}._9h4p70e:hover{background-color:#d2d4d4;border-width:.0625rem;border-style:solid;border-color:#717779;border-left-width:0}._9h4p70f>.sps-button{margin:0!important;background:transparent;border-color:transparent;color:#4b5356}._9h4p70f>.sps-button>button{padding:.25rem}._9h4p70e>button{height:1.875rem}._9h4p70a>i{font-size:.875rem;margin-right:.25rem}._9h4p70d>.sps-autocomplete{flex:1}._9h4p70d>.sps-input-group>.sps-select{min-width:30%}._9h4p70d>.sps-input-group>.sps-select:not(:last-child)>.sps-select__dropctrl{height:2rem;line-height:2rem;border-bottom-right-radius:0;border-top-right-radius:0}._9h4p70d>.sps-input-group>.sps-autocomplete:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}._9h4p70d>.sps-input-group>.sps-autocomplete:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}._9h4p70d>.sps-input-group>.sps-text-input:not(:last-child)>.sps-form-control{border-bottom-right-radius:0;border-top-right-radius:0}._9h4p70d>.sps-input-group>.sps-text-input:not(:first-child):not(:only-child)>.sps-form-control{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}._1gxdcgc1{background-color:#e9e9ea;border-width:.0625rem;border-color:#d2d4d4;border-style:solid;border-radius:.25rem;display:flex;min-height:3.25rem}._9h4p701>._1gxdcgc0>._1gxdcgc1{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.125rem;border-bottom-right-radius:.125rem;border-top-width:.0625rem;border-right-width:0;border-bottom-width:0;border-left-width:0}._1gxdcgc2{flex:1 1 auto;border-right-width:.0625rem;border-right-color:#d2d4d4;border-right-style:solid;padding:.5rem;display:flex;align-items:center}._1gxdcgc3{margin-left:.25rem}._1gxdcgc4{flex:1 1 100%;padding:.5rem;display:flex;align-items:center;flex-wrap:wrap}._1gxdcgc5{margin-top:0;margin-bottom:0;margin-right:.25rem;margin-left:.25rem}._1gxdcgc5:first-child{margin-left:0}._1gxdcgc6{margin-top:.125rem;margin-bottom:.125rem;margin-right:.25rem}._1gxdcgc6:last-child{margin-right:0}._1gxdcgc7{flex:1 1 auto;border-left-width:.0625rem;border-left-style:solid;border-left-color:#d2d4d4;display:flex;align-items:center}._1gxdcgc7:hover{background:#d2d4d4}._1gxdcgc8{padding:.5rem;width:5.25rem}.q4fj410{background:#ffffff;border-color:#d2d4d4;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;border-style:solid;border-top-width:0;border-right-width:.0625rem;border-bottom-width:.0625rem;border-left-width:.0625rem;display:none;margin-top:-.625rem;margin-right:0;margin-bottom:1rem;margin-left:0}.q4fj411{display:block}.q4fj413{padding:1rem}.q4fj414{background:#f3f4f4;border-top-left-radius:undefined;border-top-right-radius:undefined;border-bottom-left-radius:undefined;border-bottom-right-radius:undefined;display:flex;padding:.5rem}.q4fj415{text-align:right}.q4fj414>*{flex:1}
1
+ ._9h4p701{background:oklch(100% 0 0);border-color:oklch(86.84% .002 197.12);border-style:solid;border-width:.0625rem;border-radius:.25rem;display:flex;flex-flow:column wrap;margin-top:0;margin-right:0;margin-bottom:.5rem;margin-left:0;position:relative}._9h4p702{width:75rem;border-radius:0;margin-left:-37.5rem;position:fixed;top:3.75rem;left:50%;z-index:999}._9h4p702:after{content:"";background:linear-gradient(180deg,rgba(0,0,0,.1),transparent);display:block;height:.625rem;left:-.0625rem;position:absolute;top:calc(100% + 1px);width:75rem}._9h4p704{display:flex;flex-wrap:wrap;padding:.5rem}._9h4p705{display:flex;align-items:center;border-right-color:oklch(86.84% .002 197.12);border-right-style:solid;border-right-width:.0625rem;padding:1rem;margin:-.5rem .5rem -.5rem -.5rem}._9h4p706{align-items:center;display:inline-flex;flex:1 0 auto;height:2rem;vertical-align:middle}._9h4p707{padding-top:.25rem;padding-right:0;padding-bottom:.25rem;padding-left:0;white-space:nowrap}._9h4p708{display:inline-block;position:relative}._9h4p709{margin-left:.25rem}._9h4p70a{align-items:center;display:flex;float:left;font-size:.75rem;font-weight:600;line-height:1.5rem;margin-bottom:0;padding-left:.5rem;text-transform:uppercase}._9h4p70b{display:inline-block;height:2rem;margin-left:.5rem;text-align:right;vertical-align:middle;white-space:nowrap}._9h4p70c{flex:1;margin-right:.25rem;max-width:25rem}._9h4p70e{background-color:oklch(93.43% .001 286.37);border-color:oklch(56.48% .008 219.62);border-width:.0625rem;border-style:solid;border-bottom-left-radius:0;border-bottom-right-radius:.25rem;border-top-left-radius:0;border-top-right-radius:.25rem;border-left-width:0}._9h4p70e:hover{background-color:oklch(86.84% .002 197.12);border-width:.0625rem;border-style:solid;border-color:oklch(56.48% .008 219.62);border-left-width:0}._9h4p70f>.sps-button{margin:0!important;background:transparent;border-color:transparent;color:oklch(43.62% .011 222.24)}._9h4p70f>.sps-button>button{padding:.25rem}._9h4p70e>button{height:1.875rem}._9h4p70a>i{font-size:.875rem;margin-right:.25rem}._9h4p70d>.sps-autocomplete{flex:1}._9h4p70d>.sps-input-group>.sps-select{min-width:30%}._9h4p70d>.sps-input-group>.sps-select:not(:last-child)>.sps-select__dropctrl{height:2rem;line-height:2rem;border-bottom-right-radius:0;border-top-right-radius:0}._9h4p70d>.sps-input-group>.sps-autocomplete:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}._9h4p70d>.sps-input-group>.sps-autocomplete:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}._9h4p70d>.sps-input-group>.sps-text-input:not(:last-child)>.sps-form-control{border-bottom-right-radius:0;border-top-right-radius:0}._9h4p70d>.sps-input-group>.sps-text-input:not(:first-child):not(:only-child)>.sps-form-control{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}._1gxdcgc1{background-color:oklch(93.43% .001 286.37);border-width:.0625rem;border-color:oklch(86.84% .002 197.12);border-style:solid;border-radius:.25rem;display:flex;min-height:3.25rem}._9h4p701>._1gxdcgc0>._1gxdcgc1{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.125rem;border-bottom-right-radius:.125rem;border-top-width:.0625rem;border-right-width:0;border-bottom-width:0;border-left-width:0}._1gxdcgc2{flex:1 1 auto;border-right-width:.0625rem;border-right-color:oklch(86.84% .002 197.12);border-right-style:solid;padding:.5rem;display:flex;align-items:center}._1gxdcgc3{margin-left:.25rem}._1gxdcgc4{flex:1 1 100%;padding:.5rem;display:flex;align-items:center;flex-wrap:wrap}._1gxdcgc5{margin-top:0;margin-bottom:0;margin-right:.25rem;margin-left:.25rem}._1gxdcgc5:first-child{margin-left:0}._1gxdcgc6{margin-top:.125rem;margin-bottom:.125rem;margin-right:.25rem}._1gxdcgc6:last-child{margin-right:0}._1gxdcgc7{flex:1 1 auto;border-left-width:.0625rem;border-left-style:solid;border-left-color:oklch(86.84% .002 197.12);display:flex;align-items:center}._1gxdcgc7:hover{background:oklch(86.84% .002 197.12)}._1gxdcgc8{padding:.5rem;width:5.25rem}.q4fj410{background:oklch(100% 0 0);border-color:oklch(86.84% .002 197.12);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;border-style:solid;border-top-width:0;border-right-width:.0625rem;border-bottom-width:.0625rem;border-left-width:.0625rem;display:none;margin-top:-.625rem;margin-right:0;margin-bottom:1rem;margin-left:0}.q4fj411{display:block}.q4fj413{padding:1rem}.q4fj414{background:oklch(96.64% .001 197.14);border-top-left-radius:undefined;border-top-right-radius:undefined;border-bottom-left-radius:undefined;border-bottom-right-radius:undefined;display:flex;padding:.5rem}.q4fj415{text-align:right}.q4fj414>*{flex:1}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sps-woodland/list-bar",
3
3
  "description": "SPS Woodland Design System list bar components",
4
- "version": "8.2.2",
4
+ "version": "8.3.0",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/list-bar",
@@ -29,12 +29,12 @@
29
29
  "@spscommerce/utils": "^6.12.1",
30
30
  "react": "^16.9.0",
31
31
  "react-dom": "^16.9.0",
32
- "@sps-woodland/core": "8.2.2",
33
- "@sps-woodland/tokens": "8.2.2",
34
- "@sps-woodland/tabs": "8.2.2",
35
- "@sps-woodland/buttons": "8.2.2",
36
- "@sps-woodland/tags": "8.2.2",
37
- "@spscommerce/ds-react": "8.2.2"
32
+ "@sps-woodland/core": "8.3.0",
33
+ "@sps-woodland/tokens": "8.3.0",
34
+ "@sps-woodland/tabs": "8.3.0",
35
+ "@sps-woodland/buttons": "8.3.0",
36
+ "@sps-woodland/tags": "8.3.0",
37
+ "@spscommerce/ds-react": "8.3.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@react-stately/collections": "^3.3.3",
@@ -43,13 +43,13 @@
43
43
  "@vanilla-extract/recipes": "^0.2.5",
44
44
  "react": "^16.9.0",
45
45
  "react-dom": "^16.9.0",
46
- "@sps-woodland/core": "8.2.2",
47
- "@sps-woodland/tokens": "8.2.2",
48
- "@sps-woodland/tabs": "8.2.2",
49
- "@sps-woodland/buttons": "8.2.2",
50
- "@sps-woodland/tags": "8.2.2",
51
- "@spscommerce/ds-react": "8.2.2",
52
- "@spscommerce/ds-shared": "8.2.2"
46
+ "@sps-woodland/core": "8.3.0",
47
+ "@sps-woodland/tokens": "8.3.0",
48
+ "@sps-woodland/tabs": "8.3.0",
49
+ "@sps-woodland/buttons": "8.3.0",
50
+ "@sps-woodland/tags": "8.3.0",
51
+ "@spscommerce/ds-react": "8.3.0",
52
+ "@spscommerce/ds-shared": "8.3.0"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "pnpm run build:js && pnpm run build:types",