blog/source/files/magicbroad/assets/index.7d797b7f.js.map

1 line
17 KiB
Text
Raw Normal View History

2022-06-09 01:09:09 +00:00
{"version":3,"file":"index.7d797b7f.js","sources":["../../node_modules/@suid/material/CardHeader/cardHeaderClasses.js","../../node_modules/@suid/material/CardHeader/CardHeader.jsx","../../node_modules/@suid/material/ListItemIcon/listItemIconClasses.js","../../node_modules/@suid/material/ListItemIcon/ListItemIcon.jsx","../../src/pages/Login/index.tsx"],"sourcesContent":["import { generateUtilityClass, generateUtilityClasses } from \"@suid/base\";\nexport function getCardHeaderUtilityClass(slot) {\n return generateUtilityClass(\"MuiCardHeader\", slot);\n}\nconst cardHeaderClasses = generateUtilityClasses(\"MuiCardHeader\", [\"root\", \"avatar\", \"action\", \"content\", \"title\", \"subheader\"]);\nexport default cardHeaderClasses;\n","import Typography from \"../Typography\";\nimport styled from \"../styles/styled\";\nimport cardHeaderClasses, { getCardHeaderUtilityClass, } from \"./cardHeaderClasses\";\nimport createComponentFactory from \"@suid/base/createComponentFactory\";\nimport clsx from \"clsx\";\nimport { children, createMemo, Show } from \"solid-js\";\nconst $ = createComponentFactory()({\n name: \"MuiCardHeader\",\n selfPropNames: [\n \"action\",\n \"avatar\",\n \"classes\",\n \"disableTypography\",\n \"subheader\",\n \"subheaderTypographyProps\",\n \"title\",\n \"titleTypographyProps\",\n ],\n propDefaults: ({ set }) => set({\n component: \"div\",\n disableTypography: false,\n }),\n utilityClass: getCardHeaderUtilityClass,\n slotClasses: () => ({\n root: [\"root\"],\n avatar: [\"avatar\"],\n action: [\"action\"],\n content: [\"content\"],\n title: [\"title\"],\n subheader: [\"subheader\"],\n }),\n});\nconst CardHeaderRoot = styled(\"div\", {\n name: \"MuiCardHeader\",\n slot: \"Root\",\n overridesResolver: (props, styles) => ({\n [`& .${cardHeaderClasses.title}`]: styles.title,\n [`& .${cardHeaderClasses.subheader}`]: styles.subheader,\n ...styles.root,\n }),\n})({\n display: \"flex\",\n alignItems: \"center\",\n padding: 16,\n});\nconst CardHeaderAvatar = styled(\"div\", {\n name: \"MuiCardHeader\",\n slot: \"Avatar\",\n overridesResolver: (props, styles) => styles.avatar,\n})({\n display: \"flex\",\n flex: \"0 0 auto\",\n marginRight: 16,\n});\nconst CardHeaderAction = styled(\"div\", {\n name: \"MuiCardHeader\",\n slot: \"Action\",\n overridesResolver: (props, styles) => styles.action,\n})({\n flex: \"0 0 auto\",\n alignSelf: \"flex-start\",\n marginTop: -4,\n marginRight: -8,\n marginBottom: -4,\n});\nconst CardHeaderContent = styled(\"div\", {\n name: \"MuiCardHeader\",\n slot: \"Content\",\n overridesResolver: (props, styles) => styles.content,\n})({\n flex: \"1 1 auto\",\n});\n/**\n *\n * Demos:\n *\n * - [Cards](https://mui.com/components/cards/)\n *\n * API:\n *\n * - [CardHeader API](https://mui.com/api/card-header/)\n */\nconst CardHeader = $.component(function CardHeader({ allProps, classes, otherProps, props, }) {\n const isTypography = (v) => v instanceof HTMLElement && v.classList.contains(Typography.toString());\n const Title = createMemo(() => {\n const title = children(() => props.title)();\n if (title !== undefined && !isTypography(title) && !props.disableTypography)\n return (<Typography variant={props.avatar ? \"body2\" : \"h5\"} className={classes.title} component=\"span\" sx={{ display: \"block\" }} {...(props.titleTypographyProps ?? {})}>\n {title}\n </Typography>);\n return title;\n });\n const Subheader = createMemo(() => {\n const subheader = children(() => props.subheader)();\n if (subheader !== undefined &&\n !isTypography(subheader) &&\n !props.disableTypography)\n return (<Typography variant={props.avatar ? \"body2\" : \"body1\"} className={classes.subheader} component=\"span\" sx={{ display: \"block\", color: \"text.secondary\" }} {...(props.