@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.
@@ -102589,7 +102589,7 @@ var LocaleButton = /*#__PURE__*/createStyled("div", true ? {
102589
102589
  return props.$selected ? CountryListSelectorTheme.typography.selectedLocaleWeight : CountryListSelectorTheme.typography.localeWeight;
102590
102590
  }, ";cursor:pointer;color:", function (props) {
102591
102591
  return props.$selected ? CountryListSelectorTheme.colors.localeSelectedTextDesktop : CountryListSelectorTheme.colors.localeColor;
102592
- }, ";&: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>span:hover{color:", CountryListSelectorTheme.colors.localeTextMobile, ";}.locale-button-label svg{position:static;transform:none;width:16px;height:16px;}", function (props) {
102592
+ }, ";&: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) {
102593
102593
  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 ") : "";
102594
102594
  }, ";}" + ( true ? "" : 0));
102595
102595
  var EmptyState = /*#__PURE__*/createStyled("p", true ? {
@@ -103201,64 +103201,72 @@ var DESKTOP_MIN_WIDTH_PX = 1025;
103201
103201
 
103202
103202
  /** Full-screen market modal layer (above mobile drawer z-index 9999). */
103203
103203
  var MobileMarketFullScreenRoot = /*#__PURE__*/createStyled("div", true ? {
103204
- target: "e1g1uu3p36"
103204
+ target: "e1g1uu3p37"
103205
103205
  } : 0)( true ? {
103206
103206
  name: "1n6oz2n",
103207
103207
  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;}"
103208
103208
  } : 0);
103209
103209
  var MobileMarketDialogInner = /*#__PURE__*/createStyled("dialog", true ? {
103210
- target: "e1g1uu3p35"
103210
+ target: "e1g1uu3p36"
103211
103211
  } : 0)( true ? {
103212
103212
  name: "1d69jno",
103213
103213
  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"
103214
103214
  } : 0);
103215
103215
  var MobileStickyHeaderContainer = /*#__PURE__*/createStyled("div", true ? {
103216
- target: "e1g1uu3p34"
103216
+ target: "e1g1uu3p35"
103217
103217
  } : 0)( true ? {
103218
- name: "kyd2ed",
103219
- styles: "position:sticky;top:0;z-index:2;width:100%;max-width:100%;height:110px;min-height:110px;padding-top:66px;padding-bottom:16px;background:#ffffff;box-sizing:border-box"
103218
+ name: "50r0ag",
103219
+ 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"
103220
103220
  } : 0);
103221
103221
  var MobileCompactHeaderRow = /*#__PURE__*/createStyled("header", true ? {
103222
- target: "e1g1uu3p33"
103222
+ target: "e1g1uu3p34"
103223
103223
  } : 0)( true ? {
103224
- name: "1tdg822",
103225
- styles: "flex-shrink:0;box-sizing:border-box;width:100%;max-width:100%;height:28px;min-height:28px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-left:20px;padding-right:20px"
103224
+ name: "1ilqple",
103225
+ 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"
103226
103226
  } : 0);
103227
103227
  var MobileCompactTitle = /*#__PURE__*/createStyled("h2", true ? {
103228
- target: "e1g1uu3p32"
103228
+ target: "e1g1uu3p33"
103229
103229
  } : 0)( true ? {
103230
- name: "eo9mb5",
103231
- styles: "margin:0;flex:1 1 auto;min-width:0;height:28px;line-height:28px;font-family:Lora,sans-serif;font-weight:400;font-size:22px;color:#252525;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
103230
+ name: "1a3y3ud",
103231
+ 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"
103232
103232
  } : 0);
103233
103233
  var MobileModalHeaderCancelWrap = /*#__PURE__*/createStyled("div", true ? {
103234
- target: "e1g1uu3p31"
103234
+ target: "e1g1uu3p32"
103235
103235
  } : 0)( true ? {
103236
- name: "fld1nn",
103237
- 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;}"
103236
+ name: "18ccq6t",
103237
+ 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;}"
103238
103238
  } : 0);
103239
103239
  var MobileModalScrollContent = /*#__PURE__*/createStyled("div", true ? {
103240
- target: "e1g1uu3p30"
103240
+ target: "e1g1uu3p31"
103241
103241
  } : 0)( true ? {
103242
103242
  name: "1q7526u",
103243
103243
  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;}"
103244
103244
  } : 0);
103245
103245
  var MobileRememberControlsWrap = /*#__PURE__*/createStyled("div", true ? {
103246
- target: "e1g1uu3p29"
103246
+ target: "e1g1uu3p30"
103247
103247
  } : 0)( true ? {
103248
- name: "2wv1be",
103249
- styles: "width:100%;box-sizing:border-box"
103248
+ name: "iz1eca",
103249
+ styles: "width:100%;max-width:100%;box-sizing:border-box;padding:0 20px"
103250
103250
  } : 0);
103251
103251
  var MobileRememberControls = /*#__PURE__*/createStyled("div", true ? {
103252
- target: "e1g1uu3p28"
103252
+ target: "e1g1uu3p29"
103253
103253
  } : 0)( true ? {
103254
- name: "1dmiggy",
103255
- styles: "display:flex;align-items:center;justify-content:flex-start"
103254
+ name: "13l7t94",
103255
+ styles: "display:flex;align-items:center;justify-content:flex-start;width:100%;max-width:100%;box-sizing:border-box"
103256
103256
  } : 0);
103257
103257
  var MobileRememberRowCompact = /*#__PURE__*/createStyled("label", true ? {
103258
+ target: "e1g1uu3p28"
103259
+ } : 0)( true ? {
103260
+ name: "2z4h9e",
103261
+ 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;}"
103262
+ } : 0);
103263
+
103264
+ /** Text beside the remember checkbox (desktop + mobile); wraps when the row hits max-width. */
103265
+ var RememberRowText = /*#__PURE__*/createStyled("span", true ? {
103258
103266
  target: "e1g1uu3p27"
103259
103267
  } : 0)( true ? {
103260
- name: "1v7mvq",
103261
- styles: "display:inline-flex;align-items:center;gap:10px;width:246px;height:44px;border-radius:24px;padding:0 20px;box-sizing:border-box;cursor:pointer;color:#5f5f5f;font-family:Lora,sans-serif;font-size:16px;line-height:22px;font-weight:500;text-align:center;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;}"
103268
+ name: "1my8jsd",
103269
+ styles: "flex:0 1 auto;min-width:0;max-width:100%;text-align:left;white-space:normal;overflow-wrap:break-word"
103262
103270
  } : 0);
103263
103271
  var MobileLocaleSectionBlock = /*#__PURE__*/createStyled("div", true ? {
103264
103272
  target: "e1g1uu3p26"
@@ -103364,18 +103372,18 @@ var StickyTop = /*#__PURE__*/createStyled("div", true ? {
103364
103372
  } : 0);
103365
103373
  var HeaderRow = /*#__PURE__*/createStyled("header", true ? {
103366
103374
  target: "e1g1uu3p7"
103367
- } : 0)("width:100%;height:78px;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;padding:32px 32px 16px;@media (max-width: ", TABS_MOBILE_MAX_WIDTH_PX, "px){min-height:78px;grid-template-columns:1fr auto;padding:0 20px;}" + ( true ? "" : 0));
103375
+ } : 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));
103368
103376
  var LogoWrap = /*#__PURE__*/createStyled("div", true ? {
103369
103377
  target: "e1g1uu3p6"
103370
- } : 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));
103378
+ } : 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));
103371
103379
  var ModalTitle = /*#__PURE__*/createStyled("h2", true ? {
103372
103380
  target: "e1g1uu3p5"
103373
- } : 0)("margin:0;text-align:left;color:#252525;font-family:Lora,sans-serif;width:364px;height:34px;font-size:26px;line-height:34px;font-weight:400;@media (max-width: ", TABS_MOBILE_MAX_WIDTH_PX, "px){text-align:left;font-size:44px;line-height:58px;}" + ( true ? "" : 0));
103381
+ } : 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));
103374
103382
  var CancelWrap = /*#__PURE__*/createStyled("div", true ? {
103375
103383
  target: "e1g1uu3p4"
103376
103384
  } : 0)( true ? {
103377
- name: "1bimy96",
103378
- styles: "display:inline-flex;justify-content:flex-end;align-items:center"
103385
+ name: "a4yqjz",
103386
+ styles: "display:inline-flex;justify-content:flex-end;align-items:center;justify-self:end;grid-column:3"
103379
103387
  } : 0);
103380
103388
  var TopControls = /*#__PURE__*/createStyled("div", true ? {
103381
103389
  target: "e1g1uu3p3"
@@ -103386,8 +103394,8 @@ var TabsRow = /*#__PURE__*/createStyled("div", true ? {
103386
103394
  var RememberRow = /*#__PURE__*/createStyled("label", true ? {
103387
103395
  target: "e1g1uu3p1"
103388
103396
  } : 0)( true ? {
103389
- name: "1wov6oy",
103390
- styles: "display:inline-flex;align-items:center;gap:10px;width:246px;height:44px;border-radius:24px;padding:0 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:center;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;}"
103397
+ name: "1mvifq7",
103398
+ 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;}"
103391
103399
  } : 0);
103392
103400
  var RememberCheckbox = /*#__PURE__*/createStyled("input", true ? {
103393
103401
  target: "e1g1uu3p0"
@@ -103675,7 +103683,7 @@ function collectMarketsWithParentRegions(regions) {
103675
103683
  });
103676
103684
  }
103677
103685
  var VB_EMPTY_STATE_TEXT = "Markets and languages are not authorable in Visual Builder mode.";
103678
- var DEFAULT_EMPTY_STATE_TEXT = "No countries found.";
103686
+ var DEFAULT_EMPTY_STATE_TEXT = "Markets and languages were not found for this page.";
103679
103687
  function computeTriggerDisplay(_ref) {
103680
103688
  var _sessionPillDisplay$l, _sessionPillDisplay$c;
103681
103689
  var sessionPillDisplay = _ref.sessionPillDisplay,
@@ -104045,7 +104053,7 @@ function renderMarketSelectorModalDesktop(_ref7) {
104045
104053
  })
104046
104054
  })]
104047
104055
  }), /*#__PURE__*/(0,jsx_runtime_.jsx)(TopControls, {
104048
- children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(RememberRow, MarketSelector_objectSpread(MarketSelector_objectSpread({
104056
+ children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(RememberRow, {
104049
104057
  htmlFor: "market-selector-remember-selection",
104050
104058
  "data-checked": rememberSelection ? "true" : "false",
104051
104059
  "data-toggle-source": rememberToggleSource,
@@ -104069,8 +104077,7 @@ function renderMarketSelectorModalDesktop(_ref7) {
104069
104077
  return;
104070
104078
  }
104071
104079
  setRememberToggleSource("row");
104072
- }
104073
- }, (_marketSelectorDollar3 = marketSelectorDollar === null || marketSelectorDollar === void 0 ? void 0 : marketSelectorDollar.remember_region_text) !== null && _marketSelectorDollar3 !== void 0 ? _marketSelectorDollar3 : {}), {}, {
104080
+ },
104074
104081
  children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(RememberCheckbox, {
104075
104082
  id: "market-selector-remember-selection",
104076
104083
  type: "checkbox",
@@ -104091,8 +104098,10 @@ function renderMarketSelectorModalDesktop(_ref7) {
104091
104098
  });
104092
104099
  },
104093
104100
  "data-testid": "market-selector-remember-selection"
104094
- }), text.rememberSelectionText]
104095
- }))
104101
+ }), /*#__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 : {}), {}, {
104102
+ children: text.rememberSelectionText
104103
+ }))]
104104
+ })
104096
104105
  }), /*#__PURE__*/(0,jsx_runtime_.jsx)(TabsRow, {
104097
104106
  children: /*#__PURE__*/(0,jsx_runtime_.jsx)(CountryListSelector, {
104098
104107
  className: "market-selector-tabs",
@@ -104185,7 +104194,7 @@ function renderMarketSelectorModalMobile(_ref8) {
104185
104194
  "data-testid": "market-selector-mobile-scroll-content",
104186
104195
  children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MobileRememberControlsWrap, {
104187
104196
  children: /*#__PURE__*/(0,jsx_runtime_.jsx)(MobileRememberControls, {
104188
- children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileRememberRowCompact, MarketSelector_objectSpread(MarketSelector_objectSpread({
104197
+ children: /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileRememberRowCompact, {
104189
104198
  htmlFor: "market-selector-remember-selection",
104190
104199
  "data-checked": rememberSelection ? "true" : "false",
104191
104200
  "data-toggle-source": rememberToggleSource,
@@ -104209,8 +104218,7 @@ function renderMarketSelectorModalMobile(_ref8) {
104209
104218
  return;
104210
104219
  }
104211
104220
  setRememberToggleSource("row");
104212
- }
104213
- }, (_marketSelectorDollar6 = marketSelectorDollar === null || marketSelectorDollar === void 0 ? void 0 : marketSelectorDollar.remember_region_text) !== null && _marketSelectorDollar6 !== void 0 ? _marketSelectorDollar6 : {}), {}, {
104221
+ },
104214
104222
  children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(RememberCheckbox, {
104215
104223
  id: "market-selector-remember-selection",
104216
104224
  type: "checkbox",
@@ -104231,8 +104239,10 @@ function renderMarketSelectorModalMobile(_ref8) {
104231
104239
  });
104232
104240
  },
104233
104241
  "data-testid": "market-selector-remember-selection"
104234
- }), text.rememberSelectionText]
104235
- }))
104242
+ }), /*#__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 : {}), {}, {
104243
+ children: text.rememberSelectionText
104244
+ }))]
104245
+ })
104236
104246
  })
104237
104247
  }), /*#__PURE__*/(0,jsx_runtime_.jsxs)(MobileModalBody, {
104238
104248
  children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(MobileLocaleSectionBlock, {