@alfalab/core-components-picker-button 7.4.3 → 7.5.0

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,23 @@
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
+ # [7.5.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-picker-button@7.4.3...@alfalab/core-components-picker-button@7.5.0) (2022-03-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **picker-button:** fixed type of picker-button size prop ([#1006](https://github.com/alfa-laboratory/core-components/issues/1006)) ([38b56c1](https://github.com/alfa-laboratory/core-components/commit/38b56c11d45410a258e18d411aa0ce12b8a6c7e4)), closes [#986](https://github.com/alfa-laboratory/core-components/issues/986)
12
+ * changed dropdown component's box shadow styles ([#1010](https://github.com/alfa-laboratory/core-components/issues/1010)) ([2f997f5](https://github.com/alfa-laboratory/core-components/commit/2f997f5722c89b38a8064924b73c0a8046025aea))
13
+
14
+
15
+ ### Features
16
+
17
+ * Исправить импорты в сторях. ([#998](https://github.com/alfa-laboratory/core-components/issues/998)) ([e6a654a](https://github.com/alfa-laboratory/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
18
+
19
+
20
+
21
+
22
+
6
23
  ## [7.4.3](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-picker-button@7.4.2...@alfalab/core-components-picker-button@7.4.3) (2022-02-17)
7
24
 
8
25
 
@@ -50,7 +50,7 @@ function __rest(s, e) {
50
50
  return t;
51
51
  }
52
52
 
53
- var styles = {"iconContainer":"picker-button__iconContainer_gcut4","open":"picker-button__open_gcut4"};
53
+ var styles = {"iconContainer":"picker-button__iconContainer_p0806","open":"picker-button__open_p0806"};
54
54
  require('./field/index.css')
55
55
 
56
56
  var Field = function (_a) {
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ButtonProps } from "@alfalab/core-components-button";
4
4
  import { BaseSelectProps } from "@alfalab/core-components-select";
5
- type PickerButtonSize = 'xs' | 's' | 'm';
5
+ type PickerButtonSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
6
6
  type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'fieldProps' | 'hint' | 'allowUnselect'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
7
  /**
8
8
  * Размер кнопки
@@ -13,6 +13,6 @@ declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps
13
13
  /**
14
14
  * Размер кнопки
15
15
  */
16
- size?: "s" | "xs" | "m" | undefined;
16
+ size?: "s" | "xxs" | "xs" | "m" | "l" | "xl" | undefined;
17
17
  } & React.RefAttributes<HTMLInputElement>>;
18
18
  export { PickerButtonSize, PickerButtonProps, PickerButton };
package/dist/Component.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var field_Component = require('./Component-52c236b9.js');
5
+ var field_Component = require('./Component-4c462f50.js');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsSelect = require('@alfalab/core-components-select');
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
17
17
 
18
- var styles = {"container":"picker-button__container_1b5wz","optionsPopover":"picker-button__optionsPopover_1b5wz","sideGap":"picker-button__sideGap_1b5wz","optionsListContainer":"picker-button__optionsListContainer_1b5wz"};
18
+ var styles = {"container":"picker-button__container_12ijs","optionsPopover":"picker-button__optionsPopover_12ijs","sideGap":"picker-button__sideGap_12ijs","optionsListContainer":"picker-button__optionsListContainer_12ijs"};
19
19
  require('./index.css')
20
20
 
21
21
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ButtonProps } from "@alfalab/core-components-button";
4
4
  import { BaseSelectProps } from "@alfalab/core-components-select";
5
- type PickerButtonSize = 'xs' | 's' | 'm';
5
+ type PickerButtonSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
6
6
  type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'fieldProps' | 'hint' | 'allowUnselect'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
7
  /**
8
8
  * Размер кнопки
@@ -13,6 +13,6 @@ declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps
13
13
  /**
14
14
  * Размер кнопки
15
15
  */
16
- size?: "s" | "xs" | "m" | undefined;
16
+ size?: "s" | "xxs" | "xs" | "m" | "l" | "xl" | undefined;
17
17
  } & React.RefAttributes<HTMLInputElement>>;
18
18
  export { PickerButtonSize, PickerButtonProps, PickerButton };
@@ -43,7 +43,7 @@ function __rest(s, e) {
43
43
  return t;
44
44
  }
45
45
 
46
- var styles = {"iconContainer":"picker-button__iconContainer_gcut4","open":"picker-button__open_gcut4"};
46
+ var styles = {"iconContainer":"picker-button__iconContainer_p0806","open":"picker-button__open_p0806"};
47
47
  require('./field/index.css')
48
48
 
49
49
  var Field = function (_a) {
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ButtonProps } from "@alfalab/core-components-button";
4
4
  import { BaseSelectProps } from "@alfalab/core-components-select";
5
- type PickerButtonSize = 'xs' | 's' | 'm';
5
+ type PickerButtonSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
6
6
  type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'fieldProps' | 'hint' | 'allowUnselect'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
7
  /**
8
8
  * Размер кнопки
@@ -13,6 +13,6 @@ declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps
13
13
  /**
14
14
  * Размер кнопки
15
15
  */
16
- size?: "s" | "xs" | "m" | undefined;
16
+ size?: "s" | "xxs" | "xs" | "m" | "l" | "xl" | undefined;
17
17
  } & React.RefAttributes<HTMLInputElement>>;
18
18
  export { PickerButtonSize, PickerButtonProps, PickerButton };
@@ -1,4 +1,4 @@
1
- import { _ as __rest, a as __assign, F as Field } from './Component-d3b8be4d.js';
1
+ import { _ as __rest, a as __assign, F as Field } from './Component-d9d92ac3.js';
2
2
  import React, { forwardRef } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { BaseSelect, OptionsList, Optgroup, Option } from '@alfalab/core-components-select/dist/esm';
@@ -6,7 +6,7 @@ import '@alfalab/core-components-button/dist/esm';
6
6
  import '@alfalab/icons-classic/ArrowDownMIcon';
7
7
  import '@alfalab/icons-classic/ArrowDownSIcon';
8
8
 
9
- var styles = {"container":"picker-button__container_1b5wz","optionsPopover":"picker-button__optionsPopover_1b5wz","sideGap":"picker-button__sideGap_1b5wz","optionsListContainer":"picker-button__optionsListContainer_1b5wz"};
9
+ var styles = {"container":"picker-button__container_12ijs","optionsPopover":"picker-button__optionsPopover_12ijs","sideGap":"picker-button__sideGap_12ijs","optionsListContainer":"picker-button__optionsListContainer_12ijs"};
10
10
  require('./index.css')
11
11
 
12
12
  var SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -1,4 +1,4 @@
1
- export { F as Field } from '../Component-d3b8be4d.js';
1
+ export { F as Field } from '../Component-d9d92ac3.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-button/dist/esm';
@@ -1,4 +1,4 @@
1
- /* hash: 730bk */
1
+ /* hash: h1l5h */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --arrow-transform: rotate(180deg);
12
12
  }
13
- .picker-button__iconContainer_gcut4 {
13
+ .picker-button__iconContainer_p0806 {
14
14
  display: flex;
15
15
  transition: transform 0.15s ease-in-out;
16
16
  }
17
- .picker-button__open_gcut4 {
17
+ .picker-button__open_p0806 {
18
18
  transform: var(--arrow-transform);
19
19
  }
@@ -1 +1 @@
1
- export * from "../Component-d3b8be4d";
1
+ export * from "../Component-d9d92ac3";
@@ -1,4 +1,4 @@
1
- export { F as Field } from '../Component-d3b8be4d.js';
1
+ export { F as Field } from '../Component-d9d92ac3.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-button/dist/esm';
@@ -1,4 +1,4 @@
1
- /* hash: 11tf9 */
1
+ /* hash: 1qe6w */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -13,15 +13,15 @@
13
13
  :root {
14
14
  --border-radius-s: 4px;
15
15
  }
16
- .picker-button__container_1b5wz {
16
+ .picker-button__container_12ijs {
17
17
  min-width: auto;
18
18
  }
19
- .picker-button__optionsPopover_1b5wz {
19
+ .picker-button__optionsPopover_12ijs {
20
20
  padding: var(--gap-xs) 0
21
21
  }
22
- .picker-button__optionsPopover_1b5wz.picker-button__sideGap_1b5wz {
22
+ .picker-button__optionsPopover_12ijs.picker-button__sideGap_12ijs {
23
23
  padding: 0 var(--gap-xs);
24
24
  }
25
- .picker-button__optionsListContainer_1b5wz {
25
+ .picker-button__optionsListContainer_12ijs {
26
26
  border-radius: var(--border-radius-s);
27
27
  }
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './Component-d3b8be4d.js';
1
+ import './Component-d9d92ac3.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import '@alfalab/core-components-select/dist/esm';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var field_Component = require('../Component-52c236b9.js');
5
+ var field_Component = require('../Component-4c462f50.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-button');
@@ -1,4 +1,4 @@
1
- /* hash: 730bk */
1
+ /* hash: h1l5h */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --arrow-transform: rotate(180deg);
12
12
  }
13
- .picker-button__iconContainer_gcut4 {
13
+ .picker-button__iconContainer_p0806 {
14
14
  display: flex;
15
15
  transition: transform 0.15s ease-in-out;
16
16
  }
17
- .picker-button__open_gcut4 {
17
+ .picker-button__open_p0806 {
18
18
  transform: var(--arrow-transform);
19
19
  }
@@ -1 +1 @@
1
- export * from "../Component-52c236b9";
1
+ export * from "../Component-4c462f50";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var field_Component = require('../Component-52c236b9.js');
5
+ var field_Component = require('../Component-4c462f50.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-button');
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 11tf9 */
1
+ /* hash: 1qe6w */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -13,15 +13,15 @@
13
13
  :root {
14
14
  --border-radius-s: 4px;
15
15
  }
16
- .picker-button__container_1b5wz {
16
+ .picker-button__container_12ijs {
17
17
  min-width: auto;
18
18
  }
19
- .picker-button__optionsPopover_1b5wz {
19
+ .picker-button__optionsPopover_12ijs {
20
20
  padding: var(--gap-xs) 0
21
21
  }
22
- .picker-button__optionsPopover_1b5wz.picker-button__sideGap_1b5wz {
22
+ .picker-button__optionsPopover_12ijs.picker-button__sideGap_12ijs {
23
23
  padding: 0 var(--gap-xs);
24
24
  }
25
- .picker-button__optionsListContainer_1b5wz {
25
+ .picker-button__optionsListContainer_12ijs {
26
26
  border-radius: var(--border-radius-s);
27
27
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./Component-52c236b9.js');
5
+ require('./Component-4c462f50.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-select');
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { ButtonProps } from "@alfalab/core-components-button";
4
4
  import { BaseSelectProps } from "@alfalab/core-components-select";
5
- type PickerButtonSize = 'xs' | 's' | 'm';
5
+ type PickerButtonSize = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl';
6
6
  type PickerButtonProps = Omit<BaseSelectProps, 'Field' | 'placeholder' | 'Arrow' | 'autocomplete' | 'size' | 'onFocus' | 'selected' | 'closeOnSelect' | 'multiple' | 'fieldProps' | 'hint' | 'allowUnselect'> & Pick<ButtonProps, 'view' | 'loading' | 'leftAddons' | 'rightAddons'> & {
7
7
  /**
8
8
  * Размер кнопки
@@ -13,6 +13,6 @@ declare const PickerButton: React.ForwardRefExoticComponent<Pick<BaseSelectProps
13
13
  /**
14
14
  * Размер кнопки
15
15
  */
16
- size?: "s" | "xs" | "m" | undefined;
16
+ size?: "s" | "xxs" | "xs" | "m" | "l" | "xl" | undefined;
17
17
  } & React.RefAttributes<HTMLInputElement>>;
18
18
  export { PickerButtonSize, PickerButtonProps, PickerButton };
@@ -6,7 +6,7 @@ import '@alfalab/icons-classic/ArrowDownMIcon';
6
6
  import '@alfalab/icons-classic/ArrowDownSIcon';
7
7
  import { Field } from './field/Component.js';
8
8
 
9
- var styles = {"container":"picker-button__container_1b5wz","optionsPopover":"picker-button__optionsPopover_1b5wz","sideGap":"picker-button__sideGap_1b5wz","optionsListContainer":"picker-button__optionsListContainer_1b5wz"};
9
+ var styles = {"container":"picker-button__container_12ijs","optionsPopover":"picker-button__optionsPopover_12ijs","sideGap":"picker-button__sideGap_12ijs","optionsListContainer":"picker-button__optionsListContainer_12ijs"};
10
10
  require('./index.css')
11
11
 
12
12
  const SIDE_POSITIONS = ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end'];
@@ -4,7 +4,7 @@ import { Button } from '@alfalab/core-components-button/dist/modern';
4
4
  import { ArrowDownMIcon } from '@alfalab/icons-classic/ArrowDownMIcon';
5
5
  import { ArrowDownSIcon } from '@alfalab/icons-classic/ArrowDownSIcon';
6
6
 
7
- var styles = {"iconContainer":"picker-button__iconContainer_gcut4","open":"picker-button__open_gcut4"};
7
+ var styles = {"iconContainer":"picker-button__iconContainer_p0806","open":"picker-button__open_p0806"};
8
8
  require('./index.css')
9
9
 
10
10
  const Field = ({ buttonSize = 'm', view, label, open, multiple, rightAddons, Arrow, innerProps, className, selected, selectedMultiple, valueRenderer, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 730bk */
1
+ /* hash: h1l5h */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,10 +10,10 @@
10
10
  :root {
11
11
  --arrow-transform: rotate(180deg);
12
12
  }
13
- .picker-button__iconContainer_gcut4 {
13
+ .picker-button__iconContainer_p0806 {
14
14
  display: flex;
15
15
  transition: transform 0.15s ease-in-out;
16
16
  }
17
- .picker-button__open_gcut4 {
17
+ .picker-button__open_p0806 {
18
18
  transform: var(--arrow-transform);
19
19
  }
@@ -1,4 +1,4 @@
1
- /* hash: 11tf9 */
1
+ /* hash: 1qe6w */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -13,15 +13,15 @@
13
13
  :root {
14
14
  --border-radius-s: 4px;
15
15
  }
16
- .picker-button__container_1b5wz {
16
+ .picker-button__container_12ijs {
17
17
  min-width: auto;
18
18
  }
19
- .picker-button__optionsPopover_1b5wz {
19
+ .picker-button__optionsPopover_12ijs {
20
20
  padding: var(--gap-xs) 0
21
21
  }
22
- .picker-button__optionsPopover_1b5wz.picker-button__sideGap_1b5wz {
22
+ .picker-button__optionsPopover_12ijs.picker-button__sideGap_12ijs {
23
23
  padding: 0 var(--gap-xs);
24
24
  }
25
- .picker-button__optionsListContainer_1b5wz {
25
+ .picker-button__optionsListContainer_12ijs {
26
26
  border-radius: var(--border-radius-s);
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-picker-button",
3
- "version": "7.4.3",
3
+ "version": "7.5.0",
4
4
  "description": "Picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -20,10 +20,10 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@alfalab/core-components-button": "^5.1.1",
23
- "@alfalab/core-components-select": "^10.4.5",
23
+ "@alfalab/core-components-select": "^10.5.0",
24
24
  "@alfalab/icons-classic": "^1.76.0",
25
25
  "@alfalab/icons-glyph": "^2.14.0",
26
26
  "classnames": "^2.2.6"
27
27
  },
28
- "gitHead": "45ff10d1efc81a4a1afb82c6b6eca1b428c7c459"
28
+ "gitHead": "ddf4fab6035139cf412e0acb7174ef388f23e4f2"
29
29
  }