deepsea-components 5.16.15 → 5.17.0

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 (48) hide show
  1. package/dist/components/AutoFit.cjs +9 -9
  2. package/dist/components/AutoFit.js +9 -9
  3. package/dist/components/AutoScroll.cjs +4 -4
  4. package/dist/components/AutoScroll.js +4 -4
  5. package/dist/components/AutoSizeTextarea.cjs +23 -81
  6. package/dist/components/AutoSizeTextarea.js +23 -81
  7. package/dist/components/CircleText.cjs +24 -120
  8. package/dist/components/CircleText.js +24 -120
  9. package/dist/components/CopyButton.cjs +2 -2
  10. package/dist/components/CopyButton.js +2 -2
  11. package/dist/components/DraggableGrid.cjs +98 -149
  12. package/dist/components/DraggableGrid.js +98 -149
  13. package/dist/components/Echart.cjs +24 -94
  14. package/dist/components/Echart.js +24 -94
  15. package/dist/components/Flow.cjs +8 -8
  16. package/dist/components/Flow.js +8 -8
  17. package/dist/components/FormLabel.cjs +27 -92
  18. package/dist/components/FormLabel.js +27 -92
  19. package/dist/components/HlsPlayer.cjs +24 -65
  20. package/dist/components/HlsPlayer.js +24 -65
  21. package/dist/components/IconFileType.cjs +4 -14
  22. package/dist/components/IconFileType.js +4 -14
  23. package/dist/components/InfiniteScroll.cjs +4 -4
  24. package/dist/components/InfiniteScroll.js +4 -4
  25. package/dist/components/InputFile.cjs +11 -2
  26. package/dist/components/InputFile.d.ts +8 -0
  27. package/dist/components/InputFile.js +11 -2
  28. package/dist/components/InputFileButton.cjs +18 -9
  29. package/dist/components/InputFileButton.js +18 -9
  30. package/dist/components/ReadSheet.cjs +7 -32
  31. package/dist/components/ReadSheet.js +7 -32
  32. package/dist/components/Ring.cjs +10 -48
  33. package/dist/components/Ring.js +10 -48
  34. package/dist/components/ScrollMask.cjs +11 -97
  35. package/dist/components/ScrollMask.js +11 -97
  36. package/dist/components/SectionRing.cjs +15 -60
  37. package/dist/components/SectionRing.js +15 -60
  38. package/dist/components/TransitionBox.cjs +28 -118
  39. package/dist/components/TransitionBox.js +28 -118
  40. package/dist/components/TransitionNum.cjs +8 -8
  41. package/dist/components/TransitionNum.js +8 -8
  42. package/dist/components/Trapezium.cjs +9 -68
  43. package/dist/components/Trapezium.js +9 -68
  44. package/dist/components/Unify.cjs +19 -79
  45. package/dist/components/Unify.js +19 -79
  46. package/package.json +3 -3
  47. package/src/components/InputFile.tsx +23 -2
  48. package/src/components/InputFileButton.tsx +16 -2
@@ -1,73 +1,32 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import hls_0 from "hls.js";
5
4
  import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
6
5
  const HlsPlayer = /*#__PURE__*/ forwardRef((props, ref)=>{
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
- }
6
+ const { src, ...rest } = props;
19
7
  const video = useRef(null);
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;
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
+ });
72
31
  });
73
32
  export { HlsPlayer };
@@ -31,24 +31,14 @@ __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");
35
34
  const GOLD = (Math.sqrt(5) - 1) / 2;
36
35
  const GOLD_T = Math.sqrt(1 - GOLD * GOLD);
37
36
  const HANDLE_LENGTH = (1 - GOLD) * GOLD_T;
38
37
  const FileTypeSize = 512;
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
- };
38
+ const IconFileTypeBase = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
39
+ viewBox: `${-(FileTypeSize / 2)} ${-(FileTypeSize / 2)} ${FileTypeSize} ${FileTypeSize}`,
40
+ ...props
41
+ });
52
42
  const IconFileTypePage = ({ pageColor = "#f31260", pageWidth = 0.75 * FileTypeSize, pageBessel = 0.75 * FileTypeSize * GOLD, ...rest })=>{
53
43
  const radius = pageBessel * (1 - GOLD);
54
44
  const offset = pageBessel * HANDLE_LENGTH;
@@ -1,22 +1,12 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { c } from "react/compiler-runtime";
3
2
  const GOLD = (Math.sqrt(5) - 1) / 2;
4
3
  const GOLD_T = Math.sqrt(1 - GOLD * GOLD);
5
4
  const HANDLE_LENGTH = (1 - GOLD) * GOLD_T;
6
5
  const FileTypeSize = 512;
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
- };
6
+ const IconFileTypeBase = (props)=>/*#__PURE__*/ jsx("svg", {
7
+ viewBox: `${-(FileTypeSize / 2)} ${-(FileTypeSize / 2)} ${FileTypeSize} ${FileTypeSize}`,
8
+ ...props
9
+ });
20
10
  const IconFileTypePage = ({ pageColor = "#f31260", pageWidth = 0.75 * FileTypeSize, pageBessel = 0.75 * FileTypeSize * GOLD, ...rest })=>{
21
11
  const radius = pageBessel * (1 - GOLD);
22
12
  const offset = pageBessel * HANDLE_LENGTH;
@@ -42,8 +42,8 @@ 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_0, wrapperSize_0) {
46
- return withEqual ? containerSize_0 + (withGap ? gap : 0) >= wrapperSize_0 : containerSize_0 + (withGap ? gap : 0) > wrapperSize_0;
45
+ function bigger(containerSize, wrapperSize) {
46
+ return withEqual ? containerSize + (withGap ? gap : 0) >= wrapperSize : containerSize + (withGap ? gap : 0) > wrapperSize;
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);
@@ -78,10 +78,10 @@ const InfiniteScroll = /*#__PURE__*/ (0, external_react_namespaceObject.forwardR
78
78
  if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.pause();
79
79
  null == onMouseEnter || onMouseEnter(e);
80
80
  }
81
- function leave(e_0) {
81
+ function leave(e) {
82
82
  var _animation_current;
83
83
  if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.play();
84
- null == onMouseLeave || onMouseLeave(e_0);
84
+ null == onMouseLeave || onMouseLeave(e);
85
85
  }
86
86
  (0, external_react_namespaceObject.useEffect)(()=>{
87
87
  var _animation_current, _animation_current1;
@@ -14,8 +14,8 @@ const InfiniteScroll = /*#__PURE__*/ forwardRef((props, ref)=>{
14
14
  ]);
15
15
  const container = useRef(null);
16
16
  const containerSize = useSize(container);
17
- function bigger(containerSize_0, wrapperSize_0) {
18
- return withEqual ? containerSize_0 + (withGap ? gap : 0) >= wrapperSize_0 : containerSize_0 + (withGap ? gap : 0) > wrapperSize_0;
17
+ function bigger(containerSize, wrapperSize) {
18
+ return withEqual ? containerSize + (withGap ? gap : 0) >= wrapperSize : containerSize + (withGap ? gap : 0) > wrapperSize;
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);
@@ -50,10 +50,10 @@ const InfiniteScroll = /*#__PURE__*/ forwardRef((props, ref)=>{
50
50
  if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.pause();
51
51
  null == onMouseEnter || onMouseEnter(e);
52
52
  }
53
- function leave(e_0) {
53
+ function leave(e) {
54
54
  var _animation_current;
55
55
  if (pauseOnHover) null == (_animation_current = animation.current) || _animation_current.play();
56
- null == onMouseLeave || onMouseLeave(e_0);
56
+ null == onMouseLeave || onMouseLeave(e);
57
57
  }
58
58
  useEffect(()=>{
59
59
  var _animation_current, _animation_current1;
@@ -55,7 +55,7 @@ async function getFileData(file, type) {
55
55
  });
56
56
  }
57
57
  function InputFile(props) {
58
- const { multiple = false, type = "file", onChange: _onChange, disabled: _disabled, clearAfterChange, onValueChange, onFileChange, ...rest } = props;
58
+ const { multiple = false, type = "file", onChange: _onChange, disabled: _disabled, clearAfterChange, onValueChange, onFileChange, onDataChange, ...rest } = props;
59
59
  const [disabled, setDisabled] = (0, external_react_namespaceObject.useState)(false);
60
60
  async function onChange(e) {
61
61
  null == _onChange || _onChange(e);
@@ -73,10 +73,19 @@ function InputFile(props) {
73
73
  }
74
74
  null == onFileChange || onFileChange(files2);
75
75
  null == onValueChange || onValueChange(values);
76
+ null == onDataChange || onDataChange(files2.map((file, index)=>({
77
+ file,
78
+ value: values[index]
79
+ })));
76
80
  } else {
77
81
  const file = files[0];
78
82
  null == onFileChange || onFileChange(file);
79
- null == onValueChange || onValueChange(await getFileData(file, type));
83
+ const value = await getFileData(file, type);
84
+ null == onValueChange || onValueChange(value);
85
+ null == onDataChange || onDataChange({
86
+ file,
87
+ value
88
+ });
80
89
  }
81
90
  } finally{
82
91
  if (clearAfterChange) input.value = "";
@@ -12,11 +12,19 @@ export interface InputFileBaseProps extends Omit<ComponentProps<"input">, "multi
12
12
  }
13
13
  export type FileType<Multiple extends boolean> = Multiple extends true ? File[] : File;
14
14
  export type ValueType<Multiple extends boolean, Type extends InputFileDataType> = Multiple extends true ? InputFileDataTypeMap[Type][] : InputFileDataTypeMap[Type];
15
+ export type DataType<Multiple extends boolean, Type extends InputFileDataType> = Multiple extends true ? {
16
+ file: File;
17
+ value: InputFileDataTypeMap[Type];
18
+ }[] : {
19
+ file: File;
20
+ value: InputFileDataTypeMap[Type];
21
+ };
15
22
  export interface InputFileExtraProps<Multiple extends boolean = false, Type extends InputFileDataType = "file"> {
16
23
  multiple?: Multiple;
17
24
  type?: Type;
18
25
  onValueChange?: (data: ValueType<Multiple, Type>) => void;
19
26
  onFileChange?: (data: FileType<Multiple>) => void;
27
+ onDataChange?: (data: DataType<Multiple, Type>) => void;
20
28
  /** 是否在捕获文件后清除 input 上的文件,默认为 false,主要区别在于如果不清除,连续两次选择同样的文件不会触发 onChange 事件,如果用于 form 表单,请设置为 flase */
21
29
  clearAfterChange?: boolean;
22
30
  }
@@ -26,7 +26,7 @@ async function getFileData(file, type) {
26
26
  });
27
27
  }
28
28
  function InputFile(props) {
29
- const { multiple = false, type = "file", onChange: _onChange, disabled: _disabled, clearAfterChange, onValueChange, onFileChange, ...rest } = props;
29
+ const { multiple = false, type = "file", onChange: _onChange, disabled: _disabled, clearAfterChange, onValueChange, onFileChange, onDataChange, ...rest } = props;
30
30
  const [disabled, setDisabled] = useState(false);
31
31
  async function onChange(e) {
32
32
  null == _onChange || _onChange(e);
@@ -44,10 +44,19 @@ function InputFile(props) {
44
44
  }
45
45
  null == onFileChange || onFileChange(files2);
46
46
  null == onValueChange || onValueChange(values);
47
+ null == onDataChange || onDataChange(files2.map((file, index)=>({
48
+ file,
49
+ value: values[index]
50
+ })));
47
51
  } else {
48
52
  const file = files[0];
49
53
  null == onFileChange || onFileChange(file);
50
- null == onValueChange || onValueChange(await getFileData(file, type));
54
+ const value = await getFileData(file, type);
55
+ null == onValueChange || onValueChange(value);
56
+ null == onDataChange || onDataChange({
57
+ file,
58
+ value
59
+ });
51
60
  }
52
61
  } finally{
53
62
  if (clearAfterChange) input.value = "";
@@ -31,7 +31,7 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
31
  const external_react_namespaceObject = require("react");
32
32
  const external_InputFile_cjs_namespaceObject = require("./InputFile.cjs");
33
33
  function InputFileButton(props) {
34
- const { as = "button", onClick: _onClick, inputProps = {}, accept, onDrop: _onDrop, onDragOver: _onDragOver, dragFile, disabled: _disabled, type = "file", multiple, onValueChange, onFileChange, clearAfterChange, ...rest } = props;
34
+ const { as = "button", onClick: _onClick, inputProps = {}, accept, onDrop: _onDrop, onDragOver: _onDragOver, dragFile, disabled: _disabled, type = "file", multiple, onValueChange, onFileChange, onDataChange, clearAfterChange, ...rest } = props;
35
35
  const { ref, style, disabled: __disabled, ...restInputProps } = inputProps;
36
36
  const [disabled, setDisabled] = (0, external_react_namespaceObject.useState)(false);
37
37
  const input = (0, external_react_namespaceObject.useRef)(null);
@@ -43,11 +43,11 @@ function InputFileButton(props) {
43
43
  null == (_input_current = input.current) || _input_current.click();
44
44
  null == _onClick || _onClick(e);
45
45
  }
46
- async function onDrop(e_0) {
47
- null == _onDrop || _onDrop(e_0);
46
+ async function onDrop(e) {
47
+ null == _onDrop || _onDrop(e);
48
48
  if (disabled || !dragFile) return;
49
- e_0.preventDefault();
50
- const { files } = e_0.dataTransfer;
49
+ e.preventDefault();
50
+ const { files } = e.dataTransfer;
51
51
  if (!files || 0 === files.length) return;
52
52
  setDisabled(true);
53
53
  try {
@@ -60,19 +60,28 @@ function InputFileButton(props) {
60
60
  }
61
61
  null == onFileChange || onFileChange(files2);
62
62
  null == onValueChange || onValueChange(values);
63
+ null == onDataChange || onDataChange(files2.map((file, index)=>({
64
+ file,
65
+ value: values[index]
66
+ })));
63
67
  } else {
64
68
  const file = files[0];
65
69
  null == onFileChange || onFileChange(file);
66
- null == onValueChange || onValueChange(await (0, external_InputFile_cjs_namespaceObject.getFileData)(file, type));
70
+ const value = await (0, external_InputFile_cjs_namespaceObject.getFileData)(file, type);
71
+ null == onValueChange || onValueChange(value);
72
+ null == onDataChange || onDataChange({
73
+ file,
74
+ value
75
+ });
67
76
  }
68
77
  } finally{
69
78
  setDisabled(false);
70
79
  }
71
80
  }
72
- function onDragOver(e_1) {
73
- null == _onDragOver || _onDragOver(e_1);
81
+ function onDragOver(e) {
82
+ null == _onDragOver || _onDragOver(e);
74
83
  if (disabled || !dragFile) return;
75
- e_1.preventDefault();
84
+ e.preventDefault();
76
85
  }
77
86
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_react_namespaceObject.Fragment, {
78
87
  children: [
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment, createElement, useImperativeHandle, useRef, useState } from "react";
4
4
  import { InputFile, getFileData } from "./InputFile.js";
5
5
  function InputFileButton(props) {
6
- const { as = "button", onClick: _onClick, inputProps = {}, accept, onDrop: _onDrop, onDragOver: _onDragOver, dragFile, disabled: _disabled, type = "file", multiple, onValueChange, onFileChange, clearAfterChange, ...rest } = props;
6
+ const { as = "button", onClick: _onClick, inputProps = {}, accept, onDrop: _onDrop, onDragOver: _onDragOver, dragFile, disabled: _disabled, type = "file", multiple, onValueChange, onFileChange, onDataChange, clearAfterChange, ...rest } = props;
7
7
  const { ref, style, disabled: __disabled, ...restInputProps } = inputProps;
8
8
  const [disabled, setDisabled] = useState(false);
9
9
  const input = useRef(null);
@@ -15,11 +15,11 @@ function InputFileButton(props) {
15
15
  null == (_input_current = input.current) || _input_current.click();
16
16
  null == _onClick || _onClick(e);
17
17
  }
18
- async function onDrop(e_0) {
19
- null == _onDrop || _onDrop(e_0);
18
+ async function onDrop(e) {
19
+ null == _onDrop || _onDrop(e);
20
20
  if (disabled || !dragFile) return;
21
- e_0.preventDefault();
22
- const { files } = e_0.dataTransfer;
21
+ e.preventDefault();
22
+ const { files } = e.dataTransfer;
23
23
  if (!files || 0 === files.length) return;
24
24
  setDisabled(true);
25
25
  try {
@@ -32,19 +32,28 @@ function InputFileButton(props) {
32
32
  }
33
33
  null == onFileChange || onFileChange(files2);
34
34
  null == onValueChange || onValueChange(values);
35
+ null == onDataChange || onDataChange(files2.map((file, index)=>({
36
+ file,
37
+ value: values[index]
38
+ })));
35
39
  } else {
36
40
  const file = files[0];
37
41
  null == onFileChange || onFileChange(file);
38
- null == onValueChange || onValueChange(await getFileData(file, type));
42
+ const value = await getFileData(file, type);
43
+ null == onValueChange || onValueChange(value);
44
+ null == onDataChange || onDataChange({
45
+ file,
46
+ value
47
+ });
39
48
  }
40
49
  } finally{
41
50
  setDisabled(false);
42
51
  }
43
52
  }
44
- function onDragOver(e_1) {
45
- null == _onDragOver || _onDragOver(e_1);
53
+ function onDragOver(e) {
54
+ null == _onDragOver || _onDragOver(e);
46
55
  if (disabled || !dragFile) return;
47
- e_1.preventDefault();
56
+ e.preventDefault();
48
57
  }
49
58
  return /*#__PURE__*/ jsxs(Fragment, {
50
59
  children: [
@@ -28,41 +28,16 @@ __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");
32
31
  const external_deepsea_tools_namespaceObject = require("deepsea-tools");
33
32
  const external_InputFile_cjs_namespaceObject = require("./InputFile.cjs");
34
33
  const ReadSheet = (props)=>{
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;
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)=>null == onValueChange ? void 0 : onValueChange((0, external_deepsea_tools_namespaceObject.readSheet)(data)),
39
+ ...rest
40
+ });
66
41
  };
67
42
  exports.ReadSheet = __webpack_exports__.ReadSheet;
68
43
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,39 +1,14 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import { readSheet } from "deepsea-tools";
5
4
  import { InputFile } from "./InputFile.js";
6
5
  const ReadSheet = (props)=>{
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;
6
+ const { onValueChange, ...rest } = props;
7
+ return /*#__PURE__*/ jsx(InputFile, {
8
+ accept: ".xlsx",
9
+ type: "arrayBuffer",
10
+ onValueChange: (data)=>null == onValueChange ? void 0 : onValueChange(readSheet(data)),
11
+ ...rest
12
+ });
38
13
  };
39
14
  export { ReadSheet };
@@ -28,59 +28,21 @@ __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");
32
31
  const external_react_namespaceObject = require("react");
33
32
  const Ring = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
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
- }
33
+ const { outerWidth, innerWidth, style, ...rest } = props;
52
34
  const outerRadius = outerWidth / 2;
53
35
  const innerRadius = innerWidth / 2;
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 = {
36
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
37
+ ref: ref,
38
+ style: {
60
39
  ...style,
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;
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
+ });
84
46
  });
85
47
  exports.Ring = __webpack_exports__.Ring;
86
48
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,57 +1,19 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import { forwardRef } from "react";
5
4
  const Ring = /*#__PURE__*/ forwardRef((props, ref)=>{
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
- }
5
+ const { outerWidth, innerWidth, style, ...rest } = props;
24
6
  const outerRadius = outerWidth / 2;
25
7
  const innerRadius = innerWidth / 2;
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 = {
8
+ return /*#__PURE__*/ jsx("div", {
9
+ ref: ref,
10
+ style: {
32
11
  ...style,
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;
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
+ });
56
18
  });
57
19
  export { Ring };