@helsenorge/designsystem-react 1.0.0-beta136 → 1.0.0-beta139
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-649f7a75.js → AlertSignFill-e0a05c2b.js} +2 -2
- package/AlertSignFill-e0a05c2b.js.map +1 -0
- package/{AlertSignStroke-38862a30.js → AlertSignStroke-d16ccb9e.js} +2 -2
- package/AlertSignStroke-d16ccb9e.js.map +1 -0
- package/{AnchorLink-1e690d55.js → AnchorLink-140a72b0.js} +2 -2
- package/AnchorLink-140a72b0.js.map +1 -0
- package/{ArrowRight-d02dab87.js → ArrowRight-2e4b6122.js} +2 -2
- package/ArrowRight-2e4b6122.js.map +1 -0
- package/{ArrowUpRight-6d59a425.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-66888459.js → Button-1ae9497c.js} +2 -2
- package/{constants-1371e04f.js.map → Button-1ae9497c.js.map} +1 -1
- package/{Calendar-485713e6.js → Calendar-03556b56.js} +2 -2
- package/Calendar-03556b56.js.map +1 -0
- package/{Check-244aa62e.js → Check-632c2b4f.js} +2 -2
- package/Check-632c2b4f.js.map +1 -0
- package/{Checkbox-745fc390.js → Checkbox-7d0879d2.js} +2 -2
- package/Checkbox-7d0879d2.js.map +1 -0
- package/{ChevronDown-6dc58d3e.js → ChevronDown-652aa9e9.js} +2 -2
- package/ChevronDown-652aa9e9.js.map +1 -0
- package/{ChevronRight-d1822801.js → ChevronRight-a4c19be9.js} +2 -2
- package/ChevronRight-a4c19be9.js.map +1 -0
- package/{ChevronUp-ed970ae7.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-8968fdf3.js → FormGroup-60527189.js} +2 -2
- package/FormGroup-60527189.js.map +1 -0
- package/{FormLayout-6563dba9.js → FormLayout-4207a2c9.js} +2 -2
- package/FormLayout-4207a2c9.js.map +1 -0
- package/{Group-172e0eb1.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-73b84ca6.js → Hospital-444c2277.js} +2 -2
- package/Hospital-444c2277.js.map +1 -0
- package/Icon-877aeed0.js +2 -0
- package/Icon-877aeed0.js.map +1 -0
- package/{InfoSignStroke-9c339ee1.js → InfoSignStroke-415508d1.js} +2 -2
- package/InfoSignStroke-415508d1.js.map +1 -0
- package/Input-eae60679.js +2 -0
- package/Input-eae60679.js.map +1 -0
- package/{Loader-7a90b2b8.js → Loader-c8d984bc.js} +2 -2
- package/Loader-c8d984bc.js.map +1 -0
- package/{Modal-627adbb0.js → Modal-aaedf680.js} +2 -2
- package/Modal-aaedf680.js.map +1 -0
- package/{NoAccess-de06f40b.js → NoAccess-c1a3f055.js} +2 -2
- package/NoAccess-c1a3f055.js.map +1 -0
- package/Panel-de0c5303.js +2 -0
- package/Panel-de0c5303.js.map +1 -0
- package/{Pencil-ca56434d.js → Pencil-0b63b983.js} +2 -2
- package/Pencil-0b63b983.js.map +1 -0
- package/{PlusSmall-199d6bc2.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-8ab0bec5.js +2 -0
- package/Textarea-8ab0bec5.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-874f34a9.js → Undo-7021257e.js} +2 -2
- package/Undo-7021257e.js.map +1 -0
- package/Validation-333c049f.js +2 -0
- package/Validation-333c049f.js.map +1 -0
- package/{Watch-e2c42c1b.js → Watch-a947e459.js} +2 -2
- package/Watch-a947e459.js.map +1 -0
- package/{X-35ea9677.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/FormExample/index.js.map +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.d.ts +0 -1
- package/components/Icons/Icon.d.ts.map +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/componentdata.json +0 -19
- package/components/Icons/index.js +1 -1
- package/components/Input/Input.d.ts +3 -0
- package/components/Input/Input.d.ts.map +1 -1
- package/components/Input/componentdata.json +19 -0
- package/components/Input/index.js +1 -1
- package/components/Input/styles.module.scss +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/NotificationPanel/styles.module.scss +1 -0
- package/components/Panel/Panel.d.ts +3 -0
- package/components/Panel/Panel.d.ts.map +1 -1
- package/components/Panel/componentdata.json +43 -0
- 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/Slider/styles.module.scss +4 -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/Textarea.d.ts +2 -0
- package/components/Textarea/Textarea.d.ts.map +1 -1
- package/components/Textarea/componentdata.json +19 -0
- package/components/Textarea/index.js +1 -1
- package/components/Tile/index.js +1 -1
- package/components/Tile/styles.module.scss +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-649f7a75.js.map +0 -1
- package/AlertSignStroke-38862a30.js.map +0 -1
- package/AnchorLink-1e690d55.js.map +0 -1
- package/ArrowRight-d02dab87.js.map +0 -1
- package/ArrowUpRight-6d59a425.js.map +0 -1
- package/Badge-b651a9fc.js.map +0 -1
- package/Button-66888459.js.map +0 -1
- package/Calendar-485713e6.js.map +0 -1
- package/Check-244aa62e.js.map +0 -1
- package/Checkbox-745fc390.js.map +0 -1
- package/ChevronDown-6dc58d3e.js.map +0 -1
- package/ChevronRight-d1822801.js.map +0 -1
- package/ChevronUp-ed970ae7.js.map +0 -1
- package/Close-fc92b2c4.js +0 -2
- package/Close-fc92b2c4.js.map +0 -1
- package/FormGroup-8968fdf3.js.map +0 -1
- package/FormLayout-6563dba9.js.map +0 -1
- package/Group-172e0eb1.js.map +0 -1
- package/HelpBubble-8ff1a72a.js +0 -2
- package/HelpBubble-8ff1a72a.js.map +0 -1
- package/Hospital-73b84ca6.js.map +0 -1
- package/Icon-cc73a763.js +0 -2
- package/Icon-cc73a763.js.map +0 -1
- package/InfoSignStroke-9c339ee1.js.map +0 -1
- package/Input-71c95249.js +0 -2
- package/Input-71c95249.js.map +0 -1
- package/Loader-7a90b2b8.js.map +0 -1
- package/Modal-627adbb0.js.map +0 -1
- package/NoAccess-de06f40b.js.map +0 -1
- package/Panel-ba6d15a6.js +0 -2
- package/Panel-ba6d15a6.js.map +0 -1
- package/Pencil-ca56434d.js.map +0 -1
- package/PlusSmall-199d6bc2.js.map +0 -1
- package/RadioButton-3e95b8fa.js.map +0 -1
- package/Textarea-74180432.js +0 -2
- package/Textarea-74180432.js.map +0 -1
- package/Title-761aecc5.js +0 -2
- package/Title-761aecc5.js.map +0 -1
- package/Undo-874f34a9.js.map +0 -1
- package/Validation-07007a5a.js +0 -2
- package/Validation-07007a5a.js.map +0 -1
- package/Watch-e2c42c1b.js.map +0 -1
- package/X-35ea9677.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
|
@@ -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
|
|
@@ -7,6 +7,8 @@ interface TextareaProps extends HTMLTextareaProps {
|
|
|
7
7
|
maxCharacters?: number;
|
|
8
8
|
/** The text is displayed in the end of the text-counter */
|
|
9
9
|
maxText?: string;
|
|
10
|
+
/** Width of textarea in characters (approximate) */
|
|
11
|
+
width?: number;
|
|
10
12
|
/** Sets the data-testid attribute. */
|
|
11
13
|
testId?: string;
|
|
12
14
|
/** If true, the component will have a bottom margin. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAe,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAe,MAAM,iBAAiB,CAAC;AAI3E,UAAU,aAAc,SAAQ,iBAAiB;IAC/C,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,kCAAkC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAUD,QAAA,MAAM,QAAQ,2FA4HZ,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -57,6 +57,25 @@
|
|
|
57
57
|
"name": "string"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
+
"width": {
|
|
61
|
+
"defaultValue": null,
|
|
62
|
+
"description": "Width of textarea in characters (approximate)",
|
|
63
|
+
"name": "width",
|
|
64
|
+
"parent": {
|
|
65
|
+
"fileName": "src/components/Textarea/Textarea.tsx",
|
|
66
|
+
"name": "TextareaProps"
|
|
67
|
+
},
|
|
68
|
+
"declarations": [
|
|
69
|
+
{
|
|
70
|
+
"fileName": "src/components/Textarea/Textarea.tsx",
|
|
71
|
+
"name": "TextareaProps"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"required": false,
|
|
75
|
+
"type": {
|
|
76
|
+
"name": "number"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
60
79
|
"testId": {
|
|
61
80
|
"defaultValue": null,
|
|
62
81
|
"description": "Sets the data-testid attribute.",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{T as default}from"../../Textarea-
|
|
1
|
+
export{T as default}from"../../Textarea-8ab0bec5.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";import"../../Input-eae60679.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"../Input/styles.module.scss";
|
|
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 a}from"../../index-d1c0552c.js";import{A as o,I 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,G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,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"}
|
|
@@ -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": "designsystem/src/components/Tooltip/Tooltip.tsx",
|
|
9
|
+
"name": "TooltipProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "designsystem/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": "designsystem/src/components/Tooltip/Tooltip.tsx",
|
|
32
|
+
"name": "TooltipProps"
|
|
33
|
+
},
|
|
34
|
+
"declarations": [
|
|
35
|
+
{
|
|
36
|
+
"fileName": "designsystem/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": "designsystem/src/components/Tooltip/Tooltip.tsx",
|
|
51
|
+
"name": "TooltipProps"
|
|
52
|
+
},
|
|
53
|
+
"declarations": [
|
|
54
|
+
{
|
|
55
|
+
"fileName": "designsystem/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/TooltipExample/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";import{b as i,T as t}from"../../Tooltip-f6c63399.js";import"../../_rollupPluginBabelHelpers-0f007973.js";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"../Tooltip/styles.module.scss";var s="Dolore quis tempor culpa exercitation laboris. Enim enim pariatur veniam nisi ad quis fugiat magna occaecat nisi. Excepteur ad ad duis quis mollit ex. Laboris duis velit eu eiusmod ea in ex aliqua. Est proident proident dolor veniam nostrud aliquip occaecat dolore sunt laboris nisi ipsum Lorem nisi. Magna sunt ex occaecat amet id. Eiusmod magna Lorem proident est occaecat pariatur sunt esse nostrud. Mollit reprehenderit velit veniam amet ipsum veniam et. Dolor sunt adipisicing enim dolore quis qui occaecat esse quis ut fugiat laboris. ",o=function(o){return e.createElement(i,null,e.createElement(e.Fragment,null,e.createElement(t,Object.assign({},o),"Et tooltip her.")," "+s,"Dette er ",e.createElement(t,Object.assign({},o),o.children)," som skal ha nærmere forklaring.",s,e.createElement(t,Object.assign({},o),"Enda et tooltip her.")))};export{o as default};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{V as Validation,V as default}from"../../Validation-
|
|
1
|
+
export{V as Validation,V as default}from"../../Validation-333c049f.js";import"react";import"../../index-d1c0552c.js";import"../../FormGroup-60527189.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-7d0879d2.js";import"../../uuid-11037462.js";import"../../Check-632c2b4f.js";import"../../Icon-877aeed0.js";import"../../_tslib-b219470a.js";import"../../constants-d84659f5.js";import"../../useUuid-3b1e73f2.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-dba5974f.js";import"../RadioButton/styles.module.scss";import"../../Input-eae60679.js";import"../../useBreakpoint-a74f5af5.js";import"../Input/styles.module.scss";import"../../Title-b5e19cfc.js";import"../Title/styles.module.scss";import"../../FormLayout-4207a2c9.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,t;!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.HelpBubble="help-bubble",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.Tag="tag",o.TagList="tag-list",o.Textarea="textarea",o.Tile="tile",o.Title="title",o.Tooltip="tooltip",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"}(t||(t={}));export{r as A,n as F,o as I,t as K,a as Z,e as a};
|
|
2
|
+
//# sourceMappingURL=constants-d84659f5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-d84659f5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/constants.d.ts
CHANGED
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,E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2B;IAC/C,SAAS,eAAe;IACxB,UAAU,gBAAgB;IAC1B,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;IAC9B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,QAAQ,cAAc;IACtB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,iBAAiB,uBAAuB;IACxC,KAAK,UAAU;IACf,SAAS,eAAe;IACxB,MAAM,WAAW;IACjB,WAAW,iBAAiB;IAC5B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,SAAS,eAAe;IACxB,GAAG,QAAQ;IACX,OAAO,aAAa;IACpB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ"}
|
package/hooks/useSize.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useSize.ts"],"names":[],"mappings":";AAGA;;;;;GAKG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"useSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useSize.ts"],"names":[],"mappings":";AAGA;;;;;GAKG;AACH,eAAO,MAAM,OAAO,mFAkCnB,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"./constants-d84659f5.js";function n(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)}export{n as P};
|
|
2
|
+
//# sourceMappingURL=index-7f01d36f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-7f01d36f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
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-a74f5af5.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-bef05e5e.js";export{u as useHover}from"./useHover-b995a0e6.js";import{
|
|
1
|
+
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-a74f5af5.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-bef05e5e.js";export{u as useHover}from"./useHover-b995a0e6.js";import{d as e}from"./useSticky-432642c9.js";export{u as useLayoutEvent,a as useSticky}from"./useSticky-432642c9.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";import{_ as s,a as r}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as o,useEffect as n}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle}from"./useOutsideEvent-fb86686d.js";export{u as useUuid}from"./useUuid-3b1e73f2.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-d84659f5.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var i=function(t){var u=o(),a=s(u,2),i=a[0],f=a[1];return n((function(){if("undefined"!=typeof ResizeObserver){var o=new ResizeObserver((function(e){f(e[0].target.getBoundingClientRect())}));return(null==t?void 0:t.current)&&o.observe(null==t?void 0:t.current),o.disconnect}if("object"===("undefined"==typeof window?"undefined":r(window))){var n=["layoutchange","resize","orientationchange"],u=e((function(){(null==t?void 0:t.current)&&f(t.current.getBoundingClientRect())}),10),a=s(u,2),i=a[0],c=a[1];return n.forEach((function(e){return window.addEventListener(e,i)})),i(),function(){c(),n.forEach((function(e){return window.removeEventListener(e,i)}))}}}),[t]),i};export{i as useSize};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n,_ as i}from"./_rollupPluginBabelHelpers-0f007973.js";import{useEffect as t,useState as e}from"react";function o(n,i,t){var e;return[function(){var o=this,r=arguments,u=function(){e=null,t||n.apply(o,r)},a=t&&!e;e&&clearTimeout(e),e=setTimeout(u,i),a&&n.apply(o,r)},function(){e&&clearTimeout(e)}]}var r=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;t((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var t=o(e,u),a=i(t,2),d=a[0],c=a[1];return r.forEach((function(n){return window.addEventListener(n,d)})),d(),function(){c(),r.forEach((function(n){return window.removeEventListener(n,d)}))}}}),[])},u=function(n,t){var o=e(!1),u=i(o,2),a=u[0],d=u[1],c=e(!1),l=i(c,2),f=l[0],v=l[1],s=e(),g=i(s,2),h=g[0],p=g[1],w=e(),m=i(w,2),y=m[0],E=m[1];return r((function(){var i,e,o,r=(null===(i=n.current)||void 0===i?void 0:i.getBoundingClientRect())||{},u=r.top,a=void 0===u?0:u,c=r.width,l=void 0===c?0:c,f=r.bottom,s=void 0===f?0:f,g=null!==(o=null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect().height)&&void 0!==o?o:0;d(a<=0),v(s<=g),E(l),p(g)}),["resize","scroll"]),{isOutsideWindow:a,isLeavingWindow:f,offsetHeight:h,contentWidth:y}};export{u as a,r as u};
|
|
2
|
-
//# sourceMappingURL=useSticky-
|
|
1
|
+
import{a as n,_ as i}from"./_rollupPluginBabelHelpers-0f007973.js";import{useEffect as t,useState as e}from"react";function o(n,i,t){var e;return[function(){var o=this,r=arguments,u=function(){e=null,t||n.apply(o,r)},a=t&&!e;e&&clearTimeout(e),e=setTimeout(u,i),a&&n.apply(o,r)},function(){e&&clearTimeout(e)}]}var r=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["layoutchange","resize","orientationchange"],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;t((function(){if("object"===("undefined"==typeof window?"undefined":n(window))){var t=o(e,u),a=i(t,2),d=a[0],c=a[1];return r.forEach((function(n){return window.addEventListener(n,d)})),d(),function(){c(),r.forEach((function(n){return window.removeEventListener(n,d)}))}}}),[])},u=function(n,t){var o=e(!1),u=i(o,2),a=u[0],d=u[1],c=e(!1),l=i(c,2),f=l[0],v=l[1],s=e(),g=i(s,2),h=g[0],p=g[1],w=e(),m=i(w,2),y=m[0],E=m[1];return r((function(){var i,e,o,r=(null===(i=n.current)||void 0===i?void 0:i.getBoundingClientRect())||{},u=r.top,a=void 0===u?0:u,c=r.width,l=void 0===c?0:c,f=r.bottom,s=void 0===f?0:f,g=null!==(o=null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect().height)&&void 0!==o?o:0;d(a<=0),v(s<=g),E(l),p(g)}),["resize","scroll"]),{isOutsideWindow:a,isLeavingWindow:f,offsetHeight:h,contentWidth:y}};export{u as a,o as d,r as u};
|
|
2
|
+
//# sourceMappingURL=useSticky-432642c9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSticky-432642c9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const loremText = "Dolore quis tempor culpa exercitation laboris. Enim enim pariatur veniam nisi ad quis fugiat magna occaecat nisi. Excepteur ad ad duis quis mollit ex. Laboris duis velit eu eiusmod ea in ex aliqua. Est proident proident dolor veniam nostrud aliquip occaecat dolore sunt laboris nisi ipsum Lorem nisi. Magna sunt ex occaecat amet id. Eiusmod magna Lorem proident est occaecat pariatur sunt esse nostrud. Mollit reprehenderit velit veniam amet ipsum veniam et. Dolor sunt adipisicing enim dolore quis qui occaecat esse quis ut fugiat laboris. ";
|
|
2
|
+
export default loremText;
|
|
3
|
+
//# sourceMappingURL=loremtext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loremtext.d.ts","sourceRoot":"","sources":["../../src/utils/loremtext.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,kiBAC2gB,CAAC;AAEliB,eAAe,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertSignFill-649f7a75.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertSignStroke-38862a30.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|