Skip to content

Releases: carloluis/ssuggestor

Package Theme

19 Jun 14:29
af7b57c
Compare
Choose a tag to compare

Added theme property to <Suggestor/>to facilitate custom styling 🎨

{
    "root": "wrapper <div> element class(es)",
    "input": "<input> element class(es)",
    "arrow": "<span> class(es): open suggestion list indicator (🔻)",
    "close": "<span> class(es): remove current value indicator (✖️)",
    "list": "<ul> class(es)",
    "item": "<li> class(es)",
    "activeItem": "<li> class(es) when active/hover"
}

component ref

02 May 02:43
dcab1de
Compare
Choose a tag to compare

reduce lib size from 10921 to 10915 bytes

Update component input ref using React.createRef

reduce library script size

20 Apr 01:34
9017dca
Compare
Choose a tag to compare

reduce lib size from 11067 to 10921 bytes

  • babel helpers definition only once ⛑
  • update contrib. doc (Issue, PR)

remove library prop-types

13 Apr 01:12
418f546
Compare
Choose a tag to compare

remove prop-types on production script

11.9 KiB 🔻10.6 KiB
check ssuggestor on unpkg

smaller file - updates

27 Feb 02:12
3bde5a3
Compare
Choose a tag to compare
  • update package keywords
  • update webpack to version 4
  • decrease script size: (12.43 kB -> 12.38 kB)

behavior when toggling suggestions

18 Feb 20:51
1a4baae
Compare
Choose a tag to compare
  • click always toggle suggestions list (open / close)
  • up | down keys always display suggestions

select only suggestion list items

14 Feb 02:28
dde1211
Compare
Choose a tag to compare

callback prop: onSelect is called when suggestion is selected / unselected

onSelect: (value, suggestion) => { }

suggestion objects

11 Feb 15:56
40ecadf
Compare
Choose a tag to compare

support for suggestion objects with a selector function: object => string

  • update project dependencies

component functions auto-bind

24 Dec 21:34
51e8b55
Compare
Choose a tag to compare
  • remove arrow functions on components
  • use auto-bind utility func. instead of manually bind

suggestions behavior

23 Sep 18:35
Compare
Choose a tag to compare

only display matched suggestions when component props changed