@sps-woodland/core 8.53.11 → 8.53.13
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/action-bar/action-bar/ActionBar.ve.js +8 -8
- package/lib/action-bar/index.js +30 -30
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.ve.js +19 -19
- package/lib/add-to-list/index.js +183 -183
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.ve.js +4 -4
- package/lib/buttons/index.js +48 -48
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +2 -2
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +2 -2
- package/lib/cards/index.js +21 -21
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/components/reorder-wrapper/ReorderWrapper.d.ts +2 -2
- package/lib/components/reorder-wrapper/ReorderWrapper.d.ts.map +1 -1
- package/lib/components/title/Title.d.ts +1 -1
- package/lib/components/title/Title.d.ts.map +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +13 -13
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +2 -2
- package/lib/content-row/content-row-expansion/ContentRowExpansion.d.ts +1 -1
- package/lib/content-row/content-row-expansion/ContentRowExpansion.d.ts.map +1 -1
- package/lib/content-row/index.js +159 -165
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +10 -16
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +2 -2
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +7 -7
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +3 -3
- package/lib/content-tiles/index.js +59 -59
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +1 -1
- package/lib/core.css +1 -1
- package/lib/dropdowns/dropdown/Dropdown.d.ts +1 -1
- package/lib/dropdowns/dropdown/Dropdown.d.ts.map +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +3 -3
- package/lib/dropdowns/index.js +84 -84
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.d.ts +1 -1
- package/lib/dropdowns/option-list/Option.d.ts.map +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.d.ts +1 -1
- package/lib/dropdowns/option-list/OptionList.d.ts.map +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +1 -1
- package/lib/editable-table/style.css +50 -17
- package/lib/examples.d.ts.map +1 -1
- package/lib/feedback-block/FeedbackBlock.ve.js +3 -3
- package/lib/feedback-block/index.js +54 -54
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.d.ts +1 -1
- package/lib/file-upload/file-upload/FileUpload.d.ts.map +1 -1
- package/lib/file-upload/file-upload/FileUpload.js +46 -41
- package/lib/file-upload/file-upload/FileUpload.ve.js +14 -14
- package/lib/file-upload/index.js +115 -110
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +5 -5
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.d.ts.map +1 -1
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +2 -2
- package/lib/filter-tiles/index.js +55 -55
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +1 -1
- package/lib/focused-task/focused-task/FocusedTask.ve.js +9 -9
- package/lib/focused-task/index.js +49 -49
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.d.ts.map +1 -1
- package/lib/growler/Growler.ve.js +7 -7
- package/lib/growler/Sonner.ve.js +7 -7
- package/lib/growler/index.js +95 -101
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/sonner.js +21 -27
- package/lib/growler/style.css +1 -1
- package/lib/index.js +166 -167
- package/lib/index.umd.cjs +2 -2
- package/lib/insight-card/InsightCard.ve.js +7 -7
- package/lib/insight-card/index.js +59 -59
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +53 -53
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +2 -2
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +3 -3
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.css.d.ts +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.css.d.ts.map +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +5 -5
- package/lib/list-bar/index.js +88 -88
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.d.ts +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.d.ts.map +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +12 -12
- package/lib/list-bar/list-bar/ListBarSearch.d.ts +1 -1
- package/lib/list-bar/list-bar/ListBarSearch.d.ts.map +1 -1
- package/lib/list-bar/list-bar/ListBarSearchInfo.d.ts +1 -1
- package/lib/list-bar/list-bar/ListBarSearchInfo.d.ts.map +1 -1
- package/lib/list-bar/list-bar/ListBarSortBy.d.ts +2 -2
- package/lib/list-bar/list-bar/ListBarSortBy.d.ts.map +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts +2 -4
- package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts.map +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +8 -8
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +29 -29
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +2 -2
- package/lib/matrix/matrix-body/MatrixBody.d.ts +1 -1
- package/lib/matrix/matrix-body/MatrixBody.d.ts.map +1 -1
- package/lib/matrix/matrix-head/MatrixHead.d.ts +1 -1
- package/lib/matrix/matrix-head/MatrixHead.d.ts.map +1 -1
- package/lib/matrix/matrix-row/MatrixRow.d.ts +1 -1
- package/lib/matrix/matrix-row/MatrixRow.d.ts.map +1 -1
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +86 -86
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +9 -9
- package/lib/modal/style.css +1 -1
- package/lib/page-title/index.js +17 -17
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +3 -3
- package/lib/page-title/page-title/PageTitle.ve.js +4 -4
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +67 -67
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.d.ts +2 -2
- package/lib/photo/photo/Photo.d.ts.map +1 -1
- package/lib/photo/photo/Photo.js +11 -11
- package/lib/photo/photo/Photo.ve.js +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts.map +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
- package/lib/photo/style.css +1 -1
- package/lib/product-bar/index.js +91 -93
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +10 -10
- package/lib/product-bar/product-bar-name/ProductBarName.d.ts.map +1 -1
- package/lib/product-bar/product-bar-name/ProductBarName.js +13 -15
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +5 -5
- package/lib/product-bar/slack-link/SlackLink.ve.js +2 -2
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +69 -69
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +20 -20
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.d.ts +1 -1
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.d.ts.map +1 -1
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +79 -79
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.css.d.ts +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.css.d.ts.map +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.d.ts +2 -2
- package/lib/progress-indicators/progress-bar/ProgressBar.d.ts.map +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.js +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +10 -10
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.d.ts +3 -3
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.d.ts.map +1 -1
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +4 -4
- package/lib/progress-indicators/progress-ring/ProgressRing.d.ts +2 -2
- package/lib/progress-indicators/progress-ring/ProgressRing.d.ts.map +1 -1
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +86 -86
- package/lib/rich-text-editor/index.umd.cjs +2 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +1 -1
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +2 -2
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +5 -5
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +8 -8
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +78 -78
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +12 -12
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +2 -2
- package/lib/sorting-header/index.js +125 -125
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +3 -3
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +2 -2
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +100 -100
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +2 -2
- package/lib/tabs/tabs/Tabs.ve.js +5 -5
- package/lib/tags/clickable-tag/ClickableTag.ve.js +4 -4
- package/lib/tags/index.js +80 -80
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +2 -2
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +3 -3
- package/lib/utils/VariantDefinitions.d.ts +1 -3
- package/lib/utils/VariantDefinitions.d.ts.map +1 -1
- package/lib/utils/combineEventHandlers.d.ts.map +1 -1
- package/lib/utils/getScrollParent.d.ts.map +1 -1
- package/lib/utils/modChildren.d.ts.map +1 -1
- package/lib/zero-state/ZeroState.ve.js +6 -6
- package/lib/zero-state/index.js +42 -42
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +11 -11
- package/scripts/watch-all.mjs +1 -1
package/lib/list-bar/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { Metadata as
|
|
3
|
-
import { Button as
|
|
2
|
+
import { Metadata as f, modChildren as J, cl as B, selectChildren as Q, addProps as U, PortalContext as X, contentOf as Z } from "@sps-woodland/core";
|
|
3
|
+
import { Button as b } from "@sps-woodland/core/button";
|
|
4
4
|
import { Tag as N } from "@sps-woodland/core/tag";
|
|
5
5
|
import { lockToAnimationFrames as $ } from "@spscommerce/utils";
|
|
6
6
|
import { SpsInputGroup as ee, SpsCheckbox as ae, SpsDropdown as te, SpsForm as re } from "@spscommerce/ds-react";
|
|
7
7
|
import { useWoodlandLanguage as z } from "@spscommerce/i18n";
|
|
8
8
|
import { sprinkles as se } from "@sps-woodland/tokens";
|
|
9
|
-
var ne = "pkg_sps-
|
|
9
|
+
var ne = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h0", _e = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h1", oe = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h2", le = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h3", ie = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h4", ce = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h5", de = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h6", pe = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h7", me = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h8";
|
|
10
10
|
function A({
|
|
11
11
|
results: a,
|
|
12
12
|
selections: r,
|
|
13
13
|
zeroStateText: t,
|
|
14
14
|
onClear: s,
|
|
15
15
|
className: n,
|
|
16
|
-
children:
|
|
17
|
-
...
|
|
16
|
+
children: l,
|
|
17
|
+
...i
|
|
18
18
|
}) {
|
|
19
|
-
const { t:
|
|
20
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
19
|
+
const { t: _ } = z(), p = r ? Object.keys(r).reduce((c, d) => (r[d].length > 0 && (c[d] = r[d]), c), {}) : {};
|
|
20
|
+
return /* @__PURE__ */ e.createElement("div", { className: _e, ...i }, a != null && /* @__PURE__ */ e.createElement("div", { className: oe }, /* @__PURE__ */ e.createElement("span", null, _("searchResultsBar.results", { defaultValue: "Results:" })), /* @__PURE__ */ e.createElement(N, { className: le, kind: "info" }, /* @__PURE__ */ e.createElement("span", null, a))), /* @__PURE__ */ e.createElement("div", { className: ie }, Object.keys(p).length > 0 ? Object.keys(p).map((c, d) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { key: d, className: ce }, c, ":"), p[c].map((h, v) => /* @__PURE__ */ e.createElement(N, { className: de, key: v, kind: "key" }, /* @__PURE__ */ e.createElement("span", null, h))))) : /* @__PURE__ */ e.createElement("span", { className: "font-italic" }, t || _("searchResultsBar.noAdvancedSearchSelections", { defaultValue: "No Advanced Search Selections" }))), /* @__PURE__ */ e.createElement("div", { className: pe }, /* @__PURE__ */ e.createElement(b, { className: me, kind: "link", onClick: s }, _("searchResultsBar.clearResults", { defaultValue: "Clear Results" }))));
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
f.set(A, {
|
|
23
23
|
name: "Search Results Bar",
|
|
24
24
|
props: {
|
|
25
25
|
results: { type: "number | string | null" },
|
|
@@ -28,7 +28,7 @@ h.set(A, {
|
|
|
28
28
|
onClear: { type: "() => void" }
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
function
|
|
31
|
+
function ue(a, r, t) {
|
|
32
32
|
return r in a ? Object.defineProperty(a, r, {
|
|
33
33
|
value: t,
|
|
34
34
|
enumerable: !0,
|
|
@@ -50,14 +50,14 @@ function L(a) {
|
|
|
50
50
|
for (var r = 1; r < arguments.length; r++) {
|
|
51
51
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
52
52
|
r % 2 ? P(Object(t), !0).forEach(function(s) {
|
|
53
|
-
|
|
53
|
+
ue(a, s, t[s]);
|
|
54
54
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : P(Object(t)).forEach(function(s) {
|
|
55
55
|
Object.defineProperty(a, s, Object.getOwnPropertyDescriptor(t, s));
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var fe = (a, r, t) => {
|
|
61
61
|
for (var s of Object.keys(a)) {
|
|
62
62
|
var n;
|
|
63
63
|
if (a[s] !== ((n = r[s]) !== null && n !== void 0 ? n : t[s]))
|
|
@@ -67,27 +67,27 @@ var he = (a, r, t) => {
|
|
|
67
67
|
}, R = (a) => (r) => {
|
|
68
68
|
var t = a.defaultClassName, s = L(L({}, a.defaultVariants), r);
|
|
69
69
|
for (var n in s) {
|
|
70
|
-
var
|
|
71
|
-
if (
|
|
72
|
-
var
|
|
73
|
-
typeof
|
|
70
|
+
var l, i = (l = s[n]) !== null && l !== void 0 ? l : a.defaultVariants[n];
|
|
71
|
+
if (i != null) {
|
|
72
|
+
var _ = i;
|
|
73
|
+
typeof _ == "boolean" && (_ = _ === !0 ? "true" : "false");
|
|
74
74
|
var p = (
|
|
75
75
|
// @ts-expect-error
|
|
76
|
-
a.variantClassNames[n][
|
|
76
|
+
a.variantClassNames[n][_]
|
|
77
77
|
);
|
|
78
78
|
p && (t += " " + p);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
for (var [
|
|
82
|
-
|
|
81
|
+
for (var [c, d] of a.compoundVariants)
|
|
82
|
+
fe(c, s, a.defaultVariants) && (t += " " + d);
|
|
83
83
|
return t;
|
|
84
|
-
},
|
|
84
|
+
}, he = R({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv1", variantClassNames: { pinned: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv2", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv3" } }, defaultVariants: { pinned: !1 }, compoundVariants: [] }), ve = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv4", ye = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv5", ge = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv6", be = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv7", we = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv8", Se = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv9", Ee = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwva", j = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvb", ke = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvc", Be = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd", Ne = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwve", ze = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvf";
|
|
85
85
|
function Re({
|
|
86
86
|
children: a
|
|
87
87
|
}) {
|
|
88
88
|
const r = J(
|
|
89
89
|
a,
|
|
90
|
-
(t) => t.type ===
|
|
90
|
+
(t) => t.type === b ? [
|
|
91
91
|
{
|
|
92
92
|
className: B(t.props.className, Ne)
|
|
93
93
|
}
|
|
@@ -104,7 +104,7 @@ function I({
|
|
|
104
104
|
}
|
|
105
105
|
return /* @__PURE__ */ e.createElement("form", { onSubmit: t, className: ke, noValidate: !0 }, /* @__PURE__ */ e.createElement(ee, { className: Be }, /* @__PURE__ */ e.createElement(Re, null, r)));
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
f.set(I, {
|
|
108
108
|
name: "ListBarSearch",
|
|
109
109
|
props: {
|
|
110
110
|
onSubmit: { type: "FormEventHandler" }
|
|
@@ -115,7 +115,7 @@ function x({
|
|
|
115
115
|
}) {
|
|
116
116
|
return /* @__PURE__ */ e.createElement("div", null, a);
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
f.set(x, {
|
|
119
119
|
name: "ListBarSearchInfo"
|
|
120
120
|
});
|
|
121
121
|
function Ce({
|
|
@@ -124,91 +124,91 @@ function Ce({
|
|
|
124
124
|
title: t,
|
|
125
125
|
onToolbarPinned: s,
|
|
126
126
|
selectable: n,
|
|
127
|
-
isSelected:
|
|
128
|
-
isIndeterminate:
|
|
129
|
-
disableSelection:
|
|
127
|
+
isSelected: l,
|
|
128
|
+
isIndeterminate: i,
|
|
129
|
+
disableSelection: _ = !1,
|
|
130
130
|
onSelectionChange: p,
|
|
131
|
-
pinResultsBar:
|
|
131
|
+
pinResultsBar: c,
|
|
132
132
|
pinToolbar: d = !0,
|
|
133
|
-
advancedSearchToggleText:
|
|
134
|
-
children:
|
|
135
|
-
className:
|
|
136
|
-
...
|
|
133
|
+
advancedSearchToggleText: h,
|
|
134
|
+
children: v,
|
|
135
|
+
className: w,
|
|
136
|
+
...S
|
|
137
137
|
}) {
|
|
138
138
|
const { t: M } = z();
|
|
139
|
-
let
|
|
140
|
-
const [
|
|
141
|
-
if (
|
|
142
|
-
const
|
|
143
|
-
if (!
|
|
139
|
+
let E = null;
|
|
140
|
+
const [m, C] = e.useState(!1), y = e.useRef(null), u = e.useRef(null), { "data-testid": O } = S, k = $(() => {
|
|
141
|
+
if (y.current && d) {
|
|
142
|
+
const o = y.current.getBoundingClientRect();
|
|
143
|
+
if (!o)
|
|
144
144
|
return;
|
|
145
|
-
const Y = Math.round(
|
|
146
|
-
Y > 0 && K <= 60 && (typeof
|
|
145
|
+
const Y = Math.round(o.height), K = Math.round(o.top), q = Math.round(window.scrollY);
|
|
146
|
+
Y > 0 && K <= 60 && (typeof E == "number" ? q <= E && (E = null, C(!1)) : (E = Math.round(window.scrollY), C(!0), r && r(!1)));
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
e.useEffect(() => (window.addEventListener("scroll", k), window.addEventListener("resize", k), () => {
|
|
150
150
|
window.removeEventListener("scroll", k), window.removeEventListener("resize", k);
|
|
151
151
|
}), []);
|
|
152
|
-
const
|
|
152
|
+
const g = e.useRef();
|
|
153
153
|
e.useLayoutEffect(() => {
|
|
154
|
-
if (
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
else if (!
|
|
158
|
-
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
height:
|
|
162
|
-
width:
|
|
163
|
-
marginBottom:
|
|
154
|
+
if (u.current && y.current && d) {
|
|
155
|
+
if (m && g.current)
|
|
156
|
+
u.current.style.height = g.current.height, u.current.style.width = g.current.width, u.current.style.marginBottom = g.current.marginBottom;
|
|
157
|
+
else if (!m) {
|
|
158
|
+
u.current.style.height = "", u.current.style.width = "", u.current.style.marginBottom = "";
|
|
159
|
+
const o = window.getComputedStyle(y.current);
|
|
160
|
+
g.current = {
|
|
161
|
+
height: o.height,
|
|
162
|
+
width: o.width,
|
|
163
|
+
marginBottom: o.marginBottom
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
}, [
|
|
167
|
+
}, [m]);
|
|
168
168
|
function D() {
|
|
169
169
|
r && r(!a?.isOpen);
|
|
170
170
|
}
|
|
171
|
-
function G(
|
|
172
|
-
s && s(
|
|
171
|
+
function G(o) {
|
|
172
|
+
s && s(o);
|
|
173
173
|
}
|
|
174
174
|
e.useEffect(() => {
|
|
175
|
-
G(
|
|
176
|
-
}, [
|
|
175
|
+
G(m);
|
|
176
|
+
}, [m]);
|
|
177
177
|
const [
|
|
178
178
|
F,
|
|
179
179
|
W,
|
|
180
180
|
H,
|
|
181
181
|
[T],
|
|
182
182
|
V
|
|
183
|
-
] = Q(
|
|
183
|
+
] = Q(v, [
|
|
184
184
|
{ type: I },
|
|
185
185
|
{ type: x },
|
|
186
186
|
{ type: A },
|
|
187
187
|
{
|
|
188
|
-
custom: (
|
|
188
|
+
custom: (o) => f.isWoodlandComponent(o) && f.get(o).name === "Tabs"
|
|
189
189
|
}
|
|
190
190
|
]);
|
|
191
|
-
return /* @__PURE__ */ e.createElement("div", { className: B(
|
|
191
|
+
return /* @__PURE__ */ e.createElement("div", { className: B(w), ref: u, ...S }, /* @__PURE__ */ e.createElement("div", { className: he({ pinned: m }), ref: y }, T ? U(T, { context: "container" }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: ve }, !!n && /* @__PURE__ */ e.createElement("div", { className: ye }, /* @__PURE__ */ e.createElement(
|
|
192
192
|
ae,
|
|
193
193
|
{
|
|
194
|
-
checked:
|
|
195
|
-
disabled:
|
|
196
|
-
indeterminate:
|
|
194
|
+
checked: l,
|
|
195
|
+
disabled: _,
|
|
196
|
+
indeterminate: i,
|
|
197
197
|
onChange: () => {
|
|
198
|
-
p?.(!
|
|
198
|
+
p?.(!l);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
201
|
+
)), /* @__PURE__ */ e.createElement("div", { className: ge }, !t && F, !t && W, F.length > 0 && a && /* @__PURE__ */ e.createElement(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
|
-
className:
|
|
204
|
+
className: be,
|
|
205
205
|
"data-testid": `${O}__advanced-search`
|
|
206
206
|
},
|
|
207
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
208
|
-
(a.enteredFields || 0) > 0 && /* @__PURE__ */ e.createElement(N, { className:
|
|
209
|
-
), t && /* @__PURE__ */ e.createElement("div", { className:
|
|
207
|
+
/* @__PURE__ */ e.createElement("div", { className: we }, /* @__PURE__ */ e.createElement(b, { kind: "link", onClick: D }, h ?? M("listToolbar.advancedSearchToggle", { defaultValue: "Advanced Search" }))),
|
|
208
|
+
(a.enteredFields || 0) > 0 && /* @__PURE__ */ e.createElement(N, { className: Se, kind: "info", "data-testid": `${O}__entered-fields` }, /* @__PURE__ */ e.createElement("span", null, a.enteredFields))
|
|
209
|
+
), t && /* @__PURE__ */ e.createElement("div", { className: Ee }, t)), m ? /* @__PURE__ */ e.createElement("div", { className: j }, /* @__PURE__ */ e.createElement(X.Provider, { value: { fixed: !0 } }, V)) : /* @__PURE__ */ e.createElement("div", { className: j }, V)), /* @__PURE__ */ e.createElement("div", { className: ne }, (!m || c) && H))));
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
f.set(Ce, {
|
|
212
212
|
name: "ListBar",
|
|
213
213
|
props: {
|
|
214
214
|
activeTab: { type: "Tab" },
|
|
@@ -232,12 +232,12 @@ function Oe({
|
|
|
232
232
|
onSortChange: t,
|
|
233
233
|
defaultOption: s,
|
|
234
234
|
className: n,
|
|
235
|
-
...
|
|
235
|
+
...l
|
|
236
236
|
}) {
|
|
237
|
-
const
|
|
238
|
-
{ label:
|
|
237
|
+
const i = (a || []).map((_) => [
|
|
238
|
+
{ label: _.label, icon: _.icon },
|
|
239
239
|
() => {
|
|
240
|
-
t && t(
|
|
240
|
+
t && t(_);
|
|
241
241
|
}
|
|
242
242
|
]);
|
|
243
243
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -246,11 +246,11 @@ function Oe({
|
|
|
246
246
|
className: B(n, ze),
|
|
247
247
|
icon: r?.icon || s?.icon,
|
|
248
248
|
label: r?.label || s?.label,
|
|
249
|
-
options:
|
|
249
|
+
options: i
|
|
250
250
|
}
|
|
251
251
|
);
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
f.set(Oe, {
|
|
254
254
|
name: "ListBarSortBy",
|
|
255
255
|
props: {
|
|
256
256
|
options: { type: "SortOption[]" },
|
|
@@ -259,39 +259,39 @@ h.set(Oe, {
|
|
|
259
259
|
defaultOption: { type: "SortOption" }
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
var Fe = R({ defaultClassName: "pkg_sps-
|
|
262
|
+
var Fe = R({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc0", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc1", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc2" }, compact: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc3", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc4" } }, defaultVariants: { open: !1, compact: !1 }, compoundVariants: [] }), Te = R({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc5", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc6", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc7" } }, defaultVariants: { open: !0 }, compoundVariants: [] }), Ve = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc8", Pe = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc9";
|
|
263
263
|
function Le({
|
|
264
264
|
formArray: a,
|
|
265
265
|
formGroup: r,
|
|
266
266
|
formMeta: t,
|
|
267
267
|
onSubmit: s,
|
|
268
268
|
controlsDisabled: n,
|
|
269
|
-
footerLinks:
|
|
270
|
-
isOpen:
|
|
271
|
-
onClear:
|
|
269
|
+
footerLinks: l,
|
|
270
|
+
isOpen: i,
|
|
271
|
+
onClear: _,
|
|
272
272
|
submitButtonText: p,
|
|
273
|
-
compact:
|
|
273
|
+
compact: c,
|
|
274
274
|
className: d,
|
|
275
|
-
children:
|
|
276
|
-
...
|
|
275
|
+
children: h,
|
|
276
|
+
...v
|
|
277
277
|
}) {
|
|
278
|
-
const { t:
|
|
279
|
-
function
|
|
280
|
-
|
|
278
|
+
const { t: w } = z();
|
|
279
|
+
function S() {
|
|
280
|
+
_ && _();
|
|
281
281
|
}
|
|
282
|
-
return /* @__PURE__ */ e.createElement("div", { className: B(Fe({ open:
|
|
283
|
-
|
|
282
|
+
return /* @__PURE__ */ e.createElement("div", { className: B(Fe({ open: i, compact: c })), ...v }, /* @__PURE__ */ e.createElement(re, { onSubmit: s, formArray: a, formGroup: r, formMeta: t }, /* @__PURE__ */ e.createElement("div", { className: Te({ open: i }) }, h), /* @__PURE__ */ e.createElement("div", { className: Ve }, l && /* @__PURE__ */ e.createElement("div", { id: "footer_links" }, Z(l)), /* @__PURE__ */ e.createElement("div", { className: Pe }, /* @__PURE__ */ e.createElement(
|
|
283
|
+
b,
|
|
284
284
|
{
|
|
285
285
|
kind: "default",
|
|
286
286
|
type: "button",
|
|
287
287
|
className: se({ mr: "sm" }),
|
|
288
|
-
onClick:
|
|
288
|
+
onClick: S,
|
|
289
289
|
disabled: n
|
|
290
290
|
},
|
|
291
|
-
|
|
292
|
-
), /* @__PURE__ */ e.createElement(
|
|
291
|
+
w("advancedSearch.clear", { defaultValue: "Clear Fields" })
|
|
292
|
+
), /* @__PURE__ */ e.createElement(b, { kind: "key", type: "submit", disabled: n }, p ?? w("advancedSearch.search", { defaultValue: "Search" }))))));
|
|
293
293
|
}
|
|
294
|
-
|
|
294
|
+
f.set(Le, {
|
|
295
295
|
name: "Advanced Search",
|
|
296
296
|
props: {
|
|
297
297
|
formArray: { type: "SpsFormArray<any>" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(n,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/core/button"),require("@sps-woodland/core/tag"),require("@spscommerce/utils"),require("@spscommerce/ds-react"),require("@spscommerce/i18n"),require("@sps-woodland/tokens")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/core/button","@sps-woodland/core/tag","@spscommerce/utils","@spscommerce/ds-react","@spscommerce/i18n","@sps-woodland/tokens"],f):(n=typeof globalThis<"u"?globalThis:n||self,f(n.ListBar={},n.react,n.spsWoodlandCore,n.spsWoodlandCoreButton,n.spsWoodlandCoreTag,n.spscommerceUtils,n.spscommerceDsReact,n.spscommerceI18n,n.spsWoodlandTokens))})(this,(function(n,f,o,g,z,x,E,C,K){"use strict";function U(a){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>a[t]})}}return r.default=a,Object.freeze(r)}const e=U(f);var J="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h0",Q="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h1",X="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h2",Z="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h3",$="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h4",ee="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h5",ae="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h6",te="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h7",re="pkg_sps-woodland_core__version_8_53_11__hash_1o1g57h8";function R({results:a,selections:r,zeroStateText:t,onClear:s,className:l,children:d,...i}){const{t:_}=C.useWoodlandLanguage(),m=r?Object.keys(r).reduce((p,u)=>(r[u].length>0&&(p[u]=r[u]),p),{}):{};return e.createElement("div",{className:Q,...i},a!=null&&e.createElement("div",{className:X},e.createElement("span",null,_("searchResultsBar.results",{defaultValue:"Results:"})),e.createElement(z.Tag,{className:Z,kind:"info"},e.createElement("span",null,a))),e.createElement("div",{className:$},Object.keys(m).length>0?Object.keys(m).map((p,u)=>e.createElement(e.Fragment,null,e.createElement("span",{key:u,className:ee},p,":"),m[p].map((w,y)=>e.createElement(z.Tag,{className:ae,key:y,kind:"key"},e.createElement("span",null,w))))):e.createElement("span",{className:"font-italic"},t||_("searchResultsBar.noAdvancedSearchSelections",{defaultValue:"No Advanced Search Selections"}))),e.createElement("div",{className:te},e.createElement(g.Button,{className:re,kind:"link",onClick:s},_("searchResultsBar.clearResults",{defaultValue:"Clear Results"}))))}o.Metadata.set(R,{name:"Search Results Bar",props:{results:{type:"number | string | null"},selections:{type:"{ [key: string]: string[] }"},zeroStateText:{type:"string"},onClear:{type:"() => void"}}});function se(a,r,t){return r in a?Object.defineProperty(a,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[r]=t,a}function P(a,r){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);r&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),t.push.apply(t,s)}return t}function j(a){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?P(Object(t),!0).forEach(function(s){se(a,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(t,s))})}return a}var ne=(a,r,t)=>{for(var s of Object.keys(a)){var l;if(a[s]!==((l=r[s])!==null&&l!==void 0?l:t[s]))return!1}return!0},T=a=>r=>{var t=a.defaultClassName,s=j(j({},a.defaultVariants),r);for(var l in s){var d,i=(d=s[l])!==null&&d!==void 0?d:a.defaultVariants[l];if(i!=null){var _=i;typeof _=="boolean"&&(_=_===!0?"true":"false");var m=a.variantClassNames[l][_];m&&(t+=" "+m)}}for(var[p,u]of a.compoundVariants)ne(p,s,a.defaultVariants)&&(t+=" "+u);return t},oe=T({defaultClassName:"pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv1",variantClassNames:{pinned:{true:"pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv2",false:"pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv3"}},defaultVariants:{pinned:!1},compoundVariants:[]}),le="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv4",_e="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv5",ce="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv6",de="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv7",ie="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv8",pe="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwv9",ue="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwva",V="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwvb",me="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwvc",he="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwvd",ve="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwve",fe="pkg_sps-woodland_core__version_8_53_11__hash_uzzgwvf";function M({children:a}){const r=o.modChildren(a,t=>t.type===g.Button?[{className:o.cl(t.props.className,ve)}]:[]);return e.createElement(e.Fragment,null,r)}function F({onSubmit:a,children:r}){function t(s){s.preventDefault(),a&&a(s)}return e.createElement("form",{onSubmit:t,className:me,noValidate:!0},e.createElement(E.SpsInputGroup,{className:he},e.createElement(M,null,r)))}o.Metadata.set(F,{name:"ListBarSearch",props:{onSubmit:{type:"FormEventHandler"}}});function L({children:a}){return e.createElement("div",null,a)}o.Metadata.set(L,{name:"ListBarSearchInfo"});function A({advancedSearch:a,onToggleAdvancedSearch:r,title:t,onToolbarPinned:s,selectable:l,isSelected:d,isIndeterminate:i,disableSelection:_=!1,onSelectionChange:m,pinResultsBar:p,pinToolbar:u=!0,advancedSearchToggleText:w,children:y,className:k,...b}){const{t:Be}=C.useWoodlandLanguage();let N=null;const[h,D]=e.useState(!1),S=e.useRef(null),v=e.useRef(null),{"data-testid":q}=b,O=x.lockToAnimationFrames(()=>{if(S.current&&u){const c=S.current.getBoundingClientRect();if(!c)return;const Oe=Math.round(c.height),ze=Math.round(c.top),Ce=Math.round(window.scrollY);Oe>0&&ze<=60&&(typeof N=="number"?Ce<=N&&(N=null,D(!1)):(N=Math.round(window.scrollY),D(!0),r&&r(!1)))}});e.useEffect(()=>(window.addEventListener("scroll",O),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",O)}),[]);const B=e.useRef();e.useLayoutEffect(()=>{if(v.current&&S.current&&u){if(h&&B.current)v.current.style.height=B.current.height,v.current.style.width=B.current.width,v.current.style.marginBottom=B.current.marginBottom;else if(!h){v.current.style.height="",v.current.style.width="",v.current.style.marginBottom="";const c=window.getComputedStyle(S.current);B.current={height:c.height,width:c.width,marginBottom:c.marginBottom}}}},[h]);function Ee(){r&&r(!a?.isOpen)}function ke(c){s&&s(c)}e.useEffect(()=>{ke(h)},[h]);const[G,be,Ne,[H],Y]=o.selectChildren(y,[{type:F},{type:L},{type:R},{custom:c=>o.Metadata.isWoodlandComponent(c)&&o.Metadata.get(c).name==="Tabs"}]);return e.createElement("div",{className:o.cl(k),ref:v,...b},e.createElement("div",{className:oe({pinned:h}),ref:S},H?o.addProps(H,{context:"container"}):e.createElement(e.Fragment,null,e.createElement("div",{className:le},!!l&&e.createElement("div",{className:_e},e.createElement(E.SpsCheckbox,{checked:d,disabled:_,indeterminate:i,onChange:()=>{m?.(!d)}})),e.createElement("div",{className:ce},!t&&G,!t&&be,G.length>0&&a&&e.createElement("div",{className:de,"data-testid":`${q}__advanced-search`},e.createElement("div",{className:ie},e.createElement(g.Button,{kind:"link",onClick:Ee},w??Be("listToolbar.advancedSearchToggle",{defaultValue:"Advanced Search"}))),(a.enteredFields||0)>0&&e.createElement(z.Tag,{className:pe,kind:"info","data-testid":`${q}__entered-fields`},e.createElement("span",null,a.enteredFields))),t&&e.createElement("div",{className:ue},t)),h?e.createElement("div",{className:V},e.createElement(o.PortalContext.Provider,{value:{fixed:!0}},Y)):e.createElement("div",{className:V},Y)),e.createElement("div",{className:J},(!h||p)&&Ne))))}o.Metadata.set(A,{name:"ListBar",props:{activeTab:{type:"Tab"},advancedSearch:{type:"{ isOpen: boolean, enteredFields: number }"},onToggleAdvancedSearch:{type:"(boolean) => void"},title:{type:"string"},onToolbarPinned:{type:"(boolean) => void"},selectable:{type:"boolean"},disableSelection:{type:"boolean",default:"false"},isSelected:{type:"boolean"},isIndeterminate:{type:"boolean"},onSelectionChange:{type:"(boolean) => void"},pinResultsBar:{type:"boolean"},pinToolbar:{type:"boolean",default:"true"},advancedSearchToggleText:{type:"string"}}});function I({options:a,activeOption:r,onSortChange:t,defaultOption:s,className:l,...d}){const i=(a||[]).map(_=>[{label:_.label,icon:_.icon},()=>{t&&t(_)}]);return e.createElement(E.SpsDropdown,{className:o.cl(l,fe),icon:r?.icon||s?.icon,label:r?.label||s?.label,options:i})}o.Metadata.set(I,{name:"ListBarSortBy",props:{options:{type:"SortOption[]"},activeOption:{type:"SortOption"},onSortChange:{type:"(option: SortOption) => void"},defaultOption:{type:"SortOption"}}});var ge=T({defaultClassName:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc0",variantClassNames:{open:{true:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc1",false:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc2"},compact:{true:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc3",false:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc4"}},defaultVariants:{open:!1,compact:!1},compoundVariants:[]}),we=T({defaultClassName:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc5",variantClassNames:{open:{true:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc6",false:"pkg_sps-woodland_core__version_8_53_11__hash_am9pfc7"}},defaultVariants:{open:!0},compoundVariants:[]}),ye="pkg_sps-woodland_core__version_8_53_11__hash_am9pfc8",Se="pkg_sps-woodland_core__version_8_53_11__hash_am9pfc9";function W({formArray:a,formGroup:r,formMeta:t,onSubmit:s,controlsDisabled:l,footerLinks:d,isOpen:i,onClear:_,submitButtonText:m,compact:p,className:u,children:w,...y}){const{t:k}=C.useWoodlandLanguage();function b(){_&&_()}return e.createElement("div",{className:o.cl(ge({open:i,compact:p})),...y},e.createElement(E.SpsForm,{onSubmit:s,formArray:a,formGroup:r,formMeta:t},e.createElement("div",{className:we({open:i})},w),e.createElement("div",{className:ye},d&&e.createElement("div",{id:"footer_links"},o.contentOf(d)),e.createElement("div",{className:Se},e.createElement(g.Button,{kind:"default",type:"button",className:K.sprinkles({mr:"sm"}),onClick:b,disabled:l},k("advancedSearch.clear",{defaultValue:"Clear Fields"})),e.createElement(g.Button,{kind:"key",type:"submit",disabled:l},m??k("advancedSearch.search",{defaultValue:"Search"}))))))}o.Metadata.set(W,{name:"Advanced Search",props:{formArray:{type:"SpsFormArray<any>"},formGroup:{type:"SpsFormGroup"},formMeta:{type:"SpsFormSetMeta<any>"},onSubmit:{type:"React.FormEventHandler"},controlsDisabled:{type:"boolean"},footerLinks:{type:"React.ReactNode | (() => React.ReactNode)"},isOpen:{type:"boolean"},onClear:{type:"() => void"},submitButtonText:{type:"string"},compact:{type:"boolean"}}}),n.AdvancedSearch=W,n.InputGroupWrapper=M,n.ListBar=A,n.ListBarSearch=F,n.ListBarSearchInfo=L,n.ListBarSortBy=I,n.SearchResultsBar=R,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(n,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/core/button"),require("@sps-woodland/core/tag"),require("@spscommerce/utils"),require("@spscommerce/ds-react"),require("@spscommerce/i18n"),require("@sps-woodland/tokens")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/core/button","@sps-woodland/core/tag","@spscommerce/utils","@spscommerce/ds-react","@spscommerce/i18n","@sps-woodland/tokens"],v):(n=typeof globalThis<"u"?globalThis:n||self,v(n.ListBar={},n.react,n.spsWoodlandCore,n.spsWoodlandCoreButton,n.spsWoodlandCoreTag,n.spscommerceUtils,n.spscommerceDsReact,n.spscommerceI18n,n.spsWoodlandTokens))})(this,(function(n,v,o,y,z,x,B,C,K){"use strict";function U(a){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>a[t]})}}return r.default=a,Object.freeze(r)}const e=U(v);var J="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h0",Q="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h1",X="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h2",Z="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h3",$="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h4",ee="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h5",ae="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h6",te="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h7",re="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h8";function R({results:a,selections:r,zeroStateText:t,onClear:s,className:_,children:c,...d}){const{t:l}=C.useWoodlandLanguage(),m=r?Object.keys(r).reduce((p,u)=>(r[u].length>0&&(p[u]=r[u]),p),{}):{};return e.createElement("div",{className:Q,...d},a!=null&&e.createElement("div",{className:X},e.createElement("span",null,l("searchResultsBar.results",{defaultValue:"Results:"})),e.createElement(z.Tag,{className:Z,kind:"info"},e.createElement("span",null,a))),e.createElement("div",{className:$},Object.keys(m).length>0?Object.keys(m).map((p,u)=>e.createElement(e.Fragment,null,e.createElement("span",{key:u,className:ee},p,":"),m[p].map((g,b)=>e.createElement(z.Tag,{className:ae,key:b,kind:"key"},e.createElement("span",null,g))))):e.createElement("span",{className:"font-italic"},t||l("searchResultsBar.noAdvancedSearchSelections",{defaultValue:"No Advanced Search Selections"}))),e.createElement("div",{className:te},e.createElement(y.Button,{className:re,kind:"link",onClick:s},l("searchResultsBar.clearResults",{defaultValue:"Clear Results"}))))}o.Metadata.set(R,{name:"Search Results Bar",props:{results:{type:"number | string | null"},selections:{type:"{ [key: string]: string[] }"},zeroStateText:{type:"string"},onClear:{type:"() => void"}}});function se(a,r,t){return r in a?Object.defineProperty(a,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[r]=t,a}function P(a,r){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);r&&(s=s.filter(function(_){return Object.getOwnPropertyDescriptor(a,_).enumerable})),t.push.apply(t,s)}return t}function j(a){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?P(Object(t),!0).forEach(function(s){se(a,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(t,s))})}return a}var ne=(a,r,t)=>{for(var s of Object.keys(a)){var _;if(a[s]!==((_=r[s])!==null&&_!==void 0?_:t[s]))return!1}return!0},T=a=>r=>{var t=a.defaultClassName,s=j(j({},a.defaultVariants),r);for(var _ in s){var c,d=(c=s[_])!==null&&c!==void 0?c:a.defaultVariants[_];if(d!=null){var l=d;typeof l=="boolean"&&(l=l===!0?"true":"false");var m=a.variantClassNames[_][l];m&&(t+=" "+m)}}for(var[p,u]of a.compoundVariants)ne(p,s,a.defaultVariants)&&(t+=" "+u);return t},oe=T({defaultClassName:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv1",variantClassNames:{pinned:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv2",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv3"}},defaultVariants:{pinned:!1},compoundVariants:[]}),_e="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv4",le="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv5",ie="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv6",ce="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv7",de="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv8",pe="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv9",ue="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwva",V="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvb",me="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvc",fe="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd",he="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwve",ve="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvf";function M({children:a}){const r=o.modChildren(a,t=>t.type===y.Button?[{className:o.cl(t.props.className,he)}]:[]);return e.createElement(e.Fragment,null,r)}function F({onSubmit:a,children:r}){function t(s){s.preventDefault(),a&&a(s)}return e.createElement("form",{onSubmit:t,className:me,noValidate:!0},e.createElement(B.SpsInputGroup,{className:fe},e.createElement(M,null,r)))}o.Metadata.set(F,{name:"ListBarSearch",props:{onSubmit:{type:"FormEventHandler"}}});function L({children:a}){return e.createElement("div",null,a)}o.Metadata.set(L,{name:"ListBarSearchInfo"});function A({advancedSearch:a,onToggleAdvancedSearch:r,title:t,onToolbarPinned:s,selectable:_,isSelected:c,isIndeterminate:d,disableSelection:l=!1,onSelectionChange:m,pinResultsBar:p,pinToolbar:u=!0,advancedSearchToggleText:g,children:b,className:E,...k}){const{t:Se}=C.useWoodlandLanguage();let N=null;const[f,D]=e.useState(!1),w=e.useRef(null),h=e.useRef(null),{"data-testid":q}=k,O=x.lockToAnimationFrames(()=>{if(w.current&&u){const i=w.current.getBoundingClientRect();if(!i)return;const Oe=Math.round(i.height),ze=Math.round(i.top),Ce=Math.round(window.scrollY);Oe>0&&ze<=60&&(typeof N=="number"?Ce<=N&&(N=null,D(!1)):(N=Math.round(window.scrollY),D(!0),r&&r(!1)))}});e.useEffect(()=>(window.addEventListener("scroll",O),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",O)}),[]);const S=e.useRef();e.useLayoutEffect(()=>{if(h.current&&w.current&&u){if(f&&S.current)h.current.style.height=S.current.height,h.current.style.width=S.current.width,h.current.style.marginBottom=S.current.marginBottom;else if(!f){h.current.style.height="",h.current.style.width="",h.current.style.marginBottom="";const i=window.getComputedStyle(w.current);S.current={height:i.height,width:i.width,marginBottom:i.marginBottom}}}},[f]);function Be(){r&&r(!a?.isOpen)}function Ee(i){s&&s(i)}e.useEffect(()=>{Ee(f)},[f]);const[G,ke,Ne,[H],Y]=o.selectChildren(b,[{type:F},{type:L},{type:R},{custom:i=>o.Metadata.isWoodlandComponent(i)&&o.Metadata.get(i).name==="Tabs"}]);return e.createElement("div",{className:o.cl(E),ref:h,...k},e.createElement("div",{className:oe({pinned:f}),ref:w},H?o.addProps(H,{context:"container"}):e.createElement(e.Fragment,null,e.createElement("div",{className:_e},!!_&&e.createElement("div",{className:le},e.createElement(B.SpsCheckbox,{checked:c,disabled:l,indeterminate:d,onChange:()=>{m?.(!c)}})),e.createElement("div",{className:ie},!t&&G,!t&&ke,G.length>0&&a&&e.createElement("div",{className:ce,"data-testid":`${q}__advanced-search`},e.createElement("div",{className:de},e.createElement(y.Button,{kind:"link",onClick:Be},g??Se("listToolbar.advancedSearchToggle",{defaultValue:"Advanced Search"}))),(a.enteredFields||0)>0&&e.createElement(z.Tag,{className:pe,kind:"info","data-testid":`${q}__entered-fields`},e.createElement("span",null,a.enteredFields))),t&&e.createElement("div",{className:ue},t)),f?e.createElement("div",{className:V},e.createElement(o.PortalContext.Provider,{value:{fixed:!0}},Y)):e.createElement("div",{className:V},Y)),e.createElement("div",{className:J},(!f||p)&&Ne))))}o.Metadata.set(A,{name:"ListBar",props:{activeTab:{type:"Tab"},advancedSearch:{type:"{ isOpen: boolean, enteredFields: number }"},onToggleAdvancedSearch:{type:"(boolean) => void"},title:{type:"string"},onToolbarPinned:{type:"(boolean) => void"},selectable:{type:"boolean"},disableSelection:{type:"boolean",default:"false"},isSelected:{type:"boolean"},isIndeterminate:{type:"boolean"},onSelectionChange:{type:"(boolean) => void"},pinResultsBar:{type:"boolean"},pinToolbar:{type:"boolean",default:"true"},advancedSearchToggleText:{type:"string"}}});function I({options:a,activeOption:r,onSortChange:t,defaultOption:s,className:_,...c}){const d=(a||[]).map(l=>[{label:l.label,icon:l.icon},()=>{t&&t(l)}]);return e.createElement(B.SpsDropdown,{className:o.cl(_,ve),icon:r?.icon||s?.icon,label:r?.label||s?.label,options:d})}o.Metadata.set(I,{name:"ListBarSortBy",props:{options:{type:"SortOption[]"},activeOption:{type:"SortOption"},onSortChange:{type:"(option: SortOption) => void"},defaultOption:{type:"SortOption"}}});var ye=T({defaultClassName:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc0",variantClassNames:{open:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc1",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc2"},compact:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc3",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc4"}},defaultVariants:{open:!1,compact:!1},compoundVariants:[]}),ge=T({defaultClassName:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc5",variantClassNames:{open:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc6",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc7"}},defaultVariants:{open:!0},compoundVariants:[]}),be="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc8",we="pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc9";function W({formArray:a,formGroup:r,formMeta:t,onSubmit:s,controlsDisabled:_,footerLinks:c,isOpen:d,onClear:l,submitButtonText:m,compact:p,className:u,children:g,...b}){const{t:E}=C.useWoodlandLanguage();function k(){l&&l()}return e.createElement("div",{className:o.cl(ye({open:d,compact:p})),...b},e.createElement(B.SpsForm,{onSubmit:s,formArray:a,formGroup:r,formMeta:t},e.createElement("div",{className:ge({open:d})},g),e.createElement("div",{className:be},c&&e.createElement("div",{id:"footer_links"},o.contentOf(c)),e.createElement("div",{className:we},e.createElement(y.Button,{kind:"default",type:"button",className:K.sprinkles({mr:"sm"}),onClick:k,disabled:_},E("advancedSearch.clear",{defaultValue:"Clear Fields"})),e.createElement(y.Button,{kind:"key",type:"submit",disabled:_},m??E("advancedSearch.search",{defaultValue:"Search"}))))))}o.Metadata.set(W,{name:"Advanced Search",props:{formArray:{type:"SpsFormArray<any>"},formGroup:{type:"SpsFormGroup"},formMeta:{type:"SpsFormSetMeta<any>"},onSubmit:{type:"React.FormEventHandler"},controlsDisabled:{type:"boolean"},footerLinks:{type:"React.ReactNode | (() => React.ReactNode)"},isOpen:{type:"boolean"},onClear:{type:"() => void"},submitButtonText:{type:"string"},compact:{type:"boolean"}}}),n.AdvancedSearch=W,n.InputGroupWrapper=M,n.ListBar=A,n.ListBarSearch=F,n.ListBarSearchInfo=L,n.ListBarSortBy=I,n.SearchResultsBar=R,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ComponentProps } from "@sps-woodland/core";
|
|
2
|
+
import type { ComponentProps } from "@sps-woodland/core";
|
|
3
3
|
export declare function InputGroupWrapper({ children, }: ComponentProps<unknown, HTMLElement>): React.ReactElement;
|
|
4
4
|
//# sourceMappingURL=InputGroupWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroupWrapper.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/InputGroupWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"InputGroupWrapper.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/InputGroupWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKzD,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,GACT,EAAE,cAAc,CAAC,OAAO,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,YAAY,CAW3D"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { createRuntimeFn as _ } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
|
|
3
|
-
var
|
|
3
|
+
var r = _({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv1", variantClassNames: { pinned: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv2", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv3" } }, defaultVariants: { pinned: !1 }, compoundVariants: [] }), o = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv4", l = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv5", i = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv6", e = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv7", n = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv8", t = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv9", v = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwva", d = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvb", p = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvc", h = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd", g = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwve", w = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvf";
|
|
4
4
|
export {
|
|
5
5
|
g as inputGroupIconButton,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
r as listBar,
|
|
7
|
+
t as listBarAdvSearchEnteredFields,
|
|
8
|
+
v as listBarAdvSearchTitle,
|
|
9
|
+
e as listBarAdvSearchToggle,
|
|
10
|
+
n as listBarAdvSearchToggleWrapper,
|
|
11
|
+
o as listBarContent,
|
|
12
|
+
d as listBarHeaderContent,
|
|
13
|
+
i as listBarSearchControls,
|
|
14
|
+
h as listBarSearchField,
|
|
15
|
+
p as listBarSearchForm,
|
|
16
|
+
l as listBarSelectionControls,
|
|
17
17
|
w as listBarSortBy
|
|
18
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ComponentProps } from "@sps-woodland/core";
|
|
2
|
+
import type { ComponentProps } from "@sps-woodland/core";
|
|
3
3
|
export declare function ListBarSearch({ onSubmit, children, }: ComponentProps<{
|
|
4
4
|
onSubmit?: React.FormEventHandler;
|
|
5
5
|
}, HTMLElement>): React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListBarSearch.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/ListBarSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"ListBarSearch.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/ListBarSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMzD,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,QAAQ,GACT,EAAE,cAAc,CACf;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC;CACnC,EACD,WAAW,CACZ,GAAG,KAAK,CAAC,YAAY,CAerB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ComponentProps } from "@sps-woodland/core";
|
|
2
|
+
import type { ComponentProps } from "@sps-woodland/core";
|
|
3
3
|
export declare function ListBarSearchInfo({ children, }: ComponentProps<unknown, HTMLDivElement>): React.ReactElement;
|
|
4
4
|
//# sourceMappingURL=ListBarSearchInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListBarSearchInfo.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/ListBarSearchInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"ListBarSearchInfo.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/ListBarSearchInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,GACT,EAAE,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY,CAE9D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ComponentProps, SortDirection } from "@sps-woodland/core";
|
|
3
|
-
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
2
|
+
import type { ComponentProps, SortDirection } from "@sps-woodland/core";
|
|
3
|
+
import type { SpsIcon } from "@spscommerce/ds-shared";
|
|
4
4
|
export interface SortOption {
|
|
5
5
|
label: string;
|
|
6
6
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListBarSortBy.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/ListBarSortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"ListBarSortBy.d.ts","sourceRoot":"","sources":["../../../src/list-bar/list-bar/ListBarSortBy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxE,OAAO,KAAK,EAAwC,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAI5F,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,SAAS,EACT,GAAG,IAAI,EACR,EAAE,cAAc,CACf;IACE,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,UAAU,CAAC;CAC5B,EACD,WAAW,CACZ,GAAG,KAAK,CAAC,YAAY,CAoBrB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ComponentProps } from "@sps-woodland/core";
|
|
2
|
+
import type { ComponentProps } from "@sps-woodland/core";
|
|
3
3
|
export declare function SearchResultsBar({ results, selections, zeroStateText, onClear, className, children, ...rest }: ComponentProps<{
|
|
4
4
|
results?: number | string | null;
|
|
5
|
-
selections?:
|
|
6
|
-
[key: string]: string[];
|
|
7
|
-
};
|
|
5
|
+
selections?: Record<string, string[]>;
|
|
8
6
|
zeroStateText?: string;
|
|
9
7
|
onClear?: () => void;
|
|
10
8
|
}, HTMLDivElement>): React.ReactElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchResultsBar.d.ts","sourceRoot":"","sources":["../../../src/list-bar/search-results-bar/SearchResultsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"SearchResultsBar.d.ts","sourceRoot":"","sources":["../../../src/list-bar/search-results-bar/SearchResultsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAgBzD,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,UAAU,EACV,aAAa,EACb,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,cAAc,CACf;IACE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,EACD,cAAc,CACf,GAAG,KAAK,CAAC,YAAY,CAgDrB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
var
|
|
3
|
+
var a = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h0", r = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h1", o = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h2", e = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h3", l = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h4", h = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h5", i = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h6", t = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h7", n = "pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h8";
|
|
4
4
|
export {
|
|
5
5
|
r as searchResultsBar,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
n as searchResultsBarButton,
|
|
7
|
+
t as searchResultsBarButtons,
|
|
8
|
+
o as searchResultsBarResults,
|
|
9
|
+
h as searchResultsBarSelection,
|
|
10
|
+
i as searchResultsBarSelectionTag,
|
|
11
|
+
l as searchResultsBarSelections,
|
|
12
|
+
a as searchResultsBarWrapper,
|
|
13
13
|
e as searchResutlsBarResultsTag
|
|
14
14
|
};
|
package/lib/list-bar/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv1{background:#fff;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}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv2{width:calc(1280px - 2.5rem);border-radius:0;transform:translate(-50%);position:fixed;top:3.75rem;left:50%;z-index:999}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv2:after{content:"";background:linear-gradient(180deg,rgba(0,0,0,.1),transparent);display:block;height:.625rem;position:absolute;top:calc(100% + 1px);width:100%}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv4{display:flex;flex-wrap:wrap;padding:.5rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv5{display:flex;align-items:center;border-right-color:#d2d4d4;border-right-style:solid;border-right-width:.0625rem;padding:1rem;margin:-.5rem .5rem -.5rem -.5rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv6{align-items:center;display:inline-flex;flex:1 0 auto;height:2rem;vertical-align:middle}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv7{padding-top:.25rem;padding-right:0;padding-bottom:.25rem;padding-left:0;white-space:nowrap}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv8{display:inline-block;position:relative}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv9{margin-left:.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwva{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}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvb{display:inline-block;height:2rem;margin-left:auto;text-align:right;vertical-align:middle;white-space:nowrap}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvc{flex:1;margin-right:.25rem;max-width:25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwve{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}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwve:hover{background-color:#d2d4d4;border-width:.0625rem;border-style:solid;border-color:#717779;border-left-width:0}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvf>.sps-button{margin:0!important;background:transparent;border-color:transparent;color:#4b5356}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvf>.sps-button>button{padding:.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwve>button{height:1.875rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwva>i{font-size:.875rem;margin-right:.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group{flex-wrap:nowrap}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group>.sps-autocomplete{flex:1}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group>.sps-multi-select{flex:1}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group>.sps-select{min-width:30%}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.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}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group>.sps-autocomplete:not(:first-child)>.sps-text-input>.sps-form-control{border-bottom-left-radius:0;border-top-left-radius:0;border-left:0}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group>.sps-autocomplete:not(:last-child)>.sps-text-input>.sps-form-control{height:2rem;line-height:2rem;border-bottom-right-radius:0;border-top-right-radius:0}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group>.sps-text-input:not(:last-child)>.sps-form-control{border-bottom-right-radius:0;border-top-right-radius:0}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.sps-input-group>.sps-multi-select>.sps-text-input>.sps-form-control{border-radius:0;border-left:0;height:32px}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd>.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}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwvd svg{margin-bottom:0}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h1{background-color:#e9e9ea;border-width:.0625rem;border-color:#d2d4d4;border-style:solid;border-radius:.25rem;display:flex;min-height:3.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_uzzgwv1>.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h0>.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h1{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}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h2{flex:1 1 auto;border-right-width:.0625rem;border-right-color:#d2d4d4;border-right-style:solid;padding:.5rem;display:flex;align-items:center}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h3{margin-left:.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h4{flex:1 1 100%;padding:.5rem;display:flex;align-items:center;flex-wrap:wrap}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h5{margin-top:0;margin-bottom:0;margin-right:.25rem;margin-left:.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h5:first-child{margin-left:0}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h6{margin-top:.125rem;margin-bottom:.125rem;margin-right:.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h6:last-child{margin-right:0}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h7{flex:1 1 auto;border-left-width:.0625rem;border-left-style:solid;border-left-color:#d2d4d4;display:flex;align-items:center}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h7:hover{background:#d2d4d4}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_1o1g57h8{padding:.5rem;width:5.25rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc0{background:#fff;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}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc1,.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc3{display:block}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc5{padding:1rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc7{display:none}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc8{background:#f3f4f4;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem;display:flex;padding:.5rem}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc9{text-align:right}.pkg_sps-woodland_core__family_list-bar__version_8_53_13__hash_am9pfc8>*{flex:1}
|