@laerdal/life-react-components 1.7.0-dev.22 → 1.7.0-dev.25

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 (50) hide show
  1. package/dist/Dropdown/DropdownFilter.cjs +34 -35
  2. package/dist/Dropdown/DropdownFilter.cjs.map +1 -1
  3. package/dist/Dropdown/DropdownFilter.d.ts +2 -1
  4. package/dist/Dropdown/DropdownFilter.js +34 -35
  5. package/dist/Dropdown/DropdownFilter.js.map +1 -1
  6. package/dist/GlobalNavigationBar/UserMenu/MenuLink.cjs +4 -0
  7. package/dist/GlobalNavigationBar/UserMenu/MenuLink.cjs.map +1 -1
  8. package/dist/GlobalNavigationBar/UserMenu/MenuLink.js +3 -0
  9. package/dist/GlobalNavigationBar/UserMenu/MenuLink.js.map +1 -1
  10. package/dist/index.cjs +0 -14
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/index.js +0 -1
  14. package/dist/index.js.map +1 -1
  15. package/package.json +1 -1
  16. package/dist/Tile/Tile.cjs +0 -61
  17. package/dist/Tile/Tile.cjs.map +0 -1
  18. package/dist/Tile/Tile.d.ts +0 -4
  19. package/dist/Tile/Tile.js +0 -43
  20. package/dist/Tile/Tile.js.map +0 -1
  21. package/dist/Tile/TileBody.cjs +0 -37
  22. package/dist/Tile/TileBody.cjs.map +0 -1
  23. package/dist/Tile/TileBody.d.ts +0 -6
  24. package/dist/Tile/TileBody.js +0 -22
  25. package/dist/Tile/TileBody.js.map +0 -1
  26. package/dist/Tile/TileCommonItems.cjs +0 -164
  27. package/dist/Tile/TileCommonItems.cjs.map +0 -1
  28. package/dist/Tile/TileCommonItems.d.ts +0 -9
  29. package/dist/Tile/TileCommonItems.js +0 -125
  30. package/dist/Tile/TileCommonItems.js.map +0 -1
  31. package/dist/Tile/TileFooter.cjs +0 -48
  32. package/dist/Tile/TileFooter.cjs.map +0 -1
  33. package/dist/Tile/TileFooter.d.ts +0 -7
  34. package/dist/Tile/TileFooter.js +0 -32
  35. package/dist/Tile/TileFooter.js.map +0 -1
  36. package/dist/Tile/TileHeader.cjs +0 -90
  37. package/dist/Tile/TileHeader.cjs.map +0 -1
  38. package/dist/Tile/TileHeader.d.ts +0 -7
  39. package/dist/Tile/TileHeader.js +0 -68
  40. package/dist/Tile/TileHeader.js.map +0 -1
  41. package/dist/Tile/TileTypes.cjs +0 -6
  42. package/dist/Tile/TileTypes.cjs.map +0 -1
  43. package/dist/Tile/TileTypes.d.ts +0 -57
  44. package/dist/Tile/TileTypes.js +0 -2
  45. package/dist/Tile/TileTypes.js.map +0 -1
  46. package/dist/Tile/index.cjs +0 -33
  47. package/dist/Tile/index.cjs.map +0 -1
  48. package/dist/Tile/index.d.ts +0 -3
  49. package/dist/Tile/index.js +0 -4
  50. package/dist/Tile/index.js.map +0 -1
@@ -1,125 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
4
- var _excluded = ["linkText", "componentType", "linkIcon"],
5
- _excluded2 = ["buttonText", "componentType"];
6
-
7
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
8
-
9
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
10
-
11
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
12
-
13
- import { Button, IconButton } from '../Button';
14
- import { ToggleButton } from '../Toggles';
15
- import { DropdownButton } from '../Dropdown';
16
- import React from 'react';
17
- import styled from 'styled-components';
18
- import { COLORS, ComponentLStyling, ComponentMStyling, ComponentSStyling, ComponentTextStyle, ComponentXSStyling, ComponentXXSStyling } from '../styles';
19
- import { HyperLink } from '../HyperLink';
20
- import { Size } from '../types';
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- import { jsxs as _jsxs } from "react/jsx-runtime";
23
- export var TileNoteText = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
24
- export var TileNoteIcon = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([""])));
25
- export var TileNoteWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n color: ", ";\n\n &.small {\n gap: 4px;\n\n ", " {\n width: 16px;\n height: 16px;\n }\n\n ", " {\n ", "\n }\n }\n\n &.medium {\n gap: 6px;\n\n ", " {\n width: 16px;\n height: 16px;\n }\n\n ", " {\n ", "\n }\n\n }\n\n &.large {\n gap: 8px;\n\n ", " {\n width: 20px;\n height: 20px;\n }\n\n ", " {\n ", "\n }\n }\n"])), COLORS.neutral_600, TileNoteIcon, TileNoteText, ComponentXXSStyling(ComponentTextStyle.Regular, null), TileNoteIcon, TileNoteText, ComponentXSStyling(ComponentTextStyle.Regular, null), TileNoteIcon, TileNoteText, ComponentSStyling(ComponentTextStyle.Regular, null));
26
- export var TileHyperLinkIcon = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([""])));
27
- export var TileHyperLinkText = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([""])));
28
- export var TileHyperLinkWrapper = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: max-content;\n\n ", "\n a {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 4px;\n }\n\n &.small {\n ", " {\n width: 24px;\n height: 24px;\n }\n\n ", " {\n ", "\n }\n }\n\n &.medium {\n ", " {\n width: 24px;\n height: 24px;\n }\n\n ", " {\n ", "\n }\n }\n\n &.large {\n ", " {\n width: 24px;\n height: 24px;\n }\n\n ", " {\n ", "\n }\n }\n"])), ComponentSStyling(ComponentTextStyle.Bold, COLORS.primary_500), TileHyperLinkIcon, TileHyperLinkText, ComponentSStyling(ComponentTextStyle.Bold, null), TileHyperLinkIcon, TileHyperLinkText, ComponentMStyling(ComponentTextStyle.Bold, null), TileHyperLinkIcon, TileHyperLinkText, ComponentLStyling(ComponentTextStyle.Bold, null));
29
- export var RenderTileItem = function RenderTileItem(item, size) {
30
- var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
31
-
32
- switch (item.componentType) {
33
- case 'icon':
34
- {
35
- return /*#__PURE__*/_jsx(IconButton, {
36
- variant: 'secondary',
37
- useTransparentBackground: true,
38
- shape: 'circular',
39
- action: item.action,
40
- disabled: item.disabled,
41
- children: item.icon
42
- }, key);
43
- }
44
-
45
- case 'toggle':
46
- {
47
- return /*#__PURE__*/_jsx(ToggleButton, {
48
- active: item.active,
49
- onChange: item.onChange,
50
- defaultState: item.defaultState,
51
- activeState: item.activeState,
52
- disabled: item.disabled
53
- }, key);
54
- }
55
-
56
- case 'dropdown':
57
- {
58
- return /*#__PURE__*/_jsx(DropdownButton, {
59
- items: item.items,
60
- itemsType: item.itemsType,
61
- onClick: item.onClick,
62
- icon: item.icon,
63
- action: item.action,
64
- actionIcon: item.actionIcon,
65
- actionLabel: item.actionLabel,
66
- actionVariant: item.actionVariant,
67
- actionLoading: item.actionLoading,
68
- multiSelect: item.multiSelect,
69
- scrollable: item.scrollable,
70
- pinTopItem: item.pinTopItem,
71
- maxHeight: item.maxHeight,
72
- disabled: item.disabled
73
- }, key);
74
- }
75
-
76
- case 'note':
77
- {
78
- return /*#__PURE__*/_jsxs(TileNoteWrapper, {
79
- className: size,
80
- children: [item.noteIcon && /*#__PURE__*/_jsx(TileNoteIcon, {
81
- children: /*#__PURE__*/React.cloneElement(item.noteIcon, {
82
- size: size === Size.Large ? '20px' : '16'
83
- })
84
- }), /*#__PURE__*/_jsx(TileNoteText, {
85
- children: item.noteText
86
- })]
87
- }, key);
88
- }
89
-
90
- case 'link':
91
- {
92
- var linkText = item.linkText,
93
- componentType = item.componentType,
94
- linkIcon = item.linkIcon,
95
- rest = _objectWithoutProperties(item, _excluded);
96
-
97
- return /*#__PURE__*/_jsx(TileHyperLinkWrapper, {
98
- className: size,
99
- children: /*#__PURE__*/_jsxs(HyperLink, _objectSpread(_objectSpread({}, rest), {}, {
100
- children: [/*#__PURE__*/_jsx(TileHyperLinkIcon, {
101
- children: /*#__PURE__*/React.cloneElement(linkIcon, {
102
- size: size === Size.Large ? '28px' : '24px'
103
- })
104
- }), /*#__PURE__*/_jsx(TileHyperLinkText, {
105
- children: linkText
106
- })]
107
- }))
108
- }, key);
109
- }
110
-
111
- case 'button':
112
- {
113
- var buttonText = item.buttonText,
114
- _componentType = item.componentType,
115
- _rest = _objectWithoutProperties(item, _excluded2);
116
-
117
- return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({
118
- size: size
119
- }, _rest), {}, {
120
- children: buttonText
121
- }), key);
122
- }
123
- }
124
- };
125
- //# sourceMappingURL=TileCommonItems.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tile/TileCommonItems.tsx"],"names":["Button","IconButton","ToggleButton","DropdownButton","React","styled","COLORS","ComponentLStyling","ComponentMStyling","ComponentSStyling","ComponentTextStyle","ComponentXSStyling","ComponentXXSStyling","HyperLink","Size","TileNoteText","div","TileNoteIcon","TileNoteWrapper","neutral_600","Regular","TileHyperLinkIcon","TileHyperLinkText","TileHyperLinkWrapper","Bold","primary_500","RenderTileItem","item","size","key","undefined","componentType","action","disabled","icon","active","onChange","defaultState","activeState","items","itemsType","onClick","actionIcon","actionLabel","actionVariant","actionLoading","multiSelect","scrollable","pinTopItem","maxHeight","noteIcon","cloneElement","Large","noteText","linkText","linkIcon","rest","buttonText"],"mappings":";;;;;;;;;;;;AAQA,SAAQA,MAAR,EAAgBC,UAAhB,QAAiC,WAAjC;AACA,SAAQC,YAAR,QAA2B,YAA3B;AACA,SAAQC,cAAR,QAA6B,aAA7B;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SACEC,MADF,EACUC,iBADV,EAEEC,iBAFF,EAGEC,iBAHF,EAIEC,kBAJF,EAKEC,kBALF,EAMEC,mBANF,QAOO,WAPP;AAQA,SAAQC,SAAR,QAAwB,cAAxB;AACA,SAAQC,IAAR,QAAmB,UAAnB;;;AAGA,OAAO,IAAMC,YAAY,GAAGV,MAAM,CAACW,GAAV,qEAAlB;AACP,OAAO,IAAMC,YAAY,GAAGZ,MAAM,CAACW,GAAV,uEAAlB;AACP,OAAO,IAAME,eAAe,GAAGb,MAAM,CAACW,GAAV,qiBAIjBV,MAAM,CAACa,WAJU,EAStBF,YATsB,EActBF,YAdsB,EAepBH,mBAAmB,CAACF,kBAAkB,CAACU,OAApB,EAA6B,IAA7B,CAfC,EAsBtBH,YAtBsB,EA2BtBF,YA3BsB,EA4BpBJ,kBAAkB,CAACD,kBAAkB,CAACU,OAApB,EAA6B,IAA7B,CA5BE,EAoCtBH,YApCsB,EAyCtBF,YAzCsB,EA0CpBN,iBAAiB,CAACC,kBAAkB,CAACU,OAApB,EAA6B,IAA7B,CA1CG,CAArB;AAgDP,OAAO,IAAMC,iBAAiB,GAAGhB,MAAM,CAACW,GAAV,uEAAvB;AACP,OAAO,IAAMM,iBAAiB,GAAGjB,MAAM,CAACW,GAAV,uEAAvB;AAEP,OAAO,IAAMO,oBAAoB,GAAGlB,MAAM,CAACW,GAAV,kiBAG7BP,iBAAiB,CAACC,kBAAkB,CAACc,IAApB,EAA0BlB,MAAM,CAACmB,WAAjC,CAHY,EAY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,IAAjC;AAAA,iCACL,MAAC,SAAD,kCAAe4B,IAAf;AAAA,oCACE,KAAC,iBAAD;AAAA,qCACGpD,KAAK,CAAC+C,YAAN,CAAmBI,QAAnB,EAAmD;AAAC3B,gBAAAA,IAAI,EAAEA,IAAI,KAAKd,IAAI,CAACsC,KAAd,GAAsB,MAAtB,GAA+B;AAAtC,eAAnD;AADH,cADF,eAIE,KAAC,iBAAD;AAAA,wBAAoBE;AAApB,cAJF;AAAA;AADK,WAA4CzB,GAA5C,CAAP;AAQD;;AACD,SAAK,QAAL;AAAe;AACb,YAAO4B,UAAP,GAA6C9B,IAA7C,CAAO8B,UAAP;AAAA,YAAmB1B,cAAnB,GAA6CJ,IAA7C,CAAmBI,aAAnB;AAAA,YAAqCyB,KAArC,4BAA6C7B,IAA7C;;AACA,4BAAO,KAAC,MAAD;AACQ,UAAA,IAAI,EAAEC;AADd,WAEY4B,KAFZ;AAAA,oBAGJC;AAHI,YAAa5B,GAAb,CAAP;AAKD;AAnEH;AAqED,CAxEM","sourcesContent":["import {\n TileDropdownButton,\n TileHyperLink,\n TileIconButton,\n TileNote,\n TileStandardButton,\n TileToggleButton\n} from './TileTypes';\nimport {Button, IconButton} from '../Button';\nimport {ToggleButton} from '../Toggles';\nimport {DropdownButton} from '../Dropdown';\nimport React from 'react';\nimport styled from 'styled-components';\nimport {\n COLORS, ComponentLStyling,\n ComponentMStyling,\n ComponentSStyling,\n ComponentTextStyle,\n ComponentXSStyling,\n ComponentXXSStyling\n} from '../styles';\nimport {HyperLink} from '../HyperLink';\nimport {Size} from '../types';\n\n\nexport const TileNoteText = styled.div``;\nexport const TileNoteIcon = styled.div``;\nexport const TileNoteWrapper = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n color: ${COLORS.neutral_600};\n\n &.small {\n gap: 4px;\n\n ${TileNoteIcon} {\n width: 16px;\n height: 16px;\n }\n\n ${TileNoteText} {\n ${ComponentXXSStyling(ComponentTextStyle.Regular, null)}\n }\n }\n\n &.medium {\n gap: 6px;\n\n ${TileNoteIcon} {\n width: 16px;\n height: 16px;\n }\n\n ${TileNoteText} {\n ${ComponentXSStyling(ComponentTextStyle.Regular, null)}\n }\n\n }\n\n &.large {\n gap: 8px;\n\n ${TileNoteIcon} {\n width: 20px;\n height: 20px;\n }\n\n ${TileNoteText} {\n ${ComponentSStyling(ComponentTextStyle.Regular, null)}\n }\n }\n`;\n\n\nexport const TileHyperLinkIcon = styled.div``;\nexport const TileHyperLinkText = styled.div``;\n\nexport const TileHyperLinkWrapper = styled.div`\n width: max-content;\n\n ${ComponentSStyling(ComponentTextStyle.Bold, COLORS.primary_500)}\n a {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 4px;\n }\n\n &.small {\n ${TileHyperLinkIcon} {\n width: 24px;\n height: 24px;\n }\n\n ${TileHyperLinkText} {\n ${ComponentSStyling(ComponentTextStyle.Bold, null)}\n }\n }\n\n &.medium {\n ${TileHyperLinkIcon} {\n width: 24px;\n height: 24px;\n }\n\n ${TileHyperLinkText} {\n ${ComponentMStyling(ComponentTextStyle.Bold, null)}\n }\n }\n\n &.large {\n ${TileHyperLinkIcon} {\n width: 24px;\n height: 24px;\n }\n\n ${TileHyperLinkText} {\n ${ComponentLStyling(ComponentTextStyle.Bold, null)}\n }\n }\n`\n\nexport const RenderTileItem = (item: TileIconButton | TileToggleButton | TileDropdownButton | TileStandardButton | TileNote | TileHyperLink,\n size: Size,\n key: any | undefined = undefined) => {\n switch (item.componentType) {\n case 'icon': {\n return <IconButton key={key}\n variant={'secondary'}\n useTransparentBackground={true}\n shape={'circular'}\n action={item.action}\n disabled={item.disabled}>\n {item.icon}\n </IconButton>\n }\n case 'toggle': {\n return <ToggleButton key={key}\n active={item.active}\n onChange={item.onChange}\n defaultState={item.defaultState}\n activeState={item.activeState}\n disabled={item.disabled}/>\n }\n case 'dropdown': {\n return <DropdownButton key={key}\n items={item.items}\n itemsType={item.itemsType}\n onClick={item.onClick}\n icon={item.icon}\n action={item.action}\n actionIcon={item.actionIcon}\n actionLabel={item.actionLabel}\n actionVariant={item.actionVariant}\n actionLoading={item.actionLoading}\n multiSelect={item.multiSelect}\n scrollable={item.scrollable}\n pinTopItem={item.pinTopItem}\n maxHeight={item.maxHeight}\n disabled={item.disabled}/>\n\n }\n case 'note': {\n return <TileNoteWrapper key={key} className={size}>\n {\n item.noteIcon &&\n <TileNoteIcon>\n {React.cloneElement(item.noteIcon as React.ReactElement, {size: size === Size.Large ? '20px' : '16'})}\n </TileNoteIcon>\n }\n <TileNoteText>{item.noteText}</TileNoteText>\n </TileNoteWrapper>\n\n }\n case 'link': {\n const {linkText, componentType, linkIcon, ...rest} = item;\n return <TileHyperLinkWrapper className={size} key={key}>\n <HyperLink {...rest}>\n <TileHyperLinkIcon>\n {React.cloneElement(linkIcon as React.ReactElement, {size: size === Size.Large ? '28px' : '24px'})}\n </TileHyperLinkIcon>\n <TileHyperLinkText>{linkText}</TileHyperLinkText>\n </HyperLink>\n </TileHyperLinkWrapper>\n }\n case 'button': {\n const {buttonText, componentType, ...rest} = item;\n return <Button key={key}\n size={size}\n {...rest}>\n {buttonText}\n </Button>\n }\n }\n}\n"],"file":"TileCommonItems.js"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _styledComponents = _interopRequireDefault(require("styled-components"));
15
-
16
- var _TileCommonItems = require("./TileCommonItems");
17
-
18
- var _styles = require("../styles");
19
-
20
- var _jsxRuntime = require("react/jsx-runtime");
21
-
22
- var _templateObject, _templateObject2, _templateObject3;
23
-
24
- var Wrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 0 16px;\n min-height: 56px;\n gap: 4px;\n }\n\n &.medium {\n padding: 0 20px;\n min-height: 64px;\n gap: 4px;\n }\n\n &.large {\n padding: 0 24px;\n min-height: 72px;\n gap: 8px;\n }\n"])));
25
-
26
- var LeftItemContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex: 1\n"])));
27
-
28
- var RightItemContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n color: ", ";\n"])), _styles.COLORS.neutral_600);
29
-
30
- var TileFooter = function TileFooter(_ref) {
31
- var buttons = _ref.buttons,
32
- leftItem = _ref.leftItem,
33
- size = _ref.size;
34
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
35
- className: size,
36
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(LeftItemContainer, {
37
- children: leftItem && (0, _TileCommonItems.RenderTileItem)(leftItem, size)
38
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(RightItemContainer, {
39
- children: buttons && buttons.map(function (value, index) {
40
- return (0, _TileCommonItems.RenderTileItem)(value, size, index);
41
- })
42
- })]
43
- });
44
- };
45
-
46
- var _default = TileFooter;
47
- exports.default = _default;
48
- //# sourceMappingURL=TileFooter.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tile/TileFooter.tsx"],"names":["Wrapper","styled","div","LeftItemContainer","RightItemContainer","COLORS","neutral_600","TileFooter","buttons","leftItem","size","map","value","index"],"mappings":";;;;;;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;AAEA,IAAMA,OAAO,GAAGC,0BAAOC,GAAV,0bAAb;;AA2BA,IAAMC,iBAAiB,GAAGF,0BAAOC,GAAV,kGAAvB;;AAIA,IAAME,kBAAkB,GAAGH,0BAAOC,GAAV,gLAIbG,eAAOC,WAJM,CAAxB;;AAOA,IAAMC,UAAqE,GAAG,SAAxEA,UAAwE,OAA+B;AAAA,MAA7BC,OAA6B,QAA7BA,OAA6B;AAAA,MAApBC,QAAoB,QAApBA,QAAoB;AAAA,MAAVC,IAAU,QAAVA,IAAU;AAE3G,sBACE,sBAAC,OAAD;AAAS,IAAA,SAAS,EAAEA,IAApB;AAAA,4BACE,qBAAC,iBAAD;AAAA,gBAAoBD,QAAQ,IAAI,qCAAeA,QAAf,EAAyBC,IAAzB;AAAhC,MADF,eAEE,qBAAC,kBAAD;AAAA,gBAAqBF,OAAO,IAAIA,OAAO,CAACG,GAAR,CAAY,UAACC,KAAD,EAAQC,KAAR;AAAA,eAAkB,qCAAeD,KAAf,EAAsBF,IAAtB,EAA4BG,KAA5B,CAAlB;AAAA,OAAZ;AAAhC,MAFF;AAAA,IADF;AAMD,CARD;;eAUeN,U","sourcesContent":["import React from 'react';\nimport {TileFooterProps} from './TileTypes';\nimport {Size} from '../types';\nimport styled from 'styled-components';\nimport {RenderTileItem} from './TileCommonItems';\nimport {COLORS} from '../styles';\n\nconst Wrapper = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 0 16px;\n min-height: 56px;\n gap: 4px;\n }\n\n &.medium {\n padding: 0 20px;\n min-height: 64px;\n gap: 4px;\n }\n\n &.large {\n padding: 0 24px;\n min-height: 72px;\n gap: 8px;\n }\n`;\n\nconst LeftItemContainer = styled.div`\n flex: 1\n`;\n\nconst RightItemContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n color: ${COLORS.neutral_600};\n`;\n\nconst TileFooter: React.FunctionComponent<TileFooterProps & { size: Size }> = ({buttons, leftItem, size}) => {\n\n return (\n <Wrapper className={size}>\n <LeftItemContainer>{leftItem && RenderTileItem(leftItem, size)}</LeftItemContainer>\n <RightItemContainer>{buttons && buttons.map((value, index) => RenderTileItem(value, size, index))}</RightItemContainer>\n </Wrapper>\n )\n}\n\nexport default TileFooter;\n"],"file":"TileFooter.cjs"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { TileFooterProps } from './TileTypes';
3
- import { Size } from '../types';
4
- declare const TileFooter: React.FunctionComponent<TileFooterProps & {
5
- size: Size;
6
- }>;
7
- export default TileFooter;
@@ -1,32 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
-
3
- var _templateObject, _templateObject2, _templateObject3;
4
-
5
- import React from 'react';
6
- import styled from 'styled-components';
7
- import { RenderTileItem } from './TileCommonItems';
8
- import { COLORS } from '../styles';
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
- var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 0 16px;\n min-height: 56px;\n gap: 4px;\n }\n\n &.medium {\n padding: 0 20px;\n min-height: 64px;\n gap: 4px;\n }\n\n &.large {\n padding: 0 24px;\n min-height: 72px;\n gap: 8px;\n }\n"])));
12
- var LeftItemContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1\n"])));
13
- var RightItemContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n color: ", ";\n"])), COLORS.neutral_600);
14
-
15
- var TileFooter = function TileFooter(_ref) {
16
- var buttons = _ref.buttons,
17
- leftItem = _ref.leftItem,
18
- size = _ref.size;
19
- return /*#__PURE__*/_jsxs(Wrapper, {
20
- className: size,
21
- children: [/*#__PURE__*/_jsx(LeftItemContainer, {
22
- children: leftItem && RenderTileItem(leftItem, size)
23
- }), /*#__PURE__*/_jsx(RightItemContainer, {
24
- children: buttons && buttons.map(function (value, index) {
25
- return RenderTileItem(value, size, index);
26
- })
27
- })]
28
- });
29
- };
30
-
31
- export default TileFooter;
32
- //# sourceMappingURL=TileFooter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tile/TileFooter.tsx"],"names":["React","styled","RenderTileItem","COLORS","Wrapper","div","LeftItemContainer","RightItemContainer","neutral_600","TileFooter","buttons","leftItem","size","map","value","index"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,SAAQC,cAAR,QAA6B,mBAA7B;AACA,SAAQC,MAAR,QAAqB,WAArB;;;AAEA,IAAMC,OAAO,GAAGH,MAAM,CAACI,GAAV,4aAAb;AA2BA,IAAMC,iBAAiB,GAAGL,MAAM,CAACI,GAAV,oFAAvB;AAIA,IAAME,kBAAkB,GAAGN,MAAM,CAACI,GAAV,kKAIbF,MAAM,CAACK,WAJM,CAAxB;;AAOA,IAAMC,UAAqE,GAAG,SAAxEA,UAAwE,OAA+B;AAAA,MAA7BC,OAA6B,QAA7BA,OAA6B;AAAA,MAApBC,QAAoB,QAApBA,QAAoB;AAAA,MAAVC,IAAU,QAAVA,IAAU;AAE3G,sBACE,MAAC,OAAD;AAAS,IAAA,SAAS,EAAEA,IAApB;AAAA,4BACE,KAAC,iBAAD;AAAA,gBAAoBD,QAAQ,IAAIT,cAAc,CAACS,QAAD,EAAWC,IAAX;AAA9C,MADF,eAEE,KAAC,kBAAD;AAAA,gBAAqBF,OAAO,IAAIA,OAAO,CAACG,GAAR,CAAY,UAACC,KAAD,EAAQC,KAAR;AAAA,eAAkBb,cAAc,CAACY,KAAD,EAAQF,IAAR,EAAcG,KAAd,CAAhC;AAAA,OAAZ;AAAhC,MAFF;AAAA,IADF;AAMD,CARD;;AAUA,eAAeN,UAAf","sourcesContent":["import React from 'react';\nimport {TileFooterProps} from './TileTypes';\nimport {Size} from '../types';\nimport styled from 'styled-components';\nimport {RenderTileItem} from './TileCommonItems';\nimport {COLORS} from '../styles';\n\nconst Wrapper = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 0 16px;\n min-height: 56px;\n gap: 4px;\n }\n\n &.medium {\n padding: 0 20px;\n min-height: 64px;\n gap: 4px;\n }\n\n &.large {\n padding: 0 24px;\n min-height: 72px;\n gap: 8px;\n }\n`;\n\nconst LeftItemContainer = styled.div`\n flex: 1\n`;\n\nconst RightItemContainer = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n color: ${COLORS.neutral_600};\n`;\n\nconst TileFooter: React.FunctionComponent<TileFooterProps & { size: Size }> = ({buttons, leftItem, size}) => {\n\n return (\n <Wrapper className={size}>\n <LeftItemContainer>{leftItem && RenderTileItem(leftItem, size)}</LeftItemContainer>\n <RightItemContainer>{buttons && buttons.map((value, index) => RenderTileItem(value, size, index))}</RightItemContainer>\n </Wrapper>\n )\n}\n\nexport default TileFooter;\n"],"file":"TileFooter.js"}
@@ -1,90 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _types = require("../types");
15
-
16
- var _styledComponents = _interopRequireDefault(require("styled-components"));
17
-
18
- var _styles = require("../styles");
19
-
20
- var _Tooltips = require("../Tooltips");
21
-
22
- var _Button = require("../Button");
23
-
24
- var _SystemIcons = require("../icons/systemicons/SystemIcons");
25
-
26
- var _TileCommonItems = require("./TileCommonItems");
27
-
28
- var _jsxRuntime = require("react/jsx-runtime");
29
-
30
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
31
-
32
- var TagLineContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), _styles.COLORS.neutral_600);
33
-
34
- var TitleContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), _styles.COLORS.black);
35
-
36
- var TextContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n"])));
37
-
38
- var ActionContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n"])));
39
-
40
- var Wrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 4px 16px;\n min-height: 56px;\n\n ", " {\n ", "\n }\n\n ", " {\n ", "\n }\n }\n\n &.medium {\n padding: 8px 20px;\n min-height: 64px;\n\n ", " {\n ", "\n }\n\n ", " {\n ", "\n }\n\n }\n\n &.large {\n padding: 12px 24px;\n min-height: 72px;\n\n ", " {\n ", "\n }\n\n ", " {\n ", "\n }\n\n }\n"])), TagLineContainer, (0, _styles.ComponentXXSStyling)(_styles.ComponentTextStyle.Regular, null), TitleContainer, (0, _styles.ComponentSStyling)(_styles.ComponentTextStyle.Bold, null), TagLineContainer, (0, _styles.ComponentSStyling)(_styles.ComponentTextStyle.Regular, null), TitleContainer, (0, _styles.ComponentMStyling)(_styles.ComponentTextStyle.Bold, null), TagLineContainer, (0, _styles.ComponentSStyling)(_styles.ComponentTextStyle.Regular, null), TitleContainer, (0, _styles.ComponentLStyling)(_styles.ComponentTextStyle.Bold, null));
41
-
42
- var TileHeader = function TileHeader(_ref) {
43
- var title = _ref.title,
44
- tagLine = _ref.tagLine,
45
- tooltip = _ref.tooltip,
46
- buttons = _ref.buttons,
47
- size = _ref.size;
48
-
49
- var renderTooltip = function renderTooltip() {
50
- return !!tooltip && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltips.TooltipWrapper, {
51
- delay: "0s",
52
- size: _types.Size.XSmall,
53
- align: "center",
54
- position: "bottom",
55
- withArrow: false,
56
- label: tooltip,
57
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.IconButton, {
58
- variant: "secondary",
59
- shape: "circular",
60
- style: {
61
- cursor: 'help'
62
- },
63
- action: function action() {},
64
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SystemIcons.Help, {
65
- size: "24px",
66
- color: _styles.COLORS.neutral_600
67
- })
68
- })
69
- });
70
- };
71
-
72
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
73
- className: size,
74
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(TextContainer, {
75
- children: [tagLine && /*#__PURE__*/(0, _jsxRuntime.jsx)(TagLineContainer, {
76
- children: tagLine
77
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(TitleContainer, {
78
- children: title
79
- })]
80
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(ActionContainer, {
81
- children: [renderTooltip(), buttons && buttons.map(function (item, index) {
82
- return (0, _TileCommonItems.RenderTileItem)(item, size, index);
83
- })]
84
- })]
85
- });
86
- };
87
-
88
- var _default = TileHeader;
89
- exports.default = _default;
90
- //# sourceMappingURL=TileHeader.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tile/TileHeader.tsx"],"names":["TagLineContainer","styled","div","COLORS","neutral_600","TitleContainer","black","TextContainer","ActionContainer","Wrapper","ComponentTextStyle","Regular","Bold","TileHeader","title","tagLine","tooltip","buttons","size","renderTooltip","Size","XSmall","cursor","map","item","index"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;AAQA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,gBAAgB,GAAGC,0BAAOC,GAAV,sGACXC,eAAOC,WADI,CAAtB;;AAIA,IAAMC,cAAc,GAAGJ,0BAAOC,GAA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AAAT,SAFnB;AAGY,QAAA,MAAM,EAAE,kBAAM,CACb,CAJb;AAAA,+BAKE,qBAAC,iBAAD;AAAM,UAAA,IAAI,EAAC,MAAX;AAAkB,UAAA,KAAK,EAAEnB,eAAOC;AAAhC;AALF;AALF,MAFoB;AAAA,GAAtB;;AAiBA,sBACE,sBAAC,OAAD;AAAS,IAAA,SAAS,EAAEc,IAApB;AAAA,4BACE,sBAAC,aAAD;AAAA,iBACGH,OAAO,iBAAI,qBAAC,gBAAD;AAAA,kBAAmBA;AAAnB,QADd,eAEE,qBAAC,cAAD;AAAA,kBAAiBD;AAAjB,QAFF;AAAA,MADF,eAKE,sBAAC,eAAD;AAAA,iBACGK,aAAa,EADhB,EAEGF,OAAO,IAAIA,OAAO,CAACM,GAAR,CAAY,UAACC,IAAD,EAAOC,KAAP;AAAA,eAAiB,qCAAeD,IAAf,EAAqBN,IAArB,EAA2BO,KAA3B,CAAjB;AAAA,OAAZ,CAFd;AAAA,MALF;AAAA,IADF;AAYD,CArCD;;eAuCeZ,U","sourcesContent":["import React from 'react';\nimport {TileHeaderProps} from './TileTypes';\nimport {Size} from '../types';\nimport styled from 'styled-components';\nimport {\n COLORS,\n ComponentLStyling,\n ComponentMStyling,\n ComponentSStyling,\n ComponentTextStyle,\n ComponentXXSStyling\n} from '../styles';\nimport {TooltipWrapper} from '../Tooltips';\nimport {IconButton} from '../Button';\nimport {Help} from '../icons/systemicons/SystemIcons';\nimport {RenderTileItem} from './TileCommonItems';\n\nconst TagLineContainer = styled.div`\n color: ${COLORS.neutral_600};\n`;\n\nconst TitleContainer = styled.div`\n color: ${COLORS.black};\n`;\n\nconst TextContainer = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n`;\n\nconst ActionContainer = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Wrapper = styled.div`\n display: flex;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 4px 16px;\n min-height: 56px;\n\n ${TagLineContainer} {\n ${ComponentXXSStyling(ComponentTextStyle.Regular, null)}\n }\n\n ${TitleContainer} {\n ${ComponentSStyling(ComponentTextStyle.Bold, null)}\n }\n }\n\n &.medium {\n padding: 8px 20px;\n min-height: 64px;\n\n ${TagLineContainer} {\n ${ComponentSStyling(ComponentTextStyle.Regular, null)}\n }\n\n ${TitleContainer} {\n ${ComponentMStyling(ComponentTextStyle.Bold, null)}\n }\n\n }\n\n &.large {\n padding: 12px 24px;\n min-height: 72px;\n\n ${TagLineContainer} {\n ${ComponentSStyling(ComponentTextStyle.Regular, null)}\n }\n\n ${TitleContainer} {\n ${ComponentLStyling(ComponentTextStyle.Bold, null)}\n }\n\n }\n`;\n\n\nconst TileHeader: React.FunctionComponent<TileHeaderProps & { size: Size }> = ({\n title,\n tagLine,\n tooltip,\n buttons,\n size\n }) => {\n\n const renderTooltip = () =>\n !!tooltip &&\n <TooltipWrapper delay=\"0s\" size={Size.XSmall}\n align=\"center\"\n position=\"bottom\"\n withArrow={false}\n label={tooltip}>\n <IconButton variant=\"secondary\"\n shape=\"circular\"\n style={{cursor: 'help'}}\n action={() => {\n }}>\n <Help size=\"24px\" color={COLORS.neutral_600}/>\n </IconButton>\n </TooltipWrapper>;\n\n\n return (\n <Wrapper className={size}>\n <TextContainer>\n {tagLine && <TagLineContainer>{tagLine}</TagLineContainer>}\n <TitleContainer>{title}</TitleContainer>\n </TextContainer>\n <ActionContainer>\n {renderTooltip()}\n {buttons && buttons.map((item, index) => RenderTileItem(item, size, index))}\n </ActionContainer>\n </Wrapper>\n )\n}\n\nexport default TileHeader;\n"],"file":"TileHeader.cjs"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { TileHeaderProps } from './TileTypes';
3
- import { Size } from '../types';
4
- declare const TileHeader: React.FunctionComponent<TileHeaderProps & {
5
- size: Size;
6
- }>;
7
- export default TileHeader;
@@ -1,68 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
-
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
4
-
5
- import React from 'react';
6
- import { Size } from '../types';
7
- import styled from 'styled-components';
8
- import { COLORS, ComponentLStyling, ComponentMStyling, ComponentSStyling, ComponentTextStyle, ComponentXXSStyling } from '../styles';
9
- import { TooltipWrapper } from '../Tooltips';
10
- import { IconButton } from '../Button';
11
- import { Help } from '../icons/systemicons/SystemIcons';
12
- import { RenderTileItem } from './TileCommonItems';
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { jsxs as _jsxs } from "react/jsx-runtime";
15
- var TagLineContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), COLORS.neutral_600);
16
- var TitleContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n"])), COLORS.black);
17
- var TextContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n"])));
18
- var ActionContainer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
19
- var Wrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 4px 16px;\n min-height: 56px;\n\n ", " {\n ", "\n }\n\n ", " {\n ", "\n }\n }\n\n &.medium {\n padding: 8px 20px;\n min-height: 64px;\n\n ", " {\n ", "\n }\n\n ", " {\n ", "\n }\n\n }\n\n &.large {\n padding: 12px 24px;\n min-height: 72px;\n\n ", " {\n ", "\n }\n\n ", " {\n ", "\n }\n\n }\n"])), TagLineContainer, ComponentXXSStyling(ComponentTextStyle.Regular, null), TitleContainer, ComponentSStyling(ComponentTextStyle.Bold, null), TagLineContainer, ComponentSStyling(ComponentTextStyle.Regular, null), TitleContainer, ComponentMStyling(ComponentTextStyle.Bold, null), TagLineContainer, ComponentSStyling(ComponentTextStyle.Regular, null), TitleContainer, ComponentLStyling(ComponentTextStyle.Bold, null));
20
-
21
- var TileHeader = function TileHeader(_ref) {
22
- var title = _ref.title,
23
- tagLine = _ref.tagLine,
24
- tooltip = _ref.tooltip,
25
- buttons = _ref.buttons,
26
- size = _ref.size;
27
-
28
- var renderTooltip = function renderTooltip() {
29
- return !!tooltip && /*#__PURE__*/_jsx(TooltipWrapper, {
30
- delay: "0s",
31
- size: Size.XSmall,
32
- align: "center",
33
- position: "bottom",
34
- withArrow: false,
35
- label: tooltip,
36
- children: /*#__PURE__*/_jsx(IconButton, {
37
- variant: "secondary",
38
- shape: "circular",
39
- style: {
40
- cursor: 'help'
41
- },
42
- action: function action() {},
43
- children: /*#__PURE__*/_jsx(Help, {
44
- size: "24px",
45
- color: COLORS.neutral_600
46
- })
47
- })
48
- });
49
- };
50
-
51
- return /*#__PURE__*/_jsxs(Wrapper, {
52
- className: size,
53
- children: [/*#__PURE__*/_jsxs(TextContainer, {
54
- children: [tagLine && /*#__PURE__*/_jsx(TagLineContainer, {
55
- children: tagLine
56
- }), /*#__PURE__*/_jsx(TitleContainer, {
57
- children: title
58
- })]
59
- }), /*#__PURE__*/_jsxs(ActionContainer, {
60
- children: [renderTooltip(), buttons && buttons.map(function (item, index) {
61
- return RenderTileItem(item, size, index);
62
- })]
63
- })]
64
- });
65
- };
66
-
67
- export default TileHeader;
68
- //# sourceMappingURL=TileHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tile/TileHeader.tsx"],"names":["React","Size","styled","COLORS","ComponentLStyling","ComponentMStyling","ComponentSStyling","ComponentTextStyle","ComponentXXSStyling","TooltipWrapper","IconButton","Help","RenderTileItem","TagLineContainer","div","neutral_600","TitleContainer","black","TextContainer","ActionContainer","Wrapper","Regular","Bold","TileHeader","title","tagLine","tooltip","buttons","size","renderTooltip","XSmall","cursor","map","item","index"],"mappings":";;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,S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AGI;AAAA,MAFJC,OAEI,QAFJA,OAEI;AAAA,MADJC,IACI,QADJA,IACI;;AAEnF,MAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,WACpB,CAAC,CAACH,OAAF,iBACA,KAAC,cAAD;AAAgB,MAAA,KAAK,EAAC,IAAtB;AAA2B,MAAA,IAAI,EAAEzB,IAAI,CAAC6B,MAAtC;AACgB,MAAA,KAAK,EAAC,QADtB;AAEgB,MAAA,QAAQ,EAAC,QAFzB;AAGgB,MAAA,SAAS,EAAE,KAH3B;AAIgB,MAAA,KAAK,EAAEJ,OAJvB;AAAA,6BAKE,KAAC,UAAD;AAAY,QAAA,OAAO,EAAC,WAApB;AACY,QAAA,KAAK,EAAC,UADlB;AAEY,QAAA,KAAK,EAAE;AAACK,UAAAA,MAAM,EAAE;AAAT,SAFnB;AAGY,QAAA,MAAM,EAAE,kBAAM,CACb,CAJb;AAAA,+BAKE,KAAC,IAAD;AAAM,UAAA,IAAI,EAAC,MAAX;AAAkB,UAAA,KAAK,EAAE5B,MAAM,CAACY;AAAhC;AALF;AALF,MAFoB;AAAA,GAAtB;;AAiBA,sBACE,MAAC,OAAD;AAAS,IAAA,SAAS,EAAEa,IAApB;AAAA,4BACE,MAAC,aAAD;AAAA,iBACGH,OAAO,iBAAI,KAAC,gBAAD;AAAA,kBAAmBA;AAAnB,QADd,eAEE,KAAC,cAAD;AAAA,kBAAiBD;AAAjB,QAFF;AAAA,MADF,eAKE,MAAC,eAAD;AAAA,iBACGK,aAAa,EADhB,EAEGF,OAAO,IAAIA,OAAO,CAACK,GAAR,CAAY,UAACC,IAAD,EAAOC,KAAP;AAAA,eAAiBtB,cAAc,CAACqB,IAAD,EAAOL,IAAP,EAAaM,KAAb,CAA/B;AAAA,OAAZ,CAFd;AAAA,MALF;AAAA,IADF;AAYD,CArCD;;AAuCA,eAAeX,UAAf","sourcesContent":["import React from 'react';\nimport {TileHeaderProps} from './TileTypes';\nimport {Size} from '../types';\nimport styled from 'styled-components';\nimport {\n COLORS,\n ComponentLStyling,\n ComponentMStyling,\n ComponentSStyling,\n ComponentTextStyle,\n ComponentXXSStyling\n} from '../styles';\nimport {TooltipWrapper} from '../Tooltips';\nimport {IconButton} from '../Button';\nimport {Help} from '../icons/systemicons/SystemIcons';\nimport {RenderTileItem} from './TileCommonItems';\n\nconst TagLineContainer = styled.div`\n color: ${COLORS.neutral_600};\n`;\n\nconst TitleContainer = styled.div`\n color: ${COLORS.black};\n`;\n\nconst TextContainer = styled.div`\n display: flex;\n flex-direction: column;\n justify-content: center;\n flex: 1;\n`;\n\nconst ActionContainer = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst Wrapper = styled.div`\n display: flex;\n align-items: center;\n\n min-height: 56px;\n box-sizing: border-box;\n\n &.small {\n padding: 4px 16px;\n min-height: 56px;\n\n ${TagLineContainer} {\n ${ComponentXXSStyling(ComponentTextStyle.Regular, null)}\n }\n\n ${TitleContainer} {\n ${ComponentSStyling(ComponentTextStyle.Bold, null)}\n }\n }\n\n &.medium {\n padding: 8px 20px;\n min-height: 64px;\n\n ${TagLineContainer} {\n ${ComponentSStyling(ComponentTextStyle.Regular, null)}\n }\n\n ${TitleContainer} {\n ${ComponentMStyling(ComponentTextStyle.Bold, null)}\n }\n\n }\n\n &.large {\n padding: 12px 24px;\n min-height: 72px;\n\n ${TagLineContainer} {\n ${ComponentSStyling(ComponentTextStyle.Regular, null)}\n }\n\n ${TitleContainer} {\n ${ComponentLStyling(ComponentTextStyle.Bold, null)}\n }\n\n }\n`;\n\n\nconst TileHeader: React.FunctionComponent<TileHeaderProps & { size: Size }> = ({\n title,\n tagLine,\n tooltip,\n buttons,\n size\n }) => {\n\n const renderTooltip = () =>\n !!tooltip &&\n <TooltipWrapper delay=\"0s\" size={Size.XSmall}\n align=\"center\"\n position=\"bottom\"\n withArrow={false}\n label={tooltip}>\n <IconButton variant=\"secondary\"\n shape=\"circular\"\n style={{cursor: 'help'}}\n action={() => {\n }}>\n <Help size=\"24px\" color={COLORS.neutral_600}/>\n </IconButton>\n </TooltipWrapper>;\n\n\n return (\n <Wrapper className={size}>\n <TextContainer>\n {tagLine && <TagLineContainer>{tagLine}</TagLineContainer>}\n <TitleContainer>{title}</TitleContainer>\n </TextContainer>\n <ActionContainer>\n {renderTooltip()}\n {buttons && buttons.map((item, index) => RenderTileItem(item, size, index))}\n </ActionContainer>\n </Wrapper>\n )\n}\n\nexport default TileHeader;\n"],"file":"TileHeader.js"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=TileTypes.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"TileTypes.cjs"}
@@ -1,57 +0,0 @@
1
- import React from 'react';
2
- import { IconButtonProps } from '../Button/Iconbutton';
3
- import { ToggleButtonProps } from '../Toggles/ToggleButton';
4
- import { DropdownButtonProps } from '../Dropdown/DropdownButtonTypes';
5
- import { ButtonProps } from '../Button/Button';
6
- import { HyperlinkProps } from '../HyperLink/HyperLink';
7
- import { Size } from '../types';
8
- export declare type TileIconButton = Pick<IconButtonProps, 'action' | 'disabled'> & {
9
- componentType: 'icon';
10
- icon: React.ReactNode;
11
- };
12
- export declare type TileToggleButton = Pick<ToggleButtonProps, 'active' | 'onChange' | 'disabled' | 'defaultState' | 'activeState'> & {
13
- componentType: 'toggle';
14
- };
15
- export declare type TileDropdownButton = Pick<DropdownButtonProps, 'items' | 'onClick' | 'disabled' | 'itemsType' | 'action' | 'actionIcon' | 'actionLabel' | 'actionLoading' | 'actionVariant' | 'multiSelect' | 'scrollable' | 'pinTopItem' | 'maxHeight'> & {
16
- componentType: 'dropdown';
17
- icon: React.ReactNode;
18
- };
19
- export declare type TileStandardButton = Pick<ButtonProps, 'variant' | 'loading' | 'icon' | 'onClick' | 'disabled'> & {
20
- componentType: 'button';
21
- buttonText: string;
22
- };
23
- export declare type TileNote = {
24
- componentType: 'note';
25
- noteIcon?: React.ReactNode;
26
- noteText: string;
27
- };
28
- export declare type TileHyperLink = HyperlinkProps & {
29
- componentType: 'link';
30
- linkIcon?: React.ReactNode;
31
- linkText: string;
32
- };
33
- export declare type FooterButtons = TileIconButton | TileToggleButton | TileDropdownButton | TileStandardButton;
34
- export declare type HeaderButtons = TileIconButton | TileToggleButton | TileDropdownButton;
35
- export interface TileHeaderProps {
36
- title: string;
37
- tooltip?: string;
38
- tagLine?: string;
39
- buttons?: HeaderButtons[];
40
- }
41
- export interface TileFooterProps {
42
- leftItem?: TileNote | TileHyperLink | TileStandardButton;
43
- buttons?: FooterButtons[];
44
- }
45
- export interface TileProps {
46
- style?: {
47
- width?: string;
48
- minWidth?: string;
49
- maxWidth?: string;
50
- height?: string;
51
- minHeight?: string;
52
- maxHeight?: string;
53
- };
54
- size?: Size.Small | Size.Medium | Size.Large;
55
- header?: TileHeaderProps;
56
- footer?: TileFooterProps;
57
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TileTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"TileTypes.js"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- var _exportNames = {
9
- Tile: true
10
- };
11
- Object.defineProperty(exports, "Tile", {
12
- enumerable: true,
13
- get: function get() {
14
- return _Tile.default;
15
- }
16
- });
17
-
18
- var _Tile = _interopRequireDefault(require("./Tile"));
19
-
20
- var _TileTypes = require("./TileTypes");
21
-
22
- Object.keys(_TileTypes).forEach(function (key) {
23
- if (key === "default" || key === "__esModule") return;
24
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
25
- if (key in exports && exports[key] === _TileTypes[key]) return;
26
- Object.defineProperty(exports, key, {
27
- enumerable: true,
28
- get: function get() {
29
- return _TileTypes[key];
30
- }
31
- });
32
- });
33
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tile/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["import Tile from './Tile';\n\nexport {Tile}\nexport * from './TileTypes';\n"],"file":"index.cjs"}
@@ -1,3 +0,0 @@
1
- import Tile from './Tile';
2
- export { Tile };
3
- export * from './TileTypes';
@@ -1,4 +0,0 @@
1
- import Tile from './Tile';
2
- export { Tile };
3
- export * from './TileTypes';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Tile/index.ts"],"names":["Tile"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,QAAjB;AAEA,SAAQA,IAAR;AACA,cAAc,aAAd","sourcesContent":["import Tile from './Tile';\n\nexport {Tile}\nexport * from './TileTypes';\n"],"file":"index.js"}