orcs-design-system 2.0.73 → 2.0.76

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.
@@ -63,7 +63,11 @@ var Label = styled("label").withConfig({
63
63
  */
64
64
 
65
65
  var Select = /*#__PURE__*/forwardRef(function (props, ref) {
66
- var customStyles = {
66
+ var _props$updateStyles = props.updateStyles,
67
+ updateStyles = _props$updateStyles === void 0 ? function (s) {
68
+ return s;
69
+ } : _props$updateStyles;
70
+ var customStyles = updateStyles({
67
71
  menu: function menu(provided, state) {
68
72
  return _objectSpread(_objectSpread({}, provided), {}, {
69
73
  opacity: state.isDisabled ? 0.7 : 1,
@@ -110,7 +114,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
110
114
  },
111
115
  valueContainer: function valueContainer(provided) {
112
116
  return _objectSpread(_objectSpread({}, provided), {}, {
113
- padding: props.padding ? props.padding : "2px 8px"
117
+ padding: props.padding ? props.padding : "2px 4px"
114
118
  });
115
119
  },
116
120
  clearIndicator: function clearIndicator(provided, state) {
@@ -143,34 +147,38 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
143
147
  multiValue: function multiValue(provided, state) {
144
148
  return _objectSpread(_objectSpread({}, provided), {}, {
145
149
  opacity: state.isDisabled ? 0.7 : 1,
146
- backgroundColor: props.inverted ? themeGet("colors.primaryDark")(props) : themeGet("colors.primary")(props),
150
+ backgroundColor: "transparent",
147
151
  color: themeGet("colors.white")(props),
148
- borderRadius: themeGet("radii.2")(props),
152
+ alignItems: "center",
153
+ padding: "0 !important",
149
154
  fontSize: themeGet("fontSizes.1")(props),
150
155
  wordWrap: "break-word"
151
156
  });
152
157
  },
153
- multiValueLabel: function multiValueLabel(provided) {
158
+ multiValueLabel: function multiValueLabel(provided, state) {
154
159
  return _objectSpread(_objectSpread({}, provided), {}, {
155
- backgroundColor: props.inverted ? themeGet("colors.primaryDark")(props) : themeGet("colors.primary")(props),
160
+ backgroundColor: themeGet("colors.primary")(props),
156
161
  color: themeGet("colors.white"),
157
- borderRadius: themeGet("radii.2")(props),
158
- padding: themeGet("space.2")(props),
159
- fontSize: themeGet("fontSizes.1")(props),
162
+ padding: state.data.isFixed ? "4px 10px 5px 10px !important" : "4px 8px 5px 10px !important",
163
+ fontSize: "1.3rem",
164
+ fontWeight: "600",
160
165
  wordWrap: "break-word",
161
- whiteSpace: "wrap"
166
+ whiteSpace: "break-spaces",
167
+ borderRadius: state.data.isFixed ? "15px" : "15px 0 0 15px"
162
168
  });
163
169
  },
164
170
  multiValueRemove: function multiValueRemove(provided, state) {
165
171
  return _objectSpread(_objectSpread({}, provided), {}, {
166
- backgroundColor: props.inverted ? themeGet("colors.primaryDark")(props) : themeGet("colors.primary")(props),
172
+ backgroundColor: themeGet("colors.primary")(props),
167
173
  color: themeGet("colors.white")(props),
168
- borderRadius: themeGet("radii.2")(props),
169
- paddingLeft: themeGet("space.0")(props),
170
- paddingRight: themeGet("space.1")(props),
174
+ borderLeft: "solid 1px ".concat(themeGet("colors.primaryDark")(props)),
175
+ padding: "6.5px 6px 6.5px 5px",
171
176
  display: state.data.isFixed ? "none" : provided.display,
177
+ cursor: "pointer",
178
+ borderRadius: "0 15px 15px 0",
179
+ transition: themeGet("transition.transitionDefault")(props),
172
180
  "&:hover": {
173
- backgroundColor: themeGet("colors.primaryDarkest")(props),
181
+ backgroundColor: themeGet("colors.primaryDark")(props),
174
182
  color: themeGet("colors.white")(props)
175
183
  }
176
184
  });
@@ -180,7 +188,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
180
188
  opacity: state.isDisabled ? 0.7 : 1,
181
189
  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
190
  fontSize: themeGet("fontSizes.1")(props),
183
- whiteSpace: "wrap"
191
+ whiteSpace: "break-spaces"
184
192
  });
185
193
  },
186
194
  placeholder: function placeholder(provided, state) {
@@ -190,7 +198,7 @@ var Select = /*#__PURE__*/forwardRef(function (props, ref) {
190
198
  fontSize: themeGet("fontSizes.1")(props)
191
199
  });
192
200
  }
193
- };
201
+ });
194
202
  return /*#__PURE__*/React.createElement(ThemeProvider, {
195
203
  theme: props.theme
196
204
  }, /*#__PURE__*/React.createElement(Wrapper, _extends({
@@ -257,7 +265,10 @@ Select.propTypes = {
257
265
  theme: PropTypes.object,
258
266
 
259
267
  /** Specify if you want react-select createable option */
260
- selectType: PropTypes.oneOf(["default", "createable"])
268
+ selectType: PropTypes.oneOf(["default", "createable"]),
269
+
270
+ /** Specify if you want to overwrite existing customStyles */
271
+ updateStyles: PropTypes.func
261
272
  };
262
273
  Select.defaultProps = {
263
274
  theme: systemtheme,
@@ -380,6 +391,13 @@ Select.__docgenInfo = {
380
391
  },
381
392
  "required": false,
382
393
  "description": "Specifies `onChange` function for the input"
394
+ },
395
+ "updateStyles": {
396
+ "type": {
397
+ "name": "func"
398
+ },
399
+ "required": false,
400
+ "description": "Specify if you want to overwrite existing customStyles"
383
401
  }
384
402
  }
385
403
  };
@@ -13,7 +13,7 @@ var TagWrapper = styled.div.withConfig({
13
13
  var TagValue = styled.button.withConfig({
14
14
  displayName: "Tag__TagValue",
15
15
  componentId: "sc-1dh2aa8-1"
16
- })(["-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;display:flex;align-items:center;flex-wrap:nowrap;font-size:1.3rem;font-weight:600;white-space:nowrap;position:relative;z-index:1;transition:", ";cursor:", ";border-radius:", ";border:solid 1px ", ";padding:", ";background-color:", ";color:", ";", " &:focus{outline:0;z-index:2;box-shadow:", ";}"], themeGet("transition.transitionDefault"), function (props) {
16
+ })(["-moz-appearance:none;-webkit-appearance:none;appearance:none;box-shadow:none;font-family:\"Open Sans\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;display:flex;align-items:center;flex-wrap:nowrap;font-size:1.4rem;font-weight:600;white-space:nowrap;position:relative;z-index:1;transition:", ";cursor:", ";border-radius:", ";border:solid 1px ", ";padding:", ";background-color:", ";color:", ";", " &:focus{outline:0;z-index:2;box-shadow:", ";}"], themeGet("transition.transitionDefault"), function (props) {
17
17
  return props.disabled ? "default" : "pointer";
18
18
  }, function (props) {
19
19
  return props.showEdit || props.showRemove ? "15px 0 0 15px" : "15px";
@@ -59,7 +59,7 @@ var TagRemove = styled(TagValue).withConfig({
59
59
  var TagType = styled.div.withConfig({
60
60
  displayName: "Tag__TagType",
61
61
  componentId: "sc-1dh2aa8-4"
62
- })(["text-transform:uppercase;margin-left:", ";padding:3px;font-size:1.2rem;line-height:1;border-radius:", ";font-size:", ";background-color:", ";color:", ";"], themeGet("space.s"), themeGet("radii.1"), themeGet("fontSizes.0"), function (props) {
62
+ })(["text-transform:uppercase;margin-left:", ";padding:3px;line-height:1;border-radius:", ";font-size:", ";background-color:", ";color:", ";"], themeGet("space.s"), themeGet("radii.1"), themeGet("fontSizes.0"), function (props) {
63
63
  return props.selected ? themeGet("colors.primaryDark") : props.disabled ? themeGet("colors.grey") : themeGet("colors.primaryLightest");
64
64
  }, function (props) {
65
65
  return props.selected ? themeGet("colors.white") : props.disabled ? themeGet("colors.white") : themeGet("colors.primary");
@@ -112,6 +112,8 @@ export default function Tag(_ref) {
112
112
  })) : null));
113
113
  }
114
114
  Tag.propTypes = {
115
+ children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),
116
+
115
117
  /** Adds selected styling to tag */
116
118
  selected: PropTypes.bool,
117
119
 
@@ -206,6 +208,21 @@ Tag.__docgenInfo = {
206
208
  "required": false,
207
209
  "description": "Specifies the design theme"
208
210
  },
211
+ "children": {
212
+ "type": {
213
+ "name": "union",
214
+ "value": [{
215
+ "name": "node"
216
+ }, {
217
+ "name": "arrayOf",
218
+ "value": {
219
+ "name": "node"
220
+ }
221
+ }]
222
+ },
223
+ "required": false,
224
+ "description": ""
225
+ },
209
226
  "onSelect": {
210
227
  "type": {
211
228
  "name": "func"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "2.0.73",
3
+ "version": "2.0.76",
4
4
  "description": "Orchestrated's Design System, aka: ORCS",
5
5
  "keywords": [
6
6
  "design",