@gridui/select 1.0.0 → 1.0.3
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/README.md +11 -4
- package/dist/index.js +286 -302
- package/dist/index.js.map +4 -4
- package/dist/shared/selection-popup.d.ts +17 -0
- package/dist/styles.css +72 -94
- package/package.json +11 -9
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Core family. Public API: `Combobox`, `ComboboxProps`, `MultiSelect`, `MultiSelec
|
|
|
5
5
|
Import components from `@gridui/select` and load `@gridui/select/styles.css` after Theme.
|
|
6
6
|
Load styles for any composed dependency used by this family. Applications own routes, labels, state persistence, and branding.
|
|
7
7
|
|
|
8
|
-
See [component ownership](
|
|
8
|
+
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/select/.changeset/history).
|
|
9
9
|
|
|
10
10
|
## Select and Combobox
|
|
11
11
|
|
|
@@ -115,8 +115,8 @@ surface, typography, spacing, and highlights. Select defaults to `position="popp
|
|
|
115
115
|
`position="item-aligned"` aligns the selected item with the trigger when space permits.
|
|
116
116
|
Both modes use the trigger width, including borders and padding.
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
compositions. Their option renderers stay separate because Select owns item-text
|
|
118
|
+
`src/select/select.tsx` and `src/combobox/combobox.tsx` own their trigger and popup
|
|
119
|
+
compositions; `src/shared/` owns their shared selection, form, action, and search collaborators. Their option renderers stay separate because Select owns item-text
|
|
120
120
|
alignment while Combobox owns a filtered collection. Radix owns positioning and
|
|
121
121
|
dismissal. Select delegates option navigation to Radix; Combobox owns its
|
|
122
122
|
editable input and active-descendant keyboard model. `use-selection-value.ts`
|
|
@@ -127,7 +127,14 @@ MultiSelect share query, current-result highlighting, and keyboard movement thro
|
|
|
127
127
|
reset observation. `selection-actions.tsx` renders independent links and buttons.
|
|
128
128
|
|
|
129
129
|
`types.ts` owns shared option, action, and selection contracts; `options.ts` owns
|
|
130
|
-
pure filtering and flattening; `style.ts` owns
|
|
130
|
+
pure filtering and flattening; `style.ts` owns selection-specific presentation and composes Overlay surface
|
|
131
|
+
styles without translating variables into DropdownMenu names. DropdownMenu still
|
|
132
|
+
owns the public option-row style. `selection-popup.tsx` shares Combobox/MultiSelect
|
|
133
|
+
portal geometry, explicit anchor containment, and focus/escape event plumbing;
|
|
134
|
+
callers choose initial focus and dismissal policy. MultiSelect uses Form's
|
|
135
|
+
ListFieldControl with useListField for the native multiple-value bridge. Internal parts
|
|
131
136
|
are not package exports. See the selection contract
|
|
132
137
|
for keyboard, form, server-rendering, and focus guarantees protected by browser tests.
|
|
133
138
|
|
|
139
|
+
|
|
140
|
+
Surface motion uses `@gridui/overlay`; load `@gridui/overlay/styles.css` after Theme and before this family.
|