@helsenorge/designsystem-react 1.0.0-beta116 → 1.0.0-beta117
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-de6c8a84.js +2 -0
- package/Badge-de6c8a84.js.map +1 -0
- package/{Button-e3420a9c.js → Button-81c39cdc.js} +2 -2
- package/Button-81c39cdc.js.map +1 -0
- package/{Checkbox-36ad53de.js → Checkbox-77c5eb81.js} +2 -2
- package/Checkbox-77c5eb81.js.map +1 -0
- package/Close-2208b6a2.js +2 -0
- package/Close-2208b6a2.js.map +1 -0
- package/{FormGroup-f6f08b2e.js → FormGroup-59af8a47.js} +2 -2
- package/FormGroup-59af8a47.js.map +1 -0
- package/{Input-b8528747.js → Input-bb2921c2.js} +2 -2
- package/Input-bb2921c2.js.map +1 -0
- package/{Loader-36f298cb.js → Loader-72869219.js} +2 -2
- package/Loader-72869219.js.map +1 -0
- package/{Modal-830c6eaa.js → Modal-aeb33706.js} +2 -2
- package/Modal-aeb33706.js.map +1 -0
- package/{Panel-fa7d1fa3.js → Panel-6db84e0d.js} +2 -2
- package/Panel-6db84e0d.js.map +1 -0
- package/{RadioButton-6d28412a.js → RadioButton-0b6fb2c2.js} +2 -2
- package/RadioButton-0b6fb2c2.js.map +1 -0
- package/{Textarea-bf32d3bd.js → Textarea-d228fc34.js} +2 -2
- package/Textarea-d228fc34.js.map +1 -0
- package/{Title-013bf3d5.js → Title-42d581cc.js} +2 -2
- package/Title-42d581cc.js.map +1 -0
- package/{Validation-723a227a.js → Validation-38e94036.js} +2 -2
- package/Validation-38e94036.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/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/AdditionalIconInformation.js +44 -45
- package/components/Icons/AdditionalIconInformation.js.map +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.d.ts.map +1 -1
- package/components/Icons/Change.js +1 -1
- package/components/Icons/Check.js +1 -1
- package/components/Icons/CheckFill.d.ts +5 -0
- package/components/Icons/CheckFill.d.ts.map +1 -0
- package/components/Icons/CheckFill.js +2 -0
- package/components/Icons/CheckFill.js.map +1 -0
- 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.d.ts +5 -0
- package/components/Icons/Group.d.ts.map +1 -0
- package/components/Icons/Group.js +2 -0
- package/components/Icons/Group.js.map +1 -0
- package/components/Icons/Heart.js +1 -1
- package/components/Icons/HelpSign.js +1 -1
- package/components/Icons/History.js +1 -1
- package/components/Icons/Home.js +1 -1
- package/components/Icons/Hospital.js +1 -1
- package/components/Icons/Hourglass.js +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/InfoSignFill.js +1 -1
- package/components/Icons/InfoSignStroke.js +1 -1
- package/components/Icons/Journal.js +1 -1
- package/components/Icons/List.js +1 -1
- package/components/Icons/Location.js +1 -1
- package/components/Icons/Lock.js +1 -1
- package/components/Icons/Medicine.js +1 -1
- package/components/Icons/Menu.js +1 -1
- package/components/Icons/Minus.js +1 -1
- package/components/Icons/MobilePhone.js +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/NoFilter.js +1 -1
- package/components/Icons/PaperPlane.js +1 -1
- package/components/Icons/Pause.js +1 -1
- package/components/Icons/Pencil.js +1 -1
- package/components/Icons/Play.js +1 -1
- package/components/Icons/PlusLarge.js +1 -1
- package/components/Icons/PlusSmall.js +1 -1
- package/components/Icons/Printer.js +1 -1
- package/components/Icons/QrCode.js +1 -1
- package/components/Icons/Receptionist.js +1 -1
- package/components/Icons/Referral.js +1 -1
- package/components/Icons/Refresh.js +1 -1
- package/components/Icons/Reply.js +1 -1
- package/components/Icons/Save.js +1 -1
- package/components/Icons/Search.js +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/Settings.js +1 -1
- package/components/Icons/Share.js +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/Stopwatch.js +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/TimePassing.js +1 -1
- package/components/Icons/Toolbox.js +1 -1
- package/components/Icons/TrashCan.js +1 -1
- package/components/Icons/Undo.js +1 -1
- package/components/Icons/Upload.js +1 -1
- package/components/Icons/Vaccine.js +1 -1
- package/components/Icons/VerticalDots.js +1 -1
- package/components/Icons/VideoCamera.js +1 -1
- package/components/Icons/VideoChat.js +1 -1
- package/components/Icons/Wallet.js +1 -1
- package/components/Icons/Watch.js +1 -1
- package/components/Icons/X.js +1 -1
- package/components/Icons/Zoom.js +1 -1
- package/components/Icons/index.js +1 -1
- package/components/Input/index.js +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/List/index.js +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Logo/index.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/index.js +1 -1
- package/components/Panel/index.js +1 -1
- package/components/PanelList/index.js +1 -1
- package/components/Portal/index.js +1 -1
- package/components/RadioButton/index.js +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Spacer/index.js +1 -1
- package/components/StatusDot/StatusDot.d.ts +22 -0
- package/components/StatusDot/StatusDot.d.ts.map +1 -0
- package/components/StatusDot/componentdata.json +91 -0
- package/components/StatusDot/index.d.ts +4 -0
- package/components/StatusDot/index.d.ts.map +1 -0
- package/components/StatusDot/index.js +2 -0
- package/components/StatusDot/index.js.map +1 -0
- package/components/StatusDot/styles.module.scss +59 -0
- package/components/StatusDot/styles.module.scss.d.ts +19 -0
- 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-6ea124a5.js → constants-dd6fd92d.js} +2 -2
- package/constants-dd6fd92d.js.map +1 -0
- package/constants.d.ts +1 -0
- package/constants.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/scss/_font-settings.scss +1 -1
- package/Badge-d5aca34c.js +0 -2
- package/Badge-d5aca34c.js.map +0 -1
- package/Button-e3420a9c.js.map +0 -1
- package/Checkbox-36ad53de.js.map +0 -1
- package/Close-a4dd37d1.js +0 -2
- package/Close-a4dd37d1.js.map +0 -1
- package/FormGroup-f6f08b2e.js.map +0 -1
- package/Input-b8528747.js.map +0 -1
- package/Loader-36f298cb.js.map +0 -1
- package/Modal-830c6eaa.js.map +0 -1
- package/Panel-fa7d1fa3.js.map +0 -1
- package/RadioButton-6d28412a.js.map +0 -1
- package/Textarea-bf32d3bd.js.map +0 -1
- package/Title-013bf3d5.js.map +0 -1
- package/Validation-723a227a.js.map +0 -1
- package/constants-6ea124a5.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import s from"react";import o from"./styles.module.scss";import{A as t}from"../../constants-
|
|
1
|
+
import s from"react";import o from"./styles.module.scss";import{A as t}from"../../constants-dd6fd92d.js";import{b as e,P as r}from"../../Panel-6db84e0d.js";import{c as i}from"../../index-9b84fabc.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"../Panel/styles.module.scss";import"../../Title-42d581cc.js";import"../Title/styles.module.scss";import"../../Button-81c39cdc.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Loader-72869219.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-de6c8a84.js";import"../Badge/styles.module.scss";var a=s.forwardRef((function(a,l){var m=a.testId,n=a.children,p=a.variant,c=void 0===p?e.fill:p;return s.createElement("div",{ref:l,"data-testid":m,className:o["panel-list"],"data-analyticsid":t.PanelList},s.Children.map(n,(function(t,a){return n=t,s.isValidElement(n)&&n.type===r?(l=t,m=0===a,s.cloneElement(l,{variant:c,noTopBorder:c===e.line&&!m,className:i(l.props.className,c!==e.line&&o["panel-list__panel"])})):t;var l,m,n})))}));export default a;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-
|
|
1
|
+
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"../../constants-dd6fd92d.js";export default function(n){var a=n.children,o=n.parent,d=n.className,i=n.testId,c=t.useMemo((function(){return document.createElement("div")}),[]);return c.setAttribute("data-analyticsid",r.Portal),i&&c.setAttribute("data-testid",i),t.useEffect((function(){var t=o&&o.appendChild?o:document.body,e=["portal-container"];return d&&d.split(" ").forEach((function(t){return e.push(t)})),e.forEach((function(t){return c.classList.add(t)})),t.appendChild(c),function(){t.removeChild(c)}}),[c,o,d]),e(a,c)}
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{R as o}from"../../RadioButton-
|
|
1
|
+
import{R as o}from"../../RadioButton-0b6fb2c2.js";export{R as RadioButton,R as default}from"../../RadioButton-0b6fb2c2.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-fe7442b7.js";import"./styles.module.scss";import"../../constants-dd6fd92d.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-42d581cc.js";import c from"./styles.module.scss";import{A as u}from"../../constants-dd6fd92d.js";import"../Title/styles.module.scss";var s=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return m(e)?e.touches[0].pageX:e.pageX},d=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},m=function(e){return("touchcancel"===e.type||"touchend"===e.type||"touchenter"===e.type||"touchleave"===e.type||"touchmove"===e.type||"touchstart"===e.type)&&!(0===e.touches.length)},f=function(e,t,n){var r=e-e%t,a=Math.floor(n/t)*t;e>a&&(e>a+(n-a)/2&&(r=n));return Math.round(r)},v=t.forwardRef((function(m,v){var p=m.title,h=m.labelLeft,_=m.labelRight,g=m.disabled,E=void 0!==g&&g,y=m.step,b=void 0===y?1:y,w=m.onChange,k=m.testId,L=n(50),x=e(L,2),N=x[0],A=x[1],D=n(!1),M=e(D,2),R=M[0],j=M[1],T=n(0),B=e(T,2),C=B[0],P=B[1],I=n(0),S=e(I,2),X=S[0],H=S[1],K=n(0),U=e(K,2),q=U[0],z=U[1],F=n(0),G=e(F,2),J=G[0],O=G[1],Q=v||r(null),V=r(null),W=function(e){ne(e)},Y=function(e){te(e)},Z=function(e){ne(e)},$=function(e){te(e)};a((function(){var e=d(Q.current),t=d(V.current);z(function(e,t,n,r,a){return(t-n)/(a-r)*e}(N,e,t,0,100)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Z,$))}),[R]),a((function(){!E&&w&&w(N)}),[N]);var ee=function(e){var t;if(!E){var n=d(Q.current),r=d(V.current),a=l(e);!function(e,t,n,r){var a=t?t.getBoundingClientRect():void 0,o=a?a.left:0;r(o?e-(o+n/2):0)}(a,V.current,r,re),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},te=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(W,Y),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Z,$),s(e))},ne=function(e){if(!E&&R){var t=l(e);re(t-J),s(e)}},re=function(e){if(0!==e){var t=function(e,t,n,r){var a=r+e;return a<0&&(a=0),a>t-n&&(a=t-n),a}(e,C,X,q);z(t),O(t+e),A(function(e,t,n,r,a,o){var i=(t-n)/(o-a),c=Math.round(e/i);return f(c,r,o)}(t,C,X,b,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":k,"data-analyticsid":u.Slider},p&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},p),t.createElement("div",{ref:Q,className:o(c["slider__track-wrapper"],E?c["slider__track-wrapper--disabled"]:""),onMouseDown:ee,onTouchStart:ee,"data-testid":"tracker"},t.createElement("div",{className:o(c.slider__track,E?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:V,className:o(c.slider__trigger,E?c["slider__trigger--disabled"]:""),style:{left:"".concat(q,"px")},onKeyDown:function(e){if(!E){var t=(C-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||re(b*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||re(-b*t)}},role:"slider","aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(p?p+" ":"").concat(h?h+" ":"").concat(_?_+" ":""),tabIndex:E?-1:0},t.createElement("div",{className:o(c["slider__trigger-inner"],E?c["slider__trigger-inner--disabled"]:"")}))),(h||_)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},_)))}));export default v;export{v as Slider};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as
|
|
1
|
+
import{d as s}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as r}from"../../index-9b84fabc.js";import e from"./styles.module.scss";import{A as l}from"../../constants-dd6fd92d.js";var c=a.forwardRef((function(c,p){var t,x=c.size,o=void 0===x?"s":x,m=c.className,d=c.testId,f=r(e.spacer,(s(t={},e["spacer--4xs"],"4xs"===o),s(t,e["spacer--3xs"],"3xs"===o),s(t,e["spacer--2xs"],"2xs"===o),s(t,e["spacer--xs"],"xs"===o),s(t,e["spacer--s"],"s"===o),s(t,e["spacer--m"],"m"===o),s(t,e["spacer--l"],"l"===o),s(t,e["spacer--xl"],"xl"===o),s(t,e["spacer--2xl"],"2xl"===o),s(t,e["spacer--3xl"],"3xl"===o),s(t,e["spacer--4xl"],"4xl"===o),s(t,e["spacer--5xl"],"5xl"===o),s(t,e["spacer--6xl"],"6xl"===o),t),m);return a.createElement("span",{className:f,ref:p,"data-testid":d,"data-analyticsid":l.Spacer})}));export default c;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum StatusDotVariant {
|
|
3
|
+
info = "info",
|
|
4
|
+
warning = "warning",
|
|
5
|
+
alert = "alert",
|
|
6
|
+
cancelled = "cancelled",
|
|
7
|
+
active = "active",
|
|
8
|
+
transparent = "transparent",
|
|
9
|
+
recurring = "recurring",
|
|
10
|
+
group = "group"
|
|
11
|
+
}
|
|
12
|
+
export interface StatusDotProps {
|
|
13
|
+
/** Visual variants for the statusdot */
|
|
14
|
+
variant?: keyof typeof StatusDotVariant;
|
|
15
|
+
/** Text placed to the right of the statusdot */
|
|
16
|
+
text: string;
|
|
17
|
+
/** Adds custom classes to the element. */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Spacer: React.ForwardRefExoticComponent<StatusDotProps & React.RefAttributes<HTMLElement>>;
|
|
21
|
+
export default Spacer;
|
|
22
|
+
//# sourceMappingURL=StatusDot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusDot.d.ts","sourceRoot":"","sources":["../../../src/components/StatusDot/StatusDot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;IACxC,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,oFAuBV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"props": {
|
|
3
|
+
"variant": {
|
|
4
|
+
"defaultValue": null,
|
|
5
|
+
"description": "Visual variants for the statusdot",
|
|
6
|
+
"name": "variant",
|
|
7
|
+
"parent": {
|
|
8
|
+
"fileName": "src/components/StatusDot/StatusDot.tsx",
|
|
9
|
+
"name": "StatusDotProps"
|
|
10
|
+
},
|
|
11
|
+
"declarations": [
|
|
12
|
+
{
|
|
13
|
+
"fileName": "src/components/StatusDot/StatusDot.tsx",
|
|
14
|
+
"name": "StatusDotProps"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"required": false,
|
|
18
|
+
"type": {
|
|
19
|
+
"name": "enum",
|
|
20
|
+
"raw": "\"info\" | \"warning\" | \"alert\" | \"cancelled\" | \"active\" | \"transparent\" | \"recurring\" | \"group\" | undefined",
|
|
21
|
+
"value": [
|
|
22
|
+
{
|
|
23
|
+
"value": "undefined"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"value": "\"info\""
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"value": "\"warning\""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"value": "\"alert\""
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"value": "\"cancelled\""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"value": "\"active\""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "\"transparent\""
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"value": "\"recurring\""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "\"group\""
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"text": {
|
|
53
|
+
"defaultValue": null,
|
|
54
|
+
"description": "Text placed to the right of the statusdot",
|
|
55
|
+
"name": "text",
|
|
56
|
+
"parent": {
|
|
57
|
+
"fileName": "src/components/StatusDot/StatusDot.tsx",
|
|
58
|
+
"name": "StatusDotProps"
|
|
59
|
+
},
|
|
60
|
+
"declarations": [
|
|
61
|
+
{
|
|
62
|
+
"fileName": "src/components/StatusDot/StatusDot.tsx",
|
|
63
|
+
"name": "StatusDotProps"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"required": true,
|
|
67
|
+
"type": {
|
|
68
|
+
"name": "string"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"className": {
|
|
72
|
+
"defaultValue": null,
|
|
73
|
+
"description": "Adds custom classes to the element.",
|
|
74
|
+
"name": "className",
|
|
75
|
+
"parent": {
|
|
76
|
+
"fileName": "src/components/StatusDot/StatusDot.tsx",
|
|
77
|
+
"name": "StatusDotProps"
|
|
78
|
+
},
|
|
79
|
+
"declarations": [
|
|
80
|
+
{
|
|
81
|
+
"fileName": "src/components/StatusDot/StatusDot.tsx",
|
|
82
|
+
"name": "StatusDotProps"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"required": false,
|
|
86
|
+
"type": {
|
|
87
|
+
"name": "string"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatusDot/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as t}from"../../_rollupPluginBabelHelpers-4f206abf.js";import a from"react";import{c as r}from"../../index-9b84fabc.js";import e from"./styles.module.scss";import{I as o,A as s}from"../../constants-dd6fd92d.js";import{Icon as n}from"../Icons/Icon.js";import c from"../Icons/Undo.js";import l from"../Icons/Group.js";import"../../_tslib-51c8a283.js";var i;!function(t){t.info="info",t.warning="warning",t.alert="alert",t.cancelled="cancelled",t.active="active",t.transparent="transparent",t.recurring="recurring",t.group="group"}(i||(i={}));var m=a.forwardRef((function(m,d){var u=m.variant,p=void 0===u?i.info:u,f=m.text,g=m.className,_=p===i.recurring||p===i.group,v=p===i.cancelled,b=r(e.statusdot,t({},e["statusdot--cancelled"],v),g),j=r(e.statusdot__dot,[_?e["statusdot__dot--icon"]:e["statusdot__dot--".concat(p)]]),I=r(e.statusdot__label,t({},e["statusdot__label--icon"],_),g),E=null;return"recurring"===p?E=a.createElement(n,{size:o.XXSmall,svgIcon:c}):"group"===p&&(E=a.createElement(n,{size:o.XXSmall,svgIcon:l})),a.createElement("div",{className:b,"data-analyticsid":s.StatusDot},a.createElement("span",{className:j},E),a.createElement("span",{className:I},f))}));export default m;export{i as StatusDotVariant};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@import '../../scss/palette';
|
|
2
|
+
@import '../../scss/spacers.scss';
|
|
3
|
+
@import '../../scss/font-settings';
|
|
4
|
+
|
|
5
|
+
.statusdot {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
font-size: $font-size-sm;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
line-height: $lineheight-size-sm;
|
|
12
|
+
|
|
13
|
+
&--cancelled {
|
|
14
|
+
color: $cherry600;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&__dot {
|
|
18
|
+
top: getSpacer(3xs);
|
|
19
|
+
margin-right: getSpacer(2xs);
|
|
20
|
+
border-radius: 10rem;
|
|
21
|
+
|
|
22
|
+
&:not(#{&}--icon) {
|
|
23
|
+
width: 0.937rem;
|
|
24
|
+
height: 0.937rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--info {
|
|
28
|
+
background: $kiwi900;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--warning {
|
|
32
|
+
background: $banana400;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--alert,
|
|
36
|
+
&--cancelled {
|
|
37
|
+
background: $cherry500;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&--active {
|
|
41
|
+
background: $blueberry500;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--transparent {
|
|
45
|
+
border: 1px solid $neutral500;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&--icon {
|
|
49
|
+
position: absolute;
|
|
50
|
+
margin: getSpacer(4xs) * -1 0 0 getSpacer(3xs) * -1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__label {
|
|
55
|
+
&--icon {
|
|
56
|
+
margin-left: getSpacer(m);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
statusdot: string;
|
|
3
|
+
statusdot__dot: string;
|
|
4
|
+
'statusdot__dot--active': string;
|
|
5
|
+
'statusdot__dot--alert': string;
|
|
6
|
+
'statusdot__dot--cancelled': string;
|
|
7
|
+
'statusdot__dot--icon': string;
|
|
8
|
+
'statusdot__dot--info': string;
|
|
9
|
+
'statusdot__dot--transparent': string;
|
|
10
|
+
'statusdot__dot--warning': string;
|
|
11
|
+
'statusdot__label--icon': string;
|
|
12
|
+
'statusdot--cancelled': string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type ClassNames = keyof Styles;
|
|
16
|
+
|
|
17
|
+
declare const styles: Styles;
|
|
18
|
+
|
|
19
|
+
export default styles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as s}from"../../Textarea-
|
|
1
|
+
import{T as s}from"../../Textarea-d228fc34.js";export{T as default}from"../../Textarea-d228fc34.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../../_tslib-51c8a283.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-dd6fd92d.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 l}from"react";import{c as a}from"../../index-9b84fabc.js";import{A as o,I as n}from"../../constants-dd6fd92d.js";import s from"./styles.module.scss";var c=r.forwardRef((function(e,i){var l,o=e.children,n=e.className,c=e.htmlMarkup,d=void 0===c?"span":c,m=e.highlighted,f=e.compact,p=a(s.tile__title,(t(l={},s["tile__title--highlighted"],m),t(l,s["tile__title--compact"],f),l),n),u=d;return r.createElement(u,{className:p,ref:i},o)})),d=r.forwardRef((function(c,d){var m,f=c.icon,p=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,v=void 0!==_&&_,b=c.highlighted,E=void 0!==b&&b,N=c.testId,x=i(c,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),M=w[0],k=w[1],I=!g,y=a(s.tile,(t(m={},s["tile--fixed"],v),t(m,s["tile--compact"],I),t(m,s["tile--highlighted"],E),m),h),B=a(s["title-wrapper"],t({},s["title-wrapper--compact"],I));return r.createElement("a",Object.assign({ref:d,className:y,onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)},onFocus:function(){return k(!0)},onBlur:function(){return k(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},x),r.createElement("div",{className:B},r.cloneElement(f,{size:n.Medium,isHovered:M,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:I})),g?r.createElement("p",{className:s.tile__description},g):null)}));d.Title=c;export default d;export{d as Tile};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as s}from"../../Title-
|
|
1
|
+
import{T as s}from"../../Title-42d581cc.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-42d581cc.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";import"../../constants-dd6fd92d.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-38e94036.js";export{V as Validation,V as default}from"../../Validation-38e94036.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-59af8a47.js";import"../../_rollupPluginBabelHelpers-4f206abf.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-77c5eb81.js";import"../../uuid-fe7442b7.js";import"../Icons/Check.js";import"../Icons/Icon.js";import"../../_tslib-51c8a283.js";import"../../constants-dd6fd92d.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-0b6fb2c2.js";import"../RadioButton/styles.module.scss";import"../../Input-bb2921c2.js";import"../../useBreakpoint-6eb418f7.js";import"../Input/styles.module.scss";import"../../Title-42d581cc.js";import"../Title/styles.module.scss";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var a,n,e,
|
|
2
|
-
//# sourceMappingURL=constants-
|
|
1
|
+
var a,n,o,e,i;!function(a){a[a.XXSmall=24]="XXSmall",a[a.XSmall=38]="XSmall",a[a.Small=48]="Small",a[a.Medium=64]="Medium",a[a.Large=80]="Large",a[a.XLarge=130]="XLarge"}(a||(a={})),function(a){a[a.Modal=13e5]="Modal",a[a.ExpanderTrigger=1e4]="ExpanderTrigger"}(n||(n={})),function(a){a.onwhite="onwhite",a.ongrey="ongrey",a.onblueberry="onblueberry",a.ondark="ondark",a.oninvalid="oninvalid"}(o||(o={})),function(a){a.normal="normal",a.bigform="bigform"}(e||(e={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Expander="expander",a.ExpanderList="expander-list",a.ExpanderListExpander="expander-list-expander",a.FormGroup="form-group",a.HighlightBox="highlight-box",a.Icon="icon",a.Input="input",a.Link="link",a.LinkList="link-list",a.List="list",a.Loader="loader",a.Logo="logo",a.Modal="modal",a.NotificationPanel="notification-panel",a.Panel="panel",a.PanelList="panel-list",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.StatusDot="status-dot",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(i||(i={}));export{i as A,o as F,a as I,n as Z,e as a};
|
|
2
|
+
//# sourceMappingURL=constants-dd6fd92d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-dd6fd92d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/constants.d.ts
CHANGED
package/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@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ACrB,YAAY,kBAAkB;IAC9B,oBAAoB,2BAA2B;IAC/C,SAAS,eAAe;IACxB,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,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,UAAU,eAAe;CAC1B"}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-6eb418f7.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";import{u as e}from"./useWindowSize-5cc481da.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as s}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r}from"react";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,Z as ZIndex}from"./constants-
|
|
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-dd6fd92d.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
package/scss/_font-settings.scss
CHANGED
|
@@ -2,7 +2,7 @@ $font-size-xs: 1rem; // 16px
|
|
|
2
2
|
$font-size-sm: 1.125rem; // 18px
|
|
3
3
|
$font-size-md: 1.25rem; // 20px
|
|
4
4
|
$font-size-lg: 1.5rem; // 24px
|
|
5
|
-
$lineheight-size-xs: 1.5rem; //
|
|
5
|
+
$lineheight-size-xs: 1.5rem; // 24px
|
|
6
6
|
$lineheight-size-sm: 1.75rem; // 28px
|
|
7
7
|
$lineheight-size-md: 1.875rem; // 30px
|
|
8
8
|
$lineheight-size-lg: 2rem; // 32px
|
package/Badge-d5aca34c.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-6ea124a5.js";var s=e.forwardRef((function(s,o){var b,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(b={},t["badge--oversized"],f),a(b,t["badge--black"],"black"===m),a(b,t["badge--white"],"white"===m),a(b,t["badge--blueberry"],"blueberry"===m),a(b,t["badge--banana"],"banana"===m),a(b,t["badge--cherry"],"cherry"===m),a(b,t["badge--kiwi"],"kiwi"===m),a(b,t["badge--neutral"],"neutral"===m),a(b,t["badge--plum"],"plum"===m),b),n);return e.createElement("span",{className:p,ref:o,"data-testid":g,"data-analyticsid":d.Badge},l)}));export{s as B};
|
|
2
|
-
//# sourceMappingURL=Badge-d5aca34c.js.map
|
package/Badge-d5aca34c.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Badge-d5aca34c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Button-e3420a9c.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-e3420a9c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Checkbox-36ad53de.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox-36ad53de.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Close-a4dd37d1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import o from"react";import{p as t}from"./palette-f206f488.js";import{Icon as e}from"./components/Icons/Icon.js";import{A as s}from"./constants-6ea124a5.js";import a from"./components/Icons/X.js";import r from"./components/Close/styles.module.scss";import{u as n,B as m}from"./useBreakpoint-6eb418f7.js";var c=function(c){var l=n()===m.xs?38:48;return o.createElement("button",{"data-testid":c.testId,"data-analyticsid":s.Close,className:r.close,"aria-label":c.ariaLabel||"Lukk",onClick:c.onClick,role:"button"},o.createElement(e,{svgIcon:a,color:t.blueberry600,size:l}))};export{c as C};
|
|
2
|
-
//# sourceMappingURL=Close-a4dd37d1.js.map
|
package/Close-a4dd37d1.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Close-a4dd37d1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup-f6f08b2e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Input-b8528747.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input-b8528747.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Loader-36f298cb.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-36f298cb.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Modal-830c6eaa.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal-830c6eaa.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Panel-fa7d1fa3.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Panel-fa7d1fa3.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton-6d28412a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Textarea-bf32d3bd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea-bf32d3bd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Title-013bf3d5.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Title-013bf3d5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validation-723a227a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-6ea124a5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|