Skip to content

Commit

Permalink
fix(Card): replaces lng.Component with TextBox where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
arwehrman committed Aug 2, 2023
1 parent fa049a3 commit 6f9db72
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ declare class Card<
set style(v: StylePartial<CardStyle>);

// tags
get _Title(): lng.Component;
get _Title(): TextBox;
}

export { Card as default, CardStyle };
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ declare namespace CardRadio {
export interface TemplateSpec extends CardTitle {
/**
* Object containing all properties supported in the Radio Component
* TODO: See if the types can be updated when Radio has been updated
*/
radio?: Record<string, unknown>;
/**
Expand All @@ -44,7 +45,6 @@ declare class CardRadio<
> extends CardTitle<TemplateSpec, TypeConfig> {
/**
* Object containing all properties supported in the Radio Component
* TODO: See if the types can be updated when Radio has been updated
*/
radio?: Record<string, unknown>;
/**
Expand All @@ -56,7 +56,7 @@ declare class CardRadio<
set style(v: StylePartial<CardRadioStyle>);

//tags
get _Subtitle(): lng.Component;
get _Subtitle(): TextBox;
}

export { CardRadio as default, CardRadioStyle };
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import lng from '@lightningjs/core';
import Card, { CardStyle } from './Card';
import { StylePartial } from '../../types/lui';
import Icon from '../Icon';
import { TextBoxStyle } from '../TextBox';

type CardSectionStyle = CardStyle & {
Expand Down Expand Up @@ -66,7 +67,7 @@ declare class CardSection<
set style(v: StylePartial<CardSectionStyle>);

// tags
get _Icon(): lng.Component;
get _Icon(): Icon;
}

export { CardSection as default, CardSectionStyle };
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ declare class CardTitle<
set style(v: StylePartial<CardTitleStyle>);

// tags
get _Description(): lng.Component;
get _Details(): lng.Component;
get _Description(): TextBox;
get _Details(): TextBox;
}

export { CardTitle as default, CardTitleStyle };

0 comments on commit 6f9db72

Please sign in to comment.