@helsenorge/designsystem-react 1.0.0-beta76 → 1.0.0-beta80
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/Button-7200b617.js +2 -0
- package/Button-7200b617.js.map +1 -0
- package/Check-6291ad09.js +2 -0
- package/Check-6291ad09.js.map +1 -0
- package/Checkbox-ffdd3cb7.js +2 -0
- package/Checkbox-ffdd3cb7.js.map +1 -0
- package/FormGroup-17d2a3d3.js +2 -0
- package/FormGroup-17d2a3d3.js.map +1 -0
- package/Loader-9e099b42.js +2 -0
- package/Loader-9e099b42.js.map +1 -0
- package/Modal-5c2defa7.js +2 -0
- package/Modal-5c2defa7.js.map +1 -0
- package/Validation-e113da7e.js +2 -0
- package/Validation-e113da7e.js.map +1 -0
- package/components/Avatar/index.js +1 -1
- package/components/Button/Button.d.ts.map +1 -1
- package/components/Button/index.js +1 -1
- package/components/Button/styles.module.scss +49 -35
- package/components/Button/styles.module.scss.d.ts +12 -25
- package/components/ButtonWithModal/ButtonWithModal.d.ts +1 -1
- package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
- package/components/ButtonWithModal/componentdata.json +3 -0
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/Checkbox.d.ts +31 -0
- package/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/components/Checkbox/componentdata.json +259 -0
- package/components/Checkbox/index.d.ts +3 -0
- package/components/Checkbox/index.d.ts.map +1 -0
- package/components/Checkbox/index.js +2 -0
- package/components/Checkbox/index.js.map +1 -0
- package/components/Checkbox/styles.module.scss +191 -0
- package/components/Checkbox/styles.module.scss.d.ts +25 -0
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/ExpanderList/styles.module.scss +14 -10
- package/components/ExpanderList/styles.module.scss.d.ts +2 -2
- package/components/FormExample/FormExample.d.ts +13 -0
- package/components/FormExample/FormExample.d.ts.map +1 -0
- package/components/FormExample/componentdata.json +63 -0
- package/components/FormExample/index.d.ts +3 -0
- package/components/FormExample/index.d.ts.map +1 -0
- package/components/FormExample/index.js +2 -0
- package/components/FormExample/index.js.map +1 -0
- package/components/FormGroup/FormGroup.d.ts +26 -0
- package/components/FormGroup/FormGroup.d.ts.map +1 -0
- package/components/FormGroup/componentdata.json +183 -0
- package/components/FormGroup/index.d.ts +3 -0
- package/components/FormGroup/index.d.ts.map +1 -0
- package/components/FormGroup/index.js +2 -0
- package/components/FormGroup/index.js.map +1 -0
- package/components/FormGroup/styles.module.scss +79 -0
- package/components/FormGroup/styles.module.scss.d.ts +22 -0
- package/components/LinkList/LinkList.d.ts.map +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/LinkList/styles.module.scss +13 -10
- package/components/LinkList/styles.module.scss.d.ts +1 -1
- package/components/Loader/Loader.d.ts +8 -0
- package/components/Loader/Loader.d.ts.map +1 -1
- package/components/Loader/componentdata.json +76 -0
- package/components/Loader/index.js +1 -1
- package/components/Loader/styles.module.scss +24 -0
- package/components/Loader/styles.module.scss.d.ts +3 -0
- package/components/Modal/Modal.d.ts +2 -1
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/componentdata.json +3 -0
- package/components/Modal/index.js +1 -1
- package/components/Modal/styles.module.scss +102 -66
- package/components/Modal/styles.module.scss.d.ts +19 -11
- package/components/Validation/Validation.d.ts +17 -0
- package/components/Validation/Validation.d.ts.map +1 -0
- package/components/Validation/componentdata.json +111 -0
- package/components/Validation/index.d.ts +3 -0
- package/components/Validation/index.d.ts.map +1 -0
- package/components/Validation/index.js +2 -0
- package/components/Validation/index.js.map +1 -0
- package/components/Validation/styles.module.scss +15 -0
- package/components/Validation/styles.module.scss.d.ts +10 -0
- package/package.json +3 -4
- package/scss/_palette.scss +3 -0
- package/utils/uuid.d.ts +2 -0
- package/utils/uuid.d.ts.map +1 -0
- package/uuid-484288be.js +2 -0
- package/uuid-484288be.js.map +1 -0
- package/Button-79ff79f4.js +0 -2
- package/Button-79ff79f4.js.map +0 -1
- package/Loader-ad8bcd78.js +0 -2
- package/Loader-ad8bcd78.js.map +0 -1
- package/Modal-ab87aab2.js +0 -2
- package/Modal-ab87aab2.js.map +0 -1
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
2
|
+
@import '../../scss/_breakpoints.scss';
|
|
3
|
+
@import '../../scss/_palette.scss';
|
|
4
|
+
@import '../../scss/font-settings.scss';
|
|
5
|
+
|
|
6
|
+
.form-group-wrapper {
|
|
7
|
+
padding: getSpacer(s) getSpacer(xs) getSpacer(m);
|
|
8
|
+
|
|
9
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
10
|
+
padding: getSpacer(s) getSpacer(m) getSpacer(l);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--bigform {
|
|
14
|
+
background-color: $neutral50;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--on-blueberry {
|
|
18
|
+
background-color: $blueberry50;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--on-dark {
|
|
22
|
+
background-color: $blueberry800;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--invalid {
|
|
26
|
+
background-color: $cherry50;
|
|
27
|
+
border-left: 0.25rem solid $cherry500;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__title {
|
|
31
|
+
margin-bottom: getSpacer(l) !important;
|
|
32
|
+
|
|
33
|
+
&--on-dark {
|
|
34
|
+
color: $white;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--bigform {
|
|
38
|
+
margin-left: getSpacer(l) !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__errors {
|
|
43
|
+
font-size: $font-size-sm;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
color: $cherry500;
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
|
|
48
|
+
&--bigform {
|
|
49
|
+
margin-left: getSpacer(l);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.form-group-wrapper:first-of-type {
|
|
55
|
+
padding-top: getSpacer(xl);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.form-group-wrapper:last-of-type {
|
|
59
|
+
padding-bottom: getSpacer(xl);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.form-group {
|
|
63
|
+
border: none;
|
|
64
|
+
padding: 0;
|
|
65
|
+
margin: 0;
|
|
66
|
+
|
|
67
|
+
&__legend {
|
|
68
|
+
font-size: $font-size-md;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
|
|
71
|
+
&--on-dark {
|
|
72
|
+
color: $white;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--bigform {
|
|
76
|
+
padding: 0 getSpacer(l) getSpacer(l);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
'form-group': string;
|
|
3
|
+
'form-group__legend': string;
|
|
4
|
+
'form-group__legend--bigform': string;
|
|
5
|
+
'form-group__legend--on-dark': string;
|
|
6
|
+
'form-group-wrapper': string;
|
|
7
|
+
'form-group-wrapper__errors': string;
|
|
8
|
+
'form-group-wrapper__errors--bigform': string;
|
|
9
|
+
'form-group-wrapper__title': string;
|
|
10
|
+
'form-group-wrapper__title--bigform': string;
|
|
11
|
+
'form-group-wrapper__title--on-dark': string;
|
|
12
|
+
'form-group-wrapper--bigform': string;
|
|
13
|
+
'form-group-wrapper--invalid': string;
|
|
14
|
+
'form-group-wrapper--on-blueberry': string;
|
|
15
|
+
'form-group-wrapper--on-dark': string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type ClassNames = keyof Styles;
|
|
19
|
+
|
|
20
|
+
declare const styles: Styles;
|
|
21
|
+
|
|
22
|
+
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,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CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA6CD,eAAO,MAAM,QAAQ,mBAqBE,CAAC;AAKxB,eAAe,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import{_ as l}from"../../_tslib-51c8a283.js";import
|
|
1
|
+
import{a as e}from"../../_rollupPluginBabelHelpers-e1c7fe69.js";import{_ as l}from"../../_tslib-51c8a283.js";import r from"react";import{c as a}from"../../index-9b84fabc.js";import{a as i,I as o}from"../../constants-d1f48e8e.js";import{u as s,B as t}from"../../useBreakpoint-a8fa8a61.js";import{u as n}from"../../useHover-57ad4df9.js";import m from"./styles.module.scss";import"../../useWindowSize-c22d7634.js";import"../../grid-11a70eb7.js";var c=function(e){var l=e.isExtraSmall,a=e.isHovered,i=r.createElement("path",{d:"M19.171 32.951l1.409 1.42L31.031 24 20.58 13.63l-1.409 1.42 9.02 8.95z"}),o=r.createElement("path",{d:"M24.479 11.63L36.93 23.999 24.479 36.37l-1.409-1.419L33.083 25H13v-2h20.085L23.07 13.049z"}),s=r.createElement("path",{d:"M17.885 32.577l1.779 1.793 10.451-10.371L19.664 13.63l-1.779 1.793 8.644 8.576z"});return l?a?r.createElement("path",{d:"M25.98 11.103l12.977 12.896L25.98 36.897l-1.78-1.794 9.899-9.841-20.204.001v-2.526l20.204-.001-9.899-9.839z"}):s:a?o:i},d=r.forwardRef((function(d,f){var v,p=d.children,h=d.className,u=void 0===h?"":h,_=d.color,k=void 0===_?"neutral":_,E=d.icon,z=d.size,b=void 0===z?"medium":z,L=d.chevron,j=void 0!==L&&L,N=l(d,["children","className","color","icon","size","chevron"]),H=n(),g=H.hoverRef,B=H.isHovered,S=s(),M="small"!==b&&!(!j&&!E);return r.createElement("li",{ref:f},r.createElement("a",Object.assign({className:a(m["link-list__anchor"],m["link-list__anchor--"+k],(v={},e(v,m["link-list__anchor--hasicon"],M),e(v,m["link-list__anchor--small"],"small"===b),e(v,m["link-list__anchor--medium"],"medium"===b),e(v,m["link-list__anchor--large"],"large"===b),v),u),ref:g},N),M&&E&&r.createElement("span",{className:m["link-list__icon"]},r.cloneElement(E,{size:S===t.Xs?i.XSmall:i.Small,isHovered:B})),r.createElement("span",{className:m["link-list__content"]},p),M&&j&&r.createElement("span",{className:m["link-list__chevron"]},r.createElement(o,{svgIcon:c,isHovered:B,size:i.XSmall}))))})),f=r.forwardRef((function(l,i){var o,s=l.children,t=l.className,n=void 0===t?"":t,c=l.chevron,f=void 0!==c&&c,v=l.size,p=void 0===v?"medium":v,h=l.color,u=l.topBorder,_=void 0===u||u,k=l.bottomBorder,E=void 0===k||k;return r.createElement("ul",{ref:i,className:a(m["link-list"],(o={},e(o,m["link-list--hastopborder"],_),e(o,m["link-list--nobottomborder"],!E),o),n||"")},r.Children.map(s,(function(e){if(e.type===d)return r.cloneElement(e,{color:h,size:p,chevron:f})})))}));f.Link=d,d.displayName="LinkList.Link";export default f;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
display: flex;
|
|
28
28
|
min-height: 4.5rem;
|
|
29
29
|
text-decoration: none;
|
|
30
|
-
justify-content: space-between;
|
|
31
30
|
align-items: center;
|
|
32
31
|
color: $black;
|
|
33
32
|
cursor: pointer;
|
|
@@ -124,9 +123,6 @@
|
|
|
124
123
|
|
|
125
124
|
&:focus {
|
|
126
125
|
outline: none;
|
|
127
|
-
.link-list__content {
|
|
128
|
-
border-color: $black;
|
|
129
|
-
}
|
|
130
126
|
}
|
|
131
127
|
}
|
|
132
128
|
|
|
@@ -134,14 +130,21 @@
|
|
|
134
130
|
display: flex;
|
|
135
131
|
align-items: center;
|
|
136
132
|
border-bottom: 1px solid transparent;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
&__icon-container {
|
|
140
|
-
&--hasmargin {
|
|
141
|
-
margin-right: getSpacer(xs);
|
|
133
|
+
:focus > & {
|
|
134
|
+
border-color: $black;
|
|
142
135
|
}
|
|
143
136
|
}
|
|
137
|
+
|
|
144
138
|
&__icon {
|
|
145
|
-
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
margin-right: getSpacer(xs);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&__chevron {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
margin-left: auto;
|
|
148
|
+
padding-left: getSpacer(xs);
|
|
146
149
|
}
|
|
147
150
|
}
|
|
@@ -13,9 +13,9 @@ export type Styles = {
|
|
|
13
13
|
'link-list__anchor--plum': string;
|
|
14
14
|
'link-list__anchor--small': string;
|
|
15
15
|
'link-list__anchor--white': string;
|
|
16
|
+
'link-list__chevron': string;
|
|
16
17
|
'link-list__content': string;
|
|
17
18
|
'link-list__icon': string;
|
|
18
|
-
'link-list__icon-container--hasmargin': string;
|
|
19
19
|
'link-list--hastopborder': string;
|
|
20
20
|
'link-list--nobottomborder': string;
|
|
21
21
|
};
|
|
@@ -11,6 +11,14 @@ interface LoaderProps {
|
|
|
11
11
|
size?: LoaderSizes;
|
|
12
12
|
/** Sets the data-testid attribute. */
|
|
13
13
|
testId?: string;
|
|
14
|
+
/** Centers the loader in a container */
|
|
15
|
+
center?: boolean;
|
|
16
|
+
/** Loader is displayed with grey background covering the entire screen */
|
|
17
|
+
overlay?: boolean;
|
|
18
|
+
/** Individual id for loading icon (aria-labelledby). */
|
|
19
|
+
ariaLabelledById?: string;
|
|
20
|
+
/** String that labels the current loading element */
|
|
21
|
+
ariaLabel?: string;
|
|
14
22
|
}
|
|
15
23
|
declare const Loader: React.ForwardRefExoticComponent<LoaderProps & React.RefAttributes<HTMLElement>>;
|
|
16
24
|
export default Loader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,oBAAY,YAAY,GAAG,YAAY,CAAC;AACxC,oBAAY,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhE,UAAU,WAAW;IACnB,mCAAmC;IACnC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,iFA0DV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -123,6 +123,82 @@
|
|
|
123
123
|
"type": {
|
|
124
124
|
"name": "string"
|
|
125
125
|
}
|
|
126
|
+
},
|
|
127
|
+
"center": {
|
|
128
|
+
"defaultValue": null,
|
|
129
|
+
"description": "Centers the loader in a container",
|
|
130
|
+
"name": "center",
|
|
131
|
+
"parent": {
|
|
132
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
133
|
+
"name": "LoaderProps"
|
|
134
|
+
},
|
|
135
|
+
"declarations": [
|
|
136
|
+
{
|
|
137
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
138
|
+
"name": "LoaderProps"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"required": false,
|
|
142
|
+
"type": {
|
|
143
|
+
"name": "boolean"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"overlay": {
|
|
147
|
+
"defaultValue": null,
|
|
148
|
+
"description": "Loader is displayed with grey background covering the entire screen",
|
|
149
|
+
"name": "overlay",
|
|
150
|
+
"parent": {
|
|
151
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
152
|
+
"name": "LoaderProps"
|
|
153
|
+
},
|
|
154
|
+
"declarations": [
|
|
155
|
+
{
|
|
156
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
157
|
+
"name": "LoaderProps"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"required": false,
|
|
161
|
+
"type": {
|
|
162
|
+
"name": "boolean"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"ariaLabelledById": {
|
|
166
|
+
"defaultValue": null,
|
|
167
|
+
"description": "Individual id for loading icon (aria-labelledby).",
|
|
168
|
+
"name": "ariaLabelledById",
|
|
169
|
+
"parent": {
|
|
170
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
171
|
+
"name": "LoaderProps"
|
|
172
|
+
},
|
|
173
|
+
"declarations": [
|
|
174
|
+
{
|
|
175
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
176
|
+
"name": "LoaderProps"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"required": false,
|
|
180
|
+
"type": {
|
|
181
|
+
"name": "string"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"ariaLabel": {
|
|
185
|
+
"defaultValue": null,
|
|
186
|
+
"description": "String that labels the current loading element",
|
|
187
|
+
"name": "ariaLabel",
|
|
188
|
+
"parent": {
|
|
189
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
190
|
+
"name": "LoaderProps"
|
|
191
|
+
},
|
|
192
|
+
"declarations": [
|
|
193
|
+
{
|
|
194
|
+
"fileName": "src/components/Loader/Loader.tsx",
|
|
195
|
+
"name": "LoaderProps"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"required": false,
|
|
199
|
+
"type": {
|
|
200
|
+
"name": "string"
|
|
201
|
+
}
|
|
126
202
|
}
|
|
127
203
|
}
|
|
128
204
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as e}from"../../Loader-
|
|
1
|
+
import{L as e}from"../../Loader-9e099b42.js";export{L as default}from"../../Loader-9e099b42.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-484288be.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../scss/_palette.scss';
|
|
2
|
+
@import 'bootstrap/scss/mixins/_screen-reader.scss';
|
|
2
3
|
|
|
3
4
|
@mixin keyframes($name) {
|
|
4
5
|
@keyframes #{$name} {
|
|
@@ -35,6 +36,25 @@
|
|
|
35
36
|
@include animate($name, translate, 0.6s, infinite);
|
|
36
37
|
}
|
|
37
38
|
|
|
39
|
+
.loader-wrapper {
|
|
40
|
+
&--center {
|
|
41
|
+
text-align: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--overlay {
|
|
45
|
+
z-index: 9999;
|
|
46
|
+
background: $transparentGrey;
|
|
47
|
+
position: fixed;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
38
58
|
.loader {
|
|
39
59
|
display: inline-block;
|
|
40
60
|
position: relative;
|
|
@@ -56,6 +76,10 @@
|
|
|
56
76
|
height: 24px;
|
|
57
77
|
}
|
|
58
78
|
|
|
79
|
+
&__hidden-text {
|
|
80
|
+
@include sr-only();
|
|
81
|
+
}
|
|
82
|
+
|
|
59
83
|
&__dot {
|
|
60
84
|
position: absolute;
|
|
61
85
|
width: 8px;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
|
+
center: string;
|
|
2
3
|
loader: string;
|
|
3
4
|
loader__dot: string;
|
|
5
|
+
' loader__hidden-text': string;
|
|
4
6
|
'loader__dot--banana': string;
|
|
5
7
|
'loader__dot--black': string;
|
|
6
8
|
'loader__dot--cherry': string;
|
|
@@ -14,6 +16,7 @@ export type Styles = {
|
|
|
14
16
|
'loader--large': string;
|
|
15
17
|
'loader--medium': string;
|
|
16
18
|
'loader--small': string;
|
|
19
|
+
overlay: string;
|
|
17
20
|
scale: string;
|
|
18
21
|
'scale-regular': string;
|
|
19
22
|
'scale-reverse': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAgBzC,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+GAA+G;IAC/G,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uCAAuC;IACvC,SAAS,CAAC,EAAE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AE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAgCD,QAAA,MAAM,KAAK,kFA0GT,CAAC;AAIH,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as s}from"../../Modal-
|
|
1
|
+
import{M as s}from"../../Modal-5c2defa7.js";export{M as default}from"../../Modal-5c2defa7.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-484288be.js";import"../../palette-f206f488.js";import"../../Button-7200b617.js";import"../../_rollupPluginBabelHelpers-e1c7fe69.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../constants-d1f48e8e.js";import"../../Loader-9e099b42.js";import"../Loader/styles.module.scss";import"../../useHover-57ad4df9.js";import"../../useWindowSize-c22d7634.js";import"../Button/styles.module.scss";import"../../AlertSignFill-64bfef57.js";import"./styles.module.scss";import"../../Title-863af332.js";import"../Title/styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
font-size: 20px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
&--normal {
|
|
42
42
|
background-color: $white;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
&--error {
|
|
45
45
|
background-color: $cherry100;
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
&__title {
|
|
48
48
|
color: $cherry600;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
&--warning {
|
|
52
52
|
background-color: $banana50;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
&--error,
|
|
55
|
+
&--warning {
|
|
56
|
+
&__title {
|
|
57
57
|
div:nth-child(2) {
|
|
58
58
|
padding-left: 8px;
|
|
59
59
|
}
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
width: 515px;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
&--large {
|
|
78
78
|
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
79
79
|
width: 612px;
|
|
80
80
|
}
|
|
@@ -82,78 +82,114 @@
|
|
|
82
82
|
width: 696px;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
}
|
|
86
85
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
@media (max-width: map-get($grid-breakpoints, md)) {
|
|
92
|
-
right: 0px;
|
|
93
|
-
top: 0px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
86
|
+
&--image {
|
|
87
|
+
max-height: calc(100vh - 24px);
|
|
88
|
+
max-width: calc(100vw - 24px);
|
|
89
|
+
width: 100%;
|
|
96
90
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
91
|
+
&__img {
|
|
92
|
+
max-height: calc(100vh - 185px);
|
|
93
|
+
max-width: calc(100vw - 40px);
|
|
94
|
+
width: 100%;
|
|
95
|
+
line-height: 0px;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&__text {
|
|
100
|
+
font-size: 12pt;
|
|
101
|
+
padding-top: 16px;
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
101
104
|
}
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
|
|
106
|
+
&__close {
|
|
107
|
+
position: absolute;
|
|
108
|
+
right: 15px;
|
|
109
|
+
top: 15px;
|
|
110
|
+
@media (max-width: map-get($grid-breakpoints, md)) {
|
|
111
|
+
right: 0px;
|
|
112
|
+
top: 0px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&--image {
|
|
116
|
+
position: absolute;
|
|
117
|
+
right: 0px;
|
|
118
|
+
margin: 8px;
|
|
119
|
+
}
|
|
104
120
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
121
|
+
|
|
122
|
+
&__contentWrapper {
|
|
123
|
+
padding: 48px;
|
|
124
|
+
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
125
|
+
padding: 32px 24px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&--image {
|
|
129
|
+
padding: 48px 16px 32px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&__content {
|
|
133
|
+
margin: 20px 0;
|
|
134
|
+
|
|
135
|
+
&--image {
|
|
136
|
+
margin-top: 10px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&__title {
|
|
108
141
|
display: flex;
|
|
109
|
-
|
|
110
|
-
|
|
142
|
+
div {
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
111
147
|
}
|
|
112
148
|
}
|
|
113
|
-
}
|
|
114
149
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
150
|
+
&__description {
|
|
151
|
+
white-space: pre-line;
|
|
152
|
+
}
|
|
118
153
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
border: 0;
|
|
124
|
-
background-color: transparent;
|
|
125
|
-
cursor: pointer;
|
|
126
|
-
|
|
127
|
-
&:hover,
|
|
128
|
-
&:active {
|
|
129
|
-
background-color: rgba(88, 171, 187, 0.1);
|
|
130
|
-
}
|
|
131
|
-
&:focus {
|
|
132
|
-
box-shadow: 0px 0px 0px 2px $black;
|
|
133
|
-
background-color: rgba(88, 171, 187, 0.1);
|
|
134
|
-
border-radius: 0;
|
|
154
|
+
&__lukkekryss {
|
|
155
|
+
height: 42px;
|
|
156
|
+
width: 42px;
|
|
157
|
+
padding: 0;
|
|
135
158
|
border: 0;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
159
|
+
background-color: transparent;
|
|
160
|
+
cursor: pointer;
|
|
139
161
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
162
|
+
&:hover,
|
|
163
|
+
&:active {
|
|
164
|
+
background-color: rgba(88, 171, 187, 0.1);
|
|
165
|
+
}
|
|
166
|
+
&:focus {
|
|
167
|
+
box-shadow: 0px 0px 0px 2px $black;
|
|
168
|
+
background-color: rgba(88, 171, 187, 0.1);
|
|
169
|
+
border-radius: 0;
|
|
170
|
+
border: 0;
|
|
171
|
+
outline: none;
|
|
172
|
+
}
|
|
145
173
|
}
|
|
146
|
-
}
|
|
147
174
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
175
|
+
&__actions {
|
|
176
|
+
display: flex;
|
|
177
|
+
padding: 5px 0;
|
|
178
|
+
button:first-child {
|
|
179
|
+
margin-right: 24px;
|
|
180
|
+
}
|
|
153
181
|
}
|
|
154
182
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
183
|
+
/* animation on open */
|
|
184
|
+
@keyframes open {
|
|
185
|
+
0% {
|
|
186
|
+
opacity: 0;
|
|
187
|
+
transform: scale(0.9);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
100% {
|
|
191
|
+
opacity: 1;
|
|
192
|
+
transform: scale(1);
|
|
193
|
+
}
|
|
158
194
|
}
|
|
159
195
|
}
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
|
-
actions: string;
|
|
3
2
|
align: string;
|
|
4
|
-
close: string;
|
|
5
|
-
content: string;
|
|
6
|
-
contentWrapper: string;
|
|
7
|
-
description: string;
|
|
8
|
-
error: string;
|
|
9
|
-
large: string;
|
|
10
|
-
lukkekryss: string;
|
|
11
3
|
modal: string;
|
|
4
|
+
modal__actions: string;
|
|
5
|
+
modal__close: string;
|
|
6
|
+
'modal__close--image': string;
|
|
7
|
+
modal__contentWrapper: string;
|
|
8
|
+
modal__contentWrapper__content: string;
|
|
9
|
+
'modal__contentWrapper__content--image': string;
|
|
10
|
+
modal__contentWrapper__title: string;
|
|
11
|
+
'modal__contentWrapper--image': string;
|
|
12
|
+
modal__description: string;
|
|
13
|
+
modal__lukkekryss: string;
|
|
14
|
+
'modal--error': string;
|
|
15
|
+
'modal--error__title': string;
|
|
16
|
+
'modal--image': string;
|
|
17
|
+
'modal--image__img': string;
|
|
18
|
+
'modal--image__text': string;
|
|
19
|
+
'modal--large': string;
|
|
20
|
+
'modal--normal': string;
|
|
21
|
+
'modal--warning': string;
|
|
22
|
+
'modal--warning__title': string;
|
|
12
23
|
'modal-overlay': string;
|
|
13
24
|
'modal-overlay--lowerzindex': string;
|
|
14
|
-
normal: string;
|
|
15
25
|
open: string;
|
|
16
|
-
title: string;
|
|
17
|
-
warning: string;
|
|
18
26
|
};
|
|
19
27
|
|
|
20
28
|
export type ClassNames = keyof Styles;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormVariant } from '../FormGroup/FormGroup';
|
|
3
|
+
interface ValidationProps {
|
|
4
|
+
/** text placed in the legend tag of the fieldset */
|
|
5
|
+
errorSummary?: string;
|
|
6
|
+
/** Items in the ExpanderList */
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/** Adds custom classes to the element. */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Changes the visuals of the formgroup */
|
|
11
|
+
variant?: FormVariant;
|
|
12
|
+
/** Sets the data-testid attribute. */
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Validation: React.ForwardRefExoticComponent<ValidationProps & React.RefAttributes<HTMLElement>>;
|
|
16
|
+
export default Validation;
|
|
17
|
+
//# sourceMappingURL=Validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Validation.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/Validation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIrD,UAAU,eAAe;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,qFAgBrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|