orcs-design-system 2.0.73 → 2.0.74
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/es/components/Select/index.js +19 -15
- package/package.json +1 -1
|
@@ -110,7 +110,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
110
110
|
},
|
|
111
111
|
valueContainer: function valueContainer(provided) {
|
|
112
112
|
return _objectSpread(_objectSpread({}, provided), {}, {
|
|
113
|
-
padding: props.padding ? props.padding : "2px
|
|
113
|
+
padding: props.padding ? props.padding : "2px 4px"
|
|
114
114
|
});
|
|
115
115
|
},
|
|
116
116
|
clearIndicator: function clearIndicator(provided, state) {
|
|
@@ -143,34 +143,38 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
143
143
|
multiValue: function multiValue(provided, state) {
|
|
144
144
|
return _objectSpread(_objectSpread({}, provided), {}, {
|
|
145
145
|
opacity: state.isDisabled ? 0.7 : 1,
|
|
146
|
-
backgroundColor:
|
|
146
|
+
backgroundColor: "transparent",
|
|
147
147
|
color: themeGet("colors.white")(props),
|
|
148
|
-
|
|
148
|
+
alignItems: "center",
|
|
149
|
+
padding: "0 !important",
|
|
149
150
|
fontSize: themeGet("fontSizes.1")(props),
|
|
150
151
|
wordWrap: "break-word"
|
|
151
152
|
});
|
|
152
153
|
},
|
|
153
|
-
multiValueLabel: function multiValueLabel(provided) {
|
|
154
|
+
multiValueLabel: function multiValueLabel(provided, state) {
|
|
154
155
|
return _objectSpread(_objectSpread({}, provided), {}, {
|
|
155
|
-
backgroundColor:
|
|
156
|
+
backgroundColor: themeGet("colors.primary")(props),
|
|
156
157
|
color: themeGet("colors.white"),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
padding: state.data.isFixed ? "4px 10px 5px 10px !important" : "4px 8px 5px 10px !important",
|
|
159
|
+
fontSize: "1.3rem",
|
|
160
|
+
fontWeight: "600",
|
|
160
161
|
wordWrap: "break-word",
|
|
161
|
-
whiteSpace: "
|
|
162
|
+
whiteSpace: "break-spaces",
|
|
163
|
+
borderRadius: state.data.isFixed ? "15px" : "15px 0 0 15px"
|
|
162
164
|
});
|
|
163
165
|
},
|
|
164
166
|
multiValueRemove: function multiValueRemove(provided, state) {
|
|
165
167
|
return _objectSpread(_objectSpread({}, provided), {}, {
|
|
166
|
-
backgroundColor:
|
|
168
|
+
backgroundColor: themeGet("colors.primary")(props),
|
|
167
169
|
color: themeGet("colors.white")(props),
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
paddingRight: themeGet("space.1")(props),
|
|
170
|
+
borderLeft: "solid 1px ".concat(themeGet("colors.primaryDark")(props)),
|
|
171
|
+
padding: "6.5px 6px 6.5px 5px",
|
|
171
172
|
display: state.data.isFixed ? "none" : provided.display,
|
|
173
|
+
cursor: "pointer",
|
|
174
|
+
borderRadius: "0 15px 15px 0",
|
|
175
|
+
transition: themeGet("transition.transitionDefault")(props),
|
|
172
176
|
"&:hover": {
|
|
173
|
-
backgroundColor: themeGet("colors.
|
|
177
|
+
backgroundColor: themeGet("colors.primaryDark")(props),
|
|
174
178
|
color: themeGet("colors.white")(props)
|
|
175
179
|
}
|
|
176
180
|
});
|
|
@@ -180,7 +184,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
180
184
|
opacity: state.isDisabled ? 0.7 : 1,
|
|
181
185
|
backgroundColor: !state.isFocused && !props.inverted ? themeGet("colors.white")(props) : state.isFocused && !props.inverted ? themeGet("colors.primaryLightest")(props) : !state.isFocused && props.inverted ? themeGet("colors.greyDarker")(props) : themeGet("colors.primaryDark")(props),
|
|
182
186
|
fontSize: themeGet("fontSizes.1")(props),
|
|
183
|
-
whiteSpace: "
|
|
187
|
+
whiteSpace: "break-spaces"
|
|
184
188
|
});
|
|
185
189
|
},
|
|
186
190
|
placeholder: function placeholder(provided, state) {
|