deepsea-components 5.15.24 → 5.15.26

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 (52) hide show
  1. package/README.md +23 -23
  2. package/dist/components/AutoFit.cjs +6 -6
  3. package/dist/components/AutoFit.js +6 -6
  4. package/dist/components/AutoScroll.cjs +7 -7
  5. package/dist/components/AutoScroll.js +7 -7
  6. package/dist/components/AutoSizeTextarea.cjs +4 -4
  7. package/dist/components/AutoSizeTextarea.js +4 -4
  8. package/dist/components/Flow.cjs +16 -16
  9. package/dist/components/Flow.js +16 -16
  10. package/dist/components/InfiniteScroll.cjs +13 -13
  11. package/dist/components/InfiniteScroll.js +13 -13
  12. package/dist/components/LoopSwiper.cjs +33 -33
  13. package/dist/components/LoopSwiper.js +33 -33
  14. package/dist/components/Scroll.cjs +13 -13
  15. package/dist/components/Scroll.js +13 -13
  16. package/dist/components/Skeleton.cjs +17 -17
  17. package/dist/components/Skeleton.js +17 -17
  18. package/dist/components/Trapezium.cjs +4 -4
  19. package/dist/components/Trapezium.js +4 -4
  20. package/package.json +3 -3
  21. package/src/components/AutoFit.tsx +104 -104
  22. package/src/components/AutoScroll.tsx +150 -150
  23. package/src/components/AutoSizeTextarea.tsx +50 -50
  24. package/src/components/CircleText.tsx +81 -81
  25. package/src/components/CopyButton.tsx +31 -31
  26. package/src/components/Echart.tsx +69 -69
  27. package/src/components/Flow.tsx +271 -271
  28. package/src/components/FormLabel.tsx +41 -41
  29. package/src/components/HlsPlayer.tsx +34 -34
  30. package/src/components/IconFileType.tsx +162 -162
  31. package/src/components/InfiniteScroll.tsx +163 -163
  32. package/src/components/InputFile.tsx +93 -93
  33. package/src/components/InputFileButton.tsx +122 -122
  34. package/src/components/LoopSwiper.tsx +125 -125
  35. package/src/components/ReadExcel.tsx +13 -13
  36. package/src/components/ReadSheet.tsx +17 -17
  37. package/src/components/Ring.tsx +30 -30
  38. package/src/components/Scroll.tsx +97 -97
  39. package/src/components/ScrollMask.module.css +87 -87
  40. package/src/components/ScrollMask.tsx +68 -68
  41. package/src/components/SectionRing.tsx +40 -40
  42. package/src/components/Skeleton.tsx +45 -45
  43. package/src/components/Title.tsx +27 -27
  44. package/src/components/TransitionBox.tsx +44 -44
  45. package/src/components/TransitionNum.tsx +54 -54
  46. package/src/components/Trapezium.tsx +60 -60
  47. package/src/components/Unify.tsx +38 -38
  48. package/src/components/WriteExcel.tsx +13 -13
  49. package/src/components/WriteSheet.tsx +25 -25
  50. package/src/utils/getReactVersion.ts +7 -7
  51. package/src/utils/index.ts +33 -33
  52. 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
+ }