@okam/stack-ui 1.20.5 → 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.
@@ -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
  }
@@ -0,0 +1,3 @@
1
+ import type { TSelectItemProps } from './SelectItem.interface';
2
+ declare const SelectItem: (props: TSelectItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default SelectItem;
@@ -0,0 +1,5 @@
1
+ import type { TDefaultComponent } from '../../../types/components';
2
+ export interface TSelectItemProps extends TDefaultComponent {
3
+ key: string;
4
+ value: string;
5
+ }
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';