All Downloads are FREE. Search and download functionalities are using the official Maven repository.

theme.keycloak.v2.admin.resources.assets.ClickableCard-CcbdwzkE.js.map Maven / Gradle / Ivy

There is a newer version: 26.0.7
Show newest version
{"version":3,"file":"ClickableCard-CcbdwzkE.js","sources":["../../../../../node_modules/.pnpm/@[email protected]/node_modules/@patternfly/react-styles/css/layouts/Gallery/gallery.mjs","../../../../../node_modules/.pnpm/@[email protected]/node_modules/@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min.js","../../../../../node_modules/.pnpm/@[email protected]/node_modules/@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_max.js","../../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@patternfly/react-core/dist/esm/layouts/Gallery/Gallery.js","../../src/components/keycloak-card/ClickableCard.tsx"],"sourcesContent":["import './gallery.css';\nexport default {\n  \"gallery\": \"pf-v5-l-gallery\",\n  \"modifiers\": {\n    \"gutter\": \"pf-m-gutter\"\n  }\n};","export const l_gallery_GridTemplateColumns_min = {\n  \"name\": \"--pf-v5-l-gallery--GridTemplateColumns--min\",\n  \"value\": \"250px\",\n  \"var\": \"var(--pf-v5-l-gallery--GridTemplateColumns--min)\"\n};\nexport default l_gallery_GridTemplateColumns_min;","export const l_gallery_GridTemplateColumns_max = {\n  \"name\": \"--pf-v5-l-gallery--GridTemplateColumns--max\",\n  \"value\": \"1fr\",\n  \"var\": \"var(--pf-v5-l-gallery--GridTemplateColumns--max)\"\n};\nexport default l_gallery_GridTemplateColumns_max;","import { __rest } from \"tslib\";\nimport * as React from 'react';\nimport { css } from '@patternfly/react-styles';\nimport styles from '@patternfly/react-styles/css/layouts/Gallery/gallery.mjs';\nimport cssGridTemplateColumnsMin from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_min';\nimport cssGridTemplateColumnsMax from '@patternfly/react-tokens/dist/esm/l_gallery_GridTemplateColumns_max';\nexport const Gallery = (_a) => {\n    var { children = null, className = '', component = 'div', hasGutter = false, minWidths, maxWidths } = _a, props = __rest(_a, [\"children\", \"className\", \"component\", \"hasGutter\", \"minWidths\", \"maxWidths\"]);\n    const minWidthStyles = {};\n    const Component = component;\n    if (minWidths) {\n        Object.entries(minWidths || {}).map(([breakpoint, value]) => (minWidthStyles[`${cssGridTemplateColumnsMin.name}${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] =\n            value));\n    }\n    const maxWidthStyles = {};\n    if (maxWidths) {\n        Object.entries(maxWidths || {}).map(([breakpoint, value]) => (maxWidthStyles[`${cssGridTemplateColumnsMax.name}${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] =\n            value));\n    }\n    const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);\n    return (React.createElement(Component, Object.assign({ className: css(styles.gallery, hasGutter && styles.modifiers.gutter, className) }, props, ((minWidths || maxWidths) && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));\n};\nGallery.displayName = 'Gallery';\n//# sourceMappingURL=Gallery.js.map","import { KeyboardEvent, useId } from \"react\";\nimport { Card, CardHeader, CardProps } from \"@patternfly/react-core\";\n\ntype ClickableCardProps = Omit & {\n  onClick: () => void;\n};\n\nexport const ClickableCard = ({\n  onClick,\n  children,\n  ...rest\n}: ClickableCardProps) => {\n  const id = useId();\n  const onKeyDown = (e: KeyboardEvent) => {\n    if (e.key === \" \" || e.key === \"Enter\" || e.key === \"Spacebar\") {\n      onClick();\n    }\n  };\n  return (\n    \n      \n        {children}\n      \n    \n  );\n};\n"],"names":["styles","l_gallery_GridTemplateColumns_min","l_gallery_GridTemplateColumns_max","Gallery","_a","children","className","component","hasGutter","minWidths","maxWidths","props","__rest","minWidthStyles","Component","breakpoint","value","cssGridTemplateColumnsMin","maxWidthStyles","cssGridTemplateColumnsMax","widthStyles","React","css","ClickableCard","onClick","rest","id","useId","jsx","Card","CardHeader"],"mappings":"4JACA,MAAeA,EAAA,CACb,QAAW,kBACX,UAAa,CACX,OAAU,aACX,CACH,ECNaC,EAA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