@alfalab/core-components-list 3.2.0 → 3.2.2
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-71bc37e9.js → Component-ff50db60.js} +2 -2
- package/Component.js +3 -1
- package/components/item/Component.js +3 -1
- package/components/item/index.css +11 -11
- package/components/item/index.d.ts +1 -1
- package/components/item/index.js +3 -1
- package/cssm/Component.js +2 -0
- package/cssm/components/item/Component.js +2 -0
- package/cssm/components/item/index.js +2 -0
- package/cssm/components/item/index.module.css +1 -1
- package/cssm/index.js +2 -0
- package/cssm/index.module.css +1 -1
- package/cssm/presets.js +2 -0
- package/cssm/utils.js +2 -0
- package/esm/{Component-5084b3b8.js → Component-9d7b71bc.js} +2 -2
- package/esm/Component.js +1 -1
- package/esm/components/item/Component.js +1 -1
- package/esm/components/item/index.css +11 -11
- package/esm/components/item/index.d.ts +1 -1
- package/esm/components/item/index.js +1 -1
- package/esm/index.css +7 -7
- package/esm/index.js +1 -1
- package/index.css +7 -7
- package/index.js +3 -1
- package/modern/{Component-368bf140.js → Component-9fb6bcfc.js} +2 -2
- package/modern/Component.js +1 -1
- package/modern/components/item/Component.js +1 -1
- package/modern/components/item/index.css +11 -11
- package/modern/components/item/index.d.ts +1 -1
- package/modern/components/item/index.js +1 -1
- package/modern/index.css +7 -7
- package/modern/index.js +1 -1
- package/package.json +2 -5
- package/presets.js +2 -0
- package/utils.js +2 -0
- package/send-stats.js +0 -82
- /package/{Component-71bc37e9.d.ts → Component-ff50db60.d.ts} +0 -0
- /package/esm/{Component-5084b3b8.d.ts → Component-9d7b71bc.d.ts} +0 -0
- /package/modern/{Component-368bf140.d.ts → Component-9fb6bcfc.d.ts} +0 -0
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles$1 = {"item":"
|
|
14
|
+
var styles$1 = {"item":"list__item_aqlzc","reversed":"list__reversed_aqlzc","unorderedItem":"list__unorderedItem_aqlzc","slot":"list__slot_aqlzc","defaultColor":"list__defaultColor_aqlzc","disc":"list__disc_aqlzc","caption":"list__caption_aqlzc"};
|
|
15
15
|
require('./components/item/index.css')
|
|
16
16
|
|
|
17
17
|
var Item = function (_a) {
|
|
@@ -37,7 +37,7 @@ var Item = function (_a) {
|
|
|
37
37
|
};
|
|
38
38
|
Item.displayName = 'ListItem';
|
|
39
39
|
|
|
40
|
-
var styles = {"list":"
|
|
40
|
+
var styles = {"list":"list__list_kdv9p","lowerAlpha":"list__lowerAlpha_kdv9p","decimal":"list__decimal_kdv9p","reversed":"list__reversed_kdv9p"};
|
|
41
41
|
require('./index.css')
|
|
42
42
|
|
|
43
43
|
var ListContext = React__default.default.createContext({});
|
package/Component.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
require('tslib');
|
|
4
6
|
require('react');
|
|
5
7
|
require('classnames');
|
|
6
|
-
var components_item_Component = require('./Component-
|
|
8
|
+
var components_item_Component = require('./Component-ff50db60.js');
|
|
7
9
|
require('./utils.js');
|
|
8
10
|
require('@alfalab/core-components-typography');
|
|
9
11
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
require('react');
|
|
4
6
|
require('classnames');
|
|
5
7
|
require('@alfalab/core-components-typography');
|
|
6
|
-
var components_item_Component = require('../../Component-
|
|
8
|
+
var components_item_Component = require('../../Component-ff50db60.js');
|
|
7
9
|
require('tslib');
|
|
8
10
|
require('../../utils.js');
|
|
9
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: szmy2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
5
5
|
} :root { /* 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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--list-marker-color: var(--color-light-text-primary);
|
|
23
23
|
--list-item-margin: var(--gap-s);
|
|
24
|
-
} .
|
|
24
|
+
} .list__item_aqlzc {
|
|
25
25
|
margin-top: var(--list-item-margin);
|
|
26
26
|
display: flex
|
|
27
|
-
} .
|
|
27
|
+
} .list__item_aqlzc:first-child {
|
|
28
28
|
margin-top: 0;
|
|
29
|
-
} .
|
|
29
|
+
} .list__item_aqlzc.list__reversed_aqlzc:first-child {
|
|
30
30
|
margin-top: var(--list-item-margin);
|
|
31
|
-
} .
|
|
31
|
+
} .list__item_aqlzc.list__reversed_aqlzc:last-child {
|
|
32
32
|
margin-top: 0;
|
|
33
|
-
} .
|
|
33
|
+
} .list__item_aqlzc.list__unorderedItem_aqlzc {
|
|
34
34
|
display: list-item;
|
|
35
|
-
} .
|
|
35
|
+
} .list__slot_aqlzc {
|
|
36
36
|
min-width: 20px;
|
|
37
37
|
display: flex;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
justify-content: start;
|
|
40
40
|
padding-right: var(--gap-2xs);
|
|
41
41
|
flex-shrink: 0
|
|
42
|
-
} .
|
|
42
|
+
} .list__slot_aqlzc.list__defaultColor_aqlzc {
|
|
43
43
|
color: var(--list-marker-color);
|
|
44
|
-
} .
|
|
44
|
+
} .list__slot_aqlzc.list__disc_aqlzc {
|
|
45
45
|
justify-content: center;
|
|
46
46
|
padding: 0 var(--gap-2xs);
|
|
47
|
-
} .
|
|
47
|
+
} .list__caption_aqlzc {
|
|
48
48
|
margin-top: var(--gap-3xs);
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-ff50db60";
|
package/components/item/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var components_item_Component = require('../../Component-ff50db60.js');
|
|
4
6
|
require('tslib');
|
|
5
7
|
require('react');
|
|
6
8
|
require('classnames');
|
package/cssm/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
-
--color-light-text-primary: #
|
|
3
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
4
4
|
} :root { /* 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 */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
package/cssm/index.js
CHANGED
package/cssm/index.module.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
-
--color-light-text-primary: #
|
|
3
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
4
4
|
} :root { /* 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 */
|
|
5
5
|
} :root {
|
|
6
6
|
} :root {
|
package/cssm/presets.js
CHANGED
package/cssm/utils.js
CHANGED
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { Typography } from '@alfalab/core-components-typography/esm';
|
|
5
5
|
import { isItem } from './utils.js';
|
|
6
6
|
|
|
7
|
-
var styles$1 = {"item":"
|
|
7
|
+
var styles$1 = {"item":"list__item_aqlzc","reversed":"list__reversed_aqlzc","unorderedItem":"list__unorderedItem_aqlzc","slot":"list__slot_aqlzc","defaultColor":"list__defaultColor_aqlzc","disc":"list__disc_aqlzc","caption":"list__caption_aqlzc"};
|
|
8
8
|
require('./components/item/index.css')
|
|
9
9
|
|
|
10
10
|
var Item = function (_a) {
|
|
@@ -30,7 +30,7 @@ var Item = function (_a) {
|
|
|
30
30
|
};
|
|
31
31
|
Item.displayName = 'ListItem';
|
|
32
32
|
|
|
33
|
-
var styles = {"list":"
|
|
33
|
+
var styles = {"list":"list__list_kdv9p","lowerAlpha":"list__lowerAlpha_kdv9p","decimal":"list__decimal_kdv9p","reversed":"list__reversed_kdv9p"};
|
|
34
34
|
require('./index.css')
|
|
35
35
|
|
|
36
36
|
var ListContext = React.createContext({});
|
package/esm/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'tslib';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
export { a as List, L as ListContext } from './Component-
|
|
4
|
+
export { a as List, L as ListContext } from './Component-9d7b71bc.js';
|
|
5
5
|
import './utils.js';
|
|
6
6
|
import '@alfalab/core-components-typography/esm';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: szmy2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
5
5
|
} :root { /* 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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--list-marker-color: var(--color-light-text-primary);
|
|
23
23
|
--list-item-margin: var(--gap-s);
|
|
24
|
-
} .
|
|
24
|
+
} .list__item_aqlzc {
|
|
25
25
|
margin-top: var(--list-item-margin);
|
|
26
26
|
display: flex
|
|
27
|
-
} .
|
|
27
|
+
} .list__item_aqlzc:first-child {
|
|
28
28
|
margin-top: 0;
|
|
29
|
-
} .
|
|
29
|
+
} .list__item_aqlzc.list__reversed_aqlzc:first-child {
|
|
30
30
|
margin-top: var(--list-item-margin);
|
|
31
|
-
} .
|
|
31
|
+
} .list__item_aqlzc.list__reversed_aqlzc:last-child {
|
|
32
32
|
margin-top: 0;
|
|
33
|
-
} .
|
|
33
|
+
} .list__item_aqlzc.list__unorderedItem_aqlzc {
|
|
34
34
|
display: list-item;
|
|
35
|
-
} .
|
|
35
|
+
} .list__slot_aqlzc {
|
|
36
36
|
min-width: 20px;
|
|
37
37
|
display: flex;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
justify-content: start;
|
|
40
40
|
padding-right: var(--gap-2xs);
|
|
41
41
|
flex-shrink: 0
|
|
42
|
-
} .
|
|
42
|
+
} .list__slot_aqlzc.list__defaultColor_aqlzc {
|
|
43
43
|
color: var(--list-marker-color);
|
|
44
|
-
} .
|
|
44
|
+
} .list__slot_aqlzc.list__disc_aqlzc {
|
|
45
45
|
justify-content: center;
|
|
46
46
|
padding: 0 var(--gap-2xs);
|
|
47
|
-
} .
|
|
47
|
+
} .list__caption_aqlzc {
|
|
48
48
|
margin-top: var(--gap-3xs);
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-9d7b71bc";
|
package/esm/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18vre */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
5
5
|
} :root { /* 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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-l: 20px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .list__list_kdv9p {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding: 0;
|
|
22
22
|
color: var(--color-light-text-primary);
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
line-height: 24px;
|
|
27
27
|
|
|
28
28
|
font-weight: 400;
|
|
29
|
-
} .
|
|
29
|
+
} .list__lowerAlpha_kdv9p {
|
|
30
30
|
list-style-type: lower-alpha;
|
|
31
31
|
padding-left: var(--gap-l);
|
|
32
|
-
} .
|
|
32
|
+
} .list__decimal_kdv9p {
|
|
33
33
|
list-style-type: decimal;
|
|
34
|
-
} ol.
|
|
34
|
+
} ol.list__list_kdv9p {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column
|
|
37
|
-
} ol.
|
|
37
|
+
} ol.list__list_kdv9p.list__reversed_kdv9p {
|
|
38
38
|
flex-direction: column-reverse;
|
|
39
39
|
}
|
package/esm/index.js
CHANGED
package/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18vre */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
5
5
|
} :root { /* 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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-l: 20px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .list__list_kdv9p {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding: 0;
|
|
22
22
|
color: var(--color-light-text-primary);
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
line-height: 24px;
|
|
27
27
|
|
|
28
28
|
font-weight: 400;
|
|
29
|
-
} .
|
|
29
|
+
} .list__lowerAlpha_kdv9p {
|
|
30
30
|
list-style-type: lower-alpha;
|
|
31
31
|
padding-left: var(--gap-l);
|
|
32
|
-
} .
|
|
32
|
+
} .list__decimal_kdv9p {
|
|
33
33
|
list-style-type: decimal;
|
|
34
|
-
} ol.
|
|
34
|
+
} ol.list__list_kdv9p {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column
|
|
37
|
-
} ol.
|
|
37
|
+
} ol.list__list_kdv9p.list__reversed_kdv9p {
|
|
38
38
|
flex-direction: column-reverse;
|
|
39
39
|
}
|
package/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var components_item_Component = require('./Component-ff50db60.js');
|
|
4
6
|
var presets = require('./presets.js');
|
|
5
7
|
require('tslib');
|
|
6
8
|
require('react');
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
import { isItem } from './utils.js';
|
|
5
5
|
|
|
6
|
-
const styles$1 = {"item":"
|
|
6
|
+
const styles$1 = {"item":"list__item_aqlzc","reversed":"list__reversed_aqlzc","unorderedItem":"list__unorderedItem_aqlzc","slot":"list__slot_aqlzc","defaultColor":"list__defaultColor_aqlzc","disc":"list__disc_aqlzc","caption":"list__caption_aqlzc"};
|
|
7
7
|
require('./components/item/index.css')
|
|
8
8
|
|
|
9
9
|
const Item = ({ caption, children }) => {
|
|
@@ -27,7 +27,7 @@ const Item = ({ caption, children }) => {
|
|
|
27
27
|
};
|
|
28
28
|
Item.displayName = 'ListItem';
|
|
29
29
|
|
|
30
|
-
const styles = {"list":"
|
|
30
|
+
const styles = {"list":"list__list_kdv9p","lowerAlpha":"list__lowerAlpha_kdv9p","decimal":"list__decimal_kdv9p","reversed":"list__reversed_kdv9p"};
|
|
31
31
|
require('./index.css')
|
|
32
32
|
|
|
33
33
|
const ListContext = React.createContext({});
|
package/modern/Component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: szmy2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
5
5
|
} :root { /* 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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
} :root {
|
|
22
22
|
--list-marker-color: var(--color-light-text-primary);
|
|
23
23
|
--list-item-margin: var(--gap-s);
|
|
24
|
-
} .
|
|
24
|
+
} .list__item_aqlzc {
|
|
25
25
|
margin-top: var(--list-item-margin);
|
|
26
26
|
display: flex
|
|
27
|
-
} .
|
|
27
|
+
} .list__item_aqlzc:first-child {
|
|
28
28
|
margin-top: 0;
|
|
29
|
-
} .
|
|
29
|
+
} .list__item_aqlzc.list__reversed_aqlzc:first-child {
|
|
30
30
|
margin-top: var(--list-item-margin);
|
|
31
|
-
} .
|
|
31
|
+
} .list__item_aqlzc.list__reversed_aqlzc:last-child {
|
|
32
32
|
margin-top: 0;
|
|
33
|
-
} .
|
|
33
|
+
} .list__item_aqlzc.list__unorderedItem_aqlzc {
|
|
34
34
|
display: list-item;
|
|
35
|
-
} .
|
|
35
|
+
} .list__slot_aqlzc {
|
|
36
36
|
min-width: 20px;
|
|
37
37
|
display: flex;
|
|
38
38
|
box-sizing: border-box;
|
|
39
39
|
justify-content: start;
|
|
40
40
|
padding-right: var(--gap-2xs);
|
|
41
41
|
flex-shrink: 0
|
|
42
|
-
} .
|
|
42
|
+
} .list__slot_aqlzc.list__defaultColor_aqlzc {
|
|
43
43
|
color: var(--list-marker-color);
|
|
44
|
-
} .
|
|
44
|
+
} .list__slot_aqlzc.list__disc_aqlzc {
|
|
45
45
|
justify-content: center;
|
|
46
46
|
padding: 0 var(--gap-2xs);
|
|
47
|
-
} .
|
|
47
|
+
} .list__caption_aqlzc {
|
|
48
48
|
margin-top: var(--gap-3xs);
|
|
49
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../Component-
|
|
1
|
+
export * from "../../Component-9fb6bcfc";
|
package/modern/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18vre */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* 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 */
|
|
5
5
|
} :root { /* 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 */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--gap-l: 20px;
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .list__list_kdv9p {
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding: 0;
|
|
22
22
|
color: var(--color-light-text-primary);
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
line-height: 24px;
|
|
27
27
|
|
|
28
28
|
font-weight: 400;
|
|
29
|
-
} .
|
|
29
|
+
} .list__lowerAlpha_kdv9p {
|
|
30
30
|
list-style-type: lower-alpha;
|
|
31
31
|
padding-left: var(--gap-l);
|
|
32
|
-
} .
|
|
32
|
+
} .list__decimal_kdv9p {
|
|
33
33
|
list-style-type: decimal;
|
|
34
|
-
} ol.
|
|
34
|
+
} ol.list__list_kdv9p {
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column
|
|
37
|
-
} ol.
|
|
37
|
+
} ol.list__list_kdv9p.list__reversed_kdv9p {
|
|
38
38
|
flex-direction: column-reverse;
|
|
39
39
|
}
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-list",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "",
|
|
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"
|
|
@@ -17,7 +14,7 @@
|
|
|
17
14
|
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
15
|
},
|
|
19
16
|
"dependencies": {
|
|
20
|
-
"@alfalab/core-components-typography": "^3.
|
|
17
|
+
"@alfalab/core-components-typography": "^3.2.2",
|
|
21
18
|
"classnames": "^2.3.1",
|
|
22
19
|
"tslib": "^2.4.0"
|
|
23
20
|
}
|
package/presets.js
CHANGED
package/utils.js
CHANGED
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
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|