@helsenorge/designsystem-react 1.0.0-beta113 → 1.0.0-beta116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Badge-d5aca34c.js +2 -0
- package/Badge-d5aca34c.js.map +1 -0
- package/{Button-218a5289.js → Button-e3420a9c.js} +2 -2
- package/Button-e3420a9c.js.map +1 -0
- package/{Checkbox-657cb5e7.js → Checkbox-36ad53de.js} +2 -2
- package/Checkbox-36ad53de.js.map +1 -0
- package/Close-a4dd37d1.js +2 -0
- package/Close-a4dd37d1.js.map +1 -0
- package/{FormGroup-e67d4a50.js → FormGroup-f6f08b2e.js} +2 -2
- package/FormGroup-f6f08b2e.js.map +1 -0
- package/{Input-fe2b4c5a.js → Input-b8528747.js} +2 -2
- package/Input-b8528747.js.map +1 -0
- package/{Loader-8a2970bd.js → Loader-36f298cb.js} +2 -2
- package/Loader-36f298cb.js.map +1 -0
- package/{Modal-95d3d875.js → Modal-830c6eaa.js} +2 -2
- package/Modal-830c6eaa.js.map +1 -0
- package/Panel-fa7d1fa3.js +2 -0
- package/Panel-fa7d1fa3.js.map +1 -0
- package/{RadioButton-0233a8fb.js → RadioButton-6d28412a.js} +2 -2
- package/RadioButton-6d28412a.js.map +1 -0
- package/{Textarea-4597fece.js → Textarea-bf32d3bd.js} +2 -2
- package/Textarea-bf32d3bd.js.map +1 -0
- package/Title-013bf3d5.js +2 -0
- package/Title-013bf3d5.js.map +1 -0
- package/{Validation-247496a2.js → Validation-723a227a.js} +2 -2
- package/Validation-723a227a.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/Button/styles.module.scss +5 -2
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Close/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/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/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/Heart.js +1 -1
- package/components/Icons/HelpSign.js +1 -1
- package/components/Icons/History.js +1 -1
- package/components/Icons/Home.js +1 -1
- package/components/Icons/Hospital.js +1 -1
- package/components/Icons/Hourglass.js +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/InfoSignFill.js +1 -1
- package/components/Icons/InfoSignStroke.js +1 -1
- package/components/Icons/Journal.js +1 -1
- package/components/Icons/List.js +1 -1
- package/components/Icons/Location.js +1 -1
- package/components/Icons/Lock.js +1 -1
- package/components/Icons/Medicine.js +1 -1
- package/components/Icons/Menu.js +1 -1
- package/components/Icons/Minus.js +1 -1
- package/components/Icons/MobilePhone.js +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/NoFilter.js +1 -1
- package/components/Icons/PaperPlane.js +1 -1
- package/components/Icons/Pause.js +1 -1
- package/components/Icons/Pencil.js +1 -1
- package/components/Icons/Play.js +1 -1
- package/components/Icons/PlusLarge.js +1 -1
- package/components/Icons/PlusSmall.js +1 -1
- package/components/Icons/Printer.js +1 -1
- package/components/Icons/QrCode.js +1 -1
- package/components/Icons/Receptionist.js +1 -1
- package/components/Icons/Referral.js +1 -1
- package/components/Icons/Refresh.js +1 -1
- package/components/Icons/Reply.js +1 -1
- package/components/Icons/Save.js +1 -1
- package/components/Icons/Search.js +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/Settings.js +1 -1
- package/components/Icons/Share.js +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/Stopwatch.js +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/TimePassing.js +1 -1
- package/components/Icons/Toolbox.js +1 -1
- package/components/Icons/TrashCan.js +1 -1
- package/components/Icons/Undo.js +1 -1
- package/components/Icons/Upload.js +1 -1
- package/components/Icons/Vaccine.js +1 -1
- package/components/Icons/VerticalDots.js +1 -1
- package/components/Icons/VideoCamera.js +1 -1
- package/components/Icons/VideoChat.js +1 -1
- package/components/Icons/Wallet.js +1 -1
- package/components/Icons/Watch.js +1 -1
- package/components/Icons/X.js +1 -1
- package/components/Icons/Zoom.js +1 -1
- package/components/Icons/index.js +1 -1
- package/components/Input/index.js +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/List/index.js +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Logo/index.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/Panel/Panel.d.ts +3 -1
- package/components/Panel/Panel.d.ts.map +1 -1
- package/components/Panel/componentdata.json +19 -0
- package/components/Panel/index.js +1 -1
- package/components/Panel/styles.module.scss +27 -6
- package/components/PanelList/PanelList.d.ts +13 -0
- package/components/PanelList/PanelList.d.ts.map +1 -0
- package/components/PanelList/componentdata.json +79 -0
- package/components/PanelList/index.d.ts +4 -0
- package/components/PanelList/index.d.ts.map +1 -0
- package/components/PanelList/index.js +2 -0
- package/components/PanelList/index.js.map +1 -0
- package/components/PanelList/styles.module.scss +15 -0
- 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/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-be4018c7.js → constants-6ea124a5.js} +2 -2
- package/constants-6ea124a5.js.map +1 -0
- package/constants.d.ts +1 -0
- package/constants.d.ts.map +1 -1
- package/hoc/withBreakpoint/index.js +1 -1
- package/hooks/useBreakpoint.d.ts.map +1 -1
- package/hooks/useSize.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/useBreakpoint-6eb418f7.js +2 -0
- package/useBreakpoint-6eb418f7.js.map +1 -0
- package/Badge-81cefbed.js +0 -2
- package/Badge-81cefbed.js.map +0 -1
- package/Button-218a5289.js.map +0 -1
- package/Checkbox-657cb5e7.js.map +0 -1
- package/Close-c1ccb332.js +0 -2
- package/Close-c1ccb332.js.map +0 -1
- package/FormGroup-e67d4a50.js.map +0 -1
- package/Input-fe2b4c5a.js.map +0 -1
- package/Loader-8a2970bd.js.map +0 -1
- package/Modal-95d3d875.js.map +0 -1
- package/RadioButton-0233a8fb.js.map +0 -1
- package/Textarea-4597fece.js.map +0 -1
- package/Title-8fc7396e.js +0 -2
- package/Title-8fc7396e.js.map +0 -1
- package/Validation-247496a2.js.map +0 -1
- package/constants-be4018c7.js.map +0 -1
- package/useBreakpoint-004c6cb2.js +0 -2
- package/useBreakpoint-004c6cb2.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as s}from"../../Modal-
|
|
1
|
+
import{M as s}from"../../Modal-830c6eaa.js";export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-830c6eaa.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-e3420a9c.js";import"../../_tslib-51c8a283.js";import"../../constants-6ea124a5.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../grid-c105cad1.js";import"../../Loader-36f298cb.js";import"../../uuid-fe7442b7.js";import"../Loader/styles.module.scss";import"../../useHover-026f72c1.js";import"../../useWindowSize-5cc481da.js";import"../Button/styles.module.scss";import"../Icons/Icon.js";import"./styles.module.scss";import"../Icons/AlertSignStroke.js";import"../Icons/AlertSignFill.js";import"../../useIsVisible-fad4d769.js";import"../../Title-013bf3d5.js";import"../Title/styles.module.scss";import"../../Close-a4dd37d1.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../useBreakpoint-6eb418f7.js";import"../Icons/CheckOutline.js";import"../Portal/index.js";import"react-dom";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import o from"react";import{c as a}from"../../index-9b84fabc.js";import{p as r}from"../../palette-f206f488.js";import{Icon as t}from"../Icons/Icon.js";import{A as i}from"../../constants-
|
|
1
|
+
import{d as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import o from"react";import{c as a}from"../../index-9b84fabc.js";import{p as r}from"../../palette-f206f488.js";import{Icon as t}from"../Icons/Icon.js";import{A as i}from"../../constants-6ea124a5.js";import n from"../Icons/InfoSignStroke.js";import l from"../Icons/AlertSignStroke.js";import c from"../Icons/AlertSignFill.js";import s from"./styles.module.scss";import{C as m}from"../../Close-a4dd37d1.js";import"../../_tslib-51c8a283.js";import"../Icons/X.js";import"../Close/styles.module.scss";import"../../useBreakpoint-6eb418f7.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:o.createElement(t,{svgIcon:n,color:r.kiwi900,hoverColor:r.kiwi900}),warn:o.createElement(t,{svgIcon:l,color:"black",hoverColor:"black"}),alert:o.createElement(t,{svgIcon:c,color:r.cherry500,hoverColor:r.cherry500}),alertLabel:o.createElement(t,{svgIcon:l,color:r.cherry500,hoverColor:r.cherry500}),crisis:o.createElement(t,{svgIcon:c,color:r.banana200,hoverColor:r.banana200})},d=o.forwardRef((function(r,t){var n,l,c=r.children,p=r.variant,d=void 0===p?"info":p,h=r.shadow,b=void 0!==h&&h,v=r.dismissable,u=void 0!==v&&v,_=r.onClick,I=r.label,j=r.fluid,g=void 0!==j&&j,w=r.size,C=r.className,E=r.testId;var k,y=!!I&&!c;return k=o.createElement("div",{ref:t,"data-testid":E,"data-analyticsid":i.NotificationPanel,className:a(s["notification-panel"],w&&s["notification-panel--"+w],s["notification-panel--"+d],(n={},e(n,s["notification-panel--shadow"],!g&&b),e(n,s["notification-panel--has-children"],!y),e(n,s["notification-panel--label-only"],y),e(n,s["notification-panel--dismissable"],!y&&u),n),C)},o.createElement("span",{className:s["notification-panel__icon"]},f["alert"===d&&I&&!c?"alertLabel":d]),o.createElement("section",{"aria-label":function(){if(c){var e="";return o.Children.map(c,(function(o){"string"==typeof o&&(e+=o)})),e}return""}(),className:a(s["notification-panel__content"],(l={},e(l,s["notification-panel__content--crisis"],"crisis"===d),e(l,s["notification-panel__content--alert"],"alert"===d),l))},I&&o.createElement("h1",{className:s["notification-panel__label"],dangerouslySetInnerHTML:{__html:I}}),c),!y&&u&&o.createElement("span",{className:s["notification-panel__close"]},o.createElement(m,{ariaLabel:r.ariaLabelCloseBtn,onClick:_}))),g?o.createElement("div",{className:a(s["fluid-wrapper"],s["fluid-wrapper--"+d],e({},s["fluid-wrapper--shadow"],b))},k):k}));export default d;export{p as variantToColorMap};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -19,7 +19,7 @@ export declare enum PanelLayout {
|
|
|
19
19
|
layout3b = "layout3b",
|
|
20
20
|
layout3c = "layout3c"
|
|
21
21
|
}
|
|
22
|
-
interface PanelProps {
|
|
22
|
+
export interface PanelProps {
|
|
23
23
|
children?: React.ReactNode;
|
|
24
24
|
/** Title of the panel */
|
|
25
25
|
title?: string;
|
|
@@ -59,6 +59,8 @@ interface PanelProps {
|
|
|
59
59
|
time?: string;
|
|
60
60
|
/** Displays date with icon */
|
|
61
61
|
date?: string;
|
|
62
|
+
/** Removes top border when variant is "line" */
|
|
63
|
+
noTopBorder?: boolean;
|
|
62
64
|
}
|
|
63
65
|
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
64
66
|
export default Panel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,OAAO,EAAE,YAAY,EAAe,MAAM,iBAAiB,CAAC;AAe5D,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,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EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACpC,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iEAAiE;IACjE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IAClC,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA8ED,QAAA,MAAM,KAAK,uFAmLT,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -435,6 +435,25 @@
|
|
|
435
435
|
"type": {
|
|
436
436
|
"name": "string"
|
|
437
437
|
}
|
|
438
|
+
},
|
|
439
|
+
"noTopBorder": {
|
|
440
|
+
"defaultValue": null,
|
|
441
|
+
"description": "Removes top border when variant is \"line\"",
|
|
442
|
+
"name": "noTopBorder",
|
|
443
|
+
"parent": {
|
|
444
|
+
"fileName": "src/components/Panel/Panel.tsx",
|
|
445
|
+
"name": "PanelProps"
|
|
446
|
+
},
|
|
447
|
+
"declarations": [
|
|
448
|
+
{
|
|
449
|
+
"fileName": "src/components/Panel/Panel.tsx",
|
|
450
|
+
"name": "PanelProps"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"required": false,
|
|
454
|
+
"type": {
|
|
455
|
+
"name": "boolean"
|
|
456
|
+
}
|
|
438
457
|
}
|
|
439
458
|
}
|
|
440
459
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{P as s}from"../../Panel-fa7d1fa3.js";export{c as PanelLayout,a as PanelStatus,b as PanelVariant,P as default}from"../../Panel-fa7d1fa3.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../Title-013bf3d5.js";import"../Title/styles.module.scss";import"../../constants-6ea124a5.js";import"../../Button-e3420a9c.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Loader-36f298cb.js";import"../../uuid-fe7442b7.js";import"../Loader/styles.module.scss";import"../../useHover-026f72c1.js";import"../../useWindowSize-5cc481da.js";import"../Button/styles.module.scss";import"../Icons/Icon.js";import"../Icons/ChevronDown.js";import"../Icons/ChevronUp.js";import"../Icons/ArrowRight.js";import"../Icons/AlertSignFill.js";import"../Icons/Pencil.js";import"../Icons/Calendar.js";import"../Icons/Watch.js";import"../../useBreakpoint-6eb418f7.js";import"../../Badge-d5aca34c.js";import"../Badge/styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
@mixin panel-padding-icon {
|
|
20
|
+
padding: getSpacer(m) getSpacer(s) getSpacer(l) getSpacer(s);
|
|
21
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
22
|
+
padding: getSpacer(m) getSpacer(m) getSpacer(l) getSpacer(m);
|
|
23
|
+
}
|
|
24
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
25
|
+
padding: getSpacer(l) getSpacer(m) getSpacer(l) getSpacer(m);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
.panel {
|
|
20
30
|
@include panel-padding;
|
|
21
31
|
outline: none;
|
|
@@ -29,14 +39,14 @@
|
|
|
29
39
|
flex: 1;
|
|
30
40
|
}
|
|
31
41
|
|
|
32
|
-
&--
|
|
42
|
+
&--layout3 {
|
|
33
43
|
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
34
44
|
display: flex;
|
|
35
45
|
flex-direction: row;
|
|
36
46
|
}
|
|
37
47
|
}
|
|
38
48
|
|
|
39
|
-
&--grow{
|
|
49
|
+
&--grow {
|
|
40
50
|
flex: 1;
|
|
41
51
|
}
|
|
42
52
|
}
|
|
@@ -44,6 +54,7 @@
|
|
|
44
54
|
&--with-icon {
|
|
45
55
|
display: flex;
|
|
46
56
|
flex-direction: row;
|
|
57
|
+
@include panel-padding-icon;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
60
|
&__icon {
|
|
@@ -76,7 +87,7 @@
|
|
|
76
87
|
}
|
|
77
88
|
}
|
|
78
89
|
|
|
79
|
-
&--
|
|
90
|
+
&--layout3 {
|
|
80
91
|
display: flex;
|
|
81
92
|
flex-direction: column;
|
|
82
93
|
padding-left: 0;
|
|
@@ -105,7 +116,7 @@
|
|
|
105
116
|
max-width: 300px;
|
|
106
117
|
}
|
|
107
118
|
|
|
108
|
-
&--
|
|
119
|
+
&--layout3 {
|
|
109
120
|
display: flex;
|
|
110
121
|
align-self: initial;
|
|
111
122
|
flex-direction: column;
|
|
@@ -198,6 +209,9 @@
|
|
|
198
209
|
background-color: $neutral100;
|
|
199
210
|
}
|
|
200
211
|
}
|
|
212
|
+
&--no-top-border#{&}--line {
|
|
213
|
+
border-top: none;
|
|
214
|
+
}
|
|
201
215
|
|
|
202
216
|
&--button {
|
|
203
217
|
cursor: pointer;
|
|
@@ -243,7 +257,6 @@
|
|
|
243
257
|
&--open {
|
|
244
258
|
display: block;
|
|
245
259
|
}
|
|
246
|
-
|
|
247
260
|
&--line {
|
|
248
261
|
background: $white;
|
|
249
262
|
border-bottom: 1px solid $neutral500;
|
|
@@ -251,13 +264,16 @@
|
|
|
251
264
|
&--white {
|
|
252
265
|
background: $white;
|
|
253
266
|
}
|
|
267
|
+
&--with-icon {
|
|
268
|
+
@include panel-padding-icon;
|
|
269
|
+
}
|
|
254
270
|
}
|
|
255
271
|
|
|
256
272
|
.status-message {
|
|
257
273
|
font-size: $font-size-sm;
|
|
258
274
|
color: $cherry500;
|
|
259
275
|
display: flex;
|
|
260
|
-
|
|
276
|
+
margin-bottom: getSpacer(2xs);
|
|
261
277
|
span {
|
|
262
278
|
padding-left: 5px;
|
|
263
279
|
align-self: center;
|
|
@@ -315,6 +331,11 @@
|
|
|
315
331
|
padding-right: getSpacer(m);
|
|
316
332
|
}
|
|
317
333
|
}
|
|
334
|
+
&--layout3 {
|
|
335
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
336
|
+
padding-right: getSpacer(m);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
318
339
|
}
|
|
319
340
|
|
|
320
341
|
.datetime-container {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PanelVariant } from '../Panel';
|
|
3
|
+
interface PanelListProps {
|
|
4
|
+
/** Panels to render inside the PanelList */
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** Changes the visual representation of the panel. Default: fill */
|
|
7
|
+
variant?: keyof typeof PanelVariant;
|
|
8
|
+
/** Sets the data-testid attribute. */
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const PanelList: React.ForwardRefExoticComponent<PanelListProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export default PanelList;
|
|
13
|
+
//# sourceMappingURL=PanelList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PanelList.d.ts","sourceRoot":"","sources":["../../../src/components/PanelList/PanelList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAc,EAAc,YAAY,EAAE,MAAM,UAAU,CAAC;AAG3D,UAAU,cAAc;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IACpC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAKD,QAAA,MAAM,SAAS,uFAeb,CAAC;AAEH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"props": {
|
|
3
|
+
"children": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "Panels to render inside the PanelList",
|
|
6
|
+
"name": "children",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "src/components/PanelList/PanelList.tsx",
|
|
9
|
+
"name": "PanelListProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "src/components/PanelList/PanelList.tsx",
|
|
14
|
+
"name": "PanelListProps"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"required": false,
|
|
18
|
+
"type": {
|
|
19
|
+
"name": "ReactNode"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"variant": {
|
|
23
|
+
"defaultValue": null,
|
|
24
|
+
"description": "Changes the visual representation of the panel. Default: fill",
|
|
25
|
+
"name": "variant",
|
|
26
|
+
"parent": {
|
|
27
|
+
"fileName": "src/components/PanelList/PanelList.tsx",
|
|
28
|
+
"name": "PanelListProps"
|
|
29
|
+
},
|
|
30
|
+
"declarations": [
|
|
31
|
+
{
|
|
32
|
+
"fileName": "src/components/PanelList/PanelList.tsx",
|
|
33
|
+
"name": "PanelListProps"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"required": false,
|
|
37
|
+
"type": {
|
|
38
|
+
"name": "enum",
|
|
39
|
+
"raw": "\"fill\" | \"white\" | \"stroke\" | \"line\" | undefined",
|
|
40
|
+
"value": [
|
|
41
|
+
{
|
|
42
|
+
"value": "undefined"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "\"fill\""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"value": "\"white\""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"value": "\"stroke\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"value": "\"line\""
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"testId": {
|
|
60
|
+
"defaultValue": null,
|
|
61
|
+
"description": "Sets the data-testid attribute.",
|
|
62
|
+
"name": "testId",
|
|
63
|
+
"parent": {
|
|
64
|
+
"fileName": "src/components/PanelList/PanelList.tsx",
|
|
65
|
+
"name": "PanelListProps"
|
|
66
|
+
},
|
|
67
|
+
"declarations": [
|
|
68
|
+
{
|
|
69
|
+
"fileName": "src/components/PanelList/PanelList.tsx",
|
|
70
|
+
"name": "PanelListProps"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"required": false,
|
|
74
|
+
"type": {
|
|
75
|
+
"name": "string"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PanelList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import s from"react";import o from"./styles.module.scss";import{A as t}from"../../constants-6ea124a5.js";import{b as e,P as r}from"../../Panel-fa7d1fa3.js";import{c as i}from"../../index-9b84fabc.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"../Panel/styles.module.scss";import"../../Title-013bf3d5.js";import"../Title/styles.module.scss";import"../../Button-e3420a9c.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Loader-36f298cb.js";import"../../uuid-fe7442b7.js";import"../Loader/styles.module.scss";import"../../useHover-026f72c1.js";import"../../useWindowSize-5cc481da.js";import"../Button/styles.module.scss";import"../Icons/Icon.js";import"../Icons/ChevronDown.js";import"../Icons/ChevronUp.js";import"../Icons/ArrowRight.js";import"../Icons/AlertSignFill.js";import"../Icons/Pencil.js";import"../Icons/Calendar.js";import"../Icons/Watch.js";import"../../useBreakpoint-6eb418f7.js";import"../../Badge-d5aca34c.js";import"../Badge/styles.module.scss";var a=s.forwardRef((function(a,l){var m=a.testId,n=a.children,p=a.variant,c=void 0===p?e.fill:p;return s.createElement("div",{ref:l,"data-testid":m,className:o["panel-list"],"data-analyticsid":t.PanelList},s.Children.map(n,(function(t,a){return n=t,s.isValidElement(n)&&n.type===r?(l=t,m=0===a,s.cloneElement(l,{variant:c,noTopBorder:c===e.line&&!m,className:i(l.props.className,c!==e.line&&o["panel-list__panel"])})):t;var l,m,n})))}));export default a;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
2
|
+
@import '../../scss/_breakpoints.scss';
|
|
3
|
+
@import '../../scss/_palette.scss';
|
|
4
|
+
@import '../../scss/_grid.scss';
|
|
5
|
+
@import '../../scss/_font-settings.scss';
|
|
6
|
+
|
|
7
|
+
.panel-list {
|
|
8
|
+
&__panel:not(:last-child) {
|
|
9
|
+
margin-bottom: getSpacer(2xs);
|
|
10
|
+
|
|
11
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
12
|
+
margin-bottom: getSpacer(s);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-
|
|
1
|
+
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-6ea124a5.js";export default function(n){var a=n.children,o=n.parent,i=n.className,c=n.testId,d=t.useMemo((function(){return document.createElement("div")}),[]);return d.setAttribute("data-analyticsid",r.Portal),c&&d.setAttribute("data-testid",c),t.useEffect((function(){var t=o&&o.appendChild?o:document.body,e=["portal-container"];return i&&i.split(" ").forEach((function(t){return e.push(t)})),e.forEach((function(t){return d.classList.add(t)})),t.appendChild(d),function(){t.removeChild(d)}}),[d,o,i]),e(a,d)}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{R as o}from"../../RadioButton-
|
|
1
|
+
import{R as o}from"../../RadioButton-6d28412a.js";export{R as RadioButton,R as default}from"../../RadioButton-6d28412a.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-fe7442b7.js";import"./styles.module.scss";import"../../constants-6ea124a5.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-9b84fabc.js";import{T as i}from"../../Title-
|
|
1
|
+
import{_ as e}from"../../_rollupPluginBabelHelpers-4f206abf.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-9b84fabc.js";import{T as i}from"../../Title-013bf3d5.js";import c from"./styles.module.scss";import{A as u}from"../../constants-6ea124a5.js";import"../Title/styles.module.scss";var s=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return m(e)?e.touches[0].pageX:e.pageX},d=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},m=function(e){return("touchcancel"===e.type||"touchend"===e.type||"touchenter"===e.type||"touchleave"===e.type||"touchmove"===e.type||"touchstart"===e.type)&&!(0===e.touches.length)},f=function(e,t,n){var r=e-e%t,a=Math.floor(n/t)*t;e>a&&(e>a+(n-a)/2&&(r=n));return Math.round(r)},v=t.forwardRef((function(m,v){var p=m.title,h=m.labelLeft,_=m.labelRight,g=m.disabled,E=void 0!==g&&g,y=m.step,b=void 0===y?1:y,w=m.onChange,k=m.testId,L=n(50),x=e(L,2),N=x[0],A=x[1],D=n(!1),M=e(D,2),R=M[0],j=M[1],T=n(0),B=e(T,2),C=B[0],P=B[1],I=n(0),S=e(I,2),X=S[0],H=S[1],K=n(0),U=e(K,2),q=U[0],z=U[1],F=n(0),G=e(F,2),J=G[0],O=G[1],Q=v||r(null),V=r(null),W=function(e){ne(e)},Y=function(e){te(e)},Z=function(e){ne(e)},$=function(e){te(e)};a((function(){var e=d(Q.current),t=d(V.current);z(function(e,t,n,r,a){return(t-n)/(a-r)*e}(N,e,t,0,100)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Z,$))}),[R]),a((function(){!E&&w&&w(N)}),[N]);var ee=function(e){var t;if(!E){var n=d(Q.current),r=d(V.current),a=l(e);!function(e,t,n,r){var a=t?t.getBoundingClientRect():void 0,o=a?a.left:0;r(o?e-(o+n/2):0)}(a,V.current,r,re),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},te=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Z,$),s(e))},ne=function(e){if(!E&&R){var t=l(e);re(t-J),s(e)}},re=function(e){if(0!==e){var t=function(e,t,n,r){var a=r+e;return a<0&&(a=0),a>t-n&&(a=t-n),a}(e,C,X,q);z(t),O(t+e),A(function(e,t,n,r,a,o){var i=(t-n)/(o-a),c=Math.round(e/i);return f(c,r,o)}(t,C,X,b,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":k,"data-analyticsid":u.Slider},p&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},p),t.createElement("div",{ref:Q,className:o(c["slider__track-wrapper"],E?c["slider__track-wrapper--disabled"]:""),onMouseDown:ee,onTouchStart:ee,"data-testid":"tracker"},t.createElement("div",{className:o(c.slider__track,E?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:V,className:o(c.slider__trigger,E?c["slider__trigger--disabled"]:""),style:{left:"".concat(q,"px")},onKeyDown:function(e){if(!E){var t=(C-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||re(b*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||re(-b*t)}},role:"slider","aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(p?p+" ":"").concat(h?h+" ":"").concat(_?_+" ":""),tabIndex:E?-1:0},t.createElement("div",{className:o(c["slider__trigger-inner"],E?c["slider__trigger-inner--disabled"]:"")}))),(h||_)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},_)))}));export default v;export{v as Slider};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as e}from"../../index-9b84fabc.js";import r from"./styles.module.scss";import{A as
|
|
1
|
+
import{d as s}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as e}from"../../index-9b84fabc.js";import r from"./styles.module.scss";import{A as l}from"../../constants-6ea124a5.js";var c=a.forwardRef((function(c,p){var t,x=c.size,o=void 0===x?"s":x,m=c.className,f=c.testId,i=e(r.spacer,(s(t={},r["spacer--4xs"],"4xs"===o),s(t,r["spacer--3xs"],"3xs"===o),s(t,r["spacer--2xs"],"2xs"===o),s(t,r["spacer--xs"],"xs"===o),s(t,r["spacer--s"],"s"===o),s(t,r["spacer--m"],"m"===o),s(t,r["spacer--l"],"l"===o),s(t,r["spacer--xl"],"xl"===o),s(t,r["spacer--2xl"],"2xl"===o),s(t,r["spacer--3xl"],"3xl"===o),s(t,r["spacer--4xl"],"4xl"===o),s(t,r["spacer--5xl"],"5xl"===o),s(t,r["spacer--6xl"],"6xl"===o),t),m);return a.createElement("span",{className:i,ref:p,"data-testid":f,"data-analyticsid":l.Spacer})}));export default c;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as
|
|
1
|
+
import{T as s}from"../../Textarea-bf32d3bd.js";export{T as default}from"../../Textarea-bf32d3bd.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-6ea124a5.js";import"../../uuid-fe7442b7.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Tile/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as
|
|
1
|
+
import{_ as e,d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as a}from"react";import{c as l}from"../../index-9b84fabc.js";import{A as o,I as n}from"../../constants-6ea124a5.js";import s from"./styles.module.scss";var c=r.forwardRef((function(e,i){var a,o=e.children,n=e.className,c=e.htmlMarkup,m=void 0===c?"span":c,d=e.highlighted,f=e.compact,p=l(s.tile__title,(t(a={},s["tile__title--highlighted"],d),t(a,s["tile__title--compact"],f),a),n),u=m;return r.createElement(u,{className:p,ref:i},o)})),m=r.forwardRef((function(c,m){var d,f=c.icon,p=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,v=void 0!==_&&_,b=c.highlighted,E=void 0!==b&&b,N=c.testId,x=i(c,["icon","title","className","description","fixed","highlighted","testId"]),j=a(!1),w=e(j,2),M=w[0],k=w[1],I=!g,y=l(s.tile,(t(d={},s["tile--fixed"],v),t(d,s["tile--compact"],I),t(d,s["tile--highlighted"],E),d),h),B=l(s["title-wrapper"],t({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:m,className:y,onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},x),r.createElement("div",{className:B},r.cloneElement(f,{size:n.Medium,isHovered:M,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:I})),g?r.createElement("p",{className:s.tile__description},g):null)}));m.Title=c;export default m;export{m as Tile};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as s}from"../../Title-
|
|
1
|
+
import{T as s}from"../../Title-013bf3d5.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-013bf3d5.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-6ea124a5.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{V as s}from"../../Validation-
|
|
1
|
+
import{V as s}from"../../Validation-723a227a.js";export{V as Validation,V as default}from"../../Validation-723a227a.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-f6f08b2e.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-36ad53de.js";import"../../uuid-fe7442b7.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-6ea124a5.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-6d28412a.js";import"../RadioButton/styles.module.scss";import"../../Input-b8528747.js";import"../../useBreakpoint-6eb418f7.js";import"../Input/styles.module.scss";import"../../Title-013bf3d5.js";import"../Title/styles.module.scss";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var a,n,o,
|
|
2
|
-
//# sourceMappingURL=constants-
|
|
1
|
+
var a,n,e,o,i;!function(a){a[a.XXSmall=24]="XXSmall",a[a.XSmall=38]="XSmall",a[a.Small=48]="Small",a[a.Medium=64]="Medium",a[a.Large=80]="Large",a[a.XLarge=130]="XLarge"}(a||(a={})),function(a){a[a.Modal=13e5]="Modal",a[a.ExpanderTrigger=1e4]="ExpanderTrigger"}(n||(n={})),function(a){a.onwhite="onwhite",a.ongrey="ongrey",a.onblueberry="onblueberry",a.ondark="ondark",a.oninvalid="oninvalid"}(e||(e={})),function(a){a.normal="normal",a.bigform="bigform"}(o||(o={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Expander="expander",a.ExpanderList="expander-list",a.ExpanderListExpander="expander-list-expander",a.FormGroup="form-group",a.HighlightBox="highlight-box",a.Icon="icon",a.Input="input",a.Link="link",a.LinkList="link-list",a.List="list",a.Loader="loader",a.Logo="logo",a.Modal="modal",a.NotificationPanel="notification-panel",a.Panel="panel",a.PanelList="panel-list",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(i||(i={}));export{i as A,e as F,a as I,n as Z,o as a};
|
|
2
|
+
//# sourceMappingURL=constants-6ea124a5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-6ea124a5.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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I,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,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import r from"react";import{u as e}from"../../useBreakpoint-
|
|
1
|
+
import r from"react";import{u as e}from"../../useBreakpoint-6eb418f7.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../grid-c105cad1.js";function t(t){return r.forwardRef((function(o,a){var f=e();return r.createElement(t,Object.assign({ref:a},o,{breakpoint:f}))}))}export default t;export{t as withBreakpoint};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,GAAqB;IACrB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,GAAqB;IACrB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,kBA2DzB,CAAC"}
|
package/hooks/useSize.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useSize.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"useSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useSize.ts"],"names":[],"mappings":";AAGA;;;;;GAKG;AACH,eAAO,MAAM,OAAO,mFAUnB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-
|
|
1
|
+
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-6eb418f7.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";import{u as e}from"./useWindowSize-5cc481da.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as s}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r}from"react";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,Z as ZIndex}from"./constants-6ea124a5.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var a=r(),t=s(a,2),u=t[0],i=t[1];return e((function(){(null==o?void 0:o.current)&&i(o.current.getBoundingClientRect())})),u};export{o as useSize};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r,useEffect as a}from"react";import{b as n,s as i}from"./grid-c105cad1.js";var s;!function(e){e[e.xxs=n.xxs]="xxs",e[e.xs=n.xs]="xs",e[e.sm=n.sm]="sm",e[e.md=n.md]="md",e[e.lg=n.lg]="lg",e[e.xl=n.xl]="xl"}(s||(s={}));var t=function(){var n=r(s.xxs),t=e(n,2),m=t[0],d=t[1];return a((function(){var r,a,n=function(e){switch(e.media){case i.xl:return void d(e.matches?s.xl:s.lg);case i.lg:return void d(e.matches?s.lg:s.md);case i.md:return void d(e.matches?s.md:s.sm);case i.sm:return void d(e.matches?s.sm:s.xs);case i.xs:return void d(e.matches?s.xs:s.xxs);default:return void d(s.xxs)}},t=Object.entries(i).reverse().map((function(r){var a=e(r,2),n=a[0],i=a[1];return{breakpoint:s[n],mediaQuery:window.matchMedia(i)}}));t.forEach((function(e){e.mediaQuery.addEventListener?e.mediaQuery.addEventListener("change",n):e.mediaQuery.addListener&&e.mediaQuery.addListener(n)}));var o=null!==(a=null===(r=t.find((function(e){return e.mediaQuery.matches})))||void 0===r?void 0:r.breakpoint)&&void 0!==a?a:m;return d(o),function(){t.forEach((function(e){e.mediaQuery.removeEventListener?e.mediaQuery.removeEventListener("change",n):e.mediaQuery.removeListener&&e.mediaQuery.removeListener(n)}))}}),[]),m};export{s as B,t as u};
|
|
2
|
+
//# sourceMappingURL=useBreakpoint-6eb418f7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBreakpoint-6eb418f7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Badge-81cefbed.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as a}from"./_rollupPluginBabelHelpers-4f206abf.js";import e from"react";import{c as r}from"./index-9b84fabc.js";import t from"./components/Badge/styles.module.scss";import{A as d}from"./constants-be4018c7.js";var s=e.forwardRef((function(s,b){var o,l=s.children,i=s.className,n=void 0===i?"":i,c=s.color,m=void 0===c?"black":c,g=s.testId,f=l.toString().length>2,p=r(t.badge,(a(o={},t["badge--oversized"],f),a(o,t["badge--black"],"black"===m),a(o,t["badge--white"],"white"===m),a(o,t["badge--blueberry"],"blueberry"===m),a(o,t["badge--banana"],"banana"===m),a(o,t["badge--cherry"],"cherry"===m),a(o,t["badge--kiwi"],"kiwi"===m),a(o,t["badge--neutral"],"neutral"===m),a(o,t["badge--plum"],"plum"===m),o),n);return e.createElement("span",{className:p,ref:b,"data-testid":g,"data-analyticsid":d.Badge},l)}));export{s as B};
|
|
2
|
-
//# sourceMappingURL=Badge-81cefbed.js.map
|
package/Badge-81cefbed.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Badge-81cefbed.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Button-218a5289.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-218a5289.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Checkbox-657cb5e7.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox-657cb5e7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Close-c1ccb332.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import o from"react";import{p as t}from"./palette-f206f488.js";import{Icon as s}from"./components/Icons/Icon.js";import{A as e}from"./constants-be4018c7.js";import r from"./components/Icons/X.js";import a from"./components/Close/styles.module.scss";import{u as n,B as c}from"./useBreakpoint-004c6cb2.js";var m=function(m){var l=n()===c.xs?38:48;return o.createElement("button",{"data-testid":m.testId,"data-analyticsid":e.Close,className:a.close,"aria-label":m.ariaLabel||"Lukk",onClick:m.onClick,role:"button"},o.createElement(s,{svgIcon:r,color:t.blueberry600,size:l}))};export{m as C};
|
|
2
|
-
//# sourceMappingURL=Close-c1ccb332.js.map
|
package/Close-c1ccb332.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Close-c1ccb332.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup-e67d4a50.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Input-fe2b4c5a.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input-fe2b4c5a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Loader-8a2970bd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-8a2970bd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Modal-95d3d875.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal-95d3d875.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton-0233a8fb.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Textarea-4597fece.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea-4597fece.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Title-8fc7396e.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as t}from"./_rollupPluginBabelHelpers-4f206abf.js";import e from"react";import{c as i}from"./index-9b84fabc.js";import r from"./components/Title/styles.module.scss";import{A as a}from"./constants-be4018c7.js";var o=function(t){return Object.prototype.hasOwnProperty.call(t,"marginTop")&&Object.prototype.hasOwnProperty.call(t,"marginBottom")},l=e.forwardRef((function(l,m){var n,c=l.id,s=l.children,p=l.className,d=l.htmlMarkup,f=void 0===d?"h1":d,g=l.appearance,u=void 0===g?"title1":g,b=l.margin,y=void 0===b?0:b,T=l.testId,h=i(r.title,(t(n={},r["title--feature"],"titleFeature"===u),t(n,r["title--title1"],"title1"===u),t(n,r["title--title2"],"title2"===u),t(n,r["title--title3"],"title3"===u),t(n,r["title--title4"],"title4"===u),t(n,r["title--title5"],"title5"===u),n),p),j=f,v=o(y)?{marginTop:"".concat(y.marginTop,"rem"),marginBottom:"".concat(y.marginBottom,"rem")}:{marginTop:"".concat(y,"rem"),marginBottom:"".concat(y,"rem")};return e.createElement(j,{id:c,className:h,style:v,ref:m,"data-testid":T,"data-analyticsid":a.Title},s)}));export{l as T,o as i};
|
|
2
|
-
//# sourceMappingURL=Title-8fc7396e.js.map
|
package/Title-8fc7396e.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Title-8fc7396e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validation-247496a2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-be4018c7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r,useEffect as n}from"react";import{b as s,s as t}from"./grid-c105cad1.js";var a;!function(e){e[e.xxs=s.xxs]="xxs",e[e.xs=s.xs]="xs",e[e.sm=s.sm]="sm",e[e.md=s.md]="md",e[e.lg=s.lg]="lg",e[e.xl=s.xl]="xl"}(a||(a={}));var i=function(){var s=r(a.xxs),i=e(s,2),m=i[0],o=i[1];return n((function(){var r,n,s=function(e){switch(e.media){case t.xl:return void o(e.matches?a.xl:a.lg);case t.lg:return void o(e.matches?a.lg:a.md);case t.md:return void o(e.matches?a.md:a.sm);case t.sm:return void o(e.matches?a.sm:a.xs);case t.xs:return void o(e.matches?a.xs:a.xxs);default:return void o(a.xxs)}},i=Object.entries(t).reverse().map((function(r){var n=e(r,2),s=n[0],t=n[1];return{breakpoint:a[s],mediaQuery:window.matchMedia(t)}}));i.forEach((function(e){return e.mediaQuery.addEventListener("change",s)}));var u=null!==(n=null===(r=i.find((function(e){return e.mediaQuery.matches})))||void 0===r?void 0:r.breakpoint)&&void 0!==n?n:m;return o(u),function(){i.forEach((function(e){return e.mediaQuery.removeEventListener("change",s)}))}}),[]),m};export{a as B,i as u};
|
|
2
|
-
//# sourceMappingURL=useBreakpoint-004c6cb2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpoint-004c6cb2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|