@norges-domstoler/dds-components 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Select/Select.styles.d.ts +2 -1
- package/dist/components/Select/Select.tokens.d.ts +63 -6
- package/dist/index.es.js +211 -56
- package/dist/index.js +211 -56
- package/package.json +1 -1
|
@@ -6,7 +6,8 @@ declare type StyledContainerProps = {
|
|
|
6
6
|
errorMessage?: string;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
readOnly?: boolean;
|
|
9
|
-
|
|
9
|
+
hasLabel: boolean;
|
|
10
|
+
isMulti?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export declare const Container: import("styled-components").StyledComponent<"div", any, StyledContainerProps, never>;
|
|
12
13
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
|
+
export declare const multiValueContainerMinHeight: string;
|
|
2
3
|
export declare const selectTokens: {
|
|
3
4
|
container: {
|
|
4
5
|
base: CSSObject;
|
|
5
6
|
defaultWidth: string;
|
|
6
|
-
withLabel: {
|
|
7
|
-
base: CSSObject;
|
|
8
|
-
};
|
|
9
|
-
noLabel: {
|
|
10
|
-
base: CSSObject;
|
|
11
|
-
};
|
|
12
7
|
hover: {
|
|
13
8
|
base: CSSObject;
|
|
14
9
|
};
|
|
@@ -45,6 +40,11 @@ export declare const selectTokens: {
|
|
|
45
40
|
noLabel: {
|
|
46
41
|
base: CSSObject;
|
|
47
42
|
};
|
|
43
|
+
isMulti: {
|
|
44
|
+
noLabel: {
|
|
45
|
+
base: CSSObject;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
48
|
};
|
|
49
49
|
placeholder: {
|
|
50
50
|
base: CSSObject;
|
|
@@ -65,6 +65,60 @@ export declare const selectTokens: {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
+
valueContainer: {
|
|
69
|
+
withLabel: {
|
|
70
|
+
base: CSSObject;
|
|
71
|
+
};
|
|
72
|
+
noLabel: {
|
|
73
|
+
base: CSSObject;
|
|
74
|
+
};
|
|
75
|
+
isMulti: {
|
|
76
|
+
base: CSSObject;
|
|
77
|
+
withLabel: {
|
|
78
|
+
base: CSSObject;
|
|
79
|
+
};
|
|
80
|
+
noLabel: {
|
|
81
|
+
base: CSSObject;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
multiValue: {
|
|
86
|
+
base: CSSObject;
|
|
87
|
+
enabled: {
|
|
88
|
+
base: CSSObject;
|
|
89
|
+
};
|
|
90
|
+
disabled: {
|
|
91
|
+
base: CSSObject;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
multiValueLabel: {
|
|
95
|
+
base: CSSObject;
|
|
96
|
+
};
|
|
97
|
+
multiValueRemove: {
|
|
98
|
+
base: CSSObject;
|
|
99
|
+
hover: {
|
|
100
|
+
base: CSSObject;
|
|
101
|
+
};
|
|
102
|
+
icon: {
|
|
103
|
+
base: CSSObject;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
indicatorsContainer: {
|
|
107
|
+
withLabel: {
|
|
108
|
+
base: CSSObject;
|
|
109
|
+
};
|
|
110
|
+
noLabel: {
|
|
111
|
+
base: CSSObject;
|
|
112
|
+
};
|
|
113
|
+
isMulti: {
|
|
114
|
+
withLabel: {
|
|
115
|
+
base: CSSObject;
|
|
116
|
+
};
|
|
117
|
+
noLabel: {
|
|
118
|
+
base: CSSObject;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
68
122
|
dropdownIndicator: {
|
|
69
123
|
base: CSSObject;
|
|
70
124
|
hover: {
|
|
@@ -83,4 +137,7 @@ export declare const selectTokens: {
|
|
|
83
137
|
base: CSSObject;
|
|
84
138
|
};
|
|
85
139
|
};
|
|
140
|
+
loadingIndicator: {
|
|
141
|
+
base: CSSObject;
|
|
142
|
+
};
|
|
86
143
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -20051,13 +20051,13 @@ var StyledTypography = styled.p.withConfig({
|
|
|
20051
20051
|
return color && Ae(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), getTextColor(color));
|
|
20052
20052
|
}, function (_a) {
|
|
20053
20053
|
var bold = _a.bold;
|
|
20054
|
-
return bold && Ae(templateObject_10$
|
|
20054
|
+
return bold && Ae(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.bold.base);
|
|
20055
20055
|
}, function (_a) {
|
|
20056
20056
|
var italic = _a.italic;
|
|
20057
|
-
return italic && Ae(templateObject_11$
|
|
20057
|
+
return italic && Ae(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.italic.base);
|
|
20058
20058
|
}, function (_a) {
|
|
20059
20059
|
var underline = _a.underline;
|
|
20060
|
-
return underline && Ae(templateObject_12$
|
|
20060
|
+
return underline && Ae(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.underline.base);
|
|
20061
20061
|
});
|
|
20062
20062
|
var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
20063
20063
|
var _b = _a.typographyType,
|
|
@@ -20086,7 +20086,7 @@ var Typography = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
20086
20086
|
}, void 0) : '']
|
|
20087
20087
|
}), void 0);
|
|
20088
20088
|
});
|
|
20089
|
-
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$
|
|
20089
|
+
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$5, templateObject_11$4, templateObject_12$3, templateObject_13$2;
|
|
20090
20090
|
|
|
20091
20091
|
var RadioButtonGroupContext = /*#__PURE__*/React__default.createContext(null);
|
|
20092
20092
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
@@ -20565,12 +20565,12 @@ var checkmarkIndeterminateBase = {
|
|
|
20565
20565
|
|
|
20566
20566
|
var containerBase$3 = __assign({}, FontPackages$e.body_sans_02.base);
|
|
20567
20567
|
|
|
20568
|
-
var containerWithLabelBase
|
|
20568
|
+
var containerWithLabelBase = __assign(__assign({}, FontPackages$e.body_sans_02.base), {
|
|
20569
20569
|
marginRight: Spacing$k.SizesDdsSpacingLocalX075,
|
|
20570
20570
|
padding: "0 " + Spacing$k.SizesDdsSpacingLocalX025 + " 0 " + (FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$k.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
20571
20571
|
});
|
|
20572
20572
|
|
|
20573
|
-
var containerNoLabelBase
|
|
20573
|
+
var containerNoLabelBase = {
|
|
20574
20574
|
padding: Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX0125 + " " + Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX15
|
|
20575
20575
|
};
|
|
20576
20576
|
var checkboxTokens = {
|
|
@@ -20631,10 +20631,10 @@ var checkboxTokens = {
|
|
|
20631
20631
|
width: Border$6.BordersDdsBorderStyle1StrokeWeight
|
|
20632
20632
|
},
|
|
20633
20633
|
withLabel: {
|
|
20634
|
-
base: containerWithLabelBase
|
|
20634
|
+
base: containerWithLabelBase
|
|
20635
20635
|
},
|
|
20636
20636
|
noLabel: {
|
|
20637
|
-
base: containerNoLabelBase
|
|
20637
|
+
base: containerNoLabelBase
|
|
20638
20638
|
}
|
|
20639
20639
|
}
|
|
20640
20640
|
};
|
|
@@ -20672,12 +20672,12 @@ var Container$7 = styled.label.withConfig({
|
|
|
20672
20672
|
}, function (_a) {
|
|
20673
20673
|
var readOnly = _a.readOnly,
|
|
20674
20674
|
indeterminate = _a.indeterminate;
|
|
20675
|
-
return readOnly && Ae(templateObject_10$
|
|
20675
|
+
return readOnly && Ae(templateObject_10$4 || (templateObject_10$4 = __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));
|
|
20676
20676
|
}, CustomCheckbox, checkboxTokens.checkmark.color, function (_a) {
|
|
20677
20677
|
var indeterminate = _a.indeterminate;
|
|
20678
|
-
return indeterminate ? Ae(templateObject_11$
|
|
20678
|
+
return indeterminate ? Ae(templateObject_11$3 || (templateObject_11$3 = __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$2 || (templateObject_12$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.checkmark.base);
|
|
20679
20679
|
});
|
|
20680
|
-
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$
|
|
20680
|
+
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$4, templateObject_11$3, templateObject_12$2, templateObject_13$1;
|
|
20681
20681
|
|
|
20682
20682
|
var nextUniqueId$5 = 0;
|
|
20683
20683
|
var Checkbox = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
@@ -21347,7 +21347,7 @@ var ButtonWrapper$1 = styled.button.withConfig({
|
|
|
21347
21347
|
var IconWithTextWrapper = styled(IconWrapper$1).withConfig({
|
|
21348
21348
|
displayName: "Buttonstyles__IconWithTextWrapper",
|
|
21349
21349
|
componentId: "sc-14dutqk-1"
|
|
21350
|
-
})(templateObject_10$
|
|
21350
|
+
})(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
21351
21351
|
var size = _a.size,
|
|
21352
21352
|
iconPosition = _a.iconPosition;
|
|
21353
21353
|
return iconPosition === 'left' ? Ae(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n margin-inline-end: ", ";\n "], ["\n margin-inline-end: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : iconPosition === 'right' ? Ae(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n margin-inline-start: ", ";\n "], ["\n margin-inline-start: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : '';
|
|
@@ -21355,15 +21355,15 @@ var IconWithTextWrapper = styled(IconWrapper$1).withConfig({
|
|
|
21355
21355
|
var JustIconWrapper = styled.span.withConfig({
|
|
21356
21356
|
displayName: "Buttonstyles__JustIconWrapper",
|
|
21357
21357
|
componentId: "sc-14dutqk-2"
|
|
21358
|
-
})(templateObject_12 || (templateObject_12 = __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) {
|
|
21358
|
+
})(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"])), function (_a) {
|
|
21359
21359
|
var size = _a.size;
|
|
21360
|
-
return Ae(templateObject_11$
|
|
21360
|
+
return Ae(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
21361
21361
|
});
|
|
21362
21362
|
var Label$2 = styled.span.withConfig({
|
|
21363
21363
|
displayName: "Buttonstyles__Label",
|
|
21364
21364
|
componentId: "sc-14dutqk-3"
|
|
21365
21365
|
})(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
21366
|
-
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$
|
|
21366
|
+
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$3, templateObject_11$2, templateObject_12$1, templateObject_13;
|
|
21367
21367
|
|
|
21368
21368
|
var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
21369
21369
|
var label = _a.label,
|
|
@@ -21659,15 +21659,15 @@ var SingleLineLabel = styled(Typography).withConfig({
|
|
|
21659
21659
|
var InputContainer$2 = styled.div.withConfig({
|
|
21660
21660
|
displayName: "Inputstyles__InputContainer",
|
|
21661
21661
|
componentId: "sc-1oz9x8w-2"
|
|
21662
|
-
})(templateObject_10$
|
|
21662
|
+
})(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
21663
21663
|
var OuterInputContainer = styled.div.withConfig({
|
|
21664
21664
|
displayName: "Inputstyles__OuterInputContainer",
|
|
21665
21665
|
componentId: "sc-1oz9x8w-3"
|
|
21666
|
-
})(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) {
|
|
21666
|
+
})(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n width: ", ";\n"])), function (_a) {
|
|
21667
21667
|
var width = _a.width;
|
|
21668
21668
|
return width;
|
|
21669
21669
|
});
|
|
21670
|
-
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$
|
|
21670
|
+
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$2, templateObject_11$1;
|
|
21671
21671
|
|
|
21672
21672
|
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)');
|
|
21673
21673
|
var templateObject_1$r;
|
|
@@ -21718,7 +21718,7 @@ var Label$1 = styled(SingleLineLabel).withConfig({
|
|
|
21718
21718
|
var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
21719
21719
|
displayName: "TextInputstyles__InputContainer",
|
|
21720
21720
|
componentId: "sc-165zflr-3"
|
|
21721
|
-
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n height: ", ";\n"], ["\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21721
|
+
})(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n ", "\n height: ", ";\n"], ["\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21722
21722
|
var multiline = _a.multiline;
|
|
21723
21723
|
return multiline && Ae(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "])));
|
|
21724
21724
|
}, function (_a) {
|
|
@@ -21733,7 +21733,7 @@ var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
|
21733
21733
|
return textInputTokens.container.multiline.noLabel.height;
|
|
21734
21734
|
}
|
|
21735
21735
|
});
|
|
21736
|
-
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;
|
|
21736
|
+
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$1;
|
|
21737
21737
|
|
|
21738
21738
|
var nextUniqueId$3 = 0;
|
|
21739
21739
|
var TextInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
@@ -28724,8 +28724,14 @@ var Colors$a = ddsBaseTokens.colors,
|
|
|
28724
28724
|
Spacing$e = ddsBaseTokens.spacing,
|
|
28725
28725
|
FontPackages$b = ddsBaseTokens.fontPackages,
|
|
28726
28726
|
BorderRadius$1 = ddsBaseTokens.borderRadius,
|
|
28727
|
-
Border$4 = ddsBaseTokens.border
|
|
28727
|
+
Border$4 = ddsBaseTokens.border,
|
|
28728
|
+
IconSizes = ddsBaseTokens.iconSizes;
|
|
28728
28729
|
var textDefault$6 = ddsReferenceTokens.textDefault;
|
|
28730
|
+
var multiValueContainerMinHeight = Spacing$e.SizesDdsSpacingLocalX0125NumberPx * 2 + Spacing$e.SizesDdsSpacingLocalX025NumberPx * 2 + calculateHeightWithLineHeight(FontPackages$b.supportingStyle_inputtext_01.numbers.lineHeightNumber, FontPackages$b.supportingStyle_inputtext_01.numbers.fontSizeNumber) + "px"; //custom spacing so that multiselect has same height as single value select
|
|
28731
|
+
|
|
28732
|
+
var valueContainerMarginBottomMultiWithLabel = Spacing$e.SizesDdsSpacingLocalX025NumberPx + Spacing$e.SizesDdsSpacingLocalX0125NumberPx + "px"; //custom spacing so that multiselect has same height as single value select
|
|
28733
|
+
|
|
28734
|
+
var inputMultiNoLabelPaddingTop = Spacing$e.SizesDdsSpacingLocalX05NumberPx + Spacing$e.SizesDdsSpacingLocalX0125NumberPx + "px";
|
|
28729
28735
|
|
|
28730
28736
|
var labelBase = __assign({
|
|
28731
28737
|
color: Colors$a.DdsColorNeutralsGray7,
|
|
@@ -28741,20 +28747,27 @@ var labelHoverBase = {
|
|
|
28741
28747
|
var labelFocusBase = {
|
|
28742
28748
|
color: Colors$a.DdsColorInteractiveBase
|
|
28743
28749
|
};
|
|
28750
|
+
var valueContainerWithLabelBase = {
|
|
28751
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX075
|
|
28752
|
+
};
|
|
28753
|
+
var valueContainerNoLabelBase = {
|
|
28754
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX075
|
|
28755
|
+
};
|
|
28756
|
+
var valueContainerIsMultiBase = {
|
|
28757
|
+
minHeight: multiValueContainerMinHeight
|
|
28758
|
+
};
|
|
28759
|
+
var valueContainerIsMultiWithLabelBase = {
|
|
28760
|
+
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
28761
|
+
};
|
|
28762
|
+
var valueContainerIsMultiNoLabelBase = {
|
|
28763
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX05
|
|
28764
|
+
};
|
|
28744
28765
|
var containerBase$2 = {
|
|
28745
28766
|
borderRadius: BorderRadius$1.RadiiDdsBorderRadius1Radius,
|
|
28746
28767
|
border: Border$4.BordersDdsBorderStyle1StrokeWeight + " solid",
|
|
28747
28768
|
borderColor: Colors$a.DdsColorNeutralsGray5,
|
|
28748
28769
|
backgroundColor: Colors$a.DdsColorNeutralsWhite
|
|
28749
28770
|
};
|
|
28750
|
-
var withLabelHeight = Spacing$e.SizesDdsSpacingLocalX075NumberPx * 2 + FontPackages$b.supportingStyle_label_01.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_label_01.numbers.fontSizeNumber + FontPackages$b.supportingStyle_inputtext_02.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_inputtext_02.numbers.fontSizeNumber + Border$4.BordersDdsBorderStyle1StrokeWeightNumberPx * 2;
|
|
28751
|
-
var containerWithLabelBase = {
|
|
28752
|
-
height: withLabelHeight + "px"
|
|
28753
|
-
};
|
|
28754
|
-
var noLabelHeight = Spacing$e.SizesDdsSpacingLocalX075NumberPx * 2 + FontPackages$b.supportingStyle_inputtext_02.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_inputtext_02.numbers.fontSizeNumber + Border$4.BordersDdsBorderStyle1StrokeWeightNumberPx * 2;
|
|
28755
|
-
var containerNoLabelBase = {
|
|
28756
|
-
height: noLabelHeight + "px"
|
|
28757
|
-
};
|
|
28758
28771
|
var containerHoverBase = {
|
|
28759
28772
|
backgroundColor: Colors$a.DdsColorInteractiveLightest,
|
|
28760
28773
|
borderColor: Colors$a.DdsColorInteractiveBase
|
|
@@ -28780,11 +28793,26 @@ var inputBase$1 = __assign({
|
|
|
28780
28793
|
var inputNoLabelBase = {
|
|
28781
28794
|
paddingTop: Spacing$e.SizesDdsSpacingLocalX075
|
|
28782
28795
|
};
|
|
28796
|
+
var inputIsMultiNoLabelBase = {
|
|
28797
|
+
paddingTop: inputMultiNoLabelPaddingTop
|
|
28798
|
+
};
|
|
28783
28799
|
|
|
28784
28800
|
var placeholderBase = __assign({
|
|
28785
28801
|
color: Colors$a.DdsColorNeutralsGray6
|
|
28786
28802
|
}, FontPackages$b.supportingStyle_placeholdertext_01.base);
|
|
28787
28803
|
|
|
28804
|
+
var indicatorsContainerWithLabelBase = {
|
|
28805
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX1
|
|
28806
|
+
};
|
|
28807
|
+
var indicatorsContainerNoLabelBase = {
|
|
28808
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX075
|
|
28809
|
+
};
|
|
28810
|
+
var indicatorsContainerIsMultiWithLabelBase = {
|
|
28811
|
+
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
28812
|
+
};
|
|
28813
|
+
var indicatorsContainerIsMultiNoLabelBase = {
|
|
28814
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX05
|
|
28815
|
+
};
|
|
28788
28816
|
var dropdownIndicatorBase = {
|
|
28789
28817
|
color: Colors$a.DdsColorNeutralsGray6,
|
|
28790
28818
|
padding: 0
|
|
@@ -28799,6 +28827,10 @@ var clearIndicatorBase = {
|
|
|
28799
28827
|
color: Colors$a.DdsColorNeutralsGray6,
|
|
28800
28828
|
padding: " 0 " + Spacing$e.SizesDdsSpacingLocalX025 + " 0 0"
|
|
28801
28829
|
};
|
|
28830
|
+
var loadingIndicatorBase = {
|
|
28831
|
+
color: Colors$a.DdsColorNeutralsGray6,
|
|
28832
|
+
padding: 0
|
|
28833
|
+
};
|
|
28802
28834
|
var clearIndicatorHoverBase = {
|
|
28803
28835
|
color: Colors$a.DdsColorInteractiveBase
|
|
28804
28836
|
};
|
|
@@ -28830,6 +28862,39 @@ var noOptionsMessageBase = __assign({
|
|
|
28830
28862
|
color: Colors$a.DdsColorNeutralsGray6
|
|
28831
28863
|
}, FontPackages$b.supportingStyle_placeholdertext_01.base);
|
|
28832
28864
|
|
|
28865
|
+
var multiValueBase = {
|
|
28866
|
+
borderRadius: BorderRadius$1.RadiiDdsBorderRadius1Radius,
|
|
28867
|
+
margin: Spacing$e.SizesDdsSpacingLocalX0125
|
|
28868
|
+
};
|
|
28869
|
+
var multiValueEnabledBase = {
|
|
28870
|
+
backgroundColor: Colors$a.DdsColorInteractiveLighter
|
|
28871
|
+
};
|
|
28872
|
+
var multiValueDisabledBase = {
|
|
28873
|
+
backgroundColor: Colors$a.DdsColorNeutralsGray3
|
|
28874
|
+
};
|
|
28875
|
+
|
|
28876
|
+
var multiValueLabelBase = __assign(__assign({
|
|
28877
|
+
paddingTop: "" + Spacing$e.SizesDdsSpacingLocalX025,
|
|
28878
|
+
paddingRight: "" + Spacing$e.SizesDdsSpacingLocalX05,
|
|
28879
|
+
paddingLeft: "" + Spacing$e.SizesDdsSpacingLocalX05,
|
|
28880
|
+
paddingBottom: "" + Spacing$e.SizesDdsSpacingLocalX025,
|
|
28881
|
+
color: Colors$a.DdsColorNeutralsGray9
|
|
28882
|
+
}, FontPackages$b.supportingStyle_inputtext_01.base), {
|
|
28883
|
+
fontWeight: 'bold'
|
|
28884
|
+
});
|
|
28885
|
+
|
|
28886
|
+
var multiValueRemoveBase = {
|
|
28887
|
+
padding: "" + Spacing$e.SizesDdsSpacingLocalX025,
|
|
28888
|
+
color: Colors$a.DdsColorNeutralsGray9
|
|
28889
|
+
};
|
|
28890
|
+
var multiValueRemoveHoverBase = {
|
|
28891
|
+
color: Colors$a.DdsColorNeutralsWhite,
|
|
28892
|
+
backgroundColor: Colors$a.DdsColorInteractiveBase
|
|
28893
|
+
};
|
|
28894
|
+
var multiValueRemoveIconBase = {
|
|
28895
|
+
height: IconSizes.DdsIconsizeSmall,
|
|
28896
|
+
width: IconSizes.DdsIconsizeSmall
|
|
28897
|
+
};
|
|
28833
28898
|
var containerDisabledBase = {
|
|
28834
28899
|
backgroundColor: Colors$a.DdsColorNeutralsGray1,
|
|
28835
28900
|
borderColor: Colors$a.DdsColorNeutralsGray5
|
|
@@ -28843,12 +28908,6 @@ var selectTokens = {
|
|
|
28843
28908
|
container: {
|
|
28844
28909
|
base: containerBase$2,
|
|
28845
28910
|
defaultWidth: defaultWidth$1,
|
|
28846
|
-
withLabel: {
|
|
28847
|
-
base: containerWithLabelBase
|
|
28848
|
-
},
|
|
28849
|
-
noLabel: {
|
|
28850
|
-
base: containerNoLabelBase
|
|
28851
|
-
},
|
|
28852
28911
|
hover: {
|
|
28853
28912
|
base: containerHoverBase
|
|
28854
28913
|
},
|
|
@@ -28884,6 +28943,11 @@ var selectTokens = {
|
|
|
28884
28943
|
base: inputBase$1,
|
|
28885
28944
|
noLabel: {
|
|
28886
28945
|
base: inputNoLabelBase
|
|
28946
|
+
},
|
|
28947
|
+
isMulti: {
|
|
28948
|
+
noLabel: {
|
|
28949
|
+
base: inputIsMultiNoLabelBase
|
|
28950
|
+
}
|
|
28887
28951
|
}
|
|
28888
28952
|
},
|
|
28889
28953
|
placeholder: {
|
|
@@ -28906,6 +28970,60 @@ var selectTokens = {
|
|
|
28906
28970
|
}
|
|
28907
28971
|
}
|
|
28908
28972
|
},
|
|
28973
|
+
valueContainer: {
|
|
28974
|
+
withLabel: {
|
|
28975
|
+
base: valueContainerWithLabelBase
|
|
28976
|
+
},
|
|
28977
|
+
noLabel: {
|
|
28978
|
+
base: valueContainerNoLabelBase
|
|
28979
|
+
},
|
|
28980
|
+
isMulti: {
|
|
28981
|
+
base: valueContainerIsMultiBase,
|
|
28982
|
+
withLabel: {
|
|
28983
|
+
base: valueContainerIsMultiWithLabelBase
|
|
28984
|
+
},
|
|
28985
|
+
noLabel: {
|
|
28986
|
+
base: valueContainerIsMultiNoLabelBase
|
|
28987
|
+
}
|
|
28988
|
+
}
|
|
28989
|
+
},
|
|
28990
|
+
multiValue: {
|
|
28991
|
+
base: multiValueBase,
|
|
28992
|
+
enabled: {
|
|
28993
|
+
base: multiValueEnabledBase
|
|
28994
|
+
},
|
|
28995
|
+
disabled: {
|
|
28996
|
+
base: multiValueDisabledBase
|
|
28997
|
+
}
|
|
28998
|
+
},
|
|
28999
|
+
multiValueLabel: {
|
|
29000
|
+
base: multiValueLabelBase
|
|
29001
|
+
},
|
|
29002
|
+
multiValueRemove: {
|
|
29003
|
+
base: multiValueRemoveBase,
|
|
29004
|
+
hover: {
|
|
29005
|
+
base: multiValueRemoveHoverBase
|
|
29006
|
+
},
|
|
29007
|
+
icon: {
|
|
29008
|
+
base: multiValueRemoveIconBase
|
|
29009
|
+
}
|
|
29010
|
+
},
|
|
29011
|
+
indicatorsContainer: {
|
|
29012
|
+
withLabel: {
|
|
29013
|
+
base: indicatorsContainerWithLabelBase
|
|
29014
|
+
},
|
|
29015
|
+
noLabel: {
|
|
29016
|
+
base: indicatorsContainerNoLabelBase
|
|
29017
|
+
},
|
|
29018
|
+
isMulti: {
|
|
29019
|
+
withLabel: {
|
|
29020
|
+
base: indicatorsContainerIsMultiWithLabelBase
|
|
29021
|
+
},
|
|
29022
|
+
noLabel: {
|
|
29023
|
+
base: indicatorsContainerIsMultiNoLabelBase
|
|
29024
|
+
}
|
|
29025
|
+
}
|
|
29026
|
+
},
|
|
28909
29027
|
dropdownIndicator: {
|
|
28910
29028
|
base: dropdownIndicatorBase,
|
|
28911
29029
|
hover: {
|
|
@@ -28923,6 +29041,9 @@ var selectTokens = {
|
|
|
28923
29041
|
hover: {
|
|
28924
29042
|
base: clearIndicatorHoverBase
|
|
28925
29043
|
}
|
|
29044
|
+
},
|
|
29045
|
+
loadingIndicator: {
|
|
29046
|
+
base: loadingIndicatorBase
|
|
28926
29047
|
}
|
|
28927
29048
|
};
|
|
28928
29049
|
|
|
@@ -28934,30 +29055,34 @@ var Label = styled(Typography).withConfig({
|
|
|
28934
29055
|
var Container$5 = styled.div.withConfig({
|
|
28935
29056
|
displayName: "Selectstyles__Container",
|
|
28936
29057
|
componentId: "sc-19jkd5s-1"
|
|
28937
|
-
})(
|
|
28938
|
-
var
|
|
28939
|
-
return
|
|
29058
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"], ["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"])), selectTokens.container.base, scrollbarStyling, typographyTokens.selection.base, function (_a) {
|
|
29059
|
+
var isMulti = _a.isMulti;
|
|
29060
|
+
return isMulti && Ae(templateObject_2$i || (templateObject_2$i = __makeTemplateObject([""], [""])));
|
|
29061
|
+
}, function (_a) {
|
|
29062
|
+
var hasLabel = _a.hasLabel,
|
|
29063
|
+
isMulti = _a.isMulti;
|
|
29064
|
+
return isMulti && hasLabel ? Ae(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.valueContainer.isMulti.withLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.withLabel.base) : isMulti && !hasLabel ? Ae(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.input.isMulti.noLabel.base, prefix, selectTokens.valueContainer.isMulti.noLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.noLabel.base) : hasLabel ? Ae(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.valueContainer.withLabel.base, prefix, selectTokens.indicatorsContainer.withLabel.base) : Ae(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.input.noLabel.base, prefix, selectTokens.valueContainer.noLabel.base, prefix, selectTokens.indicatorsContainer.noLabel.base);
|
|
28940
29065
|
}, selectTokens.container.hover.base, selectTokens.container.hover.base.borderColor, Label, selectTokens.label.hover.base, selectTokens.container.focus.base, selectTokens.container.focus.base.borderColor, Label, selectTokens.label.focus.base, function (_a) {
|
|
28941
29066
|
var errorMessage = _a.errorMessage;
|
|
28942
|
-
return errorMessage && Ae(
|
|
29067
|
+
return errorMessage && Ae(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n ", "\n box-shadow: 0 0 0 1px ", ";\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n "], ["\n ", "\n box-shadow: 0 0 0 1px ", ";\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n "])), selectTokens.container.danger.base, selectTokens.container.danger.base.borderColor, selectTokens.container.danger.hover.base, selectTokens.container.danger.hover.base.borderColor, selectTokens.container.danger.focus.base, selectTokens.container.danger.focus.base.borderColor);
|
|
28943
29068
|
}, prefix, scrollbarStyling, prefix, prefix, selectTokens.dropdownIndicator.hover.base, function (_a) {
|
|
28944
29069
|
var isDisabled = _a.isDisabled;
|
|
28945
|
-
return isDisabled && Ae(
|
|
29070
|
+
return isDisabled && Ae(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n cursor: not-allowed;\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n &:hover .", "__dropdown-indicator {\n ", "\n }\n }\n "], ["\n cursor: not-allowed;\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n &:hover .", "__dropdown-indicator {\n ", "\n }\n }\n "])), selectTokens.container.disabled.base, selectTokens.container.disabled.base, Label, selectTokens.label.base, prefix, selectTokens.dropdownIndicator.base);
|
|
28946
29071
|
}, function (_a) {
|
|
28947
29072
|
var readOnly = _a.readOnly;
|
|
28948
|
-
return readOnly && Ae(
|
|
29073
|
+
return readOnly && Ae(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n }\n .", "__dropdown-indicator, &:hover .", "__dropdown-indicator {\n ", "\n }\n "], ["\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n }\n .", "__dropdown-indicator, &:hover .", "__dropdown-indicator {\n ", "\n }\n "])), selectTokens.container.readOnly.base, selectTokens.container.readOnly.base, Label, selectTokens.label.base, prefix, prefix, selectTokens.dropdownIndicator.readOnly.base);
|
|
28949
29074
|
});
|
|
28950
29075
|
var Wrapper$2 = styled.div.withConfig({
|
|
28951
29076
|
displayName: "Selectstyles__Wrapper",
|
|
28952
29077
|
componentId: "sc-19jkd5s-2"
|
|
28953
|
-
})(
|
|
29078
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n margin: 0;\n width: ", ";\n"], ["\n margin: 0;\n width: ", ";\n"])), function (_a) {
|
|
28954
29079
|
var width = _a.width;
|
|
28955
29080
|
return width;
|
|
28956
29081
|
});
|
|
28957
29082
|
var SelectedIconWrapper = styled(IconWrapper$1).withConfig({
|
|
28958
29083
|
displayName: "Selectstyles__SelectedIconWrapper",
|
|
28959
29084
|
componentId: "sc-19jkd5s-3"
|
|
28960
|
-
})(
|
|
29085
|
+
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), selectTokens.option.selected.icon.margin);
|
|
28961
29086
|
var CustomStyles = {
|
|
28962
29087
|
placeholder: function placeholder() {
|
|
28963
29088
|
return __assign({}, selectTokens.placeholder.base);
|
|
@@ -28981,8 +29106,9 @@ var CustomStyles = {
|
|
|
28981
29106
|
flexWrap: 'wrap'
|
|
28982
29107
|
}, selectTokens.input.base);
|
|
28983
29108
|
},
|
|
28984
|
-
valueContainer: function valueContainer(provided) {
|
|
28985
|
-
|
|
29109
|
+
valueContainer: function valueContainer(provided, state) {
|
|
29110
|
+
var isMultiStyles = state.selectProps.isMulti ? __assign({}, selectTokens.valueContainer.isMulti.base) : {};
|
|
29111
|
+
return __assign(__assign(__assign({}, provided), isMultiStyles), {
|
|
28986
29112
|
padding: 0
|
|
28987
29113
|
});
|
|
28988
29114
|
},
|
|
@@ -28991,16 +29117,34 @@ var CustomStyles = {
|
|
|
28991
29117
|
margin: 0
|
|
28992
29118
|
});
|
|
28993
29119
|
},
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
29120
|
+
multiValue: function multiValue(provided, state) {
|
|
29121
|
+
var variantStyles = state.selectProps.isDisabled ? __assign({}, selectTokens.multiValue.disabled.base) : __assign({}, selectTokens.multiValue.enabled.base);
|
|
29122
|
+
return __assign(__assign(__assign({}, provided), selectTokens.multiValue.base), variantStyles);
|
|
29123
|
+
},
|
|
29124
|
+
multiValueLabel: function multiValueLabel(provided) {
|
|
29125
|
+
return __assign(__assign({}, provided), selectTokens.multiValueLabel.base);
|
|
29126
|
+
},
|
|
29127
|
+
multiValueRemove: function multiValueRemove(provided, state) {
|
|
29128
|
+
return state.selectProps.isDisabled ? {
|
|
29129
|
+
display: 'none'
|
|
29130
|
+
} : __assign(__assign(__assign(__assign({}, provided), {
|
|
29131
|
+
transition: '0.2s'
|
|
29132
|
+
}), selectTokens.multiValueRemove.base), {
|
|
29133
|
+
svg: __assign({}, selectTokens.multiValueRemove.icon.base),
|
|
29134
|
+
'&:hover': __assign({}, selectTokens.multiValueRemove.hover.base),
|
|
29135
|
+
'&:focus': {
|
|
29136
|
+
backgroundColor: 'blue'
|
|
29137
|
+
}
|
|
29138
|
+
});
|
|
29139
|
+
},
|
|
29140
|
+
menu: function menu(provided) {
|
|
29141
|
+
return __assign(__assign(__assign({}, provided), {
|
|
28997
29142
|
zIndex: 3,
|
|
28998
29143
|
transition: '0.2s',
|
|
28999
29144
|
width: 'calc(100% + 2px)',
|
|
29000
29145
|
transform: 'translate(-1px)',
|
|
29001
|
-
top: selectTokens.optionsList.spaceTop,
|
|
29002
29146
|
boxShadow: "0 0 0 1px " + selectTokens.optionsList.base.borderColor
|
|
29003
|
-
}, selectTokens.optionsList.base);
|
|
29147
|
+
}), selectTokens.optionsList.base);
|
|
29004
29148
|
},
|
|
29005
29149
|
option: function option(provided, state) {
|
|
29006
29150
|
var selectedBase = state.isSelected ? __assign({}, selectTokens.option.selected.base) : {};
|
|
@@ -29016,6 +29160,9 @@ var CustomStyles = {
|
|
|
29016
29160
|
noOptionsMessage: function noOptionsMessage() {
|
|
29017
29161
|
return __assign({}, selectTokens.noOptionsMessage.base);
|
|
29018
29162
|
},
|
|
29163
|
+
indicatorsContainer: function indicatorsContainer(provided) {
|
|
29164
|
+
return __assign({}, provided);
|
|
29165
|
+
},
|
|
29019
29166
|
clearIndicator: function clearIndicator() {
|
|
29020
29167
|
return __assign(__assign({
|
|
29021
29168
|
display: 'flex'
|
|
@@ -29023,11 +29170,14 @@ var CustomStyles = {
|
|
|
29023
29170
|
'&:hover': __assign({}, selectTokens.clearIndicator.hover.base)
|
|
29024
29171
|
});
|
|
29025
29172
|
},
|
|
29173
|
+
loadingIndicator: function loadingIndicator(provided) {
|
|
29174
|
+
return __assign(__assign({}, provided), selectTokens.loadingIndicator.base);
|
|
29175
|
+
},
|
|
29026
29176
|
input: function input() {
|
|
29027
29177
|
return {};
|
|
29028
29178
|
}
|
|
29029
29179
|
};
|
|
29030
|
-
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;
|
|
29180
|
+
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, templateObject_10, templateObject_11, templateObject_12;
|
|
29031
29181
|
|
|
29032
29182
|
var DdsOption = components.Option,
|
|
29033
29183
|
NoOptionsMessage = components.NoOptionsMessage;
|
|
@@ -29065,10 +29215,12 @@ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29065
29215
|
required = _a.required,
|
|
29066
29216
|
readOnly = _a.readOnly,
|
|
29067
29217
|
options = _a.options,
|
|
29218
|
+
isMulti = _a.isMulti,
|
|
29068
29219
|
value = _a.value,
|
|
29069
29220
|
defaultValue = _a.defaultValue,
|
|
29070
29221
|
_b = _a.width,
|
|
29071
29222
|
width = _b === void 0 ? selectTokens.container.defaultWidth : _b,
|
|
29223
|
+
closeMenuOnSelect = _a.closeMenuOnSelect,
|
|
29072
29224
|
className = _a.className,
|
|
29073
29225
|
style = _a.style,
|
|
29074
29226
|
isDisabled = _a.isDisabled,
|
|
@@ -29076,28 +29228,33 @@ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29076
29228
|
isClearable = _c === void 0 ? true : _c,
|
|
29077
29229
|
_d = _a.placeholder,
|
|
29078
29230
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
29079
|
-
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "value", "defaultValue", "width", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
29231
|
+
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "isMulti", "value", "defaultValue", "width", "closeMenuOnSelect", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
29080
29232
|
|
|
29081
29233
|
var uniqueId = useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$2++)[0];
|
|
29234
|
+
var hasLabel = !!label;
|
|
29082
29235
|
var wrapperProps = {
|
|
29083
29236
|
width: width
|
|
29084
29237
|
};
|
|
29085
29238
|
var containerProps = {
|
|
29086
29239
|
errorMessage: errorMessage,
|
|
29087
29240
|
isDisabled: isDisabled,
|
|
29241
|
+
isMulti: isMulti,
|
|
29088
29242
|
readOnly: readOnly,
|
|
29089
|
-
|
|
29243
|
+
hasLabel: hasLabel,
|
|
29090
29244
|
className: className,
|
|
29091
29245
|
style: style
|
|
29092
29246
|
};
|
|
29093
29247
|
|
|
29094
29248
|
var reactSelectProps = __assign({
|
|
29249
|
+
ref: ref,
|
|
29095
29250
|
options: options,
|
|
29096
29251
|
value: value,
|
|
29097
29252
|
defaultValue: defaultValue,
|
|
29098
29253
|
isDisabled: isDisabled || readOnly,
|
|
29099
29254
|
isClearable: isClearable,
|
|
29100
29255
|
placeholder: placeholder,
|
|
29256
|
+
closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
|
|
29257
|
+
isMulti: isMulti,
|
|
29101
29258
|
inputId: uniqueId,
|
|
29102
29259
|
name: uniqueId,
|
|
29103
29260
|
classNamePrefix: prefix,
|
|
@@ -29120,9 +29277,7 @@ var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
29120
29277
|
typographyType: "supportingStyleLabel01"
|
|
29121
29278
|
}, {
|
|
29122
29279
|
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
29123
|
-
}), void 0), jsxRuntime.jsx(ReactSelect, __assign({}, reactSelectProps,
|
|
29124
|
-
ref: ref
|
|
29125
|
-
}), void 0)]
|
|
29280
|
+
}), void 0), jsxRuntime.jsx(ReactSelect, __assign({}, reactSelectProps), void 0)]
|
|
29126
29281
|
}), void 0), errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
29127
29282
|
messageType: "error",
|
|
29128
29283
|
message: errorMessage
|
package/dist/index.js
CHANGED
|
@@ -20079,13 +20079,13 @@ var StyledTypography = styled.p.withConfig({
|
|
|
20079
20079
|
return color && Ae(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), getTextColor(color));
|
|
20080
20080
|
}, function (_a) {
|
|
20081
20081
|
var bold = _a.bold;
|
|
20082
|
-
return bold && Ae(templateObject_10$
|
|
20082
|
+
return bold && Ae(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.bold.base);
|
|
20083
20083
|
}, function (_a) {
|
|
20084
20084
|
var italic = _a.italic;
|
|
20085
|
-
return italic && Ae(templateObject_11$
|
|
20085
|
+
return italic && Ae(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.italic.base);
|
|
20086
20086
|
}, function (_a) {
|
|
20087
20087
|
var underline = _a.underline;
|
|
20088
|
-
return underline && Ae(templateObject_12$
|
|
20088
|
+
return underline && Ae(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), typographyTokens.style.underline.base);
|
|
20089
20089
|
});
|
|
20090
20090
|
var Typography = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
20091
20091
|
var _b = _a.typographyType,
|
|
@@ -20114,7 +20114,7 @@ var Typography = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
20114
20114
|
}, void 0) : '']
|
|
20115
20115
|
}), void 0);
|
|
20116
20116
|
});
|
|
20117
|
-
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$
|
|
20117
|
+
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$5, templateObject_11$4, templateObject_12$3, templateObject_13$2;
|
|
20118
20118
|
|
|
20119
20119
|
var RadioButtonGroupContext = /*#__PURE__*/React__default['default'].createContext(null);
|
|
20120
20120
|
var useRadioButtonGroup = function useRadioButtonGroup() {
|
|
@@ -20593,12 +20593,12 @@ var checkmarkIndeterminateBase = {
|
|
|
20593
20593
|
|
|
20594
20594
|
var containerBase$3 = __assign({}, FontPackages$e.body_sans_02.base);
|
|
20595
20595
|
|
|
20596
|
-
var containerWithLabelBase
|
|
20596
|
+
var containerWithLabelBase = __assign(__assign({}, FontPackages$e.body_sans_02.base), {
|
|
20597
20597
|
marginRight: Spacing$k.SizesDdsSpacingLocalX075,
|
|
20598
20598
|
padding: "0 " + Spacing$k.SizesDdsSpacingLocalX025 + " 0 " + (FontPackages$e.supportingStyle_inputtext_02.numbers.fontSizeNumber + Spacing$k.SizesDdsSpacingLocalX075NumberPx) + "px"
|
|
20599
20599
|
});
|
|
20600
20600
|
|
|
20601
|
-
var containerNoLabelBase
|
|
20601
|
+
var containerNoLabelBase = {
|
|
20602
20602
|
padding: Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX0125 + " " + Spacing$k.SizesDdsSpacingLocalX075 + " " + Spacing$k.SizesDdsSpacingLocalX15
|
|
20603
20603
|
};
|
|
20604
20604
|
var checkboxTokens = {
|
|
@@ -20659,10 +20659,10 @@ var checkboxTokens = {
|
|
|
20659
20659
|
width: Border$6.BordersDdsBorderStyle1StrokeWeight
|
|
20660
20660
|
},
|
|
20661
20661
|
withLabel: {
|
|
20662
|
-
base: containerWithLabelBase
|
|
20662
|
+
base: containerWithLabelBase
|
|
20663
20663
|
},
|
|
20664
20664
|
noLabel: {
|
|
20665
|
-
base: containerNoLabelBase
|
|
20665
|
+
base: containerNoLabelBase
|
|
20666
20666
|
}
|
|
20667
20667
|
}
|
|
20668
20668
|
};
|
|
@@ -20700,12 +20700,12 @@ var Container$7 = styled.label.withConfig({
|
|
|
20700
20700
|
}, function (_a) {
|
|
20701
20701
|
var readOnly = _a.readOnly,
|
|
20702
20702
|
indeterminate = _a.indeterminate;
|
|
20703
|
-
return readOnly && Ae(templateObject_10$
|
|
20703
|
+
return readOnly && Ae(templateObject_10$4 || (templateObject_10$4 = __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));
|
|
20704
20704
|
}, CustomCheckbox, checkboxTokens.checkmark.color, function (_a) {
|
|
20705
20705
|
var indeterminate = _a.indeterminate;
|
|
20706
|
-
return indeterminate ? Ae(templateObject_11$
|
|
20706
|
+
return indeterminate ? Ae(templateObject_11$3 || (templateObject_11$3 = __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$2 || (templateObject_12$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), checkboxTokens.checkmark.base);
|
|
20707
20707
|
});
|
|
20708
|
-
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$
|
|
20708
|
+
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$4, templateObject_11$3, templateObject_12$2, templateObject_13$1;
|
|
20709
20709
|
|
|
20710
20710
|
var nextUniqueId$5 = 0;
|
|
20711
20711
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
@@ -21375,7 +21375,7 @@ var ButtonWrapper$1 = styled.button.withConfig({
|
|
|
21375
21375
|
var IconWithTextWrapper = styled(IconWrapper$1).withConfig({
|
|
21376
21376
|
displayName: "Buttonstyles__IconWithTextWrapper",
|
|
21377
21377
|
componentId: "sc-14dutqk-1"
|
|
21378
|
-
})(templateObject_10$
|
|
21378
|
+
})(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
21379
21379
|
var size = _a.size,
|
|
21380
21380
|
iconPosition = _a.iconPosition;
|
|
21381
21381
|
return iconPosition === 'left' ? Ae(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n margin-inline-end: ", ";\n "], ["\n margin-inline-end: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : iconPosition === 'right' ? Ae(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject(["\n margin-inline-start: ", ";\n "], ["\n margin-inline-start: ", ";\n "])), buttonTokens.sizes[size].iconWithTextMargin) : '';
|
|
@@ -21383,15 +21383,15 @@ var IconWithTextWrapper = styled(IconWrapper$1).withConfig({
|
|
|
21383
21383
|
var JustIconWrapper = styled.span.withConfig({
|
|
21384
21384
|
displayName: "Buttonstyles__JustIconWrapper",
|
|
21385
21385
|
componentId: "sc-14dutqk-2"
|
|
21386
|
-
})(templateObject_12 || (templateObject_12 = __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) {
|
|
21386
|
+
})(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n ", "\n"])), function (_a) {
|
|
21387
21387
|
var size = _a.size;
|
|
21388
|
-
return Ae(templateObject_11$
|
|
21388
|
+
return Ae(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), buttonTokens.sizes[size].justIconWrapper.base);
|
|
21389
21389
|
});
|
|
21390
21390
|
var Label$2 = styled.span.withConfig({
|
|
21391
21391
|
displayName: "Buttonstyles__Label",
|
|
21392
21392
|
componentId: "sc-14dutqk-3"
|
|
21393
21393
|
})(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
21394
|
-
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$
|
|
21394
|
+
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$3, templateObject_11$2, templateObject_12$1, templateObject_13;
|
|
21395
21395
|
|
|
21396
21396
|
var Button = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
21397
21397
|
var label = _a.label,
|
|
@@ -21687,15 +21687,15 @@ var SingleLineLabel = styled(Typography).withConfig({
|
|
|
21687
21687
|
var InputContainer$2 = styled.div.withConfig({
|
|
21688
21688
|
displayName: "Inputstyles__InputContainer",
|
|
21689
21689
|
componentId: "sc-1oz9x8w-2"
|
|
21690
|
-
})(templateObject_10$
|
|
21690
|
+
})(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
21691
21691
|
var OuterInputContainer = styled.div.withConfig({
|
|
21692
21692
|
displayName: "Inputstyles__OuterInputContainer",
|
|
21693
21693
|
componentId: "sc-1oz9x8w-3"
|
|
21694
|
-
})(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) {
|
|
21694
|
+
})(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n width: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n width: ", ";\n"])), function (_a) {
|
|
21695
21695
|
var width = _a.width;
|
|
21696
21696
|
return width;
|
|
21697
21697
|
});
|
|
21698
|
-
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$
|
|
21698
|
+
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$2, templateObject_11$1;
|
|
21699
21699
|
|
|
21700
21700
|
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)');
|
|
21701
21701
|
var templateObject_1$r;
|
|
@@ -21746,7 +21746,7 @@ var Label$1 = styled(SingleLineLabel).withConfig({
|
|
|
21746
21746
|
var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
21747
21747
|
displayName: "TextInputstyles__InputContainer",
|
|
21748
21748
|
componentId: "sc-165zflr-3"
|
|
21749
|
-
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n height: ", ";\n"], ["\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21749
|
+
})(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n ", "\n height: ", ";\n"], ["\n ", "\n height: ", ";\n"])), function (_a) {
|
|
21750
21750
|
var multiline = _a.multiline;
|
|
21751
21751
|
return multiline && Ae(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "])));
|
|
21752
21752
|
}, function (_a) {
|
|
@@ -21761,7 +21761,7 @@ var InputContainer$1 = styled(InputContainer$2).withConfig({
|
|
|
21761
21761
|
return textInputTokens.container.multiline.noLabel.height;
|
|
21762
21762
|
}
|
|
21763
21763
|
});
|
|
21764
|
-
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;
|
|
21764
|
+
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$1;
|
|
21765
21765
|
|
|
21766
21766
|
var nextUniqueId$3 = 0;
|
|
21767
21767
|
var TextInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
@@ -28752,8 +28752,14 @@ var Colors$a = ddsBaseTokens.colors,
|
|
|
28752
28752
|
Spacing$e = ddsBaseTokens.spacing,
|
|
28753
28753
|
FontPackages$b = ddsBaseTokens.fontPackages,
|
|
28754
28754
|
BorderRadius$1 = ddsBaseTokens.borderRadius,
|
|
28755
|
-
Border$4 = ddsBaseTokens.border
|
|
28755
|
+
Border$4 = ddsBaseTokens.border,
|
|
28756
|
+
IconSizes = ddsBaseTokens.iconSizes;
|
|
28756
28757
|
var textDefault$6 = ddsReferenceTokens.textDefault;
|
|
28758
|
+
var multiValueContainerMinHeight = Spacing$e.SizesDdsSpacingLocalX0125NumberPx * 2 + Spacing$e.SizesDdsSpacingLocalX025NumberPx * 2 + calculateHeightWithLineHeight(FontPackages$b.supportingStyle_inputtext_01.numbers.lineHeightNumber, FontPackages$b.supportingStyle_inputtext_01.numbers.fontSizeNumber) + "px"; //custom spacing so that multiselect has same height as single value select
|
|
28759
|
+
|
|
28760
|
+
var valueContainerMarginBottomMultiWithLabel = Spacing$e.SizesDdsSpacingLocalX025NumberPx + Spacing$e.SizesDdsSpacingLocalX0125NumberPx + "px"; //custom spacing so that multiselect has same height as single value select
|
|
28761
|
+
|
|
28762
|
+
var inputMultiNoLabelPaddingTop = Spacing$e.SizesDdsSpacingLocalX05NumberPx + Spacing$e.SizesDdsSpacingLocalX0125NumberPx + "px";
|
|
28757
28763
|
|
|
28758
28764
|
var labelBase = __assign({
|
|
28759
28765
|
color: Colors$a.DdsColorNeutralsGray7,
|
|
@@ -28769,20 +28775,27 @@ var labelHoverBase = {
|
|
|
28769
28775
|
var labelFocusBase = {
|
|
28770
28776
|
color: Colors$a.DdsColorInteractiveBase
|
|
28771
28777
|
};
|
|
28778
|
+
var valueContainerWithLabelBase = {
|
|
28779
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX075
|
|
28780
|
+
};
|
|
28781
|
+
var valueContainerNoLabelBase = {
|
|
28782
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX075
|
|
28783
|
+
};
|
|
28784
|
+
var valueContainerIsMultiBase = {
|
|
28785
|
+
minHeight: multiValueContainerMinHeight
|
|
28786
|
+
};
|
|
28787
|
+
var valueContainerIsMultiWithLabelBase = {
|
|
28788
|
+
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
28789
|
+
};
|
|
28790
|
+
var valueContainerIsMultiNoLabelBase = {
|
|
28791
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX05
|
|
28792
|
+
};
|
|
28772
28793
|
var containerBase$2 = {
|
|
28773
28794
|
borderRadius: BorderRadius$1.RadiiDdsBorderRadius1Radius,
|
|
28774
28795
|
border: Border$4.BordersDdsBorderStyle1StrokeWeight + " solid",
|
|
28775
28796
|
borderColor: Colors$a.DdsColorNeutralsGray5,
|
|
28776
28797
|
backgroundColor: Colors$a.DdsColorNeutralsWhite
|
|
28777
28798
|
};
|
|
28778
|
-
var withLabelHeight = Spacing$e.SizesDdsSpacingLocalX075NumberPx * 2 + FontPackages$b.supportingStyle_label_01.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_label_01.numbers.fontSizeNumber + FontPackages$b.supportingStyle_inputtext_02.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_inputtext_02.numbers.fontSizeNumber + Border$4.BordersDdsBorderStyle1StrokeWeightNumberPx * 2;
|
|
28779
|
-
var containerWithLabelBase = {
|
|
28780
|
-
height: withLabelHeight + "px"
|
|
28781
|
-
};
|
|
28782
|
-
var noLabelHeight = Spacing$e.SizesDdsSpacingLocalX075NumberPx * 2 + FontPackages$b.supportingStyle_inputtext_02.numbers.lineHeightNumber * 0.01 * FontPackages$b.supportingStyle_inputtext_02.numbers.fontSizeNumber + Border$4.BordersDdsBorderStyle1StrokeWeightNumberPx * 2;
|
|
28783
|
-
var containerNoLabelBase = {
|
|
28784
|
-
height: noLabelHeight + "px"
|
|
28785
|
-
};
|
|
28786
28799
|
var containerHoverBase = {
|
|
28787
28800
|
backgroundColor: Colors$a.DdsColorInteractiveLightest,
|
|
28788
28801
|
borderColor: Colors$a.DdsColorInteractiveBase
|
|
@@ -28808,11 +28821,26 @@ var inputBase$1 = __assign({
|
|
|
28808
28821
|
var inputNoLabelBase = {
|
|
28809
28822
|
paddingTop: Spacing$e.SizesDdsSpacingLocalX075
|
|
28810
28823
|
};
|
|
28824
|
+
var inputIsMultiNoLabelBase = {
|
|
28825
|
+
paddingTop: inputMultiNoLabelPaddingTop
|
|
28826
|
+
};
|
|
28811
28827
|
|
|
28812
28828
|
var placeholderBase = __assign({
|
|
28813
28829
|
color: Colors$a.DdsColorNeutralsGray6
|
|
28814
28830
|
}, FontPackages$b.supportingStyle_placeholdertext_01.base);
|
|
28815
28831
|
|
|
28832
|
+
var indicatorsContainerWithLabelBase = {
|
|
28833
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX1
|
|
28834
|
+
};
|
|
28835
|
+
var indicatorsContainerNoLabelBase = {
|
|
28836
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX075
|
|
28837
|
+
};
|
|
28838
|
+
var indicatorsContainerIsMultiWithLabelBase = {
|
|
28839
|
+
marginBottom: valueContainerMarginBottomMultiWithLabel
|
|
28840
|
+
};
|
|
28841
|
+
var indicatorsContainerIsMultiNoLabelBase = {
|
|
28842
|
+
marginBottom: Spacing$e.SizesDdsSpacingLocalX05
|
|
28843
|
+
};
|
|
28816
28844
|
var dropdownIndicatorBase = {
|
|
28817
28845
|
color: Colors$a.DdsColorNeutralsGray6,
|
|
28818
28846
|
padding: 0
|
|
@@ -28827,6 +28855,10 @@ var clearIndicatorBase = {
|
|
|
28827
28855
|
color: Colors$a.DdsColorNeutralsGray6,
|
|
28828
28856
|
padding: " 0 " + Spacing$e.SizesDdsSpacingLocalX025 + " 0 0"
|
|
28829
28857
|
};
|
|
28858
|
+
var loadingIndicatorBase = {
|
|
28859
|
+
color: Colors$a.DdsColorNeutralsGray6,
|
|
28860
|
+
padding: 0
|
|
28861
|
+
};
|
|
28830
28862
|
var clearIndicatorHoverBase = {
|
|
28831
28863
|
color: Colors$a.DdsColorInteractiveBase
|
|
28832
28864
|
};
|
|
@@ -28858,6 +28890,39 @@ var noOptionsMessageBase = __assign({
|
|
|
28858
28890
|
color: Colors$a.DdsColorNeutralsGray6
|
|
28859
28891
|
}, FontPackages$b.supportingStyle_placeholdertext_01.base);
|
|
28860
28892
|
|
|
28893
|
+
var multiValueBase = {
|
|
28894
|
+
borderRadius: BorderRadius$1.RadiiDdsBorderRadius1Radius,
|
|
28895
|
+
margin: Spacing$e.SizesDdsSpacingLocalX0125
|
|
28896
|
+
};
|
|
28897
|
+
var multiValueEnabledBase = {
|
|
28898
|
+
backgroundColor: Colors$a.DdsColorInteractiveLighter
|
|
28899
|
+
};
|
|
28900
|
+
var multiValueDisabledBase = {
|
|
28901
|
+
backgroundColor: Colors$a.DdsColorNeutralsGray3
|
|
28902
|
+
};
|
|
28903
|
+
|
|
28904
|
+
var multiValueLabelBase = __assign(__assign({
|
|
28905
|
+
paddingTop: "" + Spacing$e.SizesDdsSpacingLocalX025,
|
|
28906
|
+
paddingRight: "" + Spacing$e.SizesDdsSpacingLocalX05,
|
|
28907
|
+
paddingLeft: "" + Spacing$e.SizesDdsSpacingLocalX05,
|
|
28908
|
+
paddingBottom: "" + Spacing$e.SizesDdsSpacingLocalX025,
|
|
28909
|
+
color: Colors$a.DdsColorNeutralsGray9
|
|
28910
|
+
}, FontPackages$b.supportingStyle_inputtext_01.base), {
|
|
28911
|
+
fontWeight: 'bold'
|
|
28912
|
+
});
|
|
28913
|
+
|
|
28914
|
+
var multiValueRemoveBase = {
|
|
28915
|
+
padding: "" + Spacing$e.SizesDdsSpacingLocalX025,
|
|
28916
|
+
color: Colors$a.DdsColorNeutralsGray9
|
|
28917
|
+
};
|
|
28918
|
+
var multiValueRemoveHoverBase = {
|
|
28919
|
+
color: Colors$a.DdsColorNeutralsWhite,
|
|
28920
|
+
backgroundColor: Colors$a.DdsColorInteractiveBase
|
|
28921
|
+
};
|
|
28922
|
+
var multiValueRemoveIconBase = {
|
|
28923
|
+
height: IconSizes.DdsIconsizeSmall,
|
|
28924
|
+
width: IconSizes.DdsIconsizeSmall
|
|
28925
|
+
};
|
|
28861
28926
|
var containerDisabledBase = {
|
|
28862
28927
|
backgroundColor: Colors$a.DdsColorNeutralsGray1,
|
|
28863
28928
|
borderColor: Colors$a.DdsColorNeutralsGray5
|
|
@@ -28871,12 +28936,6 @@ var selectTokens = {
|
|
|
28871
28936
|
container: {
|
|
28872
28937
|
base: containerBase$2,
|
|
28873
28938
|
defaultWidth: defaultWidth$1,
|
|
28874
|
-
withLabel: {
|
|
28875
|
-
base: containerWithLabelBase
|
|
28876
|
-
},
|
|
28877
|
-
noLabel: {
|
|
28878
|
-
base: containerNoLabelBase
|
|
28879
|
-
},
|
|
28880
28939
|
hover: {
|
|
28881
28940
|
base: containerHoverBase
|
|
28882
28941
|
},
|
|
@@ -28912,6 +28971,11 @@ var selectTokens = {
|
|
|
28912
28971
|
base: inputBase$1,
|
|
28913
28972
|
noLabel: {
|
|
28914
28973
|
base: inputNoLabelBase
|
|
28974
|
+
},
|
|
28975
|
+
isMulti: {
|
|
28976
|
+
noLabel: {
|
|
28977
|
+
base: inputIsMultiNoLabelBase
|
|
28978
|
+
}
|
|
28915
28979
|
}
|
|
28916
28980
|
},
|
|
28917
28981
|
placeholder: {
|
|
@@ -28934,6 +28998,60 @@ var selectTokens = {
|
|
|
28934
28998
|
}
|
|
28935
28999
|
}
|
|
28936
29000
|
},
|
|
29001
|
+
valueContainer: {
|
|
29002
|
+
withLabel: {
|
|
29003
|
+
base: valueContainerWithLabelBase
|
|
29004
|
+
},
|
|
29005
|
+
noLabel: {
|
|
29006
|
+
base: valueContainerNoLabelBase
|
|
29007
|
+
},
|
|
29008
|
+
isMulti: {
|
|
29009
|
+
base: valueContainerIsMultiBase,
|
|
29010
|
+
withLabel: {
|
|
29011
|
+
base: valueContainerIsMultiWithLabelBase
|
|
29012
|
+
},
|
|
29013
|
+
noLabel: {
|
|
29014
|
+
base: valueContainerIsMultiNoLabelBase
|
|
29015
|
+
}
|
|
29016
|
+
}
|
|
29017
|
+
},
|
|
29018
|
+
multiValue: {
|
|
29019
|
+
base: multiValueBase,
|
|
29020
|
+
enabled: {
|
|
29021
|
+
base: multiValueEnabledBase
|
|
29022
|
+
},
|
|
29023
|
+
disabled: {
|
|
29024
|
+
base: multiValueDisabledBase
|
|
29025
|
+
}
|
|
29026
|
+
},
|
|
29027
|
+
multiValueLabel: {
|
|
29028
|
+
base: multiValueLabelBase
|
|
29029
|
+
},
|
|
29030
|
+
multiValueRemove: {
|
|
29031
|
+
base: multiValueRemoveBase,
|
|
29032
|
+
hover: {
|
|
29033
|
+
base: multiValueRemoveHoverBase
|
|
29034
|
+
},
|
|
29035
|
+
icon: {
|
|
29036
|
+
base: multiValueRemoveIconBase
|
|
29037
|
+
}
|
|
29038
|
+
},
|
|
29039
|
+
indicatorsContainer: {
|
|
29040
|
+
withLabel: {
|
|
29041
|
+
base: indicatorsContainerWithLabelBase
|
|
29042
|
+
},
|
|
29043
|
+
noLabel: {
|
|
29044
|
+
base: indicatorsContainerNoLabelBase
|
|
29045
|
+
},
|
|
29046
|
+
isMulti: {
|
|
29047
|
+
withLabel: {
|
|
29048
|
+
base: indicatorsContainerIsMultiWithLabelBase
|
|
29049
|
+
},
|
|
29050
|
+
noLabel: {
|
|
29051
|
+
base: indicatorsContainerIsMultiNoLabelBase
|
|
29052
|
+
}
|
|
29053
|
+
}
|
|
29054
|
+
},
|
|
28937
29055
|
dropdownIndicator: {
|
|
28938
29056
|
base: dropdownIndicatorBase,
|
|
28939
29057
|
hover: {
|
|
@@ -28951,6 +29069,9 @@ var selectTokens = {
|
|
|
28951
29069
|
hover: {
|
|
28952
29070
|
base: clearIndicatorHoverBase
|
|
28953
29071
|
}
|
|
29072
|
+
},
|
|
29073
|
+
loadingIndicator: {
|
|
29074
|
+
base: loadingIndicatorBase
|
|
28954
29075
|
}
|
|
28955
29076
|
};
|
|
28956
29077
|
|
|
@@ -28962,30 +29083,34 @@ var Label = styled(Typography).withConfig({
|
|
|
28962
29083
|
var Container$5 = styled.div.withConfig({
|
|
28963
29084
|
displayName: "Selectstyles__Container",
|
|
28964
29085
|
componentId: "sc-19jkd5s-1"
|
|
28965
|
-
})(
|
|
28966
|
-
var
|
|
28967
|
-
return
|
|
29086
|
+
})(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"], ["\n transition: 0.2s;\n position: relative;\n ", "\n ", "\n *::selection {\n ", "\n }\n ", "\n\n ", "\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n ", " {\n ", "\n }\n }\n ", "\n\n .", "__menu-list {\n ", "\n }\n &:hover\n .", "__dropdown-indicator,\n &:focus-within\n .", "__dropdown-indicator {\n ", "\n }\n\n ", "\n ", "\n"])), selectTokens.container.base, scrollbarStyling, typographyTokens.selection.base, function (_a) {
|
|
29087
|
+
var isMulti = _a.isMulti;
|
|
29088
|
+
return isMulti && Ae(templateObject_2$i || (templateObject_2$i = __makeTemplateObject([""], [""])));
|
|
29089
|
+
}, function (_a) {
|
|
29090
|
+
var hasLabel = _a.hasLabel,
|
|
29091
|
+
isMulti = _a.isMulti;
|
|
29092
|
+
return isMulti && hasLabel ? Ae(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.valueContainer.isMulti.withLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.withLabel.base) : isMulti && !hasLabel ? Ae(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.input.isMulti.noLabel.base, prefix, selectTokens.valueContainer.isMulti.noLabel.base, prefix, selectTokens.indicatorsContainer.isMulti.noLabel.base) : hasLabel ? Ae(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.valueContainer.withLabel.base, prefix, selectTokens.indicatorsContainer.withLabel.base) : Ae(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "], ["\n .", "__control {\n ", "\n }\n .", "__value-container {\n ", "\n }\n .", "__indicators {\n ", "\n }\n "])), prefix, selectTokens.input.noLabel.base, prefix, selectTokens.valueContainer.noLabel.base, prefix, selectTokens.indicatorsContainer.noLabel.base);
|
|
28968
29093
|
}, selectTokens.container.hover.base, selectTokens.container.hover.base.borderColor, Label, selectTokens.label.hover.base, selectTokens.container.focus.base, selectTokens.container.focus.base.borderColor, Label, selectTokens.label.focus.base, function (_a) {
|
|
28969
29094
|
var errorMessage = _a.errorMessage;
|
|
28970
|
-
return errorMessage && Ae(
|
|
29095
|
+
return errorMessage && Ae(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n ", "\n box-shadow: 0 0 0 1px ", ";\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n "], ["\n ", "\n box-shadow: 0 0 0 1px ", ";\n &:hover {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n &:focus-within {\n ", "\n box-shadow: 0 0 0 1px ", ";\n }\n "])), selectTokens.container.danger.base, selectTokens.container.danger.base.borderColor, selectTokens.container.danger.hover.base, selectTokens.container.danger.hover.base.borderColor, selectTokens.container.danger.focus.base, selectTokens.container.danger.focus.base.borderColor);
|
|
28971
29096
|
}, prefix, scrollbarStyling, prefix, prefix, selectTokens.dropdownIndicator.hover.base, function (_a) {
|
|
28972
29097
|
var isDisabled = _a.isDisabled;
|
|
28973
|
-
return isDisabled && Ae(
|
|
29098
|
+
return isDisabled && Ae(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n cursor: not-allowed;\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n &:hover .", "__dropdown-indicator {\n ", "\n }\n }\n "], ["\n cursor: not-allowed;\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n &:hover .", "__dropdown-indicator {\n ", "\n }\n }\n "])), selectTokens.container.disabled.base, selectTokens.container.disabled.base, Label, selectTokens.label.base, prefix, selectTokens.dropdownIndicator.base);
|
|
28974
29099
|
}, function (_a) {
|
|
28975
29100
|
var readOnly = _a.readOnly;
|
|
28976
|
-
return readOnly && Ae(
|
|
29101
|
+
return readOnly && Ae(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n }\n .", "__dropdown-indicator, &:hover .", "__dropdown-indicator {\n ", "\n }\n "], ["\n ", "\n &:hover {\n box-shadow: none;\n ", "\n ", " {\n ", "\n }\n }\n .", "__dropdown-indicator, &:hover .", "__dropdown-indicator {\n ", "\n }\n "])), selectTokens.container.readOnly.base, selectTokens.container.readOnly.base, Label, selectTokens.label.base, prefix, prefix, selectTokens.dropdownIndicator.readOnly.base);
|
|
28977
29102
|
});
|
|
28978
29103
|
var Wrapper$2 = styled.div.withConfig({
|
|
28979
29104
|
displayName: "Selectstyles__Wrapper",
|
|
28980
29105
|
componentId: "sc-19jkd5s-2"
|
|
28981
|
-
})(
|
|
29106
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n margin: 0;\n width: ", ";\n"], ["\n margin: 0;\n width: ", ";\n"])), function (_a) {
|
|
28982
29107
|
var width = _a.width;
|
|
28983
29108
|
return width;
|
|
28984
29109
|
});
|
|
28985
29110
|
var SelectedIconWrapper = styled(IconWrapper$1).withConfig({
|
|
28986
29111
|
displayName: "Selectstyles__SelectedIconWrapper",
|
|
28987
29112
|
componentId: "sc-19jkd5s-3"
|
|
28988
|
-
})(
|
|
29113
|
+
})(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n margin: ", ";\n"], ["\n margin: ", ";\n"])), selectTokens.option.selected.icon.margin);
|
|
28989
29114
|
var CustomStyles = {
|
|
28990
29115
|
placeholder: function placeholder() {
|
|
28991
29116
|
return __assign({}, selectTokens.placeholder.base);
|
|
@@ -29009,8 +29134,9 @@ var CustomStyles = {
|
|
|
29009
29134
|
flexWrap: 'wrap'
|
|
29010
29135
|
}, selectTokens.input.base);
|
|
29011
29136
|
},
|
|
29012
|
-
valueContainer: function valueContainer(provided) {
|
|
29013
|
-
|
|
29137
|
+
valueContainer: function valueContainer(provided, state) {
|
|
29138
|
+
var isMultiStyles = state.selectProps.isMulti ? __assign({}, selectTokens.valueContainer.isMulti.base) : {};
|
|
29139
|
+
return __assign(__assign(__assign({}, provided), isMultiStyles), {
|
|
29014
29140
|
padding: 0
|
|
29015
29141
|
});
|
|
29016
29142
|
},
|
|
@@ -29019,16 +29145,34 @@ var CustomStyles = {
|
|
|
29019
29145
|
margin: 0
|
|
29020
29146
|
});
|
|
29021
29147
|
},
|
|
29022
|
-
|
|
29023
|
-
|
|
29024
|
-
|
|
29148
|
+
multiValue: function multiValue(provided, state) {
|
|
29149
|
+
var variantStyles = state.selectProps.isDisabled ? __assign({}, selectTokens.multiValue.disabled.base) : __assign({}, selectTokens.multiValue.enabled.base);
|
|
29150
|
+
return __assign(__assign(__assign({}, provided), selectTokens.multiValue.base), variantStyles);
|
|
29151
|
+
},
|
|
29152
|
+
multiValueLabel: function multiValueLabel(provided) {
|
|
29153
|
+
return __assign(__assign({}, provided), selectTokens.multiValueLabel.base);
|
|
29154
|
+
},
|
|
29155
|
+
multiValueRemove: function multiValueRemove(provided, state) {
|
|
29156
|
+
return state.selectProps.isDisabled ? {
|
|
29157
|
+
display: 'none'
|
|
29158
|
+
} : __assign(__assign(__assign(__assign({}, provided), {
|
|
29159
|
+
transition: '0.2s'
|
|
29160
|
+
}), selectTokens.multiValueRemove.base), {
|
|
29161
|
+
svg: __assign({}, selectTokens.multiValueRemove.icon.base),
|
|
29162
|
+
'&:hover': __assign({}, selectTokens.multiValueRemove.hover.base),
|
|
29163
|
+
'&:focus': {
|
|
29164
|
+
backgroundColor: 'blue'
|
|
29165
|
+
}
|
|
29166
|
+
});
|
|
29167
|
+
},
|
|
29168
|
+
menu: function menu(provided) {
|
|
29169
|
+
return __assign(__assign(__assign({}, provided), {
|
|
29025
29170
|
zIndex: 3,
|
|
29026
29171
|
transition: '0.2s',
|
|
29027
29172
|
width: 'calc(100% + 2px)',
|
|
29028
29173
|
transform: 'translate(-1px)',
|
|
29029
|
-
top: selectTokens.optionsList.spaceTop,
|
|
29030
29174
|
boxShadow: "0 0 0 1px " + selectTokens.optionsList.base.borderColor
|
|
29031
|
-
}, selectTokens.optionsList.base);
|
|
29175
|
+
}), selectTokens.optionsList.base);
|
|
29032
29176
|
},
|
|
29033
29177
|
option: function option(provided, state) {
|
|
29034
29178
|
var selectedBase = state.isSelected ? __assign({}, selectTokens.option.selected.base) : {};
|
|
@@ -29044,6 +29188,9 @@ var CustomStyles = {
|
|
|
29044
29188
|
noOptionsMessage: function noOptionsMessage() {
|
|
29045
29189
|
return __assign({}, selectTokens.noOptionsMessage.base);
|
|
29046
29190
|
},
|
|
29191
|
+
indicatorsContainer: function indicatorsContainer(provided) {
|
|
29192
|
+
return __assign({}, provided);
|
|
29193
|
+
},
|
|
29047
29194
|
clearIndicator: function clearIndicator() {
|
|
29048
29195
|
return __assign(__assign({
|
|
29049
29196
|
display: 'flex'
|
|
@@ -29051,11 +29198,14 @@ var CustomStyles = {
|
|
|
29051
29198
|
'&:hover': __assign({}, selectTokens.clearIndicator.hover.base)
|
|
29052
29199
|
});
|
|
29053
29200
|
},
|
|
29201
|
+
loadingIndicator: function loadingIndicator(provided) {
|
|
29202
|
+
return __assign(__assign({}, provided), selectTokens.loadingIndicator.base);
|
|
29203
|
+
},
|
|
29054
29204
|
input: function input() {
|
|
29055
29205
|
return {};
|
|
29056
29206
|
}
|
|
29057
29207
|
};
|
|
29058
|
-
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;
|
|
29208
|
+
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, templateObject_10, templateObject_11, templateObject_12;
|
|
29059
29209
|
|
|
29060
29210
|
var DdsOption = components.Option,
|
|
29061
29211
|
NoOptionsMessage = components.NoOptionsMessage;
|
|
@@ -29093,10 +29243,12 @@ var Select = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29093
29243
|
required = _a.required,
|
|
29094
29244
|
readOnly = _a.readOnly,
|
|
29095
29245
|
options = _a.options,
|
|
29246
|
+
isMulti = _a.isMulti,
|
|
29096
29247
|
value = _a.value,
|
|
29097
29248
|
defaultValue = _a.defaultValue,
|
|
29098
29249
|
_b = _a.width,
|
|
29099
29250
|
width = _b === void 0 ? selectTokens.container.defaultWidth : _b,
|
|
29251
|
+
closeMenuOnSelect = _a.closeMenuOnSelect,
|
|
29100
29252
|
className = _a.className,
|
|
29101
29253
|
style = _a.style,
|
|
29102
29254
|
isDisabled = _a.isDisabled,
|
|
@@ -29104,28 +29256,33 @@ var Select = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29104
29256
|
isClearable = _c === void 0 ? true : _c,
|
|
29105
29257
|
_d = _a.placeholder,
|
|
29106
29258
|
placeholder = _d === void 0 ? '-- Velg fra listen --' : _d,
|
|
29107
|
-
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "value", "defaultValue", "width", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
29259
|
+
rest = __rest(_a, ["id", "label", "errorMessage", "tip", "required", "readOnly", "options", "isMulti", "value", "defaultValue", "width", "closeMenuOnSelect", "className", "style", "isDisabled", "isClearable", "placeholder"]);
|
|
29108
29260
|
|
|
29109
29261
|
var uniqueId = React.useState(id !== null && id !== void 0 ? id : "select-" + nextUniqueId$2++)[0];
|
|
29262
|
+
var hasLabel = !!label;
|
|
29110
29263
|
var wrapperProps = {
|
|
29111
29264
|
width: width
|
|
29112
29265
|
};
|
|
29113
29266
|
var containerProps = {
|
|
29114
29267
|
errorMessage: errorMessage,
|
|
29115
29268
|
isDisabled: isDisabled,
|
|
29269
|
+
isMulti: isMulti,
|
|
29116
29270
|
readOnly: readOnly,
|
|
29117
|
-
|
|
29271
|
+
hasLabel: hasLabel,
|
|
29118
29272
|
className: className,
|
|
29119
29273
|
style: style
|
|
29120
29274
|
};
|
|
29121
29275
|
|
|
29122
29276
|
var reactSelectProps = __assign({
|
|
29277
|
+
ref: ref,
|
|
29123
29278
|
options: options,
|
|
29124
29279
|
value: value,
|
|
29125
29280
|
defaultValue: defaultValue,
|
|
29126
29281
|
isDisabled: isDisabled || readOnly,
|
|
29127
29282
|
isClearable: isClearable,
|
|
29128
29283
|
placeholder: placeholder,
|
|
29284
|
+
closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
|
|
29285
|
+
isMulti: isMulti,
|
|
29129
29286
|
inputId: uniqueId,
|
|
29130
29287
|
name: uniqueId,
|
|
29131
29288
|
classNamePrefix: prefix,
|
|
@@ -29148,9 +29305,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
29148
29305
|
typographyType: "supportingStyleLabel01"
|
|
29149
29306
|
}, {
|
|
29150
29307
|
children: [label, " ", required && jsxRuntime.jsx(RequiredMarker, {}, void 0)]
|
|
29151
|
-
}), void 0), jsxRuntime.jsx(ReactSelect, __assign({}, reactSelectProps,
|
|
29152
|
-
ref: ref
|
|
29153
|
-
}), void 0)]
|
|
29308
|
+
}), void 0), jsxRuntime.jsx(ReactSelect, __assign({}, reactSelectProps), void 0)]
|
|
29154
29309
|
}), void 0), errorMessage && jsxRuntime.jsx(InputMessage, {
|
|
29155
29310
|
messageType: "error",
|
|
29156
29311
|
message: errorMessage
|