@alfalab/core-components-picker-button 7.6.4 → 7.6.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 +102 -102
- package/dist/Component.d.ts +1 -1
- package/dist/Component.js +2 -2
- package/dist/cssm/Component.d.ts +1 -1
- package/dist/cssm/field/Component.d.ts +1 -1
- package/dist/cssm/option/Component.d.ts +2 -2
- package/dist/cssm/{typings-a22d6eaf.d.ts → typings-f60445d7.d.ts} +28 -0
- package/dist/esm/Component.d.ts +1 -1
- package/dist/esm/Component.js +2 -2
- package/dist/esm/field/Component.d.ts +1 -1
- package/dist/esm/field/Component.js +2 -2
- package/dist/esm/field/index.css +3 -3
- package/dist/esm/field/index.js +1 -1
- package/dist/esm/index.css +6 -6
- package/dist/esm/index.js +1 -1
- package/dist/esm/option/Component.d.ts +2 -2
- package/dist/esm/option/Component.js +2 -2
- package/dist/esm/option/index.css +4 -4
- package/dist/esm/option/index.js +1 -1
- package/dist/esm/{tslib.es6-d0b4b527.d.ts → tslib.es6-c34a47bd.d.ts} +0 -0
- package/dist/esm/{tslib.es6-d0b4b527.js → tslib.es6-c34a47bd.js} +0 -0
- package/dist/{modern/typings-a22d6eaf.d.ts → esm/typings-f60445d7.d.ts} +28 -0
- package/dist/field/Component.d.ts +1 -1
- package/dist/field/Component.js +2 -2
- package/dist/field/index.css +3 -3
- package/dist/field/index.js +1 -1
- package/dist/index.css +6 -6
- package/dist/index.js +1 -1
- package/dist/modern/Component.d.ts +1 -1
- package/dist/modern/Component.js +1 -1
- package/dist/modern/field/Component.d.ts +1 -1
- package/dist/modern/field/Component.js +1 -1
- package/dist/modern/field/index.css +3 -3
- package/dist/modern/index.css +6 -6
- package/dist/modern/option/Component.d.ts +2 -2
- package/dist/modern/option/Component.js +1 -1
- package/dist/modern/option/index.css +4 -4
- package/dist/{typings-a22d6eaf.d.ts → modern/typings-f60445d7.d.ts} +28 -0
- package/dist/option/Component.d.ts +2 -2
- package/dist/option/Component.js +2 -2
- package/dist/option/index.css +4 -4
- package/dist/option/index.js +1 -1
- package/dist/{tslib.es6-821bce76.d.ts → tslib.es6-76925bcd.d.ts} +0 -0
- package/dist/{tslib.es6-821bce76.js → tslib.es6-76925bcd.js} +0 -0
- package/dist/{esm/typings-a22d6eaf.d.ts → typings-f60445d7.d.ts} +28 -0
- 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-
|
|
4
|
-
import { OptionProps as BaseOptionProps } from "../typings-
|
|
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>>;
|
package/dist/option/Component.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../tslib.es6-76925bcd.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-
|
|
13
|
+
var styles = {"container":"picker-button__container_1vdd5","icon":"picker-button__icon_1vdd5","content":"picker-button__content_1vdd5"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var Option = function (_a) {
|
package/dist/option/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: sfa0b */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-s: 12px;
|
|
12
12
|
}
|
|
13
|
-
.picker-
|
|
13
|
+
.picker-button__container_1vdd5 {
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
}
|
|
17
|
-
.picker-
|
|
17
|
+
.picker-button__icon_1vdd5 {
|
|
18
18
|
display: flex;
|
|
19
19
|
margin-right: var(--gap-s);
|
|
20
20
|
}
|
|
21
|
-
.picker-
|
|
21
|
+
.picker-button__content_1vdd5 {
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
flex: 1;
|
|
24
24
|
text-overflow: ellipsis;
|
package/dist/option/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -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
|
+
"version": "7.6.7",
|
|
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.
|
|
23
|
-
"@alfalab/core-components-select": "^10.6.
|
|
22
|
+
"@alfalab/core-components-button": "^5.1.4",
|
|
23
|
+
"@alfalab/core-components-select": "^10.6.7",
|
|
24
24
|
"@alfalab/icons-classic": "^1.76.0",
|
|
25
25
|
"@alfalab/icons-glyph": "^2.16.0",
|
|
26
|
-
"classnames": "
|
|
26
|
+
"classnames": "2.2.6"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "a185c42cf9dbfd14311fd756c696fa116214e289"
|
|
29
29
|
}
|