lijianan
9cc7dc1e15
fix: key should not be a ReactNode ( #51808 )
...
* fix: key should not be a ReactNode
* test: add test case
2024-11-28 13:53:22 +08:00
su-muzhi
c9aa2aeeaa
feat: ColorPicker supports disabledFormat ( #51539 )
2024-11-08 20:41:13 +08:00
二货爱吃白萝卜
15e1f152e3
fix: ColorPicker gradient slider not draggable ( #51161 )
...
* fix: fill should trigger same color
* test: add test case
* chore: add desc
* chore: force CI
* chore: force CI
2024-10-09 11:12:20 +08:00
afc163
66222a296b
chore: import rc-util from path ( #51087 )
2024-10-02 10:43:35 +08:00
栗嘉男
78c1fca2f0
chore: merge master into feature
2024-09-14 11:50:34 +08:00
二货爱吃白萝卜
82b05b209d
refactor: ColorPicker panel free for uncontrolled ( #50785 )
...
* refactor: change on drag will change panel color
* docs: update demo
* test: update snapshot
* chore: wrap with useEvent
* fix: order of events
* fix: sync logic
2024-09-11 10:46:30 +08:00
ice
badfbe3cfe
feat(Button): support variant and color ( #50051 )
...
* feat(button): variant & color types
* feat: type -> color/variant
* feat: type -> color/variant
* feat: add variant filled
* test: snap
* refactor(button): rename type -> variant
* docs: add demo
* feat: add danger ghost style
* refactor: remove deprecated
* refactor: eslint
* docs: change color&variant
* test: updated snap
* docs: color-variant
* docs: add debug color&variant
* feat: global token
* refactor: remove comment
* docs: add color&variant docs
* docs: remove default
* docs: add space
* docs: code
* test: update snap
* test: fix snap
* test: btn querySelect
* feat: change filled hoverStyle
* test: fix
* feat: support grey wave
* refactor: enhance
* docs: color/variant -> v 5.21
* test: snap
* feat: add token
* test: to do
* test: fix test
* ci: rebuild
* style: remove
* style: space
* docs: add note & FQA
* feat: add componentsToken
* refactor: remove isNotGrey
* test: add case
* docs: tile button
* test: snap
* docs: site & snap
* Update components/button/index.en-US.md
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* fix: token color & undef
* docs: site
* docs: responsive
* docs: enhance FAQ
* docs: gap middle
* test: snap
* Update components/theme/interface/maps/colors.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/theme/interface/maps/colors.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/theme/interface/maps/colors.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/button/style/token.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/button/style/token.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* refactor: rename
* docs: prettier
* chore: eslint
* refactor: cls
* test: add solidTextColor case
* refactor: genVariantButtonStyle
* refactor: genVariantButtonStyle
* refactor: genVariantButtonStyle
* fix: rename
* docs: text
* fix: remove border
* feat: add token colorErrorBgFilledHover
* chore: add size-limit
* refactor: rename
---------
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2024-09-03 17:39:02 +08:00
二货爱吃白萝卜
7edf9315d7
fix: onComplete directly case ( #50501 )
2024-08-20 17:40:35 +08:00
二货爱吃白萝卜
c23d1875fe
fix: ColorPicker not support compact ( #50291 )
...
* fix: ColorPicker not support compact
* test: update snapshot
* test: update snapshot
2024-08-07 23:18:34 +08:00
二货爱吃白萝卜
aebc23fea8
enhance: color picker click ( #50148 )
2024-07-30 17:39:13 +08:00
二货爱吃白萝卜
832cffcdf9
feat: ColorPicker support gradient color ( #50050 )
...
* refactor: support type update
* chore: update clear style
* chore: bump color picker
* chore: use slider
* chore: bump color picker
* chore: range slider
* chore: layout
* chore: useModeColor
* chore: simplify
* chore: bump color picker
* refactor: event
* chore: tmp lock check
* chore: of it
* chore: update ts def
* chore: update ts def
* chore: remove useless ts
* chore: linear
* chore: adjust style
* chore: rm useless code
* chore: fill color
* chore: basic linear
* chore: support toStr
* chore: limit minCount
* chore: use cache
* chore: drag support:
* chore: yes
* chore: update demo
* chore: useLayoutEffect instead
* chore: fix click to add point
* chore: add smmoth
* chore: support of locale
* chore: add locale
* chore: fix lint
* chore: adjust style
* chore: fix lint
* chore: fix style
* test: fix test case
* chore: fix popover
* test: fix test case
* chore: fix test
* test: clean up
* chore: fix lint
* chore: fix lint
* chore: fix lint
* test: coverage
* test: coverage
* test: coverage
* test: coverage
* test: coverage
* test: coverage
* chore: fix docs
* docs: update demo desc
* chore: enhance hover range
* fix: delete not working
* chore: fix lint
* test: coverage
* test: coverage
* chore: clean up
* chore: adjust
* chore: highlight
* chore: adjust style
* chore: fix lint
* chore: update demo
* chore: memo perf
* refactor: up to down colors
* test: update snapshot
2024-07-29 16:38:50 +08:00
二货爱吃白萝卜
5dd072d3a0
refactor: Use @ant-design/fast-color
instead ( #49846 )
...
* chore: use fast
* chore: tmp of it
* test: update snapshot
* fix: demo
* chore: fix warning
* fix: test
* chore: fix ts
* chore: fix lint
* test: update snapshot
* chore: use proxy
* test: coverage
2024-07-15 17:33:47 +08:00
afc163
59ad48476b
refactor: add boime lint and fix lint errrors ( #49536 )
...
* chore: add boime lint
* fix lint
* use files ignore
* revert change
* ignore clarity.js
* fix some errors
* fix some errors
* fix some errors
* fix some errors
* add yml file
* Update clarity.js
Signed-off-by: afc163 <afc163@gmail.com>
* add npm run lint:biome
* add npm run lint:biome
* fix test case
* fix ts errors
* fix ts errors
* fix lint and add .lintstagedrc
* shorten prop name
* chore: update package.json
* update biome.json
* chore: remove stylelint
* chore: useOptionalChain
* fix lint
* biome format
* prettier all code
* prettier all code
* fix site test
---------
Signed-off-by: afc163 <afc163@gmail.com>
2024-06-22 21:59:12 +08:00
叶枫
502dac12aa
docs: format code ( #48309 )
...
* docs: fix code
* feat: lint
* feat: prettier
* feat: test
* feat: review
* feat: format html
* feat: format html
2024-04-08 14:04:08 +08:00
叶枫
14a1e6bd51
feat: tsconfig enable strict ( #47998 )
...
* feat: tsconfig enable strict
* feat: add no-explicit-any
* feat: strict
* feat: as THEME
* feat: 优化 keys 类型写法
* feat: demo remove any
* feat: as number
* feat: this any
* feat: add eslint
* feat: cascader
* feat: props any
* feat: remove any
* feat: remove any
* feat: any 提示错误
* feat: remove any
* feat: add eslint
* feat: 允许 T = any 存在
* feat: color funciton
* feat: 恢复 lint
* feat: merge master
* feat: as ReactElement
* feat: type
2024-04-01 15:49:45 +08:00
MadCcc
1cb644d476
fix: color picker controlled value ( #47816 )
...
* fix: fix control value not show in dom
* chore: update title
* add test case
* change test title
* fix: cleared color should change after controlled value changed
* chore: code clean
* test: change test
* comment
* fix: should respect empty string
* test: add test case
* chore: update demo
---------
Co-authored-by: tanghui <yoyo837@hotmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-03-25 20:10:47 +08:00
MadCcc
4a07e13685
feat: Select variant ( #46379 )
...
* feat: Select variant
* chore: clean
* chore: add test
* chore: update demo
2023-12-11 14:55:58 +08:00
红
f3c37a3be4
refactor(color-picker): rename defaultCollapsed
=> defaultOpen
( #45655 )
2023-11-03 16:49:22 +08:00
红
99138cb93e
feat(color-picker): preset colors support collapsing at initialization ( #45607 )
...
* feat(color-picker): preset colors support collapsing at initialization
(cherry picked from commit d8975b407f1d5a574cdefafd8be17374a4d5e8af)
* docs: update
(cherry picked from commit 74f6d70ebd22c752f57f559d4222c383fafea63a)
* test: add unit test
(cherry picked from commit 2ef2af49228d3fe672c1b24277f142f54f9b193a)
* chore: update
Co-authored-by: RedJue <RedJue@users.noreply.github.com>
* refactor: rename
* Apply suggestions from code review
Signed-off-by: MadCcc <1075746765@qq.com>
---------
Signed-off-by: MadCcc <1075746765@qq.com>
Co-authored-by: RedJue <RedJue@users.noreply.github.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-11-03 11:47:52 +08:00
lijianan
7344f5e275
chore: replace useToken with useInternalToken ( #44670 )
2023-09-07 10:15:58 +08:00
xr0master
eaa86351e4
ColorPresets: fix duplicate keys ( #44370 )
...
* ColorPresets: fix duplicate keys
Signed-off-by: xr0master <xr0master@gmail.com>
* Update components/color-picker/components/ColorPresets.tsx
add lint disable
Signed-off-by: xr0master <xr0master@gmail.com>
---------
Signed-off-by: xr0master <xr0master@gmail.com>
2023-08-24 13:26:26 +08:00
苟培烜
9ba9da244a
fix: ColorPicker HEX input cursor jump bug ( #44137 )
...
* fix(color-picker): when inputting in the HEX,if you input a lowercase letter,the cursor will jump to the tail,and me fixed it.
* test: fix ColorPicker snapshot
---------
Co-authored-by: afc163 <afc163@gmail.com>
2023-08-16 20:45:39 +08:00
红果汁
c377457104
feat: ColorPicker implement disabledAlpha
API ( #43355 )
...
* feat: implement disabledAlpha api
* refactor: add genAlphaColor and optimization code
* chore: clean code
* refactor: add warning and optimization code
* chore: clean code
* docs: modify version number
* fix: fix prettier
2023-07-12 19:42:33 +08:00
MadCcc
36f195d411
chore: enhance PanelPresets type ( #43486 )
...
* docs: update examples link
* type: fix typescript error
* chore: code clean
2023-07-11 22:36:40 +08:00
红果汁
e72a7836f4
feat: ColorPicker Implement onChangeComplete API ( #43370 )
...
* feat: implement onChangeComplete api
* docs: add change completed demo
* perf: optimization code
2023-07-10 13:37:43 +08:00
红果汁
6bb18b361d
feat: ColorPicker implement panelRender
API ( #43134 )
...
* feat: implement `panelRender` api and add demo
* test: add test case
* docs: update doc
* fix: styles add overlayInnerStyle
* fix: variable name
* docs: reorder api
* refactor: optimize code
* test: update snapshot
* test: update snapshots
* refactor: remove memo
* refactor: rename overlayInnerStyle to popupOverlayInner
* fix: props error
* docs: update demo
2023-06-29 11:46:11 +08:00
afc163
67d0462ca9
refactor: resolve Circular dependency ( #42750 )
...
* test: detect dependency cycle
* chore: open eslint import/no-cycle rule
close #42804
* chore: Upgrade react-component
* Apply suggestions from code review
* refactor: add getRoundNumber
* chore: Update package.json
2023-06-25 15:38:22 +08:00
红果汁
1fb8fc57d3
feat: ColorPicker implement showText
API ( #42865 )
...
* feat: color-picker support showValue api
* Update components/color-picker/index.en-US.md
Co-authored-by: MadCcc <1075746765@qq.com>
* docs: add version column
* test: fix test coverage
* feat: replace showValue with textRender
* Update components/color-picker/components/ColorTrigger.tsx
Co-authored-by: MadCcc <1075746765@qq.com>
* fix: style issue
* feat: add showText prop and optimization code
* fix: lint issue
* test: fix coverage
* refactor: combine showText and textRender
* fix: lint issue
---------
Co-authored-by: MadCcc <1075746765@qq.com>
2023-06-19 19:29:39 +08:00
muxin
e3110e5458
refactor: refactor color picker circluar dependency ( #42843 )
...
* refactor: fix color-picker circluar dependency
* fix: fix import path
2023-06-12 10:11:17 +08:00
红果汁
243704330b
fix: ColorPicker presets cannot be selected ( #42882 )
...
* fix: color-picker presets not checked
* test: update test case
* fix: color-picker presets not checked
* test: update test case
2023-06-07 17:29:26 +08:00
linxianxi
0afe8baf1e
fix(ColorPicker): should not trigger onChange when click clear after clearing ( #42643 )
2023-06-07 10:25:59 +08:00
MadCcc
8ebb7be7b0
Merge branch 'feature' into master-merge-feature
2023-06-06 16:31:22 +08:00
红果汁
a0d8fcb23a
fix: ColorPicker UI in Dark Mode ( #42827 )
...
* fix: fix ui in dark mode
* test: add test case
2023-06-05 16:23:03 +08:00
kiner-tang(文辉)
94732dfb01
feat(Collapse): Collapse support configure panel content by items ( #42545 )
...
* docs: update the document about Collapse
* docs: update the document about Collapse
* feat: optimize code
* Update components/collapse/index.zh-CN.md
Co-authored-by: MadCcc <1075746765@qq.com>
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: optimize code
* docs: update the document about Collapse
---------
Co-authored-by: MadCcc <1075746765@qq.com>
2023-05-25 10:19:56 +08:00
kiner-tang(文辉)
7183eab0a9
feat(ColorPicker): close panel when click clear button ( #42406 )
...
* feat: close panel when click clear button
* feat: optimize code
* feat: optimize code
* feat: optimize code
2023-05-17 09:58:41 +08:00
lijianan
d7de0d846e
fix: replace hex with ColorFormat.hex ( #42423 )
2023-05-17 09:57:42 +08:00
lijianan
d3093c9096
style: optimize ColorPicker code ( #42329 )
...
* style: optimize ColorPicker code
* style: optimize ColorPicker code
* test
2023-05-13 23:05:26 +08:00
qmhc
828db96962
style: optimize ColorPicker code ( #42326 )
...
* chore: fix ColorPicker parameters' type
* chore: improve code
* chore: update
2023-05-13 17:34:09 +08:00
红果汁
b95d5674fa
feat: new component ColorPicker ( #41990 )
...
* feat: color picker
* chore: improve component logic
* test: update snapshots
* test: update snapshots
* fix: remove unuse code
* fix: adjusting the UI
* fix: hairy edge in dark mode
* fix: demo case
* chore: rollback file
* fix: improve code logic
* perf: improve code
* test: add test case
* refactor: trigger use Popover instead
* test: add test case
* refactor: improve code logic
* test: update snapshots
* refactor: improve code
* docs: add overview img
* feat: style
* chore: update snapshot
* chore: code clean
* chore: code clean
* chore: fix lint
* chore: update snapshot
* feat: color block
* chore: pure render
* refactor: hex input number reduced to 6 digits
* fix: rename React to react
* refactor: trigger demo
* docs: remove disabled demo
---------
Co-authored-by: MadCcc <1075746765@qq.com>
2023-05-12 14:43:48 +08:00