@zohodesk/components 1.2.18 → 1.2.19
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/AppearanceThemeValidationExcludeFiles.js +1 -0
- package/.cli/propValidation_report.html +1 -1
- package/README.md +6 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +3 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +3 -0
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +3 -0
- package/es/Avatar/Avatar.module.css +12 -0
- package/es/AvatarTeam/AvatarTeam.module.css +2 -0
- package/es/Button/css/Button.module.css +9 -1
- package/es/Buttongroup/Buttongroup.module.css +2 -0
- package/es/CheckBox/CheckBox.module.css +2 -0
- package/es/DateTime/DateTime.module.css +1 -0
- package/es/DateTime/dateFormatUtils/dateFormat.js +6 -1
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
- package/es/DropBox/css/DropBox.module.css +1 -0
- package/es/DropDown/DropDownHeading.module.css +6 -0
- package/es/DropDown/DropDownItem.module.css +3 -0
- package/es/Label/Label.module.css +1 -0
- package/es/ListItem/ListItem.module.css +21 -0
- package/es/PopOver/PopOver.module.css +1 -0
- package/es/Radio/Radio.module.css +1 -0
- package/es/Ribbon/Ribbon.module.css +4 -0
- package/es/Switch/Switch.module.css +2 -0
- package/es/Tag/Tag.module.css +6 -0
- package/es/TextBox/TextBox.module.css +20 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -0
- package/es/Textarea/Textarea.module.css +6 -0
- package/es/Tooltip/Tooltip.module.css +4 -0
- package/es/common/customscroll.module.css +37 -0
- package/es/v1/Modal/Modal.js +86 -114
- package/es/v1/Typography/css/Typography.module.css +83 -112
- package/es/v1/Typography/css/cssJSLogic.js +6 -2
- package/es/v1/Typography/props/propTypes.js +2 -2
- package/es/v1/Typography/utils/index.js +50 -0
- package/lib/Avatar/Avatar.module.css +12 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +2 -0
- package/lib/Button/css/Button.module.css +9 -1
- package/lib/Buttongroup/Buttongroup.module.css +2 -0
- package/lib/CheckBox/CheckBox.module.css +2 -0
- package/lib/DateTime/DateTime.module.css +1 -0
- package/lib/DateTime/dateFormatUtils/dateFormat.js +6 -1
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
- package/lib/DropBox/css/DropBox.module.css +1 -0
- package/lib/DropDown/DropDownHeading.module.css +6 -0
- package/lib/DropDown/DropDownItem.module.css +3 -0
- package/lib/Label/Label.module.css +1 -0
- package/lib/ListItem/ListItem.module.css +21 -0
- package/lib/PopOver/PopOver.module.css +1 -0
- package/lib/Radio/Radio.module.css +1 -0
- package/lib/Ribbon/Ribbon.module.css +4 -0
- package/lib/Switch/Switch.module.css +2 -0
- package/lib/Tag/Tag.module.css +6 -0
- package/lib/TextBox/TextBox.module.css +20 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -0
- package/lib/Textarea/Textarea.module.css +6 -0
- package/lib/Tooltip/Tooltip.module.css +4 -0
- package/lib/common/customscroll.module.css +37 -0
- package/lib/v1/Modal/Modal.js +118 -164
- package/lib/v1/Typography/css/Typography.module.css +83 -112
- package/lib/v1/Typography/css/cssJSLogic.js +7 -3
- package/lib/v1/Typography/props/propTypes.js +2 -2
- package/lib/v1/Typography/utils/index.js +59 -0
- package/package.json +8 -6
- package/result.json +1 -1
- package/es/v1/Typography/css/letterSpacingMap.js +0 -12
- package/lib/v1/Typography/css/letterSpacingMap.js +0 -20
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.lineheightMapping = exports.letterspacingMapping = void 0;
|
|
7
|
+
|
|
8
|
+
/* eslint-disable */
|
|
9
|
+
var letterspacingMapping = {
|
|
10
|
+
'inherit': 'inherit',
|
|
11
|
+
'0.1': '0_1',
|
|
12
|
+
'0.2': '0_2',
|
|
13
|
+
'0.3': '0_3',
|
|
14
|
+
'0.4': '0_4',
|
|
15
|
+
'0.5': '0_5',
|
|
16
|
+
'0.6': '0_6',
|
|
17
|
+
'0.7': '0_7',
|
|
18
|
+
'0.8': '0_8',
|
|
19
|
+
'0.9': '0_9',
|
|
20
|
+
'1': '1',
|
|
21
|
+
'1.1': '1_1',
|
|
22
|
+
'1.2': '1_2',
|
|
23
|
+
'1.3': '1_3',
|
|
24
|
+
'1.4': '1_4',
|
|
25
|
+
'1.5': '1_5',
|
|
26
|
+
'1.6': '1_6',
|
|
27
|
+
'1.7': '1_7',
|
|
28
|
+
'1.8': '1_8',
|
|
29
|
+
'1.9': '1_9',
|
|
30
|
+
'2': '2'
|
|
31
|
+
};
|
|
32
|
+
exports.letterspacingMapping = letterspacingMapping;
|
|
33
|
+
var lineheightMapping = {
|
|
34
|
+
'inherit': 'inherit',
|
|
35
|
+
'initial': 'initial',
|
|
36
|
+
'normal': 'normal',
|
|
37
|
+
'0': '0',
|
|
38
|
+
'0.1': '0_1',
|
|
39
|
+
'0.2': '0_2',
|
|
40
|
+
'0.3': '0_3',
|
|
41
|
+
'0.4': '0_4',
|
|
42
|
+
'0.5': '0_5',
|
|
43
|
+
'0.6': '0_6',
|
|
44
|
+
'0.7': '0_7',
|
|
45
|
+
'0.8': '0_8',
|
|
46
|
+
'0.9': '0_9',
|
|
47
|
+
'1': '1',
|
|
48
|
+
'1.1': '1_1',
|
|
49
|
+
'1.2': '1_2',
|
|
50
|
+
'1.3': '1_3',
|
|
51
|
+
'1.4': '1_4',
|
|
52
|
+
'1.5': '1_5',
|
|
53
|
+
'1.6': '1_6',
|
|
54
|
+
'1.7': '1_7',
|
|
55
|
+
'1.8': '1_8',
|
|
56
|
+
'1.9': '1_9',
|
|
57
|
+
'2': '2'
|
|
58
|
+
};
|
|
59
|
+
exports.lineheightMapping = lineheightMapping;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
|
|
25
25
|
"dubCheck": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/icons/lib node_modules/@zohodesk/variables/lib",
|
|
26
26
|
"init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components && npm run build:variables",
|
|
27
|
-
"build:variables": "node ./preprocess/index",
|
|
27
|
+
"build:variables": "react-cli clean ./assets && node ./preprocess/index",
|
|
28
28
|
"rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
|
|
29
29
|
"common_package_build": "cd ../common && npm run build && cd ../components",
|
|
30
30
|
"start": "react-cli start",
|
|
31
|
-
"docs": "npm run dubCheck && react-cli docs",
|
|
31
|
+
"docs": "npm run dubCheck && npm run theme:validate && react-cli docs",
|
|
32
32
|
"build:lib": "react-cli build:component:cmjs",
|
|
33
33
|
"build:es": "react-cli build:library:es",
|
|
34
|
-
"build": "npm run build:lib && npm run build:es",
|
|
34
|
+
"build": "npm run theme:validate && npm run build:lib && npm run build:es",
|
|
35
35
|
"build:local": " npm run build && npm run rtl && npm run cssVariableConvert",
|
|
36
36
|
"build:watch": "npm run build:variables && npm run build && npm run build:es --module:mode=dev -- -w",
|
|
37
37
|
"rtl:watch": "react-cli rtl ./src ./es -w",
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
"variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
52
52
|
"variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
53
53
|
"variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
|
|
54
|
+
"theme:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation validate ./src ./.cli",
|
|
55
|
+
"theme:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation addignore ./src ./.cli",
|
|
54
56
|
"review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js ./src/ ./.cli ./.cli "
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
@@ -60,8 +62,8 @@
|
|
|
60
62
|
"@testing-library/user-event": "^13.0.10",
|
|
61
63
|
"@zohodesk-private/color-variable-preprocessor": "1.1.0",
|
|
62
64
|
"@zohodesk-private/css-variable-migrator": "^1.0.7",
|
|
63
|
-
"@zohodesk-private/node-plugins": "
|
|
64
|
-
"@zohodesk-private/react-prop-validator": "1.1.
|
|
65
|
+
"@zohodesk-private/node-plugins": "1.1.1",
|
|
66
|
+
"@zohodesk-private/react-prop-validator": "1.1.1",
|
|
65
67
|
"@zohodesk/a11y": "2.1.0",
|
|
66
68
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
67
69
|
"@zohodesk/hooks": "2.0.2",
|