@laerdal/life-react-components 1.11.0-dev.44.full → 1.11.0-dev.45

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.
@@ -7,19 +7,40 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
+
10
12
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
13
 
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+
12
16
  var _styledComponents = _interopRequireDefault(require("styled-components"));
13
17
 
18
+ var _react = _interopRequireDefault(require("react"));
19
+
14
20
  var _styles = require("../styles");
15
21
 
16
22
  var _typography = require("../styles/typography");
17
23
 
18
24
  var _zIndexes = require("../styles/z-indexes");
19
25
 
26
+ var _common = require("../common");
27
+
28
+ var _jsxRuntime = require("react/jsx-runtime");
29
+
20
30
  var _templateObject;
21
31
 
22
- var NavItem = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &.disabled {\n color: ", ";\n background-color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &:focus:not(.disabled) {\n ", "\n }\n"])), (0, _typography.ComponentMStyling)(_typography.ComponentTextStyle.Regular, _styles.COLORS.neutral_600), _zIndexes.Z_INDEXES.active, _styles.COLORS.neutral_20, _styles.COLORS.neutral_800, _styles.COLORS.primary_600, _styles.COLORS.neutral_300, _styles.COLORS.neutral_100, _styles.COLORS.neutral_100, _zIndexes.Z_INDEXES.hover, _styles.COLORS.primary_20, _styles.COLORS.primary_700, _styles.COLORS.primary_600, _styles.focusStyles);
32
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
33
+
34
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35
+
36
+ var NavItemDiv = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &.disabled {\n color: ", ";\n background-color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &.focus-visible {\n ", "\n }\n"])), (0, _typography.ComponentMStyling)(_typography.ComponentTextStyle.Regular, _styles.COLORS.neutral_600), _zIndexes.Z_INDEXES.active, _styles.COLORS.neutral_20, _styles.COLORS.neutral_800, _styles.COLORS.primary_600, _styles.COLORS.neutral_300, _styles.COLORS.neutral_100, _styles.COLORS.neutral_100, _zIndexes.Z_INDEXES.hover, _styles.COLORS.primary_20, _styles.COLORS.primary_700, _styles.COLORS.primary_600, _styles.focusStyles);
37
+
38
+ var NavItem = function NavItem(props) {
39
+ var focusVisibleRef = (0, _common.useFocusVisibleRef)();
40
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(NavItemDiv, _objectSpread(_objectSpread({}, props), {}, {
41
+ ref: focusVisibleRef
42
+ }));
43
+ };
23
44
 
24
45
  var _default = NavItem;
25
46
  exports.default = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"NavItem.cjs","names":["NavItem","styled","div","ComponentMStyling","ComponentTextStyle","Regular","COLORS","neutral_600","Z_INDEXES","active","neutral_20","neutral_800","primary_600","neutral_300","neutral_100","hover","primary_20","primary_700","focusStyles"],"sources":["../../src/NavItem/NavItem.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport {COLORS, focusStyles} from '../styles';\nimport { ComponentMStyling, ComponentTextStyle } from '../styles/typography';\nimport {Z_INDEXES} from '../styles/z-indexes';\n\nconst NavItem = styled.div`\n ${ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600)}\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ${Z_INDEXES.active};\n background-color: ${COLORS.neutral_20};\n color: ${COLORS.neutral_800};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &.disabled {\n color: ${COLORS.neutral_300};\n background-color: ${COLORS.neutral_100};\n &:after {\n background-color: ${COLORS.neutral_100};\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ${Z_INDEXES.hover};\n background-color: ${COLORS.primary_20};\n color: ${COLORS.primary_700};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &:focus:not(.disabled) {\n ${focusStyles}\n }\n`;\n\nexport default NavItem;\n"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;AAEA,IAAMA,OAAO,GAAGC,yBAAA,CAAOC,GAAV,04BACT,IAAAC,6BAAA,EAAkBC,8BAAA,CAAmBC,OAArC,EAA8CC,cAAA,CAAOC,WAArD,CADS,EAwBEC,mBAAA,CAAUC,MAxBZ,EAyBWH,cAAA,CAAOI,UAzBlB,EA0BAJ,cAAA,CAAOK,WA1BP,EA4BaL,cAAA,CAAOM,WA5BpB,EAiCAN,cAAA,CAAOO,WAjCP,EAkCWP,cAAA,CAAOQ,WAlClB,EAoCaR,cAAA,CAAOQ,WApCpB,EAyCEN,mBAAA,CAAUO,KAzCZ,EA0CWT,cAAA,CAAOU,UA1ClB,EA2CAV,cAAA,CAAOW,WA3CP,EA6CaX,cAAA,CAAOM,WA7CpB,EAkDPM,mBAlDO,CAAb;;eAsDelB,O"}
1
+ {"version":3,"file":"NavItem.cjs","names":["NavItemDiv","styled","div","ComponentMStyling","ComponentTextStyle","Regular","COLORS","neutral_600","Z_INDEXES","active","neutral_20","neutral_800","primary_600","neutral_300","neutral_100","hover","primary_20","primary_700","focusStyles","NavItem","props","focusVisibleRef","useFocusVisibleRef"],"sources":["../../src/NavItem/NavItem.tsx"],"sourcesContent":["import styled, { StyledComponentProps } from 'styled-components';\nimport React from 'react';\nimport {COLORS, focusStyles} from '../styles';\nimport { ComponentMStyling, ComponentTextStyle } from '../styles/typography';\nimport {Z_INDEXES} from '../styles/z-indexes';\nimport { useFocusVisibleRef } from '../common';\n\nexport type StyledComponentPropsWithAs<\n C extends string | React.ComponentType<any>,\n T extends object,\n O extends object,\n A extends keyof any,\n AsC extends string | React.ComponentType<any> = C,\n FAsC extends string | React.ComponentType<any> = C\n> = StyledComponentProps<C, T, O, A, FAsC> & { as?: AsC | undefined; forwardedAs?: FAsC | undefined };\n\n\nconst NavItemDiv = styled.div`\n ${ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600)}\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ${Z_INDEXES.active};\n background-color: ${COLORS.neutral_20};\n color: ${COLORS.neutral_800};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &.disabled {\n color: ${COLORS.neutral_300};\n background-color: ${COLORS.neutral_100};\n &:after {\n background-color: ${COLORS.neutral_100};\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ${Z_INDEXES.hover};\n background-color: ${COLORS.primary_20};\n color: ${COLORS.primary_700};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &.focus-visible {\n ${focusStyles}\n }\n`;\n\n\nconst NavItem = (props: StyledComponentPropsWithAs<string | React.ComponentType<any>, any, {}, never, string | React.ComponentType<any>, \"div\">) => {\n const focusVisibleRef = useFocusVisibleRef();\n return (\n <NavItemDiv {...props} ref={focusVisibleRef} />\n );\n};\n\nexport default NavItem;\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAYA,IAAMA,UAAU,GAAGC,yBAAA,CAAOC,GAAV,m4BACZ,IAAAC,6BAAA,EAAkBC,8BAAA,CAAmBC,OAArC,EAA8CC,cAAA,CAAOC,WAArD,CADY,EAwBDC,mBAAA,CAAUC,MAxBT,EAyBQH,cAAA,CAAOI,UAzBf,EA0BHJ,cAAA,CAAOK,WA1BJ,EA4BUL,cAAA,CAAOM,WA5BjB,EAiCHN,cAAA,CAAOO,WAjCJ,EAkCQP,cAAA,CAAOQ,WAlCf,EAoCUR,cAAA,CAAOQ,WApCjB,EAyCDN,mBAAA,CAAUO,KAzCT,EA0CQT,cAAA,CAAOU,UA1Cf,EA2CHV,cAAA,CAAOW,WA3CJ,EA6CUX,cAAA,CAAOM,WA7CjB,EAkDVM,mBAlDU,CAAhB;;AAuDA,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAoI;EAClJ,IAAMC,eAAe,GAAG,IAAAC,0BAAA,GAAxB;EACA,oBACE,qBAAC,UAAD,kCAAgBF,KAAhB;IAAuB,GAAG,EAAEC;EAA5B,GADF;AAGD,CALD;;eAOeF,O"}
@@ -1,2 +1,8 @@
1
- declare const NavItem: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ import { StyledComponentProps } from 'styled-components';
2
+ import React from 'react';
3
+ export declare type StyledComponentPropsWithAs<C extends string | React.ComponentType<any>, T extends object, O extends object, A extends keyof any, AsC extends string | React.ComponentType<any> = C, FAsC extends string | React.ComponentType<any> = C> = StyledComponentProps<C, T, O, A, FAsC> & {
4
+ as?: AsC | undefined;
5
+ forwardedAs?: FAsC | undefined;
6
+ };
7
+ declare const NavItem: (props: StyledComponentPropsWithAs<string | React.ComponentType<any>, any, {}, never, string | React.ComponentType<any>, "div">) => JSX.Element;
2
8
  export default NavItem;
@@ -1,11 +1,28 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
1
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
3
+ import _pt from "prop-types";
2
4
 
3
5
  var _templateObject;
4
6
 
7
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
+
9
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
+
5
11
  import styled from 'styled-components';
12
+ import React from 'react';
6
13
  import { COLORS, focusStyles } from '../styles';
7
14
  import { ComponentMStyling, ComponentTextStyle } from '../styles/typography';
8
15
  import { Z_INDEXES } from '../styles/z-indexes';
9
- var NavItem = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &.disabled {\n color: ", ";\n background-color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &:focus:not(.disabled) {\n ", "\n }\n"])), ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), Z_INDEXES.active, COLORS.neutral_20, COLORS.neutral_800, COLORS.primary_600, COLORS.neutral_300, COLORS.neutral_100, COLORS.neutral_100, Z_INDEXES.hover, COLORS.primary_20, COLORS.primary_700, COLORS.primary_600, focusStyles);
16
+ import { useFocusVisibleRef } from '../common';
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ var NavItemDiv = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &.disabled {\n color: ", ";\n background-color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ", ";\n background-color: ", ";\n color: ", ";\n &:after {\n background-color: ", ";\n }\n }\n\n &.focus-visible {\n ", "\n }\n"])), ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), Z_INDEXES.active, COLORS.neutral_20, COLORS.neutral_800, COLORS.primary_600, COLORS.neutral_300, COLORS.neutral_100, COLORS.neutral_100, Z_INDEXES.hover, COLORS.primary_20, COLORS.primary_700, COLORS.primary_600, focusStyles);
19
+
20
+ var NavItem = function NavItem(props) {
21
+ var focusVisibleRef = useFocusVisibleRef();
22
+ return /*#__PURE__*/_jsx(NavItemDiv, _objectSpread(_objectSpread({}, props), {}, {
23
+ ref: focusVisibleRef
24
+ }));
25
+ };
26
+
10
27
  export default NavItem;
11
28
  //# sourceMappingURL=NavItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavItem.js","names":["styled","COLORS","focusStyles","ComponentMStyling","ComponentTextStyle","Z_INDEXES","NavItem","div","Regular","neutral_600","active","neutral_20","neutral_800","primary_600","neutral_300","neutral_100","hover","primary_20","primary_700"],"sources":["../../src/NavItem/NavItem.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport {COLORS, focusStyles} from '../styles';\nimport { ComponentMStyling, ComponentTextStyle } from '../styles/typography';\nimport {Z_INDEXES} from '../styles/z-indexes';\n\nconst NavItem = styled.div`\n ${ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600)}\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ${Z_INDEXES.active};\n background-color: ${COLORS.neutral_20};\n color: ${COLORS.neutral_800};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &.disabled {\n color: ${COLORS.neutral_300};\n background-color: ${COLORS.neutral_100};\n &:after {\n background-color: ${COLORS.neutral_100};\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ${Z_INDEXES.hover};\n background-color: ${COLORS.primary_20};\n color: ${COLORS.primary_700};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &:focus:not(.disabled) {\n ${focusStyles}\n }\n`;\n\nexport default NavItem;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,mBAAnB;AAEA,SAAQC,MAAR,EAAgBC,WAAhB,QAAkC,WAAlC;AACA,SAASC,iBAAT,EAA4BC,kBAA5B,QAAsD,sBAAtD;AACA,SAAQC,SAAR,QAAwB,qBAAxB;AAEA,IAAMC,OAAO,GAAGN,MAAM,CAACO,GAAV,43BACTJ,iBAAiB,CAACC,kBAAkB,CAACI,OAApB,EAA6BP,MAAM,CAACQ,WAApC,CADR,EAwBEJ,SAAS,CAACK,MAxBZ,EAyBWT,MAAM,CAACU,UAzBlB,EA0BAV,MAAM,CAACW,WA1BP,EA4BaX,MAAM,CAACY,WA5BpB,EAiCAZ,MAAM,CAACa,WAjCP,EAkCWb,MAAM,CAACc,WAlClB,EAoCad,MAAM,CAACc,WApCpB,EAyCEV,SAAS,CAACW,KAzCZ,EA0CWf,MAAM,CAACgB,UA1ClB,EA2CAhB,MAAM,CAACiB,WA3CP,EA6CajB,MAAM,CAACY,WA7CpB,EAkDPX,WAlDO,CAAb;AAsDA,eAAeI,OAAf"}
1
+ {"version":3,"file":"NavItem.js","names":["styled","React","COLORS","focusStyles","ComponentMStyling","ComponentTextStyle","Z_INDEXES","useFocusVisibleRef","NavItemDiv","div","Regular","neutral_600","active","neutral_20","neutral_800","primary_600","neutral_300","neutral_100","hover","primary_20","primary_700","NavItem","props","focusVisibleRef"],"sources":["../../src/NavItem/NavItem.tsx"],"sourcesContent":["import styled, { StyledComponentProps } from 'styled-components';\nimport React from 'react';\nimport {COLORS, focusStyles} from '../styles';\nimport { ComponentMStyling, ComponentTextStyle } from '../styles/typography';\nimport {Z_INDEXES} from '../styles/z-indexes';\nimport { useFocusVisibleRef } from '../common';\n\nexport type StyledComponentPropsWithAs<\n C extends string | React.ComponentType<any>,\n T extends object,\n O extends object,\n A extends keyof any,\n AsC extends string | React.ComponentType<any> = C,\n FAsC extends string | React.ComponentType<any> = C\n> = StyledComponentProps<C, T, O, A, FAsC> & { as?: AsC | undefined; forwardedAs?: FAsC | undefined };\n\n\nconst NavItemDiv = styled.div`\n ${ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600)}\n\n margin: 0;\n padding: 0 21px 0 21px;\n height: 64px;\n\n display: flex;\n align-items: center;\n text-align: center;\n position: relative;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3px;\n background-color: transparent;\n }\n\n &.active:not(.disabled) {\n z-index: ${Z_INDEXES.active};\n background-color: ${COLORS.neutral_20};\n color: ${COLORS.neutral_800};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &.disabled {\n color: ${COLORS.neutral_300};\n background-color: ${COLORS.neutral_100};\n &:after {\n background-color: ${COLORS.neutral_100};\n }\n }\n\n &:hover:not(.disabled) {\n z-index: ${Z_INDEXES.hover};\n background-color: ${COLORS.primary_20};\n color: ${COLORS.primary_700};\n &:after {\n background-color: ${COLORS.primary_600};\n }\n }\n\n &.focus-visible {\n ${focusStyles}\n }\n`;\n\n\nconst NavItem = (props: StyledComponentPropsWithAs<string | React.ComponentType<any>, any, {}, never, string | React.ComponentType<any>, \"div\">) => {\n const focusVisibleRef = useFocusVisibleRef();\n return (\n <NavItemDiv {...props} ref={focusVisibleRef} />\n );\n};\n\nexport default NavItem;\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,MAAP,MAA6C,mBAA7C;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAAQC,MAAR,EAAgBC,WAAhB,QAAkC,WAAlC;AACA,SAASC,iBAAT,EAA4BC,kBAA5B,QAAsD,sBAAtD;AACA,SAAQC,SAAR,QAAwB,qBAAxB;AACA,SAASC,kBAAT,QAAmC,WAAnC;;AAYA,IAAMC,UAAU,GAAGR,MAAM,CAACS,GAAV,q3BACZL,iBAAiB,CAACC,kBAAkB,CAACK,OAApB,EAA6BR,MAAM,CAACS,WAApC,CADL,EAwBDL,SAAS,CAACM,MAxBT,EAyBQV,MAAM,CAACW,UAzBf,EA0BHX,MAAM,CAACY,WA1BJ,EA4BUZ,MAAM,CAACa,WA5BjB,EAiCHb,MAAM,CAACc,WAjCJ,EAkCQd,MAAM,CAACe,WAlCf,EAoCUf,MAAM,CAACe,WApCjB,EAyCDX,SAAS,CAACY,KAzCT,EA0CQhB,MAAM,CAACiB,UA1Cf,EA2CHjB,MAAM,CAACkB,WA3CJ,EA6CUlB,MAAM,CAACa,WA7CjB,EAkDVZ,WAlDU,CAAhB;;AAuDA,IAAMkB,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAoI;EAClJ,IAAMC,eAAe,GAAGhB,kBAAkB,EAA1C;EACA,oBACE,KAAC,UAAD,kCAAgBe,KAAhB;IAAuB,GAAG,EAAEC;EAA5B,GADF;AAGD,CALD;;AAOA,eAAeF,OAAf"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../../src/NavItem/index.ts"],"sourcesContent":["export { default as NavItem } from './NavItem';\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../../src/NavItem/index.ts"],"sourcesContent":["export { default as NavItem } from './NavItem';\nexport { type StyledComponentPropsWithAs } from './NavItem';\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
@@ -1 +1,2 @@
1
1
  export { default as NavItem } from './NavItem';
2
+ export { type StyledComponentPropsWithAs } from './NavItem';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","NavItem"],"sources":["../../src/NavItem/index.ts"],"sourcesContent":["export { default as NavItem } from './NavItem';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,OAApB,QAAmC,WAAnC"}
1
+ {"version":3,"file":"index.js","names":["default","NavItem"],"sources":["../../src/NavItem/index.ts"],"sourcesContent":["export { default as NavItem } from './NavItem';\nexport { type StyledComponentPropsWithAs } from './NavItem';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,OAApB,QAAmC,WAAnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laerdal/life-react-components",
3
- "version": "1.11.0-dev.44.full",
3
+ "version": "1.11.0-dev.45",
4
4
  "private": false,
5
5
  "author": "Erik Martirosyan <erik.martirosyan@laerdal.com>",
6
6
  "contributors": [],
@@ -53,16 +53,16 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@laerdal/figma-svg": "^2.10.3",
56
- "react": "^17.0.2",
57
- "react-dom": "^17.0.2",
58
56
  "@types/node": "^18.0.6",
59
57
  "@types/react": "^17.0.47",
60
58
  "animated-scroll-to": "^2.3.0",
59
+ "dayjs": "^1.11.5",
61
60
  "nanoid": "3.3.4",
61
+ "react": "^17.0.2",
62
62
  "react-datepicker": "^4.8.0",
63
+ "react-dom": "^17.0.2",
63
64
  "react-inlinesvg": "^3.0.0",
64
65
  "react-modal": "^3.15.1",
65
- "dayjs": "^1.11.5",
66
66
  "rooks": "^7.1.1",
67
67
  "styled-components": "^5.3.5",
68
68
  "typescript": "^4.8.2"
@@ -71,9 +71,9 @@
71
71
  "@babel/cli": "^7.18.10",
72
72
  "@babel/plugin-proposal-class-properties": "^7.18.6",
73
73
  "@babel/plugin-proposal-export-default-from": "^7.18.10",
74
+ "@babel/plugin-proposal-numeric-separator": "^7.18.6",
74
75
  "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
75
76
  "@babel/plugin-transform-runtime": "^7.18.10",
76
- "@babel/plugin-proposal-numeric-separator": "^7.18.6",
77
77
  "@babel/preset-env": "^7.19.0",
78
78
  "@babel/preset-react": "^7.18.6",
79
79
  "@babel/preset-typescript": "^7.18.6",
@@ -83,12 +83,12 @@
83
83
  "@testing-library/user-event": "^14.3.0",
84
84
  "@types/enzyme": "^3.10.12",
85
85
  "@types/jest": "^26.0.24",
86
+ "@types/node": "^18.0.6",
87
+ "@types/react": "^17.0.47",
86
88
  "@types/react-datepicker": "^4.4.2",
87
89
  "@types/react-modal": "^3.13.1",
88
90
  "@types/react-router-dom": "^5.3.3",
89
91
  "@types/styled-components": "^5.1.25",
90
- "@types/node": "^18.0.6",
91
- "@types/react": "^17.0.47",
92
92
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
93
93
  "babel-plugin-inline-react-svg": "^2.0.1",
94
94
  "babel-plugin-typescript-to-proptypes": "^2.0.0",
@@ -96,6 +96,7 @@
96
96
  "cross-env": "^7.0.3",
97
97
  "cypress": "^9.5.0",
98
98
  "enzyme": "^3.11.0",
99
+ "history": "^5.3.0",
99
100
  "jest": "^26.6.3",
100
101
  "jest-environment-jsdom-sixteen": "^2.0.0",
101
102
  "jest-react-hooks-shallow": "^1.5.1",