@helsenorge/designsystem-react 1.0.0-beta132 → 1.0.0-beta135
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-d3dec2b7.js → AlertSignFill-649f7a75.js} +2 -2
- package/AlertSignFill-649f7a75.js.map +1 -0
- package/{AlertSignStroke-1ed8ac91.js → AlertSignStroke-38862a30.js} +2 -2
- package/AlertSignStroke-38862a30.js.map +1 -0
- package/AnchorLink-1e690d55.js +2 -0
- package/AnchorLink-1e690d55.js.map +1 -0
- package/{ArrowRight-36582929.js → ArrowRight-d02dab87.js} +2 -2
- package/ArrowRight-d02dab87.js.map +1 -0
- package/{ArrowUpRight-b1c285b5.js → ArrowUpRight-6d59a425.js} +2 -2
- package/ArrowUpRight-6d59a425.js.map +1 -0
- package/{Badge-331d223c.js → Badge-b651a9fc.js} +2 -2
- package/Badge-b651a9fc.js.map +1 -0
- package/{Button-1352276a.js → Button-66888459.js} +2 -2
- package/Button-66888459.js.map +1 -0
- package/{Calendar-1e4e051c.js → Calendar-485713e6.js} +2 -2
- package/Calendar-485713e6.js.map +1 -0
- package/{Check-cc284473.js → Check-244aa62e.js} +2 -2
- package/Check-244aa62e.js.map +1 -0
- package/{Checkbox-da15e778.js → Checkbox-745fc390.js} +2 -2
- package/Checkbox-745fc390.js.map +1 -0
- package/{ChevronDown-43493477.js → ChevronDown-6dc58d3e.js} +2 -2
- package/ChevronDown-6dc58d3e.js.map +1 -0
- package/{ChevronRight-92a5c973.js → ChevronRight-d1822801.js} +2 -2
- package/ChevronRight-d1822801.js.map +1 -0
- package/{ChevronUp-9eb92084.js → ChevronUp-ed970ae7.js} +2 -2
- package/ChevronUp-ed970ae7.js.map +1 -0
- package/Close-fc92b2c4.js +2 -0
- package/Close-fc92b2c4.js.map +1 -0
- package/FormGroup-8968fdf3.js +2 -0
- package/FormGroup-8968fdf3.js.map +1 -0
- package/{FormLayout-eea065d7.js → FormLayout-6563dba9.js} +2 -2
- package/FormLayout-6563dba9.js.map +1 -0
- package/{Group-eab5fd2c.js → Group-172e0eb1.js} +2 -2
- package/Group-172e0eb1.js.map +1 -0
- package/HelpBubble-8ff1a72a.js +2 -0
- package/HelpBubble-8ff1a72a.js.map +1 -0
- package/{Hospital-d19ce10d.js → Hospital-73b84ca6.js} +2 -2
- package/Hospital-73b84ca6.js.map +1 -0
- package/{Icon-a7d7e9bc.js → Icon-cc73a763.js} +2 -2
- package/Icon-cc73a763.js.map +1 -0
- package/{InfoSignStroke-f9673970.js → InfoSignStroke-9c339ee1.js} +2 -2
- package/InfoSignStroke-9c339ee1.js.map +1 -0
- package/{Input-a4c88ad6.js → Input-71c95249.js} +2 -2
- package/Input-71c95249.js.map +1 -0
- package/{Loader-bef282a3.js → Loader-7a90b2b8.js} +2 -2
- package/Loader-7a90b2b8.js.map +1 -0
- package/{Modal-eb332fa2.js → Modal-627adbb0.js} +2 -2
- package/Modal-627adbb0.js.map +1 -0
- package/{NoAccess-e1cfd26c.js → NoAccess-de06f40b.js} +2 -2
- package/NoAccess-de06f40b.js.map +1 -0
- package/{Panel-05b1d255.js → Panel-ba6d15a6.js} +2 -2
- package/Panel-ba6d15a6.js.map +1 -0
- package/{Pencil-3d446c44.js → Pencil-ca56434d.js} +2 -2
- package/Pencil-ca56434d.js.map +1 -0
- package/{PlusSmall-d3a22064.js → PlusSmall-199d6bc2.js} +2 -2
- package/PlusSmall-199d6bc2.js.map +1 -0
- package/{RadioButton-f9d660f9.js → RadioButton-3e95b8fa.js} +2 -2
- package/RadioButton-3e95b8fa.js.map +1 -0
- package/{Textarea-d37d10a4.js → Textarea-74180432.js} +2 -2
- package/Textarea-74180432.js.map +1 -0
- package/{Title-2c8d1f64.js → Title-761aecc5.js} +2 -2
- package/Title-761aecc5.js.map +1 -0
- package/{Undo-44981995.js → Undo-874f34a9.js} +2 -2
- package/{Close-b9893f24.js.map → Undo-874f34a9.js.map} +1 -1
- package/Validation-07007a5a.js +2 -0
- package/Validation-07007a5a.js.map +1 -0
- package/{Watch-4d83e54d.js → Watch-e2c42c1b.js} +2 -2
- package/Watch-e2c42c1b.js.map +1 -0
- package/{X-9ca7b3e9.js → X-35ea9677.js} +2 -2
- package/X-35ea9677.js.map +1 -0
- package/components/AnchorLink/index.js +1 -1
- package/components/AnchorLink/styles.module.scss +1 -0
- package/components/Avatar/index.js +1 -1
- package/components/Badge/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Button/styles.module.scss +4 -5
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Close/Close.d.ts +2 -0
- package/components/Close/Close.d.ts.map +1 -1
- package/components/Close/componentdata.json +19 -0
- package/components/Close/index.js +1 -1
- package/components/Close/styles.module.scss +8 -4
- package/components/Close/styles.module.scss.d.ts +1 -0
- package/components/Dropdown/index.js +1 -1
- package/components/Expander/index.js +1 -1
- package/components/Expander/styles.module.scss +2 -0
- package/components/ExpanderList/ExpanderList.d.ts +1 -0
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/componentdata.json +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormGroup/FormGroup.d.ts +4 -1
- package/components/FormGroup/FormGroup.d.ts.map +1 -1
- package/components/FormGroup/componentdata.json +31 -0
- package/components/FormGroup/index.js +1 -1
- package/components/FormGroup/styles.module.scss +5 -4
- package/components/FormLayout/index.js +1 -1
- package/components/HelpBubble/HelpBubble.d.ts +33 -0
- package/components/HelpBubble/HelpBubble.d.ts.map +1 -0
- package/components/HelpBubble/componentdata.json +232 -0
- package/components/HelpBubble/index.d.ts +4 -0
- package/components/HelpBubble/index.d.ts.map +1 -0
- package/components/HelpBubble/index.js +2 -0
- package/components/HelpBubble/index.js.map +1 -0
- package/components/HelpBubble/styles.module.scss +81 -0
- package/components/HelpBubble/styles.module.scss.d.ts +20 -0
- package/components/HelpBubbleExample/HelpBubbleExample.d.ts +5 -0
- package/components/HelpBubbleExample/HelpBubbleExample.d.ts.map +1 -0
- package/components/HelpBubbleExample/componentdata.json +232 -0
- package/components/HelpBubbleExample/index.d.ts +4 -0
- package/components/HelpBubbleExample/index.d.ts.map +1 -0
- package/components/HelpBubbleExample/index.js +2 -0
- package/components/HelpBubbleExample/index.js.map +1 -0
- package/components/HighlightBox/index.js +1 -1
- package/components/HighlightBox/styles.module.scss +1 -0
- 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/Modal/styles.module.scss +4 -5
- 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/index.js +1 -1
- package/components/Validation/index.js +1 -1
- package/{constants-088e1d4a.js → constants-1371e04f.js} +2 -2
- package/constants-1371e04f.js.map +1 -0
- package/constants.d.ts +1 -0
- package/constants.d.ts.map +1 -1
- package/hooks/useEventListenerState.d.ts +3 -0
- package/hooks/useEventListenerState.d.ts.map +1 -0
- package/hooks/useGetDOMRect.d.ts +11 -0
- package/hooks/useGetDOMRect.d.ts.map +1 -0
- package/index-5f313f08.js +2 -0
- package/index-5f313f08.js.map +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/scss/_input.scss +4 -4
- package/scss/_reset.scss +1 -1
- package/AlertSignFill-d3dec2b7.js.map +0 -1
- package/AlertSignStroke-1ed8ac91.js.map +0 -1
- package/ArrowRight-36582929.js.map +0 -1
- package/ArrowUpRight-b1c285b5.js.map +0 -1
- package/Badge-331d223c.js.map +0 -1
- package/Button-1352276a.js.map +0 -1
- package/Calendar-1e4e051c.js.map +0 -1
- package/Check-cc284473.js.map +0 -1
- package/Checkbox-da15e778.js.map +0 -1
- package/ChevronDown-43493477.js.map +0 -1
- package/ChevronRight-92a5c973.js.map +0 -1
- package/ChevronUp-9eb92084.js.map +0 -1
- package/Close-b9893f24.js +0 -2
- package/FormGroup-88d9b47b.js +0 -2
- package/FormGroup-88d9b47b.js.map +0 -1
- package/FormLayout-eea065d7.js.map +0 -1
- package/Group-eab5fd2c.js.map +0 -1
- package/Hospital-d19ce10d.js.map +0 -1
- package/Icon-a7d7e9bc.js.map +0 -1
- package/InfoSignStroke-f9673970.js.map +0 -1
- package/Input-a4c88ad6.js.map +0 -1
- package/Loader-bef282a3.js.map +0 -1
- package/Modal-eb332fa2.js.map +0 -1
- package/NoAccess-e1cfd26c.js.map +0 -1
- package/Panel-05b1d255.js.map +0 -1
- package/Pencil-3d446c44.js.map +0 -1
- package/PlusSmall-d3a22064.js.map +0 -1
- package/RadioButton-f9d660f9.js.map +0 -1
- package/Textarea-d37d10a4.js.map +0 -1
- package/Title-2c8d1f64.js.map +0 -1
- package/Undo-44981995.js.map +0 -1
- package/Validation-5e138927.js +0 -2
- package/Validation-5e138927.js.map +0 -1
- package/Watch-4d83e54d.js.map +0 -1
- package/X-9ca7b3e9.js.map +0 -1
- package/constants-088e1d4a.js.map +0 -1
- package/index-eb155e65.js +0 -2
- package/index-eb155e65.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMrE,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/FormGroup/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAe,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAMrE,oBAAY,aAAa,GAAG,UAAU,GAAG,KAAK,CAAC;AAE/C,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,uFAqFpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -203,6 +203,37 @@
|
|
|
203
203
|
"type": {
|
|
204
204
|
"name": "string"
|
|
205
205
|
}
|
|
206
|
+
},
|
|
207
|
+
"htmlMarkup": {
|
|
208
|
+
"defaultValue": null,
|
|
209
|
+
"description": "Sets div instead of fieldset tag",
|
|
210
|
+
"name": "htmlMarkup",
|
|
211
|
+
"parent": {
|
|
212
|
+
"fileName": "src/components/FormGroup/FormGroup.tsx",
|
|
213
|
+
"name": "FormGroupProps"
|
|
214
|
+
},
|
|
215
|
+
"declarations": [
|
|
216
|
+
{
|
|
217
|
+
"fileName": "src/components/FormGroup/FormGroup.tsx",
|
|
218
|
+
"name": "FormGroupProps"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"required": false,
|
|
222
|
+
"type": {
|
|
223
|
+
"name": "enum",
|
|
224
|
+
"raw": "FormGroupTags | undefined",
|
|
225
|
+
"value": [
|
|
226
|
+
{
|
|
227
|
+
"value": "undefined"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"value": "\"fieldset\""
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"value": "\"div\""
|
|
234
|
+
}
|
|
235
|
+
]
|
|
236
|
+
}
|
|
206
237
|
}
|
|
207
238
|
}
|
|
208
239
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{F as FormGroup,F as default}from"../../FormGroup-
|
|
1
|
+
export{F as FormGroup,F as default}from"../../FormGroup-8968fdf3.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../Checkbox-745fc390.js";import"../../uuid-11037462.js";import"../../Check-244aa62e.js";import"../../Icon-cc73a763.js";import"../../_tslib-b219470a.js";import"../../constants-1371e04f.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-3e95b8fa.js";import"../RadioButton/styles.module.scss";import"../../Input-71c95249.js";import"../../useBreakpoint-a74f5af5.js";import"../Input/styles.module.scss";import"../../Title-761aecc5.js";import"../Title/styles.module.scss";import"../../FormLayout-6563dba9.js";import"../FormLayout/styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
@import '../../scss/font-settings.scss';
|
|
5
5
|
|
|
6
6
|
.form-group-wrapper {
|
|
7
|
-
padding-bottom: getSpacer(xl);
|
|
8
|
-
|
|
9
7
|
&__title {
|
|
10
8
|
&--on-dark {
|
|
11
9
|
color: $white;
|
|
@@ -25,13 +23,15 @@
|
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
.form-group {
|
|
28
|
-
padding:
|
|
26
|
+
padding: 0 0 getSpacer(m);
|
|
29
27
|
|
|
30
28
|
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
31
|
-
padding:
|
|
29
|
+
padding: 0 0 getSpacer(l);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
&--invalid {
|
|
33
|
+
padding-top: getSpacer(s);
|
|
34
|
+
margin-top: getSpacer(s) * -1;
|
|
35
35
|
margin-left: getSpacer(xs) * -1;
|
|
36
36
|
margin-right: getSpacer(xs) * -1;
|
|
37
37
|
padding-left: getSpacer(2xs);
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
font-size: $font-size-md;
|
|
58
58
|
font-weight: 600;
|
|
59
59
|
margin-bottom: getSpacer(m);
|
|
60
|
+
margin-top: 0;
|
|
60
61
|
|
|
61
62
|
&--on-dark {
|
|
62
63
|
color: $white;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{F as FormLayout,a as FormLayoutColumns,F as default}from"../../FormLayout-
|
|
1
|
+
export{F as FormLayout,a as FormLayoutColumns,F as default}from"../../FormLayout-6563dba9.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../constants-1371e04f.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum HelpBubbleVariant {
|
|
3
|
+
positionautomatic = "positionautomatic",
|
|
4
|
+
positionbelow = "positionbelow",
|
|
5
|
+
positionabove = "positionabove"
|
|
6
|
+
}
|
|
7
|
+
export interface HelpBubbleProps {
|
|
8
|
+
/** Name to display in the avatar. Will be truncated to the first two characters. */
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
/** Ref for the element the HelpBubble is placed upon */
|
|
11
|
+
controllerRef: React.RefObject<HTMLElement | SVGSVGElement>;
|
|
12
|
+
/** Adds custom classes to the element. */
|
|
13
|
+
className?: string;
|
|
14
|
+
/** Determines the placement of the helpbubble */
|
|
15
|
+
variant?: keyof typeof HelpBubbleVariant;
|
|
16
|
+
/** Visible text on the link */
|
|
17
|
+
showBubble?: boolean;
|
|
18
|
+
/** Visible text on the link */
|
|
19
|
+
linkText?: string;
|
|
20
|
+
/** Url the link leads to */
|
|
21
|
+
linkUrl?: string;
|
|
22
|
+
/** Function is called when link is clicked */
|
|
23
|
+
onLinkClick?: () => void;
|
|
24
|
+
/** Function is called when user clicks the button */
|
|
25
|
+
onClose?: () => void;
|
|
26
|
+
/** aria-label to be passed onto Close */
|
|
27
|
+
closeAriaLabel?: string;
|
|
28
|
+
/** Sets the data-testid attribute. */
|
|
29
|
+
testId?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const HelpBubble: React.FC<HelpBubbleProps>;
|
|
32
|
+
export default HelpBubble;
|
|
33
|
+
//# sourceMappingURL=HelpBubble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpBubble.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/HelpBubble.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAUxE,oBAAY,iBAAiB;IAC3B,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wDAAwD;IACxD,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,aAAa,CAAC,CAAC;IAC5D,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;IACzC,+BAA+B;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqNzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"props": {
|
|
3
|
+
"children": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "Name to display in the avatar. Will be truncated to the first two characters.",
|
|
6
|
+
"name": "children",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
9
|
+
"name": "HelpBubbleProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
14
|
+
"name": "HelpBubbleProps"
|
|
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
|
+
"controllerRef": {
|
|
27
|
+
"defaultValue": null,
|
|
28
|
+
"description": "Ref for the element the HelpBubble is placed upon",
|
|
29
|
+
"name": "controllerRef",
|
|
30
|
+
"parent": {
|
|
31
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
32
|
+
"name": "HelpBubbleProps"
|
|
33
|
+
},
|
|
34
|
+
"declarations": [
|
|
35
|
+
{
|
|
36
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
37
|
+
"name": "HelpBubbleProps"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"required": true,
|
|
41
|
+
"type": {
|
|
42
|
+
"name": "RefObject<HTMLElement | SVGSVGElement>"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"className": {
|
|
46
|
+
"defaultValue": null,
|
|
47
|
+
"description": "Adds custom classes to the element.",
|
|
48
|
+
"name": "className",
|
|
49
|
+
"parent": {
|
|
50
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
51
|
+
"name": "HelpBubbleProps"
|
|
52
|
+
},
|
|
53
|
+
"declarations": [
|
|
54
|
+
{
|
|
55
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
56
|
+
"name": "HelpBubbleProps"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"required": false,
|
|
60
|
+
"type": {
|
|
61
|
+
"name": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"variant": {
|
|
65
|
+
"defaultValue": null,
|
|
66
|
+
"description": "Determines the placement of the helpbubble",
|
|
67
|
+
"name": "variant",
|
|
68
|
+
"parent": {
|
|
69
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
70
|
+
"name": "HelpBubbleProps"
|
|
71
|
+
},
|
|
72
|
+
"declarations": [
|
|
73
|
+
{
|
|
74
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
75
|
+
"name": "HelpBubbleProps"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"required": false,
|
|
79
|
+
"type": {
|
|
80
|
+
"name": "enum",
|
|
81
|
+
"raw": "\"positionautomatic\" | \"positionbelow\" | \"positionabove\" | undefined",
|
|
82
|
+
"value": [
|
|
83
|
+
{
|
|
84
|
+
"value": "undefined"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"value": "\"positionautomatic\""
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "\"positionbelow\""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"value": "\"positionabove\""
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"showBubble": {
|
|
99
|
+
"defaultValue": null,
|
|
100
|
+
"description": "Visible text on the link",
|
|
101
|
+
"name": "showBubble",
|
|
102
|
+
"parent": {
|
|
103
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
104
|
+
"name": "HelpBubbleProps"
|
|
105
|
+
},
|
|
106
|
+
"declarations": [
|
|
107
|
+
{
|
|
108
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
109
|
+
"name": "HelpBubbleProps"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"required": false,
|
|
113
|
+
"type": {
|
|
114
|
+
"name": "boolean"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"linkText": {
|
|
118
|
+
"defaultValue": null,
|
|
119
|
+
"description": "Visible text on the link",
|
|
120
|
+
"name": "linkText",
|
|
121
|
+
"parent": {
|
|
122
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
123
|
+
"name": "HelpBubbleProps"
|
|
124
|
+
},
|
|
125
|
+
"declarations": [
|
|
126
|
+
{
|
|
127
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
128
|
+
"name": "HelpBubbleProps"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"required": false,
|
|
132
|
+
"type": {
|
|
133
|
+
"name": "string"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"linkUrl": {
|
|
137
|
+
"defaultValue": null,
|
|
138
|
+
"description": "Url the link leads to",
|
|
139
|
+
"name": "linkUrl",
|
|
140
|
+
"parent": {
|
|
141
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
142
|
+
"name": "HelpBubbleProps"
|
|
143
|
+
},
|
|
144
|
+
"declarations": [
|
|
145
|
+
{
|
|
146
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
147
|
+
"name": "HelpBubbleProps"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"required": false,
|
|
151
|
+
"type": {
|
|
152
|
+
"name": "string"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"onLinkClick": {
|
|
156
|
+
"defaultValue": null,
|
|
157
|
+
"description": "Function is called when link is clicked",
|
|
158
|
+
"name": "onLinkClick",
|
|
159
|
+
"parent": {
|
|
160
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
161
|
+
"name": "HelpBubbleProps"
|
|
162
|
+
},
|
|
163
|
+
"declarations": [
|
|
164
|
+
{
|
|
165
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
166
|
+
"name": "HelpBubbleProps"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"required": false,
|
|
170
|
+
"type": {
|
|
171
|
+
"name": "(() => void)"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"onClose": {
|
|
175
|
+
"defaultValue": null,
|
|
176
|
+
"description": "Function is called when user clicks the button",
|
|
177
|
+
"name": "onClose",
|
|
178
|
+
"parent": {
|
|
179
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
180
|
+
"name": "HelpBubbleProps"
|
|
181
|
+
},
|
|
182
|
+
"declarations": [
|
|
183
|
+
{
|
|
184
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
185
|
+
"name": "HelpBubbleProps"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"required": false,
|
|
189
|
+
"type": {
|
|
190
|
+
"name": "(() => void)"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"closeAriaLabel": {
|
|
194
|
+
"defaultValue": null,
|
|
195
|
+
"description": "aria-label to be passed onto Close",
|
|
196
|
+
"name": "closeAriaLabel",
|
|
197
|
+
"parent": {
|
|
198
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
199
|
+
"name": "HelpBubbleProps"
|
|
200
|
+
},
|
|
201
|
+
"declarations": [
|
|
202
|
+
{
|
|
203
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
204
|
+
"name": "HelpBubbleProps"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"required": false,
|
|
208
|
+
"type": {
|
|
209
|
+
"name": "string"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"testId": {
|
|
213
|
+
"defaultValue": null,
|
|
214
|
+
"description": "Sets the data-testid attribute.",
|
|
215
|
+
"name": "testId",
|
|
216
|
+
"parent": {
|
|
217
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
218
|
+
"name": "HelpBubbleProps"
|
|
219
|
+
},
|
|
220
|
+
"declarations": [
|
|
221
|
+
{
|
|
222
|
+
"fileName": "src/components/HelpBubble/HelpBubble.tsx",
|
|
223
|
+
"name": "HelpBubbleProps"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"required": false,
|
|
227
|
+
"type": {
|
|
228
|
+
"name": "string"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubble/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as HelpBubbleVariant,H as default}from"../../HelpBubble-8ff1a72a.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../index-d1c0552c.js";import"react";import"../../constants-1371e04f.js";import"../../AnchorLink-1e690d55.js";import"../../Icon-cc73a763.js";import"../../_tslib-b219470a.js";import"../../ArrowUpRight-6d59a425.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-fc92b2c4.js";import"../../X-35ea9677.js";import"../Close/styles.module.scss";import"../../useBreakpoint-a74f5af5.js";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,81 @@
|
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
2
|
+
@import '../../scss/_breakpoints.scss';
|
|
3
|
+
@import '../../scss/_palette.scss';
|
|
4
|
+
@import '../../scss/_font-settings.scss';
|
|
5
|
+
@import '../AnchorLink/styles.module.scss';
|
|
6
|
+
|
|
7
|
+
.helpbubble {
|
|
8
|
+
display: flex;
|
|
9
|
+
position: fixed;
|
|
10
|
+
align-items: flex-start !important;
|
|
11
|
+
max-width: 373px;
|
|
12
|
+
text-align: start;
|
|
13
|
+
font-family: inherit;
|
|
14
|
+
font-size: $font-size-sm;
|
|
15
|
+
line-height: $lineheight-size-sm;
|
|
16
|
+
background-color: $white;
|
|
17
|
+
z-index: 3;
|
|
18
|
+
visibility: visible;
|
|
19
|
+
|
|
20
|
+
border: getSpacer(4xs) solid $plum600;
|
|
21
|
+
border-radius: 9px;
|
|
22
|
+
box-shadow: 0 2px 18px 0 rgba(0, 0, 0, 0.15);
|
|
23
|
+
|
|
24
|
+
&--initial-render {
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
29
|
+
font-size: $font-size-md;
|
|
30
|
+
line-height: $lineheight-size-md;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__child-wrapper {
|
|
34
|
+
display: flex;
|
|
35
|
+
width: max-content;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
overflow-wrap: anywhere;
|
|
39
|
+
row-gap: getSpacer(2xs);
|
|
40
|
+
padding: getSpacer(s) 0 getSpacer(m) getSpacer(s);
|
|
41
|
+
|
|
42
|
+
> p {
|
|
43
|
+
margin: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__link-button {
|
|
48
|
+
all: unset;
|
|
49
|
+
@include anchorlink;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__close-wrapper {
|
|
53
|
+
padding: getSpacer(2xs) getSpacer(2xs) 0px 0px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.helpbubble-arrow {
|
|
58
|
+
width: 0;
|
|
59
|
+
height: 0;
|
|
60
|
+
position: fixed;
|
|
61
|
+
border-style: solid;
|
|
62
|
+
border-color: transparent;
|
|
63
|
+
z-index: 4;
|
|
64
|
+
|
|
65
|
+
&--over {
|
|
66
|
+
border-width: 10px 10px;
|
|
67
|
+
border-bottom-color: $white;
|
|
68
|
+
-webkit-filter: drop-shadow($plum600 0px 2px 6px 2px);
|
|
69
|
+
filter: drop-shadow(0px -0.185rem 0px $plum600);
|
|
70
|
+
}
|
|
71
|
+
&--under {
|
|
72
|
+
border-width: 10px 10px;
|
|
73
|
+
border-top-color: $white;
|
|
74
|
+
-webkit-filter: drop-shadow($plum600 0px 2px 6px 2px);
|
|
75
|
+
filter: drop-shadow(0px 0.2rem 0px $plum600);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&--initial-render {
|
|
79
|
+
visibility: hidden;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
anchorlink: string;
|
|
3
|
+
anchorlink__icon: string;
|
|
4
|
+
helpbubble: string;
|
|
5
|
+
'helpbubble__child-wrapper': string;
|
|
6
|
+
'helpbubble__close-wrapper': string;
|
|
7
|
+
'helpbubble__link-button': string;
|
|
8
|
+
'helpbubble__link-button__icon': string;
|
|
9
|
+
'helpbubble--initial-render': string;
|
|
10
|
+
'helpbubble-arrow': string;
|
|
11
|
+
'helpbubble-arrow--initial-render': string;
|
|
12
|
+
'helpbubble-arrow--over': string;
|
|
13
|
+
'helpbubble-arrow--under': string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type ClassNames = keyof Styles;
|
|
17
|
+
|
|
18
|
+
declare const styles: Styles;
|
|
19
|
+
|
|
20
|
+
export default styles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpBubbleExample.d.ts","sourceRoot":"","sources":["../../../src/components/HelpBubbleExample/HelpBubbleExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,OAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEvE,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+BhD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|