@kommo-crm/crm-react-ui-kit 1.14.0 → 1.14.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.
@@ -5,7 +5,7 @@ interface SelectItemBase {
5
5
  */
6
6
  value: number | string;
7
7
  }
8
- export type SelectItem = (SelectItemBase & {
8
+ export interface StringSelectItem extends SelectItemBase {
9
9
  /**
10
10
  * Visual label shown in the list and in the trigger when the item is selected.
11
11
  */
@@ -15,7 +15,8 @@ export type SelectItem = (SelectItemBase & {
15
15
  * Defaults to `option` when omitted.
16
16
  */
17
17
  title?: string;
18
- }) | (SelectItemBase & {
18
+ }
19
+ export interface ReactElementSelectItem extends SelectItemBase {
19
20
  /**
20
21
  * Visual label shown in the list and in the trigger when the item is selected.
21
22
  */
@@ -25,7 +26,8 @@ export type SelectItem = (SelectItemBase & {
25
26
  * Required because `option` is not a string and cannot be used as a fallback.
26
27
  */
27
28
  title: string;
28
- });
29
+ }
30
+ export type SelectItem = StringSelectItem | ReactElementSelectItem;
29
31
  /**
30
32
  * Resolves the tooltip text for a `SelectItem`. Uses the explicit `title` when
31
33
  * provided, otherwise falls back to `option` if it is a string.
@@ -1 +1 @@
1
- {"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,UAAU,cAAc;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,UAAU,GAClB,CAAC,cAAc,GAAG;IAChB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,GACF,CAAC,cAAc,GAAG;IAChB;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IACrB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEP;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,KAAG,MAAM,GAAG,SAU9D,CAAC"}
1
+ {"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,UAAU,cAAc;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D;;OAEG;IACH,MAAM,EAAE,YAAY,CAAC;IACrB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,KAAG,MAAM,GAAG,SAU9D,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kommo-crm/crm-react-ui-kit",
3
3
  "description": "Ready-to-use React components which implements Kommo design",
4
- "version": "1.14.0",
4
+ "version": "1.14.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "engines": {
@@ -34,6 +34,7 @@
34
34
  "./ContextMenu": "./dist/components/ContextMenu/index.js",
35
35
  "./CounterBadge": "./dist/components/CounterBadge/index.js",
36
36
  "./Badge": "./dist/components/Badge/index.js",
37
+ "./Separator": "./dist/components/Separator/index.js",
37
38
  "./assets/Switcher.css": "./dist/assets/Switcher.css",
38
39
  "./assets/Select.css": "./dist/assets/Select.css",
39
40
  "./assets/Spinner.css": "./dist/assets/Spinner.css",
@@ -52,6 +53,7 @@
52
53
  "./assets/Button.css": "./dist/assets/Button.css",
53
54
  "./assets/CounterBadge.css": "./dist/assets/CounterBadge.css",
54
55
  "./assets/Badge.css": "./dist/assets/Badge.css",
56
+ "./assets/Separator.css": "./dist/assets/Separator.css",
55
57
  "./assets/theme.css": "./dist/assets/theme.css",
56
58
  "./assets/icons.css": "./dist/assets/icons.css"
57
59
  },
@@ -122,6 +124,9 @@
122
124
  ],
123
125
  "Badge": [
124
126
  "./dist/components/Badge/index.d.ts"
127
+ ],
128
+ "Separator": [
129
+ "./dist/components/Separator/index.d.ts"
125
130
  ]
126
131
  }
127
132
  },
@@ -233,4 +238,4 @@
233
238
  "react-dom": "^18.0"
234
239
  },
235
240
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
236
- }
241
+ }