@atlaskit/select 16.1.5 → 16.1.7

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
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/select
2
2
 
3
+ ## 16.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c3a92e0b058`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3a92e0b058) - Export placeholder props from figma plugin
8
+
9
+ ## 16.1.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
14
+
3
15
  ## 16.1.5
4
16
 
5
17
  ### Patch Changes
@@ -9,7 +9,7 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
9
9
  var _analyticsNext = require("@atlaskit/analytics-next");
10
10
  var _createSelect = _interopRequireDefault(require("./createSelect"));
11
11
  var packageName = "@atlaskit/select";
12
- var packageVersion = "16.1.5";
12
+ var packageVersion = "16.1.7";
13
13
  var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
14
14
  exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
15
15
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
@@ -20,7 +20,6 @@ var _react2 = require("react");
20
20
  var _radio = _interopRequireDefault(require("@atlaskit/icon/glyph/radio"));
21
21
  var _checkbox = _interopRequireDefault(require("@atlaskit/icon/glyph/checkbox"));
22
22
  var _components = require("@atlaskit/theme/components");
23
- var _constants = require("@atlaskit/theme/constants");
24
23
  var _colors = require("@atlaskit/theme/colors");
25
24
  var _excluded = ["isActive", "isDisabled", "isFocused", "isSelected"],
26
25
  _excluded2 = ["isActive", "isDisabled", "isSelected"],
@@ -42,9 +41,9 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
42
41
  backgroundColor: isFocused ? "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")") : 'transparent',
43
42
  color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
44
43
  display: 'flex ',
45
- paddingBottom: 4,
46
- paddingLeft: "".concat((0, _constants.gridSize)() * 2, "px"),
47
- paddingTop: 4,
44
+ paddingBottom: "var(--ds-space-050, 4px)",
45
+ paddingLeft: "var(--ds-space-200, 16px)",
46
+ paddingTop: "var(--ds-space-050, 4px)",
48
47
  boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(_colors.B400, ")"), ";") : '',
49
48
  ':active': {
50
49
  backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N30, ")")
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.5",
3
+ "version": "16.1.7",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,7 @@ import Select from 'react-select';
2
2
  import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import createSelect from './createSelect';
4
4
  const packageName = "@atlaskit/select";
5
- const packageVersion = "16.1.5";
5
+ const packageVersion = "16.1.7";
6
6
  export const SelectWithoutAnalytics = createSelect(Select);
7
7
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -6,7 +6,6 @@ import { Component } from 'react';
6
6
  import RadioIcon from '@atlaskit/icon/glyph/radio';
7
7
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
8
8
  import { themed } from '@atlaskit/theme/components';
9
- import { gridSize } from '@atlaskit/theme/constants';
10
9
  import { B100, B200, B300, B400, B75, DN200, DN10, DN30, N20A, N0, N100, N20, N30, N70 } from '@atlaskit/theme/colors';
11
10
  const getPrimitiveStyles = props => {
12
11
  const {
@@ -22,9 +21,9 @@ const getPrimitiveStyles = props => {
22
21
  backgroundColor: isFocused ? `var(--ds-background-neutral-subtle-hovered, ${N20})` : 'transparent',
23
22
  color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
24
23
  display: 'flex ',
25
- paddingBottom: 4,
26
- paddingLeft: `${gridSize() * 2}px`,
27
- paddingTop: 4,
24
+ paddingBottom: "var(--ds-space-050, 4px)",
25
+ paddingLeft: "var(--ds-space-200, 16px)",
26
+ paddingTop: "var(--ds-space-050, 4px)",
28
27
  boxShadow: isFocused ? `inset 2px 0px 0px ${`var(--ds-border-focused, ${B400})`};` : '',
29
28
  ':active': {
30
29
  backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${N30})`
@@ -15,5 +15,4 @@ export { default as PopupSelect } from './PopupSelect';
15
15
  * Types not exported on the public API, didn't find usages in sourcegraph
16
16
  *
17
17
  * CreatableSelectProps,
18
- * PlaceholderProps,
19
18
  */
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
1
2
  import { gridSize, fontFamily } from '@atlaskit/theme/constants';
2
3
  import { B100, B400, B50, G400, N0, N20, N200, N30, N300, N40, N500, N70, N800, R400, R75 } from '@atlaskit/theme/colors';
3
4
  const BORDER_WIDTH = 2;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.5",
3
+ "version": "16.1.7",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,7 @@ import Select from 'react-select';
2
2
  import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import createSelect from './createSelect';
4
4
  var packageName = "@atlaskit/select";
5
- var packageVersion = "16.1.5";
5
+ var packageVersion = "16.1.7";
6
6
  export var SelectWithoutAnalytics = createSelect(Select);
7
7
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
8
8
  export default withAnalyticsContext({
@@ -22,7 +22,6 @@ import { Component } from 'react';
22
22
  import RadioIcon from '@atlaskit/icon/glyph/radio';
23
23
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
24
24
  import { themed } from '@atlaskit/theme/components';
25
- import { gridSize } from '@atlaskit/theme/constants';
26
25
  import { B100, B200, B300, B400, B75, DN200, DN10, DN30, N20A, N0, N100, N20, N30, N70 } from '@atlaskit/theme/colors';
27
26
  var getPrimitiveStyles = function getPrimitiveStyles(props) {
28
27
  var cx = props.cx,
@@ -36,9 +35,9 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
36
35
  backgroundColor: isFocused ? "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")") : 'transparent',
37
36
  color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
38
37
  display: 'flex ',
39
- paddingBottom: 4,
40
- paddingLeft: "".concat(gridSize() * 2, "px"),
41
- paddingTop: 4,
38
+ paddingBottom: "var(--ds-space-050, 4px)",
39
+ paddingLeft: "var(--ds-space-200, 16px)",
40
+ paddingTop: "var(--ds-space-050, 4px)",
42
41
  boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(B400, ")"), ";") : '',
43
42
  ':active': {
44
43
  backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(N30, ")")
package/dist/esm/index.js CHANGED
@@ -15,5 +15,4 @@ export { default as PopupSelect } from './PopupSelect';
15
15
  * Types not exported on the public API, didn't find usages in sourcegraph
16
16
  *
17
17
  * CreatableSelectProps,
18
- * PlaceholderProps,
19
18
  */
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
4
5
  import { gridSize, fontFamily } from '@atlaskit/theme/constants';
5
6
  import { B100, B400, B50, G400, N0, N20, N200, N30, N300, N40, N500, N70, N800, R400, R75 } from '@atlaskit/theme/colors';
6
7
  var BORDER_WIDTH = 2;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.5",
3
+ "version": "16.1.7",
4
4
  "sideEffects": false
5
5
  }
@@ -11,10 +11,9 @@ export { default as CountrySelect } from './CountrySelect';
11
11
  export { default as RadioSelect } from './RadioSelect';
12
12
  export { default as PopupSelect } from './PopupSelect';
13
13
  export type { PopupSelectProps, ModifierList } from './PopupSelect';
14
- export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, } from './types';
14
+ export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorSeparatorProps, LoadingIndicatorProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, PlaceholderProps, } from './types';
15
15
  /**
16
16
  * Types not exported on the public API, didn't find usages in sourcegraph
17
17
  *
18
18
  * CreatableSelectProps,
19
- * PlaceholderProps,
20
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/select",
3
- "version": "16.1.5",
3
+ "version": "16.1.7",
4
4
  "description": "Select allows users to make a single selection or multiple selections from a list of options.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -15,7 +15,6 @@
15
15
  "sideEffects": false,
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
- "disableProductCI": true,
19
18
  "team": "Design System Team",
20
19
  "releaseModel": "scheduled",
21
20
  "website": {
@@ -33,8 +32,8 @@
33
32
  "dependencies": {
34
33
  "@atlaskit/analytics-next": "^9.0.0",
35
34
  "@atlaskit/icon": "^21.11.0",
36
- "@atlaskit/spinner": "^15.3.0",
37
- "@atlaskit/theme": "^12.2.0",
35
+ "@atlaskit/spinner": "^15.4.0",
36
+ "@atlaskit/theme": "^12.3.0",
38
37
  "@atlaskit/tokens": "^1.2.0",
39
38
  "@atlaskit/visually-hidden": "^1.1.0",
40
39
  "@babel/runtime": "^7.0.0",
@@ -65,7 +64,7 @@
65
64
  "@atlaskit/radio": "^5.4.0",
66
65
  "@atlaskit/section-message": "^6.3.0",
67
66
  "@atlaskit/ssr": "*",
68
- "@atlaskit/tooltip": "^17.6.0",
67
+ "@atlaskit/tooltip": "^17.7.0",
69
68
  "@atlaskit/visual-regression": "*",
70
69
  "@atlaskit/webdriver-runner": "*",
71
70
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
package/report.api.md CHANGED
@@ -42,6 +42,7 @@ import { MenuListProps } from 'react-select';
42
42
  import { MenuProps as MenuProps_2 } from 'react-select';
43
43
  import { mergeStyles } from 'react-select';
44
44
  import { MultiValueProps } from 'react-select';
45
+ import { MultiValueRemoveProps } from 'react-select';
45
46
  import { NoticeProps } from 'react-select';
46
47
  import { OnChangeValue } from 'react-select';
47
48
  import { OptionProps as OptionProps_2 } from 'react-select';
@@ -655,6 +656,8 @@ export type ModifierList =
655
656
 
656
657
  export { MultiValueProps };
657
658
 
659
+ export { MultiValueRemoveProps };
660
+
658
661
  export { NoticeProps };
659
662
 
660
663
  // @public (undocumented)