@hh.ru/magritte-ui-branded-button 1.1.7

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 ADDED
@@ -0,0 +1,2 @@
1
+ export * from './BrandedButton';
2
+ export * from './types';
package/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import './index.css';
2
+ export { BrandedButton } from './BrandedButton.js';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import 'classnames';
6
+ import '@hh.ru/magritte-common-use-disabled';
7
+ import './icons.js';
8
+ import '@hh.ru/magritte-ui-icon/variants/icon';
9
+ import '@hh.ru/magritte-ui-icon/variants/service';
10
+ import '@hh.ru/magritte-ui-typography';
11
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@hh.ru/magritte-ui-branded-button",
3
+ "version": "1.1.7",
4
+ "main": "index.js",
5
+ "types": "index.d.ts",
6
+ "sideEffects": [
7
+ "index.css"
8
+ ],
9
+ "scripts": {
10
+ "build": "yarn root:build $(pwd)",
11
+ "build-test-branch": "yarn root:build-test-branch $(pwd)",
12
+ "changelog": "yarn root:changelog $(pwd)",
13
+ "prepack": "yarn root:prepack $(pwd)",
14
+ "postpublish": "yarn root:postpublish $(pwd)",
15
+ "stylelint-test": "yarn root:stylelint-test $(pwd)",
16
+ "eslint-test": "yarn root:eslint-test $(pwd)",
17
+ "ts-config": "yarn root:ts-config $(pwd)",
18
+ "ts-check": "yarn root:ts-check $(pwd)",
19
+ "test": "jest $(pwd)"
20
+ },
21
+ "dependencies": {
22
+ "@hh.ru/magritte-common-use-disabled": "1.0.8",
23
+ "@hh.ru/magritte-design-tokens": "18.1.1",
24
+ "@hh.ru/magritte-types": "4.0.1",
25
+ "@hh.ru/magritte-ui-breakpoint": "4.0.1",
26
+ "@hh.ru/magritte-ui-icon": "7.1.3",
27
+ "@hh.ru/magritte-ui-mock-component": "1.0.10",
28
+ "@hh.ru/magritte-ui-theme-provider": "1.1.21",
29
+ "@hh.ru/magritte-ui-typography": "3.0.8"
30
+ },
31
+ "peerDependencies": {
32
+ "classnames": ">=2.3.2",
33
+ "react": ">=18.2.0"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "gitHead": "b660dd64fca3eaad5ec44ea9a73f92bb0d9694aa"
39
+ }
package/types.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export type BrandedButtonSize = 'medium' | 'large';
3
+ export type BrandedButtonMode = 'primary' | 'secondary' | 'tertiary';
4
+ declare const BRANDED_BUTTON_SERVICES: readonly ["apple", "vk", "google", "mail", "ok", "esia", "tinkoff", "yandex"];
5
+ export type BrandedButtonService = (typeof BRANDED_BUTTON_SERVICES)[number];
6
+ export type BrandedButtonProps = PropsWithChildren<{
7
+ /** Сервис или массив сервисов */
8
+ service: BrandedButtonService | BrandedButtonService[];
9
+ /** Размер */
10
+ size?: BrandedButtonSize;
11
+ /** Тип компонента */
12
+ mode?: BrandedButtonMode;
13
+ /** Кастомный компонент */
14
+ Element?: 'button' | 'a';
15
+ disabled?: boolean;
16
+ 'data-qa'?: string;
17
+ }>;
18
+ export {};
package/types.js ADDED
@@ -0,0 +1,3 @@
1
+ import './index.css';
2
+
3
+ //# sourceMappingURL=types.js.map
package/types.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}