@zohodesk/components 1.0.0-alpha-265 → 1.0.0-alpha-267
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/README.md +11 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +181 -180
- package/assets/Appearance/dark/themes/blue/blueDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +31 -31
- package/assets/Appearance/dark/themes/green/greenDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +30 -30
- package/assets/Appearance/dark/themes/orange/orangeDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +30 -30
- package/assets/Appearance/dark/themes/red/redDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +30 -30
- package/assets/Appearance/dark/themes/yellow/yellowDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +30 -30
- package/assets/Appearance/default/mode/defaultMode.module.css +177 -176
- package/assets/Appearance/default/themes/blue/blueDefaultCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +31 -31
- package/assets/Appearance/default/themes/green/greenDefaultCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/default/themes/orange/orangeDefaultCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/default/themes/red/redDefaultCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +182 -181
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +31 -31
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTAModifyCategory.module.css +452 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +30 -30
- package/assets/Contrast/darkContrastLightness.module.css +39 -0
- package/assets/Contrast/defaultContrastLightness.module.css +39 -0
- package/assets/Contrast/pureDarkContrastLightness.module.css +39 -0
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/Avatar/Avatar.module.css +48 -13
- package/es/Button/Button.js +44 -47
- package/es/Button/{Button.module.css → css/Button.module.css} +6 -6
- package/es/Button/css/cssJSLogic.js +53 -0
- package/es/Button/index.js +2 -0
- package/es/Button/props/propTypes.js +3 -1
- package/es/Buttongroup/Buttongroup.module.css +36 -18
- package/es/DateTime/DateTime.module.css +1 -1
- package/es/DropBox/DropBox.js +2 -2
- package/es/DropBox/DropBoxElement/DropBoxElement.js +5 -3
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -10
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +8 -8
- package/es/DropBox/css/DropBox.module.css +1 -1
- package/es/Ribbon/Ribbon.module.css +102 -24
- package/es/Select/Select.js +12 -2
- package/es/Select/props/defaultProps.js +2 -1
- package/es/Select/props/propTypes.js +2 -1
- package/es/Switch/Switch.module.css +26 -9
- package/es/Tab/Tabs.module.css +6 -2
- package/es/Tooltip/Tooltip.module.css +28 -3
- package/es/common/a11y.module.css +3 -3
- package/es/common/boxShadow.module.css +34 -0
- package/lib/AppContainer/AppContainer.js +1 -0
- package/lib/Avatar/Avatar.module.css +48 -13
- package/lib/Button/Button.js +43 -72
- package/lib/Button/{Button.module.css → css/Button.module.css} +6 -6
- package/lib/Button/css/cssJSLogic.js +40 -0
- package/lib/Button/index.js +20 -0
- package/lib/Button/props/propTypes.js +5 -2
- package/lib/Buttongroup/Buttongroup.module.css +36 -18
- package/lib/DateTime/DateTime.module.css +1 -1
- package/lib/DropBox/DropBox.js +2 -2
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +5 -3
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -10
- package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +5 -5
- package/lib/DropBox/css/DropBox.module.css +1 -1
- package/lib/Ribbon/Ribbon.module.css +102 -24
- package/lib/Select/Select.js +12 -2
- package/lib/Select/props/defaultProps.js +2 -1
- package/lib/Select/props/propTypes.js +2 -1
- package/lib/Switch/Switch.module.css +26 -9
- package/lib/Tab/Tabs.module.css +6 -2
- package/lib/Tooltip/Tooltip.module.css +28 -3
- package/lib/common/a11y.module.css +3 -3
- package/lib/common/boxShadow.module.css +34 -0
- package/package.json +26 -13
- package/es/Button/__tests__/Button.spec.js +0 -190
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -191
- package/lib/Button/__tests__/Button.spec.js +0 -193
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -191
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--buttongroup_border_style: solid;
|
|
8
8
|
--buttongroup_border_color: var(--zdt_buttongroup_default_border);
|
|
9
9
|
}
|
|
10
|
+
|
|
10
11
|
.buttonGroup {
|
|
11
12
|
composes: varClass;
|
|
12
13
|
composes: cboth from '../common/common.module.css';
|
|
@@ -19,71 +20,88 @@
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.footer {
|
|
22
|
-
--buttongroup_box_shadow:
|
|
23
|
+
--buttongroup_box_shadow: var(--zd_bs_buttongroup_footer);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
[dir=ltr] .footer {
|
|
26
|
-
--buttongroup_padding: var(--zd_size20) 0 var(--zd_size20) var(--zd_size60)
|
|
27
|
+
--buttongroup_padding: var(--zd_size20) 0 var(--zd_size20) var(--zd_size60)
|
|
28
|
+
/*rtl: var(--zd_size20) var(--zd_size60) var(--zd_size20) 0*/
|
|
29
|
+
;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
[dir=rtl] .footer {
|
|
30
|
-
--buttongroup_padding: var(--zd_size20) var(--
|
|
33
|
+
--buttongroup_padding: var(--zd_size20) 0 var(--zd_size20) var(--zd_size60) ;
|
|
31
34
|
}
|
|
35
|
+
|
|
32
36
|
.header {
|
|
33
37
|
--buttongroup_padding: var(--zd_size12) var(--zd_size20);
|
|
34
38
|
--buttongroup_border_width: 0 0 1px 0;
|
|
35
39
|
}
|
|
36
|
-
|
|
40
|
+
|
|
41
|
+
[dir=ltr] .tab>div button:first-child {
|
|
37
42
|
border-radius: 5px 0 0 5px;
|
|
38
43
|
}
|
|
39
|
-
|
|
44
|
+
|
|
45
|
+
[dir=rtl] .tab>div button:first-child {
|
|
40
46
|
border-radius: 0 5px 5px 0;
|
|
41
47
|
}
|
|
42
|
-
|
|
48
|
+
|
|
49
|
+
[dir=ltr] .tab>div button:last-child {
|
|
43
50
|
border-radius: 0 5px 5px 0;
|
|
44
51
|
}
|
|
45
|
-
|
|
52
|
+
|
|
53
|
+
[dir=rtl] .tab>div button:last-child {
|
|
46
54
|
border-radius: 5px 0 0 5px;
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
.alignleft {
|
|
50
58
|
composes: fleft from '../common/common.module.css';
|
|
51
59
|
}
|
|
60
|
+
|
|
52
61
|
.alignright {
|
|
53
62
|
composes: fright from '../common/common.module.css';
|
|
54
63
|
}
|
|
64
|
+
|
|
55
65
|
.aligncenter {
|
|
56
66
|
composes: tcenter from '../common/common.module.css';
|
|
57
67
|
}
|
|
58
|
-
|
|
68
|
+
|
|
69
|
+
[dir=ltr] .alignleft>button:first-child {
|
|
59
70
|
margin-left: 0;
|
|
60
71
|
}
|
|
61
|
-
|
|
72
|
+
|
|
73
|
+
[dir=rtl] .alignleft>button:first-child {
|
|
62
74
|
margin-right: 0;
|
|
63
75
|
}
|
|
64
|
-
|
|
76
|
+
|
|
77
|
+
[dir=ltr] .alignleft>button {
|
|
65
78
|
margin-left: var(--zd_size15);
|
|
66
79
|
}
|
|
67
|
-
|
|
80
|
+
|
|
81
|
+
[dir=rtl] .alignleft>button {
|
|
68
82
|
margin-right: var(--zd_size15);
|
|
69
83
|
}
|
|
70
84
|
|
|
71
|
-
[dir=ltr] .alignright
|
|
85
|
+
[dir=ltr] .alignright>button:last-child {
|
|
72
86
|
margin-right: 0;
|
|
73
87
|
}
|
|
74
88
|
|
|
75
|
-
[dir=rtl] .alignright
|
|
89
|
+
[dir=rtl] .alignright>button:last-child {
|
|
76
90
|
margin-left: 0;
|
|
77
91
|
}
|
|
78
|
-
|
|
92
|
+
|
|
93
|
+
[dir=ltr] .alignright>button {
|
|
79
94
|
margin-right: var(--zd_size15);
|
|
80
95
|
}
|
|
81
|
-
|
|
96
|
+
|
|
97
|
+
[dir=rtl] .alignright>button {
|
|
82
98
|
margin-left: var(--zd_size15);
|
|
83
99
|
}
|
|
84
|
-
|
|
100
|
+
|
|
101
|
+
[dir=ltr] .aligncenter>button {
|
|
85
102
|
margin-right: var(--zd_size15);
|
|
86
103
|
}
|
|
87
|
-
|
|
104
|
+
|
|
105
|
+
[dir=rtl] .aligncenter>button {
|
|
88
106
|
margin-left: var(--zd_size15);
|
|
89
|
-
}
|
|
107
|
+
}
|
package/lib/DropBox/DropBox.js
CHANGED
|
@@ -65,13 +65,13 @@ function DropBox(props) {
|
|
|
65
65
|
}));
|
|
66
66
|
return isModel && isActive ? /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
|
|
67
67
|
portalId: portalId
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
69
|
className: "".concat(_DropBoxModule["default"].freezeLayer, " ").concat(_DropBoxModule["default"].freeze),
|
|
70
70
|
style: zIndexStyle,
|
|
71
71
|
onClick: _Common.cancelBubblingEffect
|
|
72
72
|
}), dropBoxEle)) : !isAbsolutePositioningNeeded && isActive ? /*#__PURE__*/_react["default"].createElement(_Modal["default"], {
|
|
73
73
|
portalId: portalId
|
|
74
|
-
}, /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, isRestrictScroll ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isRestrictScroll ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
75
|
className: _DropBoxModule["default"].freezeLayer,
|
|
76
76
|
style: zIndexStyle,
|
|
77
77
|
onClick: _Common.cancelBubblingEffect
|
|
@@ -33,6 +33,7 @@ function DropBoxElement(props) {
|
|
|
33
33
|
palette = props.palette,
|
|
34
34
|
subContainerRef = props.subContainerRef,
|
|
35
35
|
customStyle = props.customStyle;
|
|
36
|
+
var isAbsolute = isAbsolutePositioningNeeded;
|
|
36
37
|
var FireOnAnimationEnd = function FireOnAnimationEnd() {
|
|
37
38
|
var element = subContainerRef && subContainerRef.current.classList;
|
|
38
39
|
(isAnimate ? _DropBoxElementModule["default"].fadeIn : _DropBoxElementModule["default"].bounce).split(' ').map(function (rmStyle) {
|
|
@@ -50,14 +51,14 @@ function DropBoxElement(props) {
|
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
if (!isAbsolutePositioningNeeded && size === 'default' && !isActive) {
|
|
53
|
-
|
|
54
|
+
isAbsolute = true;
|
|
54
55
|
}
|
|
55
56
|
var role = a11y.role,
|
|
56
57
|
ariaMultiselectable = a11y.ariaMultiselectable,
|
|
57
58
|
ariaLabelledby = a11y.ariaLabelledby;
|
|
58
59
|
boxPosition = boxPosition && boxPosition != 'undefined' ? boxPosition : 'bottomCenter';
|
|
59
60
|
var boxDirection = _DropBoxPositionMapping.positionMapping[boxPosition].direction;
|
|
60
|
-
if (
|
|
61
|
+
if (isAbsolute) {
|
|
61
62
|
arrowPosition = arrowPosition ? arrowPosition : _DropBoxPositionMapping.positionMapping[boxPosition].arrowPosition;
|
|
62
63
|
boxPosition = _DropBoxPositionMapping.positionMapping[boxPosition].positionStyle;
|
|
63
64
|
} else {
|
|
@@ -75,7 +76,8 @@ function DropBoxElement(props) {
|
|
|
75
76
|
boxPosition: boxPosition,
|
|
76
77
|
boxDirection: boxDirection,
|
|
77
78
|
boxstyle: boxstyle,
|
|
78
|
-
needBoxStyle: needBoxStyle
|
|
79
|
+
needBoxStyle: needBoxStyle,
|
|
80
|
+
isAbsolute: isAbsolute
|
|
79
81
|
}
|
|
80
82
|
}),
|
|
81
83
|
boxClassName = _cssJSLogic.boxClassName,
|
|
@@ -74,27 +74,23 @@
|
|
|
74
74
|
|
|
75
75
|
/* shadow */
|
|
76
76
|
.top_shadow {
|
|
77
|
-
--dropbox_box_shadow:
|
|
77
|
+
--dropbox_box_shadow: var(--zd_bs_dropbox_top);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.left_shadow {
|
|
81
|
-
--dropbox_box_shadow:
|
|
81
|
+
--dropbox_box_shadow: var(--zd_bs_dropbox_left);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.right_shadow {
|
|
85
|
-
--dropbox_box_shadow:
|
|
85
|
+
--dropbox_box_shadow: var(--zd_bs_dropbox_right);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.bottom_shadow {
|
|
89
|
-
--dropbox_box_shadow:
|
|
89
|
+
--dropbox_box_shadow: var(--zd_bs_dropbox_bottom);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
box-shadow:
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
[dir=rtl] .defaultShadow {
|
|
97
|
-
box-shadow: -4px 3px 30px var(--zdt_dropbox_default_box_shadow);
|
|
92
|
+
.defaultShadow {
|
|
93
|
+
box-shadow: var(--zd_bs_dropbox_default);
|
|
98
94
|
}
|
|
99
95
|
|
|
100
96
|
/* box direction styles */
|
|
@@ -21,7 +21,8 @@ function cssJSLogic(_ref) {
|
|
|
21
21
|
var boxPosition = customState.boxPosition,
|
|
22
22
|
boxDirection = customState.boxDirection,
|
|
23
23
|
boxstyle = customState.boxstyle,
|
|
24
|
-
needBoxStyle = customState.needBoxStyle
|
|
24
|
+
needBoxStyle = customState.needBoxStyle,
|
|
25
|
+
isAbsolute = customState.isAbsolute;
|
|
25
26
|
var _ref2 = DropBoxElementContext || {},
|
|
26
27
|
isReducedMotion = _ref2.isReducedMotion;
|
|
27
28
|
var isAnimate = props.isAnimate,
|
|
@@ -31,7 +32,6 @@ function cssJSLogic(_ref) {
|
|
|
31
32
|
animationStyle = props.animationStyle,
|
|
32
33
|
isActive = props.isActive,
|
|
33
34
|
isModel = props.isModel,
|
|
34
|
-
isAbsolutePositioningNeeded = props.isAbsolutePositioningNeeded,
|
|
35
35
|
isBoxPaddingNeed = props.isBoxPaddingNeed,
|
|
36
36
|
isPadding = props.isPadding,
|
|
37
37
|
customClass = props.customClass,
|
|
@@ -50,13 +50,13 @@ function cssJSLogic(_ref) {
|
|
|
50
50
|
|
|
51
51
|
// const {needBoxStyle,boxstyle} = useDropboxPosCalc(props)
|
|
52
52
|
|
|
53
|
-
var boxClassName = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.main, true), _defineProperty(_compileClassNames, style.hidden, !isActive), _defineProperty(_compileClassNames, style.responsive, !!isModel), _defineProperty(_compileClassNames, customMobileDropBoxWrap, !!isModel), _defineProperty(_compileClassNames, customDropBoxWrap, !isModel), _defineProperty(_compileClassNames, style.container,
|
|
53
|
+
var boxClassName = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.main, true), _defineProperty(_compileClassNames, style.hidden, !isActive), _defineProperty(_compileClassNames, style.responsive, !!isModel), _defineProperty(_compileClassNames, customMobileDropBoxWrap, !!isModel), _defineProperty(_compileClassNames, customDropBoxWrap, !isModel), _defineProperty(_compileClassNames, style.container, isAbsolute && !isModel), _defineProperty(_compileClassNames, style[boxPosition], isAbsolute && !isModel), _defineProperty(_compileClassNames, style.fixedContainer, !isAbsolute && !isModel), _defineProperty(_compileClassNames, style[size], size && !isModel), _defineProperty(_compileClassNames, style[boxDirection], !isModel && isActive && isArrow), _defineProperty(_compileClassNames, style["arrow".concat(boxDirection)], !isModel && isActive && isArrow && isAbsolute), _defineProperty(_compileClassNames, style["paddingSpace_".concat(boxDirection)], !isModel && isActive && !isArrow && isPadding), _compileClassNames));
|
|
54
54
|
var subContainerClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, style.subContainer, true), _defineProperty(_compileClassNames2, customMobileDropBox, !!isModel), _defineProperty(_compileClassNames2, style.mobRadius, !!isModel), _defineProperty(_compileClassNames2, style.slideUp, !!isModel && isActive), _defineProperty(_compileClassNames2, customDropBox, !isModel), _defineProperty(_compileClassNames2, style["".concat(boxDirection, "_shadow")], !isModel), _defineProperty(_compileClassNames2, style.boxPadding, !isModel && isBoxPaddingNeed), _defineProperty(_compileClassNames2, style.radius, !isModel && isRadius), _defineProperty(_compileClassNames2, style.fadeIn, !isModel && isAnimate && !isReducedMotion && isActive && animationStyle === 'default'), _defineProperty(_compileClassNames2, style.bounce, !isModel && isAnimate && !isReducedMotion && isActive && animationStyle === 'bounce'), _compileClassNames2));
|
|
55
|
-
var inlineStyle = !isModel ?
|
|
55
|
+
var inlineStyle = !isModel ? isAbsolute ? needBoxStyle && boxstyle : positionsOffset && positionsOffset[boxPosition] || {} : {};
|
|
56
56
|
if (zIndexStyle) {
|
|
57
57
|
inlineStyle = Object.assign({}, inlineStyle, zIndexStyle);
|
|
58
58
|
}
|
|
59
|
-
if (!isModel && !
|
|
59
|
+
if (!isModel && !isAbsolute && size === 'default' && targetOffset && isActive) {
|
|
60
60
|
inlineStyle = Object.assign({}, inlineStyle, {
|
|
61
61
|
width: targetOffset.width
|
|
62
62
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--dropbox_bg_color: var(--zdt_dropbox_default_bg);
|
|
4
4
|
--dropbox_border_radius: 0;
|
|
5
5
|
--dropbox_padding: 0;
|
|
6
|
-
--dropbox_box_shadow:
|
|
6
|
+
--dropbox_box_shadow: var(--zd_bs_dropbox_bottom);
|
|
7
7
|
|
|
8
8
|
/* dropbox arrow default variables */
|
|
9
9
|
--dropbox_arrow_box_shadow_color: var(--zdt_dropbox_arrow_shadow);
|
|
@@ -21,12 +21,17 @@
|
|
|
21
21
|
--ribbon_tag_before_left: calc(var(--zd_size10) * -1);
|
|
22
22
|
--ribbon_tag_before_border_radius: 3px 0 0 0;
|
|
23
23
|
}[dir=ltr] .varClass {
|
|
24
|
-
--ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0
|
|
25
|
-
|
|
24
|
+
--ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0
|
|
25
|
+
/*rtl: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12)*/
|
|
26
|
+
;
|
|
27
|
+
--ribbon_tag_before_border_width: 1px 0 0 1px
|
|
28
|
+
/*rtl: 1px 1px 0 0*/
|
|
29
|
+
;
|
|
26
30
|
}[dir=rtl] .varClass {
|
|
27
|
-
--ribbon_flag_border_width: var(--zd_size14)
|
|
28
|
-
--ribbon_tag_before_border_width: 1px
|
|
31
|
+
--ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0 ;
|
|
32
|
+
--ribbon_tag_before_border_width: 1px 0 0 1px ;
|
|
29
33
|
}
|
|
34
|
+
|
|
30
35
|
.basic {
|
|
31
36
|
composes: varClass;
|
|
32
37
|
position: relative;
|
|
@@ -41,6 +46,7 @@
|
|
|
41
46
|
border-style: solid;
|
|
42
47
|
border-color: var(--ribbon_border_color);
|
|
43
48
|
}
|
|
49
|
+
|
|
44
50
|
.default,
|
|
45
51
|
.flag,
|
|
46
52
|
.plain,
|
|
@@ -59,15 +65,19 @@
|
|
|
59
65
|
--ribbon_text_transform: uppercase;
|
|
60
66
|
text-align: center;
|
|
61
67
|
}
|
|
68
|
+
|
|
62
69
|
.small {
|
|
63
70
|
--ribbon_font_size: var(--zd_font_size9);
|
|
64
71
|
}
|
|
72
|
+
|
|
65
73
|
.medium {
|
|
66
74
|
--ribbon_font_size: var(--zd_font_size11);
|
|
67
75
|
}
|
|
76
|
+
|
|
68
77
|
.large {
|
|
69
78
|
--ribbon_font_size: var(--zd_font_size13);
|
|
70
79
|
}
|
|
80
|
+
|
|
71
81
|
.xlarge {
|
|
72
82
|
--ribbon_font_size: var(--zd_font_size14);
|
|
73
83
|
}
|
|
@@ -75,96 +85,125 @@
|
|
|
75
85
|
.palette_default {
|
|
76
86
|
--ribbon_bg_color: var(--zdt_ribbon_palette_bg);
|
|
77
87
|
}
|
|
88
|
+
|
|
78
89
|
.palette_danger {
|
|
79
90
|
--ribbon_bg_color: var(--zdt_ribbon_danger_bg);
|
|
80
91
|
}
|
|
92
|
+
|
|
81
93
|
.palette_primary {
|
|
82
94
|
--ribbon_bg_color: var(--zdt_ribbon_primary_bg);
|
|
83
95
|
}
|
|
96
|
+
|
|
84
97
|
.palette_secondary {
|
|
85
98
|
--ribbon_bg_color: var(--zdt_ribbon_secondary_bg);
|
|
86
99
|
}
|
|
100
|
+
|
|
87
101
|
.palette_info {
|
|
88
102
|
--ribbon_bg_color: var(--zdt_ribbon_info_bg);
|
|
89
103
|
}
|
|
104
|
+
|
|
90
105
|
.palette_dark {
|
|
91
106
|
--ribbon_bg_color: var(--zdt_ribbon_dark_bg);
|
|
92
107
|
}
|
|
108
|
+
|
|
93
109
|
.plain_default {
|
|
94
110
|
--ribbon_text_color: var(--zdt_ribbon_plain_text);
|
|
95
111
|
}
|
|
112
|
+
|
|
96
113
|
.plain_danger {
|
|
97
114
|
--ribbon_text_color: var(--zdt_ribbon_danger_text);
|
|
98
115
|
}
|
|
116
|
+
|
|
99
117
|
.plain_primary {
|
|
100
118
|
--ribbon_text_color: var(--zdt_ribbon_primary_text);
|
|
101
119
|
}
|
|
120
|
+
|
|
102
121
|
.plain_secondary {
|
|
103
122
|
--ribbon_text_color: var(--zdt_ribbon_secondary_text);
|
|
104
123
|
}
|
|
124
|
+
|
|
105
125
|
.plain_info {
|
|
106
126
|
--ribbon_text_color: var(--zdt_ribbon_info_text);
|
|
107
127
|
}
|
|
128
|
+
|
|
108
129
|
.plain_dark {
|
|
109
130
|
--ribbon_text_color: var(--zdt_ribbon_default_text);
|
|
110
131
|
}
|
|
132
|
+
|
|
111
133
|
.default_default {
|
|
112
|
-
--ribbon_box_shadow:
|
|
134
|
+
--ribbon_box_shadow: var(--zd_bs_ribbon_default);
|
|
113
135
|
}
|
|
136
|
+
|
|
114
137
|
.default_danger {
|
|
115
|
-
--ribbon_box_shadow:
|
|
138
|
+
--ribbon_box_shadow: var(--zd_bs_ribbon_danger);
|
|
116
139
|
}
|
|
140
|
+
|
|
117
141
|
.default_primary {
|
|
118
|
-
--ribbon_box_shadow:
|
|
142
|
+
--ribbon_box_shadow: var(--zd_bs_ribbon_primary);
|
|
119
143
|
}
|
|
144
|
+
|
|
120
145
|
.default_secondary {
|
|
121
|
-
--ribbon_box_shadow:
|
|
146
|
+
--ribbon_box_shadow: var(--zd_bs_ribbon_secondary);
|
|
122
147
|
}
|
|
148
|
+
|
|
123
149
|
.default_info {
|
|
124
|
-
--ribbon_box_shadow:
|
|
150
|
+
--ribbon_box_shadow: var(--zd_bs_ribbon_info);
|
|
125
151
|
}
|
|
152
|
+
|
|
126
153
|
.default_dark {
|
|
127
|
-
--ribbon_box_shadow:
|
|
154
|
+
--ribbon_box_shadow: var(--zd_bs_ribbon_dark);
|
|
128
155
|
}
|
|
156
|
+
|
|
129
157
|
.box_default {
|
|
130
158
|
--ribbon_border_width: 1px;
|
|
131
159
|
--ribbon_border_color: var(--zdt_ribbon_default_border);
|
|
132
160
|
}
|
|
161
|
+
|
|
133
162
|
.box_danger {
|
|
134
163
|
--ribbon_border_width: 1px;
|
|
135
164
|
--ribbon_border_color: var(--zdt_ribbon_danger_border);
|
|
136
165
|
}
|
|
166
|
+
|
|
137
167
|
.box_primary {
|
|
138
168
|
--ribbon_border_width: 1px;
|
|
139
169
|
--ribbon_border_color: var(--zdt_ribbon_primary_border);
|
|
140
170
|
}
|
|
171
|
+
|
|
141
172
|
.box_secondary {
|
|
142
173
|
--ribbon_border_width: 1px;
|
|
143
174
|
--ribbon_border_color: var(--zdt_ribbon_secondary_border);
|
|
144
175
|
}
|
|
176
|
+
|
|
145
177
|
.box_info {
|
|
146
178
|
--ribbon_border_width: 1px;
|
|
147
179
|
--ribbon_border_color: var(--zdt_ribbon_info_border);
|
|
148
180
|
}
|
|
181
|
+
|
|
149
182
|
.box_dark {
|
|
150
183
|
--ribbon_border_width: 1px;
|
|
151
184
|
--ribbon_border_color: var(--zdt_ribbon_dark_border);
|
|
152
185
|
}
|
|
186
|
+
|
|
153
187
|
.stamp_default {
|
|
154
188
|
--ribbon_bg_color: var(--zdt_ribbon_default_stamp_bg);
|
|
155
189
|
}
|
|
190
|
+
|
|
156
191
|
.stamp_danger {
|
|
157
192
|
--ribbon_bg_color: var(--zdt_ribbon_danger_stamp_bg);
|
|
158
193
|
}
|
|
194
|
+
|
|
159
195
|
.stamp_primary {
|
|
160
196
|
--ribbon_bg_color: var(--zdt_ribbon_primary_stamp_bg);
|
|
161
197
|
}
|
|
198
|
+
|
|
162
199
|
.stamp_secondary {
|
|
163
200
|
--ribbon_bg_color: var(--zdt_ribbon_secondary_stamp_bg);
|
|
164
201
|
}
|
|
202
|
+
|
|
165
203
|
.stamp_info {
|
|
166
204
|
--ribbon_bg_color: var(--zdt_ribbon_info_stamp_bg);
|
|
167
205
|
}
|
|
206
|
+
|
|
168
207
|
.stamp_dark {
|
|
169
208
|
--ribbon_bg_color: var(--zdt_ribbon_dark_stamp_bg);
|
|
170
209
|
}
|
|
@@ -178,12 +217,15 @@
|
|
|
178
217
|
}
|
|
179
218
|
|
|
180
219
|
[dir=ltr] .flag {
|
|
181
|
-
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6)
|
|
220
|
+
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6)
|
|
221
|
+
/*rtl: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24)*/
|
|
222
|
+
;
|
|
182
223
|
}
|
|
183
224
|
|
|
184
225
|
[dir=rtl] .flag {
|
|
185
|
-
--ribbon_padding: var(--zd_size4) var(--
|
|
226
|
+
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6) ;
|
|
186
227
|
}
|
|
228
|
+
|
|
187
229
|
.flag::after {
|
|
188
230
|
position: absolute;
|
|
189
231
|
top: -1px;
|
|
@@ -194,19 +236,22 @@
|
|
|
194
236
|
transform: translateZ(0);
|
|
195
237
|
border-width: var(--ribbon_flag_border_width);
|
|
196
238
|
}
|
|
239
|
+
|
|
197
240
|
[dir=ltr] .flag::after {
|
|
198
241
|
right: -1px;
|
|
199
|
-
border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border)
|
|
200
|
-
var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
|
|
242
|
+
border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
|
|
201
243
|
}
|
|
244
|
+
|
|
202
245
|
[dir=rtl] .flag::after {
|
|
203
246
|
left: -1px;
|
|
204
|
-
border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border)
|
|
247
|
+
border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border);
|
|
205
248
|
}
|
|
249
|
+
|
|
206
250
|
.plain {
|
|
207
251
|
display: inline-block;
|
|
208
252
|
composes: semibold from '../common/common.module.css';
|
|
209
253
|
}
|
|
254
|
+
|
|
210
255
|
.ribbon {
|
|
211
256
|
composes: semibold from '../common/common.module.css';
|
|
212
257
|
display: block;
|
|
@@ -216,6 +261,7 @@
|
|
|
216
261
|
--ribbon_line_height: var(--zd_size20);
|
|
217
262
|
text-align: center;
|
|
218
263
|
}
|
|
264
|
+
|
|
219
265
|
.ribbon::after,
|
|
220
266
|
.ribbon::before {
|
|
221
267
|
position: absolute;
|
|
@@ -224,28 +270,34 @@
|
|
|
224
270
|
height: var(--zd_size10);
|
|
225
271
|
width: var(--zd_size10);
|
|
226
272
|
}
|
|
273
|
+
|
|
227
274
|
.ribbon::after, .ribbon::before {
|
|
228
275
|
border-style: solid;
|
|
229
276
|
border-width: 5px;
|
|
230
277
|
background-color: inherit;
|
|
231
278
|
}
|
|
279
|
+
|
|
232
280
|
[dir=ltr] .ribbon::after, [dir=ltr] .ribbon::before {
|
|
233
|
-
border-color: transparent transparent var(--zdt_ribbon_flag_white_border)
|
|
234
|
-
var(--zdt_ribbon_flag_white_border);
|
|
281
|
+
border-color: transparent transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border);
|
|
235
282
|
}
|
|
283
|
+
|
|
236
284
|
[dir=rtl] .ribbon::after, [dir=rtl] .ribbon::before {
|
|
237
|
-
border-color: transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border)
|
|
285
|
+
border-color: transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border) transparent;
|
|
238
286
|
}
|
|
287
|
+
|
|
239
288
|
[dir=ltr] .ribbon::after {
|
|
240
289
|
right: 0;
|
|
241
290
|
}
|
|
291
|
+
|
|
242
292
|
[dir=rtl] .ribbon::after {
|
|
243
293
|
left: 0;
|
|
244
294
|
}
|
|
295
|
+
|
|
245
296
|
[dir=ltr] .ribbon::before {
|
|
246
297
|
left: 0;
|
|
247
298
|
transform: rotateY(180deg);
|
|
248
299
|
}
|
|
300
|
+
|
|
249
301
|
[dir=rtl] .ribbon::before {
|
|
250
302
|
right: 0;
|
|
251
303
|
transform: rotateY(-180deg);
|
|
@@ -260,18 +312,25 @@
|
|
|
260
312
|
}
|
|
261
313
|
|
|
262
314
|
[dir=ltr] .tag {
|
|
263
|
-
border-width: 1px 1px 1px 0
|
|
264
|
-
|
|
315
|
+
border-width: 1px 1px 1px 0
|
|
316
|
+
/*rtl: 1px 0 1px 1px*/
|
|
317
|
+
;
|
|
318
|
+
border-radius: 0 3px 3px 0
|
|
319
|
+
/*rtl: 3px 0 0 3px*/
|
|
320
|
+
;
|
|
265
321
|
margin-left: var(--zd_size13);
|
|
266
|
-
padding: var(--zd_size6) var(--zd_size8) var(--zd_size6) var(--zd_size5)
|
|
322
|
+
padding: var(--zd_size6) var(--zd_size8) var(--zd_size6) var(--zd_size5)
|
|
323
|
+
/*rtl: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8)*/
|
|
324
|
+
;
|
|
267
325
|
}
|
|
268
326
|
|
|
269
327
|
[dir=rtl] .tag {
|
|
270
|
-
border-width: 1px 0 1px 1px;
|
|
271
|
-
border-radius: 3px 0 0 3px;
|
|
328
|
+
border-width: 1px 0 1px 1px ;
|
|
329
|
+
border-radius: 3px 0 0 3px ;
|
|
272
330
|
margin-right: var(--zd_size13);
|
|
273
|
-
padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8);
|
|
331
|
+
padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8) ;
|
|
274
332
|
}
|
|
333
|
+
|
|
275
334
|
.tag::before {
|
|
276
335
|
position: absolute;
|
|
277
336
|
content: '';
|
|
@@ -284,10 +343,12 @@
|
|
|
284
343
|
border-width: var(--ribbon_tag_before_border_width);
|
|
285
344
|
border-radius: var(--ribbon_tag_before_border_radius);
|
|
286
345
|
}
|
|
346
|
+
|
|
287
347
|
[dir=ltr] .tag::before {
|
|
288
348
|
transform: rotate(-45deg);
|
|
289
349
|
left: var(--ribbon_tag_before_left);
|
|
290
350
|
}
|
|
351
|
+
|
|
291
352
|
[dir=rtl] .tag::before {
|
|
292
353
|
transform: rotate(45deg);
|
|
293
354
|
right: var(--ribbon_tag_before_left);
|
|
@@ -299,11 +360,13 @@
|
|
|
299
360
|
--ribbon_padding: var(--zd_size5) var(--zd_size8);
|
|
300
361
|
border-radius: 3px;
|
|
301
362
|
}
|
|
363
|
+
|
|
302
364
|
.stamp {
|
|
303
365
|
display: inline-block;
|
|
304
366
|
--ribbon_padding: var(--zd_size3) var(--zd_size5);
|
|
305
367
|
--ribbon_text_transform: uppercase;
|
|
306
368
|
}
|
|
369
|
+
|
|
307
370
|
.sticker {
|
|
308
371
|
display: block;
|
|
309
372
|
height: var(--zd_size18);
|
|
@@ -316,6 +379,7 @@
|
|
|
316
379
|
border-color: var(--zdt_ribbon_flag_white_border);
|
|
317
380
|
padding: var(--zd_size3) var(--zd_size10);
|
|
318
381
|
}
|
|
382
|
+
|
|
319
383
|
.after,
|
|
320
384
|
.before {
|
|
321
385
|
position: absolute;
|
|
@@ -323,18 +387,23 @@
|
|
|
323
387
|
bottom: 0;
|
|
324
388
|
width: var(--zd_size10);
|
|
325
389
|
}
|
|
390
|
+
|
|
326
391
|
[dir=ltr] .after {
|
|
327
392
|
right: calc(var(--zd_size2) * -1);
|
|
328
393
|
}
|
|
394
|
+
|
|
329
395
|
[dir=rtl] .after {
|
|
330
396
|
left: calc(var(--zd_size2) * -1);
|
|
331
397
|
}
|
|
398
|
+
|
|
332
399
|
[dir=ltr] .before {
|
|
333
400
|
left: calc(var(--zd_size8) * -1);
|
|
334
401
|
}
|
|
402
|
+
|
|
335
403
|
[dir=rtl] .before {
|
|
336
404
|
right: calc(var(--zd_size8) * -1);
|
|
337
405
|
}
|
|
406
|
+
|
|
338
407
|
.after::after,
|
|
339
408
|
.after::before,
|
|
340
409
|
.before::after,
|
|
@@ -344,34 +413,43 @@
|
|
|
344
413
|
width: var(--zd_size7);
|
|
345
414
|
content: '';
|
|
346
415
|
}
|
|
416
|
+
|
|
347
417
|
.after::after, .after::before, .before::after, .before::before {
|
|
348
418
|
background-color: var(--zdt_ribbon_white_bg);
|
|
349
419
|
}
|
|
420
|
+
|
|
350
421
|
[dir=ltr] .after::after, [dir=ltr] .after::before, [dir=ltr] .before::after, [dir=ltr] .before::before {
|
|
351
422
|
transform: rotate(45deg);
|
|
352
423
|
}
|
|
424
|
+
|
|
353
425
|
[dir=rtl] .after::after, [dir=rtl] .after::before, [dir=rtl] .before::after, [dir=rtl] .before::before {
|
|
354
426
|
transform: rotate(-45deg);
|
|
355
427
|
}
|
|
428
|
+
|
|
356
429
|
.after::after,
|
|
357
430
|
.before::after {
|
|
358
431
|
top: 0;
|
|
359
432
|
}
|
|
433
|
+
|
|
360
434
|
.after::before,
|
|
361
435
|
.before::before {
|
|
362
436
|
bottom: 0;
|
|
363
437
|
}
|
|
438
|
+
|
|
364
439
|
.children {
|
|
365
440
|
display: inline-block;
|
|
366
441
|
vertical-align: top;
|
|
367
442
|
line-height: 0;
|
|
368
443
|
}
|
|
444
|
+
|
|
369
445
|
[dir=ltr] .children {
|
|
370
446
|
margin-right: var(--zd_size4);
|
|
371
447
|
}
|
|
448
|
+
|
|
372
449
|
[dir=rtl] .children {
|
|
373
450
|
margin-left: var(--zd_size4);
|
|
374
451
|
}
|
|
452
|
+
|
|
375
453
|
.childText {
|
|
376
454
|
position: relative;
|
|
377
455
|
}
|
package/lib/Select/Select.js
CHANGED
|
@@ -687,7 +687,12 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
687
687
|
autoComplete = _this$props11.autoComplete,
|
|
688
688
|
ariaLabelledby = _this$props11.ariaLabelledby,
|
|
689
689
|
isLoading = _this$props11.isLoading,
|
|
690
|
-
dataSelectorId = _this$props11.dataSelectorId
|
|
690
|
+
dataSelectorId = _this$props11.dataSelectorId,
|
|
691
|
+
isAbsolutePositioningNeeded = _this$props11.isAbsolutePositioningNeeded,
|
|
692
|
+
positionsOffset = _this$props11.positionsOffset,
|
|
693
|
+
targetOffset = _this$props11.targetOffset,
|
|
694
|
+
isRestrictScroll = _this$props11.isRestrictScroll,
|
|
695
|
+
dropBoxPortalId = _this$props11.dropBoxPortalId;
|
|
691
696
|
var _i18nKeys = i18nKeys,
|
|
692
697
|
TextBoxIcon_i18n = _i18nKeys.TextBoxIcon_i18n,
|
|
693
698
|
_i18nKeys$TextBox_all = _i18nKeys.TextBox_ally_label,
|
|
@@ -825,7 +830,12 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
825
830
|
size: boxSize,
|
|
826
831
|
isPadding: false,
|
|
827
832
|
isResponsivePadding: getFooter ? false : true,
|
|
828
|
-
alignBox: "row"
|
|
833
|
+
alignBox: "row",
|
|
834
|
+
isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
|
|
835
|
+
positionsOffset: positionsOffset,
|
|
836
|
+
targetOffset: targetOffset,
|
|
837
|
+
isRestrictScroll: isRestrictScroll,
|
|
838
|
+
portalId: dropBoxPortalId
|
|
829
839
|
}, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
830
840
|
align: "both",
|
|
831
841
|
className: _SelectModule["default"].loader
|