@hh.ru/magritte-ui-chips 5.2.20 → 5.2.22

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,7 +7,7 @@ import 'react/jsx-runtime';
7
7
  import 'react';
8
8
  import 'classnames';
9
9
  import '@hh.ru/magritte-common-use-disabled';
10
- import './ChipContent-y_A_kWAT.js';
10
+ import './ChipContent-W1lCdkKS.js';
11
11
  import '@hh.ru/magritte-ui-typography';
12
12
  import '@hh.ru/magritte-ui-action';
13
13
  import '@hh.ru/magritte-ui-icon/variants/icon';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-chips",
3
- "version": "5.2.20",
3
+ "version": "5.2.22",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -23,14 +23,14 @@
23
23
  "@hh.ru/magritte-common-keyboard": "4.0.2",
24
24
  "@hh.ru/magritte-common-use-disabled": "1.0.9",
25
25
  "@hh.ru/magritte-design-tokens": "19.1.2",
26
- "@hh.ru/magritte-types": "4.0.3",
27
- "@hh.ru/magritte-ui-action": "4.4.12",
28
- "@hh.ru/magritte-ui-breakpoint": "4.0.4",
29
- "@hh.ru/magritte-ui-icon": "7.9.2",
26
+ "@hh.ru/magritte-types": "5.0.0",
27
+ "@hh.ru/magritte-ui-action": "4.4.14",
28
+ "@hh.ru/magritte-ui-breakpoint": "4.1.0",
29
+ "@hh.ru/magritte-ui-icon": "7.9.3",
30
30
  "@hh.ru/magritte-ui-mock-component": "1.0.11",
31
- "@hh.ru/magritte-ui-scrollable-container": "4.4.0",
31
+ "@hh.ru/magritte-ui-scrollable-container": "4.4.2",
32
32
  "@hh.ru/magritte-ui-theme-provider": "1.1.31",
33
- "@hh.ru/magritte-ui-typography": "3.0.18"
33
+ "@hh.ru/magritte-ui-typography": "3.0.19"
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": "01139f44e3220b2f920526a7d93ac4d43082ace6"
42
+ "gitHead": "4adeae453af768d9a43f23cd7f9f43bb54676a3b"
43
43
  }
package/types.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { InputHTMLAttributes, ReactElement, ReactFragment } from 'react';
2
- import { PropsWithCustomElement } from '@hh.ru/magritte-types';
3
2
  import { SpacingCorrectionProps } from '@hh.ru/magritte-ui-scrollable-container';
4
3
  export type ChipStyle = 'neutral' | 'accent';
5
4
  type ChipChildren = ReactElement | string | number | ReactFragment;
@@ -68,7 +67,6 @@ export type CustomChipProps = {
68
67
  /** data-qa атрибут для Element */
69
68
  'data-qa'?: string;
70
69
  } & ChipCommonProps & (DeletableCustomChipProps | NonDeletableCustomChipProps);
71
- export type CustomChipWithElementProps = PropsWithCustomElement<CustomChipProps, 'button'>;
72
70
  export type ChipsContainerProps = {
73
71
  'data-qa'?: string;
74
72
  noWrap?: never;
@@ -1,22 +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-2-20","chip":"magritte-chip___uulZ9_5-2-20","chip-wrapper":"magritte-chip-wrapper___os8tP_5-2-20","chipWrapper":"magritte-chip-wrapper___os8tP_5-2-20","chip-wrapper__disabled":"magritte-chip-wrapper__disabled___mHM6-_5-2-20","chipWrapperDisabled":"magritte-chip-wrapper__disabled___mHM6-_5-2-20","content":"magritte-content___17f1s_5-2-20","size-small":"magritte-size-small___2di4r_5-2-20","sizeSmall":"magritte-size-small___2di4r_5-2-20","content__deletable":"magritte-content__deletable___iqF4W_5-2-20","contentDeletable":"magritte-content__deletable___iqF4W_5-2-20","addon":"magritte-addon___mlwVD_5-2-20","label-container":"magritte-label-container___VVRg1_5-2-20","labelContainer":"magritte-label-container___VVRg1_5-2-20","label":"magritte-label___NSEUN_5-2-20","postfix-wrapper":"magritte-postfix-wrapper___Qmxwy_5-2-20","postfixWrapper":"magritte-postfix-wrapper___Qmxwy_5-2-20","close":"magritte-close___5I1Fe_5-2-20","chip_style-neutral":"magritte-chip_style-neutral___gELi3_5-2-20","chipStyleNeutral":"magritte-chip_style-neutral___gELi3_5-2-20","postfix":"magritte-postfix___hgYUe_5-2-20","chip__checked":"magritte-chip__checked___3GRxf_5-2-20","chipChecked":"magritte-chip__checked___3GRxf_5-2-20","chip__custom":"magritte-chip__custom___mE-pN_5-2-20","chipCustom":"magritte-chip__custom___mE-pN_5-2-20","disabled":"magritte-disabled___CLRlf_5-2-20","chip_style-accent":"magritte-chip_style-accent___rD0pt_5-2-20","chipStyleAccent":"magritte-chip_style-accent___rD0pt_5-2-20","delete-only":"magritte-delete-only___dn3c7_5-2-20","deleteOnly":"magritte-delete-only___dn3c7_5-2-20"};
8
-
9
- const ChipContent = ({ addon, 'aria-label': ariaLabel, hideLabel, onDelete, postfix, children, size = 'medium', }) => {
10
- const showLabel = !hideLabel && !!children;
11
- const typography = size === 'small' ? 'subtitle-2-semibold' : 'subtitle-1-semibold';
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("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 }) }) }))] }))] }));
19
- };
20
-
21
- export { ChipContent as C, styles as s };
22
- //# sourceMappingURL=ChipContent-y_A_kWAT.js.map