@sps-woodland/core 8.53.11 → 8.53.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/action-bar/action-bar/ActionBar.ve.js +8 -8
- package/lib/action-bar/index.js +30 -30
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.ve.js +19 -19
- package/lib/add-to-list/index.js +183 -183
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.ve.js +4 -4
- package/lib/buttons/index.js +48 -48
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +2 -2
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +2 -2
- package/lib/cards/index.js +21 -21
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/components/reorder-wrapper/ReorderWrapper.d.ts +2 -2
- package/lib/components/reorder-wrapper/ReorderWrapper.d.ts.map +1 -1
- package/lib/components/title/Title.d.ts +1 -1
- package/lib/components/title/Title.d.ts.map +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +13 -13
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +2 -2
- package/lib/content-row/content-row-expansion/ContentRowExpansion.d.ts +1 -1
- package/lib/content-row/content-row-expansion/ContentRowExpansion.d.ts.map +1 -1
- package/lib/content-row/index.js +159 -165
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +10 -16
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +2 -2
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +7 -7
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +3 -3
- package/lib/content-tiles/index.js +59 -59
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +1 -1
- package/lib/core.css +1 -1
- package/lib/dropdowns/dropdown/Dropdown.d.ts +1 -1
- package/lib/dropdowns/dropdown/Dropdown.d.ts.map +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +3 -3
- package/lib/dropdowns/index.js +84 -84
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.d.ts +1 -1
- package/lib/dropdowns/option-list/Option.d.ts.map +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.d.ts +1 -1
- package/lib/dropdowns/option-list/OptionList.d.ts.map +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +1 -1
- package/lib/editable-table/style.css +50 -17
- package/lib/examples.d.ts.map +1 -1
- package/lib/feedback-block/FeedbackBlock.ve.js +3 -3
- package/lib/feedback-block/index.js +54 -54
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.d.ts +1 -1
- package/lib/file-upload/file-upload/FileUpload.d.ts.map +1 -1
- package/lib/file-upload/file-upload/FileUpload.js +46 -41
- package/lib/file-upload/file-upload/FileUpload.ve.js +14 -14
- package/lib/file-upload/index.js +115 -110
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +5 -5
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.d.ts.map +1 -1
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +2 -2
- package/lib/filter-tiles/index.js +55 -55
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +1 -1
- package/lib/focused-task/focused-task/FocusedTask.ve.js +9 -9
- package/lib/focused-task/index.js +49 -49
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.d.ts.map +1 -1
- package/lib/growler/Growler.ve.js +7 -7
- package/lib/growler/Sonner.ve.js +7 -7
- package/lib/growler/index.js +95 -101
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/sonner.js +21 -27
- package/lib/growler/style.css +1 -1
- package/lib/index.js +166 -167
- package/lib/index.umd.cjs +2 -2
- package/lib/insight-card/InsightCard.ve.js +7 -7
- package/lib/insight-card/index.js +59 -59
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +53 -53
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +2 -2
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +3 -3
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.css.d.ts +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.css.d.ts.map +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +5 -5
- package/lib/list-bar/index.js +88 -88
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.d.ts +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.d.ts.map +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +12 -12
- package/lib/list-bar/list-bar/ListBarSearch.d.ts +1 -1
- package/lib/list-bar/list-bar/ListBarSearch.d.ts.map +1 -1
- package/lib/list-bar/list-bar/ListBarSearchInfo.d.ts +1 -1
- package/lib/list-bar/list-bar/ListBarSearchInfo.d.ts.map +1 -1
- package/lib/list-bar/list-bar/ListBarSortBy.d.ts +2 -2
- package/lib/list-bar/list-bar/ListBarSortBy.d.ts.map +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts +2 -4
- package/lib/list-bar/search-results-bar/SearchResultsBar.d.ts.map +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +8 -8
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +29 -29
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +2 -2
- package/lib/matrix/matrix-body/MatrixBody.d.ts +1 -1
- package/lib/matrix/matrix-body/MatrixBody.d.ts.map +1 -1
- package/lib/matrix/matrix-head/MatrixHead.d.ts +1 -1
- package/lib/matrix/matrix-head/MatrixHead.d.ts.map +1 -1
- package/lib/matrix/matrix-row/MatrixRow.d.ts +1 -1
- package/lib/matrix/matrix-row/MatrixRow.d.ts.map +1 -1
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +86 -86
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +9 -9
- package/lib/modal/style.css +1 -1
- package/lib/page-title/index.js +17 -17
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +3 -3
- package/lib/page-title/page-title/PageTitle.ve.js +4 -4
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +67 -67
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.d.ts +2 -2
- package/lib/photo/photo/Photo.d.ts.map +1 -1
- package/lib/photo/photo/Photo.js +11 -11
- package/lib/photo/photo/Photo.ve.js +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts.map +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
- package/lib/photo/style.css +1 -1
- package/lib/product-bar/index.js +91 -93
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +10 -10
- package/lib/product-bar/product-bar-name/ProductBarName.d.ts.map +1 -1
- package/lib/product-bar/product-bar-name/ProductBarName.js +13 -15
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +5 -5
- package/lib/product-bar/slack-link/SlackLink.ve.js +2 -2
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +69 -69
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +20 -20
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.d.ts +1 -1
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.d.ts.map +1 -1
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +79 -79
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.css.d.ts +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.css.d.ts.map +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.d.ts +2 -2
- package/lib/progress-indicators/progress-bar/ProgressBar.d.ts.map +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.js +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +10 -10
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.d.ts +3 -3
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.d.ts.map +1 -1
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +4 -4
- package/lib/progress-indicators/progress-ring/ProgressRing.d.ts +2 -2
- package/lib/progress-indicators/progress-ring/ProgressRing.d.ts.map +1 -1
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +86 -86
- package/lib/rich-text-editor/index.umd.cjs +2 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +1 -1
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +2 -2
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +5 -5
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +8 -8
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +78 -78
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +12 -12
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +2 -2
- package/lib/sorting-header/index.js +125 -125
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +3 -3
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +2 -2
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +100 -100
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +2 -2
- package/lib/tabs/tabs/Tabs.ve.js +5 -5
- package/lib/tags/clickable-tag/ClickableTag.ve.js +4 -4
- package/lib/tags/index.js +80 -80
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +2 -2
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +3 -3
- package/lib/utils/VariantDefinitions.d.ts +1 -3
- package/lib/utils/VariantDefinitions.d.ts.map +1 -1
- package/lib/utils/combineEventHandlers.d.ts.map +1 -1
- package/lib/utils/getScrollParent.d.ts.map +1 -1
- package/lib/utils/modChildren.d.ts.map +1 -1
- package/lib/zero-state/ZeroState.ve.js +6 -6
- package/lib/zero-state/index.js +42 -42
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +11 -11
- package/scripts/watch-all.mjs +1 -1
package/lib/product-bar/index.js
CHANGED
|
@@ -15,8 +15,8 @@ function K(e, n) {
|
|
|
15
15
|
var r = Object.keys(e);
|
|
16
16
|
if (Object.getOwnPropertySymbols) {
|
|
17
17
|
var a = Object.getOwnPropertySymbols(e);
|
|
18
|
-
n && (a = a.filter(function(
|
|
19
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
18
|
+
n && (a = a.filter(function(s) {
|
|
19
|
+
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
20
20
|
})), r.push.apply(r, a);
|
|
21
21
|
}
|
|
22
22
|
return r;
|
|
@@ -32,34 +32,34 @@ function J(e) {
|
|
|
32
32
|
}
|
|
33
33
|
return e;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var _e = (e, n, r) => {
|
|
36
36
|
for (var a of Object.keys(e)) {
|
|
37
|
-
var
|
|
38
|
-
if (e[a] !== ((
|
|
37
|
+
var s;
|
|
38
|
+
if (e[a] !== ((s = n[a]) !== null && s !== void 0 ? s : r[a]))
|
|
39
39
|
return !1;
|
|
40
40
|
}
|
|
41
41
|
return !0;
|
|
42
42
|
}, q = (e) => (n) => {
|
|
43
43
|
var r = e.defaultClassName, a = J(J({}, e.defaultVariants), n);
|
|
44
|
-
for (var
|
|
45
|
-
var
|
|
44
|
+
for (var s in a) {
|
|
45
|
+
var o, l = (o = a[s]) !== null && o !== void 0 ? o : e.defaultVariants[s];
|
|
46
46
|
if (l != null) {
|
|
47
47
|
var c = l;
|
|
48
48
|
typeof c == "boolean" && (c = c === !0 ? "true" : "false");
|
|
49
49
|
var p = (
|
|
50
50
|
// @ts-expect-error
|
|
51
|
-
e.variantClassNames[
|
|
51
|
+
e.variantClassNames[s][c]
|
|
52
52
|
);
|
|
53
53
|
p && (r += " " + p);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
for (var [m,
|
|
57
|
-
|
|
56
|
+
for (var [m, i] of e.compoundVariants)
|
|
57
|
+
_e(m, a, e.defaultVariants) && (r += " " + i);
|
|
58
58
|
return r;
|
|
59
|
-
},
|
|
59
|
+
}, ie = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux0", ue = q({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux2", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux3" } }, defaultVariants: { fullWidth: !1 }, compoundVariants: [] }), de = q({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4", variantClassNames: { hideNameText: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux5", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux6" } }, defaultVariants: { hideNameText: !1 }, compoundVariants: [] }), fe = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux7", pe = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux8", me = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux9", he = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxa", X = q({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxc", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxd" }, disabled: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxe", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxf" } }, defaultVariants: { active: !1, disabled: !1 }, compoundVariants: [] }), ge = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxg", ve = q({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxh", variantClassNames: { priorityPlus: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxi", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxj" } }, defaultVariants: { priorityPlus: !1 }, compoundVariants: [] });
|
|
60
60
|
function Y(e) {
|
|
61
|
-
const n = t.useRef(null), { linkProps: r } = ae(e, n), { active: a, priority:
|
|
62
|
-
...
|
|
61
|
+
const n = t.useRef(null), { linkProps: r } = ae(e, n), { active: a, priority: s, ...o } = e, l = {
|
|
62
|
+
...o,
|
|
63
63
|
...r,
|
|
64
64
|
ref: n,
|
|
65
65
|
className: k(X({ active: a, disabled: !1 }), e.className)
|
|
@@ -74,25 +74,23 @@ H.set(Y, {
|
|
|
74
74
|
priority: { type: "number" }
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
const Z = t.forwardRef(
|
|
78
|
-
children:
|
|
79
|
-
className:
|
|
80
|
-
name:
|
|
81
|
-
logoSrc:
|
|
77
|
+
const Z = t.forwardRef(({
|
|
78
|
+
children: e,
|
|
79
|
+
className: n,
|
|
80
|
+
name: r,
|
|
81
|
+
logoSrc: a,
|
|
82
82
|
hideNameText: s = !1,
|
|
83
|
-
...
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
), a && /* @__PURE__ */ t.createElement("span", { className: k(pe, s && me) }, a)), /* @__PURE__ */ t.createElement("span", { className: ge }));
|
|
95
|
-
});
|
|
83
|
+
...o
|
|
84
|
+
}, l) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("a", { className: k(de({ hideNameText: s }), n), ...o, ref: l }, a && /* @__PURE__ */ t.createElement(
|
|
85
|
+
"img",
|
|
86
|
+
{
|
|
87
|
+
className: fe,
|
|
88
|
+
src: a,
|
|
89
|
+
"aria-hidden": "true",
|
|
90
|
+
alt: `${r} Logo`,
|
|
91
|
+
title: r
|
|
92
|
+
}
|
|
93
|
+
), r && /* @__PURE__ */ t.createElement("span", { className: k(pe, s && me) }, r)), /* @__PURE__ */ t.createElement("span", { className: ge })));
|
|
96
94
|
H.set(Z, {
|
|
97
95
|
name: "ProductBarName",
|
|
98
96
|
props: {
|
|
@@ -101,7 +99,7 @@ H.set(Z, {
|
|
|
101
99
|
hideNameText: { type: "boolean", default: "false" }
|
|
102
100
|
}
|
|
103
101
|
});
|
|
104
|
-
var
|
|
102
|
+
var be = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn0", ye = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1", we = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2", z = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3", G = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn4";
|
|
105
103
|
function ke({
|
|
106
104
|
items: e,
|
|
107
105
|
wrapperRef: n
|
|
@@ -109,47 +107,47 @@ function ke({
|
|
|
109
107
|
const { t: r } = U();
|
|
110
108
|
if (e.length === 0)
|
|
111
109
|
return null;
|
|
112
|
-
const a = e.some((
|
|
110
|
+
const a = e.some((o) => o.props?.active), s = r("productBar.more", { defaultValue: "More" });
|
|
113
111
|
return (
|
|
114
112
|
// Wrap in span for width measurement - don't put ref directly on MenuButton
|
|
115
113
|
// as it interferes with ariakit's internal anchor element ref handling
|
|
116
114
|
/* @__PURE__ */ t.createElement("span", { ref: n }, /* @__PURE__ */ t.createElement(se, null, /* @__PURE__ */ t.createElement(
|
|
117
115
|
oe,
|
|
118
116
|
{
|
|
119
|
-
className: k(X({ active: a, disabled: !1 }),
|
|
120
|
-
"aria-label":
|
|
117
|
+
className: k(X({ active: a, disabled: !1 }), be),
|
|
118
|
+
"aria-label": s
|
|
121
119
|
},
|
|
122
|
-
|
|
120
|
+
s,
|
|
123
121
|
/* @__PURE__ */ t.createElement(
|
|
124
122
|
Q,
|
|
125
123
|
{
|
|
126
124
|
icon: "chevron-down",
|
|
127
|
-
className:
|
|
125
|
+
className: ye,
|
|
128
126
|
"aria-hidden": "true"
|
|
129
127
|
}
|
|
130
128
|
)
|
|
131
|
-
), /* @__PURE__ */ t.createElement(le, { className:
|
|
132
|
-
const c =
|
|
129
|
+
), /* @__PURE__ */ t.createElement(le, { className: we, gutter: 4 }, e.map((o, l) => {
|
|
130
|
+
const c = o.props?.active, p = o.props?.children, m = o.props?.onPress, i = o.props?.href, R = o.props?.as, I = () => {
|
|
133
131
|
m && m();
|
|
134
132
|
};
|
|
135
|
-
if (
|
|
133
|
+
if (i && R) {
|
|
136
134
|
const N = R;
|
|
137
135
|
return /* @__PURE__ */ t.createElement(
|
|
138
136
|
D,
|
|
139
137
|
{
|
|
140
138
|
key: l,
|
|
141
139
|
className: k(z, c && G),
|
|
142
|
-
render: /* @__PURE__ */ t.createElement(N, { to:
|
|
140
|
+
render: /* @__PURE__ */ t.createElement(N, { to: i })
|
|
143
141
|
},
|
|
144
142
|
p
|
|
145
143
|
);
|
|
146
144
|
}
|
|
147
|
-
return
|
|
145
|
+
return i ? /* @__PURE__ */ t.createElement(
|
|
148
146
|
D,
|
|
149
147
|
{
|
|
150
148
|
key: l,
|
|
151
149
|
className: k(z, c && G),
|
|
152
|
-
render: /* @__PURE__ */ t.createElement("a", { href:
|
|
150
|
+
render: /* @__PURE__ */ t.createElement("a", { href: i })
|
|
153
151
|
},
|
|
154
152
|
p
|
|
155
153
|
) : /* @__PURE__ */ t.createElement(
|
|
@@ -168,36 +166,36 @@ function Re(e, n = {}) {
|
|
|
168
166
|
const {
|
|
169
167
|
enabled: r = !0,
|
|
170
168
|
minVisibleItems: a = 1,
|
|
171
|
-
debounceMs:
|
|
169
|
+
debounceMs: s = 16
|
|
172
170
|
// ~1 frame for responsive resize handling
|
|
173
|
-
} = n,
|
|
174
|
-
if (!
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
if (
|
|
171
|
+
} = n, o = t.useRef(null), l = t.useRef(null), c = t.useRef(null), p = t.useRef(null), m = t.useRef(null), i = t.useRef([]), R = t.useRef(0), I = t.useRef(0), N = t.useRef(!1), [M, E] = t.useState(e.length), [A, B] = t.useState(!1), S = t.useCallback(() => {
|
|
172
|
+
if (!o.current) return !1;
|
|
173
|
+
const _ = o.current, g = Array.from(_.children), u = c.current;
|
|
174
|
+
u && (R.current = u.getBoundingClientRect().width);
|
|
175
|
+
const b = g.filter((y) => y !== u);
|
|
176
|
+
if (b.length < e.length)
|
|
179
177
|
return !1;
|
|
180
|
-
if (
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
const d =
|
|
178
|
+
if (i.current = b.map((y) => y.getBoundingClientRect().width), m.current) {
|
|
179
|
+
const y = m.current.querySelector("span:last-of-type");
|
|
180
|
+
if (y) {
|
|
181
|
+
const d = y.getBoundingClientRect().width, C = getComputedStyle(m.current), P = parseFloat(C.marginRight) || 0, f = Math.max(0, P - 8);
|
|
184
182
|
I.current = d + f;
|
|
185
183
|
}
|
|
186
184
|
}
|
|
187
185
|
return N.current = !0, !0;
|
|
188
186
|
}, [e.length]), V = t.useCallback(() => {
|
|
189
187
|
if (!l.current) return 0;
|
|
190
|
-
const
|
|
191
|
-
let d =
|
|
192
|
-
const C = Array.from(
|
|
193
|
-
P.length > 1 && (d +=
|
|
188
|
+
const _ = l.current, g = _.getBoundingClientRect(), u = getComputedStyle(_), b = parseFloat(u.paddingLeft) + parseFloat(u.paddingRight), y = parseFloat(u.gap) || 0;
|
|
189
|
+
let d = b;
|
|
190
|
+
const C = Array.from(_.children), P = C.filter((f) => getComputedStyle(f).display !== "none");
|
|
191
|
+
P.length > 1 && (d += y * (P.length - 1));
|
|
194
192
|
for (const f of C) {
|
|
195
|
-
if (f ===
|
|
193
|
+
if (f === o.current) continue;
|
|
196
194
|
const T = getComputedStyle(f), L = parseFloat(T.marginLeft) + parseFloat(T.marginRight);
|
|
197
195
|
if (f === p.current) {
|
|
198
196
|
const O = Array.from(f.children), F = getComputedStyle(f), j = parseFloat(F.gap) || 0;
|
|
199
197
|
for (const v of O) {
|
|
200
|
-
const
|
|
198
|
+
const w = getComputedStyle(v), te = parseFloat(w.marginLeft) + parseFloat(w.marginRight);
|
|
201
199
|
d += v.getBoundingClientRect().width + te;
|
|
202
200
|
}
|
|
203
201
|
O.length > 1 && (d += j * (O.length - 1)), d += parseFloat(F.paddingLeft) + parseFloat(F.paddingRight), d += L;
|
|
@@ -210,26 +208,26 @@ function Re(e, n = {}) {
|
|
|
210
208
|
B(!1), h.current = !1;
|
|
211
209
|
return;
|
|
212
210
|
}
|
|
213
|
-
let
|
|
214
|
-
const g =
|
|
215
|
-
if (h.current &&
|
|
211
|
+
let _ = V();
|
|
212
|
+
const g = i.current, u = R.current || 100, b = I.current || 0;
|
|
213
|
+
if (h.current && b > 0 && (_ -= b), g.length === 0 || _ <= 0) {
|
|
216
214
|
E(e.length), B(!1), h.current = !1;
|
|
217
215
|
return;
|
|
218
216
|
}
|
|
219
|
-
if (g.reduce((v,
|
|
217
|
+
if (g.reduce((v, w) => v + w, 0) <= _) {
|
|
220
218
|
E(e.length), B(!1), h.current = !1;
|
|
221
219
|
return;
|
|
222
220
|
}
|
|
223
221
|
let d = 0, C = 0;
|
|
224
|
-
const P =
|
|
222
|
+
const P = _ - u;
|
|
225
223
|
for (let v = 0; v < g.length; v++) {
|
|
226
|
-
const
|
|
227
|
-
if (d +
|
|
228
|
-
d +=
|
|
224
|
+
const w = g[v];
|
|
225
|
+
if (d + w <= P)
|
|
226
|
+
d += w, C++;
|
|
229
227
|
else
|
|
230
228
|
break;
|
|
231
229
|
}
|
|
232
|
-
const W = Math.min(a, e.length), f = Math.max(C, W), L = g.slice(0, W).reduce((v,
|
|
230
|
+
const W = Math.min(a, e.length), f = Math.max(C, W), L = g.slice(0, W).reduce((v, w) => v + w, 0) + u, O = C < W && L > _ && b > 0, F = !O && _ > L + b + 20;
|
|
233
231
|
let j = h.current;
|
|
234
232
|
O && !h.current ? j = !0 : F && h.current && (j = !1), j !== h.current && (h.current = j, B(j)), E(f);
|
|
235
233
|
}, [r, e.length, a, V]);
|
|
@@ -238,27 +236,27 @@ function Re(e, n = {}) {
|
|
|
238
236
|
E(e.length);
|
|
239
237
|
return;
|
|
240
238
|
}
|
|
241
|
-
N.current = !1,
|
|
239
|
+
N.current = !1, i.current = [], E(e.length);
|
|
242
240
|
}, [r, e.length]), t.useLayoutEffect(() => {
|
|
243
|
-
if (!r || !
|
|
241
|
+
if (!r || !o.current) return;
|
|
244
242
|
S() && x();
|
|
245
243
|
}), t.useEffect(() => {
|
|
246
244
|
if (!r) return;
|
|
247
|
-
let
|
|
245
|
+
let _;
|
|
248
246
|
const g = () => {
|
|
249
|
-
clearTimeout(
|
|
247
|
+
clearTimeout(_), _ = setTimeout(() => {
|
|
250
248
|
N.current || S(), x();
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
return l.current &&
|
|
254
|
-
clearTimeout(
|
|
249
|
+
}, s);
|
|
250
|
+
}, u = new ResizeObserver(g);
|
|
251
|
+
return l.current && u.observe(l.current), () => {
|
|
252
|
+
clearTimeout(_), u.disconnect();
|
|
255
253
|
};
|
|
256
|
-
}, [r, S, x,
|
|
254
|
+
}, [r, S, x, s]);
|
|
257
255
|
const $ = r ? e.slice(0, M) : e, ee = r && M < e.length ? e.slice(M) : [];
|
|
258
256
|
return {
|
|
259
257
|
visibleItems: $,
|
|
260
258
|
overflowItems: ee,
|
|
261
|
-
containerRef:
|
|
259
|
+
containerRef: o,
|
|
262
260
|
parentRef: l,
|
|
263
261
|
overflowButtonRef: c,
|
|
264
262
|
contentRef: p,
|
|
@@ -268,8 +266,8 @@ function Re(e, n = {}) {
|
|
|
268
266
|
}
|
|
269
267
|
function Ne(e) {
|
|
270
268
|
return [...e].sort((n, r) => {
|
|
271
|
-
const a = n.props?.priority ?? 1 / 0,
|
|
272
|
-
return a ===
|
|
269
|
+
const a = n.props?.priority ?? 1 / 0, s = r.props?.priority ?? 1 / 0;
|
|
270
|
+
return a === s ? 0 : a - s;
|
|
273
271
|
});
|
|
274
272
|
}
|
|
275
273
|
function Ce(e, n) {
|
|
@@ -278,28 +276,28 @@ function Ce(e, n) {
|
|
|
278
276
|
const r = n.findIndex((c) => c.props?.active);
|
|
279
277
|
if (r === -1)
|
|
280
278
|
return { visible: e, overflow: n };
|
|
281
|
-
const a = n[r],
|
|
279
|
+
const a = n[r], s = e[e.length - 1], o = [...e.slice(0, -1), a], l = [
|
|
282
280
|
...n.slice(0, r),
|
|
283
|
-
|
|
281
|
+
s,
|
|
284
282
|
...n.slice(r + 1)
|
|
285
283
|
];
|
|
286
|
-
return { visible:
|
|
284
|
+
return { visible: o, overflow: l };
|
|
287
285
|
}
|
|
288
286
|
function Ee({
|
|
289
287
|
fullWidth: e,
|
|
290
288
|
enablePriorityPlus: n = !0,
|
|
291
289
|
children: r,
|
|
292
290
|
className: a,
|
|
293
|
-
...
|
|
291
|
+
...s
|
|
294
292
|
}) {
|
|
295
|
-
const
|
|
293
|
+
const o = t.useRef(null), [l, c, p] = re(r, [
|
|
296
294
|
{ type: Z },
|
|
297
295
|
{ type: Y }
|
|
298
296
|
]), m = t.useMemo(
|
|
299
297
|
() => n ? Ne(c) : c,
|
|
300
298
|
[n, c]
|
|
301
299
|
), {
|
|
302
|
-
visibleItems:
|
|
300
|
+
visibleItems: i,
|
|
303
301
|
overflowItems: R,
|
|
304
302
|
containerRef: I,
|
|
305
303
|
parentRef: N,
|
|
@@ -311,10 +309,10 @@ function Ee({
|
|
|
311
309
|
enabled: n
|
|
312
310
|
}), { visible: S, overflow: V } = t.useMemo(
|
|
313
311
|
() => Ce(
|
|
314
|
-
|
|
312
|
+
i,
|
|
315
313
|
R
|
|
316
314
|
),
|
|
317
|
-
[
|
|
315
|
+
[i, R]
|
|
318
316
|
), h = t.useMemo(() => {
|
|
319
317
|
if (!n || !l || l.length === 0)
|
|
320
318
|
return l;
|
|
@@ -324,10 +322,10 @@ function Ee({
|
|
|
324
322
|
ref: A
|
|
325
323
|
})] : l;
|
|
326
324
|
}, [n, l, B, A]);
|
|
327
|
-
return /* @__PURE__ */ t.createElement("div", { className: k(
|
|
325
|
+
return /* @__PURE__ */ t.createElement("div", { className: k(ie, a), ...s, ref: o }, /* @__PURE__ */ t.createElement(
|
|
328
326
|
"nav",
|
|
329
327
|
{
|
|
330
|
-
className:
|
|
328
|
+
className: ue({ fullWidth: e }),
|
|
331
329
|
ref: N
|
|
332
330
|
},
|
|
333
331
|
h,
|
|
@@ -352,7 +350,7 @@ function Ee({
|
|
|
352
350
|
className: he,
|
|
353
351
|
ref: E
|
|
354
352
|
},
|
|
355
|
-
/* @__PURE__ */ t.createElement(ne.Provider, { value: { parentElementRef:
|
|
353
|
+
/* @__PURE__ */ t.createElement(ne.Provider, { value: { parentElementRef: o, fixed: !0 } }, p)
|
|
356
354
|
)
|
|
357
355
|
));
|
|
358
356
|
}
|
|
@@ -363,7 +361,7 @@ H.set(Ee, {
|
|
|
363
361
|
enablePriorityPlus: { type: "boolean", default: "true" }
|
|
364
362
|
}
|
|
365
363
|
});
|
|
366
|
-
var Be = "pkg_sps-
|
|
364
|
+
var Be = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0", je = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy1";
|
|
367
365
|
function Ie({
|
|
368
366
|
channelId: e,
|
|
369
367
|
className: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react"),require("@sps-woodland/core"),require("@react-aria/link"),require("@ariakit/react"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@react-aria/link","@ariakit/react","@spscommerce/i18n"],V):(_=typeof globalThis<"u"?globalThis:_||self,V(_.ProductBar={},_.react,_.spsWoodlandCore,_.reactAriaLink,_.ariakitReact,_.spscommerceI18n))})(this,(function(_,V,c,te,I,U){"use strict";function ne(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const t=ne(V);function re(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function X(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Y(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?X(Object(n),!0).forEach(function(a){re(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var ae=(e,r,n)=>{for(var a of Object.keys(e)){var o;if(e[a]!==((o=r[a])!==null&&o!==void 0?o:n[a]))return!1}return!0},D=e=>r=>{var n=e.defaultClassName,a=Y(Y({},e.defaultVariants),r);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&&(n+=" "+h)}}for(var[g,d]of e.compoundVariants)ae(g,a,e.defaultVariants)&&(n+=" "+d);return n},se="pkg_sps-woodland_core__version_8_53_11__hash_g6gjux0",oe=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjux1",variantClassNames:{fullWidth:{true:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjux2",false:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjux3"}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),le=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjux4",variantClassNames:{hideNameText:{true:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjux5",false:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjux6"}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),ie="pkg_sps-woodland_core__version_8_53_11__hash_g6gjux7",ce="pkg_sps-woodland_core__version_8_53_11__hash_g6gjux8",ue="pkg_sps-woodland_core__version_8_53_11__hash_g6gjux9",_e="pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxa",Z=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxb",variantClassNames:{active:{true:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxc",false:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxd"},disabled:{true:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxe",false:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxf"}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),de="pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxg",fe=D({defaultClassName:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxh",variantClassNames:{priorityPlus:{true:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxi",false:"pkg_sps-woodland_core__version_8_53_11__hash_g6gjuxj"}},defaultVariants:{priorityPlus:!1},compoundVariants:[]});function G(e){const r=t.useRef(null),{linkProps:n}=te.useLink(e,r),{active:a,priority:o,...s}=e,l={...s,...n,ref:r,className:c.cl(Z({active:a,disabled:!1}),e.className)},i=e.as??(e.href?"a":"span");return t.createElement(i,{...l},e.children)}c.Metadata.set(G,{name:"Product Bar Tab",props:{active:{type:"boolean",required:!0},href:{type:"string"},priority:{type:"number"}}});const K=t.forwardRef(function({children:r,className:n,name:a,logoSrc:o,hideNameText:s=!1,...l},i){return t.createElement(t.Fragment,null,t.createElement("a",{className:c.cl(le({hideNameText:s}),n),...l,ref:i},o&&t.createElement("img",{className:ie,src:o,"aria-hidden":"true",alt:`${a} Logo`,title:a}),a&&t.createElement("span",{className:c.cl(ce,s&&ue)},a)),t.createElement("span",{className:de}))});c.Metadata.set(K,{name:"ProductBarName",props:{name:{type:"string"},logoSrc:{type:"string"},hideNameText:{type:"boolean",default:"false"}}});var pe="pkg_sps-woodland_core__version_8_53_11__hash_5klvkn0",me="pkg_sps-woodland_core__version_8_53_11__hash_5klvkn1",he="pkg_sps-woodland_core__version_8_53_11__hash_5klvkn2",J="pkg_sps-woodland_core__version_8_53_11__hash_5klvkn3",Q="pkg_sps-woodland_core__version_8_53_11__hash_5klvkn4";function ge({items:e,wrapperRef:r}){const{t:n}=U.useWoodlandLanguage();if(e.length===0)return null;const a=e.some(s=>s.props?.active),o=n("productBar.more",{defaultValue:"More"});return t.createElement("span",{ref:r},t.createElement(I.MenuProvider,null,t.createElement(I.MenuButton,{className:c.cl(Z({active:a,disabled:!1}),pe),"aria-label":o},o,t.createElement(c.Icon,{icon:"chevron-down",className:me,"aria-hidden":"true"})),t.createElement(I.Menu,{className:he,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 C=N;return t.createElement(I.MenuItem,{key:l,className:c.cl(J,i&&Q),render:t.createElement(C,{to:d})},h)}return d?t.createElement(I.MenuItem,{key:l,className:c.cl(J,i&&Q),render:t.createElement("a",{href:d})},h):t.createElement(I.MenuItem,{key:l,className:c.cl(J,i&&Q),onClick:M},h)}))))}function ve(e,r={}){const{enabled:n=!0,minVisibleItems:a=1,debounceMs:o=16}=r,s=t.useRef(null),l=t.useRef(null),i=t.useRef(null),h=t.useRef(null),g=t.useRef(null),d=t.useRef([]),N=t.useRef(0),M=t.useRef(0),C=t.useRef(!1),[W,E]=t.useState(e.length),[H,j]=t.useState(!1),L=t.useCallback(()=>{if(!s.current)return!1;const u=s.current,b=Array.from(u.children),f=i.current;f&&(N.current=f.getBoundingClientRect().width);const k=b.filter(y=>y!==f);if(k.length<e.length)return!1;if(d.current=k.map(y=>y.getBoundingClientRect().width),g.current){const y=g.current.querySelector("span:last-of-type");if(y){const p=y.getBoundingClientRect().width,B=getComputedStyle(g.current),S=parseFloat(B.marginRight)||0,m=Math.max(0,S-8);M.current=p+m}}return C.current=!0,!0},[e.length]),F=t.useCallback(()=>{if(!l.current)return 0;const u=l.current,b=u.getBoundingClientRect(),f=getComputedStyle(u),k=parseFloat(f.paddingLeft)+parseFloat(f.paddingRight),y=parseFloat(f.gap)||0;let p=k;const B=Array.from(u.children),S=B.filter(m=>getComputedStyle(m).display!=="none");S.length>1&&(p+=y*(S.length-1));for(const m of B){if(m===s.current)continue;const z=getComputedStyle(m),A=parseFloat(z.marginLeft)+parseFloat(z.marginRight);if(m===h.current){const x=Array.from(m.children),q=getComputedStyle(m),P=parseFloat(q.gap)||0;for(const w of x){const R=getComputedStyle(w),Ce=parseFloat(R.marginLeft)+parseFloat(R.marginRight);p+=w.getBoundingClientRect().width+Ce}x.length>1&&(p+=P*(x.length-1)),p+=parseFloat(q.paddingLeft)+parseFloat(q.paddingRight),p+=A}else p+=m.getBoundingClientRect().width+A}return Math.max(0,b.width-p-2)},[]),v=t.useRef(!1),O=t.useCallback(()=>{if(!n||!C.current){j(!1),v.current=!1;return}let u=F();const b=d.current,f=N.current||100,k=M.current||0;if(v.current&&k>0&&(u-=k),b.length===0||u<=0){E(e.length),j(!1),v.current=!1;return}if(b.reduce((w,R)=>w+R,0)<=u){E(e.length),j(!1),v.current=!1;return}let p=0,B=0;const S=u-f;for(let w=0;w<b.length;w++){const R=b[w];if(p+R<=S)p+=R,B++;else break}const T=Math.min(a,e.length),m=Math.max(B,T),A=b.slice(0,T).reduce((w,R)=>w+R,0)+f,x=B<T&&A>u&&k>0,q=!x&&u>A+k+20;let P=v.current;x&&!v.current?P=!0:q&&v.current&&(P=!1),P!==v.current&&(v.current=P,j(P)),E(m)},[n,e.length,a,F]);t.useEffect(()=>{if(!n){E(e.length);return}C.current=!1,d.current=[],E(e.length)},[n,e.length]),t.useLayoutEffect(()=>{if(!n||!s.current)return;L()&&O()}),t.useEffect(()=>{if(!n)return;let u;const b=()=>{clearTimeout(u),u=setTimeout(()=>{C.current||L(),O()},o)},f=new ResizeObserver(b);return l.current&&f.observe(l.current),()=>{clearTimeout(u),f.disconnect()}},[n,L,O,o]);const Re=n?e.slice(0,W):e,Ne=n&&W<e.length?e.slice(W):[];return{visibleItems:Re,overflowItems:Ne,containerRef:s,parentRef:l,overflowButtonRef:i,contentRef:h,brandRef:g,hideProductName:H}}function be(e){return[...e].sort((r,n)=>{const a=r.props?.priority??1/0,o=n.props?.priority??1/0;return a===o?0:a-o})}function we(e,r){if(r.length===0)return{visible:e,overflow:r};const n=r.findIndex(i=>i.props?.active);if(n===-1)return{visible:e,overflow:r};const a=r[n],o=e[e.length-1],s=[...e.slice(0,-1),a],l=[...r.slice(0,n),o,...r.slice(n+1)];return{visible:s,overflow:l}}function $({fullWidth:e,enablePriorityPlus:r=!0,children:n,className:a,...o}){const s=t.useRef(null),[l,i,h]=c.selectChildren(n,[{type:K},{type:G}]),g=t.useMemo(()=>r?be(i):i,[r,i]),{visibleItems:d,overflowItems:N,containerRef:M,parentRef:C,overflowButtonRef:W,contentRef:E,brandRef:H,hideProductName:j}=ve(g,{enabled:r}),{visible:L,overflow:F}=t.useMemo(()=>we(d,N),[d,N]),v=t.useMemo(()=>{if(!r||!l||l.length===0)return l;const O=l[0];return t.isValidElement(O)?[t.cloneElement(O,{hideNameText:j,ref:H})]:l},[r,l,j,H]);return t.createElement("div",{className:c.cl(se,a),...o,ref:s},t.createElement("nav",{className:oe({fullWidth:e}),ref:C},v,t.createElement("div",{className:fe({priorityPlus:r}),ref:M},L,F.length>0&&t.createElement(ge,{items:F,wrapperRef:W})),t.createElement("div",{className:_e,ref:E},t.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 ke="pkg_sps-woodland_core__version_8_53_11__hash_pqijiy0",ye="pkg_sps-woodland_core__version_8_53_11__hash_pqijiy1";function ee({channelId:e,className:r,...n}){const{t:a}=U.useWoodlandLanguage();return t.createElement("a",{className:c.cl(ke,r),target:"_blank",rel:"noreferrer",href:`https://spscommerce.slack.com/archives/${e}`,...n},t.createElement(c.Icon,{className:ye,icon:"conversation","aria-hidden":"true"}),t.createElement("span",null,a("slackLink.label",{defaultValue:"Chat"})))}c.Metadata.set(ee,{name:"Slack Link",props:{channelId:{type:"string",required:!0}}}),_.ProductBar=$,_.ProductBarName=K,_.ProductBarTab=G,_.SlackLink=ee,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(u,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("react"),require("@sps-woodland/core"),require("@react-aria/link"),require("@ariakit/react"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@react-aria/link","@ariakit/react","@spscommerce/i18n"],V):(u=typeof globalThis<"u"?globalThis:u||self,V(u.ProductBar={},u.react,u.spsWoodlandCore,u.reactAriaLink,u.ariakitReact,u.spscommerceI18n))})(this,(function(u,V,c,te,P,U){"use strict";function re(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=re(V);function ne(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function Y(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?X(Object(t),!0).forEach(function(a){ne(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var ae=(e,n,t)=>{for(var a of Object.keys(e)){var s;if(e[a]!==((s=n[a])!==null&&s!==void 0?s:t[a]))return!1}return!0},D=e=>n=>{var t=e.defaultClassName,a=Y(Y({},e.defaultVariants),n);for(var s in a){var o,l=(o=a[s])!==null&&o!==void 0?o:e.defaultVariants[s];if(l!=null){var i=l;typeof i=="boolean"&&(i=i===!0?"true":"false");var h=e.variantClassNames[s][i];h&&(t+=" "+h)}}for(var[g,d]of e.compoundVariants)ae(g,a,e.defaultVariants)&&(t+=" "+d);return t},se="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux0",oe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux1",variantClassNames:{fullWidth:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux2",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux3"}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),le=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4",variantClassNames:{hideNameText:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux5",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux6"}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),ie="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux7",ce="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux8",_e="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux9",ue="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxa",Z=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb",variantClassNames:{active:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxc",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxd"},disabled:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxe",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxf"}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),de="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxg",fe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxh",variantClassNames:{priorityPlus:{true:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxi",false:"pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxj"}},defaultVariants:{priorityPlus:!1},compoundVariants:[]});function G(e){const n=r.useRef(null),{linkProps:t}=te.useLink(e,n),{active:a,priority:s,...o}=e,l={...o,...t,ref:n,className:c.cl(Z({active:a,disabled:!1}),e.className)},i=e.as??(e.href?"a":"span");return r.createElement(i,{...l},e.children)}c.Metadata.set(G,{name:"Product Bar Tab",props:{active:{type:"boolean",required:!0},href:{type:"string"},priority:{type:"number"}}});const K=r.forwardRef(({children:e,className:n,name:t,logoSrc:a,hideNameText:s=!1,...o},l)=>r.createElement(r.Fragment,null,r.createElement("a",{className:c.cl(le({hideNameText:s}),n),...o,ref:l},a&&r.createElement("img",{className:ie,src:a,"aria-hidden":"true",alt:`${t} Logo`,title:t}),t&&r.createElement("span",{className:c.cl(ce,s&&_e)},t)),r.createElement("span",{className:de})));c.Metadata.set(K,{name:"ProductBarName",props:{name:{type:"string"},logoSrc:{type:"string"},hideNameText:{type:"boolean",default:"false"}}});var pe="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn0",me="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1",he="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2",J="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3",Q="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn4";function ge({items:e,wrapperRef:n}){const{t}=U.useWoodlandLanguage();if(e.length===0)return null;const a=e.some(o=>o.props?.active),s=t("productBar.more",{defaultValue:"More"});return r.createElement("span",{ref:n},r.createElement(P.MenuProvider,null,r.createElement(P.MenuButton,{className:c.cl(Z({active:a,disabled:!1}),pe),"aria-label":s},s,r.createElement(c.Icon,{icon:"chevron-down",className:me,"aria-hidden":"true"})),r.createElement(P.Menu,{className:he,gutter:4},e.map((o,l)=>{const i=o.props?.active,h=o.props?.children,g=o.props?.onPress,d=o.props?.href,N=o.props?.as,M=()=>{g&&g()};if(d&&N){const C=N;return r.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),render:r.createElement(C,{to:d})},h)}return d?r.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),render:r.createElement("a",{href:d})},h):r.createElement(P.MenuItem,{key:l,className:c.cl(J,i&&Q),onClick:M},h)}))))}function ve(e,n={}){const{enabled:t=!0,minVisibleItems:a=1,debounceMs:s=16}=n,o=r.useRef(null),l=r.useRef(null),i=r.useRef(null),h=r.useRef(null),g=r.useRef(null),d=r.useRef([]),N=r.useRef(0),M=r.useRef(0),C=r.useRef(!1),[W,B]=r.useState(e.length),[H,j]=r.useState(!1),L=r.useCallback(()=>{if(!o.current)return!1;const _=o.current,b=Array.from(_.children),f=i.current;f&&(N.current=f.getBoundingClientRect().width);const w=b.filter(k=>k!==f);if(w.length<e.length)return!1;if(d.current=w.map(k=>k.getBoundingClientRect().width),g.current){const k=g.current.querySelector("span:last-of-type");if(k){const p=k.getBoundingClientRect().width,E=getComputedStyle(g.current),S=parseFloat(E.marginRight)||0,m=Math.max(0,S-8);M.current=p+m}}return C.current=!0,!0},[e.length]),F=r.useCallback(()=>{if(!l.current)return 0;const _=l.current,b=_.getBoundingClientRect(),f=getComputedStyle(_),w=parseFloat(f.paddingLeft)+parseFloat(f.paddingRight),k=parseFloat(f.gap)||0;let p=w;const E=Array.from(_.children),S=E.filter(m=>getComputedStyle(m).display!=="none");S.length>1&&(p+=k*(S.length-1));for(const m of E){if(m===o.current)continue;const z=getComputedStyle(m),A=parseFloat(z.marginLeft)+parseFloat(z.marginRight);if(m===h.current){const x=Array.from(m.children),q=getComputedStyle(m),I=parseFloat(q.gap)||0;for(const y of x){const R=getComputedStyle(y),Ce=parseFloat(R.marginLeft)+parseFloat(R.marginRight);p+=y.getBoundingClientRect().width+Ce}x.length>1&&(p+=I*(x.length-1)),p+=parseFloat(q.paddingLeft)+parseFloat(q.paddingRight),p+=A}else p+=m.getBoundingClientRect().width+A}return Math.max(0,b.width-p-2)},[]),v=r.useRef(!1),O=r.useCallback(()=>{if(!t||!C.current){j(!1),v.current=!1;return}let _=F();const b=d.current,f=N.current||100,w=M.current||0;if(v.current&&w>0&&(_-=w),b.length===0||_<=0){B(e.length),j(!1),v.current=!1;return}if(b.reduce((y,R)=>y+R,0)<=_){B(e.length),j(!1),v.current=!1;return}let p=0,E=0;const S=_-f;for(let y=0;y<b.length;y++){const R=b[y];if(p+R<=S)p+=R,E++;else break}const T=Math.min(a,e.length),m=Math.max(E,T),A=b.slice(0,T).reduce((y,R)=>y+R,0)+f,x=E<T&&A>_&&w>0,q=!x&&_>A+w+20;let I=v.current;x&&!v.current?I=!0:q&&v.current&&(I=!1),I!==v.current&&(v.current=I,j(I)),B(m)},[t,e.length,a,F]);r.useEffect(()=>{if(!t){B(e.length);return}C.current=!1,d.current=[],B(e.length)},[t,e.length]),r.useLayoutEffect(()=>{if(!t||!o.current)return;L()&&O()}),r.useEffect(()=>{if(!t)return;let _;const b=()=>{clearTimeout(_),_=setTimeout(()=>{C.current||L(),O()},s)},f=new ResizeObserver(b);return l.current&&f.observe(l.current),()=>{clearTimeout(_),f.disconnect()}},[t,L,O,s]);const Re=t?e.slice(0,W):e,Ne=t&&W<e.length?e.slice(W):[];return{visibleItems:Re,overflowItems:Ne,containerRef:o,parentRef:l,overflowButtonRef:i,contentRef:h,brandRef:g,hideProductName:H}}function be(e){return[...e].sort((n,t)=>{const a=n.props?.priority??1/0,s=t.props?.priority??1/0;return a===s?0:a-s})}function ye(e,n){if(n.length===0)return{visible:e,overflow:n};const t=n.findIndex(i=>i.props?.active);if(t===-1)return{visible:e,overflow:n};const a=n[t],s=e[e.length-1],o=[...e.slice(0,-1),a],l=[...n.slice(0,t),s,...n.slice(t+1)];return{visible:o,overflow:l}}function $({fullWidth:e,enablePriorityPlus:n=!0,children:t,className:a,...s}){const o=r.useRef(null),[l,i,h]=c.selectChildren(t,[{type:K},{type:G}]),g=r.useMemo(()=>n?be(i):i,[n,i]),{visibleItems:d,overflowItems:N,containerRef:M,parentRef:C,overflowButtonRef:W,contentRef:B,brandRef:H,hideProductName:j}=ve(g,{enabled:n}),{visible:L,overflow:F}=r.useMemo(()=>ye(d,N),[d,N]),v=r.useMemo(()=>{if(!n||!l||l.length===0)return l;const O=l[0];return r.isValidElement(O)?[r.cloneElement(O,{hideNameText:j,ref:H})]:l},[n,l,j,H]);return r.createElement("div",{className:c.cl(se,a),...s,ref:o},r.createElement("nav",{className:oe({fullWidth:e}),ref:C},v,r.createElement("div",{className:fe({priorityPlus:n}),ref:M},L,F.length>0&&r.createElement(ge,{items:F,wrapperRef:W})),r.createElement("div",{className:ue,ref:B},r.createElement(c.PortalContext.Provider,{value:{parentElementRef:o,fixed:!0}},h))))}c.Metadata.set($,{name:"ProductBar",props:{fullWidth:{type:"boolean"},enablePriorityPlus:{type:"boolean",default:"true"}}});var we="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0",ke="pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy1";function ee({channelId:e,className:n,...t}){const{t:a}=U.useWoodlandLanguage();return r.createElement("a",{className:c.cl(we,n),target:"_blank",rel:"noreferrer",href:`https://spscommerce.slack.com/archives/${e}`,...t},r.createElement(c.Icon,{className:ke,icon:"conversation","aria-hidden":"true"}),r.createElement("span",null,a("slackLink.label",{defaultValue:"Chat"})))}c.Metadata.set(ee,{name:"Slack Link",props:{channelId:{type:"string",required:!0}}}),u.ProductBar=$,u.ProductBarName=K,u.ProductBarTab=G,u.SlackLink=ee,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { createRuntimeFn as _ } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
|
|
3
|
-
var o = "pkg_sps-
|
|
3
|
+
var o = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux0", s = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux2", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux3" } }, defaultVariants: { fullWidth: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4", variantClassNames: { hideNameText: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux5", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux6" } }, defaultVariants: { hideNameText: !1 }, compoundVariants: [] }), e = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux7", l = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux8", p = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux9", i = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxa", u = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxc", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxd" }, disabled: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxe", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxf" } }, defaultVariants: { active: !1, disabled: !1 }, compoundVariants: [] }), t = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxg", n = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxh", variantClassNames: { priorityPlus: { true: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxi", false: "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxj" } }, defaultVariants: { priorityPlus: !1 }, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
u as navItem,
|
|
6
|
+
s as productBar,
|
|
7
|
+
d as productBarBrand,
|
|
8
|
+
e as productBarBrandLogo,
|
|
9
|
+
l as productBarBrandName,
|
|
10
10
|
o as productBarContainer,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
i as productBarContent,
|
|
12
|
+
n as productNavNav,
|
|
13
|
+
t as verticalRule,
|
|
14
|
+
p as visuallyHidden
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBarName.d.ts","sourceRoot":"","sources":["../../../src/product-bar/product-bar-name/ProductBarName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAUzD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,KAAK,uBAAuB,GAAG,KAAK,CAAC,yBAAyB,CAC5D,cAAc,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAChG,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"ProductBarName.d.ts","sourceRoot":"","sources":["../../../src/product-bar/product-bar-name/ProductBarName.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAUzD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2FAA2F;IAC3F,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,KAAK,uBAAuB,GAAG,KAAK,CAAC,yBAAyB,CAC5D,cAAc,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAChG,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,uBAiCzB,CAAC"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { cl as l, Metadata as m } from "@sps-woodland/core";
|
|
3
|
-
import { productBarBrand as
|
|
4
|
-
const f = e.forwardRef(
|
|
5
|
-
children:
|
|
3
|
+
import { productBarBrand as n, productBarBrandLogo as d, productBarBrandName as p, visuallyHidden as i, verticalRule as u } from "../product-bar/ProductBar.ve.js";
|
|
4
|
+
const f = e.forwardRef(({
|
|
5
|
+
children: B,
|
|
6
6
|
className: o,
|
|
7
7
|
name: a,
|
|
8
8
|
logoSrc: r,
|
|
9
9
|
hideNameText: t = !1,
|
|
10
10
|
...c
|
|
11
|
-
}, n)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
), a && /* @__PURE__ */ e.createElement("span", { className: l(i, t && p) }, a)), /* @__PURE__ */ e.createElement("span", { className: u }));
|
|
22
|
-
});
|
|
11
|
+
}, s) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("a", { className: l(n({ hideNameText: t }), o), ...c, ref: s }, r && /* @__PURE__ */ e.createElement(
|
|
12
|
+
"img",
|
|
13
|
+
{
|
|
14
|
+
className: d,
|
|
15
|
+
src: r,
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
alt: `${a} Logo`,
|
|
18
|
+
title: a
|
|
19
|
+
}
|
|
20
|
+
), a && /* @__PURE__ */ e.createElement("span", { className: l(p, t && i) }, a)), /* @__PURE__ */ e.createElement("span", { className: u })));
|
|
23
21
|
m.set(f, {
|
|
24
22
|
name: "ProductBarName",
|
|
25
23
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
var o = "pkg_sps-
|
|
2
|
+
var o = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn0", r = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1", a = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2", e = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3", v = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn4";
|
|
3
3
|
export {
|
|
4
4
|
o as overflowButton,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
r as overflowButtonChevron,
|
|
6
|
+
a as overflowMenu,
|
|
7
|
+
e as overflowMenuItem,
|
|
8
|
+
v as overflowMenuItemActive
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
var o = "pkg_sps-
|
|
2
|
+
var o = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0", a = "pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy1";
|
|
3
3
|
export {
|
|
4
4
|
o as slackLink,
|
|
5
|
-
|
|
5
|
+
a as slackLinkIcon
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux0{background-color:#fff;box-shadow:0 1px 2px #00000026;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux1{background-color:#fff;display:flex;min-height:3.75rem;padding-top:0;padding-right:2rem;padding-bottom:0;padding-left:2rem;width:1280px;align-items:center}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux2{width:100%}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4{align-content:center;cursor:pointer;display:flex;margin-right:2rem;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux4:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux5{margin-right:.5rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux7{align-content:center;display:flex;height:1.5rem;margin-right:.5rem;width:1.5rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux8{align-content:center;color:#1f282c;display:flex;font-size:1rem;font-weight:600}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjux9{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxa{flex:1;text-align:right}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb{align-items:center;color:#4b5356!important;font-size:.875rem!important;cursor:pointer;display:flex;height:3.625rem;justify-content:center;margin-top:.125rem;padding-top:0;padding-right:1rem;padding-bottom:0;padding-left:1rem;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxb:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxc{box-shadow:inset 0 -.125rem #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxe{color:#d2d4d4}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxg{display:inline-block;height:2.125rem;margin-top:0;margin-right:1rem;margin-bottom:0;margin-left:0;background:#d2d4d4;width:.0625rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_g6gjuxh{display:flex;flex-direction:row;padding-left:0;margin-bottom:0;list-style:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn0{background:none;border:none;font:inherit;gap:.25rem;flex-shrink:0}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1{font-size:.75rem;transition:transform .15s ease}[aria-expanded=true] .pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn1{transform:rotate(180deg)}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2{background:#fff;border-style:solid;border-width:.0625rem;border-radius:.25rem;border-color:#717779;box-shadow:0 2px 8px #00000026;min-width:120px;overflow-y:auto;overscroll-behavior:contain;z-index:100}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn2:focus{outline:.125rem solid #007db8ff!important;outline-offset:.125rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3{align-items:center;color:#4b5356;cursor:pointer;display:flex;font-size:.875rem;font-weight:400;padding:.5rem 1rem;text-decoration:none;white-space:nowrap}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3:hover{background:#e6f2f8;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn3:focus{background:#e6f2f8;outline:.125rem solid #007db8ff!important;outline-offset:-.125rem}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_5klvkn4{font-weight:600;box-shadow:inset 3px 0 #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0{align-items:center;display:inline-flex;font-size:.875rem;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy0:hover{border-bottom-style:solid;border-bottom-width:.0625rem;border-bottom-color:#007db8;text-decoration:none!important}.pkg_sps-woodland_core__family_product-bar__version_8_53_13__hash_pqijiy1{font-size:1rem;margin-right:.25rem}
|