@atom-learning/components 2.70.0 → 3.0.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 (131) hide show
  1. package/CHANGELOG.md +16 -5
  2. package/dist/components/dialog/DialogContent.js +1 -1
  3. package/dist/components/dialog/DialogContent.js.map +1 -1
  4. package/dist/components/drawer/Drawer.context.d.ts +8 -0
  5. package/dist/components/drawer/Drawer.context.js +2 -0
  6. package/dist/components/drawer/Drawer.context.js.map +1 -0
  7. package/dist/components/drawer/Drawer.d.ts +1953 -0
  8. package/dist/components/drawer/Drawer.js +2 -0
  9. package/dist/components/drawer/Drawer.js.map +1 -0
  10. package/dist/components/drawer/Drawer.styles.d.ts +5 -0
  11. package/dist/components/drawer/Drawer.styles.js +2 -0
  12. package/dist/components/drawer/Drawer.styles.js.map +1 -0
  13. package/dist/components/drawer/DrawerClose.d.ts +3 -0
  14. package/dist/components/drawer/DrawerClose.js +2 -0
  15. package/dist/components/drawer/DrawerClose.js.map +1 -0
  16. package/dist/components/{sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts → drawer/DrawerContent.d.ts} +4 -4
  17. package/dist/components/drawer/DrawerContent.js +2 -0
  18. package/dist/components/drawer/DrawerContent.js.map +1 -0
  19. package/dist/components/{sidedrawer/SidedrawerFooter.d.ts → drawer/DrawerFooter.d.ts} +1 -1
  20. package/dist/components/drawer/DrawerFooter.js +2 -0
  21. package/dist/components/drawer/DrawerFooter.js.map +1 -0
  22. package/dist/components/{sidedrawer/SidedrawerHeader.d.ts → drawer/DrawerHeader.d.ts} +1 -4
  23. package/dist/components/drawer/DrawerHeader.js +2 -0
  24. package/dist/components/drawer/DrawerHeader.js.map +1 -0
  25. package/dist/components/drawer/DrawerMain.d.ts +319 -0
  26. package/dist/components/drawer/DrawerMain.js +2 -0
  27. package/dist/components/drawer/DrawerMain.js.map +1 -0
  28. package/dist/components/{sidedrawer/SidedrawerOverlay.d.ts → drawer/DrawerOverlay.d.ts} +1 -1
  29. package/dist/components/drawer/DrawerOverlay.js +2 -0
  30. package/dist/components/drawer/DrawerOverlay.js.map +1 -0
  31. package/dist/components/{sidedrawer/SidedrawerTrigger.d.ts → drawer/DrawerTrigger.d.ts} +1 -1
  32. package/dist/components/drawer/DrawerTrigger.js +2 -0
  33. package/dist/components/drawer/DrawerTrigger.js.map +1 -0
  34. package/dist/components/drawer/index.d.ts +1 -0
  35. package/dist/components/index.d.ts +2 -1
  36. package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
  37. package/dist/components/navigation/NavigationMenuDropdownContent.js.map +1 -1
  38. package/dist/components/navigation/NavigationMenuDropdownTrigger.js +1 -1
  39. package/dist/components/navigation/NavigationMenuDropdownTrigger.js.map +1 -1
  40. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +341 -0
  41. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.js +2 -0
  42. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.js.map +1 -0
  43. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.d.ts +53 -0
  44. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js +2 -0
  45. package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js.map +1 -0
  46. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordion.d.ts +11 -0
  47. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordion.js +2 -0
  48. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordion.js.map +1 -0
  49. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.d.ts +324 -0
  50. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.js +2 -0
  51. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.js.map +1 -0
  52. package/dist/components/{sidedrawer/SidedrawerContent.d.ts → navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts} +5 -2
  53. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.js +2 -0
  54. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.js.map +1 -0
  55. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +649 -0
  56. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.js +2 -0
  57. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.js.map +1 -0
  58. package/dist/components/{sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts → navigation-menu-vertical/NavigationMenuVerticalItem.d.ts} +5 -2
  59. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.js +2 -0
  60. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.js.map +1 -0
  61. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.d.ts +5 -0
  62. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.js +2 -0
  63. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.js.map +1 -0
  64. package/dist/components/{sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts → navigation-menu-vertical/NavigationMenuVerticalLink.d.ts} +5 -2
  65. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js +2 -0
  66. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js.map +1 -0
  67. package/dist/components/{sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts → navigation-menu-vertical/NavigationMenuVerticalList.d.ts} +1 -1
  68. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.js +2 -0
  69. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.js.map +1 -0
  70. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +650 -0
  71. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js +2 -0
  72. package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js.map +1 -0
  73. package/dist/components/navigation-menu-vertical/index.d.ts +1 -0
  74. package/dist/components/pagination/PaginationPopover.js +1 -1
  75. package/dist/components/pagination/PaginationPopover.js.map +1 -1
  76. package/dist/docgen.json +1 -1
  77. package/dist/index.cjs.js +1 -1
  78. package/dist/index.cjs.js.map +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/utilities/event/index.d.ts +1 -0
  81. package/dist/utilities/event/preventEvent.d.ts +1 -0
  82. package/dist/utilities/event/preventEvent.js +2 -0
  83. package/dist/utilities/event/preventEvent.js.map +1 -0
  84. package/dist/utilities/style/backdrop-overlay.d.ts +14 -0
  85. package/dist/utilities/style/backdrop-overlay.js +2 -0
  86. package/dist/utilities/style/backdrop-overlay.js.map +1 -0
  87. package/dist/utilities/style/keyframe-animations.d.ts +13 -7
  88. package/dist/utilities/style/keyframe-animations.js +1 -1
  89. package/dist/utilities/style/keyframe-animations.js.map +1 -1
  90. package/dist/utilities/style/reset.d.ts +13 -0
  91. package/dist/utilities/style/reset.js +2 -0
  92. package/dist/utilities/style/reset.js.map +1 -0
  93. package/package.json +3 -2
  94. package/dist/components/navigation/preventHover.d.ts +0 -1
  95. package/dist/components/navigation/preventHover.js +0 -2
  96. package/dist/components/navigation/preventHover.js.map +0 -1
  97. package/dist/components/sidedrawer/Sidedrawer.d.ts +0 -24
  98. package/dist/components/sidedrawer/Sidedrawer.js +0 -2
  99. package/dist/components/sidedrawer/Sidedrawer.js.map +0 -1
  100. package/dist/components/sidedrawer/Sidedrawer.styles.d.ts +0 -44
  101. package/dist/components/sidedrawer/Sidedrawer.styles.js +0 -2
  102. package/dist/components/sidedrawer/Sidedrawer.styles.js.map +0 -1
  103. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +0 -2
  104. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js.map +0 -1
  105. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.js +0 -2
  106. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.js.map +0 -1
  107. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.js +0 -2
  108. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.js.map +0 -1
  109. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js +0 -2
  110. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js.map +0 -1
  111. package/dist/components/sidedrawer/SidedrawerAccordion/index.d.ts +0 -4
  112. package/dist/components/sidedrawer/SidedrawerBody.d.ts +0 -2
  113. package/dist/components/sidedrawer/SidedrawerBody.js +0 -2
  114. package/dist/components/sidedrawer/SidedrawerBody.js.map +0 -1
  115. package/dist/components/sidedrawer/SidedrawerClose.d.ts +0 -3
  116. package/dist/components/sidedrawer/SidedrawerClose.js +0 -2
  117. package/dist/components/sidedrawer/SidedrawerClose.js.map +0 -1
  118. package/dist/components/sidedrawer/SidedrawerContent.js +0 -2
  119. package/dist/components/sidedrawer/SidedrawerContent.js.map +0 -1
  120. package/dist/components/sidedrawer/SidedrawerFooter.js +0 -2
  121. package/dist/components/sidedrawer/SidedrawerFooter.js.map +0 -1
  122. package/dist/components/sidedrawer/SidedrawerHeader.js +0 -2
  123. package/dist/components/sidedrawer/SidedrawerHeader.js.map +0 -1
  124. package/dist/components/sidedrawer/SidedrawerItem.d.ts +0 -9
  125. package/dist/components/sidedrawer/SidedrawerItem.js +0 -2
  126. package/dist/components/sidedrawer/SidedrawerItem.js.map +0 -1
  127. package/dist/components/sidedrawer/SidedrawerOverlay.js +0 -2
  128. package/dist/components/sidedrawer/SidedrawerOverlay.js.map +0 -1
  129. package/dist/components/sidedrawer/SidedrawerTrigger.js +0 -2
  130. package/dist/components/sidedrawer/SidedrawerTrigger.js.map +0 -1
  131. package/dist/components/sidedrawer/index.d.ts +0 -1
@@ -0,0 +1,2 @@
1
+ import{Root as i}from"@radix-ui/react-dialog";import o from"react";import{DrawerProvider as a}from"./Drawer.context.js";import{DrawerClose as n}from"./DrawerClose.js";import{DrawerContent as p}from"./DrawerContent.js";import{DrawerFooter as f}from"./DrawerFooter.js";import{DrawerHeader as w}from"./DrawerHeader.js";import{DrawerMain as D}from"./DrawerMain.js";import{DrawerTrigger as l}from"./DrawerTrigger.js";const r=({children:e,position:t,...m})=>o.createElement(a,{position:t},o.createElement(i,{...m},e));r.Close=n,r.Content=p,r.Main=D,r.Header=w,r.Footer=f,r.Trigger=l;export{r as Drawer};
2
+ //# sourceMappingURL=Drawer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.js","sources":["../../../src/components/drawer/Drawer.tsx"],"sourcesContent":["import { Root } from '@radix-ui/react-dialog'\nimport React from 'react'\n\nimport { DrawerProvider } from './Drawer.context'\nimport { DrawerClose } from './DrawerClose'\nimport { DrawerContent } from './DrawerContent'\nimport { DrawerFooter } from './DrawerFooter'\nimport { DrawerHeader } from './DrawerHeader'\nimport { DrawerMain } from './DrawerMain'\nimport { DrawerTrigger } from './DrawerTrigger'\n\ntype TDrawerProps = React.ComponentProps<typeof Root> &\n React.ComponentProps<typeof DrawerProvider>\n\nexport const Drawer = ({\n children,\n position,\n ...rest\n}: TDrawerProps): JSX.Element => {\n return (\n <DrawerProvider position={position}>\n <Root {...rest}>{children}</Root>\n </DrawerProvider>\n )\n}\n\nDrawer.Close = DrawerClose\nDrawer.Content = DrawerContent\nDrawer.Main = DrawerMain\nDrawer.Header = DrawerHeader\nDrawer.Footer = DrawerFooter\nDrawer.Trigger = DrawerTrigger\n"],"names":["Drawer","children","position","rest","React","DrawerProvider","Root","DrawerClose","DrawerContent","DrawerMain","DrawerHeader","DrawerFooter","DrawerTrigger"],"mappings":"kaAcaA,EAAS,CAAC,CACrB,SAAAC,EACA,SAAAC,KACGC,CACL,IAEIC,EAAA,cAACC,EAAA,CAAe,SAAUH,GACxBE,EAAA,cAACE,EAAA,CAAM,GAAGH,CAAOF,EAAAA,CAAS,CAC5B,EAIJD,EAAO,MAAQO,EACfP,EAAO,QAAUQ,EACjBR,EAAO,KAAOS,EACdT,EAAO,OAASU,EAChBV,EAAO,OAASW,EAChBX,EAAO,QAAUY"}
@@ -0,0 +1,5 @@
1
+ export declare const drawerSection: {
2
+ py: string;
3
+ px: string;
4
+ width: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ const t={py:"$4",px:"$2",width:"100%"};export{t as drawerSection};
2
+ //# sourceMappingURL=Drawer.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.styles.js","sources":["../../../src/components/drawer/Drawer.styles.ts"],"sourcesContent":["export const drawerSection = {\n py: '$4',\n px: '$2',\n width: '100%'\n}\n"],"names":["drawerSection"],"mappings":"AAAO,MAAMA,EAAgB,CAC3B,GAAI,KACJ,GAAI,KACJ,MAAO,MACT"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ActionIcon } from '../action-icon/ActionIcon';
3
+ export declare const DrawerClose: React.FC<React.ComponentProps<typeof ActionIcon>>;
@@ -0,0 +1,2 @@
1
+ import{Close as r}from"@atom-learning/icons";import{Close as t}from"@radix-ui/react-dialog";import e from"react";import{ActionIcon as m}from"../action-icon/ActionIcon.js";import{Icon as a}from"../icon/Icon.js";const l=o=>e.createElement(t,{asChild:!0},e.createElement(m,{theme:"neutral",appearance:"simple",size:"md",hasTooltip:!1,...o},e.createElement(a,{is:r})));export{l as DrawerClose};
2
+ //# sourceMappingURL=DrawerClose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerClose.js","sources":["../../../src/components/drawer/DrawerClose.tsx"],"sourcesContent":["import { Close } from '@atom-learning/icons'\nimport { Close as DialogClose } from '@radix-ui/react-dialog'\nimport React from 'react'\n\nimport { ActionIcon } from '../action-icon/ActionIcon'\nimport { Icon } from '../icon/Icon'\n\nexport const DrawerClose: React.FC<React.ComponentProps<typeof ActionIcon>> = (\n props\n) => (\n <DialogClose asChild>\n <ActionIcon\n theme=\"neutral\"\n appearance=\"simple\"\n size=\"md\"\n hasTooltip={false}\n {...props}\n >\n <Icon is={Close} />\n </ActionIcon>\n </DialogClose>\n)\n"],"names":["DrawerClose","props","React","DialogClose","ActionIcon","Icon","Close"],"mappings":"kNAOa,MAAAA,EACXC,GAEAC,EAAA,cAACC,EAAA,CAAY,QAAO,EAAA,EAClBD,EAAA,cAACE,EAAA,CACC,MAAM,UACN,WAAW,SACX,KAAK,KACL,WAAY,GACX,GAAGH,GAEJC,EAAA,cAACG,EAAA,CAAK,GAAIC,CAAO,CAAA,CACnB,CACF"}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- declare const StyledTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>, {
3
- active?: boolean | "true" | undefined;
2
+ export declare const StyledContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>>, {
3
+ position?: "bottom" | "left" | "right" | "top" | undefined;
4
+ size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
4
5
  }, {
5
6
  sm: string;
6
7
  md: string;
@@ -320,5 +321,4 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
320
321
  marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
321
322
  };
322
323
  }>>;
323
- export declare const SidedrawerAccordionTrigger: React.FC<React.ComponentProps<typeof StyledTrigger>>;
324
- export {};
324
+ export declare const DrawerContent: React.FC<React.ComponentProps<typeof StyledContent>>;
@@ -0,0 +1,2 @@
1
+ import{Content as d,Portal as s}from"@radix-ui/react-dialog";import t from"react";import{Flex as p}from"../flex/Flex.js";import{DIALOG_Z_INDEX as c}from"../../constants/zIndices.js";import{ColorScheme as x}from"../../experiments/color-scheme/ColorScheme.js";import{styled as h}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{slideInOut as e}from"../../utilities/style/keyframe-animations.js";import{DrawerContext as w}from"./Drawer.context.js";import{DrawerOverlay as u}from"./DrawerOverlay.js";const f=e({outPosition:{x:0,y:"-100%"}}),g=e({outPosition:{x:"100%",y:0}}),y=e({outPosition:{x:0,y:"100%"}}),C=e({outPosition:{x:"-100%",y:0}}),i=o=>({'&[data-state="open"]':{animationName:o.in},'&[data-state="closed"]':{animationName:o.out}}),n={left:0,width:"100%",maxHeight:"85%"},r={top:0,height:"100%",width:"var(--drawer-content-width, 100%)",maxWidth:"100%"},a=h(d,{bg:"$base1",boxShadow:"$2",position:"fixed",zIndex:c,"@allowMotion":{animationTimingFunction:"ease-out",animationDuration:"250ms"},variants:{position:{top:{top:0,...n,...i(f)},right:{right:0,...r,...i(g)},bottom:{bottom:0,...n,...i(y)},left:{left:0,...r,...i(C)}},size:{xs:{"--drawer-content-width":"240px"},sm:{"--drawer-content-width":"256px"},md:{"--drawer-content-width":"288px"},lg:{"--drawer-content-width":"304px"},xl:{"--drawer-content-width":"320px"}}}}),b=({children:o,...m})=>{const{position:l}=t.useContext(w);return t.createElement(s,null,t.createElement(u,null),t.createElement(x,{base:"grey1",accent:"blue1",asChild:!0},t.createElement(a,{size:"lg",position:l,...m,asChild:!0},t.createElement(p,{direction:"column"},o))))};export{b as DrawerContent,a as StyledContent};
2
+ //# sourceMappingURL=DrawerContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerContent.js","sources":["../../../src/components/drawer/DrawerContent.tsx"],"sourcesContent":["import { Content, Portal } from '@radix-ui/react-dialog'\nimport React from 'react'\n\nimport { Flex } from '~/components/flex'\nimport { DIALOG_Z_INDEX } from '~/constants/zIndices'\nimport { ColorScheme } from '~/experiments/color-scheme'\nimport { styled } from '~/stitches'\nimport { slideInOut } from '~/utilities'\n\nimport { DrawerContext } from './Drawer.context'\nimport { DrawerOverlay } from './DrawerOverlay'\n\nconst animationTop = slideInOut({ outPosition: { x: 0, y: '-100%' } })\nconst animationRight = slideInOut({ outPosition: { x: '100%', y: 0 } })\nconst animationBottom = slideInOut({ outPosition: { x: 0, y: '100%' } })\nconst animationLeft = slideInOut({ outPosition: { x: '-100%', y: 0 } })\nconst setupAnimation = (animation: ReturnType<typeof slideInOut>) => {\n return {\n '&[data-state=\"open\"]': {\n animationName: animation.in\n },\n '&[data-state=\"closed\"]': {\n animationName: animation.out\n }\n }\n}\n\nconst positionY = {\n left: 0,\n width: '100%',\n maxHeight: '85%'\n}\n\nconst positionX = {\n top: 0,\n height: '100%',\n width: 'var(--drawer-content-width, 100%)',\n maxWidth: '100%'\n}\n\nexport const StyledContent = styled(Content, {\n bg: '$base1',\n boxShadow: '$2',\n position: 'fixed',\n zIndex: DIALOG_Z_INDEX,\n '@allowMotion': {\n animationTimingFunction: 'ease-out',\n animationDuration: '250ms'\n },\n variants: {\n position: {\n top: {\n top: 0,\n ...positionY,\n ...setupAnimation(animationTop)\n },\n right: {\n right: 0,\n ...positionX,\n ...setupAnimation(animationRight)\n },\n bottom: {\n bottom: 0,\n ...positionY,\n ...setupAnimation(animationBottom)\n },\n left: {\n left: 0,\n ...positionX,\n ...setupAnimation(animationLeft)\n }\n },\n size: {\n xs: {\n '--drawer-content-width': '240px'\n },\n sm: {\n '--drawer-content-width': '256px'\n },\n md: {\n '--drawer-content-width': '288px'\n },\n lg: {\n '--drawer-content-width': '304px'\n },\n xl: {\n '--drawer-content-width': '320px'\n }\n }\n }\n})\n\nexport const DrawerContent: React.FC<\n React.ComponentProps<typeof StyledContent>\n> = ({ children, ...rest }) => {\n const { position } = React.useContext(DrawerContext)\n\n return (\n <Portal>\n <DrawerOverlay />\n <ColorScheme base=\"grey1\" accent=\"blue1\" asChild>\n <StyledContent size=\"lg\" position={position} {...rest} asChild>\n <Flex direction=\"column\">{children}</Flex>\n </StyledContent>\n </ColorScheme>\n </Portal>\n )\n}\n"],"names":["animationTop","slideInOut","animationRight","animationBottom","animationLeft","setupAnimation","animation","positionY","positionX","StyledContent","styled","Content","DIALOG_Z_INDEX","DrawerContent","children","rest","position","React","DrawerContext","Portal","DrawerOverlay","ColorScheme","Flex"],"mappings":"imBAYA,MAAMA,EAAeC,EAAW,CAAE,YAAa,CAAE,EAAG,EAAG,EAAG,OAAQ,CAAE,CAAC,EAC/DC,EAAiBD,EAAW,CAAE,YAAa,CAAE,EAAG,OAAQ,EAAG,CAAE,CAAE,CAAC,EAChEE,EAAkBF,EAAW,CAAE,YAAa,CAAE,EAAG,EAAG,EAAG,MAAO,CAAE,CAAC,EACjEG,EAAgBH,EAAW,CAAE,YAAa,CAAE,EAAG,QAAS,EAAG,CAAE,CAAE,CAAC,EAChEI,EAAkBC,IACf,CACL,uBAAwB,CACtB,cAAeA,EAAU,EAC3B,EACA,yBAA0B,CACxB,cAAeA,EAAU,GAC3B,CACF,GAGIC,EAAY,CAChB,KAAM,EACN,MAAO,OACP,UAAW,KACb,EAEMC,EAAY,CAChB,IAAK,EACL,OAAQ,OACR,MAAO,oCACP,SAAU,MACZ,EAEaC,EAAgBC,EAAOC,EAAS,CAC3C,GAAI,SACJ,UAAW,KACX,SAAU,QACV,OAAQC,EACR,eAAgB,CACd,wBAAyB,WACzB,kBAAmB,OACrB,EACA,SAAU,CACR,SAAU,CACR,IAAK,CACH,IAAK,EACL,GAAGL,EACH,GAAGF,EAAeL,CAAY,CAChC,EACA,MAAO,CACL,MAAO,EACP,GAAGQ,EACH,GAAGH,EAAeH,CAAc,CAClC,EACA,OAAQ,CACN,OAAQ,EACR,GAAGK,EACH,GAAGF,EAAeF,CAAe,CACnC,EACA,KAAM,CACJ,KAAM,EACN,GAAGK,EACH,GAAGH,EAAeD,CAAa,CACjC,CACF,EACA,KAAM,CACJ,GAAI,CACF,yBAA0B,OAC5B,EACA,GAAI,CACF,yBAA0B,OAC5B,EACA,GAAI,CACF,yBAA0B,OAC5B,EACA,GAAI,CACF,yBAA0B,OAC5B,EACA,GAAI,CACF,yBAA0B,OAC5B,CACF,CACF,CACF,CAAC,EAEYS,EAET,CAAC,CAAE,SAAAC,KAAaC,CAAK,IAAM,CAC7B,KAAM,CAAE,SAAAC,CAAS,EAAIC,EAAM,WAAWC,CAAa,EAEnD,OACED,EAAA,cAACE,EAAA,KACCF,EAAA,cAACG,EAAA,IAAc,EACfH,EAAA,cAACI,EAAA,CAAY,KAAK,QAAQ,OAAO,QAAQ,QAAO,EAAA,EAC9CJ,EAAA,cAACR,GAAc,KAAK,KAAK,SAAUO,EAAW,GAAGD,EAAM,QAAO,EAAA,EAC5DE,EAAA,cAACK,EAAA,CAAK,UAAU,QAAUR,EAAAA,CAAS,CACrC,CACF,CACF,CAEJ"}
@@ -1,4 +1,4 @@
1
- export declare const SidedrawerFooter: import("@stitches/react/types/styled-component").StyledComponent<"footer", {}, {
1
+ export declare const DrawerFooter: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
2
2
  sm: string;
3
3
  md: string;
4
4
  lg: string;
@@ -0,0 +1,2 @@
1
+ import{styled as o}from"../../stitches.js";import{drawerSection as r}from"./Drawer.styles.js";const e=o("div",{...r,borderTop:"1px solid $base3"});export{e as DrawerFooter};
2
+ //# sourceMappingURL=DrawerFooter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerFooter.js","sources":["../../../src/components/drawer/DrawerFooter.tsx"],"sourcesContent":["import { styled } from '~/stitches'\n\nimport { drawerSection } from './Drawer.styles'\n\nexport const DrawerFooter = styled('div', {\n ...drawerSection,\n borderTop: '1px solid $base3'\n})\n"],"names":["DrawerFooter","styled","drawerSection"],"mappings":"8FAIO,MAAMA,EAAeC,EAAO,MAAO,CACxC,GAAGC,EACH,UAAW,kBACb,CAAC"}
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- declare const StyledHeader: import("@stitches/react/types/styled-component").StyledComponent<"header", {}, {
1
+ export declare const DrawerHeader: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
3
2
  sm: string;
4
3
  md: string;
5
4
  lg: string;
@@ -318,5 +317,3 @@ declare const StyledHeader: import("@stitches/react/types/styled-component").Sty
318
317
  marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
319
318
  };
320
319
  }>>;
321
- export declare const SidedrawerHeader: React.FC<React.ComponentProps<typeof StyledHeader>>;
322
- export {};
@@ -0,0 +1,2 @@
1
+ import{styled as r}from"../../stitches.js";import{drawerSection as o}from"./Drawer.styles.js";const e=r("div",{...o,borderBottom:"1px solid $base3"});export{e as DrawerHeader};
2
+ //# sourceMappingURL=DrawerHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerHeader.js","sources":["../../../src/components/drawer/DrawerHeader.tsx"],"sourcesContent":["import { styled } from '~/stitches'\n\nimport { drawerSection } from './Drawer.styles'\n\nexport const DrawerHeader = styled('div', {\n ...drawerSection,\n borderBottom: '1px solid $base3'\n})\n"],"names":["DrawerHeader","styled","drawerSection"],"mappings":"8FAIO,MAAMA,EAAeC,EAAO,MAAO,CACxC,GAAGC,EACH,aAAc,kBAChB,CAAC"}
@@ -0,0 +1,319 @@
1
+ export declare const DrawerMain: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
2
+ sm: string;
3
+ md: string;
4
+ lg: string;
5
+ xl: string;
6
+ reducedMotion: string;
7
+ allowMotion: string;
8
+ hover: string;
9
+ }, import("@stitches/react/types/css-util").CSS<{
10
+ sm: string;
11
+ md: string;
12
+ lg: string;
13
+ xl: string;
14
+ reducedMotion: string;
15
+ allowMotion: string;
16
+ hover: string;
17
+ }, {
18
+ colors: {
19
+ textForeground: any;
20
+ textSubtle: any;
21
+ textPlaceholder: any;
22
+ background: any;
23
+ backgroundAccent: any;
24
+ grey100: any;
25
+ grey200: any;
26
+ grey300: any;
27
+ grey400: any;
28
+ grey500: any;
29
+ grey600: any;
30
+ grey700: any;
31
+ grey800: any;
32
+ grey900: any;
33
+ grey1000: any;
34
+ grey1100: any;
35
+ grey1200: any;
36
+ blue100: any;
37
+ blue200: any;
38
+ blue300: any;
39
+ blue400: any;
40
+ blue500: any;
41
+ blue600: any;
42
+ blue700: any;
43
+ blue800: any;
44
+ blue900: any;
45
+ blue1000: any;
46
+ blue1100: any;
47
+ blue1200: any;
48
+ purple100: any;
49
+ purple200: any;
50
+ purple300: any;
51
+ purple400: any;
52
+ purple500: any;
53
+ purple600: any;
54
+ purple700: any;
55
+ purple800: any;
56
+ purple900: any;
57
+ purple1000: any;
58
+ purple1100: any;
59
+ purple1200: any;
60
+ cyan100: any;
61
+ cyan200: any;
62
+ cyan300: any;
63
+ cyan400: any;
64
+ cyan500: any;
65
+ cyan600: any;
66
+ cyan700: any;
67
+ cyan800: any;
68
+ cyan900: any;
69
+ cyan1000: any;
70
+ cyan1100: any;
71
+ cyan1200: any;
72
+ green100: any;
73
+ green200: any;
74
+ green300: any;
75
+ green400: any;
76
+ green500: any;
77
+ green600: any;
78
+ green700: any;
79
+ green800: any;
80
+ green900: any;
81
+ green1000: any;
82
+ green1100: any;
83
+ green1200: any;
84
+ magenta100: any;
85
+ magenta200: any;
86
+ magenta300: any;
87
+ magenta400: any;
88
+ magenta500: any;
89
+ magenta600: any;
90
+ magenta700: any;
91
+ magenta800: any;
92
+ magenta900: any;
93
+ magenta1000: any;
94
+ magenta1100: any;
95
+ magenta1200: any;
96
+ red100: any;
97
+ red200: any;
98
+ red300: any;
99
+ red400: any;
100
+ red500: any;
101
+ red600: any;
102
+ red700: any;
103
+ red800: any;
104
+ red900: any;
105
+ red1000: any;
106
+ red1100: any;
107
+ red1200: any;
108
+ teal100: any;
109
+ teal200: any;
110
+ teal300: any;
111
+ teal400: any;
112
+ teal500: any;
113
+ teal600: any;
114
+ teal700: any;
115
+ teal800: any;
116
+ teal900: any;
117
+ teal1000: any;
118
+ teal1100: any;
119
+ teal1200: any;
120
+ orange100: any;
121
+ orange200: any;
122
+ orange300: any;
123
+ orange400: any;
124
+ orange500: any;
125
+ orange600: any;
126
+ orange700: any;
127
+ orange800: any;
128
+ orange900: any;
129
+ orange1000: any;
130
+ orange1100: any;
131
+ orange1200: any;
132
+ yellow100: any;
133
+ yellow200: any;
134
+ yellow300: any;
135
+ yellow400: any;
136
+ yellow500: any;
137
+ yellow600: any;
138
+ yellow700: any;
139
+ yellow800: any;
140
+ yellow900: any;
141
+ yellow1000: any;
142
+ yellow1100: any;
143
+ yellow1200: any;
144
+ lime100: any;
145
+ lime200: any;
146
+ lime300: any;
147
+ lime400: any;
148
+ lime500: any;
149
+ lime600: any;
150
+ lime700: any;
151
+ lime800: any;
152
+ lime900: any;
153
+ lime1000: any;
154
+ lime1100: any;
155
+ lime1200: any;
156
+ tonal50: any;
157
+ tonal100: any;
158
+ tonal200: any;
159
+ tonal300: any;
160
+ tonal400: any;
161
+ tonal500: any;
162
+ tonal600: any;
163
+ alpha100: any;
164
+ alpha150: any;
165
+ alpha200: any;
166
+ alpha250: any;
167
+ alpha600: any;
168
+ primaryLight: any;
169
+ primary: any;
170
+ primaryMid: any;
171
+ primaryDark: any;
172
+ secondary: any;
173
+ brandRed: any;
174
+ brandRedAccent: any;
175
+ brandGreen: any;
176
+ brandGreenAccent: any;
177
+ brandPurple: any;
178
+ brandPurpleAccent: any;
179
+ brandYellow: any;
180
+ brandYellowAccent: any;
181
+ successLight: any;
182
+ success: any;
183
+ successMid: any;
184
+ successDark: any;
185
+ dangerLight: any;
186
+ danger: any;
187
+ dangerMid: any;
188
+ dangerDark: any;
189
+ warningLight: any;
190
+ warning: any;
191
+ warningMid: any;
192
+ warningDark: any;
193
+ warningText: any;
194
+ subjectEnglish: any;
195
+ subjectMaths: any;
196
+ subjectScience: any;
197
+ subjectVerbalReasoning: any;
198
+ subjectNonVerbalReasoning: any;
199
+ subjectCreativeWriting: any;
200
+ subjectExamSkills: any;
201
+ glBlueLight: any;
202
+ glBluePrimary: any;
203
+ glBlueDark: any;
204
+ };
205
+ space: {
206
+ "0": any;
207
+ "1": any;
208
+ "2": any;
209
+ "3": any;
210
+ "4": any;
211
+ "5": any;
212
+ "6": any;
213
+ "7": any;
214
+ "8": any;
215
+ "9": any;
216
+ "24": any;
217
+ };
218
+ fontSizes: {
219
+ xs: any;
220
+ sm: any;
221
+ md: any;
222
+ lg: any;
223
+ xl: any;
224
+ "2xl": any;
225
+ "3xl": any;
226
+ "4xl": any;
227
+ };
228
+ fonts: {
229
+ sans: any;
230
+ mono: any;
231
+ display: any;
232
+ body: any;
233
+ };
234
+ sizes: {
235
+ "0": any;
236
+ "1": any;
237
+ "2": any;
238
+ "3": any;
239
+ "4": any;
240
+ "5": any;
241
+ "6": any;
242
+ "7": any;
243
+ "8": any;
244
+ };
245
+ radii: {
246
+ "0": any;
247
+ "1": any;
248
+ "2": any;
249
+ "3": any;
250
+ round: any;
251
+ };
252
+ shadows: {
253
+ "0": any;
254
+ "1": any;
255
+ "2": any;
256
+ "3": any;
257
+ };
258
+ ratios: {
259
+ "16-9": any;
260
+ "3-2": any;
261
+ "4-3": any;
262
+ "1-1": any;
263
+ "3-4": any;
264
+ };
265
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
266
+ bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
267
+ background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
268
+ };
269
+ size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
270
+ height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
271
+ width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
272
+ };
273
+ p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
274
+ padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
275
+ };
276
+ pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
277
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
278
+ };
279
+ pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
280
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
281
+ };
282
+ pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
283
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
284
+ };
285
+ pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
286
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
287
+ };
288
+ px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
289
+ paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
290
+ paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
291
+ };
292
+ py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
293
+ paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
294
+ paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
295
+ };
296
+ m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
297
+ margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
298
+ };
299
+ mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
300
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
301
+ };
302
+ mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
303
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
304
+ };
305
+ mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
306
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
307
+ };
308
+ ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
309
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
310
+ };
311
+ mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
312
+ marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
313
+ marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
314
+ };
315
+ my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
316
+ marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
317
+ marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
318
+ };
319
+ }>>;
@@ -0,0 +1,2 @@
1
+ import{styled as o}from"../../stitches.js";import{drawerSection as r}from"./Drawer.styles.js";const e=o("div",{...r,flexGrow:1,overflowY:"auto"});export{e as DrawerMain};
2
+ //# sourceMappingURL=DrawerMain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerMain.js","sources":["../../../src/components/drawer/DrawerMain.tsx"],"sourcesContent":["import { styled } from '~/stitches'\n\nimport { drawerSection } from './Drawer.styles'\n\nexport const DrawerMain = styled('div', {\n ...drawerSection,\n flexGrow: 1,\n overflowY: 'auto'\n})\n"],"names":["DrawerMain","styled","drawerSection"],"mappings":"8FAIa,MAAAA,EAAaC,EAAO,MAAO,CACtC,GAAGC,EACH,SAAU,EACV,UAAW,MACb,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const SidedrawerOverlay: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
2
+ export declare const DrawerOverlay: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
3
3
  sm: string;
4
4
  md: string;
5
5
  lg: string;
@@ -0,0 +1,2 @@
1
+ import{Overlay as r}from"@radix-ui/react-dialog";import{styled as o}from"../../stitches.js";import{backdropOverlay as e}from"../../utilities/style/backdrop-overlay.js";const m=o(r,e);export{m as DrawerOverlay};
2
+ //# sourceMappingURL=DrawerOverlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerOverlay.js","sources":["../../../src/components/drawer/DrawerOverlay.tsx"],"sourcesContent":["import { Overlay } from '@radix-ui/react-dialog'\n\nimport { styled } from '~/stitches'\nimport { backdropOverlay } from '~/utilities/style/backdrop-overlay'\n\nexport const DrawerOverlay = styled(Overlay, backdropOverlay)\n"],"names":["DrawerOverlay","styled","Overlay","backdropOverlay"],"mappings":"wKAKO,MAAMA,EAAgBC,EAAOC,EAASC,CAAe"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const SidedrawerTrigger: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, {}, {
2
+ export declare const DrawerTrigger: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>, {}, {
3
3
  sm: string;
4
4
  md: string;
5
5
  lg: string;
@@ -0,0 +1,2 @@
1
+ import{Trigger as r}from"@radix-ui/react-dialog";import{styled as o}from"../../stitches.js";const e=o(r,{});export{e as DrawerTrigger};
2
+ //# sourceMappingURL=DrawerTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerTrigger.js","sources":["../../../src/components/drawer/DrawerTrigger.tsx"],"sourcesContent":["import { Trigger } from '@radix-ui/react-dialog'\n\nimport { styled } from '~/stitches'\n\nexport const DrawerTrigger = styled(Trigger, {})\n"],"names":["DrawerTrigger","styled","Trigger"],"mappings":"4FAIO,MAAMA,EAAgBC,EAAOC,EAAS,CAAE,CAAA"}
@@ -0,0 +1 @@
1
+ export { Drawer } from './Drawer';
@@ -21,6 +21,7 @@ export { Dialog } from './dialog';
21
21
  export { Dismissible } from './dismissible';
22
22
  export { DismissibleGroup } from './dismissible-group';
23
23
  export { Divider } from './divider';
24
+ export { Drawer } from './drawer';
24
25
  export { DropdownMenu } from './dropdown-menu';
25
26
  export { EmptyState } from './empty-state';
26
27
  export { FieldWrapper, InlineFieldWrapper } from './field-wrapper';
@@ -40,6 +41,7 @@ export { List } from './list';
40
41
  export { Loader } from './loader';
41
42
  export { MarkdownContent } from './markdown-content';
42
43
  export { NavigationMenu } from './navigation';
44
+ export { NavigationMenuVertical } from './navigation-menu-vertical';
43
45
  export { NotificationBadge } from './notification-badge';
44
46
  export { NumberInput } from './number-input';
45
47
  export { NumberInputField } from './number-input-field';
@@ -56,7 +58,6 @@ export { SearchInput } from './search-input';
56
58
  export { SectionMessage } from './section-message';
57
59
  export { Select } from './select';
58
60
  export { SelectField } from './select-field';
59
- export { Sidedrawer } from './sidedrawer';
60
61
  export { Slider } from './slider';
61
62
  export { SliderField } from './slider-field';
62
63
  export { Sortable } from './sortable';
@@ -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{preventHover as t}from"./preventHover.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 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};
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'\n\nimport { preventHover } from './preventHover'\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={preventHover} onPointerLeave={preventHover}>\n <StyledList>{children}</StyledList>\n </StyledContent>\n)\n\nNavigationMenuDropdownContent.displayName = 'NavigationMenuDropdownContent'\n"],"names":["StyledList","styled","StyledContent","NavigationMenuPrimitive","NavigationMenuDropdownContent","children","React","preventHover"],"mappings":"mKAOA,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: '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,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{preventHover as t}from"./preventHover.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 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};
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'\n\nimport { Icon } from '../icon'\nimport {\n navigationMenuActiveItemStyles,\n navigationMenuBaseItemStyles\n} from './NavigationMenu.styles'\nimport { preventHover } from './preventHover'\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={preventHover}\n onPointerLeave={preventHover}\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","preventHover","Icon","ChevronDown"],"mappings":"2WAaA,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: '$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"}