@sps-woodland/core 8.53.12 → 8.53.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/action-bar/action-bar/ActionBar.ve.js +8 -8
- package/lib/action-bar/index.js +30 -30
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.ve.js +19 -19
- package/lib/add-to-list/index.js +183 -183
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.ve.js +4 -4
- package/lib/buttons/index.js +48 -48
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +2 -2
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +2 -2
- package/lib/cards/index.js +21 -21
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +13 -13
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +2 -2
- package/lib/content-row/index.js +152 -152
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +2 -2
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +7 -7
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +3 -3
- package/lib/content-tiles/index.js +59 -59
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +1 -1
- package/lib/core.css +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +3 -3
- package/lib/dropdowns/index.js +84 -84
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.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 +3 -3
- package/lib/feedback-block/index.js +54 -54
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.ve.js +14 -14
- package/lib/file-upload/index.js +110 -110
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +5 -5
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +2 -2
- package/lib/filter-tiles/index.js +55 -55
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +1 -1
- package/lib/focused-task/focused-task/FocusedTask.ve.js +9 -9
- package/lib/focused-task/index.js +49 -49
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.ve.js +7 -7
- package/lib/growler/Sonner.ve.js +7 -7
- package/lib/growler/index.js +80 -80
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/style.css +1 -1
- package/lib/index.js +104 -104
- package/lib/index.umd.cjs +2 -2
- package/lib/insight-card/InsightCard.ve.js +7 -7
- package/lib/insight-card/index.js +59 -59
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +53 -53
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +2 -2
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +3 -3
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +5 -5
- package/lib/list-bar/index.js +88 -88
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +12 -12
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +8 -8
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +29 -29
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +2 -2
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +86 -86
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +9 -9
- package/lib/modal/style.css +1 -1
- package/lib/page-title/index.js +17 -17
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +3 -3
- package/lib/page-title/page-title/PageTitle.ve.js +4 -4
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +67 -67
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.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 +62 -62
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +10 -10
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +5 -5
- package/lib/product-bar/slack-link/SlackLink.ve.js +2 -2
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +69 -69
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +20 -20
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +79 -79
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +10 -10
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +4 -4
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +85 -85
- package/lib/rich-text-editor/index.umd.cjs +2 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +2 -2
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +5 -5
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +8 -8
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +78 -78
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +12 -12
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +2 -2
- package/lib/sorting-header/index.js +125 -125
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +3 -3
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +2 -2
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +100 -100
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +2 -2
- package/lib/tabs/tabs/Tabs.ve.js +5 -5
- package/lib/tags/clickable-tag/ClickableTag.ve.js +4 -4
- package/lib/tags/index.js +80 -80
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +2 -2
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +3 -3
- package/lib/zero-state/ZeroState.ve.js +6 -6
- package/lib/zero-state/index.js +42 -42
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_,V){typeof exports=="object"&&typeof module<"u"?V(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"],V):(_=typeof globalThis<"u"?globalThis:_||self,V(_.ProductBar={},_.react,_.spsWoodlandCore,_.reactAriaLink,_.ariakitReact,_.spscommerceI18n))})(this,(function(_,V,c,te,P,U){"use strict";function ne(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 n=ne(V);function re(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function X(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Y(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?X(Object(t),!0).forEach(function(a){re(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var ae=(e,r,t)=>{for(var a of Object.keys(e)){var s;if(e[a]!==((s=r[a])!==null&&s!==void 0?s:t[a]))return!1}return!0},D=e=>r=>{var t=e.defaultClassName,a=Y(Y({},e.defaultVariants),r);for(var s in a){var o,l=(o=a[s])!==null&&o!==void 0?o:e.defaultVariants[s];if(l!=null){var i=l;typeof i=="boolean"&&(i=i===!0?"true":"false");var h=e.variantClassNames[s][i];h&&(t+=" "+h)}}for(var[g,d]of e.compoundVariants)ae(g,a,e.defaultVariants)&&(t+=" "+d);return t},se="pkg_sps-woodland_core__version_8_53_12__hash_g6gjux0",oe=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjux1",variantClassNames:{fullWidth:{true:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjux2",false:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjux3"}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),le=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjux4",variantClassNames:{hideNameText:{true:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjux5",false:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjux6"}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),ie="pkg_sps-woodland_core__version_8_53_12__hash_g6gjux7",ce="pkg_sps-woodland_core__version_8_53_12__hash_g6gjux8",ue="pkg_sps-woodland_core__version_8_53_12__hash_g6gjux9",_e="pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxa",Z=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxb",variantClassNames:{active:{true:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxc",false:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxd"},disabled:{true:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxe",false:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxf"}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),de="pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxg",fe=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxh",variantClassNames:{priorityPlus:{true:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxi",false:"pkg_sps-woodland_core__version_8_53_12__hash_g6gjuxj"}},defaultVariants:{priorityPlus:!1},compoundVariants:[]});function G(e){const r=n.useRef(null),{linkProps:t}=te.useLink(e,r),{active:a,priority:s,...o}=e,l={...o,...t,ref:r,className:c.cl(Z({active:a,disabled:!1}),e.className)},i=e.as??(e.href?"a":"span");return n.createElement(i,{...l},e.children)}c.Metadata.set(G,{name:"Product Bar Tab",props:{active:{type:"boolean",required:!0},href:{type:"string"},priority:{type:"number"}}});const K=n.forwardRef(({children:e,className:r,name:t,logoSrc:a,hideNameText:s=!1,...o},l)=>n.createElement(n.Fragment,null,n.createElement("a",{className:c.cl(le({hideNameText:s}),r),...o,ref:l},a&&n.createElement("img",{className:ie,src:a,"aria-hidden":"true",alt:`${t} Logo`,title:t}),t&&n.createElement("span",{className:c.cl(ce,s&&ue)},t)),n.createElement("span",{className:de})));c.Metadata.set(K,{name:"ProductBarName",props:{name:{type:"string"},logoSrc:{type:"string"},hideNameText:{type:"boolean",default:"false"}}});var pe="pkg_sps-woodland_core__version_8_53_12__hash_5klvkn0",me="pkg_sps-woodland_core__version_8_53_12__hash_5klvkn1",he="pkg_sps-woodland_core__version_8_53_12__hash_5klvkn2",J="pkg_sps-woodland_core__version_8_53_12__hash_5klvkn3",Q="pkg_sps-woodland_core__version_8_53_12__hash_5klvkn4";function ge({items:e,wrapperRef:r}){const{t}=U.useWoodlandLanguage();if(e.length===0)return null;const a=e.some(o=>o.props?.active),s=t("productBar.more",{defaultValue:"More"});return n.createElement("span",{ref:r},n.createElement(P.MenuProvider,null,n.createElement(P.MenuButton,{className:c.cl(Z({active:a,disabled:!1}),pe),"aria-label":s},s,n.createElement(c.Icon,{icon:"chevron-down",className:me,"aria-hidden":"true"})),n.createElement(P.Menu,{className:he,gutter:4},e.map((o,l)=>{const i=o.props?.active,h=o.props?.children,g=o.props?.onPress,d=o.props?.href,N=o.props?.as,M=()=>{g&&g()};if(d&&N){const C=N;return n.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),render:n.createElement(C,{to:d})},h)}return d?n.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),render:n.createElement("a",{href:d})},h):n.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),onClick:M},h)}))))}function ve(e,r={}){const{enabled:t=!0,minVisibleItems:a=1,debounceMs:s=16}=r,o=n.useRef(null),l=n.useRef(null),i=n.useRef(null),h=n.useRef(null),g=n.useRef(null),d=n.useRef([]),N=n.useRef(0),M=n.useRef(0),C=n.useRef(!1),[W,B]=n.useState(e.length),[H,j]=n.useState(!1),L=n.useCallback(()=>{if(!o.current)return!1;const u=o.current,b=Array.from(u.children),f=i.current;f&&(N.current=f.getBoundingClientRect().width);const k=b.filter(y=>y!==f);if(k.length<e.length)return!1;if(d.current=k.map(y=>y.getBoundingClientRect().width),g.current){const y=g.current.querySelector("span:last-of-type");if(y){const p=y.getBoundingClientRect().width,E=getComputedStyle(g.current),S=parseFloat(E.marginRight)||0,m=Math.max(0,S-8);M.current=p+m}}return C.current=!0,!0},[e.length]),F=n.useCallback(()=>{if(!l.current)return 0;const u=l.current,b=u.getBoundingClientRect(),f=getComputedStyle(u),k=parseFloat(f.paddingLeft)+parseFloat(f.paddingRight),y=parseFloat(f.gap)||0;let p=k;const E=Array.from(u.children),S=E.filter(m=>getComputedStyle(m).display!=="none");S.length>1&&(p+=y*(S.length-1));for(const m of E){if(m===o.current)continue;const z=getComputedStyle(m),A=parseFloat(z.marginLeft)+parseFloat(z.marginRight);if(m===h.current){const x=Array.from(m.children),q=getComputedStyle(m),I=parseFloat(q.gap)||0;for(const w of x){const R=getComputedStyle(w),Ce=parseFloat(R.marginLeft)+parseFloat(R.marginRight);p+=w.getBoundingClientRect().width+Ce}x.length>1&&(p+=I*(x.length-1)),p+=parseFloat(q.paddingLeft)+parseFloat(q.paddingRight),p+=A}else p+=m.getBoundingClientRect().width+A}return Math.max(0,b.width-p-2)},[]),v=n.useRef(!1),O=n.useCallback(()=>{if(!t||!C.current){j(!1),v.current=!1;return}let u=F();const b=d.current,f=N.current||100,k=M.current||0;if(v.current&&k>0&&(u-=k),b.length===0||u<=0){B(e.length),j(!1),v.current=!1;return}if(b.reduce((w,R)=>w+R,0)<=u){B(e.length),j(!1),v.current=!1;return}let p=0,E=0;const S=u-f;for(let w=0;w<b.length;w++){const R=b[w];if(p+R<=S)p+=R,E++;else break}const T=Math.min(a,e.length),m=Math.max(E,T),A=b.slice(0,T).reduce((w,R)=>w+R,0)+f,x=E<T&&A>u&&k>0,q=!x&&u>A+k+20;let I=v.current;x&&!v.current?I=!0:q&&v.current&&(I=!1),I!==v.current&&(v.current=I,j(I)),B(m)},[t,e.length,a,F]);n.useEffect(()=>{if(!t){B(e.length);return}C.current=!1,d.current=[],B(e.length)},[t,e.length]),n.useLayoutEffect(()=>{if(!t||!o.current)return;L()&&O()}),n.useEffect(()=>{if(!t)return;let u;const b=()=>{clearTimeout(u),u=setTimeout(()=>{C.current||L(),O()},s)},f=new ResizeObserver(b);return l.current&&f.observe(l.current),()=>{clearTimeout(u),f.disconnect()}},[t,L,O,s]);const Re=t?e.slice(0,W):e,Ne=t&&W<e.length?e.slice(W):[];return{visibleItems:Re,overflowItems:Ne,containerRef:o,parentRef:l,overflowButtonRef:i,contentRef:h,brandRef:g,hideProductName:H}}function be(e){return[...e].sort((r,t)=>{const a=r.props?.priority??1/0,s=t.props?.priority??1/0;return a===s?0:a-s})}function we(e,r){if(r.length===0)return{visible:e,overflow:r};const t=r.findIndex(i=>i.props?.active);if(t===-1)return{visible:e,overflow:r};const a=r[t],s=e[e.length-1],o=[...e.slice(0,-1),a],l=[...r.slice(0,t),s,...r.slice(t+1)];return{visible:o,overflow:l}}function $({fullWidth:e,enablePriorityPlus:r=!0,children:t,className:a,...s}){const o=n.useRef(null),[l,i,h]=c.selectChildren(t,[{type:K},{type:G}]),g=n.useMemo(()=>r?be(i):i,[r,i]),{visibleItems:d,overflowItems:N,containerRef:M,parentRef:C,overflowButtonRef:W,contentRef:B,brandRef:H,hideProductName:j}=ve(g,{enabled:r}),{visible:L,overflow:F}=n.useMemo(()=>we(d,N),[d,N]),v=n.useMemo(()=>{if(!r||!l||l.length===0)return l;const O=l[0];return n.isValidElement(O)?[n.cloneElement(O,{hideNameText:j,ref:H})]:l},[r,l,j,H]);return n.createElement("div",{className:c.cl(se,a),...s,ref:o},n.createElement("nav",{className:oe({fullWidth:e}),ref:C},v,n.createElement("div",{className:fe({priorityPlus:r}),ref:M},L,F.length>0&&n.createElement(ge,{items:F,wrapperRef:W})),n.createElement("div",{className:_e,ref:B},n.createElement(c.PortalContext.Provider,{value:{parentElementRef:o,fixed:!0}},h))))}c.Metadata.set($,{name:"ProductBar",props:{fullWidth:{type:"boolean"},enablePriorityPlus:{type:"boolean",default:"true"}}});var ke="pkg_sps-woodland_core__version_8_53_12__hash_pqijiy0",ye="pkg_sps-woodland_core__version_8_53_12__hash_pqijiy1";function ee({channelId:e,className:r,...t}){const{t:a}=U.useWoodlandLanguage();return n.createElement("a",{className:c.cl(ke,r),target:"_blank",rel:"noreferrer",href:`https://spscommerce.slack.com/archives/${e}`,...t},n.createElement(c.Icon,{className:ye,icon:"conversation","aria-hidden":"true"}),n.createElement("span",null,a("slackLink.label",{defaultValue:"Chat"})))}c.Metadata.set(ee,{name:"Slack Link",props:{channelId:{type:"string",required:!0}}}),_.ProductBar=$,_.ProductBarName=K,_.ProductBarTab=G,_.SlackLink=ee,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(u,V){typeof exports=="object"&&typeof module<"u"?V(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"],V):(u=typeof globalThis<"u"?globalThis:u||self,V(u.ProductBar={},u.react,u.spsWoodlandCore,u.reactAriaLink,u.ariakitReact,u.spscommerceI18n))})(this,(function(u,V,c,te,P,U){"use strict";function re(e){const n=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(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=re(V);function ne(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?X(Object(t),!0).forEach(function(a){ne(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var ae=(e,n,t)=>{for(var a of Object.keys(e)){var s;if(e[a]!==((s=n[a])!==null&&s!==void 0?s:t[a]))return!1}return!0},D=e=>n=>{var t=e.defaultClassName,a=Y(Y({},e.defaultVariants),n);for(var s in a){var o,l=(o=a[s])!==null&&o!==void 0?o:e.defaultVariants[s];if(l!=null){var i=l;typeof i=="boolean"&&(i=i===!0?"true":"false");var h=e.variantClassNames[s][i];h&&(t+=" "+h)}}for(var[g,d]of e.compoundVariants)ae(g,a,e.defaultVariants)&&(t+=" "+d);return t},se="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux0",oe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux1",variantClassNames:{fullWidth:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux2",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux3"}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),le=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4",variantClassNames:{hideNameText:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux5",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux6"}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),ie="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux7",ce="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux8",_e="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux9",ue="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxa",Z=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb",variantClassNames:{active:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxc",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxd"},disabled:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxe",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxf"}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),de="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxg",fe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxh",variantClassNames:{priorityPlus:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxi",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxj"}},defaultVariants:{priorityPlus:!1},compoundVariants:[]});function G(e){const n=r.useRef(null),{linkProps:t}=te.useLink(e,n),{active:a,priority:s,...o}=e,l={...o,...t,ref:n,className:c.cl(Z({active:a,disabled:!1}),e.className)},i=e.as??(e.href?"a":"span");return r.createElement(i,{...l},e.children)}c.Metadata.set(G,{name:"Product Bar Tab",props:{active:{type:"boolean",required:!0},href:{type:"string"},priority:{type:"number"}}});const K=r.forwardRef(({children:e,className:n,name:t,logoSrc:a,hideNameText:s=!1,...o},l)=>r.createElement(r.Fragment,null,r.createElement("a",{className:c.cl(le({hideNameText:s}),n),...o,ref:l},a&&r.createElement("img",{className:ie,src:a,"aria-hidden":"true",alt:`${t} Logo`,title:t}),t&&r.createElement("span",{className:c.cl(ce,s&&_e)},t)),r.createElement("span",{className:de})));c.Metadata.set(K,{name:"ProductBarName",props:{name:{type:"string"},logoSrc:{type:"string"},hideNameText:{type:"boolean",default:"false"}}});var pe="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn0",me="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1",he="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2",J="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3",Q="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn4";function ge({items:e,wrapperRef:n}){const{t}=U.useWoodlandLanguage();if(e.length===0)return null;const a=e.some(o=>o.props?.active),s=t("productBar.more",{defaultValue:"More"});return r.createElement("span",{ref:n},r.createElement(P.MenuProvider,null,r.createElement(P.MenuButton,{className:c.cl(Z({active:a,disabled:!1}),pe),"aria-label":s},s,r.createElement(c.Icon,{icon:"chevron-down",className:me,"aria-hidden":"true"})),r.createElement(P.Menu,{className:he,gutter:4},e.map((o,l)=>{const i=o.props?.active,h=o.props?.children,g=o.props?.onPress,d=o.props?.href,N=o.props?.as,M=()=>{g&&g()};if(d&&N){const C=N;return r.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),render:r.createElement(C,{to:d})},h)}return d?r.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),render:r.createElement("a",{href:d})},h):r.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),onClick:M},h)}))))}function ve(e,n={}){const{enabled:t=!0,minVisibleItems:a=1,debounceMs:s=16}=n,o=r.useRef(null),l=r.useRef(null),i=r.useRef(null),h=r.useRef(null),g=r.useRef(null),d=r.useRef([]),N=r.useRef(0),M=r.useRef(0),C=r.useRef(!1),[W,B]=r.useState(e.length),[H,j]=r.useState(!1),L=r.useCallback(()=>{if(!o.current)return!1;const _=o.current,b=Array.from(_.children),f=i.current;f&&(N.current=f.getBoundingClientRect().width);const w=b.filter(k=>k!==f);if(w.length<e.length)return!1;if(d.current=w.map(k=>k.getBoundingClientRect().width),g.current){const k=g.current.querySelector("span:last-of-type");if(k){const p=k.getBoundingClientRect().width,E=getComputedStyle(g.current),S=parseFloat(E.marginRight)||0,m=Math.max(0,S-8);M.current=p+m}}return C.current=!0,!0},[e.length]),F=r.useCallback(()=>{if(!l.current)return 0;const _=l.current,b=_.getBoundingClientRect(),f=getComputedStyle(_),w=parseFloat(f.paddingLeft)+parseFloat(f.paddingRight),k=parseFloat(f.gap)||0;let p=w;const E=Array.from(_.children),S=E.filter(m=>getComputedStyle(m).display!=="none");S.length>1&&(p+=k*(S.length-1));for(const m of E){if(m===o.current)continue;const z=getComputedStyle(m),A=parseFloat(z.marginLeft)+parseFloat(z.marginRight);if(m===h.current){const x=Array.from(m.children),q=getComputedStyle(m),I=parseFloat(q.gap)||0;for(const y of x){const R=getComputedStyle(y),Ce=parseFloat(R.marginLeft)+parseFloat(R.marginRight);p+=y.getBoundingClientRect().width+Ce}x.length>1&&(p+=I*(x.length-1)),p+=parseFloat(q.paddingLeft)+parseFloat(q.paddingRight),p+=A}else p+=m.getBoundingClientRect().width+A}return Math.max(0,b.width-p-2)},[]),v=r.useRef(!1),O=r.useCallback(()=>{if(!t||!C.current){j(!1),v.current=!1;return}let _=F();const b=d.current,f=N.current||100,w=M.current||0;if(v.current&&w>0&&(_-=w),b.length===0||_<=0){B(e.length),j(!1),v.current=!1;return}if(b.reduce((y,R)=>y+R,0)<=_){B(e.length),j(!1),v.current=!1;return}let p=0,E=0;const S=_-f;for(let y=0;y<b.length;y++){const R=b[y];if(p+R<=S)p+=R,E++;else break}const T=Math.min(a,e.length),m=Math.max(E,T),A=b.slice(0,T).reduce((y,R)=>y+R,0)+f,x=E<T&&A>_&&w>0,q=!x&&_>A+w+20;let I=v.current;x&&!v.current?I=!0:q&&v.current&&(I=!1),I!==v.current&&(v.current=I,j(I)),B(m)},[t,e.length,a,F]);r.useEffect(()=>{if(!t){B(e.length);return}C.current=!1,d.current=[],B(e.length)},[t,e.length]),r.useLayoutEffect(()=>{if(!t||!o.current)return;L()&&O()}),r.useEffect(()=>{if(!t)return;let _;const b=()=>{clearTimeout(_),_=setTimeout(()=>{C.current||L(),O()},s)},f=new ResizeObserver(b);return l.current&&f.observe(l.current),()=>{clearTimeout(_),f.disconnect()}},[t,L,O,s]);const Re=t?e.slice(0,W):e,Ne=t&&W<e.length?e.slice(W):[];return{visibleItems:Re,overflowItems:Ne,containerRef:o,parentRef:l,overflowButtonRef:i,contentRef:h,brandRef:g,hideProductName:H}}function be(e){return[...e].sort((n,t)=>{const a=n.props?.priority??1/0,s=t.props?.priority??1/0;return a===s?0:a-s})}function ye(e,n){if(n.length===0)return{visible:e,overflow:n};const t=n.findIndex(i=>i.props?.active);if(t===-1)return{visible:e,overflow:n};const a=n[t],s=e[e.length-1],o=[...e.slice(0,-1),a],l=[...n.slice(0,t),s,...n.slice(t+1)];return{visible:o,overflow:l}}function $({fullWidth:e,enablePriorityPlus:n=!0,children:t,className:a,...s}){const o=r.useRef(null),[l,i,h]=c.selectChildren(t,[{type:K},{type:G}]),g=r.useMemo(()=>n?be(i):i,[n,i]),{visibleItems:d,overflowItems:N,containerRef:M,parentRef:C,overflowButtonRef:W,contentRef:B,brandRef:H,hideProductName:j}=ve(g,{enabled:n}),{visible:L,overflow:F}=r.useMemo(()=>ye(d,N),[d,N]),v=r.useMemo(()=>{if(!n||!l||l.length===0)return l;const O=l[0];return r.isValidElement(O)?[r.cloneElement(O,{hideNameText:j,ref:H})]:l},[n,l,j,H]);return r.createElement("div",{className:c.cl(se,a),...s,ref:o},r.createElement("nav",{className:oe({fullWidth:e}),ref:C},v,r.createElement("div",{className:fe({priorityPlus:n}),ref:M},L,F.length>0&&r.createElement(ge,{items:F,wrapperRef:W})),r.createElement("div",{className:ue,ref:B},r.createElement(c.PortalContext.Provider,{value:{parentElementRef:o,fixed:!0}},h))))}c.Metadata.set($,{name:"ProductBar",props:{fullWidth:{type:"boolean"},enablePriorityPlus:{type:"boolean",default:"true"}}});var we="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0",ke="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy1";function ee({channelId:e,className:n,...t}){const{t:a}=U.useWoodlandLanguage();return r.createElement("a",{className:c.cl(we,n),target:"_blank",rel:"noreferrer",href:`https://spscommerce.slack.com/archives/${e}`,...t},r.createElement(c.Icon,{className:ke,icon:"conversation","aria-hidden":"true"}),r.createElement("span",null,a("slackLink.label",{defaultValue:"Chat"})))}c.Metadata.set(ee,{name:"Slack Link",props:{channelId:{type:"string",required:!0}}}),u.ProductBar=$,u.ProductBarName=K,u.ProductBarTab=G,u.SlackLink=ee,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,15 +1,15 @@
|
|
|
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 = "pkg_sps-
|
|
3
|
+
var o = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux0", s = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux2", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux3" } }, defaultVariants: { fullWidth: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4", variantClassNames: { hideNameText: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux5", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux6" } }, defaultVariants: { hideNameText: !1 }, compoundVariants: [] }), e = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux7", l = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux8", p = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux9", i = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxa", u = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxc", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxd" }, disabled: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxe", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxf" } }, defaultVariants: { active: !1, disabled: !1 }, compoundVariants: [] }), t = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxg", n = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxh", variantClassNames: { priorityPlus: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxi", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxj" } }, defaultVariants: { priorityPlus: !1 }, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
u as navItem,
|
|
6
|
+
s as productBar,
|
|
7
|
+
d as productBarBrand,
|
|
8
|
+
e as productBarBrandLogo,
|
|
9
|
+
l as productBarBrandName,
|
|
10
10
|
o as productBarContainer,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
i as productBarContent,
|
|
12
|
+
n as productNavNav,
|
|
13
|
+
t as verticalRule,
|
|
14
|
+
p as visuallyHidden
|
|
15
15
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
var o = "pkg_sps-
|
|
2
|
+
var o = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn0", r = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1", a = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2", e = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3", v = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn4";
|
|
3
3
|
export {
|
|
4
4
|
o as overflowButton,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
r as overflowButtonChevron,
|
|
6
|
+
a as overflowMenu,
|
|
7
|
+
e as overflowMenuItem,
|
|
8
|
+
v as overflowMenuItemActive
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
var o = "pkg_sps-
|
|
2
|
+
var o = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0", a = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy1";
|
|
3
3
|
export {
|
|
4
4
|
o as slackLink,
|
|
5
|
-
|
|
5
|
+
a as slackLinkIcon
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux0{background-color:#fff;box-shadow:0 1px 2px #00000026;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux1{background-color:#fff;display:flex;min-height:3.75rem;padding-top:0;padding-right:2rem;padding-bottom:0;padding-left:2rem;width:1280px;align-items:center}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux2{width:100%}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4{align-content:center;cursor:pointer;display:flex;margin-right:2rem;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux5{margin-right:.5rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux7{align-content:center;display:flex;height:1.5rem;margin-right:.5rem;width:1.5rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux8{align-content:center;color:#1f282c;display:flex;font-size:1rem;font-weight:600}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux9{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxa{flex:1;text-align:right}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb{align-items:center;color:#4b5356!important;font-size:.875rem!important;cursor:pointer;display:flex;height:3.625rem;justify-content:center;margin-top:.125rem;padding-top:0;padding-right:1rem;padding-bottom:0;padding-left:1rem;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxc{box-shadow:inset 0 -.125rem #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxe{color:#d2d4d4}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxg{display:inline-block;height:2.125rem;margin-top:0;margin-right:1rem;margin-bottom:0;margin-left:0;background:#d2d4d4;width:.0625rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxh{display:flex;flex-direction:row;padding-left:0;margin-bottom:0;list-style:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn0{background:none;border:none;font:inherit;gap:.25rem;flex-shrink:0}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1{font-size:.75rem;transition:transform .15s ease}[aria-expanded=true] .pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1{transform:rotate(180deg)}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2{background:#fff;border-style:solid;border-width:.0625rem;border-radius:.25rem;border-color:#717779;box-shadow:0 2px 8px #00000026;min-width:120px;overflow-y:auto;overscroll-behavior:contain;z-index:100}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2:focus{outline:.125rem solid #007db8ff!important;outline-offset:.125rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3{align-items:center;color:#4b5356;cursor:pointer;display:flex;font-size:.875rem;font-weight:400;padding:.5rem 1rem;text-decoration:none;white-space:nowrap}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3:hover{background:#e6f2f8;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3:focus{background:#e6f2f8;outline:.125rem solid #007db8ff!important;outline-offset:-.125rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn4{font-weight:600;box-shadow:inset 3px 0 #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0{align-items:center;display:inline-flex;font-size:.875rem;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0:hover{border-bottom-style:solid;border-bottom-width:.0625rem;border-bottom-color:#007db8;text-decoration:none!important}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy1{font-size:1rem;margin-right:.25rem}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { Metadata as
|
|
2
|
+
import { Metadata as b, selectChildren as V, modChildren as D, cl as u, Icon as N } from "@sps-woodland/core";
|
|
3
3
|
import { Button as A } from "@sps-woodland/core/button";
|
|
4
|
-
function H(a,
|
|
5
|
-
return
|
|
4
|
+
function H(a, _, t) {
|
|
5
|
+
return _ in a ? Object.defineProperty(a, _, {
|
|
6
6
|
value: t,
|
|
7
7
|
enumerable: !0,
|
|
8
8
|
configurable: !0,
|
|
9
9
|
writable: !0
|
|
10
|
-
}) : a[
|
|
10
|
+
}) : a[_] = t, a;
|
|
11
11
|
}
|
|
12
|
-
function O(a,
|
|
12
|
+
function O(a, _) {
|
|
13
13
|
var t = Object.keys(a);
|
|
14
14
|
if (Object.getOwnPropertySymbols) {
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
return Object.getOwnPropertyDescriptor(a,
|
|
18
|
-
})), t.push.apply(t,
|
|
15
|
+
var l = Object.getOwnPropertySymbols(a);
|
|
16
|
+
_ && (l = l.filter(function(s) {
|
|
17
|
+
return Object.getOwnPropertyDescriptor(a, s).enumerable;
|
|
18
|
+
})), t.push.apply(t, l);
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
22
|
function P(a) {
|
|
23
|
-
for (var
|
|
24
|
-
var t = arguments[
|
|
25
|
-
|
|
26
|
-
H(a,
|
|
27
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : O(Object(t)).forEach(function(
|
|
28
|
-
Object.defineProperty(a,
|
|
23
|
+
for (var _ = 1; _ < arguments.length; _++) {
|
|
24
|
+
var t = arguments[_] != null ? arguments[_] : {};
|
|
25
|
+
_ % 2 ? O(Object(t), !0).forEach(function(l) {
|
|
26
|
+
H(a, l, t[l]);
|
|
27
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : O(Object(t)).forEach(function(l) {
|
|
28
|
+
Object.defineProperty(a, l, Object.getOwnPropertyDescriptor(t, l));
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
return a;
|
|
32
32
|
}
|
|
33
|
-
var K = (a,
|
|
34
|
-
for (var
|
|
35
|
-
var
|
|
36
|
-
if (a[
|
|
33
|
+
var K = (a, _, t) => {
|
|
34
|
+
for (var l of Object.keys(a)) {
|
|
35
|
+
var s;
|
|
36
|
+
if (a[l] !== ((s = _[l]) !== null && s !== void 0 ? s : t[l]))
|
|
37
37
|
return !1;
|
|
38
38
|
}
|
|
39
39
|
return !0;
|
|
40
|
-
},
|
|
41
|
-
var t = a.defaultClassName,
|
|
42
|
-
for (var
|
|
43
|
-
var d, r = (d =
|
|
40
|
+
}, y = (a) => (_) => {
|
|
41
|
+
var t = a.defaultClassName, l = P(P({}, a.defaultVariants), _);
|
|
42
|
+
for (var s in l) {
|
|
43
|
+
var d, r = (d = l[s]) !== null && d !== void 0 ? d : a.defaultVariants[s];
|
|
44
44
|
if (r != null) {
|
|
45
45
|
var m = r;
|
|
46
46
|
typeof m == "boolean" && (m = m === !0 ? "true" : "false");
|
|
47
47
|
var v = (
|
|
48
48
|
// @ts-expect-error
|
|
49
|
-
a.variantClassNames[
|
|
49
|
+
a.variantClassNames[s][m]
|
|
50
50
|
);
|
|
51
51
|
v && (t += " " + v);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
for (var [c, f] of a.compoundVariants)
|
|
55
|
-
K(c,
|
|
55
|
+
K(c, l, a.defaultVariants) && (t += " " + f);
|
|
56
56
|
return t;
|
|
57
|
-
}, R = "pkg_sps-
|
|
58
|
-
function
|
|
57
|
+
}, R = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb800", W = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb801", F = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb802", G = y({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb803", variantClassNames: { minimized: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb804", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb805" } }, defaultVariants: { minimized: !1 }, compoundVariants: [] }), J = y({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb806", variantClassNames: { minimized: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb807", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb808" } }, defaultVariants: { minimized: !1 }, compoundVariants: [] }), Q = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb809", U = y({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80a", variantClassNames: { minimized: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80b", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80c" } }, defaultVariants: { minimized: !1 }, compoundVariants: [] }), X = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80d", Y = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80e", j = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80f", Z = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g", z = y({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80i", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80j" } }, defaultVariants: { selected: !1 }, compoundVariants: [] }), $ = y({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80l", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80m" } }, defaultVariants: { selected: !1 }, compoundVariants: [] }), M = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80n", x = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o", I = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p", ee = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80q", S = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80r", ae = y({ defaultClassName: "", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80s", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80t" } }, defaultVariants: {}, compoundVariants: [[{ active: !0 }, "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80u"]] });
|
|
58
|
+
function g({
|
|
59
59
|
children: a,
|
|
60
|
-
className:
|
|
60
|
+
className: _,
|
|
61
61
|
as: t,
|
|
62
|
-
keyId:
|
|
63
|
-
active:
|
|
62
|
+
keyId: l,
|
|
63
|
+
active: s = !1,
|
|
64
64
|
collapsed: d = !1,
|
|
65
65
|
isMinimized: r = !1,
|
|
66
66
|
isMinimizable: m = !1,
|
|
@@ -68,11 +68,11 @@ function y({
|
|
|
68
68
|
icon: c,
|
|
69
69
|
...f
|
|
70
70
|
}) {
|
|
71
|
-
const i = t ?? "a", [h, w] = V(a, [{ type:
|
|
71
|
+
const i = t ?? "a", [h, w] = V(a, [{ type: g }]), [p, o] = e.useState(!d), [E] = V(a, [{ type: g }], !0), k = E.some((n) => n.props.active), T = s || !p && k, B = e.useRef(null), C = D(
|
|
72
72
|
w,
|
|
73
|
-
(
|
|
73
|
+
(n) => n.type?.displayName === "SpsTag" || b.isWoodlandComponent(n.type) && b.get(n.type).name === "Tag" ? [
|
|
74
74
|
{
|
|
75
|
-
className: u(
|
|
75
|
+
className: u(n.props?.className, ae({ active: T }))
|
|
76
76
|
}
|
|
77
77
|
] : []
|
|
78
78
|
);
|
|
@@ -85,15 +85,15 @@ function y({
|
|
|
85
85
|
selected: (r || !p) && k
|
|
86
86
|
}),
|
|
87
87
|
"aria-expanded": !r && p,
|
|
88
|
-
onClick: () => r ? v?.() :
|
|
88
|
+
onClick: () => r ? v?.() : o(!p)
|
|
89
89
|
},
|
|
90
90
|
/* @__PURE__ */ e.createElement(
|
|
91
91
|
i,
|
|
92
92
|
{
|
|
93
93
|
className: x,
|
|
94
94
|
tabIndex: 0,
|
|
95
|
-
onKeyDown: (
|
|
96
|
-
(
|
|
95
|
+
onKeyDown: (n) => {
|
|
96
|
+
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), r ? v?.() : o(!p));
|
|
97
97
|
},
|
|
98
98
|
...f,
|
|
99
99
|
"aria-expanded": !r && p
|
|
@@ -111,7 +111,7 @@ function y({
|
|
|
111
111
|
{
|
|
112
112
|
ref: B,
|
|
113
113
|
className: u(z({
|
|
114
|
-
selected:
|
|
114
|
+
selected: s
|
|
115
115
|
}), r && !c && "visually-hidden")
|
|
116
116
|
},
|
|
117
117
|
/* @__PURE__ */ e.createElement(
|
|
@@ -119,8 +119,8 @@ function y({
|
|
|
119
119
|
{
|
|
120
120
|
className: x,
|
|
121
121
|
tabIndex: 0,
|
|
122
|
-
onKeyDown: (
|
|
123
|
-
(
|
|
122
|
+
onKeyDown: (n) => {
|
|
123
|
+
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.currentTarget.click());
|
|
124
124
|
},
|
|
125
125
|
...f
|
|
126
126
|
},
|
|
@@ -128,7 +128,7 @@ function y({
|
|
|
128
128
|
)
|
|
129
129
|
));
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
b.set(g, {
|
|
132
132
|
name: "ProductBarVerticalItem",
|
|
133
133
|
props: {
|
|
134
134
|
keyId: { type: "string", required: !0 },
|
|
@@ -143,39 +143,39 @@ g.set(y, {
|
|
|
143
143
|
const re = "file";
|
|
144
144
|
function q({
|
|
145
145
|
children: a,
|
|
146
|
-
className:
|
|
146
|
+
className: _,
|
|
147
147
|
title: t,
|
|
148
|
-
onSelect:
|
|
149
|
-
isMinimized:
|
|
148
|
+
onSelect: l,
|
|
149
|
+
isMinimized: s,
|
|
150
150
|
isMinimizable: d,
|
|
151
151
|
onExpandSidebar: r,
|
|
152
152
|
...m
|
|
153
153
|
}) {
|
|
154
154
|
const [v, c] = V(a, [
|
|
155
|
-
{ type:
|
|
155
|
+
{ type: g }
|
|
156
156
|
]), f = v.map((i) => {
|
|
157
157
|
if (!e.isValidElement(i)) return i;
|
|
158
|
-
const h = { isMinimized:
|
|
158
|
+
const h = { isMinimized: s, onExpandSidebar: r };
|
|
159
159
|
return d && !i.props.icon && (h.icon = re), e.cloneElement(i, h);
|
|
160
160
|
});
|
|
161
161
|
return /* @__PURE__ */ e.createElement("div", { className: Y, ...m }, /* @__PURE__ */ e.createElement("ul", { className: j }, f), c);
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
b.set(q, {
|
|
164
164
|
name: "ProductBarVerticalSection"
|
|
165
165
|
});
|
|
166
166
|
function L({
|
|
167
167
|
className: a,
|
|
168
|
-
name:
|
|
168
|
+
name: _,
|
|
169
169
|
logoSrc: t,
|
|
170
|
-
href:
|
|
171
|
-
isMinimized:
|
|
170
|
+
href: l,
|
|
171
|
+
isMinimized: s,
|
|
172
172
|
...d
|
|
173
173
|
}) {
|
|
174
|
-
return /* @__PURE__ */ e.createElement("div", { className: u(J({ minimized: !!
|
|
174
|
+
return /* @__PURE__ */ e.createElement("div", { className: u(J({ minimized: !!s }), a), ...d }, /* @__PURE__ */ e.createElement(
|
|
175
175
|
"a",
|
|
176
176
|
{
|
|
177
177
|
className: Q,
|
|
178
|
-
href:
|
|
178
|
+
href: l,
|
|
179
179
|
tabIndex: 0,
|
|
180
180
|
onKeyDown: (r) => {
|
|
181
181
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.currentTarget.click());
|
|
@@ -184,16 +184,16 @@ function L({
|
|
|
184
184
|
t && /* @__PURE__ */ e.createElement(
|
|
185
185
|
"img",
|
|
186
186
|
{
|
|
187
|
-
className: U({ minimized: !!
|
|
187
|
+
className: U({ minimized: !!s }),
|
|
188
188
|
src: t,
|
|
189
189
|
"aria-hidden": "true",
|
|
190
|
-
alt: `${
|
|
190
|
+
alt: `${_} Logo`
|
|
191
191
|
}
|
|
192
192
|
),
|
|
193
|
-
!
|
|
193
|
+
!s && _ && /* @__PURE__ */ e.createElement("span", { className: X }, _)
|
|
194
194
|
));
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
b.set(L, {
|
|
197
197
|
name: "ProductBarVerticalHeader",
|
|
198
198
|
props: {
|
|
199
199
|
name: { type: "string" },
|
|
@@ -203,29 +203,29 @@ g.set(L, {
|
|
|
203
203
|
});
|
|
204
204
|
function te({
|
|
205
205
|
children: a,
|
|
206
|
-
className:
|
|
206
|
+
className: _,
|
|
207
207
|
isMinimizable: t,
|
|
208
|
-
initialIsMinimized:
|
|
209
|
-
onMinimizeToggle:
|
|
208
|
+
initialIsMinimized: l = !1,
|
|
209
|
+
onMinimizeToggle: s,
|
|
210
210
|
...d
|
|
211
211
|
}) {
|
|
212
|
-
const [r, m] = e.useState(
|
|
212
|
+
const [r, m] = e.useState(l), [v, c, f] = V(a, [
|
|
213
213
|
{ type: L },
|
|
214
214
|
{ type: q },
|
|
215
|
-
{ type:
|
|
215
|
+
{ type: g }
|
|
216
216
|
]);
|
|
217
217
|
function i() {
|
|
218
|
-
const
|
|
219
|
-
m(
|
|
218
|
+
const o = !r;
|
|
219
|
+
m(o), s && s(o);
|
|
220
220
|
}
|
|
221
221
|
const h = e.Children.map(
|
|
222
222
|
v,
|
|
223
|
-
(
|
|
223
|
+
(o) => e.isValidElement(o) ? e.cloneElement(o, { isMinimized: r }) : o
|
|
224
224
|
), w = c.map(
|
|
225
|
-
(
|
|
226
|
-
), p = D(f, (
|
|
225
|
+
(o) => e.isValidElement(o) ? e.cloneElement(o, { isMinimized: r, isMinimizable: t, onExpandSidebar: i }) : o
|
|
226
|
+
), p = D(f, (o) => {
|
|
227
227
|
const E = { isMinimized: r, isMinimizable: t, onExpandSidebar: i };
|
|
228
|
-
return t && !
|
|
228
|
+
return t && !o.props.icon && (E.icon = "file"), [E];
|
|
229
229
|
}, !1);
|
|
230
230
|
return /* @__PURE__ */ e.createElement(
|
|
231
231
|
"div",
|
|
@@ -233,7 +233,7 @@ function te({
|
|
|
233
233
|
className: u(
|
|
234
234
|
R,
|
|
235
235
|
r && W,
|
|
236
|
-
|
|
236
|
+
_
|
|
237
237
|
),
|
|
238
238
|
...d
|
|
239
239
|
},
|
|
@@ -250,12 +250,12 @@ function te({
|
|
|
250
250
|
/* @__PURE__ */ e.createElement("ul", { className: j }, e.Children.toArray(p))
|
|
251
251
|
);
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
b.set(te, {
|
|
254
254
|
name: "ProductBarVertical"
|
|
255
255
|
});
|
|
256
256
|
export {
|
|
257
257
|
te as ProductBarVertical,
|
|
258
258
|
L as ProductBarVerticalHeader,
|
|
259
|
-
|
|
259
|
+
g as ProductBarVerticalItem,
|
|
260
260
|
q as ProductBarVerticalSection
|
|
261
261
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(i,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/core/button")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/core/button"],V):(i=typeof globalThis<"u"?globalThis:i||self,V(i.ProductBarVertical={},i.react,i.spsWoodlandCore,i.spsWoodlandCoreButton))})(this,(function(i,V,
|
|
1
|
+
(function(i,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/core/button")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/core/button"],V):(i=typeof globalThis<"u"?globalThis:i||self,V(i.ProductBarVertical={},i.react,i.spsWoodlandCore,i.spsWoodlandCoreButton))})(this,(function(i,V,s,T){"use strict";function L(a){const _=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(_,r,l.get?l:{enumerable:!0,get:()=>a[r]})}}return _.default=a,Object.freeze(_)}const e=L(V);function A(a,_,r){return _ in a?Object.defineProperty(a,_,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[_]=r,a}function C(a,_){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);_&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),r.push.apply(r,l)}return r}function P(a){for(var _=1;_<arguments.length;_++){var r=arguments[_]!=null?arguments[_]:{};_%2?C(Object(r),!0).forEach(function(l){A(a,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(r,l))})}return a}var H=(a,_,r)=>{for(var l of Object.keys(a)){var n;if(a[l]!==((n=_[l])!==null&&n!==void 0?n:r[l]))return!1}return!0},y=a=>_=>{var r=a.defaultClassName,l=P(P({},a.defaultVariants),_);for(var n in l){var p,t=(p=l[n])!==null&&p!==void 0?p:a.defaultVariants[n];if(t!=null){var f=t;typeof f=="boolean"&&(f=f===!0?"true":"false");var v=a.variantClassNames[n][f];v&&(r+=" "+v)}}for(var[d,h]of a.compoundVariants)H(d,l,a.defaultVariants)&&(r+=" "+h);return r},W="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb800",K="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb801",R="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb802",F=y({defaultClassName:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb803",variantClassNames:{minimized:{true:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb804",false:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb805"}},defaultVariants:{minimized:!1},compoundVariants:[]}),G=y({defaultClassName:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb806",variantClassNames:{minimized:{true:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb807",false:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb808"}},defaultVariants:{minimized:!1},compoundVariants:[]}),J="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb809",Q=y({defaultClassName:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80a",variantClassNames:{minimized:{true:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80b",false:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80c"}},defaultVariants:{minimized:!1},compoundVariants:[]}),U="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80d",X="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80e",O="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80f",Y="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g",Z=y({defaultClassName:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h",variantClassNames:{selected:{true:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80i",false:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80j"}},defaultVariants:{selected:!1},compoundVariants:[]}),z=y({defaultClassName:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k",variantClassNames:{selected:{true:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80l",false:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80m"}},defaultVariants:{selected:!1},compoundVariants:[]}),M="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80n",I="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o",S="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p",$="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80q",j="pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80r",ee=y({defaultClassName:"",variantClassNames:{active:{true:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80s",false:"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80t"}},defaultVariants:{},compoundVariants:[[{active:!0},"pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80u"]]});function g({children:a,className:_,as:r,keyId:l,active:n=!1,collapsed:p=!1,isMinimized:t=!1,isMinimizable:f=!1,onExpandSidebar:v,icon:d,...h}){const u=r??"a",[b,N]=s.selectChildren(a,[{type:g}]),[m,o]=e.useState(!p),[w]=s.selectChildren(a,[{type:g}],!0),B=w.some(c=>c.props.active),re=n||!m&&B,D=e.useRef(null),q=s.modChildren(N,c=>c.type?.displayName==="SpsTag"||s.Metadata.isWoodlandComponent(c.type)&&s.Metadata.get(c.type).name==="Tag"?[{className:s.cl(c.props?.className,ee({active:re}))}]:[]);return e.createElement(e.Fragment,null,b.length?e.createElement("ul",{className:s.cl(Y,d&&$,t&&!d&&"visually-hidden")},e.createElement("li",{ref:D,"data-selected":(t||!m)&&B,className:z({selected:(t||!m)&&B}),"aria-expanded":!t&&m,onClick:()=>t?v?.():o(!m)},e.createElement(u,{className:I,tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),t?v?.():o(!m))},...h,"aria-expanded":!t&&m},e.createElement("div",{className:s.cl("d-flex align-items-center",S)},d&&e.createElement(s.Icon,{icon:d,className:"mr-3"}),!t&&e.createElement(s.Icon,{className:M,icon:m?"chevron-down":"chevron-right"}),e.createElement("div",{className:s.cl(j,t&&"visually-hidden")},q)))),m&&(t?e.createElement("div",{className:"visually-hidden"},b):b)):e.createElement("li",{ref:D,className:s.cl(Z({selected:n}),t&&!d&&"visually-hidden")},e.createElement(u,{className:I,tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.currentTarget.click())},...h},e.createElement("div",{className:s.cl("d-flex align-items-center",S)},d&&e.createElement(s.Icon,{icon:d,className:"mr-2"}),e.createElement("div",{className:s.cl(j,t&&"visually-hidden")},q)))))}s.Metadata.set(g,{name:"ProductBarVerticalItem",props:{keyId:{type:"string",required:!0},as:{type:"string"},active:{type:"boolean",required:!0},collapsed:{type:"boolean",required:!1},icon:{type:"string",required:!1},isMinimized:{type:"boolean",required:!1},onExpandSidebar:{type:"function",required:!1}}});const ae="file";function E({children:a,className:_,title:r,onSelect:l,isMinimized:n,isMinimizable:p,onExpandSidebar:t,...f}){const[v,d]=s.selectChildren(a,[{type:g}]),h=v.map(u=>{if(!e.isValidElement(u))return u;const b={isMinimized:n,onExpandSidebar:t};return p&&!u.props.icon&&(b.icon=ae),e.cloneElement(u,b)});return e.createElement("div",{className:X,...f},e.createElement("ul",{className:O},h),d)}s.Metadata.set(E,{name:"ProductBarVerticalSection"});function k({className:a,name:_,logoSrc:r,href:l,isMinimized:n,...p}){return e.createElement("div",{className:s.cl(G({minimized:!!n}),a),...p},e.createElement("a",{className:J,href:l,tabIndex:0,onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.currentTarget.click())}},r&&e.createElement("img",{className:Q({minimized:!!n}),src:r,"aria-hidden":"true",alt:`${_} Logo`}),!n&&_&&e.createElement("span",{className:U},_)))}s.Metadata.set(k,{name:"ProductBarVerticalHeader",props:{name:{type:"string"},logoSrc:{type:"string"},isMinimized:{type:"boolean"}}});function x({children:a,className:_,isMinimizable:r,initialIsMinimized:l=!1,onMinimizeToggle:n,...p}){const[t,f]=e.useState(l),[v,d,h]=s.selectChildren(a,[{type:k},{type:E},{type:g}]);function u(){const o=!t;f(o),n&&n(o)}const b=e.Children.map(v,o=>e.isValidElement(o)?e.cloneElement(o,{isMinimized:t}):o),N=d.map(o=>e.isValidElement(o)?e.cloneElement(o,{isMinimized:t,isMinimizable:r,onExpandSidebar:u}):o),m=s.modChildren(h,o=>{const w={isMinimized:t,isMinimizable:r,onExpandSidebar:u};return r&&!o.props.icon&&(w.icon="file"),[w]},!1);return e.createElement("div",{className:s.cl(W,t&&K,_),...p},e.createElement("div",{className:R},b,r&&e.createElement("div",{className:s.cl(F({minimized:t}))},e.createElement(T.Button,{kind:"icon",icon:t?"chevron-right":"chevron-left",onClick:u,"aria-expanded":!t}))),e.Children.toArray(N),e.createElement("ul",{className:O},e.Children.toArray(m)))}s.Metadata.set(x,{name:"ProductBarVertical"}),i.ProductBarVertical=x,i.ProductBarVerticalHeader=k,i.ProductBarVerticalItem=g,i.ProductBarVerticalSection=E,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { createRuntimeFn as _ } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
|
|
3
|
-
var
|
|
3
|
+
var o = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb800", e = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb801", l = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb802", s = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb803", variantClassNames: { minimized: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb804", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb805" } }, defaultVariants: { minimized: !1 }, compoundVariants: [] }), i = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb806", variantClassNames: { minimized: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb807", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb808" } }, defaultVariants: { minimized: !1 }, compoundVariants: [] }), t = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb809", d = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80a", variantClassNames: { minimized: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80b", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80c" } }, defaultVariants: { minimized: !1 }, compoundVariants: [] }), c = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80d", p = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80e", n = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80f", v = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g", u = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80i", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80j" } }, defaultVariants: { selected: !1 }, compoundVariants: [] }), m = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80l", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80m" } }, defaultVariants: { selected: !1 }, compoundVariants: [] }), h = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80n", b = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o", f = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p", k = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80q", g = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80r", w = _({ defaultClassName: "", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80s", false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80t" } }, defaultVariants: {}, compoundVariants: [[{ active: !0 }, "pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80u"]] });
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
n as productBarVerticalBranch,
|
|
6
|
+
t as productBarVerticalBrand,
|
|
7
|
+
d as productBarVerticalBrandLogo,
|
|
8
|
+
c as productBarVerticalBrandName,
|
|
9
|
+
s as productBarVerticalCollapseButton,
|
|
10
|
+
e as productBarVerticalCollapsed,
|
|
11
|
+
o as productBarVerticalContainer,
|
|
12
|
+
v as productBarVerticalExpand,
|
|
13
|
+
h as productBarVerticalExpandIcon,
|
|
14
|
+
m as productBarVerticalExpandLeaf,
|
|
15
|
+
k as productBarVerticalExpandWithIcon,
|
|
16
|
+
i as productBarVerticalHeader,
|
|
17
|
+
l as productBarVerticalHeaderWrapper,
|
|
18
|
+
u as productBarVerticalLeaf,
|
|
19
|
+
b as productBarVerticalLink,
|
|
20
|
+
g as productBarVerticalLinkContent,
|
|
21
|
+
f as productBarVerticalLinkInner,
|
|
22
|
+
p as productBarVerticalSection,
|
|
23
|
+
w as tabTag
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb800{word-wrap:break-word;background-clip:border-box;background-color:#fff;border-width:.0625rem;border-style:solid;border-color:#d2d4d4;border-radius:.125rem;display:flex;flex-direction:column;width:19.25rem;height:100vh;position:sticky;top:0;overflow-y:auto}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb801{width:48px;overflow:hidden}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb802{position:sticky;top:0;z-index:1}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb803{position:absolute;right:.625rem;width:1.625rem;top:50%;transform:translateY(-50%)}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb804{top:3rem;transform:none}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb806{background-color:#fff;border-bottom:.0625rem solid #d2d4d4ff;margin-bottom:0;padding:.5rem;display:flex;flex-direction:column;justify-content:center;height:3.5rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb807{height:5.625rem;padding:.98rem .5rem;justify-content:start}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb809{align-content:center;cursor:pointer;display:flex;text-decoration:none}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb809:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80a{align-content:center;display:flex;height:1.5rem;width:1.5rem;margin-right:.5rem;margin-left:3px}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80b{margin-left:auto;margin-right:auto}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80d{align-content:center;color:#1f282c;display:flex;font-size:1rem;font-weight:600}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80e{margin:0}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80e:last-of-type{border-bottom:.0625rem solid #d2d4d4ff}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80e+.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80e{border-top:.0625rem solid #d2d4d4ff}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80f{list-style:none;margin-top:0;margin-bottom:0;padding:0;font-size:.875rem;line-height:1.25rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g{list-style:none;margin:0;padding-left:0}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h{display:block;width:100%}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80i{background-color:#007db8;color:#fff}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80j:hover{background-color:#f3f4f4}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k{display:block;width:100%}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80l{background-color:#007db8;color:#fff}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80m:hover{background-color:#f3f4f4}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80n{font-size:.625rem;vertical-align:middle;display:inline-block;line-height:1.25rem;margin-top:0;margin-right:.25rem;margin-bottom:0;margin-left:-.875rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o{color:inherit;cursor:pointer;display:flex;font-size:.875rem;line-height:1.5rem;padding-top:.5rem;padding-right:1rem;padding-bottom:.5rem;text-decoration:none;min-height:2.5rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o:hover{color:inherit;text-decoration:none}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{flex:1;padding-left:1rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80q>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>li>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{margin-left:2rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80r{display:flex;justify-content:space-between;align-items:center;width:100%}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:2.125rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:3rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:3.875rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80h>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:4.75rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:2.125rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:3rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:3.875rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80g>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80k>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80o>.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80p{padding-left:4.75rem}.pkg_sps-woodland_core__family_product-bar-vertical__version_8_53_13__hash_1l0rb80u{background-color:#fff!important;color:#4b5356!important}
|