Commit Graph

43 Commits

Author SHA1 Message Date
lijianan
7a59fc86f5
feat: CP support ColorPicker className and style (#43339)
* fix

* fix

* fix
2023-07-04 11:23:58 +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
红果汁
9757df0447
docs: ColorPicker showText property add dropDown demo (#43177) 2023-06-25 20:44:16 +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
红果汁
326de2dc05
feat: ColorPicker implement size API (#43116)
* feat: add size prop

* test: add test case

* docs: update doc

* fix: style issue

* docs: add text size demo

* test: update snapshots
2023-06-21 11:30:09 +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
daisy
2c20dcd4cc
feat(ColorPicker): add destroyTooltipOnHide (#42645)
* feat(ColorPicker): add destroyTooltipOnHide

* fix: interface -> type
2023-06-19 14:28:11 +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
MadCcc
7322aa6f5f
Revert "chore: migrate to vitest (#42506)" (#42900)
This reverts commit 6759887c44.
2023-06-07 21:59:21 +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
Dunqing
6759887c44
chore: migrate to vitest (#42506)
* chore: migrate to vitest

* chore: update ci

* fix: test correctly

* test: support puppeteer

* chore: update coverage

* chore: update include/exclude

* chore: update config

* test: update incorrect tests

* chore: update script

* chore: update

* fix: should close browser at the ended

* chore: improve

* fix: test cause tsc error

* fix: eslint error

* chore: exclude correctly

* test: update snap and fix some tests

* chore: update test config

* fix: countup.js

* fix: incorrect test

* chore: update reference

* test: update

* fix: countup.js

* fix: timeout

* chore: update site test

* fix: fixed countup version

* chore: remove unsed code

* test: update

* test: update demo timeout

* test: update timeout

* chore: update image test

* chore: update threads

* fix: image/svg+xml test failed

* chore: limits threads

* test: update test coverage include

* chore: remove jest files

* chore: rename jest to vi

* chore: update document

* chore: fix missing @types/jsdom

* chore: update coverage

* chore: update snap

* fix:watermark test cases are incorrect

* feat: update ignore comment

* test: fix test case

* test: reset body scrollTop

* test: clean up

* test: use vi

* test: update snapshot

* test: update snapshot

* test: fix dropdown test failed

* fix: toHaveStyle cause test fail

* test: improve test case

* test: fix

* fix: color failed, refer to https://github.com/jsdom/jsdom/pull/3560

* test: fix

* test: fix

* test: fix circular import

* test: revert

* ci: coverage failed

* test: fix c8 ignore comment

* chore: incorrect config

* chore: fix ignore ci

* test: revert svg+xml

* test: fix realTimers

* feat: rc-trigger should be remove

* test: fix some failed test

* chore: remove unused deps and configure eslint-plugin-vitest

* test: update snap

* chore: remove jest

* test: fix lint error

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-06-07 11:54:50 +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(文辉)
2de151da7a Merge branch 'master' into feature-merge-master 2023-06-04 11:10:56 +08:00
kiner-tang(文辉)
ad5de46b53 docs: update docs about color-picker 2023-06-01 14:36:58 +08:00
红果汁
ef21b23cb3
fix: ColorPicker RTL style issues (#42716)
* fix: fix rlt style issues

* fix: add missing rtl className on popup
2023-05-30 12:50:04 +08:00
红果汁
25883ca53a
fix: ColorPicker hover boundary issues (#42669)
* fix: fix hover boundary issues

* test: fix test case

* build: modify dependency scope

* Update package.json

Co-authored-by: MadCcc <1075746765@qq.com>

---------

Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-05-29 16:50:12 +08:00
lijianan
5fd2ee5b65
demo: update docs & demo (#42681) 2023-05-28 15:15:28 +08:00
github-actions[bot]
a8bc13e77b
chore: auto merge branches (#42668)
chore: feature merge master
2023-05-27 03:42:37 +00:00
linxianxi
cf24e3dd57 demo: remove 2023-05-26 16:32:44 +08:00
linxianxi
ae54275b25 demo: add clear-close 2023-05-26 16:31:54 +08:00
linxianxi
434ef1fd7c fix: 修改 demo 2023-05-26 16:23:21 +08:00
linxianxi
a6617c9763 feat(ColorPicker): add onClear 2023-05-26 15:19:34 +08:00
lijianan
bedd6b4f48
docs: add Custom Trigger Event demo (#42525)
* docs: add demo

* fix
2023-05-26 11:23:48 +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
红果汁
d61c08e7df
prefer: optimize allow clear logic (#42439)
* refactor: optimize allow clear logic

* test: fix test coverage down

* refactor: use onChange type
2023-05-19 17:44:27 +08:00
红果汁
2722850c0d
chore: sync @rc-component/color-picker@1.1.0 (#42445)
* fix: sync @rc-component/color-picker@1.1.0

* Update package.json

Co-authored-by: afc163 <afc163@gmail.com>

---------

Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-05-18 13:34:06 +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
kiner-tang(文辉)
2274111367
feat(ColorPicker): fix coverage down issue in ColorPicker (#42409)
* chore: test

* feat: optimize code
2023-05-16 23:32:18 +08:00
kiner-tang(文辉)
75e40999cd
feat: color-picker pure panel (#42388) 2023-05-16 14:18:12 +08:00
lijianan
b6fc8604d9
docs: add controlled demo (#42383) 2023-05-16 13:49:59 +08:00
kiner-tang(文辉)
28f2e312bb
docs(color-picker): update docs (#42372)
* docs: update docs

* docs: update docs
2023-05-15 18:44:47 +08:00
二货爱吃白萝卜
0a81a00771
fix: Preset color block style (#42361)
* fix: Preset color block style

* chore: use token
2023-05-15 14:54:51 +08:00
红果汁
843b89bf75
fix: color-picker review issues (#42356)
* fix: color-picker review issues

* style: fix prettier problem
2023-05-15 13:56:30 +08:00
二货爱吃白萝卜
902d857807
chore: adjust color trans (#42355) 2023-05-15 13:11:21 +08:00
lijianan
0470646a5f
refactor: optimize ColorPicker code again (#42334) 2023-05-14 11:47:01 +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
lijianan
8200e5ccb3
docs: update tag (#42303)
* Update index.zh-CN.md to document tagRender

* fix: fix lint

* docs: update tag
2023-05-13 00:13:35 +08:00
MadCcc
448c2b8097
docs: add new component tag (#42309)
* docs: add new component tag

* chore: update

* re-run

---------

Co-authored-by: 栗嘉男 <574980606@qq.com>
2023-05-12 17:53:37 +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