@norges-domstoler/dds-components 0.0.28 → 1.0.0
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/README.md +5 -5
- package/dist/components/Button/Button.styles.d.ts +4 -8
- package/dist/components/Button/Button.tokens.d.ts +12 -0
- package/dist/components/Button/Button.types.d.ts +1 -1
- package/dist/components/Card/CardAccordion/CardAccordionBody.d.ts +3 -0
- package/dist/components/Card/CardAccordion/CardAccordionHeader.d.ts +3 -3
- package/dist/components/Card/CardAccordion/CardAccordionHeader.tokens.d.ts +7 -0
- package/dist/components/Datepicker/Datepicker.tokens.d.ts +9 -0
- package/dist/components/InternalHeader/InternalHeader.styles.d.ts +5 -1
- package/dist/components/InternalHeader/InternalHeader.tokens.d.ts +4 -0
- package/dist/components/Modal/Modal.d.ts +15 -0
- package/dist/components/Modal/Modal.tokens.d.ts +19 -0
- package/dist/components/Modal/ModalActions.d.ts +3 -0
- package/dist/components/Modal/ModalBody.d.ts +7 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/helpers/Backdrop/Backdrop.d.ts +5 -0
- package/dist/helpers/Backdrop/Backdrop.utils.d.ts +2 -0
- package/dist/helpers/Backdrop/index.d.ts +2 -0
- package/dist/helpers/Chevron/AnimatedChevronUpDown.d.ts +8 -2
- package/dist/helpers/Chevron/AnimatedChevronUpDown.styles.d.ts +5 -5
- package/dist/helpers/color.d.ts +6 -0
- package/dist/helpers/styling/index.d.ts +1 -0
- package/dist/helpers/styling/visibilityTransition.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useFocusTrap.d.ts +1 -0
- package/dist/hooks/useMountTransition.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1216 -867
- package/dist/index.js +1218 -866
- package/dist/utils/getScrollbarSize.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +10 -9
package/dist/index.js
CHANGED
|
@@ -12226,75 +12226,75 @@ var ddsBaseTokens = {
|
|
|
12226
12226
|
fontPackages: fontPackages,
|
|
12227
12227
|
};
|
|
12228
12228
|
|
|
12229
|
-
var Colors$
|
|
12229
|
+
var Colors$m = ddsBaseTokens.colors, FontPackages$k = ddsBaseTokens.fontPackages, BorderRadius$8 = ddsBaseTokens.borderRadius, Border$i = ddsBaseTokens.border;
|
|
12230
12230
|
var textDefault$8 = {
|
|
12231
|
-
textColor: Colors$
|
|
12231
|
+
textColor: Colors$m.DdsColorNeutralsGray9,
|
|
12232
12232
|
font: FontPackages$k.body_sans_02.base,
|
|
12233
12233
|
};
|
|
12234
|
-
var focus = {
|
|
12235
|
-
colorDefault: Border$
|
|
12236
|
-
outlineWidth: Border$
|
|
12237
|
-
color__TextInput: Colors$
|
|
12238
|
-
textColor__TextInput: Colors$
|
|
12239
|
-
borderWidth__TextInput: Border$
|
|
12234
|
+
var focus$1 = {
|
|
12235
|
+
colorDefault: Border$i.BordersDdsBorderFocusBaseStroke,
|
|
12236
|
+
outlineWidth: Border$i.BordersDdsBorderFocusBaseStrokeWeight,
|
|
12237
|
+
color__TextInput: Colors$m.DdsColorInteractiveBase,
|
|
12238
|
+
textColor__TextInput: Colors$m.DdsColorInteractiveDark,
|
|
12239
|
+
borderWidth__TextInput: Border$i.BordersDdsBorderFocusInputfieldStrokeWeight,
|
|
12240
12240
|
};
|
|
12241
12241
|
var ddsReferenceTokens = {
|
|
12242
|
-
focus: focus,
|
|
12242
|
+
focus: focus$1,
|
|
12243
12243
|
textDefault: textDefault$8,
|
|
12244
12244
|
textInput: {
|
|
12245
12245
|
input: {
|
|
12246
|
-
borderRadius: BorderRadius$
|
|
12247
|
-
borderWidth: Border$
|
|
12248
|
-
borderColor: Colors$
|
|
12246
|
+
borderRadius: BorderRadius$8.RadiiDdsBorderRadius1Radius,
|
|
12247
|
+
borderWidth: Border$i.BordersDdsBorderStyleLightStrokeWeight,
|
|
12248
|
+
borderColor: Colors$m.DdsColorNeutralsGray5,
|
|
12249
12249
|
textColor: textDefault$8.textColor,
|
|
12250
12250
|
font: FontPackages$k.supportingStyle_inputtext_02.base,
|
|
12251
12251
|
hover: {
|
|
12252
|
-
backgroundColor: Colors$
|
|
12253
|
-
borderColor: focus.color__TextInput,
|
|
12254
|
-
borderWidth: focus.borderWidth__TextInput,
|
|
12252
|
+
backgroundColor: Colors$m.DdsColorInteractiveLightest,
|
|
12253
|
+
borderColor: focus$1.color__TextInput,
|
|
12254
|
+
borderWidth: focus$1.borderWidth__TextInput,
|
|
12255
12255
|
},
|
|
12256
12256
|
focus: {
|
|
12257
|
-
borderColor: focus.color__TextInput,
|
|
12258
|
-
borderWidth: focus.borderWidth__TextInput,
|
|
12257
|
+
borderColor: focus$1.color__TextInput,
|
|
12258
|
+
borderWidth: focus$1.borderWidth__TextInput,
|
|
12259
12259
|
},
|
|
12260
12260
|
},
|
|
12261
12261
|
label: {
|
|
12262
12262
|
hover: {
|
|
12263
|
-
textColor: focus.textColor__TextInput,
|
|
12263
|
+
textColor: focus$1.textColor__TextInput,
|
|
12264
12264
|
},
|
|
12265
12265
|
focus: {
|
|
12266
|
-
textColor: focus.textColor__TextInput,
|
|
12266
|
+
textColor: focus$1.textColor__TextInput,
|
|
12267
12267
|
},
|
|
12268
12268
|
},
|
|
12269
12269
|
},
|
|
12270
12270
|
};
|
|
12271
12271
|
|
|
12272
|
-
var Colors$
|
|
12272
|
+
var Colors$l = ddsBaseTokens.colors,
|
|
12273
12273
|
FontPackages$j = ddsBaseTokens.fontPackages,
|
|
12274
|
-
Spacing$
|
|
12275
|
-
Border$
|
|
12274
|
+
Spacing$v = ddsBaseTokens.spacing,
|
|
12275
|
+
Border$h = ddsBaseTokens.border;
|
|
12276
12276
|
var textDefault$7 = ddsReferenceTokens.textDefault;
|
|
12277
12277
|
var textColors = {
|
|
12278
|
-
interactive: Colors$
|
|
12279
|
-
primary: Colors$
|
|
12280
|
-
danger: Colors$
|
|
12281
|
-
success: Colors$
|
|
12282
|
-
warning: Colors$
|
|
12278
|
+
interactive: Colors$l.DdsColorInteractiveBase,
|
|
12279
|
+
primary: Colors$l.DdsColorPrimaryBase,
|
|
12280
|
+
danger: Colors$l.DdsColorDangerBase,
|
|
12281
|
+
success: Colors$l.DdsColorSuccessBase,
|
|
12282
|
+
warning: Colors$l.DdsColorWarningBase,
|
|
12283
12283
|
onLight: textDefault$7.textColor,
|
|
12284
|
-
onDark: Colors$
|
|
12285
|
-
gray1: Colors$
|
|
12286
|
-
gray2: Colors$
|
|
12287
|
-
gray3: Colors$
|
|
12288
|
-
gray4: Colors$
|
|
12289
|
-
gray5: Colors$
|
|
12290
|
-
gray6: Colors$
|
|
12291
|
-
gray7: Colors$
|
|
12292
|
-
gray8: Colors$
|
|
12293
|
-
gray9: Colors$
|
|
12284
|
+
onDark: Colors$l.DdsColorNeutralsWhite,
|
|
12285
|
+
gray1: Colors$l.DdsColorNeutralsGray1,
|
|
12286
|
+
gray2: Colors$l.DdsColorNeutralsGray2,
|
|
12287
|
+
gray3: Colors$l.DdsColorNeutralsGray3,
|
|
12288
|
+
gray4: Colors$l.DdsColorNeutralsGray4,
|
|
12289
|
+
gray5: Colors$l.DdsColorNeutralsGray5,
|
|
12290
|
+
gray6: Colors$l.DdsColorNeutralsGray6,
|
|
12291
|
+
gray7: Colors$l.DdsColorNeutralsGray7,
|
|
12292
|
+
gray8: Colors$l.DdsColorNeutralsGray8,
|
|
12293
|
+
gray9: Colors$l.DdsColorNeutralsGray9
|
|
12294
12294
|
};
|
|
12295
12295
|
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
12296
12296
|
var aBase = {
|
|
12297
|
-
color: Colors$
|
|
12297
|
+
color: Colors$l.DdsColorInteractiveBase,
|
|
12298
12298
|
font: 'inherit',
|
|
12299
12299
|
textDecoration: 'underline',
|
|
12300
12300
|
width: 'fit-content'
|
|
@@ -12304,11 +12304,11 @@ var aMarginsBase = {
|
|
|
12304
12304
|
marginBottom: FontPackages$j.body_sans_02.paragraph.paragraphSpacing
|
|
12305
12305
|
};
|
|
12306
12306
|
var aHoverBase = {
|
|
12307
|
-
color: Colors$
|
|
12307
|
+
color: Colors$l.DdsColorInteractiveDark
|
|
12308
12308
|
};
|
|
12309
12309
|
var aFocusBase = {
|
|
12310
|
-
backgroundColor: Border$
|
|
12311
|
-
color: Colors$
|
|
12310
|
+
backgroundColor: Border$h.BordersDdsBorderFocusBaseStroke,
|
|
12311
|
+
color: Colors$l.DdsColorNeutralsWhite,
|
|
12312
12312
|
textDecoration: 'none',
|
|
12313
12313
|
outline: 'none'
|
|
12314
12314
|
};
|
|
@@ -12334,7 +12334,7 @@ var headingSans01Base = __assign({
|
|
|
12334
12334
|
var headingSans01MarginsBase = {
|
|
12335
12335
|
marginTop: 0,
|
|
12336
12336
|
marginBottom: FontPackages$j.heading_sans_01.paragraph.paragraphSpacing,
|
|
12337
|
-
paddingTop: Spacing$
|
|
12337
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans01Top
|
|
12338
12338
|
};
|
|
12339
12339
|
|
|
12340
12340
|
var headingSans02Base = __assign({
|
|
@@ -12344,7 +12344,7 @@ var headingSans02Base = __assign({
|
|
|
12344
12344
|
var headingSans02MarginsBase = {
|
|
12345
12345
|
marginTop: 0,
|
|
12346
12346
|
marginBottom: FontPackages$j.heading_sans_02.paragraph.paragraphSpacing,
|
|
12347
|
-
paddingTop: Spacing$
|
|
12347
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans02Top
|
|
12348
12348
|
};
|
|
12349
12349
|
|
|
12350
12350
|
var headingSans03Base = __assign({
|
|
@@ -12354,7 +12354,7 @@ var headingSans03Base = __assign({
|
|
|
12354
12354
|
var headingSans03MarginsBase = {
|
|
12355
12355
|
marginTop: 0,
|
|
12356
12356
|
marginBottom: FontPackages$j.heading_sans_03.paragraph.paragraphSpacing,
|
|
12357
|
-
paddingTop: Spacing$
|
|
12357
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans03Top
|
|
12358
12358
|
};
|
|
12359
12359
|
|
|
12360
12360
|
var headingSans04Base = __assign({
|
|
@@ -12364,7 +12364,7 @@ var headingSans04Base = __assign({
|
|
|
12364
12364
|
var headingSans04MarginsBase = {
|
|
12365
12365
|
marginTop: 0,
|
|
12366
12366
|
marginBottom: FontPackages$j.heading_sans_04.paragraph.paragraphSpacing,
|
|
12367
|
-
paddingTop: Spacing$
|
|
12367
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans04Top
|
|
12368
12368
|
};
|
|
12369
12369
|
|
|
12370
12370
|
var headingSans05Base = __assign({
|
|
@@ -12374,7 +12374,7 @@ var headingSans05Base = __assign({
|
|
|
12374
12374
|
var headingSans05MarginsBase = {
|
|
12375
12375
|
marginTop: 0,
|
|
12376
12376
|
marginBottom: FontPackages$j.heading_sans_05.paragraph.paragraphSpacing,
|
|
12377
|
-
paddingTop: Spacing$
|
|
12377
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans05Top
|
|
12378
12378
|
};
|
|
12379
12379
|
|
|
12380
12380
|
var headingSans06Base = __assign({
|
|
@@ -12384,7 +12384,7 @@ var headingSans06Base = __assign({
|
|
|
12384
12384
|
var headingSans06MarginsBase = {
|
|
12385
12385
|
marginTop: 0,
|
|
12386
12386
|
marginBottom: FontPackages$j.heading_sans_06.paragraph.paragraphSpacing,
|
|
12387
|
-
paddingTop: Spacing$
|
|
12387
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans06Top
|
|
12388
12388
|
};
|
|
12389
12389
|
|
|
12390
12390
|
var headingSans07Base = __assign({
|
|
@@ -12394,7 +12394,7 @@ var headingSans07Base = __assign({
|
|
|
12394
12394
|
var headingSans07MarginsBase = {
|
|
12395
12395
|
marginTop: 0,
|
|
12396
12396
|
marginBottom: FontPackages$j.heading_sans_07.paragraph.paragraphSpacing,
|
|
12397
|
-
paddingTop: Spacing$
|
|
12397
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans07Top
|
|
12398
12398
|
};
|
|
12399
12399
|
|
|
12400
12400
|
var headingSans08Base = __assign({
|
|
@@ -12404,7 +12404,7 @@ var headingSans08Base = __assign({
|
|
|
12404
12404
|
var headingSans08MarginsBase = {
|
|
12405
12405
|
marginTop: 0,
|
|
12406
12406
|
marginBottom: FontPackages$j.heading_sans_08.paragraph.paragraphSpacing,
|
|
12407
|
-
paddingTop: Spacing$
|
|
12407
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans08Top
|
|
12408
12408
|
};
|
|
12409
12409
|
|
|
12410
12410
|
var bodySans01Base$1 = __assign({
|
|
@@ -12525,7 +12525,7 @@ var leadSans05MarginsBase = {
|
|
|
12525
12525
|
};
|
|
12526
12526
|
|
|
12527
12527
|
var supportingStyleLabel01Base = __assign(__assign({
|
|
12528
|
-
color: Colors$
|
|
12528
|
+
color: Colors$l.DdsColorNeutralsGray7
|
|
12529
12529
|
}, FontPackages$j.supportingStyle_label_01.base), {
|
|
12530
12530
|
margin: 0
|
|
12531
12531
|
});
|
|
@@ -12536,7 +12536,7 @@ var supportingStyleLabel01MarginsBase = {
|
|
|
12536
12536
|
};
|
|
12537
12537
|
|
|
12538
12538
|
var supportingStyleHelperText01Base = __assign(__assign({
|
|
12539
|
-
color: Colors$
|
|
12539
|
+
color: Colors$l.DdsColorNeutralsGray6
|
|
12540
12540
|
}, FontPackages$j.supportingStyle_helpertext_01.base), {
|
|
12541
12541
|
margin: 0
|
|
12542
12542
|
});
|
|
@@ -12580,7 +12580,7 @@ var supportingStyleInputText03MarginsBase = {
|
|
|
12580
12580
|
};
|
|
12581
12581
|
|
|
12582
12582
|
var supportingStylePlaceholderText01Base = __assign(__assign({
|
|
12583
|
-
color: Colors$
|
|
12583
|
+
color: Colors$l.DdsColorNeutralsGray6
|
|
12584
12584
|
}, FontPackages$j.supportingStyle_placeholdertext_01.base), {
|
|
12585
12585
|
margin: 0
|
|
12586
12586
|
});
|
|
@@ -12613,7 +12613,7 @@ var supportingStyleTiny02MarginsBase = {
|
|
|
12613
12613
|
};
|
|
12614
12614
|
var selectionBase = {
|
|
12615
12615
|
color: textDefault$7.textColor,
|
|
12616
|
-
backgroundColor: Colors$
|
|
12616
|
+
backgroundColor: Colors$l.DdsColorTertiaryLightest
|
|
12617
12617
|
};
|
|
12618
12618
|
var typographyTokens = {
|
|
12619
12619
|
selection: {
|
|
@@ -12635,7 +12635,7 @@ var typographyTokens = {
|
|
|
12635
12635
|
base: aBoldBase
|
|
12636
12636
|
},
|
|
12637
12637
|
icon: {
|
|
12638
|
-
marginLeft: Spacing$
|
|
12638
|
+
marginLeft: Spacing$v.SizesDdsSpacingLocalX0125
|
|
12639
12639
|
}
|
|
12640
12640
|
},
|
|
12641
12641
|
headingSans01: {
|
|
@@ -20489,26 +20489,26 @@ var getTextColor = function getTextColor(color) {
|
|
|
20489
20489
|
};
|
|
20490
20490
|
|
|
20491
20491
|
var getElementStyling = function getElementStyling(type) {
|
|
20492
|
-
return Ae(templateObject_1$
|
|
20492
|
+
return Ae(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject(["\n ", "\n &::selection, *::selection {\n ", "\n }\n "], ["\n ", "\n &::selection, *::selection {\n ", "\n }\n "])), typographyTokens.typographyType[type].base, typographyTokens.selection.base);
|
|
20493
20493
|
};
|
|
20494
20494
|
|
|
20495
20495
|
var LinkIconWrapper = styled(IconWrapper$1).withConfig({
|
|
20496
20496
|
displayName: "Typography__LinkIconWrapper",
|
|
20497
20497
|
componentId: "sc-1uvxoh6-0"
|
|
20498
|
-
})(templateObject_2$
|
|
20498
|
+
})(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyTokens.typographyType.a.icon);
|
|
20499
20499
|
var StyledTypography = styled.p.withConfig({
|
|
20500
20500
|
displayName: "Typography__StyledTypography",
|
|
20501
20501
|
componentId: "sc-1uvxoh6-1"
|
|
20502
|
-
})(templateObject_13$
|
|
20502
|
+
})(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n"])), function (_a) {
|
|
20503
20503
|
var typographyType = _a.typographyType;
|
|
20504
20504
|
return typographyType && getElementStyling(typographyType);
|
|
20505
20505
|
}, function (_a) {
|
|
20506
20506
|
var typographyType = _a.typographyType,
|
|
20507
20507
|
interactionProps = _a.interactionProps;
|
|
20508
|
-
return typographyType === 'a' && Ae(templateObject_4$
|
|
20508
|
+
return typographyType === 'a' && Ae(templateObject_4$m || (templateObject_4$m = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n transition: 0.2s;\n\n &:hover {\n ", "\n }\n ", "\n &:focus-visible {\n ", "\n }\n &:focus-visible::selection {\n ", "\n }\n "], ["\n display: inline-flex;\n align-items: center;\n transition: 0.2s;\n\n &:hover {\n ", "\n }\n ", "\n &:focus-visible {\n ", "\n }\n &:focus-visible::selection {\n ", "\n }\n "])), typographyTokens.typographyType[typographyType].hover.base, interactionProps && interactionProps.active && Ae(templateObject_3$q || (templateObject_3$q = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active), typographyTokens.typographyType[typographyType].focus.base, typographyTokens.typographyType[typographyType].focus.base);
|
|
20509
20509
|
}, function (_a) {
|
|
20510
20510
|
var interactionProps = _a.interactionProps;
|
|
20511
|
-
return interactionProps && interactionProps.hover && Ae(templateObject_5$
|
|
20511
|
+
return interactionProps && interactionProps.hover && Ae(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n &:hover {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n "])), interactionProps.hover);
|
|
20512
20512
|
}, function (_a) {
|
|
20513
20513
|
var interactionProps = _a.interactionProps;
|
|
20514
20514
|
return interactionProps && interactionProps.active && Ae(templateObject_6$e || (templateObject_6$e = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active);
|
|
@@ -20527,7 +20527,7 @@ var StyledTypography = styled.p.withConfig({
|
|
|
20527
20527
|
return italic && Ae(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.italic.base);
|
|
20528
20528
|
}, function (_a) {
|
|
20529
20529
|
var underline = _a.underline;
|
|
20530
|
-
return underline && Ae(templateObject_12$
|
|
20530
|
+
return underline && Ae(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.underline.base);
|
|
20531
20531
|
});
|
|
20532
20532
|
var Typography = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
20533
20533
|
var _b = _a.typographyType,
|
|
@@ -20556,81 +20556,81 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20556
20556
|
}, void 0) : '']
|
|
20557
20557
|
}), void 0);
|
|
20558
20558
|
});
|
|
20559
|
-
var templateObject_1$
|
|
20559
|
+
var templateObject_1$Q, templateObject_2$B, templateObject_3$q, templateObject_4$m, templateObject_5$f, templateObject_6$e, templateObject_7$a, templateObject_8$7, templateObject_9$7, templateObject_10$7, templateObject_11$5, templateObject_12$4, templateObject_13$3;
|
|
20560
20560
|
|
|
20561
20561
|
var RadioButtonGroupContext = /*#__PURE__*/React__default['default'].createContext(null);
|
|
20562
20562
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
20563
20563
|
return React.useContext(RadioButtonGroupContext);
|
|
20564
20564
|
};
|
|
20565
20565
|
|
|
20566
|
-
var Colors$
|
|
20567
|
-
Border$
|
|
20568
|
-
Spacing$
|
|
20566
|
+
var Colors$k = ddsBaseTokens.colors,
|
|
20567
|
+
Border$g = ddsBaseTokens.border,
|
|
20568
|
+
Spacing$u = ddsBaseTokens.spacing,
|
|
20569
20569
|
FontPackages$i = ddsBaseTokens.fontPackages;
|
|
20570
20570
|
var radioButtonBase = {
|
|
20571
20571
|
border: '1px solid',
|
|
20572
|
-
borderColor: Colors$
|
|
20573
|
-
backgroundColor: Colors$
|
|
20572
|
+
borderColor: Colors$k.DdsColorNeutralsGray5,
|
|
20573
|
+
backgroundColor: Colors$k.DdsColorNeutralsWhite,
|
|
20574
20574
|
height: FontPackages$i.supportingStyle_inputtext_02.numbers.fontSizeNumber,
|
|
20575
20575
|
width: FontPackages$i.supportingStyle_inputtext_02.numbers.fontSizeNumber
|
|
20576
20576
|
};
|
|
20577
20577
|
var radioButtonHoverBase = {
|
|
20578
20578
|
border: '2px solid',
|
|
20579
|
-
backgroundColor: Colors$
|
|
20580
|
-
borderColor: Colors$
|
|
20579
|
+
backgroundColor: Colors$k.DdsColorInteractiveLightest,
|
|
20580
|
+
borderColor: Colors$k.DdsColorInteractiveBase
|
|
20581
20581
|
};
|
|
20582
20582
|
var radioButtonDisabledBase = {
|
|
20583
20583
|
border: '1px solid',
|
|
20584
|
-
borderColor: Colors$
|
|
20585
|
-
color: Colors$
|
|
20584
|
+
borderColor: Colors$k.DdsColorNeutralsGray5,
|
|
20585
|
+
color: Colors$k.DdsColorNeutralsGray6
|
|
20586
20586
|
};
|
|
20587
20587
|
var radioButtonReadOnlyBase = {
|
|
20588
20588
|
backgroundColor: 'transparent'
|
|
20589
20589
|
};
|
|
20590
20590
|
var radioButtonDangerBase = {
|
|
20591
20591
|
border: '2px solid',
|
|
20592
|
-
borderColor: Colors$
|
|
20592
|
+
borderColor: Colors$k.DdsColorDangerBase
|
|
20593
20593
|
};
|
|
20594
20594
|
var radioButtonDangerHoverBase = {
|
|
20595
20595
|
border: '2px solid',
|
|
20596
|
-
backgroundColor: Colors$
|
|
20597
|
-
borderColor: Colors$
|
|
20596
|
+
backgroundColor: Colors$k.DdsColorDangerLightest,
|
|
20597
|
+
borderColor: Colors$k.DdsColorDangerBase
|
|
20598
20598
|
};
|
|
20599
20599
|
var radioButtonCheckedBase = {
|
|
20600
20600
|
border: '2px solid',
|
|
20601
|
-
backgroundColor: Colors$
|
|
20602
|
-
borderColor: Colors$
|
|
20601
|
+
backgroundColor: Colors$k.DdsColorInteractiveBase,
|
|
20602
|
+
borderColor: Colors$k.DdsColorInteractiveBase
|
|
20603
20603
|
};
|
|
20604
20604
|
var radioButtonCheckedHoverBase = {
|
|
20605
20605
|
border: '2px solid',
|
|
20606
|
-
backgroundColor: Colors$
|
|
20607
|
-
borderColor: Colors$
|
|
20606
|
+
backgroundColor: Colors$k.DdsColorInteractiveDark,
|
|
20607
|
+
borderColor: Colors$k.DdsColorInteractiveDark
|
|
20608
20608
|
};
|
|
20609
20609
|
var radioButtonCheckedDisabledBase = {
|
|
20610
20610
|
border: '1px solid',
|
|
20611
|
-
borderColor: Colors$
|
|
20612
|
-
backgroundColor: Colors$
|
|
20611
|
+
borderColor: Colors$k.DdsColorNeutralsGray6,
|
|
20612
|
+
backgroundColor: Colors$k.DdsColorNeutralsGray6
|
|
20613
20613
|
};
|
|
20614
20614
|
var radioButtonCheckedReadOnlyBase = {
|
|
20615
20615
|
border: '2px solid',
|
|
20616
|
-
borderColor: Colors$
|
|
20617
|
-
backgroundColor: Colors$
|
|
20616
|
+
borderColor: Colors$k.DdsColorNeutralsGray6,
|
|
20617
|
+
backgroundColor: Colors$k.DdsColorNeutralsGray6
|
|
20618
20618
|
};
|
|
20619
20619
|
var checkmarkBase$1 = {
|
|
20620
|
-
backgroundColor: Colors$
|
|
20621
|
-
height: Spacing$
|
|
20622
|
-
width: Spacing$
|
|
20623
|
-
left: "calc(50% - " + Spacing$
|
|
20624
|
-
top: "calc(50% - " + Spacing$
|
|
20620
|
+
backgroundColor: Colors$k.DdsColorNeutralsWhite,
|
|
20621
|
+
height: Spacing$u.SizesDdsSpacingLocalX05,
|
|
20622
|
+
width: Spacing$u.SizesDdsSpacingLocalX05,
|
|
20623
|
+
left: "calc(50% - " + Spacing$u.SizesDdsSpacingLocalX05NumberPx / 2 + "px)",
|
|
20624
|
+
top: "calc(50% - " + Spacing$u.SizesDdsSpacingLocalX05NumberPx / 2 + "px)"
|
|
20625
20625
|
};
|
|
20626
20626
|
var containerBase$4 = {
|
|
20627
|
-
marginRight: Spacing$
|
|
20628
|
-
padding: Spacing$
|
|
20627
|
+
marginRight: Spacing$u.SizesDdsSpacingLocalX075,
|
|
20628
|
+
padding: Spacing$u.SizesDdsSpacingLocalX025 + " " + Spacing$u.SizesDdsSpacingLocalX025 + " " + Spacing$u.SizesDdsSpacingLocalX025 + " " + (20 + Spacing$u.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
20629
20629
|
};
|
|
20630
20630
|
var radioButtonTokens = {
|
|
20631
20631
|
radioButton: {
|
|
20632
20632
|
base: radioButtonBase,
|
|
20633
|
-
spaceLeft: Spacing$
|
|
20633
|
+
spaceLeft: Spacing$u.SizesDdsSpacingLocalX025,
|
|
20634
20634
|
hover: {
|
|
20635
20635
|
base: radioButtonHoverBase
|
|
20636
20636
|
},
|
|
@@ -20665,8 +20665,8 @@ var radioButtonTokens = {
|
|
|
20665
20665
|
container: {
|
|
20666
20666
|
base: containerBase$4,
|
|
20667
20667
|
focusOutline: {
|
|
20668
|
-
color: Border$
|
|
20669
|
-
width: Border$
|
|
20668
|
+
color: Border$g.BordersDdsBorderFocusBaseStroke,
|
|
20669
|
+
width: Border$g.BordersDdsBorderFocusBaseStrokeWeight
|
|
20670
20670
|
}
|
|
20671
20671
|
}
|
|
20672
20672
|
};
|
|
@@ -20674,7 +20674,7 @@ var radioButtonTokens = {
|
|
|
20674
20674
|
var CustomRadioButton = styled.span.withConfig({
|
|
20675
20675
|
displayName: "RadioButtonstyles__CustomRadioButton",
|
|
20676
20676
|
componentId: "sc-iwypha-0"
|
|
20677
|
-
})(templateObject_1$
|
|
20677
|
+
})(templateObject_1$P || (templateObject_1$P = __makeTemplateObject(["\n position: absolute;\n box-sizing: border-box;\n border-radius: 50%;\n vertical-align: middle;\n ", "\n left: ", ";\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"], ["\n position: absolute;\n box-sizing: border-box;\n border-radius: 50%;\n vertical-align: middle;\n ", "\n left: ", ";\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"])), radioButtonTokens.radioButton.base, radioButtonTokens.radioButton.spaceLeft);
|
|
20678
20678
|
var Input$5 = styled.input.attrs(function (_a) {
|
|
20679
20679
|
var _b = _a.type,
|
|
20680
20680
|
type = _b === void 0 ? 'radio' : _b;
|
|
@@ -20684,23 +20684,23 @@ var Input$5 = styled.input.attrs(function (_a) {
|
|
|
20684
20684
|
}).withConfig({
|
|
20685
20685
|
displayName: "RadioButtonstyles__Input",
|
|
20686
20686
|
componentId: "sc-iwypha-1"
|
|
20687
|
-
})(templateObject_2$
|
|
20688
|
-
var Container$
|
|
20687
|
+
})(templateObject_2$A || (templateObject_2$A = __makeTemplateObject(["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"], ["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"])));
|
|
20688
|
+
var Container$d = styled.label.withConfig({
|
|
20689
20689
|
displayName: "RadioButtonstyles__Container",
|
|
20690
20690
|
componentId: "sc-iwypha-2"
|
|
20691
20691
|
})(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["\n position: relative;\n display: block;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n display: flex;\n align-items: center;\n ", "\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border-radius: 50%;\n ", "\n }\n"], ["\n position: relative;\n display: block;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n display: flex;\n align-items: center;\n ", "\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border-radius: 50%;\n ", "\n }\n"])), radioButtonTokens.container.base, CustomRadioButton, CustomRadioButton, CustomRadioButton, radioButtonTokens.radioButton.checked.base, CustomRadioButton, radioButtonTokens.radioButton.hover.base, CustomRadioButton, radioButtonTokens.radioButton.checked.hover.base, radioButtonTokens.container.focusOutline.width, radioButtonTokens.container.focusOutline.color, function (_a) {
|
|
20692
20692
|
var error = _a.error;
|
|
20693
|
-
return error && Ae(templateObject_3$
|
|
20693
|
+
return error && Ae(templateObject_3$p || (templateObject_3$p = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "])), CustomRadioButton, radioButtonTokens.radioButton.danger.base, CustomRadioButton, radioButtonTokens.radioButton.danger.hover.base);
|
|
20694
20694
|
}, function (_a) {
|
|
20695
20695
|
var disabled = _a.disabled;
|
|
20696
|
-
return disabled && Ae(templateObject_4$
|
|
20696
|
+
return disabled && Ae(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "], ["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "])), CustomRadioButton, radioButtonTokens.radioButton.disabled.base, CustomRadioButton, radioButtonTokens.radioButton.checked.disabled.base);
|
|
20697
20697
|
}, function (_a) {
|
|
20698
20698
|
var readOnly = _a.readOnly;
|
|
20699
|
-
return readOnly && Ae(templateObject_5$
|
|
20699
|
+
return readOnly && Ae(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "], ["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n "])), CustomRadioButton, radioButtonTokens.radioButton.readOnly.base, CustomRadioButton, radioButtonTokens.radioButton.checked.readOnly.base);
|
|
20700
20700
|
}, CustomRadioButton, radioButtonTokens.checkmark.base);
|
|
20701
|
-
var templateObject_1$
|
|
20701
|
+
var templateObject_1$P, templateObject_2$A, templateObject_3$p, templateObject_4$l, templateObject_5$e, templateObject_6$d;
|
|
20702
20702
|
|
|
20703
|
-
var nextUniqueId$
|
|
20703
|
+
var nextUniqueId$b = 0;
|
|
20704
20704
|
|
|
20705
20705
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
20706
20706
|
if (typeof value !== 'undefined' && value !== null && group) {
|
|
@@ -20731,7 +20731,7 @@ var RadioButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20731
20731
|
ariaDescribedby = _a["aria-describedby"],
|
|
20732
20732
|
rest = __rest(_a, ["id", "name", "label", "disabled", "readOnly", "error", "style", "checked", "value", "className", "children", "required", "onChange", 'aria-describedby']);
|
|
20733
20733
|
|
|
20734
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$
|
|
20734
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$b++)[0];
|
|
20735
20735
|
var radioButtonGroup = useRadioButtonGroup();
|
|
20736
20736
|
|
|
20737
20737
|
var handleChange = function handleChange(event) {
|
|
@@ -20762,7 +20762,7 @@ var RadioButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20762
20762
|
style: style,
|
|
20763
20763
|
className: className
|
|
20764
20764
|
};
|
|
20765
|
-
return jsxRuntime.jsxs(Container$
|
|
20765
|
+
return jsxRuntime.jsxs(Container$d, __assign({}, containerProps, {
|
|
20766
20766
|
htmlFor: uniqueId
|
|
20767
20767
|
}, {
|
|
20768
20768
|
children: [jsxRuntime.jsx(Input$5, __assign({
|
|
@@ -20778,14 +20778,14 @@ var RadioButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20778
20778
|
var MarkerWrapper = styled.span.withConfig({
|
|
20779
20779
|
displayName: "RequiredMarker__MarkerWrapper",
|
|
20780
20780
|
componentId: "sc-1p5sjqf-0"
|
|
20781
|
-
})(templateObject_1$
|
|
20781
|
+
})(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), ddsBaseTokens.colors.DdsColorDangerBase);
|
|
20782
20782
|
|
|
20783
20783
|
function RequiredMarker() {
|
|
20784
20784
|
return jsxRuntime.jsx(MarkerWrapper, {
|
|
20785
20785
|
children: "*"
|
|
20786
20786
|
}, void 0);
|
|
20787
20787
|
}
|
|
20788
|
-
var templateObject_1$
|
|
20788
|
+
var templateObject_1$O;
|
|
20789
20789
|
|
|
20790
20790
|
var ReportProblemOutlined = createCommonjsModule(function (module, exports) {
|
|
20791
20791
|
|
|
@@ -20811,22 +20811,22 @@ exports.default = _default;
|
|
|
20811
20811
|
|
|
20812
20812
|
var DangerOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(ReportProblemOutlined);
|
|
20813
20813
|
|
|
20814
|
-
var Colors$
|
|
20815
|
-
Spacing$
|
|
20816
|
-
var base$
|
|
20817
|
-
padding: Spacing$
|
|
20814
|
+
var Colors$j = ddsBaseTokens.colors,
|
|
20815
|
+
Spacing$t = ddsBaseTokens.spacing;
|
|
20816
|
+
var base$9 = {
|
|
20817
|
+
padding: Spacing$t.SizesDdsSpacingLocalX025 + " " + Spacing$t.SizesDdsSpacingLocalX05
|
|
20818
20818
|
};
|
|
20819
20819
|
var defaultMaxWidth = '100%';
|
|
20820
20820
|
var tipBase = {
|
|
20821
|
-
backgroundColor: Colors$
|
|
20821
|
+
backgroundColor: Colors$j.DdsColorNeutralsWhite
|
|
20822
20822
|
};
|
|
20823
20823
|
var errorBase = {
|
|
20824
|
-
color: Colors$
|
|
20825
|
-
backgroundColor: Colors$
|
|
20824
|
+
color: Colors$j.DdsColorDangerBase,
|
|
20825
|
+
backgroundColor: Colors$j.DdsColorDangerLightest
|
|
20826
20826
|
};
|
|
20827
20827
|
var inputMessageTokens = {
|
|
20828
|
-
padding: Spacing$
|
|
20829
|
-
base: base$
|
|
20828
|
+
padding: Spacing$t.SizesDdsSpacingLocalX025 + " " + Spacing$t.SizesDdsSpacingLocalX05,
|
|
20829
|
+
base: base$9,
|
|
20830
20830
|
defaultMaxWidth: defaultMaxWidth,
|
|
20831
20831
|
tip: {
|
|
20832
20832
|
base: tipBase
|
|
@@ -20835,16 +20835,16 @@ var inputMessageTokens = {
|
|
|
20835
20835
|
base: errorBase
|
|
20836
20836
|
},
|
|
20837
20837
|
icon: {
|
|
20838
|
-
spaceRight: Spacing$
|
|
20838
|
+
spaceRight: Spacing$t.SizesDdsSpacingLocalX05
|
|
20839
20839
|
}
|
|
20840
20840
|
};
|
|
20841
20841
|
|
|
20842
20842
|
var InputMessageWrapper = styled.div.withConfig({
|
|
20843
20843
|
displayName: "InputMessage__InputMessageWrapper",
|
|
20844
20844
|
componentId: "sc-n5r6yv-0"
|
|
20845
|
-
})(templateObject_2$
|
|
20845
|
+
})(templateObject_2$z || (templateObject_2$z = __makeTemplateObject(["\n display: flex;\n align-items: center;\n width: fit-content;\n word-break: break-word;\n ", "\n ", "\n max-width: ", ";\n\n svg {\n margin-right: ", ";\n position: relative;\n }\n"], ["\n display: flex;\n align-items: center;\n width: fit-content;\n word-break: break-word;\n ", "\n ", "\n max-width: ", ";\n\n svg {\n margin-right: ", ";\n position: relative;\n }\n"])), inputMessageTokens.base, function (_a) {
|
|
20846
20846
|
var messageType = _a.messageType;
|
|
20847
|
-
return messageType && Ae(templateObject_1$
|
|
20847
|
+
return messageType && Ae(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputMessageTokens[messageType].base);
|
|
20848
20848
|
}, function (_a) {
|
|
20849
20849
|
var maxWidth = _a.maxWidth;
|
|
20850
20850
|
return maxWidth;
|
|
@@ -20879,12 +20879,12 @@ var InputMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20879
20879
|
}), void 0)]
|
|
20880
20880
|
}), void 0);
|
|
20881
20881
|
});
|
|
20882
|
-
var templateObject_1$
|
|
20882
|
+
var templateObject_1$N, templateObject_2$z;
|
|
20883
20883
|
|
|
20884
|
-
var Spacing$
|
|
20884
|
+
var Spacing$s = ddsBaseTokens.spacing;
|
|
20885
20885
|
var radioButtonGroupTokens = {
|
|
20886
20886
|
label: {
|
|
20887
|
-
spaceLeft: Spacing$
|
|
20887
|
+
spaceLeft: Spacing$s.SizesDdsSpacingLocalX025
|
|
20888
20888
|
}
|
|
20889
20889
|
};
|
|
20890
20890
|
|
|
@@ -20915,21 +20915,21 @@ var spaceSeparatedIdListGenerator = function spaceSeparatedIdListGenerator(value
|
|
|
20915
20915
|
return (_a = idArrayGenerator(values)) === null || _a === void 0 ? void 0 : _a.join(' ');
|
|
20916
20916
|
};
|
|
20917
20917
|
|
|
20918
|
-
var Container$
|
|
20918
|
+
var Container$c = styled.div.withConfig({
|
|
20919
20919
|
displayName: "RadioButtonGroup__Container",
|
|
20920
20920
|
componentId: "sc-1xsll60-0"
|
|
20921
|
-
})(templateObject_1$
|
|
20921
|
+
})(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20922
20922
|
var GroupContainer$1 = styled.div.withConfig({
|
|
20923
20923
|
displayName: "RadioButtonGroup__GroupContainer",
|
|
20924
20924
|
componentId: "sc-1xsll60-1"
|
|
20925
|
-
})(templateObject_2$
|
|
20925
|
+
})(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20926
20926
|
var direction = _a.direction;
|
|
20927
20927
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20928
20928
|
});
|
|
20929
20929
|
var Label$4 = styled(Typography).withConfig({
|
|
20930
20930
|
displayName: "RadioButtonGroup__Label",
|
|
20931
20931
|
componentId: "sc-1xsll60-2"
|
|
20932
|
-
})(templateObject_3$
|
|
20932
|
+
})(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), radioButtonGroupTokens.label.spaceLeft);
|
|
20933
20933
|
var nextUniqueGroupId$1 = 0;
|
|
20934
20934
|
var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
20935
20935
|
var name = _a.name,
|
|
@@ -20978,7 +20978,7 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20978
20978
|
value: groupValue,
|
|
20979
20979
|
onChange: handleChange
|
|
20980
20980
|
};
|
|
20981
|
-
return jsxRuntime.jsxs(Container$
|
|
20981
|
+
return jsxRuntime.jsxs(Container$c, __assign({}, containerProps, {
|
|
20982
20982
|
children: [jsxRuntime.jsxs(Label$4, __assign({
|
|
20983
20983
|
forwardedAs: "span",
|
|
20984
20984
|
typographyType: "supportingStyleLabel01",
|
|
@@ -21008,62 +21008,62 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
21008
21008
|
}, void 0)]
|
|
21009
21009
|
}), void 0);
|
|
21010
21010
|
};
|
|
21011
|
-
var templateObject_1$
|
|
21011
|
+
var templateObject_1$M, templateObject_2$y, templateObject_3$o;
|
|
21012
21012
|
|
|
21013
|
-
var Colors$
|
|
21014
|
-
Border$
|
|
21015
|
-
Spacing$
|
|
21013
|
+
var Colors$i = ddsBaseTokens.colors,
|
|
21014
|
+
Border$f = ddsBaseTokens.border,
|
|
21015
|
+
Spacing$r = ddsBaseTokens.spacing,
|
|
21016
21016
|
FontPackages$h = ddsBaseTokens.fontPackages,
|
|
21017
|
-
BorderRadius$
|
|
21017
|
+
BorderRadius$7 = ddsBaseTokens.borderRadius;
|
|
21018
21018
|
var checkboxBase = {
|
|
21019
21019
|
border: '1px solid',
|
|
21020
|
-
backgroundColor: Colors$
|
|
21021
|
-
borderColor: Colors$
|
|
21022
|
-
borderRadius: BorderRadius$
|
|
21020
|
+
backgroundColor: Colors$i.DdsColorNeutralsWhite,
|
|
21021
|
+
borderColor: Colors$i.DdsColorNeutralsGray5,
|
|
21022
|
+
borderRadius: BorderRadius$7.RadiiDdsBorderRadius1Radius,
|
|
21023
21023
|
height: FontPackages$h.supportingStyle_inputtext_02.base.fontSize,
|
|
21024
21024
|
width: FontPackages$h.supportingStyle_inputtext_02.base.fontSize
|
|
21025
21025
|
};
|
|
21026
21026
|
var checkboxCheckedBase = {
|
|
21027
21027
|
border: '2px solid',
|
|
21028
|
-
borderColor: Colors$
|
|
21029
|
-
backgroundColor: Colors$
|
|
21028
|
+
borderColor: Colors$i.DdsColorInteractiveBase,
|
|
21029
|
+
backgroundColor: Colors$i.DdsColorInteractiveBase
|
|
21030
21030
|
};
|
|
21031
21031
|
var checkboxDisabledBase = {
|
|
21032
21032
|
border: '1px solid',
|
|
21033
|
-
borderColor: Colors$
|
|
21034
|
-
color: Colors$
|
|
21033
|
+
borderColor: Colors$i.DdsColorNeutralsGray5,
|
|
21034
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
21035
21035
|
};
|
|
21036
21036
|
var checkboxCheckedDisabledBase = {
|
|
21037
21037
|
border: '2px solid',
|
|
21038
|
-
borderColor: Colors$
|
|
21039
|
-
backgroundColor: Colors$
|
|
21038
|
+
borderColor: Colors$i.DdsColorNeutralsGray6,
|
|
21039
|
+
backgroundColor: Colors$i.DdsColorNeutralsGray6
|
|
21040
21040
|
};
|
|
21041
21041
|
var checkboxReadOnlyBase = {
|
|
21042
21042
|
backgroundColor: 'transparent'
|
|
21043
21043
|
};
|
|
21044
21044
|
var checkboxCheckedReadOnlyBase = {
|
|
21045
21045
|
border: '2px solid',
|
|
21046
|
-
borderColor: Colors$
|
|
21047
|
-
backgroundColor: Colors$
|
|
21046
|
+
borderColor: Colors$i.DdsColorNeutralsGray6,
|
|
21047
|
+
backgroundColor: Colors$i.DdsColorNeutralsGray6
|
|
21048
21048
|
};
|
|
21049
21049
|
var checkboxHoverBase = {
|
|
21050
|
-
backgroundColor: Colors$
|
|
21050
|
+
backgroundColor: Colors$i.DdsColorInteractiveLightest,
|
|
21051
21051
|
border: '2px solid',
|
|
21052
|
-
borderColor: Colors$
|
|
21052
|
+
borderColor: Colors$i.DdsColorInteractiveBase
|
|
21053
21053
|
};
|
|
21054
21054
|
var checkboxCheckedHoverBase = {
|
|
21055
|
-
backgroundColor: Colors$
|
|
21055
|
+
backgroundColor: Colors$i.DdsColorInteractiveDark,
|
|
21056
21056
|
border: '2px solid',
|
|
21057
|
-
borderColor: Colors$
|
|
21057
|
+
borderColor: Colors$i.DdsColorInteractiveDark
|
|
21058
21058
|
};
|
|
21059
21059
|
var checkboxDangerBase = {
|
|
21060
21060
|
border: '2px solid',
|
|
21061
|
-
borderColor: Colors$
|
|
21061
|
+
borderColor: Colors$i.DdsColorDangerBase
|
|
21062
21062
|
};
|
|
21063
21063
|
var checkboxDangerHoverBase = {
|
|
21064
|
-
backgroundColor: Colors$
|
|
21064
|
+
backgroundColor: Colors$i.DdsColorDangerLightest,
|
|
21065
21065
|
border: '2px solid',
|
|
21066
|
-
borderColor: Colors$
|
|
21066
|
+
borderColor: Colors$i.DdsColorDangerBase
|
|
21067
21067
|
};
|
|
21068
21068
|
var checkmarkBase = {
|
|
21069
21069
|
borderWidth: '0 1px 1px 0',
|
|
@@ -21080,17 +21080,17 @@ var checkmarkIndeterminateBase = {
|
|
|
21080
21080
|
var containerBase$3 = __assign({}, FontPackages$h.body_sans_02.base);
|
|
21081
21081
|
|
|
21082
21082
|
var containerWithLabelBase = __assign(__assign({}, FontPackages$h.body_sans_02.base), {
|
|
21083
|
-
marginRight: Spacing$
|
|
21084
|
-
padding: "0 " + Spacing$
|
|
21083
|
+
marginRight: Spacing$r.SizesDdsSpacingLocalX075,
|
|
21084
|
+
padding: "0 " + Spacing$r.SizesDdsSpacingLocalX025 + " 0 " + (FontPackages$h.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$r.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
21085
21085
|
});
|
|
21086
21086
|
|
|
21087
21087
|
var containerNoLabelBase = {
|
|
21088
|
-
padding: Spacing$
|
|
21088
|
+
padding: Spacing$r.SizesDdsSpacingLocalX075 + " " + Spacing$r.SizesDdsSpacingLocalX0125 + " " + Spacing$r.SizesDdsSpacingLocalX075 + " " + Spacing$r.SizesDdsSpacingLocalX15
|
|
21089
21089
|
};
|
|
21090
21090
|
var checkboxTokens = {
|
|
21091
21091
|
checkbox: {
|
|
21092
21092
|
base: checkboxBase,
|
|
21093
|
-
spaceLeft: Spacing$
|
|
21093
|
+
spaceLeft: Spacing$r.SizesDdsSpacingLocalX025,
|
|
21094
21094
|
hover: {
|
|
21095
21095
|
base: checkboxHoverBase
|
|
21096
21096
|
},
|
|
@@ -21133,7 +21133,7 @@ var checkboxTokens = {
|
|
|
21133
21133
|
},
|
|
21134
21134
|
checkmark: {
|
|
21135
21135
|
base: checkmarkBase,
|
|
21136
|
-
color: Colors$
|
|
21136
|
+
color: Colors$i.DdsColorNeutralsWhite,
|
|
21137
21137
|
indeterminate: {
|
|
21138
21138
|
base: checkmarkIndeterminateBase
|
|
21139
21139
|
}
|
|
@@ -21141,8 +21141,8 @@ var checkboxTokens = {
|
|
|
21141
21141
|
container: {
|
|
21142
21142
|
base: containerBase$3,
|
|
21143
21143
|
focusOutline: {
|
|
21144
|
-
color: Border$
|
|
21145
|
-
width: Border$
|
|
21144
|
+
color: Border$f.BordersDdsBorderFocusBaseStroke,
|
|
21145
|
+
width: Border$f.BordersDdsBorderFocusBaseStrokeWeight
|
|
21146
21146
|
},
|
|
21147
21147
|
withLabel: {
|
|
21148
21148
|
base: containerWithLabelBase
|
|
@@ -21156,7 +21156,7 @@ var checkboxTokens = {
|
|
|
21156
21156
|
var CustomCheckbox = styled.span.withConfig({
|
|
21157
21157
|
displayName: "Checkboxstyles__CustomCheckbox",
|
|
21158
21158
|
componentId: "sc-17q1ubf-0"
|
|
21159
|
-
})(templateObject_1$
|
|
21159
|
+
})(templateObject_1$L || (templateObject_1$L = __makeTemplateObject(["\n position: absolute;\n ", "\n left: ", ";\n box-sizing: border-box;\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"], ["\n position: absolute;\n ", "\n left: ", ";\n box-sizing: border-box;\n &:after {\n content: '';\n position: absolute;\n display: none;\n }\n"])), checkboxTokens.checkbox.base, checkboxTokens.checkbox.spaceLeft);
|
|
21160
21160
|
var Input$4 = styled.input.attrs(function (_a) {
|
|
21161
21161
|
var _b = _a.type,
|
|
21162
21162
|
type = _b === void 0 ? 'checkbox' : _b;
|
|
@@ -21166,16 +21166,16 @@ var Input$4 = styled.input.attrs(function (_a) {
|
|
|
21166
21166
|
}).withConfig({
|
|
21167
21167
|
displayName: "Checkboxstyles__Input",
|
|
21168
21168
|
componentId: "sc-17q1ubf-1"
|
|
21169
|
-
})(templateObject_2$
|
|
21170
|
-
var Container$
|
|
21169
|
+
})(templateObject_2$x || (templateObject_2$x = __makeTemplateObject(["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"], ["\n clip: rect(0 0 0 0);\n position: absolute;\n height: 0;\n width: 0;\n margin: 0;\n"])));
|
|
21170
|
+
var Container$b = styled.label.withConfig({
|
|
21171
21171
|
displayName: "Checkboxstyles__Container",
|
|
21172
21172
|
componentId: "sc-17q1ubf-2"
|
|
21173
|
-
})(templateObject_13$
|
|
21173
|
+
})(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n ", "\n ", "\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border: solid ", ";\n ", "\n }\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n user-select: none;\n width: fit-content;\n ", "\n ", "\n\n input ~ ", " {\n transition: box-shadow 0.2s, background-color 0.2s, border 0.2s;\n }\n\n input:checked ~ ", ":after {\n display: block;\n }\n\n input:checked ~ ", " {\n ", "\n }\n\n &:hover input:enabled ~ ", " {\n ", "\n }\n &:hover input:checked:enabled ~ ", " {\n ", "\n }\n &:focus-within {\n outline: ", " solid\n ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", ":after {\n border: solid ", ";\n ", "\n }\n"])), checkboxTokens.container.base, function (_a) {
|
|
21174
21174
|
var label = _a.label;
|
|
21175
|
-
return label ? Ae(templateObject_3$
|
|
21175
|
+
return label ? Ae(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.container.withLabel.base) : Ae(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.container.noLabel.base);
|
|
21176
21176
|
}, CustomCheckbox, CustomCheckbox, CustomCheckbox, checkboxTokens.checkbox.checked.base, CustomCheckbox, checkboxTokens.checkbox.hover.base, CustomCheckbox, checkboxTokens.checkbox.checked.hover.base, checkboxTokens.container.focusOutline.width, checkboxTokens.container.focusOutline.color, function (_a) {
|
|
21177
21177
|
var error = _a.error;
|
|
21178
|
-
return error && Ae(templateObject_5$
|
|
21178
|
+
return error && Ae(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.danger.base, CustomCheckbox, checkboxTokens.checkbox.danger.hover.base);
|
|
21179
21179
|
}, function (_a) {
|
|
21180
21180
|
var indeterminate = _a.indeterminate;
|
|
21181
21181
|
return indeterminate && Ae(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\n input:enabled ~ ", " {\n ", "\n }\n input ~ ", ":after {\n display: block;\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "], ["\n input:enabled ~ ", " {\n ", "\n }\n input ~ ", ":after {\n display: block;\n }\n &:hover input:enabled ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.indeterminate.base, CustomCheckbox, CustomCheckbox, checkboxTokens.checkbox.indeterminate.hover.base);
|
|
@@ -21189,16 +21189,16 @@ var Container$8 = styled.label.withConfig({
|
|
|
21189
21189
|
return readOnly && Ae(templateObject_10$6 || (templateObject_10$6 = __makeTemplateObject(["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "], ["\n cursor: default;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "])), CustomCheckbox, checkboxTokens.checkbox.readOnly.base, CustomCheckbox, checkboxTokens.checkbox.checked.readOnly.base, indeterminate && Ae(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.indeterminate.readOnly.base));
|
|
21190
21190
|
}, CustomCheckbox, checkboxTokens.checkmark.color, function (_a) {
|
|
21191
21191
|
var indeterminate = _a.indeterminate;
|
|
21192
|
-
return indeterminate ? Ae(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "], ["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "])), checkboxTokens.checkmark.indeterminate.base) : Ae(templateObject_12$
|
|
21192
|
+
return indeterminate ? Ae(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "], ["\n left: 25%;\n top: 50%;\n width: 50%;\n height: 1px;\n ", "\n "])), checkboxTokens.checkmark.indeterminate.base) : Ae(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.checkmark.base);
|
|
21193
21193
|
});
|
|
21194
|
-
var templateObject_1$
|
|
21194
|
+
var templateObject_1$L, templateObject_2$x, templateObject_3$n, templateObject_4$k, templateObject_5$d, templateObject_6$c, templateObject_7$9, templateObject_8$6, templateObject_9$6, templateObject_10$6, templateObject_11$4, templateObject_12$3, templateObject_13$2;
|
|
21195
21195
|
|
|
21196
21196
|
var CheckboxGroupContext = /*#__PURE__*/React__default['default'].createContext(null);
|
|
21197
21197
|
var useCheckboxGroup = function useCheckboxGroup() {
|
|
21198
21198
|
return React.useContext(CheckboxGroupContext);
|
|
21199
21199
|
};
|
|
21200
21200
|
|
|
21201
|
-
var nextUniqueId$
|
|
21201
|
+
var nextUniqueId$a = 0;
|
|
21202
21202
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
21203
21203
|
var id = _a.id,
|
|
21204
21204
|
name = _a.name,
|
|
@@ -21212,7 +21212,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21212
21212
|
style = _a.style,
|
|
21213
21213
|
rest = __rest(_a, ["id", "name", "label", "error", "disabled", "readOnly", "indeterminate", 'aria-describedby', "className", "style"]);
|
|
21214
21214
|
|
|
21215
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$
|
|
21215
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$a++)[0];
|
|
21216
21216
|
var checkboxGroup = useCheckboxGroup();
|
|
21217
21217
|
var containerProps = {
|
|
21218
21218
|
error: error || (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.error),
|
|
@@ -21238,7 +21238,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21238
21238
|
'aria-readonly': readOnly
|
|
21239
21239
|
}, rest);
|
|
21240
21240
|
|
|
21241
|
-
return jsxRuntime.jsxs(Container$
|
|
21241
|
+
return jsxRuntime.jsxs(Container$b, __assign({}, containerProps, {
|
|
21242
21242
|
children: [jsxRuntime.jsx(Input$4, __assign({}, inputProps, {
|
|
21243
21243
|
"data-indeterminate": indeterminate
|
|
21244
21244
|
}), void 0), jsxRuntime.jsx(CustomCheckbox, {}, void 0), label && jsxRuntime.jsx(Typography, __assign({
|
|
@@ -21249,28 +21249,28 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21249
21249
|
}), void 0);
|
|
21250
21250
|
});
|
|
21251
21251
|
|
|
21252
|
-
var Spacing$
|
|
21252
|
+
var Spacing$q = ddsBaseTokens.spacing;
|
|
21253
21253
|
var checkboxGroupTokens = {
|
|
21254
21254
|
label: {
|
|
21255
|
-
spaceLeft: Spacing$
|
|
21255
|
+
spaceLeft: Spacing$q.SizesDdsSpacingLocalX025
|
|
21256
21256
|
}
|
|
21257
21257
|
};
|
|
21258
21258
|
|
|
21259
|
-
var Container$
|
|
21259
|
+
var Container$a = styled.div.withConfig({
|
|
21260
21260
|
displayName: "CheckboxGroup__Container",
|
|
21261
21261
|
componentId: "sc-uixbzg-0"
|
|
21262
|
-
})(templateObject_1$
|
|
21262
|
+
})(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
21263
21263
|
var GroupContainer = styled.div.withConfig({
|
|
21264
21264
|
displayName: "CheckboxGroup__GroupContainer",
|
|
21265
21265
|
componentId: "sc-uixbzg-1"
|
|
21266
|
-
})(templateObject_2$
|
|
21266
|
+
})(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
21267
21267
|
var direction = _a.direction;
|
|
21268
21268
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
21269
21269
|
});
|
|
21270
21270
|
var Label$3 = styled(Typography).withConfig({
|
|
21271
21271
|
displayName: "CheckboxGroup__Label",
|
|
21272
21272
|
componentId: "sc-uixbzg-2"
|
|
21273
|
-
})(templateObject_3$
|
|
21273
|
+
})(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), checkboxGroupTokens.label.spaceLeft);
|
|
21274
21274
|
var nextUniqueGroupId = 0;
|
|
21275
21275
|
var CheckboxGroup = function CheckboxGroup(_a) {
|
|
21276
21276
|
var label = _a.label,
|
|
@@ -21299,7 +21299,7 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
21299
21299
|
uniqueGroupId: uniqueGroupId,
|
|
21300
21300
|
tipId: tipId
|
|
21301
21301
|
};
|
|
21302
|
-
return jsxRuntime.jsxs(Container$
|
|
21302
|
+
return jsxRuntime.jsxs(Container$a, __assign({}, containerProps, {
|
|
21303
21303
|
children: [jsxRuntime.jsxs(Label$3, __assign({
|
|
21304
21304
|
forwardedAs: "span",
|
|
21305
21305
|
typographyType: "supportingStyleLabel01",
|
|
@@ -21328,121 +21328,138 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
21328
21328
|
}, void 0)]
|
|
21329
21329
|
}), void 0);
|
|
21330
21330
|
};
|
|
21331
|
-
var templateObject_1$
|
|
21331
|
+
var templateObject_1$K, templateObject_2$w, templateObject_3$m;
|
|
21332
21332
|
|
|
21333
21333
|
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
21334
21334
|
return lineHeight * 0.01 * fontSize;
|
|
21335
21335
|
};
|
|
21336
21336
|
|
|
21337
|
-
var Colors$
|
|
21338
|
-
Border$
|
|
21339
|
-
Spacing$
|
|
21337
|
+
var Colors$h = ddsBaseTokens.colors,
|
|
21338
|
+
Border$e = ddsBaseTokens.border,
|
|
21339
|
+
Spacing$p = ddsBaseTokens.spacing,
|
|
21340
21340
|
FontPackages$g = ddsBaseTokens.fontPackages,
|
|
21341
|
-
BorderRadius$
|
|
21342
|
-
OuterShadow$
|
|
21343
|
-
|
|
21344
|
-
var
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
|
|
21341
|
+
BorderRadius$6 = ddsBaseTokens.borderRadius,
|
|
21342
|
+
OuterShadow$4 = ddsBaseTokens.outerShadow;
|
|
21343
|
+
var iconSizeTinyPx = calculateHeightWithLineHeight(FontPackages$g.supportingStyle_tiny_01.numbers.lineHeightNumber, FontPackages$g.supportingStyle_tiny_01.numbers.fontSizeNumber);
|
|
21344
|
+
var iconSizeSmallPx = calculateHeightWithLineHeight(FontPackages$g.body_sans_01.numbers.lineHeightNumber, FontPackages$g.body_sans_01.numbers.fontSizeNumber);
|
|
21345
|
+
var iconSizeMediumPx = calculateHeightWithLineHeight(FontPackages$g.body_sans_02.numbers.lineHeightNumber, FontPackages$g.body_sans_02.numbers.fontSizeNumber);
|
|
21346
|
+
var iconSizeLargePx = calculateHeightWithLineHeight(FontPackages$g.body_sans_04.numbers.lineHeightNumber, FontPackages$g.body_sans_04.numbers.fontSizeNumber);
|
|
21347
|
+
var svgOffset = Spacing$p.SizesDdsSpacingLocalX0125NumberPx;
|
|
21348
|
+
var justIconSmallBase = {
|
|
21349
|
+
fontSize: iconSizeSmallPx + svgOffset + "px",
|
|
21350
|
+
padding: Spacing$p.SizesDdsSpacingLocalX05
|
|
21351
|
+
};
|
|
21348
21352
|
var justIconWrapperSmallBase = {
|
|
21349
|
-
height:
|
|
21350
|
-
width:
|
|
21353
|
+
height: iconSizeSmallPx + "px",
|
|
21354
|
+
width: iconSizeSmallPx + "px"
|
|
21351
21355
|
};
|
|
21352
21356
|
|
|
21353
21357
|
var textSmallBase = __assign(__assign({}, FontPackages$g.body_sans_01.base), {
|
|
21354
|
-
padding: Spacing$
|
|
21355
|
-
});
|
|
21356
|
-
|
|
21357
|
-
var justIconMediumBase = __assign(__assign({}, FontPackages$g.heading_sans_03.base), {
|
|
21358
|
-
padding: Spacing$n.SizesDdsSpacingLocalX075
|
|
21358
|
+
padding: Spacing$p.SizesDdsSpacingLocalX05 + " " + (Spacing$p.SizesDdsSpacingLocalX1NumberPx - 2) + "px"
|
|
21359
21359
|
});
|
|
21360
21360
|
|
|
21361
|
+
var justIconMediumBase = {
|
|
21362
|
+
fontSize: iconSizeMediumPx + svgOffset + "px",
|
|
21363
|
+
padding: Spacing$p.SizesDdsSpacingLocalX075
|
|
21364
|
+
};
|
|
21361
21365
|
var justIconWrapperMediumBase = {
|
|
21362
|
-
height:
|
|
21363
|
-
width:
|
|
21366
|
+
height: iconSizeMediumPx + "px",
|
|
21367
|
+
width: iconSizeMediumPx + "px"
|
|
21364
21368
|
};
|
|
21365
21369
|
|
|
21366
21370
|
var textMediumBase = __assign(__assign({}, FontPackages$g.body_sans_02.base), {
|
|
21367
|
-
padding: Spacing$
|
|
21371
|
+
padding: Spacing$p.SizesDdsSpacingLocalX075 + " " + (Spacing$p.SizesDdsSpacingLocalX15NumberPx - 2) + "px"
|
|
21368
21372
|
});
|
|
21369
21373
|
|
|
21370
|
-
var justIconLargeBase =
|
|
21371
|
-
|
|
21374
|
+
var justIconLargeBase = {
|
|
21375
|
+
fontSize: iconSizeLargePx + svgOffset + "px",
|
|
21376
|
+
padding: Spacing$p.SizesDdsSpacingLocalX1
|
|
21377
|
+
};
|
|
21378
|
+
var justIconWrapperLargeBase = {
|
|
21379
|
+
height: iconSizeLargePx + "px",
|
|
21380
|
+
width: iconSizeLargePx + "px"
|
|
21381
|
+
};
|
|
21382
|
+
|
|
21383
|
+
var textLargeBase = __assign(__assign({}, FontPackages$g.body_sans_04.base), {
|
|
21384
|
+
padding: Spacing$p.SizesDdsSpacingLocalX1 + " " + (Spacing$p.SizesDdsSpacingLocalX2NumberPx - 2) + "px"
|
|
21372
21385
|
});
|
|
21373
21386
|
|
|
21374
|
-
var
|
|
21375
|
-
|
|
21376
|
-
|
|
21387
|
+
var justIconTinyBase = {
|
|
21388
|
+
fontSize: iconSizeTinyPx + svgOffset + "px",
|
|
21389
|
+
padding: Spacing$p.SizesDdsSpacingLocalX025
|
|
21390
|
+
};
|
|
21391
|
+
var justIconWrapperTinyBase = {
|
|
21392
|
+
height: iconSizeTinyPx + "px",
|
|
21393
|
+
width: iconSizeTinyPx + "px"
|
|
21377
21394
|
};
|
|
21378
21395
|
|
|
21379
|
-
var
|
|
21380
|
-
padding: Spacing$
|
|
21396
|
+
var textTinyBase = __assign(__assign({}, FontPackages$g.supportingStyle_tiny_01.base), {
|
|
21397
|
+
padding: Spacing$p.SizesDdsSpacingLocalX025 + " " + Spacing$p.SizesDdsSpacingLocalX075
|
|
21381
21398
|
});
|
|
21382
21399
|
|
|
21383
21400
|
var buttonBase$1 = {
|
|
21384
|
-
border: Border$
|
|
21401
|
+
border: Border$e.BordersDdsBorderStyleLightStrokeWeight + " solid"
|
|
21385
21402
|
};
|
|
21386
21403
|
var filledButtonColors = {
|
|
21387
21404
|
primary: {
|
|
21388
21405
|
base: {
|
|
21389
|
-
color: Colors$
|
|
21390
|
-
backgroundColor: Colors$
|
|
21391
|
-
borderColor: Colors$
|
|
21406
|
+
color: Colors$h.DdsColorNeutralsWhite,
|
|
21407
|
+
backgroundColor: Colors$h.DdsColorInteractiveBase,
|
|
21408
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
21392
21409
|
},
|
|
21393
21410
|
hover: {
|
|
21394
21411
|
base: {
|
|
21395
|
-
backgroundColor: Colors$
|
|
21396
|
-
borderColor: Colors$
|
|
21412
|
+
backgroundColor: Colors$h.DdsColorInteractiveDark,
|
|
21413
|
+
borderColor: Colors$h.DdsColorInteractiveDark
|
|
21397
21414
|
}
|
|
21398
21415
|
},
|
|
21399
21416
|
active: {
|
|
21400
21417
|
base: {
|
|
21401
|
-
backgroundColor: Colors$
|
|
21402
|
-
borderColor: Colors$
|
|
21418
|
+
backgroundColor: Colors$h.DdsColorInteractiveDarker,
|
|
21419
|
+
borderColor: Colors$h.DdsColorInteractiveDarker
|
|
21403
21420
|
}
|
|
21404
21421
|
}
|
|
21405
21422
|
},
|
|
21406
21423
|
secondary: {
|
|
21407
21424
|
base: {
|
|
21408
|
-
color: Colors$
|
|
21409
|
-
backgroundColor: Colors$
|
|
21410
|
-
borderColor: Colors$
|
|
21425
|
+
color: Colors$h.DdsColorNeutralsGray8,
|
|
21426
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray1,
|
|
21427
|
+
borderColor: Colors$h.DdsColorNeutralsGray5
|
|
21411
21428
|
},
|
|
21412
21429
|
hover: {
|
|
21413
21430
|
base: {
|
|
21414
|
-
backgroundColor: Colors$
|
|
21431
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray2
|
|
21415
21432
|
}
|
|
21416
21433
|
},
|
|
21417
21434
|
active: {
|
|
21418
21435
|
base: {
|
|
21419
|
-
backgroundColor: Colors$
|
|
21436
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray3
|
|
21420
21437
|
}
|
|
21421
21438
|
}
|
|
21422
21439
|
},
|
|
21423
21440
|
danger: {
|
|
21424
21441
|
base: {
|
|
21425
|
-
color: Colors$
|
|
21426
|
-
backgroundColor: Colors$
|
|
21427
|
-
borderColor: Colors$
|
|
21442
|
+
color: Colors$h.DdsColorNeutralsWhite,
|
|
21443
|
+
backgroundColor: Colors$h.DdsColorDangerBase,
|
|
21444
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
21428
21445
|
},
|
|
21429
21446
|
hover: {
|
|
21430
21447
|
base: {
|
|
21431
|
-
backgroundColor: Colors$
|
|
21432
|
-
borderColor: Colors$
|
|
21448
|
+
backgroundColor: Colors$h.DdsColorDangerDark,
|
|
21449
|
+
borderColor: Colors$h.DdsColorDangerDark
|
|
21433
21450
|
}
|
|
21434
21451
|
},
|
|
21435
21452
|
active: {
|
|
21436
21453
|
base: {
|
|
21437
|
-
backgroundColor: Colors$
|
|
21438
|
-
borderColor: Colors$
|
|
21454
|
+
backgroundColor: Colors$h.DdsColorDangerDarker,
|
|
21455
|
+
borderColor: Colors$h.DdsColorDangerDarker
|
|
21439
21456
|
}
|
|
21440
21457
|
}
|
|
21441
21458
|
}
|
|
21442
21459
|
};
|
|
21443
21460
|
var filledBase = {
|
|
21444
|
-
borderRadius: BorderRadius$
|
|
21445
|
-
boxShadow: OuterShadow$
|
|
21461
|
+
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
21462
|
+
boxShadow: OuterShadow$4.DdsShadow1Onlight
|
|
21446
21463
|
};
|
|
21447
21464
|
|
|
21448
21465
|
var filledPrimaryBase = __assign({}, filledButtonColors.primary.base);
|
|
@@ -21482,7 +21499,7 @@ var roundedDangerHoverBase = __assign({}, filledButtonColors.danger.hover.base);
|
|
|
21482
21499
|
var roundedDangerActiveBase = __assign({}, filledButtonColors.danger.active.base);
|
|
21483
21500
|
|
|
21484
21501
|
var borderlessBase = {
|
|
21485
|
-
borderRadius: BorderRadius$
|
|
21502
|
+
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
21486
21503
|
boxShadow: 'none',
|
|
21487
21504
|
backgroundColor: 'transparent',
|
|
21488
21505
|
borderColor: 'transparent',
|
|
@@ -21490,119 +21507,119 @@ var borderlessBase = {
|
|
|
21490
21507
|
textDecorationColor: 'transparent'
|
|
21491
21508
|
};
|
|
21492
21509
|
var borderlessPrimaryBase = {
|
|
21493
|
-
color: Colors$
|
|
21494
|
-
taxtDecorationColor: Colors$
|
|
21510
|
+
color: Colors$h.DdsColorInteractiveBase,
|
|
21511
|
+
taxtDecorationColor: Colors$h.DdsColorInteractiveBase
|
|
21495
21512
|
};
|
|
21496
21513
|
var borderlessPrimaryHoverBase = {
|
|
21497
|
-
color: Colors$
|
|
21498
|
-
textDecorationColor: Colors$
|
|
21514
|
+
color: Colors$h.DdsColorInteractiveDark,
|
|
21515
|
+
textDecorationColor: Colors$h.DdsColorInteractiveDark
|
|
21499
21516
|
};
|
|
21500
21517
|
var borderlessPrimaryActiveBase = {
|
|
21501
|
-
color: Colors$
|
|
21502
|
-
textDecorationColor: Colors$
|
|
21518
|
+
color: Colors$h.DdsColorInteractiveDarker,
|
|
21519
|
+
textDecorationColor: Colors$h.DdsColorInteractiveDarker
|
|
21503
21520
|
};
|
|
21504
21521
|
var borderlessPrimaryIconHoverBase = {
|
|
21505
|
-
borderColor: Colors$
|
|
21506
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21522
|
+
borderColor: Colors$h.DdsColorInteractiveDark,
|
|
21523
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDark
|
|
21507
21524
|
};
|
|
21508
21525
|
var borderlessPrimaryIconActiveBase = {
|
|
21509
|
-
borderColor: Colors$
|
|
21510
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21526
|
+
borderColor: Colors$h.DdsColorInteractiveDarker,
|
|
21527
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDarker
|
|
21511
21528
|
};
|
|
21512
21529
|
var borderlessSecondaryBase = {
|
|
21513
|
-
color: Colors$
|
|
21530
|
+
color: Colors$h.DdsColorNeutralsGray7
|
|
21514
21531
|
};
|
|
21515
21532
|
var borderlessSecondaryHoverBase = {
|
|
21516
|
-
color: Colors$
|
|
21517
|
-
textDecorationColor: Colors$
|
|
21533
|
+
color: Colors$h.DdsColorNeutralsGray8,
|
|
21534
|
+
textDecorationColor: Colors$h.DdsColorNeutralsGray8
|
|
21518
21535
|
};
|
|
21519
21536
|
var borderlessSecondaryActiveBase = {
|
|
21520
|
-
color: Colors$
|
|
21521
|
-
textDecorationColor: Colors$
|
|
21537
|
+
color: Colors$h.DdsColorNeutralsGray9,
|
|
21538
|
+
textDecorationColor: Colors$h.DdsColorNeutralsGray9
|
|
21522
21539
|
};
|
|
21523
21540
|
var borderlessSecondaryIconHoverBase = {
|
|
21524
|
-
borderColor: Colors$
|
|
21525
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21541
|
+
borderColor: Colors$h.DdsColorNeutralsGray8,
|
|
21542
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray8
|
|
21526
21543
|
};
|
|
21527
21544
|
var borderlessSecondaryIconActiveBase = {
|
|
21528
|
-
borderColor: Colors$
|
|
21529
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21545
|
+
borderColor: Colors$h.DdsColorNeutralsGray9,
|
|
21546
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray9
|
|
21530
21547
|
};
|
|
21531
21548
|
var borderlessDangerBase = {
|
|
21532
|
-
color: Colors$
|
|
21549
|
+
color: Colors$h.DdsColorDangerBase
|
|
21533
21550
|
};
|
|
21534
21551
|
var borderlessDangerHoverBase = {
|
|
21535
|
-
color: Colors$
|
|
21536
|
-
textDecorationColor: Colors$
|
|
21552
|
+
color: Colors$h.DdsColorDangerDarker,
|
|
21553
|
+
textDecorationColor: Colors$h.DdsColorDangerDarker
|
|
21537
21554
|
};
|
|
21538
21555
|
var borderlessDangerActiveBase = {
|
|
21539
|
-
color: Colors$
|
|
21540
|
-
textDecorationColor: Colors$
|
|
21556
|
+
color: Colors$h.DdsColorDangerDarkest,
|
|
21557
|
+
textDecorationColor: Colors$h.DdsColorDangerDarkest
|
|
21541
21558
|
};
|
|
21542
21559
|
var borderlessDangerIconHoverBase = {
|
|
21543
|
-
borderColor: Colors$
|
|
21544
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21560
|
+
borderColor: Colors$h.DdsColorDangerDark,
|
|
21561
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDark
|
|
21545
21562
|
};
|
|
21546
21563
|
var borderlessDangerIconActiveBase = {
|
|
21547
|
-
borderColor: Colors$
|
|
21548
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21564
|
+
borderColor: Colors$h.DdsColorDangerDarker,
|
|
21565
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDarker
|
|
21549
21566
|
};
|
|
21550
21567
|
var ghostBase = {
|
|
21551
|
-
borderRadius: BorderRadius$
|
|
21568
|
+
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
21552
21569
|
boxShadow: 'none',
|
|
21553
21570
|
backgroundColor: 'transparent'
|
|
21554
21571
|
};
|
|
21555
21572
|
var ghostPrimaryBase = {
|
|
21556
|
-
color: Colors$
|
|
21557
|
-
borderColor: Colors$
|
|
21573
|
+
color: Colors$h.DdsColorInteractiveBase,
|
|
21574
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
21558
21575
|
};
|
|
21559
21576
|
var ghostPrimaryHoverBase = {
|
|
21560
|
-
color: Colors$
|
|
21561
|
-
borderColor: Colors$
|
|
21562
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21577
|
+
color: Colors$h.DdsColorInteractiveDark,
|
|
21578
|
+
borderColor: Colors$h.DdsColorInteractiveDark,
|
|
21579
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDark
|
|
21563
21580
|
};
|
|
21564
21581
|
var ghostPrimaryActiveBase = {
|
|
21565
|
-
color: Colors$
|
|
21566
|
-
borderColor: Colors$
|
|
21567
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21582
|
+
color: Colors$h.DdsColorInteractiveDarker,
|
|
21583
|
+
borderColor: Colors$h.DdsColorInteractiveDarker,
|
|
21584
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDarker
|
|
21568
21585
|
};
|
|
21569
21586
|
var ghostSecondaryBase = {
|
|
21570
|
-
color: Colors$
|
|
21571
|
-
borderColor: Colors$
|
|
21587
|
+
color: Colors$h.DdsColorNeutralsGray7,
|
|
21588
|
+
borderColor: Colors$h.DdsColorNeutralsGray7
|
|
21572
21589
|
};
|
|
21573
21590
|
var ghostSecondaryHoverBase = {
|
|
21574
|
-
color: Colors$
|
|
21575
|
-
borderColor: Colors$
|
|
21576
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21591
|
+
color: Colors$h.DdsColorNeutralsGray8,
|
|
21592
|
+
borderColor: Colors$h.DdsColorNeutralsGray8,
|
|
21593
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray8
|
|
21577
21594
|
};
|
|
21578
21595
|
var ghostSecondaryActiveBase = {
|
|
21579
|
-
color: Colors$
|
|
21580
|
-
borderColor: Colors$
|
|
21581
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21596
|
+
color: Colors$h.DdsColorNeutralsGray9,
|
|
21597
|
+
borderColor: Colors$h.DdsColorNeutralsGray9,
|
|
21598
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray9
|
|
21582
21599
|
};
|
|
21583
21600
|
var ghostDangerBase = {
|
|
21584
|
-
color: Colors$
|
|
21585
|
-
borderColor: Colors$
|
|
21601
|
+
color: Colors$h.DdsColorDangerBase,
|
|
21602
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
21586
21603
|
};
|
|
21587
21604
|
var ghostDangerHoverBase = {
|
|
21588
|
-
color: Colors$
|
|
21589
|
-
borderColor: Colors$
|
|
21590
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21605
|
+
color: Colors$h.DdsColorDangerDark,
|
|
21606
|
+
borderColor: Colors$h.DdsColorDangerDark,
|
|
21607
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDark
|
|
21591
21608
|
};
|
|
21592
21609
|
var ghostDangerActiveBase = {
|
|
21593
|
-
color: Colors$
|
|
21594
|
-
borderColor: Colors$
|
|
21595
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21610
|
+
color: Colors$h.DdsColorDangerDarkest,
|
|
21611
|
+
borderColor: Colors$h.DdsColorDangerDarkest,
|
|
21612
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDarkest
|
|
21596
21613
|
};
|
|
21597
21614
|
var roundedBase = {
|
|
21598
21615
|
borderRadius: '100px',
|
|
21599
|
-
boxShadow: OuterShadow$
|
|
21616
|
+
boxShadow: OuterShadow$4.DdsShadow1Onlight
|
|
21600
21617
|
};
|
|
21601
21618
|
var buttonTokens = {
|
|
21602
21619
|
base: buttonBase$1,
|
|
21603
21620
|
focusOutline: {
|
|
21604
|
-
color: Border$
|
|
21605
|
-
width: Border$
|
|
21621
|
+
color: Border$e.BordersDdsBorderFocusBaseStroke,
|
|
21622
|
+
width: Border$e.BordersDdsBorderStyleLightStrokeWeight
|
|
21606
21623
|
},
|
|
21607
21624
|
sizes: {
|
|
21608
21625
|
small: {
|
|
@@ -21615,7 +21632,7 @@ var buttonTokens = {
|
|
|
21615
21632
|
text: {
|
|
21616
21633
|
base: textSmallBase
|
|
21617
21634
|
},
|
|
21618
|
-
iconWithTextMargin: Spacing$
|
|
21635
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX05
|
|
21619
21636
|
},
|
|
21620
21637
|
medium: {
|
|
21621
21638
|
justIcon: {
|
|
@@ -21627,7 +21644,7 @@ var buttonTokens = {
|
|
|
21627
21644
|
text: {
|
|
21628
21645
|
base: textMediumBase
|
|
21629
21646
|
},
|
|
21630
|
-
iconWithTextMargin: Spacing$
|
|
21647
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX075
|
|
21631
21648
|
},
|
|
21632
21649
|
large: {
|
|
21633
21650
|
justIcon: {
|
|
@@ -21639,7 +21656,19 @@ var buttonTokens = {
|
|
|
21639
21656
|
text: {
|
|
21640
21657
|
base: textLargeBase
|
|
21641
21658
|
},
|
|
21642
|
-
iconWithTextMargin: Spacing$
|
|
21659
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX1
|
|
21660
|
+
},
|
|
21661
|
+
tiny: {
|
|
21662
|
+
justIcon: {
|
|
21663
|
+
base: justIconTinyBase
|
|
21664
|
+
},
|
|
21665
|
+
justIconWrapper: {
|
|
21666
|
+
base: justIconWrapperTinyBase
|
|
21667
|
+
},
|
|
21668
|
+
text: {
|
|
21669
|
+
base: textTinyBase
|
|
21670
|
+
},
|
|
21671
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX05
|
|
21643
21672
|
}
|
|
21644
21673
|
},
|
|
21645
21674
|
appearance: {
|
|
@@ -21790,9 +21819,9 @@ var buttonTokens = {
|
|
|
21790
21819
|
}
|
|
21791
21820
|
};
|
|
21792
21821
|
|
|
21793
|
-
var Colors$
|
|
21822
|
+
var Colors$g = ddsBaseTokens.colors;
|
|
21794
21823
|
var ciclreBase = {
|
|
21795
|
-
stroke: Colors$
|
|
21824
|
+
stroke: Colors$g.DdsColorInteractiveBase
|
|
21796
21825
|
};
|
|
21797
21826
|
var spinnerTokens = {
|
|
21798
21827
|
circle: {
|
|
@@ -21803,7 +21832,7 @@ var spinnerTokens = {
|
|
|
21803
21832
|
var StyledSpinner = styled.svg.withConfig({
|
|
21804
21833
|
displayName: "Spinner__StyledSpinner",
|
|
21805
21834
|
componentId: "sc-13hsttm-0"
|
|
21806
|
-
})(templateObject_1$
|
|
21835
|
+
})(templateObject_1$J || (templateObject_1$J = __makeTemplateObject(["\n display: block;\n animation: rotate 2s linear infinite;\n animation-delay: ", "ms;\n width: ", ";\n height: ", ";\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"], ["\n display: block;\n animation: rotate 2s linear infinite;\n animation-delay: ", "ms;\n width: ", ";\n height: ", ";\n\n @keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n }\n"])), function (_a) {
|
|
21807
21836
|
var outerAnimationDelay = _a.outerAnimationDelay;
|
|
21808
21837
|
return outerAnimationDelay;
|
|
21809
21838
|
}, function (_a) {
|
|
@@ -21816,14 +21845,14 @@ var StyledSpinner = styled.svg.withConfig({
|
|
|
21816
21845
|
var Circle = styled.circle.withConfig({
|
|
21817
21846
|
displayName: "Spinner__Circle",
|
|
21818
21847
|
componentId: "sc-13hsttm-1"
|
|
21819
|
-
})(templateObject_2$
|
|
21848
|
+
})(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n ", "\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n animation-delay: ", "ms;\n"], ["\n ", "\n stroke: ", ";\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n animation-delay: ", "ms;\n"])), spinnerTokens.circle.base, function (_a) {
|
|
21820
21849
|
var color = _a.color;
|
|
21821
21850
|
return color && getTextColor(color);
|
|
21822
21851
|
}, function (_a) {
|
|
21823
21852
|
var innerAnimationDelay = _a.innerAnimationDelay;
|
|
21824
21853
|
return innerAnimationDelay;
|
|
21825
21854
|
});
|
|
21826
|
-
var nextUniqueId$
|
|
21855
|
+
var nextUniqueId$9 = 0;
|
|
21827
21856
|
function Spinner(_a) {
|
|
21828
21857
|
var _b = _a.size,
|
|
21829
21858
|
size = _b === void 0 ? ddsBaseTokens.iconSizes.DdsIconsizeMedium : _b,
|
|
@@ -21834,7 +21863,7 @@ function Spinner(_a) {
|
|
|
21834
21863
|
var mountTime = React__default['default'].useRef(Date.now());
|
|
21835
21864
|
var outerAnimationDelay = -(mountTime.current % 2000);
|
|
21836
21865
|
var innerAnimationDelay = -(mountTime.current % 1500);
|
|
21837
|
-
var uniqueId = React.useState("spinnerTitle-" + nextUniqueId$
|
|
21866
|
+
var uniqueId = React.useState("spinnerTitle-" + nextUniqueId$9++)[0];
|
|
21838
21867
|
|
|
21839
21868
|
var spinnerProps = __assign({
|
|
21840
21869
|
outerAnimationDelay: outerAnimationDelay,
|
|
@@ -21863,55 +21892,49 @@ function Spinner(_a) {
|
|
|
21863
21892
|
}), void 0)]
|
|
21864
21893
|
}), void 0);
|
|
21865
21894
|
}
|
|
21866
|
-
var templateObject_1$
|
|
21895
|
+
var templateObject_1$J, templateObject_2$v;
|
|
21867
21896
|
|
|
21868
21897
|
var ButtonWrapper$1 = styled.button.withConfig({
|
|
21869
21898
|
displayName: "Buttonstyles__ButtonWrapper",
|
|
21870
21899
|
componentId: "sc-14dutqk-0"
|
|
21871
|
-
})(
|
|
21900
|
+
})(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n ", "\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: fit-content;\n width: ", ";\n cursor: pointer;\n box-shadow: none;\n text-decoration: none;\n transition: background-color 0.2s, text-decoration-color 0.2s, box-shadow 0.2s,\n border-color 0.2s, color 0.2s;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n &:focus-visible, &.focus-visible {\n outline: ", " solid ", ";\n outline-offset: 2px;\n }\n\n *::selection {\n ", "\n }\n"], ["\n ", "\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: fit-content;\n width: ", ";\n cursor: pointer;\n box-shadow: none;\n text-decoration: none;\n transition: background-color 0.2s, text-decoration-color 0.2s, box-shadow 0.2s,\n border-color 0.2s, color 0.2s;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n &:focus-visible, &.focus-visible {\n outline: ", " solid ", ";\n outline-offset: 2px;\n }\n\n *::selection {\n ", "\n }\n"])), buttonTokens.base, function (_a) {
|
|
21872
21901
|
var fullWidth = _a.fullWidth;
|
|
21873
21902
|
return fullWidth ? '100%' : 'fit-content';
|
|
21874
21903
|
}, function (_a) {
|
|
21875
21904
|
var appearance = _a.appearance,
|
|
21876
21905
|
purpose = _a.purpose;
|
|
21877
|
-
return Ae(templateObject_1$
|
|
21906
|
+
return Ae(templateObject_1$I || (templateObject_1$I = __makeTemplateObject(["\n ", "\n ", "\n\n &:hover {\n ", "\n }\n\n &:active {\n ", "\n }\n "], ["\n ", "\n ", "\n\n &:hover {\n ", "\n }\n\n &:active {\n ", "\n }\n "])), buttonTokens.appearance[appearance].base, buttonTokens.appearance[appearance][purpose].base, buttonTokens.appearance[appearance][purpose].hover.base, buttonTokens.appearance[appearance][purpose].active.base);
|
|
21878
21907
|
}, function (_a) {
|
|
21879
21908
|
var hasIcon = _a.hasIcon,
|
|
21880
21909
|
hasLabel = _a.hasLabel,
|
|
21881
21910
|
appearance = _a.appearance,
|
|
21882
21911
|
purpose = _a.purpose;
|
|
21883
|
-
return hasIcon && !hasLabel && appearance === 'borderless' && Ae(templateObject_2$
|
|
21912
|
+
return hasIcon && !hasLabel && appearance === 'borderless' && Ae(templateObject_2$u || (templateObject_2$u = __makeTemplateObject(["\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n "])), buttonTokens.appearance[appearance][purpose].justIcon.hover.base, buttonTokens.appearance[appearance][purpose].justIcon.active.base);
|
|
21884
21913
|
}, function (_a) {
|
|
21885
21914
|
var size = _a.size,
|
|
21886
21915
|
hasLabel = _a.hasLabel;
|
|
21887
|
-
return hasLabel ? Ae(templateObject_3$
|
|
21916
|
+
return hasLabel ? Ae(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].text.base) : Ae(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIcon.base);
|
|
21888
21917
|
}, function (_a) {
|
|
21889
21918
|
var fullWidth = _a.fullWidth,
|
|
21890
21919
|
hasIcon = _a.hasIcon,
|
|
21891
21920
|
hasLabel = _a.hasLabel,
|
|
21892
|
-
isLoading = _a.isLoading
|
|
21893
|
-
|
|
21921
|
+
isLoading = _a.isLoading,
|
|
21922
|
+
iconPosition = _a.iconPosition;
|
|
21923
|
+
return fullWidth && (!hasIcon || !hasLabel || isLoading ? Ae(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "]))) : hasIcon && hasLabel && iconPosition === 'left' ? Ae(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n justify-content: left;\n "], ["\n justify-content: left;\n "]))) : Ae(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n justify-content: space-between;\n "], ["\n justify-content: space-between;\n "]))));
|
|
21894
21924
|
}, buttonTokens.focusOutline.width, buttonTokens.focusOutline.color, typographyTokens.selection.base);
|
|
21895
|
-
var
|
|
21896
|
-
displayName: "
|
|
21925
|
+
var StyledIconWrapperSpan = styled.span.withConfig({
|
|
21926
|
+
displayName: "Buttonstyles__StyledIconWrapperSpan",
|
|
21897
21927
|
componentId: "sc-14dutqk-1"
|
|
21898
|
-
})(
|
|
21928
|
+
})(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"])), function (_a) {
|
|
21899
21929
|
var size = _a.size,
|
|
21900
21930
|
iconPosition = _a.iconPosition;
|
|
21901
|
-
return iconPosition === 'left' ? Ae(
|
|
21902
|
-
});
|
|
21903
|
-
var JustIconWrapper = styled.span.withConfig({
|
|
21904
|
-
displayName: "Buttonstyles__JustIconWrapper",
|
|
21905
|
-
componentId: "sc-14dutqk-2"
|
|
21906
|
-
})(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"])), function (_a) {
|
|
21907
|
-
var size = _a.size;
|
|
21908
|
-
return Ae(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
21931
|
+
return iconPosition === 'left' ? Ae(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject(["\n margin-inline-end: ", ";\n "], ["\n margin-inline-end: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : iconPosition === 'right' ? Ae(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["\n margin-inline-start: ", ";\n "], ["\n margin-inline-start: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : Ae(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
21909
21932
|
});
|
|
21910
21933
|
var Label$2 = styled.span.withConfig({
|
|
21911
21934
|
displayName: "Buttonstyles__Label",
|
|
21912
|
-
componentId: "sc-14dutqk-
|
|
21913
|
-
})(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
21914
|
-
var templateObject_1$
|
|
21935
|
+
componentId: "sc-14dutqk-2"
|
|
21936
|
+
})(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject([""], [""])));
|
|
21937
|
+
var templateObject_1$I, templateObject_2$u, templateObject_3$l, templateObject_4$j, templateObject_5$c, templateObject_6$b, templateObject_7$8, templateObject_8$5, templateObject_9$5, templateObject_10$5, templateObject_11$3, templateObject_12$2, templateObject_13$1;
|
|
21915
21938
|
|
|
21916
21939
|
var Button = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
21917
21940
|
var label = _a.label,
|
|
@@ -21957,31 +21980,28 @@ var Button = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21957
21980
|
style: style
|
|
21958
21981
|
}, rest);
|
|
21959
21982
|
|
|
21960
|
-
var iconElement = Icon && iconPosition && size && jsxRuntime.jsx(IconWithTextWrapper, {
|
|
21961
|
-
Icon: Icon,
|
|
21962
|
-
iconPosition: iconPosition,
|
|
21963
|
-
iconSize: "inline",
|
|
21964
|
-
size: size
|
|
21965
|
-
}, void 0);
|
|
21966
|
-
|
|
21967
21983
|
var hasLabel = !!label;
|
|
21968
21984
|
var isIconButton = !hasLabel && !!Icon;
|
|
21985
|
+
|
|
21986
|
+
var iconElement = Icon && jsxRuntime.jsx(StyledIconWrapperSpan, __assign({
|
|
21987
|
+
iconPosition: isIconButton ? undefined : iconPosition,
|
|
21988
|
+
size: size
|
|
21989
|
+
}, {
|
|
21990
|
+
children: jsxRuntime.jsx(IconWrapper$1, {
|
|
21991
|
+
Icon: Icon,
|
|
21992
|
+
iconSize: "inline"
|
|
21993
|
+
}, void 0)
|
|
21994
|
+
}), void 0);
|
|
21995
|
+
|
|
21969
21996
|
return jsxRuntime.jsxs(ButtonWrapper$1, __assign({}, wrapperProps, {
|
|
21970
|
-
children: [loading && jsxRuntime.jsx(
|
|
21997
|
+
children: [loading && jsxRuntime.jsx(StyledIconWrapperSpan, __assign({
|
|
21971
21998
|
size: size
|
|
21972
21999
|
}, {
|
|
21973
22000
|
children: jsxRuntime.jsx(Spinner, {
|
|
21974
22001
|
color: buttonTokens.appearance[appearance][purpose].base.color,
|
|
21975
22002
|
size: buttonTokens.sizes[size].justIcon.base.fontSize
|
|
21976
22003
|
}, void 0)
|
|
21977
|
-
}), void 0), isIconButton && !loading && jsxRuntime.
|
|
21978
|
-
size: size
|
|
21979
|
-
}, {
|
|
21980
|
-
children: jsxRuntime.jsx(IconWrapper$1, {
|
|
21981
|
-
Icon: Icon,
|
|
21982
|
-
iconSize: "inline"
|
|
21983
|
-
}, void 0)
|
|
21984
|
-
}), void 0), hasLabel && !loading && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
22004
|
+
}), void 0), isIconButton && !loading && iconElement, hasLabel && !loading && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21985
22005
|
children: [iconPosition === 'left' && iconElement, jsxRuntime.jsx(Label$2, {
|
|
21986
22006
|
children: label
|
|
21987
22007
|
}, void 0), iconPosition === 'right' && iconElement]
|
|
@@ -21989,21 +22009,21 @@ var Button = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21989
22009
|
}), void 0);
|
|
21990
22010
|
});
|
|
21991
22011
|
|
|
21992
|
-
var Colors$
|
|
21993
|
-
Spacing$
|
|
22012
|
+
var Colors$f = ddsBaseTokens.colors,
|
|
22013
|
+
Spacing$o = ddsBaseTokens.spacing;
|
|
21994
22014
|
var TextInput$3 = ddsReferenceTokens.textInput;
|
|
21995
22015
|
var inputMultilineBase = {
|
|
21996
|
-
paddingBottom: Spacing$
|
|
22016
|
+
paddingBottom: Spacing$o.SizesDdsSpacingLocalX05
|
|
21997
22017
|
};
|
|
21998
22018
|
var inputMultilineWithLabelBase = {
|
|
21999
|
-
paddingTop: Spacing$
|
|
22019
|
+
paddingTop: Spacing$o.SizesDdsSpacingLocalX2
|
|
22000
22020
|
};
|
|
22001
22021
|
var inputMultilineNoLabelBase = {
|
|
22002
|
-
paddingTop: Spacing$
|
|
22022
|
+
paddingTop: Spacing$o.SizesDdsSpacingLocalX075
|
|
22003
22023
|
};
|
|
22004
22024
|
var inputLabelMultilineBase = {
|
|
22005
|
-
backgroundColor: Colors$
|
|
22006
|
-
padding: Spacing$
|
|
22025
|
+
backgroundColor: Colors$f.DdsColorNeutralsWhite,
|
|
22026
|
+
padding: Spacing$o.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$o.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$o.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
22007
22027
|
};
|
|
22008
22028
|
var defaultWidth$2 = '320px';
|
|
22009
22029
|
var textInputTokens = {
|
|
@@ -22038,9 +22058,9 @@ var textInputTokens = {
|
|
|
22038
22058
|
}
|
|
22039
22059
|
};
|
|
22040
22060
|
|
|
22041
|
-
var Spacing$
|
|
22061
|
+
var Spacing$n = ddsBaseTokens.spacing;
|
|
22042
22062
|
var charCounterBase = {
|
|
22043
|
-
padding: Spacing$
|
|
22063
|
+
padding: Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX05
|
|
22044
22064
|
};
|
|
22045
22065
|
var charCounterTokens = {
|
|
22046
22066
|
base: charCounterBase
|
|
@@ -22049,8 +22069,8 @@ var charCounterTokens = {
|
|
|
22049
22069
|
var Wrapper$6 = styled(Typography).withConfig({
|
|
22050
22070
|
displayName: "CharCounter__Wrapper",
|
|
22051
22071
|
componentId: "sc-qty1z2-0"
|
|
22052
|
-
})(templateObject_1$
|
|
22053
|
-
var nextUniqueId$
|
|
22072
|
+
})(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
22073
|
+
var nextUniqueId$8 = 0;
|
|
22054
22074
|
|
|
22055
22075
|
function CharCounter(_a) {
|
|
22056
22076
|
var current = _a.current,
|
|
@@ -22058,7 +22078,7 @@ function CharCounter(_a) {
|
|
|
22058
22078
|
id = _a.id,
|
|
22059
22079
|
rest = __rest(_a, ["current", "max", "id"]);
|
|
22060
22080
|
|
|
22061
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "characterCounter-" + nextUniqueId$
|
|
22081
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "characterCounter-" + nextUniqueId$8++)[0];
|
|
22062
22082
|
return jsxRuntime.jsxs(Wrapper$6, __assign({
|
|
22063
22083
|
forwardedAs: "div",
|
|
22064
22084
|
typographyType: "supportingStyleHelperText01",
|
|
@@ -22068,47 +22088,47 @@ function CharCounter(_a) {
|
|
|
22068
22088
|
children: [current, "/", max]
|
|
22069
22089
|
}), void 0);
|
|
22070
22090
|
}
|
|
22071
|
-
var templateObject_1$
|
|
22091
|
+
var templateObject_1$H;
|
|
22072
22092
|
|
|
22073
|
-
var Colors$
|
|
22074
|
-
Spacing$
|
|
22093
|
+
var Colors$e = ddsBaseTokens.colors,
|
|
22094
|
+
Spacing$m = ddsBaseTokens.spacing,
|
|
22075
22095
|
FontPackages$f = ddsBaseTokens.fontPackages,
|
|
22076
|
-
Border$
|
|
22096
|
+
Border$d = ddsBaseTokens.border;
|
|
22077
22097
|
var TextInput$2 = ddsReferenceTokens.textInput;
|
|
22078
22098
|
var inputBase$2 = {
|
|
22079
|
-
border: " " + Border$
|
|
22080
|
-
backgroundColor: Colors$
|
|
22099
|
+
border: " " + Border$d.BordersDdsBorderStyleLightStrokeWeight + " solid " + Colors$e.DdsColorNeutralsGray5,
|
|
22100
|
+
backgroundColor: Colors$e.DdsColorNeutralsWhite
|
|
22081
22101
|
};
|
|
22082
22102
|
var inputWithLabelBase = {
|
|
22083
|
-
padding: Spacing$
|
|
22103
|
+
padding: Spacing$m.SizesDdsSpacingLocalX075NumberPx + FontPackages$f.supportingStyle_label_01.numbers.lineHeightNumber * 0.01 * FontPackages$f.supportingStyle_label_01.numbers.fontSizeNumber + "px " + Spacing$m.SizesDdsSpacingLocalX1 + " " + Spacing$m.SizesDdsSpacingLocalX075 + " " + Spacing$m.SizesDdsSpacingLocalX1
|
|
22084
22104
|
};
|
|
22085
22105
|
var inputNoLabelBase$1 = {
|
|
22086
|
-
padding: Spacing$
|
|
22106
|
+
padding: Spacing$m.SizesDdsSpacingLocalX075 + " " + Spacing$m.SizesDdsSpacingLocalX1 + " " + Spacing$m.SizesDdsSpacingLocalX075 + " " + Spacing$m.SizesDdsSpacingLocalX1
|
|
22087
22107
|
};
|
|
22088
22108
|
var inputDisabledBase = {
|
|
22089
|
-
color: Colors$
|
|
22090
|
-
backgroundColor: Colors$
|
|
22109
|
+
color: Colors$e.DdsColorNeutralsGray7,
|
|
22110
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray1
|
|
22091
22111
|
};
|
|
22092
22112
|
var inputErrorBase = {
|
|
22093
|
-
borderColor: Colors$
|
|
22094
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
22113
|
+
borderColor: Colors$e.DdsColorDangerBase,
|
|
22114
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerBase
|
|
22095
22115
|
};
|
|
22096
22116
|
var inputErrorHoverBase = {
|
|
22097
|
-
backgroundColor: Colors$
|
|
22098
|
-
borderColor: Colors$
|
|
22099
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
22117
|
+
backgroundColor: Colors$e.DdsColorDangerLightest,
|
|
22118
|
+
borderColor: Colors$e.DdsColorDangerBase,
|
|
22119
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerBase
|
|
22100
22120
|
};
|
|
22101
22121
|
var inputErrorFocusBase = {
|
|
22102
|
-
borderColor: Colors$
|
|
22103
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
22122
|
+
borderColor: Colors$e.DdsColorDangerDarker,
|
|
22123
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarker
|
|
22104
22124
|
};
|
|
22105
22125
|
var inputReadOnlyBase = {
|
|
22106
22126
|
border: 'none',
|
|
22107
22127
|
backgroundColor: 'transparent',
|
|
22108
|
-
paddingLeft: Spacing$
|
|
22128
|
+
paddingLeft: Spacing$m.SizesDdsSpacingLocalX1
|
|
22109
22129
|
};
|
|
22110
22130
|
var inputLabelBase = {
|
|
22111
|
-
padding: Spacing$
|
|
22131
|
+
padding: Spacing$m.SizesDdsSpacingLocalX075 + " " + Spacing$m.SizesDdsSpacingLocalX1
|
|
22112
22132
|
};
|
|
22113
22133
|
var inputLabelHoverBase = {
|
|
22114
22134
|
color: TextInput$2.label.hover.textColor
|
|
@@ -22117,7 +22137,7 @@ var inputLabelFocusBase = {
|
|
|
22117
22137
|
color: TextInput$2.label.focus.textColor
|
|
22118
22138
|
};
|
|
22119
22139
|
var inputLabelDisabledBase = {
|
|
22120
|
-
color: Colors$
|
|
22140
|
+
color: Colors$e.DdsColorNeutralsGray6
|
|
22121
22141
|
};
|
|
22122
22142
|
var inputTokens = {
|
|
22123
22143
|
general: TextInput$2,
|
|
@@ -22159,38 +22179,38 @@ var inputTokens = {
|
|
|
22159
22179
|
};
|
|
22160
22180
|
|
|
22161
22181
|
var TextInput$1 = ddsReferenceTokens.textInput;
|
|
22162
|
-
var Border$
|
|
22182
|
+
var Border$c = ddsBaseTokens.border;
|
|
22163
22183
|
|
|
22164
22184
|
var stylingBase = __assign({
|
|
22165
22185
|
color: TextInput$1.input.textColor,
|
|
22166
22186
|
borderRadius: TextInput$1.input.borderRadius,
|
|
22167
|
-
border: Border$
|
|
22187
|
+
border: Border$c.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
22168
22188
|
borderColor: TextInput$1.input.borderColor
|
|
22169
22189
|
}, TextInput$1.input.font);
|
|
22170
22190
|
|
|
22171
|
-
var focusBase$
|
|
22172
|
-
border: Border$
|
|
22173
|
-
borderColor: Border$
|
|
22174
|
-
boxShadow: " 0 0 0 1px " + Border$
|
|
22191
|
+
var focusBase$2 = {
|
|
22192
|
+
border: Border$c.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
22193
|
+
borderColor: Border$c.BordersDdsBorderFocusInputfieldStroke,
|
|
22194
|
+
boxShadow: " 0 0 0 1px " + Border$c.BordersDdsBorderFocusInputfieldStroke,
|
|
22175
22195
|
outline: 'none'
|
|
22176
22196
|
};
|
|
22177
22197
|
var hoverBase$1 = {
|
|
22178
|
-
border: Border$
|
|
22179
|
-
borderColor: Border$
|
|
22198
|
+
border: Border$c.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
22199
|
+
borderColor: Border$c.BordersDdsBorderFocusInputfieldStroke,
|
|
22180
22200
|
boxShadow: " 0 0 0 1px " + TextInput$1.input.focus.borderColor,
|
|
22181
22201
|
backgroundColor: TextInput$1.input.hover.backgroundColor
|
|
22182
22202
|
};
|
|
22183
22203
|
var inputFieldStylingBase = function inputFieldStylingBase() {
|
|
22184
|
-
return Ae(templateObject_1$
|
|
22204
|
+
return Ae(templateObject_1$G || (templateObject_1$G = __makeTemplateObject(["\n width: 100%;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n transition: box-shadow 0.2s, border-color 0.2s, background-color 0.2s;\n &[type='text'],\n &[type='password'],\n &[type='number'],\n &[type='tel'],\n &[type='date'],\n &[type='url'],\n &[type='email'],\n &[type='search'],\n &[type='datetime-local'] {\n -webkit-appearance: none;\n }\n &::selection {\n ", "\n }\n ", "\n\n &:focus:enabled:read-write, &:focus-visible:enabled:read-write, &:active:enabled:read-write {\n ", "\n }\n &:focus {\n outline: none;\n }\n\n &:hover:enabled:read-write {\n ", "\n }\n "], ["\n width: 100%;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n transition: box-shadow 0.2s, border-color 0.2s, background-color 0.2s;\n &[type='text'],\n &[type='password'],\n &[type='number'],\n &[type='tel'],\n &[type='date'],\n &[type='url'],\n &[type='email'],\n &[type='search'],\n &[type='datetime-local'] {\n -webkit-appearance: none;\n }\n &::selection {\n ", "\n }\n ", "\n\n &:focus:enabled:read-write, &:focus-visible:enabled:read-write, &:active:enabled:read-write {\n ", "\n }\n &:focus {\n outline: none;\n }\n\n &:hover:enabled:read-write {\n ", "\n }\n "])), typographyTokens.selection.base, stylingBase, focusBase$2, hoverBase$1);
|
|
22185
22205
|
};
|
|
22186
|
-
var templateObject_1$
|
|
22206
|
+
var templateObject_1$G;
|
|
22187
22207
|
|
|
22188
22208
|
var inputStyling = function inputStyling(_a) {
|
|
22189
22209
|
var readOnly = _a.readOnly,
|
|
22190
22210
|
label = _a.label,
|
|
22191
22211
|
disabled = _a.disabled,
|
|
22192
22212
|
hasErrorMessage = _a.hasErrorMessage;
|
|
22193
|
-
return Ae(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "])), inputFieldStylingBase, inputTokens.base, label ? Ae(templateObject_1$
|
|
22213
|
+
return Ae(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n box-sizing: border-box;\n box-shadow: none;\n -webkit-appearance: textfield;\n ", ";\n\n &:hover:enabled:read-write ~ label {\n ", "\n }\n &:focus:enabled:read-write ~ label {\n ", "\n }\n\n ", "\n ", "\n ", "\n "])), inputFieldStylingBase, inputTokens.base, label ? Ae(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.withLabel.base) : Ae(templateObject_2$t || (templateObject_2$t = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.noLabel.base), inputTokens.label.hover.base, inputTokens.label.focus.base, disabled && Ae(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n cursor: not-allowed;\n ", "\n "], ["\n cursor: not-allowed;\n ", "\n "])), inputTokens.disabled.base), hasErrorMessage && Ae(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n ", "\n &:hover:enabled:read-write {\n ", "\n }\n &:focus:enabled:read-write,\n &:active:enabled:read-write {\n ", "\n }\n "], ["\n ", "\n &:hover:enabled:read-write {\n ", "\n }\n &:focus:enabled:read-write,\n &:active:enabled:read-write {\n ", "\n }\n "])), inputTokens.error.base, inputTokens.error.hover.base, inputTokens.error.focus.base), readOnly && Ae(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n cursor: default;\n ", "\n "], ["\n cursor: default;\n ", "\n "])), inputTokens.readOnly.base));
|
|
22194
22214
|
};
|
|
22195
22215
|
var Input$3 = styled.input.withConfig({
|
|
22196
22216
|
displayName: "Inputstyles__Input",
|
|
@@ -22225,15 +22245,15 @@ var OuterInputContainer = styled.div.withConfig({
|
|
|
22225
22245
|
var width = _a.width;
|
|
22226
22246
|
return width;
|
|
22227
22247
|
});
|
|
22228
|
-
var templateObject_1$
|
|
22248
|
+
var templateObject_1$F, templateObject_2$t, templateObject_3$k, templateObject_4$i, templateObject_5$b, templateObject_6$a, templateObject_7$7, templateObject_8$4, templateObject_9$4, templateObject_10$4, templateObject_11$2;
|
|
22229
22249
|
|
|
22230
|
-
var scrollbarStyling = Ae(templateObject_1$
|
|
22231
|
-
var templateObject_1$
|
|
22250
|
+
var scrollbarStyling = Ae(templateObject_1$E || (templateObject_1$E = __makeTemplateObject(["\n /* width */\n &::-webkit-scrollbar {\n width: 16px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n\n /* Firefox */\n scrollbar-color: ", "\n transparent;\n scrollbar-width: thin;\n"], ["\n /* width */\n &::-webkit-scrollbar {\n width: 16px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n border-radius: 100px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 100px;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n\n /* Firefox */\n scrollbar-color: ", "\n transparent;\n scrollbar-width: thin;\n"])), ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.5)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)');
|
|
22251
|
+
var templateObject_1$E;
|
|
22232
22252
|
|
|
22233
22253
|
var TextArea = styled.textarea.withConfig({
|
|
22234
22254
|
displayName: "TextInputstyles__TextArea",
|
|
22235
22255
|
componentId: "sc-165zflr-0"
|
|
22236
|
-
})(templateObject_3$
|
|
22256
|
+
})(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n ", "\n resize: vertical;\n height: auto;\n ", "\n min-height: ", ";\n ", "\n ", "\n\n &:hover:enabled:read-write ~ label {\n background-color: ", ";\n }\n"], ["\n ", "\n resize: vertical;\n height: auto;\n ", "\n min-height: ", ";\n ", "\n ", "\n\n &:hover:enabled:read-write ~ label {\n background-color: ", ";\n }\n"])), function (_a) {
|
|
22237
22257
|
var label = _a.label,
|
|
22238
22258
|
disabled = _a.disabled,
|
|
22239
22259
|
readOnly = _a.readOnly,
|
|
@@ -22249,7 +22269,7 @@ var TextArea = styled.textarea.withConfig({
|
|
|
22249
22269
|
return label ? textInputTokens.container.multiline.withLabel.height : textInputTokens.container.multiline.noLabel.height;
|
|
22250
22270
|
}, textInputTokens.multiline.base, function (_a) {
|
|
22251
22271
|
var label = _a.label;
|
|
22252
|
-
return label ? Ae(templateObject_1$
|
|
22272
|
+
return label ? Ae(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.withLabel.base) : Ae(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.noLabel.base);
|
|
22253
22273
|
}, function (_a) {
|
|
22254
22274
|
var hasErrorMessage = _a.hasErrorMessage;
|
|
22255
22275
|
return hasErrorMessage ? inputTokens.error.hover.base.backgroundColor : inputTokens.general.input.hover.backgroundColor;
|
|
@@ -22257,13 +22277,13 @@ var TextArea = styled.textarea.withConfig({
|
|
|
22257
22277
|
var MessageContainer = styled.div.withConfig({
|
|
22258
22278
|
displayName: "TextInputstyles__MessageContainer",
|
|
22259
22279
|
componentId: "sc-165zflr-1"
|
|
22260
|
-
})(templateObject_4$
|
|
22280
|
+
})(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
22261
22281
|
var Label$1 = styled(SingleLineLabel).withConfig({
|
|
22262
22282
|
displayName: "TextInputstyles__Label",
|
|
22263
22283
|
componentId: "sc-165zflr-2"
|
|
22264
22284
|
})(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), function (_a) {
|
|
22265
22285
|
var multiline = _a.multiline;
|
|
22266
|
-
return multiline && Ae(templateObject_5$
|
|
22286
|
+
return multiline && Ae(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n margin: 1px;\n width: calc(100% - 20px);\n ", "\n "], ["\n margin: 1px;\n width: calc(100% - 20px);\n ", "\n "])), textInputTokens.label.multiline.base);
|
|
22267
22287
|
}, function (_a) {
|
|
22268
22288
|
var disabled = _a.disabled,
|
|
22269
22289
|
multiline = _a.multiline;
|
|
@@ -22291,9 +22311,9 @@ var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
|
22291
22311
|
return textInputTokens.container.multiline.noLabel.height;
|
|
22292
22312
|
}
|
|
22293
22313
|
});
|
|
22294
|
-
var templateObject_1$
|
|
22314
|
+
var templateObject_1$D, templateObject_2$s, templateObject_3$j, templateObject_4$h, templateObject_5$a, templateObject_6$9, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$3;
|
|
22295
22315
|
|
|
22296
|
-
var nextUniqueId$
|
|
22316
|
+
var nextUniqueId$7 = 0;
|
|
22297
22317
|
var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
22298
22318
|
var label = _a.label,
|
|
22299
22319
|
disabled = _a.disabled,
|
|
@@ -22357,7 +22377,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
22357
22377
|
}
|
|
22358
22378
|
};
|
|
22359
22379
|
|
|
22360
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$
|
|
22380
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$7++)[0];
|
|
22361
22381
|
var hasErrorMessage = !!errorMessage;
|
|
22362
22382
|
var hasTip = !!tip;
|
|
22363
22383
|
var characterCounterId = derivativeIdGenerator(uniqueId, 'characterCounter', maxLength);
|
|
@@ -29082,38 +29102,38 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
29082
29102
|
|
|
29083
29103
|
var ReactSelect = StateManagedSelect;
|
|
29084
29104
|
|
|
29085
|
-
var Colors$
|
|
29086
|
-
Spacing$
|
|
29105
|
+
var Colors$d = ddsBaseTokens.colors,
|
|
29106
|
+
Spacing$l = ddsBaseTokens.spacing,
|
|
29087
29107
|
FontPackages$e = ddsBaseTokens.fontPackages,
|
|
29088
|
-
BorderRadius$
|
|
29089
|
-
Border$
|
|
29090
|
-
IconSizes = ddsBaseTokens.iconSizes;
|
|
29108
|
+
BorderRadius$5 = ddsBaseTokens.borderRadius,
|
|
29109
|
+
Border$b = ddsBaseTokens.border,
|
|
29110
|
+
IconSizes$2 = ddsBaseTokens.iconSizes;
|
|
29091
29111
|
var textDefault$6 = ddsReferenceTokens.textDefault;
|
|
29092
|
-
var multiValueContainerMinHeight = Spacing$
|
|
29112
|
+
var multiValueContainerMinHeight = Spacing$l.SizesDdsSpacingLocalX0125NumberPx * 2 + Spacing$l.SizesDdsSpacingLocalX025NumberPx * 2 + calculateHeightWithLineHeight(FontPackages$e.supportingStyle_inputtext_01.numbers.lineHeightNumber, FontPackages$e.supportingStyle_inputtext_01.numbers.fontSizeNumber) + "px"; //custom spacing so that multiselect has same height as single value select
|
|
29093
29113
|
|
|
29094
|
-
var valueContainerMarginBottomMultiWithLabel = Spacing$
|
|
29114
|
+
var valueContainerMarginBottomMultiWithLabel = Spacing$l.SizesDdsSpacingLocalX025NumberPx + Spacing$l.SizesDdsSpacingLocalX0125NumberPx + "px"; //custom spacing so that multiselect has same height as single value select
|
|
29095
29115
|
|
|
29096
|
-
var inputMultiNoLabelPaddingTop = Spacing$
|
|
29116
|
+
var inputMultiNoLabelPaddingTop = Spacing$l.SizesDdsSpacingLocalX05NumberPx + Spacing$l.SizesDdsSpacingLocalX0125NumberPx + "px";
|
|
29097
29117
|
|
|
29098
29118
|
var labelBase = __assign({
|
|
29099
|
-
color: Colors$
|
|
29100
|
-
paddingTop: Spacing$
|
|
29101
|
-
paddingLeft: Spacing$
|
|
29119
|
+
color: Colors$d.DdsColorNeutralsGray7,
|
|
29120
|
+
paddingTop: Spacing$l.SizesDdsSpacingLocalX075,
|
|
29121
|
+
paddingLeft: Spacing$l.SizesDdsSpacingLocalX1,
|
|
29102
29122
|
paddingBottom: 0,
|
|
29103
|
-
paddingRight: Spacing$
|
|
29123
|
+
paddingRight: Spacing$l.SizesDdsSpacingLocalX05
|
|
29104
29124
|
}, FontPackages$e.supportingStyle_label_01.base);
|
|
29105
29125
|
|
|
29106
29126
|
var labelHoverBase = {
|
|
29107
|
-
color: Colors$
|
|
29127
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29108
29128
|
};
|
|
29109
29129
|
var labelFocusBase = {
|
|
29110
|
-
color: Colors$
|
|
29130
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29111
29131
|
};
|
|
29112
29132
|
var valueContainerWithLabelBase = {
|
|
29113
|
-
marginBottom: Spacing$
|
|
29133
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX075
|
|
29114
29134
|
};
|
|
29115
29135
|
var valueContainerNoLabelBase = {
|
|
29116
|
-
marginBottom: Spacing$
|
|
29136
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX075
|
|
29117
29137
|
};
|
|
29118
29138
|
var valueContainerIsMultiBase = {
|
|
29119
29139
|
minHeight: multiValueContainerMinHeight
|
|
@@ -29122,144 +29142,144 @@ var valueContainerIsMultiWithLabelBase = {
|
|
|
29122
29142
|
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
29123
29143
|
};
|
|
29124
29144
|
var valueContainerIsMultiNoLabelBase = {
|
|
29125
|
-
marginBottom: Spacing$
|
|
29145
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX05
|
|
29126
29146
|
};
|
|
29127
29147
|
var containerBase$2 = {
|
|
29128
|
-
borderRadius: BorderRadius$
|
|
29129
|
-
border: Border$
|
|
29130
|
-
borderColor: Colors$
|
|
29131
|
-
backgroundColor: Colors$
|
|
29148
|
+
borderRadius: BorderRadius$5.RadiiDdsBorderRadius1Radius,
|
|
29149
|
+
border: Border$b.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
29150
|
+
borderColor: Colors$d.DdsColorNeutralsGray5,
|
|
29151
|
+
backgroundColor: Colors$d.DdsColorNeutralsWhite
|
|
29132
29152
|
};
|
|
29133
29153
|
var containerHoverBase = {
|
|
29134
|
-
backgroundColor: Colors$
|
|
29135
|
-
borderColor: Colors$
|
|
29154
|
+
backgroundColor: Colors$d.DdsColorInteractiveLightest,
|
|
29155
|
+
borderColor: Colors$d.DdsColorInteractiveBase
|
|
29136
29156
|
};
|
|
29137
29157
|
var containerFocusBase = {
|
|
29138
|
-
borderColor: Colors$
|
|
29158
|
+
borderColor: Colors$d.DdsColorInteractiveBase
|
|
29139
29159
|
};
|
|
29140
29160
|
var containerDangerBase$2 = {
|
|
29141
|
-
borderColor: Colors$
|
|
29161
|
+
borderColor: Colors$d.DdsColorDangerBase
|
|
29142
29162
|
};
|
|
29143
29163
|
var containerDangerHoverBase = {
|
|
29144
|
-
backgroundColor: Colors$
|
|
29145
|
-
borderColor: Colors$
|
|
29164
|
+
backgroundColor: Colors$d.DdsColorDangerLightest,
|
|
29165
|
+
borderColor: Colors$d.DdsColorDangerBase
|
|
29146
29166
|
};
|
|
29147
29167
|
var containerDangerFocusBase = {
|
|
29148
|
-
borderColor: Colors$
|
|
29168
|
+
borderColor: Colors$d.DdsColorDangerDark
|
|
29149
29169
|
};
|
|
29150
29170
|
|
|
29151
29171
|
var inputBase$1 = __assign({
|
|
29152
|
-
padding: "0 " + Spacing$
|
|
29172
|
+
padding: "0 " + Spacing$l.SizesDdsSpacingLocalX05 + " 0 " + Spacing$l.SizesDdsSpacingLocalX1
|
|
29153
29173
|
}, FontPackages$e.supportingStyle_inputtext_02.base);
|
|
29154
29174
|
|
|
29155
29175
|
var inputNoLabelBase = {
|
|
29156
|
-
paddingTop: Spacing$
|
|
29176
|
+
paddingTop: Spacing$l.SizesDdsSpacingLocalX075
|
|
29157
29177
|
};
|
|
29158
29178
|
var inputIsMultiNoLabelBase = {
|
|
29159
29179
|
paddingTop: inputMultiNoLabelPaddingTop
|
|
29160
29180
|
};
|
|
29161
29181
|
|
|
29162
29182
|
var placeholderBase = __assign({
|
|
29163
|
-
color: Colors$
|
|
29183
|
+
color: Colors$d.DdsColorNeutralsGray6
|
|
29164
29184
|
}, FontPackages$e.supportingStyle_placeholdertext_01.base);
|
|
29165
29185
|
|
|
29166
29186
|
var indicatorsContainerWithLabelBase = {
|
|
29167
|
-
marginBottom: Spacing$
|
|
29187
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX1
|
|
29168
29188
|
};
|
|
29169
29189
|
var indicatorsContainerNoLabelBase = {
|
|
29170
|
-
marginBottom: Spacing$
|
|
29190
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX075
|
|
29171
29191
|
};
|
|
29172
29192
|
var indicatorsContainerIsMultiWithLabelBase = {
|
|
29173
29193
|
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
29174
29194
|
};
|
|
29175
29195
|
var indicatorsContainerIsMultiNoLabelBase = {
|
|
29176
|
-
marginBottom: Spacing$
|
|
29196
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX05
|
|
29177
29197
|
};
|
|
29178
29198
|
var dropdownIndicatorBase = {
|
|
29179
|
-
color: Colors$
|
|
29199
|
+
color: Colors$d.DdsColorNeutralsGray6,
|
|
29180
29200
|
padding: 0
|
|
29181
29201
|
};
|
|
29182
29202
|
var dropdownIndicatorHoverBase = {
|
|
29183
|
-
color: Colors$
|
|
29203
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29184
29204
|
};
|
|
29185
29205
|
var drodownIndicatorReadOnlyBase = {
|
|
29186
29206
|
color: 'transparent'
|
|
29187
29207
|
};
|
|
29188
29208
|
var clearIndicatorBase = {
|
|
29189
|
-
color: Colors$
|
|
29190
|
-
padding: " 0 " + Spacing$
|
|
29209
|
+
color: Colors$d.DdsColorNeutralsGray6,
|
|
29210
|
+
padding: " 0 " + Spacing$l.SizesDdsSpacingLocalX025 + " 0 0"
|
|
29191
29211
|
};
|
|
29192
29212
|
var loadingIndicatorBase = {
|
|
29193
|
-
color: Colors$
|
|
29213
|
+
color: Colors$d.DdsColorNeutralsGray6,
|
|
29194
29214
|
padding: 0
|
|
29195
29215
|
};
|
|
29196
29216
|
var clearIndicatorHoverBase = {
|
|
29197
|
-
color: Colors$
|
|
29217
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29198
29218
|
};
|
|
29199
29219
|
var optionsListBase = {
|
|
29200
29220
|
border: '1px solid',
|
|
29201
|
-
borderColor: Colors$
|
|
29202
|
-
backgroundColor: Colors$
|
|
29203
|
-
borderRadius: BorderRadius$
|
|
29221
|
+
borderColor: Colors$d.DdsColorInteractiveBase,
|
|
29222
|
+
backgroundColor: Colors$d.DdsColorNeutralsWhite,
|
|
29223
|
+
borderRadius: BorderRadius$5.RadiiDdsBorderRadius1Radius
|
|
29204
29224
|
};
|
|
29205
29225
|
|
|
29206
29226
|
var optionBase = __assign(__assign({
|
|
29207
|
-
padding: Spacing$
|
|
29227
|
+
padding: Spacing$l.SizesDdsSpacingLocalX05 + " " + Spacing$l.SizesDdsSpacingLocalX1
|
|
29208
29228
|
}, FontPackages$e.body_sans_02.base), {
|
|
29209
29229
|
color: textDefault$6.textColor
|
|
29210
29230
|
});
|
|
29211
29231
|
|
|
29212
29232
|
var optionHoverBase = {
|
|
29213
|
-
backgroundColor: Colors$
|
|
29233
|
+
backgroundColor: Colors$d.DdsColorInteractiveLighter
|
|
29214
29234
|
};
|
|
29215
29235
|
|
|
29216
29236
|
var optionSelectedBase = __assign(__assign({
|
|
29217
|
-
backgroundColor: Colors$
|
|
29237
|
+
backgroundColor: Colors$d.DdsColorInteractiveLightest
|
|
29218
29238
|
}, FontPackages$e.body_sans_02.base), {
|
|
29219
29239
|
fontWeight: 600
|
|
29220
29240
|
});
|
|
29221
29241
|
|
|
29222
29242
|
var noOptionsMessageBase = __assign({
|
|
29223
|
-
padding: Spacing$
|
|
29224
|
-
color: Colors$
|
|
29243
|
+
padding: Spacing$l.SizesDdsSpacingLocalX05 + " " + Spacing$l.SizesDdsSpacingLocalX1,
|
|
29244
|
+
color: Colors$d.DdsColorNeutralsGray6
|
|
29225
29245
|
}, FontPackages$e.supportingStyle_placeholdertext_01.base);
|
|
29226
29246
|
|
|
29227
29247
|
var multiValueBase = {
|
|
29228
|
-
borderRadius: BorderRadius$
|
|
29229
|
-
margin: Spacing$
|
|
29248
|
+
borderRadius: BorderRadius$5.RadiiDdsBorderRadius1Radius,
|
|
29249
|
+
margin: Spacing$l.SizesDdsSpacingLocalX0125
|
|
29230
29250
|
};
|
|
29231
29251
|
var multiValueEnabledBase = {
|
|
29232
|
-
backgroundColor: Colors$
|
|
29252
|
+
backgroundColor: Colors$d.DdsColorInteractiveLighter
|
|
29233
29253
|
};
|
|
29234
29254
|
var multiValueDisabledBase = {
|
|
29235
|
-
backgroundColor: Colors$
|
|
29255
|
+
backgroundColor: Colors$d.DdsColorNeutralsGray3
|
|
29236
29256
|
};
|
|
29237
29257
|
|
|
29238
29258
|
var multiValueLabelBase = __assign(__assign({
|
|
29239
|
-
paddingTop: "" + Spacing$
|
|
29240
|
-
paddingRight: "" + Spacing$
|
|
29241
|
-
paddingLeft: "" + Spacing$
|
|
29242
|
-
paddingBottom: "" + Spacing$
|
|
29243
|
-
color: Colors$
|
|
29259
|
+
paddingTop: "" + Spacing$l.SizesDdsSpacingLocalX025,
|
|
29260
|
+
paddingRight: "" + Spacing$l.SizesDdsSpacingLocalX05,
|
|
29261
|
+
paddingLeft: "" + Spacing$l.SizesDdsSpacingLocalX05,
|
|
29262
|
+
paddingBottom: "" + Spacing$l.SizesDdsSpacingLocalX025,
|
|
29263
|
+
color: Colors$d.DdsColorNeutralsGray9
|
|
29244
29264
|
}, FontPackages$e.supportingStyle_inputtext_01.base), {
|
|
29245
29265
|
fontWeight: 'bold'
|
|
29246
29266
|
});
|
|
29247
29267
|
|
|
29248
29268
|
var multiValueRemoveBase = {
|
|
29249
|
-
padding: "" + Spacing$
|
|
29250
|
-
color: Colors$
|
|
29269
|
+
padding: "" + Spacing$l.SizesDdsSpacingLocalX025,
|
|
29270
|
+
color: Colors$d.DdsColorNeutralsGray9
|
|
29251
29271
|
};
|
|
29252
29272
|
var multiValueRemoveHoverBase = {
|
|
29253
|
-
color: Colors$
|
|
29254
|
-
backgroundColor: Colors$
|
|
29273
|
+
color: Colors$d.DdsColorNeutralsWhite,
|
|
29274
|
+
backgroundColor: Colors$d.DdsColorInteractiveBase
|
|
29255
29275
|
};
|
|
29256
29276
|
var multiValueRemoveIconBase = {
|
|
29257
|
-
height: IconSizes.DdsIconsizeSmall,
|
|
29258
|
-
width: IconSizes.DdsIconsizeSmall
|
|
29277
|
+
height: IconSizes$2.DdsIconsizeSmall,
|
|
29278
|
+
width: IconSizes$2.DdsIconsizeSmall
|
|
29259
29279
|
};
|
|
29260
29280
|
var containerDisabledBase = {
|
|
29261
|
-
backgroundColor: Colors$
|
|
29262
|
-
borderColor: Colors$
|
|
29281
|
+
backgroundColor: Colors$d.DdsColorNeutralsGray1,
|
|
29282
|
+
borderColor: Colors$d.DdsColorNeutralsGray5
|
|
29263
29283
|
};
|
|
29264
29284
|
var containerReadOnlyBase = {
|
|
29265
29285
|
borderColor: 'transparent',
|
|
@@ -29317,7 +29337,7 @@ var selectTokens = {
|
|
|
29317
29337
|
},
|
|
29318
29338
|
optionsList: {
|
|
29319
29339
|
base: optionsListBase,
|
|
29320
|
-
spaceTop: Spacing$
|
|
29340
|
+
spaceTop: Spacing$l.SizesDdsSpacingLocalX1NumberPx + 2 //grunnet shadow-box
|
|
29321
29341
|
|
|
29322
29342
|
},
|
|
29323
29343
|
option: {
|
|
@@ -29328,7 +29348,7 @@ var selectTokens = {
|
|
|
29328
29348
|
selected: {
|
|
29329
29349
|
base: optionSelectedBase,
|
|
29330
29350
|
icon: {
|
|
29331
|
-
margin: "0 " + Spacing$
|
|
29351
|
+
margin: "0 " + Spacing$l.SizesDdsSpacingLocalX05 + " 0 0"
|
|
29332
29352
|
}
|
|
29333
29353
|
}
|
|
29334
29354
|
},
|
|
@@ -29413,17 +29433,17 @@ var prefix = 'dds-select';
|
|
|
29413
29433
|
var Label = styled(Typography).withConfig({
|
|
29414
29434
|
displayName: "Selectstyles__Label",
|
|
29415
29435
|
componentId: "sc-19jkd5s-0"
|
|
29416
|
-
})(templateObject_1$
|
|
29417
|
-
var Container$
|
|
29436
|
+
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ", "\n"])), selectTokens.label.base);
|
|
29437
|
+
var Container$9 = styled.div.withConfig({
|
|
29418
29438
|
displayName: "Selectstyles__Container",
|
|
29419
29439
|
componentId: "sc-19jkd5s-1"
|
|
29420
29440
|
})(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"], ["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"])), selectTokens.container.base, scrollbarStyling, typographyTokens.selection.base, function (_a) {
|
|
29421
29441
|
var isMulti = _a.isMulti;
|
|
29422
|
-
return isMulti && Ae(templateObject_2$
|
|
29442
|
+
return isMulti && Ae(templateObject_2$r || (templateObject_2$r = __makeTemplateObject([""], [""])));
|
|
29423
29443
|
}, function (_a) {
|
|
29424
29444
|
var hasLabel = _a.hasLabel,
|
|
29425
29445
|
isMulti = _a.isMulti;
|
|
29426
|
-
return isMulti && hasLabel ? Ae(templateObject_3$
|
|
29446
|
+
return isMulti && hasLabel ? Ae(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.valueContainer.isMulti.withLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.withLabel.base) : isMulti && !hasLabel ? Ae(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.input.isMulti.noLabel.base, prefix, selectTokens.valueContainer.isMulti.noLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.noLabel.base) : hasLabel ? Ae(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.valueContainer.withLabel.base, prefix, selectTokens.indicatorsContainer.withLabel.base) : Ae(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.input.noLabel.base, prefix, selectTokens.valueContainer.noLabel.base, prefix, selectTokens.indicatorsContainer.noLabel.base);
|
|
29427
29447
|
}, selectTokens.container.hover.base, selectTokens.container.hover.base.borderColor, Label, selectTokens.label.hover.base, selectTokens.container.focus.base, selectTokens.container.focus.base.borderColor, Label, selectTokens.label.focus.base, function (_a) {
|
|
29428
29448
|
var errorMessage = _a.errorMessage;
|
|
29429
29449
|
return errorMessage && Ae(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n ", "\n box-shadow: 0 0 0 1px ", ";\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n "], ["\n ", "\n box-shadow: 0 0 0 1px ", ";\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n "])), selectTokens.container.danger.base, selectTokens.container.danger.base.borderColor, selectTokens.container.danger.hover.base, selectTokens.container.danger.hover.base.borderColor, selectTokens.container.danger.focus.base, selectTokens.container.danger.focus.base.borderColor);
|
|
@@ -29444,7 +29464,7 @@ var Wrapper$5 = styled.div.withConfig({
|
|
|
29444
29464
|
var SelectedIconWrapper = styled(IconWrapper$1).withConfig({
|
|
29445
29465
|
displayName: "Selectstyles__SelectedIconWrapper",
|
|
29446
29466
|
componentId: "sc-19jkd5s-3"
|
|
29447
|
-
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), selectTokens.option.selected.icon.margin);
|
|
29467
|
+
})(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), selectTokens.option.selected.icon.margin);
|
|
29448
29468
|
var CustomStyles = {
|
|
29449
29469
|
control: function control() {
|
|
29450
29470
|
return __assign({
|
|
@@ -29535,7 +29555,7 @@ var CustomStyles = {
|
|
|
29535
29555
|
return __assign(__assign({}, provided), selectTokens.loadingIndicator.base);
|
|
29536
29556
|
}
|
|
29537
29557
|
};
|
|
29538
|
-
var templateObject_1$
|
|
29558
|
+
var templateObject_1$C, templateObject_2$r, templateObject_3$i, templateObject_4$g, templateObject_5$9, templateObject_6$8, templateObject_7$5, templateObject_8$2, templateObject_9$2, templateObject_10$2, templateObject_11$1, templateObject_12$1;
|
|
29539
29559
|
|
|
29540
29560
|
var DdsOption = components.Option,
|
|
29541
29561
|
NoOptionsMessage = components.NoOptionsMessage,
|
|
@@ -29565,7 +29585,7 @@ function searchFilter(text, search) {
|
|
|
29565
29585
|
var searchFilterRegex = new RegExp("(?:^|[\\s-(])" + escapeRegexCharacters(search.toLowerCase()));
|
|
29566
29586
|
return searchFilterRegex.test(text.toLowerCase());
|
|
29567
29587
|
}
|
|
29568
|
-
var nextUniqueId$
|
|
29588
|
+
var nextUniqueId$6 = 0;
|
|
29569
29589
|
|
|
29570
29590
|
var SelectInner = function SelectInner(_a, ref) {
|
|
29571
29591
|
var id = _a.id,
|
|
@@ -29590,7 +29610,7 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
29590
29610
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
29591
29611
|
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "isMulti", "value", "defaultValue", "width", "closeMenuOnSelect", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
29592
29612
|
|
|
29593
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$
|
|
29613
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$6++)[0];
|
|
29594
29614
|
var hasLabel = !!label;
|
|
29595
29615
|
var hasErrorMessage = !!errorMessage;
|
|
29596
29616
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
@@ -29641,7 +29661,7 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
29641
29661
|
}, rest);
|
|
29642
29662
|
|
|
29643
29663
|
return jsxRuntime.jsxs(Wrapper$5, __assign({}, wrapperProps, {
|
|
29644
|
-
children: [jsxRuntime.jsxs(Container$
|
|
29664
|
+
children: [jsxRuntime.jsxs(Container$9, __assign({}, containerProps, {
|
|
29645
29665
|
children: [label && jsxRuntime.jsxs(Label, __assign({
|
|
29646
29666
|
htmlFor: uniqueId,
|
|
29647
29667
|
forwardedAs: "label",
|
|
@@ -29743,37 +29763,37 @@ exports.default = _default;
|
|
|
29743
29763
|
|
|
29744
29764
|
var InfoOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(InfoOutlined);
|
|
29745
29765
|
|
|
29746
|
-
var Colors$
|
|
29747
|
-
Spacing$
|
|
29766
|
+
var Colors$c = ddsBaseTokens.colors,
|
|
29767
|
+
Spacing$k = ddsBaseTokens.spacing,
|
|
29748
29768
|
FontPackages$d = ddsBaseTokens.fontPackages;
|
|
29749
29769
|
|
|
29750
29770
|
var containerBase$1 = __assign(__assign({
|
|
29751
29771
|
borderBottom: '2px solid',
|
|
29752
|
-
padding: "0 " + Spacing$
|
|
29772
|
+
padding: "0 " + Spacing$k.SizesDdsSpacingLocalX1,
|
|
29753
29773
|
width: '100%'
|
|
29754
29774
|
}, FontPackages$d.body_sans_02.base), {
|
|
29755
|
-
color: Colors$
|
|
29775
|
+
color: Colors$c.DdsColorNeutralsGray8
|
|
29756
29776
|
});
|
|
29757
29777
|
|
|
29758
|
-
var contentContainerBase$
|
|
29759
|
-
paddingRight: Spacing$
|
|
29760
|
-
paddingTop: Spacing$
|
|
29761
|
-
paddingBottom: Spacing$
|
|
29778
|
+
var contentContainerBase$2 = {
|
|
29779
|
+
paddingRight: Spacing$k.SizesDdsSpacingLocalX15,
|
|
29780
|
+
paddingTop: Spacing$k.SizesDdsSpacingLocalX075,
|
|
29781
|
+
paddingBottom: Spacing$k.SizesDdsSpacingLocalX075
|
|
29762
29782
|
};
|
|
29763
29783
|
var contentContainerWithClosableBase$1 = {
|
|
29764
|
-
paddingRight: Spacing$
|
|
29784
|
+
paddingRight: Spacing$k.SizesDdsSpacingLocalX075
|
|
29765
29785
|
};
|
|
29766
29786
|
var containerInfoBase$1 = {
|
|
29767
|
-
borderColor: Colors$
|
|
29768
|
-
backgroundColor: Colors$
|
|
29787
|
+
borderColor: Colors$c.DdsColorInfoLighter,
|
|
29788
|
+
backgroundColor: Colors$c.DdsColorInfoLightest
|
|
29769
29789
|
};
|
|
29770
29790
|
var containerDangerBase$1 = {
|
|
29771
|
-
borderColor: Colors$
|
|
29772
|
-
backgroundColor: Colors$
|
|
29791
|
+
borderColor: Colors$c.DdsColorDangerLighter,
|
|
29792
|
+
backgroundColor: Colors$c.DdsColorDangerLightest
|
|
29773
29793
|
};
|
|
29774
29794
|
var containerWarningBase$1 = {
|
|
29775
|
-
borderColor: Colors$
|
|
29776
|
-
backgroundColor: Colors$
|
|
29795
|
+
borderColor: Colors$c.DdsColorWarningLighter,
|
|
29796
|
+
backgroundColor: Colors$c.DdsColorWarningLightest
|
|
29777
29797
|
};
|
|
29778
29798
|
var globalMessageTokens = {
|
|
29779
29799
|
container: {
|
|
@@ -29789,24 +29809,24 @@ var globalMessageTokens = {
|
|
|
29789
29809
|
}
|
|
29790
29810
|
},
|
|
29791
29811
|
contentContainer: {
|
|
29792
|
-
base: contentContainerBase$
|
|
29812
|
+
base: contentContainerBase$2,
|
|
29793
29813
|
withClosable: {
|
|
29794
29814
|
base: contentContainerWithClosableBase$1
|
|
29795
29815
|
}
|
|
29796
29816
|
},
|
|
29797
29817
|
icon: {
|
|
29798
|
-
marginRight: "" + Spacing$
|
|
29818
|
+
marginRight: "" + Spacing$k.SizesDdsSpacingLocalX075,
|
|
29799
29819
|
info: {
|
|
29800
29820
|
icon: InfoOutlinedIcon,
|
|
29801
|
-
color: Colors$
|
|
29821
|
+
color: Colors$c.DdsColorInfoDarkest
|
|
29802
29822
|
},
|
|
29803
29823
|
danger: {
|
|
29804
29824
|
icon: DangerOutlinedIcon,
|
|
29805
|
-
color: Colors$
|
|
29825
|
+
color: Colors$c.DdsColorDangerDarkest
|
|
29806
29826
|
},
|
|
29807
29827
|
warning: {
|
|
29808
29828
|
icon: WarningOutlinedIcon,
|
|
29809
|
-
color: Colors$
|
|
29829
|
+
color: Colors$c.DdsColorWarningDarkest
|
|
29810
29830
|
}
|
|
29811
29831
|
},
|
|
29812
29832
|
button: {
|
|
@@ -29822,27 +29842,27 @@ var globalMessageTokens = {
|
|
|
29822
29842
|
}
|
|
29823
29843
|
};
|
|
29824
29844
|
|
|
29825
|
-
var Container$
|
|
29845
|
+
var Container$8 = styled.div.withConfig({
|
|
29826
29846
|
displayName: "GlobalMessage__Container",
|
|
29827
29847
|
componentId: "sc-bf2l65-0"
|
|
29828
|
-
})(templateObject_2$
|
|
29848
|
+
})(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n ", "\n"])), function (_a) {
|
|
29829
29849
|
var purpose = _a.purpose;
|
|
29830
|
-
return purpose && Ae(templateObject_1$
|
|
29850
|
+
return purpose && Ae(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
|
|
29831
29851
|
});
|
|
29832
29852
|
var MessageIconWrapper$1 = styled(IconWrapper$1).withConfig({
|
|
29833
29853
|
displayName: "GlobalMessage__MessageIconWrapper",
|
|
29834
29854
|
componentId: "sc-bf2l65-1"
|
|
29835
|
-
})(templateObject_3$
|
|
29855
|
+
})(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), globalMessageTokens.icon.marginRight);
|
|
29836
29856
|
var ControlsContainer = styled.div.withConfig({
|
|
29837
29857
|
displayName: "GlobalMessage__ControlsContainer",
|
|
29838
29858
|
componentId: "sc-bf2l65-2"
|
|
29839
|
-
})(templateObject_4$
|
|
29840
|
-
var ContentContainer$
|
|
29859
|
+
})(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
29860
|
+
var ContentContainer$3 = styled.div.withConfig({
|
|
29841
29861
|
displayName: "GlobalMessage__ContentContainer",
|
|
29842
29862
|
componentId: "sc-bf2l65-3"
|
|
29843
29863
|
})(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n ", "\n ", "\n"], ["\n display: flex;\n align-items: center;\n ", "\n ", "\n"])), globalMessageTokens.contentContainer.base, function (_a) {
|
|
29844
29864
|
var closable = _a.closable;
|
|
29845
|
-
return closable && Ae(templateObject_5$
|
|
29865
|
+
return closable && Ae(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), globalMessageTokens.contentContainer.withClosable.base);
|
|
29846
29866
|
});
|
|
29847
29867
|
var GlobalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
29848
29868
|
var message = _a.message,
|
|
@@ -29864,8 +29884,8 @@ var GlobalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29864
29884
|
purpose: purpose
|
|
29865
29885
|
}, rest);
|
|
29866
29886
|
|
|
29867
|
-
return !isClosed ? jsxRuntime.jsxs(Container$
|
|
29868
|
-
children: [jsxRuntime.jsxs(ContentContainer$
|
|
29887
|
+
return !isClosed ? jsxRuntime.jsxs(Container$8, __assign({}, containerProps, {
|
|
29888
|
+
children: [jsxRuntime.jsxs(ContentContainer$3, __assign({
|
|
29869
29889
|
closable: closable
|
|
29870
29890
|
}, {
|
|
29871
29891
|
children: [jsxRuntime.jsx(MessageIconWrapper$1, {
|
|
@@ -29891,7 +29911,7 @@ var GlobalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29891
29911
|
}, void 0)]
|
|
29892
29912
|
}), void 0) : null;
|
|
29893
29913
|
});
|
|
29894
|
-
var templateObject_1$
|
|
29914
|
+
var templateObject_1$B, templateObject_2$q, templateObject_3$h, templateObject_4$f, templateObject_5$8, templateObject_6$7;
|
|
29895
29915
|
|
|
29896
29916
|
var CheckCircleOutlined = createCommonjsModule(function (module, exports) {
|
|
29897
29917
|
|
|
@@ -29947,63 +29967,63 @@ exports.default = _default;
|
|
|
29947
29967
|
|
|
29948
29968
|
var EmojiObjectsOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(EmojiObjectsOutlined);
|
|
29949
29969
|
|
|
29950
|
-
var Colors$
|
|
29951
|
-
Spacing$
|
|
29970
|
+
var Colors$b = ddsBaseTokens.colors,
|
|
29971
|
+
Spacing$j = ddsBaseTokens.spacing,
|
|
29952
29972
|
FontPackages$c = ddsBaseTokens.fontPackages,
|
|
29953
|
-
BorderRadius$
|
|
29954
|
-
Border$
|
|
29955
|
-
OuterShadow$
|
|
29973
|
+
BorderRadius$4 = ddsBaseTokens.borderRadius,
|
|
29974
|
+
Border$a = ddsBaseTokens.border,
|
|
29975
|
+
OuterShadow$3 = ddsBaseTokens.outerShadow;
|
|
29956
29976
|
|
|
29957
29977
|
var containerBase = __assign(__assign({
|
|
29958
|
-
boxShadow: OuterShadow$
|
|
29959
|
-
borderRadius: BorderRadius$
|
|
29960
|
-
border: Border$
|
|
29961
|
-
padding: "0 " + Spacing$
|
|
29978
|
+
boxShadow: OuterShadow$3.DdsShadow1Onlight,
|
|
29979
|
+
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius,
|
|
29980
|
+
border: Border$a.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
29981
|
+
padding: "0 " + Spacing$j.SizesDdsSpacingLocalX1
|
|
29962
29982
|
}, FontPackages$c.body_sans_02.base), {
|
|
29963
|
-
color: Colors$
|
|
29983
|
+
color: Colors$b.DdsColorNeutralsGray8
|
|
29964
29984
|
});
|
|
29965
29985
|
|
|
29966
29986
|
var defaultWidth = '400px';
|
|
29967
|
-
var contentContainerBase = {
|
|
29968
|
-
paddingRight: Spacing$
|
|
29969
|
-
paddingTop: Spacing$
|
|
29970
|
-
paddingBottom: Spacing$
|
|
29987
|
+
var contentContainerBase$1 = {
|
|
29988
|
+
paddingRight: Spacing$j.SizesDdsSpacingLocalX15,
|
|
29989
|
+
paddingTop: Spacing$j.SizesDdsSpacingLocalX075,
|
|
29990
|
+
paddingBottom: Spacing$j.SizesDdsSpacingLocalX075
|
|
29971
29991
|
};
|
|
29972
29992
|
var contentContainerWithClosableBase = {
|
|
29973
|
-
paddingRight: Spacing$
|
|
29993
|
+
paddingRight: Spacing$j.SizesDdsSpacingLocalX075
|
|
29974
29994
|
};
|
|
29975
29995
|
var contentContainerVericalBase = {
|
|
29976
|
-
paddingBottom: Spacing$
|
|
29996
|
+
paddingBottom: Spacing$j.SizesDdsSpacingLocalX15
|
|
29977
29997
|
};
|
|
29978
29998
|
var topContainerBase = {
|
|
29979
|
-
paddingTop: Spacing$
|
|
29999
|
+
paddingTop: Spacing$j.SizesDdsSpacingLocalX15
|
|
29980
30000
|
};
|
|
29981
30001
|
var topContainerWithClosableBase = {
|
|
29982
|
-
paddingTop: Spacing$
|
|
30002
|
+
paddingTop: Spacing$j.SizesDdsSpacingLocalX1
|
|
29983
30003
|
};
|
|
29984
30004
|
var containerInfoBase = {
|
|
29985
|
-
borderColor: Colors$
|
|
29986
|
-
backgroundColor: Colors$
|
|
30005
|
+
borderColor: Colors$b.DdsColorInfoLighter,
|
|
30006
|
+
backgroundColor: Colors$b.DdsColorInfoLightest
|
|
29987
30007
|
};
|
|
29988
30008
|
var containerDangerBase = {
|
|
29989
|
-
borderColor: Colors$
|
|
29990
|
-
backgroundColor: Colors$
|
|
30009
|
+
borderColor: Colors$b.DdsColorDangerLighter,
|
|
30010
|
+
backgroundColor: Colors$b.DdsColorDangerLightest
|
|
29991
30011
|
};
|
|
29992
30012
|
var containerWarningBase = {
|
|
29993
|
-
borderColor: Colors$
|
|
29994
|
-
backgroundColor: Colors$
|
|
30013
|
+
borderColor: Colors$b.DdsColorWarningLighter,
|
|
30014
|
+
backgroundColor: Colors$b.DdsColorWarningLightest
|
|
29995
30015
|
};
|
|
29996
30016
|
var containerSuccessBase = {
|
|
29997
|
-
borderColor: Colors$
|
|
29998
|
-
backgroundColor: Colors$
|
|
30017
|
+
borderColor: Colors$b.DdsColorSuccessLighter,
|
|
30018
|
+
backgroundColor: Colors$b.DdsColorSuccessLightest
|
|
29999
30019
|
};
|
|
30000
30020
|
var containerTipsBase = {
|
|
30001
|
-
borderColor: Colors$
|
|
30002
|
-
backgroundColor: Colors$
|
|
30021
|
+
borderColor: Colors$b.DdsColorPrimaryLighter,
|
|
30022
|
+
backgroundColor: Colors$b.DdsColorPrimaryLightest
|
|
30003
30023
|
};
|
|
30004
30024
|
var containerConfidentialBase = {
|
|
30005
|
-
borderColor: Colors$
|
|
30006
|
-
backgroundColor: Colors$
|
|
30025
|
+
borderColor: Colors$b.DdsColorDangerBase,
|
|
30026
|
+
backgroundColor: Colors$b.DdsColorDangerLightest
|
|
30007
30027
|
};
|
|
30008
30028
|
var localMessageTokens = {
|
|
30009
30029
|
container: {
|
|
@@ -30029,7 +30049,7 @@ var localMessageTokens = {
|
|
|
30029
30049
|
}
|
|
30030
30050
|
},
|
|
30031
30051
|
contentContainer: {
|
|
30032
|
-
base: contentContainerBase,
|
|
30052
|
+
base: contentContainerBase$1,
|
|
30033
30053
|
withClosable: {
|
|
30034
30054
|
base: contentContainerWithClosableBase
|
|
30035
30055
|
},
|
|
@@ -30044,30 +30064,30 @@ var localMessageTokens = {
|
|
|
30044
30064
|
}
|
|
30045
30065
|
},
|
|
30046
30066
|
icon: {
|
|
30047
|
-
marginRight: "" + Spacing$
|
|
30067
|
+
marginRight: "" + Spacing$j.SizesDdsSpacingLocalX075,
|
|
30048
30068
|
info: {
|
|
30049
30069
|
icon: InfoOutlinedIcon,
|
|
30050
|
-
color: Colors$
|
|
30070
|
+
color: Colors$b.DdsColorInfoDarkest
|
|
30051
30071
|
},
|
|
30052
30072
|
danger: {
|
|
30053
30073
|
icon: DangerOutlinedIcon,
|
|
30054
|
-
color: Colors$
|
|
30074
|
+
color: Colors$b.DdsColorDangerDarkest
|
|
30055
30075
|
},
|
|
30056
30076
|
warning: {
|
|
30057
30077
|
icon: WarningOutlinedIcon,
|
|
30058
|
-
color: Colors$
|
|
30078
|
+
color: Colors$b.DdsColorWarningDarkest
|
|
30059
30079
|
},
|
|
30060
30080
|
success: {
|
|
30061
30081
|
icon: CheckCircleOutlinedIcon,
|
|
30062
|
-
color: Colors$
|
|
30082
|
+
color: Colors$b.DdsColorSuccessDarkest
|
|
30063
30083
|
},
|
|
30064
30084
|
tips: {
|
|
30065
30085
|
icon: EmojiObjectsOutlinedIcon,
|
|
30066
|
-
color: Colors$
|
|
30086
|
+
color: Colors$b.DdsColorPrimaryDarkest
|
|
30067
30087
|
},
|
|
30068
30088
|
confidential: {
|
|
30069
30089
|
icon: DangerOutlinedIcon,
|
|
30070
|
-
color: Colors$
|
|
30090
|
+
color: Colors$b.DdsColorDangerDarkest
|
|
30071
30091
|
}
|
|
30072
30092
|
},
|
|
30073
30093
|
button: {
|
|
@@ -30092,18 +30112,18 @@ var localMessageTokens = {
|
|
|
30092
30112
|
}
|
|
30093
30113
|
};
|
|
30094
30114
|
|
|
30095
|
-
var Container$
|
|
30115
|
+
var Container$7 = styled.div.withConfig({
|
|
30096
30116
|
displayName: "LocalMessage__Container",
|
|
30097
30117
|
componentId: "sc-kmfp8w-0"
|
|
30098
|
-
})(templateObject_3$
|
|
30118
|
+
})(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n box-sizing: border-box;\n ", ";\n *::selection {\n ", "\n }\n ", "\n width: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n box-sizing: border-box;\n ", ";\n *::selection {\n ", "\n }\n ", "\n width: ", ";\n"])), function (_a) {
|
|
30099
30119
|
var layout = _a.layout;
|
|
30100
30120
|
return layout === 'vertical' ? 'column' : 'row';
|
|
30101
30121
|
}, function (_a) {
|
|
30102
30122
|
var layout = _a.layout;
|
|
30103
|
-
return layout === 'horisontal' && Ae(templateObject_1$
|
|
30123
|
+
return layout === 'horisontal' && Ae(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n align-items: center;\n justify-content: space-between;\n "], ["\n align-items: center;\n justify-content: space-between;\n "])));
|
|
30104
30124
|
}, typographyTokens.selection.base, function (_a) {
|
|
30105
30125
|
var purpose = _a.purpose;
|
|
30106
|
-
return purpose && Ae(templateObject_2$
|
|
30126
|
+
return purpose && Ae(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), localMessageTokens.container.base, localMessageTokens.container[purpose].base);
|
|
30107
30127
|
}, function (_a) {
|
|
30108
30128
|
var width = _a.width;
|
|
30109
30129
|
return width;
|
|
@@ -30111,13 +30131,13 @@ var Container$4 = styled.div.withConfig({
|
|
|
30111
30131
|
var MessageIconWrapper = styled(IconWrapper$1).withConfig({
|
|
30112
30132
|
displayName: "LocalMessage__MessageIconWrapper",
|
|
30113
30133
|
componentId: "sc-kmfp8w-1"
|
|
30114
|
-
})(templateObject_4$
|
|
30115
|
-
var ContentContainer$
|
|
30134
|
+
})(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), localMessageTokens.icon.marginRight);
|
|
30135
|
+
var ContentContainer$2 = styled.div.withConfig({
|
|
30116
30136
|
displayName: "LocalMessage__ContentContainer",
|
|
30117
30137
|
componentId: "sc-kmfp8w-2"
|
|
30118
30138
|
})(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), localMessageTokens.contentContainer.base, function (_a) {
|
|
30119
30139
|
var layout = _a.layout;
|
|
30120
|
-
return layout === 'vertical' ? Ae(templateObject_5$
|
|
30140
|
+
return layout === 'vertical' ? Ae(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), localMessageTokens.contentContainer.vertical.base) : Ae(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n "], ["\n display: flex;\n align-items: center;\n "])));
|
|
30121
30141
|
}, function (_a) {
|
|
30122
30142
|
var closable = _a.closable;
|
|
30123
30143
|
return closable && Ae(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), localMessageTokens.contentContainer.withClosable.base);
|
|
@@ -30183,9 +30203,9 @@ var LocalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30183
30203
|
"aria-label": "Lukk melding"
|
|
30184
30204
|
}, void 0);
|
|
30185
30205
|
|
|
30186
|
-
return !isClosed ? jsxRuntime.jsx(Container$
|
|
30206
|
+
return !isClosed ? jsxRuntime.jsx(Container$7, __assign({}, containerProps, {
|
|
30187
30207
|
children: layout === 'horisontal' ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
30188
|
-
children: [jsxRuntime.jsxs(ContentContainer$
|
|
30208
|
+
children: [jsxRuntime.jsxs(ContentContainer$2, __assign({}, contentContainerProps, {
|
|
30189
30209
|
children: [messageIconWrapper, " ", content]
|
|
30190
30210
|
}), void 0), closeButton]
|
|
30191
30211
|
}, void 0) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -30193,13 +30213,13 @@ var LocalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30193
30213
|
closable: closable
|
|
30194
30214
|
}, {
|
|
30195
30215
|
children: [messageIconWrapper, " ", closeButton]
|
|
30196
|
-
}), void 0), jsxRuntime.jsx(ContentContainer$
|
|
30216
|
+
}), void 0), jsxRuntime.jsx(ContentContainer$2, __assign({}, contentContainerProps, {
|
|
30197
30217
|
children: content
|
|
30198
30218
|
}), void 0)]
|
|
30199
30219
|
}, void 0)
|
|
30200
30220
|
}), void 0) : null;
|
|
30201
30221
|
});
|
|
30202
|
-
var templateObject_1$
|
|
30222
|
+
var templateObject_1$A, templateObject_2$p, templateObject_3$g, templateObject_4$e, templateObject_5$7, templateObject_6$6, templateObject_7$4, templateObject_8$1, templateObject_9$1, templateObject_10$1;
|
|
30203
30223
|
|
|
30204
30224
|
var SearchOutlined = createCommonjsModule(function (module, exports) {
|
|
30205
30225
|
|
|
@@ -30225,26 +30245,26 @@ exports.default = _default;
|
|
|
30225
30245
|
|
|
30226
30246
|
var SearchOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(SearchOutlined);
|
|
30227
30247
|
|
|
30228
|
-
var Spacing$
|
|
30248
|
+
var Spacing$i = ddsBaseTokens.spacing,
|
|
30229
30249
|
FontPackages$b = ddsBaseTokens.fontPackages;
|
|
30230
30250
|
var textDefault$5 = ddsReferenceTokens.textDefault;
|
|
30231
30251
|
var inputBase = {
|
|
30232
|
-
paddingRight: Spacing$
|
|
30252
|
+
paddingRight: Spacing$i.SizesDdsSpacingLocalX05
|
|
30233
30253
|
};
|
|
30234
30254
|
|
|
30235
30255
|
var smallBase$1 = __assign(__assign({}, FontPackages$b.supportingStyle_inputtext_01.base), {
|
|
30236
|
-
paddingTop: Spacing$
|
|
30237
|
-
paddingBottom: Spacing$
|
|
30256
|
+
paddingTop: Spacing$i.SizesDdsSpacingLocalX05,
|
|
30257
|
+
paddingBottom: Spacing$i.SizesDdsSpacingLocalX05
|
|
30238
30258
|
});
|
|
30239
30259
|
|
|
30240
30260
|
var mediumBase = __assign(__assign({}, FontPackages$b.supportingStyle_inputtext_02.base), {
|
|
30241
|
-
paddingTop: Spacing$
|
|
30242
|
-
paddingBottom: Spacing$
|
|
30261
|
+
paddingTop: Spacing$i.SizesDdsSpacingLocalX075,
|
|
30262
|
+
paddingBottom: Spacing$i.SizesDdsSpacingLocalX075
|
|
30243
30263
|
});
|
|
30244
30264
|
|
|
30245
30265
|
var largeBase = __assign(__assign({}, FontPackages$b.supportingStyle_inputtext_03.base), {
|
|
30246
|
-
paddingTop: Spacing$
|
|
30247
|
-
paddingBottom: Spacing$
|
|
30266
|
+
paddingTop: Spacing$i.SizesDdsSpacingLocalX1,
|
|
30267
|
+
paddingBottom: Spacing$i.SizesDdsSpacingLocalX1
|
|
30248
30268
|
});
|
|
30249
30269
|
|
|
30250
30270
|
var iconWrapperBase = {
|
|
@@ -30253,7 +30273,7 @@ var iconWrapperBase = {
|
|
|
30253
30273
|
var searchTokens = {
|
|
30254
30274
|
input: {
|
|
30255
30275
|
base: inputBase,
|
|
30256
|
-
spaceLeft: Spacing$
|
|
30276
|
+
spaceLeft: Spacing$i.SizesDdsSpacingLocalX3,
|
|
30257
30277
|
small: {
|
|
30258
30278
|
base: smallBase$1
|
|
30259
30279
|
},
|
|
@@ -30265,36 +30285,36 @@ var searchTokens = {
|
|
|
30265
30285
|
}
|
|
30266
30286
|
},
|
|
30267
30287
|
icon: {
|
|
30268
|
-
spaceTop: "calc(50% - " + Spacing$
|
|
30269
|
-
spaceLeft: Spacing$
|
|
30288
|
+
spaceTop: "calc(50% - " + Spacing$i.SizesDdsSpacingLocalX15NumberPx / 2 + "px)",
|
|
30289
|
+
spaceLeft: Spacing$i.SizesDdsSpacingLocalX075
|
|
30270
30290
|
},
|
|
30271
30291
|
iconWrapper: {
|
|
30272
30292
|
base: iconWrapperBase
|
|
30273
30293
|
},
|
|
30274
30294
|
buttonWrapper: {
|
|
30275
|
-
spaceLeft: Spacing$
|
|
30295
|
+
spaceLeft: Spacing$i.SizesDdsSpacingLocalX05
|
|
30276
30296
|
}
|
|
30277
30297
|
};
|
|
30278
30298
|
|
|
30279
30299
|
var Input = styled.input.withConfig({
|
|
30280
30300
|
displayName: "Search__Input",
|
|
30281
30301
|
componentId: "sc-1ax3s9s-0"
|
|
30282
|
-
})(templateObject_2$
|
|
30302
|
+
})(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n &[type='search']::-webkit-search-decoration,\n &[type='search']::-webkit-search-cancel-button,\n &[type='search']::-webkit-search-results-button,\n &[type='search']::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n ", "\n ", "\n\n ", "\n\n padding-left: ", ";\n"], ["\n &[type='search']::-webkit-search-decoration,\n &[type='search']::-webkit-search-cancel-button,\n &[type='search']::-webkit-search-results-button,\n &[type='search']::-webkit-search-results-decoration {\n -webkit-appearance: none;\n }\n\n ", "\n ", "\n\n ", "\n\n padding-left: ", ";\n"])), inputFieldStylingBase, searchTokens.input.base, function (_a) {
|
|
30283
30303
|
var componentSize = _a.componentSize;
|
|
30284
|
-
return componentSize && Ae(templateObject_1$
|
|
30304
|
+
return componentSize && Ae(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), searchTokens.input[componentSize].base);
|
|
30285
30305
|
}, searchTokens.input.spaceLeft);
|
|
30286
30306
|
var IconWrapper = styled.span.withConfig({
|
|
30287
30307
|
displayName: "Search__IconWrapper",
|
|
30288
30308
|
componentId: "sc-1ax3s9s-1"
|
|
30289
|
-
})(templateObject_3$
|
|
30290
|
-
var Container$
|
|
30309
|
+
})(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n ", "\n position: absolute;\n top: ", ";\n left: ", ";\n"], ["\n ", "\n position: absolute;\n top: ", ";\n left: ", ";\n"])), searchTokens.iconWrapper.base, searchTokens.icon.spaceTop, searchTokens.icon.spaceLeft);
|
|
30310
|
+
var Container$6 = styled.div.withConfig({
|
|
30291
30311
|
displayName: "Search__Container",
|
|
30292
30312
|
componentId: "sc-1ax3s9s-2"
|
|
30293
|
-
})(templateObject_4$
|
|
30313
|
+
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n"], ["\n display: flex;\n flex-direction: row;\n"])));
|
|
30294
30314
|
var InputContainer = styled.div.withConfig({
|
|
30295
30315
|
displayName: "Search__InputContainer",
|
|
30296
30316
|
componentId: "sc-1ax3s9s-3"
|
|
30297
|
-
})(templateObject_5$
|
|
30317
|
+
})(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n flex-direction: column;\n"], ["\n width: 100%;\n display: flex;\n flex-direction: column;\n"])));
|
|
30298
30318
|
var InputWrapper = styled.div.withConfig({
|
|
30299
30319
|
displayName: "Search__InputWrapper",
|
|
30300
30320
|
componentId: "sc-1ax3s9s-4"
|
|
@@ -30303,7 +30323,7 @@ var ButtonWrapper = styled.div.withConfig({
|
|
|
30303
30323
|
displayName: "Search__ButtonWrapper",
|
|
30304
30324
|
componentId: "sc-1ax3s9s-5"
|
|
30305
30325
|
})(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n margin-left: ", ";\n"], ["\n margin-left: ", ";\n"])), searchTokens.buttonWrapper.spaceLeft);
|
|
30306
|
-
var nextUniqueId$
|
|
30326
|
+
var nextUniqueId$5 = 0;
|
|
30307
30327
|
var Search = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30308
30328
|
var _b = _a.componentSize,
|
|
30309
30329
|
componentSize = _b === void 0 ? 'medium' : _b,
|
|
@@ -30316,7 +30336,7 @@ var Search = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30316
30336
|
ariaDescribedby = _a["aria-describedby"],
|
|
30317
30337
|
rest = __rest(_a, ["componentSize", "buttonProps", "name", "tip", "id", "className", "style", 'aria-describedby']);
|
|
30318
30338
|
|
|
30319
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "searchInput-" + nextUniqueId$
|
|
30339
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "searchInput-" + nextUniqueId$5++)[0];
|
|
30320
30340
|
var hasTip = !!tip;
|
|
30321
30341
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
30322
30342
|
var containerProps = {
|
|
@@ -30337,7 +30357,7 @@ var Search = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30337
30357
|
onClick = _c.onClick,
|
|
30338
30358
|
otherButtonProps = __rest(_c, ["label", "onClick"]);
|
|
30339
30359
|
|
|
30340
|
-
return jsxRuntime.jsxs(Container$
|
|
30360
|
+
return jsxRuntime.jsxs(Container$6, __assign({}, containerProps, {
|
|
30341
30361
|
children: [jsxRuntime.jsxs(InputContainer, {
|
|
30342
30362
|
children: [jsxRuntime.jsxs(InputWrapper, {
|
|
30343
30363
|
children: [jsxRuntime.jsx(IconWrapper, {
|
|
@@ -30359,26 +30379,26 @@ var Search = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30359
30379
|
}, void 0)]
|
|
30360
30380
|
}), void 0);
|
|
30361
30381
|
});
|
|
30362
|
-
var templateObject_1$
|
|
30382
|
+
var templateObject_1$z, templateObject_2$o, templateObject_3$f, templateObject_4$d, templateObject_5$6, templateObject_6$5, templateObject_7$3;
|
|
30363
30383
|
|
|
30364
|
-
var Colors$
|
|
30365
|
-
Spacing$
|
|
30384
|
+
var Colors$a = ddsBaseTokens.colors,
|
|
30385
|
+
Spacing$h = ddsBaseTokens.spacing;
|
|
30366
30386
|
var cellBase = {};
|
|
30367
30387
|
var compactCellBase = {
|
|
30368
|
-
padding: "" + Spacing$
|
|
30388
|
+
padding: "" + Spacing$h.SizesDdsSpacingLocalX075
|
|
30369
30389
|
};
|
|
30370
30390
|
var headBase = {
|
|
30371
|
-
backgroundColor: Colors$
|
|
30391
|
+
backgroundColor: Colors$a.DdsColorPrimaryLightest
|
|
30372
30392
|
};
|
|
30373
30393
|
var dataBase = {};
|
|
30374
30394
|
var normalCellBase = {
|
|
30375
|
-
padding: Spacing$
|
|
30395
|
+
padding: Spacing$h.SizesDdsSpacingLocalX15 + " " + Spacing$h.SizesDdsSpacingLocalX075
|
|
30376
30396
|
};
|
|
30377
30397
|
var sortCellIconBase = {
|
|
30378
|
-
marginInlineStart: Spacing$
|
|
30398
|
+
marginInlineStart: Spacing$h.SizesDdsSpacingLocalX05
|
|
30379
30399
|
};
|
|
30380
30400
|
var textAndIconBase = {
|
|
30381
|
-
marginRight: Spacing$
|
|
30401
|
+
marginRight: Spacing$h.SizesDdsSpacingLocalX075
|
|
30382
30402
|
};
|
|
30383
30403
|
var cellTokens = {
|
|
30384
30404
|
base: cellBase,
|
|
@@ -30411,12 +30431,12 @@ var cellTokens = {
|
|
|
30411
30431
|
var StyledTable = styled.table.withConfig({
|
|
30412
30432
|
displayName: "Table__StyledTable",
|
|
30413
30433
|
componentId: "sc-bw0w0a-0"
|
|
30414
|
-
})(templateObject_3$
|
|
30434
|
+
})(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n border-spacing: 0;\n border-collapse: collapse;\n *::selection {\n ", "\n }\n ", "\n ", "\n ", "\n"], ["\n border-spacing: 0;\n border-collapse: collapse;\n *::selection {\n ", "\n }\n ", "\n ", "\n ", "\n"])), typographyTokens.selection.base, scrollbarStyling, function (_a) {
|
|
30415
30435
|
var density = _a.density;
|
|
30416
|
-
return density && Ae(templateObject_1$
|
|
30436
|
+
return density && Ae(templateObject_1$y || (templateObject_1$y = __makeTemplateObject(["\n td,\n th {\n ", "\n }\n "], ["\n td,\n th {\n ", "\n }\n "])), cellTokens.density[density].base);
|
|
30417
30437
|
}, function (_a) {
|
|
30418
30438
|
var stickyHeader = _a.stickyHeader;
|
|
30419
|
-
return stickyHeader && Ae(templateObject_2$
|
|
30439
|
+
return stickyHeader && Ae(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n tr[type='head'] {\n th[type='head'] {\n position: sticky;\n top: 0;\n }\n }\n "], ["\n tr[type='head'] {\n th[type='head'] {\n position: sticky;\n top: 0;\n }\n }\n "])));
|
|
30420
30440
|
});
|
|
30421
30441
|
var Table = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30422
30442
|
var _b = _a.density,
|
|
@@ -30433,12 +30453,12 @@ var Table = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30433
30453
|
children: children
|
|
30434
30454
|
}), void 0);
|
|
30435
30455
|
});
|
|
30436
|
-
var templateObject_1$
|
|
30456
|
+
var templateObject_1$y, templateObject_2$n, templateObject_3$e;
|
|
30437
30457
|
|
|
30438
30458
|
var StyledBody = styled.tbody.withConfig({
|
|
30439
30459
|
displayName: "Body__StyledBody",
|
|
30440
30460
|
componentId: "sc-67qjfs-0"
|
|
30441
|
-
})(templateObject_1$
|
|
30461
|
+
})(templateObject_1$x || (templateObject_1$x = __makeTemplateObject([""], [""])));
|
|
30442
30462
|
var Body$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30443
30463
|
var children = _a.children,
|
|
30444
30464
|
rest = __rest(_a, ["children"]);
|
|
@@ -30451,12 +30471,12 @@ var Body$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30451
30471
|
children: children
|
|
30452
30472
|
}), void 0);
|
|
30453
30473
|
});
|
|
30454
|
-
var templateObject_1$
|
|
30474
|
+
var templateObject_1$x;
|
|
30455
30475
|
|
|
30456
30476
|
var StyledHead = styled.thead.withConfig({
|
|
30457
30477
|
displayName: "Head__StyledHead",
|
|
30458
30478
|
componentId: "sc-vzd2kv-0"
|
|
30459
|
-
})(templateObject_1$
|
|
30479
|
+
})(templateObject_1$w || (templateObject_1$w = __makeTemplateObject([""], [""])));
|
|
30460
30480
|
var Head = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30461
30481
|
var children = _a.children,
|
|
30462
30482
|
rest = __rest(_a, ["children"]);
|
|
@@ -30469,11 +30489,11 @@ var Head = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30469
30489
|
children: children
|
|
30470
30490
|
}), void 0);
|
|
30471
30491
|
});
|
|
30472
|
-
var templateObject_1$
|
|
30492
|
+
var templateObject_1$w;
|
|
30473
30493
|
|
|
30474
|
-
var Colors$
|
|
30494
|
+
var Colors$9 = ddsBaseTokens.colors,
|
|
30475
30495
|
FontPackages$a = ddsBaseTokens.fontPackages,
|
|
30476
|
-
Border$
|
|
30496
|
+
Border$9 = ddsBaseTokens.border;
|
|
30477
30497
|
var textDefault$4 = ddsReferenceTokens.textDefault;
|
|
30478
30498
|
|
|
30479
30499
|
var bodyRowBase = __assign({
|
|
@@ -30488,23 +30508,23 @@ var headRowBase = __assign(__assign({
|
|
|
30488
30508
|
});
|
|
30489
30509
|
|
|
30490
30510
|
var bodyOddBase = {
|
|
30491
|
-
backgroundColor: Colors$
|
|
30511
|
+
backgroundColor: Colors$9.DdsColorNeutralsWhite
|
|
30492
30512
|
};
|
|
30493
30513
|
var bodyEvenBase = {
|
|
30494
|
-
backgroundColor: Colors$
|
|
30514
|
+
backgroundColor: Colors$9.DdsColorNeutralsGray1
|
|
30495
30515
|
};
|
|
30496
30516
|
var bodySelectedBase = {
|
|
30497
|
-
backgroundColor: Colors$
|
|
30517
|
+
backgroundColor: Colors$9.DdsColorSecondaryLightest
|
|
30498
30518
|
};
|
|
30499
30519
|
var bodyHoverBase = {
|
|
30500
|
-
backgroundColor: Colors$
|
|
30520
|
+
backgroundColor: Colors$9.DdsColorSecondaryLightest
|
|
30501
30521
|
};
|
|
30502
30522
|
|
|
30503
30523
|
var bodySumBase = __assign(__assign({}, FontPackages$a.body_sans_02.base), {
|
|
30504
30524
|
fontWeight: 600,
|
|
30505
|
-
borderTop: Border$
|
|
30506
|
-
borderBottom: Border$
|
|
30507
|
-
backgroundColor: Colors$
|
|
30525
|
+
borderTop: Border$9.BordersDdsBorderStyleLightStrokeWeight + " solid " + Colors$9.DdsColorNeutralsGray4,
|
|
30526
|
+
borderBottom: Border$9.BordersDdsBorderStyleLightStrokeWeight + " solid " + Colors$9.DdsColorNeutralsGray4,
|
|
30527
|
+
backgroundColor: Colors$9.DdsColorNeutralsWhite
|
|
30508
30528
|
});
|
|
30509
30529
|
|
|
30510
30530
|
var rowTokens = {
|
|
@@ -30537,7 +30557,7 @@ var rowTokens = {
|
|
|
30537
30557
|
};
|
|
30538
30558
|
|
|
30539
30559
|
var bodyStyles = function bodyStyles(mode, selected) {
|
|
30540
|
-
return Ae(templateObject_3$
|
|
30560
|
+
return Ae(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.mode[mode].base), selected && Ae(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.selected.base));
|
|
30541
30561
|
};
|
|
30542
30562
|
|
|
30543
30563
|
var StyledRow = styled.tr.withConfig({
|
|
@@ -30545,13 +30565,13 @@ var StyledRow = styled.tr.withConfig({
|
|
|
30545
30565
|
componentId: "sc-15vvjkk-0"
|
|
30546
30566
|
})(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n transition: background-color 0.2s;\n\n ", "\n\n ", "\n"], ["\n transition: background-color 0.2s;\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
30547
30567
|
var type = _a.type;
|
|
30548
|
-
return type && Ae(templateObject_4$
|
|
30568
|
+
return type && Ae(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens[type].base);
|
|
30549
30569
|
}, function (_a) {
|
|
30550
30570
|
var type = _a.type,
|
|
30551
30571
|
mode = _a.mode,
|
|
30552
30572
|
selected = _a.selected,
|
|
30553
30573
|
hoverable = _a.hoverable;
|
|
30554
|
-
return type === 'body' && Ae(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n &:nth-of-type(even) {\n ", "\n ", "\n }\n\n &:nth-of-type(odd) {\n ", "\n ", "\n }\n\n ", "\n "], ["\n &:nth-of-type(even) {\n ", "\n ", "\n }\n\n &:nth-of-type(odd) {\n ", "\n ", "\n }\n\n ", "\n "])), rowTokens.body.even.base, bodyStyles(mode, selected), rowTokens.body.odd.base, bodyStyles(mode, selected), hoverable && Ae(templateObject_5$
|
|
30574
|
+
return type === 'body' && Ae(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n &:nth-of-type(even) {\n ", "\n ", "\n }\n\n &:nth-of-type(odd) {\n ", "\n ", "\n }\n\n ", "\n "], ["\n &:nth-of-type(even) {\n ", "\n ", "\n }\n\n &:nth-of-type(odd) {\n ", "\n ", "\n }\n\n ", "\n "])), rowTokens.body.even.base, bodyStyles(mode, selected), rowTokens.body.odd.base, bodyStyles(mode, selected), hoverable && Ae(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\n &:hover {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n "])), rowTokens.body.hover.base));
|
|
30555
30575
|
});
|
|
30556
30576
|
var Row = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30557
30577
|
var _b = _a.type,
|
|
@@ -30572,18 +30592,18 @@ var Row = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30572
30592
|
children: children
|
|
30573
30593
|
}), void 0);
|
|
30574
30594
|
});
|
|
30575
|
-
var templateObject_1$
|
|
30595
|
+
var templateObject_1$v, templateObject_2$m, templateObject_3$d, templateObject_4$c, templateObject_5$5, templateObject_6$4, templateObject_7$2;
|
|
30576
30596
|
|
|
30577
30597
|
var layoutStyle = function layoutStyle(layout) {
|
|
30578
30598
|
switch (layout) {
|
|
30579
30599
|
case 'center':
|
|
30580
|
-
return Ae(templateObject_1$
|
|
30600
|
+
return Ae(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
|
|
30581
30601
|
|
|
30582
30602
|
case 'right':
|
|
30583
|
-
return Ae(templateObject_2$
|
|
30603
|
+
return Ae(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n justify-content: flex-end;\n "], ["\n justify-content: flex-end;\n "])));
|
|
30584
30604
|
|
|
30585
30605
|
case 'text and icon':
|
|
30586
|
-
return Ae(templateObject_3$
|
|
30606
|
+
return Ae(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n & > *:first-child {\n ", "\n }\n "], ["\n & > *:first-child {\n ", "\n }\n "])), cellTokens.data.layout.textAndIcon.base);
|
|
30587
30607
|
|
|
30588
30608
|
default:
|
|
30589
30609
|
case 'left':
|
|
@@ -30594,9 +30614,9 @@ var layoutStyle = function layoutStyle(layout) {
|
|
|
30594
30614
|
var StyledCell = styled.td.withConfig({
|
|
30595
30615
|
displayName: "Cell__StyledCell",
|
|
30596
30616
|
componentId: "sc-ghfpfs-0"
|
|
30597
|
-
})(templateObject_5$
|
|
30617
|
+
})(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), cellTokens.base, function (_a) {
|
|
30598
30618
|
var type = _a.type;
|
|
30599
|
-
return type && Ae(templateObject_4$
|
|
30619
|
+
return type && Ae(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cellTokens[type].base);
|
|
30600
30620
|
});
|
|
30601
30621
|
var InnerCell = styled.div.withConfig({
|
|
30602
30622
|
displayName: "Cell__InnerCell",
|
|
@@ -30643,7 +30663,7 @@ var Cell = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30643
30663
|
}), void 0)
|
|
30644
30664
|
}), void 0);
|
|
30645
30665
|
});
|
|
30646
|
-
var templateObject_1$
|
|
30666
|
+
var templateObject_1$u, templateObject_2$l, templateObject_3$c, templateObject_4$b, templateObject_5$4, templateObject_6$3;
|
|
30647
30667
|
|
|
30648
30668
|
var KeyboardArrowDown = createCommonjsModule(function (module, exports) {
|
|
30649
30669
|
|
|
@@ -30717,17 +30737,17 @@ exports.default = _default;
|
|
|
30717
30737
|
|
|
30718
30738
|
var UnfoldMoreIcon = /*@__PURE__*/getDefaultExportFromCjs(UnfoldMore);
|
|
30719
30739
|
|
|
30720
|
-
var removeButtonStyling = Ae(templateObject_1$
|
|
30721
|
-
var templateObject_1$
|
|
30740
|
+
var removeButtonStyling = Ae(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n"], ["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n"])));
|
|
30741
|
+
var templateObject_1$t;
|
|
30722
30742
|
|
|
30723
30743
|
var SortIconWrapper = styled(IconWrapper$1).withConfig({
|
|
30724
30744
|
displayName: "SortCell__SortIconWrapper",
|
|
30725
30745
|
componentId: "sc-1l3jzvh-0"
|
|
30726
|
-
})(templateObject_1$
|
|
30727
|
-
var StyledButton$
|
|
30746
|
+
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cellTokens.head.sortCell.icon.base);
|
|
30747
|
+
var StyledButton$2 = styled.button.withConfig({
|
|
30728
30748
|
displayName: "SortCell__StyledButton",
|
|
30729
30749
|
componentId: "sc-1l3jzvh-1"
|
|
30730
|
-
})(templateObject_2$
|
|
30750
|
+
})(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n"], ["\n ", "\n display: flex;\n align-items: center;\n"])), removeButtonStyling);
|
|
30731
30751
|
|
|
30732
30752
|
var makeSortIcon = function makeSortIcon(isSorted, sortOrder) {
|
|
30733
30753
|
if (!isSorted || !sortOrder) {
|
|
@@ -30758,7 +30778,7 @@ var SortCell = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30758
30778
|
type: "head",
|
|
30759
30779
|
"aria-sort": isSorted && sortOrder ? sortOrder : undefined
|
|
30760
30780
|
}, rest, {
|
|
30761
|
-
children: jsxRuntime.jsxs(StyledButton$
|
|
30781
|
+
children: jsxRuntime.jsxs(StyledButton$2, __assign({
|
|
30762
30782
|
onClick: onClick,
|
|
30763
30783
|
"aria-description": "Aktiver for \xE5 endre sorteringsrekkef\xF8lge"
|
|
30764
30784
|
}, {
|
|
@@ -30766,12 +30786,12 @@ var SortCell = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30766
30786
|
}), void 0)
|
|
30767
30787
|
}), void 0);
|
|
30768
30788
|
});
|
|
30769
|
-
var templateObject_1$
|
|
30789
|
+
var templateObject_1$s, templateObject_2$k;
|
|
30770
30790
|
|
|
30771
30791
|
var StyledFoot = styled.tfoot.withConfig({
|
|
30772
30792
|
displayName: "Foot__StyledFoot",
|
|
30773
30793
|
componentId: "sc-tfpehd-0"
|
|
30774
|
-
})(templateObject_1$
|
|
30794
|
+
})(templateObject_1$r || (templateObject_1$r = __makeTemplateObject([""], [""])));
|
|
30775
30795
|
var Foot = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30776
30796
|
var children = _a.children,
|
|
30777
30797
|
rest = __rest(_a, ["children"]);
|
|
@@ -30784,14 +30804,14 @@ var Foot = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30784
30804
|
children: children
|
|
30785
30805
|
}), void 0);
|
|
30786
30806
|
});
|
|
30787
|
-
var templateObject_1$
|
|
30807
|
+
var templateObject_1$r;
|
|
30788
30808
|
|
|
30789
30809
|
var Wrapper$4 = styled.div.withConfig({
|
|
30790
30810
|
displayName: "TableWrapper__Wrapper",
|
|
30791
30811
|
componentId: "sc-eb384b-0"
|
|
30792
|
-
})(templateObject_2$
|
|
30812
|
+
})(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (_a) {
|
|
30793
30813
|
var overflowX = _a.overflowX;
|
|
30794
|
-
return overflowX && Ae(templateObject_1$
|
|
30814
|
+
return overflowX && Ae(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n overflow-x: auto;\n "], ["\n overflow-x: auto;\n "])));
|
|
30795
30815
|
}, scrollbarStyling);
|
|
30796
30816
|
var TableWrapper = function TableWrapper(_a) {
|
|
30797
30817
|
var children = _a.children,
|
|
@@ -30838,7 +30858,7 @@ var TableWrapper = function TableWrapper(_a) {
|
|
|
30838
30858
|
children: children
|
|
30839
30859
|
}), void 0);
|
|
30840
30860
|
};
|
|
30841
|
-
var templateObject_1$
|
|
30861
|
+
var templateObject_1$q, templateObject_2$j;
|
|
30842
30862
|
|
|
30843
30863
|
var Breadcrumb = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30844
30864
|
var children = _a.children,
|
|
@@ -30907,13 +30927,13 @@ exports.default = _default;
|
|
|
30907
30927
|
|
|
30908
30928
|
var ArrowBackOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(ArrowBackOutlined);
|
|
30909
30929
|
|
|
30910
|
-
var Colors$
|
|
30911
|
-
Spacing$
|
|
30930
|
+
var Colors$8 = ddsBaseTokens.colors,
|
|
30931
|
+
Spacing$g = ddsBaseTokens.spacing,
|
|
30912
30932
|
FontPackages$9 = ddsBaseTokens.fontPackages;
|
|
30913
30933
|
var iconBase$2 = {
|
|
30914
|
-
color: Colors$
|
|
30915
|
-
marginLeft: Spacing$
|
|
30916
|
-
marginRight: Spacing$
|
|
30934
|
+
color: Colors$8.DdsColorInteractiveBase,
|
|
30935
|
+
marginLeft: Spacing$g.SizesDdsSpacingLocalX05,
|
|
30936
|
+
marginRight: Spacing$g.SizesDdsSpacingLocalX05
|
|
30917
30937
|
};
|
|
30918
30938
|
|
|
30919
30939
|
var breadcrumbBase = __assign({}, FontPackages$9.body_sans_02.base);
|
|
@@ -30931,19 +30951,19 @@ var breadcrumbTokens = {
|
|
|
30931
30951
|
var List$2 = styled.ol.withConfig({
|
|
30932
30952
|
displayName: "Breadcrumbs__List",
|
|
30933
30953
|
componentId: "sc-xdj21o-0"
|
|
30934
|
-
})(templateObject_1$
|
|
30954
|
+
})(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n list-style: none;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"], ["\n list-style: none;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"])));
|
|
30935
30955
|
var ListItem$2 = styled.li.withConfig({
|
|
30936
30956
|
displayName: "Breadcrumbs__ListItem",
|
|
30937
30957
|
componentId: "sc-xdj21o-1"
|
|
30938
|
-
})(templateObject_2$
|
|
30958
|
+
})(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n align-items: center;\n display: flex;\n ", "\n"], ["\n align-items: center;\n display: flex;\n ", "\n"])), breadcrumbTokens.breadcrumb.base);
|
|
30939
30959
|
var BreadcrumbIcon = styled(ChevronRightOutlinedIcon).withConfig({
|
|
30940
30960
|
displayName: "Breadcrumbs__BreadcrumbIcon",
|
|
30941
30961
|
componentId: "sc-xdj21o-2"
|
|
30942
|
-
})(templateObject_3$
|
|
30962
|
+
})(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), breadcrumbTokens.icon.base);
|
|
30943
30963
|
var BackIcon = styled(ArrowBackOutlinedIcon).withConfig({
|
|
30944
30964
|
displayName: "Breadcrumbs__BackIcon",
|
|
30945
30965
|
componentId: "sc-xdj21o-3"
|
|
30946
|
-
})(templateObject_4$
|
|
30966
|
+
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), breadcrumbTokens.icon.base);
|
|
30947
30967
|
var Breadcrumbs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30948
30968
|
var smallScreen = _a.smallScreen,
|
|
30949
30969
|
children = _a.children,
|
|
@@ -30975,7 +30995,7 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30975
30995
|
}, void 0)
|
|
30976
30996
|
}), void 0);
|
|
30977
30997
|
});
|
|
30978
|
-
var templateObject_1$
|
|
30998
|
+
var templateObject_1$p, templateObject_2$i, templateObject_3$b, templateObject_4$a;
|
|
30979
30999
|
|
|
30980
31000
|
var ChevronLeftOutlined = createCommonjsModule(function (module, exports) {
|
|
30981
31001
|
|
|
@@ -31112,44 +31132,44 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
31112
31132
|
return arrayRange(1, pagesAmount);
|
|
31113
31133
|
}
|
|
31114
31134
|
|
|
31115
|
-
var Spacing$
|
|
31116
|
-
Colors$
|
|
31135
|
+
var Spacing$f = ddsBaseTokens.spacing,
|
|
31136
|
+
Colors$7 = ddsBaseTokens.colors;
|
|
31117
31137
|
var listBase = {
|
|
31118
|
-
color: Colors$
|
|
31138
|
+
color: Colors$7.DdsColorNeutralsGray7
|
|
31119
31139
|
};
|
|
31120
31140
|
var paginationTokens = {
|
|
31121
31141
|
container: {
|
|
31122
|
-
spaceBetweenItems: Spacing$
|
|
31142
|
+
spaceBetweenItems: Spacing$f.SizesDdsSpacingLocalX075
|
|
31123
31143
|
},
|
|
31124
31144
|
indicatorsContainer: {
|
|
31125
|
-
spacing: Spacing$
|
|
31145
|
+
spacing: Spacing$f.SizesDdsSpacingLocalX075
|
|
31126
31146
|
},
|
|
31127
31147
|
list: {
|
|
31128
31148
|
base: listBase
|
|
31129
31149
|
},
|
|
31130
31150
|
paginationItem: {
|
|
31131
|
-
spacing: Spacing$
|
|
31151
|
+
spacing: Spacing$f.SizesDdsSpacingLocalX075
|
|
31132
31152
|
}
|
|
31133
31153
|
};
|
|
31134
31154
|
|
|
31135
31155
|
var Nav = styled.nav.withConfig({
|
|
31136
31156
|
displayName: "Pagination__Nav",
|
|
31137
31157
|
componentId: "sc-5ltegq-0"
|
|
31138
|
-
})(templateObject_1$
|
|
31158
|
+
})(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
31139
31159
|
var List$1 = styled.ol.withConfig({
|
|
31140
31160
|
displayName: "Pagination__List",
|
|
31141
31161
|
componentId: "sc-5ltegq-1"
|
|
31142
|
-
})(templateObject_2$
|
|
31162
|
+
})(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n display: grid;\n grid-auto-flow: column;\n gap: ", ";\n ", "\n margin: 0;\n padding: 0;\n"], ["\n display: grid;\n grid-auto-flow: column;\n gap: ", ";\n ", "\n margin: 0;\n padding: 0;\n"])), paginationTokens.paginationItem.spacing, paginationTokens.list.base);
|
|
31143
31163
|
var ListItem$1 = styled.li.withConfig({
|
|
31144
31164
|
displayName: "Pagination__ListItem",
|
|
31145
31165
|
componentId: "sc-5ltegq-2"
|
|
31146
|
-
})(templateObject_3$
|
|
31147
|
-
var Container$
|
|
31166
|
+
})(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n list-style: none;\n display: inline-grid;\n align-content: center;\n"], ["\n list-style: none;\n display: inline-grid;\n align-content: center;\n"])));
|
|
31167
|
+
var Container$5 = styled.div.withConfig({
|
|
31148
31168
|
displayName: "Pagination__Container",
|
|
31149
31169
|
componentId: "sc-5ltegq-3"
|
|
31150
31170
|
})(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n display: inline-flex;\n gap: ", ";\n ", "\n"], ["\n display: inline-flex;\n gap: ", ";\n ", "\n"])), paginationTokens.container.spaceBetweenItems, function (_a) {
|
|
31151
31171
|
var smallScreen = _a.smallScreen;
|
|
31152
|
-
return smallScreen ? Ae(templateObject_4$
|
|
31172
|
+
return smallScreen ? Ae(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n flex-direction: column;\n align-items: center;\n "], ["\n flex-direction: column;\n align-items: center;\n "]))) : Ae(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n justify-content: space-between;\n flex-wrap: wrap;\n "], ["\n justify-content: space-between;\n flex-wrap: wrap;\n "])));
|
|
31153
31173
|
});
|
|
31154
31174
|
var IndicatorsContainer = styled.div.withConfig({
|
|
31155
31175
|
displayName: "Pagination__IndicatorsContainer",
|
|
@@ -31315,7 +31335,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31315
31335
|
var activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
|
|
31316
31336
|
var activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
|
|
31317
31337
|
var navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation;
|
|
31318
|
-
return !withCounter && !withSelect ? navigationToBeRendered : jsxRuntime.jsxs(Container$
|
|
31338
|
+
return !withCounter && !withSelect ? navigationToBeRendered : jsxRuntime.jsxs(Container$5, __assign({}, containerProps, {
|
|
31319
31339
|
children: [jsxRuntime.jsxs(IndicatorsContainer, {
|
|
31320
31340
|
children: [withSelect && jsxRuntime.jsx(Select, {
|
|
31321
31341
|
options: selectOptions,
|
|
@@ -31337,31 +31357,31 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31337
31357
|
}, void 0), navigationToBeRendered]
|
|
31338
31358
|
}), void 0);
|
|
31339
31359
|
});
|
|
31340
|
-
var templateObject_1$
|
|
31360
|
+
var templateObject_1$o, templateObject_2$h, templateObject_3$a, templateObject_4$9, templateObject_5$3, templateObject_6$2, templateObject_7$1;
|
|
31341
31361
|
|
|
31342
|
-
var Border$
|
|
31343
|
-
Spacing$
|
|
31362
|
+
var Border$8 = ddsBaseTokens.border,
|
|
31363
|
+
Spacing$e = ddsBaseTokens.spacing;
|
|
31344
31364
|
var dividerColors = {
|
|
31345
|
-
primary: Border$
|
|
31346
|
-
primaryLighter: Border$
|
|
31365
|
+
primary: Border$8.BordersDdsBorderStyleDarkStroke,
|
|
31366
|
+
primaryLighter: Border$8.BordersDdsBorderStyleLightStroke
|
|
31347
31367
|
};
|
|
31348
|
-
var base$
|
|
31368
|
+
var base$8 = {
|
|
31349
31369
|
border: 0,
|
|
31350
31370
|
backgroundColor: 'transparent',
|
|
31351
|
-
borderTop: Border$
|
|
31352
|
-
marginTop: Spacing$
|
|
31353
|
-
marginBottom: Spacing$
|
|
31371
|
+
borderTop: Border$8.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
31372
|
+
marginTop: Spacing$e.SizesDdsSpacingLocalX1,
|
|
31373
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX1
|
|
31354
31374
|
};
|
|
31355
31375
|
var dividerTokens = {
|
|
31356
|
-
base: base$
|
|
31376
|
+
base: base$8
|
|
31357
31377
|
};
|
|
31358
31378
|
|
|
31359
31379
|
var DividerLine = styled.hr.withConfig({
|
|
31360
31380
|
displayName: "Divider__DividerLine",
|
|
31361
31381
|
componentId: "sc-ggdopz-0"
|
|
31362
|
-
})(templateObject_2$
|
|
31382
|
+
})(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), dividerTokens.base, function (_a) {
|
|
31363
31383
|
var color = _a.color;
|
|
31364
|
-
return color && Ae(templateObject_1$
|
|
31384
|
+
return color && Ae(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n border-color: ", ";\n "], ["\n border-color: ", ";\n "])), dividerColors[color]);
|
|
31365
31385
|
});
|
|
31366
31386
|
var Divider = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31367
31387
|
var _b = _a.color,
|
|
@@ -31376,24 +31396,24 @@ var Divider = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31376
31396
|
ref: ref
|
|
31377
31397
|
}, lineProps), void 0);
|
|
31378
31398
|
});
|
|
31379
|
-
var templateObject_1$
|
|
31399
|
+
var templateObject_1$n, templateObject_2$g;
|
|
31380
31400
|
|
|
31381
|
-
var img$
|
|
31401
|
+
var img$3 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='6.7085' cy='6.7085' r='2.625' fill='%230B0D0E'/%3e%3c/svg%3e";
|
|
31382
31402
|
|
|
31383
|
-
var img$
|
|
31403
|
+
var img$2 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect x='3.04346' y='6.08691' width='7.30435' height='1.82609' fill='%230B0D0E'/%3e%3c/svg%3e";
|
|
31384
31404
|
|
|
31385
|
-
var img = "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";
|
|
31405
|
+
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";
|
|
31386
31406
|
|
|
31387
|
-
var Spacing$
|
|
31388
|
-
var base$
|
|
31407
|
+
var Spacing$d = ddsBaseTokens.spacing;
|
|
31408
|
+
var base$7 = {
|
|
31389
31409
|
lineHeight: '2.5em'
|
|
31390
31410
|
};
|
|
31391
31411
|
var listItemTokens = {
|
|
31392
|
-
base: base$
|
|
31393
|
-
bulletSpacing: Spacing$
|
|
31412
|
+
base: base$7,
|
|
31413
|
+
bulletSpacing: Spacing$d.SizesDdsSpacingLocalX025
|
|
31394
31414
|
};
|
|
31395
31415
|
|
|
31396
|
-
var Spacing$
|
|
31416
|
+
var Spacing$c = ddsBaseTokens.spacing,
|
|
31397
31417
|
FontPackages$8 = ddsBaseTokens.fontPackages;
|
|
31398
31418
|
var textDefault$3 = ddsReferenceTokens.textDefault;
|
|
31399
31419
|
var inheritBase = {
|
|
@@ -31416,13 +31436,13 @@ var bodySerif03Base = __assign({}, FontPackages$8.body_serif_03.base);
|
|
|
31416
31436
|
|
|
31417
31437
|
var bodySerif04Base = __assign({}, FontPackages$8.body_serif_04.base);
|
|
31418
31438
|
|
|
31419
|
-
var base$
|
|
31420
|
-
margin: Spacing$
|
|
31439
|
+
var base$6 = {
|
|
31440
|
+
margin: Spacing$c.SizesDdsSpacingLocalX1 + " 0",
|
|
31421
31441
|
color: textDefault$3.textColor
|
|
31422
31442
|
};
|
|
31423
31443
|
var listTokens = {
|
|
31424
|
-
base: base$
|
|
31425
|
-
spaceLeft: Spacing$
|
|
31444
|
+
base: base$6,
|
|
31445
|
+
spaceLeft: Spacing$c.SizesDdsSpacingLocalX2,
|
|
31426
31446
|
sizes: {
|
|
31427
31447
|
bodySans01: bodySans01Base,
|
|
31428
31448
|
bodySans02: bodySans02Base,
|
|
@@ -31441,12 +31461,12 @@ var ulPaddingLeft = listTokens.spaceLeft + " - (" + liTextPadding + ")";
|
|
|
31441
31461
|
var StyledList = styled.ul.withConfig({
|
|
31442
31462
|
displayName: "List__StyledList",
|
|
31443
31463
|
componentId: "sc-1f1c7eb-0"
|
|
31444
|
-
})(templateObject_4$
|
|
31464
|
+
})(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n ", "\n ul, ol {\n margin: 0;\n }\n *::selection {\n ", "\n }\n ", "\n ", "\n"], ["\n ", "\n ul, ol {\n margin: 0;\n }\n *::selection {\n ", "\n }\n ", "\n ", "\n"])), listTokens.base, typographyTokens.selection.base, function (_a) {
|
|
31445
31465
|
var typographyType = _a.typographyType;
|
|
31446
|
-
return typographyType && Ae(templateObject_1$
|
|
31466
|
+
return typographyType && Ae(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n ", "\n ul,\n ol {\n ", "\n }\n "], ["\n ", "\n ul,\n ol {\n ", "\n }\n "])), listTokens.sizes[typographyType], listTokens.sizes[typographyType]);
|
|
31447
31467
|
}, function (_a) {
|
|
31448
31468
|
var listType = _a.listType;
|
|
31449
|
-
return listType === 'unordered' ? Ae(templateObject_2$
|
|
31469
|
+
return listType === 'unordered' ? Ae(templateObject_2$f || (templateObject_2$f = __makeTemplateObject(["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "], ["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "])), "calc(" + ulPaddingLeft + ")", "calc(" + liTextPadding + ")", "calc((" + listItemTokens.base.lineHeight + " / 2) - 0.5em )", img$3, img$2, img$1) : Ae(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "], ["\n padding-left: ", ";\n & > li > ol {\n list-style-type: lower-alpha;\n }\n & > li > ol > li > ol {\n list-style-type: lower-roman;\n }\n "])), listTokens.spaceLeft);
|
|
31450
31470
|
});
|
|
31451
31471
|
var List = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31452
31472
|
var _b = _a.listType,
|
|
@@ -31469,12 +31489,12 @@ var List = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31469
31489
|
children: children
|
|
31470
31490
|
}), void 0);
|
|
31471
31491
|
});
|
|
31472
|
-
var templateObject_1$
|
|
31492
|
+
var templateObject_1$m, templateObject_2$f, templateObject_3$9, templateObject_4$8;
|
|
31473
31493
|
|
|
31474
31494
|
var StyledListItem = styled.li.withConfig({
|
|
31475
31495
|
displayName: "ListItem__StyledListItem",
|
|
31476
31496
|
componentId: "sc-17s9l0b-0"
|
|
31477
|
-
})(templateObject_1$
|
|
31497
|
+
})(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), listItemTokens.base);
|
|
31478
31498
|
var ListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31479
31499
|
var children = _a.children,
|
|
31480
31500
|
rest = __rest(_a, ["children"]);
|
|
@@ -31485,11 +31505,11 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31485
31505
|
children: children
|
|
31486
31506
|
}), void 0);
|
|
31487
31507
|
});
|
|
31488
|
-
var templateObject_1$
|
|
31508
|
+
var templateObject_1$l;
|
|
31489
31509
|
|
|
31490
|
-
var Spacing$
|
|
31510
|
+
var Spacing$b = ddsBaseTokens.spacing,
|
|
31491
31511
|
FontPackages$7 = ddsBaseTokens.fontPackages,
|
|
31492
|
-
Colors$
|
|
31512
|
+
Colors$6 = ddsBaseTokens.colors;
|
|
31493
31513
|
var textDefault$2 = ddsReferenceTokens.textDefault;
|
|
31494
31514
|
|
|
31495
31515
|
var boldBase = __assign(__assign(__assign({}, FontPackages$7.body_sans_03.base), typographyTokens.style.bold.base), {
|
|
@@ -31497,7 +31517,7 @@ var boldBase = __assign(__assign(__assign({}, FontPackages$7.body_sans_03.base),
|
|
|
31497
31517
|
});
|
|
31498
31518
|
|
|
31499
31519
|
var smallBase = __assign(__assign({}, FontPackages$7.body_sans_01.base), {
|
|
31500
|
-
color: Colors$
|
|
31520
|
+
color: Colors$6.DdsColorNeutralsGray7
|
|
31501
31521
|
});
|
|
31502
31522
|
|
|
31503
31523
|
var descriptionListTermTokens = {
|
|
@@ -31509,16 +31529,16 @@ var descriptionListTermTokens = {
|
|
|
31509
31529
|
base: boldBase
|
|
31510
31530
|
}
|
|
31511
31531
|
},
|
|
31512
|
-
unwrappedTopAndBottomSpace: Spacing$
|
|
31513
|
-
unwrappedBetweenSpace: Spacing$
|
|
31532
|
+
unwrappedTopAndBottomSpace: Spacing$b.SizesDdsSpacingLocalX1,
|
|
31533
|
+
unwrappedBetweenSpace: Spacing$b.SizesDdsSpacingLocalX2
|
|
31514
31534
|
};
|
|
31515
31535
|
|
|
31516
31536
|
var DList = styled.dl.withConfig({
|
|
31517
31537
|
displayName: "DescriptionList__DList",
|
|
31518
31538
|
componentId: "sc-1ob73hm-0"
|
|
31519
|
-
})(templateObject_2$
|
|
31539
|
+
})(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n margin: 0;\n *::selection {\n ", "\n }\n ", "\n & > dt:first-child {\n margin-top: ", ";\n }\n & > dd:last-child {\n margin-bottom: ", ";\n }\n dd + dt {\n margin-top: ", ";\n }\n"], ["\n margin: 0;\n *::selection {\n ", "\n }\n ", "\n & > dt:first-child {\n margin-top: ", ";\n }\n & > dd:last-child {\n margin-bottom: ", ";\n }\n dd + dt {\n margin-top: ", ";\n }\n"])), typographyTokens.selection.base, function (_a) {
|
|
31520
31540
|
var appearance = _a.appearance;
|
|
31521
|
-
return appearance && Ae(templateObject_1$
|
|
31541
|
+
return appearance && Ae(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n dt {\n ", "\n }\n "], ["\n dt {\n ", "\n }\n "])), descriptionListTermTokens.appearance[appearance].base);
|
|
31522
31542
|
}, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedBetweenSpace);
|
|
31523
31543
|
var DescriptionList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31524
31544
|
var _b = _a.appearance,
|
|
@@ -31535,12 +31555,12 @@ var DescriptionList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31535
31555
|
children: children
|
|
31536
31556
|
}), void 0);
|
|
31537
31557
|
});
|
|
31538
|
-
var templateObject_1$
|
|
31558
|
+
var templateObject_1$k, templateObject_2$e;
|
|
31539
31559
|
|
|
31540
31560
|
var DListTerm = styled.dt.withConfig({
|
|
31541
31561
|
displayName: "DescriptionListTerm__DListTerm",
|
|
31542
31562
|
componentId: "sc-10w0rzr-0"
|
|
31543
|
-
})(templateObject_1$
|
|
31563
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([""], [""])));
|
|
31544
31564
|
var DescriptionListTerm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31545
31565
|
var children = _a.children,
|
|
31546
31566
|
rest = __rest(_a, ["children"]);
|
|
@@ -31553,21 +31573,21 @@ var DescriptionListTerm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31553
31573
|
children: children
|
|
31554
31574
|
}), void 0);
|
|
31555
31575
|
});
|
|
31556
|
-
var templateObject_1$
|
|
31576
|
+
var templateObject_1$j;
|
|
31557
31577
|
|
|
31558
|
-
var Spacing$
|
|
31578
|
+
var Spacing$a = ddsBaseTokens.spacing,
|
|
31559
31579
|
FontPackages$6 = ddsBaseTokens.fontPackages;
|
|
31560
31580
|
var textDefault$1 = ddsReferenceTokens.textDefault;
|
|
31561
31581
|
|
|
31562
|
-
var base$
|
|
31582
|
+
var base$5 = __assign(__assign({}, FontPackages$6.body_sans_03.base), {
|
|
31563
31583
|
color: textDefault$1.textColor
|
|
31564
31584
|
});
|
|
31565
31585
|
|
|
31566
31586
|
var iconBase$1 = {
|
|
31567
|
-
marginRight: Spacing$
|
|
31587
|
+
marginRight: Spacing$a.SizesDdsSpacingLocalX025
|
|
31568
31588
|
};
|
|
31569
31589
|
var descriptionListDescTokens = {
|
|
31570
|
-
base: base$
|
|
31590
|
+
base: base$5,
|
|
31571
31591
|
icon: {
|
|
31572
31592
|
base: iconBase$1
|
|
31573
31593
|
}
|
|
@@ -31576,11 +31596,11 @@ var descriptionListDescTokens = {
|
|
|
31576
31596
|
var DListDesc = styled.dd.withConfig({
|
|
31577
31597
|
displayName: "DescriptionListDesc__DListDesc",
|
|
31578
31598
|
componentId: "sc-1djcf0s-0"
|
|
31579
|
-
})(templateObject_1$
|
|
31599
|
+
})(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n margin-inline-start: 0;\n"], ["\n ", "\n display: flex;\n align-items: center;\n margin-inline-start: 0;\n"])), descriptionListDescTokens.base);
|
|
31580
31600
|
var StyledIconWrapper$1 = styled(IconWrapper$1).withConfig({
|
|
31581
31601
|
displayName: "DescriptionListDesc__StyledIconWrapper",
|
|
31582
31602
|
componentId: "sc-1djcf0s-1"
|
|
31583
|
-
})(templateObject_2$
|
|
31603
|
+
})(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), descriptionListDescTokens.icon.base);
|
|
31584
31604
|
var DescriptionListDesc = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31585
31605
|
var children = _a.children,
|
|
31586
31606
|
Icon = _a.Icon,
|
|
@@ -31597,22 +31617,22 @@ var DescriptionListDesc = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31597
31617
|
}, void 0), " ", children]
|
|
31598
31618
|
}), void 0);
|
|
31599
31619
|
});
|
|
31600
|
-
var templateObject_1$
|
|
31620
|
+
var templateObject_1$i, templateObject_2$d;
|
|
31601
31621
|
|
|
31602
|
-
var Spacing$
|
|
31603
|
-
var base$
|
|
31604
|
-
margin: Spacing$
|
|
31622
|
+
var Spacing$9 = ddsBaseTokens.spacing;
|
|
31623
|
+
var base$4 = {
|
|
31624
|
+
margin: Spacing$9.SizesDdsSpacingLocalX2
|
|
31605
31625
|
};
|
|
31606
31626
|
var descriptionListGroupTokens = {
|
|
31607
|
-
base: base$
|
|
31627
|
+
base: base$4
|
|
31608
31628
|
};
|
|
31609
31629
|
|
|
31610
31630
|
var DListGroup = styled.div.withConfig({
|
|
31611
31631
|
displayName: "DescriptionListGroup__DListGroup",
|
|
31612
31632
|
componentId: "sc-jkdc0o-0"
|
|
31613
|
-
})(templateObject_2$
|
|
31633
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), descriptionListGroupTokens.base, function (_a) {
|
|
31614
31634
|
var margin = _a.margin;
|
|
31615
|
-
return margin && Ae(templateObject_1$
|
|
31635
|
+
return margin && Ae(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n margin: ", ";\n "], ["\n margin: ", ";\n "])), margin);
|
|
31616
31636
|
});
|
|
31617
31637
|
var DescriptionListGroup = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31618
31638
|
var children = _a.children,
|
|
@@ -31627,47 +31647,47 @@ var DescriptionListGroup = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31627
31647
|
children: children
|
|
31628
31648
|
}), void 0);
|
|
31629
31649
|
});
|
|
31630
|
-
var templateObject_1$
|
|
31650
|
+
var templateObject_1$h, templateObject_2$c;
|
|
31631
31651
|
|
|
31632
|
-
var Colors$
|
|
31633
|
-
Border$
|
|
31652
|
+
var Colors$5 = ddsBaseTokens.colors,
|
|
31653
|
+
Border$7 = ddsBaseTokens.border,
|
|
31634
31654
|
FontPackages$5 = ddsBaseTokens.fontPackages;
|
|
31635
31655
|
var textDefault = ddsReferenceTokens.textDefault;
|
|
31636
31656
|
|
|
31637
|
-
var base$
|
|
31638
|
-
border: Border$
|
|
31657
|
+
var base$3 = __assign({
|
|
31658
|
+
border: Border$7.BordersDdsBorderStyleLightStrokeWeight + " solid"
|
|
31639
31659
|
}, FontPackages$5.body_sans_02.base);
|
|
31640
31660
|
|
|
31641
31661
|
var navigationHoverBase = {
|
|
31642
|
-
borderColor: Border$
|
|
31643
|
-
boxShadow: "0 0 0 1px " + Border$
|
|
31662
|
+
borderColor: Border$7.BordersDdsBorderFocusInputfieldStroke,
|
|
31663
|
+
boxShadow: "0 0 0 1px " + Border$7.BordersDdsBorderFocusInputfieldStroke
|
|
31644
31664
|
};
|
|
31645
31665
|
var navigationFocusBase = {
|
|
31646
|
-
borderColor: Border$
|
|
31647
|
-
boxShadow: "0 0 0 1px " + Border$
|
|
31666
|
+
borderColor: Border$7.BordersDdsBorderFocusCardStroke,
|
|
31667
|
+
boxShadow: "0 0 0 1px " + Border$7.BordersDdsBorderFocusCardStroke
|
|
31648
31668
|
};
|
|
31649
31669
|
var filledDarkBase = {
|
|
31650
|
-
backgroundColor: Colors$
|
|
31651
|
-
borderColor: Colors$
|
|
31652
|
-
color: Colors$
|
|
31670
|
+
backgroundColor: Colors$5.DdsColorPrimaryBase,
|
|
31671
|
+
borderColor: Colors$5.DdsColorPrimaryBase,
|
|
31672
|
+
color: Colors$5.DdsColorNeutralsWhite
|
|
31653
31673
|
};
|
|
31654
31674
|
var filledLightBase = {
|
|
31655
|
-
backgroundColor: Colors$
|
|
31656
|
-
borderColor: Colors$
|
|
31675
|
+
backgroundColor: Colors$5.DdsColorPrimaryLightest,
|
|
31676
|
+
borderColor: Colors$5.DdsColorPrimaryLightest,
|
|
31657
31677
|
color: textDefault.textColor
|
|
31658
31678
|
};
|
|
31659
31679
|
var strokeLightBase = {
|
|
31660
|
-
backgroundColor: Colors$
|
|
31661
|
-
borderColor:
|
|
31680
|
+
backgroundColor: Colors$5.DdsColorNeutralsWhite,
|
|
31681
|
+
borderColor: Border$7.BordersDdsBorderStyleLightStroke,
|
|
31662
31682
|
color: textDefault.textColor
|
|
31663
31683
|
};
|
|
31664
31684
|
var strokeDarkBase = {
|
|
31665
|
-
backgroundColor: Colors$
|
|
31666
|
-
borderColor:
|
|
31685
|
+
backgroundColor: Colors$5.DdsColorNeutralsWhite,
|
|
31686
|
+
borderColor: Border$7.BordersDdsBorderStyleDarkStroke,
|
|
31667
31687
|
color: textDefault.textColor
|
|
31668
31688
|
};
|
|
31669
31689
|
var cardTokens = {
|
|
31670
|
-
base: base$
|
|
31690
|
+
base: base$3,
|
|
31671
31691
|
navigation: {
|
|
31672
31692
|
hover: {
|
|
31673
31693
|
base: navigationHoverBase
|
|
@@ -31692,15 +31712,15 @@ var cardTokens = {
|
|
|
31692
31712
|
}
|
|
31693
31713
|
};
|
|
31694
31714
|
|
|
31695
|
-
var Container$
|
|
31715
|
+
var Container$4 = styled.div.withConfig({
|
|
31696
31716
|
displayName: "Card__Container",
|
|
31697
31717
|
componentId: "sc-410ao9-0"
|
|
31698
|
-
})(templateObject_4$
|
|
31718
|
+
})(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n ", "\n &::selection, *::selection {\n ", "\n }\n transition: box-shadow 0.2s, border-color 0.2s;\n ", "\n ", "\n"], ["\n ", "\n &::selection, *::selection {\n ", "\n }\n transition: box-shadow 0.2s, border-color 0.2s;\n ", "\n ", "\n"])), cardTokens.base, typographyTokens.selection.base, function (_a) {
|
|
31699
31719
|
var color = _a.color;
|
|
31700
|
-
return color && Ae(templateObject_1$
|
|
31720
|
+
return color && Ae(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cardTokens.colors[color].base);
|
|
31701
31721
|
}, function (_a) {
|
|
31702
31722
|
var cardType = _a.cardType;
|
|
31703
|
-
return cardType === 'navigation' ? Ae(templateObject_2$
|
|
31723
|
+
return cardType === 'navigation' ? Ae(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n text-decoration: none;\n &:hover {\n ", "\n }\n &:focus {\n outline: none;\n ", "\n }\n "], ["\n text-decoration: none;\n &:hover {\n ", "\n }\n &:focus {\n outline: none;\n ", "\n }\n "])), cardTokens.navigation.hover.base, cardTokens.navigation.focus.base) : cardType === 'expandable' ? Ae(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n &:not(:first-of-type) {\n border-top: none;\n }\n "], ["\n &:not(:first-of-type) {\n border-top: none;\n }\n "]))) : '';
|
|
31704
31724
|
});
|
|
31705
31725
|
var Card = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31706
31726
|
var children = _a.children,
|
|
@@ -31719,17 +31739,17 @@ var Card = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31719
31739
|
color: color
|
|
31720
31740
|
}, rest);
|
|
31721
31741
|
|
|
31722
|
-
return jsxRuntime.jsx(Container$
|
|
31742
|
+
return jsxRuntime.jsx(Container$4, __assign({}, containerProps, {
|
|
31723
31743
|
children: children
|
|
31724
31744
|
}), void 0);
|
|
31725
31745
|
});
|
|
31726
|
-
var templateObject_1$
|
|
31746
|
+
var templateObject_1$g, templateObject_2$b, templateObject_3$8, templateObject_4$7;
|
|
31727
31747
|
|
|
31728
31748
|
var Wrapper$3 = styled.div.withConfig({
|
|
31729
31749
|
displayName: "CardAccordion__Wrapper",
|
|
31730
31750
|
componentId: "sc-1ctxrby-0"
|
|
31731
|
-
})(templateObject_1$
|
|
31732
|
-
var nextUniqueId$
|
|
31751
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
|
|
31752
|
+
var nextUniqueId$4 = 0;
|
|
31733
31753
|
var CardAccordion = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31734
31754
|
var _b = _a.isExpanded,
|
|
31735
31755
|
isExpanded = _b === void 0 ? false : _b,
|
|
@@ -31741,7 +31761,7 @@ var CardAccordion = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31741
31761
|
expanded = _c[0],
|
|
31742
31762
|
setExpanded = _c[1];
|
|
31743
31763
|
|
|
31744
|
-
var uniqueId = nextUniqueId$
|
|
31764
|
+
var uniqueId = nextUniqueId$4++;
|
|
31745
31765
|
var accordionId = React.useState(id !== null && id !== void 0 ? id : "cardAccordion-" + uniqueId)[0];
|
|
31746
31766
|
React.useEffect(function () {
|
|
31747
31767
|
setExpanded(isExpanded);
|
|
@@ -31774,67 +31794,84 @@ var CardAccordion = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31774
31794
|
children: Children
|
|
31775
31795
|
}), void 0);
|
|
31776
31796
|
});
|
|
31777
|
-
var templateObject_1$
|
|
31797
|
+
var templateObject_1$f;
|
|
31778
31798
|
|
|
31779
|
-
var Spacing$
|
|
31799
|
+
var Spacing$8 = ddsBaseTokens.spacing,
|
|
31780
31800
|
FontPackages$4 = ddsBaseTokens.fontPackages,
|
|
31781
|
-
Border$
|
|
31801
|
+
Border$6 = ddsBaseTokens.border,
|
|
31802
|
+
IconSizes$1 = ddsBaseTokens.iconSizes;
|
|
31782
31803
|
|
|
31783
|
-
var base$
|
|
31784
|
-
padding: Spacing$
|
|
31804
|
+
var base$2 = __assign({
|
|
31805
|
+
padding: Spacing$8.SizesDdsSpacingLocalX1 + " " + Spacing$8.SizesDdsSpacingLocalX075 + " " + Spacing$8.SizesDdsSpacingLocalX1 + " " + Spacing$8.SizesDdsSpacingLocalX15
|
|
31785
31806
|
}, FontPackages$4.heading_sans_03.base);
|
|
31786
31807
|
|
|
31787
|
-
var focusBase = {
|
|
31788
|
-
boxShadow: "0 0 0 " + Border$
|
|
31808
|
+
var focusBase$1 = {
|
|
31809
|
+
boxShadow: "0 0 0 " + Border$6.BordersDdsBorderFocusCardStrokeWeight + " " + Border$6.BordersDdsBorderFocusCardStroke
|
|
31789
31810
|
};
|
|
31790
31811
|
var hoverBase = {
|
|
31791
|
-
boxShadow: "0 0 0 " + Border$
|
|
31812
|
+
boxShadow: "0 0 0 " + Border$6.BordersDdsBorderFocusInputfieldStrokeWeight + " " + Border$6.BordersDdsBorderFocusInputfieldStroke
|
|
31813
|
+
};
|
|
31814
|
+
var chevronWrapperBase = {
|
|
31815
|
+
width: IconSizes$1.DdsIconsizeMedium,
|
|
31816
|
+
height: IconSizes$1.DdsIconsizeMedium,
|
|
31817
|
+
marginLeft: Spacing$8.SizesDdsSpacingLocalX05
|
|
31792
31818
|
};
|
|
31793
31819
|
var cardAccordionHeaderTokens = {
|
|
31794
|
-
base: base$
|
|
31820
|
+
base: base$2,
|
|
31795
31821
|
focus: {
|
|
31796
|
-
base: focusBase
|
|
31822
|
+
base: focusBase$1
|
|
31797
31823
|
},
|
|
31798
31824
|
hover: {
|
|
31799
31825
|
base: hoverBase
|
|
31826
|
+
},
|
|
31827
|
+
chevronWrapper: {
|
|
31828
|
+
base: chevronWrapperBase
|
|
31829
|
+
},
|
|
31830
|
+
chevron: {
|
|
31831
|
+
width: IconSizes$1.DdsIconsizeMedium,
|
|
31832
|
+
height: Spacing$8.SizesDdsSpacingLocalX05
|
|
31800
31833
|
}
|
|
31801
31834
|
};
|
|
31802
31835
|
|
|
31803
31836
|
var SvgChevron = styled.svg.withConfig({
|
|
31804
31837
|
displayName: "AnimatedChevronUpDownstyles__SvgChevron",
|
|
31805
31838
|
componentId: "sc-yey4nu-0"
|
|
31806
|
-
})(templateObject_1$
|
|
31839
|
+
})(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n display: inline-block;\n flex-shrink: 0;\n position: relative;\n text-align: center;\n vertical-align: middle;\n"], ["\n display: inline-block;\n flex-shrink: 0;\n position: relative;\n text-align: center;\n vertical-align: middle;\n"])));
|
|
31807
31840
|
var SvgChevronlGroup = styled.g.withConfig({
|
|
31808
31841
|
displayName: "AnimatedChevronUpDownstyles__SvgChevronlGroup",
|
|
31809
31842
|
componentId: "sc-yey4nu-1"
|
|
31810
|
-
})(templateObject_2$
|
|
31843
|
+
})(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n transition: transform 0.2s linear;\n transform: ", ";\n"], ["\n transition: transform 0.2s linear;\n transform: ", ";\n"])), function (_a) {
|
|
31811
31844
|
var isUp = _a.isUp;
|
|
31812
31845
|
return isUp ? 'translateY(3px)' : 'translateY(0)';
|
|
31813
31846
|
});
|
|
31814
31847
|
var SvgChevronlLeft = styled.path.withConfig({
|
|
31815
31848
|
displayName: "AnimatedChevronUpDownstyles__SvgChevronlLeft",
|
|
31816
31849
|
componentId: "sc-yey4nu-2"
|
|
31817
|
-
})(templateObject_3$
|
|
31850
|
+
})(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n transition: transform 0.2s linear;\n transform-origin: 1px 1px;\n transform: ", ";\n"], ["\n transition: transform 0.2s linear;\n transform-origin: 1px 1px;\n transform: ", ";\n"])), function (_a) {
|
|
31818
31851
|
var isUp = _a.isUp;
|
|
31819
31852
|
return isUp ? 'rotate(-90deg) translateY(0)' : 'rotate(0) translateY(0)';
|
|
31820
31853
|
});
|
|
31821
31854
|
var SvgChevronlRight = styled.path.withConfig({
|
|
31822
31855
|
displayName: "AnimatedChevronUpDownstyles__SvgChevronlRight",
|
|
31823
31856
|
componentId: "sc-yey4nu-3"
|
|
31824
|
-
})(templateObject_4$
|
|
31857
|
+
})(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n transition: transform 0.2s linear;\n transform-origin: 7px 1px;\n transform: ", ";\n"], ["\n transition: transform 0.2s linear;\n transform-origin: 7px 1px;\n transform: ", ";\n"])), function (_a) {
|
|
31825
31858
|
var isUp = _a.isUp;
|
|
31826
31859
|
return isUp ? 'rotate(90deg) translateY(0)' : 'rotate(0) translateY(0)';
|
|
31827
31860
|
});
|
|
31828
|
-
var templateObject_1$
|
|
31861
|
+
var templateObject_1$e, templateObject_2$a, templateObject_3$7, templateObject_4$6;
|
|
31829
31862
|
|
|
31830
31863
|
var svgChevronLeftPath = 'M 1 0 L 5 4 C 5 4 5 4 5 4 L 4 5 C 4 5 4 5 4 5 C 4 5 4 5 4 5 L 0 1 C 0 1 0 1 0 1 L 1 0 C 1 0 1 0 1 0 C 1 0 1 0 1 0 L 1 0 Z';
|
|
31831
31864
|
var svgChevronRightPath = 'M 3 4 L 7 0 L 8 1 C 8 1 8 1 8 1 L 4 5 L 3 4 C 3 4 3 4 3 4 L 3 4 Z';
|
|
31832
31865
|
var AnimatedChevronUpDown = function AnimatedChevronUpDown(_a) {
|
|
31833
|
-
var isUp = _a.isUp
|
|
31866
|
+
var isUp = _a.isUp,
|
|
31867
|
+
_b = _a.height,
|
|
31868
|
+
height = _b === void 0 ? '5px' : _b,
|
|
31869
|
+
_c = _a.width,
|
|
31870
|
+
width = _c === void 0 ? '8px' : _c;
|
|
31834
31871
|
return jsxRuntime.jsx(SvgChevron, __assign({
|
|
31835
31872
|
viewBox: "0 0 8 5",
|
|
31836
|
-
width:
|
|
31837
|
-
height:
|
|
31873
|
+
width: width,
|
|
31874
|
+
height: height,
|
|
31838
31875
|
fill: "currentColor",
|
|
31839
31876
|
isUp: isUp
|
|
31840
31877
|
}, {
|
|
@@ -31855,15 +31892,19 @@ var AnimatedChevronUpDown = function AnimatedChevronUpDown(_a) {
|
|
|
31855
31892
|
var ContentWrapper = styled.div.withConfig({
|
|
31856
31893
|
displayName: "CardAccordionHeader__ContentWrapper",
|
|
31857
31894
|
componentId: "sc-1qs6bkj-0"
|
|
31858
|
-
})(templateObject_1$
|
|
31859
|
-
var HeaderContainer = styled.div.withConfig({
|
|
31895
|
+
})(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n text-align: left;\n"], ["\n text-align: left;\n"])));
|
|
31896
|
+
var HeaderContainer$1 = styled.div.withConfig({
|
|
31860
31897
|
displayName: "CardAccordionHeader__HeaderContainer",
|
|
31861
31898
|
componentId: "sc-1qs6bkj-1"
|
|
31862
|
-
})(templateObject_2$
|
|
31863
|
-
var HeaderWrapper = styled.
|
|
31899
|
+
})(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n transition: box-shadow 0.2s;\n ", "\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n transition: box-shadow 0.2s;\n ", "\n"])), cardAccordionHeaderTokens.base);
|
|
31900
|
+
var HeaderWrapper = styled.button.withConfig({
|
|
31864
31901
|
displayName: "CardAccordionHeader__HeaderWrapper",
|
|
31865
31902
|
componentId: "sc-1qs6bkj-2"
|
|
31866
|
-
})(templateObject_3$
|
|
31903
|
+
})(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n position: relative;\n cursor: pointer;\n transition: box-shadow 0.2s;\n ", "\n display: block;\n width: 100%;\n &:hover {\n ", "\n }\n\n &:focus-visible,\n &.focus-visible {\n outline: none;\n ", "\n }\n"], ["\n position: relative;\n cursor: pointer;\n transition: box-shadow 0.2s;\n ", "\n display: block;\n width: 100%;\n &:hover {\n ", "\n }\n\n &:focus-visible,\n &.focus-visible {\n outline: none;\n ", "\n }\n"])), removeButtonStyling, cardAccordionHeaderTokens.hover.base, cardAccordionHeaderTokens.focus.base);
|
|
31904
|
+
var ChevronWrapper = styled.span.withConfig({
|
|
31905
|
+
displayName: "CardAccordionHeader__ChevronWrapper",
|
|
31906
|
+
componentId: "sc-1qs6bkj-3"
|
|
31907
|
+
})(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"])), cardAccordionHeaderTokens.chevronWrapper.base);
|
|
31867
31908
|
var CardAccordionHeader = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31868
31909
|
var children = _a.children,
|
|
31869
31910
|
_b = _a.isExpanded,
|
|
@@ -31878,68 +31919,56 @@ var CardAccordionHeader = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31878
31919
|
}
|
|
31879
31920
|
};
|
|
31880
31921
|
|
|
31881
|
-
var
|
|
31882
|
-
|
|
31883
|
-
|
|
31884
|
-
if (key === 'Enter' || key === ' ') {
|
|
31885
|
-
if (toggleExpanded) {
|
|
31886
|
-
toggleExpanded();
|
|
31887
|
-
}
|
|
31888
|
-
|
|
31889
|
-
event.preventDefault();
|
|
31890
|
-
}
|
|
31891
|
-
};
|
|
31892
|
-
|
|
31893
|
-
var headerProps = __assign({
|
|
31894
|
-
tabIndex: 0,
|
|
31922
|
+
var headerWrapperProps = __assign({
|
|
31923
|
+
'aria-expanded': isExpanded,
|
|
31924
|
+
'aria-controls': bodyId,
|
|
31895
31925
|
ref: ref,
|
|
31896
|
-
|
|
31897
|
-
onClick: handleClick,
|
|
31898
|
-
onKeyDown: handleKeyDown
|
|
31926
|
+
onClick: handleClick
|
|
31899
31927
|
}, rest);
|
|
31900
31928
|
|
|
31901
|
-
var headerContainerProps = {
|
|
31902
|
-
tabIndex: -1
|
|
31903
|
-
};
|
|
31904
31929
|
var chevronProps = {
|
|
31905
|
-
isUp: isExpanded
|
|
31930
|
+
isUp: isExpanded,
|
|
31931
|
+
width: cardAccordionHeaderTokens.chevron.width,
|
|
31932
|
+
height: cardAccordionHeaderTokens.chevron.height
|
|
31906
31933
|
};
|
|
31907
|
-
return jsxRuntime.jsx(HeaderWrapper, __assign({
|
|
31908
|
-
|
|
31909
|
-
"aria-expanded": isExpanded
|
|
31910
|
-
}, headerProps, {
|
|
31911
|
-
children: jsxRuntime.jsxs(HeaderContainer, __assign({}, headerContainerProps, {
|
|
31934
|
+
return jsxRuntime.jsx(HeaderWrapper, __assign({}, headerWrapperProps, {
|
|
31935
|
+
children: jsxRuntime.jsxs(HeaderContainer$1, {
|
|
31912
31936
|
children: [jsxRuntime.jsxs(ContentWrapper, {
|
|
31913
31937
|
children: [" ", children, " "]
|
|
31914
|
-
}, void 0), jsxRuntime.jsx(
|
|
31915
|
-
|
|
31938
|
+
}, void 0), jsxRuntime.jsx(ChevronWrapper, {
|
|
31939
|
+
children: jsxRuntime.jsx(AnimatedChevronUpDown, __assign({}, chevronProps), void 0)
|
|
31940
|
+
}, void 0)]
|
|
31941
|
+
}, void 0)
|
|
31916
31942
|
}), void 0);
|
|
31917
31943
|
});
|
|
31918
|
-
var templateObject_1$
|
|
31944
|
+
var templateObject_1$d, templateObject_2$9, templateObject_3$6, templateObject_4$5;
|
|
31919
31945
|
|
|
31920
|
-
var Spacing$
|
|
31946
|
+
var Spacing$7 = ddsBaseTokens.spacing,
|
|
31921
31947
|
FontPackages$3 = ddsBaseTokens.fontPackages;
|
|
31922
31948
|
|
|
31923
|
-
var base = __assign({
|
|
31924
|
-
padding: "
|
|
31949
|
+
var base$1 = __assign({
|
|
31950
|
+
padding: Spacing$7.SizesDdsSpacingLocalX1 + " " + (Spacing$7.SizesDdsSpacingLocalX2NumberPx + Spacing$7.SizesDdsSpacingLocalX075NumberPx) + "px " + Spacing$7.SizesDdsSpacingLocalX2 + " " + Spacing$7.SizesDdsSpacingLocalX15
|
|
31925
31951
|
}, FontPackages$3.body_sans_03.base);
|
|
31926
31952
|
|
|
31927
31953
|
var cardAccordionBodyTokens = {
|
|
31928
|
-
base: base
|
|
31954
|
+
base: base$1
|
|
31929
31955
|
};
|
|
31930
31956
|
|
|
31931
|
-
var expandingAnimation = Ae(templateObject_1$
|
|
31957
|
+
var expandingAnimation = Ae(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n transition: padding 0.2s, visibility 0.3s,\n max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"], ["\n transition: padding 0.2s, visibility 0.3s,\n max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"])));
|
|
31932
31958
|
var Body = styled.div.withConfig({
|
|
31933
31959
|
displayName: "CardAccordionBody__Body",
|
|
31934
31960
|
componentId: "sc-igsnpx-0"
|
|
31935
|
-
})(
|
|
31961
|
+
})(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), expandingAnimation, cardAccordionBodyTokens.base, function (_a) {
|
|
31962
|
+
var paddingTop = _a.paddingTop;
|
|
31963
|
+
return paddingTop && Ae(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n padding-top: ", ";\n "], ["\n padding-top: ", ";\n "])), paddingTop);
|
|
31964
|
+
}, function (_a) {
|
|
31936
31965
|
var isExpanded = _a.isExpanded;
|
|
31937
|
-
return !isExpanded && Ae(
|
|
31966
|
+
return !isExpanded && Ae(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n padding-top: 0;\n padding-bottom: 0;\n "], ["\n padding-top: 0;\n padding-bottom: 0;\n "])));
|
|
31938
31967
|
});
|
|
31939
|
-
var
|
|
31940
|
-
displayName: "
|
|
31968
|
+
var BodyContainer = styled.div.withConfig({
|
|
31969
|
+
displayName: "CardAccordionBody__BodyContainer",
|
|
31941
31970
|
componentId: "sc-igsnpx-1"
|
|
31942
|
-
})(
|
|
31971
|
+
})(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n ", "\n overflow: hidden;\n visibility: ", ";\n max-height: ", "px;\n"], ["\n ", "\n overflow: hidden;\n visibility: ", ";\n max-height: ", "px;\n"])), expandingAnimation, function (_a) {
|
|
31943
31972
|
var isExpanded = _a.isExpanded;
|
|
31944
31973
|
return isExpanded ? 'visible' : 'hidden';
|
|
31945
31974
|
}, function (_a) {
|
|
@@ -31972,7 +32001,7 @@ var CardAccordionBody = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31972
32001
|
role: 'region'
|
|
31973
32002
|
}, rest);
|
|
31974
32003
|
|
|
31975
|
-
var
|
|
32004
|
+
var bodyContainerProps = {
|
|
31976
32005
|
ref: bodyRef,
|
|
31977
32006
|
maxHeight: maxHeight,
|
|
31978
32007
|
isExpanded: isExpanded
|
|
@@ -31981,12 +32010,12 @@ var CardAccordionBody = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
31981
32010
|
"aria-labelledby": headerId,
|
|
31982
32011
|
"aria-hidden": !isExpanded
|
|
31983
32012
|
}, bodyProps, {
|
|
31984
|
-
children: jsxRuntime.jsxs(
|
|
32013
|
+
children: jsxRuntime.jsxs(BodyContainer, __assign({}, bodyContainerProps, {
|
|
31985
32014
|
children: [" ", children, " "]
|
|
31986
32015
|
}), void 0)
|
|
31987
32016
|
}), void 0);
|
|
31988
32017
|
});
|
|
31989
|
-
var templateObject_1$
|
|
32018
|
+
var templateObject_1$c, templateObject_2$8, templateObject_3$5, templateObject_4$4, templateObject_5$2;
|
|
31990
32019
|
|
|
31991
32020
|
var MoreVertOutlined = createCommonjsModule(function (module, exports) {
|
|
31992
32021
|
|
|
@@ -34408,47 +34437,100 @@ function useRoveFocus(size, reset) {
|
|
|
34408
34437
|
return [currentFocus, setCurrentFocus];
|
|
34409
34438
|
}
|
|
34410
34439
|
|
|
34411
|
-
|
|
34412
|
-
|
|
34413
|
-
|
|
34414
|
-
|
|
34440
|
+
function useFocusTrap(active) {
|
|
34441
|
+
var elementRef = React.useRef(null);
|
|
34442
|
+
React.useEffect(function () {
|
|
34443
|
+
function handleFocus(e) {
|
|
34444
|
+
if (e.key !== 'Tab' || !active || !elementRef.current) return;
|
|
34445
|
+
var focusableElements = elementRef.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');
|
|
34446
|
+
var firstElement = focusableElements[0];
|
|
34447
|
+
var lastElement = focusableElements[focusableElements.length - 1];
|
|
34448
|
+
|
|
34449
|
+
if (!e.shiftKey && document.activeElement === lastElement) {
|
|
34450
|
+
firstElement.focus();
|
|
34451
|
+
e.preventDefault();
|
|
34452
|
+
}
|
|
34453
|
+
|
|
34454
|
+
if (e.shiftKey && document.activeElement === firstElement) {
|
|
34455
|
+
lastElement.focus();
|
|
34456
|
+
e.preventDefault();
|
|
34457
|
+
}
|
|
34458
|
+
}
|
|
34459
|
+
|
|
34460
|
+
var element = elementRef.current;
|
|
34461
|
+
|
|
34462
|
+
if (element && active) {
|
|
34463
|
+
element.focus();
|
|
34464
|
+
element.addEventListener('keydown', handleFocus);
|
|
34465
|
+
}
|
|
34466
|
+
|
|
34467
|
+
return function () {
|
|
34468
|
+
element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', handleFocus);
|
|
34469
|
+
};
|
|
34470
|
+
}, [active]);
|
|
34471
|
+
return elementRef;
|
|
34472
|
+
}
|
|
34473
|
+
|
|
34474
|
+
var useMountTransition = function useMountTransition(isMounted, unmountDelay) {
|
|
34475
|
+
var _a = React.useState(false),
|
|
34476
|
+
hasTransitionedIn = _a[0],
|
|
34477
|
+
setHasTransitionedIn = _a[1];
|
|
34478
|
+
|
|
34479
|
+
React.useEffect(function () {
|
|
34480
|
+
var timeoutId;
|
|
34481
|
+
if (isMounted && !hasTransitionedIn) setHasTransitionedIn(true);else if (!isMounted && hasTransitionedIn) {
|
|
34482
|
+
timeoutId = setTimeout(function () {
|
|
34483
|
+
return setHasTransitionedIn(false);
|
|
34484
|
+
}, unmountDelay);
|
|
34485
|
+
}
|
|
34486
|
+
return function () {
|
|
34487
|
+
clearTimeout(timeoutId);
|
|
34488
|
+
};
|
|
34489
|
+
}, [unmountDelay, isMounted, hasTransitionedIn]);
|
|
34490
|
+
return hasTransitionedIn;
|
|
34491
|
+
};
|
|
34492
|
+
|
|
34493
|
+
var Border$5 = ddsBaseTokens.border,
|
|
34494
|
+
BorderRadius$3 = ddsBaseTokens.borderRadius,
|
|
34495
|
+
Colors$4 = ddsBaseTokens.colors,
|
|
34496
|
+
Spacing$6 = ddsBaseTokens.spacing,
|
|
34415
34497
|
FontPackages$2 = ddsBaseTokens.fontPackages;
|
|
34416
|
-
var borderColor = Border$
|
|
34498
|
+
var borderColor = Border$5.BordersDdsBorderStyleLightStroke;
|
|
34417
34499
|
|
|
34418
34500
|
var linkBase$1 = __assign({
|
|
34419
|
-
color: Colors$
|
|
34501
|
+
color: Colors$4.DdsColorNeutralsGray9,
|
|
34420
34502
|
textDecoration: 'none',
|
|
34421
|
-
backgroundColor: Colors$
|
|
34503
|
+
backgroundColor: Colors$4.DdsColorNeutralsWhite
|
|
34422
34504
|
}, FontPackages$2.body_sans_01.base);
|
|
34423
34505
|
|
|
34424
34506
|
var linkHoverBase = {
|
|
34425
|
-
color: Colors$
|
|
34426
|
-
backgroundColor: Colors$
|
|
34507
|
+
color: Colors$4.DdsColorInteractiveDark,
|
|
34508
|
+
backgroundColor: Colors$4.DdsColorPrimaryLightest
|
|
34427
34509
|
};
|
|
34428
34510
|
var linkActiveBase = {
|
|
34429
|
-
color: Colors$
|
|
34511
|
+
color: Colors$4.DdsColorInteractiveBase
|
|
34430
34512
|
};
|
|
34431
34513
|
var wrapperBase$3 = {
|
|
34432
|
-
backgroundColor: Colors$
|
|
34514
|
+
backgroundColor: Colors$4.DdsColorNeutralsWhite
|
|
34433
34515
|
};
|
|
34434
34516
|
var applicationNameWrapperBase = {
|
|
34435
|
-
padding: Spacing$
|
|
34517
|
+
padding: Spacing$6.SizesDdsSpacingLocalX1 + " " + Spacing$6.SizesDdsSpacingLocalX15
|
|
34436
34518
|
};
|
|
34437
34519
|
var lovisaWrapperBase = {
|
|
34438
|
-
padding: Spacing$
|
|
34439
|
-
borderRight: Border$
|
|
34520
|
+
padding: Spacing$6.SizesDdsSpacingLocalX1 + " " + Spacing$6.SizesDdsSpacingLocalX15,
|
|
34521
|
+
borderRight: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid "
|
|
34440
34522
|
};
|
|
34441
34523
|
var bannerBase = {
|
|
34442
|
-
borderBottom: Border$
|
|
34443
|
-
paddingRight: Spacing$
|
|
34524
|
+
borderBottom: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid ",
|
|
34525
|
+
paddingRight: Spacing$6.SizesDdsSpacingLocalX1
|
|
34444
34526
|
};
|
|
34445
34527
|
var bannerLeftBase = {};
|
|
34446
34528
|
var navigationBase = {
|
|
34447
|
-
borderBottom: Border$
|
|
34529
|
+
borderBottom: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid "
|
|
34448
34530
|
};
|
|
34449
34531
|
|
|
34450
34532
|
var navigationLinkBase = __assign({
|
|
34451
|
-
padding: Spacing$
|
|
34533
|
+
padding: Spacing$6.SizesDdsSpacingLocalX075 + " " + Spacing$6.SizesDdsSpacingLocalX15
|
|
34452
34534
|
}, linkBase$1);
|
|
34453
34535
|
|
|
34454
34536
|
var navigationLinkHoverBase = __assign({}, linkHoverBase);
|
|
@@ -34456,21 +34538,21 @@ var navigationLinkHoverBase = __assign({}, linkHoverBase);
|
|
|
34456
34538
|
var navigationLinkActiveBase = __assign({}, linkActiveBase);
|
|
34457
34539
|
|
|
34458
34540
|
var navigationLinkFocusBase = {
|
|
34459
|
-
color: Colors$
|
|
34460
|
-
backgroundColor: Border$
|
|
34541
|
+
color: Colors$4.DdsColorNeutralsWhite,
|
|
34542
|
+
backgroundColor: Border$5.BordersDdsBorderFocusBaseStroke
|
|
34461
34543
|
};
|
|
34462
34544
|
var navigationLinkCurrentBase = {
|
|
34463
|
-
color: Colors$
|
|
34464
|
-
backgroundColor: Colors$
|
|
34545
|
+
color: Colors$4.DdsColorInteractiveDarker,
|
|
34546
|
+
backgroundColor: Colors$4.DdsColorPrimaryLightest
|
|
34465
34547
|
};
|
|
34466
34548
|
var contextMenuBase = {
|
|
34467
|
-
border: Border$
|
|
34468
|
-
backgroundColor: Colors$
|
|
34469
|
-
borderRadius: BorderRadius$
|
|
34549
|
+
border: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid ",
|
|
34550
|
+
backgroundColor: Colors$4.DdsColorNeutralsWhite,
|
|
34551
|
+
borderRadius: BorderRadius$3.RadiiDdsBorderRadius1Radius
|
|
34470
34552
|
};
|
|
34471
34553
|
|
|
34472
34554
|
var contextMenuLinkBase = __assign({
|
|
34473
|
-
padding: Spacing$
|
|
34555
|
+
padding: Spacing$6.SizesDdsSpacingLocalX075 + " " + Spacing$6.SizesDdsSpacingLocalX15
|
|
34474
34556
|
}, linkBase$1);
|
|
34475
34557
|
|
|
34476
34558
|
var contextMenuLinkHoverBase = __assign({}, linkHoverBase);
|
|
@@ -34478,15 +34560,19 @@ var contextMenuLinkHoverBase = __assign({}, linkHoverBase);
|
|
|
34478
34560
|
var contextMenuLinkActiveBase = __assign({}, linkActiveBase);
|
|
34479
34561
|
|
|
34480
34562
|
var contextMenuLinkFocusBase = {
|
|
34481
|
-
color: Colors$
|
|
34482
|
-
backgroundColor: Border$
|
|
34563
|
+
color: Colors$4.DdsColorNeutralsWhite,
|
|
34564
|
+
backgroundColor: Border$5.BordersDdsBorderFocusBaseStroke
|
|
34483
34565
|
};
|
|
34484
34566
|
var iconBase = {
|
|
34485
|
-
marginRight: Spacing$
|
|
34567
|
+
marginRight: Spacing$6.SizesDdsSpacingLocalX025
|
|
34486
34568
|
};
|
|
34487
34569
|
var contextMenuDividerBase = {
|
|
34488
|
-
marginRight: Spacing$
|
|
34489
|
-
marginLeft: Spacing$
|
|
34570
|
+
marginRight: Spacing$6.SizesDdsSpacingLocalX15,
|
|
34571
|
+
marginLeft: Spacing$6.SizesDdsSpacingLocalX15
|
|
34572
|
+
};
|
|
34573
|
+
var contextGroupBase = {
|
|
34574
|
+
right: Spacing$6.SizesDdsSpacingLocalX075,
|
|
34575
|
+
top: Spacing$6.SizesDdsSpacingLocalX025
|
|
34490
34576
|
};
|
|
34491
34577
|
var internalHeaderTokens = {
|
|
34492
34578
|
wrapper: {
|
|
@@ -34499,7 +34585,8 @@ var internalHeaderTokens = {
|
|
|
34499
34585
|
base: lovisaWrapperBase
|
|
34500
34586
|
},
|
|
34501
34587
|
banner: {
|
|
34502
|
-
base: bannerBase
|
|
34588
|
+
base: bannerBase,
|
|
34589
|
+
contextMenuSpacing: Spacing$6.SizesDdsSpacingLayoutX4
|
|
34503
34590
|
},
|
|
34504
34591
|
bannerLeft: {
|
|
34505
34592
|
base: bannerLeftBase
|
|
@@ -34524,7 +34611,7 @@ var internalHeaderTokens = {
|
|
|
34524
34611
|
},
|
|
34525
34612
|
contextMenu: {
|
|
34526
34613
|
base: contextMenuBase,
|
|
34527
|
-
spaceFromButtonTop: Spacing$
|
|
34614
|
+
spaceFromButtonTop: Spacing$6.SizesDdsSpacingLocalX025
|
|
34528
34615
|
},
|
|
34529
34616
|
contextMenuLink: {
|
|
34530
34617
|
base: contextMenuLinkBase,
|
|
@@ -34543,44 +34630,50 @@ var internalHeaderTokens = {
|
|
|
34543
34630
|
},
|
|
34544
34631
|
icon: {
|
|
34545
34632
|
base: iconBase
|
|
34633
|
+
},
|
|
34634
|
+
contextGroup: {
|
|
34635
|
+
base: contextGroupBase
|
|
34546
34636
|
}
|
|
34547
34637
|
};
|
|
34548
34638
|
|
|
34549
34639
|
var Wrapper$2 = styled.div.withConfig({
|
|
34550
34640
|
displayName: "InternalHeaderstyles__Wrapper",
|
|
34551
34641
|
componentId: "sc-91bnca-0"
|
|
34552
|
-
})(templateObject_1$
|
|
34642
|
+
})(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n position: relative;\n *::selection {\n ", "\n }\n ", "\n"], ["\n position: relative;\n *::selection {\n ", "\n }\n ", "\n"])), typographyTokens.selection.base, internalHeaderTokens.wrapper.base);
|
|
34553
34643
|
var BannerWrapper = styled.div.withConfig({
|
|
34554
34644
|
displayName: "InternalHeaderstyles__BannerWrapper",
|
|
34555
34645
|
componentId: "sc-91bnca-1"
|
|
34556
|
-
})(
|
|
34646
|
+
})(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n ", "\n ", "\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n ", "\n ", "\n"])), internalHeaderTokens.banner.base, function (_a) {
|
|
34647
|
+
var hasContextMenu = _a.hasContextMenu;
|
|
34648
|
+
return hasContextMenu && Ae(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n padding-right: ", ";\n "], ["\n padding-right: ", ";\n "])), internalHeaderTokens.banner.contextMenuSpacing);
|
|
34649
|
+
});
|
|
34557
34650
|
var BannerLeftWrapper = styled.div.withConfig({
|
|
34558
34651
|
displayName: "InternalHeaderstyles__BannerLeftWrapper",
|
|
34559
34652
|
componentId: "sc-91bnca-2"
|
|
34560
|
-
})(
|
|
34653
|
+
})(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n display: flex;\n ", "\n"], ["\n display: flex;\n ", "\n"])), internalHeaderTokens.bannerLeft.base);
|
|
34561
34654
|
var ApplicationNameWrapper = styled.div.withConfig({
|
|
34562
34655
|
displayName: "InternalHeaderstyles__ApplicationNameWrapper",
|
|
34563
34656
|
componentId: "sc-91bnca-3"
|
|
34564
|
-
})(
|
|
34657
|
+
})(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n ", "\n"], ["\n display: flex;\n align-items: center;\n ", "\n"])), internalHeaderTokens.applicationNameWrapper.base);
|
|
34565
34658
|
var LovisaWrapper = styled.div.withConfig({
|
|
34566
34659
|
displayName: "InternalHeaderstyles__LovisaWrapper",
|
|
34567
34660
|
componentId: "sc-91bnca-4"
|
|
34568
|
-
})(
|
|
34661
|
+
})(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.lovisaWrapper.base);
|
|
34569
34662
|
var Navigation = styled.nav.withConfig({
|
|
34570
34663
|
displayName: "InternalHeaderstyles__Navigation",
|
|
34571
34664
|
componentId: "sc-91bnca-5"
|
|
34572
|
-
})(
|
|
34665
|
+
})(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.navigation.base);
|
|
34573
34666
|
var NavigationList = styled.ul.withConfig({
|
|
34574
34667
|
displayName: "InternalHeaderstyles__NavigationList",
|
|
34575
34668
|
componentId: "sc-91bnca-6"
|
|
34576
|
-
})(
|
|
34669
|
+
})(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"], ["\n box-sizing: border-box;\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])), function (_a) {
|
|
34577
34670
|
var smallScreen = _a.smallScreen;
|
|
34578
|
-
return smallScreen && Ae(
|
|
34671
|
+
return smallScreen && Ae(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n flex-direction: column;\n "], ["\n flex-direction: column;\n "])));
|
|
34579
34672
|
});
|
|
34580
34673
|
var ContextMenuWrapper = styled.div.withConfig({
|
|
34581
34674
|
displayName: "InternalHeaderstyles__ContextMenuWrapper",
|
|
34582
34675
|
componentId: "sc-91bnca-7"
|
|
34583
|
-
})(
|
|
34676
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n box-sizing: border-box;\n position: absolute;\n z-index: 3;\n top: 100%;\n right: 0;\n overflow-y: auto;\n min-width: 180px;\n max-width: 300px;\n max-height: calc(100vh - 110px);\n transition: visibility 0.4s, opacity 0.2s;\n visibility: ", ";\n opacity: ", ";\n ", "\n ", "\n"], ["\n box-sizing: border-box;\n position: absolute;\n z-index: 3;\n top: 100%;\n right: 0;\n overflow-y: auto;\n min-width: 180px;\n max-width: 300px;\n max-height: calc(100vh - 110px);\n transition: visibility 0.4s, opacity 0.2s;\n visibility: ", ";\n opacity: ", ";\n ", "\n ", "\n"])), function (_a) {
|
|
34584
34677
|
var closed = _a.closed;
|
|
34585
34678
|
return closed ? 'hidden' : 'visible';
|
|
34586
34679
|
}, function (_a) {
|
|
@@ -34590,19 +34683,23 @@ var ContextMenuWrapper = styled.div.withConfig({
|
|
|
34590
34683
|
var ContextMenuList = styled.ul.withConfig({
|
|
34591
34684
|
displayName: "InternalHeaderstyles__ContextMenuList",
|
|
34592
34685
|
componentId: "sc-91bnca-8"
|
|
34593
|
-
})(
|
|
34686
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n list-style-type: none;\n padding: 0;\n margin: 0;\n"], ["\n display: flex;\n flex-direction: column;\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])));
|
|
34594
34687
|
var StyledDivider = styled(Divider).withConfig({
|
|
34595
34688
|
displayName: "InternalHeaderstyles__StyledDivider",
|
|
34596
34689
|
componentId: "sc-91bnca-9"
|
|
34597
|
-
})(
|
|
34598
|
-
var
|
|
34690
|
+
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.contextMenuDivider.base);
|
|
34691
|
+
var ContextMenuGroup = styled.div.withConfig({
|
|
34692
|
+
displayName: "InternalHeaderstyles__ContextMenuGroup",
|
|
34693
|
+
componentId: "sc-91bnca-10"
|
|
34694
|
+
})(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n position: absolute;\n ", "\n"], ["\n position: absolute;\n ", "\n"])), internalHeaderTokens.contextGroup.base);
|
|
34695
|
+
var templateObject_1$b, templateObject_2$7, templateObject_3$4, templateObject_4$3, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
34599
34696
|
|
|
34600
34697
|
var Link$2 = styled.a.withConfig({
|
|
34601
34698
|
displayName: "NavigationItem__Link",
|
|
34602
34699
|
componentId: "sc-1fua9kw-0"
|
|
34603
|
-
})(templateObject_2$
|
|
34700
|
+
})(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"], ["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"])), internalHeaderTokens.navigationLink.base, internalHeaderTokens.navigationLink.hover.base, internalHeaderTokens.navigationLink.active.base, internalHeaderTokens.navigationLink.focus.base, function (_a) {
|
|
34604
34701
|
var isCurrent = _a.isCurrent;
|
|
34605
|
-
return isCurrent && Ae(templateObject_1$
|
|
34702
|
+
return isCurrent && Ae(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), internalHeaderTokens.navigationLink.current.base);
|
|
34606
34703
|
});
|
|
34607
34704
|
var NavigationItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
34608
34705
|
var title = _a.title,
|
|
@@ -34620,20 +34717,20 @@ var NavigationItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
34620
34717
|
children: title
|
|
34621
34718
|
}), void 0);
|
|
34622
34719
|
});
|
|
34623
|
-
var templateObject_1$
|
|
34720
|
+
var templateObject_1$a, templateObject_2$6;
|
|
34624
34721
|
|
|
34625
34722
|
var Element$1 = styled.span.withConfig({
|
|
34626
34723
|
displayName: "ContextMenuItem__Element",
|
|
34627
34724
|
componentId: "sc-1moh65z-0"
|
|
34628
|
-
})(templateObject_1$
|
|
34725
|
+
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"], ["\n ", "\n display: flex;\n align-items: center;\n box-sizing: border-box;\n"])), internalHeaderTokens.contextMenuLink.base);
|
|
34629
34726
|
var Link$1 = styled.a.withConfig({
|
|
34630
34727
|
displayName: "ContextMenuItem__Link",
|
|
34631
34728
|
componentId: "sc-1moh65z-1"
|
|
34632
|
-
})(templateObject_2$
|
|
34729
|
+
})(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"], ["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"])), internalHeaderTokens.contextMenuLink.base, internalHeaderTokens.contextMenuLink.hover.base, internalHeaderTokens.contextMenuLink.active.base, internalHeaderTokens.contextMenuLink.focus.base);
|
|
34633
34730
|
var StyledIconWrapper = styled(IconWrapper$1).withConfig({
|
|
34634
34731
|
displayName: "ContextMenuItem__StyledIconWrapper",
|
|
34635
34732
|
componentId: "sc-1moh65z-2"
|
|
34636
|
-
})(templateObject_3$
|
|
34733
|
+
})(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.icon.base);
|
|
34637
34734
|
var ContextMenuItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
34638
34735
|
var title = _a.title,
|
|
34639
34736
|
href = _a.href,
|
|
@@ -34696,12 +34793,12 @@ var ContextMenuItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
34696
34793
|
children: [icon, title]
|
|
34697
34794
|
}), void 0);
|
|
34698
34795
|
});
|
|
34699
|
-
var templateObject_1$
|
|
34796
|
+
var templateObject_1$9, templateObject_2$5, templateObject_3$3;
|
|
34700
34797
|
|
|
34701
34798
|
var Li = styled.li.withConfig({
|
|
34702
34799
|
displayName: "InternalHeaderListItem__Li",
|
|
34703
34800
|
componentId: "sc-g1dd6e-0"
|
|
34704
|
-
})(templateObject_1$
|
|
34801
|
+
})(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n box-sizing: border-box;\n"], ["\n box-sizing: border-box;\n"])));
|
|
34705
34802
|
var InternalHeaderListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
34706
34803
|
var children = _a.children,
|
|
34707
34804
|
rest = __rest(_a, ["children"]);
|
|
@@ -34714,7 +34811,7 @@ var InternalHeaderListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
34714
34811
|
children: children
|
|
34715
34812
|
}), void 0);
|
|
34716
34813
|
});
|
|
34717
|
-
var templateObject_1$
|
|
34814
|
+
var templateObject_1$8;
|
|
34718
34815
|
|
|
34719
34816
|
var InternalHeader = function InternalHeader(_a) {
|
|
34720
34817
|
var applicationName = _a.applicationName,
|
|
@@ -34826,14 +34923,15 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34826
34923
|
'aria-hidden': contextMenuIsClosed,
|
|
34827
34924
|
role: 'menu'
|
|
34828
34925
|
};
|
|
34829
|
-
var
|
|
34926
|
+
var hasContextMenuElementsOrUserProps = hasInteractiveContextMenuElements || !!userProps;
|
|
34927
|
+
var contextMenu = hasContextMenuElementsOrUserProps && !smallScreen ? jsxRuntime.jsxs(ContextMenuWrapper, __assign({}, contextMenuWrapperProps, {
|
|
34830
34928
|
children: [userContextMenuItemNonInteractive, jsxRuntime.jsx(ContextMenuList, {
|
|
34831
34929
|
children: contextMenuContentArray
|
|
34832
34930
|
}, void 0)]
|
|
34833
34931
|
}), void 0) : null;
|
|
34834
34932
|
|
|
34835
34933
|
var contextMenuSmallScreen = function contextMenuSmallScreen() {
|
|
34836
|
-
if (
|
|
34934
|
+
if (hasContextMenuElementsOrUserProps && smallScreen) {
|
|
34837
34935
|
if (hasInteractiveContextMenuElements) {
|
|
34838
34936
|
var userPropsInteractivePos = hasInteractiveUser ? 0 : -1;
|
|
34839
34937
|
var navItemsFirstPos = navigationElements ? userPropsInteractivePos + 1 : -1;
|
|
@@ -34865,9 +34963,12 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34865
34963
|
};
|
|
34866
34964
|
|
|
34867
34965
|
var isSmallScreenAndHasNavElements = smallScreen && navigationElements ? true : false;
|
|
34966
|
+
var hasContextMenu = hasContextMenuElementsOrUserProps || hasNavigationElements && smallScreen;
|
|
34868
34967
|
return jsxRuntime.jsxs(Wrapper$2, __assign({}, rest, {
|
|
34869
|
-
children: [jsxRuntime.
|
|
34870
|
-
|
|
34968
|
+
children: [jsxRuntime.jsx(BannerWrapper, __assign({
|
|
34969
|
+
hasContextMenu: hasContextMenu
|
|
34970
|
+
}, {
|
|
34971
|
+
children: jsxRuntime.jsxs(BannerLeftWrapper, {
|
|
34871
34972
|
children: [jsxRuntime.jsx(LovisaWrapper, {
|
|
34872
34973
|
children: jsxRuntime.jsx(Typography, __assign({
|
|
34873
34974
|
typographyType: "bodySans02",
|
|
@@ -34884,7 +34985,9 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34884
34985
|
children: applicationName
|
|
34885
34986
|
}), void 0)
|
|
34886
34987
|
}, void 0)]
|
|
34887
|
-
}, void 0)
|
|
34988
|
+
}, void 0)
|
|
34989
|
+
}), void 0), !smallScreen && navigation, hasContextMenuElementsOrUserProps && jsxRuntime.jsxs(ContextMenuGroup, {
|
|
34990
|
+
children: [jsxRuntime.jsx(Button, {
|
|
34888
34991
|
ref: buttonRef,
|
|
34889
34992
|
Icon: isSmallScreenAndHasNavElements ? MenuOutlinedIcon : MoreVertOutlinedIcon,
|
|
34890
34993
|
appearance: "borderless",
|
|
@@ -34894,10 +34997,34 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34894
34997
|
"aria-expanded": !contextMenuIsClosed ? true : undefined,
|
|
34895
34998
|
"aria-label": "\xE5pne meny"
|
|
34896
34999
|
}, void 0), smallScreen ? contextMenuSmallScreen() : contextMenu]
|
|
34897
|
-
}, void 0)
|
|
35000
|
+
}, void 0)]
|
|
34898
35001
|
}), void 0);
|
|
34899
35002
|
};
|
|
34900
35003
|
|
|
35004
|
+
var img = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='rgba(58%2c65%2c70%2c1)'%3e%3cpath d='M0 0h24v24H0V0z' fill='none'/%3e%3cpath d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z'/%3e%3c/svg%3e";
|
|
35005
|
+
|
|
35006
|
+
var IconSizes = ddsBaseTokens.iconSizes,
|
|
35007
|
+
Spacing$5 = ddsBaseTokens.spacing,
|
|
35008
|
+
Border$4 = ddsBaseTokens.border;
|
|
35009
|
+
var calendarIndicatorBase = {
|
|
35010
|
+
height: IconSizes.DdsIconsizeMedium,
|
|
35011
|
+
width: IconSizes.DdsIconsizeMedium,
|
|
35012
|
+
position: 'absolute',
|
|
35013
|
+
right: Spacing$5.SizesDdsSpacingLocalX075
|
|
35014
|
+
};
|
|
35015
|
+
var calendarIndicatorFocusBase = {
|
|
35016
|
+
outline: Border$4.BordersDdsBorderFocusInputfieldStroke + " solid " + Border$4.BordersDdsBorderFocusInputfieldStrokeWeight,
|
|
35017
|
+
outlineOffset: Spacing$5.SizesDdsSpacingLocalX0125
|
|
35018
|
+
};
|
|
35019
|
+
var datepickerTokens = {
|
|
35020
|
+
calendarIndicator: {
|
|
35021
|
+
base: calendarIndicatorBase,
|
|
35022
|
+
focus: {
|
|
35023
|
+
base: calendarIndicatorFocusBase
|
|
35024
|
+
}
|
|
35025
|
+
}
|
|
35026
|
+
};
|
|
35027
|
+
|
|
34901
35028
|
var getWidth = function getWidth(type) {
|
|
34902
35029
|
return type === 'date' ? '205px' : type === 'datetime-local' ? '235px' : '320px';
|
|
34903
35030
|
};
|
|
@@ -34905,8 +35032,8 @@ var getWidth = function getWidth(type) {
|
|
|
34905
35032
|
var StyledInput = styled(Input$3).withConfig({
|
|
34906
35033
|
displayName: "Datepicker__StyledInput",
|
|
34907
35034
|
componentId: "sc-1ijxhje-0"
|
|
34908
|
-
})(templateObject_1$
|
|
34909
|
-
var nextUniqueId$
|
|
35035
|
+
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n min-height: 76px;\n ::-webkit-calendar-picker-indicator {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n ", "\n margin-left: 0px;\n padding: 0;\n top: 50%;\n transform: translate(0, -50%);\n box-sizing: border-box;\n }\n\n ::-webkit-calendar-picker-indicator:focus-visible {\n ", "\n }\n\n ::-webkit-inner-spin-button {\n display: none;\n }\n\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-year-field {\n transition: 0.2s;\n }\n\n ::-webkit-datetime-edit-day-field:focus,\n ::-webkit-datetime-edit-month-field:focus,\n ::-webkit-datetime-edit-year-field:focus {\n ", "\n }\n"], ["\n min-height: 76px;\n ::-webkit-calendar-picker-indicator {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n ", "\n margin-left: 0px;\n padding: 0;\n top: 50%;\n transform: translate(0, -50%);\n box-sizing: border-box;\n }\n\n ::-webkit-calendar-picker-indicator:focus-visible {\n ", "\n }\n\n ::-webkit-inner-spin-button {\n display: none;\n }\n\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-year-field {\n transition: 0.2s;\n }\n\n ::-webkit-datetime-edit-day-field:focus,\n ::-webkit-datetime-edit-month-field:focus,\n ::-webkit-datetime-edit-year-field:focus {\n ", "\n }\n"])), img, datepickerTokens.calendarIndicator.base, datepickerTokens.calendarIndicator.focus.base, typographyTokens.selection.base);
|
|
35036
|
+
var nextUniqueId$3 = 0;
|
|
34910
35037
|
var Datepicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
34911
35038
|
var id = _a.id,
|
|
34912
35039
|
_b = _a.type,
|
|
@@ -34923,7 +35050,7 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
34923
35050
|
ariaDescribedby = _a["aria-describedby"],
|
|
34924
35051
|
rest = __rest(_a, ["id", "type", "required", "readOnly", "disabled", "label", "width", "errorMessage", "tip", "style", "className", 'aria-describedby']);
|
|
34925
35052
|
|
|
34926
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "datepickerInput-" + nextUniqueId$
|
|
35053
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "datepickerInput-" + nextUniqueId$3++)[0];
|
|
34927
35054
|
var componentWidth = width ? width : getWidth(type);
|
|
34928
35055
|
var hasErrorMessage = !!errorMessage;
|
|
34929
35056
|
var errorMessageId = derivativeIdGenerator(uniqueId, 'errorMessage', errorMessage);
|
|
@@ -34971,29 +35098,29 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
34971
35098
|
}, void 0)]
|
|
34972
35099
|
}), void 0);
|
|
34973
35100
|
});
|
|
34974
|
-
var templateObject_1$
|
|
35101
|
+
var templateObject_1$7;
|
|
34975
35102
|
|
|
34976
|
-
var Colors$
|
|
34977
|
-
Spacing$
|
|
35103
|
+
var Colors$3 = ddsBaseTokens.colors,
|
|
35104
|
+
Spacing$4 = ddsBaseTokens.spacing,
|
|
34978
35105
|
FontPackages$1 = ddsBaseTokens.fontPackages,
|
|
34979
|
-
Border$
|
|
35106
|
+
Border$3 = ddsBaseTokens.border;
|
|
34980
35107
|
|
|
34981
35108
|
var linkBase = __assign(__assign({
|
|
34982
|
-
color: Colors$
|
|
35109
|
+
color: Colors$3.DdsColorNeutralsWhite
|
|
34983
35110
|
}, FontPackages$1.body_sans_02.base), {
|
|
34984
35111
|
textDecoration: 'none'
|
|
34985
35112
|
});
|
|
34986
35113
|
|
|
34987
35114
|
var wrapperBase$2 = {
|
|
34988
|
-
backgroundColor: Colors$
|
|
34989
|
-
padding: Spacing$
|
|
35115
|
+
backgroundColor: Colors$3.DdsColorPrimaryBase,
|
|
35116
|
+
padding: Spacing$4.SizesDdsSpacingLocalX025
|
|
34990
35117
|
};
|
|
34991
35118
|
var skipToContentTokens = {
|
|
34992
35119
|
link: {
|
|
34993
35120
|
base: linkBase,
|
|
34994
35121
|
focusOutline: {
|
|
34995
|
-
color: Colors$
|
|
34996
|
-
width: Border$
|
|
35122
|
+
color: Colors$3.DdsColorWarningDark,
|
|
35123
|
+
width: Border$3.BordersDdsBorderFocusBaseStrokeWeight
|
|
34997
35124
|
}
|
|
34998
35125
|
},
|
|
34999
35126
|
wrapper: {
|
|
@@ -35004,14 +35131,14 @@ var skipToContentTokens = {
|
|
|
35004
35131
|
var Wrapper$1 = styled.div.withConfig({
|
|
35005
35132
|
displayName: "SkipToContent__Wrapper",
|
|
35006
35133
|
componentId: "sc-57o1qv-0"
|
|
35007
|
-
})(templateObject_1$
|
|
35134
|
+
})(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n box-sizing: border-box;\n position: absolute;\n top: ", ";\n text-align: center;\n opacity: 0;\n transition: opacity 0.2s;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n width: 1px;\n white-space: nowrap;\n ", "\n\n &:focus-within {\n clip: auto;\n height: auto;\n overflow: auto;\n width: 100%;\n z-index: 200;\n opacity: 1;\n }\n"], ["\n box-sizing: border-box;\n position: absolute;\n top: ", ";\n text-align: center;\n opacity: 0;\n transition: opacity 0.2s;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n width: 1px;\n white-space: nowrap;\n ", "\n\n &:focus-within {\n clip: auto;\n height: auto;\n overflow: auto;\n width: 100%;\n z-index: 200;\n opacity: 1;\n }\n"])), function (_a) {
|
|
35008
35135
|
var top = _a.top;
|
|
35009
35136
|
return top;
|
|
35010
35137
|
}, skipToContentTokens.wrapper.base);
|
|
35011
35138
|
var Link = styled.a.withConfig({
|
|
35012
35139
|
displayName: "SkipToContent__Link",
|
|
35013
35140
|
componentId: "sc-57o1qv-1"
|
|
35014
|
-
})(templateObject_2$
|
|
35141
|
+
})(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n ", "\n &:focus {\n outline: ", " solid\n ", ";\n }\n"], ["\n ", "\n &:focus {\n outline: ", " solid\n ", ";\n }\n"])), skipToContentTokens.link.base, skipToContentTokens.link.focusOutline.width, skipToContentTokens.link.focusOutline.color);
|
|
35015
35142
|
var SkipToContent = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
35016
35143
|
var _b = _a.text,
|
|
35017
35144
|
text = _b === void 0 ? 'Til hovedinnhold' : _b,
|
|
@@ -35034,22 +35161,22 @@ var SkipToContent = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
35034
35161
|
}), void 0)
|
|
35035
35162
|
}), void 0);
|
|
35036
35163
|
});
|
|
35037
|
-
var templateObject_1$
|
|
35164
|
+
var templateObject_1$6, templateObject_2$4;
|
|
35038
35165
|
|
|
35039
|
-
var Border$
|
|
35040
|
-
Colors$
|
|
35166
|
+
var Border$2 = ddsBaseTokens.border,
|
|
35167
|
+
Colors$2 = ddsBaseTokens.colors,
|
|
35041
35168
|
FontPackages = ddsBaseTokens.fontPackages,
|
|
35042
|
-
Spacing$
|
|
35043
|
-
OuterShadow$
|
|
35044
|
-
BorderRadius$
|
|
35169
|
+
Spacing$3 = ddsBaseTokens.spacing,
|
|
35170
|
+
OuterShadow$2 = ddsBaseTokens.outerShadow,
|
|
35171
|
+
BorderRadius$2 = ddsBaseTokens.borderRadius;
|
|
35045
35172
|
|
|
35046
35173
|
var wrapperBase$1 = __assign(__assign({
|
|
35047
|
-
border: Border$
|
|
35048
|
-
backgroundColor: Colors$
|
|
35174
|
+
border: Border$2.BordersDdsBorderStyleLightStroke + " solid " + Border$2.BordersDdsBorderFocusBaseStrokeWeight,
|
|
35175
|
+
backgroundColor: Colors$2.DdsColorNeutralsWhite
|
|
35049
35176
|
}, FontPackages.body_sans_02.base), {
|
|
35050
|
-
padding: "" + Spacing$
|
|
35051
|
-
boxShadow: OuterShadow$
|
|
35052
|
-
borderRadius: BorderRadius$
|
|
35177
|
+
padding: "" + Spacing$3.SizesDdsSpacingLocalX075,
|
|
35178
|
+
boxShadow: OuterShadow$2.DdsShadow1Onlight,
|
|
35179
|
+
borderRadius: BorderRadius$2.RadiiDdsBorderRadius1Radius
|
|
35053
35180
|
});
|
|
35054
35181
|
|
|
35055
35182
|
var arrowPlacementTemplate = {
|
|
@@ -35064,41 +35191,41 @@ var tooltipTokens = {
|
|
|
35064
35191
|
},
|
|
35065
35192
|
svgArrow: {
|
|
35066
35193
|
border: {
|
|
35067
|
-
fill: Colors$
|
|
35194
|
+
fill: Colors$2.DdsColorPrimaryLighter
|
|
35068
35195
|
},
|
|
35069
35196
|
background: {
|
|
35070
|
-
fill: Colors$
|
|
35197
|
+
fill: Colors$2.DdsColorNeutralsWhite
|
|
35071
35198
|
}
|
|
35072
35199
|
},
|
|
35073
35200
|
arrowPlacementTemplate: arrowPlacementTemplate,
|
|
35074
|
-
offset: Spacing$
|
|
35201
|
+
offset: Spacing$3.SizesDdsSpacingLocalX05NumberPx
|
|
35075
35202
|
};
|
|
35076
35203
|
|
|
35077
35204
|
var SvgArrow = styled.svg.withConfig({
|
|
35078
35205
|
displayName: "Tooltipstyles__SvgArrow",
|
|
35079
35206
|
componentId: "sc-1cna5tc-0"
|
|
35080
|
-
})(templateObject_1$
|
|
35207
|
+
})(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n width: 36px;\n height: 9px;\n"], ["\n width: 36px;\n height: 9px;\n"])));
|
|
35081
35208
|
var ArrowWrapper = styled.div.withConfig({
|
|
35082
35209
|
displayName: "Tooltipstyles__ArrowWrapper",
|
|
35083
35210
|
componentId: "sc-1cna5tc-1"
|
|
35084
|
-
})(templateObject_2$
|
|
35085
|
-
var Container = styled.div.withConfig({
|
|
35211
|
+
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject([""], [""])));
|
|
35212
|
+
var Container$3 = styled.div.withConfig({
|
|
35086
35213
|
displayName: "Tooltipstyles__Container",
|
|
35087
35214
|
componentId: "sc-1cna5tc-2"
|
|
35088
|
-
})(templateObject_3$
|
|
35215
|
+
})(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n width: fit-content;\n"], ["\n width: fit-content;\n"])));
|
|
35089
35216
|
var TooltipWrapper = styled.div.withConfig({
|
|
35090
35217
|
displayName: "Tooltipstyles__TooltipWrapper",
|
|
35091
35218
|
componentId: "sc-1cna5tc-3"
|
|
35092
|
-
})(templateObject_4$
|
|
35219
|
+
})(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n&::selection {\n ", "\n }\n visibility: ", ";\n opacity: ", ";\n transition: 0.2s;\n width: fit-content;\n position: absolute;\n z-index: 20;\n text-align: center;\n ", "\n &[data-popper-placement^='top'] > ", " {\n bottom: ", ";\n }\n &[data-popper-placement^='bottom'] > ", " {\n top: ", ";\n ", " {\n transform: rotate(180deg);\n }\n }\n\n &[data-popper-placement^='right'] > ", " {\n left: ", ";\n ", " {\n transform: rotate(90deg);\n }\n }\n}\n\n&[data-popper-placement^='left'] > ", " {\n right: ", ";\n ", " {\n transform: rotate(270deg);\n }\n"], ["\n&::selection {\n ", "\n }\n visibility: ", ";\n opacity: ", ";\n transition: 0.2s;\n width: fit-content;\n position: absolute;\n z-index: 20;\n text-align: center;\n ", "\n &[data-popper-placement^='top'] > ", " {\n bottom: ", ";\n }\n &[data-popper-placement^='bottom'] > ", " {\n top: ", ";\n ", " {\n transform: rotate(180deg);\n }\n }\n\n &[data-popper-placement^='right'] > ", " {\n left: ", ";\n ", " {\n transform: rotate(90deg);\n }\n }\n}\n\n&[data-popper-placement^='left'] > ", " {\n right: ", ";\n ", " {\n transform: rotate(270deg);\n }\n"])), typographyTokens.selection.base, function (_a) {
|
|
35093
35220
|
var open = _a.open;
|
|
35094
35221
|
return open ? 'visible' : 'hidden';
|
|
35095
35222
|
}, function (_a) {
|
|
35096
35223
|
var open = _a.open;
|
|
35097
35224
|
return open ? 1 : 0;
|
|
35098
35225
|
}, tooltipTokens.wrapper.base, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.bottom, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.top, SvgArrow, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.left, SvgArrow, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.right, SvgArrow);
|
|
35099
|
-
var templateObject_1$
|
|
35226
|
+
var templateObject_1$5, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
35100
35227
|
|
|
35101
|
-
var nextUniqueId$
|
|
35228
|
+
var nextUniqueId$2 = 0;
|
|
35102
35229
|
var Tooltip = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
35103
35230
|
var text = _a.text,
|
|
35104
35231
|
_b = _a.placement,
|
|
@@ -35113,7 +35240,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
35113
35240
|
className = _a.className,
|
|
35114
35241
|
rest = __rest(_a, ["text", "placement", "children", "tooltipId", "delay", "style", "onMouseLeave", "onMouseOver", "className"]);
|
|
35115
35242
|
|
|
35116
|
-
var uniqueId = nextUniqueId$
|
|
35243
|
+
var uniqueId = nextUniqueId$2++;
|
|
35117
35244
|
var uniqueTooltipId = React.useState(tooltipId !== null && tooltipId !== void 0 ? tooltipId : "tooltip-" + uniqueId)[0];
|
|
35118
35245
|
|
|
35119
35246
|
var _d = React.useState(false),
|
|
@@ -35189,7 +35316,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
35189
35316
|
ref: setArrowElement,
|
|
35190
35317
|
style: styles.arrow
|
|
35191
35318
|
};
|
|
35192
|
-
return jsxRuntime.jsxs(Container, __assign({}, containerProps, {
|
|
35319
|
+
return jsxRuntime.jsxs(Container$3, __assign({}, containerProps, {
|
|
35193
35320
|
children: [anchorElement, jsxRuntime.jsxs(TooltipWrapper, __assign({}, wrapperProps, {
|
|
35194
35321
|
children: [text, jsxRuntime.jsx(ArrowWrapper, __assign({}, arrowWrapperProps, {
|
|
35195
35322
|
children: jsxRuntime.jsxs(SvgArrow, {
|
|
@@ -35206,6 +35333,228 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
35206
35333
|
}), void 0);
|
|
35207
35334
|
});
|
|
35208
35335
|
|
|
35336
|
+
var BorderRadius$1 = ddsBaseTokens.borderRadius,
|
|
35337
|
+
Colors$1 = ddsBaseTokens.colors,
|
|
35338
|
+
OuterShadow$1 = ddsBaseTokens.outerShadow,
|
|
35339
|
+
Spacing$2 = ddsBaseTokens.spacing,
|
|
35340
|
+
Border$1 = ddsBaseTokens.border;
|
|
35341
|
+
var focus = {
|
|
35342
|
+
outline: Border$1.BordersDdsBorderFocusBaseStrokeWeight + " " + Border$1.BordersDdsBorderFocusBaseStroke + " solid",
|
|
35343
|
+
outlineOffset: '1px'
|
|
35344
|
+
};
|
|
35345
|
+
var base = {
|
|
35346
|
+
backgroundColor: Colors$1.DdsColorNeutralsWhite,
|
|
35347
|
+
boxShadow: OuterShadow$1.DdsShadow4Onlight,
|
|
35348
|
+
borderRadius: BorderRadius$1.RadiiDdsBorderRadius1Radius,
|
|
35349
|
+
padding: Spacing$2.SizesDdsSpacingLocalX1 + " " + Spacing$2.SizesDdsSpacingLocalX1 + " " + Spacing$2.SizesDdsSpacingLocalX15 + " " + Spacing$2.SizesDdsSpacingLocalX15
|
|
35350
|
+
};
|
|
35351
|
+
var contentContainerBase = {
|
|
35352
|
+
paddingRight: Spacing$2.SizesDdsSpacingLocalX1,
|
|
35353
|
+
gap: Spacing$2.SizesDdsSpacingLocalX1
|
|
35354
|
+
};
|
|
35355
|
+
var actionsContainerBase = {
|
|
35356
|
+
gap: Spacing$2.SizesDdsSpacingLocalX1
|
|
35357
|
+
};
|
|
35358
|
+
|
|
35359
|
+
var focusBase = __assign({}, focus);
|
|
35360
|
+
|
|
35361
|
+
var bodyScrollableBase = {
|
|
35362
|
+
overflowY: 'auto'
|
|
35363
|
+
};
|
|
35364
|
+
|
|
35365
|
+
var bodyScrollableFocusBase = __assign({}, focus);
|
|
35366
|
+
|
|
35367
|
+
var modalTokens = {
|
|
35368
|
+
base: base,
|
|
35369
|
+
focus: {
|
|
35370
|
+
base: focusBase
|
|
35371
|
+
},
|
|
35372
|
+
contentContainer: {
|
|
35373
|
+
base: contentContainerBase
|
|
35374
|
+
},
|
|
35375
|
+
actionsContainer: {
|
|
35376
|
+
base: actionsContainerBase
|
|
35377
|
+
},
|
|
35378
|
+
bodyScrollable: {
|
|
35379
|
+
base: bodyScrollableBase,
|
|
35380
|
+
focus: {
|
|
35381
|
+
base: bodyScrollableFocusBase
|
|
35382
|
+
}
|
|
35383
|
+
}
|
|
35384
|
+
};
|
|
35385
|
+
|
|
35386
|
+
var changeRGBAAlpha = function changeRGBAAlpha(value, alpha) {
|
|
35387
|
+
if (value.slice(0, 5) !== 'rgba(' || value.slice(-1) !== ')') {
|
|
35388
|
+
return '';
|
|
35389
|
+
}
|
|
35390
|
+
|
|
35391
|
+
return value.replace(/[\d\.]+\)$/g, alpha.toString() + ')');
|
|
35392
|
+
};
|
|
35393
|
+
|
|
35394
|
+
var Backdrop = styled.div.withConfig({
|
|
35395
|
+
displayName: "Backdrop",
|
|
35396
|
+
componentId: "sc-vimg90-0"
|
|
35397
|
+
})(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n overflow-y: auto;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 50;\n opacity: ", ";\n transition: opacity 0.2s;\n"], ["\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n overflow-y: auto;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 50;\n opacity: ", ";\n transition: opacity 0.2s;\n"])), changeRGBAAlpha(ddsBaseTokens.colors.DdsColorNeutralsGray9, 0.5), function (_a) {
|
|
35398
|
+
var isOpen = _a.isOpen;
|
|
35399
|
+
return isOpen ? 1 : 0;
|
|
35400
|
+
});
|
|
35401
|
+
var templateObject_1$4;
|
|
35402
|
+
|
|
35403
|
+
var isVerticalScrollbarDisplayed = function isVerticalScrollbarDisplayed(container) {
|
|
35404
|
+
return container.clientHeight > window.innerHeight;
|
|
35405
|
+
};
|
|
35406
|
+
|
|
35407
|
+
function handleElementWithBackdropMount(container) {
|
|
35408
|
+
if (isVerticalScrollbarDisplayed(container)) {
|
|
35409
|
+
container.style.position = 'fixed';
|
|
35410
|
+
container.style.overflowY = 'scroll';
|
|
35411
|
+
}
|
|
35412
|
+
}
|
|
35413
|
+
function handleElementWithBackdropUnmount(container) {
|
|
35414
|
+
container.style.removeProperty('position');
|
|
35415
|
+
container.style.removeProperty('overflow-y');
|
|
35416
|
+
}
|
|
35417
|
+
|
|
35418
|
+
var Container$2 = styled.div.withConfig({
|
|
35419
|
+
displayName: "Modal__Container",
|
|
35420
|
+
componentId: "sc-12c14zx-0"
|
|
35421
|
+
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column-reverse;\n box-sizing: border-box;\n margin: 0;\n min-width: 200px;\n &::selection,\n *::selection {\n ", "\n }\n ", "\n :focus-visible {\n ", "\n }\n"], ["\n display: flex;\n flex-direction: column-reverse;\n box-sizing: border-box;\n margin: 0;\n min-width: 200px;\n &::selection,\n *::selection {\n ", "\n }\n ", "\n :focus-visible {\n ", "\n }\n"])), typographyTokens.selection.base, modalTokens.base, modalTokens.focus.base);
|
|
35422
|
+
var ContentContainer$1 = styled.div.withConfig({
|
|
35423
|
+
displayName: "Modal__ContentContainer",
|
|
35424
|
+
componentId: "sc-12c14zx-1"
|
|
35425
|
+
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: grid;\n ", "\n"], ["\n display: grid;\n ", "\n"])), modalTokens.contentContainer.base);
|
|
35426
|
+
var HeaderContainer = styled.div.withConfig({
|
|
35427
|
+
displayName: "Modal__HeaderContainer",
|
|
35428
|
+
componentId: "sc-12c14zx-2"
|
|
35429
|
+
})(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject([""], [""])));
|
|
35430
|
+
var StyledButton$1 = styled(Button).withConfig({
|
|
35431
|
+
displayName: "Modal__StyledButton",
|
|
35432
|
+
componentId: "sc-12c14zx-3"
|
|
35433
|
+
})(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n align-self: flex-end;\n"], ["\n align-self: flex-end;\n"])));
|
|
35434
|
+
var nextUniqueId$1 = 0;
|
|
35435
|
+
var Modal = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
35436
|
+
var _b = _a.isOpen,
|
|
35437
|
+
isOpen = _b === void 0 ? false : _b,
|
|
35438
|
+
_c = _a.parentElement,
|
|
35439
|
+
parentElement = _c === void 0 ? document.body : _c,
|
|
35440
|
+
children = _a.children,
|
|
35441
|
+
header = _a.header,
|
|
35442
|
+
onClose = _a.onClose,
|
|
35443
|
+
id = _a.id,
|
|
35444
|
+
triggerRef = _a.triggerRef,
|
|
35445
|
+
rest = __rest(_a, ["isOpen", "parentElement", "children", "header", "onClose", "id", "triggerRef"]);
|
|
35446
|
+
|
|
35447
|
+
var uniqueId = nextUniqueId$1++;
|
|
35448
|
+
var modalId = React.useState(id !== null && id !== void 0 ? id : "modal-" + uniqueId)[0];
|
|
35449
|
+
var headerId = modalId + "-header";
|
|
35450
|
+
var modalRef = useFocusTrap(isOpen);
|
|
35451
|
+
var combinedRef = useCombinedRef(ref, modalRef);
|
|
35452
|
+
|
|
35453
|
+
var handleClose = function handleClose() {
|
|
35454
|
+
var _a;
|
|
35455
|
+
|
|
35456
|
+
if (onClose && isOpen) {
|
|
35457
|
+
triggerRef && ((_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.focus());
|
|
35458
|
+
onClose();
|
|
35459
|
+
}
|
|
35460
|
+
};
|
|
35461
|
+
|
|
35462
|
+
React.useEffect(function () {
|
|
35463
|
+
if (isOpen) {
|
|
35464
|
+
handleElementWithBackdropMount(document.body);
|
|
35465
|
+
} else {
|
|
35466
|
+
handleElementWithBackdropUnmount(document.body);
|
|
35467
|
+
}
|
|
35468
|
+
}, [isOpen]);
|
|
35469
|
+
useOnClickOutside(modalRef.current, function () {
|
|
35470
|
+
return handleClose();
|
|
35471
|
+
});
|
|
35472
|
+
useOnKeyDown(['Escape', 'Esc'], function () {
|
|
35473
|
+
return handleClose();
|
|
35474
|
+
});
|
|
35475
|
+
var hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
35476
|
+
var backdropProps = {
|
|
35477
|
+
isOpen: hasTransitionedIn && isOpen
|
|
35478
|
+
};
|
|
35479
|
+
|
|
35480
|
+
var containerProps = __assign({
|
|
35481
|
+
ref: combinedRef,
|
|
35482
|
+
role: 'dialog',
|
|
35483
|
+
'aria-modal': true,
|
|
35484
|
+
'aria-hidden': !isOpen,
|
|
35485
|
+
tabIndex: -1,
|
|
35486
|
+
'aria-labelledby': headerId,
|
|
35487
|
+
id: modalId
|
|
35488
|
+
}, rest);
|
|
35489
|
+
|
|
35490
|
+
var headerContainerProps = {
|
|
35491
|
+
id: headerId
|
|
35492
|
+
};
|
|
35493
|
+
return isOpen || hasTransitionedIn ? /*#__PURE__*/ReactDOM.createPortal(jsxRuntime.jsx(Backdrop, __assign({}, backdropProps, {
|
|
35494
|
+
children: jsxRuntime.jsxs(Container$2, __assign({}, containerProps, {
|
|
35495
|
+
children: [jsxRuntime.jsxs(ContentContainer$1, {
|
|
35496
|
+
children: [header && jsxRuntime.jsx(HeaderContainer, __assign({}, headerContainerProps, {
|
|
35497
|
+
children: typeof header === 'string' ? jsxRuntime.jsx(Typography, __assign({
|
|
35498
|
+
typographyType: "headingSans03"
|
|
35499
|
+
}, {
|
|
35500
|
+
children: header
|
|
35501
|
+
}), void 0) : header
|
|
35502
|
+
}), void 0), children]
|
|
35503
|
+
}, void 0), onClose && jsxRuntime.jsx(StyledButton$1, {
|
|
35504
|
+
size: "small",
|
|
35505
|
+
appearance: "borderless",
|
|
35506
|
+
purpose: "secondary",
|
|
35507
|
+
Icon: CloseOutlinedIcon,
|
|
35508
|
+
onClick: handleClose,
|
|
35509
|
+
"aria-label": "Lukk dialog"
|
|
35510
|
+
}, void 0)]
|
|
35511
|
+
}), void 0)
|
|
35512
|
+
}), void 0), parentElement) : null;
|
|
35513
|
+
});
|
|
35514
|
+
var templateObject_1$3, templateObject_2$2, templateObject_3$1, templateObject_4$1;
|
|
35515
|
+
|
|
35516
|
+
var Container$1 = styled.div.withConfig({
|
|
35517
|
+
displayName: "ModalBody__Container",
|
|
35518
|
+
componentId: "sc-134o0zg-0"
|
|
35519
|
+
})(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollbarStyling, function (_a) {
|
|
35520
|
+
var scrollable = _a.scrollable;
|
|
35521
|
+
return scrollable && Ae(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n ", "\n &:focus-visible {\n ", "\n }\n "], ["\n ", "\n &:focus-visible {\n ", "\n }\n "])), modalTokens.bodyScrollable.base, modalTokens.bodyScrollable.focus.base);
|
|
35522
|
+
});
|
|
35523
|
+
var ModalBody = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
35524
|
+
var children = _a.children,
|
|
35525
|
+
scrollable = _a.scrollable,
|
|
35526
|
+
rest = __rest(_a, ["children", "scrollable"]);
|
|
35527
|
+
|
|
35528
|
+
var containerProps = __assign({
|
|
35529
|
+
ref: ref,
|
|
35530
|
+
tabIndex: scrollable ? 0 : undefined,
|
|
35531
|
+
scrollable: scrollable
|
|
35532
|
+
}, rest);
|
|
35533
|
+
|
|
35534
|
+
return jsxRuntime.jsx(Container$1, __assign({}, containerProps, {
|
|
35535
|
+
children: children
|
|
35536
|
+
}), void 0);
|
|
35537
|
+
});
|
|
35538
|
+
var templateObject_1$2, templateObject_2$1;
|
|
35539
|
+
|
|
35540
|
+
var Container = styled.div.withConfig({
|
|
35541
|
+
displayName: "ModalActions__Container",
|
|
35542
|
+
componentId: "sc-ehph9l-0"
|
|
35543
|
+
})(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n ", "\n"], ["\n display: flex;\n flex-wrap: wrap;\n ", "\n"])), modalTokens.actionsContainer.base);
|
|
35544
|
+
var ModalActions = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
35545
|
+
var children = _a.children,
|
|
35546
|
+
rest = __rest(_a, ["children"]);
|
|
35547
|
+
|
|
35548
|
+
var containerProps = __assign({
|
|
35549
|
+
ref: ref
|
|
35550
|
+
}, rest);
|
|
35551
|
+
|
|
35552
|
+
return jsxRuntime.jsx(Container, __assign({}, containerProps, {
|
|
35553
|
+
children: children
|
|
35554
|
+
}), void 0);
|
|
35555
|
+
});
|
|
35556
|
+
var templateObject_1$1;
|
|
35557
|
+
|
|
35209
35558
|
var Colors = ddsBaseTokens.colors,
|
|
35210
35559
|
BorderRadius = ddsBaseTokens.borderRadius,
|
|
35211
35560
|
Spacing$1 = ddsBaseTokens.spacing,
|
|
@@ -35441,6 +35790,9 @@ exports.InternalHeader = InternalHeader;
|
|
|
35441
35790
|
exports.List = List;
|
|
35442
35791
|
exports.ListItem = ListItem;
|
|
35443
35792
|
exports.LocalMessage = LocalMessage;
|
|
35793
|
+
exports.Modal = Modal;
|
|
35794
|
+
exports.ModalActions = ModalActions;
|
|
35795
|
+
exports.ModalBody = ModalBody;
|
|
35444
35796
|
exports.Pagination = Pagination;
|
|
35445
35797
|
exports.Popover = Popover;
|
|
35446
35798
|
exports.PopoverGroup = PopoverGroup;
|