@helsenorge/designsystem-react 1.0.0-beta122 → 1.0.0-beta123
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/{Badge-2d8d73dd.js → Badge-32ba89d5.js} +2 -2
- package/Badge-32ba89d5.js.map +1 -0
- package/{Button-19ee3464.js → Button-9f2ce63d.js} +2 -2
- package/Button-9f2ce63d.js.map +1 -0
- package/Checkbox-1e2c2047.js +2 -0
- package/Checkbox-1e2c2047.js.map +1 -0
- package/{Close-476c50c6.js → Close-f197bf98.js} +2 -2
- package/Close-f197bf98.js.map +1 -0
- package/{FormGroup-a776b535.js → FormGroup-157f9e03.js} +2 -2
- package/FormGroup-157f9e03.js.map +1 -0
- package/{FormLayout-8d6d4552.js → FormLayout-a3d440c1.js} +2 -2
- package/FormLayout-a3d440c1.js.map +1 -0
- package/{Input-cd941f2f.js → Input-5bb47387.js} +2 -2
- package/Input-5bb47387.js.map +1 -0
- package/{Loader-2f304e4f.js → Loader-670979af.js} +2 -2
- package/Loader-670979af.js.map +1 -0
- package/{Modal-d0213453.js → Modal-10c837a4.js} +2 -2
- package/Modal-10c837a4.js.map +1 -0
- package/{Panel-33611d84.js → Panel-3ada0789.js} +2 -2
- package/Panel-3ada0789.js.map +1 -0
- package/{RadioButton-6a868eb3.js → RadioButton-71099f5c.js} +2 -2
- package/RadioButton-71099f5c.js.map +1 -0
- package/{Textarea-1c857a8a.js → Textarea-e1e649cf.js} +2 -2
- package/Textarea-e1e649cf.js.map +1 -0
- package/{Title-2522b5b9.js → Title-3a6d4597.js} +2 -2
- package/Title-3a6d4597.js.map +1 -0
- package/{Validation-fa8b28c3.js → Validation-5d79f53e.js} +2 -2
- package/Validation-5d79f53e.js.map +1 -0
- package/__mocks__/ResizeObserver.d.ts +6 -0
- package/__mocks__/ResizeObserver.d.ts.map +1 -0
- package/__mocks__/ResizeObserver.js +2 -0
- package/__mocks__/ResizeObserver.js.map +1 -0
- package/__mocks__/uuid.d.ts +2 -0
- package/__mocks__/uuid.d.ts.map +1 -0
- package/__mocks__/uuid.js +2 -0
- package/__mocks__/uuid.js.map +1 -0
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Badge/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Close/index.js +1 -1
- package/components/Dropdown/Dropdown.d.ts +36 -0
- package/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/components/Dropdown/componentdata.json +254 -0
- package/components/Dropdown/index.d.ts +4 -0
- package/components/Dropdown/index.d.ts.map +1 -0
- package/components/Dropdown/index.js +2 -0
- package/components/Dropdown/index.js.map +1 -0
- package/components/Dropdown/styles.module.scss +196 -0
- package/components/Expander/index.js +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/FormLayout/index.js +1 -1
- package/components/HighlightBox/index.js +1 -1
- package/components/Icons/AcupunctureBack.js +1 -1
- package/components/Icons/AlarmClock.js +1 -1
- package/components/Icons/AlertSignFill.js +1 -1
- package/components/Icons/AlertSignStroke.js +1 -1
- package/components/Icons/Archive.js +1 -1
- package/components/Icons/ArrowLeft.js +1 -1
- package/components/Icons/ArrowRight.js +1 -1
- package/components/Icons/ArrowUpRight.js +1 -1
- package/components/Icons/Attachment.js +1 -1
- package/components/Icons/Avatar.js +1 -1
- package/components/Icons/Bus.js +1 -1
- package/components/Icons/Calendar.js +1 -1
- package/components/Icons/CalendarChange.js +1 -1
- package/components/Icons/CalendarCheck.js +1 -1
- package/components/Icons/CalendarSave.js +1 -1
- package/components/Icons/Change.js +1 -1
- package/components/Icons/Check.js +1 -1
- package/components/Icons/CheckFill.js +1 -1
- package/components/Icons/ChevronDown.js +1 -1
- package/components/Icons/ChevronLeft.js +1 -1
- package/components/Icons/ChevronRight.js +1 -1
- package/components/Icons/ChevronUp.js +1 -1
- package/components/Icons/ChevronsDown.js +1 -1
- package/components/Icons/ChevronsUp.js +1 -1
- package/components/Icons/Contacts.js +1 -1
- package/components/Icons/Copy.js +1 -1
- package/components/Icons/Download.js +1 -1
- package/components/Icons/EChat.js +1 -1
- package/components/Icons/EnterFullScreen.js +1 -1
- package/components/Icons/Envelope.js +1 -1
- package/components/Icons/Eraser.js +1 -1
- package/components/Icons/ErrorSignFill.js +1 -1
- package/components/Icons/ErrorSignStroke.js +1 -1
- package/components/Icons/ExitFullScreen.js +1 -1
- package/components/Icons/Eye.js +1 -1
- package/components/Icons/Form.js +1 -1
- package/components/Icons/Forward.js +1 -1
- package/components/Icons/Gallery.js +1 -1
- package/components/Icons/Globe.js +1 -1
- package/components/Icons/Group.js +1 -1
- package/components/Icons/Heart.js +1 -1
- package/components/Icons/HelpSign.js +1 -1
- package/components/Icons/History.js +1 -1
- package/components/Icons/Home.js +1 -1
- package/components/Icons/Hospital.js +1 -1
- package/components/Icons/Hourglass.js +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/InfoSignFill.js +1 -1
- package/components/Icons/InfoSignStroke.js +1 -1
- package/components/Icons/Journal.js +1 -1
- package/components/Icons/List.js +1 -1
- package/components/Icons/Location.js +1 -1
- package/components/Icons/Lock.js +1 -1
- package/components/Icons/Medicine.js +1 -1
- package/components/Icons/Menu.js +1 -1
- package/components/Icons/Minus.js +1 -1
- package/components/Icons/MobilePhone.js +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/NoFilter.js +1 -1
- package/components/Icons/PaperPlane.js +1 -1
- package/components/Icons/Pause.js +1 -1
- package/components/Icons/Pencil.js +1 -1
- package/components/Icons/Play.js +1 -1
- package/components/Icons/PlusLarge.js +1 -1
- package/components/Icons/PlusSmall.js +1 -1
- package/components/Icons/Printer.js +1 -1
- package/components/Icons/QrCode.js +1 -1
- package/components/Icons/Receptionist.js +1 -1
- package/components/Icons/Referral.js +1 -1
- package/components/Icons/Refresh.js +1 -1
- package/components/Icons/Reply.js +1 -1
- package/components/Icons/Save.js +1 -1
- package/components/Icons/Search.js +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/Settings.js +1 -1
- package/components/Icons/Share.js +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/Stopwatch.js +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/TimePassing.js +1 -1
- package/components/Icons/Toolbox.js +1 -1
- package/components/Icons/TrashCan.js +1 -1
- package/components/Icons/Undo.js +1 -1
- package/components/Icons/Upload.js +1 -1
- package/components/Icons/Vaccine.js +1 -1
- package/components/Icons/VerticalDots.js +1 -1
- package/components/Icons/VideoCamera.js +1 -1
- package/components/Icons/VideoChat.js +1 -1
- package/components/Icons/Wallet.js +1 -1
- package/components/Icons/Watch.js +1 -1
- package/components/Icons/X.js +1 -1
- package/components/Icons/Zoom.js +1 -1
- package/components/Icons/index.js +1 -1
- package/components/Input/index.js +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/List/index.js +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Logo/index.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/Panel/index.js +1 -1
- package/components/PanelList/index.js +1 -1
- package/components/Portal/index.js +1 -1
- package/components/RadioButton/index.js +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Spacer/index.js +1 -1
- package/components/StatusDot/index.js +1 -1
- package/components/Textarea/index.js +1 -1
- package/components/Tile/index.js +1 -1
- package/components/Title/index.js +1 -1
- package/components/Validation/index.js +1 -1
- package/constants-9528513d.js +2 -0
- package/constants-9528513d.js.map +1 -0
- package/constants.d.ts +9 -0
- package/constants.d.ts.map +1 -1
- package/hooks/useKeyboardEvent.d.ts +3 -0
- package/hooks/useKeyboardEvent.d.ts.map +1 -0
- package/hooks/useOutsideEvent.d.ts +9 -0
- package/hooks/useOutsideEvent.d.ts.map +1 -0
- package/hooks/useResizeObserver.d.ts +9 -0
- package/hooks/useResizeObserver.d.ts.map +1 -0
- package/hooks/useToggle.d.ts +12 -0
- package/hooks/useToggle.d.ts.map +1 -0
- package/hooks/useUuid.d.ts +7 -0
- package/hooks/useUuid.d.ts.map +1 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/useUuid-1ecdf8e8.js +2 -0
- package/useUuid-1ecdf8e8.js.map +1 -0
- package/uuid-11037462.js +2 -0
- package/uuid-11037462.js.map +1 -0
- package/Badge-2d8d73dd.js.map +0 -1
- package/Button-19ee3464.js.map +0 -1
- package/Checkbox-ca6c635d.js +0 -2
- package/Checkbox-ca6c635d.js.map +0 -1
- package/Close-476c50c6.js.map +0 -1
- package/FormGroup-a776b535.js.map +0 -1
- package/FormLayout-8d6d4552.js.map +0 -1
- package/Input-cd941f2f.js.map +0 -1
- package/Loader-2f304e4f.js.map +0 -1
- package/Modal-d0213453.js.map +0 -1
- package/Panel-33611d84.js.map +0 -1
- package/RadioButton-6a868eb3.js.map +0 -1
- package/Textarea-1c857a8a.js.map +0 -1
- package/Title-2522b5b9.js.map +0 -1
- package/Validation-fa8b28c3.js.map +0 -1
- package/constants-4fe8c7ff.js +0 -2
- package/constants-4fe8c7ff.js.map +0 -1
- package/uuid-fe7442b7.js +0 -2
- package/uuid-fe7442b7.js.map +0 -1
package/components/Icons/Zoom.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{getIcon as
|
|
1
|
+
import e from"react";import{getIcon as a}from"./Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-9528513d.js";export default function(c){var l=c.size,v=c.isHovered;return a(l,v,e.createElement("path",{d:"M21.866 20.005h5.573v1.6h-5.573v5.572h-1.6v-5.572h-5.572v-1.6h5.572v-5.573h1.6v5.573zM37.758 38.11a2.24 2.24 0 0 1-1.606.612 2.23 2.23 0 0 1-1.568-.703l-6.066-6.421a13.263 13.263 0 0 0 1.562-1.25 13.312 13.312 0 0 0 1.65-1.888l6.118 6.476c.85.9.81 2.324-.09 3.174zm-17.02-5.783a11.452 11.452 0 0 1-8.052-3.607 11.45 11.45 0 0 1-3.142-8.243c.178-6.243 5.312-11.2 11.518-11.2.11 0 .222.002.333.005 6.353.18 11.375 5.497 11.194 11.85a11.456 11.456 0 0 1-3.607 8.053c-2.24 2.114-5.166 3.24-8.244 3.142zm18.273 1.51-6.406-6.782a13.068 13.068 0 0 0 1.583-5.876c.1-3.505-1.171-6.84-3.58-9.388a13.036 13.036 0 0 0-9.167-4.108C14.2 7.482 8.15 13.196 7.945 20.43a13.043 13.043 0 0 0 3.578 9.388 13.042 13.042 0 0 0 9.553 4.113c2.136 0 4.198-.513 6.048-1.48l6.297 6.666a3.82 3.82 0 0 0 2.685 1.203l.113.002a3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z","fill-rule":"evenodd"}),e.createElement("path",{d:"M21.866 20.005h6.278v1.6h-6.278v6.278h-1.6v-6.278h-6.278v-1.6h6.278v-6.278h1.6v6.278zm15.89 18.105c-.898.85-2.323.81-3.173-.091l-5.25-5.558a14.432 14.432 0 0 0 3.212-3.14l5.303 5.615c.85.9.809 2.323-.091 3.174zm-17.052-4.6a12.627 12.627 0 0 1-8.88-3.977 12.621 12.621 0 0 1-3.463-9.09 12.623 12.623 0 0 1 3.977-8.878 12.62 12.62 0 0 1 9.09-3.466c7.006.2 12.543 6.062 12.344 13.068-.2 7.006-6.068 12.558-13.068 12.343zm18.307.327-5.556-5.882a14.21 14.21 0 0 0 1.916-6.742c.225-7.888-6.01-14.488-13.897-14.713a14.22 14.22 0 0 0-10.235 3.9 14.218 14.218 0 0 0-4.478 9.997 14.217 14.217 0 0 0 3.9 10.234 14.219 14.219 0 0 0 10.41 4.485c2.49 0 4.836-.651 6.885-1.782l5.464 5.784a3.82 3.82 0 0 0 2.799 1.205 3.82 3.82 0 0 0 2.637-1.05 3.85 3.85 0 0 0 .155-5.436z","fill-rule":"evenodd"}),e.createElement("path",{d:"M22.591 20.708h3.645v2.02H22.59v3.644h-2.02v-3.643h-3.644v-2.021h3.643v-3.645h2.021v3.645zm11.882 13.63c-.5.5-1.372.5-1.874 0l-4.47-4.472c.691-.555 1.304-1.2 1.834-1.912l4.51 4.51a1.318 1.318 0 0 1 0 1.873zm-21.334-12.62c0-4.656 3.787-8.443 8.442-8.443 4.656 0 8.443 3.787 8.443 8.443 0 4.655-3.787 8.442-8.443 8.442-4.655 0-8.442-3.787-8.442-8.442zm22.764 9.316-4.866-4.864a10.39 10.39 0 0 0 1.008-4.452c0-5.77-4.694-10.464-10.464-10.464-5.769 0-10.463 4.694-10.463 10.464 0 5.77 4.694 10.463 10.463 10.463 1.738 0 3.375-.432 4.819-1.185l4.77 4.77c.632.631 1.474.98 2.367.98s1.734-.349 2.366-.98c.631-.632.98-1.472.98-2.366 0-.893-.349-1.733-.98-2.366z","fill-rule":"evenodd"}),e.createElement("path",{d:"M22.592 20.708H27v2.02h-4.408v4.408H20.57v-4.407h-4.409v-2.021h4.409v-4.409h2.02v4.409zm11.881 13.63c-.499.498-1.372.5-1.873 0l-3.724-3.725a11.63 11.63 0 0 0 1.834-1.912l3.763 3.763c.25.25.388.583.388.936 0 .355-.138.687-.388.937zm-22.382-12.62c0-5.233 4.258-9.49 9.49-9.49 5.233 0 9.49 4.257 9.49 9.49 0 5.232-4.257 9.49-9.49 9.49-5.232 0-9.49-4.258-9.49-9.49zm23.812 9.316-4.083-4.083a11.423 11.423 0 0 0 1.272-5.233c0-6.347-5.163-11.51-11.51-11.51-6.347 0-11.51 5.163-11.51 11.51 0 6.346 5.163 11.51 11.51 11.51 2.03 0 3.934-.533 5.591-1.459l3.998 3.997c.632.631 1.473.98 2.366.98s1.734-.349 2.365-.98c.632-.632.98-1.472.98-2.366 0-.893-.348-1.733-.98-2.366z","fill-rule":"evenodd"}))}
|
|
2
2
|
//# sourceMappingURL=Zoom.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Icon as o}from"./Icon.js";export{Icon,Icon as default,getIcon}from"./Icon.js";export{I as IconSize}from"../../constants-
|
|
1
|
+
import{Icon as o}from"./Icon.js";export{Icon,Icon as default,getIcon}from"./Icon.js";export{I as IconSize}from"../../constants-9528513d.js";import"../../_tslib-51c8a283.js";import"react";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I as s}from"../../Input-
|
|
1
|
+
import{I as s}from"../../Input-5bb47387.js";export{a as InputTypes,I as default}from"../../Input-5bb47387.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"../../constants-9528513d.js";import"../../uuid-11037462.js";import"../Icons/Icon.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../useBreakpoint-6eb418f7.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as r}from"../../_tslib-51c8a283.js";import o from"react";import{c as i}from"../../index-9b84fabc.js";import{Icon as t}from"../Icons/Icon.js";import{A as s,I as a}from"../../constants-
|
|
1
|
+
import{d as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as r}from"../../_tslib-51c8a283.js";import o from"react";import{c as i}from"../../index-9b84fabc.js";import{Icon as t}from"../Icons/Icon.js";import{A as s,I as a}from"../../constants-9528513d.js";import l from"../Icons/ChevronRight.js";import{u as n,B as c}from"../../useBreakpoint-6eb418f7.js";import{u as m}from"../../useHover-026f72c1.js";import d from"./styles.module.scss";import"../../grid-c105cad1.js";var f=o.forwardRef((function(f,p){var v,u=f.children,_=f.className,h=void 0===_?"":_,k=f.color,b=void 0===k?"neutral":k,g=f.icon,j=f.size,E=void 0===j?"medium":j,N=f.chevron,I=void 0!==N&&N,L=f.testId,z=f.target,y=r(f,["children","className","color","icon","size","chevron","testId","target"]),B=m(),H=B.hoverRef,x=B.isHovered,R=n(),S="small"!==E&&!(!I&&!g);return o.createElement("li",{ref:p,"data-testid":L,"data-analyticsid":s.Link},o.createElement("a",Object.assign({className:i(d["link-list__anchor"],d["link-list__anchor--"+b],(v={},e(v,d["link-list__anchor--small"],"small"===E),e(v,d["link-list__anchor--medium"],"medium"===E),e(v,d["link-list__anchor--large"],"large"===E),v),h),ref:H,rel:"_blank"===z?"noopener noreferrer":void 0,target:z},y),S&&g&&o.createElement("span",{className:d["link-list__icon"]},o.cloneElement(g,{size:R===c.xs?a.XSmall:a.Small,isHovered:x})),o.createElement("span",{className:d["link-list__content"]},u),S&&I&&o.createElement("span",{className:d["link-list__chevron"]},o.createElement(t,{svgIcon:l,isHovered:x,size:a.XSmall}))))})),p=o.forwardRef((function(r,t){var a,l=r.children,n=r.className,c=void 0===n?"":n,m=r.chevron,p=void 0!==m&&m,v=r.size,u=void 0===v?"medium":v,_=r.color,h=r.topBorder,k=void 0===h||h,b=r.bottomBorder,g=void 0===b||b,j=r.testId;return o.createElement("ul",{ref:t,className:i(d["link-list"],(a={},e(a,d["link-list--hastopborder"],k),e(a,d["link-list--nobottomborder"],!g),a),c||""),"data-testid":j,"data-analyticsid":s.LinkList},o.Children.map(l,(function(e){if(e.type===f)return o.cloneElement(e,{color:_,size:u,chevron:p})})))}));p.Link=f,f.displayName="LinkList.Link";export default p;export{p as LinkList};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/List/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import{c as e}from"../../index-9b84fabc.js";import s from"./styles.module.scss";import{A as a}from"../../constants-
|
|
1
|
+
import t from"react";import{c as e}from"../../index-9b84fabc.js";import s from"./styles.module.scss";import{A as a}from"../../constants-9528513d.js";export default function(r){var i=r.children,m=r.className,c=r.testId;return t.createElement("ul",{className:e(s.list,m),"data-testid":c,"data-analyticsid":a.List},i.map((function(e,a){return t.createElement("li",{className:s.list__item,key:a},e)})))}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as s}from"../../Loader-
|
|
1
|
+
import{L as s}from"../../Loader-670979af.js";export{O as Overlay,L as default}from"../../Loader-670979af.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-11037462.js";import"./styles.module.scss";import"../../constants-9528513d.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Logo/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_tslib-51c8a283.js";import t from"react";import{A as c}from"../../constants-
|
|
1
|
+
import{_ as e}from"../../_tslib-51c8a283.js";import t from"react";import{A as c}from"../../constants-9528513d.js";import{g as l}from"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";var a=function(e){var a=e.size,s=void 0===a?300:a,v=e.color,h=void 0===v?"black":v,i=e.className,o=void 0===i?"":i,r=e.testId;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,role:"img","aria-labelledby":"logo-title",viewBox:"0 0 502 220",className:o,"data-testid":r,"data-analyticsid":c.Logo},t.createElement("title",{id:"logo-title"},"Helsenorge"),t.createElement("g",{fill:l(h,500)},t.createElement("path",{d:"M39.8 2.5v26.9H17V2.5H1v69.9h16V43.6h22.8v28.8h16.1V2.5zM250.3 58.6V2.5h-16v69.9h43.5V58.6zM142.9 122.5c-16.1 0-27.4 13.6-27.4 33.1s11.2 33.1 27.4 33.1 27.4-13.6 27.4-33.1-11.3-33.1-27.4-33.1zm19 33.1c0 11.9-5 25.9-19 25.9s-19-13.9-19-25.9c0-11.9 5-25.9 19-25.9s19 14 19 25.9zM501 40c0-19.1-11.1-32.4-27-32.4-16.4 0-27.4 13.3-27.4 33.1 0 19.5 11.5 33.1 28 33.1 12.2 0 21.4-6 24.7-16.2l.5-1.6h-8.3l-.3.7c-2.8 6.2-8.8 9.8-16.6 9.8-12.9 0-18.5-11.5-19.5-22.7H501V40zm-8.3-3.2h-37.6c1-10.8 6.5-21.9 18.9-21.9 13.2 0 18.3 12.6 18.7 21.9zM30.4 122.4c-10.8 0-16.6 6.7-19.5 11.8v-9.9H3.3v62.6h8.1v-31.4c0-8.4 4.4-25.7 18.1-25.7 14 0 15.9 12 15.9 25v32.1h8.1v-32.1c.1-16.1-2.7-32.4-23.1-32.4zM134.3 59V43H157V30h-22.7V15.9H165V2.5h-46.4v69.9h47.3V59zM466.7 173.4v-16h22.7v-13h-22.7v-14.1h30.7v-13.4H451v69.9h47.3v-13.4zM246.7 140.5v-16.3h-7.6v62.6h8.1v-37.6l27.3-19.6v-9zM393.5 120.6l-14.7 10.5c-4.4-5.6-11.2-8.7-18.8-8.7-13.6 0-23.6 9.8-23.6 23.3 0 10.6 6.2 19.1 16 22.2l-16 17.5c-4 4.6-5.7 8.3-5.7 12.7 0 12.6 11.1 20.7 28.2 20.7 16.9 0 28.3-8.3 28.3-20.7 0-12.5-11.1-20.6-28.3-20.6-1.7 0-3.9.2-5.6.5l8-9c12.9-.7 22.2-10.4 22.2-23.3 0-2.8-.4-5.5-1.2-7.8 0-.1-.1-.2-.1-.3l11.2-8.1v-8.9zm-34.4 64.2c12.1 0 20 5.2 20 13.4s-7.8 13.5-20 13.5c-12.1 0-19.9-5.3-19.9-13.5 0-7.8 8.3-13.4 19.9-13.4zm.9-23c-8.8 0-15.2-6.8-15.2-16 0-9.3 6.4-16 15.2-16s15.2 6.7 15.2 16c0 9.2-6.4 16-15.2 16zM366.7 30.3c-6.6-2.3-13.5-4.7-13.5-9.2 0-4.8 4.2-7 9.3-7 5.4 0 9 4.5 9 8.5v.8h16.2v-.6c0-13-10.2-21.7-25.4-21.7-15.3 0-24.9 7.8-24.9 20.4 0 14.7 13.1 18.4 22.9 21.9 6.5 2.4 13.6 4.3 13.6 8.7 0 4.6-3.4 8-10.6 8-6.5 0-10.9-3.8-10.9-9.4v-.8h-16.7v.8c0 14.5 10.3 23.1 27.5 23.1 16.5 0 26-7.6 26-21.5 0-14.4-12.5-18.5-22.5-22z"})))},s=function(e){var c=e.size,a=void 0===c?300:c,s=e.color,v=void 0===s?"black":s,h=e.className,i=void 0===h?"":h,o=e.testId;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,role:"img","aria-labelledby":"logo-title",viewBox:"0 0 87 12",className:i,"data-testid":o},t.createElement("title",{id:"logo-title"},"Helsenorge"),t.createElement("g",{fill:l(v,500)},t.createElement("path",{d:"M5 .8v2.8H2.6V.8H1V8h1.6V5.1H5V8h1.6V.8zM20.9 6.6V.8h-1.6V8h4.5V6.6zM57.9 1.4c-1.7 0-2.8 1.4-2.8 3.4s1.2 3.4 2.8 3.4 2.8-1.4 2.8-3.4-1.1-3.4-2.8-3.4zm2 3.4c0 1.2-.5 2.7-2 2.7-1.4 0-2-1.4-2-2.7s.5-2.7 2-2.7 2 1.5 2 2.7zM86 4.7c0-2-1.1-3.3-2.8-3.3-1.7 0-2.8 1.4-2.8 3.4s1.2 3.4 2.9 3.4c1.2 0 2.2-.6 2.5-1.7l.1-.2H85v.1c-.3.6-.9 1-1.7 1-1.3 0-1.9-1.2-2-2.3H86v-.4zm-.9-.3h-3.9c.1-1.1.7-2.3 1.9-2.3 1.5 0 2 1.3 2 2.3zM49.2 1.4c-1.1 0-1.7.7-2 1.2v-1h-.8V8h.8V4.8c0-.9.5-2.6 1.9-2.6s1.6 1.2 1.6 2.6V8h.8V4.7c0-1.6-.2-3.3-2.3-3.3zM12.1 6.6V5h2.4V3.7h-2.4V2.2h3.2V.8h-4.8V8h4.9V6.6zM38.3 6.6V5h2.3V3.7h-2.3V2.2h3.2V.8h-4.8V8h4.9V6.6zM65.5 3.3V1.6h-.8V8h.8V4.1l2.8-2v-.9zM77.6 1.2l-1.5 1.1c-.5-.6-1.1-.9-1.9-.9-1.4 0-2.4 1-2.4 2.4 0 1.1.6 2 1.6 2.3l-1.6 1.8c-.4.5-.6.9-.6 1.3 0 1.3 1.1 2.1 2.9 2.1 1.7 0 2.9-.9 2.9-2.1 0-1.3-1.1-2.1-2.9-2.1h-.6l.8-.9c1.3-.1 2.3-1.1 2.3-2.4 0-.3 0-.6-.1-.8l1.2-.8v-1zM74 7.8c1.2 0 2.1.5 2.1 1.4 0 .8-.8 1.4-2.1 1.4-1.2 0-2-.5-2-1.4 0-.8.8-1.4 2-1.4zm.1-2.4c-.9 0-1.6-.7-1.6-1.7s.7-1.6 1.6-1.6c.9 0 1.6.7 1.6 1.6 0 1-.7 1.7-1.6 1.7zM30.4 3.7c-.7-.2-1.4-.5-1.4-1s.4-.7 1-.7.9.5.9.9V3h1.7v-.1c0-1.3-1.1-2.2-2.6-2.2-1.6 0-2.6.8-2.6 2.1 0 1.5 1.3 1.9 2.4 2.3.7.2 1.4.4 1.4.9s-.3.8-1.1.8c-.7 0-1.1-.4-1.1-1v-.1h-1.7v.1c0 1.5 1.1 2.4 2.8 2.4 1.7 0 2.7-.8 2.7-2.2-.1-1.5-1.4-2-2.4-2.3z"})))};export default function(c){var l=c.byline,v=void 0!==l&&l,h=e(c,["byline"]);return v?t.createElement(s,Object.assign({},h)):t.createElement(a,Object.assign({},h))}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as s}from"../../Modal-
|
|
1
|
+
import{M as s}from"../../Modal-10c837a4.js";export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-10c837a4.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-9f2ce63d.js";import"../../_tslib-51c8a283.js";import"../../constants-9528513d.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../grid-c105cad1.js";import"../../Loader-670979af.js";import"../../uuid-11037462.js";import"../Loader/styles.module.scss";import"../../useHover-026f72c1.js";import"../../useWindowSize-5cc481da.js";import"../Button/styles.module.scss";import"../Icons/Icon.js";import"./styles.module.scss";import"../Icons/AlertSignStroke.js";import"../Icons/AlertSignFill.js";import"../../useIsVisible-fad4d769.js";import"../../Title-3a6d4597.js";import"../Title/styles.module.scss";import"../../Close-f197bf98.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../useBreakpoint-6eb418f7.js";import"../Icons/CheckOutline.js";import"../Portal/index.js";import"react-dom";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import o from"react";import{c as a}from"../../index-9b84fabc.js";import{p as r}from"../../palette-f206f488.js";import{Icon as t}from"../Icons/Icon.js";import{A as i}from"../../constants-
|
|
1
|
+
import{d as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import o from"react";import{c as a}from"../../index-9b84fabc.js";import{p as r}from"../../palette-f206f488.js";import{Icon as t}from"../Icons/Icon.js";import{A as i}from"../../constants-9528513d.js";import n from"../Icons/InfoSignStroke.js";import l from"../Icons/AlertSignStroke.js";import c from"../Icons/AlertSignFill.js";import s from"./styles.module.scss";import{C as m}from"../../Close-f197bf98.js";import"../../_tslib-51c8a283.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../useBreakpoint-6eb418f7.js";import"../../grid-c105cad1.js";var f={info:{color:"kiwi",depth:50},warn:{color:"banana",depth:50},alert:{color:"cherry",depth:100},crisis:{color:"black",depth:0}},p={info:o.createElement(t,{svgIcon:n,color:r.kiwi900,hoverColor:r.kiwi900}),warn:o.createElement(t,{svgIcon:l,color:"black",hoverColor:"black"}),alert:o.createElement(t,{svgIcon:c,color:r.cherry500,hoverColor:r.cherry500}),alertLabel:o.createElement(t,{svgIcon:l,color:r.cherry500,hoverColor:r.cherry500}),crisis:o.createElement(t,{svgIcon:c,color:r.banana200,hoverColor:r.banana200})},d=o.forwardRef((function(r,t){var n,l,c=r.children,f=r.variant,d=void 0===f?"info":f,b=r.shadow,h=void 0!==b&&b,v=r.dismissable,u=void 0!==v&&v,_=r.onClick,I=r.label,j=r.fluid,g=void 0!==j&&j,w=r.size,C=r.className,E=r.testId;var k,y=!!I&&!c;return k=o.createElement("div",{ref:t,"data-testid":E,"data-analyticsid":i.NotificationPanel,className:a(s["notification-panel"],w&&s["notification-panel--"+w],s["notification-panel--"+d],(n={},e(n,s["notification-panel--shadow"],!g&&h),e(n,s["notification-panel--has-children"],!y),e(n,s["notification-panel--label-only"],y),e(n,s["notification-panel--dismissable"],!y&&u),n),C)},o.createElement("span",{className:s["notification-panel__icon"]},p["alert"===d&&I&&!c?"alertLabel":d]),o.createElement("section",{"aria-label":function(){if(c){var e="";return o.Children.map(c,(function(o){"string"==typeof o&&(e+=o)})),e}return""}(),className:a(s["notification-panel__content"],(l={},e(l,s["notification-panel__content--crisis"],"crisis"===d),e(l,s["notification-panel__content--alert"],"alert"===d),l))},I&&o.createElement("h1",{className:s["notification-panel__label"],dangerouslySetInnerHTML:{__html:I}}),c),!y&&u&&o.createElement("span",{className:s["notification-panel__close"]},o.createElement(m,{ariaLabel:r.ariaLabelCloseBtn,onClick:_}))),g?o.createElement("div",{className:a(s["fluid-wrapper"],s["fluid-wrapper--"+d],e({},s["fluid-wrapper--shadow"],h))},k):k}));export default d;export{f as variantToColorMap};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{P as s}from"../../Panel-
|
|
1
|
+
import{P as s}from"../../Panel-3ada0789.js";export{c as PanelLayout,a as PanelStatus,b as PanelVariant,P as default}from"../../Panel-3ada0789.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../Title-3a6d4597.js";import"../Title/styles.module.scss";import"../../constants-9528513d.js";import"../../Button-9f2ce63d.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Loader-670979af.js";import"../../uuid-11037462.js";import"../Loader/styles.module.scss";import"../../useHover-026f72c1.js";import"../../useWindowSize-5cc481da.js";import"../Button/styles.module.scss";import"../Icons/Icon.js";import"../Icons/ChevronDown.js";import"../Icons/ChevronUp.js";import"../Icons/ArrowRight.js";import"../Icons/AlertSignFill.js";import"../Icons/Pencil.js";import"../Icons/Calendar.js";import"../Icons/Watch.js";import"../../useBreakpoint-6eb418f7.js";import"../../Badge-32ba89d5.js";import"../Badge/styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import s from"react";import o from"./styles.module.scss";import{A as t}from"../../constants-
|
|
1
|
+
import s from"react";import o from"./styles.module.scss";import{A as t}from"../../constants-9528513d.js";import{b as e,P as r}from"../../Panel-3ada0789.js";import{c as i}from"../../index-9b84fabc.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"../Panel/styles.module.scss";import"../../Title-3a6d4597.js";import"../Title/styles.module.scss";import"../../Button-9f2ce63d.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Loader-670979af.js";import"../../uuid-11037462.js";import"../Loader/styles.module.scss";import"../../useHover-026f72c1.js";import"../../useWindowSize-5cc481da.js";import"../Button/styles.module.scss";import"../Icons/Icon.js";import"../Icons/ChevronDown.js";import"../Icons/ChevronUp.js";import"../Icons/ArrowRight.js";import"../Icons/AlertSignFill.js";import"../Icons/Pencil.js";import"../Icons/Calendar.js";import"../Icons/Watch.js";import"../../useBreakpoint-6eb418f7.js";import"../../Badge-32ba89d5.js";import"../Badge/styles.module.scss";var a=s.forwardRef((function(a,l){var m=a.testId,n=a.children,p=a.variant,c=void 0===p?e.fill:p;return s.createElement("div",{ref:l,"data-testid":m,className:o["panel-list"],"data-analyticsid":t.PanelList},s.Children.map(n,(function(t,a){return n=t,s.isValidElement(n)&&n.type===r?(l=t,m=0===a,s.cloneElement(l,{variant:c,noTopBorder:c===e.line&&!m,className:i(l.props.className,c!==e.line&&o["panel-list__panel"])})):t;var l,m,n})))}));export default a;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-
|
|
1
|
+
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-9528513d.js";export default function(n){var a=n.children,o=n.parent,i=n.className,c=n.testId,d=t.useMemo((function(){return document.createElement("div")}),[]);return d.setAttribute("data-analyticsid",r.Portal),c&&d.setAttribute("data-testid",c),t.useEffect((function(){var t=o&&o.appendChild?o:document.body,e=["portal-container"];return i&&i.split(" ").forEach((function(t){return e.push(t)})),e.forEach((function(t){return d.classList.add(t)})),t.appendChild(d),function(){t.removeChild(d)}}),[d,o,i]),e(a,d)}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{R as o}from"../../RadioButton-
|
|
1
|
+
import{R as o}from"../../RadioButton-71099f5c.js";export{R as RadioButton,R as default}from"../../RadioButton-71099f5c.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-11037462.js";import"./styles.module.scss";import"../../constants-9528513d.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-9b84fabc.js";import{T as i}from"../../Title-
|
|
1
|
+
import{_ as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-9b84fabc.js";import{T as i}from"../../Title-3a6d4597.js";import c from"./styles.module.scss";import{A as u}from"../../constants-9528513d.js";import"../Title/styles.module.scss";var s=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return m(e)?e.touches[0].pageX:e.pageX},d=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},m=function(e){return("touchcancel"===e.type||"touchend"===e.type||"touchenter"===e.type||"touchleave"===e.type||"touchmove"===e.type||"touchstart"===e.type)&&!(0===e.touches.length)},f=function(e,t,n){var r=e-e%t,a=Math.floor(n/t)*t;e>a&&(e>a+(n-a)/2&&(r=n));return Math.round(r)},v=t.forwardRef((function(m,v){var p=m.title,h=m.labelLeft,_=m.labelRight,g=m.disabled,E=void 0!==g&&g,y=m.step,b=void 0===y?1:y,w=m.onChange,k=m.testId,L=n(50),x=e(L,2),N=x[0],A=x[1],D=n(!1),M=e(D,2),R=M[0],j=M[1],T=n(0),B=e(T,2),C=B[0],P=B[1],I=n(0),S=e(I,2),X=S[0],H=S[1],K=n(0),U=e(K,2),q=U[0],z=U[1],F=n(0),G=e(F,2),J=G[0],O=G[1],Q=v||r(null),V=r(null),W=function(e){ne(e)},Y=function(e){te(e)},Z=function(e){ne(e)},$=function(e){te(e)};a((function(){var e=d(Q.current),t=d(V.current);z(function(e,t,n,r,a){return(t-n)/(a-r)*e}(N,e,t,0,100)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Z,$))}),[R]),a((function(){!E&&w&&w(N)}),[N]);var ee=function(e){var t;if(!E){var n=d(Q.current),r=d(V.current),a=l(e);!function(e,t,n,r){var a=t?t.getBoundingClientRect():void 0,o=a?a.left:0;r(o?e-(o+n/2):0)}(a,V.current,r,re),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},te=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Z,$),s(e))},ne=function(e){if(!E&&R){var t=l(e);re(t-J),s(e)}},re=function(e){if(0!==e){var t=function(e,t,n,r){var a=r+e;return a<0&&(a=0),a>t-n&&(a=t-n),a}(e,C,X,q);z(t),O(t+e),A(function(e,t,n,r,a,o){var i=(t-n)/(o-a),c=Math.round(e/i);return f(c,r,o)}(t,C,X,b,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":k,"data-analyticsid":u.Slider},p&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},p),t.createElement("div",{ref:Q,className:o(c["slider__track-wrapper"],E?c["slider__track-wrapper--disabled"]:""),onMouseDown:ee,onTouchStart:ee,"data-testid":"tracker"},t.createElement("div",{className:o(c.slider__track,E?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:V,className:o(c.slider__trigger,E?c["slider__trigger--disabled"]:""),style:{left:"".concat(q,"px")},onKeyDown:function(e){if(!E){var t=(C-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||re(b*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||re(-b*t)}},role:"slider","aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(p?p+" ":"").concat(h?h+" ":"").concat(_?_+" ":""),tabIndex:E?-1:0},t.createElement("div",{className:o(c["slider__trigger-inner"],E?c["slider__trigger-inner--disabled"]:"")}))),(h||_)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},_)))}));export default v;export{v as Slider};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as
|
|
1
|
+
import{d as s}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as r}from"../../index-9b84fabc.js";import e from"./styles.module.scss";import{A as l}from"../../constants-9528513d.js";var c=a.forwardRef((function(c,p){var t,x=c.size,o=void 0===x?"s":x,m=c.className,f=c.testId,i=r(e.spacer,(s(t={},e["spacer--4xs"],"4xs"===o),s(t,e["spacer--3xs"],"3xs"===o),s(t,e["spacer--2xs"],"2xs"===o),s(t,e["spacer--xs"],"xs"===o),s(t,e["spacer--s"],"s"===o),s(t,e["spacer--m"],"m"===o),s(t,e["spacer--l"],"l"===o),s(t,e["spacer--xl"],"xl"===o),s(t,e["spacer--2xl"],"2xl"===o),s(t,e["spacer--3xl"],"3xl"===o),s(t,e["spacer--4xl"],"4xl"===o),s(t,e["spacer--5xl"],"5xl"===o),s(t,e["spacer--6xl"],"6xl"===o),t),m);return a.createElement("span",{className:i,ref:p,"data-testid":f,"data-analyticsid":l.Spacer})}));export default c;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as
|
|
1
|
+
import{d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as r}from"../../index-9b84fabc.js";import e from"./styles.module.scss";import{I as o,A as s}from"../../constants-9528513d.js";import{Icon as n}from"../Icons/Icon.js";import c from"../Icons/Undo.js";import l from"../Icons/Group.js";import"../../_tslib-51c8a283.js";var i;!function(t){t.info="info",t.warning="warning",t.alert="alert",t.cancelled="cancelled",t.active="active",t.transparent="transparent",t.recurring="recurring",t.group="group"}(i||(i={}));var m=a.forwardRef((function(m,d){var u=m.variant,p=void 0===u?i.info:u,f=m.text,g=m.className,_=p===i.recurring||p===i.group,v=p===i.cancelled,b=r(e.statusdot,t({},e["statusdot--cancelled"],v),g),j=r(e.statusdot__dot,[_?e["statusdot__dot--icon"]:e["statusdot__dot--".concat(p)]]),I=r(e.statusdot__label,t({},e["statusdot__label--icon"],_),g),E=null;return"recurring"===p?E=a.createElement(n,{size:o.XXSmall,svgIcon:c}):"group"===p&&(E=a.createElement(n,{size:o.XXSmall,svgIcon:l})),a.createElement("div",{className:b,"data-analyticsid":s.StatusDot},a.createElement("span",{className:j},E),a.createElement("span",{className:I},f))}));export default m;export{i as StatusDotVariant};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as s}from"../../Textarea-
|
|
1
|
+
import{T as s}from"../../Textarea-e1e649cf.js";export{T as default}from"../../Textarea-e1e649cf.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-9528513d.js";import"../../uuid-11037462.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Tile/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-9b84fabc.js";import{A as o,I as n}from"../../constants-
|
|
1
|
+
import{_ as e,d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-9b84fabc.js";import{A as o,I as n}from"../../constants-9528513d.js";import s from"./styles.module.scss";var c=r.forwardRef((function(e,i){var l,o=e.children,n=e.className,c=e.htmlMarkup,d=void 0===c?"span":c,m=e.highlighted,f=e.compact,p=a(s.tile__title,(t(l={},s["tile__title--highlighted"],m),t(l,s["tile__title--compact"],f),l),n),u=d;return r.createElement(u,{className:p,ref:i},o)})),d=r.forwardRef((function(c,d){var m,f=c.icon,p=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,v=void 0!==_&&_,b=c.highlighted,E=void 0!==b&&b,N=c.testId,x=i(c,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),M=w[0],k=w[1],I=!g,y=a(s.tile,(t(m={},s["tile--fixed"],v),t(m,s["tile--compact"],I),t(m,s["tile--highlighted"],E),m),h),B=a(s["title-wrapper"],t({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:d,className:y,onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},x),r.createElement("div",{className:B},r.cloneElement(f,{size:n.Medium,isHovered:M,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:I})),g?r.createElement("p",{className:s.tile__description},g):null)}));d.Title=c;export default d;export{d as Tile};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as s}from"../../Title-
|
|
1
|
+
import{T as s}from"../../Title-3a6d4597.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-3a6d4597.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-9528513d.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{V as s}from"../../Validation-
|
|
1
|
+
import{V as s}from"../../Validation-5d79f53e.js";export{V as Validation,V as default}from"../../Validation-5d79f53e.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-157f9e03.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-1e2c2047.js";import"../../uuid-11037462.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-9528513d.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-71099f5c.js";import"../RadioButton/styles.module.scss";import"../../Input-5bb47387.js";import"../../useBreakpoint-6eb418f7.js";import"../Input/styles.module.scss";import"../../Title-3a6d4597.js";import"../Title/styles.module.scss";import"../../FormLayout-a3d440c1.js";import"../FormLayout/styles.module.scss";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var o,a,n,e,r,i;!function(o){o[o.XXSmall=24]="XXSmall",o[o.XSmall=38]="XSmall",o[o.Small=48]="Small",o[o.Medium=64]="Medium",o[o.Large=80]="Large",o[o.XLarge=130]="XLarge"}(o||(o={})),function(o){o[o.Modal=13e5]="Modal",o[o.ExpanderTrigger=1e4]="ExpanderTrigger"}(a||(a={})),function(o){o.onwhite="onwhite",o.ongrey="ongrey",o.onblueberry="onblueberry",o.ondark="ondark",o.oninvalid="oninvalid"}(n||(n={})),function(o){o.normal="normal",o.bigform="bigform"}(e||(e={})),function(o){o.AnchorLink="anchor-link",o.Avatar="avatar",o.Badge="badge",o.Button="button",o.Checkbox="checkbox",o.Close="close",o.Dropdown="dropdown",o.Expander="expander",o.ExpanderList="expander-list",o.ExpanderListExpander="expander-list-expander",o.FormGroup="form-group",o.FormLayout="form-layout",o.HighlightBox="highlight-box",o.Icon="icon",o.Input="input",o.Link="link",o.LinkList="link-list",o.List="list",o.Loader="loader",o.Logo="logo",o.Modal="modal",o.NotificationPanel="notification-panel",o.Panel="panel",o.PanelList="panel-list",o.Portal="portal",o.RadioButton="radio-button",o.Slider="slider",o.Spacer="spacer",o.StatusDot="status-dot",o.Textarea="textarea",o.Tile="tile",o.Title="title",o.Validation="validation"}(r||(r={})),function(o){o.Enter="Enter",o.Escape="Escape",o.ArrowDown="ArrowDown",o.ArrowUp="ArrowUp",o.Home="Home",o.End="End"}(i||(i={}));export{r as A,n as F,o as I,i as K,a as Z,e as a};
|
|
2
|
+
//# sourceMappingURL=constants-9528513d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-9528513d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/constants.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export declare enum AnalyticsId {
|
|
|
69
69
|
Button = "button",
|
|
70
70
|
Checkbox = "checkbox",
|
|
71
71
|
Close = "close",
|
|
72
|
+
Dropdown = "dropdown",
|
|
72
73
|
Expander = "expander",
|
|
73
74
|
ExpanderList = "expander-list",
|
|
74
75
|
ExpanderListExpander = "expander-list-expander",
|
|
@@ -96,4 +97,12 @@ export declare enum AnalyticsId {
|
|
|
96
97
|
Title = "title",
|
|
97
98
|
Validation = "validation"
|
|
98
99
|
}
|
|
100
|
+
export declare enum KeyboardEventKey {
|
|
101
|
+
Enter = "Enter",
|
|
102
|
+
Escape = "Escape",
|
|
103
|
+
ArrowDown = "ArrowDown",
|
|
104
|
+
ArrowUp = "ArrowUp",
|
|
105
|
+
Home = "Home",
|
|
106
|
+
End = "End"
|
|
107
|
+
}
|
|
99
108
|
//# sourceMappingURL=constants.d.ts.map
|
package/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,KAAK;IACZ,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM,KAAK;IACX,KAAK,KAAK;IACV,MAAM,MAAM;CACb;AAED,oBAAY,MAAM;IAChB,KAAK,UAAU;IACf,eAAe,QAAQ;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAA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;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useKeyboardEvent: <E extends "keydown" | "keypress" | "keyup">(eventName: E, ref: import("react").RefObject<HTMLElement>, key: string | string[], callback: (event: HTMLElementEventMap[E]) => void) => void;
|
|
3
|
+
//# sourceMappingURL=useKeyboardEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboardEvent.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,gBAAgB,4LAkB5B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Custom hook for klikk eller fokus utenfor et gitt element
|
|
4
|
+
* @param ref Sjekker om det klikkes utenfor dette elementet
|
|
5
|
+
* @param handleClick Callback-funksjon ved klikk utenfor elementet
|
|
6
|
+
* @param events Type eventer å lytte på. Default: mousedown
|
|
7
|
+
*/
|
|
8
|
+
export declare const useOutsideEvent: (ref: import("react").RefObject<HTMLElement>, handleClick: () => void, events?: ("auxclick" | "blur" | "click" | "contextmenu" | "dblclick" | "drag" | "dragend" | "dragenter" | "dragleave" | "dragover" | "dragstart" | "drop" | "focus" | "focusin" | "focusout" | "gotpointercapture" | "lostpointercapture" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "pointercancel" | "pointerdown" | "pointerenter" | "pointerleave" | "pointermove" | "pointerout" | "pointerover" | "pointerup" | "wheel")[]) => void;
|
|
9
|
+
//# sourceMappingURL=useOutsideEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOutsideEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideEvent.ts"],"names":[],"mappings":";AAMA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,0iBAkB3B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Lytt på endringer i størrelse på et element. Bruker ResizeObserver-APIet.
|
|
4
|
+
*
|
|
5
|
+
* @param ref Element som skal observeres.
|
|
6
|
+
* @returns Object med høyde, bredde, x og y til elementet
|
|
7
|
+
*/
|
|
8
|
+
export declare const useResizeObserver: (ref?: import("react").RefObject<HTMLElement> | undefined) => DOMRect | undefined;
|
|
9
|
+
//# sourceMappingURL=useResizeObserver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResizeObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useResizeObserver.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,mFAa7B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for å toggle en boolean og kjøre en callback når verdien endres
|
|
3
|
+
*
|
|
4
|
+
* @param initialValue Initiell verdi for boolean
|
|
5
|
+
* @param callback Funksjon som kalles når value endrer verdi (optional)
|
|
6
|
+
* @returns Objekt med nåværende verdi og funksjon som kan kalles for å toggle verdien
|
|
7
|
+
*/
|
|
8
|
+
export declare const useToggle: (initialValue: boolean, callback?: ((value: boolean) => void) | undefined) => {
|
|
9
|
+
value: boolean;
|
|
10
|
+
toggleValue: () => void;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;CAqBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUuid.d.ts","sourceRoot":"","sources":["../../src/hooks/useUuid.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,cAInB,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export { usePrevious } from './hooks/usePrevious';
|
|
|
10
10
|
export { useSticky } from './hooks/useSticky';
|
|
11
11
|
export { useWindowSize } from './hooks/useWindowSize';
|
|
12
12
|
export { useSize } from './hooks/useSize';
|
|
13
|
+
export { useResizeObserver } from './hooks/useResizeObserver';
|
|
14
|
+
export { useToggle } from './hooks/useToggle';
|
|
15
|
+
export { useKeyboardEvent } from './hooks/useKeyboardEvent';
|
|
16
|
+
export { useOutsideEvent } from './hooks/useOutsideEvent';
|
|
17
|
+
export { useUuid } from './hooks/useUuid';
|
|
13
18
|
export { uuid } from './utils/uuid';
|
|
14
19
|
export * from './constants';
|
|
15
20
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,aAAa,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-6eb418f7.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";import{u as e}from"./useWindowSize-5cc481da.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as s}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r}from"react";export{u as uuid}from"./uuid-
|
|
1
|
+
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-6eb418f7.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";import{u as e}from"./useWindowSize-5cc481da.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as s}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle,d as useUuid}from"./useUuid-1ecdf8e8.js";export{u as uuid}from"./uuid-11037462.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,K as KeyboardEventKey,Z as ZIndex}from"./constants-9528513d.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var a=r(),u=s(a,2),t=u[0],i=u[1];return e((function(){(null==o?void 0:o.current)&&i(o.current.getBoundingClientRect())})),t};export{o as useSize};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as n}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r,useEffect as e}from"react";import{u as t}from"./usePrevious-ae293b10.js";import{u}from"./uuid-11037462.js";var o=function(t){var u=r(),o=n(u,2),i=o[0],c=o[1];return e((function(){var n=new ResizeObserver((function(n){c(n[0].target.getBoundingClientRect())}));return(null==t?void 0:t.current)&&n.observe(null==t?void 0:t.current),n.disconnect}),[t]),i},i=function(u,o){var i=r(u),c=n(i,2),a=c[0],f=c[1],s=t(a);return e((function(){u!==a&&f(u)}),[u]),e((function(){o&&a!==!!s&&o(a)}),[a,o]),{value:a,toggleValue:function(){f(!a)}}},c=function(n,r,t,u){e((function(){var e,o=function(n){(n.key===t||Array.isArray(t)&&t.includes(n.key))&&u(n)};return null===(e=r.current)||void 0===e||e.addEventListener(n,o),function(){var e;null===(e=r.current)||void 0===e||e.removeEventListener(n,o)}}),[r,u])},a=function(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["mousedown"],u=function(e){var t;(null===(t=n.current)||void 0===t?void 0:t.contains(e.target))||r()};e((function(){return t.forEach((function(n){return document.addEventListener(n,u)})),function(){t.forEach((function(n){return document.removeEventListener(n,u)}))}}))},f=function(){var e=r(u());return n(e,1)[0]};export{i as a,c as b,a as c,f as d,o as u};
|
|
2
|
+
//# sourceMappingURL=useUuid-1ecdf8e8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUuid-1ecdf8e8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/uuid-11037462.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var x=function(){return"test"===process.env.NODE_ENV?"test":"bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/[x]/g,(function(x){var t=16*Math.random()|0;return("x"==x?t:3&t|8).toString(16)}))},t=Object.freeze({__proto__:null,uuid:x,default:x});export{t as a,x as u};
|
|
2
|
+
//# sourceMappingURL=uuid-11037462.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uuid-11037462.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Badge-2d8d73dd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Badge-2d8d73dd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Button-19ee3464.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-19ee3464.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Checkbox-ca6c635d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e,d as c}from"./_rollupPluginBabelHelpers-4f206abf.js";import o,{useState as r,useEffect as a}from"react";import{c as l}from"./index-9b84fabc.js";import{u as s}from"./uuid-fe7442b7.js";import n from"./components/Icons/Check.js";import{Icon as b}from"./components/Icons/Icon.js";import{F as i,a as t,A as m,I as p}from"./constants-4fe8c7ff.js";import{g as d}from"./color-e7d082c1.js";import h from"./components/Checkbox/styles.module.scss";var k=o.forwardRef((function(k,x){var f,u,_,v=k.className,w=k.checked,y=void 0!==w&&w,g=k.disabled,N=k.label,j=k.inputId,E=void 0===j?s():j,I=k.mode,C=k.name,F=void 0===C?E:C,z=k.variant,A=k.errorText,B=k.error,H=void 0===B?!!A:B,P=k.value,R=void 0===P?N:P,S=r(y),T=e(S,2),X=T[0],q=T[1],D=H||I===i.oninvalid,G=I===i.ondark,J=I===i.onblueberry,K=z===t.bigform,L=l(h["checkbox-wrapper"],(c(f={},h["checkbox-wrapper--with-error"],A),c(f,h["checkbox-wrapper--bigform"],K),f)),M=l(h["checkbox-label"],(c(u={},h["checkbox-label--disabled"],g),c(u,h["checkbox-label--on-dark"],G),c(u,h["checkbox-label--on-blueberry"],J),c(u,h["checkbox-label--invalid"],D),c(u,h["checkbox-label--bigform"],K),u)),O=l(h.checkbox,v),Q=l(h["checkbox__icon-wrapper"],(c(_={},h["checkbox__icon-wrapper--checked"],X),c(_,h["checkbox__icon-wrapper--disabled"],g),c(_,h["checkbox__icon-wrapper--on-dark"],G),c(_,h["checkbox__icon-wrapper--on-blueberry"],J),c(_,h["checkbox__icon-wrapper--invalid"],D),_)),U=l(h["checkbox-errors"],c({},h["checkbox-errors--bigform"],K)),V=d("blueberry",500);return g&&(V=d("neutral",400)),G&&(V=d("blueberry",200)),D&&(V=d("cherry",500)),a((function(){q(y)}),[y]),o.createElement("div",{"data-testid":k.testId,"data-analyticsid":m.Checkbox,className:L},A&&o.createElement("p",{className:U},A),o.createElement("label",{htmlFor:E,className:M},o.createElement("input",{id:E,name:F,className:O,type:"checkbox",checked:X,disabled:g,onChange:function(){q(!X)},value:R,ref:x,"aria-invalid":H}),o.createElement("span",{className:Q},X&&o.createElement(b,{color:V,className:h.checkbox__icon,svgIcon:n,size:p.XSmall})),o.createElement("span",{className:h["checkbox-label__text"]},N)))}));export{k as C};
|
|
2
|
-
//# sourceMappingURL=Checkbox-ca6c635d.js.map
|
package/Checkbox-ca6c635d.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox-ca6c635d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Close-476c50c6.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Close-476c50c6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup-a776b535.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormLayout-8d6d4552.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Input-cd941f2f.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input-cd941f2f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Loader-2f304e4f.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-2f304e4f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Modal-d0213453.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal-d0213453.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Panel-33611d84.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Panel-33611d84.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton-6a868eb3.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Textarea-1c857a8a.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea-1c857a8a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Title-2522b5b9.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Title-2522b5b9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validation-fa8b28c3.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/constants-4fe8c7ff.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var a,o,n,e,i;!function(a){a[a.XXSmall=24]="XXSmall",a[a.XSmall=38]="XSmall",a[a.Small=48]="Small",a[a.Medium=64]="Medium",a[a.Large=80]="Large",a[a.XLarge=130]="XLarge"}(a||(a={})),function(a){a[a.Modal=13e5]="Modal",a[a.ExpanderTrigger=1e4]="ExpanderTrigger"}(o||(o={})),function(a){a.onwhite="onwhite",a.ongrey="ongrey",a.onblueberry="onblueberry",a.ondark="ondark",a.oninvalid="oninvalid"}(n||(n={})),function(a){a.normal="normal",a.bigform="bigform"}(e||(e={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Expander="expander",a.ExpanderList="expander-list",a.ExpanderListExpander="expander-list-expander",a.FormGroup="form-group",a.FormLayout="form-layout",a.HighlightBox="highlight-box",a.Icon="icon",a.Input="input",a.Link="link",a.LinkList="link-list",a.List="list",a.Loader="loader",a.Logo="logo",a.Modal="modal",a.NotificationPanel="notification-panel",a.Panel="panel",a.PanelList="panel-list",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.StatusDot="status-dot",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(i||(i={}));export{i as A,n as F,a as I,o as Z,e as a};
|
|
2
|
-
//# sourceMappingURL=constants-4fe8c7ff.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-4fe8c7ff.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/uuid-fe7442b7.js
DELETED
package/uuid-fe7442b7.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid-fe7442b7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|