@alfalab/core-components-picker-button 7.6.3 → 7.6.6

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +109 -101
  2. package/dist/Component.d.ts +1 -1
  3. package/dist/Component.js +2 -2
  4. package/dist/cssm/Component.d.ts +1 -1
  5. package/dist/cssm/field/Component.d.ts +1 -1
  6. package/dist/cssm/option/Component.d.ts +2 -2
  7. package/dist/cssm/{typings-a22d6eaf.d.ts → typings-f60445d7.d.ts} +28 -0
  8. package/dist/esm/Component.d.ts +1 -1
  9. package/dist/esm/Component.js +2 -2
  10. package/dist/esm/field/Component.d.ts +1 -1
  11. package/dist/esm/field/Component.js +2 -2
  12. package/dist/esm/field/index.css +3 -3
  13. package/dist/esm/field/index.js +1 -1
  14. package/dist/esm/index.css +6 -6
  15. package/dist/esm/index.js +1 -1
  16. package/dist/esm/option/Component.d.ts +2 -2
  17. package/dist/esm/option/Component.js +2 -2
  18. package/dist/esm/option/index.css +4 -4
  19. package/dist/esm/option/index.js +1 -1
  20. package/dist/esm/{tslib.es6-3270d97c.d.ts → tslib.es6-51a17eb0.d.ts} +0 -0
  21. package/dist/esm/{tslib.es6-3270d97c.js → tslib.es6-51a17eb0.js} +0 -0
  22. package/dist/{modern/typings-a22d6eaf.d.ts → esm/typings-f60445d7.d.ts} +28 -0
  23. package/dist/field/Component.d.ts +1 -1
  24. package/dist/field/Component.js +2 -2
  25. package/dist/field/index.css +3 -3
  26. package/dist/field/index.js +1 -1
  27. package/dist/index.css +6 -6
  28. package/dist/index.js +1 -1
  29. package/dist/modern/Component.d.ts +1 -1
  30. package/dist/modern/Component.js +1 -1
  31. package/dist/modern/field/Component.d.ts +1 -1
  32. package/dist/modern/field/Component.js +1 -1
  33. package/dist/modern/field/index.css +3 -3
  34. package/dist/modern/index.css +6 -6
  35. package/dist/modern/option/Component.d.ts +2 -2
  36. package/dist/modern/option/Component.js +1 -1
  37. package/dist/modern/option/index.css +4 -4
  38. package/dist/{typings-a22d6eaf.d.ts → modern/typings-f60445d7.d.ts} +28 -0
  39. package/dist/option/Component.d.ts +2 -2
  40. package/dist/option/Component.js +2 -2
  41. package/dist/option/index.css +4 -4
  42. package/dist/option/index.js +1 -1
  43. package/dist/{tslib.es6-b66521e9.d.ts → tslib.es6-65244978.d.ts} +0 -0
  44. package/dist/{tslib.es6-b66521e9.js → tslib.es6-65244978.js} +0 -0
  45. package/dist/{esm/typings-a22d6eaf.d.ts → typings-f60445d7.d.ts} +28 -0
  46. package/package.json +5 -5
@@ -426,6 +426,10 @@ type BaseSelectProps = {
426
426
  * Дополнительный класс для пункта меню
427
427
  */
428
428
  optionClassName?: string;
429
+ /**
430
+ * Дополнительный класс для компонента группы пунктов
431
+ */
432
+ optionGroupClassName?: string;
429
433
  /**
430
434
  * Дополнительный класс для поповера
431
435
  */
@@ -703,6 +707,10 @@ type OptionsListProps = {
703
707
  * Дополнительный класс
704
708
  */
705
709
  className?: string;
710
+ /**
711
+ * Дополнительный класс для компонента группы пунктов
712
+ */
713
+ optionGroupClassName?: string;
706
714
  /**
707
715
  * Размер компонента
708
716
  */
@@ -775,8 +783,24 @@ type OptionsListProps = {
775
783
  * Дополнительные пропсы для Input'a, находящегося внутри кастомного OptionsList
776
784
  */
777
785
  inputProps?: InputProps;
786
+ /**
787
+ * Нужно ли показывать футер
788
+ */
789
+ showFooter?: boolean;
790
+ /**
791
+ * Обработчик подтверждения изменений
792
+ */
793
+ onApply?: () => void;
794
+ /**
795
+ * Обработчик отмены изменений
796
+ */
797
+ onClear?: () => void;
778
798
  };
779
799
  type OptgroupProps = {
800
+ /**
801
+ * Дополнительный класс для компонента группы пунктов
802
+ */
803
+ className?: string;
780
804
  /**
781
805
  * Размер компонента
782
806
  */
@@ -863,5 +887,9 @@ type CheckmarkProps = {
863
887
  * Расположение отметки
864
888
  */
865
889
  position?: 'before' | 'after';
890
+ /**
891
+ * Иконка выбранного пункта
892
+ */
893
+ icon?: React.FC<React.SVGProps<SVGSVGElement>>;
866
894
  };
867
895
  export { Position, PopoverProps, Popover, InputProps, Input, stackingOrder, StackingContext, StackProps, Stack, PortalProps, Portal, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, FormControlProps, FormControl, OptionShape, GroupShape, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { FC, SVGProps } from 'react';
3
- import { OptionShape } from "../typings-a22d6eaf";
4
- import { OptionProps as BaseOptionProps } from "../typings-a22d6eaf";
3
+ import { OptionShape } from "../typings-f60445d7";
4
+ import { OptionProps as BaseOptionProps } from "../typings-f60445d7";
5
5
  type OptionProps = Omit<BaseOptionProps, 'option'> & {
6
6
  option: OptionShape & {
7
7
  icon?: FC<SVGProps<SVGSVGElement>>;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib_es6 = require('../tslib.es6-b66521e9.js');
5
+ var tslib_es6 = require('../tslib.es6-65244978.js');
6
6
  var React = require('react');
7
7
  var coreComponentsSelect = require('@alfalab/core-components-select');
8
8
 
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
12
12
 
13
- var styles = {"container":"picker-button__container_otj7u","icon":"picker-button__icon_otj7u","content":"picker-button__content_otj7u"};
13
+ var styles = {"container":"picker-button__container_1ermt","icon":"picker-button__icon_1ermt","content":"picker-button__content_1ermt"};
14
14
  require('./index.css')
15
15
 
16
16
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1hd9j */
1
+ /* hash: 3uid1 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,15 +10,15 @@
10
10
  :root {
11
11
  --gap-s: 12px;
12
12
  }
13
- .picker-button__container_otj7u {
13
+ .picker-button__container_1ermt {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  }
17
- .picker-button__icon_otj7u {
17
+ .picker-button__icon_1ermt {
18
18
  display: flex;
19
19
  margin-right: var(--gap-s);
20
20
  }
21
- .picker-button__content_otj7u {
21
+ .picker-button__content_1ermt {
22
22
  overflow: hidden;
23
23
  flex: 1;
24
24
  text-overflow: ellipsis;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../tslib.es6-b66521e9.js');
5
+ require('../tslib.es6-65244978.js');
6
6
  require('react');
7
7
  require('@alfalab/core-components-select');
8
8
  var option_Component = require('./Component.js');
@@ -426,6 +426,10 @@ type BaseSelectProps = {
426
426
  * Дополнительный класс для пункта меню
427
427
  */
428
428
  optionClassName?: string;
429
+ /**
430
+ * Дополнительный класс для компонента группы пунктов
431
+ */
432
+ optionGroupClassName?: string;
429
433
  /**
430
434
  * Дополнительный класс для поповера
431
435
  */
@@ -703,6 +707,10 @@ type OptionsListProps = {
703
707
  * Дополнительный класс
704
708
  */
705
709
  className?: string;
710
+ /**
711
+ * Дополнительный класс для компонента группы пунктов
712
+ */
713
+ optionGroupClassName?: string;
706
714
  /**
707
715
  * Размер компонента
708
716
  */
@@ -775,8 +783,24 @@ type OptionsListProps = {
775
783
  * Дополнительные пропсы для Input'a, находящегося внутри кастомного OptionsList
776
784
  */
777
785
  inputProps?: InputProps;
786
+ /**
787
+ * Нужно ли показывать футер
788
+ */
789
+ showFooter?: boolean;
790
+ /**
791
+ * Обработчик подтверждения изменений
792
+ */
793
+ onApply?: () => void;
794
+ /**
795
+ * Обработчик отмены изменений
796
+ */
797
+ onClear?: () => void;
778
798
  };
779
799
  type OptgroupProps = {
800
+ /**
801
+ * Дополнительный класс для компонента группы пунктов
802
+ */
803
+ className?: string;
780
804
  /**
781
805
  * Размер компонента
782
806
  */
@@ -863,5 +887,9 @@ type CheckmarkProps = {
863
887
  * Расположение отметки
864
888
  */
865
889
  position?: 'before' | 'after';
890
+ /**
891
+ * Иконка выбранного пункта
892
+ */
893
+ icon?: React.FC<React.SVGProps<SVGSVGElement>>;
866
894
  };
867
895
  export { Position, PopoverProps, Popover, InputProps, Input, stackingOrder, StackingContext, StackProps, Stack, PortalProps, Portal, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, FormControlProps, FormControl, OptionShape, GroupShape, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-picker-button",
3
- "version": "7.6.3",
3
+ "version": "7.6.6",
4
4
  "description": "Picker button component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -19,11 +19,11 @@
19
19
  "react-dom": "^16.9.0 || ^17.0.1"
20
20
  },
21
21
  "dependencies": {
22
- "@alfalab/core-components-button": "^5.1.1",
23
- "@alfalab/core-components-select": "^10.6.3",
22
+ "@alfalab/core-components-button": "^5.1.3",
23
+ "@alfalab/core-components-select": "^10.6.6",
24
24
  "@alfalab/icons-classic": "^1.76.0",
25
25
  "@alfalab/icons-glyph": "^2.16.0",
26
- "classnames": "^2.2.6"
26
+ "classnames": "2.2.6"
27
27
  },
28
- "gitHead": "72b4794c38921aa1b04e2fae5f2c178095621968"
28
+ "gitHead": "8d998af881e79e8b524179aa50cdb117c1380c74"
29
29
  }