@manakind/ui-core 0.21.0 → 0.22.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.
- package/README.md +2 -2
- package/dist/combobox/combobox.css +169 -2
- package/dist/combobox/combobox.d.ts +80 -15
- package/dist/combobox/combobox.d.ts.map +1 -1
- package/dist/combobox/combobox.js +309 -43
- package/dist/combobox/combobox.js.map +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.d.ts.map +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/fallback-glyphs.d.ts +1 -0
- package/dist/fallback-glyphs.d.ts.map +1 -1
- package/dist/fallback-glyphs.js +2 -0
- package/dist/fallback-glyphs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ separately, so an app can load only what it renders.
|
|
|
57
57
|
|
|
58
58
|
| Entry | Contents |
|
|
59
59
|
|---|---|
|
|
60
|
-
| `@manakind/ui-core` | Everything below, plus every prop type, the `cx` helper, and the built-in fallback glyphs (`FallbackChevronLeft`, `FallbackChevronRight`, `FallbackCheck`, `FallbackCross`) for compositions that want the same defaults |
|
|
60
|
+
| `@manakind/ui-core` | Everything below, plus every prop type, the `cx` helper, and the built-in fallback glyphs (`FallbackChevronLeft`, `FallbackChevronRight`, `FallbackCheck`, `FallbackCross`, `FallbackPin`) for compositions that want the same defaults |
|
|
61
61
|
| `@manakind/ui-core/alert` | `Alert` |
|
|
62
62
|
| `@manakind/ui-core/avatar` | `Avatar` + `initialsOf` |
|
|
63
63
|
| `@manakind/ui-core/badge` | `Badge` |
|
|
@@ -71,7 +71,7 @@ separately, so an app can load only what it renders.
|
|
|
71
71
|
| `@manakind/ui-core/menu` | `Menu`, `MenuTrigger`, `ActionMenu`; `MenuItem.icon` adds a decorative glyph before its label |
|
|
72
72
|
| `@manakind/ui-core/popover` | `Popover` |
|
|
73
73
|
| `@manakind/ui-core/checkbox` | `Checkbox` |
|
|
74
|
-
| `@manakind/ui-core/combobox` | `Combobox`; `ComboboxItem.group` collects options under named headings, with keyboard navigation in displayed order |
|
|
74
|
+
| `@manakind/ui-core/combobox` | `Combobox`; `ComboboxItem.group` collects options under named headings, with keyboard navigation in displayed order; `toolbar`, `status` and `facets` put filters, a status line and a pinnable facet column inside the open list |
|
|
75
75
|
| `@manakind/ui-core/date-input` | `DateInput` |
|
|
76
76
|
| `@manakind/ui-core/progress` | `Progress` |
|
|
77
77
|
| `@manakind/ui-core/reorder-control` | `ReorderControl` |
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
display: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/*
|
|
16
|
+
* The header stays put and the list under it scrolls, so the controls are
|
|
17
|
+
* always in reach. The popup is no taller than the room the positioner
|
|
18
|
+
* finds below (or above) the field.
|
|
19
|
+
*/
|
|
15
20
|
.ds-combobox__content {
|
|
16
21
|
display: flex;
|
|
17
22
|
flex-direction: column;
|
|
@@ -19,13 +24,87 @@
|
|
|
19
24
|
border: 1px solid var(--ds-select-content-border);
|
|
20
25
|
border-radius: var(--ds-select-content-radius);
|
|
21
26
|
background-color: var(--ds-select-content-bg);
|
|
22
|
-
max-height: 20rem;
|
|
23
|
-
overflow-y: auto;
|
|
27
|
+
max-height: min(20rem, var(--available-height, 20rem));
|
|
24
28
|
overflow-wrap: anywhere;
|
|
25
29
|
/* The `popup` layer in ds-config/scripts/stacking.ts, as Select's list. */
|
|
26
30
|
z-index: 60;
|
|
27
31
|
}
|
|
28
32
|
|
|
33
|
+
.ds-combobox__header {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
gap: var(--ds-field-gap);
|
|
37
|
+
flex: none;
|
|
38
|
+
padding: var(--ds-select-item-padding-block) var(--ds-select-item-padding-inline);
|
|
39
|
+
margin-block-end: var(--ds-select-content-padding);
|
|
40
|
+
border-block-end: 1px solid var(--ds-select-content-border);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ds-combobox__toolbar {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
gap: var(--ds-field-gap);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ds-combobox__status {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: var(--ds-field-gap);
|
|
56
|
+
margin: 0;
|
|
57
|
+
color: var(--ds-field-hint-text);
|
|
58
|
+
font-size: var(--ds-field-hint-font-size);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* A pinned facet: the highlighted-item surface, so it reads as chosen. */
|
|
62
|
+
.ds-combobox__chip {
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--ds-field-gap);
|
|
66
|
+
padding-inline-start: var(--ds-select-item-padding-inline);
|
|
67
|
+
border-radius: var(--ds-select-content-radius);
|
|
68
|
+
background-color: var(--ds-select-item-bg-highlighted);
|
|
69
|
+
color: var(--ds-select-item-text-highlighted);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ds-combobox__chip-remove,
|
|
73
|
+
.ds-combobox__pin {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
padding: var(--ds-select-content-padding);
|
|
78
|
+
border: 0;
|
|
79
|
+
border-radius: var(--ds-select-content-radius);
|
|
80
|
+
background: none;
|
|
81
|
+
color: inherit;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
|
|
84
|
+
&:focus-visible {
|
|
85
|
+
outline: 2px solid var(--ds-input-focus-ring);
|
|
86
|
+
outline-offset: 1px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ds-combobox__list {
|
|
91
|
+
flex: 1 1 auto;
|
|
92
|
+
min-height: 0;
|
|
93
|
+
overflow-y: auto;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/*
|
|
97
|
+
* A block, so it can scroll; its row groups then share one anonymous
|
|
98
|
+
* table, so the columns line up across groups. A container, so the facet
|
|
99
|
+
* column can be capped at a share of its width.
|
|
100
|
+
*/
|
|
101
|
+
.ds-combobox__list--grid {
|
|
102
|
+
display: block;
|
|
103
|
+
container-type: inline-size;
|
|
104
|
+
border-collapse: separate;
|
|
105
|
+
border-spacing: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
29
108
|
.ds-combobox__item {
|
|
30
109
|
display: flex;
|
|
31
110
|
flex-direction: column;
|
|
@@ -49,6 +128,82 @@
|
|
|
49
128
|
}
|
|
50
129
|
}
|
|
51
130
|
|
|
131
|
+
/*
|
|
132
|
+
* A grid row is a table row, which can't round its corners, so its
|
|
133
|
+
* padding, corners and highlight go on its cells. The facet column is as
|
|
134
|
+
* wide as its longest name and the option column takes the rest.
|
|
135
|
+
*/
|
|
136
|
+
tr.ds-combobox__item {
|
|
137
|
+
display: table-row;
|
|
138
|
+
padding: 0;
|
|
139
|
+
|
|
140
|
+
&[data-highlighted] {
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
& > td {
|
|
145
|
+
padding: var(--ds-select-item-padding-block) var(--ds-select-item-padding-inline);
|
|
146
|
+
vertical-align: middle;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&[data-highlighted] > td {
|
|
150
|
+
background-color: var(--ds-select-item-bg-highlighted);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
& > td:first-child {
|
|
154
|
+
border-start-start-radius: inherit;
|
|
155
|
+
border-end-start-radius: inherit;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
& > td:last-child {
|
|
159
|
+
border-start-end-radius: inherit;
|
|
160
|
+
border-end-end-radius: inherit;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.ds-combobox__facet {
|
|
165
|
+
width: 1%;
|
|
166
|
+
color: var(--ds-field-hint-text);
|
|
167
|
+
font-size: var(--ds-field-hint-font-size);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/*
|
|
171
|
+
* As wide as the facet's name, so a short one never wraps in its 1% wide
|
|
172
|
+
* column, but no wider than two fifths of the list: a long name wraps
|
|
173
|
+
* there and leaves the option column its room.
|
|
174
|
+
*/
|
|
175
|
+
.ds-combobox__facet-content {
|
|
176
|
+
display: inline-flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
gap: var(--ds-field-gap);
|
|
179
|
+
inline-size: max-content;
|
|
180
|
+
max-inline-size: 40cqi;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ds-combobox__facet-label {
|
|
184
|
+
min-width: 0;
|
|
185
|
+
overflow-wrap: anywhere;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/*
|
|
189
|
+
* The pin answers the keyboard too: with the row's pin cell active, the
|
|
190
|
+
* field keeps focus, so the ring is drawn from `data-active`.
|
|
191
|
+
*/
|
|
192
|
+
.ds-combobox__pin {
|
|
193
|
+
&[data-active] {
|
|
194
|
+
outline: 2px solid var(--ds-input-focus-ring);
|
|
195
|
+
outline-offset: 1px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&[aria-pressed="true"] {
|
|
199
|
+
color: var(--ds-select-item-text-highlighted);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ds-combobox__item[data-highlighted] .ds-combobox__facet {
|
|
204
|
+
color: inherit;
|
|
205
|
+
}
|
|
206
|
+
|
|
52
207
|
/*
|
|
53
208
|
* A group of options under its heading, set apart from the group above by
|
|
54
209
|
* more space than separates two options, so the groups read as groups.
|
|
@@ -58,12 +213,18 @@
|
|
|
58
213
|
margin-block-start: var(--ds-combobox-group-gap);
|
|
59
214
|
}
|
|
60
215
|
|
|
216
|
+
/* A grid's row groups take no margin; their heading cell carries the gap. */
|
|
217
|
+
tbody.ds-combobox__group:not(:first-of-type) > tr:first-child > th {
|
|
218
|
+
padding-block-start: calc(var(--ds-select-item-padding-block) + var(--ds-combobox-group-gap));
|
|
219
|
+
}
|
|
220
|
+
|
|
61
221
|
.ds-combobox__group-label {
|
|
62
222
|
display: block;
|
|
63
223
|
padding: var(--ds-select-item-padding-block) var(--ds-select-item-padding-inline);
|
|
64
224
|
color: var(--ds-combobox-group-label-text);
|
|
65
225
|
font-size: var(--ds-combobox-group-label-font-size);
|
|
66
226
|
font-weight: var(--ds-combobox-group-label-font-weight);
|
|
227
|
+
text-align: start;
|
|
67
228
|
}
|
|
68
229
|
|
|
69
230
|
.ds-combobox__item-description {
|
|
@@ -71,6 +232,12 @@
|
|
|
71
232
|
font-size: var(--ds-field-hint-font-size);
|
|
72
233
|
}
|
|
73
234
|
|
|
235
|
+
/* In a grid the label and description stack inside their table cell. */
|
|
236
|
+
.ds-combobox__cell > .ds-combobox__item-label,
|
|
237
|
+
.ds-combobox__cell > .ds-combobox__item-description {
|
|
238
|
+
display: block;
|
|
239
|
+
}
|
|
240
|
+
|
|
74
241
|
/*
|
|
75
242
|
* A highlighted row takes the highlighted text colour, which the hint
|
|
76
243
|
* colour was never measured against; the description follows the row.
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type IconSource } from '../icon/icon';
|
|
3
|
+
import '../visually-hidden/visually-hidden.css';
|
|
2
4
|
import './combobox.css';
|
|
3
5
|
export type ComboboxSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
/** What an option belongs to, shown in a second column: its category, its project. */
|
|
7
|
+
export interface ComboboxFacet {
|
|
8
|
+
/** Stable value reported when the facet is pinned. */
|
|
9
|
+
value: string;
|
|
10
|
+
/** Text in the facet column, and in the pinned chip. */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Decorative mark before the label, such as the category's icon. */
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
}
|
|
4
15
|
export interface ComboboxItem {
|
|
5
16
|
/** Stable value reported by `onSelect`. */
|
|
6
17
|
value: string;
|
|
7
|
-
/** Option text, also what
|
|
18
|
+
/** Option text, also what screen readers use. */
|
|
8
19
|
label: string;
|
|
9
20
|
/** Optional secondary line under the label, shown muted. */
|
|
10
21
|
description?: string;
|
|
@@ -17,14 +28,35 @@ export interface ComboboxItem {
|
|
|
17
28
|
* any group.
|
|
18
29
|
*/
|
|
19
30
|
group?: string;
|
|
31
|
+
/** What the option belongs to, shown in the facet column when `facets` is set. */
|
|
32
|
+
facet?: ComboboxFacet;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A second column naming what each option belongs to, with a pin that
|
|
36
|
+
* narrows the list to it.
|
|
37
|
+
*/
|
|
38
|
+
export interface ComboboxFacets {
|
|
39
|
+
/** Heading of the option column, for assistive tech: "Action". */
|
|
40
|
+
itemLabel: string;
|
|
41
|
+
/** Heading of the facet column, for assistive tech: "Category". */
|
|
42
|
+
label: string;
|
|
43
|
+
/** The facet the list is narrowed to, shown as a removable chip in the status line. */
|
|
44
|
+
pinned?: ComboboxFacet | null;
|
|
45
|
+
/**
|
|
46
|
+
* Pins a row's facet, or unpins it with `null` (its pin pressed again, the
|
|
47
|
+
* chip's remove button, or Backspace in the empty field). The caller does
|
|
48
|
+
* the narrowing. Without it, the facet column shows no pins.
|
|
49
|
+
*/
|
|
50
|
+
onPinnedChange?: (facet: ComboboxFacet | null) => void;
|
|
20
51
|
}
|
|
21
52
|
export interface ComboboxProps {
|
|
22
53
|
/**
|
|
23
54
|
* Suggestions for the current text.
|
|
24
55
|
*
|
|
25
|
-
* The caller filters them; the component does not. What
|
|
26
|
-
* (a prefix, a substring,
|
|
27
|
-
* call, and the list it passes is the
|
|
56
|
+
* The caller filters, sorts and groups them; the component does not. What
|
|
57
|
+
* counts as a match (a prefix, a substring, a category's name, anything
|
|
58
|
+
* not already chosen) is the product's call, and the list it passes is the
|
|
59
|
+
* list that shows.
|
|
28
60
|
*/
|
|
29
61
|
items: ComboboxItem[];
|
|
30
62
|
/** Controlled text in the input. */
|
|
@@ -48,6 +80,23 @@ export interface ComboboxProps {
|
|
|
48
80
|
placeholder?: string;
|
|
49
81
|
/** Shown in the open list when `items` is empty. */
|
|
50
82
|
emptyText?: ReactNode;
|
|
83
|
+
/**
|
|
84
|
+
* Controls at the top of the open list that change what it shows: a
|
|
85
|
+
* `Switch`, a small `SegmentGroup`. One row of them, so the options stay
|
|
86
|
+
* in view; Tab moves into them from the field.
|
|
87
|
+
*/
|
|
88
|
+
toolbar?: ReactNode;
|
|
89
|
+
/**
|
|
90
|
+
* One line under the toolbar saying what the list shows, such as "Showing
|
|
91
|
+
* all actions in Health". Announced politely as it changes.
|
|
92
|
+
*/
|
|
93
|
+
status?: ReactNode;
|
|
94
|
+
/** Adds the facet column, with its pins. The list becomes a grid. */
|
|
95
|
+
facets?: ComboboxFacets;
|
|
96
|
+
/** Glyph of a row's pin. Defaults to the inlined fallback pin. */
|
|
97
|
+
pinIcon?: IconSource;
|
|
98
|
+
/** Glyph of the pinned chip's remove button. Defaults to the inlined fallback cross. */
|
|
99
|
+
removeIcon?: IconSource;
|
|
51
100
|
/** Control height and type scale. */
|
|
52
101
|
size?: ComboboxSize;
|
|
53
102
|
/** Disable the whole control. */
|
|
@@ -60,32 +109,48 @@ export interface ComboboxProps {
|
|
|
60
109
|
inputRef?: Ref<HTMLInputElement>;
|
|
61
110
|
}
|
|
62
111
|
/**
|
|
63
|
-
* A text input that suggests options as you type,
|
|
112
|
+
* A text input that suggests options as you type, with optional controls at
|
|
113
|
+
* the top of the open list.
|
|
64
114
|
*
|
|
65
115
|
* Choosing a suggestion reports it through `onSelect` and empties the input,
|
|
66
116
|
* so the field is ready for the next one: the control for adding items to a
|
|
67
117
|
* list one at a time. It never holds a selection itself; the caller keeps
|
|
68
118
|
* the list. For a field that keeps one choice, use `Select`.
|
|
69
119
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* with `Input` and `Select`, and offers a flat `items` API.
|
|
120
|
+
* The open list can carry what narrows it, so nothing sits outside the
|
|
121
|
+
* field: a `toolbar` row of switches or a segment group, a `status` line
|
|
122
|
+
* saying what is shown, and with `facets` a second column naming what each
|
|
123
|
+
* option belongs to, whose pin narrows the list to it.
|
|
75
124
|
*
|
|
76
125
|
* ```tsx
|
|
77
126
|
* <Combobox
|
|
78
|
-
* label="Add
|
|
127
|
+
* label="Add actions"
|
|
79
128
|
* items={matches}
|
|
80
129
|
* inputValue={query}
|
|
81
130
|
* onInputValueChange={setQuery}
|
|
82
131
|
* onSelect={(value) => setPicked((list) => [...list, value])}
|
|
83
|
-
*
|
|
132
|
+
* toolbar={<Switch size="sm" label="Include categories" checked={…} onCheckedChange={…} />}
|
|
133
|
+
* status={`Showing all actions that contain “${query}”`}
|
|
134
|
+
* facets={{ itemLabel: 'Action', label: 'Category', pinned, onPinnedChange: setPinned }}
|
|
84
135
|
* />
|
|
85
136
|
* ```
|
|
86
137
|
*
|
|
87
|
-
* The
|
|
88
|
-
*
|
|
138
|
+
* The field is the APG editable combobox. Focus stays in the input, and the
|
|
139
|
+
* active option is `aria-activedescendant`. Typing highlights the first
|
|
140
|
+
* option, so Enter takes it, and Up and Down walk the options in their drawn
|
|
141
|
+
* order. With `facets` the popup is a grid instead of a listbox: Right, at
|
|
142
|
+
* the end of the text, moves onto the row's pin and Enter then pins it, and
|
|
143
|
+
* Left moves back. Tab moves from the field into the toolbar and the chip,
|
|
144
|
+
* and on out to the next field.
|
|
145
|
+
*
|
|
146
|
+
* The popup is an Ark Popover anchored to the field, so it takes part in
|
|
147
|
+
* the dismiss stack. Escape closes it before a `Dialog` around it, and a
|
|
148
|
+
* click outside closes it. Its wrapper drops the Popover's dialog role, so
|
|
149
|
+
* the listbox or grid inside is the popup assistive tech meets. It portals
|
|
150
|
+
* like `Select`'s list: into `<body>`, or into the panel of the ui-core
|
|
151
|
+
* `Dialog` it opens in, at `z-index: 60`.
|
|
152
|
+
* The field reads the `--ds-input-*` keys and the list the `--ds-select-*`
|
|
153
|
+
* keys, so it reads as one family with `Input` and `Select`.
|
|
89
154
|
*/
|
|
90
|
-
export declare function Combobox({ items, inputValue, onInputValueChange, onSelect, label, 'aria-label': ariaLabel, placeholder, emptyText, size, disabled, invalid, className, inputRef, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
155
|
+
export declare function Combobox({ items, inputValue, onInputValueChange, onSelect, label, 'aria-label': ariaLabel, placeholder, emptyText, toolbar, status, facets, pinIcon, removeIcon, size, disabled, invalid, className, inputRef, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
91
156
|
//# sourceMappingURL=combobox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../src/combobox/combobox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../src/combobox/combobox.tsx"],"names":[],"mappings":"AAGA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,GAAG,EAST,MAAM,OAAO,CAAC;AAIf,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,wCAAwC,CAAC;AAChD,OAAO,gBAAgB,CAAC;AAExB,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,sFAAsF;AACtF,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,KA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EAAE,UAAU,CAAC;IACxB,qCAAqC;IACrC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAClC;AAqCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,KAAK,EACL,YAAY,EAAE,SAAS,EACvB,WAAW,EACX,SAAS,EACT,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAa,EACb,UAAkB,EAClB,IAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,aAAa,2CA+Uf"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as ArkPopover } from '@ark-ui/react/popover';
|
|
3
3
|
import { Portal } from '@ark-ui/react/portal';
|
|
4
|
-
import {
|
|
4
|
+
import { getTabbableEdges, getTabbables, isComposingEvent } from '@zag-js/dom-query';
|
|
5
|
+
import { useCallback, useContext, useEffect, useId, useMemo, useRef, useState, } from 'react';
|
|
5
6
|
import { flushSync } from 'react-dom';
|
|
7
|
+
import { cx } from '../cx';
|
|
8
|
+
import { Cross, Pin } from '../fallback-glyphs';
|
|
9
|
+
import { Icon } from '../icon/icon';
|
|
6
10
|
import { PortalContainerContext } from '../portal-container';
|
|
11
|
+
import '../visually-hidden/visually-hidden.css';
|
|
7
12
|
import './combobox.css';
|
|
8
|
-
import { cx } from '../cx';
|
|
9
13
|
// Ungrouped options first, then each group in order of first appearance, so
|
|
10
14
|
// the keyboard walks the list in the order it is drawn.
|
|
11
15
|
function groupItems(items) {
|
|
@@ -26,67 +30,329 @@ function groupItems(items) {
|
|
|
26
30
|
...[...groups].map(([label, members]) => ({ label, items: members })),
|
|
27
31
|
];
|
|
28
32
|
}
|
|
29
|
-
|
|
33
|
+
// The header's own controls, which a press may focus.
|
|
34
|
+
const HEADER_CONTROLS = 'button, input, label, a[href], [tabindex]:not([tabindex="-1"])';
|
|
30
35
|
/**
|
|
31
|
-
* A text input that suggests options as you type,
|
|
36
|
+
* A text input that suggests options as you type, with optional controls at
|
|
37
|
+
* the top of the open list.
|
|
32
38
|
*
|
|
33
39
|
* Choosing a suggestion reports it through `onSelect` and empties the input,
|
|
34
40
|
* so the field is ready for the next one: the control for adding items to a
|
|
35
41
|
* list one at a time. It never holds a selection itself; the caller keeps
|
|
36
42
|
* the list. For a field that keeps one choice, use `Select`.
|
|
37
43
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* with `Input` and `Select`, and offers a flat `items` API.
|
|
44
|
+
* The open list can carry what narrows it, so nothing sits outside the
|
|
45
|
+
* field: a `toolbar` row of switches or a segment group, a `status` line
|
|
46
|
+
* saying what is shown, and with `facets` a second column naming what each
|
|
47
|
+
* option belongs to, whose pin narrows the list to it.
|
|
43
48
|
*
|
|
44
49
|
* ```tsx
|
|
45
50
|
* <Combobox
|
|
46
|
-
* label="Add
|
|
51
|
+
* label="Add actions"
|
|
47
52
|
* items={matches}
|
|
48
53
|
* inputValue={query}
|
|
49
54
|
* onInputValueChange={setQuery}
|
|
50
55
|
* onSelect={(value) => setPicked((list) => [...list, value])}
|
|
51
|
-
*
|
|
56
|
+
* toolbar={<Switch size="sm" label="Include categories" checked={…} onCheckedChange={…} />}
|
|
57
|
+
* status={`Showing all actions that contain “${query}”`}
|
|
58
|
+
* facets={{ itemLabel: 'Action', label: 'Category', pinned, onPinnedChange: setPinned }}
|
|
52
59
|
* />
|
|
53
60
|
* ```
|
|
54
61
|
*
|
|
55
|
-
* The
|
|
56
|
-
*
|
|
62
|
+
* The field is the APG editable combobox. Focus stays in the input, and the
|
|
63
|
+
* active option is `aria-activedescendant`. Typing highlights the first
|
|
64
|
+
* option, so Enter takes it, and Up and Down walk the options in their drawn
|
|
65
|
+
* order. With `facets` the popup is a grid instead of a listbox: Right, at
|
|
66
|
+
* the end of the text, moves onto the row's pin and Enter then pins it, and
|
|
67
|
+
* Left moves back. Tab moves from the field into the toolbar and the chip,
|
|
68
|
+
* and on out to the next field.
|
|
69
|
+
*
|
|
70
|
+
* The popup is an Ark Popover anchored to the field, so it takes part in
|
|
71
|
+
* the dismiss stack. Escape closes it before a `Dialog` around it, and a
|
|
72
|
+
* click outside closes it. Its wrapper drops the Popover's dialog role, so
|
|
73
|
+
* the listbox or grid inside is the popup assistive tech meets. It portals
|
|
74
|
+
* like `Select`'s list: into `<body>`, or into the panel of the ui-core
|
|
75
|
+
* `Dialog` it opens in, at `z-index: 60`.
|
|
76
|
+
* The field reads the `--ds-input-*` keys and the list the `--ds-select-*`
|
|
77
|
+
* keys, so it reads as one family with `Input` and `Select`.
|
|
57
78
|
*/
|
|
58
|
-
export function Combobox({ items, inputValue, onInputValueChange, onSelect, label, 'aria-label': ariaLabel, placeholder, emptyText, size = 'md', disabled, invalid, className, inputRef, }) {
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
export function Combobox({ items, inputValue, onInputValueChange, onSelect, label, 'aria-label': ariaLabel, placeholder, emptyText, toolbar, status, facets, pinIcon = Pin, removeIcon = Cross, size = 'md', disabled, invalid, className, inputRef, }) {
|
|
80
|
+
const id = useId();
|
|
81
|
+
const inputId = `${id}-input`;
|
|
82
|
+
const labelId = `${id}-label`;
|
|
83
|
+
const listId = `${id}-list`;
|
|
84
|
+
const statusId = `${id}-status`;
|
|
85
|
+
const rowId = (index) => `${id}-row-${index}`;
|
|
86
|
+
const cellId = (index, cell) => `${id}-cell-${index}-${cell}`;
|
|
87
|
+
const rootRef = useRef(null);
|
|
88
|
+
const contentRef = useRef(null);
|
|
89
|
+
const headerRef = useRef(null);
|
|
90
|
+
const inputEl = useRef(null);
|
|
66
91
|
const portalContainer = useContext(PortalContainerContext);
|
|
92
|
+
const [open, setOpen] = useState(false);
|
|
93
|
+
const [chosen, setChosen] = useState(null);
|
|
94
|
+
const isOpen = open && !disabled;
|
|
95
|
+
const isGrid = facets !== undefined;
|
|
96
|
+
const pinned = facets?.pinned ?? null;
|
|
97
|
+
const canPin = (item) => Boolean(facets?.onPinnedChange && item.facet);
|
|
98
|
+
const groups = useMemo(() => groupItems(items), [items]);
|
|
99
|
+
const ordered = useMemo(() => groups.flatMap((group) => group.items), [groups]);
|
|
100
|
+
const navigable = useMemo(() => ordered.filter((item) => !item.disabled), [ordered]);
|
|
101
|
+
const chosenItem = chosen && navigable.find((item) => item.value === chosen.value);
|
|
102
|
+
const active = chosenItem
|
|
103
|
+
? {
|
|
104
|
+
value: chosenItem.value,
|
|
105
|
+
cell: chosen?.cell === 'facet' && canPin(chosenItem) ? 'facet' : 'item',
|
|
106
|
+
}
|
|
107
|
+
: inputValue !== '' && navigable[0]
|
|
108
|
+
? { value: navigable[0].value, cell: 'item' }
|
|
109
|
+
: null;
|
|
110
|
+
const activeIndex = active ? ordered.findIndex((item) => item.value === active.value) : -1;
|
|
111
|
+
const activeDescendant = isOpen && active && activeIndex >= 0
|
|
112
|
+
? isGrid
|
|
113
|
+
? cellId(activeIndex, active.cell)
|
|
114
|
+
: rowId(activeIndex)
|
|
115
|
+
: undefined;
|
|
116
|
+
const setInputRef = useCallback((element) => {
|
|
117
|
+
inputEl.current = element;
|
|
118
|
+
if (typeof inputRef === 'function')
|
|
119
|
+
inputRef(element);
|
|
120
|
+
else if (inputRef)
|
|
121
|
+
inputRef.current = element;
|
|
122
|
+
}, [inputRef]);
|
|
67
123
|
/*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
124
|
+
* The popup portals out of the field, so the browser's Tab order would
|
|
125
|
+
* skip it. While it is open, Tab from the field moves into its header's
|
|
126
|
+
* controls, Tab from the last one moves on to whatever follows the field,
|
|
127
|
+
* and Shift+Tab walks back the same way. Only the header counts, as the
|
|
128
|
+
* pins are reached with the arrows; with no header control, Tab is the
|
|
129
|
+
* browser's. A window listener, so it lives in an effect, and so it runs
|
|
130
|
+
* ahead of a Dialog's focus trap: the popup is the end of the dialog's
|
|
131
|
+
* panel, and the trap would wrap Tab from its last control to the
|
|
132
|
+
* dialog's first.
|
|
73
133
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
if (!isOpen)
|
|
136
|
+
return;
|
|
137
|
+
const handleTab = (event) => {
|
|
138
|
+
const header = headerRef.current;
|
|
139
|
+
const content = contentRef.current;
|
|
140
|
+
const field = inputEl.current;
|
|
141
|
+
if (event.key !== 'Tab' || !header || !content || !field)
|
|
142
|
+
return;
|
|
143
|
+
const [first, last] = getTabbableEdges(header);
|
|
144
|
+
if (!first || !last)
|
|
145
|
+
return;
|
|
146
|
+
const scope = field.closest('[aria-modal="true"]') ?? field.ownerDocument.body;
|
|
147
|
+
const tabbables = getTabbables(scope);
|
|
148
|
+
const after = tabbables
|
|
149
|
+
.slice(tabbables.indexOf(field) + 1)
|
|
150
|
+
.find((element) => !content.contains(element));
|
|
151
|
+
const current = field.ownerDocument.activeElement;
|
|
152
|
+
let target;
|
|
153
|
+
if (event.shiftKey)
|
|
154
|
+
target = current === first ? field : current === after ? last : undefined;
|
|
155
|
+
else
|
|
156
|
+
target = current === field ? first : current === last ? after : undefined;
|
|
157
|
+
if (!target)
|
|
158
|
+
return;
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
if (target === after)
|
|
161
|
+
event.stopPropagation();
|
|
162
|
+
target.focus({ preventScroll: true });
|
|
163
|
+
};
|
|
164
|
+
window.addEventListener('keydown', handleTab, true);
|
|
165
|
+
return () => window.removeEventListener('keydown', handleTab, true);
|
|
166
|
+
}, [isOpen]);
|
|
167
|
+
const activate = (next) => {
|
|
168
|
+
flushSync(() => setChosen(next));
|
|
169
|
+
if (!next)
|
|
170
|
+
return;
|
|
171
|
+
const index = ordered.findIndex((item) => item.value === next.value);
|
|
172
|
+
document.getElementById(rowId(index))?.scrollIntoView?.({ block: 'nearest' });
|
|
173
|
+
};
|
|
174
|
+
const move = (step) => {
|
|
175
|
+
if (navigable.length === 0)
|
|
176
|
+
return;
|
|
177
|
+
const from = active ? navigable.findIndex((item) => item.value === active.value) : -1;
|
|
178
|
+
const to = from === -1
|
|
179
|
+
? step === 1
|
|
180
|
+
? 0
|
|
181
|
+
: navigable.length - 1
|
|
182
|
+
: (from + step + navigable.length) % navigable.length;
|
|
183
|
+
const item = navigable[to];
|
|
184
|
+
activate({
|
|
185
|
+
value: item.value,
|
|
186
|
+
cell: active?.cell === 'facet' && canPin(item) ? 'facet' : 'item',
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
const focusFieldFromPopup = () => {
|
|
190
|
+
if (contentRef.current?.contains(document.activeElement))
|
|
191
|
+
inputEl.current?.focus();
|
|
192
|
+
};
|
|
193
|
+
const handleOpenChange = (details) => {
|
|
194
|
+
setOpen(details.open);
|
|
195
|
+
if (!details.open)
|
|
196
|
+
setChosen(null);
|
|
197
|
+
};
|
|
198
|
+
const choose = (item) => {
|
|
199
|
+
if (item.disabled)
|
|
200
|
+
return;
|
|
201
|
+
focusFieldFromPopup();
|
|
202
|
+
onSelect(item.value);
|
|
203
|
+
onInputValueChange('');
|
|
204
|
+
setChosen(null);
|
|
205
|
+
setOpen(false);
|
|
206
|
+
};
|
|
207
|
+
const togglePin = (facet) => {
|
|
208
|
+
facets?.onPinnedChange?.(pinned?.value === facet.value ? null : facet);
|
|
209
|
+
setChosen(null);
|
|
210
|
+
};
|
|
211
|
+
const unpin = () => {
|
|
212
|
+
facets?.onPinnedChange?.(null);
|
|
213
|
+
inputEl.current?.focus();
|
|
214
|
+
};
|
|
215
|
+
const handleChange = (event) => {
|
|
216
|
+
setChosen(null);
|
|
217
|
+
setOpen(true);
|
|
218
|
+
onInputValueChange(event.target.value);
|
|
219
|
+
};
|
|
220
|
+
const handleKeyDown = (event) => {
|
|
221
|
+
if (isComposingEvent(event) || event.ctrlKey || event.shiftKey)
|
|
222
|
+
return;
|
|
223
|
+
const input = event.currentTarget;
|
|
224
|
+
const activeItem = activeIndex >= 0 ? ordered[activeIndex] : undefined;
|
|
225
|
+
const caretAtEnd = input.selectionStart === input.value.length && input.selectionEnd === input.value.length;
|
|
226
|
+
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
|
|
227
|
+
event.preventDefault();
|
|
228
|
+
if (!isOpen)
|
|
229
|
+
setOpen(true);
|
|
230
|
+
move(event.key === 'ArrowDown' ? 1 : -1);
|
|
231
|
+
}
|
|
232
|
+
else if (event.key === 'ArrowRight' && isOpen && activeItem && active?.cell === 'item') {
|
|
233
|
+
if (isGrid && canPin(activeItem) && caretAtEnd) {
|
|
234
|
+
event.preventDefault();
|
|
235
|
+
activate({ value: activeItem.value, cell: 'facet' });
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
else if (event.key === 'ArrowLeft' && isOpen && activeItem && active?.cell === 'facet') {
|
|
239
|
+
event.preventDefault();
|
|
240
|
+
activate({ value: activeItem.value, cell: 'item' });
|
|
241
|
+
}
|
|
242
|
+
else if (event.key === 'Enter' && isOpen && activeItem) {
|
|
243
|
+
event.preventDefault();
|
|
244
|
+
if (active?.cell === 'facet' && activeItem.facet)
|
|
245
|
+
togglePin(activeItem.facet);
|
|
246
|
+
else
|
|
247
|
+
choose(activeItem);
|
|
248
|
+
}
|
|
249
|
+
else if (event.key === 'Backspace' && input.value === '' && pinned) {
|
|
250
|
+
facets?.onPinnedChange?.(null);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
const rowIndexOf = (target) => {
|
|
254
|
+
const row = target.closest('[data-index]');
|
|
255
|
+
return row ? Number(row.dataset.index) : -1;
|
|
256
|
+
};
|
|
257
|
+
const handleListClick = (event) => {
|
|
258
|
+
const item = ordered[rowIndexOf(event.target)];
|
|
259
|
+
if (!item)
|
|
260
|
+
return;
|
|
261
|
+
if (event.target.closest('[data-pin]') && item.facet)
|
|
262
|
+
togglePin(item.facet);
|
|
263
|
+
else
|
|
264
|
+
choose(item);
|
|
265
|
+
};
|
|
266
|
+
const handleListPointerMove = (event) => {
|
|
267
|
+
const item = ordered[rowIndexOf(event.target)];
|
|
268
|
+
if (item && !item.disabled && item.value !== active?.value) {
|
|
269
|
+
setChosen({ value: item.value, cell: 'item' });
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
const listName = label ? { 'aria-labelledby': labelId } : { 'aria-label': ariaLabel };
|
|
273
|
+
const hasStatus = status !== undefined || pinned !== null;
|
|
274
|
+
const hasHeader = toolbar !== undefined || hasStatus;
|
|
275
|
+
const isEmpty = items.length === 0 && emptyText !== undefined;
|
|
276
|
+
const rowOf = (item) => {
|
|
277
|
+
const index = ordered.indexOf(item);
|
|
278
|
+
const isActive = isOpen && index === activeIndex;
|
|
279
|
+
return {
|
|
280
|
+
item,
|
|
281
|
+
index,
|
|
282
|
+
rowId: rowId(index),
|
|
283
|
+
itemCellId: cellId(index, 'item'),
|
|
284
|
+
facetCellId: cellId(index, 'facet'),
|
|
285
|
+
highlighted: isActive,
|
|
286
|
+
pinnable: canPin(item),
|
|
287
|
+
pinned: pinned !== null && pinned.value === item.facet?.value,
|
|
288
|
+
pinActive: isActive && active?.cell === 'facet',
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
const sections = groups.map((group, groupIndex) => ({
|
|
292
|
+
label: group.label,
|
|
293
|
+
headingId: `${id}-group-${groupIndex}`,
|
|
294
|
+
rows: group.items.map(rowOf),
|
|
295
|
+
}));
|
|
80
296
|
/*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* busy page can trigger, since browsers run input events ahead of other
|
|
86
|
-
* tasks.
|
|
297
|
+
* Mouse input never takes focus from the field, so typing carries on: a
|
|
298
|
+
* press on a row, a pin or the header's background is cancelled. Only the
|
|
299
|
+
* header's own controls (a switch, a segment, the chip's remove button)
|
|
300
|
+
* take focus, as they would anywhere.
|
|
87
301
|
*/
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
302
|
+
const handleContentMouseDown = (event) => {
|
|
303
|
+
const target = event.target;
|
|
304
|
+
if (target.closest('.ds-combobox__list') || !target.closest(HEADER_CONTROLS)) {
|
|
305
|
+
event.preventDefault();
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
return (_jsxs(ArkPopover.Root, { open: isOpen, onOpenChange: handleOpenChange, lazyMount: true, unmountOnExit: true, autoFocus: false, restoreFocus: false, portalled: false, persistentElements: [() => rootRef.current], onEscapeKeyDown: focusFieldFromPopup, positioning: { placement: 'bottom-start', sameWidth: true }, children: [_jsxs("div", { ref: rootRef, className: cx('ds-combobox', `ds-combobox--${size}`, className), children: [label && (_jsx("label", { id: labelId, htmlFor: inputId, className: "ds-combobox__label", "data-disabled": disabled ? '' : undefined, children: label })), _jsx(ArkPopover.Anchor, { className: "ds-combobox__control", children: _jsx("input", { ref: setInputRef, id: inputId, type: "text", role: "combobox", className: "ds-combobox__input", value: inputValue, placeholder: placeholder, "aria-label": label ? undefined : ariaLabel, "aria-autocomplete": "list", "aria-haspopup": isGrid ? 'grid' : 'listbox', "aria-expanded": isOpen, "aria-controls": isOpen ? listId : undefined, "aria-activedescendant": activeDescendant, "aria-describedby": isOpen && hasStatus ? statusId : undefined, "aria-invalid": invalid || undefined, "data-invalid": invalid ? '' : undefined, disabled: disabled, autoComplete: "off", autoCorrect: "off", autoCapitalize: "none", spellCheck: false, onChange: handleChange, onClick: () => setOpen(true), onKeyDown: handleKeyDown }) })] }), _jsx(Portal, { container: portalContainer, children: _jsx(ArkPopover.Positioner, { children: _jsxs(ArkPopover.Content, { ref: contentRef, role: "presentation", className: "ds-combobox__content", onMouseDown: handleContentMouseDown, onClick: handleListClick, onPointerMove: handleListPointerMove, children: [hasHeader && (_jsxs("div", { ref: headerRef, className: "ds-combobox__header", children: [toolbar && _jsx("div", { className: "ds-combobox__toolbar", children: toolbar }), hasStatus && (_jsxs("p", { id: statusId, role: "status", className: "ds-combobox__status", children: [status, pinned && (_jsxs(_Fragment, { children: [' ', _jsx(PinnedChip, { facet: pinned, removeIcon: removeIcon, onRemove: unpin })] }))] }))] })), facets ? (_jsx(GridList, { id: listId, name: listName, facets: facets, sections: sections, emptyText: isEmpty ? emptyText : undefined, pinIcon: pinIcon })) : (_jsx(ListboxList, { id: listId, name: listName, sections: sections, emptyText: isEmpty ? emptyText : undefined }))] }) }) })] }));
|
|
309
|
+
}
|
|
310
|
+
const rowState = (row) => ({
|
|
311
|
+
'data-index': row.index,
|
|
312
|
+
'data-highlighted': row.highlighted ? '' : undefined,
|
|
313
|
+
'data-disabled': row.item.disabled ? '' : undefined,
|
|
314
|
+
});
|
|
315
|
+
function ItemText({ item }) {
|
|
316
|
+
return (_jsxs(_Fragment, { children: [_jsx("span", { className: "ds-combobox__item-label", children: item.label }), item.description && (_jsx("span", { className: "ds-combobox__item-description", children: item.description }))] }));
|
|
317
|
+
}
|
|
318
|
+
/*
|
|
319
|
+
* The listbox's options and groups take their roles on plain elements: the
|
|
320
|
+
* field keeps focus and points at an option with aria-activedescendant, so
|
|
321
|
+
* none of them is focusable, and HTML has no element for an option outside
|
|
322
|
+
* a native select. The lint rules asking for focusable or native elements
|
|
323
|
+
* are therefore suppressed here, and only here.
|
|
324
|
+
*/
|
|
325
|
+
function ListboxList({ id, name, sections, emptyText }) {
|
|
326
|
+
const option = (row) => (_jsx("div", { id: row.rowId, role: "option", "aria-selected": "false", "aria-disabled": row.item.disabled, className: "ds-combobox__item", ...rowState(row), children: _jsx(ItemText, { item: row.item }) }, row.item.value));
|
|
327
|
+
return (_jsxs("div", { id: id, role: "listbox", className: "ds-combobox__list", ...name, children: [sections.map((section) => section.label === undefined ? (section.rows.map(option)) : (_jsxs("div", { role: "group", "aria-labelledby": section.headingId, className: "ds-combobox__group", children: [_jsx("div", { id: section.headingId, className: "ds-combobox__group-label", children: section.label }), section.rows.map(option)] }, section.label))), emptyText !== undefined && (_jsx("div", { role: "option", "aria-disabled": "true", "aria-selected": "false", className: "ds-combobox__empty", children: emptyText }))] }));
|
|
328
|
+
}
|
|
329
|
+
/*
|
|
330
|
+
* A table in the grid role: its rows and cells line up in two columns by
|
|
331
|
+
* themselves, and a group of rows is a `tbody` named by its heading row.
|
|
332
|
+
* The keyboard skips heading rows, as it skips a listbox's group labels.
|
|
333
|
+
*/
|
|
334
|
+
function GridList({ id, name, facets, sections, emptyText, pinIcon }) {
|
|
335
|
+
const row = (model) => _jsx(GridRow, { row: model, pinIcon: pinIcon }, model.item.value);
|
|
336
|
+
return (_jsxs("table", { id: id, role: "grid", className: "ds-combobox__list ds-combobox__list--grid", ...name, children: [_jsx("thead", { className: "ds-visually-hidden", children: _jsxs("tr", { children: [_jsx("th", { scope: "col", children: facets.itemLabel }), _jsx("th", { scope: "col", children: facets.label })] }) }), sections.map((section) => section.label === undefined ? (_jsx("tbody", { children: section.rows.map(row) }, "ungrouped")) : (_jsxs("tbody", { "aria-labelledby": section.headingId, className: "ds-combobox__group", children: [_jsx("tr", { children: _jsx("th", { id: section.headingId, colSpan: 2, scope: "colgroup", className: "ds-combobox__group-label", children: section.label }) }), section.rows.map(row)] }, section.label))), emptyText !== undefined && (_jsx("tbody", { children: _jsx("tr", { children: _jsx(GridCell, { colSpan: 2, "aria-disabled": "true", className: "ds-combobox__empty", children: emptyText }) }) }))] }));
|
|
337
|
+
}
|
|
338
|
+
/*
|
|
339
|
+
* A cell of the grid, named so explicitly: a `td` in a grid table is a
|
|
340
|
+
* gridcell to browsers, but not to every tool, and the field keeps focus
|
|
341
|
+
* and points at the cell with aria-activedescendant, so it is not focusable.
|
|
342
|
+
*/
|
|
343
|
+
function GridCell(props) {
|
|
344
|
+
// biome-ignore lint/a11y/useFocusableInteractive: reached through aria-activedescendant from the field, never by focus
|
|
345
|
+
// biome-ignore lint/a11y/noNoninteractiveElementToInteractiveRole: a td in a grid table is a gridcell; named so for every tool
|
|
346
|
+
return _jsx("td", { role: "gridcell", ...props });
|
|
347
|
+
}
|
|
348
|
+
function GridRow({ row, pinIcon }) {
|
|
349
|
+
const { item } = row;
|
|
350
|
+
return (_jsxs("tr", { id: row.rowId, className: "ds-combobox__item", ...rowState(row), children: [_jsx(GridCell, { id: row.itemCellId, className: "ds-combobox__cell", "aria-disabled": item.disabled, children: _jsx(ItemText, { item: item }) }), _jsx(GridCell, { id: row.facetCellId, className: "ds-combobox__facet", children: item.facet && _jsx(FacetCell, { facet: item.facet, row: row, pinIcon: pinIcon }) })] }));
|
|
351
|
+
}
|
|
352
|
+
function FacetCell({ facet, row, pinIcon, }) {
|
|
353
|
+
return (_jsxs("span", { className: "ds-combobox__facet-content", children: [facet.icon, _jsx("span", { className: "ds-combobox__facet-label", children: facet.label }), row.pinnable && (_jsx("button", { type: "button", tabIndex: -1, className: "ds-combobox__pin", "aria-label": `Filter by ${facet.label}`, "aria-pressed": row.pinned, "data-pin": "", "data-active": row.pinActive ? '' : undefined, children: _jsx(Icon, { source: pinIcon, size: "sm", decorative: true }) }))] }));
|
|
354
|
+
}
|
|
355
|
+
function PinnedChip({ facet, removeIcon, onRemove }) {
|
|
356
|
+
return (_jsxs("span", { className: "ds-combobox__chip", children: [facet.icon, _jsx("span", { children: facet.label }), _jsx("button", { type: "button", className: "ds-combobox__chip-remove", "aria-label": `Stop filtering by ${facet.label}`, onClick: onRemove, children: _jsx(Icon, { source: removeIcon, size: "sm", decorative: true }) })] }));
|
|
91
357
|
}
|
|
92
358
|
//# sourceMappingURL=combobox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.js","sourceRoot":"","sources":["../../src/combobox/combobox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAA4B,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,gBAAgB,CAAC;AACxB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA2B3B,4EAA4E;AAC5E,wDAAwD;AACxD,SAAS,UAAU,CAAC,KAAqB;IACvC,MAAM,SAAS,GAAmB,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAI,GAAG,EAA0B,CAAC;IACjD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YAC7C,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IACD,OAAO;QACL,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,E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O,EAAE,OAAO,GAAI,GAClE,IACR,CACN,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,EACjB,KAAK,EACL,GAAG,EACH,OAAO,GAKR;IACC,OAAO,CACL,gBAAM,SAAS,EAAC,4BAA4B,aACzC,KAAK,CAAC,IAAI,EACX,eAAM,SAAS,EAAC,0BAA0B,YAAE,KAAK,CAAC,KAAK,GAAQ,EAC9D,GAAG,CAAC,QAAQ,IAAI,CACf,iBACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAC,kBAAkB,gBAChB,aAAa,KAAK,CAAC,KAAK,EAAE,kBACxB,GAAG,CAAC,MAAM,cACf,EAAE,iBACE,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,YAE3C,KAAC,IAAI,IAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,IAAI,EAAC,UAAU,SAAG,GACvC,CACV,IACI,CACR,CAAC;AACJ,CAAC;AAQD,SAAS,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAmB;IAClE,OAAO,CACL,gBAAM,SAAS,EAAC,mBAAmB,aAChC,KAAK,CAAC,IAAI,EACX,yBAAO,KAAK,CAAC,KAAK,GAAQ,EAC1B,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,0BAA0B,gBACxB,qBAAqB,KAAK,CAAC,KAAK,EAAE,EAC9C,OAAO,EAAE,QAAQ,YAEjB,KAAC,IAAI,IAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAC,IAAI,EAAC,UAAU,SAAG,GAC1C,IACJ,CACR,CAAC;AACJ,CAAC"}
|
package/dist/combobox/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/combobox/index.ts"],"names":[],"mappings":"AAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/combobox/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/combobox/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/combobox/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback-glyphs.d.ts","sourceRoot":"","sources":["../src/fallback-glyphs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAsB9C,eAAO,MAAM,YAAY,EAAE,UAW1B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,UAWzB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAWnB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAUnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"fallback-glyphs.d.ts","sourceRoot":"","sources":["../src/fallback-glyphs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAsB9C,eAAO,MAAM,YAAY,EAAE,UAW1B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,UAWzB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAWnB,CAAC;AAGF,eAAO,MAAM,KAAK,EAAE,UAUnB,CAAC;AAGF,eAAO,MAAM,GAAG,EAAE,UAWjB,CAAC"}
|
package/dist/fallback-glyphs.js
CHANGED
|
@@ -27,4 +27,6 @@ export const Check = (props) => (_jsx("svg", { "aria-hidden": "true", viewBox: "
|
|
|
27
27
|
Check.displayName = 'FallbackCheck';
|
|
28
28
|
export const Cross = (props) => (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", fill: "none", ...props, children: _jsx("path", { d: "m4 4 8 8m0-8-8 8", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }));
|
|
29
29
|
Cross.displayName = 'FallbackCross';
|
|
30
|
+
export const Pin = (props) => (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", fill: "none", ...props, children: _jsx("path", { d: "M6 2.5h4M7 2.5v3.75L4.5 9h7L9 6.25V2.5M8 9v4.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
31
|
+
Pin.displayName = 'FallbackPin';
|
|
30
32
|
//# sourceMappingURL=fallback-glyphs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fallback-glyphs.js","sourceRoot":"","sources":["../src/fallback-glyphs.tsx"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAe,CAAC,KAAK,EAAE,EAAE,CAAC,CACjD,6BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,KAAK,KAAK,YAC/D,eACE,CAAC,EAAC,cAAc,EAChB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,CACP,CAAC;AACF,YAAY,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAElD,MAAM,CAAC,MAAM,WAAW,GAAe,CAAC,KAAK,EAAE,EAAE,CAAC,CAChD,6BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,KAAK,KAAK,YAC/D,eACE,CAAC,EAAC,eAAe,EACjB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cA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6BAAiB,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,KAAK,KAAK,YAC/D,eACE,CAAC,EAAC,gDAAgD,EAClD,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,CACP,CAAC;AACF,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from './date-input';
|
|
|
13
13
|
export * from './dialog';
|
|
14
14
|
export * from './divider';
|
|
15
15
|
export * from './empty-state';
|
|
16
|
-
export { Check as FallbackCheck, ChevronLeft as FallbackChevronLeft, ChevronRight as FallbackChevronRight, Cross as FallbackCross, } from './fallback-glyphs';
|
|
16
|
+
export { Check as FallbackCheck, ChevronLeft as FallbackChevronLeft, ChevronRight as FallbackChevronRight, Cross as FallbackCross, Pin as FallbackPin, } from './fallback-glyphs';
|
|
17
17
|
export * from './field';
|
|
18
18
|
export * from './form-layout';
|
|
19
19
|
export * from './icon';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,K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,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export * from './date-input';
|
|
|
13
13
|
export * from './dialog';
|
|
14
14
|
export * from './divider';
|
|
15
15
|
export * from './empty-state';
|
|
16
|
-
export { Check as FallbackCheck, ChevronLeft as FallbackChevronLeft, ChevronRight as FallbackChevronRight, Cross as FallbackCross, } from './fallback-glyphs';
|
|
16
|
+
export { Check as FallbackCheck, ChevronLeft as FallbackChevronLeft, ChevronRight as FallbackChevronRight, Cross as FallbackCross, Pin as FallbackPin, } from './fallback-glyphs';
|
|
17
17
|
export * from './field';
|
|
18
18
|
export * from './form-layout';
|
|
19
19
|
export * from './icon';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,KAAK,IAAI,aAAa,EACtB,WAAW,IAAI,mBAAmB,EAClC,YAAY,IAAI,oBAAoB,EACpC,KAAK,IAAI,aAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;A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
6
|
"repository": {
|
|
@@ -314,8 +314,9 @@
|
|
|
314
314
|
"typecheck": "tsc --noEmit"
|
|
315
315
|
},
|
|
316
316
|
"dependencies": {
|
|
317
|
-
"@ark-ui/react": "^5.39.
|
|
318
|
-
"@internationalized/date": "^3.12.4"
|
|
317
|
+
"@ark-ui/react": "^5.39.3",
|
|
318
|
+
"@internationalized/date": "^3.12.4",
|
|
319
|
+
"@zag-js/dom-query": "^1.45.0"
|
|
319
320
|
},
|
|
320
321
|
"peerDependencies": {
|
|
321
322
|
"react": "^19.0.0",
|