@sps-woodland/core 8.56.4 → 8.56.5
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.js +4 -4
- package/lib/add-to-list/add-to-list/AddToList.ve.js +32 -32
- package/lib/add-to-list/add-to-list/ItemsList.js +3 -3
- package/lib/add-to-list/add-to-list/ListItem.js +1 -1
- package/lib/add-to-list/index.js +40 -40
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.js +2 -2
- package/lib/buttons/button/Button.ve.js +56 -56
- package/lib/buttons/index.js +57 -57
- 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 +5 -5
- package/lib/content-row/content-row/ContentRow.js +2 -2
- package/lib/content-row/content-row/ContentRow.ve.js +37 -37
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +14 -14
- package/lib/content-row/index.js +56 -56
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +3 -3
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.js +3 -3
- package/lib/content-tiles/content-tile/ContentTile.ve.js +12 -12
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
- package/lib/content-tiles/index.js +16 -16
- 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.js +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +13 -13
- package/lib/dropdowns/index.js +17 -17
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.js +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 +18 -18
- package/lib/feedback-block/index.js +18 -18
- 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.map +1 -1
- package/lib/file-upload/file-upload/FileUpload.js +6 -6
- package/lib/file-upload/file-upload/FileUpload.ve.js +28 -28
- package/lib/file-upload/index.js +34 -34
- 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 +20 -20
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
- package/lib/filter-tiles/index.js +21 -21
- 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 +5 -5
- package/lib/focused-task/index.js +5 -5
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.js +1 -1
- package/lib/growler/Growler.ve.js +10 -10
- package/lib/growler/Sonner.ve.js +8 -8
- package/lib/growler/index.js +19 -19
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/style.css +1 -1
- package/lib/index.js +28 -28
- package/lib/index.umd.cjs +1 -1
- package/lib/insight-card/InsightCard.ve.js +54 -54
- package/lib/insight-card/index.js +48 -48
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +6 -6
- 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 +4 -4
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +9 -9
- package/lib/list-bar/index.js +21 -21
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/ListBar.js +5 -5
- package/lib/list-bar/list-bar/ListBar.ve.js +4 -4
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +2 -2
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
- 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 +24 -24
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.js +1 -1
- package/lib/modal/modal/Modal.ve.js +23 -23
- 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 +11 -11
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.ve.js +7 -7
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +4 -4
- package/lib/photo/style.css +1 -1
- package/lib/product-bar/index.js +25 -25
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +17 -17
- package/lib/product-bar/product-bar-name/ProductBarName.js +2 -2
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +3 -3
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
- package/lib/product-bar/product-bar-tab/ProductBarTab.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 +26 -26
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +22 -22
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +1 -1
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +2 -2
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +69 -69
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.js +2 -2
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +26 -26
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +42 -42
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +12 -12
- package/lib/rich-text-editor/index.umd.cjs +2 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +2 -2
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +7 -7
- 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 +9 -9
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.js +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +7 -7
- package/lib/side-nav/side-nav-section/SideNavSection.js +1 -1
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +3 -3
- package/lib/sorting-header/index.js +18 -18
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +9 -9
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +6 -6
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +28 -28
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +21 -21
- package/lib/tabs/tabs/Tabs.js +2 -2
- package/lib/tabs/tabs/Tabs.ve.js +5 -5
- package/lib/tags/clickable-tag/ClickableTag.js +1 -1
- package/lib/tags/clickable-tag/ClickableTag.ve.js +21 -21
- package/lib/tags/index.js +57 -57
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.js +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +15 -15
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +19 -19
- package/lib/zero-state/ZeroState.js +1 -1
- package/lib/zero-state/ZeroState.ve.js +11 -11
- package/lib/zero-state/index.js +12 -12
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/page-title/page-subtitle/PageSubtitle.css.ts
|
|
3
|
-
var e = "pkg_sps-woodland_core__family_page-
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_14qi3ku0", t = "pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_14qi3ku1";
|
|
4
4
|
//#endregion
|
|
5
5
|
export { e as pageSubtitle, t as pageSubtitleIcon };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/page-title/page-title/PageTitle.css.ts
|
|
3
|
-
var e = "pkg_sps-woodland_core__family_page-
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl00", t = "pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl01", n = "pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl02", r = "pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl03";
|
|
4
4
|
//#endregion
|
|
5
5
|
export { e as pageTitle, r as pageTitleHeading, n as pageTitleIcon, t as pageTitleText };
|
package/lib/page-title/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_page-
|
|
1
|
+
.pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_14qi3ku0{color:#4b5356;margin-top:.25rem;font-size:1.125rem;line-height:1.125rem}.pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_14qi3ku1{margin-top:.25rem;margin-left:.25rem;margin-right:.25rem;font-size:.75rem;line-height:1.125rem}.pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl00{flex-direction:row;display:flex}.pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl01{color:#1f282c;flex-direction:column;font-size:1.5rem;line-height:1.5rem;display:flex}.pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl02{align-self:flex-start;margin-top:.1875rem;margin-right:.25rem;font-size:1.125rem;line-height:1.5rem}.pkg_sps-woodland_core__family_page-title__version_8_56_5__hash_6nwwl03{color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}
|
|
2
2
|
/*$vite$:1*/
|
package/lib/photo/index.js
CHANGED
|
@@ -50,22 +50,22 @@ var d = (e, t, n) => {
|
|
|
50
50
|
for (var [c, l] of e.compoundVariants) d(c, r, e.defaultVariants) && (n += " " + l);
|
|
51
51
|
return n;
|
|
52
52
|
}, p = f({
|
|
53
|
-
defaultClassName: "pkg_sps-
|
|
53
|
+
defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w0",
|
|
54
54
|
variantClassNames: { placeholder: {
|
|
55
|
-
true: "pkg_sps-
|
|
56
|
-
false: "pkg_sps-
|
|
55
|
+
true: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w1",
|
|
56
|
+
false: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w2"
|
|
57
57
|
} },
|
|
58
58
|
defaultVariants: { placeholder: !1 },
|
|
59
59
|
compoundVariants: []
|
|
60
60
|
}), m = f({
|
|
61
|
-
defaultClassName: "pkg_sps-
|
|
61
|
+
defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w3",
|
|
62
62
|
variantClassNames: { mode: {
|
|
63
|
-
fill: "pkg_sps-
|
|
64
|
-
fit: "pkg_sps-
|
|
63
|
+
fill: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w4",
|
|
64
|
+
fit: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w5"
|
|
65
65
|
} },
|
|
66
66
|
defaultVariants: { mode: "fill" },
|
|
67
67
|
compoundVariants: []
|
|
68
|
-
}), h = "pkg_sps-
|
|
68
|
+
}), h = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w6";
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/photo/photo/Photo.tsx
|
|
71
71
|
function g({ className: n, src: i, altText: a, mode: o = "fill", placeholderIcon: s = "photo", ...c }) {
|
|
@@ -138,11 +138,11 @@ n.set(g, {
|
|
|
138
138
|
});
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/photo/photo-carousel/PhotoCarousel.css.ts
|
|
141
|
-
var _ = "pkg_sps-
|
|
142
|
-
defaultClassName: "pkg_sps-
|
|
141
|
+
var _ = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba10", v = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba11", y = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba12", b = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba13", x = f({
|
|
142
|
+
defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba14",
|
|
143
143
|
variantClassNames: { selected: {
|
|
144
|
-
true: "pkg_sps-
|
|
145
|
-
false: "pkg_sps-
|
|
144
|
+
true: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba15",
|
|
145
|
+
false: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba16"
|
|
146
146
|
} },
|
|
147
147
|
defaultVariants: { selected: !1 },
|
|
148
148
|
compoundVariants: []
|
package/lib/photo/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/tokens"),require("@sps-woodland/core/buttons"),require("@spscommerce/i18n")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@sps-woodland/tokens`,`@sps-woodland/core/buttons`,`@spscommerce/i18n`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Photo={},e.react,e.spsWoodlandCore,e.spsWoodlandTokens,e.spsWoodlandCoreButtons,e.spscommerceI18n))})(this,function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=l(t),a=0,o=i.length,u;a<o;a++)u=i[a],!d.call(e,u)&&u!==n&&s(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(r=c(t,u))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:o(u(e)),f(t||!e||!e.__esModule||!d.call(e,`default`)?s(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},_=e=>t=>{var n=e.defaultClassName,r=h(h({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)g(c,r,e.defaultVariants)&&(n+=` `+l);return n},v=_({defaultClassName:`pkg_sps-
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/tokens"),require("@sps-woodland/core/buttons"),require("@spscommerce/i18n")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@sps-woodland/tokens`,`@sps-woodland/core/buttons`,`@spscommerce/i18n`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Photo={},e.react,e.spsWoodlandCore,e.spsWoodlandTokens,e.spsWoodlandCoreButtons,e.spscommerceI18n))})(this,function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=l(t),a=0,o=i.length,u;a<o;a++)u=i[a],!d.call(e,u)&&u!==n&&s(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(r=c(t,u))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:o(u(e)),f(t||!e||!e.__esModule||!d.call(e,`default`)?s(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},_=e=>t=>{var n=e.defaultClassName,r=h(h({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)g(c,r,e.defaultVariants)&&(n+=` `+l);return n},v=_({defaultClassName:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w0`,variantClassNames:{placeholder:{true:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w1`,false:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w2`}},defaultVariants:{placeholder:!1},compoundVariants:[]}),y=_({defaultClassName:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w3`,variantClassNames:{mode:{fill:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w4`,fit:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w5`}},defaultVariants:{mode:`fill`},compoundVariants:[]}),b=`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w6`;function x({className:e,src:r,altText:i,mode:a=`fill`,placeholderIcon:o=`photo`,...s}){let c=t.useRef(null),l=t.useRef(null),u=t.useRef(null),d=t.useRef(null),[f,p]=t.useState(),[m,h]=t.useState(!1);t.useEffect(()=>{l.current&&(u.current&&=(window.clearInterval(u.current),null),u.current=window.setInterval(()=>{if(l.current){let e=l.current.getBoundingClientRect();if(e.height){u.current&&=(window.clearInterval(u.current),null);let t=e.width/e.height>1;h(t===(a===`fit`))}}},1e3/60))},[c.current,l.current,r]),t.useEffect(()=>{d.current&&=(window.clearInterval(d.current),null),d.current=window.setInterval(()=>{if(c.current){let e=c.current.getBoundingClientRect();e.width&&(g(e.width),d.current&&=(window.clearInterval(d.current),null))}},1e3/60)},[c.current]);function g(e){if(e){let t=document?.body?.parentElement?.style?.fontSize||`16px`,n=Number(t.substring(0,t.length-2));p(e/n)}}function _(){if(f!==void 0)return f*.05}function x(){if(f!==void 0)return .75*f}return t.createElement(`div`,{ref:c,className:(0,n.cl)(v({placeholder:!r}),e),style:{width:`${f}`&&`${f}rem`,fontSize:`${_()}rem`,height:`${x()}rem`},...s},r?f?t.createElement(`img`,{className:y({mode:m?`fit`:`fill`}),ref:l,src:r,alt:i}):t.createElement(`span`,null):t.createElement(n.Icon,{className:b,icon:o}))}n.Metadata.set(x,{name:`Photo`,props:{src:`string`,altText:`string`,mode:{type:`"fill" | "fit"`,default:`"fill"`},placeholderIcon:`IconName`}});var S=`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba10`,C=`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba11`,w=`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba12`,T=`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba13`,E=_({defaultClassName:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba14`,variantClassNames:{selected:{true:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba15`,false:`pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba16`}},defaultVariants:{selected:!1},compoundVariants:[]});function D({children:e,className:o,...s}){let[c]=(0,n.selectChildren)(e,[{type:x}]),[l,u]=t.useState(0),{t:d}=(0,a.useWoodlandLanguage)();function f(){l+1===c.length?u(0):u(l+1)}function p(){u(l===0?c.length-1:l-1)}return t.createElement(`div`,{className:r.grid.root,...s},t.createElement(`div`,{className:(0,n.cl)(S)},t.createElement(`div`,{className:(0,n.cl)(C)},t.createElement(i.Button,{kind:`icon`,icon:`arrow-left-circle`,"aria-label":d(`photo.previousPhoto`,{defaultValue:`Previous Photo`}),onClick:p}))),t.createElement(`div`,{className:r.grid[10]},t.createElement(`div`,{className:(0,n.cl)(T,r.grid[12])},c[l]),t.createElement(`div`,{className:(0,n.cl)(w,r.grid[12])},c.map((e,r)=>t.createElement(`button`,{tabIndex:0,className:(0,n.cl)(E({selected:r===l})),onClick:()=>u(r)},e)))),t.createElement(`div`,{className:(0,n.cl)(S)},t.createElement(`div`,{className:(0,n.cl)(C)},t.createElement(i.Button,{kind:`icon`,icon:`arrow-right-circle`,"aria-label":d(`photo.nextPhoto`,{defaultValue:`Next Photo`}),onClick:f}))))}e.Photo=x,e.PhotoCarousel=D});
|
|
@@ -2,21 +2,21 @@ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/photo/photo/Photo.css.ts
|
|
4
4
|
var t = e({
|
|
5
|
-
defaultClassName: "pkg_sps-
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w0",
|
|
6
6
|
variantClassNames: { placeholder: {
|
|
7
|
-
true: "pkg_sps-
|
|
8
|
-
false: "pkg_sps-
|
|
7
|
+
true: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w1",
|
|
8
|
+
false: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w2"
|
|
9
9
|
} },
|
|
10
10
|
defaultVariants: { placeholder: !1 },
|
|
11
11
|
compoundVariants: []
|
|
12
12
|
}), n = e({
|
|
13
|
-
defaultClassName: "pkg_sps-
|
|
13
|
+
defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w3",
|
|
14
14
|
variantClassNames: { mode: {
|
|
15
|
-
fill: "pkg_sps-
|
|
16
|
-
fit: "pkg_sps-
|
|
15
|
+
fill: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w4",
|
|
16
|
+
fit: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w5"
|
|
17
17
|
} },
|
|
18
18
|
defaultVariants: { mode: "fill" },
|
|
19
19
|
compoundVariants: []
|
|
20
|
-
}), r = "pkg_sps-
|
|
20
|
+
}), r = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w6";
|
|
21
21
|
//#endregion
|
|
22
22
|
export { n as photo, r as photoPlaceholder, t as photoWrapper };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/photo/photo-carousel/PhotoCarousel.css.ts
|
|
4
|
-
var t = "pkg_sps-
|
|
5
|
-
defaultClassName: "pkg_sps-
|
|
4
|
+
var t = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba10", n = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba11", r = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba12", i = "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba13", a = e({
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba14",
|
|
6
6
|
variantClassNames: { selected: {
|
|
7
|
-
true: "pkg_sps-
|
|
8
|
-
false: "pkg_sps-
|
|
7
|
+
true: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba15",
|
|
8
|
+
false: "pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba16"
|
|
9
9
|
} },
|
|
10
10
|
defaultVariants: { selected: !1 },
|
|
11
11
|
compoundVariants: []
|
package/lib/photo/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w0{vertical-align:middle;justify-content:center;align-items:center;display:flex;overflow:hidden;padding:0!important}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w1{background:#f3f4f4;box-shadow:inset .0625rem 0 #d2d4d4,inset -.0625rem 0 #d2d4d4,inset 0 .0625rem #d2d4d4,inset 0 -.0625rem #d2d4d4,inset 1em 0 #fff,inset -1em 0 #fff,inset 0 1em #fff,inset 0 -1em #fff}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w3{visibility:hidden}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w4{visibility:visible;width:auto;height:100%}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w5{visibility:visible;width:100%;height:auto}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1orib4w6{text-align:center;color:#717779;font-size:6em}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba10{float:right;display:table}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba11{vertical-align:middle;display:table-cell}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba12{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;display:grid}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba13{width:100%;margin-bottom:.5rem;display:block}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba14{cursor:pointer;background:0 0;border:0;padding:0;display:block}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba14:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_photo__version_8_56_5__hash_1744ba16{opacity:.4}
|
|
2
2
|
/*$vite$:1*/
|
package/lib/product-bar/index.js
CHANGED
|
@@ -49,32 +49,32 @@ var h = (e, t, n) => {
|
|
|
49
49
|
}
|
|
50
50
|
for (var [c, l] of e.compoundVariants) h(c, r, e.defaultVariants) && (n += " " + l);
|
|
51
51
|
return n;
|
|
52
|
-
}, _ = "pkg_sps-woodland_core__family_product-
|
|
53
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
52
|
+
}, _ = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux0", v = g({
|
|
53
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux1",
|
|
54
54
|
variantClassNames: { fullWidth: {
|
|
55
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
56
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
55
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux2",
|
|
56
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux3"
|
|
57
57
|
} },
|
|
58
58
|
defaultVariants: { fullWidth: !1 },
|
|
59
59
|
compoundVariants: []
|
|
60
60
|
}), y = g({
|
|
61
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
61
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux4",
|
|
62
62
|
variantClassNames: { hideNameText: {
|
|
63
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
64
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
63
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux5",
|
|
64
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux6"
|
|
65
65
|
} },
|
|
66
66
|
defaultVariants: { hideNameText: !1 },
|
|
67
67
|
compoundVariants: []
|
|
68
|
-
}), b = "pkg_sps-woodland_core__family_product-
|
|
69
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
68
|
+
}), b = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxa", x = g({
|
|
69
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxb",
|
|
70
70
|
variantClassNames: {
|
|
71
71
|
active: {
|
|
72
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
73
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
72
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxc",
|
|
73
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxd"
|
|
74
74
|
},
|
|
75
75
|
disabled: {
|
|
76
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
77
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
76
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxe",
|
|
77
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxf"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
defaultVariants: {
|
|
@@ -82,11 +82,11 @@ var h = (e, t, n) => {
|
|
|
82
82
|
disabled: !1
|
|
83
83
|
},
|
|
84
84
|
compoundVariants: []
|
|
85
|
-
}), S = "pkg_sps-woodland_core__family_product-
|
|
86
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
85
|
+
}), S = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxh", C = g({
|
|
86
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxi",
|
|
87
87
|
variantClassNames: { priorityPlus: {
|
|
88
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
89
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
88
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxj",
|
|
89
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxk"
|
|
90
90
|
} },
|
|
91
91
|
defaultVariants: { priorityPlus: !1 },
|
|
92
92
|
compoundVariants: []
|
|
@@ -101,7 +101,7 @@ function w(t) {
|
|
|
101
101
|
className: i(x({
|
|
102
102
|
active: a,
|
|
103
103
|
disabled: !1
|
|
104
|
-
}), l === "button" && "pkg_sps-woodland_core__family_product-
|
|
104
|
+
}), l === "button" && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxg", t.className)
|
|
105
105
|
};
|
|
106
106
|
return /* @__PURE__ */ e.createElement(l, u, t.children);
|
|
107
107
|
}
|
|
@@ -133,12 +133,12 @@ var E = e.forwardRef(({ children: t, className: n, name: r, logoSrc: a, hideName
|
|
|
133
133
|
...s,
|
|
134
134
|
ref: c
|
|
135
135
|
}, a && /* @__PURE__ */ e.createElement("img", {
|
|
136
|
-
className: "pkg_sps-woodland_core__family_product-
|
|
136
|
+
className: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux7",
|
|
137
137
|
src: a,
|
|
138
138
|
"aria-hidden": "true",
|
|
139
139
|
alt: `${r} Logo`,
|
|
140
140
|
title: r
|
|
141
|
-
}), r && /* @__PURE__ */ e.createElement("span", { className: i("pkg_sps-woodland_core__family_product-
|
|
141
|
+
}), r && /* @__PURE__ */ e.createElement("span", { className: i("pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux8", o && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux9") }, r)), /* @__PURE__ */ e.createElement("span", { className: S }));
|
|
142
142
|
});
|
|
143
143
|
n.set(E, {
|
|
144
144
|
name: "ProductBarName",
|
|
@@ -153,7 +153,7 @@ n.set(E, {
|
|
|
153
153
|
});
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.css.ts
|
|
156
|
-
var D = "pkg_sps-woodland_core__family_product-
|
|
156
|
+
var D = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn0", O = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn1", k = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn2", A = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn3";
|
|
157
157
|
//#endregion
|
|
158
158
|
//#region src/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.tsx
|
|
159
159
|
function j({ items: n, wrapperRef: r }) {
|
|
@@ -181,17 +181,17 @@ function j({ items: n, wrapperRef: r }) {
|
|
|
181
181
|
let t = c;
|
|
182
182
|
return /* @__PURE__ */ e.createElement(l, {
|
|
183
183
|
key: n,
|
|
184
|
-
className: i(A, r && "pkg_sps-woodland_core__family_product-
|
|
184
|
+
className: i(A, r && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4"),
|
|
185
185
|
render: /* @__PURE__ */ e.createElement(t, { to: s })
|
|
186
186
|
}, a);
|
|
187
187
|
}
|
|
188
188
|
return s ? /* @__PURE__ */ e.createElement(l, {
|
|
189
189
|
key: n,
|
|
190
|
-
className: i(A, r && "pkg_sps-woodland_core__family_product-
|
|
190
|
+
className: i(A, r && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4"),
|
|
191
191
|
render: /* @__PURE__ */ e.createElement("a", { href: s })
|
|
192
192
|
}, a) : /* @__PURE__ */ e.createElement(l, {
|
|
193
193
|
key: n,
|
|
194
|
-
className: i(A, r && "pkg_sps-woodland_core__family_product-
|
|
194
|
+
className: i(A, r && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4"),
|
|
195
195
|
onClick: u
|
|
196
196
|
}, a);
|
|
197
197
|
}))));
|
|
@@ -359,7 +359,7 @@ n.set(F, {
|
|
|
359
359
|
});
|
|
360
360
|
//#endregion
|
|
361
361
|
//#region src/product-bar/slack-link/SlackLink.css.ts
|
|
362
|
-
var I = "pkg_sps-woodland_core__family_product-
|
|
362
|
+
var I = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy0", L = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy1";
|
|
363
363
|
//#endregion
|
|
364
364
|
//#region src/product-bar/slack-link/SlackLink.tsx
|
|
365
365
|
function R({ channelId: n, className: r, ...a }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@react-aria/link"),require("@ariakit/react"),require("@spscommerce/i18n")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@react-aria/link`,`@ariakit/react`,`@spscommerce/i18n`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ProductBar={},e.react,e.spsWoodlandCore,e.reactAriaLink,e.ariakitReact,e.spscommerceI18n))})(this,function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=l(t),a=0,o=i.length,u;a<o;a++)u=i[a],!d.call(e,u)&&u!==n&&s(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(r=c(t,u))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:o(u(e)),f(t||!e||!e.__esModule||!d.call(e,`default`)?s(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},_=e=>t=>{var n=e.defaultClassName,r=h(h({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)g(c,r,e.defaultVariants)&&(n+=` `+l);return n},v=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux0`,y=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux1`,variantClassNames:{fullWidth:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux2`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux3`}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),b=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux4`,variantClassNames:{hideNameText:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux5`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux6`}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),x=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxa`,S=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxb`,variantClassNames:{active:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxc`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxd`},disabled:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxe`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxf`}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),C=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxh`,w=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxi`,variantClassNames:{priorityPlus:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxj`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxk`}},defaultVariants:{priorityPlus:!1},compoundVariants:[]});function T(e){let i=t.useRef(null),{linkProps:a}=(0,r.useLink)(e,i),{active:o,priority:s,...c}=e,l=e.as??(e.href?`a`:`button`),u={...c,...a,ref:i,className:(0,n.cl)(S({active:o,disabled:!1}),l===`button`&&`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjuxg`,e.className)};return t.createElement(l,u,e.children)}n.Metadata.set(T,{name:`Product Bar Tab`,props:{active:{type:`boolean`,required:!0},href:{type:`string`},priority:{type:`number`}}});function E(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())}var D=t.forwardRef(({children:e,className:r,name:i,logoSrc:a,hideNameText:o=!1,...s},c)=>{let l=!!s.onClick&&!(`href`in s&&s.href);return t.createElement(t.Fragment,null,t.createElement(`a`,{className:(0,n.cl)(b({hideNameText:o}),r),...l?{role:`button`,tabIndex:0,onKeyDown:E}:{},...s,ref:c},a&&t.createElement(`img`,{className:`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux7`,src:a,"aria-hidden":`true`,alt:`${i} Logo`,title:i}),i&&t.createElement(`span`,{className:(0,n.cl)(`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux8`,o&&`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux9`)},i)),t.createElement(`span`,{className:C}))});n.Metadata.set(D,{name:`ProductBarName`,props:{name:{type:`string`},logoSrc:{type:`string`},hideNameText:{type:`boolean`,default:`false`}}});var O=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_5klvkn0`,k=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_5klvkn1`,A=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_5klvkn2`,j=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_5klvkn3`;function M({items:e,wrapperRef:r}){let{t:o}=(0,a.useWoodlandLanguage)();if(e.length===0)return null;let s=e.some(e=>e.props?.active),c=o(`productBar.more`,{defaultValue:`More`});return t.createElement(`span`,{ref:r},t.createElement(i.MenuProvider,null,t.createElement(i.MenuButton,{className:(0,n.cl)(S({active:s,disabled:!1}),O),"aria-label":c},c,t.createElement(n.Icon,{icon:`chevron-down`,className:k,"aria-hidden":`true`})),t.createElement(i.Menu,{className:A,gutter:4},e.map((e,r)=>{let a=e.props?.active,o=e.props?.children,s=e.props?.onPress,c=e.props?.href,l=e.props?.as,u=()=>{s&&s()};if(c&&l){let e=l;return t.createElement(i.MenuItem,{key:r,className:(0,n.cl)(j,a&&`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_5klvkn4`),render:t.createElement(e,{to:c})},o)}return c?t.createElement(i.MenuItem,{key:r,className:(0,n.cl)(j,a&&`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_5klvkn4`),render:t.createElement(`a`,{href:c})},o):t.createElement(i.MenuItem,{key:r,className:(0,n.cl)(j,a&&`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_5klvkn4`),onClick:u},o)}))))}function N(e,n={}){let{enabled:r=!0,minVisibleItems:i=1,debounceMs:a=16}=n,o=t.useRef(null),s=t.useRef(null),c=t.useRef(null),l=t.useRef(null),u=t.useRef(null),d=t.useRef([]),f=t.useRef(0),p=t.useRef(0),m=t.useRef(!1),[h,g]=t.useState(e.length),[_,v]=t.useState(!1),y=t.useCallback(()=>{if(!o.current)return!1;let t=o.current,n=Array.from(t.children),r=c.current;r&&(f.current=r.getBoundingClientRect().width);let i=n.filter(e=>e!==r);if(i.length<e.length)return!1;if(d.current=i.map(e=>e.getBoundingClientRect().width),u.current){let e=u.current.querySelector(`span:last-of-type`);if(e){let t=e.getBoundingClientRect().width,n=getComputedStyle(u.current),r=parseFloat(n.marginRight)||0,i=Math.max(0,r-8);p.current=t+i}}return m.current=!0,!0},[e.length]),b=t.useCallback(()=>{if(!s.current)return 0;let e=s.current,t=e.getBoundingClientRect(),n=getComputedStyle(e),r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),i=parseFloat(n.gap)||0,a=r,c=Array.from(e.children),u=c.filter(e=>getComputedStyle(e).display!==`none`);u.length>1&&(a+=i*(u.length-1));for(let e of c){if(e===o.current)continue;let t=getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);if(e===l.current){let t=Array.from(e.children),r=getComputedStyle(e),i=parseFloat(r.gap)||0;for(let e of t){let t=getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);a+=e.getBoundingClientRect().width+n}t.length>1&&(a+=i*(t.length-1)),a+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a+=n}else a+=e.getBoundingClientRect().width+n}return Math.max(0,t.width-a-2)},[]),x=t.useRef(!1),S=t.useCallback(()=>{if(!r||!m.current){v(!1),x.current=!1;return}let t=b(),n=d.current,a=f.current||100,o=p.current||0;if(x.current&&o>0&&(t-=o),n.length===0||t<=0||n.reduce((e,t)=>e+t,0)<=t){g(e.length),v(!1),x.current=!1;return}let s=0,c=0,l=t-a;for(let e=0;e<n.length;e++){let t=n[e];if(s+t<=l)s+=t,c++;else break}let u=Math.min(i,e.length),h=Math.max(c,u),_=n.slice(0,u).reduce((e,t)=>e+t,0)+a,y=c<u&&_>t&&o>0,S=!y&&t>_+o+20,C=x.current;y&&!x.current?C=!0:S&&x.current&&(C=!1),C!==x.current&&(x.current=C,v(C)),g(h)},[r,e.length,i,b]);return t.useEffect(()=>{r&&(m.current=!1,d.current=[]),g(e.length)},[r,e.length]),t.useLayoutEffect(()=>{r&&o.current&&y()&&S()}),t.useEffect(()=>{if(!r)return;let e,t=new ResizeObserver(()=>{clearTimeout(e),e=setTimeout(()=>{m.current||y(),S()},a)});return s.current&&t.observe(s.current),()=>{clearTimeout(e),t.disconnect()}},[r,y,S,a]),{visibleItems:r?e.slice(0,h):e,overflowItems:r&&h<e.length?e.slice(h):[],containerRef:o,parentRef:s,overflowButtonRef:c,contentRef:l,brandRef:u,hideProductName:_}}function P(e){return[...e].sort((e,t)=>{let n=e.props?.priority??1/0,r=t.props?.priority??1/0;return n===r?0:n-r})}function F(e,t){if(t.length===0)return{visible:e,overflow:t};let n=t.findIndex(e=>e.props?.active);if(n===-1)return{visible:e,overflow:t};let r=t[n],i=e[e.length-1];return{visible:[...e.slice(0,-1),r],overflow:[...t.slice(0,n),i,...t.slice(n+1)]}}function I({fullWidth:e,enablePriorityPlus:r=!0,children:i,className:a,...o}){let s=t.useRef(null),[c,l,u]=(0,n.selectChildren)(i,[{type:D},{type:T}]),{visibleItems:d,overflowItems:f,containerRef:p,parentRef:m,overflowButtonRef:h,contentRef:g,brandRef:_,hideProductName:b}=N(t.useMemo(()=>r?P(l):l,[r,l]),{enabled:r}),{visible:S,overflow:C}=t.useMemo(()=>F(d,f),[d,f]),E=t.useMemo(()=>{if(!r||!c||c.length===0)return c;let e=c[0];return t.isValidElement(e)?[t.cloneElement(e,{hideNameText:b,ref:_})]:c},[r,c,b,_]);return t.createElement(`div`,{className:(0,n.cl)(v,a),...o,ref:s},t.createElement(`nav`,{className:y({fullWidth:e}),ref:m},E,t.createElement(`div`,{className:w({priorityPlus:r}),ref:p},S,C.length>0&&t.createElement(M,{items:C,wrapperRef:h})),t.createElement(`div`,{className:x,ref:g},t.createElement(n.PortalContext.Provider,{value:{parentElementRef:s,fixed:!0}},u))))}n.Metadata.set(I,{name:`ProductBar`,props:{fullWidth:{type:`boolean`},enablePriorityPlus:{type:`boolean`,default:`true`}}});var L=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_pqijiy0`,R=`pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_pqijiy1`;function z({channelId:e,className:r,...i}){let{t:o}=(0,a.useWoodlandLanguage)();return t.createElement(`a`,{className:(0,n.cl)(L,r),target:`_blank`,rel:`noreferrer`,href:`https://spscommerce.slack.com/archives/${e}`,...i},t.createElement(n.Icon,{className:R,icon:`conversation`,"aria-hidden":`true`}),t.createElement(`span`,null,o(`slackLink.label`,{defaultValue:`Chat`})))}n.Metadata.set(z,{name:`Slack Link`,props:{channelId:{type:`string`,required:!0}}}),e.ProductBar=I,e.ProductBarName=D,e.ProductBarTab=T,e.SlackLink=z});
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@react-aria/link"),require("@ariakit/react"),require("@spscommerce/i18n")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@react-aria/link`,`@ariakit/react`,`@spscommerce/i18n`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ProductBar={},e.react,e.spsWoodlandCore,e.reactAriaLink,e.ariakitReact,e.spscommerceI18n))})(this,function(e,t,n,r,i,a){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var o=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=l(t),a=0,o=i.length,u;a<o;a++)u=i[a],!d.call(e,u)&&u!==n&&s(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(r=c(t,u))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:o(u(e)),f(t||!e||!e.__esModule||!d.call(e,`default`)?s(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},_=e=>t=>{var n=e.defaultClassName,r=h(h({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)g(c,r,e.defaultVariants)&&(n+=` `+l);return n},v=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux0`,y=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux1`,variantClassNames:{fullWidth:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux2`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux3`}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),b=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux4`,variantClassNames:{hideNameText:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux5`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux6`}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),x=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxa`,S=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxb`,variantClassNames:{active:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxc`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxd`},disabled:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxe`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxf`}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),C=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxh`,w=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxi`,variantClassNames:{priorityPlus:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxj`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxk`}},defaultVariants:{priorityPlus:!1},compoundVariants:[]});function T(e){let i=t.useRef(null),{linkProps:a}=(0,r.useLink)(e,i),{active:o,priority:s,...c}=e,l=e.as??(e.href?`a`:`button`),u={...c,...a,ref:i,className:(0,n.cl)(S({active:o,disabled:!1}),l===`button`&&`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxg`,e.className)};return t.createElement(l,u,e.children)}n.Metadata.set(T,{name:`Product Bar Tab`,props:{active:{type:`boolean`,required:!0},href:{type:`string`},priority:{type:`number`}}});function E(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())}var D=t.forwardRef(({children:e,className:r,name:i,logoSrc:a,hideNameText:o=!1,...s},c)=>{let l=!!s.onClick&&!(`href`in s&&s.href);return t.createElement(t.Fragment,null,t.createElement(`a`,{className:(0,n.cl)(b({hideNameText:o}),r),...l?{role:`button`,tabIndex:0,onKeyDown:E}:{},...s,ref:c},a&&t.createElement(`img`,{className:`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux7`,src:a,"aria-hidden":`true`,alt:`${i} Logo`,title:i}),i&&t.createElement(`span`,{className:(0,n.cl)(`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux8`,o&&`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux9`)},i)),t.createElement(`span`,{className:C}))});n.Metadata.set(D,{name:`ProductBarName`,props:{name:{type:`string`},logoSrc:{type:`string`},hideNameText:{type:`boolean`,default:`false`}}});var O=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn0`,k=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn1`,A=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn2`,j=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn3`;function M({items:e,wrapperRef:r}){let{t:o}=(0,a.useWoodlandLanguage)();if(e.length===0)return null;let s=e.some(e=>e.props?.active),c=o(`productBar.more`,{defaultValue:`More`});return t.createElement(`span`,{ref:r},t.createElement(i.MenuProvider,null,t.createElement(i.MenuButton,{className:(0,n.cl)(S({active:s,disabled:!1}),O),"aria-label":c},c,t.createElement(n.Icon,{icon:`chevron-down`,className:k,"aria-hidden":`true`})),t.createElement(i.Menu,{className:A,gutter:4},e.map((e,r)=>{let a=e.props?.active,o=e.props?.children,s=e.props?.onPress,c=e.props?.href,l=e.props?.as,u=()=>{s&&s()};if(c&&l){let e=l;return t.createElement(i.MenuItem,{key:r,className:(0,n.cl)(j,a&&`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4`),render:t.createElement(e,{to:c})},o)}return c?t.createElement(i.MenuItem,{key:r,className:(0,n.cl)(j,a&&`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4`),render:t.createElement(`a`,{href:c})},o):t.createElement(i.MenuItem,{key:r,className:(0,n.cl)(j,a&&`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4`),onClick:u},o)}))))}function N(e,n={}){let{enabled:r=!0,minVisibleItems:i=1,debounceMs:a=16}=n,o=t.useRef(null),s=t.useRef(null),c=t.useRef(null),l=t.useRef(null),u=t.useRef(null),d=t.useRef([]),f=t.useRef(0),p=t.useRef(0),m=t.useRef(!1),[h,g]=t.useState(e.length),[_,v]=t.useState(!1),y=t.useCallback(()=>{if(!o.current)return!1;let t=o.current,n=Array.from(t.children),r=c.current;r&&(f.current=r.getBoundingClientRect().width);let i=n.filter(e=>e!==r);if(i.length<e.length)return!1;if(d.current=i.map(e=>e.getBoundingClientRect().width),u.current){let e=u.current.querySelector(`span:last-of-type`);if(e){let t=e.getBoundingClientRect().width,n=getComputedStyle(u.current),r=parseFloat(n.marginRight)||0,i=Math.max(0,r-8);p.current=t+i}}return m.current=!0,!0},[e.length]),b=t.useCallback(()=>{if(!s.current)return 0;let e=s.current,t=e.getBoundingClientRect(),n=getComputedStyle(e),r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),i=parseFloat(n.gap)||0,a=r,c=Array.from(e.children),u=c.filter(e=>getComputedStyle(e).display!==`none`);u.length>1&&(a+=i*(u.length-1));for(let e of c){if(e===o.current)continue;let t=getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);if(e===l.current){let t=Array.from(e.children),r=getComputedStyle(e),i=parseFloat(r.gap)||0;for(let e of t){let t=getComputedStyle(e),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);a+=e.getBoundingClientRect().width+n}t.length>1&&(a+=i*(t.length-1)),a+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a+=n}else a+=e.getBoundingClientRect().width+n}return Math.max(0,t.width-a-2)},[]),x=t.useRef(!1),S=t.useCallback(()=>{if(!r||!m.current){v(!1),x.current=!1;return}let t=b(),n=d.current,a=f.current||100,o=p.current||0;if(x.current&&o>0&&(t-=o),n.length===0||t<=0||n.reduce((e,t)=>e+t,0)<=t){g(e.length),v(!1),x.current=!1;return}let s=0,c=0,l=t-a;for(let e=0;e<n.length;e++){let t=n[e];if(s+t<=l)s+=t,c++;else break}let u=Math.min(i,e.length),h=Math.max(c,u),_=n.slice(0,u).reduce((e,t)=>e+t,0)+a,y=c<u&&_>t&&o>0,S=!y&&t>_+o+20,C=x.current;y&&!x.current?C=!0:S&&x.current&&(C=!1),C!==x.current&&(x.current=C,v(C)),g(h)},[r,e.length,i,b]);return t.useEffect(()=>{r&&(m.current=!1,d.current=[]),g(e.length)},[r,e.length]),t.useLayoutEffect(()=>{r&&o.current&&y()&&S()}),t.useEffect(()=>{if(!r)return;let e,t=new ResizeObserver(()=>{clearTimeout(e),e=setTimeout(()=>{m.current||y(),S()},a)});return s.current&&t.observe(s.current),()=>{clearTimeout(e),t.disconnect()}},[r,y,S,a]),{visibleItems:r?e.slice(0,h):e,overflowItems:r&&h<e.length?e.slice(h):[],containerRef:o,parentRef:s,overflowButtonRef:c,contentRef:l,brandRef:u,hideProductName:_}}function P(e){return[...e].sort((e,t)=>{let n=e.props?.priority??1/0,r=t.props?.priority??1/0;return n===r?0:n-r})}function F(e,t){if(t.length===0)return{visible:e,overflow:t};let n=t.findIndex(e=>e.props?.active);if(n===-1)return{visible:e,overflow:t};let r=t[n],i=e[e.length-1];return{visible:[...e.slice(0,-1),r],overflow:[...t.slice(0,n),i,...t.slice(n+1)]}}function I({fullWidth:e,enablePriorityPlus:r=!0,children:i,className:a,...o}){let s=t.useRef(null),[c,l,u]=(0,n.selectChildren)(i,[{type:D},{type:T}]),{visibleItems:d,overflowItems:f,containerRef:p,parentRef:m,overflowButtonRef:h,contentRef:g,brandRef:_,hideProductName:b}=N(t.useMemo(()=>r?P(l):l,[r,l]),{enabled:r}),{visible:S,overflow:C}=t.useMemo(()=>F(d,f),[d,f]),E=t.useMemo(()=>{if(!r||!c||c.length===0)return c;let e=c[0];return t.isValidElement(e)?[t.cloneElement(e,{hideNameText:b,ref:_})]:c},[r,c,b,_]);return t.createElement(`div`,{className:(0,n.cl)(v,a),...o,ref:s},t.createElement(`nav`,{className:y({fullWidth:e}),ref:m},E,t.createElement(`div`,{className:w({priorityPlus:r}),ref:p},S,C.length>0&&t.createElement(M,{items:C,wrapperRef:h})),t.createElement(`div`,{className:x,ref:g},t.createElement(n.PortalContext.Provider,{value:{parentElementRef:s,fixed:!0}},u))))}n.Metadata.set(I,{name:`ProductBar`,props:{fullWidth:{type:`boolean`},enablePriorityPlus:{type:`boolean`,default:`true`}}});var L=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy0`,R=`pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy1`;function z({channelId:e,className:r,...i}){let{t:o}=(0,a.useWoodlandLanguage)();return t.createElement(`a`,{className:(0,n.cl)(L,r),target:`_blank`,rel:`noreferrer`,href:`https://spscommerce.slack.com/archives/${e}`,...i},t.createElement(n.Icon,{className:R,icon:`conversation`,"aria-hidden":`true`}),t.createElement(`span`,null,o(`slackLink.label`,{defaultValue:`Chat`})))}n.Metadata.set(z,{name:`Slack Link`,props:{channelId:{type:`string`,required:!0}}}),e.ProductBar=I,e.ProductBarName=D,e.ProductBarTab=T,e.SlackLink=z});
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/product-bar/product-bar/ProductBar.css.ts
|
|
4
|
-
var t = "pkg_sps-woodland_core__family_product-
|
|
5
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
4
|
+
var t = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux0", n = e({
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux1",
|
|
6
6
|
variantClassNames: { fullWidth: {
|
|
7
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
8
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
7
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux2",
|
|
8
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux3"
|
|
9
9
|
} },
|
|
10
10
|
defaultVariants: { fullWidth: !1 },
|
|
11
11
|
compoundVariants: []
|
|
12
12
|
}), r = e({
|
|
13
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
13
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux4",
|
|
14
14
|
variantClassNames: { hideNameText: {
|
|
15
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
16
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
15
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux5",
|
|
16
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux6"
|
|
17
17
|
} },
|
|
18
18
|
defaultVariants: { hideNameText: !1 },
|
|
19
19
|
compoundVariants: []
|
|
20
|
-
}), i = "pkg_sps-woodland_core__family_product-
|
|
21
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
20
|
+
}), i = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux7", a = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux8", o = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux9", s = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxa", c = e({
|
|
21
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxb",
|
|
22
22
|
variantClassNames: {
|
|
23
23
|
active: {
|
|
24
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
25
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
24
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxc",
|
|
25
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxd"
|
|
26
26
|
},
|
|
27
27
|
disabled: {
|
|
28
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
29
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
28
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxe",
|
|
29
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxf"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
defaultVariants: {
|
|
@@ -34,11 +34,11 @@ var t = "pkg_sps-woodland_core__family_product-bar__version_8_56_4__hash_g6gjux0
|
|
|
34
34
|
disabled: !1
|
|
35
35
|
},
|
|
36
36
|
compoundVariants: []
|
|
37
|
-
}), l = "pkg_sps-woodland_core__family_product-
|
|
38
|
-
defaultClassName: "pkg_sps-woodland_core__family_product-
|
|
37
|
+
}), l = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxg", u = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxh", d = e({
|
|
38
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxi",
|
|
39
39
|
variantClassNames: { priorityPlus: {
|
|
40
|
-
true: "pkg_sps-woodland_core__family_product-
|
|
41
|
-
false: "pkg_sps-woodland_core__family_product-
|
|
40
|
+
true: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxj",
|
|
41
|
+
false: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxk"
|
|
42
42
|
} },
|
|
43
43
|
defaultVariants: { priorityPlus: !1 },
|
|
44
44
|
compoundVariants: []
|
|
@@ -17,12 +17,12 @@ var o = i.forwardRef(({ children: n, className: o, name: s, logoSrc: c, hideName
|
|
|
17
17
|
...u,
|
|
18
18
|
ref: d
|
|
19
19
|
}, c && /* @__PURE__ */ i.createElement("img", {
|
|
20
|
-
className: "pkg_sps-woodland_core__family_product-
|
|
20
|
+
className: "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux7",
|
|
21
21
|
src: c,
|
|
22
22
|
"aria-hidden": "true",
|
|
23
23
|
alt: `${s} Logo`,
|
|
24
24
|
title: s
|
|
25
|
-
}), s && /* @__PURE__ */ i.createElement("span", { className: r("pkg_sps-woodland_core__family_product-
|
|
25
|
+
}), s && /* @__PURE__ */ i.createElement("span", { className: r("pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux8", l && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux9") }, s)), /* @__PURE__ */ i.createElement("span", { className: t }));
|
|
26
26
|
});
|
|
27
27
|
n.set(o, {
|
|
28
28
|
name: "ProductBarName",
|
|
@@ -30,17 +30,17 @@ function p({ items: p, wrapperRef: m }) {
|
|
|
30
30
|
let e = l;
|
|
31
31
|
return /* @__PURE__ */ s.createElement(d, {
|
|
32
32
|
key: t,
|
|
33
|
-
className: o(i, n && "pkg_sps-woodland_core__family_product-
|
|
33
|
+
className: o(i, n && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4"),
|
|
34
34
|
render: /* @__PURE__ */ s.createElement(e, { to: c })
|
|
35
35
|
}, r);
|
|
36
36
|
}
|
|
37
37
|
return c ? /* @__PURE__ */ s.createElement(d, {
|
|
38
38
|
key: t,
|
|
39
|
-
className: o(i, n && "pkg_sps-woodland_core__family_product-
|
|
39
|
+
className: o(i, n && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4"),
|
|
40
40
|
render: /* @__PURE__ */ s.createElement("a", { href: c })
|
|
41
41
|
}, r) : /* @__PURE__ */ s.createElement(d, {
|
|
42
42
|
key: t,
|
|
43
|
-
className: o(i, n && "pkg_sps-woodland_core__family_product-
|
|
43
|
+
className: o(i, n && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4"),
|
|
44
44
|
onClick: u
|
|
45
45
|
}, r);
|
|
46
46
|
}))));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.css.ts
|
|
3
|
-
var e = "pkg_sps-woodland_core__family_product-
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn0", t = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn1", n = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn2", r = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn3", i = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4";
|
|
4
4
|
//#endregion
|
|
5
5
|
export { e as overflowButton, t as overflowButtonChevron, n as overflowMenu, r as overflowMenuItem, i as overflowMenuItemActive };
|
|
@@ -11,7 +11,7 @@ function a(t) {
|
|
|
11
11
|
className: n(e({
|
|
12
12
|
active: s,
|
|
13
13
|
disabled: !1
|
|
14
|
-
}), u === "button" && "pkg_sps-woodland_core__family_product-
|
|
14
|
+
}), u === "button" && "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxg", t.className)
|
|
15
15
|
};
|
|
16
16
|
return /* @__PURE__ */ r.createElement(u, d, t.children);
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/product-bar/slack-link/SlackLink.css.ts
|
|
3
|
-
var e = "pkg_sps-woodland_core__family_product-
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy0", t = "pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy1";
|
|
4
4
|
//#endregion
|
|
5
5
|
export { e as slackLink, t as slackLinkIcon };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_product-
|
|
1
|
+
.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux0{background-color:#fff;justify-content:center;display:flex;position:fixed;top:0;left:0;right:0;box-shadow:0 1px 2px #00000026}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux1{background-color:#fff;align-items:center;width:1280px;min-height:3.75rem;padding:0 2rem;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux2{width:100%}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux4{cursor:pointer;align-content:center;margin-right:2rem;text-decoration:none;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux4:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux4:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux5{margin-right:.5rem}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux7{align-content:center;width:1.5rem;height:1.5rem;margin-right:.5rem;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux8{color:#1f282c;align-content:center;font-size:1rem;font-weight:600;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjux9{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxa{text-align:right;flex:1}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxb{cursor:pointer;justify-content:center;align-items:center;height:3.625rem;margin-top:.125rem;padding:0 1rem;text-decoration:none;display:flex;color:#4b5356!important;font-size:.875rem!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxb:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxb:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxc{box-shadow:inset 0 -.125rem #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxe{color:#d2d4d4}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxg{font:inherit;background:0 0;border:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxg:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxh{background:#d2d4d4;width:.0625rem;height:2.125rem;margin:0 1rem 0 0;display:inline-block}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_g6gjuxi{flex-direction:row;margin-bottom:0;padding-left:0;list-style:none;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn0{font:inherit;background:0 0;border:none;flex-shrink:0;gap:.25rem}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn1{font-size:.75rem;transition:transform .15s}[aria-expanded=true] .pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn1{transform:rotate(180deg)}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn2{overscroll-behavior:contain;z-index:100;background:#fff;border:.0625rem solid #717779;border-radius:.25rem;min-width:120px;overflow-y:auto;box-shadow:0 2px 8px #00000026}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn2:focus{outline-offset:.125rem;outline:.125rem solid #007db8!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn3{color:#4b5356;cursor:pointer;white-space:nowrap;align-items:center;padding:.5rem 1rem;font-size:.875rem;font-weight:400;text-decoration:none;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn3:hover{background:#e6f2f8;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn3:focus{outline-offset:-.125rem;background:#e6f2f8;outline:.125rem solid #007db8!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_5klvkn4{font-weight:600;box-shadow:inset 3px 0 #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy0{align-items:center;font-size:.875rem;text-decoration:none;display:inline-flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy0:hover{border-bottom:.0625rem solid #007db8;text-decoration:none!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_5__hash_pqijiy1{margin-right:.25rem;font-size:1rem}
|
|
2
2
|
/*$vite$:1*/
|