@alfalab/core-components-calendar-with-skeleton 5.0.48 → 5.0.50
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/Component.js +1 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +12 -12
- package/index.css +12 -12
- package/modern/Component.js +1 -1
- package/modern/index.css +12 -12
- package/package.json +3 -6
- package/send-stats.js +0 -82
package/Component.js
CHANGED
|
@@ -14,7 +14,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
15
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
16
16
|
|
|
17
|
-
var styles = {"component":"calendar-with-
|
|
17
|
+
var styles = {"component":"calendar-with-skeleton__component_nq0zj","calendarVisible":"calendar-with-skeleton__calendarVisible_nq0zj","skeleton":"calendar-with-skeleton__skeleton_nq0zj","header":"calendar-with-skeleton__header_nq0zj","weekDays":"calendar-with-skeleton__weekDays_nq0zj","row":"calendar-with-skeleton__row_nq0zj","enter":"calendar-with-skeleton__enter_nq0zj","enterActive":"calendar-with-skeleton__enterActive_nq0zj","exit":"calendar-with-skeleton__exit_nq0zj","exitActive":"calendar-with-skeleton__exitActive_nq0zj"};
|
|
18
18
|
require('./index.css')
|
|
19
19
|
|
|
20
20
|
var CalendarWithSkeleton = React.forwardRef(function (_a, ref) {
|
package/esm/Component.js
CHANGED
|
@@ -5,7 +5,7 @@ import cn from 'classnames';
|
|
|
5
5
|
import { Calendar } from '@alfalab/core-components-calendar/esm';
|
|
6
6
|
import { Skeleton } from '@alfalab/core-components-skeleton/esm';
|
|
7
7
|
|
|
8
|
-
var styles = {"component":"calendar-with-
|
|
8
|
+
var styles = {"component":"calendar-with-skeleton__component_nq0zj","calendarVisible":"calendar-with-skeleton__calendarVisible_nq0zj","skeleton":"calendar-with-skeleton__skeleton_nq0zj","header":"calendar-with-skeleton__header_nq0zj","weekDays":"calendar-with-skeleton__weekDays_nq0zj","row":"calendar-with-skeleton__row_nq0zj","enter":"calendar-with-skeleton__enter_nq0zj","enterActive":"calendar-with-skeleton__enterActive_nq0zj","exit":"calendar-with-skeleton__exit_nq0zj","exitActive":"calendar-with-skeleton__exitActive_nq0zj"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var CalendarWithSkeleton = forwardRef(function (_a, ref) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1xiw5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
/* disabled */
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
|
-
} .calendar-with-
|
|
43
|
+
} .calendar-with-skeleton__component_nq0zj {
|
|
44
44
|
width: var(--calendar-width);
|
|
45
45
|
height: var(--calendar-height);
|
|
46
46
|
position: relative;
|
|
47
|
-
} .calendar-with-
|
|
47
|
+
} .calendar-with-skeleton__calendarVisible_nq0zj {
|
|
48
48
|
height: auto;
|
|
49
|
-
} .calendar-with-
|
|
49
|
+
} .calendar-with-skeleton__skeleton_nq0zj {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: var(--gap-m);
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
height: 100%;
|
|
61
61
|
background-color: var(--color-light-bg-primary);
|
|
62
62
|
background-clip: content-box;
|
|
63
|
-
} .calendar-with-
|
|
63
|
+
} .calendar-with-skeleton__header_nq0zj {
|
|
64
64
|
height: 48px;
|
|
65
65
|
margin-bottom: var(--gap-l);
|
|
66
|
-
} .calendar-with-
|
|
66
|
+
} .calendar-with-skeleton__weekDays_nq0zj {
|
|
67
67
|
height: 12px;
|
|
68
68
|
margin-bottom: var(--gap-m);
|
|
69
|
-
} .calendar-with-
|
|
69
|
+
} .calendar-with-skeleton__row_nq0zj {
|
|
70
70
|
height: 32px
|
|
71
|
-
} .calendar-with-
|
|
71
|
+
} .calendar-with-skeleton__row_nq0zj + .calendar-with-skeleton__row_nq0zj {
|
|
72
72
|
margin-top: 10px;
|
|
73
|
-
} .calendar-with-
|
|
74
|
-
.calendar-with-
|
|
75
|
-
.calendar-with-
|
|
73
|
+
} .calendar-with-skeleton__enter_nq0zj,
|
|
74
|
+
.calendar-with-skeleton__enterActive_nq0zj,
|
|
75
|
+
.calendar-with-skeleton__exit_nq0zj {
|
|
76
76
|
opacity: 1;
|
|
77
|
-
} .calendar-with-
|
|
77
|
+
} .calendar-with-skeleton__exitActive_nq0zj {
|
|
78
78
|
opacity: 0;
|
|
79
79
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1xiw5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
/* disabled */
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
|
-
} .calendar-with-
|
|
43
|
+
} .calendar-with-skeleton__component_nq0zj {
|
|
44
44
|
width: var(--calendar-width);
|
|
45
45
|
height: var(--calendar-height);
|
|
46
46
|
position: relative;
|
|
47
|
-
} .calendar-with-
|
|
47
|
+
} .calendar-with-skeleton__calendarVisible_nq0zj {
|
|
48
48
|
height: auto;
|
|
49
|
-
} .calendar-with-
|
|
49
|
+
} .calendar-with-skeleton__skeleton_nq0zj {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: var(--gap-m);
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
height: 100%;
|
|
61
61
|
background-color: var(--color-light-bg-primary);
|
|
62
62
|
background-clip: content-box;
|
|
63
|
-
} .calendar-with-
|
|
63
|
+
} .calendar-with-skeleton__header_nq0zj {
|
|
64
64
|
height: 48px;
|
|
65
65
|
margin-bottom: var(--gap-l);
|
|
66
|
-
} .calendar-with-
|
|
66
|
+
} .calendar-with-skeleton__weekDays_nq0zj {
|
|
67
67
|
height: 12px;
|
|
68
68
|
margin-bottom: var(--gap-m);
|
|
69
|
-
} .calendar-with-
|
|
69
|
+
} .calendar-with-skeleton__row_nq0zj {
|
|
70
70
|
height: 32px
|
|
71
|
-
} .calendar-with-
|
|
71
|
+
} .calendar-with-skeleton__row_nq0zj + .calendar-with-skeleton__row_nq0zj {
|
|
72
72
|
margin-top: 10px;
|
|
73
|
-
} .calendar-with-
|
|
74
|
-
.calendar-with-
|
|
75
|
-
.calendar-with-
|
|
73
|
+
} .calendar-with-skeleton__enter_nq0zj,
|
|
74
|
+
.calendar-with-skeleton__enterActive_nq0zj,
|
|
75
|
+
.calendar-with-skeleton__exit_nq0zj {
|
|
76
76
|
opacity: 1;
|
|
77
|
-
} .calendar-with-
|
|
77
|
+
} .calendar-with-skeleton__exitActive_nq0zj {
|
|
78
78
|
opacity: 0;
|
|
79
79
|
}
|
package/modern/Component.js
CHANGED
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { Calendar } from '@alfalab/core-components-calendar/modern';
|
|
5
5
|
import { Skeleton } from '@alfalab/core-components-skeleton/modern';
|
|
6
6
|
|
|
7
|
-
const styles = {"component":"calendar-with-
|
|
7
|
+
const styles = {"component":"calendar-with-skeleton__component_nq0zj","calendarVisible":"calendar-with-skeleton__calendarVisible_nq0zj","skeleton":"calendar-with-skeleton__skeleton_nq0zj","header":"calendar-with-skeleton__header_nq0zj","weekDays":"calendar-with-skeleton__weekDays_nq0zj","row":"calendar-with-skeleton__row_nq0zj","enter":"calendar-with-skeleton__enter_nq0zj","enterActive":"calendar-with-skeleton__enterActive_nq0zj","exit":"calendar-with-skeleton__exit_nq0zj","exitActive":"calendar-with-skeleton__exitActive_nq0zj"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const CalendarWithSkeleton = forwardRef(({ calendarVisible = true, animate = true, className, ...restProps }, ref) => {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1xiw5 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
/* disabled */
|
|
41
41
|
|
|
42
42
|
/* marker */
|
|
43
|
-
} .calendar-with-
|
|
43
|
+
} .calendar-with-skeleton__component_nq0zj {
|
|
44
44
|
width: var(--calendar-width);
|
|
45
45
|
height: var(--calendar-height);
|
|
46
46
|
position: relative;
|
|
47
|
-
} .calendar-with-
|
|
47
|
+
} .calendar-with-skeleton__calendarVisible_nq0zj {
|
|
48
48
|
height: auto;
|
|
49
|
-
} .calendar-with-
|
|
49
|
+
} .calendar-with-skeleton__skeleton_nq0zj {
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
padding: var(--gap-m);
|
|
@@ -60,20 +60,20 @@
|
|
|
60
60
|
height: 100%;
|
|
61
61
|
background-color: var(--color-light-bg-primary);
|
|
62
62
|
background-clip: content-box;
|
|
63
|
-
} .calendar-with-
|
|
63
|
+
} .calendar-with-skeleton__header_nq0zj {
|
|
64
64
|
height: 48px;
|
|
65
65
|
margin-bottom: var(--gap-l);
|
|
66
|
-
} .calendar-with-
|
|
66
|
+
} .calendar-with-skeleton__weekDays_nq0zj {
|
|
67
67
|
height: 12px;
|
|
68
68
|
margin-bottom: var(--gap-m);
|
|
69
|
-
} .calendar-with-
|
|
69
|
+
} .calendar-with-skeleton__row_nq0zj {
|
|
70
70
|
height: 32px
|
|
71
|
-
} .calendar-with-
|
|
71
|
+
} .calendar-with-skeleton__row_nq0zj + .calendar-with-skeleton__row_nq0zj {
|
|
72
72
|
margin-top: 10px;
|
|
73
|
-
} .calendar-with-
|
|
74
|
-
.calendar-with-
|
|
75
|
-
.calendar-with-
|
|
73
|
+
} .calendar-with-skeleton__enter_nq0zj,
|
|
74
|
+
.calendar-with-skeleton__enterActive_nq0zj,
|
|
75
|
+
.calendar-with-skeleton__exit_nq0zj {
|
|
76
76
|
opacity: 1;
|
|
77
|
-
} .calendar-with-
|
|
77
|
+
} .calendar-with-skeleton__exitActive_nq0zj {
|
|
78
78
|
opacity: 0;
|
|
79
79
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-with-skeleton",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.50",
|
|
4
4
|
"description": "CalendarWithSkeleton component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"postinstall": "node -e \"if (require('fs').existsSync('./send-stats.js')){require('./send-stats.js')} \""
|
|
11
|
-
},
|
|
12
9
|
"publishConfig": {
|
|
13
10
|
"access": "public",
|
|
14
11
|
"directory": "dist"
|
|
@@ -18,8 +15,8 @@
|
|
|
18
15
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
19
16
|
},
|
|
20
17
|
"dependencies": {
|
|
21
|
-
"@alfalab/core-components-calendar": "^6.
|
|
22
|
-
"@alfalab/core-components-skeleton": "^4.0.
|
|
18
|
+
"@alfalab/core-components-calendar": "^6.6.1",
|
|
19
|
+
"@alfalab/core-components-skeleton": "^4.0.6",
|
|
23
20
|
"classnames": "^2.3.1",
|
|
24
21
|
"react-transition-group": "^4.4.5",
|
|
25
22
|
"tslib": "^2.4.0"
|
package/send-stats.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
const http = require('http');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const { promisify } = require('util');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const readFile = promisify(fs.readFile);
|
|
7
|
-
|
|
8
|
-
async function main() {
|
|
9
|
-
const remoteHost = process.env.NIS_HOST || 'digital';
|
|
10
|
-
const remotePort = process.env.NIS_PORT || 80;
|
|
11
|
-
const remotePath = process.env.NIS_PATH || '/npm-install-stats/api/install-stats';
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
const [_, node, os, arch] =
|
|
15
|
-
/node\/v(\d+\.\d+\.\d+) (\w+) (\w+)/.exec(process.env.npm_config_user_agent) || [];
|
|
16
|
-
const [__, npm] = /npm\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
17
|
-
const [___, yarn] = /yarn\/(\d+\.\d+\.\d+)/.exec(process.env.npm_config_user_agent) || [];
|
|
18
|
-
|
|
19
|
-
let ownPackageJson, packageJson;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
const result = await Promise.all([
|
|
23
|
-
readFile(path.join(process.cwd(), 'package.json'), 'utf-8'),
|
|
24
|
-
readFile(path.join(process.cwd(), '../../../package.json'), 'utf-8'),
|
|
25
|
-
]);
|
|
26
|
-
|
|
27
|
-
ownPackageJson = JSON.parse(result[0]);
|
|
28
|
-
packageJson = JSON.parse(result[1]);
|
|
29
|
-
} catch (err) {
|
|
30
|
-
ownPackageJson = '';
|
|
31
|
-
packageJson = '';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const data = {
|
|
35
|
-
node,
|
|
36
|
-
npm,
|
|
37
|
-
yarn,
|
|
38
|
-
os,
|
|
39
|
-
arch,
|
|
40
|
-
ownPackageJson: JSON.stringify(ownPackageJson),
|
|
41
|
-
packageJson: JSON.stringify(packageJson),
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const body = JSON.stringify(data);
|
|
45
|
-
|
|
46
|
-
const options = {
|
|
47
|
-
host: remoteHost,
|
|
48
|
-
port: remotePort,
|
|
49
|
-
path: remotePath,
|
|
50
|
-
method: 'POST',
|
|
51
|
-
headers: {
|
|
52
|
-
'Content-Type': 'application/json',
|
|
53
|
-
'Content-Length': body.length,
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return new Promise((resolve, reject) => {
|
|
58
|
-
const req = http.request(options, (res) => {
|
|
59
|
-
res.on('end', () => {
|
|
60
|
-
resolve();
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
req.on('error', () => {
|
|
65
|
-
reject();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
req.write(body);
|
|
69
|
-
req.end();
|
|
70
|
-
});
|
|
71
|
-
} catch (error) {
|
|
72
|
-
throw error;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
main()
|
|
77
|
-
.then(() => {
|
|
78
|
-
process.exit(0);
|
|
79
|
-
})
|
|
80
|
-
.catch(() => {
|
|
81
|
-
process.exit(0);
|
|
82
|
-
});
|