@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.
- package/lib/action-bar/action-bar/ActionBar.js +44 -59
- package/lib/action-bar/action-bar/ActionBar.ve.js +4 -11
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +14 -22
- package/lib/action-bar/index.js +54 -74
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +2 -1
- package/lib/add-to-list/add-to-list/AddToList.js +220 -302
- package/lib/add-to-list/add-to-list/AddToList.ve.js +79 -24
- package/lib/add-to-list/add-to-list/ItemsList.js +42 -67
- package/lib/add-to-list/add-to-list/ListItem.js +24 -50
- package/lib/add-to-list/index.js +393 -453
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +2 -1
- package/lib/buttons/button/Button.js +95 -121
- package/lib/buttons/button/Button.ve.js +150 -9
- package/lib/buttons/index.js +281 -171
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +2 -1
- package/lib/cards/card/Card.js +19 -27
- package/lib/cards/card/Card.ve.js +4 -4
- package/lib/cards/card-footer/CardFooter.js +12 -13
- package/lib/cards/card-footer/CardFooter.ve.js +4 -4
- package/lib/cards/card-header/CardHeader.js +12 -13
- package/lib/cards/card-header/CardHeader.ve.js +4 -4
- package/lib/cards/card-title/CardTitle.js +11 -12
- package/lib/cards/card-title/CardTitle.ve.js +4 -4
- package/lib/cards/index.js +52 -52
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +2 -1
- package/lib/column-manager/column-manager/ColumnManager.js +95 -112
- package/lib/column-manager/column-manager/useColumnManager.js +59 -48
- package/lib/column-manager/index.js +2 -5
- package/lib/components/icon/Icon.ve.js +15 -5
- package/lib/components/icon/icons/sprite.svg.js +4 -4
- package/lib/content-row/content-row/ContentRow.js +146 -173
- package/lib/content-row/content-row/ContentRow.ve.js +105 -18
- package/lib/content-row/content-row-col/ContentRowCol.js +37 -48
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +49 -6
- package/lib/content-row/content-row-expansion/ContentRowExpansion.js +16 -24
- package/lib/content-row/index.js +407 -318
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +24 -39
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +13 -5
- package/lib/content-row/style.css +2 -1
- package/lib/content-tiles/content-tile/ContentTile.js +71 -60
- package/lib/content-tiles/content-tile/ContentTile.ve.js +36 -14
- package/lib/content-tiles/content-tile-list/ContentTileList.js +12 -13
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +4 -5
- package/lib/content-tiles/index.js +156 -118
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +2 -1
- package/lib/core.css +2 -1
- package/lib/dropdowns/dropdown/Dropdown.js +56 -68
- package/lib/dropdowns/dropdown/Dropdown.ve.js +37 -8
- package/lib/dropdowns/index.js +171 -171
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.js +14 -18
- package/lib/dropdowns/option-list/Option.ve.js +4 -5
- package/lib/dropdowns/option-list/OptionList.js +28 -44
- package/lib/dropdowns/option-list/OptionList.ve.js +4 -5
- package/lib/dropdowns/style.css +2 -1
- package/lib/editable-table/EditableTable.js +68 -85
- package/lib/editable-table/index.js +1 -4
- package/lib/feedback-block/FeedbackBlock.js +40 -35
- package/lib/feedback-block/FeedbackBlock.ve.js +56 -7
- package/lib/feedback-block/index.js +132 -85
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +2 -1
- package/lib/file-upload/file-upload/FileUpload.js +164 -202
- package/lib/file-upload/file-upload/FileUpload.ve.js +84 -18
- package/lib/file-upload/file-upload/mime-type.enum.js +106 -106
- package/lib/file-upload/index.js +390 -353
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +2 -1
- package/lib/filter-tiles/filter-tile/FilterTile.js +41 -46
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +51 -9
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +12 -15
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +4 -4
- package/lib/filter-tiles/index.js +142 -107
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +2 -1
- package/lib/focused-task/focused-task/FocusedTask.js +52 -74
- package/lib/focused-task/focused-task/FocusedTask.ve.js +13 -12
- package/lib/focused-task/focused-task/useFocusedTask.js +20 -18
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +12 -13
- package/lib/focused-task/index.js +127 -144
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +2 -1
- package/lib/growler/Growler.js +78 -90
- package/lib/growler/Growler.ve.js +23 -12
- package/lib/growler/GrowlerListProvider.js +38 -39
- package/lib/growler/Sonner.ve.js +17 -12
- package/lib/growler/index.js +249 -274
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/sonner.js +73 -102
- package/lib/growler/style.css +2 -1
- package/lib/index.js +520 -501
- package/lib/index.umd.cjs +4 -4
- package/lib/insight-card/InsightCard.js +90 -84
- package/lib/insight-card/InsightCard.ve.js +148 -15
- package/lib/insight-card/InsightCardSet.js +12 -12
- package/lib/insight-card/index.js +269 -141
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +2 -1
- package/lib/key-value-set/index.js +97 -87
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.js +17 -21
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +10 -5
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +25 -21
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +13 -6
- package/lib/key-value-set/style.css +2 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.js +51 -54
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +30 -8
- package/lib/list-bar/index.js +305 -301
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.js +10 -19
- package/lib/list-bar/list-bar/ListBar.js +105 -121
- package/lib/list-bar/list-bar/ListBar.ve.js +13 -17
- package/lib/list-bar/list-bar/ListBarSearch.js +20 -21
- package/lib/list-bar/list-bar/ListBarSearchInfo.js +8 -12
- package/lib/list-bar/list-bar/ListBarSortBy.js +28 -38
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +38 -28
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +4 -11
- package/lib/list-bar/style.css +2 -1
- package/lib/matrix/index.js +79 -87
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.js +18 -26
- package/lib/matrix/matrix/Matrix.ve.js +4 -7
- package/lib/matrix/matrix-body/MatrixBody.js +10 -13
- package/lib/matrix/matrix-cell/MatrixCell.js +23 -18
- package/lib/matrix/matrix-head/MatrixHead.js +10 -13
- package/lib/matrix/matrix-header/MatrixHeader.js +20 -23
- package/lib/matrix/matrix-row/MatrixRow.js +10 -13
- package/lib/matrix/style.css +2 -1
- package/lib/modal/index.js +197 -187
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.js +90 -108
- package/lib/modal/modal/Modal.ve.js +43 -13
- package/lib/modal/modal/useModal.js +19 -24
- package/lib/modal/modal-footer/ModalFooter.js +11 -12
- package/lib/modal/style.css +2 -1
- 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
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +8 -10
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +4 -4
- package/lib/page-title/heading-level/HeadingLevel.js +8 -12
- package/lib/page-title/index.js +33 -40
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.js +13 -18
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +4 -5
- package/lib/page-title/page-title/PageTitle.js +15 -19
- package/lib/page-title/page-title/PageTitle.ve.js +4 -7
- package/lib/page-title/style.css +2 -1
- package/lib/photo/index.js +174 -177
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.js +72 -81
- package/lib/photo/photo/Photo.ve.js +21 -7
- package/lib/photo/photo-carousel/PhotoCarousel.js +36 -51
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +13 -9
- package/lib/photo/style.css +2 -1
- package/lib/product-bar/hooks/usePriorityPlus.js +88 -104
- package/lib/product-bar/index.js +372 -395
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.js +77 -103
- package/lib/product-bar/product-bar/ProductBar.ve.js +46 -15
- package/lib/product-bar/product-bar-name/ProductBarName.js +37 -40
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +48 -70
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +4 -8
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +28 -26
- package/lib/product-bar/slack-link/SlackLink.js +26 -30
- package/lib/product-bar/slack-link/SlackLink.ve.js +4 -5
- package/lib/product-bar/style.css +2 -1
- package/lib/product-bar-vertical/index.js +240 -251
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +42 -61
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +53 -23
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +30 -42
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +71 -89
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +22 -29
- package/lib/product-bar-vertical/style.css +2 -1
- package/lib/progress-indicators/index.js +372 -255
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.js +66 -110
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +66 -13
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +34 -54
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +136 -8
- package/lib/progress-indicators/progress-ring/ProgressRing.js +45 -52
- package/lib/progress-indicators/style.css +2 -1
- package/lib/rich-text-editor/index.js +556 -582
- package/lib/rich-text-editor/index.umd.cjs +11 -11
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +29 -33
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +23 -37
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +13 -6
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +68 -77
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +21 -8
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +33 -27
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +79 -88
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +28 -36
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +195 -211
- package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +12 -12
- package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +20 -19
- package/lib/rich-text-editor/rich-text-editor/utils/utils.js +11 -15
- package/lib/rich-text-editor/style.css +2 -1
- package/lib/scrollable-container/ScrollableContainer.js +18 -27
- package/lib/scrollable-container/ScrollableContainer.ve.js +4 -4
- package/lib/scrollable-container/index.js +20 -27
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +2 -1
- package/lib/side-nav/index.js +190 -228
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.js +43 -60
- package/lib/side-nav/side-nav/SideNav.ve.js +22 -16
- package/lib/side-nav/side-nav/navContext.js +7 -7
- package/lib/side-nav/side-nav-header/SideNavHeader.js +14 -15
- package/lib/side-nav/side-nav-item/SideNavItem.js +68 -94
- package/lib/side-nav/side-nav-section/SideNavSection.js +16 -26
- package/lib/side-nav/style.css +2 -1
- package/lib/sorting-header/caret/caret.ve.js +13 -5
- package/lib/sorting-header/index.js +269 -251
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.js +110 -124
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +30 -6
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +69 -83
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +21 -7
- package/lib/sorting-header/style.css +2 -1
- package/lib/style.css +2 -1
- package/lib/tabs/index.js +255 -201
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +2 -1
- package/lib/tabs/tab/Tab.js +24 -27
- package/lib/tabs/tab/Tab.ve.js +76 -6
- package/lib/tabs/tab-panel/TabPanel.js +16 -25
- package/lib/tabs/tabs/Tabs.js +101 -112
- package/lib/tabs/tabs/Tabs.ve.js +13 -11
- package/lib/tags/clickable-tag/ClickableTag.js +86 -90
- package/lib/tags/clickable-tag/ClickableTag.ve.js +66 -9
- package/lib/tags/index.js +342 -199
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.js +49 -30
- package/lib/tags/split-tag/SplitTag.ve.js +35 -9
- package/lib/tags/style.css +2 -1
- package/lib/tags/tag/Tag.js +42 -38
- package/lib/tags/tag/Tag.ve.js +41 -6
- package/lib/utils/cl.js +5 -5
- package/lib/zero-state/ZeroState.js +36 -29
- package/lib/zero-state/ZeroState.ve.js +29 -11
- package/lib/zero-state/index.js +103 -78
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +2 -1
- package/package.json +12 -12
- 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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
106
|
-
|
|
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
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
41
|
-
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { p as ProductBarOverflowMenu };
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
2
|
-
import { Metadata as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as ProductBarTab };
|