@okam/stack-ui 1.20.4 → 1.20.6
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.
- package/components/fields/Select/Select.interface.d.ts +4 -2
- package/components/fields/SelectItem/SelectItem.d.ts +3 -0
- package/components/fields/SelectItem/SelectItem.interface.d.ts +5 -0
- package/components/fields/TextInputField/interface.d.ts +15 -10
- package/index.d.ts +1 -0
- package/index.js +10 -10
- package/index.mjs +1365 -1362
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CollectionChildren } from '@react-types/shared';
|
|
2
1
|
import type { Key } from 'react';
|
|
3
2
|
import type React from 'react';
|
|
4
3
|
import type { RefCallBack } from 'react-hook-form';
|
|
@@ -13,7 +12,6 @@ export interface TSelectProps extends TFieldReactHookForm {
|
|
|
13
12
|
disabled?: boolean;
|
|
14
13
|
isError?: boolean;
|
|
15
14
|
errorMessage?: string;
|
|
16
|
-
children: CollectionChildren<object>;
|
|
17
15
|
fieldRef?: RefCallBack;
|
|
18
16
|
placeholderLabel: string;
|
|
19
17
|
hookFormRef?: RefCallBack;
|
|
@@ -21,4 +19,8 @@ export interface TSelectProps extends TFieldReactHookForm {
|
|
|
21
19
|
defaultValue?: string;
|
|
22
20
|
value?: string;
|
|
23
21
|
popoverMatchesWidth?: boolean;
|
|
22
|
+
options?: {
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
24
26
|
}
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AriaTextFieldOptions } from 'react-aria';
|
|
3
3
|
import type { RefCallBack } from 'react-hook-form';
|
|
4
4
|
import type { TDefaultComponent, TReactHookForm } from '../../../types/components';
|
|
5
|
-
export type TFieldReactHookForm =
|
|
6
|
-
export interface TTextInputProps extends TFieldReactHookForm, Omit<
|
|
5
|
+
export type TFieldReactHookForm = TDefaultComponent & TReactHookForm;
|
|
6
|
+
export interface TTextInputProps extends TFieldReactHookForm, Omit<AriaTextFieldOptions<'input'>, 'onChange' | 'onBlur'> {
|
|
7
7
|
name: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
errorMessage?: string;
|
|
11
|
-
isError?: boolean;
|
|
12
8
|
ariaLabel?: string;
|
|
9
|
+
errorMessage?: string;
|
|
13
10
|
fieldRef?: RefCallBack;
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use isRequired instead
|
|
13
|
+
*/
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use isDisabled instead
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated depends on errorMEssage
|
|
21
|
+
*/
|
|
16
22
|
isError?: boolean;
|
|
17
|
-
errorMessage?: string;
|
|
18
23
|
}
|
|
19
24
|
export type TUseTextFieldInputProps = InputHTMLAttributes<HTMLInputElement>;
|
package/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export { default as Menu } from './components/Menu/Menu';
|
|
|
27
27
|
export { default as MenuSidePanel } from './components/Menu/MenuSidePanel';
|
|
28
28
|
export { default as MenuItems } from './components/Menu/components/MenuItems';
|
|
29
29
|
export { default as TabContainer } from './components/Menu/components/TabContainer';
|
|
30
|
+
export { default as SelectItem } from './components/fields/SelectItem/SelectItem';
|
|
30
31
|
export { default as DirectusImg } from './components/DirectusImg';
|
|
31
32
|
export { default as Img } from './components/Img';
|
|
32
33
|
export * from './components/icons';
|