@alfalab/core-components-list 2.0.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -3,30 +3,40 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [2.0.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-list@1.1.7...@alfalab/core-components-list@2.0.0) (2021-07-08)
6
+ # [2.1.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-list@2.0.2...@alfalab/core-components-list@2.1.0) (2022-03-30)
7
7
 
8
8
 
9
9
  ### Features
10
10
 
11
- * upgrade storybook ([#696](https://github.com/alfa-laboratory/core-components/issues/696)) ([bf8350e](https://github.com/alfa-laboratory/core-components/commit/bf8350ebfd238b6c63ac30545ac32ca933f498d6)), closes [#708](https://github.com/alfa-laboratory/core-components/issues/708) [#707](https://github.com/alfa-laboratory/core-components/issues/707) [#714](https://github.com/alfa-laboratory/core-components/issues/714) [#716](https://github.com/alfa-laboratory/core-components/issues/716) [#690](https://github.com/alfa-laboratory/core-components/issues/690) [#701](https://github.com/alfa-laboratory/core-components/issues/701) [#699](https://github.com/alfa-laboratory/core-components/issues/699) [#698](https://github.com/alfa-laboratory/core-components/issues/698) [#693](https://github.com/alfa-laboratory/core-components/issues/693) [#699](https://github.com/alfa-laboratory/core-components/issues/699) [#698](https://github.com/alfa-laboratory/core-components/issues/698) [#693](https://github.com/alfa-laboratory/core-components/issues/693) [#705](https://github.com/alfa-laboratory/core-components/issues/705) [#705](https://github.com/alfa-laboratory/core-components/issues/705) [#709](https://github.com/alfa-laboratory/core-components/issues/709) [#703](https://github.com/alfa-laboratory/core-components/issues/703) [#695](https://github.com/alfa-laboratory/core-components/issues/695) [#673](https://github.com/alfa-laboratory/core-components/issues/673) [#703](https://github.com/alfa-laboratory/core-components/issues/703) [#709](https://github.com/alfa-laboratory/core-components/issues/709) [#673](https://github.com/alfa-laboratory/core-components/issues/673) [#695](https://github.com/alfa-laboratory/core-components/issues/695) [#645](https://github.com/alfa-laboratory/core-components/issues/645) [#642](https://github.com/alfa-laboratory/core-components/issues/642) [#642](https://github.com/alfa-laboratory/core-components/issues/642) [#646](https://github.com/alfa-laboratory/core-components/issues/646) [#646](https://github.com/alfa-laboratory/core-components/issues/646) [#634](https://github.com/alfa-laboratory/core-components/issues/634) [#635](https://github.com/alfa-laboratory/core-components/issues/635) [#634](https://github.com/alfa-laboratory/core-components/issues/634) [#635](https://github.com/alfa-laboratory/core-components/issues/635) [#648](https://github.com/alfa-laboratory/core-components/issues/648) [#647](https://github.com/alfa-laboratory/core-components/issues/647) [#630](https://github.com/alfa-laboratory/core-components/issues/630) [#648](https://github.com/alfa-laboratory/core-components/issues/648) [#630](https://github.com/alfa-laboratory/core-components/issues/630) [#669](https://github.com/alfa-laboratory/core-components/issues/669) [#712](https://github.com/alfa-laboratory/core-components/issues/712) [#713](https://github.com/alfa-laboratory/core-components/issues/713) [#719](https://github.com/alfa-laboratory/core-components/issues/719) [#720](https://github.com/alfa-laboratory/core-components/issues/720) [#718](https://github.com/alfa-laboratory/core-components/issues/718) [#712](https://github.com/alfa-laboratory/core-components/issues/712) [#713](https://github.com/alfa-laboratory/core-components/issues/713) [#719](https://github.com/alfa-laboratory/core-components/issues/719) [#642](https://github.com/alfa-laboratory/core-components/issues/642) [#642](https://github.com/alfa-laboratory/core-components/issues/642) [#646](https://github.com/alfa-laboratory/core-components/issues/646) [#646](https://github.com/alfa-laboratory/core-components/issues/646) [#634](https://github.com/alfa-laboratory/core-components/issues/634) [#635](https://github.com/alfa-laboratory/core-components/issues/635) [#634](https://github.com/alfa-laboratory/core-components/issues/634) [#635](https://github.com/alfa-laboratory/core-components/issues/635) [#648](https://github.com/alfa-laboratory/core-components/issues/648) [#647](https://github.com/alfa-laboratory/core-components/issues/647) [#630](https://github.com/alfa-laboratory/core-components/issues/630) [#648](https://github.com/alfa-laboratory/core-components/issues/648) [#630](https://github.com/alfa-laboratory/core-components/issues/630) [#669](https://github.com/alfa-laboratory/core-components/issues/669) [#720](https://github.com/alfa-laboratory/core-components/issues/720) [#718](https://github.com/alfa-laboratory/core-components/issues/718) [#691](https://github.com/alfa-laboratory/core-components/issues/691) [#691](https://github.com/alfa-laboratory/core-components/issues/691) [#723](https://github.com/alfa-laboratory/core-components/issues/723) [#702](https://github.com/alfa-laboratory/core-components/issues/702) [#723](https://github.com/alfa-laboratory/core-components/issues/723) [#702](https://github.com/alfa-laboratory/core-components/issues/702) [#708](https://github.com/alfa-laboratory/core-components/issues/708) [#707](https://github.com/alfa-laboratory/core-components/issues/707) [#714](https://github.com/alfa-laboratory/core-components/issues/714) [#722](https://github.com/alfa-laboratory/core-components/issues/722)
11
+ * **list:** added list & typography presets ([#1047](https://github.com/alfa-laboratory/core-components/issues/1047)) ([67b6a77](https://github.com/alfa-laboratory/core-components/commit/67b6a77d1327b090b010eb061f83a2e6a0cb67b9))
12
+ * Исправить импорты в сторях. ([#998](https://github.com/alfa-laboratory/core-components/issues/998)) ([e6a654a](https://github.com/alfa-laboratory/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
13
+
12
14
 
13
15
 
14
- ### BREAKING CHANGES
15
16
 
16
- * buttonRetryText renamed to buttonReturnText
17
17
 
18
- Co-authored-by: Alexander Soldatov <aesoldatov@alfabank.ru>
19
- * inline-block changes to block
18
+ ## [2.0.2](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-list@2.0.1...@alfalab/core-components-list@2.0.2) (2021-07-23)
20
19
 
21
- * chore(release): 18.0.0 [skip ci]
20
+ **Note:** Version bump only for package @alfalab/core-components-list
22
21
 
23
- # [18.0.0](https://github.com/alfa-laboratory/core-components/compare/v17.6.0...v18.0.0) (2021-06-28)
24
22
 
25
- ### Bug Fixes
26
23
 
27
24
 
28
25
 
26
+ ## [2.0.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-list@2.0.0...@alfalab/core-components-list@2.0.1) (2021-07-09)
27
+
28
+ **Note:** Version bump only for package @alfalab/core-components-list
29
+
30
+
31
+
32
+
33
+
34
+ # [2.0.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-list@1.1.7...@alfalab/core-components-list@2.0.0) (2021-07-08)
35
+
36
+
37
+ ### Features
29
38
 
39
+ * upgrade storybook ([#696](https://github.com/alfa-laboratory/core-components/issues/696))
30
40
 
31
41
  ## [1.1.7](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-list@1.1.6...@alfalab/core-components-list@1.1.7) (2021-04-26)
32
42
 
package/dist/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":"list__list_116zb","orderedList":"list__orderedList_116zb","lowerAlpha":"list__lowerAlpha_116zb","decimal":"list__decimal_116zb","item":"list__item_116zb","unorderedItem":"list__unorderedItem_116zb","orderedItem":"list__orderedItem_116zb","slot":"list__slot_116zb"};
13
+ var styles = {"list":"list__list_1h5yr","orderedList":"list__orderedList_1h5yr","lowerAlpha":"list__lowerAlpha_1h5yr","decimal":"list__decimal_1h5yr","item":"list__item_1h5yr","unorderedItem":"list__unorderedItem_1h5yr","orderedItem":"list__orderedItem_1h5yr","slot":"list__slot_1h5yr"};
14
14
  require('./index.css')
15
15
 
16
16
  var List = function (_a) {
@@ -1 +1,2 @@
1
1
  export * from "./Component";
2
+ export * from "./presets";
@@ -6,7 +6,9 @@ require('classnames');
6
6
  require('react');
7
7
  require('./index.module.css');
8
8
  var Component = require('./Component.js');
9
+ var presets = require('./presets.js');
9
10
 
10
11
 
11
12
 
12
13
  exports.List = Component.List;
14
+ exports.listPresets = presets.listPresets;
@@ -0,0 +1,7 @@
1
+ declare const listPresets: {
2
+ mobile: {
3
+ tag: string;
4
+ marker: string;
5
+ };
6
+ };
7
+ export { listPresets };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var listPresets = {
6
+ mobile: {
7
+ tag: 'ul',
8
+ marker: '–',
9
+ },
10
+ };
11
+
12
+ exports.listPresets = listPresets;
@@ -1,7 +1,7 @@
1
1
  import cn from 'classnames';
2
2
  import React, { Children } from 'react';
3
3
 
4
- var styles = {"list":"list__list_116zb","orderedList":"list__orderedList_116zb","lowerAlpha":"list__lowerAlpha_116zb","decimal":"list__decimal_116zb","item":"list__item_116zb","unorderedItem":"list__unorderedItem_116zb","orderedItem":"list__orderedItem_116zb","slot":"list__slot_116zb"};
4
+ var styles = {"list":"list__list_1h5yr","orderedList":"list__orderedList_1h5yr","lowerAlpha":"list__lowerAlpha_1h5yr","decimal":"list__decimal_1h5yr","item":"list__item_1h5yr","unorderedItem":"list__unorderedItem_1h5yr","orderedItem":"list__orderedItem_1h5yr","slot":"list__slot_1h5yr"};
5
5
  require('./index.css')
6
6
 
7
7
  var List = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 116zb */
1
+ /* hash: 1uyix */
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
- .list__list_116zb {
23
+ .list__list_1h5yr {
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
- .list__orderedList_116zb {
34
+ .list__orderedList_1h5yr {
35
35
  padding-left: var(--gap-l);
36
36
  }
37
- .list__lowerAlpha_116zb {
37
+ .list__lowerAlpha_1h5yr {
38
38
  list-style-type: lower-alpha;
39
39
  }
40
- .list__decimal_116zb {
40
+ .list__decimal_1h5yr {
41
41
  list-style-type: decimal;
42
42
  }
43
- .list__item_116zb {
43
+ .list__item_1h5yr {
44
44
  margin-top: var(--list-item-margin)
45
45
  }
46
- .list__item_116zb:first-child {
46
+ .list__item_1h5yr:first-child {
47
47
  margin-top: 0;
48
48
  }
49
- .list__unorderedItem_116zb {
49
+ .list__unorderedItem_1h5yr {
50
50
  display: flex;
51
51
  }
52
- .list__orderedItem_116zb {
52
+ .list__orderedItem_1h5yr {
53
53
  padding-left: var(--gap-2xs);
54
54
  }
55
- .list__slot_116zb {
55
+ .list__slot_1h5yr {
56
56
  margin-right: var(--gap-xs);
57
57
  color: var(--list-marker-color);
58
58
  }
@@ -1 +1,2 @@
1
1
  export * from "./Component";
2
+ export * from "./presets";
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  export { List } from './Component.js';
4
+ export { listPresets } from './presets.js';
@@ -0,0 +1,7 @@
1
+ declare const listPresets: {
2
+ mobile: {
3
+ tag: string;
4
+ marker: string;
5
+ };
6
+ };
7
+ export { listPresets };
@@ -0,0 +1,8 @@
1
+ var listPresets = {
2
+ mobile: {
3
+ tag: 'ul',
4
+ marker: '–',
5
+ },
6
+ };
7
+
8
+ export { listPresets };
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 116zb */
1
+ /* hash: 1uyix */
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
- .list__list_116zb {
23
+ .list__list_1h5yr {
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
- .list__orderedList_116zb {
34
+ .list__orderedList_1h5yr {
35
35
  padding-left: var(--gap-l);
36
36
  }
37
- .list__lowerAlpha_116zb {
37
+ .list__lowerAlpha_1h5yr {
38
38
  list-style-type: lower-alpha;
39
39
  }
40
- .list__decimal_116zb {
40
+ .list__decimal_1h5yr {
41
41
  list-style-type: decimal;
42
42
  }
43
- .list__item_116zb {
43
+ .list__item_1h5yr {
44
44
  margin-top: var(--list-item-margin)
45
45
  }
46
- .list__item_116zb:first-child {
46
+ .list__item_1h5yr:first-child {
47
47
  margin-top: 0;
48
48
  }
49
- .list__unorderedItem_116zb {
49
+ .list__unorderedItem_1h5yr {
50
50
  display: flex;
51
51
  }
52
- .list__orderedItem_116zb {
52
+ .list__orderedItem_1h5yr {
53
53
  padding-left: var(--gap-2xs);
54
54
  }
55
- .list__slot_116zb {
55
+ .list__slot_1h5yr {
56
56
  margin-right: var(--gap-xs);
57
57
  color: var(--list-marker-color);
58
58
  }
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./Component";
2
+ export * from "./presets";
package/dist/index.js CHANGED
@@ -5,7 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  require('classnames');
6
6
  require('react');
7
7
  var Component = require('./Component.js');
8
+ var presets = require('./presets.js');
8
9
 
9
10
 
10
11
 
11
12
  exports.List = Component.List;
13
+ exports.listPresets = presets.listPresets;
@@ -1,7 +1,7 @@
1
1
  import cn from 'classnames';
2
2
  import React, { Children } from 'react';
3
3
 
4
- var styles = {"list":"list__list_116zb","orderedList":"list__orderedList_116zb","lowerAlpha":"list__lowerAlpha_116zb","decimal":"list__decimal_116zb","item":"list__item_116zb","unorderedItem":"list__unorderedItem_116zb","orderedItem":"list__orderedItem_116zb","slot":"list__slot_116zb"};
4
+ var styles = {"list":"list__list_1h5yr","orderedList":"list__orderedList_1h5yr","lowerAlpha":"list__lowerAlpha_1h5yr","decimal":"list__decimal_1h5yr","item":"list__item_1h5yr","unorderedItem":"list__unorderedItem_1h5yr","orderedItem":"list__orderedItem_1h5yr","slot":"list__slot_1h5yr"};
5
5
  require('./index.css')
6
6
 
7
7
  const List = ({ tag: Component = 'ul', marker, className, dataTestId, children, }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 116zb */
1
+ /* hash: 1uyix */
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
- .list__list_116zb {
23
+ .list__list_1h5yr {
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
- .list__orderedList_116zb {
34
+ .list__orderedList_1h5yr {
35
35
  padding-left: var(--gap-l);
36
36
  }
37
- .list__lowerAlpha_116zb {
37
+ .list__lowerAlpha_1h5yr {
38
38
  list-style-type: lower-alpha;
39
39
  }
40
- .list__decimal_116zb {
40
+ .list__decimal_1h5yr {
41
41
  list-style-type: decimal;
42
42
  }
43
- .list__item_116zb {
43
+ .list__item_1h5yr {
44
44
  margin-top: var(--list-item-margin)
45
45
  }
46
- .list__item_116zb:first-child {
46
+ .list__item_1h5yr:first-child {
47
47
  margin-top: 0;
48
48
  }
49
- .list__unorderedItem_116zb {
49
+ .list__unorderedItem_1h5yr {
50
50
  display: flex;
51
51
  }
52
- .list__orderedItem_116zb {
52
+ .list__orderedItem_1h5yr {
53
53
  padding-left: var(--gap-2xs);
54
54
  }
55
- .list__slot_116zb {
55
+ .list__slot_1h5yr {
56
56
  margin-right: var(--gap-xs);
57
57
  color: var(--list-marker-color);
58
58
  }
@@ -1 +1,2 @@
1
1
  export * from "./Component";
2
+ export * from "./presets";
@@ -1,3 +1,4 @@
1
1
  import 'classnames';
2
2
  import 'react';
3
3
  export { List } from './Component.js';
4
+ export { listPresets } from './presets.js';
@@ -0,0 +1,7 @@
1
+ declare const listPresets: {
2
+ mobile: {
3
+ tag: string;
4
+ marker: string;
5
+ };
6
+ };
7
+ export { listPresets };
@@ -0,0 +1,8 @@
1
+ const listPresets = {
2
+ mobile: {
3
+ tag: 'ul',
4
+ marker: '–',
5
+ },
6
+ };
7
+
8
+ export { listPresets };
@@ -0,0 +1,7 @@
1
+ declare const listPresets: {
2
+ mobile: {
3
+ tag: string;
4
+ marker: string;
5
+ };
6
+ };
7
+ export { listPresets };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var listPresets = {
6
+ mobile: {
7
+ tag: 'ul',
8
+ marker: '–',
9
+ },
10
+ };
11
+
12
+ exports.listPresets = listPresets;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-list",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -21,5 +21,5 @@
21
21
  "dependencies": {
22
22
  "classnames": "^2.2.6"
23
23
  },
24
- "gitHead": "e572a1d2a967ae70c2d5f51340946a923e730266"
24
+ "gitHead": "bc55bac91f00408f95481f53243c2b40799a030c"
25
25
  }