@semcore/pills 4.0.4 → 4.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [4.1.2] - 2022-07-14
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/neighbor-location` [2.3.9 ~> 2.3.10]).
10
+
11
+ ## [4.1.1] - 2022-07-07
12
+
13
+ ### Changed
14
+
15
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0], `@semcore/flex-box` [4.5.5 ~> 4.5.6], `@semcore/neighbor-location` [2.3.8 ~> 2.3.9]).
16
+
17
+ ## [4.1.0] - 2022-06-01
18
+
19
+ ### Changed
20
+
21
+ - Changed type names from 'IPopperHandlers' to 'IPillsHandlers' so that there are no intersections with other components.
22
+
5
23
  ## [4.0.4] - 2022-05-31
6
24
 
7
25
  ### Changed
package/README.md CHANGED
@@ -0,0 +1,69 @@
1
+ # @semcore/pills
2
+
3
+ [![version](https://img.shields.io/npm/v/@semcore/pills.svg)](https://www.npmjs.com/@semcore/pills)
4
+ [![downloads](https://img.shields.io/npm/dt/@semcore/pills.svg)](https://www.npmjs.com/package/@semcore/pills)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/semrush/intergalactic/blob/master/LICENSE)
6
+
7
+ > This component is part of the Intergalactic design system
8
+
9
+ ### 📖 [Component documentation](https://developer.semrush.com/intergalactic/components/pills/)
10
+
11
+ ### 🏠 [Design system](https://developer.semrush.com/intergalactic/)
12
+
13
+ ## Install
14
+
15
+ ```sh
16
+ npm install @semcore/ui
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```jsx
22
+ import Pills from '@semcore/ui/pills';
23
+ ```
24
+
25
+ <details>
26
+ <summary>Alternative installation and use</summary>
27
+
28
+ **We do not recommend this usage path due to possible dependency and update issues.**
29
+
30
+ ### Install
31
+
32
+ You can only install one package from the design system
33
+
34
+ ```sh
35
+ npm install @semcore/pills @semcore/core
36
+ ```
37
+
38
+ `@semcore/core` - _is the basic package by which we create our components, and it contains all of the common logic
39
+ of the components that is discussed below. There should only be one version of the package in the project._
40
+
41
+ ### Usage
42
+
43
+ You can use the package the same way but without `/ui/` in the import path.
44
+
45
+ ```jsx
46
+ import Pills from '@semcore/pills';
47
+ ```
48
+
49
+ </details>
50
+
51
+ ## 👤 Author
52
+
53
+ [UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS)
54
+ and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
55
+
56
+ ## 🤝 Contributing
57
+
58
+ Contributions, issues and feature requests are welcome!
59
+
60
+ Feel free to check [issues page](https://github.com/semrush/intergalactic/issues). You can also take a look at
61
+ the [contributing guide](https://github.com/semrush/intergalactic/blob/master/CONTRIBUTING.md).
62
+
63
+ ## Show your support
64
+
65
+ Give a ⭐️ if this project helped you!
66
+
67
+ ## 📝 License
68
+
69
+ This project is [MIT](https://github.com/semrush/intergalactic/blob/master/LICENSE) licensed.
@@ -36,14 +36,14 @@ export interface IPillsContext {
36
36
  getItemProps: PropGetterFn;
37
37
  }
38
38
 
39
- export interface IPopperHandlers {
39
+ export interface IPillsHandlers {
40
40
  value: (value: PillsValue) => void;
41
41
  }
42
42
 
43
43
  declare const Pills: (<T, V extends PillsValue = PillsValue>(
44
- props: CProps<IPillsProps<V> & T, IPillsContext, IPopperHandlers>,
44
+ props: CProps<IPillsProps<V> & T, IPillsContext, IPillsHandlers>,
45
45
  ) => ReturnEl) & {
46
- Item: (<T>(props: CProps<IPillProps & T, {}, IPopperHandlers>) => ReturnEl) & {
46
+ Item: (<T>(props: CProps<IPillProps & T, {}, IPillsHandlers>) => ReturnEl) & {
47
47
  Text: typeof Box;
48
48
  Addon: typeof Box;
49
49
  };
@@ -36,14 +36,14 @@ export interface IPillsContext {
36
36
  getItemProps: PropGetterFn;
37
37
  }
38
38
 
39
- export interface IPopperHandlers {
39
+ export interface IPillsHandlers {
40
40
  value: (value: PillsValue) => void;
41
41
  }
42
42
 
43
43
  declare const Pills: (<T, V extends PillsValue = PillsValue>(
44
- props: CProps<IPillsProps<V> & T, IPillsContext, IPopperHandlers>,
44
+ props: CProps<IPillsProps<V> & T, IPillsContext, IPillsHandlers>,
45
45
  ) => ReturnEl) & {
46
- Item: (<T>(props: CProps<IPillProps & T, {}, IPopperHandlers>) => ReturnEl) & {
46
+ Item: (<T>(props: CProps<IPillProps & T, {}, IPillsHandlers>) => ReturnEl) & {
47
47
  Text: typeof Box;
48
48
  Addon: typeof Box;
49
49
  };
@@ -36,14 +36,14 @@ export interface IPillsContext {
36
36
  getItemProps: PropGetterFn;
37
37
  }
38
38
 
39
- export interface IPopperHandlers {
39
+ export interface IPillsHandlers {
40
40
  value: (value: PillsValue) => void;
41
41
  }
42
42
 
43
43
  declare const Pills: (<T, V extends PillsValue = PillsValue>(
44
- props: CProps<IPillsProps<V> & T, IPillsContext, IPopperHandlers>,
44
+ props: CProps<IPillsProps<V> & T, IPillsContext, IPillsHandlers>,
45
45
  ) => ReturnEl) & {
46
- Item: (<T>(props: CProps<IPillProps & T, {}, IPopperHandlers>) => ReturnEl) & {
46
+ Item: (<T>(props: CProps<IPillProps & T, {}, IPillsHandlers>) => ReturnEl) & {
47
47
  Text: typeof Box;
48
48
  Addon: typeof Box;
49
49
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@semcore/pills",
3
3
  "description": "SEMRush Pills Component",
4
- "version": "4.0.4",
4
+ "version": "4.1.2",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
8
8
  "sideEffects": false,
9
- "author": "Roman Lysov <r.lysov@semrush.com>",
9
+ "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "scripts": {
12
12
  "build": "build --source=js",
package/src/index.d.ts CHANGED
@@ -36,14 +36,14 @@ export interface IPillsContext {
36
36
  getItemProps: PropGetterFn;
37
37
  }
38
38
 
39
- export interface IPopperHandlers {
39
+ export interface IPillsHandlers {
40
40
  value: (value: PillsValue) => void;
41
41
  }
42
42
 
43
43
  declare const Pills: (<T, V extends PillsValue = PillsValue>(
44
- props: CProps<IPillsProps<V> & T, IPillsContext, IPopperHandlers>,
44
+ props: CProps<IPillsProps<V> & T, IPillsContext, IPillsHandlers>,
45
45
  ) => ReturnEl) & {
46
- Item: (<T>(props: CProps<IPillProps & T, {}, IPopperHandlers>) => ReturnEl) & {
46
+ Item: (<T>(props: CProps<IPillProps & T, {}, IPillsHandlers>) => ReturnEl) & {
47
47
  Text: typeof Box;
48
48
  Addon: typeof Box;
49
49
  };