@alfalab/core-components-list 2.2.3 → 3.0.0
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.d.ts +6 -1
- package/Component.js +1 -1
- package/cssm/Component.d.ts +6 -1
- package/esm/Component.d.ts +6 -1
- package/esm/Component.js +1 -1
- package/esm/index.css +10 -10
- package/index.css +10 -10
- package/modern/Component.d.ts +6 -1
- package/modern/Component.js +1 -1
- package/modern/index.css +10 -10
- package/package.json +3 -3
- package/CHANGELOG.md +0 -125
package/Component.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
3
4
|
type ListProps = {
|
|
4
5
|
/**
|
|
5
6
|
* HTML тег
|
|
@@ -10,7 +11,7 @@ type ListProps = {
|
|
|
10
11
|
* Маркер
|
|
11
12
|
* @default '—' for ul and 'decimal' for ol
|
|
12
13
|
*/
|
|
13
|
-
marker?: 'lower-alpha' | 'decimal' | string |
|
|
14
|
+
marker?: 'lower-alpha' | 'decimal' | string | ReactNode;
|
|
14
15
|
/**
|
|
15
16
|
* Css-класс для стилизации
|
|
16
17
|
*/
|
|
@@ -19,6 +20,10 @@ type ListProps = {
|
|
|
19
20
|
* Id компонента для тестов
|
|
20
21
|
*/
|
|
21
22
|
dataTestId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Дочерние элементы.
|
|
25
|
+
*/
|
|
26
|
+
children?: ReactNode;
|
|
22
27
|
};
|
|
23
28
|
declare const List: React.FC<ListProps>;
|
|
24
29
|
export { ListProps, List };
|
package/Component.js
CHANGED
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
|
|
13
|
-
var styles = {"list":"
|
|
13
|
+
var styles = {"list":"list__list_18iox","orderedList":"list__orderedList_18iox","lowerAlpha":"list__lowerAlpha_18iox","decimal":"list__decimal_18iox","item":"list__item_18iox","unorderedItem":"list__unorderedItem_18iox","orderedItem":"list__orderedItem_18iox","slot":"list__slot_18iox"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var List = function (_a) {
|
package/cssm/Component.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
3
4
|
type ListProps = {
|
|
4
5
|
/**
|
|
5
6
|
* HTML тег
|
|
@@ -10,7 +11,7 @@ type ListProps = {
|
|
|
10
11
|
* Маркер
|
|
11
12
|
* @default '—' for ul and 'decimal' for ol
|
|
12
13
|
*/
|
|
13
|
-
marker?: 'lower-alpha' | 'decimal' | string |
|
|
14
|
+
marker?: 'lower-alpha' | 'decimal' | string | ReactNode;
|
|
14
15
|
/**
|
|
15
16
|
* Css-класс для стилизации
|
|
16
17
|
*/
|
|
@@ -19,6 +20,10 @@ type ListProps = {
|
|
|
19
20
|
* Id компонента для тестов
|
|
20
21
|
*/
|
|
21
22
|
dataTestId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Дочерние элементы.
|
|
25
|
+
*/
|
|
26
|
+
children?: ReactNode;
|
|
22
27
|
};
|
|
23
28
|
declare const List: React.FC<ListProps>;
|
|
24
29
|
export { ListProps, List };
|
package/esm/Component.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
3
4
|
type ListProps = {
|
|
4
5
|
/**
|
|
5
6
|
* HTML тег
|
|
@@ -10,7 +11,7 @@ type ListProps = {
|
|
|
10
11
|
* Маркер
|
|
11
12
|
* @default '—' for ul and 'decimal' for ol
|
|
12
13
|
*/
|
|
13
|
-
marker?: 'lower-alpha' | 'decimal' | string |
|
|
14
|
+
marker?: 'lower-alpha' | 'decimal' | string | ReactNode;
|
|
14
15
|
/**
|
|
15
16
|
* Css-класс для стилизации
|
|
16
17
|
*/
|
|
@@ -19,6 +20,10 @@ type ListProps = {
|
|
|
19
20
|
* Id компонента для тестов
|
|
20
21
|
*/
|
|
21
22
|
dataTestId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Дочерние элементы.
|
|
25
|
+
*/
|
|
26
|
+
children?: ReactNode;
|
|
22
27
|
};
|
|
23
28
|
declare const List: React.FC<ListProps>;
|
|
24
29
|
export { ListProps, List };
|
package/esm/Component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
2
|
import React, { Children } from 'react';
|
|
3
3
|
|
|
4
|
-
var styles = {"list":"
|
|
4
|
+
var styles = {"list":"list__list_18iox","orderedList":"list__orderedList_18iox","lowerAlpha":"list__lowerAlpha_18iox","decimal":"list__decimal_18iox","item":"list__item_18iox","unorderedItem":"list__unorderedItem_18iox","orderedItem":"list__orderedItem_18iox","slot":"list__slot_18iox"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var List = function (_a) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13jim */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--list-marker-color: var(--color-light-text-primary);
|
|
21
21
|
--list-item-margin: var(--gap-s);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.list__list_18iox {
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
26
|
color: var(--color-light-text-primary);
|
|
@@ -31,28 +31,28 @@
|
|
|
31
31
|
|
|
32
32
|
font-weight: 400;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.list__orderedList_18iox {
|
|
35
35
|
padding-left: var(--gap-l);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.list__lowerAlpha_18iox {
|
|
38
38
|
list-style-type: lower-alpha;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.list__decimal_18iox {
|
|
41
41
|
list-style-type: decimal;
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.list__item_18iox {
|
|
44
44
|
margin-top: var(--list-item-margin)
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.list__item_18iox:first-child {
|
|
47
47
|
margin-top: 0;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.list__unorderedItem_18iox {
|
|
50
50
|
display: flex;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.list__orderedItem_18iox {
|
|
53
53
|
padding-left: var(--gap-2xs);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.list__slot_18iox {
|
|
56
56
|
margin-right: var(--gap-xs);
|
|
57
57
|
color: var(--list-marker-color);
|
|
58
58
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13jim */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--list-marker-color: var(--color-light-text-primary);
|
|
21
21
|
--list-item-margin: var(--gap-s);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.list__list_18iox {
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
26
|
color: var(--color-light-text-primary);
|
|
@@ -31,28 +31,28 @@
|
|
|
31
31
|
|
|
32
32
|
font-weight: 400;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.list__orderedList_18iox {
|
|
35
35
|
padding-left: var(--gap-l);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.list__lowerAlpha_18iox {
|
|
38
38
|
list-style-type: lower-alpha;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.list__decimal_18iox {
|
|
41
41
|
list-style-type: decimal;
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.list__item_18iox {
|
|
44
44
|
margin-top: var(--list-item-margin)
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.list__item_18iox:first-child {
|
|
47
47
|
margin-top: 0;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.list__unorderedItem_18iox {
|
|
50
50
|
display: flex;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.list__orderedItem_18iox {
|
|
53
53
|
padding-left: var(--gap-2xs);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.list__slot_18iox {
|
|
56
56
|
margin-right: var(--gap-xs);
|
|
57
57
|
color: var(--list-marker-color);
|
|
58
58
|
}
|
package/modern/Component.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
3
4
|
type ListProps = {
|
|
4
5
|
/**
|
|
5
6
|
* HTML тег
|
|
@@ -10,7 +11,7 @@ type ListProps = {
|
|
|
10
11
|
* Маркер
|
|
11
12
|
* @default '—' for ul and 'decimal' for ol
|
|
12
13
|
*/
|
|
13
|
-
marker?: 'lower-alpha' | 'decimal' | string |
|
|
14
|
+
marker?: 'lower-alpha' | 'decimal' | string | ReactNode;
|
|
14
15
|
/**
|
|
15
16
|
* Css-класс для стилизации
|
|
16
17
|
*/
|
|
@@ -19,6 +20,10 @@ type ListProps = {
|
|
|
19
20
|
* Id компонента для тестов
|
|
20
21
|
*/
|
|
21
22
|
dataTestId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Дочерние элементы.
|
|
25
|
+
*/
|
|
26
|
+
children?: ReactNode;
|
|
22
27
|
};
|
|
23
28
|
declare const List: React.FC<ListProps>;
|
|
24
29
|
export { ListProps, List };
|
package/modern/Component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
2
|
import React, { Children } from 'react';
|
|
3
3
|
|
|
4
|
-
var styles = {"list":"
|
|
4
|
+
var styles = {"list":"list__list_18iox","orderedList":"list__orderedList_18iox","lowerAlpha":"list__lowerAlpha_18iox","decimal":"list__decimal_18iox","item":"list__item_18iox","unorderedItem":"list__unorderedItem_18iox","orderedItem":"list__orderedItem_18iox","slot":"list__slot_18iox"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const List = ({ tag: Component = 'ul', marker, className, dataTestId, children, }) => {
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 13jim */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-text-primary: #0b1f35;
|
|
4
4
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--list-marker-color: var(--color-light-text-primary);
|
|
21
21
|
--list-item-margin: var(--gap-s);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.list__list_18iox {
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
26
|
color: var(--color-light-text-primary);
|
|
@@ -31,28 +31,28 @@
|
|
|
31
31
|
|
|
32
32
|
font-weight: 400;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.list__orderedList_18iox {
|
|
35
35
|
padding-left: var(--gap-l);
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.list__lowerAlpha_18iox {
|
|
38
38
|
list-style-type: lower-alpha;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.list__decimal_18iox {
|
|
41
41
|
list-style-type: decimal;
|
|
42
42
|
}
|
|
43
|
-
.
|
|
43
|
+
.list__item_18iox {
|
|
44
44
|
margin-top: var(--list-item-margin)
|
|
45
45
|
}
|
|
46
|
-
.
|
|
46
|
+
.list__item_18iox:first-child {
|
|
47
47
|
margin-top: 0;
|
|
48
48
|
}
|
|
49
|
-
.
|
|
49
|
+
.list__unorderedItem_18iox {
|
|
50
50
|
display: flex;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.list__orderedItem_18iox {
|
|
53
53
|
padding-left: var(--gap-2xs);
|
|
54
54
|
}
|
|
55
|
-
.
|
|
55
|
+
.list__slot_18iox {
|
|
56
56
|
margin-right: var(--gap-xs);
|
|
57
57
|
color: var(--list-marker-color);
|
|
58
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-list",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"directory": "dist"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"react": "^16.9.0 || ^17.0.1"
|
|
17
|
+
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"classnames": "^2.
|
|
20
|
+
"classnames": "^2.3.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [2.2.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@2.2.2...@alfalab/core-components-list@2.2.3) (2022-07-18)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [2.2.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@2.2.1...@alfalab/core-components-list@2.2.2) (2022-07-15)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
18
|
-
|
|
19
|
-
* bump packages version ([#153](https://github.com/core-ds/core-components/issues/153)) ([fd3e082](https://github.com/core-ds/core-components/commit/fd3e08205672129cdce04e1000c673f2cd9c10da))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
## [2.2.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@2.2.0...@alfalab/core-components-list@2.2.1) (2022-07-14)
|
|
26
|
-
|
|
27
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# [2.2.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@2.1.2...@alfalab/core-components-list@2.2.0) (2022-06-28)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* circumflexus retrieval ([#57](https://github.com/core-ds/core-components/issues/57)) ([3820da8](https://github.com/core-ds/core-components/commit/3820da818bcdcbee6904c648b3e29c3c828fe202))
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# [2.1.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@2.0.2...@alfalab/core-components-list@2.1.0) (2022-03-30)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### Features
|
|
48
|
-
|
|
49
|
-
* **list:** added list & typography presets ([#1047](https://github.com/core-ds/core-components/issues/1047)) ([67b6a77](https://github.com/core-ds/core-components/commit/67b6a77d1327b090b010eb061f83a2e6a0cb67b9))
|
|
50
|
-
* Исправить импорты в сторях. ([#998](https://github.com/core-ds/core-components/issues/998)) ([e6a654a](https://github.com/core-ds/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
## [2.0.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@2.0.1...@alfalab/core-components-list@2.0.2) (2021-07-23)
|
|
57
|
-
|
|
58
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## [2.0.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@2.0.0...@alfalab/core-components-list@2.0.1) (2021-07-09)
|
|
65
|
-
|
|
66
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
# [2.0.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@1.1.7...@alfalab/core-components-list@2.0.0) (2021-07-08)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
### Features
|
|
76
|
-
|
|
77
|
-
* upgrade storybook ([#696](https://github.com/core-ds/core-components/issues/696))
|
|
78
|
-
|
|
79
|
-
## [1.1.7](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@1.1.6...@alfalab/core-components-list@1.1.7) (2021-04-26)
|
|
80
|
-
|
|
81
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
## [1.1.6](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@1.1.5...@alfalab/core-components-list@1.1.6) (2021-04-01)
|
|
88
|
-
|
|
89
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
## [1.1.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@1.1.3...@alfalab/core-components-list@1.1.5) (2021-03-18)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
### Bug Fixes
|
|
99
|
-
|
|
100
|
-
* one more sborka bug ([#579](https://github.com/core-ds/core-components/issues/579)) ([9fbe0be](https://github.com/core-ds/core-components/commit/9fbe0beca56ec5971de78b3f6cda25305b260efc))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## [1.1.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@1.1.2...@alfalab/core-components-list@1.1.3) (2021-03-14)
|
|
107
|
-
|
|
108
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
## [1.1.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@1.1.1...@alfalab/core-components-list@1.1.2) (2021-03-04)
|
|
115
|
-
|
|
116
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
## [1.1.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-list@1.1.0...@alfalab/core-components-list@1.1.1) (2021-03-03)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
**Note:** Version bump only for package @alfalab/core-components-list
|