@sps-woodland/core 8.56.2 → 8.56.3

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.
Files changed (262) hide show
  1. package/lib/action-bar/action-bar/ActionBar.js +44 -59
  2. package/lib/action-bar/action-bar/ActionBar.ve.js +4 -11
  3. package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +14 -22
  4. package/lib/action-bar/index.js +54 -74
  5. package/lib/action-bar/index.umd.cjs +1 -1
  6. package/lib/action-bar/style.css +2 -1
  7. package/lib/add-to-list/add-to-list/AddToList.js +220 -302
  8. package/lib/add-to-list/add-to-list/AddToList.ve.js +79 -24
  9. package/lib/add-to-list/add-to-list/ItemsList.js +42 -67
  10. package/lib/add-to-list/add-to-list/ListItem.js +24 -50
  11. package/lib/add-to-list/index.js +393 -453
  12. package/lib/add-to-list/index.umd.cjs +1 -1
  13. package/lib/add-to-list/style.css +2 -1
  14. package/lib/buttons/button/Button.js +95 -121
  15. package/lib/buttons/button/Button.ve.js +150 -9
  16. package/lib/buttons/index.js +281 -171
  17. package/lib/buttons/index.umd.cjs +1 -1
  18. package/lib/buttons/style.css +2 -1
  19. package/lib/cards/card/Card.js +19 -27
  20. package/lib/cards/card/Card.ve.js +4 -4
  21. package/lib/cards/card-footer/CardFooter.js +12 -13
  22. package/lib/cards/card-footer/CardFooter.ve.js +4 -4
  23. package/lib/cards/card-header/CardHeader.js +12 -13
  24. package/lib/cards/card-header/CardHeader.ve.js +4 -4
  25. package/lib/cards/card-title/CardTitle.js +11 -12
  26. package/lib/cards/card-title/CardTitle.ve.js +4 -4
  27. package/lib/cards/index.js +52 -52
  28. package/lib/cards/index.umd.cjs +1 -1
  29. package/lib/cards/style.css +2 -1
  30. package/lib/column-manager/column-manager/ColumnManager.js +95 -112
  31. package/lib/column-manager/column-manager/useColumnManager.js +59 -48
  32. package/lib/column-manager/index.js +2 -5
  33. package/lib/components/icon/Icon.ve.js +15 -5
  34. package/lib/components/icon/icons/sprite.svg.js +4 -4
  35. package/lib/content-row/content-row/ContentRow.js +146 -173
  36. package/lib/content-row/content-row/ContentRow.ve.js +105 -18
  37. package/lib/content-row/content-row-col/ContentRowCol.js +37 -48
  38. package/lib/content-row/content-row-col/ContentRowCol.ve.js +49 -6
  39. package/lib/content-row/content-row-expansion/ContentRowExpansion.js +16 -24
  40. package/lib/content-row/index.js +407 -318
  41. package/lib/content-row/index.umd.cjs +1 -1
  42. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +24 -39
  43. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +13 -5
  44. package/lib/content-row/style.css +2 -1
  45. package/lib/content-tiles/content-tile/ContentTile.js +71 -60
  46. package/lib/content-tiles/content-tile/ContentTile.ve.js +36 -14
  47. package/lib/content-tiles/content-tile-list/ContentTileList.js +12 -13
  48. package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +4 -5
  49. package/lib/content-tiles/index.js +156 -118
  50. package/lib/content-tiles/index.umd.cjs +1 -1
  51. package/lib/content-tiles/style.css +2 -1
  52. package/lib/core.css +2 -1
  53. package/lib/dropdowns/dropdown/Dropdown.js +56 -68
  54. package/lib/dropdowns/dropdown/Dropdown.ve.js +37 -8
  55. package/lib/dropdowns/index.js +171 -171
  56. package/lib/dropdowns/index.umd.cjs +1 -1
  57. package/lib/dropdowns/option-list/Option.js +14 -18
  58. package/lib/dropdowns/option-list/Option.ve.js +4 -5
  59. package/lib/dropdowns/option-list/OptionList.js +28 -44
  60. package/lib/dropdowns/option-list/OptionList.ve.js +4 -5
  61. package/lib/dropdowns/style.css +2 -1
  62. package/lib/editable-table/EditableTable.js +68 -85
  63. package/lib/editable-table/index.js +1 -4
  64. package/lib/feedback-block/FeedbackBlock.js +40 -35
  65. package/lib/feedback-block/FeedbackBlock.ve.js +56 -7
  66. package/lib/feedback-block/index.js +132 -85
  67. package/lib/feedback-block/index.umd.cjs +1 -1
  68. package/lib/feedback-block/style.css +2 -1
  69. package/lib/file-upload/file-upload/FileUpload.js +164 -202
  70. package/lib/file-upload/file-upload/FileUpload.ve.js +84 -18
  71. package/lib/file-upload/file-upload/mime-type.enum.js +106 -106
  72. package/lib/file-upload/index.js +390 -353
  73. package/lib/file-upload/index.umd.cjs +1 -1
  74. package/lib/file-upload/style.css +2 -1
  75. package/lib/filter-tiles/filter-tile/FilterTile.js +41 -46
  76. package/lib/filter-tiles/filter-tile/FilterTile.ve.js +51 -9
  77. package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +12 -15
  78. package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +4 -4
  79. package/lib/filter-tiles/index.js +142 -107
  80. package/lib/filter-tiles/index.umd.cjs +1 -1
  81. package/lib/filter-tiles/style.css +2 -1
  82. package/lib/focused-task/focused-task/FocusedTask.js +52 -74
  83. package/lib/focused-task/focused-task/FocusedTask.ve.js +13 -12
  84. package/lib/focused-task/focused-task/useFocusedTask.js +20 -18
  85. package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +12 -13
  86. package/lib/focused-task/index.js +127 -144
  87. package/lib/focused-task/index.umd.cjs +1 -1
  88. package/lib/focused-task/style.css +2 -1
  89. package/lib/growler/Growler.js +78 -90
  90. package/lib/growler/Growler.ve.js +23 -12
  91. package/lib/growler/GrowlerListProvider.js +38 -39
  92. package/lib/growler/Sonner.ve.js +17 -12
  93. package/lib/growler/index.js +249 -274
  94. package/lib/growler/index.umd.cjs +1 -1
  95. package/lib/growler/sonner.js +73 -102
  96. package/lib/growler/style.css +2 -1
  97. package/lib/index.js +520 -501
  98. package/lib/index.umd.cjs +4 -4
  99. package/lib/insight-card/InsightCard.js +90 -84
  100. package/lib/insight-card/InsightCard.ve.js +148 -15
  101. package/lib/insight-card/InsightCardSet.js +12 -12
  102. package/lib/insight-card/index.js +269 -141
  103. package/lib/insight-card/index.umd.cjs +1 -1
  104. package/lib/insight-card/style.css +2 -1
  105. package/lib/key-value-set/index.js +97 -87
  106. package/lib/key-value-set/index.umd.cjs +1 -1
  107. package/lib/key-value-set/key-value-set/KeyValueSet.js +17 -21
  108. package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +10 -5
  109. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +25 -21
  110. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +13 -6
  111. package/lib/key-value-set/style.css +2 -1
  112. package/lib/list-bar/advanced-search/AdvancedSearch.js +51 -54
  113. package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +30 -8
  114. package/lib/list-bar/index.js +305 -301
  115. package/lib/list-bar/index.umd.cjs +1 -1
  116. package/lib/list-bar/list-bar/InputGroupWrapper.js +10 -19
  117. package/lib/list-bar/list-bar/ListBar.js +105 -121
  118. package/lib/list-bar/list-bar/ListBar.ve.js +13 -17
  119. package/lib/list-bar/list-bar/ListBarSearch.js +20 -21
  120. package/lib/list-bar/list-bar/ListBarSearchInfo.js +8 -12
  121. package/lib/list-bar/list-bar/ListBarSortBy.js +28 -38
  122. package/lib/list-bar/search-results-bar/SearchResultsBar.js +38 -28
  123. package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +4 -11
  124. package/lib/list-bar/style.css +2 -1
  125. package/lib/matrix/index.js +79 -87
  126. package/lib/matrix/index.umd.cjs +1 -1
  127. package/lib/matrix/matrix/Matrix.js +18 -26
  128. package/lib/matrix/matrix/Matrix.ve.js +4 -7
  129. package/lib/matrix/matrix-body/MatrixBody.js +10 -13
  130. package/lib/matrix/matrix-cell/MatrixCell.js +23 -18
  131. package/lib/matrix/matrix-head/MatrixHead.js +10 -13
  132. package/lib/matrix/matrix-header/MatrixHeader.js +20 -23
  133. package/lib/matrix/matrix-row/MatrixRow.js +10 -13
  134. package/lib/matrix/style.css +2 -1
  135. package/lib/modal/index.js +197 -187
  136. package/lib/modal/index.umd.cjs +1 -1
  137. package/lib/modal/modal/Modal.js +90 -108
  138. package/lib/modal/modal/Modal.ve.js +43 -13
  139. package/lib/modal/modal/useModal.js +19 -24
  140. package/lib/modal/modal-footer/ModalFooter.js +11 -12
  141. package/lib/modal/style.css +2 -1
  142. package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.2/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +49 -0
  143. package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +8 -10
  144. package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +4 -4
  145. package/lib/page-title/heading-level/HeadingLevel.js +8 -12
  146. package/lib/page-title/index.js +33 -40
  147. package/lib/page-title/index.umd.cjs +1 -1
  148. package/lib/page-title/page-subtitle/PageSubtitle.js +13 -18
  149. package/lib/page-title/page-subtitle/PageSubtitle.ve.js +4 -5
  150. package/lib/page-title/page-title/PageTitle.js +15 -19
  151. package/lib/page-title/page-title/PageTitle.ve.js +4 -7
  152. package/lib/page-title/style.css +2 -1
  153. package/lib/photo/index.js +174 -177
  154. package/lib/photo/index.umd.cjs +1 -1
  155. package/lib/photo/photo/Photo.js +72 -81
  156. package/lib/photo/photo/Photo.ve.js +21 -7
  157. package/lib/photo/photo-carousel/PhotoCarousel.js +36 -51
  158. package/lib/photo/photo-carousel/PhotoCarousel.ve.js +13 -9
  159. package/lib/photo/style.css +2 -1
  160. package/lib/product-bar/hooks/usePriorityPlus.js +88 -104
  161. package/lib/product-bar/index.js +372 -395
  162. package/lib/product-bar/index.umd.cjs +1 -1
  163. package/lib/product-bar/product-bar/ProductBar.js +77 -103
  164. package/lib/product-bar/product-bar/ProductBar.ve.js +46 -15
  165. package/lib/product-bar/product-bar-name/ProductBarName.js +37 -40
  166. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +48 -70
  167. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +4 -8
  168. package/lib/product-bar/product-bar-tab/ProductBarTab.js +28 -26
  169. package/lib/product-bar/slack-link/SlackLink.js +26 -30
  170. package/lib/product-bar/slack-link/SlackLink.ve.js +4 -5
  171. package/lib/product-bar/style.css +2 -1
  172. package/lib/product-bar-vertical/index.js +240 -251
  173. package/lib/product-bar-vertical/index.umd.cjs +1 -1
  174. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +42 -61
  175. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +53 -23
  176. package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +30 -42
  177. package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +71 -89
  178. package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +22 -29
  179. package/lib/product-bar-vertical/style.css +2 -1
  180. package/lib/progress-indicators/index.js +372 -255
  181. package/lib/progress-indicators/index.umd.cjs +1 -1
  182. package/lib/progress-indicators/progress-bar/ProgressBar.js +66 -110
  183. package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +66 -13
  184. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +34 -54
  185. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +136 -8
  186. package/lib/progress-indicators/progress-ring/ProgressRing.js +45 -52
  187. package/lib/progress-indicators/style.css +2 -1
  188. package/lib/rich-text-editor/index.js +556 -582
  189. package/lib/rich-text-editor/index.umd.cjs +11 -11
  190. package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +29 -33
  191. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +23 -37
  192. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +13 -6
  193. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +68 -77
  194. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +21 -8
  195. package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +14 -20
  196. package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +14 -20
  197. package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +33 -27
  198. package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +79 -88
  199. package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +28 -36
  200. package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +195 -211
  201. package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +4 -4
  202. package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +4 -4
  203. package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +4 -4
  204. package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +4 -4
  205. package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +4 -4
  206. package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +4 -4
  207. package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +4 -4
  208. package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +4 -4
  209. package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +4 -4
  210. package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +4 -4
  211. package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +12 -12
  212. package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +20 -19
  213. package/lib/rich-text-editor/rich-text-editor/utils/utils.js +11 -15
  214. package/lib/rich-text-editor/style.css +2 -1
  215. package/lib/scrollable-container/ScrollableContainer.js +18 -27
  216. package/lib/scrollable-container/ScrollableContainer.ve.js +4 -4
  217. package/lib/scrollable-container/index.js +20 -27
  218. package/lib/scrollable-container/index.umd.cjs +1 -1
  219. package/lib/scrollable-container/style.css +2 -1
  220. package/lib/side-nav/index.js +190 -228
  221. package/lib/side-nav/index.umd.cjs +1 -1
  222. package/lib/side-nav/side-nav/SideNav.js +43 -60
  223. package/lib/side-nav/side-nav/SideNav.ve.js +22 -16
  224. package/lib/side-nav/side-nav/navContext.js +7 -7
  225. package/lib/side-nav/side-nav-header/SideNavHeader.js +14 -15
  226. package/lib/side-nav/side-nav-item/SideNavItem.js +68 -94
  227. package/lib/side-nav/side-nav-section/SideNavSection.js +16 -26
  228. package/lib/side-nav/style.css +2 -1
  229. package/lib/sorting-header/caret/caret.ve.js +13 -5
  230. package/lib/sorting-header/index.js +269 -251
  231. package/lib/sorting-header/index.umd.cjs +1 -1
  232. package/lib/sorting-header/sorting-header/SortingHeader.js +110 -124
  233. package/lib/sorting-header/sorting-header/SortingHeader.ve.js +30 -6
  234. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +69 -83
  235. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +21 -7
  236. package/lib/sorting-header/style.css +2 -1
  237. package/lib/style.css +2 -1
  238. package/lib/tabs/index.js +255 -201
  239. package/lib/tabs/index.umd.cjs +1 -1
  240. package/lib/tabs/style.css +2 -1
  241. package/lib/tabs/tab/Tab.js +24 -27
  242. package/lib/tabs/tab/Tab.ve.js +76 -6
  243. package/lib/tabs/tab-panel/TabPanel.js +16 -25
  244. package/lib/tabs/tabs/Tabs.js +101 -112
  245. package/lib/tabs/tabs/Tabs.ve.js +13 -11
  246. package/lib/tags/clickable-tag/ClickableTag.js +86 -90
  247. package/lib/tags/clickable-tag/ClickableTag.ve.js +66 -9
  248. package/lib/tags/index.js +342 -199
  249. package/lib/tags/index.umd.cjs +1 -1
  250. package/lib/tags/split-tag/SplitTag.js +49 -30
  251. package/lib/tags/split-tag/SplitTag.ve.js +35 -9
  252. package/lib/tags/style.css +2 -1
  253. package/lib/tags/tag/Tag.js +42 -38
  254. package/lib/tags/tag/Tag.ve.js +41 -6
  255. package/lib/utils/cl.js +5 -5
  256. package/lib/zero-state/ZeroState.js +36 -29
  257. package/lib/zero-state/ZeroState.ve.js +29 -11
  258. package/lib/zero-state/index.js +103 -78
  259. package/lib/zero-state/index.umd.cjs +1 -1
  260. package/lib/zero-state/style.css +2 -1
  261. package/package.json +12 -12
  262. package/lib/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 +0 -57
@@ -1 +1 @@
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(o){return Object.getOwnPropertyDescriptor(e,o).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 o;if(e[a]!==((o=n[a])!==null&&o!==void 0?o:t[a]))return!1}return!0},D=e=>n=>{var t=e.defaultClassName,a=Y(Y({},e.defaultVariants),n);for(var o in a){var s,l=(s=a[o])!==null&&s!==void 0?s:e.defaultVariants[o];if(l!=null){var i=l;typeof i=="boolean"&&(i=i===!0?"true":"false");var h=e.variantClassNames[o][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_56_2__hash_g6gjux0",oe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux1",variantClassNames:{fullWidth:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux2",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux3"}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),le=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux4",variantClassNames:{hideNameText:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux5",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux6"}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),ie="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux7",ce="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux8",_e="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux9",ue="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxa",Z=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxb",variantClassNames:{active:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxc",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxd"},disabled:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxe",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxf"}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),de="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxg",fe="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxh",pe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxi",variantClassNames:{priorityPlus:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxj",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxk"}},defaultVariants:{priorityPlus:!1},compoundVariants:[]});function K(e){const n=r.useRef(null),{linkProps:t}=te.useLink(e,n),{active:a,priority:o,...s}=e,l=e.as??(e.href?"a":"button"),i={...s,...t,ref:n,className:c.cl(Z({active:a,disabled:!1}),l==="button"&&de,e.className)};return r.createElement(l,{...i},e.children)}c.Metadata.set(K,{name:"Product Bar Tab",props:{active:{type:"boolean",required:!0},href:{type:"string"},priority:{type:"number"}}});function me(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.currentTarget.click())}const G=r.forwardRef(({children:e,className:n,name:t,logoSrc:a,hideNameText:o=!1,...s},l)=>{const i=!!s.onClick&&!("href"in s&&s.href);return r.createElement(r.Fragment,null,r.createElement("a",{className:c.cl(le({hideNameText:o}),n),...i?{role:"button",tabIndex:0,onKeyDown:me}:{},...s,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,o&&_e)},t)),r.createElement("span",{className:fe}))});c.Metadata.set(G,{name:"ProductBarName",props:{name:{type:"string"},logoSrc:{type:"string"},hideNameText:{type:"boolean",default:"false"}}});var he="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn0",ge="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn1",ve="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn2",J="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn3",Q="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn4";function be({items:e,wrapperRef:n}){const{t}=U.useWoodlandLanguage();if(e.length===0)return null;const a=e.some(s=>s.props?.active),o=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}),he),"aria-label":o},o,r.createElement(c.Icon,{icon:"chevron-down",className:ge,"aria-hidden":"true"})),r.createElement(P.Menu,{className:ve,gutter:4},e.map((s,l)=>{const i=s.props?.active,h=s.props?.children,g=s.props?.onPress,d=s.props?.href,N=s.props?.as,M=()=>{g&&g()};if(d&&N){const B=N;return r.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),render:r.createElement(B,{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 ye(e,n={}){const{enabled:t=!0,minVisibleItems:a=1,debounceMs:o=16}=n,s=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),B=r.useRef(!1),[W,E]=r.useState(e.length),[H,j]=r.useState(!1),L=r.useCallback(()=>{if(!s.current)return!1;const _=s.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,C=getComputedStyle(g.current),x=parseFloat(C.marginRight)||0,m=Math.max(0,x-8);M.current=p+m}}return B.current=!0,!0},[e.length]),T=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 C=Array.from(_.children),x=C.filter(m=>getComputedStyle(m).display!=="none");x.length>1&&(p+=k*(x.length-1));for(const m of C){if(m===s.current)continue;const z=getComputedStyle(m),A=parseFloat(z.marginLeft)+parseFloat(z.marginRight);if(m===h.current){const S=Array.from(m.children),q=getComputedStyle(m),I=parseFloat(q.gap)||0;for(const y of S){const R=getComputedStyle(y),Ee=parseFloat(R.marginLeft)+parseFloat(R.marginRight);p+=y.getBoundingClientRect().width+Ee}S.length>1&&(p+=I*(S.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||!B.current){j(!1),v.current=!1;return}let _=T();const b=d.current,f=N.current||100,w=M.current||0;if(v.current&&w>0&&(_-=w),b.length===0||_<=0){E(e.length),j(!1),v.current=!1;return}if(b.reduce((y,R)=>y+R,0)<=_){E(e.length),j(!1),v.current=!1;return}let p=0,C=0;const x=_-f;for(let y=0;y<b.length;y++){const R=b[y];if(p+R<=x)p+=R,C++;else break}const F=Math.min(a,e.length),m=Math.max(C,F),A=b.slice(0,F).reduce((y,R)=>y+R,0)+f,S=C<F&&A>_&&w>0,q=!S&&_>A+w+20;let I=v.current;S&&!v.current?I=!0:q&&v.current&&(I=!1),I!==v.current&&(v.current=I,j(I)),E(m)},[t,e.length,a,T]);r.useEffect(()=>{if(!t){E(e.length);return}B.current=!1,d.current=[],E(e.length)},[t,e.length]),r.useLayoutEffect(()=>{if(!t||!s.current)return;L()&&O()}),r.useEffect(()=>{if(!t)return;let _;const b=()=>{clearTimeout(_),_=setTimeout(()=>{B.current||L(),O()},o)},f=new ResizeObserver(b);return l.current&&f.observe(l.current),()=>{clearTimeout(_),f.disconnect()}},[t,L,O,o]);const Be=t?e.slice(0,W):e,Ce=t&&W<e.length?e.slice(W):[];return{visibleItems:Be,overflowItems:Ce,containerRef:s,parentRef:l,overflowButtonRef:i,contentRef:h,brandRef:g,hideProductName:H}}function we(e){return[...e].sort((n,t)=>{const a=n.props?.priority??1/0,o=t.props?.priority??1/0;return a===o?0:a-o})}function ke(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],o=e[e.length-1],s=[...e.slice(0,-1),a],l=[...n.slice(0,t),o,...n.slice(t+1)];return{visible:s,overflow:l}}function $({fullWidth:e,enablePriorityPlus:n=!0,children:t,className:a,...o}){const s=r.useRef(null),[l,i,h]=c.selectChildren(t,[{type:G},{type:K}]),g=r.useMemo(()=>n?we(i):i,[n,i]),{visibleItems:d,overflowItems:N,containerRef:M,parentRef:B,overflowButtonRef:W,contentRef:E,brandRef:H,hideProductName:j}=ye(g,{enabled:n}),{visible:L,overflow:T}=r.useMemo(()=>ke(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),...o,ref:s},r.createElement("nav",{className:oe({fullWidth:e}),ref:B},v,r.createElement("div",{className:pe({priorityPlus:n}),ref:M},L,T.length>0&&r.createElement(be,{items:T,wrapperRef:W})),r.createElement("div",{className:ue,ref:E},r.createElement(c.PortalContext.Provider,{value:{parentElementRef:s,fixed:!0}},h))))}c.Metadata.set($,{name:"ProductBar",props:{fullWidth:{type:"boolean"},enablePriorityPlus:{type:"boolean",default:"true"}}});var Re="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_pqijiy0",Ne="pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_pqijiy1";function ee({channelId:e,className:n,...t}){const{t:a}=U.useWoodlandLanguage();return r.createElement("a",{className:c.cl(Re,n),target:"_blank",rel:"noreferrer",href:`https://spscommerce.slack.com/archives/${e}`,...t},r.createElement(c.Icon,{className:Ne,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=G,u.ProductBarTab=K,u.SlackLink=ee,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})}));
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_3__hash_g6gjux0`,y=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux1`,variantClassNames:{fullWidth:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux2`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux3`}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),b=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux4`,variantClassNames:{hideNameText:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux5`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux6`}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),x=`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxa`,S=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxb`,variantClassNames:{active:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxc`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxd`},disabled:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxe`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxf`}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),C=`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxh`,w=_({defaultClassName:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxi`,variantClassNames:{priorityPlus:{true:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxj`,false:`pkg_sps-woodland_core__family_product-bar__version_8_56_3__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_3__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_3__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_3__hash_g6gjux8`,o&&`pkg_sps-woodland_core__family_product-bar__version_8_56_3__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_3__hash_5klvkn0`,k=`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn1`,A=`pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn2`,j=`pkg_sps-woodland_core__family_product-bar__version_8_56_3__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_3__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_3__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_3__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_3__hash_pqijiy0`,R=`pkg_sps-woodland_core__family_product-bar__version_8_56_3__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,107 +1,81 @@
1
- import * as t from "react";
2
- import { Metadata as b, selectChildren as w, cl as x, PortalContext as C } from "@sps-woodland/core";
3
- import { ProductBarTab as M } from "../product-bar-tab/ProductBarTab.js";
4
- import { ProductBarName as V } from "../product-bar-name/ProductBarName.js";
5
- import { ProductBarOverflowMenu as g } from "../product-bar-overflow-menu/ProductBarOverflowMenu.js";
6
- import { usePriorityPlus as O } from "../hooks/usePriorityPlus.js";
7
- import { productBarContainer as P, productBar as T, productNavNav as A, productBarContent as W } from "./ProductBar.ve.js";
8
- function j(r) {
9
- return [...r].sort((e, n) => {
10
- const a = e.props?.priority ?? 1 / 0, i = n.props?.priority ?? 1 / 0;
11
- return a === i ? 0 : a - i;
12
- });
1
+ import { productBar as e, productBarContainer as t, productBarContent as n, productNavNav as r } from "./ProductBar.ve.js";
2
+ import { ProductBarTab as i } from "../product-bar-tab/ProductBarTab.js";
3
+ import { ProductBarName as a } from "../product-bar-name/ProductBarName.js";
4
+ import { ProductBarOverflowMenu as o } from "../product-bar-overflow-menu/ProductBarOverflowMenu.js";
5
+ import { usePriorityPlus as s } from "../hooks/usePriorityPlus.js";
6
+ import { Metadata as c, PortalContext as l, cl as u, selectChildren as d } from "@sps-woodland/core";
7
+ import * as f from "react";
8
+ //#region src/product-bar/product-bar/ProductBar.tsx
9
+ function p(e) {
10
+ return [...e].sort((e, t) => {
11
+ let n = e.props?.priority ?? Infinity, r = t.props?.priority ?? Infinity;
12
+ return n === r ? 0 : n - r;
13
+ });
13
14
  }
14
- function k(r, e) {
15
- if (e.length === 0)
16
- return { visible: r, overflow: e };
17
- const n = e.findIndex((s) => s.props?.active);
18
- if (n === -1)
19
- return { visible: r, overflow: e };
20
- const a = e[n], i = r[r.length - 1], c = [...r.slice(0, -1), a], o = [
21
- ...e.slice(0, n),
22
- i,
23
- ...e.slice(n + 1)
24
- ];
25
- return { visible: c, overflow: o };
15
+ function m(e, t) {
16
+ if (t.length === 0) return {
17
+ visible: e,
18
+ overflow: t
19
+ };
20
+ let n = t.findIndex((e) => e.props?.active);
21
+ if (n === -1) return {
22
+ visible: e,
23
+ overflow: t
24
+ };
25
+ let r = t[n], i = e[e.length - 1];
26
+ return {
27
+ visible: [...e.slice(0, -1), r],
28
+ overflow: [
29
+ ...t.slice(0, n),
30
+ i,
31
+ ...t.slice(n + 1)
32
+ ]
33
+ };
26
34
  }
27
- function q({
28
- fullWidth: r,
29
- enablePriorityPlus: e = !0,
30
- children: n,
31
- className: a,
32
- ...i
33
- }) {
34
- const c = t.useRef(null), [o, s, v] = w(n, [
35
- { type: V },
36
- { type: M }
37
- ]), E = t.useMemo(
38
- () => e ? j(s) : s,
39
- [e, s]
40
- ), {
41
- visibleItems: m,
42
- overflowItems: l,
43
- containerRef: I,
44
- parentRef: h,
45
- overflowButtonRef: B,
46
- contentRef: N,
47
- brandRef: f,
48
- hideProductName: u
49
- } = O(E, {
50
- enabled: e
51
- }), { visible: y, overflow: p } = t.useMemo(
52
- () => k(
53
- m,
54
- l
55
- ),
56
- [m, l]
57
- ), R = t.useMemo(() => {
58
- if (!e || !o || o.length === 0)
59
- return o;
60
- const d = o[0];
61
- return t.isValidElement(d) ? [t.cloneElement(d, {
62
- hideNameText: u,
63
- ref: f
64
- })] : o;
65
- }, [e, o, u, f]);
66
- return /* @__PURE__ */ t.createElement("div", { className: x(P, a), ...i, ref: c }, /* @__PURE__ */ t.createElement(
67
- "nav",
68
- {
69
- className: T({ fullWidth: r }),
70
- ref: h
71
- },
72
- R,
73
- /* @__PURE__ */ t.createElement(
74
- "div",
75
- {
76
- className: A({ priorityPlus: e }),
77
- ref: I
78
- },
79
- y,
80
- p.length > 0 && /* @__PURE__ */ t.createElement(
81
- g,
82
- {
83
- items: p,
84
- wrapperRef: B
85
- }
86
- )
87
- ),
88
- /* @__PURE__ */ t.createElement(
89
- "div",
90
- {
91
- className: W,
92
- ref: N
93
- },
94
- /* @__PURE__ */ t.createElement(C.Provider, { value: { parentElementRef: c, fixed: !0 } }, v)
95
- )
96
- ));
35
+ function h({ fullWidth: c, enablePriorityPlus: h = !0, children: g, className: _, ...v }) {
36
+ let y = f.useRef(null), [b, x, S] = d(g, [{ type: a }, { type: i }]), C = f.useMemo(() => h ? p(x) : x, [h, x]), { visibleItems: w, overflowItems: T, containerRef: E, parentRef: D, overflowButtonRef: O, contentRef: k, brandRef: A, hideProductName: j } = s(C, { enabled: h }), { visible: M, overflow: N } = f.useMemo(() => m(w, T), [w, T]), P = f.useMemo(() => {
37
+ if (!h || !b || b.length === 0) return b;
38
+ let e = b[0];
39
+ return f.isValidElement(e) ? [f.cloneElement(e, {
40
+ hideNameText: j,
41
+ ref: A
42
+ })] : b;
43
+ }, [
44
+ h,
45
+ b,
46
+ j,
47
+ A
48
+ ]);
49
+ return /* @__PURE__ */ f.createElement("div", {
50
+ className: u(t, _),
51
+ ...v,
52
+ ref: y
53
+ }, /* @__PURE__ */ f.createElement("nav", {
54
+ className: e({ fullWidth: c }),
55
+ ref: D
56
+ }, P, /* @__PURE__ */ f.createElement("div", {
57
+ className: r({ priorityPlus: h }),
58
+ ref: E
59
+ }, M, N.length > 0 && /* @__PURE__ */ f.createElement(o, {
60
+ items: N,
61
+ wrapperRef: O
62
+ })), /* @__PURE__ */ f.createElement("div", {
63
+ className: n,
64
+ ref: k
65
+ }, /* @__PURE__ */ f.createElement(l.Provider, { value: {
66
+ parentElementRef: y,
67
+ fixed: !0
68
+ } }, S))));
97
69
  }
98
- b.set(q, {
99
- name: "ProductBar",
100
- props: {
101
- fullWidth: { type: "boolean" },
102
- enablePriorityPlus: { type: "boolean", default: "true" }
103
- }
70
+ c.set(h, {
71
+ name: "ProductBar",
72
+ props: {
73
+ fullWidth: { type: "boolean" },
74
+ enablePriorityPlus: {
75
+ type: "boolean",
76
+ default: "true"
77
+ }
78
+ }
104
79
  });
105
- export {
106
- q as ProductBar
107
- };
80
+ //#endregion
81
+ export { h as ProductBar };
@@ -1,16 +1,47 @@
1
+ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.2/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
1
2
  /* empty css */
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-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux0", s = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux2", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux3" } }, defaultVariants: { fullWidth: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux4", variantClassNames: { hideNameText: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux5", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux6" } }, defaultVariants: { hideNameText: !1 }, compoundVariants: [] }), e = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux7", l = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux8", p = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjux9", i = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxa", t = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxb", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxc", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxd" }, disabled: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxe", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxf" } }, defaultVariants: { active: !1, disabled: !1 }, compoundVariants: [] }), u = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxg", n = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxh", g = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxi", variantClassNames: { priorityPlus: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxj", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_g6gjuxk" } }, defaultVariants: { priorityPlus: !1 }, compoundVariants: [] });
4
- export {
5
- t as navItem,
6
- u as navItemButton,
7
- s as productBar,
8
- d as productBarBrand,
9
- e as productBarBrandLogo,
10
- l as productBarBrandName,
11
- o as productBarContainer,
12
- i as productBarContent,
13
- g as productNavNav,
14
- n as verticalRule,
15
- p as visuallyHidden
16
- };
3
+ //#region src/product-bar/product-bar/ProductBar.css.ts
4
+ var t = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux0", n = e({
5
+ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux1",
6
+ variantClassNames: { fullWidth: {
7
+ true: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux2",
8
+ false: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux3"
9
+ } },
10
+ defaultVariants: { fullWidth: !1 },
11
+ compoundVariants: []
12
+ }), r = e({
13
+ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux4",
14
+ variantClassNames: { hideNameText: {
15
+ true: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux5",
16
+ false: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux6"
17
+ } },
18
+ defaultVariants: { hideNameText: !1 },
19
+ compoundVariants: []
20
+ }), i = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux7", a = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux8", o = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux9", s = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxa", c = e({
21
+ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxb",
22
+ variantClassNames: {
23
+ active: {
24
+ true: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxc",
25
+ false: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxd"
26
+ },
27
+ disabled: {
28
+ true: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxe",
29
+ false: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxf"
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ active: !1,
34
+ disabled: !1
35
+ },
36
+ compoundVariants: []
37
+ }), l = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxg", u = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxh", d = e({
38
+ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxi",
39
+ variantClassNames: { priorityPlus: {
40
+ true: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxj",
41
+ false: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxk"
42
+ } },
43
+ defaultVariants: { priorityPlus: !1 },
44
+ compoundVariants: []
45
+ });
46
+ //#endregion
47
+ export { c as navItem, l as navItemButton, n as productBar, r as productBarBrand, i as productBarBrandLogo, a as productBarBrandName, t as productBarContainer, s as productBarContent, d as productNavNav, u as verticalRule, o as visuallyHidden };
@@ -1,42 +1,39 @@
1
- import * as e from "react";
2
- import { cl as l, Metadata as s } from "@sps-woodland/core";
3
- import { productBarBrand as d, productBarBrandLogo as u, productBarBrandName as p, visuallyHidden as f, verticalRule as B } from "../product-bar/ProductBar.ve.js";
4
- function y(a) {
5
- (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.currentTarget.click());
1
+ import { productBarBrand as e, verticalRule as t } from "../product-bar/ProductBar.ve.js";
2
+ import { Metadata as n, cl as r } from "@sps-woodland/core";
3
+ import * as i from "react";
4
+ //#region src/product-bar/product-bar-name/ProductBarName.tsx
5
+ function a(e) {
6
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
6
7
  }
7
- const g = e.forwardRef(
8
- ({ children: a, className: c, name: t, logoSrc: n, hideNameText: o = !1, ...r }, i) => {
9
- const m = !!r.onClick && !("href" in r && r.href);
10
- return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
11
- "a",
12
- {
13
- className: l(d({ hideNameText: o }), c),
14
- ...m ? { role: "button", tabIndex: 0, onKeyDown: y } : {},
15
- ...r,
16
- ref: i
17
- },
18
- n && /* @__PURE__ */ e.createElement(
19
- "img",
20
- {
21
- className: u,
22
- src: n,
23
- "aria-hidden": "true",
24
- alt: `${t} Logo`,
25
- title: t
26
- }
27
- ),
28
- t && /* @__PURE__ */ e.createElement("span", { className: l(p, o && f) }, t)
29
- ), /* @__PURE__ */ e.createElement("span", { className: B }));
30
- }
31
- );
32
- s.set(g, {
33
- name: "ProductBarName",
34
- props: {
35
- name: { type: "string" },
36
- logoSrc: { type: "string" },
37
- hideNameText: { type: "boolean", default: "false" }
38
- }
8
+ var o = i.forwardRef(({ children: n, className: o, name: s, logoSrc: c, hideNameText: l = !1, ...u }, d) => {
9
+ let f = !!u.onClick && !("href" in u && u.href);
10
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("a", {
11
+ className: r(e({ hideNameText: l }), o),
12
+ ...f ? {
13
+ role: "button",
14
+ tabIndex: 0,
15
+ onKeyDown: a
16
+ } : {},
17
+ ...u,
18
+ ref: d
19
+ }, c && /* @__PURE__ */ i.createElement("img", {
20
+ className: "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux7",
21
+ src: c,
22
+ "aria-hidden": "true",
23
+ alt: `${s} Logo`,
24
+ title: s
25
+ }), s && /* @__PURE__ */ i.createElement("span", { className: r("pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux8", l && "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux9") }, s)), /* @__PURE__ */ i.createElement("span", { className: t }));
39
26
  });
40
- export {
41
- g as ProductBarName
42
- };
27
+ n.set(o, {
28
+ name: "ProductBarName",
29
+ props: {
30
+ name: { type: "string" },
31
+ logoSrc: { type: "string" },
32
+ hideNameText: {
33
+ type: "boolean",
34
+ default: "false"
35
+ }
36
+ }
37
+ });
38
+ //#endregion
39
+ export { o as ProductBarName };
@@ -1,71 +1,49 @@
1
- import * as e from "react";
2
- import { cl as o, Icon as w } from "@sps-woodland/core";
3
- import { MenuProvider as k, MenuButton as I, Menu as N, MenuItem as s } from "@ariakit/react";
4
- import { useWoodlandLanguage as B } from "@spscommerce/i18n";
5
- import { navItem as C } from "../product-bar/ProductBar.ve.js";
6
- import { overflowButton as b, overflowButtonChevron as g, overflowMenu as A, overflowMenuItem as m, overflowMenuItemActive as u } from "./ProductBarOverflowMenu.ve.js";
7
- function R({
8
- items: n,
9
- wrapperRef: v
10
- }) {
11
- const { t: d } = B();
12
- if (n.length === 0)
13
- return null;
14
- const h = n.some((r) => r.props?.active), i = d("productBar.more", { defaultValue: "More" });
15
- return (
16
- // Wrap in span for width measurement - don't put ref directly on MenuButton
17
- // as it interferes with ariakit's internal anchor element ref handling
18
- /* @__PURE__ */ e.createElement("span", { ref: v }, /* @__PURE__ */ e.createElement(k, null, /* @__PURE__ */ e.createElement(
19
- I,
20
- {
21
- className: o(C({ active: h, disabled: !1 }), b),
22
- "aria-label": i
23
- },
24
- i,
25
- /* @__PURE__ */ e.createElement(
26
- w,
27
- {
28
- icon: "chevron-down",
29
- className: g,
30
- "aria-hidden": "true"
31
- }
32
- )
33
- ), /* @__PURE__ */ e.createElement(N, { className: A, gutter: 4 }, n.map((r, a) => {
34
- const c = r.props?.active, l = r.props?.children, f = r.props?.onPress, t = r.props?.href, p = r.props?.as, E = () => {
35
- f && f();
36
- };
37
- if (t && p) {
38
- const M = p;
39
- return /* @__PURE__ */ e.createElement(
40
- s,
41
- {
42
- key: a,
43
- className: o(m, c && u),
44
- render: /* @__PURE__ */ e.createElement(M, { to: t })
45
- },
46
- l
47
- );
48
- }
49
- return t ? /* @__PURE__ */ e.createElement(
50
- s,
51
- {
52
- key: a,
53
- className: o(m, c && u),
54
- render: /* @__PURE__ */ e.createElement("a", { href: t })
55
- },
56
- l
57
- ) : /* @__PURE__ */ e.createElement(
58
- s,
59
- {
60
- key: a,
61
- className: o(m, c && u),
62
- onClick: E
63
- },
64
- l
65
- );
66
- }))))
67
- );
1
+ import { navItem as e } from "../product-bar/ProductBar.ve.js";
2
+ import { overflowButton as t, overflowButtonChevron as n, overflowMenu as r, overflowMenuItem as i } from "./ProductBarOverflowMenu.ve.js";
3
+ import { Icon as a, cl as o } from "@sps-woodland/core";
4
+ import * as s from "react";
5
+ import { useWoodlandLanguage as c } from "@spscommerce/i18n";
6
+ import { Menu as l, MenuButton as u, MenuItem as d, MenuProvider as f } from "@ariakit/react";
7
+ //#region src/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.tsx
8
+ function p({ items: p, wrapperRef: m }) {
9
+ let { t: h } = c();
10
+ if (p.length === 0) return null;
11
+ let g = p.some((e) => e.props?.active), _ = h("productBar.more", { defaultValue: "More" });
12
+ return /* @__PURE__ */ s.createElement("span", { ref: m }, /* @__PURE__ */ s.createElement(f, null, /* @__PURE__ */ s.createElement(u, {
13
+ className: o(e({
14
+ active: g,
15
+ disabled: !1
16
+ }), t),
17
+ "aria-label": _
18
+ }, _, /* @__PURE__ */ s.createElement(a, {
19
+ icon: "chevron-down",
20
+ className: n,
21
+ "aria-hidden": "true"
22
+ })), /* @__PURE__ */ s.createElement(l, {
23
+ className: r,
24
+ gutter: 4
25
+ }, p.map((e, t) => {
26
+ let n = e.props?.active, r = e.props?.children, a = e.props?.onPress, c = e.props?.href, l = e.props?.as, u = () => {
27
+ a && a();
28
+ };
29
+ if (c && l) {
30
+ let e = l;
31
+ return /* @__PURE__ */ s.createElement(d, {
32
+ key: t,
33
+ className: o(i, n && "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn4"),
34
+ render: /* @__PURE__ */ s.createElement(e, { to: c })
35
+ }, r);
36
+ }
37
+ return c ? /* @__PURE__ */ s.createElement(d, {
38
+ key: t,
39
+ className: o(i, n && "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn4"),
40
+ render: /* @__PURE__ */ s.createElement("a", { href: c })
41
+ }, r) : /* @__PURE__ */ s.createElement(d, {
42
+ key: t,
43
+ className: o(i, n && "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn4"),
44
+ onClick: u
45
+ }, r);
46
+ }))));
68
47
  }
69
- export {
70
- R as ProductBarOverflowMenu
71
- };
48
+ //#endregion
49
+ export { p as ProductBarOverflowMenu };
@@ -1,9 +1,5 @@
1
1
  /* empty css */
2
- var o = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn0", r = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn1", a = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn2", e = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn3", v = "pkg_sps-woodland_core__family_product-bar__version_8_56_2__hash_5klvkn4";
3
- export {
4
- o as overflowButton,
5
- r as overflowButtonChevron,
6
- a as overflowMenu,
7
- e as overflowMenuItem,
8
- v as overflowMenuItemActive
9
- };
2
+ //#region src/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.css.ts
3
+ var e = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn0", t = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn1", n = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn2", r = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn3", i = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn4";
4
+ //#endregion
5
+ export { e as overflowButton, t as overflowButtonChevron, n as overflowMenu, r as overflowMenuItem, i as overflowMenuItemActive };
@@ -1,28 +1,30 @@
1
- import * as a from "react";
2
- import { Metadata as c, cl as m } from "@sps-woodland/core";
3
- import { useLink as u } from "@react-aria/link";
4
- import { navItem as l, navItemButton as f } from "../product-bar/ProductBar.ve.js";
5
- function d(t) {
6
- const e = a.useRef(null), { linkProps: n } = u(t, e), { active: o, priority: b, ...s } = t, r = t.as ?? (t.href ? "a" : "button"), i = {
7
- ...s,
8
- ...n,
9
- ref: e,
10
- className: m(
11
- l({ active: o, disabled: !1 }),
12
- r === "button" && f,
13
- t.className
14
- )
15
- };
16
- return /* @__PURE__ */ a.createElement(r, { ...i }, t.children);
1
+ import { navItem as e } from "../product-bar/ProductBar.ve.js";
2
+ import { Metadata as t, cl as n } from "@sps-woodland/core";
3
+ import * as r from "react";
4
+ import { useLink as i } from "@react-aria/link";
5
+ //#region src/product-bar/product-bar-tab/ProductBarTab.tsx
6
+ function a(t) {
7
+ let a = r.useRef(null), { linkProps: o } = i(t, a), { active: s, priority: c, ...l } = t, u = t.as ?? (t.href ? "a" : "button"), d = {
8
+ ...l,
9
+ ...o,
10
+ ref: a,
11
+ className: n(e({
12
+ active: s,
13
+ disabled: !1
14
+ }), u === "button" && "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxg", t.className)
15
+ };
16
+ return /* @__PURE__ */ r.createElement(u, d, t.children);
17
17
  }
18
- c.set(d, {
19
- name: "Product Bar Tab",
20
- props: {
21
- active: { type: "boolean", required: !0 },
22
- href: { type: "string" },
23
- priority: { type: "number" }
24
- }
18
+ t.set(a, {
19
+ name: "Product Bar Tab",
20
+ props: {
21
+ active: {
22
+ type: "boolean",
23
+ required: !0
24
+ },
25
+ href: { type: "string" },
26
+ priority: { type: "number" }
27
+ }
25
28
  });
26
- export {
27
- d as ProductBarTab
28
- };
29
+ //#endregion
30
+ export { a as ProductBarTab };