157 Commits

Author SHA1 Message Date
Tom Southall
9282c4b7ef If the text prop is supplied and a matching item is found, onSelect is automatically fired 2022-05-19 15:41:43 +01:00
Tom Southall
28ac24be57 Bump version 2022-05-14 10:04:07 +01:00
Tom Southall
a92e414eb2 Changing styles prop now triggers a re-render 2022-05-13 15:55:18 +01:00
Tom Southall
9510480707 Resolve merge conflicts 2022-05-11 18:43:09 +01:00
Tom Southall
904121a96a No longer automatically fire onSelect and onChange events on first render. Only in response to user events. 2022-05-11 18:41:16 +01:00
Tom Southall
8d6863e3f6 Remove redundant react-use dependency 2022-05-11 12:02:59 +01:00
Tom Southall
2b1bd141fa Expose DOM methods via a forwarded ref 2022-04-06 22:27:33 +01:00
Tom Southall
c1d53e1d2b Allow functions for listbox and defaultListbox props
Extend listbox and defaultListbox prop types to allow functions returning a promise resolving to an array of group settings
2022-04-02 23:35:52 +01:00
Tom Southall
791622770a Remove console log 2022-04-02 12:56:14 +01:00
Tom Southall
941c25926e Move test API host to env. Add plugin as import. 2022-04-02 12:55:19 +01:00
Tom Southall
7ddfdcdada Remove temp plugins folder 2022-04-02 12:35:42 +01:00
Tom Southall
ada24e2606 Add CodeSandbox demo to README 2022-03-26 20:38:36 +00:00
Tom Southall
250304b743 Bump version 2022-03-25 16:44:20 +00:00
Tom Southall
9a0d126770 Left align container div contents when focussed by default 2022-03-25 16:43:21 +00:00
Tom Southall
a75a3b7378 Left align container div contents by default 2022-03-25 16:36:56 +00:00
Tom Southall
7018a8835e Fix issue affecting various keypresses when search box is empty 2022-03-25 16:34:32 +00:00
Tom Southall
df4a549133 Fix issue in basic REAMDE example 2022-03-25 16:08:14 +00:00
Tom Southall
8c0916245d Update version and changelog to 1.2.1 2022-03-24 13:07:13 +00:00
Tom Southall
95629360b5 Fix minimist dependency vulnerability 2022-03-24 13:04:55 +00:00
Tom Southall
dcc7bfb640 Add enterKeyHint prop 2022-03-24 12:14:42 +00:00
Tom Southall
613cf75279 Add live demo links to README 2022-03-16 19:13:17 +00:00
Tom Southall
9a2f83a934 Change example screenshot 2022-03-15 16:01:23 +00:00
Tom Southall
cf8bff37bb Correct version number in CHANGELOG 2022-03-15 15:42:13 +00:00
Tom Southall
cbe957195d Prevent no items message from displaying whilst items are being fetched 2022-03-15 15:41:32 +00:00
Tom Southall
aad534f187 Remove redundant TODOs 2022-03-15 14:42:04 +00:00
Tom Southall
ebacd8b6ef Add note to README regarding onSelect being called when an item is no longer selected 2022-03-15 14:19:48 +00:00
Tom Southall
238080b01f Use autofocus HTML attribute instead of a useEffect hook 2022-03-15 14:13:49 +00:00
Tom Southall
90ecbb0caf Add MIT License 2022-03-15 14:06:11 +00:00
Tom Southall
8a0f3cfe5f Add pre-commit hooks for test and lint 2022-03-15 13:54:49 +00:00
Tom Southall
3cd6b1f017 Add no-console and no-debugger eslint rules 2022-03-15 13:26:22 +00:00
Tom Southall
c762a77c76 Ensure a no-items message is displayed if a query is entered but no items have ever been loaded 2022-03-15 13:20:15 +00:00
Tom Southall
ba6610a66c Do not do any text matching in default listbox 2022-03-15 12:48:17 +00:00
Tom Southall
4c55ad8c64 Pass the highlighted state to custom Item component 2022-03-15 12:42:30 +00:00
Tom Southall
cf28dacd35 Only show a transparent background on input box if there is no typeahead 2022-03-15 12:36:24 +00:00
Tom Southall
fb4b49b8c2 Alter server port and auto-open in config 2022-03-15 12:21:19 +00:00
Tom Southall
138aa599cf Correction to logo colour 2022-03-14 11:35:44 +00:00
Tom Southall
a2fbbc5d34 Add screengrab gif to README 2022-03-13 21:58:38 +00:00
Tom Southall
9a01638783 Image formatting on README 2022-03-13 21:03:57 +00:00
Tom Southall
3170471975 Add Turnstone logo to README 2022-03-13 20:49:50 +00:00
Tom Southall
3ba8cfdaf2 Turnstone logo 2022-03-13 20:35:26 +00:00
Tom Southall
fe7d038729 Remove plugins argument from plugin render function 2022-03-12 22:36:42 +00:00
Tom Southall
2d2fd18081 Date changelog 2022-03-12 20:58:53 +00:00
Tom Southall
be90aa264e Update CHANGELOG 2022-03-12 20:54:21 +00:00
Tom Southall
90fc9c29c5 Remove React import 2022-03-12 20:53:49 +00:00
Tom Southall
2500547716 Revamp plugins so that each acts as a wrapper component around Container 2022-03-12 20:51:42 +00:00
Tom Southall
3284de9f62 No need for dependency 2022-03-11 23:35:27 +00:00
Tom Southall
2dcdfb5887 More robust checking for typeahead presence 2022-03-11 22:01:45 +00:00
Tom Southall
0f79dad028 Change lib name in vite config 2022-03-11 21:43:23 +00:00
Tom Southall
9f7ea41e63 Update changelog and version 2022-03-11 21:07:06 +00:00
Tom Southall
9c98b30e16 Do not show typeahead unless there is more than one item in the listbox 2022-03-11 21:05:51 +00:00