UNPKG

@spark-web/combobox

Version:

--- title: Combobox storybookPath: forms-combobox--default isExperimentalPackage: true ---

306 lines (242 loc) 13.4 kB
# @spark-web/combobox ## 1.6.0 ### Minor Changes - [#350](https://github.com/brighte-labs/spark-web/pull/350) [`079a438`](https://github.com/brighte-labs/spark-web/commit/079a4386d5c2678a45482c5b9af97ec6a5cd60e0) Thanks [@selmer-dr](https://github.com/selmer-dr)! - adding defaultOption prop - option to be rendered regardless of filter result ## 1.5.0 ### Minor Changes - [#260](https://github.com/brighte-labs/spark-web/pull/260) [`9efaf0b`](https://github.com/brighte-labs/spark-web/commit/9efaf0bad5d620c6c33d52db307ed15fc51fe651) Thanks [@szhang-brighte](https://github.com/szhang-brighte)! - Expose menuPortalTarget prop from react-select ## 1.4.4 ### Patch Changes - [#222](https://github.com/brighte-labs/spark-web/pull/222) [`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update dependencies - [#242](https://github.com/brighte-labs/spark-web/pull/242) [`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a) Thanks [@lukebennett88](https://github.com/lukebennett88)! - - Add homepage and repository keys to package.json - Add CHANGELOG and README to files key in package.json - Updated dependencies [[`adc5e9e`](https://github.com/brighte-labs/spark-web/commit/adc5e9e6c99acd117f3261edcefdb5573132441b), [`de99b9c`](https://github.com/brighte-labs/spark-web/commit/de99b9c7f72373bd1902cf67f5cfec9a1e1db01c), [`6fc8d1b`](https://github.com/brighte-labs/spark-web/commit/6fc8d1bc37e25d0cd622bc37f68a1d92eb5961b5), [`7f93c45`](https://github.com/brighte-labs/spark-web/commit/7f93c45bbae8c765e10df9d0dd7615473797749b), [`62f7de8`](https://github.com/brighte-labs/spark-web/commit/62f7de8a2e1df5ae088c093d3acdaa868d3f61fe), [`6df05f7`](https://github.com/brighte-labs/spark-web/commit/6df05f764e4181c140d6547d6b897d0210468f6a)]: - @spark-web/box@1.1.0 - @spark-web/field@3.0.6 - @spark-web/icon@1.2.2 - @spark-web/text@1.1.2 - @spark-web/text-input@2.0.4 - @spark-web/a11y@1.3.2 - @spark-web/spinner@1.0.8 - @spark-web/theme@3.1.0 - @spark-web/utils@1.2.3 ## 1.4.3 ### Patch Changes - [#208](https://github.com/brighte-labs/spark-web/pull/208) [`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Lower required node version - Updated dependencies [[`1ea26ef`](https://github.com/brighte-labs/spark-web/commit/1ea26ef04a3b45875ed0dd2326eeab1fbe1e4bc5)]: - @spark-web/a11y@1.3.1 - @spark-web/box@1.0.9 - @spark-web/field@3.0.5 - @spark-web/icon@1.2.1 - @spark-web/spinner@1.0.7 - @spark-web/text@1.1.1 - @spark-web/text-input@2.0.3 - @spark-web/theme@3.0.6 - @spark-web/utils@1.2.2 ## 1.4.2 ### Patch Changes - [#197](https://github.com/brighte-labs/spark-web/pull/197) [`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update packages - Updated dependencies [[`51b6c7a`](https://github.com/brighte-labs/spark-web/commit/51b6c7a43f441e02b90403b13af9cfa11e5438ef), [`9ff0c4b`](https://github.com/brighte-labs/spark-web/commit/9ff0c4b4cc83e0e1ab609d0bcdb01458b654263e), [`07286b5`](https://github.com/brighte-labs/spark-web/commit/07286b52f897909b1a806d736e1040351c93078f), [`94016d8`](https://github.com/brighte-labs/spark-web/commit/94016d84e26bbe55833bbcbab847a2cce6041538)]: - @spark-web/a11y@1.3.0 - @spark-web/text@1.1.0 - @spark-web/icon@1.2.0 - @spark-web/box@1.0.8 - @spark-web/field@3.0.4 - @spark-web/spinner@1.0.6 - @spark-web/text-input@2.0.2 - @spark-web/theme@3.0.5 - @spark-web/utils@1.2.1 ## 1.4.1 ### Patch Changes - [#172](https://github.com/brighte-labs/spark-web/pull/172) [`2b51ca5`](https://github.com/brighte-labs/spark-web/commit/2b51ca57f127929d4354a5dea8e46786ab03d655) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Sort props and fix variable shadowing * [#173](https://github.com/brighte-labs/spark-web/pull/173) [`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update babel dependency - [#178](https://github.com/brighte-labs/spark-web/pull/178) [`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Switch from using `:invalid` pseudo-class to using data-attribute for invalid styles of inputs * [#173](https://github.com/brighte-labs/spark-web/pull/173) [`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update react-select dependency * Updated dependencies [[`90b7e9c`](https://github.com/brighte-labs/spark-web/commit/90b7e9cf4eb7e864d765c74b22c3dedf3d262e25), [`be99536`](https://github.com/brighte-labs/spark-web/commit/be99536abb56dd26e5c9a1703e6df9c7860b449b), [`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62), [`c3867af`](https://github.com/brighte-labs/spark-web/commit/c3867af7b77dfae3580ab63a5d5c9e8452f2da62)]: - @spark-web/a11y@1.2.0 - @spark-web/box@1.0.7 - @spark-web/field@3.0.3 - @spark-web/icon@1.1.5 - @spark-web/spinner@1.0.5 - @spark-web/text-input@2.0.1 - @spark-web/text@1.0.7 - @spark-web/theme@3.0.3 - @spark-web/utils@1.2.0 ## 1.4.0 ### Minor Changes - [#171](https://github.com/brighte-labs/spark-web/pull/171) [`f023ef7`](https://github.com/brighte-labs/spark-web/commit/f023ef7cce17ffd87c406fccae0c6c26da8d0393) Thanks [@clothoo](https://github.com/clothoo)! - Expose combobox hook ### Patch Changes - [#169](https://github.com/brighte-labs/spark-web/pull/169) [`7be2283`](https://github.com/brighte-labs/spark-web/commit/7be2283c91741bf87ede08a1e3d9f7eaec586d38) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Memoize useReactSelectComponentsOverride - Updated dependencies [[`7be2283`](https://github.com/brighte-labs/spark-web/commit/7be2283c91741bf87ede08a1e3d9f7eaec586d38)]: - @spark-web/field@3.0.2 ## 1.3.2 ### Patch Changes - [#158](https://github.com/brighte-labs/spark-web/pull/158) [`550b4b0`](https://github.com/brighte-labs/spark-web/commit/550b4b0509aba1f37d20fa8205ae01b2383eec5e) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Refactor to work with updated useInputStyles * [#148](https://github.com/brighte-labs/spark-web/pull/148) [`ad02c82`](https://github.com/brighte-labs/spark-web/commit/ad02c8279d3813956d9372db5a69c361482b7f72) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Make Field a peer dep to avoid context bug - [#167](https://github.com/brighte-labs/spark-web/pull/167) [`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update Babel - Updated dependencies [[`550b4b0`](https://github.com/brighte-labs/spark-web/commit/550b4b0509aba1f37d20fa8205ae01b2383eec5e), [`ad02c82`](https://github.com/brighte-labs/spark-web/commit/ad02c8279d3813956d9372db5a69c361482b7f72), [`2ba486a`](https://github.com/brighte-labs/spark-web/commit/2ba486a504bd0704935aaad2b8442907dc1899ac), [`4f79350`](https://github.com/brighte-labs/spark-web/commit/4f793508fdb43ddd452f0d59a3126101f9fa5459), [`f524009`](https://github.com/brighte-labs/spark-web/commit/f5240098cf731b0a2e351b7b585711e893a33736), [`60f7281`](https://github.com/brighte-labs/spark-web/commit/60f7281c4a194d934a2ce561cad47e737b0fb48e)]: - @spark-web/text-input@2.0.0 - @spark-web/a11y@1.1.0 - @spark-web/box@1.0.6 - @spark-web/field@3.0.1 - @spark-web/icon@1.1.4 - @spark-web/spinner@1.0.4 - @spark-web/text@1.0.6 - @spark-web/theme@3.0.2 - @spark-web/utils@1.1.5 ## 1.3.1 ### Patch Changes - Updated dependencies [[`500939d`](https://github.com/brighte-labs/spark-web/commit/500939de7c45c93d48078f39151035ab9eba057f), [`3db131b`](https://github.com/brighte-labs/spark-web/commit/3db131bfadbc4149d05b7c74be1a3e68cdd5b18f)]: - @spark-web/spinner@1.0.3 - @spark-web/field@3.0.0 - @spark-web/text-input@1.2.1 ## 1.3.0 ### Minor Changes - [#134](https://github.com/brighte-labs/spark-web/pull/134) [`3fdfa83`](https://github.com/brighte-labs/spark-web/commit/3fdfa837e11541c01573ab59a9796306157c3b46) Thanks [@yaminideveloper](https://github.com/yaminideveloper)! - Enabled and style grouped items - [#133](https://github.com/brighte-labs/spark-web/pull/133) [`17f79f7`](https://github.com/brighte-labs/spark-web/commit/17f79f7c0e0bcb74fbaa12e8b3cbc9063c8a1a85) Thanks [@ChristopherMitchell242](https://github.com/ChristopherMitchell242)! - Update combobox to accept both aria attributes and data attributes ### Patch Changes - Updated dependencies [[`3d519f7`](https://github.com/brighte-labs/spark-web/commit/3d519f7cd4cf5b36dc09548891c835c294a5acef), [`2a1c354`](https://github.com/brighte-labs/spark-web/commit/2a1c3549e03f91d012906f90b13c1f8d7ba18d1e), [`d0ce080`](https://github.com/brighte-labs/spark-web/commit/d0ce08000f4c62d7402450b09f086d5806f1b50b)]: - @spark-web/utils@1.1.4 - @spark-web/field@2.0.1 ## 1.2.0 ### Minor Changes - [#115](https://github.com/brighte-labs/spark-web/pull/115) [`3d62131`](https://github.com/brighte-labs/spark-web/commit/3d62131698aa935dd8fd3f9080bf22517d35c69a) Thanks [@clothoo](https://github.com/clothoo)! - expose isLoading prop ### Patch Changes - [#113](https://github.com/brighte-labs/spark-web/pull/113) [`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Update dependencies - [#108](https://github.com/brighte-labs/spark-web/pull/108) [`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Refactor to work with updated field context - Updated dependencies [[`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33), [`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d), [`27bc235`](https://github.com/brighte-labs/spark-web/commit/27bc235168b09bf8c03710b5fcde6ea0fd70824c), [`156236d`](https://github.com/brighte-labs/spark-web/commit/156236d2474aee66a0b8e2030635f9c08a5b78ba), [`efa263a`](https://github.com/brighte-labs/spark-web/commit/efa263aee2c33297edb19203ae1d82abd99d298d), [`08752c3`](https://github.com/brighte-labs/spark-web/commit/08752c350b53cde0657ec32f03f9932dec835e33)]: - @spark-web/a11y@1.0.5 - @spark-web/field@2.0.0 - @spark-web/text-input@1.2.0 - @spark-web/box@1.0.5 - @spark-web/icon@1.1.3 - @spark-web/spinner@1.0.2 - @spark-web/text@1.0.5 - @spark-web/theme@3.0.1 ## 1.1.0 ### Minor Changes - [#96](https://github.com/brighte-labs/spark-web/pull/96) [`1d965a1`](https://github.com/brighte-labs/spark-web/commit/1d965a1f1964d448b67113c0c1644d23606e9ced) Thanks [@clothoo](https://github.com/clothoo)! - Expose getOptionLabel and getOptionValue props ### Patch Changes - [#98](https://github.com/brighte-labs/spark-web/pull/98) [`4750af7`](https://github.com/brighte-labs/spark-web/commit/4750af73f0e3a82ebde940cb13659a21c7e88007) Thanks [@lukebennett88](https://github.com/lukebennett88)! - Add aria-invalid attribute - Updated dependencies [[`4ad9817`](https://github.com/brighte-labs/spark-web/commit/4ad9817d1f7acdecd3c8bbb3be517f5c11fe8d4b), [`4750af7`](https://github.com/brighte-labs/spark-web/commit/4750af73f0e3a82ebde940cb13659a21c7e88007), [`dc53688`](https://github.com/brighte-labs/spark-web/commit/dc53688cc271316f00ef25f101e94c3891f4f75d)]: - @spark-web/text-input@1.1.1 ## 1.0.0 ### Major Changes - [#78](https://github.com/brighte-labs/spark-web/pull/78) [`e7de607`](https://github.com/brighte-labs/spark-web/commit/e7de607d1b9764b01fc51b4993cc6ea8f3017aff) Thanks [@nderkim](https://github.com/nderkim)! - Add combobox ### Patch Changes - Updated dependencies [[`60372d0`](https://github.com/brighte-labs/spark-web/commit/60372d0538fe5e141c8dabc1b20c8e09d1f56c70), [`1ef4f82`](https://github.com/brighte-labs/spark-web/commit/1ef4f82df999c487b79cd216c17ca5735e444fc5), [`182a53a`](https://github.com/brighte-labs/spark-web/commit/182a53a484892df48754e89dd714459a7f69fcff), [`5744b68`](https://github.com/brighte-labs/spark-web/commit/5744b6820f626b93a14e11e1fbd96bcbe1b12b27), [`82ab744`](https://github.com/brighte-labs/spark-web/commit/82ab744f198466810f3386bc459b8ab4d57c820e), [`58a7284`](https://github.com/brighte-labs/spark-web/commit/58a728457bbbda86ac406a72d8ec4ad6c1c16630), [`df618d9`](https://github.com/brighte-labs/spark-web/commit/df618d92d534e06f06ecedc95ea6bdd51cdc906b)]: - @spark-web/field@1.1.0 - @spark-web/text-input@1.1.0 - @spark-web/text@1.0.4 - @spark-web/theme@3.0.0 - @spark-web/spinner@1.0.1 - @spark-web/a11y@1.0.4 - @spark-web/box@1.0.4 - @spark-web/icon@1.1.2