File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { action } from '@ember/object';
22import { isEmpty } from '@ember/utils' ;
33import { tracked } from '@glimmer/tracking' ;
44import { runSmartGradientAnimation } from '@upfluence/oss-components/utils/run-smart-gradient-animation' ;
5- import type { OSSTextAreaArgs } from '../text-area' ;
5+ import type { OSSTextAreaArgs , textAreaResizeOptions } from '../text-area' ;
66import OSSTextArea from '../text-area' ;
77
88interface OSSSmartImmersiveInputComponentSignature extends OSSTextAreaArgs {
@@ -27,7 +27,7 @@ export default class OSSSmartTextareaComponent extends OSSTextArea<OSSSmartImmer
2727 this . element = element ;
2828 }
2929
30- get resize ( ) : 'vertical' | 'horizontal' | 'none' {
30+ get resize ( ) : textAreaResizeOptions | undefined {
3131 return this . args . resize ?? 'none' ;
3232 }
3333
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ import { assert } from '@ember/debug';
22import { action } from '@ember/object' ;
33import Component from '@glimmer/component' ;
44
5+ export type textAreaResizeOptions = 'vertical' | 'horizontal' | 'none' ;
6+
57export interface OSSTextAreaArgs {
68 rows ?: number ;
7- resize ?: 'vertical' | 'horizontal' | 'none' ;
9+ resize ?: textAreaResizeOptions ;
810 value ?: string ;
911 disabled ?: boolean ;
1012 errorMessage ?: string ;
@@ -28,7 +30,7 @@ export default class OSSTextArea<T extends OSSTextAreaArgs> extends Component<T>
2830 return this . args . rows || 2 ;
2931 }
3032
31- get resize ( ) : 'vertical' | 'horizontal' | 'none' | undefined {
33+ get resize ( ) : textAreaResizeOptions | undefined {
3234 return this . args . resize ;
3335 }
3436
You can’t perform that action at this time.
0 commit comments