@hh.ru/magritte-ui-chips 5.0.0 → 5.0.1

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-f4ad02d5.js';
9
+ import './ChipContent-5760bbaf.js';
10
10
  import 'classnames';
11
11
  import '@hh.ru/magritte-ui-typography';
12
12
  import '@hh.ru/magritte-ui-action';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-chips",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -23,11 +23,11 @@
23
23
  "@hh.ru/magritte-common-use-disabled": "1.0.8",
24
24
  "@hh.ru/magritte-design-tokens": "18.2.0",
25
25
  "@hh.ru/magritte-types": "4.0.1",
26
- "@hh.ru/magritte-ui-action": "4.3.9",
26
+ "@hh.ru/magritte-ui-action": "4.3.10",
27
27
  "@hh.ru/magritte-ui-breakpoint": "4.0.2",
28
28
  "@hh.ru/magritte-ui-icon": "7.1.8",
29
29
  "@hh.ru/magritte-ui-mock-component": "1.0.10",
30
- "@hh.ru/magritte-ui-scrollable-container": "4.3.15",
30
+ "@hh.ru/magritte-ui-scrollable-container": "4.3.16",
31
31
  "@hh.ru/magritte-ui-theme-provider": "1.1.24",
32
32
  "@hh.ru/magritte-ui-typography": "3.0.11"
33
33
  },
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "2096654db9454114e1dbf70e7a7786d7e5b688b8"
41
+ "gitHead": "4480faadc19af08673481a84a62f77d081e9be2e"
42
42
  }
@@ -1,21 +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 { Text } from '@hh.ru/magritte-ui-typography';
6
-
7
- var styles = {"input":"magritte-input___ctH9G_5-0-0","chip":"magritte-chip___uulZ9_5-0-0","chip-wrapper":"magritte-chip-wrapper___os8tP_5-0-0","chipWrapper":"magritte-chip-wrapper___os8tP_5-0-0","chip-wrapper__disabled":"magritte-chip-wrapper__disabled___mHM6-_5-0-0","chipWrapperDisabled":"magritte-chip-wrapper__disabled___mHM6-_5-0-0","content":"magritte-content___17f1s_5-0-0","content__deletable":"magritte-content__deletable___iqF4W_5-0-0","contentDeletable":"magritte-content__deletable___iqF4W_5-0-0","addon":"magritte-addon___mlwVD_5-0-0","label":"magritte-label___NSEUN_5-0-0","postfix-wrapper":"magritte-postfix-wrapper___Qmxwy_5-0-0","postfixWrapper":"magritte-postfix-wrapper___Qmxwy_5-0-0","close":"magritte-close___5I1Fe_5-0-0","chip_style-neutral":"magritte-chip_style-neutral___gELi3_5-0-0","chipStyleNeutral":"magritte-chip_style-neutral___gELi3_5-0-0","postfix":"magritte-postfix___hgYUe_5-0-0","chip__checked":"magritte-chip__checked___3GRxf_5-0-0","chipChecked":"magritte-chip__checked___3GRxf_5-0-0","chip__custom":"magritte-chip__custom___mE-pN_5-0-0","chipCustom":"magritte-chip__custom___mE-pN_5-0-0","chip_style-accent":"magritte-chip_style-accent___rD0pt_5-0-0","chipStyleAccent":"magritte-chip_style-accent___rD0pt_5-0-0"};
8
-
9
- const ChipContent = ({ addon, 'aria-label': ariaLabel, hideLabel, onDelete, postfix, children, }) => {
10
- const showLabel = !hideLabel && !!children;
11
- return (jsxs("span", { className: classnames(styles.content, {
12
- [styles.contentDeletable]: !!onDelete,
13
- }), children: [addon && (jsx("span", { className: styles.addon, children: cloneElement(addon, {
14
- 'data-qa': 'chip-addon',
15
- 'aria-label': ariaLabel,
16
- 'aria-hidden': showLabel,
17
- }) })), showLabel && (jsxs(Fragment, { children: [jsx("span", { className: styles.label, children: jsx(Text, { Element: "span", typography: "subtitle-1-semibold", children: children }) }), postfix && (jsx("span", { className: styles.postfixWrapper, children: jsx(Text, { Element: "span", typography: "subtitle-1-semibold", children: jsx("span", { className: styles.postfix, children: postfix }) }) }))] }))] }));
18
- };
19
-
20
- export { ChipContent as C, styles as s };
21
- //# sourceMappingURL=ChipContent-f4ad02d5.js.map