@aic-kits/react 0.29.9 → 0.29.11

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/LICENSE.md CHANGED
@@ -1,5 +1,5 @@
1
- MIT License
2
-
3
- Copyright (c) 2025
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
1
+ MIT License
2
+
3
+ Copyright (c) 2025
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
@@ -1,7 +1,7 @@
1
1
  import { Icon } from '@phosphor-icons/react';
2
2
  import { default as React } from 'react';
3
3
  import { Color } from '../../theme';
4
- export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
4
+ interface BaseInputProps {
5
5
  /**
6
6
  * The value of the input field
7
7
  */
@@ -47,8 +47,16 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
47
47
  */
48
48
  bgColor?: Color;
49
49
  }
50
+ export type InputProps = BaseInputProps & ((Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
51
+ multiline?: false;
52
+ rows?: never;
53
+ }) | (Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> & {
54
+ multiline: true;
55
+ rows?: number;
56
+ }));
50
57
  export interface InputHandle {
51
58
  focus: () => void;
52
59
  blur: () => void;
53
60
  value: string;
54
61
  }
62
+ export {};
@@ -1,2 +1,2 @@
1
1
  import { SelectProps } from './types';
2
- export declare const Select: <T extends string | number>({ options, value, onChange, placeholder, label, helperText, error, disabled, variant, color: colorProp, size: sizeProp, corner: cornerProp, style, "data-testid": testId, }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Select: <T extends string | number>({ options, value, onChange, placeholder, label, helperText, error, disabled, variant, color: colorProp, size: sizeProp, corner: cornerProp, style, "data-testid": testId, searchable, }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -9,6 +9,8 @@ interface SelectDropdownProps<T extends string | number> {
9
9
  onClose: () => void;
10
10
  size: SelectSize;
11
11
  borderRadius: string;
12
+ searchable?: boolean;
13
+ placeholder?: string;
12
14
  }
13
- export declare function SelectDropdown<T extends string | number>({ anchorElement, isOpen, options, onSelect, selectedValue, onClose, size, borderRadius, }: SelectDropdownProps<T>): import('react').ReactPortal | null;
15
+ export declare function SelectDropdown<T extends string | number>({ anchorElement, isOpen, options, onSelect, selectedValue, onClose, size, borderRadius, searchable, placeholder, }: SelectDropdownProps<T>): import('react').ReactPortal | null;
14
16
  export {};
@@ -71,4 +71,9 @@ export interface SelectProps<T extends string | number> {
71
71
  * The test ID for targeting in tests.
72
72
  */
73
73
  'data-testid'?: string;
74
+ /**
75
+ * Whether the select should have a search input to filter options.
76
+ * @default false
77
+ */
78
+ searchable?: boolean;
74
79
  }