deepsea-components 5.15.22 → 5.15.24

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 (79) hide show
  1. package/README.md +23 -23
  2. package/dist/components/AutoFit.cjs +7 -7
  3. package/dist/components/AutoFit.js +30 -30
  4. package/dist/components/AutoScroll.cjs +7 -7
  5. package/dist/components/AutoScroll.js +30 -30
  6. package/dist/components/AutoSizeTextarea.cjs +4 -4
  7. package/dist/components/AutoSizeTextarea.js +17 -17
  8. package/dist/components/CircleText.js +4 -4
  9. package/dist/components/CopyButton.cjs +2 -2
  10. package/dist/components/CopyButton.js +13 -14
  11. package/dist/components/Echart.cjs +2 -2
  12. package/dist/components/Echart.js +12 -12
  13. package/dist/components/Flow.cjs +19 -19
  14. package/dist/components/Flow.js +44 -44
  15. package/dist/components/FormLabel.cjs +3 -3
  16. package/dist/components/FormLabel.js +9 -9
  17. package/dist/components/HlsPlayer.js +10 -10
  18. package/dist/components/IconFileType.cjs +4 -4
  19. package/dist/components/IconFileType.js +9 -9
  20. package/dist/components/InfiniteScroll.cjs +13 -13
  21. package/dist/components/InfiniteScroll.js +32 -32
  22. package/dist/components/InputFile.js +4 -4
  23. package/dist/components/InputFileButton.js +11 -11
  24. package/dist/components/LoopSwiper.cjs +33 -33
  25. package/dist/components/LoopSwiper.js +47 -47
  26. package/dist/components/ReadExcel.js +2 -2
  27. package/dist/components/ReadSheet.js +5 -5
  28. package/dist/components/Ring.js +4 -4
  29. package/dist/components/Scroll.cjs +15 -15
  30. package/dist/components/Scroll.js +32 -33
  31. package/dist/components/ScrollMask.js +13 -13
  32. package/dist/components/ScrollMask.module.cjs +2 -2
  33. package/dist/components/ScrollMask.module.js +2 -2
  34. package/dist/components/SectionRing.js +6 -6
  35. package/dist/components/Skeleton.cjs +17 -17
  36. package/dist/components/Skeleton.js +23 -23
  37. package/dist/components/Title.js +12 -12
  38. package/dist/components/TransitionBox.js +10 -10
  39. package/dist/components/TransitionNum.cjs +1 -1
  40. package/dist/components/TransitionNum.js +12 -12
  41. package/dist/components/Trapezium.cjs +4 -4
  42. package/dist/components/Trapezium.js +14 -14
  43. package/dist/components/Unify.js +10 -10
  44. package/dist/components/WriteExcel.js +2 -2
  45. package/dist/components/WriteSheet.js +4 -4
  46. package/dist/utils/getReactVersion.js +2 -2
  47. package/package.json +6 -5
  48. package/src/components/AutoFit.tsx +104 -104
  49. package/src/components/AutoScroll.tsx +150 -150
  50. package/src/components/AutoSizeTextarea.tsx +50 -50
  51. package/src/components/CircleText.tsx +81 -81
  52. package/src/components/CopyButton.tsx +31 -31
  53. package/src/components/Echart.tsx +69 -69
  54. package/src/components/Flow.tsx +271 -271
  55. package/src/components/FormLabel.tsx +41 -41
  56. package/src/components/HlsPlayer.tsx +34 -34
  57. package/src/components/IconFileType.tsx +162 -162
  58. package/src/components/InfiniteScroll.tsx +163 -163
  59. package/src/components/InputFile.tsx +93 -93
  60. package/src/components/InputFileButton.tsx +122 -122
  61. package/src/components/LoopSwiper.tsx +125 -125
  62. package/src/components/ReadExcel.tsx +13 -13
  63. package/src/components/ReadSheet.tsx +17 -17
  64. package/src/components/Ring.tsx +30 -30
  65. package/src/components/Scroll.tsx +97 -97
  66. package/src/components/ScrollMask.module.css +87 -87
  67. package/src/components/ScrollMask.tsx +68 -68
  68. package/src/components/SectionRing.tsx +40 -40
  69. package/src/components/Skeleton.tsx +45 -45
  70. package/src/components/Title.tsx +27 -27
  71. package/src/components/TransitionBox.tsx +44 -44
  72. package/src/components/TransitionNum.tsx +54 -54
  73. package/src/components/Trapezium.tsx +60 -60
  74. package/src/components/Unify.tsx +38 -38
  75. package/src/components/WriteExcel.tsx +13 -13
  76. package/src/components/WriteSheet.tsx +25 -25
  77. package/src/utils/getReactVersion.ts +7 -7
  78. package/src/utils/index.ts +33 -33
  79. package/tsconfig.json +16 -16
@@ -1,33 +1,33 @@
1
- import { CSSProperties } from "react"
2
-
3
- export type CSSVariableName = `--${string}`
4
-
5
- export type CSSVariableValue = string | number | undefined
6
-
7
- export interface StyleWithCSSVariable extends CSSProperties {
8
- [X: CSSVariableName]: CSSVariableValue
9
- }
10
-
11
- const cssVariableReg = /[A-Z]/
12
-
13
- function addCSSVariableLine(match: string): string {
14
- return `-${match}`
15
- }
16
-
17
- export function transformCSSVariableName(name: string): CSSVariableName {
18
- return `--${name.replace(cssVariableReg, addCSSVariableLine).toLowerCase()}`
19
- }
20
-
21
- export function transformCSSVariable(style: Partial<Record<string, CSSVariableValue>>, style2?: CSSProperties): CSSProperties {
22
- return Object.assign(
23
- Object.entries(style).reduce((acc: StyleWithCSSVariable, [key, value]) => {
24
- acc[transformCSSVariableName(key)] = value
25
- return acc
26
- }, {}),
27
- style2,
28
- )
29
- }
30
-
31
- export function px(value: string | number | undefined): string | undefined {
32
- return typeof value === "number" ? `${value}px` : value
33
- }
1
+ import { CSSProperties } from "react"
2
+
3
+ export type CSSVariableName = `--${string}`
4
+
5
+ export type CSSVariableValue = string | number | undefined
6
+
7
+ export interface StyleWithCSSVariable extends CSSProperties {
8
+ [X: CSSVariableName]: CSSVariableValue
9
+ }
10
+
11
+ const cssVariableReg = /[A-Z]/
12
+
13
+ function addCSSVariableLine(match: string): string {
14
+ return `-${match}`
15
+ }
16
+
17
+ export function transformCSSVariableName(name: string): CSSVariableName {
18
+ return `--${name.replace(cssVariableReg, addCSSVariableLine).toLowerCase()}`
19
+ }
20
+
21
+ export function transformCSSVariable(style: Partial<Record<string, CSSVariableValue>>, style2?: CSSProperties): CSSProperties {
22
+ return Object.assign(
23
+ Object.entries(style).reduce((acc: StyleWithCSSVariable, [key, value]) => {
24
+ acc[transformCSSVariableName(key)] = value
25
+ return acc
26
+ }, {}),
27
+ style2,
28
+ )
29
+ }
30
+
31
+ export function px(value: string | number | undefined): string | undefined {
32
+ return typeof value === "number" ? `${value}px` : value
33
+ }
package/tsconfig.json CHANGED
@@ -1,16 +1,16 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "strict": true,
5
- "declaration": true,
6
- "skipLibCheck": true,
7
- "jsx": "react-jsx",
8
- "target": "ESNext",
9
- "module": "ESNext",
10
- "moduleResolution": "Bundler",
11
- "paths": {
12
- "@/*": ["src/*"]
13
- }
14
- },
15
- "include": ["src", "types.d.ts"]
16
- }
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "strict": true,
5
+ "declaration": true,
6
+ "skipLibCheck": true,
7
+ "jsx": "react-jsx",
8
+ "target": "ESNext",
9
+ "module": "ESNext",
10
+ "moduleResolution": "Bundler",
11
+ "paths": {
12
+ "@/*": ["src/*"]
13
+ }
14
+ },
15
+ "include": ["src", "types.d.ts"]
16
+ }