@hh.ru/magritte-ui-chips 3.0.23 → 3.0.25

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/index.js CHANGED
@@ -6,7 +6,7 @@ export { ChipsContainer } from './ChipsContainer.js';
6
6
  import 'react/jsx-runtime';
7
7
  import 'react';
8
8
  import '@hh.ru/magritte-common-use-disabled';
9
- import './ChipContent-061590dc.js';
9
+ import './ChipContent-937d12dd.js';
10
10
  import 'classnames';
11
11
  import '@hh.ru/magritte-ui-counter';
12
12
  import '@hh.ru/magritte-ui-typography';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-chips",
3
- "version": "3.0.23",
3
+ "version": "3.0.25",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -21,16 +21,16 @@
21
21
  "dependencies": {
22
22
  "@hh.ru/magritte-common-keyboard": "3.0.2",
23
23
  "@hh.ru/magritte-common-use-disabled": "1.0.8",
24
- "@hh.ru/magritte-design-tokens": "18.1.1",
24
+ "@hh.ru/magritte-design-tokens": "18.1.2",
25
25
  "@hh.ru/magritte-types": "4.0.1",
26
- "@hh.ru/magritte-ui-action": "4.3.3",
26
+ "@hh.ru/magritte-ui-action": "4.3.5",
27
27
  "@hh.ru/magritte-ui-breakpoint": "4.0.1",
28
- "@hh.ru/magritte-ui-counter": "4.0.8",
29
- "@hh.ru/magritte-ui-icon": "7.1.3",
28
+ "@hh.ru/magritte-ui-counter": "4.0.9",
29
+ "@hh.ru/magritte-ui-icon": "7.1.5",
30
30
  "@hh.ru/magritte-ui-mock-component": "1.0.10",
31
- "@hh.ru/magritte-ui-scrollable-container": "4.3.8",
32
- "@hh.ru/magritte-ui-theme-provider": "1.1.21",
33
- "@hh.ru/magritte-ui-typography": "3.0.8"
31
+ "@hh.ru/magritte-ui-scrollable-container": "4.3.10",
32
+ "@hh.ru/magritte-ui-theme-provider": "1.1.22",
33
+ "@hh.ru/magritte-ui-typography": "3.0.9"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "classnames": ">=2.3.2",
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "b660dd64fca3eaad5ec44ea9a73f92bb0d9694aa"
42
+ "gitHead": "f983d20d02117bd1e412d635d854ab7c47492692"
43
43
  }
@@ -1,22 +0,0 @@
1
- import './index.css';
2
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
- import { cloneElement } from 'react';
4
- import classnames from 'classnames';
5
- import { Counter } from '@hh.ru/magritte-ui-counter';
6
- import { Text } from '@hh.ru/magritte-ui-typography';
7
-
8
- var styles = {"input":"magritte-input___ctH9G_3-0-23","chip":"magritte-chip___uulZ9_3-0-23","chip-wrapper":"magritte-chip-wrapper___os8tP_3-0-23","chipWrapper":"magritte-chip-wrapper___os8tP_3-0-23","chip-wrapper__disabled":"magritte-chip-wrapper__disabled___mHM6-_3-0-23","chipWrapperDisabled":"magritte-chip-wrapper__disabled___mHM6-_3-0-23","content":"magritte-content___17f1s_3-0-23","content__deletable":"magritte-content__deletable___iqF4W_3-0-23","contentDeletable":"magritte-content__deletable___iqF4W_3-0-23","addon":"magritte-addon___mlwVD_3-0-23","label":"magritte-label___NSEUN_3-0-23","counter":"magritte-counter___X35B-_3-0-23","close":"magritte-close___5I1Fe_3-0-23","chip_style-neutral":"magritte-chip_style-neutral___gELi3_3-0-23","chipStyleNeutral":"magritte-chip_style-neutral___gELi3_3-0-23","chip__checked":"magritte-chip__checked___3GRxf_3-0-23","chipChecked":"magritte-chip__checked___3GRxf_3-0-23","chip__custom":"magritte-chip__custom___mE-pN_3-0-23","chipCustom":"magritte-chip__custom___mE-pN_3-0-23","chip_style-accent":"magritte-chip_style-accent___rD0pt_3-0-23","chipStyleAccent":"magritte-chip_style-accent___rD0pt_3-0-23"};
9
-
10
- const ChipContent = ({ addon, ariaLabel, hideLabel, onDelete, counter, children }) => {
11
- const showLabel = !hideLabel && !!children;
12
- return (jsxs("span", { className: classnames(styles.content, {
13
- [styles.contentDeletable]: !!onDelete,
14
- }), children: [addon && (jsx("span", { className: styles.addon, children: cloneElement(addon, {
15
- 'data-qa': 'chip-addon',
16
- 'aria-label': ariaLabel,
17
- 'aria-hidden': showLabel,
18
- }) })), showLabel && (jsxs(Fragment, { children: [jsx("span", { className: styles.label, children: jsx(Text, { Element: "span", typography: "subtitle-1-semibold", children: children }) }), counter && (jsx("span", { className: styles.counter, children: jsx(Counter, { label: counter, style: "attention", mode: "secondary" }) }))] }))] }));
19
- };
20
-
21
- export { ChipContent as C, styles as s };
22
- //# sourceMappingURL=ChipContent-061590dc.js.map