@zohodesk/components 1.0.0-temp-190.2 → 1.0.0-temp-191
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/.cli/PropLessFiles.html +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +12 -5
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -29
- package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -29
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -29
- package/es/AppContainer/AppContainer.js +10 -9
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +4 -5
- package/es/Avatar/Avatar.module.css +22 -52
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +74 -66
- package/es/Button/Button.js +5 -6
- package/es/Button/css/Button.module.css +100 -162
- package/es/Buttongroup/Buttongroup.module.css +17 -52
- package/es/CheckBox/CheckBox.js +18 -8
- package/es/CheckBox/CheckBox.module.css +60 -37
- package/es/CheckBox/props/propTypes.js +1 -0
- package/es/DateTime/DateTime.module.css +57 -86
- package/es/DateTime/DateWidget.module.css +7 -11
- package/es/DateTime/YearView.module.css +21 -34
- package/es/DropBox/DropBox.js +10 -11
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
- package/es/DropBox/css/DropBox.module.css +6 -24
- package/es/DropDown/DropDown.js +2 -1
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +13 -19
- package/es/DropDown/DropDownItem.module.css +22 -43
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +23 -12
- package/es/Label/LabelColors.module.css +7 -1
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +6 -5
- package/es/ListItem/ListItem.js +4 -5
- package/es/ListItem/ListItem.module.css +87 -90
- package/es/ListItem/ListItemWithAvatar.js +4 -5
- package/es/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/ListItem/ListItemWithIcon.js +4 -5
- package/es/ListItem/ListItemWithRadio.js +4 -5
- package/es/Modal/Modal.js +4 -5
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
- package/es/MultiSelect/MultiSelect.module.css +69 -55
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/MultiSelect/SelectedOptions.js +6 -8
- package/es/MultiSelect/SelectedOptions.module.css +5 -11
- package/es/MultiSelect/Suggestions.js +6 -8
- package/es/PopOver/PopOver.module.css +4 -4
- package/es/Popup/Popup.js +3 -4
- package/es/Radio/Radio.js +25 -6
- package/es/Radio/Radio.module.css +40 -23
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/es/Radio/props/defaultProps.js +1 -0
- package/es/Radio/props/propTypes.js +7 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +64 -147
- package/es/RippleEffect/RippleEffect.module.css +27 -9
- package/es/Select/Select.js +4 -5
- package/es/Select/Select.module.css +22 -33
- package/es/Stencils/Stencils.module.css +14 -32
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +35 -32
- package/es/Tab/Tab.js +4 -5
- package/es/Tab/Tab.module.css +39 -28
- package/es/Tab/TabContentWrapper.js +4 -5
- package/es/Tab/TabWrapper.js +2 -4
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +29 -51
- package/es/Tag/Tag.module.css +91 -66
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +20 -36
- package/es/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/TextBoxIcon/TextBoxIcon.module.css +6 -18
- package/es/Textarea/Textarea.js +4 -6
- package/es/Textarea/Textarea.module.css +60 -36
- package/es/Tooltip/Tooltip.module.css +13 -12
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/common/animation.module.css +29 -227
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +15 -5
- package/es/common/common.module.css +36 -82
- package/es/common/customscroll.module.css +32 -29
- package/es/common/transition.module.css +10 -50
- package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/Animation/Animation.js +1 -1
- package/es/v1/AppContainer/AppContainer.js +10 -9
- package/es/v1/Avatar/Avatar.js +4 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +5 -6
- package/es/v1/Card/Card.js +1 -1
- package/es/v1/CheckBox/CheckBox.js +15 -9
- package/es/v1/CheckBox/props/propTypes.js +1 -0
- package/es/v1/DropBox/DropBox.js +10 -11
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/DropDown/DropDown.js +2 -1
- package/es/v1/ListItem/ListContainer.js +7 -6
- package/es/v1/ListItem/ListItem.js +4 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
- package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/v1/ListItem/ListItemWithIcon.js +4 -5
- package/es/v1/ListItem/ListItemWithRadio.js +4 -5
- package/es/v1/Modal/Modal.js +4 -5
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -10
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -6
- package/es/v1/MultiSelect/SelectedOptions.js +6 -8
- package/es/v1/MultiSelect/Suggestions.js +6 -8
- package/es/v1/MultiSelect/props/defaultProps.js +1 -1
- package/es/v1/Popup/Popup.js +3 -4
- package/es/v1/Radio/Radio.js +21 -6
- package/es/v1/Radio/props/defaultProps.js +1 -0
- package/es/v1/Radio/props/propTypes.js +7 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +3 -5
- package/es/v1/Select/GroupSelect.js +1 -1
- package/es/v1/Select/Select.js +5 -6
- package/es/v1/Select/SelectWithAvatar.js +5 -7
- package/es/v1/Select/SelectWithIcon.js +1 -1
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Select/props/propTypes.js +1 -3
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +4 -5
- package/es/v1/Tab/TabContentWrapper.js +4 -5
- package/es/v1/Tab/TabWrapper.js +2 -4
- package/es/v1/Tab/Tabs.js +18 -18
- package/es/v1/Tab/v1Tab.module.css +39 -28
- package/es/v1/Tab/v1Tabs.module.css +29 -51
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/v1/Textarea/Textarea.js +4 -6
- package/es/v1/Tooltip/Tooltip.js +1 -1
- package/es/v1/Typography/css/Typography.module.css +33 -39
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +22 -52
- package/lib/AvatarTeam/AvatarTeam.module.css +74 -66
- package/lib/Button/css/Button.module.css +100 -162
- package/lib/Buttongroup/Buttongroup.module.css +17 -52
- package/lib/CheckBox/CheckBox.js +34 -24
- package/lib/CheckBox/CheckBox.module.css +60 -37
- package/lib/CheckBox/props/propTypes.js +1 -0
- package/lib/DateTime/DateTime.module.css +57 -86
- package/lib/DateTime/DateWidget.module.css +7 -11
- package/lib/DateTime/YearView.module.css +21 -34
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
- package/lib/DropBox/css/DropBox.module.css +6 -24
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +13 -19
- package/lib/DropDown/DropDownItem.module.css +22 -43
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +23 -12
- package/lib/Label/LabelColors.module.css +7 -1
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +87 -90
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
- package/lib/MultiSelect/MultiSelect.module.css +69 -55
- package/lib/MultiSelect/SelectedOptions.module.css +5 -11
- package/lib/PopOver/PopOver.module.css +4 -4
- package/lib/Radio/Radio.js +45 -26
- package/lib/Radio/Radio.module.css +40 -23
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/lib/Radio/props/defaultProps.js +1 -0
- package/lib/Radio/props/propTypes.js +7 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +64 -147
- package/lib/RippleEffect/RippleEffect.module.css +27 -9
- package/lib/Select/Select.module.css +22 -33
- package/lib/Stencils/Stencils.module.css +14 -32
- package/lib/Switch/Switch.module.css +35 -32
- package/lib/Tab/Tab.module.css +39 -28
- package/lib/Tab/Tabs.module.css +29 -51
- package/lib/Tag/Tag.module.css +91 -66
- package/lib/TextBox/TextBox.module.css +20 -36
- package/lib/TextBoxIcon/TextBoxIcon.module.css +6 -18
- package/lib/Textarea/Textarea.module.css +60 -36
- package/lib/Tooltip/Tooltip.module.css +13 -12
- package/lib/common/animation.module.css +29 -227
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +15 -5
- package/lib/common/common.module.css +36 -82
- package/lib/common/customscroll.module.css +32 -29
- package/lib/common/transition.module.css +10 -50
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/Animation/Animation.js +1 -1
- package/lib/v1/Card/Card.js +1 -1
- package/lib/v1/CheckBox/CheckBox.js +7 -1
- package/lib/v1/CheckBox/props/propTypes.js +1 -0
- package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/lib/v1/ListItem/ListContainer.js +1 -1
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/lib/v1/MultiSelect/props/defaultProps.js +1 -1
- package/lib/v1/Radio/Radio.js +22 -7
- package/lib/v1/Radio/props/defaultProps.js +1 -0
- package/lib/v1/Radio/props/propTypes.js +7 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/lib/v1/Select/GroupSelect.js +1 -1
- package/lib/v1/Select/Select.js +1 -1
- package/lib/v1/Select/SelectWithAvatar.js +4 -6
- package/lib/v1/Select/SelectWithIcon.js +1 -1
- package/lib/v1/Select/props/defaultProps.js +1 -1
- package/lib/v1/Select/props/propTypes.js +1 -3
- package/lib/v1/Tab/Tabs.js +2 -2
- package/lib/v1/Tab/v1Tab.module.css +39 -28
- package/lib/v1/Tab/v1Tabs.module.css +29 -51
- package/lib/v1/Tooltip/Tooltip.js +1 -1
- package/lib/v1/Typography/css/Typography.module.css +33 -39
- package/package.json +10 -10
- package/es/v1/Provider/AvatarSize.js +0 -13
- package/es/v1/Provider/Config.js +0 -18
- package/es/v1/Provider/CssProvider.js +0 -16
- package/es/v1/Provider/IdProvider.js +0 -66
- package/es/v1/Provider/LibraryContext.js +0 -37
- package/es/v1/Provider/LibraryContextInit.js +0 -3
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
- package/es/v1/Provider/ZindexProvider.js +0 -57
- package/es/v1/Provider/index.js +0 -4
- package/es/v1/Responsive/CustomResponsive.js +0 -195
- package/es/v1/Responsive/RefWrapper.js +0 -39
- package/es/v1/Responsive/ResizeComponent.js +0 -197
- package/es/v1/Responsive/ResizeObserver.js +0 -140
- package/es/v1/Responsive/Responsive.js +0 -194
- package/es/v1/Responsive/index.js +0 -9
- package/es/v1/Responsive/props/defaultProps.js +0 -13
- package/es/v1/Responsive/props/propTypes.js +0 -25
- package/lib/v1/Provider/AvatarSize.js +0 -24
- package/lib/v1/Provider/Config.js +0 -27
- package/lib/v1/Provider/CssProvider.js +0 -27
- package/lib/v1/Provider/IdProvider.js +0 -79
- package/lib/v1/Provider/LibraryContext.js +0 -76
- package/lib/v1/Provider/LibraryContextInit.js +0 -15
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
- package/lib/v1/Provider/ZindexProvider.js +0 -69
- package/lib/v1/Provider/index.js +0 -81
- package/lib/v1/Responsive/CustomResponsive.js +0 -242
- package/lib/v1/Responsive/RefWrapper.js +0 -57
- package/lib/v1/Responsive/ResizeComponent.js +0 -268
- package/lib/v1/Responsive/ResizeObserver.js +0 -168
- package/lib/v1/Responsive/Responsive.js +0 -274
- package/lib/v1/Responsive/index.js +0 -55
- package/lib/v1/Responsive/props/defaultProps.js +0 -23
- package/lib/v1/Responsive/props/propTypes.js +0 -39
- package/result.json +0 -1
package/lib/CheckBox/CheckBox.js
CHANGED
|
@@ -57,6 +57,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
|
|
58
58
|
_this = _super.call(this, props);
|
|
59
59
|
_this.onChange = _this.onChange.bind(_assertThisInitialized(_this));
|
|
60
|
+
_this.handleGetContainerRef = _this.handleGetContainerRef.bind(_assertThisInitialized(_this));
|
|
60
61
|
return _this;
|
|
61
62
|
}
|
|
62
63
|
|
|
@@ -68,33 +69,41 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
68
69
|
checked = _this$props.checked;
|
|
69
70
|
onChange && onChange(!checked, e);
|
|
70
71
|
}
|
|
72
|
+
}, {
|
|
73
|
+
key: "handleGetContainerRef",
|
|
74
|
+
value: function handleGetContainerRef(ele) {
|
|
75
|
+
var _this$props2 = this.props,
|
|
76
|
+
getContainerRef = _this$props2.getContainerRef,
|
|
77
|
+
id = _this$props2.id;
|
|
78
|
+
getContainerRef && getContainerRef(ele, id);
|
|
79
|
+
}
|
|
71
80
|
}, {
|
|
72
81
|
key: "render",
|
|
73
82
|
value: function render() {
|
|
74
|
-
var _this$
|
|
75
|
-
id = _this$
|
|
76
|
-
checked = _this$
|
|
77
|
-
disabled = _this$
|
|
78
|
-
isReadOnly = _this$
|
|
79
|
-
disabledTitle = _this$
|
|
80
|
-
title = _this$
|
|
81
|
-
palette = _this$
|
|
82
|
-
text = _this$
|
|
83
|
-
size = _this$
|
|
84
|
-
labelPalette = _this$
|
|
85
|
-
labelSize = _this$
|
|
86
|
-
isFilled = _this$
|
|
87
|
-
isClipped = _this$
|
|
88
|
-
getRef = _this$
|
|
89
|
-
variant = _this$
|
|
90
|
-
active = _this$
|
|
91
|
-
dataId = _this$
|
|
92
|
-
name = _this$
|
|
93
|
-
activeStyle = _this$
|
|
94
|
-
a11y = _this$
|
|
95
|
-
customClass = _this$
|
|
96
|
-
customProps = _this$
|
|
97
|
-
dataSelectorId = _this$
|
|
83
|
+
var _this$props3 = this.props,
|
|
84
|
+
id = _this$props3.id,
|
|
85
|
+
checked = _this$props3.checked,
|
|
86
|
+
disabled = _this$props3.disabled,
|
|
87
|
+
isReadOnly = _this$props3.isReadOnly,
|
|
88
|
+
disabledTitle = _this$props3.disabledTitle,
|
|
89
|
+
title = _this$props3.title,
|
|
90
|
+
palette = _this$props3.palette,
|
|
91
|
+
text = _this$props3.text,
|
|
92
|
+
size = _this$props3.size,
|
|
93
|
+
labelPalette = _this$props3.labelPalette,
|
|
94
|
+
labelSize = _this$props3.labelSize,
|
|
95
|
+
isFilled = _this$props3.isFilled,
|
|
96
|
+
isClipped = _this$props3.isClipped,
|
|
97
|
+
getRef = _this$props3.getRef,
|
|
98
|
+
variant = _this$props3.variant,
|
|
99
|
+
active = _this$props3.active,
|
|
100
|
+
dataId = _this$props3.dataId,
|
|
101
|
+
name = _this$props3.name,
|
|
102
|
+
activeStyle = _this$props3.activeStyle,
|
|
103
|
+
a11y = _this$props3.a11y,
|
|
104
|
+
customClass = _this$props3.customClass,
|
|
105
|
+
customProps = _this$props3.customProps,
|
|
106
|
+
dataSelectorId = _this$props3.dataSelectorId;
|
|
98
107
|
var _customProps$CheckBox = customProps.CheckBoxProps,
|
|
99
108
|
CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
|
|
100
109
|
_customProps$LabelPro = customProps.LabelProps,
|
|
@@ -127,6 +136,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
|
|
|
127
136
|
onClick: isReadOnly || disabled ? null : this.onChange,
|
|
128
137
|
tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
129
138
|
"aria-checked": ariaChecked,
|
|
139
|
+
eleRef: this.handleGetContainerRef,
|
|
130
140
|
role: role,
|
|
131
141
|
"aria-label": ariaLabel,
|
|
132
142
|
"aria-labelledby": ariaLabelledby,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* checkbox default variables */
|
|
3
|
-
--checkbox_bg_color: var(--
|
|
3
|
+
--checkbox_bg_color: var(--zdt_base_bg);
|
|
4
4
|
--checkbox_cursor: default;
|
|
5
5
|
--checkbox_stroke_width: 2px;
|
|
6
6
|
--checkbox_stroke_color: var(--zdt_checkbox_default_stroke_border);
|
|
@@ -9,141 +9,161 @@
|
|
|
9
9
|
--checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
|
|
10
10
|
--checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
.container {
|
|
13
14
|
composes: varClass;
|
|
14
15
|
stroke: var(--checkbox_stroke_color);
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
.container,
|
|
19
|
+
.pointer,
|
|
20
|
+
.readonly {
|
|
17
21
|
cursor: var(--checkbox_cursor);
|
|
18
22
|
}
|
|
23
|
+
|
|
19
24
|
.pointer {
|
|
20
25
|
--checkbox_cursor: pointer;
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.readonly {
|
|
23
29
|
--checkbox_cursor: default;
|
|
24
30
|
}
|
|
31
|
+
|
|
25
32
|
.cbBox {
|
|
26
33
|
fill: none;
|
|
27
34
|
stroke-width: var(--checkbox_stroke_width);
|
|
28
35
|
stroke-linecap: round;
|
|
29
36
|
stroke: inherit;
|
|
30
37
|
}
|
|
38
|
+
|
|
31
39
|
.tickPath {
|
|
32
40
|
composes: cbBox;
|
|
33
41
|
stroke-dasharray: 40;
|
|
34
42
|
}
|
|
43
|
+
|
|
35
44
|
.boxContainer {
|
|
36
45
|
composes: offSelection from '../common/common.module.css';
|
|
37
|
-
/* css:theme-validation:ignore */
|
|
38
46
|
border-radius: 2px;
|
|
39
47
|
background-color: var(--checkbox_bg_color);
|
|
40
48
|
}
|
|
49
|
+
|
|
41
50
|
.filled {
|
|
42
51
|
--checkbox_bg_color: inherit;
|
|
43
52
|
}
|
|
53
|
+
|
|
44
54
|
.medium {
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
55
|
+
width: 16px;
|
|
56
|
+
height: 16px;
|
|
47
57
|
}
|
|
58
|
+
|
|
48
59
|
.small {
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
60
|
+
width: 13px;
|
|
61
|
+
height: 13px;
|
|
51
62
|
}
|
|
52
63
|
|
|
53
64
|
.checkbox {
|
|
54
65
|
position: relative;
|
|
55
|
-
font-size: 0
|
|
66
|
+
font-size: 0;
|
|
56
67
|
display: block;
|
|
57
68
|
}
|
|
69
|
+
|
|
70
|
+
/*rtl:begin:ignore*/
|
|
58
71
|
.tick {
|
|
59
72
|
position: absolute;
|
|
60
|
-
left: 0
|
|
73
|
+
left: 0;
|
|
61
74
|
}
|
|
75
|
+
|
|
76
|
+
/*rtl:end:ignore*/
|
|
62
77
|
.mediumtick {
|
|
63
|
-
top:
|
|
64
|
-
height:
|
|
65
|
-
width:
|
|
78
|
+
top: -2px;
|
|
79
|
+
height: 20px;
|
|
80
|
+
width: 20px;
|
|
66
81
|
}
|
|
82
|
+
|
|
83
|
+
/*rtl:begin:ignore*/
|
|
67
84
|
.smalltick {
|
|
68
|
-
top:
|
|
69
|
-
height:
|
|
70
|
-
width:
|
|
71
|
-
left:
|
|
85
|
+
top: -3px;
|
|
86
|
+
height: 18px;
|
|
87
|
+
width: 18px;
|
|
88
|
+
left: -1px;
|
|
72
89
|
}
|
|
73
90
|
|
|
91
|
+
/*rtl:end:ignore*/
|
|
92
|
+
|
|
74
93
|
.checkedtickPath {
|
|
75
94
|
stroke-dashoffset: 40;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
[dir=ltr] .checkedtickPath {
|
|
79
95
|
animation: tickAnimate var(--zd_transition3) ease forwards;
|
|
80
96
|
}
|
|
81
97
|
|
|
82
|
-
[dir=rtl] .checkedtickPath {
|
|
83
|
-
animation: tickAnimate var(--zd_transition3) ease forwards;
|
|
84
|
-
}
|
|
85
98
|
.linePath {
|
|
86
99
|
transform-origin: center;
|
|
87
|
-
}
|
|
88
|
-
[dir=ltr] .linePath {
|
|
89
100
|
animation: lineAnimate var(--zd_transition3) ease forwards;
|
|
90
101
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
[dir=ltr] .text {
|
|
95
|
-
margin-left: var(--zd_size6) ;
|
|
96
|
-
}
|
|
97
|
-
[dir=rtl] .text {
|
|
98
|
-
margin-right: var(--zd_size6) ;
|
|
102
|
+
|
|
103
|
+
.text {
|
|
104
|
+
margin-left: 6px;
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
.checkedprimary,
|
|
102
108
|
.checkeddanger {
|
|
103
109
|
stroke: var(--checkbox_checked_stroke_color);
|
|
104
110
|
}
|
|
111
|
+
|
|
105
112
|
.primary:hover
|
|
113
|
+
|
|
106
114
|
/* .primary:focus */
|
|
107
|
-
{
|
|
115
|
+
{
|
|
108
116
|
--checkbox_stroke_color: var(--zdt_checkbox_primary_stroke_border);
|
|
109
117
|
}
|
|
118
|
+
|
|
110
119
|
.checkedprimary {
|
|
111
120
|
--checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
|
|
112
121
|
}
|
|
122
|
+
|
|
113
123
|
.danger:hover
|
|
124
|
+
|
|
114
125
|
/* .danger:focus */
|
|
115
|
-
|
|
126
|
+
{
|
|
116
127
|
--checkbox_stroke_color: var(--zdt_checkbox_danger_stroke_border);
|
|
117
128
|
}
|
|
129
|
+
|
|
118
130
|
.checkeddanger {
|
|
119
131
|
--checkbox_checked_stroke_color: var(--zdt_checkbox_danger_stroke_border);
|
|
120
132
|
}
|
|
121
133
|
|
|
122
134
|
.checkedprimaryLabel,
|
|
123
135
|
.checkeddangerLabel {
|
|
124
|
-
/* css:theme-validation:ignore */
|
|
125
136
|
color: var(--checkbox_checked_active_color);
|
|
126
137
|
}
|
|
138
|
+
|
|
127
139
|
.activeprimaryLabel:hover
|
|
140
|
+
|
|
128
141
|
/* .activeprimaryLabel:focus */
|
|
129
|
-
{
|
|
142
|
+
{
|
|
130
143
|
--label_text_color: var(--zdt_checkbox_label_primary_text);
|
|
131
144
|
}
|
|
145
|
+
|
|
132
146
|
.checkedprimaryLabel {
|
|
133
147
|
--checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
|
|
134
148
|
}
|
|
149
|
+
|
|
135
150
|
.activedangerLabel:hover
|
|
151
|
+
|
|
136
152
|
/* .activedangerLabel:focus */
|
|
137
|
-
{
|
|
153
|
+
{
|
|
138
154
|
--label_text_color: var(--zdt_checkbox_label_danger_text);
|
|
139
155
|
}
|
|
156
|
+
|
|
140
157
|
.checkeddangerLabel {
|
|
141
158
|
--checkbox_checked_active_color: var(--zdt_checkbox_danger_stroke_border);
|
|
142
159
|
}
|
|
160
|
+
|
|
161
|
+
/*rtl:begin:ignore*/
|
|
143
162
|
@keyframes tickAnimate {
|
|
144
163
|
0% {
|
|
145
164
|
stroke-dashoffset: 40;
|
|
146
165
|
}
|
|
166
|
+
|
|
147
167
|
100% {
|
|
148
168
|
stroke-dashoffset: 0;
|
|
149
169
|
}
|
|
@@ -153,7 +173,10 @@
|
|
|
153
173
|
0% {
|
|
154
174
|
transform: scaleX(0);
|
|
155
175
|
}
|
|
176
|
+
|
|
156
177
|
100% {
|
|
157
178
|
transform: scaleX(1);
|
|
158
179
|
}
|
|
159
180
|
}
|
|
181
|
+
|
|
182
|
+
/*rtl:end:ignore*/
|
|
@@ -18,6 +18,7 @@ var propTypes = {
|
|
|
18
18
|
disabled: _propTypes["default"].bool,
|
|
19
19
|
disabledTitle: _propTypes["default"].string,
|
|
20
20
|
getRef: _propTypes["default"].func,
|
|
21
|
+
getContainerRef: _propTypes["default"].func,
|
|
21
22
|
id: _propTypes["default"].string,
|
|
22
23
|
isFilled: _propTypes["default"].bool,
|
|
23
24
|
isClipped: _propTypes["default"].bool,
|
|
@@ -2,30 +2,25 @@
|
|
|
2
2
|
font-family: var(--zd_semibold);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
padding-right:
|
|
7
|
-
padding-left:
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
[dir=rtl] .boxPadding {
|
|
11
|
-
padding-left: var(--zd_size19) ;
|
|
12
|
-
padding-right: var(--zd_size19) ;
|
|
5
|
+
.boxPadding {
|
|
6
|
+
padding-right: 19px;
|
|
7
|
+
padding-left: 19px;
|
|
13
8
|
}
|
|
14
9
|
|
|
15
10
|
.container {
|
|
16
|
-
font-size: var(--zd_font_size16) ;
|
|
17
|
-
composes: offSelection from '../common/common.module.css';
|
|
18
11
|
border-radius: 3px;
|
|
19
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--zdt_base_bg);
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
composes: offSelection from '../common/common.module.css';
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
.header {
|
|
23
|
-
min-height:
|
|
24
|
-
composes: boxPadding;
|
|
18
|
+
min-height: 36px;
|
|
25
19
|
text-align: center;
|
|
26
20
|
background-color: var(--zdt_datetime_header_bg);
|
|
27
21
|
border-radius: 0 0 2px 2px;
|
|
28
22
|
border-bottom: 1px solid var(--zdt_datetime_header_border);
|
|
23
|
+
composes: boxPadding;
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
.datesStr {
|
|
@@ -33,54 +28,43 @@
|
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
.grid {
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
31
|
+
width: 28px;
|
|
32
|
+
height: 28px;
|
|
38
33
|
line-height: 1.3846;
|
|
39
|
-
/* css:theme-validation:ignore */
|
|
40
34
|
text-align: center;
|
|
41
|
-
padding:
|
|
35
|
+
padding: 4px 0;
|
|
42
36
|
border-radius: 50%;
|
|
43
37
|
border: 1px solid transparent;
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
.thArrow,
|
|
47
41
|
.datesStr {
|
|
48
|
-
font-size:
|
|
49
|
-
color: var(--
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.thArrow, .datesStr {
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
color: var(--zdt_base_color);
|
|
53
44
|
cursor: pointer;
|
|
54
45
|
}
|
|
55
46
|
|
|
56
47
|
.thArrow:hover,
|
|
57
48
|
.datesStr:hover {
|
|
58
|
-
color: var(--
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.thArrow:hover, .datesStr:hover {
|
|
49
|
+
color: var(--zdt_base_color);
|
|
62
50
|
background: var(--zdt_datetime_datestr_hover_bg);
|
|
63
51
|
}
|
|
64
52
|
|
|
65
|
-
|
|
66
|
-
margin-left:
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
[dir=rtl] .navigation {
|
|
70
|
-
margin-right: var(--zd_size2) ;
|
|
53
|
+
.navigation {
|
|
54
|
+
margin-left: 2px;
|
|
71
55
|
}
|
|
72
56
|
|
|
73
57
|
.thMonYear {
|
|
74
|
-
font-size:
|
|
58
|
+
font-size: 13px;
|
|
75
59
|
line-height: 1.8462;
|
|
76
|
-
color: var(--
|
|
60
|
+
color: var(--zdt_base_color);
|
|
77
61
|
composes: semibold;
|
|
78
62
|
display: initial
|
|
79
63
|
}
|
|
80
64
|
|
|
81
65
|
.dateContainer {
|
|
82
|
-
margin: 0
|
|
83
|
-
padding:
|
|
66
|
+
margin: 0 19px 0 19px;
|
|
67
|
+
padding: 6px 0 10px 0;
|
|
84
68
|
}
|
|
85
69
|
|
|
86
70
|
.separator {
|
|
@@ -88,29 +72,29 @@
|
|
|
88
72
|
}
|
|
89
73
|
|
|
90
74
|
.days {
|
|
91
|
-
min-height:
|
|
75
|
+
min-height: 36px;
|
|
76
|
+
padding-top: 7px;
|
|
92
77
|
composes: boxPadding;
|
|
93
78
|
composes: alignBetween from '../common/common.module.css';
|
|
94
|
-
padding-top: var(--zd_size7) ;
|
|
95
79
|
}
|
|
96
80
|
|
|
97
81
|
.daysStr {
|
|
98
82
|
composes: dotted from '../common/common.module.css';
|
|
99
|
-
font-size:
|
|
83
|
+
font-size: 10px;
|
|
100
84
|
color: var(--zdt_datetime_daystr_text);
|
|
101
85
|
text-transform: uppercase;
|
|
102
86
|
composes: semibold;
|
|
103
|
-
width:
|
|
87
|
+
width: 31px;
|
|
104
88
|
}
|
|
105
89
|
|
|
106
90
|
.dateRow {
|
|
107
|
-
height:
|
|
91
|
+
height: 28px;
|
|
92
|
+
margin: 1px 0 5px;
|
|
108
93
|
composes: alignBetween from '../common/common.module.css';
|
|
109
|
-
margin: var(--zd_size1) 0 var(--zd_size5) ;
|
|
110
94
|
}
|
|
111
95
|
|
|
112
96
|
.dateRow:last-child {
|
|
113
|
-
margin-bottom: 0
|
|
97
|
+
margin-bottom: 0;
|
|
114
98
|
}
|
|
115
99
|
|
|
116
100
|
.sunday,
|
|
@@ -123,7 +107,8 @@
|
|
|
123
107
|
color: var(--zdt_datetime_invalid_text);
|
|
124
108
|
}
|
|
125
109
|
|
|
126
|
-
.invalidDate.sunday
|
|
110
|
+
.invalidDate.sunday,
|
|
111
|
+
.inActiveDate.sunday:hover {
|
|
127
112
|
color: var(--zdt_datetime_invaliddate_text);
|
|
128
113
|
}
|
|
129
114
|
|
|
@@ -141,46 +126,46 @@
|
|
|
141
126
|
.active:hover,
|
|
142
127
|
.active.today,
|
|
143
128
|
.active:hover.today:hover {
|
|
144
|
-
color: var(--zdt_datetime_today_text);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.active, .active:hover, .active.today, .active:hover.today:hover {
|
|
148
129
|
background-color: var(--zdt_datetime_selected_bg);
|
|
130
|
+
color: var(--zdt_datetime_today_text);
|
|
149
131
|
border-radius: 50%;
|
|
150
132
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
cursor: no-drop;
|
|
133
|
+
|
|
134
|
+
.inActiveDate {
|
|
135
|
+
cursor: no-drop;
|
|
136
|
+
color: var(--zdt_datetime_invalid_text);
|
|
154
137
|
}
|
|
155
|
-
|
|
156
|
-
{
|
|
138
|
+
|
|
139
|
+
.inActiveDate:hover {
|
|
157
140
|
color: var(--zdt_datetime_invalid_text);
|
|
158
141
|
}
|
|
159
|
-
|
|
142
|
+
|
|
143
|
+
.inActiveDate:hover,
|
|
144
|
+
.inActiveDate.sunday:hover {
|
|
160
145
|
background-color: var(--zdt_datetime_inactivedate_hover_bg);
|
|
161
146
|
|
|
162
147
|
}
|
|
163
148
|
|
|
164
149
|
|
|
165
150
|
.timesection {
|
|
166
|
-
padding-top:
|
|
167
|
-
padding-bottom:
|
|
151
|
+
padding-top: 5px;
|
|
152
|
+
padding-bottom: 10px;
|
|
168
153
|
}
|
|
169
154
|
|
|
170
155
|
.dropDownContainer {
|
|
171
|
-
padding: 0
|
|
156
|
+
padding: 0 5px;
|
|
172
157
|
}
|
|
173
158
|
|
|
174
159
|
.dropDown {
|
|
175
|
-
width:
|
|
160
|
+
width: 60px;
|
|
176
161
|
display: inline-block;
|
|
162
|
+
margin: 0 4px;
|
|
177
163
|
position: relative;
|
|
178
|
-
margin: 0 var(--zd_size4) ;
|
|
179
164
|
}
|
|
180
165
|
|
|
181
166
|
.footer {
|
|
182
|
-
margin-top:
|
|
183
|
-
padding-bottom:
|
|
167
|
+
margin-top: 10px;
|
|
168
|
+
padding-bottom: 12px;
|
|
184
169
|
}
|
|
185
170
|
|
|
186
171
|
.timesection,
|
|
@@ -190,52 +175,38 @@ cursor: no-drop;
|
|
|
190
175
|
|
|
191
176
|
.space {
|
|
192
177
|
display: inline-block;
|
|
193
|
-
width:
|
|
178
|
+
width: 15px;
|
|
194
179
|
}
|
|
195
180
|
|
|
196
181
|
.downArrow {
|
|
182
|
+
margin-left: 2px;
|
|
197
183
|
color: var(--zdt_datetime_daystr_text);
|
|
198
184
|
}
|
|
199
185
|
|
|
200
|
-
[dir=ltr] .downArrow {
|
|
201
|
-
margin-left: var(--zd_size2) ;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
[dir=rtl] .downArrow {
|
|
205
|
-
margin-right: var(--zd_size2) ;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
186
|
.dateText {
|
|
209
187
|
cursor: pointer;
|
|
210
188
|
}
|
|
211
189
|
|
|
212
190
|
.dateText:hover .downArrow {
|
|
213
|
-
color: var(--
|
|
191
|
+
color: var(--zdt_base_color);
|
|
214
192
|
}
|
|
215
193
|
|
|
216
194
|
.text {
|
|
217
195
|
composes: boxPadding;
|
|
218
|
-
font-size:
|
|
196
|
+
font-size: 11px;
|
|
219
197
|
text-transform: uppercase;
|
|
220
198
|
color: var(--zdt_datetime_text);
|
|
199
|
+
margin-top: 14px;
|
|
221
200
|
composes: semibold;
|
|
222
201
|
display: block;
|
|
223
|
-
margin-top: var(--zd_size14) ;
|
|
224
202
|
}
|
|
225
203
|
|
|
226
204
|
.yearContainer {
|
|
227
205
|
position: absolute;
|
|
228
|
-
top: 0
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
[dir=ltr] .yearContainer {
|
|
234
|
-
left: 0 ;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
[dir=rtl] .yearContainer {
|
|
238
|
-
right: 0 ;
|
|
206
|
+
top: 0;
|
|
207
|
+
left: 0;
|
|
208
|
+
width: 100%;
|
|
209
|
+
height: 100%;
|
|
239
210
|
}
|
|
240
211
|
|
|
241
212
|
.subContainer {
|
|
@@ -243,8 +214,8 @@ cursor: no-drop;
|
|
|
243
214
|
}
|
|
244
215
|
|
|
245
216
|
.dropBox {
|
|
246
|
-
width: 100
|
|
217
|
+
width: 100%;
|
|
247
218
|
border-radius: 3px;
|
|
248
219
|
box-shadow: var(--zd_bs_dropbox_bottom);
|
|
249
|
-
background-color: var(--
|
|
220
|
+
background-color: var(--zdt_base_bg);
|
|
250
221
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
composes: offSelection from '../common/common.module.css';
|
|
5
5
|
}
|
|
6
|
-
.readOnly,
|
|
6
|
+
.readOnly,
|
|
7
|
+
.readOnly > input,
|
|
8
|
+
.disabled {
|
|
7
9
|
cursor: not-allowed;
|
|
8
10
|
}
|
|
9
11
|
.enabled {
|
|
@@ -14,17 +16,11 @@
|
|
|
14
16
|
}
|
|
15
17
|
.inputLine {
|
|
16
18
|
position: absolute;
|
|
17
|
-
bottom: 0
|
|
18
|
-
|
|
19
|
+
bottom: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
right: 0;
|
|
19
22
|
border-bottom: 1px solid var(--zdt_datewidget_input_border);
|
|
20
|
-
|
|
21
|
-
[dir=ltr] .inputLine {
|
|
22
|
-
left: 0 ;
|
|
23
|
-
right: 0 ;
|
|
24
|
-
}
|
|
25
|
-
[dir=rtl] .inputLine {
|
|
26
|
-
right: 0 ;
|
|
27
|
-
left: 0 ;
|
|
23
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
28
24
|
}
|
|
29
25
|
.enabled:hover .inputLine {
|
|
30
26
|
border-bottom-color: var(--zdt_datewidget_enabled_border);
|