@lumx/vue 4.6.1-alpha.0 → 4.7.0

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.
@@ -0,0 +1,21 @@
1
+ import { RawInputTextProps as UIProps } from '@lumx/core/js/components/TextField/RawInputText';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type RawInputTextProps = VueToJSXProps<UIProps>;
4
+ export declare const emitSchema: {
5
+ change: (value: string, _name?: string, _event?: Event) => boolean;
6
+ };
7
+ /**
8
+ * Raw input text component.
9
+ * (input element without any decoration)
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const RawInputText: import('vue').DefineSetupFnComponent<RawInputTextProps, {
15
+ change: (value: string, _name?: string, _event?: Event) => boolean;
16
+ }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
17
+ class?: string;
18
+ } & {
19
+ onChange?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
20
+ }, import('vue').PublicProps>;
21
+ export default RawInputText;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ component: any;
3
+ args: Partial<import('@lumx/core/js/components/TextField/RawInputText').RawInputTextProps>;
4
+ decorators: ((story: any, context: any) => any)[];
5
+ title: string;
6
+ };
7
+ export default _default;
8
+ export declare const Default: {};
9
+ export declare const WithPlaceholder: {
10
+ args: {
11
+ placeholder: string;
12
+ };
13
+ };
@@ -0,0 +1,21 @@
1
+ import { RawInputTextareaProps as UIProps } from '@lumx/core/js/components/TextField/RawInputTextarea';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type RawInputTextareaProps = VueToJSXProps<UIProps>;
4
+ export declare const emitSchema: {
5
+ change: (value: string, _name?: string, _event?: Event) => boolean;
6
+ };
7
+ /**
8
+ * Raw input textarea component.
9
+ * (textarea element without any decoration)
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const RawInputTextarea: import('vue').DefineSetupFnComponent<RawInputTextareaProps, {
15
+ change: (value: string, _name?: string, _event?: Event) => boolean;
16
+ }, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
17
+ class?: string;
18
+ } & {
19
+ onChange?: ((value: string, _name?: string | undefined, _event?: Event | undefined) => any) | undefined;
20
+ }, import('vue').PublicProps>;
21
+ export default RawInputTextarea;
@@ -0,0 +1,18 @@
1
+ declare const _default: {
2
+ component: any;
3
+ args: Partial<import('@lumx/core/js/components/TextField/RawInputTextarea').RawInputTextareaProps>;
4
+ decorators: ((story: any, context: any) => any)[];
5
+ title: string;
6
+ };
7
+ export default _default;
8
+ export declare const Default: {};
9
+ export declare const WithPlaceholder: {
10
+ args: {
11
+ placeholder: string;
12
+ };
13
+ };
14
+ export declare const WithMinimumRows: {
15
+ args: {
16
+ rows: number;
17
+ };
18
+ };
@@ -0,0 +1,2 @@
1
+ export { default as RawInputText, type RawInputTextProps } from './RawInputText';
2
+ export { default as RawInputTextarea, type RawInputTextareaProps } from './RawInputTextarea';
@@ -0,0 +1,5 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * Fit textarea rows to its content.
4
+ */
5
+ export declare function useFitRowsToContent(minimumRows: Ref<number>, textareaRef: Ref<HTMLTextAreaElement | null>, value: Ref<string | undefined>): Ref<number>;
package/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './components/progress';
21
21
  export * from './components/radio-button';
22
22
  export * from './components/skeleton';
23
23
  export * from './components/switch';
24
+ export * from './components/text-field';
24
25
  export * from './components/table';
25
26
  export * from './components/text';
26
27
  export * from './components/thumbnail';