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

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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from '@hh.ru/magritte-ui-theme-provider';
2
- export * from './CheckableChip';
3
- export * from './CustomChip';
4
- export * from './ChipsContainer';
5
- export { type ChipStyle, type CustomChipProps, type CheckableChipProps } from './types';
2
+ export * from '@hh.ru/magritte-ui-chips/CheckableChip';
3
+ export * from '@hh.ru/magritte-ui-chips/CustomChip';
4
+ export * from '@hh.ru/magritte-ui-chips/ChipsContainer';
5
+ export { type ChipStyle, type CustomChipProps, type CheckableChipProps } from '@hh.ru/magritte-ui-chips/types';
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-5760bbaf.js';
9
+ import './ChipContent-Bxa1JKDG.js';
10
10
  import 'classnames';
11
11
  import '@hh.ru/magritte-ui-typography';
12
12
  import '@hh.ru/magritte-ui-action';
package/index.mock.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ForwardRefExoticComponent } from 'react';
2
- export { type ChipStyle, type CheckableChipProps, type CustomChipProps } from './types';
2
+ export { type ChipStyle, type CheckableChipProps, type CustomChipProps } from '@hh.ru/magritte-ui-chips/types';
3
3
  declare const ThemeProvider: any;
4
4
  export { ThemeProvider };
5
5
  export declare const CheckableChip: ForwardRefExoticComponent<Record<string, unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-chips",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -16,20 +16,21 @@
16
16
  "eslint-test": "yarn root:eslint-test $(pwd)",
17
17
  "ts-config": "yarn root:ts-config $(pwd)",
18
18
  "ts-check": "yarn root:ts-check $(pwd)",
19
- "test": "yarn root:test $(pwd)"
19
+ "test": "yarn root:test $(pwd)",
20
+ "watch": "yarn root:watch $(pwd)"
20
21
  },
21
22
  "dependencies": {
22
- "@hh.ru/magritte-common-keyboard": "4.0.0",
23
- "@hh.ru/magritte-common-use-disabled": "1.0.8",
24
- "@hh.ru/magritte-design-tokens": "18.2.0",
25
- "@hh.ru/magritte-types": "4.0.1",
26
- "@hh.ru/magritte-ui-action": "4.3.10",
27
- "@hh.ru/magritte-ui-breakpoint": "4.0.2",
28
- "@hh.ru/magritte-ui-icon": "7.1.8",
29
- "@hh.ru/magritte-ui-mock-component": "1.0.10",
30
- "@hh.ru/magritte-ui-scrollable-container": "4.3.16",
31
- "@hh.ru/magritte-ui-theme-provider": "1.1.24",
32
- "@hh.ru/magritte-ui-typography": "3.0.11"
23
+ "@hh.ru/magritte-common-keyboard": "4.0.1",
24
+ "@hh.ru/magritte-common-use-disabled": "1.0.9",
25
+ "@hh.ru/magritte-design-tokens": "18.2.1",
26
+ "@hh.ru/magritte-types": "4.0.2",
27
+ "@hh.ru/magritte-ui-action": "4.3.12",
28
+ "@hh.ru/magritte-ui-breakpoint": "4.0.3",
29
+ "@hh.ru/magritte-ui-icon": "7.1.9",
30
+ "@hh.ru/magritte-ui-mock-component": "1.0.11",
31
+ "@hh.ru/magritte-ui-scrollable-container": "4.3.18",
32
+ "@hh.ru/magritte-ui-theme-provider": "1.1.25",
33
+ "@hh.ru/magritte-ui-typography": "3.0.12"
33
34
  },
34
35
  "peerDependencies": {
35
36
  "classnames": ">=2.3.2",
@@ -38,5 +39,5 @@
38
39
  "publishConfig": {
39
40
  "access": "public"
40
41
  },
41
- "gitHead": "4480faadc19af08673481a84a62f77d081e9be2e"
42
- }
42
+ "gitHead": "07811bb36acfa5d6b622e7376d04736612344b19"
43
+ }
@@ -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-1","chip":"magritte-chip___uulZ9_5-0-1","chip-wrapper":"magritte-chip-wrapper___os8tP_5-0-1","chipWrapper":"magritte-chip-wrapper___os8tP_5-0-1","chip-wrapper__disabled":"magritte-chip-wrapper__disabled___mHM6-_5-0-1","chipWrapperDisabled":"magritte-chip-wrapper__disabled___mHM6-_5-0-1","content":"magritte-content___17f1s_5-0-1","content__deletable":"magritte-content__deletable___iqF4W_5-0-1","contentDeletable":"magritte-content__deletable___iqF4W_5-0-1","addon":"magritte-addon___mlwVD_5-0-1","label":"magritte-label___NSEUN_5-0-1","postfix-wrapper":"magritte-postfix-wrapper___Qmxwy_5-0-1","postfixWrapper":"magritte-postfix-wrapper___Qmxwy_5-0-1","close":"magritte-close___5I1Fe_5-0-1","chip_style-neutral":"magritte-chip_style-neutral___gELi3_5-0-1","chipStyleNeutral":"magritte-chip_style-neutral___gELi3_5-0-1","postfix":"magritte-postfix___hgYUe_5-0-1","chip__checked":"magritte-chip__checked___3GRxf_5-0-1","chipChecked":"magritte-chip__checked___3GRxf_5-0-1","chip__custom":"magritte-chip__custom___mE-pN_5-0-1","chipCustom":"magritte-chip__custom___mE-pN_5-0-1","chip_style-accent":"magritte-chip_style-accent___rD0pt_5-0-1","chipStyleAccent":"magritte-chip_style-accent___rD0pt_5-0-1"};
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-5760bbaf.js.map