@laerdal/life-react-components 1.1.2-dev.14 → 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 (95) 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/index.js +0 -1
  6. package/dist/esm/Button/index.js.map +1 -1
  7. package/dist/esm/List/ListRow.js +1 -1
  8. package/dist/esm/List/ListRow.js.map +1 -1
  9. package/dist/esm/Table/Table.js +1 -1
  10. package/dist/esm/Table/Table.js.map +1 -1
  11. package/dist/esm/icons/contenticons/ContentIcons.js +322 -454
  12. package/dist/esm/icons/contenticons/ContentIcons.js.map +1 -1
  13. package/dist/esm/icons/index.js +24 -55
  14. package/dist/esm/icons/index.js.map +1 -1
  15. package/dist/esm/icons/systemicons/SystemIcons.js +488 -652
  16. package/dist/esm/icons/systemicons/SystemIcons.js.map +1 -1
  17. package/dist/esm/types.js +1 -0
  18. package/dist/esm/types.js.map +1 -1
  19. package/dist/js/Breadcrumb/Breadcrumb.d.ts +5 -2
  20. package/dist/js/Breadcrumb/Breadcrumb.js +78 -35
  21. package/dist/js/Breadcrumb/Breadcrumb.js.map +1 -1
  22. package/dist/js/Button/Button.d.ts +1 -1
  23. package/dist/js/Button/Button.js +2 -22
  24. package/dist/js/Button/Button.js.map +1 -1
  25. package/dist/js/Button/index.d.ts +0 -1
  26. package/dist/js/Button/index.js +0 -8
  27. package/dist/js/Button/index.js.map +1 -1
  28. package/dist/js/List/ListRow.js +1 -1
  29. package/dist/js/List/ListRow.js.map +1 -1
  30. package/dist/js/Table/Table.js +1 -1
  31. package/dist/js/Table/Table.js.map +1 -1
  32. package/dist/js/icons/contenticons/ContentIcons.js +1380 -1512
  33. package/dist/js/icons/contenticons/ContentIcons.js.map +1 -1
  34. package/dist/js/icons/index.d.ts +0 -2
  35. package/dist/js/icons/index.js +25 -68
  36. package/dist/js/icons/index.js.map +1 -1
  37. package/dist/js/icons/systemicons/SystemIcons.js +488 -652
  38. package/dist/js/icons/systemicons/SystemIcons.js.map +1 -1
  39. package/dist/js/types.d.ts +1 -0
  40. package/dist/js/types.js +1 -0
  41. package/dist/js/types.js.map +1 -1
  42. package/dist/umd/Breadcrumb/Breadcrumb.js +90 -50
  43. package/dist/umd/Breadcrumb/Breadcrumb.js.map +1 -1
  44. package/dist/umd/Button/Button.js +1 -40
  45. package/dist/umd/Button/Button.js.map +1 -1
  46. package/dist/umd/Button/index.js +4 -10
  47. package/dist/umd/Button/index.js.map +1 -1
  48. package/dist/umd/List/ListRow.js +1 -1
  49. package/dist/umd/List/ListRow.js.map +1 -1
  50. package/dist/umd/Table/Table.js +1 -1
  51. package/dist/umd/Table/Table.js.map +1 -1
  52. package/dist/umd/icons/contenticons/ContentIcons.js +471 -604
  53. package/dist/umd/icons/contenticons/ContentIcons.js.map +1 -1
  54. package/dist/umd/icons/index.js +29 -62
  55. package/dist/umd/icons/index.js.map +1 -1
  56. package/dist/umd/icons/systemicons/SystemIcons.js +488 -652
  57. package/dist/umd/icons/systemicons/SystemIcons.js.map +1 -1
  58. package/dist/umd/types.js +1 -0
  59. package/dist/umd/types.js.map +1 -1
  60. package/package.json +1 -1
  61. package/dist/esm/Button/Anchor.js +0 -76
  62. package/dist/esm/Button/Anchor.js.map +0 -1
  63. package/dist/esm/Tooltips/TooltipStyles.js +0 -71
  64. package/dist/esm/Tooltips/TooltipStyles.js.map +0 -1
  65. package/dist/esm/Tooltips/TooltipTypes.js +0 -6
  66. package/dist/esm/Tooltips/TooltipTypes.js.map +0 -1
  67. package/dist/esm/Tooltips/TooltipWrapper.js +0 -26
  68. package/dist/esm/Tooltips/TooltipWrapper.js.map +0 -1
  69. package/dist/esm/Tooltips/index.js +0 -4
  70. package/dist/esm/Tooltips/index.js.map +0 -1
  71. package/dist/js/Button/Anchor.d.ts +0 -7
  72. package/dist/js/Button/Anchor.js +0 -66
  73. package/dist/js/Button/Anchor.js.map +0 -1
  74. package/dist/js/Tooltips/TooltipStyles.d.ts +0 -11
  75. package/dist/js/Tooltips/TooltipStyles.js +0 -83
  76. package/dist/js/Tooltips/TooltipStyles.js.map +0 -1
  77. package/dist/js/Tooltips/TooltipTypes.d.ts +0 -14
  78. package/dist/js/Tooltips/TooltipTypes.js +0 -11
  79. package/dist/js/Tooltips/TooltipTypes.js.map +0 -1
  80. package/dist/js/Tooltips/TooltipWrapper.d.ts +0 -3
  81. package/dist/js/Tooltips/TooltipWrapper.js +0 -46
  82. package/dist/js/Tooltips/TooltipWrapper.js.map +0 -1
  83. package/dist/js/Tooltips/index.d.ts +0 -3
  84. package/dist/js/Tooltips/index.js +0 -30
  85. package/dist/js/Tooltips/index.js.map +0 -1
  86. package/dist/umd/Button/Anchor.js +0 -201
  87. package/dist/umd/Button/Anchor.js.map +0 -1
  88. package/dist/umd/Tooltips/TooltipStyles.js +0 -96
  89. package/dist/umd/Tooltips/TooltipStyles.js.map +0 -1
  90. package/dist/umd/Tooltips/TooltipTypes.js +0 -25
  91. package/dist/umd/Tooltips/TooltipTypes.js.map +0 -1
  92. package/dist/umd/Tooltips/TooltipWrapper.js +0 -94
  93. package/dist/umd/Tooltips/TooltipWrapper.js.map +0 -1
  94. package/dist/umd/Tooltips/index.js +0 -33
  95. package/dist/umd/Tooltips/index.js.map +0 -1
@@ -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,WA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CA,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,96 +0,0 @@
1
- (function (global, factory) {
2
- if (typeof define === "function" && define.amd) {
3
- define(["exports", "styled-components", "../types", "../styles", "../styles/typography"], factory);
4
- } else if (typeof exports !== "undefined") {
5
- factory(exports, require("styled-components"), require("../types"), require("../styles"), require("../styles/typography"));
6
- } else {
7
- var mod = {
8
- exports: {}
9
- };
10
- factory(mod.exports, global.styledComponents, global.types, global.styles, global.typography);
11
- global.undefined = mod.exports;
12
- }
13
- })(this, function (exports, _styledComponents, _types, _styles, _typography) {
14
- "use strict";
15
-
16
- Object.defineProperty(exports, "__esModule", {
17
- value: true
18
- });
19
- exports.TooltipContainer = exports.TooltipTrigger = exports.Tooltip = undefined;
20
-
21
- var _styledComponents2 = _interopRequireDefault(_styledComponents);
22
-
23
- function _interopRequireDefault(obj) {
24
- return obj && obj.__esModule ? obj : {
25
- default: obj
26
- };
27
- }
28
-
29
- const Tooltip = exports.Tooltip = _styledComponents2.default.div`
30
-
31
- pointer-events: none;
32
- ${props => props.size == _types.Size.Small || props.size != _types.Size.Medium ? (0, _typography.ComponentSStyling)(_styles.ComponentTextStyle.Regular, _styles.COLORS.white) : ''}
33
- ${props => props.size == _types.Size.Medium ? (0, _typography.ComponentMStyling)(_styles.ComponentTextStyle.Regular, _styles.COLORS.white) : ''}
34
- ${props => props.align == 'center' ? 'text-align: center;' : ''}
35
- box-shadow: ${_styles.BOXSHADOWS.BOXSHADOW_L2};
36
- padding: 4px 8px;
37
- border-radius: 2px;
38
- width: ${props => props.width == 'auto' ? 'max-content' : props.width};
39
- height: ${props => props.height};
40
- ${props => props.width == 'auto' ? 'max-width: 164px;' : ''};
41
- background: ${_styles.COLORS.primary_800};
42
- position: absolute;
43
- opacity: 0;
44
- z-index: 1;
45
- ${props => props.position == 'top' ? 'bottom: 110%;' : props.position == 'bottom' ? 'top: 110%;' : ''}
46
-
47
- ${props => props.position == 'left' ? 'bottom: 50%; transform: translateX(-110%) translateY(50%);' : ''}
48
- ${props => props.position == 'right' ? 'bottom: 50%;left: 110%; transform: translateY(50%);' : ''}
49
-
50
- ${props => props.position == 'left' || props.position == 'right' ? '' : props.align == 'start' ? 'left: 0%;' : props.align == 'end' ? 'right: 0%;' : 'left: 50%; transform: translateX(-50%);'}
51
-
52
-
53
- &::after {
54
- ${props => !props.withArrow ? 'display: none;' : ''}
55
- content: "";
56
- position: absolute;
57
- ${props => props.position == 'top' ? 'top: 100%;' : props.position == 'bottom' ? 'bottom: 100%;' : ''}
58
-
59
- ${props => props.position == 'right' ? 'right: 100%; bottom: 50%; transform: translateY(50%);' : ''}
60
- ${props => props.position == 'left' ? 'left: 100%; bottom: 50%; transform: translateY(50%);' : ''}
61
-
62
- ${props => props.position == 'left' || props.position == 'right' ? '' : props.align == 'start' ? 'left: 12px;' : props.align == 'end' ? 'left: calc(100% - 12px);' : 'left: 50%;'}
63
-
64
- ${props => props.position == 'left' ? '' : 'margin-left: -5px;'}
65
- margin: -0.5px;
66
- border-width: 4px;
67
- border-style: solid;
68
- border-color: ${props => props.position == 'top' ? _styles.COLORS.primary_800 : 'transparent'}
69
- ${props => props.position == 'right' ? _styles.COLORS.primary_800 : 'transparent'}
70
- ${props => props.position == 'bottom' ? _styles.COLORS.primary_800 : 'transparent'}
71
- ${props => props.position == 'left' ? _styles.COLORS.primary_800 : 'transparent'};
72
- }
73
- `;
74
- Tooltip.defaultProps = {
75
- withArrow: false,
76
- width: 'auto',
77
- size: _types.Size.Small,
78
- height: 'auto',
79
- align: 'center',
80
- position: 'bottom'
81
- };
82
- const TooltipTrigger = exports.TooltipTrigger = _styledComponents.css`
83
- &:hover ${Tooltip} {
84
- opacity: 1;
85
- transition: 0.5s;
86
- transition-delay: 0.1s;
87
- }
88
- `;
89
- const TooltipContainer = exports.TooltipContainer = _styledComponents2.default.div`
90
- display: inline-block;
91
- position: relative;
92
-
93
- ${TooltipTrigger}
94
- `;
95
- });
96
- //# sourceMappingURL=TooltipStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/Tooltips/TooltipStyles.tsx"],"names":["Tooltip","styled","div","props","Size","ComponentSStyling","ComponentTextStyle","COLORS","ComponentMStyling","BOXSHADOWS","BOXSHADOW_L2","width","height","primary_800","withArrow","size","align","position","TooltipTrigger","css","TooltipContainer"],"mappings":";;;;;;;;;;;;;;;;;;;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AAA,GAA6BI,eAA7BJ,WAAAA,GAAkD,aAAe;AACjG,sBAAsBA,KAAK,IAAKA,KAAK,CAALA,QAAAA,IAAAA,MAAAA,GAA2BI,eAA3BJ,WAAAA,GAAgD,aAAe;AAC/F;AA1DO,CAAA;AA6DPH,EAAAA,OAAO,CAAPA,YAAAA,GAAuB;AACrBc,IAAAA,SAAS,EADY,KAAA;AAErBH,IAAAA,KAAK,EAFgB,MAAA;AAGrBI,IAAAA,IAAI,EAAEX,YAHe,KAAA;AAIrBQ,IAAAA,MAAM,EAJe,MAAA;AAKrBI,IAAAA,KAAK,EALgB,QAAA;AAMrBC,IAAAA,QAAQ,EAAE;AANW,GAAvBjB;AASO,QAAMkB,cAAc,WAAdA,cAAc,GAAGC,qBAAI;AAClC,YAAYnB,OAAQ;AACpB;AACA;AACA;AACA;AALO,CAAA;AAQA,QAAMoB,gBAAgB,WAAhBA,gBAAgB,GAAGnB,2BAAOC,GAAI;AAC3C;AACA;AACA;AACA,IAAIgB,cAAe;AAJZ,CAAA","sourcesContent":["import styled, { css } from 'styled-components';\nimport { Size } from '../types';\nimport { BOXSHADOWS, COLORS, ComponentTextStyle } from '../styles';\nimport { ComponentMStyling, ComponentSStyling } from '../styles/typography';\n\n\nexport const Tooltip = styled.div<{\n withArrow?: boolean;\n width?: string;\n size?: Size;\n height?: string;\n align?: 'start' | 'end' | 'center' | undefined;\n position?: 'top' | 'right' | 'bottom' | 'left' | undefined;\n}>`\n\n pointer-events: none;\n ${props => (props.size == Size.Small || props.size != Size.Medium ? ComponentSStyling(ComponentTextStyle.Regular, COLORS.white) : '')}\n ${props => (props.size == Size.Medium ? ComponentMStyling(ComponentTextStyle.Regular, COLORS.white) : '')}\n ${props => (props.align == 'center' ? 'text-align: center;' : '')}\n box-shadow: ${BOXSHADOWS.BOXSHADOW_L2};\n padding: 4px 8px;\n border-radius: 2px;\n width: ${props => (props.width == 'auto' ? 'max-content' : props.width)};\n height: ${props => props.height};\n ${props => (props.width == 'auto' ? 'max-width: 164px;' : '')};\n background: ${COLORS.primary_800};\n position: absolute; \n opacity: 0; \n z-index: 1;\n ${props => (props.position == 'top' ? 'bottom: 110%;' : props.position == 'bottom' ? 'top: 110%;' : '')}\n\n ${props => (props.position == 'left' ? 'bottom: 50%; transform: translateX(-110%) translateY(50%);' : '')}\n ${props => (props.position == 'right' ? 'bottom: 50%;left: 110%; transform: translateY(50%);' : '')}\n \n ${props =>\n props.position == 'left' || props.position == 'right'\n ? ''\n : props.align == 'start'\n ? 'left: 0%;'\n : props.align == 'end'\n ? 'right: 0%;'\n : 'left: 50%; transform: translateX(-50%);'}\n\n\n&::after {\n ${props => (!props.withArrow ? 'display: none;' : '')}\n content: \"\";\n position: absolute;\n ${props => (props.position == 'top' ? 'top: 100%;' : props.position == 'bottom' ? 'bottom: 100%;' : '')}\n \n ${props => (props.position == 'right' ? 'right: 100%; bottom: 50%; transform: translateY(50%);' : '')}\n ${props => (props.position == 'left' ? 'left: 100%; bottom: 50%; transform: translateY(50%);' : '')}\n\n ${props =>\n props.position == 'left' || props.position == 'right' ? '' : props.align == 'start' ? 'left: 12px;' : props.align == 'end' ? 'left: calc(100% - 12px);' : 'left: 50%;'}\n\n ${props => (props.position == 'left' ? '' : 'margin-left: -5px;')}\n margin: -0.5px;\n border-width: 4px;\n border-style: solid;\n border-color: ${props => (props.position == 'top' ? COLORS.primary_800 : 'transparent')} \n ${props => (props.position == 'right' ? COLORS.primary_800 : 'transparent')} \n ${props => (props.position == 'bottom' ? COLORS.primary_800 : 'transparent')} \n ${props => (props.position == 'left' ? COLORS.primary_800 : 'transparent')};\n }\n`;\n\nTooltip.defaultProps = {\n withArrow: false,\n width: 'auto',\n size: Size.Small,\n height: 'auto',\n align: 'center',\n position: 'bottom'\n}\n\nexport const TooltipTrigger = css`\n &:hover ${Tooltip} {\n opacity: 1;\n transition: 0.5s;\n transition-delay: 0.1s;\n }\n`;\n\nexport const TooltipContainer = styled.div`\n display: inline-block;\n position: relative;\n\n ${TooltipTrigger}\n`;\n"],"file":"TooltipStyles.js"}
@@ -1,25 +0,0 @@
1
- (function (global, factory) {
2
- if (typeof define === "function" && define.amd) {
3
- define(["exports"], factory);
4
- } else if (typeof exports !== "undefined") {
5
- factory(exports);
6
- } else {
7
- var mod = {
8
- exports: {}
9
- };
10
- factory(mod.exports);
11
- global.undefined = mod.exports;
12
- }
13
- })(this, function (exports) {
14
- "use strict";
15
-
16
- Object.defineProperty(exports, "__esModule", {
17
- value: true
18
- });
19
-
20
- /**
21
- * Types for the table.
22
- */
23
- ;
24
- });
25
- //# sourceMappingURL=TooltipTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/Tooltips/TooltipTypes.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAEA;AACA;AACA;AAUG","sourcesContent":["import { Size } from \"../types\";\n\n/**\n * Types for the table.\n */\n export interface TooltipProps {\n label?: string;\n withArrow?: boolean;\n width?: string;\n size?: Size;\n height?: string;\n align? : 'start' | 'end' | 'center' | undefined;\n position? : 'top' | 'right' | 'bottom' | 'left' | undefined;\n children?: React.ReactNode;\n };\n "],"file":"TooltipTypes.js"}
@@ -1,94 +0,0 @@
1
- (function (global, factory) {
2
- if (typeof define === "function" && define.amd) {
3
- define(["exports", "react", "./TooltipStyles", ".."], factory);
4
- } else if (typeof exports !== "undefined") {
5
- factory(exports, require("react"), require("./TooltipStyles"), require(".."));
6
- } else {
7
- var mod = {
8
- exports: {}
9
- };
10
- factory(mod.exports, global.react, global.TooltipStyles, global._);
11
- global.undefined = mod.exports;
12
- }
13
- })(this, function (exports, _react, _TooltipStyles, _) {
14
- "use strict";
15
-
16
- Object.defineProperty(exports, "__esModule", {
17
- value: true
18
- });
19
-
20
- var React = _interopRequireWildcard(_react);
21
-
22
- function _getRequireWildcardCache(nodeInterop) {
23
- if (typeof WeakMap !== "function") return null;
24
- var cacheBabelInterop = new WeakMap();
25
- var cacheNodeInterop = new WeakMap();
26
- return (_getRequireWildcardCache = function (nodeInterop) {
27
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
28
- })(nodeInterop);
29
- }
30
-
31
- function _interopRequireWildcard(obj, nodeInterop) {
32
- if (!nodeInterop && obj && obj.__esModule) {
33
- return obj;
34
- }
35
-
36
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
37
- return {
38
- default: obj
39
- };
40
- }
41
-
42
- var cache = _getRequireWildcardCache(nodeInterop);
43
-
44
- if (cache && cache.has(obj)) {
45
- return cache.get(obj);
46
- }
47
-
48
- var newObj = {};
49
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
50
-
51
- for (var key in obj) {
52
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
53
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
54
-
55
- if (desc && (desc.get || desc.set)) {
56
- Object.defineProperty(newObj, key, desc);
57
- } else {
58
- newObj[key] = obj[key];
59
- }
60
- }
61
- }
62
-
63
- newObj.default = obj;
64
-
65
- if (cache) {
66
- cache.set(obj, newObj);
67
- }
68
-
69
- return newObj;
70
- }
71
-
72
- const TooltipWrapper = ({
73
- label,
74
- children,
75
- withArrow,
76
- size = _.Size.Small,
77
- height = 'auto',
78
- width = 'auto',
79
- align = 'center',
80
- position = 'bottom'
81
- }) => {
82
- return /*#__PURE__*/React.createElement(_TooltipStyles.TooltipContainer, null, /*#__PURE__*/React.createElement(_TooltipStyles.Tooltip, {
83
- align: align,
84
- height: height,
85
- size: size,
86
- width: width,
87
- withArrow: withArrow,
88
- position: position
89
- }, label), children);
90
- };
91
-
92
- exports.default = TooltipWrapper;
93
- });
94
- //# sourceMappingURL=TooltipWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/Tooltips/TooltipWrapper.tsx"],"names":["TooltipWrapper","size","Size","height","width","align","position"],"mappings":";;;;;;;;;;;;;;;;;;;MACA,K;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOC,QAAMA,cAAc,GAAG,CAAC;AAAA,IAAA,KAAA;AAAA,IAAA,QAAA;AAAA,IAAA,SAAA;AAGtBC,IAAAA,IAAI,GAAGC,OAHe,KAAA;AAItBC,IAAAA,MAAM,GAJgB,MAAA;AAKtBC,IAAAA,KAAK,GALiB,MAAA;AAMtBC,IAAAA,KAAK,GANiB,QAAA;AAOtBC,IAAAA,QAAQ,GAAG;AAPW,GAAD,KAOoB;AAExC,WAAA,aAAO,KAAA,CAAA,aAAA,CAAA,+BAAA,EAAA,IAAA,EAAA,aACC,KAAA,CAAA,aAAA,CAAA,sBAAA,EAAA;AAAS,MAAA,KAAK,EAAd,KAAA;AACG,MAAA,MAAM,EADT,MAAA;AAEG,MAAA,IAAI,EAFP,IAAA;AAGG,MAAA,KAAK,EAHR,KAAA;AAIG,MAAA,SAAS,EAJZ,SAAA;AAKG,MAAA,QAAQ,EAAEA;AALb,KAAA,EADD,KACC,CADD,EAAP,QAAO,CAAP;AATH,GAAA;;oBAsBA,c","sourcesContent":["\nimport * as React from 'react';\n\nimport { TooltipProps } from './TooltipTypes';\n\nimport { TooltipContainer, Tooltip } from './TooltipStyles';\nimport { Size } from '..';\n \n const TooltipWrapper = ({\n label, children,\n withArrow,\n size = Size.Small,\n height = 'auto',\n width = 'auto',\n align = 'center', \n position = 'bottom' } : TooltipProps) => {\n \n return <TooltipContainer>\n <Tooltip align={align} \n height={height} \n size={size}\n width={width} \n withArrow={withArrow} \n position={position}>\n {label}\n </Tooltip>\n {children}\n </TooltipContainer>;\n };\n \n export default TooltipWrapper;"],"file":"TooltipWrapper.js"}
@@ -1,33 +0,0 @@
1
- (function (global, factory) {
2
- if (typeof define === "function" && define.amd) {
3
- define(["exports", "./TooltipWrapper", "./TooltipStyles"], factory);
4
- } else if (typeof exports !== "undefined") {
5
- factory(exports, require("./TooltipWrapper"), require("./TooltipStyles"));
6
- } else {
7
- var mod = {
8
- exports: {}
9
- };
10
- factory(mod.exports, global.TooltipWrapper, global.TooltipStyles);
11
- global.undefined = mod.exports;
12
- }
13
- })(this, function (exports, _TooltipWrapper, _TooltipStyles) {
14
- "use strict";
15
-
16
- Object.defineProperty(exports, "__esModule", {
17
- value: true
18
- });
19
- exports.TooltipContainer = exports.TooltipTrigger = exports.TooltipWrapper = undefined;
20
-
21
- var _TooltipWrapper2 = _interopRequireDefault(_TooltipWrapper);
22
-
23
- function _interopRequireDefault(obj) {
24
- return obj && obj.__esModule ? obj : {
25
- default: obj
26
- };
27
- }
28
-
29
- exports.TooltipWrapper = _TooltipWrapper2.default;
30
- exports.TooltipTrigger = _TooltipStyles.TooltipTrigger;
31
- exports.TooltipContainer = _TooltipStyles.TooltipContainer;
32
- });
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/Tooltips/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGA,c,GAAA,wB;UAAA,c,GAAA,6B;UAAA,gB,GAAA,+B","sourcesContent":["import TooltipWrapper from './TooltipWrapper';\nimport {TooltipTrigger, TooltipContainer} from './TooltipStyles';\n\nexport { TooltipWrapper, TooltipTrigger, TooltipContainer };\n"],"file":"index.js"}