章鱼
7fd093bd0a
docs: feat components TS demo ( #34742 )
* docs: add general components TS demo
* docs: add layout components TS demo
* docs: add navigation components TS demo
* docs: add data entry components TS demo
* chore(deps): add types for qs
* docs: add data display TS demo
* docs: add feedback components TS demo
* docs: add other components TS demo
* chore(deps): add types
* docs: unified demo code style
* docs: fix lint error
* docs: add demo TS type
* docs: fix demo TS type
* test: update snapshot
* docs: fix TS demo
* feat: update Rate character type
* docs: fix lint error
* feat: update Rate character type
* feat: update Rate character type
3 years ago
Karott
338ec7dad7
perf: refactor devWarning for production code size ( #35411 )
* pref: better code style for production
* refactor `devWarning`
* don't use `useEffect` only wrap `devWarning`
* chore: add 'noop' to coverage
* chore: add test cases for devWarning
* chore: add test case
* chore: update test cases for devWarning
* chore: restore test script command
* fix: remove 'throw new Error'
* should not use `throw` for browser
* chore: update test case for AutoComplete
* perf: add prefix for `devWarning`
* update RegExp for UMD
* add prefix for ES and CJS
* chore: better code style
* perf:
* upgrade antd-tools
* remove `injectWarningCondition`
* rename `devWarning` to `warning`
* chore: better code style
* chore: better code style
* chore: restore hasValidName
3 years ago
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ( #35419 )
* chore: eslint add consistent-type-imports
* fix avatar
* Update Item.tsx
3 years ago
Camol
bdabee4db4
feat(Typography): copyable text support format ( #35219 )
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
3 years ago
afc163
3d23b809b1
refactor: import css-in-js utils from theme ( #35215 )
3 years ago
TrickyPi
e8b816e68a
fix(Typography): change less function to less variable in danger style ( #35113 )
3 years ago
afc163
12d98f9ed6
chore: update snapshot due to rc-trigger bumped ( #35106 )
3 years ago
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases ( #35026 )
* test: React StrictMode
* test: fix Spin test
* chore: wrapper enzyme
* test: fix setState
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test cover
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: more test case
* test: disable part of it
* test: fix test & add placeholder
* test: Use orign enzyme mount
Co-authored-by: zombiej <smith3816@gmail.com>
3 years ago
afc163
0f0e2f9f43
docs: simplify demo code, #30853 ( #35050 )
3 years ago
二货机器人
67ccf39bd3
fix: Notification & message throw `createRoot` warning in React 18 ( #35030 )
* chore: bump notification version
* test: notification test case
* test: more test case
* test: part message test
* test: rest message test
* test: notification config test
3 years ago
MadCcc
e5efbee968
refactor: Components based on Input migrate to genHook ( #34884 )
* refactor: Input base components use genHook
* chore: code style
* chore: code clean
3 years ago
二货机器人
a67c0d28d3
fix: react 18 test fixing ( #34787 )
* fix: try fix
* chore: ci
* test: recover
* test: more test case
* test: more and mote
* test: btn test
* fix: react 18 compitable
* chore: more test
* test: all confirm test
* chore: tmp
* chore: test lib
* chore: tmp
* chore: tmp
* test: back of part
* test: back of menu index test
* test: more test
* test: form test
* test: rm IE11 test case
* chore: fix compatible
* chore: clean up
* chore: back of all test case
* test: ignore 18 lines
* chore: remove render test of enzyme in upload
* test: back of IE11 test case to fit 100% coverage
* chore: fix pkg deps
3 years ago
Minh Quy
445e6c6bca
feat: Support ref for Title, Text, Paragraph ( #34847 )
* feat: Support ref for Title, Text, Paragraph
* feat: Add tests for Title, Paragraph and Text
3 years ago
MadCcc
6776bb8916
docs: demo support react18 ( #34843 )
* docs: update demo
* chore: add script
* test: fix demo test
* docs: convert demos
* chore: move script
* test: remove react-dom import
* chore: update deps
* docs: update riddle js
* test: fix image test
* docs: fix riddle demo
3 years ago
二货机器人
d437f9fad9
refactor: More token used on component ( #34766 )
* chore: add fontSizeIcon
* chore: cascader
* chore: slider token
* chore: slider token
* chore: move to outline
* chore: input style
* chore: input align
* chore: slider full
* chore: align inputNumber
* chore: input token
* chore: input-number token
* chore: mention token
* fix: ts def
3 years ago
二货机器人
2aa33578c2
refactor: Align with token ( #34713 )
* chore: Divider full token
* chore: typography with tokn
* chore: select with token
* chore: tree with token
* chore: select style
* chore: select style
* chore: clean up
3 years ago
二货机器人
d952088650
refactor: More alias token ( #34681 )
* chore: colorHighlight
* chore: bgSecondary
* chore: colorLink
* chore: link style
* chore: rm fly variables
* chore: colorAction
* chore: add warning comment
* chore: token outline
* chore: colorBgXXX
* chore: alert
* rm: zIndex
* chore: rm zIndexComponent
* fix: tag color checkabl
* chore: tags tmp
3 years ago
二货机器人
b967f9eb81
refactor: More alias token ( #34658 )
* chore: rm disabled color
* chore: color heading
* chore: shows tokn
* chore: fix color mapping
* chore: status colors
* chore: durations
* chore: outline color
* chore: comment info
* chore: background color
* chore: merge nexr
3 years ago
youngz
80377f2243
feat: Typography.Text Pass event to onCopy. ( #34655 )
3 years ago
二货机器人
a7a180b913
refactor: Color related token ( #34648 )
* chore: move controlHeight in der
* chore: controlLineWidth
* chore: controlRadius
* chore: color
* chore: outline width
* chore: outline width
* chore: rm outlineBlurSize
* chore: colorTextLightSolid
3 years ago
二货机器人
608ce271b1
refactor: Move token to latest one ( #34637 )
* chore: rename motion
* chore: primary color
* chore: success color
* chore: all colors
* chore: mv control height up
* chore: font size format
3 years ago
afc163
ef09eefb85
refactor: Typography move to cssinjs ( #34372 )
* refactor: move to css in js
* add some style
* update code style
* update
* update
* update
* update
* add reset styles
* use token.errorColors
* remove less files
* add operationUnit
* getEditableStyles
* fix overflow
* fix ediable/copy
* fix ediable/copy
* refactor: move to css in js
* add some style
* update code style
* update
* update
* update
* update
* add reset styles
* use token.errorColors
* remove less files
* add operationUnit
* getEditableStyles
* fix overflow
* fix ediable/copy
* fix ediable/copy
* rtl style
* rtl style
* add TypographyToken
* fix ts
* use GenerateStyle<TypographyToken>
* fix ts errors
* fix ediable
* remove comment
* fix ediable
* fix ediable
* revert less files
* comment less
* fix review issues
* fix review issues
* fix review issues
* fix missing style
3 years ago
afc163
f3c5c17474
fix: Typography ediable style ( #34518 )
- [x] Fix Editable Textarea height jump in Firefox
- [x] Fix Editable Typography.Title confirm icon position
3 years ago
afc163
e1f453c988
refactor: Replace ConfigConsumer to ConfigContext ( #34365 )
3 years ago
afc163
0e27f8af7e
fix: typography title margin issue ( #34302 )
3 years ago
黑雨
c7fe1c8e26
fix: editable Typography.Title should match font size while editing ( #34169 )
* feat: editable Typography.Title should match font size while editing
* feat: update style
* feat: update style
* feat: update style
* feat: style lint
* feat: update style
* Update components/typography/style/index.less
* Update components/typography/Editable.tsx
* feat: reorganize css
* feat: style lint
* feat: update snap
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
二货机器人
811fed2fc2
refactor: Update rc-slider ( #34234 )
* chore: Update rc-slider version
* chore: bump
* chore: update sty;e
* fix: style
* test: update snapshot
* test: all fixed
* fix lint
3 years ago
opopeieie
58c1998e1e
fix: Typography copyable in clipboard incorrect ( #34034 )
Co-authored-by: chenxq <chenxq@neocrm.com>
3 years ago
soso
b66016a6f7
fix: useLayoutEffect to useIsomorphicLayoutEffect ( #33818 )
* fix: useLayoutEffect to useIsomorphicLayoutEffect
* chore: change to rc-util/lib/hooks/useLayoutEffect
3 years ago
二货机器人
fe185dcbce
fix: typography ellipsis check in transform ( #34007 )
* fix: typography ellipsis check in transform
* test: Update snapshot
3 years ago
linxianxi
19cc7d49e2
fix: Typography copyable add stopPropagation ( #33998 )
* fix: Typography copyable add stopPropagation
* add test
3 years ago
Di Wu
745ebf2d84
fix: Exception in enter key callback on editable or copyable Paragraph ( #33976 )
* fix: Exception on enter key callback
* Move spyOn position
3 years ago
MadCcc
a9bc316b80
fix: ellipsis should display tooltip if rows larger than 1 ( #33875 )
* fix: ellipsis should display tooltip if rows larger than 1
* test: add test case
3 years ago
dengqing
30086db63f
docs: ✏️ add note comment ( #33771 )
Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>
3 years ago
二货机器人
395c549049
fix: Typography error on context ellipsis ( #33725 )
* chore: init measure
* chore: out of space
* refactor: Multiple render
* chore: auto cut
* feat: render split
* fix: ellipsis logic of suffix
* fix: ref missing
* fix: Tooltip missing
* test: snapshot
* chore: opt for textarea
* test: back part of ellipsis
* chore: back of ellipsis logic
* ellipsis logic
* fix: init ellipsis measure
* fix: ellipsis event
* chore: clean up
* test: Update snapshot
* fix: test
* test: Update snapshot
* chore: lazy ellipsis
* fix: check css ellipsis logic
* test: Update snapshot
* test: back of coverage
* chore: clean up
* test: ignore else
* test: clean up
3 years ago
二货机器人
18296d1c46
refactor: opt for typography Tooltip perf ( #33669 )
3 years ago
zombiej
7ae451729f
test: update snapshot
3 years ago
二货机器人
2df11184f4
test: Demo check popup content ( #33378 )
* auto demo
* chore: update demo snapshot
* fix: trigger mock ref logic
* chore: try 2 test case
* chore: more snapshot
* chore: update snapshot
* chore: fix ts
* chore: split test
* test: Update test case
* chore: fix test order
3 years ago
zombiej
78a67d6615
chore: fix lint
3 years ago
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 ( #32824 )
* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0
Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript ) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases )
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0 )
---
updated-dependencies:
- dependency-name: eslint-config-airbnb
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* chore: code style
* memoize-one
* add comment
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* fix lint
* improve useMemo deps
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
hydraZty
c179c39a3b
fix: Typography ellipsis with 1 row doesn't wrap ( #32735 )
Co-authored-by: ext.zhangtianyi3 <ext.zhangtianyi3@360buyad.local>
3 years ago
renovate[bot]
b6bd4c18b4
chore(deps): update dependency stylelint to v14 ( #32609 )
* chore(deps): update dependency stylelint to v14
* Update package.json
* fix some stylelint
* fix some stylelint
* fix some stylelint errors
* fix some stylelint errors
* fix some stylelint errors
* fix some stylelint errors
* fix some stylelint errors
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
hydraZty
9fe5820cf0
fix: Typography ellipsis height error ( #32496 )
3 years ago
dependabot[bot]
b445baa001
chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2 ( #32451 )
* chore(deps-dev): bump stylelint-config-prettier from 8.0.2 to 9.0.2
Bumps [stylelint-config-prettier](https://github.com/prettier/stylelint-config-prettier ) from 8.0.2 to 9.0.2.
- [Release notes](https://github.com/prettier/stylelint-config-prettier/releases )
- [Commits](https://github.com/prettier/stylelint-config-prettier/compare/v8.0.2...v9.0.2 )
---
updated-dependencies:
- dependency-name: stylelint-config-prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: autofix stylelint errors
* chore: autofix stylelint errors
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
3 years ago
afc163
3b27f47097
fix: Typography ellipsis not working in Table ( #32447 )
* chore: add reproduce demo
* fix: Typography ellipsis in Table
close #32432
3 years ago
Dreamcreative
4c1f4f941c
docs: modify Typography.Text ellipsis prop ( #32280 )
Co-authored-by: xc <xc@xcdeMacBook-Pro.local>
3 years ago
unknown
87849a9ce0
docs: fix typography/demo/basic.md
Update basic.md
fix snapshot
3 years ago
Sergey Kachanovskiy
7bded502e9
feat: triggerType prop for editable paragraph ( #32219 )
* feat: triggerType prop for editable paragraph
* feat: triggerType prop - conflict resolution
* feat: triggerType prop - conflict resolution
* feat: triggerType prop - conflict resolution
* feat: triggerType prop - demo fix
Co-authored-by: Name From Git-Plugin-Test <email.from.git.plugin.test@example.com>
3 years ago
Sergey Kachanovskiy
4a31561645
feat: enterIcon prop for editable paragraph ( #32220 )
Co-authored-by: Name From Git-Plugin-Test <email.from.git.plugin.test@example.com>
3 years ago
Antee
61c21a07f7
docs: delete duplicated property ( #32196 )
Removing duplicated property of `Editable` to make the Chinese version same as the English version.
3 years ago