@lightningjs/solid-ui
Advanced tools
Comparing version 0.15.1 to 0.15.2
@@ -18,23 +18,6 @@ /* | ||
import type { NodeStyles } from '@lightningjs/solid'; | ||
import theme from 'theme'; | ||
import type { ComponentStyleConfig, NodeStyleSet, Tone } from '../../types/types.js'; | ||
import { makeComponentStyles } from '../../utils/index.js'; | ||
import type { ArtworkStyles, ArtworkConfig } from './Artwork.types.js'; | ||
export interface ArtworkStyles { | ||
tone: Tone; | ||
Container: NodeStyleSet<{ fillColor: NodeStyles['color']; gradientColor: NodeStyles['color'] }>; | ||
} | ||
type ArtworkStyleProperties = Partial<{ | ||
fallbackSrc: NodeStyles['src']; | ||
fillColor: NodeStyles['color']; | ||
gradientColor: NodeStyles['color']; | ||
imageScale: NodeStyles['scale']; | ||
imageScalePivotX: NodeStyles['pivotX']; | ||
imageScalePivotY: NodeStyles['pivotY']; | ||
}>; | ||
type ArtworkConfig = ComponentStyleConfig<ArtworkStyleProperties>; | ||
/* @ts-expect-error next-line themes are supplied by client applications so this setup is necessary */ | ||
@@ -45,6 +28,8 @@ const { Artwork: { defaultTone, ...themeStyles } = { themeStyles: {} } } = theme?.componentConfig; | ||
themeKeys: { | ||
fallbackSrc: 'fallbackSrc', | ||
fillColor: 'fillColor', | ||
scale: 'imageScale', | ||
pivotX: 'imageScalePivotX', | ||
pivotY: 'imageScalePivotY' | ||
pivotY: 'imageScalePivotY', | ||
borderRadius: 'radius' | ||
}, | ||
@@ -51,0 +36,0 @@ base: { |
@@ -1,2 +0,3 @@ | ||
export { default as default, type ArtworkProps } from './Artwork.jsx'; | ||
export { default as artworkStyles, type ArtworkStyles } from './Artwork.styles.js'; | ||
export { default as default } from './Artwork.jsx'; | ||
export { default as artworkStyles } from './Artwork.styles.js'; | ||
export type { ArtworkProps, ArtworkStyles } from './Artwork.types.js'; |
{ | ||
"name": "@lightningjs/solid-ui", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"description": "A shared library of components for the LightningJS Solid Framework.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2184715
125
26031