@helsenorge/designsystem-react 1.0.0-beta85 → 1.0.0-beta89
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-e607ff43.js +2 -0
- package/AlertSignFill-e607ff43.js.map +1 -0
- package/{Button-3f327b66.js → Button-48132cc3.js} +2 -2
- package/Button-48132cc3.js.map +1 -0
- package/Close-591125bb.js +2 -0
- package/Close-591125bb.js.map +1 -0
- package/{FormGroup-b874ae21.js → FormGroup-56d60079.js} +2 -2
- package/FormGroup-56d60079.js.map +1 -0
- package/Loader-6ff0d481.js +2 -0
- package/Loader-6ff0d481.js.map +1 -0
- package/Modal-47bc1814.js +2 -0
- package/Modal-47bc1814.js.map +1 -0
- package/Title-72851d51.js +2 -0
- package/Title-72851d51.js.map +1 -0
- package/{Validation-b902407e.js → Validation-372a97b9.js} +2 -2
- package/Validation-372a97b9.js.map +1 -0
- package/components/AnchorLink/AnchorLink.d.ts +2 -0
- package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
- package/components/AnchorLink/componentdata.json +19 -0
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/Avatar.d.ts +2 -0
- package/components/Avatar/Avatar.d.ts.map +1 -1
- package/components/Avatar/componentdata.json +19 -0
- package/components/Avatar/index.js +1 -1
- package/components/Badge/Badge.d.ts +2 -0
- package/components/Badge/Badge.d.ts.map +1 -1
- package/components/Badge/componentdata.json +19 -0
- package/components/Badge/index.js +1 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/ButtonWithModal.d.ts +2 -0
- package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
- package/components/ButtonWithModal/componentdata.json +28 -9
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Close/Close.d.ts +12 -0
- package/components/Close/Close.d.ts.map +1 -0
- package/components/Close/componentdata.json +61 -0
- package/components/Close/index.d.ts +3 -0
- package/components/Close/index.d.ts.map +1 -0
- package/components/Close/index.js +2 -0
- package/components/Close/index.js.map +1 -0
- package/components/Close/styles.module.scss +32 -0
- package/components/Close/styles.module.scss.d.ts +9 -0
- package/components/ExpanderList/ExpanderList.d.ts +2 -0
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/componentdata.json +19 -0
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/LinkList/LinkList.d.ts +6 -0
- package/components/LinkList/LinkList.d.ts.map +1 -1
- package/components/LinkList/componentdata.json +19 -0
- package/components/LinkList/index.js +1 -1
- package/components/List/List.d.ts +2 -0
- package/components/List/List.d.ts.map +1 -1
- package/components/List/componentdata.json +19 -0
- package/components/List/index.js +1 -1
- package/components/Loader/index.js +1 -1
- package/components/Logo/Logo.d.ts +2 -0
- package/components/Logo/Logo.d.ts.map +1 -1
- package/components/Logo/componentdata.json +19 -0
- package/components/Logo/index.js +1 -1
- package/components/Modal/Modal.d.ts +4 -2
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/componentdata.json +20 -1
- package/components/Modal/index.js +1 -1
- package/components/Modal/styles.module.scss +0 -21
- package/components/Modal/styles.module.scss.d.ts +0 -1
- package/components/NotificationPanel/NotificationPanel.d.ts +2 -0
- package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
- package/components/NotificationPanel/componentdata.json +19 -0
- package/components/NotificationPanel/index.js +1 -1
- package/components/NotificationPanel/styles.module.scss +0 -51
- package/components/NotificationPanel/styles.module.scss.d.ts +0 -2
- package/components/Slider/Slider.d.ts +2 -0
- package/components/Slider/Slider.d.ts.map +1 -1
- package/components/Slider/componentdata.json +19 -0
- package/components/Slider/index.js +1 -1
- package/components/Spacer/Spacer.d.ts +2 -0
- package/components/Spacer/Spacer.d.ts.map +1 -1
- package/components/Spacer/componentdata.json +19 -0
- package/components/Spacer/index.js +1 -1
- package/components/Tile/Tile.d.ts +2 -0
- package/components/Tile/Tile.d.ts.map +1 -1
- package/components/Tile/componentdata.json +19 -0
- package/components/Tile/index.js +1 -1
- package/components/Title/Title.d.ts +2 -0
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/index.js +1 -1
- package/components/Validation/index.js +1 -1
- package/hooks/useFocusTrap.d.ts.map +1 -1
- package/package.json +1 -1
- package/AlertSignFill-64bfef57.js +0 -2
- package/AlertSignFill-64bfef57.js.map +0 -1
- package/Button-3f327b66.js.map +0 -1
- package/FormGroup-b874ae21.js.map +0 -1
- package/Loader-cf365332.js +0 -2
- package/Loader-cf365332.js.map +0 -1
- package/Modal-0dd5ce43.js +0 -2
- package/Modal-0dd5ce43.js.map +0 -1
- package/Title-7c829525.js +0 -2
- package/Title-7c829525.js.map +0 -1
- package/Validation-b902407e.js.map +0 -1
|
@@ -135,55 +135,4 @@
|
|
|
135
135
|
&__action-column {
|
|
136
136
|
grid-area: 'action';
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
&__close-button {
|
|
140
|
-
display: flex;
|
|
141
|
-
position: relative;
|
|
142
|
-
background: transparent;
|
|
143
|
-
border: 2px solid $blueberry600;
|
|
144
|
-
padding: 0;
|
|
145
|
-
justify-content: center;
|
|
146
|
-
outline: none;
|
|
147
|
-
cursor: pointer;
|
|
148
|
-
&:before {
|
|
149
|
-
content: ' ';
|
|
150
|
-
position: absolute;
|
|
151
|
-
top: -getSpacer(2xs);
|
|
152
|
-
left: -getSpacer(2xs);
|
|
153
|
-
right: -getSpacer(2xs);
|
|
154
|
-
bottom: -getSpacer(2xs);
|
|
155
|
-
border: 2px solid transparent;
|
|
156
|
-
}
|
|
157
|
-
&:after {
|
|
158
|
-
content: ' ';
|
|
159
|
-
position: absolute;
|
|
160
|
-
top: -0.375rem;
|
|
161
|
-
left: -0.375rem;
|
|
162
|
-
right: -0.375rem;
|
|
163
|
-
bottom: -0.375rem;
|
|
164
|
-
border: 2px solid transparent;
|
|
165
|
-
}
|
|
166
|
-
&:hover,
|
|
167
|
-
&:active,
|
|
168
|
-
&:focus {
|
|
169
|
-
background-color: rgba(8, 102, 124, 0.05);
|
|
170
|
-
border-color: transparent;
|
|
171
|
-
&:after {
|
|
172
|
-
border-color: $blueberry700;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&--crisis {
|
|
177
|
-
border-color: $white;
|
|
178
|
-
|
|
179
|
-
&:hover,
|
|
180
|
-
&:active,
|
|
181
|
-
&:focus {
|
|
182
|
-
border-color: transparent;
|
|
183
|
-
&:after {
|
|
184
|
-
border-color: $white;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
138
|
}
|
|
@@ -3,8 +3,6 @@ export type Styles = {
|
|
|
3
3
|
anchorlink__icon: string;
|
|
4
4
|
'notification-panel': string;
|
|
5
5
|
'notification-panel__action-column': string;
|
|
6
|
-
'notification-panel__close-button': string;
|
|
7
|
-
'notification-panel__close-button--crisis': string;
|
|
8
6
|
'notification-panel__content': string;
|
|
9
7
|
'notification-panel__content--crisis': string;
|
|
10
8
|
'notification-panel__content--haslabel': string;
|
|
@@ -12,6 +12,8 @@ interface SliderProps {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
/** Function to be called when the value state has changed. */
|
|
14
14
|
onChange?: (value: number) => void;
|
|
15
|
+
/** Sets the data-testid attribute. */
|
|
16
|
+
testId?: string;
|
|
15
17
|
}
|
|
16
18
|
export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLElement>>;
|
|
17
19
|
export default Slider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAqB3D,UAAU,WAAW;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAqB3D,UAAU,WAAW;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,iFA+IjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -113,6 +113,25 @@
|
|
|
113
113
|
"type": {
|
|
114
114
|
"name": "((value: number) => void)"
|
|
115
115
|
}
|
|
116
|
+
},
|
|
117
|
+
"testId": {
|
|
118
|
+
"defaultValue": null,
|
|
119
|
+
"description": "Sets the data-testid attribute.",
|
|
120
|
+
"name": "testId",
|
|
121
|
+
"parent": {
|
|
122
|
+
"fileName": "src/components/Slider/Slider.tsx",
|
|
123
|
+
"name": "SliderProps"
|
|
124
|
+
},
|
|
125
|
+
"declarations": [
|
|
126
|
+
{
|
|
127
|
+
"fileName": "src/components/Slider/Slider.tsx",
|
|
128
|
+
"name": "SliderProps"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"required": false,
|
|
132
|
+
"type": {
|
|
133
|
+
"name": "string"
|
|
134
|
+
}
|
|
116
135
|
}
|
|
117
136
|
}
|
|
118
137
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import t,{useState as n,useRef as r,useEffect as o}from"react";import{c as a}from"../../index-9b84fabc.js";import{T as i}from"../../Title-
|
|
1
|
+
import{_ as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import t,{useState as n,useRef as r,useEffect as o}from"react";import{c as a}from"../../index-9b84fabc.js";import{T as i}from"../../Title-72851d51.js";import c from"./styles.module.scss";import"../Title/styles.module.scss";var u=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return d(e)?e.touches[0].pageX:e.pageX},s=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},d=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)},m=function(e,t,n){var r=e-e%t,o=Math.floor(n/t)*t;e>o&&(e>o+(n-o)/2&&(r=n));return Math.round(r)},f=t.forwardRef((function(d,f){var v=d.title,p=d.labelLeft,h=d.labelRight,_=d.disabled,g=void 0!==_&&_,E=d.step,y=void 0===E?1:E,b=d.onChange,w=d.testId,k=n(50),L=e(k,2),N=L[0],x=L[1],D=n(!1),M=e(D,2),R=M[0],A=M[1],T=n(0),j=e(T,2),B=j[0],C=j[1],P=n(0),I=e(P,2),X=I[0],H=I[1],K=n(0),S=e(K,2),U=S[0],q=S[1],z=n(0),F=e(z,2),G=F[0],J=F[1],O=f||r(null),Q=r(null),V=function(e){te(e)},W=function(e){ee(e)},Y=function(e){te(e)},Z=function(e){ee(e)};o((function(){var e=s(O.current),t=s(Q.current);q(function(e,t,n,r,o){return(t-n)/(o-r)*e}(N,e,t,0,100)),C(e),H(t)}),[]),o((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(V,W),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Y,Z))}),[R]),o((function(){!g&&b&&b(N)}),[N]);var $=function(e){var t;if(!g){var n=s(O.current),r=s(Q.current),o=l(e);!function(e,t,n,r){var o=t?t.getBoundingClientRect():void 0,a=o?o.left:0;r(a?e-(a+n/2):0)}(o,Q.current,r,ne),A(!0),J(o),C(n),H(r),null===(t=Q.current)||void 0===t||t.focus(),u(e)}},ee=function(e){g||(A(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(V,W),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Y,Z),u(e))},te=function(e){if(!g&&R){var t=l(e);ne(t-G),u(e)}},ne=function(e){if(0!==e){var t=function(e,t,n,r){var o=r+e;return o<0&&(o=0),o>t-n&&(o=t-n),o}(e,B,X,U);q(t),J(t+e),x(function(e,t,n,r,o,a){var i=(t-n)/(a-o),c=Math.round(e/i);return m(c,r,a)}(t,B,X,y,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":w},v&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},v),t.createElement("div",{ref:O,className:a(c["slider__track-wrapper"],g?c["slider__track-wrapper--disabled"]:""),onMouseDown:$,onTouchStart:$,"data-testid":"tracker"},t.createElement("div",{className:a(c.slider__track,g?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:Q,className:a(c.slider__trigger,g?c["slider__trigger--disabled"]:""),style:{left:"".concat(U,"px")},onKeyDown:function(e){if(!g){var t=(B-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||ne(y*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||ne(-y*t)}},role:"slider","aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(v?v+" ":"").concat(p?p+" ":"").concat(h?h+" ":""),tabIndex:g?-1:0},t.createElement("div",{className:a(c["slider__trigger-inner"],g?c["slider__trigger-inner--disabled"]:"")}))),(p||h)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},p),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h)))}));export default f;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,6 +5,8 @@ interface SpacerProps {
|
|
|
5
5
|
size?: SpacerSizes;
|
|
6
6
|
/** Adds custom classes to the element. */
|
|
7
7
|
className?: string;
|
|
8
|
+
/** Sets the data-testid attribute. */
|
|
9
|
+
testId?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const Spacer: React.ForwardRefExoticComponent<SpacerProps & React.RefAttributes<HTMLElement>>;
|
|
10
12
|
export default Spacer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../../src/components/Spacer/Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,UAAU,WAAW;IACnB,mCAAmC;IACnC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Spacer.d.ts","sourceRoot":"","sources":["../../../src/components/Spacer/Spacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,UAAU,WAAW;IACnB,mCAAmC;IACnC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,MAAM,iFAqBV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -79,6 +79,25 @@
|
|
|
79
79
|
"type": {
|
|
80
80
|
"name": "string"
|
|
81
81
|
}
|
|
82
|
+
},
|
|
83
|
+
"testId": {
|
|
84
|
+
"defaultValue": null,
|
|
85
|
+
"description": "Sets the data-testid attribute.",
|
|
86
|
+
"name": "testId",
|
|
87
|
+
"parent": {
|
|
88
|
+
"fileName": "src/components/Spacer/Spacer.tsx",
|
|
89
|
+
"name": "SpacerProps"
|
|
90
|
+
},
|
|
91
|
+
"declarations": [
|
|
92
|
+
{
|
|
93
|
+
"fileName": "src/components/Spacer/Spacer.tsx",
|
|
94
|
+
"name": "SpacerProps"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"required": false,
|
|
98
|
+
"type": {
|
|
99
|
+
"name": "string"
|
|
100
|
+
}
|
|
82
101
|
}
|
|
83
102
|
}
|
|
84
103
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"../../_rollupPluginBabelHelpers-d0752906.js";import
|
|
1
|
+
import{a as s}from"../../_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as r}from"../../index-9b84fabc.js";import a from"./styles.module.scss";var l=e.forwardRef((function(l,c){var p,x=l.size,t=void 0===x?"s":x,m=l.className,o=l.testId,f=r(a.spacer,(s(p={},a["spacer--2xs"],"2xs"===t),s(p,a["spacer--xs"],"xs"===t),s(p,a["spacer--s"],"s"===t),s(p,a["spacer--m"],"m"===t),s(p,a["spacer--l"],"l"===t),s(p,a["spacer--xl"],"xl"===t),s(p,a["spacer--2xl"],"2xl"===t),s(p,a["spacer--3xl"],"3xl"===t),s(p,a["spacer--4xl"],"4xl"===t),s(p,a["spacer--5xl"],"5xl"===t),s(p,a["spacer--6xl"],"6xl"===t),p),m);return e.createElement("span",{className:f,ref:c,"data-testid":o})}));export default l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -16,6 +16,8 @@ interface TileProps extends HTMLAnchorProps {
|
|
|
16
16
|
fixed?: boolean;
|
|
17
17
|
/** Called when the tile is clicked on. */
|
|
18
18
|
onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
19
|
+
/** Sets the data-testid attribute. */
|
|
20
|
+
testId?: string;
|
|
19
21
|
}
|
|
20
22
|
interface TileTitleProps {
|
|
21
23
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,UAAU,SAAU,SAAQ,eAAe;IACzC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,sDAAsD;IACtD,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,UAAU,SAAU,SAAQ,eAAe;IACzC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,sDAAsD;IACtD,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvH,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAClG;AAqBD,eAAO,MAAM,IAAI,cAoCC,CAAC;AAInB,eAAe,IAAI,CAAC"}
|
|
@@ -133,6 +133,25 @@
|
|
|
133
133
|
"name": "((e?: MouseEvent<HTMLElement, MouseEvent>) => void) | undefined"
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
|
+
"testId": {
|
|
137
|
+
"defaultValue": null,
|
|
138
|
+
"description": "Sets the data-testid attribute.",
|
|
139
|
+
"name": "testId",
|
|
140
|
+
"parent": {
|
|
141
|
+
"fileName": "src/components/Tile/Tile.tsx",
|
|
142
|
+
"name": "TileProps"
|
|
143
|
+
},
|
|
144
|
+
"declarations": [
|
|
145
|
+
{
|
|
146
|
+
"fileName": "src/components/Tile/Tile.tsx",
|
|
147
|
+
"name": "TileProps"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"required": false,
|
|
151
|
+
"type": {
|
|
152
|
+
"name": "string"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
136
155
|
"download": {
|
|
137
156
|
"defaultValue": null,
|
|
138
157
|
"description": "",
|
package/components/Tile/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as
|
|
1
|
+
import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-d0752906.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}from"../../constants-d919236e.js";import n from"./styles.module.scss";var s=r.forwardRef((function(e,i){var l,o=e.children,s=e.className,c=e.htmlMarkup,m=void 0===c?"span":c,d=e.highlighted,p=e.compact,f=a(n.tile__title,(t(l={},n["tile__title--highlighted"],d),t(l,n["tile__title--compact"],p),l),s),u=m;return r.createElement(u,{className:f,ref:i},o)})),c=r.forwardRef((function(s,c){var m,d=s.icon,p=s.title,f=s.className,u=void 0===f?"":f,h=s.description,g=s.fixed,_=void 0!==g&&g,v=s.highlighted,b=void 0!==v&&v,E=s.testId,N=i(s,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),x=w[0],M=w[1],k=!h,B=a(n.tile,(t(m={},n["tile--fixed"],_),t(m,n["tile--compact"],k),t(m,n["tile--highlighted"],b),m),u),H=a(n["title-wrapper"],t({},n["title-wrapper--compact"],k));return r.createElement("a",Object.assign({ref:c,className:B,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},onFocus:function(){return M(!0)},onBlur:function(){return M(!1)},"data-testid":E,rel:"_blank"===s.target?"noopener noreferrer":s.rel},N),r.createElement("div",{className:H},r.cloneElement(d,{size:o.Medium,isHovered:x,color:b?"white":"black"}),r.cloneElement(p,{highlighted:b,compact:k})),h?r.createElement("p",{className:n.tile__description},h):null)}));c.Title=s;export default c;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,wCAEjC,CAAC;AAEF,QAAA,MAAM,KAAK,uFAyBT,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as s}from"../../Title-
|
|
1
|
+
import{T as s}from"../../Title-72851d51.js";export{T as default}from"../../Title-72851d51.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{V as s}from"../../Validation-
|
|
1
|
+
import{V as s}from"../../Validation-372a97b9.js";export{V as default}from"../../Validation-372a97b9.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-56d60079.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-46666e69.js";import"../../uuid-8870ab4b.js";import"../../Check-6291ad09.js";import"../../constants-d919236e.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../Checkbox/styles.module.scss";import"../../Title-72851d51.js";import"../Title/styles.module.scss";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CA2DpF"}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import e from"react";var a=function(a){var t=a.isExtraSmall,l=a.isHovered,m=e.createElement("path",{d:"M25.403 24l10.259-10.259-1.403-1.403L24 22.597l-10.259-10.26-1.403 1.403L22.597 24 12.338 34.26l1.403 1.403L24 25.403l10.259 10.259 1.403-1.403z"}),r=e.createElement("path",{d:"M24 22.597L12.327 10.924l-1.403 1.402L22.597 24 10.923 35.674l1.403 1.402L24 25.403l11.674 11.673 1.403-1.402L25.403 24l11.673-11.674-1.403-1.402z"}),z=e.createElement("path",{d:"M25.773 24l10.432-10.432-1.772-1.773-10.432 10.433-10.433-10.433-1.773 1.772L22.229 24 11.795 34.433l1.773 1.772 10.433-10.433 10.432 10.433 1.772-1.773z"});return t?l?e.createElement("path",{d:"M24 22.227L11.781 10.008l-1.772 1.772 12.219 12.219-12.22 12.22 1.772 1.772L24 25.771l12.22 12.22 1.772-1.772-12.22-12.22L37.991 11.78l-1.772-1.772z"}):z:l?r:m},t=function(a){var t=a.isExtraSmall,l=a.isHovered,m=e.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 21.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),r=e.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 19.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),z=e.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 20.988c.492 0 .892-.399.892-.89v-7.213a.891.891 0 00-1.783 0v7.212c0 .492.4.891.891.891z"});return t?l?e.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 18.462c.492 0 .892-.399.892-.891V18.85a.891.891 0 00-1.783 0v7.213c0 .492.4.891.891.891z"}):z:l?r:m},l=function(a){var t=a.isExtraSmall,l=a.isHovered,m=e.createElement("path",{d:"M24.898 21.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 11.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),r=e.createElement("path",{d:"M24.898 19.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 13.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),z=e.createElement("path",{d:"M24.896 21.452v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 11.577a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"});return t?l?e.createElement("path",{d:"M24.896 18.926v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 14.103a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"}):z:l?r:m};export{l as A,a as X,t as a};
|
|
2
|
-
//# sourceMappingURL=AlertSignFill-64bfef57.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertSignFill-64bfef57.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Button-3f327b66.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button-3f327b66.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup-b874ae21.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Loader-cf365332.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import a from"react";import{c as r}from"./index-9b84fabc.js";import{u as l}from"./uuid-8870ab4b.js";import o from"./components/Loader/styles.module.scss";var d=a.forwardRef((function(d,t){var s,m,i,c=d.overlay,n=d.color,_=void 0===n?c?"black":"neutral":n,p=d.size,u=void 0===p?"small":p,b=d.className,v=void 0===b?"":b,f=d.testId,w=void 0===f?"":f,N=d.center,y=d.ariaLabelledById,E=d.ariaLabel,g=void 0===E?"Laster inn":E,h="small"===u,k="medium"===u,L="large"===u,j=r(o["loader-wrapper"],(e(s={},o["loader-wrapper--center"],N),e(s,o["loader-wrapper--overlay"],c),s)),x=r(o.loader,(e(m={},o["loader--small"],h),e(m,o["loader--medium"],k),e(m,o["loader--large"],L),m),v),B=r(o.loader__dot,(e(i={},o["loader__dot--small"],h),e(i,o["loader__dot--medium"],k),e(i,o["loader__dot--large"],L),e(i,o["loader__dot--banana"],"banana"===_),e(i,o["loader__dot--cherry"],"cherry"===_),e(i,o["loader__dot--kiwi"],"kiwi"===_),e(i,o["loader__dot--neutral"],"neutral"===_),e(i,o["loader__dot--plum"],"plum"===_),e(i,o["loader__dot--black"],"black"===_),e(i,o["loader__dot--white"],"white"===_),i)),I="loader".concat(l());return a.createElement("div",{role:"progressbar",className:j},a.createElement("div",{"data-testid":w,"aria-labelledby":y||I,className:x},a.createElement("div",{className:B}),a.createElement("div",{className:B}),a.createElement("div",{className:B}),a.createElement("div",{className:B}),!y&&a.createElement("span",{id:I,className:o["loader__hidden-text"]},g)))}));export{d as L};
|
|
2
|
-
//# sourceMappingURL=Loader-cf365332.js.map
|
package/Loader-cf365332.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader-cf365332.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Modal-0dd5ce43.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./_rollupPluginBabelHelpers-d0752906.js";import r,{useRef as a,useEffect as n,useState as o}from"react";import{c as l}from"./index-9b84fabc.js";import{p as c}from"./palette-f206f488.js";import{B as i}from"./Button-3f327b66.js";import{I as s}from"./constants-d919236e.js";import{X as d,A as m,a as u}from"./AlertSignFill-64bfef57.js";import v from"./components/Modal/styles.module.scss";import{T as p}from"./Title-7c829525.js";import{u as f}from"./uuid-8870ab4b.js";function _(){var e,t=a(null);function r(e){var r=t.current,a="Tab"===e.key;if(r&&a){var n=function(e){try{return("string"==typeof e?document.querySelector(e):e).getRootNode().activeElement}catch(t){return console.error("Feil ved å ta tak i active element basert på angitt node: ",e,t),null}}(r),o=r.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select'),l=o[0],c=1===o.length?l:o[o.length-1];e.shiftKey?n===l&&(c.focus(),e.preventDefault()):n===c&&(l.focus(),e.preventDefault())}}function o(e){var r=t.current;if(r){var a=r.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===a.length&&(a[0].focus(),e.preventDefault())}}return null===(e=t.current)||void 0===e||e.focus(),n((function(){var e=t.current;return e.addEventListener("keydown",r),e.addEventListener("click",o),function(){e.removeEventListener("keydown",r),e.removeEventListener("click",o)}}),[]),t}var y,E,b=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=o(!1),l=e(a,2),c=l[0],i=l[1];return n((function(){var e=new IntersectionObserver((function(e){i(e[0].intersectionRatio>=r)}),{threshold:r});return(null==t?void 0:t.current)&&e.observe(t.current),function(){(null==t?void 0:t.current)&&e.unobserve(t.current)}}),[t]),c};!function(e){e.normal="normal",e.warning="warning",e.error="error",e.image="image"}(y||(y={})),function(e){e.large="large",e.medium="medium"}(E||(E={}));var g={variant:y.normal,primaryButtonText:"OK",large:!1,className:"",size:E.large},h=function(e){return r.createElement("button",{className:v.modal__lukkekryss,"aria-label":e.ariaLabel||"Lukk",onClick:e.onClick,role:"button"},r.createElement(s,{svgIcon:d,color:c.blueberry600,size:42}))},k=function(a){var o,d,E,g,k=r.useState(f()),N=e(k,1)[0],w=r.useRef(null),L=r.useRef(null),x=b(w),B=r.useRef(null),C=b(B),W=L.current&&L.current.scrollHeight>L.current.clientHeight;function T(e){"Escape"===e.key&&a.onClose&&(e.stopPropagation(),a.onClose())}function j(e){e.target&&R.current===e.target&&a.onClose&&(e.stopPropagation(),a.onClose())}var S=a.variant===y.image||"img"===(null===(o=a.children)||void 0===o?void 0:o.type),I=null!==(d=a.titleId)&&void 0!==d?d:N,R=r.useRef(null),z=a.secondaryButtonText&&(null===(E=a.secondaryButtonText)||void 0===E?void 0:E.length)>0||a.onSuccess,P=a.ariaLabelledBy?void 0:a.ariaLabel,A=a.ariaLabelledBy?a.ariaLabelledBy:a.ariaLabel?void 0:I;return n((function(){var e=R.current;return document.body.style.overflow="hidden",e&&!z&&(e.addEventListener("keydown",T),e.addEventListener("click",j)),function(){document.body.style.removeProperty("overflow"),e&&!z&&(e.removeEventListener("keydown",T),e.removeEventListener("click",j))}}),[]),r.createElement("div",{"data-testid":"dialog-container"},r.createElement("div",{ref:R,className:v["modal-overlay"],"data-testid":a.testId},r.createElement("div",{className:v.align,ref:_()},r.createElement("div",{className:l(a.className,v.modal,v["modal--".concat(a.variant)],v["modal--".concat(a.size)]),role:"dialog","aria-label":P,"aria-labelledby":A},r.createElement("div",{className:l(v.modal__shadow,v["modal__shadow--top"],t({},v["modal__shadow--show"],!x&&W))}),r.createElement("div",{className:l(v.modal__contentWrapper,t({},v["modal__contentWrapper--image"],S)),ref:L},!a.noCloseButton&&r.createElement("div",{className:v.modal__closeWrapper},r.createElement("div",{className:l(v.modal__closeWrapper__close)},r.createElement(h,{onClick:a.onClose,ariaLabel:a.ariaLabelCloseBtn}))),r.createElement("div",{className:l(v["modal__contentWrapper__scroll--".concat(a.size)],t({},v["modal__contentWrapper__scroll--image"],S))},r.createElement("div",{ref:w}),r.createElement("div",{className:v.modal__contentWrapper__title},a.variant&&function(e){var t;if(e===y.error)t=r.createElement(s,{svgIcon:m,color:c.cherry500,hoverColor:c.cherry500});else{if(e!==y.warning)return null;t=r.createElement(s,{svgIcon:u,color:c.black,hoverColor:c.black})}return r.createElement("div",{className:v.modal__iconWrapper},t)}(a.variant),r.createElement("div",{className:a.variant===y.error?v["modal__title--error"]:""},r.createElement(p,{id:I,htmlMarkup:"h3",appearance:"title3"},a.title))),S&&r.createElement("div",null,r.createElement("div",{className:v.modal__contentWrapper__imageWrapper},a.children),r.createElement("span",{className:v.modal__contentWrapper__imageDescription},a.description)),!S&&a.children&&r.createElement("div",null,a.children),!S&&!a.children&&r.createElement("p",{className:v.modal__description},a.description),r.createElement("div",{ref:B}))),r.createElement("div",{className:l(v.modal__shadow,v["modal__shadow--bottom"],t({},v["modal__shadow--show"],!C&&W))}),z&&r.createElement("div",{className:l(v["modal__call-to-action"],v["modal__call-to-action--".concat(a.size)])},a.onSuccess&&r.createElement(i,{onClick:a.onSuccess},a.primaryButtonText),a.secondaryButtonText&&(null===(g=a.secondaryButtonText)||void 0===g?void 0:g.length)>0&&r.createElement(i,{variant:"borderless",onClick:a.onClose},a.secondaryButtonText))))))};k.defaultProps=g;export{k as M};
|
|
2
|
-
//# sourceMappingURL=Modal-0dd5ce43.js.map
|
package/Modal-0dd5ce43.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal-0dd5ce43.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Title-7c829525.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as r}from"./index-9b84fabc.js";import i from"./components/Title/styles.module.scss";var o=e.forwardRef((function(o,a){var l,m=o.id,n=o.children,c=o.className,p=o.htmlMarkup,s=void 0===p?"h1":p,f=o.appearance,d=void 0===f?"title1":f,g=o.margin,u=void 0===g?0:g,y=r(i.title,(t(l={},i["title--feature"],"titleFeature"===d),t(l,i["title--title1"],"title1"===d),t(l,i["title--title2"],"title2"===d),t(l,i["title--title3"],"title3"===d),t(l,i["title--title4"],"title4"===d),t(l,i["title--title5"],"title5"===d),l),c),T=s,b=function(t){return Object.prototype.hasOwnProperty.call(t,"marginTop")&&Object.prototype.hasOwnProperty.call(t,"marginBottom")}(u)?{marginTop:"".concat(u.marginTop,"rem"),marginBottom:"".concat(u.marginBottom,"rem")}:{marginTop:"".concat(u,"rem"),marginBottom:"".concat(u,"rem")};return e.createElement(T,{id:m,className:y,style:b,ref:a},n)}));export{o as T};
|
|
2
|
-
//# sourceMappingURL=Title-7c829525.js.map
|
package/Title-7c829525.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Title-7c829525.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validation-b902407e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|