@laerdal/life-react-components 1.1.2-dev.11 → 1.1.2-dev.15

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 (72) hide show
  1. package/dist/esm/Breadcrumb/Breadcrumb.js +88 -48
  2. package/dist/esm/Breadcrumb/Breadcrumb.js.map +1 -1
  3. package/dist/esm/Button/Button.js +1 -40
  4. package/dist/esm/Button/Button.js.map +1 -1
  5. package/dist/esm/Button/Iconbutton.js +2 -6
  6. package/dist/esm/Button/Iconbutton.js.map +1 -1
  7. package/dist/esm/Button/index.js +0 -1
  8. package/dist/esm/Button/index.js.map +1 -1
  9. package/dist/esm/Dropdown/CommonStyling.js +0 -5
  10. package/dist/esm/Dropdown/CommonStyling.js.map +1 -1
  11. package/dist/esm/Dropdown/DropdownButton.js +8 -18
  12. package/dist/esm/Dropdown/DropdownButton.js.map +1 -1
  13. package/dist/esm/Dropdown/DropdownContent.js +8 -23
  14. package/dist/esm/Dropdown/DropdownContent.js.map +1 -1
  15. package/dist/esm/List/ListRow.js +1 -1
  16. package/dist/esm/List/ListRow.js.map +1 -1
  17. package/dist/esm/Table/Table.js +1 -1
  18. package/dist/esm/Table/Table.js.map +1 -1
  19. package/dist/esm/types.js +1 -0
  20. package/dist/esm/types.js.map +1 -1
  21. package/dist/js/Breadcrumb/Breadcrumb.d.ts +5 -2
  22. package/dist/js/Breadcrumb/Breadcrumb.js +78 -35
  23. package/dist/js/Breadcrumb/Breadcrumb.js.map +1 -1
  24. package/dist/js/Button/Button.d.ts +1 -1
  25. package/dist/js/Button/Button.js +2 -22
  26. package/dist/js/Button/Button.js.map +1 -1
  27. package/dist/js/Button/Iconbutton.js +2 -2
  28. package/dist/js/Button/Iconbutton.js.map +1 -1
  29. package/dist/js/Button/index.d.ts +0 -1
  30. package/dist/js/Button/index.js +0 -8
  31. package/dist/js/Button/index.js.map +1 -1
  32. package/dist/js/Dropdown/CommonStyling.js +2 -2
  33. package/dist/js/Dropdown/CommonStyling.js.map +1 -1
  34. package/dist/js/Dropdown/DropdownButton.js +9 -17
  35. package/dist/js/Dropdown/DropdownButton.js.map +1 -1
  36. package/dist/js/Dropdown/DropdownContent.js +12 -31
  37. package/dist/js/Dropdown/DropdownContent.js.map +1 -1
  38. package/dist/js/List/ListRow.js +1 -1
  39. package/dist/js/List/ListRow.js.map +1 -1
  40. package/dist/js/Table/Table.js +1 -1
  41. package/dist/js/Table/Table.js.map +1 -1
  42. package/dist/js/types.d.ts +1 -0
  43. package/dist/js/types.js +1 -0
  44. package/dist/js/types.js.map +1 -1
  45. package/dist/umd/Breadcrumb/Breadcrumb.js +90 -50
  46. package/dist/umd/Breadcrumb/Breadcrumb.js.map +1 -1
  47. package/dist/umd/Button/Button.js +1 -40
  48. package/dist/umd/Button/Button.js.map +1 -1
  49. package/dist/umd/Button/Iconbutton.js +2 -6
  50. package/dist/umd/Button/Iconbutton.js.map +1 -1
  51. package/dist/umd/Button/index.js +4 -10
  52. package/dist/umd/Button/index.js.map +1 -1
  53. package/dist/umd/Dropdown/CommonStyling.js +0 -5
  54. package/dist/umd/Dropdown/CommonStyling.js.map +1 -1
  55. package/dist/umd/Dropdown/DropdownButton.js +8 -18
  56. package/dist/umd/Dropdown/DropdownButton.js.map +1 -1
  57. package/dist/umd/Dropdown/DropdownContent.js +8 -23
  58. package/dist/umd/Dropdown/DropdownContent.js.map +1 -1
  59. package/dist/umd/List/ListRow.js +1 -1
  60. package/dist/umd/List/ListRow.js.map +1 -1
  61. package/dist/umd/Table/Table.js +1 -1
  62. package/dist/umd/Table/Table.js.map +1 -1
  63. package/dist/umd/types.js +1 -0
  64. package/dist/umd/types.js.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/esm/Button/Anchor.js +0 -76
  67. package/dist/esm/Button/Anchor.js.map +0 -1
  68. package/dist/js/Button/Anchor.d.ts +0 -7
  69. package/dist/js/Button/Anchor.js +0 -66
  70. package/dist/js/Button/Anchor.js.map +0 -1
  71. package/dist/umd/Button/Anchor.js +0 -201
  72. package/dist/umd/Button/Anchor.js.map +0 -1
@@ -1,66 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
- var React = _interopRequireWildcard(require("react"));
13
-
14
- var _styledComponents = _interopRequireDefault(require("styled-components"));
15
-
16
- var _styles = require("../styles");
17
-
18
- var _templateObject;
19
-
20
- var _excluded = ["children", "size", "href", "target"];
21
-
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
29
-
30
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
-
32
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
33
-
34
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
35
-
36
- var Anchor = function Anchor(_ref) {
37
- var children = _ref.children,
38
- _ref$size = _ref.size,
39
- size = _ref$size === void 0 ? 'small' : _ref$size,
40
- _ref$href = _ref.href,
41
- href = _ref$href === void 0 ? '#' : _ref$href,
42
- _ref$target = _ref.target,
43
- target = _ref$target === void 0 ? '_blank' : _ref$target,
44
- props = _objectWithoutProperties(_ref, _excluded);
45
-
46
- return /*#__PURE__*/React.createElement(AnchorTag, _extends({
47
- size: size,
48
- href: href,
49
- target: target
50
- }, props), children);
51
- };
52
-
53
- Anchor.propTypes = {
54
- size: _propTypes.default.oneOf(['small', 'medium', 'large', 'xsmall', 'xlarge']).isRequired,
55
- href: _propTypes.default.string
56
- };
57
-
58
- var AnchorTag = _styledComponents.default.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n background-color: transparent;\n padding: 0;\n border: none;\n max-width:max-content; \n text-decoration: none;\n font-size: ", ";\n line-height: ", ";\n font-weight: bold;\n font-family: inherit;\n cursor: pointer;\n outline:none;\n &:visited,\n &.vistied-state {\n color: ", ";\n background: transparent;\n text-decoration: none;\n }\n &:hover, \n &.hover-state {\n color: ", ";\n text-decoration: underline;\n }\n &:focus,\n &.focus-state {\n background-color: ", ";\n text-decoration: underline;\n box-shadow: 0px 4px 12px ", ", 0px 0px 8px ", " !important;\n outline:none;\n color: ", ";\n }\n &:active,\n &.active-state {\n color: ", ";\n background: transparent;\n text-decoration: underline;\n background-color:unset !important;\n box-shadow: unset !important;\n } \n"])), _styles.COLORS.primary_500, function (props) {
59
- return props.size === 'large' ? '20px' : props.size === 'small' ? '16px' : props.size === 'xsmall' ? '14px' : props.size === 'xlarge' ? '24px' : '18px';
60
- }, function (props) {
61
- return props.size === 'large' ? '32px' : props.size === 'small' ? '24px' : props.size === 'xsmall' ? '20px' : props.size === 'xlarge' ? '36px' : '28px';
62
- }, _styles.COLORS.accent1_500, _styles.COLORS.primary_600, _styles.COLORS.white, _styles.COLORS.focus_25, _styles.COLORS.focus, _styles.COLORS.primary_500, _styles.COLORS.primary_700);
63
-
64
- var _default = Anchor;
65
- exports.default = _default;
66
- //# sourceMappingURL=Anchor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/Button/Anchor.tsx"],"names":["Anchor","children","size","href","target","props","AnchorTag","styled","a","COLORS","primary_500","accent1_500","primary_600","white","focus_25","focus","primary_700"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,MAA4C,GAAG,SAA/CA,MAA+C,OAAuE;AAAA,MAApEC,QAAoE,QAApEA,QAAoE;AAAA,uBAA1DC,IAA0D;AAAA,MAA1DA,IAA0D,0BAAnD,OAAmD;AAAA,uBAA1CC,IAA0C;AAAA,MAA1CA,IAA0C,0BAArC,GAAqC;AAAA,yBAAhCC,MAAgC;AAAA,MAAhCA,MAAgC,4BAAzB,QAAyB;AAAA,MAAXC,KAAW;;AAC1H,sBACI,oBAAC,SAAD;AAAW,IAAA,IAAI,EAAEH,IAAjB;AAAuB,IAAA,IAAI,EAAEC,IAA7B;AAAmC,IAAA,MAAM,EAAEC;AAA3C,KAAuDC,KAAvD,GACKJ,QADL,CADJ;AAKD,CAND;;;AAJIC,EAAAA,I,4BAAO,O,EAAU,Q,EAAW,O,EAAU,Q,EAAW,Q;AACjDC,EAAAA,I;;;AAWJ,IAAMG,SAAS,GAAGC,0BAAOC,CAAV,o6BACJC,eAAOC,WADH,EAOA,UAAAL,KAAK;AAAA,SAAKA,KAAK,CAACH,IAAN,KAAe,OAAf,GAAyB,MAAzB,GAAkCG,KAAK,CAACH,IAAN,KAAe,OAAf,GAAyB,MAAzB,GAAkCG,KAAK,CAACH,IAAN,KAAe,QAAf,GAA0B,MAA1B,GAAmCG,KAAK,CAACH,IAAN,KAAe,QAAf,GAA0B,MAA1B,GAAmC,MAA/I;AAAA,CAPL,EAQE,UAAAG,KAAK;AAAA,SAAKA,KAAK,CAACH,IAAN,KAAe,OAAf,GAAyB,MAAzB,GAAkCG,KAAK,CAACH,IAAN,KAAe,OAAf,GAAyB,MAAzB,GAAkCG,KAAK,CAACH,IAAN,KAAe,QAAf,GAA0B,MAA1B,GAAmCG,KAAK,CAACH,IAAN,KAAe,QAAf,GAA0B,MAA1B,GAAmC,MAA/I;AAAA,CARP,EAeDO,eAAOE,WAfN,EAqBFF,eAAOG,WArBL,EA0BSH,eAAOI,KA1BhB,EA4BgBJ,eAAOK,QA5BvB,EA4BgDL,eAAOM,KA5BvD,EA8BFN,eAAOC,WA9BL,EAkCDD,eAAOO,WAlCN,CAAf;;eA0CehB,M","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport {COLORS} from '../styles';\n\ninterface AnchorProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>{\n size : 'small' | 'medium' | 'large' | 'xsmall' | 'xlarge';\n href?: string;\n}\n\nconst Anchor: React.FunctionComponent<AnchorProps> = ({ children, size = 'small', href='#', target='_blank' , ...props}) => {\n return (\n <AnchorTag size={size} href={href} target={target} {...props}>\n {children}\n </AnchorTag>\n )\n}\n\nconst AnchorTag = styled.a<AnchorProps>`\n color: ${COLORS.primary_500};\n background-color: transparent;\n padding: 0;\n border: none;\n max-width:max-content; \n text-decoration: none;\n font-size: ${props => (props.size === 'large' ? '20px' : props.size === 'small' ? '16px' : props.size === 'xsmall' ? '14px' : props.size === 'xlarge' ? '24px' : '18px')};\n line-height: ${props => (props.size === 'large' ? '32px' : props.size === 'small' ? '24px' : props.size === 'xsmall' ? '20px' : props.size === 'xlarge' ? '36px' : '28px')};\n font-weight: bold;\n font-family: inherit;\n cursor: pointer;\n outline:none;\n &:visited,\n &.vistied-state {\n color: ${ COLORS.accent1_500 };\n background: transparent;\n text-decoration: none;\n }\n &:hover, \n &.hover-state {\n color: ${COLORS.primary_600};\n text-decoration: underline;\n }\n &:focus,\n &.focus-state {\n background-color: ${COLORS.white};\n text-decoration: underline;\n box-shadow: 0px 4px 12px ${COLORS.focus_25}, 0px 0px 8px ${COLORS.focus} !important;\n outline:none;\n color: ${COLORS.primary_500};\n }\n &:active,\n &.active-state {\n color: ${ COLORS.primary_700 };\n background: transparent;\n text-decoration: underline;\n background-color:unset !important;\n box-shadow: unset !important;\n } \n`;\n\nexport default Anchor;"],"file":"Anchor.js"}
@@ -1,201 +0,0 @@
1
- (function (global, factory) {
2
- if (typeof define === "function" && define.amd) {
3
- define(["exports", "prop-types", "react", "styled-components", "../styles"], factory);
4
- } else if (typeof exports !== "undefined") {
5
- factory(exports, require("prop-types"), require("react"), require("styled-components"), require("../styles"));
6
- } else {
7
- var mod = {
8
- exports: {}
9
- };
10
- factory(mod.exports, global.propTypes, global.react, global.styledComponents, global.styles);
11
- global.undefined = mod.exports;
12
- }
13
- })(this, function (exports, _propTypes, _react, _styledComponents, _styles) {
14
- "use strict";
15
-
16
- Object.defineProperty(exports, "__esModule", {
17
- value: true
18
- });
19
-
20
- var _propTypes2 = _interopRequireDefault(_propTypes);
21
-
22
- var React = _interopRequireWildcard(_react);
23
-
24
- var _styledComponents2 = _interopRequireDefault(_styledComponents);
25
-
26
- function _getRequireWildcardCache(nodeInterop) {
27
- if (typeof WeakMap !== "function") return null;
28
- var cacheBabelInterop = new WeakMap();
29
- var cacheNodeInterop = new WeakMap();
30
- return (_getRequireWildcardCache = function (nodeInterop) {
31
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
32
- })(nodeInterop);
33
- }
34
-
35
- function _interopRequireWildcard(obj, nodeInterop) {
36
- if (!nodeInterop && obj && obj.__esModule) {
37
- return obj;
38
- }
39
-
40
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
41
- return {
42
- default: obj
43
- };
44
- }
45
-
46
- var cache = _getRequireWildcardCache(nodeInterop);
47
-
48
- if (cache && cache.has(obj)) {
49
- return cache.get(obj);
50
- }
51
-
52
- var newObj = {};
53
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
54
-
55
- for (var key in obj) {
56
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
57
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
58
-
59
- if (desc && (desc.get || desc.set)) {
60
- Object.defineProperty(newObj, key, desc);
61
- } else {
62
- newObj[key] = obj[key];
63
- }
64
- }
65
- }
66
-
67
- newObj.default = obj;
68
-
69
- if (cache) {
70
- cache.set(obj, newObj);
71
- }
72
-
73
- return newObj;
74
- }
75
-
76
- function _interopRequireDefault(obj) {
77
- return obj && obj.__esModule ? obj : {
78
- default: obj
79
- };
80
- }
81
-
82
- const _excluded = ["children", "size", "href", "target"];
83
-
84
- function _extends() {
85
- _extends = Object.assign || function (target) {
86
- for (var i = 1; i < arguments.length; i++) {
87
- var source = arguments[i];
88
-
89
- for (var key in source) {
90
- if (Object.prototype.hasOwnProperty.call(source, key)) {
91
- target[key] = source[key];
92
- }
93
- }
94
- }
95
-
96
- return target;
97
- };
98
-
99
- return _extends.apply(this, arguments);
100
- }
101
-
102
- function _objectWithoutProperties(source, excluded) {
103
- if (source == null) return {};
104
-
105
- var target = _objectWithoutPropertiesLoose(source, excluded);
106
-
107
- var key, i;
108
-
109
- if (Object.getOwnPropertySymbols) {
110
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
111
-
112
- for (i = 0; i < sourceSymbolKeys.length; i++) {
113
- key = sourceSymbolKeys[i];
114
- if (excluded.indexOf(key) >= 0) continue;
115
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
116
- target[key] = source[key];
117
- }
118
- }
119
-
120
- return target;
121
- }
122
-
123
- function _objectWithoutPropertiesLoose(source, excluded) {
124
- if (source == null) return {};
125
- var target = {};
126
- var sourceKeys = Object.keys(source);
127
- var key, i;
128
-
129
- for (i = 0; i < sourceKeys.length; i++) {
130
- key = sourceKeys[i];
131
- if (excluded.indexOf(key) >= 0) continue;
132
- target[key] = source[key];
133
- }
134
-
135
- return target;
136
- }
137
-
138
- const Anchor = _ref => {
139
- let {
140
- children,
141
- size = 'small',
142
- href = '#',
143
- target = '_blank'
144
- } = _ref,
145
- props = _objectWithoutProperties(_ref, _excluded);
146
-
147
- return /*#__PURE__*/React.createElement(AnchorTag, _extends({
148
- size: size,
149
- href: href,
150
- target: target
151
- }, props), children);
152
- };
153
-
154
- Anchor.propTypes = {
155
- size: _propTypes2.default.oneOf(['small', 'medium', 'large', 'xsmall', 'xlarge']).isRequired,
156
- href: _propTypes2.default.string
157
- };
158
- const AnchorTag = _styledComponents2.default.a`
159
- color: ${_styles.COLORS.primary_500};
160
- background-color: transparent;
161
- padding: 0;
162
- border: none;
163
- max-width:max-content;
164
- text-decoration: none;
165
- font-size: ${props => props.size === 'large' ? '20px' : props.size === 'small' ? '16px' : props.size === 'xsmall' ? '14px' : props.size === 'xlarge' ? '24px' : '18px'};
166
- line-height: ${props => props.size === 'large' ? '32px' : props.size === 'small' ? '24px' : props.size === 'xsmall' ? '20px' : props.size === 'xlarge' ? '36px' : '28px'};
167
- font-weight: bold;
168
- font-family: inherit;
169
- cursor: pointer;
170
- outline:none;
171
- &:visited,
172
- &.vistied-state {
173
- color: ${_styles.COLORS.accent1_500};
174
- background: transparent;
175
- text-decoration: none;
176
- }
177
- &:hover,
178
- &.hover-state {
179
- color: ${_styles.COLORS.primary_600};
180
- text-decoration: underline;
181
- }
182
- &:focus,
183
- &.focus-state {
184
- background-color: ${_styles.COLORS.white};
185
- text-decoration: underline;
186
- box-shadow: 0px 4px 12px ${_styles.COLORS.focus_25}, 0px 0px 8px ${_styles.COLORS.focus} !important;
187
- outline:none;
188
- color: ${_styles.COLORS.primary_500};
189
- }
190
- &:active,
191
- &.active-state {
192
- color: ${_styles.COLORS.primary_700};
193
- background: transparent;
194
- text-decoration: underline;
195
- background-color:unset !important;
196
- box-shadow: unset !important;
197
- }
198
- `;
199
- exports.default = Anchor;
200
- });
201
- //# sourceMappingURL=Anchor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/Button/Anchor.tsx"],"names":["size","href","Anchor","target","props","AnchorTag","styled","a","COLORS","primary_500","accent1_500","primary_600","white","focus_25","focus","primary_700"],"mappings":";;;;;;;;;;;;;;;;;;;;;MAAA,K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,QAAME,MAA4C,GAAG,IAAA,IAAuE;AAAA,QAAtE;AAAA,MAAA,QAAA;AAAYF,MAAAA,IAAI,GAAhB,OAAA;AAA4BC,MAAAA,IAAI,GAAhC,GAAA;AAAsCE,MAAAA,MAAM,GAAC;AAA7C,QAAsE,IAAA;AAAA,QAAXC,KAAW,GAAA,wBAAA,CAAA,IAAA,EAAA,SAAA,CAAA;;AAC1H,WAAA,aACI,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,QAAA,CAAA;AAAW,MAAA,IAAI,EAAf,IAAA;AAAuB,MAAA,IAAI,EAA3B,IAAA;AAAmC,MAAA,MAAM,EAAED;AAA3C,KAAA,EAAA,KAAA,CAAA,EADJ,QACI,CADJ;AADF,GAAA;;;AAJIH,IAAAA,I,6BAAO,O,EAAU,Q,EAAW,O,EAAU,Q,EAAW,Q;AACjDC,IAAAA,I;;AAWJ,QAAMI,SAAS,GAAGC,2BAAOC,CAAe;AACxC,WAAWC,eAAOC,WAAY;AAC9B;AACA;AACA;AACA;AACA;AACA,eAAeL,KAAK,IAAKA,KAAK,CAALA,IAAAA,KAAAA,OAAAA,GAAAA,MAAAA,GAAkCA,KAAK,CAALA,IAAAA,KAAAA,OAAAA,GAAAA,MAAAA,GAAkCA,KAAK,CAALA,IAAAA,KAAAA,QAAAA,GAAAA,MAAAA,GAAmCA,KAAK,CAALA,IAAAA,KAAAA,QAAAA,GAAAA,MAAAA,GAAmC,MAAQ;AAC3K,iBAAiBA,KAAK,IAAKA,KAAK,CAALA,IAAAA,KAAAA,OAAAA,GAAAA,MAAAA,GAAkCA,KAAK,CAALA,IAAAA,KAAAA,OAAAA,GAAAA,MAAAA,GAAkCA,KAAK,CAALA,IAAAA,KAAAA,QAAAA,GAAAA,MAAAA,GAAmCA,KAAK,CAALA,IAAAA,KAAAA,QAAAA,GAAAA,MAAAA,GAAmC,MAAQ;AAC7K;AACA;AACA;AACA;AACA;AACA;AACA,aAAcI,eAAOE,WAAa;AAClC;AACA;AACA;AACA;AACA;AACA,aAAaF,eAAOG,WAAY;AAChC;AACA;AACA;AACA;AACA,wBAAwBH,eAAOI,KAAM;AACrC;AACA,+BAA+BJ,eAAOK,QAAS,iBAAgBL,eAAOM,KAAM;AAC5E;AACA,aAAaN,eAAOC,WAAY;AAChC;AACA;AACA;AACA,aAAcD,eAAOO,WAAa;AAClC;AACA;AACA;AACA;AACA;AAvCA,CAAA;oBA0CA,M","sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport {COLORS} from '../styles';\n\ninterface AnchorProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>{\n size : 'small' | 'medium' | 'large' | 'xsmall' | 'xlarge';\n href?: string;\n}\n\nconst Anchor: React.FunctionComponent<AnchorProps> = ({ children, size = 'small', href='#', target='_blank' , ...props}) => {\n return (\n <AnchorTag size={size} href={href} target={target} {...props}>\n {children}\n </AnchorTag>\n )\n}\n\nconst AnchorTag = styled.a<AnchorProps>`\n color: ${COLORS.primary_500};\n background-color: transparent;\n padding: 0;\n border: none;\n max-width:max-content; \n text-decoration: none;\n font-size: ${props => (props.size === 'large' ? '20px' : props.size === 'small' ? '16px' : props.size === 'xsmall' ? '14px' : props.size === 'xlarge' ? '24px' : '18px')};\n line-height: ${props => (props.size === 'large' ? '32px' : props.size === 'small' ? '24px' : props.size === 'xsmall' ? '20px' : props.size === 'xlarge' ? '36px' : '28px')};\n font-weight: bold;\n font-family: inherit;\n cursor: pointer;\n outline:none;\n &:visited,\n &.vistied-state {\n color: ${ COLORS.accent1_500 };\n background: transparent;\n text-decoration: none;\n }\n &:hover, \n &.hover-state {\n color: ${COLORS.primary_600};\n text-decoration: underline;\n }\n &:focus,\n &.focus-state {\n background-color: ${COLORS.white};\n text-decoration: underline;\n box-shadow: 0px 4px 12px ${COLORS.focus_25}, 0px 0px 8px ${COLORS.focus} !important;\n outline:none;\n color: ${COLORS.primary_500};\n }\n &:active,\n &.active-state {\n color: ${ COLORS.primary_700 };\n background: transparent;\n text-decoration: underline;\n background-color:unset !important;\n box-shadow: unset !important;\n } \n`;\n\nexport default Anchor;"],"file":"Anchor.js"}