@synerise/ds-select 0.16.26 → 0.16.28

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.16.28](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.16.27...@synerise/ds-select@0.16.28) (2024-11-29)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-select
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.16.27](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.16.26...@synerise/ds-select@0.16.27) (2024-11-28)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-select
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.16.26](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.16.25...@synerise/ds-select@0.16.26) (2024-11-21)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-select
package/dist/Select.js CHANGED
@@ -1,19 +1,11 @@
1
1
  var _excluded = ["label", "description", "errorText", "error", "tooltip", "tooltipConfig", "clearTooltip", "prefixel", "suffixel", "style", "listHeight", "className", "getPopupContainer", "grey", "dropdownClassName", "asFormElement"];
2
-
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
5
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
-
7
4
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
8
-
9
5
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
10
-
11
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
-
13
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
14
-
15
8
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
16
-
17
9
  import React, { Component } from 'react';
18
10
  import { ErrorText, Description } from '@synerise/ds-typography';
19
11
  import '@synerise/ds-core/dist/js/style';
@@ -23,39 +15,33 @@ import Tooltip from '@synerise/ds-tooltip';
23
15
  import { getPopupContainer as defaultGetPopupContainer } from '@synerise/ds-utils';
24
16
  import classNames from 'classnames';
25
17
  import * as S from './Select.styles';
26
-
27
18
  var Select = /*#__PURE__*/function (_Component) {
28
19
  function Select() {
29
20
  return _Component.apply(this, arguments) || this;
30
21
  }
31
-
32
22
  _inheritsLoose(Select, _Component);
33
-
34
23
  var _proto = Select.prototype;
35
-
36
24
  _proto.render = function render() {
37
25
  var _classNames;
38
-
39
26
  var _this$props = this.props,
40
- label = _this$props.label,
41
- description = _this$props.description,
42
- errorText = _this$props.errorText,
43
- error = _this$props.error,
44
- tooltip = _this$props.tooltip,
45
- tooltipConfig = _this$props.tooltipConfig,
46
- clearTooltip = _this$props.clearTooltip,
47
- prefixel = _this$props.prefixel,
48
- suffixel = _this$props.suffixel,
49
- style = _this$props.style,
50
- listHeight = _this$props.listHeight,
51
- className = _this$props.className,
52
- _this$props$getPopupC = _this$props.getPopupContainer,
53
- getPopupContainer = _this$props$getPopupC === void 0 ? defaultGetPopupContainer : _this$props$getPopupC,
54
- grey = _this$props.grey,
55
- dropdownClassName = _this$props.dropdownClassName,
56
- asFormElement = _this$props.asFormElement,
57
- antdProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
58
-
27
+ label = _this$props.label,
28
+ description = _this$props.description,
29
+ errorText = _this$props.errorText,
30
+ error = _this$props.error,
31
+ tooltip = _this$props.tooltip,
32
+ tooltipConfig = _this$props.tooltipConfig,
33
+ clearTooltip = _this$props.clearTooltip,
34
+ prefixel = _this$props.prefixel,
35
+ suffixel = _this$props.suffixel,
36
+ style = _this$props.style,
37
+ listHeight = _this$props.listHeight,
38
+ className = _this$props.className,
39
+ _this$props$getPopupC = _this$props.getPopupContainer,
40
+ getPopupContainer = _this$props$getPopupC === void 0 ? defaultGetPopupContainer : _this$props$getPopupC,
41
+ grey = _this$props.grey,
42
+ dropdownClassName = _this$props.dropdownClassName,
43
+ asFormElement = _this$props.asFormElement,
44
+ antdProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
59
45
  var size = antdProps.size;
60
46
  var hasBottomMargin = asFormElement || Boolean(errorText || description);
61
47
  return /*#__PURE__*/React.createElement(S.SelectContainer, {
@@ -76,7 +62,6 @@ var Select = /*#__PURE__*/function (_Component) {
76
62
  dropdownAlign: {
77
63
  offset: [0, 8]
78
64
  } // STOR-588
79
-
80
65
  }, antdProps, {
81
66
  getPopupContainer: getPopupContainer,
82
67
  listHeight: listHeight,
@@ -100,12 +85,8 @@ var Select = /*#__PURE__*/function (_Component) {
100
85
  disabled: antdProps.disabled
101
86
  }, description)));
102
87
  };
103
-
104
88
  return Select;
105
89
  }(Component);
106
-
107
90
  _defineProperty(Select, "Option", S.AntdSelectOption);
108
-
109
91
  _defineProperty(Select, "OptGroup", S.AntdSelectOptGroup);
110
-
111
92
  export default Select;
@@ -2,30 +2,24 @@ import styled, { css } from 'styled-components';
2
2
  import Select from 'antd/lib/select';
3
3
  import { Label as DSLabel } from '@synerise/ds-input';
4
4
  var OptGroup = Select.OptGroup,
5
- Option = Select.Option;
6
-
5
+ Option = Select.Option;
7
6
  var errorStyle = function errorStyle(props) {
8
7
  return "\n border-color: " + props.theme.palette['red-600'] + ";\n box-shadow: inset 0 0 0 1px " + props.theme.palette['red-600'] + ";\n background: " + props.theme.palette['red-050'] + ";\n";
9
8
  };
10
-
11
9
  var searchIconWithCustomColor = function searchIconWithCustomColor(color) {
12
10
  var colorValueForSvg = color.replace(/#/, '%23');
13
11
  var iconWithColor = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 36 36' >/><path fill='none' d='M0 0h24v24H0z' /><path style='fill: " + colorValueForSvg + ";' d='M10.734 17.234a6.463 6.463 0 004.03-1.41l3.721 3.722a.75.75 0 001.06-1.06l-3.72-3.722a6.494 6.494 0 10-5.09 2.47zm0-11.5a5 5 0 11-5 5 5.006 5.006 0 015-5z'/></svg>";
14
12
  return iconWithColor;
15
13
  };
16
-
17
14
  var withPrefixStyles = function withPrefixStyles() {
18
15
  return "\n border-top-left-radius:0;\n border-bottom-left-radius:0;\n";
19
16
  };
20
-
21
17
  var withSuffixStyles = function withSuffixStyles() {
22
18
  return "\n border-top-right-radius:0;\n border-bottom-right-radius:0;\n";
23
19
  };
24
-
25
20
  var addonStyles = function addonStyles(props) {
26
21
  return "\n display: flex;\n align-items: center;\n background: " + props.theme.palette['grey-050'] + ";\n box-shadow: inset 0 0 0 1px " + props.theme.palette['grey-300'] + ";\n color: " + props.theme.palette['grey-500'] + ";\n font-size:13px;\n line-height: 1.39;\n ";
27
22
  };
28
-
29
23
  export var SelectContainer = styled.div.withConfig({
30
24
  displayName: "Selectstyles__SelectContainer",
31
25
  componentId: "n9lk0v-0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-select",
3
- "version": "0.16.26",
3
+ "version": "0.16.28",
4
4
  "description": "Select UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-icon": "^0.67.0",
38
- "@synerise/ds-input": "^0.24.14",
39
- "@synerise/ds-tooltip": "^0.14.49",
40
- "@synerise/ds-typography": "^0.16.6",
37
+ "@synerise/ds-icon": "^0.68.0",
38
+ "@synerise/ds-input": "^0.24.16",
39
+ "@synerise/ds-tooltip": "^0.14.51",
40
+ "@synerise/ds-typography": "^0.16.8",
41
41
  "@synerise/ds-utils": "^0.31.2",
42
42
  "classnames": "2.3.2"
43
43
  },
@@ -47,5 +47,5 @@
47
47
  "react": ">=16.9.0 <= 17.0.2",
48
48
  "styled-components": "5.0.1"
49
49
  },
50
- "gitHead": "05f083c767e2cec3c2f91c9475aee89852a77d6c"
50
+ "gitHead": "9ebd107163650754a5f55680d62d30812d740084"
51
51
  }