@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
|
@@ -1145,7 +1145,7 @@ exports[`Radio rendering the accessMode when disabled 1`] = `
|
|
|
1145
1145
|
data-test-id="boxComponent"
|
|
1146
1146
|
>
|
|
1147
1147
|
<label
|
|
1148
|
-
class="label title medium
|
|
1148
|
+
class="label title medium default font_default
|
|
1149
1149
|
dotted cursor
|
|
1150
1150
|
primaryLabel disabled "
|
|
1151
1151
|
data-id="RadioText_label"
|
|
@@ -1505,7 +1505,7 @@ exports[`Radio rendering the disabled is true 1`] = `
|
|
|
1505
1505
|
data-test-id="boxComponent"
|
|
1506
1506
|
>
|
|
1507
1507
|
<label
|
|
1508
|
-
class="label title medium
|
|
1508
|
+
class="label title medium default font_default
|
|
1509
1509
|
dotted cursor
|
|
1510
1510
|
undefined disabled "
|
|
1511
1511
|
data-id="RadioText_label"
|
|
@@ -1567,7 +1567,7 @@ exports[`Radio rendering the disabledTitle 1`] = `
|
|
|
1567
1567
|
data-test-id="boxComponent"
|
|
1568
1568
|
>
|
|
1569
1569
|
<label
|
|
1570
|
-
class="label title medium
|
|
1570
|
+
class="label title medium default font_default
|
|
1571
1571
|
dotted cursor
|
|
1572
1572
|
primaryLabel disabled "
|
|
1573
1573
|
data-id="RadioText_label"
|
|
@@ -4,6 +4,7 @@ export const propTypes = {
|
|
|
4
4
|
checked: PropTypes.bool,
|
|
5
5
|
disabled: PropTypes.bool,
|
|
6
6
|
disabledTitle: PropTypes.string,
|
|
7
|
+
getRef: PropTypes.func,
|
|
7
8
|
id: PropTypes.string,
|
|
8
9
|
isFilled: PropTypes.bool,
|
|
9
10
|
isReadOnly: PropTypes.bool,
|
|
@@ -20,14 +21,20 @@ export const propTypes = {
|
|
|
20
21
|
customRadio: PropTypes.string,
|
|
21
22
|
customLabel: PropTypes.string
|
|
22
23
|
}),
|
|
24
|
+
customProps: PropTypes.exact({
|
|
25
|
+
ContainerProps: PropTypes.object,
|
|
26
|
+
LabelProps: PropTypes.object
|
|
27
|
+
}),
|
|
23
28
|
a11y: PropTypes.shape({
|
|
24
29
|
ariaChecked: PropTypes.bool,
|
|
25
30
|
ariaHidden: PropTypes.bool,
|
|
26
31
|
role: PropTypes.string,
|
|
32
|
+
tabIndex: PropTypes.oneOfType(PropTypes.string, PropTypes.number),
|
|
27
33
|
ariaLabelledby: PropTypes.string,
|
|
28
34
|
ariaLabel: PropTypes.string,
|
|
29
35
|
ariaReadonly: PropTypes.bool
|
|
30
36
|
}),
|
|
37
|
+
children: PropTypes.node,
|
|
31
38
|
onChange: PropTypes.func,
|
|
32
39
|
text: PropTypes.string
|
|
33
40
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { Component } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -45,9 +43,9 @@ export default class ResponsiveDropBox extends Component {
|
|
|
45
43
|
customMobileDropBoxWrap: `${customMobileDropBoxWrap}`,
|
|
46
44
|
customResponsiveContainer: `${customResponsiveContainer}`
|
|
47
45
|
};
|
|
48
|
-
return /*#__PURE__*/React.createElement(DropBox,
|
|
46
|
+
return /*#__PURE__*/React.createElement(DropBox, { ...this.props,
|
|
49
47
|
customClass: dropBoxClasses
|
|
50
|
-
}
|
|
48
|
+
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
51
49
|
query: this.responsiveFunc,
|
|
52
50
|
responsiveId: "Helmet"
|
|
53
51
|
}, _ref2 => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.varClass {
|
|
2
2
|
/* ribbon default variables */
|
|
3
3
|
--ribbon_padding: 0;
|
|
4
|
-
--ribbon_text_color: var(--
|
|
4
|
+
--ribbon_text_color: var(--zdt_base_color);
|
|
5
5
|
--ribbon_text_transform: none;
|
|
6
|
-
--ribbon_font_size:
|
|
6
|
+
--ribbon_font_size: 13px;
|
|
7
7
|
--ribbon_bg_color: var(--zdt_ribbon_default_bg);
|
|
8
8
|
--ribbon_box_shadow: none;
|
|
9
9
|
--ribbon_border_width: 0;
|
|
@@ -11,44 +11,37 @@
|
|
|
11
11
|
--ribbon_line_height: normal;
|
|
12
12
|
|
|
13
13
|
/* flag ribbon default variable */
|
|
14
|
-
|
|
15
|
-
/* tag ribbon default variables */
|
|
16
|
-
--ribbon_tag_before_top: var(--zd_size3);
|
|
17
|
-
--ribbon_tag_before_border_style: solid;
|
|
18
|
-
--ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
|
|
19
|
-
--ribbon_tag_before_width: var(--zd_size20);
|
|
20
|
-
--ribbon_tag_before_height: var(--zd_size20);
|
|
21
|
-
--ribbon_tag_before_left: calc( var(--zd_size10) * -1 );
|
|
22
|
-
--ribbon_tag_before_border_radius: 3px 0 0 0;
|
|
23
|
-
}[dir=ltr] .varClass {
|
|
24
14
|
--ribbon_flag_border_width: 14px 12px 14px 0
|
|
25
15
|
/*rtl: 14px 0 14px 12px*/
|
|
26
16
|
;
|
|
17
|
+
|
|
18
|
+
/* tag ribbon default variables */
|
|
19
|
+
--ribbon_tag_before_top: 3px;
|
|
27
20
|
--ribbon_tag_before_border_width: 1px 0 0 1px
|
|
28
21
|
/*rtl: 1px 1px 0 0*/
|
|
29
22
|
;
|
|
30
|
-
|
|
31
|
-
--
|
|
32
|
-
--
|
|
23
|
+
--ribbon_tag_before_border_style: solid;
|
|
24
|
+
--ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
|
|
25
|
+
--ribbon_tag_before_width: 20px;
|
|
26
|
+
--ribbon_tag_before_height: 20px;
|
|
27
|
+
--ribbon_tag_before_left: -10px;
|
|
28
|
+
--ribbon_tag_before_border_radius: 3px 0 0 0;
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
/* css:lineheight-validation:ignore */
|
|
36
32
|
.basic {
|
|
37
33
|
composes: varClass;
|
|
38
34
|
position: relative;
|
|
39
|
-
|
|
35
|
+
padding: var(--ribbon_padding);
|
|
40
36
|
color: var(--ribbon_text_color);
|
|
41
37
|
text-transform: var(--ribbon_text_transform);
|
|
42
38
|
font-size: var(--ribbon_font_size);
|
|
43
|
-
/* css:theme-validation:ignore */
|
|
44
|
-
/* css:theme-validation:ignore */
|
|
45
|
-
line-height: var(--ribbon_line_height);
|
|
46
|
-
padding: var(--ribbon_padding);
|
|
47
39
|
background-color: var(--ribbon_bg_color);
|
|
48
40
|
box-shadow: var(--ribbon_box_shadow);
|
|
49
41
|
border-width: var(--ribbon_border_width);
|
|
50
42
|
border-style: solid;
|
|
51
43
|
border-color: var(--ribbon_border_color);
|
|
44
|
+
line-height: var(--ribbon_line_height);
|
|
52
45
|
}
|
|
53
46
|
|
|
54
47
|
.default,
|
|
@@ -63,27 +56,27 @@
|
|
|
63
56
|
|
|
64
57
|
.default {
|
|
65
58
|
composes: semibold from '../common/common.module.css';
|
|
59
|
+
text-align: center;
|
|
66
60
|
display: block;
|
|
67
|
-
--ribbon_padding:
|
|
61
|
+
--ribbon_padding: 5px 20px;
|
|
68
62
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
69
63
|
--ribbon_text_transform: uppercase;
|
|
70
|
-
text-align: center;
|
|
71
64
|
}
|
|
72
65
|
|
|
73
66
|
.small {
|
|
74
|
-
--ribbon_font_size:
|
|
67
|
+
--ribbon_font_size: 9px;
|
|
75
68
|
}
|
|
76
69
|
|
|
77
70
|
.medium {
|
|
78
|
-
--ribbon_font_size:
|
|
71
|
+
--ribbon_font_size: 11px;
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
.large {
|
|
82
|
-
--ribbon_font_size:
|
|
75
|
+
--ribbon_font_size: 13px;
|
|
83
76
|
}
|
|
84
77
|
|
|
85
78
|
.xlarge {
|
|
86
|
-
--ribbon_font_size:
|
|
79
|
+
--ribbon_font_size: 14px;
|
|
87
80
|
}
|
|
88
81
|
|
|
89
82
|
.palette_default {
|
|
@@ -131,7 +124,7 @@
|
|
|
131
124
|
}
|
|
132
125
|
|
|
133
126
|
.plain_dark {
|
|
134
|
-
--ribbon_text_color: var(--
|
|
127
|
+
--ribbon_text_color: var(--zdt_base_color);
|
|
135
128
|
}
|
|
136
129
|
|
|
137
130
|
.default_default {
|
|
@@ -215,18 +208,13 @@
|
|
|
215
208
|
.flag {
|
|
216
209
|
composes: dotted from '../common/common.module.css';
|
|
217
210
|
display: block;
|
|
211
|
+
--ribbon_padding: 4px 24px 4px 6px
|
|
212
|
+
/*rtl: 4px 6px 4px 24px*/
|
|
213
|
+
;
|
|
218
214
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
219
215
|
--ribbon_text_transform: uppercase;
|
|
220
216
|
}
|
|
221
217
|
|
|
222
|
-
[dir=ltr] .flag {
|
|
223
|
-
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
[dir=rtl] .flag {
|
|
227
|
-
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
218
|
.flag.small {
|
|
231
219
|
--ribbon_line_height: 2.2223;
|
|
232
220
|
}
|
|
@@ -248,25 +236,17 @@
|
|
|
248
236
|
/* Variable:Ignore */
|
|
249
237
|
top: -1px;
|
|
250
238
|
/* Variable:Ignore */
|
|
239
|
+
right: -1px;
|
|
251
240
|
/* Variable:Ignore */
|
|
252
241
|
bottom: -1px;
|
|
253
242
|
content: '';
|
|
254
|
-
width:
|
|
243
|
+
width: 12px;
|
|
255
244
|
border-style: solid;
|
|
245
|
+
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);
|
|
256
246
|
transform: translateZ(0);
|
|
257
247
|
border-width: var(--ribbon_flag_border_width);
|
|
258
248
|
}
|
|
259
249
|
|
|
260
|
-
[dir=ltr] .flag::after {
|
|
261
|
-
right: calc( var(--zd_size1) * -1 ) ;
|
|
262
|
-
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);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
[dir=rtl] .flag::after {
|
|
266
|
-
left: calc( var(--zd_size1) * -1 ) ;
|
|
267
|
-
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);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
250
|
.plain {
|
|
271
251
|
display: inline-block;
|
|
272
252
|
composes: semibold from '../common/common.module.css';
|
|
@@ -275,10 +255,10 @@
|
|
|
275
255
|
.ribbon {
|
|
276
256
|
composes: semibold from '../common/common.module.css';
|
|
277
257
|
display: block;
|
|
258
|
+
text-align: center;
|
|
278
259
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
279
260
|
--ribbon_text_transform: uppercase;
|
|
280
|
-
--ribbon_padding:
|
|
281
|
-
text-align: center;
|
|
261
|
+
--ribbon_padding: 6px 10px;
|
|
282
262
|
}
|
|
283
263
|
|
|
284
264
|
.ribbon.small {
|
|
@@ -301,116 +281,78 @@
|
|
|
301
281
|
.ribbon::before {
|
|
302
282
|
position: absolute;
|
|
303
283
|
content: '';
|
|
304
|
-
top: 100
|
|
305
|
-
height:
|
|
306
|
-
width:
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.ribbon::after, .ribbon::before {
|
|
284
|
+
top: 100%;
|
|
285
|
+
height: 10px;
|
|
286
|
+
width: 10px;
|
|
310
287
|
border-style: solid;
|
|
311
288
|
border-width: 5px;
|
|
312
|
-
background-color: inherit;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
[dir=ltr] .ribbon::after, [dir=ltr] .ribbon::before {
|
|
316
289
|
border-color: transparent transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border);
|
|
290
|
+
background-color: inherit;
|
|
317
291
|
}
|
|
318
292
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
[dir=ltr] .ribbon::after {
|
|
324
|
-
right: 0 ;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
[dir=rtl] .ribbon::after {
|
|
328
|
-
left: 0 ;
|
|
293
|
+
.ribbon::after {
|
|
294
|
+
right: 0;
|
|
329
295
|
}
|
|
330
296
|
|
|
331
|
-
|
|
332
|
-
left: 0
|
|
297
|
+
.ribbon::before {
|
|
298
|
+
left: 0;
|
|
333
299
|
transform: rotateY(180deg);
|
|
334
300
|
}
|
|
335
301
|
|
|
336
|
-
[dir=rtl] .ribbon::before {
|
|
337
|
-
right: 0 ;
|
|
338
|
-
transform: rotateY(-180deg);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
302
|
.tag {
|
|
342
303
|
composes: semibold from '../common/common.module.css';
|
|
343
304
|
display: inline-block;
|
|
344
|
-
height: var(--zd_size28) ;
|
|
345
305
|
border-style: solid;
|
|
346
306
|
border-color: var(--zdt_ribbon_default_tag_border);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
[dir=ltr] .tag {
|
|
350
307
|
border-width: 1px 1px 1px 0
|
|
351
308
|
/*rtl: 1px 0 1px 1px*/
|
|
352
309
|
;
|
|
353
310
|
border-radius: 0 3px 3px 0
|
|
354
311
|
/*rtl: 3px 0 0 3px*/
|
|
355
312
|
;
|
|
356
|
-
margin-left:
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
[dir=rtl] .tag {
|
|
361
|
-
border-width: 1px 0 1px 1px ;
|
|
362
|
-
border-radius: 3px 0 0 3px ;
|
|
363
|
-
margin-right: var(--zd_size13) ;
|
|
364
|
-
padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8) ;
|
|
313
|
+
margin-left: 13px;
|
|
314
|
+
height: 28px;
|
|
315
|
+
padding: 6px 8px 6px 5px;
|
|
365
316
|
}
|
|
366
317
|
|
|
367
318
|
.tag::before {
|
|
368
319
|
position: absolute;
|
|
369
320
|
content: '';
|
|
370
|
-
|
|
371
|
-
/* css:theme-validation:ignore */
|
|
372
|
-
width: var(--ribbon_tag_before_width);
|
|
373
|
-
height: var(--ribbon_tag_before_height);
|
|
321
|
+
transform: rotate(-45deg);
|
|
374
322
|
background-color: inherit;
|
|
323
|
+
top: var(--ribbon_tag_before_top);
|
|
375
324
|
border-style: var(--ribbon_tag_before_border_style);
|
|
376
325
|
border-color: var(--ribbon_tag_before_border_color);
|
|
377
326
|
border-width: var(--ribbon_tag_before_border_width);
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
[dir=ltr] .tag::before {
|
|
382
|
-
transform: rotate(-45deg);
|
|
327
|
+
width: var(--ribbon_tag_before_width);
|
|
328
|
+
height: var(--ribbon_tag_before_height);
|
|
383
329
|
left: var(--ribbon_tag_before_left);
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
[dir=rtl] .tag::before {
|
|
387
|
-
transform: rotate(45deg);
|
|
388
|
-
right: var(--ribbon_tag_before_left);
|
|
330
|
+
border-radius: var(--ribbon_tag_before_border_radius);
|
|
389
331
|
}
|
|
390
332
|
|
|
391
333
|
.box {
|
|
392
334
|
display: inline-block;
|
|
393
|
-
--ribbon_bg_color: var(--zdt_ribbon_white_bg);
|
|
394
|
-
--ribbon_padding: var(--zd_size5) var(--zd_size8);
|
|
395
335
|
border-radius: 3px;
|
|
336
|
+
--ribbon_bg_color: var(--zdt_base_bg);
|
|
337
|
+
--ribbon_padding: 5px 8px;
|
|
396
338
|
}
|
|
397
339
|
|
|
398
340
|
.stamp {
|
|
399
341
|
display: inline-block;
|
|
400
|
-
--ribbon_padding:
|
|
342
|
+
--ribbon_padding: 3px 5px;
|
|
401
343
|
--ribbon_text_transform: uppercase;
|
|
402
344
|
}
|
|
403
345
|
|
|
404
346
|
.sticker {
|
|
405
347
|
display: block;
|
|
406
|
-
height: var(--zd_size18) ;
|
|
407
|
-
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
408
|
-
--ribbon_text_transform: uppercase;
|
|
409
348
|
text-align: center;
|
|
410
349
|
border-width: 1px 0;
|
|
411
350
|
border-style: solid;
|
|
412
351
|
border-color: var(--zdt_ribbon_flag_white_border);
|
|
413
|
-
|
|
352
|
+
height: 18px;
|
|
353
|
+
padding: 3px 10px;
|
|
354
|
+
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
355
|
+
--ribbon_text_transform: uppercase;
|
|
414
356
|
}
|
|
415
357
|
|
|
416
358
|
.sticker.small {
|
|
@@ -432,25 +374,17 @@
|
|
|
432
374
|
.after,
|
|
433
375
|
.before {
|
|
434
376
|
position: absolute;
|
|
435
|
-
top: 0
|
|
436
|
-
bottom: 0
|
|
437
|
-
width:
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
[dir=ltr] .after {
|
|
441
|
-
right: calc( var(--zd_size2) * -1 ) ;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
[dir=rtl] .after {
|
|
445
|
-
left: calc( var(--zd_size2) * -1 ) ;
|
|
377
|
+
top: 0;
|
|
378
|
+
bottom: 0;
|
|
379
|
+
width: 10px;
|
|
446
380
|
}
|
|
447
381
|
|
|
448
|
-
|
|
449
|
-
|
|
382
|
+
.after {
|
|
383
|
+
right: -2px;
|
|
450
384
|
}
|
|
451
385
|
|
|
452
|
-
|
|
453
|
-
|
|
386
|
+
.before {
|
|
387
|
+
left: -8px;
|
|
454
388
|
}
|
|
455
389
|
|
|
456
390
|
.after::after,
|
|
@@ -458,47 +392,30 @@
|
|
|
458
392
|
.before::after,
|
|
459
393
|
.before::before {
|
|
460
394
|
position: absolute;
|
|
461
|
-
height:
|
|
462
|
-
width:
|
|
395
|
+
height: 7px;
|
|
396
|
+
width: 7px;
|
|
463
397
|
content: '';
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.after::after, .after::before, .before::after, .before::before {
|
|
467
|
-
background-color: var(--zdt_ribbon_white_bg);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
[dir=ltr] .after::after, [dir=ltr] .after::before, [dir=ltr] .before::after, [dir=ltr] .before::before {
|
|
471
398
|
transform: rotate(45deg);
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
[dir=rtl] .after::after, [dir=rtl] .after::before, [dir=rtl] .before::after, [dir=rtl] .before::before {
|
|
475
|
-
transform: rotate(-45deg);
|
|
399
|
+
background-color: var(--zdt_base_bg);
|
|
476
400
|
}
|
|
477
401
|
|
|
478
402
|
.after::after,
|
|
479
403
|
.before::after {
|
|
480
|
-
top: 0
|
|
404
|
+
top: 0;
|
|
481
405
|
}
|
|
482
406
|
|
|
483
407
|
.after::before,
|
|
484
408
|
.before::before {
|
|
485
|
-
bottom: 0
|
|
409
|
+
bottom: 0;
|
|
486
410
|
}
|
|
487
411
|
|
|
488
412
|
.children {
|
|
489
413
|
display: inline-block;
|
|
414
|
+
margin-right: 4px;
|
|
490
415
|
vertical-align: top;
|
|
491
416
|
line-height: 0;
|
|
492
417
|
}
|
|
493
418
|
|
|
494
|
-
[dir=ltr] .children {
|
|
495
|
-
margin-right: var(--zd_size4) ;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
[dir=rtl] .children {
|
|
499
|
-
margin-left: var(--zd_size4) ;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
419
|
.childText {
|
|
503
420
|
position: relative;
|
|
504
421
|
}
|
|
@@ -8,22 +8,27 @@
|
|
|
8
8
|
.default.defaultHover {
|
|
9
9
|
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
10
|
}
|
|
11
|
-
.hoverEffect:hover.primary.defaultHover,
|
|
11
|
+
.hoverEffect:hover.primary.defaultHover,
|
|
12
|
+
/* .hoverEffect:focus.primary.defaultHover, */
|
|
13
|
+
.hoverEffect:hover.primary.borderHover
|
|
12
14
|
/* .hoverEffect:focus.primary.borderHover */
|
|
13
15
|
{
|
|
14
16
|
border-color: var(--zdt_rippleeffect_primary_border);
|
|
15
17
|
}
|
|
16
|
-
.primary.defaultHover,
|
|
18
|
+
.primary.defaultHover,
|
|
19
|
+
.hoverEffect:hover.primary.active.border
|
|
17
20
|
/* .hoverEffect:focus.primary.active.border */
|
|
18
21
|
{
|
|
19
22
|
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
20
23
|
}
|
|
21
|
-
.primaryLight.defaultHover,
|
|
24
|
+
.primaryLight.defaultHover,
|
|
25
|
+
.hoverEffect:hover.primaryLight.borderHover
|
|
22
26
|
/* .hoverEffect:focus.primaryLight.borderHover */
|
|
23
27
|
{
|
|
24
28
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
25
29
|
}
|
|
26
|
-
.green.defaultHover,
|
|
30
|
+
.green.defaultHover,
|
|
31
|
+
.hoverEffect:hover.green.borderHover
|
|
27
32
|
/* .hoverEffect:focus.green.borderHover */
|
|
28
33
|
{
|
|
29
34
|
border-color: var(--zdt_rippleeffect_green_border);
|
|
@@ -51,7 +56,9 @@
|
|
|
51
56
|
.primaryFilled {
|
|
52
57
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
53
58
|
}
|
|
54
|
-
.hoverEffect:hover.primaryFilled,
|
|
59
|
+
.hoverEffect:hover.primaryFilled,
|
|
60
|
+
/* .hoverEffect:focus.primaryFilled, */
|
|
61
|
+
.primaryFilled.active {
|
|
55
62
|
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
56
63
|
}
|
|
57
64
|
.hoverEffect:hover.green.bgHover
|
|
@@ -59,10 +66,18 @@
|
|
|
59
66
|
{
|
|
60
67
|
background-color: var(--zdt_rippleeffect_green_bg);
|
|
61
68
|
}
|
|
62
|
-
.default.active,
|
|
69
|
+
.default.active,
|
|
70
|
+
.hoverEffect:hover.default.active,
|
|
71
|
+
/* .hoverEffect:focus.default.active, */
|
|
72
|
+
.primaryLight.active,
|
|
73
|
+
.primaryDark.active {
|
|
63
74
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
64
75
|
}
|
|
65
|
-
.default.active.border,
|
|
76
|
+
.default.active.border,
|
|
77
|
+
.hoverEffect:hover.default.active.border,
|
|
78
|
+
/* .hoverEffect:focus.default.active.border, */
|
|
79
|
+
.primaryLight.active.border,
|
|
80
|
+
.primaryDark.active.border {
|
|
66
81
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
67
82
|
}
|
|
68
83
|
.green.active {
|
|
@@ -74,12 +89,15 @@
|
|
|
74
89
|
.primary.active {
|
|
75
90
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
76
91
|
}
|
|
77
|
-
.danger.defaultHover,
|
|
92
|
+
.danger.defaultHover,
|
|
93
|
+
.hoverEffect:hover.danger.borderHover
|
|
78
94
|
/* .hoverEffect:focus.danger.borderHover */
|
|
79
95
|
{
|
|
80
96
|
border-color: var(--zdt_rippleeffect_danger_border);
|
|
81
97
|
}
|
|
82
|
-
.hoverEffect:hover.danger.bgHover,
|
|
98
|
+
.hoverEffect:hover.danger.bgHover,
|
|
99
|
+
/* .hoverEffect:focus.danger.bgHover, */
|
|
100
|
+
.danger.active {
|
|
83
101
|
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
84
102
|
}
|
|
85
103
|
.hoverEffect:hover.primaryDark.bgHover
|
package/es/Select/Select.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { Select_defaultProps } from './props/defaultProps';
|
|
@@ -917,7 +915,7 @@ export class SelectComponent extends Component {
|
|
|
917
915
|
shrink: true,
|
|
918
916
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
919
917
|
eleRef: this.suggestionContainerRef
|
|
920
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
918
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
921
919
|
activeId: selectedId,
|
|
922
920
|
suggestions: suggestions,
|
|
923
921
|
getRef: this.suggestionItemRef,
|
|
@@ -934,8 +932,9 @@ export class SelectComponent extends Component {
|
|
|
934
932
|
a11y: {
|
|
935
933
|
ariaParentRole: 'listbox',
|
|
936
934
|
role: 'option'
|
|
937
|
-
}
|
|
938
|
-
|
|
935
|
+
},
|
|
936
|
+
...SuggestionsProps
|
|
937
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
939
938
|
isLoading: isFetchingOptions,
|
|
940
939
|
options: options,
|
|
941
940
|
searchString: searchStr,
|