deepsea-components 5.15.16 → 5.15.18
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.
- package/dist/components/AutoFit.cjs +1 -1
- package/dist/components/AutoFit.js +1 -1
- package/dist/components/AutoScroll.cjs +1 -1
- package/dist/components/AutoScroll.js +1 -1
- package/dist/components/AutoSizeTextarea.cjs +1 -1
- package/dist/components/AutoSizeTextarea.js +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.d.ts +1 -1
- package/dist/components/CopyButton.js +1 -1
- package/dist/components/Echart.cjs +1 -1
- package/dist/components/Echart.d.ts +1 -1
- package/dist/components/Echart.js +1 -1
- package/dist/components/Flow.cjs +1 -1
- package/dist/components/Flow.js +1 -1
- package/dist/components/HlsPlayer.cjs +1 -1
- package/dist/components/HlsPlayer.js +1 -1
- package/dist/components/InfiniteScroll.cjs +1 -1
- package/dist/components/InfiniteScroll.js +1 -1
- package/dist/components/LoopSwiper.cjs +1 -1
- package/dist/components/LoopSwiper.js +1 -1
- package/dist/components/ReadSheet.d.ts +1 -1
- package/dist/components/Scroll.cjs +11 -11
- package/dist/components/Scroll.js +1 -1
- package/dist/components/ScrollMask.cjs +1 -1
- package/dist/components/ScrollMask.js +1 -1
- package/dist/components/SectionRing.cjs +1 -1
- package/dist/components/SectionRing.js +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.js +1 -1
- package/dist/components/Title.cjs +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/TransitionNum.cjs +1 -1
- package/dist/components/TransitionNum.js +1 -1
- package/dist/components/Trapezium.cjs +1 -1
- package/dist/components/Trapezium.js +1 -1
- package/dist/components/Unify.cjs +1 -1
- package/dist/components/Unify.js +1 -1
- package/dist/components/WriteSheet.cjs +1 -1
- package/dist/components/WriteSheet.d.ts +1 -1
- package/dist/components/WriteSheet.js +1 -1
- package/package.json +3 -3
- package/src/components/AutoFit.tsx +1 -1
- package/src/components/AutoScroll.tsx +1 -1
- package/src/components/AutoSizeTextarea.tsx +1 -1
- package/src/components/CopyButton.tsx +1 -1
- package/src/components/Echart.tsx +11 -11
- package/src/components/Flow.tsx +1 -1
- package/src/components/HlsPlayer.tsx +1 -1
- package/src/components/InfiniteScroll.tsx +1 -1
- package/src/components/LoopSwiper.tsx +1 -1
- package/src/components/ReadSheet.tsx +1 -1
- package/src/components/Scroll.tsx +1 -1
- package/src/components/ScrollMask.tsx +1 -1
- package/src/components/SectionRing.tsx +1 -1
- package/src/components/Skeleton.tsx +1 -1
- package/src/components/Title.tsx +1 -1
- package/src/components/TransitionNum.tsx +1 -1
- package/src/components/Trapezium.tsx +1 -1
- package/src/components/Unify.tsx +1 -1
- package/src/components/WriteSheet.tsx +1 -1
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
AutoFit: ()=>AutoFit
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const css_namespaceObject = require("@emotion/css");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const index_cjs_namespaceObject = require("../utils/index.cjs");
|
|
35
35
|
const AutoFit = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
36
36
|
const { width: designWidth = 1920, height: designHeight = 1080, direction, className, style, ...rest } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_index_js_6619c453__ from "../utils/index.js";
|
|
7
7
|
const AutoFit = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
8
8
|
const { width: designWidth = 1920, height: designHeight = 1080, direction, className, style, ...rest } = props;
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
AutoScroll: ()=>AutoScroll
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const css_namespaceObject = require("@emotion/css");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const external_soda_hooks_namespaceObject = require("soda-hooks");
|
|
35
35
|
const index_cjs_namespaceObject = require("../utils/index.cjs");
|
|
36
36
|
const external_Scroll_cjs_namespaceObject = require("./Scroll.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_soda_hooks_b1fef7dd__ from "soda-hooks";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_index_js_6619c453__ from "../utils/index.js";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__Scroll_js_70befd9e__ from "./Scroll.js";
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
AutoSizeTextArea: ()=>AutoSizeTextArea
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const css_namespaceObject = require("@emotion/css");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const index_cjs_namespaceObject = require("../utils/index.cjs");
|
|
35
35
|
const AutoSizeTextArea = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
36
36
|
const { className, style, ...rest } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_index_js_6619c453__ from "../utils/index.js";
|
|
7
7
|
const AutoSizeTextArea = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
8
8
|
const { className, style, ...rest } = props;
|
|
@@ -38,9 +38,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
CopyButton: ()=>CopyButton
|
|
39
39
|
});
|
|
40
40
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
41
|
-
const external_react_namespaceObject = require("react");
|
|
42
41
|
const external_clipboard_namespaceObject = require("clipboard");
|
|
43
42
|
var external_clipboard_default = /*#__PURE__*/ __webpack_require__.n(external_clipboard_namespaceObject);
|
|
43
|
+
const external_react_namespaceObject = require("react");
|
|
44
44
|
const external_soda_hooks_namespaceObject = require("soda-hooks");
|
|
45
45
|
const CopyButton = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
46
46
|
const { text, onCopySuccess: _onCoptSuccess, onCopyError: _onCopyError, ...rest } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_clipboard__ from "clipboard";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_soda_hooks_b1fef7dd__ from "soda-hooks";
|
|
6
6
|
const CopyButton = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
7
7
|
const { text, onCopySuccess: _onCoptSuccess, onCopyError: _onCopyError, ...rest } = props;
|
|
@@ -30,8 +30,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
Line: ()=>Line
|
|
31
31
|
});
|
|
32
32
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
33
|
-
const external_react_namespaceObject = require("react");
|
|
34
33
|
const external_echarts_namespaceObject = require("echarts");
|
|
34
|
+
const external_react_namespaceObject = require("react");
|
|
35
35
|
const Echart = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
36
36
|
const { width, height, option, chart, ...rest } = props;
|
|
37
37
|
const container = (0, external_react_namespaceObject.useRef)(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ForwardRefExoticComponent, ForwardedRef, RefAttributes } from "react";
|
|
2
1
|
import { BarSeriesOption, ComposeOption, DatasetComponentOption, ECharts, GridComponentOption, LineSeriesOption, PieSeriesOption, TitleComponentOption, TooltipComponentOption } from "echarts";
|
|
2
|
+
import { ComponentPropsWithoutRef, ForwardRefExoticComponent, ForwardedRef, RefAttributes } from "react";
|
|
3
3
|
export type PieOption = ComposeOption<PieSeriesOption | TitleComponentOption | DatasetComponentOption | GridComponentOption | TooltipComponentOption>;
|
|
4
4
|
export type BarOption = ComposeOption<BarSeriesOption | TitleComponentOption | DatasetComponentOption | GridComponentOption | TooltipComponentOption>;
|
|
5
5
|
export type LineOption = ComposeOption<LineSeriesOption | TitleComponentOption | DatasetComponentOption | GridComponentOption | TooltipComponentOption>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_echarts__ from "echarts";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
const Echart = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
6
6
|
const { width, height, option, chart, ...rest } = props;
|
|
7
7
|
const container = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
package/dist/components/Flow.cjs
CHANGED
|
@@ -31,9 +31,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
31
31
|
ManualFlow: ()=>ManualFlow
|
|
32
32
|
});
|
|
33
33
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
34
|
-
const external_react_namespaceObject = require("react");
|
|
35
34
|
const css_namespaceObject = require("@emotion/css");
|
|
36
35
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
36
|
+
const external_react_namespaceObject = require("react");
|
|
37
37
|
const external_soda_hooks_namespaceObject = require("soda-hooks");
|
|
38
38
|
const index_cjs_namespaceObject = require("../utils/index.cjs");
|
|
39
39
|
function getGapRange(gap) {
|
package/dist/components/Flow.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_soda_hooks_b1fef7dd__ from "soda-hooks";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_index_js_6619c453__ from "../utils/index.js";
|
|
8
8
|
function getGapRange(gap) {
|
|
@@ -37,9 +37,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
HlsPlayer: ()=>HlsPlayer
|
|
38
38
|
});
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
|
-
const external_react_namespaceObject = require("react");
|
|
41
40
|
const external_hls_js_namespaceObject = require("hls.js");
|
|
42
41
|
var external_hls_js_default = /*#__PURE__*/ __webpack_require__.n(external_hls_js_namespaceObject);
|
|
42
|
+
const external_react_namespaceObject = require("react");
|
|
43
43
|
const HlsPlayer = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
44
44
|
const { src, ...rest } = props;
|
|
45
45
|
const video = (0, external_react_namespaceObject.useRef)(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_hls_js_a9a66012__ from "hls.js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
const HlsPlayer = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
6
6
|
const { src, ...rest } = props;
|
|
7
7
|
const video = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
InfiniteScroll: ()=>InfiniteScroll
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const css_namespaceObject = require("@emotion/css");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const external_soda_hooks_namespaceObject = require("soda-hooks");
|
|
35
35
|
const InfiniteScroll = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
36
36
|
const { className, direction = "vertical", children, containerClassName, containerStyle, gap = 0, duration, withGap, withEqual, pauseOnHover, onMouseEnter, onMouseLeave, ...rest } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_soda_hooks_b1fef7dd__ from "soda-hooks";
|
|
7
7
|
const InfiniteScroll = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
8
8
|
const { className, direction = "vertical", children, containerClassName, containerStyle, gap = 0, duration, withGap, withEqual, pauseOnHover, onMouseEnter, onMouseLeave, ...rest } = props;
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
LoopSwiper: ()=>LoopSwiper
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const css_namespaceObject = require("@emotion/css");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const LoopSwiper = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
35
35
|
const { className, style, children, direction, period, reverse, gap, ...rest } = props;
|
|
36
36
|
const wrapper = (0, external_react_namespaceObject.useRef)(null);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
const LoopSwiper = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
7
7
|
const { className, style, children, direction, period, reverse, gap, ...rest } = props;
|
|
8
8
|
const wrapper = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
1
|
import { WorkBookData, WorkSheetData } from "deepsea-tools";
|
|
2
|
+
import { FC } from "react";
|
|
3
3
|
import { InputFileProps } from "./InputFile";
|
|
4
4
|
export interface ReadSheetProps extends Omit<InputFileProps<false, "arrayBuffer">, "multiple" | "accept" | "type" | "onValueChange"> {
|
|
5
5
|
onValueChange?: <Sheet = WorkSheetData>(data: WorkBookData<Sheet>) => void;
|
|
@@ -71,9 +71,9 @@ var __webpack_exports__ = {};
|
|
|
71
71
|
Scrollbar: ()=>smooth_scrollbar__WEBPACK_IMPORTED_MODULE_4___default.a
|
|
72
72
|
});
|
|
73
73
|
var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("react/jsx-runtime");
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
74
|
+
var _emotion_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@emotion/css");
|
|
75
|
+
var deepsea_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("deepsea-tools");
|
|
76
|
+
var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("react");
|
|
77
77
|
var smooth_scrollbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("smooth-scrollbar");
|
|
78
78
|
var smooth_scrollbar__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(smooth_scrollbar__WEBPACK_IMPORTED_MODULE_4__);
|
|
79
79
|
var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("@/utils");
|
|
@@ -87,18 +87,18 @@ var __webpack_exports__ = {};
|
|
|
87
87
|
return smooth_scrollbar_interfaces__WEBPACK_IMPORTED_MODULE_6__[key];
|
|
88
88
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
89
89
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
90
|
-
const Scroll = /*#__PURE__*/ (0,
|
|
90
|
+
const Scroll = /*#__PURE__*/ (0, react__WEBPACK_IMPORTED_MODULE_3__.forwardRef)((props, ref)=>{
|
|
91
91
|
const { children, options, className, style, scrollbar, onScrollbar, ...rest } = props;
|
|
92
92
|
const { thumbWidth, thumbRadius, thumbColor, trackColor, ...scrollbarOptions } = options || {};
|
|
93
|
-
const ele = (0,
|
|
94
|
-
const bar = (0,
|
|
95
|
-
(0,
|
|
93
|
+
const ele = (0, react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);
|
|
94
|
+
const bar = (0, react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);
|
|
95
|
+
(0, react__WEBPACK_IMPORTED_MODULE_3__.useLayoutEffect)(()=>{
|
|
96
96
|
bar.current = smooth_scrollbar__WEBPACK_IMPORTED_MODULE_4___default().init(ele.current, scrollbarOptions);
|
|
97
97
|
return ()=>bar.current?.destroy();
|
|
98
98
|
}, []);
|
|
99
|
-
(0,
|
|
100
|
-
(0,
|
|
101
|
-
(0,
|
|
99
|
+
(0, react__WEBPACK_IMPORTED_MODULE_3__.useImperativeHandle)(ref, ()=>ele.current, []);
|
|
100
|
+
(0, react__WEBPACK_IMPORTED_MODULE_3__.useImperativeHandle)(scrollbar, ()=>bar.current, []);
|
|
101
|
+
(0, react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(()=>{
|
|
102
102
|
if (!onScrollbar) return;
|
|
103
103
|
bar.current?.addListener(onScrollbar);
|
|
104
104
|
return ()=>bar.current?.removeListener(onScrollbar);
|
|
@@ -107,7 +107,7 @@ var __webpack_exports__ = {};
|
|
|
107
107
|
]);
|
|
108
108
|
return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
|
|
109
109
|
ref: ele,
|
|
110
|
-
className: (0,
|
|
110
|
+
className: (0, deepsea_tools__WEBPACK_IMPORTED_MODULE_2__.clsx)((0, _emotion_css__WEBPACK_IMPORTED_MODULE_1__.css)`
|
|
111
111
|
.scrollbar-track.scrollbar-track-x {
|
|
112
112
|
${void 0 !== thumbWidth ? "height: var(--thumb-width);" : ""} ${void 0 !== trackColor ? "background-color: var(--track-color);" : ""}
|
|
113
113
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_smooth_scrollbar_80cf4563__ from "smooth-scrollbar";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_index_js_6619c453__ from "../utils/index.js";
|
|
8
8
|
export * from "smooth-scrollbar/interfaces";
|
|
@@ -36,8 +36,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36
36
|
ScrollMask: ()=>ScrollMask
|
|
37
37
|
});
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
|
-
const external_react_namespaceObject = require("react");
|
|
40
39
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
40
|
+
const external_react_namespaceObject = require("react");
|
|
41
41
|
const external_soda_hooks_namespaceObject = require("soda-hooks");
|
|
42
42
|
const external_ScrollMask_module_cjs_namespaceObject = require("./ScrollMask.module.cjs");
|
|
43
43
|
var external_ScrollMask_module_cjs_default = /*#__PURE__*/ __webpack_require__.n(external_ScrollMask_module_cjs_namespaceObject);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
2
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_soda_hooks_b1fef7dd__ from "soda-hooks";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__ScrollMask_module_js_e15d4b28__ from "./ScrollMask.module.js";
|
|
6
6
|
const ScrollMask = ({ className, style, position = "top", size = 8, from = "rgba(0, 0, 0, 0.1)", to = "rgba(0, 0, 0, 0)", contentClassName, contentStyle, showRadian = false, ...rest })=>{
|
|
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
SectionRing: ()=>SectionRing
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
32
|
+
const external_react_namespaceObject = require("react");
|
|
33
33
|
const SectionRing = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
34
34
|
const { outerRadius: o, innerRadius: i, count: c, angel: a, style, ...rest } = props;
|
|
35
35
|
const s = 2 * Math.PI / c - a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
const SectionRing = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
6
6
|
const { outerRadius: o, innerRadius: i, count: c, angel: a, style, ...rest } = props;
|
|
7
7
|
const s = 2 * Math.PI / c - a;
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
Skeleton: ()=>Skeleton
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const css_namespaceObject = require("@emotion/css");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const Skeleton = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
35
35
|
const { className, children, loading = null == children, ...rest } = props;
|
|
36
36
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
const Skeleton = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
7
7
|
const { className, children, loading = null == children, ...rest } = props;
|
|
8
8
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
Title: ()=>Title
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
31
32
|
const external_react_namespaceObject = require("react");
|
|
32
33
|
const external_react_dom_namespaceObject = require("react-dom");
|
|
33
|
-
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
34
34
|
const getReactVersion_cjs_namespaceObject = require("../utils/getReactVersion.cjs");
|
|
35
35
|
const [major] = (0, getReactVersion_cjs_namespaceObject.getReactVersion)();
|
|
36
36
|
const Title = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
package/dist/components/Title.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7136dc57__ from "react-dom";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_getReactVersion_js_9bf41edb__ from "../utils/getReactVersion.js";
|
|
7
7
|
const [major] = (0, __WEBPACK_EXTERNAL_MODULE__utils_getReactVersion_js_9bf41edb__.getReactVersion)();
|
|
8
8
|
const Title = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
TransitionNum: ()=>TransitionNum
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
32
|
+
const external_react_namespaceObject = require("react");
|
|
33
33
|
const TransitionNum = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
34
34
|
const { children: num, period, numToStr, ins, ...rest } = props;
|
|
35
35
|
if (!Number.isInteger(num) || !Number.isInteger(period) || period <= 0) throw new RangeError("目标数字必须是整数,周期必须是正整数");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
const TransitionNum = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
6
6
|
const { children: num, period, numToStr, ins, ...rest } = props;
|
|
7
7
|
if (!Number.isInteger(num) || !Number.isInteger(period) || period <= 0) throw new RangeError("目标数字必须是整数,周期必须是正整数");
|
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
Trapezium: ()=>Trapezium
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
-
const external_react_namespaceObject = require("react");
|
|
32
31
|
const css_namespaceObject = require("@emotion/css");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const index_cjs_namespaceObject = require("../utils/index.cjs");
|
|
35
35
|
const Trapezium = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
36
36
|
const { top, bottom, height, borderRadius, className, style, ...rest } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_index_js_6619c453__ from "../utils/index.js";
|
|
7
7
|
const Trapezium = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.forwardRef)((props, ref)=>{
|
|
8
8
|
const { top, bottom, height, borderRadius, className, style, ...rest } = props;
|
|
@@ -29,8 +29,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
UnifyConfigProvider: ()=>UnifyConfigProvider
|
|
30
30
|
});
|
|
31
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
-
const external_react_namespaceObject = require("react");
|
|
33
32
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
34
|
const UnifyConfigContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)({});
|
|
35
35
|
const UnifyConfigProvider = ({ className, style, children })=>{
|
|
36
36
|
const { className: _className, style: _style } = (0, external_react_namespaceObject.useContext)(UnifyConfigContext);
|
package/dist/components/Unify.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
const UnifyConfigContext = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.createContext)({});
|
|
6
6
|
const UnifyConfigProvider = ({ className, style, children })=>{
|
|
7
7
|
const { className: _className, style: _style } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(UnifyConfigContext);
|
|
@@ -27,8 +27,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27
27
|
__webpack_require__.d(__webpack_exports__, {
|
|
28
28
|
WriteSheet: ()=>WriteSheet
|
|
29
29
|
});
|
|
30
|
-
const external_react_namespaceObject = require("react");
|
|
31
30
|
const external_deepsea_tools_namespaceObject = require("deepsea-tools");
|
|
31
|
+
const external_react_namespaceObject = require("react");
|
|
32
32
|
function WriteSheet(props) {
|
|
33
33
|
const { as, excel, onClick: _onClick, ...rest } = props;
|
|
34
34
|
function onClick(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentProps, JSX, JSXElementConstructor } from "react";
|
|
2
1
|
import { WriteSheetParams } from "deepsea-tools";
|
|
2
|
+
import { ComponentProps, JSX, JSXElementConstructor } from "react";
|
|
3
3
|
export type WriteSheetProps<AS extends keyof JSX.IntrinsicElements | JSXElementConstructor<any> = "button"> = Omit<ComponentProps<AS>, "as" | "excel"> & {
|
|
4
4
|
as?: AS;
|
|
5
5
|
excel?: WriteSheetParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
2
|
import * as __WEBPACK_EXTERNAL_MODULE_deepsea_tools_8ecdf5a5__ from "deepsea-tools";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
4
|
function WriteSheet(props) {
|
|
5
5
|
const { as, excel, onClick: _onClick, ...rest } = props;
|
|
6
6
|
function onClick(e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepsea-components",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.18",
|
|
4
4
|
"description": "格数科技自用组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"echarts": "^5.6.0",
|
|
41
41
|
"hls.js": "^1.6.7",
|
|
42
42
|
"smooth-scrollbar": "^8.8.4",
|
|
43
|
-
"deepsea-tools": "5.
|
|
44
|
-
"soda-hooks": "6.
|
|
43
|
+
"deepsea-tools": "5.39.0",
|
|
44
|
+
"soda-hooks": "6.12.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"typescript": "^5.8.3"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx } from "deepsea-tools"
|
|
5
|
+
import { HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react"
|
|
6
6
|
|
|
7
7
|
import { px, transformCSSVariable } from "@/utils"
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { CSSProperties, MouseEvent as ReactMouseEvent, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx, getArray } from "deepsea-tools"
|
|
5
|
+
import { CSSProperties, MouseEvent as ReactMouseEvent, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
6
6
|
import Scrollbar from "smooth-scrollbar"
|
|
7
7
|
import { ScrollStatus } from "smooth-scrollbar/interfaces/scrollbar"
|
|
8
8
|
import { useSize } from "soda-hooks"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { TextareaHTMLAttributes, forwardRef, useImperativeHandle, useLayoutEffect, useRef, useState } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx } from "deepsea-tools"
|
|
5
|
+
import { TextareaHTMLAttributes, forwardRef, useImperativeHandle, useLayoutEffect, useRef, useState } from "react"
|
|
6
6
|
|
|
7
7
|
import { px, transformCSSVariable } from "@/utils"
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { ComponentPropsWithoutRef, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
4
3
|
import ClipboardJS, { Event } from "clipboard"
|
|
4
|
+
import { ComponentPropsWithoutRef, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
5
5
|
import { useLatest } from "soda-hooks"
|
|
6
6
|
|
|
7
7
|
export { Event } from "clipboard"
|
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
ComponentPropsWithoutRef,
|
|
5
|
-
ForwardRefExoticComponent,
|
|
6
|
-
ForwardedRef,
|
|
7
|
-
RefAttributes,
|
|
8
|
-
forwardRef,
|
|
9
|
-
useEffect,
|
|
10
|
-
useImperativeHandle,
|
|
11
|
-
useLayoutEffect,
|
|
12
|
-
useRef,
|
|
13
|
-
} from "react"
|
|
14
3
|
import {
|
|
15
4
|
BarSeriesOption,
|
|
16
5
|
ComposeOption,
|
|
@@ -23,6 +12,17 @@ import {
|
|
|
23
12
|
TooltipComponentOption,
|
|
24
13
|
init,
|
|
25
14
|
} from "echarts"
|
|
15
|
+
import {
|
|
16
|
+
ComponentPropsWithoutRef,
|
|
17
|
+
ForwardRefExoticComponent,
|
|
18
|
+
ForwardedRef,
|
|
19
|
+
RefAttributes,
|
|
20
|
+
forwardRef,
|
|
21
|
+
useEffect,
|
|
22
|
+
useImperativeHandle,
|
|
23
|
+
useLayoutEffect,
|
|
24
|
+
useRef,
|
|
25
|
+
} from "react"
|
|
26
26
|
|
|
27
27
|
export type PieOption = ComposeOption<PieSeriesOption | TitleComponentOption | DatasetComponentOption | GridComponentOption | TooltipComponentOption>
|
|
28
28
|
|
package/src/components/Flow.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { CSSProperties, HTMLAttributes, Key, ReactNode, Ref, useEffect, useImperativeHandle, useRef, useState } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx } from "deepsea-tools"
|
|
5
|
+
import { CSSProperties, HTMLAttributes, Key, ReactNode, Ref, useEffect, useImperativeHandle, useRef, useState } from "react"
|
|
6
6
|
import { useSize } from "soda-hooks"
|
|
7
7
|
|
|
8
8
|
import { px, transformCSSVariable } from "@/utils"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { MediaHTMLAttributes, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
4
3
|
import Hls from "hls.js"
|
|
4
|
+
import { MediaHTMLAttributes, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
5
5
|
|
|
6
6
|
export interface HlsPlayerProps extends Omit<MediaHTMLAttributes<HTMLVideoElement>, "src"> {
|
|
7
7
|
src: string
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { CSSProperties, ComponentPropsWithoutRef, MouseEvent as ReactMouseEvent, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx } from "deepsea-tools"
|
|
5
|
+
import { CSSProperties, ComponentPropsWithoutRef, MouseEvent as ReactMouseEvent, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
6
6
|
import { useSize } from "soda-hooks"
|
|
7
7
|
|
|
8
8
|
export type InfiniteScrollProps = ComponentPropsWithoutRef<"div"> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { CSSProperties, HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx } from "deepsea-tools"
|
|
5
|
+
import { CSSProperties, HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react"
|
|
6
6
|
|
|
7
7
|
export interface LoopSwiperProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
direction?: "horizontal" | "vertical"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { CSSProperties, ForwardedRef, HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx } from "deepsea-tools"
|
|
5
|
+
import { CSSProperties, ForwardedRef, HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef } from "react"
|
|
6
6
|
import Scrollbar from "smooth-scrollbar"
|
|
7
7
|
import type { ScrollListener, ScrollbarOptions } from "smooth-scrollbar/interfaces"
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, ComponentProps, FC, useRef } from "react"
|
|
2
1
|
import { clsx, isNonNullable } from "deepsea-tools"
|
|
2
|
+
import { CSSProperties, ComponentProps, FC, useRef } from "react"
|
|
3
3
|
import { useSize } from "soda-hooks"
|
|
4
4
|
|
|
5
5
|
import styles from "./ScrollMask.module.css"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { HTMLAttributes, forwardRef } from "react"
|
|
4
3
|
import { DrawArcOptions, drawArc } from "deepsea-tools"
|
|
4
|
+
import { HTMLAttributes, forwardRef } from "react"
|
|
5
5
|
|
|
6
6
|
export interface SectionRingProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
7
|
outerRadius: number
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { HTMLAttributes, forwardRef } from "react"
|
|
4
3
|
import { css } from "@emotion/css"
|
|
5
4
|
import { clsx } from "deepsea-tools"
|
|
5
|
+
import { HTMLAttributes, forwardRef } from "react"
|
|
6
6
|
|
|
7
7
|
export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
8
|
loading?: boolean
|
package/src/components/Title.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
+
import { isBrowser } from "deepsea-tools"
|
|
3
4
|
import { ComponentPropsWithoutRef, forwardRef, useImperativeHandle, useLayoutEffect, useRef } from "react"
|
|
4
5
|
import { createPortal } from "react-dom"
|
|
5
|
-
import { isBrowser } from "deepsea-tools"
|
|
6
6
|
|
|
7
7
|
import { getReactVersion } from "@/utils/getReactVersion"
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { ForwardedRef, HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
4
3
|
import { setFrameInterval } from "deepsea-tools"
|
|
4
|
+
import { ForwardedRef, HTMLAttributes, forwardRef, useEffect, useImperativeHandle, useRef } from "react"
|
|
5
5
|
|
|
6
6
|
export interface TransitionNumProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
7
7
|
/** 当前数字 */
|
package/src/components/Unify.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { CSSProperties, ComponentProps, FC, JSX, JSXElementConstructor, ReactNode, createContext, createElement, useContext } from "react"
|
|
4
3
|
import { clsx } from "deepsea-tools"
|
|
4
|
+
import { CSSProperties, ComponentProps, FC, JSX, JSXElementConstructor, ReactNode, createContext, createElement, useContext } from "react"
|
|
5
5
|
|
|
6
6
|
export interface UnifyConfig {
|
|
7
7
|
className?: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { ComponentProps, JSX, JSXElementConstructor, MouseEvent as ReactMouseEvent, createElement } from "react"
|
|
4
3
|
import { WriteSheetParams, writeSheet } from "deepsea-tools"
|
|
4
|
+
import { ComponentProps, JSX, JSXElementConstructor, MouseEvent as ReactMouseEvent, createElement } from "react"
|
|
5
5
|
|
|
6
6
|
export type WriteSheetProps<AS extends keyof JSX.IntrinsicElements | JSXElementConstructor<any> = "button"> = Omit<ComponentProps<AS>, "as" | "excel"> & {
|
|
7
7
|
as?: AS
|