@wireapp/react-ui-kit 8.1.0 → 8.4.0

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +36 -3
  2. package/package.json +4 -4
  3. package/src/Form/Button.d.js +4 -0
  4. package/src/Form/Button.d.ts +8 -0
  5. package/src/Form/Button.js +83 -20
  6. package/src/Form/Button.js.map +1 -1
  7. package/src/Form/Button.md +61 -2
  8. package/src/Form/Checkbox.js +44 -22
  9. package/src/Form/Checkbox.js.map +1 -1
  10. package/src/Form/CodeInput.js +10 -4
  11. package/src/Form/CodeInput.js.map +1 -1
  12. package/src/Form/CodeInput.md +9 -1
  13. package/src/Form/ErrorMessage.js +18 -12
  14. package/src/Form/ErrorMessage.js.map +1 -1
  15. package/src/Form/Form.md +23 -0
  16. package/src/Form/Input.d.ts +6 -2
  17. package/src/Form/Input.js +101 -16
  18. package/src/Form/Input.js.map +1 -1
  19. package/src/Form/InputBlock.js +7 -3
  20. package/src/Form/InputBlock.js.map +1 -1
  21. package/src/Form/InputLabel.d.js +2 -0
  22. package/src/Form/InputLabel.d.js.map +1 -0
  23. package/src/Form/InputLabel.d.ts +9 -0
  24. package/src/Form/InputLabel.js +47 -0
  25. package/src/Form/InputLabel.js.map +1 -0
  26. package/src/Form/InputLabel.md +33 -0
  27. package/src/Form/InputSubmitCombo.js +5 -4
  28. package/src/Form/InputSubmitCombo.js.map +1 -1
  29. package/src/Form/Select.d.ts +6 -2
  30. package/src/Form/Select.js +57 -12
  31. package/src/Form/Select.js.map +1 -1
  32. package/src/Form/Select.md +25 -4
  33. package/src/Form/TextArea.js +1 -1
  34. package/src/Form/TextArea.js.map +1 -1
  35. package/src/Form/index.d.js +13 -0
  36. package/src/Form/index.d.js.map +1 -1
  37. package/src/Form/index.d.ts +1 -0
  38. package/src/Form/index.js +13 -0
  39. package/src/Form/index.js.map +1 -1
  40. package/src/Icon/HideIcon.js +1 -1
  41. package/src/Icon/HideIcon.js.map +1 -1
  42. package/src/Icon/ShowIcon.js +1 -1
  43. package/src/Icon/ShowIcon.js.map +1 -1
  44. package/src/Identity/colors-v2.d.ts +1 -1
  45. package/src/Identity/colors-v2.js +3 -3
  46. package/src/Identity/colors-v2.js.map +1 -1
  47. package/src/Identity/colors-v2.md +1 -1
  48. package/src/Identity/index.d.js +13 -0
  49. package/src/Identity/index.d.js.map +1 -1
  50. package/src/Identity/index.d.ts +1 -0
  51. package/src/Identity/index.js +13 -0
  52. package/src/Identity/index.js.map +1 -1
  53. package/src/Layout/Theme.js +3 -1
  54. package/src/Layout/Theme.js.map +1 -1
  55. package/src/Misc/ButtonGroup.d.js +2 -0
  56. package/src/Misc/ButtonGroup.d.js.map +1 -0
  57. package/src/Misc/ButtonGroup.d.ts +14 -0
  58. package/src/Misc/ButtonGroup.js +113 -0
  59. package/src/Misc/ButtonGroup.js.map +1 -0
  60. package/src/Misc/ButtonGroup.md +27 -0
  61. package/src/Misc/IconButton.d.js +6 -0
  62. package/src/Misc/IconButton.d.js.map +1 -0
  63. package/src/Misc/IconButton.d.ts +15 -0
  64. package/src/Misc/IconButton.js +122 -0
  65. package/src/Misc/IconButton.js.map +1 -0
  66. package/src/Misc/IconButton.md +43 -0
  67. package/src/Misc/childrenWithDefaultProps.d.ts +1 -1
  68. package/src/Misc/index.d.js +26 -0
  69. package/src/Misc/index.d.js.map +1 -1
  70. package/src/Misc/index.d.ts +2 -0
  71. package/src/Misc/index.js +26 -0
  72. package/src/Misc/index.js.map +1 -1
  73. package/src/Text/Label.md +18 -18
  74. package/src/Text/TextLink.js +2 -2
  75. package/src/Text/TextLink.js.map +1 -1
@@ -4,6 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
+ var _ButtonGroup = require("./ButtonGroup");
8
+
9
+ Object.keys(_ButtonGroup).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _ButtonGroup[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _ButtonGroup[key];
16
+ }
17
+ });
18
+ });
19
+
7
20
  var _childrenWithDefaultProps = require("./childrenWithDefaultProps");
8
21
 
9
22
  Object.keys(_childrenWithDefaultProps).forEach(function (key) {
@@ -17,6 +30,19 @@ Object.keys(_childrenWithDefaultProps).forEach(function (key) {
17
30
  });
18
31
  });
19
32
 
33
+ var _IconButton = require("./IconButton");
34
+
35
+ Object.keys(_IconButton).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _IconButton[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function get() {
41
+ return _IconButton[key];
42
+ }
43
+ });
44
+ });
45
+
20
46
  var _IsInViewport = require("./IsInViewport");
21
47
 
22
48
  Object.keys(_IsInViewport).forEach(function (key) {
@@ -1 +1 @@
1
- {"version":3,"sources":["index.d.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from './childrenWithDefaultProps';\nexport * from './IsInViewport';\nexport * from './Loading';\nexport * from './Pagination';\nexport * from './Pill';\nexport * from './useLongTouch';\nexport * from './useTimeout';\n"],"file":"index.d.js"}
1
+ {"version":3,"sources":["index.d.ts"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from './ButtonGroup';\nexport * from './childrenWithDefaultProps';\nexport * from './IconButton';\nexport * from './IsInViewport';\nexport * from './Loading';\nexport * from './Pagination';\nexport * from './Pill';\nexport * from './useLongTouch';\nexport * from './useTimeout';\n"],"file":"index.d.js"}
@@ -1,4 +1,6 @@
1
+ export * from './ButtonGroup';
1
2
  export * from './childrenWithDefaultProps';
3
+ export * from './IconButton';
2
4
  export * from './IsInViewport';
3
5
  export * from './Loading';
4
6
  export * from './Pagination';
package/src/Misc/index.js CHANGED
@@ -4,6 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
+ var _ButtonGroup = require("./ButtonGroup");
8
+
9
+ Object.keys(_ButtonGroup).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _ButtonGroup[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _ButtonGroup[key];
16
+ }
17
+ });
18
+ });
19
+
7
20
  var _childrenWithDefaultProps = require("./childrenWithDefaultProps");
8
21
 
9
22
  Object.keys(_childrenWithDefaultProps).forEach(function (key) {
@@ -17,6 +30,19 @@ Object.keys(_childrenWithDefaultProps).forEach(function (key) {
17
30
  });
18
31
  });
19
32
 
33
+ var _IconButton = require("./IconButton");
34
+
35
+ Object.keys(_IconButton).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _IconButton[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function get() {
41
+ return _IconButton[key];
42
+ }
43
+ });
44
+ });
45
+
20
46
  var _IsInViewport = require("./IsInViewport");
21
47
 
22
48
  Object.keys(_IsInViewport).forEach(function (key) {
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAmBA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './childrenWithDefaultProps';\nexport * from './IsInViewport';\nexport * from './Loading';\nexport * from './Pagination';\nexport * from './Pill';\nexport * from './useLongTouch';\nexport * from './useTimeout';\n"],"file":"index.js"}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;AAmBA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './ButtonGroup';\nexport * from './childrenWithDefaultProps';\nexport * from './IconButton';\nexport * from './IsInViewport';\nexport * from './Loading';\nexport * from './Pagination';\nexport * from './Pill';\nexport * from './useLongTouch';\nexport * from './useTimeout';\n"],"file":"index.js"}
package/src/Text/Label.md CHANGED
@@ -4,7 +4,7 @@ Demo:
4
4
  import React from 'react';
5
5
  import {
6
6
  Container,
7
- Label,
7
+ InputLabel,
8
8
  LabelLink,
9
9
  InputSubmitCombo,
10
10
  RoundIconButton,
@@ -16,48 +16,48 @@ import {
16
16
  } from '@wireapp/react-ui-kit';
17
17
 
18
18
  <Container>
19
- <Label>Label</Label>
19
+ <InputLabel>InputLabel</InputLabel>
20
20
  <LabelLink block>LabelLink</LabelLink>
21
21
 
22
22
  <Line />
23
- <Label>
23
+ <InputLabel>
24
24
  <div style={{marginLeft: '16px'}}>{"I'm a label!"}</div>
25
25
  <Input placeholder="Focus me!" />
26
- </Label>
27
- <Label markInvalid>
26
+ </InputLabel>
27
+ <InputLabel markInvalid>
28
28
  <div style={{marginLeft: '16px'}}>{'Uh error!'}</div>
29
29
  <Input placeholder="Error" markInvalid />
30
- </Label>
30
+ </InputLabel>
31
31
 
32
- <Label>
32
+ <InputLabel>
33
33
  <div style={{marginLeft: '16px'}}>{'TextArea!'}</div>
34
34
  <TextArea placeholder="Text" />
35
- </Label>
35
+ </InputLabel>
36
36
 
37
- <Label markInvalid>
37
+ <InputLabel markInvalid>
38
38
  <div style={{marginLeft: '16px'}}>{'Uh error!'}</div>
39
39
  <TextArea placeholder="Text" markInvalid />
40
- </Label>
40
+ </InputLabel>
41
41
 
42
- <Label>
42
+ <InputLabel>
43
43
  <div style={{marginLeft: '16px'}}>{'Select!'}</div>
44
44
  <Select>
45
45
  <option>a</option>
46
46
  <option>b</option>
47
47
  <option>c</option>
48
48
  </Select>
49
- </Label>
49
+ </InputLabel>
50
50
 
51
- <Label markInvalid>
51
+ <InputLabel markInvalid>
52
52
  <div style={{marginLeft: '16px'}}>{'Uh error!'}</div>
53
53
  <Select markInvalid>
54
54
  <option>a</option>
55
55
  <option>b</option>
56
56
  <option>c</option>
57
57
  </Select>
58
- </Label>
58
+ </InputLabel>
59
59
 
60
- <Label>
60
+ <InputLabel>
61
61
  <div style={{marginLeft: '16px'}}>{'SubmitCombo label'}</div>
62
62
  <InputSubmitCombo>
63
63
  <Input placeholder="Input submit Combo" name="password" />
@@ -65,9 +65,9 @@ import {
65
65
  <ArrowIcon />
66
66
  </RoundIconButton>
67
67
  </InputSubmitCombo>
68
- </Label>
68
+ </InputLabel>
69
69
 
70
- <Label markInvalid>
70
+ <InputLabel markInvalid>
71
71
  <div style={{marginLeft: '16px'}}>{'SubmitCombo label'}</div>
72
72
  <InputSubmitCombo markInvalid>
73
73
  <Input placeholder="Input submit Combo" name="password" />
@@ -75,6 +75,6 @@ import {
75
75
  <ArrowIcon />
76
76
  </RoundIconButton>
77
77
  </InputSubmitCombo>
78
- </Label>
78
+ </InputLabel>
79
79
  </Container>;
80
80
  ```
@@ -15,7 +15,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
15
15
 
16
16
  var _react = require("@emotion/react");
17
17
 
18
- var _colors = require("../Identity/colors");
18
+ var _colorsV = require("../Identity/colors-v2");
19
19
 
20
20
  var _Link = require("./Link");
21
21
 
@@ -27,7 +27,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
27
27
 
28
28
  var textLinkStyle = function textLinkStyle(theme, _ref) {
29
29
  var _ref$color = _ref.color,
30
- color = _ref$color === void 0 ? _colors.COLOR.BLUE : _ref$color,
30
+ color = _ref$color === void 0 ? _colorsV.COLOR_V2.BLUE : _ref$color,
31
31
  _ref$fontSize = _ref.fontSize,
32
32
  fontSize = _ref$fontSize === void 0 ? '16px' : _ref$fontSize,
33
33
  _ref$bold = _ref.bold,
@@ -1 +1 @@
1
- {"version":3,"sources":["TextLink.tsx"],"names":["textLinkStyle","theme","color","COLOR","BLUE","fontSize","bold","textTransform","props","TextLink"],"mappings":";;;;;;;;;;;;;;;AAoBA;;AAEA;;AAEA;;;;;;;;AAIO,IAAMA,aAAsE,GAAG,SAAzEA,aAAyE,CACpFC,KADoF;AAAA,wBAEnFC,KAFmF;AAAA,MAEnFA,KAFmF,2BAE3EC,cAAMC,IAFqE;AAAA,2BAE/DC,QAF+D;AAAA,MAE/DA,QAF+D,8BAEpD,MAFoD;AAAA,uBAE5CC,IAF4C;AAAA,MAE5CA,IAF4C,0BAErC,KAFqC;AAAA,gCAE9BC,aAF8B;AAAA,MAE9BA,aAF8B,mCAEd,MAFc;AAAA,MAEHC,KAFG;AAAA,2BAIjF,qBAAUP,KAAV;AAAkBK,IAAAA,IAAI,EAAJA,IAAlB;AAAwBJ,IAAAA,KAAK,EAALA,KAAxB;AAA+BG,IAAAA,QAAQ,EAARA,QAA/B;AAAyCE,IAAAA,aAAa,EAAbA;AAAzC,KAA2DC,KAA3D,EAJiF;AAAA,CAA/E;;;;AAOA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,CAACD,KAAD;AAAA,SACtB;AAAG,IAAA,GAAG,EAAE,aAACP,KAAD;AAAA,aAAkBD,aAAa,CAACC,KAAD,EAAQO,KAAR,CAA/B;AAAA,KAAR;AAAuD,IAAA,GAAG,EAAC;AAA3D,KAAqF,2BAAgBA,KAAhB,CAArF,EADsB;AAAA,CAAjB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2019 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\n\nimport {COLOR} from '../Identity/colors';\nimport type {Theme} from '../Layout';\nimport {LinkProps, filterLinkProps, linkStyle} from './Link';\n\nexport type TextLinkProps<T = HTMLAnchorElement> = LinkProps<T>;\n\nexport const textLinkStyle: <T>(theme: Theme, props: TextLinkProps<T>) => CSSObject = (\n theme,\n {color = COLOR.BLUE, fontSize = '16px', bold = false, textTransform = 'none', ...props},\n) => ({\n ...linkStyle(theme, {bold, color, fontSize, textTransform, ...props}),\n});\n\nexport const TextLink = (props: TextLinkProps<HTMLAnchorElement>) => (\n <a css={(theme: Theme) => textLinkStyle(theme, props)} rel=\"noopener noreferrer\" {...filterLinkProps(props)} />\n);\n"],"file":"TextLink.js"}
1
+ {"version":3,"sources":["TextLink.tsx"],"names":["textLinkStyle","theme","color","COLOR_V2","BLUE","fontSize","bold","textTransform","props","TextLink"],"mappings":";;;;;;;;;;;;;;;AAoBA;;AAEA;;AAEA;;;;;;;;AAIO,IAAMA,aAAsE,GAAG,SAAzEA,aAAyE,CACpFC,KADoF;AAAA,wBAEnFC,KAFmF;AAAA,MAEnFA,KAFmF,2BAE3EC,kBAASC,IAFkE;AAAA,2BAE5DC,QAF4D;AAAA,MAE5DA,QAF4D,8BAEjD,MAFiD;AAAA,uBAEzCC,IAFyC;AAAA,MAEzCA,IAFyC,0BAElC,KAFkC;AAAA,gCAE3BC,aAF2B;AAAA,MAE3BA,aAF2B,mCAEX,MAFW;AAAA,MAEAC,KAFA;AAAA,2BAIjF,qBAAUP,KAAV;AAAkBK,IAAAA,IAAI,EAAJA,IAAlB;AAAwBJ,IAAAA,KAAK,EAALA,KAAxB;AAA+BG,IAAAA,QAAQ,EAARA,QAA/B;AAAyCE,IAAAA,aAAa,EAAbA;AAAzC,KAA2DC,KAA3D,EAJiF;AAAA,CAA/E;;;;AAOA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,CAACD,KAAD;AAAA,SACtB;AAAG,IAAA,GAAG,EAAE,aAACP,KAAD;AAAA,aAAkBD,aAAa,CAACC,KAAD,EAAQO,KAAR,CAA/B;AAAA,KAAR;AAAuD,IAAA,GAAG,EAAC;AAA3D,KAAqF,2BAAgBA,KAAhB,CAArF,EADsB;AAAA,CAAjB","sourcesContent":["/*\n * Wire\n * Copyright (C) 2019 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\n\nimport {COLOR_V2} from '../Identity/colors-v2';\nimport type {Theme} from '../Layout';\nimport {LinkProps, filterLinkProps, linkStyle} from './Link';\n\nexport type TextLinkProps<T = HTMLAnchorElement> = LinkProps<T>;\n\nexport const textLinkStyle: <T>(theme: Theme, props: TextLinkProps<T>) => CSSObject = (\n theme,\n {color = COLOR_V2.BLUE, fontSize = '16px', bold = false, textTransform = 'none', ...props},\n) => ({\n ...linkStyle(theme, {bold, color, fontSize, textTransform, ...props}),\n});\n\nexport const TextLink = (props: TextLinkProps<HTMLAnchorElement>) => (\n <a css={(theme: Theme) => textLinkStyle(theme, props)} rel=\"noopener noreferrer\" {...filterLinkProps(props)} />\n);\n"],"file":"TextLink.js"}