@sps-woodland/core 8.53.30 → 8.53.31
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 +1 -1
- package/lib/action-bar/index.js +1 -1
- 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 +1 -1
- package/lib/add-to-list/index.js +1 -1
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.css.d.ts +3 -1
- package/lib/buttons/button/Button.css.d.ts.map +1 -1
- package/lib/buttons/button/Button.d.ts +2 -0
- package/lib/buttons/button/Button.d.ts.map +1 -1
- package/lib/buttons/button/Button.js +65 -59
- package/lib/buttons/button/Button.ve.js +1 -1
- package/lib/buttons/index.js +91 -85
- 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 +1 -1
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +1 -1
- package/lib/cards/index.js +4 -4
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/components/icon/Icon.ve.js +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +1 -1
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +1 -1
- package/lib/content-row/index.js +3 -3
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +1 -1
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +1 -1
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
- package/lib/content-tiles/index.js +2 -2
- 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.ve.js +1 -1
- package/lib/dropdowns/index.js +3 -3
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +1 -1
- package/lib/feedback-block/FeedbackBlock.ve.js +1 -1
- package/lib/feedback-block/index.js +1 -1
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.ve.js +1 -1
- package/lib/file-upload/index.js +1 -1
- 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 +1 -1
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
- package/lib/filter-tiles/index.js +2 -2
- 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 +1 -1
- package/lib/focused-task/index.js +1 -1
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.ve.js +1 -1
- package/lib/growler/Sonner.ve.js +1 -1
- package/lib/growler/index.js +2 -2
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/style.css +1 -1
- package/lib/index.js +8 -8
- package/lib/index.umd.cjs +1 -1
- package/lib/insight-card/InsightCard.ve.js +1 -1
- package/lib/insight-card/index.js +1 -1
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +2 -2
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +1 -1
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +1 -1
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +1 -1
- package/lib/list-bar/index.js +60 -60
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.css.d.ts +0 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.css.d.ts.map +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts.map +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +7 -7
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -2
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +1 -1
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +1 -1
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +1 -1
- package/lib/modal/style.css +1 -1
- package/lib/page-title/index.js +2 -2
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
- package/lib/page-title/page-title/PageTitle.ve.js +1 -1
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +2 -2
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.ve.js +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 +3 -3
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +1 -1
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
- package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +1 -1
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +1 -1
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +1 -1
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +1 -1
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +1 -1
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +2 -2
- package/lib/rich-text-editor/index.umd.cjs +1 -1
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +1 -1
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +1 -1
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +1 -1
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +1 -1
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +1 -1
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +1 -1
- package/lib/sorting-header/index.js +2 -2
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +1 -1
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +2 -2
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +1 -1
- package/lib/tabs/tabs/Tabs.ve.js +1 -1
- package/lib/tags/clickable-tag/ClickableTag.ve.js +1 -1
- package/lib/tags/index.js +3 -3
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +1 -1
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +1 -1
- package/lib/zero-state/ZeroState.ve.js +1 -1
- package/lib/zero-state/index.js +1 -1
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +10 -10
|
@@ -1,6 +1,6 @@
|
|
|
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 i = "pkg_sps-woodland_core__family_insight-
|
|
3
|
+
var i = "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l0", o = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l8" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lb" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), n = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lp" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), l = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ls" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), e = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lv" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw", variantClassNames: { hasDetail: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ly" } }, defaultVariants: { hasDetail: !1 }, compoundVariants: [] }), h = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l16" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), t = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l17", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l19" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
5
|
o as insightCard,
|
|
6
6
|
r as insightCardBody,
|
|
@@ -54,7 +54,7 @@ var b = (_, e, a) => {
|
|
|
54
54
|
for (var [p, h] of _.compoundVariants)
|
|
55
55
|
b(p, s, _.defaultVariants) && (a += " " + h);
|
|
56
56
|
return a;
|
|
57
|
-
}, V = "pkg_sps-woodland_core__family_insight-
|
|
57
|
+
}, V = "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l0", E = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l8" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), O = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lb" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), P = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lp" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), j = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ls" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), I = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lv" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), D = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw", variantClassNames: { hasDetail: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ly" } }, defaultVariants: { hasDetail: !1 }, compoundVariants: [] }), T = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l16" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), x = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l17", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l19" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] });
|
|
58
58
|
const S = Object.freeze({
|
|
59
59
|
general: "status-new",
|
|
60
60
|
success: "status-ok",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@sps-woodland/core"),require("react"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react","@spscommerce/i18n"],t):(i=typeof globalThis<"u"?globalThis:i||self,t(i.InsightCard={},i.spsWoodlandCore,i.react,i.spscommerceI18n))})(this,(function(i,t,z,k){"use strict";function C(_){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(_){for(const a in _)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(_,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>_[a]})}}return e.default=_,Object.freeze(e)}const r=C(z);function b(_,e,a){return e in _?Object.defineProperty(_,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):_[e]=a,_}function u(_,e){var a=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(_,n).enumerable})),a.push.apply(a,s)}return a}function m(_){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?u(Object(a),!0).forEach(function(s){b(_,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(a,s))})}return _}var N=(_,e,a)=>{for(var s of Object.keys(_)){var n;if(_[s]!==((n=e[s])!==null&&n!==void 0?n:a[s]))return!1}return!0},o=_=>e=>{var a=_.defaultClassName,s=m(m({},_.defaultVariants),e);for(var n in s){var c,p=(c=s[n])!==null&&c!==void 0?c:_.defaultVariants[n];if(p!=null){var l=p;typeof l=="boolean"&&(l=l===!0?"true":"false");var h=_.variantClassNames[n][l];h&&(a+=" "+h)}}for(var[g,f]of _.compoundVariants)N(g,s,_.defaultVariants)&&(a+=" "+f);return a},O="pkg_sps-woodland_core__family_insight-
|
|
1
|
+
(function(i,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@sps-woodland/core"),require("react"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react","@spscommerce/i18n"],t):(i=typeof globalThis<"u"?globalThis:i||self,t(i.InsightCard={},i.spsWoodlandCore,i.react,i.spscommerceI18n))})(this,(function(i,t,z,k){"use strict";function C(_){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(_){for(const a in _)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(_,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>_[a]})}}return e.default=_,Object.freeze(e)}const r=C(z);function b(_,e,a){return e in _?Object.defineProperty(_,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):_[e]=a,_}function u(_,e){var a=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(_,n).enumerable})),a.push.apply(a,s)}return a}function m(_){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?u(Object(a),!0).forEach(function(s){b(_,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(a,s))})}return _}var N=(_,e,a)=>{for(var s of Object.keys(_)){var n;if(_[s]!==((n=e[s])!==null&&n!==void 0?n:a[s]))return!1}return!0},o=_=>e=>{var a=_.defaultClassName,s=m(m({},_.defaultVariants),e);for(var n in s){var c,p=(c=s[n])!==null&&c!==void 0?c:_.defaultVariants[n];if(p!=null){var l=p;typeof l=="boolean"&&(l=l===!0?"true":"false");var h=_.variantClassNames[n][l];h&&(a+=" "+h)}}for(var[g,f]of _.compoundVariants)N(g,s,_.defaultVariants)&&(a+=" "+f);return a},O="pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l0",V=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2",error:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3",success:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4",warning:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5",processing:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l8"}},defaultVariants:{kind:"general",horizontal:!1},compoundVariants:[]}),E=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lb"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),I=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj",error:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk",success:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll",warning:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm",processing:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lp"}},defaultVariants:{kind:"general",horizontal:!1},compoundVariants:[]}),j=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ls"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),P=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lv"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),T=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw",variantClassNames:{hasDetail:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ly"}},defaultVariants:{hasDetail:!1},compoundVariants:[]}),D=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10",error:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11",success:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12",warning:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13",processing:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l16"}},defaultVariants:{kind:"general",horizontal:!1},compoundVariants:[]}),S=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l17",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l19"}},defaultVariants:{horizontal:!1},compoundVariants:[]});const y=Object.freeze({general:"status-new",success:"status-ok",error:"status-error",warning:"status-warning",processing:"status-in-process"});function v({children:_,className:e,horizontal:a=!1,icon:s,kind:n="general",title:c,metric:p,partnerCount:l,totalPartners:h,...g}){const{t:f}=k.useWoodlandLanguage(),d=t.useChildTestIdAttrBuilder(g),[M,q,x]=(l?f("insightTile.partnerCount",{count:l,total:h,defaultValue:`${l} |of| ${h}`}):"").split("|");return r.createElement(r.Fragment,null,r.createElement("div",{className:t.cl(V({kind:n,horizontal:a}),e),...g},r.createElement("div",{className:E({horizontal:a}),...d("body")},s?r.createElement(t.Icon,{icon:`${s}`,...d("icon")}):r.createElement(t.Icon,{icon:`${y[n]}`,...d("icon")}),p&&r.createElement("div",{className:I({kind:n,horizontal:a}),...d("metric")},p),c&&r.createElement("div",{className:P({horizontal:a}),...d("description")},r.createElement("div",{className:j({horizontal:a}),style:{"-webkit-box-orient":"vertical"},...d("title")},c),r.createElement("div",{className:T({hasDetail:!!_}),...d("detail")},_))),l&&r.createElement("div",{className:D({kind:n,horizontal:a}),...d("partner-count")},l===h?r.createElement("div",null,f("insightTile.all",{defaultValue:"ALL"})):r.createElement(r.Fragment,null,r.createElement("div",null,M),r.createElement("div",null,q),r.createElement("div",null,x)),r.createElement("div",{className:S({horizontal:a})},f("insightTile.partners",{defaultValue:"PARTNERS"})))))}t.Metadata.set(v,{name:"InsightCard",props:{horizontal:{type:"boolean",default:"false"},icon:"IconName",kind:{type:"InsightCardKind",default:'"general"'},title:"string",metric:"number | string",partnerCount:"number",totalPartners:"number"}});function w({children:_,...e}){return r.createElement("div",{className:O,...e},_)}t.Metadata.set(w,{name:"InsightCardSet"}),i.InsightCard=v,i.InsightCardIcons=y,i.InsightCardSet=w,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_insight-
|
|
1
|
+
.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l0{display:flex;flex-wrap:wrap;margin:-.5rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1{background:#fff;border-width:.0625rem;border-style:solid;border-radius:.25rem;display:block;flex:1 0 calc(20% - 20px);margin:.5rem;min-width:0;padding:.9375rem 1.25rem;text-align:center}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2{border-color:#007db8;color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2:hover{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3{border-color:#de002e;color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3:hover{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4{border-color:#0b8940;color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4:hover{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5{border-color:#e7760b;color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5:hover{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6{border-color:#91467f;color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6:hover{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7{display:flex;flex:1 0 calc(50% - 20px);height:5.125rem;max-width:calc(50% - 20px)}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9{display:block;min-width:0}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la{align-items:center;display:flex;flex:1;text-align:left}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lc{display:block;font-size:2rem;line-height:2rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ld{color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4le{color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lf{color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lg{color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lh{color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li{font-size:3rem;font-weight:600;line-height:3rem;max-width:100%;word-wrap:break-word}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj{color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk{color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll{color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm{color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln{color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo{margin-left:.5rem;order:1}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq{-webkit-box-orient:vertical;-webkit-box-pack:center;align-items:center;color:#1f282c;display:-webkit-box;font-weight:600;min-height:2.125rem;font-size:1rem;line-height:1rem;padding-bottom:.125rem;max-width:100%;word-wrap:break-word}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr{min-height:1rem;margin-bottom:0}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu{flex:1;margin-left:.5rem;min-width:0}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw{color:#4b5356;display:none;height:12px;font-size:.75rem;line-height:.75rem;margin-top:.25rem;text-transform:uppercase;white-space:nowrap}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx{display:block}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz{color:#fff;font-weight:600;font-size:.75rem;line-height:1.125rem;margin:.9375rem -1.25rem -.9375rem;padding:.625rem 1.25rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15{display:flex;flex-direction:column;justify-content:center;line-height:.875rem;margin:-.9375rem -1.25rem -.9375rem 1.25rem;padding:1.25rem .625rem;width:3.75rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18{display:none!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>svg{font-size:2rem;line-height:2rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz>*{display:inline-block}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz>*:not(:last-child){padding-right:.125rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover{cursor:pointer}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw>*{color:#fff!important}
|
|
@@ -53,7 +53,7 @@ var h = (e, t, a) => {
|
|
|
53
53
|
for (var [d, v] of e.compoundVariants)
|
|
54
54
|
h(d, r, e.defaultVariants) && (a += " " + v);
|
|
55
55
|
return a;
|
|
56
|
-
}, w = c({ defaultClassName: "pkg_sps-woodland_core__family_key-value-
|
|
56
|
+
}, w = c({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc1", variantClassNames: { inline: { true: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc2 pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
57
57
|
function b({
|
|
58
58
|
children: e,
|
|
59
59
|
className: t,
|
|
@@ -71,7 +71,7 @@ i.set(b, {
|
|
|
71
71
|
inline: { type: "boolean", default: "false" }
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
var V = "pkg_sps-woodland_core__family_key-value-
|
|
74
|
+
var V = "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p690", g = c({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p691", variantClassNames: { wrap: { normal: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p692", truncate: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p693" } }, defaultVariants: {}, compoundVariants: [] });
|
|
75
75
|
function k({
|
|
76
76
|
children: e,
|
|
77
77
|
className: t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("@sps-woodland/core"),require("react")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s.KeyValueSet={},s.spsWoodlandCore,s.react))})(this,(function(s,o,v){"use strict";function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const _=O(v);function b(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(a){b(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var h=(e,r,t)=>{for(var a of Object.keys(e)){var n;if(e[a]!==((n=r[a])!==null&&n!==void 0?n:t[a]))return!1}return!0},d=e=>r=>{var t=e.defaultClassName,a=p(p({},e.defaultVariants),r);for(var n in a){var l,u=(l=a[n])!==null&&l!==void 0?l:e.defaultVariants[n];if(u!=null){var f=u;typeof f=="boolean"&&(f=f===!0?"true":"false");var y=e.variantClassNames[n][f];y&&(t+=" "+y)}}for(var[j,S]of e.compoundVariants)h(j,a,e.defaultVariants)&&(t+=" "+S);return t},w=d({defaultClassName:"pkg_sps-woodland_core__family_key-value-
|
|
1
|
+
(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("@sps-woodland/core"),require("react")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s.KeyValueSet={},s.spsWoodlandCore,s.react))})(this,(function(s,o,v){"use strict";function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const _=O(v);function b(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(a){b(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var h=(e,r,t)=>{for(var a of Object.keys(e)){var n;if(e[a]!==((n=r[a])!==null&&n!==void 0?n:t[a]))return!1}return!0},d=e=>r=>{var t=e.defaultClassName,a=p(p({},e.defaultVariants),r);for(var n in a){var l,u=(l=a[n])!==null&&l!==void 0?l:e.defaultVariants[n];if(u!=null){var f=u;typeof f=="boolean"&&(f=f===!0?"true":"false");var y=e.variantClassNames[n][f];y&&(t+=" "+y)}}for(var[j,S]of e.compoundVariants)h(j,a,e.defaultVariants)&&(t+=" "+S);return t},w=d({defaultClassName:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc1",variantClassNames:{inline:{true:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc2 pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc0"}},defaultVariants:{},compoundVariants:[]});function c({children:e,className:r,inline:t,...a}){return _.createElement("div",{className:o.cl(w({inline:t}),r),...a},e)}o.Metadata.set(c,{name:"KeyValueSet",props:{inline:{type:"boolean",default:"false"}}});var g="pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p690",V=d({defaultClassName:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p691",variantClassNames:{wrap:{normal:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p692",truncate:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p693"}},defaultVariants:{},compoundVariants:[]});function m({children:e,className:r,itemKey:t,wrap:a,...n}){const l=o.useChildTestIdAttrBuilder(n),u=a==="truncate"&&typeof e=="string"?e:void 0;return _.createElement(_.Fragment,null,_.createElement("span",{className:g,...l("key")},t),_.createElement("span",{className:o.cl(V({wrap:a}),r),title:u,...n},e))}o.Metadata.set(m,{name:"KeyValueSetItem",props:{itemKey:{type:"React.ReactNode | (() => React.ReactNode)",required:!0},wrap:{type:"'normal' | 'truncate'"}}}),s.KeyValueSet=c,s.KeyValueSetItem=m,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,6 +1,6 @@
|
|
|
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 s = _({ defaultClassName: "pkg_sps-woodland_core__family_key-value-
|
|
3
|
+
var s = _({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc1", variantClassNames: { inline: { true: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc2 pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
5
|
s as keyValueSet
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
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";
|
|
4
|
-
var o = "pkg_sps-woodland_core__family_key-value-
|
|
4
|
+
var o = "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p690", r = _({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p691", variantClassNames: { wrap: { normal: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p692", truncate: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p693" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
5
|
export {
|
|
6
6
|
o as key,
|
|
7
7
|
r as value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_key-value-
|
|
1
|
+
.pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc0{grid-template-columns:auto auto}.pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc1{column-gap:.5rem;display:inline-grid;font-size:.75rem;line-height:1.125rem;max-width:100%}.pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p690{font-weight:600;min-width:0}.pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc0 .pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p690{text-align:right}.pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p691{min-width:0;overflow-wrap:break-word}.pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p692{overflow-wrap:normal}.pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p693{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 o = _({ defaultClassName: "pkg_sps-woodland_core__family_list-
|
|
3
|
+
var o = _({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc0", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc1", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc2" }, compact: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc3", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc4" } }, defaultVariants: { open: !1, compact: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc5", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc6", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc7" } }, defaultVariants: { open: !0 }, compoundVariants: [] }), e = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc8", l = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc9";
|
|
4
4
|
export {
|
|
5
5
|
o as advancedSearch,
|
|
6
6
|
e as advancedSearchFooter,
|
package/lib/list-bar/index.js
CHANGED
|
@@ -6,18 +6,18 @@ 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-woodland_core__family_list-
|
|
9
|
+
var ne = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h0", _e = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h1", oe = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h2", le = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h3", ie = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h4", ce = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h5", de = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h6", pe = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h7";
|
|
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: i,
|
|
17
|
+
...c
|
|
18
18
|
}) {
|
|
19
|
-
const { t: _ } = z(), p = r ? Object.keys(r).reduce((
|
|
20
|
-
return /* @__PURE__ */ e.createElement("div", { className: _e, ...
|
|
19
|
+
const { t: _ } = z(), p = r ? Object.keys(r).reduce((o, d) => (r[d].length > 0 && (o[d] = r[d]), o), {}) : {};
|
|
20
|
+
return /* @__PURE__ */ e.createElement("div", { className: _e, ...c }, 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((o, d) => /* @__PURE__ */ e.createElement(e.Fragment, { key: o }, /* @__PURE__ */ e.createElement("span", { key: d, className: ce }, o, ":"), p[o].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, { fill: !0, noWrap: !0, kind: "link", onClick: s }, _("searchResultsBar.clearResults", { defaultValue: "Clear Results" }))));
|
|
21
21
|
}
|
|
22
22
|
f.set(A, {
|
|
23
23
|
name: "Search Results Bar",
|
|
@@ -28,7 +28,7 @@ f.set(A, {
|
|
|
28
28
|
onClear: { type: "() => void" }
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
function
|
|
31
|
+
function me(a, r, t) {
|
|
32
32
|
return r in a ? Object.defineProperty(a, r, {
|
|
33
33
|
value: t,
|
|
34
34
|
enumerable: !0,
|
|
@@ -50,26 +50,26 @@ 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
|
+
me(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 ue = (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]))
|
|
64
64
|
return !1;
|
|
65
65
|
}
|
|
66
66
|
return !0;
|
|
67
|
-
},
|
|
67
|
+
}, C = (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 _ =
|
|
70
|
+
var i, c = (i = s[n]) !== null && i !== void 0 ? i : a.defaultVariants[n];
|
|
71
|
+
if (c != null) {
|
|
72
|
+
var _ = c;
|
|
73
73
|
typeof _ == "boolean" && (_ = _ === !0 ? "true" : "false");
|
|
74
74
|
var p = (
|
|
75
75
|
// @ts-expect-error
|
|
@@ -78,18 +78,18 @@ var fe = (a, r, t) => {
|
|
|
78
78
|
p && (t += " " + p);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
for (var [
|
|
82
|
-
|
|
81
|
+
for (var [o, d] of a.compoundVariants)
|
|
82
|
+
ue(o, s, a.defaultVariants) && (t += " " + d);
|
|
83
83
|
return t;
|
|
84
|
-
},
|
|
85
|
-
function
|
|
84
|
+
}, fe = C({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv1", variantClassNames: { pinned: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv2", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv3" } }, defaultVariants: { pinned: !1 }, compoundVariants: [] }), he = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv4", ve = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv5", ye = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv6", ge = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv7", be = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv8", we = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv9", Se = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwva", j = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvb", Ee = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvc", ke = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvd", Be = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwve", Ne = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvf";
|
|
85
|
+
function ze({
|
|
86
86
|
children: a
|
|
87
87
|
}) {
|
|
88
88
|
const r = J(
|
|
89
89
|
a,
|
|
90
90
|
(t) => t.type === b ? [
|
|
91
91
|
{
|
|
92
|
-
className: B(t.props.className,
|
|
92
|
+
className: B(t.props.className, Be)
|
|
93
93
|
}
|
|
94
94
|
] : []
|
|
95
95
|
);
|
|
@@ -102,7 +102,7 @@ function I({
|
|
|
102
102
|
function t(s) {
|
|
103
103
|
s.preventDefault(), a && a(s);
|
|
104
104
|
}
|
|
105
|
-
return /* @__PURE__ */ e.createElement("form", { onSubmit: t, className:
|
|
105
|
+
return /* @__PURE__ */ e.createElement("form", { onSubmit: t, className: Ee, noValidate: !0 }, /* @__PURE__ */ e.createElement(ee, { className: ke }, /* @__PURE__ */ e.createElement(ze, null, r)));
|
|
106
106
|
}
|
|
107
107
|
f.set(I, {
|
|
108
108
|
name: "ListBarSearch",
|
|
@@ -124,11 +124,11 @@ function Ce({
|
|
|
124
124
|
title: t,
|
|
125
125
|
onToolbarPinned: s,
|
|
126
126
|
selectable: n,
|
|
127
|
-
isSelected:
|
|
128
|
-
isIndeterminate:
|
|
127
|
+
isSelected: i,
|
|
128
|
+
isIndeterminate: c,
|
|
129
129
|
disableSelection: _ = !1,
|
|
130
130
|
onSelectionChange: p,
|
|
131
|
-
pinResultsBar:
|
|
131
|
+
pinResultsBar: o,
|
|
132
132
|
pinToolbar: d = !0,
|
|
133
133
|
advancedSearchToggleText: h,
|
|
134
134
|
children: v,
|
|
@@ -137,13 +137,13 @@ function Ce({
|
|
|
137
137
|
}) {
|
|
138
138
|
const { t: M } = z();
|
|
139
139
|
let E = null;
|
|
140
|
-
const [m,
|
|
140
|
+
const [m, R] = e.useState(!1), y = e.useRef(null), u = e.useRef(null), { "data-testid": O } = S, k = $(() => {
|
|
141
141
|
if (y.current && d) {
|
|
142
|
-
const
|
|
143
|
-
if (!
|
|
142
|
+
const l = y.current.getBoundingClientRect();
|
|
143
|
+
if (!l)
|
|
144
144
|
return;
|
|
145
|
-
const Y = Math.round(
|
|
146
|
-
Y > 0 && K <= 60 && (typeof E == "number" ? q <= E && (E = null,
|
|
145
|
+
const Y = Math.round(l.height), K = Math.round(l.top), q = Math.round(window.scrollY);
|
|
146
|
+
Y > 0 && K <= 60 && (typeof E == "number" ? q <= E && (E = null, R(!1)) : (E = Math.round(window.scrollY), R(!0), r && r(!1)));
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
e.useEffect(() => (window.addEventListener("scroll", k), window.addEventListener("resize", k), () => {
|
|
@@ -156,11 +156,11 @@ function Ce({
|
|
|
156
156
|
u.current.style.height = g.current.height, u.current.style.width = g.current.width, u.current.style.marginBottom = g.current.marginBottom;
|
|
157
157
|
else if (!m) {
|
|
158
158
|
u.current.style.height = "", u.current.style.width = "", u.current.style.marginBottom = "";
|
|
159
|
-
const
|
|
159
|
+
const l = window.getComputedStyle(y.current);
|
|
160
160
|
g.current = {
|
|
161
|
-
height:
|
|
162
|
-
width:
|
|
163
|
-
marginBottom:
|
|
161
|
+
height: l.height,
|
|
162
|
+
width: l.width,
|
|
163
|
+
marginBottom: l.marginBottom
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -168,15 +168,15 @@ function Ce({
|
|
|
168
168
|
function D() {
|
|
169
169
|
r && r(!a?.isOpen);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
s && s(
|
|
171
|
+
function W(l) {
|
|
172
|
+
s && s(l);
|
|
173
173
|
}
|
|
174
174
|
e.useEffect(() => {
|
|
175
|
-
|
|
175
|
+
W(m);
|
|
176
176
|
}, [m]);
|
|
177
177
|
const [
|
|
178
178
|
F,
|
|
179
|
-
|
|
179
|
+
G,
|
|
180
180
|
H,
|
|
181
181
|
[T],
|
|
182
182
|
V
|
|
@@ -185,28 +185,28 @@ function Ce({
|
|
|
185
185
|
{ type: x },
|
|
186
186
|
{ type: A },
|
|
187
187
|
{
|
|
188
|
-
custom: (
|
|
188
|
+
custom: (l) => f.isWoodlandComponent(l) && f.get(l).name === "Tabs"
|
|
189
189
|
}
|
|
190
190
|
]);
|
|
191
|
-
return /* @__PURE__ */ e.createElement("div", { className: B(w), ref: u, ...S }, /* @__PURE__ */ e.createElement("div", { className:
|
|
191
|
+
return /* @__PURE__ */ e.createElement("div", { className: B(w), ref: u, ...S }, /* @__PURE__ */ e.createElement("div", { className: fe({ pinned: m }), ref: y }, T ? U(T, { context: "container" }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: he }, !!n && /* @__PURE__ */ e.createElement("div", { className: ve }, /* @__PURE__ */ e.createElement(
|
|
192
192
|
ae,
|
|
193
193
|
{
|
|
194
|
-
checked:
|
|
194
|
+
checked: i,
|
|
195
195
|
disabled: _,
|
|
196
|
-
indeterminate:
|
|
196
|
+
indeterminate: c,
|
|
197
197
|
onChange: () => {
|
|
198
|
-
p?.(!
|
|
198
|
+
p?.(!i);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
201
|
+
)), /* @__PURE__ */ e.createElement("div", { className: ye }, !t && F, !t && G, F.length > 0 && a && /* @__PURE__ */ e.createElement(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
|
-
className:
|
|
204
|
+
className: ge,
|
|
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: be }, /* @__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: we, kind: "info", "data-testid": `${O}__entered-fields` }, /* @__PURE__ */ e.createElement("span", null, a.enteredFields))
|
|
209
|
+
), t && /* @__PURE__ */ e.createElement("div", { className: Se }, 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 || o) && H))));
|
|
210
210
|
}
|
|
211
211
|
f.set(Ce, {
|
|
212
212
|
name: "ListBar",
|
|
@@ -226,15 +226,15 @@ f.set(Ce, {
|
|
|
226
226
|
advancedSearchToggleText: { type: "string" }
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
|
-
function
|
|
229
|
+
function Re({
|
|
230
230
|
options: a,
|
|
231
231
|
activeOption: r,
|
|
232
232
|
onSortChange: t,
|
|
233
233
|
defaultOption: s,
|
|
234
234
|
className: n,
|
|
235
|
-
...
|
|
235
|
+
...i
|
|
236
236
|
}) {
|
|
237
|
-
const
|
|
237
|
+
const c = (a || []).map((_) => [
|
|
238
238
|
{ label: _.label, icon: _.icon },
|
|
239
239
|
() => {
|
|
240
240
|
t && t(_);
|
|
@@ -243,14 +243,14 @@ function Oe({
|
|
|
243
243
|
return /* @__PURE__ */ e.createElement(
|
|
244
244
|
te,
|
|
245
245
|
{
|
|
246
|
-
className: B(n,
|
|
246
|
+
className: B(n, Ne),
|
|
247
247
|
icon: r?.icon || s?.icon,
|
|
248
248
|
label: r?.label || s?.label,
|
|
249
|
-
options:
|
|
249
|
+
options: c
|
|
250
250
|
}
|
|
251
251
|
);
|
|
252
252
|
}
|
|
253
|
-
f.set(
|
|
253
|
+
f.set(Re, {
|
|
254
254
|
name: "ListBarSortBy",
|
|
255
255
|
props: {
|
|
256
256
|
options: { type: "SortOption[]" },
|
|
@@ -259,18 +259,18 @@ f.set(Oe, {
|
|
|
259
259
|
defaultOption: { type: "SortOption" }
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
var
|
|
263
|
-
function
|
|
262
|
+
var Oe = C({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc0", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc1", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc2" }, compact: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc3", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc4" } }, defaultVariants: { open: !1, compact: !1 }, compoundVariants: [] }), Fe = C({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc5", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc6", false: "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc7" } }, defaultVariants: { open: !0 }, compoundVariants: [] }), Te = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc8", Ve = "pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc9";
|
|
263
|
+
function Pe({
|
|
264
264
|
formArray: a,
|
|
265
265
|
formGroup: r,
|
|
266
266
|
formMeta: t,
|
|
267
267
|
onSubmit: s,
|
|
268
268
|
controlsDisabled: n,
|
|
269
|
-
footerLinks:
|
|
270
|
-
isOpen:
|
|
269
|
+
footerLinks: i,
|
|
270
|
+
isOpen: c,
|
|
271
271
|
onClear: _,
|
|
272
272
|
submitButtonText: p,
|
|
273
|
-
compact:
|
|
273
|
+
compact: o,
|
|
274
274
|
className: d,
|
|
275
275
|
children: h,
|
|
276
276
|
...v
|
|
@@ -279,7 +279,7 @@ function Le({
|
|
|
279
279
|
function S() {
|
|
280
280
|
_ && _();
|
|
281
281
|
}
|
|
282
|
-
return /* @__PURE__ */ e.createElement("div", { className: B(
|
|
282
|
+
return /* @__PURE__ */ e.createElement("div", { className: B(Oe({ open: c, compact: o })), ...v }, /* @__PURE__ */ e.createElement(re, { onSubmit: s, formArray: a, formGroup: r, formMeta: t }, /* @__PURE__ */ e.createElement("div", { className: Fe({ open: c }) }, h), /* @__PURE__ */ e.createElement("div", { className: Te }, i && /* @__PURE__ */ e.createElement("div", { id: "footer_links" }, Z(i)), /* @__PURE__ */ e.createElement("div", { className: Ve }, /* @__PURE__ */ e.createElement(
|
|
283
283
|
b,
|
|
284
284
|
{
|
|
285
285
|
kind: "default",
|
|
@@ -291,7 +291,7 @@ function Le({
|
|
|
291
291
|
w("advancedSearch.clear", { defaultValue: "Clear Fields" })
|
|
292
292
|
), /* @__PURE__ */ e.createElement(b, { kind: "key", type: "submit", disabled: n }, p ?? w("advancedSearch.search", { defaultValue: "Search" }))))));
|
|
293
293
|
}
|
|
294
|
-
f.set(
|
|
294
|
+
f.set(Pe, {
|
|
295
295
|
name: "Advanced Search",
|
|
296
296
|
props: {
|
|
297
297
|
formArray: { type: "SpsFormArray<any>" },
|
|
@@ -307,11 +307,11 @@ f.set(Le, {
|
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
export {
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
Pe as AdvancedSearch,
|
|
311
|
+
ze as InputGroupWrapper,
|
|
312
312
|
Ce as ListBar,
|
|
313
313
|
I as ListBarSearch,
|
|
314
314
|
x as ListBarSearchInfo,
|
|
315
|
-
|
|
315
|
+
Re as ListBarSortBy,
|
|
316
316
|
A as SearchResultsBar
|
|
317
317
|
};
|
|
@@ -1 +1 @@
|
|
|
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_30__hash_1o1g57h0",Q="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_1o1g57h1",X="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_1o1g57h2",Z="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_1o1g57h3",$="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_1o1g57h4",ee="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_1o1g57h5",ae="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_1o1g57h6",te="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_1o1g57h7",re="pkg_sps-woodland_core__family_list-bar__version_8_53_30__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_30__hash_uzzgwv1",variantClassNames:{pinned:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv2",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv3"}},defaultVariants:{pinned:!1},compoundVariants:[]}),_e="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv4",le="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv5",ie="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv6",ce="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv7",de="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv8",pe="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwv9",ue="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwva",V="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwvb",me="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwvc",fe="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwvd",he="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_uzzgwve",ve="pkg_sps-woodland_core__family_list-bar__version_8_53_30__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_30__hash_am9pfc0",variantClassNames:{open:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc1",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc2"},compact:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc3",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc4"}},defaultVariants:{open:!1,compact:!1},compoundVariants:[]}),ge=T({defaultClassName:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc5",variantClassNames:{open:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc6",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc7"}},defaultVariants:{open:!0},compoundVariants:[]}),be="pkg_sps-woodland_core__family_list-bar__version_8_53_30__hash_am9pfc8",we="pkg_sps-woodland_core__family_list-bar__version_8_53_30__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
|
+
(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_31__hash_1o1g57h0",Q="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h1",X="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h2",Z="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h3",$="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h4",ee="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h5",ae="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h6",te="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_1o1g57h7";function R({results:a,selections:r,zeroStateText:t,onClear:s,className:_,children:d,...p}){const{t:l}=C.useWoodlandLanguage(),m=r?Object.keys(r).reduce((i,u)=>(r[u].length>0&&(i[u]=r[u]),i),{}):{};return e.createElement("div",{className:Q,...p},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((i,u)=>e.createElement(e.Fragment,{key:i},e.createElement("span",{key:u,className:ee},i,":"),m[i].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,{fill:!0,noWrap:!0,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 re(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){re(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 se=(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 d,p=(d=s[_])!==null&&d!==void 0?d:a.defaultVariants[_];if(p!=null){var l=p;typeof l=="boolean"&&(l=l===!0?"true":"false");var m=a.variantClassNames[_][l];m&&(t+=" "+m)}}for(var[i,u]of a.compoundVariants)se(i,s,a.defaultVariants)&&(t+=" "+u);return t},ne=T({defaultClassName:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv1",variantClassNames:{pinned:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv2",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv3"}},defaultVariants:{pinned:!1},compoundVariants:[]}),oe="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv4",_e="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv5",le="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv6",ie="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv7",ce="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv8",de="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwv9",pe="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwva",V="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvb",ue="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvc",me="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvd",fe="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwve",he="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_uzzgwvf";function M({children:a}){const r=o.modChildren(a,t=>t.type===y.Button?[{className:o.cl(t.props.className,fe)}]:[]);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:ue,noValidate:!0},e.createElement(B.SpsInputGroup,{className:me},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:d,isIndeterminate:p,disableSelection:l=!1,onSelectionChange:m,pinResultsBar:i,pinToolbar:u=!0,advancedSearchToggleText:g,children:b,className:E,...k}){const{t:we}=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 c=w.current.getBoundingClientRect();if(!c)return;const Ne=Math.round(c.height),Oe=Math.round(c.top),ze=Math.round(window.scrollY);Ne>0&&Oe<=60&&(typeof N=="number"?ze<=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 c=window.getComputedStyle(w.current);S.current={height:c.height,width:c.width,marginBottom:c.marginBottom}}}},[f]);function Se(){r&&r(!a?.isOpen)}function Be(c){s&&s(c)}e.useEffect(()=>{Be(f)},[f]);const[G,Ee,ke,[H],Y]=o.selectChildren(b,[{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(E),ref:h,...k},e.createElement("div",{className:ne({pinned:f}),ref:w},H?o.addProps(H,{context:"container"}):e.createElement(e.Fragment,null,e.createElement("div",{className:oe},!!_&&e.createElement("div",{className:_e},e.createElement(B.SpsCheckbox,{checked:d,disabled:l,indeterminate:p,onChange:()=>{m?.(!d)}})),e.createElement("div",{className:le},!t&&G,!t&&Ee,G.length>0&&a&&e.createElement("div",{className:ie,"data-testid":`${q}__advanced-search`},e.createElement("div",{className:ce},e.createElement(y.Button,{kind:"link",onClick:Se},g??we("listToolbar.advancedSearchToggle",{defaultValue:"Advanced Search"}))),(a.enteredFields||0)>0&&e.createElement(z.Tag,{className:de,kind:"info","data-testid":`${q}__entered-fields`},e.createElement("span",null,a.enteredFields))),t&&e.createElement("div",{className:pe},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||i)&&ke))))}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 W({options:a,activeOption:r,onSortChange:t,defaultOption:s,className:_,...d}){const p=(a||[]).map(l=>[{label:l.label,icon:l.icon},()=>{t&&t(l)}]);return e.createElement(B.SpsDropdown,{className:o.cl(_,he),icon:r?.icon||s?.icon,label:r?.label||s?.label,options:p})}o.Metadata.set(W,{name:"ListBarSortBy",props:{options:{type:"SortOption[]"},activeOption:{type:"SortOption"},onSortChange:{type:"(option: SortOption) => void"},defaultOption:{type:"SortOption"}}});var ve=T({defaultClassName:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc0",variantClassNames:{open:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc1",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc2"},compact:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc3",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc4"}},defaultVariants:{open:!1,compact:!1},compoundVariants:[]}),ye=T({defaultClassName:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc5",variantClassNames:{open:{true:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc6",false:"pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc7"}},defaultVariants:{open:!0},compoundVariants:[]}),ge="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc8",be="pkg_sps-woodland_core__family_list-bar__version_8_53_31__hash_am9pfc9";function I({formArray:a,formGroup:r,formMeta:t,onSubmit:s,controlsDisabled:_,footerLinks:d,isOpen:p,onClear:l,submitButtonText:m,compact:i,className:u,children:g,...b}){const{t:E}=C.useWoodlandLanguage();function k(){l&&l()}return e.createElement("div",{className:o.cl(ve({open:p,compact:i})),...b},e.createElement(B.SpsForm,{onSubmit:s,formArray:a,formGroup:r,formMeta:t},e.createElement("div",{className:ye({open:p})},g),e.createElement("div",{className:ge},d&&e.createElement("div",{id:"footer_links"},o.contentOf(d)),e.createElement("div",{className:be},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(I,{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=I,n.InputGroupWrapper=M,n.ListBar=A,n.ListBarSearch=F,n.ListBarSearchInfo=L,n.ListBarSortBy=W,n.SearchResultsBar=R,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
|