@itcase/ui 1.4.7 → 1.4.9
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/dist/{DropdownItem-mr__S8vt.js → DropdownItem-B3E-_Cwp.js} +5 -5
- package/dist/{DropdownItem-NllzSt5M.js → DropdownItem-Qg-_2YWD.js} +5 -5
- package/dist/cjs/components/Accordion.js +6 -7
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Chips.js +6 -6
- package/dist/cjs/components/Choice.js +10 -8
- package/dist/cjs/components/Dot.js +2 -2
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/components/Accordion.js +6 -7
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Chips.js +6 -6
- package/dist/components/Choice.js +11 -9
- package/dist/components/Dot.js +2 -2
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Pagination.js +1 -1
- package/dist/css/components/Avatar/Avatar.css +3 -2
- package/dist/css/mixins/mixin_fill-gradient.css +30 -6
- package/dist/css/mixins/mixin_typography.css +105 -71
- package/dist/css/mixins/mixin_utils.css +3 -4
- package/dist/css/styles/fill/fill_active_hover.css +17 -13
- package/dist/stories/{Typography.mdx → TypographyAM.mdx} +4 -4
- package/dist/stories/TypographyBaikal.mdx +82 -0
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +2 -1
- package/dist/types/types/componentProps/align.d.ts +0 -1
- package/package.json +8 -8
- package/dist/types/components/Grid/stories/args.d.ts +0 -90
- package/dist/types/components/Group/stories/args.d.ts +0 -78
- package/dist/types/components/Tab/stories/args.d.ts +0 -171
|
@@ -8,7 +8,7 @@ import { a as Link } from './Link-DaKqf1pb.js';
|
|
|
8
8
|
import { T as Text } from './Text-C6NSmetx.js';
|
|
9
9
|
|
|
10
10
|
function Dropdown(props) {
|
|
11
|
-
var
|
|
11
|
+
var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, _c = props.set, set = _c === void 0 ? 'normal' : _c, setIsOpen = props.setIsOpen, children = props.children;
|
|
12
12
|
var dropdownRef = useRef(null);
|
|
13
13
|
// const [isOpen, setIsOpen] = useState(false)
|
|
14
14
|
var _d = useState({
|
|
@@ -28,7 +28,7 @@ function Dropdown(props) {
|
|
|
28
28
|
className: isOpen ? animationOpen : animationClose,
|
|
29
29
|
}); });
|
|
30
30
|
}
|
|
31
|
-
}, [isOpen]);
|
|
31
|
+
}, [isOpen, animationOpen, animationClose]);
|
|
32
32
|
// Close dropdown by click outside
|
|
33
33
|
useEffect(function () {
|
|
34
34
|
// Add a handler to keep track of the click target.
|
|
@@ -55,7 +55,7 @@ function Dropdown(props) {
|
|
|
55
55
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
56
56
|
}, []);
|
|
57
57
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
58
|
-
var alignmentClass = propsGenerator.alignmentClass,
|
|
58
|
+
var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
|
|
59
59
|
// @ts-expect-error
|
|
60
60
|
var styles = useStyles(props).styles;
|
|
61
61
|
return (jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), set && "dropdown_set_".concat(set), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
|
|
@@ -74,7 +74,7 @@ var dropdownItemConfig = {
|
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
function DropdownItem(props) {
|
|
77
|
-
var className = props.className, appearance = props.appearance,
|
|
77
|
+
var className = props.className, appearance = props.appearance, label = props.label, labelTextAlign = props.labelTextAlign, labelTextColor = props.labelTextColor, labelTextColorActive = props.labelTextColorActive, labelTextColorHover = props.labelTextColorHover, labelTextGradient = props.labelTextGradient, labelTextSize = props.labelTextSize, labelTextStyle = props.labelTextStyle, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, desc = props.desc, descTextColor = props.descTextColor, descTextColorHover = props.descTextColorHover, descTextGradient = props.descTextGradient, descTextSize = props.descTextSize, descTextStyle = props.descTextStyle, descTextWeight = props.descTextWeight, descTextWrap = props.descTextWrap, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, href = props.href, link = props.link, linkFill = props.linkFill, rel = props.rel, showDivider = props.showDivider, target = props.target, underline = props.underline, before = props.before, after = props.after, isActive = props.isActive, isHover = props.isHover, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
78
78
|
// prettier-ignore
|
|
79
79
|
var appearanceConfig = (dropdownItemConfig.appearance && dropdownItemConfig.appearance[appearance]);
|
|
80
80
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
@@ -82,7 +82,7 @@ function DropdownItem(props) {
|
|
|
82
82
|
// @ts-expect-error
|
|
83
83
|
var dropdownItem = useStyles(props).styles;
|
|
84
84
|
return (jsxs("div", { className: clsx('dropdown__item', isActive && 'dropdown__item_state_active', isHover && 'dropdown__item_state_hover', directionClass && "dropdown__item_direction_".concat(directionClass), className, fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), sizeClass && "dropdown__item_size_".concat(sizeClass), shapeClass && "dropdown__item_shape_".concat(shapeClass), typeClass && "dropdown__item_type_".concat(typeClass), widthClass && "dropdown__item_width_".concat(widthClass), onClick && 'cursor_type_pointer', set && "dropdown__item_set_".concat(set), justifyContentClass &&
|
|
85
|
-
"dropdown__item_justify-content_".concat(justifyContentClass)), style: dropdownItem, onClick: onClick, onMouseEnter: onMouseEnter, children: [jsx("div", { className: "dropdown__item-wrapper", children: jsx(Link, { className: clsx('dropdown__item-link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, underline: underline, children: jsxs(React.Fragment, { children: [before, children || (jsxs(React.Fragment, { children: [label && (jsx(Text, { className: "dropdown__item-label", textAlign: labelTextAlign, textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorActive: isActive ? labelTextColorActive : undefined, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, size:
|
|
85
|
+
"dropdown__item_justify-content_".concat(justifyContentClass)), style: dropdownItem, onClick: onClick, onMouseEnter: onMouseEnter, children: [jsx("div", { className: "dropdown__item-wrapper", children: jsx(Link, { className: clsx('dropdown__item-link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, underline: underline, children: jsxs(React.Fragment, { children: [before, children || (jsxs(React.Fragment, { children: [label && (jsx(Text, { className: "dropdown__item-label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textAlign: labelTextAlign, textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorActive: isActive ? labelTextColorActive : undefined, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })), desc && (jsx(Text, { className: "dropdown__item-desc", size: descTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextSize), textColor: descTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextColor), textColorGradient: descTextGradient, textColorHover: descTextColorHover, textStyle: descTextStyle, textWeight: descTextWeight, textWrap: descTextWrap, children: desc }))] })), after] }) }) }), showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' }))] }));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export { Dropdown as D, DropdownItem as a, dropdownItemConfig as b, dropdownItemAppearance as d };
|
|
@@ -10,7 +10,7 @@ var Link = require('./Link-BnqN6ysn.js');
|
|
|
10
10
|
var Text = require('./Text-C49zj3jO.js');
|
|
11
11
|
|
|
12
12
|
function Dropdown(props) {
|
|
13
|
-
var
|
|
13
|
+
var className = props.className, _a = props.animationClose, animationClose = _a === void 0 ? 'dropdown_animation_close' : _a, _b = props.animationOpen, animationOpen = _b === void 0 ? 'dropdown_animation_open' : _b, before = props.before, after = props.after, isOpen = props.isOpen, _c = props.set, set = _c === void 0 ? 'normal' : _c, setIsOpen = props.setIsOpen, children = props.children;
|
|
14
14
|
var dropdownRef = React.useRef(null);
|
|
15
15
|
// const [isOpen, setIsOpen] = useState(false)
|
|
16
16
|
var _d = React.useState({
|
|
@@ -30,7 +30,7 @@ function Dropdown(props) {
|
|
|
30
30
|
className: isOpen ? animationOpen : animationClose,
|
|
31
31
|
}); });
|
|
32
32
|
}
|
|
33
|
-
}, [isOpen]);
|
|
33
|
+
}, [isOpen, animationOpen, animationClose]);
|
|
34
34
|
// Close dropdown by click outside
|
|
35
35
|
React.useEffect(function () {
|
|
36
36
|
// Add a handler to keep track of the click target.
|
|
@@ -57,7 +57,7 @@ function Dropdown(props) {
|
|
|
57
57
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
58
58
|
}, []);
|
|
59
59
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
60
|
-
var alignmentClass = propsGenerator.alignmentClass,
|
|
60
|
+
var alignmentClass = propsGenerator.alignmentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, elevationClass = propsGenerator.elevationClass, shapeClass = propsGenerator.shapeClass;
|
|
61
61
|
// @ts-expect-error
|
|
62
62
|
var styles = useStyles.useStyles(props).styles;
|
|
63
63
|
return (jsxRuntime.jsxs("div", { className: clsx(className, 'dropdown', alignmentClass && "alignment_".concat(alignmentClass), set && "dropdown_set_".concat(set), shapeClass && "dropdown_shape_".concat(shapeClass), elevationClass && "elevation_".concat(elevationClass), isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className), ref: dropdownRef, style: styles, children: [before, children && (jsxRuntime.jsx("div", { className: clsx('dropdown__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)),
|
|
@@ -76,7 +76,7 @@ var dropdownItemConfig = {
|
|
|
76
76
|
},
|
|
77
77
|
};
|
|
78
78
|
function DropdownItem(props) {
|
|
79
|
-
var className = props.className, appearance = props.appearance,
|
|
79
|
+
var className = props.className, appearance = props.appearance, label = props.label, labelTextAlign = props.labelTextAlign, labelTextColor = props.labelTextColor, labelTextColorActive = props.labelTextColorActive, labelTextColorHover = props.labelTextColorHover, labelTextGradient = props.labelTextGradient, labelTextSize = props.labelTextSize, labelTextStyle = props.labelTextStyle, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, desc = props.desc, descTextColor = props.descTextColor, descTextColorHover = props.descTextColorHover, descTextGradient = props.descTextGradient, descTextSize = props.descTextSize, descTextStyle = props.descTextStyle, descTextWeight = props.descTextWeight, descTextWrap = props.descTextWrap, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, href = props.href, link = props.link, linkFill = props.linkFill, rel = props.rel, showDivider = props.showDivider, target = props.target, underline = props.underline, before = props.before, after = props.after, isActive = props.isActive, isHover = props.isHover, set = props.set, onClick = props.onClick, onMouseEnter = props.onMouseEnter, children = props.children;
|
|
80
80
|
// prettier-ignore
|
|
81
81
|
var appearanceConfig = (dropdownItemConfig.appearance && dropdownItemConfig.appearance[appearance]);
|
|
82
82
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
@@ -84,7 +84,7 @@ function DropdownItem(props) {
|
|
|
84
84
|
// @ts-expect-error
|
|
85
85
|
var dropdownItem = useStyles.useStyles(props).styles;
|
|
86
86
|
return (jsxRuntime.jsxs("div", { className: clsx('dropdown__item', isActive && 'dropdown__item_state_active', isHover && 'dropdown__item_state_hover', directionClass && "dropdown__item_direction_".concat(directionClass), className, fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), fillActiveClass && "fill_active_".concat(fillActiveClass), fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), sizeClass && "dropdown__item_size_".concat(sizeClass), shapeClass && "dropdown__item_shape_".concat(shapeClass), typeClass && "dropdown__item_type_".concat(typeClass), widthClass && "dropdown__item_width_".concat(widthClass), onClick && 'cursor_type_pointer', set && "dropdown__item_set_".concat(set), justifyContentClass &&
|
|
87
|
-
"dropdown__item_justify-content_".concat(justifyContentClass)), style: dropdownItem, onClick: onClick, onMouseEnter: onMouseEnter, children: [jsxRuntime.jsx("div", { className: "dropdown__item-wrapper", children: jsxRuntime.jsx(Link.Link, { className: clsx('dropdown__item-link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, underline: underline, children: jsxRuntime.jsxs(React.Fragment, { children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [label && (jsxRuntime.jsx(Text.Text, { className: "dropdown__item-label", textAlign: labelTextAlign, textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorActive: isActive ? labelTextColorActive : undefined, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap,
|
|
87
|
+
"dropdown__item_justify-content_".concat(justifyContentClass)), style: dropdownItem, onClick: onClick, onMouseEnter: onMouseEnter, children: [jsxRuntime.jsx("div", { className: "dropdown__item-wrapper", children: jsxRuntime.jsx(Link.Link, { className: clsx('dropdown__item-link', alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass)), fill: linkFill, href: link || href, rel: rel, target: target, underline: underline, children: jsxRuntime.jsxs(React.Fragment, { children: [before, children || (jsxRuntime.jsxs(React.Fragment, { children: [label && (jsxRuntime.jsx(Text.Text, { className: "dropdown__item-label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textAlign: labelTextAlign, textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorActive: isActive ? labelTextColorActive : undefined, textColorGradient: labelTextGradient, textColorHover: labelTextColorHover, textStyle: labelTextStyle, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })), desc && (jsxRuntime.jsx(Text.Text, { className: "dropdown__item-desc", size: descTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextSize), textColor: descTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.descTextColor), textColorGradient: descTextGradient, textColorHover: descTextColorHover, textStyle: descTextStyle, textWeight: descTextWeight, textWrap: descTextWrap, children: desc }))] })), after] }) }) }), showDivider && (jsxRuntime.jsx(Divider.Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' }))] }));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
exports.Dropdown = Dropdown;
|
|
@@ -38,7 +38,7 @@ var accordionItemConfig = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
function AccordionItem(props) {
|
|
41
|
-
var id = props.id, className = props.className, appearance = props.appearance,
|
|
41
|
+
var id = props.id, className = props.className, appearance = props.appearance, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, afterContent = props.afterContent, beforeContent = props.beforeContent, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, icon = props.icon, _a = props.iconFill, iconFill = _a === void 0 ? 'surfaceItemAccent' : _a, showDivider = props.showDivider, isExpanded = props.isExpanded, onClick = props.onClick, children = props.children;
|
|
42
42
|
var onClickTitle = React.useCallback(function () {
|
|
43
43
|
// "!isExpanded" - is next state of expanded
|
|
44
44
|
var thisItemData = {
|
|
@@ -50,15 +50,14 @@ function AccordionItem(props) {
|
|
|
50
50
|
onClick && onClick(thisItemData);
|
|
51
51
|
}, [id, title, content, isExpanded, onClick]);
|
|
52
52
|
// @ts-expect-error
|
|
53
|
-
var appearanceConfig = accordionItemConfig.appearance &&
|
|
54
|
-
accordionItemConfig.appearance[appearance];
|
|
53
|
+
var appearanceConfig = accordionItemConfig.appearance && accordionItemConfig.appearance[appearance];
|
|
55
54
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
56
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass,
|
|
55
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, borderColorClass = propsGenerator.borderColorClass, contentBorderColorClass = propsGenerator.contentBorderColorClass, contentFillClass = propsGenerator.contentFillClass, contentFillHoverClass = propsGenerator.contentFillHoverClass, shapeClass = propsGenerator.shapeClass;
|
|
57
56
|
// @ts-expect-error
|
|
58
57
|
var styles = useStyles.useStyles(props).styles;
|
|
59
|
-
return (jsxRuntime.jsxs("div", { className: clsx('accordion-item', className, borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "accordion-item_shape_".concat(shapeClass), size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxRuntime.jsx(Text.Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), 'cursor_type_pointer'), textColor: titleTextColor, textWeight: titleTextWeight,
|
|
58
|
+
return (jsxRuntime.jsxs("div", { className: clsx('accordion-item', className, borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "accordion-item_shape_".concat(shapeClass), size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxRuntime.jsx(Text.Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsxRuntime.jsx("div", { className: clsx('accordion-item__icon', 'cursor_type_pointer'), onClick: onClickTitle, children: icon || (jsxRuntime.jsx(Icon.Icon, { size: "16", iconFill: iconFill, SvgImage: _default.icon16.ChevronDown })) }), beforeContent && beforeContent, showDivider && (jsxRuntime.jsx(Divider.Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' })), isExpanded && (jsxRuntime.jsx("div", { className: clsx('accordion-item__content', contentBorderColorClass &&
|
|
60
59
|
"border-color_".concat(contentBorderColorClass), contentFillClass && "fill_".concat(contentFillClass), contentFillHoverClass && "fill_hover_".concat(contentFillHoverClass)), children: children ||
|
|
61
|
-
(content && (jsxRuntime.jsx(Text.Text, { textColor: contentTextColor, textWeight: contentTextWeight,
|
|
60
|
+
(content && (jsxRuntime.jsx(Text.Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }))) })), afterContent && afterContent] }));
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
var accordionConfig = {
|
|
@@ -68,7 +67,7 @@ var accordionConfig = {
|
|
|
68
67
|
},
|
|
69
68
|
};
|
|
70
69
|
function Accordion(props) {
|
|
71
|
-
var className = props.className, appearance = props.appearance, _a = props.initial, initial = _a === void 0 ? [] : _a,
|
|
70
|
+
var className = props.className, appearance = props.appearance, _a = props.initial, initial = _a === void 0 ? [] : _a, items = props.items, isMultiple = props.isMultiple, onClickItem = props.onClickItem, children = props.children;
|
|
72
71
|
var _b = React.useState(function () { return castArray(initial); }), expandedItems = _b[0], setExpandedItems = _b[1];
|
|
73
72
|
var onClickAccordionItem = React.useCallback(function (targetItem) {
|
|
74
73
|
setExpandedItems(function (prevState) {
|
|
@@ -34,7 +34,7 @@ var avatarConfig = {
|
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
36
|
function Avatar(props) {
|
|
37
|
-
var className = props.className, type = props.type, appearance = props.appearance, _a = props.size, size = _a === void 0 ? '96' : _a, Dot = props.Dot, _b = props.firstName, firstName = _b === void 0 ? '' : _b, icon = props.icon, mode = props.mode, _c = props.secondName, secondName = _c === void 0 ? '' : _c,
|
|
37
|
+
var className = props.className, type = props.type, appearance = props.appearance, _a = props.size, size = _a === void 0 ? '96' : _a, src = props.src, Dot = props.Dot, _b = props.firstName, firstName = _b === void 0 ? '' : _b, icon = props.icon, mode = props.mode, _c = props.secondName, secondName = _c === void 0 ? '' : _c, before = props.before, after = props.after, onClick = props.onClick;
|
|
38
38
|
var avatarChars = React.useMemo(function () {
|
|
39
39
|
var firstChar = ((firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '').toUpperCase();
|
|
40
40
|
var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
|
|
@@ -46,7 +46,7 @@ function Avatar(props) {
|
|
|
46
46
|
}, {});
|
|
47
47
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
48
48
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, _d = propsGenerator.textColor, textColor = _d === void 0 ? 'surfaceTextTertiary' : _d, _e = propsGenerator.textSize, textSize = _e === void 0 ? 'l' : _e, _f = propsGenerator.textWeight, textWeight = _f === void 0 ? '600' : _f, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass;
|
|
49
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxRuntime.jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsxRuntime.jsx(Image.Image, { className: "avatar__image", shape: "geometric"
|
|
49
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxRuntime.jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsxRuntime.jsx(Image.Image, { className: "avatar__image", src: src, shape: "geometric" })) : (jsxRuntime.jsx(Text.Text, { className: "avatar__name", size: textSize, textColor: textColor, textWeight: textWeight, children: avatarChars })), (icon || iconSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), Dot, after] }) }));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
exports.Avatar = Avatar;
|
|
@@ -113,14 +113,14 @@ function Chips(props) {
|
|
|
113
113
|
return appearanceProps;
|
|
114
114
|
}, [appearance, isDisabled]);
|
|
115
115
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
116
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
117
|
-
console.log(isDisabled);
|
|
118
|
-
console.log(fillClass);
|
|
116
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
119
117
|
// @ts-expect-error
|
|
120
118
|
var chipsStyles = useStyles.useStyles(props).styles;
|
|
121
|
-
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', isActive
|
|
122
|
-
?
|
|
123
|
-
:
|
|
119
|
+
return (jsxRuntime.jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', fillClass && !isActive
|
|
120
|
+
? "fill_".concat(fillClass)
|
|
121
|
+
: "fill_active_".concat(fillActiveClass), fillHoverClass && !isDisabled && !isActive
|
|
122
|
+
? "fill_hover_".concat(fillHoverClass)
|
|
123
|
+
: "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxRuntime.jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsxRuntime.jsx(Text.Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsxRuntime.jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsxRuntime.jsx(Icon.Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }) }));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
exports.Chips = Chips;
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
+
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
6
7
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
8
|
var Icon = require('../../Icon-BcBOnVKH.js');
|
|
8
9
|
var Loader = require('../../Loader-DdKHrLnw.js');
|
|
9
10
|
var Text = require('../../Text-C49zj3jO.js');
|
|
10
|
-
require('../../tslib.es6-CCZ3TN_7.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
|
-
require('lodash/
|
|
12
|
+
require('lodash/maxBy');
|
|
13
13
|
require('lodash/upperFirst');
|
|
14
14
|
require('../context/UIContext.js');
|
|
15
|
+
require('../../tslib.es6-CCZ3TN_7.js');
|
|
15
16
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
16
17
|
require('react-responsive');
|
|
17
18
|
require('../utils/setViewportProperty.js');
|
|
18
|
-
require('react-inlinesvg');
|
|
19
|
-
require('../hooks/useStyles/useStyles.js');
|
|
20
|
-
require('lodash/maxBy');
|
|
21
19
|
require('../hooks/useStyles/styleAttributes.js');
|
|
20
|
+
require('lodash/castArray');
|
|
21
|
+
require('react-inlinesvg');
|
|
22
22
|
require('../../Link-BnqN6ysn.js');
|
|
23
23
|
require('../../Tooltip-DRta8lK_.js');
|
|
24
24
|
require('../../Title-BLGDdlnX.js');
|
|
@@ -54,7 +54,7 @@ var choiceConfig = {
|
|
|
54
54
|
},
|
|
55
55
|
};
|
|
56
56
|
function Choice(props) {
|
|
57
|
-
var className = props.className, type = props.type, name = props.name, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'normal' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, iconFillDisabled = props.iconFillDisabled, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColorDisabled = props.labelTextColorDisabled, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, icon = props.icon, iconItemFill = props.iconItemFill, iconSize = props.iconSize, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = props.isLoading, isLoading = _f === void 0 ? false : _f, set = props.set, setActiveSegment = props.setActiveSegment;
|
|
57
|
+
var id = props.id, className = props.className, type = props.type, name = props.name, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'normal' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, iconFillDisabled = props.iconFillDisabled, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColorDisabled = props.labelTextColorDisabled, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, iconItemFill = props.iconItemFill, iconSize = props.iconSize, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = props.isLoading, isLoading = _f === void 0 ? false : _f, set = props.set, setActiveSegment = props.setActiveSegment;
|
|
58
58
|
var controlRef = React.useRef(null);
|
|
59
59
|
var optionsRefs = React.useMemo(function () {
|
|
60
60
|
return new Map(options.map(function (item) { return [item.value, React.createRef()]; }));
|
|
@@ -65,8 +65,10 @@ function Choice(props) {
|
|
|
65
65
|
}, [isCheckbox, setActiveSegment]);
|
|
66
66
|
var appearanceConfig = choiceConfig.appearance && choiceConfig.appearance[appearance];
|
|
67
67
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
68
|
-
var fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, fillActiveDisabledClass = propsGenerator.fillActiveDisabledClass, fillDisabledClass = propsGenerator.fillDisabledClass,
|
|
69
|
-
|
|
68
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, fillActiveDisabledClass = propsGenerator.fillActiveDisabledClass, fillDisabledClass = propsGenerator.fillDisabledClass, shapeClass = propsGenerator.shapeClass, wrapClass = propsGenerator.wrapClass;
|
|
69
|
+
// @ts-expect-error
|
|
70
|
+
var styles = useStyles.useStyles(props).styles;
|
|
71
|
+
return (jsxRuntime.jsx("div", { id: id, className: clsx(className, 'choice', shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, ref: controlRef, style: styles, children: isLoading ? (jsxRuntime.jsx(Loader.Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent", set: "simple" })) : (jsxRuntime.jsx(React.Fragment, { children: options.map(function (item) {
|
|
70
72
|
// prettier-ignore
|
|
71
73
|
var isActive = typeof active === 'object'
|
|
72
74
|
? String(item.value) === String(active.value)
|
|
@@ -17,9 +17,9 @@ require('lodash/maxBy');
|
|
|
17
17
|
require('../hooks/useStyles/styleAttributes.js');
|
|
18
18
|
|
|
19
19
|
function Dot(props) {
|
|
20
|
-
var
|
|
20
|
+
var className = props.className, children = props.children;
|
|
21
21
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
|
|
22
|
-
var
|
|
22
|
+
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
23
23
|
// @ts-expect-error
|
|
24
24
|
var styles = useStyles.useStyles(props).styles;
|
|
25
25
|
return (jsxRuntime.jsx("div", { className: clsx(className, 'dot', borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), shapeClass && "dot_shape_".concat(shapeClass), sizeClass && "dot_size_".concat(sizeClass)), style: styles, children: children }));
|
|
@@ -6,7 +6,7 @@ var clsx = require('clsx');
|
|
|
6
6
|
var ceil = require('lodash/ceil');
|
|
7
7
|
var ReactPaginate = require('react-paginate');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
|
-
var DropdownItem = require('../../DropdownItem-
|
|
9
|
+
var DropdownItem = require('../../DropdownItem-Qg-_2YWD.js');
|
|
10
10
|
var Icon = require('../../Icon-BcBOnVKH.js');
|
|
11
11
|
var Text = require('../../Text-C49zj3jO.js');
|
|
12
12
|
require('../../tslib.es6-CCZ3TN_7.js');
|
|
@@ -36,7 +36,7 @@ var accordionItemConfig = {
|
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
38
|
function AccordionItem(props) {
|
|
39
|
-
var id = props.id, className = props.className, appearance = props.appearance,
|
|
39
|
+
var id = props.id, className = props.className, appearance = props.appearance, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, afterContent = props.afterContent, beforeContent = props.beforeContent, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, icon = props.icon, _a = props.iconFill, iconFill = _a === void 0 ? 'surfaceItemAccent' : _a, showDivider = props.showDivider, isExpanded = props.isExpanded, onClick = props.onClick, children = props.children;
|
|
40
40
|
var onClickTitle = useCallback(function () {
|
|
41
41
|
// "!isExpanded" - is next state of expanded
|
|
42
42
|
var thisItemData = {
|
|
@@ -48,15 +48,14 @@ function AccordionItem(props) {
|
|
|
48
48
|
onClick && onClick(thisItemData);
|
|
49
49
|
}, [id, title, content, isExpanded, onClick]);
|
|
50
50
|
// @ts-expect-error
|
|
51
|
-
var appearanceConfig = accordionItemConfig.appearance &&
|
|
52
|
-
accordionItemConfig.appearance[appearance];
|
|
51
|
+
var appearanceConfig = accordionItemConfig.appearance && accordionItemConfig.appearance[appearance];
|
|
53
52
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
54
|
-
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass,
|
|
53
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, borderColorClass = propsGenerator.borderColorClass, contentBorderColorClass = propsGenerator.contentBorderColorClass, contentFillClass = propsGenerator.contentFillClass, contentFillHoverClass = propsGenerator.contentFillHoverClass, shapeClass = propsGenerator.shapeClass;
|
|
55
54
|
// @ts-expect-error
|
|
56
55
|
var styles = useStyles(props).styles;
|
|
57
|
-
return (jsxs("div", { className: clsx('accordion-item', className, borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "accordion-item_shape_".concat(shapeClass), size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsx(Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), 'cursor_type_pointer'), textColor: titleTextColor, textWeight: titleTextWeight,
|
|
56
|
+
return (jsxs("div", { className: clsx('accordion-item', className, borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "accordion-item_shape_".concat(shapeClass), size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsx(Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsx("div", { className: clsx('accordion-item__icon', 'cursor_type_pointer'), onClick: onClickTitle, children: icon || (jsx(Icon, { size: "16", iconFill: iconFill, SvgImage: icon16.ChevronDown })) }), beforeContent && beforeContent, showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' })), isExpanded && (jsx("div", { className: clsx('accordion-item__content', contentBorderColorClass &&
|
|
58
57
|
"border-color_".concat(contentBorderColorClass), contentFillClass && "fill_".concat(contentFillClass), contentFillHoverClass && "fill_hover_".concat(contentFillHoverClass)), children: children ||
|
|
59
|
-
(content && (jsx(Text, { textColor: contentTextColor, textWeight: contentTextWeight,
|
|
58
|
+
(content && (jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }))) })), afterContent && afterContent] }));
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
var accordionConfig = {
|
|
@@ -66,7 +65,7 @@ var accordionConfig = {
|
|
|
66
65
|
},
|
|
67
66
|
};
|
|
68
67
|
function Accordion(props) {
|
|
69
|
-
var className = props.className, appearance = props.appearance, _a = props.initial, initial = _a === void 0 ? [] : _a,
|
|
68
|
+
var className = props.className, appearance = props.appearance, _a = props.initial, initial = _a === void 0 ? [] : _a, items = props.items, isMultiple = props.isMultiple, onClickItem = props.onClickItem, children = props.children;
|
|
70
69
|
var _b = useState(function () { return castArray(initial); }), expandedItems = _b[0], setExpandedItems = _b[1];
|
|
71
70
|
var onClickAccordionItem = useCallback(function (targetItem) {
|
|
72
71
|
setExpandedItems(function (prevState) {
|
|
@@ -32,7 +32,7 @@ var avatarConfig = {
|
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
function Avatar(props) {
|
|
35
|
-
var className = props.className, type = props.type, appearance = props.appearance, _a = props.size, size = _a === void 0 ? '96' : _a, Dot = props.Dot, _b = props.firstName, firstName = _b === void 0 ? '' : _b, icon = props.icon, mode = props.mode, _c = props.secondName, secondName = _c === void 0 ? '' : _c,
|
|
35
|
+
var className = props.className, type = props.type, appearance = props.appearance, _a = props.size, size = _a === void 0 ? '96' : _a, src = props.src, Dot = props.Dot, _b = props.firstName, firstName = _b === void 0 ? '' : _b, icon = props.icon, mode = props.mode, _c = props.secondName, secondName = _c === void 0 ? '' : _c, before = props.before, after = props.after, onClick = props.onClick;
|
|
36
36
|
var avatarChars = useMemo(function () {
|
|
37
37
|
var firstChar = ((firstName === null || firstName === void 0 ? void 0 : firstName[0]) || '').toUpperCase();
|
|
38
38
|
var secondChar = ((secondName === null || secondName === void 0 ? void 0 : secondName[0]) || '').toUpperCase();
|
|
@@ -44,7 +44,7 @@ function Avatar(props) {
|
|
|
44
44
|
}, {});
|
|
45
45
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
46
46
|
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, _d = propsGenerator.textColor, textColor = _d === void 0 ? 'surfaceTextTertiary' : _d, _e = propsGenerator.textSize, textSize = _e === void 0 ? 'l' : _e, _f = propsGenerator.textWeight, textWeight = _f === void 0 ? '600' : _f, iconFill = propsGenerator.iconFill, iconFillHover = propsGenerator.iconFillHover, iconFillSize = propsGenerator.iconFillSize, iconItemFill = propsGenerator.iconItemFill, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass;
|
|
47
|
-
return (jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsx(Image, { className: "avatar__image", shape: "geometric"
|
|
47
|
+
return (jsx("div", { className: clsx(className, 'avatar', shapeClass && "avatar_shape_".concat(shapeClass), mode && "avatar_mode_".concat(mode), size && "avatar_size_".concat(size), type && "avatar_type_".concat(type), Dot && 'avatar_status', onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxs("div", { className: clsx('avatar__wrapper', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [before, src ? (jsx(Image, { className: "avatar__image", src: src, shape: "geometric" })) : (jsx(Text, { className: "avatar__name", size: textSize, textColor: textColor, textWeight: textWeight, children: avatarChars })), (icon || iconSrc) && (jsx(Icon, { className: "avatar__icon", fill: iconFill, fillHover: iconFillHover, fillSize: iconFillSize, iconFill: iconItemFill, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), Dot, after] }) }));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export { Avatar, avatarAppearance, avatarConfig };
|
package/dist/components/Chips.js
CHANGED
|
@@ -111,14 +111,14 @@ function Chips(props) {
|
|
|
111
111
|
return appearanceProps;
|
|
112
112
|
}, [appearance, isDisabled]);
|
|
113
113
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
114
|
-
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
115
|
-
console.log(isDisabled);
|
|
116
|
-
console.log(fillClass);
|
|
114
|
+
var alignClass = propsGenerator.alignClass, alignDirectionClass = propsGenerator.alignDirectionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, cursorClass = propsGenerator.cursorClass, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillIcon = propsGenerator.iconAfterFillIcon, iconAfterFillSize = propsGenerator.iconAfterFillSize, iconAfterShape = propsGenerator.iconAfterShape, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillIcon = propsGenerator.iconBeforeFillIcon, iconBeforeFillSize = propsGenerator.iconBeforeFillSize, iconBeforeShape = propsGenerator.iconBeforeShape, iconBeforeSize = propsGenerator.iconBeforeSize, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
117
115
|
// @ts-expect-error
|
|
118
116
|
var chipsStyles = useStyles(props).styles;
|
|
119
|
-
return (jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', isActive
|
|
120
|
-
?
|
|
121
|
-
:
|
|
117
|
+
return (jsx("div", { className: clsx(className, 'chips', isActive && 'chips_state_active', fillClass && !isActive
|
|
118
|
+
? "fill_".concat(fillClass)
|
|
119
|
+
: "fill_active_".concat(fillActiveClass), fillHoverClass && !isDisabled && !isActive
|
|
120
|
+
? "fill_hover_".concat(fillHoverClass)
|
|
121
|
+
: "fill_active_hover_".concat(fillActiveHoverClass), shapeClass && "chips_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), sizeClass && "chips_size_".concat(sizeClass), alignDirectionClass && "align_".concat(alignDirectionClass), alignClass && "align_".concat(alignClass), isDisabled && "chips_state_disabled", cursorClass && "cursor_".concat(cursorClass), onClick && 'cursor_type_pointer'), "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, style: chipsStyles, onClick: !isDisabled ? onClick : undefined, children: jsxs("div", { className: "chips__inner", children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: "chips__icon_before", size: iconBeforeSize, fill: iconBeforeFill, fillSize: iconBeforeFillSize, iconFill: iconBeforeFillIcon, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), typeof label === 'string' ? (jsx(Text, { className: "chips__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textWeight: labelTextWeight, textWrap: labelTextWrap, children: label })) : (jsx("div", { className: "chips__label", children: label })), children, (iconAfter || iconAfterSrc) && (jsx(Icon, { className: "chips__icon_after", size: iconAfterSize, fill: iconAfterFill, fillSize: iconAfterFillSize, iconFill: iconAfterFillIcon, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] }) }));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
export { Chips, chipsAppearance, chipsConfig };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { useRef, useMemo, createRef, useCallback } from 'react';
|
|
2
|
+
import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
+
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
4
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
6
|
import { I as Icon } from '../Icon-OJ_3E3eM.js';
|
|
6
7
|
import { L as Loader } from '../Loader-VK3q7PBN.js';
|
|
7
8
|
import { T as Text } from '../Text-C6NSmetx.js';
|
|
8
|
-
import '../tslib.es6-5FtW-kfi.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
|
-
import 'lodash/
|
|
10
|
+
import 'lodash/maxBy';
|
|
11
11
|
import 'lodash/upperFirst';
|
|
12
12
|
import '../context/UIContext.js';
|
|
13
|
+
import '../tslib.es6-5FtW-kfi.js';
|
|
13
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
14
15
|
import 'react-responsive';
|
|
15
16
|
import '../utils/setViewportProperty.js';
|
|
16
|
-
import 'react-inlinesvg';
|
|
17
|
-
import '../hooks/useStyles/useStyles.js';
|
|
18
|
-
import 'lodash/maxBy';
|
|
19
17
|
import '../hooks/useStyles/styleAttributes.js';
|
|
18
|
+
import 'lodash/castArray';
|
|
19
|
+
import 'react-inlinesvg';
|
|
20
20
|
import '../Link-DaKqf1pb.js';
|
|
21
21
|
import '../Tooltip-5lQyt5-Y.js';
|
|
22
22
|
import '../Title-Byi9vhDt.js';
|
|
@@ -52,7 +52,7 @@ var choiceConfig = {
|
|
|
52
52
|
},
|
|
53
53
|
};
|
|
54
54
|
function Choice(props) {
|
|
55
|
-
var className = props.className, type = props.type, name = props.name, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'normal' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, iconFillDisabled = props.iconFillDisabled, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColorDisabled = props.labelTextColorDisabled, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, icon = props.icon, iconItemFill = props.iconItemFill, iconSize = props.iconSize, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = props.isLoading, isLoading = _f === void 0 ? false : _f, set = props.set, setActiveSegment = props.setActiveSegment;
|
|
55
|
+
var id = props.id, className = props.className, type = props.type, name = props.name, appearance = props.appearance, _a = props.size, size = _a === void 0 ? 'normal' : _a, labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, iconFillDisabled = props.iconFillDisabled, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColorDisabled = props.labelTextColorDisabled, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, dataTestId = props.dataTestId, dataTour = props.dataTour, icon = props.icon, iconItemFill = props.iconItemFill, iconSize = props.iconSize, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = props.isLoading, isLoading = _f === void 0 ? false : _f, set = props.set, setActiveSegment = props.setActiveSegment;
|
|
56
56
|
var controlRef = useRef(null);
|
|
57
57
|
var optionsRefs = useMemo(function () {
|
|
58
58
|
return new Map(options.map(function (item) { return [item.value, createRef()]; }));
|
|
@@ -63,8 +63,10 @@ function Choice(props) {
|
|
|
63
63
|
}, [isCheckbox, setActiveSegment]);
|
|
64
64
|
var appearanceConfig = choiceConfig.appearance && choiceConfig.appearance[appearance];
|
|
65
65
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
66
|
-
var fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, fillActiveDisabledClass = propsGenerator.fillActiveDisabledClass, fillDisabledClass = propsGenerator.fillDisabledClass,
|
|
67
|
-
|
|
66
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, fillActiveDisabledClass = propsGenerator.fillActiveDisabledClass, fillDisabledClass = propsGenerator.fillDisabledClass, shapeClass = propsGenerator.shapeClass, wrapClass = propsGenerator.wrapClass;
|
|
67
|
+
// @ts-expect-error
|
|
68
|
+
var styles = useStyles(props).styles;
|
|
69
|
+
return (jsx("div", { id: id, className: clsx(className, 'choice', shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, ref: controlRef, style: styles, children: isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent", set: "simple" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
68
70
|
// prettier-ignore
|
|
69
71
|
var isActive = typeof active === 'object'
|
|
70
72
|
? String(item.value) === String(active.value)
|
package/dist/components/Dot.js
CHANGED
|
@@ -15,9 +15,9 @@ import 'lodash/maxBy';
|
|
|
15
15
|
import '../hooks/useStyles/styleAttributes.js';
|
|
16
16
|
|
|
17
17
|
function Dot(props) {
|
|
18
|
-
var
|
|
18
|
+
var className = props.className, children = props.children;
|
|
19
19
|
var propsGenerator = useDevicePropsGenerator(props);
|
|
20
|
-
var
|
|
20
|
+
var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass;
|
|
21
21
|
// @ts-expect-error
|
|
22
22
|
var styles = useStyles(props).styles;
|
|
23
23
|
return (jsx("div", { className: clsx(className, 'dot', borderColorClass && "border-color_".concat(borderColorClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), shapeClass && "dot_shape_".concat(shapeClass), sizeClass && "dot_size_".concat(sizeClass)), style: styles, children: children }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-
|
|
1
|
+
export { D as Dropdown, a as DropdownItem, d as dropdownItemAppearance, b as dropdownItemConfig } from '../DropdownItem-B3E-_Cwp.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'clsx';
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import ceil from 'lodash/ceil';
|
|
5
5
|
import ReactPaginate from 'react-paginate';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-
|
|
7
|
+
import { D as Dropdown, a as DropdownItem } from '../DropdownItem-B3E-_Cwp.js';
|
|
8
8
|
import { I as Icon } from '../Icon-OJ_3E3eM.js';
|
|
9
9
|
import { T as Text } from '../Text-C6NSmetx.js';
|
|
10
10
|
import '../tslib.es6-5FtW-kfi.js';
|
|
@@ -71,14 +71,15 @@
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
/* stylelint-disable prettier/prettier */
|
|
74
75
|
.avatar {
|
|
75
76
|
&_size {
|
|
76
77
|
@each $size in 14, 16, 20, 24, 32, 40, 48, 56, 60, 64, 72, 80, 96, 112, 144,
|
|
77
78
|
240 {
|
|
78
79
|
&_$(size) {
|
|
79
80
|
^^&__wrapper {
|
|
80
|
-
width: $(size)
|
|
81
|
-
height: $(size)
|
|
81
|
+
width: $(size)px;
|
|
82
|
+
height: $(size)px;
|
|
82
83
|
display: flex;
|
|
83
84
|
justify-content: center;
|
|
84
85
|
align-items: center;
|
|
@@ -1,23 +1,47 @@
|
|
|
1
1
|
@define-mixin fill-gradient_surface-primary-left {
|
|
2
|
-
background: linear-gradient(
|
|
2
|
+
background: linear-gradient(
|
|
3
|
+
to left,
|
|
4
|
+
hsl(0, 0%, 0%, 0) 0%,
|
|
5
|
+
hsl(0, 0%, 0%, 0.65) 100%
|
|
6
|
+
);
|
|
3
7
|
}
|
|
4
8
|
|
|
5
9
|
@define-mixin fill-gradient_surface-primary-top {
|
|
6
|
-
background: linear-gradient(
|
|
10
|
+
background: linear-gradient(
|
|
11
|
+
to top,
|
|
12
|
+
hsl(0, 0%, 0%, 0) 0%,
|
|
13
|
+
hsl(0, 0%, 0%, 0.65) 100%
|
|
14
|
+
);
|
|
7
15
|
}
|
|
8
16
|
|
|
9
17
|
@define-mixin fill-gradient_surface-primary-right {
|
|
10
|
-
background: linear-gradient(
|
|
18
|
+
background: linear-gradient(
|
|
19
|
+
to left,
|
|
20
|
+
hsl(0, 0%, 0%, 0.65) 0%,
|
|
21
|
+
hsl(0, 0%, 0%, 0) 100%
|
|
22
|
+
);
|
|
11
23
|
}
|
|
12
24
|
|
|
13
25
|
@define-mixin fill-gradient_surface-primary-bottom {
|
|
14
|
-
background: linear-gradient(
|
|
26
|
+
background: linear-gradient(
|
|
27
|
+
to top,
|
|
28
|
+
hsl(0, 0%, 0%, 0.65) 0%,
|
|
29
|
+
hsl(0, 0%, 0%, 0) 100%
|
|
30
|
+
);
|
|
15
31
|
}
|
|
16
32
|
|
|
17
33
|
@define-mixin fill-gradient_surface-primary-diagonal-left {
|
|
18
|
-
background: linear-gradient(
|
|
34
|
+
background: linear-gradient(
|
|
35
|
+
to bottom,
|
|
36
|
+
hsl(0, 0%, 0%, 0) 0%,
|
|
37
|
+
hsl(0, 0%, 0%, 0.65) 100%
|
|
38
|
+
);
|
|
19
39
|
}
|
|
20
40
|
|
|
21
41
|
@define-mixin fill-gradient_surface-primary-diagonal-right {
|
|
22
|
-
background: linear-gradient(
|
|
42
|
+
background: linear-gradient(
|
|
43
|
+
to bottom,
|
|
44
|
+
hsl(0, 0%, 0%, 0) 0%,
|
|
45
|
+
hsl(0, 0%, 0%, 0.65) 100%
|
|
46
|
+
);
|
|
23
47
|
}
|