@norges-domstoler/dds-components 0.0.10 → 0.0.14
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/assets/svg/DDS-logo.svg +5 -0
- package/dist/assets/svg/bullets/jordskifterett_bullet1.svg +3 -0
- package/dist/assets/svg/bullets/lagmannsrett_bullet2.svg +3 -0
- package/dist/assets/svg/bullets/tingrett_bullet3.svg +3 -0
- package/dist/assets/svg/code-brackets.svg +1 -0
- package/dist/assets/svg/colors.svg +1 -0
- package/dist/assets/svg/comments.svg +1 -0
- package/dist/assets/svg/direction.svg +1 -0
- package/dist/assets/svg/flow.svg +1 -0
- package/dist/assets/svg/plugin.svg +1 -0
- package/dist/assets/svg/repo.svg +1 -0
- package/dist/assets/svg/stackalt.svg +1 -0
- package/dist/components/Datepicker/Datepicker.d.ts +8 -0
- package/dist/components/Datepicker/index.d.ts +1 -0
- package/dist/components/GlobalMessage/GlobalMessage.d.ts +2 -0
- package/dist/components/LocalMessage/LocalMessage.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +2 -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 +560 -449
- package/dist/index.js +560 -448
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11451,16 +11451,16 @@ var ddsBaseTokens = {
|
|
|
11451
11451
|
fontPackages: fontPackages,
|
|
11452
11452
|
};
|
|
11453
11453
|
|
|
11454
|
-
var Colors$
|
|
11454
|
+
var Colors$j = ddsBaseTokens.colors, FontPackages$g = ddsBaseTokens.fontPackages, BorderRadius$4 = ddsBaseTokens.borderRadius, Border$8 = ddsBaseTokens.border;
|
|
11455
11455
|
var textDefault$8 = {
|
|
11456
|
-
textColor: Colors$
|
|
11456
|
+
textColor: Colors$j.DdsColorNeutralsGray9,
|
|
11457
11457
|
font: FontPackages$g.body_sans_02.base,
|
|
11458
11458
|
};
|
|
11459
11459
|
var focus$1 = {
|
|
11460
|
-
colorDefault: Colors$
|
|
11460
|
+
colorDefault: Colors$j.DdsColorWarningDarker,
|
|
11461
11461
|
outlineWidth: Border$8.BordersDdsBorderStyle1StrokeWeight,
|
|
11462
|
-
color__TextInput: Colors$
|
|
11463
|
-
textColor__TextInput: Colors$
|
|
11462
|
+
color__TextInput: Colors$j.DdsColorInteractiveBase,
|
|
11463
|
+
textColor__TextInput: Colors$j.DdsColorInteractiveDark,
|
|
11464
11464
|
borderWidth__TextInput: Border$8.BordersDdsBorderStyle1StrokeWeightNumberPx * 2 + "px",
|
|
11465
11465
|
};
|
|
11466
11466
|
var ddsReferenceTokens = {
|
|
@@ -11470,11 +11470,11 @@ var ddsReferenceTokens = {
|
|
|
11470
11470
|
input: {
|
|
11471
11471
|
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius,
|
|
11472
11472
|
borderWidth: Border$8.BordersDdsBorderStyle1StrokeWeight,
|
|
11473
|
-
borderColor: Colors$
|
|
11473
|
+
borderColor: Colors$j.DdsColorNeutralsGray5,
|
|
11474
11474
|
textColor: textDefault$8.textColor,
|
|
11475
11475
|
font: FontPackages$g.supportingStyle_inputtext_02.base,
|
|
11476
11476
|
hover: {
|
|
11477
|
-
backgroundColor: Colors$
|
|
11477
|
+
backgroundColor: Colors$j.DdsColorInteractiveLightest,
|
|
11478
11478
|
borderColor: focus$1.color__TextInput,
|
|
11479
11479
|
borderWidth: focus$1.borderWidth__TextInput,
|
|
11480
11480
|
},
|
|
@@ -11494,31 +11494,31 @@ var ddsReferenceTokens = {
|
|
|
11494
11494
|
},
|
|
11495
11495
|
};
|
|
11496
11496
|
|
|
11497
|
-
var Colors$
|
|
11497
|
+
var Colors$i = ddsBaseTokens.colors,
|
|
11498
11498
|
FontPackages$f = ddsBaseTokens.fontPackages,
|
|
11499
|
-
Spacing$
|
|
11499
|
+
Spacing$o = ddsBaseTokens.spacing;
|
|
11500
11500
|
var textDefault$7 = ddsReferenceTokens.textDefault;
|
|
11501
11501
|
var textColors = {
|
|
11502
|
-
interactive: Colors$
|
|
11503
|
-
primary: Colors$
|
|
11504
|
-
danger: Colors$
|
|
11505
|
-
success: Colors$
|
|
11506
|
-
warning: Colors$
|
|
11502
|
+
interactive: Colors$i.DdsColorInteractiveBase,
|
|
11503
|
+
primary: Colors$i.DdsColorPrimaryBase,
|
|
11504
|
+
danger: Colors$i.DdsColorDangerBase,
|
|
11505
|
+
success: Colors$i.DdsColorSuccessBase,
|
|
11506
|
+
warning: Colors$i.DdsColorWarningBase,
|
|
11507
11507
|
onLight: textDefault$7.textColor,
|
|
11508
|
-
onDark: Colors$
|
|
11509
|
-
gray1: Colors$
|
|
11510
|
-
gray2: Colors$
|
|
11511
|
-
gray3: Colors$
|
|
11512
|
-
gray4: Colors$
|
|
11513
|
-
gray5: Colors$
|
|
11514
|
-
gray6: Colors$
|
|
11515
|
-
gray7: Colors$
|
|
11516
|
-
gray8: Colors$
|
|
11517
|
-
gray9: Colors$
|
|
11508
|
+
onDark: Colors$i.DdsColorNeutralsWhite,
|
|
11509
|
+
gray1: Colors$i.DdsColorNeutralsGray1,
|
|
11510
|
+
gray2: Colors$i.DdsColorNeutralsGray2,
|
|
11511
|
+
gray3: Colors$i.DdsColorNeutralsGray3,
|
|
11512
|
+
gray4: Colors$i.DdsColorNeutralsGray4,
|
|
11513
|
+
gray5: Colors$i.DdsColorNeutralsGray5,
|
|
11514
|
+
gray6: Colors$i.DdsColorNeutralsGray6,
|
|
11515
|
+
gray7: Colors$i.DdsColorNeutralsGray7,
|
|
11516
|
+
gray8: Colors$i.DdsColorNeutralsGray8,
|
|
11517
|
+
gray9: Colors$i.DdsColorNeutralsGray9
|
|
11518
11518
|
};
|
|
11519
11519
|
var textColorsArray = ['interactive', 'primary', 'danger', 'success', 'warning', 'onLight', 'onDark', 'gray1', 'gray2', 'gray3', 'gray4', 'gray5', 'gray6', 'gray7', 'gray8', 'gray9'];
|
|
11520
11520
|
var aBase = {
|
|
11521
|
-
color: Colors$
|
|
11521
|
+
color: Colors$i.DdsColorInteractiveBase,
|
|
11522
11522
|
// ...FontPackages.body_sans_02.base,
|
|
11523
11523
|
font: 'inherit',
|
|
11524
11524
|
textDecoration: 'underline',
|
|
@@ -11529,11 +11529,11 @@ var aMarginsBase = {
|
|
|
11529
11529
|
marginBottom: FontPackages$f.body_sans_02.paragraph.paragraphSpacing
|
|
11530
11530
|
};
|
|
11531
11531
|
var aHoverBase = {
|
|
11532
|
-
color: Colors$
|
|
11532
|
+
color: Colors$i.DdsColorInteractiveDark
|
|
11533
11533
|
};
|
|
11534
11534
|
var aFocusBase = {
|
|
11535
|
-
backgroundColor: Colors$
|
|
11536
|
-
color: Colors$
|
|
11535
|
+
backgroundColor: Colors$i.DdsColorWarningDarkest,
|
|
11536
|
+
color: Colors$i.DdsColorNeutralsWhite,
|
|
11537
11537
|
textDecoration: 'none',
|
|
11538
11538
|
outline: 'none'
|
|
11539
11539
|
};
|
|
@@ -11742,7 +11742,7 @@ var leadSans05MarginsBase = {
|
|
|
11742
11742
|
};
|
|
11743
11743
|
|
|
11744
11744
|
var supportingStyleLabel01Base = __assign(__assign({
|
|
11745
|
-
color: Colors$
|
|
11745
|
+
color: Colors$i.DdsColorNeutralsGray7
|
|
11746
11746
|
}, FontPackages$f.supportingStyle_label_01.base), {
|
|
11747
11747
|
margin: 0
|
|
11748
11748
|
});
|
|
@@ -11753,7 +11753,7 @@ var supportingStyleLabel01MarginsBase = {
|
|
|
11753
11753
|
};
|
|
11754
11754
|
|
|
11755
11755
|
var supportingStyleHelperText01Base = __assign(__assign({
|
|
11756
|
-
color: Colors$
|
|
11756
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
11757
11757
|
}, FontPackages$f.supportingStyle_helpertext_01.base), {
|
|
11758
11758
|
margin: 0
|
|
11759
11759
|
});
|
|
@@ -11797,7 +11797,7 @@ var supportingStyleInputText03MarginsBase = {
|
|
|
11797
11797
|
};
|
|
11798
11798
|
|
|
11799
11799
|
var supportingStylePlaceholderText01Base = __assign(__assign({
|
|
11800
|
-
color: Colors$
|
|
11800
|
+
color: Colors$i.DdsColorNeutralsGray6
|
|
11801
11801
|
}, FontPackages$f.supportingStyle_placeholdertext_01.base), {
|
|
11802
11802
|
margin: 0
|
|
11803
11803
|
});
|
|
@@ -11819,7 +11819,7 @@ var supportingStyleTiny01MarginsBase = {
|
|
|
11819
11819
|
};
|
|
11820
11820
|
var selectionBase = {
|
|
11821
11821
|
color: textDefault$7.textColor,
|
|
11822
|
-
backgroundColor: Colors$
|
|
11822
|
+
backgroundColor: Colors$i.DdsColorTertiaryLightest
|
|
11823
11823
|
};
|
|
11824
11824
|
var typographyTokens = {
|
|
11825
11825
|
selection: {
|
|
@@ -11841,7 +11841,7 @@ var typographyTokens = {
|
|
|
11841
11841
|
base: aBoldBase
|
|
11842
11842
|
},
|
|
11843
11843
|
icon: {
|
|
11844
|
-
marginLeft: Spacing$
|
|
11844
|
+
marginLeft: Spacing$o.SizesDdsSpacingLocalX0125
|
|
11845
11845
|
}
|
|
11846
11846
|
},
|
|
11847
11847
|
headingSans01: {
|
|
@@ -19644,45 +19644,45 @@ var getTextColor = function getTextColor(color) {
|
|
|
19644
19644
|
};
|
|
19645
19645
|
|
|
19646
19646
|
var getElementStyling = function getElementStyling(type) {
|
|
19647
|
-
return Ae(templateObject_1$
|
|
19647
|
+
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);
|
|
19648
19648
|
};
|
|
19649
19649
|
|
|
19650
19650
|
var LinkIconWrapper = styled(IconWrapper$1).withConfig({
|
|
19651
19651
|
displayName: "Typography__LinkIconWrapper",
|
|
19652
19652
|
componentId: "sc-1uvxoh6-0"
|
|
19653
|
-
})(templateObject_2$
|
|
19653
|
+
})(templateObject_2$s || (templateObject_2$s = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), typographyTokens.typographyType.a.icon);
|
|
19654
19654
|
var StyledTypography = styled.p.withConfig({
|
|
19655
19655
|
displayName: "Typography__StyledTypography",
|
|
19656
19656
|
componentId: "sc-1uvxoh6-1"
|
|
19657
|
-
})(templateObject_13$
|
|
19657
|
+
})(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) {
|
|
19658
19658
|
var typographyType = _a.typographyType;
|
|
19659
19659
|
return typographyType && getElementStyling(typographyType);
|
|
19660
19660
|
}, function (_a) {
|
|
19661
19661
|
var typographyType = _a.typographyType,
|
|
19662
19662
|
interactionProps = _a.interactionProps;
|
|
19663
|
-
return typographyType === 'a' && Ae(templateObject_4$
|
|
19663
|
+
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);
|
|
19664
19664
|
}, function (_a) {
|
|
19665
19665
|
var interactionProps = _a.interactionProps;
|
|
19666
|
-
return interactionProps && interactionProps.hover && Ae(templateObject_5$
|
|
19666
|
+
return interactionProps && interactionProps.hover && Ae(templateObject_5$d || (templateObject_5$d = __makeTemplateObject(["\n &:hover {\n ", "\n }\n "], ["\n &:hover {\n ", "\n }\n "])), interactionProps.hover);
|
|
19667
19667
|
}, function (_a) {
|
|
19668
19668
|
var interactionProps = _a.interactionProps;
|
|
19669
|
-
return interactionProps && interactionProps.active && Ae(templateObject_6$
|
|
19669
|
+
return interactionProps && interactionProps.active && Ae(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\n &:active {\n ", "\n }\n "], ["\n &:active {\n ", "\n }\n "])), interactionProps.active);
|
|
19670
19670
|
}, function (_a) {
|
|
19671
19671
|
var withMargins = _a.withMargins,
|
|
19672
19672
|
typographyType = _a.typographyType;
|
|
19673
|
-
return withMargins && typographyType ? Ae(templateObject_7$
|
|
19673
|
+
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 "])));
|
|
19674
19674
|
}, function (_a) {
|
|
19675
19675
|
var color = _a.color;
|
|
19676
|
-
return color && Ae(templateObject_9$
|
|
19676
|
+
return color && Ae(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), getTextColor(color));
|
|
19677
19677
|
}, function (_a) {
|
|
19678
19678
|
var bold = _a.bold;
|
|
19679
|
-
return bold && Ae(templateObject_10$
|
|
19679
|
+
return bold && Ae(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.bold.base);
|
|
19680
19680
|
}, function (_a) {
|
|
19681
19681
|
var italic = _a.italic;
|
|
19682
19682
|
return italic && Ae(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.italic.base);
|
|
19683
19683
|
}, function (_a) {
|
|
19684
19684
|
var underline = _a.underline;
|
|
19685
|
-
return underline && Ae(templateObject_12$
|
|
19685
|
+
return underline && Ae(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.underline.base);
|
|
19686
19686
|
});
|
|
19687
19687
|
var Typography = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
19688
19688
|
var _b = _a.typographyType,
|
|
@@ -19711,81 +19711,81 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
19711
19711
|
}, void 0) : '']
|
|
19712
19712
|
}), void 0);
|
|
19713
19713
|
});
|
|
19714
|
-
var templateObject_1$
|
|
19714
|
+
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;
|
|
19715
19715
|
|
|
19716
19716
|
var RadioButtonGroupContext = /*#__PURE__*/React__default['default'].createContext(null);
|
|
19717
19717
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
19718
19718
|
return React.useContext(RadioButtonGroupContext);
|
|
19719
19719
|
};
|
|
19720
19720
|
|
|
19721
|
-
var Colors$
|
|
19721
|
+
var Colors$h = ddsBaseTokens.colors,
|
|
19722
19722
|
Border$7 = ddsBaseTokens.border,
|
|
19723
|
-
Spacing$
|
|
19723
|
+
Spacing$n = ddsBaseTokens.spacing,
|
|
19724
19724
|
FontPackages$e = ddsBaseTokens.fontPackages;
|
|
19725
19725
|
var radioButtonBase = {
|
|
19726
19726
|
border: '1px solid',
|
|
19727
|
-
borderColor: Colors$
|
|
19728
|
-
backgroundColor: Colors$
|
|
19727
|
+
borderColor: Colors$h.DdsColorNeutralsGray5,
|
|
19728
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite,
|
|
19729
19729
|
height: FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber,
|
|
19730
19730
|
width: FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber
|
|
19731
19731
|
};
|
|
19732
19732
|
var radioButtonHoverBase = {
|
|
19733
19733
|
border: '2px solid',
|
|
19734
|
-
backgroundColor: Colors$
|
|
19735
|
-
borderColor: Colors$
|
|
19734
|
+
backgroundColor: Colors$h.DdsColorInteractiveLightest,
|
|
19735
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
19736
19736
|
};
|
|
19737
19737
|
var radioButtonDisabledBase = {
|
|
19738
19738
|
border: '1px solid',
|
|
19739
|
-
borderColor: Colors$
|
|
19740
|
-
color: Colors$
|
|
19739
|
+
borderColor: Colors$h.DdsColorNeutralsGray5,
|
|
19740
|
+
color: Colors$h.DdsColorNeutralsGray6
|
|
19741
19741
|
};
|
|
19742
19742
|
var radioButtonReadOnlyBase = {
|
|
19743
19743
|
backgroundColor: 'transparent'
|
|
19744
19744
|
};
|
|
19745
19745
|
var radioButtonDangerBase = {
|
|
19746
19746
|
border: '2px solid',
|
|
19747
|
-
borderColor: Colors$
|
|
19747
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
19748
19748
|
};
|
|
19749
19749
|
var radioButtonDangerHoverBase = {
|
|
19750
19750
|
border: '2px solid',
|
|
19751
|
-
backgroundColor: Colors$
|
|
19752
|
-
borderColor: Colors$
|
|
19751
|
+
backgroundColor: Colors$h.DdsColorDangerLightest,
|
|
19752
|
+
borderColor: Colors$h.DdsColorDangerBase
|
|
19753
19753
|
};
|
|
19754
19754
|
var radioButtonCheckedBase = {
|
|
19755
19755
|
border: '2px solid',
|
|
19756
|
-
backgroundColor: Colors$
|
|
19757
|
-
borderColor: Colors$
|
|
19756
|
+
backgroundColor: Colors$h.DdsColorInteractiveBase,
|
|
19757
|
+
borderColor: Colors$h.DdsColorInteractiveBase
|
|
19758
19758
|
};
|
|
19759
19759
|
var radioButtonCheckedHoverBase = {
|
|
19760
19760
|
border: '2px solid',
|
|
19761
|
-
backgroundColor: Colors$
|
|
19762
|
-
borderColor: Colors$
|
|
19761
|
+
backgroundColor: Colors$h.DdsColorInteractiveDark,
|
|
19762
|
+
borderColor: Colors$h.DdsColorInteractiveDark
|
|
19763
19763
|
};
|
|
19764
19764
|
var radioButtonCheckedDisabledBase = {
|
|
19765
19765
|
border: '1px solid',
|
|
19766
|
-
borderColor: Colors$
|
|
19767
|
-
backgroundColor: Colors$
|
|
19766
|
+
borderColor: Colors$h.DdsColorNeutralsGray6,
|
|
19767
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray6
|
|
19768
19768
|
};
|
|
19769
19769
|
var radioButtonCheckedReadOnlyBase = {
|
|
19770
19770
|
border: '2px solid',
|
|
19771
|
-
borderColor: Colors$
|
|
19772
|
-
backgroundColor: Colors$
|
|
19771
|
+
borderColor: Colors$h.DdsColorNeutralsGray6,
|
|
19772
|
+
backgroundColor: Colors$h.DdsColorNeutralsGray6
|
|
19773
19773
|
};
|
|
19774
19774
|
var checkmarkBase$1 = {
|
|
19775
|
-
backgroundColor: Colors$
|
|
19776
|
-
height: Spacing$
|
|
19777
|
-
width: Spacing$
|
|
19778
|
-
left: "calc(50% - " + Spacing$
|
|
19779
|
-
top: "calc(50% - " + Spacing$
|
|
19775
|
+
backgroundColor: Colors$h.DdsColorNeutralsWhite,
|
|
19776
|
+
height: Spacing$n.SizesDdsSpacingLocalX05,
|
|
19777
|
+
width: Spacing$n.SizesDdsSpacingLocalX05,
|
|
19778
|
+
left: "calc(50% - " + Spacing$n.SizesDdsSpacingLocalX05NumberPx / 2 + "px)",
|
|
19779
|
+
top: "calc(50% - " + Spacing$n.SizesDdsSpacingLocalX05NumberPx / 2 + "px)"
|
|
19780
19780
|
};
|
|
19781
19781
|
var containerBase$4 = {
|
|
19782
|
-
marginRight: Spacing$
|
|
19783
|
-
padding: Spacing$
|
|
19782
|
+
marginRight: Spacing$n.SizesDdsSpacingLocalX075,
|
|
19783
|
+
padding: Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX025 + " " + Spacing$n.SizesDdsSpacingLocalX025 + " " + (20 + Spacing$n.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
19784
19784
|
};
|
|
19785
19785
|
var radioButtonTokens = {
|
|
19786
19786
|
radioButton: {
|
|
19787
19787
|
base: radioButtonBase,
|
|
19788
|
-
spaceLeft: Spacing$
|
|
19788
|
+
spaceLeft: Spacing$n.SizesDdsSpacingLocalX025,
|
|
19789
19789
|
hover: {
|
|
19790
19790
|
base: radioButtonHoverBase
|
|
19791
19791
|
},
|
|
@@ -19820,7 +19820,7 @@ var radioButtonTokens = {
|
|
|
19820
19820
|
container: {
|
|
19821
19821
|
base: containerBase$4,
|
|
19822
19822
|
focusOutline: {
|
|
19823
|
-
color: Colors$
|
|
19823
|
+
color: Colors$h.DdsColorWarningDarker,
|
|
19824
19824
|
width: Border$7.BordersDdsBorderStyle1StrokeWeight
|
|
19825
19825
|
}
|
|
19826
19826
|
}
|
|
@@ -19829,7 +19829,7 @@ var radioButtonTokens = {
|
|
|
19829
19829
|
var CustomRadioButton = styled.span.withConfig({
|
|
19830
19830
|
displayName: "RadioButtonstyles__CustomRadioButton",
|
|
19831
19831
|
componentId: "sc-iwypha-0"
|
|
19832
|
-
})(templateObject_1$
|
|
19832
|
+
})(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);
|
|
19833
19833
|
var Input$4 = styled.input.attrs(function (_a) {
|
|
19834
19834
|
var _b = _a.type,
|
|
19835
19835
|
type = _b === void 0 ? 'radio' : _b;
|
|
@@ -19839,23 +19839,23 @@ var Input$4 = styled.input.attrs(function (_a) {
|
|
|
19839
19839
|
}).withConfig({
|
|
19840
19840
|
displayName: "RadioButtonstyles__Input",
|
|
19841
19841
|
componentId: "sc-iwypha-1"
|
|
19842
|
-
})(templateObject_2$
|
|
19842
|
+
})(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"])));
|
|
19843
19843
|
var Container$9 = styled.label.withConfig({
|
|
19844
19844
|
displayName: "RadioButtonstyles__Container",
|
|
19845
19845
|
componentId: "sc-iwypha-2"
|
|
19846
|
-
})(templateObject_6$
|
|
19846
|
+
})(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) {
|
|
19847
19847
|
var error = _a.error;
|
|
19848
|
-
return error && Ae(templateObject_3$
|
|
19848
|
+
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);
|
|
19849
19849
|
}, function (_a) {
|
|
19850
19850
|
var disabled = _a.disabled;
|
|
19851
|
-
return disabled && Ae(templateObject_4$
|
|
19851
|
+
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);
|
|
19852
19852
|
}, function (_a) {
|
|
19853
19853
|
var readOnly = _a.readOnly;
|
|
19854
|
-
return readOnly && Ae(templateObject_5$
|
|
19854
|
+
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);
|
|
19855
19855
|
}, CustomRadioButton, radioButtonTokens.checkmark.base);
|
|
19856
|
-
var templateObject_1$
|
|
19856
|
+
var templateObject_1$C, templateObject_2$r, templateObject_3$j, templateObject_4$f, templateObject_5$c, templateObject_6$b;
|
|
19857
19857
|
|
|
19858
|
-
var nextUniqueId$
|
|
19858
|
+
var nextUniqueId$6 = 0;
|
|
19859
19859
|
|
|
19860
19860
|
var isValueEqualToGroupValueOrFalsy = function isValueEqualToGroupValueOrFalsy(value, group) {
|
|
19861
19861
|
if (typeof value !== 'undefined' && value !== null && group) {
|
|
@@ -19885,7 +19885,7 @@ var RadioButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
19885
19885
|
onChange = _a.onChange,
|
|
19886
19886
|
rest = __rest(_a, ["id", "name", "label", "disabled", "readOnly", "error", "style", "checked", "value", "className", "children", "required", "onChange"]);
|
|
19887
19887
|
|
|
19888
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$
|
|
19888
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "radioButton-" + nextUniqueId$6++)[0];
|
|
19889
19889
|
var radioButtonGroup = useRadioButtonGroup();
|
|
19890
19890
|
|
|
19891
19891
|
var handleChange = function handleChange(event) {
|
|
@@ -19926,14 +19926,14 @@ var RadioButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
19926
19926
|
var MarkerWrapper = styled.span.withConfig({
|
|
19927
19927
|
displayName: "RequiredMarker__MarkerWrapper",
|
|
19928
19928
|
componentId: "sc-1p5sjqf-0"
|
|
19929
|
-
})(templateObject_1$
|
|
19929
|
+
})(templateObject_1$B || (templateObject_1$B = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), ddsBaseTokens.colors.DdsColorDangerBase);
|
|
19930
19930
|
|
|
19931
19931
|
function RequiredMarker() {
|
|
19932
19932
|
return jsxRuntime.jsx(MarkerWrapper, {
|
|
19933
19933
|
children: "*"
|
|
19934
19934
|
}, void 0);
|
|
19935
19935
|
}
|
|
19936
|
-
var templateObject_1$
|
|
19936
|
+
var templateObject_1$B;
|
|
19937
19937
|
|
|
19938
19938
|
var ReportProblemOutlined = createCommonjsModule(function (module, exports) {
|
|
19939
19939
|
|
|
@@ -19959,21 +19959,21 @@ exports.default = _default;
|
|
|
19959
19959
|
|
|
19960
19960
|
var DangerOutlinedIcon = /*@__PURE__*/getDefaultExportFromCjs(ReportProblemOutlined);
|
|
19961
19961
|
|
|
19962
|
-
var Colors$
|
|
19963
|
-
Spacing$
|
|
19962
|
+
var Colors$g = ddsBaseTokens.colors,
|
|
19963
|
+
Spacing$m = ddsBaseTokens.spacing;
|
|
19964
19964
|
var base$8 = {
|
|
19965
|
-
padding: Spacing$
|
|
19965
|
+
padding: Spacing$m.SizesDdsSpacingLocalX025 + " " + Spacing$m.SizesDdsSpacingLocalX05
|
|
19966
19966
|
};
|
|
19967
19967
|
var defaultMaxWidth = '100%';
|
|
19968
19968
|
var tipBase = {
|
|
19969
|
-
backgroundColor: Colors$
|
|
19969
|
+
backgroundColor: Colors$g.DdsColorNeutralsWhite
|
|
19970
19970
|
};
|
|
19971
19971
|
var errorBase = {
|
|
19972
|
-
color: Colors$
|
|
19973
|
-
backgroundColor: Colors$
|
|
19972
|
+
color: Colors$g.DdsColorDangerBase,
|
|
19973
|
+
backgroundColor: Colors$g.DdsColorDangerLightest
|
|
19974
19974
|
};
|
|
19975
19975
|
var inputMessageTokens = {
|
|
19976
|
-
padding: Spacing$
|
|
19976
|
+
padding: Spacing$m.SizesDdsSpacingLocalX025 + " " + Spacing$m.SizesDdsSpacingLocalX05,
|
|
19977
19977
|
base: base$8,
|
|
19978
19978
|
defaultMaxWidth: defaultMaxWidth,
|
|
19979
19979
|
tip: {
|
|
@@ -19983,16 +19983,16 @@ var inputMessageTokens = {
|
|
|
19983
19983
|
base: errorBase
|
|
19984
19984
|
},
|
|
19985
19985
|
icon: {
|
|
19986
|
-
spaceRight: Spacing$
|
|
19986
|
+
spaceRight: Spacing$m.SizesDdsSpacingLocalX05
|
|
19987
19987
|
}
|
|
19988
19988
|
};
|
|
19989
19989
|
|
|
19990
19990
|
var InputMessageWrapper = styled.div.withConfig({
|
|
19991
19991
|
displayName: "InputMessage__InputMessageWrapper",
|
|
19992
19992
|
componentId: "sc-n5r6yv-0"
|
|
19993
|
-
})(templateObject_2$
|
|
19993
|
+
})(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) {
|
|
19994
19994
|
var messageType = _a.messageType;
|
|
19995
|
-
return messageType && Ae(templateObject_1$
|
|
19995
|
+
return messageType && Ae(templateObject_1$A || (templateObject_1$A = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputMessageTokens[messageType].base);
|
|
19996
19996
|
}, function (_a) {
|
|
19997
19997
|
var maxWidth = _a.maxWidth;
|
|
19998
19998
|
return maxWidth;
|
|
@@ -20022,30 +20022,30 @@ function InputMessage(_a) {
|
|
|
20022
20022
|
}), void 0)]
|
|
20023
20023
|
}), void 0);
|
|
20024
20024
|
}
|
|
20025
|
-
var templateObject_1$
|
|
20025
|
+
var templateObject_1$A, templateObject_2$q;
|
|
20026
20026
|
|
|
20027
|
-
var Spacing$
|
|
20027
|
+
var Spacing$l = ddsBaseTokens.spacing;
|
|
20028
20028
|
var radioButtonGroupTokens = {
|
|
20029
20029
|
label: {
|
|
20030
|
-
spaceLeft: Spacing$
|
|
20030
|
+
spaceLeft: Spacing$l.SizesDdsSpacingLocalX025
|
|
20031
20031
|
}
|
|
20032
20032
|
};
|
|
20033
20033
|
|
|
20034
20034
|
var Container$8 = styled.div.withConfig({
|
|
20035
20035
|
displayName: "RadioButtonGroup__Container",
|
|
20036
20036
|
componentId: "sc-1xsll60-0"
|
|
20037
|
-
})(templateObject_1$
|
|
20037
|
+
})(templateObject_1$z || (templateObject_1$z = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20038
20038
|
var GroupContainer$1 = styled.div.withConfig({
|
|
20039
20039
|
displayName: "RadioButtonGroup__GroupContainer",
|
|
20040
20040
|
componentId: "sc-1xsll60-1"
|
|
20041
|
-
})(templateObject_2$
|
|
20041
|
+
})(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20042
20042
|
var direction = _a.direction;
|
|
20043
20043
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20044
20044
|
});
|
|
20045
20045
|
var Label$4 = styled(Typography).withConfig({
|
|
20046
20046
|
displayName: "RadioButtonGroup__Label",
|
|
20047
20047
|
componentId: "sc-1xsll60-2"
|
|
20048
|
-
})(templateObject_3$
|
|
20048
|
+
})(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), radioButtonGroupTokens.label.spaceLeft);
|
|
20049
20049
|
var nextUniqueGroupId$1 = 0;
|
|
20050
20050
|
var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
20051
20051
|
var name = _a.name,
|
|
@@ -20119,62 +20119,62 @@ var RadioButtonGroup = function RadioButtonGroup(_a) {
|
|
|
20119
20119
|
}, void 0) : '']
|
|
20120
20120
|
}), void 0);
|
|
20121
20121
|
};
|
|
20122
|
-
var templateObject_1$
|
|
20122
|
+
var templateObject_1$z, templateObject_2$p, templateObject_3$i;
|
|
20123
20123
|
|
|
20124
|
-
var Colors$
|
|
20124
|
+
var Colors$f = ddsBaseTokens.colors,
|
|
20125
20125
|
Border$6 = ddsBaseTokens.border,
|
|
20126
|
-
Spacing$
|
|
20126
|
+
Spacing$k = ddsBaseTokens.spacing,
|
|
20127
20127
|
FontPackages$d = ddsBaseTokens.fontPackages,
|
|
20128
20128
|
BorderRadius$3 = ddsBaseTokens.borderRadius;
|
|
20129
20129
|
var checkboxBase = {
|
|
20130
20130
|
border: '1px solid',
|
|
20131
|
-
backgroundColor: Colors$
|
|
20132
|
-
borderColor: Colors$
|
|
20131
|
+
backgroundColor: Colors$f.DdsColorNeutralsWhite,
|
|
20132
|
+
borderColor: Colors$f.DdsColorNeutralsGray5,
|
|
20133
20133
|
borderRadius: BorderRadius$3.RadiiDdsBorderRadius1Radius,
|
|
20134
20134
|
height: FontPackages$d.supportingStyle_inputtext_02.base.fontSize,
|
|
20135
20135
|
width: FontPackages$d.supportingStyle_inputtext_02.base.fontSize
|
|
20136
20136
|
};
|
|
20137
20137
|
var checkboxCheckedBase = {
|
|
20138
20138
|
border: '2px solid',
|
|
20139
|
-
borderColor: Colors$
|
|
20140
|
-
backgroundColor: Colors$
|
|
20139
|
+
borderColor: Colors$f.DdsColorInteractiveBase,
|
|
20140
|
+
backgroundColor: Colors$f.DdsColorInteractiveBase
|
|
20141
20141
|
};
|
|
20142
20142
|
var checkboxDisabledBase = {
|
|
20143
20143
|
border: '1px solid',
|
|
20144
|
-
borderColor: Colors$
|
|
20145
|
-
color: Colors$
|
|
20144
|
+
borderColor: Colors$f.DdsColorNeutralsGray5,
|
|
20145
|
+
color: Colors$f.DdsColorNeutralsGray6
|
|
20146
20146
|
};
|
|
20147
20147
|
var checkboxCheckedDisabledBase = {
|
|
20148
20148
|
border: '2px solid',
|
|
20149
|
-
borderColor: Colors$
|
|
20150
|
-
backgroundColor: Colors$
|
|
20149
|
+
borderColor: Colors$f.DdsColorNeutralsGray6,
|
|
20150
|
+
backgroundColor: Colors$f.DdsColorNeutralsGray6
|
|
20151
20151
|
};
|
|
20152
20152
|
var checkboxReadOnlyBase = {
|
|
20153
20153
|
backgroundColor: 'transparent'
|
|
20154
20154
|
};
|
|
20155
20155
|
var checkboxCheckedReadOnlyBase = {
|
|
20156
20156
|
border: '2px solid',
|
|
20157
|
-
borderColor: Colors$
|
|
20158
|
-
backgroundColor: Colors$
|
|
20157
|
+
borderColor: Colors$f.DdsColorNeutralsGray6,
|
|
20158
|
+
backgroundColor: Colors$f.DdsColorNeutralsGray6
|
|
20159
20159
|
};
|
|
20160
20160
|
var checkboxHoverBase = {
|
|
20161
|
-
backgroundColor: Colors$
|
|
20161
|
+
backgroundColor: Colors$f.DdsColorInteractiveLightest,
|
|
20162
20162
|
border: '2px solid',
|
|
20163
|
-
borderColor: Colors$
|
|
20163
|
+
borderColor: Colors$f.DdsColorInteractiveBase
|
|
20164
20164
|
};
|
|
20165
20165
|
var checkboxCheckedHoverBase = {
|
|
20166
|
-
backgroundColor: Colors$
|
|
20166
|
+
backgroundColor: Colors$f.DdsColorInteractiveDark,
|
|
20167
20167
|
border: '2px solid',
|
|
20168
|
-
borderColor: Colors$
|
|
20168
|
+
borderColor: Colors$f.DdsColorInteractiveDark
|
|
20169
20169
|
};
|
|
20170
20170
|
var checkboxDangerBase = {
|
|
20171
20171
|
border: '2px solid',
|
|
20172
|
-
borderColor: Colors$
|
|
20172
|
+
borderColor: Colors$f.DdsColorDangerBase
|
|
20173
20173
|
};
|
|
20174
20174
|
var checkboxDangerHoverBase = {
|
|
20175
|
-
backgroundColor: Colors$
|
|
20175
|
+
backgroundColor: Colors$f.DdsColorDangerLightest,
|
|
20176
20176
|
border: '2px solid',
|
|
20177
|
-
borderColor: Colors$
|
|
20177
|
+
borderColor: Colors$f.DdsColorDangerBase
|
|
20178
20178
|
};
|
|
20179
20179
|
var checkmarkBase = {
|
|
20180
20180
|
borderWidth: '0 1px 1px 0',
|
|
@@ -20191,17 +20191,17 @@ var checkmarkIndeterminateBase = {
|
|
|
20191
20191
|
var containerBase$3 = __assign({}, FontPackages$d.body_sans_02.base);
|
|
20192
20192
|
|
|
20193
20193
|
var containerWithLabelBase$1 = __assign(__assign({}, FontPackages$d.body_sans_02.base), {
|
|
20194
|
-
marginRight: Spacing$
|
|
20195
|
-
padding: "0 " + Spacing$
|
|
20194
|
+
marginRight: Spacing$k.SizesDdsSpacingLocalX075,
|
|
20195
|
+
padding: "0 " + Spacing$k.SizesDdsSpacingLocalX025 + " 0 " + (FontPackages$d.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$k.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
20196
20196
|
});
|
|
20197
20197
|
|
|
20198
20198
|
var containerNoLabelBase$1 = {
|
|
20199
|
-
padding: Spacing$
|
|
20199
|
+
padding: Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX0125 + " " + Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX15
|
|
20200
20200
|
};
|
|
20201
20201
|
var checkboxTokens = {
|
|
20202
20202
|
checkbox: {
|
|
20203
20203
|
base: checkboxBase,
|
|
20204
|
-
spaceLeft: Spacing$
|
|
20204
|
+
spaceLeft: Spacing$k.SizesDdsSpacingLocalX025,
|
|
20205
20205
|
hover: {
|
|
20206
20206
|
base: checkboxHoverBase
|
|
20207
20207
|
},
|
|
@@ -20244,7 +20244,7 @@ var checkboxTokens = {
|
|
|
20244
20244
|
},
|
|
20245
20245
|
checkmark: {
|
|
20246
20246
|
base: checkmarkBase,
|
|
20247
|
-
color: Colors$
|
|
20247
|
+
color: Colors$f.DdsColorNeutralsWhite,
|
|
20248
20248
|
indeterminate: {
|
|
20249
20249
|
base: checkmarkIndeterminateBase
|
|
20250
20250
|
}
|
|
@@ -20252,7 +20252,7 @@ var checkboxTokens = {
|
|
|
20252
20252
|
container: {
|
|
20253
20253
|
base: containerBase$3,
|
|
20254
20254
|
focusOutline: {
|
|
20255
|
-
color: Colors$
|
|
20255
|
+
color: Colors$f.DdsColorWarningDarker,
|
|
20256
20256
|
width: Border$6.BordersDdsBorderStyle1StrokeWeight
|
|
20257
20257
|
},
|
|
20258
20258
|
withLabel: {
|
|
@@ -20267,7 +20267,7 @@ var checkboxTokens = {
|
|
|
20267
20267
|
var CustomCheckbox = styled.span.withConfig({
|
|
20268
20268
|
displayName: "Checkboxstyles__CustomCheckbox",
|
|
20269
20269
|
componentId: "sc-17q1ubf-0"
|
|
20270
|
-
})(templateObject_1$
|
|
20270
|
+
})(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);
|
|
20271
20271
|
var Input$3 = styled.input.attrs(function (_a) {
|
|
20272
20272
|
var _b = _a.type,
|
|
20273
20273
|
type = _b === void 0 ? 'checkbox' : _b;
|
|
@@ -20277,34 +20277,34 @@ var Input$3 = styled.input.attrs(function (_a) {
|
|
|
20277
20277
|
}).withConfig({
|
|
20278
20278
|
displayName: "Checkboxstyles__Input",
|
|
20279
20279
|
componentId: "sc-17q1ubf-1"
|
|
20280
|
-
})(templateObject_2$
|
|
20280
|
+
})(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"])));
|
|
20281
20281
|
var Container$7 = styled.label.withConfig({
|
|
20282
20282
|
displayName: "Checkboxstyles__Container",
|
|
20283
20283
|
componentId: "sc-17q1ubf-2"
|
|
20284
|
-
})(templateObject_13$
|
|
20284
|
+
})(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) {
|
|
20285
20285
|
var label = _a.label;
|
|
20286
|
-
return label ? Ae(templateObject_3$
|
|
20286
|
+
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);
|
|
20287
20287
|
}, 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) {
|
|
20288
20288
|
var error = _a.error;
|
|
20289
|
-
return error && Ae(templateObject_5$
|
|
20289
|
+
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);
|
|
20290
20290
|
}, function (_a) {
|
|
20291
20291
|
var indeterminate = _a.indeterminate;
|
|
20292
|
-
return indeterminate && Ae(templateObject_6$
|
|
20292
|
+
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);
|
|
20293
20293
|
}, function (_a) {
|
|
20294
20294
|
var disabled = _a.disabled,
|
|
20295
20295
|
indeterminate = _a.indeterminate;
|
|
20296
|
-
return disabled && Ae(templateObject_8$
|
|
20296
|
+
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));
|
|
20297
20297
|
}, function (_a) {
|
|
20298
20298
|
var readOnly = _a.readOnly,
|
|
20299
20299
|
indeterminate = _a.indeterminate;
|
|
20300
|
-
return readOnly && Ae(templateObject_10$
|
|
20300
|
+
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));
|
|
20301
20301
|
}, CustomCheckbox, checkboxTokens.checkmark.color, function (_a) {
|
|
20302
20302
|
var indeterminate = _a.indeterminate;
|
|
20303
|
-
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$
|
|
20303
|
+
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);
|
|
20304
20304
|
});
|
|
20305
|
-
var templateObject_1$
|
|
20305
|
+
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;
|
|
20306
20306
|
|
|
20307
|
-
var nextUniqueId$
|
|
20307
|
+
var nextUniqueId$5 = 0;
|
|
20308
20308
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
20309
20309
|
var id = _a.id,
|
|
20310
20310
|
name = _a.name,
|
|
@@ -20317,7 +20317,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20317
20317
|
style = _a.style,
|
|
20318
20318
|
rest = __rest(_a, ["id", "name", "label", "error", "disabled", "readOnly", "indeterminate", "className", "style"]);
|
|
20319
20319
|
|
|
20320
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$
|
|
20320
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "checkbox-" + nextUniqueId$5++)[0];
|
|
20321
20321
|
var containerProps = {
|
|
20322
20322
|
error: error,
|
|
20323
20323
|
disabled: disabled,
|
|
@@ -20349,28 +20349,28 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20349
20349
|
}), void 0);
|
|
20350
20350
|
});
|
|
20351
20351
|
|
|
20352
|
-
var Spacing$
|
|
20352
|
+
var Spacing$j = ddsBaseTokens.spacing;
|
|
20353
20353
|
var checkboxGroupTokens = {
|
|
20354
20354
|
label: {
|
|
20355
|
-
spaceLeft: Spacing$
|
|
20355
|
+
spaceLeft: Spacing$j.SizesDdsSpacingLocalX025
|
|
20356
20356
|
}
|
|
20357
20357
|
};
|
|
20358
20358
|
|
|
20359
20359
|
var Container$6 = styled.div.withConfig({
|
|
20360
20360
|
displayName: "CheckboxGroup__Container",
|
|
20361
20361
|
componentId: "sc-uixbzg-0"
|
|
20362
|
-
})(templateObject_1$
|
|
20362
|
+
})(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
20363
20363
|
var GroupContainer = styled.div.withConfig({
|
|
20364
20364
|
displayName: "CheckboxGroup__GroupContainer",
|
|
20365
20365
|
componentId: "sc-uixbzg-1"
|
|
20366
|
-
})(templateObject_2$
|
|
20366
|
+
})(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n display: flex;\n flex-direction: ", ";\n"], ["\n display: flex;\n flex-direction: ", ";\n"])), function (_a) {
|
|
20367
20367
|
var direction = _a.direction;
|
|
20368
20368
|
return direction !== null && direction !== void 0 ? direction : 'row';
|
|
20369
20369
|
});
|
|
20370
20370
|
var Label$3 = styled(Typography).withConfig({
|
|
20371
20371
|
displayName: "CheckboxGroup__Label",
|
|
20372
20372
|
componentId: "sc-uixbzg-2"
|
|
20373
|
-
})(templateObject_3$
|
|
20373
|
+
})(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n padding-left: ", ";\n"], ["\n padding-left: ", ";\n"])), checkboxGroupTokens.label.spaceLeft);
|
|
20374
20374
|
var nextUniqueGroupId = 0;
|
|
20375
20375
|
var CheckboxGroup = function CheckboxGroup(_a) {
|
|
20376
20376
|
var label = _a.label,
|
|
@@ -20408,22 +20408,22 @@ var CheckboxGroup = function CheckboxGroup(_a) {
|
|
|
20408
20408
|
}, void 0) : '']
|
|
20409
20409
|
}), void 0);
|
|
20410
20410
|
};
|
|
20411
|
-
var templateObject_1$
|
|
20411
|
+
var templateObject_1$x, templateObject_2$n, templateObject_3$g;
|
|
20412
20412
|
|
|
20413
20413
|
var calculateHeightWithLineHeight = function calculateHeightWithLineHeight(lineHeight, fontSize) {
|
|
20414
20414
|
return lineHeight * 0.01 * fontSize;
|
|
20415
20415
|
};
|
|
20416
20416
|
|
|
20417
|
-
var Colors$
|
|
20417
|
+
var Colors$e = ddsBaseTokens.colors,
|
|
20418
20418
|
Border$5 = ddsBaseTokens.border,
|
|
20419
|
-
Spacing$
|
|
20419
|
+
Spacing$i = ddsBaseTokens.spacing,
|
|
20420
20420
|
FontPackages$c = ddsBaseTokens.fontPackages,
|
|
20421
20421
|
BorderRadius$2 = ddsBaseTokens.borderRadius,
|
|
20422
20422
|
OuterShadow$1 = ddsBaseTokens.outerShadow;
|
|
20423
20423
|
var focus = ddsReferenceTokens.focus;
|
|
20424
20424
|
|
|
20425
20425
|
var justIconSmallBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_02.base), {
|
|
20426
|
-
padding: Spacing$
|
|
20426
|
+
padding: Spacing$i.SizesDdsSpacingLocalX05
|
|
20427
20427
|
});
|
|
20428
20428
|
|
|
20429
20429
|
var justIconWrapperSmallBase = {
|
|
@@ -20432,11 +20432,11 @@ var justIconWrapperSmallBase = {
|
|
|
20432
20432
|
};
|
|
20433
20433
|
|
|
20434
20434
|
var textSmallBase = __assign(__assign({}, FontPackages$c.body_sans_01.base), {
|
|
20435
|
-
padding: Spacing$
|
|
20435
|
+
padding: Spacing$i.SizesDdsSpacingLocalX05 + " " + (Spacing$i.SizesDdsSpacingLocalX1NumberPx - 2) + "px"
|
|
20436
20436
|
});
|
|
20437
20437
|
|
|
20438
20438
|
var justIconMediumBase = __assign(__assign({}, FontPackages$c.heading_sans_03.base), {
|
|
20439
|
-
padding: Spacing$
|
|
20439
|
+
padding: Spacing$i.SizesDdsSpacingLocalX075
|
|
20440
20440
|
});
|
|
20441
20441
|
|
|
20442
20442
|
var justIconWrapperMediumBase = {
|
|
@@ -20445,11 +20445,11 @@ var justIconWrapperMediumBase = {
|
|
|
20445
20445
|
};
|
|
20446
20446
|
|
|
20447
20447
|
var textMediumBase = __assign(__assign({}, FontPackages$c.body_sans_02.base), {
|
|
20448
|
-
padding: Spacing$
|
|
20448
|
+
padding: Spacing$i.SizesDdsSpacingLocalX075 + " " + (Spacing$i.SizesDdsSpacingLocalX15NumberPx - 2) + "px"
|
|
20449
20449
|
});
|
|
20450
20450
|
|
|
20451
20451
|
var justIconLargeBase = __assign(__assign({}, FontPackages$c.heading_sans_04.base), {
|
|
20452
|
-
padding: Spacing$
|
|
20452
|
+
padding: Spacing$i.SizesDdsSpacingLocalX1
|
|
20453
20453
|
});
|
|
20454
20454
|
|
|
20455
20455
|
var justIconWrapperLargeBase = {
|
|
@@ -20458,7 +20458,7 @@ var justIconWrapperLargeBase = {
|
|
|
20458
20458
|
};
|
|
20459
20459
|
|
|
20460
20460
|
var textLargeBase = __assign(__assign({}, FontPackages$c.supportingStyle_inputtext_03.base), {
|
|
20461
|
-
padding: Spacing$
|
|
20461
|
+
padding: Spacing$i.SizesDdsSpacingLocalX1 + " " + (Spacing$i.SizesDdsSpacingLocalX2NumberPx - 2) + "px"
|
|
20462
20462
|
});
|
|
20463
20463
|
|
|
20464
20464
|
var buttonBase = {
|
|
@@ -20467,56 +20467,56 @@ var buttonBase = {
|
|
|
20467
20467
|
var filledButtonColors = {
|
|
20468
20468
|
primary: {
|
|
20469
20469
|
base: {
|
|
20470
|
-
color: Colors$
|
|
20471
|
-
backgroundColor: Colors$
|
|
20472
|
-
borderColor: Colors$
|
|
20470
|
+
color: Colors$e.DdsColorNeutralsWhite,
|
|
20471
|
+
backgroundColor: Colors$e.DdsColorInteractiveBase,
|
|
20472
|
+
borderColor: Colors$e.DdsColorInteractiveBase
|
|
20473
20473
|
},
|
|
20474
20474
|
hover: {
|
|
20475
20475
|
base: {
|
|
20476
|
-
backgroundColor: Colors$
|
|
20477
|
-
borderColor: Colors$
|
|
20476
|
+
backgroundColor: Colors$e.DdsColorInteractiveDark,
|
|
20477
|
+
borderColor: Colors$e.DdsColorInteractiveDark
|
|
20478
20478
|
}
|
|
20479
20479
|
},
|
|
20480
20480
|
active: {
|
|
20481
20481
|
base: {
|
|
20482
|
-
backgroundColor: Colors$
|
|
20483
|
-
borderColor: Colors$
|
|
20482
|
+
backgroundColor: Colors$e.DdsColorInteractiveDarker,
|
|
20483
|
+
borderColor: Colors$e.DdsColorInteractiveDarker
|
|
20484
20484
|
}
|
|
20485
20485
|
}
|
|
20486
20486
|
},
|
|
20487
20487
|
secondary: {
|
|
20488
20488
|
base: {
|
|
20489
|
-
color: Colors$
|
|
20490
|
-
backgroundColor: Colors$
|
|
20491
|
-
borderColor: Colors$
|
|
20489
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20490
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray1,
|
|
20491
|
+
borderColor: Colors$e.DdsColorNeutralsGray5
|
|
20492
20492
|
},
|
|
20493
20493
|
hover: {
|
|
20494
20494
|
base: {
|
|
20495
|
-
backgroundColor: Colors$
|
|
20495
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray2
|
|
20496
20496
|
}
|
|
20497
20497
|
},
|
|
20498
20498
|
active: {
|
|
20499
20499
|
base: {
|
|
20500
|
-
backgroundColor: Colors$
|
|
20500
|
+
backgroundColor: Colors$e.DdsColorNeutralsGray3
|
|
20501
20501
|
}
|
|
20502
20502
|
}
|
|
20503
20503
|
},
|
|
20504
20504
|
danger: {
|
|
20505
20505
|
base: {
|
|
20506
|
-
color: Colors$
|
|
20507
|
-
backgroundColor: Colors$
|
|
20508
|
-
borderColor: Colors$
|
|
20506
|
+
color: Colors$e.DdsColorNeutralsWhite,
|
|
20507
|
+
backgroundColor: Colors$e.DdsColorDangerBase,
|
|
20508
|
+
borderColor: Colors$e.DdsColorDangerBase
|
|
20509
20509
|
},
|
|
20510
20510
|
hover: {
|
|
20511
20511
|
base: {
|
|
20512
|
-
backgroundColor: Colors$
|
|
20513
|
-
borderColor: Colors$
|
|
20512
|
+
backgroundColor: Colors$e.DdsColorDangerDark,
|
|
20513
|
+
borderColor: Colors$e.DdsColorDangerDark
|
|
20514
20514
|
}
|
|
20515
20515
|
},
|
|
20516
20516
|
active: {
|
|
20517
20517
|
base: {
|
|
20518
|
-
backgroundColor: Colors$
|
|
20519
|
-
borderColor: Colors$
|
|
20518
|
+
backgroundColor: Colors$e.DdsColorDangerDarker,
|
|
20519
|
+
borderColor: Colors$e.DdsColorDangerDarker
|
|
20520
20520
|
}
|
|
20521
20521
|
}
|
|
20522
20522
|
}
|
|
@@ -20571,62 +20571,62 @@ var borderlessBase = {
|
|
|
20571
20571
|
textDecorationColor: 'transparent'
|
|
20572
20572
|
};
|
|
20573
20573
|
var borderlessPrimaryBase = {
|
|
20574
|
-
color: Colors$
|
|
20575
|
-
taxtDecorationColor: Colors$
|
|
20574
|
+
color: Colors$e.DdsColorInteractiveBase,
|
|
20575
|
+
taxtDecorationColor: Colors$e.DdsColorInteractiveBase
|
|
20576
20576
|
};
|
|
20577
20577
|
var borderlessPrimaryHoverBase = {
|
|
20578
|
-
color: Colors$
|
|
20579
|
-
textDecorationColor: Colors$
|
|
20578
|
+
color: Colors$e.DdsColorInteractiveDark,
|
|
20579
|
+
textDecorationColor: Colors$e.DdsColorInteractiveDark
|
|
20580
20580
|
};
|
|
20581
20581
|
var borderlessPrimaryActiveBase = {
|
|
20582
|
-
color: Colors$
|
|
20583
|
-
textDecorationColor: Colors$
|
|
20582
|
+
color: Colors$e.DdsColorInteractiveDarker,
|
|
20583
|
+
textDecorationColor: Colors$e.DdsColorInteractiveDarker
|
|
20584
20584
|
};
|
|
20585
20585
|
var borderlessPrimaryIconHoverBase = {
|
|
20586
|
-
borderColor: Colors$
|
|
20587
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20586
|
+
borderColor: Colors$e.DdsColorInteractiveDark,
|
|
20587
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDark
|
|
20588
20588
|
};
|
|
20589
20589
|
var borderlessPrimaryIconActiveBase = {
|
|
20590
|
-
borderColor: Colors$
|
|
20591
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20590
|
+
borderColor: Colors$e.DdsColorInteractiveDarker,
|
|
20591
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDarker
|
|
20592
20592
|
};
|
|
20593
20593
|
var borderlessSecondaryBase = {
|
|
20594
|
-
color: Colors$
|
|
20594
|
+
color: Colors$e.DdsColorNeutralsGray7
|
|
20595
20595
|
};
|
|
20596
20596
|
var borderlessSecondaryHoverBase = {
|
|
20597
|
-
color: Colors$
|
|
20598
|
-
textDecorationColor: Colors$
|
|
20597
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20598
|
+
textDecorationColor: Colors$e.DdsColorNeutralsGray8
|
|
20599
20599
|
};
|
|
20600
20600
|
var borderlessSecondaryActiveBase = {
|
|
20601
|
-
color: Colors$
|
|
20602
|
-
textDecorationColor: Colors$
|
|
20601
|
+
color: Colors$e.DdsColorNeutralsGray9,
|
|
20602
|
+
textDecorationColor: Colors$e.DdsColorNeutralsGray9
|
|
20603
20603
|
};
|
|
20604
20604
|
var borderlessSecondaryIconHoverBase = {
|
|
20605
|
-
borderColor: Colors$
|
|
20606
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20605
|
+
borderColor: Colors$e.DdsColorNeutralsGray8,
|
|
20606
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray8
|
|
20607
20607
|
};
|
|
20608
20608
|
var borderlessSecondaryIconActiveBase = {
|
|
20609
|
-
borderColor: Colors$
|
|
20610
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20609
|
+
borderColor: Colors$e.DdsColorNeutralsGray9,
|
|
20610
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray9
|
|
20611
20611
|
};
|
|
20612
20612
|
var borderlessDangerBase = {
|
|
20613
|
-
color: Colors$
|
|
20613
|
+
color: Colors$e.DdsColorDangerBase
|
|
20614
20614
|
};
|
|
20615
20615
|
var borderlessDangerHoverBase = {
|
|
20616
|
-
color: Colors$
|
|
20617
|
-
textDecorationColor: Colors$
|
|
20616
|
+
color: Colors$e.DdsColorDangerDarker,
|
|
20617
|
+
textDecorationColor: Colors$e.DdsColorDangerDarker
|
|
20618
20618
|
};
|
|
20619
20619
|
var borderlessDangerActiveBase = {
|
|
20620
|
-
color: Colors$
|
|
20621
|
-
textDecorationColor: Colors$
|
|
20620
|
+
color: Colors$e.DdsColorDangerDarkest,
|
|
20621
|
+
textDecorationColor: Colors$e.DdsColorDangerDarkest
|
|
20622
20622
|
};
|
|
20623
20623
|
var borderlessDangerIconHoverBase = {
|
|
20624
|
-
borderColor: Colors$
|
|
20625
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20624
|
+
borderColor: Colors$e.DdsColorDangerDark,
|
|
20625
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDark
|
|
20626
20626
|
};
|
|
20627
20627
|
var borderlessDangerIconActiveBase = {
|
|
20628
|
-
borderColor: Colors$
|
|
20629
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20628
|
+
borderColor: Colors$e.DdsColorDangerDarker,
|
|
20629
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarker
|
|
20630
20630
|
};
|
|
20631
20631
|
var ghostBase = {
|
|
20632
20632
|
borderRadius: BorderRadius$2.RadiiDdsBorderRadius1Radius,
|
|
@@ -20634,46 +20634,46 @@ var ghostBase = {
|
|
|
20634
20634
|
backgroundColor: 'transparent'
|
|
20635
20635
|
};
|
|
20636
20636
|
var ghostPrimaryBase = {
|
|
20637
|
-
color: Colors$
|
|
20638
|
-
borderColor: Colors$
|
|
20637
|
+
color: Colors$e.DdsColorInteractiveBase,
|
|
20638
|
+
borderColor: Colors$e.DdsColorInteractiveBase
|
|
20639
20639
|
};
|
|
20640
20640
|
var ghostPrimaryHoverBase = {
|
|
20641
|
-
color: Colors$
|
|
20642
|
-
borderColor: Colors$
|
|
20643
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20641
|
+
color: Colors$e.DdsColorInteractiveDark,
|
|
20642
|
+
borderColor: Colors$e.DdsColorInteractiveDark,
|
|
20643
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDark
|
|
20644
20644
|
};
|
|
20645
20645
|
var ghostPrimaryActiveBase = {
|
|
20646
|
-
color: Colors$
|
|
20647
|
-
borderColor: Colors$
|
|
20648
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20646
|
+
color: Colors$e.DdsColorInteractiveDarker,
|
|
20647
|
+
borderColor: Colors$e.DdsColorInteractiveDarker,
|
|
20648
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorInteractiveDarker
|
|
20649
20649
|
};
|
|
20650
20650
|
var ghostSecondaryBase = {
|
|
20651
|
-
color: Colors$
|
|
20652
|
-
borderColor: Colors$
|
|
20651
|
+
color: Colors$e.DdsColorNeutralsGray7,
|
|
20652
|
+
borderColor: Colors$e.DdsColorNeutralsGray7
|
|
20653
20653
|
};
|
|
20654
20654
|
var ghostSecondaryHoverBase = {
|
|
20655
|
-
color: Colors$
|
|
20656
|
-
borderColor: Colors$
|
|
20657
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20655
|
+
color: Colors$e.DdsColorNeutralsGray8,
|
|
20656
|
+
borderColor: Colors$e.DdsColorNeutralsGray8,
|
|
20657
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray8
|
|
20658
20658
|
};
|
|
20659
20659
|
var ghostSecondaryActiveBase = {
|
|
20660
|
-
color: Colors$
|
|
20661
|
-
borderColor: Colors$
|
|
20662
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20660
|
+
color: Colors$e.DdsColorNeutralsGray9,
|
|
20661
|
+
borderColor: Colors$e.DdsColorNeutralsGray9,
|
|
20662
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorNeutralsGray9
|
|
20663
20663
|
};
|
|
20664
20664
|
var ghostDangerBase = {
|
|
20665
|
-
color: Colors$
|
|
20666
|
-
borderColor: Colors$
|
|
20665
|
+
color: Colors$e.DdsColorDangerBase,
|
|
20666
|
+
borderColor: Colors$e.DdsColorDangerBase
|
|
20667
20667
|
};
|
|
20668
20668
|
var ghostDangerHoverBase = {
|
|
20669
|
-
color: Colors$
|
|
20670
|
-
borderColor: Colors$
|
|
20671
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20669
|
+
color: Colors$e.DdsColorDangerDark,
|
|
20670
|
+
borderColor: Colors$e.DdsColorDangerDark,
|
|
20671
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDark
|
|
20672
20672
|
};
|
|
20673
20673
|
var ghostDangerActiveBase = {
|
|
20674
|
-
color: Colors$
|
|
20675
|
-
borderColor: Colors$
|
|
20676
|
-
boxShadow: "0 0 0 1px " + Colors$
|
|
20674
|
+
color: Colors$e.DdsColorDangerDarkest,
|
|
20675
|
+
borderColor: Colors$e.DdsColorDangerDarkest,
|
|
20676
|
+
boxShadow: "0 0 0 1px " + Colors$e.DdsColorDangerDarkest
|
|
20677
20677
|
};
|
|
20678
20678
|
var roundedBase = {
|
|
20679
20679
|
borderRadius: '100px',
|
|
@@ -20696,7 +20696,7 @@ var buttonTokens = {
|
|
|
20696
20696
|
text: {
|
|
20697
20697
|
base: textSmallBase
|
|
20698
20698
|
},
|
|
20699
|
-
iconWithTextMargin: Spacing$
|
|
20699
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX025
|
|
20700
20700
|
},
|
|
20701
20701
|
medium: {
|
|
20702
20702
|
justIcon: {
|
|
@@ -20708,7 +20708,7 @@ var buttonTokens = {
|
|
|
20708
20708
|
text: {
|
|
20709
20709
|
base: textMediumBase
|
|
20710
20710
|
},
|
|
20711
|
-
iconWithTextMargin: Spacing$
|
|
20711
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX05
|
|
20712
20712
|
},
|
|
20713
20713
|
large: {
|
|
20714
20714
|
justIcon: {
|
|
@@ -20720,7 +20720,7 @@ var buttonTokens = {
|
|
|
20720
20720
|
text: {
|
|
20721
20721
|
base: textLargeBase
|
|
20722
20722
|
},
|
|
20723
|
-
iconWithTextMargin: Spacing$
|
|
20723
|
+
iconWithTextMargin: Spacing$i.SizesDdsSpacingLocalX075
|
|
20724
20724
|
}
|
|
20725
20725
|
},
|
|
20726
20726
|
appearance: {
|
|
@@ -20871,9 +20871,9 @@ var buttonTokens = {
|
|
|
20871
20871
|
}
|
|
20872
20872
|
};
|
|
20873
20873
|
|
|
20874
|
-
var Colors$
|
|
20874
|
+
var Colors$d = ddsBaseTokens.colors;
|
|
20875
20875
|
var ciclreBase = {
|
|
20876
|
-
stroke: Colors$
|
|
20876
|
+
stroke: Colors$d.DdsColorInteractiveBase
|
|
20877
20877
|
};
|
|
20878
20878
|
var spinnerTokens = {
|
|
20879
20879
|
circle: {
|
|
@@ -20884,7 +20884,7 @@ var spinnerTokens = {
|
|
|
20884
20884
|
var StyledSpinner = styled.svg.withConfig({
|
|
20885
20885
|
displayName: "Spinner__StyledSpinner",
|
|
20886
20886
|
componentId: "sc-13hsttm-0"
|
|
20887
|
-
})(templateObject_1$
|
|
20887
|
+
})(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) {
|
|
20888
20888
|
var outerAnimationDelay = _a.outerAnimationDelay;
|
|
20889
20889
|
return outerAnimationDelay;
|
|
20890
20890
|
}, function (_a) {
|
|
@@ -20897,14 +20897,14 @@ var StyledSpinner = styled.svg.withConfig({
|
|
|
20897
20897
|
var Circle = styled.circle.withConfig({
|
|
20898
20898
|
displayName: "Spinner__Circle",
|
|
20899
20899
|
componentId: "sc-13hsttm-1"
|
|
20900
|
-
})(templateObject_2$
|
|
20900
|
+
})(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) {
|
|
20901
20901
|
var color = _a.color;
|
|
20902
20902
|
return color && getTextColor(color);
|
|
20903
20903
|
}, function (_a) {
|
|
20904
20904
|
var innerAnimationDelay = _a.innerAnimationDelay;
|
|
20905
20905
|
return innerAnimationDelay;
|
|
20906
20906
|
});
|
|
20907
|
-
var nextUniqueId$
|
|
20907
|
+
var nextUniqueId$4 = 0;
|
|
20908
20908
|
function Spinner(_a) {
|
|
20909
20909
|
var _b = _a.size,
|
|
20910
20910
|
size = _b === void 0 ? ddsBaseTokens.iconSizes.DdsIconsizeMedium : _b,
|
|
@@ -20913,7 +20913,7 @@ function Spinner(_a) {
|
|
|
20913
20913
|
var mountTime = React__default['default'].useRef(Date.now());
|
|
20914
20914
|
var outerAnimationDelay = -(mountTime.current % 2000);
|
|
20915
20915
|
var innerAnimationDelay = -(mountTime.current % 1500);
|
|
20916
|
-
var uniqueId = React.useState("spinnerTitle-" + nextUniqueId$
|
|
20916
|
+
var uniqueId = React.useState("spinnerTitle-" + nextUniqueId$4++)[0];
|
|
20917
20917
|
var spinnerProps = {
|
|
20918
20918
|
outerAnimationDelay: outerAnimationDelay,
|
|
20919
20919
|
size: size
|
|
@@ -20940,15 +20940,15 @@ function Spinner(_a) {
|
|
|
20940
20940
|
}), void 0)]
|
|
20941
20941
|
}), void 0);
|
|
20942
20942
|
}
|
|
20943
|
-
var templateObject_1$
|
|
20943
|
+
var templateObject_1$w, templateObject_2$m;
|
|
20944
20944
|
|
|
20945
20945
|
var buttonContentStyle = function buttonContentStyle(purpose, appearance, label, Icon) {
|
|
20946
|
-
return Ae(templateObject_3$
|
|
20946
|
+
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));
|
|
20947
20947
|
};
|
|
20948
20948
|
var ButtonContent = styled.span.withConfig({
|
|
20949
20949
|
displayName: "Buttonstyles__ButtonContent",
|
|
20950
20950
|
componentId: "sc-14dutqk-0"
|
|
20951
|
-
})(templateObject_8$
|
|
20951
|
+
})(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) {
|
|
20952
20952
|
var label = _a.label,
|
|
20953
20953
|
purpose = _a.purpose,
|
|
20954
20954
|
appearance = _a.appearance,
|
|
@@ -20959,39 +20959,39 @@ var ButtonContent = styled.span.withConfig({
|
|
|
20959
20959
|
Icon = _a.Icon,
|
|
20960
20960
|
label = _a.label,
|
|
20961
20961
|
loading = _a.loading;
|
|
20962
|
-
return fullWidth && (!Icon || !label || loading ? Ae(templateObject_4$
|
|
20962
|
+
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 "]))));
|
|
20963
20963
|
}, function (_a) {
|
|
20964
20964
|
var size = _a.size,
|
|
20965
20965
|
label = _a.label;
|
|
20966
|
-
return size && (label ? Ae(templateObject_6$
|
|
20966
|
+
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));
|
|
20967
20967
|
});
|
|
20968
20968
|
var ButtonWrapper$1 = styled.button.withConfig({
|
|
20969
20969
|
displayName: "Buttonstyles__ButtonWrapper",
|
|
20970
20970
|
componentId: "sc-14dutqk-1"
|
|
20971
|
-
})(templateObject_10$
|
|
20971
|
+
})(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) {
|
|
20972
20972
|
var fullWidth = _a.fullWidth;
|
|
20973
|
-
return !fullWidth && Ae(templateObject_9$
|
|
20973
|
+
return !fullWidth && Ae(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n width: fit-content;\n "], ["\n width: fit-content;\n "])));
|
|
20974
20974
|
}, ButtonContent, buttonTokens.focusOutline.width, buttonTokens.focusOutline.color);
|
|
20975
20975
|
var IconWithTextWrapper = styled(IconWrapper$1).withConfig({
|
|
20976
20976
|
displayName: "Buttonstyles__IconWithTextWrapper",
|
|
20977
20977
|
componentId: "sc-14dutqk-2"
|
|
20978
|
-
})(templateObject_13
|
|
20978
|
+
})(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
20979
20979
|
var size = _a.size,
|
|
20980
20980
|
iconPosition = _a.iconPosition;
|
|
20981
|
-
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
|
|
20981
|
+
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) : '');
|
|
20982
20982
|
});
|
|
20983
20983
|
var JustIconWrapper = styled.span.withConfig({
|
|
20984
20984
|
displayName: "Buttonstyles__JustIconWrapper",
|
|
20985
20985
|
componentId: "sc-14dutqk-3"
|
|
20986
|
-
})(templateObject_15
|
|
20986
|
+
})(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) {
|
|
20987
20987
|
var size = _a.size;
|
|
20988
|
-
return size && Ae(templateObject_14
|
|
20988
|
+
return size && Ae(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
20989
20989
|
});
|
|
20990
20990
|
var Label$2 = styled.span.withConfig({
|
|
20991
20991
|
displayName: "Buttonstyles__Label",
|
|
20992
20992
|
componentId: "sc-14dutqk-4"
|
|
20993
|
-
})(templateObject_16
|
|
20994
|
-
var templateObject_1$
|
|
20993
|
+
})(templateObject_16 || (templateObject_16 = __makeTemplateObject([""], [""])));
|
|
20994
|
+
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;
|
|
20995
20995
|
|
|
20996
20996
|
var Button = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
20997
20997
|
var label = _a.label,
|
|
@@ -21072,20 +21072,95 @@ var Button = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21072
21072
|
}), void 0);
|
|
21073
21073
|
});
|
|
21074
21074
|
|
|
21075
|
+
var Colors$c = ddsBaseTokens.colors,
|
|
21076
|
+
Spacing$h = ddsBaseTokens.spacing;
|
|
21077
|
+
var TextInput$3 = ddsReferenceTokens.textInput;
|
|
21078
|
+
var inputMultilineBase = {
|
|
21079
|
+
paddingBottom: Spacing$h.SizesDdsSpacingLocalX05
|
|
21080
|
+
};
|
|
21081
|
+
var inputMultilineWithLabelBase = {
|
|
21082
|
+
paddingTop: Spacing$h.SizesDdsSpacingLocalX2
|
|
21083
|
+
};
|
|
21084
|
+
var inputMultilineNoLabelBase = {
|
|
21085
|
+
paddingTop: Spacing$h.SizesDdsSpacingLocalX075
|
|
21086
|
+
};
|
|
21087
|
+
var inputLabelMultilineBase = {
|
|
21088
|
+
backgroundColor: Colors$c.DdsColorNeutralsWhite,
|
|
21089
|
+
padding: Spacing$h.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$h.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$h.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
21090
|
+
};
|
|
21091
|
+
var defaultWidth$2 = '320px';
|
|
21092
|
+
var textInputTokens = {
|
|
21093
|
+
general: TextInput$3,
|
|
21094
|
+
focusColor: TextInput$3.input.focus.borderColor,
|
|
21095
|
+
multiline: {
|
|
21096
|
+
base: inputMultilineBase,
|
|
21097
|
+
withLabel: {
|
|
21098
|
+
base: inputMultilineWithLabelBase
|
|
21099
|
+
},
|
|
21100
|
+
noLabel: {
|
|
21101
|
+
base: inputMultilineNoLabelBase
|
|
21102
|
+
}
|
|
21103
|
+
},
|
|
21104
|
+
label: {
|
|
21105
|
+
multiline: {
|
|
21106
|
+
base: inputLabelMultilineBase
|
|
21107
|
+
}
|
|
21108
|
+
},
|
|
21109
|
+
wrapper: {
|
|
21110
|
+
defaultWidth: defaultWidth$2
|
|
21111
|
+
},
|
|
21112
|
+
container: {
|
|
21113
|
+
multiline: {
|
|
21114
|
+
withLabel: {
|
|
21115
|
+
height: '99px'
|
|
21116
|
+
},
|
|
21117
|
+
noLabel: {
|
|
21118
|
+
height: '78px'
|
|
21119
|
+
}
|
|
21120
|
+
}
|
|
21121
|
+
}
|
|
21122
|
+
};
|
|
21123
|
+
|
|
21124
|
+
var Spacing$g = ddsBaseTokens.spacing;
|
|
21125
|
+
var charCounterBase = {
|
|
21126
|
+
padding: Spacing$g.SizesDdsSpacingLocalX025 + " " + Spacing$g.SizesDdsSpacingLocalX05
|
|
21127
|
+
};
|
|
21128
|
+
var charCounterTokens = {
|
|
21129
|
+
base: charCounterBase
|
|
21130
|
+
};
|
|
21131
|
+
|
|
21132
|
+
var Wrapper$3 = styled(Typography).withConfig({
|
|
21133
|
+
displayName: "CharCounter__Wrapper",
|
|
21134
|
+
componentId: "sc-qty1z2-0"
|
|
21135
|
+
})(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
21136
|
+
|
|
21137
|
+
function CharCounter(_a) {
|
|
21138
|
+
var current = _a.current,
|
|
21139
|
+
max = _a.max;
|
|
21140
|
+
return jsxRuntime.jsxs(Wrapper$3, __assign({
|
|
21141
|
+
forwardedAs: "div",
|
|
21142
|
+
typographyType: "supportingStyleHelperText01"
|
|
21143
|
+
}, {
|
|
21144
|
+
children: [current, "/", max]
|
|
21145
|
+
}), void 0);
|
|
21146
|
+
}
|
|
21147
|
+
var templateObject_1$u;
|
|
21148
|
+
|
|
21075
21149
|
var Colors$b = ddsBaseTokens.colors,
|
|
21076
|
-
Spacing$
|
|
21150
|
+
Spacing$f = ddsBaseTokens.spacing,
|
|
21077
21151
|
FontPackages$b = ddsBaseTokens.fontPackages;
|
|
21078
21152
|
var TextInput$2 = ddsReferenceTokens.textInput;
|
|
21079
21153
|
var inputBase$2 = {
|
|
21080
21154
|
border: "1px solid " + Colors$b.DdsColorNeutralsGray5
|
|
21081
21155
|
};
|
|
21082
21156
|
var inputWithLabelBase = {
|
|
21083
|
-
padding: Spacing$
|
|
21157
|
+
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
|
|
21084
21158
|
};
|
|
21085
21159
|
var inputNoLabelBase$1 = {
|
|
21086
|
-
padding: Spacing$
|
|
21160
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1 + " " + Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21087
21161
|
};
|
|
21088
21162
|
var inputDisabledBase = {
|
|
21163
|
+
color: Colors$b.DdsColorNeutralsGray7,
|
|
21089
21164
|
backgroundColor: Colors$b.DdsColorNeutralsGray1
|
|
21090
21165
|
};
|
|
21091
21166
|
var inputErrorBase = {
|
|
@@ -21101,52 +21176,22 @@ var inputErrorFocusBase = {
|
|
|
21101
21176
|
borderColor: Colors$b.DdsColorDangerDarker,
|
|
21102
21177
|
boxShadow: "0 0 0 1px " + Colors$b.DdsColorDangerDarker
|
|
21103
21178
|
};
|
|
21104
|
-
var inputMultilineBase = {
|
|
21105
|
-
paddingBottom: Spacing$g.SizesDdsSpacingLocalX05
|
|
21106
|
-
};
|
|
21107
|
-
var inputMultilineWithLabelBase = {
|
|
21108
|
-
paddingTop: Spacing$g.SizesDdsSpacingLocalX2
|
|
21109
|
-
};
|
|
21110
|
-
var inputMultilineNoLabelBase = {
|
|
21111
|
-
paddingTop: Spacing$g.SizesDdsSpacingLocalX075
|
|
21112
|
-
};
|
|
21113
21179
|
var inputReadOnlyBase = {
|
|
21114
21180
|
border: 'none',
|
|
21115
21181
|
backgroundColor: 'transparent',
|
|
21116
|
-
paddingLeft: Spacing$
|
|
21182
|
+
paddingLeft: Spacing$f.SizesDdsSpacingLocalX1
|
|
21117
21183
|
};
|
|
21118
21184
|
var inputLabelBase = {
|
|
21119
|
-
padding: Spacing$
|
|
21185
|
+
padding: Spacing$f.SizesDdsSpacingLocalX075 + " " + Spacing$f.SizesDdsSpacingLocalX1
|
|
21120
21186
|
};
|
|
21121
|
-
var
|
|
21122
|
-
|
|
21123
|
-
multiline: {
|
|
21124
|
-
base: {
|
|
21125
|
-
backgroundColor: Colors$b.DdsColorNeutralsWhite,
|
|
21126
|
-
padding: Spacing$g.SizesDdsSpacingLocalX075NumberPx - 1 + "px " + Spacing$g.SizesDdsSpacingLocalX1 + " 0px " + (Spacing$g.SizesDdsSpacingLocalX1NumberPx - 1) + "px"
|
|
21127
|
-
}
|
|
21128
|
-
},
|
|
21129
|
-
hover: {
|
|
21130
|
-
base: {
|
|
21131
|
-
color: TextInput$2.label.hover.textColor
|
|
21132
|
-
}
|
|
21133
|
-
},
|
|
21134
|
-
focus: {
|
|
21135
|
-
base: {
|
|
21136
|
-
color: TextInput$2.label.focus.textColor
|
|
21137
|
-
}
|
|
21138
|
-
}
|
|
21187
|
+
var inputLabelHoverBase = {
|
|
21188
|
+
color: TextInput$2.label.hover.textColor
|
|
21139
21189
|
};
|
|
21140
|
-
var
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
},
|
|
21146
|
-
noLabel: {
|
|
21147
|
-
height: '78px'
|
|
21148
|
-
}
|
|
21149
|
-
}
|
|
21190
|
+
var inputLabelFocusBase = {
|
|
21191
|
+
color: TextInput$2.label.focus.textColor
|
|
21192
|
+
};
|
|
21193
|
+
var inputLabelDisabledBase = {
|
|
21194
|
+
color: Colors$b.DdsColorNeutralsGray6
|
|
21150
21195
|
};
|
|
21151
21196
|
var inputTokens = {
|
|
21152
21197
|
general: TextInput$2,
|
|
@@ -21164,15 +21209,6 @@ var inputTokens = {
|
|
|
21164
21209
|
disabled: {
|
|
21165
21210
|
base: inputDisabledBase
|
|
21166
21211
|
},
|
|
21167
|
-
multiline: {
|
|
21168
|
-
base: inputMultilineBase,
|
|
21169
|
-
withLabel: {
|
|
21170
|
-
base: inputMultilineWithLabelBase
|
|
21171
|
-
},
|
|
21172
|
-
noLabel: {
|
|
21173
|
-
base: inputMultilineNoLabelBase
|
|
21174
|
-
}
|
|
21175
|
-
},
|
|
21176
21212
|
error: {
|
|
21177
21213
|
base: inputErrorBase,
|
|
21178
21214
|
hover: {
|
|
@@ -21182,38 +21218,20 @@ var inputTokens = {
|
|
|
21182
21218
|
base: inputErrorFocusBase
|
|
21183
21219
|
}
|
|
21184
21220
|
},
|
|
21185
|
-
label:
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21191
|
-
|
|
21192
|
-
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
}
|
|
21196
|
-
|
|
21197
|
-
base: charCounterBase
|
|
21221
|
+
label: {
|
|
21222
|
+
base: inputLabelBase,
|
|
21223
|
+
hover: {
|
|
21224
|
+
base: inputLabelHoverBase
|
|
21225
|
+
},
|
|
21226
|
+
focus: {
|
|
21227
|
+
base: inputLabelFocusBase
|
|
21228
|
+
},
|
|
21229
|
+
disabled: {
|
|
21230
|
+
base: inputLabelDisabledBase
|
|
21231
|
+
}
|
|
21232
|
+
}
|
|
21198
21233
|
};
|
|
21199
21234
|
|
|
21200
|
-
var Wrapper$3 = styled(Typography).withConfig({
|
|
21201
|
-
displayName: "CharCounter__Wrapper",
|
|
21202
|
-
componentId: "sc-qty1z2-0"
|
|
21203
|
-
})(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n margin-left: auto;\n ", "\n"], ["\n margin-left: auto;\n ", "\n"])), charCounterTokens.base);
|
|
21204
|
-
|
|
21205
|
-
function CharCounter(_a) {
|
|
21206
|
-
var current = _a.current,
|
|
21207
|
-
max = _a.max;
|
|
21208
|
-
return jsxRuntime.jsxs(Wrapper$3, __assign({
|
|
21209
|
-
forwardedAs: "div",
|
|
21210
|
-
typographyType: "supportingStyleHelperText01"
|
|
21211
|
-
}, {
|
|
21212
|
-
children: [current, "/", max]
|
|
21213
|
-
}), void 0);
|
|
21214
|
-
}
|
|
21215
|
-
var templateObject_1$s;
|
|
21216
|
-
|
|
21217
21235
|
var TextInput$1 = ddsReferenceTokens.textInput;
|
|
21218
21236
|
|
|
21219
21237
|
var stylingBase = __assign({
|
|
@@ -21236,45 +21254,64 @@ var hoverBase$1 = {
|
|
|
21236
21254
|
backgroundColor: TextInput$1.input.hover.backgroundColor
|
|
21237
21255
|
};
|
|
21238
21256
|
var inputFieldStylingBase = function inputFieldStylingBase() {
|
|
21239
|
-
return Ae(templateObject_1$
|
|
21257
|
+
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);
|
|
21240
21258
|
};
|
|
21241
|
-
var templateObject_1$
|
|
21242
|
-
|
|
21243
|
-
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)');
|
|
21244
|
-
var templateObject_1$q;
|
|
21259
|
+
var templateObject_1$t;
|
|
21245
21260
|
|
|
21246
|
-
var
|
|
21261
|
+
var inputStyling = function inputStyling(_a) {
|
|
21247
21262
|
var readOnly = _a.readOnly,
|
|
21248
21263
|
errorMessage = _a.errorMessage,
|
|
21249
21264
|
label = _a.label,
|
|
21250
21265
|
disabled = _a.disabled;
|
|
21251
|
-
return Ae(templateObject_6$
|
|
21266
|
+
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));
|
|
21252
21267
|
};
|
|
21253
|
-
|
|
21254
21268
|
var Input$2 = styled.input.withConfig({
|
|
21255
|
-
displayName: "
|
|
21256
|
-
componentId: "sc-
|
|
21257
|
-
})(templateObject_7$
|
|
21269
|
+
displayName: "Inputstyles__Input",
|
|
21270
|
+
componentId: "sc-1oz9x8w-0"
|
|
21271
|
+
})(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
21258
21272
|
var label = _a.label,
|
|
21259
21273
|
disabled = _a.disabled,
|
|
21260
21274
|
readOnly = _a.readOnly,
|
|
21261
21275
|
errorMessage = _a.errorMessage;
|
|
21262
|
-
return
|
|
21276
|
+
return inputStyling({
|
|
21263
21277
|
readOnly: readOnly,
|
|
21264
21278
|
errorMessage: errorMessage,
|
|
21265
21279
|
label: label,
|
|
21266
21280
|
disabled: disabled
|
|
21267
21281
|
});
|
|
21268
21282
|
});
|
|
21283
|
+
var SingleLineLabel = styled(Typography).withConfig({
|
|
21284
|
+
displayName: "Inputstyles__SingleLineLabel",
|
|
21285
|
+
componentId: "sc-1oz9x8w-1"
|
|
21286
|
+
})(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) {
|
|
21287
|
+
var disabled = _a.disabled;
|
|
21288
|
+
return disabled && Ae(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), inputTokens.label.disabled.base);
|
|
21289
|
+
});
|
|
21290
|
+
var InputContainer$2 = styled.div.withConfig({
|
|
21291
|
+
displayName: "Inputstyles__InputContainer",
|
|
21292
|
+
componentId: "sc-1oz9x8w-2"
|
|
21293
|
+
})(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
21294
|
+
var OuterInputContainer = styled.div.withConfig({
|
|
21295
|
+
displayName: "Inputstyles__OuterInputContainer",
|
|
21296
|
+
componentId: "sc-1oz9x8w-3"
|
|
21297
|
+
})(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) {
|
|
21298
|
+
var width = _a.width;
|
|
21299
|
+
return width;
|
|
21300
|
+
});
|
|
21301
|
+
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;
|
|
21302
|
+
|
|
21303
|
+
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)');
|
|
21304
|
+
var templateObject_1$r;
|
|
21305
|
+
|
|
21269
21306
|
var TextArea = styled.textarea.withConfig({
|
|
21270
21307
|
displayName: "TextInputstyles__TextArea",
|
|
21271
|
-
componentId: "sc-165zflr-
|
|
21272
|
-
})(
|
|
21308
|
+
componentId: "sc-165zflr-0"
|
|
21309
|
+
})(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) {
|
|
21273
21310
|
var label = _a.label,
|
|
21274
21311
|
disabled = _a.disabled,
|
|
21275
21312
|
readOnly = _a.readOnly,
|
|
21276
21313
|
errorMessage = _a.errorMessage;
|
|
21277
|
-
return
|
|
21314
|
+
return inputStyling({
|
|
21278
21315
|
readOnly: readOnly,
|
|
21279
21316
|
errorMessage: errorMessage,
|
|
21280
21317
|
label: label,
|
|
@@ -21282,61 +21319,54 @@ var TextArea = styled.textarea.withConfig({
|
|
|
21282
21319
|
});
|
|
21283
21320
|
}, scrollbarStyling, function (_a) {
|
|
21284
21321
|
var label = _a.label;
|
|
21285
|
-
return label ?
|
|
21286
|
-
},
|
|
21322
|
+
return label ? textInputTokens.container.multiline.withLabel.height : textInputTokens.container.multiline.noLabel.height;
|
|
21323
|
+
}, textInputTokens.multiline.base, function (_a) {
|
|
21287
21324
|
var label = _a.label;
|
|
21288
|
-
return label ? Ae(
|
|
21325
|
+
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);
|
|
21289
21326
|
}, function (_a) {
|
|
21290
21327
|
var errorMessage = _a.errorMessage;
|
|
21291
21328
|
return errorMessage ? inputTokens.error.hover.base.backgroundColor : inputTokens.general.input.hover.backgroundColor;
|
|
21292
21329
|
});
|
|
21293
|
-
var
|
|
21294
|
-
displayName: "
|
|
21295
|
-
componentId: "sc-165zflr-
|
|
21296
|
-
})(
|
|
21297
|
-
var Label$1 = styled(
|
|
21330
|
+
var MessageContainer = styled.div.withConfig({
|
|
21331
|
+
displayName: "TextInputstyles__MessageContainer",
|
|
21332
|
+
componentId: "sc-165zflr-1"
|
|
21333
|
+
})(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"])));
|
|
21334
|
+
var Label$1 = styled(SingleLineLabel).withConfig({
|
|
21298
21335
|
displayName: "TextInputstyles__Label",
|
|
21299
|
-
componentId: "sc-165zflr-
|
|
21300
|
-
})(
|
|
21336
|
+
componentId: "sc-165zflr-2"
|
|
21337
|
+
})(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n"], ["\n ", "\n ", "\n ", "\n"])), function (_a) {
|
|
21301
21338
|
var multiline = _a.multiline;
|
|
21302
|
-
return multiline && Ae(
|
|
21339
|
+
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);
|
|
21303
21340
|
}, function (_a) {
|
|
21304
21341
|
var disabled = _a.disabled,
|
|
21305
21342
|
multiline = _a.multiline;
|
|
21306
|
-
return disabled && multiline && Ae(
|
|
21343
|
+
return disabled && multiline && Ae(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), inputTokens.disabled.base.backgroundColor);
|
|
21307
21344
|
}, function (_a) {
|
|
21308
21345
|
var readOnly = _a.readOnly,
|
|
21309
21346
|
multiline = _a.multiline;
|
|
21310
|
-
return readOnly && multiline && Ae(
|
|
21311
|
-
});
|
|
21312
|
-
var InputFieldWrapper = styled.div.withConfig({
|
|
21313
|
-
displayName: "TextInputstyles__InputFieldWrapper",
|
|
21314
|
-
componentId: "sc-165zflr-4"
|
|
21315
|
-
})(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n width: ", ";\n"])), function (_a) {
|
|
21316
|
-
var width = _a.width;
|
|
21317
|
-
return width;
|
|
21347
|
+
return readOnly && multiline && Ae(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), inputTokens.readOnly.base.backgroundColor);
|
|
21318
21348
|
});
|
|
21319
|
-
var
|
|
21320
|
-
displayName: "
|
|
21321
|
-
componentId: "sc-165zflr-
|
|
21322
|
-
})(
|
|
21349
|
+
var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
21350
|
+
displayName: "TextInputstyles__InputContainer",
|
|
21351
|
+
componentId: "sc-165zflr-3"
|
|
21352
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n height: ", ";\n"], ["\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21323
21353
|
var multiline = _a.multiline;
|
|
21324
|
-
return multiline && Ae(
|
|
21354
|
+
return multiline && Ae(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "])));
|
|
21325
21355
|
}, function (_a) {
|
|
21326
21356
|
var multiline = _a.multiline,
|
|
21327
21357
|
label = _a.label;
|
|
21328
21358
|
|
|
21329
21359
|
if (multiline) {
|
|
21330
21360
|
if (label) {
|
|
21331
|
-
return
|
|
21361
|
+
return textInputTokens.container.multiline.withLabel.height;
|
|
21332
21362
|
}
|
|
21333
21363
|
|
|
21334
|
-
return
|
|
21364
|
+
return textInputTokens.container.multiline.noLabel.height;
|
|
21335
21365
|
}
|
|
21336
21366
|
});
|
|
21337
|
-
var templateObject_1$
|
|
21367
|
+
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;
|
|
21338
21368
|
|
|
21339
|
-
var nextUniqueId$
|
|
21369
|
+
var nextUniqueId$3 = 0;
|
|
21340
21370
|
var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
21341
21371
|
var label = _a.label,
|
|
21342
21372
|
disabled = _a.disabled,
|
|
@@ -21349,7 +21379,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21349
21379
|
onChange = _a.onChange,
|
|
21350
21380
|
id = _a.id,
|
|
21351
21381
|
_b = _a.width,
|
|
21352
|
-
width = _b === void 0 ?
|
|
21382
|
+
width = _b === void 0 ? textInputTokens.wrapper.defaultWidth : _b,
|
|
21353
21383
|
_c = _a.type,
|
|
21354
21384
|
type = _c === void 0 ? 'text' : _c,
|
|
21355
21385
|
className = _a.className,
|
|
@@ -21399,35 +21429,37 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21399
21429
|
}
|
|
21400
21430
|
};
|
|
21401
21431
|
|
|
21402
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$
|
|
21432
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "textInput-" + nextUniqueId$3++)[0];
|
|
21403
21433
|
|
|
21404
21434
|
var generalInputProps = __assign({
|
|
21405
21435
|
id: uniqueId,
|
|
21406
21436
|
label: label,
|
|
21407
21437
|
errorMessage: errorMessage,
|
|
21408
|
-
disabled: disabled
|
|
21438
|
+
disabled: disabled,
|
|
21409
21439
|
readOnly: readOnly,
|
|
21440
|
+
tabIndex: readOnly ? -1 : 0,
|
|
21410
21441
|
maxLength: maxLength
|
|
21411
21442
|
}, rest);
|
|
21412
21443
|
|
|
21413
|
-
var wrapperProps = {
|
|
21414
|
-
className: className,
|
|
21415
|
-
style: style,
|
|
21416
|
-
width: width
|
|
21417
|
-
};
|
|
21418
21444
|
var labelProps = {
|
|
21419
21445
|
multiline: multiline,
|
|
21420
21446
|
disabled: disabled,
|
|
21421
21447
|
readOnly: readOnly
|
|
21422
21448
|
};
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21449
|
+
var inputContainerProps = {
|
|
21450
|
+
style: multiline ? {
|
|
21451
|
+
minHeight: parentHeight
|
|
21452
|
+
} : {},
|
|
21453
|
+
multiline: multiline,
|
|
21454
|
+
label: label
|
|
21455
|
+
};
|
|
21456
|
+
var outerInputContainerProps = {
|
|
21457
|
+
className: className,
|
|
21458
|
+
style: style,
|
|
21459
|
+
width: width
|
|
21460
|
+
};
|
|
21461
|
+
return jsxRuntime.jsxs(OuterInputContainer, __assign({}, outerInputContainerProps, {
|
|
21462
|
+
children: [jsxRuntime.jsxs(InputContainer$1, __assign({}, inputContainerProps, {
|
|
21431
21463
|
children: [multiline ? jsxRuntime.jsx(TextArea, __assign({
|
|
21432
21464
|
ref: textAreaRef,
|
|
21433
21465
|
style: {
|
|
@@ -21447,7 +21479,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
21447
21479
|
}, {
|
|
21448
21480
|
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
21449
21481
|
}), void 0)]
|
|
21450
|
-
}), void 0), jsxRuntime.jsxs(
|
|
21482
|
+
}), void 0), jsxRuntime.jsxs(MessageContainer, {
|
|
21451
21483
|
children: [errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
21452
21484
|
message: errorMessage,
|
|
21453
21485
|
messageType: "error"
|
|
@@ -28529,7 +28561,7 @@ var prefix = 'dds-select';
|
|
|
28529
28561
|
var Label = styled(Typography).withConfig({
|
|
28530
28562
|
displayName: "Selectstyles__Label",
|
|
28531
28563
|
componentId: "sc-19jkd5s-0"
|
|
28532
|
-
})(templateObject_1$
|
|
28564
|
+
})(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ", "\n"])), selectTokens.label.base);
|
|
28533
28565
|
var Container$5 = styled.div.withConfig({
|
|
28534
28566
|
displayName: "Selectstyles__Container",
|
|
28535
28567
|
componentId: "sc-19jkd5s-1"
|
|
@@ -28626,7 +28658,7 @@ var CustomStyles = {
|
|
|
28626
28658
|
return {};
|
|
28627
28659
|
}
|
|
28628
28660
|
};
|
|
28629
|
-
var templateObject_1$
|
|
28661
|
+
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;
|
|
28630
28662
|
|
|
28631
28663
|
var DdsOption = components.Option,
|
|
28632
28664
|
NoOptionsMessage = components.NoOptionsMessage;
|
|
@@ -28655,7 +28687,7 @@ function searchFilter(text, search) {
|
|
|
28655
28687
|
var searchFilterRegex = new RegExp("(?:^|[\\s-(])" + escapeRegexCharacters(search.toLowerCase()));
|
|
28656
28688
|
return searchFilterRegex.test(text.toLowerCase());
|
|
28657
28689
|
}
|
|
28658
|
-
var nextUniqueId$
|
|
28690
|
+
var nextUniqueId$2 = 0;
|
|
28659
28691
|
var Select = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
28660
28692
|
var id = _a.id,
|
|
28661
28693
|
label = _a.label,
|
|
@@ -28677,7 +28709,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
28677
28709
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
28678
28710
|
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "value", "defaultValue", "width", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
28679
28711
|
|
|
28680
|
-
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$
|
|
28712
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$2++)[0];
|
|
28681
28713
|
var wrapperProps = {
|
|
28682
28714
|
width: width
|
|
28683
28715
|
};
|
|
@@ -28894,7 +28926,7 @@ var Container$4 = styled.div.withConfig({
|
|
|
28894
28926
|
componentId: "sc-bf2l65-0"
|
|
28895
28927
|
})(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) {
|
|
28896
28928
|
var purpose = _a.purpose;
|
|
28897
|
-
return purpose && Ae(templateObject_1$
|
|
28929
|
+
return purpose && Ae(templateObject_1$o || (templateObject_1$o = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), globalMessageTokens.container.base, globalMessageTokens.container[purpose].base);
|
|
28898
28930
|
});
|
|
28899
28931
|
var MessageIconWrapper$1 = styled(IconWrapper$1).withConfig({
|
|
28900
28932
|
displayName: "GlobalMessage__MessageIconWrapper",
|
|
@@ -28916,8 +28948,9 @@ var GlobalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
28916
28948
|
_b = _a.purpose,
|
|
28917
28949
|
purpose = _b === void 0 ? 'info' : _b,
|
|
28918
28950
|
closable = _a.closable,
|
|
28951
|
+
onClose = _a.onClose,
|
|
28919
28952
|
children = _a.children,
|
|
28920
|
-
rest = __rest(_a, ["message", "purpose", "closable", "children"]);
|
|
28953
|
+
rest = __rest(_a, ["message", "purpose", "closable", "onClose", "children"]);
|
|
28921
28954
|
|
|
28922
28955
|
var _c = React.useState(false),
|
|
28923
28956
|
isClosed = _c[0],
|
|
@@ -28948,14 +28981,15 @@ var GlobalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
28948
28981
|
purpose: buttonPurpose,
|
|
28949
28982
|
appearance: "borderless",
|
|
28950
28983
|
onClick: function onClick() {
|
|
28951
|
-
|
|
28984
|
+
setClosed(true);
|
|
28985
|
+
onClose && onClose();
|
|
28952
28986
|
},
|
|
28953
28987
|
size: "small"
|
|
28954
28988
|
}, void 0)
|
|
28955
28989
|
}, void 0)]
|
|
28956
28990
|
}), void 0) : null;
|
|
28957
28991
|
});
|
|
28958
|
-
var templateObject_1$
|
|
28992
|
+
var templateObject_1$o, templateObject_2$h, templateObject_3$b, templateObject_4$9, templateObject_5$6, templateObject_6$5;
|
|
28959
28993
|
|
|
28960
28994
|
var CheckCircleOutlined = createCommonjsModule(function (module, exports) {
|
|
28961
28995
|
|
|
@@ -29164,7 +29198,7 @@ var Container$3 = styled.div.withConfig({
|
|
|
29164
29198
|
return layout === 'vertical' ? 'column' : 'row';
|
|
29165
29199
|
}, function (_a) {
|
|
29166
29200
|
var layout = _a.layout;
|
|
29167
|
-
return layout === 'horisontal' && Ae(templateObject_1$
|
|
29201
|
+
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 "])));
|
|
29168
29202
|
}, typographyTokens.selection.base, function (_a) {
|
|
29169
29203
|
var purpose = _a.purpose;
|
|
29170
29204
|
return purpose && Ae(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), localMessageTokens.container.base, localMessageTokens.container[purpose].base);
|
|
@@ -29198,12 +29232,13 @@ var LocalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29198
29232
|
_b = _a.purpose,
|
|
29199
29233
|
purpose = _b === void 0 ? 'info' : _b,
|
|
29200
29234
|
closable = _a.closable,
|
|
29235
|
+
onClose = _a.onClose,
|
|
29201
29236
|
_c = _a.width,
|
|
29202
29237
|
width = _c === void 0 ? localMessageTokens.container.defaultWidth : _c,
|
|
29203
29238
|
_d = _a.layout,
|
|
29204
29239
|
layout = _d === void 0 ? 'horisontal' : _d,
|
|
29205
29240
|
children = _a.children,
|
|
29206
|
-
rest = __rest(_a, ["message", "purpose", "closable", "width", "layout", "children"]);
|
|
29241
|
+
rest = __rest(_a, ["message", "purpose", "closable", "onClose", "width", "layout", "children"]);
|
|
29207
29242
|
|
|
29208
29243
|
var _e = React.useState(false),
|
|
29209
29244
|
isClosed = _e[0],
|
|
@@ -29239,7 +29274,8 @@ var LocalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29239
29274
|
purpose: buttonPurpose,
|
|
29240
29275
|
appearance: "borderless",
|
|
29241
29276
|
onClick: function onClick() {
|
|
29242
|
-
|
|
29277
|
+
setClosed(true);
|
|
29278
|
+
onClose && onClose();
|
|
29243
29279
|
},
|
|
29244
29280
|
size: "small"
|
|
29245
29281
|
}, void 0);
|
|
@@ -29260,7 +29296,7 @@ var LocalMessage = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29260
29296
|
}, void 0)
|
|
29261
29297
|
}), void 0) : null;
|
|
29262
29298
|
});
|
|
29263
|
-
var templateObject_1$
|
|
29299
|
+
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;
|
|
29264
29300
|
|
|
29265
29301
|
var SearchOutlined = createCommonjsModule(function (module, exports) {
|
|
29266
29302
|
|
|
@@ -29342,7 +29378,7 @@ var Input = styled.input.withConfig({
|
|
|
29342
29378
|
componentId: "sc-1ax3s9s-0"
|
|
29343
29379
|
})(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) {
|
|
29344
29380
|
var componentSize = _a.componentSize;
|
|
29345
|
-
return componentSize && Ae(templateObject_1$
|
|
29381
|
+
return componentSize && Ae(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), searchTokens.input[componentSize].base);
|
|
29346
29382
|
}, searchTokens.input.spaceLeft);
|
|
29347
29383
|
var IconWrapper = styled.span.withConfig({
|
|
29348
29384
|
displayName: "Search__IconWrapper",
|
|
@@ -29411,7 +29447,7 @@ var Search = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29411
29447
|
}, void 0)]
|
|
29412
29448
|
}), void 0);
|
|
29413
29449
|
});
|
|
29414
|
-
var templateObject_1$
|
|
29450
|
+
var templateObject_1$m, templateObject_2$f, templateObject_3$9, templateObject_4$7, templateObject_5$4, templateObject_6$3, templateObject_7$2;
|
|
29415
29451
|
|
|
29416
29452
|
var Colors$7 = ddsBaseTokens.colors,
|
|
29417
29453
|
Spacing$a = ddsBaseTokens.spacing;
|
|
@@ -29465,7 +29501,7 @@ var StyledTable = styled.table.withConfig({
|
|
|
29465
29501
|
componentId: "sc-bw0w0a-0"
|
|
29466
29502
|
})(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) {
|
|
29467
29503
|
var density = _a.density;
|
|
29468
|
-
return density && Ae(templateObject_1$
|
|
29504
|
+
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);
|
|
29469
29505
|
}, function (_a) {
|
|
29470
29506
|
var stickyHeader = _a.stickyHeader;
|
|
29471
29507
|
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 "])));
|
|
@@ -29485,12 +29521,12 @@ var Table = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29485
29521
|
children: children
|
|
29486
29522
|
}), void 0);
|
|
29487
29523
|
});
|
|
29488
|
-
var templateObject_1$
|
|
29524
|
+
var templateObject_1$l, templateObject_2$e, templateObject_3$8;
|
|
29489
29525
|
|
|
29490
29526
|
var StyledBody = styled.tbody.withConfig({
|
|
29491
29527
|
displayName: "Body__StyledBody",
|
|
29492
29528
|
componentId: "sc-67qjfs-0"
|
|
29493
|
-
})(templateObject_1$
|
|
29529
|
+
})(templateObject_1$k || (templateObject_1$k = __makeTemplateObject([""], [""])));
|
|
29494
29530
|
var Body$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
29495
29531
|
var children = _a.children,
|
|
29496
29532
|
rest = __rest(_a, ["children"]);
|
|
@@ -29503,12 +29539,12 @@ var Body$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29503
29539
|
children: children
|
|
29504
29540
|
}), void 0);
|
|
29505
29541
|
});
|
|
29506
|
-
var templateObject_1$
|
|
29542
|
+
var templateObject_1$k;
|
|
29507
29543
|
|
|
29508
29544
|
var StyledHead = styled.thead.withConfig({
|
|
29509
29545
|
displayName: "Head__StyledHead",
|
|
29510
29546
|
componentId: "sc-vzd2kv-0"
|
|
29511
|
-
})(templateObject_1$
|
|
29547
|
+
})(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([""], [""])));
|
|
29512
29548
|
var Head = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
29513
29549
|
var children = _a.children,
|
|
29514
29550
|
rest = __rest(_a, ["children"]);
|
|
@@ -29521,7 +29557,7 @@ var Head = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29521
29557
|
children: children
|
|
29522
29558
|
}), void 0);
|
|
29523
29559
|
});
|
|
29524
|
-
var templateObject_1$
|
|
29560
|
+
var templateObject_1$j;
|
|
29525
29561
|
|
|
29526
29562
|
var Colors$6 = ddsBaseTokens.colors,
|
|
29527
29563
|
FontPackages$6 = ddsBaseTokens.fontPackages,
|
|
@@ -29589,7 +29625,7 @@ var rowTokens = {
|
|
|
29589
29625
|
};
|
|
29590
29626
|
|
|
29591
29627
|
var bodyStyles = function bodyStyles(mode, selected) {
|
|
29592
|
-
return Ae(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), mode && Ae(templateObject_1$
|
|
29628
|
+
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));
|
|
29593
29629
|
};
|
|
29594
29630
|
|
|
29595
29631
|
var StyledRow = styled.tr.withConfig({
|
|
@@ -29624,12 +29660,12 @@ var Row = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29624
29660
|
children: children
|
|
29625
29661
|
}), void 0);
|
|
29626
29662
|
});
|
|
29627
|
-
var templateObject_1$
|
|
29663
|
+
var templateObject_1$i, templateObject_2$d, templateObject_3$7, templateObject_4$6, templateObject_5$3, templateObject_6$2, templateObject_7$1;
|
|
29628
29664
|
|
|
29629
29665
|
var layoutStyle = function layoutStyle(layout) {
|
|
29630
29666
|
switch (layout) {
|
|
29631
29667
|
case 'center':
|
|
29632
|
-
return Ae(templateObject_1$
|
|
29668
|
+
return Ae(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n justify-content: center;\n "], ["\n justify-content: center;\n "])));
|
|
29633
29669
|
|
|
29634
29670
|
case 'right':
|
|
29635
29671
|
return Ae(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n justify-content: flex-end;\n "], ["\n justify-content: flex-end;\n "])));
|
|
@@ -29695,7 +29731,7 @@ var Cell = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29695
29731
|
}), void 0)
|
|
29696
29732
|
}), void 0);
|
|
29697
29733
|
});
|
|
29698
|
-
var templateObject_1$
|
|
29734
|
+
var templateObject_1$h, templateObject_2$c, templateObject_3$6, templateObject_4$5, templateObject_5$2, templateObject_6$1;
|
|
29699
29735
|
|
|
29700
29736
|
var KeyboardArrowDown = createCommonjsModule(function (module, exports) {
|
|
29701
29737
|
|
|
@@ -29772,7 +29808,7 @@ var UnfoldMoreIcon = /*@__PURE__*/getDefaultExportFromCjs(UnfoldMore);
|
|
|
29772
29808
|
var SortIconWrapper = styled(IconWrapper$1).withConfig({
|
|
29773
29809
|
displayName: "SortCell__SortIconWrapper",
|
|
29774
29810
|
componentId: "sc-1l3jzvh-0"
|
|
29775
|
-
})(templateObject_1$
|
|
29811
|
+
})(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), cellTokens.head.sortCell.icon.base);
|
|
29776
29812
|
var StyledCell = styled(Cell).withConfig({
|
|
29777
29813
|
displayName: "SortCell__StyledCell",
|
|
29778
29814
|
componentId: "sc-1l3jzvh-1"
|
|
@@ -29801,12 +29837,12 @@ var SortCell = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29801
29837
|
children: [children, " ", IconRenderer(isSorted, sortOrder)]
|
|
29802
29838
|
}), void 0);
|
|
29803
29839
|
});
|
|
29804
|
-
var templateObject_1$
|
|
29840
|
+
var templateObject_1$g, templateObject_2$b;
|
|
29805
29841
|
|
|
29806
29842
|
var StyledFoot = styled.tfoot.withConfig({
|
|
29807
29843
|
displayName: "Foot__StyledFoot",
|
|
29808
29844
|
componentId: "sc-tfpehd-0"
|
|
29809
|
-
})(templateObject_1$
|
|
29845
|
+
})(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
|
|
29810
29846
|
var Foot = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
29811
29847
|
var children = _a.children,
|
|
29812
29848
|
rest = __rest(_a, ["children"]);
|
|
@@ -29819,14 +29855,14 @@ var Foot = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29819
29855
|
children: children
|
|
29820
29856
|
}), void 0);
|
|
29821
29857
|
});
|
|
29822
|
-
var templateObject_1$
|
|
29858
|
+
var templateObject_1$f;
|
|
29823
29859
|
|
|
29824
29860
|
var Wrapper$1 = styled.div.withConfig({
|
|
29825
29861
|
displayName: "TableWrapper__Wrapper",
|
|
29826
29862
|
componentId: "sc-eb384b-0"
|
|
29827
29863
|
})(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (_a) {
|
|
29828
29864
|
var overflowX = _a.overflowX;
|
|
29829
|
-
return overflowX && Ae(templateObject_1$
|
|
29865
|
+
return overflowX && Ae(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n overflow-x: auto;\n "], ["\n overflow-x: auto;\n "])));
|
|
29830
29866
|
}, scrollbarStyling);
|
|
29831
29867
|
var TableWrapper = function TableWrapper(_a) {
|
|
29832
29868
|
var children = _a.children,
|
|
@@ -29873,7 +29909,7 @@ var TableWrapper = function TableWrapper(_a) {
|
|
|
29873
29909
|
children: children
|
|
29874
29910
|
}), void 0);
|
|
29875
29911
|
};
|
|
29876
|
-
var templateObject_1$
|
|
29912
|
+
var templateObject_1$e, templateObject_2$a;
|
|
29877
29913
|
|
|
29878
29914
|
var Breadcrumb = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
29879
29915
|
var children = _a.children,
|
|
@@ -29959,7 +29995,7 @@ var breadcrumbTokens = {
|
|
|
29959
29995
|
var List$2 = styled.ol.withConfig({
|
|
29960
29996
|
displayName: "Breadcrumbs__List",
|
|
29961
29997
|
componentId: "sc-xdj21o-0"
|
|
29962
|
-
})(templateObject_1$
|
|
29998
|
+
})(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"])));
|
|
29963
29999
|
var ListItem$2 = styled.li.withConfig({
|
|
29964
30000
|
displayName: "Breadcrumbs__ListItem",
|
|
29965
30001
|
componentId: "sc-xdj21o-1"
|
|
@@ -30003,7 +30039,7 @@ var Breadcrumbs = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30003
30039
|
}, void 0)
|
|
30004
30040
|
}), void 0);
|
|
30005
30041
|
});
|
|
30006
|
-
var templateObject_1$
|
|
30042
|
+
var templateObject_1$d, templateObject_2$9, templateObject_3$5, templateObject_4$4;
|
|
30007
30043
|
|
|
30008
30044
|
var ChevronLeftOutlined = createCommonjsModule(function (module, exports) {
|
|
30009
30045
|
|
|
@@ -30163,7 +30199,7 @@ var paginationTokens = {
|
|
|
30163
30199
|
var Nav = styled.nav.withConfig({
|
|
30164
30200
|
displayName: "Pagination__Nav",
|
|
30165
30201
|
componentId: "sc-5ltegq-0"
|
|
30166
|
-
})(templateObject_1$
|
|
30202
|
+
})(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
30167
30203
|
var List$1 = styled.ol.withConfig({
|
|
30168
30204
|
displayName: "Pagination__List",
|
|
30169
30205
|
componentId: "sc-5ltegq-1"
|
|
@@ -30206,7 +30242,8 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30206
30242
|
}] : _e,
|
|
30207
30243
|
smallScreen = _a.smallScreen,
|
|
30208
30244
|
onChange = _a.onChange,
|
|
30209
|
-
|
|
30245
|
+
onSelectOptionChange = _a.onSelectOptionChange,
|
|
30246
|
+
rest = __rest(_a, ["itemsAmount", "defaultItemsPerPage", "defaultActivePage", "withPagination", "withCounter", "withSelect", "selectOptions", "smallScreen", "onChange", "onSelectOptionChange"]);
|
|
30210
30247
|
|
|
30211
30248
|
var _f = React.useState(defaultActivePage),
|
|
30212
30249
|
activePage = _f[0],
|
|
@@ -30229,6 +30266,10 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30229
30266
|
|
|
30230
30267
|
var handleSelectChange = function handleSelectChange(option) {
|
|
30231
30268
|
setItemsPerPage(option === null || option === void 0 ? void 0 : option.value);
|
|
30269
|
+
|
|
30270
|
+
if (onSelectOptionChange) {
|
|
30271
|
+
onSelectOptionChange(option);
|
|
30272
|
+
}
|
|
30232
30273
|
};
|
|
30233
30274
|
|
|
30234
30275
|
var listItems = items.length > 0 ? items.map(function (item, i) {
|
|
@@ -30359,7 +30400,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30359
30400
|
}, void 0), navigationToBeRendered]
|
|
30360
30401
|
}), void 0);
|
|
30361
30402
|
});
|
|
30362
|
-
var templateObject_1$
|
|
30403
|
+
var templateObject_1$c, templateObject_2$8, templateObject_3$4, templateObject_4$3, templateObject_5$1, templateObject_6, templateObject_7;
|
|
30363
30404
|
|
|
30364
30405
|
var Colors$3 = ddsBaseTokens.colors,
|
|
30365
30406
|
Border$1 = ddsBaseTokens.border,
|
|
@@ -30384,7 +30425,7 @@ var DividerLine = styled.hr.withConfig({
|
|
|
30384
30425
|
componentId: "sc-ggdopz-0"
|
|
30385
30426
|
})(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), dividerTokens.base, function (_a) {
|
|
30386
30427
|
var color = _a.color;
|
|
30387
|
-
return color && Ae(templateObject_1$
|
|
30428
|
+
return color && Ae(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n border-color: ", ";\n "], ["\n border-color: ", ";\n "])), dividerColors[color]);
|
|
30388
30429
|
});
|
|
30389
30430
|
var Divider = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30390
30431
|
var _b = _a.color,
|
|
@@ -30399,7 +30440,7 @@ var Divider = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30399
30440
|
ref: ref
|
|
30400
30441
|
}, lineProps), void 0);
|
|
30401
30442
|
});
|
|
30402
|
-
var templateObject_1$
|
|
30443
|
+
var templateObject_1$b, templateObject_2$7;
|
|
30403
30444
|
|
|
30404
30445
|
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";
|
|
30405
30446
|
|
|
@@ -30466,10 +30507,10 @@ var StyledList = styled.ul.withConfig({
|
|
|
30466
30507
|
componentId: "sc-1f1c7eb-0"
|
|
30467
30508
|
})(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) {
|
|
30468
30509
|
var typographyType = _a.typographyType;
|
|
30469
|
-
return typographyType && Ae(templateObject_1$
|
|
30510
|
+
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]);
|
|
30470
30511
|
}, function (_a) {
|
|
30471
30512
|
var listType = _a.listType;
|
|
30472
|
-
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);
|
|
30513
|
+
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 // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "], ["\n padding-left: ", ";\n list-style: none;\n li {\n position: relative;\n padding-left: ", ";\n &:before {\n content: '';\n display: inline-block;\n height: 1em;\n width: 1em;\n position: absolute;\n top: ", ";\n left: 0;\n background-size: contain;\n background-repeat: no-repeat;\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n ul > li > ul > li:before {\n // disable eslint to ensure double quotes in url due to svg data URI in image bundle that requires them, as the attributes use single quotes\n // eslint-disable-next-line\n // prettier-ignore\n background-image: url(\"", "\");\n }\n }\n "])), "calc(" + ulPaddingLeft + ")", "calc(" + liTextPadding + ")", "calc((" + listItemTokens.base.lineHeight + " / 2) - 0.5em )", img$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);
|
|
30473
30514
|
});
|
|
30474
30515
|
var List = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30475
30516
|
var _b = _a.listType,
|
|
@@ -30492,12 +30533,12 @@ var List = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30492
30533
|
children: children
|
|
30493
30534
|
}), void 0);
|
|
30494
30535
|
});
|
|
30495
|
-
var templateObject_1$
|
|
30536
|
+
var templateObject_1$a, templateObject_2$6, templateObject_3$3, templateObject_4$2;
|
|
30496
30537
|
|
|
30497
30538
|
var StyledListItem = styled.li.withConfig({
|
|
30498
30539
|
displayName: "ListItem__StyledListItem",
|
|
30499
30540
|
componentId: "sc-17s9l0b-0"
|
|
30500
|
-
})(templateObject_1$
|
|
30541
|
+
})(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), listItemTokens.base);
|
|
30501
30542
|
var ListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30502
30543
|
var children = _a.children,
|
|
30503
30544
|
rest = __rest(_a, ["children"]);
|
|
@@ -30508,7 +30549,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30508
30549
|
children: children
|
|
30509
30550
|
}), void 0);
|
|
30510
30551
|
});
|
|
30511
|
-
var templateObject_1$
|
|
30552
|
+
var templateObject_1$9;
|
|
30512
30553
|
|
|
30513
30554
|
var Spacing$4 = ddsBaseTokens.spacing,
|
|
30514
30555
|
FontPackages$4 = ddsBaseTokens.fontPackages,
|
|
@@ -30541,7 +30582,7 @@ var DList = styled.dl.withConfig({
|
|
|
30541
30582
|
componentId: "sc-1ob73hm-0"
|
|
30542
30583
|
})(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) {
|
|
30543
30584
|
var appearance = _a.appearance;
|
|
30544
|
-
return appearance && Ae(templateObject_1$
|
|
30585
|
+
return appearance && Ae(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n dt {\n ", "\n }\n "], ["\n dt {\n ", "\n }\n "])), descriptionListTermTokens.appearance[appearance].base);
|
|
30545
30586
|
}, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedTopAndBottomSpace, descriptionListTermTokens.unwrappedBetweenSpace);
|
|
30546
30587
|
var DescriptionList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30547
30588
|
var _b = _a.appearance,
|
|
@@ -30558,12 +30599,12 @@ var DescriptionList = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30558
30599
|
children: children
|
|
30559
30600
|
}), void 0);
|
|
30560
30601
|
});
|
|
30561
|
-
var templateObject_1$
|
|
30602
|
+
var templateObject_1$8, templateObject_2$5;
|
|
30562
30603
|
|
|
30563
30604
|
var DListTerm = styled.dt.withConfig({
|
|
30564
30605
|
displayName: "DescriptionListTerm__DListTerm",
|
|
30565
30606
|
componentId: "sc-10w0rzr-0"
|
|
30566
|
-
})(templateObject_1$
|
|
30607
|
+
})(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject([""], [""])));
|
|
30567
30608
|
var DescriptionListTerm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30568
30609
|
var children = _a.children,
|
|
30569
30610
|
rest = __rest(_a, ["children"]);
|
|
@@ -30576,7 +30617,7 @@ var DescriptionListTerm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30576
30617
|
children: children
|
|
30577
30618
|
}), void 0);
|
|
30578
30619
|
});
|
|
30579
|
-
var templateObject_1$
|
|
30620
|
+
var templateObject_1$7;
|
|
30580
30621
|
|
|
30581
30622
|
var Spacing$3 = ddsBaseTokens.spacing,
|
|
30582
30623
|
FontPackages$3 = ddsBaseTokens.fontPackages;
|
|
@@ -30599,7 +30640,7 @@ var descriptionListDescTokens = {
|
|
|
30599
30640
|
var DListDesc = styled.dd.withConfig({
|
|
30600
30641
|
displayName: "DescriptionListDesc__DListDesc",
|
|
30601
30642
|
componentId: "sc-1djcf0s-0"
|
|
30602
|
-
})(templateObject_1$
|
|
30643
|
+
})(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);
|
|
30603
30644
|
var StyledIconWrapper = styled(IconWrapper$1).withConfig({
|
|
30604
30645
|
displayName: "DescriptionListDesc__StyledIconWrapper",
|
|
30605
30646
|
componentId: "sc-1djcf0s-1"
|
|
@@ -30620,7 +30661,7 @@ var DescriptionListDesc = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30620
30661
|
}, void 0), " ", children]
|
|
30621
30662
|
}), void 0);
|
|
30622
30663
|
});
|
|
30623
|
-
var templateObject_1$
|
|
30664
|
+
var templateObject_1$6, templateObject_2$4;
|
|
30624
30665
|
|
|
30625
30666
|
var Spacing$2 = ddsBaseTokens.spacing;
|
|
30626
30667
|
var base$3 = {
|
|
@@ -30635,7 +30676,7 @@ var DListGroup = styled.div.withConfig({
|
|
|
30635
30676
|
componentId: "sc-jkdc0o-0"
|
|
30636
30677
|
})(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), descriptionListGroupTokens.base, function (_a) {
|
|
30637
30678
|
var margin = _a.margin;
|
|
30638
|
-
return margin && Ae(templateObject_1$
|
|
30679
|
+
return margin && Ae(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n margin: ", ";\n "], ["\n margin: ", ";\n "])), margin);
|
|
30639
30680
|
});
|
|
30640
30681
|
var DescriptionListGroup = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30641
30682
|
var children = _a.children,
|
|
@@ -30650,7 +30691,7 @@ var DescriptionListGroup = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30650
30691
|
children: children
|
|
30651
30692
|
}), void 0);
|
|
30652
30693
|
});
|
|
30653
|
-
var templateObject_1$
|
|
30694
|
+
var templateObject_1$5, templateObject_2$3;
|
|
30654
30695
|
|
|
30655
30696
|
var Colors$1 = ddsBaseTokens.colors,
|
|
30656
30697
|
Border = ddsBaseTokens.border,
|
|
@@ -30720,7 +30761,7 @@ var Container = styled.div.withConfig({
|
|
|
30720
30761
|
componentId: "sc-410ao9-0"
|
|
30721
30762
|
})(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) {
|
|
30722
30763
|
var color = _a.color;
|
|
30723
|
-
return color && Ae(templateObject_1$
|
|
30764
|
+
return color && Ae(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), cardTokens.colors[color].base);
|
|
30724
30765
|
}, function (_a) {
|
|
30725
30766
|
var cardType = _a.cardType;
|
|
30726
30767
|
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);
|
|
@@ -30746,13 +30787,13 @@ var Card = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30746
30787
|
children: children
|
|
30747
30788
|
}), void 0);
|
|
30748
30789
|
});
|
|
30749
|
-
var templateObject_1$
|
|
30790
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3$2;
|
|
30750
30791
|
|
|
30751
30792
|
var Wrapper = styled.div.withConfig({
|
|
30752
30793
|
displayName: "CardAccordion__Wrapper",
|
|
30753
30794
|
componentId: "sc-1ctxrby-0"
|
|
30754
|
-
})(templateObject_1$
|
|
30755
|
-
var nextUniqueId = 0;
|
|
30795
|
+
})(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
|
|
30796
|
+
var nextUniqueId$1 = 0;
|
|
30756
30797
|
var CardAccordion = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
30757
30798
|
var isExpanded = _a.isExpanded,
|
|
30758
30799
|
id = _a.id,
|
|
@@ -30763,7 +30804,7 @@ var CardAccordion = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30763
30804
|
expanded = _b[0],
|
|
30764
30805
|
setExpanded = _b[1];
|
|
30765
30806
|
|
|
30766
|
-
var uniqueId = nextUniqueId++;
|
|
30807
|
+
var uniqueId = nextUniqueId$1++;
|
|
30767
30808
|
var accordionId = React.useState(id !== null && id !== void 0 ? id : "cardAccordion-" + uniqueId)[0];
|
|
30768
30809
|
React.useEffect(function () {
|
|
30769
30810
|
setExpanded(isExpanded);
|
|
@@ -30796,7 +30837,7 @@ var CardAccordion = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30796
30837
|
children: Children
|
|
30797
30838
|
}), void 0);
|
|
30798
30839
|
});
|
|
30799
|
-
var templateObject_1$
|
|
30840
|
+
var templateObject_1$3;
|
|
30800
30841
|
|
|
30801
30842
|
var Spacing$1 = ddsBaseTokens.spacing,
|
|
30802
30843
|
FontPackages$1 = ddsBaseTokens.fontPackages,
|
|
@@ -30825,7 +30866,7 @@ var cardAccordionHeaderTokens = {
|
|
|
30825
30866
|
var ContentWrapper = styled.div.withConfig({
|
|
30826
30867
|
displayName: "CardAccordionHeader__ContentWrapper",
|
|
30827
30868
|
componentId: "sc-1qs6bkj-0"
|
|
30828
|
-
})(templateObject_1$
|
|
30869
|
+
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""])));
|
|
30829
30870
|
var HeaderContainer = styled.div.withConfig({
|
|
30830
30871
|
displayName: "CardAccordionHeader__HeaderContainer",
|
|
30831
30872
|
componentId: "sc-1qs6bkj-1"
|
|
@@ -30895,7 +30936,7 @@ var CardAccordionHeader = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30895
30936
|
}), void 0)
|
|
30896
30937
|
}), void 0);
|
|
30897
30938
|
});
|
|
30898
|
-
var templateObject_1$
|
|
30939
|
+
var templateObject_1$2, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5;
|
|
30899
30940
|
|
|
30900
30941
|
var Spacing = ddsBaseTokens.spacing,
|
|
30901
30942
|
FontPackages = ddsBaseTokens.fontPackages;
|
|
@@ -30908,7 +30949,7 @@ var cardAccordionBodyTokens = {
|
|
|
30908
30949
|
base: base
|
|
30909
30950
|
};
|
|
30910
30951
|
|
|
30911
|
-
var expandingAnimation = Ae(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"], ["\n transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n"])));
|
|
30952
|
+
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"])));
|
|
30912
30953
|
var Body = styled.div.withConfig({
|
|
30913
30954
|
displayName: "CardAccordionBody__Body",
|
|
30914
30955
|
componentId: "sc-igsnpx-0"
|
|
@@ -30919,7 +30960,10 @@ var Body = styled.div.withConfig({
|
|
|
30919
30960
|
var BodyWrapper = styled.div.withConfig({
|
|
30920
30961
|
displayName: "CardAccordionBody__BodyWrapper",
|
|
30921
30962
|
componentId: "sc-igsnpx-1"
|
|
30922
|
-
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n overflow: hidden;\n max-height: ", "px;\n"], ["\n ", "\n overflow: hidden;\n max-height: ", "px;\n"])), expandingAnimation, function (_a) {
|
|
30963
|
+
})(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n overflow: hidden;\n visibility: ", ";\n max-height: ", "px;\n"], ["\n ", "\n overflow: hidden;\n visibility: ", ";\n max-height: ", "px;\n"])), expandingAnimation, function (_a) {
|
|
30964
|
+
var isExpanded = _a.isExpanded;
|
|
30965
|
+
return isExpanded ? 'visible' : 'hidden';
|
|
30966
|
+
}, function (_a) {
|
|
30923
30967
|
var maxHeight = _a.maxHeight;
|
|
30924
30968
|
return maxHeight ? maxHeight : 0;
|
|
30925
30969
|
});
|
|
@@ -30951,7 +30995,8 @@ var CardAccordionBody = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30951
30995
|
|
|
30952
30996
|
var bodyWrapperProps = {
|
|
30953
30997
|
ref: bodyRef,
|
|
30954
|
-
maxHeight: maxHeight
|
|
30998
|
+
maxHeight: maxHeight,
|
|
30999
|
+
isExpanded: isExpanded
|
|
30955
31000
|
};
|
|
30956
31001
|
return jsxRuntime.jsx(Body, __assign({
|
|
30957
31002
|
"aria-labelledby": headerId,
|
|
@@ -30962,7 +31007,73 @@ var CardAccordionBody = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
30962
31007
|
}), void 0)
|
|
30963
31008
|
}), void 0);
|
|
30964
31009
|
});
|
|
30965
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
31010
|
+
var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4;
|
|
31011
|
+
|
|
31012
|
+
var getWidth = function getWidth(type) {
|
|
31013
|
+
return type === 'date' ? '205px' : type === 'datetime-local' ? '235px' : '320px';
|
|
31014
|
+
};
|
|
31015
|
+
|
|
31016
|
+
var StyledInput = styled(Input$2).withConfig({
|
|
31017
|
+
displayName: "Datepicker__StyledInput",
|
|
31018
|
+
componentId: "sc-1ijxhje-0"
|
|
31019
|
+
})(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"])));
|
|
31020
|
+
var nextUniqueId = 0;
|
|
31021
|
+
var Datepicker = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
31022
|
+
var id = _a.id,
|
|
31023
|
+
_b = _a.type,
|
|
31024
|
+
type = _b === void 0 ? 'date' : _b,
|
|
31025
|
+
required = _a.required,
|
|
31026
|
+
readOnly = _a.readOnly,
|
|
31027
|
+
disabled = _a.disabled,
|
|
31028
|
+
label = _a.label,
|
|
31029
|
+
width = _a.width,
|
|
31030
|
+
errorMessage = _a.errorMessage,
|
|
31031
|
+
tip = _a.tip,
|
|
31032
|
+
style = _a.style,
|
|
31033
|
+
className = _a.className,
|
|
31034
|
+
rest = __rest(_a, ["id", "type", "required", "readOnly", "disabled", "label", "width", "errorMessage", "tip", "style", "className"]);
|
|
31035
|
+
|
|
31036
|
+
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "datepickerInput-" + nextUniqueId++)[0];
|
|
31037
|
+
var componentWidth = width ? width : getWidth(type);
|
|
31038
|
+
|
|
31039
|
+
var inputProps = __assign({
|
|
31040
|
+
label: label,
|
|
31041
|
+
errorMessage: errorMessage,
|
|
31042
|
+
ref: ref,
|
|
31043
|
+
readOnly: readOnly,
|
|
31044
|
+
tabIndex: readOnly ? -1 : 0,
|
|
31045
|
+
required: required,
|
|
31046
|
+
disabled: disabled,
|
|
31047
|
+
type: type
|
|
31048
|
+
}, rest);
|
|
31049
|
+
|
|
31050
|
+
var outerInputContainerProps = {
|
|
31051
|
+
width: componentWidth,
|
|
31052
|
+
style: style,
|
|
31053
|
+
className: className
|
|
31054
|
+
};
|
|
31055
|
+
var labelProps = {
|
|
31056
|
+
htmlFor: uniqueId,
|
|
31057
|
+
disabled: disabled
|
|
31058
|
+
};
|
|
31059
|
+
return jsxRuntime.jsxs(OuterInputContainer, __assign({}, outerInputContainerProps, {
|
|
31060
|
+
children: [jsxRuntime.jsxs(InputContainer$2, {
|
|
31061
|
+
children: [jsxRuntime.jsx(StyledInput, __assign({}, inputProps), void 0), label && jsxRuntime.jsxs(SingleLineLabel, __assign({}, labelProps, {
|
|
31062
|
+
typographyType: "supportingStyleLabel01",
|
|
31063
|
+
forwardedAs: "label"
|
|
31064
|
+
}, {
|
|
31065
|
+
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
31066
|
+
}), void 0)]
|
|
31067
|
+
}, void 0), errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
31068
|
+
message: errorMessage,
|
|
31069
|
+
messageType: "error"
|
|
31070
|
+
}, void 0), tip && !errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
31071
|
+
message: tip,
|
|
31072
|
+
messageType: "tip"
|
|
31073
|
+
}, void 0)]
|
|
31074
|
+
}), void 0);
|
|
31075
|
+
});
|
|
31076
|
+
var templateObject_1;
|
|
30966
31077
|
|
|
30967
31078
|
exports.Body = Body$1;
|
|
30968
31079
|
exports.Breadcrumb = Breadcrumb;
|
|
@@ -30975,6 +31086,7 @@ exports.CardAccordionHeader = CardAccordionHeader;
|
|
|
30975
31086
|
exports.Cell = Cell;
|
|
30976
31087
|
exports.Checkbox = Checkbox;
|
|
30977
31088
|
exports.CheckboxGroup = CheckboxGroup;
|
|
31089
|
+
exports.Datepicker = Datepicker;
|
|
30978
31090
|
exports.DescriptionList = DescriptionList;
|
|
30979
31091
|
exports.DescriptionListDesc = DescriptionListDesc;
|
|
30980
31092
|
exports.DescriptionListGroup = DescriptionListGroup;
|