@clubmed/trident-ui 2.0.0-beta.15 → 2.0.0-beta.17
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/package.json +1 -1
- package/ui/Frame.js.map +1 -1
package/package.json
CHANGED
package/ui/Frame.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Frame.js","names":[],"sources":["../../lib/ui/Frame.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { Card } from '
|
|
1
|
+
{"version":3,"file":"Frame.js","names":[],"sources":["../../lib/ui/Frame.tsx"],"sourcesContent":["import type { ComponentPropsWithoutRef, ReactNode } from 'react';\nimport { Card } from './cards/Card';\nimport { CardBackground } from './cards/CardBackground';\nimport { CardClickable } from './cards/CardClickable';\nimport { Button } from './buttons/Button';\nimport { HeadingGroup } from './heading/HeadingGroup';\n\ntype FrameFormat = 'horizontal' | 'vertical';\n\nexport interface FrameProps\n extends Omit<ComponentPropsWithoutRef<typeof Card>, 'theme' | 'format' | 'children'> {\n format?: FrameFormat;\n src: string;\n alt: string;\n coverLink?: boolean;\n buttonAriaLabel?: string;\n title: string;\n subtitle?: string;\n children?: ReactNode;\n}\n\nexport function Frame({\n format = 'horizontal',\n src,\n alt,\n coverLink = true,\n buttonAriaLabel = 'View details',\n title,\n subtitle,\n children,\n className,\n ...cardProps\n}: FrameProps) {\n return (\n <Card theme=\"frame\" format={format} className={className} {...cardProps}>\n <CardBackground src={src} alt={alt}>\n {children}\n <CardClickable coverLink={coverLink} className=\"w-full justify-between\">\n <HeadingGroup level={2} subtitle={subtitle}>\n {title}\n </HeadingGroup>\n <Button\n color=\"white\"\n theme=\"outline\"\n variant=\"circle\"\n icon=\"ArrowDefaultRight\"\n aria-label={buttonAriaLabel}\n className=\"pointer-events-auto shrink-0\"\n />\n </CardClickable>\n </CardBackground>\n </Card>\n );\n}\n"],"mappings":";;;;;;;AAqBA,SAAgB,EAAM,EACpB,YAAS,cACT,QACA,QACA,eAAY,IACZ,qBAAkB,gBAClB,UACA,aACA,aACA,cACA,GAAG,KACU;AACb,QACE,kBAAC,GAAD;EAAM,OAAM;EAAgB;EAAmB;EAAW,GAAI;YAC5D,kBAAC,GAAD;GAAqB;GAAU;aAA/B,CACG,GACD,kBAAC,GAAD;IAA0B;IAAW,WAAU;cAA/C,CACE,kBAAC,GAAD;KAAc,OAAO;KAAa;eAC/B;KACY,CAAA,EACf,kBAAC,GAAD;KACE,OAAM;KACN,OAAM;KACN,SAAQ;KACR,MAAK;KACL,cAAY;KACZ,WAAU;KACV,CAAA,CACY;MACD;;EACZ,CAAA"}
|