@enyxs/wikex-components 0.11.48 → 0.11.49

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/README.md CHANGED
@@ -55,6 +55,10 @@ The package has React, Material UI and Emotion as peer dependencies, so the host
55
55
 
56
56
  ## Release
57
57
 
58
+ ### 0.11.49
59
+
60
+ Desktop header submenus open smoothly when moving straight from one submenu to another: the menu that just opened no longer closes itself because focus returned to the previous trigger. Escape and clicking outside still return focus to the trigger. Submenus fade and slide in (180 ms) and fade out (120 ms), with no motion when reduced motion is requested. No CMS schema or manifest changes. Frontend and backend must pin the same published version.
61
+
58
62
  ### 0.11.48
59
63
 
60
64
  Header submenu links now match the query string as well as the pathname. Siblings that share a path, such as `/thong-bao/?source=wikex` and `/thong-bao/?source=mxv`, are no longer highlighted together; only the most specific matching link is active, in both the desktop dropdown and the mobile drawer. A parent item stays active on any page under its children's paths. No CMS schema or manifest changes. Frontend and backend must pin the same published version.
package/dist/index.js CHANGED
@@ -8805,49 +8805,55 @@ var dropIn = (0, import_styled_components5.keyframes)([
8805
8805
  var dropOut = (0, import_styled_components5.keyframes)([
8806
8806
  `from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-12px);}`
8807
8807
  ]);
8808
+ var submenuIn = (0, import_styled_components5.keyframes)([
8809
+ `from{opacity:0;transform:translateY(-6px) scale(0.98);}to{opacity:1;transform:translateY(0) scale(1);}`
8810
+ ]);
8811
+ var submenuOut = (0, import_styled_components5.keyframes)([
8812
+ `from{opacity:1;transform:translateY(0) scale(1);}to{opacity:0;transform:translateY(-4px) scale(0.98);}`
8813
+ ]);
8808
8814
  var HeaderShell = import_styled_components5.default.header.withConfig({
8809
- componentId: "sc-eabee95e-0"
8815
+ componentId: "sc-4641ea79-0"
8810
8816
  })([
8811
8817
  `position:sticky;top:0;z-index:100;display:flex;height:64px;padding:12px 20px;align-items:center;justify-content:center;background:`,
8812
8818
  `;box-shadow:0 1px 12px rgb(0 0 0 / 4%);:root[data-theme="dark"] &{background:#18181a;}@media (max-width:768px){padding-inline:15px;}@media (max-width:620px){height:62px;padding:16px 16px 12px;box-shadow:0 1px 0 rgb(5 8 15 / 8%);}`
8813
8819
  ], ({ theme }) => theme.colors.background.canvas);
8814
8820
  var HeaderInner = import_styled_components5.default.div.withConfig({
8815
- componentId: "sc-eabee95e-1"
8821
+ componentId: "sc-4641ea79-1"
8816
8822
  })([
8817
8823
  `display:flex;width:100%;max-width:1560px;height:40px;margin:0 auto;align-items:center;gap:32px;@media (max-width:1279px){justify-content:space-between;}@media only screen and (max-width:767px){gap:0;}@media (max-width:620px){height:34px;justify-content:space-between;}`
8818
8824
  ]);
8819
8825
  var BrandGroup = import_styled_components5.default.div.withConfig({
8820
- componentId: "sc-eabee95e-2"
8826
+ componentId: "sc-4641ea79-2"
8821
8827
  })([
8822
8828
  `display:flex;flex:0 0 auto;align-items:center;gap:16px;`
8823
8829
  ]);
8824
8830
  var WikiBrand = (0, import_styled_components5.default)(import_link.default).withConfig({
8825
- componentId: "sc-eabee95e-3"
8831
+ componentId: "sc-4641ea79-3"
8826
8832
  })([
8827
8833
  `display:inline-flex;flex:0 0 auto;align-items:center;`
8828
8834
  ]);
8829
8835
  var WikiLogo = (0, import_styled_components5.default)(import_image.default).withConfig({
8830
- componentId: "sc-eabee95e-4"
8836
+ componentId: "sc-4641ea79-4"
8831
8837
  })([
8832
8838
  `display:block;width:142px;height:auto;@media (max-width:620px){width:84px;}`
8833
8839
  ]);
8834
8840
  var PartnerBrand = import_styled_components5.default.a.withConfig({
8835
- componentId: "sc-eabee95e-5"
8841
+ componentId: "sc-4641ea79-5"
8836
8842
  })([
8837
8843
  `display:inline-flex;align-items:center;gap:7.2px;color:#009ee3;@media (max-width:767px){display:inline-flex;}`
8838
8844
  ]);
8839
8845
  var MxvLogo = (0, import_styled_components5.default)(import_image.default).withConfig({
8840
- componentId: "sc-eabee95e-6"
8846
+ componentId: "sc-4641ea79-6"
8841
8847
  })([
8842
8848
  `display:block;width:95px;height:auto;:root[data-theme="dark"] &{filter:brightness(0) invert(1);}@media (max-width:620px){width:95px;}`
8843
8849
  ]);
8844
8850
  var DesktopNavigation = import_styled_components5.default.nav.withConfig({
8845
- componentId: "sc-eabee95e-7"
8851
+ componentId: "sc-4641ea79-7"
8846
8852
  })([
8847
8853
  `display:flex;align-items:center;gap:16px;@media (max-width:1279px){display:none;}`
8848
8854
  ]);
8849
8855
  var NavigationLink = (0, import_styled_components5.default)(import_link.default).withConfig({
8850
- componentId: "sc-eabee95e-8"
8856
+ componentId: "sc-4641ea79-8"
8851
8857
  })([
8852
8858
  `position:relative;color:`,
8853
8859
  `;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:color 160ms ease;&:hover,&:focus-visible{color:`,
@@ -8855,59 +8861,61 @@ var NavigationLink = (0, import_styled_components5.default)(import_link.default)
8855
8861
  `;}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}`
8856
8862
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8857
8863
  var ProductsMenuTrigger = import_styled_components5.default.button.withConfig({
8858
- componentId: "sc-eabee95e-9"
8864
+ componentId: "sc-4641ea79-9"
8859
8865
  })([
8860
8866
  `display:inline-flex;align-items:center;gap:4px;padding:0;border:0;color:`,
8861
8867
  `;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;&[data-state="open"],&[data-active="true"],&:hover,&:focus-visible{color:`,
8862
8868
  `;}&:focus-visible{outline:none;}&::after{content:"";border-inline:3px solid transparent;border-top:4px solid currentColor;transition:transform 160ms ease;}&[data-state="open"]::after{transform:rotate(180deg);}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}@media (prefers-reduced-motion:reduce){&::after{transition:none;}}`
8863
8869
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.accent.primary);
8864
8870
  var ProductsMenuContent = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.Content).withConfig({
8865
- componentId: "sc-eabee95e-10"
8871
+ componentId: "sc-4641ea79-10"
8866
8872
  })([
8867
8873
  `z-index:300;width:206px;max-width:var(--radix-dropdown-menu-content-available-width);padding:8px;border:1px solid `,
8868
8874
  `;border-radius:8px;color:`,
8869
8875
  `;background:`,
8870
8876
  `;box-shadow:0 4px 8px `,
8871
- `;:root[data-theme="dark"] &{border-color:`,
8872
- `;}`
8873
- ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.popup, ({ theme }) => theme.colors.effect.popupShadow, ({ theme }) => theme.colors.border.subtle);
8877
+ `;transform-origin:var(--radix-dropdown-menu-content-transform-origin);will-change:opacity,transform;&[data-state="open"]{animation:`,
8878
+ ` 180ms cubic-bezier(0.16,1,0.3,1);}&[data-state="closed"]{animation:`,
8879
+ ` 120ms ease-in forwards;}:root[data-theme="dark"] &{border-color:`,
8880
+ `;}@media (prefers-reduced-motion:reduce){animation:none !important;}`
8881
+ ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.popup, ({ theme }) => theme.colors.effect.popupShadow, submenuIn, submenuOut, ({ theme }) => theme.colors.border.subtle);
8874
8882
  var ProductsMenuItem = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.Item).withConfig({
8875
- componentId: "sc-eabee95e-11"
8883
+ componentId: "sc-4641ea79-11"
8876
8884
  })([
8877
8885
  `display:flex;height:44px;align-items:center;padding:12px 8px;border-radius:4px;cursor:pointer;font-size:14px;font-weight:400;line-height:18px;outline:none;color:inherit;text-decoration:none;&[aria-current="page"],&[data-highlighted],&:focus-visible{color:`,
8878
8886
  `;background:transparent;outline:none;}`
8879
8887
  ], ({ theme }) => theme.colors.accent.primary);
8880
8888
  var MobileNavigation2 = import_styled_components5.default.div.withConfig({
8881
- componentId: "sc-eabee95e-12"
8889
+ componentId: "sc-4641ea79-12"
8882
8890
  })([
8883
8891
  `position:relative;display:none;align-items:center;gap:8px;@media (max-width:1279px){display:flex;}@media (max-width:767px){order:3;margin-left:auto;}@media (max-width:620px){gap:2px;}`
8884
8892
  ]);
8885
8893
  var MobileThemeToggle = import_styled_components5.default.div.withConfig({
8886
- componentId: "sc-eabee95e-13"
8894
+ componentId: "sc-4641ea79-13"
8887
8895
  })([
8888
8896
  `display:none;align-items:center;@media (max-width:767px){display:flex;}@media (max-width:620px){&& .theme-toggle--header{border-radius:4px;svg{width:20px;height:20px;}}}`
8889
8897
  ]);
8890
8898
  var MobileLanguageToggle = import_styled_components5.default.div.withConfig({
8891
- componentId: "sc-eabee95e-14"
8899
+ componentId: "sc-4641ea79-14"
8892
8900
  })([
8893
8901
  `display:none;align-items:center;@media (max-width:767px){display:flex;}`
8894
8902
  ]);
8895
8903
  var MobileMenuTrigger = import_styled_components5.default.button.withConfig({
8896
- componentId: "sc-eabee95e-15"
8904
+ componentId: "sc-4641ea79-15"
8897
8905
  })([
8898
8906
  `display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:0;border-radius:9999px;color:`,
8899
8907
  `;background:transparent;cursor:pointer;transition:background-color 160ms ease;&:hover,&[data-state="open"]{background:`,
8900
8908
  `;}@media (max-width:620px){width:24px;height:24px;border-radius:4px;svg{flex-shrink:0;}}`
8901
8909
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8902
8910
  var MobileDrawerOverlay = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Overlay).withConfig({
8903
- componentId: "sc-eabee95e-16"
8911
+ componentId: "sc-4641ea79-16"
8904
8912
  })([
8905
8913
  `position:fixed;z-index:200;inset:0;background:rgb(0 0 0 / 48%);backdrop-filter:blur(2px);&[data-state="open"]{animation:`,
8906
8914
  ` 220ms ease-out;}&[data-state="closed"]{animation:`,
8907
8915
  ` 180ms ease-in;}@media (prefers-reduced-motion:reduce){animation:none;}@media (max-width:767px){top:var(--header-height);background:rgb(5 8 16 / 40%);backdrop-filter:blur(5px);}`
8908
8916
  ], fadeIn, fadeOut);
8909
8917
  var MobileDrawerContent = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Content).withConfig({
8910
- componentId: "sc-eabee95e-17"
8918
+ componentId: "sc-4641ea79-17"
8911
8919
  })([
8912
8920
  `position:fixed;z-index:201;top:0;right:0;width:320px;max-width:calc(100% - 24px);height:100vh;padding:20px;overflow-y:auto;color:`,
8913
8921
  `;background:`,
@@ -8918,29 +8926,29 @@ var MobileDrawerContent = (0, import_styled_components5.default)(import_radix_ui
8918
8926
  ` 180ms ease-in;}}`
8919
8927
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.canvas, slideIn, slideOut, dropIn, dropOut);
8920
8928
  var MobileDrawerHeader = import_styled_components5.default.div.withConfig({
8921
- componentId: "sc-eabee95e-18"
8929
+ componentId: "sc-4641ea79-18"
8922
8930
  })([
8923
8931
  `display:flex;min-height:44px;margin-bottom:24px;align-items:center;justify-content:space-between;gap:16px;@media (max-width:767px){display:none;}`
8924
8932
  ]);
8925
8933
  var MobileDrawerTitle = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Title).withConfig({
8926
- componentId: "sc-eabee95e-19"
8934
+ componentId: "sc-4641ea79-19"
8927
8935
  })([
8928
8936
  `margin:0;font-size:20px;font-weight:700;line-height:28px;`
8929
8937
  ]);
8930
8938
  var MobileDrawerClose = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Close).withConfig({
8931
- componentId: "sc-eabee95e-20"
8939
+ componentId: "sc-4641ea79-20"
8932
8940
  })([
8933
8941
  `display:inline-flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;border:0;border-radius:50%;color:`,
8934
8942
  `;background:transparent;cursor:pointer;&:hover{background:`,
8935
8943
  `;}`
8936
8944
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8937
8945
  var MobileDrawerActions = import_styled_components5.default.div.withConfig({
8938
- componentId: "sc-eabee95e-21"
8946
+ componentId: "sc-4641ea79-21"
8939
8947
  })([
8940
8948
  `display:none;@media (max-width:767px){display:grid;width:100%;margin-bottom:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}`
8941
8949
  ]);
8942
8950
  var MobileMenuPanel = import_styled_components5.default.nav.withConfig({
8943
- componentId: "sc-eabee95e-22"
8951
+ componentId: "sc-4641ea79-22"
8944
8952
  })([
8945
8953
  `display:flex;flex-direction:column;gap:6px;a,button{width:100%;border:0;display:flex;border-radius:8px;padding:14px 12px;color:`,
8946
8954
  `;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;text-align:left;transition:color 160ms ease,background-color 160ms ease;}a:hover,a:focus-visible,button:not(:disabled):hover,button:not(:disabled):focus-visible{color:`,
@@ -8949,72 +8957,72 @@ var MobileMenuPanel = import_styled_components5.default.nav.withConfig({
8949
8957
  `;}.mobile-menu-submenu a{padding-left:28px;font-size:13px;font-weight:500;}.mobile-products-chevron{display:inline-flex;transition:transform 160ms ease;}.mobile-menu-accordion-trigger[aria-expanded="true"] .mobile-products-chevron{transform:rotate(180deg);}@media (max-width:767px){gap:0;a,button{display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:12px;font-weight:700;line-height:18px;}a[data-accent="true"]{color:#f9bb3a;}.mobile-menu-submenu a{min-height:34px;padding:7px 12px 7px 28px;font-size:14px;font-weight:500;}.mobile-menu-login{display:none;}svg{width:18px;height:18px;flex:0 0 18px;}}@media (prefers-reduced-motion:reduce){.mobile-products-chevron{transition:none;}}`
8950
8958
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary);
8951
8959
  var RightActions = import_styled_components5.default.div.withConfig({
8952
- componentId: "sc-eabee95e-23"
8960
+ componentId: "sc-4641ea79-23"
8953
8961
  })([
8954
8962
  `display:flex;margin-left:auto;align-items:center;gap:12px;& > div{display:flex;align-items:center;gap:8px;}@media (max-width:1279px){display:none;}`
8955
8963
  ]);
8956
8964
  var IconButton2 = import_styled_components5.default.button.withConfig({
8957
- componentId: "sc-eabee95e-24"
8965
+ componentId: "sc-4641ea79-24"
8958
8966
  })([
8959
8967
  `display:inline-flex;width:36px;height:36px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:8px;color:`,
8960
8968
  `;background:transparent;cursor:pointer;transition:background-color 160ms ease;svg{width:24px;height:24px;}&:hover{background:`,
8961
8969
  `;}@media (max-width:480px){display:none;}`
8962
8970
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8963
8971
  var LanguageTrigger = (0, import_styled_components5.default)(IconButton2).withConfig({
8964
- componentId: "sc-eabee95e-25"
8972
+ componentId: "sc-4641ea79-25"
8965
8973
  })([
8966
8974
  `&[data-state="open"]{color:#f9bb3a;background:`,
8967
8975
  `;}@media (max-width:767px){display:inline-flex;}@media (max-width:620px){border-radius:4px;svg{width:20px;height:20px;flex-shrink:0;}}`
8968
8976
  ], ({ theme }) => theme.colors.background.hover);
8969
8977
  var LanguageMenuContent = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.Content).withConfig({
8970
- componentId: "sc-eabee95e-26"
8978
+ componentId: "sc-4641ea79-26"
8971
8979
  })([
8972
8980
  `z-index:300;width:180px;padding:8px;border:1px solid #e6e7ea;border-radius:12px;color:#05080f;background:#f9fafb;box-shadow:0 4px 8px rgb(5 8 16 / 5%);outline:none;transform-origin:var(--radix-dropdown-menu-content-transform-origin);&[data-state="open"]{animation:`,
8973
8981
  ` 140ms ease-out;}&[data-state="closed"]{animation:`,
8974
8982
  ` 100ms ease-in;}:root[data-theme="dark"] &{border-color:#48484a;color:#f2f2f7;background:#2c2c2e;box-shadow:0 4px 12px rgb(0 0 0 / 24%);}&[data-compact="true"]{width:148px;padding:6px;}@media (prefers-reduced-motion:reduce){animation:none;}`
8975
8983
  ], fadeIn, fadeOut);
8976
8984
  var LanguageMenuItem = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.RadioItem).withConfig({
8977
- componentId: "sc-eabee95e-27"
8985
+ componentId: "sc-4641ea79-27"
8978
8986
  })([
8979
8987
  `display:flex;width:100%;height:46px;padding:12px 8px;align-items:center;gap:8px;border-radius:8px;cursor:pointer;font-size:16px;font-weight:500;line-height:22px;outline:none;user-select:none;&[data-highlighted]{background:#f1f2f4;}:root[data-theme="dark"] &[data-highlighted]{background:#3a3a3c;}`,
8980
8988
  `[data-compact="true"] &{height:40px;padding:10px 6px;font-size:14px;line-height:18px;}`
8981
8989
  ], LanguageMenuContent);
8982
8990
  var LanguageFlag = import_styled_components5.default.span.withConfig({
8983
- componentId: "sc-eabee95e-28"
8991
+ componentId: "sc-4641ea79-28"
8984
8992
  })([
8985
8993
  `display:inline-flex;width:20px;height:20px;flex:0 0 20px;overflow:hidden;align-items:center;justify-content:center;border-radius:50%;img{width:100%;height:100%;max-width:none;object-fit:cover;}`
8986
8994
  ]);
8987
8995
  var LanguageItemIndicator = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.ItemIndicator).withConfig({
8988
- componentId: "sc-eabee95e-29"
8996
+ componentId: "sc-4641ea79-29"
8989
8997
  })([
8990
8998
  `display:inline-flex;width:18px;height:18px;margin-left:auto;flex:0 0 18px;align-items:center;justify-content:center;img{display:block;width:18px;height:18px;}`,
8991
8999
  `[data-compact="true"] &,`,
8992
9000
  `[data-compact="true"] & img{width:16px;height:16px;flex-basis:16px;}`
8993
9001
  ], LanguageMenuContent, LanguageMenuContent);
8994
9002
  var ActionDivider = import_styled_components5.default.span.withConfig({
8995
- componentId: "sc-eabee95e-30"
9003
+ componentId: "sc-4641ea79-30"
8996
9004
  })([
8997
9005
  `width:1px;height:16px;background:`,
8998
9006
  `;@media (max-width:608px){display:none;}`
8999
9007
  ], ({ theme }) => theme.colors.border.line);
9000
9008
  var LoginLink = import_styled_components5.default.a.withConfig({
9001
- componentId: "sc-eabee95e-31"
9009
+ componentId: "sc-4641ea79-31"
9002
9010
  })([
9003
9011
  `display:inline-flex;text-decoration:none;height:40px;align-items:center;justify-content:center;border:1px solid #d2d5da;border-radius:6px;padding:0 16px;color:#05080f;background:transparent;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:background-color 160ms ease,border-color 160ms ease;:root[data-theme="dark"] &{color:#fafafa;}&:not([aria-disabled="true"]):hover{background:`,
9004
9012
  `;}&[aria-disabled="true"]{cursor:not-allowed;opacity:0.55;}@media (max-width:608px){display:none;}`
9005
9013
  ], ({ theme }) => theme.colors.background.hover);
9006
9014
  var OpenAccountButton = (0, import_styled_components5.default)(Button_default2).withConfig({
9007
- componentId: "sc-eabee95e-32"
9015
+ componentId: "sc-4641ea79-32"
9008
9016
  })([
9009
9017
  `width:120px;height:40px;min-height:40px;border-radius:6px;padding:0;box-shadow:0 1px 20px rgb(249 187 58 / 60%);font-family:var(--font-inter),sans-serif;font-size:14px;font-weight:600;line-height:22px;white-space:nowrap;&:hover{&::before{opacity:0.8;}}&::before{content:"";position:absolute;left:50%;bottom:0;margin-left:-49px;width:98px;height:22px;background:#ffe492;filter:blur(10px);pointer-events:none;opacity:0;transition:opacity 0.15s linear;}@media (max-width:767px){display:none;}`
9010
9018
  ]);
9011
9019
  var MobileDrawerLoginButton = (0, import_styled_components5.default)(LoginLink).withConfig({
9012
- componentId: "sc-eabee95e-33"
9020
+ componentId: "sc-4641ea79-33"
9013
9021
  })([
9014
9022
  `display:none;@media (max-width:767px){display:inline-flex;width:100%;min-width:0;padding-inline:12px;&:disabled{opacity:1;}}`
9015
9023
  ]);
9016
9024
  var MobileDrawerOpenAccountButton = (0, import_styled_components5.default)(OpenAccountButton).withConfig({
9017
- componentId: "sc-eabee95e-34"
9025
+ componentId: "sc-4641ea79-34"
9018
9026
  })([
9019
9027
  `display:none;@media (max-width:767px){display:flex;width:100%;min-width:0;}`
9020
9028
  ]);
@@ -16980,6 +16988,9 @@ function Header() {
16980
16988
  ProductsMenuContent,
16981
16989
  {
16982
16990
  onInteractOutside: keepEditorToolbarOpen,
16991
+ onCloseAutoFocus: (event) => {
16992
+ if (isDesktopProductsOpen !== null) event.preventDefault();
16993
+ },
16983
16994
  align: "center",
16984
16995
  sideOffset: 10,
16985
16996
  "aria-label": item.label,
package/dist/index.mjs CHANGED
@@ -8724,49 +8724,55 @@ var dropIn = keyframes([
8724
8724
  var dropOut = keyframes([
8725
8725
  `from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-12px);}`
8726
8726
  ]);
8727
+ var submenuIn = keyframes([
8728
+ `from{opacity:0;transform:translateY(-6px) scale(0.98);}to{opacity:1;transform:translateY(0) scale(1);}`
8729
+ ]);
8730
+ var submenuOut = keyframes([
8731
+ `from{opacity:1;transform:translateY(0) scale(1);}to{opacity:0;transform:translateY(-4px) scale(0.98);}`
8732
+ ]);
8727
8733
  var HeaderShell = styled5.header.withConfig({
8728
- componentId: "sc-eabee95e-0"
8734
+ componentId: "sc-4641ea79-0"
8729
8735
  })([
8730
8736
  `position:sticky;top:0;z-index:100;display:flex;height:64px;padding:12px 20px;align-items:center;justify-content:center;background:`,
8731
8737
  `;box-shadow:0 1px 12px rgb(0 0 0 / 4%);:root[data-theme="dark"] &{background:#18181a;}@media (max-width:768px){padding-inline:15px;}@media (max-width:620px){height:62px;padding:16px 16px 12px;box-shadow:0 1px 0 rgb(5 8 15 / 8%);}`
8732
8738
  ], ({ theme }) => theme.colors.background.canvas);
8733
8739
  var HeaderInner = styled5.div.withConfig({
8734
- componentId: "sc-eabee95e-1"
8740
+ componentId: "sc-4641ea79-1"
8735
8741
  })([
8736
8742
  `display:flex;width:100%;max-width:1560px;height:40px;margin:0 auto;align-items:center;gap:32px;@media (max-width:1279px){justify-content:space-between;}@media only screen and (max-width:767px){gap:0;}@media (max-width:620px){height:34px;justify-content:space-between;}`
8737
8743
  ]);
8738
8744
  var BrandGroup = styled5.div.withConfig({
8739
- componentId: "sc-eabee95e-2"
8745
+ componentId: "sc-4641ea79-2"
8740
8746
  })([
8741
8747
  `display:flex;flex:0 0 auto;align-items:center;gap:16px;`
8742
8748
  ]);
8743
8749
  var WikiBrand = styled5(Link3).withConfig({
8744
- componentId: "sc-eabee95e-3"
8750
+ componentId: "sc-4641ea79-3"
8745
8751
  })([
8746
8752
  `display:inline-flex;flex:0 0 auto;align-items:center;`
8747
8753
  ]);
8748
8754
  var WikiLogo = styled5(Image).withConfig({
8749
- componentId: "sc-eabee95e-4"
8755
+ componentId: "sc-4641ea79-4"
8750
8756
  })([
8751
8757
  `display:block;width:142px;height:auto;@media (max-width:620px){width:84px;}`
8752
8758
  ]);
8753
8759
  var PartnerBrand = styled5.a.withConfig({
8754
- componentId: "sc-eabee95e-5"
8760
+ componentId: "sc-4641ea79-5"
8755
8761
  })([
8756
8762
  `display:inline-flex;align-items:center;gap:7.2px;color:#009ee3;@media (max-width:767px){display:inline-flex;}`
8757
8763
  ]);
8758
8764
  var MxvLogo = styled5(Image).withConfig({
8759
- componentId: "sc-eabee95e-6"
8765
+ componentId: "sc-4641ea79-6"
8760
8766
  })([
8761
8767
  `display:block;width:95px;height:auto;:root[data-theme="dark"] &{filter:brightness(0) invert(1);}@media (max-width:620px){width:95px;}`
8762
8768
  ]);
8763
8769
  var DesktopNavigation = styled5.nav.withConfig({
8764
- componentId: "sc-eabee95e-7"
8770
+ componentId: "sc-4641ea79-7"
8765
8771
  })([
8766
8772
  `display:flex;align-items:center;gap:16px;@media (max-width:1279px){display:none;}`
8767
8773
  ]);
8768
8774
  var NavigationLink = styled5(Link3).withConfig({
8769
- componentId: "sc-eabee95e-8"
8775
+ componentId: "sc-4641ea79-8"
8770
8776
  })([
8771
8777
  `position:relative;color:`,
8772
8778
  `;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:color 160ms ease;&:hover,&:focus-visible{color:`,
@@ -8774,59 +8780,61 @@ var NavigationLink = styled5(Link3).withConfig({
8774
8780
  `;}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}`
8775
8781
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8776
8782
  var ProductsMenuTrigger = styled5.button.withConfig({
8777
- componentId: "sc-eabee95e-9"
8783
+ componentId: "sc-4641ea79-9"
8778
8784
  })([
8779
8785
  `display:inline-flex;align-items:center;gap:4px;padding:0;border:0;color:`,
8780
8786
  `;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;&[data-state="open"],&[data-active="true"],&:hover,&:focus-visible{color:`,
8781
8787
  `;}&:focus-visible{outline:none;}&::after{content:"";border-inline:3px solid transparent;border-top:4px solid currentColor;transition:transform 160ms ease;}&[data-state="open"]::after{transform:rotate(180deg);}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}@media (prefers-reduced-motion:reduce){&::after{transition:none;}}`
8782
8788
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.accent.primary);
8783
8789
  var ProductsMenuContent = styled5(DropdownMenu.Content).withConfig({
8784
- componentId: "sc-eabee95e-10"
8790
+ componentId: "sc-4641ea79-10"
8785
8791
  })([
8786
8792
  `z-index:300;width:206px;max-width:var(--radix-dropdown-menu-content-available-width);padding:8px;border:1px solid `,
8787
8793
  `;border-radius:8px;color:`,
8788
8794
  `;background:`,
8789
8795
  `;box-shadow:0 4px 8px `,
8790
- `;:root[data-theme="dark"] &{border-color:`,
8791
- `;}`
8792
- ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.popup, ({ theme }) => theme.colors.effect.popupShadow, ({ theme }) => theme.colors.border.subtle);
8796
+ `;transform-origin:var(--radix-dropdown-menu-content-transform-origin);will-change:opacity,transform;&[data-state="open"]{animation:`,
8797
+ ` 180ms cubic-bezier(0.16,1,0.3,1);}&[data-state="closed"]{animation:`,
8798
+ ` 120ms ease-in forwards;}:root[data-theme="dark"] &{border-color:`,
8799
+ `;}@media (prefers-reduced-motion:reduce){animation:none !important;}`
8800
+ ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.popup, ({ theme }) => theme.colors.effect.popupShadow, submenuIn, submenuOut, ({ theme }) => theme.colors.border.subtle);
8793
8801
  var ProductsMenuItem = styled5(DropdownMenu.Item).withConfig({
8794
- componentId: "sc-eabee95e-11"
8802
+ componentId: "sc-4641ea79-11"
8795
8803
  })([
8796
8804
  `display:flex;height:44px;align-items:center;padding:12px 8px;border-radius:4px;cursor:pointer;font-size:14px;font-weight:400;line-height:18px;outline:none;color:inherit;text-decoration:none;&[aria-current="page"],&[data-highlighted],&:focus-visible{color:`,
8797
8805
  `;background:transparent;outline:none;}`
8798
8806
  ], ({ theme }) => theme.colors.accent.primary);
8799
8807
  var MobileNavigation2 = styled5.div.withConfig({
8800
- componentId: "sc-eabee95e-12"
8808
+ componentId: "sc-4641ea79-12"
8801
8809
  })([
8802
8810
  `position:relative;display:none;align-items:center;gap:8px;@media (max-width:1279px){display:flex;}@media (max-width:767px){order:3;margin-left:auto;}@media (max-width:620px){gap:2px;}`
8803
8811
  ]);
8804
8812
  var MobileThemeToggle = styled5.div.withConfig({
8805
- componentId: "sc-eabee95e-13"
8813
+ componentId: "sc-4641ea79-13"
8806
8814
  })([
8807
8815
  `display:none;align-items:center;@media (max-width:767px){display:flex;}@media (max-width:620px){&& .theme-toggle--header{border-radius:4px;svg{width:20px;height:20px;}}}`
8808
8816
  ]);
8809
8817
  var MobileLanguageToggle = styled5.div.withConfig({
8810
- componentId: "sc-eabee95e-14"
8818
+ componentId: "sc-4641ea79-14"
8811
8819
  })([
8812
8820
  `display:none;align-items:center;@media (max-width:767px){display:flex;}`
8813
8821
  ]);
8814
8822
  var MobileMenuTrigger = styled5.button.withConfig({
8815
- componentId: "sc-eabee95e-15"
8823
+ componentId: "sc-4641ea79-15"
8816
8824
  })([
8817
8825
  `display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:0;border-radius:9999px;color:`,
8818
8826
  `;background:transparent;cursor:pointer;transition:background-color 160ms ease;&:hover,&[data-state="open"]{background:`,
8819
8827
  `;}@media (max-width:620px){width:24px;height:24px;border-radius:4px;svg{flex-shrink:0;}}`
8820
8828
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8821
8829
  var MobileDrawerOverlay = styled5(Dialog.Overlay).withConfig({
8822
- componentId: "sc-eabee95e-16"
8830
+ componentId: "sc-4641ea79-16"
8823
8831
  })([
8824
8832
  `position:fixed;z-index:200;inset:0;background:rgb(0 0 0 / 48%);backdrop-filter:blur(2px);&[data-state="open"]{animation:`,
8825
8833
  ` 220ms ease-out;}&[data-state="closed"]{animation:`,
8826
8834
  ` 180ms ease-in;}@media (prefers-reduced-motion:reduce){animation:none;}@media (max-width:767px){top:var(--header-height);background:rgb(5 8 16 / 40%);backdrop-filter:blur(5px);}`
8827
8835
  ], fadeIn, fadeOut);
8828
8836
  var MobileDrawerContent = styled5(Dialog.Content).withConfig({
8829
- componentId: "sc-eabee95e-17"
8837
+ componentId: "sc-4641ea79-17"
8830
8838
  })([
8831
8839
  `position:fixed;z-index:201;top:0;right:0;width:320px;max-width:calc(100% - 24px);height:100vh;padding:20px;overflow-y:auto;color:`,
8832
8840
  `;background:`,
@@ -8837,29 +8845,29 @@ var MobileDrawerContent = styled5(Dialog.Content).withConfig({
8837
8845
  ` 180ms ease-in;}}`
8838
8846
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.canvas, slideIn, slideOut, dropIn, dropOut);
8839
8847
  var MobileDrawerHeader = styled5.div.withConfig({
8840
- componentId: "sc-eabee95e-18"
8848
+ componentId: "sc-4641ea79-18"
8841
8849
  })([
8842
8850
  `display:flex;min-height:44px;margin-bottom:24px;align-items:center;justify-content:space-between;gap:16px;@media (max-width:767px){display:none;}`
8843
8851
  ]);
8844
8852
  var MobileDrawerTitle = styled5(Dialog.Title).withConfig({
8845
- componentId: "sc-eabee95e-19"
8853
+ componentId: "sc-4641ea79-19"
8846
8854
  })([
8847
8855
  `margin:0;font-size:20px;font-weight:700;line-height:28px;`
8848
8856
  ]);
8849
8857
  var MobileDrawerClose = styled5(Dialog.Close).withConfig({
8850
- componentId: "sc-eabee95e-20"
8858
+ componentId: "sc-4641ea79-20"
8851
8859
  })([
8852
8860
  `display:inline-flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;border:0;border-radius:50%;color:`,
8853
8861
  `;background:transparent;cursor:pointer;&:hover{background:`,
8854
8862
  `;}`
8855
8863
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8856
8864
  var MobileDrawerActions = styled5.div.withConfig({
8857
- componentId: "sc-eabee95e-21"
8865
+ componentId: "sc-4641ea79-21"
8858
8866
  })([
8859
8867
  `display:none;@media (max-width:767px){display:grid;width:100%;margin-bottom:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}`
8860
8868
  ]);
8861
8869
  var MobileMenuPanel = styled5.nav.withConfig({
8862
- componentId: "sc-eabee95e-22"
8870
+ componentId: "sc-4641ea79-22"
8863
8871
  })([
8864
8872
  `display:flex;flex-direction:column;gap:6px;a,button{width:100%;border:0;display:flex;border-radius:8px;padding:14px 12px;color:`,
8865
8873
  `;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;text-align:left;transition:color 160ms ease,background-color 160ms ease;}a:hover,a:focus-visible,button:not(:disabled):hover,button:not(:disabled):focus-visible{color:`,
@@ -8868,72 +8876,72 @@ var MobileMenuPanel = styled5.nav.withConfig({
8868
8876
  `;}.mobile-menu-submenu a{padding-left:28px;font-size:13px;font-weight:500;}.mobile-products-chevron{display:inline-flex;transition:transform 160ms ease;}.mobile-menu-accordion-trigger[aria-expanded="true"] .mobile-products-chevron{transform:rotate(180deg);}@media (max-width:767px){gap:0;a,button{display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:12px;font-weight:700;line-height:18px;}a[data-accent="true"]{color:#f9bb3a;}.mobile-menu-submenu a{min-height:34px;padding:7px 12px 7px 28px;font-size:14px;font-weight:500;}.mobile-menu-login{display:none;}svg{width:18px;height:18px;flex:0 0 18px;}}@media (prefers-reduced-motion:reduce){.mobile-products-chevron{transition:none;}}`
8869
8877
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary);
8870
8878
  var RightActions = styled5.div.withConfig({
8871
- componentId: "sc-eabee95e-23"
8879
+ componentId: "sc-4641ea79-23"
8872
8880
  })([
8873
8881
  `display:flex;margin-left:auto;align-items:center;gap:12px;& > div{display:flex;align-items:center;gap:8px;}@media (max-width:1279px){display:none;}`
8874
8882
  ]);
8875
8883
  var IconButton2 = styled5.button.withConfig({
8876
- componentId: "sc-eabee95e-24"
8884
+ componentId: "sc-4641ea79-24"
8877
8885
  })([
8878
8886
  `display:inline-flex;width:36px;height:36px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:8px;color:`,
8879
8887
  `;background:transparent;cursor:pointer;transition:background-color 160ms ease;svg{width:24px;height:24px;}&:hover{background:`,
8880
8888
  `;}@media (max-width:480px){display:none;}`
8881
8889
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8882
8890
  var LanguageTrigger = styled5(IconButton2).withConfig({
8883
- componentId: "sc-eabee95e-25"
8891
+ componentId: "sc-4641ea79-25"
8884
8892
  })([
8885
8893
  `&[data-state="open"]{color:#f9bb3a;background:`,
8886
8894
  `;}@media (max-width:767px){display:inline-flex;}@media (max-width:620px){border-radius:4px;svg{width:20px;height:20px;flex-shrink:0;}}`
8887
8895
  ], ({ theme }) => theme.colors.background.hover);
8888
8896
  var LanguageMenuContent = styled5(DropdownMenu.Content).withConfig({
8889
- componentId: "sc-eabee95e-26"
8897
+ componentId: "sc-4641ea79-26"
8890
8898
  })([
8891
8899
  `z-index:300;width:180px;padding:8px;border:1px solid #e6e7ea;border-radius:12px;color:#05080f;background:#f9fafb;box-shadow:0 4px 8px rgb(5 8 16 / 5%);outline:none;transform-origin:var(--radix-dropdown-menu-content-transform-origin);&[data-state="open"]{animation:`,
8892
8900
  ` 140ms ease-out;}&[data-state="closed"]{animation:`,
8893
8901
  ` 100ms ease-in;}:root[data-theme="dark"] &{border-color:#48484a;color:#f2f2f7;background:#2c2c2e;box-shadow:0 4px 12px rgb(0 0 0 / 24%);}&[data-compact="true"]{width:148px;padding:6px;}@media (prefers-reduced-motion:reduce){animation:none;}`
8894
8902
  ], fadeIn, fadeOut);
8895
8903
  var LanguageMenuItem = styled5(DropdownMenu.RadioItem).withConfig({
8896
- componentId: "sc-eabee95e-27"
8904
+ componentId: "sc-4641ea79-27"
8897
8905
  })([
8898
8906
  `display:flex;width:100%;height:46px;padding:12px 8px;align-items:center;gap:8px;border-radius:8px;cursor:pointer;font-size:16px;font-weight:500;line-height:22px;outline:none;user-select:none;&[data-highlighted]{background:#f1f2f4;}:root[data-theme="dark"] &[data-highlighted]{background:#3a3a3c;}`,
8899
8907
  `[data-compact="true"] &{height:40px;padding:10px 6px;font-size:14px;line-height:18px;}`
8900
8908
  ], LanguageMenuContent);
8901
8909
  var LanguageFlag = styled5.span.withConfig({
8902
- componentId: "sc-eabee95e-28"
8910
+ componentId: "sc-4641ea79-28"
8903
8911
  })([
8904
8912
  `display:inline-flex;width:20px;height:20px;flex:0 0 20px;overflow:hidden;align-items:center;justify-content:center;border-radius:50%;img{width:100%;height:100%;max-width:none;object-fit:cover;}`
8905
8913
  ]);
8906
8914
  var LanguageItemIndicator = styled5(DropdownMenu.ItemIndicator).withConfig({
8907
- componentId: "sc-eabee95e-29"
8915
+ componentId: "sc-4641ea79-29"
8908
8916
  })([
8909
8917
  `display:inline-flex;width:18px;height:18px;margin-left:auto;flex:0 0 18px;align-items:center;justify-content:center;img{display:block;width:18px;height:18px;}`,
8910
8918
  `[data-compact="true"] &,`,
8911
8919
  `[data-compact="true"] & img{width:16px;height:16px;flex-basis:16px;}`
8912
8920
  ], LanguageMenuContent, LanguageMenuContent);
8913
8921
  var ActionDivider = styled5.span.withConfig({
8914
- componentId: "sc-eabee95e-30"
8922
+ componentId: "sc-4641ea79-30"
8915
8923
  })([
8916
8924
  `width:1px;height:16px;background:`,
8917
8925
  `;@media (max-width:608px){display:none;}`
8918
8926
  ], ({ theme }) => theme.colors.border.line);
8919
8927
  var LoginLink = styled5.a.withConfig({
8920
- componentId: "sc-eabee95e-31"
8928
+ componentId: "sc-4641ea79-31"
8921
8929
  })([
8922
8930
  `display:inline-flex;text-decoration:none;height:40px;align-items:center;justify-content:center;border:1px solid #d2d5da;border-radius:6px;padding:0 16px;color:#05080f;background:transparent;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:background-color 160ms ease,border-color 160ms ease;:root[data-theme="dark"] &{color:#fafafa;}&:not([aria-disabled="true"]):hover{background:`,
8923
8931
  `;}&[aria-disabled="true"]{cursor:not-allowed;opacity:0.55;}@media (max-width:608px){display:none;}`
8924
8932
  ], ({ theme }) => theme.colors.background.hover);
8925
8933
  var OpenAccountButton = styled5(Button_default2).withConfig({
8926
- componentId: "sc-eabee95e-32"
8934
+ componentId: "sc-4641ea79-32"
8927
8935
  })([
8928
8936
  `width:120px;height:40px;min-height:40px;border-radius:6px;padding:0;box-shadow:0 1px 20px rgb(249 187 58 / 60%);font-family:var(--font-inter),sans-serif;font-size:14px;font-weight:600;line-height:22px;white-space:nowrap;&:hover{&::before{opacity:0.8;}}&::before{content:"";position:absolute;left:50%;bottom:0;margin-left:-49px;width:98px;height:22px;background:#ffe492;filter:blur(10px);pointer-events:none;opacity:0;transition:opacity 0.15s linear;}@media (max-width:767px){display:none;}`
8929
8937
  ]);
8930
8938
  var MobileDrawerLoginButton = styled5(LoginLink).withConfig({
8931
- componentId: "sc-eabee95e-33"
8939
+ componentId: "sc-4641ea79-33"
8932
8940
  })([
8933
8941
  `display:none;@media (max-width:767px){display:inline-flex;width:100%;min-width:0;padding-inline:12px;&:disabled{opacity:1;}}`
8934
8942
  ]);
8935
8943
  var MobileDrawerOpenAccountButton = styled5(OpenAccountButton).withConfig({
8936
- componentId: "sc-eabee95e-34"
8944
+ componentId: "sc-4641ea79-34"
8937
8945
  })([
8938
8946
  `display:none;@media (max-width:767px){display:flex;width:100%;min-width:0;}`
8939
8947
  ]);
@@ -16907,6 +16915,9 @@ function Header() {
16907
16915
  ProductsMenuContent,
16908
16916
  {
16909
16917
  onInteractOutside: keepEditorToolbarOpen,
16918
+ onCloseAutoFocus: (event) => {
16919
+ if (isDesktopProductsOpen !== null) event.preventDefault();
16920
+ },
16910
16921
  align: "center",
16911
16922
  sideOffset: 10,
16912
16923
  "aria-label": item.label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyxs/wikex-components",
3
- "version": "0.11.48",
3
+ "version": "0.11.49",
4
4
  "description": "Reusable CMS blocks, including the original Wikex Commodity UI.",
5
5
  "license": "MIT",
6
6
  "sideEffects": [