@norges-domstoler/dds-components 10.1.0 → 10.1.1
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/dist/_virtual/_rollupPluginBabelHelpers.js +292 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +1628 -588
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/FileUploader/ErrorList.js +28 -0
- package/dist/components/FileUploader/File.js +69 -0
- package/dist/components/FileUploader/FileUploader.js +153 -0
- package/dist/components/FileUploader/FileUploader.tokens.js +31 -0
- package/dist/components/FileUploader/fileUploaderReducer.js +35 -0
- package/dist/components/FileUploader/useFileUploader.js +202 -0
- package/dist/components/FileUploader/utils.js +32 -0
- package/dist/components/FormGenerator/FormGenerator.js +239 -0
- package/dist/components/FormGenerator/FormGenerator.styles.js +39 -0
- package/dist/components/FormGenerator/FormGenerator.tokens.js +21 -0
- package/dist/components/Search/SearchSuggestions.js +1 -1
- package/dist/components/SkipToContent/SkipToContent.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -11,31 +11,34 @@ var ddsDesignTokens = require('@norges-domstoler/dds-design-tokens');
|
|
|
11
11
|
var ReactSelect = require('react-select');
|
|
12
12
|
var reactDom = require('@floating-ui/react-dom');
|
|
13
13
|
var reactDom$1 = require('react-dom');
|
|
14
|
+
var fileSelector = require('file-selector');
|
|
15
|
+
var accepted = require('attr-accept');
|
|
14
16
|
|
|
15
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
18
|
|
|
17
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
20
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
19
21
|
var ReactSelect__default = /*#__PURE__*/_interopDefaultLegacy(ReactSelect);
|
|
22
|
+
var accepted__default = /*#__PURE__*/_interopDefaultLegacy(accepted);
|
|
20
23
|
|
|
21
|
-
var colors$
|
|
24
|
+
var colors$u = ddsDesignTokens.ddsBaseTokens.colors,
|
|
22
25
|
fontPackages$5 = ddsDesignTokens.ddsBaseTokens.fontPackages,
|
|
23
|
-
spacing$
|
|
26
|
+
spacing$B = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
24
27
|
var textDefault$5 = ddsDesignTokens.ddsReferenceTokens.textDefault;
|
|
25
28
|
var a = {
|
|
26
29
|
base: {
|
|
27
|
-
color: colors$
|
|
30
|
+
color: colors$u.DdsColorInteractiveBase
|
|
28
31
|
},
|
|
29
32
|
margins: {
|
|
30
33
|
marginTop: 0,
|
|
31
34
|
marginBottom: fontPackages$5.body_sans_02.paragraph.paragraphSpacing
|
|
32
35
|
},
|
|
33
36
|
hover: {
|
|
34
|
-
color: colors$
|
|
37
|
+
color: colors$u.DdsColorInteractiveDark
|
|
35
38
|
},
|
|
36
39
|
icon: {
|
|
37
|
-
marginTop: spacing$
|
|
38
|
-
marginLeft: spacing$
|
|
40
|
+
marginTop: spacing$B.SizesDdsSpacingLocalX025,
|
|
41
|
+
marginLeft: spacing$B.SizesDdsSpacingLocalX025
|
|
39
42
|
}
|
|
40
43
|
};
|
|
41
44
|
var bold = {
|
|
@@ -49,7 +52,7 @@ var headingSans01 = {
|
|
|
49
52
|
margins: {
|
|
50
53
|
marginTop: 0,
|
|
51
54
|
marginBottom: fontPackages$5.heading_sans_01.paragraph.paragraphSpacing,
|
|
52
|
-
paddingTop: spacing$
|
|
55
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans01Top
|
|
53
56
|
}
|
|
54
57
|
};
|
|
55
58
|
var headingSans02 = {
|
|
@@ -60,7 +63,7 @@ var headingSans02 = {
|
|
|
60
63
|
margins: {
|
|
61
64
|
marginTop: 0,
|
|
62
65
|
marginBottom: fontPackages$5.heading_sans_02.paragraph.paragraphSpacing,
|
|
63
|
-
paddingTop: spacing$
|
|
66
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans02Top
|
|
64
67
|
}
|
|
65
68
|
};
|
|
66
69
|
var headingSans03 = {
|
|
@@ -71,7 +74,7 @@ var headingSans03 = {
|
|
|
71
74
|
margins: {
|
|
72
75
|
marginTop: 0,
|
|
73
76
|
marginBottom: fontPackages$5.heading_sans_03.paragraph.paragraphSpacing,
|
|
74
|
-
paddingTop: spacing$
|
|
77
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans03Top
|
|
75
78
|
}
|
|
76
79
|
};
|
|
77
80
|
var headingSans04 = {
|
|
@@ -82,7 +85,7 @@ var headingSans04 = {
|
|
|
82
85
|
margins: {
|
|
83
86
|
marginTop: 0,
|
|
84
87
|
marginBottom: fontPackages$5.heading_sans_04.paragraph.paragraphSpacing,
|
|
85
|
-
paddingTop: spacing$
|
|
88
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans04Top
|
|
86
89
|
}
|
|
87
90
|
};
|
|
88
91
|
var headingSans05 = {
|
|
@@ -93,7 +96,7 @@ var headingSans05 = {
|
|
|
93
96
|
margins: {
|
|
94
97
|
marginTop: 0,
|
|
95
98
|
marginBottom: fontPackages$5.heading_sans_05.paragraph.paragraphSpacing,
|
|
96
|
-
paddingTop: spacing$
|
|
99
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans05Top
|
|
97
100
|
}
|
|
98
101
|
};
|
|
99
102
|
var headingSans06 = {
|
|
@@ -104,7 +107,7 @@ var headingSans06 = {
|
|
|
104
107
|
margins: {
|
|
105
108
|
marginTop: 0,
|
|
106
109
|
marginBottom: fontPackages$5.heading_sans_06.paragraph.paragraphSpacing,
|
|
107
|
-
paddingTop: spacing$
|
|
110
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans06Top
|
|
108
111
|
}
|
|
109
112
|
};
|
|
110
113
|
var headingSans07 = {
|
|
@@ -115,7 +118,7 @@ var headingSans07 = {
|
|
|
115
118
|
margins: {
|
|
116
119
|
marginTop: 0,
|
|
117
120
|
marginBottom: fontPackages$5.heading_sans_07.paragraph.paragraphSpacing,
|
|
118
|
-
paddingTop: spacing$
|
|
121
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans07Top
|
|
119
122
|
}
|
|
120
123
|
};
|
|
121
124
|
var headingSans08 = {
|
|
@@ -126,7 +129,7 @@ var headingSans08 = {
|
|
|
126
129
|
margins: {
|
|
127
130
|
marginTop: 0,
|
|
128
131
|
marginBottom: fontPackages$5.heading_sans_08.paragraph.paragraphSpacing,
|
|
129
|
-
paddingTop: spacing$
|
|
132
|
+
paddingTop: spacing$B.SpacingDdsSpacingPaddingTopHeadingSans08Top
|
|
130
133
|
}
|
|
131
134
|
};
|
|
132
135
|
var bodySans01 = {
|
|
@@ -221,7 +224,7 @@ var leadSans05 = {
|
|
|
221
224
|
};
|
|
222
225
|
var supportingStyleLabel01 = {
|
|
223
226
|
base: {
|
|
224
|
-
color: colors$
|
|
227
|
+
color: colors$u.DdsColorNeutralsGray7,
|
|
225
228
|
font: fontPackages$5.supportingStyle_label_01.base,
|
|
226
229
|
margin: 0
|
|
227
230
|
},
|
|
@@ -232,7 +235,7 @@ var supportingStyleLabel01 = {
|
|
|
232
235
|
};
|
|
233
236
|
var supportingStyleHelperText01 = {
|
|
234
237
|
base: {
|
|
235
|
-
color: colors$
|
|
238
|
+
color: colors$u.DdsColorNeutralsGray6,
|
|
236
239
|
font: fontPackages$5.supportingStyle_helpertext_01.base,
|
|
237
240
|
margin: 0
|
|
238
241
|
},
|
|
@@ -243,7 +246,7 @@ var supportingStyleHelperText01 = {
|
|
|
243
246
|
};
|
|
244
247
|
var supportingStylePlaceholderText01 = {
|
|
245
248
|
base: {
|
|
246
|
-
color: colors$
|
|
249
|
+
color: colors$u.DdsColorNeutralsGray6,
|
|
247
250
|
font: fontPackages$5.supportingStyle_placeholdertext_01.base,
|
|
248
251
|
margin: 0
|
|
249
252
|
},
|
|
@@ -254,7 +257,7 @@ var supportingStylePlaceholderText01 = {
|
|
|
254
257
|
};
|
|
255
258
|
var supportingStylePlaceholderText02 = {
|
|
256
259
|
base: {
|
|
257
|
-
color: colors$
|
|
260
|
+
color: colors$u.DdsColorNeutralsGray6,
|
|
258
261
|
font: fontPackages$5.supportingStyle_placeholdertext_02.base,
|
|
259
262
|
margin: 0
|
|
260
263
|
},
|
|
@@ -265,7 +268,7 @@ var supportingStylePlaceholderText02 = {
|
|
|
265
268
|
};
|
|
266
269
|
var supportingStylePlaceholderText03 = {
|
|
267
270
|
base: {
|
|
268
|
-
color: colors$
|
|
271
|
+
color: colors$u.DdsColorNeutralsGray6,
|
|
269
272
|
font: fontPackages$5.supportingStyle_placeholdertext_03.base,
|
|
270
273
|
margin: 0
|
|
271
274
|
},
|
|
@@ -345,8 +348,8 @@ var visibilityTransition = function visibilityTransition(open) {
|
|
|
345
348
|
|
|
346
349
|
var Border$1 = ddsDesignTokens.ddsBaseTokens.border,
|
|
347
350
|
Colors$2 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
348
|
-
spacing$
|
|
349
|
-
var outlineOffset = spacing$
|
|
351
|
+
spacing$A = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
352
|
+
var outlineOffset = spacing$A.SizesDdsSpacingLocalX0125;
|
|
350
353
|
var focusVisible = {
|
|
351
354
|
outline: "".concat(Border$1.BordersDdsBorderFocusBaseStrokeWeight, " ").concat(Border$1.BordersDdsBorderFocusBaseStroke, " solid"),
|
|
352
355
|
outlineOffset: outlineOffset
|
|
@@ -416,10 +419,10 @@ var dangerInputfield = {
|
|
|
416
419
|
boxShadow: "0 0 0 1px ".concat(Colors.DdsColorDangerBase)
|
|
417
420
|
};
|
|
418
421
|
|
|
419
|
-
var colors$
|
|
422
|
+
var colors$t = ddsDesignTokens.ddsBaseTokens.colors;
|
|
420
423
|
var selection = {
|
|
421
|
-
color: colors$
|
|
422
|
-
backgroundColor: colors$
|
|
424
|
+
color: colors$t.DdsColorNeutralsGray9,
|
|
425
|
+
backgroundColor: colors$t.DdsColorTertiaryLightest
|
|
423
426
|
};
|
|
424
427
|
|
|
425
428
|
var normalizeButton = {
|
|
@@ -572,7 +575,7 @@ var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineH
|
|
|
572
575
|
return lineHeight * 0.01 * fontSize;
|
|
573
576
|
};
|
|
574
577
|
|
|
575
|
-
var colors$
|
|
578
|
+
var colors$s = ddsDesignTokens.ddsBaseTokens.colors;
|
|
576
579
|
var textDefault$4 = ddsDesignTokens.ddsReferenceTokens.textDefault;
|
|
577
580
|
var changeRGBAAlpha = function changeRGBAAlpha(value, alpha) {
|
|
578
581
|
if (value.slice(0, 5) !== 'rgba(' || value.slice(-1) !== ')') {
|
|
@@ -581,22 +584,22 @@ var changeRGBAAlpha = function changeRGBAAlpha(value, alpha) {
|
|
|
581
584
|
return value.replace(/[\d\.]+\)$/g, alpha.toString() + ')');
|
|
582
585
|
};
|
|
583
586
|
var textColors = {
|
|
584
|
-
interactive: colors$
|
|
585
|
-
primary: colors$
|
|
586
|
-
danger: colors$
|
|
587
|
-
success: colors$
|
|
588
|
-
warning: colors$
|
|
587
|
+
interactive: colors$s.DdsColorInteractiveBase,
|
|
588
|
+
primary: colors$s.DdsColorPrimaryBase,
|
|
589
|
+
danger: colors$s.DdsColorDangerBase,
|
|
590
|
+
success: colors$s.DdsColorSuccessBase,
|
|
591
|
+
warning: colors$s.DdsColorWarningBase,
|
|
589
592
|
onLight: textDefault$4.textColor,
|
|
590
|
-
onDark: colors$
|
|
591
|
-
gray1: colors$
|
|
592
|
-
gray2: colors$
|
|
593
|
-
gray3: colors$
|
|
594
|
-
gray4: colors$
|
|
595
|
-
gray5: colors$
|
|
596
|
-
gray6: colors$
|
|
597
|
-
gray7: colors$
|
|
598
|
-
gray8: colors$
|
|
599
|
-
gray9: colors$
|
|
593
|
+
onDark: colors$s.DdsColorNeutralsWhite,
|
|
594
|
+
gray1: colors$s.DdsColorNeutralsGray1,
|
|
595
|
+
gray2: colors$s.DdsColorNeutralsGray2,
|
|
596
|
+
gray3: colors$s.DdsColorNeutralsGray3,
|
|
597
|
+
gray4: colors$s.DdsColorNeutralsGray4,
|
|
598
|
+
gray5: colors$s.DdsColorNeutralsGray5,
|
|
599
|
+
gray6: colors$s.DdsColorNeutralsGray6,
|
|
600
|
+
gray7: colors$s.DdsColorNeutralsGray7,
|
|
601
|
+
gray8: colors$s.DdsColorNeutralsGray8,
|
|
602
|
+
gray9: colors$s.DdsColorNeutralsGray9
|
|
600
603
|
};
|
|
601
604
|
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
602
605
|
function isTextColor(color) {
|
|
@@ -777,8 +780,8 @@ var HiddenInput = styled__default["default"].input.withConfig({
|
|
|
777
780
|
componentId: "sc-1gazxvz-0"
|
|
778
781
|
})(["clip:rect(0 0 0 0);position:absolute;height:1px;width:1px;margin:0;"]);
|
|
779
782
|
|
|
780
|
-
var colors$
|
|
781
|
-
spacing$
|
|
783
|
+
var colors$r = ddsDesignTokens.ddsBaseTokens.colors,
|
|
784
|
+
spacing$z = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
782
785
|
border$d = ddsDesignTokens.ddsBaseTokens.border;
|
|
783
786
|
var TextInput$1 = ddsDesignTokens.ddsReferenceTokens.textInput;
|
|
784
787
|
var inputTypographyTypes = {
|
|
@@ -790,32 +793,32 @@ var input$5 = {
|
|
|
790
793
|
base: {
|
|
791
794
|
color: TextInput$1.input.textColor,
|
|
792
795
|
borderRadius: TextInput$1.input.borderRadius,
|
|
793
|
-
border: "".concat(border$d.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$
|
|
796
|
+
border: "".concat(border$d.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$r.DdsColorNeutralsGray5),
|
|
794
797
|
borderColor: TextInput$1.input.borderColor,
|
|
795
|
-
backgroundColor: colors$
|
|
796
|
-
padding: "".concat(spacing$
|
|
798
|
+
backgroundColor: colors$r.DdsColorNeutralsWhite,
|
|
799
|
+
padding: "".concat(spacing$z.SizesDdsSpacingLocalX075, " ").concat(spacing$z.SizesDdsSpacingLocalX1, " ").concat(spacing$z.SizesDdsSpacingLocalX075, " ").concat(spacing$z.SizesDdsSpacingLocalX075)
|
|
797
800
|
},
|
|
798
801
|
disabled: {
|
|
799
|
-
color: colors$
|
|
800
|
-
backgroundColor: colors$
|
|
802
|
+
color: colors$r.DdsColorNeutralsGray7,
|
|
803
|
+
backgroundColor: colors$r.DdsColorNeutralsGray1
|
|
801
804
|
},
|
|
802
805
|
readOnly: {
|
|
803
806
|
backgroundColor: 'transparent'
|
|
804
807
|
},
|
|
805
808
|
sizes: {
|
|
806
809
|
medium: {
|
|
807
|
-
padding: spacing$
|
|
810
|
+
padding: spacing$z.SizesDdsSpacingLocalX075
|
|
808
811
|
},
|
|
809
812
|
small: {
|
|
810
|
-
padding: "".concat(spacing$
|
|
813
|
+
padding: "".concat(spacing$z.SizesDdsSpacingLocalX05, " ").concat(spacing$z.SizesDdsSpacingLocalX075, " ").concat(spacing$z.SizesDdsSpacingLocalX05, " ").concat(spacing$z.SizesDdsSpacingLocalX075)
|
|
811
814
|
},
|
|
812
815
|
tiny: {
|
|
813
|
-
padding: "".concat(spacing$
|
|
816
|
+
padding: "".concat(spacing$z.SizesDdsSpacingLocalX025, " ").concat(spacing$z.SizesDdsSpacingLocalX05, " ").concat(spacing$z.SizesDdsSpacingLocalX025, " ").concat(spacing$z.SizesDdsSpacingLocalX05)
|
|
814
817
|
}
|
|
815
818
|
}
|
|
816
819
|
};
|
|
817
820
|
var container$g = {
|
|
818
|
-
gap: spacing$
|
|
821
|
+
gap: spacing$z.SizesDdsSpacingLocalX0125
|
|
819
822
|
};
|
|
820
823
|
var inputTokens = {
|
|
821
824
|
input: input$5,
|
|
@@ -889,21 +892,21 @@ function Icon(props) {
|
|
|
889
892
|
}));
|
|
890
893
|
}
|
|
891
894
|
|
|
892
|
-
var colors$
|
|
893
|
-
spacing$
|
|
895
|
+
var colors$q = ddsDesignTokens.ddsBaseTokens.colors,
|
|
896
|
+
spacing$y = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
894
897
|
var message = {
|
|
895
898
|
tip: {
|
|
896
|
-
backgroundColor: colors$
|
|
899
|
+
backgroundColor: colors$q.DdsColorNeutralsWhite
|
|
897
900
|
},
|
|
898
901
|
error: {
|
|
899
|
-
padding: "".concat(spacing$
|
|
900
|
-
color: colors$
|
|
901
|
-
backgroundColor: colors$
|
|
902
|
-
gap: spacing$
|
|
902
|
+
padding: "".concat(spacing$y.SizesDdsSpacingLocalX025, " ").concat(spacing$y.SizesDdsSpacingLocalX05),
|
|
903
|
+
color: colors$q.DdsColorDangerBase,
|
|
904
|
+
backgroundColor: colors$q.DdsColorDangerLightest,
|
|
905
|
+
gap: spacing$y.SizesDdsSpacingLocalX05
|
|
903
906
|
}
|
|
904
907
|
};
|
|
905
908
|
var icon$a = {
|
|
906
|
-
marginTop: spacing$
|
|
909
|
+
marginTop: spacing$y.SizesDdsSpacingLocalX0125
|
|
907
910
|
};
|
|
908
911
|
var inputMessageTokens = {
|
|
909
912
|
message: message,
|
|
@@ -2114,11 +2117,11 @@ var renderInputMessage = function renderInputMessage(tip, tipId, errorMessage, e
|
|
|
2114
2117
|
});
|
|
2115
2118
|
};
|
|
2116
2119
|
|
|
2117
|
-
var colors$
|
|
2120
|
+
var colors$p = ddsDesignTokens.ddsBaseTokens.colors,
|
|
2118
2121
|
borderRadius$9 = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
2119
2122
|
font = ddsDesignTokens.ddsBaseTokens.font;
|
|
2120
2123
|
var paper = {
|
|
2121
|
-
backgroundColor: colors$
|
|
2124
|
+
backgroundColor: colors$p.DdsColorNeutralsWhite,
|
|
2122
2125
|
borderRadius: borderRadius$9.RadiiDdsBorderRadius1Radius,
|
|
2123
2126
|
fontFamily: font.DdsFontBodySans01FontFamily
|
|
2124
2127
|
};
|
|
@@ -2309,38 +2312,38 @@ var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
|
2309
2312
|
var selectionControlSizeNumberPx = 18;
|
|
2310
2313
|
var selectionControlSize = "".concat(selectionControlSizeNumberPx, "px");
|
|
2311
2314
|
|
|
2312
|
-
var colors$
|
|
2313
|
-
spacing$
|
|
2315
|
+
var colors$o = ddsDesignTokens.ddsBaseTokens.colors,
|
|
2316
|
+
spacing$x = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
2314
2317
|
borderRadius$8 = ddsDesignTokens.ddsBaseTokens.borderRadius;
|
|
2315
2318
|
var checkmark$1 = {
|
|
2316
2319
|
checkbox: {
|
|
2317
|
-
borderColor: colors$
|
|
2320
|
+
borderColor: colors$o.DdsColorNeutralsWhite
|
|
2318
2321
|
},
|
|
2319
2322
|
radio: {
|
|
2320
|
-
backgroundColor: colors$
|
|
2321
|
-
height: spacing$
|
|
2322
|
-
width: spacing$
|
|
2323
|
-
left: "calc(50% - ".concat(spacing$
|
|
2324
|
-
top: "calc(50% - ".concat(spacing$
|
|
2323
|
+
backgroundColor: colors$o.DdsColorNeutralsWhite,
|
|
2324
|
+
height: spacing$x.SizesDdsSpacingLocalX05,
|
|
2325
|
+
width: spacing$x.SizesDdsSpacingLocalX05,
|
|
2326
|
+
left: "calc(50% - ".concat(spacing$x.SizesDdsSpacingLocalX05NumberPx / 2, "px)"),
|
|
2327
|
+
top: "calc(50% - ".concat(spacing$x.SizesDdsSpacingLocalX05NumberPx / 2, "px)")
|
|
2325
2328
|
}
|
|
2326
2329
|
};
|
|
2327
2330
|
var selectionControl$2 = {
|
|
2328
2331
|
base: {
|
|
2329
2332
|
border: '1px solid',
|
|
2330
|
-
borderColor: colors$
|
|
2331
|
-
backgroundColor: colors$
|
|
2333
|
+
borderColor: colors$o.DdsColorNeutralsGray5,
|
|
2334
|
+
backgroundColor: colors$o.DdsColorNeutralsWhite,
|
|
2332
2335
|
borderRadius: borderRadius$8.RadiiDdsBorderRadius1Radius,
|
|
2333
2336
|
height: selectionControlSize,
|
|
2334
2337
|
width: selectionControlSize
|
|
2335
2338
|
},
|
|
2336
2339
|
hover: {
|
|
2337
2340
|
base: {
|
|
2338
|
-
backgroundColor: colors$
|
|
2341
|
+
backgroundColor: colors$o.DdsColorInteractiveLightest,
|
|
2339
2342
|
boxShadow: "inset 0 0 0 1px ".concat(hoverInputfield.borderColor),
|
|
2340
2343
|
borderColor: hoverInputfield.borderColor
|
|
2341
2344
|
},
|
|
2342
2345
|
danger: {
|
|
2343
|
-
backgroundColor: colors$
|
|
2346
|
+
backgroundColor: colors$o.DdsColorDangerLightest,
|
|
2344
2347
|
boxShadow: "inset 0 0 0 1px ".concat(dangerInputfield.borderColor),
|
|
2345
2348
|
borderColor: dangerInputfield.borderColor
|
|
2346
2349
|
}
|
|
@@ -2350,44 +2353,44 @@ var selectionControl$2 = {
|
|
|
2350
2353
|
borderColor: dangerInputfield.borderColor
|
|
2351
2354
|
},
|
|
2352
2355
|
disabled: {
|
|
2353
|
-
borderColor: colors$
|
|
2356
|
+
borderColor: colors$o.DdsColorNeutralsGray5
|
|
2354
2357
|
},
|
|
2355
2358
|
readOnly: {
|
|
2356
2359
|
backgroundColor: 'transparent'
|
|
2357
2360
|
},
|
|
2358
2361
|
checked: {
|
|
2359
2362
|
base: {
|
|
2360
|
-
borderColor: colors$
|
|
2361
|
-
backgroundColor: colors$
|
|
2363
|
+
borderColor: colors$o.DdsColorInteractiveBase,
|
|
2364
|
+
backgroundColor: colors$o.DdsColorInteractiveBase
|
|
2362
2365
|
},
|
|
2363
2366
|
hover: {
|
|
2364
|
-
backgroundColor: colors$
|
|
2365
|
-
boxShadow: "inset 0 0 0 1px ".concat(colors$
|
|
2366
|
-
borderColor: colors$
|
|
2367
|
+
backgroundColor: colors$o.DdsColorInteractiveDark,
|
|
2368
|
+
boxShadow: "inset 0 0 0 1px ".concat(colors$o.DdsColorInteractiveDark),
|
|
2369
|
+
borderColor: colors$o.DdsColorInteractiveDark
|
|
2367
2370
|
},
|
|
2368
2371
|
disabled: {
|
|
2369
|
-
borderColor: colors$
|
|
2370
|
-
backgroundColor: colors$
|
|
2372
|
+
borderColor: colors$o.DdsColorNeutralsGray6,
|
|
2373
|
+
backgroundColor: colors$o.DdsColorNeutralsGray6
|
|
2371
2374
|
},
|
|
2372
2375
|
readOnly: {
|
|
2373
|
-
borderColor: colors$
|
|
2374
|
-
backgroundColor: colors$
|
|
2376
|
+
borderColor: colors$o.DdsColorNeutralsGray6,
|
|
2377
|
+
backgroundColor: colors$o.DdsColorNeutralsGray6
|
|
2375
2378
|
}
|
|
2376
2379
|
},
|
|
2377
2380
|
checkbox: {
|
|
2378
2381
|
indeterminate: {
|
|
2379
|
-
borderColor: colors$
|
|
2380
|
-
backgroundColor: colors$
|
|
2382
|
+
borderColor: colors$o.DdsColorInteractiveBase,
|
|
2383
|
+
backgroundColor: colors$o.DdsColorInteractiveBase
|
|
2381
2384
|
}
|
|
2382
2385
|
}
|
|
2383
2386
|
};
|
|
2384
2387
|
var container$e = {
|
|
2385
|
-
color: colors$
|
|
2388
|
+
color: colors$o.DdsColorNeutralsGray9,
|
|
2386
2389
|
disabled: {
|
|
2387
|
-
color: colors$
|
|
2390
|
+
color: colors$o.DdsColorNeutralsGray6
|
|
2388
2391
|
},
|
|
2389
2392
|
withLabel: {
|
|
2390
|
-
paddingLeft: "".concat(selectionControlSizeNumberPx + spacing$
|
|
2393
|
+
paddingLeft: "".concat(selectionControlSizeNumberPx + spacing$x.SizesDdsSpacingLocalX05NumberPx, "px")
|
|
2391
2394
|
},
|
|
2392
2395
|
noLabel: {
|
|
2393
2396
|
padding: "".concat(selectionControlSizeNumberPx / 2, "px")
|
|
@@ -2395,14 +2398,14 @@ var container$e = {
|
|
|
2395
2398
|
};
|
|
2396
2399
|
var groupContainer$1 = {
|
|
2397
2400
|
row: {
|
|
2398
|
-
gap: spacing$
|
|
2401
|
+
gap: spacing$x.SizesDdsSpacingLocalX075
|
|
2399
2402
|
},
|
|
2400
2403
|
column: {
|
|
2401
|
-
gap: spacing$
|
|
2404
|
+
gap: spacing$x.SizesDdsSpacingLocalX05
|
|
2402
2405
|
}
|
|
2403
2406
|
};
|
|
2404
2407
|
var outerGroupContainer$1 = {
|
|
2405
|
-
gap: spacing$
|
|
2408
|
+
gap: spacing$x.SizesDdsSpacingLocalX0125
|
|
2406
2409
|
};
|
|
2407
2410
|
var selectionControlTokens = {
|
|
2408
2411
|
selectionControl: selectionControl$2,
|
|
@@ -2529,6 +2532,297 @@ var RadioButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2529
2532
|
}));
|
|
2530
2533
|
});
|
|
2531
2534
|
|
|
2535
|
+
function _regeneratorRuntime() {
|
|
2536
|
+
_regeneratorRuntime = function () {
|
|
2537
|
+
return exports;
|
|
2538
|
+
};
|
|
2539
|
+
var exports = {},
|
|
2540
|
+
Op = Object.prototype,
|
|
2541
|
+
hasOwn = Op.hasOwnProperty,
|
|
2542
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
2543
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
2544
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
2545
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
2546
|
+
function define(obj, key, value) {
|
|
2547
|
+
return Object.defineProperty(obj, key, {
|
|
2548
|
+
value: value,
|
|
2549
|
+
enumerable: !0,
|
|
2550
|
+
configurable: !0,
|
|
2551
|
+
writable: !0
|
|
2552
|
+
}), obj[key];
|
|
2553
|
+
}
|
|
2554
|
+
try {
|
|
2555
|
+
define({}, "");
|
|
2556
|
+
} catch (err) {
|
|
2557
|
+
define = function (obj, key, value) {
|
|
2558
|
+
return obj[key] = value;
|
|
2559
|
+
};
|
|
2560
|
+
}
|
|
2561
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
2562
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
2563
|
+
generator = Object.create(protoGenerator.prototype),
|
|
2564
|
+
context = new Context(tryLocsList || []);
|
|
2565
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
2566
|
+
var state = "suspendedStart";
|
|
2567
|
+
return function (method, arg) {
|
|
2568
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
2569
|
+
if ("completed" === state) {
|
|
2570
|
+
if ("throw" === method) throw arg;
|
|
2571
|
+
return doneResult();
|
|
2572
|
+
}
|
|
2573
|
+
for (context.method = method, context.arg = arg;;) {
|
|
2574
|
+
var delegate = context.delegate;
|
|
2575
|
+
if (delegate) {
|
|
2576
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
2577
|
+
if (delegateResult) {
|
|
2578
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
2579
|
+
return delegateResult;
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
2583
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
2584
|
+
context.dispatchException(context.arg);
|
|
2585
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
2586
|
+
state = "executing";
|
|
2587
|
+
var record = tryCatch(innerFn, self, context);
|
|
2588
|
+
if ("normal" === record.type) {
|
|
2589
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
2590
|
+
return {
|
|
2591
|
+
value: record.arg,
|
|
2592
|
+
done: context.done
|
|
2593
|
+
};
|
|
2594
|
+
}
|
|
2595
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
2596
|
+
}
|
|
2597
|
+
};
|
|
2598
|
+
}(innerFn, self, context), generator;
|
|
2599
|
+
}
|
|
2600
|
+
function tryCatch(fn, obj, arg) {
|
|
2601
|
+
try {
|
|
2602
|
+
return {
|
|
2603
|
+
type: "normal",
|
|
2604
|
+
arg: fn.call(obj, arg)
|
|
2605
|
+
};
|
|
2606
|
+
} catch (err) {
|
|
2607
|
+
return {
|
|
2608
|
+
type: "throw",
|
|
2609
|
+
arg: err
|
|
2610
|
+
};
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
exports.wrap = wrap;
|
|
2614
|
+
var ContinueSentinel = {};
|
|
2615
|
+
function Generator() {}
|
|
2616
|
+
function GeneratorFunction() {}
|
|
2617
|
+
function GeneratorFunctionPrototype() {}
|
|
2618
|
+
var IteratorPrototype = {};
|
|
2619
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
2620
|
+
return this;
|
|
2621
|
+
});
|
|
2622
|
+
var getProto = Object.getPrototypeOf,
|
|
2623
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
2624
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
2625
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
2626
|
+
function defineIteratorMethods(prototype) {
|
|
2627
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
2628
|
+
define(prototype, method, function (arg) {
|
|
2629
|
+
return this._invoke(method, arg);
|
|
2630
|
+
});
|
|
2631
|
+
});
|
|
2632
|
+
}
|
|
2633
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
2634
|
+
function invoke(method, arg, resolve, reject) {
|
|
2635
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
2636
|
+
if ("throw" !== record.type) {
|
|
2637
|
+
var result = record.arg,
|
|
2638
|
+
value = result.value;
|
|
2639
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
2640
|
+
invoke("next", value, resolve, reject);
|
|
2641
|
+
}, function (err) {
|
|
2642
|
+
invoke("throw", err, resolve, reject);
|
|
2643
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
2644
|
+
result.value = unwrapped, resolve(result);
|
|
2645
|
+
}, function (error) {
|
|
2646
|
+
return invoke("throw", error, resolve, reject);
|
|
2647
|
+
});
|
|
2648
|
+
}
|
|
2649
|
+
reject(record.arg);
|
|
2650
|
+
}
|
|
2651
|
+
var previousPromise;
|
|
2652
|
+
this._invoke = function (method, arg) {
|
|
2653
|
+
function callInvokeWithMethodAndArg() {
|
|
2654
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
2655
|
+
invoke(method, arg, resolve, reject);
|
|
2656
|
+
});
|
|
2657
|
+
}
|
|
2658
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
2659
|
+
};
|
|
2660
|
+
}
|
|
2661
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
2662
|
+
var method = delegate.iterator[context.method];
|
|
2663
|
+
if (undefined === method) {
|
|
2664
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
2665
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
2666
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
2667
|
+
}
|
|
2668
|
+
return ContinueSentinel;
|
|
2669
|
+
}
|
|
2670
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
2671
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
2672
|
+
var info = record.arg;
|
|
2673
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
2674
|
+
}
|
|
2675
|
+
function pushTryEntry(locs) {
|
|
2676
|
+
var entry = {
|
|
2677
|
+
tryLoc: locs[0]
|
|
2678
|
+
};
|
|
2679
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
2680
|
+
}
|
|
2681
|
+
function resetTryEntry(entry) {
|
|
2682
|
+
var record = entry.completion || {};
|
|
2683
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
2684
|
+
}
|
|
2685
|
+
function Context(tryLocsList) {
|
|
2686
|
+
this.tryEntries = [{
|
|
2687
|
+
tryLoc: "root"
|
|
2688
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
2689
|
+
}
|
|
2690
|
+
function values(iterable) {
|
|
2691
|
+
if (iterable) {
|
|
2692
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
2693
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
2694
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
2695
|
+
if (!isNaN(iterable.length)) {
|
|
2696
|
+
var i = -1,
|
|
2697
|
+
next = function next() {
|
|
2698
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
2699
|
+
return next.value = undefined, next.done = !0, next;
|
|
2700
|
+
};
|
|
2701
|
+
return next.next = next;
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
return {
|
|
2705
|
+
next: doneResult
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
function doneResult() {
|
|
2709
|
+
return {
|
|
2710
|
+
value: undefined,
|
|
2711
|
+
done: !0
|
|
2712
|
+
};
|
|
2713
|
+
}
|
|
2714
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
2715
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
2716
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
2717
|
+
}, exports.mark = function (genFun) {
|
|
2718
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
2719
|
+
}, exports.awrap = function (arg) {
|
|
2720
|
+
return {
|
|
2721
|
+
__await: arg
|
|
2722
|
+
};
|
|
2723
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
2724
|
+
return this;
|
|
2725
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
2726
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
2727
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
2728
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
2729
|
+
return result.done ? result.value : iter.next();
|
|
2730
|
+
});
|
|
2731
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
2732
|
+
return this;
|
|
2733
|
+
}), define(Gp, "toString", function () {
|
|
2734
|
+
return "[object Generator]";
|
|
2735
|
+
}), exports.keys = function (object) {
|
|
2736
|
+
var keys = [];
|
|
2737
|
+
for (var key in object) keys.push(key);
|
|
2738
|
+
return keys.reverse(), function next() {
|
|
2739
|
+
for (; keys.length;) {
|
|
2740
|
+
var key = keys.pop();
|
|
2741
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
2742
|
+
}
|
|
2743
|
+
return next.done = !0, next;
|
|
2744
|
+
};
|
|
2745
|
+
}, exports.values = values, Context.prototype = {
|
|
2746
|
+
constructor: Context,
|
|
2747
|
+
reset: function (skipTempReset) {
|
|
2748
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
2749
|
+
},
|
|
2750
|
+
stop: function () {
|
|
2751
|
+
this.done = !0;
|
|
2752
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
2753
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
2754
|
+
return this.rval;
|
|
2755
|
+
},
|
|
2756
|
+
dispatchException: function (exception) {
|
|
2757
|
+
if (this.done) throw exception;
|
|
2758
|
+
var context = this;
|
|
2759
|
+
function handle(loc, caught) {
|
|
2760
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
2761
|
+
}
|
|
2762
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2763
|
+
var entry = this.tryEntries[i],
|
|
2764
|
+
record = entry.completion;
|
|
2765
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
2766
|
+
if (entry.tryLoc <= this.prev) {
|
|
2767
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
2768
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
2769
|
+
if (hasCatch && hasFinally) {
|
|
2770
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
2771
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
2772
|
+
} else if (hasCatch) {
|
|
2773
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
2774
|
+
} else {
|
|
2775
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
2776
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
},
|
|
2781
|
+
abrupt: function (type, arg) {
|
|
2782
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2783
|
+
var entry = this.tryEntries[i];
|
|
2784
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
2785
|
+
var finallyEntry = entry;
|
|
2786
|
+
break;
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
2790
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
2791
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
2792
|
+
},
|
|
2793
|
+
complete: function (record, afterLoc) {
|
|
2794
|
+
if ("throw" === record.type) throw record.arg;
|
|
2795
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
2796
|
+
},
|
|
2797
|
+
finish: function (finallyLoc) {
|
|
2798
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2799
|
+
var entry = this.tryEntries[i];
|
|
2800
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
2801
|
+
}
|
|
2802
|
+
},
|
|
2803
|
+
catch: function (tryLoc) {
|
|
2804
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2805
|
+
var entry = this.tryEntries[i];
|
|
2806
|
+
if (entry.tryLoc === tryLoc) {
|
|
2807
|
+
var record = entry.completion;
|
|
2808
|
+
if ("throw" === record.type) {
|
|
2809
|
+
var thrown = record.arg;
|
|
2810
|
+
resetTryEntry(entry);
|
|
2811
|
+
}
|
|
2812
|
+
return thrown;
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
throw new Error("illegal catch attempt");
|
|
2816
|
+
},
|
|
2817
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
2818
|
+
return this.delegate = {
|
|
2819
|
+
iterator: values(iterable),
|
|
2820
|
+
resultName: resultName,
|
|
2821
|
+
nextLoc: nextLoc
|
|
2822
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
2823
|
+
}
|
|
2824
|
+
}, exports;
|
|
2825
|
+
}
|
|
2532
2826
|
function _typeof(obj) {
|
|
2533
2827
|
"@babel/helpers - typeof";
|
|
2534
2828
|
|
|
@@ -2848,9 +3142,9 @@ var CheckboxGroup = function CheckboxGroup(props) {
|
|
|
2848
3142
|
}));
|
|
2849
3143
|
};
|
|
2850
3144
|
|
|
2851
|
-
var colors$
|
|
3145
|
+
var colors$n = ddsDesignTokens.ddsBaseTokens.colors,
|
|
2852
3146
|
border$b = ddsDesignTokens.ddsBaseTokens.border,
|
|
2853
|
-
spacing$
|
|
3147
|
+
spacing$w = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
2854
3148
|
fontPackages$4 = ddsDesignTokens.ddsBaseTokens.fontPackages,
|
|
2855
3149
|
borderRadius$7 = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
2856
3150
|
outerShadow$1 = ddsDesignTokens.ddsBaseTokens.outerShadow;
|
|
@@ -2864,62 +3158,62 @@ var iconSizeTinyPx = calculateHeightWithLineHeight(fontPackages$4.supportingStyl
|
|
|
2864
3158
|
var iconSizeSmallPx = calculateHeightWithLineHeight(fontPackages$4.body_sans_01.numbers.lineHeightNumber, fontPackages$4.body_sans_01.numbers.fontSizeNumber);
|
|
2865
3159
|
var iconSizeMediumPx = calculateHeightWithLineHeight(fontPackages$4.body_sans_02.numbers.lineHeightNumber, fontPackages$4.body_sans_02.numbers.fontSizeNumber);
|
|
2866
3160
|
var iconSizeLargePx = calculateHeightWithLineHeight(fontPackages$4.body_sans_04.numbers.lineHeightNumber, fontPackages$4.body_sans_04.numbers.fontSizeNumber);
|
|
2867
|
-
var svgOffset = spacing$
|
|
3161
|
+
var svgOffset = spacing$w.SizesDdsSpacingLocalX0125NumberPx;
|
|
2868
3162
|
var filledButtonColors = {
|
|
2869
3163
|
primary: {
|
|
2870
3164
|
base: {
|
|
2871
|
-
color: colors$
|
|
2872
|
-
backgroundColor: colors$
|
|
2873
|
-
borderColor: colors$
|
|
3165
|
+
color: colors$n.DdsColorNeutralsWhite,
|
|
3166
|
+
backgroundColor: colors$n.DdsColorInteractiveBase,
|
|
3167
|
+
borderColor: colors$n.DdsColorInteractiveBase
|
|
2874
3168
|
},
|
|
2875
3169
|
hover: {
|
|
2876
3170
|
base: {
|
|
2877
|
-
backgroundColor: colors$
|
|
2878
|
-
borderColor: colors$
|
|
3171
|
+
backgroundColor: colors$n.DdsColorInteractiveDark,
|
|
3172
|
+
borderColor: colors$n.DdsColorInteractiveDark
|
|
2879
3173
|
}
|
|
2880
3174
|
},
|
|
2881
3175
|
active: {
|
|
2882
3176
|
base: {
|
|
2883
|
-
backgroundColor: colors$
|
|
2884
|
-
borderColor: colors$
|
|
3177
|
+
backgroundColor: colors$n.DdsColorInteractiveDarker,
|
|
3178
|
+
borderColor: colors$n.DdsColorInteractiveDarker
|
|
2885
3179
|
}
|
|
2886
3180
|
}
|
|
2887
3181
|
},
|
|
2888
3182
|
secondary: {
|
|
2889
3183
|
base: {
|
|
2890
|
-
color: colors$
|
|
2891
|
-
backgroundColor: colors$
|
|
2892
|
-
borderColor: colors$
|
|
3184
|
+
color: colors$n.DdsColorNeutralsGray8,
|
|
3185
|
+
backgroundColor: colors$n.DdsColorNeutralsGray1,
|
|
3186
|
+
borderColor: colors$n.DdsColorNeutralsGray5
|
|
2893
3187
|
},
|
|
2894
3188
|
hover: {
|
|
2895
3189
|
base: {
|
|
2896
|
-
backgroundColor: colors$
|
|
2897
|
-
borderColor: colors$
|
|
3190
|
+
backgroundColor: colors$n.DdsColorNeutralsGray2,
|
|
3191
|
+
borderColor: colors$n.DdsColorNeutralsGray5
|
|
2898
3192
|
}
|
|
2899
3193
|
},
|
|
2900
3194
|
active: {
|
|
2901
3195
|
base: {
|
|
2902
|
-
backgroundColor: colors$
|
|
2903
|
-
borderColor: colors$
|
|
3196
|
+
backgroundColor: colors$n.DdsColorNeutralsGray3,
|
|
3197
|
+
borderColor: colors$n.DdsColorNeutralsGray5
|
|
2904
3198
|
}
|
|
2905
3199
|
}
|
|
2906
3200
|
},
|
|
2907
3201
|
danger: {
|
|
2908
3202
|
base: {
|
|
2909
|
-
color: colors$
|
|
2910
|
-
backgroundColor: colors$
|
|
2911
|
-
borderColor: colors$
|
|
3203
|
+
color: colors$n.DdsColorNeutralsWhite,
|
|
3204
|
+
backgroundColor: colors$n.DdsColorDangerBase,
|
|
3205
|
+
borderColor: colors$n.DdsColorDangerBase
|
|
2912
3206
|
},
|
|
2913
3207
|
hover: {
|
|
2914
3208
|
base: {
|
|
2915
|
-
backgroundColor: colors$
|
|
2916
|
-
borderColor: colors$
|
|
3209
|
+
backgroundColor: colors$n.DdsColorDangerDark,
|
|
3210
|
+
borderColor: colors$n.DdsColorDangerDark
|
|
2917
3211
|
}
|
|
2918
3212
|
},
|
|
2919
3213
|
active: {
|
|
2920
3214
|
base: {
|
|
2921
|
-
backgroundColor: colors$
|
|
2922
|
-
borderColor: colors$
|
|
3215
|
+
backgroundColor: colors$n.DdsColorDangerDarker,
|
|
3216
|
+
borderColor: colors$n.DdsColorDangerDarker
|
|
2923
3217
|
}
|
|
2924
3218
|
}
|
|
2925
3219
|
}
|
|
@@ -2929,7 +3223,7 @@ var sizes$2 = {
|
|
|
2929
3223
|
justIcon: {
|
|
2930
3224
|
icon: {
|
|
2931
3225
|
fontSize: "".concat(iconSizeLargePx + svgOffset, "px"),
|
|
2932
|
-
padding: spacing$
|
|
3226
|
+
padding: spacing$w.SizesDdsSpacingLocalX1
|
|
2933
3227
|
},
|
|
2934
3228
|
wrapper: {
|
|
2935
3229
|
height: "".concat(iconSizeLargePx, "px"),
|
|
@@ -2937,17 +3231,17 @@ var sizes$2 = {
|
|
|
2937
3231
|
}
|
|
2938
3232
|
},
|
|
2939
3233
|
text: {
|
|
2940
|
-
padding: "".concat(spacing$
|
|
3234
|
+
padding: "".concat(spacing$w.SizesDdsSpacingLocalX1, " ").concat(spacing$w.SizesDdsSpacingLocalX2NumberPx - 2, "px")
|
|
2941
3235
|
},
|
|
2942
3236
|
textAndIcon: {
|
|
2943
|
-
gap: spacing$
|
|
3237
|
+
gap: spacing$w.SizesDdsSpacingLocalX1
|
|
2944
3238
|
}
|
|
2945
3239
|
},
|
|
2946
3240
|
medium: {
|
|
2947
3241
|
justIcon: {
|
|
2948
3242
|
icon: {
|
|
2949
3243
|
fontSize: "".concat(iconSizeMediumPx + svgOffset, "px"),
|
|
2950
|
-
padding: spacing$
|
|
3244
|
+
padding: spacing$w.SizesDdsSpacingLocalX075
|
|
2951
3245
|
},
|
|
2952
3246
|
wrapper: {
|
|
2953
3247
|
height: "".concat(iconSizeMediumPx, "px"),
|
|
@@ -2955,17 +3249,17 @@ var sizes$2 = {
|
|
|
2955
3249
|
}
|
|
2956
3250
|
},
|
|
2957
3251
|
text: {
|
|
2958
|
-
padding: "".concat(spacing$
|
|
3252
|
+
padding: "".concat(spacing$w.SizesDdsSpacingLocalX075, " ").concat(spacing$w.SizesDdsSpacingLocalX15NumberPx - 2, "px")
|
|
2959
3253
|
},
|
|
2960
3254
|
textAndIcon: {
|
|
2961
|
-
gap: spacing$
|
|
3255
|
+
gap: spacing$w.SizesDdsSpacingLocalX075
|
|
2962
3256
|
}
|
|
2963
3257
|
},
|
|
2964
3258
|
small: {
|
|
2965
3259
|
justIcon: {
|
|
2966
3260
|
icon: {
|
|
2967
3261
|
fontSize: "".concat(iconSizeSmallPx + svgOffset, "px"),
|
|
2968
|
-
padding: spacing$
|
|
3262
|
+
padding: spacing$w.SizesDdsSpacingLocalX05
|
|
2969
3263
|
},
|
|
2970
3264
|
wrapper: {
|
|
2971
3265
|
height: "".concat(iconSizeSmallPx, "px"),
|
|
@@ -2973,17 +3267,17 @@ var sizes$2 = {
|
|
|
2973
3267
|
}
|
|
2974
3268
|
},
|
|
2975
3269
|
text: {
|
|
2976
|
-
padding: "".concat(spacing$
|
|
3270
|
+
padding: "".concat(spacing$w.SizesDdsSpacingLocalX05, " ").concat(spacing$w.SizesDdsSpacingLocalX1NumberPx - 2, "px")
|
|
2977
3271
|
},
|
|
2978
3272
|
textAndIcon: {
|
|
2979
|
-
gap: spacing$
|
|
3273
|
+
gap: spacing$w.SizesDdsSpacingLocalX05
|
|
2980
3274
|
}
|
|
2981
3275
|
},
|
|
2982
3276
|
tiny: {
|
|
2983
3277
|
justIcon: {
|
|
2984
3278
|
icon: {
|
|
2985
3279
|
fontSize: "".concat(iconSizeTinyPx + svgOffset, "px"),
|
|
2986
|
-
padding: spacing$
|
|
3280
|
+
padding: spacing$w.SizesDdsSpacingLocalX025
|
|
2987
3281
|
},
|
|
2988
3282
|
wrapper: {
|
|
2989
3283
|
height: "".concat(iconSizeTinyPx, "px"),
|
|
@@ -2991,10 +3285,10 @@ var sizes$2 = {
|
|
|
2991
3285
|
}
|
|
2992
3286
|
},
|
|
2993
3287
|
text: {
|
|
2994
|
-
padding: "".concat(spacing$
|
|
3288
|
+
padding: "".concat(spacing$w.SizesDdsSpacingLocalX025, " ").concat(spacing$w.SizesDdsSpacingLocalX075)
|
|
2995
3289
|
},
|
|
2996
3290
|
textAndIcon: {
|
|
2997
|
-
gap: spacing$
|
|
3291
|
+
gap: spacing$w.SizesDdsSpacingLocalX05
|
|
2998
3292
|
}
|
|
2999
3293
|
}
|
|
3000
3294
|
};
|
|
@@ -3031,50 +3325,50 @@ var appearances$2 = {
|
|
|
3031
3325
|
purpose: {
|
|
3032
3326
|
primary: {
|
|
3033
3327
|
base: {
|
|
3034
|
-
color: colors$
|
|
3035
|
-
borderColor: colors$
|
|
3328
|
+
color: colors$n.DdsColorInteractiveBase,
|
|
3329
|
+
borderColor: colors$n.DdsColorInteractiveBase
|
|
3036
3330
|
},
|
|
3037
3331
|
hover: {
|
|
3038
|
-
color: colors$
|
|
3039
|
-
borderColor: colors$
|
|
3040
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3332
|
+
color: colors$n.DdsColorInteractiveDark,
|
|
3333
|
+
borderColor: colors$n.DdsColorInteractiveDark,
|
|
3334
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorInteractiveDark)
|
|
3041
3335
|
},
|
|
3042
3336
|
active: {
|
|
3043
|
-
color: colors$
|
|
3044
|
-
borderColor: colors$
|
|
3045
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3337
|
+
color: colors$n.DdsColorInteractiveDarker,
|
|
3338
|
+
borderColor: colors$n.DdsColorInteractiveDarker,
|
|
3339
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorInteractiveDarker)
|
|
3046
3340
|
}
|
|
3047
3341
|
},
|
|
3048
3342
|
secondary: {
|
|
3049
3343
|
base: {
|
|
3050
|
-
color: colors$
|
|
3051
|
-
borderColor: colors$
|
|
3344
|
+
color: colors$n.DdsColorNeutralsGray7,
|
|
3345
|
+
borderColor: colors$n.DdsColorNeutralsGray7
|
|
3052
3346
|
},
|
|
3053
3347
|
hover: {
|
|
3054
|
-
color: colors$
|
|
3055
|
-
borderColor: colors$
|
|
3056
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3348
|
+
color: colors$n.DdsColorNeutralsGray8,
|
|
3349
|
+
borderColor: colors$n.DdsColorNeutralsGray8,
|
|
3350
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorNeutralsGray8)
|
|
3057
3351
|
},
|
|
3058
3352
|
active: {
|
|
3059
|
-
color: colors$
|
|
3060
|
-
borderColor: colors$
|
|
3061
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3353
|
+
color: colors$n.DdsColorNeutralsGray9,
|
|
3354
|
+
borderColor: colors$n.DdsColorNeutralsGray9,
|
|
3355
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorNeutralsGray9)
|
|
3062
3356
|
}
|
|
3063
3357
|
},
|
|
3064
3358
|
danger: {
|
|
3065
3359
|
base: {
|
|
3066
|
-
color: colors$
|
|
3067
|
-
borderColor: colors$
|
|
3360
|
+
color: colors$n.DdsColorDangerBase,
|
|
3361
|
+
borderColor: colors$n.DdsColorDangerBase
|
|
3068
3362
|
},
|
|
3069
3363
|
hover: {
|
|
3070
|
-
color: colors$
|
|
3071
|
-
borderColor: colors$
|
|
3072
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3364
|
+
color: colors$n.DdsColorDangerDark,
|
|
3365
|
+
borderColor: colors$n.DdsColorDangerDark,
|
|
3366
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorDangerDark)
|
|
3073
3367
|
},
|
|
3074
3368
|
active: {
|
|
3075
|
-
color: colors$
|
|
3076
|
-
borderColor: colors$
|
|
3077
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3369
|
+
color: colors$n.DdsColorDangerDarkest,
|
|
3370
|
+
borderColor: colors$n.DdsColorDangerDarkest,
|
|
3371
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorDangerDarkest)
|
|
3078
3372
|
}
|
|
3079
3373
|
}
|
|
3080
3374
|
}
|
|
@@ -3091,70 +3385,70 @@ var appearances$2 = {
|
|
|
3091
3385
|
purpose: {
|
|
3092
3386
|
primary: {
|
|
3093
3387
|
base: {
|
|
3094
|
-
color: colors$
|
|
3388
|
+
color: colors$n.DdsColorInteractiveBase
|
|
3095
3389
|
},
|
|
3096
3390
|
hover: {
|
|
3097
|
-
color: colors$
|
|
3098
|
-
textDecorationColor: colors$
|
|
3391
|
+
color: colors$n.DdsColorInteractiveDark,
|
|
3392
|
+
textDecorationColor: colors$n.DdsColorInteractiveDark
|
|
3099
3393
|
},
|
|
3100
3394
|
active: {
|
|
3101
|
-
color: colors$
|
|
3102
|
-
textDecorationColor: colors$
|
|
3395
|
+
color: colors$n.DdsColorInteractiveDarker,
|
|
3396
|
+
textDecorationColor: colors$n.DdsColorInteractiveDarker
|
|
3103
3397
|
},
|
|
3104
3398
|
icon: {
|
|
3105
3399
|
hover: {
|
|
3106
|
-
borderColor: colors$
|
|
3107
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3400
|
+
borderColor: colors$n.DdsColorInteractiveDark,
|
|
3401
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorInteractiveDark)
|
|
3108
3402
|
},
|
|
3109
3403
|
active: {
|
|
3110
|
-
borderColor: colors$
|
|
3111
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3404
|
+
borderColor: colors$n.DdsColorInteractiveDarker,
|
|
3405
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorInteractiveDarker)
|
|
3112
3406
|
}
|
|
3113
3407
|
}
|
|
3114
3408
|
},
|
|
3115
3409
|
secondary: {
|
|
3116
3410
|
base: {
|
|
3117
|
-
color: colors$
|
|
3411
|
+
color: colors$n.DdsColorNeutralsGray7
|
|
3118
3412
|
},
|
|
3119
3413
|
hover: {
|
|
3120
|
-
color: colors$
|
|
3121
|
-
textDecorationColor: colors$
|
|
3414
|
+
color: colors$n.DdsColorNeutralsGray8,
|
|
3415
|
+
textDecorationColor: colors$n.DdsColorNeutralsGray8
|
|
3122
3416
|
},
|
|
3123
3417
|
active: {
|
|
3124
|
-
color: colors$
|
|
3125
|
-
textDecorationColor: colors$
|
|
3418
|
+
color: colors$n.DdsColorNeutralsGray9,
|
|
3419
|
+
textDecorationColor: colors$n.DdsColorNeutralsGray9
|
|
3126
3420
|
},
|
|
3127
3421
|
icon: {
|
|
3128
3422
|
hover: {
|
|
3129
|
-
borderColor: colors$
|
|
3130
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3423
|
+
borderColor: colors$n.DdsColorNeutralsGray8,
|
|
3424
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorNeutralsGray8)
|
|
3131
3425
|
},
|
|
3132
3426
|
active: {
|
|
3133
|
-
borderColor: colors$
|
|
3134
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3427
|
+
borderColor: colors$n.DdsColorNeutralsGray9,
|
|
3428
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorNeutralsGray9)
|
|
3135
3429
|
}
|
|
3136
3430
|
}
|
|
3137
3431
|
},
|
|
3138
3432
|
danger: {
|
|
3139
3433
|
base: {
|
|
3140
|
-
color: colors$
|
|
3434
|
+
color: colors$n.DdsColorDangerBase
|
|
3141
3435
|
},
|
|
3142
3436
|
hover: {
|
|
3143
|
-
color: colors$
|
|
3144
|
-
textDecorationColor: colors$
|
|
3437
|
+
color: colors$n.DdsColorDangerDarker,
|
|
3438
|
+
textDecorationColor: colors$n.DdsColorDangerDarker
|
|
3145
3439
|
},
|
|
3146
3440
|
active: {
|
|
3147
|
-
color: colors$
|
|
3148
|
-
textDecorationColor: colors$
|
|
3441
|
+
color: colors$n.DdsColorDangerDarkest,
|
|
3442
|
+
textDecorationColor: colors$n.DdsColorDangerDarkest
|
|
3149
3443
|
},
|
|
3150
3444
|
icon: {
|
|
3151
3445
|
hover: {
|
|
3152
|
-
borderColor: colors$
|
|
3153
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3446
|
+
borderColor: colors$n.DdsColorDangerDark,
|
|
3447
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorDangerDark)
|
|
3154
3448
|
},
|
|
3155
3449
|
active: {
|
|
3156
|
-
borderColor: colors$
|
|
3157
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
3450
|
+
borderColor: colors$n.DdsColorDangerDarker,
|
|
3451
|
+
boxShadow: "0 0 0 1px ".concat(colors$n.DdsColorDangerDarker)
|
|
3158
3452
|
}
|
|
3159
3453
|
}
|
|
3160
3454
|
}
|
|
@@ -3409,7 +3703,7 @@ var Button$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3409
3703
|
}));
|
|
3410
3704
|
});
|
|
3411
3705
|
|
|
3412
|
-
var Wrapper$
|
|
3706
|
+
var Wrapper$7 = styled__default["default"](Typography).withConfig({
|
|
3413
3707
|
displayName: "CharCounter__Wrapper",
|
|
3414
3708
|
componentId: "sc-qty1z2-0"
|
|
3415
3709
|
})(["margin-left:auto;"]);
|
|
@@ -3422,7 +3716,7 @@ function CharCounter(props) {
|
|
|
3422
3716
|
rest = tslib.__rest(props, ["current", "max", "id", "className", "htmlProps"]);
|
|
3423
3717
|
var generatedId = React.useId();
|
|
3424
3718
|
var uniqueId = id !== null && id !== void 0 ? id : "".concat(generatedId, "-characterCounter");
|
|
3425
|
-
return jsxRuntime.jsxs(Wrapper$
|
|
3719
|
+
return jsxRuntime.jsxs(Wrapper$7, Object.assign({}, getBaseHTMLProps(uniqueId, className, htmlProps, rest), {
|
|
3426
3720
|
forwardedAs: "div",
|
|
3427
3721
|
typographyType: "supportingStyleHelperText01",
|
|
3428
3722
|
"aria-label": "".concat(current, " av ").concat(max, " tegn skrevet")
|
|
@@ -3431,36 +3725,36 @@ function CharCounter(props) {
|
|
|
3431
3725
|
}));
|
|
3432
3726
|
}
|
|
3433
3727
|
|
|
3434
|
-
var colors$
|
|
3435
|
-
spacing$
|
|
3728
|
+
var colors$m = ddsDesignTokens.ddsBaseTokens.colors,
|
|
3729
|
+
spacing$v = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
3436
3730
|
iconSizes$5 = ddsDesignTokens.ddsBaseTokens.iconSizes;
|
|
3437
3731
|
var input$3 = {
|
|
3438
3732
|
withIcon: {
|
|
3439
3733
|
medium: {
|
|
3440
|
-
paddingLeft: "".concat(spacing$
|
|
3734
|
+
paddingLeft: "".concat(spacing$v.SizesDdsSpacingLocalX075NumberPx + iconSizes$5.DdsIconsizeMediumNumberPx + spacing$v.SizesDdsSpacingLocalX05NumberPx, "px")
|
|
3441
3735
|
},
|
|
3442
3736
|
small: {
|
|
3443
|
-
paddingLeft: "".concat(spacing$
|
|
3737
|
+
paddingLeft: "".concat(spacing$v.SizesDdsSpacingLocalX075NumberPx + iconSizes$5.DdsIconsizeSmallNumberPx + spacing$v.SizesDdsSpacingLocalX05NumberPx, "px")
|
|
3444
3738
|
},
|
|
3445
3739
|
tiny: {
|
|
3446
|
-
paddingLeft: "".concat(spacing$
|
|
3740
|
+
paddingLeft: "".concat(spacing$v.SizesDdsSpacingLocalX05NumberPx + iconSizes$5.DdsIconsizeSmallNumberPx + spacing$v.SizesDdsSpacingLocalX025NumberPx, "px")
|
|
3447
3741
|
}
|
|
3448
3742
|
}
|
|
3449
3743
|
};
|
|
3450
3744
|
var icon$9 = {
|
|
3451
|
-
color: colors$
|
|
3745
|
+
color: colors$m.DdsColorNeutralsGray9,
|
|
3452
3746
|
sizes: {
|
|
3453
3747
|
medium: {
|
|
3454
|
-
top: spacing$
|
|
3455
|
-
left: spacing$
|
|
3748
|
+
top: spacing$v.SizesDdsSpacingLocalX075,
|
|
3749
|
+
left: spacing$v.SizesDdsSpacingLocalX075
|
|
3456
3750
|
},
|
|
3457
3751
|
small: {
|
|
3458
|
-
top: spacing$
|
|
3459
|
-
left: spacing$
|
|
3752
|
+
top: spacing$v.SizesDdsSpacingLocalX075,
|
|
3753
|
+
left: spacing$v.SizesDdsSpacingLocalX075
|
|
3460
3754
|
},
|
|
3461
3755
|
tiny: {
|
|
3462
|
-
top: spacing$
|
|
3463
|
-
left: spacing$
|
|
3756
|
+
top: spacing$v.SizesDdsSpacingLocalX05,
|
|
3757
|
+
left: spacing$v.SizesDdsSpacingLocalX05
|
|
3464
3758
|
}
|
|
3465
3759
|
}
|
|
3466
3760
|
};
|
|
@@ -3472,7 +3766,7 @@ var textInputTokens = {
|
|
|
3472
3766
|
var iconSizes$4 = ddsDesignTokens.ddsBaseTokens.iconSizes;
|
|
3473
3767
|
var input$2 = textInputTokens.input,
|
|
3474
3768
|
icon$8 = textInputTokens.icon;
|
|
3475
|
-
var MessageContainer = styled__default["default"].div.withConfig({
|
|
3769
|
+
var MessageContainer$1 = styled__default["default"].div.withConfig({
|
|
3476
3770
|
displayName: "TextInputstyles__MessageContainer",
|
|
3477
3771
|
componentId: "sc-165zflr-0"
|
|
3478
3772
|
})(["display:flex;justify-content:space-between;"]);
|
|
@@ -3493,14 +3787,14 @@ var StyledInput$1 = styled__default["default"](StatefulInput).withConfig({
|
|
|
3493
3787
|
return hasIcon && componentSize && styled.css(["padding-left:", ";"], input$2.withIcon[componentSize].paddingLeft);
|
|
3494
3788
|
});
|
|
3495
3789
|
|
|
3496
|
-
var defaultWidth$
|
|
3790
|
+
var defaultWidth$5 = '320px';
|
|
3497
3791
|
var defaultTinyWidth = '210px';
|
|
3498
3792
|
var getWidth$1 = function getWidth(size, width) {
|
|
3499
3793
|
if (width) return width;
|
|
3500
3794
|
if (size === 'tiny') {
|
|
3501
3795
|
return defaultTinyWidth;
|
|
3502
3796
|
}
|
|
3503
|
-
return defaultWidth$
|
|
3797
|
+
return defaultWidth$5;
|
|
3504
3798
|
};
|
|
3505
3799
|
var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
3506
3800
|
var label = _a.label,
|
|
@@ -3591,7 +3885,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
3591
3885
|
onChange: onChangeHandler,
|
|
3592
3886
|
type: type,
|
|
3593
3887
|
componentSize: componentSize
|
|
3594
|
-
}, generalInputProps)), hasMessage && jsxRuntime.jsxs(MessageContainer, {
|
|
3888
|
+
}, generalInputProps)), hasMessage && jsxRuntime.jsxs(MessageContainer$1, {
|
|
3595
3889
|
children: [renderInputMessage(tip, tipId, errorMessage, errorMessageId), maxLength && Number.isInteger(maxLength) && maxLength > 0 && withCharacterCounter && jsxRuntime.jsx(CharCounter, {
|
|
3596
3890
|
id: characterCounterId,
|
|
3597
3891
|
current: text.length,
|
|
@@ -3603,8 +3897,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
3603
3897
|
|
|
3604
3898
|
var scrollbarWidthNumberPx = 10;
|
|
3605
3899
|
var scrollbarWidth$1 = "".concat(scrollbarWidthNumberPx, "px");
|
|
3606
|
-
var colors$
|
|
3607
|
-
spacing$
|
|
3900
|
+
var colors$l = ddsDesignTokens.ddsBaseTokens.colors,
|
|
3901
|
+
spacing$u = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
3608
3902
|
var track$3 = {
|
|
3609
3903
|
backgroundColor: 'transparent',
|
|
3610
3904
|
borderRadius: '100px',
|
|
@@ -3612,19 +3906,19 @@ var track$3 = {
|
|
|
3612
3906
|
};
|
|
3613
3907
|
var thumb$2 = {
|
|
3614
3908
|
base: {
|
|
3615
|
-
backgroundColor: colors$
|
|
3909
|
+
backgroundColor: colors$l.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)',
|
|
3616
3910
|
borderRadius: '100px',
|
|
3617
3911
|
width: scrollbarWidth$1
|
|
3618
3912
|
},
|
|
3619
3913
|
hover: {
|
|
3620
|
-
backgroundColor: colors$
|
|
3914
|
+
backgroundColor: colors$l.DdsColorPrimaryDarkest.slice(0, -2) + '0.5)'
|
|
3621
3915
|
}
|
|
3622
3916
|
};
|
|
3623
3917
|
var content$5 = {
|
|
3624
|
-
paddingRight: spacing$
|
|
3918
|
+
paddingRight: spacing$u.SizesDdsSpacingLocalX05
|
|
3625
3919
|
};
|
|
3626
3920
|
var outerContainer$8 = {
|
|
3627
|
-
padding: spacing$
|
|
3921
|
+
padding: spacing$u.SizesDdsSpacingLocalX025
|
|
3628
3922
|
};
|
|
3629
3923
|
var scrollbarTokens = {
|
|
3630
3924
|
minThumbHeightPx: 15,
|
|
@@ -3858,8 +4152,8 @@ var scrollbarStyling = {
|
|
|
3858
4152
|
}
|
|
3859
4153
|
};
|
|
3860
4154
|
|
|
3861
|
-
var colors$
|
|
3862
|
-
spacing$
|
|
4155
|
+
var colors$k = ddsDesignTokens.ddsBaseTokens.colors,
|
|
4156
|
+
spacing$t = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
3863
4157
|
fontPackages$3 = ddsDesignTokens.ddsBaseTokens.fontPackages,
|
|
3864
4158
|
borderRadius$6 = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
3865
4159
|
border$a = ddsDesignTokens.ddsBaseTokens.border;
|
|
@@ -3878,18 +4172,18 @@ var typographyTypes$5 = {
|
|
|
3878
4172
|
multiValueLabel: 'bodySans01'
|
|
3879
4173
|
};
|
|
3880
4174
|
//custom spacing so that multiselect has same height as single value select
|
|
3881
|
-
var controlPaddingBottomMultiMedium = "".concat(spacing$
|
|
3882
|
-
var controlPaddingBottomMultiSmall = "".concat(spacing$
|
|
3883
|
-
var inputContainerMinHeightMulti = "".concat(spacing$
|
|
4175
|
+
var controlPaddingBottomMultiMedium = "".concat(spacing$t.SizesDdsSpacingLocalX075NumberPx - 1, "px");
|
|
4176
|
+
var controlPaddingBottomMultiSmall = "".concat(spacing$t.SizesDdsSpacingLocalX05NumberPx - 1, "px");
|
|
4177
|
+
var inputContainerMinHeightMulti = "".concat(spacing$t.SizesDdsSpacingLocalX0125NumberPx * 2 + calculateHeightWithLineHeight(fontPackages$3.body_sans_01.numbers.lineHeightNumber, fontPackages$3.body_sans_01.numbers.fontSizeNumber), "px");
|
|
3884
4178
|
var control = {
|
|
3885
4179
|
borderRadius: borderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
3886
4180
|
border: "".concat(border$a.BordersDdsBorderStyleLightStrokeWeight, " solid"),
|
|
3887
|
-
borderColor: colors$
|
|
3888
|
-
backgroundColor: colors$
|
|
3889
|
-
color: colors$
|
|
4181
|
+
borderColor: colors$k.DdsColorNeutralsGray5,
|
|
4182
|
+
backgroundColor: colors$k.DdsColorNeutralsWhite,
|
|
4183
|
+
color: colors$k.DdsColorNeutralsGray9,
|
|
3890
4184
|
disabled: {
|
|
3891
|
-
backgroundColor: colors$
|
|
3892
|
-
borderColor: colors$
|
|
4185
|
+
backgroundColor: colors$k.DdsColorNeutralsGray1,
|
|
4186
|
+
borderColor: colors$k.DdsColorNeutralsGray5
|
|
3893
4187
|
},
|
|
3894
4188
|
readOnly: {
|
|
3895
4189
|
borderColor: 'transparent',
|
|
@@ -3898,34 +4192,34 @@ var control = {
|
|
|
3898
4192
|
isMulti: {
|
|
3899
4193
|
sizes: {
|
|
3900
4194
|
medium: {
|
|
3901
|
-
padding: "".concat(spacing$
|
|
4195
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX075, " ").concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(controlPaddingBottomMultiMedium, " ").concat(spacing$t.SizesDdsSpacingLocalX075)
|
|
3902
4196
|
},
|
|
3903
4197
|
small: {
|
|
3904
|
-
padding: "".concat(spacing$
|
|
4198
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(controlPaddingBottomMultiSmall, " ").concat(spacing$t.SizesDdsSpacingLocalX075)
|
|
3905
4199
|
}
|
|
3906
4200
|
}
|
|
3907
4201
|
},
|
|
3908
4202
|
sizes: {
|
|
3909
4203
|
medium: {
|
|
3910
|
-
padding: "".concat(spacing$
|
|
4204
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX075, " ").concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX075, " ").concat(spacing$t.SizesDdsSpacingLocalX075)
|
|
3911
4205
|
},
|
|
3912
4206
|
small: {
|
|
3913
|
-
padding: "".concat(spacing$
|
|
4207
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX075)
|
|
3914
4208
|
},
|
|
3915
4209
|
tiny: {
|
|
3916
|
-
padding: "".concat(spacing$
|
|
4210
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX025, " ").concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX025, " ").concat(spacing$t.SizesDdsSpacingLocalX05)
|
|
3917
4211
|
}
|
|
3918
4212
|
}
|
|
3919
4213
|
};
|
|
3920
4214
|
var placeholder = {
|
|
3921
|
-
color: colors$
|
|
4215
|
+
color: colors$k.DdsColorNeutralsGray6
|
|
3922
4216
|
};
|
|
3923
4217
|
var dropdownIndicator = {
|
|
3924
4218
|
base: {
|
|
3925
|
-
color: colors$
|
|
4219
|
+
color: colors$k.DdsColorNeutralsGray6
|
|
3926
4220
|
},
|
|
3927
4221
|
hover: {
|
|
3928
|
-
color: colors$
|
|
4222
|
+
color: colors$k.DdsColorInteractiveBase
|
|
3929
4223
|
},
|
|
3930
4224
|
readOnly: {
|
|
3931
4225
|
color: 'transparent'
|
|
@@ -3933,73 +4227,73 @@ var dropdownIndicator = {
|
|
|
3933
4227
|
};
|
|
3934
4228
|
var clearIndicator = {
|
|
3935
4229
|
base: {
|
|
3936
|
-
color: colors$
|
|
4230
|
+
color: colors$k.DdsColorNeutralsGray6
|
|
3937
4231
|
},
|
|
3938
4232
|
hover: {
|
|
3939
|
-
color: colors$
|
|
4233
|
+
color: colors$k.DdsColorInteractiveBase
|
|
3940
4234
|
}
|
|
3941
4235
|
};
|
|
3942
4236
|
var loadingIndicator = {
|
|
3943
|
-
color: colors$
|
|
4237
|
+
color: colors$k.DdsColorNeutralsGray6
|
|
3944
4238
|
};
|
|
3945
4239
|
var menu = {
|
|
3946
4240
|
border: '1px solid',
|
|
3947
|
-
borderColor: colors$
|
|
3948
|
-
backgroundColor: colors$
|
|
4241
|
+
borderColor: colors$k.DdsColorInteractiveBase,
|
|
4242
|
+
backgroundColor: colors$k.DdsColorNeutralsWhite,
|
|
3949
4243
|
borderRadius: borderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
3950
|
-
marginTop: spacing$
|
|
3951
|
-
marginBottom: spacing$
|
|
4244
|
+
marginTop: spacing$t.SizesDdsSpacingLocalX025,
|
|
4245
|
+
marginBottom: spacing$t.SizesDdsSpacingLocalX025
|
|
3952
4246
|
};
|
|
3953
4247
|
var groupHeading = {
|
|
3954
|
-
color: colors$
|
|
3955
|
-
padding: "".concat(spacing$
|
|
4248
|
+
color: colors$k.DdsColorNeutralsGray7,
|
|
4249
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX075, " ").concat(spacing$t.SizesDdsSpacingLocalX0125, " ").concat(spacing$t.SizesDdsSpacingLocalX075)
|
|
3956
4250
|
};
|
|
3957
4251
|
var option = {
|
|
3958
4252
|
base: {
|
|
3959
|
-
gap: spacing$
|
|
3960
|
-
padding: "".concat(spacing$
|
|
3961
|
-
backgroundColor: colors$
|
|
4253
|
+
gap: spacing$t.SizesDdsSpacingLocalX05,
|
|
4254
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX075),
|
|
4255
|
+
backgroundColor: colors$k.DdsColorNeutralsWhite
|
|
3962
4256
|
},
|
|
3963
4257
|
hover: {
|
|
3964
4258
|
color: textDefault$3.textColor,
|
|
3965
|
-
backgroundColor: colors$
|
|
4259
|
+
backgroundColor: colors$k.DdsColorInteractiveLightest
|
|
3966
4260
|
},
|
|
3967
4261
|
focus: {
|
|
3968
4262
|
color: textDefault$3.textColor,
|
|
3969
|
-
backgroundColor: colors$
|
|
4263
|
+
backgroundColor: colors$k.DdsColorInteractiveLightest
|
|
3970
4264
|
},
|
|
3971
4265
|
selected: {
|
|
3972
|
-
backgroundColor: colors$
|
|
4266
|
+
backgroundColor: colors$k.DdsColorNeutralsWhite
|
|
3973
4267
|
}
|
|
3974
4268
|
};
|
|
3975
4269
|
var noOptionsMessage = {
|
|
3976
|
-
padding: "".concat(spacing$
|
|
3977
|
-
color: colors$
|
|
4270
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX05, " ").concat(spacing$t.SizesDdsSpacingLocalX1),
|
|
4271
|
+
color: colors$k.DdsColorNeutralsGray6
|
|
3978
4272
|
};
|
|
3979
4273
|
var multiValue = {
|
|
3980
4274
|
borderRadius: borderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
3981
|
-
backgroundColor: colors$
|
|
4275
|
+
backgroundColor: colors$k.DdsColorNeutralsGray2
|
|
3982
4276
|
};
|
|
3983
4277
|
var multiValueLabel = {
|
|
3984
|
-
padding: "".concat(spacing$
|
|
3985
|
-
color: colors$
|
|
4278
|
+
padding: "".concat(spacing$t.SizesDdsSpacingLocalX0125, " ").concat(spacing$t.SizesDdsSpacingLocalX025),
|
|
4279
|
+
color: colors$k.DdsColorNeutralsGray9
|
|
3986
4280
|
};
|
|
3987
4281
|
var multiValueRemove = {
|
|
3988
4282
|
base: {
|
|
3989
|
-
color: colors$
|
|
3990
|
-
padding: spacing$
|
|
4283
|
+
color: colors$k.DdsColorNeutralsGray9,
|
|
4284
|
+
padding: spacing$t.SizesDdsSpacingLocalX025,
|
|
3991
4285
|
borderTopRightRadius: borderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
3992
4286
|
borderBottomRightRadius: borderRadius$6.RadiiDdsBorderRadius1Radius
|
|
3993
4287
|
},
|
|
3994
4288
|
hover: {
|
|
3995
|
-
color: colors$
|
|
3996
|
-
backgroundColor: colors$
|
|
3997
|
-
boxShadow: "inset 0 0 0 1px ".concat(colors$
|
|
4289
|
+
color: colors$k.DdsColorNeutralsWhite,
|
|
4290
|
+
backgroundColor: colors$k.DdsColorInteractiveBase,
|
|
4291
|
+
boxShadow: "inset 0 0 0 1px ".concat(colors$k.DdsColorNeutralsGray9)
|
|
3998
4292
|
}
|
|
3999
4293
|
};
|
|
4000
4294
|
var valueContainer = {
|
|
4001
4295
|
isMulti: {
|
|
4002
|
-
gap: spacing$
|
|
4296
|
+
gap: spacing$t.SizesDdsSpacingLocalX025
|
|
4003
4297
|
}
|
|
4004
4298
|
};
|
|
4005
4299
|
var inputContainer$1 = {
|
|
@@ -4008,7 +4302,7 @@ var inputContainer$1 = {
|
|
|
4008
4302
|
}
|
|
4009
4303
|
};
|
|
4010
4304
|
var icon$7 = {
|
|
4011
|
-
marginRight: spacing$
|
|
4305
|
+
marginRight: spacing$t.SizesDdsSpacingLocalX05
|
|
4012
4306
|
};
|
|
4013
4307
|
var selectTokens = {
|
|
4014
4308
|
control: control,
|
|
@@ -4331,7 +4625,7 @@ var DDSControl = function DDSControl(props, componentSize, icon) {
|
|
|
4331
4625
|
}), props.children]
|
|
4332
4626
|
}));
|
|
4333
4627
|
};
|
|
4334
|
-
var defaultWidth$
|
|
4628
|
+
var defaultWidth$4 = '320px';
|
|
4335
4629
|
var getPlaceholder = function getPlaceholder(placeholder, isMulti) {
|
|
4336
4630
|
return placeholder ? placeholder : isMulti ? '-- Velg en eller flere --' : '-- Velg fra listen --';
|
|
4337
4631
|
};
|
|
@@ -4351,7 +4645,7 @@ var SelectInner = function SelectInner(props, ref) {
|
|
|
4351
4645
|
icon = props.icon,
|
|
4352
4646
|
defaultValue = props.defaultValue,
|
|
4353
4647
|
_props$width = props.width,
|
|
4354
|
-
width = _props$width === void 0 ? defaultWidth$
|
|
4648
|
+
width = _props$width === void 0 ? defaultWidth$4 : _props$width,
|
|
4355
4649
|
closeMenuOnSelect = props.closeMenuOnSelect,
|
|
4356
4650
|
className = props.className,
|
|
4357
4651
|
style = props.style,
|
|
@@ -4439,32 +4733,32 @@ var SelectInner = function SelectInner(props, ref) {
|
|
|
4439
4733
|
};
|
|
4440
4734
|
var Select = /*#__PURE__*/React__default["default"].forwardRef(SelectInner);
|
|
4441
4735
|
|
|
4442
|
-
var colors$
|
|
4443
|
-
spacing$
|
|
4736
|
+
var colors$j = ddsDesignTokens.ddsBaseTokens.colors,
|
|
4737
|
+
spacing$s = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
4444
4738
|
var typographyType$5 = 'bodySans02';
|
|
4445
4739
|
var container$c = {
|
|
4446
4740
|
borderBottom: '2px solid',
|
|
4447
|
-
padding: "0 ".concat(spacing$
|
|
4741
|
+
padding: "0 ".concat(spacing$s.SizesDdsSpacingLocalX1),
|
|
4448
4742
|
info: {
|
|
4449
|
-
borderColor: colors$
|
|
4450
|
-
backgroundColor: colors$
|
|
4743
|
+
borderColor: colors$j.DdsColorInfoLighter,
|
|
4744
|
+
backgroundColor: colors$j.DdsColorInfoLightest
|
|
4451
4745
|
},
|
|
4452
4746
|
danger: {
|
|
4453
|
-
borderColor: colors$
|
|
4454
|
-
backgroundColor: colors$
|
|
4747
|
+
borderColor: colors$j.DdsColorDangerLighter,
|
|
4748
|
+
backgroundColor: colors$j.DdsColorDangerLightest
|
|
4455
4749
|
},
|
|
4456
4750
|
warning: {
|
|
4457
|
-
borderColor: colors$
|
|
4458
|
-
backgroundColor: colors$
|
|
4751
|
+
borderColor: colors$j.DdsColorWarningLighter,
|
|
4752
|
+
backgroundColor: colors$j.DdsColorWarningLightest
|
|
4459
4753
|
}
|
|
4460
4754
|
};
|
|
4461
4755
|
var contentContainer$7 = {
|
|
4462
|
-
paddingRight: spacing$
|
|
4463
|
-
paddingTop: spacing$
|
|
4464
|
-
paddingBottom: spacing$
|
|
4465
|
-
gap: spacing$
|
|
4756
|
+
paddingRight: spacing$s.SizesDdsSpacingLocalX15,
|
|
4757
|
+
paddingTop: spacing$s.SizesDdsSpacingLocalX075,
|
|
4758
|
+
paddingBottom: spacing$s.SizesDdsSpacingLocalX075,
|
|
4759
|
+
gap: spacing$s.SizesDdsSpacingLocalX075,
|
|
4466
4760
|
withClosable: {
|
|
4467
|
-
paddingRight: spacing$
|
|
4761
|
+
paddingRight: spacing$s.SizesDdsSpacingLocalX075
|
|
4468
4762
|
}
|
|
4469
4763
|
};
|
|
4470
4764
|
var purposeVariants$1 = {
|
|
@@ -4485,15 +4779,15 @@ var globalMessageTokens = {
|
|
|
4485
4779
|
container: container$c,
|
|
4486
4780
|
contentContainer: contentContainer$7,
|
|
4487
4781
|
icon: {
|
|
4488
|
-
marginRight: "".concat(spacing$
|
|
4782
|
+
marginRight: "".concat(spacing$s.SizesDdsSpacingLocalX075),
|
|
4489
4783
|
info: {
|
|
4490
|
-
color: colors$
|
|
4784
|
+
color: colors$j.DdsColorInfoDarkest
|
|
4491
4785
|
},
|
|
4492
4786
|
danger: {
|
|
4493
|
-
color: colors$
|
|
4787
|
+
color: colors$j.DdsColorDangerDarkest
|
|
4494
4788
|
},
|
|
4495
4789
|
warning: {
|
|
4496
|
-
color: colors$
|
|
4790
|
+
color: colors$j.DdsColorWarningDarkest
|
|
4497
4791
|
}
|
|
4498
4792
|
}
|
|
4499
4793
|
};
|
|
@@ -4570,8 +4864,8 @@ var GlobalMessage = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4570
4864
|
})) : null;
|
|
4571
4865
|
});
|
|
4572
4866
|
|
|
4573
|
-
var colors$
|
|
4574
|
-
spacing$
|
|
4867
|
+
var colors$i = ddsDesignTokens.ddsBaseTokens.colors,
|
|
4868
|
+
spacing$r = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
4575
4869
|
borderRadius$5 = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
4576
4870
|
border$9 = ddsDesignTokens.ddsBaseTokens.border,
|
|
4577
4871
|
outerShadow = ddsDesignTokens.ddsBaseTokens.outerShadow;
|
|
@@ -4580,32 +4874,32 @@ var container$a = {
|
|
|
4580
4874
|
boxShadow: outerShadow.DdsShadow1Onlight,
|
|
4581
4875
|
borderRadius: borderRadius$5.RadiiDdsBorderRadius1Radius,
|
|
4582
4876
|
border: "".concat(border$9.BordersDdsBorderStyleLightStrokeWeight, " solid"),
|
|
4583
|
-
padding: "0 ".concat(spacing$
|
|
4877
|
+
padding: "0 ".concat(spacing$r.SizesDdsSpacingLocalX1)
|
|
4584
4878
|
},
|
|
4585
4879
|
purpose: {
|
|
4586
4880
|
info: {
|
|
4587
|
-
borderColor: colors$
|
|
4588
|
-
backgroundColor: colors$
|
|
4881
|
+
borderColor: colors$i.DdsColorInfoLighter,
|
|
4882
|
+
backgroundColor: colors$i.DdsColorInfoLightest
|
|
4589
4883
|
},
|
|
4590
4884
|
warning: {
|
|
4591
|
-
borderColor: colors$
|
|
4592
|
-
backgroundColor: colors$
|
|
4885
|
+
borderColor: colors$i.DdsColorWarningLighter,
|
|
4886
|
+
backgroundColor: colors$i.DdsColorWarningLightest
|
|
4593
4887
|
},
|
|
4594
4888
|
danger: {
|
|
4595
|
-
borderColor: colors$
|
|
4596
|
-
backgroundColor: colors$
|
|
4889
|
+
borderColor: colors$i.DdsColorDangerLighter,
|
|
4890
|
+
backgroundColor: colors$i.DdsColorDangerLightest
|
|
4597
4891
|
},
|
|
4598
4892
|
success: {
|
|
4599
|
-
borderColor: colors$
|
|
4600
|
-
backgroundColor: colors$
|
|
4893
|
+
borderColor: colors$i.DdsColorSuccessLighter,
|
|
4894
|
+
backgroundColor: colors$i.DdsColorSuccessLightest
|
|
4601
4895
|
},
|
|
4602
4896
|
tips: {
|
|
4603
|
-
borderColor: colors$
|
|
4604
|
-
backgroundColor: colors$
|
|
4897
|
+
borderColor: colors$i.DdsColorPrimaryLighter,
|
|
4898
|
+
backgroundColor: colors$i.DdsColorPrimaryLightest
|
|
4605
4899
|
},
|
|
4606
4900
|
confidential: {
|
|
4607
|
-
borderColor: colors$
|
|
4608
|
-
backgroundColor: colors$
|
|
4901
|
+
borderColor: colors$i.DdsColorDangerBase,
|
|
4902
|
+
backgroundColor: colors$i.DdsColorDangerLightest
|
|
4609
4903
|
}
|
|
4610
4904
|
}
|
|
4611
4905
|
};
|
|
@@ -4636,41 +4930,41 @@ var purposeVariants = {
|
|
|
4636
4930
|
}
|
|
4637
4931
|
};
|
|
4638
4932
|
var icon$4 = {
|
|
4639
|
-
marginRight: "".concat(spacing$
|
|
4933
|
+
marginRight: "".concat(spacing$r.SizesDdsSpacingLocalX075),
|
|
4640
4934
|
info: {
|
|
4641
|
-
color: colors$
|
|
4935
|
+
color: colors$i.DdsColorInfoDarkest
|
|
4642
4936
|
},
|
|
4643
4937
|
danger: {
|
|
4644
|
-
color: colors$
|
|
4938
|
+
color: colors$i.DdsColorDangerDarkest
|
|
4645
4939
|
},
|
|
4646
4940
|
warning: {
|
|
4647
|
-
color: colors$
|
|
4941
|
+
color: colors$i.DdsColorWarningDarkest
|
|
4648
4942
|
},
|
|
4649
4943
|
success: {
|
|
4650
|
-
color: colors$
|
|
4944
|
+
color: colors$i.DdsColorSuccessDarkest
|
|
4651
4945
|
},
|
|
4652
4946
|
tips: {
|
|
4653
|
-
color: colors$
|
|
4947
|
+
color: colors$i.DdsColorPrimaryDarkest
|
|
4654
4948
|
},
|
|
4655
4949
|
confidential: {
|
|
4656
|
-
color: colors$
|
|
4950
|
+
color: colors$i.DdsColorDangerDarkest
|
|
4657
4951
|
}
|
|
4658
4952
|
};
|
|
4659
4953
|
var contentContainer$5 = {
|
|
4660
|
-
paddingRight: spacing$
|
|
4661
|
-
paddingTop: spacing$
|
|
4662
|
-
paddingBottom: spacing$
|
|
4954
|
+
paddingRight: spacing$r.SizesDdsSpacingLocalX15,
|
|
4955
|
+
paddingTop: spacing$r.SizesDdsSpacingLocalX075,
|
|
4956
|
+
paddingBottom: spacing$r.SizesDdsSpacingLocalX075,
|
|
4663
4957
|
withClosable: {
|
|
4664
|
-
paddingRight: spacing$
|
|
4958
|
+
paddingRight: spacing$r.SizesDdsSpacingLocalX075
|
|
4665
4959
|
},
|
|
4666
4960
|
vertical: {
|
|
4667
|
-
paddingBottom: spacing$
|
|
4961
|
+
paddingBottom: spacing$r.SizesDdsSpacingLocalX15
|
|
4668
4962
|
}
|
|
4669
4963
|
};
|
|
4670
4964
|
var topContainer$1 = {
|
|
4671
|
-
paddingTop: spacing$
|
|
4965
|
+
paddingTop: spacing$r.SizesDdsSpacingLocalX15,
|
|
4672
4966
|
withClosable: {
|
|
4673
|
-
paddingTop: spacing$
|
|
4967
|
+
paddingTop: spacing$r.SizesDdsSpacingLocalX1
|
|
4674
4968
|
}
|
|
4675
4969
|
};
|
|
4676
4970
|
var localMessageTokens = {
|
|
@@ -4680,7 +4974,7 @@ var localMessageTokens = {
|
|
|
4680
4974
|
icon: icon$4
|
|
4681
4975
|
};
|
|
4682
4976
|
|
|
4683
|
-
var defaultWidth$
|
|
4977
|
+
var defaultWidth$3 = '400px';
|
|
4684
4978
|
var container$9 = localMessageTokens.container,
|
|
4685
4979
|
contentContainer$4 = localMessageTokens.contentContainer,
|
|
4686
4980
|
topContainer = localMessageTokens.topContainer;
|
|
@@ -4728,7 +5022,7 @@ var LocalMessage = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4728
5022
|
closable = props.closable,
|
|
4729
5023
|
onClose = props.onClose,
|
|
4730
5024
|
_props$width = props.width,
|
|
4731
|
-
width = _props$width === void 0 ? defaultWidth$
|
|
5025
|
+
width = _props$width === void 0 ? defaultWidth$3 : _props$width,
|
|
4732
5026
|
_props$layout = props.layout,
|
|
4733
5027
|
layout = _props$layout === void 0 ? 'horisontal' : _props$layout,
|
|
4734
5028
|
children = props.children,
|
|
@@ -4787,50 +5081,50 @@ var LocalMessage = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4787
5081
|
})) : null;
|
|
4788
5082
|
});
|
|
4789
5083
|
|
|
4790
|
-
var spacing$
|
|
5084
|
+
var spacing$q = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
4791
5085
|
iconSizes$3 = ddsDesignTokens.ddsBaseTokens.iconSizes,
|
|
4792
|
-
colors$
|
|
5086
|
+
colors$h = ddsDesignTokens.ddsBaseTokens.colors;
|
|
4793
5087
|
var textDefault$2 = ddsDesignTokens.ddsReferenceTokens.textDefault;
|
|
4794
5088
|
var typographyTypes$4 = {
|
|
4795
5089
|
small: 'bodySans01',
|
|
4796
5090
|
medium: 'bodySans02',
|
|
4797
5091
|
large: 'bodySans04'
|
|
4798
5092
|
};
|
|
4799
|
-
var paddingLeftSmall = "".concat(spacing$
|
|
4800
|
-
var paddingLeftMedium = "".concat(spacing$
|
|
4801
|
-
var paddingLeftLarge = "".concat(spacing$
|
|
5093
|
+
var paddingLeftSmall = "".concat(spacing$q.SizesDdsSpacingLocalX075NumberPx + iconSizes$3.DdsIconsizeSmallNumberPx + spacing$q.SizesDdsSpacingLocalX05NumberPx, "px");
|
|
5094
|
+
var paddingLeftMedium = "".concat(spacing$q.SizesDdsSpacingLocalX075NumberPx + iconSizes$3.DdsIconsizeMediumNumberPx + spacing$q.SizesDdsSpacingLocalX05NumberPx, "px");
|
|
5095
|
+
var paddingLeftLarge = "".concat(spacing$q.SizesDdsSpacingLocalX075NumberPx + iconSizes$3.DdsIconsizeMediumNumberPx + spacing$q.SizesDdsSpacingLocalX05NumberPx, "px");
|
|
4802
5096
|
var input$1 = {
|
|
4803
5097
|
base: {
|
|
4804
|
-
paddingRight: spacing$
|
|
4805
|
-
paddingLeft: spacing$
|
|
5098
|
+
paddingRight: spacing$q.SizesDdsSpacingLocalX05,
|
|
5099
|
+
paddingLeft: spacing$q.SizesDdsSpacingLocalX3
|
|
4806
5100
|
},
|
|
4807
5101
|
sizes: {
|
|
4808
5102
|
small: {
|
|
4809
|
-
paddingTop: spacing$
|
|
4810
|
-
paddingBottom: spacing$
|
|
5103
|
+
paddingTop: spacing$q.SizesDdsSpacingLocalX05,
|
|
5104
|
+
paddingBottom: spacing$q.SizesDdsSpacingLocalX05,
|
|
4811
5105
|
paddingLeft: paddingLeftSmall
|
|
4812
5106
|
},
|
|
4813
5107
|
medium: {
|
|
4814
|
-
paddingTop: spacing$
|
|
4815
|
-
paddingBottom: spacing$
|
|
5108
|
+
paddingTop: spacing$q.SizesDdsSpacingLocalX075,
|
|
5109
|
+
paddingBottom: spacing$q.SizesDdsSpacingLocalX075,
|
|
4816
5110
|
paddingLeft: paddingLeftMedium
|
|
4817
5111
|
},
|
|
4818
5112
|
large: {
|
|
4819
|
-
paddingTop: spacing$
|
|
4820
|
-
paddingBottom: spacing$
|
|
5113
|
+
paddingTop: spacing$q.SizesDdsSpacingLocalX1,
|
|
5114
|
+
paddingBottom: spacing$q.SizesDdsSpacingLocalX1,
|
|
4821
5115
|
paddingLeft: paddingLeftLarge
|
|
4822
5116
|
}
|
|
4823
5117
|
}
|
|
4824
5118
|
};
|
|
4825
5119
|
var horisontalContainer$1 = {
|
|
4826
|
-
gap: spacing$
|
|
5120
|
+
gap: spacing$q.SizesDdsSpacingLocalX05
|
|
4827
5121
|
};
|
|
4828
5122
|
var outerContainer$6 = {
|
|
4829
|
-
gap: spacing$
|
|
5123
|
+
gap: spacing$q.SizesDdsSpacingLocalX0125
|
|
4830
5124
|
};
|
|
4831
5125
|
var icon$3 = {
|
|
4832
5126
|
base: {
|
|
4833
|
-
left: spacing$
|
|
5127
|
+
left: spacing$q.SizesDdsSpacingLocalX075,
|
|
4834
5128
|
color: textDefault$2.textColor
|
|
4835
5129
|
},
|
|
4836
5130
|
small: {
|
|
@@ -4844,12 +5138,12 @@ var icon$3 = {
|
|
|
4844
5138
|
}
|
|
4845
5139
|
};
|
|
4846
5140
|
var suggestionsContainer$1 = {
|
|
4847
|
-
marginTop: spacing$
|
|
4848
|
-
border: "1px solid ".concat(colors$
|
|
4849
|
-
boxShadow: "0 0 0 1px ".concat(colors$
|
|
5141
|
+
marginTop: spacing$q.SizesDdsSpacingLocalX025,
|
|
5142
|
+
border: "1px solid ".concat(colors$h.DdsColorInteractiveBase),
|
|
5143
|
+
boxShadow: "0 0 0 1px ".concat(colors$h.DdsColorInteractiveBase)
|
|
4850
5144
|
};
|
|
4851
5145
|
var suggestionsHeader$1 = {
|
|
4852
|
-
paddingLeft: spacing$
|
|
5146
|
+
paddingLeft: spacing$q.SizesDdsSpacingLocalX1
|
|
4853
5147
|
};
|
|
4854
5148
|
var searchTokens = {
|
|
4855
5149
|
input: input$1,
|
|
@@ -5309,17 +5603,17 @@ var removeListStyling = {
|
|
|
5309
5603
|
|
|
5310
5604
|
var border$8 = ddsDesignTokens.ddsBaseTokens.border,
|
|
5311
5605
|
borderRadius$4 = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
5312
|
-
colors$
|
|
5313
|
-
spacing$
|
|
5606
|
+
colors$g = ddsDesignTokens.ddsBaseTokens.colors,
|
|
5607
|
+
spacing$p = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
5314
5608
|
fontPackages$2 = ddsDesignTokens.ddsBaseTokens.fontPackages;
|
|
5315
5609
|
var typographyType$4 = 'bodySans01';
|
|
5316
5610
|
var element$1 = {
|
|
5317
5611
|
base: {
|
|
5318
|
-
color: colors$
|
|
5612
|
+
color: colors$g.DdsColorNeutralsGray9,
|
|
5319
5613
|
textDecoration: 'none',
|
|
5320
|
-
backgroundColor: colors$
|
|
5321
|
-
padding: "".concat(spacing$
|
|
5322
|
-
gap: spacing$
|
|
5614
|
+
backgroundColor: colors$g.DdsColorNeutralsWhite,
|
|
5615
|
+
padding: "".concat(spacing$p.SizesDdsSpacingLocalX075, " ").concat(spacing$p.SizesDdsSpacingLocalX1),
|
|
5616
|
+
gap: spacing$p.SizesDdsSpacingLocalX025
|
|
5323
5617
|
}
|
|
5324
5618
|
};
|
|
5325
5619
|
var iconHeight = calculateHeightWithLineHeight(fontPackages$2.body_sans_01.numbers.lineHeightNumber, fontPackages$2.body_sans_01.numbers.fontSizeNumber);
|
|
@@ -5328,27 +5622,27 @@ var link$3 = {
|
|
|
5328
5622
|
height: "".concat(iconHeight, "px")
|
|
5329
5623
|
},
|
|
5330
5624
|
hover: {
|
|
5331
|
-
backgroundColor: colors$
|
|
5625
|
+
backgroundColor: colors$g.DdsColorInteractiveLightest
|
|
5332
5626
|
},
|
|
5333
5627
|
active: {
|
|
5334
|
-
backgroundColor: colors$
|
|
5628
|
+
backgroundColor: colors$g.DdsColorInteractiveLightest
|
|
5335
5629
|
}
|
|
5336
5630
|
};
|
|
5337
5631
|
var container$8 = {
|
|
5338
5632
|
border: "".concat(border$8.BordersDdsBorderStyleLightStrokeWeight, " ").concat(border$8.BordersDdsBorderStyleLightStroke, " solid "),
|
|
5339
|
-
backgroundColor: colors$
|
|
5633
|
+
backgroundColor: colors$g.DdsColorNeutralsWhite,
|
|
5340
5634
|
borderRadius: borderRadius$4.RadiiDdsBorderRadius1Radius
|
|
5341
5635
|
};
|
|
5342
5636
|
var divider$2 = {
|
|
5343
|
-
marginRight: spacing$
|
|
5344
|
-
marginLeft: spacing$
|
|
5637
|
+
marginRight: spacing$p.SizesDdsSpacingLocalX15,
|
|
5638
|
+
marginLeft: spacing$p.SizesDdsSpacingLocalX15
|
|
5345
5639
|
};
|
|
5346
5640
|
var overflowMenuTokens = {
|
|
5347
5641
|
container: container$8,
|
|
5348
5642
|
element: element$1,
|
|
5349
5643
|
link: link$3,
|
|
5350
5644
|
divider: divider$2,
|
|
5351
|
-
offset: spacing$
|
|
5645
|
+
offset: spacing$p.SizesDdsSpacingLocalX0125NumberPx
|
|
5352
5646
|
};
|
|
5353
5647
|
|
|
5354
5648
|
var element = overflowMenuTokens.element,
|
|
@@ -5457,7 +5751,7 @@ var suggestionsContainer = searchTokens.suggestionsContainer,
|
|
|
5457
5751
|
var SuggestionsContainer = styled__default["default"](Paper).withConfig({
|
|
5458
5752
|
displayName: "SearchSuggestions__SuggestionsContainer",
|
|
5459
5753
|
componentId: "sc-nlwf4s-0"
|
|
5460
|
-
})(["", ";position:absolute;top:100%;width:100%;max-height:300px;margin-top:", ";border:", ";box-shadow:", ";z-index:
|
|
5754
|
+
})(["", ";position:absolute;top:100%;width:100%;max-height:300px;margin-top:", ";border:", ";box-shadow:", ";z-index:80;overflow-y:scroll;", " ", ""], function (_ref) {
|
|
5461
5755
|
var isHidden = _ref.isHidden;
|
|
5462
5756
|
return visibilityTransition(!isHidden);
|
|
5463
5757
|
}, suggestionsContainer.marginTop, suggestionsContainer.border, suggestionsContainer.boxShadow, scrollbarStyling.firefox, scrollbarStyling.webkit);
|
|
@@ -5537,7 +5831,7 @@ var useAutocompleteSearch = function useAutocompleteSearch() {
|
|
|
5537
5831
|
return React.useContext(AutocompleteSearchContext);
|
|
5538
5832
|
};
|
|
5539
5833
|
|
|
5540
|
-
var Wrapper$
|
|
5834
|
+
var Wrapper$6 = styled__default["default"].span.withConfig({
|
|
5541
5835
|
displayName: "VisuallyHidden__Wrapper",
|
|
5542
5836
|
componentId: "sc-ciubxt-0"
|
|
5543
5837
|
})(["position:absolute;width:1px;height:1px;margin:0px;padding:0px;top:0px;inset-inline-start:0px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);border:0px;"]);
|
|
@@ -5549,13 +5843,13 @@ var VisuallyHidden = function VisuallyHidden(props) {
|
|
|
5549
5843
|
as = props.as,
|
|
5550
5844
|
rest = tslib.__rest(props, ["children", "id", "className", "htmlProps", "as"]);
|
|
5551
5845
|
if (as === 'div') {
|
|
5552
|
-
return jsxRuntime.jsx(Wrapper$
|
|
5846
|
+
return jsxRuntime.jsx(Wrapper$6, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
5553
5847
|
as: as
|
|
5554
5848
|
}, {
|
|
5555
5849
|
children: children
|
|
5556
5850
|
}));
|
|
5557
5851
|
}
|
|
5558
|
-
return jsxRuntime.jsx(Wrapper$
|
|
5852
|
+
return jsxRuntime.jsx(Wrapper$6, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
5559
5853
|
children: children
|
|
5560
5854
|
}));
|
|
5561
5855
|
};
|
|
@@ -5802,59 +6096,59 @@ var Search = Search$1;
|
|
|
5802
6096
|
Search.AutocompleteWrapper = SearchAutocompleteWrapper;
|
|
5803
6097
|
Search.Suggestions = SearchSuggestions;
|
|
5804
6098
|
|
|
5805
|
-
var colors$
|
|
6099
|
+
var colors$f = ddsDesignTokens.ddsBaseTokens.colors,
|
|
5806
6100
|
border$7 = ddsDesignTokens.ddsBaseTokens.border,
|
|
5807
|
-
spacing$
|
|
6101
|
+
spacing$o = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
5808
6102
|
iconSizes$2 = ddsDesignTokens.ddsBaseTokens.iconSizes,
|
|
5809
6103
|
borderRadius$3 = ddsDesignTokens.ddsBaseTokens.borderRadius;
|
|
5810
6104
|
var row$2 = {
|
|
5811
6105
|
body: {
|
|
5812
6106
|
odd: {
|
|
5813
|
-
backgroundColor: colors$
|
|
6107
|
+
backgroundColor: colors$f.DdsColorNeutralsWhite
|
|
5814
6108
|
},
|
|
5815
6109
|
even: {
|
|
5816
|
-
backgroundColor: colors$
|
|
6110
|
+
backgroundColor: colors$f.DdsColorNeutralsGray1
|
|
5817
6111
|
},
|
|
5818
6112
|
hover: {
|
|
5819
|
-
backgroundColor: colors$
|
|
6113
|
+
backgroundColor: colors$f.DdsColorInteractiveLightest
|
|
5820
6114
|
},
|
|
5821
6115
|
selected: {
|
|
5822
|
-
backgroundColor: colors$
|
|
6116
|
+
backgroundColor: colors$f.DdsColorInteractiveLightest
|
|
5823
6117
|
},
|
|
5824
6118
|
mode: {
|
|
5825
6119
|
sum: {
|
|
5826
|
-
borderTop: "".concat(border$7.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$
|
|
5827
|
-
borderBottom: "".concat(border$7.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$
|
|
5828
|
-
backgroundColor: colors$
|
|
6120
|
+
borderTop: "".concat(border$7.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$f.DdsColorNeutralsGray4),
|
|
6121
|
+
borderBottom: "".concat(border$7.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$f.DdsColorNeutralsGray4),
|
|
6122
|
+
backgroundColor: colors$f.DdsColorNeutralsWhite
|
|
5829
6123
|
}
|
|
5830
6124
|
},
|
|
5831
6125
|
withDividers: {
|
|
5832
|
-
borderBottom: "1px solid ".concat(colors$
|
|
6126
|
+
borderBottom: "1px solid ".concat(colors$f.DdsColorNeutralsGray4)
|
|
5833
6127
|
}
|
|
5834
6128
|
}
|
|
5835
6129
|
};
|
|
5836
6130
|
var cell$3 = {
|
|
5837
6131
|
density: {
|
|
5838
6132
|
normal: {
|
|
5839
|
-
padding: "".concat(spacing$
|
|
6133
|
+
padding: "".concat(spacing$o.SizesDdsSpacingLocalX15, " ").concat(spacing$o.SizesDdsSpacingLocalX075)
|
|
5840
6134
|
},
|
|
5841
6135
|
compact: {
|
|
5842
|
-
padding: "".concat(spacing$
|
|
6136
|
+
padding: "".concat(spacing$o.SizesDdsSpacingLocalX075)
|
|
5843
6137
|
}
|
|
5844
6138
|
},
|
|
5845
6139
|
head: {
|
|
5846
|
-
backgroundColor: colors$
|
|
6140
|
+
backgroundColor: colors$f.DdsColorPrimaryLightest
|
|
5847
6141
|
},
|
|
5848
6142
|
sort: {
|
|
5849
|
-
gap: spacing$
|
|
6143
|
+
gap: spacing$o.SizesDdsSpacingLocalX05,
|
|
5850
6144
|
icon: {
|
|
5851
|
-
marginInlineStart: spacing$
|
|
6145
|
+
marginInlineStart: spacing$o.SizesDdsSpacingLocalX05
|
|
5852
6146
|
}
|
|
5853
6147
|
},
|
|
5854
6148
|
layout: {
|
|
5855
6149
|
textAndIcon: {
|
|
5856
|
-
gap: spacing$
|
|
5857
|
-
marginRight: spacing$
|
|
6150
|
+
gap: spacing$o.SizesDdsSpacingLocalX075,
|
|
6151
|
+
marginRight: spacing$o.SizesDdsSpacingLocalX075
|
|
5858
6152
|
}
|
|
5859
6153
|
}
|
|
5860
6154
|
};
|
|
@@ -6021,8 +6315,8 @@ var Row = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6021
6315
|
}));
|
|
6022
6316
|
});
|
|
6023
6317
|
|
|
6024
|
-
var spacing$
|
|
6025
|
-
colors$
|
|
6318
|
+
var spacing$n = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
6319
|
+
colors$e = ddsDesignTokens.ddsBaseTokens.colors;
|
|
6026
6320
|
var termTypographyTypes = {
|
|
6027
6321
|
bold: 'bodySans03',
|
|
6028
6322
|
small: 'bodySans01'
|
|
@@ -6031,33 +6325,33 @@ var descTypographyType = 'bodySans03';
|
|
|
6031
6325
|
var term$1 = {
|
|
6032
6326
|
appearance: {
|
|
6033
6327
|
small: {
|
|
6034
|
-
color: colors$
|
|
6328
|
+
color: colors$e.DdsColorNeutralsGray7
|
|
6035
6329
|
},
|
|
6036
6330
|
bold: {
|
|
6037
|
-
color: colors$
|
|
6331
|
+
color: colors$e.DdsColorNeutralsGray9
|
|
6038
6332
|
}
|
|
6039
6333
|
},
|
|
6040
6334
|
firstOfType: {
|
|
6041
|
-
marginTop: spacing$
|
|
6335
|
+
marginTop: spacing$n.SizesDdsSpacingLocalX1
|
|
6042
6336
|
}
|
|
6043
6337
|
};
|
|
6044
6338
|
var desc$1 = {
|
|
6045
6339
|
base: {
|
|
6046
|
-
gap: spacing$
|
|
6047
|
-
color: colors$
|
|
6340
|
+
gap: spacing$n.SizesDdsSpacingLocalX025,
|
|
6341
|
+
color: colors$e.DdsColorNeutralsGray9
|
|
6048
6342
|
},
|
|
6049
6343
|
lastChild: {
|
|
6050
|
-
marginBottom: spacing$
|
|
6344
|
+
marginBottom: spacing$n.SizesDdsSpacingLocalX1
|
|
6051
6345
|
}
|
|
6052
6346
|
};
|
|
6053
6347
|
var list$7 = {
|
|
6054
6348
|
beforeNextTerm: {
|
|
6055
|
-
marginTop: spacing$
|
|
6349
|
+
marginTop: spacing$n.SizesDdsSpacingLocalX2
|
|
6056
6350
|
}
|
|
6057
6351
|
};
|
|
6058
6352
|
var group$2 = {
|
|
6059
6353
|
base: {
|
|
6060
|
-
margin: spacing$
|
|
6354
|
+
margin: spacing$n.SizesDdsSpacingLocalX2
|
|
6061
6355
|
}
|
|
6062
6356
|
};
|
|
6063
6357
|
var descriptionListTokens = {
|
|
@@ -6075,7 +6369,7 @@ var DList = styled__default["default"].dl.withConfig({
|
|
|
6075
6369
|
componentId: "sc-1ob73hm-0"
|
|
6076
6370
|
})(["margin:0;*::selection{", "}", " & > dt:first-of-type{margin-top:", ";}& > dd:last-child{margin-bottom:", ";}dd + dt{margin-top:", ";}"], selection, function (_ref) {
|
|
6077
6371
|
var appearance = _ref.appearance;
|
|
6078
|
-
return appearance && styled.css(["dt{color:", ";", " ", ""], term.appearance[appearance].color, getFontStyling(termTypographyTypes[appearance]), appearance === 'bold' && styled.css(["font-weight:600;"]));
|
|
6372
|
+
return appearance && styled.css(["dt{color:", ";", " ", "}"], term.appearance[appearance].color, getFontStyling(termTypographyTypes[appearance]), appearance === 'bold' && styled.css(["font-weight:600;"]));
|
|
6079
6373
|
}, term.firstOfType.marginTop, desc.lastChild.marginBottom, list$6.beforeNextTerm.marginTop);
|
|
6080
6374
|
var DescriptionList = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6081
6375
|
var _props$appearance = props.appearance,
|
|
@@ -6385,7 +6679,7 @@ var SortCell = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6385
6679
|
}));
|
|
6386
6680
|
});
|
|
6387
6681
|
|
|
6388
|
-
var Wrapper$
|
|
6682
|
+
var Wrapper$5 = styled__default["default"].div.withConfig({
|
|
6389
6683
|
displayName: "TableWrapper__Wrapper",
|
|
6390
6684
|
componentId: "sc-eb384b-0"
|
|
6391
6685
|
})(["", " ", " ", ""], function (_ref) {
|
|
@@ -6427,7 +6721,7 @@ var TableWrapper = function TableWrapper(_a) {
|
|
|
6427
6721
|
ref: wrapperRef,
|
|
6428
6722
|
overflowX: overflowX
|
|
6429
6723
|
}, rest);
|
|
6430
|
-
return jsxRuntime.jsx(Wrapper$
|
|
6724
|
+
return jsxRuntime.jsx(Wrapper$5, Object.assign({}, wrapperProps, {
|
|
6431
6725
|
children: children
|
|
6432
6726
|
}));
|
|
6433
6727
|
};
|
|
@@ -6468,17 +6762,17 @@ var Breadcrumb = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6468
6762
|
}));
|
|
6469
6763
|
});
|
|
6470
6764
|
|
|
6471
|
-
var colors$
|
|
6472
|
-
spacing$
|
|
6765
|
+
var colors$d = ddsDesignTokens.ddsBaseTokens.colors,
|
|
6766
|
+
spacing$m = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
6473
6767
|
var typographyType$3 = 'bodySans02';
|
|
6474
6768
|
var icon$1 = {
|
|
6475
|
-
color: colors$
|
|
6769
|
+
color: colors$d.DdsColorInteractiveBase
|
|
6476
6770
|
};
|
|
6477
6771
|
var listItem$3 = {
|
|
6478
|
-
gap: spacing$
|
|
6772
|
+
gap: spacing$m.SizesDdsSpacingLocalX05
|
|
6479
6773
|
};
|
|
6480
6774
|
var list$5 = {
|
|
6481
|
-
gap: spacing$
|
|
6775
|
+
gap: spacing$m.SizesDdsSpacingLocalX05
|
|
6482
6776
|
};
|
|
6483
6777
|
var breadcrumbTokens = {
|
|
6484
6778
|
list: list$5,
|
|
@@ -6565,19 +6859,19 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
6565
6859
|
return arrayRange(1, pagesAmount);
|
|
6566
6860
|
}
|
|
6567
6861
|
|
|
6568
|
-
var spacing$
|
|
6569
|
-
colors$
|
|
6862
|
+
var spacing$l = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
6863
|
+
colors$c = ddsDesignTokens.ddsBaseTokens.colors;
|
|
6570
6864
|
var list$3 = {
|
|
6571
|
-
gap: spacing$
|
|
6865
|
+
gap: spacing$l.SizesDdsSpacingLocalX075
|
|
6572
6866
|
};
|
|
6573
6867
|
var truncationIcon$1 = {
|
|
6574
|
-
color: colors$
|
|
6868
|
+
color: colors$c.DdsColorNeutralsGray7
|
|
6575
6869
|
};
|
|
6576
6870
|
var outerContainer$4 = {
|
|
6577
|
-
gap: spacing$
|
|
6871
|
+
gap: spacing$l.SizesDdsSpacingLocalX075
|
|
6578
6872
|
};
|
|
6579
6873
|
var indicatorsContainer$1 = {
|
|
6580
|
-
gap: spacing$
|
|
6874
|
+
gap: spacing$l.SizesDdsSpacingLocalX075
|
|
6581
6875
|
};
|
|
6582
6876
|
var paginationTokens = {
|
|
6583
6877
|
outerContainer: outerContainer$4,
|
|
@@ -6812,11 +7106,11 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
6812
7106
|
});
|
|
6813
7107
|
|
|
6814
7108
|
var border$6 = ddsDesignTokens.ddsBaseTokens.border,
|
|
6815
|
-
spacing$
|
|
7109
|
+
spacing$k = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
6816
7110
|
var divider$1 = {
|
|
6817
7111
|
borderTop: "".concat(border$6.BordersDdsBorderStyleLightStrokeWeight, " solid"),
|
|
6818
|
-
marginTop: spacing$
|
|
6819
|
-
marginBottom: spacing$
|
|
7112
|
+
marginTop: spacing$k.SizesDdsSpacingLocalX1,
|
|
7113
|
+
marginBottom: spacing$k.SizesDdsSpacingLocalX1,
|
|
6820
7114
|
color: {
|
|
6821
7115
|
primary: {
|
|
6822
7116
|
borderColor: border$6.BordersDdsBorderStyleDarkStroke
|
|
@@ -6859,17 +7153,17 @@ var img$2 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14
|
|
|
6859
7153
|
var img$1 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6.70817 9.33333C8.80225 9.33333 10.4998 7.50516 10.4998 5.25H2.9165C2.9165 7.50516 4.61409 9.33333 6.70817 9.33333Z' fill='%230B0D0E'/%3e%3c/svg%3e";
|
|
6860
7154
|
var bulletLvl3 = img$1;
|
|
6861
7155
|
|
|
6862
|
-
var spacing$
|
|
7156
|
+
var spacing$j = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
6863
7157
|
var textDefault$1 = ddsDesignTokens.ddsReferenceTokens.textDefault;
|
|
6864
|
-
var ulLiPaddingLeft = "1em + ".concat(spacing$
|
|
6865
|
-
var ulPaddingLeft = "".concat(spacing$
|
|
7158
|
+
var ulLiPaddingLeft = "1em + ".concat(spacing$j.SizesDdsSpacingLocalX025);
|
|
7159
|
+
var ulPaddingLeft = "".concat(spacing$j.SizesDdsSpacingLocalX2, " - (").concat(ulLiPaddingLeft, ")");
|
|
6866
7160
|
var list$1 = {
|
|
6867
7161
|
base: {
|
|
6868
|
-
margin: "".concat(spacing$
|
|
7162
|
+
margin: "".concat(spacing$j.SizesDdsSpacingLocalX1, " 0"),
|
|
6869
7163
|
color: textDefault$1.textColor
|
|
6870
7164
|
},
|
|
6871
7165
|
ol: {
|
|
6872
|
-
paddingLeft: spacing$
|
|
7166
|
+
paddingLeft: spacing$j.SizesDdsSpacingLocalX2
|
|
6873
7167
|
},
|
|
6874
7168
|
ul: {
|
|
6875
7169
|
paddingLeft: "calc(".concat(ulPaddingLeft, ")")
|
|
@@ -6888,7 +7182,7 @@ var listTokens = {
|
|
|
6888
7182
|
list: list$1,
|
|
6889
7183
|
listItem: listItem$1,
|
|
6890
7184
|
bullet: bullet$1,
|
|
6891
|
-
spaceLeft: spacing$
|
|
7185
|
+
spaceLeft: spacing$j.SizesDdsSpacingLocalX2
|
|
6892
7186
|
};
|
|
6893
7187
|
|
|
6894
7188
|
var list = listTokens.list,
|
|
@@ -6940,7 +7234,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
6940
7234
|
}));
|
|
6941
7235
|
});
|
|
6942
7236
|
|
|
6943
|
-
var colors$
|
|
7237
|
+
var colors$b = ddsDesignTokens.ddsBaseTokens.colors,
|
|
6944
7238
|
border$5 = ddsDesignTokens.ddsBaseTokens.border;
|
|
6945
7239
|
var textDefault = ddsDesignTokens.ddsReferenceTokens.textDefault;
|
|
6946
7240
|
var base = {
|
|
@@ -6948,22 +7242,22 @@ var base = {
|
|
|
6948
7242
|
};
|
|
6949
7243
|
var cardColors = {
|
|
6950
7244
|
filledLight: {
|
|
6951
|
-
backgroundColor: colors$
|
|
6952
|
-
borderColor: colors$
|
|
7245
|
+
backgroundColor: colors$b.DdsColorPrimaryLightest,
|
|
7246
|
+
borderColor: colors$b.DdsColorPrimaryLightest,
|
|
6953
7247
|
color: textDefault.textColor
|
|
6954
7248
|
},
|
|
6955
7249
|
filledDark: {
|
|
6956
|
-
backgroundColor: colors$
|
|
6957
|
-
borderColor: colors$
|
|
6958
|
-
color: colors$
|
|
7250
|
+
backgroundColor: colors$b.DdsColorPrimaryBase,
|
|
7251
|
+
borderColor: colors$b.DdsColorPrimaryBase,
|
|
7252
|
+
color: colors$b.DdsColorNeutralsWhite
|
|
6959
7253
|
},
|
|
6960
7254
|
strokeDark: {
|
|
6961
|
-
backgroundColor: colors$
|
|
7255
|
+
backgroundColor: colors$b.DdsColorNeutralsWhite,
|
|
6962
7256
|
borderColor: border$5.BordersDdsBorderStyleLightStroke,
|
|
6963
7257
|
color: textDefault.textColor
|
|
6964
7258
|
},
|
|
6965
7259
|
strokeLight: {
|
|
6966
|
-
backgroundColor: colors$
|
|
7260
|
+
backgroundColor: colors$b.DdsColorNeutralsWhite,
|
|
6967
7261
|
borderColor: border$5.BordersDdsBorderStyleLightStroke,
|
|
6968
7262
|
color: textDefault.textColor
|
|
6969
7263
|
}
|
|
@@ -7017,7 +7311,7 @@ var Card = function Card(props) {
|
|
|
7017
7311
|
}));
|
|
7018
7312
|
};
|
|
7019
7313
|
|
|
7020
|
-
var Wrapper$
|
|
7314
|
+
var Wrapper$4 = styled__default["default"].div.withConfig({
|
|
7021
7315
|
displayName: "CardAccordion__Wrapper",
|
|
7022
7316
|
componentId: "sc-1ctxrby-0"
|
|
7023
7317
|
})([""]);
|
|
@@ -7063,12 +7357,12 @@ var CardAccordion = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7063
7357
|
var wrapperProps = Object.assign(Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest)), {
|
|
7064
7358
|
ref: ref
|
|
7065
7359
|
});
|
|
7066
|
-
return jsxRuntime.jsx(Wrapper$
|
|
7360
|
+
return jsxRuntime.jsx(Wrapper$4, Object.assign({}, wrapperProps, {
|
|
7067
7361
|
children: Children
|
|
7068
7362
|
}));
|
|
7069
7363
|
});
|
|
7070
7364
|
|
|
7071
|
-
var spacing$
|
|
7365
|
+
var spacing$i = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
7072
7366
|
border$4 = ddsDesignTokens.ddsBaseTokens.border,
|
|
7073
7367
|
iconSizes$1 = ddsDesignTokens.ddsBaseTokens.iconSizes;
|
|
7074
7368
|
var typographyTypes$3 = {
|
|
@@ -7076,7 +7370,7 @@ var typographyTypes$3 = {
|
|
|
7076
7370
|
header: 'headingSans03'
|
|
7077
7371
|
};
|
|
7078
7372
|
var header$1 = {
|
|
7079
|
-
padding: "".concat(spacing$
|
|
7373
|
+
padding: "".concat(spacing$i.SizesDdsSpacingLocalX1, " ").concat(spacing$i.SizesDdsSpacingLocalX075, " ").concat(spacing$i.SizesDdsSpacingLocalX1, " ").concat(spacing$i.SizesDdsSpacingLocalX15),
|
|
7080
7374
|
hover: {
|
|
7081
7375
|
boxShadow: "0 0 0 ".concat(border$4.BordersDdsBorderFocusInputfieldStrokeWeight, " ").concat(border$4.BordersDdsBorderFocusInputfieldStroke)
|
|
7082
7376
|
},
|
|
@@ -7087,10 +7381,10 @@ var header$1 = {
|
|
|
7087
7381
|
var chevronWrapper$1 = {
|
|
7088
7382
|
width: iconSizes$1.DdsIconsizeMedium,
|
|
7089
7383
|
height: iconSizes$1.DdsIconsizeMedium,
|
|
7090
|
-
marginLeft: spacing$
|
|
7384
|
+
marginLeft: spacing$i.SizesDdsSpacingLocalX05
|
|
7091
7385
|
};
|
|
7092
7386
|
var body = {
|
|
7093
|
-
padding: "".concat(spacing$
|
|
7387
|
+
padding: "".concat(spacing$i.SizesDdsSpacingLocalX1, " ").concat(spacing$i.SizesDdsSpacingLocalX2NumberPx + spacing$i.SizesDdsSpacingLocalX075NumberPx, "px ").concat(spacing$i.SizesDdsSpacingLocalX2, " ").concat(spacing$i.SizesDdsSpacingLocalX15)
|
|
7094
7388
|
};
|
|
7095
7389
|
var cardAccordionTokens = {
|
|
7096
7390
|
header: header$1,
|
|
@@ -7098,7 +7392,7 @@ var cardAccordionTokens = {
|
|
|
7098
7392
|
chevronWrapper: chevronWrapper$1,
|
|
7099
7393
|
chevron: {
|
|
7100
7394
|
width: iconSizes$1.DdsIconsizeMedium,
|
|
7101
|
-
height: spacing$
|
|
7395
|
+
height: spacing$i.SizesDdsSpacingLocalX05
|
|
7102
7396
|
}
|
|
7103
7397
|
};
|
|
7104
7398
|
|
|
@@ -7256,52 +7550,52 @@ var CardAccordionBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7256
7550
|
});
|
|
7257
7551
|
|
|
7258
7552
|
var border$3 = ddsDesignTokens.ddsBaseTokens.border,
|
|
7259
|
-
colors$
|
|
7260
|
-
spacing$
|
|
7553
|
+
colors$a = ddsDesignTokens.ddsBaseTokens.colors,
|
|
7554
|
+
spacing$h = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
7261
7555
|
var borderStyle = "".concat(border$3.BordersDdsBorderStyleLightStrokeWeight, " ").concat(border$3.BordersDdsBorderStyleLightStroke, " solid ");
|
|
7262
7556
|
var typographyTypes$2 = {
|
|
7263
7557
|
navLink: 'bodySans01'
|
|
7264
7558
|
};
|
|
7265
7559
|
var navLink$1 = {
|
|
7266
7560
|
base: {
|
|
7267
|
-
color: colors$
|
|
7268
|
-
backgroundColor: colors$
|
|
7269
|
-
padding: "".concat(spacing$
|
|
7561
|
+
color: colors$a.DdsColorNeutralsGray9,
|
|
7562
|
+
backgroundColor: colors$a.DdsColorNeutralsWhite,
|
|
7563
|
+
padding: "".concat(spacing$h.SizesDdsSpacingLocalX075, " ").concat(spacing$h.SizesDdsSpacingLocalX15)
|
|
7270
7564
|
},
|
|
7271
7565
|
hover: {
|
|
7272
|
-
color: colors$
|
|
7566
|
+
color: colors$a.DdsColorInteractiveDark
|
|
7273
7567
|
},
|
|
7274
7568
|
active: {
|
|
7275
|
-
color: colors$
|
|
7569
|
+
color: colors$a.DdsColorInteractiveDark
|
|
7276
7570
|
},
|
|
7277
7571
|
current: {
|
|
7278
|
-
color: colors$
|
|
7279
|
-
backgroundColor: colors$
|
|
7572
|
+
color: colors$a.DdsColorInteractiveDarkest,
|
|
7573
|
+
backgroundColor: colors$a.DdsColorPrimaryLightest
|
|
7280
7574
|
}
|
|
7281
7575
|
};
|
|
7282
7576
|
var outerContainer$2 = {
|
|
7283
|
-
backgroundColor: colors$
|
|
7577
|
+
backgroundColor: colors$a.DdsColorNeutralsWhite
|
|
7284
7578
|
};
|
|
7285
7579
|
var applicationNameWrapper$1 = {
|
|
7286
|
-
padding: "".concat(spacing$
|
|
7580
|
+
padding: "".concat(spacing$h.SizesDdsSpacingLocalX1, " ").concat(spacing$h.SizesDdsSpacingLocalX15)
|
|
7287
7581
|
};
|
|
7288
7582
|
var lovisaWrapper$1 = {
|
|
7289
|
-
padding: "".concat(spacing$
|
|
7583
|
+
padding: "".concat(spacing$h.SizesDdsSpacingLocalX1, " ").concat(spacing$h.SizesDdsSpacingLocalX15),
|
|
7290
7584
|
borderRight: borderStyle
|
|
7291
7585
|
};
|
|
7292
7586
|
var banner$1 = {
|
|
7293
7587
|
borderBottom: borderStyle,
|
|
7294
|
-
paddingRight: spacing$
|
|
7588
|
+
paddingRight: spacing$h.SizesDdsSpacingLocalX1,
|
|
7295
7589
|
hasContextMenu: {
|
|
7296
|
-
paddingRight: spacing$
|
|
7590
|
+
paddingRight: spacing$h.SizesDdsSpacingLayoutX4
|
|
7297
7591
|
}
|
|
7298
7592
|
};
|
|
7299
7593
|
var navigation$1 = {
|
|
7300
7594
|
borderBottom: borderStyle
|
|
7301
7595
|
};
|
|
7302
7596
|
var contextGroup$1 = {
|
|
7303
|
-
right: spacing$
|
|
7304
|
-
top: spacing$
|
|
7597
|
+
right: spacing$h.SizesDdsSpacingLocalX075,
|
|
7598
|
+
top: spacing$h.SizesDdsSpacingLocalX025
|
|
7305
7599
|
};
|
|
7306
7600
|
var internalHeaderTokens = {
|
|
7307
7601
|
navLink: navLink$1,
|
|
@@ -7701,7 +7995,7 @@ var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' height='
|
|
|
7701
7995
|
var CalendarIcon = img;
|
|
7702
7996
|
|
|
7703
7997
|
var iconSizes = ddsDesignTokens.ddsBaseTokens.iconSizes,
|
|
7704
|
-
spacing$
|
|
7998
|
+
spacing$g = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
7705
7999
|
border$2 = ddsDesignTokens.ddsBaseTokens.border;
|
|
7706
8000
|
var calendarIndicator = {
|
|
7707
8001
|
base: {
|
|
@@ -7709,23 +8003,23 @@ var calendarIndicator = {
|
|
|
7709
8003
|
medium: {
|
|
7710
8004
|
height: iconSizes.DdsIconsizeMedium,
|
|
7711
8005
|
width: iconSizes.DdsIconsizeMedium,
|
|
7712
|
-
right: spacing$
|
|
8006
|
+
right: spacing$g.SizesDdsSpacingLocalX075
|
|
7713
8007
|
},
|
|
7714
8008
|
small: {
|
|
7715
8009
|
height: iconSizes.DdsIconsizeSmall,
|
|
7716
8010
|
width: iconSizes.DdsIconsizeSmall,
|
|
7717
|
-
right: spacing$
|
|
8011
|
+
right: spacing$g.SizesDdsSpacingLocalX075
|
|
7718
8012
|
},
|
|
7719
8013
|
tiny: {
|
|
7720
8014
|
height: iconSizes.DdsIconsizeSmall,
|
|
7721
8015
|
width: iconSizes.DdsIconsizeSmall,
|
|
7722
|
-
right: spacing$
|
|
8016
|
+
right: spacing$g.SizesDdsSpacingLocalX075
|
|
7723
8017
|
}
|
|
7724
8018
|
}
|
|
7725
8019
|
},
|
|
7726
8020
|
focus: {
|
|
7727
8021
|
outline: "".concat(border$2.BordersDdsBorderFocusInputfieldStroke, " solid ").concat(border$2.BordersDdsBorderFocusInputfieldStrokeWeight),
|
|
7728
|
-
outlineOffset: spacing$
|
|
8022
|
+
outlineOffset: spacing$g.SizesDdsSpacingLocalX0125
|
|
7729
8023
|
}
|
|
7730
8024
|
};
|
|
7731
8025
|
var datepickerTokens = {
|
|
@@ -7822,19 +8116,19 @@ var getMax = function getMax(type, max) {
|
|
|
7822
8116
|
}
|
|
7823
8117
|
};
|
|
7824
8118
|
|
|
7825
|
-
var colors$
|
|
7826
|
-
spacing$
|
|
8119
|
+
var colors$9 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
8120
|
+
spacing$f = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
7827
8121
|
var link$1 = {
|
|
7828
8122
|
base: {
|
|
7829
|
-
color: colors$
|
|
8123
|
+
color: colors$9.DdsColorNeutralsWhite
|
|
7830
8124
|
},
|
|
7831
8125
|
hover: {
|
|
7832
|
-
color: colors$
|
|
8126
|
+
color: colors$9.DdsColorNeutralsWhite
|
|
7833
8127
|
}
|
|
7834
8128
|
};
|
|
7835
8129
|
var wrapper$7 = {
|
|
7836
|
-
backgroundColor: colors$
|
|
7837
|
-
padding: spacing$
|
|
8130
|
+
backgroundColor: colors$9.DdsColorPrimaryBase,
|
|
8131
|
+
padding: spacing$f.SizesDdsSpacingLocalX025
|
|
7838
8132
|
};
|
|
7839
8133
|
var skipToContentTokens = {
|
|
7840
8134
|
link: link$1,
|
|
@@ -7843,10 +8137,10 @@ var skipToContentTokens = {
|
|
|
7843
8137
|
|
|
7844
8138
|
var wrapper$6 = skipToContentTokens.wrapper,
|
|
7845
8139
|
link = skipToContentTokens.link;
|
|
7846
|
-
var Wrapper$
|
|
8140
|
+
var Wrapper$3 = styled__default["default"].div.withConfig({
|
|
7847
8141
|
displayName: "SkipToContent__Wrapper",
|
|
7848
8142
|
componentId: "sc-57o1qv-0"
|
|
7849
|
-
})(["box-sizing:border-box;position:absolute;top:", ";text-align:center;overflow:hidden;clip:rect(1px,1px,1px,1px);height:1px;width:1px;white-space:nowrap;background-color:", ";padding:", ";opacity:0;@media (prefers-reduced-motion:no-preference){transition:opacity 0.2s;}&:focus-within{clip:auto;height:auto;overflow:auto;width:100%;z-index:
|
|
8143
|
+
})(["box-sizing:border-box;position:absolute;top:", ";text-align:center;overflow:hidden;clip:rect(1px,1px,1px,1px);height:1px;width:1px;white-space:nowrap;background-color:", ";padding:", ";opacity:0;@media (prefers-reduced-motion:no-preference){transition:opacity 0.2s;}&:focus-within{clip:auto;height:auto;overflow:auto;width:100%;z-index:250;opacity:1;}"], function (_ref) {
|
|
7850
8144
|
var top = _ref.top;
|
|
7851
8145
|
return top;
|
|
7852
8146
|
}, wrapper$6.backgroundColor, wrapper$6.padding);
|
|
@@ -7872,7 +8166,7 @@ var SkipToContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7872
8166
|
className: joinClassNames(className, htmlPropsClassName),
|
|
7873
8167
|
style: style
|
|
7874
8168
|
};
|
|
7875
|
-
return jsxRuntime.jsx(Wrapper$
|
|
8169
|
+
return jsxRuntime.jsx(Wrapper$3, Object.assign({}, wrapperProps, {
|
|
7876
8170
|
children: jsxRuntime.jsx(Link, Object.assign({}, getBaseHTMLProps(id, restHtmlProps, rest), {
|
|
7877
8171
|
ref: ref
|
|
7878
8172
|
}, {
|
|
@@ -7881,17 +8175,17 @@ var SkipToContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7881
8175
|
}));
|
|
7882
8176
|
});
|
|
7883
8177
|
|
|
7884
|
-
var colors$
|
|
7885
|
-
spacing$
|
|
8178
|
+
var colors$8 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
8179
|
+
spacing$e = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
7886
8180
|
var wrapper$5 = {
|
|
7887
|
-
padding: "".concat(spacing$
|
|
8181
|
+
padding: "".concat(spacing$e.SizesDdsSpacingLocalX075)
|
|
7888
8182
|
};
|
|
7889
8183
|
var svgArrow$1 = {
|
|
7890
8184
|
border: {
|
|
7891
|
-
fill: colors$
|
|
8185
|
+
fill: colors$8.DdsColorPrimaryLighter
|
|
7892
8186
|
},
|
|
7893
8187
|
background: {
|
|
7894
|
-
fill: colors$
|
|
8188
|
+
fill: colors$8.DdsColorNeutralsWhite
|
|
7895
8189
|
}
|
|
7896
8190
|
};
|
|
7897
8191
|
var tooltipTokens = {
|
|
@@ -7915,7 +8209,7 @@ var Container$9 = styled__default["default"].div.withConfig({
|
|
|
7915
8209
|
var TooltipWrapper = styled__default["default"](Paper).withConfig({
|
|
7916
8210
|
displayName: "Tooltipstyles__TooltipWrapper",
|
|
7917
8211
|
componentId: "sc-1cna5tc-3"
|
|
7918
|
-
})(["", " width:fit-content;position:absolute;z-index:
|
|
8212
|
+
})(["", " width:fit-content;position:absolute;z-index:80;text-align:center;padding:", ";", ";"], function (_ref) {
|
|
7919
8213
|
var open = _ref.open;
|
|
7920
8214
|
return visibilityTransition(open);
|
|
7921
8215
|
}, wrapper$4.padding, getFontStyling(defaultTypographyType));
|
|
@@ -8054,16 +8348,16 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
8054
8348
|
}));
|
|
8055
8349
|
});
|
|
8056
8350
|
|
|
8057
|
-
var spacing$
|
|
8351
|
+
var spacing$d = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
8058
8352
|
var container$6 = {
|
|
8059
|
-
padding: "".concat(spacing$
|
|
8353
|
+
padding: "".concat(spacing$d.SizesDdsSpacingLocalX1, " ").concat(spacing$d.SizesDdsSpacingLocalX1, " ").concat(spacing$d.SizesDdsSpacingLocalX15, " ").concat(spacing$d.SizesDdsSpacingLocalX15)
|
|
8060
8354
|
};
|
|
8061
8355
|
var contentContainer$3 = {
|
|
8062
|
-
paddingRight: spacing$
|
|
8063
|
-
gap: spacing$
|
|
8356
|
+
paddingRight: spacing$d.SizesDdsSpacingLocalX1,
|
|
8357
|
+
gap: spacing$d.SizesDdsSpacingLocalX1
|
|
8064
8358
|
};
|
|
8065
8359
|
var actionsContainer = {
|
|
8066
|
-
gap: spacing$
|
|
8360
|
+
gap: spacing$d.SizesDdsSpacingLocalX1
|
|
8067
8361
|
};
|
|
8068
8362
|
var modalTokens = {
|
|
8069
8363
|
container: container$6,
|
|
@@ -8208,14 +8502,14 @@ var ModalActions = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
8208
8502
|
}));
|
|
8209
8503
|
});
|
|
8210
8504
|
|
|
8211
|
-
var spacing$
|
|
8212
|
-
var contentContainerPaddingNumberPx = spacing$
|
|
8505
|
+
var spacing$c = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
8506
|
+
var contentContainerPaddingNumberPx = spacing$c.SizesDdsSpacingLocalX025NumberPx;
|
|
8213
8507
|
var contentContainerPadding = "".concat(contentContainerPaddingNumberPx, "px");
|
|
8214
8508
|
var container$4 = {
|
|
8215
|
-
padding: "".concat(spacing$
|
|
8509
|
+
padding: "".concat(spacing$c.SizesDdsSpacingLocalX1NumberPx - contentContainerPaddingNumberPx, "px ").concat(spacing$c.SizesDdsSpacingLocalX1NumberPx - contentContainerPaddingNumberPx, "px ").concat(spacing$c.SizesDdsSpacingLocalX1NumberPx - contentContainerPaddingNumberPx, "px ").concat(spacing$c.SizesDdsSpacingLocalX15NumberPx - contentContainerPaddingNumberPx, "px")
|
|
8216
8510
|
};
|
|
8217
8511
|
var contentContainer$1 = {
|
|
8218
|
-
gap: spacing$
|
|
8512
|
+
gap: spacing$c.SizesDdsSpacingLocalX1,
|
|
8219
8513
|
padding: contentContainerPadding
|
|
8220
8514
|
};
|
|
8221
8515
|
var drawerTokens = {
|
|
@@ -8372,20 +8666,20 @@ var DrawerGroup = function DrawerGroup(_ref) {
|
|
|
8372
8666
|
});
|
|
8373
8667
|
};
|
|
8374
8668
|
|
|
8375
|
-
var spacing$
|
|
8669
|
+
var spacing$b = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
8376
8670
|
var wrapper$3 = {
|
|
8377
|
-
padding: "".concat(spacing$
|
|
8671
|
+
padding: "".concat(spacing$b.SizesDdsSpacingLocalX075, " ").concat(spacing$b.SizesDdsSpacingLocalX1, " ").concat(spacing$b.SizesDdsSpacingLocalX15, " ").concat(spacing$b.SizesDdsSpacingLocalX1)
|
|
8378
8672
|
};
|
|
8379
8673
|
var closeButton$1 = {
|
|
8380
|
-
top: spacing$
|
|
8381
|
-
right: spacing$
|
|
8674
|
+
top: spacing$b.SizesDdsSpacingLocalX025,
|
|
8675
|
+
right: spacing$b.SizesDdsSpacingLocalX025
|
|
8382
8676
|
};
|
|
8383
8677
|
var title$1 = {
|
|
8384
|
-
marginRight: spacing$
|
|
8678
|
+
marginRight: spacing$b.SizesDdsSpacingLocalX2
|
|
8385
8679
|
};
|
|
8386
8680
|
var content$3 = {
|
|
8387
8681
|
noTitle: {
|
|
8388
|
-
marginTop: spacing$
|
|
8682
|
+
marginTop: spacing$b.SizesDdsSpacingLocalX2
|
|
8389
8683
|
}
|
|
8390
8684
|
};
|
|
8391
8685
|
var popoverTokens = {
|
|
@@ -8395,12 +8689,12 @@ var popoverTokens = {
|
|
|
8395
8689
|
title: title$1
|
|
8396
8690
|
};
|
|
8397
8691
|
|
|
8398
|
-
var Spacing = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
8692
|
+
var Spacing$1 = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
8399
8693
|
var wrapper$2 = popoverTokens.wrapper,
|
|
8400
8694
|
content$2 = popoverTokens.content,
|
|
8401
8695
|
closeButton = popoverTokens.closeButton,
|
|
8402
8696
|
title = popoverTokens.title;
|
|
8403
|
-
var Wrapper$
|
|
8697
|
+
var Wrapper$2 = styled__default["default"](Paper).withConfig({
|
|
8404
8698
|
displayName: "Popover__Wrapper",
|
|
8405
8699
|
componentId: "sc-1fecd7e-0"
|
|
8406
8700
|
})(["opacity:0;", " position:absolute;width:fit-content;z-index:100;padding:", ";&:focus-visible{", "}", ""], function (_ref) {
|
|
@@ -8441,7 +8735,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
8441
8735
|
_props$placement = props.placement,
|
|
8442
8736
|
placement = _props$placement === void 0 ? 'bottom' : _props$placement,
|
|
8443
8737
|
_props$offset = props.offset,
|
|
8444
|
-
offset = _props$offset === void 0 ? Spacing.SizesDdsSpacingLocalX05NumberPx : _props$offset,
|
|
8738
|
+
offset = _props$offset === void 0 ? Spacing$1.SizesDdsSpacingLocalX05NumberPx : _props$offset,
|
|
8445
8739
|
id = props.id,
|
|
8446
8740
|
className = props.className,
|
|
8447
8741
|
_props$htmlProps = props.htmlProps,
|
|
@@ -8476,7 +8770,7 @@ var Popover = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
8476
8770
|
style: Object.assign(Object.assign({}, htmlProps.style), styles.floating),
|
|
8477
8771
|
role: 'dialog'
|
|
8478
8772
|
});
|
|
8479
|
-
return isOpen || hasTransitionedIn ? jsxRuntime.jsxs(Wrapper$
|
|
8773
|
+
return isOpen || hasTransitionedIn ? jsxRuntime.jsxs(Wrapper$2, Object.assign({}, wrapperProps, {
|
|
8480
8774
|
elevation: 3,
|
|
8481
8775
|
border: "light"
|
|
8482
8776
|
}, {
|
|
@@ -8557,29 +8851,29 @@ var PopoverGroup = function PopoverGroup(_ref) {
|
|
|
8557
8851
|
});
|
|
8558
8852
|
};
|
|
8559
8853
|
|
|
8560
|
-
var colors$
|
|
8561
|
-
spacing$
|
|
8854
|
+
var colors$7 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
8855
|
+
spacing$a = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
8562
8856
|
var button = buttonTokens.button;
|
|
8563
8857
|
var selectionControl = selectionControlTokens.selectionControl;
|
|
8564
8858
|
var typographyType$2 = typographyTypes$6.small;
|
|
8565
8859
|
var toggleButton$1 = {
|
|
8566
8860
|
border: button.base.border,
|
|
8567
|
-
backgroundColor: colors$
|
|
8568
|
-
color: colors$
|
|
8569
|
-
gap: spacing$
|
|
8861
|
+
backgroundColor: colors$7.DdsColorNeutralsWhite,
|
|
8862
|
+
color: colors$7.DdsColorNeutralsGray7,
|
|
8863
|
+
gap: spacing$a.SizesDdsSpacingLocalX05,
|
|
8570
8864
|
borderRadius: button.appearances.rounded.base.borderRadius,
|
|
8571
8865
|
padding: button.sizes.small.text.padding,
|
|
8572
8866
|
hover: selectionControl.hover.base,
|
|
8573
8867
|
checked: Object.assign(Object.assign({}, selectionControl.checked.base), {
|
|
8574
|
-
color: colors$
|
|
8868
|
+
color: colors$7.DdsColorNeutralsWhite,
|
|
8575
8869
|
hover: selectionControl.checked.hover
|
|
8576
8870
|
})
|
|
8577
8871
|
};
|
|
8578
8872
|
var group$1 = {
|
|
8579
|
-
gap: spacing$
|
|
8873
|
+
gap: spacing$a.SizesDdsSpacingLocalX075
|
|
8580
8874
|
};
|
|
8581
8875
|
var container$2 = {
|
|
8582
|
-
gap: spacing$
|
|
8876
|
+
gap: spacing$a.SizesDdsSpacingLocalX05
|
|
8583
8877
|
};
|
|
8584
8878
|
var toggleButtonTokens = {
|
|
8585
8879
|
toggleButton: toggleButton$1,
|
|
@@ -8751,37 +9045,37 @@ var Tabs = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
8751
9045
|
});
|
|
8752
9046
|
|
|
8753
9047
|
var border$1 = ddsDesignTokens.ddsBaseTokens.border,
|
|
8754
|
-
spacing$
|
|
8755
|
-
colors$
|
|
9048
|
+
spacing$9 = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
9049
|
+
colors$6 = ddsDesignTokens.ddsBaseTokens.colors;
|
|
8756
9050
|
var tabList$1 = {
|
|
8757
9051
|
borderBottom: "".concat(border$1.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(border$1.BordersDdsBorderStyleLightStroke)
|
|
8758
9052
|
};
|
|
8759
9053
|
var tab$1 = {
|
|
8760
9054
|
base: {
|
|
8761
9055
|
borderBottom: "".concat(border$1.BordersDdsBorderStyleLightStrokeWeight, " solid transparent"),
|
|
8762
|
-
color: colors$
|
|
8763
|
-
padding: spacing$
|
|
9056
|
+
color: colors$6.DdsColorNeutralsGray7,
|
|
9057
|
+
padding: spacing$9.SizesDdsSpacingLocalX05
|
|
8764
9058
|
},
|
|
8765
9059
|
row: {
|
|
8766
|
-
gap: spacing$
|
|
9060
|
+
gap: spacing$9.SizesDdsSpacingLocalX05
|
|
8767
9061
|
},
|
|
8768
9062
|
column: {
|
|
8769
|
-
gap: spacing$
|
|
9063
|
+
gap: spacing$9.SizesDdsSpacingLocalX025
|
|
8770
9064
|
},
|
|
8771
9065
|
active: {
|
|
8772
|
-
backgroundColor: colors$
|
|
8773
|
-
color: colors$
|
|
8774
|
-
boxShadow: "inset 0 -2px 0 0 ".concat(colors$
|
|
8775
|
-
borderColor: colors$
|
|
9066
|
+
backgroundColor: colors$6.DdsColorInteractiveLightest,
|
|
9067
|
+
color: colors$6.DdsColorInteractiveDarkest,
|
|
9068
|
+
boxShadow: "inset 0 -2px 0 0 ".concat(colors$6.DdsColorInteractiveDarker),
|
|
9069
|
+
borderColor: colors$6.DdsColorInteractiveDarker
|
|
8776
9070
|
},
|
|
8777
9071
|
hover: {
|
|
8778
|
-
color: colors$
|
|
8779
|
-
boxShadow: "inset 0 -2px 0 0 ".concat(colors$
|
|
8780
|
-
borderColor: colors$
|
|
9072
|
+
color: colors$6.DdsColorInteractiveDarkest,
|
|
9073
|
+
boxShadow: "inset 0 -2px 0 0 ".concat(colors$6.DdsColorInteractiveDarker),
|
|
9074
|
+
borderColor: colors$6.DdsColorInteractiveDarker
|
|
8781
9075
|
}
|
|
8782
9076
|
};
|
|
8783
9077
|
var panel$1 = {
|
|
8784
|
-
padding: spacing$
|
|
9078
|
+
padding: spacing$9.SizesDdsSpacingLocalX025
|
|
8785
9079
|
};
|
|
8786
9080
|
var tabsTokens = {
|
|
8787
9081
|
tabList: tabList$1,
|
|
@@ -8979,18 +9273,18 @@ var TabPanels = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
8979
9273
|
}));
|
|
8980
9274
|
});
|
|
8981
9275
|
|
|
8982
|
-
var colors$
|
|
9276
|
+
var colors$5 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
8983
9277
|
borderRadius$2 = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
8984
|
-
spacing$
|
|
9278
|
+
spacing$8 = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
8985
9279
|
var typographyType$1 = 'bodySans01';
|
|
8986
9280
|
var wrapper$1 = {
|
|
8987
9281
|
border: '1px solid',
|
|
8988
9282
|
borderRadius: borderRadius$2.RadiiDdsBorderRadius1Radius,
|
|
8989
|
-
padding: "".concat(spacing$
|
|
9283
|
+
padding: "".concat(spacing$8.SizesDdsSpacingLocalX0125, " ").concat(spacing$8.SizesDdsSpacingLocalX025),
|
|
8990
9284
|
purpose: {
|
|
8991
9285
|
"default": {
|
|
8992
|
-
backgroundColor: colors$
|
|
8993
|
-
borderColor: colors$
|
|
9286
|
+
backgroundColor: colors$5.DdsColorNeutralsGray1,
|
|
9287
|
+
borderColor: colors$5.DdsColorNeutralsGray3
|
|
8994
9288
|
},
|
|
8995
9289
|
success: localMessageTokens.container.purpose.success,
|
|
8996
9290
|
danger: localMessageTokens.container.purpose.danger,
|
|
@@ -9012,7 +9306,7 @@ var TextOverflowEllipsisInner = styled__default["default"].span.withConfig({
|
|
|
9012
9306
|
})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);
|
|
9013
9307
|
|
|
9014
9308
|
var wrapper = tagTokens.wrapper;
|
|
9015
|
-
var Wrapper = styled__default["default"](TextOverflowEllipsisWrapper).withConfig({
|
|
9309
|
+
var Wrapper$1 = styled__default["default"](TextOverflowEllipsisWrapper).withConfig({
|
|
9016
9310
|
displayName: "Tag__Wrapper",
|
|
9017
9311
|
componentId: "sc-rdxtch-0"
|
|
9018
9312
|
})(["display:inline-flex;align-items:center;border:", ";border-radius:", ";padding:", ";", " ", ""], wrapper.border, wrapper.borderRadius, wrapper.padding, getFontStyling(typographyType$1), function (_ref) {
|
|
@@ -9027,7 +9321,7 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
9027
9321
|
className = props.className,
|
|
9028
9322
|
htmlProps = props.htmlProps,
|
|
9029
9323
|
rest = tslib.__rest(props, ["text", "purpose", "id", "className", "htmlProps"]);
|
|
9030
|
-
return jsxRuntime.jsx(Wrapper, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
9324
|
+
return jsxRuntime.jsx(Wrapper$1, Object.assign({}, getBaseHTMLProps(id, className, htmlProps, rest), {
|
|
9031
9325
|
ref: ref,
|
|
9032
9326
|
purpose: purpose
|
|
9033
9327
|
}, {
|
|
@@ -9037,19 +9331,19 @@ var Tag = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
9037
9331
|
}));
|
|
9038
9332
|
});
|
|
9039
9333
|
|
|
9040
|
-
var colors$
|
|
9041
|
-
spacing$
|
|
9334
|
+
var colors$4 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
9335
|
+
spacing$7 = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
9042
9336
|
borderRadius$1 = ddsDesignTokens.ddsBaseTokens.borderRadius;
|
|
9043
9337
|
var typographyType = 'bodySans01';
|
|
9044
9338
|
var container$1 = {
|
|
9045
|
-
gap: spacing$
|
|
9046
|
-
padding: "".concat(spacing$
|
|
9047
|
-
backgroundColor: colors$
|
|
9048
|
-
border: "1px solid ".concat(colors$
|
|
9339
|
+
gap: spacing$7.SizesDdsSpacingLocalX025,
|
|
9340
|
+
padding: "".concat(spacing$7.SizesDdsSpacingLocalX0125, " ").concat(spacing$7.SizesDdsSpacingLocalX025),
|
|
9341
|
+
backgroundColor: colors$4.DdsColorNeutralsGray1,
|
|
9342
|
+
border: "1px solid ".concat(colors$4.DdsColorNeutralsGray3),
|
|
9049
9343
|
borderRadius: borderRadius$1.RadiiDdsBorderRadius1Radius
|
|
9050
9344
|
};
|
|
9051
9345
|
var group = {
|
|
9052
|
-
gap: spacing$
|
|
9346
|
+
gap: spacing$7.SizesDdsSpacingLocalX075
|
|
9053
9347
|
};
|
|
9054
9348
|
var chipTokens = {
|
|
9055
9349
|
container: container$1,
|
|
@@ -9123,8 +9417,8 @@ var useToggleBarContext = function useToggleBarContext() {
|
|
|
9123
9417
|
return React.useContext(ToggleBarContext);
|
|
9124
9418
|
};
|
|
9125
9419
|
|
|
9126
|
-
var colors$
|
|
9127
|
-
spacing$
|
|
9420
|
+
var colors$3 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
9421
|
+
spacing$6 = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
9128
9422
|
border = ddsDesignTokens.ddsBaseTokens.border,
|
|
9129
9423
|
borderRadius = ddsDesignTokens.ddsBaseTokens.borderRadius,
|
|
9130
9424
|
fontPackages$1 = ddsDesignTokens.ddsBaseTokens.fontPackages;
|
|
@@ -9139,21 +9433,21 @@ var iconSizeSmall = "".concat(calculateHeightWithLineHeight(fontPackages$1.body_
|
|
|
9139
9433
|
var iconSizeMedium = "".concat(calculateHeightWithLineHeight(fontPackages$1.body_sans_02.numbers.lineHeightNumber, fontPackages$1.body_sans_02.numbers.fontSizeNumber), "px");
|
|
9140
9434
|
var iconSizeLarge = "".concat(calculateHeightWithLineHeight(fontPackages$1.body_sans_04.numbers.lineHeightNumber, fontPackages$1.body_sans_04.numbers.fontSizeNumber), "px");
|
|
9141
9435
|
var outerContainer = {
|
|
9142
|
-
gap: spacing$
|
|
9436
|
+
gap: spacing$6.SizesDdsSpacingLocalX0125
|
|
9143
9437
|
};
|
|
9144
9438
|
var label$1 = {
|
|
9145
9439
|
base: {
|
|
9146
|
-
borderColor: colors$
|
|
9147
|
-
borderRight: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$
|
|
9148
|
-
borderTop: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$
|
|
9149
|
-
borderBottom: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$
|
|
9440
|
+
borderColor: colors$3.DdsColorNeutralsGray5,
|
|
9441
|
+
borderRight: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$3.DdsColorNeutralsGray5),
|
|
9442
|
+
borderTop: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$3.DdsColorNeutralsGray5),
|
|
9443
|
+
borderBottom: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$3.DdsColorNeutralsGray5)
|
|
9150
9444
|
},
|
|
9151
9445
|
hover: {
|
|
9152
|
-
color: colors$
|
|
9153
|
-
borderColor: colors$
|
|
9446
|
+
color: colors$3.DdsColorInteractiveDark,
|
|
9447
|
+
borderColor: colors$3.DdsColorInteractiveDark
|
|
9154
9448
|
},
|
|
9155
9449
|
firstChild: {
|
|
9156
|
-
borderLeft: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$
|
|
9450
|
+
borderLeft: "".concat(border.BordersDdsBorderStyleLightStrokeWeight, " solid ").concat(colors$3.DdsColorNeutralsGray5),
|
|
9157
9451
|
borderTopLeftRadius: borderRadius.RadiiDdsBorderRadius1Radius,
|
|
9158
9452
|
borderBottomLeftRadius: borderRadius.RadiiDdsBorderRadius1Radius
|
|
9159
9453
|
},
|
|
@@ -9164,53 +9458,53 @@ var label$1 = {
|
|
|
9164
9458
|
};
|
|
9165
9459
|
var content$1 = {
|
|
9166
9460
|
base: {
|
|
9167
|
-
backgroundColor: colors$
|
|
9461
|
+
backgroundColor: colors$3.DdsColorNeutralsGray1
|
|
9168
9462
|
},
|
|
9169
9463
|
active: {
|
|
9170
|
-
color: colors$
|
|
9171
|
-
borderColor: colors$
|
|
9172
|
-
backgroundColor: colors$
|
|
9173
|
-
boxShadow: "inset 0 0 0 1px ".concat(colors$
|
|
9464
|
+
color: colors$3.DdsColorInteractiveDarkest,
|
|
9465
|
+
borderColor: colors$3.DdsColorInteractiveDarker,
|
|
9466
|
+
backgroundColor: colors$3.DdsColorInteractiveLightest,
|
|
9467
|
+
boxShadow: "inset 0 0 0 1px ".concat(colors$3.DdsColorInteractiveDarker)
|
|
9174
9468
|
},
|
|
9175
9469
|
size: {
|
|
9176
9470
|
tiny: {
|
|
9177
9471
|
justIcon: {
|
|
9178
|
-
padding: spacing$
|
|
9472
|
+
padding: spacing$6.SizesDdsSpacingLocalX025,
|
|
9179
9473
|
fontSize: iconSizeTiny
|
|
9180
9474
|
},
|
|
9181
9475
|
withText: {
|
|
9182
|
-
padding: "".concat(spacing$
|
|
9183
|
-
gap: spacing$
|
|
9476
|
+
padding: "".concat(spacing$6.SizesDdsSpacingLocalX025, " ").concat(spacing$6.SizesDdsSpacingLocalX075),
|
|
9477
|
+
gap: spacing$6.SizesDdsSpacingLocalX05
|
|
9184
9478
|
}
|
|
9185
9479
|
},
|
|
9186
9480
|
small: {
|
|
9187
9481
|
justIcon: {
|
|
9188
|
-
padding: spacing$
|
|
9482
|
+
padding: spacing$6.SizesDdsSpacingLocalX05,
|
|
9189
9483
|
fontSize: iconSizeSmall
|
|
9190
9484
|
},
|
|
9191
9485
|
withText: {
|
|
9192
|
-
padding: "".concat(spacing$
|
|
9193
|
-
gap: spacing$
|
|
9486
|
+
padding: "".concat(spacing$6.SizesDdsSpacingLocalX05, " ").concat(spacing$6.SizesDdsSpacingLocalX1),
|
|
9487
|
+
gap: spacing$6.SizesDdsSpacingLocalX05
|
|
9194
9488
|
}
|
|
9195
9489
|
},
|
|
9196
9490
|
medium: {
|
|
9197
9491
|
justIcon: {
|
|
9198
|
-
padding: spacing$
|
|
9492
|
+
padding: spacing$6.SizesDdsSpacingLocalX075,
|
|
9199
9493
|
fontSize: iconSizeMedium
|
|
9200
9494
|
},
|
|
9201
9495
|
withText: {
|
|
9202
|
-
padding: "".concat(spacing$
|
|
9203
|
-
gap: spacing$
|
|
9496
|
+
padding: "".concat(spacing$6.SizesDdsSpacingLocalX075, " ").concat(spacing$6.SizesDdsSpacingLocalX15),
|
|
9497
|
+
gap: spacing$6.SizesDdsSpacingLocalX05
|
|
9204
9498
|
}
|
|
9205
9499
|
},
|
|
9206
9500
|
large: {
|
|
9207
9501
|
justIcon: {
|
|
9208
|
-
padding: spacing$
|
|
9502
|
+
padding: spacing$6.SizesDdsSpacingLocalX1,
|
|
9209
9503
|
fontSize: iconSizeLarge
|
|
9210
9504
|
},
|
|
9211
9505
|
withText: {
|
|
9212
|
-
padding: "".concat(spacing$
|
|
9213
|
-
gap: spacing$
|
|
9506
|
+
padding: "".concat(spacing$6.SizesDdsSpacingLocalX1, " ").concat(spacing$6.SizesDdsSpacingLocalX2),
|
|
9507
|
+
gap: spacing$6.SizesDdsSpacingLocalX1
|
|
9214
9508
|
}
|
|
9215
9509
|
}
|
|
9216
9510
|
}
|
|
@@ -9361,15 +9655,15 @@ var ToggleRadio = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
9361
9655
|
|
|
9362
9656
|
var _halfWayColumn, _gridTokens;
|
|
9363
9657
|
var grid = ddsDesignTokens.ddsBaseTokens.grid,
|
|
9364
|
-
spacing$
|
|
9658
|
+
spacing$5 = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
9365
9659
|
var allColumns = '1 / -1';
|
|
9366
9660
|
var halfWayColumn = (_halfWayColumn = {}, _defineProperty(_halfWayColumn, exports.ScreenSize.Small, grid.DdsGridSm600959Count / 2 + 1), _defineProperty(_halfWayColumn, exports.ScreenSize.Medium, grid.DdsGridMd9601279Count / 2 + 1), _defineProperty(_halfWayColumn, exports.ScreenSize.Large, grid.DdsGridLg12801919Count / 2 + 1), _defineProperty(_halfWayColumn, exports.ScreenSize.XLarge, grid.DdsGridXs0599Count / 2 + 1), _halfWayColumn);
|
|
9367
9661
|
var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, exports.ScreenSize.XSmall, {
|
|
9368
9662
|
grid: {
|
|
9369
9663
|
columns: grid.DdsGridXs0599Count,
|
|
9370
9664
|
columnGap: grid.DdsGridXs0599GutterSize,
|
|
9371
|
-
marginLeft: spacing$
|
|
9372
|
-
marginRight: spacing$
|
|
9665
|
+
marginLeft: spacing$5.SizesDdsSpacingLayoutX1,
|
|
9666
|
+
marginRight: spacing$5.SizesDdsSpacingLayoutX1
|
|
9373
9667
|
},
|
|
9374
9668
|
columns: {
|
|
9375
9669
|
firstHalf: {
|
|
@@ -9383,8 +9677,8 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, exports.ScreenS
|
|
|
9383
9677
|
grid: {
|
|
9384
9678
|
columns: grid.DdsGridSm600959Count,
|
|
9385
9679
|
columnGap: grid.DdsGridSm600959GutterSize,
|
|
9386
|
-
marginLeft: spacing$
|
|
9387
|
-
marginRight: spacing$
|
|
9680
|
+
marginLeft: spacing$5.SizesDdsSpacingLayoutX2,
|
|
9681
|
+
marginRight: spacing$5.SizesDdsSpacingLayoutX2
|
|
9388
9682
|
},
|
|
9389
9683
|
columns: {
|
|
9390
9684
|
firstHalf: {
|
|
@@ -9398,8 +9692,8 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, exports.ScreenS
|
|
|
9398
9692
|
grid: {
|
|
9399
9693
|
columns: grid.DdsGridMd9601279Count,
|
|
9400
9694
|
columnGap: grid.DdsGridMd9601279GutterSize,
|
|
9401
|
-
marginLeft: spacing$
|
|
9402
|
-
marginRight: spacing$
|
|
9695
|
+
marginLeft: spacing$5.SizesDdsSpacingLayoutX4,
|
|
9696
|
+
marginRight: spacing$5.SizesDdsSpacingLayoutX4
|
|
9403
9697
|
},
|
|
9404
9698
|
columns: {
|
|
9405
9699
|
firstHalf: {
|
|
@@ -9413,8 +9707,8 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, exports.ScreenS
|
|
|
9413
9707
|
grid: {
|
|
9414
9708
|
columns: grid.DdsGridLg12801919Count,
|
|
9415
9709
|
columnGap: grid.DdsGridLg12801919GutterSize,
|
|
9416
|
-
marginLeft: spacing$
|
|
9417
|
-
marginRight: spacing$
|
|
9710
|
+
marginLeft: spacing$5.SizesDdsSpacingLayoutX6,
|
|
9711
|
+
marginRight: spacing$5.SizesDdsSpacingLayoutX6
|
|
9418
9712
|
},
|
|
9419
9713
|
columns: {
|
|
9420
9714
|
firstHalf: {
|
|
@@ -9428,8 +9722,8 @@ var gridTokens = (_gridTokens = {}, _defineProperty(_gridTokens, exports.ScreenS
|
|
|
9428
9722
|
grid: {
|
|
9429
9723
|
columns: grid.DdsGridXl1920Count,
|
|
9430
9724
|
columnGap: grid.DdsGridXl1920GutterSize,
|
|
9431
|
-
marginLeft: spacing$
|
|
9432
|
-
marginRight: spacing$
|
|
9725
|
+
marginLeft: spacing$5.SizesDdsSpacingLayoutX10,
|
|
9726
|
+
marginRight: spacing$5.SizesDdsSpacingLayoutX10
|
|
9433
9727
|
},
|
|
9434
9728
|
columns: {
|
|
9435
9729
|
firstHalf: {
|
|
@@ -9554,20 +9848,20 @@ var useProgressTrackerContext = function useProgressTrackerContext() {
|
|
|
9554
9848
|
return React.useContext(ProgressTrackerContext);
|
|
9555
9849
|
};
|
|
9556
9850
|
|
|
9557
|
-
var colors$
|
|
9558
|
-
spacing$
|
|
9851
|
+
var colors$2 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
9852
|
+
spacing$4 = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
9559
9853
|
var typographyTypes = {
|
|
9560
9854
|
number: 'bodySans01',
|
|
9561
9855
|
label: 'bodySans03'
|
|
9562
9856
|
};
|
|
9563
9857
|
var itemsWrapper = {
|
|
9564
|
-
gap: spacing$
|
|
9858
|
+
gap: spacing$4.SizesDdsSpacingLocalX0125
|
|
9565
9859
|
};
|
|
9566
9860
|
var itemContentWrapper$1 = {
|
|
9567
|
-
gap: spacing$
|
|
9861
|
+
gap: spacing$4.SizesDdsSpacingLocalX05
|
|
9568
9862
|
};
|
|
9569
9863
|
var connector = {
|
|
9570
|
-
color: colors$
|
|
9864
|
+
color: colors$2.DdsColorNeutralsGray5,
|
|
9571
9865
|
height: '18px',
|
|
9572
9866
|
width: '1px'
|
|
9573
9867
|
};
|
|
@@ -9576,51 +9870,51 @@ var itemNumber$1 = {
|
|
|
9576
9870
|
borderWidth: '2px',
|
|
9577
9871
|
iconSize: 'small',
|
|
9578
9872
|
active: {
|
|
9579
|
-
borderColor: colors$
|
|
9580
|
-
color: colors$
|
|
9581
|
-
backgroundColor: colors$
|
|
9873
|
+
borderColor: colors$2.DdsColorInteractiveBase,
|
|
9874
|
+
color: colors$2.DdsColorNeutralsWhite,
|
|
9875
|
+
backgroundColor: colors$2.DdsColorInteractiveBase
|
|
9582
9876
|
},
|
|
9583
9877
|
completed: {
|
|
9584
|
-
borderColor: colors$
|
|
9585
|
-
color: colors$
|
|
9586
|
-
backgroundColor: colors$
|
|
9878
|
+
borderColor: colors$2.DdsColorInteractiveBase,
|
|
9879
|
+
color: colors$2.DdsColorNeutralsWhite,
|
|
9880
|
+
backgroundColor: colors$2.DdsColorInteractiveBase,
|
|
9587
9881
|
hover: {
|
|
9588
|
-
borderColor: colors$
|
|
9589
|
-
color: colors$
|
|
9590
|
-
backgroundColor: colors$
|
|
9882
|
+
borderColor: colors$2.DdsColorInteractiveDark,
|
|
9883
|
+
color: colors$2.DdsColorNeutralsWhite,
|
|
9884
|
+
backgroundColor: colors$2.DdsColorInteractiveDark
|
|
9591
9885
|
}
|
|
9592
9886
|
},
|
|
9593
9887
|
inactive: {
|
|
9594
|
-
borderColor: colors$
|
|
9595
|
-
color: colors$
|
|
9596
|
-
backgroundColor: colors$
|
|
9888
|
+
borderColor: colors$2.DdsColorInteractiveBase,
|
|
9889
|
+
color: colors$2.DdsColorInteractiveBase,
|
|
9890
|
+
backgroundColor: colors$2.DdsColorNeutralsWhite,
|
|
9597
9891
|
hover: {
|
|
9598
|
-
borderColor: colors$
|
|
9599
|
-
color: colors$
|
|
9600
|
-
backgroundColor: colors$
|
|
9892
|
+
borderColor: colors$2.DdsColorInteractiveBase,
|
|
9893
|
+
color: colors$2.DdsColorInteractiveBase,
|
|
9894
|
+
backgroundColor: colors$2.DdsColorInteractiveLightest
|
|
9601
9895
|
}
|
|
9602
9896
|
},
|
|
9603
9897
|
disabled: {
|
|
9604
|
-
borderColor: colors$
|
|
9605
|
-
color: colors$
|
|
9606
|
-
backgroundColor: colors$
|
|
9898
|
+
borderColor: colors$2.DdsColorNeutralsGray5,
|
|
9899
|
+
color: colors$2.DdsColorNeutralsGray5,
|
|
9900
|
+
backgroundColor: colors$2.DdsColorNeutralsWhite
|
|
9607
9901
|
}
|
|
9608
9902
|
};
|
|
9609
9903
|
var itemText$1 = {
|
|
9610
9904
|
textDecoration: 'underline',
|
|
9611
9905
|
active: {
|
|
9612
|
-
color: colors$
|
|
9613
|
-
textDecorationColor: colors$
|
|
9906
|
+
color: colors$2.DdsColorNeutralsGray9,
|
|
9907
|
+
textDecorationColor: colors$2.DdsColorNeutralsGray9
|
|
9614
9908
|
},
|
|
9615
9909
|
inactive: {
|
|
9616
|
-
color: colors$
|
|
9910
|
+
color: colors$2.DdsColorNeutralsGray7,
|
|
9617
9911
|
textDecorationColor: 'transparent',
|
|
9618
9912
|
hover: {
|
|
9619
|
-
textDecorationColor: colors$
|
|
9913
|
+
textDecorationColor: colors$2.DdsColorNeutralsGray7
|
|
9620
9914
|
}
|
|
9621
9915
|
},
|
|
9622
9916
|
disabled: {
|
|
9623
|
-
color: colors$
|
|
9917
|
+
color: colors$2.DdsColorNeutralsGray6,
|
|
9624
9918
|
textDecoration: 'none'
|
|
9625
9919
|
}
|
|
9626
9920
|
};
|
|
@@ -9913,26 +10207,26 @@ var InlineEdit = function InlineEdit(props) {
|
|
|
9913
10207
|
});
|
|
9914
10208
|
};
|
|
9915
10209
|
|
|
9916
|
-
var colors = ddsDesignTokens.ddsBaseTokens.colors,
|
|
9917
|
-
spacing$
|
|
10210
|
+
var colors$1 = ddsDesignTokens.ddsBaseTokens.colors,
|
|
10211
|
+
spacing$3 = ddsDesignTokens.ddsBaseTokens.spacing,
|
|
9918
10212
|
fontPackages = ddsDesignTokens.ddsBaseTokens.fontPackages;
|
|
9919
10213
|
var inlineEdit$1 = {
|
|
9920
|
-
padding: spacing$
|
|
10214
|
+
padding: spacing$3.SizesDdsSpacingLocalX025,
|
|
9921
10215
|
font: fontPackages.body_sans_02.base,
|
|
9922
10216
|
backgroundColor: 'transparent',
|
|
9923
10217
|
withIcon: {
|
|
9924
|
-
paddingLeft: spacing$
|
|
10218
|
+
paddingLeft: spacing$3.SizesDdsSpacingLocalX2
|
|
9925
10219
|
},
|
|
9926
10220
|
hover: {
|
|
9927
|
-
backgroundColor: colors.DdsColorInteractiveLightest
|
|
10221
|
+
backgroundColor: colors$1.DdsColorInteractiveLightest
|
|
9928
10222
|
},
|
|
9929
10223
|
focus: {
|
|
9930
|
-
backgroundColor: colors.DdsColorNeutralsWhite
|
|
10224
|
+
backgroundColor: colors$1.DdsColorNeutralsWhite
|
|
9931
10225
|
}
|
|
9932
10226
|
};
|
|
9933
10227
|
var iconWrapper$1 = {
|
|
9934
|
-
top: spacing$
|
|
9935
|
-
left: spacing$
|
|
10228
|
+
top: spacing$3.SizesDdsSpacingLocalX05,
|
|
10229
|
+
left: spacing$3.SizesDdsSpacingLocalX05
|
|
9936
10230
|
};
|
|
9937
10231
|
var inlineEditTokens = {
|
|
9938
10232
|
inlineEdit: inlineEdit$1,
|
|
@@ -9941,7 +10235,7 @@ var inlineEditTokens = {
|
|
|
9941
10235
|
|
|
9942
10236
|
var inlineEdit = inlineEditTokens.inlineEdit,
|
|
9943
10237
|
iconWrapper = inlineEditTokens.iconWrapper;
|
|
9944
|
-
var defaultWidth$
|
|
10238
|
+
var defaultWidth$2 = '140px';
|
|
9945
10239
|
var StyledInlineInput = styled__default["default"](StatefulInput).withConfig({
|
|
9946
10240
|
displayName: "InlineEditstyles__StyledInlineInput",
|
|
9947
10241
|
componentId: "sc-1ro526a-0"
|
|
@@ -9974,7 +10268,7 @@ var InlineTextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
9974
10268
|
errorMessage = props.errorMessage,
|
|
9975
10269
|
isEditing = props.isEditing,
|
|
9976
10270
|
_props$width = props.width,
|
|
9977
|
-
width = _props$width === void 0 ? defaultWidth$
|
|
10271
|
+
width = _props$width === void 0 ? defaultWidth$2 : _props$width,
|
|
9978
10272
|
ariaDescribedby = props['aria-describedby'],
|
|
9979
10273
|
emptiable = props.emptiable,
|
|
9980
10274
|
hideIcon = props.hideIcon,
|
|
@@ -10044,7 +10338,7 @@ var InlineInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
10044
10338
|
errorMessage = props.errorMessage,
|
|
10045
10339
|
isEditing = props.isEditing,
|
|
10046
10340
|
_props$width = props.width,
|
|
10047
|
-
width = _props$width === void 0 ? defaultWidth$
|
|
10341
|
+
width = _props$width === void 0 ? defaultWidth$2 : _props$width,
|
|
10048
10342
|
ariaDescribedby = props['aria-describedby'],
|
|
10049
10343
|
emptiable = props.emptiable,
|
|
10050
10344
|
hideIcon = props.hideIcon,
|
|
@@ -10110,15 +10404,15 @@ var InlineEditInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
10110
10404
|
}));
|
|
10111
10405
|
});
|
|
10112
10406
|
|
|
10113
|
-
var spacing$
|
|
10407
|
+
var spacing$2 = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
10114
10408
|
var textarea$1 = {
|
|
10115
|
-
paddingBottom: spacing$
|
|
10409
|
+
paddingBottom: spacing$2.SizesDdsSpacingLocalX05
|
|
10116
10410
|
};
|
|
10117
10411
|
var textAreaTokens = {
|
|
10118
10412
|
textarea: textarea$1
|
|
10119
10413
|
};
|
|
10120
10414
|
|
|
10121
|
-
var defaultWidth = '320px';
|
|
10415
|
+
var defaultWidth$1 = '320px';
|
|
10122
10416
|
var textarea = textAreaTokens.textarea;
|
|
10123
10417
|
var StyledTextArea = styled__default["default"](StatefulInput).withConfig({
|
|
10124
10418
|
displayName: "TextArea__StyledTextArea",
|
|
@@ -10139,7 +10433,7 @@ var TextArea = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
10139
10433
|
className = props.className,
|
|
10140
10434
|
style = props.style,
|
|
10141
10435
|
_props$width = props.width,
|
|
10142
|
-
width = _props$width === void 0 ? defaultWidth : _props$width,
|
|
10436
|
+
width = _props$width === void 0 ? defaultWidth$1 : _props$width,
|
|
10143
10437
|
rest = tslib.__rest(props, ["id", "value", "defaultValue", "onChange", "errorMessage", "required", "disabled", "tip", "label", 'aria-required', 'aria-describedby', "className", "style", "width"]);
|
|
10144
10438
|
var generatedId = React.useId();
|
|
10145
10439
|
var uniqueId = id !== null && id !== void 0 ? id : "".concat(generatedId, "-textArea");
|
|
@@ -10257,24 +10551,24 @@ var SplitButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
10257
10551
|
}));
|
|
10258
10552
|
});
|
|
10259
10553
|
|
|
10260
|
-
var spacing = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
10554
|
+
var spacing$1 = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
10261
10555
|
var gapTokens = {
|
|
10262
|
-
'local-x0.125': spacing.SizesDdsSpacingLocalX0125,
|
|
10263
|
-
'local-x0.25': spacing.SizesDdsSpacingLocalX025,
|
|
10264
|
-
'local-x0.5': spacing.SizesDdsSpacingLocalX05,
|
|
10265
|
-
'local-x0.75': spacing.SizesDdsSpacingLocalX075,
|
|
10266
|
-
'local-x1': spacing.SizesDdsSpacingLocalX1,
|
|
10267
|
-
'local-x1.5': spacing.SizesDdsSpacingLocalX15,
|
|
10268
|
-
'local-x2': spacing.SizesDdsSpacingLocalX2,
|
|
10269
|
-
'local-x2.5': spacing.SizesDdsSpacingLocalX25,
|
|
10270
|
-
'local-x3': spacing.SizesDdsSpacingLocalX3,
|
|
10271
|
-
'layout-x1': spacing.SizesDdsSpacingLayoutX1,
|
|
10272
|
-
'layout-x1.5': spacing.SizesDdsSpacingLayoutX15,
|
|
10273
|
-
'layout-x2': spacing.SizesDdsSpacingLayoutX2,
|
|
10274
|
-
'layout-x3': spacing.SizesDdsSpacingLayoutX3,
|
|
10275
|
-
'layout-x4': spacing.SizesDdsSpacingLayoutX4,
|
|
10276
|
-
'layout-x6': spacing.SizesDdsSpacingLayoutX6,
|
|
10277
|
-
'layout-x10': spacing.SizesDdsSpacingLayoutX10
|
|
10556
|
+
'local-x0.125': spacing$1.SizesDdsSpacingLocalX0125,
|
|
10557
|
+
'local-x0.25': spacing$1.SizesDdsSpacingLocalX025,
|
|
10558
|
+
'local-x0.5': spacing$1.SizesDdsSpacingLocalX05,
|
|
10559
|
+
'local-x0.75': spacing$1.SizesDdsSpacingLocalX075,
|
|
10560
|
+
'local-x1': spacing$1.SizesDdsSpacingLocalX1,
|
|
10561
|
+
'local-x1.5': spacing$1.SizesDdsSpacingLocalX15,
|
|
10562
|
+
'local-x2': spacing$1.SizesDdsSpacingLocalX2,
|
|
10563
|
+
'local-x2.5': spacing$1.SizesDdsSpacingLocalX25,
|
|
10564
|
+
'local-x3': spacing$1.SizesDdsSpacingLocalX3,
|
|
10565
|
+
'layout-x1': spacing$1.SizesDdsSpacingLayoutX1,
|
|
10566
|
+
'layout-x1.5': spacing$1.SizesDdsSpacingLayoutX15,
|
|
10567
|
+
'layout-x2': spacing$1.SizesDdsSpacingLayoutX2,
|
|
10568
|
+
'layout-x3': spacing$1.SizesDdsSpacingLayoutX3,
|
|
10569
|
+
'layout-x4': spacing$1.SizesDdsSpacingLayoutX4,
|
|
10570
|
+
'layout-x6': spacing$1.SizesDdsSpacingLayoutX6,
|
|
10571
|
+
'layout-x10': spacing$1.SizesDdsSpacingLayoutX10
|
|
10278
10572
|
};
|
|
10279
10573
|
var stackTokens = {
|
|
10280
10574
|
gap: gapTokens
|
|
@@ -10318,6 +10612,750 @@ var VStack = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
10318
10612
|
}, getBaseHTMLProps(id, className, htmlProps, rest)));
|
|
10319
10613
|
});
|
|
10320
10614
|
|
|
10615
|
+
var _columnGaps;
|
|
10616
|
+
var Spacing = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
10617
|
+
var formGeneratorTokens = {
|
|
10618
|
+
columnGaps: (_columnGaps = {}, _defineProperty(_columnGaps, exports.ScreenSize.XSmall, Spacing.SizesDdsSpacingLocalX1), _defineProperty(_columnGaps, exports.ScreenSize.Small, Spacing.SizesDdsSpacingLocalX1), _defineProperty(_columnGaps, exports.ScreenSize.Medium, Spacing.SizesDdsSpacingLocalX1), _defineProperty(_columnGaps, exports.ScreenSize.Large, Spacing.SizesDdsSpacingLocalX1), _defineProperty(_columnGaps, exports.ScreenSize.XLarge, Spacing.SizesDdsSpacingLocalX15), _columnGaps),
|
|
10619
|
+
rowGaps: {
|
|
10620
|
+
xs: Spacing.SizesDdsSpacingLocalX1,
|
|
10621
|
+
sm: Spacing.SizesDdsSpacingLocalX1,
|
|
10622
|
+
md: Spacing.SizesDdsSpacingLocalX1,
|
|
10623
|
+
lg: Spacing.SizesDdsSpacingLocalX1,
|
|
10624
|
+
xl: Spacing.SizesDdsSpacingLocalX15
|
|
10625
|
+
},
|
|
10626
|
+
buttonRow: {
|
|
10627
|
+
marginTop: Spacing.SizesDdsSpacingLocalX1
|
|
10628
|
+
}
|
|
10629
|
+
};
|
|
10630
|
+
|
|
10631
|
+
var FormGeneratorFlexContainer = styled__default["default"].div.withConfig({
|
|
10632
|
+
displayName: "FormGeneratorstyles__FormGeneratorFlexContainer",
|
|
10633
|
+
componentId: "sc-1jlspa9-0"
|
|
10634
|
+
})(["", ""], function (_ref) {
|
|
10635
|
+
var screenSize = _ref.screenSize;
|
|
10636
|
+
return styled.css(["display:flex;flex-wrap:wrap;gap:", ";"], formGeneratorTokens.columnGaps[screenSize]);
|
|
10637
|
+
});
|
|
10638
|
+
var SubContainer = styled__default["default"].div.withConfig({
|
|
10639
|
+
displayName: "FormGeneratorstyles__SubContainer",
|
|
10640
|
+
componentId: "sc-1jlspa9-1"
|
|
10641
|
+
})(["", " ", " ", ""], function (_ref2) {
|
|
10642
|
+
var screenSize = _ref2.screenSize,
|
|
10643
|
+
length = _ref2.length;
|
|
10644
|
+
return length === 2 ? styled.css(["display:grid;"]) : styled.css(["display:flex;flex-wrap:wrap;gap:", ";"], formGeneratorTokens.columnGaps[screenSize]);
|
|
10645
|
+
}, function (_ref3) {
|
|
10646
|
+
var screenSize = _ref3.screenSize,
|
|
10647
|
+
length = _ref3.length,
|
|
10648
|
+
_ref3$breakpoint = _ref3.breakpoint,
|
|
10649
|
+
breakpoint = _ref3$breakpoint === void 0 ? exports.ScreenSize.XSmall : _ref3$breakpoint;
|
|
10650
|
+
return length === 2 ? screenSize > breakpoint ? styled.css(["grid-auto-flow:column;grid-template-columns:min-content auto;column-gap:", ";"], formGeneratorTokens.columnGaps[screenSize]) : styled.css(["grid-auto-flow:row;row-gap:", ";"], formGeneratorTokens.rowGaps[getLiteralScreenSize(screenSize)]) : "";
|
|
10651
|
+
}, function (_ref4) {
|
|
10652
|
+
var screenSize = _ref4.screenSize,
|
|
10653
|
+
length = _ref4.length,
|
|
10654
|
+
breakpoint = _ref4.breakpoint;
|
|
10655
|
+
return length === 3 ? breakpoint !== undefined && screenSize >= breakpoint ? styled.css(["flex-direction:row;"]) : styled.css(["flex-direction:column;"]) : "";
|
|
10656
|
+
});
|
|
10657
|
+
var ButtonRow = styled__default["default"](GridChild).withConfig({
|
|
10658
|
+
displayName: "FormGeneratorstyles__ButtonRow",
|
|
10659
|
+
componentId: "sc-1jlspa9-2"
|
|
10660
|
+
})(["margin-top:", ";"], formGeneratorTokens.buttonRow.marginTop);
|
|
10661
|
+
|
|
10662
|
+
var FormGenerator = function FormGenerator(props) {
|
|
10663
|
+
var _props$fields = props.fields,
|
|
10664
|
+
fields = _props$fields === void 0 ? [] : _props$fields,
|
|
10665
|
+
stateOnChange = props.stateOnChange;
|
|
10666
|
+
var _useState = React.useState({}),
|
|
10667
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10668
|
+
myState = _useState2[0],
|
|
10669
|
+
setState = _useState2[1];
|
|
10670
|
+
var fieldOnChange = function fieldOnChange(event) {
|
|
10671
|
+
var _event$target = event.target,
|
|
10672
|
+
id = _event$target.id,
|
|
10673
|
+
name = _event$target.name,
|
|
10674
|
+
value = _event$target.value,
|
|
10675
|
+
checked = _event$target.checked;
|
|
10676
|
+
var newState = Object.assign(Object.assign({}, myState), _defineProperty({}, name || id, event.target.type === 'checkbox' ? checked : value));
|
|
10677
|
+
setState(newState);
|
|
10678
|
+
stateOnChange(newState);
|
|
10679
|
+
};
|
|
10680
|
+
var isMultiValue = function isMultiValue(obj) {
|
|
10681
|
+
return (obj === null || obj === void 0 ? void 0 : obj.values) !== undefined;
|
|
10682
|
+
};
|
|
10683
|
+
var selectOnChange = function selectOnChange(chosen, name) {
|
|
10684
|
+
var value = null;
|
|
10685
|
+
if (isMultiValue(chosen)) {
|
|
10686
|
+
value = Array.isArray(chosen) ? chosen === null || chosen === void 0 ? void 0 : chosen.map(function (test) {
|
|
10687
|
+
return test.value;
|
|
10688
|
+
}) : null;
|
|
10689
|
+
} else {
|
|
10690
|
+
value = (chosen === null || chosen === void 0 ? void 0 : chosen.value) || null;
|
|
10691
|
+
}
|
|
10692
|
+
var newState = Object.assign(Object.assign({}, myState), _defineProperty({}, name, value));
|
|
10693
|
+
setState(newState);
|
|
10694
|
+
stateOnChange(newState);
|
|
10695
|
+
};
|
|
10696
|
+
var GetComponent = function GetComponent(field, index) {
|
|
10697
|
+
switch (field.component) {
|
|
10698
|
+
case 'Button':
|
|
10699
|
+
return /*#__PURE__*/React.createElement(Button$1, Object.assign({}, field.props, {
|
|
10700
|
+
key: index
|
|
10701
|
+
}));
|
|
10702
|
+
case 'Card':
|
|
10703
|
+
return /*#__PURE__*/React.createElement(Card, Object.assign({}, field.props, {
|
|
10704
|
+
key: index
|
|
10705
|
+
}), field.innerHTML);
|
|
10706
|
+
case 'Checkbox':
|
|
10707
|
+
return /*#__PURE__*/React.createElement(Checkbox, Object.assign({}, field.props, {
|
|
10708
|
+
key: index,
|
|
10709
|
+
onChange: fieldOnChange
|
|
10710
|
+
}));
|
|
10711
|
+
case 'CheckboxGroup':
|
|
10712
|
+
return /*#__PURE__*/React.createElement(CheckboxGroup, Object.assign({}, field.props, {
|
|
10713
|
+
key: index
|
|
10714
|
+
}), field.children.map(function (child, childIndex) {
|
|
10715
|
+
return !child.hide && GetComponent(child, childIndex);
|
|
10716
|
+
}));
|
|
10717
|
+
case 'Datepicker':
|
|
10718
|
+
return /*#__PURE__*/React.createElement(Datepicker, Object.assign({}, field.props, {
|
|
10719
|
+
key: index,
|
|
10720
|
+
onChange: fieldOnChange
|
|
10721
|
+
}));
|
|
10722
|
+
case 'Divider':
|
|
10723
|
+
return /*#__PURE__*/React.createElement(Divider, Object.assign({}, field.props, {
|
|
10724
|
+
key: index
|
|
10725
|
+
}));
|
|
10726
|
+
case 'GlobalMessage':
|
|
10727
|
+
return /*#__PURE__*/React.createElement(GlobalMessage, Object.assign({}, field.props, {
|
|
10728
|
+
key: index
|
|
10729
|
+
}), field.innerHTML);
|
|
10730
|
+
case 'Heading':
|
|
10731
|
+
return /*#__PURE__*/React.createElement(Heading, Object.assign({}, field.props, {
|
|
10732
|
+
key: index
|
|
10733
|
+
}), field.innerHTML);
|
|
10734
|
+
case 'InputMessage':
|
|
10735
|
+
return /*#__PURE__*/React.createElement(InputMessage, Object.assign({}, field.props, {
|
|
10736
|
+
key: index
|
|
10737
|
+
}));
|
|
10738
|
+
case 'Label':
|
|
10739
|
+
return /*#__PURE__*/React.createElement(Label$2, Object.assign({}, field.props, {
|
|
10740
|
+
key: index
|
|
10741
|
+
}), field.innerHTML);
|
|
10742
|
+
case 'Link':
|
|
10743
|
+
return /*#__PURE__*/React.createElement(Link$3, Object.assign({}, field.props, {
|
|
10744
|
+
key: index
|
|
10745
|
+
}), field.innerHTML);
|
|
10746
|
+
case 'List':
|
|
10747
|
+
return /*#__PURE__*/React.createElement(List, Object.assign({}, field.props, {
|
|
10748
|
+
key: index
|
|
10749
|
+
}), field.children.map(function (child, childIndex) {
|
|
10750
|
+
return !child.hide && GetComponent(child, childIndex);
|
|
10751
|
+
}));
|
|
10752
|
+
case 'ListItem':
|
|
10753
|
+
return /*#__PURE__*/React.createElement(ListItem, Object.assign({}, field.props, {
|
|
10754
|
+
key: index
|
|
10755
|
+
}), field.innerHTML);
|
|
10756
|
+
case 'LocalMessage':
|
|
10757
|
+
return /*#__PURE__*/React.createElement(LocalMessage, Object.assign({}, field.props, {
|
|
10758
|
+
key: index
|
|
10759
|
+
}), field.innerHTML);
|
|
10760
|
+
case 'Paragraph':
|
|
10761
|
+
return /*#__PURE__*/React.createElement(Paragraph, Object.assign({}, field.props, {
|
|
10762
|
+
key: index
|
|
10763
|
+
}), field.innerHTML);
|
|
10764
|
+
case 'RadioButton':
|
|
10765
|
+
return /*#__PURE__*/React.createElement(RadioButton, Object.assign({}, field.props, {
|
|
10766
|
+
key: index,
|
|
10767
|
+
onChange: fieldOnChange
|
|
10768
|
+
}));
|
|
10769
|
+
case 'RadioButtonGroup':
|
|
10770
|
+
field.props.direction = screenSize > exports.ScreenSize.XSmall ? 'row' : 'column';
|
|
10771
|
+
return /*#__PURE__*/React.createElement(RadioButtonGroup, Object.assign({}, field.props, {
|
|
10772
|
+
key: index
|
|
10773
|
+
}), field.children.map(function (child, childIndex) {
|
|
10774
|
+
return !child.hide && GetComponent(child, childIndex);
|
|
10775
|
+
}));
|
|
10776
|
+
case 'Select':
|
|
10777
|
+
return /*#__PURE__*/React.createElement(Select, Object.assign({}, field.props, {
|
|
10778
|
+
key: index,
|
|
10779
|
+
onChange: function onChange(option) {
|
|
10780
|
+
return selectOnChange(option, field.name);
|
|
10781
|
+
}
|
|
10782
|
+
}));
|
|
10783
|
+
case 'Spinner':
|
|
10784
|
+
return /*#__PURE__*/React.createElement(Spinner, Object.assign({}, field.props, {
|
|
10785
|
+
key: index
|
|
10786
|
+
}));
|
|
10787
|
+
case 'TextInput':
|
|
10788
|
+
return /*#__PURE__*/React.createElement(TextInput, Object.assign({}, field.props, {
|
|
10789
|
+
key: index,
|
|
10790
|
+
onChange: fieldOnChange
|
|
10791
|
+
}));
|
|
10792
|
+
case 'ToggleButton':
|
|
10793
|
+
return /*#__PURE__*/React.createElement(ToggleButton, Object.assign({}, field.props, {
|
|
10794
|
+
key: index,
|
|
10795
|
+
onChange: fieldOnChange
|
|
10796
|
+
}));
|
|
10797
|
+
case 'ToggleButtonGroup':
|
|
10798
|
+
return /*#__PURE__*/React.createElement(ToggleButtonGroup, Object.assign({}, field.props, {
|
|
10799
|
+
key: index
|
|
10800
|
+
}), field.children.map(function (child, childIndex) {
|
|
10801
|
+
return !child.hide && GetComponent(child, childIndex);
|
|
10802
|
+
}));
|
|
10803
|
+
case 'Typography':
|
|
10804
|
+
return /*#__PURE__*/React.createElement(Typography, Object.assign({}, field.props, {
|
|
10805
|
+
key: index
|
|
10806
|
+
}), field.innerHTML);
|
|
10807
|
+
case 'VisuallyHidden':
|
|
10808
|
+
return /*#__PURE__*/React.createElement(VisuallyHidden, Object.assign({}, field.props, {
|
|
10809
|
+
key: index
|
|
10810
|
+
}), field.innerHTML);
|
|
10811
|
+
default:
|
|
10812
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
10813
|
+
}
|
|
10814
|
+
};
|
|
10815
|
+
var isFormGeneratorRow = function isFormGeneratorRow(obj) {
|
|
10816
|
+
return obj.rowType !== undefined;
|
|
10817
|
+
};
|
|
10818
|
+
var screenSize = useScreenSize();
|
|
10819
|
+
return jsxRuntime.jsx(Grid, Object.assign({
|
|
10820
|
+
as: "form",
|
|
10821
|
+
rowGap: formGeneratorTokens.rowGaps
|
|
10822
|
+
}, {
|
|
10823
|
+
children: fields.map(function (obj, index) {
|
|
10824
|
+
if (isFormGeneratorRow(obj)) {
|
|
10825
|
+
if (obj.rowType === 'button') {
|
|
10826
|
+
return jsxRuntime.jsx(ButtonRow, Object.assign({
|
|
10827
|
+
columnsOccupied: "all"
|
|
10828
|
+
}, {
|
|
10829
|
+
children: jsxRuntime.jsx(FormGeneratorFlexContainer, Object.assign({
|
|
10830
|
+
screenSize: screenSize
|
|
10831
|
+
}, {
|
|
10832
|
+
children: obj.fields.map(function (field, groupedIndex) {
|
|
10833
|
+
return !field.hide && GetComponent(field, groupedIndex);
|
|
10834
|
+
})
|
|
10835
|
+
}))
|
|
10836
|
+
}));
|
|
10837
|
+
} else {
|
|
10838
|
+
return jsxRuntime.jsx(GridChild, Object.assign({
|
|
10839
|
+
columnsOccupied: "all"
|
|
10840
|
+
}, {
|
|
10841
|
+
children: jsxRuntime.jsx(SubContainer, Object.assign({
|
|
10842
|
+
screenSize: screenSize,
|
|
10843
|
+
length: obj.fields.length,
|
|
10844
|
+
breakpoint: obj.breakpoint
|
|
10845
|
+
}, {
|
|
10846
|
+
children: obj.fields.map(function (field, groupedIndex) {
|
|
10847
|
+
return !field.hide && GetComponent(field, groupedIndex);
|
|
10848
|
+
})
|
|
10849
|
+
}))
|
|
10850
|
+
}));
|
|
10851
|
+
}
|
|
10852
|
+
} else {
|
|
10853
|
+
return !obj.hide && jsxRuntime.jsx(GridChild, Object.assign({
|
|
10854
|
+
columnsOccupied: "all"
|
|
10855
|
+
}, {
|
|
10856
|
+
children: GetComponent(obj, index)
|
|
10857
|
+
}));
|
|
10858
|
+
}
|
|
10859
|
+
})
|
|
10860
|
+
}));
|
|
10861
|
+
};
|
|
10862
|
+
|
|
10863
|
+
var colors = ddsDesignTokens.ddsBaseTokens.colors,
|
|
10864
|
+
spacing = ddsDesignTokens.ddsBaseTokens.spacing;
|
|
10865
|
+
var rootTokens = {
|
|
10866
|
+
borderColor: colors.DdsColorNeutralsGray5,
|
|
10867
|
+
borderColorError: colors.DdsColorDangerBase,
|
|
10868
|
+
paddingLeftRightTop: spacing.SizesDdsSpacingLocalX15,
|
|
10869
|
+
paddingBottom: spacing.SizesDdsSpacingLocalX2,
|
|
10870
|
+
gap: spacing.SizesDdsSpacingLocalX1,
|
|
10871
|
+
backgroundColor: colors.DdsColorNeutralsWhite,
|
|
10872
|
+
dragActive: {
|
|
10873
|
+
borderColor: colors.DdsColorInteractiveBase,
|
|
10874
|
+
backgroundColor: colors.DdsColorInteractiveLightest
|
|
10875
|
+
}
|
|
10876
|
+
};
|
|
10877
|
+
var fileTokens = {
|
|
10878
|
+
marginTop: spacing.SizesDdsSpacingLocalX05,
|
|
10879
|
+
paddingLeftRight: spacing.SizesDdsSpacingLocalX05,
|
|
10880
|
+
paddingTopBottom: spacing.SizesDdsSpacingLayoutX1,
|
|
10881
|
+
backgroundColor: colors.DdsColorNeutralsGray1,
|
|
10882
|
+
textToIconsGap: spacing.SizesDdsSpacingLocalX075,
|
|
10883
|
+
invalid: {
|
|
10884
|
+
borderColor: colors.DdsColorDangerBase
|
|
10885
|
+
}
|
|
10886
|
+
};
|
|
10887
|
+
var errorsTokens = {
|
|
10888
|
+
gap: spacing.SizesDdsSpacingLocalX025
|
|
10889
|
+
};
|
|
10890
|
+
|
|
10891
|
+
var MessageContainer = styled__default["default"].div.withConfig({
|
|
10892
|
+
displayName: "ErrorList__MessageContainer",
|
|
10893
|
+
componentId: "sc-tndb6q-0"
|
|
10894
|
+
})(["display:flex;flex-direction:column;gap:", ";"], errorsTokens.gap);
|
|
10895
|
+
var ErrorList = function ErrorList(props) {
|
|
10896
|
+
var errors = props.errors;
|
|
10897
|
+
if (errors.length < 1) {
|
|
10898
|
+
return null;
|
|
10899
|
+
}
|
|
10900
|
+
return jsxRuntime.jsx(MessageContainer, {
|
|
10901
|
+
children: errors.map(function (_ref) {
|
|
10902
|
+
var id = _ref.id,
|
|
10903
|
+
message = _ref.message;
|
|
10904
|
+
return jsxRuntime.jsx(InputMessage, {
|
|
10905
|
+
id: id,
|
|
10906
|
+
message: message,
|
|
10907
|
+
messageType: "error"
|
|
10908
|
+
}, id);
|
|
10909
|
+
})
|
|
10910
|
+
});
|
|
10911
|
+
};
|
|
10912
|
+
|
|
10913
|
+
var FileWrapper = styled__default["default"].li.withConfig({
|
|
10914
|
+
displayName: "File__FileWrapper",
|
|
10915
|
+
componentId: "sc-1mozy6v-0"
|
|
10916
|
+
})([""]);
|
|
10917
|
+
var FileNameWrapper = styled__default["default"].span.withConfig({
|
|
10918
|
+
displayName: "File__FileNameWrapper",
|
|
10919
|
+
componentId: "sc-1mozy6v-1"
|
|
10920
|
+
})(["word-break:break-all;"]);
|
|
10921
|
+
var FileElement = styled__default["default"].div.withConfig({
|
|
10922
|
+
displayName: "File__FileElement",
|
|
10923
|
+
componentId: "sc-1mozy6v-2"
|
|
10924
|
+
})(["border-width:2px;border-style:solid;border-color:", ";margin-top:", ";padding:", " ", ";background-color:", ";display:flex;justify-content:space-between;align-items:center;gap:", ";"], function (_ref) {
|
|
10925
|
+
var isValid = _ref.isValid;
|
|
10926
|
+
return isValid ? fileTokens.backgroundColor : fileTokens.invalid.borderColor;
|
|
10927
|
+
}, fileTokens.marginTop, fileTokens.paddingLeftRight, fileTokens.paddingTopBottom, fileTokens.backgroundColor, fileTokens.textToIconsGap);
|
|
10928
|
+
var RemoveFileButton = styled__default["default"](Button$1).withConfig({
|
|
10929
|
+
displayName: "File__RemoveFileButton",
|
|
10930
|
+
componentId: "sc-1mozy6v-3"
|
|
10931
|
+
})(["padding:0;"]);
|
|
10932
|
+
var File = function File(props) {
|
|
10933
|
+
var parentId = props.parentId,
|
|
10934
|
+
index = props.index,
|
|
10935
|
+
stateFile = props.file,
|
|
10936
|
+
removeFile = props.removeFile,
|
|
10937
|
+
isValid = props.isValid;
|
|
10938
|
+
var errorsList = stateFile.errors.map(function (e, errorIndex) {
|
|
10939
|
+
return {
|
|
10940
|
+
id: derivativeIdGenerator(parentId, "file-".concat(index, "-error-").concat(errorIndex)),
|
|
10941
|
+
message: e
|
|
10942
|
+
};
|
|
10943
|
+
});
|
|
10944
|
+
return jsxRuntime.jsxs(FileWrapper, {
|
|
10945
|
+
children: [jsxRuntime.jsxs(FileElement, Object.assign({}, props, {
|
|
10946
|
+
children: [jsxRuntime.jsx(FileNameWrapper, {
|
|
10947
|
+
children: stateFile.file.name
|
|
10948
|
+
}), jsxRuntime.jsx(RemoveFileButton, {
|
|
10949
|
+
size: "small",
|
|
10950
|
+
appearance: "borderless",
|
|
10951
|
+
purpose: "secondary",
|
|
10952
|
+
type: "button",
|
|
10953
|
+
onClick: removeFile,
|
|
10954
|
+
icon: CloseIcon,
|
|
10955
|
+
htmlProps: {
|
|
10956
|
+
'aria-label': "Fjern fil, ".concat(stateFile.file.name),
|
|
10957
|
+
'aria-invalid': !isValid ? true : undefined,
|
|
10958
|
+
'aria-errormessage': !isValid ? 'Ugyldig fil' : undefined,
|
|
10959
|
+
'aria-describedby': spaceSeparatedIdListGenerator(errorsList.map(function (e) {
|
|
10960
|
+
return e.id;
|
|
10961
|
+
}))
|
|
10962
|
+
}
|
|
10963
|
+
})]
|
|
10964
|
+
})), jsxRuntime.jsx(ErrorList, {
|
|
10965
|
+
errors: errorsList
|
|
10966
|
+
})]
|
|
10967
|
+
}, stateFile.file.name);
|
|
10968
|
+
};
|
|
10969
|
+
|
|
10970
|
+
var fileUploaderReducer = function fileUploaderReducer(state, action) {
|
|
10971
|
+
switch (action.type) {
|
|
10972
|
+
case 'focus':
|
|
10973
|
+
return Object.assign(Object.assign({}, state), {
|
|
10974
|
+
isFocused: true
|
|
10975
|
+
});
|
|
10976
|
+
case 'blur':
|
|
10977
|
+
return Object.assign(Object.assign({}, state), {
|
|
10978
|
+
isFocused: false
|
|
10979
|
+
});
|
|
10980
|
+
case 'dragEnter':
|
|
10981
|
+
return Object.assign(Object.assign({}, state), {
|
|
10982
|
+
isDragActive: true
|
|
10983
|
+
});
|
|
10984
|
+
case 'dragLeave':
|
|
10985
|
+
return Object.assign(Object.assign({}, state), {
|
|
10986
|
+
isDragActive: false
|
|
10987
|
+
});
|
|
10988
|
+
case 'onSetFiles':
|
|
10989
|
+
return Object.assign(Object.assign({}, state), {
|
|
10990
|
+
isDragActive: false,
|
|
10991
|
+
rootErrors: action.payload.rootErrors,
|
|
10992
|
+
files: action.payload.files
|
|
10993
|
+
});
|
|
10994
|
+
case 'onRemoveFile':
|
|
10995
|
+
return Object.assign(Object.assign({}, state), {
|
|
10996
|
+
rootErrors: action.payload.rootErrors,
|
|
10997
|
+
files: action.payload.files
|
|
10998
|
+
});
|
|
10999
|
+
default:
|
|
11000
|
+
return state;
|
|
11001
|
+
}
|
|
11002
|
+
};
|
|
11003
|
+
|
|
11004
|
+
var preventDefaults = function preventDefaults(event) {
|
|
11005
|
+
event.preventDefault();
|
|
11006
|
+
event.stopPropagation();
|
|
11007
|
+
};
|
|
11008
|
+
var isDragEvent = function isDragEvent(event) {
|
|
11009
|
+
var asDragEvent = event;
|
|
11010
|
+
return asDragEvent.dataTransfer !== undefined;
|
|
11011
|
+
};
|
|
11012
|
+
var isEventWithFiles = function isEventWithFiles(event) {
|
|
11013
|
+
if (!isDragEvent(event)) {
|
|
11014
|
+
return event.target.files !== null && event.target.files !== undefined;
|
|
11015
|
+
}
|
|
11016
|
+
return event.dataTransfer.types.includes('Files') || event.dataTransfer.types.includes('application/x-moz-file');
|
|
11017
|
+
};
|
|
11018
|
+
var isFileAccepted = function isFileAccepted(file, accept) {
|
|
11019
|
+
return accept !== undefined ? accepted__default["default"](file, accept) : true;
|
|
11020
|
+
};
|
|
11021
|
+
// export const isFileSizeAccepted = (
|
|
11022
|
+
// file: File,
|
|
11023
|
+
// minSize: number | undefined,
|
|
11024
|
+
// maxSize: number | undefined
|
|
11025
|
+
// ): boolean => {};
|
|
11026
|
+
var getTooManyFilesErrorMessage = function getTooManyFilesErrorMessage(maxFiles) {
|
|
11027
|
+
return "For mange filer, maks ".concat(maxFiles, "stk");
|
|
11028
|
+
};
|
|
11029
|
+
var getInvalidFileTypeErrorMessage = function getInvalidFileTypeErrorMessage() {
|
|
11030
|
+
return 'Ugyldig filtype';
|
|
11031
|
+
};
|
|
11032
|
+
|
|
11033
|
+
var calcRootErrors = function calcRootErrors(files, maxFiles) {
|
|
11034
|
+
var errors = [];
|
|
11035
|
+
if (maxFiles && maxFiles >= 1 && files.length > maxFiles) {
|
|
11036
|
+
errors.push(getTooManyFilesErrorMessage(maxFiles));
|
|
11037
|
+
}
|
|
11038
|
+
return errors;
|
|
11039
|
+
};
|
|
11040
|
+
var useFileUploader = function useFileUploader(props) {
|
|
11041
|
+
var _props$initialFiles = props.initialFiles,
|
|
11042
|
+
initialFiles = _props$initialFiles === void 0 ? [] : _props$initialFiles,
|
|
11043
|
+
accept = props.accept,
|
|
11044
|
+
maxFiles = props.maxFiles,
|
|
11045
|
+
disabled = props.disabled;
|
|
11046
|
+
var rootRef = React.useRef(null);
|
|
11047
|
+
var inputRef = React.useRef(null);
|
|
11048
|
+
var buttonRef = React.useRef(null);
|
|
11049
|
+
var _useReducer = React.useReducer(fileUploaderReducer, {
|
|
11050
|
+
files: initialFiles.map(function (f) {
|
|
11051
|
+
return {
|
|
11052
|
+
file: f,
|
|
11053
|
+
errors: []
|
|
11054
|
+
};
|
|
11055
|
+
}),
|
|
11056
|
+
isFocused: false,
|
|
11057
|
+
isFileDialogActive: false,
|
|
11058
|
+
isDragActive: false,
|
|
11059
|
+
rootErrors: []
|
|
11060
|
+
}),
|
|
11061
|
+
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
11062
|
+
state = _useReducer2[0],
|
|
11063
|
+
dispatch = _useReducer2[1];
|
|
11064
|
+
var stateFiles = state.files;
|
|
11065
|
+
var onRootFocus = React.useCallback(function () {
|
|
11066
|
+
return dispatch({
|
|
11067
|
+
type: 'focus'
|
|
11068
|
+
});
|
|
11069
|
+
}, [dispatch]);
|
|
11070
|
+
var onRootBlur = React.useCallback(function () {
|
|
11071
|
+
return dispatch({
|
|
11072
|
+
type: 'blur'
|
|
11073
|
+
});
|
|
11074
|
+
}, [dispatch]);
|
|
11075
|
+
var onRootDragEnter = React.useCallback(function (evt) {
|
|
11076
|
+
return tslib.__awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11077
|
+
var files, fileCount;
|
|
11078
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11079
|
+
while (1) {
|
|
11080
|
+
switch (_context.prev = _context.next) {
|
|
11081
|
+
case 0:
|
|
11082
|
+
preventDefaults(evt);
|
|
11083
|
+
if (!isEventWithFiles(evt)) {
|
|
11084
|
+
_context.next = 9;
|
|
11085
|
+
break;
|
|
11086
|
+
}
|
|
11087
|
+
_context.next = 4;
|
|
11088
|
+
return fileSelector.fromEvent(evt);
|
|
11089
|
+
case 4:
|
|
11090
|
+
files = _context.sent;
|
|
11091
|
+
fileCount = files.length;
|
|
11092
|
+
if (!(fileCount === 0)) {
|
|
11093
|
+
_context.next = 8;
|
|
11094
|
+
break;
|
|
11095
|
+
}
|
|
11096
|
+
return _context.abrupt("return");
|
|
11097
|
+
case 8:
|
|
11098
|
+
dispatch({
|
|
11099
|
+
type: 'dragEnter'
|
|
11100
|
+
});
|
|
11101
|
+
case 9:
|
|
11102
|
+
case "end":
|
|
11103
|
+
return _context.stop();
|
|
11104
|
+
}
|
|
11105
|
+
}
|
|
11106
|
+
}, _callee);
|
|
11107
|
+
}));
|
|
11108
|
+
}, [dispatch, accept, maxFiles]);
|
|
11109
|
+
var onRootDragOver = React.useCallback(function (evt) {
|
|
11110
|
+
preventDefaults(evt);
|
|
11111
|
+
var hasFiles = isEventWithFiles(evt);
|
|
11112
|
+
if (hasFiles && evt.dataTransfer) {
|
|
11113
|
+
try {
|
|
11114
|
+
evt.dataTransfer.dropEffect = 'copy';
|
|
11115
|
+
} catch (_a) {} /* eslint-disable-line no-empty */
|
|
11116
|
+
}
|
|
11117
|
+
}, []);
|
|
11118
|
+
var onRootDragLeave = React.useCallback(function (evt) {
|
|
11119
|
+
preventDefaults(evt);
|
|
11120
|
+
if (evt.currentTarget.contains(evt.relatedTarget)) return;
|
|
11121
|
+
dispatch({
|
|
11122
|
+
type: 'dragLeave'
|
|
11123
|
+
});
|
|
11124
|
+
}, [dispatch]);
|
|
11125
|
+
var setFiles = React.useCallback(function (evt) {
|
|
11126
|
+
return tslib.__awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
11127
|
+
var existingFileNames, filesFromEvent, newFiles, rootErrors;
|
|
11128
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11129
|
+
while (1) {
|
|
11130
|
+
switch (_context2.prev = _context2.next) {
|
|
11131
|
+
case 0:
|
|
11132
|
+
evt.preventDefault();
|
|
11133
|
+
if (!isEventWithFiles(evt)) {
|
|
11134
|
+
_context2.next = 9;
|
|
11135
|
+
break;
|
|
11136
|
+
}
|
|
11137
|
+
existingFileNames = stateFiles.map(function (f) {
|
|
11138
|
+
return f.file.name;
|
|
11139
|
+
}); // TODO: Fiks cast her.
|
|
11140
|
+
_context2.next = 5;
|
|
11141
|
+
return fileSelector.fromEvent(evt);
|
|
11142
|
+
case 5:
|
|
11143
|
+
filesFromEvent = _context2.sent;
|
|
11144
|
+
newFiles = filesFromEvent.filter(function (f) {
|
|
11145
|
+
return !existingFileNames.includes(f.name);
|
|
11146
|
+
}).map(function (file) {
|
|
11147
|
+
var accepted = isFileAccepted(file, accept);
|
|
11148
|
+
return {
|
|
11149
|
+
file: file,
|
|
11150
|
+
errors: accepted ? [] : [getInvalidFileTypeErrorMessage()]
|
|
11151
|
+
};
|
|
11152
|
+
}).concat(stateFiles);
|
|
11153
|
+
rootErrors = calcRootErrors(newFiles, maxFiles);
|
|
11154
|
+
dispatch({
|
|
11155
|
+
type: 'onSetFiles',
|
|
11156
|
+
payload: {
|
|
11157
|
+
rootErrors: rootErrors,
|
|
11158
|
+
files: newFiles
|
|
11159
|
+
}
|
|
11160
|
+
});
|
|
11161
|
+
case 9:
|
|
11162
|
+
case "end":
|
|
11163
|
+
return _context2.stop();
|
|
11164
|
+
}
|
|
11165
|
+
}
|
|
11166
|
+
}, _callee2);
|
|
11167
|
+
}));
|
|
11168
|
+
}, [stateFiles, maxFiles, accept, dispatch]);
|
|
11169
|
+
var openFileDialog = React.useCallback(function () {
|
|
11170
|
+
if (inputRef.current) {
|
|
11171
|
+
inputRef.current.value = '';
|
|
11172
|
+
inputRef.current.click();
|
|
11173
|
+
}
|
|
11174
|
+
}, [inputRef]);
|
|
11175
|
+
var removeFile = React.useCallback(function (file) {
|
|
11176
|
+
var newFiles = _toConsumableArray(stateFiles);
|
|
11177
|
+
newFiles.splice(stateFiles.indexOf(file), 1);
|
|
11178
|
+
var rootErrors = calcRootErrors(newFiles, maxFiles);
|
|
11179
|
+
dispatch({
|
|
11180
|
+
type: 'onRemoveFile',
|
|
11181
|
+
payload: {
|
|
11182
|
+
rootErrors: rootErrors,
|
|
11183
|
+
files: newFiles
|
|
11184
|
+
}
|
|
11185
|
+
});
|
|
11186
|
+
}, [stateFiles, maxFiles]);
|
|
11187
|
+
var getRootProps = React.useCallback(function () {
|
|
11188
|
+
return {
|
|
11189
|
+
onBlur: onRootBlur,
|
|
11190
|
+
onFocus: onRootFocus,
|
|
11191
|
+
onDragEnter: onRootDragEnter,
|
|
11192
|
+
onDragOver: onRootDragOver,
|
|
11193
|
+
onDragLeave: onRootDragLeave,
|
|
11194
|
+
onDrop: setFiles,
|
|
11195
|
+
ref: rootRef
|
|
11196
|
+
};
|
|
11197
|
+
}, [onRootBlur, onRootFocus, onRootDragEnter, onRootDragOver, setFiles, rootRef, disabled]);
|
|
11198
|
+
var getButtonProps = React.useCallback(function () {
|
|
11199
|
+
return {
|
|
11200
|
+
onClick: openFileDialog,
|
|
11201
|
+
ref: buttonRef
|
|
11202
|
+
};
|
|
11203
|
+
}, [openFileDialog, buttonRef]);
|
|
11204
|
+
var getInputProps = React.useCallback(function () {
|
|
11205
|
+
return Object.assign({
|
|
11206
|
+
type: 'file',
|
|
11207
|
+
style: {
|
|
11208
|
+
display: 'none'
|
|
11209
|
+
},
|
|
11210
|
+
tabIndex: -1,
|
|
11211
|
+
ref: inputRef,
|
|
11212
|
+
onChange: setFiles,
|
|
11213
|
+
multiple: !maxFiles || maxFiles > 1
|
|
11214
|
+
}, accept ? {
|
|
11215
|
+
accept: accept.join(',')
|
|
11216
|
+
} : {});
|
|
11217
|
+
}, [inputRef, setFiles, maxFiles, accept]);
|
|
11218
|
+
return {
|
|
11219
|
+
state: state,
|
|
11220
|
+
getRootProps: getRootProps,
|
|
11221
|
+
getInputProps: getInputProps,
|
|
11222
|
+
getButtonProps: getButtonProps,
|
|
11223
|
+
removeFile: removeFile
|
|
11224
|
+
};
|
|
11225
|
+
};
|
|
11226
|
+
|
|
11227
|
+
var defaultWidth = '320px';
|
|
11228
|
+
var Wrapper = styled__default["default"].div.withConfig({
|
|
11229
|
+
displayName: "FileUploader__Wrapper",
|
|
11230
|
+
componentId: "sc-pcnrgy-0"
|
|
11231
|
+
})(["width:", ";"], function (_ref) {
|
|
11232
|
+
var width = _ref.width;
|
|
11233
|
+
return width ? width : defaultWidth;
|
|
11234
|
+
});
|
|
11235
|
+
var Root = styled__default["default"].div.withConfig({
|
|
11236
|
+
displayName: "FileUploader__Root",
|
|
11237
|
+
componentId: "sc-pcnrgy-1"
|
|
11238
|
+
})(["box-sizing:border-box;border-width:", ";border-style:dashed;border-color:", ";padding:", ";display:flex;flex-direction:column;gap:", ";background-color:", ";"], function (_ref2) {
|
|
11239
|
+
var hasRootErrors = _ref2.hasRootErrors;
|
|
11240
|
+
return hasRootErrors ? '2px' : '1px';
|
|
11241
|
+
}, function (_ref3) {
|
|
11242
|
+
var isDragActive = _ref3.isDragActive,
|
|
11243
|
+
hasRootErrors = _ref3.hasRootErrors;
|
|
11244
|
+
return isDragActive ? rootTokens.dragActive.borderColor : hasRootErrors ? rootTokens.borderColorError : rootTokens.borderColor;
|
|
11245
|
+
}, function (_ref4) {
|
|
11246
|
+
var hasRootErrors = _ref4.hasRootErrors;
|
|
11247
|
+
return hasRootErrors ? "calc(".concat(rootTokens.paddingLeftRightTop, " - 1px) calc(").concat(rootTokens.paddingLeftRightTop, " - 1px) ").concat(rootTokens.paddingBottom) : "".concat(rootTokens.paddingLeftRightTop, " ").concat(rootTokens.paddingLeftRightTop, " ").concat(rootTokens.paddingBottom);
|
|
11248
|
+
}, rootTokens.gap, function (_ref5) {
|
|
11249
|
+
var isDragActive = _ref5.isDragActive;
|
|
11250
|
+
return isDragActive ? rootTokens.dragActive.backgroundColor : rootTokens.backgroundColor;
|
|
11251
|
+
});
|
|
11252
|
+
var FileUploaderInput = styled__default["default"].input.withConfig({
|
|
11253
|
+
displayName: "FileUploader__FileUploaderInput",
|
|
11254
|
+
componentId: "sc-pcnrgy-2"
|
|
11255
|
+
})([""]);
|
|
11256
|
+
var FileListElement = styled__default["default"].ul.withConfig({
|
|
11257
|
+
displayName: "FileUploader__FileListElement",
|
|
11258
|
+
componentId: "sc-pcnrgy-3"
|
|
11259
|
+
})(["margin:0;padding:0;list-style-type:none;"]);
|
|
11260
|
+
var FileUploader = function FileUploader(props) {
|
|
11261
|
+
var id = props.id,
|
|
11262
|
+
label = props.label,
|
|
11263
|
+
tip = props.tip,
|
|
11264
|
+
_props$required = props.required,
|
|
11265
|
+
required = _props$required === void 0 ? false : _props$required,
|
|
11266
|
+
initialFiles = props.initialFiles,
|
|
11267
|
+
accept = props.accept,
|
|
11268
|
+
maxFiles = props.maxFiles,
|
|
11269
|
+
disabled = props.disabled,
|
|
11270
|
+
onChange = props.onChange,
|
|
11271
|
+
width = props.width;
|
|
11272
|
+
var generatedId = React.useId();
|
|
11273
|
+
var uniqueId = id !== null && id !== void 0 ? id : "".concat(generatedId, "-fileUploader");
|
|
11274
|
+
var _useFileUploader = useFileUploader({
|
|
11275
|
+
id: id,
|
|
11276
|
+
initialFiles: initialFiles,
|
|
11277
|
+
accept: accept,
|
|
11278
|
+
disabled: disabled,
|
|
11279
|
+
maxFiles: maxFiles
|
|
11280
|
+
}),
|
|
11281
|
+
_useFileUploader$stat = _useFileUploader.state,
|
|
11282
|
+
stateFiles = _useFileUploader$stat.files,
|
|
11283
|
+
isDragActive = _useFileUploader$stat.isDragActive,
|
|
11284
|
+
rootErrors = _useFileUploader$stat.rootErrors,
|
|
11285
|
+
getRootProps = _useFileUploader.getRootProps,
|
|
11286
|
+
getInputProps = _useFileUploader.getInputProps,
|
|
11287
|
+
getButtonProps = _useFileUploader.getButtonProps,
|
|
11288
|
+
_removeFile = _useFileUploader.removeFile;
|
|
11289
|
+
React.useEffect(function () {
|
|
11290
|
+
onChange(stateFiles.map(function (f) {
|
|
11291
|
+
return f.file;
|
|
11292
|
+
}));
|
|
11293
|
+
}, [stateFiles]);
|
|
11294
|
+
var hasLabel = label !== undefined;
|
|
11295
|
+
var hasTip = tip !== undefined;
|
|
11296
|
+
var hasRootErrors = rootErrors.length > 0;
|
|
11297
|
+
var showRequiredMarker = required;
|
|
11298
|
+
var tipId = derivativeIdGenerator(uniqueId, 'tip');
|
|
11299
|
+
var fileListElements = stateFiles.map(function (stateFile, index) {
|
|
11300
|
+
return jsxRuntime.jsx(File, {
|
|
11301
|
+
parentId: uniqueId,
|
|
11302
|
+
index: index,
|
|
11303
|
+
file: stateFile,
|
|
11304
|
+
isValid: stateFile.errors.length === 0,
|
|
11305
|
+
removeFile: function removeFile() {
|
|
11306
|
+
return _removeFile(stateFile);
|
|
11307
|
+
}
|
|
11308
|
+
}, stateFile.file.name);
|
|
11309
|
+
});
|
|
11310
|
+
var rootErrorsList = rootErrors.map(function (e, index) {
|
|
11311
|
+
return {
|
|
11312
|
+
id: derivativeIdGenerator(uniqueId, "error-".concat(index)),
|
|
11313
|
+
message: e
|
|
11314
|
+
};
|
|
11315
|
+
});
|
|
11316
|
+
return jsxRuntime.jsxs(Wrapper, Object.assign({
|
|
11317
|
+
width: width
|
|
11318
|
+
}, {
|
|
11319
|
+
children: [hasLabel && jsxRuntime.jsx(Label$2, Object.assign({
|
|
11320
|
+
showRequiredStyling: showRequiredMarker,
|
|
11321
|
+
htmlFor: uniqueId
|
|
11322
|
+
}, {
|
|
11323
|
+
children: label
|
|
11324
|
+
})), hasTip && jsxRuntime.jsx(InputMessage, {
|
|
11325
|
+
id: tipId,
|
|
11326
|
+
message: tip,
|
|
11327
|
+
messageType: "tip"
|
|
11328
|
+
}), jsxRuntime.jsxs(Root, Object.assign({}, getRootProps(), {
|
|
11329
|
+
isDragActive: isDragActive,
|
|
11330
|
+
hasRootErrors: rootErrors.length > 0
|
|
11331
|
+
}, {
|
|
11332
|
+
children: [jsxRuntime.jsx(FileUploaderInput, Object.assign({}, getInputProps())), "Dra og slipp filer her eller", ' ', jsxRuntime.jsx(VisuallyHidden, Object.assign({
|
|
11333
|
+
as: "span"
|
|
11334
|
+
}, {
|
|
11335
|
+
children: "velg fil med p\xE5f\xF8lgende knapp"
|
|
11336
|
+
})), jsxRuntime.jsx(Button$1, Object.assign({}, getButtonProps(), {
|
|
11337
|
+
id: uniqueId,
|
|
11338
|
+
size: "medium",
|
|
11339
|
+
type: "button",
|
|
11340
|
+
appearance: "filled",
|
|
11341
|
+
purpose: "secondary",
|
|
11342
|
+
label: "Velg fil",
|
|
11343
|
+
icon: UploadIcon,
|
|
11344
|
+
htmlProps: {
|
|
11345
|
+
'aria-invalid': hasRootErrors ? true : undefined,
|
|
11346
|
+
'aria-describedby': spaceSeparatedIdListGenerator([hasTip ? tipId : undefined].concat(_toConsumableArray(rootErrorsList.map(function (e) {
|
|
11347
|
+
return e.id;
|
|
11348
|
+
}))))
|
|
11349
|
+
}
|
|
11350
|
+
}))]
|
|
11351
|
+
})), jsxRuntime.jsx(ErrorList, {
|
|
11352
|
+
errors: rootErrorsList
|
|
11353
|
+
}), jsxRuntime.jsx(FileListElement, {
|
|
11354
|
+
children: fileListElements
|
|
11355
|
+
})]
|
|
11356
|
+
}));
|
|
11357
|
+
};
|
|
11358
|
+
|
|
10321
11359
|
exports.AppsIcon = AppsIcon;
|
|
10322
11360
|
exports.ArchiveIcon = ArchiveIcon;
|
|
10323
11361
|
exports.ArrowDownIcon = ArrowDownIcon;
|
|
@@ -10394,6 +11432,7 @@ exports.FeedbackIcon = FeedbackIcon;
|
|
|
10394
11432
|
exports.FileAddIcon = FileAddIcon;
|
|
10395
11433
|
exports.FileIcon = FileIcon;
|
|
10396
11434
|
exports.FileTextIcon = FileTextIcon;
|
|
11435
|
+
exports.FileUploader = FileUploader;
|
|
10397
11436
|
exports.FilterIcon = FilterIcon;
|
|
10398
11437
|
exports.FilterListIcon = FilterListIcon;
|
|
10399
11438
|
exports.FilterListOffIcon = FilterListOffIcon;
|
|
@@ -10401,6 +11440,7 @@ exports.FilterOffIcon = FilterOffIcon;
|
|
|
10401
11440
|
exports.FindInPageIcon = FindInPageIcon;
|
|
10402
11441
|
exports.FolderAddIcon = FolderAddIcon;
|
|
10403
11442
|
exports.FolderIcon = FolderIcon;
|
|
11443
|
+
exports.FormGenerator = FormGenerator;
|
|
10404
11444
|
exports.FullscreenExitIcon = FullscreenExitIcon;
|
|
10405
11445
|
exports.FullscreenIcon = FullscreenIcon;
|
|
10406
11446
|
exports.GavelIcon = GavelIcon;
|