@hh.ru/magritte-ui-chips 3.0.24 → 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/CheckableChip.js +1 -1
- package/ChipContent-937d12dd.js +22 -0
- package/{ChipContent-33de1cf1.js.map → ChipContent-937d12dd.js.map} +1 -1
- package/ChipContent.js +1 -1
- package/ChipsContainer.js +2 -2
- package/CustomChip.js +1 -1
- package/index.css +597 -597
- package/index.js +1 -1
- package/package.json +9 -9
- package/ChipContent-33de1cf1.js +0 -22
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-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
29
|
-
"@hh.ru/magritte-ui-icon": "7.1.
|
|
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.
|
|
32
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
33
|
-
"@hh.ru/magritte-ui-typography": "3.0.
|
|
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": "
|
|
42
|
+
"gitHead": "f983d20d02117bd1e412d635d854ab7c47492692"
|
|
43
43
|
}
|
package/ChipContent-33de1cf1.js
DELETED
|
@@ -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-24","chip":"magritte-chip___uulZ9_3-0-24","chip-wrapper":"magritte-chip-wrapper___os8tP_3-0-24","chipWrapper":"magritte-chip-wrapper___os8tP_3-0-24","chip-wrapper__disabled":"magritte-chip-wrapper__disabled___mHM6-_3-0-24","chipWrapperDisabled":"magritte-chip-wrapper__disabled___mHM6-_3-0-24","content":"magritte-content___17f1s_3-0-24","content__deletable":"magritte-content__deletable___iqF4W_3-0-24","contentDeletable":"magritte-content__deletable___iqF4W_3-0-24","addon":"magritte-addon___mlwVD_3-0-24","label":"magritte-label___NSEUN_3-0-24","counter":"magritte-counter___X35B-_3-0-24","close":"magritte-close___5I1Fe_3-0-24","chip_style-neutral":"magritte-chip_style-neutral___gELi3_3-0-24","chipStyleNeutral":"magritte-chip_style-neutral___gELi3_3-0-24","chip__checked":"magritte-chip__checked___3GRxf_3-0-24","chipChecked":"magritte-chip__checked___3GRxf_3-0-24","chip__custom":"magritte-chip__custom___mE-pN_3-0-24","chipCustom":"magritte-chip__custom___mE-pN_3-0-24","chip_style-accent":"magritte-chip_style-accent___rD0pt_3-0-24","chipStyleAccent":"magritte-chip_style-accent___rD0pt_3-0-24"};
|
|
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-33de1cf1.js.map
|