@kenos-ui/react-combobox 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @kenos-ui/react-combobox
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9c9de3d]
8
+ - Updated dependencies [f2ea00f]
9
+ - @kenos-ui/utils@1.0.0
10
+
3
11
  ## 0.2.1
4
12
 
5
13
  ### Minor Changes
@@ -9,9 +17,11 @@
9
17
  Headless, accessible, composable Combobox primitive for React 19+, fully unstyled.
10
18
 
11
19
  **Compound API**
20
+
12
21
  - Parts: `Root`, `Label`, `Input`, `Trigger`, `Content`, `List`, `Item`, `ItemText`, `Empty`, `Clear`
13
22
 
14
23
  **Filtering & selection**
24
+
15
25
  - Type-to-filter via `useSelectCollection` from `@kenos-ui/utils`
16
26
  - `ComboboxStore`: `open`, `value`, `inputValue`, `highlightedValue`, item registry
17
27
  - Keyboard: filter on type, arrow navigation, Enter to select
@@ -19,10 +29,12 @@
19
29
  - `Clear` resets value and input text
20
30
 
21
31
  **Popup policy**
32
+
22
33
  - Floating UI positioning on `Content`; `lazyMount` / dialog-interop patterns aligned with Select
23
34
  - Re-exported from `@kenos-ui/react` as `Combobox` namespace
24
35
 
25
36
  **Packaging**
37
+
26
38
  - Add `license: MIT` to `package.json` (fixes npm registry showing "no license")
27
39
 
28
40
  ## 0.2.0
package/dist/index.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import React, { HTMLAttributes, ReactNode, RefObject } from 'react';
3
2
  import { SelectCollectionFilterFn } from '@kenos-ui/utils';
4
3
 
@@ -85,40 +84,40 @@ interface ComboboxContentProps {
85
84
  interface ComboboxClearProps extends HTMLAttributes<HTMLSpanElement> {
86
85
  }
87
86
 
88
- declare function Root(props: ComboboxRootProps): react_jsx_runtime.JSX.Element;
87
+ declare function Root(props: ComboboxRootProps): React.JSX.Element;
89
88
 
90
89
  type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement>;
91
- declare function Label({ children, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
90
+ declare function Label({ children, ...props }: LabelProps): React.JSX.Element;
92
91
 
93
92
  type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "role" | "aria-expanded" | "aria-controls" | "aria-autocomplete" | "value" | "defaultValue">;
94
- declare function Input({ onChange, onFocus, onKeyDown, disabled, readOnly, ...props }: InputProps): react_jsx_runtime.JSX.Element;
93
+ declare function Input({ onChange, onFocus, onKeyDown, disabled, readOnly, ...props }: InputProps): React.JSX.Element;
95
94
 
96
95
  type TriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-expanded" | "aria-controls">;
97
- declare function Trigger({ children, onClick, disabled, ...props }: TriggerProps): react_jsx_runtime.JSX.Element;
96
+ declare function Trigger({ children, onClick, disabled, ...props }: TriggerProps): React.JSX.Element;
98
97
 
99
- declare function Content({ children, forceMount, side, align, sideOffset, alignOffset, avoidCollisions, collisionPadding, sameWidth, lazyMount, unmountOnExit, onOpenChangeComplete: onOpenChangeCompleteProp, style, onKeyDown, ...props }: ComboboxContentProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element | null;
98
+ declare function Content({ children, forceMount, side, align, sideOffset, alignOffset, avoidCollisions, collisionPadding, sameWidth, lazyMount, unmountOnExit, onOpenChangeComplete: onOpenChangeCompleteProp, style, onKeyDown, ...props }: ComboboxContentProps & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element | null;
100
99
 
101
100
  type ListProps = React.HTMLAttributes<HTMLUListElement>;
102
- declare function List({ children, ...props }: ListProps): react_jsx_runtime.JSX.Element;
101
+ declare function List({ children, ...props }: ListProps): React.JSX.Element;
103
102
 
104
103
  interface ItemProps extends React.HTMLAttributes<HTMLLIElement> {
105
104
  value: string;
106
105
  disabled?: boolean | undefined;
107
106
  textValue?: string | undefined;
108
107
  }
109
- declare function Item({ value, disabled, textValue, children, onClick, onPointerMove, style, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
108
+ declare function Item({ value, disabled, textValue, children, onClick, onPointerMove, style, ...props }: ItemProps): React.JSX.Element;
110
109
  declare namespace Item {
111
110
  var displayName: string;
112
111
  }
113
112
 
114
113
  type ItemTextProps = React.HTMLAttributes<HTMLSpanElement>;
115
114
  /** Text label for a Combobox.Item. */
116
- declare function ItemText({ children, ...props }: ItemTextProps): react_jsx_runtime.JSX.Element;
115
+ declare function ItemText({ children, ...props }: ItemTextProps): React.JSX.Element;
117
116
 
118
117
  type EmptyProps = React.HTMLAttributes<HTMLDivElement>;
119
- declare function Empty({ children, ...props }: EmptyProps): react_jsx_runtime.JSX.Element | null;
118
+ declare function Empty({ children, ...props }: EmptyProps): React.JSX.Element | null;
120
119
 
121
- declare function Clear({ onClick, ...props }: ComboboxClearProps): react_jsx_runtime.JSX.Element | null;
120
+ declare function Clear({ onClick, ...props }: ComboboxClearProps): React.JSX.Element | null;
122
121
 
123
122
  declare const index_parts_Clear: typeof Clear;
124
123
  declare const index_parts_Content: typeof Content;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import React, { HTMLAttributes, ReactNode, RefObject } from 'react';
3
2
  import { SelectCollectionFilterFn } from '@kenos-ui/utils';
4
3
 
@@ -85,40 +84,40 @@ interface ComboboxContentProps {
85
84
  interface ComboboxClearProps extends HTMLAttributes<HTMLSpanElement> {
86
85
  }
87
86
 
88
- declare function Root(props: ComboboxRootProps): react_jsx_runtime.JSX.Element;
87
+ declare function Root(props: ComboboxRootProps): React.JSX.Element;
89
88
 
90
89
  type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement>;
91
- declare function Label({ children, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
90
+ declare function Label({ children, ...props }: LabelProps): React.JSX.Element;
92
91
 
93
92
  type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "role" | "aria-expanded" | "aria-controls" | "aria-autocomplete" | "value" | "defaultValue">;
94
- declare function Input({ onChange, onFocus, onKeyDown, disabled, readOnly, ...props }: InputProps): react_jsx_runtime.JSX.Element;
93
+ declare function Input({ onChange, onFocus, onKeyDown, disabled, readOnly, ...props }: InputProps): React.JSX.Element;
95
94
 
96
95
  type TriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-expanded" | "aria-controls">;
97
- declare function Trigger({ children, onClick, disabled, ...props }: TriggerProps): react_jsx_runtime.JSX.Element;
96
+ declare function Trigger({ children, onClick, disabled, ...props }: TriggerProps): React.JSX.Element;
98
97
 
99
- declare function Content({ children, forceMount, side, align, sideOffset, alignOffset, avoidCollisions, collisionPadding, sameWidth, lazyMount, unmountOnExit, onOpenChangeComplete: onOpenChangeCompleteProp, style, onKeyDown, ...props }: ComboboxContentProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element | null;
98
+ declare function Content({ children, forceMount, side, align, sideOffset, alignOffset, avoidCollisions, collisionPadding, sameWidth, lazyMount, unmountOnExit, onOpenChangeComplete: onOpenChangeCompleteProp, style, onKeyDown, ...props }: ComboboxContentProps & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element | null;
100
99
 
101
100
  type ListProps = React.HTMLAttributes<HTMLUListElement>;
102
- declare function List({ children, ...props }: ListProps): react_jsx_runtime.JSX.Element;
101
+ declare function List({ children, ...props }: ListProps): React.JSX.Element;
103
102
 
104
103
  interface ItemProps extends React.HTMLAttributes<HTMLLIElement> {
105
104
  value: string;
106
105
  disabled?: boolean | undefined;
107
106
  textValue?: string | undefined;
108
107
  }
109
- declare function Item({ value, disabled, textValue, children, onClick, onPointerMove, style, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
108
+ declare function Item({ value, disabled, textValue, children, onClick, onPointerMove, style, ...props }: ItemProps): React.JSX.Element;
110
109
  declare namespace Item {
111
110
  var displayName: string;
112
111
  }
113
112
 
114
113
  type ItemTextProps = React.HTMLAttributes<HTMLSpanElement>;
115
114
  /** Text label for a Combobox.Item. */
116
- declare function ItemText({ children, ...props }: ItemTextProps): react_jsx_runtime.JSX.Element;
115
+ declare function ItemText({ children, ...props }: ItemTextProps): React.JSX.Element;
117
116
 
118
117
  type EmptyProps = React.HTMLAttributes<HTMLDivElement>;
119
- declare function Empty({ children, ...props }: EmptyProps): react_jsx_runtime.JSX.Element | null;
118
+ declare function Empty({ children, ...props }: EmptyProps): React.JSX.Element | null;
120
119
 
121
- declare function Clear({ onClick, ...props }: ComboboxClearProps): react_jsx_runtime.JSX.Element | null;
120
+ declare function Clear({ onClick, ...props }: ComboboxClearProps): React.JSX.Element | null;
122
121
 
123
122
  declare const index_parts_Clear: typeof Clear;
124
123
  declare const index_parts_Content: typeof Content;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenos-ui/react-combobox",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Headless Combobox primitive for React — Kenos UI",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@kenos-ui/utils": "0.0.2"
32
+ "@kenos-ui/utils": "1.0.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@testing-library/jest-dom": "^6.4.0",