@helsenorge/designsystem-react 1.0.0-beta137 → 1.0.0-beta138
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/{AlertSignFill-a4281dbe.js → AlertSignFill-e0a05c2b.js} +2 -2
- package/AlertSignFill-e0a05c2b.js.map +1 -0
- package/{AlertSignStroke-dee7da33.js → AlertSignStroke-d16ccb9e.js} +2 -2
- package/AlertSignStroke-d16ccb9e.js.map +1 -0
- package/AnchorLink-140a72b0.js +2 -0
- package/AnchorLink-140a72b0.js.map +1 -0
- package/{ArrowRight-1ccb58be.js → ArrowRight-2e4b6122.js} +2 -2
- package/ArrowRight-2e4b6122.js.map +1 -0
- package/{ArrowUpRight-209b1749.js → ArrowUpRight-e9f5b42e.js} +2 -2
- package/ArrowUpRight-e9f5b42e.js.map +1 -0
- package/{Badge-b651a9fc.js → Badge-d7e6ebd7.js} +2 -2
- package/Badge-d7e6ebd7.js.map +1 -0
- package/{Button-41d2f9a6.js → Button-1ae9497c.js} +2 -2
- package/{constants-1371e04f.js.map → Button-1ae9497c.js.map} +1 -1
- package/{Calendar-926618b6.js → Calendar-03556b56.js} +2 -2
- package/Calendar-03556b56.js.map +1 -0
- package/{Check-026c98a8.js → Check-632c2b4f.js} +2 -2
- package/Check-632c2b4f.js.map +1 -0
- package/{Checkbox-2cffb399.js → Checkbox-7d0879d2.js} +2 -2
- package/Checkbox-7d0879d2.js.map +1 -0
- package/{ChevronDown-d799367a.js → ChevronDown-652aa9e9.js} +2 -2
- package/ChevronDown-652aa9e9.js.map +1 -0
- package/{ChevronRight-5087373d.js → ChevronRight-a4c19be9.js} +2 -2
- package/ChevronRight-a4c19be9.js.map +1 -0
- package/{ChevronUp-ed252eb6.js → ChevronUp-558a33cd.js} +2 -2
- package/ChevronUp-558a33cd.js.map +1 -0
- package/Close-ddb54826.js +2 -0
- package/Close-ddb54826.js.map +1 -0
- package/{FormGroup-172ed911.js → FormGroup-1f11adfb.js} +2 -2
- package/FormGroup-1f11adfb.js.map +1 -0
- package/{FormLayout-6563dba9.js → FormLayout-4207a2c9.js} +2 -2
- package/FormLayout-4207a2c9.js.map +1 -0
- package/{Group-777dfb43.js → Group-4d979be0.js} +2 -2
- package/Group-4d979be0.js.map +1 -0
- package/HelpBubble-6c6578d2.js +2 -0
- package/HelpBubble-6c6578d2.js.map +1 -0
- package/{Hospital-8d5ea230.js → Hospital-444c2277.js} +2 -2
- package/Hospital-444c2277.js.map +1 -0
- package/{Icon-91bb7737.js → Icon-877aeed0.js} +2 -2
- package/Icon-877aeed0.js.map +1 -0
- package/{InfoSignStroke-0c13eebe.js → InfoSignStroke-415508d1.js} +2 -2
- package/InfoSignStroke-415508d1.js.map +1 -0
- package/{Input-95c3e662.js → Input-b2f694f4.js} +2 -2
- package/Input-b2f694f4.js.map +1 -0
- package/{Loader-7a90b2b8.js → Loader-c8d984bc.js} +2 -2
- package/Loader-c8d984bc.js.map +1 -0
- package/{Modal-9b7c8a39.js → Modal-aaedf680.js} +2 -2
- package/Modal-aaedf680.js.map +1 -0
- package/{NoAccess-14f5700e.js → NoAccess-c1a3f055.js} +2 -2
- package/NoAccess-c1a3f055.js.map +1 -0
- package/{Panel-4cd6abfc.js → Panel-cc50d8e5.js} +2 -2
- package/Panel-cc50d8e5.js.map +1 -0
- package/{Pencil-d3aeffa1.js → Pencil-0b63b983.js} +2 -2
- package/Pencil-0b63b983.js.map +1 -0
- package/{PlusSmall-5b12d79f.js → PlusSmall-06513a15.js} +2 -2
- package/PlusSmall-06513a15.js.map +1 -0
- package/{RadioButton-3e95b8fa.js → RadioButton-dba5974f.js} +2 -2
- package/RadioButton-dba5974f.js.map +1 -0
- package/{Textarea-74180432.js → Textarea-529da670.js} +2 -2
- package/Textarea-529da670.js.map +1 -0
- package/Title-b5e19cfc.js +2 -0
- package/Title-b5e19cfc.js.map +1 -0
- package/Tooltip-f6c63399.js +2 -0
- package/Tooltip-f6c63399.js.map +1 -0
- package/{Undo-d7e73ddf.js → Undo-7021257e.js} +2 -2
- package/Undo-7021257e.js.map +1 -0
- package/Validation-93e6d691.js +2 -0
- package/Validation-93e6d691.js.map +1 -0
- package/{Watch-b2904174.js → Watch-a947e459.js} +2 -2
- package/Watch-a947e459.js.map +1 -0
- package/{X-b4f72c96.js → X-3e7c0719.js} +2 -2
- package/X-3e7c0719.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/index.js +1 -1
- 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/FormGroup/styles.module.scss +0 -1
- package/components/FormLayout/index.js +1 -1
- package/components/HelpBubble/HelpBubble.d.ts +4 -0
- package/components/HelpBubble/HelpBubble.d.ts.map +1 -1
- package/components/HelpBubble/componentdata.json +38 -0
- package/components/HelpBubble/index.js +1 -1
- package/components/HelpBubble/styles.module.scss +4 -0
- package/components/HelpBubble/styles.module.scss.d.ts +1 -0
- package/components/HelpBubbleExample/componentdata.json +38 -0
- package/components/HelpBubbleExample/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/NoAccess.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/Tag/index.js +1 -1
- package/components/TagList/index.js +1 -1
- package/components/Textarea/index.js +1 -1
- package/components/Tile/index.js +1 -1
- package/components/Title/Title.d.ts +1 -1
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/componentdata.json +164 -1
- package/components/Title/index.js +1 -1
- package/components/Tooltip/Tooltip.d.ts +18 -0
- package/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/components/Tooltip/componentdata.json +65 -0
- package/components/Tooltip/index.d.ts +4 -0
- package/components/Tooltip/index.d.ts.map +1 -0
- package/components/Tooltip/index.js +2 -0
- package/components/Tooltip/index.js.map +1 -0
- package/components/Tooltip/styles.module.scss +18 -0
- package/components/Tooltip/styles.module.scss.d.ts +9 -0
- package/components/TooltipExample/TooltipExample.d.ts +5 -0
- package/components/TooltipExample/TooltipExample.d.ts.map +1 -0
- package/components/TooltipExample/componentdata.json +65 -0
- package/components/TooltipExample/index.d.ts +4 -0
- package/components/TooltipExample/index.d.ts.map +1 -0
- package/components/TooltipExample/index.js +2 -0
- package/components/TooltipExample/index.js.map +1 -0
- package/components/Validation/index.js +1 -1
- package/constants-d84659f5.js +2 -0
- package/constants-d84659f5.js.map +1 -0
- package/constants.d.ts +1 -0
- package/constants.d.ts.map +1 -1
- package/hooks/useSize.d.ts.map +1 -1
- package/index-7f01d36f.js +2 -0
- package/index-7f01d36f.js.map +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/{useSticky-445a0370.js → useSticky-432642c9.js} +2 -2
- package/useSticky-432642c9.js.map +1 -0
- package/utils/loremtext.d.ts +3 -0
- package/utils/loremtext.d.ts.map +1 -0
- package/AlertSignFill-a4281dbe.js.map +0 -1
- package/AlertSignStroke-dee7da33.js.map +0 -1
- package/AnchorLink-9d160426.js +0 -2
- package/AnchorLink-9d160426.js.map +0 -1
- package/ArrowRight-1ccb58be.js.map +0 -1
- package/ArrowUpRight-209b1749.js.map +0 -1
- package/Badge-b651a9fc.js.map +0 -1
- package/Button-41d2f9a6.js.map +0 -1
- package/Calendar-926618b6.js.map +0 -1
- package/Check-026c98a8.js.map +0 -1
- package/Checkbox-2cffb399.js.map +0 -1
- package/ChevronDown-d799367a.js.map +0 -1
- package/ChevronRight-5087373d.js.map +0 -1
- package/ChevronUp-ed252eb6.js.map +0 -1
- package/Close-1846777e.js +0 -2
- package/Close-1846777e.js.map +0 -1
- package/FormGroup-172ed911.js.map +0 -1
- package/FormLayout-6563dba9.js.map +0 -1
- package/Group-777dfb43.js.map +0 -1
- package/HelpBubble-de54b956.js +0 -2
- package/HelpBubble-de54b956.js.map +0 -1
- package/Hospital-8d5ea230.js.map +0 -1
- package/Icon-91bb7737.js.map +0 -1
- package/InfoSignStroke-0c13eebe.js.map +0 -1
- package/Input-95c3e662.js.map +0 -1
- package/Loader-7a90b2b8.js.map +0 -1
- package/Modal-9b7c8a39.js.map +0 -1
- package/NoAccess-14f5700e.js.map +0 -1
- package/Panel-4cd6abfc.js.map +0 -1
- package/Pencil-d3aeffa1.js.map +0 -1
- package/PlusSmall-5b12d79f.js.map +0 -1
- package/RadioButton-3e95b8fa.js.map +0 -1
- package/Textarea-74180432.js.map +0 -1
- package/Title-761aecc5.js +0 -2
- package/Title-761aecc5.js.map +0 -1
- package/Undo-d7e73ddf.js.map +0 -1
- package/Validation-b51b75ab.js +0 -2
- package/Validation-b51b75ab.js.map +0 -1
- package/Watch-b2904174.js.map +0 -1
- package/X-b4f72c96.js.map +0 -1
- package/constants-1371e04f.js +0 -2
- package/index-5f313f08.js +0 -2
- package/index-5f313f08.js.map +0 -1
- package/useSticky-445a0370.js.map +0 -1
package/components/Icons/Zoom.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{g as
|
|
1
|
+
import e from"react";import{g as a}from"../../Icon-877aeed0.js";import"../../_tslib-b219470a.js";import"../../index-d1c0552c.js";import"../../constants-d84659f5.js";import"../../useUuid-3b1e73f2.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../uuid-11037462.js";var l=function(l){var c=l.size,v=l.isHovered;return a(c,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",fillRule:"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",fillRule:"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",fillRule:"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",fillRule:"evenodd"}))};export{l as default};
|
|
2
2
|
//# sourceMappingURL=Zoom.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{I as Icon,I as default,g as getIcon}from"../../Icon-
|
|
1
|
+
export{I as Icon,I as default,g as getIcon}from"../../Icon-877aeed0.js";export{I as IconSize}from"../../constants-d84659f5.js";import"../../_tslib-b219470a.js";import"../../index-d1c0552c.js";import"react";import"../../useUuid-3b1e73f2.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../uuid-11037462.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as InputTypes,I as default}from"../../Input-
|
|
1
|
+
export{a as InputTypes,I as default}from"../../Input-b2f694f4.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"react";import"../../index-d1c0552c.js";import"../../constants-d84659f5.js";import"../../uuid-11037462.js";import"../../Icon-877aeed0.js";import"../../useUuid-3b1e73f2.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../useBreakpoint-a74f5af5.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as r}from"../../_tslib-b219470a.js";import i from"react";import{c as s}from"../../index-d1c0552c.js";import{I as
|
|
1
|
+
import{d as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as r}from"../../_tslib-b219470a.js";import i from"react";import{c as s}from"../../index-d1c0552c.js";import{I as a}from"../../Icon-877aeed0.js";import{A as t,I as o}from"../../constants-d84659f5.js";import{C as l}from"../../ChevronRight-a4c19be9.js";import{u as n,B as m}from"../../useBreakpoint-a74f5af5.js";import{u as c}from"../../useHover-b995a0e6.js";import d from"./styles.module.scss";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../grid-c105cad1.js";var f=i.forwardRef((function(f,p){var v,u=f.children,_=f.className,h=void 0===_?"":_,k=f.color,b=void 0===k?"neutral":k,j=f.icon,g=f.size,E=void 0===g?"medium":g,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=c(),H=B.hoverRef,R=B.isHovered,x=n(),C="small"!==E&&!(!I&&!j);return i.createElement("li",{ref:p,"data-testid":L,"data-analyticsid":t.Link},i.createElement("a",Object.assign({className:s(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),C&&j&&i.createElement("span",{className:d["link-list__icon"]},i.cloneElement(j,{size:x===m.xs?o.XSmall:o.Small,isHovered:R})),i.createElement("span",{className:d["link-list__content"]},u),C&&I&&i.createElement("span",{className:d["link-list__chevron"]},i.createElement(a,{svgIcon:l,isHovered:R,size:o.XSmall}))))})),p=i.forwardRef((function(r,a){var o,l=r.children,n=r.className,m=void 0===n?"":n,c=r.chevron,p=void 0!==c&&c,v=r.size,u=void 0===v?"medium":v,_=r.color,h=r.topBorder,k=void 0===h||h,b=r.bottomBorder,j=void 0===b||b,g=r.testId;return i.createElement("ul",{ref:a,className:s(d["link-list"],(o={},e(o,d["link-list--hastopborder"],k),e(o,d["link-list--nobottomborder"],!j),o),m||""),"data-testid":g,"data-analyticsid":t.LinkList},i.Children.map(l,(function(e){if(e.type===f)return i.cloneElement(e,{color:_,size:u,chevron:p})})))}));p.Link=f,f.displayName="LinkList.Link";export{p as LinkList,p as default};
|
|
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-d1c0552c.js";import s from"./styles.module.scss";import{A as a}from"../../constants-
|
|
1
|
+
import t from"react";import{c as e}from"../../index-d1c0552c.js";import s from"./styles.module.scss";import{A as a}from"../../constants-d84659f5.js";function r(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)})))}export{r as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{O as Overlay,L as default}from"../../Loader-
|
|
1
|
+
export{O as Overlay,L as default}from"../../Loader-c8d984bc.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"../../uuid-11037462.js";import"./styles.module.scss";import"../../constants-d84659f5.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Logo/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_tslib-b219470a.js";import t from"react";import{A as c}from"../../constants-
|
|
1
|
+
import{_ as e}from"../../_tslib-b219470a.js";import t from"react";import{A as c}from"../../constants-d84659f5.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"})))};function v(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))}export{v as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-
|
|
1
|
+
export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-aaedf680.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"../../palette-f206f488.js";import"../../Button-1ae9497c.js";import"../../_tslib-b219470a.js";import"../../constants-d84659f5.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../grid-c105cad1.js";import"../../Icon-877aeed0.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-c8d984bc.js";import"../Loader/styles.module.scss";import"../../useHover-b995a0e6.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"./styles.module.scss";import"../../AlertSignStroke-d16ccb9e.js";import"../../AlertSignFill-e0a05c2b.js";import"../../useIsVisible-bef05e5e.js";import"../../Title-b5e19cfc.js";import"../Title/styles.module.scss";import"../../Close-ddb54826.js";import"../../X-3e7c0719.js";import"../Close/styles.module.scss";import"../../CheckOutline-86cddefd.js";import"../../index-7f01d36f.js";import"react-dom";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as o}from"../../index-d1c0552c.js";import{p as i}from"../../palette-f206f488.js";import{I as r}from"../../Icon-
|
|
1
|
+
import{d as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as o}from"../../index-d1c0552c.js";import{p as i}from"../../palette-f206f488.js";import{I as r}from"../../Icon-877aeed0.js";import{A as t}from"../../constants-d84659f5.js";import{I as n}from"../../InfoSignStroke-415508d1.js";import{A as l}from"../../AlertSignStroke-d16ccb9e.js";import{A as s}from"../../AlertSignFill-e0a05c2b.js";import c from"./styles.module.scss";import{C as m}from"../../Close-ddb54826.js";import"../../_tslib-b219470a.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../X-3e7c0719.js";import"../Close/styles.module.scss";import"../../useBreakpoint-a74f5af5.js";import"../../grid-c105cad1.js";var p={info:{color:"kiwi",depth:50},warn:{color:"banana",depth:50},alert:{color:"cherry",depth:100},crisis:{color:"black",depth:0}},f={info:a.createElement(r,{svgIcon:n,color:i.kiwi900,hoverColor:i.kiwi900}),warn:a.createElement(r,{svgIcon:l,color:"black",hoverColor:"black"}),alert:a.createElement(r,{svgIcon:s,color:i.cherry500,hoverColor:i.cherry500}),alertLabel:a.createElement(r,{svgIcon:l,color:i.cherry500,hoverColor:i.cherry500}),crisis:a.createElement(r,{svgIcon:s,color:i.banana200,hoverColor:i.banana200})},d=a.forwardRef((function(i,r){var n,l,s=i.children,p=i.variant,d=void 0===p?"info":p,b=i.shadow,h=void 0!==b&&b,u=i.dismissable,v=void 0!==u&&u,_=i.onClick,j=i.label,g=i.fluid,w=void 0!==g&&g,C=i.size,E=i.className,k=i.testId;var y,I=!!j&&!s;return y=a.createElement("div",{ref:r,"data-testid":k,"data-analyticsid":t.NotificationPanel,className:o(c["notification-panel"],C&&c["notification-panel--"+C],c["notification-panel--"+d],(n={},e(n,c["notification-panel--shadow"],!w&&h),e(n,c["notification-panel--has-children"],!I),e(n,c["notification-panel--label-only"],I),e(n,c["notification-panel--dismissable"],!I&&v),n),E)},a.createElement("span",{className:c["notification-panel__icon"]},f["alert"===d&&j&&!s?"alertLabel":d]),!I&&v&&a.createElement("span",{className:c["notification-panel__close"]},a.createElement(m,{ariaLabel:i.ariaLabelCloseBtn,onClick:_})),a.createElement("section",{"aria-label":function(){if(s){var e="";return a.Children.map(s,(function(a){"string"==typeof a&&(e+=a)})),e}return""}(),className:o(c["notification-panel__content"],(l={},e(l,c["notification-panel__content--crisis"],"crisis"===d),e(l,c["notification-panel__content--alert"],"alert"===d),l))},j&&a.createElement("h1",{className:c["notification-panel__label"],dangerouslySetInnerHTML:{__html:j}}),s)),w?a.createElement("div",{className:o(c["fluid-wrapper"],c["fluid-wrapper--"+d],e({},c["fluid-wrapper--shadow"],h))},y):y}));export{d as default,p as variantToColorMap};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{c as PanelLayout,a as PanelStatus,b as PanelVariant,P as default}from"../../Panel-
|
|
1
|
+
export{c as PanelLayout,a as PanelStatus,b as PanelVariant,P as default}from"../../Panel-cc50d8e5.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../Title-b5e19cfc.js";import"../Title/styles.module.scss";import"../../constants-d84659f5.js";import"../../Button-1ae9497c.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Icon-877aeed0.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-c8d984bc.js";import"../Loader/styles.module.scss";import"../../useHover-b995a0e6.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"../../ChevronDown-652aa9e9.js";import"../../ChevronUp-558a33cd.js";import"../../ArrowRight-2e4b6122.js";import"../../AlertSignFill-e0a05c2b.js";import"../../Pencil-0b63b983.js";import"../../Calendar-03556b56.js";import"../../Watch-a947e459.js";import"../../Badge-d7e6ebd7.js";import"../Badge/styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";import s from"./styles.module.scss";import{A as t}from"../../constants-d84659f5.js";import{b as r,P as o}from"../../Panel-cc50d8e5.js";import{c as i}from"../../index-d1c0552c.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"../Panel/styles.module.scss";import"../../Title-b5e19cfc.js";import"../Title/styles.module.scss";import"../../Button-1ae9497c.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Icon-877aeed0.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-c8d984bc.js";import"../Loader/styles.module.scss";import"../../useHover-b995a0e6.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"../../ChevronDown-652aa9e9.js";import"../../ChevronUp-558a33cd.js";import"../../ArrowRight-2e4b6122.js";import"../../AlertSignFill-e0a05c2b.js";import"../../Pencil-0b63b983.js";import"../../Calendar-03556b56.js";import"../../Watch-a947e459.js";import"../../Badge-d7e6ebd7.js";import"../Badge/styles.module.scss";var a=e.forwardRef((function(a,l){var m=a.testId,p=a.children,d=a.variant,n=void 0===d?r.fill:d;return e.createElement("div",{ref:l,"data-testid":m,className:s["panel-list"],"data-analyticsid":t.PanelList},e.Children.map(p,(function(t,a){return p=t,e.isValidElement(p)&&p.type===o?(l=t,m=0===a,e.cloneElement(l,{variant:n,noTopBorder:n===r.line&&!m,className:i(l.props.className,n!==r.line&&s["panel-list__panel"])})):t;var l,m,p})))}));export{a as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{P as default}from"../../index-
|
|
1
|
+
export{P as default}from"../../index-7f01d36f.js";import"react";import"react-dom";import"../../constants-d84659f5.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{R as RadioButton,R as default}from"../../RadioButton-
|
|
1
|
+
export{R as RadioButton,R as default}from"../../RadioButton-dba5974f.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"../../uuid-11037462.js";import"./styles.module.scss";import"../../constants-d84659f5.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-d1c0552c.js";import{T as i}from"../../Title-
|
|
1
|
+
import{_ as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-d1c0552c.js";import{T as i}from"../../Title-b5e19cfc.js";import c from"./styles.module.scss";import{A as u}from"../../constants-d84659f5.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),N=e(L,2),x=N[0],A=N[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=100,Y=function(e){re(e)},Z=function(e){ne(e)},$=function(e){re(e)},ee=function(e){ne(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}(x,e,t,0,W)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(Y,Z),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}($,ee))}),[R]),a((function(){!E&&w&&w(x)}),[x]);var te=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,ae),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},ne=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(Y,Z),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}($,ee),s(e))},re=function(e){if(!E&&R){var t=l(e);ae(t-J),s(e)}},ae=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,W))}};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:te,onTouchStart:te,"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||ae(b*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||ae(-b*t)}},role:"slider","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":W,"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{v as Slider,v as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as
|
|
1
|
+
import{d as s}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as r}from"../../index-d1c0552c.js";import e from"./styles.module.scss";import{A as c}from"../../constants-d84659f5.js";var l=a.forwardRef((function(l,p){var t,x=l.size,o=void 0===x?"s":x,m=l.className,d=l.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":d,"data-analyticsid":c.Spacer})}));export{l as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import
|
|
1
|
+
import{d as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as e}from"../../index-d1c0552c.js";import s from"./styles.module.scss";import{I as r,A as o}from"../../constants-d84659f5.js";import{I as c}from"../../Icon-877aeed0.js";import{U as n}from"../../Undo-7021257e.js";import{g as i}from"../../color-e7d082c1.js";import{G as l}from"../../Group-4d979be0.js";import{N as m}from"../../NoAccess-c1a3f055.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../useBreakpoint-a74f5af5.js";import"../../_tslib-b219470a.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../index-d1c9177a.js";var d;!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",t.noaccess="noaccess"}(d||(d={}));var p=a.forwardRef((function(p,u){var f=p.variant,g=void 0===f?d.info:f,j=p.text,_=p.className,v=g===d.recurring||g===d.group||g===d.noaccess,b=g===d.cancelled,E=e(s.statusdot,t({},s["statusdot--cancelled"],b),_),I=e(s.statusdot__dot,[v?s["statusdot__dot--icon"]:s["statusdot__dot--".concat(g)]]),N=e(s.statusdot__label,t({},s["statusdot__label--icon"],v)),X=null;return g===d.recurring?X=a.createElement(c,{size:r.XXSmall,svgIcon:n}):g===d.group?X=a.createElement(c,{size:r.XXSmall,svgIcon:l}):g===d.noaccess&&(X=a.createElement(c,{size:r.XXSmall,svgIcon:m,color:i("cherry",600)})),a.createElement("div",{className:E,"data-analyticsid":o.StatusDot},a.createElement("span",{className:I},X),a.createElement("span",{className:N},j))}));export{d as StatusDotVariant,p as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Tag/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as o}from"../../_rollupPluginBabelHelpers-0f007973.js";import t from"react";import{c as a}from"../../index-d1c0552c.js";import{I as e}from"../../Icon-
|
|
1
|
+
import{d as o}from"../../_rollupPluginBabelHelpers-0f007973.js";import t from"react";import{c as a}from"../../index-d1c0552c.js";import{I as e}from"../../Icon-877aeed0.js";import{A as r,I as n}from"../../constants-d84659f5.js";import{p as c}from"../../palette-f206f488.js";import s from"./styles.module.scss";import{u as i}from"../../useHover-b995a0e6.js";import{U as m}from"../../Undo-7021257e.js";import{X as l}from"../../X-3e7c0719.js";import"../../_tslib-b219470a.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";var d,u,f;!function(o){o.medium="medium",o.large="large"}(d||(d={})),function(o){o.remove="remove",o.undo="undo"}(u||(u={})),function(o){o.normal="normal",o.oncolor="oncolor",o.emphasised="emphasised"}(f||(f={}));var p=function(o){var d=o.children,u=o.size,f=o.color,p=o.variant,v=o.action,g=o.onClick,b=o.testId,j=i(),I=j.hoverRef,h=j.isHovered,y=a(s.tag,s["tag--".concat(u)],s["tag--".concat(v)],s["tag--has-action"],"remove"===v&&[s["tag--".concat(f)],s["tag--".concat(p)]]);return t.createElement("button",{className:y,onClick:g,ref:I,type:"button","data-testid":b,"data-analyticsid":r.Tag},d,t.createElement(e,{svgIcon:function(){switch(v){case"remove":return l;case"undo":return m}}(),size:n.XXSmall,color:c["".concat("undo"===v?"blueberry":f,"800")],isHovered:h}))},v=function(i){var m=i.children,l=i.size,u=void 0===l?d.medium:l,f=i.color,v=void 0===f?"blueberry":f,g=i.svgIcon,b=i.variant,j=void 0===b?"normal":b,I=i.action,h=i.onClick,y=i.testId,z=a(s.tag,s["tag--".concat(u)],s["tag--".concat(v)],s["tag--".concat(j)],o({},s["tag--has-icon"],g));return I&&h?t.createElement(p,{size:u,color:v,variant:j,action:I,onClick:h,testId:y},m):t.createElement("span",{className:z,"data-testid":y,"data-analyticsid":r.Tag},g&&t.createElement(e,{svgIcon:g,size:n.XXSmall,color:c["".concat(v,"800")],className:s.tag__icon}),m)};export{u as TagAction,d as TagSize,f as TagVariant,v as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import a from"./styles.module.scss";import{A as s}from"../../constants-
|
|
1
|
+
import t from"react";import a from"./styles.module.scss";import{A as s}from"../../constants-d84659f5.js";var e=function(e){var r=e.children,i=e.testId;return t.createElement("div",{className:a["tag-list"],"data-testid":i,"data-analyticsid":s.TagList},r)};export{e as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{T as default}from"../../Textarea-
|
|
1
|
+
export{T as default}from"../../Textarea-529da670.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../constants-d84659f5.js";import"../../uuid-11037462.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Tile/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e,_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as i}from"../../_tslib-b219470a.js";import r,{useState as l}from"react";import{c as
|
|
1
|
+
import{d as e,_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as i}from"../../_tslib-b219470a.js";import r,{useState as l}from"react";import{c as a}from"../../index-d1c0552c.js";import{A as o,I as s}from"../../constants-d84659f5.js";import"../../Icon-877aeed0.js";import n from"./styles.module.scss";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";var c=r.forwardRef((function(t,i){var l,o=t.children,s=t.className,c=t.htmlMarkup,d=void 0===c?"span":c,m=t.highlighted,p=t.compact,u=a(n.tile__title,(e(l={},n["tile__title--highlighted"],m),e(l,n["tile__title--compact"],p),l),s),f=d;return r.createElement(f,{className:u,ref:i},o)})),d=r.forwardRef((function(c,d){var m,p=c.icon,u=c.title,f=c.className,h=void 0===f?"":f,g=c.description,_=c.fixed,v=void 0!==_&&_,j=c.highlighted,b=void 0!==j&&j,E=c.testId,N=i(c,["icon","title","className","description","fixed","highlighted","testId"]),w=l(!1),x=t(w,2),I=x[0],M=x[1],k=!g,y=a(n.tile,(e(m={},n["tile--fixed"],v),e(m,n["tile--compact"],k),e(m,n["tile--highlighted"],b),m),h),B=a(n["title-wrapper"],e({},n["title-wrapper--compact"],k));return r.createElement("a",Object.assign({ref:d,className:y,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},onFocus:function(){return M(!0)},onBlur:function(){return M(!1)},"data-testid":E,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},N),r.createElement("div",{className:B},r.cloneElement(p,{size:s.Medium,isHovered:I,color:b?"white":"black"}),r.cloneElement(u,{highlighted:b,compact:k})),g?r.createElement("p",{className:n.tile__description},g):null)}));d.Title=c;export{d as Tile,d as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -16,11 +16,11 @@ interface TitleProps {
|
|
|
16
16
|
/** Sets the data-testid attribute. */
|
|
17
17
|
testId?: string;
|
|
18
18
|
}
|
|
19
|
+
export declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
19
20
|
export interface TitleMargin {
|
|
20
21
|
marginTop: number;
|
|
21
22
|
marginBottom: number;
|
|
22
23
|
}
|
|
23
24
|
export declare const instanceOfTitleMargin: (margin: any) => margin is TitleMargin;
|
|
24
|
-
declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
25
25
|
export default Title;
|
|
26
26
|
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,WAAY,GAAG,0BAEhD,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,KAAK,uFAyBhB,CAAC;AAEH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,WAAY,GAAG,0BAEhD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,3 +1,166 @@
|
|
|
1
1
|
{
|
|
2
|
-
"props": {
|
|
2
|
+
"props": {
|
|
3
|
+
"id": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "Gives a unique id to the title",
|
|
6
|
+
"name": "id",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
9
|
+
"name": "TitleProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
14
|
+
"name": "TitleProps"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"required": false,
|
|
18
|
+
"type": {
|
|
19
|
+
"name": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"className": {
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"description": "Adds custom classes to the element.",
|
|
25
|
+
"name": "className",
|
|
26
|
+
"parent": {
|
|
27
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
28
|
+
"name": "TitleProps"
|
|
29
|
+
},
|
|
30
|
+
"declarations": [
|
|
31
|
+
{
|
|
32
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
33
|
+
"name": "TitleProps"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"required": false,
|
|
37
|
+
"type": {
|
|
38
|
+
"name": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"margin": {
|
|
42
|
+
"defaultValue": null,
|
|
43
|
+
"description": "Adds top and bottom margin in rem.",
|
|
44
|
+
"name": "margin",
|
|
45
|
+
"parent": {
|
|
46
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
47
|
+
"name": "TitleProps"
|
|
48
|
+
},
|
|
49
|
+
"declarations": [
|
|
50
|
+
{
|
|
51
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
52
|
+
"name": "TitleProps"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"required": false,
|
|
56
|
+
"type": {
|
|
57
|
+
"name": "number | TitleMargin"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"htmlMarkup": {
|
|
61
|
+
"defaultValue": null,
|
|
62
|
+
"description": "Changes the underlying element of the title.",
|
|
63
|
+
"name": "htmlMarkup",
|
|
64
|
+
"parent": {
|
|
65
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
66
|
+
"name": "TitleProps"
|
|
67
|
+
},
|
|
68
|
+
"declarations": [
|
|
69
|
+
{
|
|
70
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
71
|
+
"name": "TitleProps"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"required": false,
|
|
75
|
+
"type": {
|
|
76
|
+
"name": "enum",
|
|
77
|
+
"raw": "TitleTags | undefined",
|
|
78
|
+
"value": [
|
|
79
|
+
{
|
|
80
|
+
"value": "undefined"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"value": "\"h1\""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"value": "\"h2\""
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"value": "\"h3\""
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"value": "\"h4\""
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"value": "\"h5\""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "\"span\""
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"appearance": {
|
|
104
|
+
"defaultValue": null,
|
|
105
|
+
"description": "Changes the appearance of the title.",
|
|
106
|
+
"name": "appearance",
|
|
107
|
+
"parent": {
|
|
108
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
109
|
+
"name": "TitleProps"
|
|
110
|
+
},
|
|
111
|
+
"declarations": [
|
|
112
|
+
{
|
|
113
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
114
|
+
"name": "TitleProps"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"required": false,
|
|
118
|
+
"type": {
|
|
119
|
+
"name": "enum",
|
|
120
|
+
"raw": "TitleAppearances | undefined",
|
|
121
|
+
"value": [
|
|
122
|
+
{
|
|
123
|
+
"value": "undefined"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"value": "\"titleFeature\""
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"value": "\"title1\""
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"value": "\"title2\""
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"value": "\"title3\""
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "\"title4\""
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"value": "\"title5\""
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"testId": {
|
|
147
|
+
"defaultValue": null,
|
|
148
|
+
"description": "Sets the data-testid attribute.",
|
|
149
|
+
"name": "testId",
|
|
150
|
+
"parent": {
|
|
151
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
152
|
+
"name": "TitleProps"
|
|
153
|
+
},
|
|
154
|
+
"declarations": [
|
|
155
|
+
{
|
|
156
|
+
"fileName": "src/components/Title/Title.tsx",
|
|
157
|
+
"name": "TitleProps"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"required": false,
|
|
161
|
+
"type": {
|
|
162
|
+
"name": "string"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
3
166
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{T as default,i as instanceOfTitleMargin}from"../../Title-
|
|
1
|
+
export{T as Title,T as default,i as instanceOfTitleMargin}from"../../Title-b5e19cfc.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../constants-d84659f5.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactChild, ReactChildren, ReactNode } from 'react';
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
/**Ordet som skal ha en tilhørende hjelpeblubb */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**Teksten som skal vises i hjelpeblubben */
|
|
6
|
+
description: ReactNode;
|
|
7
|
+
/**Valgfri test-id */
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
11
|
+
interface ContextProps {
|
|
12
|
+
children: ReactChild | ReactChildren;
|
|
13
|
+
}
|
|
14
|
+
export declare const useTooltipOpen: () => boolean;
|
|
15
|
+
export declare const useTooltipOpenToggle: () => () => void;
|
|
16
|
+
export declare const TooltipOpenProvider: ({ children }: ContextProps) => JSX.Element;
|
|
17
|
+
export default Tooltip;
|
|
18
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA2C,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ7G,MAAM,WAAW,YAAY;IAC3B,iDAAiD;IACjD,QAAQ,EAAE,SAAS,CAAC;IACpB,4CAA4C;IAC5C,WAAW,EAAE,SAAS,CAAC;IACvB,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAuF1C,CAAC;AAKF,UAAU,YAAY;IACpB,QAAQ,EAAE,UAAU,GAAG,aAAa,CAAC;CACtC;AACD,eAAO,MAAM,cAAc,eAE1B,CAAC;AACF,eAAO,MAAM,oBAAoB,kBAEhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,iBAAkB,YAAY,gBAY7D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"props": {
|
|
3
|
+
"children": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "Ordet som skal ha en tilhørende hjelpeblubb",
|
|
6
|
+
"name": "children",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "src/components/Tooltip/Tooltip.tsx",
|
|
9
|
+
"name": "TooltipProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "src/components/Tooltip/Tooltip.tsx",
|
|
14
|
+
"name": "TooltipProps"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"fileName": "designsystem/node_modules/@types/react/index.d.ts",
|
|
18
|
+
"name": "TypeLiteral"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"required": false,
|
|
22
|
+
"type": {
|
|
23
|
+
"name": "ReactNode"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"description": {
|
|
27
|
+
"defaultValue": null,
|
|
28
|
+
"description": "Teksten som skal vises i hjelpeblubben",
|
|
29
|
+
"name": "description",
|
|
30
|
+
"parent": {
|
|
31
|
+
"fileName": "src/components/Tooltip/Tooltip.tsx",
|
|
32
|
+
"name": "TooltipProps"
|
|
33
|
+
},
|
|
34
|
+
"declarations": [
|
|
35
|
+
{
|
|
36
|
+
"fileName": "src/components/Tooltip/Tooltip.tsx",
|
|
37
|
+
"name": "TooltipProps"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"required": true,
|
|
41
|
+
"type": {
|
|
42
|
+
"name": "ReactNode"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"testId": {
|
|
46
|
+
"defaultValue": null,
|
|
47
|
+
"description": "Valgfri test-id",
|
|
48
|
+
"name": "testId",
|
|
49
|
+
"parent": {
|
|
50
|
+
"fileName": "src/components/Tooltip/Tooltip.tsx",
|
|
51
|
+
"name": "TooltipProps"
|
|
52
|
+
},
|
|
53
|
+
"declarations": [
|
|
54
|
+
{
|
|
55
|
+
"fileName": "src/components/Tooltip/Tooltip.tsx",
|
|
56
|
+
"name": "TooltipProps"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": {
|
|
61
|
+
"name": "string"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{T as Tooltip,b as TooltipOpenProvider,T as default,u as useTooltipOpen,a as useTooltipOpenToggle}from"../../Tooltip-f6c63399.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../constants-d84659f5.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../HelpBubble-6c6578d2.js";import"../../index-d1c0552c.js";import"../../AnchorLink-140a72b0.js";import"../../Icon-877aeed0.js";import"../../_tslib-b219470a.js";import"../../ArrowUpRight-e9f5b42e.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../useHover-b995a0e6.js";import"../AnchorLink/styles.module.scss";import"../../Close-ddb54826.js";import"../../X-3e7c0719.js";import"../Close/styles.module.scss";import"../../useBreakpoint-a74f5af5.js";import"../HelpBubble/styles.module.scss";import"./styles.module.scss";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import '../../scss/_palette.scss';
|
|
2
|
+
@import '../../scss/_spacers.scss';
|
|
3
|
+
|
|
4
|
+
.word {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
-webkit-text-decoration: underline dashed $plum400;
|
|
8
|
+
text-decoration: underline 0.15rem dashed $plum400;
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
cursor: help;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:focus-visible {
|
|
15
|
+
box-shadow: 0 0 0 getSpacer(4xs) $black;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooltipExample.d.ts","sourceRoot":"","sources":["../../../src/components/TooltipExample/TooltipExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAgB,EAAE,YAAY,EAAuB,MAAM,YAAY,CAAC;AAGxE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAc1C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|