@ahrowe/ui 0.6.0 → 0.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.
@@ -20,6 +20,7 @@ export interface InputDropdownProps extends HtmlProps {
20
20
  onSelect?: (value: string) => void;
21
21
  onChange?: (value: unknown) => void;
22
22
  placeholder?: string;
23
+ readOnly?: boolean;
23
24
  className?: string;
24
25
  style?: React.CSSProperties;
25
26
  classNames?: SlotClassNames<InputDropdownSlots>;
@@ -59,6 +59,7 @@ interface InputDropdownItem {
59
59
  | `onSelect` | `(value: string) => void` | Called when an item is picked from the list |
60
60
  | `onChange` | `(value: unknown) => void` | Called on every text change |
61
61
  | `placeholder` | `string` | |
62
+ | `readOnly` | `boolean` | Make the field read-only — typing is blocked, the list won't open, and keyboard navigation/selection is disabled. Default `false` |
62
63
  | `formValidator` | `FormValidator` | Connects to validation |
63
64
 
64
65
  **Slots:** `root` `dropdown` `item`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahrowe/ui",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },