@hh.ru/magritte-ui-link 7.1.6 → 7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-link",
3
- "version": "7.1.6",
3
+ "version": "7.1.7",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -19,12 +19,12 @@
19
19
  "watch": "yarn root:watch $(pwd)"
20
20
  },
21
21
  "dependencies": {
22
- "@hh.ru/magritte-common-keyboard": "4.3.0",
23
- "@hh.ru/magritte-common-use-disabled": "1.0.14",
24
- "@hh.ru/magritte-design-tokens": "24.4.0",
25
- "@hh.ru/magritte-types": "5.0.5",
26
- "@hh.ru/magritte-ui-icon": "13.11.0",
27
- "@hh.ru/magritte-ui-typography": "4.5.1"
22
+ "@hh.ru/magritte-common-keyboard": "4.3.1",
23
+ "@hh.ru/magritte-common-use-disabled": "1.0.15",
24
+ "@hh.ru/magritte-design-tokens": "24.4.1",
25
+ "@hh.ru/magritte-types": "5.0.6",
26
+ "@hh.ru/magritte-ui-icon": "13.11.1",
27
+ "@hh.ru/magritte-ui-typography": "4.5.2"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "classnames": ">=2.3.2",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "7cea3ac4f7f947bba409d2fbc29284343113c4ba"
36
+ "gitHead": "ec7d56f576ca5581c2acb5010b53bbfb8da52962"
37
37
  }
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 const LINK_STYLES = ['neutral', 'accent', 'positive', 'negative', 'warning', 'special', 'constant'] as const;\n\nexport type LinkStyle = (typeof LINK_STYLES)[number];\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":";;AAIa,MAAA,WAAW,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAW;AAqCvG,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;;;;"}
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 const LINK_STYLES = ['neutral', 'accent', 'positive', 'negative', 'warning', 'special', 'constant'] as const;\n\nexport type LinkStyle = (typeof LINK_STYLES)[number];\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":";;AAIa,MAAA,WAAW,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAW;AAqCvG,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;;;;"}