@norges-domstoler/dds-components 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Datepicker/Datepicker.d.ts +8 -0
- package/dist/components/Datepicker/index.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +5 -4
- package/dist/components/TextInput/TextInput.styles.d.ts +6 -9
- package/dist/components/TextInput/TextInput.tokens.d.ts +2 -38
- package/dist/components/TextInput/TextInput.types.d.ts +2 -6
- package/dist/helpers/Input/Input.styles.d.ts +8 -0
- package/dist/helpers/Input/Input.tokens.d.ts +71 -0
- package/dist/helpers/Input/Input.types.d.ts +10 -0
- package/dist/helpers/Input/index.d.ts +3 -0
- package/dist/helpers/{inputFieldStylingBase.d.ts → Input/inputFieldStylingBase.d.ts} +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +539 -441
- package/dist/index.js +539 -440
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -11423,16 +11423,16 @@ var ddsBaseTokens = {
|
|
|
11423
11423
|
fontPackages: fontPackages,
|
|
11424
11424
|
};
|
|
11425
11425
|
|
|
11426
|
-
var Colors$
|
|
11426
|
+
var Colors$j = ddsBaseTokens.colors, FontPackages$g = ddsBaseTokens.fontPackages, BorderRadius$4 = ddsBaseTokens.borderRadius, Border$8 = ddsBaseTokens.border;
|
|
11427
11427
|
var textDefault$8 = {
|
|
11428
|
-
textColor: Colors$
|
|
11428
|
+
textColor: Colors$j.DdsColorNeutralsGray9,
|
|
11429
11429
|
font: FontPackages$g.body_sans_02.base,
|
|
11430
11430
|
};
|
|
11431
11431
|
var focus$1 = {
|
|
11432
|
-
colorDefault: Colors$
|
|
11432
|
+
colorDefault: Colors$j.DdsColorWarningDarker,
|
|
11433
11433
|
outlineWidth: Border$8.BordersDdsBorderStyle1StrokeWeight,
|
|
11434
|
-
color__TextInput: Colors$
|
|
11435
|
-
textColor__TextInput: Colors$
|
|
11434
|
+
color__TextInput: Colors$j.DdsColorInteractiveBase,
|
|
11435
|
+
textColor__TextInput: Colors$j.DdsColorInteractiveDark,
|
|
11436
11436
|
borderWidth__TextInput: Border$8.BordersDdsBorderStyle1StrokeWeightNumberPx * 2 + "px",
|
|
11437
11437
|
};
|
|
11438
11438
|
var ddsReferenceTokens = {
|
|
@@ -11442,11 +11442,11 @@ var ddsReferenceTokens = {
|
|
|
11442
11442
|
input: {
|
|
11443
11443
|
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius,
|
|
11444
11444
|
borderWidth: Border$8.BordersDdsBorderStyle1StrokeWeight,
|
|
11445
|
-
borderColor: Colors$
|
|
11445
|
+
borderColor: Colors$j.DdsColorNeutralsGray5,
|
|
11446
11446
|
textColor: textDefault$8.textColor,
|
|
11447
11447
|
font: FontPackages$g.supportingStyle_inputtext_02.base,
|
|
11448
11448
|
hover: {
|
|
11449
|
-
backgroundColor: Colors$
|
|
11449
|
+
backgroundColor: Colors$j.DdsColorInteractiveLightest,
|
|
11450
11450
|
borderColor: focus$1.color__TextInput,
|
|
11451
11451
|
borderWidth: focus$1.borderWidth__TextInput,
|
|
11452
11452
|
},
|
|
@@ -11466,31 +11466,31 @@ var ddsReferenceTokens = {
|
|
|
11466
11466
|
},
|
|
11467
11467
|
};
|
|
11468
11468
|
|
|
11469
|
-
var Colors$
|
|
11469
|
+
var Colors$i = ddsBaseTokens.colors,
|
|
11470
11470
|
FontPackages$f = ddsBaseTokens.fontPackages,
|
|
11471
|
-
Spacing$
|
|
11471
|
+
Spacing$o = ddsBaseTokens.spacing;
|
|
11472
11472
|
var textDefault$7 = ddsReferenceTokens.textDefault;
|
|
11473
11473
|
var textColors = {
|
|
11474
|
-
interactive: Colors$
|
|
11475
|
-
primary: Colors$
|
|
11476
|
-
danger: Colors$
|
|
11477
|
-
success: Colors$
|
|
11478
|
-
warning: Colors$
|
|
11474
|
+
interactive: Colors$i.DdsColorInteractiveBase,
|
|
11475
|
+
primary: Colors$i.DdsColorPrimaryBase,
|
|
11476
|
+
danger: Colors$i.DdsColorDangerBase,
|
|
11477
|
+
success: Colors$i.DdsColorSuccessBase,
|
|
11478
|
+
warning: Colors$i.DdsColorWarningBase,
|
|
11479
11479
|
onLight: textDefault$7.textColor,
|
|
11480
|
-
onDark: Colors$
|
|
11481
|
-
gray1: Colors$
|
|
11482
|
-
gray2: Colors$
|
|
11483
|
-
gray3: Colors$
|
|
11484
|
-
gray4: Colors$
|
|
11485
|
-
gray5: Colors$
|
|
11486
|
-
gray6: Colors$
|
|
11487
|
-
gray7: Colors$
|
|
11488
|
-
gray8: Colors$
|
|
11489
|
-
gray9: Colors$
|
|
11480
|
+
onDark: Colors$i.DdsColorNeutralsWhite,
|
|
11481
|
+
gray1: Colors$i.DdsColorNeutralsGray1,
|
|
11482
|
+
gray2: Colors$i.DdsColorNeutralsGray2,
|
|
11483
|
+
gray3: Colors$i.DdsColorNeutralsGray3,
|
|
11484
|
+
gray4: Colors$i.DdsColorNeutralsGray4,
|
|
11485
|
+
gray5: Colors$i.DdsColorNeutralsGray5,
|
|
11486
|
+
gray6: Colors$i.DdsColorNeutralsGray6,
|
|
11487
|
+
gray7: Colors$i.DdsColorNeutralsGray7,
|
|
11488
|
+
gray8: Colors$i.DdsColorNeutralsGray8,
|
|
11489
|
+
gray9: Colors$i.DdsColorNeutralsGray9
|
|
11490
11490
|
};
|
|
11491
11491
|
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
11492
11492
|
var aBase = {
|
|
11493
|
-
color: Colors$
|
|
11493
|
+
color: Colors$i.DdsColorInteractiveBase,
|
|
11494
11494
|
// ...FontPackages.body_sans_02.base,
|
|
11495
11495
|
font: 'inherit',
|
|
11496
11496
|
textDecoration: 'underline',
|
|
@@ -11501,11 +11501,11 @@ var aMarginsBase = {
|
|
|
11501
11501
|
marginBottom: FontPackages$f.body_sans_02.paragraph.paragraphSpacing
|
|
11502
11502
|
};
|
|
11503
11503
|
var aHoverBase = {
|
|
11504
|
-
color: Colors$
|
|
11504
|
+
color: Colors$i.DdsColorInteractiveDark
|
|
11505
11505
|
};
|
|
11506
11506
|
var aFocusBase = {
|
|
11507
|
-
backgroundColor: Colors$
|
|
11508
|
-
color: Colors$
|
|
11507
|
+
backgroundColor: Colors$i.DdsColorWarningDarkest,
|
|
11508
|
+
color: Colors$i.DdsColorNeutralsWhite,
|
|
11509
11509
|
textDecoration: 'none',
|
|
11510
11510
|
outline: 'none'
|
|
11511
11511
|
};
|
|
@@ -11714,7 +11714,7 @@ var leadSans05MarginsBase = {
|
|
|
11714
11714
|
};
|
|
11715
11715
|
|
|
11716
11716
|
var supportingStyleLabel01Base = __assign(__assign({
|
|
11717
|
-
color: Colors$
|
|
11717
|
+
color: Colors$i.DdsColorNeutralsGray7
|
|
11718
11718
|
}, FontPackages$f.supportingStyle_label_01.base), {
|
|
11719
11719
|
margin: 0
|
|
11720
11720
|
});
|
|
@@ -11725,7 +11725,7 @@ var supportingStyleLabel01MarginsBase = {
|
|
|
11725
11725
|
};
|
|
11726
11726
|
|
|
11727
11727
|
var supportingStyleHelperText01Base = __assign(__assign({
|
|
11728
|
-
color: Colors$
|
|
11728
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
11729
11729
|
}, FontPackages$f.supportingStyle_helpertext_01.base), {
|
|
11730
11730
|
margin: 0
|
|
11731
11731
|
});
|
|
@@ -11769,7 +11769,7 @@ var supportingStyleInputText03MarginsBase = {
|
|
|
11769
11769
|
};
|
|
11770
11770
|
|
|
11771
11771
|
var supportingStylePlaceholderText01Base = __assign(__assign({
|
|
11772
|
-
color: Colors$
|
|
11772
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
11773
11773
|
}, FontPackages$f.supportingStyle_placeholdertext_01.base), {
|
|
11774
11774
|
margin: 0
|
|
11775
11775
|
});
|
|
@@ -11791,7 +11791,7 @@ var supportingStyleTiny01MarginsBase = {
|
|
|
11791
11791
|
};
|
|
11792
11792
|
var selectionBase = {
|
|
11793
11793
|
color: textDefault$7.textColor,
|
|
11794
|
-
backgroundColor: Colors$
|
|
11794
|
+
backgroundColor: Colors$i.DdsColorTertiaryLightest
|
|
11795
11795
|
};
|
|
11796
11796
|
var typographyTokens = {
|
|
11797
11797
|
selection: {
|
|
@@ -11813,7 +11813,7 @@ var typographyTokens = {
|
|
|
11813
11813
|
base: aBoldBase
|
|
11814
11814
|
},
|
|
11815
11815
|
icon: {
|
|
11816
|
-
marginLeft: Spacing$
|
|
11816
|
+
marginLeft: Spacing$o.SizesDdsSpacingLocalX0125
|
|
11817
11817
|
}
|
|
11818
11818
|
},
|
|
11819
11819
|
headingSans01: {
|
|
@@ -19616,45 +19616,45 @@ var getTextColor = function getTextColor(color) {
|
|
|
19616
19616
|
};
|
|
19617
19617
|
|
|
19618
19618
|
var getElementStyling = function getElementStyling(type) {
|
|
19619
|
-
return Ae(templateObject_1$
|
|
19619
|
+
return Ae(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n ", "\n &::selection, *::selection {\n ", "\n }\n "], ["\n ", "\n &::selection, *::selection {\n ", "\n }\n "])), typographyTokens.typographyType[type].base, typographyTokens.selection.base);
|
|
19620
19620
|
};
|
|
19621
19621
|
|
|
19622
19622
|
var LinkIconWrapper = styled(IconWrapper$1).withConfig({
|
|
19623
19623
|
displayName: "Typography__LinkIconWrapper",
|
|
19624
19624
|
componentId: "sc-1uvxoh6-0"
|
|
19625
|
-
})(templateObject_2$
|
|
19625
|
+
})(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyTokens.typographyType.a.icon);
|
|
19626
19626
|
var StyledTypography = styled.p.withConfig({
|
|
19627
19627
|
displayName: "Typography__StyledTypography",
|
|
19628
19628
|
componentId: "sc-1uvxoh6-1"
|
|
19629
|
-
})(templateObject_13$
|
|
19629
|
+
})(templateObject_13$2 || (templateObject_13$2 = __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) {
|
|
19630
19630
|
var typographyType = _a.typographyType;
|
|
19631
19631
|
return typographyType && getElementStyling(typographyType);
|
|
19632
19632
|
}, function (_a) {
|
|
19633
19633
|
var typographyType = _a.typographyType,
|
|
19634
19634
|
interactionProps = _a.interactionProps;
|
|
19635
|
-
return typographyType === 'a' && Ae(templateObject_4$
|
|
19635
|
+
return typographyType === 'a' && Ae(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\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\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$k || (templateObject_3$k = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active), typographyTokens.typographyType[typographyType].focus.base, typographyTokens.typographyType[typographyType].focus.base);
|
|
19636
19636
|
}, function (_a) {
|
|
19637
19637
|
var interactionProps = _a.interactionProps;
|
|
19638
|
-
return interactionProps && interactionProps.hover && Ae(templateObject_5$
|
|
19638
|
+
return interactionProps && interactionProps.hover && Ae(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n &:hover {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n "])), interactionProps.hover);
|
|
19639
19639
|
}, function (_a) {
|
|
19640
19640
|
var interactionProps = _a.interactionProps;
|
|
19641
|
-
return interactionProps && interactionProps.active && Ae(templateObject_6$
|
|
19641
|
+
return interactionProps && interactionProps.active && Ae(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active);
|
|
19642
19642
|
}, function (_a) {
|
|
19643
19643
|
var withMargins = _a.withMargins,
|
|
19644
19644
|
typographyType = _a.typographyType;
|
|
19645
|
-
return withMargins && typographyType ? Ae(templateObject_7$
|
|
19645
|
+
return withMargins && typographyType ? Ae(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.typographyType[typographyType].margins.base) : Ae(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject(["\n margin: 0;\n "], ["\n margin: 0;\n "])));
|
|
19646
19646
|
}, function (_a) {
|
|
19647
19647
|
var color = _a.color;
|
|
19648
|
-
return color && Ae(templateObject_9$
|
|
19648
|
+
return color && Ae(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), getTextColor(color));
|
|
19649
19649
|
}, function (_a) {
|
|
19650
19650
|
var bold = _a.bold;
|
|
19651
|
-
return bold && Ae(templateObject_10$
|
|
19651
|
+
return bold && Ae(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.bold.base);
|
|
19652
19652
|
}, function (_a) {
|
|
19653
19653
|
var italic = _a.italic;
|
|
19654
19654
|
return italic && Ae(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.italic.base);
|
|
19655
19655
|
}, function (_a) {
|
|
19656
19656
|
var underline = _a.underline;
|
|
19657
|
-
return underline && Ae(templateObject_12$
|
|
19657
|
+
return underline && Ae(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.underline.base);
|
|
19658
19658
|
});
|
|
19659
19659
|
var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
19660
19660
|
var _b = _a.typographyType,
|
|
@@ -19683,81 +19683,81 @@ var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
19683
19683
|
}, void 0) : '']
|
|
19684
19684
|
}), void 0);
|
|
19685
19685
|
});
|
|
19686
|
-
var templateObject_1$
|
|
19686
|
+
var templateObject_1$D, templateObject_2$s, templateObject_3$k, templateObject_4$g, templateObject_5$d, templateObject_6$c, templateObject_7$9, templateObject_8$6, templateObject_9$6, templateObject_10$4, templateObject_11$3, templateObject_12$2, templateObject_13$2;
|
|
19687
19687
|
|
|
19688
19688
|
var RadioButtonGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
19689
19689
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
19690
19690
|
return useContext(RadioButtonGroupContext);
|
|
19691
19691
|
};
|
|
19692
19692
|
|
|
19693
|
-
var Colors$
|
|
19693
|
+
var Colors$h = ddsBaseTokens.colors,
|
|
19694
19694
|
Border$7 = ddsBaseTokens.border,
|
|
19695
|
-
Spacing$
|
|
19695
|
+
Spacing$n = ddsBaseTokens.spacing,
|
|
19696
19696
|
FontPackages$e = ddsBaseTokens.fontPackages;
|
|
19697
19697
|
var radioButtonBase = {
|
|
19698
19698
|
border: '1px solid',
|
|
19699
|
-
borderColor: Colors$
|
|
19700
|
-
backgroundColor: Colors$
|
|
19699
|
+
borderColor: Colors$h.DdsColorNeutralsGray5,
|
|
19700
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite,
|
|
19701
19701
|
height: FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber,
|
|
19702
19702
|
width: FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber
|
|
19703
19703
|
};
|
|
19704
19704
|
var radioButtonHoverBase = {
|
|
19705
19705
|
border: '2px solid',
|
|
19706
|
-
backgroundColor: Colors$
|
|
19707
|
-
borderColor: Colors$
|
|
19706
|
+
backgroundColor: Colors$h.DdsColorInteractiveLightest,
|
|
19707
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
19708
19708
|
};
|
|
19709
19709
|
var radioButtonDisabledBase = {
|
|
19710
19710
|
border: '1px solid',
|
|
19711
|
-
borderColor: Colors$
|
|
19712
|
-
color: Colors$
|
|
19711
|
+
borderColor: Colors$h.DdsColorNeutralsGray5,
|
|
19712
|
+
color: Colors$h.DdsColorNeutralsGray6
|
|
19713
19713
|
};
|
|
19714
19714
|
var radioButtonReadOnlyBase = {
|
|
19715
19715
|
backgroundColor: 'transparent'
|
|
19716
19716
|
};
|
|
19717
19717
|
var radioButtonDangerBase = {
|
|
19718
19718
|
border: '2px solid',
|
|
19719
|
-
borderColor: Colors$
|
|
19719
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
19720
19720
|
};
|
|
19721
19721
|
var radioButtonDangerHoverBase = {
|
|
19722
19722
|
border: '2px solid',
|
|
19723
|
-
backgroundColor: Colors$
|
|
19724
|
-
borderColor: Colors$
|
|
19723
|
+
backgroundColor: Colors$h.DdsColorDangerLightest,
|
|
19724
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
19725
19725
|
};
|
|
19726
19726
|
var radioButtonCheckedBase = {
|
|
19727
19727
|
border: '2px solid',
|
|
19728
|
-
backgroundColor: Colors$
|
|
19729
|
-
borderColor: Colors$
|
|
19728
|
+
backgroundColor: Colors$h.DdsColorInteractiveBase,
|
|
19729
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
19730
19730
|
};
|
|
19731
19731
|
var radioButtonCheckedHoverBase = {
|
|
19732
19732
|
border: '2px solid',
|
|
19733
|
-
backgroundColor: Colors$
|
|
19734
|
-
borderColor: Colors$
|
|
19733
|
+
backgroundColor: Colors$h.DdsColorInteractiveDark,
|
|
19734
|
+
borderColor: Colors$h.DdsColorInteractiveDark
|
|
19735
19735
|
};
|
|
19736
19736
|
var radioButtonCheckedDisabledBase = {
|
|
19737
19737
|
border: '1px solid',
|
|
19738
|
-
borderColor: Colors$
|
|
19739
|
-
backgroundColor: Colors$
|
|
19738
|
+
borderColor: Colors$h.DdsColorNeutralsGray6,
|
|
19739
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray6
|
|
19740
19740
|
};
|
|
19741
19741
|
var radioButtonCheckedReadOnlyBase = {
|
|
19742
19742
|
border: '2px solid',
|
|
19743
|
-
borderColor: Colors$
|
|
19744
|
-
backgroundColor: Colors$
|
|
19743
|
+
borderColor: Colors$h.DdsColorNeutralsGray6,
|
|
19744
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray6
|
|
19745
19745
|
};
|
|
19746
19746
|
var checkmarkBase$1 = {
|
|
19747
|
-
backgroundColor: Colors$
|
|
19748
|
-
height: Spacing$
|
|
19749
|
-
width: Spacing$
|
|
19750
|
-
left: "calc(50% - " + Spacing$
|
|
19751
|
-
top: "calc(50% - " + Spacing$
|
|
19747
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite,
|
|
19748
|
+
height: Spacing$n.SizesDdsSpacingLocalX05,
|
|
19749
|
+
width: Spacing$n.SizesDdsSpacingLocalX05,
|
|
19750
|
+
left: "calc(50% - " + Spacing$n.SizesDdsSpacingLocalX05NumberPx / 2 + "px)",
|
|
19751
|
+
top: "calc(50% - " + Spacing$n.SizesDdsSpacingLocalX05NumberPx / 2 + "px)"
|
|
19752
19752
|
};
|
|
19753
19753
|
var containerBase$4 = {
|
|
19754
|
-
marginRight: Spacing$
|
|
19755
|
-
padding: Spacing$
|
|
19754
|
+
marginRight: Spacing$n.SizesDdsSpacingLocalX075,
|
|
19755
|
+
padding: Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX025 + " " + (20 + Spacing$n.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
19756
19756
|
};
|
|
19757
19757
|
var radioButtonTokens = {
|
|
19758
19758
|
radioButton: {
|
|
19759
19759
|
base: radioButtonBase,
|
|
19760
|
-
spaceLeft: Spacing$
|
|
19760
|
+
spaceLeft: Spacing$n.SizesDdsSpacingLocalX025,
|
|
19761
19761
|
hover: {
|
|
19762
19762
|
base: radioButtonHoverBase
|
|
19763
19763
|
},
|
|
@@ -19792,7 +19792,7 @@ var radioButtonTokens = {
|
|
|
19792
19792
|
container: {
|
|
19793
19793
|
base: containerBase$4,
|
|
19794
19794
|
focusOutline: {
|
|
19795
|
-
color: Colors$
|
|
19795
|
+
color: Colors$h.DdsColorWarningDarker,
|
|
19796
19796
|
width: Border$7.BordersDdsBorderStyle1StrokeWeight
|
|
19797
19797
|
}
|
|
19798
19798
|
}
|
|
@@ -19801,7 +19801,7 @@ var radioButtonTokens = {
|
|
|
19801
19801
|
var CustomRadioButton = styled.span.withConfig({
|
|
19802
19802
|
displayName: "RadioButtonstyles__CustomRadioButton",
|
|
19803
19803
|
componentId: "sc-iwypha-0"
|
|
19804
|
-
})(templateObject_1$
|
|
19804
|
+
})(templateObject_1$C || (templateObject_1$C = __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);
|
|
19805
19805
|
var Input$4 = styled.input.attrs(function (_a) {
|
|
19806
19806
|
var _b = _a.type,
|
|
19807
19807
|
type = _b === void 0 ? 'radio' : _b;
|
|
@@ -19811,23 +19811,23 @@ var Input$4 = styled.input.attrs(function (_a) {
|
|
|
19811
19811
|
}).withConfig({
|
|
19812
19812
|
displayName: "RadioButtonstyles__Input",
|
|
19813
19813
|
componentId: "sc-iwypha-1"
|
|
19814
|
-
})(templateObject_2$
|
|
19814
|
+
})(templateObject_2$r || (templateObject_2$r = __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"])));
|
|
19815
19815
|
var Container$9 = styled.label.withConfig({
|
|
19816
19816
|
displayName: "RadioButtonstyles__Container",
|
|
19817
19817
|
componentId: "sc-iwypha-2"
|
|
19818
|
-
})(templateObject_6$
|
|
19818
|
+
})(templateObject_6$b || (templateObject_6$b = __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) {
|
|
19819
19819
|
var error = _a.error;
|
|
19820
|
-
return error && Ae(templateObject_3$
|
|
19820
|
+
return error && Ae(templateObject_3$j || (templateObject_3$j = __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);
|
|
19821
19821
|
}, function (_a) {
|
|
19822
19822
|
var disabled = _a.disabled;
|
|
19823
|
-
return disabled && Ae(templateObject_4$
|
|
19823
|
+
return disabled && Ae(templateObject_4$f || (templateObject_4$f = __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);
|
|
19824
19824
|
}, function (_a) {
|
|
19825
19825
|
var readOnly = _a.readOnly;
|
|
19826
|
-
return readOnly && Ae(templateObject_5$
|
|
19826
|
+
return readOnly && Ae(templateObject_5$c || (templateObject_5$c = __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);
|
|
19827
19827
|
}, CustomRadioButton, radioButtonTokens.checkmark.base);
|
|
19828
|
-
var templateObject_1$
|
|
19828
|
+
var templateObject_1$C, templateObject_2$r, templateObject_3$j, templateObject_4$f, templateObject_5$c, templateObject_6$b;
|
|
19829
19829
|
|
|
19830
|
-
var nextUniqueId$
|
|
19830
|
+
var nextUniqueId$6 = 0;
|
|
19831
19831
|
|
|
19832
19832
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
19833
19833
|
if (typeof value !== 'undefined' && value !== null && group) {
|
|
@@ -19857,7 +19857,7 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
19857
19857
|
onChange = _a.onChange,
|
|
19858
19858
|
rest = __rest(_a, ["id", "name", "label", "disabled", "readOnly", "error", "style", "checked", "value", "className", "children", "required", "onChange"]);
|
|
19859
19859
|
|
|
19860
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$
|
|
19860
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$6++)[0];
|
|
19861
19861
|
var radioButtonGroup = useRadioButtonGroup();
|
|
19862
19862
|
|
|
19863
19863
|
var handleChange = function handleChange(event) {
|
|
@@ -19898,14 +19898,14 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
19898
19898
|
var MarkerWrapper = styled.span.withConfig({
|
|
19899
19899
|
displayName: "RequiredMarker__MarkerWrapper",
|
|
19900
19900
|
componentId: "sc-1p5sjqf-0"
|
|
19901
|
-
})(templateObject_1$
|
|
19901
|
+
})(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), ddsBaseTokens.colors.DdsColorDangerBase);
|
|
19902
19902
|
|
|
19903
19903
|
function RequiredMarker() {
|
|
19904
19904
|
return jsxRuntime.jsx(MarkerWrapper, {
|
|
19905
19905
|
children: "*"
|
|
19906
19906
|
}, void 0);
|
|
19907
19907
|
}
|
|
19908
|
-
var templateObject_1$
|
|
19908
|
+
var templateObject_1$B;
|
|
19909
19909
|
|
|
19910
19910
|
var ReportProblemOutlined = createCommonjsModule(function (module, exports) {
|
|
19911
19911
|
|
|
@@ -19931,21 +19931,21 @@ exports.default = _default;
|
|
|
19931
19931
|
|
|
19932
19932
|
var DangerOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(ReportProblemOutlined);
|
|
19933
19933
|
|
|
19934
|
-
var Colors$
|
|
19935
|
-
Spacing$
|
|
19934
|
+
var Colors$g = ddsBaseTokens.colors,
|
|
19935
|
+
Spacing$m = ddsBaseTokens.spacing;
|
|
19936
19936
|
var base$8 = {
|
|
19937
|
-
padding: Spacing$
|
|
19937
|
+
padding: Spacing$m.SizesDdsSpacingLocalX025 + " " + Spacing$m.SizesDdsSpacingLocalX05
|
|
19938
19938
|
};
|
|
19939
19939
|
var defaultMaxWidth = '100%';
|
|
19940
19940
|
var tipBase = {
|
|
19941
|
-
backgroundColor: Colors$
|
|
19941
|
+
backgroundColor: Colors$g.DdsColorNeutralsWhite
|
|
19942
19942
|
};
|
|
19943
19943
|
var errorBase = {
|
|
19944
|
-
color: Colors$
|
|
19945
|
-
backgroundColor: Colors$
|
|
19944
|
+
color: Colors$g.DdsColorDangerBase,
|
|
19945
|
+
backgroundColor: Colors$g.DdsColorDangerLightest
|
|
19946
19946
|
};
|
|
19947
19947
|
var inputMessageTokens = {
|
|
19948
|
-
padding: Spacing$
|
|
19948
|
+
padding: Spacing$m.SizesDdsSpacingLocalX025 + " " + Spacing$m.SizesDdsSpacingLocalX05,
|
|
19949
19949
|
base: base$8,
|
|
19950
19950
|
defaultMaxWidth: defaultMaxWidth,
|
|
19951
19951
|
tip: {
|
|
@@ -19955,16 +19955,16 @@ var inputMessageTokens = {
|
|
|
19955
19955
|
base: errorBase
|
|
19956
19956
|
},
|
|
19957
19957
|
icon: {
|
|
19958
|
-
spaceRight: Spacing$
|
|
19958
|
+
spaceRight: Spacing$m.SizesDdsSpacingLocalX05
|
|
19959
19959
|
}
|
|
19960
19960
|
};
|
|
19961
19961
|
|
|
19962
19962
|
var InputMessageWrapper = styled.div.withConfig({
|
|
19963
19963
|
displayName: "InputMessage__InputMessageWrapper",
|
|
19964
19964
|
componentId: "sc-n5r6yv-0"
|
|
19965
|
-
})(templateObject_2$
|
|
19965
|
+
})(templateObject_2$q || (templateObject_2$q = __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) {
|
|
19966
19966
|
var messageType = _a.messageType;
|
|
19967
|
-
return messageType && Ae(templateObject_1$
|
|
19967
|
+
return messageType && Ae(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputMessageTokens[messageType].base);
|
|
19968
19968
|
}, function (_a) {
|
|
19969
19969
|
var maxWidth = _a.maxWidth;
|
|
19970
19970
|
return maxWidth;
|
|
@@ -19994,30 +19994,30 @@ function InputMessage(_a) {
|
|
|
19994
19994
|
}), void 0)]
|
|
19995
19995
|
}), void 0);
|
|
19996
19996
|
}
|
|
19997
|
-
var templateObject_1$
|
|
19997
|
+
var templateObject_1$A, templateObject_2$q;
|
|
19998
19998
|
|
|
19999
|
-
var Spacing$
|
|
19999
|
+
var Spacing$l = ddsBaseTokens.spacing;
|
|
20000
20000
|
var radioButtonGroupTokens = {
|
|
20001
20001
|
label: {
|
|
20002
|
-
spaceLeft: Spacing$
|
|
20002
|
+
spaceLeft: Spacing$l.SizesDdsSpacingLocalX025
|
|
20003
20003
|
}
|
|
20004
20004
|
};
|
|
20005
20005
|
|
|
20006
20006
|
var Container$8 = styled.div.withConfig({
|
|
20007
20007
|
displayName: "RadioButtonGroup__Container",
|
|
20008
20008
|
componentId: "sc-1xsll60-0"
|
|
20009
|
-
})(templateObject_1$
|
|
20009
|
+
})(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20010
20010
|
var GroupContainer$1 = styled.div.withConfig({
|
|
20011
20011
|
displayName: "RadioButtonGroup__GroupContainer",
|
|
20012
20012
|
componentId: "sc-1xsll60-1"
|
|
20013
|
-
})(templateObject_2$
|
|
20013
|
+
})(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20014
20014
|
var direction = _a.direction;
|
|
20015
20015
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20016
20016
|
});
|
|
20017
20017
|
var Label$4 = styled(Typography).withConfig({
|
|
20018
20018
|
displayName: "RadioButtonGroup__Label",
|
|
20019
20019
|
componentId: "sc-1xsll60-2"
|
|
20020
|
-
})(templateObject_3$
|
|
20020
|
+
})(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), radioButtonGroupTokens.label.spaceLeft);
|
|
20021
20021
|
var nextUniqueGroupId$1 = 0;
|
|
20022
20022
|
var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
20023
20023
|
var name = _a.name,
|
|
@@ -20091,62 +20091,62 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20091
20091
|
}, void 0) : '']
|
|
20092
20092
|
}), void 0);
|
|
20093
20093
|
};
|
|
20094
|
-
var templateObject_1$
|
|
20094
|
+
var templateObject_1$z, templateObject_2$p, templateObject_3$i;
|
|
20095
20095
|
|
|
20096
|
-
var Colors$
|
|
20096
|
+
var Colors$f = ddsBaseTokens.colors,
|
|
20097
20097
|
Border$6 = ddsBaseTokens.border,
|
|
20098
|
-
Spacing$
|
|
20098
|
+
Spacing$k = ddsBaseTokens.spacing,
|
|
20099
20099
|
FontPackages$d = ddsBaseTokens.fontPackages,
|
|
20100
20100
|
BorderRadius$3 = ddsBaseTokens.borderRadius;
|
|
20101
20101
|
var checkboxBase = {
|
|
20102
20102
|
border: '1px solid',
|
|
20103
|
-
backgroundColor: Colors$
|
|
20104
|
-
borderColor: Colors$
|
|
20103
|
+
backgroundColor: Colors$f.DdsColorNeutralsWhite,
|
|
20104
|
+
borderColor: Colors$f.DdsColorNeutralsGray5,
|
|
20105
20105
|
borderRadius: BorderRadius$3.RadiiDdsBorderRadius1Radius,
|
|
20106
20106
|
height: FontPackages$d.supportingStyle_inputtext_02.base.fontSize,
|
|
20107
20107
|
width: FontPackages$d.supportingStyle_inputtext_02.base.fontSize
|
|
20108
20108
|
};
|
|
20109
20109
|
var checkboxCheckedBase = {
|
|
20110
20110
|
border: '2px solid',
|
|
20111
|
-
borderColor: Colors$
|
|
20112
|
-
backgroundColor: Colors$
|
|
20111
|
+
borderColor: Colors$f.DdsColorInteractiveBase,
|
|
20112
|
+
backgroundColor: Colors$f.DdsColorInteractiveBase
|
|
20113
20113
|
};
|
|
20114
20114
|
var checkboxDisabledBase = {
|
|
20115
20115
|
border: '1px solid',
|
|
20116
|
-
borderColor: Colors$
|
|
20117
|
-
color: Colors$
|
|
20116
|
+
borderColor: Colors$f.DdsColorNeutralsGray5,
|
|
20117
|
+
color: Colors$f.DdsColorNeutralsGray6
|
|
20118
20118
|
};
|
|
20119
20119
|
var checkboxCheckedDisabledBase = {
|
|
20120
20120
|
border: '2px solid',
|
|
20121
|
-
borderColor: Colors$
|
|
20122
|
-
backgroundColor: Colors$
|
|
20121
|
+
borderColor: Colors$f.DdsColorNeutralsGray6,
|
|
20122
|
+
backgroundColor: Colors$f.DdsColorNeutralsGray6
|
|
20123
20123
|
};
|
|
20124
20124
|
var checkboxReadOnlyBase = {
|
|
20125
20125
|
backgroundColor: 'transparent'
|
|
20126
20126
|
};
|
|
20127
20127
|
var checkboxCheckedReadOnlyBase = {
|
|
20128
20128
|
border: '2px solid',
|
|
20129
|
-
borderColor: Colors$
|
|
20130
|
-
backgroundColor: Colors$
|
|
20129
|
+
borderColor: Colors$f.DdsColorNeutralsGray6,
|
|
20130
|
+
backgroundColor: Colors$f.DdsColorNeutralsGray6
|
|
20131
20131
|
};
|
|
20132
20132
|
var checkboxHoverBase = {
|
|
20133
|
-
backgroundColor: Colors$
|
|
20133
|
+
backgroundColor: Colors$f.DdsColorInteractiveLightest,
|
|
20134
20134
|
border: '2px solid',
|
|
20135
|
-
borderColor: Colors$
|
|
20135
|
+
borderColor: Colors$f.DdsColorInteractiveBase
|
|
20136
20136
|
};
|
|
20137
20137
|
var checkboxCheckedHoverBase = {
|
|
20138
|
-
backgroundColor: Colors$
|
|
20138
|
+
backgroundColor: Colors$f.DdsColorInteractiveDark,
|
|
20139
20139
|
border: '2px solid',
|
|
20140
|
-
borderColor: Colors$
|
|
20140
|
+
borderColor: Colors$f.DdsColorInteractiveDark
|
|
20141
20141
|
};
|
|
20142
20142
|
var checkboxDangerBase = {
|
|
20143
20143
|
border: '2px solid',
|
|
20144
|
-
borderColor: Colors$
|
|
20144
|
+
borderColor: Colors$f.DdsColorDangerBase
|
|
20145
20145
|
};
|
|
20146
20146
|
var checkboxDangerHoverBase = {
|
|
20147
|
-
backgroundColor: Colors$
|
|
20147
|
+
backgroundColor: Colors$f.DdsColorDangerLightest,
|
|
20148
20148
|
border: '2px solid',
|
|
20149
|
-
borderColor: Colors$
|
|
20149
|
+
borderColor: Colors$f.DdsColorDangerBase
|
|
20150
20150
|
};
|
|
20151
20151
|
var checkmarkBase = {
|
|
20152
20152
|
borderWidth: '0 1px 1px 0',
|
|
@@ -20163,17 +20163,17 @@ var checkmarkIndeterminateBase = {
|
|
|
20163
20163
|
var containerBase$3 = __assign({}, FontPackages$d.body_sans_02.base);
|
|
20164
20164
|
|
|
20165
20165
|
var containerWithLabelBase$1 = __assign(__assign({}, FontPackages$d.body_sans_02.base), {
|
|
20166
|
-
marginRight: Spacing$
|
|
20167
|
-
padding: "0 " + Spacing$
|
|
20166
|
+
marginRight: Spacing$k.SizesDdsSpacingLocalX075,
|
|
20167
|
+
padding: "0 " + Spacing$k.SizesDdsSpacingLocalX025 + " 0 " + (FontPackages$d.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$k.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
20168
20168
|
});
|
|
20169
20169
|
|
|
20170
20170
|
var containerNoLabelBase$1 = {
|
|
20171
|
-
padding: Spacing$
|
|
20171
|
+
padding: Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX0125 + " " + Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX15
|
|
20172
20172
|
};
|
|
20173
20173
|
var checkboxTokens = {
|
|
20174
20174
|
checkbox: {
|
|
20175
20175
|
base: checkboxBase,
|
|
20176
|
-
spaceLeft: Spacing$
|
|
20176
|
+
spaceLeft: Spacing$k.SizesDdsSpacingLocalX025,
|
|
20177
20177
|
hover: {
|
|
20178
20178
|
base: checkboxHoverBase
|
|
20179
20179
|
},
|
|
@@ -20216,7 +20216,7 @@ var checkboxTokens = {
|
|
|
20216
20216
|
},
|
|
20217
20217
|
checkmark: {
|
|
20218
20218
|
base: checkmarkBase,
|
|
20219
|
-
color: Colors$
|
|
20219
|
+
color: Colors$f.DdsColorNeutralsWhite,
|
|
20220
20220
|
indeterminate: {
|
|
20221
20221
|
base: checkmarkIndeterminateBase
|
|
20222
20222
|
}
|
|
@@ -20224,7 +20224,7 @@ var checkboxTokens = {
|
|
|
20224
20224
|
container: {
|
|
20225
20225
|
base: containerBase$3,
|
|
20226
20226
|
focusOutline: {
|
|
20227
|
-
color: Colors$
|
|
20227
|
+
color: Colors$f.DdsColorWarningDarker,
|
|
20228
20228
|
width: Border$6.BordersDdsBorderStyle1StrokeWeight
|
|
20229
20229
|
},
|
|
20230
20230
|
withLabel: {
|
|
@@ -20239,7 +20239,7 @@ var checkboxTokens = {
|
|
|
20239
20239
|
var CustomCheckbox = styled.span.withConfig({
|
|
20240
20240
|
displayName: "Checkboxstyles__CustomCheckbox",
|
|
20241
20241
|
componentId: "sc-17q1ubf-0"
|
|
20242
|
-
})(templateObject_1$
|
|
20242
|
+
})(templateObject_1$y || (templateObject_1$y = __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);
|
|
20243
20243
|
var Input$3 = styled.input.attrs(function (_a) {
|
|
20244
20244
|
var _b = _a.type,
|
|
20245
20245
|
type = _b === void 0 ? 'checkbox' : _b;
|
|
@@ -20249,34 +20249,34 @@ var Input$3 = styled.input.attrs(function (_a) {
|
|
|
20249
20249
|
}).withConfig({
|
|
20250
20250
|
displayName: "Checkboxstyles__Input",
|
|
20251
20251
|
componentId: "sc-17q1ubf-1"
|
|
20252
|
-
})(templateObject_2$
|
|
20252
|
+
})(templateObject_2$o || (templateObject_2$o = __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"])));
|
|
20253
20253
|
var Container$7 = styled.label.withConfig({
|
|
20254
20254
|
displayName: "Checkboxstyles__Container",
|
|
20255
20255
|
componentId: "sc-17q1ubf-2"
|
|
20256
|
-
})(templateObject_13$
|
|
20256
|
+
})(templateObject_13$1 || (templateObject_13$1 = __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) {
|
|
20257
20257
|
var label = _a.label;
|
|
20258
|
-
return label ? Ae(templateObject_3$
|
|
20258
|
+
return label ? Ae(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.container.withLabel.base) : Ae(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.container.noLabel.base);
|
|
20259
20259
|
}, 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) {
|
|
20260
20260
|
var error = _a.error;
|
|
20261
|
-
return error && Ae(templateObject_5$
|
|
20261
|
+
return error && Ae(templateObject_5$b || (templateObject_5$b = __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);
|
|
20262
20262
|
}, function (_a) {
|
|
20263
20263
|
var indeterminate = _a.indeterminate;
|
|
20264
|
-
return indeterminate && Ae(templateObject_6$
|
|
20264
|
+
return indeterminate && Ae(templateObject_6$a || (templateObject_6$a = __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);
|
|
20265
20265
|
}, function (_a) {
|
|
20266
20266
|
var disabled = _a.disabled,
|
|
20267
20267
|
indeterminate = _a.indeterminate;
|
|
20268
|
-
return disabled && Ae(templateObject_8$
|
|
20268
|
+
return disabled && Ae(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "], ["\n cursor: not-allowed;\n input ~ ", " {\n ", "\n }\n input:checked ~ ", " {\n ", "\n }\n ", "\n "])), CustomCheckbox, checkboxTokens.checkbox.disabled.base, CustomCheckbox, checkboxTokens.checkbox.checked.disabled.base, indeterminate && Ae(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.indeterminate.disabled.base));
|
|
20269
20269
|
}, function (_a) {
|
|
20270
20270
|
var readOnly = _a.readOnly,
|
|
20271
20271
|
indeterminate = _a.indeterminate;
|
|
20272
|
-
return readOnly && Ae(templateObject_10$
|
|
20272
|
+
return readOnly && Ae(templateObject_10$3 || (templateObject_10$3 = __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$5 || (templateObject_9$5 = __makeTemplateObject(["\n input ~ ", " {\n ", "\n }\n "], ["\n input ~ ", " {\n ", "\n }\n "])), CustomCheckbox, checkboxTokens.checkbox.indeterminate.readOnly.base));
|
|
20273
20273
|
}, CustomCheckbox, checkboxTokens.checkmark.color, function (_a) {
|
|
20274
20274
|
var indeterminate = _a.indeterminate;
|
|
20275
|
-
return indeterminate ? Ae(templateObject_11$2 || (templateObject_11$2 = __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$
|
|
20275
|
+
return indeterminate ? Ae(templateObject_11$2 || (templateObject_11$2 = __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$1 || (templateObject_12$1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.checkmark.base);
|
|
20276
20276
|
});
|
|
20277
|
-
var templateObject_1$
|
|
20277
|
+
var templateObject_1$y, templateObject_2$o, templateObject_3$h, templateObject_4$e, templateObject_5$b, templateObject_6$a, templateObject_7$8, templateObject_8$5, templateObject_9$5, templateObject_10$3, templateObject_11$2, templateObject_12$1, templateObject_13$1;
|
|
20278
20278
|
|
|
20279
|
-
var nextUniqueId$
|
|
20279
|
+
var nextUniqueId$5 = 0;
|
|
20280
20280
|
var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20281
20281
|
var id = _a.id,
|
|
20282
20282
|
name = _a.name,
|
|
@@ -20289,7 +20289,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20289
20289
|
style = _a.style,
|
|
20290
20290
|
rest = __rest(_a, ["id", "name", "label", "error", "disabled", "readOnly", "indeterminate", "className", "style"]);
|
|
20291
20291
|
|
|
20292
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$
|
|
20292
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$5++)[0];
|
|
20293
20293
|
var containerProps = {
|
|
20294
20294
|
error: error,
|
|
20295
20295
|
disabled: disabled,
|
|
@@ -20321,28 +20321,28 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20321
20321
|
}), void 0);
|
|
20322
20322
|
});
|
|
20323
20323
|
|
|
20324
|
-
var Spacing$
|
|
20324
|
+
var Spacing$j = ddsBaseTokens.spacing;
|
|
20325
20325
|
var checkboxGroupTokens = {
|
|
20326
20326
|
label: {
|
|
20327
|
-
spaceLeft: Spacing$
|
|
20327
|
+
spaceLeft: Spacing$j.SizesDdsSpacingLocalX025
|
|
20328
20328
|
}
|
|
20329
20329
|
};
|
|
20330
20330
|
|
|
20331
20331
|
var Container$6 = styled.div.withConfig({
|
|
20332
20332
|
displayName: "CheckboxGroup__Container",
|
|
20333
20333
|
componentId: "sc-uixbzg-0"
|
|
20334
|
-
})(templateObject_1$
|
|
20334
|
+
})(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20335
20335
|
var GroupContainer = styled.div.withConfig({
|
|
20336
20336
|
displayName: "CheckboxGroup__GroupContainer",
|
|
20337
20337
|
componentId: "sc-uixbzg-1"
|
|
20338
|
-
})(templateObject_2$
|
|
20338
|
+
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20339
20339
|
var direction = _a.direction;
|
|
20340
20340
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20341
20341
|
});
|
|
20342
20342
|
var Label$3 = styled(Typography).withConfig({
|
|
20343
20343
|
displayName: "CheckboxGroup__Label",
|
|
20344
20344
|
componentId: "sc-uixbzg-2"
|
|
20345
|
-
})(templateObject_3$
|
|
20345
|
+
})(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), checkboxGroupTokens.label.spaceLeft);
|
|
20346
20346
|
var nextUniqueGroupId = 0;
|
|
20347
20347
|
var CheckboxGroup = function CheckboxGroup(_a) {
|
|
20348
20348
|
var label = _a.label,
|
|
@@ -20380,22 +20380,22 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
20380
20380
|
}, void 0) : '']
|
|
20381
20381
|
}), void 0);
|
|
20382
20382
|
};
|
|
20383
|
-
var templateObject_1$
|
|
20383
|
+
var templateObject_1$x, templateObject_2$n, templateObject_3$g;
|
|
20384
20384
|
|
|
20385
20385
|
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
20386
20386
|
return lineHeight * 0.01 * fontSize;
|
|
20387
20387
|
};
|
|
20388
20388
|
|
|
20389
|
-
var Colors$
|
|
20389
|
+
var Colors$e = ddsBaseTokens.colors,
|
|
20390
20390
|
Border$5 = ddsBaseTokens.border,
|
|
20391
|
-
Spacing$
|
|
20391
|
+
Spacing$i = ddsBaseTokens.spacing,
|
|
20392
20392
|
FontPackages$c = ddsBaseTokens.fontPackages,
|
|
20393
20393
|
BorderRadius$2 = ddsBaseTokens.borderRadius,
|
|
20394
20394
|
OuterShadow$1 = ddsBaseTokens.outerShadow;
|
|
20395
20395
|
var focus = ddsReferenceTokens.focus;
|
|
20396
20396
|
|
|
20397
20397
|
var justIconSmallBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_02.base), {
|
|
20398
|
-
padding: Spacing$
|
|
20398
|
+
padding: Spacing$i.SizesDdsSpacingLocalX05
|
|
20399
20399
|
});
|
|
20400
20400
|
|
|
20401
20401
|
var justIconWrapperSmallBase = {
|
|
@@ -20404,11 +20404,11 @@ var justIconWrapperSmallBase = {
|
|
|
20404
20404
|
};
|
|
20405
20405
|
|
|
20406
20406
|
var textSmallBase = __assign(__assign({}, FontPackages$c.body_sans_01.base), {
|
|
20407
|
-
padding: Spacing$
|
|
20407
|
+
padding: Spacing$i.SizesDdsSpacingLocalX05 + " " + (Spacing$i.SizesDdsSpacingLocalX1NumberPx - 2) + "px"
|
|
20408
20408
|
});
|
|
20409
20409
|
|
|
20410
20410
|
var justIconMediumBase = __assign(__assign({}, FontPackages$c.heading_sans_03.base), {
|
|
20411
|
-
padding: Spacing$
|
|
20411
|
+
padding: Spacing$i.SizesDdsSpacingLocalX075
|
|
20412
20412
|
});
|
|
20413
20413
|
|
|
20414
20414
|
var justIconWrapperMediumBase = {
|
|
@@ -20417,11 +20417,11 @@ var justIconWrapperMediumBase = {
|
|
|
20417
20417
|
};
|
|
20418
20418
|
|
|
20419
20419
|
var textMediumBase = __assign(__assign({}, FontPackages$c.body_sans_02.base), {
|
|
20420
|
-
padding: Spacing$
|
|
20420
|
+
padding: Spacing$i.SizesDdsSpacingLocalX075 + " " + (Spacing$i.SizesDdsSpacingLocalX15NumberPx - 2) + "px"
|
|
20421
20421
|
});
|
|
20422
20422
|
|
|
20423
20423
|
var justIconLargeBase = __assign(__assign({}, FontPackages$c.heading_sans_04.base), {
|
|
20424
|
-
padding: Spacing$
|
|
20424
|
+
padding: Spacing$i.SizesDdsSpacingLocalX1
|
|
20425
20425
|
});
|
|
20426
20426
|
|
|
20427
20427
|
var justIconWrapperLargeBase = {
|
|
@@ -20430,7 +20430,7 @@ var justIconWrapperLargeBase = {
|
|
|
20430
20430
|
};
|
|
20431
20431
|
|
|
20432
20432
|
var textLargeBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_03.base), {
|
|
20433
|
-
padding: Spacing$
|
|
20433
|
+
padding: Spacing$i.SizesDdsSpacingLocalX1 + " " + (Spacing$i.SizesDdsSpacingLocalX2NumberPx - 2) + "px"
|
|
20434
20434
|
});
|
|
20435
20435
|
|
|
20436
20436
|
var buttonBase = {
|
|
@@ -20439,56 +20439,56 @@ var buttonBase = {
|
|
|
20439
20439
|
var filledButtonColors = {
|
|
20440
20440
|
primary: {
|
|
20441
20441
|
base: {
|
|
20442
|
-
color: Colors$
|
|
20443
|
-
backgroundColor: Colors$
|
|
20444
|
-
borderColor: Colors$
|
|
20442
|
+
color: Colors$e.DdsColorNeutralsWhite,
|
|
20443
|
+
backgroundColor: Colors$e.DdsColorInteractiveBase,
|
|
20444
|
+
borderColor: Colors$e.DdsColorInteractiveBase
|
|
20445
20445
|
},
|
|
20446
20446
|
hover: {
|
|
20447
20447
|
base: {
|
|
20448
|
-
backgroundColor: Colors$
|
|
20449
|
-
borderColor: Colors$
|
|
20448
|
+
backgroundColor: Colors$e.DdsColorInteractiveDark,
|
|
20449
|
+
borderColor: Colors$e.DdsColorInteractiveDark
|
|
20450
20450
|
}
|
|
20451
20451
|
},
|
|
20452
20452
|
active: {
|
|
20453
20453
|
base: {
|
|
20454
|
-
backgroundColor: Colors$
|
|
20455
|
-
borderColor: Colors$
|
|
20454
|
+
backgroundColor: Colors$e.DdsColorInteractiveDarker,
|
|
20455
|
+
borderColor: Colors$e.DdsColorInteractiveDarker
|
|
20456
20456
|
}
|
|
20457
20457
|
}
|
|
20458
20458
|
},
|
|
20459
20459
|
secondary: {
|
|
20460
20460
|
base: {
|
|
20461
|
-
color: Colors$
|
|
20462
|
-
backgroundColor: Colors$
|
|
20463
|
-
borderColor: Colors$
|
|
20461
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20462
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray1,
|
|
20463
|
+
borderColor: Colors$e.DdsColorNeutralsGray5
|
|
20464
20464
|
},
|
|
20465
20465
|
hover: {
|
|
20466
20466
|
base: {
|
|
20467
|
-
backgroundColor: Colors$
|
|
20467
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray2
|
|
20468
20468
|
}
|
|
20469
20469
|
},
|
|
20470
20470
|
active: {
|
|
20471
20471
|
base: {
|
|
20472
|
-
backgroundColor: Colors$
|
|
20472
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray3
|
|
20473
20473
|
}
|
|
20474
20474
|
}
|
|
20475
20475
|
},
|
|
20476
20476
|
danger: {
|
|
20477
20477
|
base: {
|
|
20478
|
-
color: Colors$
|
|
20479
|
-
backgroundColor: Colors$
|
|
20480
|
-
borderColor: Colors$
|
|
20478
|
+
color: Colors$e.DdsColorNeutralsWhite,
|
|
20479
|
+
backgroundColor: Colors$e.DdsColorDangerBase,
|
|
20480
|
+
borderColor: Colors$e.DdsColorDangerBase
|
|
20481
20481
|
},
|
|
20482
20482
|
hover: {
|
|
20483
20483
|
base: {
|
|
20484
|
-
backgroundColor: Colors$
|
|
20485
|
-
borderColor: Colors$
|
|
20484
|
+
backgroundColor: Colors$e.DdsColorDangerDark,
|
|
20485
|
+
borderColor: Colors$e.DdsColorDangerDark
|
|
20486
20486
|
}
|
|
20487
20487
|
},
|
|
20488
20488
|
active: {
|
|
20489
20489
|
base: {
|
|
20490
|
-
backgroundColor: Colors$
|
|
20491
|
-
borderColor: Colors$
|
|
20490
|
+
backgroundColor: Colors$e.DdsColorDangerDarker,
|
|
20491
|
+
borderColor: Colors$e.DdsColorDangerDarker
|
|
20492
20492
|
}
|
|
20493
20493
|
}
|
|
20494
20494
|
}
|
|
@@ -20543,62 +20543,62 @@ var borderlessBase = {
|
|
|
20543
20543
|
textDecorationColor: 'transparent'
|
|
20544
20544
|
};
|
|
20545
20545
|
var borderlessPrimaryBase = {
|
|
20546
|
-
color: Colors$
|
|
20547
|
-
taxtDecorationColor: Colors$
|
|
20546
|
+
color: Colors$e.DdsColorInteractiveBase,
|
|
20547
|
+
taxtDecorationColor: Colors$e.DdsColorInteractiveBase
|
|
20548
20548
|
};
|
|
20549
20549
|
var borderlessPrimaryHoverBase = {
|
|
20550
|
-
color: Colors$
|
|
20551
|
-
textDecorationColor: Colors$
|
|
20550
|
+
color: Colors$e.DdsColorInteractiveDark,
|
|
20551
|
+
textDecorationColor: Colors$e.DdsColorInteractiveDark
|
|
20552
20552
|
};
|
|
20553
20553
|
var borderlessPrimaryActiveBase = {
|
|
20554
|
-
color: Colors$
|
|
20555
|
-
textDecorationColor: Colors$
|
|
20554
|
+
color: Colors$e.DdsColorInteractiveDarker,
|
|
20555
|
+
textDecorationColor: Colors$e.DdsColorInteractiveDarker
|
|
20556
20556
|
};
|
|
20557
20557
|
var borderlessPrimaryIconHoverBase = {
|
|
20558
|
-
borderColor: Colors$
|
|
20559
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20558
|
+
borderColor: Colors$e.DdsColorInteractiveDark,
|
|
20559
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDark
|
|
20560
20560
|
};
|
|
20561
20561
|
var borderlessPrimaryIconActiveBase = {
|
|
20562
|
-
borderColor: Colors$
|
|
20563
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20562
|
+
borderColor: Colors$e.DdsColorInteractiveDarker,
|
|
20563
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDarker
|
|
20564
20564
|
};
|
|
20565
20565
|
var borderlessSecondaryBase = {
|
|
20566
|
-
color: Colors$
|
|
20566
|
+
color: Colors$e.DdsColorNeutralsGray7
|
|
20567
20567
|
};
|
|
20568
20568
|
var borderlessSecondaryHoverBase = {
|
|
20569
|
-
color: Colors$
|
|
20570
|
-
textDecorationColor: Colors$
|
|
20569
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20570
|
+
textDecorationColor: Colors$e.DdsColorNeutralsGray8
|
|
20571
20571
|
};
|
|
20572
20572
|
var borderlessSecondaryActiveBase = {
|
|
20573
|
-
color: Colors$
|
|
20574
|
-
textDecorationColor: Colors$
|
|
20573
|
+
color: Colors$e.DdsColorNeutralsGray9,
|
|
20574
|
+
textDecorationColor: Colors$e.DdsColorNeutralsGray9
|
|
20575
20575
|
};
|
|
20576
20576
|
var borderlessSecondaryIconHoverBase = {
|
|
20577
|
-
borderColor: Colors$
|
|
20578
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20577
|
+
borderColor: Colors$e.DdsColorNeutralsGray8,
|
|
20578
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray8
|
|
20579
20579
|
};
|
|
20580
20580
|
var borderlessSecondaryIconActiveBase = {
|
|
20581
|
-
borderColor: Colors$
|
|
20582
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20581
|
+
borderColor: Colors$e.DdsColorNeutralsGray9,
|
|
20582
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray9
|
|
20583
20583
|
};
|
|
20584
20584
|
var borderlessDangerBase = {
|
|
20585
|
-
color: Colors$
|
|
20585
|
+
color: Colors$e.DdsColorDangerBase
|
|
20586
20586
|
};
|
|
20587
20587
|
var borderlessDangerHoverBase = {
|
|
20588
|
-
color: Colors$
|
|
20589
|
-
textDecorationColor: Colors$
|
|
20588
|
+
color: Colors$e.DdsColorDangerDarker,
|
|
20589
|
+
textDecorationColor: Colors$e.DdsColorDangerDarker
|
|
20590
20590
|
};
|
|
20591
20591
|
var borderlessDangerActiveBase = {
|
|
20592
|
-
color: Colors$
|
|
20593
|
-
textDecorationColor: Colors$
|
|
20592
|
+
color: Colors$e.DdsColorDangerDarkest,
|
|
20593
|
+
textDecorationColor: Colors$e.DdsColorDangerDarkest
|
|
20594
20594
|
};
|
|
20595
20595
|
var borderlessDangerIconHoverBase = {
|
|
20596
|
-
borderColor: Colors$
|
|
20597
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20596
|
+
borderColor: Colors$e.DdsColorDangerDark,
|
|
20597
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDark
|
|
20598
20598
|
};
|
|
20599
20599
|
var borderlessDangerIconActiveBase = {
|
|
20600
|
-
borderColor: Colors$
|
|
20601
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20600
|
+
borderColor: Colors$e.DdsColorDangerDarker,
|
|
20601
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarker
|
|
20602
20602
|
};
|
|
20603
20603
|
var ghostBase = {
|
|
20604
20604
|
borderRadius: BorderRadius$2.RadiiDdsBorderRadius1Radius,
|
|
@@ -20606,46 +20606,46 @@ var ghostBase = {
|
|
|
20606
20606
|
backgroundColor: 'transparent'
|
|
20607
20607
|
};
|
|
20608
20608
|
var ghostPrimaryBase = {
|
|
20609
|
-
color: Colors$
|
|
20610
|
-
borderColor: Colors$
|
|
20609
|
+
color: Colors$e.DdsColorInteractiveBase,
|
|
20610
|
+
borderColor: Colors$e.DdsColorInteractiveBase
|
|
20611
20611
|
};
|
|
20612
20612
|
var ghostPrimaryHoverBase = {
|
|
20613
|
-
color: Colors$
|
|
20614
|
-
borderColor: Colors$
|
|
20615
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20613
|
+
color: Colors$e.DdsColorInteractiveDark,
|
|
20614
|
+
borderColor: Colors$e.DdsColorInteractiveDark,
|
|
20615
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDark
|
|
20616
20616
|
};
|
|
20617
20617
|
var ghostPrimaryActiveBase = {
|
|
20618
|
-
color: Colors$
|
|
20619
|
-
borderColor: Colors$
|
|
20620
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20618
|
+
color: Colors$e.DdsColorInteractiveDarker,
|
|
20619
|
+
borderColor: Colors$e.DdsColorInteractiveDarker,
|
|
20620
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDarker
|
|
20621
20621
|
};
|
|
20622
20622
|
var ghostSecondaryBase = {
|
|
20623
|
-
color: Colors$
|
|
20624
|
-
borderColor: Colors$
|
|
20623
|
+
color: Colors$e.DdsColorNeutralsGray7,
|
|
20624
|
+
borderColor: Colors$e.DdsColorNeutralsGray7
|
|
20625
20625
|
};
|
|
20626
20626
|
var ghostSecondaryHoverBase = {
|
|
20627
|
-
color: Colors$
|
|
20628
|
-
borderColor: Colors$
|
|
20629
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20627
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20628
|
+
borderColor: Colors$e.DdsColorNeutralsGray8,
|
|
20629
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray8
|
|
20630
20630
|
};
|
|
20631
20631
|
var ghostSecondaryActiveBase = {
|
|
20632
|
-
color: Colors$
|
|
20633
|
-
borderColor: Colors$
|
|
20634
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20632
|
+
color: Colors$e.DdsColorNeutralsGray9,
|
|
20633
|
+
borderColor: Colors$e.DdsColorNeutralsGray9,
|
|
20634
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray9
|
|
20635
20635
|
};
|
|
20636
20636
|
var ghostDangerBase = {
|
|
20637
|
-
color: Colors$
|
|
20638
|
-
borderColor: Colors$
|
|
20637
|
+
color: Colors$e.DdsColorDangerBase,
|
|
20638
|
+
borderColor: Colors$e.DdsColorDangerBase
|
|
20639
20639
|
};
|
|
20640
20640
|
var ghostDangerHoverBase = {
|
|
20641
|
-
color: Colors$
|
|
20642
|
-
borderColor: Colors$
|
|
20643
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20641
|
+
color: Colors$e.DdsColorDangerDark,
|
|
20642
|
+
borderColor: Colors$e.DdsColorDangerDark,
|
|
20643
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDark
|
|
20644
20644
|
};
|
|
20645
20645
|
var ghostDangerActiveBase = {
|
|
20646
|
-
color: Colors$
|
|
20647
|
-
borderColor: Colors$
|
|
20648
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20646
|
+
color: Colors$e.DdsColorDangerDarkest,
|
|
20647
|
+
borderColor: Colors$e.DdsColorDangerDarkest,
|
|
20648
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarkest
|
|
20649
20649
|
};
|
|
20650
20650
|
var roundedBase = {
|
|
20651
20651
|
borderRadius: '100px',
|
|
@@ -20668,7 +20668,7 @@ var buttonTokens = {
|
|
|
20668
20668
|
text: {
|
|
20669
20669
|
base: textSmallBase
|
|
20670
20670
|
},
|
|
20671
|
-
iconWithTextMargin: Spacing$
|
|
20671
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX025
|
|
20672
20672
|
},
|
|
20673
20673
|
medium: {
|
|
20674
20674
|
justIcon: {
|
|
@@ -20680,7 +20680,7 @@ var buttonTokens = {
|
|
|
20680
20680
|
text: {
|
|
20681
20681
|
base: textMediumBase
|
|
20682
20682
|
},
|
|
20683
|
-
iconWithTextMargin: Spacing$
|
|
20683
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX05
|
|
20684
20684
|
},
|
|
20685
20685
|
large: {
|
|
20686
20686
|
justIcon: {
|
|
@@ -20692,7 +20692,7 @@ var buttonTokens = {
|
|
|
20692
20692
|
text: {
|
|
20693
20693
|
base: textLargeBase
|
|
20694
20694
|
},
|
|
20695
|
-
iconWithTextMargin: Spacing$
|
|
20695
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX075
|
|
20696
20696
|
}
|
|
20697
20697
|
},
|
|
20698
20698
|
appearance: {
|
|
@@ -20843,9 +20843,9 @@ var buttonTokens = {
|
|
|
20843
20843
|
}
|
|
20844
20844
|
};
|
|
20845
20845
|
|
|
20846
|
-
var Colors$
|
|
20846
|
+
var Colors$d = ddsBaseTokens.colors;
|
|
20847
20847
|
var ciclreBase = {
|
|
20848
|
-
stroke: Colors$
|
|
20848
|
+
stroke: Colors$d.DdsColorInteractiveBase
|
|
20849
20849
|
};
|
|
20850
20850
|
var spinnerTokens = {
|
|
20851
20851
|
circle: {
|
|
@@ -20856,7 +20856,7 @@ var spinnerTokens = {
|
|
|
20856
20856
|
var StyledSpinner = styled.svg.withConfig({
|
|
20857
20857
|
displayName: "Spinner__StyledSpinner",
|
|
20858
20858
|
componentId: "sc-13hsttm-0"
|
|
20859
|
-
})(templateObject_1$
|
|
20859
|
+
})(templateObject_1$w || (templateObject_1$w = __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) {
|
|
20860
20860
|
var outerAnimationDelay = _a.outerAnimationDelay;
|
|
20861
20861
|
return outerAnimationDelay;
|
|
20862
20862
|
}, function (_a) {
|
|
@@ -20869,14 +20869,14 @@ var StyledSpinner = styled.svg.withConfig({
|
|
|
20869
20869
|
var Circle = styled.circle.withConfig({
|
|
20870
20870
|
displayName: "Spinner__Circle",
|
|
20871
20871
|
componentId: "sc-13hsttm-1"
|
|
20872
|
-
})(templateObject_2$
|
|
20872
|
+
})(templateObject_2$m || (templateObject_2$m = __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) {
|
|
20873
20873
|
var color = _a.color;
|
|
20874
20874
|
return color && getTextColor(color);
|
|
20875
20875
|
}, function (_a) {
|
|
20876
20876
|
var innerAnimationDelay = _a.innerAnimationDelay;
|
|
20877
20877
|
return innerAnimationDelay;
|
|
20878
20878
|
});
|
|
20879
|
-
var nextUniqueId$
|
|
20879
|
+
var nextUniqueId$4 = 0;
|
|
20880
20880
|
function Spinner(_a) {
|
|
20881
20881
|
var _b = _a.size,
|
|
20882
20882
|
size = _b === void 0 ? ddsBaseTokens.iconSizes.DdsIconsizeMedium : _b,
|
|
@@ -20885,7 +20885,7 @@ function Spinner(_a) {
|
|
|
20885
20885
|
var mountTime = React__default.useRef(Date.now());
|
|
20886
20886
|
var outerAnimationDelay = -(mountTime.current % 2000);
|
|
20887
20887
|
var innerAnimationDelay = -(mountTime.current % 1500);
|
|
20888
|
-
var uniqueId = useState("spinnerTitle-" + nextUniqueId$
|
|
20888
|
+
var uniqueId = useState("spinnerTitle-" + nextUniqueId$4++)[0];
|
|
20889
20889
|
var spinnerProps = {
|
|
20890
20890
|
outerAnimationDelay: outerAnimationDelay,
|
|
20891
20891
|
size: size
|
|
@@ -20912,15 +20912,15 @@ function Spinner(_a) {
|
|
|
20912
20912
|
}), void 0)]
|
|
20913
20913
|
}), void 0);
|
|
20914
20914
|
}
|
|
20915
|
-
var templateObject_1$
|
|
20915
|
+
var templateObject_1$w, templateObject_2$m;
|
|
20916
20916
|
|
|
20917
20917
|
var buttonContentStyle = function buttonContentStyle(purpose, appearance, label, Icon) {
|
|
20918
|
-
return Ae(templateObject_3$
|
|
20918
|
+
return Ae(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n display: flex;\n align-items: center;\n position: relative;\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 *::selection {\n ", "\n }\n ", "\n\n ", "\n"], ["\n display: flex;\n align-items: center;\n position: relative;\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 *::selection {\n ", "\n }\n ", "\n\n ", "\n"])), buttonTokens.base, typographyTokens.selection.base, appearance && purpose && Ae(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n ", "\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n "], ["\n ", "\n ", "\n &:hover {\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), Icon && !label && appearance === 'borderless' && Ae(templateObject_2$l || (templateObject_2$l = __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));
|
|
20919
20919
|
};
|
|
20920
20920
|
var ButtonContent = styled.span.withConfig({
|
|
20921
20921
|
displayName: "Buttonstyles__ButtonContent",
|
|
20922
20922
|
componentId: "sc-14dutqk-0"
|
|
20923
|
-
})(templateObject_8$
|
|
20923
|
+
})(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n ", "\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n"], ["\n ", "\n &:focus {\n outline: none;\n }\n\n ", "\n ", "\n"])), function (_a) {
|
|
20924
20924
|
var label = _a.label,
|
|
20925
20925
|
purpose = _a.purpose,
|
|
20926
20926
|
appearance = _a.appearance,
|
|
@@ -20931,39 +20931,39 @@ var ButtonContent = styled.span.withConfig({
|
|
|
20931
20931
|
Icon = _a.Icon,
|
|
20932
20932
|
label = _a.label,
|
|
20933
20933
|
loading = _a.loading;
|
|
20934
|
-
return fullWidth && (!Icon || !label || loading ? Ae(templateObject_4$
|
|
20934
|
+
return fullWidth && (!Icon || !label || loading ? Ae(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "]))) : Ae(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n justify-content: space-between;\n "], ["\n justify-content: space-between;\n "]))));
|
|
20935
20935
|
}, function (_a) {
|
|
20936
20936
|
var size = _a.size,
|
|
20937
20937
|
label = _a.label;
|
|
20938
|
-
return size && (label ? Ae(templateObject_6$
|
|
20938
|
+
return size && (label ? Ae(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].text.base) : Ae(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIcon.base));
|
|
20939
20939
|
});
|
|
20940
20940
|
var ButtonWrapper$1 = styled.button.withConfig({
|
|
20941
20941
|
displayName: "Buttonstyles__ButtonWrapper",
|
|
20942
20942
|
componentId: "sc-14dutqk-1"
|
|
20943
|
-
})(templateObject_10$
|
|
20943
|
+
})(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n display: inline-block;\n border: none;\n cursor: pointer;\n box-shadow: none;\n padding: 0;\n background-color: transparent;\n text-decoration: none;\n ", "\n\n &:focus > ", " {\n outline: ", " solid ", ";\n outline-offset: 2px;\n }\n &:focus {\n outline: none;\n }\n"], ["\n display: inline-block;\n border: none;\n cursor: pointer;\n box-shadow: none;\n padding: 0;\n background-color: transparent;\n text-decoration: none;\n ", "\n\n &:focus > ", " {\n outline: ", " solid ", ";\n outline-offset: 2px;\n }\n &:focus {\n outline: none;\n }\n"])), function (_a) {
|
|
20944
20944
|
var fullWidth = _a.fullWidth;
|
|
20945
|
-
return !fullWidth && Ae(templateObject_9$
|
|
20945
|
+
return !fullWidth && Ae(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n width: fit-content;\n "], ["\n width: fit-content;\n "])));
|
|
20946
20946
|
}, ButtonContent, buttonTokens.focusOutline.width, buttonTokens.focusOutline.color);
|
|
20947
20947
|
var IconWithTextWrapper = styled(IconWrapper$1).withConfig({
|
|
20948
20948
|
displayName: "Buttonstyles__IconWithTextWrapper",
|
|
20949
20949
|
componentId: "sc-14dutqk-2"
|
|
20950
|
-
})(templateObject_13
|
|
20950
|
+
})(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
20951
20951
|
var size = _a.size,
|
|
20952
20952
|
iconPosition = _a.iconPosition;
|
|
20953
|
-
return size && (iconPosition === 'left' ? Ae(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n margin-inline-end: ", ";\n "], ["\n margin-inline-end: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : iconPosition === 'right' ? Ae(templateObject_12
|
|
20953
|
+
return size && (iconPosition === 'left' ? Ae(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n margin-inline-end: ", ";\n "], ["\n margin-inline-end: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : iconPosition === 'right' ? Ae(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin-inline-start: ", ";\n "], ["\n margin-inline-start: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : '');
|
|
20954
20954
|
});
|
|
20955
20955
|
var JustIconWrapper = styled.span.withConfig({
|
|
20956
20956
|
displayName: "Buttonstyles__JustIconWrapper",
|
|
20957
20957
|
componentId: "sc-14dutqk-3"
|
|
20958
|
-
})(templateObject_15
|
|
20958
|
+
})(templateObject_15 || (templateObject_15 = __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) {
|
|
20959
20959
|
var size = _a.size;
|
|
20960
|
-
return size && Ae(templateObject_14
|
|
20960
|
+
return size && Ae(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
20961
20961
|
});
|
|
20962
20962
|
var Label$2 = styled.span.withConfig({
|
|
20963
20963
|
displayName: "Buttonstyles__Label",
|
|
20964
20964
|
componentId: "sc-14dutqk-4"
|
|
20965
|
-
})(templateObject_16
|
|
20966
|
-
var templateObject_1$
|
|
20965
|
+
})(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""])));
|
|
20966
|
+
var templateObject_1$v, templateObject_2$l, templateObject_3$f, templateObject_4$d, templateObject_5$a, templateObject_6$9, templateObject_7$7, templateObject_8$4, templateObject_9$4, templateObject_10$2, templateObject_11$1, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
20967
20967
|
|
|
20968
20968
|
var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20969
20969
|
var label = _a.label,
|
|
@@ -21044,20 +21044,95 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21044
21044
|
}), void 0);
|
|
21045
21045
|
});
|
|
21046
21046
|
|
|
21047
|
+
var Colors$c = ddsBaseTokens.colors,
|
|
21048
|
+
Spacing$h = ddsBaseTokens.spacing;
|
|
21049
|
+
var TextInput$3 = ddsReferenceTokens.textInput;
|
|
21050
|
+
var inputMultilineBase = {
|
|
21051
|
+
paddingBottom: Spacing$h.SizesDdsSpacingLocalX05
|
|
21052
|
+
};
|
|
21053
|
+
var inputMultilineWithLabelBase = {
|
|
21054
|
+
paddingTop: Spacing$h.SizesDdsSpacingLocalX2
|
|
21055
|
+
};
|
|
21056
|
+
var inputMultilineNoLabelBase = {
|
|
21057
|
+
paddingTop: Spacing$h.SizesDdsSpacingLocalX075
|
|
21058
|
+
};
|
|
21059
|
+
var inputLabelMultilineBase = {
|
|
21060
|
+
backgroundColor: Colors$c.DdsColorNeutralsWhite,
|
|
21061
|
+
padding: Spacing$h.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$h.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$h.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
21062
|
+
};
|
|
21063
|
+
var defaultWidth$2 = '320px';
|
|
21064
|
+
var textInputTokens = {
|
|
21065
|
+
general: TextInput$3,
|
|
21066
|
+
focusColor: TextInput$3.input.focus.borderColor,
|
|
21067
|
+
multiline: {
|
|
21068
|
+
base: inputMultilineBase,
|
|
21069
|
+
withLabel: {
|
|
21070
|
+
base: inputMultilineWithLabelBase
|
|
21071
|
+
},
|
|
21072
|
+
noLabel: {
|
|
21073
|
+
base: inputMultilineNoLabelBase
|
|
21074
|
+
}
|
|
21075
|
+
},
|
|
21076
|
+
label: {
|
|
21077
|
+
multiline: {
|
|
21078
|
+
base: inputLabelMultilineBase
|
|
21079
|
+
}
|
|
21080
|
+
},
|
|
21081
|
+
wrapper: {
|
|
21082
|
+
defaultWidth: defaultWidth$2
|
|
21083
|
+
},
|
|
21084
|
+
container: {
|
|
21085
|
+
multiline: {
|
|
21086
|
+
withLabel: {
|
|
21087
|
+
height: '99px'
|
|
21088
|
+
},
|
|
21089
|
+
noLabel: {
|
|
21090
|
+
height: '78px'
|
|
21091
|
+
}
|
|
21092
|
+
}
|
|
21093
|
+
}
|
|
21094
|
+
};
|
|
21095
|
+
|
|
21096
|
+
var Spacing$g = ddsBaseTokens.spacing;
|
|
21097
|
+
var charCounterBase = {
|
|
21098
|
+
padding: Spacing$g.SizesDdsSpacingLocalX025 + " " + Spacing$g.SizesDdsSpacingLocalX05
|
|
21099
|
+
};
|
|
21100
|
+
var charCounterTokens = {
|
|
21101
|
+
base: charCounterBase
|
|
21102
|
+
};
|
|
21103
|
+
|
|
21104
|
+
var Wrapper$3 = styled(Typography).withConfig({
|
|
21105
|
+
displayName: "CharCounter__Wrapper",
|
|
21106
|
+
componentId: "sc-qty1z2-0"
|
|
21107
|
+
})(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
21108
|
+
|
|
21109
|
+
function CharCounter(_a) {
|
|
21110
|
+
var current = _a.current,
|
|
21111
|
+
max = _a.max;
|
|
21112
|
+
return jsxRuntime.jsxs(Wrapper$3, __assign({
|
|
21113
|
+
forwardedAs: "div",
|
|
21114
|
+
typographyType: "supportingStyleHelperText01"
|
|
21115
|
+
}, {
|
|
21116
|
+
children: [current, "/", max]
|
|
21117
|
+
}), void 0);
|
|
21118
|
+
}
|
|
21119
|
+
var templateObject_1$u;
|
|
21120
|
+
|
|
21047
21121
|
var Colors$b = ddsBaseTokens.colors,
|
|
21048
|
-
Spacing$
|
|
21122
|
+
Spacing$f = ddsBaseTokens.spacing,
|
|
21049
21123
|
FontPackages$b = ddsBaseTokens.fontPackages;
|
|
21050
21124
|
var TextInput$2 = ddsReferenceTokens.textInput;
|
|
21051
21125
|
var inputBase$2 = {
|
|
21052
21126
|
border: "1px solid " + Colors$b.DdsColorNeutralsGray5
|
|
21053
21127
|
};
|
|
21054
21128
|
var inputWithLabelBase = {
|
|
21055
|
-
padding: Spacing$
|
|
21129
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075NumberPx + FontPackages$b.supportingStyle_label_01.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_label_01.numbers.fontSizeNumber + "px " + Spacing$f.SizesDdsSpacingLocalX1 + " " + Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21056
21130
|
};
|
|
21057
21131
|
var inputNoLabelBase$1 = {
|
|
21058
|
-
padding: Spacing$
|
|
21132
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1 + " " + Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21059
21133
|
};
|
|
21060
21134
|
var inputDisabledBase = {
|
|
21135
|
+
color: Colors$b.DdsColorNeutralsGray7,
|
|
21061
21136
|
backgroundColor: Colors$b.DdsColorNeutralsGray1
|
|
21062
21137
|
};
|
|
21063
21138
|
var inputErrorBase = {
|
|
@@ -21073,52 +21148,22 @@ var inputErrorFocusBase = {
|
|
|
21073
21148
|
borderColor: Colors$b.DdsColorDangerDarker,
|
|
21074
21149
|
boxShadow: "0 0 0 1px " + Colors$b.DdsColorDangerDarker
|
|
21075
21150
|
};
|
|
21076
|
-
var inputMultilineBase = {
|
|
21077
|
-
paddingBottom: Spacing$g.SizesDdsSpacingLocalX05
|
|
21078
|
-
};
|
|
21079
|
-
var inputMultilineWithLabelBase = {
|
|
21080
|
-
paddingTop: Spacing$g.SizesDdsSpacingLocalX2
|
|
21081
|
-
};
|
|
21082
|
-
var inputMultilineNoLabelBase = {
|
|
21083
|
-
paddingTop: Spacing$g.SizesDdsSpacingLocalX075
|
|
21084
|
-
};
|
|
21085
21151
|
var inputReadOnlyBase = {
|
|
21086
21152
|
border: 'none',
|
|
21087
21153
|
backgroundColor: 'transparent',
|
|
21088
|
-
paddingLeft: Spacing$
|
|
21154
|
+
paddingLeft: Spacing$f.SizesDdsSpacingLocalX1
|
|
21089
21155
|
};
|
|
21090
21156
|
var inputLabelBase = {
|
|
21091
|
-
padding: Spacing$
|
|
21157
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21092
21158
|
};
|
|
21093
|
-
var
|
|
21094
|
-
|
|
21095
|
-
multiline: {
|
|
21096
|
-
base: {
|
|
21097
|
-
backgroundColor: Colors$b.DdsColorNeutralsWhite,
|
|
21098
|
-
padding: Spacing$g.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$g.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$g.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
21099
|
-
}
|
|
21100
|
-
},
|
|
21101
|
-
hover: {
|
|
21102
|
-
base: {
|
|
21103
|
-
color: TextInput$2.label.hover.textColor
|
|
21104
|
-
}
|
|
21105
|
-
},
|
|
21106
|
-
focus: {
|
|
21107
|
-
base: {
|
|
21108
|
-
color: TextInput$2.label.focus.textColor
|
|
21109
|
-
}
|
|
21110
|
-
}
|
|
21159
|
+
var inputLabelHoverBase = {
|
|
21160
|
+
color: TextInput$2.label.hover.textColor
|
|
21111
21161
|
};
|
|
21112
|
-
var
|
|
21113
|
-
|
|
21114
|
-
|
|
21115
|
-
|
|
21116
|
-
|
|
21117
|
-
},
|
|
21118
|
-
noLabel: {
|
|
21119
|
-
height: '78px'
|
|
21120
|
-
}
|
|
21121
|
-
}
|
|
21162
|
+
var inputLabelFocusBase = {
|
|
21163
|
+
color: TextInput$2.label.focus.textColor
|
|
21164
|
+
};
|
|
21165
|
+
var inputLabelDisabledBase = {
|
|
21166
|
+
color: Colors$b.DdsColorNeutralsGray6
|
|
21122
21167
|
};
|
|
21123
21168
|
var inputTokens = {
|
|
21124
21169
|
general: TextInput$2,
|
|
@@ -21136,15 +21181,6 @@ var inputTokens = {
|
|
|
21136
21181
|
disabled: {
|
|
21137
21182
|
base: inputDisabledBase
|
|
21138
21183
|
},
|
|
21139
|
-
multiline: {
|
|
21140
|
-
base: inputMultilineBase,
|
|
21141
|
-
withLabel: {
|
|
21142
|
-
base: inputMultilineWithLabelBase
|
|
21143
|
-
},
|
|
21144
|
-
noLabel: {
|
|
21145
|
-
base: inputMultilineNoLabelBase
|
|
21146
|
-
}
|
|
21147
|
-
},
|
|
21148
21184
|
error: {
|
|
21149
21185
|
base: inputErrorBase,
|
|
21150
21186
|
hover: {
|
|
@@ -21154,38 +21190,20 @@ var inputTokens = {
|
|
|
21154
21190
|
base: inputErrorFocusBase
|
|
21155
21191
|
}
|
|
21156
21192
|
},
|
|
21157
|
-
label:
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
}
|
|
21168
|
-
|
|
21169
|
-
base: charCounterBase
|
|
21193
|
+
label: {
|
|
21194
|
+
base: inputLabelBase,
|
|
21195
|
+
hover: {
|
|
21196
|
+
base: inputLabelHoverBase
|
|
21197
|
+
},
|
|
21198
|
+
focus: {
|
|
21199
|
+
base: inputLabelFocusBase
|
|
21200
|
+
},
|
|
21201
|
+
disabled: {
|
|
21202
|
+
base: inputLabelDisabledBase
|
|
21203
|
+
}
|
|
21204
|
+
}
|
|
21170
21205
|
};
|
|
21171
21206
|
|
|
21172
|
-
var Wrapper$3 = styled(Typography).withConfig({
|
|
21173
|
-
displayName: "CharCounter__Wrapper",
|
|
21174
|
-
componentId: "sc-qty1z2-0"
|
|
21175
|
-
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
21176
|
-
|
|
21177
|
-
function CharCounter(_a) {
|
|
21178
|
-
var current = _a.current,
|
|
21179
|
-
max = _a.max;
|
|
21180
|
-
return jsxRuntime.jsxs(Wrapper$3, __assign({
|
|
21181
|
-
forwardedAs: "div",
|
|
21182
|
-
typographyType: "supportingStyleHelperText01"
|
|
21183
|
-
}, {
|
|
21184
|
-
children: [current, "/", max]
|
|
21185
|
-
}), void 0);
|
|
21186
|
-
}
|
|
21187
|
-
var templateObject_1$s;
|
|
21188
|
-
|
|
21189
21207
|
var TextInput$1 = ddsReferenceTokens.textInput;
|
|
21190
21208
|
|
|
21191
21209
|
var stylingBase = __assign({
|
|
@@ -21208,45 +21226,64 @@ var hoverBase$1 = {
|
|
|
21208
21226
|
backgroundColor: TextInput$1.input.hover.backgroundColor
|
|
21209
21227
|
};
|
|
21210
21228
|
var inputFieldStylingBase = function inputFieldStylingBase() {
|
|
21211
|
-
return Ae(templateObject_1$
|
|
21229
|
+
return Ae(templateObject_1$t || (templateObject_1$t = __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 &::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 &::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$1, hoverBase$1);
|
|
21212
21230
|
};
|
|
21213
|
-
var templateObject_1$
|
|
21214
|
-
|
|
21215
|
-
var scrollbarStyling = Ae(templateObject_1$q || (templateObject_1$q = __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 /* 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"])), ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.35)', ddsBaseTokens.colors.DdsColorPrimaryDarkest.slice(0, -2) + '0.5)');
|
|
21216
|
-
var templateObject_1$q;
|
|
21231
|
+
var templateObject_1$t;
|
|
21217
21232
|
|
|
21218
|
-
var
|
|
21233
|
+
var inputStyling = function inputStyling(_a) {
|
|
21219
21234
|
var readOnly = _a.readOnly,
|
|
21220
21235
|
errorMessage = _a.errorMessage,
|
|
21221
21236
|
label = _a.label,
|
|
21222
21237
|
disabled = _a.disabled;
|
|
21223
|
-
return Ae(templateObject_6$
|
|
21238
|
+
return Ae(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n ", "\n ", "\n box-sizing: border-box;\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 ", ";\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$s || (templateObject_1$s = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.withLabel.base) : Ae(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.noLabel.base), inputTokens.label.hover.base, inputTokens.label.focus.base, disabled && Ae(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n cursor: not-allowed;\n ", "\n "], ["\n cursor: not-allowed;\n ", "\n "])), inputTokens.disabled.base), errorMessage && Ae(templateObject_4$c || (templateObject_4$c = __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$9 || (templateObject_5$9 = __makeTemplateObject(["\n cursor: default;\n ", "\n "], ["\n cursor: default;\n ", "\n "])), inputTokens.readOnly.base));
|
|
21224
21239
|
};
|
|
21225
|
-
|
|
21226
21240
|
var Input$2 = styled.input.withConfig({
|
|
21227
|
-
displayName: "
|
|
21228
|
-
componentId: "sc-
|
|
21229
|
-
})(templateObject_7$
|
|
21241
|
+
displayName: "Inputstyles__Input",
|
|
21242
|
+
componentId: "sc-1oz9x8w-0"
|
|
21243
|
+
})(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
21230
21244
|
var label = _a.label,
|
|
21231
21245
|
disabled = _a.disabled,
|
|
21232
21246
|
readOnly = _a.readOnly,
|
|
21233
21247
|
errorMessage = _a.errorMessage;
|
|
21234
|
-
return
|
|
21248
|
+
return inputStyling({
|
|
21235
21249
|
readOnly: readOnly,
|
|
21236
21250
|
errorMessage: errorMessage,
|
|
21237
21251
|
label: label,
|
|
21238
21252
|
disabled: disabled
|
|
21239
21253
|
});
|
|
21240
21254
|
});
|
|
21255
|
+
var SingleLineLabel = styled(Typography).withConfig({
|
|
21256
|
+
displayName: "Inputstyles__SingleLineLabel",
|
|
21257
|
+
componentId: "sc-1oz9x8w-1"
|
|
21258
|
+
})(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n transition: color 0.2s, background-color 0.2s;\n ", "\n ", "\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n transition: color 0.2s, background-color 0.2s;\n ", "\n ", "\n"])), inputTokens.label.base, function (_a) {
|
|
21259
|
+
var disabled = _a.disabled;
|
|
21260
|
+
return disabled && Ae(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.label.disabled.base);
|
|
21261
|
+
});
|
|
21262
|
+
var InputContainer$2 = styled.div.withConfig({
|
|
21263
|
+
displayName: "Inputstyles__InputContainer",
|
|
21264
|
+
componentId: "sc-1oz9x8w-2"
|
|
21265
|
+
})(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
21266
|
+
var OuterInputContainer = styled.div.withConfig({
|
|
21267
|
+
displayName: "Inputstyles__OuterInputContainer",
|
|
21268
|
+
componentId: "sc-1oz9x8w-3"
|
|
21269
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n width: ", ";\n"])), function (_a) {
|
|
21270
|
+
var width = _a.width;
|
|
21271
|
+
return width;
|
|
21272
|
+
});
|
|
21273
|
+
var templateObject_1$s, templateObject_2$k, templateObject_3$e, templateObject_4$c, templateObject_5$9, templateObject_6$8, templateObject_7$6, templateObject_8$3, templateObject_9$3, templateObject_10$1, templateObject_11;
|
|
21274
|
+
|
|
21275
|
+
var scrollbarStyling = Ae(templateObject_1$r || (templateObject_1$r = __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)');
|
|
21276
|
+
var templateObject_1$r;
|
|
21277
|
+
|
|
21241
21278
|
var TextArea = styled.textarea.withConfig({
|
|
21242
21279
|
displayName: "TextInputstyles__TextArea",
|
|
21243
|
-
componentId: "sc-165zflr-
|
|
21244
|
-
})(
|
|
21280
|
+
componentId: "sc-165zflr-0"
|
|
21281
|
+
})(templateObject_3$d || (templateObject_3$d = __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) {
|
|
21245
21282
|
var label = _a.label,
|
|
21246
21283
|
disabled = _a.disabled,
|
|
21247
21284
|
readOnly = _a.readOnly,
|
|
21248
21285
|
errorMessage = _a.errorMessage;
|
|
21249
|
-
return
|
|
21286
|
+
return inputStyling({
|
|
21250
21287
|
readOnly: readOnly,
|
|
21251
21288
|
errorMessage: errorMessage,
|
|
21252
21289
|
label: label,
|
|
@@ -21254,61 +21291,54 @@ var TextArea = styled.textarea.withConfig({
|
|
|
21254
21291
|
});
|
|
21255
21292
|
}, scrollbarStyling, function (_a) {
|
|
21256
21293
|
var label = _a.label;
|
|
21257
|
-
return label ?
|
|
21258
|
-
},
|
|
21294
|
+
return label ? textInputTokens.container.multiline.withLabel.height : textInputTokens.container.multiline.noLabel.height;
|
|
21295
|
+
}, textInputTokens.multiline.base, function (_a) {
|
|
21259
21296
|
var label = _a.label;
|
|
21260
|
-
return label ? Ae(
|
|
21297
|
+
return label ? Ae(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.withLabel.base) : Ae(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), textInputTokens.multiline.noLabel.base);
|
|
21261
21298
|
}, function (_a) {
|
|
21262
21299
|
var errorMessage = _a.errorMessage;
|
|
21263
21300
|
return errorMessage ? inputTokens.error.hover.base.backgroundColor : inputTokens.general.input.hover.backgroundColor;
|
|
21264
21301
|
});
|
|
21265
|
-
var
|
|
21266
|
-
displayName: "
|
|
21267
|
-
componentId: "sc-165zflr-
|
|
21268
|
-
})(
|
|
21269
|
-
var Label$1 = styled(
|
|
21302
|
+
var MessageContainer = styled.div.withConfig({
|
|
21303
|
+
displayName: "TextInputstyles__MessageContainer",
|
|
21304
|
+
componentId: "sc-165zflr-1"
|
|
21305
|
+
})(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n"], ["\n display: flex;\n justify-content: space-between;\n"])));
|
|
21306
|
+
var Label$1 = styled(SingleLineLabel).withConfig({
|
|
21270
21307
|
displayName: "TextInputstyles__Label",
|
|
21271
|
-
componentId: "sc-165zflr-
|
|
21272
|
-
})(
|
|
21308
|
+
componentId: "sc-165zflr-2"
|
|
21309
|
+
})(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), function (_a) {
|
|
21273
21310
|
var multiline = _a.multiline;
|
|
21274
|
-
return multiline && Ae(
|
|
21311
|
+
return multiline && Ae(templateObject_5$8 || (templateObject_5$8 = __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);
|
|
21275
21312
|
}, function (_a) {
|
|
21276
21313
|
var disabled = _a.disabled,
|
|
21277
21314
|
multiline = _a.multiline;
|
|
21278
|
-
return disabled && multiline && Ae(
|
|
21315
|
+
return disabled && multiline && Ae(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), inputTokens.disabled.base.backgroundColor);
|
|
21279
21316
|
}, function (_a) {
|
|
21280
21317
|
var readOnly = _a.readOnly,
|
|
21281
21318
|
multiline = _a.multiline;
|
|
21282
|
-
return readOnly && multiline && Ae(
|
|
21319
|
+
return readOnly && multiline && Ae(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), inputTokens.readOnly.base.backgroundColor);
|
|
21283
21320
|
});
|
|
21284
|
-
var
|
|
21285
|
-
displayName: "
|
|
21286
|
-
componentId: "sc-165zflr-
|
|
21287
|
-
})(
|
|
21288
|
-
var width = _a.width;
|
|
21289
|
-
return width;
|
|
21290
|
-
});
|
|
21291
|
-
var InputFieldContainer = styled.div.withConfig({
|
|
21292
|
-
displayName: "TextInputstyles__InputFieldContainer",
|
|
21293
|
-
componentId: "sc-165zflr-5"
|
|
21294
|
-
})(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n ", "\n height: ", ";\n"], ["\n position: relative;\n width: 100%;\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21321
|
+
var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
21322
|
+
displayName: "TextInputstyles__InputContainer",
|
|
21323
|
+
componentId: "sc-165zflr-3"
|
|
21324
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n height: ", ";\n"], ["\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21295
21325
|
var multiline = _a.multiline;
|
|
21296
|
-
return multiline && Ae(
|
|
21326
|
+
return multiline && Ae(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "])));
|
|
21297
21327
|
}, function (_a) {
|
|
21298
21328
|
var multiline = _a.multiline,
|
|
21299
21329
|
label = _a.label;
|
|
21300
21330
|
|
|
21301
21331
|
if (multiline) {
|
|
21302
21332
|
if (label) {
|
|
21303
|
-
return
|
|
21333
|
+
return textInputTokens.container.multiline.withLabel.height;
|
|
21304
21334
|
}
|
|
21305
21335
|
|
|
21306
|
-
return
|
|
21336
|
+
return textInputTokens.container.multiline.noLabel.height;
|
|
21307
21337
|
}
|
|
21308
21338
|
});
|
|
21309
|
-
var templateObject_1$
|
|
21339
|
+
var templateObject_1$q, templateObject_2$j, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$2, templateObject_9$2, templateObject_10;
|
|
21310
21340
|
|
|
21311
|
-
var nextUniqueId$
|
|
21341
|
+
var nextUniqueId$3 = 0;
|
|
21312
21342
|
var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21313
21343
|
var label = _a.label,
|
|
21314
21344
|
disabled = _a.disabled,
|
|
@@ -21321,7 +21351,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21321
21351
|
onChange = _a.onChange,
|
|
21322
21352
|
id = _a.id,
|
|
21323
21353
|
_b = _a.width,
|
|
21324
|
-
width = _b === void 0 ?
|
|
21354
|
+
width = _b === void 0 ? textInputTokens.wrapper.defaultWidth : _b,
|
|
21325
21355
|
_c = _a.type,
|
|
21326
21356
|
type = _c === void 0 ? 'text' : _c,
|
|
21327
21357
|
className = _a.className,
|
|
@@ -21371,35 +21401,37 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21371
21401
|
}
|
|
21372
21402
|
};
|
|
21373
21403
|
|
|
21374
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$
|
|
21404
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$3++)[0];
|
|
21375
21405
|
|
|
21376
21406
|
var generalInputProps = __assign({
|
|
21377
21407
|
id: uniqueId,
|
|
21378
21408
|
label: label,
|
|
21379
21409
|
errorMessage: errorMessage,
|
|
21380
|
-
disabled: disabled
|
|
21410
|
+
disabled: disabled,
|
|
21381
21411
|
readOnly: readOnly,
|
|
21412
|
+
tabIndex: readOnly ? -1 : 0,
|
|
21382
21413
|
maxLength: maxLength
|
|
21383
21414
|
}, rest);
|
|
21384
21415
|
|
|
21385
|
-
var wrapperProps = {
|
|
21386
|
-
className: className,
|
|
21387
|
-
style: style,
|
|
21388
|
-
width: width
|
|
21389
|
-
};
|
|
21390
21416
|
var labelProps = {
|
|
21391
21417
|
multiline: multiline,
|
|
21392
21418
|
disabled: disabled,
|
|
21393
21419
|
readOnly: readOnly
|
|
21394
21420
|
};
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21421
|
+
var inputContainerProps = {
|
|
21422
|
+
style: multiline ? {
|
|
21423
|
+
minHeight: parentHeight
|
|
21424
|
+
} : {},
|
|
21425
|
+
multiline: multiline,
|
|
21426
|
+
label: label
|
|
21427
|
+
};
|
|
21428
|
+
var outerInputContainerProps = {
|
|
21429
|
+
className: className,
|
|
21430
|
+
style: style,
|
|
21431
|
+
width: width
|
|
21432
|
+
};
|
|
21433
|
+
return jsxRuntime.jsxs(OuterInputContainer, __assign({}, outerInputContainerProps, {
|
|
21434
|
+
children: [jsxRuntime.jsxs(InputContainer$1, __assign({}, inputContainerProps, {
|
|
21403
21435
|
children: [multiline ? jsxRuntime.jsx(TextArea, __assign({
|
|
21404
21436
|
ref: textAreaRef,
|
|
21405
21437
|
style: {
|
|
@@ -21419,7 +21451,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
21419
21451
|
}, {
|
|
21420
21452
|
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
21421
21453
|
}), void 0)]
|
|
21422
|
-
}), void 0), jsxRuntime.jsxs(
|
|
21454
|
+
}), void 0), jsxRuntime.jsxs(MessageContainer, {
|
|
21423
21455
|
children: [errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
21424
21456
|
message: errorMessage,
|
|
21425
21457
|
messageType: "error"
|
|
@@ -28501,7 +28533,7 @@ var prefix = 'dds-select';
|
|
|
28501
28533
|
var Label = styled(Typography).withConfig({
|
|
28502
28534
|
displayName: "Selectstyles__Label",
|
|
28503
28535
|
componentId: "sc-19jkd5s-0"
|
|
28504
|
-
})(templateObject_1$
|
|
28536
|
+
})(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ", "\n"])), selectTokens.label.base);
|
|
28505
28537
|
var Container$5 = styled.div.withConfig({
|
|
28506
28538
|
displayName: "Selectstyles__Container",
|
|
28507
28539
|
componentId: "sc-19jkd5s-1"
|
|
@@ -28598,7 +28630,7 @@ var CustomStyles = {
|
|
|
28598
28630
|
return {};
|
|
28599
28631
|
}
|
|
28600
28632
|
};
|
|
28601
|
-
var templateObject_1$
|
|
28633
|
+
var templateObject_1$p, templateObject_2$i, templateObject_3$c, templateObject_4$a, templateObject_5$7, templateObject_6$6, templateObject_7$4, templateObject_8$1, templateObject_9$1;
|
|
28602
28634
|
|
|
28603
28635
|
var DdsOption = components.Option,
|
|
28604
28636
|
NoOptionsMessage = components.NoOptionsMessage;
|
|
@@ -28627,7 +28659,7 @@ function searchFilter(text, search) {
|
|
|
28627
28659
|
var searchFilterRegex = new RegExp("(?:^|[\\s-(])" + escapeRegexCharacters(search.toLowerCase()));
|
|
28628
28660
|
return searchFilterRegex.test(text.toLowerCase());
|
|
28629
28661
|
}
|
|
28630
|
-
var nextUniqueId$
|
|
28662
|
+
var nextUniqueId$2 = 0;
|
|
28631
28663
|
var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28632
28664
|
var id = _a.id,
|
|
28633
28665
|
label = _a.label,
|
|
@@ -28649,7 +28681,7 @@ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28649
28681
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
28650
28682
|
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "value", "defaultValue", "width", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
28651
28683
|
|
|
28652
|
-
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$
|
|
28684
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$2++)[0];
|
|
28653
28685
|
var wrapperProps = {
|
|
28654
28686
|
width: width
|
|
28655
28687
|
};
|
|
@@ -28866,7 +28898,7 @@ var Container$4 = styled.div.withConfig({
|
|
|
28866
28898
|
componentId: "sc-bf2l65-0"
|
|
28867
28899
|
})(templateObject_2$h || (templateObject_2$h = __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) {
|
|
28868
28900
|
var purpose = _a.purpose;
|
|
28869
|
-
return purpose && Ae(templateObject_1$
|
|
28901
|
+
return purpose && Ae(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
|
|
28870
28902
|
});
|
|
28871
28903
|
var MessageIconWrapper$1 = styled(IconWrapper$1).withConfig({
|
|
28872
28904
|
displayName: "GlobalMessage__MessageIconWrapper",
|
|
@@ -28927,7 +28959,7 @@ var GlobalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28927
28959
|
}, void 0)]
|
|
28928
28960
|
}), void 0) : null;
|
|
28929
28961
|
});
|
|
28930
|
-
var templateObject_1$
|
|
28962
|
+
var templateObject_1$o, templateObject_2$h, templateObject_3$b, templateObject_4$9, templateObject_5$6, templateObject_6$5;
|
|
28931
28963
|
|
|
28932
28964
|
var CheckCircleOutlined = createCommonjsModule(function (module, exports) {
|
|
28933
28965
|
|
|
@@ -29136,7 +29168,7 @@ var Container$3 = styled.div.withConfig({
|
|
|
29136
29168
|
return layout === 'vertical' ? 'column' : 'row';
|
|
29137
29169
|
}, function (_a) {
|
|
29138
29170
|
var layout = _a.layout;
|
|
29139
|
-
return layout === 'horisontal' && Ae(templateObject_1$
|
|
29171
|
+
return layout === 'horisontal' && Ae(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n align-items: center;\n justify-content: space-between;\n "], ["\n align-items: center;\n justify-content: space-between;\n "])));
|
|
29140
29172
|
}, typographyTokens.selection.base, function (_a) {
|
|
29141
29173
|
var purpose = _a.purpose;
|
|
29142
29174
|
return purpose && Ae(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), localMessageTokens.container.base, localMessageTokens.container[purpose].base);
|
|
@@ -29232,7 +29264,7 @@ var LocalMessage = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29232
29264
|
}, void 0)
|
|
29233
29265
|
}), void 0) : null;
|
|
29234
29266
|
});
|
|
29235
|
-
var templateObject_1$
|
|
29267
|
+
var templateObject_1$n, templateObject_2$g, templateObject_3$a, templateObject_4$8, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8, templateObject_9;
|
|
29236
29268
|
|
|
29237
29269
|
var SearchOutlined = createCommonjsModule(function (module, exports) {
|
|
29238
29270
|
|
|
@@ -29314,7 +29346,7 @@ var Input = styled.input.withConfig({
|
|
|
29314
29346
|
componentId: "sc-1ax3s9s-0"
|
|
29315
29347
|
})(templateObject_2$f || (templateObject_2$f = __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) {
|
|
29316
29348
|
var componentSize = _a.componentSize;
|
|
29317
|
-
return componentSize && Ae(templateObject_1$
|
|
29349
|
+
return componentSize && Ae(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), searchTokens.input[componentSize].base);
|
|
29318
29350
|
}, searchTokens.input.spaceLeft);
|
|
29319
29351
|
var IconWrapper = styled.span.withConfig({
|
|
29320
29352
|
displayName: "Search__IconWrapper",
|
|
@@ -29383,7 +29415,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29383
29415
|
}, void 0)]
|
|
29384
29416
|
}), void 0);
|
|
29385
29417
|
});
|
|
29386
|
-
var templateObject_1$
|
|
29418
|
+
var templateObject_1$m, templateObject_2$f, templateObject_3$9, templateObject_4$7, templateObject_5$4, templateObject_6$3, templateObject_7$2;
|
|
29387
29419
|
|
|
29388
29420
|
var Colors$7 = ddsBaseTokens.colors,
|
|
29389
29421
|
Spacing$a = ddsBaseTokens.spacing;
|
|
@@ -29437,7 +29469,7 @@ var StyledTable = styled.table.withConfig({
|
|
|
29437
29469
|
componentId: "sc-bw0w0a-0"
|
|
29438
29470
|
})(templateObject_3$8 || (templateObject_3$8 = __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) {
|
|
29439
29471
|
var density = _a.density;
|
|
29440
|
-
return density && Ae(templateObject_1$
|
|
29472
|
+
return density && Ae(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n td,\n th {\n ", "\n }\n "], ["\n td,\n th {\n ", "\n }\n "])), cellTokens.density[density].base);
|
|
29441
29473
|
}, function (_a) {
|
|
29442
29474
|
var stickyHeader = _a.stickyHeader;
|
|
29443
29475
|
return stickyHeader && Ae(templateObject_2$e || (templateObject_2$e = __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 "])));
|
|
@@ -29457,12 +29489,12 @@ var Table = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29457
29489
|
children: children
|
|
29458
29490
|
}), void 0);
|
|
29459
29491
|
});
|
|
29460
|
-
var templateObject_1$
|
|
29492
|
+
var templateObject_1$l, templateObject_2$e, templateObject_3$8;
|
|
29461
29493
|
|
|
29462
29494
|
var StyledBody = styled.tbody.withConfig({
|
|
29463
29495
|
displayName: "Body__StyledBody",
|
|
29464
29496
|
componentId: "sc-67qjfs-0"
|
|
29465
|
-
})(templateObject_1$
|
|
29497
|
+
})(templateObject_1$k || (templateObject_1$k = __makeTemplateObject([""], [""])));
|
|
29466
29498
|
var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29467
29499
|
var children = _a.children,
|
|
29468
29500
|
rest = __rest(_a, ["children"]);
|
|
@@ -29475,12 +29507,12 @@ var Body$1 = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29475
29507
|
children: children
|
|
29476
29508
|
}), void 0);
|
|
29477
29509
|
});
|
|
29478
|
-
var templateObject_1$
|
|
29510
|
+
var templateObject_1$k;
|
|
29479
29511
|
|
|
29480
29512
|
var StyledHead = styled.thead.withConfig({
|
|
29481
29513
|
displayName: "Head__StyledHead",
|
|
29482
29514
|
componentId: "sc-vzd2kv-0"
|
|
29483
|
-
})(templateObject_1$
|
|
29515
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([""], [""])));
|
|
29484
29516
|
var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29485
29517
|
var children = _a.children,
|
|
29486
29518
|
rest = __rest(_a, ["children"]);
|
|
@@ -29493,7 +29525,7 @@ var Head = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29493
29525
|
children: children
|
|
29494
29526
|
}), void 0);
|
|
29495
29527
|
});
|
|
29496
|
-
var templateObject_1$
|
|
29528
|
+
var templateObject_1$j;
|
|
29497
29529
|
|
|
29498
29530
|
var Colors$6 = ddsBaseTokens.colors,
|
|
29499
29531
|
FontPackages$6 = ddsBaseTokens.fontPackages,
|
|
@@ -29561,7 +29593,7 @@ var rowTokens = {
|
|
|
29561
29593
|
};
|
|
29562
29594
|
|
|
29563
29595
|
var bodyStyles = function bodyStyles(mode, selected) {
|
|
29564
|
-
return Ae(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$
|
|
29596
|
+
return Ae(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.mode[mode].base), selected && Ae(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), rowTokens.body.selected.base));
|
|
29565
29597
|
};
|
|
29566
29598
|
|
|
29567
29599
|
var StyledRow = styled.tr.withConfig({
|
|
@@ -29596,12 +29628,12 @@ var Row = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29596
29628
|
children: children
|
|
29597
29629
|
}), void 0);
|
|
29598
29630
|
});
|
|
29599
|
-
var templateObject_1$
|
|
29631
|
+
var templateObject_1$i, templateObject_2$d, templateObject_3$7, templateObject_4$6, templateObject_5$3, templateObject_6$2, templateObject_7$1;
|
|
29600
29632
|
|
|
29601
29633
|
var layoutStyle = function layoutStyle(layout) {
|
|
29602
29634
|
switch (layout) {
|
|
29603
29635
|
case 'center':
|
|
29604
|
-
return Ae(templateObject_1$
|
|
29636
|
+
return Ae(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
|
|
29605
29637
|
|
|
29606
29638
|
case 'right':
|
|
29607
29639
|
return Ae(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n justify-content: flex-end;\n "], ["\n justify-content: flex-end;\n "])));
|
|
@@ -29667,7 +29699,7 @@ var Cell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29667
29699
|
}), void 0)
|
|
29668
29700
|
}), void 0);
|
|
29669
29701
|
});
|
|
29670
|
-
var templateObject_1$
|
|
29702
|
+
var templateObject_1$h, templateObject_2$c, templateObject_3$6, templateObject_4$5, templateObject_5$2, templateObject_6$1;
|
|
29671
29703
|
|
|
29672
29704
|
var KeyboardArrowDown = createCommonjsModule(function (module, exports) {
|
|
29673
29705
|
|
|
@@ -29744,7 +29776,7 @@ var UnfoldMoreIcon = /*@__PURE__*/getDefaultExportFromCjs(UnfoldMore);
|
|
|
29744
29776
|
var SortIconWrapper = styled(IconWrapper$1).withConfig({
|
|
29745
29777
|
displayName: "SortCell__SortIconWrapper",
|
|
29746
29778
|
componentId: "sc-1l3jzvh-0"
|
|
29747
|
-
})(templateObject_1$
|
|
29779
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cellTokens.head.sortCell.icon.base);
|
|
29748
29780
|
var StyledCell = styled(Cell).withConfig({
|
|
29749
29781
|
displayName: "SortCell__StyledCell",
|
|
29750
29782
|
componentId: "sc-1l3jzvh-1"
|
|
@@ -29773,12 +29805,12 @@ var SortCell = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29773
29805
|
children: [children, " ", IconRenderer(isSorted, sortOrder)]
|
|
29774
29806
|
}), void 0);
|
|
29775
29807
|
});
|
|
29776
|
-
var templateObject_1$
|
|
29808
|
+
var templateObject_1$g, templateObject_2$b;
|
|
29777
29809
|
|
|
29778
29810
|
var StyledFoot = styled.tfoot.withConfig({
|
|
29779
29811
|
displayName: "Foot__StyledFoot",
|
|
29780
29812
|
componentId: "sc-tfpehd-0"
|
|
29781
|
-
})(templateObject_1$
|
|
29813
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
|
|
29782
29814
|
var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29783
29815
|
var children = _a.children,
|
|
29784
29816
|
rest = __rest(_a, ["children"]);
|
|
@@ -29791,14 +29823,14 @@ var Foot = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29791
29823
|
children: children
|
|
29792
29824
|
}), void 0);
|
|
29793
29825
|
});
|
|
29794
|
-
var templateObject_1$
|
|
29826
|
+
var templateObject_1$f;
|
|
29795
29827
|
|
|
29796
29828
|
var Wrapper$1 = styled.div.withConfig({
|
|
29797
29829
|
displayName: "TableWrapper__Wrapper",
|
|
29798
29830
|
componentId: "sc-eb384b-0"
|
|
29799
29831
|
})(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (_a) {
|
|
29800
29832
|
var overflowX = _a.overflowX;
|
|
29801
|
-
return overflowX && Ae(templateObject_1$
|
|
29833
|
+
return overflowX && Ae(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n overflow-x: auto;\n "], ["\n overflow-x: auto;\n "])));
|
|
29802
29834
|
}, scrollbarStyling);
|
|
29803
29835
|
var TableWrapper = function TableWrapper(_a) {
|
|
29804
29836
|
var children = _a.children,
|
|
@@ -29845,7 +29877,7 @@ var TableWrapper = function TableWrapper(_a) {
|
|
|
29845
29877
|
children: children
|
|
29846
29878
|
}), void 0);
|
|
29847
29879
|
};
|
|
29848
|
-
var templateObject_1$
|
|
29880
|
+
var templateObject_1$e, templateObject_2$a;
|
|
29849
29881
|
|
|
29850
29882
|
var Breadcrumb = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29851
29883
|
var children = _a.children,
|
|
@@ -29931,7 +29963,7 @@ var breadcrumbTokens = {
|
|
|
29931
29963
|
var List$2 = styled.ol.withConfig({
|
|
29932
29964
|
displayName: "Breadcrumbs__List",
|
|
29933
29965
|
componentId: "sc-xdj21o-0"
|
|
29934
|
-
})(templateObject_1$
|
|
29966
|
+
})(templateObject_1$d || (templateObject_1$d = __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"])));
|
|
29935
29967
|
var ListItem$2 = styled.li.withConfig({
|
|
29936
29968
|
displayName: "Breadcrumbs__ListItem",
|
|
29937
29969
|
componentId: "sc-xdj21o-1"
|
|
@@ -29975,7 +30007,7 @@ var Breadcrumbs = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29975
30007
|
}, void 0)
|
|
29976
30008
|
}), void 0);
|
|
29977
30009
|
});
|
|
29978
|
-
var templateObject_1$
|
|
30010
|
+
var templateObject_1$d, templateObject_2$9, templateObject_3$5, templateObject_4$4;
|
|
29979
30011
|
|
|
29980
30012
|
var ChevronLeftOutlined = createCommonjsModule(function (module, exports) {
|
|
29981
30013
|
|
|
@@ -30135,7 +30167,7 @@ var paginationTokens = {
|
|
|
30135
30167
|
var Nav = styled.nav.withConfig({
|
|
30136
30168
|
displayName: "Pagination__Nav",
|
|
30137
30169
|
componentId: "sc-5ltegq-0"
|
|
30138
|
-
})(templateObject_1$
|
|
30170
|
+
})(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
30139
30171
|
var List$1 = styled.ol.withConfig({
|
|
30140
30172
|
displayName: "Pagination__List",
|
|
30141
30173
|
componentId: "sc-5ltegq-1"
|
|
@@ -30336,7 +30368,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30336
30368
|
}, void 0), navigationToBeRendered]
|
|
30337
30369
|
}), void 0);
|
|
30338
30370
|
});
|
|
30339
|
-
var templateObject_1$
|
|
30371
|
+
var templateObject_1$c, templateObject_2$8, templateObject_3$4, templateObject_4$3, templateObject_5$1, templateObject_6, templateObject_7;
|
|
30340
30372
|
|
|
30341
30373
|
var Colors$3 = ddsBaseTokens.colors,
|
|
30342
30374
|
Border$1 = ddsBaseTokens.border,
|
|
@@ -30361,7 +30393,7 @@ var DividerLine = styled.hr.withConfig({
|
|
|
30361
30393
|
componentId: "sc-ggdopz-0"
|
|
30362
30394
|
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), dividerTokens.base, function (_a) {
|
|
30363
30395
|
var color = _a.color;
|
|
30364
|
-
return color && Ae(templateObject_1$
|
|
30396
|
+
return color && Ae(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n border-color: ", ";\n "], ["\n border-color: ", ";\n "])), dividerColors[color]);
|
|
30365
30397
|
});
|
|
30366
30398
|
var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30367
30399
|
var _b = _a.color,
|
|
@@ -30376,7 +30408,7 @@ var Divider = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30376
30408
|
ref: ref
|
|
30377
30409
|
}, lineProps), void 0);
|
|
30378
30410
|
});
|
|
30379
|
-
var templateObject_1$
|
|
30411
|
+
var templateObject_1$b, templateObject_2$7;
|
|
30380
30412
|
|
|
30381
30413
|
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%3ccircle cx='6.7085' cy='6.7085' r='2.625' fill='%230B0D0E'/%3e%3c/svg%3e";
|
|
30382
30414
|
|
|
@@ -30443,7 +30475,7 @@ var StyledList = styled.ul.withConfig({
|
|
|
30443
30475
|
componentId: "sc-1f1c7eb-0"
|
|
30444
30476
|
})(templateObject_4$2 || (templateObject_4$2 = __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) {
|
|
30445
30477
|
var typographyType = _a.typographyType;
|
|
30446
|
-
return typographyType && Ae(templateObject_1$
|
|
30478
|
+
return typographyType && Ae(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n ", "\n ul,\n ol {\n ", "\n }\n "], ["\n ", "\n ul,\n ol {\n ", "\n }\n "])), listTokens.sizes[typographyType], listTokens.sizes[typographyType]);
|
|
30447
30479
|
}, function (_a) {
|
|
30448
30480
|
var listType = _a.listType;
|
|
30449
30481
|
return listType === 'unordered' ? Ae(templateObject_2$6 || (templateObject_2$6 = __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 background-image: url(", ");\n }\n ul > li:before {\n background-image: url(", ");\n }\n ul > li > ul > li:before {\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 background-image: url(", ");\n }\n ul > li:before {\n background-image: url(", ");\n }\n ul > li > ul > li:before {\n background-image: url(", ");\n }\n }\n "])), "calc(" + ulPaddingLeft + ")", "calc(" + liTextPadding + ")", "calc((" + listItemTokens.base.lineHeight + " / 2) - 0.5em )", img$2, img$1, img) : Ae(templateObject_3$3 || (templateObject_3$3 = __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);
|
|
@@ -30469,12 +30501,12 @@ var List = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30469
30501
|
children: children
|
|
30470
30502
|
}), void 0);
|
|
30471
30503
|
});
|
|
30472
|
-
var templateObject_1$
|
|
30504
|
+
var templateObject_1$a, templateObject_2$6, templateObject_3$3, templateObject_4$2;
|
|
30473
30505
|
|
|
30474
30506
|
var StyledListItem = styled.li.withConfig({
|
|
30475
30507
|
displayName: "ListItem__StyledListItem",
|
|
30476
30508
|
componentId: "sc-17s9l0b-0"
|
|
30477
|
-
})(templateObject_1$
|
|
30509
|
+
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), listItemTokens.base);
|
|
30478
30510
|
var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30479
30511
|
var children = _a.children,
|
|
30480
30512
|
rest = __rest(_a, ["children"]);
|
|
@@ -30485,7 +30517,7 @@ var ListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30485
30517
|
children: children
|
|
30486
30518
|
}), void 0);
|
|
30487
30519
|
});
|
|
30488
|
-
var templateObject_1$
|
|
30520
|
+
var templateObject_1$9;
|
|
30489
30521
|
|
|
30490
30522
|
var Spacing$4 = ddsBaseTokens.spacing,
|
|
30491
30523
|
FontPackages$4 = ddsBaseTokens.fontPackages,
|
|
@@ -30518,7 +30550,7 @@ var DList = styled.dl.withConfig({
|
|
|
30518
30550
|
componentId: "sc-1ob73hm-0"
|
|
30519
30551
|
})(templateObject_2$5 || (templateObject_2$5 = __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) {
|
|
30520
30552
|
var appearance = _a.appearance;
|
|
30521
|
-
return appearance && Ae(templateObject_1$
|
|
30553
|
+
return appearance && Ae(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n dt {\n ", "\n }\n "], ["\n dt {\n ", "\n }\n "])), descriptionListTermTokens.appearance[appearance].base);
|
|
30522
30554
|
}, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedBetweenSpace);
|
|
30523
30555
|
var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30524
30556
|
var _b = _a.appearance,
|
|
@@ -30535,12 +30567,12 @@ var DescriptionList = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30535
30567
|
children: children
|
|
30536
30568
|
}), void 0);
|
|
30537
30569
|
});
|
|
30538
|
-
var templateObject_1$
|
|
30570
|
+
var templateObject_1$8, templateObject_2$5;
|
|
30539
30571
|
|
|
30540
30572
|
var DListTerm = styled.dt.withConfig({
|
|
30541
30573
|
displayName: "DescriptionListTerm__DListTerm",
|
|
30542
30574
|
componentId: "sc-10w0rzr-0"
|
|
30543
|
-
})(templateObject_1$
|
|
30575
|
+
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject([""], [""])));
|
|
30544
30576
|
var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30545
30577
|
var children = _a.children,
|
|
30546
30578
|
rest = __rest(_a, ["children"]);
|
|
@@ -30553,7 +30585,7 @@ var DescriptionListTerm = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30553
30585
|
children: children
|
|
30554
30586
|
}), void 0);
|
|
30555
30587
|
});
|
|
30556
|
-
var templateObject_1$
|
|
30588
|
+
var templateObject_1$7;
|
|
30557
30589
|
|
|
30558
30590
|
var Spacing$3 = ddsBaseTokens.spacing,
|
|
30559
30591
|
FontPackages$3 = ddsBaseTokens.fontPackages;
|
|
@@ -30576,7 +30608,7 @@ var descriptionListDescTokens = {
|
|
|
30576
30608
|
var DListDesc = styled.dd.withConfig({
|
|
30577
30609
|
displayName: "DescriptionListDesc__DListDesc",
|
|
30578
30610
|
componentId: "sc-1djcf0s-0"
|
|
30579
|
-
})(templateObject_1$
|
|
30611
|
+
})(templateObject_1$6 || (templateObject_1$6 = __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);
|
|
30580
30612
|
var StyledIconWrapper = styled(IconWrapper$1).withConfig({
|
|
30581
30613
|
displayName: "DescriptionListDesc__StyledIconWrapper",
|
|
30582
30614
|
componentId: "sc-1djcf0s-1"
|
|
@@ -30597,7 +30629,7 @@ var DescriptionListDesc = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30597
30629
|
}, void 0), " ", children]
|
|
30598
30630
|
}), void 0);
|
|
30599
30631
|
});
|
|
30600
|
-
var templateObject_1$
|
|
30632
|
+
var templateObject_1$6, templateObject_2$4;
|
|
30601
30633
|
|
|
30602
30634
|
var Spacing$2 = ddsBaseTokens.spacing;
|
|
30603
30635
|
var base$3 = {
|
|
@@ -30612,7 +30644,7 @@ var DListGroup = styled.div.withConfig({
|
|
|
30612
30644
|
componentId: "sc-jkdc0o-0"
|
|
30613
30645
|
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), descriptionListGroupTokens.base, function (_a) {
|
|
30614
30646
|
var margin = _a.margin;
|
|
30615
|
-
return margin && Ae(templateObject_1$
|
|
30647
|
+
return margin && Ae(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n margin: ", ";\n "], ["\n margin: ", ";\n "])), margin);
|
|
30616
30648
|
});
|
|
30617
30649
|
var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30618
30650
|
var children = _a.children,
|
|
@@ -30627,7 +30659,7 @@ var DescriptionListGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30627
30659
|
children: children
|
|
30628
30660
|
}), void 0);
|
|
30629
30661
|
});
|
|
30630
|
-
var templateObject_1$
|
|
30662
|
+
var templateObject_1$5, templateObject_2$3;
|
|
30631
30663
|
|
|
30632
30664
|
var Colors$1 = ddsBaseTokens.colors,
|
|
30633
30665
|
Border = ddsBaseTokens.border,
|
|
@@ -30697,7 +30729,7 @@ var Container = styled.div.withConfig({
|
|
|
30697
30729
|
componentId: "sc-410ao9-0"
|
|
30698
30730
|
})(templateObject_3$2 || (templateObject_3$2 = __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) {
|
|
30699
30731
|
var color = _a.color;
|
|
30700
|
-
return color && Ae(templateObject_1$
|
|
30732
|
+
return color && Ae(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cardTokens.colors[color].base);
|
|
30701
30733
|
}, function (_a) {
|
|
30702
30734
|
var cardType = _a.cardType;
|
|
30703
30735
|
return cardType === 'navigation' && Ae(templateObject_2$2 || (templateObject_2$2 = __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);
|
|
@@ -30723,13 +30755,13 @@ var Card = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30723
30755
|
children: children
|
|
30724
30756
|
}), void 0);
|
|
30725
30757
|
});
|
|
30726
|
-
var templateObject_1$
|
|
30758
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3$2;
|
|
30727
30759
|
|
|
30728
30760
|
var Wrapper = styled.div.withConfig({
|
|
30729
30761
|
displayName: "CardAccordion__Wrapper",
|
|
30730
30762
|
componentId: "sc-1ctxrby-0"
|
|
30731
|
-
})(templateObject_1$
|
|
30732
|
-
var nextUniqueId = 0;
|
|
30763
|
+
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
|
|
30764
|
+
var nextUniqueId$1 = 0;
|
|
30733
30765
|
var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30734
30766
|
var isExpanded = _a.isExpanded,
|
|
30735
30767
|
id = _a.id,
|
|
@@ -30740,7 +30772,7 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30740
30772
|
expanded = _b[0],
|
|
30741
30773
|
setExpanded = _b[1];
|
|
30742
30774
|
|
|
30743
|
-
var uniqueId = nextUniqueId++;
|
|
30775
|
+
var uniqueId = nextUniqueId$1++;
|
|
30744
30776
|
var accordionId = useState(id !== null && id !== void 0 ? id : "cardAccordion-" + uniqueId)[0];
|
|
30745
30777
|
useEffect(function () {
|
|
30746
30778
|
setExpanded(isExpanded);
|
|
@@ -30773,7 +30805,7 @@ var CardAccordion = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30773
30805
|
children: Children$1
|
|
30774
30806
|
}), void 0);
|
|
30775
30807
|
});
|
|
30776
|
-
var templateObject_1$
|
|
30808
|
+
var templateObject_1$3;
|
|
30777
30809
|
|
|
30778
30810
|
var Spacing$1 = ddsBaseTokens.spacing,
|
|
30779
30811
|
FontPackages$1 = ddsBaseTokens.fontPackages,
|
|
@@ -30802,7 +30834,7 @@ var cardAccordionHeaderTokens = {
|
|
|
30802
30834
|
var ContentWrapper = styled.div.withConfig({
|
|
30803
30835
|
displayName: "CardAccordionHeader__ContentWrapper",
|
|
30804
30836
|
componentId: "sc-1qs6bkj-0"
|
|
30805
|
-
})(templateObject_1$
|
|
30837
|
+
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""])));
|
|
30806
30838
|
var HeaderContainer = styled.div.withConfig({
|
|
30807
30839
|
displayName: "CardAccordionHeader__HeaderContainer",
|
|
30808
30840
|
componentId: "sc-1qs6bkj-1"
|
|
@@ -30872,7 +30904,7 @@ var CardAccordionHeader = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30872
30904
|
}), void 0)
|
|
30873
30905
|
}), void 0);
|
|
30874
30906
|
});
|
|
30875
|
-
var templateObject_1$
|
|
30907
|
+
var templateObject_1$2, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5;
|
|
30876
30908
|
|
|
30877
30909
|
var Spacing = ddsBaseTokens.spacing,
|
|
30878
30910
|
FontPackages = ddsBaseTokens.fontPackages;
|
|
@@ -30885,7 +30917,7 @@ var cardAccordionBodyTokens = {
|
|
|
30885
30917
|
base: base
|
|
30886
30918
|
};
|
|
30887
30919
|
|
|
30888
|
-
var expandingAnimation = Ae(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"], ["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"])));
|
|
30920
|
+
var expandingAnimation = Ae(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"], ["\n transition: visibility 0.3s, max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"])));
|
|
30889
30921
|
var Body = styled.div.withConfig({
|
|
30890
30922
|
displayName: "CardAccordionBody__Body",
|
|
30891
30923
|
componentId: "sc-igsnpx-0"
|
|
@@ -30943,6 +30975,72 @@ var CardAccordionBody = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
30943
30975
|
}), void 0)
|
|
30944
30976
|
}), void 0);
|
|
30945
30977
|
});
|
|
30946
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
30978
|
+
var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4;
|
|
30979
|
+
|
|
30980
|
+
var getWidth = function getWidth(type) {
|
|
30981
|
+
return type === 'date' ? '205px' : type === 'datetime-local' ? '235px' : '320px';
|
|
30982
|
+
};
|
|
30983
|
+
|
|
30984
|
+
var StyledInput = styled(Input$2).withConfig({
|
|
30985
|
+
displayName: "Datepicker__StyledInput",
|
|
30986
|
+
componentId: "sc-1ijxhje-0"
|
|
30987
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ::-webkit-calendar-picker-indicator {\n margin-left: 0px;\n }\n"], ["\n ::-webkit-calendar-picker-indicator {\n margin-left: 0px;\n }\n"])));
|
|
30988
|
+
var nextUniqueId = 0;
|
|
30989
|
+
var Datepicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
30990
|
+
var id = _a.id,
|
|
30991
|
+
_b = _a.type,
|
|
30992
|
+
type = _b === void 0 ? 'date' : _b,
|
|
30993
|
+
required = _a.required,
|
|
30994
|
+
readOnly = _a.readOnly,
|
|
30995
|
+
disabled = _a.disabled,
|
|
30996
|
+
label = _a.label,
|
|
30997
|
+
width = _a.width,
|
|
30998
|
+
errorMessage = _a.errorMessage,
|
|
30999
|
+
tip = _a.tip,
|
|
31000
|
+
style = _a.style,
|
|
31001
|
+
className = _a.className,
|
|
31002
|
+
rest = __rest(_a, ["id", "type", "required", "readOnly", "disabled", "label", "width", "errorMessage", "tip", "style", "className"]);
|
|
31003
|
+
|
|
31004
|
+
var uniqueId = useState(id !== null && id !== void 0 ? id : "datepickerInput-" + nextUniqueId++)[0];
|
|
31005
|
+
var componentWidth = width ? width : getWidth(type);
|
|
31006
|
+
|
|
31007
|
+
var inputProps = __assign({
|
|
31008
|
+
label: label,
|
|
31009
|
+
errorMessage: errorMessage,
|
|
31010
|
+
ref: ref,
|
|
31011
|
+
readOnly: readOnly,
|
|
31012
|
+
tabIndex: readOnly ? -1 : 0,
|
|
31013
|
+
required: required,
|
|
31014
|
+
disabled: disabled,
|
|
31015
|
+
type: type
|
|
31016
|
+
}, rest);
|
|
31017
|
+
|
|
31018
|
+
var outerInputContainerProps = {
|
|
31019
|
+
width: componentWidth,
|
|
31020
|
+
style: style,
|
|
31021
|
+
className: className
|
|
31022
|
+
};
|
|
31023
|
+
var labelProps = {
|
|
31024
|
+
htmlFor: uniqueId,
|
|
31025
|
+
disabled: disabled
|
|
31026
|
+
};
|
|
31027
|
+
return jsxRuntime.jsxs(OuterInputContainer, __assign({}, outerInputContainerProps, {
|
|
31028
|
+
children: [jsxRuntime.jsxs(InputContainer$2, {
|
|
31029
|
+
children: [jsxRuntime.jsx(StyledInput, __assign({}, inputProps), void 0), label && jsxRuntime.jsxs(SingleLineLabel, __assign({}, labelProps, {
|
|
31030
|
+
typographyType: "supportingStyleLabel01",
|
|
31031
|
+
forwardedAs: "label"
|
|
31032
|
+
}, {
|
|
31033
|
+
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
31034
|
+
}), void 0)]
|
|
31035
|
+
}, void 0), errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
31036
|
+
message: errorMessage,
|
|
31037
|
+
messageType: "error"
|
|
31038
|
+
}, void 0), tip && !errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
31039
|
+
message: tip,
|
|
31040
|
+
messageType: "tip"
|
|
31041
|
+
}, void 0)]
|
|
31042
|
+
}), void 0);
|
|
31043
|
+
});
|
|
31044
|
+
var templateObject_1;
|
|
30947
31045
|
|
|
30948
|
-
export { Body$1 as Body, Breadcrumb, Breadcrumbs, Button, Card, CardAccordion, CardAccordionBody, CardAccordionHeader, Cell, Checkbox, CheckboxGroup, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, Divider, Foot, GlobalMessage, Head, IconWrapper$1 as IconWrapper, List, ListItem, LocalMessage, Pagination, RadioButton, RadioButtonGroup, Row, Search, Select, SortCell, Spinner, Table, TableWrapper, TextInput, Typography, getTextColor, isTextColor, searchFilter };
|
|
31046
|
+
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, List, ListItem, LocalMessage, Pagination, RadioButton, RadioButtonGroup, Row, Search, Select, SortCell, Spinner, Table, TableWrapper, TextInput, Typography, getTextColor, isTextColor, searchFilter };
|