@hh.ru/magritte-ui-link 5.0.16 → 5.0.18
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/Link.js +3 -3
- package/Link.js.map +1 -1
- package/VerticallyCenteredIcon.js +1 -1
- package/index.css +1038 -1038
- package/package.json +6 -6
- package/types.d.ts +2 -0
- package/types.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-link",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.18",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@hh.ru/magritte-common-keyboard": "4.1.2",
|
|
23
23
|
"@hh.ru/magritte-common-use-disabled": "1.0.12",
|
|
24
|
-
"@hh.ru/magritte-design-tokens": "21.4.
|
|
24
|
+
"@hh.ru/magritte-design-tokens": "21.4.6",
|
|
25
25
|
"@hh.ru/magritte-types": "5.0.3",
|
|
26
|
-
"@hh.ru/magritte-ui-icon": "11.0.
|
|
27
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
28
|
-
"@hh.ru/magritte-ui-typography": "3.0.
|
|
26
|
+
"@hh.ru/magritte-ui-icon": "11.0.5",
|
|
27
|
+
"@hh.ru/magritte-ui-theme-provider": "1.1.48",
|
|
28
|
+
"@hh.ru/magritte-ui-typography": "3.0.39"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"classnames": ">=2.3.2",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "262c3a6147cbd372187e5f86c28d93f7c462b502"
|
|
38
38
|
}
|
package/types.d.ts
CHANGED
|
@@ -30,5 +30,7 @@ export interface LinkProps {
|
|
|
30
30
|
enableVisited?: boolean;
|
|
31
31
|
/** Включает подчеркивание */
|
|
32
32
|
underlined?: boolean;
|
|
33
|
+
/** Значение CSS-свойства overflow-wrap */
|
|
34
|
+
overflowWrap?: 'anywhere' | 'normal' | 'break-word';
|
|
33
35
|
}
|
|
34
36
|
export declare const isLinkComponent: (component: React.ReactElement) => component is React.ReactElement<LinkProps>;
|
package/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../src/types.ts"],"sourcesContent":["import { isValidElement, ReactElement } from 'react';\n\nimport { TextTypography, HeadersTypography } from '@hh.ru/magritte-ui-typography';\n\nexport type LinkStyle = 'neutral' | 'accent' | 'positive' | 'negative' | 'warning' | 'contrast';\nexport type LinkMode = 'primary' | 'secondary' | 'tertiary';\n\nexport interface LinkProps {\n children?: React.ReactNode;\n /** Кастомный элемент для линка */\n Element: 'a' | 'button';\n /** Расположение ссылки в тексте */\n inline?: boolean;\n /** Стиль компонента в зависимости от назначения */\n style?: LinkStyle;\n /** Режим заливки цветом */\n mode?: LinkMode;\n /** Отображение иконки с левой стороны ссылки */\n iconLeft?: ReactElement;\n /** Отображение иконки с правой стороны ссылки */\n iconRight?: ReactElement;\n /** Ссылка перестает реагировать на любое взаимодействие */\n disabled?: boolean;\n /** Типография */\n typography?: TextTypography | HeadersTypography;\n /** Ссылка */\n href?: string;\n /** Кастомный data-qa для тестирования */\n 'data-qa'?: string;\n /** Вспомогательный лейбл для скринридеров */\n 'aria-label'?: string;\n /** Флаг включения visited состояния */\n enableVisited?: boolean;\n /** Включает подчеркивание */\n underlined?: boolean;\n}\n\nexport const isLinkComponent = (component: React.ReactElement): component is React.ReactElement<LinkProps> => {\n return isValidElement(component) && typeof component.type !== 'string' && 'isLink' in component?.type;\n};\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../src/types.ts"],"sourcesContent":["import { isValidElement, ReactElement } from 'react';\n\nimport { TextTypography, HeadersTypography } from '@hh.ru/magritte-ui-typography';\n\nexport type LinkStyle = 'neutral' | 'accent' | 'positive' | 'negative' | 'warning' | 'contrast';\nexport type LinkMode = 'primary' | 'secondary' | 'tertiary';\n\nexport interface LinkProps {\n children?: React.ReactNode;\n /** Кастомный элемент для линка */\n Element: 'a' | 'button';\n /** Расположение ссылки в тексте */\n inline?: boolean;\n /** Стиль компонента в зависимости от назначения */\n style?: LinkStyle;\n /** Режим заливки цветом */\n mode?: LinkMode;\n /** Отображение иконки с левой стороны ссылки */\n iconLeft?: ReactElement;\n /** Отображение иконки с правой стороны ссылки */\n iconRight?: ReactElement;\n /** Ссылка перестает реагировать на любое взаимодействие */\n disabled?: boolean;\n /** Типография */\n typography?: TextTypography | HeadersTypography;\n /** Ссылка */\n href?: string;\n /** Кастомный data-qa для тестирования */\n 'data-qa'?: string;\n /** Вспомогательный лейбл для скринридеров */\n 'aria-label'?: string;\n /** Флаг включения visited состояния */\n enableVisited?: boolean;\n /** Включает подчеркивание */\n underlined?: boolean;\n /** Значение CSS-свойства overflow-wrap */\n overflowWrap?: 'anywhere' | 'normal' | 'break-word';\n}\n\nexport const isLinkComponent = (component: React.ReactElement): component is React.ReactElement<LinkProps> => {\n return isValidElement(component) && typeof component.type !== 'string' && 'isLink' in component?.type;\n};\n"],"names":[],"mappings":";;AAuCa,MAAA,eAAe,GAAG,CAAC,SAA6B,KAAgD;AACzG,IAAA,OAAO,cAAc,CAAC,SAAS,CAAC,IAAI,OAAO,SAAS,CAAC,IAAI,KAAK,QAAQ,IAAI,QAAQ,IAAI,SAAS,EAAE,IAAI,CAAC;AAC1G;;;;"}
|