@lumx/core 4.6.1-alpha.0 → 4.7.1-alpha.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.
@@ -1,12 +1,12 @@
1
- import type { ComponentProps } from 'react';
2
- import { HasClassName, HasTheme } from '../../types';
3
- type NativeTextareaProps = Omit<ComponentProps<'textarea'>, 'value' | 'onChange'>;
1
+ import { CommonRef, HasClassName, HasTheme } from '../../types';
4
2
  /**
5
3
  * Defines the props of the component.
6
4
  */
7
- export interface RawInputTextareaProps extends NativeTextareaProps, HasTheme, HasClassName {
5
+ export interface RawInputTextareaProps extends HasTheme, HasClassName {
8
6
  value?: string;
9
7
  rows?: number;
8
+ name?: string | undefined;
9
+ ref?: CommonRef;
10
10
  handleChange?: (value: string, name?: string, event?: any) => void;
11
11
  }
12
12
  /**
@@ -18,4 +18,3 @@ export declare const DEFAULT_PROPS: Partial<RawInputTextareaProps>;
18
18
  * (textarea element without any decoration)
19
19
  */
20
20
  export declare const RawInputTextarea: (props: RawInputTextareaProps) => import("react").JSX.Element;
21
- export {};
@@ -0,0 +1,14 @@
1
+ import { SetupOptions } from '../../../testing';
2
+ /**
3
+ * Mounts the component and returns common DOM elements / data needed in multiple tests further down.
4
+ */
5
+ export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
6
+ props: any;
7
+ element: HTMLElement;
8
+ inputNative: HTMLInputElement | HTMLTextAreaElement;
9
+ error: HTMLElement;
10
+ helper: HTMLElement;
11
+ wrapper: Partial<import("../../../testing").SetupResult>;
12
+ };
13
+ declare const _default: (renderOptions: SetupOptions<any>) => void;
14
+ export default _default;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@floating-ui/dom": "^1.7.5",
10
- "@lumx/icons": "^4.6.1-alpha.0",
10
+ "@lumx/icons": "^4.7.1-alpha.0",
11
11
  "classnames": "^2.3.2",
12
12
  "focus-visible": "^5.0.2",
13
13
  "lodash": "4.17.23",
@@ -69,7 +69,7 @@
69
69
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
70
70
  },
71
71
  "sideEffects": false,
72
- "version": "4.6.1-alpha.0",
72
+ "version": "4.7.1-alpha.0",
73
73
  "devDependencies": {
74
74
  "@rollup/plugin-typescript": "^12.3.0",
75
75
  "@testing-library/dom": "^10.4.1",
@@ -93,5 +93,5 @@
93
93
  "vite-tsconfig-paths": "^5.1.4",
94
94
  "vitest": "^4.0.18"
95
95
  },
96
- "stableVersion": "4.6.0"
96
+ "stableVersion": "4.7.0"
97
97
  }