@semcore/skeleton 4.0.3 → 4.0.6

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 (43) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +89 -0
  3. package/lib/cjs/Charts/Area.js.map +1 -1
  4. package/lib/cjs/Charts/Bar.js.map +1 -1
  5. package/lib/cjs/Charts/Bubble.js.map +1 -1
  6. package/lib/cjs/Charts/Histogram.js.map +1 -1
  7. package/lib/cjs/Charts/Line.js.map +1 -1
  8. package/lib/cjs/Charts/Pie.js.map +1 -1
  9. package/lib/cjs/Charts/RadialTree.js.map +1 -1
  10. package/lib/cjs/Charts/ScatterPlot.js.map +1 -1
  11. package/lib/cjs/Charts/Venn.js.map +1 -1
  12. package/lib/cjs/Charts/index.js.map +1 -1
  13. package/lib/cjs/Skeleton.js +8 -8
  14. package/lib/cjs/Skeleton.js.map +1 -1
  15. package/lib/cjs/index.js.map +1 -1
  16. package/lib/es6/Charts/Area.js.map +1 -1
  17. package/lib/es6/Charts/Bar.js.map +1 -1
  18. package/lib/es6/Charts/Bubble.js.map +1 -1
  19. package/lib/es6/Charts/Histogram.js.map +1 -1
  20. package/lib/es6/Charts/Line.js.map +1 -1
  21. package/lib/es6/Charts/Pie.js.map +1 -1
  22. package/lib/es6/Charts/RadialTree.js.map +1 -1
  23. package/lib/es6/Charts/ScatterPlot.js.map +1 -1
  24. package/lib/es6/Charts/Venn.js.map +1 -1
  25. package/lib/es6/Charts/index.js.map +1 -1
  26. package/lib/es6/Skeleton.js +8 -8
  27. package/lib/es6/Skeleton.js.map +1 -1
  28. package/lib/es6/index.js.map +1 -1
  29. package/package.json +3 -3
  30. package/src/Charts/Area.jsx +0 -41
  31. package/src/Charts/Bar.jsx +0 -38
  32. package/src/Charts/Bubble.jsx +0 -40
  33. package/src/Charts/Histogram.jsx +0 -37
  34. package/src/Charts/Line.jsx +0 -33
  35. package/src/Charts/Pie.jsx +0 -16
  36. package/src/Charts/RadialTree.tsx +0 -116
  37. package/src/Charts/ScatterPlot.jsx +0 -50
  38. package/src/Charts/Venn.jsx +0 -34
  39. package/src/Charts/index.js +0 -9
  40. package/src/Skeleton.jsx +0 -83
  41. package/src/index.d.ts +0 -72
  42. package/src/index.js +0 -3
  43. package/src/style/skeleton.shadow.css +0 -39
package/src/index.d.ts DELETED
@@ -1,72 +0,0 @@
1
- import { IBoxProps } from '@semcore/flex-box';
2
- import { IUniqueIDProps } from '@semcore/utils/lib/uniqueID';
3
- import { CProps, ReturnEl } from '@semcore/core';
4
-
5
- export interface ISkeletonProps extends IBoxProps, IUniqueIDProps {
6
- /**
7
- * Skeleton visibility control property
8
- */
9
- hidden?: boolean;
10
- /**
11
- * Animation speed in ms
12
- * @default 2000
13
- */
14
- duration?: string | number;
15
- /**
16
- * Skeleton theme
17
- * @default invert
18
- */
19
- theme?: 'dark' | 'invert';
20
- }
21
-
22
- export interface ISkeletonCtx {
23
- gradientUrl: 'string';
24
- }
25
-
26
- export interface ISkeletonTextProps extends IBoxProps {
27
- /**
28
- * Number of items to be returned
29
- * @default 1
30
- */
31
- amount?: string | number;
32
- }
33
-
34
- export interface AreaChartSkeletonProps extends ISkeletonProps {
35
- type?: 'linear' | 'monotone';
36
- }
37
-
38
- export interface BarChartSkeletonProps extends ISkeletonProps {
39
- layout?: 'horizontal' | 'vertical';
40
- }
41
-
42
- export interface HistogramChartSkeletonProps extends ISkeletonProps {
43
- layout?: 'horizontal' | 'vertical';
44
- }
45
-
46
- export interface LineChartSkeletonProps extends ISkeletonProps {
47
- type?: 'linear' | 'monotone';
48
- }
49
-
50
- declare const Skeleton: (<T>(props: CProps<ISkeletonProps & T, ISkeletonCtx>) => ReturnEl) & {
51
- Text: <T>(props: ISkeletonTextProps & T) => ReturnEl;
52
- };
53
- declare const AreaChartSkeleton: <T>(props: AreaChartSkeletonProps & T) => ReturnEl;
54
- declare const BarChartSkeleton: <T>(props: BarChartSkeletonProps & T) => ReturnEl;
55
- declare const HistogramChartSkeleton: <T>(props: HistogramChartSkeletonProps & T) => ReturnEl;
56
- declare const LineChartSkeleton: <T>(props: LineChartSkeletonProps & T) => ReturnEl;
57
- declare const PieChartSkeleton: typeof Skeleton;
58
- declare const VennChartSkeleton: typeof Skeleton;
59
- declare const BubbleChartSkeleton: typeof Skeleton;
60
- declare const ScatterPlotChartSkeleton: typeof Skeleton;
61
-
62
- export default Skeleton;
63
- export {
64
- AreaChartSkeleton,
65
- BarChartSkeleton,
66
- HistogramChartSkeleton,
67
- LineChartSkeleton,
68
- PieChartSkeleton,
69
- VennChartSkeleton,
70
- BubbleChartSkeleton,
71
- ScatterPlotChartSkeleton,
72
- };
package/src/index.js DELETED
@@ -1,3 +0,0 @@
1
- export { default } from './Skeleton';
2
-
3
- export * from './Charts';
@@ -1,39 +0,0 @@
1
- @import '@semcore/utils/style/var.css';
2
-
3
- SSkeleton {
4
- animation-name: pulse;
5
- animation-iteration-count: infinite;
6
- animation-timing-function: ease-in-out;
7
- animation-duration: var(--durationAnim);
8
- will-change: opacity;
9
- }
10
-
11
- @keyframes pulse {
12
- 0% {
13
- opacity: 1;
14
- }
15
- 50% {
16
- opacity: 0.4;
17
- }
18
- 100% {
19
- opacity: 1;
20
- }
21
- }
22
-
23
- SSkeleton[theme='invert'] {
24
- fill: color-mod(var(--gray-100) a(80%));
25
- }
26
-
27
- SSkeleton[theme='dark'] {
28
- fill: color-mod(var(--white) a(30%));
29
- }
30
-
31
- SText {
32
- box-sizing: border-box;
33
- }
34
-
35
- @media (prefers-reduced-motion) {
36
- SSkeleton {
37
- animation-name: none;
38
- }
39
- }