JiaQi
de44c4c9cd
chore(Typography): Introduce AutoSizeType correctly ( #40361 )
Co-authored-by: Yuiai01 <dujiaqi@kezaihui.com>
2 years ago
MadCcc
642bb582eb
refactor: TextArea ( #40045 )
* refactor: TextArea
* chore: update snapshot
* chore: update snapshot
* chore: fix lint
* chore: classes
* refactor: mentions
* chore: bump rc-textarea
* chore: code clean
* chore: code clean
* chore: UPDATE SNAPSHOT
* chore: code clean
* test: cov
* fix: textarea size
2 years ago
Zheeeng
29a15e2a5d
refactor: refines types and fix to use prop direction over context direction ( #37716 )
* refactor: use enum instead of multiple constants and refines types
* fix: siganture and direction prop passing
* Update Editable.tsx
* refine types
* test: update snap
* style: prefer literal constants over enum
* fix: refine types for typography
* fix: restore ellipsis const
* fix: restore ellipsis const
* fix: restore textare importing
2 years ago
Zheeeng
d96ec8aa06
feat: add text config for editable ( #37761 )
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 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
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
黑雨
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
二货机器人
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
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
陈帅
c673cde7de
merge Feature into master ( #29758 )
* feat: add onCancel and onEnd option for editable (#29615 )
* feature: add onCancel and onEnd option for editable
* doc: editable
* doc: add EN doc
* optimize: code
Co-authored-by: chenliang <chenliang9@xiaomi.com>
* feat: add parent class for different notification types (#29634 )
close #29417
* refactor: Upload use origin behavior (#29737 )
* refactor: Fallback of events
* test: Fix test case
* fix: Start file update logic
* fix: remove status update
* test: Remove wrapTest
* test: Fix test case
* chore: bump rc-upload
* docs: About desc
* feat: tab support moreIcon (#29744 )
* feat: Tabs support moreIcon
* docs: Tabs support moreIcon
* style: lint
* docs: add english document
* Update components/tabs/index.zh-CN.md
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
* Update components/tabs/index.en-US.md
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
* Update components/tabs/index.zh-CN.md
* Update components/tabs/index.en-US.md
Co-authored-by: zty <zty.dev@outlook.com>
Co-authored-by: zty <zty.dev@icloud.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: jueinin <1014397160@qq.com>
Co-authored-by: chenliang <chenliang9@xiaomi.com>
Co-authored-by: 不吃猫的鱼 <michael2ib1989@gmail.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: Tianyuan Zhang <tianyuan233.zhang@gmail.com>
Co-authored-by: zty <zty.dev@outlook.com>
Co-authored-by: zty <zty.dev@icloud.com>
Co-authored-by: xrkffgg <xrkffgg@vip.qq.com>
4 years ago
jueinin
24d1b3c39c
feat: add onCancel and onEnd option for editable ( #29615 )
* feature: add onCancel and onEnd option for editable
* doc: editable
* doc: add EN doc
* optimize: code
Co-authored-by: chenliang <chenliang9@xiaomi.com>
4 years ago
二货机器人
a70d301c7b
fix: typography focus ( #28545 )
4 years ago
wf-francescoalbanese
696396a62f
refactor: make autosize true by default ( #27814 )
Made `autoSize = true` by default deconstructing it from props, rather than explicitly checking if it's undefined at render times.
4 years ago
Tom Xu
4b8674d9e9
refactor(editable): rewrite with hook ( #27655 )
* refactor(editable): rewrite with hook
* Update Editable.tsx
* chore: imrpove
* Update Editable.tsx
* Update Editable.tsx
* Update Editable.tsx
4 years ago
xrkffgg
36cdf0a129
refactor: direction type define ( #27540 )
4 years ago
Alex
bf45c4c1b0
style: 💄 className prop ordering #26594 ( #26602 )
close #26594
4 years ago
CornerSkyless
ab9c477638
feat: Add maxLength and autoSize in Typography editable config ( #25373 )
* feat: Add maxLength and autoSize in Typography editable config
* doc: add version column of maxLength and autoSize
* doc: add demo of maxLength and autoSize
* doc: simplify version column of autoSize and maxLength
* doc: fix version column of autoSize and maxLength
* snapshot: add snapshot
* snapshot: add snapshot
* doc: add version column of maxLength and autoSize
* doc: simplify version column of autoSize and maxLength
* snapshot: add snapshot
* update version column
* feat: Add maxLength and autoSize in Typography editable config
* doc: add version column of maxLength and autoSize
* doc: simplify version column of autoSize and maxLength
* doc: fix version column of autoSize and maxLength
* snapshot: add snapshot
* snapshot: add snapshot
* doc: add version column of maxLength and autoSize
* doc: simplify version column of autoSize and maxLength
* snapshot: add snapshot
* update version column
* add snapshot
4 years ago
偏右
b369717181
chore: 🦄 Add eslint-plugin-unicorn ( #22883 )
* 🦄 Add eslint-plugin-unicorn
* fix eslint errors
* fix eslint errors
* fix lint demo
* fix lint demo
5 years ago
二货机器人
adb323cec2
chore: icons save bundle size without treeShaking ( #21752 )
* alert
* more icons
* another grouping
* all done
5 years ago
偏右
22908c4010
🐛 Typography editable should focus at the end ( #21268 )
close #21261
5 years ago
Saeed Rahimi
676de29eb4
feat: added rtl direction to all of ant-design components ( #19380 )
* rtl demo change en-us description
* change bundlesize css limit
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* fix select component arrow issue
* RTL: form component
* add pagination rtl test
* fix test lint error
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* some fixes to RTL components
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* fix switch component text rtl issue
* fix table grouped header text-align
* add rtl support to whole demo with RTL button
* Update rtl demo responsive
* RTL: page-header component
* RTL: typography component
* RTL: Dropdown (Partial)
* update config-provider doc
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* fix lost changes after rebase
* fix lint errors
* RTL: Transfer Component
* RTL: upload component
* RTL: update avatar demo
* RTL: comment component
* RTL: collapse component
* RTL: carousel component
* update snapshots
* RTL: Card component
* RTL: descriptions component
* RTL: Empty component
* RTL: list component
* RTL: slider component
* slider component import/order
* add shared rtlTest
* RTL: Statistic component
* RTL: tooltip components
* RTL: popover component
* RTL: timeline component
* RTL: tag component
* RTL: alert component
* RTL: drawer component
* RTL: Tab component
* change direction definition
* RTL: progress component
* input.tsx, remove duplicate after rebase
* fix demo.less after rebase
* fix ant-row-rtl after rebase
* fix upload issues in rtl
* badge rtl demo margin fix
* fix: tabs with icon margin
* fix: radio-wrapper margin
* fix: table component after rebase
* fix: centered modal text-align
* update slider snapshot
* RTL: popconfirm component
* RTL: back-top component
* RTL: spin component
* RTL: result component
* RTL: skeleton component
* RTL: menu component
* RTL: time-picker component
* RTL: calendar component
* RTL: date-picker component
* RTL: home page
* update snapshots
* test: add auto-complete rtl test
* test: add avatar component rtl tests
* test: add badge component rtl tests
* test: add breadcrumb component rtl tests
* test: add button components rtl tests
* test: add card component rtl tests
* test: add carousel component rtl tests
* test: add cascader component rtl tests
* test: add checkbox component rtl tests
* test: add collapse component rtl tests
* test: add comment component rtl tests
* test: add dropdown component rtl tests
* test: add empty component rtl tests
* test: add form component rtl tests
* test: add grid component rtl tests
* test: add input component rtl tests
* test: add search component rtl tests
* test: add input-number component rtl tests
* test: add layout component rtl tests
* test: add list component rtl tests
* test: add mentions component rtl tests
* test: add modal component rtl tests
* test: add page-header component rtl tests
* test: add pagination component rtl tests
* test: add radio component rtl tests
* test: add rate component rtl tests
* test: add select component rtl tests
* test: add slider component rtl tests
* test: add steps component rtl tests
* test: add switch component rtl tests
* test: add table component rtl tests
* test: add transfer component rtl tests
* test: add tree component rtl tests
* test: add tree-select component rtl tests
* test: add typography component rtl tests
* test: add upload component rtl tests
* test: add affix component rtl tests
* update calendar tests
* increase css file maxSize
* update snapshots
* remove workflows to allow push
* remove duplicate reverse prop from slider
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* Added direction property to ConfigProvider
* cascader rtl tests added
* update config-provider doc
* RTL: grid system
* RTL: input component
* RTL: switch component
* fix rtl demo lint
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* RTL: form component
* add pagination rtl test
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* input.tsx, remove duplicate after rebase
* fix ant-row-rtl after rebase
* update snapshots
* test: add cascader component rtl tests
* test: add pagination component rtl tests
* update calendar tests
* update snapshots
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* update direction.md icons
* dropdown and cascader default placement in rtl
* update snapshots
* fix lint errors
* remove duplicate import
* update snapshots
* update snapshot
* update calendar snapshot
* update snapshots
* integrate with new rc-picker
* update snapshots
* fix lint errors
* update snapshot
* update snapshots
* update snapshots
* update snapshots :|
* update snapshots
* fix compile error.
* fix typo after rebase
* update snapshots
* remove workflows to allow push
* update snapshots
* update snapshots
* fix dist error
* front-page css fix
* update snapshots
* fix lint and test issues
* restore cascader index.less
* update snapshots
* fix logo in rtl and demo controls
* ci errors
* resolve steps/index.tsx conflicts
* tooltip family demo remove inline style
* resolve table/Table.tsx conflicts
* resolve modal/Modal.tsx conflicts
* resolve cascader/index.tsx conflicts
* add workflows from upstream
* update snapshots
* revert logo to default
* fix codebox demo direction of placements
* resolve tooltip overlayClassName conflicts
* update snapshots
* update popover test
* fix: cascader miss popupClassName
* fix: fix select missing dropdownClassName
* chore: Update snapshot
* chore: Adjust menu use rtl logic
* docs: Update demo line color
Co-authored-by: 二货机器人 <smith3816@gmail.com>
5 years ago
偏右
8501b708ea
refactor: 📦 smaller bundlesize limit ( #20356 )
* 📦 samller bundlesize limit
* 🗑️ remove React static PropTypes
* 🗑️ remove react-lifecycles-compat
* 🗑️ remove matchMedia polyfill
* 🗑️ remove Transfer buggy lazy prop
* 🗑️ remove enquire.js dep
* 🗑️ remove Transfer lazy related code and fix ci
* 🗑️ remove used dom-closest
* ⚡ replace dom-scroll-into-view to scroll-into-view for bundle size
* ✅ fix eslint
* 🆙 upgrade browserslist
* ✅ fix test cases
* 🗑️ remove @ant-design/create-react-context
* 🆙 upgrade @ant-design/bisheng-plugin
* 🆙 upgrade rc-slider
* ✅ fix ci
* 🆙 upgrade rc-tabs and rc-mentions
* 📦 scroll-into-view -> scroll-into-view-if-needed
* remove unused devDep
* docs: 📝 update instruction about IE9/10
* 📦 reduce css bundle size by drop IE9/10 support
* 🆙 upgrade rc-upload
* 🗑️ drop unused swing motion css
* ✅ update upload snapshots
* 📦 lift css bundlesize limit to 55kb
5 years ago
afc163
fb68fcdc05
💄 use classNames in Editable
5 years ago
二货机器人
64b905e9bd
chore: Update `@ant-design/icons` deps ( #19979 )
* update icons deps
* update all icon ref
* fix lint
* update snapshot
5 years ago
Liming Jin
311a6c0917
fix: replace autosize with autoSize
5 years ago
vagusX
149729e524
use ant design icons 4.0 ( #18217 )
* feat: use @ant-design/icons@4.0
* feat: use createFromIconfontCN to make site works
* feat: update doc for Icon
* feat: use icon in component Alert
* feat: use icon in component Avatar
* feat: use icon in component Breadcrumb
* feat: use icon in component Button
* feat: use icon in component Cascader
* feat: use icon in component Collapse
* feat: use icon in component Datepicker
* feat: use icon in component Dropdown
* feat: use icon in component Form
* feat: use icon in component Input
* feat: use icon in component InputNumber
* feat: use icon in component Layout
* feat: use icon in component Mention
* feat: use icon in component Message
* feat: use icon in component Modal
* feat: use icon in component Notification
* feat: use icon in component PageHeader
* feat: use icon in component Pagination
* feat: use icon in component Popconfirm
* feat: use icon in component Progress
* feat: use icon in component Rate
* feat: use icon in component Result
* feat: use icon in component Select
* feat: use icon in component Step
* feat: use icon in component Switch
* feat: use icon in component Table
* feat: use icon in component Tab
* feat: use icon in component Tag
* feat: handle rest component which using Icon
* fix: remove unused vars
* feat: use latest alpha ant design icons
* fix: failed test in uploadlist.test.js
* test: update snapshot for icons
* doc: add Icon for site
* doc: use @ant-design/icons in site
* chore: use latest icons
* fix: tslint issue
* fix: test cases
* fix: types for react
* fix: lint rules for import orders
* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render
* fix: eslint error in demo/**.md
* inject antd icons
* update snapshot
* fix site
* doc: update docs
* fix: code snippets icon in site
* feat: use latest @ant-design/icons
* fix: icon props in message
5 years ago
orzyyyy
63b33d4020
fix: unexpected changes of snapshots
5 years ago
zombieJ
685f4339ea
Typography editable mode should support className ( #16307 )
6 years ago
afc163
0590c056c1
🐛 Reserve ant-typography className
6 years ago
zombieJ
c80136a9a7
New Component: Typography ( #14250 )
* text with prefix
* add edit style
* support editable
* enhance accessibility & type experience
* optimize IME case
* support copy
* add locale
* add secondary & disabled
* add ellipsis shadow text
* split to 3 components
* update snapshot
* update desc
* change lines also need update ellipsis
* skip aria when is in ellipsis
* add ResizeObserver in _util
* update snapshot
* move TestBase into test file
* update test case
* update doc
* fix typo
* important => level
* use rows
* update demo cols to 1
* fix cssText not work in firefox
* update doc
* add miss point
* support extendable
* update snapshot
* fix doc
* copyable support string
* update snapshot
* update doc
* update doc desc
* adjust style
* full test
* reset after test
* rename
* update snapshot
* fix compile
* adjust style
* update desc
* update prefixCls
* update margin
* adjust
* nest wrap of tag content
* adjust style
* update comment
* rm %
* one more thing
* tmp of measure
* merge string as children
* update snapshot
* update testcase
* remove comment
* use internal variable for configProvider passing
* update snapshot
* use expandable instead of extendable
* less variable it
* update demo
* update less
* adjust code & mark style
* remove mark padding
* update measure logic
* support nest element style
* use childNode.textContent to fix react 15 error
* update css
* popout Typography
* add link style
* adjust doc
* use ellipsis instead of rows & expandable
* update doc
* update doc
* update doc & style
* fix typo
* add css ellipsis support
* client render
* update snapshot
* enhance copyable
* support onExpand
* update test case
* add test of css ellipsis
* fix logic in react 15
* rename onChange -> onSave
* use tagName of article
* fix lint
6 years ago