Skip to content

Commit

Permalink
Virtual scroll & Accessibility support (react-component#420)
Browse files Browse the repository at this point in the history
* accessibility

* Ref typescript define

* Update test case

* re-design active logic

* support selection

* options

* support multiple select

* label in value

* measure support

* measure with flex layout

* adjust style

* input should trigger open

* update filter & active logic

* back to first of active

* autoClearSearchValue works

* allowClear

* not allow clear when input is full

* merge accessibility text

* use combobox to active item accessibility

* use clear lock to prevent quick backspace

* adjust opacity of prev value logic

* support disabled

* dropdown match width

* move focus logic out

* add demo

* focus not trigger input when tabs

* add getPopupContainer

* patch demo

* update typescript define

* arrow will scroll to index item

* single node will auto active item when open

* support tokenSeparators

* support notFound

* support optionLabelProp

* placeholder of it

* support inputIcon

* removeIonc

* support loading

* legacy support of options

* ts define

* init combobox demo

* active input

* update deps to fix scrollTo bug

* tmp of combobox

* support onInputKeyDown

* update demo

* pass customize input

* rm Context

* fix tab to blink popup

* tmp refactor

* fix select combo logic

* reset active value

* fix icon

* add motion support

* add animate

* add missing props

* update demo

* getPopupContainer

* loading

* multi tags

* fix clear logic

* backspace not trigger open

* multiple

* fix single demo

* fix combobox display logic

* fix combobox display logic & label sync

* init test

* add test case

* add part of test

* add test case

* update snapshot

* add missing class

* check selected class

* onChange support second param

* search test

* focus test

* useLayoutEffect only works on client side

* focus test

* blur test

* update icon name

* warning in generator

* dropdown test

* start combobox tests

* start multiple test

* clean up

* support multiple test

* refact optionLabelProp

* paste change should close

* selections test

* multiple test finished

* refactor of trigger change logic

* refactor triggerSelect event

* tmp of tags miss value

* tags should list option when not provided

* tags should keep missing value order

* adjust useMemo logicc

* tags logicc

* selecttrigger test case

* lint generate

* fix lint

* fix example lint

* util lint fix

* fix generator ts define

* fix enabled lint

* support dropdown number

* clean up ci

* update jest config

* clean up example

* fix combobox open logic

* fix icon logic

* fix className of trans btn

* immutaple of content

* updatee snapshot

* test env should not generate uuid

* 100% line coverage
  • Loading branch information
zombieJ authored Sep 2, 2019
1 parent 0d70c9d commit bc567e1
Show file tree
Hide file tree
Showing 97 changed files with 6,626 additions and 8,225 deletions.
2 changes: 0 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- run: npm install
- run: npm run init-tslint
- save_cache:
paths:
- node_modules
Expand All @@ -25,7 +24,6 @@ jobs:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- run: npm install
- run: npm run init-tslint
- save_cache:
paths:
- node_modules
Expand Down
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const base = require('@umijs/fabric/dist/eslint');
const path = require('path');

module.exports = {
...base,
rules: {
...base.rules,
'default-case': 0,
'jsx-a11y/interactive-supports-focus': 0,
'jsx-a11y/no-autofocus': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
};
8 changes: 8 additions & 0 deletions .fatherrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
cjs: 'babel',
esm: { type: 'babel', importLibToEs: true },
preCommit: {
eslint: true,
prettier: true,
},
};
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ package-lock.json
src/*.js
src/*.map
.prettierrc
jest.config.js
tslint.json
tsconfig.test.json
.eslintrc.js
.prettierignore
.storybook
storybook/index.js
Loading

0 comments on commit bc567e1

Please sign in to comment.