Skip to content

Commit bc567e1

Browse files
authored
Virtual scroll & Accessibility support (#420)
* 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
1 parent 0d70c9d commit bc567e1

File tree

97 files changed

+6626
-8225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+6626
-8225
lines changed

.circleci/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
keys:
1010
- v1-dependencies-{{ checksum "package.json" }}
1111
- run: npm install
12-
- run: npm run init-tslint
1312
- save_cache:
1413
paths:
1514
- node_modules
@@ -25,7 +24,6 @@ jobs:
2524
keys:
2625
- v1-dependencies-{{ checksum "package.json" }}
2726
- run: npm install
28-
- run: npm run init-tslint
2927
- save_cache:
3028
paths:
3129
- node_modules

.eslintrc.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const base = require('@umijs/fabric/dist/eslint');
2+
const path = require('path');
3+
4+
module.exports = {
5+
...base,
6+
rules: {
7+
...base.rules,
8+
'default-case': 0,
9+
'jsx-a11y/interactive-supports-focus': 0,
10+
'jsx-a11y/no-autofocus': 0,
11+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
12+
},
13+
};

.fatherrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
cjs: 'babel',
3+
esm: { type: 'babel', importLibToEs: true },
4+
preCommit: {
5+
eslint: true,
6+
prettier: true,
7+
},
8+
};

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ package-lock.json
3232
src/*.js
3333
src/*.map
3434
.prettierrc
35-
jest.config.js
3635
tslint.json
3736
tsconfig.test.json
38-
.eslintrc.js
3937
.prettierignore
4038
.storybook
4139
storybook/index.js

0 commit comments

Comments
 (0)