@nuskin/nextgen-header 1.24.0 → 1.25.0
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/package-dist/index.js +52 -42
- package/package-dist/index.js.map +1 -1
- package/package-dist/index.mjs +52 -42
- package/package-dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/package-dist/index.js
CHANGED
|
@@ -103013,7 +103013,7 @@ var LocaleButton = /*#__PURE__*/createStyled("div", true ? {
|
|
|
103013
103013
|
return props.$selected ? CountryListSelectorTheme.typography.selectedLocaleWeight : CountryListSelectorTheme.typography.localeWeight;
|
|
103014
103014
|
}, ";cursor:pointer;color:", function (props) {
|
|
103015
103015
|
return props.$selected ? CountryListSelectorTheme.colors.localeSelectedTextDesktop : CountryListSelectorTheme.colors.localeColor;
|
|
103016
|
-
}, ";&:hover{color:", CountryListSelectorTheme.colors.chipSelected, ";}}&:hover{background:", CountryListSelectorTheme.colors.chipBackground, ";}.locale-button-label:focus-visible{outline:1px solid ", CountryListSelectorTheme.colors.chipSelected, ";outline-offset:2px;}@media (max-width: ", CountryListSelectorTheme.breakpoints.mobileMax, "){--locale-icon-space:0px;background:transparent;width:auto;padding:0;>*{min-height:auto;}&:hover{background:transparent;}.locale-button-label{justify-content:flex-start;padding:0px 4px;min-height:", CountryListSelectorTheme.sizing.mobileLocaleMinHeight, ";}.locale-button-label>span{font-size:", CountryListSelectorTheme.typography.mobileLocaleSize, ";line-height:", CountryListSelectorTheme.typography.mobileLocaleLineHeight, ";font-weight:", CountryListSelectorTheme.typography.localeWeight, ";text-align:left;color:", CountryListSelectorTheme.colors.localeTextMobile, ";}.locale-button-label
|
|
103016
|
+
}, ";&:hover{color:", CountryListSelectorTheme.colors.chipSelected, ";}}&:hover{background:", CountryListSelectorTheme.colors.chipBackground, ";}.locale-button-label:focus-visible{outline:1px solid ", CountryListSelectorTheme.colors.chipSelected, ";outline-offset:2px;}@media (max-width: ", CountryListSelectorTheme.breakpoints.mobileMax, "){--locale-icon-space:0px;background:transparent;width:auto;padding:0;>*{min-height:auto;}&:hover{background:transparent;}.locale-button-label{justify-content:flex-start;padding:0px 4px;min-height:", CountryListSelectorTheme.sizing.mobileLocaleMinHeight, ";}.locale-button-label>span{font-size:", CountryListSelectorTheme.typography.mobileLocaleSize, ";line-height:", CountryListSelectorTheme.typography.mobileLocaleLineHeight, ";font-weight:", CountryListSelectorTheme.typography.localeWeight, ";text-align:left;color:", CountryListSelectorTheme.colors.localeTextMobile, ";}.locale-button-label svg{position:static;transform:none;width:16px;height:16px;}", function (props) {
|
|
103017
103017
|
return props.$selected ? "\n background: ".concat(CountryListSelectorTheme.colors.localeSelectedBackgroundDesktop, ";\n\n .locale-button-label > span {\n font-weight: ").concat(CountryListSelectorTheme.typography.selectedLocaleWeight, ";\n color: ").concat(CountryListSelectorTheme.colors.text, ";\n }\n ") : "";
|
|
103018
103018
|
}, ";}" + ( true ? "" : 0));
|
|
103019
103019
|
var EmptyState = /*#__PURE__*/createStyled("p", true ? {
|
|
@@ -103625,64 +103625,72 @@ var DESKTOP_MIN_WIDTH_PX = 1025;
|
|
|
103625
103625
|
|
|
103626
103626
|
/** Full-screen market modal layer (above mobile drawer z-index 9999). */
|
|
103627
103627
|
var MobileMarketFullScreenRoot = /*#__PURE__*/createStyled("div", true ? {
|
|
103628
|
-
target: "
|
|
103628
|
+
target: "e1g1uu3p37"
|
|
103629
103629
|
} : 0)( true ? {
|
|
103630
103630
|
name: "1n6oz2n",
|
|
103631
103631
|
styles: "position:fixed;inset:0;z-index:10050;background:#ffffff;display:flex;flex-direction:column;box-sizing:border-box;transform:translateX(15%);opacity:0;transition:transform 220ms ease-out,opacity 220ms ease-out;&[data-state=\"open\"]{transform:translateX(0);opacity:1;}"
|
|
103632
103632
|
} : 0);
|
|
103633
103633
|
var MobileMarketDialogInner = /*#__PURE__*/createStyled("dialog", true ? {
|
|
103634
|
-
target: "
|
|
103634
|
+
target: "e1g1uu3p36"
|
|
103635
103635
|
} : 0)( true ? {
|
|
103636
103636
|
name: "1d69jno",
|
|
103637
103637
|
styles: "margin:0;padding:0;border:0;width:100%;height:100%;max-width:none;max-height:none;background:#ffffff;display:flex;flex-direction:column;overflow:hidden"
|
|
103638
103638
|
} : 0);
|
|
103639
103639
|
var MobileStickyHeaderContainer = /*#__PURE__*/createStyled("div", true ? {
|
|
103640
|
-
target: "
|
|
103640
|
+
target: "e1g1uu3p35"
|
|
103641
103641
|
} : 0)( true ? {
|
|
103642
|
-
name: "
|
|
103643
|
-
styles: "position:sticky;top:0;z-index:2;width:100%;max-width:100%;height:110px;
|
|
103642
|
+
name: "50r0ag",
|
|
103643
|
+
styles: "position:sticky;top:0;z-index:2;width:100%;max-width:100%;min-height:110px;height:auto;padding-top:66px;padding-bottom:16px;background:#ffffff;box-sizing:border-box"
|
|
103644
103644
|
} : 0);
|
|
103645
103645
|
var MobileCompactHeaderRow = /*#__PURE__*/createStyled("header", true ? {
|
|
103646
|
-
target: "
|
|
103646
|
+
target: "e1g1uu3p34"
|
|
103647
103647
|
} : 0)( true ? {
|
|
103648
|
-
name: "
|
|
103649
|
-
styles: "flex-shrink:0;box-sizing:border-box;width:100%;max-width:100%;height:28px;
|
|
103648
|
+
name: "1ilqple",
|
|
103649
|
+
styles: "flex-shrink:0;box-sizing:border-box;width:100%;max-width:100%;min-height:28px;height:auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding-left:20px;padding-right:20px"
|
|
103650
103650
|
} : 0);
|
|
103651
103651
|
var MobileCompactTitle = /*#__PURE__*/createStyled("h2", true ? {
|
|
103652
|
-
target: "
|
|
103652
|
+
target: "e1g1uu3p33"
|
|
103653
103653
|
} : 0)( true ? {
|
|
103654
|
-
name: "
|
|
103655
|
-
styles: "margin:0;flex:1 1
|
|
103654
|
+
name: "1a3y3ud",
|
|
103655
|
+
styles: "margin:0;flex:1 1 0%;min-width:0;height:auto;min-height:28px;line-height:28px;font-family:Lora,sans-serif;font-weight:400;font-size:22px;color:#252525;text-align:left;white-space:normal;overflow:visible;overflow-wrap:break-word;word-break:normal"
|
|
103656
103656
|
} : 0);
|
|
103657
103657
|
var MobileModalHeaderCancelWrap = /*#__PURE__*/createStyled("div", true ? {
|
|
103658
|
-
target: "
|
|
103658
|
+
target: "e1g1uu3p32"
|
|
103659
103659
|
} : 0)( true ? {
|
|
103660
|
-
name: "
|
|
103661
|
-
styles: "flex:0 0 auto;margin-left:auto;height:28px;display:flex;justify-content:flex-end;align-items:center;.market-selector-mobile-header-cancel{width:auto;max-width:none;min-width:0;min-height:28px;border-radius:20px;padding-top:4px;padding-bottom:4px;padding-left:8px;padding-right:0;justify-content:flex-end;}.market-selector-mobile-header-cancel.MuiButton-root{min-width:0;}.market-selector-mobile-header-cancel span{min-width:0;white-space:nowrap;}"
|
|
103660
|
+
name: "18ccq6t",
|
|
103661
|
+
styles: "flex:0 0 auto;flex-shrink:0;margin-left:auto;height:auto;min-height:28px;display:flex;justify-content:flex-end;align-items:center;.market-selector-mobile-header-cancel{width:auto;max-width:none;min-width:0;min-height:28px;border-radius:20px;padding-top:4px;padding-bottom:4px;padding-left:8px;padding-right:0;justify-content:flex-end;}.market-selector-mobile-header-cancel.MuiButton-root{min-width:0;}.market-selector-mobile-header-cancel span{min-width:0;white-space:nowrap;}"
|
|
103662
103662
|
} : 0);
|
|
103663
103663
|
var MobileModalScrollContent = /*#__PURE__*/createStyled("div", true ? {
|
|
103664
|
-
target: "
|
|
103664
|
+
target: "e1g1uu3p31"
|
|
103665
103665
|
} : 0)( true ? {
|
|
103666
103666
|
name: "1q7526u",
|
|
103667
103667
|
styles: "flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;display:flex;flex-direction:column;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{width:0;height:0;display:none;}"
|
|
103668
103668
|
} : 0);
|
|
103669
103669
|
var MobileRememberControlsWrap = /*#__PURE__*/createStyled("div", true ? {
|
|
103670
|
-
target: "
|
|
103670
|
+
target: "e1g1uu3p30"
|
|
103671
103671
|
} : 0)( true ? {
|
|
103672
|
-
name: "
|
|
103673
|
-
styles: "width:100%;box-sizing:border-box"
|
|
103672
|
+
name: "iz1eca",
|
|
103673
|
+
styles: "width:100%;max-width:100%;box-sizing:border-box;padding:0 20px"
|
|
103674
103674
|
} : 0);
|
|
103675
103675
|
var MobileRememberControls = /*#__PURE__*/createStyled("div", true ? {
|
|
103676
|
-
target: "
|
|
103676
|
+
target: "e1g1uu3p29"
|
|
103677
103677
|
} : 0)( true ? {
|
|
103678
|
-
name: "
|
|
103679
|
-
styles: "display:flex;align-items:center;justify-content:flex-start"
|
|
103678
|
+
name: "13l7t94",
|
|
103679
|
+
styles: "display:flex;align-items:center;justify-content:flex-start;width:100%;max-width:100%;box-sizing:border-box"
|
|
103680
103680
|
} : 0);
|
|
103681
103681
|
var MobileRememberRowCompact = /*#__PURE__*/createStyled("label", true ? {
|
|
103682
|
+
target: "e1g1uu3p28"
|
|
103683
|
+
} : 0)( true ? {
|
|
103684
|
+
name: "2z4h9e",
|
|
103685
|
+
styles: "display:inline-flex;flex-wrap:nowrap;align-items:center;gap:10px;width:auto;max-width:100%;min-height:44px;height:auto;border-radius:24px;padding:10px 20px 10px 0;box-sizing:border-box;cursor:pointer;color:#5f5f5f;font-family:Lora,sans-serif;font-size:16px;line-height:22px;font-weight:500;text-align:left;vertical-align:middle;background:transparent;&:hover{background:#ebebeb;color:#252525;text-decoration:underline;text-decoration-color:#252525;}&:active{background:#dcdcdc;}&[data-checked=\"true\"]{background:transparent;color:#252525;}&[data-checked=\"true\"][data-toggle-source=\"row\"][data-hovered=\"true\"]{background:#dcdcdc;color:#252525;text-decoration:none;}&[data-toggle-source=\"checkbox\"][data-hovered=\"true\"]{background:#ebebeb;color:#252525;text-decoration:underline;text-decoration-color:#252525;}"
|
|
103686
|
+
} : 0);
|
|
103687
|
+
|
|
103688
|
+
/** Text beside the remember checkbox (desktop + mobile); wraps when the row hits max-width. */
|
|
103689
|
+
var RememberRowText = /*#__PURE__*/createStyled("span", true ? {
|
|
103682
103690
|
target: "e1g1uu3p27"
|
|
103683
103691
|
} : 0)( true ? {
|
|
103684
|
-
name: "
|
|
103685
|
-
styles: "
|
|
103692
|
+
name: "1my8jsd",
|
|
103693
|
+
styles: "flex:0 1 auto;min-width:0;max-width:100%;text-align:left;white-space:normal;overflow-wrap:break-word"
|
|
103686
103694
|
} : 0);
|
|
103687
103695
|
var MobileLocaleSectionBlock = /*#__PURE__*/createStyled("div", true ? {
|
|
103688
103696
|
target: "e1g1uu3p26"
|
|
@@ -103788,18 +103796,18 @@ var StickyTop = /*#__PURE__*/createStyled("div", true ? {
|
|
|
103788
103796
|
} : 0);
|
|
103789
103797
|
var HeaderRow = /*#__PURE__*/createStyled("header", true ? {
|
|
103790
103798
|
target: "e1g1uu3p7"
|
|
103791
|
-
} : 0)("width:100%;height:78px;display:
|
|
103799
|
+
} : 0)("width:100%;min-height:78px;height:auto;display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);align-items:center;box-sizing:border-box;padding:32px 32px 16px;gap:16px;@media (max-width: ", TABS_MOBILE_MAX_WIDTH_PX, "px){min-height:78px;padding:0 20px;}" + ( true ? "" : 0));
|
|
103792
103800
|
var LogoWrap = /*#__PURE__*/createStyled("div", true ? {
|
|
103793
103801
|
target: "e1g1uu3p6"
|
|
103794
|
-
} : 0)("display:inline-flex;align-items:center;justify-content:flex-start;width:147.5px;height:30px;>*{width:147.5px;height:30px;display:inline-flex;}@media (max-width: ", TABS_MOBILE_MAX_WIDTH_PX, "px){display:none;}" + ( true ? "" : 0));
|
|
103802
|
+
} : 0)("display:inline-flex;align-items:center;justify-content:flex-start;justify-self:start;width:147.5px;height:30px;>*{width:147.5px;height:30px;display:inline-flex;}@media (max-width: ", TABS_MOBILE_MAX_WIDTH_PX, "px){display:none;}" + ( true ? "" : 0));
|
|
103795
103803
|
var ModalTitle = /*#__PURE__*/createStyled("h2", true ? {
|
|
103796
103804
|
target: "e1g1uu3p5"
|
|
103797
|
-
} : 0)("margin:0;text-align:
|
|
103805
|
+
} : 0)("margin:0;justify-self:center;grid-column:2;min-width:0;width:fit-content;max-width:100%;height:auto;min-height:34px;text-align:center;color:#252525;font-family:Lora,sans-serif;font-size:26px;line-height:34px;font-weight:400;white-space:normal;overflow-wrap:break-word;@media (max-width: ", TABS_MOBILE_MAX_WIDTH_PX, "px){text-align:left;font-size:44px;line-height:58px;}" + ( true ? "" : 0));
|
|
103798
103806
|
var CancelWrap = /*#__PURE__*/createStyled("div", true ? {
|
|
103799
103807
|
target: "e1g1uu3p4"
|
|
103800
103808
|
} : 0)( true ? {
|
|
103801
|
-
name: "
|
|
103802
|
-
styles: "display:inline-flex;justify-content:flex-end;align-items:center"
|
|
103809
|
+
name: "a4yqjz",
|
|
103810
|
+
styles: "display:inline-flex;justify-content:flex-end;align-items:center;justify-self:end;grid-column:3"
|
|
103803
103811
|
} : 0);
|
|
103804
103812
|
var TopControls = /*#__PURE__*/createStyled("div", true ? {
|
|
103805
103813
|
target: "e1g1uu3p3"
|
|
@@ -103810,8 +103818,8 @@ var TabsRow = /*#__PURE__*/createStyled("div", true ? {
|
|
|
103810
103818
|
var RememberRow = /*#__PURE__*/createStyled("label", true ? {
|
|
103811
103819
|
target: "e1g1uu3p1"
|
|
103812
103820
|
} : 0)( true ? {
|
|
103813
|
-
name: "
|
|
103814
|
-
styles: "display:inline-flex;align-items:center;gap:10px;width:
|
|
103821
|
+
name: "1mvifq7",
|
|
103822
|
+
styles: "display:inline-flex;flex-wrap:nowrap;align-items:center;gap:10px;width:auto;max-width:100%;min-height:44px;height:auto;border-radius:24px;padding:10px 16px;box-sizing:border-box;cursor:pointer;color:#5f5f5f;font-family:Lora,sans-serif;font-size:16px;line-height:22px;font-weight:500;text-align:left;vertical-align:middle;background:transparent;&:hover{background:#ebebeb;color:#252525;text-decoration:underline;text-decoration-color:#252525;}&:active{background:#dcdcdc;}&[data-checked=\"true\"]{background:transparent;color:#252525;}&[data-checked=\"true\"][data-toggle-source=\"row\"][data-hovered=\"true\"]{background:#dcdcdc;color:#252525;text-decoration:none;}&[data-toggle-source=\"checkbox\"][data-hovered=\"true\"]{background:#ebebeb;color:#252525;text-decoration:underline;text-decoration-color:#252525;}"
|
|
103815
103823
|
} : 0);
|
|
103816
103824
|
var RememberCheckbox = /*#__PURE__*/createStyled("input", true ? {
|
|
103817
103825
|
target: "e1g1uu3p0"
|
|
@@ -104099,7 +104107,7 @@ function collectMarketsWithParentRegions(regions) {
|
|
|
104099
104107
|
});
|
|
104100
104108
|
}
|
|
104101
104109
|
var VB_EMPTY_STATE_TEXT = "Markets and languages are not authorable in Visual Builder mode.";
|
|
104102
|
-
var DEFAULT_EMPTY_STATE_TEXT = "
|
|
104110
|
+
var DEFAULT_EMPTY_STATE_TEXT = "Markets and languages were not found for this page.";
|
|
104103
104111
|
function computeTriggerDisplay(_ref) {
|
|
104104
104112
|
var _sessionPillDisplay$l, _sessionPillDisplay$c;
|
|
104105
104113
|
var sessionPillDisplay = _ref.sessionPillDisplay,
|
|
@@ -104469,7 +104477,7 @@ function renderMarketSelectorModalDesktop(_ref7) {
|
|
|
104469
104477
|
})
|
|
104470
104478
|
})]
|
|
104471
104479
|
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(TopControls, {
|
|
104472
|
-
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(RememberRow,
|
|
104480
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(RememberRow, {
|
|
104473
104481
|
htmlFor: "market-selector-remember-selection",
|
|
104474
104482
|
"data-checked": rememberSelection ? "true" : "false",
|
|
104475
104483
|
"data-toggle-source": rememberToggleSource,
|
|
@@ -104493,8 +104501,7 @@ function renderMarketSelectorModalDesktop(_ref7) {
|
|
|
104493
104501
|
return;
|
|
104494
104502
|
}
|
|
104495
104503
|
setRememberToggleSource("row");
|
|
104496
|
-
}
|
|
104497
|
-
}, (_marketSelectorDollar3 = marketSelectorDollar === null || marketSelectorDollar === void 0 ? void 0 : marketSelectorDollar.remember_region_text) !== null && _marketSelectorDollar3 !== void 0 ? _marketSelectorDollar3 : {}), {}, {
|
|
104504
|
+
},
|
|
104498
104505
|
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(RememberCheckbox, {
|
|
104499
104506
|
id: "market-selector-remember-selection",
|
|
104500
104507
|
type: "checkbox",
|
|
@@ -104515,8 +104522,10 @@ function renderMarketSelectorModalDesktop(_ref7) {
|
|
|
104515
104522
|
});
|
|
104516
104523
|
},
|
|
104517
104524
|
"data-testid": "market-selector-remember-selection"
|
|
104518
|
-
}),
|
|
104519
|
-
|
|
104525
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(RememberRowText, MarketSelector_objectSpread(MarketSelector_objectSpread({}, (_marketSelectorDollar3 = marketSelectorDollar === null || marketSelectorDollar === void 0 ? void 0 : marketSelectorDollar.remember_region_text) !== null && _marketSelectorDollar3 !== void 0 ? _marketSelectorDollar3 : {}), {}, {
|
|
104526
|
+
children: text.rememberSelectionText
|
|
104527
|
+
}))]
|
|
104528
|
+
})
|
|
104520
104529
|
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(TabsRow, {
|
|
104521
104530
|
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(CountryListSelector, {
|
|
104522
104531
|
className: "market-selector-tabs",
|
|
@@ -104609,7 +104618,7 @@ function renderMarketSelectorModalMobile(_ref8) {
|
|
|
104609
104618
|
"data-testid": "market-selector-mobile-scroll-content",
|
|
104610
104619
|
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MobileRememberControlsWrap, {
|
|
104611
104620
|
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileRememberControls, {
|
|
104612
|
-
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileRememberRowCompact,
|
|
104621
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileRememberRowCompact, {
|
|
104613
104622
|
htmlFor: "market-selector-remember-selection",
|
|
104614
104623
|
"data-checked": rememberSelection ? "true" : "false",
|
|
104615
104624
|
"data-toggle-source": rememberToggleSource,
|
|
@@ -104633,8 +104642,7 @@ function renderMarketSelectorModalMobile(_ref8) {
|
|
|
104633
104642
|
return;
|
|
104634
104643
|
}
|
|
104635
104644
|
setRememberToggleSource("row");
|
|
104636
|
-
}
|
|
104637
|
-
}, (_marketSelectorDollar6 = marketSelectorDollar === null || marketSelectorDollar === void 0 ? void 0 : marketSelectorDollar.remember_region_text) !== null && _marketSelectorDollar6 !== void 0 ? _marketSelectorDollar6 : {}), {}, {
|
|
104645
|
+
},
|
|
104638
104646
|
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(RememberCheckbox, {
|
|
104639
104647
|
id: "market-selector-remember-selection",
|
|
104640
104648
|
type: "checkbox",
|
|
@@ -104655,8 +104663,10 @@ function renderMarketSelectorModalMobile(_ref8) {
|
|
|
104655
104663
|
});
|
|
104656
104664
|
},
|
|
104657
104665
|
"data-testid": "market-selector-remember-selection"
|
|
104658
|
-
}),
|
|
104659
|
-
|
|
104666
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(RememberRowText, MarketSelector_objectSpread(MarketSelector_objectSpread({}, (_marketSelectorDollar6 = marketSelectorDollar === null || marketSelectorDollar === void 0 ? void 0 : marketSelectorDollar.remember_region_text) !== null && _marketSelectorDollar6 !== void 0 ? _marketSelectorDollar6 : {}), {}, {
|
|
104667
|
+
children: text.rememberSelectionText
|
|
104668
|
+
}))]
|
|
104669
|
+
})
|
|
104660
104670
|
})
|
|
104661
104671
|
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileModalBody, {
|
|
104662
104672
|
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MobileLocaleSectionBlock, {
|