@atom-learning/components 3.1.1 → 3.2.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +6 -3
  2. package/dist/components/navigation/NavigationMenu.js +1 -1
  3. package/dist/components/navigation/NavigationMenu.js.map +1 -1
  4. package/dist/components/navigation/NavigationMenu.styles.d.ts +1 -0
  5. package/dist/components/navigation/NavigationMenu.styles.js +1 -1
  6. package/dist/components/navigation/NavigationMenu.styles.js.map +1 -1
  7. package/dist/components/navigation/NavigationMenuDropdownContent.d.ts +323 -1
  8. package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
  9. package/dist/components/navigation/NavigationMenuDropdownContent.js.map +1 -1
  10. package/dist/components/navigation/NavigationMenuDropdownTrigger.js +1 -1
  11. package/dist/components/navigation/NavigationMenuDropdownTrigger.js.map +1 -1
  12. package/dist/components/navigation/NavigationMenuLink.js +1 -1
  13. package/dist/components/navigation/NavigationMenuLink.js.map +1 -1
  14. package/dist/components/navigation/stitches.navigationMenu.colorscheme.config.d.ts +26 -0
  15. package/dist/components/navigation/stitches.navigationMenu.colorscheme.config.js +2 -0
  16. package/dist/components/navigation/stitches.navigationMenu.colorscheme.config.js.map +1 -0
  17. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.js +1 -1
  18. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.js.map +1 -1
  19. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.d.ts +5 -4
  20. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js +1 -1
  21. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js.map +1 -1
  22. package/dist/components/navigation-menu-vertical/stitches.navigationMenuVertical.colorscheme.config.d.ts +15 -0
  23. package/dist/components/navigation-menu-vertical/stitches.navigationMenuVertical.colorscheme.config.js +2 -0
  24. package/dist/components/navigation-menu-vertical/stitches.navigationMenuVertical.colorscheme.config.js.map +1 -0
  25. package/dist/components/top-bar/TopBar.d.ts +1 -0
  26. package/dist/components/top-bar/TopBar.js +1 -1
  27. package/dist/components/top-bar/TopBar.js.map +1 -1
  28. package/dist/components/top-bar/stitches.topBar.colorscheme.config.d.ts +12 -0
  29. package/dist/components/top-bar/stitches.topBar.colorscheme.config.js +2 -0
  30. package/dist/components/top-bar/stitches.topBar.colorscheme.config.js.map +1 -0
  31. package/dist/docgen.json +1 -1
  32. package/dist/index.cjs.js +1 -1
  33. package/dist/index.cjs.js.map +1 -1
  34. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,9 +1,12 @@
1
- ## [3.1.1](https://github.com/Atom-Learning/components/compare/v3.1.0...v3.1.1) (2023-10-24)
1
+ # [3.2.0](https://github.com/Atom-Learning/components/compare/v3.1.1...v3.2.0) (2023-11-01)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * set overflowY to auto ([46d0c63](https://github.com/Atom-Learning/components/commit/46d0c6360de90771569d3cefa0f4e0f39726751c))
6
+ * add theming vars to NavigationMenuVertical ([d8a3721](https://github.com/Atom-Learning/components/commit/d8a37218e64d6dff8474ff2426d57f17d4eb0f85))
7
+ * enable custom color schemes for the topbar and navigations ([a9a8e28](https://github.com/Atom-Learning/components/commit/a9a8e28d13ce5a56ca70faa1d47144b84ff15390))
8
+ * give tokens better names ([c5d5503](https://github.com/Atom-Learning/components/commit/c5d550338516d9605d315823956746a45f41dc4e))
9
+ * rename tokens and using DS colours ([18305cd](https://github.com/Atom-Learning/components/commit/18305cd3bbed1343da1b85b786bb14e735530ce3))
7
10
 
8
11
  # [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
9
12
 
@@ -1,2 +1,2 @@
1
- import*as m from"@radix-ui/react-navigation-menu";import t from"react";import{MAX_Z_INDEX as N}from"../../constants/zIndices.js";import{keyframes as D,styled as n}from"../../stitches.js";import{fadeOut as E}from"../../utilities/style/keyframe-animations.js";import{NavigationMenuContext as h}from"./NavigationMenuContext.js";import{NavigationMenuDropdown as x}from"./NavigationMenuDropdown.js";import{NavigationMenuDropdownContent as C}from"./NavigationMenuDropdownContent.js";import{NavigationMenuDropdownItem as I,NavigationMenuDropdownItemTitle as $}from"./NavigationMenuDropdownItem.js";import{NavigationMenuDropdownTrigger as T}from"./NavigationMenuDropdownTrigger.js";import{NavigationMenuLink as L}from"./NavigationMenuLink.js";const _=D({"0%, 50%":{opacity:0},"100%":{opacity:1}}),k=n(m.Root,{display:"flex",justifyContent:"center",position:"relative"}),S=n(m.List,{all:"unset",display:"flex",justifyContent:"center",alignItems:"center",gap:"$1",listStyle:"none"}),j=n(m.Viewport,{zIndex:N}),V=n("div",{position:"absolute",left:0,top:"100%",width:"100%",display:"flex",justifyContent:"center"}),o=({children:f,css:u,...p})=>{const[d,l]=t.useState(),[r,c]=t.useState(),[i,g]=t.useState(0),a=t.useRef(null),s=200;t.useLayoutEffect(()=>{a.current&&g(a.current.offsetWidth)},[]),t.useEffect(()=>{let e;return r===""&&(e=setTimeout(()=>l(null),s)),()=>{e!==null&&clearTimeout(e)}},[r]);const v=(e,y)=>{if(e&&i&&r===y){const w=i/2,M=i-e.offsetLeft-e.offsetWidth+e.offsetWidth/2;l(Math.round(w-M))}return e};return t.createElement(h.Provider,{value:{onNodeUpdate:v}},t.createElement(k,{onValueChange:c,css:u,...p},t.createElement(S,{ref:a},f),t.createElement(V,null,t.createElement(j,{css:{transform:`translateX(${d||0}px)`,'&[data-state="open"]':{animation:`${_} ${s}ms ease`},'&[data-state="closed"]':{animation:`${E} ${s}ms ease-out`}}}))))};o.Link=L,o.Dropdown=x,o.DropdownContent=C,o.DropdownItem=I,o.DropdownItemTitle=$,o.DropdownTrigger=T,o.displayName="NavigationMenu";export{o as NavigationMenu};
1
+ import*as m from"@radix-ui/react-navigation-menu";import t from"react";import{MAX_Z_INDEX as M}from"../../constants/zIndices.js";import{keyframes as D,styled as n}from"../../stitches.js";import{fadeOut as h}from"../../utilities/style/keyframe-animations.js";import{NavigationMenuContext as E}from"./NavigationMenuContext.js";import{NavigationMenuDropdown as x}from"./NavigationMenuDropdown.js";import{NavigationMenuDropdownContent as C}from"./NavigationMenuDropdownContent.js";import{NavigationMenuDropdownItem as I,NavigationMenuDropdownItemTitle as $}from"./NavigationMenuDropdownItem.js";import{NavigationMenuDropdownTrigger as T}from"./NavigationMenuDropdownTrigger.js";import{NavigationMenuLink as L}from"./NavigationMenuLink.js";import{colorSchemes as S}from"./stitches.navigationMenu.colorscheme.config.js";const _=D({"0%, 50%":{opacity:0},"100%":{opacity:1}}),k=n(m.Root,{display:"flex",justifyContent:"center",position:"relative"}),W=n(m.List,{all:"unset",display:"flex",justifyContent:"center",alignItems:"center",gap:"$1",listStyle:"none"}),j=n(m.Viewport,{zIndex:M}),V=n("div",{position:"absolute",left:0,top:"100%",width:"100%",display:"flex",justifyContent:"center"}),o=({children:f,css:p,...u})=>{const[d,l]=t.useState(),[r,c]=t.useState(),[i,g]=t.useState(0),a=t.useRef(null),s=200;t.useLayoutEffect(()=>{a.current&&g(a.current.offsetWidth)},[]),t.useEffect(()=>{let e;return r===""&&(e=setTimeout(()=>l(null),s)),()=>{e!==null&&clearTimeout(e)}},[r]);const y=(e,v)=>{if(e&&i&&r===v){const N=i/2,w=i-e.offsetLeft-e.offsetWidth+e.offsetWidth/2;l(Math.round(N-w))}return e};return t.createElement(E.Provider,{value:{onNodeUpdate:y}},t.createElement(k,{className:S.light,onValueChange:c,css:p,...u},t.createElement(W,{ref:a},f),t.createElement(V,null,t.createElement(j,{css:{transform:`translateX(${d||0}px)`,'&[data-state="open"]':{animation:`${_} ${s}ms ease`},'&[data-state="closed"]':{animation:`${h} ${s}ms ease-out`}}}))))};o.Link=L,o.Dropdown=x,o.DropdownContent=C,o.DropdownItem=I,o.DropdownItemTitle=$,o.DropdownTrigger=T,o.displayName="NavigationMenu";export{o as NavigationMenu};
2
2
  //# sourceMappingURL=NavigationMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenu.js","sources":["../../../src/components/navigation/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { MAX_Z_INDEX } from '~/constants/zIndices'\nimport { CSS, keyframes, styled } from '~/stitches'\nimport { fadeOut } from '~/utilities/style/keyframe-animations'\n\nimport { NavigationMenuContext } from './NavigationMenuContext'\nimport { NavigationMenuDropdown } from './NavigationMenuDropdown'\nimport { NavigationMenuDropdownContent } from './NavigationMenuDropdownContent'\nimport {\n NavigationMenuDropdownItem,\n NavigationMenuDropdownItemTitle\n} from './NavigationMenuDropdownItem'\nimport { NavigationMenuDropdownTrigger } from './NavigationMenuDropdownTrigger'\nimport { NavigationMenuLink } from './NavigationMenuLink'\n\ntype NavigationMenuSubComponents = {\n Link: typeof NavigationMenuLink\n Dropdown: typeof NavigationMenuDropdown\n DropdownContent: typeof NavigationMenuDropdownContent\n DropdownItem: typeof NavigationMenuDropdownItem\n DropdownItemTitle: typeof NavigationMenuDropdownItemTitle\n DropdownTrigger: typeof NavigationMenuDropdownTrigger\n}\n\nconst delayedFadeIn = keyframes({\n '0%, 50%': { opacity: 0 },\n '100%': { opacity: 1 }\n})\n\nconst StyledMenu = styled(NavigationMenuPrimitive.Root, {\n display: 'flex',\n justifyContent: 'center',\n position: 'relative'\n})\n\nconst StyledList = styled(NavigationMenuPrimitive.List, {\n all: 'unset',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n gap: '$1',\n listStyle: 'none'\n})\n\nconst StyledViewport = styled(NavigationMenuPrimitive.Viewport, {\n zIndex: MAX_Z_INDEX\n})\n\nconst ViewportPosition = styled('div', {\n position: 'absolute',\n left: 0,\n top: '100%',\n width: '100%',\n display: 'flex',\n justifyContent: 'center'\n})\n\ntype NavigationMenuProps = React.ComponentProps<typeof StyledMenu>\n\nexport const NavigationMenu: React.FC<NavigationMenuProps> &\n NavigationMenuSubComponents = ({ children, css, ...props }) => {\n const [offset, setOffset] = React.useState<number | null | undefined>()\n const [activeItem, setActiveItem] = React.useState<string | undefined>()\n const [listWidth, setListWidth] = React.useState(0)\n const listRef = React.useRef<HTMLUListElement>(null)\n const fadeDuration = 200\n\n React.useLayoutEffect(() => {\n if (listRef.current) {\n setListWidth(listRef.current.offsetWidth)\n }\n }, [])\n\n React.useEffect(() => {\n let timer: NodeJS.Timer\n\n // Delay transitioning back to initial position\n // to allow enough time for fadeOut animation to complete\n if (activeItem === '') {\n timer = setTimeout(() => setOffset(null), fadeDuration)\n }\n\n return () => {\n if (timer !== null) {\n clearTimeout(timer)\n }\n }\n }, [activeItem])\n\n // https://github.com/radix-ui/primitives/issues/1462\n const onNodeUpdate = (trigger: HTMLButtonElement, itemValue: string) => {\n if (trigger && listWidth && activeItem === itemValue) {\n const listCenter = listWidth / 2\n\n const triggerOffsetRight =\n listWidth -\n trigger.offsetLeft -\n trigger.offsetWidth +\n trigger.offsetWidth / 2\n\n setOffset(Math.round(listCenter - triggerOffsetRight))\n }\n\n return trigger\n }\n\n return (\n <NavigationMenuContext.Provider value={{ onNodeUpdate }}>\n <StyledMenu onValueChange={setActiveItem} css={css} {...props}>\n <StyledList ref={listRef}>{children}</StyledList>\n <ViewportPosition>\n <StyledViewport\n css={{\n transform: `translateX(${offset || 0}px)`,\n '&[data-state=\"open\"]': {\n animation: `${delayedFadeIn} ${fadeDuration}ms ease`\n },\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} ${fadeDuration}ms ease-out`\n }\n }}\n />\n </ViewportPosition>\n </StyledMenu>\n </NavigationMenuContext.Provider>\n )\n}\n\nNavigationMenu.Link = NavigationMenuLink\nNavigationMenu.Dropdown = NavigationMenuDropdown\nNavigationMenu.DropdownContent = NavigationMenuDropdownContent\nNavigationMenu.DropdownItem = NavigationMenuDropdownItem\nNavigationMenu.DropdownItemTitle = NavigationMenuDropdownItemTitle\nNavigationMenu.DropdownTrigger = NavigationMenuDropdownTrigger\n\nNavigationMenu.displayName = 'NavigationMenu'\n"],"names":["delayedFadeIn","keyframes","StyledMenu","styled","NavigationMenuPrimitive","StyledList","StyledViewport","MAX_Z_INDEX","ViewportPosition","NavigationMenu","children","css","props","offset","setOffset","React","activeItem","setActiveItem","listWidth","setListWidth","listRef","fadeDuration","timer","onNodeUpdate","trigger","itemValue","listCenter","triggerOffsetRight","NavigationMenuContext","fadeOut","NavigationMenuLink","NavigationMenuDropdown","NavigationMenuDropdownContent","NavigationMenuDropdownItem","NavigationMenuDropdownItemTitle","NavigationMenuDropdownTrigger"],"mappings":"+tBA0BA,MAAMA,EAAgBC,EAAU,CAC9B,UAAW,CAAE,QAAS,CAAE,EACxB,OAAQ,CAAE,QAAS,CAAE,CACvB,CAAC,EAEKC,EAAaC,EAAOC,EAAwB,KAAM,CACtD,QAAS,OACT,eAAgB,SAChB,SAAU,UACZ,CAAC,EAEKC,EAAaF,EAAOC,EAAwB,KAAM,CACtD,IAAK,QACL,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,IAAK,KACL,UAAW,MACb,CAAC,EAEKE,EAAiBH,EAAOC,EAAwB,SAAU,CAC9D,OAAQG,CACV,CAAC,EAEKC,EAAmBL,EAAO,MAAO,CACrC,SAAU,WACV,KAAM,EACN,IAAK,OACL,MAAO,OACP,QAAS,OACT,eAAgB,QAClB,CAAC,EAIYM,EACmB,CAAC,CAAE,SAAAC,EAAU,IAAAC,KAAQC,CAAM,IAAM,CAC/D,KAAM,CAACC,EAAQC,CAAS,EAAIC,EAAM,SAAA,EAC5B,CAACC,EAAYC,CAAa,EAAIF,EAAM,SAA6B,EACjE,CAACG,EAAWC,CAAY,EAAIJ,EAAM,SAAS,CAAC,EAC5CK,EAAUL,EAAM,OAAyB,IAAI,EAC7CM,EAAe,IAErBN,EAAM,gBAAgB,IAAM,CACtBK,EAAQ,SACVD,EAAaC,EAAQ,QAAQ,WAAW,CAE5C,EAAG,CAAE,CAAA,EAELL,EAAM,UAAU,IAAM,CACpB,IAAIO,EAIJ,OAAIN,IAAe,KACjBM,EAAQ,WAAW,IAAMR,EAAU,IAAI,EAAGO,CAAY,GAGjD,IAAM,CACPC,IAAU,MACZ,aAAaA,CAAK,CAEtB,CACF,EAAG,CAACN,CAAU,CAAC,EAGf,MAAMO,EAAe,CAACC,EAA4BC,IAAsB,CACtE,GAAID,GAAWN,GAAaF,IAAeS,EAAW,CACpD,MAAMC,EAAaR,EAAY,EAEzBS,EACJT,EACAM,EAAQ,WACRA,EAAQ,YACRA,EAAQ,YAAc,EAExBV,EAAU,KAAK,MAAMY,EAAaC,CAAkB,CAAC,CACvD,CAEA,OAAOH,CACT,EAEA,OACET,EAAA,cAACa,EAAsB,SAAtB,CAA+B,MAAO,CAAE,aAAAL,CAAa,CACpDR,EAAAA,EAAA,cAACb,EAAA,CAAW,cAAee,EAAe,IAAKN,EAAM,GAAGC,CACtDG,EAAAA,EAAA,cAACV,EAAA,CAAW,IAAKe,CAAAA,EAAUV,CAAS,EACpCK,EAAA,cAACP,EAAA,KACCO,EAAA,cAACT,EAAA,CACC,IAAK,CACH,UAAW,cAAcO,GAAU,OACnC,uBAAwB,CACtB,UAAW,GAAGb,KAAiBqB,UACjC,EACA,yBAA0B,CACxB,UAAW,GAAGQ,KAAWR,cAC3B,CACF,CAAA,CACF,CACF,CACF,CACF,CAEJ,EAEAZ,EAAe,KAAOqB,EACtBrB,EAAe,SAAWsB,EAC1BtB,EAAe,gBAAkBuB,EACjCvB,EAAe,aAAewB,EAC9BxB,EAAe,kBAAoByB,EACnCzB,EAAe,gBAAkB0B,EAEjC1B,EAAe,YAAc"}
1
+ {"version":3,"file":"NavigationMenu.js","sources":["../../../src/components/navigation/NavigationMenu.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { MAX_Z_INDEX } from '~/constants/zIndices'\nimport { CSS, keyframes, styled } from '~/stitches'\nimport { fadeOut } from '~/utilities/style/keyframe-animations'\n\nimport { NavigationMenuContext } from './NavigationMenuContext'\nimport { NavigationMenuDropdown } from './NavigationMenuDropdown'\nimport { NavigationMenuDropdownContent } from './NavigationMenuDropdownContent'\nimport {\n NavigationMenuDropdownItem,\n NavigationMenuDropdownItemTitle\n} from './NavigationMenuDropdownItem'\nimport { NavigationMenuDropdownTrigger } from './NavigationMenuDropdownTrigger'\nimport { NavigationMenuLink } from './NavigationMenuLink'\nimport { colorSchemes as navigationMenuColorSchemes } from './stitches.navigationMenu.colorscheme.config'\n\ntype NavigationMenuSubComponents = {\n Link: typeof NavigationMenuLink\n Dropdown: typeof NavigationMenuDropdown\n DropdownContent: typeof NavigationMenuDropdownContent\n DropdownItem: typeof NavigationMenuDropdownItem\n DropdownItemTitle: typeof NavigationMenuDropdownItemTitle\n DropdownTrigger: typeof NavigationMenuDropdownTrigger\n}\n\nconst delayedFadeIn = keyframes({\n '0%, 50%': { opacity: 0 },\n '100%': { opacity: 1 }\n})\n\nconst StyledMenu = styled(NavigationMenuPrimitive.Root, {\n display: 'flex',\n justifyContent: 'center',\n position: 'relative'\n})\n\nconst StyledList = styled(NavigationMenuPrimitive.List, {\n all: 'unset',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n gap: '$1',\n listStyle: 'none'\n})\n\nconst StyledViewport = styled(NavigationMenuPrimitive.Viewport, {\n zIndex: MAX_Z_INDEX\n})\n\nconst ViewportPosition = styled('div', {\n position: 'absolute',\n left: 0,\n top: '100%',\n width: '100%',\n display: 'flex',\n justifyContent: 'center'\n})\n\ntype NavigationMenuProps = React.ComponentProps<typeof StyledMenu>\n\nexport const NavigationMenu: React.FC<NavigationMenuProps> &\n NavigationMenuSubComponents = ({ children, css, ...props }) => {\n const [offset, setOffset] = React.useState<number | null | undefined>()\n const [activeItem, setActiveItem] = React.useState<string | undefined>()\n const [listWidth, setListWidth] = React.useState(0)\n const listRef = React.useRef<HTMLUListElement>(null)\n const fadeDuration = 200\n\n React.useLayoutEffect(() => {\n if (listRef.current) {\n setListWidth(listRef.current.offsetWidth)\n }\n }, [])\n\n React.useEffect(() => {\n let timer: NodeJS.Timer\n\n // Delay transitioning back to initial position\n // to allow enough time for fadeOut animation to complete\n if (activeItem === '') {\n timer = setTimeout(() => setOffset(null), fadeDuration)\n }\n\n return () => {\n if (timer !== null) {\n clearTimeout(timer)\n }\n }\n }, [activeItem])\n\n // https://github.com/radix-ui/primitives/issues/1462\n const onNodeUpdate = (trigger: HTMLButtonElement, itemValue: string) => {\n if (trigger && listWidth && activeItem === itemValue) {\n const listCenter = listWidth / 2\n\n const triggerOffsetRight =\n listWidth -\n trigger.offsetLeft -\n trigger.offsetWidth +\n trigger.offsetWidth / 2\n\n setOffset(Math.round(listCenter - triggerOffsetRight))\n }\n\n return trigger\n }\n\n return (\n <NavigationMenuContext.Provider value={{ onNodeUpdate }}>\n <StyledMenu\n className={navigationMenuColorSchemes['light']}\n onValueChange={setActiveItem}\n css={css}\n {...props}\n >\n <StyledList ref={listRef}>{children}</StyledList>\n <ViewportPosition>\n <StyledViewport\n css={{\n transform: `translateX(${offset || 0}px)`,\n '&[data-state=\"open\"]': {\n animation: `${delayedFadeIn} ${fadeDuration}ms ease`\n },\n '&[data-state=\"closed\"]': {\n animation: `${fadeOut} ${fadeDuration}ms ease-out`\n }\n }}\n />\n </ViewportPosition>\n </StyledMenu>\n </NavigationMenuContext.Provider>\n )\n}\n\nNavigationMenu.Link = NavigationMenuLink\nNavigationMenu.Dropdown = NavigationMenuDropdown\nNavigationMenu.DropdownContent = NavigationMenuDropdownContent\nNavigationMenu.DropdownItem = NavigationMenuDropdownItem\nNavigationMenu.DropdownItemTitle = NavigationMenuDropdownItemTitle\nNavigationMenu.DropdownTrigger = NavigationMenuDropdownTrigger\n\nNavigationMenu.displayName = 'NavigationMenu'\n"],"names":["delayedFadeIn","keyframes","StyledMenu","styled","NavigationMenuPrimitive","StyledList","StyledViewport","MAX_Z_INDEX","ViewportPosition","NavigationMenu","children","css","props","offset","setOffset","React","activeItem","setActiveItem","listWidth","setListWidth","listRef","fadeDuration","timer","onNodeUpdate","trigger","itemValue","listCenter","triggerOffsetRight","NavigationMenuContext","navigationMenuColorSchemes","fadeOut","NavigationMenuLink","NavigationMenuDropdown","NavigationMenuDropdownContent","NavigationMenuDropdownItem","NavigationMenuDropdownItemTitle","NavigationMenuDropdownTrigger"],"mappings":"8yBA2BA,MAAMA,EAAgBC,EAAU,CAC9B,UAAW,CAAE,QAAS,CAAE,EACxB,OAAQ,CAAE,QAAS,CAAE,CACvB,CAAC,EAEKC,EAAaC,EAAOC,EAAwB,KAAM,CACtD,QAAS,OACT,eAAgB,SAChB,SAAU,UACZ,CAAC,EAEKC,EAAaF,EAAOC,EAAwB,KAAM,CACtD,IAAK,QACL,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,IAAK,KACL,UAAW,MACb,CAAC,EAEKE,EAAiBH,EAAOC,EAAwB,SAAU,CAC9D,OAAQG,CACV,CAAC,EAEKC,EAAmBL,EAAO,MAAO,CACrC,SAAU,WACV,KAAM,EACN,IAAK,OACL,MAAO,OACP,QAAS,OACT,eAAgB,QAClB,CAAC,EAIYM,EACmB,CAAC,CAAE,SAAAC,EAAU,IAAAC,KAAQC,CAAM,IAAM,CAC/D,KAAM,CAACC,EAAQC,CAAS,EAAIC,EAAM,WAC5B,CAACC,EAAYC,CAAa,EAAIF,EAAM,SACpC,EAAA,CAACG,EAAWC,CAAY,EAAIJ,EAAM,SAAS,CAAC,EAC5CK,EAAUL,EAAM,OAAyB,IAAI,EAC7CM,EAAe,IAErBN,EAAM,gBAAgB,IAAM,CACtBK,EAAQ,SACVD,EAAaC,EAAQ,QAAQ,WAAW,CAE5C,EAAG,CAAA,CAAE,EAELL,EAAM,UAAU,IAAM,CACpB,IAAIO,EAIJ,OAAIN,IAAe,KACjBM,EAAQ,WAAW,IAAMR,EAAU,IAAI,EAAGO,CAAY,GAGjD,IAAM,CACPC,IAAU,MACZ,aAAaA,CAAK,CAEtB,CACF,EAAG,CAACN,CAAU,CAAC,EAGf,MAAMO,EAAe,CAACC,EAA4BC,IAAsB,CACtE,GAAID,GAAWN,GAAaF,IAAeS,EAAW,CACpD,MAAMC,EAAaR,EAAY,EAEzBS,EACJT,EACAM,EAAQ,WACRA,EAAQ,YACRA,EAAQ,YAAc,EAExBV,EAAU,KAAK,MAAMY,EAAaC,CAAkB,CAAC,CACvD,CAEA,OAAOH,CACT,EAEA,OACET,EAAA,cAACa,EAAsB,SAAtB,CAA+B,MAAO,CAAE,aAAAL,CAAa,GACpDR,EAAA,cAACb,EAAA,CACC,UAAW2B,EAA2B,MACtC,cAAeZ,EACf,IAAKN,EACJ,GAAGC,CAAAA,EAEJG,EAAA,cAACV,EAAA,CAAW,IAAKe,CAAUV,EAAAA,CAAS,EACpCK,EAAA,cAACP,EAAA,KACCO,EAAA,cAACT,EAAA,CACC,IAAK,CACH,UAAW,cAAcO,GAAU,OACnC,uBAAwB,CACtB,UAAW,GAAGb,KAAiBqB,UACjC,EACA,yBAA0B,CACxB,UAAW,GAAGS,KAAWT,cAC3B,CACF,EACF,CACF,CACF,CACF,CAEJ,EAEAZ,EAAe,KAAOsB,EACtBtB,EAAe,SAAWuB,EAC1BvB,EAAe,gBAAkBwB,EACjCxB,EAAe,aAAeyB,EAC9BzB,EAAe,kBAAoB0B,EACnC1B,EAAe,gBAAkB2B,EAEjC3B,EAAe,YAAc"}
@@ -14,6 +14,7 @@ export declare const navigationMenuBaseItemStyles: {
14
14
  userSelect: string;
15
15
  padding: string;
16
16
  borderRadius: string;
17
+ background: string;
17
18
  '&:hover': {
18
19
  background: string;
19
20
  color: string;
@@ -1,2 +1,2 @@
1
- const o={background:"none",color:"$tonal400",opacity:"30%",cursor:"default"},t={all:"unset",position:"relative",color:"$tonal400",outline:"none",cursor:"pointer",fontFamily:"$body",userSelect:"none",padding:"$3",borderRadius:"$1","&:hover":{background:"$tonal50",color:"$tonal600"},"&:active":{background:"$tonal100",color:"$tonal600"},"&:focus-visible":{boxShadow:"inset 0 0 0 2px $colors$primary"},"&:disabled":{...o}},n={fontWeight:"600",color:"$tonal500","&::after":{backgroundColor:"$tonal500",borderRadius:"$1",bottom:0,content:"",display:"block",height:"2px",left:"50%",position:"absolute",transform:"translate(-50%,0)",width:"$2"}};export{n as navigationMenuActiveItemStyles,t as navigationMenuBaseItemStyles,o as navigationMenuDisabledItemStyles};
1
+ const o={background:"none",color:"$text",opacity:"30%",cursor:"default"},e={all:"unset",position:"relative",color:"$text",outline:"none",cursor:"pointer",fontFamily:"$body",userSelect:"none",padding:"$3",borderRadius:"$1",background:"$background","&:hover":{background:"$backgroundHover",color:"$textHover"},"&:active":{background:"$backgroundActive",color:"$textActive"},"&:focus-visible":{boxShadow:"inset 0 0 0 2px $colors$primary"},"&:disabled":{...o}},t={fontWeight:"600",color:"$itemTextSelected","&::after":{backgroundColor:"$itemBackgroundSelected",borderRadius:"$1",bottom:0,content:"",display:"block",height:"2px",left:"50%",position:"absolute",transform:"translate(-50%,0)",width:"$2"}};export{t as navigationMenuActiveItemStyles,e as navigationMenuBaseItemStyles,o as navigationMenuDisabledItemStyles};
2
2
  //# sourceMappingURL=NavigationMenu.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenu.styles.js","sources":["../../../src/components/navigation/NavigationMenu.styles.ts"],"sourcesContent":["export const navigationMenuDisabledItemStyles = {\n background: 'none',\n color: '$tonal400',\n opacity: '30%',\n cursor: 'default'\n}\n\nexport const navigationMenuBaseItemStyles = {\n all: 'unset',\n position: 'relative',\n color: '$tonal400',\n outline: 'none',\n cursor: 'pointer',\n fontFamily: '$body',\n userSelect: 'none',\n padding: '$3',\n borderRadius: '$1',\n '&:hover': { background: '$tonal50', color: '$tonal600' },\n '&:active': { background: '$tonal100', color: '$tonal600' },\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$primary'\n },\n '&:disabled': {\n ...navigationMenuDisabledItemStyles\n }\n}\n\nexport const navigationMenuActiveItemStyles = {\n fontWeight: '600',\n color: '$tonal500',\n '&::after': {\n backgroundColor: '$tonal500',\n borderRadius: '$1',\n bottom: 0,\n content: '',\n display: 'block',\n height: '2px',\n left: '50%',\n position: 'absolute',\n transform: 'translate(-50%,0)',\n width: '$2'\n }\n}\n"],"names":["navigationMenuDisabledItemStyles","navigationMenuBaseItemStyles","navigationMenuActiveItemStyles"],"mappings":"AAAO,MAAMA,EAAmC,CAC9C,WAAY,OACZ,MAAO,YACP,QAAS,MACT,OAAQ,SACV,EAEaC,EAA+B,CAC1C,IAAK,QACL,SAAU,WACV,MAAO,YACP,QAAS,OACT,OAAQ,UACR,WAAY,QACZ,WAAY,OACZ,QAAS,KACT,aAAc,KACd,UAAW,CAAE,WAAY,WAAY,MAAO,WAAY,EACxD,WAAY,CAAE,WAAY,YAAa,MAAO,WAAY,EAC1D,kBAAmB,CACjB,UAAW,iCACb,EACA,aAAc,CACZ,GAAGD,CACL,CACF,EAEaE,EAAiC,CAC5C,WAAY,MACZ,MAAO,YACP,WAAY,CACV,gBAAiB,YACjB,aAAc,KACd,OAAQ,EACR,QAAS,GACT,QAAS,QACT,OAAQ,MACR,KAAM,MACN,SAAU,WACV,UAAW,oBACX,MAAO,IACT,CACF"}
1
+ {"version":3,"file":"NavigationMenu.styles.js","sources":["../../../src/components/navigation/NavigationMenu.styles.ts"],"sourcesContent":["export const navigationMenuDisabledItemStyles = {\n background: 'none',\n color: '$text',\n opacity: '30%',\n cursor: 'default'\n}\n\nexport const navigationMenuBaseItemStyles = {\n all: 'unset',\n position: 'relative',\n color: '$text',\n outline: 'none',\n cursor: 'pointer',\n fontFamily: '$body',\n userSelect: 'none',\n padding: '$3',\n borderRadius: '$1',\n background: '$background',\n '&:hover': { background: '$backgroundHover', color: '$textHover' },\n '&:active': {\n background: '$backgroundActive',\n color: '$textActive'\n },\n '&:focus-visible': {\n boxShadow: 'inset 0 0 0 2px $colors$primary'\n },\n '&:disabled': {\n ...navigationMenuDisabledItemStyles\n }\n}\n\nexport const navigationMenuActiveItemStyles = {\n fontWeight: '600',\n color: '$itemTextSelected',\n '&::after': {\n backgroundColor: '$itemBackgroundSelected',\n borderRadius: '$1',\n bottom: 0,\n content: '',\n display: 'block',\n height: '2px',\n left: '50%',\n position: 'absolute',\n transform: 'translate(-50%,0)',\n width: '$2'\n }\n}\n"],"names":["navigationMenuDisabledItemStyles","navigationMenuBaseItemStyles","navigationMenuActiveItemStyles"],"mappings":"AAAO,MAAMA,EAAmC,CAC9C,WAAY,OACZ,MAAO,QACP,QAAS,MACT,OAAQ,SACV,EAEaC,EAA+B,CAC1C,IAAK,QACL,SAAU,WACV,MAAO,QACP,QAAS,OACT,OAAQ,UACR,WAAY,QACZ,WAAY,OACZ,QAAS,KACT,aAAc,KACd,WAAY,cACZ,UAAW,CAAE,WAAY,mBAAoB,MAAO,YAAa,EACjE,WAAY,CACV,WAAY,oBACZ,MAAO,aACT,EACA,kBAAmB,CACjB,UAAW,iCACb,EACA,aAAc,CACZ,GAAGD,CACL,CACF,EAEaE,EAAiC,CAC5C,WAAY,MACZ,MAAO,oBACP,WAAY,CACV,gBAAiB,0BACjB,aAAc,KACd,OAAQ,EACR,QAAS,GACT,QAAS,QACT,OAAQ,MACR,KAAM,MACN,SAAU,WACV,UAAW,oBACX,MAAO,IACT,CACF"}
@@ -1,2 +1,324 @@
1
+ import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
1
2
  import React from 'react';
2
- export declare const NavigationMenuDropdownContent: React.FC;
3
+ declare const StyledContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>, {}, {
4
+ sm: string;
5
+ md: string;
6
+ lg: string;
7
+ xl: string;
8
+ reducedMotion: string;
9
+ allowMotion: string;
10
+ hover: string;
11
+ }, import("@stitches/react/types/css-util").CSS<{
12
+ sm: string;
13
+ md: string;
14
+ lg: string;
15
+ xl: string;
16
+ reducedMotion: string;
17
+ allowMotion: string;
18
+ hover: string;
19
+ }, {
20
+ colors: {
21
+ textForeground: any;
22
+ textSubtle: any;
23
+ textPlaceholder: any;
24
+ background: any;
25
+ backgroundAccent: any;
26
+ grey100: any;
27
+ grey200: any;
28
+ grey300: any;
29
+ grey400: any;
30
+ grey500: any;
31
+ grey600: any;
32
+ grey700: any;
33
+ grey800: any;
34
+ grey900: any;
35
+ grey1000: any;
36
+ grey1100: any;
37
+ grey1200: any;
38
+ blue100: any;
39
+ blue200: any;
40
+ blue300: any;
41
+ blue400: any;
42
+ blue500: any;
43
+ blue600: any;
44
+ blue700: any;
45
+ blue800: any;
46
+ blue900: any;
47
+ blue1000: any;
48
+ blue1100: any;
49
+ blue1200: any;
50
+ purple100: any;
51
+ purple200: any;
52
+ purple300: any;
53
+ purple400: any;
54
+ purple500: any;
55
+ purple600: any;
56
+ purple700: any;
57
+ purple800: any;
58
+ purple900: any;
59
+ purple1000: any;
60
+ purple1100: any;
61
+ purple1200: any;
62
+ cyan100: any;
63
+ cyan200: any;
64
+ cyan300: any;
65
+ cyan400: any;
66
+ cyan500: any;
67
+ cyan600: any;
68
+ cyan700: any;
69
+ cyan800: any;
70
+ cyan900: any;
71
+ cyan1000: any;
72
+ cyan1100: any;
73
+ cyan1200: any;
74
+ green100: any;
75
+ green200: any;
76
+ green300: any;
77
+ green400: any;
78
+ green500: any;
79
+ green600: any;
80
+ green700: any;
81
+ green800: any;
82
+ green900: any;
83
+ green1000: any;
84
+ green1100: any;
85
+ green1200: any;
86
+ magenta100: any;
87
+ magenta200: any;
88
+ magenta300: any;
89
+ magenta400: any;
90
+ magenta500: any;
91
+ magenta600: any;
92
+ magenta700: any;
93
+ magenta800: any;
94
+ magenta900: any;
95
+ magenta1000: any;
96
+ magenta1100: any;
97
+ magenta1200: any;
98
+ red100: any;
99
+ red200: any;
100
+ red300: any;
101
+ red400: any;
102
+ red500: any;
103
+ red600: any;
104
+ red700: any;
105
+ red800: any;
106
+ red900: any;
107
+ red1000: any;
108
+ red1100: any;
109
+ red1200: any;
110
+ teal100: any;
111
+ teal200: any;
112
+ teal300: any;
113
+ teal400: any;
114
+ teal500: any;
115
+ teal600: any;
116
+ teal700: any;
117
+ teal800: any;
118
+ teal900: any;
119
+ teal1000: any;
120
+ teal1100: any;
121
+ teal1200: any;
122
+ orange100: any;
123
+ orange200: any;
124
+ orange300: any;
125
+ orange400: any;
126
+ orange500: any;
127
+ orange600: any;
128
+ orange700: any;
129
+ orange800: any;
130
+ orange900: any;
131
+ orange1000: any;
132
+ orange1100: any;
133
+ orange1200: any;
134
+ yellow100: any;
135
+ yellow200: any;
136
+ yellow300: any;
137
+ yellow400: any;
138
+ yellow500: any;
139
+ yellow600: any;
140
+ yellow700: any;
141
+ yellow800: any;
142
+ yellow900: any;
143
+ yellow1000: any;
144
+ yellow1100: any;
145
+ yellow1200: any;
146
+ lime100: any;
147
+ lime200: any;
148
+ lime300: any;
149
+ lime400: any;
150
+ lime500: any;
151
+ lime600: any;
152
+ lime700: any;
153
+ lime800: any;
154
+ lime900: any;
155
+ lime1000: any;
156
+ lime1100: any;
157
+ lime1200: any;
158
+ tonal50: any;
159
+ tonal100: any;
160
+ tonal200: any;
161
+ tonal300: any;
162
+ tonal400: any;
163
+ tonal500: any;
164
+ tonal600: any;
165
+ alpha100: any;
166
+ alpha150: any;
167
+ alpha200: any;
168
+ alpha250: any;
169
+ alpha600: any;
170
+ primaryLight: any;
171
+ primary: any;
172
+ primaryMid: any;
173
+ primaryDark: any;
174
+ secondary: any;
175
+ brandRed: any;
176
+ brandRedAccent: any;
177
+ brandGreen: any;
178
+ brandGreenAccent: any;
179
+ brandPurple: any;
180
+ brandPurpleAccent: any;
181
+ brandYellow: any;
182
+ brandYellowAccent: any;
183
+ successLight: any;
184
+ success: any;
185
+ successMid: any;
186
+ successDark: any;
187
+ dangerLight: any;
188
+ danger: any;
189
+ dangerMid: any;
190
+ dangerDark: any;
191
+ warningLight: any;
192
+ warning: any;
193
+ warningMid: any;
194
+ warningDark: any;
195
+ warningText: any;
196
+ subjectEnglish: any;
197
+ subjectMaths: any;
198
+ subjectScience: any;
199
+ subjectVerbalReasoning: any;
200
+ subjectNonVerbalReasoning: any;
201
+ subjectCreativeWriting: any;
202
+ subjectExamSkills: any;
203
+ glBlueLight: any;
204
+ glBluePrimary: any;
205
+ glBlueDark: any;
206
+ };
207
+ space: {
208
+ "0": any;
209
+ "1": any;
210
+ "2": any;
211
+ "3": any;
212
+ "4": any;
213
+ "5": any;
214
+ "6": any;
215
+ "7": any;
216
+ "8": any;
217
+ "9": any;
218
+ "24": any;
219
+ };
220
+ fontSizes: {
221
+ xs: any;
222
+ sm: any;
223
+ md: any;
224
+ lg: any;
225
+ xl: any;
226
+ "2xl": any;
227
+ "3xl": any;
228
+ "4xl": any;
229
+ };
230
+ fonts: {
231
+ sans: any;
232
+ mono: any;
233
+ display: any;
234
+ body: any;
235
+ };
236
+ sizes: {
237
+ "0": any;
238
+ "1": any;
239
+ "2": any;
240
+ "3": any;
241
+ "4": any;
242
+ "5": any;
243
+ "6": any;
244
+ "7": any;
245
+ "8": any;
246
+ };
247
+ radii: {
248
+ "0": any;
249
+ "1": any;
250
+ "2": any;
251
+ "3": any;
252
+ round: any;
253
+ };
254
+ shadows: {
255
+ "0": any;
256
+ "1": any;
257
+ "2": any;
258
+ "3": any;
259
+ };
260
+ ratios: {
261
+ "16-9": any;
262
+ "3-2": any;
263
+ "4-3": any;
264
+ "1-1": any;
265
+ "3-4": any;
266
+ };
267
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
268
+ bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
269
+ background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
270
+ };
271
+ size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
272
+ height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
273
+ width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
274
+ };
275
+ p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
276
+ padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
277
+ };
278
+ pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
279
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
280
+ };
281
+ pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
282
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
283
+ };
284
+ pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
285
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
286
+ };
287
+ pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
288
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
289
+ };
290
+ px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
291
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
292
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
293
+ };
294
+ py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
295
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
296
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
297
+ };
298
+ m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
299
+ margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
300
+ };
301
+ mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
302
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
303
+ };
304
+ mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
305
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
306
+ };
307
+ mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
308
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
309
+ };
310
+ ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
311
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
312
+ };
313
+ mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
314
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
315
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
316
+ };
317
+ my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
318
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
319
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
320
+ };
321
+ }>>;
322
+ declare type NavigationMenuDropdownContentProps = React.ComponentProps<typeof StyledContent>;
323
+ export declare const NavigationMenuDropdownContent: React.FC<NavigationMenuDropdownContentProps>;
324
+ export {};
@@ -1,2 +1,2 @@
1
- import*as i from"@radix-ui/react-navigation-menu";import e from"react";import{styled as o}from"../../stitches.js";import{preventEvent as t}from"../../utilities/event/preventEvent.js";const a=o("ul",{listStyle:"none",m:0,p:0}),m=o(i.Content,{p:"$3",bg:"white",mt:"4px",boxShadow:"$1",borderRadius:"$1"}),n=({children:r})=>e.createElement(m,{onPointerMove:t,onPointerLeave:t},e.createElement(a,null,r));n.displayName="NavigationMenuDropdownContent";export{n as NavigationMenuDropdownContent};
1
+ import*as i from"@radix-ui/react-navigation-menu";import o from"react";import{styled as e}from"../../stitches.js";import{preventEvent as n}from"../../utilities/event/preventEvent.js";const p=e("ul",{listStyle:"none",m:0,p:0}),m=e(i.Content,{p:"$3",bg:"$dropdownBackground",mt:"4px",boxShadow:"$1",borderRadius:"$1"}),t=({children:r,...a})=>o.createElement(m,{onPointerMove:n,onPointerLeave:n,...a},o.createElement(p,null,r));t.displayName="NavigationMenuDropdownContent";export{t as NavigationMenuDropdownContent};
2
2
  //# sourceMappingURL=NavigationMenuDropdownContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenuDropdownContent.js","sources":["../../../src/components/navigation/NavigationMenuDropdownContent.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\nimport { preventEvent } from '~/utilities/event'\n\nconst StyledList = styled('ul', {\n listStyle: 'none',\n m: 0,\n p: 0\n})\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, {\n p: '$3',\n bg: 'white',\n mt: '4px',\n boxShadow: '$1',\n borderRadius: '$1'\n})\n\nexport const NavigationMenuDropdownContent: React.FC = ({ children }) => (\n <StyledContent onPointerMove={preventEvent} onPointerLeave={preventEvent}>\n <StyledList>{children}</StyledList>\n </StyledContent>\n)\n\nNavigationMenuDropdownContent.displayName = 'NavigationMenuDropdownContent'\n"],"names":["StyledList","styled","StyledContent","NavigationMenuPrimitive","NavigationMenuDropdownContent","children","React","preventEvent"],"mappings":"uLAMA,MAAMA,EAAaC,EAAO,KAAM,CAC9B,UAAW,OACX,EAAG,EACH,EAAG,CACL,CAAC,EAEKC,EAAgBD,EAAOE,EAAwB,QAAS,CAC5D,EAAG,KACH,GAAI,QACJ,GAAI,MACJ,UAAW,KACX,aAAc,IAChB,CAAC,EAEYC,EAA0C,CAAC,CAAE,SAAAC,CAAS,IACjEC,EAAA,cAACJ,EAAA,CAAc,cAAeK,EAAc,eAAgBA,CAC1DD,EAAAA,EAAA,cAACN,EAAA,KAAYK,CAAS,CACxB,EAGFD,EAA8B,YAAc"}
1
+ {"version":3,"file":"NavigationMenuDropdownContent.js","sources":["../../../src/components/navigation/NavigationMenuDropdownContent.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\nimport { preventEvent } from '~/utilities/event'\n\nconst StyledList = styled('ul', {\n listStyle: 'none',\n m: 0,\n p: 0\n})\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, {\n p: '$3',\n bg: '$dropdownBackground',\n mt: '4px',\n boxShadow: '$1',\n borderRadius: '$1'\n})\n\ntype NavigationMenuDropdownContentProps = React.ComponentProps<\n typeof StyledContent\n>\n\nexport const NavigationMenuDropdownContent: React.FC<\n NavigationMenuDropdownContentProps\n> = ({ children, ...rest }) => (\n <StyledContent\n onPointerMove={preventEvent}\n onPointerLeave={preventEvent}\n {...rest}\n >\n <StyledList>{children}</StyledList>\n </StyledContent>\n)\n\nNavigationMenuDropdownContent.displayName = 'NavigationMenuDropdownContent'\n"],"names":["StyledList","styled","StyledContent","NavigationMenuPrimitive","NavigationMenuDropdownContent","children","rest","React","preventEvent"],"mappings":"uLAMA,MAAMA,EAAaC,EAAO,KAAM,CAC9B,UAAW,OACX,EAAG,EACH,EAAG,CACL,CAAC,EAEKC,EAAgBD,EAAOE,EAAwB,QAAS,CAC5D,EAAG,KACH,GAAI,sBACJ,GAAI,MACJ,UAAW,KACX,aAAc,IAChB,CAAC,EAMYC,EAET,CAAC,CAAE,SAAAC,KAAaC,CAAK,IACvBC,EAAA,cAACL,EAAA,CACC,cAAeM,EACf,eAAgBA,EACf,GAAGF,CAAAA,EAEJC,EAAA,cAACP,EAAA,KAAYK,CAAS,CACxB,EAGFD,EAA8B,YAAc"}
@@ -1,2 +1,2 @@
1
- import{ChevronDown as s}from"@atom-learning/icons";import*as m from"@radix-ui/react-navigation-menu";import e from"react";import{styled as f}from"../../stitches.js";import{Icon as p}from"../icon/Icon.js";import{navigationMenuBaseItemStyles as d,navigationMenuActiveItemStyles as c}from"./NavigationMenu.styles.js";import{preventEvent as t}from"../../utilities/event/preventEvent.js";const v=f(m.Trigger,d,{display:"flex",alignItems:"center",borderRadius:"$1",justifyContent:"space-between",'&[data-state="open"]':{background:"$tonal100"},variants:{active:{true:{...c}}}}),r=e.forwardRef(({children:o,active:n,...a},i)=>e.createElement(v,{active:n,...a,ref:i,onPointerMove:t,onPointerLeave:t},o,e.createElement(p,{is:s,css:{ml:"$1","[data-state=open] &":{transform:"rotate(-180deg)"},"@media (prefers-reduced-motion: no-preference)":{transition:"transform .2s ease"}},size:"sm"})));r.displayName="NavigationMenuDropdownTrigger";export{r as NavigationMenuDropdownTrigger};
1
+ import{ChevronDown as s}from"@atom-learning/icons";import*as m from"@radix-ui/react-navigation-menu";import e from"react";import{styled as p}from"../../stitches.js";import{Icon as d}from"../icon/Icon.js";import{navigationMenuBaseItemStyles as f,navigationMenuActiveItemStyles as c}from"./NavigationMenu.styles.js";import{preventEvent as t}from"../../utilities/event/preventEvent.js";const g=p(m.Trigger,f,{display:"flex",alignItems:"center",borderRadius:"$1",justifyContent:"space-between",'&[data-state="open"]':{background:"$triggerBackgroundOpen"},variants:{active:{true:{...c}}}}),r=e.forwardRef(({children:o,active:n,...a},i)=>e.createElement(g,{active:n,...a,ref:i,onPointerMove:t,onPointerLeave:t},o,e.createElement(d,{is:s,css:{ml:"$1","[data-state=open] &":{transform:"rotate(-180deg)"},"@media (prefers-reduced-motion: no-preference)":{transition:"transform .2s ease"}},size:"sm"})));r.displayName="NavigationMenuDropdownTrigger";export{r as NavigationMenuDropdownTrigger};
2
2
  //# sourceMappingURL=NavigationMenuDropdownTrigger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenuDropdownTrigger.js","sources":["../../../src/components/navigation/NavigationMenuDropdownTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\nimport { preventEvent } from '~/utilities/event'\n\nimport { Icon } from '../icon'\nimport {\n navigationMenuActiveItemStyles,\n navigationMenuBaseItemStyles\n} from './NavigationMenu.styles'\n\nconst StyledTrigger = styled(\n NavigationMenuPrimitive.Trigger,\n navigationMenuBaseItemStyles,\n {\n display: 'flex',\n alignItems: 'center',\n borderRadius: '$1',\n justifyContent: 'space-between',\n '&[data-state=\"open\"]': {\n background: '$tonal100'\n },\n variants: {\n active: { true: { ...navigationMenuActiveItemStyles } }\n }\n }\n)\n\nexport const NavigationMenuDropdownTrigger = React.forwardRef<\n HTMLButtonElement,\n React.PropsWithChildren<{ active?: boolean }>\n>(({ children, active, ...props }, forwardedRef) => (\n <StyledTrigger\n active={active}\n {...props}\n ref={forwardedRef}\n onPointerMove={preventEvent}\n onPointerLeave={preventEvent}\n >\n {children}\n <Icon\n is={ChevronDown}\n css={{\n ml: '$1',\n '[data-state=open] &': { transform: 'rotate(-180deg)' },\n '@media (prefers-reduced-motion: no-preference)': {\n transition: 'transform .2s ease'\n }\n }}\n size=\"sm\"\n />\n </StyledTrigger>\n))\n\nNavigationMenuDropdownTrigger.displayName = 'NavigationMenuDropdownTrigger'\n"],"names":["StyledTrigger","styled","NavigationMenuPrimitive","navigationMenuBaseItemStyles","navigationMenuActiveItemStyles","NavigationMenuDropdownTrigger","React","children","active","props","forwardedRef","preventEvent","Icon","ChevronDown"],"mappings":"+XAaA,MAAMA,EAAgBC,EACpBC,EAAwB,QACxBC,EACA,CACE,QAAS,OACT,WAAY,SACZ,aAAc,KACd,eAAgB,gBAChB,uBAAwB,CACtB,WAAY,WACd,EACA,SAAU,CACR,OAAQ,CAAE,KAAM,CAAE,GAAGC,CAA+B,CAAE,CACxD,CACF,CACF,EAEaC,EAAgCC,EAAM,WAGjD,CAAC,CAAE,SAAAC,EAAU,OAAAC,KAAWC,CAAM,EAAGC,IACjCJ,EAAA,cAACN,EAAA,CACC,OAAQQ,EACP,GAAGC,EACJ,IAAKC,EACL,cAAeC,EACf,eAAgBA,CAAAA,EAEfJ,EACDD,EAAA,cAACM,EAAA,CACC,GAAIC,EACJ,IAAK,CACH,GAAI,KACJ,sBAAuB,CAAE,UAAW,iBAAkB,EACtD,iDAAkD,CAChD,WAAY,oBACd,CACF,EACA,KAAK,IAAA,CACP,CACF,CACD,EAEDR,EAA8B,YAAc"}
1
+ {"version":3,"file":"NavigationMenuDropdownTrigger.js","sources":["../../../src/components/navigation/NavigationMenuDropdownTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\nimport { preventEvent } from '~/utilities/event'\n\nimport { Icon } from '../icon'\nimport {\n navigationMenuActiveItemStyles,\n navigationMenuBaseItemStyles\n} from './NavigationMenu.styles'\n\nconst StyledTrigger = styled(\n NavigationMenuPrimitive.Trigger,\n navigationMenuBaseItemStyles,\n {\n display: 'flex',\n alignItems: 'center',\n borderRadius: '$1',\n justifyContent: 'space-between',\n '&[data-state=\"open\"]': {\n background: '$triggerBackgroundOpen'\n },\n variants: {\n active: { true: { ...navigationMenuActiveItemStyles } }\n }\n }\n)\n\nexport const NavigationMenuDropdownTrigger = React.forwardRef<\n HTMLButtonElement,\n React.PropsWithChildren<{ active?: boolean }>\n>(({ children, active, ...props }, forwardedRef) => (\n <StyledTrigger\n active={active}\n {...props}\n ref={forwardedRef}\n onPointerMove={preventEvent}\n onPointerLeave={preventEvent}\n >\n {children}\n <Icon\n is={ChevronDown}\n css={{\n ml: '$1',\n '[data-state=open] &': { transform: 'rotate(-180deg)' },\n '@media (prefers-reduced-motion: no-preference)': {\n transition: 'transform .2s ease'\n }\n }}\n size=\"sm\"\n />\n </StyledTrigger>\n))\n\nNavigationMenuDropdownTrigger.displayName = 'NavigationMenuDropdownTrigger'\n"],"names":["StyledTrigger","styled","NavigationMenuPrimitive","navigationMenuBaseItemStyles","navigationMenuActiveItemStyles","NavigationMenuDropdownTrigger","React","children","active","props","forwardedRef","preventEvent","Icon","ChevronDown"],"mappings":"+XAaA,MAAMA,EAAgBC,EACpBC,EAAwB,QACxBC,EACA,CACE,QAAS,OACT,WAAY,SACZ,aAAc,KACd,eAAgB,gBAChB,uBAAwB,CACtB,WAAY,wBACd,EACA,SAAU,CACR,OAAQ,CAAE,KAAM,CAAE,GAAGC,CAA+B,CAAE,CACxD,CACF,CACF,EAEaC,EAAgCC,EAAM,WAGjD,CAAC,CAAE,SAAAC,EAAU,OAAAC,KAAWC,CAAM,EAAGC,IACjCJ,EAAA,cAACN,EAAA,CACC,OAAQQ,EACP,GAAGC,EACJ,IAAKC,EACL,cAAeC,EACf,eAAgBA,CAAAA,EAEfJ,EACDD,EAAA,cAACM,EAAA,CACC,GAAIC,EACJ,IAAK,CACH,GAAI,KACJ,sBAAuB,CAAE,UAAW,iBAAkB,EACtD,iDAAkD,CAChD,WAAY,oBACd,CACF,EACA,KAAK,IAAA,CACP,CACF,CACD,EAEDR,EAA8B,YAAc"}
@@ -1,2 +1,2 @@
1
- import*as r from"@radix-ui/react-navigation-menu";import e from"react";import{styled as t}from"../../stitches.js";import{getExternalAnchorProps as p}from"../../utilities/uri/index.js";import{navigationMenuBaseItemStyles as n,navigationMenuDisabledItemStyles as u,navigationMenuActiveItemStyles as v}from"./NavigationMenu.styles.js";const y=t("button",{...n,...u}),f=t(r.Item),g=t(r.Link,n,{display:"block",textDecoration:"none",lineHeight:1,variants:{elementType:{dropdownItem:{"&[data-active]":{background:"$primaryLight",color:"$primary","*":{color:"$primary"},"&:hover":{background:"$tonal50"},"&:active":{background:"$tonal100"},"&:focus-visible":{boxShadow:"0 0 0 2px $colors$primary"}}},link:{"&[data-active]":{...v}}}}}),l=e.forwardRef(({children:a,href:i,disabled:m,css:s,variant:c="link",...o},d)=>e.createElement(f,null,m?e.createElement(y,{disabled:!0,...o},a):e.createElement(g,{href:i,ref:d,elementType:c,css:s,...p(i),...o},a)));l.displayName="NavigationMenuLink";export{l as NavigationMenuLink};
1
+ import*as n from"@radix-ui/react-navigation-menu";import e from"react";import{styled as t}from"../../stitches.js";import{getExternalAnchorProps as u}from"../../utilities/uri/index.js";import{navigationMenuBaseItemStyles as i,navigationMenuDisabledItemStyles as v,navigationMenuActiveItemStyles as b}from"./NavigationMenu.styles.js";const g=t("button",{...i,...v}),p=t(n.Item),k=t(n.Link,i,{display:"block",textDecoration:"none",lineHeight:1,variants:{elementType:{dropdownItem:{"&[data-active]":{background:"$backgroundSelected",color:"$textSelected","&:hover":{background:"$backgroundSelectedHover",color:"$textSelectedHover"},"&:active":{background:"$backgroundSelectedPressed",color:"$textSelectedPressed"},"&:focus-visible":{boxShadow:"0 0 0 2px $colors$primary",color:"$textSelectedFocus"}}},link:{"&[data-active]":{...b}}}}}),l=e.forwardRef(({children:o,href:r,disabled:c,css:d,variant:s="link",...a},m)=>e.createElement(p,null,c?e.createElement(g,{disabled:!0,...a},o):e.createElement(k,{href:r,ref:m,elementType:s,css:d,...u(r),...a},o)));l.displayName="NavigationMenuLink";export{l as NavigationMenuLink};
2
2
  //# sourceMappingURL=NavigationMenuLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenuLink.js","sources":["../../../src/components/navigation/NavigationMenuLink.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport { getExternalAnchorProps } from '~/utilities/uri'\n\nimport {\n navigationMenuActiveItemStyles,\n navigationMenuBaseItemStyles,\n navigationMenuDisabledItemStyles\n} from './NavigationMenu.styles'\n\nconst DisabledButton = styled('button', {\n ...navigationMenuBaseItemStyles,\n ...navigationMenuDisabledItemStyles\n})\n\nconst ListItem = styled(NavigationMenuPrimitive.Item)\n\nconst StyledLink = styled(\n NavigationMenuPrimitive.Link,\n navigationMenuBaseItemStyles,\n {\n display: 'block',\n textDecoration: 'none',\n lineHeight: 1,\n variants: {\n elementType: {\n dropdownItem: {\n '&[data-active]': {\n background: '$primaryLight',\n color: '$primary',\n '*': { color: '$primary' },\n '&:hover': { background: '$tonal50' },\n '&:active': { background: '$tonal100' },\n '&:focus-visible': {\n boxShadow: '0 0 0 2px $colors$primary'\n }\n }\n },\n link: {\n '&[data-active]': { ...navigationMenuActiveItemStyles }\n }\n }\n }\n }\n)\n\ntype NavigationMenuLinkProps = {\n href: string\n active?: boolean\n disabled?: boolean\n variant?: 'link' | 'dropdownItem'\n css?: CSS\n}\n\nexport const NavigationMenuLink = React.forwardRef<\n HTMLAnchorElement,\n React.PropsWithChildren<NavigationMenuLinkProps>\n>(\n (\n { children, href, disabled, css, variant = 'link', ...props },\n forwardedRef\n ) => (\n <ListItem>\n {disabled ? (\n <DisabledButton disabled {...props}>\n {children}\n </DisabledButton>\n ) : (\n <StyledLink\n href={href}\n ref={forwardedRef}\n elementType={variant}\n css={css}\n {...getExternalAnchorProps(href)}\n {...props}\n >\n {children}\n </StyledLink>\n )}\n </ListItem>\n )\n)\n\nNavigationMenuLink.displayName = 'NavigationMenuLink'\n"],"names":["DisabledButton","styled","navigationMenuBaseItemStyles","navigationMenuDisabledItemStyles","ListItem","NavigationMenuPrimitive","StyledLink","navigationMenuActiveItemStyles","NavigationMenuLink","React","children","href","disabled","css","variant","props","forwardedRef","getExternalAnchorProps"],"mappings":"4UAYA,MAAMA,EAAiBC,EAAO,SAAU,CACtC,GAAGC,EACH,GAAGC,CACL,CAAC,EAEKC,EAAWH,EAAOI,EAAwB,IAAI,EAE9CC,EAAaL,EACjBI,EAAwB,KACxBH,EACA,CACE,QAAS,QACT,eAAgB,OAChB,WAAY,EACZ,SAAU,CACR,YAAa,CACX,aAAc,CACZ,iBAAkB,CAChB,WAAY,gBACZ,MAAO,WACP,IAAK,CAAE,MAAO,UAAW,EACzB,UAAW,CAAE,WAAY,UAAW,EACpC,WAAY,CAAE,WAAY,WAAY,EACtC,kBAAmB,CACjB,UAAW,2BACb,CACF,CACF,EACA,KAAM,CACJ,iBAAkB,CAAE,GAAGK,CAA+B,CACxD,CACF,CACF,CACF,CACF,EAUaC,EAAqBC,EAAM,WAItC,CACE,CAAE,SAAAC,EAAU,KAAAC,EAAM,SAAAC,EAAU,IAAAC,EAAK,QAAAC,EAAU,UAAWC,CAAM,EAC5DC,IAEAP,EAAA,cAACL,EAAA,KACEQ,EACCH,EAAA,cAACT,EAAA,CAAe,SAAQ,GAAE,GAAGe,GAC1BL,CACH,EAEAD,EAAA,cAACH,EAAA,CACC,KAAMK,EACN,IAAKK,EACL,YAAaF,EACb,IAAKD,EACJ,GAAGI,EAAuBN,CAAI,EAC9B,GAAGI,GAEHL,CACH,CAEJ,CAEJ,EAEAF,EAAmB,YAAc"}
1
+ {"version":3,"file":"NavigationMenuLink.js","sources":["../../../src/components/navigation/NavigationMenuLink.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { CSS, styled } from '~/stitches'\nimport { getExternalAnchorProps } from '~/utilities/uri'\n\nimport {\n navigationMenuActiveItemStyles,\n navigationMenuBaseItemStyles,\n navigationMenuDisabledItemStyles\n} from './NavigationMenu.styles'\n\nconst DisabledButton = styled('button', {\n ...navigationMenuBaseItemStyles,\n ...navigationMenuDisabledItemStyles\n})\n\nconst ListItem = styled(NavigationMenuPrimitive.Item)\n\nconst StyledLink = styled(\n NavigationMenuPrimitive.Link,\n navigationMenuBaseItemStyles,\n {\n display: 'block',\n textDecoration: 'none',\n lineHeight: 1,\n variants: {\n elementType: {\n dropdownItem: {\n '&[data-active]': {\n background: '$backgroundSelected',\n color: '$textSelected',\n '&:hover': {\n background: '$backgroundSelectedHover',\n color: '$textSelectedHover'\n },\n '&:active': {\n background: '$backgroundSelectedPressed',\n color: '$textSelectedPressed'\n },\n '&:focus-visible': {\n boxShadow: '0 0 0 2px $colors$primary',\n color: '$textSelectedFocus'\n }\n }\n },\n link: {\n '&[data-active]': { ...navigationMenuActiveItemStyles }\n }\n }\n }\n }\n)\n\ntype NavigationMenuLinkProps = {\n href: string\n active?: boolean\n disabled?: boolean\n variant?: 'link' | 'dropdownItem'\n css?: CSS\n}\n\nexport const NavigationMenuLink = React.forwardRef<\n HTMLAnchorElement,\n React.PropsWithChildren<NavigationMenuLinkProps>\n>(\n (\n { children, href, disabled, css, variant = 'link', ...props },\n forwardedRef\n ) => (\n <ListItem>\n {disabled ? (\n <DisabledButton disabled {...props}>\n {children}\n </DisabledButton>\n ) : (\n <StyledLink\n href={href}\n ref={forwardedRef}\n elementType={variant}\n css={css}\n {...getExternalAnchorProps(href)}\n {...props}\n >\n {children}\n </StyledLink>\n )}\n </ListItem>\n )\n)\n\nNavigationMenuLink.displayName = 'NavigationMenuLink'\n"],"names":["DisabledButton","styled","navigationMenuBaseItemStyles","navigationMenuDisabledItemStyles","ListItem","NavigationMenuPrimitive","StyledLink","navigationMenuActiveItemStyles","NavigationMenuLink","React","children","href","disabled","css","variant","props","forwardedRef","getExternalAnchorProps"],"mappings":"4UAYA,MAAMA,EAAiBC,EAAO,SAAU,CACtC,GAAGC,EACH,GAAGC,CACL,CAAC,EAEKC,EAAWH,EAAOI,EAAwB,IAAI,EAE9CC,EAAaL,EACjBI,EAAwB,KACxBH,EACA,CACE,QAAS,QACT,eAAgB,OAChB,WAAY,EACZ,SAAU,CACR,YAAa,CACX,aAAc,CACZ,iBAAkB,CAChB,WAAY,sBACZ,MAAO,gBACP,UAAW,CACT,WAAY,2BACZ,MAAO,oBACT,EACA,WAAY,CACV,WAAY,6BACZ,MAAO,sBACT,EACA,kBAAmB,CACjB,UAAW,4BACX,MAAO,oBACT,CACF,CACF,EACA,KAAM,CACJ,iBAAkB,CAAE,GAAGK,CAA+B,CACxD,CACF,CACF,CACF,CACF,EAUaC,EAAqBC,EAAM,WAItC,CACE,CAAE,SAAAC,EAAU,KAAAC,EAAM,SAAAC,EAAU,IAAAC,EAAK,QAAAC,EAAU,UAAWC,CAAM,EAC5DC,IAEAP,EAAA,cAACL,EAAA,KACEQ,EACCH,EAAA,cAACT,EAAA,CAAe,SAAQ,GAAE,GAAGe,GAC1BL,CACH,EAEAD,EAAA,cAACH,EAAA,CACC,KAAMK,EACN,IAAKK,EACL,YAAaF,EACb,IAAKD,EACJ,GAAGI,EAAuBN,CAAI,EAC9B,GAAGI,GAEHL,CACH,CAEJ,CAEJ,EAEAF,EAAmB,YAAc"}
@@ -0,0 +1,26 @@
1
+ export declare const colorSchemes: {
2
+ light: string & {
3
+ className: string;
4
+ selector: string;
5
+ } & import("@stitches/react/types/stitches").ThemeTokens<{
6
+ colors: {
7
+ text: string;
8
+ background: string;
9
+ backgroundHover: string;
10
+ textHover: string;
11
+ backgroundActive: string;
12
+ textActive: string;
13
+ backgroundSelected: string;
14
+ textSelected: string;
15
+ textSelectedHover: string;
16
+ textSelectedPressed: string;
17
+ textSelectedFocus: string;
18
+ backgroundSelectedHover: string;
19
+ backgroundSelectedPressed: string;
20
+ itemTextSelected: string;
21
+ itemBackgroundSelected: string;
22
+ triggerBackgroundOpen: string;
23
+ dropdownBackground: string;
24
+ };
25
+ }, "">;
26
+ };
@@ -0,0 +1,2 @@
1
+ import{createTheme as e}from"../../stitches.js";const t=e({colors:{text:"$textSubtle",background:"white",backgroundHover:"$grey100",textHover:"$textForeground",backgroundActive:"$grey200",textActive:"$grey1000",backgroundSelected:"$blue100",textSelected:"$blue800",textSelectedHover:"$blue800",textSelectedPressed:"$blue800",textSelectedFocus:"$blue800",backgroundSelectedHover:"$grey100",backgroundSelectedPressed:"$grey200",itemTextSelected:"$grey900",itemBackgroundSelected:"$grey900",triggerBackgroundOpen:"$grey200",dropdownBackground:"white"}}),r={light:t};export{r as colorSchemes};
2
+ //# sourceMappingURL=stitches.navigationMenu.colorscheme.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stitches.navigationMenu.colorscheme.config.js","sources":["../../../src/components/navigation/stitches.navigationMenu.colorscheme.config.ts"],"sourcesContent":["import { createTheme } from '~/stitches'\n\nconst light = createTheme({\n colors: {\n text: '$textSubtle',\n background: 'white',\n backgroundHover: '$grey100',\n textHover: '$textForeground',\n backgroundActive: '$grey200',\n textActive: '$grey1000',\n backgroundSelected: '$blue100',\n textSelected: '$blue800',\n textSelectedHover: '$blue800',\n textSelectedPressed: '$blue800',\n textSelectedFocus: '$blue800',\n backgroundSelectedHover: '$grey100',\n backgroundSelectedPressed: '$grey200',\n itemTextSelected: '$grey900',\n itemBackgroundSelected: '$grey900',\n triggerBackgroundOpen: '$grey200',\n dropdownBackground: 'white'\n }\n})\n\nexport const colorSchemes = {\n light\n}\n"],"names":["light","createTheme","colorSchemes"],"mappings":"gDAEA,MAAMA,EAAQC,EAAY,CACxB,OAAQ,CACN,KAAM,cACN,WAAY,QACZ,gBAAiB,WACjB,UAAW,kBACX,iBAAkB,WAClB,WAAY,YACZ,mBAAoB,WACpB,aAAc,WACd,kBAAmB,WACnB,oBAAqB,WACrB,kBAAmB,WACnB,wBAAyB,WACzB,0BAA2B,WAC3B,iBAAkB,WAClB,uBAAwB,WACxB,sBAAuB,WACvB,mBAAoB,OACtB,CACF,CAAC,EAEYC,EAAe,CAC1B,MAAAF,CACF"}
@@ -1,2 +1,2 @@
1
- import{Root as e}from"@radix-ui/react-navigation-menu";import o from"react";import{styled as n}from"../../stitches.js";import{NavigationMenuVerticalAccordion as a}from"./NavigationMenuVerticalAccordion.js";import{NavigationMenuVerticalAccordionContent as c}from"./NavigationMenuVerticalAccordionContent.js";import{NavigationMenuVerticalAccordionTrigger as m}from"./NavigationMenuVerticalAccordionTrigger.js";import{NavigationMenuVerticalIcon as l}from"./NavigationMenuVerticalIcon.js";import{NavigationMenuVerticalItem as g}from"./NavigationMenuVerticalItem.js";import{NavigationMenuVerticalItemContent as f}from"./NavigationMenuVerticalItemContent.js";import{NavigationMenuVerticalLink as p}from"./NavigationMenuVerticalLink.js";import{NavigationMenuVerticalList as u}from"./NavigationMenuVerticalList.js";import{NavigationMenuVerticalText as v}from"./NavigationMenuVerticalText.js";const V=n(e,{width:"100%"}),t=({children:i,...r})=>o.createElement(V,{...r,orientation:"vertical"},o.createElement(u,null,i));t.Link=p,t.Accordion=a,t.AccordionContent=c,t.AccordionTrigger=m,t.Item=g,t.ItemContent=f,t.Icon=l,t.Text=v;export{t as NavigationMenuVertical};
1
+ import{Root as e}from"@radix-ui/react-navigation-menu";import t from"react";import{styled as n}from"../../stitches.js";import{colorSchemes as a}from"./stitches.navigationMenuVertical.colorscheme.config.js";import{NavigationMenuVerticalAccordion as m}from"./NavigationMenuVerticalAccordion.js";import{NavigationMenuVerticalAccordionContent as c}from"./NavigationMenuVerticalAccordionContent.js";import{NavigationMenuVerticalAccordionTrigger as l}from"./NavigationMenuVerticalAccordionTrigger.js";import{NavigationMenuVerticalIcon as g}from"./NavigationMenuVerticalIcon.js";import{NavigationMenuVerticalItem as f}from"./NavigationMenuVerticalItem.js";import{NavigationMenuVerticalItemContent as p}from"./NavigationMenuVerticalItemContent.js";import{NavigationMenuVerticalLink as u}from"./NavigationMenuVerticalLink.js";import{NavigationMenuVerticalList as N}from"./NavigationMenuVerticalList.js";import{NavigationMenuVerticalText as v}from"./NavigationMenuVerticalText.js";const d=n(e,{width:"100%"}),o=({children:i,...r})=>t.createElement(d,{className:a.light,...r,orientation:"vertical"},t.createElement(N,null,i));o.Link=u,o.Accordion=m,o.AccordionContent=c,o.AccordionTrigger=l,o.Item=f,o.ItemContent=p,o.Icon=g,o.Text=v;export{o as NavigationMenuVertical};
2
2
  //# sourceMappingURL=NavigationMenuVertical.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationMenuVertical.js","sources":["../../../src/components/navigation-menu-vertical/NavigationMenuVertical.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { NavigationMenuVerticalAccordion } from './NavigationMenuVerticalAccordion'\nimport { NavigationMenuVerticalAccordionContent } from './NavigationMenuVerticalAccordionContent'\nimport { NavigationMenuVerticalAccordionTrigger } from './NavigationMenuVerticalAccordionTrigger'\nimport { NavigationMenuVerticalIcon } from './NavigationMenuVerticalIcon'\nimport { NavigationMenuVerticalItem } from './NavigationMenuVerticalItem'\nimport { NavigationMenuVerticalItemContent } from './NavigationMenuVerticalItemContent'\nimport { NavigationMenuVerticalLink } from './NavigationMenuVerticalLink'\nimport { NavigationMenuVerticalList } from './NavigationMenuVerticalList'\nimport { NavigationMenuVerticalText } from './NavigationMenuVerticalText'\n\nconst StyledRoot = styled(Root, {\n width: '100%'\n})\n\n/*\n * (!)\n * NavigationMenu vertical behaviour was buggy so had to build the\n * opening/closing nested Content(Accordion) based on `Collapsible` instead.\n * This means that the below `value` based props and `Trigger`/`Content`\n * animations do nothing, so removing them from typescript\n */\ntype TNavigationVerticalProps = Omit<\n React.ComponentProps<typeof StyledRoot>,\n | 'delayDuration'\n | 'skipDelayDuration'\n | 'defaultValue'\n | 'value'\n | 'onValueChange'\n>\n\ntype TNavigationVerticalType = React.FC<TNavigationVerticalProps> & {\n Link: typeof NavigationMenuVerticalLink\n Accordion: typeof NavigationMenuVerticalAccordion\n AccordionContent: typeof NavigationMenuVerticalAccordionContent\n AccordionTrigger: typeof NavigationMenuVerticalAccordionTrigger\n Item: typeof NavigationMenuVerticalItem\n ItemContent: typeof NavigationMenuVerticalItemContent\n Icon: typeof NavigationMenuVerticalIcon\n Text: typeof NavigationMenuVerticalText\n}\n\nexport const NavigationMenuVertical = (({ children, ...rest }) => {\n return (\n <StyledRoot {...rest} orientation=\"vertical\">\n <NavigationMenuVerticalList>{children}</NavigationMenuVerticalList>\n </StyledRoot>\n )\n}) as TNavigationVerticalType\n\nNavigationMenuVertical.Link = NavigationMenuVerticalLink\nNavigationMenuVertical.Accordion = NavigationMenuVerticalAccordion\nNavigationMenuVertical.AccordionContent = NavigationMenuVerticalAccordionContent\nNavigationMenuVertical.AccordionTrigger = NavigationMenuVerticalAccordionTrigger\nNavigationMenuVertical.Item = NavigationMenuVerticalItem\nNavigationMenuVertical.ItemContent = NavigationMenuVerticalItemContent\nNavigationMenuVertical.Icon = NavigationMenuVerticalIcon\nNavigationMenuVertical.Text = NavigationMenuVerticalText\n"],"names":["StyledRoot","styled","Root","NavigationMenuVertical","children","rest","React","NavigationMenuVerticalList","NavigationMenuVerticalLink","NavigationMenuVerticalAccordion","NavigationMenuVerticalAccordionContent","NavigationMenuVerticalAccordionTrigger","NavigationMenuVerticalItem","NavigationMenuVerticalItemContent","NavigationMenuVerticalIcon","NavigationMenuVerticalText"],"mappings":"o3BAeA,MAAMA,EAAaC,EAAOC,EAAM,CAC9B,MAAO,MACT,CAAC,EA6BYC,EAA0B,CAAC,CAAE,SAAAC,KAAaC,CAAK,IAExDC,EAAA,cAACN,EAAA,CAAY,GAAGK,EAAM,YAAY,UAChCC,EAAAA,EAAA,cAACC,EAAA,KAA4BH,CAAS,CACxC,EAIJD,EAAuB,KAAOK,EAC9BL,EAAuB,UAAYM,EACnCN,EAAuB,iBAAmBO,EAC1CP,EAAuB,iBAAmBQ,EAC1CR,EAAuB,KAAOS,EAC9BT,EAAuB,YAAcU,EACrCV,EAAuB,KAAOW,EAC9BX,EAAuB,KAAOY"}
1
+ {"version":3,"file":"NavigationMenuVertical.js","sources":["../../../src/components/navigation-menu-vertical/NavigationMenuVertical.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\nimport { colorSchemes as navigationMenuVerticalColorSchemes } from './stitches.navigationMenuVertical.colorscheme.config'\n\nimport { NavigationMenuVerticalAccordion } from './NavigationMenuVerticalAccordion'\nimport { NavigationMenuVerticalAccordionContent } from './NavigationMenuVerticalAccordionContent'\nimport { NavigationMenuVerticalAccordionTrigger } from './NavigationMenuVerticalAccordionTrigger'\nimport { NavigationMenuVerticalIcon } from './NavigationMenuVerticalIcon'\nimport { NavigationMenuVerticalItem } from './NavigationMenuVerticalItem'\nimport { NavigationMenuVerticalItemContent } from './NavigationMenuVerticalItemContent'\nimport { NavigationMenuVerticalLink } from './NavigationMenuVerticalLink'\nimport { NavigationMenuVerticalList } from './NavigationMenuVerticalList'\nimport { NavigationMenuVerticalText } from './NavigationMenuVerticalText'\n\nconst StyledRoot = styled(Root, {\n width: '100%'\n})\n\n/*\n * (!)\n * NavigationMenu vertical behaviour was buggy so had to build the\n * opening/closing nested Content(Accordion) based on `Collapsible` instead.\n * This means that the below `value` based props and `Trigger`/`Content`\n * animations do nothing, so removing them from typescript\n */\ntype TNavigationVerticalProps = Omit<\n React.ComponentProps<typeof StyledRoot>,\n | 'delayDuration'\n | 'skipDelayDuration'\n | 'defaultValue'\n | 'value'\n | 'onValueChange'\n>\n\ntype TNavigationVerticalType = React.FC<TNavigationVerticalProps> & {\n Link: typeof NavigationMenuVerticalLink\n Accordion: typeof NavigationMenuVerticalAccordion\n AccordionContent: typeof NavigationMenuVerticalAccordionContent\n AccordionTrigger: typeof NavigationMenuVerticalAccordionTrigger\n Item: typeof NavigationMenuVerticalItem\n ItemContent: typeof NavigationMenuVerticalItemContent\n Icon: typeof NavigationMenuVerticalIcon\n Text: typeof NavigationMenuVerticalText\n}\n\nexport const NavigationMenuVertical = (({ children, ...rest }) => {\n return (\n <StyledRoot\n className={navigationMenuVerticalColorSchemes['light']}\n {...rest}\n orientation=\"vertical\"\n >\n <NavigationMenuVerticalList>{children}</NavigationMenuVerticalList>\n </StyledRoot>\n )\n}) as TNavigationVerticalType\n\nNavigationMenuVertical.Link = NavigationMenuVerticalLink\nNavigationMenuVertical.Accordion = NavigationMenuVerticalAccordion\nNavigationMenuVertical.AccordionContent = NavigationMenuVerticalAccordionContent\nNavigationMenuVertical.AccordionTrigger = NavigationMenuVerticalAccordionTrigger\nNavigationMenuVertical.Item = NavigationMenuVerticalItem\nNavigationMenuVertical.ItemContent = NavigationMenuVerticalItemContent\nNavigationMenuVertical.Icon = NavigationMenuVerticalIcon\nNavigationMenuVertical.Text = NavigationMenuVerticalText\n"],"names":["StyledRoot","styled","Root","NavigationMenuVertical","children","rest","React","navigationMenuVerticalColorSchemes","NavigationMenuVerticalList","NavigationMenuVerticalLink","NavigationMenuVerticalAccordion","NavigationMenuVerticalAccordionContent","NavigationMenuVerticalAccordionTrigger","NavigationMenuVerticalItem","NavigationMenuVerticalItemContent","NavigationMenuVerticalIcon","NavigationMenuVerticalText"],"mappings":"28BAgBA,MAAMA,EAAaC,EAAOC,EAAM,CAC9B,MAAO,MACT,CAAC,EA6BYC,EAA0B,CAAC,CAAE,SAAAC,KAAaC,CAAK,IAExDC,EAAA,cAACN,EAAA,CACC,UAAWO,EAAmC,MAC7C,GAAGF,EACJ,YAAY,UAEZC,EAAAA,EAAA,cAACE,EAAA,KAA4BJ,CAAS,CACxC,EAIJD,EAAuB,KAAOM,EAC9BN,EAAuB,UAAYO,EACnCP,EAAuB,iBAAmBQ,EAC1CR,EAAuB,iBAAmBS,EAC1CT,EAAuB,KAAOU,EAC9BV,EAAuB,YAAcW,EACrCX,EAAuB,KAAOY,EAC9BZ,EAAuB,KAAOa"}
@@ -6,9 +6,11 @@ export declare const navigationMenuVerticalItemStyles: {
6
6
  p: string;
7
7
  pl: string;
8
8
  width: string;
9
+ color: string;
10
+ bg: string;
9
11
  '--navigation-menu-vertical-item-font-weight': number;
10
12
  '&[data-active]': {
11
- background: string;
13
+ bg: string;
12
14
  color: string;
13
15
  '--navigation-menu-vertical-item-font-weight': number;
14
16
  };
@@ -21,10 +23,10 @@ export declare const navigationMenuVerticalItemStyles: {
21
23
  };
22
24
  '&:not([data-disabled])': {
23
25
  '&:hover': {
24
- background: string;
26
+ bg: string;
25
27
  };
26
28
  '&:active': {
27
- background: string;
29
+ bg: string;
28
30
  };
29
31
  '&:focus-visible': {
30
32
  outline: "none";
@@ -44,7 +46,6 @@ export declare const navigationMenuVerticalItemStyles: {
44
46
  };
45
47
  };
46
48
  textDecoration: string;
47
- color: string;
48
49
  border: string;
49
50
  outline: string;
50
51
  font: string;
@@ -1,2 +1,2 @@
1
- import"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{focusVisibleStyleBlock as t}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{resetButtonStyles as e,resetLinkStyles as i}from"../../utilities/style/reset.js";const a={...e,...i,cursor:"pointer",borderRadius:"$2",display:"flex",alignItems:"center",p:"$2",pl:"var(--navigation-menu-vertical-item-pl)",width:"100%","--navigation-menu-vertical-item-font-weight":400,"&[data-active]":{background:"$accent2",color:"$accent9","--navigation-menu-vertical-item-font-weight":600},"&[data-state=open]":{"--navigation-menu-vertical-item-font-weight":600},"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:hover":{background:"$base2"},"&:active":{background:"$base3"},"&:focus-visible":t()},variants:{size:{md:{minHeight:"$4"},lg:{minHeight:"$5"}}}};export{a as navigationMenuVerticalItemStyles};
1
+ import"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{focusVisibleStyleBlock as t}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{resetButtonStyles as e,resetLinkStyles as i}from"../../utilities/style/reset.js";const o={...e,...i,cursor:"pointer",borderRadius:"$2",display:"flex",alignItems:"center",p:"$2",pl:"var(--navigation-menu-vertical-item-pl)",width:"100%",color:"$text",bg:"$background","--navigation-menu-vertical-item-font-weight":400,"&[data-active]":{bg:"$backgroundSelected",color:"$textSelected","--navigation-menu-vertical-item-font-weight":600},"&[data-state=open]":{"--navigation-menu-vertical-item-font-weight":600},"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:hover":{bg:"$backgroundHover"},"&:active":{bg:"$backgroundActive"},"&:focus-visible":t()},variants:{size:{md:{minHeight:"$4"},lg:{minHeight:"$5"}}}};export{o as navigationMenuVerticalItemStyles};
2
2
  //# sourceMappingURL=NavigationMenuVertical.styles.js.map