@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.es.js
CHANGED
|
@@ -12198,75 +12198,75 @@ var ddsBaseTokens = {
|
|
|
12198
12198
|
fontPackages: fontPackages,
|
|
12199
12199
|
};
|
|
12200
12200
|
|
|
12201
|
-
var Colors$
|
|
12201
|
+
var Colors$m = ddsBaseTokens.colors, FontPackages$k = ddsBaseTokens.fontPackages, BorderRadius$8 = ddsBaseTokens.borderRadius, Border$i = ddsBaseTokens.border;
|
|
12202
12202
|
var textDefault$8 = {
|
|
12203
|
-
textColor: Colors$
|
|
12203
|
+
textColor: Colors$m.DdsColorNeutralsGray9,
|
|
12204
12204
|
font: FontPackages$k.body_sans_02.base,
|
|
12205
12205
|
};
|
|
12206
|
-
var focus = {
|
|
12207
|
-
colorDefault: Border$
|
|
12208
|
-
outlineWidth: Border$
|
|
12209
|
-
color__TextInput: Colors$
|
|
12210
|
-
textColor__TextInput: Colors$
|
|
12211
|
-
borderWidth__TextInput: Border$
|
|
12206
|
+
var focus$1 = {
|
|
12207
|
+
colorDefault: Border$i.BordersDdsBorderFocusBaseStroke,
|
|
12208
|
+
outlineWidth: Border$i.BordersDdsBorderFocusBaseStrokeWeight,
|
|
12209
|
+
color__TextInput: Colors$m.DdsColorInteractiveBase,
|
|
12210
|
+
textColor__TextInput: Colors$m.DdsColorInteractiveDark,
|
|
12211
|
+
borderWidth__TextInput: Border$i.BordersDdsBorderFocusInputfieldStrokeWeight,
|
|
12212
12212
|
};
|
|
12213
12213
|
var ddsReferenceTokens = {
|
|
12214
|
-
focus: focus,
|
|
12214
|
+
focus: focus$1,
|
|
12215
12215
|
textDefault: textDefault$8,
|
|
12216
12216
|
textInput: {
|
|
12217
12217
|
input: {
|
|
12218
|
-
borderRadius: BorderRadius$
|
|
12219
|
-
borderWidth: Border$
|
|
12220
|
-
borderColor: Colors$
|
|
12218
|
+
borderRadius: BorderRadius$8.RadiiDdsBorderRadius1Radius,
|
|
12219
|
+
borderWidth: Border$i.BordersDdsBorderStyleLightStrokeWeight,
|
|
12220
|
+
borderColor: Colors$m.DdsColorNeutralsGray5,
|
|
12221
12221
|
textColor: textDefault$8.textColor,
|
|
12222
12222
|
font: FontPackages$k.supportingStyle_inputtext_02.base,
|
|
12223
12223
|
hover: {
|
|
12224
|
-
backgroundColor: Colors$
|
|
12225
|
-
borderColor: focus.color__TextInput,
|
|
12226
|
-
borderWidth: focus.borderWidth__TextInput,
|
|
12224
|
+
backgroundColor: Colors$m.DdsColorInteractiveLightest,
|
|
12225
|
+
borderColor: focus$1.color__TextInput,
|
|
12226
|
+
borderWidth: focus$1.borderWidth__TextInput,
|
|
12227
12227
|
},
|
|
12228
12228
|
focus: {
|
|
12229
|
-
borderColor: focus.color__TextInput,
|
|
12230
|
-
borderWidth: focus.borderWidth__TextInput,
|
|
12229
|
+
borderColor: focus$1.color__TextInput,
|
|
12230
|
+
borderWidth: focus$1.borderWidth__TextInput,
|
|
12231
12231
|
},
|
|
12232
12232
|
},
|
|
12233
12233
|
label: {
|
|
12234
12234
|
hover: {
|
|
12235
|
-
textColor: focus.textColor__TextInput,
|
|
12235
|
+
textColor: focus$1.textColor__TextInput,
|
|
12236
12236
|
},
|
|
12237
12237
|
focus: {
|
|
12238
|
-
textColor: focus.textColor__TextInput,
|
|
12238
|
+
textColor: focus$1.textColor__TextInput,
|
|
12239
12239
|
},
|
|
12240
12240
|
},
|
|
12241
12241
|
},
|
|
12242
12242
|
};
|
|
12243
12243
|
|
|
12244
|
-
var Colors$
|
|
12244
|
+
var Colors$l = ddsBaseTokens.colors,
|
|
12245
12245
|
FontPackages$j = ddsBaseTokens.fontPackages,
|
|
12246
|
-
Spacing$
|
|
12247
|
-
Border$
|
|
12246
|
+
Spacing$v = ddsBaseTokens.spacing,
|
|
12247
|
+
Border$h = ddsBaseTokens.border;
|
|
12248
12248
|
var textDefault$7 = ddsReferenceTokens.textDefault;
|
|
12249
12249
|
var textColors = {
|
|
12250
|
-
interactive: Colors$
|
|
12251
|
-
primary: Colors$
|
|
12252
|
-
danger: Colors$
|
|
12253
|
-
success: Colors$
|
|
12254
|
-
warning: Colors$
|
|
12250
|
+
interactive: Colors$l.DdsColorInteractiveBase,
|
|
12251
|
+
primary: Colors$l.DdsColorPrimaryBase,
|
|
12252
|
+
danger: Colors$l.DdsColorDangerBase,
|
|
12253
|
+
success: Colors$l.DdsColorSuccessBase,
|
|
12254
|
+
warning: Colors$l.DdsColorWarningBase,
|
|
12255
12255
|
onLight: textDefault$7.textColor,
|
|
12256
|
-
onDark: Colors$
|
|
12257
|
-
gray1: Colors$
|
|
12258
|
-
gray2: Colors$
|
|
12259
|
-
gray3: Colors$
|
|
12260
|
-
gray4: Colors$
|
|
12261
|
-
gray5: Colors$
|
|
12262
|
-
gray6: Colors$
|
|
12263
|
-
gray7: Colors$
|
|
12264
|
-
gray8: Colors$
|
|
12265
|
-
gray9: Colors$
|
|
12256
|
+
onDark: Colors$l.DdsColorNeutralsWhite,
|
|
12257
|
+
gray1: Colors$l.DdsColorNeutralsGray1,
|
|
12258
|
+
gray2: Colors$l.DdsColorNeutralsGray2,
|
|
12259
|
+
gray3: Colors$l.DdsColorNeutralsGray3,
|
|
12260
|
+
gray4: Colors$l.DdsColorNeutralsGray4,
|
|
12261
|
+
gray5: Colors$l.DdsColorNeutralsGray5,
|
|
12262
|
+
gray6: Colors$l.DdsColorNeutralsGray6,
|
|
12263
|
+
gray7: Colors$l.DdsColorNeutralsGray7,
|
|
12264
|
+
gray8: Colors$l.DdsColorNeutralsGray8,
|
|
12265
|
+
gray9: Colors$l.DdsColorNeutralsGray9
|
|
12266
12266
|
};
|
|
12267
12267
|
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
12268
12268
|
var aBase = {
|
|
12269
|
-
color: Colors$
|
|
12269
|
+
color: Colors$l.DdsColorInteractiveBase,
|
|
12270
12270
|
font: 'inherit',
|
|
12271
12271
|
textDecoration: 'underline',
|
|
12272
12272
|
width: 'fit-content'
|
|
@@ -12276,11 +12276,11 @@ var aMarginsBase = {
|
|
|
12276
12276
|
marginBottom: FontPackages$j.body_sans_02.paragraph.paragraphSpacing
|
|
12277
12277
|
};
|
|
12278
12278
|
var aHoverBase = {
|
|
12279
|
-
color: Colors$
|
|
12279
|
+
color: Colors$l.DdsColorInteractiveDark
|
|
12280
12280
|
};
|
|
12281
12281
|
var aFocusBase = {
|
|
12282
|
-
backgroundColor: Border$
|
|
12283
|
-
color: Colors$
|
|
12282
|
+
backgroundColor: Border$h.BordersDdsBorderFocusBaseStroke,
|
|
12283
|
+
color: Colors$l.DdsColorNeutralsWhite,
|
|
12284
12284
|
textDecoration: 'none',
|
|
12285
12285
|
outline: 'none'
|
|
12286
12286
|
};
|
|
@@ -12306,7 +12306,7 @@ var headingSans01Base = __assign({
|
|
|
12306
12306
|
var headingSans01MarginsBase = {
|
|
12307
12307
|
marginTop: 0,
|
|
12308
12308
|
marginBottom: FontPackages$j.heading_sans_01.paragraph.paragraphSpacing,
|
|
12309
|
-
paddingTop: Spacing$
|
|
12309
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans01Top
|
|
12310
12310
|
};
|
|
12311
12311
|
|
|
12312
12312
|
var headingSans02Base = __assign({
|
|
@@ -12316,7 +12316,7 @@ var headingSans02Base = __assign({
|
|
|
12316
12316
|
var headingSans02MarginsBase = {
|
|
12317
12317
|
marginTop: 0,
|
|
12318
12318
|
marginBottom: FontPackages$j.heading_sans_02.paragraph.paragraphSpacing,
|
|
12319
|
-
paddingTop: Spacing$
|
|
12319
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans02Top
|
|
12320
12320
|
};
|
|
12321
12321
|
|
|
12322
12322
|
var headingSans03Base = __assign({
|
|
@@ -12326,7 +12326,7 @@ var headingSans03Base = __assign({
|
|
|
12326
12326
|
var headingSans03MarginsBase = {
|
|
12327
12327
|
marginTop: 0,
|
|
12328
12328
|
marginBottom: FontPackages$j.heading_sans_03.paragraph.paragraphSpacing,
|
|
12329
|
-
paddingTop: Spacing$
|
|
12329
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans03Top
|
|
12330
12330
|
};
|
|
12331
12331
|
|
|
12332
12332
|
var headingSans04Base = __assign({
|
|
@@ -12336,7 +12336,7 @@ var headingSans04Base = __assign({
|
|
|
12336
12336
|
var headingSans04MarginsBase = {
|
|
12337
12337
|
marginTop: 0,
|
|
12338
12338
|
marginBottom: FontPackages$j.heading_sans_04.paragraph.paragraphSpacing,
|
|
12339
|
-
paddingTop: Spacing$
|
|
12339
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans04Top
|
|
12340
12340
|
};
|
|
12341
12341
|
|
|
12342
12342
|
var headingSans05Base = __assign({
|
|
@@ -12346,7 +12346,7 @@ var headingSans05Base = __assign({
|
|
|
12346
12346
|
var headingSans05MarginsBase = {
|
|
12347
12347
|
marginTop: 0,
|
|
12348
12348
|
marginBottom: FontPackages$j.heading_sans_05.paragraph.paragraphSpacing,
|
|
12349
|
-
paddingTop: Spacing$
|
|
12349
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans05Top
|
|
12350
12350
|
};
|
|
12351
12351
|
|
|
12352
12352
|
var headingSans06Base = __assign({
|
|
@@ -12356,7 +12356,7 @@ var headingSans06Base = __assign({
|
|
|
12356
12356
|
var headingSans06MarginsBase = {
|
|
12357
12357
|
marginTop: 0,
|
|
12358
12358
|
marginBottom: FontPackages$j.heading_sans_06.paragraph.paragraphSpacing,
|
|
12359
|
-
paddingTop: Spacing$
|
|
12359
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans06Top
|
|
12360
12360
|
};
|
|
12361
12361
|
|
|
12362
12362
|
var headingSans07Base = __assign({
|
|
@@ -12366,7 +12366,7 @@ var headingSans07Base = __assign({
|
|
|
12366
12366
|
var headingSans07MarginsBase = {
|
|
12367
12367
|
marginTop: 0,
|
|
12368
12368
|
marginBottom: FontPackages$j.heading_sans_07.paragraph.paragraphSpacing,
|
|
12369
|
-
paddingTop: Spacing$
|
|
12369
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans07Top
|
|
12370
12370
|
};
|
|
12371
12371
|
|
|
12372
12372
|
var headingSans08Base = __assign({
|
|
@@ -12376,7 +12376,7 @@ var headingSans08Base = __assign({
|
|
|
12376
12376
|
var headingSans08MarginsBase = {
|
|
12377
12377
|
marginTop: 0,
|
|
12378
12378
|
marginBottom: FontPackages$j.heading_sans_08.paragraph.paragraphSpacing,
|
|
12379
|
-
paddingTop: Spacing$
|
|
12379
|
+
paddingTop: Spacing$v.SpacingDdsSpacingPaddingTopHeadingSans08Top
|
|
12380
12380
|
};
|
|
12381
12381
|
|
|
12382
12382
|
var bodySans01Base$1 = __assign({
|
|
@@ -12497,7 +12497,7 @@ var leadSans05MarginsBase = {
|
|
|
12497
12497
|
};
|
|
12498
12498
|
|
|
12499
12499
|
var supportingStyleLabel01Base = __assign(__assign({
|
|
12500
|
-
color: Colors$
|
|
12500
|
+
color: Colors$l.DdsColorNeutralsGray7
|
|
12501
12501
|
}, FontPackages$j.supportingStyle_label_01.base), {
|
|
12502
12502
|
margin: 0
|
|
12503
12503
|
});
|
|
@@ -12508,7 +12508,7 @@ var supportingStyleLabel01MarginsBase = {
|
|
|
12508
12508
|
};
|
|
12509
12509
|
|
|
12510
12510
|
var supportingStyleHelperText01Base = __assign(__assign({
|
|
12511
|
-
color: Colors$
|
|
12511
|
+
color: Colors$l.DdsColorNeutralsGray6
|
|
12512
12512
|
}, FontPackages$j.supportingStyle_helpertext_01.base), {
|
|
12513
12513
|
margin: 0
|
|
12514
12514
|
});
|
|
@@ -12552,7 +12552,7 @@ var supportingStyleInputText03MarginsBase = {
|
|
|
12552
12552
|
};
|
|
12553
12553
|
|
|
12554
12554
|
var supportingStylePlaceholderText01Base = __assign(__assign({
|
|
12555
|
-
color: Colors$
|
|
12555
|
+
color: Colors$l.DdsColorNeutralsGray6
|
|
12556
12556
|
}, FontPackages$j.supportingStyle_placeholdertext_01.base), {
|
|
12557
12557
|
margin: 0
|
|
12558
12558
|
});
|
|
@@ -12585,7 +12585,7 @@ var supportingStyleTiny02MarginsBase = {
|
|
|
12585
12585
|
};
|
|
12586
12586
|
var selectionBase = {
|
|
12587
12587
|
color: textDefault$7.textColor,
|
|
12588
|
-
backgroundColor: Colors$
|
|
12588
|
+
backgroundColor: Colors$l.DdsColorTertiaryLightest
|
|
12589
12589
|
};
|
|
12590
12590
|
var typographyTokens = {
|
|
12591
12591
|
selection: {
|
|
@@ -12607,7 +12607,7 @@ var typographyTokens = {
|
|
|
12607
12607
|
base: aBoldBase
|
|
12608
12608
|
},
|
|
12609
12609
|
icon: {
|
|
12610
|
-
marginLeft: Spacing$
|
|
12610
|
+
marginLeft: Spacing$v.SizesDdsSpacingLocalX0125
|
|
12611
12611
|
}
|
|
12612
12612
|
},
|
|
12613
12613
|
headingSans01: {
|
|
@@ -20461,26 +20461,26 @@ var getTextColor = function getTextColor(color) {
|
|
|
20461
20461
|
};
|
|
20462
20462
|
|
|
20463
20463
|
var getElementStyling = function getElementStyling(type) {
|
|
20464
|
-
return Ae(templateObject_1$
|
|
20464
|
+
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);
|
|
20465
20465
|
};
|
|
20466
20466
|
|
|
20467
20467
|
var LinkIconWrapper = styled(IconWrapper$1).withConfig({
|
|
20468
20468
|
displayName: "Typography__LinkIconWrapper",
|
|
20469
20469
|
componentId: "sc-1uvxoh6-0"
|
|
20470
|
-
})(templateObject_2$
|
|
20470
|
+
})(templateObject_2$B || (templateObject_2$B = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyTokens.typographyType.a.icon);
|
|
20471
20471
|
var StyledTypography = styled.p.withConfig({
|
|
20472
20472
|
displayName: "Typography__StyledTypography",
|
|
20473
20473
|
componentId: "sc-1uvxoh6-1"
|
|
20474
|
-
})(templateObject_13$
|
|
20474
|
+
})(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) {
|
|
20475
20475
|
var typographyType = _a.typographyType;
|
|
20476
20476
|
return typographyType && getElementStyling(typographyType);
|
|
20477
20477
|
}, function (_a) {
|
|
20478
20478
|
var typographyType = _a.typographyType,
|
|
20479
20479
|
interactionProps = _a.interactionProps;
|
|
20480
|
-
return typographyType === 'a' && Ae(templateObject_4$
|
|
20480
|
+
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);
|
|
20481
20481
|
}, function (_a) {
|
|
20482
20482
|
var interactionProps = _a.interactionProps;
|
|
20483
|
-
return interactionProps && interactionProps.hover && Ae(templateObject_5$
|
|
20483
|
+
return interactionProps && interactionProps.hover && Ae(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n &:hover {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n "])), interactionProps.hover);
|
|
20484
20484
|
}, function (_a) {
|
|
20485
20485
|
var interactionProps = _a.interactionProps;
|
|
20486
20486
|
return interactionProps && interactionProps.active && Ae(templateObject_6$e || (templateObject_6$e = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active);
|
|
@@ -20499,7 +20499,7 @@ var StyledTypography = styled.p.withConfig({
|
|
|
20499
20499
|
return italic && Ae(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.italic.base);
|
|
20500
20500
|
}, function (_a) {
|
|
20501
20501
|
var underline = _a.underline;
|
|
20502
|
-
return underline && Ae(templateObject_12$
|
|
20502
|
+
return underline && Ae(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.underline.base);
|
|
20503
20503
|
});
|
|
20504
20504
|
var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20505
20505
|
var _b = _a.typographyType,
|
|
@@ -20528,81 +20528,81 @@ var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20528
20528
|
}, void 0) : '']
|
|
20529
20529
|
}), void 0);
|
|
20530
20530
|
});
|
|
20531
|
-
var templateObject_1$
|
|
20531
|
+
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;
|
|
20532
20532
|
|
|
20533
20533
|
var RadioButtonGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
20534
20534
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
20535
20535
|
return useContext(RadioButtonGroupContext);
|
|
20536
20536
|
};
|
|
20537
20537
|
|
|
20538
|
-
var Colors$
|
|
20539
|
-
Border$
|
|
20540
|
-
Spacing$
|
|
20538
|
+
var Colors$k = ddsBaseTokens.colors,
|
|
20539
|
+
Border$g = ddsBaseTokens.border,
|
|
20540
|
+
Spacing$u = ddsBaseTokens.spacing,
|
|
20541
20541
|
FontPackages$i = ddsBaseTokens.fontPackages;
|
|
20542
20542
|
var radioButtonBase = {
|
|
20543
20543
|
border: '1px solid',
|
|
20544
|
-
borderColor: Colors$
|
|
20545
|
-
backgroundColor: Colors$
|
|
20544
|
+
borderColor: Colors$k.DdsColorNeutralsGray5,
|
|
20545
|
+
backgroundColor: Colors$k.DdsColorNeutralsWhite,
|
|
20546
20546
|
height: FontPackages$i.supportingStyle_inputtext_02.numbers.fontSizeNumber,
|
|
20547
20547
|
width: FontPackages$i.supportingStyle_inputtext_02.numbers.fontSizeNumber
|
|
20548
20548
|
};
|
|
20549
20549
|
var radioButtonHoverBase = {
|
|
20550
20550
|
border: '2px solid',
|
|
20551
|
-
backgroundColor: Colors$
|
|
20552
|
-
borderColor: Colors$
|
|
20551
|
+
backgroundColor: Colors$k.DdsColorInteractiveLightest,
|
|
20552
|
+
borderColor: Colors$k.DdsColorInteractiveBase
|
|
20553
20553
|
};
|
|
20554
20554
|
var radioButtonDisabledBase = {
|
|
20555
20555
|
border: '1px solid',
|
|
20556
|
-
borderColor: Colors$
|
|
20557
|
-
color: Colors$
|
|
20556
|
+
borderColor: Colors$k.DdsColorNeutralsGray5,
|
|
20557
|
+
color: Colors$k.DdsColorNeutralsGray6
|
|
20558
20558
|
};
|
|
20559
20559
|
var radioButtonReadOnlyBase = {
|
|
20560
20560
|
backgroundColor: 'transparent'
|
|
20561
20561
|
};
|
|
20562
20562
|
var radioButtonDangerBase = {
|
|
20563
20563
|
border: '2px solid',
|
|
20564
|
-
borderColor: Colors$
|
|
20564
|
+
borderColor: Colors$k.DdsColorDangerBase
|
|
20565
20565
|
};
|
|
20566
20566
|
var radioButtonDangerHoverBase = {
|
|
20567
20567
|
border: '2px solid',
|
|
20568
|
-
backgroundColor: Colors$
|
|
20569
|
-
borderColor: Colors$
|
|
20568
|
+
backgroundColor: Colors$k.DdsColorDangerLightest,
|
|
20569
|
+
borderColor: Colors$k.DdsColorDangerBase
|
|
20570
20570
|
};
|
|
20571
20571
|
var radioButtonCheckedBase = {
|
|
20572
20572
|
border: '2px solid',
|
|
20573
|
-
backgroundColor: Colors$
|
|
20574
|
-
borderColor: Colors$
|
|
20573
|
+
backgroundColor: Colors$k.DdsColorInteractiveBase,
|
|
20574
|
+
borderColor: Colors$k.DdsColorInteractiveBase
|
|
20575
20575
|
};
|
|
20576
20576
|
var radioButtonCheckedHoverBase = {
|
|
20577
20577
|
border: '2px solid',
|
|
20578
|
-
backgroundColor: Colors$
|
|
20579
|
-
borderColor: Colors$
|
|
20578
|
+
backgroundColor: Colors$k.DdsColorInteractiveDark,
|
|
20579
|
+
borderColor: Colors$k.DdsColorInteractiveDark
|
|
20580
20580
|
};
|
|
20581
20581
|
var radioButtonCheckedDisabledBase = {
|
|
20582
20582
|
border: '1px solid',
|
|
20583
|
-
borderColor: Colors$
|
|
20584
|
-
backgroundColor: Colors$
|
|
20583
|
+
borderColor: Colors$k.DdsColorNeutralsGray6,
|
|
20584
|
+
backgroundColor: Colors$k.DdsColorNeutralsGray6
|
|
20585
20585
|
};
|
|
20586
20586
|
var radioButtonCheckedReadOnlyBase = {
|
|
20587
20587
|
border: '2px solid',
|
|
20588
|
-
borderColor: Colors$
|
|
20589
|
-
backgroundColor: Colors$
|
|
20588
|
+
borderColor: Colors$k.DdsColorNeutralsGray6,
|
|
20589
|
+
backgroundColor: Colors$k.DdsColorNeutralsGray6
|
|
20590
20590
|
};
|
|
20591
20591
|
var checkmarkBase$1 = {
|
|
20592
|
-
backgroundColor: Colors$
|
|
20593
|
-
height: Spacing$
|
|
20594
|
-
width: Spacing$
|
|
20595
|
-
left: "calc(50% - " + Spacing$
|
|
20596
|
-
top: "calc(50% - " + Spacing$
|
|
20592
|
+
backgroundColor: Colors$k.DdsColorNeutralsWhite,
|
|
20593
|
+
height: Spacing$u.SizesDdsSpacingLocalX05,
|
|
20594
|
+
width: Spacing$u.SizesDdsSpacingLocalX05,
|
|
20595
|
+
left: "calc(50% - " + Spacing$u.SizesDdsSpacingLocalX05NumberPx / 2 + "px)",
|
|
20596
|
+
top: "calc(50% - " + Spacing$u.SizesDdsSpacingLocalX05NumberPx / 2 + "px)"
|
|
20597
20597
|
};
|
|
20598
20598
|
var containerBase$4 = {
|
|
20599
|
-
marginRight: Spacing$
|
|
20600
|
-
padding: Spacing$
|
|
20599
|
+
marginRight: Spacing$u.SizesDdsSpacingLocalX075,
|
|
20600
|
+
padding: Spacing$u.SizesDdsSpacingLocalX025 + " " + Spacing$u.SizesDdsSpacingLocalX025 + " " + Spacing$u.SizesDdsSpacingLocalX025 + " " + (20 + Spacing$u.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
20601
20601
|
};
|
|
20602
20602
|
var radioButtonTokens = {
|
|
20603
20603
|
radioButton: {
|
|
20604
20604
|
base: radioButtonBase,
|
|
20605
|
-
spaceLeft: Spacing$
|
|
20605
|
+
spaceLeft: Spacing$u.SizesDdsSpacingLocalX025,
|
|
20606
20606
|
hover: {
|
|
20607
20607
|
base: radioButtonHoverBase
|
|
20608
20608
|
},
|
|
@@ -20637,8 +20637,8 @@ var radioButtonTokens = {
|
|
|
20637
20637
|
container: {
|
|
20638
20638
|
base: containerBase$4,
|
|
20639
20639
|
focusOutline: {
|
|
20640
|
-
color: Border$
|
|
20641
|
-
width: Border$
|
|
20640
|
+
color: Border$g.BordersDdsBorderFocusBaseStroke,
|
|
20641
|
+
width: Border$g.BordersDdsBorderFocusBaseStrokeWeight
|
|
20642
20642
|
}
|
|
20643
20643
|
}
|
|
20644
20644
|
};
|
|
@@ -20646,7 +20646,7 @@ var radioButtonTokens = {
|
|
|
20646
20646
|
var CustomRadioButton = styled.span.withConfig({
|
|
20647
20647
|
displayName: "RadioButtonstyles__CustomRadioButton",
|
|
20648
20648
|
componentId: "sc-iwypha-0"
|
|
20649
|
-
})(templateObject_1$
|
|
20649
|
+
})(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);
|
|
20650
20650
|
var Input$5 = styled.input.attrs(function (_a) {
|
|
20651
20651
|
var _b = _a.type,
|
|
20652
20652
|
type = _b === void 0 ? 'radio' : _b;
|
|
@@ -20656,23 +20656,23 @@ var Input$5 = styled.input.attrs(function (_a) {
|
|
|
20656
20656
|
}).withConfig({
|
|
20657
20657
|
displayName: "RadioButtonstyles__Input",
|
|
20658
20658
|
componentId: "sc-iwypha-1"
|
|
20659
|
-
})(templateObject_2$
|
|
20660
|
-
var Container$
|
|
20659
|
+
})(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"])));
|
|
20660
|
+
var Container$d = styled.label.withConfig({
|
|
20661
20661
|
displayName: "RadioButtonstyles__Container",
|
|
20662
20662
|
componentId: "sc-iwypha-2"
|
|
20663
20663
|
})(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) {
|
|
20664
20664
|
var error = _a.error;
|
|
20665
|
-
return error && Ae(templateObject_3$
|
|
20665
|
+
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);
|
|
20666
20666
|
}, function (_a) {
|
|
20667
20667
|
var disabled = _a.disabled;
|
|
20668
|
-
return disabled && Ae(templateObject_4$
|
|
20668
|
+
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);
|
|
20669
20669
|
}, function (_a) {
|
|
20670
20670
|
var readOnly = _a.readOnly;
|
|
20671
|
-
return readOnly && Ae(templateObject_5$
|
|
20671
|
+
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);
|
|
20672
20672
|
}, CustomRadioButton, radioButtonTokens.checkmark.base);
|
|
20673
|
-
var templateObject_1$
|
|
20673
|
+
var templateObject_1$P, templateObject_2$A, templateObject_3$p, templateObject_4$l, templateObject_5$e, templateObject_6$d;
|
|
20674
20674
|
|
|
20675
|
-
var nextUniqueId$
|
|
20675
|
+
var nextUniqueId$b = 0;
|
|
20676
20676
|
|
|
20677
20677
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
20678
20678
|
if (typeof value !== 'undefined' && value !== null && group) {
|
|
@@ -20703,7 +20703,7 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20703
20703
|
ariaDescribedby = _a["aria-describedby"],
|
|
20704
20704
|
rest = __rest(_a, ["id", "name", "label", "disabled", "readOnly", "error", "style", "checked", "value", "className", "children", "required", "onChange", 'aria-describedby']);
|
|
20705
20705
|
|
|
20706
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$
|
|
20706
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$b++)[0];
|
|
20707
20707
|
var radioButtonGroup = useRadioButtonGroup();
|
|
20708
20708
|
|
|
20709
20709
|
var handleChange = function handleChange(event) {
|
|
@@ -20734,7 +20734,7 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20734
20734
|
style: style,
|
|
20735
20735
|
className: className
|
|
20736
20736
|
};
|
|
20737
|
-
return jsxRuntime.jsxs(Container$
|
|
20737
|
+
return jsxRuntime.jsxs(Container$d, __assign({}, containerProps, {
|
|
20738
20738
|
htmlFor: uniqueId
|
|
20739
20739
|
}, {
|
|
20740
20740
|
children: [jsxRuntime.jsx(Input$5, __assign({
|
|
@@ -20750,14 +20750,14 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20750
20750
|
var MarkerWrapper = styled.span.withConfig({
|
|
20751
20751
|
displayName: "RequiredMarker__MarkerWrapper",
|
|
20752
20752
|
componentId: "sc-1p5sjqf-0"
|
|
20753
|
-
})(templateObject_1$
|
|
20753
|
+
})(templateObject_1$O || (templateObject_1$O = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), ddsBaseTokens.colors.DdsColorDangerBase);
|
|
20754
20754
|
|
|
20755
20755
|
function RequiredMarker() {
|
|
20756
20756
|
return jsxRuntime.jsx(MarkerWrapper, {
|
|
20757
20757
|
children: "*"
|
|
20758
20758
|
}, void 0);
|
|
20759
20759
|
}
|
|
20760
|
-
var templateObject_1$
|
|
20760
|
+
var templateObject_1$O;
|
|
20761
20761
|
|
|
20762
20762
|
var ReportProblemOutlined = createCommonjsModule(function (module, exports) {
|
|
20763
20763
|
|
|
@@ -20783,22 +20783,22 @@ exports.default = _default;
|
|
|
20783
20783
|
|
|
20784
20784
|
var DangerOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(ReportProblemOutlined);
|
|
20785
20785
|
|
|
20786
|
-
var Colors$
|
|
20787
|
-
Spacing$
|
|
20788
|
-
var base$
|
|
20789
|
-
padding: Spacing$
|
|
20786
|
+
var Colors$j = ddsBaseTokens.colors,
|
|
20787
|
+
Spacing$t = ddsBaseTokens.spacing;
|
|
20788
|
+
var base$9 = {
|
|
20789
|
+
padding: Spacing$t.SizesDdsSpacingLocalX025 + " " + Spacing$t.SizesDdsSpacingLocalX05
|
|
20790
20790
|
};
|
|
20791
20791
|
var defaultMaxWidth = '100%';
|
|
20792
20792
|
var tipBase = {
|
|
20793
|
-
backgroundColor: Colors$
|
|
20793
|
+
backgroundColor: Colors$j.DdsColorNeutralsWhite
|
|
20794
20794
|
};
|
|
20795
20795
|
var errorBase = {
|
|
20796
|
-
color: Colors$
|
|
20797
|
-
backgroundColor: Colors$
|
|
20796
|
+
color: Colors$j.DdsColorDangerBase,
|
|
20797
|
+
backgroundColor: Colors$j.DdsColorDangerLightest
|
|
20798
20798
|
};
|
|
20799
20799
|
var inputMessageTokens = {
|
|
20800
|
-
padding: Spacing$
|
|
20801
|
-
base: base$
|
|
20800
|
+
padding: Spacing$t.SizesDdsSpacingLocalX025 + " " + Spacing$t.SizesDdsSpacingLocalX05,
|
|
20801
|
+
base: base$9,
|
|
20802
20802
|
defaultMaxWidth: defaultMaxWidth,
|
|
20803
20803
|
tip: {
|
|
20804
20804
|
base: tipBase
|
|
@@ -20807,16 +20807,16 @@ var inputMessageTokens = {
|
|
|
20807
20807
|
base: errorBase
|
|
20808
20808
|
},
|
|
20809
20809
|
icon: {
|
|
20810
|
-
spaceRight: Spacing$
|
|
20810
|
+
spaceRight: Spacing$t.SizesDdsSpacingLocalX05
|
|
20811
20811
|
}
|
|
20812
20812
|
};
|
|
20813
20813
|
|
|
20814
20814
|
var InputMessageWrapper = styled.div.withConfig({
|
|
20815
20815
|
displayName: "InputMessage__InputMessageWrapper",
|
|
20816
20816
|
componentId: "sc-n5r6yv-0"
|
|
20817
|
-
})(templateObject_2$
|
|
20817
|
+
})(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) {
|
|
20818
20818
|
var messageType = _a.messageType;
|
|
20819
|
-
return messageType && Ae(templateObject_1$
|
|
20819
|
+
return messageType && Ae(templateObject_1$N || (templateObject_1$N = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputMessageTokens[messageType].base);
|
|
20820
20820
|
}, function (_a) {
|
|
20821
20821
|
var maxWidth = _a.maxWidth;
|
|
20822
20822
|
return maxWidth;
|
|
@@ -20851,12 +20851,12 @@ var InputMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20851
20851
|
}), void 0)]
|
|
20852
20852
|
}), void 0);
|
|
20853
20853
|
});
|
|
20854
|
-
var templateObject_1$
|
|
20854
|
+
var templateObject_1$N, templateObject_2$z;
|
|
20855
20855
|
|
|
20856
|
-
var Spacing$
|
|
20856
|
+
var Spacing$s = ddsBaseTokens.spacing;
|
|
20857
20857
|
var radioButtonGroupTokens = {
|
|
20858
20858
|
label: {
|
|
20859
|
-
spaceLeft: Spacing$
|
|
20859
|
+
spaceLeft: Spacing$s.SizesDdsSpacingLocalX025
|
|
20860
20860
|
}
|
|
20861
20861
|
};
|
|
20862
20862
|
|
|
@@ -20887,21 +20887,21 @@ var spaceSeparatedIdListGenerator = function spaceSeparatedIdListGenerator(value
|
|
|
20887
20887
|
return (_a = idArrayGenerator(values)) === null || _a === void 0 ? void 0 : _a.join(' ');
|
|
20888
20888
|
};
|
|
20889
20889
|
|
|
20890
|
-
var Container$
|
|
20890
|
+
var Container$c = styled.div.withConfig({
|
|
20891
20891
|
displayName: "RadioButtonGroup__Container",
|
|
20892
20892
|
componentId: "sc-1xsll60-0"
|
|
20893
|
-
})(templateObject_1$
|
|
20893
|
+
})(templateObject_1$M || (templateObject_1$M = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20894
20894
|
var GroupContainer$1 = styled.div.withConfig({
|
|
20895
20895
|
displayName: "RadioButtonGroup__GroupContainer",
|
|
20896
20896
|
componentId: "sc-1xsll60-1"
|
|
20897
|
-
})(templateObject_2$
|
|
20897
|
+
})(templateObject_2$y || (templateObject_2$y = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20898
20898
|
var direction = _a.direction;
|
|
20899
20899
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20900
20900
|
});
|
|
20901
20901
|
var Label$4 = styled(Typography).withConfig({
|
|
20902
20902
|
displayName: "RadioButtonGroup__Label",
|
|
20903
20903
|
componentId: "sc-1xsll60-2"
|
|
20904
|
-
})(templateObject_3$
|
|
20904
|
+
})(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), radioButtonGroupTokens.label.spaceLeft);
|
|
20905
20905
|
var nextUniqueGroupId$1 = 0;
|
|
20906
20906
|
var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
20907
20907
|
var name = _a.name,
|
|
@@ -20950,7 +20950,7 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20950
20950
|
value: groupValue,
|
|
20951
20951
|
onChange: handleChange
|
|
20952
20952
|
};
|
|
20953
|
-
return jsxRuntime.jsxs(Container$
|
|
20953
|
+
return jsxRuntime.jsxs(Container$c, __assign({}, containerProps, {
|
|
20954
20954
|
children: [jsxRuntime.jsxs(Label$4, __assign({
|
|
20955
20955
|
forwardedAs: "span",
|
|
20956
20956
|
typographyType: "supportingStyleLabel01",
|
|
@@ -20980,62 +20980,62 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20980
20980
|
}, void 0)]
|
|
20981
20981
|
}), void 0);
|
|
20982
20982
|
};
|
|
20983
|
-
var templateObject_1$
|
|
20983
|
+
var templateObject_1$M, templateObject_2$y, templateObject_3$o;
|
|
20984
20984
|
|
|
20985
|
-
var Colors$
|
|
20986
|
-
Border$
|
|
20987
|
-
Spacing$
|
|
20985
|
+
var Colors$i = ddsBaseTokens.colors,
|
|
20986
|
+
Border$f = ddsBaseTokens.border,
|
|
20987
|
+
Spacing$r = ddsBaseTokens.spacing,
|
|
20988
20988
|
FontPackages$h = ddsBaseTokens.fontPackages,
|
|
20989
|
-
BorderRadius$
|
|
20989
|
+
BorderRadius$7 = ddsBaseTokens.borderRadius;
|
|
20990
20990
|
var checkboxBase = {
|
|
20991
20991
|
border: '1px solid',
|
|
20992
|
-
backgroundColor: Colors$
|
|
20993
|
-
borderColor: Colors$
|
|
20994
|
-
borderRadius: BorderRadius$
|
|
20992
|
+
backgroundColor: Colors$i.DdsColorNeutralsWhite,
|
|
20993
|
+
borderColor: Colors$i.DdsColorNeutralsGray5,
|
|
20994
|
+
borderRadius: BorderRadius$7.RadiiDdsBorderRadius1Radius,
|
|
20995
20995
|
height: FontPackages$h.supportingStyle_inputtext_02.base.fontSize,
|
|
20996
20996
|
width: FontPackages$h.supportingStyle_inputtext_02.base.fontSize
|
|
20997
20997
|
};
|
|
20998
20998
|
var checkboxCheckedBase = {
|
|
20999
20999
|
border: '2px solid',
|
|
21000
|
-
borderColor: Colors$
|
|
21001
|
-
backgroundColor: Colors$
|
|
21000
|
+
borderColor: Colors$i.DdsColorInteractiveBase,
|
|
21001
|
+
backgroundColor: Colors$i.DdsColorInteractiveBase
|
|
21002
21002
|
};
|
|
21003
21003
|
var checkboxDisabledBase = {
|
|
21004
21004
|
border: '1px solid',
|
|
21005
|
-
borderColor: Colors$
|
|
21006
|
-
color: Colors$
|
|
21005
|
+
borderColor: Colors$i.DdsColorNeutralsGray5,
|
|
21006
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
21007
21007
|
};
|
|
21008
21008
|
var checkboxCheckedDisabledBase = {
|
|
21009
21009
|
border: '2px solid',
|
|
21010
|
-
borderColor: Colors$
|
|
21011
|
-
backgroundColor: Colors$
|
|
21010
|
+
borderColor: Colors$i.DdsColorNeutralsGray6,
|
|
21011
|
+
backgroundColor: Colors$i.DdsColorNeutralsGray6
|
|
21012
21012
|
};
|
|
21013
21013
|
var checkboxReadOnlyBase = {
|
|
21014
21014
|
backgroundColor: 'transparent'
|
|
21015
21015
|
};
|
|
21016
21016
|
var checkboxCheckedReadOnlyBase = {
|
|
21017
21017
|
border: '2px solid',
|
|
21018
|
-
borderColor: Colors$
|
|
21019
|
-
backgroundColor: Colors$
|
|
21018
|
+
borderColor: Colors$i.DdsColorNeutralsGray6,
|
|
21019
|
+
backgroundColor: Colors$i.DdsColorNeutralsGray6
|
|
21020
21020
|
};
|
|
21021
21021
|
var checkboxHoverBase = {
|
|
21022
|
-
backgroundColor: Colors$
|
|
21022
|
+
backgroundColor: Colors$i.DdsColorInteractiveLightest,
|
|
21023
21023
|
border: '2px solid',
|
|
21024
|
-
borderColor: Colors$
|
|
21024
|
+
borderColor: Colors$i.DdsColorInteractiveBase
|
|
21025
21025
|
};
|
|
21026
21026
|
var checkboxCheckedHoverBase = {
|
|
21027
|
-
backgroundColor: Colors$
|
|
21027
|
+
backgroundColor: Colors$i.DdsColorInteractiveDark,
|
|
21028
21028
|
border: '2px solid',
|
|
21029
|
-
borderColor: Colors$
|
|
21029
|
+
borderColor: Colors$i.DdsColorInteractiveDark
|
|
21030
21030
|
};
|
|
21031
21031
|
var checkboxDangerBase = {
|
|
21032
21032
|
border: '2px solid',
|
|
21033
|
-
borderColor: Colors$
|
|
21033
|
+
borderColor: Colors$i.DdsColorDangerBase
|
|
21034
21034
|
};
|
|
21035
21035
|
var checkboxDangerHoverBase = {
|
|
21036
|
-
backgroundColor: Colors$
|
|
21036
|
+
backgroundColor: Colors$i.DdsColorDangerLightest,
|
|
21037
21037
|
border: '2px solid',
|
|
21038
|
-
borderColor: Colors$
|
|
21038
|
+
borderColor: Colors$i.DdsColorDangerBase
|
|
21039
21039
|
};
|
|
21040
21040
|
var checkmarkBase = {
|
|
21041
21041
|
borderWidth: '0 1px 1px 0',
|
|
@@ -21052,17 +21052,17 @@ var checkmarkIndeterminateBase = {
|
|
|
21052
21052
|
var containerBase$3 = __assign({}, FontPackages$h.body_sans_02.base);
|
|
21053
21053
|
|
|
21054
21054
|
var containerWithLabelBase = __assign(__assign({}, FontPackages$h.body_sans_02.base), {
|
|
21055
|
-
marginRight: Spacing$
|
|
21056
|
-
padding: "0 " + Spacing$
|
|
21055
|
+
marginRight: Spacing$r.SizesDdsSpacingLocalX075,
|
|
21056
|
+
padding: "0 " + Spacing$r.SizesDdsSpacingLocalX025 + " 0 " + (FontPackages$h.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$r.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
21057
21057
|
});
|
|
21058
21058
|
|
|
21059
21059
|
var containerNoLabelBase = {
|
|
21060
|
-
padding: Spacing$
|
|
21060
|
+
padding: Spacing$r.SizesDdsSpacingLocalX075 + " " + Spacing$r.SizesDdsSpacingLocalX0125 + " " + Spacing$r.SizesDdsSpacingLocalX075 + " " + Spacing$r.SizesDdsSpacingLocalX15
|
|
21061
21061
|
};
|
|
21062
21062
|
var checkboxTokens = {
|
|
21063
21063
|
checkbox: {
|
|
21064
21064
|
base: checkboxBase,
|
|
21065
|
-
spaceLeft: Spacing$
|
|
21065
|
+
spaceLeft: Spacing$r.SizesDdsSpacingLocalX025,
|
|
21066
21066
|
hover: {
|
|
21067
21067
|
base: checkboxHoverBase
|
|
21068
21068
|
},
|
|
@@ -21105,7 +21105,7 @@ var checkboxTokens = {
|
|
|
21105
21105
|
},
|
|
21106
21106
|
checkmark: {
|
|
21107
21107
|
base: checkmarkBase,
|
|
21108
|
-
color: Colors$
|
|
21108
|
+
color: Colors$i.DdsColorNeutralsWhite,
|
|
21109
21109
|
indeterminate: {
|
|
21110
21110
|
base: checkmarkIndeterminateBase
|
|
21111
21111
|
}
|
|
@@ -21113,8 +21113,8 @@ var checkboxTokens = {
|
|
|
21113
21113
|
container: {
|
|
21114
21114
|
base: containerBase$3,
|
|
21115
21115
|
focusOutline: {
|
|
21116
|
-
color: Border$
|
|
21117
|
-
width: Border$
|
|
21116
|
+
color: Border$f.BordersDdsBorderFocusBaseStroke,
|
|
21117
|
+
width: Border$f.BordersDdsBorderFocusBaseStrokeWeight
|
|
21118
21118
|
},
|
|
21119
21119
|
withLabel: {
|
|
21120
21120
|
base: containerWithLabelBase
|
|
@@ -21128,7 +21128,7 @@ var checkboxTokens = {
|
|
|
21128
21128
|
var CustomCheckbox = styled.span.withConfig({
|
|
21129
21129
|
displayName: "Checkboxstyles__CustomCheckbox",
|
|
21130
21130
|
componentId: "sc-17q1ubf-0"
|
|
21131
|
-
})(templateObject_1$
|
|
21131
|
+
})(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);
|
|
21132
21132
|
var Input$4 = styled.input.attrs(function (_a) {
|
|
21133
21133
|
var _b = _a.type,
|
|
21134
21134
|
type = _b === void 0 ? 'checkbox' : _b;
|
|
@@ -21138,16 +21138,16 @@ var Input$4 = styled.input.attrs(function (_a) {
|
|
|
21138
21138
|
}).withConfig({
|
|
21139
21139
|
displayName: "Checkboxstyles__Input",
|
|
21140
21140
|
componentId: "sc-17q1ubf-1"
|
|
21141
|
-
})(templateObject_2$
|
|
21142
|
-
var Container$
|
|
21141
|
+
})(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"])));
|
|
21142
|
+
var Container$b = styled.label.withConfig({
|
|
21143
21143
|
displayName: "Checkboxstyles__Container",
|
|
21144
21144
|
componentId: "sc-17q1ubf-2"
|
|
21145
|
-
})(templateObject_13$
|
|
21145
|
+
})(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) {
|
|
21146
21146
|
var label = _a.label;
|
|
21147
|
-
return label ? Ae(templateObject_3$
|
|
21147
|
+
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);
|
|
21148
21148
|
}, 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) {
|
|
21149
21149
|
var error = _a.error;
|
|
21150
|
-
return error && Ae(templateObject_5$
|
|
21150
|
+
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);
|
|
21151
21151
|
}, function (_a) {
|
|
21152
21152
|
var indeterminate = _a.indeterminate;
|
|
21153
21153
|
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);
|
|
@@ -21161,16 +21161,16 @@ var Container$8 = styled.label.withConfig({
|
|
|
21161
21161
|
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));
|
|
21162
21162
|
}, CustomCheckbox, checkboxTokens.checkmark.color, function (_a) {
|
|
21163
21163
|
var indeterminate = _a.indeterminate;
|
|
21164
|
-
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$
|
|
21164
|
+
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);
|
|
21165
21165
|
});
|
|
21166
|
-
var templateObject_1$
|
|
21166
|
+
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;
|
|
21167
21167
|
|
|
21168
21168
|
var CheckboxGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
21169
21169
|
var useCheckboxGroup = function useCheckboxGroup() {
|
|
21170
21170
|
return useContext(CheckboxGroupContext);
|
|
21171
21171
|
};
|
|
21172
21172
|
|
|
21173
|
-
var nextUniqueId$
|
|
21173
|
+
var nextUniqueId$a = 0;
|
|
21174
21174
|
var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21175
21175
|
var id = _a.id,
|
|
21176
21176
|
name = _a.name,
|
|
@@ -21184,7 +21184,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21184
21184
|
style = _a.style,
|
|
21185
21185
|
rest = __rest(_a, ["id", "name", "label", "error", "disabled", "readOnly", "indeterminate", 'aria-describedby', "className", "style"]);
|
|
21186
21186
|
|
|
21187
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$
|
|
21187
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$a++)[0];
|
|
21188
21188
|
var checkboxGroup = useCheckboxGroup();
|
|
21189
21189
|
var containerProps = {
|
|
21190
21190
|
error: error || (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.error),
|
|
@@ -21210,7 +21210,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21210
21210
|
'aria-readonly': readOnly
|
|
21211
21211
|
}, rest);
|
|
21212
21212
|
|
|
21213
|
-
return jsxRuntime.jsxs(Container$
|
|
21213
|
+
return jsxRuntime.jsxs(Container$b, __assign({}, containerProps, {
|
|
21214
21214
|
children: [jsxRuntime.jsx(Input$4, __assign({}, inputProps, {
|
|
21215
21215
|
"data-indeterminate": indeterminate
|
|
21216
21216
|
}), void 0), jsxRuntime.jsx(CustomCheckbox, {}, void 0), label && jsxRuntime.jsx(Typography, __assign({
|
|
@@ -21221,28 +21221,28 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21221
21221
|
}), void 0);
|
|
21222
21222
|
});
|
|
21223
21223
|
|
|
21224
|
-
var Spacing$
|
|
21224
|
+
var Spacing$q = ddsBaseTokens.spacing;
|
|
21225
21225
|
var checkboxGroupTokens = {
|
|
21226
21226
|
label: {
|
|
21227
|
-
spaceLeft: Spacing$
|
|
21227
|
+
spaceLeft: Spacing$q.SizesDdsSpacingLocalX025
|
|
21228
21228
|
}
|
|
21229
21229
|
};
|
|
21230
21230
|
|
|
21231
|
-
var Container$
|
|
21231
|
+
var Container$a = styled.div.withConfig({
|
|
21232
21232
|
displayName: "CheckboxGroup__Container",
|
|
21233
21233
|
componentId: "sc-uixbzg-0"
|
|
21234
|
-
})(templateObject_1$
|
|
21234
|
+
})(templateObject_1$K || (templateObject_1$K = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
21235
21235
|
var GroupContainer = styled.div.withConfig({
|
|
21236
21236
|
displayName: "CheckboxGroup__GroupContainer",
|
|
21237
21237
|
componentId: "sc-uixbzg-1"
|
|
21238
|
-
})(templateObject_2$
|
|
21238
|
+
})(templateObject_2$w || (templateObject_2$w = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
21239
21239
|
var direction = _a.direction;
|
|
21240
21240
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
21241
21241
|
});
|
|
21242
21242
|
var Label$3 = styled(Typography).withConfig({
|
|
21243
21243
|
displayName: "CheckboxGroup__Label",
|
|
21244
21244
|
componentId: "sc-uixbzg-2"
|
|
21245
|
-
})(templateObject_3$
|
|
21245
|
+
})(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), checkboxGroupTokens.label.spaceLeft);
|
|
21246
21246
|
var nextUniqueGroupId = 0;
|
|
21247
21247
|
var CheckboxGroup = function CheckboxGroup(_a) {
|
|
21248
21248
|
var label = _a.label,
|
|
@@ -21271,7 +21271,7 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
21271
21271
|
uniqueGroupId: uniqueGroupId,
|
|
21272
21272
|
tipId: tipId
|
|
21273
21273
|
};
|
|
21274
|
-
return jsxRuntime.jsxs(Container$
|
|
21274
|
+
return jsxRuntime.jsxs(Container$a, __assign({}, containerProps, {
|
|
21275
21275
|
children: [jsxRuntime.jsxs(Label$3, __assign({
|
|
21276
21276
|
forwardedAs: "span",
|
|
21277
21277
|
typographyType: "supportingStyleLabel01",
|
|
@@ -21300,121 +21300,138 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
21300
21300
|
}, void 0)]
|
|
21301
21301
|
}), void 0);
|
|
21302
21302
|
};
|
|
21303
|
-
var templateObject_1$
|
|
21303
|
+
var templateObject_1$K, templateObject_2$w, templateObject_3$m;
|
|
21304
21304
|
|
|
21305
21305
|
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
21306
21306
|
return lineHeight * 0.01 * fontSize;
|
|
21307
21307
|
};
|
|
21308
21308
|
|
|
21309
|
-
var Colors$
|
|
21310
|
-
Border$
|
|
21311
|
-
Spacing$
|
|
21309
|
+
var Colors$h = ddsBaseTokens.colors,
|
|
21310
|
+
Border$e = ddsBaseTokens.border,
|
|
21311
|
+
Spacing$p = ddsBaseTokens.spacing,
|
|
21312
21312
|
FontPackages$g = ddsBaseTokens.fontPackages,
|
|
21313
|
-
BorderRadius$
|
|
21314
|
-
OuterShadow$
|
|
21315
|
-
|
|
21316
|
-
var
|
|
21317
|
-
|
|
21318
|
-
|
|
21319
|
-
|
|
21313
|
+
BorderRadius$6 = ddsBaseTokens.borderRadius,
|
|
21314
|
+
OuterShadow$4 = ddsBaseTokens.outerShadow;
|
|
21315
|
+
var iconSizeTinyPx = calculateHeightWithLineHeight(FontPackages$g.supportingStyle_tiny_01.numbers.lineHeightNumber, FontPackages$g.supportingStyle_tiny_01.numbers.fontSizeNumber);
|
|
21316
|
+
var iconSizeSmallPx = calculateHeightWithLineHeight(FontPackages$g.body_sans_01.numbers.lineHeightNumber, FontPackages$g.body_sans_01.numbers.fontSizeNumber);
|
|
21317
|
+
var iconSizeMediumPx = calculateHeightWithLineHeight(FontPackages$g.body_sans_02.numbers.lineHeightNumber, FontPackages$g.body_sans_02.numbers.fontSizeNumber);
|
|
21318
|
+
var iconSizeLargePx = calculateHeightWithLineHeight(FontPackages$g.body_sans_04.numbers.lineHeightNumber, FontPackages$g.body_sans_04.numbers.fontSizeNumber);
|
|
21319
|
+
var svgOffset = Spacing$p.SizesDdsSpacingLocalX0125NumberPx;
|
|
21320
|
+
var justIconSmallBase = {
|
|
21321
|
+
fontSize: iconSizeSmallPx + svgOffset + "px",
|
|
21322
|
+
padding: Spacing$p.SizesDdsSpacingLocalX05
|
|
21323
|
+
};
|
|
21320
21324
|
var justIconWrapperSmallBase = {
|
|
21321
|
-
height:
|
|
21322
|
-
width:
|
|
21325
|
+
height: iconSizeSmallPx + "px",
|
|
21326
|
+
width: iconSizeSmallPx + "px"
|
|
21323
21327
|
};
|
|
21324
21328
|
|
|
21325
21329
|
var textSmallBase = __assign(__assign({}, FontPackages$g.body_sans_01.base), {
|
|
21326
|
-
padding: Spacing$
|
|
21327
|
-
});
|
|
21328
|
-
|
|
21329
|
-
var justIconMediumBase = __assign(__assign({}, FontPackages$g.heading_sans_03.base), {
|
|
21330
|
-
padding: Spacing$n.SizesDdsSpacingLocalX075
|
|
21330
|
+
padding: Spacing$p.SizesDdsSpacingLocalX05 + " " + (Spacing$p.SizesDdsSpacingLocalX1NumberPx - 2) + "px"
|
|
21331
21331
|
});
|
|
21332
21332
|
|
|
21333
|
+
var justIconMediumBase = {
|
|
21334
|
+
fontSize: iconSizeMediumPx + svgOffset + "px",
|
|
21335
|
+
padding: Spacing$p.SizesDdsSpacingLocalX075
|
|
21336
|
+
};
|
|
21333
21337
|
var justIconWrapperMediumBase = {
|
|
21334
|
-
height:
|
|
21335
|
-
width:
|
|
21338
|
+
height: iconSizeMediumPx + "px",
|
|
21339
|
+
width: iconSizeMediumPx + "px"
|
|
21336
21340
|
};
|
|
21337
21341
|
|
|
21338
21342
|
var textMediumBase = __assign(__assign({}, FontPackages$g.body_sans_02.base), {
|
|
21339
|
-
padding: Spacing$
|
|
21343
|
+
padding: Spacing$p.SizesDdsSpacingLocalX075 + " " + (Spacing$p.SizesDdsSpacingLocalX15NumberPx - 2) + "px"
|
|
21340
21344
|
});
|
|
21341
21345
|
|
|
21342
|
-
var justIconLargeBase =
|
|
21343
|
-
|
|
21346
|
+
var justIconLargeBase = {
|
|
21347
|
+
fontSize: iconSizeLargePx + svgOffset + "px",
|
|
21348
|
+
padding: Spacing$p.SizesDdsSpacingLocalX1
|
|
21349
|
+
};
|
|
21350
|
+
var justIconWrapperLargeBase = {
|
|
21351
|
+
height: iconSizeLargePx + "px",
|
|
21352
|
+
width: iconSizeLargePx + "px"
|
|
21353
|
+
};
|
|
21354
|
+
|
|
21355
|
+
var textLargeBase = __assign(__assign({}, FontPackages$g.body_sans_04.base), {
|
|
21356
|
+
padding: Spacing$p.SizesDdsSpacingLocalX1 + " " + (Spacing$p.SizesDdsSpacingLocalX2NumberPx - 2) + "px"
|
|
21344
21357
|
});
|
|
21345
21358
|
|
|
21346
|
-
var
|
|
21347
|
-
|
|
21348
|
-
|
|
21359
|
+
var justIconTinyBase = {
|
|
21360
|
+
fontSize: iconSizeTinyPx + svgOffset + "px",
|
|
21361
|
+
padding: Spacing$p.SizesDdsSpacingLocalX025
|
|
21362
|
+
};
|
|
21363
|
+
var justIconWrapperTinyBase = {
|
|
21364
|
+
height: iconSizeTinyPx + "px",
|
|
21365
|
+
width: iconSizeTinyPx + "px"
|
|
21349
21366
|
};
|
|
21350
21367
|
|
|
21351
|
-
var
|
|
21352
|
-
padding: Spacing$
|
|
21368
|
+
var textTinyBase = __assign(__assign({}, FontPackages$g.supportingStyle_tiny_01.base), {
|
|
21369
|
+
padding: Spacing$p.SizesDdsSpacingLocalX025 + " " + Spacing$p.SizesDdsSpacingLocalX075
|
|
21353
21370
|
});
|
|
21354
21371
|
|
|
21355
21372
|
var buttonBase$1 = {
|
|
21356
|
-
border: Border$
|
|
21373
|
+
border: Border$e.BordersDdsBorderStyleLightStrokeWeight + " solid"
|
|
21357
21374
|
};
|
|
21358
21375
|
var filledButtonColors = {
|
|
21359
21376
|
primary: {
|
|
21360
21377
|
base: {
|
|
21361
|
-
color: Colors$
|
|
21362
|
-
backgroundColor: Colors$
|
|
21363
|
-
borderColor: Colors$
|
|
21378
|
+
color: Colors$h.DdsColorNeutralsWhite,
|
|
21379
|
+
backgroundColor: Colors$h.DdsColorInteractiveBase,
|
|
21380
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
21364
21381
|
},
|
|
21365
21382
|
hover: {
|
|
21366
21383
|
base: {
|
|
21367
|
-
backgroundColor: Colors$
|
|
21368
|
-
borderColor: Colors$
|
|
21384
|
+
backgroundColor: Colors$h.DdsColorInteractiveDark,
|
|
21385
|
+
borderColor: Colors$h.DdsColorInteractiveDark
|
|
21369
21386
|
}
|
|
21370
21387
|
},
|
|
21371
21388
|
active: {
|
|
21372
21389
|
base: {
|
|
21373
|
-
backgroundColor: Colors$
|
|
21374
|
-
borderColor: Colors$
|
|
21390
|
+
backgroundColor: Colors$h.DdsColorInteractiveDarker,
|
|
21391
|
+
borderColor: Colors$h.DdsColorInteractiveDarker
|
|
21375
21392
|
}
|
|
21376
21393
|
}
|
|
21377
21394
|
},
|
|
21378
21395
|
secondary: {
|
|
21379
21396
|
base: {
|
|
21380
|
-
color: Colors$
|
|
21381
|
-
backgroundColor: Colors$
|
|
21382
|
-
borderColor: Colors$
|
|
21397
|
+
color: Colors$h.DdsColorNeutralsGray8,
|
|
21398
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray1,
|
|
21399
|
+
borderColor: Colors$h.DdsColorNeutralsGray5
|
|
21383
21400
|
},
|
|
21384
21401
|
hover: {
|
|
21385
21402
|
base: {
|
|
21386
|
-
backgroundColor: Colors$
|
|
21403
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray2
|
|
21387
21404
|
}
|
|
21388
21405
|
},
|
|
21389
21406
|
active: {
|
|
21390
21407
|
base: {
|
|
21391
|
-
backgroundColor: Colors$
|
|
21408
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray3
|
|
21392
21409
|
}
|
|
21393
21410
|
}
|
|
21394
21411
|
},
|
|
21395
21412
|
danger: {
|
|
21396
21413
|
base: {
|
|
21397
|
-
color: Colors$
|
|
21398
|
-
backgroundColor: Colors$
|
|
21399
|
-
borderColor: Colors$
|
|
21414
|
+
color: Colors$h.DdsColorNeutralsWhite,
|
|
21415
|
+
backgroundColor: Colors$h.DdsColorDangerBase,
|
|
21416
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
21400
21417
|
},
|
|
21401
21418
|
hover: {
|
|
21402
21419
|
base: {
|
|
21403
|
-
backgroundColor: Colors$
|
|
21404
|
-
borderColor: Colors$
|
|
21420
|
+
backgroundColor: Colors$h.DdsColorDangerDark,
|
|
21421
|
+
borderColor: Colors$h.DdsColorDangerDark
|
|
21405
21422
|
}
|
|
21406
21423
|
},
|
|
21407
21424
|
active: {
|
|
21408
21425
|
base: {
|
|
21409
|
-
backgroundColor: Colors$
|
|
21410
|
-
borderColor: Colors$
|
|
21426
|
+
backgroundColor: Colors$h.DdsColorDangerDarker,
|
|
21427
|
+
borderColor: Colors$h.DdsColorDangerDarker
|
|
21411
21428
|
}
|
|
21412
21429
|
}
|
|
21413
21430
|
}
|
|
21414
21431
|
};
|
|
21415
21432
|
var filledBase = {
|
|
21416
|
-
borderRadius: BorderRadius$
|
|
21417
|
-
boxShadow: OuterShadow$
|
|
21433
|
+
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
21434
|
+
boxShadow: OuterShadow$4.DdsShadow1Onlight
|
|
21418
21435
|
};
|
|
21419
21436
|
|
|
21420
21437
|
var filledPrimaryBase = __assign({}, filledButtonColors.primary.base);
|
|
@@ -21454,7 +21471,7 @@ var roundedDangerHoverBase = __assign({}, filledButtonColors.danger.hover.base);
|
|
|
21454
21471
|
var roundedDangerActiveBase = __assign({}, filledButtonColors.danger.active.base);
|
|
21455
21472
|
|
|
21456
21473
|
var borderlessBase = {
|
|
21457
|
-
borderRadius: BorderRadius$
|
|
21474
|
+
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
21458
21475
|
boxShadow: 'none',
|
|
21459
21476
|
backgroundColor: 'transparent',
|
|
21460
21477
|
borderColor: 'transparent',
|
|
@@ -21462,119 +21479,119 @@ var borderlessBase = {
|
|
|
21462
21479
|
textDecorationColor: 'transparent'
|
|
21463
21480
|
};
|
|
21464
21481
|
var borderlessPrimaryBase = {
|
|
21465
|
-
color: Colors$
|
|
21466
|
-
taxtDecorationColor: Colors$
|
|
21482
|
+
color: Colors$h.DdsColorInteractiveBase,
|
|
21483
|
+
taxtDecorationColor: Colors$h.DdsColorInteractiveBase
|
|
21467
21484
|
};
|
|
21468
21485
|
var borderlessPrimaryHoverBase = {
|
|
21469
|
-
color: Colors$
|
|
21470
|
-
textDecorationColor: Colors$
|
|
21486
|
+
color: Colors$h.DdsColorInteractiveDark,
|
|
21487
|
+
textDecorationColor: Colors$h.DdsColorInteractiveDark
|
|
21471
21488
|
};
|
|
21472
21489
|
var borderlessPrimaryActiveBase = {
|
|
21473
|
-
color: Colors$
|
|
21474
|
-
textDecorationColor: Colors$
|
|
21490
|
+
color: Colors$h.DdsColorInteractiveDarker,
|
|
21491
|
+
textDecorationColor: Colors$h.DdsColorInteractiveDarker
|
|
21475
21492
|
};
|
|
21476
21493
|
var borderlessPrimaryIconHoverBase = {
|
|
21477
|
-
borderColor: Colors$
|
|
21478
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21494
|
+
borderColor: Colors$h.DdsColorInteractiveDark,
|
|
21495
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDark
|
|
21479
21496
|
};
|
|
21480
21497
|
var borderlessPrimaryIconActiveBase = {
|
|
21481
|
-
borderColor: Colors$
|
|
21482
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21498
|
+
borderColor: Colors$h.DdsColorInteractiveDarker,
|
|
21499
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDarker
|
|
21483
21500
|
};
|
|
21484
21501
|
var borderlessSecondaryBase = {
|
|
21485
|
-
color: Colors$
|
|
21502
|
+
color: Colors$h.DdsColorNeutralsGray7
|
|
21486
21503
|
};
|
|
21487
21504
|
var borderlessSecondaryHoverBase = {
|
|
21488
|
-
color: Colors$
|
|
21489
|
-
textDecorationColor: Colors$
|
|
21505
|
+
color: Colors$h.DdsColorNeutralsGray8,
|
|
21506
|
+
textDecorationColor: Colors$h.DdsColorNeutralsGray8
|
|
21490
21507
|
};
|
|
21491
21508
|
var borderlessSecondaryActiveBase = {
|
|
21492
|
-
color: Colors$
|
|
21493
|
-
textDecorationColor: Colors$
|
|
21509
|
+
color: Colors$h.DdsColorNeutralsGray9,
|
|
21510
|
+
textDecorationColor: Colors$h.DdsColorNeutralsGray9
|
|
21494
21511
|
};
|
|
21495
21512
|
var borderlessSecondaryIconHoverBase = {
|
|
21496
|
-
borderColor: Colors$
|
|
21497
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21513
|
+
borderColor: Colors$h.DdsColorNeutralsGray8,
|
|
21514
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray8
|
|
21498
21515
|
};
|
|
21499
21516
|
var borderlessSecondaryIconActiveBase = {
|
|
21500
|
-
borderColor: Colors$
|
|
21501
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21517
|
+
borderColor: Colors$h.DdsColorNeutralsGray9,
|
|
21518
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray9
|
|
21502
21519
|
};
|
|
21503
21520
|
var borderlessDangerBase = {
|
|
21504
|
-
color: Colors$
|
|
21521
|
+
color: Colors$h.DdsColorDangerBase
|
|
21505
21522
|
};
|
|
21506
21523
|
var borderlessDangerHoverBase = {
|
|
21507
|
-
color: Colors$
|
|
21508
|
-
textDecorationColor: Colors$
|
|
21524
|
+
color: Colors$h.DdsColorDangerDarker,
|
|
21525
|
+
textDecorationColor: Colors$h.DdsColorDangerDarker
|
|
21509
21526
|
};
|
|
21510
21527
|
var borderlessDangerActiveBase = {
|
|
21511
|
-
color: Colors$
|
|
21512
|
-
textDecorationColor: Colors$
|
|
21528
|
+
color: Colors$h.DdsColorDangerDarkest,
|
|
21529
|
+
textDecorationColor: Colors$h.DdsColorDangerDarkest
|
|
21513
21530
|
};
|
|
21514
21531
|
var borderlessDangerIconHoverBase = {
|
|
21515
|
-
borderColor: Colors$
|
|
21516
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21532
|
+
borderColor: Colors$h.DdsColorDangerDark,
|
|
21533
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDark
|
|
21517
21534
|
};
|
|
21518
21535
|
var borderlessDangerIconActiveBase = {
|
|
21519
|
-
borderColor: Colors$
|
|
21520
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21536
|
+
borderColor: Colors$h.DdsColorDangerDarker,
|
|
21537
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDarker
|
|
21521
21538
|
};
|
|
21522
21539
|
var ghostBase = {
|
|
21523
|
-
borderRadius: BorderRadius$
|
|
21540
|
+
borderRadius: BorderRadius$6.RadiiDdsBorderRadius1Radius,
|
|
21524
21541
|
boxShadow: 'none',
|
|
21525
21542
|
backgroundColor: 'transparent'
|
|
21526
21543
|
};
|
|
21527
21544
|
var ghostPrimaryBase = {
|
|
21528
|
-
color: Colors$
|
|
21529
|
-
borderColor: Colors$
|
|
21545
|
+
color: Colors$h.DdsColorInteractiveBase,
|
|
21546
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
21530
21547
|
};
|
|
21531
21548
|
var ghostPrimaryHoverBase = {
|
|
21532
|
-
color: Colors$
|
|
21533
|
-
borderColor: Colors$
|
|
21534
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21549
|
+
color: Colors$h.DdsColorInteractiveDark,
|
|
21550
|
+
borderColor: Colors$h.DdsColorInteractiveDark,
|
|
21551
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDark
|
|
21535
21552
|
};
|
|
21536
21553
|
var ghostPrimaryActiveBase = {
|
|
21537
|
-
color: Colors$
|
|
21538
|
-
borderColor: Colors$
|
|
21539
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21554
|
+
color: Colors$h.DdsColorInteractiveDarker,
|
|
21555
|
+
borderColor: Colors$h.DdsColorInteractiveDarker,
|
|
21556
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorInteractiveDarker
|
|
21540
21557
|
};
|
|
21541
21558
|
var ghostSecondaryBase = {
|
|
21542
|
-
color: Colors$
|
|
21543
|
-
borderColor: Colors$
|
|
21559
|
+
color: Colors$h.DdsColorNeutralsGray7,
|
|
21560
|
+
borderColor: Colors$h.DdsColorNeutralsGray7
|
|
21544
21561
|
};
|
|
21545
21562
|
var ghostSecondaryHoverBase = {
|
|
21546
|
-
color: Colors$
|
|
21547
|
-
borderColor: Colors$
|
|
21548
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21563
|
+
color: Colors$h.DdsColorNeutralsGray8,
|
|
21564
|
+
borderColor: Colors$h.DdsColorNeutralsGray8,
|
|
21565
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray8
|
|
21549
21566
|
};
|
|
21550
21567
|
var ghostSecondaryActiveBase = {
|
|
21551
|
-
color: Colors$
|
|
21552
|
-
borderColor: Colors$
|
|
21553
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21568
|
+
color: Colors$h.DdsColorNeutralsGray9,
|
|
21569
|
+
borderColor: Colors$h.DdsColorNeutralsGray9,
|
|
21570
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorNeutralsGray9
|
|
21554
21571
|
};
|
|
21555
21572
|
var ghostDangerBase = {
|
|
21556
|
-
color: Colors$
|
|
21557
|
-
borderColor: Colors$
|
|
21573
|
+
color: Colors$h.DdsColorDangerBase,
|
|
21574
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
21558
21575
|
};
|
|
21559
21576
|
var ghostDangerHoverBase = {
|
|
21560
|
-
color: Colors$
|
|
21561
|
-
borderColor: Colors$
|
|
21562
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21577
|
+
color: Colors$h.DdsColorDangerDark,
|
|
21578
|
+
borderColor: Colors$h.DdsColorDangerDark,
|
|
21579
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDark
|
|
21563
21580
|
};
|
|
21564
21581
|
var ghostDangerActiveBase = {
|
|
21565
|
-
color: Colors$
|
|
21566
|
-
borderColor: Colors$
|
|
21567
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
21582
|
+
color: Colors$h.DdsColorDangerDarkest,
|
|
21583
|
+
borderColor: Colors$h.DdsColorDangerDarkest,
|
|
21584
|
+
boxShadow: "0 0 0 1px " + Colors$h.DdsColorDangerDarkest
|
|
21568
21585
|
};
|
|
21569
21586
|
var roundedBase = {
|
|
21570
21587
|
borderRadius: '100px',
|
|
21571
|
-
boxShadow: OuterShadow$
|
|
21588
|
+
boxShadow: OuterShadow$4.DdsShadow1Onlight
|
|
21572
21589
|
};
|
|
21573
21590
|
var buttonTokens = {
|
|
21574
21591
|
base: buttonBase$1,
|
|
21575
21592
|
focusOutline: {
|
|
21576
|
-
color: Border$
|
|
21577
|
-
width: Border$
|
|
21593
|
+
color: Border$e.BordersDdsBorderFocusBaseStroke,
|
|
21594
|
+
width: Border$e.BordersDdsBorderStyleLightStrokeWeight
|
|
21578
21595
|
},
|
|
21579
21596
|
sizes: {
|
|
21580
21597
|
small: {
|
|
@@ -21587,7 +21604,7 @@ var buttonTokens = {
|
|
|
21587
21604
|
text: {
|
|
21588
21605
|
base: textSmallBase
|
|
21589
21606
|
},
|
|
21590
|
-
iconWithTextMargin: Spacing$
|
|
21607
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX05
|
|
21591
21608
|
},
|
|
21592
21609
|
medium: {
|
|
21593
21610
|
justIcon: {
|
|
@@ -21599,7 +21616,7 @@ var buttonTokens = {
|
|
|
21599
21616
|
text: {
|
|
21600
21617
|
base: textMediumBase
|
|
21601
21618
|
},
|
|
21602
|
-
iconWithTextMargin: Spacing$
|
|
21619
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX075
|
|
21603
21620
|
},
|
|
21604
21621
|
large: {
|
|
21605
21622
|
justIcon: {
|
|
@@ -21611,7 +21628,19 @@ var buttonTokens = {
|
|
|
21611
21628
|
text: {
|
|
21612
21629
|
base: textLargeBase
|
|
21613
21630
|
},
|
|
21614
|
-
iconWithTextMargin: Spacing$
|
|
21631
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX1
|
|
21632
|
+
},
|
|
21633
|
+
tiny: {
|
|
21634
|
+
justIcon: {
|
|
21635
|
+
base: justIconTinyBase
|
|
21636
|
+
},
|
|
21637
|
+
justIconWrapper: {
|
|
21638
|
+
base: justIconWrapperTinyBase
|
|
21639
|
+
},
|
|
21640
|
+
text: {
|
|
21641
|
+
base: textTinyBase
|
|
21642
|
+
},
|
|
21643
|
+
iconWithTextMargin: Spacing$p.SizesDdsSpacingLocalX05
|
|
21615
21644
|
}
|
|
21616
21645
|
},
|
|
21617
21646
|
appearance: {
|
|
@@ -21762,9 +21791,9 @@ var buttonTokens = {
|
|
|
21762
21791
|
}
|
|
21763
21792
|
};
|
|
21764
21793
|
|
|
21765
|
-
var Colors$
|
|
21794
|
+
var Colors$g = ddsBaseTokens.colors;
|
|
21766
21795
|
var ciclreBase = {
|
|
21767
|
-
stroke: Colors$
|
|
21796
|
+
stroke: Colors$g.DdsColorInteractiveBase
|
|
21768
21797
|
};
|
|
21769
21798
|
var spinnerTokens = {
|
|
21770
21799
|
circle: {
|
|
@@ -21775,7 +21804,7 @@ var spinnerTokens = {
|
|
|
21775
21804
|
var StyledSpinner = styled.svg.withConfig({
|
|
21776
21805
|
displayName: "Spinner__StyledSpinner",
|
|
21777
21806
|
componentId: "sc-13hsttm-0"
|
|
21778
|
-
})(templateObject_1$
|
|
21807
|
+
})(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) {
|
|
21779
21808
|
var outerAnimationDelay = _a.outerAnimationDelay;
|
|
21780
21809
|
return outerAnimationDelay;
|
|
21781
21810
|
}, function (_a) {
|
|
@@ -21788,14 +21817,14 @@ var StyledSpinner = styled.svg.withConfig({
|
|
|
21788
21817
|
var Circle = styled.circle.withConfig({
|
|
21789
21818
|
displayName: "Spinner__Circle",
|
|
21790
21819
|
componentId: "sc-13hsttm-1"
|
|
21791
|
-
})(templateObject_2$
|
|
21820
|
+
})(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) {
|
|
21792
21821
|
var color = _a.color;
|
|
21793
21822
|
return color && getTextColor(color);
|
|
21794
21823
|
}, function (_a) {
|
|
21795
21824
|
var innerAnimationDelay = _a.innerAnimationDelay;
|
|
21796
21825
|
return innerAnimationDelay;
|
|
21797
21826
|
});
|
|
21798
|
-
var nextUniqueId$
|
|
21827
|
+
var nextUniqueId$9 = 0;
|
|
21799
21828
|
function Spinner(_a) {
|
|
21800
21829
|
var _b = _a.size,
|
|
21801
21830
|
size = _b === void 0 ? ddsBaseTokens.iconSizes.DdsIconsizeMedium : _b,
|
|
@@ -21806,7 +21835,7 @@ function Spinner(_a) {
|
|
|
21806
21835
|
var mountTime = React__default.useRef(Date.now());
|
|
21807
21836
|
var outerAnimationDelay = -(mountTime.current % 2000);
|
|
21808
21837
|
var innerAnimationDelay = -(mountTime.current % 1500);
|
|
21809
|
-
var uniqueId = useState("spinnerTitle-" + nextUniqueId$
|
|
21838
|
+
var uniqueId = useState("spinnerTitle-" + nextUniqueId$9++)[0];
|
|
21810
21839
|
|
|
21811
21840
|
var spinnerProps = __assign({
|
|
21812
21841
|
outerAnimationDelay: outerAnimationDelay,
|
|
@@ -21835,55 +21864,49 @@ function Spinner(_a) {
|
|
|
21835
21864
|
}), void 0)]
|
|
21836
21865
|
}), void 0);
|
|
21837
21866
|
}
|
|
21838
|
-
var templateObject_1$
|
|
21867
|
+
var templateObject_1$J, templateObject_2$v;
|
|
21839
21868
|
|
|
21840
21869
|
var ButtonWrapper$1 = styled.button.withConfig({
|
|
21841
21870
|
displayName: "Buttonstyles__ButtonWrapper",
|
|
21842
21871
|
componentId: "sc-14dutqk-0"
|
|
21843
|
-
})(
|
|
21872
|
+
})(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) {
|
|
21844
21873
|
var fullWidth = _a.fullWidth;
|
|
21845
21874
|
return fullWidth ? '100%' : 'fit-content';
|
|
21846
21875
|
}, function (_a) {
|
|
21847
21876
|
var appearance = _a.appearance,
|
|
21848
21877
|
purpose = _a.purpose;
|
|
21849
|
-
return Ae(templateObject_1$
|
|
21878
|
+
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);
|
|
21850
21879
|
}, function (_a) {
|
|
21851
21880
|
var hasIcon = _a.hasIcon,
|
|
21852
21881
|
hasLabel = _a.hasLabel,
|
|
21853
21882
|
appearance = _a.appearance,
|
|
21854
21883
|
purpose = _a.purpose;
|
|
21855
|
-
return hasIcon && !hasLabel && appearance === 'borderless' && Ae(templateObject_2$
|
|
21884
|
+
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);
|
|
21856
21885
|
}, function (_a) {
|
|
21857
21886
|
var size = _a.size,
|
|
21858
21887
|
hasLabel = _a.hasLabel;
|
|
21859
|
-
return hasLabel ? Ae(templateObject_3$
|
|
21888
|
+
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);
|
|
21860
21889
|
}, function (_a) {
|
|
21861
21890
|
var fullWidth = _a.fullWidth,
|
|
21862
21891
|
hasIcon = _a.hasIcon,
|
|
21863
21892
|
hasLabel = _a.hasLabel,
|
|
21864
|
-
isLoading = _a.isLoading
|
|
21865
|
-
|
|
21893
|
+
isLoading = _a.isLoading,
|
|
21894
|
+
iconPosition = _a.iconPosition;
|
|
21895
|
+
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 "]))));
|
|
21866
21896
|
}, buttonTokens.focusOutline.width, buttonTokens.focusOutline.color, typographyTokens.selection.base);
|
|
21867
|
-
var
|
|
21868
|
-
displayName: "
|
|
21897
|
+
var StyledIconWrapperSpan = styled.span.withConfig({
|
|
21898
|
+
displayName: "Buttonstyles__StyledIconWrapperSpan",
|
|
21869
21899
|
componentId: "sc-14dutqk-1"
|
|
21870
|
-
})(
|
|
21900
|
+
})(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) {
|
|
21871
21901
|
var size = _a.size,
|
|
21872
21902
|
iconPosition = _a.iconPosition;
|
|
21873
|
-
return iconPosition === 'left' ? Ae(
|
|
21874
|
-
});
|
|
21875
|
-
var JustIconWrapper = styled.span.withConfig({
|
|
21876
|
-
displayName: "Buttonstyles__JustIconWrapper",
|
|
21877
|
-
componentId: "sc-14dutqk-2"
|
|
21878
|
-
})(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) {
|
|
21879
|
-
var size = _a.size;
|
|
21880
|
-
return Ae(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
21903
|
+
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);
|
|
21881
21904
|
});
|
|
21882
21905
|
var Label$2 = styled.span.withConfig({
|
|
21883
21906
|
displayName: "Buttonstyles__Label",
|
|
21884
|
-
componentId: "sc-14dutqk-
|
|
21885
|
-
})(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
21886
|
-
var templateObject_1$
|
|
21907
|
+
componentId: "sc-14dutqk-2"
|
|
21908
|
+
})(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject([""], [""])));
|
|
21909
|
+
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;
|
|
21887
21910
|
|
|
21888
21911
|
var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21889
21912
|
var label = _a.label,
|
|
@@ -21929,31 +21952,28 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21929
21952
|
style: style
|
|
21930
21953
|
}, rest);
|
|
21931
21954
|
|
|
21932
|
-
var iconElement = Icon && iconPosition && size && jsxRuntime.jsx(IconWithTextWrapper, {
|
|
21933
|
-
Icon: Icon,
|
|
21934
|
-
iconPosition: iconPosition,
|
|
21935
|
-
iconSize: "inline",
|
|
21936
|
-
size: size
|
|
21937
|
-
}, void 0);
|
|
21938
|
-
|
|
21939
21955
|
var hasLabel = !!label;
|
|
21940
21956
|
var isIconButton = !hasLabel && !!Icon;
|
|
21957
|
+
|
|
21958
|
+
var iconElement = Icon && jsxRuntime.jsx(StyledIconWrapperSpan, __assign({
|
|
21959
|
+
iconPosition: isIconButton ? undefined : iconPosition,
|
|
21960
|
+
size: size
|
|
21961
|
+
}, {
|
|
21962
|
+
children: jsxRuntime.jsx(IconWrapper$1, {
|
|
21963
|
+
Icon: Icon,
|
|
21964
|
+
iconSize: "inline"
|
|
21965
|
+
}, void 0)
|
|
21966
|
+
}), void 0);
|
|
21967
|
+
|
|
21941
21968
|
return jsxRuntime.jsxs(ButtonWrapper$1, __assign({}, wrapperProps, {
|
|
21942
|
-
children: [loading && jsxRuntime.jsx(
|
|
21969
|
+
children: [loading && jsxRuntime.jsx(StyledIconWrapperSpan, __assign({
|
|
21943
21970
|
size: size
|
|
21944
21971
|
}, {
|
|
21945
21972
|
children: jsxRuntime.jsx(Spinner, {
|
|
21946
21973
|
color: buttonTokens.appearance[appearance][purpose].base.color,
|
|
21947
21974
|
size: buttonTokens.sizes[size].justIcon.base.fontSize
|
|
21948
21975
|
}, void 0)
|
|
21949
|
-
}), void 0), isIconButton && !loading && jsxRuntime.
|
|
21950
|
-
size: size
|
|
21951
|
-
}, {
|
|
21952
|
-
children: jsxRuntime.jsx(IconWrapper$1, {
|
|
21953
|
-
Icon: Icon,
|
|
21954
|
-
iconSize: "inline"
|
|
21955
|
-
}, void 0)
|
|
21956
|
-
}), void 0), hasLabel && !loading && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21976
|
+
}), void 0), isIconButton && !loading && iconElement, hasLabel && !loading && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21957
21977
|
children: [iconPosition === 'left' && iconElement, jsxRuntime.jsx(Label$2, {
|
|
21958
21978
|
children: label
|
|
21959
21979
|
}, void 0), iconPosition === 'right' && iconElement]
|
|
@@ -21961,21 +21981,21 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21961
21981
|
}), void 0);
|
|
21962
21982
|
});
|
|
21963
21983
|
|
|
21964
|
-
var Colors$
|
|
21965
|
-
Spacing$
|
|
21984
|
+
var Colors$f = ddsBaseTokens.colors,
|
|
21985
|
+
Spacing$o = ddsBaseTokens.spacing;
|
|
21966
21986
|
var TextInput$3 = ddsReferenceTokens.textInput;
|
|
21967
21987
|
var inputMultilineBase = {
|
|
21968
|
-
paddingBottom: Spacing$
|
|
21988
|
+
paddingBottom: Spacing$o.SizesDdsSpacingLocalX05
|
|
21969
21989
|
};
|
|
21970
21990
|
var inputMultilineWithLabelBase = {
|
|
21971
|
-
paddingTop: Spacing$
|
|
21991
|
+
paddingTop: Spacing$o.SizesDdsSpacingLocalX2
|
|
21972
21992
|
};
|
|
21973
21993
|
var inputMultilineNoLabelBase = {
|
|
21974
|
-
paddingTop: Spacing$
|
|
21994
|
+
paddingTop: Spacing$o.SizesDdsSpacingLocalX075
|
|
21975
21995
|
};
|
|
21976
21996
|
var inputLabelMultilineBase = {
|
|
21977
|
-
backgroundColor: Colors$
|
|
21978
|
-
padding: Spacing$
|
|
21997
|
+
backgroundColor: Colors$f.DdsColorNeutralsWhite,
|
|
21998
|
+
padding: Spacing$o.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$o.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$o.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
21979
21999
|
};
|
|
21980
22000
|
var defaultWidth$2 = '320px';
|
|
21981
22001
|
var textInputTokens = {
|
|
@@ -22010,9 +22030,9 @@ var textInputTokens = {
|
|
|
22010
22030
|
}
|
|
22011
22031
|
};
|
|
22012
22032
|
|
|
22013
|
-
var Spacing$
|
|
22033
|
+
var Spacing$n = ddsBaseTokens.spacing;
|
|
22014
22034
|
var charCounterBase = {
|
|
22015
|
-
padding: Spacing$
|
|
22035
|
+
padding: Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX05
|
|
22016
22036
|
};
|
|
22017
22037
|
var charCounterTokens = {
|
|
22018
22038
|
base: charCounterBase
|
|
@@ -22021,8 +22041,8 @@ var charCounterTokens = {
|
|
|
22021
22041
|
var Wrapper$6 = styled(Typography).withConfig({
|
|
22022
22042
|
displayName: "CharCounter__Wrapper",
|
|
22023
22043
|
componentId: "sc-qty1z2-0"
|
|
22024
|
-
})(templateObject_1$
|
|
22025
|
-
var nextUniqueId$
|
|
22044
|
+
})(templateObject_1$H || (templateObject_1$H = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
22045
|
+
var nextUniqueId$8 = 0;
|
|
22026
22046
|
|
|
22027
22047
|
function CharCounter(_a) {
|
|
22028
22048
|
var current = _a.current,
|
|
@@ -22030,7 +22050,7 @@ function CharCounter(_a) {
|
|
|
22030
22050
|
id = _a.id,
|
|
22031
22051
|
rest = __rest(_a, ["current", "max", "id"]);
|
|
22032
22052
|
|
|
22033
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "characterCounter-" + nextUniqueId$
|
|
22053
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "characterCounter-" + nextUniqueId$8++)[0];
|
|
22034
22054
|
return jsxRuntime.jsxs(Wrapper$6, __assign({
|
|
22035
22055
|
forwardedAs: "div",
|
|
22036
22056
|
typographyType: "supportingStyleHelperText01",
|
|
@@ -22040,47 +22060,47 @@ function CharCounter(_a) {
|
|
|
22040
22060
|
children: [current, "/", max]
|
|
22041
22061
|
}), void 0);
|
|
22042
22062
|
}
|
|
22043
|
-
var templateObject_1$
|
|
22063
|
+
var templateObject_1$H;
|
|
22044
22064
|
|
|
22045
|
-
var Colors$
|
|
22046
|
-
Spacing$
|
|
22065
|
+
var Colors$e = ddsBaseTokens.colors,
|
|
22066
|
+
Spacing$m = ddsBaseTokens.spacing,
|
|
22047
22067
|
FontPackages$f = ddsBaseTokens.fontPackages,
|
|
22048
|
-
Border$
|
|
22068
|
+
Border$d = ddsBaseTokens.border;
|
|
22049
22069
|
var TextInput$2 = ddsReferenceTokens.textInput;
|
|
22050
22070
|
var inputBase$2 = {
|
|
22051
|
-
border: " " + Border$
|
|
22052
|
-
backgroundColor: Colors$
|
|
22071
|
+
border: " " + Border$d.BordersDdsBorderStyleLightStrokeWeight + " solid " + Colors$e.DdsColorNeutralsGray5,
|
|
22072
|
+
backgroundColor: Colors$e.DdsColorNeutralsWhite
|
|
22053
22073
|
};
|
|
22054
22074
|
var inputWithLabelBase = {
|
|
22055
|
-
padding: Spacing$
|
|
22075
|
+
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
|
|
22056
22076
|
};
|
|
22057
22077
|
var inputNoLabelBase$1 = {
|
|
22058
|
-
padding: Spacing$
|
|
22078
|
+
padding: Spacing$m.SizesDdsSpacingLocalX075 + " " + Spacing$m.SizesDdsSpacingLocalX1 + " " + Spacing$m.SizesDdsSpacingLocalX075 + " " + Spacing$m.SizesDdsSpacingLocalX1
|
|
22059
22079
|
};
|
|
22060
22080
|
var inputDisabledBase = {
|
|
22061
|
-
color: Colors$
|
|
22062
|
-
backgroundColor: Colors$
|
|
22081
|
+
color: Colors$e.DdsColorNeutralsGray7,
|
|
22082
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray1
|
|
22063
22083
|
};
|
|
22064
22084
|
var inputErrorBase = {
|
|
22065
|
-
borderColor: Colors$
|
|
22066
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
22085
|
+
borderColor: Colors$e.DdsColorDangerBase,
|
|
22086
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerBase
|
|
22067
22087
|
};
|
|
22068
22088
|
var inputErrorHoverBase = {
|
|
22069
|
-
backgroundColor: Colors$
|
|
22070
|
-
borderColor: Colors$
|
|
22071
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
22089
|
+
backgroundColor: Colors$e.DdsColorDangerLightest,
|
|
22090
|
+
borderColor: Colors$e.DdsColorDangerBase,
|
|
22091
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerBase
|
|
22072
22092
|
};
|
|
22073
22093
|
var inputErrorFocusBase = {
|
|
22074
|
-
borderColor: Colors$
|
|
22075
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
22094
|
+
borderColor: Colors$e.DdsColorDangerDarker,
|
|
22095
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarker
|
|
22076
22096
|
};
|
|
22077
22097
|
var inputReadOnlyBase = {
|
|
22078
22098
|
border: 'none',
|
|
22079
22099
|
backgroundColor: 'transparent',
|
|
22080
|
-
paddingLeft: Spacing$
|
|
22100
|
+
paddingLeft: Spacing$m.SizesDdsSpacingLocalX1
|
|
22081
22101
|
};
|
|
22082
22102
|
var inputLabelBase = {
|
|
22083
|
-
padding: Spacing$
|
|
22103
|
+
padding: Spacing$m.SizesDdsSpacingLocalX075 + " " + Spacing$m.SizesDdsSpacingLocalX1
|
|
22084
22104
|
};
|
|
22085
22105
|
var inputLabelHoverBase = {
|
|
22086
22106
|
color: TextInput$2.label.hover.textColor
|
|
@@ -22089,7 +22109,7 @@ var inputLabelFocusBase = {
|
|
|
22089
22109
|
color: TextInput$2.label.focus.textColor
|
|
22090
22110
|
};
|
|
22091
22111
|
var inputLabelDisabledBase = {
|
|
22092
|
-
color: Colors$
|
|
22112
|
+
color: Colors$e.DdsColorNeutralsGray6
|
|
22093
22113
|
};
|
|
22094
22114
|
var inputTokens = {
|
|
22095
22115
|
general: TextInput$2,
|
|
@@ -22131,38 +22151,38 @@ var inputTokens = {
|
|
|
22131
22151
|
};
|
|
22132
22152
|
|
|
22133
22153
|
var TextInput$1 = ddsReferenceTokens.textInput;
|
|
22134
|
-
var Border$
|
|
22154
|
+
var Border$c = ddsBaseTokens.border;
|
|
22135
22155
|
|
|
22136
22156
|
var stylingBase = __assign({
|
|
22137
22157
|
color: TextInput$1.input.textColor,
|
|
22138
22158
|
borderRadius: TextInput$1.input.borderRadius,
|
|
22139
|
-
border: Border$
|
|
22159
|
+
border: Border$c.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
22140
22160
|
borderColor: TextInput$1.input.borderColor
|
|
22141
22161
|
}, TextInput$1.input.font);
|
|
22142
22162
|
|
|
22143
|
-
var focusBase$
|
|
22144
|
-
border: Border$
|
|
22145
|
-
borderColor: Border$
|
|
22146
|
-
boxShadow: " 0 0 0 1px " + Border$
|
|
22163
|
+
var focusBase$2 = {
|
|
22164
|
+
border: Border$c.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
22165
|
+
borderColor: Border$c.BordersDdsBorderFocusInputfieldStroke,
|
|
22166
|
+
boxShadow: " 0 0 0 1px " + Border$c.BordersDdsBorderFocusInputfieldStroke,
|
|
22147
22167
|
outline: 'none'
|
|
22148
22168
|
};
|
|
22149
22169
|
var hoverBase$1 = {
|
|
22150
|
-
border: Border$
|
|
22151
|
-
borderColor: Border$
|
|
22170
|
+
border: Border$c.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
22171
|
+
borderColor: Border$c.BordersDdsBorderFocusInputfieldStroke,
|
|
22152
22172
|
boxShadow: " 0 0 0 1px " + TextInput$1.input.focus.borderColor,
|
|
22153
22173
|
backgroundColor: TextInput$1.input.hover.backgroundColor
|
|
22154
22174
|
};
|
|
22155
22175
|
var inputFieldStylingBase = function inputFieldStylingBase() {
|
|
22156
|
-
return Ae(templateObject_1$
|
|
22176
|
+
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);
|
|
22157
22177
|
};
|
|
22158
|
-
var templateObject_1$
|
|
22178
|
+
var templateObject_1$G;
|
|
22159
22179
|
|
|
22160
22180
|
var inputStyling = function inputStyling(_a) {
|
|
22161
22181
|
var readOnly = _a.readOnly,
|
|
22162
22182
|
label = _a.label,
|
|
22163
22183
|
disabled = _a.disabled,
|
|
22164
22184
|
hasErrorMessage = _a.hasErrorMessage;
|
|
22165
|
-
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$
|
|
22185
|
+
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));
|
|
22166
22186
|
};
|
|
22167
22187
|
var Input$3 = styled.input.withConfig({
|
|
22168
22188
|
displayName: "Inputstyles__Input",
|
|
@@ -22197,15 +22217,15 @@ var OuterInputContainer = styled.div.withConfig({
|
|
|
22197
22217
|
var width = _a.width;
|
|
22198
22218
|
return width;
|
|
22199
22219
|
});
|
|
22200
|
-
var templateObject_1$
|
|
22220
|
+
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;
|
|
22201
22221
|
|
|
22202
|
-
var scrollbarStyling = Ae(templateObject_1$
|
|
22203
|
-
var templateObject_1$
|
|
22222
|
+
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)');
|
|
22223
|
+
var templateObject_1$E;
|
|
22204
22224
|
|
|
22205
22225
|
var TextArea = styled.textarea.withConfig({
|
|
22206
22226
|
displayName: "TextInputstyles__TextArea",
|
|
22207
22227
|
componentId: "sc-165zflr-0"
|
|
22208
|
-
})(templateObject_3$
|
|
22228
|
+
})(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) {
|
|
22209
22229
|
var label = _a.label,
|
|
22210
22230
|
disabled = _a.disabled,
|
|
22211
22231
|
readOnly = _a.readOnly,
|
|
@@ -22221,7 +22241,7 @@ var TextArea = styled.textarea.withConfig({
|
|
|
22221
22241
|
return label ? textInputTokens.container.multiline.withLabel.height : textInputTokens.container.multiline.noLabel.height;
|
|
22222
22242
|
}, textInputTokens.multiline.base, function (_a) {
|
|
22223
22243
|
var label = _a.label;
|
|
22224
|
-
return label ? Ae(templateObject_1$
|
|
22244
|
+
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);
|
|
22225
22245
|
}, function (_a) {
|
|
22226
22246
|
var hasErrorMessage = _a.hasErrorMessage;
|
|
22227
22247
|
return hasErrorMessage ? inputTokens.error.hover.base.backgroundColor : inputTokens.general.input.hover.backgroundColor;
|
|
@@ -22229,13 +22249,13 @@ var TextArea = styled.textarea.withConfig({
|
|
|
22229
22249
|
var MessageContainer = styled.div.withConfig({
|
|
22230
22250
|
displayName: "TextInputstyles__MessageContainer",
|
|
22231
22251
|
componentId: "sc-165zflr-1"
|
|
22232
|
-
})(templateObject_4$
|
|
22252
|
+
})(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"])));
|
|
22233
22253
|
var Label$1 = styled(SingleLineLabel).withConfig({
|
|
22234
22254
|
displayName: "TextInputstyles__Label",
|
|
22235
22255
|
componentId: "sc-165zflr-2"
|
|
22236
22256
|
})(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), function (_a) {
|
|
22237
22257
|
var multiline = _a.multiline;
|
|
22238
|
-
return multiline && Ae(templateObject_5$
|
|
22258
|
+
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);
|
|
22239
22259
|
}, function (_a) {
|
|
22240
22260
|
var disabled = _a.disabled,
|
|
22241
22261
|
multiline = _a.multiline;
|
|
@@ -22263,9 +22283,9 @@ var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
|
22263
22283
|
return textInputTokens.container.multiline.noLabel.height;
|
|
22264
22284
|
}
|
|
22265
22285
|
});
|
|
22266
|
-
var templateObject_1$
|
|
22286
|
+
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;
|
|
22267
22287
|
|
|
22268
|
-
var nextUniqueId$
|
|
22288
|
+
var nextUniqueId$7 = 0;
|
|
22269
22289
|
var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
22270
22290
|
var label = _a.label,
|
|
22271
22291
|
disabled = _a.disabled,
|
|
@@ -22329,7 +22349,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
22329
22349
|
}
|
|
22330
22350
|
};
|
|
22331
22351
|
|
|
22332
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$
|
|
22352
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$7++)[0];
|
|
22333
22353
|
var hasErrorMessage = !!errorMessage;
|
|
22334
22354
|
var hasTip = !!tip;
|
|
22335
22355
|
var characterCounterId = derivativeIdGenerator(uniqueId, 'characterCounter', maxLength);
|
|
@@ -29054,38 +29074,38 @@ var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
29054
29074
|
|
|
29055
29075
|
var ReactSelect = StateManagedSelect;
|
|
29056
29076
|
|
|
29057
|
-
var Colors$
|
|
29058
|
-
Spacing$
|
|
29077
|
+
var Colors$d = ddsBaseTokens.colors,
|
|
29078
|
+
Spacing$l = ddsBaseTokens.spacing,
|
|
29059
29079
|
FontPackages$e = ddsBaseTokens.fontPackages,
|
|
29060
|
-
BorderRadius$
|
|
29061
|
-
Border$
|
|
29062
|
-
IconSizes = ddsBaseTokens.iconSizes;
|
|
29080
|
+
BorderRadius$5 = ddsBaseTokens.borderRadius,
|
|
29081
|
+
Border$b = ddsBaseTokens.border,
|
|
29082
|
+
IconSizes$2 = ddsBaseTokens.iconSizes;
|
|
29063
29083
|
var textDefault$6 = ddsReferenceTokens.textDefault;
|
|
29064
|
-
var multiValueContainerMinHeight = Spacing$
|
|
29084
|
+
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
|
|
29065
29085
|
|
|
29066
|
-
var valueContainerMarginBottomMultiWithLabel = Spacing$
|
|
29086
|
+
var valueContainerMarginBottomMultiWithLabel = Spacing$l.SizesDdsSpacingLocalX025NumberPx + Spacing$l.SizesDdsSpacingLocalX0125NumberPx + "px"; //custom spacing so that multiselect has same height as single value select
|
|
29067
29087
|
|
|
29068
|
-
var inputMultiNoLabelPaddingTop = Spacing$
|
|
29088
|
+
var inputMultiNoLabelPaddingTop = Spacing$l.SizesDdsSpacingLocalX05NumberPx + Spacing$l.SizesDdsSpacingLocalX0125NumberPx + "px";
|
|
29069
29089
|
|
|
29070
29090
|
var labelBase = __assign({
|
|
29071
|
-
color: Colors$
|
|
29072
|
-
paddingTop: Spacing$
|
|
29073
|
-
paddingLeft: Spacing$
|
|
29091
|
+
color: Colors$d.DdsColorNeutralsGray7,
|
|
29092
|
+
paddingTop: Spacing$l.SizesDdsSpacingLocalX075,
|
|
29093
|
+
paddingLeft: Spacing$l.SizesDdsSpacingLocalX1,
|
|
29074
29094
|
paddingBottom: 0,
|
|
29075
|
-
paddingRight: Spacing$
|
|
29095
|
+
paddingRight: Spacing$l.SizesDdsSpacingLocalX05
|
|
29076
29096
|
}, FontPackages$e.supportingStyle_label_01.base);
|
|
29077
29097
|
|
|
29078
29098
|
var labelHoverBase = {
|
|
29079
|
-
color: Colors$
|
|
29099
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29080
29100
|
};
|
|
29081
29101
|
var labelFocusBase = {
|
|
29082
|
-
color: Colors$
|
|
29102
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29083
29103
|
};
|
|
29084
29104
|
var valueContainerWithLabelBase = {
|
|
29085
|
-
marginBottom: Spacing$
|
|
29105
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX075
|
|
29086
29106
|
};
|
|
29087
29107
|
var valueContainerNoLabelBase = {
|
|
29088
|
-
marginBottom: Spacing$
|
|
29108
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX075
|
|
29089
29109
|
};
|
|
29090
29110
|
var valueContainerIsMultiBase = {
|
|
29091
29111
|
minHeight: multiValueContainerMinHeight
|
|
@@ -29094,144 +29114,144 @@ var valueContainerIsMultiWithLabelBase = {
|
|
|
29094
29114
|
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
29095
29115
|
};
|
|
29096
29116
|
var valueContainerIsMultiNoLabelBase = {
|
|
29097
|
-
marginBottom: Spacing$
|
|
29117
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX05
|
|
29098
29118
|
};
|
|
29099
29119
|
var containerBase$2 = {
|
|
29100
|
-
borderRadius: BorderRadius$
|
|
29101
|
-
border: Border$
|
|
29102
|
-
borderColor: Colors$
|
|
29103
|
-
backgroundColor: Colors$
|
|
29120
|
+
borderRadius: BorderRadius$5.RadiiDdsBorderRadius1Radius,
|
|
29121
|
+
border: Border$b.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
29122
|
+
borderColor: Colors$d.DdsColorNeutralsGray5,
|
|
29123
|
+
backgroundColor: Colors$d.DdsColorNeutralsWhite
|
|
29104
29124
|
};
|
|
29105
29125
|
var containerHoverBase = {
|
|
29106
|
-
backgroundColor: Colors$
|
|
29107
|
-
borderColor: Colors$
|
|
29126
|
+
backgroundColor: Colors$d.DdsColorInteractiveLightest,
|
|
29127
|
+
borderColor: Colors$d.DdsColorInteractiveBase
|
|
29108
29128
|
};
|
|
29109
29129
|
var containerFocusBase = {
|
|
29110
|
-
borderColor: Colors$
|
|
29130
|
+
borderColor: Colors$d.DdsColorInteractiveBase
|
|
29111
29131
|
};
|
|
29112
29132
|
var containerDangerBase$2 = {
|
|
29113
|
-
borderColor: Colors$
|
|
29133
|
+
borderColor: Colors$d.DdsColorDangerBase
|
|
29114
29134
|
};
|
|
29115
29135
|
var containerDangerHoverBase = {
|
|
29116
|
-
backgroundColor: Colors$
|
|
29117
|
-
borderColor: Colors$
|
|
29136
|
+
backgroundColor: Colors$d.DdsColorDangerLightest,
|
|
29137
|
+
borderColor: Colors$d.DdsColorDangerBase
|
|
29118
29138
|
};
|
|
29119
29139
|
var containerDangerFocusBase = {
|
|
29120
|
-
borderColor: Colors$
|
|
29140
|
+
borderColor: Colors$d.DdsColorDangerDark
|
|
29121
29141
|
};
|
|
29122
29142
|
|
|
29123
29143
|
var inputBase$1 = __assign({
|
|
29124
|
-
padding: "0 " + Spacing$
|
|
29144
|
+
padding: "0 " + Spacing$l.SizesDdsSpacingLocalX05 + " 0 " + Spacing$l.SizesDdsSpacingLocalX1
|
|
29125
29145
|
}, FontPackages$e.supportingStyle_inputtext_02.base);
|
|
29126
29146
|
|
|
29127
29147
|
var inputNoLabelBase = {
|
|
29128
|
-
paddingTop: Spacing$
|
|
29148
|
+
paddingTop: Spacing$l.SizesDdsSpacingLocalX075
|
|
29129
29149
|
};
|
|
29130
29150
|
var inputIsMultiNoLabelBase = {
|
|
29131
29151
|
paddingTop: inputMultiNoLabelPaddingTop
|
|
29132
29152
|
};
|
|
29133
29153
|
|
|
29134
29154
|
var placeholderBase = __assign({
|
|
29135
|
-
color: Colors$
|
|
29155
|
+
color: Colors$d.DdsColorNeutralsGray6
|
|
29136
29156
|
}, FontPackages$e.supportingStyle_placeholdertext_01.base);
|
|
29137
29157
|
|
|
29138
29158
|
var indicatorsContainerWithLabelBase = {
|
|
29139
|
-
marginBottom: Spacing$
|
|
29159
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX1
|
|
29140
29160
|
};
|
|
29141
29161
|
var indicatorsContainerNoLabelBase = {
|
|
29142
|
-
marginBottom: Spacing$
|
|
29162
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX075
|
|
29143
29163
|
};
|
|
29144
29164
|
var indicatorsContainerIsMultiWithLabelBase = {
|
|
29145
29165
|
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
29146
29166
|
};
|
|
29147
29167
|
var indicatorsContainerIsMultiNoLabelBase = {
|
|
29148
|
-
marginBottom: Spacing$
|
|
29168
|
+
marginBottom: Spacing$l.SizesDdsSpacingLocalX05
|
|
29149
29169
|
};
|
|
29150
29170
|
var dropdownIndicatorBase = {
|
|
29151
|
-
color: Colors$
|
|
29171
|
+
color: Colors$d.DdsColorNeutralsGray6,
|
|
29152
29172
|
padding: 0
|
|
29153
29173
|
};
|
|
29154
29174
|
var dropdownIndicatorHoverBase = {
|
|
29155
|
-
color: Colors$
|
|
29175
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29156
29176
|
};
|
|
29157
29177
|
var drodownIndicatorReadOnlyBase = {
|
|
29158
29178
|
color: 'transparent'
|
|
29159
29179
|
};
|
|
29160
29180
|
var clearIndicatorBase = {
|
|
29161
|
-
color: Colors$
|
|
29162
|
-
padding: " 0 " + Spacing$
|
|
29181
|
+
color: Colors$d.DdsColorNeutralsGray6,
|
|
29182
|
+
padding: " 0 " + Spacing$l.SizesDdsSpacingLocalX025 + " 0 0"
|
|
29163
29183
|
};
|
|
29164
29184
|
var loadingIndicatorBase = {
|
|
29165
|
-
color: Colors$
|
|
29185
|
+
color: Colors$d.DdsColorNeutralsGray6,
|
|
29166
29186
|
padding: 0
|
|
29167
29187
|
};
|
|
29168
29188
|
var clearIndicatorHoverBase = {
|
|
29169
|
-
color: Colors$
|
|
29189
|
+
color: Colors$d.DdsColorInteractiveBase
|
|
29170
29190
|
};
|
|
29171
29191
|
var optionsListBase = {
|
|
29172
29192
|
border: '1px solid',
|
|
29173
|
-
borderColor: Colors$
|
|
29174
|
-
backgroundColor: Colors$
|
|
29175
|
-
borderRadius: BorderRadius$
|
|
29193
|
+
borderColor: Colors$d.DdsColorInteractiveBase,
|
|
29194
|
+
backgroundColor: Colors$d.DdsColorNeutralsWhite,
|
|
29195
|
+
borderRadius: BorderRadius$5.RadiiDdsBorderRadius1Radius
|
|
29176
29196
|
};
|
|
29177
29197
|
|
|
29178
29198
|
var optionBase = __assign(__assign({
|
|
29179
|
-
padding: Spacing$
|
|
29199
|
+
padding: Spacing$l.SizesDdsSpacingLocalX05 + " " + Spacing$l.SizesDdsSpacingLocalX1
|
|
29180
29200
|
}, FontPackages$e.body_sans_02.base), {
|
|
29181
29201
|
color: textDefault$6.textColor
|
|
29182
29202
|
});
|
|
29183
29203
|
|
|
29184
29204
|
var optionHoverBase = {
|
|
29185
|
-
backgroundColor: Colors$
|
|
29205
|
+
backgroundColor: Colors$d.DdsColorInteractiveLighter
|
|
29186
29206
|
};
|
|
29187
29207
|
|
|
29188
29208
|
var optionSelectedBase = __assign(__assign({
|
|
29189
|
-
backgroundColor: Colors$
|
|
29209
|
+
backgroundColor: Colors$d.DdsColorInteractiveLightest
|
|
29190
29210
|
}, FontPackages$e.body_sans_02.base), {
|
|
29191
29211
|
fontWeight: 600
|
|
29192
29212
|
});
|
|
29193
29213
|
|
|
29194
29214
|
var noOptionsMessageBase = __assign({
|
|
29195
|
-
padding: Spacing$
|
|
29196
|
-
color: Colors$
|
|
29215
|
+
padding: Spacing$l.SizesDdsSpacingLocalX05 + " " + Spacing$l.SizesDdsSpacingLocalX1,
|
|
29216
|
+
color: Colors$d.DdsColorNeutralsGray6
|
|
29197
29217
|
}, FontPackages$e.supportingStyle_placeholdertext_01.base);
|
|
29198
29218
|
|
|
29199
29219
|
var multiValueBase = {
|
|
29200
|
-
borderRadius: BorderRadius$
|
|
29201
|
-
margin: Spacing$
|
|
29220
|
+
borderRadius: BorderRadius$5.RadiiDdsBorderRadius1Radius,
|
|
29221
|
+
margin: Spacing$l.SizesDdsSpacingLocalX0125
|
|
29202
29222
|
};
|
|
29203
29223
|
var multiValueEnabledBase = {
|
|
29204
|
-
backgroundColor: Colors$
|
|
29224
|
+
backgroundColor: Colors$d.DdsColorInteractiveLighter
|
|
29205
29225
|
};
|
|
29206
29226
|
var multiValueDisabledBase = {
|
|
29207
|
-
backgroundColor: Colors$
|
|
29227
|
+
backgroundColor: Colors$d.DdsColorNeutralsGray3
|
|
29208
29228
|
};
|
|
29209
29229
|
|
|
29210
29230
|
var multiValueLabelBase = __assign(__assign({
|
|
29211
|
-
paddingTop: "" + Spacing$
|
|
29212
|
-
paddingRight: "" + Spacing$
|
|
29213
|
-
paddingLeft: "" + Spacing$
|
|
29214
|
-
paddingBottom: "" + Spacing$
|
|
29215
|
-
color: Colors$
|
|
29231
|
+
paddingTop: "" + Spacing$l.SizesDdsSpacingLocalX025,
|
|
29232
|
+
paddingRight: "" + Spacing$l.SizesDdsSpacingLocalX05,
|
|
29233
|
+
paddingLeft: "" + Spacing$l.SizesDdsSpacingLocalX05,
|
|
29234
|
+
paddingBottom: "" + Spacing$l.SizesDdsSpacingLocalX025,
|
|
29235
|
+
color: Colors$d.DdsColorNeutralsGray9
|
|
29216
29236
|
}, FontPackages$e.supportingStyle_inputtext_01.base), {
|
|
29217
29237
|
fontWeight: 'bold'
|
|
29218
29238
|
});
|
|
29219
29239
|
|
|
29220
29240
|
var multiValueRemoveBase = {
|
|
29221
|
-
padding: "" + Spacing$
|
|
29222
|
-
color: Colors$
|
|
29241
|
+
padding: "" + Spacing$l.SizesDdsSpacingLocalX025,
|
|
29242
|
+
color: Colors$d.DdsColorNeutralsGray9
|
|
29223
29243
|
};
|
|
29224
29244
|
var multiValueRemoveHoverBase = {
|
|
29225
|
-
color: Colors$
|
|
29226
|
-
backgroundColor: Colors$
|
|
29245
|
+
color: Colors$d.DdsColorNeutralsWhite,
|
|
29246
|
+
backgroundColor: Colors$d.DdsColorInteractiveBase
|
|
29227
29247
|
};
|
|
29228
29248
|
var multiValueRemoveIconBase = {
|
|
29229
|
-
height: IconSizes.DdsIconsizeSmall,
|
|
29230
|
-
width: IconSizes.DdsIconsizeSmall
|
|
29249
|
+
height: IconSizes$2.DdsIconsizeSmall,
|
|
29250
|
+
width: IconSizes$2.DdsIconsizeSmall
|
|
29231
29251
|
};
|
|
29232
29252
|
var containerDisabledBase = {
|
|
29233
|
-
backgroundColor: Colors$
|
|
29234
|
-
borderColor: Colors$
|
|
29253
|
+
backgroundColor: Colors$d.DdsColorNeutralsGray1,
|
|
29254
|
+
borderColor: Colors$d.DdsColorNeutralsGray5
|
|
29235
29255
|
};
|
|
29236
29256
|
var containerReadOnlyBase = {
|
|
29237
29257
|
borderColor: 'transparent',
|
|
@@ -29289,7 +29309,7 @@ var selectTokens = {
|
|
|
29289
29309
|
},
|
|
29290
29310
|
optionsList: {
|
|
29291
29311
|
base: optionsListBase,
|
|
29292
|
-
spaceTop: Spacing$
|
|
29312
|
+
spaceTop: Spacing$l.SizesDdsSpacingLocalX1NumberPx + 2 //grunnet shadow-box
|
|
29293
29313
|
|
|
29294
29314
|
},
|
|
29295
29315
|
option: {
|
|
@@ -29300,7 +29320,7 @@ var selectTokens = {
|
|
|
29300
29320
|
selected: {
|
|
29301
29321
|
base: optionSelectedBase,
|
|
29302
29322
|
icon: {
|
|
29303
|
-
margin: "0 " + Spacing$
|
|
29323
|
+
margin: "0 " + Spacing$l.SizesDdsSpacingLocalX05 + " 0 0"
|
|
29304
29324
|
}
|
|
29305
29325
|
}
|
|
29306
29326
|
},
|
|
@@ -29385,17 +29405,17 @@ var prefix = 'dds-select';
|
|
|
29385
29405
|
var Label = styled(Typography).withConfig({
|
|
29386
29406
|
displayName: "Selectstyles__Label",
|
|
29387
29407
|
componentId: "sc-19jkd5s-0"
|
|
29388
|
-
})(templateObject_1$
|
|
29389
|
-
var Container$
|
|
29408
|
+
})(templateObject_1$C || (templateObject_1$C = __makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ", "\n"])), selectTokens.label.base);
|
|
29409
|
+
var Container$9 = styled.div.withConfig({
|
|
29390
29410
|
displayName: "Selectstyles__Container",
|
|
29391
29411
|
componentId: "sc-19jkd5s-1"
|
|
29392
29412
|
})(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) {
|
|
29393
29413
|
var isMulti = _a.isMulti;
|
|
29394
|
-
return isMulti && Ae(templateObject_2$
|
|
29414
|
+
return isMulti && Ae(templateObject_2$r || (templateObject_2$r = __makeTemplateObject([""], [""])));
|
|
29395
29415
|
}, function (_a) {
|
|
29396
29416
|
var hasLabel = _a.hasLabel,
|
|
29397
29417
|
isMulti = _a.isMulti;
|
|
29398
|
-
return isMulti && hasLabel ? Ae(templateObject_3$
|
|
29418
|
+
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);
|
|
29399
29419
|
}, 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) {
|
|
29400
29420
|
var errorMessage = _a.errorMessage;
|
|
29401
29421
|
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);
|
|
@@ -29416,7 +29436,7 @@ var Wrapper$5 = styled.div.withConfig({
|
|
|
29416
29436
|
var SelectedIconWrapper = styled(IconWrapper$1).withConfig({
|
|
29417
29437
|
displayName: "Selectstyles__SelectedIconWrapper",
|
|
29418
29438
|
componentId: "sc-19jkd5s-3"
|
|
29419
|
-
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), selectTokens.option.selected.icon.margin);
|
|
29439
|
+
})(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), selectTokens.option.selected.icon.margin);
|
|
29420
29440
|
var CustomStyles = {
|
|
29421
29441
|
control: function control() {
|
|
29422
29442
|
return __assign({
|
|
@@ -29507,7 +29527,7 @@ var CustomStyles = {
|
|
|
29507
29527
|
return __assign(__assign({}, provided), selectTokens.loadingIndicator.base);
|
|
29508
29528
|
}
|
|
29509
29529
|
};
|
|
29510
|
-
var templateObject_1$
|
|
29530
|
+
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;
|
|
29511
29531
|
|
|
29512
29532
|
var DdsOption = components.Option,
|
|
29513
29533
|
NoOptionsMessage = components.NoOptionsMessage,
|
|
@@ -29537,7 +29557,7 @@ function searchFilter(text, search) {
|
|
|
29537
29557
|
var searchFilterRegex = new RegExp("(?:^|[\\s-(])" + escapeRegexCharacters(search.toLowerCase()));
|
|
29538
29558
|
return searchFilterRegex.test(text.toLowerCase());
|
|
29539
29559
|
}
|
|
29540
|
-
var nextUniqueId$
|
|
29560
|
+
var nextUniqueId$6 = 0;
|
|
29541
29561
|
|
|
29542
29562
|
var SelectInner = function SelectInner(_a, ref) {
|
|
29543
29563
|
var id = _a.id,
|
|
@@ -29562,7 +29582,7 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
29562
29582
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
29563
29583
|
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "isMulti", "value", "defaultValue", "width", "closeMenuOnSelect", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
29564
29584
|
|
|
29565
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$
|
|
29585
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$6++)[0];
|
|
29566
29586
|
var hasLabel = !!label;
|
|
29567
29587
|
var hasErrorMessage = !!errorMessage;
|
|
29568
29588
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
@@ -29613,7 +29633,7 @@ var SelectInner = function SelectInner(_a, ref) {
|
|
|
29613
29633
|
}, rest);
|
|
29614
29634
|
|
|
29615
29635
|
return jsxRuntime.jsxs(Wrapper$5, __assign({}, wrapperProps, {
|
|
29616
|
-
children: [jsxRuntime.jsxs(Container$
|
|
29636
|
+
children: [jsxRuntime.jsxs(Container$9, __assign({}, containerProps, {
|
|
29617
29637
|
children: [label && jsxRuntime.jsxs(Label, __assign({
|
|
29618
29638
|
htmlFor: uniqueId,
|
|
29619
29639
|
forwardedAs: "label",
|
|
@@ -29715,37 +29735,37 @@ exports.default = _default;
|
|
|
29715
29735
|
|
|
29716
29736
|
var InfoOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(InfoOutlined);
|
|
29717
29737
|
|
|
29718
|
-
var Colors$
|
|
29719
|
-
Spacing$
|
|
29738
|
+
var Colors$c = ddsBaseTokens.colors,
|
|
29739
|
+
Spacing$k = ddsBaseTokens.spacing,
|
|
29720
29740
|
FontPackages$d = ddsBaseTokens.fontPackages;
|
|
29721
29741
|
|
|
29722
29742
|
var containerBase$1 = __assign(__assign({
|
|
29723
29743
|
borderBottom: '2px solid',
|
|
29724
|
-
padding: "0 " + Spacing$
|
|
29744
|
+
padding: "0 " + Spacing$k.SizesDdsSpacingLocalX1,
|
|
29725
29745
|
width: '100%'
|
|
29726
29746
|
}, FontPackages$d.body_sans_02.base), {
|
|
29727
|
-
color: Colors$
|
|
29747
|
+
color: Colors$c.DdsColorNeutralsGray8
|
|
29728
29748
|
});
|
|
29729
29749
|
|
|
29730
|
-
var contentContainerBase$
|
|
29731
|
-
paddingRight: Spacing$
|
|
29732
|
-
paddingTop: Spacing$
|
|
29733
|
-
paddingBottom: Spacing$
|
|
29750
|
+
var contentContainerBase$2 = {
|
|
29751
|
+
paddingRight: Spacing$k.SizesDdsSpacingLocalX15,
|
|
29752
|
+
paddingTop: Spacing$k.SizesDdsSpacingLocalX075,
|
|
29753
|
+
paddingBottom: Spacing$k.SizesDdsSpacingLocalX075
|
|
29734
29754
|
};
|
|
29735
29755
|
var contentContainerWithClosableBase$1 = {
|
|
29736
|
-
paddingRight: Spacing$
|
|
29756
|
+
paddingRight: Spacing$k.SizesDdsSpacingLocalX075
|
|
29737
29757
|
};
|
|
29738
29758
|
var containerInfoBase$1 = {
|
|
29739
|
-
borderColor: Colors$
|
|
29740
|
-
backgroundColor: Colors$
|
|
29759
|
+
borderColor: Colors$c.DdsColorInfoLighter,
|
|
29760
|
+
backgroundColor: Colors$c.DdsColorInfoLightest
|
|
29741
29761
|
};
|
|
29742
29762
|
var containerDangerBase$1 = {
|
|
29743
|
-
borderColor: Colors$
|
|
29744
|
-
backgroundColor: Colors$
|
|
29763
|
+
borderColor: Colors$c.DdsColorDangerLighter,
|
|
29764
|
+
backgroundColor: Colors$c.DdsColorDangerLightest
|
|
29745
29765
|
};
|
|
29746
29766
|
var containerWarningBase$1 = {
|
|
29747
|
-
borderColor: Colors$
|
|
29748
|
-
backgroundColor: Colors$
|
|
29767
|
+
borderColor: Colors$c.DdsColorWarningLighter,
|
|
29768
|
+
backgroundColor: Colors$c.DdsColorWarningLightest
|
|
29749
29769
|
};
|
|
29750
29770
|
var globalMessageTokens = {
|
|
29751
29771
|
container: {
|
|
@@ -29761,24 +29781,24 @@ var globalMessageTokens = {
|
|
|
29761
29781
|
}
|
|
29762
29782
|
},
|
|
29763
29783
|
contentContainer: {
|
|
29764
|
-
base: contentContainerBase$
|
|
29784
|
+
base: contentContainerBase$2,
|
|
29765
29785
|
withClosable: {
|
|
29766
29786
|
base: contentContainerWithClosableBase$1
|
|
29767
29787
|
}
|
|
29768
29788
|
},
|
|
29769
29789
|
icon: {
|
|
29770
|
-
marginRight: "" + Spacing$
|
|
29790
|
+
marginRight: "" + Spacing$k.SizesDdsSpacingLocalX075,
|
|
29771
29791
|
info: {
|
|
29772
29792
|
icon: InfoOutlinedIcon,
|
|
29773
|
-
color: Colors$
|
|
29793
|
+
color: Colors$c.DdsColorInfoDarkest
|
|
29774
29794
|
},
|
|
29775
29795
|
danger: {
|
|
29776
29796
|
icon: DangerOutlinedIcon,
|
|
29777
|
-
color: Colors$
|
|
29797
|
+
color: Colors$c.DdsColorDangerDarkest
|
|
29778
29798
|
},
|
|
29779
29799
|
warning: {
|
|
29780
29800
|
icon: WarningOutlinedIcon,
|
|
29781
|
-
color: Colors$
|
|
29801
|
+
color: Colors$c.DdsColorWarningDarkest
|
|
29782
29802
|
}
|
|
29783
29803
|
},
|
|
29784
29804
|
button: {
|
|
@@ -29794,27 +29814,27 @@ var globalMessageTokens = {
|
|
|
29794
29814
|
}
|
|
29795
29815
|
};
|
|
29796
29816
|
|
|
29797
|
-
var Container$
|
|
29817
|
+
var Container$8 = styled.div.withConfig({
|
|
29798
29818
|
displayName: "GlobalMessage__Container",
|
|
29799
29819
|
componentId: "sc-bf2l65-0"
|
|
29800
|
-
})(templateObject_2$
|
|
29820
|
+
})(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) {
|
|
29801
29821
|
var purpose = _a.purpose;
|
|
29802
|
-
return purpose && Ae(templateObject_1$
|
|
29822
|
+
return purpose && Ae(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
|
|
29803
29823
|
});
|
|
29804
29824
|
var MessageIconWrapper$1 = styled(IconWrapper$1).withConfig({
|
|
29805
29825
|
displayName: "GlobalMessage__MessageIconWrapper",
|
|
29806
29826
|
componentId: "sc-bf2l65-1"
|
|
29807
|
-
})(templateObject_3$
|
|
29827
|
+
})(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), globalMessageTokens.icon.marginRight);
|
|
29808
29828
|
var ControlsContainer = styled.div.withConfig({
|
|
29809
29829
|
displayName: "GlobalMessage__ControlsContainer",
|
|
29810
29830
|
componentId: "sc-bf2l65-2"
|
|
29811
|
-
})(templateObject_4$
|
|
29812
|
-
var ContentContainer$
|
|
29831
|
+
})(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
29832
|
+
var ContentContainer$3 = styled.div.withConfig({
|
|
29813
29833
|
displayName: "GlobalMessage__ContentContainer",
|
|
29814
29834
|
componentId: "sc-bf2l65-3"
|
|
29815
29835
|
})(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) {
|
|
29816
29836
|
var closable = _a.closable;
|
|
29817
|
-
return closable && Ae(templateObject_5$
|
|
29837
|
+
return closable && Ae(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), globalMessageTokens.contentContainer.withClosable.base);
|
|
29818
29838
|
});
|
|
29819
29839
|
var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29820
29840
|
var message = _a.message,
|
|
@@ -29836,8 +29856,8 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29836
29856
|
purpose: purpose
|
|
29837
29857
|
}, rest);
|
|
29838
29858
|
|
|
29839
|
-
return !isClosed ? jsxRuntime.jsxs(Container$
|
|
29840
|
-
children: [jsxRuntime.jsxs(ContentContainer$
|
|
29859
|
+
return !isClosed ? jsxRuntime.jsxs(Container$8, __assign({}, containerProps, {
|
|
29860
|
+
children: [jsxRuntime.jsxs(ContentContainer$3, __assign({
|
|
29841
29861
|
closable: closable
|
|
29842
29862
|
}, {
|
|
29843
29863
|
children: [jsxRuntime.jsx(MessageIconWrapper$1, {
|
|
@@ -29863,7 +29883,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29863
29883
|
}, void 0)]
|
|
29864
29884
|
}), void 0) : null;
|
|
29865
29885
|
});
|
|
29866
|
-
var templateObject_1$
|
|
29886
|
+
var templateObject_1$B, templateObject_2$q, templateObject_3$h, templateObject_4$f, templateObject_5$8, templateObject_6$7;
|
|
29867
29887
|
|
|
29868
29888
|
var CheckCircleOutlined = createCommonjsModule(function (module, exports) {
|
|
29869
29889
|
|
|
@@ -29919,63 +29939,63 @@ exports.default = _default;
|
|
|
29919
29939
|
|
|
29920
29940
|
var EmojiObjectsOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(EmojiObjectsOutlined);
|
|
29921
29941
|
|
|
29922
|
-
var Colors$
|
|
29923
|
-
Spacing$
|
|
29942
|
+
var Colors$b = ddsBaseTokens.colors,
|
|
29943
|
+
Spacing$j = ddsBaseTokens.spacing,
|
|
29924
29944
|
FontPackages$c = ddsBaseTokens.fontPackages,
|
|
29925
|
-
BorderRadius$
|
|
29926
|
-
Border$
|
|
29927
|
-
OuterShadow$
|
|
29945
|
+
BorderRadius$4 = ddsBaseTokens.borderRadius,
|
|
29946
|
+
Border$a = ddsBaseTokens.border,
|
|
29947
|
+
OuterShadow$3 = ddsBaseTokens.outerShadow;
|
|
29928
29948
|
|
|
29929
29949
|
var containerBase = __assign(__assign({
|
|
29930
|
-
boxShadow: OuterShadow$
|
|
29931
|
-
borderRadius: BorderRadius$
|
|
29932
|
-
border: Border$
|
|
29933
|
-
padding: "0 " + Spacing$
|
|
29950
|
+
boxShadow: OuterShadow$3.DdsShadow1Onlight,
|
|
29951
|
+
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius,
|
|
29952
|
+
border: Border$a.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
29953
|
+
padding: "0 " + Spacing$j.SizesDdsSpacingLocalX1
|
|
29934
29954
|
}, FontPackages$c.body_sans_02.base), {
|
|
29935
|
-
color: Colors$
|
|
29955
|
+
color: Colors$b.DdsColorNeutralsGray8
|
|
29936
29956
|
});
|
|
29937
29957
|
|
|
29938
29958
|
var defaultWidth = '400px';
|
|
29939
|
-
var contentContainerBase = {
|
|
29940
|
-
paddingRight: Spacing$
|
|
29941
|
-
paddingTop: Spacing$
|
|
29942
|
-
paddingBottom: Spacing$
|
|
29959
|
+
var contentContainerBase$1 = {
|
|
29960
|
+
paddingRight: Spacing$j.SizesDdsSpacingLocalX15,
|
|
29961
|
+
paddingTop: Spacing$j.SizesDdsSpacingLocalX075,
|
|
29962
|
+
paddingBottom: Spacing$j.SizesDdsSpacingLocalX075
|
|
29943
29963
|
};
|
|
29944
29964
|
var contentContainerWithClosableBase = {
|
|
29945
|
-
paddingRight: Spacing$
|
|
29965
|
+
paddingRight: Spacing$j.SizesDdsSpacingLocalX075
|
|
29946
29966
|
};
|
|
29947
29967
|
var contentContainerVericalBase = {
|
|
29948
|
-
paddingBottom: Spacing$
|
|
29968
|
+
paddingBottom: Spacing$j.SizesDdsSpacingLocalX15
|
|
29949
29969
|
};
|
|
29950
29970
|
var topContainerBase = {
|
|
29951
|
-
paddingTop: Spacing$
|
|
29971
|
+
paddingTop: Spacing$j.SizesDdsSpacingLocalX15
|
|
29952
29972
|
};
|
|
29953
29973
|
var topContainerWithClosableBase = {
|
|
29954
|
-
paddingTop: Spacing$
|
|
29974
|
+
paddingTop: Spacing$j.SizesDdsSpacingLocalX1
|
|
29955
29975
|
};
|
|
29956
29976
|
var containerInfoBase = {
|
|
29957
|
-
borderColor: Colors$
|
|
29958
|
-
backgroundColor: Colors$
|
|
29977
|
+
borderColor: Colors$b.DdsColorInfoLighter,
|
|
29978
|
+
backgroundColor: Colors$b.DdsColorInfoLightest
|
|
29959
29979
|
};
|
|
29960
29980
|
var containerDangerBase = {
|
|
29961
|
-
borderColor: Colors$
|
|
29962
|
-
backgroundColor: Colors$
|
|
29981
|
+
borderColor: Colors$b.DdsColorDangerLighter,
|
|
29982
|
+
backgroundColor: Colors$b.DdsColorDangerLightest
|
|
29963
29983
|
};
|
|
29964
29984
|
var containerWarningBase = {
|
|
29965
|
-
borderColor: Colors$
|
|
29966
|
-
backgroundColor: Colors$
|
|
29985
|
+
borderColor: Colors$b.DdsColorWarningLighter,
|
|
29986
|
+
backgroundColor: Colors$b.DdsColorWarningLightest
|
|
29967
29987
|
};
|
|
29968
29988
|
var containerSuccessBase = {
|
|
29969
|
-
borderColor: Colors$
|
|
29970
|
-
backgroundColor: Colors$
|
|
29989
|
+
borderColor: Colors$b.DdsColorSuccessLighter,
|
|
29990
|
+
backgroundColor: Colors$b.DdsColorSuccessLightest
|
|
29971
29991
|
};
|
|
29972
29992
|
var containerTipsBase = {
|
|
29973
|
-
borderColor: Colors$
|
|
29974
|
-
backgroundColor: Colors$
|
|
29993
|
+
borderColor: Colors$b.DdsColorPrimaryLighter,
|
|
29994
|
+
backgroundColor: Colors$b.DdsColorPrimaryLightest
|
|
29975
29995
|
};
|
|
29976
29996
|
var containerConfidentialBase = {
|
|
29977
|
-
borderColor: Colors$
|
|
29978
|
-
backgroundColor: Colors$
|
|
29997
|
+
borderColor: Colors$b.DdsColorDangerBase,
|
|
29998
|
+
backgroundColor: Colors$b.DdsColorDangerLightest
|
|
29979
29999
|
};
|
|
29980
30000
|
var localMessageTokens = {
|
|
29981
30001
|
container: {
|
|
@@ -30001,7 +30021,7 @@ var localMessageTokens = {
|
|
|
30001
30021
|
}
|
|
30002
30022
|
},
|
|
30003
30023
|
contentContainer: {
|
|
30004
|
-
base: contentContainerBase,
|
|
30024
|
+
base: contentContainerBase$1,
|
|
30005
30025
|
withClosable: {
|
|
30006
30026
|
base: contentContainerWithClosableBase
|
|
30007
30027
|
},
|
|
@@ -30016,30 +30036,30 @@ var localMessageTokens = {
|
|
|
30016
30036
|
}
|
|
30017
30037
|
},
|
|
30018
30038
|
icon: {
|
|
30019
|
-
marginRight: "" + Spacing$
|
|
30039
|
+
marginRight: "" + Spacing$j.SizesDdsSpacingLocalX075,
|
|
30020
30040
|
info: {
|
|
30021
30041
|
icon: InfoOutlinedIcon,
|
|
30022
|
-
color: Colors$
|
|
30042
|
+
color: Colors$b.DdsColorInfoDarkest
|
|
30023
30043
|
},
|
|
30024
30044
|
danger: {
|
|
30025
30045
|
icon: DangerOutlinedIcon,
|
|
30026
|
-
color: Colors$
|
|
30046
|
+
color: Colors$b.DdsColorDangerDarkest
|
|
30027
30047
|
},
|
|
30028
30048
|
warning: {
|
|
30029
30049
|
icon: WarningOutlinedIcon,
|
|
30030
|
-
color: Colors$
|
|
30050
|
+
color: Colors$b.DdsColorWarningDarkest
|
|
30031
30051
|
},
|
|
30032
30052
|
success: {
|
|
30033
30053
|
icon: CheckCircleOutlinedIcon,
|
|
30034
|
-
color: Colors$
|
|
30054
|
+
color: Colors$b.DdsColorSuccessDarkest
|
|
30035
30055
|
},
|
|
30036
30056
|
tips: {
|
|
30037
30057
|
icon: EmojiObjectsOutlinedIcon,
|
|
30038
|
-
color: Colors$
|
|
30058
|
+
color: Colors$b.DdsColorPrimaryDarkest
|
|
30039
30059
|
},
|
|
30040
30060
|
confidential: {
|
|
30041
30061
|
icon: DangerOutlinedIcon,
|
|
30042
|
-
color: Colors$
|
|
30062
|
+
color: Colors$b.DdsColorDangerDarkest
|
|
30043
30063
|
}
|
|
30044
30064
|
},
|
|
30045
30065
|
button: {
|
|
@@ -30064,18 +30084,18 @@ var localMessageTokens = {
|
|
|
30064
30084
|
}
|
|
30065
30085
|
};
|
|
30066
30086
|
|
|
30067
|
-
var Container$
|
|
30087
|
+
var Container$7 = styled.div.withConfig({
|
|
30068
30088
|
displayName: "LocalMessage__Container",
|
|
30069
30089
|
componentId: "sc-kmfp8w-0"
|
|
30070
|
-
})(templateObject_3$
|
|
30090
|
+
})(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) {
|
|
30071
30091
|
var layout = _a.layout;
|
|
30072
30092
|
return layout === 'vertical' ? 'column' : 'row';
|
|
30073
30093
|
}, function (_a) {
|
|
30074
30094
|
var layout = _a.layout;
|
|
30075
|
-
return layout === 'horisontal' && Ae(templateObject_1$
|
|
30095
|
+
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 "])));
|
|
30076
30096
|
}, typographyTokens.selection.base, function (_a) {
|
|
30077
30097
|
var purpose = _a.purpose;
|
|
30078
|
-
return purpose && Ae(templateObject_2$
|
|
30098
|
+
return purpose && Ae(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), localMessageTokens.container.base, localMessageTokens.container[purpose].base);
|
|
30079
30099
|
}, function (_a) {
|
|
30080
30100
|
var width = _a.width;
|
|
30081
30101
|
return width;
|
|
@@ -30083,13 +30103,13 @@ var Container$4 = styled.div.withConfig({
|
|
|
30083
30103
|
var MessageIconWrapper = styled(IconWrapper$1).withConfig({
|
|
30084
30104
|
displayName: "LocalMessage__MessageIconWrapper",
|
|
30085
30105
|
componentId: "sc-kmfp8w-1"
|
|
30086
|
-
})(templateObject_4$
|
|
30087
|
-
var ContentContainer$
|
|
30106
|
+
})(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n margin-right: ", ";\n"], ["\n margin-right: ", ";\n"])), localMessageTokens.icon.marginRight);
|
|
30107
|
+
var ContentContainer$2 = styled.div.withConfig({
|
|
30088
30108
|
displayName: "LocalMessage__ContentContainer",
|
|
30089
30109
|
componentId: "sc-kmfp8w-2"
|
|
30090
30110
|
})(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), localMessageTokens.contentContainer.base, function (_a) {
|
|
30091
30111
|
var layout = _a.layout;
|
|
30092
|
-
return layout === 'vertical' ? Ae(templateObject_5$
|
|
30112
|
+
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 "])));
|
|
30093
30113
|
}, function (_a) {
|
|
30094
30114
|
var closable = _a.closable;
|
|
30095
30115
|
return closable && Ae(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), localMessageTokens.contentContainer.withClosable.base);
|
|
@@ -30155,9 +30175,9 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30155
30175
|
"aria-label": "Lukk melding"
|
|
30156
30176
|
}, void 0);
|
|
30157
30177
|
|
|
30158
|
-
return !isClosed ? jsxRuntime.jsx(Container$
|
|
30178
|
+
return !isClosed ? jsxRuntime.jsx(Container$7, __assign({}, containerProps, {
|
|
30159
30179
|
children: layout === 'horisontal' ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
30160
|
-
children: [jsxRuntime.jsxs(ContentContainer$
|
|
30180
|
+
children: [jsxRuntime.jsxs(ContentContainer$2, __assign({}, contentContainerProps, {
|
|
30161
30181
|
children: [messageIconWrapper, " ", content]
|
|
30162
30182
|
}), void 0), closeButton]
|
|
30163
30183
|
}, void 0) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -30165,13 +30185,13 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30165
30185
|
closable: closable
|
|
30166
30186
|
}, {
|
|
30167
30187
|
children: [messageIconWrapper, " ", closeButton]
|
|
30168
|
-
}), void 0), jsxRuntime.jsx(ContentContainer$
|
|
30188
|
+
}), void 0), jsxRuntime.jsx(ContentContainer$2, __assign({}, contentContainerProps, {
|
|
30169
30189
|
children: content
|
|
30170
30190
|
}), void 0)]
|
|
30171
30191
|
}, void 0)
|
|
30172
30192
|
}), void 0) : null;
|
|
30173
30193
|
});
|
|
30174
|
-
var templateObject_1$
|
|
30194
|
+
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;
|
|
30175
30195
|
|
|
30176
30196
|
var SearchOutlined = createCommonjsModule(function (module, exports) {
|
|
30177
30197
|
|
|
@@ -30197,26 +30217,26 @@ exports.default = _default;
|
|
|
30197
30217
|
|
|
30198
30218
|
var SearchOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(SearchOutlined);
|
|
30199
30219
|
|
|
30200
|
-
var Spacing$
|
|
30220
|
+
var Spacing$i = ddsBaseTokens.spacing,
|
|
30201
30221
|
FontPackages$b = ddsBaseTokens.fontPackages;
|
|
30202
30222
|
var textDefault$5 = ddsReferenceTokens.textDefault;
|
|
30203
30223
|
var inputBase = {
|
|
30204
|
-
paddingRight: Spacing$
|
|
30224
|
+
paddingRight: Spacing$i.SizesDdsSpacingLocalX05
|
|
30205
30225
|
};
|
|
30206
30226
|
|
|
30207
30227
|
var smallBase$1 = __assign(__assign({}, FontPackages$b.supportingStyle_inputtext_01.base), {
|
|
30208
|
-
paddingTop: Spacing$
|
|
30209
|
-
paddingBottom: Spacing$
|
|
30228
|
+
paddingTop: Spacing$i.SizesDdsSpacingLocalX05,
|
|
30229
|
+
paddingBottom: Spacing$i.SizesDdsSpacingLocalX05
|
|
30210
30230
|
});
|
|
30211
30231
|
|
|
30212
30232
|
var mediumBase = __assign(__assign({}, FontPackages$b.supportingStyle_inputtext_02.base), {
|
|
30213
|
-
paddingTop: Spacing$
|
|
30214
|
-
paddingBottom: Spacing$
|
|
30233
|
+
paddingTop: Spacing$i.SizesDdsSpacingLocalX075,
|
|
30234
|
+
paddingBottom: Spacing$i.SizesDdsSpacingLocalX075
|
|
30215
30235
|
});
|
|
30216
30236
|
|
|
30217
30237
|
var largeBase = __assign(__assign({}, FontPackages$b.supportingStyle_inputtext_03.base), {
|
|
30218
|
-
paddingTop: Spacing$
|
|
30219
|
-
paddingBottom: Spacing$
|
|
30238
|
+
paddingTop: Spacing$i.SizesDdsSpacingLocalX1,
|
|
30239
|
+
paddingBottom: Spacing$i.SizesDdsSpacingLocalX1
|
|
30220
30240
|
});
|
|
30221
30241
|
|
|
30222
30242
|
var iconWrapperBase = {
|
|
@@ -30225,7 +30245,7 @@ var iconWrapperBase = {
|
|
|
30225
30245
|
var searchTokens = {
|
|
30226
30246
|
input: {
|
|
30227
30247
|
base: inputBase,
|
|
30228
|
-
spaceLeft: Spacing$
|
|
30248
|
+
spaceLeft: Spacing$i.SizesDdsSpacingLocalX3,
|
|
30229
30249
|
small: {
|
|
30230
30250
|
base: smallBase$1
|
|
30231
30251
|
},
|
|
@@ -30237,36 +30257,36 @@ var searchTokens = {
|
|
|
30237
30257
|
}
|
|
30238
30258
|
},
|
|
30239
30259
|
icon: {
|
|
30240
|
-
spaceTop: "calc(50% - " + Spacing$
|
|
30241
|
-
spaceLeft: Spacing$
|
|
30260
|
+
spaceTop: "calc(50% - " + Spacing$i.SizesDdsSpacingLocalX15NumberPx / 2 + "px)",
|
|
30261
|
+
spaceLeft: Spacing$i.SizesDdsSpacingLocalX075
|
|
30242
30262
|
},
|
|
30243
30263
|
iconWrapper: {
|
|
30244
30264
|
base: iconWrapperBase
|
|
30245
30265
|
},
|
|
30246
30266
|
buttonWrapper: {
|
|
30247
|
-
spaceLeft: Spacing$
|
|
30267
|
+
spaceLeft: Spacing$i.SizesDdsSpacingLocalX05
|
|
30248
30268
|
}
|
|
30249
30269
|
};
|
|
30250
30270
|
|
|
30251
30271
|
var Input = styled.input.withConfig({
|
|
30252
30272
|
displayName: "Search__Input",
|
|
30253
30273
|
componentId: "sc-1ax3s9s-0"
|
|
30254
|
-
})(templateObject_2$
|
|
30274
|
+
})(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) {
|
|
30255
30275
|
var componentSize = _a.componentSize;
|
|
30256
|
-
return componentSize && Ae(templateObject_1$
|
|
30276
|
+
return componentSize && Ae(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), searchTokens.input[componentSize].base);
|
|
30257
30277
|
}, searchTokens.input.spaceLeft);
|
|
30258
30278
|
var IconWrapper = styled.span.withConfig({
|
|
30259
30279
|
displayName: "Search__IconWrapper",
|
|
30260
30280
|
componentId: "sc-1ax3s9s-1"
|
|
30261
|
-
})(templateObject_3$
|
|
30262
|
-
var Container$
|
|
30281
|
+
})(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);
|
|
30282
|
+
var Container$6 = styled.div.withConfig({
|
|
30263
30283
|
displayName: "Search__Container",
|
|
30264
30284
|
componentId: "sc-1ax3s9s-2"
|
|
30265
|
-
})(templateObject_4$
|
|
30285
|
+
})(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n"], ["\n display: flex;\n flex-direction: row;\n"])));
|
|
30266
30286
|
var InputContainer = styled.div.withConfig({
|
|
30267
30287
|
displayName: "Search__InputContainer",
|
|
30268
30288
|
componentId: "sc-1ax3s9s-3"
|
|
30269
|
-
})(templateObject_5$
|
|
30289
|
+
})(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"])));
|
|
30270
30290
|
var InputWrapper = styled.div.withConfig({
|
|
30271
30291
|
displayName: "Search__InputWrapper",
|
|
30272
30292
|
componentId: "sc-1ax3s9s-4"
|
|
@@ -30275,7 +30295,7 @@ var ButtonWrapper = styled.div.withConfig({
|
|
|
30275
30295
|
displayName: "Search__ButtonWrapper",
|
|
30276
30296
|
componentId: "sc-1ax3s9s-5"
|
|
30277
30297
|
})(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n margin-left: ", ";\n"], ["\n margin-left: ", ";\n"])), searchTokens.buttonWrapper.spaceLeft);
|
|
30278
|
-
var nextUniqueId$
|
|
30298
|
+
var nextUniqueId$5 = 0;
|
|
30279
30299
|
var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30280
30300
|
var _b = _a.componentSize,
|
|
30281
30301
|
componentSize = _b === void 0 ? 'medium' : _b,
|
|
@@ -30288,7 +30308,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30288
30308
|
ariaDescribedby = _a["aria-describedby"],
|
|
30289
30309
|
rest = __rest(_a, ["componentSize", "buttonProps", "name", "tip", "id", "className", "style", 'aria-describedby']);
|
|
30290
30310
|
|
|
30291
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "searchInput-" + nextUniqueId$
|
|
30311
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "searchInput-" + nextUniqueId$5++)[0];
|
|
30292
30312
|
var hasTip = !!tip;
|
|
30293
30313
|
var tipId = derivativeIdGenerator(uniqueId, 'tip', tip);
|
|
30294
30314
|
var containerProps = {
|
|
@@ -30309,7 +30329,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30309
30329
|
onClick = _c.onClick,
|
|
30310
30330
|
otherButtonProps = __rest(_c, ["label", "onClick"]);
|
|
30311
30331
|
|
|
30312
|
-
return jsxRuntime.jsxs(Container$
|
|
30332
|
+
return jsxRuntime.jsxs(Container$6, __assign({}, containerProps, {
|
|
30313
30333
|
children: [jsxRuntime.jsxs(InputContainer, {
|
|
30314
30334
|
children: [jsxRuntime.jsxs(InputWrapper, {
|
|
30315
30335
|
children: [jsxRuntime.jsx(IconWrapper, {
|
|
@@ -30331,26 +30351,26 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30331
30351
|
}, void 0)]
|
|
30332
30352
|
}), void 0);
|
|
30333
30353
|
});
|
|
30334
|
-
var templateObject_1$
|
|
30354
|
+
var templateObject_1$z, templateObject_2$o, templateObject_3$f, templateObject_4$d, templateObject_5$6, templateObject_6$5, templateObject_7$3;
|
|
30335
30355
|
|
|
30336
|
-
var Colors$
|
|
30337
|
-
Spacing$
|
|
30356
|
+
var Colors$a = ddsBaseTokens.colors,
|
|
30357
|
+
Spacing$h = ddsBaseTokens.spacing;
|
|
30338
30358
|
var cellBase = {};
|
|
30339
30359
|
var compactCellBase = {
|
|
30340
|
-
padding: "" + Spacing$
|
|
30360
|
+
padding: "" + Spacing$h.SizesDdsSpacingLocalX075
|
|
30341
30361
|
};
|
|
30342
30362
|
var headBase = {
|
|
30343
|
-
backgroundColor: Colors$
|
|
30363
|
+
backgroundColor: Colors$a.DdsColorPrimaryLightest
|
|
30344
30364
|
};
|
|
30345
30365
|
var dataBase = {};
|
|
30346
30366
|
var normalCellBase = {
|
|
30347
|
-
padding: Spacing$
|
|
30367
|
+
padding: Spacing$h.SizesDdsSpacingLocalX15 + " " + Spacing$h.SizesDdsSpacingLocalX075
|
|
30348
30368
|
};
|
|
30349
30369
|
var sortCellIconBase = {
|
|
30350
|
-
marginInlineStart: Spacing$
|
|
30370
|
+
marginInlineStart: Spacing$h.SizesDdsSpacingLocalX05
|
|
30351
30371
|
};
|
|
30352
30372
|
var textAndIconBase = {
|
|
30353
|
-
marginRight: Spacing$
|
|
30373
|
+
marginRight: Spacing$h.SizesDdsSpacingLocalX075
|
|
30354
30374
|
};
|
|
30355
30375
|
var cellTokens = {
|
|
30356
30376
|
base: cellBase,
|
|
@@ -30383,12 +30403,12 @@ var cellTokens = {
|
|
|
30383
30403
|
var StyledTable = styled.table.withConfig({
|
|
30384
30404
|
displayName: "Table__StyledTable",
|
|
30385
30405
|
componentId: "sc-bw0w0a-0"
|
|
30386
|
-
})(templateObject_3$
|
|
30406
|
+
})(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) {
|
|
30387
30407
|
var density = _a.density;
|
|
30388
|
-
return density && Ae(templateObject_1$
|
|
30408
|
+
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);
|
|
30389
30409
|
}, function (_a) {
|
|
30390
30410
|
var stickyHeader = _a.stickyHeader;
|
|
30391
|
-
return stickyHeader && Ae(templateObject_2$
|
|
30411
|
+
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 "])));
|
|
30392
30412
|
});
|
|
30393
30413
|
var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30394
30414
|
var _b = _a.density,
|
|
@@ -30405,12 +30425,12 @@ var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30405
30425
|
children: children
|
|
30406
30426
|
}), void 0);
|
|
30407
30427
|
});
|
|
30408
|
-
var templateObject_1$
|
|
30428
|
+
var templateObject_1$y, templateObject_2$n, templateObject_3$e;
|
|
30409
30429
|
|
|
30410
30430
|
var StyledBody = styled.tbody.withConfig({
|
|
30411
30431
|
displayName: "Body__StyledBody",
|
|
30412
30432
|
componentId: "sc-67qjfs-0"
|
|
30413
|
-
})(templateObject_1$
|
|
30433
|
+
})(templateObject_1$x || (templateObject_1$x = __makeTemplateObject([""], [""])));
|
|
30414
30434
|
var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30415
30435
|
var children = _a.children,
|
|
30416
30436
|
rest = __rest(_a, ["children"]);
|
|
@@ -30423,12 +30443,12 @@ var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30423
30443
|
children: children
|
|
30424
30444
|
}), void 0);
|
|
30425
30445
|
});
|
|
30426
|
-
var templateObject_1$
|
|
30446
|
+
var templateObject_1$x;
|
|
30427
30447
|
|
|
30428
30448
|
var StyledHead = styled.thead.withConfig({
|
|
30429
30449
|
displayName: "Head__StyledHead",
|
|
30430
30450
|
componentId: "sc-vzd2kv-0"
|
|
30431
|
-
})(templateObject_1$
|
|
30451
|
+
})(templateObject_1$w || (templateObject_1$w = __makeTemplateObject([""], [""])));
|
|
30432
30452
|
var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30433
30453
|
var children = _a.children,
|
|
30434
30454
|
rest = __rest(_a, ["children"]);
|
|
@@ -30441,11 +30461,11 @@ var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30441
30461
|
children: children
|
|
30442
30462
|
}), void 0);
|
|
30443
30463
|
});
|
|
30444
|
-
var templateObject_1$
|
|
30464
|
+
var templateObject_1$w;
|
|
30445
30465
|
|
|
30446
|
-
var Colors$
|
|
30466
|
+
var Colors$9 = ddsBaseTokens.colors,
|
|
30447
30467
|
FontPackages$a = ddsBaseTokens.fontPackages,
|
|
30448
|
-
Border$
|
|
30468
|
+
Border$9 = ddsBaseTokens.border;
|
|
30449
30469
|
var textDefault$4 = ddsReferenceTokens.textDefault;
|
|
30450
30470
|
|
|
30451
30471
|
var bodyRowBase = __assign({
|
|
@@ -30460,23 +30480,23 @@ var headRowBase = __assign(__assign({
|
|
|
30460
30480
|
});
|
|
30461
30481
|
|
|
30462
30482
|
var bodyOddBase = {
|
|
30463
|
-
backgroundColor: Colors$
|
|
30483
|
+
backgroundColor: Colors$9.DdsColorNeutralsWhite
|
|
30464
30484
|
};
|
|
30465
30485
|
var bodyEvenBase = {
|
|
30466
|
-
backgroundColor: Colors$
|
|
30486
|
+
backgroundColor: Colors$9.DdsColorNeutralsGray1
|
|
30467
30487
|
};
|
|
30468
30488
|
var bodySelectedBase = {
|
|
30469
|
-
backgroundColor: Colors$
|
|
30489
|
+
backgroundColor: Colors$9.DdsColorSecondaryLightest
|
|
30470
30490
|
};
|
|
30471
30491
|
var bodyHoverBase = {
|
|
30472
|
-
backgroundColor: Colors$
|
|
30492
|
+
backgroundColor: Colors$9.DdsColorSecondaryLightest
|
|
30473
30493
|
};
|
|
30474
30494
|
|
|
30475
30495
|
var bodySumBase = __assign(__assign({}, FontPackages$a.body_sans_02.base), {
|
|
30476
30496
|
fontWeight: 600,
|
|
30477
|
-
borderTop: Border$
|
|
30478
|
-
borderBottom: Border$
|
|
30479
|
-
backgroundColor: Colors$
|
|
30497
|
+
borderTop: Border$9.BordersDdsBorderStyleLightStrokeWeight + " solid " + Colors$9.DdsColorNeutralsGray4,
|
|
30498
|
+
borderBottom: Border$9.BordersDdsBorderStyleLightStrokeWeight + " solid " + Colors$9.DdsColorNeutralsGray4,
|
|
30499
|
+
backgroundColor: Colors$9.DdsColorNeutralsWhite
|
|
30480
30500
|
});
|
|
30481
30501
|
|
|
30482
30502
|
var rowTokens = {
|
|
@@ -30509,7 +30529,7 @@ var rowTokens = {
|
|
|
30509
30529
|
};
|
|
30510
30530
|
|
|
30511
30531
|
var bodyStyles = function bodyStyles(mode, selected) {
|
|
30512
|
-
return Ae(templateObject_3$
|
|
30532
|
+
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));
|
|
30513
30533
|
};
|
|
30514
30534
|
|
|
30515
30535
|
var StyledRow = styled.tr.withConfig({
|
|
@@ -30517,13 +30537,13 @@ var StyledRow = styled.tr.withConfig({
|
|
|
30517
30537
|
componentId: "sc-15vvjkk-0"
|
|
30518
30538
|
})(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) {
|
|
30519
30539
|
var type = _a.type;
|
|
30520
|
-
return type && Ae(templateObject_4$
|
|
30540
|
+
return type && Ae(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens[type].base);
|
|
30521
30541
|
}, function (_a) {
|
|
30522
30542
|
var type = _a.type,
|
|
30523
30543
|
mode = _a.mode,
|
|
30524
30544
|
selected = _a.selected,
|
|
30525
30545
|
hoverable = _a.hoverable;
|
|
30526
|
-
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$
|
|
30546
|
+
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));
|
|
30527
30547
|
});
|
|
30528
30548
|
var Row = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30529
30549
|
var _b = _a.type,
|
|
@@ -30544,18 +30564,18 @@ var Row = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30544
30564
|
children: children
|
|
30545
30565
|
}), void 0);
|
|
30546
30566
|
});
|
|
30547
|
-
var templateObject_1$
|
|
30567
|
+
var templateObject_1$v, templateObject_2$m, templateObject_3$d, templateObject_4$c, templateObject_5$5, templateObject_6$4, templateObject_7$2;
|
|
30548
30568
|
|
|
30549
30569
|
var layoutStyle = function layoutStyle(layout) {
|
|
30550
30570
|
switch (layout) {
|
|
30551
30571
|
case 'center':
|
|
30552
|
-
return Ae(templateObject_1$
|
|
30572
|
+
return Ae(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
|
|
30553
30573
|
|
|
30554
30574
|
case 'right':
|
|
30555
|
-
return Ae(templateObject_2$
|
|
30575
|
+
return Ae(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n justify-content: flex-end;\n "], ["\n justify-content: flex-end;\n "])));
|
|
30556
30576
|
|
|
30557
30577
|
case 'text and icon':
|
|
30558
|
-
return Ae(templateObject_3$
|
|
30578
|
+
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);
|
|
30559
30579
|
|
|
30560
30580
|
default:
|
|
30561
30581
|
case 'left':
|
|
@@ -30566,9 +30586,9 @@ var layoutStyle = function layoutStyle(layout) {
|
|
|
30566
30586
|
var StyledCell = styled.td.withConfig({
|
|
30567
30587
|
displayName: "Cell__StyledCell",
|
|
30568
30588
|
componentId: "sc-ghfpfs-0"
|
|
30569
|
-
})(templateObject_5$
|
|
30589
|
+
})(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), cellTokens.base, function (_a) {
|
|
30570
30590
|
var type = _a.type;
|
|
30571
|
-
return type && Ae(templateObject_4$
|
|
30591
|
+
return type && Ae(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cellTokens[type].base);
|
|
30572
30592
|
});
|
|
30573
30593
|
var InnerCell = styled.div.withConfig({
|
|
30574
30594
|
displayName: "Cell__InnerCell",
|
|
@@ -30615,7 +30635,7 @@ var Cell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30615
30635
|
}), void 0)
|
|
30616
30636
|
}), void 0);
|
|
30617
30637
|
});
|
|
30618
|
-
var templateObject_1$
|
|
30638
|
+
var templateObject_1$u, templateObject_2$l, templateObject_3$c, templateObject_4$b, templateObject_5$4, templateObject_6$3;
|
|
30619
30639
|
|
|
30620
30640
|
var KeyboardArrowDown = createCommonjsModule(function (module, exports) {
|
|
30621
30641
|
|
|
@@ -30689,17 +30709,17 @@ exports.default = _default;
|
|
|
30689
30709
|
|
|
30690
30710
|
var UnfoldMoreIcon = /*@__PURE__*/getDefaultExportFromCjs(UnfoldMore);
|
|
30691
30711
|
|
|
30692
|
-
var removeButtonStyling = Ae(templateObject_1$
|
|
30693
|
-
var templateObject_1$
|
|
30712
|
+
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"])));
|
|
30713
|
+
var templateObject_1$t;
|
|
30694
30714
|
|
|
30695
30715
|
var SortIconWrapper = styled(IconWrapper$1).withConfig({
|
|
30696
30716
|
displayName: "SortCell__SortIconWrapper",
|
|
30697
30717
|
componentId: "sc-1l3jzvh-0"
|
|
30698
|
-
})(templateObject_1$
|
|
30699
|
-
var StyledButton$
|
|
30718
|
+
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cellTokens.head.sortCell.icon.base);
|
|
30719
|
+
var StyledButton$2 = styled.button.withConfig({
|
|
30700
30720
|
displayName: "SortCell__StyledButton",
|
|
30701
30721
|
componentId: "sc-1l3jzvh-1"
|
|
30702
|
-
})(templateObject_2$
|
|
30722
|
+
})(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);
|
|
30703
30723
|
|
|
30704
30724
|
var makeSortIcon = function makeSortIcon(isSorted, sortOrder) {
|
|
30705
30725
|
if (!isSorted || !sortOrder) {
|
|
@@ -30730,7 +30750,7 @@ var SortCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30730
30750
|
type: "head",
|
|
30731
30751
|
"aria-sort": isSorted && sortOrder ? sortOrder : undefined
|
|
30732
30752
|
}, rest, {
|
|
30733
|
-
children: jsxRuntime.jsxs(StyledButton$
|
|
30753
|
+
children: jsxRuntime.jsxs(StyledButton$2, __assign({
|
|
30734
30754
|
onClick: onClick,
|
|
30735
30755
|
"aria-description": "Aktiver for \xE5 endre sorteringsrekkef\xF8lge"
|
|
30736
30756
|
}, {
|
|
@@ -30738,12 +30758,12 @@ var SortCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30738
30758
|
}), void 0)
|
|
30739
30759
|
}), void 0);
|
|
30740
30760
|
});
|
|
30741
|
-
var templateObject_1$
|
|
30761
|
+
var templateObject_1$s, templateObject_2$k;
|
|
30742
30762
|
|
|
30743
30763
|
var StyledFoot = styled.tfoot.withConfig({
|
|
30744
30764
|
displayName: "Foot__StyledFoot",
|
|
30745
30765
|
componentId: "sc-tfpehd-0"
|
|
30746
|
-
})(templateObject_1$
|
|
30766
|
+
})(templateObject_1$r || (templateObject_1$r = __makeTemplateObject([""], [""])));
|
|
30747
30767
|
var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30748
30768
|
var children = _a.children,
|
|
30749
30769
|
rest = __rest(_a, ["children"]);
|
|
@@ -30756,14 +30776,14 @@ var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30756
30776
|
children: children
|
|
30757
30777
|
}), void 0);
|
|
30758
30778
|
});
|
|
30759
|
-
var templateObject_1$
|
|
30779
|
+
var templateObject_1$r;
|
|
30760
30780
|
|
|
30761
30781
|
var Wrapper$4 = styled.div.withConfig({
|
|
30762
30782
|
displayName: "TableWrapper__Wrapper",
|
|
30763
30783
|
componentId: "sc-eb384b-0"
|
|
30764
|
-
})(templateObject_2$
|
|
30784
|
+
})(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (_a) {
|
|
30765
30785
|
var overflowX = _a.overflowX;
|
|
30766
|
-
return overflowX && Ae(templateObject_1$
|
|
30786
|
+
return overflowX && Ae(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n overflow-x: auto;\n "], ["\n overflow-x: auto;\n "])));
|
|
30767
30787
|
}, scrollbarStyling);
|
|
30768
30788
|
var TableWrapper = function TableWrapper(_a) {
|
|
30769
30789
|
var children = _a.children,
|
|
@@ -30810,7 +30830,7 @@ var TableWrapper = function TableWrapper(_a) {
|
|
|
30810
30830
|
children: children
|
|
30811
30831
|
}), void 0);
|
|
30812
30832
|
};
|
|
30813
|
-
var templateObject_1$
|
|
30833
|
+
var templateObject_1$q, templateObject_2$j;
|
|
30814
30834
|
|
|
30815
30835
|
var Breadcrumb = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30816
30836
|
var children = _a.children,
|
|
@@ -30879,13 +30899,13 @@ exports.default = _default;
|
|
|
30879
30899
|
|
|
30880
30900
|
var ArrowBackOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(ArrowBackOutlined);
|
|
30881
30901
|
|
|
30882
|
-
var Colors$
|
|
30883
|
-
Spacing$
|
|
30902
|
+
var Colors$8 = ddsBaseTokens.colors,
|
|
30903
|
+
Spacing$g = ddsBaseTokens.spacing,
|
|
30884
30904
|
FontPackages$9 = ddsBaseTokens.fontPackages;
|
|
30885
30905
|
var iconBase$2 = {
|
|
30886
|
-
color: Colors$
|
|
30887
|
-
marginLeft: Spacing$
|
|
30888
|
-
marginRight: Spacing$
|
|
30906
|
+
color: Colors$8.DdsColorInteractiveBase,
|
|
30907
|
+
marginLeft: Spacing$g.SizesDdsSpacingLocalX05,
|
|
30908
|
+
marginRight: Spacing$g.SizesDdsSpacingLocalX05
|
|
30889
30909
|
};
|
|
30890
30910
|
|
|
30891
30911
|
var breadcrumbBase = __assign({}, FontPackages$9.body_sans_02.base);
|
|
@@ -30903,19 +30923,19 @@ var breadcrumbTokens = {
|
|
|
30903
30923
|
var List$2 = styled.ol.withConfig({
|
|
30904
30924
|
displayName: "Breadcrumbs__List",
|
|
30905
30925
|
componentId: "sc-xdj21o-0"
|
|
30906
|
-
})(templateObject_1$
|
|
30926
|
+
})(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"])));
|
|
30907
30927
|
var ListItem$2 = styled.li.withConfig({
|
|
30908
30928
|
displayName: "Breadcrumbs__ListItem",
|
|
30909
30929
|
componentId: "sc-xdj21o-1"
|
|
30910
|
-
})(templateObject_2$
|
|
30930
|
+
})(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);
|
|
30911
30931
|
var BreadcrumbIcon = styled(ChevronRightOutlinedIcon).withConfig({
|
|
30912
30932
|
displayName: "Breadcrumbs__BreadcrumbIcon",
|
|
30913
30933
|
componentId: "sc-xdj21o-2"
|
|
30914
|
-
})(templateObject_3$
|
|
30934
|
+
})(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), breadcrumbTokens.icon.base);
|
|
30915
30935
|
var BackIcon = styled(ArrowBackOutlinedIcon).withConfig({
|
|
30916
30936
|
displayName: "Breadcrumbs__BackIcon",
|
|
30917
30937
|
componentId: "sc-xdj21o-3"
|
|
30918
|
-
})(templateObject_4$
|
|
30938
|
+
})(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), breadcrumbTokens.icon.base);
|
|
30919
30939
|
var Breadcrumbs = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30920
30940
|
var smallScreen = _a.smallScreen,
|
|
30921
30941
|
children = _a.children,
|
|
@@ -30947,7 +30967,7 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30947
30967
|
}, void 0)
|
|
30948
30968
|
}), void 0);
|
|
30949
30969
|
});
|
|
30950
|
-
var templateObject_1$
|
|
30970
|
+
var templateObject_1$p, templateObject_2$i, templateObject_3$b, templateObject_4$a;
|
|
30951
30971
|
|
|
30952
30972
|
var ChevronLeftOutlined = createCommonjsModule(function (module, exports) {
|
|
30953
30973
|
|
|
@@ -31084,44 +31104,44 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
31084
31104
|
return arrayRange(1, pagesAmount);
|
|
31085
31105
|
}
|
|
31086
31106
|
|
|
31087
|
-
var Spacing$
|
|
31088
|
-
Colors$
|
|
31107
|
+
var Spacing$f = ddsBaseTokens.spacing,
|
|
31108
|
+
Colors$7 = ddsBaseTokens.colors;
|
|
31089
31109
|
var listBase = {
|
|
31090
|
-
color: Colors$
|
|
31110
|
+
color: Colors$7.DdsColorNeutralsGray7
|
|
31091
31111
|
};
|
|
31092
31112
|
var paginationTokens = {
|
|
31093
31113
|
container: {
|
|
31094
|
-
spaceBetweenItems: Spacing$
|
|
31114
|
+
spaceBetweenItems: Spacing$f.SizesDdsSpacingLocalX075
|
|
31095
31115
|
},
|
|
31096
31116
|
indicatorsContainer: {
|
|
31097
|
-
spacing: Spacing$
|
|
31117
|
+
spacing: Spacing$f.SizesDdsSpacingLocalX075
|
|
31098
31118
|
},
|
|
31099
31119
|
list: {
|
|
31100
31120
|
base: listBase
|
|
31101
31121
|
},
|
|
31102
31122
|
paginationItem: {
|
|
31103
|
-
spacing: Spacing$
|
|
31123
|
+
spacing: Spacing$f.SizesDdsSpacingLocalX075
|
|
31104
31124
|
}
|
|
31105
31125
|
};
|
|
31106
31126
|
|
|
31107
31127
|
var Nav = styled.nav.withConfig({
|
|
31108
31128
|
displayName: "Pagination__Nav",
|
|
31109
31129
|
componentId: "sc-5ltegq-0"
|
|
31110
|
-
})(templateObject_1$
|
|
31130
|
+
})(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
31111
31131
|
var List$1 = styled.ol.withConfig({
|
|
31112
31132
|
displayName: "Pagination__List",
|
|
31113
31133
|
componentId: "sc-5ltegq-1"
|
|
31114
|
-
})(templateObject_2$
|
|
31134
|
+
})(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);
|
|
31115
31135
|
var ListItem$1 = styled.li.withConfig({
|
|
31116
31136
|
displayName: "Pagination__ListItem",
|
|
31117
31137
|
componentId: "sc-5ltegq-2"
|
|
31118
|
-
})(templateObject_3$
|
|
31119
|
-
var Container$
|
|
31138
|
+
})(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"])));
|
|
31139
|
+
var Container$5 = styled.div.withConfig({
|
|
31120
31140
|
displayName: "Pagination__Container",
|
|
31121
31141
|
componentId: "sc-5ltegq-3"
|
|
31122
31142
|
})(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) {
|
|
31123
31143
|
var smallScreen = _a.smallScreen;
|
|
31124
|
-
return smallScreen ? Ae(templateObject_4$
|
|
31144
|
+
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 "])));
|
|
31125
31145
|
});
|
|
31126
31146
|
var IndicatorsContainer = styled.div.withConfig({
|
|
31127
31147
|
displayName: "Pagination__IndicatorsContainer",
|
|
@@ -31287,7 +31307,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31287
31307
|
var activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
|
|
31288
31308
|
var activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
|
|
31289
31309
|
var navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation;
|
|
31290
|
-
return !withCounter && !withSelect ? navigationToBeRendered : jsxRuntime.jsxs(Container$
|
|
31310
|
+
return !withCounter && !withSelect ? navigationToBeRendered : jsxRuntime.jsxs(Container$5, __assign({}, containerProps, {
|
|
31291
31311
|
children: [jsxRuntime.jsxs(IndicatorsContainer, {
|
|
31292
31312
|
children: [withSelect && jsxRuntime.jsx(Select, {
|
|
31293
31313
|
options: selectOptions,
|
|
@@ -31309,31 +31329,31 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31309
31329
|
}, void 0), navigationToBeRendered]
|
|
31310
31330
|
}), void 0);
|
|
31311
31331
|
});
|
|
31312
|
-
var templateObject_1$
|
|
31332
|
+
var templateObject_1$o, templateObject_2$h, templateObject_3$a, templateObject_4$9, templateObject_5$3, templateObject_6$2, templateObject_7$1;
|
|
31313
31333
|
|
|
31314
|
-
var Border$
|
|
31315
|
-
Spacing$
|
|
31334
|
+
var Border$8 = ddsBaseTokens.border,
|
|
31335
|
+
Spacing$e = ddsBaseTokens.spacing;
|
|
31316
31336
|
var dividerColors = {
|
|
31317
|
-
primary: Border$
|
|
31318
|
-
primaryLighter: Border$
|
|
31337
|
+
primary: Border$8.BordersDdsBorderStyleDarkStroke,
|
|
31338
|
+
primaryLighter: Border$8.BordersDdsBorderStyleLightStroke
|
|
31319
31339
|
};
|
|
31320
|
-
var base$
|
|
31340
|
+
var base$8 = {
|
|
31321
31341
|
border: 0,
|
|
31322
31342
|
backgroundColor: 'transparent',
|
|
31323
|
-
borderTop: Border$
|
|
31324
|
-
marginTop: Spacing$
|
|
31325
|
-
marginBottom: Spacing$
|
|
31343
|
+
borderTop: Border$8.BordersDdsBorderStyleLightStrokeWeight + " solid",
|
|
31344
|
+
marginTop: Spacing$e.SizesDdsSpacingLocalX1,
|
|
31345
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX1
|
|
31326
31346
|
};
|
|
31327
31347
|
var dividerTokens = {
|
|
31328
|
-
base: base$
|
|
31348
|
+
base: base$8
|
|
31329
31349
|
};
|
|
31330
31350
|
|
|
31331
31351
|
var DividerLine = styled.hr.withConfig({
|
|
31332
31352
|
displayName: "Divider__DividerLine",
|
|
31333
31353
|
componentId: "sc-ggdopz-0"
|
|
31334
|
-
})(templateObject_2$
|
|
31354
|
+
})(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), dividerTokens.base, function (_a) {
|
|
31335
31355
|
var color = _a.color;
|
|
31336
|
-
return color && Ae(templateObject_1$
|
|
31356
|
+
return color && Ae(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n border-color: ", ";\n "], ["\n border-color: ", ";\n "])), dividerColors[color]);
|
|
31337
31357
|
});
|
|
31338
31358
|
var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31339
31359
|
var _b = _a.color,
|
|
@@ -31348,24 +31368,24 @@ var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31348
31368
|
ref: ref
|
|
31349
31369
|
}, lineProps), void 0);
|
|
31350
31370
|
});
|
|
31351
|
-
var templateObject_1$
|
|
31371
|
+
var templateObject_1$n, templateObject_2$g;
|
|
31352
31372
|
|
|
31353
|
-
var img$
|
|
31373
|
+
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";
|
|
31354
31374
|
|
|
31355
|
-
var img$
|
|
31375
|
+
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";
|
|
31356
31376
|
|
|
31357
|
-
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";
|
|
31377
|
+
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";
|
|
31358
31378
|
|
|
31359
|
-
var Spacing$
|
|
31360
|
-
var base$
|
|
31379
|
+
var Spacing$d = ddsBaseTokens.spacing;
|
|
31380
|
+
var base$7 = {
|
|
31361
31381
|
lineHeight: '2.5em'
|
|
31362
31382
|
};
|
|
31363
31383
|
var listItemTokens = {
|
|
31364
|
-
base: base$
|
|
31365
|
-
bulletSpacing: Spacing$
|
|
31384
|
+
base: base$7,
|
|
31385
|
+
bulletSpacing: Spacing$d.SizesDdsSpacingLocalX025
|
|
31366
31386
|
};
|
|
31367
31387
|
|
|
31368
|
-
var Spacing$
|
|
31388
|
+
var Spacing$c = ddsBaseTokens.spacing,
|
|
31369
31389
|
FontPackages$8 = ddsBaseTokens.fontPackages;
|
|
31370
31390
|
var textDefault$3 = ddsReferenceTokens.textDefault;
|
|
31371
31391
|
var inheritBase = {
|
|
@@ -31388,13 +31408,13 @@ var bodySerif03Base = __assign({}, FontPackages$8.body_serif_03.base);
|
|
|
31388
31408
|
|
|
31389
31409
|
var bodySerif04Base = __assign({}, FontPackages$8.body_serif_04.base);
|
|
31390
31410
|
|
|
31391
|
-
var base$
|
|
31392
|
-
margin: Spacing$
|
|
31411
|
+
var base$6 = {
|
|
31412
|
+
margin: Spacing$c.SizesDdsSpacingLocalX1 + " 0",
|
|
31393
31413
|
color: textDefault$3.textColor
|
|
31394
31414
|
};
|
|
31395
31415
|
var listTokens = {
|
|
31396
|
-
base: base$
|
|
31397
|
-
spaceLeft: Spacing$
|
|
31416
|
+
base: base$6,
|
|
31417
|
+
spaceLeft: Spacing$c.SizesDdsSpacingLocalX2,
|
|
31398
31418
|
sizes: {
|
|
31399
31419
|
bodySans01: bodySans01Base,
|
|
31400
31420
|
bodySans02: bodySans02Base,
|
|
@@ -31413,12 +31433,12 @@ var ulPaddingLeft = listTokens.spaceLeft + " - (" + liTextPadding + ")";
|
|
|
31413
31433
|
var StyledList = styled.ul.withConfig({
|
|
31414
31434
|
displayName: "List__StyledList",
|
|
31415
31435
|
componentId: "sc-1f1c7eb-0"
|
|
31416
|
-
})(templateObject_4$
|
|
31436
|
+
})(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) {
|
|
31417
31437
|
var typographyType = _a.typographyType;
|
|
31418
|
-
return typographyType && Ae(templateObject_1$
|
|
31438
|
+
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]);
|
|
31419
31439
|
}, function (_a) {
|
|
31420
31440
|
var listType = _a.listType;
|
|
31421
|
-
return listType === 'unordered' ? Ae(templateObject_2$
|
|
31441
|
+
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);
|
|
31422
31442
|
});
|
|
31423
31443
|
var List = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31424
31444
|
var _b = _a.listType,
|
|
@@ -31441,12 +31461,12 @@ var List = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31441
31461
|
children: children
|
|
31442
31462
|
}), void 0);
|
|
31443
31463
|
});
|
|
31444
|
-
var templateObject_1$
|
|
31464
|
+
var templateObject_1$m, templateObject_2$f, templateObject_3$9, templateObject_4$8;
|
|
31445
31465
|
|
|
31446
31466
|
var StyledListItem = styled.li.withConfig({
|
|
31447
31467
|
displayName: "ListItem__StyledListItem",
|
|
31448
31468
|
componentId: "sc-17s9l0b-0"
|
|
31449
|
-
})(templateObject_1$
|
|
31469
|
+
})(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), listItemTokens.base);
|
|
31450
31470
|
var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31451
31471
|
var children = _a.children,
|
|
31452
31472
|
rest = __rest(_a, ["children"]);
|
|
@@ -31457,11 +31477,11 @@ var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31457
31477
|
children: children
|
|
31458
31478
|
}), void 0);
|
|
31459
31479
|
});
|
|
31460
|
-
var templateObject_1$
|
|
31480
|
+
var templateObject_1$l;
|
|
31461
31481
|
|
|
31462
|
-
var Spacing$
|
|
31482
|
+
var Spacing$b = ddsBaseTokens.spacing,
|
|
31463
31483
|
FontPackages$7 = ddsBaseTokens.fontPackages,
|
|
31464
|
-
Colors$
|
|
31484
|
+
Colors$6 = ddsBaseTokens.colors;
|
|
31465
31485
|
var textDefault$2 = ddsReferenceTokens.textDefault;
|
|
31466
31486
|
|
|
31467
31487
|
var boldBase = __assign(__assign(__assign({}, FontPackages$7.body_sans_03.base), typographyTokens.style.bold.base), {
|
|
@@ -31469,7 +31489,7 @@ var boldBase = __assign(__assign(__assign({}, FontPackages$7.body_sans_03.base),
|
|
|
31469
31489
|
});
|
|
31470
31490
|
|
|
31471
31491
|
var smallBase = __assign(__assign({}, FontPackages$7.body_sans_01.base), {
|
|
31472
|
-
color: Colors$
|
|
31492
|
+
color: Colors$6.DdsColorNeutralsGray7
|
|
31473
31493
|
});
|
|
31474
31494
|
|
|
31475
31495
|
var descriptionListTermTokens = {
|
|
@@ -31481,16 +31501,16 @@ var descriptionListTermTokens = {
|
|
|
31481
31501
|
base: boldBase
|
|
31482
31502
|
}
|
|
31483
31503
|
},
|
|
31484
|
-
unwrappedTopAndBottomSpace: Spacing$
|
|
31485
|
-
unwrappedBetweenSpace: Spacing$
|
|
31504
|
+
unwrappedTopAndBottomSpace: Spacing$b.SizesDdsSpacingLocalX1,
|
|
31505
|
+
unwrappedBetweenSpace: Spacing$b.SizesDdsSpacingLocalX2
|
|
31486
31506
|
};
|
|
31487
31507
|
|
|
31488
31508
|
var DList = styled.dl.withConfig({
|
|
31489
31509
|
displayName: "DescriptionList__DList",
|
|
31490
31510
|
componentId: "sc-1ob73hm-0"
|
|
31491
|
-
})(templateObject_2$
|
|
31511
|
+
})(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) {
|
|
31492
31512
|
var appearance = _a.appearance;
|
|
31493
|
-
return appearance && Ae(templateObject_1$
|
|
31513
|
+
return appearance && Ae(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n dt {\n ", "\n }\n "], ["\n dt {\n ", "\n }\n "])), descriptionListTermTokens.appearance[appearance].base);
|
|
31494
31514
|
}, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedBetweenSpace);
|
|
31495
31515
|
var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31496
31516
|
var _b = _a.appearance,
|
|
@@ -31507,12 +31527,12 @@ var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31507
31527
|
children: children
|
|
31508
31528
|
}), void 0);
|
|
31509
31529
|
});
|
|
31510
|
-
var templateObject_1$
|
|
31530
|
+
var templateObject_1$k, templateObject_2$e;
|
|
31511
31531
|
|
|
31512
31532
|
var DListTerm = styled.dt.withConfig({
|
|
31513
31533
|
displayName: "DescriptionListTerm__DListTerm",
|
|
31514
31534
|
componentId: "sc-10w0rzr-0"
|
|
31515
|
-
})(templateObject_1$
|
|
31535
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([""], [""])));
|
|
31516
31536
|
var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31517
31537
|
var children = _a.children,
|
|
31518
31538
|
rest = __rest(_a, ["children"]);
|
|
@@ -31525,21 +31545,21 @@ var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31525
31545
|
children: children
|
|
31526
31546
|
}), void 0);
|
|
31527
31547
|
});
|
|
31528
|
-
var templateObject_1$
|
|
31548
|
+
var templateObject_1$j;
|
|
31529
31549
|
|
|
31530
|
-
var Spacing$
|
|
31550
|
+
var Spacing$a = ddsBaseTokens.spacing,
|
|
31531
31551
|
FontPackages$6 = ddsBaseTokens.fontPackages;
|
|
31532
31552
|
var textDefault$1 = ddsReferenceTokens.textDefault;
|
|
31533
31553
|
|
|
31534
|
-
var base$
|
|
31554
|
+
var base$5 = __assign(__assign({}, FontPackages$6.body_sans_03.base), {
|
|
31535
31555
|
color: textDefault$1.textColor
|
|
31536
31556
|
});
|
|
31537
31557
|
|
|
31538
31558
|
var iconBase$1 = {
|
|
31539
|
-
marginRight: Spacing$
|
|
31559
|
+
marginRight: Spacing$a.SizesDdsSpacingLocalX025
|
|
31540
31560
|
};
|
|
31541
31561
|
var descriptionListDescTokens = {
|
|
31542
|
-
base: base$
|
|
31562
|
+
base: base$5,
|
|
31543
31563
|
icon: {
|
|
31544
31564
|
base: iconBase$1
|
|
31545
31565
|
}
|
|
@@ -31548,11 +31568,11 @@ var descriptionListDescTokens = {
|
|
|
31548
31568
|
var DListDesc = styled.dd.withConfig({
|
|
31549
31569
|
displayName: "DescriptionListDesc__DListDesc",
|
|
31550
31570
|
componentId: "sc-1djcf0s-0"
|
|
31551
|
-
})(templateObject_1$
|
|
31571
|
+
})(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);
|
|
31552
31572
|
var StyledIconWrapper$1 = styled(IconWrapper$1).withConfig({
|
|
31553
31573
|
displayName: "DescriptionListDesc__StyledIconWrapper",
|
|
31554
31574
|
componentId: "sc-1djcf0s-1"
|
|
31555
|
-
})(templateObject_2$
|
|
31575
|
+
})(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), descriptionListDescTokens.icon.base);
|
|
31556
31576
|
var DescriptionListDesc = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31557
31577
|
var children = _a.children,
|
|
31558
31578
|
Icon = _a.Icon,
|
|
@@ -31569,22 +31589,22 @@ var DescriptionListDesc = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31569
31589
|
}, void 0), " ", children]
|
|
31570
31590
|
}), void 0);
|
|
31571
31591
|
});
|
|
31572
|
-
var templateObject_1$
|
|
31592
|
+
var templateObject_1$i, templateObject_2$d;
|
|
31573
31593
|
|
|
31574
|
-
var Spacing$
|
|
31575
|
-
var base$
|
|
31576
|
-
margin: Spacing$
|
|
31594
|
+
var Spacing$9 = ddsBaseTokens.spacing;
|
|
31595
|
+
var base$4 = {
|
|
31596
|
+
margin: Spacing$9.SizesDdsSpacingLocalX2
|
|
31577
31597
|
};
|
|
31578
31598
|
var descriptionListGroupTokens = {
|
|
31579
|
-
base: base$
|
|
31599
|
+
base: base$4
|
|
31580
31600
|
};
|
|
31581
31601
|
|
|
31582
31602
|
var DListGroup = styled.div.withConfig({
|
|
31583
31603
|
displayName: "DescriptionListGroup__DListGroup",
|
|
31584
31604
|
componentId: "sc-jkdc0o-0"
|
|
31585
|
-
})(templateObject_2$
|
|
31605
|
+
})(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), descriptionListGroupTokens.base, function (_a) {
|
|
31586
31606
|
var margin = _a.margin;
|
|
31587
|
-
return margin && Ae(templateObject_1$
|
|
31607
|
+
return margin && Ae(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n margin: ", ";\n "], ["\n margin: ", ";\n "])), margin);
|
|
31588
31608
|
});
|
|
31589
31609
|
var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31590
31610
|
var children = _a.children,
|
|
@@ -31599,47 +31619,47 @@ var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31599
31619
|
children: children
|
|
31600
31620
|
}), void 0);
|
|
31601
31621
|
});
|
|
31602
|
-
var templateObject_1$
|
|
31622
|
+
var templateObject_1$h, templateObject_2$c;
|
|
31603
31623
|
|
|
31604
|
-
var Colors$
|
|
31605
|
-
Border$
|
|
31624
|
+
var Colors$5 = ddsBaseTokens.colors,
|
|
31625
|
+
Border$7 = ddsBaseTokens.border,
|
|
31606
31626
|
FontPackages$5 = ddsBaseTokens.fontPackages;
|
|
31607
31627
|
var textDefault = ddsReferenceTokens.textDefault;
|
|
31608
31628
|
|
|
31609
|
-
var base$
|
|
31610
|
-
border: Border$
|
|
31629
|
+
var base$3 = __assign({
|
|
31630
|
+
border: Border$7.BordersDdsBorderStyleLightStrokeWeight + " solid"
|
|
31611
31631
|
}, FontPackages$5.body_sans_02.base);
|
|
31612
31632
|
|
|
31613
31633
|
var navigationHoverBase = {
|
|
31614
|
-
borderColor: Border$
|
|
31615
|
-
boxShadow: "0 0 0 1px " + Border$
|
|
31634
|
+
borderColor: Border$7.BordersDdsBorderFocusInputfieldStroke,
|
|
31635
|
+
boxShadow: "0 0 0 1px " + Border$7.BordersDdsBorderFocusInputfieldStroke
|
|
31616
31636
|
};
|
|
31617
31637
|
var navigationFocusBase = {
|
|
31618
|
-
borderColor: Border$
|
|
31619
|
-
boxShadow: "0 0 0 1px " + Border$
|
|
31638
|
+
borderColor: Border$7.BordersDdsBorderFocusCardStroke,
|
|
31639
|
+
boxShadow: "0 0 0 1px " + Border$7.BordersDdsBorderFocusCardStroke
|
|
31620
31640
|
};
|
|
31621
31641
|
var filledDarkBase = {
|
|
31622
|
-
backgroundColor: Colors$
|
|
31623
|
-
borderColor: Colors$
|
|
31624
|
-
color: Colors$
|
|
31642
|
+
backgroundColor: Colors$5.DdsColorPrimaryBase,
|
|
31643
|
+
borderColor: Colors$5.DdsColorPrimaryBase,
|
|
31644
|
+
color: Colors$5.DdsColorNeutralsWhite
|
|
31625
31645
|
};
|
|
31626
31646
|
var filledLightBase = {
|
|
31627
|
-
backgroundColor: Colors$
|
|
31628
|
-
borderColor: Colors$
|
|
31647
|
+
backgroundColor: Colors$5.DdsColorPrimaryLightest,
|
|
31648
|
+
borderColor: Colors$5.DdsColorPrimaryLightest,
|
|
31629
31649
|
color: textDefault.textColor
|
|
31630
31650
|
};
|
|
31631
31651
|
var strokeLightBase = {
|
|
31632
|
-
backgroundColor: Colors$
|
|
31633
|
-
borderColor:
|
|
31652
|
+
backgroundColor: Colors$5.DdsColorNeutralsWhite,
|
|
31653
|
+
borderColor: Border$7.BordersDdsBorderStyleLightStroke,
|
|
31634
31654
|
color: textDefault.textColor
|
|
31635
31655
|
};
|
|
31636
31656
|
var strokeDarkBase = {
|
|
31637
|
-
backgroundColor: Colors$
|
|
31638
|
-
borderColor:
|
|
31657
|
+
backgroundColor: Colors$5.DdsColorNeutralsWhite,
|
|
31658
|
+
borderColor: Border$7.BordersDdsBorderStyleDarkStroke,
|
|
31639
31659
|
color: textDefault.textColor
|
|
31640
31660
|
};
|
|
31641
31661
|
var cardTokens = {
|
|
31642
|
-
base: base$
|
|
31662
|
+
base: base$3,
|
|
31643
31663
|
navigation: {
|
|
31644
31664
|
hover: {
|
|
31645
31665
|
base: navigationHoverBase
|
|
@@ -31664,15 +31684,15 @@ var cardTokens = {
|
|
|
31664
31684
|
}
|
|
31665
31685
|
};
|
|
31666
31686
|
|
|
31667
|
-
var Container$
|
|
31687
|
+
var Container$4 = styled.div.withConfig({
|
|
31668
31688
|
displayName: "Card__Container",
|
|
31669
31689
|
componentId: "sc-410ao9-0"
|
|
31670
|
-
})(templateObject_4$
|
|
31690
|
+
})(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) {
|
|
31671
31691
|
var color = _a.color;
|
|
31672
|
-
return color && Ae(templateObject_1$
|
|
31692
|
+
return color && Ae(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cardTokens.colors[color].base);
|
|
31673
31693
|
}, function (_a) {
|
|
31674
31694
|
var cardType = _a.cardType;
|
|
31675
|
-
return cardType === 'navigation' ? Ae(templateObject_2$
|
|
31695
|
+
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 "]))) : '';
|
|
31676
31696
|
});
|
|
31677
31697
|
var Card = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31678
31698
|
var children = _a.children,
|
|
@@ -31691,17 +31711,17 @@ var Card = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31691
31711
|
color: color
|
|
31692
31712
|
}, rest);
|
|
31693
31713
|
|
|
31694
|
-
return jsxRuntime.jsx(Container$
|
|
31714
|
+
return jsxRuntime.jsx(Container$4, __assign({}, containerProps, {
|
|
31695
31715
|
children: children
|
|
31696
31716
|
}), void 0);
|
|
31697
31717
|
});
|
|
31698
|
-
var templateObject_1$
|
|
31718
|
+
var templateObject_1$g, templateObject_2$b, templateObject_3$8, templateObject_4$7;
|
|
31699
31719
|
|
|
31700
31720
|
var Wrapper$3 = styled.div.withConfig({
|
|
31701
31721
|
displayName: "CardAccordion__Wrapper",
|
|
31702
31722
|
componentId: "sc-1ctxrby-0"
|
|
31703
|
-
})(templateObject_1$
|
|
31704
|
-
var nextUniqueId$
|
|
31723
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
|
|
31724
|
+
var nextUniqueId$4 = 0;
|
|
31705
31725
|
var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31706
31726
|
var _b = _a.isExpanded,
|
|
31707
31727
|
isExpanded = _b === void 0 ? false : _b,
|
|
@@ -31713,7 +31733,7 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31713
31733
|
expanded = _c[0],
|
|
31714
31734
|
setExpanded = _c[1];
|
|
31715
31735
|
|
|
31716
|
-
var uniqueId = nextUniqueId$
|
|
31736
|
+
var uniqueId = nextUniqueId$4++;
|
|
31717
31737
|
var accordionId = useState(id !== null && id !== void 0 ? id : "cardAccordion-" + uniqueId)[0];
|
|
31718
31738
|
useEffect(function () {
|
|
31719
31739
|
setExpanded(isExpanded);
|
|
@@ -31746,67 +31766,84 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31746
31766
|
children: Children$1
|
|
31747
31767
|
}), void 0);
|
|
31748
31768
|
});
|
|
31749
|
-
var templateObject_1$
|
|
31769
|
+
var templateObject_1$f;
|
|
31750
31770
|
|
|
31751
|
-
var Spacing$
|
|
31771
|
+
var Spacing$8 = ddsBaseTokens.spacing,
|
|
31752
31772
|
FontPackages$4 = ddsBaseTokens.fontPackages,
|
|
31753
|
-
Border$
|
|
31773
|
+
Border$6 = ddsBaseTokens.border,
|
|
31774
|
+
IconSizes$1 = ddsBaseTokens.iconSizes;
|
|
31754
31775
|
|
|
31755
|
-
var base$
|
|
31756
|
-
padding: Spacing$
|
|
31776
|
+
var base$2 = __assign({
|
|
31777
|
+
padding: Spacing$8.SizesDdsSpacingLocalX1 + " " + Spacing$8.SizesDdsSpacingLocalX075 + " " + Spacing$8.SizesDdsSpacingLocalX1 + " " + Spacing$8.SizesDdsSpacingLocalX15
|
|
31757
31778
|
}, FontPackages$4.heading_sans_03.base);
|
|
31758
31779
|
|
|
31759
|
-
var focusBase = {
|
|
31760
|
-
boxShadow: "0 0 0 " + Border$
|
|
31780
|
+
var focusBase$1 = {
|
|
31781
|
+
boxShadow: "0 0 0 " + Border$6.BordersDdsBorderFocusCardStrokeWeight + " " + Border$6.BordersDdsBorderFocusCardStroke
|
|
31761
31782
|
};
|
|
31762
31783
|
var hoverBase = {
|
|
31763
|
-
boxShadow: "0 0 0 " + Border$
|
|
31784
|
+
boxShadow: "0 0 0 " + Border$6.BordersDdsBorderFocusInputfieldStrokeWeight + " " + Border$6.BordersDdsBorderFocusInputfieldStroke
|
|
31785
|
+
};
|
|
31786
|
+
var chevronWrapperBase = {
|
|
31787
|
+
width: IconSizes$1.DdsIconsizeMedium,
|
|
31788
|
+
height: IconSizes$1.DdsIconsizeMedium,
|
|
31789
|
+
marginLeft: Spacing$8.SizesDdsSpacingLocalX05
|
|
31764
31790
|
};
|
|
31765
31791
|
var cardAccordionHeaderTokens = {
|
|
31766
|
-
base: base$
|
|
31792
|
+
base: base$2,
|
|
31767
31793
|
focus: {
|
|
31768
|
-
base: focusBase
|
|
31794
|
+
base: focusBase$1
|
|
31769
31795
|
},
|
|
31770
31796
|
hover: {
|
|
31771
31797
|
base: hoverBase
|
|
31798
|
+
},
|
|
31799
|
+
chevronWrapper: {
|
|
31800
|
+
base: chevronWrapperBase
|
|
31801
|
+
},
|
|
31802
|
+
chevron: {
|
|
31803
|
+
width: IconSizes$1.DdsIconsizeMedium,
|
|
31804
|
+
height: Spacing$8.SizesDdsSpacingLocalX05
|
|
31772
31805
|
}
|
|
31773
31806
|
};
|
|
31774
31807
|
|
|
31775
31808
|
var SvgChevron = styled.svg.withConfig({
|
|
31776
31809
|
displayName: "AnimatedChevronUpDownstyles__SvgChevron",
|
|
31777
31810
|
componentId: "sc-yey4nu-0"
|
|
31778
|
-
})(templateObject_1$
|
|
31811
|
+
})(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"])));
|
|
31779
31812
|
var SvgChevronlGroup = styled.g.withConfig({
|
|
31780
31813
|
displayName: "AnimatedChevronUpDownstyles__SvgChevronlGroup",
|
|
31781
31814
|
componentId: "sc-yey4nu-1"
|
|
31782
|
-
})(templateObject_2$
|
|
31815
|
+
})(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) {
|
|
31783
31816
|
var isUp = _a.isUp;
|
|
31784
31817
|
return isUp ? 'translateY(3px)' : 'translateY(0)';
|
|
31785
31818
|
});
|
|
31786
31819
|
var SvgChevronlLeft = styled.path.withConfig({
|
|
31787
31820
|
displayName: "AnimatedChevronUpDownstyles__SvgChevronlLeft",
|
|
31788
31821
|
componentId: "sc-yey4nu-2"
|
|
31789
|
-
})(templateObject_3$
|
|
31822
|
+
})(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) {
|
|
31790
31823
|
var isUp = _a.isUp;
|
|
31791
31824
|
return isUp ? 'rotate(-90deg) translateY(0)' : 'rotate(0) translateY(0)';
|
|
31792
31825
|
});
|
|
31793
31826
|
var SvgChevronlRight = styled.path.withConfig({
|
|
31794
31827
|
displayName: "AnimatedChevronUpDownstyles__SvgChevronlRight",
|
|
31795
31828
|
componentId: "sc-yey4nu-3"
|
|
31796
|
-
})(templateObject_4$
|
|
31829
|
+
})(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) {
|
|
31797
31830
|
var isUp = _a.isUp;
|
|
31798
31831
|
return isUp ? 'rotate(90deg) translateY(0)' : 'rotate(0) translateY(0)';
|
|
31799
31832
|
});
|
|
31800
|
-
var templateObject_1$
|
|
31833
|
+
var templateObject_1$e, templateObject_2$a, templateObject_3$7, templateObject_4$6;
|
|
31801
31834
|
|
|
31802
31835
|
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';
|
|
31803
31836
|
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';
|
|
31804
31837
|
var AnimatedChevronUpDown = function AnimatedChevronUpDown(_a) {
|
|
31805
|
-
var isUp = _a.isUp
|
|
31838
|
+
var isUp = _a.isUp,
|
|
31839
|
+
_b = _a.height,
|
|
31840
|
+
height = _b === void 0 ? '5px' : _b,
|
|
31841
|
+
_c = _a.width,
|
|
31842
|
+
width = _c === void 0 ? '8px' : _c;
|
|
31806
31843
|
return jsxRuntime.jsx(SvgChevron, __assign({
|
|
31807
31844
|
viewBox: "0 0 8 5",
|
|
31808
|
-
width:
|
|
31809
|
-
height:
|
|
31845
|
+
width: width,
|
|
31846
|
+
height: height,
|
|
31810
31847
|
fill: "currentColor",
|
|
31811
31848
|
isUp: isUp
|
|
31812
31849
|
}, {
|
|
@@ -31827,15 +31864,19 @@ var AnimatedChevronUpDown = function AnimatedChevronUpDown(_a) {
|
|
|
31827
31864
|
var ContentWrapper = styled.div.withConfig({
|
|
31828
31865
|
displayName: "CardAccordionHeader__ContentWrapper",
|
|
31829
31866
|
componentId: "sc-1qs6bkj-0"
|
|
31830
|
-
})(templateObject_1$
|
|
31831
|
-
var HeaderContainer = styled.div.withConfig({
|
|
31867
|
+
})(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n text-align: left;\n"], ["\n text-align: left;\n"])));
|
|
31868
|
+
var HeaderContainer$1 = styled.div.withConfig({
|
|
31832
31869
|
displayName: "CardAccordionHeader__HeaderContainer",
|
|
31833
31870
|
componentId: "sc-1qs6bkj-1"
|
|
31834
|
-
})(templateObject_2$
|
|
31835
|
-
var HeaderWrapper = styled.
|
|
31871
|
+
})(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);
|
|
31872
|
+
var HeaderWrapper = styled.button.withConfig({
|
|
31836
31873
|
displayName: "CardAccordionHeader__HeaderWrapper",
|
|
31837
31874
|
componentId: "sc-1qs6bkj-2"
|
|
31838
|
-
})(templateObject_3$
|
|
31875
|
+
})(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);
|
|
31876
|
+
var ChevronWrapper = styled.span.withConfig({
|
|
31877
|
+
displayName: "CardAccordionHeader__ChevronWrapper",
|
|
31878
|
+
componentId: "sc-1qs6bkj-3"
|
|
31879
|
+
})(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);
|
|
31839
31880
|
var CardAccordionHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
31840
31881
|
var children = _a.children,
|
|
31841
31882
|
_b = _a.isExpanded,
|
|
@@ -31850,68 +31891,56 @@ var CardAccordionHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31850
31891
|
}
|
|
31851
31892
|
};
|
|
31852
31893
|
|
|
31853
|
-
var
|
|
31854
|
-
|
|
31855
|
-
|
|
31856
|
-
if (key === 'Enter' || key === ' ') {
|
|
31857
|
-
if (toggleExpanded) {
|
|
31858
|
-
toggleExpanded();
|
|
31859
|
-
}
|
|
31860
|
-
|
|
31861
|
-
event.preventDefault();
|
|
31862
|
-
}
|
|
31863
|
-
};
|
|
31864
|
-
|
|
31865
|
-
var headerProps = __assign({
|
|
31866
|
-
tabIndex: 0,
|
|
31894
|
+
var headerWrapperProps = __assign({
|
|
31895
|
+
'aria-expanded': isExpanded,
|
|
31896
|
+
'aria-controls': bodyId,
|
|
31867
31897
|
ref: ref,
|
|
31868
|
-
|
|
31869
|
-
onClick: handleClick,
|
|
31870
|
-
onKeyDown: handleKeyDown
|
|
31898
|
+
onClick: handleClick
|
|
31871
31899
|
}, rest);
|
|
31872
31900
|
|
|
31873
|
-
var headerContainerProps = {
|
|
31874
|
-
tabIndex: -1
|
|
31875
|
-
};
|
|
31876
31901
|
var chevronProps = {
|
|
31877
|
-
isUp: isExpanded
|
|
31902
|
+
isUp: isExpanded,
|
|
31903
|
+
width: cardAccordionHeaderTokens.chevron.width,
|
|
31904
|
+
height: cardAccordionHeaderTokens.chevron.height
|
|
31878
31905
|
};
|
|
31879
|
-
return jsxRuntime.jsx(HeaderWrapper, __assign({
|
|
31880
|
-
|
|
31881
|
-
"aria-expanded": isExpanded
|
|
31882
|
-
}, headerProps, {
|
|
31883
|
-
children: jsxRuntime.jsxs(HeaderContainer, __assign({}, headerContainerProps, {
|
|
31906
|
+
return jsxRuntime.jsx(HeaderWrapper, __assign({}, headerWrapperProps, {
|
|
31907
|
+
children: jsxRuntime.jsxs(HeaderContainer$1, {
|
|
31884
31908
|
children: [jsxRuntime.jsxs(ContentWrapper, {
|
|
31885
31909
|
children: [" ", children, " "]
|
|
31886
|
-
}, void 0), jsxRuntime.jsx(
|
|
31887
|
-
|
|
31910
|
+
}, void 0), jsxRuntime.jsx(ChevronWrapper, {
|
|
31911
|
+
children: jsxRuntime.jsx(AnimatedChevronUpDown, __assign({}, chevronProps), void 0)
|
|
31912
|
+
}, void 0)]
|
|
31913
|
+
}, void 0)
|
|
31888
31914
|
}), void 0);
|
|
31889
31915
|
});
|
|
31890
|
-
var templateObject_1$
|
|
31916
|
+
var templateObject_1$d, templateObject_2$9, templateObject_3$6, templateObject_4$5;
|
|
31891
31917
|
|
|
31892
|
-
var Spacing$
|
|
31918
|
+
var Spacing$7 = ddsBaseTokens.spacing,
|
|
31893
31919
|
FontPackages$3 = ddsBaseTokens.fontPackages;
|
|
31894
31920
|
|
|
31895
|
-
var base = __assign({
|
|
31896
|
-
padding: "
|
|
31921
|
+
var base$1 = __assign({
|
|
31922
|
+
padding: Spacing$7.SizesDdsSpacingLocalX1 + " " + (Spacing$7.SizesDdsSpacingLocalX2NumberPx + Spacing$7.SizesDdsSpacingLocalX075NumberPx) + "px " + Spacing$7.SizesDdsSpacingLocalX2 + " " + Spacing$7.SizesDdsSpacingLocalX15
|
|
31897
31923
|
}, FontPackages$3.body_sans_03.base);
|
|
31898
31924
|
|
|
31899
31925
|
var cardAccordionBodyTokens = {
|
|
31900
|
-
base: base
|
|
31926
|
+
base: base$1
|
|
31901
31927
|
};
|
|
31902
31928
|
|
|
31903
|
-
var expandingAnimation = Ae(templateObject_1$
|
|
31929
|
+
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"])));
|
|
31904
31930
|
var Body = styled.div.withConfig({
|
|
31905
31931
|
displayName: "CardAccordionBody__Body",
|
|
31906
31932
|
componentId: "sc-igsnpx-0"
|
|
31907
|
-
})(
|
|
31933
|
+
})(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n ", "\n"])), expandingAnimation, cardAccordionBodyTokens.base, function (_a) {
|
|
31934
|
+
var paddingTop = _a.paddingTop;
|
|
31935
|
+
return paddingTop && Ae(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n padding-top: ", ";\n "], ["\n padding-top: ", ";\n "])), paddingTop);
|
|
31936
|
+
}, function (_a) {
|
|
31908
31937
|
var isExpanded = _a.isExpanded;
|
|
31909
|
-
return !isExpanded && Ae(
|
|
31938
|
+
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 "])));
|
|
31910
31939
|
});
|
|
31911
|
-
var
|
|
31912
|
-
displayName: "
|
|
31940
|
+
var BodyContainer = styled.div.withConfig({
|
|
31941
|
+
displayName: "CardAccordionBody__BodyContainer",
|
|
31913
31942
|
componentId: "sc-igsnpx-1"
|
|
31914
|
-
})(
|
|
31943
|
+
})(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) {
|
|
31915
31944
|
var isExpanded = _a.isExpanded;
|
|
31916
31945
|
return isExpanded ? 'visible' : 'hidden';
|
|
31917
31946
|
}, function (_a) {
|
|
@@ -31944,7 +31973,7 @@ var CardAccordionBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31944
31973
|
role: 'region'
|
|
31945
31974
|
}, rest);
|
|
31946
31975
|
|
|
31947
|
-
var
|
|
31976
|
+
var bodyContainerProps = {
|
|
31948
31977
|
ref: bodyRef,
|
|
31949
31978
|
maxHeight: maxHeight,
|
|
31950
31979
|
isExpanded: isExpanded
|
|
@@ -31953,12 +31982,12 @@ var CardAccordionBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31953
31982
|
"aria-labelledby": headerId,
|
|
31954
31983
|
"aria-hidden": !isExpanded
|
|
31955
31984
|
}, bodyProps, {
|
|
31956
|
-
children: jsxRuntime.jsxs(
|
|
31985
|
+
children: jsxRuntime.jsxs(BodyContainer, __assign({}, bodyContainerProps, {
|
|
31957
31986
|
children: [" ", children, " "]
|
|
31958
31987
|
}), void 0)
|
|
31959
31988
|
}), void 0);
|
|
31960
31989
|
});
|
|
31961
|
-
var templateObject_1$
|
|
31990
|
+
var templateObject_1$c, templateObject_2$8, templateObject_3$5, templateObject_4$4, templateObject_5$2;
|
|
31962
31991
|
|
|
31963
31992
|
var MoreVertOutlined = createCommonjsModule(function (module, exports) {
|
|
31964
31993
|
|
|
@@ -34380,47 +34409,100 @@ function useRoveFocus(size, reset) {
|
|
|
34380
34409
|
return [currentFocus, setCurrentFocus];
|
|
34381
34410
|
}
|
|
34382
34411
|
|
|
34383
|
-
|
|
34384
|
-
|
|
34385
|
-
|
|
34386
|
-
|
|
34412
|
+
function useFocusTrap(active) {
|
|
34413
|
+
var elementRef = useRef(null);
|
|
34414
|
+
useEffect(function () {
|
|
34415
|
+
function handleFocus(e) {
|
|
34416
|
+
if (e.key !== 'Tab' || !active || !elementRef.current) return;
|
|
34417
|
+
var focusableElements = elementRef.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');
|
|
34418
|
+
var firstElement = focusableElements[0];
|
|
34419
|
+
var lastElement = focusableElements[focusableElements.length - 1];
|
|
34420
|
+
|
|
34421
|
+
if (!e.shiftKey && document.activeElement === lastElement) {
|
|
34422
|
+
firstElement.focus();
|
|
34423
|
+
e.preventDefault();
|
|
34424
|
+
}
|
|
34425
|
+
|
|
34426
|
+
if (e.shiftKey && document.activeElement === firstElement) {
|
|
34427
|
+
lastElement.focus();
|
|
34428
|
+
e.preventDefault();
|
|
34429
|
+
}
|
|
34430
|
+
}
|
|
34431
|
+
|
|
34432
|
+
var element = elementRef.current;
|
|
34433
|
+
|
|
34434
|
+
if (element && active) {
|
|
34435
|
+
element.focus();
|
|
34436
|
+
element.addEventListener('keydown', handleFocus);
|
|
34437
|
+
}
|
|
34438
|
+
|
|
34439
|
+
return function () {
|
|
34440
|
+
element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', handleFocus);
|
|
34441
|
+
};
|
|
34442
|
+
}, [active]);
|
|
34443
|
+
return elementRef;
|
|
34444
|
+
}
|
|
34445
|
+
|
|
34446
|
+
var useMountTransition = function useMountTransition(isMounted, unmountDelay) {
|
|
34447
|
+
var _a = useState(false),
|
|
34448
|
+
hasTransitionedIn = _a[0],
|
|
34449
|
+
setHasTransitionedIn = _a[1];
|
|
34450
|
+
|
|
34451
|
+
useEffect(function () {
|
|
34452
|
+
var timeoutId;
|
|
34453
|
+
if (isMounted && !hasTransitionedIn) setHasTransitionedIn(true);else if (!isMounted && hasTransitionedIn) {
|
|
34454
|
+
timeoutId = setTimeout(function () {
|
|
34455
|
+
return setHasTransitionedIn(false);
|
|
34456
|
+
}, unmountDelay);
|
|
34457
|
+
}
|
|
34458
|
+
return function () {
|
|
34459
|
+
clearTimeout(timeoutId);
|
|
34460
|
+
};
|
|
34461
|
+
}, [unmountDelay, isMounted, hasTransitionedIn]);
|
|
34462
|
+
return hasTransitionedIn;
|
|
34463
|
+
};
|
|
34464
|
+
|
|
34465
|
+
var Border$5 = ddsBaseTokens.border,
|
|
34466
|
+
BorderRadius$3 = ddsBaseTokens.borderRadius,
|
|
34467
|
+
Colors$4 = ddsBaseTokens.colors,
|
|
34468
|
+
Spacing$6 = ddsBaseTokens.spacing,
|
|
34387
34469
|
FontPackages$2 = ddsBaseTokens.fontPackages;
|
|
34388
|
-
var borderColor = Border$
|
|
34470
|
+
var borderColor = Border$5.BordersDdsBorderStyleLightStroke;
|
|
34389
34471
|
|
|
34390
34472
|
var linkBase$1 = __assign({
|
|
34391
|
-
color: Colors$
|
|
34473
|
+
color: Colors$4.DdsColorNeutralsGray9,
|
|
34392
34474
|
textDecoration: 'none',
|
|
34393
|
-
backgroundColor: Colors$
|
|
34475
|
+
backgroundColor: Colors$4.DdsColorNeutralsWhite
|
|
34394
34476
|
}, FontPackages$2.body_sans_01.base);
|
|
34395
34477
|
|
|
34396
34478
|
var linkHoverBase = {
|
|
34397
|
-
color: Colors$
|
|
34398
|
-
backgroundColor: Colors$
|
|
34479
|
+
color: Colors$4.DdsColorInteractiveDark,
|
|
34480
|
+
backgroundColor: Colors$4.DdsColorPrimaryLightest
|
|
34399
34481
|
};
|
|
34400
34482
|
var linkActiveBase = {
|
|
34401
|
-
color: Colors$
|
|
34483
|
+
color: Colors$4.DdsColorInteractiveBase
|
|
34402
34484
|
};
|
|
34403
34485
|
var wrapperBase$3 = {
|
|
34404
|
-
backgroundColor: Colors$
|
|
34486
|
+
backgroundColor: Colors$4.DdsColorNeutralsWhite
|
|
34405
34487
|
};
|
|
34406
34488
|
var applicationNameWrapperBase = {
|
|
34407
|
-
padding: Spacing$
|
|
34489
|
+
padding: Spacing$6.SizesDdsSpacingLocalX1 + " " + Spacing$6.SizesDdsSpacingLocalX15
|
|
34408
34490
|
};
|
|
34409
34491
|
var lovisaWrapperBase = {
|
|
34410
|
-
padding: Spacing$
|
|
34411
|
-
borderRight: Border$
|
|
34492
|
+
padding: Spacing$6.SizesDdsSpacingLocalX1 + " " + Spacing$6.SizesDdsSpacingLocalX15,
|
|
34493
|
+
borderRight: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid "
|
|
34412
34494
|
};
|
|
34413
34495
|
var bannerBase = {
|
|
34414
|
-
borderBottom: Border$
|
|
34415
|
-
paddingRight: Spacing$
|
|
34496
|
+
borderBottom: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid ",
|
|
34497
|
+
paddingRight: Spacing$6.SizesDdsSpacingLocalX1
|
|
34416
34498
|
};
|
|
34417
34499
|
var bannerLeftBase = {};
|
|
34418
34500
|
var navigationBase = {
|
|
34419
|
-
borderBottom: Border$
|
|
34501
|
+
borderBottom: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid "
|
|
34420
34502
|
};
|
|
34421
34503
|
|
|
34422
34504
|
var navigationLinkBase = __assign({
|
|
34423
|
-
padding: Spacing$
|
|
34505
|
+
padding: Spacing$6.SizesDdsSpacingLocalX075 + " " + Spacing$6.SizesDdsSpacingLocalX15
|
|
34424
34506
|
}, linkBase$1);
|
|
34425
34507
|
|
|
34426
34508
|
var navigationLinkHoverBase = __assign({}, linkHoverBase);
|
|
@@ -34428,21 +34510,21 @@ var navigationLinkHoverBase = __assign({}, linkHoverBase);
|
|
|
34428
34510
|
var navigationLinkActiveBase = __assign({}, linkActiveBase);
|
|
34429
34511
|
|
|
34430
34512
|
var navigationLinkFocusBase = {
|
|
34431
|
-
color: Colors$
|
|
34432
|
-
backgroundColor: Border$
|
|
34513
|
+
color: Colors$4.DdsColorNeutralsWhite,
|
|
34514
|
+
backgroundColor: Border$5.BordersDdsBorderFocusBaseStroke
|
|
34433
34515
|
};
|
|
34434
34516
|
var navigationLinkCurrentBase = {
|
|
34435
|
-
color: Colors$
|
|
34436
|
-
backgroundColor: Colors$
|
|
34517
|
+
color: Colors$4.DdsColorInteractiveDarker,
|
|
34518
|
+
backgroundColor: Colors$4.DdsColorPrimaryLightest
|
|
34437
34519
|
};
|
|
34438
34520
|
var contextMenuBase = {
|
|
34439
|
-
border: Border$
|
|
34440
|
-
backgroundColor: Colors$
|
|
34441
|
-
borderRadius: BorderRadius$
|
|
34521
|
+
border: Border$5.BordersDdsBorderStyleLightStrokeWeight + " " + borderColor + " solid ",
|
|
34522
|
+
backgroundColor: Colors$4.DdsColorNeutralsWhite,
|
|
34523
|
+
borderRadius: BorderRadius$3.RadiiDdsBorderRadius1Radius
|
|
34442
34524
|
};
|
|
34443
34525
|
|
|
34444
34526
|
var contextMenuLinkBase = __assign({
|
|
34445
|
-
padding: Spacing$
|
|
34527
|
+
padding: Spacing$6.SizesDdsSpacingLocalX075 + " " + Spacing$6.SizesDdsSpacingLocalX15
|
|
34446
34528
|
}, linkBase$1);
|
|
34447
34529
|
|
|
34448
34530
|
var contextMenuLinkHoverBase = __assign({}, linkHoverBase);
|
|
@@ -34450,15 +34532,19 @@ var contextMenuLinkHoverBase = __assign({}, linkHoverBase);
|
|
|
34450
34532
|
var contextMenuLinkActiveBase = __assign({}, linkActiveBase);
|
|
34451
34533
|
|
|
34452
34534
|
var contextMenuLinkFocusBase = {
|
|
34453
|
-
color: Colors$
|
|
34454
|
-
backgroundColor: Border$
|
|
34535
|
+
color: Colors$4.DdsColorNeutralsWhite,
|
|
34536
|
+
backgroundColor: Border$5.BordersDdsBorderFocusBaseStroke
|
|
34455
34537
|
};
|
|
34456
34538
|
var iconBase = {
|
|
34457
|
-
marginRight: Spacing$
|
|
34539
|
+
marginRight: Spacing$6.SizesDdsSpacingLocalX025
|
|
34458
34540
|
};
|
|
34459
34541
|
var contextMenuDividerBase = {
|
|
34460
|
-
marginRight: Spacing$
|
|
34461
|
-
marginLeft: Spacing$
|
|
34542
|
+
marginRight: Spacing$6.SizesDdsSpacingLocalX15,
|
|
34543
|
+
marginLeft: Spacing$6.SizesDdsSpacingLocalX15
|
|
34544
|
+
};
|
|
34545
|
+
var contextGroupBase = {
|
|
34546
|
+
right: Spacing$6.SizesDdsSpacingLocalX075,
|
|
34547
|
+
top: Spacing$6.SizesDdsSpacingLocalX025
|
|
34462
34548
|
};
|
|
34463
34549
|
var internalHeaderTokens = {
|
|
34464
34550
|
wrapper: {
|
|
@@ -34471,7 +34557,8 @@ var internalHeaderTokens = {
|
|
|
34471
34557
|
base: lovisaWrapperBase
|
|
34472
34558
|
},
|
|
34473
34559
|
banner: {
|
|
34474
|
-
base: bannerBase
|
|
34560
|
+
base: bannerBase,
|
|
34561
|
+
contextMenuSpacing: Spacing$6.SizesDdsSpacingLayoutX4
|
|
34475
34562
|
},
|
|
34476
34563
|
bannerLeft: {
|
|
34477
34564
|
base: bannerLeftBase
|
|
@@ -34496,7 +34583,7 @@ var internalHeaderTokens = {
|
|
|
34496
34583
|
},
|
|
34497
34584
|
contextMenu: {
|
|
34498
34585
|
base: contextMenuBase,
|
|
34499
|
-
spaceFromButtonTop: Spacing$
|
|
34586
|
+
spaceFromButtonTop: Spacing$6.SizesDdsSpacingLocalX025
|
|
34500
34587
|
},
|
|
34501
34588
|
contextMenuLink: {
|
|
34502
34589
|
base: contextMenuLinkBase,
|
|
@@ -34515,44 +34602,50 @@ var internalHeaderTokens = {
|
|
|
34515
34602
|
},
|
|
34516
34603
|
icon: {
|
|
34517
34604
|
base: iconBase
|
|
34605
|
+
},
|
|
34606
|
+
contextGroup: {
|
|
34607
|
+
base: contextGroupBase
|
|
34518
34608
|
}
|
|
34519
34609
|
};
|
|
34520
34610
|
|
|
34521
34611
|
var Wrapper$2 = styled.div.withConfig({
|
|
34522
34612
|
displayName: "InternalHeaderstyles__Wrapper",
|
|
34523
34613
|
componentId: "sc-91bnca-0"
|
|
34524
|
-
})(templateObject_1$
|
|
34614
|
+
})(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);
|
|
34525
34615
|
var BannerWrapper = styled.div.withConfig({
|
|
34526
34616
|
displayName: "InternalHeaderstyles__BannerWrapper",
|
|
34527
34617
|
componentId: "sc-91bnca-1"
|
|
34528
|
-
})(
|
|
34618
|
+
})(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) {
|
|
34619
|
+
var hasContextMenu = _a.hasContextMenu;
|
|
34620
|
+
return hasContextMenu && Ae(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n padding-right: ", ";\n "], ["\n padding-right: ", ";\n "])), internalHeaderTokens.banner.contextMenuSpacing);
|
|
34621
|
+
});
|
|
34529
34622
|
var BannerLeftWrapper = styled.div.withConfig({
|
|
34530
34623
|
displayName: "InternalHeaderstyles__BannerLeftWrapper",
|
|
34531
34624
|
componentId: "sc-91bnca-2"
|
|
34532
|
-
})(
|
|
34625
|
+
})(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n display: flex;\n ", "\n"], ["\n display: flex;\n ", "\n"])), internalHeaderTokens.bannerLeft.base);
|
|
34533
34626
|
var ApplicationNameWrapper = styled.div.withConfig({
|
|
34534
34627
|
displayName: "InternalHeaderstyles__ApplicationNameWrapper",
|
|
34535
34628
|
componentId: "sc-91bnca-3"
|
|
34536
|
-
})(
|
|
34629
|
+
})(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);
|
|
34537
34630
|
var LovisaWrapper = styled.div.withConfig({
|
|
34538
34631
|
displayName: "InternalHeaderstyles__LovisaWrapper",
|
|
34539
34632
|
componentId: "sc-91bnca-4"
|
|
34540
|
-
})(
|
|
34633
|
+
})(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.lovisaWrapper.base);
|
|
34541
34634
|
var Navigation = styled.nav.withConfig({
|
|
34542
34635
|
displayName: "InternalHeaderstyles__Navigation",
|
|
34543
34636
|
componentId: "sc-91bnca-5"
|
|
34544
|
-
})(
|
|
34637
|
+
})(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.navigation.base);
|
|
34545
34638
|
var NavigationList = styled.ul.withConfig({
|
|
34546
34639
|
displayName: "InternalHeaderstyles__NavigationList",
|
|
34547
34640
|
componentId: "sc-91bnca-6"
|
|
34548
|
-
})(
|
|
34641
|
+
})(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) {
|
|
34549
34642
|
var smallScreen = _a.smallScreen;
|
|
34550
|
-
return smallScreen && Ae(
|
|
34643
|
+
return smallScreen && Ae(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n flex-direction: column;\n "], ["\n flex-direction: column;\n "])));
|
|
34551
34644
|
});
|
|
34552
34645
|
var ContextMenuWrapper = styled.div.withConfig({
|
|
34553
34646
|
displayName: "InternalHeaderstyles__ContextMenuWrapper",
|
|
34554
34647
|
componentId: "sc-91bnca-7"
|
|
34555
|
-
})(
|
|
34648
|
+
})(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) {
|
|
34556
34649
|
var closed = _a.closed;
|
|
34557
34650
|
return closed ? 'hidden' : 'visible';
|
|
34558
34651
|
}, function (_a) {
|
|
@@ -34562,19 +34655,23 @@ var ContextMenuWrapper = styled.div.withConfig({
|
|
|
34562
34655
|
var ContextMenuList = styled.ul.withConfig({
|
|
34563
34656
|
displayName: "InternalHeaderstyles__ContextMenuList",
|
|
34564
34657
|
componentId: "sc-91bnca-8"
|
|
34565
|
-
})(
|
|
34658
|
+
})(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"])));
|
|
34566
34659
|
var StyledDivider = styled(Divider).withConfig({
|
|
34567
34660
|
displayName: "InternalHeaderstyles__StyledDivider",
|
|
34568
34661
|
componentId: "sc-91bnca-9"
|
|
34569
|
-
})(
|
|
34570
|
-
var
|
|
34662
|
+
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.contextMenuDivider.base);
|
|
34663
|
+
var ContextMenuGroup = styled.div.withConfig({
|
|
34664
|
+
displayName: "InternalHeaderstyles__ContextMenuGroup",
|
|
34665
|
+
componentId: "sc-91bnca-10"
|
|
34666
|
+
})(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n position: absolute;\n ", "\n"], ["\n position: absolute;\n ", "\n"])), internalHeaderTokens.contextGroup.base);
|
|
34667
|
+
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;
|
|
34571
34668
|
|
|
34572
34669
|
var Link$2 = styled.a.withConfig({
|
|
34573
34670
|
displayName: "NavigationItem__Link",
|
|
34574
34671
|
componentId: "sc-1fua9kw-0"
|
|
34575
|
-
})(templateObject_2$
|
|
34672
|
+
})(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) {
|
|
34576
34673
|
var isCurrent = _a.isCurrent;
|
|
34577
|
-
return isCurrent && Ae(templateObject_1$
|
|
34674
|
+
return isCurrent && Ae(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), internalHeaderTokens.navigationLink.current.base);
|
|
34578
34675
|
});
|
|
34579
34676
|
var NavigationItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
34580
34677
|
var title = _a.title,
|
|
@@ -34592,20 +34689,20 @@ var NavigationItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
34592
34689
|
children: title
|
|
34593
34690
|
}), void 0);
|
|
34594
34691
|
});
|
|
34595
|
-
var templateObject_1$
|
|
34692
|
+
var templateObject_1$a, templateObject_2$6;
|
|
34596
34693
|
|
|
34597
34694
|
var Element$1 = styled.span.withConfig({
|
|
34598
34695
|
displayName: "ContextMenuItem__Element",
|
|
34599
34696
|
componentId: "sc-1moh65z-0"
|
|
34600
|
-
})(templateObject_1$
|
|
34697
|
+
})(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);
|
|
34601
34698
|
var Link$1 = styled.a.withConfig({
|
|
34602
34699
|
displayName: "ContextMenuItem__Link",
|
|
34603
34700
|
componentId: "sc-1moh65z-1"
|
|
34604
|
-
})(templateObject_2$
|
|
34701
|
+
})(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);
|
|
34605
34702
|
var StyledIconWrapper = styled(IconWrapper$1).withConfig({
|
|
34606
34703
|
displayName: "ContextMenuItem__StyledIconWrapper",
|
|
34607
34704
|
componentId: "sc-1moh65z-2"
|
|
34608
|
-
})(templateObject_3$
|
|
34705
|
+
})(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), internalHeaderTokens.icon.base);
|
|
34609
34706
|
var ContextMenuItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
34610
34707
|
var title = _a.title,
|
|
34611
34708
|
href = _a.href,
|
|
@@ -34668,12 +34765,12 @@ var ContextMenuItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
34668
34765
|
children: [icon, title]
|
|
34669
34766
|
}), void 0);
|
|
34670
34767
|
});
|
|
34671
|
-
var templateObject_1$
|
|
34768
|
+
var templateObject_1$9, templateObject_2$5, templateObject_3$3;
|
|
34672
34769
|
|
|
34673
34770
|
var Li = styled.li.withConfig({
|
|
34674
34771
|
displayName: "InternalHeaderListItem__Li",
|
|
34675
34772
|
componentId: "sc-g1dd6e-0"
|
|
34676
|
-
})(templateObject_1$
|
|
34773
|
+
})(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n box-sizing: border-box;\n"], ["\n box-sizing: border-box;\n"])));
|
|
34677
34774
|
var InternalHeaderListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
34678
34775
|
var children = _a.children,
|
|
34679
34776
|
rest = __rest(_a, ["children"]);
|
|
@@ -34686,7 +34783,7 @@ var InternalHeaderListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
34686
34783
|
children: children
|
|
34687
34784
|
}), void 0);
|
|
34688
34785
|
});
|
|
34689
|
-
var templateObject_1$
|
|
34786
|
+
var templateObject_1$8;
|
|
34690
34787
|
|
|
34691
34788
|
var InternalHeader = function InternalHeader(_a) {
|
|
34692
34789
|
var applicationName = _a.applicationName,
|
|
@@ -34798,14 +34895,15 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34798
34895
|
'aria-hidden': contextMenuIsClosed,
|
|
34799
34896
|
role: 'menu'
|
|
34800
34897
|
};
|
|
34801
|
-
var
|
|
34898
|
+
var hasContextMenuElementsOrUserProps = hasInteractiveContextMenuElements || !!userProps;
|
|
34899
|
+
var contextMenu = hasContextMenuElementsOrUserProps && !smallScreen ? jsxRuntime.jsxs(ContextMenuWrapper, __assign({}, contextMenuWrapperProps, {
|
|
34802
34900
|
children: [userContextMenuItemNonInteractive, jsxRuntime.jsx(ContextMenuList, {
|
|
34803
34901
|
children: contextMenuContentArray
|
|
34804
34902
|
}, void 0)]
|
|
34805
34903
|
}), void 0) : null;
|
|
34806
34904
|
|
|
34807
34905
|
var contextMenuSmallScreen = function contextMenuSmallScreen() {
|
|
34808
|
-
if (
|
|
34906
|
+
if (hasContextMenuElementsOrUserProps && smallScreen) {
|
|
34809
34907
|
if (hasInteractiveContextMenuElements) {
|
|
34810
34908
|
var userPropsInteractivePos = hasInteractiveUser ? 0 : -1;
|
|
34811
34909
|
var navItemsFirstPos = navigationElements ? userPropsInteractivePos + 1 : -1;
|
|
@@ -34837,9 +34935,12 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34837
34935
|
};
|
|
34838
34936
|
|
|
34839
34937
|
var isSmallScreenAndHasNavElements = smallScreen && navigationElements ? true : false;
|
|
34938
|
+
var hasContextMenu = hasContextMenuElementsOrUserProps || hasNavigationElements && smallScreen;
|
|
34840
34939
|
return jsxRuntime.jsxs(Wrapper$2, __assign({}, rest, {
|
|
34841
|
-
children: [jsxRuntime.
|
|
34842
|
-
|
|
34940
|
+
children: [jsxRuntime.jsx(BannerWrapper, __assign({
|
|
34941
|
+
hasContextMenu: hasContextMenu
|
|
34942
|
+
}, {
|
|
34943
|
+
children: jsxRuntime.jsxs(BannerLeftWrapper, {
|
|
34843
34944
|
children: [jsxRuntime.jsx(LovisaWrapper, {
|
|
34844
34945
|
children: jsxRuntime.jsx(Typography, __assign({
|
|
34845
34946
|
typographyType: "bodySans02",
|
|
@@ -34856,7 +34957,9 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34856
34957
|
children: applicationName
|
|
34857
34958
|
}), void 0)
|
|
34858
34959
|
}, void 0)]
|
|
34859
|
-
}, void 0)
|
|
34960
|
+
}, void 0)
|
|
34961
|
+
}), void 0), !smallScreen && navigation, hasContextMenuElementsOrUserProps && jsxRuntime.jsxs(ContextMenuGroup, {
|
|
34962
|
+
children: [jsxRuntime.jsx(Button, {
|
|
34860
34963
|
ref: buttonRef,
|
|
34861
34964
|
Icon: isSmallScreenAndHasNavElements ? MenuOutlinedIcon : MoreVertOutlinedIcon,
|
|
34862
34965
|
appearance: "borderless",
|
|
@@ -34866,10 +34969,34 @@ var InternalHeader = function InternalHeader(_a) {
|
|
|
34866
34969
|
"aria-expanded": !contextMenuIsClosed ? true : undefined,
|
|
34867
34970
|
"aria-label": "\xE5pne meny"
|
|
34868
34971
|
}, void 0), smallScreen ? contextMenuSmallScreen() : contextMenu]
|
|
34869
|
-
}, void 0)
|
|
34972
|
+
}, void 0)]
|
|
34870
34973
|
}), void 0);
|
|
34871
34974
|
};
|
|
34872
34975
|
|
|
34976
|
+
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";
|
|
34977
|
+
|
|
34978
|
+
var IconSizes = ddsBaseTokens.iconSizes,
|
|
34979
|
+
Spacing$5 = ddsBaseTokens.spacing,
|
|
34980
|
+
Border$4 = ddsBaseTokens.border;
|
|
34981
|
+
var calendarIndicatorBase = {
|
|
34982
|
+
height: IconSizes.DdsIconsizeMedium,
|
|
34983
|
+
width: IconSizes.DdsIconsizeMedium,
|
|
34984
|
+
position: 'absolute',
|
|
34985
|
+
right: Spacing$5.SizesDdsSpacingLocalX075
|
|
34986
|
+
};
|
|
34987
|
+
var calendarIndicatorFocusBase = {
|
|
34988
|
+
outline: Border$4.BordersDdsBorderFocusInputfieldStroke + " solid " + Border$4.BordersDdsBorderFocusInputfieldStrokeWeight,
|
|
34989
|
+
outlineOffset: Spacing$5.SizesDdsSpacingLocalX0125
|
|
34990
|
+
};
|
|
34991
|
+
var datepickerTokens = {
|
|
34992
|
+
calendarIndicator: {
|
|
34993
|
+
base: calendarIndicatorBase,
|
|
34994
|
+
focus: {
|
|
34995
|
+
base: calendarIndicatorFocusBase
|
|
34996
|
+
}
|
|
34997
|
+
}
|
|
34998
|
+
};
|
|
34999
|
+
|
|
34873
35000
|
var getWidth = function getWidth(type) {
|
|
34874
35001
|
return type === 'date' ? '205px' : type === 'datetime-local' ? '235px' : '320px';
|
|
34875
35002
|
};
|
|
@@ -34877,8 +35004,8 @@ var getWidth = function getWidth(type) {
|
|
|
34877
35004
|
var StyledInput = styled(Input$3).withConfig({
|
|
34878
35005
|
displayName: "Datepicker__StyledInput",
|
|
34879
35006
|
componentId: "sc-1ijxhje-0"
|
|
34880
|
-
})(templateObject_1$
|
|
34881
|
-
var nextUniqueId$
|
|
35007
|
+
})(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);
|
|
35008
|
+
var nextUniqueId$3 = 0;
|
|
34882
35009
|
var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
34883
35010
|
var id = _a.id,
|
|
34884
35011
|
_b = _a.type,
|
|
@@ -34895,7 +35022,7 @@ var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
34895
35022
|
ariaDescribedby = _a["aria-describedby"],
|
|
34896
35023
|
rest = __rest(_a, ["id", "type", "required", "readOnly", "disabled", "label", "width", "errorMessage", "tip", "style", "className", 'aria-describedby']);
|
|
34897
35024
|
|
|
34898
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "datepickerInput-" + nextUniqueId$
|
|
35025
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "datepickerInput-" + nextUniqueId$3++)[0];
|
|
34899
35026
|
var componentWidth = width ? width : getWidth(type);
|
|
34900
35027
|
var hasErrorMessage = !!errorMessage;
|
|
34901
35028
|
var errorMessageId = derivativeIdGenerator(uniqueId, 'errorMessage', errorMessage);
|
|
@@ -34943,29 +35070,29 @@ var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
34943
35070
|
}, void 0)]
|
|
34944
35071
|
}), void 0);
|
|
34945
35072
|
});
|
|
34946
|
-
var templateObject_1$
|
|
35073
|
+
var templateObject_1$7;
|
|
34947
35074
|
|
|
34948
|
-
var Colors$
|
|
34949
|
-
Spacing$
|
|
35075
|
+
var Colors$3 = ddsBaseTokens.colors,
|
|
35076
|
+
Spacing$4 = ddsBaseTokens.spacing,
|
|
34950
35077
|
FontPackages$1 = ddsBaseTokens.fontPackages,
|
|
34951
|
-
Border$
|
|
35078
|
+
Border$3 = ddsBaseTokens.border;
|
|
34952
35079
|
|
|
34953
35080
|
var linkBase = __assign(__assign({
|
|
34954
|
-
color: Colors$
|
|
35081
|
+
color: Colors$3.DdsColorNeutralsWhite
|
|
34955
35082
|
}, FontPackages$1.body_sans_02.base), {
|
|
34956
35083
|
textDecoration: 'none'
|
|
34957
35084
|
});
|
|
34958
35085
|
|
|
34959
35086
|
var wrapperBase$2 = {
|
|
34960
|
-
backgroundColor: Colors$
|
|
34961
|
-
padding: Spacing$
|
|
35087
|
+
backgroundColor: Colors$3.DdsColorPrimaryBase,
|
|
35088
|
+
padding: Spacing$4.SizesDdsSpacingLocalX025
|
|
34962
35089
|
};
|
|
34963
35090
|
var skipToContentTokens = {
|
|
34964
35091
|
link: {
|
|
34965
35092
|
base: linkBase,
|
|
34966
35093
|
focusOutline: {
|
|
34967
|
-
color: Colors$
|
|
34968
|
-
width: Border$
|
|
35094
|
+
color: Colors$3.DdsColorWarningDark,
|
|
35095
|
+
width: Border$3.BordersDdsBorderFocusBaseStrokeWeight
|
|
34969
35096
|
}
|
|
34970
35097
|
},
|
|
34971
35098
|
wrapper: {
|
|
@@ -34976,14 +35103,14 @@ var skipToContentTokens = {
|
|
|
34976
35103
|
var Wrapper$1 = styled.div.withConfig({
|
|
34977
35104
|
displayName: "SkipToContent__Wrapper",
|
|
34978
35105
|
componentId: "sc-57o1qv-0"
|
|
34979
|
-
})(templateObject_1$
|
|
35106
|
+
})(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) {
|
|
34980
35107
|
var top = _a.top;
|
|
34981
35108
|
return top;
|
|
34982
35109
|
}, skipToContentTokens.wrapper.base);
|
|
34983
35110
|
var Link = styled.a.withConfig({
|
|
34984
35111
|
displayName: "SkipToContent__Link",
|
|
34985
35112
|
componentId: "sc-57o1qv-1"
|
|
34986
|
-
})(templateObject_2$
|
|
35113
|
+
})(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);
|
|
34987
35114
|
var SkipToContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
34988
35115
|
var _b = _a.text,
|
|
34989
35116
|
text = _b === void 0 ? 'Til hovedinnhold' : _b,
|
|
@@ -35006,22 +35133,22 @@ var SkipToContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
35006
35133
|
}), void 0)
|
|
35007
35134
|
}), void 0);
|
|
35008
35135
|
});
|
|
35009
|
-
var templateObject_1$
|
|
35136
|
+
var templateObject_1$6, templateObject_2$4;
|
|
35010
35137
|
|
|
35011
|
-
var Border$
|
|
35012
|
-
Colors$
|
|
35138
|
+
var Border$2 = ddsBaseTokens.border,
|
|
35139
|
+
Colors$2 = ddsBaseTokens.colors,
|
|
35013
35140
|
FontPackages = ddsBaseTokens.fontPackages,
|
|
35014
|
-
Spacing$
|
|
35015
|
-
OuterShadow$
|
|
35016
|
-
BorderRadius$
|
|
35141
|
+
Spacing$3 = ddsBaseTokens.spacing,
|
|
35142
|
+
OuterShadow$2 = ddsBaseTokens.outerShadow,
|
|
35143
|
+
BorderRadius$2 = ddsBaseTokens.borderRadius;
|
|
35017
35144
|
|
|
35018
35145
|
var wrapperBase$1 = __assign(__assign({
|
|
35019
|
-
border: Border$
|
|
35020
|
-
backgroundColor: Colors$
|
|
35146
|
+
border: Border$2.BordersDdsBorderStyleLightStroke + " solid " + Border$2.BordersDdsBorderFocusBaseStrokeWeight,
|
|
35147
|
+
backgroundColor: Colors$2.DdsColorNeutralsWhite
|
|
35021
35148
|
}, FontPackages.body_sans_02.base), {
|
|
35022
|
-
padding: "" + Spacing$
|
|
35023
|
-
boxShadow: OuterShadow$
|
|
35024
|
-
borderRadius: BorderRadius$
|
|
35149
|
+
padding: "" + Spacing$3.SizesDdsSpacingLocalX075,
|
|
35150
|
+
boxShadow: OuterShadow$2.DdsShadow1Onlight,
|
|
35151
|
+
borderRadius: BorderRadius$2.RadiiDdsBorderRadius1Radius
|
|
35025
35152
|
});
|
|
35026
35153
|
|
|
35027
35154
|
var arrowPlacementTemplate = {
|
|
@@ -35036,41 +35163,41 @@ var tooltipTokens = {
|
|
|
35036
35163
|
},
|
|
35037
35164
|
svgArrow: {
|
|
35038
35165
|
border: {
|
|
35039
|
-
fill: Colors$
|
|
35166
|
+
fill: Colors$2.DdsColorPrimaryLighter
|
|
35040
35167
|
},
|
|
35041
35168
|
background: {
|
|
35042
|
-
fill: Colors$
|
|
35169
|
+
fill: Colors$2.DdsColorNeutralsWhite
|
|
35043
35170
|
}
|
|
35044
35171
|
},
|
|
35045
35172
|
arrowPlacementTemplate: arrowPlacementTemplate,
|
|
35046
|
-
offset: Spacing$
|
|
35173
|
+
offset: Spacing$3.SizesDdsSpacingLocalX05NumberPx
|
|
35047
35174
|
};
|
|
35048
35175
|
|
|
35049
35176
|
var SvgArrow = styled.svg.withConfig({
|
|
35050
35177
|
displayName: "Tooltipstyles__SvgArrow",
|
|
35051
35178
|
componentId: "sc-1cna5tc-0"
|
|
35052
|
-
})(templateObject_1$
|
|
35179
|
+
})(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n width: 36px;\n height: 9px;\n"], ["\n width: 36px;\n height: 9px;\n"])));
|
|
35053
35180
|
var ArrowWrapper = styled.div.withConfig({
|
|
35054
35181
|
displayName: "Tooltipstyles__ArrowWrapper",
|
|
35055
35182
|
componentId: "sc-1cna5tc-1"
|
|
35056
|
-
})(templateObject_2$
|
|
35057
|
-
var Container = styled.div.withConfig({
|
|
35183
|
+
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject([""], [""])));
|
|
35184
|
+
var Container$3 = styled.div.withConfig({
|
|
35058
35185
|
displayName: "Tooltipstyles__Container",
|
|
35059
35186
|
componentId: "sc-1cna5tc-2"
|
|
35060
|
-
})(templateObject_3$
|
|
35187
|
+
})(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n width: fit-content;\n"], ["\n width: fit-content;\n"])));
|
|
35061
35188
|
var TooltipWrapper = styled.div.withConfig({
|
|
35062
35189
|
displayName: "Tooltipstyles__TooltipWrapper",
|
|
35063
35190
|
componentId: "sc-1cna5tc-3"
|
|
35064
|
-
})(templateObject_4$
|
|
35191
|
+
})(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) {
|
|
35065
35192
|
var open = _a.open;
|
|
35066
35193
|
return open ? 'visible' : 'hidden';
|
|
35067
35194
|
}, function (_a) {
|
|
35068
35195
|
var open = _a.open;
|
|
35069
35196
|
return open ? 1 : 0;
|
|
35070
35197
|
}, tooltipTokens.wrapper.base, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.bottom, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.top, SvgArrow, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.left, SvgArrow, ArrowWrapper, tooltipTokens.arrowPlacementTemplate.right, SvgArrow);
|
|
35071
|
-
var templateObject_1$
|
|
35198
|
+
var templateObject_1$5, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
35072
35199
|
|
|
35073
|
-
var nextUniqueId$
|
|
35200
|
+
var nextUniqueId$2 = 0;
|
|
35074
35201
|
var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
35075
35202
|
var text = _a.text,
|
|
35076
35203
|
_b = _a.placement,
|
|
@@ -35085,7 +35212,7 @@ var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
35085
35212
|
className = _a.className,
|
|
35086
35213
|
rest = __rest(_a, ["text", "placement", "children", "tooltipId", "delay", "style", "onMouseLeave", "onMouseOver", "className"]);
|
|
35087
35214
|
|
|
35088
|
-
var uniqueId = nextUniqueId$
|
|
35215
|
+
var uniqueId = nextUniqueId$2++;
|
|
35089
35216
|
var uniqueTooltipId = useState(tooltipId !== null && tooltipId !== void 0 ? tooltipId : "tooltip-" + uniqueId)[0];
|
|
35090
35217
|
|
|
35091
35218
|
var _d = useState(false),
|
|
@@ -35161,7 +35288,7 @@ var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
35161
35288
|
ref: setArrowElement,
|
|
35162
35289
|
style: styles.arrow
|
|
35163
35290
|
};
|
|
35164
|
-
return jsxRuntime.jsxs(Container, __assign({}, containerProps, {
|
|
35291
|
+
return jsxRuntime.jsxs(Container$3, __assign({}, containerProps, {
|
|
35165
35292
|
children: [anchorElement, jsxRuntime.jsxs(TooltipWrapper, __assign({}, wrapperProps, {
|
|
35166
35293
|
children: [text, jsxRuntime.jsx(ArrowWrapper, __assign({}, arrowWrapperProps, {
|
|
35167
35294
|
children: jsxRuntime.jsxs(SvgArrow, {
|
|
@@ -35178,6 +35305,228 @@ var Tooltip = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
35178
35305
|
}), void 0);
|
|
35179
35306
|
});
|
|
35180
35307
|
|
|
35308
|
+
var BorderRadius$1 = ddsBaseTokens.borderRadius,
|
|
35309
|
+
Colors$1 = ddsBaseTokens.colors,
|
|
35310
|
+
OuterShadow$1 = ddsBaseTokens.outerShadow,
|
|
35311
|
+
Spacing$2 = ddsBaseTokens.spacing,
|
|
35312
|
+
Border$1 = ddsBaseTokens.border;
|
|
35313
|
+
var focus = {
|
|
35314
|
+
outline: Border$1.BordersDdsBorderFocusBaseStrokeWeight + " " + Border$1.BordersDdsBorderFocusBaseStroke + " solid",
|
|
35315
|
+
outlineOffset: '1px'
|
|
35316
|
+
};
|
|
35317
|
+
var base = {
|
|
35318
|
+
backgroundColor: Colors$1.DdsColorNeutralsWhite,
|
|
35319
|
+
boxShadow: OuterShadow$1.DdsShadow4Onlight,
|
|
35320
|
+
borderRadius: BorderRadius$1.RadiiDdsBorderRadius1Radius,
|
|
35321
|
+
padding: Spacing$2.SizesDdsSpacingLocalX1 + " " + Spacing$2.SizesDdsSpacingLocalX1 + " " + Spacing$2.SizesDdsSpacingLocalX15 + " " + Spacing$2.SizesDdsSpacingLocalX15
|
|
35322
|
+
};
|
|
35323
|
+
var contentContainerBase = {
|
|
35324
|
+
paddingRight: Spacing$2.SizesDdsSpacingLocalX1,
|
|
35325
|
+
gap: Spacing$2.SizesDdsSpacingLocalX1
|
|
35326
|
+
};
|
|
35327
|
+
var actionsContainerBase = {
|
|
35328
|
+
gap: Spacing$2.SizesDdsSpacingLocalX1
|
|
35329
|
+
};
|
|
35330
|
+
|
|
35331
|
+
var focusBase = __assign({}, focus);
|
|
35332
|
+
|
|
35333
|
+
var bodyScrollableBase = {
|
|
35334
|
+
overflowY: 'auto'
|
|
35335
|
+
};
|
|
35336
|
+
|
|
35337
|
+
var bodyScrollableFocusBase = __assign({}, focus);
|
|
35338
|
+
|
|
35339
|
+
var modalTokens = {
|
|
35340
|
+
base: base,
|
|
35341
|
+
focus: {
|
|
35342
|
+
base: focusBase
|
|
35343
|
+
},
|
|
35344
|
+
contentContainer: {
|
|
35345
|
+
base: contentContainerBase
|
|
35346
|
+
},
|
|
35347
|
+
actionsContainer: {
|
|
35348
|
+
base: actionsContainerBase
|
|
35349
|
+
},
|
|
35350
|
+
bodyScrollable: {
|
|
35351
|
+
base: bodyScrollableBase,
|
|
35352
|
+
focus: {
|
|
35353
|
+
base: bodyScrollableFocusBase
|
|
35354
|
+
}
|
|
35355
|
+
}
|
|
35356
|
+
};
|
|
35357
|
+
|
|
35358
|
+
var changeRGBAAlpha = function changeRGBAAlpha(value, alpha) {
|
|
35359
|
+
if (value.slice(0, 5) !== 'rgba(' || value.slice(-1) !== ')') {
|
|
35360
|
+
return '';
|
|
35361
|
+
}
|
|
35362
|
+
|
|
35363
|
+
return value.replace(/[\d\.]+\)$/g, alpha.toString() + ')');
|
|
35364
|
+
};
|
|
35365
|
+
|
|
35366
|
+
var Backdrop = styled.div.withConfig({
|
|
35367
|
+
displayName: "Backdrop",
|
|
35368
|
+
componentId: "sc-vimg90-0"
|
|
35369
|
+
})(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) {
|
|
35370
|
+
var isOpen = _a.isOpen;
|
|
35371
|
+
return isOpen ? 1 : 0;
|
|
35372
|
+
});
|
|
35373
|
+
var templateObject_1$4;
|
|
35374
|
+
|
|
35375
|
+
var isVerticalScrollbarDisplayed = function isVerticalScrollbarDisplayed(container) {
|
|
35376
|
+
return container.clientHeight > window.innerHeight;
|
|
35377
|
+
};
|
|
35378
|
+
|
|
35379
|
+
function handleElementWithBackdropMount(container) {
|
|
35380
|
+
if (isVerticalScrollbarDisplayed(container)) {
|
|
35381
|
+
container.style.position = 'fixed';
|
|
35382
|
+
container.style.overflowY = 'scroll';
|
|
35383
|
+
}
|
|
35384
|
+
}
|
|
35385
|
+
function handleElementWithBackdropUnmount(container) {
|
|
35386
|
+
container.style.removeProperty('position');
|
|
35387
|
+
container.style.removeProperty('overflow-y');
|
|
35388
|
+
}
|
|
35389
|
+
|
|
35390
|
+
var Container$2 = styled.div.withConfig({
|
|
35391
|
+
displayName: "Modal__Container",
|
|
35392
|
+
componentId: "sc-12c14zx-0"
|
|
35393
|
+
})(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);
|
|
35394
|
+
var ContentContainer$1 = styled.div.withConfig({
|
|
35395
|
+
displayName: "Modal__ContentContainer",
|
|
35396
|
+
componentId: "sc-12c14zx-1"
|
|
35397
|
+
})(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: grid;\n ", "\n"], ["\n display: grid;\n ", "\n"])), modalTokens.contentContainer.base);
|
|
35398
|
+
var HeaderContainer = styled.div.withConfig({
|
|
35399
|
+
displayName: "Modal__HeaderContainer",
|
|
35400
|
+
componentId: "sc-12c14zx-2"
|
|
35401
|
+
})(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject([""], [""])));
|
|
35402
|
+
var StyledButton$1 = styled(Button).withConfig({
|
|
35403
|
+
displayName: "Modal__StyledButton",
|
|
35404
|
+
componentId: "sc-12c14zx-3"
|
|
35405
|
+
})(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n align-self: flex-end;\n"], ["\n align-self: flex-end;\n"])));
|
|
35406
|
+
var nextUniqueId$1 = 0;
|
|
35407
|
+
var Modal = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
35408
|
+
var _b = _a.isOpen,
|
|
35409
|
+
isOpen = _b === void 0 ? false : _b,
|
|
35410
|
+
_c = _a.parentElement,
|
|
35411
|
+
parentElement = _c === void 0 ? document.body : _c,
|
|
35412
|
+
children = _a.children,
|
|
35413
|
+
header = _a.header,
|
|
35414
|
+
onClose = _a.onClose,
|
|
35415
|
+
id = _a.id,
|
|
35416
|
+
triggerRef = _a.triggerRef,
|
|
35417
|
+
rest = __rest(_a, ["isOpen", "parentElement", "children", "header", "onClose", "id", "triggerRef"]);
|
|
35418
|
+
|
|
35419
|
+
var uniqueId = nextUniqueId$1++;
|
|
35420
|
+
var modalId = useState(id !== null && id !== void 0 ? id : "modal-" + uniqueId)[0];
|
|
35421
|
+
var headerId = modalId + "-header";
|
|
35422
|
+
var modalRef = useFocusTrap(isOpen);
|
|
35423
|
+
var combinedRef = useCombinedRef(ref, modalRef);
|
|
35424
|
+
|
|
35425
|
+
var handleClose = function handleClose() {
|
|
35426
|
+
var _a;
|
|
35427
|
+
|
|
35428
|
+
if (onClose && isOpen) {
|
|
35429
|
+
triggerRef && ((_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.focus());
|
|
35430
|
+
onClose();
|
|
35431
|
+
}
|
|
35432
|
+
};
|
|
35433
|
+
|
|
35434
|
+
useEffect(function () {
|
|
35435
|
+
if (isOpen) {
|
|
35436
|
+
handleElementWithBackdropMount(document.body);
|
|
35437
|
+
} else {
|
|
35438
|
+
handleElementWithBackdropUnmount(document.body);
|
|
35439
|
+
}
|
|
35440
|
+
}, [isOpen]);
|
|
35441
|
+
useOnClickOutside(modalRef.current, function () {
|
|
35442
|
+
return handleClose();
|
|
35443
|
+
});
|
|
35444
|
+
useOnKeyDown(['Escape', 'Esc'], function () {
|
|
35445
|
+
return handleClose();
|
|
35446
|
+
});
|
|
35447
|
+
var hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
35448
|
+
var backdropProps = {
|
|
35449
|
+
isOpen: hasTransitionedIn && isOpen
|
|
35450
|
+
};
|
|
35451
|
+
|
|
35452
|
+
var containerProps = __assign({
|
|
35453
|
+
ref: combinedRef,
|
|
35454
|
+
role: 'dialog',
|
|
35455
|
+
'aria-modal': true,
|
|
35456
|
+
'aria-hidden': !isOpen,
|
|
35457
|
+
tabIndex: -1,
|
|
35458
|
+
'aria-labelledby': headerId,
|
|
35459
|
+
id: modalId
|
|
35460
|
+
}, rest);
|
|
35461
|
+
|
|
35462
|
+
var headerContainerProps = {
|
|
35463
|
+
id: headerId
|
|
35464
|
+
};
|
|
35465
|
+
return isOpen || hasTransitionedIn ? /*#__PURE__*/createPortal(jsxRuntime.jsx(Backdrop, __assign({}, backdropProps, {
|
|
35466
|
+
children: jsxRuntime.jsxs(Container$2, __assign({}, containerProps, {
|
|
35467
|
+
children: [jsxRuntime.jsxs(ContentContainer$1, {
|
|
35468
|
+
children: [header && jsxRuntime.jsx(HeaderContainer, __assign({}, headerContainerProps, {
|
|
35469
|
+
children: typeof header === 'string' ? jsxRuntime.jsx(Typography, __assign({
|
|
35470
|
+
typographyType: "headingSans03"
|
|
35471
|
+
}, {
|
|
35472
|
+
children: header
|
|
35473
|
+
}), void 0) : header
|
|
35474
|
+
}), void 0), children]
|
|
35475
|
+
}, void 0), onClose && jsxRuntime.jsx(StyledButton$1, {
|
|
35476
|
+
size: "small",
|
|
35477
|
+
appearance: "borderless",
|
|
35478
|
+
purpose: "secondary",
|
|
35479
|
+
Icon: CloseOutlinedIcon,
|
|
35480
|
+
onClick: handleClose,
|
|
35481
|
+
"aria-label": "Lukk dialog"
|
|
35482
|
+
}, void 0)]
|
|
35483
|
+
}), void 0)
|
|
35484
|
+
}), void 0), parentElement) : null;
|
|
35485
|
+
});
|
|
35486
|
+
var templateObject_1$3, templateObject_2$2, templateObject_3$1, templateObject_4$1;
|
|
35487
|
+
|
|
35488
|
+
var Container$1 = styled.div.withConfig({
|
|
35489
|
+
displayName: "ModalBody__Container",
|
|
35490
|
+
componentId: "sc-134o0zg-0"
|
|
35491
|
+
})(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), scrollbarStyling, function (_a) {
|
|
35492
|
+
var scrollable = _a.scrollable;
|
|
35493
|
+
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);
|
|
35494
|
+
});
|
|
35495
|
+
var ModalBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
35496
|
+
var children = _a.children,
|
|
35497
|
+
scrollable = _a.scrollable,
|
|
35498
|
+
rest = __rest(_a, ["children", "scrollable"]);
|
|
35499
|
+
|
|
35500
|
+
var containerProps = __assign({
|
|
35501
|
+
ref: ref,
|
|
35502
|
+
tabIndex: scrollable ? 0 : undefined,
|
|
35503
|
+
scrollable: scrollable
|
|
35504
|
+
}, rest);
|
|
35505
|
+
|
|
35506
|
+
return jsxRuntime.jsx(Container$1, __assign({}, containerProps, {
|
|
35507
|
+
children: children
|
|
35508
|
+
}), void 0);
|
|
35509
|
+
});
|
|
35510
|
+
var templateObject_1$2, templateObject_2$1;
|
|
35511
|
+
|
|
35512
|
+
var Container = styled.div.withConfig({
|
|
35513
|
+
displayName: "ModalActions__Container",
|
|
35514
|
+
componentId: "sc-ehph9l-0"
|
|
35515
|
+
})(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);
|
|
35516
|
+
var ModalActions = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
35517
|
+
var children = _a.children,
|
|
35518
|
+
rest = __rest(_a, ["children"]);
|
|
35519
|
+
|
|
35520
|
+
var containerProps = __assign({
|
|
35521
|
+
ref: ref
|
|
35522
|
+
}, rest);
|
|
35523
|
+
|
|
35524
|
+
return jsxRuntime.jsx(Container, __assign({}, containerProps, {
|
|
35525
|
+
children: children
|
|
35526
|
+
}), void 0);
|
|
35527
|
+
});
|
|
35528
|
+
var templateObject_1$1;
|
|
35529
|
+
|
|
35181
35530
|
var Colors = ddsBaseTokens.colors,
|
|
35182
35531
|
BorderRadius = ddsBaseTokens.borderRadius,
|
|
35183
35532
|
Spacing$1 = ddsBaseTokens.spacing,
|
|
@@ -35388,4 +35737,4 @@ var PopoverGroup = function PopoverGroup(_a) {
|
|
|
35388
35737
|
}, void 0);
|
|
35389
35738
|
};
|
|
35390
35739
|
|
|
35391
|
-
export { Body$1 as Body, Breadcrumb, Breadcrumbs, Button, Card, CardAccordion, CardAccordionBody, CardAccordionHeader, Cell, Checkbox, CheckboxGroup, Datepicker, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, Divider, Foot, GlobalMessage, Head, IconWrapper$1 as IconWrapper, InternalHeader, List, ListItem, LocalMessage, Pagination, Popover, PopoverGroup, RadioButton, RadioButtonGroup, Row, Search, Select, SkipToContent, SortCell, Spinner, Table, TableWrapper, TextInput, Tooltip, Typography, getTextColor, isTextColor, searchFilter };
|
|
35740
|
+
export { Body$1 as Body, Breadcrumb, Breadcrumbs, Button, Card, CardAccordion, CardAccordionBody, CardAccordionHeader, Cell, Checkbox, CheckboxGroup, Datepicker, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, Divider, Foot, GlobalMessage, Head, IconWrapper$1 as IconWrapper, InternalHeader, List, ListItem, LocalMessage, Modal, ModalActions, ModalBody, Pagination, Popover, PopoverGroup, RadioButton, RadioButtonGroup, Row, Search, Select, SkipToContent, SortCell, Spinner, Table, TableWrapper, TextInput, Tooltip, Typography, getTextColor, isTextColor, searchFilter };
|