@hh.ru/magritte-ui-chips 5.3.19 → 5.4.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/index.js CHANGED
@@ -7,9 +7,8 @@ import 'react/jsx-runtime';
7
7
  import 'react';
8
8
  import 'classnames';
9
9
  import '@hh.ru/magritte-common-use-disabled';
10
- import './ChipContent-CS4N9BNF.js';
10
+ import './ChipContent-DsD42hGz.js';
11
11
  import '@hh.ru/magritte-ui-typography';
12
- import '@hh.ru/magritte-ui-action';
13
12
  import '@hh.ru/magritte-ui-icon/variants/icon';
14
13
  import '@hh.ru/magritte-ui-scrollable-container';
15
14
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-chips",
3
- "version": "5.3.19",
3
+ "version": "5.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -24,13 +24,12 @@
24
24
  "@hh.ru/magritte-common-use-disabled": "1.0.10",
25
25
  "@hh.ru/magritte-design-tokens": "21.3.2",
26
26
  "@hh.ru/magritte-types": "5.0.1",
27
- "@hh.ru/magritte-ui-action": "4.4.33",
28
27
  "@hh.ru/magritte-ui-breakpoint": "5.0.0",
29
- "@hh.ru/magritte-ui-icon": "10.0.0",
30
- "@hh.ru/magritte-ui-mock-component": "1.0.12",
31
- "@hh.ru/magritte-ui-scrollable-container": "5.0.7",
28
+ "@hh.ru/magritte-ui-icon": "10.2.0",
29
+ "@hh.ru/magritte-ui-mock-component": "1.1.0",
30
+ "@hh.ru/magritte-ui-scrollable-container": "5.1.0",
32
31
  "@hh.ru/magritte-ui-theme-provider": "1.1.41",
33
- "@hh.ru/magritte-ui-typography": "3.0.31"
32
+ "@hh.ru/magritte-ui-typography": "3.0.32"
34
33
  },
35
34
  "peerDependencies": {
36
35
  "classnames": ">=2.3.2",
@@ -39,5 +38,5 @@
39
38
  "publishConfig": {
40
39
  "access": "public"
41
40
  },
42
- "gitHead": "701d9de63f5201fe61f21bbc9f0252a59201c9e3"
41
+ "gitHead": "d12e0d9910ca5fb5323a5312386cb48255aa5ca6"
43
42
  }
@@ -1,23 +0,0 @@
1
- import './index.css';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { cloneElement } from 'react';
4
- import classnames from 'classnames';
5
- import { Text } from '@hh.ru/magritte-ui-typography';
6
-
7
- var styles = {"input":"magritte-input___ctH9G_5-3-19","chip":"magritte-chip___uulZ9_5-3-19","chip-wrapper":"magritte-chip-wrapper___os8tP_5-3-19","chipWrapper":"magritte-chip-wrapper___os8tP_5-3-19","chip-wrapper__disabled":"magritte-chip-wrapper__disabled___mHM6-_5-3-19","chipWrapperDisabled":"magritte-chip-wrapper__disabled___mHM6-_5-3-19","content":"magritte-content___17f1s_5-3-19","size-small":"magritte-size-small___2di4r_5-3-19","sizeSmall":"magritte-size-small___2di4r_5-3-19","content__deletable":"magritte-content__deletable___iqF4W_5-3-19","contentDeletable":"magritte-content__deletable___iqF4W_5-3-19","addon":"magritte-addon___mlwVD_5-3-19","label-container":"magritte-label-container___VVRg1_5-3-19","labelContainer":"magritte-label-container___VVRg1_5-3-19","label":"magritte-label___NSEUN_5-3-19","postfix-wrapper":"magritte-postfix-wrapper___Qmxwy_5-3-19","postfixWrapper":"magritte-postfix-wrapper___Qmxwy_5-3-19","close":"magritte-close___5I1Fe_5-3-19","chip_style-neutral":"magritte-chip_style-neutral___gELi3_5-3-19","chipStyleNeutral":"magritte-chip_style-neutral___gELi3_5-3-19","postfix":"magritte-postfix___hgYUe_5-3-19","chip__checked":"magritte-chip__checked___3GRxf_5-3-19","chipChecked":"magritte-chip__checked___3GRxf_5-3-19","chip__custom":"magritte-chip__custom___mE-pN_5-3-19","chipCustom":"magritte-chip__custom___mE-pN_5-3-19","disabled":"magritte-disabled___CLRlf_5-3-19","chip_style-accent":"magritte-chip_style-accent___rD0pt_5-3-19","chipStyleAccent":"magritte-chip_style-accent___rD0pt_5-3-19","delete-only":"magritte-delete-only___dn3c7_5-3-19","deleteOnly":"magritte-delete-only___dn3c7_5-3-19","chip_secondary":"magritte-chip_secondary___druWa_5-3-19","chipSecondary":"magritte-chip_secondary___druWa_5-3-19","close_secondary":"magritte-close_secondary___7bJpC_5-3-19","closeSecondary":"magritte-close_secondary___7bJpC_5-3-19"};
8
-
9
- const ChipContent = ({ addon, 'aria-label': ariaLabel, hideLabel, onDelete, postfix, children, size = 'medium', mode = 'primary', }) => {
10
- const showLabel = !hideLabel && !!children;
11
- const typographyForPrimary = size === 'small' ? 'subtitle-2-semibold' : 'subtitle-1-semibold';
12
- const typography = mode === 'secondary' ? 'label-3-regular' : typographyForPrimary;
13
- return (jsxs("span", { className: classnames(styles.content, {
14
- [styles.contentDeletable]: !!onDelete,
15
- }), children: [addon && (jsx("span", { className: styles.addon, children: cloneElement(addon, {
16
- 'data-qa': 'chip-addon',
17
- 'aria-label': ariaLabel,
18
- 'aria-hidden': showLabel,
19
- }) })), showLabel && (jsxs("span", { className: styles.labelContainer, children: [jsx("span", { className: styles.label, children: jsx(Text, { Element: "span", typography: typography, children: children }) }), postfix && (jsx("span", { className: styles.postfixWrapper, children: jsx(Text, { Element: "span", typography: typography, children: jsx("span", { className: styles.postfix, children: postfix }) }) }))] }))] }));
20
- };
21
-
22
- export { ChipContent as C, styles as s };
23
- //# sourceMappingURL=ChipContent-CS4N9BNF.js.map