@atom-learning/components 3.26.1 → 3.27.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/action-icon/ActionIcon.js.map +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/calendar/Day.js +1 -1
- package/dist/components/calendar/Day.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js.map +1 -1
- package/dist/components/link/Link.js +1 -1
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js.map +1 -1
- package/dist/components/side-bar/SideBar.d.ts +364 -360
- package/dist/components/side-bar/SideBarComponents.d.ts +10 -8
- package/dist/components/side-bar/SideBarComponents.js +1 -1
- package/dist/components/side-bar/SideBarComponents.js.map +1 -1
- package/dist/components/tile-interactive/TileInteractive.js +1 -1
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
- package/dist/components/top-bar/TopBar.d.ts +364 -360
- package/dist/components/top-bar/TopBarBrand.d.ts +2 -1
- package/dist/components/top-bar/TopBarBrand.js +1 -1
- package/dist/components/top-bar/TopBarBrand.js.map +1 -1
- package/dist/context/router/index.d.ts +10 -0
- package/dist/context/router/index.js +2 -0
- package/dist/context/router/index.js.map +1 -0
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/utilities/uri/index.js +1 -1
- package/dist/utilities/uri/index.js.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -207
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export declare const SideBarHeader: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
|
|
3
3
|
sm: string;
|
|
4
4
|
md: string;
|
|
@@ -1100,7 +1100,7 @@ export declare const SideBarFooter: import("@stitches/react/types/styled-compone
|
|
|
1100
1100
|
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
1101
1101
|
};
|
|
1102
1102
|
}>>;
|
|
1103
|
-
|
|
1103
|
+
declare const StyledSideBarBrand: import("@stitches/react/types/styled-component").StyledComponent<"a", {}, {
|
|
1104
1104
|
sm: string;
|
|
1105
1105
|
md: string;
|
|
1106
1106
|
lg: string;
|
|
@@ -1467,9 +1467,10 @@ export declare const SideBarBrand: import("@stitches/react/types/styled-componen
|
|
|
1467
1467
|
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
1468
1468
|
};
|
|
1469
1469
|
}>>;
|
|
1470
|
+
export declare const SideBarBrand: ({ href, ...props }: React.ComponentProps<typeof StyledSideBarBrand>) => JSX.Element;
|
|
1470
1471
|
export declare const SideBarBrandLogo: {
|
|
1471
|
-
(props: Omit<Pick<Omit<Pick<
|
|
1472
|
-
ref?: ((instance: HTMLImageElement | null) => void) |
|
|
1472
|
+
(props: Omit<Pick<Omit<Pick<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "key" | keyof React.ImgHTMLAttributes<HTMLImageElement>> & {
|
|
1473
|
+
ref?: ((instance: HTMLImageElement | null) => void) | React.RefObject<HTMLImageElement> | null | undefined;
|
|
1473
1474
|
}, "css" | "fluid"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
1474
1475
|
fluid?: boolean | "true" | undefined;
|
|
1475
1476
|
}, {
|
|
@@ -1840,13 +1841,13 @@ export declare const SideBarBrandLogo: {
|
|
|
1840
1841
|
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
1841
1842
|
};
|
|
1842
1843
|
}> | undefined;
|
|
1843
|
-
}, "css" | "key" | keyof
|
|
1844
|
+
}, "css" | "key" | keyof React.ImgHTMLAttributes<HTMLImageElement> | "fluid">, "as"> & {
|
|
1844
1845
|
as?: undefined;
|
|
1845
1846
|
}): JSX.Element;
|
|
1846
1847
|
displayName: string;
|
|
1847
1848
|
};
|
|
1848
|
-
export declare const SideBarBrandName: import("@stitches/react/types/styled-component").StyledComponent<
|
|
1849
|
-
ref?: ((instance: HTMLParagraphElement | null) => void) |
|
|
1849
|
+
export declare const SideBarBrandName: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<Omit<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "key" | keyof React.HTMLAttributes<HTMLParagraphElement>> & {
|
|
1850
|
+
ref?: ((instance: HTMLParagraphElement | null) => void) | React.RefObject<HTMLParagraphElement> | null | undefined;
|
|
1850
1851
|
}, "size" | "css" | "noCapsize"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
1851
1852
|
size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
|
|
1852
1853
|
noCapsize?: boolean | "true" | undefined;
|
|
@@ -2219,7 +2220,7 @@ export declare const SideBarBrandName: import("@stitches/react/types/styled-comp
|
|
|
2219
2220
|
};
|
|
2220
2221
|
}> | undefined;
|
|
2221
2222
|
}, "as"> & {
|
|
2222
|
-
as?:
|
|
2223
|
+
as?: React.ElementType<any> | React.ComponentType<{}> | undefined;
|
|
2223
2224
|
}>, {}, {
|
|
2224
2225
|
sm: string;
|
|
2225
2226
|
md: string;
|
|
@@ -2587,3 +2588,4 @@ export declare const SideBarBrandName: import("@stitches/react/types/styled-comp
|
|
|
2587
2588
|
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
2588
2589
|
};
|
|
2589
2590
|
}>>;
|
|
2591
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{styled as o}from"../../stitches.js";import{Image as
|
|
1
|
+
import*as d from"react";import{useRouter as i}from"../../context/router/index.js";import{styled as o}from"../../stitches.js";import{Image as a}from"../image/Image.js";import{Text as n}from"../text/Text.js";const p=o("div",{borderBottom:"1px solid $border",p:"$4",width:"100%"}),m=o("div",{flexGrow:1,overflowY:"auto",overflowX:"hidden",p:"$4",width:"100%"}),f=o("div",{borderTop:"1px solid $border",p:"$4",width:"100%"}),l=o("a",{alignItems:"flex-end",color:"$text",display:"flex",gap:"$4",textDecoration:"none","&:hover, &:focus":{textDecoration:"none"}}),s=({href:e,...r})=>{const{RouterLink:t}=i({href:e});return d.createElement(l,{as:t,href:e,...r})},c=a,x=o(n,{color:"$text",whiteSpace:"nowrap"});export{m as SideBarBody,s as SideBarBrand,c as SideBarBrandLogo,x as SideBarBrandName,f as SideBarFooter,p as SideBarHeader};
|
|
2
2
|
//# sourceMappingURL=SideBarComponents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideBarComponents.js","sources":["../../../src/components/side-bar/SideBarComponents.tsx"],"sourcesContent":["import { styled } from '~/stitches'\n\nimport { Image } from '../image'\nimport { Text } from '../text'\n\nexport const SideBarHeader = styled('div', {\n borderBottom: '1px solid $border',\n p: '$4',\n width: '100%'\n})\n\nexport const SideBarBody = styled('div', {\n flexGrow: 1,\n overflowY: 'auto',\n overflowX: 'hidden',\n p: '$4',\n width: '100%'\n})\n\nexport const SideBarFooter = styled('div', {\n borderTop: '1px solid $border',\n p: '$4',\n width: '100%'\n})\n\
|
|
1
|
+
{"version":3,"file":"SideBarComponents.js","sources":["../../../src/components/side-bar/SideBarComponents.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { useRouter } from '~/context/router'\nimport { styled } from '~/stitches'\n\nimport { Image } from '../image'\nimport { Text } from '../text'\n\nexport const SideBarHeader = styled('div', {\n borderBottom: '1px solid $border',\n p: '$4',\n width: '100%'\n})\n\nexport const SideBarBody = styled('div', {\n flexGrow: 1,\n overflowY: 'auto',\n overflowX: 'hidden',\n p: '$4',\n width: '100%'\n})\n\nexport const SideBarFooter = styled('div', {\n borderTop: '1px solid $border',\n p: '$4',\n width: '100%'\n})\n\nconst StyledSideBarBrand = styled('a', {\n alignItems: 'flex-end',\n color: '$text',\n display: 'flex',\n gap: '$4',\n textDecoration: 'none',\n '&:hover, &:focus': {\n textDecoration: 'none'\n }\n})\nexport const SideBarBrand = ({\n href,\n ...props\n}: React.ComponentProps<typeof StyledSideBarBrand>) => {\n const { RouterLink } = useRouter({ href })\n return <StyledSideBarBrand as={RouterLink} href={href} {...props} />\n}\n\nexport const SideBarBrandLogo = Image\n\nexport const SideBarBrandName = styled(Text, {\n color: '$text',\n whiteSpace: 'nowrap'\n})\n"],"names":["SideBarHeader","styled","SideBarBody","SideBarFooter","StyledSideBarBrand","SideBarBrand","href","props","RouterLink","useRouter","React","SideBarBrandLogo","Image","SideBarBrandName","Text"],"mappings":"8MAQa,MAAAA,EAAgBC,EAAO,MAAO,CACzC,aAAc,oBACd,EAAG,KACH,MAAO,MACT,CAAC,EAEYC,EAAcD,EAAO,MAAO,CACvC,SAAU,EACV,UAAW,OACX,UAAW,SACX,EAAG,KACH,MAAO,MACT,CAAC,EAEYE,EAAgBF,EAAO,MAAO,CACzC,UAAW,oBACX,EAAG,KACH,MAAO,MACT,CAAC,EAEKG,EAAqBH,EAAO,IAAK,CACrC,WAAY,WACZ,MAAO,QACP,QAAS,OACT,IAAK,KACL,eAAgB,OAChB,mBAAoB,CAClB,eAAgB,MAClB,CACF,CAAC,EACYI,EAAe,CAAC,CAC3B,KAAAC,KACGC,CACL,IAAuD,CACrD,KAAM,CAAE,WAAAC,CAAW,EAAIC,EAAU,CAAE,KAAAH,CAAK,CAAC,EACzC,OAAOI,EAAA,cAACN,EAAA,CAAmB,GAAII,EAAY,KAAMF,EAAO,GAAGC,CAAAA,CAAO,CACpE,EAEaI,EAAmBC,EAEnBC,EAAmBZ,EAAOa,EAAM,CAC3C,MAAO,QACP,WAAY,QACd,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{Tile as
|
|
1
|
+
import e from"react";import{Tile as c}from"../tile/Tile.js";import"../flex/Flex.js";import{useRouter as l}from"../../context/router/index.js";import{styled as m}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{focusVisibleStyleBlock as p}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";const f=m.withConfig({shouldForwardStitchesProp:t=>["as"].includes(t)})(c,{"&[disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([disabled])":{cursor:"pointer",transform:"translateY(0)",transition:"transform 250ms ease","&::after":{content:"",position:"absolute",inset:0,boxShadow:"$2",opacity:0,transition:"opacity 250ms ease-out",borderRadius:"inherit",pointerEvents:"none"},"&:hover":{transform:"translateY(-$space$0)","&::after":{opacity:1}},"&:active":{bg:"$base2"},"&:focus-visible":{...p()}}}),r=e.forwardRef(({onClick:t,href:o,type:i="button",...a},s)=>{const{RouterLink:n}=l({href:o});return e.createElement(f,{...a,...o?{as:n,href:o,onClick:void 0}:{as:"button",type:i,onClick:t},ref:s})});r.displayName="TileInteractive";export{r as TileInteractive};
|
|
2
2
|
//# sourceMappingURL=TileInteractive.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileInteractive.js","sources":["../../../src/components/tile-interactive/TileInteractive.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Tile } from '~/components/tile'\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nconst StyledTileInteractive = styled.withConfig({\n shouldForwardStitchesProp: (propName) => ['as'].includes(propName)\n})(Tile, {\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([disabled])': {\n cursor: 'pointer',\n transform: 'translateY(0)',\n transition: 'transform 250ms ease',\n '&::after': {\n content: '',\n position: 'absolute',\n inset: 0,\n boxShadow: '$2',\n opacity: 0,\n transition: 'opacity 250ms ease-out',\n borderRadius: 'inherit',\n pointerEvents: 'none'\n },\n '&:hover': {\n transform: 'translateY(-$space$0)',\n '&::after': {\n opacity: 1\n }\n },\n '&:active': {\n bg: '$base2'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n }\n})\n\ntype TTileInteractiveProps = React.ComponentProps<\n typeof StyledTileInteractive\n> &\n React.ButtonHTMLAttributes<HTMLButtonElement> &\n NavigatorActions\n\nexport const TileInteractive: React.ForwardRefExoticComponent<TTileInteractiveProps> =\n React.forwardRef(({ onClick, href, type = 'button', ...rest }, ref) => {\n const
|
|
1
|
+
{"version":3,"file":"TileInteractive.js","sources":["../../../src/components/tile-interactive/TileInteractive.tsx"],"sourcesContent":["import React from 'react'\n\nimport { Tile } from '~/components/tile'\nimport { useRouter } from '~/context/router'\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nconst StyledTileInteractive = styled.withConfig({\n shouldForwardStitchesProp: (propName) => ['as'].includes(propName)\n})(Tile, {\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([disabled])': {\n cursor: 'pointer',\n transform: 'translateY(0)',\n transition: 'transform 250ms ease',\n '&::after': {\n content: '',\n position: 'absolute',\n inset: 0,\n boxShadow: '$2',\n opacity: 0,\n transition: 'opacity 250ms ease-out',\n borderRadius: 'inherit',\n pointerEvents: 'none'\n },\n '&:hover': {\n transform: 'translateY(-$space$0)',\n '&::after': {\n opacity: 1\n }\n },\n '&:active': {\n bg: '$base2'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n }\n})\n\ntype TTileInteractiveProps = React.ComponentProps<\n typeof StyledTileInteractive\n> &\n React.ButtonHTMLAttributes<HTMLButtonElement> &\n NavigatorActions\n\nexport const TileInteractive: React.ForwardRefExoticComponent<TTileInteractiveProps> =\n React.forwardRef(({ onClick, href, type = 'button', ...rest }, ref) => {\n const { RouterLink } = useRouter({ href })\n\n const elementSpecificProps = href\n ? {\n as: RouterLink,\n href,\n onClick: undefined\n }\n : {\n as: 'button' as React.ElementType,\n type,\n onClick\n }\n\n return (\n <StyledTileInteractive {...rest} {...elementSpecificProps} ref={ref} />\n )\n })\n\nTileInteractive.displayName = 'TileInteractive'\n"],"names":["StyledTileInteractive","styled","propName","Tile","focusVisibleStyleBlock","TileInteractive","React","onClick","href","type","rest","ref","RouterLink","useRouter"],"mappings":"6cAQA,MAAMA,EAAwBC,EAAO,WAAW,CAC9C,0BAA4BC,GAAa,CAAC,IAAI,EAAE,SAASA,CAAQ,CACnE,CAAC,EAAEC,EAAM,CACP,cAAe,CACb,QAAS,GACT,OAAQ,aACV,EACA,oBAAqB,CACnB,OAAQ,UACR,UAAW,gBACX,WAAY,uBACZ,WAAY,CACV,QAAS,GACT,SAAU,WACV,MAAO,EACP,UAAW,KACX,QAAS,EACT,WAAY,yBACZ,aAAc,UACd,cAAe,MACjB,EACA,UAAW,CACT,UAAW,wBACX,WAAY,CACV,QAAS,CACX,CACF,EACA,WAAY,CACV,GAAI,QACN,EACA,kBAAmB,CACjB,GAAGC,GACL,CACF,CACF,CAAC,EAQYC,EACXC,EAAM,WAAW,CAAC,CAAE,QAAAC,EAAS,KAAAC,EAAM,KAAAC,EAAO,YAAaC,CAAK,EAAGC,IAAQ,CACrE,KAAM,CAAE,WAAAC,CAAW,EAAIC,EAAU,CAAE,KAAAL,CAAK,CAAC,EAczC,OACEF,EAAA,cAACN,EAAA,CAAuB,GAAGU,EAAO,GAbPF,EACzB,CACE,GAAII,EACJ,KAAAJ,EACA,QAAS,MACX,EACA,CACE,GAAI,SACJ,KAAAC,EACA,QAAAF,CACF,EAGyD,IAAKI,CAAK,CAAA,CAEzE,CAAC,EAEHN,EAAgB,YAAc"}
|