Skip to content

Commit

Permalink
v2.0.8 feat(Circle): add className in point. #142 ad0be3e
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 23, 2024
1 parent d7a1c87 commit 825a2dd
Show file tree
Hide file tree
Showing 72 changed files with 186 additions and 176 deletions.
18 changes: 9 additions & 9 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "/static/css/main.6ef0c5a4.css",
"main.js": "/static/js/main.2734737f.js",
"main.js": "/static/js/main.898a7229.js",
"static/css/313.b92d3464.chunk.css": "/static/css/313.b92d3464.chunk.css",
"static/js/313.c44ce2fd.chunk.js": "/static/js/313.c44ce2fd.chunk.js",
"static/js/313.3d0b54ec.chunk.js": "/static/js/313.3d0b54ec.chunk.js",
"static/js/914.66a7179f.chunk.js": "/static/js/914.66a7179f.chunk.js",
"static/js/288.bb69d613.chunk.js": "/static/js/288.bb69d613.chunk.js",
"static/js/995.8a6c0a16.chunk.js": "/static/js/995.8a6c0a16.chunk.js",
"static/js/328.5a8cb8a1.chunk.js": "/static/js/328.5a8cb8a1.chunk.js",
"static/js/328.51b11b19.chunk.js": "/static/js/328.51b11b19.chunk.js",
"static/js/563.29775ec6.chunk.js": "/static/js/563.29775ec6.chunk.js",
"static/js/993.59fac0cc.chunk.js": "/static/js/993.59fac0cc.chunk.js",
"static/js/241.6e875e2b.chunk.js": "/static/js/241.6e875e2b.chunk.js",
Expand Down Expand Up @@ -50,18 +50,18 @@
"refractor-vendor.js": "/static/js/refractor-vendor.c5f44634.chunk.js",
"react-vendor.js": "/static/js/react-vendor.9874219f.js",
"static/css/18.df4b68c9.chunk.css": "/static/css/18.df4b68c9.chunk.css",
"static/js/18.92981000.chunk.js": "/static/js/18.92981000.chunk.js",
"static/js/18.a5f00d4f.chunk.js": "/static/js/18.a5f00d4f.chunk.js",
"static/js/592.f6c00de2.chunk.js": "/static/js/592.f6c00de2.chunk.js",
"index.html": "/index.html",
"static/media/home.svg": "/static/media/home.7d51f25c64fe597ec540c3e724748f4e.svg",
"main.6ef0c5a4.css.map": "/static/css/main.6ef0c5a4.css.map",
"main.2734737f.js.map": "/static/js/main.2734737f.js.map",
"main.898a7229.js.map": "/static/js/main.898a7229.js.map",
"313.b92d3464.chunk.css.map": "/static/css/313.b92d3464.chunk.css.map",
"313.c44ce2fd.chunk.js.map": "/static/js/313.c44ce2fd.chunk.js.map",
"313.3d0b54ec.chunk.js.map": "/static/js/313.3d0b54ec.chunk.js.map",
"914.66a7179f.chunk.js.map": "/static/js/914.66a7179f.chunk.js.map",
"288.bb69d613.chunk.js.map": "/static/js/288.bb69d613.chunk.js.map",
"995.8a6c0a16.chunk.js.map": "/static/js/995.8a6c0a16.chunk.js.map",
"328.5a8cb8a1.chunk.js.map": "/static/js/328.5a8cb8a1.chunk.js.map",
"328.51b11b19.chunk.js.map": "/static/js/328.51b11b19.chunk.js.map",
"563.29775ec6.chunk.js.map": "/static/js/563.29775ec6.chunk.js.map",
"993.59fac0cc.chunk.js.map": "/static/js/993.59fac0cc.chunk.js.map",
"241.6e875e2b.chunk.js.map": "/static/js/241.6e875e2b.chunk.js.map",
Expand Down Expand Up @@ -104,12 +104,12 @@
"refractor-vendor.c5f44634.chunk.js.map": "/static/js/refractor-vendor.c5f44634.chunk.js.map",
"react-vendor.9874219f.js.map": "/static/js/react-vendor.9874219f.js.map",
"18.df4b68c9.chunk.css.map": "/static/css/18.df4b68c9.chunk.css.map",
"18.92981000.chunk.js.map": "/static/js/18.92981000.chunk.js.map",
"18.a5f00d4f.chunk.js.map": "/static/js/18.a5f00d4f.chunk.js.map",
"592.f6c00de2.chunk.js.map": "/static/js/592.f6c00de2.chunk.js.map"
},
"entrypoints": [
"static/js/react-vendor.9874219f.js",
"static/css/main.6ef0c5a4.css",
"static/js/main.2734737f.js"
"static/js/main.898a7229.js"
]
}
8 changes: 4 additions & 4 deletions coverage/badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{"total": {"lines":{"total":667,"covered":666,"skipped":0,"pct":99.85},"statements":{"total":714,"covered":712,"skipped":0,"pct":99.71},"functions":{"total":167,"covered":167,"skipped":0,"pct":100},"branches":{"total":649,"covered":633,"skipped":0,"pct":97.53},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
{"total": {"lines":{"total":668,"covered":667,"skipped":0,"pct":99.85},"statements":{"total":715,"covered":713,"skipped":0,"pct":99.72},"functions":{"total":167,"covered":167,"skipped":0,"pct":100},"branches":{"total":649,"covered":633,"skipped":0,"pct":97.53},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-alpha/src/Pointer.tsx": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-alpha/src/index.tsx": {"lines":{"total":15,"covered":15,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":15,"covered":15,"skipped":0,"pct":100},"branches":{"total":23,"covered":21,"skipped":0,"pct":91.3}}
,"/home/runner/work/react-color/react-color/packages/color-block/src/index.tsx": {"lines":{"total":17,"covered":17,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":17,"covered":17,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-chrome/src/Arrow.tsx": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-chrome/src/index.tsx": {"lines":{"total":27,"covered":27,"skipped":0,"pct":100},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":28,"covered":28,"skipped":0,"pct":100},"branches":{"total":31,"covered":30,"skipped":0,"pct":96.77}}
,"/home/runner/work/react-color/react-color/packages/color-circle/src/Point.tsx": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":6,"covered":6,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-circle/src/index.tsx": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":13,"covered":13,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-circle/src/index.tsx": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":13,"covered":13,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-colorful/src/index.tsx": {"lines":{"total":15,"covered":15,"skipped":0,"pct":100},"functions":{"total":9,"covered":9,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":17,"covered":16,"skipped":0,"pct":94.11}}
,"/home/runner/work/react-color/react-color/packages/color-compact/src/index.tsx": {"lines":{"total":18,"covered":18,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":20,"covered":20,"skipped":0,"pct":100},"branches":{"total":21,"covered":21,"skipped":0,"pct":100}}
,"/home/runner/work/react-color/react-color/packages/color-convert/src/index.ts": {"lines":{"total":145,"covered":145,"skipped":0,"pct":100},"functions":{"total":32,"covered":32,"skipped":0,"pct":100},"statements":{"total":160,"covered":160,"skipped":0,"pct":100},"branches":{"total":84,"covered":84,"skipped":0,"pct":100}}
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-alpha/src/Pointer.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-alpha/
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -163,7 +163,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-alpha/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-alpha/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> color-alpha/src</h1>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> color-alpha/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-alpha/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-alpha/
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -439,7 +439,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-alpha/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-block/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> color-block/src</h1>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> color-block/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-block/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-block/
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -427,7 +427,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-block/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-chrome/src/Arrow.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-chrome
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -163,7 +163,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-chrome
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-chrome/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> color-chrome/src</h1>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> color-chrome/src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/color-chrome/src/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-chrome
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -607,7 +607,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-chrome
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
14 changes: 10 additions & 4 deletions coverage/lcov-report/color-circle/src/Point.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-circle
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
<input type="search" id="fileSearch">
</div>
</template>
</div>
Expand Down Expand Up @@ -120,7 +120,10 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-circle
<a name='L55'></a><a href='#L55'>55</a>
<a name='L56'></a><a href='#L56'>56</a>
<a name='L57'></a><a href='#L57'>57</a>
<a name='L58'></a><a href='#L58'>58</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<a name='L58'></a><a href='#L58'>58</a>
<a name='L59'></a><a href='#L59'>59</a>
<a name='L60'></a><a href='#L60'>60</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -177,15 +180,17 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-circle
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import React, { CSSProperties, useCallback } from 'react';
import { SwatchRectRenderProps, SwatchProps } from '@uiw/react-color-swatch';
import { useRef } from 'react';
&nbsp;
interface PointProps extends SwatchRectRenderProps {
rectProps?: SwatchProps['rectProps'];
className?: string;
}
&nbsp;
export default function Point({ style, title, checked, color, onClick, rectProps }: PointProps) {
export default function Point({ style, className, title, checked, color, onClick, rectProps }: PointProps) {
const btn = useRef&lt;HTMLDivElement&gt;(null);
const handleMouseEnter = useCallback(() =&gt; {
btn.current!.style['transform'] = 'scale(1.2)';
Expand Down Expand Up @@ -213,6 +218,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-circle
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
title={title}
className={className}
style={{
...style,
display: 'flex',
Expand Down Expand Up @@ -241,7 +247,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">color-circle
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-02-17T03:55:11.537Z
at 2024-02-23T11:21:16.027Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 825a2dd

Please sign in to comment.