@helsenorge/designsystem-react 2.9.3 → 2.10.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.
- package/Avatar.js +2 -0
- package/Avatar.js.map +1 -0
- package/Badge.js +1 -1
- package/Badge.js.map +1 -1
- package/CHANGELOG.md +19 -0
- package/FormGroup.js +1 -1
- package/FormGroup.js.map +1 -1
- package/ListHeader.js +2 -0
- package/ListHeader.js.map +1 -0
- package/ListHeaderText.js +2 -0
- package/ListHeaderText.js.map +1 -0
- package/StatusDot.js +2 -0
- package/StatusDot.js.map +1 -0
- package/components/Avatar/Avatar.d.ts +3 -2
- package/components/Avatar/Avatar.d.ts.map +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Avatar/index.js.map +1 -1
- package/components/Badge/Badge.d.ts +3 -2
- package/components/Badge/Badge.d.ts.map +1 -1
- package/components/Badge/styles.module.scss +1 -4
- package/components/Badge/styles.module.scss.d.ts +0 -1
- package/components/ExpanderList/ExpanderList.d.ts +10 -4
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/componentdata.json +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/ExpanderList/index.js.map +1 -1
- package/components/ExpanderList/styles.module.scss +29 -67
- package/components/ExpanderList/styles.module.scss.d.ts +3 -6
- package/components/FormExample/index.js +2 -2
- package/components/FormExample/index.js.map +1 -1
- package/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/Icons/Coins.js +1 -1
- package/components/Icons/Coins.js.map +1 -1
- package/components/Icons/PersonCancel.js +1 -1
- package/components/Icons/PersonCancel.js.map +1 -1
- package/components/Icons/TravelRoute.js +1 -1
- package/components/Icons/TravelRoute.js.map +1 -1
- package/components/LinkList/LinkList.d.ts +13 -8
- package/components/LinkList/LinkList.d.ts.map +1 -1
- package/components/LinkList/componentdata.json +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/LinkList/index.js.map +1 -1
- package/components/LinkList/styles.module.scss +35 -61
- package/components/LinkList/styles.module.scss.d.ts +3 -5
- package/components/ListHeader/ListHeader.d.ts +38 -0
- package/components/ListHeader/ListHeader.d.ts.map +1 -0
- package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts +24 -0
- package/components/ListHeader/ListHeaderText/ListHeaderText.d.ts.map +1 -0
- package/components/ListHeader/ListHeaderText/componentdata.json +1 -0
- package/components/ListHeader/ListHeaderText/index.d.ts +4 -0
- package/components/ListHeader/ListHeaderText/index.d.ts.map +1 -0
- package/components/ListHeader/ListHeaderText/index.js +2 -0
- package/components/ListHeader/ListHeaderText/index.js.map +1 -0
- package/components/ListHeader/componentdata.json +1 -0
- package/components/ListHeader/index.d.ts +5 -0
- package/components/ListHeader/index.d.ts.map +1 -0
- package/components/ListHeader/index.js +2 -0
- package/components/ListHeader/index.js.map +1 -0
- package/components/ListHeader/styles.module.scss +150 -0
- package/components/ListHeader/styles.module.scss.d.ts +41 -0
- package/components/NotificationPanel/styles.module.scss +2 -1
- package/components/StatusDot/StatusDot.d.ts.map +1 -1
- package/components/StatusDot/index.js +1 -1
- package/components/StatusDot/index.js.map +1 -1
- package/components/StatusDot/styles.module.scss +1 -0
- package/components/Validation/index.js +1 -1
- package/package.json +1 -1
- package/utils/component.d.ts +3 -0
- package/utils/component.d.ts.map +1 -0
- package/utils/component.js +2 -0
- package/utils/component.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AASrE,oBAAY,aAAa,GAAG,UAAU,GAAG,KAAK,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,SAAS,uFA2GpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../FormGroup.js";import{F as
|
|
1
|
+
import"../../FormGroup.js";import{F as J,F as K}from"../../FormGroup.js";import"react";import"classnames";import"./styles.module.scss";import"../../Checkbox.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../constants.js";import"../../hooks/useUuid.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../Checkbox/styles.module.scss";import"../../RadioButton.js";import"../RadioButton/styles.module.scss";import"../../Input.js";import"../../hooks/useBreakpoint.js";import"../../ErrorWrapper.js";import"../ErrorWrapper/styles.module.scss";import"../Input/styles.module.scss";import"../../Title.js";import"../Title/styles.module.scss";import"../../FormLayout.js";import"../FormLayout/styles.module.scss";import"../../Select.js";import"../Select/styles.module.scss";import"../Icons/ChevronDown.js";import"../../utils/component.js";export{J as FormGroup,K as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import c from"react";const l=({size:a,isHovered:v})=>v?c.createElement("path",{
|
|
1
|
+
import c from"react";const l=({size:a,isHovered:v})=>v?c.createElement("path",{fillRule:"evenodd",d:"M9.915 4.8C8.826 5.344 8.4 5.977 8.4 6.48c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.185-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.68 0-.505-.426-1.138-1.515-1.682-1.05-.525-2.547-.87-4.235-.87-1.688 0-3.185.345-4.235.87ZM19.9 8.75a5.858 5.858 0 0 1-.934.575c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006A5.863 5.863 0 0 1 8.4 8.75v2c0 .504.426 1.136 1.515 1.68 1.05.526 2.547.87 4.235.87 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68v-2Zm1.3-2.269v4.267c0 1.263-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006C8.107 12.98 7.1 12.011 7.1 10.748V6.481c0-1.262 1.006-2.23 2.234-2.844 1.266-.633 2.97-1.006 4.816-1.006 1.846 0 3.55.373 4.816 1.006 1.227.614 2.234 1.582 2.234 2.844ZM9.915 16.817C8.826 17.36 8.4 17.993 8.4 18.498c0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.185-.343 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681 0-.505-.426-1.137-1.515-1.681-1.05-.526-2.547-.869-4.235-.869-1.688 0-3.185.343-4.235.869Zm-.581-1.163c1.266-.633 2.97-1.006 4.816-1.006 1.846 0 3.55.373 4.816 1.006 1.227.613 2.234 1.581 2.234 2.844 0 .036 0 .072-.002.108a.672.672 0 0 1 .002.057v4.267c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 1 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 0 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006-1.227-.614-2.234-1.582-2.234-2.844v-12.8c0-.018 0-.037.002-.056a2.352 2.352 0 0 1-.002-.108c0-1.263 1.007-2.23 2.234-2.844ZM8.4 20.766v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.857 5.857 0 0 1-.934-.576Zm20.19-5.112c1.267-.633 2.97-1.006 4.817-1.006 1.846 0 3.55.373 4.816 1.006 1.227.613 2.234 1.581 2.234 2.844l-.003.108a.672.672 0 0 1 .003.057v12.799c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.228-.614-2.234-1.582-2.234-2.844v-4.267c0-.02 0-.038.002-.057a2.41 2.41 0 0 1-.002-.108c0-1.263 1.006-2.23 2.234-2.844Zm-.933 5.112v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.862 5.862 0 0 1-.934-.576Zm1.515-3.95c-1.089.545-1.515 1.177-1.515 1.682 0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681 0-.505-.426-1.137-1.515-1.681-1.05-.526-2.547-.869-4.235-.869-1.688 0-3.185.343-4.235.869Zm-9.657 10.832C18.426 28.192 18 28.825 18 29.33c0 .505.426 1.137 1.515 1.682 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68 0-.505-.426-1.137-1.515-1.682-1.05-.525-2.547-.868-4.235-.868-1.688 0-3.185.343-4.235.868Zm9.985 3.95c-.285.217-.601.41-.934.575-1.266.634-2.97 1.007-4.816 1.007-1.846 0-3.55-.373-4.816-1.007a5.86 5.86 0 0 1-.934-.576v1.999c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998Zm0 4.266c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.86 5.86 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.868 1.089-.545 1.515-1.177 1.515-1.682v-1.998Zm-12.8-6.535c0-1.262 1.007-2.23 2.234-2.844 1.266-.633 2.97-1.005 4.816-1.005 1.846 0 3.55.372 4.816 1.005 1.227.614 2.234 1.582 2.234 2.844v8.533c0 1.263-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.227-.613-2.234-1.581-2.234-2.844v-8.533Z"}):c.createElement("path",{fillRule:"evenodd",d:"M9.915 12.55c-1.089.544-1.515 1.177-1.515 1.68 0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.185-.343 4.235-.868 1.089-.545 1.515-1.177 1.515-1.681 0-.505-.426-1.138-1.515-1.682-1.05-.526-2.547-.87-4.235-.87-1.688 0-3.185.345-4.235.87ZM19.9 16.5a5.858 5.858 0 0 1-.934.575c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006A5.864 5.864 0 0 1 8.4 16.5v2c0 .504.426 1.136 1.515 1.68 1.05.526 2.547.87 4.235.87 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68v-2Zm1.3-2.268v4.266c0 .036 0 .072-.002.108a.668.668 0 0 1 .002.057v4.267c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 1 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 0 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006-1.227-.614-2.234-1.582-2.234-2.844v-12.8c0-.018 0-.037.002-.056a2.352 2.352 0 0 1-.002-.108v-4.267c0-1.262 1.006-2.23 2.234-2.844 1.266-.633 2.97-1.006 4.816-1.006 1.846 0 3.55.373 4.816 1.006 1.227.614 2.234 1.582 2.234 2.845ZM8.4 20.765v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.218-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.872 5.872 0 0 1-.934-.576Zm20.19-5.112c1.267-.633 2.97-1.006 4.817-1.006 1.846 0 3.55.373 4.816 1.006 1.227.613 2.234 1.581 2.234 2.844l-.003.108a.672.672 0 0 1 .003.057v12.799c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.228-.614-2.234-1.582-2.234-2.844v-4.267c0-.02 0-.038.002-.057a2.41 2.41 0 0 1-.002-.108c0-1.263 1.006-2.23 2.234-2.844Zm-.933 5.112v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.862 5.862 0 0 1-.934-.576Zm1.515-3.95c-1.089.545-1.515 1.177-1.515 1.682 0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681 0-.505-.426-1.137-1.515-1.681-1.05-.526-2.547-.869-4.235-.869-1.688 0-3.185.343-4.235.869Zm-9.657 10.832C18.426 28.192 18 28.825 18 29.33c0 .505.426 1.137 1.515 1.682 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68 0-.505-.426-1.137-1.515-1.682-1.05-.525-2.547-.868-4.235-.868-1.688 0-3.185.343-4.235.868Zm9.985 3.95c-.285.217-.601.41-.934.575-1.266.634-2.97 1.007-4.816 1.007-1.846 0-3.55-.373-4.816-1.007a5.86 5.86 0 0 1-.934-.576v1.999c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998Zm0 4.266c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.86 5.86 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.868 1.089-.545 1.515-1.177 1.515-1.682v-1.998Zm-12.8-6.535c0-1.262 1.007-2.23 2.234-2.844 1.266-.633 2.97-1.005 4.816-1.005 1.846 0 3.55.372 4.816 1.005 1.227.614 2.234 1.582 2.234 2.844v8.533c0 1.263-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.227-.613-2.234-1.581-2.234-2.844v-8.533Z"});export{l as default};
|
|
2
2
|
//# sourceMappingURL=Coins.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Coins.js","sources":["../../../src/components/Icons/Coins.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgPathProps } from './Icon';\n\nconst Coins: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <path\n
|
|
1
|
+
{"version":3,"file":"Coins.js","sources":["../../../src/components/Icons/Coins.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgPathProps } from './Icon';\n\nconst Coins: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <path\n fillRule=\"evenodd\"\n d=\"M9.915 12.55c-1.089.544-1.515 1.177-1.515 1.68 0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.185-.343 4.235-.868 1.089-.545 1.515-1.177 1.515-1.681 0-.505-.426-1.138-1.515-1.682-1.05-.526-2.547-.87-4.235-.87-1.688 0-3.185.345-4.235.87ZM19.9 16.5a5.858 5.858 0 0 1-.934.575c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006A5.864 5.864 0 0 1 8.4 16.5v2c0 .504.426 1.136 1.515 1.68 1.05.526 2.547.87 4.235.87 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68v-2Zm1.3-2.268v4.266c0 .036 0 .072-.002.108a.668.668 0 0 1 .002.057v4.267c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 1 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 0 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006-1.227-.614-2.234-1.582-2.234-2.844v-12.8c0-.018 0-.037.002-.056a2.352 2.352 0 0 1-.002-.108v-4.267c0-1.262 1.006-2.23 2.234-2.844 1.266-.633 2.97-1.006 4.816-1.006 1.846 0 3.55.373 4.816 1.006 1.227.614 2.234 1.582 2.234 2.845ZM8.4 20.765v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.218-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.872 5.872 0 0 1-.934-.576Zm20.19-5.112c1.267-.633 2.97-1.006 4.817-1.006 1.846 0 3.55.373 4.816 1.006 1.227.613 2.234 1.581 2.234 2.844l-.003.108a.672.672 0 0 1 .003.057v12.799c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.228-.614-2.234-1.582-2.234-2.844v-4.267c0-.02 0-.038.002-.057a2.41 2.41 0 0 1-.002-.108c0-1.263 1.006-2.23 2.234-2.844Zm-.933 5.112v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.862 5.862 0 0 1-.934-.576Zm1.515-3.95c-1.089.545-1.515 1.177-1.515 1.682 0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681 0-.505-.426-1.137-1.515-1.681-1.05-.526-2.547-.869-4.235-.869-1.688 0-3.185.343-4.235.869Zm-9.657 10.832C18.426 28.192 18 28.825 18 29.33c0 .505.426 1.137 1.515 1.682 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68 0-.505-.426-1.137-1.515-1.682-1.05-.525-2.547-.868-4.235-.868-1.688 0-3.185.343-4.235.868Zm9.985 3.95c-.285.217-.601.41-.934.575-1.266.634-2.97 1.007-4.816 1.007-1.846 0-3.55-.373-4.816-1.007a5.86 5.86 0 0 1-.934-.576v1.999c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998Zm0 4.266c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.86 5.86 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.868 1.089-.545 1.515-1.177 1.515-1.682v-1.998Zm-12.8-6.535c0-1.262 1.007-2.23 2.234-2.844 1.266-.633 2.97-1.005 4.816-1.005 1.846 0 3.55.372 4.816 1.005 1.227.614 2.234 1.582 2.234 2.844v8.533c0 1.263-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.227-.613-2.234-1.581-2.234-2.844v-8.533Z\"\n />\n );\n\n const normalHover = (\n <path\n fillRule=\"evenodd\"\n d=\"M9.915 4.8C8.826 5.344 8.4 5.977 8.4 6.48c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.185-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.68 0-.505-.426-1.138-1.515-1.682-1.05-.525-2.547-.87-4.235-.87-1.688 0-3.185.345-4.235.87ZM19.9 8.75a5.858 5.858 0 0 1-.934.575c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006A5.863 5.863 0 0 1 8.4 8.75v2c0 .504.426 1.136 1.515 1.68 1.05.526 2.547.87 4.235.87 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68v-2Zm1.3-2.269v4.267c0 1.263-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006C8.107 12.98 7.1 12.011 7.1 10.748V6.481c0-1.262 1.006-2.23 2.234-2.844 1.266-.633 2.97-1.006 4.816-1.006 1.846 0 3.55.373 4.816 1.006 1.227.614 2.234 1.582 2.234 2.844ZM9.915 16.817C8.826 17.36 8.4 17.993 8.4 18.498c0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.185-.343 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681 0-.505-.426-1.137-1.515-1.681-1.05-.526-2.547-.869-4.235-.869-1.688 0-3.185.343-4.235.869Zm-.581-1.163c1.266-.633 2.97-1.006 4.816-1.006 1.846 0 3.55.373 4.816 1.006 1.227.613 2.234 1.581 2.234 2.844 0 .036 0 .072-.002.108a.672.672 0 0 1 .002.057v4.267c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 1 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006a5.865 5.865 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869a.65.65 0 0 1 0 1.3c-1.846 0-3.55-.373-4.816-1.006-1.227-.614-2.234-1.582-2.234-2.844v-12.8c0-.018 0-.037.002-.056a2.352 2.352 0 0 1-.002-.108c0-1.263 1.007-2.23 2.234-2.844ZM8.4 20.766v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.857 5.857 0 0 1-.934-.576Zm20.19-5.112c1.267-.633 2.97-1.006 4.817-1.006 1.846 0 3.55.373 4.816 1.006 1.227.613 2.234 1.581 2.234 2.844l-.003.108a.672.672 0 0 1 .003.057v12.799c0 1.262-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006a.65.65 0 0 1 0-1.3c1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998a5.86 5.86 0 0 1-.934.576c-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.228-.614-2.234-1.582-2.234-2.844v-4.267c0-.02 0-.038.002-.057a2.41 2.41 0 0 1-.002-.108c0-1.263 1.006-2.23 2.234-2.844Zm-.933 5.112v2.164c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.177 1.515-1.681v-2.164c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.862 5.862 0 0 1-.934-.576Zm1.515-3.95c-1.089.545-1.515 1.177-1.515 1.682 0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681 0-.505-.426-1.137-1.515-1.681-1.05-.526-2.547-.869-4.235-.869-1.688 0-3.185.343-4.235.869Zm-9.657 10.832C18.426 28.192 18 28.825 18 29.33c0 .505.426 1.137 1.515 1.682 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.87 1.089-.544 1.515-1.176 1.515-1.68 0-.505-.426-1.137-1.515-1.682-1.05-.525-2.547-.868-4.235-.868-1.688 0-3.185.343-4.235.868Zm9.985 3.95c-.285.217-.601.41-.934.575-1.266.634-2.97 1.007-4.816 1.007-1.846 0-3.55-.373-4.816-1.007a5.86 5.86 0 0 1-.934-.576v1.999c0 .505.426 1.137 1.515 1.681 1.05.525 2.547.869 4.235.869 1.688 0 3.184-.344 4.235-.869 1.089-.544 1.515-1.176 1.515-1.681v-1.998Zm0 4.266c-.285.217-.601.41-.934.576-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006a5.86 5.86 0 0 1-.934-.576v1.998c0 .505.426 1.137 1.515 1.681 1.05.526 2.547.869 4.235.869 1.688 0 3.184-.343 4.235-.868 1.089-.545 1.515-1.177 1.515-1.682v-1.998Zm-12.8-6.535c0-1.262 1.007-2.23 2.234-2.844 1.266-.633 2.97-1.005 4.816-1.005 1.846 0 3.55.372 4.816 1.005 1.227.614 2.234 1.582 2.234 2.844v8.533c0 1.263-1.007 2.23-2.234 2.844-1.266.633-2.97 1.006-4.816 1.006-1.846 0-3.55-.373-4.816-1.006-1.227-.613-2.234-1.581-2.234-2.844v-8.533Z\"\n />\n );\n\n return isHovered ? normalHover : normal;\n};\n\nexport default Coins;\n"],"names":["Coins","size","isHovered","React"],"mappings":"qBAGA,MAAMA,EAAgC,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAetCA,EANJC,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,2oIAAA,CACJ,EAVCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,goHAAA,CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{getIcon as
|
|
1
|
+
import e from"react";import{getIcon as d}from"./Icon.js";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const Z=({size:a,isHovered:l})=>{const v=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M19.304 7.507a5.728 5.728 0 0 0-5.728 5.728v3.11a5.728 5.728 0 0 0 5.728 5.728h.365a5.728 5.728 0 0 0 5.728-5.728v-3.11a5.728 5.728 0 0 0-5.728-5.728h-.365Zm-7.028 5.728a7.028 7.028 0 0 1 7.028-7.028h.365a7.028 7.028 0 0 1 7.028 7.028v3.11a7.028 7.028 0 0 1-7.028 7.028h-.365a7.028 7.028 0 0 1-7.028-7.028v-3.11Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"M17.09 10.651a2.83 2.83 0 0 1-2.832 2.83h-1.221v1h1.221a3.83 3.83 0 0 0 3.332-1.938 3.895 3.895 0 0 0 3.396 1.986h5.045v-1h-5.045a2.896 2.896 0 0 1-2.896-2.88v-.017l-.5.002h-.5v.017Zm7.562 15.083c-.247-.095-.5-.18-.756-.255l-.252-.074-.233.123a8.379 8.379 0 0 1-7.833 0l-.233-.123-.253.074a9.612 9.612 0 0 0-6.926 9.223v4.426h22.656V35.89a8.752 8.752 0 0 1-1.3-.496v2.434H9.466v-3.126a8.317 8.317 0 0 1 5.747-7.9 9.677 9.677 0 0 0 8.563 0c.245.08.485.17.72.271.019-.456.072-.904.157-1.34ZM37.2 32.242l-8.707-8.707.92-.92 8.707 8.708-.92.919Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"m29.41 32.244 8.743-8.655-.915-.924-8.743 8.655.915.924Z",clipRule:"evenodd"})),t=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M19.304 7.507a5.728 5.728 0 0 0-5.728 5.728v3.11a5.728 5.728 0 0 0 5.728 5.728h.365a5.728 5.728 0 0 0 5.728-5.728v-3.11a5.728 5.728 0 0 0-5.728-5.728h-.365Zm-7.028 5.728a7.028 7.028 0 0 1 7.028-7.028h.365a7.028 7.028 0 0 1 7.028 7.028v3.11a7.028 7.028 0 0 1-7.028 7.028h-.365a7.028 7.028 0 0 1-7.028-7.028v-3.11Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"M17.09 10.651a2.83 2.83 0 0 1-2.832 2.83h-1.221v1h1.221a3.83 3.83 0 0 0 3.332-1.938 3.895 3.895 0 0 0 3.396 1.986h5.045v-1h-5.045a2.896 2.896 0 0 1-2.896-2.88v-.017l-.5.002h-.5v.017Zm7.562 15.083c-.247-.095-.5-.18-.756-.255l-.252-.074-.233.123a8.379 8.379 0 0 1-7.833 0l-.233-.123-.253.074a9.612 9.612 0 0 0-6.926 9.223v4.426h22.656V35.89a8.752 8.752 0 0 1-1.3-.496v2.434H9.466v-3.126a8.317 8.317 0 0 1 5.747-7.9 9.677 9.677 0 0 0 8.563 0c.245.08.485.17.72.271.019-.456.072-.904.157-1.34Zm13.842 7.801L27.188 22.229l.92-.92 11.306 11.307-.92.919Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"m28.105 33.536 11.352-11.238-.914-.923L27.19 32.612l.915.923Z",clipRule:"evenodd"})),h=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M13.747 13.235a5.557 5.557 0 0 1 5.557-5.557h.365a5.557 5.557 0 0 1 5.557 5.557v.162h-4.24a2.764 2.764 0 0 1-2.764-2.748v-.018l-.632.003h-.631v.017a2.699 2.699 0 0 1-2.7 2.698h-.512v-.114Zm0 1.378v1.732a5.557 5.557 0 0 0 5.557 5.557h.365a5.557 5.557 0 0 0 5.557-5.557v-1.684h-4.24a4.029 4.029 0 0 1-3.396-1.864 3.965 3.965 0 0 1-3.332 1.816h-.511Zm5.557-8.577a7.2 7.2 0 0 0-7.2 7.2v3.11a7.2 7.2 0 0 0 7.2 7.198h.365a7.2 7.2 0 0 0 7.2-7.199v-3.11a7.2 7.2 0 0 0-7.2-7.199h-.365Zm11.689 29.902v5.305H7.995v-6.54a9.783 9.783 0 0 1 7.049-9.388l.32-.092.294.155a8.206 8.206 0 0 0 7.673 0l.294-.155.32.093c.25.073.499.156.742.249a8.837 8.837 0 0 0-.196 1.694 8.192 8.192 0 0 0-.703-.272 9.85 9.85 0 0 1-8.587 0 8.14 8.14 0 0 0-5.564 7.717V39.6h19.714v-4.29c.52.261 1.07.473 1.642.628Zm2.332-7.329 3.754 3.754 1.161-1.161-3.748-3.748 3.78-3.743-1.154-1.167-3.787 3.748-3.798-3.798-1.161 1.161 3.792 3.793-3.79 3.751 1.156 1.167 3.795-3.757Z"})),n=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M13.747 13.235a5.557 5.557 0 0 1 5.557-5.557h.365a5.557 5.557 0 0 1 5.557 5.557v.162h-4.24a2.764 2.764 0 0 1-2.764-2.748v-.018l-.632.003h-.631v.017a2.699 2.699 0 0 1-2.7 2.698h-.512v-.114Zm0 1.378v1.732a5.557 5.557 0 0 0 5.557 5.557h.365a5.557 5.557 0 0 0 5.557-5.557v-1.684h-4.24a4.03 4.03 0 0 1-3.396-1.864 3.965 3.965 0 0 1-3.332 1.816h-.511Zm5.557-8.577a7.2 7.2 0 0 0-7.2 7.2v3.11a7.2 7.2 0 0 0 7.2 7.198h.365a7.2 7.2 0 0 0 7.2-7.199v-3.11a7.2 7.2 0 0 0-7.2-7.199h-.365Zm11.689 31.69v3.517H7.995v-6.54a9.783 9.783 0 0 1 7.049-9.388l.32-.092.294.155a8.206 8.206 0 0 0 7.328.172 10.12 10.12 0 0 0-.242 1.87 9.847 9.847 0 0 1-7.543-.433 8.14 8.14 0 0 0-5.564 7.717V39.6h19.714v-2.325c.528.194 1.077.346 1.642.45Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"M32.165 27.448 27.21 22.49l1.161-1.16 4.962 4.961 4.949-4.898 1.155 1.167-4.942 4.893 4.9 4.9-1.161 1.161-4.906-4.906-4.96 4.91-1.155-1.168 4.953-4.903Z",clipRule:"evenodd"})," ");return d(a,l,v,t,h,n)};export{Z as default};
|
|
2
2
|
//# sourceMappingURL=PersonCancel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonCancel.js","sources":["../../../src/components/Icons/PersonCancel.tsx"],"sourcesContent":["import React from 'react';\nimport { getIcon, SvgPathProps } from './Icon';\n\nconst PersonCancel: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <>\n <path\n
|
|
1
|
+
{"version":3,"file":"PersonCancel.js","sources":["../../../src/components/Icons/PersonCancel.tsx"],"sourcesContent":["import React from 'react';\nimport { getIcon, SvgPathProps } from './Icon';\n\nconst PersonCancel: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M19.304 7.507a5.728 5.728 0 0 0-5.728 5.728v3.11a5.728 5.728 0 0 0 5.728 5.728h.365a5.728 5.728 0 0 0 5.728-5.728v-3.11a5.728 5.728 0 0 0-5.728-5.728h-.365Zm-7.028 5.728a7.028 7.028 0 0 1 7.028-7.028h.365a7.028 7.028 0 0 1 7.028 7.028v3.11a7.028 7.028 0 0 1-7.028 7.028h-.365a7.028 7.028 0 0 1-7.028-7.028v-3.11Z\"\n clipRule=\"evenodd\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M17.09 10.651a2.83 2.83 0 0 1-2.832 2.83h-1.221v1h1.221a3.83 3.83 0 0 0 3.332-1.938 3.895 3.895 0 0 0 3.396 1.986h5.045v-1h-5.045a2.896 2.896 0 0 1-2.896-2.88v-.017l-.5.002h-.5v.017Zm7.562 15.083c-.247-.095-.5-.18-.756-.255l-.252-.074-.233.123a8.379 8.379 0 0 1-7.833 0l-.233-.123-.253.074a9.612 9.612 0 0 0-6.926 9.223v4.426h22.656V35.89a8.752 8.752 0 0 1-1.3-.496v2.434H9.466v-3.126a8.317 8.317 0 0 1 5.747-7.9 9.677 9.677 0 0 0 8.563 0c.245.08.485.17.72.271.019-.456.072-.904.157-1.34ZM37.2 32.242l-8.707-8.707.92-.92 8.707 8.708-.92.919Z\"\n clipRule=\"evenodd\"\n />\n <path fillRule=\"evenodd\" d=\"m29.41 32.244 8.743-8.655-.915-.924-8.743 8.655.915.924Z\" clipRule=\"evenodd\" />\n </>\n );\n\n const normalHover = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M19.304 7.507a5.728 5.728 0 0 0-5.728 5.728v3.11a5.728 5.728 0 0 0 5.728 5.728h.365a5.728 5.728 0 0 0 5.728-5.728v-3.11a5.728 5.728 0 0 0-5.728-5.728h-.365Zm-7.028 5.728a7.028 7.028 0 0 1 7.028-7.028h.365a7.028 7.028 0 0 1 7.028 7.028v3.11a7.028 7.028 0 0 1-7.028 7.028h-.365a7.028 7.028 0 0 1-7.028-7.028v-3.11Z\"\n clipRule=\"evenodd\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M17.09 10.651a2.83 2.83 0 0 1-2.832 2.83h-1.221v1h1.221a3.83 3.83 0 0 0 3.332-1.938 3.895 3.895 0 0 0 3.396 1.986h5.045v-1h-5.045a2.896 2.896 0 0 1-2.896-2.88v-.017l-.5.002h-.5v.017Zm7.562 15.083c-.247-.095-.5-.18-.756-.255l-.252-.074-.233.123a8.379 8.379 0 0 1-7.833 0l-.233-.123-.253.074a9.612 9.612 0 0 0-6.926 9.223v4.426h22.656V35.89a8.752 8.752 0 0 1-1.3-.496v2.434H9.466v-3.126a8.317 8.317 0 0 1 5.747-7.9 9.677 9.677 0 0 0 8.563 0c.245.08.485.17.72.271.019-.456.072-.904.157-1.34Zm13.842 7.801L27.188 22.229l.92-.92 11.306 11.307-.92.919Z\"\n clipRule=\"evenodd\"\n />\n <path fillRule=\"evenodd\" d=\"m28.105 33.536 11.352-11.238-.914-.923L27.19 32.612l.915.923Z\" clipRule=\"evenodd\" />\n </>\n );\n\n const xSmall = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M13.747 13.235a5.557 5.557 0 0 1 5.557-5.557h.365a5.557 5.557 0 0 1 5.557 5.557v.162h-4.24a2.764 2.764 0 0 1-2.764-2.748v-.018l-.632.003h-.631v.017a2.699 2.699 0 0 1-2.7 2.698h-.512v-.114Zm0 1.378v1.732a5.557 5.557 0 0 0 5.557 5.557h.365a5.557 5.557 0 0 0 5.557-5.557v-1.684h-4.24a4.029 4.029 0 0 1-3.396-1.864 3.965 3.965 0 0 1-3.332 1.816h-.511Zm5.557-8.577a7.2 7.2 0 0 0-7.2 7.2v3.11a7.2 7.2 0 0 0 7.2 7.198h.365a7.2 7.2 0 0 0 7.2-7.199v-3.11a7.2 7.2 0 0 0-7.2-7.199h-.365Zm11.689 29.902v5.305H7.995v-6.54a9.783 9.783 0 0 1 7.049-9.388l.32-.092.294.155a8.206 8.206 0 0 0 7.673 0l.294-.155.32.093c.25.073.499.156.742.249a8.837 8.837 0 0 0-.196 1.694 8.192 8.192 0 0 0-.703-.272 9.85 9.85 0 0 1-8.587 0 8.14 8.14 0 0 0-5.564 7.717V39.6h19.714v-4.29c.52.261 1.07.473 1.642.628Zm2.332-7.329 3.754 3.754 1.161-1.161-3.748-3.748 3.78-3.743-1.154-1.167-3.787 3.748-3.798-3.798-1.161 1.161 3.792 3.793-3.79 3.751 1.156 1.167 3.795-3.757Z\"\n />\n </>\n );\n\n const xSmallHover = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M13.747 13.235a5.557 5.557 0 0 1 5.557-5.557h.365a5.557 5.557 0 0 1 5.557 5.557v.162h-4.24a2.764 2.764 0 0 1-2.764-2.748v-.018l-.632.003h-.631v.017a2.699 2.699 0 0 1-2.7 2.698h-.512v-.114Zm0 1.378v1.732a5.557 5.557 0 0 0 5.557 5.557h.365a5.557 5.557 0 0 0 5.557-5.557v-1.684h-4.24a4.03 4.03 0 0 1-3.396-1.864 3.965 3.965 0 0 1-3.332 1.816h-.511Zm5.557-8.577a7.2 7.2 0 0 0-7.2 7.2v3.11a7.2 7.2 0 0 0 7.2 7.198h.365a7.2 7.2 0 0 0 7.2-7.199v-3.11a7.2 7.2 0 0 0-7.2-7.199h-.365Zm11.689 31.69v3.517H7.995v-6.54a9.783 9.783 0 0 1 7.049-9.388l.32-.092.294.155a8.206 8.206 0 0 0 7.328.172 10.12 10.12 0 0 0-.242 1.87 9.847 9.847 0 0 1-7.543-.433 8.14 8.14 0 0 0-5.564 7.717V39.6h19.714v-2.325c.528.194 1.077.346 1.642.45Z\"\n clipRule=\"evenodd\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M32.165 27.448 27.21 22.49l1.161-1.16 4.962 4.961 4.949-4.898 1.155 1.167-4.942 4.893 4.9 4.9-1.161 1.161-4.906-4.906-4.96 4.91-1.155-1.168 4.953-4.903Z\"\n clipRule=\"evenodd\"\n />{' '}\n </>\n );\n\n return getIcon(size, isHovered, normal, normalHover, xSmall, xSmallHover);\n};\n\nexport default PersonCancel;\n"],"names":["PersonCancel","size","isHovered","normal","React","normalHover","xSmall","xSmallHover","getIcon"],"mappings":"+LAGA,MAAMA,EAAuC,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAA2C,CACzF,MAAAC,kCAEDC,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,2TACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,giBACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CAAK,SAAS,UAAU,EAAE,2DAA2D,SAAS,SAAU,CAAA,CAC3G,EAGIC,kCAEDD,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,2TACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,qiBACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CAAK,SAAS,UAAU,EAAE,gEAAgE,SAAS,SAAU,CAAA,CAChH,EAGIE,kCAEDF,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,s6BACJ,CAAA,CACF,EAGIG,kCAEDH,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,4sBACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,2JACF,SAAS,SAAA,CACX,EAAG,GACL,EAGF,OAAOI,EAAQP,EAAMC,EAAWC,EAAQE,EAAaC,EAAQC,CAAW,CAC1E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";const
|
|
1
|
+
import e from"react";const n=({size:t,isHovered:l})=>{const a=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"m17.354 9.75-4.149-4.668-.971.864L15.037 9.1H7.085v1.3h7.952l-2.803 3.154.971.863 4.15-4.667Zm2.826.65h12.095c3.8 0 6.825 2.927 6.825 6.475 0 3.547-3.026 6.475-6.825 6.475H14.062c-4.381 0-7.962 3.465-7.962 7.775 0 4.31 3.58 7.775 7.963 7.775H26.74a.65.65 0 1 0 0-1.3H14.063c-3.696 0-6.663-2.915-6.663-6.475 0-3.56 2.967-6.475 6.662-6.475h18.213c4.458 0 8.125-3.452 8.125-7.775 0-4.324-3.667-7.775-8.125-7.775H20.18v1.3Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"M30.356 33.483a5.614 5.614 0 0 1 11.227 0c0 .923-.363 1.951-.842 2.924-.487.988-1.128 1.99-1.76 2.879a37.639 37.639 0 0 1-2.47 3.105l-.044.048-.012.013-.004.004-.481-.437-.48.438-.002-.002-.003-.003-.012-.013-.044-.048a36.013 36.013 0 0 1-.735-.855 37.639 37.639 0 0 1-1.736-2.25c-.631-.89-1.273-1.891-1.76-2.88-.478-.972-.842-2-.842-2.923Zm5.614 8.536-.48.438.48.527.48-.528-.48-.437Zm0-.987a37.106 37.106 0 0 0 1.951-2.499c.61-.859 1.21-1.798 1.654-2.7.451-.918.708-1.729.708-2.35a4.314 4.314 0 0 0-8.627 0c0 .621.257 1.432.71 2.35.443.902 1.042 1.841 1.652 2.7a36.304 36.304 0 0 0 1.952 2.498Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"M35.97 31.72a1.6 1.6 0 1 0 0 3.203 1.6 1.6 0 0 0 0-3.202Zm-2.901 1.602a2.901 2.901 0 1 1 5.802 0 2.901 2.901 0 0 1-5.802 0Z",clipRule:"evenodd"})),c=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M25.5 10.4h6.775c3.8 0 6.825 2.927 6.825 6.475 0 3.547-3.026 6.475-6.825 6.475H14.062c-4.381 0-7.962 3.465-7.962 7.775 0 4.31 3.58 7.775 7.963 7.775H27.39v-1.3H14.062c-3.695 0-6.662-2.915-6.662-6.475 0-3.56 2.967-6.475 6.662-6.475h18.213c4.458 0 8.125-3.452 8.125-7.775 0-4.324-3.667-7.775-8.125-7.775H25.5v1.3Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"M30.356 33.483a5.614 5.614 0 0 1 11.227 0c0 .923-.363 1.951-.842 2.924-.487.988-1.128 1.99-1.76 2.879a37.639 37.639 0 0 1-2.47 3.105l-.044.048-.012.013-.004.004-.481-.437-.48.438-.002-.002-.003-.003-.012-.013-.044-.048a36.013 36.013 0 0 1-.735-.855 37.639 37.639 0 0 1-1.736-2.25c-.631-.89-1.273-1.891-1.76-2.88-.478-.972-.842-2-.842-2.923Zm5.614 8.536-.48.438.48.527.48-.528-.48-.437Zm0-.987a37.106 37.106 0 0 0 1.951-2.499c.61-.859 1.21-1.798 1.654-2.7.451-.918.708-1.729.708-2.35a4.314 4.314 0 0 0-8.627 0c0 .621.257 1.432.71 2.35.443.902 1.042 1.841 1.652 2.7a36.304 36.304 0 0 0 1.952 2.498Z",clipRule:"evenodd"}),e.createElement("path",{fillRule:"evenodd",d:"M35.97 31.72a1.6 1.6 0 1 0 0 3.203 1.6 1.6 0 0 0 0-3.202Zm-2.901 1.602a2.901 2.901 0 1 1 5.802 0 2.901 2.901 0 0 1-5.802 0ZM22.37 9.75l-4.15-4.668-.971.864L20.052 9.1H12.1v1.3h7.953l-2.804 3.154.972.863L22.37 9.75Z",clipRule:"evenodd"}));return l?c:a};export{n as default};
|
|
2
2
|
//# sourceMappingURL=TravelRoute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TravelRoute.js","sources":["../../../src/components/Icons/TravelRoute.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgPathProps } from './Icon';\n\nconst TravelRoute: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <>\n <path\n
|
|
1
|
+
{"version":3,"file":"TravelRoute.js","sources":["../../../src/components/Icons/TravelRoute.tsx"],"sourcesContent":["import React from 'react';\nimport { SvgPathProps } from './Icon';\n\nconst TravelRoute: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): JSX.Element => {\n const normal = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"m17.354 9.75-4.149-4.668-.971.864L15.037 9.1H7.085v1.3h7.952l-2.803 3.154.971.863 4.15-4.667Zm2.826.65h12.095c3.8 0 6.825 2.927 6.825 6.475 0 3.547-3.026 6.475-6.825 6.475H14.062c-4.381 0-7.962 3.465-7.962 7.775 0 4.31 3.58 7.775 7.963 7.775H26.74a.65.65 0 1 0 0-1.3H14.063c-3.696 0-6.663-2.915-6.663-6.475 0-3.56 2.967-6.475 6.662-6.475h18.213c4.458 0 8.125-3.452 8.125-7.775 0-4.324-3.667-7.775-8.125-7.775H20.18v1.3Z\"\n clipRule=\"evenodd\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M30.356 33.483a5.614 5.614 0 0 1 11.227 0c0 .923-.363 1.951-.842 2.924-.487.988-1.128 1.99-1.76 2.879a37.639 37.639 0 0 1-2.47 3.105l-.044.048-.012.013-.004.004-.481-.437-.48.438-.002-.002-.003-.003-.012-.013-.044-.048a36.013 36.013 0 0 1-.735-.855 37.639 37.639 0 0 1-1.736-2.25c-.631-.89-1.273-1.891-1.76-2.88-.478-.972-.842-2-.842-2.923Zm5.614 8.536-.48.438.48.527.48-.528-.48-.437Zm0-.987a37.106 37.106 0 0 0 1.951-2.499c.61-.859 1.21-1.798 1.654-2.7.451-.918.708-1.729.708-2.35a4.314 4.314 0 0 0-8.627 0c0 .621.257 1.432.71 2.35.443.902 1.042 1.841 1.652 2.7a36.304 36.304 0 0 0 1.952 2.498Z\"\n clipRule=\"evenodd\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M35.97 31.72a1.6 1.6 0 1 0 0 3.203 1.6 1.6 0 0 0 0-3.202Zm-2.901 1.602a2.901 2.901 0 1 1 5.802 0 2.901 2.901 0 0 1-5.802 0Z\"\n clipRule=\"evenodd\"\n />\n </>\n );\n\n const normalHover = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M25.5 10.4h6.775c3.8 0 6.825 2.927 6.825 6.475 0 3.547-3.026 6.475-6.825 6.475H14.062c-4.381 0-7.962 3.465-7.962 7.775 0 4.31 3.58 7.775 7.963 7.775H27.39v-1.3H14.062c-3.695 0-6.662-2.915-6.662-6.475 0-3.56 2.967-6.475 6.662-6.475h18.213c4.458 0 8.125-3.452 8.125-7.775 0-4.324-3.667-7.775-8.125-7.775H25.5v1.3Z\"\n clipRule=\"evenodd\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M30.356 33.483a5.614 5.614 0 0 1 11.227 0c0 .923-.363 1.951-.842 2.924-.487.988-1.128 1.99-1.76 2.879a37.639 37.639 0 0 1-2.47 3.105l-.044.048-.012.013-.004.004-.481-.437-.48.438-.002-.002-.003-.003-.012-.013-.044-.048a36.013 36.013 0 0 1-.735-.855 37.639 37.639 0 0 1-1.736-2.25c-.631-.89-1.273-1.891-1.76-2.88-.478-.972-.842-2-.842-2.923Zm5.614 8.536-.48.438.48.527.48-.528-.48-.437Zm0-.987a37.106 37.106 0 0 0 1.951-2.499c.61-.859 1.21-1.798 1.654-2.7.451-.918.708-1.729.708-2.35a4.314 4.314 0 0 0-8.627 0c0 .621.257 1.432.71 2.35.443.902 1.042 1.841 1.652 2.7a36.304 36.304 0 0 0 1.952 2.498Z\"\n clipRule=\"evenodd\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M35.97 31.72a1.6 1.6 0 1 0 0 3.203 1.6 1.6 0 0 0 0-3.202Zm-2.901 1.602a2.901 2.901 0 1 1 5.802 0 2.901 2.901 0 0 1-5.802 0ZM22.37 9.75l-4.15-4.668-.971.864L20.052 9.1H12.1v1.3h7.953l-2.804 3.154.972.863L22.37 9.75Z\"\n clipRule=\"evenodd\"\n />\n </>\n );\n\n return isHovered ? normalHover : normal;\n};\n\nexport default TravelRoute;\n"],"names":["TravelRoute","size","isHovered","normal","React","normalHover"],"mappings":"qBAGA,MAAMA,EAAsC,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAA2C,CACxF,MAAAC,kCAEDC,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,saACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,ulBACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,8HACF,SAAS,SACX,CAAA,CACF,EAGIC,kCAEDD,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,0TACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,ulBACF,SAAS,SAAA,CACX,EACCA,EAAA,cAAA,OAAA,CACC,SAAS,UACT,EAAE,yNACF,SAAS,SACX,CAAA,CACF,EAGF,OAAOF,EAAYG,EAAcF,CACnC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PaletteNames } from '../../theme/palette';
|
|
3
|
+
import { ListHeaderType } from '../ListHeader/ListHeader';
|
|
3
4
|
export declare type LinkListSize = 'small' | 'medium' | 'large';
|
|
4
5
|
export declare type LinkAnchorTargets = '_self' | '_blank' | '_parent';
|
|
5
6
|
export declare type LinkListColors = PaletteNames;
|
|
6
|
-
export declare type
|
|
7
|
+
export declare type LinkListVariant = 'line' | 'outline' | 'fill';
|
|
8
|
+
export interface LinkType extends React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLLIElement>> {
|
|
9
|
+
ListHeader?: ListHeaderType;
|
|
10
|
+
}
|
|
7
11
|
export declare type LinkTags = 'button' | 'a';
|
|
8
12
|
export interface CompoundComponent extends React.ForwardRefExoticComponent<LinkListProps & React.RefAttributes<HTMLUListElement>> {
|
|
9
13
|
Link: LinkType;
|
|
@@ -14,22 +18,23 @@ interface LinkListProps {
|
|
|
14
18
|
/** Adds custom classes to the element. */
|
|
15
19
|
className?: string;
|
|
16
20
|
/** Changes the link list background color on hover. */
|
|
17
|
-
color
|
|
21
|
+
color?: LinkListColors;
|
|
18
22
|
/** Toggles chevron icon on or off. */
|
|
19
23
|
chevron?: boolean;
|
|
20
|
-
/**
|
|
24
|
+
/** @deprecated Skal fases ut - Brukes ikke lenger. */
|
|
21
25
|
bottomBorder?: boolean;
|
|
22
|
-
/**
|
|
26
|
+
/** @deprecated Skal fases ut - Brukes ikke lenger. */
|
|
23
27
|
topBorder?: boolean;
|
|
24
28
|
/** Changes size of the LinkList. */
|
|
25
29
|
size?: LinkListSize;
|
|
26
30
|
/** Sets the data-testid attribute. */
|
|
27
31
|
testId?: string;
|
|
32
|
+
/** Sets visual priority */
|
|
33
|
+
variant?: LinkListVariant;
|
|
28
34
|
}
|
|
29
|
-
|
|
35
|
+
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
36
|
+
export declare type LinkProps = Modify<React.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, {
|
|
30
37
|
children: React.ReactNode;
|
|
31
|
-
color?: LinkListColors;
|
|
32
|
-
size?: LinkListSize;
|
|
33
38
|
chevron?: boolean;
|
|
34
39
|
className?: string;
|
|
35
40
|
icon?: React.ReactElement;
|
|
@@ -43,7 +48,7 @@ export interface LinkProps extends React.HTMLAttributes<HTMLAnchorElement | HTML
|
|
|
43
48
|
linkRef?: React.RefObject<HTMLButtonElement | HTMLAnchorElement>;
|
|
44
49
|
/** Sets the data-testid attribute. */
|
|
45
50
|
testId?: string;
|
|
46
|
-
}
|
|
51
|
+
}> & Pick<LinkListProps, 'color' | 'size' | 'variant'>;
|
|
47
52
|
export declare const LinkList: CompoundComponent;
|
|
48
53
|
export default LinkList;
|
|
49
54
|
//# sourceMappingURL=LinkList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkList.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/LinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinkList.d.ts","sourceRoot":"","sources":["../../../src/components/LinkList/LinkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,EAAE,cAAc,EAAoB,MAAM,0BAA0B,CAAC;AAG5E,oBAAY,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,oBAAY,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/D,oBAAY,cAAc,GAAG,YAAY,CAAC;AAC1C,oBAAY,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC/G,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,oBAAY,QAAQ,GAAG,QAAQ,GAAG,GAAG,CAAC;AACtC,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC/H,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,UAAU,aAAa;IACrB,4BAA4B;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sDAAsD;IACtD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED,aAAK,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;AAEzC,oBAAY,SAAS,GAAG,MAAM,CAC5B,KAAK,CAAC,cAAc,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,EAC3D;IACE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,uCAAuC;IACvC,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACjE,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CACF,GACC,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAwDpD,eAAO,MAAM,QAAQ,mBAWE,CAAC;AAKxB,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"props":{"children":{"defaultValue":null,"description":"Items in the LinkList","name":"children","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":true,"type":{"name":"ReactNode"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"string"}},"color":{"defaultValue":null,"description":"Changes the link list background color on hover.","name":"color","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":
|
|
1
|
+
{"props":{"children":{"defaultValue":null,"description":"Items in the LinkList","name":"children","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":true,"type":{"name":"ReactNode"}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"string"}},"color":{"defaultValue":null,"description":"Changes the link list background color on hover.","name":"color","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"enum","raw":"PaletteNames","value":[{"value":"\"banana\""},{"value":"\"blueberry\""},{"value":"\"cherry\""},{"value":"\"kiwi\""},{"value":"\"neutral\""},{"value":"\"plum\""},{"value":"\"black\""},{"value":"\"white\""}]}},"chevron":{"defaultValue":null,"description":"Toggles chevron icon on or off.","name":"chevron","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"boolean"}},"bottomBorder":{"defaultValue":null,"description":"@deprecated Skal fases ut - Brukes ikke lenger.","name":"bottomBorder","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"boolean"}},"topBorder":{"defaultValue":null,"description":"@deprecated Skal fases ut - Brukes ikke lenger.","name":"topBorder","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"boolean"}},"size":{"defaultValue":null,"description":"Changes size of the LinkList.","name":"size","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"enum","raw":"LinkListSize","value":[{"value":"\"small\""},{"value":"\"medium\""},{"value":"\"large\""}]}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"string"}},"variant":{"defaultValue":null,"description":"Sets visual priority","name":"variant","parent":{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"},"declarations":[{"fileName":"src/components/LinkList/LinkList.tsx","name":"LinkListProps"}],"required":false,"type":{"name":"enum","raw":"LinkListVariant","value":[{"value":"\"line\""},{"value":"\"outline\""},{"value":"\"fill\""}]}}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from"react";import f from"classnames";import{useHover as C}from"../../hooks/useHover.js";import t from"./styles.module.scss";import{AnalyticsId as b}from"../../constants.js";import{r as y}from"../../ListHeader.js";import R from"../Icons/ChevronRight.js";import"../../Avatar.js";import"../Icons/Icon.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Icons/Check.js";import"../Avatar/styles.module.scss";import"../../theme/palette.js";import"../../Badge.js";import"../Badge/styles.module.scss";import"../../ListHeaderText.js";import"../../StatusDot.js";import"../StatusDot/styles.module.scss";import"../Icons/Undo.js";import"../../theme/currys/color.js";import"../../theme/index.js";import"../../theme/spacers.js";import"../../theme/grid.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../../hooks/useBreakpoint.js";import"../ListHeader/styles.module.scss";import"../../utils/component.js";const k=i.forwardRef((u,s)=>{const{children:o,className:a="",color:l="neutral",icon:n,size:r="medium",chevron:L=!1,linkRef:m,testId:p,target:e,variant:c,htmlMarkup:d="a",..._}=u,{hoverRef:h,isHovered:v}=C(m),E=f(t["link-list__list-item"],{[t["link-list__list-item--"+c]]:c}),N=f(t["link-list__anchor"],t["link-list__anchor--"+l],{[t["link-list__anchor--fill"]]:c==="fill",[t["link-list__anchor--"+r]]:r,[t["link-list__anchor--button"]]:d==="button"},a);return i.createElement("li",{className:E,ref:s,"data-testid":p,"data-analyticsid":b.Link},d==="a"&&i.createElement("a",{className:N,ref:h,rel:e==="_blank"?"noopener noreferrer":void 0,target:e,..._},y(o,R,v,r,n)),d==="button"&&i.createElement("button",{className:N,ref:h,type:"button",..._},y(o,R,v,r,n)))}),w=i.forwardRef(function(s,o){const{children:a,className:l="",chevron:n=!1,size:r="medium",color:L,testId:m,variant:p="line"}=s;return i.createElement("ul",{ref:o,className:f(t["link-list"],l),"data-testid":m,"data-analyticsid":b.LinkList},i.Children.map(a,e=>{if(e.type===k)return i.cloneElement(e,{color:L,size:r,chevron:n,variant:p})}))});w.Link=k;k.displayName="LinkList.Link";export{w as LinkList,w as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/LinkList/LinkList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { PaletteNames } from '../../theme/palette';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/LinkList/LinkList.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { PaletteNames } from '../../theme/palette';\nimport { useHover } from '../../hooks/useHover';\n\nimport LinkListStyles from './styles.module.scss';\nimport { AnalyticsId } from '../../constants';\nimport { ListHeaderType, renderListHeader } from '../ListHeader/ListHeader';\nimport ChevronRight from '../Icons/ChevronRight';\n\nexport type LinkListSize = 'small' | 'medium' | 'large';\n\nexport type LinkAnchorTargets = '_self' | '_blank' | '_parent';\n\nexport type LinkListColors = PaletteNames;\nexport type LinkListVariant = 'line' | 'outline' | 'fill';\n\nexport interface LinkType extends React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLLIElement>> {\n ListHeader?: ListHeaderType;\n}\n\nexport type LinkTags = 'button' | 'a';\nexport interface CompoundComponent extends React.ForwardRefExoticComponent<LinkListProps & React.RefAttributes<HTMLUListElement>> {\n Link: LinkType;\n}\n\ninterface LinkListProps {\n /** Items in the LinkList */\n children: React.ReactNode;\n /** Adds custom classes to the element. */\n className?: string;\n /** Changes the link list background color on hover. */\n color?: LinkListColors;\n /** Toggles chevron icon on or off. */\n chevron?: boolean;\n /** @deprecated Skal fases ut - Brukes ikke lenger. */\n bottomBorder?: boolean;\n /** @deprecated Skal fases ut - Brukes ikke lenger. */\n topBorder?: boolean;\n /** Changes size of the LinkList. */\n size?: LinkListSize;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets visual priority */\n variant?: LinkListVariant;\n}\n\ntype Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type LinkProps = Modify<\n React.HTMLAttributes<HTMLAnchorElement | HTMLButtonElement>,\n {\n children: React.ReactNode;\n chevron?: boolean;\n className?: string;\n icon?: React.ReactElement;\n href?: string;\n target?: LinkAnchorTargets;\n /** HTML markup for link. Default: a */\n htmlMarkup?: LinkTags;\n /**\n * Ref for lenke/knapp\n */\n linkRef?: React.RefObject<HTMLButtonElement | HTMLAnchorElement>;\n /** Sets the data-testid attribute. */\n testId?: string;\n }\n> &\n Pick<LinkListProps, 'color' | 'size' | 'variant'>;\n\nconst Link: LinkType = React.forwardRef((props: LinkProps, ref: React.Ref<HTMLLIElement>) => {\n const {\n children,\n className = '',\n color = 'neutral',\n icon,\n size = 'medium',\n chevron = false,\n linkRef,\n testId,\n target,\n variant,\n htmlMarkup = 'a',\n ...restProps\n } = props;\n const { hoverRef, isHovered } = useHover<HTMLButtonElement | HTMLAnchorElement>(linkRef);\n\n const liClasses = cn(LinkListStyles['link-list__list-item'], {\n [LinkListStyles['link-list__list-item--' + variant]]: variant,\n });\n const linkClasses = cn(\n LinkListStyles['link-list__anchor'],\n LinkListStyles['link-list__anchor--' + color],\n\n {\n [LinkListStyles['link-list__anchor--fill']]: variant === 'fill',\n [LinkListStyles['link-list__anchor--' + size]]: size,\n [LinkListStyles['link-list__anchor--button']]: htmlMarkup === 'button',\n },\n className\n );\n\n return (\n <li className={liClasses} ref={ref} data-testid={testId} data-analyticsid={AnalyticsId.Link}>\n {htmlMarkup === 'a' && (\n <a\n className={linkClasses}\n ref={hoverRef as React.RefObject<HTMLAnchorElement>}\n rel={target === '_blank' ? 'noopener noreferrer' : undefined}\n target={target}\n {...restProps}\n >\n {renderListHeader(children, ChevronRight, isHovered, size, icon)}\n </a>\n )}\n {htmlMarkup === 'button' && (\n <button className={linkClasses} ref={hoverRef as React.RefObject<HTMLButtonElement>} type=\"button\" {...restProps}>\n {renderListHeader(children, ChevronRight, isHovered, size, icon)}\n </button>\n )}\n </li>\n );\n});\n\nexport const LinkList = React.forwardRef(function LinkListForwardedRef(props: LinkListProps, ref: React.Ref<HTMLUListElement>) {\n const { children, className = '', chevron = false, size = 'medium', color, testId, variant = 'line' } = props;\n return (\n <ul ref={ref} className={cn(LinkListStyles['link-list'], className)} data-testid={testId} data-analyticsid={AnalyticsId.LinkList}>\n {React.Children.map(children, (child: React.ReactNode | React.ReactElement<LinkProps>) => {\n if ((child as React.ReactElement<LinkProps>).type === Link) {\n return React.cloneElement(child as React.ReactElement<LinkProps>, { color, size, chevron, variant });\n }\n })}\n </ul>\n );\n}) as CompoundComponent;\n\nLinkList.Link = Link;\nLink.displayName = 'LinkList.Link';\n\nexport default LinkList;\n"],"names":["Link","React","props","ref","children","className","color","icon","size","chevron","linkRef","testId","target","variant","htmlMarkup","restProps","hoverRef","isHovered","useHover","liClasses","cn","LinkListStyles","linkClasses","AnalyticsId","renderListHeader","ChevronRight","LinkList","child"],"mappings":"u8BAuEA,MAAMA,EAAiBC,EAAM,WAAW,CAACC,EAAkBC,IAAkC,CACrF,KAAA,CACJ,SAAAC,EACA,UAAAC,EAAY,GACZ,MAAAC,EAAQ,UACR,KAAAC,EACA,KAAAC,EAAO,SACP,QAAAC,EAAU,GACV,QAAAC,EACA,OAAAC,EACA,OAAAC,EACA,QAAAC,EACA,WAAAC,EAAa,OACVC,CACD,EAAAb,EACE,CAAE,SAAAc,EAAU,UAAAC,CAAU,EAAIC,EAAgDR,CAAO,EAEjFS,EAAYC,EAAGC,EAAe,wBAAyB,CAC3D,CAACA,EAAe,yBAA2BR,IAAWA,CAAA,CACvD,EACKS,EAAcF,EAClBC,EAAe,qBACfA,EAAe,sBAAwBf,GAEvC,CACE,CAACe,EAAe,4BAA6BR,IAAY,OACzD,CAACQ,EAAe,sBAAwBb,IAAQA,EAChD,CAACa,EAAe,8BAA+BP,IAAe,QAChE,EACAT,CAAA,EAGF,OACGJ,EAAA,cAAA,KAAA,CAAG,UAAWkB,EAAW,IAAAhB,EAAU,cAAaQ,EAAQ,mBAAkBY,EAAY,IACpF,EAAAT,IAAe,KACbb,EAAA,cAAA,IAAA,CACC,UAAWqB,EACX,IAAKN,EACL,IAAKJ,IAAW,SAAW,sBAAwB,OACnD,OAAAA,EACC,GAAGG,CAEH,EAAAS,EAAiBpB,EAAUqB,EAAcR,EAAWT,EAAMD,CAAI,CACjE,EAEDO,IAAe,UACbb,EAAA,cAAA,SAAA,CAAO,UAAWqB,EAAa,IAAKN,EAAgD,KAAK,SAAU,GAAGD,CAAA,EACpGS,EAAiBpB,EAAUqB,EAAcR,EAAWT,EAAMD,CAAI,CACjE,CAEJ,CAEJ,CAAC,EAEYmB,EAAWzB,EAAM,WAAW,SAA8BC,EAAsBC,EAAkC,CAC7H,KAAM,CAAE,SAAAC,EAAU,UAAAC,EAAY,GAAI,QAAAI,EAAU,GAAO,KAAAD,EAAO,SAAU,MAAAF,EAAO,OAAAK,EAAQ,QAAAE,EAAU,MAAA,EAAWX,EACxG,OACGD,EAAA,cAAA,KAAA,CAAG,IAAAE,EAAU,UAAWiB,EAAGC,EAAe,aAAchB,CAAS,EAAG,cAAaM,EAAQ,mBAAkBY,EAAY,QAAA,EACrHtB,EAAM,SAAS,IAAIG,EAAWuB,GAA2D,CACnF,GAAAA,EAAwC,OAAS3B,EAC7C,OAAAC,EAAM,aAAa0B,EAAwC,CAAE,MAAArB,EAAO,KAAAE,EAAM,QAAAC,EAAS,QAAAI,EAAS,CAEtG,CAAA,CACH,CAEJ,CAAC,EAEDa,EAAS,KAAO1B,EAChBA,EAAK,YAAc"}
|
|
@@ -9,17 +9,21 @@
|
|
|
9
9
|
width: inherit;
|
|
10
10
|
margin: 0;
|
|
11
11
|
|
|
12
|
-
&
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
&__list-item {
|
|
13
|
+
&--line {
|
|
14
|
+
border-bottom: 1px solid $neutral500;
|
|
15
|
+
&:first-of-type {
|
|
16
|
+
border-top: 1px solid $neutral500;
|
|
17
|
+
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
border-
|
|
19
|
+
&--outline {
|
|
20
|
+
border-top: getSpacer(2xs) $neutral100 solid;
|
|
21
|
+
border-left: getSpacer(2xs) $neutral100 solid;
|
|
22
|
+
border-right: getSpacer(2xs) $neutral100 solid;
|
|
23
|
+
|
|
24
|
+
&:last-of-type {
|
|
25
|
+
border-bottom: getSpacer(2xs) $neutral50 solid;
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
@@ -27,9 +31,9 @@
|
|
|
27
31
|
display: flex;
|
|
28
32
|
min-height: 4rem;
|
|
29
33
|
text-decoration: none;
|
|
30
|
-
align-items: center;
|
|
31
34
|
color: $black;
|
|
32
35
|
cursor: pointer;
|
|
36
|
+
|
|
33
37
|
&--button {
|
|
34
38
|
width: 100%;
|
|
35
39
|
background: none;
|
|
@@ -37,117 +41,87 @@
|
|
|
37
41
|
text-align: left;
|
|
38
42
|
box-sizing: border-box;
|
|
39
43
|
}
|
|
44
|
+
&:hover {
|
|
45
|
+
color: $blueberry700;
|
|
46
|
+
}
|
|
47
|
+
&--fill {
|
|
48
|
+
margin: getSpacer(s) 0;
|
|
49
|
+
background-color: $neutral50;
|
|
50
|
+
}
|
|
51
|
+
|
|
40
52
|
&--small {
|
|
41
|
-
padding: getSpacer(2xs) 0 getSpacer(2xs) 0;
|
|
42
53
|
font-size: $font-size-xs;
|
|
43
54
|
line-height: $lineheight-size-xs;
|
|
44
55
|
}
|
|
45
56
|
&--medium {
|
|
46
|
-
padding: getSpacer(2xs) 0 getSpacer(2xs) 0;
|
|
47
57
|
font-size: $font-size-sm;
|
|
48
58
|
line-height: $lineheight-size-sm;
|
|
49
59
|
}
|
|
50
60
|
&--large {
|
|
51
|
-
padding: getSpacer(2xs) 0 getSpacer(2xs) 0;
|
|
52
61
|
font-size: $font-size-md;
|
|
53
62
|
line-height: $lineheight-size-md;
|
|
54
63
|
}
|
|
55
64
|
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
56
65
|
&--small {
|
|
57
|
-
padding-left: getSpacer(2xs);
|
|
58
|
-
padding-right: getSpacer(2xs);
|
|
59
66
|
font-size: $font-size-sm;
|
|
60
67
|
line-height: $lineheight-size-sm;
|
|
61
68
|
}
|
|
62
69
|
&--medium {
|
|
63
|
-
padding-left: getSpacer(2xs);
|
|
64
|
-
padding-right: getSpacer(2xs);
|
|
65
70
|
font-size: $font-size-md;
|
|
66
71
|
line-height: $lineheight-size-md;
|
|
67
72
|
}
|
|
68
73
|
&--large {
|
|
69
|
-
padding-left: getSpacer(2xs);
|
|
70
|
-
padding-right: getSpacer(2xs);
|
|
71
74
|
font-size: $font-size-lg;
|
|
72
75
|
line-height: $lineheight-size-lg;
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
&--banana {
|
|
77
|
-
&:hover
|
|
78
|
-
&:focus {
|
|
80
|
+
&:hover {
|
|
79
81
|
background-color: $banana100;
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
&--blueberry {
|
|
83
|
-
&:hover
|
|
84
|
-
&:focus {
|
|
85
|
+
&:hover {
|
|
85
86
|
background-color: $blueberry100;
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
&--cherry {
|
|
89
|
-
&:hover
|
|
90
|
-
&:focus {
|
|
90
|
+
&:hover {
|
|
91
91
|
background-color: $cherry100;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
&--kiwi {
|
|
95
|
-
&:hover
|
|
96
|
-
&:focus {
|
|
95
|
+
&:hover {
|
|
97
96
|
background-color: $kiwi100;
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
&--neutral,
|
|
101
100
|
&--black {
|
|
102
|
-
&:hover
|
|
103
|
-
&:focus {
|
|
101
|
+
&:hover {
|
|
104
102
|
background-color: $neutral100;
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
&--plum {
|
|
108
|
-
&:hover
|
|
109
|
-
&:focus {
|
|
106
|
+
&:hover {
|
|
110
107
|
background-color: $plum100;
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
&--black {
|
|
114
|
-
&:hover
|
|
115
|
-
&:focus {
|
|
111
|
+
&:hover {
|
|
116
112
|
background-color: $black;
|
|
117
113
|
color: $white;
|
|
118
114
|
}
|
|
119
115
|
}
|
|
120
116
|
&--white {
|
|
121
|
-
&:hover
|
|
122
|
-
&:focus {
|
|
117
|
+
&:hover {
|
|
123
118
|
background-color: $neutral50;
|
|
124
119
|
}
|
|
125
120
|
}
|
|
126
|
-
|
|
127
|
-
&:focus {
|
|
128
|
-
outline:
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&__content {
|
|
133
|
-
display: flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
border-bottom: 1px solid transparent;
|
|
136
|
-
:focus > & {
|
|
137
|
-
border-color: $black;
|
|
121
|
+
&:focus,
|
|
122
|
+
&:focus-visible {
|
|
123
|
+
outline: getSpacer(4xs) solid $black;
|
|
124
|
+
outline-offset: -1px;
|
|
138
125
|
}
|
|
139
126
|
}
|
|
140
|
-
|
|
141
|
-
&__icon {
|
|
142
|
-
display: flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
margin-right: getSpacer(2xs);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&__chevron {
|
|
148
|
-
display: flex;
|
|
149
|
-
align-items: center;
|
|
150
|
-
margin-left: auto;
|
|
151
|
-
padding-left: getSpacer(2xs);
|
|
152
|
-
}
|
|
153
127
|
}
|
|
@@ -6,6 +6,7 @@ export type Styles = {
|
|
|
6
6
|
'link-list__anchor--blueberry': string;
|
|
7
7
|
'link-list__anchor--button': string;
|
|
8
8
|
'link-list__anchor--cherry': string;
|
|
9
|
+
'link-list__anchor--fill': string;
|
|
9
10
|
'link-list__anchor--kiwi': string;
|
|
10
11
|
'link-list__anchor--large': string;
|
|
11
12
|
'link-list__anchor--medium': string;
|
|
@@ -13,11 +14,8 @@ export type Styles = {
|
|
|
13
14
|
'link-list__anchor--plum': string;
|
|
14
15
|
'link-list__anchor--small': string;
|
|
15
16
|
'link-list__anchor--white': string;
|
|
16
|
-
'link-
|
|
17
|
-
'link-
|
|
18
|
-
'link-list__icon': string;
|
|
19
|
-
'link-list--hastopborder': string;
|
|
20
|
-
'link-list--nobottomborder': string;
|
|
17
|
+
'link-list__list-item--line': string;
|
|
18
|
+
'link-list__list-item--outline': string;
|
|
21
19
|
};
|
|
22
20
|
|
|
23
21
|
export type ClassNames = keyof Styles;
|