@hh.ru/magritte-ui-branded-button 2.3.32 → 2.3.34
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/BrandedButton.d.ts +2 -2
- package/BrandedButton.js +58 -29
- package/BrandedButton.js.map +1 -1
- package/icons.d.ts +1 -1
- package/icons.js +125 -125
- package/icons.js.map +1 -1
- package/index.css +1449 -1449
- package/index.d.ts +2 -2
- package/index.mock.d.ts +1 -1
- package/index.mock.js +7 -3
- package/index.mock.js.map +1 -1
- package/package.json +6 -6
package/BrandedButton.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PolymorphicComponentWithRef } from '@hh.ru/magritte-types';
|
|
2
|
-
import type { BrandedButtonProps } from '
|
|
3
|
-
export declare const BrandedButton: PolymorphicComponentWithRef<BrandedButtonProps,
|
|
2
|
+
import type { BrandedButtonProps } from './types';
|
|
3
|
+
export declare const BrandedButton: PolymorphicComponentWithRef<BrandedButtonProps, 'button'>;
|
package/BrandedButton.js
CHANGED
|
@@ -9,38 +9,67 @@ import { Text } from '@hh.ru/magritte-ui-typography';
|
|
|
9
9
|
import '@hh.ru/magritte-ui-icon/variants/icon';
|
|
10
10
|
import '@hh.ru/magritte-ui-icon/variants/service';
|
|
11
11
|
|
|
12
|
-
var styles = {"branded-button":"magritte-branded-button___1S-6h_2-3-
|
|
12
|
+
var styles = {"branded-button":"magritte-branded-button___1S-6h_2-3-34","brandedButton":"magritte-branded-button___1S-6h_2-3-34","with-label":"magritte-with-label___Dk5zY_2-3-34","withLabel":"magritte-with-label___Dk5zY_2-3-34","large":"magritte-large___fhHp1_2-3-34","medium":"magritte-medium___acdMN_2-3-34","without-label":"magritte-without-label___31Mkw_2-3-34","withoutLabel":"magritte-without-label___31Mkw_2-3-34","content":"magritte-content___KCvC7_2-3-34","with-loading":"magritte-with-loading___ZAtEE_2-3-34","withLoading":"magritte-with-loading___ZAtEE_2-3-34","label":"magritte-label___5wD1u_2-3-34","icon":"magritte-icon___Jrf4s_2-3-34","icons":"magritte-icons___w0xoV_2-3-34","loader":"magritte-loader___1fu4H_2-3-34","apple-primary":"magritte-apple-primary___JRlQ6_2-3-34","applePrimary":"magritte-apple-primary___JRlQ6_2-3-34","disabled":"magritte-disabled___jnf8q_2-3-34","vk-primary":"magritte-vk-primary___Yb3pK_2-3-34","vkPrimary":"magritte-vk-primary___Yb3pK_2-3-34","mail-primary":"magritte-mail-primary___-L14-_2-3-34","mailPrimary":"magritte-mail-primary___-L14-_2-3-34","ok-primary":"magritte-ok-primary___C1FPr_2-3-34","okPrimary":"magritte-ok-primary___C1FPr_2-3-34","google-primary":"magritte-google-primary___aFVAZ_2-3-34","googlePrimary":"magritte-google-primary___aFVAZ_2-3-34","esia-primary":"magritte-esia-primary___tVRSb_2-3-34","esiaPrimary":"magritte-esia-primary___tVRSb_2-3-34","t-bank-primary":"magritte-t-bank-primary___zK7wR_2-3-34","tBankPrimary":"magritte-t-bank-primary___zK7wR_2-3-34","yandex-primary":"magritte-yandex-primary___-7Uln_2-3-34","yandexPrimary":"magritte-yandex-primary___-7Uln_2-3-34","more-primary":"magritte-more-primary___KWZtF_2-3-34","morePrimary":"magritte-more-primary___KWZtF_2-3-34","icon-more":"magritte-icon-more___h5vmK_2-3-34","iconMore":"magritte-icon-more___h5vmK_2-3-34","icon-apple":"magritte-icon-apple___GNkzh_2-3-34","iconApple":"magritte-icon-apple___GNkzh_2-3-34","icon-vk":"magritte-icon-vk___ZYtqi_2-3-34","iconVk":"magritte-icon-vk___ZYtqi_2-3-34","icon-mail":"magritte-icon-mail___llrks_2-3-34","iconMail":"magritte-icon-mail___llrks_2-3-34","icon-ok":"magritte-icon-ok___46dW7_2-3-34","iconOk":"magritte-icon-ok___46dW7_2-3-34","icon-google":"magritte-icon-google___IMAFR_2-3-34","iconGoogle":"magritte-icon-google___IMAFR_2-3-34","icon-esia":"magritte-icon-esia___dDBGo_2-3-34","iconEsia":"magritte-icon-esia___dDBGo_2-3-34","icon-t-bank":"magritte-icon-t-bank___Dx2fC_2-3-34","iconTBank":"magritte-icon-t-bank___Dx2fC_2-3-34","icon-yandex":"magritte-icon-yandex___fe4ig_2-3-34","iconYandex":"magritte-icon-yandex___fe4ig_2-3-34","apple-secondary":"magritte-apple-secondary___hGF96_2-3-34","appleSecondary":"magritte-apple-secondary___hGF96_2-3-34","vk-secondary":"magritte-vk-secondary___QtaCT_2-3-34","vkSecondary":"magritte-vk-secondary___QtaCT_2-3-34","mail-secondary":"magritte-mail-secondary___3UqUc_2-3-34","mailSecondary":"magritte-mail-secondary___3UqUc_2-3-34","ok-secondary":"magritte-ok-secondary___vnWnt_2-3-34","okSecondary":"magritte-ok-secondary___vnWnt_2-3-34","google-secondary":"magritte-google-secondary___xz82D_2-3-34","googleSecondary":"magritte-google-secondary___xz82D_2-3-34","esia-secondary":"magritte-esia-secondary___fpaCK_2-3-34","esiaSecondary":"magritte-esia-secondary___fpaCK_2-3-34","t-bank-secondary":"magritte-t-bank-secondary___pcYpz_2-3-34","tBankSecondary":"magritte-t-bank-secondary___pcYpz_2-3-34","yandex-secondary":"magritte-yandex-secondary___8lFGz_2-3-34","yandexSecondary":"magritte-yandex-secondary___8lFGz_2-3-34","more-secondary":"magritte-more-secondary___ZC-AL_2-3-34","moreSecondary":"magritte-more-secondary___ZC-AL_2-3-34","apple-tertiary":"magritte-apple-tertiary___Ibvcd_2-3-34","appleTertiary":"magritte-apple-tertiary___Ibvcd_2-3-34","vk-tertiary":"magritte-vk-tertiary___V2CIc_2-3-34","vkTertiary":"magritte-vk-tertiary___V2CIc_2-3-34","mail-tertiary":"magritte-mail-tertiary___WJxIx_2-3-34","mailTertiary":"magritte-mail-tertiary___WJxIx_2-3-34","ok-tertiary":"magritte-ok-tertiary___aOdxp_2-3-34","okTertiary":"magritte-ok-tertiary___aOdxp_2-3-34","google-tertiary":"magritte-google-tertiary___LGKec_2-3-34","googleTertiary":"magritte-google-tertiary___LGKec_2-3-34","esia-tertiary":"magritte-esia-tertiary___IU16g_2-3-34","esiaTertiary":"magritte-esia-tertiary___IU16g_2-3-34","t-bank-tertiary":"magritte-t-bank-tertiary___Dee9q_2-3-34","tBankTertiary":"magritte-t-bank-tertiary___Dee9q_2-3-34","yandex-tertiary":"magritte-yandex-tertiary___VLvi4_2-3-34","yandexTertiary":"magritte-yandex-tertiary___VLvi4_2-3-34","more-tertiary":"magritte-more-tertiary___fv4ob_2-3-34","moreTertiary":"magritte-more-tertiary___fv4ob_2-3-34"};
|
|
13
13
|
|
|
14
14
|
const ICONS_MAX = 2;
|
|
15
|
-
const BrandedButtonComponent = ({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
const BrandedButtonComponent = ({
|
|
16
|
+
Element = "button",
|
|
17
|
+
service: _service,
|
|
18
|
+
size = "medium",
|
|
19
|
+
mode = "primary",
|
|
20
|
+
"data-qa": dataQa = "branded-button",
|
|
21
|
+
disabled,
|
|
22
|
+
loading,
|
|
23
|
+
children,
|
|
24
|
+
...restProps
|
|
25
|
+
}, ref) => {
|
|
26
|
+
const ICON_MAP = children ? SERVICE_ICON_MAP : SERVICE_ONLY_ICON_MAP;
|
|
27
|
+
const service = Array.isArray(_service) && _service.length === 1 ? _service[0] : _service;
|
|
28
|
+
const isMoreButton = Array.isArray(service);
|
|
29
|
+
const forceDisabled = useDisabled();
|
|
30
|
+
const isComponentDisabled = disabled || forceDisabled;
|
|
31
|
+
const state = isComponentDisabled ? "disabled" : "default";
|
|
32
|
+
const IconComponent = isMoreButton ? ICON_MAP.more?.[mode][state] : ICON_MAP[service]?.[mode][state];
|
|
33
|
+
const serviceClass = isMoreButton ? `more-${mode}` : `${service}-${mode}`;
|
|
34
|
+
const additionalAttributes = {
|
|
35
|
+
"data-qa": dataQa
|
|
36
|
+
};
|
|
37
|
+
if (Element === "button") {
|
|
38
|
+
additionalAttributes.type = "button";
|
|
39
|
+
}
|
|
40
|
+
if (ref) {
|
|
41
|
+
additionalAttributes.ref = ref;
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
Element,
|
|
45
|
+
{
|
|
46
|
+
...additionalAttributes,
|
|
47
|
+
...restProps,
|
|
48
|
+
disabled: isComponentDisabled,
|
|
49
|
+
tabIndex: isComponentDisabled || loading ? -1 : 0,
|
|
50
|
+
className: classnames(styles.brandedButton, styles[size], serviceClass && styles[serviceClass], {
|
|
51
|
+
[styles.withLabel]: !!children,
|
|
52
|
+
[styles.withoutLabel]: !children,
|
|
53
|
+
[styles.disabled]: isComponentDisabled,
|
|
54
|
+
[styles.withLoading]: loading
|
|
55
|
+
}),
|
|
56
|
+
children: /* @__PURE__ */ jsxs("div", { className: classnames(styles.content), children: [
|
|
57
|
+
children && /* @__PURE__ */ jsx("span", { className: styles.label, children: /* @__PURE__ */ jsx(Text, { Element: "span", typography: "subtitle-1-semibold", children }) }),
|
|
58
|
+
IconComponent && /* @__PURE__ */ jsx("span", { className: styles.icon, children: /* @__PURE__ */ jsx(IconComponent, { "data-qa": `branded-button-icon-${isMoreButton ? "more" : service}` }) }),
|
|
59
|
+
isMoreButton && !IconComponent && /* @__PURE__ */ jsxs("div", { className: styles.icons, children: [
|
|
60
|
+
service.slice(0, ICONS_MAX).map((item) => {
|
|
61
|
+
const Icon = mode === "tertiary" ? ICON_MAP[item]?.tertiary[state] : ICON_MAP[item]?.secondary[state];
|
|
62
|
+
return /* @__PURE__ */ jsx("div", { className: styles[`icon-${item}`], children: Icon && /* @__PURE__ */ jsx(Icon, { "data-qa": `branded-button-icon-${item}` }) }, item);
|
|
63
|
+
}),
|
|
64
|
+
service.length > ICONS_MAX && /* @__PURE__ */ jsxs(Text, { typography: "subtitle-1-semibold", children: [
|
|
65
|
+
"+ ",
|
|
66
|
+
service.length - ICONS_MAX
|
|
67
|
+
] })
|
|
68
|
+
] }),
|
|
69
|
+
loading && /* @__PURE__ */ jsx("span", { className: styles.loader, children: /* @__PURE__ */ jsx(Loader, { size: 24 }) })
|
|
70
|
+
] })
|
|
29
71
|
}
|
|
30
|
-
|
|
31
|
-
additionalAttributes.ref = ref;
|
|
32
|
-
}
|
|
33
|
-
return (jsx(Element, { ...additionalAttributes, ...restProps, disabled: isComponentDisabled, tabIndex: isComponentDisabled || loading ? -1 : 0, className: classnames(styles.brandedButton, styles[size], serviceClass && styles[serviceClass], {
|
|
34
|
-
[styles.withLabel]: !!children,
|
|
35
|
-
[styles.withoutLabel]: !children,
|
|
36
|
-
[styles.disabled]: isComponentDisabled,
|
|
37
|
-
[styles.withLoading]: loading,
|
|
38
|
-
}), children: jsxs("div", { className: classnames(styles.content), children: [children && (jsx("span", { className: styles.label, children: jsx(Text, { Element: "span", typography: "subtitle-1-semibold", children: children }) })), IconComponent && (jsx("span", { className: styles.icon, children: jsx(IconComponent, { "data-qa": `branded-button-icon-${isMoreButton ? 'more' : service}` }) })), isMoreButton && !IconComponent && (jsxs("div", { className: styles.icons, children: [service.slice(0, ICONS_MAX).map((item) => {
|
|
39
|
-
const Icon = mode === 'tertiary'
|
|
40
|
-
? ICON_MAP[item]?.tertiary[state]
|
|
41
|
-
: ICON_MAP[item]?.secondary[state];
|
|
42
|
-
return (jsx("div", { className: styles[`icon-${item}`], children: Icon && jsx(Icon, { "data-qa": `branded-button-icon-${item}` }) }, item));
|
|
43
|
-
}), service.length > ICONS_MAX && (jsxs(Text, { typography: "subtitle-1-semibold", children: ["+ ", service.length - ICONS_MAX] }))] })), loading && (jsx("span", { className: styles.loader, children: jsx(Loader, { size: 24 }) }))] }) }));
|
|
72
|
+
);
|
|
44
73
|
};
|
|
45
74
|
const BrandedButton = forwardRef(BrandedButtonComponent);
|
|
46
75
|
|
package/BrandedButton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrandedButton.js","sources":["src/BrandedButton.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { useDisabled } from '@hh.ru/magritte-common-use-disabled';\nimport type { PolymorphicForwardRefRenderFunc, PolymorphicComponentWithRef } from '@hh.ru/magritte-types';\nimport { SERVICE_ICON_MAP, SERVICE_ONLY_ICON_MAP } from '@hh.ru/magritte-ui-branded-button/icons';\nimport type { BrandedButtonProps } from '@hh.ru/magritte-ui-branded-button/types';\nimport { Loader } from '@hh.ru/magritte-ui-loader';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './branded-button.less';\n\nconst ICONS_MAX = 2;\n\nconst BrandedButtonComponent: PolymorphicForwardRefRenderFunc<BrandedButtonProps, 'button'> = (\n {\n Element = 'button',\n service: _service,\n size = 'medium',\n mode = 'primary',\n 'data-qa': dataQa = 'branded-button',\n disabled,\n loading,\n children,\n ...restProps\n },\n ref\n) => {\n const ICON_MAP = children ? SERVICE_ICON_MAP : SERVICE_ONLY_ICON_MAP;\n const service = Array.isArray(_service) && _service.length === 1 ? _service[0] : _service;\n const isMoreButton = Array.isArray(service);\n const forceDisabled = useDisabled();\n const isComponentDisabled = disabled || forceDisabled;\n const state = isComponentDisabled ? 'disabled' : 'default';\n const IconComponent = isMoreButton ? ICON_MAP.more?.[mode][state] : ICON_MAP[service]?.[mode][state];\n const serviceClass = (isMoreButton ? `more-${mode}` : `${service}-${mode}`) as keyof typeof styles;\n const additionalAttributes: Record<string, unknown> = {\n 'data-qa': dataQa,\n };\n\n if (Element === 'button') {\n additionalAttributes.type = 'button';\n }\n\n if (ref) {\n additionalAttributes.ref = ref;\n }\n\n return (\n <Element\n {...additionalAttributes}\n {...restProps}\n disabled={isComponentDisabled}\n tabIndex={isComponentDisabled || loading ? -1 : 0}\n className={classnames(styles.brandedButton, styles[size], serviceClass && styles[serviceClass], {\n [styles.withLabel]: !!children,\n [styles.withoutLabel]: !children,\n [styles.disabled]: isComponentDisabled,\n [styles.withLoading]: loading,\n })}\n >\n <div className={classnames(styles.content)}>\n {children && (\n <span className={styles.label}>\n <Text Element=\"span\" typography=\"subtitle-1-semibold\">\n {children}\n </Text>\n </span>\n )}\n {IconComponent && (\n <span className={styles.icon}>\n <IconComponent data-qa={`branded-button-icon-${isMoreButton ? 'more' : service}`} />\n </span>\n )}\n {isMoreButton && !IconComponent && (\n <div className={styles.icons}>\n {service.slice(0, ICONS_MAX).map((item) => {\n const Icon =\n mode === 'tertiary'\n ? ICON_MAP[item]?.tertiary[state]\n : ICON_MAP[item]?.secondary[state];\n return (\n <div key={item} className={styles[`icon-${item}`]}>\n {Icon && <Icon data-qa={`branded-button-icon-${item}`} />}\n </div>\n );\n })}\n {service.length > ICONS_MAX && (\n <Text typography=\"subtitle-1-semibold\">+ {service.length - ICONS_MAX}</Text>\n )}\n </div>\n )}\n {loading && (\n <span className={styles.loader}>\n <Loader size={24} />\n </span>\n )}\n </div>\n </Element>\n );\n};\n\nexport const BrandedButton = forwardRef(BrandedButtonComponent) as PolymorphicComponentWithRef<\n BrandedButtonProps,\n 'button'\n>;\n"],"names":[
|
|
1
|
+
{"version":3,"file":"BrandedButton.js","sources":["src/BrandedButton.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport classnames from 'classnames';\n\nimport { useDisabled } from '@hh.ru/magritte-common-use-disabled';\nimport type { PolymorphicForwardRefRenderFunc, PolymorphicComponentWithRef } from '@hh.ru/magritte-types';\nimport { SERVICE_ICON_MAP, SERVICE_ONLY_ICON_MAP } from '@hh.ru/magritte-ui-branded-button/icons';\nimport type { BrandedButtonProps } from '@hh.ru/magritte-ui-branded-button/types';\nimport { Loader } from '@hh.ru/magritte-ui-loader';\nimport { Text } from '@hh.ru/magritte-ui-typography';\n\nimport styles from './branded-button.less';\n\nconst ICONS_MAX = 2;\n\nconst BrandedButtonComponent: PolymorphicForwardRefRenderFunc<BrandedButtonProps, 'button'> = (\n {\n Element = 'button',\n service: _service,\n size = 'medium',\n mode = 'primary',\n 'data-qa': dataQa = 'branded-button',\n disabled,\n loading,\n children,\n ...restProps\n },\n ref\n) => {\n const ICON_MAP = children ? SERVICE_ICON_MAP : SERVICE_ONLY_ICON_MAP;\n const service = Array.isArray(_service) && _service.length === 1 ? _service[0] : _service;\n const isMoreButton = Array.isArray(service);\n const forceDisabled = useDisabled();\n const isComponentDisabled = disabled || forceDisabled;\n const state = isComponentDisabled ? 'disabled' : 'default';\n const IconComponent = isMoreButton ? ICON_MAP.more?.[mode][state] : ICON_MAP[service]?.[mode][state];\n const serviceClass = (isMoreButton ? `more-${mode}` : `${service}-${mode}`) as keyof typeof styles;\n const additionalAttributes: Record<string, unknown> = {\n 'data-qa': dataQa,\n };\n\n if (Element === 'button') {\n additionalAttributes.type = 'button';\n }\n\n if (ref) {\n additionalAttributes.ref = ref;\n }\n\n return (\n <Element\n {...additionalAttributes}\n {...restProps}\n disabled={isComponentDisabled}\n tabIndex={isComponentDisabled || loading ? -1 : 0}\n className={classnames(styles.brandedButton, styles[size], serviceClass && styles[serviceClass], {\n [styles.withLabel]: !!children,\n [styles.withoutLabel]: !children,\n [styles.disabled]: isComponentDisabled,\n [styles.withLoading]: loading,\n })}\n >\n <div className={classnames(styles.content)}>\n {children && (\n <span className={styles.label}>\n <Text Element=\"span\" typography=\"subtitle-1-semibold\">\n {children}\n </Text>\n </span>\n )}\n {IconComponent && (\n <span className={styles.icon}>\n <IconComponent data-qa={`branded-button-icon-${isMoreButton ? 'more' : service}`} />\n </span>\n )}\n {isMoreButton && !IconComponent && (\n <div className={styles.icons}>\n {service.slice(0, ICONS_MAX).map((item) => {\n const Icon =\n mode === 'tertiary'\n ? ICON_MAP[item]?.tertiary[state]\n : ICON_MAP[item]?.secondary[state];\n return (\n <div key={item} className={styles[`icon-${item}`]}>\n {Icon && <Icon data-qa={`branded-button-icon-${item}`} />}\n </div>\n );\n })}\n {service.length > ICONS_MAX && (\n <Text typography=\"subtitle-1-semibold\">+ {service.length - ICONS_MAX}</Text>\n )}\n </div>\n )}\n {loading && (\n <span className={styles.loader}>\n <Loader size={24} />\n </span>\n )}\n </div>\n </Element>\n );\n};\n\nexport const BrandedButton = forwardRef(BrandedButtonComponent) as PolymorphicComponentWithRef<\n BrandedButtonProps,\n 'button'\n>;\n"],"names":[],"mappings":";;;;;;;;;;;;AAYA,MAAM,SAAY,GAAA,CAAA,CAAA;AAElB,MAAM,yBAAwF,CAC1F;AAAA,EACI,OAAU,GAAA,QAAA;AAAA,EACV,OAAS,EAAA,QAAA;AAAA,EACT,IAAO,GAAA,QAAA;AAAA,EACP,IAAO,GAAA,SAAA;AAAA,EACP,WAAW,MAAS,GAAA,gBAAA;AAAA,EACpB,QAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,GAAG,SAAA;AACP,CAAA,EACA,GACC,KAAA;AACD,EAAM,MAAA,QAAA,GAAW,WAAW,gBAAmB,GAAA,qBAAA,CAAA;AAC/C,EAAM,MAAA,OAAA,GAAU,KAAM,CAAA,OAAA,CAAQ,QAAQ,CAAA,IAAK,SAAS,MAAW,KAAA,CAAA,GAAI,QAAS,CAAA,CAAC,CAAI,GAAA,QAAA,CAAA;AACjF,EAAM,MAAA,YAAA,GAAe,KAAM,CAAA,OAAA,CAAQ,OAAO,CAAA,CAAA;AAC1C,EAAA,MAAM,gBAAgB,WAAY,EAAA,CAAA;AAClC,EAAA,MAAM,sBAAsB,QAAY,IAAA,aAAA,CAAA;AACxC,EAAM,MAAA,KAAA,GAAQ,sBAAsB,UAAa,GAAA,SAAA,CAAA;AACjD,EAAA,MAAM,aAAgB,GAAA,YAAA,GAAe,QAAS,CAAA,IAAA,GAAO,IAAI,CAAA,CAAE,KAAK,CAAA,GAAI,QAAS,CAAA,OAAO,CAAI,GAAA,IAAI,EAAE,KAAK,CAAA,CAAA;AACnG,EAAM,MAAA,YAAA,GAAgB,eAAe,CAAQ,KAAA,EAAA,IAAI,KAAK,CAAG,EAAA,OAAO,IAAI,IAAI,CAAA,CAAA,CAAA;AACxE,EAAA,MAAM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
package/icons.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BrandedButtonService, BrandedButtonMode } from '
|
|
1
|
+
import { BrandedButtonService, BrandedButtonMode } from './types';
|
|
2
2
|
import { IconWrapperComponentSize24 } from '@hh.ru/magritte-ui-icon';
|
|
3
3
|
type Map = Partial<Record<BrandedButtonService | 'more', Record<BrandedButtonMode, Record<'default' | 'disabled', IconWrapperComponentSize24>>>>;
|
|
4
4
|
export declare const SERVICE_ICON_MAP: Map;
|
package/icons.js
CHANGED
|
@@ -3,135 +3,135 @@ import { EllipsisHorizontalOutlinedSize24 } from '@hh.ru/magritte-ui-icon/varian
|
|
|
3
3
|
import { AppleBrandAltSize24, AppleSolidSize24, AppleBrandSize24, VkSquareBrandAltSize24, VkSquareSolidSize24, VkSquareBrandSize24, GoogleBrandSize24, GoogleSolidSize24, MailBrandAltSize24, MailSolidSize24, MailBrandSize24, OkBrandAltSize24, OkSolidSize24, OkBrandSize24, EsiaBrandAltSize24, EsiaSolidSize24, EsiaBrandSize24, TinkoffIdBrandSize24, TinkoffIdSolidSize24, YandexBrandAltSize24, YandexSolidSize24, YandexBrandSize24 } from '@hh.ru/magritte-ui-icon/variants/service';
|
|
4
4
|
|
|
5
5
|
const SERVICE_ICON_MAP = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
secondary: {
|
|
12
|
-
default: AppleBrandSize24,
|
|
13
|
-
disabled: AppleSolidSize24,
|
|
14
|
-
},
|
|
15
|
-
tertiary: {
|
|
16
|
-
default: AppleSolidSize24,
|
|
17
|
-
disabled: AppleSolidSize24,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
vk: {
|
|
21
|
-
primary: {
|
|
22
|
-
default: VkSquareBrandAltSize24,
|
|
23
|
-
disabled: VkSquareSolidSize24,
|
|
24
|
-
},
|
|
25
|
-
secondary: {
|
|
26
|
-
default: VkSquareBrandSize24,
|
|
27
|
-
disabled: VkSquareSolidSize24,
|
|
28
|
-
},
|
|
29
|
-
tertiary: {
|
|
30
|
-
default: VkSquareSolidSize24,
|
|
31
|
-
disabled: VkSquareSolidSize24,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
google: {
|
|
35
|
-
primary: {
|
|
36
|
-
default: GoogleBrandSize24,
|
|
37
|
-
disabled: GoogleSolidSize24,
|
|
38
|
-
},
|
|
39
|
-
secondary: {
|
|
40
|
-
default: GoogleBrandSize24,
|
|
41
|
-
disabled: GoogleSolidSize24,
|
|
42
|
-
},
|
|
43
|
-
tertiary: {
|
|
44
|
-
default: GoogleSolidSize24,
|
|
45
|
-
disabled: GoogleSolidSize24,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
mail: {
|
|
49
|
-
primary: {
|
|
50
|
-
default: MailBrandAltSize24,
|
|
51
|
-
disabled: MailSolidSize24,
|
|
52
|
-
},
|
|
53
|
-
secondary: {
|
|
54
|
-
default: MailBrandSize24,
|
|
55
|
-
disabled: MailSolidSize24,
|
|
56
|
-
},
|
|
57
|
-
tertiary: {
|
|
58
|
-
default: MailSolidSize24,
|
|
59
|
-
disabled: MailSolidSize24,
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
ok: {
|
|
63
|
-
primary: {
|
|
64
|
-
default: OkBrandAltSize24,
|
|
65
|
-
disabled: OkSolidSize24,
|
|
66
|
-
},
|
|
67
|
-
secondary: {
|
|
68
|
-
default: OkBrandSize24,
|
|
69
|
-
disabled: OkSolidSize24,
|
|
70
|
-
},
|
|
71
|
-
tertiary: {
|
|
72
|
-
default: OkSolidSize24,
|
|
73
|
-
disabled: OkSolidSize24,
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
esia: {
|
|
77
|
-
primary: {
|
|
78
|
-
default: EsiaBrandAltSize24,
|
|
79
|
-
disabled: EsiaSolidSize24,
|
|
80
|
-
},
|
|
81
|
-
secondary: {
|
|
82
|
-
default: EsiaBrandSize24,
|
|
83
|
-
disabled: EsiaSolidSize24,
|
|
84
|
-
},
|
|
85
|
-
tertiary: {
|
|
86
|
-
default: EsiaSolidSize24,
|
|
87
|
-
disabled: EsiaSolidSize24,
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
't-bank': {
|
|
91
|
-
primary: {
|
|
92
|
-
default: TinkoffIdBrandSize24,
|
|
93
|
-
disabled: TinkoffIdSolidSize24,
|
|
94
|
-
},
|
|
95
|
-
secondary: {
|
|
96
|
-
default: TinkoffIdBrandSize24,
|
|
97
|
-
disabled: TinkoffIdSolidSize24,
|
|
98
|
-
},
|
|
99
|
-
tertiary: {
|
|
100
|
-
default: TinkoffIdSolidSize24,
|
|
101
|
-
disabled: TinkoffIdSolidSize24,
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
yandex: {
|
|
105
|
-
primary: {
|
|
106
|
-
default: YandexBrandAltSize24,
|
|
107
|
-
disabled: YandexSolidSize24,
|
|
108
|
-
},
|
|
109
|
-
secondary: {
|
|
110
|
-
default: YandexBrandSize24,
|
|
111
|
-
disabled: YandexSolidSize24,
|
|
112
|
-
},
|
|
113
|
-
tertiary: {
|
|
114
|
-
default: YandexSolidSize24,
|
|
115
|
-
disabled: YandexSolidSize24,
|
|
116
|
-
},
|
|
6
|
+
apple: {
|
|
7
|
+
primary: {
|
|
8
|
+
default: AppleBrandAltSize24,
|
|
9
|
+
disabled: AppleSolidSize24
|
|
117
10
|
},
|
|
11
|
+
secondary: {
|
|
12
|
+
default: AppleBrandSize24,
|
|
13
|
+
disabled: AppleSolidSize24
|
|
14
|
+
},
|
|
15
|
+
tertiary: {
|
|
16
|
+
default: AppleSolidSize24,
|
|
17
|
+
disabled: AppleSolidSize24
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
vk: {
|
|
21
|
+
primary: {
|
|
22
|
+
default: VkSquareBrandAltSize24,
|
|
23
|
+
disabled: VkSquareSolidSize24
|
|
24
|
+
},
|
|
25
|
+
secondary: {
|
|
26
|
+
default: VkSquareBrandSize24,
|
|
27
|
+
disabled: VkSquareSolidSize24
|
|
28
|
+
},
|
|
29
|
+
tertiary: {
|
|
30
|
+
default: VkSquareSolidSize24,
|
|
31
|
+
disabled: VkSquareSolidSize24
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
google: {
|
|
35
|
+
primary: {
|
|
36
|
+
default: GoogleBrandSize24,
|
|
37
|
+
disabled: GoogleSolidSize24
|
|
38
|
+
},
|
|
39
|
+
secondary: {
|
|
40
|
+
default: GoogleBrandSize24,
|
|
41
|
+
disabled: GoogleSolidSize24
|
|
42
|
+
},
|
|
43
|
+
tertiary: {
|
|
44
|
+
default: GoogleSolidSize24,
|
|
45
|
+
disabled: GoogleSolidSize24
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
mail: {
|
|
49
|
+
primary: {
|
|
50
|
+
default: MailBrandAltSize24,
|
|
51
|
+
disabled: MailSolidSize24
|
|
52
|
+
},
|
|
53
|
+
secondary: {
|
|
54
|
+
default: MailBrandSize24,
|
|
55
|
+
disabled: MailSolidSize24
|
|
56
|
+
},
|
|
57
|
+
tertiary: {
|
|
58
|
+
default: MailSolidSize24,
|
|
59
|
+
disabled: MailSolidSize24
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
ok: {
|
|
63
|
+
primary: {
|
|
64
|
+
default: OkBrandAltSize24,
|
|
65
|
+
disabled: OkSolidSize24
|
|
66
|
+
},
|
|
67
|
+
secondary: {
|
|
68
|
+
default: OkBrandSize24,
|
|
69
|
+
disabled: OkSolidSize24
|
|
70
|
+
},
|
|
71
|
+
tertiary: {
|
|
72
|
+
default: OkSolidSize24,
|
|
73
|
+
disabled: OkSolidSize24
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
esia: {
|
|
77
|
+
primary: {
|
|
78
|
+
default: EsiaBrandAltSize24,
|
|
79
|
+
disabled: EsiaSolidSize24
|
|
80
|
+
},
|
|
81
|
+
secondary: {
|
|
82
|
+
default: EsiaBrandSize24,
|
|
83
|
+
disabled: EsiaSolidSize24
|
|
84
|
+
},
|
|
85
|
+
tertiary: {
|
|
86
|
+
default: EsiaSolidSize24,
|
|
87
|
+
disabled: EsiaSolidSize24
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"t-bank": {
|
|
91
|
+
primary: {
|
|
92
|
+
default: TinkoffIdBrandSize24,
|
|
93
|
+
disabled: TinkoffIdSolidSize24
|
|
94
|
+
},
|
|
95
|
+
secondary: {
|
|
96
|
+
default: TinkoffIdBrandSize24,
|
|
97
|
+
disabled: TinkoffIdSolidSize24
|
|
98
|
+
},
|
|
99
|
+
tertiary: {
|
|
100
|
+
default: TinkoffIdSolidSize24,
|
|
101
|
+
disabled: TinkoffIdSolidSize24
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
yandex: {
|
|
105
|
+
primary: {
|
|
106
|
+
default: YandexBrandAltSize24,
|
|
107
|
+
disabled: YandexSolidSize24
|
|
108
|
+
},
|
|
109
|
+
secondary: {
|
|
110
|
+
default: YandexBrandSize24,
|
|
111
|
+
disabled: YandexSolidSize24
|
|
112
|
+
},
|
|
113
|
+
tertiary: {
|
|
114
|
+
default: YandexSolidSize24,
|
|
115
|
+
disabled: YandexSolidSize24
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
118
|
};
|
|
119
119
|
const SERVICE_ONLY_ICON_MAP = {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
tertiary: {
|
|
131
|
-
default: EllipsisHorizontalOutlinedSize24,
|
|
132
|
-
disabled: EllipsisHorizontalOutlinedSize24,
|
|
133
|
-
},
|
|
120
|
+
...SERVICE_ICON_MAP,
|
|
121
|
+
more: {
|
|
122
|
+
primary: {
|
|
123
|
+
default: EllipsisHorizontalOutlinedSize24,
|
|
124
|
+
disabled: EllipsisHorizontalOutlinedSize24
|
|
125
|
+
},
|
|
126
|
+
secondary: {
|
|
127
|
+
default: EllipsisHorizontalOutlinedSize24,
|
|
128
|
+
disabled: EllipsisHorizontalOutlinedSize24
|
|
134
129
|
},
|
|
130
|
+
tertiary: {
|
|
131
|
+
default: EllipsisHorizontalOutlinedSize24,
|
|
132
|
+
disabled: EllipsisHorizontalOutlinedSize24
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
export { SERVICE_ICON_MAP, SERVICE_ONLY_ICON_MAP };
|
package/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sources":["src/icons.tsx"],"sourcesContent":["import { BrandedButtonService, BrandedButtonMode } from '@hh.ru/magritte-ui-branded-button/types';\nimport { IconWrapperComponentSize24 } from '@hh.ru/magritte-ui-icon';\nimport { EllipsisHorizontalOutlinedSize24 } from '@hh.ru/magritte-ui-icon/variants/icon';\nimport {\n AppleBrandAltSize24,\n AppleBrandSize24,\n AppleSolidSize24,\n VkSquareBrandAltSize24,\n GoogleBrandSize24,\n GoogleSolidSize24,\n MailBrandAltSize24,\n MailSolidSize24,\n OkBrandAltSize24,\n OkBrandSize24,\n OkSolidSize24,\n EsiaBrandAltSize24,\n EsiaBrandSize24,\n EsiaSolidSize24,\n TinkoffIdBrandSize24,\n TinkoffIdSolidSize24,\n YandexBrandAltSize24,\n YandexBrandSize24,\n YandexSolidSize24,\n VkSquareSolidSize24,\n VkSquareBrandSize24,\n MailBrandSize24,\n} from '@hh.ru/magritte-ui-icon/variants/service';\n\ntype Map = Partial<\n Record<\n BrandedButtonService | 'more',\n Record<BrandedButtonMode, Record<'default' | 'disabled', IconWrapperComponentSize24>>\n >\n>;\n\nexport const SERVICE_ICON_MAP: Map = {\n apple: {\n primary: {\n default: AppleBrandAltSize24,\n disabled: AppleSolidSize24,\n },\n secondary: {\n default: AppleBrandSize24,\n disabled: AppleSolidSize24,\n },\n tertiary: {\n default: AppleSolidSize24,\n disabled: AppleSolidSize24,\n },\n },\n vk: {\n primary: {\n default: VkSquareBrandAltSize24,\n disabled: VkSquareSolidSize24,\n },\n secondary: {\n default: VkSquareBrandSize24,\n disabled: VkSquareSolidSize24,\n },\n tertiary: {\n default: VkSquareSolidSize24,\n disabled: VkSquareSolidSize24,\n },\n },\n google: {\n primary: {\n default: GoogleBrandSize24,\n disabled: GoogleSolidSize24,\n },\n secondary: {\n default: GoogleBrandSize24,\n disabled: GoogleSolidSize24,\n },\n tertiary: {\n default: GoogleSolidSize24,\n disabled: GoogleSolidSize24,\n },\n },\n mail: {\n primary: {\n default: MailBrandAltSize24,\n disabled: MailSolidSize24,\n },\n secondary: {\n default: MailBrandSize24,\n disabled: MailSolidSize24,\n },\n tertiary: {\n default: MailSolidSize24,\n disabled: MailSolidSize24,\n },\n },\n ok: {\n primary: {\n default: OkBrandAltSize24,\n disabled: OkSolidSize24,\n },\n secondary: {\n default: OkBrandSize24,\n disabled: OkSolidSize24,\n },\n tertiary: {\n default: OkSolidSize24,\n disabled: OkSolidSize24,\n },\n },\n esia: {\n primary: {\n default: EsiaBrandAltSize24,\n disabled: EsiaSolidSize24,\n },\n secondary: {\n default: EsiaBrandSize24,\n disabled: EsiaSolidSize24,\n },\n tertiary: {\n default: EsiaSolidSize24,\n disabled: EsiaSolidSize24,\n },\n },\n 't-bank': {\n primary: {\n default: TinkoffIdBrandSize24,\n disabled: TinkoffIdSolidSize24,\n },\n secondary: {\n default: TinkoffIdBrandSize24,\n disabled: TinkoffIdSolidSize24,\n },\n tertiary: {\n default: TinkoffIdSolidSize24,\n disabled: TinkoffIdSolidSize24,\n },\n },\n yandex: {\n primary: {\n default: YandexBrandAltSize24,\n disabled: YandexSolidSize24,\n },\n secondary: {\n default: YandexBrandSize24,\n disabled: YandexSolidSize24,\n },\n tertiary: {\n default: YandexSolidSize24,\n disabled: YandexSolidSize24,\n },\n },\n};\n\nexport const SERVICE_ONLY_ICON_MAP: Map = {\n ...SERVICE_ICON_MAP,\n more: {\n primary: {\n default: EllipsisHorizontalOutlinedSize24,\n disabled: EllipsisHorizontalOutlinedSize24,\n },\n secondary: {\n default: EllipsisHorizontalOutlinedSize24,\n disabled: EllipsisHorizontalOutlinedSize24,\n },\n tertiary: {\n default: EllipsisHorizontalOutlinedSize24,\n disabled: EllipsisHorizontalOutlinedSize24,\n },\n },\n};\n"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"icons.js","sources":["src/icons.tsx"],"sourcesContent":["import { BrandedButtonService, BrandedButtonMode } from '@hh.ru/magritte-ui-branded-button/types';\nimport { IconWrapperComponentSize24 } from '@hh.ru/magritte-ui-icon';\nimport { EllipsisHorizontalOutlinedSize24 } from '@hh.ru/magritte-ui-icon/variants/icon';\nimport {\n AppleBrandAltSize24,\n AppleBrandSize24,\n AppleSolidSize24,\n VkSquareBrandAltSize24,\n GoogleBrandSize24,\n GoogleSolidSize24,\n MailBrandAltSize24,\n MailSolidSize24,\n OkBrandAltSize24,\n OkBrandSize24,\n OkSolidSize24,\n EsiaBrandAltSize24,\n EsiaBrandSize24,\n EsiaSolidSize24,\n TinkoffIdBrandSize24,\n TinkoffIdSolidSize24,\n YandexBrandAltSize24,\n YandexBrandSize24,\n YandexSolidSize24,\n VkSquareSolidSize24,\n VkSquareBrandSize24,\n MailBrandSize24,\n} from '@hh.ru/magritte-ui-icon/variants/service';\n\ntype Map = Partial<\n Record<\n BrandedButtonService | 'more',\n Record<BrandedButtonMode, Record<'default' | 'disabled', IconWrapperComponentSize24>>\n >\n>;\n\nexport const SERVICE_ICON_MAP: Map = {\n apple: {\n primary: {\n default: AppleBrandAltSize24,\n disabled: AppleSolidSize24,\n },\n secondary: {\n default: AppleBrandSize24,\n disabled: AppleSolidSize24,\n },\n tertiary: {\n default: AppleSolidSize24,\n disabled: AppleSolidSize24,\n },\n },\n vk: {\n primary: {\n default: VkSquareBrandAltSize24,\n disabled: VkSquareSolidSize24,\n },\n secondary: {\n default: VkSquareBrandSize24,\n disabled: VkSquareSolidSize24,\n },\n tertiary: {\n default: VkSquareSolidSize24,\n disabled: VkSquareSolidSize24,\n },\n },\n google: {\n primary: {\n default: GoogleBrandSize24,\n disabled: GoogleSolidSize24,\n },\n secondary: {\n default: GoogleBrandSize24,\n disabled: GoogleSolidSize24,\n },\n tertiary: {\n default: GoogleSolidSize24,\n disabled: GoogleSolidSize24,\n },\n },\n mail: {\n primary: {\n default: MailBrandAltSize24,\n disabled: MailSolidSize24,\n },\n secondary: {\n default: MailBrandSize24,\n disabled: MailSolidSize24,\n },\n tertiary: {\n default: MailSolidSize24,\n disabled: MailSolidSize24,\n },\n },\n ok: {\n primary: {\n default: OkBrandAltSize24,\n disabled: OkSolidSize24,\n },\n secondary: {\n default: OkBrandSize24,\n disabled: OkSolidSize24,\n },\n tertiary: {\n default: OkSolidSize24,\n disabled: OkSolidSize24,\n },\n },\n esia: {\n primary: {\n default: EsiaBrandAltSize24,\n disabled: EsiaSolidSize24,\n },\n secondary: {\n default: EsiaBrandSize24,\n disabled: EsiaSolidSize24,\n },\n tertiary: {\n default: EsiaSolidSize24,\n disabled: EsiaSolidSize24,\n },\n },\n 't-bank': {\n primary: {\n default: TinkoffIdBrandSize24,\n disabled: TinkoffIdSolidSize24,\n },\n secondary: {\n default: TinkoffIdBrandSize24,\n disabled: TinkoffIdSolidSize24,\n },\n tertiary: {\n default: TinkoffIdSolidSize24,\n disabled: TinkoffIdSolidSize24,\n },\n },\n yandex: {\n primary: {\n default: YandexBrandAltSize24,\n disabled: YandexSolidSize24,\n },\n secondary: {\n default: YandexBrandSize24,\n disabled: YandexSolidSize24,\n },\n tertiary: {\n default: YandexSolidSize24,\n disabled: YandexSolidSize24,\n },\n },\n};\n\nexport const SERVICE_ONLY_ICON_MAP: Map = {\n ...SERVICE_ICON_MAP,\n more: {\n primary: {\n default: EllipsisHorizontalOutlinedSize24,\n disabled: EllipsisHorizontalOutlinedSize24,\n },\n secondary: {\n default: EllipsisHorizontalOutlinedSize24,\n disabled: EllipsisHorizontalOutlinedSize24,\n },\n tertiary: {\n default: EllipsisHorizontalOutlinedSize24,\n disabled: EllipsisHorizontalOutlinedSize24,\n },\n },\n};\n"],"names":[],"mappings":";;;AAmCO,MAAM,gBAAwB,GAAA;AAAA,EACjC,KAAO,EAAA;AAAA,IACH,OAAS,EAAA;AAAA,MACL,OAAS,EAAA,mBAAA;AAAA,MACT,QAAU,EAAA,gBAAA;AAAA,KACd;AAAA,IACA,SAAW,EAAA;AAAA,MACP,OAAS,EAAA,gBAAA;AAAA,MACT,QAAU,EAAA,gBAAA;AAAA,KACd;AAAA,IACA,QAAU,EAAA;AAAA,MACN,OAAS,EAAA,gBAAA;AAAA,MACT,QAAU,EAAA,gBAAA;AAAA,KACd;AAAA,GACJ;AAAA,EACA,EAAI,EAAA;AAAA,IACA,OAAS,EAAA;AAAA,MACL,OAAS,EAAA,sBAAA;AAAA,MACT,QAAU,EAAA,mBAAA;AAAA,KACd;AAAA,IACA,SAAW,EAAA;AAAA,MACP,OAAS,EAAA,mBAAA;AAAA,MACT,QAAU,EAAA,mBAAA;AAAA,KACd;AAAA,IACA,QAAU,EAAA;AAAA,MACN,OAAS,EAAA,mBAAA;AAAA,MACT,QAAU,EAAA,mBAAA;AAAA,KACd;AAAA,GACJ;AAAA,EACA,MAAQ,EAAA;AAAA,IACJ,OAAS,EAAA;AAAA,MACL,OAAS,EAAA,iBAAA;AAAA,MACT,QAAU,EAAA,iBAAA;AAAA,KACd;AAAA,IACA,SAAW,EAAA;AAAA,MACP,OAAS,EAAA,iBAAA;AAAA,MACT,QAAU,EAAA,iBAAA;AAAA,KACd;AAAA,IACA,QAAU,EAAA;AAAA,MACN,OAAS,EAAA,iBAAA;AAAA,MACT,QAAU,EAAA,iBAAA;AAAA,KACd;AAAA,GACJ;AAAA,EACA,IAAM,EAAA;AAAA,IACF,OAAS,EAAA;AAAA,MACL,OAAS,EAAA,kBAAA;AAAA,MACT,QAAU,EAAA,eAAA;AAAA,KACd;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