@transferwise/components 45.28.0 → 45.28.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../src/inputs/SelectInput.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAkCjC,MAAM,WAAW,qBAAqB,CAAC,CAAC,GAAG,MAAM;IAC/C,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;IACT,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,MAAM;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,MAAM,IAClC,qBAAqB,CAAC,CAAC,CAAC,GACxB,oBAAoB,CAAC,CAAC,CAAC,GACvB,wBAAwB,CAAC;AAyD7B,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,MAAM;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,EAAE,SAAS,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClD,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,aAAa,CAAC,EACV,CAAC,MAAM,WAAW,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,GAC/B,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,E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,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,GACL,EAAE,6BAA6B,+BAiD/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "45.28.0",
3
+ "version": "45.28.1",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/i18n/cs.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 let",
16
16
  "neptune.DateLookup.year": "rok",
17
17
  "neptune.FlowNavigation.back": "back to previous step",
18
+ "neptune.Info.ariaLabel": "Více informací",
18
19
  "neptune.Link.opensInNewTab": "(opens in new tab)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Vybrat možnost...",
20
21
  "neptune.Select.searchPlaceholder": "Hledat...",
22
+ "neptune.SelectInput.noResultsFound": "Nebyly nalezeny žádné výsledky",
21
23
  "neptune.Summary.statusDone": "Položka dokončena",
22
24
  "neptune.Summary.statusNotDone": "Položka k dokončení",
23
25
  "neptune.Summary.statusPending": "Čekající položka",
package/src/i18n/de.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 Jahre",
16
16
  "neptune.DateLookup.year": "Jahr",
17
17
  "neptune.FlowNavigation.back": "zurück zum vorherigen Schritt",
18
+ "neptune.Info.ariaLabel": "Weitere Informationen",
18
19
  "neptune.Link.opensInNewTab": "(wird in einem neuen Tab geöffnet)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Wähle eine der Möglichkeiten aus...",
20
21
  "neptune.Select.searchPlaceholder": "Wird gesucht...",
22
+ "neptune.SelectInput.noResultsFound": "Keine Ergebnisse gefunden",
21
23
  "neptune.Summary.statusDone": "Schritt erledigt",
22
24
  "neptune.Summary.statusNotDone": "Schritt noch zu erledigen",
23
25
  "neptune.Summary.statusPending": "Schritt ausstehend",
package/src/i18n/es.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 años",
16
16
  "neptune.DateLookup.year": "año",
17
17
  "neptune.FlowNavigation.back": "volver al paso anterior",
18
+ "neptune.Info.ariaLabel": "Más información",
18
19
  "neptune.Link.opensInNewTab": "(se abre en una pestaña nueva)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Selecciona una opción...",
20
21
  "neptune.Select.searchPlaceholder": "Buscar...",
22
+ "neptune.SelectInput.noResultsFound": "No se han encontrado resultados",
21
23
  "neptune.Summary.statusDone": "Apartado listo",
22
24
  "neptune.Summary.statusNotDone": "Apartado a completar",
23
25
  "neptune.Summary.statusPending": "Apartado pendiente",
package/src/i18n/fr.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 ans",
16
16
  "neptune.DateLookup.year": "année",
17
17
  "neptune.FlowNavigation.back": "revenir à l'étape précédente",
18
+ "neptune.Info.ariaLabel": "Plus d'informations",
18
19
  "neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
20
21
  "neptune.Select.searchPlaceholder": "Recherche...",
22
+ "neptune.SelectInput.noResultsFound": "Aucun résultat trouvé",
21
23
  "neptune.Summary.statusDone": "Validé",
22
24
  "neptune.Summary.statusNotDone": "À compléter",
23
25
  "neptune.Summary.statusPending": "En attente",
package/src/i18n/hu.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 év",
16
16
  "neptune.DateLookup.year": "év",
17
17
  "neptune.FlowNavigation.back": "vissza az előző lépéshez",
18
+ "neptune.Info.ariaLabel": "További információ",
18
19
  "neptune.Link.opensInNewTab": "(új lapon nyílik meg)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Válassz ki egy lehetőséget...",
20
21
  "neptune.Select.searchPlaceholder": "Keresés...",
22
+ "neptune.SelectInput.noResultsFound": "Nincs találat",
21
23
  "neptune.Summary.statusDone": "Kész",
22
24
  "neptune.Summary.statusNotDone": "Hátravan",
23
25
  "neptune.Summary.statusPending": "Függőben",
package/src/i18n/id.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 tahun",
16
16
  "neptune.DateLookup.year": "tahun",
17
17
  "neptune.FlowNavigation.back": "kembali ke langkah sebelumnya",
18
+ "neptune.Info.ariaLabel": "Informasi lebih lanjut",
18
19
  "neptune.Link.opensInNewTab": "(terbuka di tab baru)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Pilih opsi...",
20
21
  "neptune.Select.searchPlaceholder": "Cari...",
22
+ "neptune.SelectInput.noResultsFound": "Hasil tidak ditemukan",
21
23
  "neptune.Summary.statusDone": "Item selesai",
22
24
  "neptune.Summary.statusNotDone": "Item yang harus dilakukan",
23
25
  "neptune.Summary.statusPending": "Item tertunda",
package/src/i18n/it.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 anni",
16
16
  "neptune.DateLookup.year": "anno",
17
17
  "neptune.FlowNavigation.back": "torna al passaggio precedente",
18
+ "neptune.Info.ariaLabel": "Maggiori informazioni",
18
19
  "neptune.Link.opensInNewTab": "(si apre in una nuova scheda)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Seleziona un'opzione...",
20
21
  "neptune.Select.searchPlaceholder": "Cerca...",
22
+ "neptune.SelectInput.noResultsFound": "Nessun risultato trovato",
21
23
  "neptune.Summary.statusDone": "Completato",
22
24
  "neptune.Summary.statusNotDone": "Da completare",
23
25
  "neptune.Summary.statusPending": "In corso",
package/src/i18n/ja.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20年",
16
16
  "neptune.DateLookup.year": "年",
17
17
  "neptune.FlowNavigation.back": "前のステップに戻る",
18
+ "neptune.Info.ariaLabel": "詳細",
18
19
  "neptune.Link.opensInNewTab": "(新しいタブで開きます)",
19
20
  "neptune.MoneyInput.Select.placeholder": "選択してください...",
20
21
  "neptune.Select.searchPlaceholder": "検索... ",
22
+ "neptune.SelectInput.noResultsFound": "結果が見つかりませんでした",
21
23
  "neptune.Summary.statusDone": "完了",
22
24
  "neptune.Summary.statusNotDone": "未対応",
23
25
  "neptune.Summary.statusPending": "保留中",
package/src/i18n/pl.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 lat",
16
16
  "neptune.DateLookup.year": "rok",
17
17
  "neptune.FlowNavigation.back": "wróć do poprzedniego kroku",
18
+ "neptune.Info.ariaLabel": "Więcej informacji",
18
19
  "neptune.Link.opensInNewTab": "(otworzy się w nowej zakładce)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Wybierz opcję...",
20
21
  "neptune.Select.searchPlaceholder": "Wyszukaj...",
22
+ "neptune.SelectInput.noResultsFound": "Nie znaleziono wyników",
21
23
  "neptune.Summary.statusDone": "Czynność wykonana",
22
24
  "neptune.Summary.statusNotDone": "Czynność do wykonania",
23
25
  "neptune.Summary.statusPending": "Czynność oczekująca",
package/src/i18n/pt.json CHANGED
@@ -7,17 +7,19 @@
7
7
  "neptune.DateInput.month.label": "Mês",
8
8
  "neptune.DateInput.year.label": "Ano",
9
9
  "neptune.DateLookup.day": "dia",
10
- "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
10
+ "neptune.DateLookup.goTo20YearView": "Acessar a visualização de 20 anos",
11
11
  "neptune.DateLookup.month": "mês",
12
12
  "neptune.DateLookup.next": "próximo",
13
13
  "neptune.DateLookup.previous": "anterior",
14
14
  "neptune.DateLookup.selected": "selecionada",
15
15
  "neptune.DateLookup.twentyYears": "20 anos",
16
16
  "neptune.DateLookup.year": "ano",
17
- "neptune.FlowNavigation.back": "back to previous step",
18
- "neptune.Link.opensInNewTab": "(abrir a página em uma nova aba)",
17
+ "neptune.FlowNavigation.back": "voltar à etapa anterior",
18
+ "neptune.Info.ariaLabel": "Mais informações",
19
+ "neptune.Link.opensInNewTab": "(abre em uma nova aba)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
20
21
  "neptune.Select.searchPlaceholder": "Buscar...",
22
+ "neptune.SelectInput.noResultsFound": "Nenhum resultado encontrado",
21
23
  "neptune.Summary.statusDone": "Pronto",
22
24
  "neptune.Summary.statusNotDone": "Não iniciado",
23
25
  "neptune.Summary.statusPending": "Pendente",
package/src/i18n/ro.json CHANGED
@@ -8,16 +8,18 @@
8
8
  "neptune.DateInput.year.label": "An",
9
9
  "neptune.DateLookup.day": "zi",
10
10
  "neptune.DateLookup.goTo20YearView": "Accesează vizualizarea pe 20 de ani",
11
- "neptune.DateLookup.month": "luna",
11
+ "neptune.DateLookup.month": "lună",
12
12
  "neptune.DateLookup.next": "înainte",
13
- "neptune.DateLookup.previous": "precedenta",
13
+ "neptune.DateLookup.previous": "înapoi",
14
14
  "neptune.DateLookup.selected": "selectată",
15
15
  "neptune.DateLookup.twentyYears": "20 de ani",
16
- "neptune.DateLookup.year": "anul",
16
+ "neptune.DateLookup.year": "an",
17
17
  "neptune.FlowNavigation.back": "înapoi la pasul anterior",
18
+ "neptune.Info.ariaLabel": "Mai multe informații",
18
19
  "neptune.Link.opensInNewTab": "(se deschide într-o filă nouă)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
20
21
  "neptune.Select.searchPlaceholder": "Caută...",
22
+ "neptune.SelectInput.noResultsFound": "Nu s-a găsit niciun rezultat",
21
23
  "neptune.Summary.statusDone": "Finalizat",
22
24
  "neptune.Summary.statusNotDone": "De făcut",
23
25
  "neptune.Summary.statusPending": "În așteptare",
package/src/i18n/ru.json CHANGED
@@ -10,14 +10,16 @@
10
10
  "neptune.DateLookup.goTo20YearView": "Перейти к обзору 20 лет",
11
11
  "neptune.DateLookup.month": "месяц",
12
12
  "neptune.DateLookup.next": "далее",
13
- "neptune.DateLookup.previous": "предыдущий",
13
+ "neptune.DateLookup.previous": "назад",
14
14
  "neptune.DateLookup.selected": "выбрано",
15
15
  "neptune.DateLookup.twentyYears": "20 лет",
16
16
  "neptune.DateLookup.year": "год",
17
17
  "neptune.FlowNavigation.back": "вернуться к предыдущему шагу",
18
+ "neptune.Info.ariaLabel": "Подробнее",
18
19
  "neptune.Link.opensInNewTab": "(откроется в новой вкладке)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Выберите вариант...",
20
21
  "neptune.Select.searchPlaceholder": "Поиск...",
22
+ "neptune.SelectInput.noResultsFound": "Ничего не найдено",
21
23
  "neptune.Summary.statusDone": "Этап завершен",
22
24
  "neptune.Summary.statusNotDone": "Этап к выполнению",
23
25
  "neptune.Summary.statusPending": "Этап в процессе",
package/src/i18n/th.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 ปี",
16
16
  "neptune.DateLookup.year": "ปี",
17
17
  "neptune.FlowNavigation.back": "back to previous step",
18
+ "neptune.Info.ariaLabel": "ข้อมูลเพิ่มเติม",
18
19
  "neptune.Link.opensInNewTab": "(opens in new tab)",
19
20
  "neptune.MoneyInput.Select.placeholder": "เลือกตัวเลือก...",
20
21
  "neptune.Select.searchPlaceholder": "ค้นหา...",
22
+ "neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
21
23
  "neptune.Summary.statusDone": "รายการที่ทำแล้ว",
22
24
  "neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
23
25
  "neptune.Summary.statusPending": "รายการที่รอดำเนินการ",
package/src/i18n/tr.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 yıl",
16
16
  "neptune.DateLookup.year": "yıl",
17
17
  "neptune.FlowNavigation.back": "önceki adıma dön",
18
+ "neptune.Info.ariaLabel": "Daha fazla bilgi",
18
19
  "neptune.Link.opensInNewTab": "(yeni sekmede açılır)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Bir seçenek seçin...",
20
21
  "neptune.Select.searchPlaceholder": "Ara...",
22
+ "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
21
23
  "neptune.Summary.statusDone": "Tamamlanan aşama",
22
24
  "neptune.Summary.statusNotDone": "Yapılacak",
23
25
  "neptune.Summary.statusPending": "Bekliyor",
package/src/i18n/uk.json CHANGED
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20 років",
16
16
  "neptune.DateLookup.year": "рік",
17
17
  "neptune.FlowNavigation.back": "back to previous step",
18
+ "neptune.Info.ariaLabel": "Більше відомостей",
18
19
  "neptune.Link.opensInNewTab": "(opens in new tab)",
19
20
  "neptune.MoneyInput.Select.placeholder": "Виберіть варіант…",
20
21
  "neptune.Select.searchPlaceholder": "Пошук…",
22
+ "neptune.SelectInput.noResultsFound": "Нічого не знайдено",
21
23
  "neptune.Summary.statusDone": "Виконано",
22
24
  "neptune.Summary.statusNotDone": "Не виконано",
23
25
  "neptune.Summary.statusPending": "Виконується",
@@ -1,23 +1,25 @@
1
1
  {
2
2
  "neptune.Button.loadingAriaLabel": "正在加载",
3
3
  "neptune.Chips.ariaLabel": "清除 {choice}",
4
- "neptune.ClearButton.ariaLabel": "清晰",
4
+ "neptune.ClearButton.ariaLabel": "清除",
5
5
  "neptune.CloseButton.ariaLabel": "关闭",
6
6
  "neptune.DateInput.day.label": "日",
7
7
  "neptune.DateInput.month.label": "月",
8
8
  "neptune.DateInput.year.label": "年",
9
9
  "neptune.DateLookup.day": "日",
10
- "neptune.DateLookup.goTo20YearView": "Go to 20 year view",
10
+ "neptune.DateLookup.goTo20YearView": "转到 20 年视图",
11
11
  "neptune.DateLookup.month": "月",
12
12
  "neptune.DateLookup.next": "下一页",
13
13
  "neptune.DateLookup.previous": "上一页",
14
14
  "neptune.DateLookup.selected": "已选",
15
- "neptune.DateLookup.twentyYears": "20年",
15
+ "neptune.DateLookup.twentyYears": "20 年",
16
16
  "neptune.DateLookup.year": "年",
17
- "neptune.FlowNavigation.back": "back to previous step",
18
- "neptune.Link.opensInNewTab": "(opens in new tab)",
17
+ "neptune.FlowNavigation.back": "返回上一步",
18
+ "neptune.Info.ariaLabel": "更多信息",
19
+ "neptune.Link.opensInNewTab": "(在新标签页中打开)",
19
20
  "neptune.MoneyInput.Select.placeholder": "请选择...",
20
21
  "neptune.Select.searchPlaceholder": "搜索",
22
+ "neptune.SelectInput.noResultsFound": "找不到结果",
21
23
  "neptune.Summary.statusDone": "已完成",
22
24
  "neptune.Summary.statusNotDone": "未完成",
23
25
  "neptune.Summary.statusPending": "待处理",
@@ -33,7 +35,7 @@
33
35
  "neptune.Upload.usPlaceholder": "拖放小于 5MB 的文件",
34
36
  "neptune.UploadButton.allFileTypes": "所有文件类型",
35
37
  "neptune.UploadButton.dropFiles": "拖放文件开始上传",
36
- "neptune.UploadButton.instructions": "{fileTypes},小于 {size}MB",
38
+ "neptune.UploadButton.instructions": "{fileTypes},小于 {size} MB",
37
39
  "neptune.UploadButton.uploadFile": "上传文件",
38
40
  "neptune.UploadButton.uploadFiles": "上传文件",
39
41
  "neptune.UploadInput.deleteModalBody": "删除此文件会将其从我们的系统中删除",
@@ -15,9 +15,11 @@
15
15
  "neptune.DateLookup.twentyYears": "20年",
16
16
  "neptune.DateLookup.year": "年",
17
17
  "neptune.FlowNavigation.back": "返回上一個步驟",
18
+ "neptune.Info.ariaLabel": "更多資訊",
18
19
  "neptune.Link.opensInNewTab": "(在新分頁中開啟)",
19
20
  "neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
20
21
  "neptune.Select.searchPlaceholder": "搜尋…",
22
+ "neptune.SelectInput.noResultsFound": "找不到任何結果",
21
23
  "neptune.Summary.statusDone": "已完成事項",
22
24
  "neptune.Summary.statusNotDone": "未完成事項",
23
25
  "neptune.Summary.statusPending": "待處理事項",
@@ -1,5 +1,5 @@
1
1
  import { act, screen, within } from '@testing-library/react';
2
- import userEvent, { specialChars } from '@testing-library/user-event';
2
+ import userEvent from '@testing-library/user-event';
3
3
 
4
4
  import { render, mockMatchMedia, mockResizeObserver } from '../test-utils';
5
5
 
@@ -44,7 +44,7 @@ describe('SelectInput', () => {
44
44
  // eslint-disable-next-line @typescript-eslint/require-await
45
45
  await act(async () => {
46
46
  userEvent.tab();
47
- userEvent.keyboard(specialChars.enter);
47
+ userEvent.keyboard(' ');
48
48
  });
49
49
 
50
50
  const footer = screen.getByText('All items shown');
@@ -59,7 +59,7 @@ describe('SelectInput', () => {
59
59
  userEvent.keyboard('x');
60
60
  expect(footer).toHaveTextContent(/‘urx’$/);
61
61
 
62
- userEvent.keyboard(specialChars.backspace);
62
+ userEvent.keyboard('{Backspace}');
63
63
  expect(footer).toHaveTextContent(/‘ur’$/);
64
64
  });
65
65
 
@@ -110,7 +110,7 @@ describe('SelectInput', () => {
110
110
  // eslint-disable-next-line @typescript-eslint/require-await
111
111
  await act(async () => {
112
112
  userEvent.tab();
113
- userEvent.keyboard(specialChars.enter);
113
+ userEvent.keyboard(' ');
114
114
  });
115
115
 
116
116
  const listbox = screen.getByRole('listbox');
@@ -125,7 +125,7 @@ describe('SelectInput', () => {
125
125
  userEvent.keyboard('x');
126
126
  expect(within(listbox).queryByRole('option')).not.toBeInTheDocument();
127
127
 
128
- userEvent.keyboard(specialChars.backspace);
128
+ userEvent.keyboard('{Backspace}');
129
129
  expect(within(listbox).getByRole('option')).toBeInTheDocument();
130
130
 
131
131
  const option = within(listbox).getAllByRole('option')[0];
@@ -42,7 +42,8 @@ function inferSearchableStrings(value: unknown) {
42
42
 
43
43
  const SelectInputTriggerButtonPropsContext = createContext<{
44
44
  ref?: React.ForwardedRef<HTMLButtonElement>;
45
- onClick?: () => void;
45
+ onClick?: (event: React.MouseEvent) => void;
46
+ onKeyDown?: (event: React.KeyboardEvent) => void;
46
47
  [key: string]: unknown;
47
48
  }>({});
48
49
  const SelectInputOptionContentWithinTriggerContext = createContext(false);
@@ -266,6 +267,16 @@ export function SelectInput<T = string>({
266
267
  onClick: () => {
267
268
  setOpen((prev) => !prev);
268
269
  },
270
+ onKeyDown: (event: React.KeyboardEvent) => {
271
+ if (
272
+ event.key === ' ' ||
273
+ event.key === 'Enter' ||
274
+ event.key === 'ArrowDown' ||
275
+ event.key === 'ArrowUp'
276
+ ) {
277
+ setOpen((prev) => !prev);
278
+ }
279
+ },
269
280
  },
270
281
  getInteractionProps(),
271
282
  ),
@@ -326,14 +337,16 @@ export function SelectInputTriggerButton<T extends SelectInputTriggerButtonEleme
326
337
  as = 'button' as T,
327
338
  ...restProps
328
339
  }: SelectInputTriggerButtonProps<T>) {
329
- const { ref, onClick, ...interactionProps } = useContext(SelectInputTriggerButtonPropsContext);
340
+ const { ref, onClick, onKeyDown, ...interactionProps } = useContext(
341
+ SelectInputTriggerButtonPropsContext,
342
+ );
330
343
 
331
344
  return (
332
345
  <ListboxBase.Button
333
346
  ref={ref}
334
347
  as={PolymorphicWithOverrides}
335
348
  __overrides={{ as, ...interactionProps }}
336
- {...mergeProps({ onClick }, restProps)}
349
+ {...mergeProps({ onClick, onKeyDown }, restProps)}
337
350
  />
338
351
  );
339
352
  }