@laerdal/life-react-components 3.1.3-dev.1.full → 3.2.1-dev.1

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.
@@ -17,7 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
17
17
  var _templateObject;
18
18
  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); }
19
19
  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; }
20
- var LoadingWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n transform-origin: 50% 50%;\n\n @keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n }\n"])));
20
+ var LoadingWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-timing-function: cubic-bezier(.43,.08,.57,.9);\n transform-origin: 50% 50%;\n \n @keyframes spin {\n from {\n transform: rotate(45deg);\n }\n to {\n transform: rotate(405deg);\n }\n }\n }\n"])));
21
21
  var LoadingIndicator = function LoadingIndicator(_ref) {
22
22
  var _ref$size = _ref.size,
23
23
  size = _ref$size === void 0 ? _types.Size.Medium : _ref$size,
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingIndicator.cjs","names":["LoadingWrapper","styled","div","LoadingIndicator","size","Size","Medium","color","COLORS","primary","id","Small"],"sources":["../../src/LoadingIndicator/LoadingIndicator.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { COLORS } from '../styles';\nimport { Size } from '../types';\nimport { SystemIcons } from '../icons';\n\nconst LoadingWrapper = styled.div`\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n transform-origin: 50% 50%;\n\n @keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n }\n`;\n\ntype LoadingIndicatorProps = {\n id?: string;\n size?: Size.Small | Size.Medium;\n color?: string;\n};\n\nconst LoadingIndicator = ({ size = Size.Medium, color = COLORS.primary, id }: LoadingIndicatorProps) => {\n switch (size) {\n case Size.Medium:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n case Size.Small:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingSmall color={color} />\n </LoadingWrapper>\n );\n default:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n }\n};\n\nexport default LoadingIndicator;\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAEvC,IAAMA,cAAc,GAAGC,yBAAM,CAACC,GAAG,gdAqBhC;AAQD,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgB,OAAkF;EAAA,qBAA5EC,IAAI;IAAJA,IAAI,0BAAGC,WAAI,CAACC,MAAM;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAGC,cAAM,CAACC,OAAO;IAAEC,EAAE,QAAFA,EAAE;EACxE,QAAQN,IAAI;IACV,KAAKC,WAAI,CAACC,MAAM;MACd,oBACE,qBAAC,cAAc;QAAC,EAAE,EAAEI,EAAG;QAAA,uBACrB,qBAAC,kBAAW,CAAC,aAAa;UAAC,KAAK,EAAEH;QAAM;MAAG,EAC5B;IAErB,KAAKF,WAAI,CAACM,KAAK;MACb,oBACE,qBAAC,cAAc;QAAC,EAAE,EAAED,EAAG;QAAA,uBACrB,qBAAC,kBAAW,CAAC,YAAY;UAAC,KAAK,EAAEH;QAAM;MAAG,EAC3B;IAErB;MACE,oBACE,qBAAC,cAAc;QAAC,EAAE,EAAEG,EAAG;QAAA,uBACrB,qBAAC,kBAAW,CAAC,aAAa;UAAC,KAAK,EAAEH;QAAM;MAAG,EAC5B;EACjB;AAER,CAAC;AAAC;EA1BAG,EAAE;EAEFH,KAAK;AAAA;AAAA,eA0BQJ,gBAAgB;AAAA"}
1
+ {"version":3,"file":"LoadingIndicator.cjs","names":["LoadingWrapper","styled","div","LoadingIndicator","size","Size","Medium","color","COLORS","primary","id","Small"],"sources":["../../src/LoadingIndicator/LoadingIndicator.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { COLORS } from '../styles';\nimport { Size } from '../types';\nimport { SystemIcons } from '../icons';\n\nconst LoadingWrapper = styled.div`\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-timing-function: cubic-bezier(.43,.08,.57,.9);\n transform-origin: 50% 50%;\n \n @keyframes spin {\n from {\n transform: rotate(45deg);\n }\n to {\n transform: rotate(405deg);\n }\n }\n }\n`;\n\ntype LoadingIndicatorProps = {\n id?: string;\n size?: Size.Small | Size.Medium;\n color?: string;\n};\n\nconst LoadingIndicator = ({ size = Size.Medium, color = COLORS.primary, id }: LoadingIndicatorProps) => {\n switch (size) {\n case Size.Medium:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n case Size.Small:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingSmall color={color} />\n </LoadingWrapper>\n );\n default:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n }\n};\n\nexport default LoadingIndicator;\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AAAuC;AAAA;AAAA;AAAA;AAEvC,IAAMA,cAAc,GAAGC,yBAAM,CAACC,GAAG,mhBAsBhC;AAQD,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgB,OAAkF;EAAA,qBAA5EC,IAAI;IAAJA,IAAI,0BAAGC,WAAI,CAACC,MAAM;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAGC,cAAM,CAACC,OAAO;IAAEC,EAAE,QAAFA,EAAE;EACxE,QAAQN,IAAI;IACV,KAAKC,WAAI,CAACC,MAAM;MACd,oBACE,qBAAC,cAAc;QAAC,EAAE,EAAEI,EAAG;QAAA,uBACrB,qBAAC,kBAAW,CAAC,aAAa;UAAC,KAAK,EAAEH;QAAM;MAAG,EAC5B;IAErB,KAAKF,WAAI,CAACM,KAAK;MACb,oBACE,qBAAC,cAAc;QAAC,EAAE,EAAED,EAAG;QAAA,uBACrB,qBAAC,kBAAW,CAAC,YAAY;UAAC,KAAK,EAAEH;QAAM;MAAG,EAC3B;IAErB;MACE,oBACE,qBAAC,cAAc;QAAC,EAAE,EAAEG,EAAG;QAAA,uBACrB,qBAAC,kBAAW,CAAC,aAAa;UAAC,KAAK,EAAEH;QAAM;MAAG,EAC5B;EACjB;AAER,CAAC;AAAC;EA1BAG,EAAE;EAEFH,KAAK;AAAA;AAAA,eA0BQJ,gBAAgB;AAAA"}
@@ -7,7 +7,7 @@ import { COLORS } from '../styles';
7
7
  import { Size } from '../types';
8
8
  import { SystemIcons } from '../icons';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
- var LoadingWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n transform-origin: 50% 50%;\n\n @keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n }\n"])));
10
+ var LoadingWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-timing-function: cubic-bezier(.43,.08,.57,.9);\n transform-origin: 50% 50%;\n \n @keyframes spin {\n from {\n transform: rotate(45deg);\n }\n to {\n transform: rotate(405deg);\n }\n }\n }\n"])));
11
11
  var LoadingIndicator = function LoadingIndicator(_ref) {
12
12
  var _ref$size = _ref.size,
13
13
  size = _ref$size === void 0 ? Size.Medium : _ref$size,
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingIndicator.js","names":["React","styled","COLORS","Size","SystemIcons","LoadingWrapper","div","LoadingIndicator","size","Medium","color","primary","id","Small"],"sources":["../../src/LoadingIndicator/LoadingIndicator.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { COLORS } from '../styles';\nimport { Size } from '../types';\nimport { SystemIcons } from '../icons';\n\nconst LoadingWrapper = styled.div`\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n transform-origin: 50% 50%;\n\n @keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n }\n`;\n\ntype LoadingIndicatorProps = {\n id?: string;\n size?: Size.Small | Size.Medium;\n color?: string;\n};\n\nconst LoadingIndicator = ({ size = Size.Medium, color = COLORS.primary, id }: LoadingIndicatorProps) => {\n switch (size) {\n case Size.Medium:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n case Size.Small:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingSmall color={color} />\n </LoadingWrapper>\n );\n default:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n }\n};\n\nexport default LoadingIndicator;\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,IAAI,QAAQ,UAAU;AAC/B,SAASC,WAAW,QAAQ,UAAU;AAAC;AAEvC,IAAMC,cAAc,GAAGJ,MAAM,CAACK,GAAG,kcAqBhC;AAQD,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgB,OAAkF;EAAA,qBAA5EC,IAAI;IAAJA,IAAI,0BAAGL,IAAI,CAACM,MAAM;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAGR,MAAM,CAACS,OAAO;IAAEC,EAAE,QAAFA,EAAE;EACxE,QAAQJ,IAAI;IACV,KAAKL,IAAI,CAACM,MAAM;MACd,oBACE,KAAC,cAAc;QAAC,EAAE,EAAEG,EAAG;QAAA,uBACrB,KAAC,WAAW,CAAC,aAAa;UAAC,KAAK,EAAEF;QAAM;MAAG,EAC5B;IAErB,KAAKP,IAAI,CAACU,KAAK;MACb,oBACE,KAAC,cAAc;QAAC,EAAE,EAAED,EAAG;QAAA,uBACrB,KAAC,WAAW,CAAC,YAAY;UAAC,KAAK,EAAEF;QAAM;MAAG,EAC3B;IAErB;MACE,oBACE,KAAC,cAAc;QAAC,EAAE,EAAEE,EAAG;QAAA,uBACrB,KAAC,WAAW,CAAC,aAAa;UAAC,KAAK,EAAEF;QAAM;MAAG,EAC5B;EACjB;AAER,CAAC;AAAC;EA1BAE,EAAE;EAEFF,KAAK;AAAA;AA0BP,eAAeH,gBAAgB"}
1
+ {"version":3,"file":"LoadingIndicator.js","names":["React","styled","COLORS","Size","SystemIcons","LoadingWrapper","div","LoadingIndicator","size","Medium","color","primary","id","Small"],"sources":["../../src/LoadingIndicator/LoadingIndicator.tsx"],"sourcesContent":["import * as React from 'react';\nimport styled from 'styled-components';\nimport { COLORS } from '../styles';\nimport { Size } from '../types';\nimport { SystemIcons } from '../icons';\n\nconst LoadingWrapper = styled.div`\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n\n svg {\n animation-name: spin;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-timing-function: cubic-bezier(.43,.08,.57,.9);\n transform-origin: 50% 50%;\n \n @keyframes spin {\n from {\n transform: rotate(45deg);\n }\n to {\n transform: rotate(405deg);\n }\n }\n }\n`;\n\ntype LoadingIndicatorProps = {\n id?: string;\n size?: Size.Small | Size.Medium;\n color?: string;\n};\n\nconst LoadingIndicator = ({ size = Size.Medium, color = COLORS.primary, id }: LoadingIndicatorProps) => {\n switch (size) {\n case Size.Medium:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n case Size.Small:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingSmall color={color} />\n </LoadingWrapper>\n );\n default:\n return (\n <LoadingWrapper id={id}>\n <SystemIcons.LoadingMedium color={color} />\n </LoadingWrapper>\n );\n }\n};\n\nexport default LoadingIndicator;\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,IAAI,QAAQ,UAAU;AAC/B,SAASC,WAAW,QAAQ,UAAU;AAAC;AAEvC,IAAMC,cAAc,GAAGJ,MAAM,CAACK,GAAG,qgBAsBhC;AAQD,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgB,OAAkF;EAAA,qBAA5EC,IAAI;IAAJA,IAAI,0BAAGL,IAAI,CAACM,MAAM;IAAA,kBAAEC,KAAK;IAALA,KAAK,2BAAGR,MAAM,CAACS,OAAO;IAAEC,EAAE,QAAFA,EAAE;EACxE,QAAQJ,IAAI;IACV,KAAKL,IAAI,CAACM,MAAM;MACd,oBACE,KAAC,cAAc;QAAC,EAAE,EAAEG,EAAG;QAAA,uBACrB,KAAC,WAAW,CAAC,aAAa;UAAC,KAAK,EAAEF;QAAM;MAAG,EAC5B;IAErB,KAAKP,IAAI,CAACU,KAAK;MACb,oBACE,KAAC,cAAc;QAAC,EAAE,EAAED,EAAG;QAAA,uBACrB,KAAC,WAAW,CAAC,YAAY;UAAC,KAAK,EAAEF;QAAM;MAAG,EAC3B;IAErB;MACE,oBACE,KAAC,cAAc;QAAC,EAAE,EAAEE,EAAG;QAAA,uBACrB,KAAC,WAAW,CAAC,aAAa;UAAC,KAAK,EAAEF;QAAM;MAAG,EAC5B;EACjB;AAER,CAAC;AAAC;EA1BAE,EAAE;EAEFF,KAAK;AAAA;AA0BP,eAAeH,gBAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laerdal/life-react-components",
3
- "version": "3.1.3-dev.1.full",
3
+ "version": "3.2.1-dev.1",
4
4
  "private": false,
5
5
  "author": "Erik Martirosyan <erik.martirosyan@laerdal.com>",
6
6
  "contributors": [],