@lightningjs/ui-components
Advanced tools
Comparing version 2.20.3 to 2.20.4
{ | ||
"name": "@lightningjs/ui-components", | ||
"version": "2.20.3", | ||
"version": "2.20.4", | ||
"description": "A shared library of helpful LightningJS components utilizing theme files to easily customize for any LightningJS application.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -22,3 +22,3 @@ /** | ||
import Surface, { SurfaceStyle } from '../Surface'; | ||
import type { TextBoxStyle } from '../TextBox'; // text in Button is all using our own version of TextBox | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; // text in Button is all using our own version of TextBox | ||
@@ -25,0 +25,0 @@ type ButtonStyle = SurfaceStyle & { |
@@ -21,3 +21,4 @@ /** | ||
import Surface, { SurfaceStyle } from '../Surface'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import { Color, StylePartial } from '../../types/lui'; | ||
@@ -24,0 +25,0 @@ |
@@ -21,3 +21,4 @@ /** | ||
import { StylePartial } from '../../types/lui'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import CardTitle, { CardTitleStyle } from './CardTitle'; | ||
@@ -24,0 +25,0 @@ |
@@ -23,3 +23,3 @@ /** | ||
import Icon from '../Icon'; | ||
import { TextBoxStyle } from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
@@ -26,0 +26,0 @@ type CardSectionStyle = CardStyle & { |
@@ -21,3 +21,4 @@ /** | ||
import Card, { CardStyle } from './Card'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import { StylePartial } from '../../types/lui'; | ||
@@ -24,0 +25,0 @@ |
@@ -22,3 +22,4 @@ /** | ||
import Card, { CardStyle } from '../Card'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import MetadataBase from '../MetadataBase'; | ||
@@ -25,0 +26,0 @@ import Tile from '../Tile'; |
@@ -22,3 +22,3 @@ /** | ||
import { StylePartial } from '../../types/lui'; | ||
import { TextBoxStyle } from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
@@ -25,0 +25,0 @@ type GridOverlayStyle = { |
@@ -88,3 +88,4 @@ /** | ||
export { default as Row } from './Row'; | ||
export { default as ScrollWrapper, ScrollWrapperStyle } from './ScrollWrapper'; | ||
export { default as ScrollWrapper } from './ScrollWrapper'; | ||
export { default as ScrollWrapperStyle } from './ScrollWrapper/ScrollWrapper.style'; | ||
export { default as Shadow, ShadowStyle } from './Shadow'; | ||
@@ -94,3 +95,5 @@ export { default as Slider, SliderStyle } from './Slider'; | ||
export { default as TabBar, TabBarStyle, Tab, TabStyle } from './TabBar'; | ||
export { default as TextBox, TextBoxStyle, TextContent } from './TextBox'; | ||
export { default as TextBox } from './TextBox'; | ||
export { default as TextBoxStyle } from './TextBox/TextBox.style'; | ||
export { default as TextContent } from './TextBox/TextBox.content'; | ||
export { default as Tile, TileStyle } from './Tile'; | ||
@@ -97,0 +100,0 @@ export { default as TitleRow, TitleRowStyle } from './TitleRow'; |
@@ -23,3 +23,3 @@ /** | ||
import { StylePartial } from '../../types/lui'; | ||
import TextContent from '../TextBox/TextBox'; | ||
import TextContent from '../TextBox/TextBox.content'; | ||
@@ -26,0 +26,0 @@ type JustifyContent = |
@@ -21,3 +21,4 @@ /** | ||
import Button, { ButtonStyle } from '../Button'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import { StylePartial } from '../../types/lui'; | ||
@@ -24,0 +25,0 @@ |
@@ -21,3 +21,4 @@ /** | ||
import Button, { ButtonStyle } from '../Button'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import { StylePartial } from '../../types/lui'; | ||
@@ -24,0 +25,0 @@ |
@@ -21,3 +21,4 @@ /** | ||
import { StylePartial } from '../../types/lui'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import ListItem, { ListItemStyle } from './ListItem'; | ||
@@ -24,0 +25,0 @@ import NestedSlider from './NestedSlider'; |
@@ -22,3 +22,3 @@ /** | ||
import { Color, StylePartial } from '../../types/lui'; | ||
import { TextBoxStyle } from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
@@ -25,0 +25,0 @@ type MarqueeStyle = { |
@@ -22,3 +22,4 @@ /** | ||
import { StylePartial } from '../../types/lui'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import Icon from '../Icon'; | ||
@@ -25,0 +26,0 @@ |
@@ -22,3 +22,4 @@ /** | ||
import Provider, { ProviderStyle } from '../Provider'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import { StylePartial } from '../../types/lui'; | ||
@@ -25,0 +26,0 @@ |
@@ -21,3 +21,3 @@ /** | ||
import Base from '../Base'; | ||
import { TextBoxStyle } from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import { Color, StylePartial } from '../../types/lui'; | ||
@@ -24,0 +24,0 @@ |
@@ -19,4 +19,4 @@ /** | ||
import ScrollWrapper, { ScrollWrapperStyle } from './ScrollWrapper'; | ||
import ScrollWrapper from './ScrollWrapper'; | ||
export { ScrollWrapper as default, ScrollWrapperStyle }; | ||
export { ScrollWrapper as default }; |
@@ -21,3 +21,3 @@ /** | ||
import Slider, { SliderStyle } from '../Slider'; | ||
import { ScrollWrapperStyle } from './ScrollWrapper'; | ||
import ScrollWrapperStyle from './ScrollWrapper.style'; | ||
import { StylePartial } from '../../types/lui'; | ||
@@ -24,0 +24,0 @@ |
@@ -22,19 +22,5 @@ /** | ||
import Base from '../Base'; | ||
import { TextBoxStyle } from '../TextBox'; | ||
import { StylePartial } from '../../types/lui'; | ||
import ScrollWrapperStyle from './ScrollWrapper.style'; | ||
type ScrollWrapperStyle = { | ||
textStyle: TextBoxStyle; | ||
scrollBarW: number; | ||
scrollBarH: number; | ||
fadeHeight: 100; | ||
scroll: { | ||
timingFunction: string; | ||
duration: number; | ||
}; | ||
contentMarginTop: number; | ||
contentMarginLeft: number; | ||
sliderMarginLeft: number; | ||
}; | ||
declare namespace ScrollWrapper { | ||
@@ -165,2 +151,2 @@ export interface TemplateSpec extends Base.TemplateSpec { | ||
export { ScrollWrapper as default, ScrollWrapperStyle }; | ||
export { ScrollWrapper as default }; |
@@ -23,3 +23,4 @@ /** | ||
// text should be using our own version of TextBox | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
import Icon from '../Icon'; | ||
@@ -26,0 +27,0 @@ |
@@ -19,4 +19,4 @@ /** | ||
import TextBox, { TextBoxStyle, TextContent } from './TextBox'; | ||
import TextBox from './TextBox'; | ||
export { TextBox as default, TextBoxStyle, TextContent }; | ||
export { TextBox as default }; |
@@ -24,19 +24,5 @@ /** | ||
import InlineContent from '../InlineContent'; | ||
import TextContent from './TextBox.content'; | ||
import TextBoxStyle from './TextBox.style'; | ||
type ContentBase = { | ||
title?: string; | ||
announce?: string; | ||
style?: lng.textures.TextTexture.Settings | string; | ||
}; | ||
type TextContent = | ||
| string | ||
| (ContentBase & ({ text: string } | { icon: string } | { badge: string })); | ||
type TextBoxStyle = { | ||
offsetY: number; | ||
offsetX: number; | ||
textStyle: lng.textures.TextTexture.Settings | string; | ||
}; | ||
declare namespace TextBox { | ||
@@ -127,2 +113,2 @@ export interface TemplateSpec extends Base.TemplateSpec { | ||
export { TextBox as default, TextBoxStyle, TextContent }; | ||
export { TextBox as default }; |
@@ -24,3 +24,3 @@ /** | ||
import type { StylePartial } from '../../types/lui'; | ||
import type { TextBoxStyle } from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
@@ -27,0 +27,0 @@ // Why does `TitleRow` extend `Row` but use style props from `NavigationManager`? |
@@ -22,3 +22,4 @@ /** | ||
import { Color, StylePartial } from '../../types/lui'; | ||
import TextBox, { TextBoxStyle } from '../TextBox'; | ||
import TextBox from '../TextBox'; | ||
import type TextBoxStyle from '../TextBox/TextBox.style'; | ||
@@ -25,0 +26,0 @@ type TooltipStyle = { |
@@ -137,8 +137,11 @@ /** | ||
// If the current properties are the same as the previous configuration, no update is needed | ||
if ( | ||
!Object.keys(this._styleManager.props).length || | ||
JSON.stringify(this._styleManager.props) === | ||
JSON.stringify(this._prevComponentConfigProps) | ||
JSON.stringify(this._prevComponentConfigProps) | ||
) { | ||
return; | ||
} | ||
// Compare current properties with previous configuration and get the payload | ||
@@ -145,0 +148,0 @@ const payload = this._prevComponentConfigProps |
Sorry, the diff of this file is too big to display
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
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
12299535
636
58625