deepsea-components 5.16.4 → 5.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/components/AutoFit.cjs +20 -15
  2. package/dist/components/AutoFit.js +20 -15
  3. package/dist/components/AutoScroll.cjs +12 -9
  4. package/dist/components/AutoScroll.js +12 -9
  5. package/dist/components/AutoSizeTextarea.cjs +81 -23
  6. package/dist/components/AutoSizeTextarea.js +81 -23
  7. package/dist/components/CircleText.cjs +120 -24
  8. package/dist/components/CircleText.js +120 -24
  9. package/dist/components/CopyButton.cjs +8 -2
  10. package/dist/components/CopyButton.js +8 -2
  11. package/dist/components/DraggableGrid.cjs +155 -104
  12. package/dist/components/DraggableGrid.d.ts +25 -23
  13. package/dist/components/DraggableGrid.js +155 -104
  14. package/dist/components/Echart.cjs +95 -21
  15. package/dist/components/Echart.js +95 -21
  16. package/dist/components/Flow.cjs +10 -10
  17. package/dist/components/Flow.js +10 -10
  18. package/dist/components/FormLabel.cjs +92 -27
  19. package/dist/components/FormLabel.js +92 -27
  20. package/dist/components/HlsPlayer.cjs +65 -24
  21. package/dist/components/HlsPlayer.js +65 -24
  22. package/dist/components/IconFileType.cjs +14 -4
  23. package/dist/components/IconFileType.js +14 -4
  24. package/dist/components/InfiniteScroll.cjs +17 -10
  25. package/dist/components/InfiniteScroll.js +17 -10
  26. package/dist/components/InputFile.cjs +5 -5
  27. package/dist/components/InputFile.js +5 -5
  28. package/dist/components/InputFileButton.cjs +14 -13
  29. package/dist/components/InputFileButton.js +14 -13
  30. package/dist/components/ReadSheet.cjs +32 -7
  31. package/dist/components/ReadSheet.js +32 -7
  32. package/dist/components/Ring.cjs +48 -10
  33. package/dist/components/Ring.js +48 -10
  34. package/dist/components/Scroll.cjs +10 -3
  35. package/dist/components/Scroll.js +10 -3
  36. package/dist/components/ScrollMask.cjs +97 -11
  37. package/dist/components/ScrollMask.js +97 -11
  38. package/dist/components/SectionRing.cjs +60 -15
  39. package/dist/components/SectionRing.js +60 -15
  40. package/dist/components/TransitionBox.cjs +120 -30
  41. package/dist/components/TransitionBox.js +120 -30
  42. package/dist/components/TransitionNum.cjs +8 -8
  43. package/dist/components/TransitionNum.js +8 -8
  44. package/dist/components/Trapezium.cjs +68 -9
  45. package/dist/components/Trapezium.js +68 -9
  46. package/dist/components/Unify.cjs +79 -19
  47. package/dist/components/Unify.js +79 -19
  48. package/dist/components/WriteSheet.cjs +1 -1
  49. package/dist/components/WriteSheet.js +1 -1
  50. package/package.json +1 -1
  51. package/src/components/DraggableGrid.tsx +32 -28
@@ -1,32 +1,73 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import hls_0 from "hls.js";
4
5
  import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
5
6
  const HlsPlayer = /*#__PURE__*/ forwardRef((props, ref)=>{
6
- const { src, ...rest } = props;
7
+ const $ = c(10);
8
+ let rest;
9
+ let src;
10
+ if ($[0] !== props) {
11
+ ({ src, ...rest } = props);
12
+ $[0] = props;
13
+ $[1] = rest;
14
+ $[2] = src;
15
+ } else {
16
+ rest = $[1];
17
+ src = $[2];
18
+ }
7
19
  const video = useRef(null);
8
- useImperativeHandle(ref, ()=>video.current, []);
9
- useEffect(()=>{
10
- const { current: player } = video;
11
- if (!player || !src) return;
12
- if (player.canPlayType("application/vnd.apple.mpegurl")) {
13
- player.src = src;
14
- return;
15
- }
16
- if (hls_0.isSupported()) {
17
- const hls = new hls_0();
18
- hls.loadSource(src);
19
- hls.attachMedia(player);
20
- return ()=>{
21
- hls.destroy();
22
- };
23
- }
24
- }, [
25
- src
26
- ]);
27
- return /*#__PURE__*/ jsx("video", {
28
- ref: video,
29
- ...rest
30
- });
20
+ let t0;
21
+ let t1;
22
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
23
+ t0 = ()=>video.current;
24
+ t1 = [];
25
+ $[3] = t0;
26
+ $[4] = t1;
27
+ } else {
28
+ t0 = $[3];
29
+ t1 = $[4];
30
+ }
31
+ useImperativeHandle(ref, t0, t1);
32
+ let t2;
33
+ let t3;
34
+ if ($[5] !== src) {
35
+ t2 = ()=>{
36
+ const { current: player } = video;
37
+ if (!player || !src) return;
38
+ if (player.canPlayType("application/vnd.apple.mpegurl")) {
39
+ player.src = src;
40
+ return;
41
+ }
42
+ if (hls_0.isSupported()) {
43
+ const hls = new hls_0();
44
+ hls.loadSource(src);
45
+ hls.attachMedia(player);
46
+ return ()=>{
47
+ hls.destroy();
48
+ };
49
+ }
50
+ };
51
+ t3 = [
52
+ src
53
+ ];
54
+ $[5] = src;
55
+ $[6] = t2;
56
+ $[7] = t3;
57
+ } else {
58
+ t2 = $[6];
59
+ t3 = $[7];
60
+ }
61
+ useEffect(t2, t3);
62
+ let t4;
63
+ if ($[8] !== rest) {
64
+ t4 = /*#__PURE__*/ jsx("video", {
65
+ ref: video,
66
+ ...rest
67
+ });
68
+ $[8] = rest;
69
+ $[9] = t4;
70
+ } else t4 = $[9];
71
+ return t4;
31
72
  });
32
73
  export { HlsPlayer };
@@ -31,14 +31,24 @@ __webpack_require__.d(__webpack_exports__, {
31
31
  IconFileTypePage: ()=>IconFileTypePage
32
32
  });
33
33
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
34
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
34
35
  const GOLD = (Math.sqrt(5) - 1) / 2;
35
36
  const GOLD_T = Math.sqrt(1 - GOLD * GOLD);
36
37
  const HANDLE_LENGTH = (1 - GOLD) * GOLD_T;
37
38
  const FileTypeSize = 512;
38
- const IconFileTypeBase = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
39
- viewBox: `${-(FileTypeSize / 2)} ${-(FileTypeSize / 2)} ${FileTypeSize} ${FileTypeSize}`,
40
- ...props
41
- });
39
+ const IconFileTypeBase = (props)=>{
40
+ const $ = (0, compiler_runtime_namespaceObject.c)(2);
41
+ let t0;
42
+ if ($[0] !== props) {
43
+ t0 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
44
+ viewBox: `${-(FileTypeSize / 2)} ${-(FileTypeSize / 2)} ${FileTypeSize} ${FileTypeSize}`,
45
+ ...props
46
+ });
47
+ $[0] = props;
48
+ $[1] = t0;
49
+ } else t0 = $[1];
50
+ return t0;
51
+ };
42
52
  const IconFileTypePage = ({ pageColor = "#f31260", pageWidth = 0.75 * FileTypeSize, pageBessel = 0.75 * FileTypeSize * GOLD, ...rest })=>{
43
53
  const radius = pageBessel * (1 - GOLD);
44
54
  const offset = pageBessel * HANDLE_LENGTH;
@@ -1,12 +1,22 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c } from "react/compiler-runtime";
2
3
  const GOLD = (Math.sqrt(5) - 1) / 2;
3
4
  const GOLD_T = Math.sqrt(1 - GOLD * GOLD);
4
5
  const HANDLE_LENGTH = (1 - GOLD) * GOLD_T;
5
6
  const FileTypeSize = 512;
6
- const IconFileTypeBase = (props)=>/*#__PURE__*/ jsx("svg", {
7
- viewBox: `${-(FileTypeSize / 2)} ${-(FileTypeSize / 2)} ${FileTypeSize} ${FileTypeSize}`,
8
- ...props
9
- });
7
+ const IconFileTypeBase = (props)=>{
8
+ const $ = c(2);
9
+ let t0;
10
+ if ($[0] !== props) {
11
+ t0 = /*#__PURE__*/ jsx("svg", {
12
+ viewBox: `${-(FileTypeSize / 2)} ${-(FileTypeSize / 2)} ${FileTypeSize} ${FileTypeSize}`,
13
+ ...props
14
+ });
15
+ $[0] = props;
16
+ $[1] = t0;
17
+ } else t0 = $[1];
18
+ return t0;
19
+ };
10
20
  const IconFileTypePage = ({ pageColor = "#f31260", pageWidth = 0.75 * FileTypeSize, pageBessel = 0.75 * FileTypeSize * GOLD, ...rest })=>{
11
21
  const radius = pageBessel * (1 - GOLD);
12
22
  const offset = pageBessel * HANDLE_LENGTH;
@@ -42,14 +42,15 @@ const InfiniteScroll = /*#__PURE__*/ (0, external_react_namespaceObject.forwardR
42
42
  ]);
43
43
  const container = (0, external_react_namespaceObject.useRef)(null);
44
44
  const containerSize = (0, external_soda_hooks_namespaceObject.useSize)(container);
45
- function bigger(containerSize, wrapperSize) {
46
- return withEqual ? containerSize + (withGap ? gap : 0) >= wrapperSize : containerSize + (withGap ? gap : 0) > wrapperSize;
45
+ function bigger(containerSize_0, wrapperSize_0) {
46
+ return withEqual ? containerSize_0 + (withGap ? gap : 0) >= wrapperSize_0 : containerSize_0 + (withGap ? gap : 0) > wrapperSize_0;
47
47
  }
48
48
  const overflow = wrapperSize && containerSize ? "vertical" === direction ? bigger(containerSize.height, wrapperSize.height) : bigger(containerSize.width, wrapperSize.width) : false;
49
49
  const animation = (0, external_react_namespaceObject.useRef)(void 0);
50
50
  (0, external_react_namespaceObject.useEffect)(()=>{
51
+ var _ele_current;
51
52
  if (!wrapperSize || !containerSize || !overflow) return;
52
- animation.current = ele.current?.animate({
53
+ animation.current = null == (_ele_current = ele.current) ? void 0 : _ele_current.animate({
53
54
  transform: "vertical" === direction ? [
54
55
  "translateY(0)",
55
56
  `translateY(-${containerSize.height + gap}px)`
@@ -61,7 +62,10 @@ const InfiniteScroll = /*#__PURE__*/ (0, external_react_namespaceObject.forwardR
61
62
  duration,
62
63
  iterations: 1 / 0
63
64
  });
64
- return ()=>animation.current?.cancel();
65
+ return ()=>{
66
+ var _animation_current;
67
+ return null == (_animation_current = animation.current) ? void 0 : _animation_current.cancel();
68
+ };
65
69
  }, [
66
70
  wrapperSize,
67
71
  containerSize,
@@ -70,15 +74,18 @@ const InfiniteScroll = /*#__PURE__*/ (0, external_react_namespaceObject.forwardR
70
74
  duration
71
75
  ]);
72
76
  function enter(e) {
73
- if (pauseOnHover) animation.current?.pause();
74
- onMouseEnter?.(e);
77
+ var _animation_current;
78
+ if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.pause();
79
+ null == onMouseEnter || onMouseEnter(e);
75
80
  }
76
- function leave(e) {
77
- if (pauseOnHover) animation.current?.play();
78
- onMouseLeave?.(e);
81
+ function leave(e_0) {
82
+ var _animation_current;
83
+ if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.play();
84
+ null == onMouseLeave || onMouseLeave(e_0);
79
85
  }
80
86
  (0, external_react_namespaceObject.useEffect)(()=>{
81
- if (!pauseOnHover && animation.current?.playState === "paused") animation.current?.play();
87
+ var _animation_current, _animation_current1;
88
+ if (!pauseOnHover && (null == (_animation_current = animation.current) ? void 0 : _animation_current.playState) === "paused") null == (_animation_current1 = animation.current) || _animation_current1.play();
82
89
  }, [
83
90
  animation.current,
84
91
  pauseOnHover
@@ -14,14 +14,15 @@ const InfiniteScroll = /*#__PURE__*/ forwardRef((props, ref)=>{
14
14
  ]);
15
15
  const container = useRef(null);
16
16
  const containerSize = useSize(container);
17
- function bigger(containerSize, wrapperSize) {
18
- return withEqual ? containerSize + (withGap ? gap : 0) >= wrapperSize : containerSize + (withGap ? gap : 0) > wrapperSize;
17
+ function bigger(containerSize_0, wrapperSize_0) {
18
+ return withEqual ? containerSize_0 + (withGap ? gap : 0) >= wrapperSize_0 : containerSize_0 + (withGap ? gap : 0) > wrapperSize_0;
19
19
  }
20
20
  const overflow = wrapperSize && containerSize ? "vertical" === direction ? bigger(containerSize.height, wrapperSize.height) : bigger(containerSize.width, wrapperSize.width) : false;
21
21
  const animation = useRef(void 0);
22
22
  useEffect(()=>{
23
+ var _ele_current;
23
24
  if (!wrapperSize || !containerSize || !overflow) return;
24
- animation.current = ele.current?.animate({
25
+ animation.current = null == (_ele_current = ele.current) ? void 0 : _ele_current.animate({
25
26
  transform: "vertical" === direction ? [
26
27
  "translateY(0)",
27
28
  `translateY(-${containerSize.height + gap}px)`
@@ -33,7 +34,10 @@ const InfiniteScroll = /*#__PURE__*/ forwardRef((props, ref)=>{
33
34
  duration,
34
35
  iterations: 1 / 0
35
36
  });
36
- return ()=>animation.current?.cancel();
37
+ return ()=>{
38
+ var _animation_current;
39
+ return null == (_animation_current = animation.current) ? void 0 : _animation_current.cancel();
40
+ };
37
41
  }, [
38
42
  wrapperSize,
39
43
  containerSize,
@@ -42,15 +46,18 @@ const InfiniteScroll = /*#__PURE__*/ forwardRef((props, ref)=>{
42
46
  duration
43
47
  ]);
44
48
  function enter(e) {
45
- if (pauseOnHover) animation.current?.pause();
46
- onMouseEnter?.(e);
49
+ var _animation_current;
50
+ if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.pause();
51
+ null == onMouseEnter || onMouseEnter(e);
47
52
  }
48
- function leave(e) {
49
- if (pauseOnHover) animation.current?.play();
50
- onMouseLeave?.(e);
53
+ function leave(e_0) {
54
+ var _animation_current;
55
+ if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.play();
56
+ null == onMouseLeave || onMouseLeave(e_0);
51
57
  }
52
58
  useEffect(()=>{
53
- if (!pauseOnHover && animation.current?.playState === "paused") animation.current?.play();
59
+ var _animation_current, _animation_current1;
60
+ if (!pauseOnHover && (null == (_animation_current = animation.current) ? void 0 : _animation_current.playState) === "paused") null == (_animation_current1 = animation.current) || _animation_current1.play();
54
61
  }, [
55
62
  animation.current,
56
63
  pauseOnHover
@@ -58,7 +58,7 @@ function InputFile(props) {
58
58
  const { multiple = false, type = "file", onChange: _onChange, disabled: _disabled, clearAfterChange, onValueChange, onFileChange, ...rest } = props;
59
59
  const [disabled, setDisabled] = (0, external_react_namespaceObject.useState)(false);
60
60
  async function onChange(e) {
61
- _onChange?.(e);
61
+ null == _onChange || _onChange(e);
62
62
  const input = e.target;
63
63
  const { files } = input;
64
64
  if (!files || 0 === files.length) return;
@@ -71,12 +71,12 @@ function InputFile(props) {
71
71
  const value = await getFileData(file, type);
72
72
  values.push(value);
73
73
  }
74
- onFileChange?.(files2);
75
- onValueChange?.(values);
74
+ null == onFileChange || onFileChange(files2);
75
+ null == onValueChange || onValueChange(values);
76
76
  } else {
77
77
  const file = files[0];
78
- onFileChange?.(file);
79
- onValueChange?.(await getFileData(file, type));
78
+ null == onFileChange || onFileChange(file);
79
+ null == onValueChange || onValueChange(await getFileData(file, type));
80
80
  }
81
81
  } finally{
82
82
  if (clearAfterChange) input.value = "";
@@ -29,7 +29,7 @@ function InputFile(props) {
29
29
  const { multiple = false, type = "file", onChange: _onChange, disabled: _disabled, clearAfterChange, onValueChange, onFileChange, ...rest } = props;
30
30
  const [disabled, setDisabled] = useState(false);
31
31
  async function onChange(e) {
32
- _onChange?.(e);
32
+ null == _onChange || _onChange(e);
33
33
  const input = e.target;
34
34
  const { files } = input;
35
35
  if (!files || 0 === files.length) return;
@@ -42,12 +42,12 @@ function InputFile(props) {
42
42
  const value = await getFileData(file, type);
43
43
  values.push(value);
44
44
  }
45
- onFileChange?.(files2);
46
- onValueChange?.(values);
45
+ null == onFileChange || onFileChange(files2);
46
+ null == onValueChange || onValueChange(values);
47
47
  } else {
48
48
  const file = files[0];
49
- onFileChange?.(file);
50
- onValueChange?.(await getFileData(file, type));
49
+ null == onFileChange || onFileChange(file);
50
+ null == onValueChange || onValueChange(await getFileData(file, type));
51
51
  }
52
52
  } finally{
53
53
  if (clearAfterChange) input.value = "";
@@ -39,14 +39,15 @@ function InputFileButton(props) {
39
39
  input.current
40
40
  ]);
41
41
  function onClick(e) {
42
- input.current?.click();
43
- _onClick?.(e);
42
+ var _input_current;
43
+ null == (_input_current = input.current) || _input_current.click();
44
+ null == _onClick || _onClick(e);
44
45
  }
45
- async function onDrop(e) {
46
- _onDrop?.(e);
46
+ async function onDrop(e_0) {
47
+ null == _onDrop || _onDrop(e_0);
47
48
  if (disabled || !dragFile) return;
48
- e.preventDefault();
49
- const { files } = e.dataTransfer;
49
+ e_0.preventDefault();
50
+ const { files } = e_0.dataTransfer;
50
51
  if (!files || 0 === files.length) return;
51
52
  setDisabled(true);
52
53
  try {
@@ -57,21 +58,21 @@ function InputFileButton(props) {
57
58
  const value = await (0, external_InputFile_cjs_namespaceObject.getFileData)(file, type);
58
59
  values.push(value);
59
60
  }
60
- onFileChange?.(files2);
61
- onValueChange?.(values);
61
+ null == onFileChange || onFileChange(files2);
62
+ null == onValueChange || onValueChange(values);
62
63
  } else {
63
64
  const file = files[0];
64
- onFileChange?.(file);
65
- onValueChange?.(await (0, external_InputFile_cjs_namespaceObject.getFileData)(file, type));
65
+ null == onFileChange || onFileChange(file);
66
+ null == onValueChange || onValueChange(await (0, external_InputFile_cjs_namespaceObject.getFileData)(file, type));
66
67
  }
67
68
  } finally{
68
69
  setDisabled(false);
69
70
  }
70
71
  }
71
- function onDragOver(e) {
72
- _onDragOver?.(e);
72
+ function onDragOver(e_1) {
73
+ null == _onDragOver || _onDragOver(e_1);
73
74
  if (disabled || !dragFile) return;
74
- e.preventDefault();
75
+ e_1.preventDefault();
75
76
  }
76
77
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_react_namespaceObject.Fragment, {
77
78
  children: [
@@ -11,14 +11,15 @@ function InputFileButton(props) {
11
11
  input.current
12
12
  ]);
13
13
  function onClick(e) {
14
- input.current?.click();
15
- _onClick?.(e);
14
+ var _input_current;
15
+ null == (_input_current = input.current) || _input_current.click();
16
+ null == _onClick || _onClick(e);
16
17
  }
17
- async function onDrop(e) {
18
- _onDrop?.(e);
18
+ async function onDrop(e_0) {
19
+ null == _onDrop || _onDrop(e_0);
19
20
  if (disabled || !dragFile) return;
20
- e.preventDefault();
21
- const { files } = e.dataTransfer;
21
+ e_0.preventDefault();
22
+ const { files } = e_0.dataTransfer;
22
23
  if (!files || 0 === files.length) return;
23
24
  setDisabled(true);
24
25
  try {
@@ -29,21 +30,21 @@ function InputFileButton(props) {
29
30
  const value = await getFileData(file, type);
30
31
  values.push(value);
31
32
  }
32
- onFileChange?.(files2);
33
- onValueChange?.(values);
33
+ null == onFileChange || onFileChange(files2);
34
+ null == onValueChange || onValueChange(values);
34
35
  } else {
35
36
  const file = files[0];
36
- onFileChange?.(file);
37
- onValueChange?.(await getFileData(file, type));
37
+ null == onFileChange || onFileChange(file);
38
+ null == onValueChange || onValueChange(await getFileData(file, type));
38
39
  }
39
40
  } finally{
40
41
  setDisabled(false);
41
42
  }
42
43
  }
43
- function onDragOver(e) {
44
- _onDragOver?.(e);
44
+ function onDragOver(e_1) {
45
+ null == _onDragOver || _onDragOver(e_1);
45
46
  if (disabled || !dragFile) return;
46
- e.preventDefault();
47
+ e_1.preventDefault();
47
48
  }
48
49
  return /*#__PURE__*/ jsxs(Fragment, {
49
50
  children: [
@@ -28,16 +28,41 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  ReadSheet: ()=>ReadSheet
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
31
32
  const external_deepsea_tools_namespaceObject = require("deepsea-tools");
32
33
  const external_InputFile_cjs_namespaceObject = require("./InputFile.cjs");
33
34
  const ReadSheet = (props)=>{
34
- const { onValueChange, ...rest } = props;
35
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InputFile_cjs_namespaceObject.InputFile, {
36
- accept: ".xlsx",
37
- type: "arrayBuffer",
38
- onValueChange: (data)=>onValueChange?.((0, external_deepsea_tools_namespaceObject.readSheet)(data)),
39
- ...rest
40
- });
35
+ const $ = (0, compiler_runtime_namespaceObject.c)(8);
36
+ let onValueChange;
37
+ let rest;
38
+ if ($[0] !== props) {
39
+ ({ onValueChange, ...rest } = props);
40
+ $[0] = props;
41
+ $[1] = onValueChange;
42
+ $[2] = rest;
43
+ } else {
44
+ onValueChange = $[1];
45
+ rest = $[2];
46
+ }
47
+ let t0;
48
+ if ($[3] !== onValueChange) {
49
+ t0 = (data)=>null == onValueChange ? void 0 : onValueChange((0, external_deepsea_tools_namespaceObject.readSheet)(data));
50
+ $[3] = onValueChange;
51
+ $[4] = t0;
52
+ } else t0 = $[4];
53
+ let t1;
54
+ if ($[5] !== rest || $[6] !== t0) {
55
+ t1 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InputFile_cjs_namespaceObject.InputFile, {
56
+ accept: ".xlsx",
57
+ type: "arrayBuffer",
58
+ onValueChange: t0,
59
+ ...rest
60
+ });
61
+ $[5] = rest;
62
+ $[6] = t0;
63
+ $[7] = t1;
64
+ } else t1 = $[7];
65
+ return t1;
41
66
  };
42
67
  exports.ReadSheet = __webpack_exports__.ReadSheet;
43
68
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,14 +1,39 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { readSheet } from "deepsea-tools";
4
5
  import { InputFile } from "./InputFile.js";
5
6
  const ReadSheet = (props)=>{
6
- const { onValueChange, ...rest } = props;
7
- return /*#__PURE__*/ jsx(InputFile, {
8
- accept: ".xlsx",
9
- type: "arrayBuffer",
10
- onValueChange: (data)=>onValueChange?.(readSheet(data)),
11
- ...rest
12
- });
7
+ const $ = c(8);
8
+ let onValueChange;
9
+ let rest;
10
+ if ($[0] !== props) {
11
+ ({ onValueChange, ...rest } = props);
12
+ $[0] = props;
13
+ $[1] = onValueChange;
14
+ $[2] = rest;
15
+ } else {
16
+ onValueChange = $[1];
17
+ rest = $[2];
18
+ }
19
+ let t0;
20
+ if ($[3] !== onValueChange) {
21
+ t0 = (data)=>null == onValueChange ? void 0 : onValueChange(readSheet(data));
22
+ $[3] = onValueChange;
23
+ $[4] = t0;
24
+ } else t0 = $[4];
25
+ let t1;
26
+ if ($[5] !== rest || $[6] !== t0) {
27
+ t1 = /*#__PURE__*/ jsx(InputFile, {
28
+ accept: ".xlsx",
29
+ type: "arrayBuffer",
30
+ onValueChange: t0,
31
+ ...rest
32
+ });
33
+ $[5] = rest;
34
+ $[6] = t0;
35
+ $[7] = t1;
36
+ } else t1 = $[7];
37
+ return t1;
13
38
  };
14
39
  export { ReadSheet };
@@ -28,21 +28,59 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  Ring: ()=>Ring
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
+ const compiler_runtime_namespaceObject = require("react/compiler-runtime");
31
32
  const external_react_namespaceObject = require("react");
32
33
  const Ring = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
33
- const { outerWidth, innerWidth, style, ...rest } = props;
34
+ const $ = (0, compiler_runtime_namespaceObject.c)(14);
35
+ let innerWidth;
36
+ let outerWidth;
37
+ let rest;
38
+ let style;
39
+ if ($[0] !== props) {
40
+ ({ outerWidth, innerWidth, style, ...rest } = props);
41
+ $[0] = props;
42
+ $[1] = innerWidth;
43
+ $[2] = outerWidth;
44
+ $[3] = rest;
45
+ $[4] = style;
46
+ } else {
47
+ innerWidth = $[1];
48
+ outerWidth = $[2];
49
+ rest = $[3];
50
+ style = $[4];
51
+ }
34
52
  const outerRadius = outerWidth / 2;
35
53
  const innerRadius = innerWidth / 2;
36
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
37
- ref: ref,
38
- style: {
54
+ const t0 = `${outerWidth}px`;
55
+ const t1 = `${outerWidth}px`;
56
+ const t2 = `path("M0,${outerRadius} a${outerRadius},${outerRadius},0,1,0,${outerWidth},0 a${outerRadius},${outerRadius},0,1,0,-${outerWidth},0 l${outerRadius - innerRadius},0 a${innerRadius},${innerRadius},0,0,1,${2 * innerRadius},0 a${innerRadius},${innerRadius},0,0,1,-${2 * innerRadius},0 Z")`;
57
+ let t3;
58
+ if ($[5] !== style || $[6] !== t0 || $[7] !== t1 || $[8] !== t2) {
59
+ t3 = {
39
60
  ...style,
40
- width: `${outerWidth}px`,
41
- height: `${outerWidth}px`,
42
- clipPath: `path("M0,${outerRadius} a${outerRadius},${outerRadius},0,1,0,${outerWidth},0 a${outerRadius},${outerRadius},0,1,0,-${outerWidth},0 l${outerRadius - innerRadius},0 a${innerRadius},${innerRadius},0,0,1,${2 * innerRadius},0 a${innerRadius},${innerRadius},0,0,1,-${2 * innerRadius},0 Z")`
43
- },
44
- ...rest
45
- });
61
+ width: t0,
62
+ height: t1,
63
+ clipPath: t2
64
+ };
65
+ $[5] = style;
66
+ $[6] = t0;
67
+ $[7] = t1;
68
+ $[8] = t2;
69
+ $[9] = t3;
70
+ } else t3 = $[9];
71
+ let t4;
72
+ if ($[10] !== ref || $[11] !== rest || $[12] !== t3) {
73
+ t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
74
+ ref: ref,
75
+ style: t3,
76
+ ...rest
77
+ });
78
+ $[10] = ref;
79
+ $[11] = rest;
80
+ $[12] = t3;
81
+ $[13] = t4;
82
+ } else t4 = $[13];
83
+ return t4;
46
84
  });
47
85
  exports.Ring = __webpack_exports__.Ring;
48
86
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,19 +1,57 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { forwardRef } from "react";
4
5
  const Ring = /*#__PURE__*/ forwardRef((props, ref)=>{
5
- const { outerWidth, innerWidth, style, ...rest } = props;
6
+ const $ = c(14);
7
+ let innerWidth;
8
+ let outerWidth;
9
+ let rest;
10
+ let style;
11
+ if ($[0] !== props) {
12
+ ({ outerWidth, innerWidth, style, ...rest } = props);
13
+ $[0] = props;
14
+ $[1] = innerWidth;
15
+ $[2] = outerWidth;
16
+ $[3] = rest;
17
+ $[4] = style;
18
+ } else {
19
+ innerWidth = $[1];
20
+ outerWidth = $[2];
21
+ rest = $[3];
22
+ style = $[4];
23
+ }
6
24
  const outerRadius = outerWidth / 2;
7
25
  const innerRadius = innerWidth / 2;
8
- return /*#__PURE__*/ jsx("div", {
9
- ref: ref,
10
- style: {
26
+ const t0 = `${outerWidth}px`;
27
+ const t1 = `${outerWidth}px`;
28
+ const t2 = `path("M0,${outerRadius} a${outerRadius},${outerRadius},0,1,0,${outerWidth},0 a${outerRadius},${outerRadius},0,1,0,-${outerWidth},0 l${outerRadius - innerRadius},0 a${innerRadius},${innerRadius},0,0,1,${2 * innerRadius},0 a${innerRadius},${innerRadius},0,0,1,-${2 * innerRadius},0 Z")`;
29
+ let t3;
30
+ if ($[5] !== style || $[6] !== t0 || $[7] !== t1 || $[8] !== t2) {
31
+ t3 = {
11
32
  ...style,
12
- width: `${outerWidth}px`,
13
- height: `${outerWidth}px`,
14
- clipPath: `path("M0,${outerRadius} a${outerRadius},${outerRadius},0,1,0,${outerWidth},0 a${outerRadius},${outerRadius},0,1,0,-${outerWidth},0 l${outerRadius - innerRadius},0 a${innerRadius},${innerRadius},0,0,1,${2 * innerRadius},0 a${innerRadius},${innerRadius},0,0,1,-${2 * innerRadius},0 Z")`
15
- },
16
- ...rest
17
- });
33
+ width: t0,
34
+ height: t1,
35
+ clipPath: t2
36
+ };
37
+ $[5] = style;
38
+ $[6] = t0;
39
+ $[7] = t1;
40
+ $[8] = t2;
41
+ $[9] = t3;
42
+ } else t3 = $[9];
43
+ let t4;
44
+ if ($[10] !== ref || $[11] !== rest || $[12] !== t3) {
45
+ t4 = /*#__PURE__*/ jsx("div", {
46
+ ref: ref,
47
+ style: t3,
48
+ ...rest
49
+ });
50
+ $[10] = ref;
51
+ $[11] = rest;
52
+ $[12] = t3;
53
+ $[13] = t4;
54
+ } else t4 = $[13];
55
+ return t4;
18
56
  });
19
57
  export { Ring };