@sps-woodland/core 8.55.2 → 8.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
- package/lib/action-bar/index.js +1 -1
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.ve.js +1 -1
- package/lib/add-to-list/index.js +1 -1
- 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 +1 -1
- package/lib/buttons/index.js +1 -1
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +1 -1
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +1 -1
- package/lib/cards/index.js +4 -4
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/components/icon/Icon.ve.js +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +1 -1
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +1 -1
- package/lib/content-row/index.js +3 -3
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +1 -1
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +1 -1
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
- package/lib/content-tiles/index.js +2 -2
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +1 -1
- package/lib/core.css +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +1 -1
- package/lib/dropdowns/index.js +3 -3
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +1 -1
- package/lib/feedback-block/FeedbackBlock.ve.js +1 -1
- package/lib/feedback-block/index.js +1 -1
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.ve.js +1 -1
- package/lib/file-upload/index.js +1 -1
- 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 +1 -1
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
- package/lib/filter-tiles/index.js +2 -2
- 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 +1 -1
- package/lib/focused-task/index.js +1 -1
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.ve.js +1 -1
- package/lib/growler/Sonner.ve.js +1 -1
- package/lib/growler/index.js +2 -2
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/style.css +1 -1
- package/lib/index.js +8 -8
- package/lib/index.umd.cjs +1 -1
- package/lib/insight-card/InsightCard.ve.js +1 -1
- package/lib/insight-card/index.js +1 -1
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +2 -2
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +1 -1
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +1 -1
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +1 -1
- package/lib/list-bar/index.js +3 -3
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +1 -1
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +1 -1
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +1 -1
- package/lib/modal/style.css +1 -1
- package/lib/page-title/heading-level/HeadingLevel.d.ts +9 -0
- package/lib/page-title/heading-level/HeadingLevel.d.ts.map +1 -0
- package/lib/page-title/heading-level/HeadingLevel.js +15 -0
- package/lib/page-title/index.d.ts +1 -0
- package/lib/page-title/index.d.ts.map +1 -1
- package/lib/page-title/index.js +35 -22
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.js +6 -6
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
- package/lib/page-title/page-title/PageTitle.css.d.ts +1 -0
- package/lib/page-title/page-title/PageTitle.css.d.ts.map +1 -1
- package/lib/page-title/page-title/PageTitle.d.ts +9 -1
- package/lib/page-title/page-title/PageTitle.d.ts.map +1 -1
- package/lib/page-title/page-title/PageTitle.js +13 -10
- package/lib/page-title/page-title/PageTitle.ve.js +2 -1
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +2 -2
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.ve.js +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
- package/lib/photo/style.css +1 -1
- package/lib/product-bar/index.js +115 -100
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.css.d.ts +1 -0
- package/lib/product-bar/product-bar/ProductBar.css.d.ts.map +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +5 -4
- package/lib/product-bar/product-bar-name/ProductBarName.d.ts.map +1 -1
- package/lib/product-bar/product-bar-name/ProductBarName.js +31 -20
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
- package/lib/product-bar/product-bar-tab/ProductBarTab.d.ts +3 -4
- package/lib/product-bar/product-bar-tab/ProductBarTab.d.ts.map +1 -1
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +17 -13
- package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +1 -1
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +1 -1
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +1 -1
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +1 -1
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +1 -1
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +2 -2
- package/lib/rich-text-editor/index.umd.cjs +1 -1
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +1 -1
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +1 -1
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +1 -1
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +1 -1
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +1 -1
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +1 -1
- package/lib/sorting-header/index.js +2 -2
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +1 -1
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +2 -2
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +1 -1
- package/lib/tabs/tabs/Tabs.ve.js +1 -1
- package/lib/tags/clickable-tag/ClickableTag.ve.js +1 -1
- package/lib/tags/index.js +3 -3
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +1 -1
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +1 -1
- package/lib/zero-state/ZeroState.ve.js +1 -1
- package/lib/zero-state/index.js +1 -1
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +10 -10
package/lib/product-bar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import { Metadata as
|
|
2
|
+
import { Metadata as D, cl as k, Icon as Q, selectChildren as re, PortalContext as ne } from "@sps-woodland/core";
|
|
3
3
|
import { useLink as ae } from "@react-aria/link";
|
|
4
|
-
import { MenuProvider as
|
|
4
|
+
import { MenuProvider as oe, MenuButton as se, Menu as le, MenuItem as q } from "@ariakit/react";
|
|
5
5
|
import { useWoodlandLanguage as U } from "@spscommerce/i18n";
|
|
6
|
-
function
|
|
6
|
+
function _e(e, n, r) {
|
|
7
7
|
return n in e ? Object.defineProperty(e, n, {
|
|
8
8
|
value: r,
|
|
9
9
|
enumerable: !0,
|
|
@@ -11,7 +11,7 @@ function ce(e, n, r) {
|
|
|
11
11
|
writable: !0
|
|
12
12
|
}) : e[n] = r, e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function G(e, n) {
|
|
15
15
|
var r = Object.keys(e);
|
|
16
16
|
if (Object.getOwnPropertySymbols) {
|
|
17
17
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -24,49 +24,53 @@ function K(e, n) {
|
|
|
24
24
|
function J(e) {
|
|
25
25
|
for (var n = 1; n < arguments.length; n++) {
|
|
26
26
|
var r = arguments[n] != null ? arguments[n] : {};
|
|
27
|
-
n % 2 ?
|
|
28
|
-
|
|
29
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
27
|
+
n % 2 ? G(Object(r), !0).forEach(function(a) {
|
|
28
|
+
_e(e, a, r[a]);
|
|
29
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : G(Object(r)).forEach(function(a) {
|
|
30
30
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
return e;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var ce = (e, n, r) => {
|
|
36
36
|
for (var a of Object.keys(e)) {
|
|
37
37
|
var s;
|
|
38
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
|
+
}, H = (e) => (n) => {
|
|
43
43
|
var r = e.defaultClassName, a = J(J({}, e.defaultVariants), n);
|
|
44
44
|
for (var s in a) {
|
|
45
45
|
var o, l = (o = a[s]) !== null && o !== void 0 ? o : e.defaultVariants[s];
|
|
46
46
|
if (l != null) {
|
|
47
|
-
var
|
|
48
|
-
typeof
|
|
47
|
+
var _ = l;
|
|
48
|
+
typeof _ == "boolean" && (_ = _ === !0 ? "true" : "false");
|
|
49
49
|
var p = (
|
|
50
50
|
// @ts-expect-error
|
|
51
|
-
e.variantClassNames[s][
|
|
51
|
+
e.variantClassNames[s][_]
|
|
52
52
|
);
|
|
53
53
|
p && (r += " " + p);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
for (var [m, i] of e.compoundVariants)
|
|
57
|
-
|
|
57
|
+
ce(m, a, e.defaultVariants) && (r += " " + i);
|
|
58
58
|
return r;
|
|
59
|
-
}, ie = "pkg_sps-woodland_core__family_product-
|
|
59
|
+
}, ie = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux0", ue = H({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux2", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux3" } }, defaultVariants: { fullWidth: !1 }, compoundVariants: [] }), de = H({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux4", variantClassNames: { hideNameText: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux5", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux6" } }, defaultVariants: { hideNameText: !1 }, compoundVariants: [] }), fe = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux7", pe = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux8", me = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux9", he = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxa", X = H({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxb", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxc", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxd" }, disabled: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxe", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxf" } }, defaultVariants: { active: !1, disabled: !1 }, compoundVariants: [] }), ge = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxg", ve = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxh", be = H({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxi", variantClassNames: { priorityPlus: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxj", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxk" } }, defaultVariants: { priorityPlus: !1 }, compoundVariants: [] });
|
|
60
60
|
function Y(e) {
|
|
61
|
-
const n = t.useRef(null), { linkProps: r } = ae(e, n), { active: a, priority: s, ...o } = e, l = {
|
|
61
|
+
const n = t.useRef(null), { linkProps: r } = ae(e, n), { active: a, priority: s, ...o } = e, l = e.as ?? (e.href ? "a" : "button"), _ = {
|
|
62
62
|
...o,
|
|
63
63
|
...r,
|
|
64
64
|
ref: n,
|
|
65
|
-
className: k(
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
className: k(
|
|
66
|
+
X({ active: a, disabled: !1 }),
|
|
67
|
+
l === "button" && ge,
|
|
68
|
+
e.className
|
|
69
|
+
)
|
|
70
|
+
};
|
|
71
|
+
return /* @__PURE__ */ t.createElement(l, { ..._ }, e.children);
|
|
68
72
|
}
|
|
69
|
-
|
|
73
|
+
D.set(Y, {
|
|
70
74
|
name: "Product Bar Tab",
|
|
71
75
|
props: {
|
|
72
76
|
active: { type: "boolean", required: !0 },
|
|
@@ -74,24 +78,35 @@ H.set(Y, {
|
|
|
74
78
|
priority: { type: "number" }
|
|
75
79
|
}
|
|
76
80
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
logoSrc: a,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
81
|
+
function ye(e) {
|
|
82
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
83
|
+
}
|
|
84
|
+
const Z = t.forwardRef(
|
|
85
|
+
({ children: e, className: n, name: r, logoSrc: a, hideNameText: s = !1, ...o }, l) => {
|
|
86
|
+
const _ = !!o.onClick && !("href" in o && o.href);
|
|
87
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
88
|
+
"a",
|
|
89
|
+
{
|
|
90
|
+
className: k(de({ hideNameText: s }), n),
|
|
91
|
+
..._ ? { role: "button", tabIndex: 0, onKeyDown: ye } : {},
|
|
92
|
+
...o,
|
|
93
|
+
ref: l
|
|
94
|
+
},
|
|
95
|
+
a && /* @__PURE__ */ t.createElement(
|
|
96
|
+
"img",
|
|
97
|
+
{
|
|
98
|
+
className: fe,
|
|
99
|
+
src: a,
|
|
100
|
+
"aria-hidden": "true",
|
|
101
|
+
alt: `${r} Logo`,
|
|
102
|
+
title: r
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
r && /* @__PURE__ */ t.createElement("span", { className: k(pe, s && me) }, r)
|
|
106
|
+
), /* @__PURE__ */ t.createElement("span", { className: ve }));
|
|
92
107
|
}
|
|
93
|
-
)
|
|
94
|
-
|
|
108
|
+
);
|
|
109
|
+
D.set(Z, {
|
|
95
110
|
name: "ProductBarName",
|
|
96
111
|
props: {
|
|
97
112
|
name: { type: "string" },
|
|
@@ -99,8 +114,8 @@ H.set(Z, {
|
|
|
99
114
|
hideNameText: { type: "boolean", default: "false" }
|
|
100
115
|
}
|
|
101
116
|
});
|
|
102
|
-
var
|
|
103
|
-
function
|
|
117
|
+
var we = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn0", ke = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn1", Re = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn2", z = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn3", K = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn4";
|
|
118
|
+
function Ce({
|
|
104
119
|
items: e,
|
|
105
120
|
wrapperRef: n
|
|
106
121
|
}) {
|
|
@@ -111,10 +126,10 @@ function ke({
|
|
|
111
126
|
return (
|
|
112
127
|
// Wrap in span for width measurement - don't put ref directly on MenuButton
|
|
113
128
|
// as it interferes with ariakit's internal anchor element ref handling
|
|
114
|
-
/* @__PURE__ */ t.createElement("span", { ref: n }, /* @__PURE__ */ t.createElement(
|
|
115
|
-
|
|
129
|
+
/* @__PURE__ */ t.createElement("span", { ref: n }, /* @__PURE__ */ t.createElement(oe, null, /* @__PURE__ */ t.createElement(
|
|
130
|
+
se,
|
|
116
131
|
{
|
|
117
|
-
className: k(X({ active: a, disabled: !1 }),
|
|
132
|
+
className: k(X({ active: a, disabled: !1 }), we),
|
|
118
133
|
"aria-label": s
|
|
119
134
|
},
|
|
120
135
|
s,
|
|
@@ -122,39 +137,39 @@ function ke({
|
|
|
122
137
|
Q,
|
|
123
138
|
{
|
|
124
139
|
icon: "chevron-down",
|
|
125
|
-
className:
|
|
140
|
+
className: ke,
|
|
126
141
|
"aria-hidden": "true"
|
|
127
142
|
}
|
|
128
143
|
)
|
|
129
|
-
), /* @__PURE__ */ t.createElement(le, { className:
|
|
130
|
-
const
|
|
144
|
+
), /* @__PURE__ */ t.createElement(le, { className: Re, gutter: 4 }, e.map((o, l) => {
|
|
145
|
+
const _ = o.props?.active, p = o.props?.children, m = o.props?.onPress, i = o.props?.href, R = o.props?.as, I = () => {
|
|
131
146
|
m && m();
|
|
132
147
|
};
|
|
133
148
|
if (i && R) {
|
|
134
|
-
const
|
|
149
|
+
const C = R;
|
|
135
150
|
return /* @__PURE__ */ t.createElement(
|
|
136
|
-
|
|
151
|
+
q,
|
|
137
152
|
{
|
|
138
153
|
key: l,
|
|
139
|
-
className: k(z,
|
|
140
|
-
render: /* @__PURE__ */ t.createElement(
|
|
154
|
+
className: k(z, _ && K),
|
|
155
|
+
render: /* @__PURE__ */ t.createElement(C, { to: i })
|
|
141
156
|
},
|
|
142
157
|
p
|
|
143
158
|
);
|
|
144
159
|
}
|
|
145
160
|
return i ? /* @__PURE__ */ t.createElement(
|
|
146
|
-
|
|
161
|
+
q,
|
|
147
162
|
{
|
|
148
163
|
key: l,
|
|
149
|
-
className: k(z,
|
|
164
|
+
className: k(z, _ && K),
|
|
150
165
|
render: /* @__PURE__ */ t.createElement("a", { href: i })
|
|
151
166
|
},
|
|
152
167
|
p
|
|
153
168
|
) : /* @__PURE__ */ t.createElement(
|
|
154
|
-
|
|
169
|
+
q,
|
|
155
170
|
{
|
|
156
171
|
key: l,
|
|
157
|
-
className: k(z,
|
|
172
|
+
className: k(z, _ && K),
|
|
158
173
|
onClick: I
|
|
159
174
|
},
|
|
160
175
|
p
|
|
@@ -162,15 +177,15 @@ function ke({
|
|
|
162
177
|
}))))
|
|
163
178
|
);
|
|
164
179
|
}
|
|
165
|
-
function
|
|
180
|
+
function Ee(e, n = {}) {
|
|
166
181
|
const {
|
|
167
182
|
enabled: r = !0,
|
|
168
183
|
minVisibleItems: a = 1,
|
|
169
184
|
debounceMs: s = 16
|
|
170
185
|
// ~1 frame for responsive resize handling
|
|
171
|
-
} = n, o = t.useRef(null), l = t.useRef(null),
|
|
186
|
+
} = n, o = t.useRef(null), l = t.useRef(null), _ = t.useRef(null), p = t.useRef(null), m = t.useRef(null), i = t.useRef([]), R = t.useRef(0), I = t.useRef(0), C = t.useRef(!1), [M, N] = t.useState(e.length), [A, B] = t.useState(!1), S = t.useCallback(() => {
|
|
172
187
|
if (!o.current) return !1;
|
|
173
|
-
const
|
|
188
|
+
const c = o.current, g = Array.from(c.children), u = _.current;
|
|
174
189
|
u && (R.current = u.getBoundingClientRect().width);
|
|
175
190
|
const b = g.filter((y) => y !== u);
|
|
176
191
|
if (b.length < e.length)
|
|
@@ -178,18 +193,18 @@ function Re(e, n = {}) {
|
|
|
178
193
|
if (i.current = b.map((y) => y.getBoundingClientRect().width), m.current) {
|
|
179
194
|
const y = m.current.querySelector("span:last-of-type");
|
|
180
195
|
if (y) {
|
|
181
|
-
const d = y.getBoundingClientRect().width,
|
|
196
|
+
const d = y.getBoundingClientRect().width, E = getComputedStyle(m.current), P = parseFloat(E.marginRight) || 0, f = Math.max(0, P - 8);
|
|
182
197
|
I.current = d + f;
|
|
183
198
|
}
|
|
184
199
|
}
|
|
185
|
-
return
|
|
200
|
+
return C.current = !0, !0;
|
|
186
201
|
}, [e.length]), V = t.useCallback(() => {
|
|
187
202
|
if (!l.current) return 0;
|
|
188
|
-
const
|
|
203
|
+
const c = l.current, g = c.getBoundingClientRect(), u = getComputedStyle(c), b = parseFloat(u.paddingLeft) + parseFloat(u.paddingRight), y = parseFloat(u.gap) || 0;
|
|
189
204
|
let d = b;
|
|
190
|
-
const
|
|
205
|
+
const E = Array.from(c.children), P = E.filter((f) => getComputedStyle(f).display !== "none");
|
|
191
206
|
P.length > 1 && (d += y * (P.length - 1));
|
|
192
|
-
for (const f of
|
|
207
|
+
for (const f of E) {
|
|
193
208
|
if (f === o.current) continue;
|
|
194
209
|
const T = getComputedStyle(f), L = parseFloat(T.marginLeft) + parseFloat(T.marginRight);
|
|
195
210
|
if (f === p.current) {
|
|
@@ -204,52 +219,52 @@ function Re(e, n = {}) {
|
|
|
204
219
|
}
|
|
205
220
|
return Math.max(0, g.width - d - 2);
|
|
206
221
|
}, []), h = t.useRef(!1), x = t.useCallback(() => {
|
|
207
|
-
if (!r || !
|
|
222
|
+
if (!r || !C.current) {
|
|
208
223
|
B(!1), h.current = !1;
|
|
209
224
|
return;
|
|
210
225
|
}
|
|
211
|
-
let
|
|
226
|
+
let c = V();
|
|
212
227
|
const g = i.current, u = R.current || 100, b = I.current || 0;
|
|
213
|
-
if (h.current && b > 0 && (
|
|
214
|
-
|
|
228
|
+
if (h.current && b > 0 && (c -= b), g.length === 0 || c <= 0) {
|
|
229
|
+
N(e.length), B(!1), h.current = !1;
|
|
215
230
|
return;
|
|
216
231
|
}
|
|
217
|
-
if (g.reduce((v, w) => v + w, 0) <=
|
|
218
|
-
|
|
232
|
+
if (g.reduce((v, w) => v + w, 0) <= c) {
|
|
233
|
+
N(e.length), B(!1), h.current = !1;
|
|
219
234
|
return;
|
|
220
235
|
}
|
|
221
|
-
let d = 0,
|
|
222
|
-
const P =
|
|
236
|
+
let d = 0, E = 0;
|
|
237
|
+
const P = c - u;
|
|
223
238
|
for (let v = 0; v < g.length; v++) {
|
|
224
239
|
const w = g[v];
|
|
225
240
|
if (d + w <= P)
|
|
226
|
-
d += w,
|
|
241
|
+
d += w, E++;
|
|
227
242
|
else
|
|
228
243
|
break;
|
|
229
244
|
}
|
|
230
|
-
const W = Math.min(a, e.length), f = Math.max(
|
|
245
|
+
const W = Math.min(a, e.length), f = Math.max(E, W), L = g.slice(0, W).reduce((v, w) => v + w, 0) + u, O = E < W && L > c && b > 0, F = !O && c > L + b + 20;
|
|
231
246
|
let j = h.current;
|
|
232
|
-
O && !h.current ? j = !0 : F && h.current && (j = !1), j !== h.current && (h.current = j, B(j)),
|
|
247
|
+
O && !h.current ? j = !0 : F && h.current && (j = !1), j !== h.current && (h.current = j, B(j)), N(f);
|
|
233
248
|
}, [r, e.length, a, V]);
|
|
234
249
|
t.useEffect(() => {
|
|
235
250
|
if (!r) {
|
|
236
|
-
|
|
251
|
+
N(e.length);
|
|
237
252
|
return;
|
|
238
253
|
}
|
|
239
|
-
|
|
254
|
+
C.current = !1, i.current = [], N(e.length);
|
|
240
255
|
}, [r, e.length]), t.useLayoutEffect(() => {
|
|
241
256
|
if (!r || !o.current) return;
|
|
242
257
|
S() && x();
|
|
243
258
|
}), t.useEffect(() => {
|
|
244
259
|
if (!r) return;
|
|
245
|
-
let
|
|
260
|
+
let c;
|
|
246
261
|
const g = () => {
|
|
247
|
-
clearTimeout(
|
|
248
|
-
|
|
262
|
+
clearTimeout(c), c = setTimeout(() => {
|
|
263
|
+
C.current || S(), x();
|
|
249
264
|
}, s);
|
|
250
265
|
}, u = new ResizeObserver(g);
|
|
251
266
|
return l.current && u.observe(l.current), () => {
|
|
252
|
-
clearTimeout(
|
|
267
|
+
clearTimeout(c), u.disconnect();
|
|
253
268
|
};
|
|
254
269
|
}, [r, S, x, s]);
|
|
255
270
|
const $ = r ? e.slice(0, M) : e, ee = r && M < e.length ? e.slice(M) : [];
|
|
@@ -258,7 +273,7 @@ function Re(e, n = {}) {
|
|
|
258
273
|
overflowItems: ee,
|
|
259
274
|
containerRef: o,
|
|
260
275
|
parentRef: l,
|
|
261
|
-
overflowButtonRef:
|
|
276
|
+
overflowButtonRef: _,
|
|
262
277
|
contentRef: p,
|
|
263
278
|
brandRef: m,
|
|
264
279
|
hideProductName: A
|
|
@@ -270,10 +285,10 @@ function Ne(e) {
|
|
|
270
285
|
return a === s ? 0 : a - s;
|
|
271
286
|
});
|
|
272
287
|
}
|
|
273
|
-
function
|
|
288
|
+
function Be(e, n) {
|
|
274
289
|
if (n.length === 0)
|
|
275
290
|
return { visible: e, overflow: n };
|
|
276
|
-
const r = n.findIndex((
|
|
291
|
+
const r = n.findIndex((_) => _.props?.active);
|
|
277
292
|
if (r === -1)
|
|
278
293
|
return { visible: e, overflow: n };
|
|
279
294
|
const a = n[r], s = e[e.length - 1], o = [...e.slice(0, -1), a], l = [
|
|
@@ -283,32 +298,32 @@ function Ce(e, n) {
|
|
|
283
298
|
];
|
|
284
299
|
return { visible: o, overflow: l };
|
|
285
300
|
}
|
|
286
|
-
function
|
|
301
|
+
function je({
|
|
287
302
|
fullWidth: e,
|
|
288
303
|
enablePriorityPlus: n = !0,
|
|
289
304
|
children: r,
|
|
290
305
|
className: a,
|
|
291
306
|
...s
|
|
292
307
|
}) {
|
|
293
|
-
const o = t.useRef(null), [l,
|
|
308
|
+
const o = t.useRef(null), [l, _, p] = re(r, [
|
|
294
309
|
{ type: Z },
|
|
295
310
|
{ type: Y }
|
|
296
311
|
]), m = t.useMemo(
|
|
297
|
-
() => n ? Ne(
|
|
298
|
-
[n,
|
|
312
|
+
() => n ? Ne(_) : _,
|
|
313
|
+
[n, _]
|
|
299
314
|
), {
|
|
300
315
|
visibleItems: i,
|
|
301
316
|
overflowItems: R,
|
|
302
317
|
containerRef: I,
|
|
303
|
-
parentRef:
|
|
318
|
+
parentRef: C,
|
|
304
319
|
overflowButtonRef: M,
|
|
305
|
-
contentRef:
|
|
320
|
+
contentRef: N,
|
|
306
321
|
brandRef: A,
|
|
307
322
|
hideProductName: B
|
|
308
|
-
} =
|
|
323
|
+
} = Ee(m, {
|
|
309
324
|
enabled: n
|
|
310
325
|
}), { visible: S, overflow: V } = t.useMemo(
|
|
311
|
-
() =>
|
|
326
|
+
() => Be(
|
|
312
327
|
i,
|
|
313
328
|
R
|
|
314
329
|
),
|
|
@@ -326,18 +341,18 @@ function Ee({
|
|
|
326
341
|
"nav",
|
|
327
342
|
{
|
|
328
343
|
className: ue({ fullWidth: e }),
|
|
329
|
-
ref:
|
|
344
|
+
ref: C
|
|
330
345
|
},
|
|
331
346
|
h,
|
|
332
347
|
/* @__PURE__ */ t.createElement(
|
|
333
348
|
"div",
|
|
334
349
|
{
|
|
335
|
-
className:
|
|
350
|
+
className: be({ priorityPlus: n }),
|
|
336
351
|
ref: I
|
|
337
352
|
},
|
|
338
353
|
S,
|
|
339
354
|
V.length > 0 && /* @__PURE__ */ t.createElement(
|
|
340
|
-
|
|
355
|
+
Ce,
|
|
341
356
|
{
|
|
342
357
|
items: V,
|
|
343
358
|
wrapperRef: M
|
|
@@ -348,21 +363,21 @@ function Ee({
|
|
|
348
363
|
"div",
|
|
349
364
|
{
|
|
350
365
|
className: he,
|
|
351
|
-
ref:
|
|
366
|
+
ref: N
|
|
352
367
|
},
|
|
353
368
|
/* @__PURE__ */ t.createElement(ne.Provider, { value: { parentElementRef: o, fixed: !0 } }, p)
|
|
354
369
|
)
|
|
355
370
|
));
|
|
356
371
|
}
|
|
357
|
-
|
|
372
|
+
D.set(je, {
|
|
358
373
|
name: "ProductBar",
|
|
359
374
|
props: {
|
|
360
375
|
fullWidth: { type: "boolean" },
|
|
361
376
|
enablePriorityPlus: { type: "boolean", default: "true" }
|
|
362
377
|
}
|
|
363
378
|
});
|
|
364
|
-
var
|
|
365
|
-
function
|
|
379
|
+
var Ie = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_pqijiy0", xe = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_pqijiy1";
|
|
380
|
+
function Pe({
|
|
366
381
|
channelId: e,
|
|
367
382
|
className: n,
|
|
368
383
|
...r
|
|
@@ -371,25 +386,25 @@ function Ie({
|
|
|
371
386
|
return /* @__PURE__ */ t.createElement(
|
|
372
387
|
"a",
|
|
373
388
|
{
|
|
374
|
-
className: k(
|
|
389
|
+
className: k(Ie, n),
|
|
375
390
|
target: "_blank",
|
|
376
391
|
rel: "noreferrer",
|
|
377
392
|
href: `https://spscommerce.slack.com/archives/${e}`,
|
|
378
393
|
...r
|
|
379
394
|
},
|
|
380
|
-
/* @__PURE__ */ t.createElement(Q, { className:
|
|
395
|
+
/* @__PURE__ */ t.createElement(Q, { className: xe, icon: "conversation", "aria-hidden": "true" }),
|
|
381
396
|
/* @__PURE__ */ t.createElement("span", null, a("slackLink.label", { defaultValue: "Chat" }))
|
|
382
397
|
);
|
|
383
398
|
}
|
|
384
|
-
|
|
399
|
+
D.set(Pe, {
|
|
385
400
|
name: "Slack Link",
|
|
386
401
|
props: {
|
|
387
402
|
channelId: { type: "string", required: !0 }
|
|
388
403
|
}
|
|
389
404
|
});
|
|
390
405
|
export {
|
|
391
|
-
|
|
406
|
+
je as ProductBar,
|
|
392
407
|
Z as ProductBarName,
|
|
393
408
|
Y as ProductBarTab,
|
|
394
|
-
|
|
409
|
+
Pe as SlackLink
|
|
395
410
|
};
|
|
@@ -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(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_55_2__hash_g6gjux0",oe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux1",variantClassNames:{fullWidth:{true:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux2",false:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux3"}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),le=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux4",variantClassNames:{hideNameText:{true:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux5",false:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux6"}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),ie="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux7",ce="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux8",_e="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjux9",ue="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxa",Z=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxb",variantClassNames:{active:{true:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxc",false:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxd"},disabled:{true:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxe",false:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxf"}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),de="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxg",fe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxh",variantClassNames:{priorityPlus:{true:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_g6gjuxi",false:"pkg_sps-woodland_core__family_product-bar__version_8_55_2__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_55_2__hash_5klvkn0",me="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_5klvkn1",he="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_5klvkn2",J="pkg_sps-woodland_core__family_product-bar__version_8_55_2__hash_5klvkn3",Q="pkg_sps-woodland_core__family_product-bar__version_8_55_2__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_55_2__hash_pqijiy0",ke="pkg_sps-woodland_core__family_product-bar__version_8_55_2__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
|
+
(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_1__hash_g6gjux0",oe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux1",variantClassNames:{fullWidth:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux2",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux3"}},defaultVariants:{fullWidth:!1},compoundVariants:[]}),le=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux4",variantClassNames:{hideNameText:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux5",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux6"}},defaultVariants:{hideNameText:!1},compoundVariants:[]}),ie="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux7",ce="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux8",_e="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux9",ue="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxa",Z=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxb",variantClassNames:{active:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxc",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxd"},disabled:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxe",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxf"}},defaultVariants:{active:!1,disabled:!1},compoundVariants:[]}),de="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxg",fe="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxh",pe=D({defaultClassName:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxi",variantClassNames:{priorityPlus:{true:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxj",false:"pkg_sps-woodland_core__family_product-bar__version_8_56_1__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_1__hash_5klvkn0",ge="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn1",ve="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn2",J="pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_5klvkn3",Q="pkg_sps-woodland_core__family_product-bar__version_8_56_1__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_1__hash_pqijiy0",Ne="pkg_sps-woodland_core__family_product-bar__version_8_56_1__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"})}));
|
|
@@ -33,6 +33,7 @@ export declare const navItem: import("node_modules/@vanilla-extract/recipes/dist
|
|
|
33
33
|
false: {};
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
|
+
export declare const navItemButton: string;
|
|
36
37
|
export declare const verticalRule: string;
|
|
37
38
|
export declare const productNavNav: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
38
39
|
priorityPlus: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductBar.css.d.ts","sourceRoot":"","sources":["../../../src/product-bar/product-bar/ProductBar.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,QAS9B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;EAyBrB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;
|
|
1
|
+
{"version":3,"file":"ProductBar.css.d.ts","sourceRoot":"","sources":["../../../src/product-bar/product-bar/ProductBar.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,QAS9B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;EAyBrB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;EA0B1B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAM9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAM9B,CAAC;AAGH,eAAO,MAAM,cAAc,QAUzB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAG5B,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;EA4ClB,CAAC;AAEH,eAAO,MAAM,aAAa,QAOxB,CAAC;AAEH,eAAO,MAAM,YAAY,QASvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;EAmBxB,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
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-woodland_core__family_product-
|
|
3
|
+
var o = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux0", s = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux2", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux3" } }, defaultVariants: { fullWidth: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux4", variantClassNames: { hideNameText: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux5", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux6" } }, defaultVariants: { hideNameText: !1 }, compoundVariants: [] }), e = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux7", l = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux8", p = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjux9", i = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxa", t = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxb", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxc", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxd" }, disabled: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxe", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxf" } }, defaultVariants: { active: !1, disabled: !1 }, compoundVariants: [] }), u = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxg", n = "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxh", g = _({ defaultClassName: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxi", variantClassNames: { priorityPlus: { true: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxj", false: "pkg_sps-woodland_core__family_product-bar__version_8_56_1__hash_g6gjuxk" } }, defaultVariants: { priorityPlus: !1 }, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
t as navItem,
|
|
6
|
+
u as navItemButton,
|
|
6
7
|
s as productBar,
|
|
7
8
|
d as productBarBrand,
|
|
8
9
|
e as productBarBrandLogo,
|
|
9
10
|
l as productBarBrandName,
|
|
10
11
|
o as productBarContainer,
|
|
11
12
|
i as productBarContent,
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
g as productNavNav,
|
|
14
|
+
n as verticalRule,
|
|
14
15
|
p as visuallyHidden
|
|
15
16
|
};
|
|
@@ -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;
|
|
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;AASF,eAAO,MAAM,cAAc,EAAE,uBAoC5B,CAAC"}
|