@zohodesk/components 1.0.0-temp-250 → 1.0.0-temp-253
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 +29 -0
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +68 -0
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +68 -0
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +68 -0
- package/es/Avatar/Avatar.module.css +8 -8
- package/es/AvatarTeam/AvatarTeam.module.css +189 -189
- package/es/Button/css/Button.module.css +19 -19
- package/es/Buttongroup/Buttongroup.module.css +85 -107
- package/es/Card/Card.module.css +6 -4
- package/es/CheckBox/CheckBox.module.css +3 -10
- package/es/DateTime/DateTime.module.css +22 -35
- package/es/DateTime/DateWidget.module.css +1 -1
- package/es/DateTime/YearView.module.css +8 -10
- package/es/DropBox/DropBoxElement/DropBoxElement.js +10 -1
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +8 -3
- package/es/DropBox/DropBoxElement/props/propTypes.js +2 -1
- package/es/DropBox/css/DropBox.module.css +58 -58
- package/es/DropDown/DropDown.module.css +2 -1
- package/es/DropDown/DropDownHeading.module.css +53 -53
- package/es/DropDown/DropDownItem.module.css +87 -94
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -1
- package/es/Label/Label.module.css +5 -5
- package/es/ListItem/ListItem.module.css +23 -45
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +4 -3
- package/es/MultiSelect/MultiSelect.module.css +21 -34
- package/es/MultiSelect/SelectedOptions.module.css +6 -10
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Radio/Radio.module.css +11 -12
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
- package/es/Ribbon/Ribbon.module.css +499 -505
- package/es/RippleEffect/RippleEffect.module.css +55 -17
- package/es/Select/Select.module.css +22 -17
- package/es/Stencils/Stencils.module.css +30 -14
- package/es/Switch/Switch.module.css +121 -128
- package/es/Tab/Tab.module.css +8 -15
- package/es/Tab/Tabs.module.css +12 -22
- package/es/Tag/Tag.module.css +255 -255
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/es/Textarea/Textarea.module.css +18 -18
- package/es/Tooltip/Tooltip.module.css +5 -4
- package/es/Typography/Typography.js +18 -8
- package/es/Typography/__tests__/Typography.spec.js +198 -6
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1235 -2
- package/es/Typography/css/Typography.module.css +4 -0
- package/es/Typography/css/cssJSLogic.js +53 -21
- package/es/Typography/props/defaultProps.js +4 -3
- package/es/Typography/props/propTypes.js +68 -26
- package/es/Typography/utils/textHighlighter.js +4 -2
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/customscroll.module.css +141 -141
- package/es/shared/ArrowIcon/ArrowIcon.module.css +3 -2
- package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/es/v1/Button/Button.js +201 -0
- package/es/v1/Button/README.md +110 -0
- package/es/v1/Button/__tests__/Button.spec.js +272 -0
- package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1160 -0
- package/es/v1/Button/_shared/Loader/Loader.js +33 -0
- package/es/v1/Button/_shared/Loader/Loader_v1.module.css +42 -0
- package/es/v1/Button/_shared/Loader/__tests__/Loader.spec.js +21 -0
- package/es/v1/Button/_shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +49 -0
- package/es/v1/Button/_shared/Loader/props/defaultProps.js +4 -0
- package/es/v1/Button/_shared/Loader/props/propTypes.js +7 -0
- package/es/v1/Button/_shared/SuccessTick/SuccessTick.js +25 -0
- package/es/v1/Button/_shared/SuccessTick/SuccessTick_v1.module.css +21 -0
- package/es/v1/Button/_shared/SuccessTick/__tests__/SuccessTick.spec.js +21 -0
- package/es/v1/Button/_shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +31 -0
- package/es/v1/Button/_shared/SuccessTick/props/defaultProps.js +4 -0
- package/es/v1/Button/_shared/SuccessTick/props/propTypes.js +7 -0
- package/es/v1/Button/constants/index.js +82 -0
- package/es/v1/Button/css/Button_v1.module.css +119 -0
- package/es/v1/Button/css/cssJSLogic.js +96 -0
- package/es/v1/Button/index.js +2 -0
- package/es/v1/Button/props/defaultProps.js +26 -0
- package/es/v1/Button/props/propTypes.js +43 -0
- package/es/v1/Switch/css/Switch_v1.module.css +28 -28
- package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +629 -0
- package/es/v1/helpers/colorHelpers/border/borderColor.module.css +489 -0
- package/es/v1/helpers/colorHelpers/colorHelper.js +176 -0
- package/es/v1/helpers/colorHelpers/constants/index.js +79 -0
- package/es/v1/helpers/colorHelpers/index.js +4 -0
- package/es/v1/helpers/colorHelpers/paletteUtilities.README.md +415 -0
- package/es/v1/helpers/colorHelpers/text/textColor.module.css +368 -0
- package/lib/Avatar/Avatar.module.css +8 -8
- package/lib/AvatarTeam/AvatarTeam.module.css +189 -189
- package/lib/Button/css/Button.module.css +19 -19
- package/lib/Buttongroup/Buttongroup.module.css +85 -107
- package/lib/Card/Card.module.css +6 -4
- package/lib/CheckBox/CheckBox.module.css +3 -10
- package/lib/DateTime/DateTime.module.css +22 -35
- package/lib/DateTime/DateWidget.module.css +1 -1
- package/lib/DateTime/YearView.module.css +8 -10
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +10 -1
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +8 -3
- package/lib/DropBox/DropBoxElement/props/propTypes.js +2 -1
- package/lib/DropBox/css/DropBox.module.css +58 -58
- package/lib/DropDown/DropDown.module.css +2 -1
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.module.css +87 -94
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -1
- package/lib/Label/Label.module.css +5 -5
- package/lib/ListItem/ListItem.module.css +23 -45
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +4 -3
- package/lib/MultiSelect/MultiSelect.module.css +21 -34
- package/lib/MultiSelect/SelectedOptions.module.css +6 -10
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Radio/Radio.module.css +11 -12
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +1 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
- package/lib/Ribbon/Ribbon.module.css +499 -505
- package/lib/RippleEffect/RippleEffect.module.css +55 -17
- package/lib/Select/Select.module.css +22 -17
- package/lib/Stencils/Stencils.module.css +30 -14
- package/lib/Switch/Switch.module.css +121 -128
- package/lib/Tab/Tab.module.css +8 -15
- package/lib/Tab/Tabs.module.css +12 -22
- package/lib/Tag/Tag.module.css +255 -255
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
- package/lib/Textarea/Textarea.module.css +18 -18
- package/lib/Tooltip/Tooltip.module.css +5 -4
- package/lib/Typography/Typography.js +15 -5
- package/lib/Typography/__tests__/Typography.spec.js +284 -92
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1235 -2
- package/lib/Typography/css/Typography.module.css +4 -0
- package/lib/Typography/css/cssJSLogic.js +38 -6
- package/lib/Typography/props/defaultProps.js +6 -3
- package/lib/Typography/props/propTypes.js +67 -23
- package/lib/Typography/utils/textHighlighter.js +6 -3
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/customscroll.module.css +141 -141
- package/lib/shared/ArrowIcon/ArrowIcon.module.css +3 -2
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
- package/lib/v1/Button/Button.js +239 -0
- package/lib/v1/Button/README.md +110 -0
- package/lib/v1/Button/__tests__/Button.spec.js +293 -0
- package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1160 -0
- package/lib/v1/Button/_shared/Loader/Loader.js +43 -0
- package/lib/v1/Button/_shared/Loader/Loader_v1.module.css +42 -0
- package/lib/v1/Button/_shared/Loader/__tests__/Loader.spec.js +28 -0
- package/lib/v1/Button/_shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +49 -0
- package/lib/v1/Button/_shared/Loader/props/defaultProps.js +11 -0
- package/lib/v1/Button/_shared/Loader/props/propTypes.js +18 -0
- package/lib/v1/Button/_shared/SuccessTick/SuccessTick.js +35 -0
- package/lib/v1/Button/_shared/SuccessTick/SuccessTick_v1.module.css +21 -0
- package/lib/v1/Button/_shared/SuccessTick/__tests__/SuccessTick.spec.js +28 -0
- package/lib/v1/Button/_shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +31 -0
- package/lib/v1/Button/_shared/SuccessTick/props/defaultProps.js +11 -0
- package/lib/v1/Button/_shared/SuccessTick/props/propTypes.js +18 -0
- package/lib/v1/Button/constants/index.js +114 -0
- package/lib/v1/Button/css/Button_v1.module.css +119 -0
- package/lib/v1/Button/css/cssJSLogic.js +88 -0
- package/lib/v1/Button/index.js +21 -0
- package/lib/v1/Button/props/defaultProps.js +36 -0
- package/lib/v1/Button/props/propTypes.js +56 -0
- package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
- package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +629 -0
- package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +489 -0
- package/lib/v1/helpers/colorHelpers/colorHelper.js +190 -0
- package/lib/v1/helpers/colorHelpers/constants/index.js +87 -0
- package/lib/v1/helpers/colorHelpers/index.js +57 -0
- package/lib/v1/helpers/colorHelpers/paletteUtilities.README.md +415 -0
- package/lib/v1/helpers/colorHelpers/text/textColor.module.css +368 -0
- package/package.json +17 -14
- package/_react-cli.config.js +0 -24
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
--textarea_border_color: none;
|
|
5
5
|
--textarea_cursor: text;
|
|
6
6
|
--textarea_text_color: var(--zdt_textarea_default_text);
|
|
7
|
-
--textarea_font_size:
|
|
7
|
+
--textarea_font_size: var(--zd_font_size14);
|
|
8
8
|
--textarea_line_height: 1.5712;
|
|
9
|
-
--textarea_padding:
|
|
9
|
+
--textarea_padding: var(--zd_size2) 0;
|
|
10
10
|
--textarea_height: auto;
|
|
11
11
|
--textarea_width: auto;
|
|
12
12
|
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.defaultHeight{
|
|
97
|
-
--textarea_height:
|
|
97
|
+
--textarea_height: var(--zd_size30);
|
|
98
98
|
}
|
|
99
99
|
.defaultWidth {
|
|
100
100
|
--textarea_width: 100%;
|
|
@@ -104,39 +104,39 @@
|
|
|
104
104
|
vertical-align: middle;
|
|
105
105
|
}
|
|
106
106
|
.xsmall {
|
|
107
|
-
--textarea_font_size:
|
|
108
|
-
--textarea_padding:
|
|
109
|
-
--textarea_height:
|
|
107
|
+
--textarea_font_size: var(--zd_font_size14);
|
|
108
|
+
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
109
|
+
--textarea_height: var(--zd_size28);
|
|
110
110
|
--textarea_line_height: 1.3572;
|
|
111
111
|
}
|
|
112
112
|
.xmedium {
|
|
113
|
-
--textarea_font_size:
|
|
114
|
-
--textarea_padding:
|
|
115
|
-
--textarea_height:
|
|
113
|
+
--textarea_font_size: var(--zd_font_size13);
|
|
114
|
+
--textarea_padding: var(--zd_size4) 0 var(--zd_size2);
|
|
115
|
+
--textarea_height: var(--zd_size25);
|
|
116
116
|
--textarea_line_height: 1.3077;
|
|
117
117
|
}
|
|
118
118
|
.small{
|
|
119
|
-
--textarea_height:
|
|
120
|
-
--textarea_padding:
|
|
119
|
+
--textarea_height: var(--zd_size30);
|
|
120
|
+
--textarea_padding: var(--zd_size2) 0;
|
|
121
121
|
}
|
|
122
122
|
.smallanimated:focus,
|
|
123
123
|
.xsmallanimated:focus,
|
|
124
124
|
.xmediumanimated:focus {
|
|
125
|
-
--textarea_height:
|
|
125
|
+
--textarea_height: var(--zd_size70);
|
|
126
126
|
}
|
|
127
127
|
.medium {
|
|
128
|
-
--textarea_height:
|
|
129
|
-
--textarea_padding:
|
|
128
|
+
--textarea_height: var(--zd_size88);
|
|
129
|
+
--textarea_padding: var(--zd_size2);
|
|
130
130
|
}
|
|
131
131
|
.large {
|
|
132
|
-
--textarea_height:
|
|
133
|
-
--textarea_padding:
|
|
132
|
+
--textarea_height: var(--zd_size45);
|
|
133
|
+
--textarea_padding: var(--zd_size2);
|
|
134
134
|
}
|
|
135
135
|
.largeanimated:focus {
|
|
136
|
-
--textarea_height:
|
|
136
|
+
--textarea_height: var(--zd_size220);
|
|
137
137
|
}
|
|
138
138
|
.xlarge {
|
|
139
|
-
--textarea_height:
|
|
139
|
+
--textarea_height: var(--zd_size184);
|
|
140
140
|
}
|
|
141
141
|
.default {
|
|
142
142
|
font-weight: var(--zd-fw-normal);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/*Hook for editor alert*/
|
|
5
5
|
pointer-events: none;
|
|
6
6
|
box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
|
|
7
|
-
border-radius:
|
|
7
|
+
border-radius: 4px;
|
|
8
8
|
}[dir=ltr] .tooltiptext {
|
|
9
9
|
animation: tooltip-grow var(--zd_transition7) cubic-bezier(0.175, 0.885, 0.32, 1.15);
|
|
10
10
|
}[dir=rtl] .tooltiptext {
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
.tooltipcont {
|
|
15
15
|
color: var(--zdt_tooltip_default_text);
|
|
16
|
+
padding-block:0 ;
|
|
17
|
+
padding-inline: var(--zd_size10) ;
|
|
16
18
|
font-size: var(--zd_font_size13) ;
|
|
17
19
|
font-weight: var(--zd-fw-semibold);
|
|
18
20
|
word-break: break-word;
|
|
@@ -21,10 +23,9 @@
|
|
|
21
23
|
min-height: var(--zd_size24) ;
|
|
22
24
|
overflow: hidden;
|
|
23
25
|
background-color: var(--zdt_tooltip_default_bg);
|
|
24
|
-
padding: 0 var(--zd_size10) ;
|
|
25
26
|
border-style: solid;
|
|
26
27
|
border-color: transparent;
|
|
27
|
-
border-radius:
|
|
28
|
+
border-radius: 4px;
|
|
28
29
|
}
|
|
29
30
|
.tooltiparrow {
|
|
30
31
|
content: '';
|
|
@@ -130,4 +131,4 @@
|
|
|
130
131
|
to {
|
|
131
132
|
opacity: 1;
|
|
132
133
|
}
|
|
133
|
-
}
|
|
134
|
+
}
|
|
@@ -29,16 +29,19 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
29
29
|
|
|
30
30
|
var Typography = function Typography(props) {
|
|
31
31
|
var children = props.children,
|
|
32
|
+
as = props.as,
|
|
32
33
|
$ui_tagName = props.$ui_tagName,
|
|
34
|
+
dataTitle = props.dataTitle,
|
|
33
35
|
$i18n_dataTitle = props.$i18n_dataTitle,
|
|
34
36
|
testId = props.testId,
|
|
35
37
|
customId = props.customId,
|
|
38
|
+
tagAttributes = props.tagAttributes,
|
|
36
39
|
$tagAttributes_text = props.$tagAttributes_text,
|
|
40
|
+
a11yAttributes = props.a11yAttributes,
|
|
37
41
|
$a11yAttributes_text = props.$a11yAttributes_text,
|
|
38
42
|
customStyle = props.customStyle,
|
|
43
|
+
highlightConfig = props.highlightConfig,
|
|
39
44
|
$ui_highlightConfig = props.$ui_highlightConfig;
|
|
40
|
-
var _$ui_highlightConfig$ = $ui_highlightConfig.data,
|
|
41
|
-
highlightData = _$ui_highlightConfig$ === void 0 ? [] : _$ui_highlightConfig$;
|
|
42
45
|
var style = (0, _utils.mergeStyle)(_TypographyModule["default"], customStyle);
|
|
43
46
|
|
|
44
47
|
var _cssJSLogic = (0, _cssJSLogic2["default"])({
|
|
@@ -47,12 +50,19 @@ var Typography = function Typography(props) {
|
|
|
47
50
|
}),
|
|
48
51
|
typographyClass = _cssJSLogic.typographyClass;
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
var finalTagName = as !== undefined ? as : $ui_tagName;
|
|
54
|
+
var finalA11yAttributes = a11yAttributes !== undefined ? a11yAttributes : $a11yAttributes_text;
|
|
55
|
+
var finalTagAttributes = tagAttributes !== undefined ? tagAttributes : $tagAttributes_text;
|
|
56
|
+
var finalDataTitle = dataTitle !== undefined ? dataTitle : $i18n_dataTitle;
|
|
57
|
+
var finalHighlightConfig = highlightConfig !== undefined ? highlightConfig : $ui_highlightConfig;
|
|
58
|
+
var _finalHighlightConfig = finalHighlightConfig.data,
|
|
59
|
+
highlightData = _finalHighlightConfig === void 0 ? [] : _finalHighlightConfig;
|
|
60
|
+
return /*#__PURE__*/_react["default"].createElement(finalTagName, _objectSpread(_objectSpread({
|
|
51
61
|
className: typographyClass,
|
|
52
|
-
'data-title':
|
|
62
|
+
'data-title': finalDataTitle,
|
|
53
63
|
'data-id': customId,
|
|
54
64
|
'data-test-id': testId
|
|
55
|
-
},
|
|
65
|
+
}, finalTagAttributes), finalA11yAttributes), highlightData && highlightData.length > 0 && typeof children === 'string' ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, finalHighlightConfig), {}, {
|
|
56
66
|
text: children
|
|
57
67
|
})) : children);
|
|
58
68
|
};
|