@helsenorge/designsystem-react 1.0.0-beta81-ModalTest2 → 1.0.0-beta85
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-3f327b66.js +2 -0
- package/Button-3f327b66.js.map +1 -0
- package/Check-6291ad09.js +2 -0
- package/Check-6291ad09.js.map +1 -0
- package/Checkbox-46666e69.js +2 -0
- package/Checkbox-46666e69.js.map +1 -0
- package/FormGroup-b874ae21.js +2 -0
- package/FormGroup-b874ae21.js.map +1 -0
- package/Loader-cf365332.js +2 -0
- package/Loader-cf365332.js.map +1 -0
- package/Modal-0dd5ce43.js +2 -0
- package/Modal-0dd5ce43.js.map +1 -0
- package/Title-7c829525.js +2 -0
- package/Title-7c829525.js.map +1 -0
- package/Validation-b902407e.js +2 -0
- package/Validation-b902407e.js.map +1 -0
- package/_rollupPluginBabelHelpers-d0752906.js +2 -0
- package/_rollupPluginBabelHelpers-d0752906.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/Button.d.ts.map +1 -1
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/ButtonWithModal.d.ts +1 -1
- package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
- package/components/ButtonWithModal/componentdata.json +18 -6
- 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 +203 -0
- package/components/Checkbox/styles.module.scss.d.ts +26 -0
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/index.js +1 -1
- 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 +58 -0
- package/components/FormGroup/styles.module.scss.d.ts +16 -0
- package/components/Icons/AcupunctureBack.d.ts +5 -0
- package/components/Icons/AcupunctureBack.d.ts.map +1 -0
- package/components/Icons/AcupunctureBack.js +2 -0
- package/components/Icons/AcupunctureBack.js.map +1 -0
- package/components/Icons/AdditionalIconInformation.js +6 -0
- package/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/components/Icons/Icon.d.ts +1 -0
- package/components/Icons/Icon.d.ts.map +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/NoEye.d.ts +5 -0
- package/components/Icons/NoEye.d.ts.map +1 -0
- package/components/Icons/NoEye.js +2 -0
- package/components/Icons/NoEye.js.map +1 -0
- package/components/Icons/SectionSign.d.ts +5 -0
- package/components/Icons/SectionSign.d.ts.map +1 -0
- package/components/Icons/SectionSign.js +2 -0
- package/components/Icons/SectionSign.js.map +1 -0
- package/components/Icons/SpeechBubble.d.ts +5 -0
- package/components/Icons/SpeechBubble.d.ts.map +1 -0
- package/components/Icons/SpeechBubble.js +2 -0
- package/components/Icons/SpeechBubble.js.map +1 -0
- package/components/Icons/SupportingPerson.d.ts +5 -0
- package/components/Icons/SupportingPerson.d.ts.map +1 -0
- package/components/Icons/SupportingPerson.js +2 -0
- package/components/Icons/SupportingPerson.js.map +1 -0
- package/components/Icons/Syringe.d.ts +5 -0
- package/components/Icons/Syringe.d.ts.map +1 -0
- package/components/Icons/Syringe.js +2 -0
- package/components/Icons/Syringe.js.map +1 -0
- package/components/Icons/index.js +1 -1
- package/components/LinkList/LinkList.d.ts.map +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/LinkList/styles.module.scss +1 -4
- package/components/LinkList/styles.module.scss.d.ts +0 -1
- package/components/Loader/index.js +1 -1
- package/components/Modal/Modal.d.ts +19 -6
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/__mocks__/IntersectionObserver.d.ts +6 -0
- package/components/Modal/__mocks__/IntersectionObserver.d.ts.map +1 -0
- package/components/Modal/componentdata.json +19 -7
- package/components/Modal/index.js +1 -1
- package/components/Modal/styles.module.scss +103 -67
- package/components/Modal/styles.module.scss.d.ts +17 -10
- 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 +4 -4
- package/components/Slider/index.js +1 -1
- package/components/Spacer/index.js +1 -1
- package/components/Tile/index.js +1 -1
- package/components/Title/Title.d.ts +6 -1
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/componentdata.json +1 -145
- package/components/Title/index.js +1 -1
- 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 +18 -0
- package/components/Validation/styles.module.scss.d.ts +10 -0
- package/components/__mocks__/index.js +2 -0
- package/components/__mocks__/index.js.map +1 -0
- package/constants-d919236e.js +2 -0
- package/constants-d919236e.js.map +1 -0
- package/hooks/focus-utils.d.ts +7 -0
- package/hooks/focus-utils.d.ts.map +1 -0
- package/hooks/useFocusTrap.d.ts +1 -1
- package/hooks/useFocusTrap.d.ts.map +1 -1
- package/hooks/useVisibility.d.ts +3 -0
- package/hooks/useVisibility.d.ts.map +1 -0
- package/index.js +1 -1
- package/package.json +2 -1
- package/scss/_palette.scss +1 -0
- package/useBreakpoint-324a9b14.js +2 -0
- package/useBreakpoint-324a9b14.js.map +1 -0
- package/useHover-037be19d.js +2 -0
- package/useHover-037be19d.js.map +1 -0
- package/useWindowSize-73b47451.js +2 -0
- package/useWindowSize-73b47451.js.map +1 -0
- package/utils/uuid.d.ts +1 -0
- package/utils/uuid.d.ts.map +1 -1
- package/uuid-8870ab4b.js +2 -0
- package/uuid-8870ab4b.js.map +1 -0
- package/Button-e2087687.js +0 -2
- package/Button-e2087687.js.map +0 -1
- package/Loader-3767cb6e.js +0 -2
- package/Loader-3767cb6e.js.map +0 -1
- package/Modal-459c67d7.js +0 -2
- package/Modal-459c67d7.js.map +0 -1
- package/Title-863af332.js +0 -2
- package/Title-863af332.js.map +0 -1
- package/_rollupPluginBabelHelpers-e1c7fe69.js +0 -2
- package/_rollupPluginBabelHelpers-e1c7fe69.js.map +0 -1
- package/components/Tabs/componentdata.json +0 -3
- package/constants-d1f48e8e.js +0 -2
- package/constants-d1f48e8e.js.map +0 -1
- package/useBreakpoint-a8fa8a61.js +0 -2
- package/useBreakpoint-a8fa8a61.js.map +0 -1
- package/useHover-57ad4df9.js +0 -2
- package/useHover-57ad4df9.js.map +0 -1
- package/useWindowSize-c22d7634.js +0 -2
- package/useWindowSize-c22d7634.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
@import '../../scss/_spacers.scss';
|
|
1
2
|
@import '../../scss/_palette.scss';
|
|
2
|
-
@import '../../scss/spacers.scss';
|
|
3
3
|
@import '../../scss/_breakpoints.scss';
|
|
4
|
+
@import '../../scss/_font-settings.scss';
|
|
4
5
|
|
|
5
6
|
.modal-overlay {
|
|
6
7
|
z-index: 1300000;
|
|
@@ -12,10 +13,6 @@
|
|
|
12
13
|
right: 0;
|
|
13
14
|
bottom: 0;
|
|
14
15
|
|
|
15
|
-
&--lowerzindex {
|
|
16
|
-
z-index: 1100000;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
16
|
@media print {
|
|
20
17
|
display: none;
|
|
21
18
|
}
|
|
@@ -34,8 +31,16 @@
|
|
|
34
31
|
background-color: $white;
|
|
35
32
|
animation: open 200ms 1;
|
|
36
33
|
|
|
34
|
+
&__title--error {
|
|
35
|
+
color: $cherry600;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__iconWrapper {
|
|
39
|
+
padding-right: 0.75rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
p {
|
|
38
|
-
font-size:
|
|
43
|
+
font-size: 1.125rem;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
&--normal {
|
|
@@ -43,38 +48,19 @@
|
|
|
43
48
|
}
|
|
44
49
|
&--error {
|
|
45
50
|
background-color: $cherry100;
|
|
46
|
-
|
|
47
|
-
&__title {
|
|
48
|
-
color: $cherry600;
|
|
49
|
-
}
|
|
50
51
|
}
|
|
51
52
|
&--warning {
|
|
52
53
|
background-color: $banana50;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
-
&--
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
|
|
56
|
+
&--large {
|
|
57
|
+
width: calc(100vw - 0.75rem);
|
|
58
|
+
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
59
|
+
p {
|
|
60
|
+
font-size: 1.125rem;
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
|
-
}
|
|
62
63
|
|
|
63
|
-
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
64
|
-
width: calc(100vw - 24px);
|
|
65
|
-
p {
|
|
66
|
-
font-size: 18px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
71
|
-
width: 507px;
|
|
72
|
-
}
|
|
73
|
-
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
74
|
-
width: 515px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&--large {
|
|
78
64
|
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
79
65
|
width: 612px;
|
|
80
66
|
}
|
|
@@ -83,57 +69,82 @@
|
|
|
83
69
|
}
|
|
84
70
|
}
|
|
85
71
|
|
|
86
|
-
&--
|
|
87
|
-
|
|
88
|
-
max-width: calc(100vw - 24px);
|
|
72
|
+
&--medium {
|
|
73
|
+
width: calc(100vw - 0.75rem);
|
|
89
74
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
img {
|
|
93
|
-
max-height: calc(100vh - 185px);
|
|
94
|
-
max-width: calc(100vw - 57px);
|
|
95
|
-
min-width: 100%;
|
|
96
|
-
}
|
|
75
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
76
|
+
width: 335px;
|
|
97
77
|
}
|
|
78
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
79
|
+
width: 515px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
98
82
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
83
|
+
&--image {
|
|
84
|
+
@media (min-width: map-get($grid-breakpoints, md)) {
|
|
85
|
+
max-height: calc(100vh - 24px);
|
|
86
|
+
max-width: calc(100vw - 24px);
|
|
87
|
+
width: 100%;
|
|
103
88
|
}
|
|
104
89
|
}
|
|
105
90
|
|
|
106
|
-
&
|
|
91
|
+
&__shadow {
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 16px;
|
|
107
94
|
position: absolute;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
right: 0px;
|
|
112
|
-
top: 0px;
|
|
113
|
-
}
|
|
95
|
+
transition: opacity 0.5s;
|
|
96
|
+
opacity: 0;
|
|
97
|
+
}
|
|
114
98
|
|
|
115
|
-
|
|
99
|
+
&__shadow--top {
|
|
100
|
+
//box-shadow: 0 3px 8px 4px grey;
|
|
101
|
+
background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45702030812324934) 100%);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__shadow--bottom {
|
|
105
|
+
//box-shadow: 0 -3px 8px 4px grey;
|
|
106
|
+
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45702030812324934) 100%);
|
|
107
|
+
margin-top: -16px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&__shadow--show {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&__closeWrapper {
|
|
115
|
+
position: relative;
|
|
116
|
+
width: 100%;
|
|
117
|
+
|
|
118
|
+
&__close {
|
|
116
119
|
position: absolute;
|
|
117
|
-
right:
|
|
118
|
-
|
|
120
|
+
right: getSpacer(2xs);
|
|
121
|
+
top: getSpacer(2xs);
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
124
|
|
|
122
125
|
&__contentWrapper {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
padding: 32px 24px;
|
|
126
|
-
}
|
|
126
|
+
max-height: calc(100vh - 10rem);
|
|
127
|
+
overflow: auto;
|
|
127
128
|
|
|
128
129
|
&--image {
|
|
129
|
-
|
|
130
|
+
max-height: 100vh;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
|
-
&
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
&__scroll {
|
|
134
|
+
&--large {
|
|
135
|
+
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
136
|
+
padding: getSpacer(xl) getSpacer(m) getSpacer(xs) getSpacer(m);
|
|
137
|
+
}
|
|
138
|
+
padding: getSpacer(xl) getSpacer(xl) getSpacer(xs) getSpacer(xl);
|
|
139
|
+
}
|
|
140
|
+
&--medium {
|
|
141
|
+
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
142
|
+
padding: getSpacer(xl) getSpacer(m) getSpacer(xs) getSpacer(m);
|
|
143
|
+
}
|
|
144
|
+
padding: getSpacer(l) getSpacer(m) getSpacer(xs) getSpacer(m);
|
|
145
|
+
}
|
|
146
|
+
&--large#{&}--image {
|
|
147
|
+
padding: getSpacer(xl) getSpacer(xs) getSpacer(l) getSpacer(xs);
|
|
137
148
|
}
|
|
138
149
|
}
|
|
139
150
|
|
|
@@ -145,6 +156,21 @@
|
|
|
145
156
|
align-items: center;
|
|
146
157
|
}
|
|
147
158
|
}
|
|
159
|
+
|
|
160
|
+
&__imageWrapper {
|
|
161
|
+
line-height: 0;
|
|
162
|
+
text-align: center;
|
|
163
|
+
img {
|
|
164
|
+
max-height: calc(100vh - 185px);
|
|
165
|
+
max-width: calc(100vw - 57px);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&__imageDescription {
|
|
170
|
+
font-size: $font-size-xs;
|
|
171
|
+
padding-top: getSpacer(s);
|
|
172
|
+
display: block;
|
|
173
|
+
}
|
|
148
174
|
}
|
|
149
175
|
|
|
150
176
|
&__description {
|
|
@@ -172,12 +198,22 @@
|
|
|
172
198
|
}
|
|
173
199
|
}
|
|
174
200
|
|
|
175
|
-
&
|
|
201
|
+
&__call-to-action {
|
|
176
202
|
display: flex;
|
|
177
|
-
|
|
203
|
+
|
|
178
204
|
button:first-child {
|
|
179
205
|
margin-right: 24px;
|
|
180
206
|
}
|
|
207
|
+
|
|
208
|
+
&--large {
|
|
209
|
+
padding: getSpacer(l) getSpacer(xl) getSpacer(xl) getSpacer(xl);
|
|
210
|
+
@media (max-width: map-get($grid-breakpoints, sm)) {
|
|
211
|
+
padding: getSpacer(l) getSpacer(m) getSpacer(l) getSpacer(m);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
&--medium {
|
|
215
|
+
padding: getSpacer(m) getSpacer(m) getSpacer(m) getSpacer(m);
|
|
216
|
+
}
|
|
181
217
|
}
|
|
182
218
|
|
|
183
219
|
/* animation on open */
|
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
align: string;
|
|
3
3
|
modal: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
'
|
|
4
|
+
'modal__call-to-action': string;
|
|
5
|
+
'modal__call-to-action--large': string;
|
|
6
|
+
'modal__call-to-action--medium': string;
|
|
7
|
+
modal__closeWrapper: string;
|
|
8
|
+
modal__closeWrapper__close: string;
|
|
7
9
|
modal__contentWrapper: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
modal__contentWrapper__imageDescription: string;
|
|
11
|
+
modal__contentWrapper__imageWrapper: string;
|
|
12
|
+
'modal__contentWrapper__scroll--image': string;
|
|
13
|
+
'modal__contentWrapper__scroll--large': string;
|
|
14
|
+
'modal__contentWrapper__scroll--medium': string;
|
|
10
15
|
modal__contentWrapper__title: string;
|
|
11
16
|
'modal__contentWrapper--image': string;
|
|
12
17
|
modal__description: string;
|
|
18
|
+
modal__iconWrapper: string;
|
|
13
19
|
modal__lukkekryss: string;
|
|
20
|
+
modal__shadow: string;
|
|
21
|
+
'modal__shadow--bottom': string;
|
|
22
|
+
'modal__shadow--show': string;
|
|
23
|
+
'modal__shadow--top': string;
|
|
24
|
+
'modal__title--error': string;
|
|
14
25
|
'modal--error': string;
|
|
15
|
-
'modal--error__title': string;
|
|
16
26
|
'modal--image': string;
|
|
17
|
-
'modal--image__img': string;
|
|
18
|
-
'modal--image__text': string;
|
|
19
27
|
'modal--large': string;
|
|
28
|
+
'modal--medium': string;
|
|
20
29
|
'modal--normal': string;
|
|
21
30
|
'modal--warning': string;
|
|
22
|
-
'modal--warning__title': string;
|
|
23
31
|
'modal-overlay': string;
|
|
24
|
-
'modal-overlay--lowerzindex': string;
|
|
25
32
|
open: string;
|
|
26
33
|
};
|
|
27
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,oBAAY,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7E,oBAAY,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE,UAAU,sBAAsB;IAC9B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,sFAAsF;IACtF,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,oBAAY,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7E,oBAAY,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE,UAAU,sBAAsB;IAC9B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,sFAAsF;IACtF,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAK7B,CAAC;AAUF,QAAA,MAAM,iBAAiB,+FAwFrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -203,6 +203,25 @@
|
|
|
203
203
|
"type": {
|
|
204
204
|
"name": "string"
|
|
205
205
|
}
|
|
206
|
+
},
|
|
207
|
+
"ariaLabelCloseBtn": {
|
|
208
|
+
"defaultValue": null,
|
|
209
|
+
"description": "Close button aria-label",
|
|
210
|
+
"name": "ariaLabelCloseBtn",
|
|
211
|
+
"parent": {
|
|
212
|
+
"fileName": "src/components/NotificationPanel/NotificationPanel.tsx",
|
|
213
|
+
"name": "NotificationPanelProps"
|
|
214
|
+
},
|
|
215
|
+
"declarations": [
|
|
216
|
+
{
|
|
217
|
+
"fileName": "src/components/NotificationPanel/NotificationPanel.tsx",
|
|
218
|
+
"name": "NotificationPanelProps"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"required": false,
|
|
222
|
+
"type": {
|
|
223
|
+
"name": "string"
|
|
224
|
+
}
|
|
206
225
|
}
|
|
207
226
|
}
|
|
208
227
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"../../_rollupPluginBabelHelpers-
|
|
1
|
+
import{a as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import a from"react";import{c as o}from"../../index-9b84fabc.js";import{p as n}from"../../palette-f206f488.js";import{I as t,a as i}from"../../constants-d919236e.js";import{u as l}from"../../useHover-037be19d.js";import{a as r,A as c,X as s}from"../../AlertSignFill-64bfef57.js";import m from"./styles.module.scss";import"../../_tslib-51c8a283.js";var v={info:a.createElement(t,{svgIcon:function(e){var o=e.isExtraSmall,n=e.isHovered,t=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 10.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),i=a.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 8.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),l=a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 10.61a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"});return o?n?a.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 8.084a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"}):l:n?i:t},color:n.kiwi900,hoverColor:n.kiwi900}),warn:a.createElement(t,{svgIcon:r,color:"black",hoverColor:"black"}),alert:a.createElement(t,{svgIcon:c,color:n.cherry500,hoverColor:n.cherry500}),alertLabel:a.createElement(t,{svgIcon:r,color:n.cherry500,hoverColor:n.cherry500}),crisis:a.createElement(t,{svgIcon:c,color:n.banana200,hoverColor:n.banana200})},f=a.forwardRef((function(r,c){var f,p,d,h=r.children,u=r.variant,b=void 0===u?"info":u,_=r.shadow,E=void 0!==_&&_,C=r.dismissable,w=void 0!==C&&C,g=r.onClick,y=r.label,M=r.fluid,k=void 0!==M&&M,I=r.size,N=r.className,S=l(void 0,w),j=S.hoverRef,H=S.isHovered,L=o(m["notification-panel__close-button"],"crisis"===b?m["notification-panel__close-button--crisis"]:"");var x;return x=a.createElement("div",{ref:c,className:o(m["notification-panel"],m["notification-panel--"+I],m["notification-panel--"+b],(f={},e(f,m["notification-panel--shadow"],!k&&E),e(f,m["notification-panel--haslabel"],!!y&&!h),e(f,m["notification-panel--dismissable"],w),f),N||"")},a.createElement("span",{className:m["notification-panel__icon"]},v["alert"===b&&y&&!h?"alertLabel":b]),a.createElement("section",{"aria-label":function(){if(h){var e="";return a.Children.map(h,(function(a){"string"==typeof a&&(e+=a)})),e}return""}(),className:o(m["notification-panel__content"],(p={},e(p,m["notification-panel__content--crisis"],"crisis"===b),e(p,m["notification-panel__content--haslabel"],!!y&&!h),e(p,m["notification-panel__content--isred"],"alert"===b&&!!y&&!h),p))},y?a.createElement("h1",{className:m["notification-panel__label"],dangerouslySetInnerHTML:{__html:y}}):null,h),w?a.createElement("span",{className:m["notification-panel__action-column"]},a.createElement("button",{className:L,onClick:g,ref:j,"aria-label":null!==(d=r.ariaLabelCloseBtn)&&void 0!==d?d:"Lukk"},a.createElement(t,{svgIcon:s,isHovered:H,size:i.XSmall,color:"crisis"===b?n.white:n.blueberry500,hoverColor:"crisis"===b?n.white:n.blueberry700}))):null),k?a.createElement("div",{className:o(m["notification-panel__fluidwrapper"],m["notification-panel__fluidwrapper--"+b],e({},m["notification-panel__fluidwrapper--shadow"],E))},x):x}));export default f;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
border: 2px solid transparent;
|
|
165
165
|
}
|
|
166
166
|
&:hover,
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
&:active,
|
|
168
|
+
&:focus {
|
|
169
169
|
background-color: rgba(8, 102, 124, 0.05);
|
|
170
170
|
border-color: transparent;
|
|
171
171
|
&:after {
|
|
@@ -177,8 +177,8 @@
|
|
|
177
177
|
border-color: $white;
|
|
178
178
|
|
|
179
179
|
&:hover,
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
&:active,
|
|
181
|
+
&:focus {
|
|
182
182
|
border-color: transparent;
|
|
183
183
|
&:after {
|
|
184
184
|
border-color: $white;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_rollupPluginBabelHelpers-
|
|
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-7c829525.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=n(50),k=e(w,2),L=k[0],N=k[1],x=n(!1),D=e(x,2),M=D[0],R=D[1],A=n(0),T=e(A,2),j=T[0],B=T[1],C=n(0),P=e(C,2),X=P[0],H=P[1],I=n(0),K=e(I,2),S=K[0],U=K[1],q=n(0),z=e(q,2),F=z[0],G=z[1],J=f||r(null),O=r(null),Q=function(e){ee(e)},V=function(e){$(e)},W=function(e){ee(e)},Y=function(e){$(e)};o((function(){var e=s(J.current),t=s(O.current);U(function(e,t,n,r,o){return(t-n)/(o-r)*e}(L,e,t,0,100)),B(e),H(t)}),[]),o((function(){M&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(Q,V),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(W,Y))}),[M]),o((function(){!g&&b&&b(L)}),[L]);var Z=function(e){var t;if(!g){var n=s(J.current),r=s(O.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,O.current,r,te),R(!0),G(o),B(n),H(r),null===(t=O.current)||void 0===t||t.focus(),u(e)}},$=function(e){g||(R(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(Q,V),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(W,Y),u(e))},ee=function(e){if(!g&&M){var t=l(e);te(t-F),u(e)}},te=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,j,X,S);U(t),G(t+e),N(function(e,t,n,r,o,a){var i=(t-n)/(a-o),c=Math.round(e/i);return m(c,r,a)}(t,j,X,y,0,100))}};return t.createElement("div",{className:c.slider},v&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},v),t.createElement("div",{ref:J,className:a(c["slider__track-wrapper"],g?c["slider__track-wrapper--disabled"]:""),onMouseDown:Z,onTouchStart:Z,"data-testid":"tracker"},t.createElement("div",{className:a(c.slider__track,g?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:O,className:a(c.slider__trigger,g?c["slider__trigger--disabled"]:""),style:{left:"".concat(S,"px")},onKeyDown:function(e){if(!g){var t=(j-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||te(y*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||te(-y*t)}},role:"slider","aria-valuenow":L,"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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"../../_rollupPluginBabelHelpers-
|
|
1
|
+
import{a as s}from"../../_rollupPluginBabelHelpers-d0752906.js";import r from"react";import{c as e}from"../../index-9b84fabc.js";import a from"./styles.module.scss";var l=r.forwardRef((function(l,c){var p,x=l.size,m=void 0===x?"s":x,o=l.className,t=e(a.spacer,(s(p={},a["spacer--2xs"],"2xs"===m),s(p,a["spacer--xs"],"xs"===m),s(p,a["spacer--s"],"s"===m),s(p,a["spacer--m"],"m"===m),s(p,a["spacer--l"],"l"===m),s(p,a["spacer--xl"],"xl"===m),s(p,a["spacer--2xl"],"2xl"===m),s(p,a["spacer--3xl"],"3xl"===m),s(p,a["spacer--4xl"],"4xl"===m),s(p,a["spacer--5xl"],"5xl"===m),s(p,a["spacer--6xl"],"6xl"===m),p),o);return r.createElement("span",{className:t,ref:c})}));export default l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/components/Tile/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-
|
|
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 o}from"../../index-9b84fabc.js";import{a}from"../../constants-d919236e.js";import c from"./styles.module.scss";var n=r.forwardRef((function(e,i){var l,a=e.children,n=e.className,s=e.htmlMarkup,m=void 0===s?"span":s,d=e.highlighted,p=e.compact,f=o(c.tile__title,(t(l={},c["tile__title--highlighted"],d),t(l,c["tile__title--compact"],p),l),n),u=m;return r.createElement(u,{className:f,ref:i},a)})),s=r.forwardRef((function(n,s){var m,d=n.icon,p=n.title,f=n.className,u=void 0===f?"":f,h=n.description,g=n.fixed,_=void 0!==g&&g,v=n.highlighted,E=void 0!==v&&v,N=i(n,["icon","title","className","description","fixed","highlighted"]),b=l(!1),j=e(b,2),w=j[0],x=j[1],M=!h,k=o(c.tile,(t(m={},c["tile--fixed"],_),t(m,c["tile--compact"],M),t(m,c["tile--highlighted"],E),m),u),B=o(c["title-wrapper"],t({},c["title-wrapper--compact"],M));return r.createElement("a",Object.assign({ref:s,className:k,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},onFocus:function(){return x(!0)},onBlur:function(){return x(!1)}},N),r.createElement("div",{className:B},r.cloneElement(d,{size:a.Medium,isHovered:w,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:M})),h?r.createElement("p",{className:c.tile__description},h):null)}));s.Title=n;export default s;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,12 +8,17 @@ interface TitleProps {
|
|
|
8
8
|
/** Adds custom classes to the element. */
|
|
9
9
|
className?: string;
|
|
10
10
|
/** Adds top and bottom margin in rem. */
|
|
11
|
-
margin?: number;
|
|
11
|
+
margin?: number | TitleMargin;
|
|
12
12
|
/** Changes the underlying element of the title. */
|
|
13
13
|
htmlMarkup?: TitleTags;
|
|
14
14
|
/** Changes the appearance of the title. */
|
|
15
15
|
appearance?: TitleAppearances;
|
|
16
16
|
}
|
|
17
|
+
export interface TitleMargin {
|
|
18
|
+
marginTop: number;
|
|
19
|
+
marginBottom: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const instanceOfTitleMargin: (margin: any) => margin is TitleMargin;
|
|
17
22
|
declare const Title: React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
23
|
export default Title;
|
|
19
24
|
//# sourceMappingURL=Title.d.ts.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,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;CAC/B;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,147 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"props": {
|
|
3
|
-
"id": {
|
|
4
|
-
"defaultValue": null,
|
|
5
|
-
"description": "Gives a unique id to the title",
|
|
6
|
-
"name": "id",
|
|
7
|
-
"parent": {
|
|
8
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
9
|
-
"name": "TitleProps"
|
|
10
|
-
},
|
|
11
|
-
"declarations": [
|
|
12
|
-
{
|
|
13
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
14
|
-
"name": "TitleProps"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"required": false,
|
|
18
|
-
"type": {
|
|
19
|
-
"name": "string"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"className": {
|
|
23
|
-
"defaultValue": null,
|
|
24
|
-
"description": "Adds custom classes to the element.",
|
|
25
|
-
"name": "className",
|
|
26
|
-
"parent": {
|
|
27
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
28
|
-
"name": "TitleProps"
|
|
29
|
-
},
|
|
30
|
-
"declarations": [
|
|
31
|
-
{
|
|
32
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
33
|
-
"name": "TitleProps"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"required": false,
|
|
37
|
-
"type": {
|
|
38
|
-
"name": "string"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"margin": {
|
|
42
|
-
"defaultValue": null,
|
|
43
|
-
"description": "Adds top and bottom margin in rem.",
|
|
44
|
-
"name": "margin",
|
|
45
|
-
"parent": {
|
|
46
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
47
|
-
"name": "TitleProps"
|
|
48
|
-
},
|
|
49
|
-
"declarations": [
|
|
50
|
-
{
|
|
51
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
52
|
-
"name": "TitleProps"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"required": false,
|
|
56
|
-
"type": {
|
|
57
|
-
"name": "number"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"htmlMarkup": {
|
|
61
|
-
"defaultValue": null,
|
|
62
|
-
"description": "Changes the underlying element of the title.",
|
|
63
|
-
"name": "htmlMarkup",
|
|
64
|
-
"parent": {
|
|
65
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
66
|
-
"name": "TitleProps"
|
|
67
|
-
},
|
|
68
|
-
"declarations": [
|
|
69
|
-
{
|
|
70
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
71
|
-
"name": "TitleProps"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"required": false,
|
|
75
|
-
"type": {
|
|
76
|
-
"name": "enum",
|
|
77
|
-
"raw": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"span\" | undefined",
|
|
78
|
-
"value": [
|
|
79
|
-
{
|
|
80
|
-
"value": "undefined"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"value": "\"h1\""
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"value": "\"h2\""
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"value": "\"h3\""
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"value": "\"h4\""
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"value": "\"h5\""
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"value": "\"span\""
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"appearance": {
|
|
104
|
-
"defaultValue": null,
|
|
105
|
-
"description": "Changes the appearance of the title.",
|
|
106
|
-
"name": "appearance",
|
|
107
|
-
"parent": {
|
|
108
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
109
|
-
"name": "TitleProps"
|
|
110
|
-
},
|
|
111
|
-
"declarations": [
|
|
112
|
-
{
|
|
113
|
-
"fileName": "src/components/Title/Title.tsx",
|
|
114
|
-
"name": "TitleProps"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"required": false,
|
|
118
|
-
"type": {
|
|
119
|
-
"name": "enum",
|
|
120
|
-
"raw": "\"titleFeature\" | \"title1\" | \"title2\" | \"title3\" | \"title4\" | \"title5\" | undefined",
|
|
121
|
-
"value": [
|
|
122
|
-
{
|
|
123
|
-
"value": "undefined"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"value": "\"titleFeature\""
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"value": "\"title1\""
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"value": "\"title2\""
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"value": "\"title3\""
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"value": "\"title4\""
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"value": "\"title5\""
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
2
|
+
"props": {}
|
|
147
3
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{T as
|
|
1
|
+
import{T as s}from"../../Title-7c829525.js";export{T as default}from"../../Title-7c829525.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -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 Validation compontent */
|
|
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,OAAkB,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAIhF,UAAU,eAAe;IACvB,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,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,qFAoBrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|