@zohodesk/components 1.6.11 → 1.6.13
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/es/Tab/Tab.js +4 -2
- package/es/Tab/props/defaultProps.js +2 -0
- package/es/Tab/props/propTypes.js +2 -0
- package/es/v1/Button/_shared/Loader/Loader.js +1 -1
- package/es/v1/Button/_shared/SuccessTick/SuccessTick.js +1 -1
- package/lib/Tab/Tab.js +4 -2
- package/lib/Tab/props/defaultProps.js +2 -0
- package/lib/Tab/props/propTypes.js +2 -0
- package/lib/v1/Button/_shared/Loader/Loader.js +4 -4
- package/lib/v1/Button/_shared/SuccessTick/SuccessTick.js +2 -2
- package/package.json +19 -17
- /package/es/v1/Button/_shared/Loader/{Loader.module.css → Loader_v1.module.css} +0 -0
- /package/es/v1/Button/_shared/SuccessTick/{SuccessTick.module.css → SuccessTick_v1.module.css} +0 -0
- /package/lib/v1/Button/_shared/Loader/{Loader.module.css → Loader_v1.module.css} +0 -0
- /package/lib/v1/Button/_shared/SuccessTick/{SuccessTick.module.css → SuccessTick_v1.module.css} +0 -0
package/README.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
|
|
4
4
|
|
|
5
|
+
# 1.6.13
|
|
6
|
+
|
|
7
|
+
- **Tab**
|
|
8
|
+
- `contentAlign` prop supported to control the internal content container's alignment (justify-content). Default value is `both`.
|
|
9
|
+
- `contentAlignBox` prop supported to control the internal content container's flex direction. Default value is `row`.
|
|
10
|
+
|
|
11
|
+
# 1.6.12
|
|
12
|
+
|
|
13
|
+
- v1/Button/_shared/SuccessTick/SuccessTick.module.css file renamed to SuccessTick_v1.module.css
|
|
14
|
+
- v1/Button/_shared/Loader/Loader.module.css file renamed to Loader_v1.module.css
|
|
15
|
+
|
|
5
16
|
# 1.6.9, 1.6.10 , 1.6.11
|
|
6
17
|
|
|
7
18
|
- padding, margin based css properties migrated to padding-inline,padding-block, margin-inline, margin-block
|
package/es/Tab/Tab.js
CHANGED
|
@@ -50,6 +50,8 @@ export default function Tab(_ref) {
|
|
|
50
50
|
needAppearance,
|
|
51
51
|
align,
|
|
52
52
|
isVirtual,
|
|
53
|
+
contentAlign,
|
|
54
|
+
contentAlignBox,
|
|
53
55
|
customProps
|
|
54
56
|
} = _ref;
|
|
55
57
|
let clickListener = useCallback(event => {
|
|
@@ -91,8 +93,8 @@ export default function Tab(_ref) {
|
|
|
91
93
|
"aria-label": text ? text : null,
|
|
92
94
|
dataSelectorId: dataSelectorId
|
|
93
95
|
}, customProps), /*#__PURE__*/React.createElement(Container, {
|
|
94
|
-
alignBox:
|
|
95
|
-
align:
|
|
96
|
+
alignBox: contentAlignBox,
|
|
97
|
+
align: contentAlign,
|
|
96
98
|
className: styles.textContainer
|
|
97
99
|
}, text && /*#__PURE__*/React.createElement(Box, {
|
|
98
100
|
flexible: true,
|
|
@@ -22,6 +22,8 @@ export const Tab_propTypes = {
|
|
|
22
22
|
titlePosition: PropTypes.oneOf(['top', 'bottom', 'right', 'left']),
|
|
23
23
|
tourId: PropTypes.string,
|
|
24
24
|
type: PropTypes.string,
|
|
25
|
+
contentAlign: PropTypes.oneOf(['both', 'left', 'right', 'vertical', 'horizontal', 'top', 'bottom', 'between', 'around', 'baseline']),
|
|
26
|
+
contentAlignBox: PropTypes.oneOf(['row', 'column', 'row-reverse', 'column-reverse']),
|
|
25
27
|
customProps: PropTypes.object,
|
|
26
28
|
isVirtual: PropTypes.bool,
|
|
27
29
|
dataSelectorId: PropTypes.string
|
package/lib/Tab/Tab.js
CHANGED
|
@@ -69,6 +69,8 @@ function Tab(_ref) {
|
|
|
69
69
|
needAppearance = _ref.needAppearance,
|
|
70
70
|
align = _ref.align,
|
|
71
71
|
isVirtual = _ref.isVirtual,
|
|
72
|
+
contentAlign = _ref.contentAlign,
|
|
73
|
+
contentAlignBox = _ref.contentAlignBox,
|
|
72
74
|
customProps = _ref.customProps;
|
|
73
75
|
var clickListener = (0, _react.useCallback)(function (event) {
|
|
74
76
|
if (isLink && event && (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)) {
|
|
@@ -113,8 +115,8 @@ function Tab(_ref) {
|
|
|
113
115
|
"aria-label": text ? text : null,
|
|
114
116
|
dataSelectorId: dataSelectorId
|
|
115
117
|
}, customProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
116
|
-
alignBox:
|
|
117
|
-
align:
|
|
118
|
+
alignBox: contentAlignBox,
|
|
119
|
+
align: contentAlign,
|
|
118
120
|
className: _TabModule["default"].textContainer
|
|
119
121
|
}, text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
120
122
|
flexible: true,
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Tabs_defaultProps = exports.Tab_defaultProps = exports.TabWrapper_defaultProps = exports.TabContent_defaultProps = exports.TabContentWrapper_defaultProps = void 0;
|
|
7
7
|
var Tab_defaultProps = {
|
|
8
8
|
dataId: 'tabMenu',
|
|
9
|
+
contentAlign: 'both',
|
|
10
|
+
contentAlignBox: 'row',
|
|
9
11
|
customProps: {},
|
|
10
12
|
dataSelectorId: 'tab'
|
|
11
13
|
};
|
|
@@ -32,6 +32,8 @@ var Tab_propTypes = {
|
|
|
32
32
|
titlePosition: _propTypes["default"].oneOf(['top', 'bottom', 'right', 'left']),
|
|
33
33
|
tourId: _propTypes["default"].string,
|
|
34
34
|
type: _propTypes["default"].string,
|
|
35
|
+
contentAlign: _propTypes["default"].oneOf(['both', 'left', 'right', 'vertical', 'horizontal', 'top', 'bottom', 'between', 'around', 'baseline']),
|
|
36
|
+
contentAlignBox: _propTypes["default"].oneOf(['row', 'column', 'row-reverse', 'column-reverse']),
|
|
35
37
|
customProps: _propTypes["default"].object,
|
|
36
38
|
isVirtual: _propTypes["default"].bool,
|
|
37
39
|
dataSelectorId: _propTypes["default"].string
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _Loader_v1Module = _interopRequireDefault(require("./Loader_v1.module.css"));
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("./props/propTypes"));
|
|
13
13
|
|
|
@@ -20,17 +20,17 @@ var Loader = function Loader(props) {
|
|
|
20
20
|
var _customClass$customWr = customClass.customWrapperClass,
|
|
21
21
|
customWrapperClass = _customClass$customWr === void 0 ? '' : _customClass$customWr;
|
|
22
22
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
23
|
-
className: "".concat(
|
|
23
|
+
className: "".concat(_Loader_v1Module["default"].spinner, " ").concat(customWrapperClass),
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
25
25
|
role: "img",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
27
|
}, /*#__PURE__*/_react["default"].createElement("circle", {
|
|
28
|
-
className:
|
|
28
|
+
className: _Loader_v1Module["default"].spinnerTrack,
|
|
29
29
|
cx: "12",
|
|
30
30
|
cy: "12",
|
|
31
31
|
r: "10"
|
|
32
32
|
}), /*#__PURE__*/_react["default"].createElement("circle", {
|
|
33
|
-
className:
|
|
33
|
+
className: _Loader_v1Module["default"].spinnerHead,
|
|
34
34
|
cx: "12",
|
|
35
35
|
cy: "12",
|
|
36
36
|
r: "10"
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _SuccessTick_v1Module = _interopRequireDefault(require("./SuccessTick_v1.module.css"));
|
|
11
11
|
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("./props/propTypes"));
|
|
13
13
|
|
|
@@ -20,7 +20,7 @@ var SuccessTick = function SuccessTick(props) {
|
|
|
20
20
|
var _customClass$customWr = customClass.customWrapperClass,
|
|
21
21
|
customWrapperClass = _customClass$customWr === void 0 ? '' : _customClass$customWr;
|
|
22
22
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
23
|
-
className: "".concat(
|
|
23
|
+
className: "".concat(_SuccessTick_v1Module["default"].tick, " ").concat(customWrapperClass),
|
|
24
24
|
viewBox: "0 0 24 24",
|
|
25
25
|
role: "img",
|
|
26
26
|
"aria-hidden": "true"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.13",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"lintAllFix": "npm run lintAll --eslint:fix=true",
|
|
23
23
|
"lint": "npx eslint ./src",
|
|
24
24
|
"clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
|
|
25
|
-
"dubCheck": "
|
|
25
|
+
"dubCheck": "npx z-node-plugins dub:check node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es ../dot/src ../internal/desk-components/src",
|
|
26
26
|
"init": "npm run clean && cd ../assets && npm run componentsassets && cd ../components",
|
|
27
27
|
"common_package_build": "cd ../common && npm run build && cd ../components",
|
|
28
28
|
"build:lib": "cbt build:lib src,assets lib,assets",
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
"download": "npm run download_only && cd ../ && npm run download",
|
|
46
46
|
"download_only": "react-cli clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps",
|
|
47
47
|
"expublish": "node ../publish.js -- exp",
|
|
48
|
-
"css:lineheight:validate": "
|
|
48
|
+
"css:lineheight:validate": "npx z-node-plugins lineheight:errorcheck ./src/",
|
|
49
49
|
"variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
50
50
|
"variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
51
51
|
"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",
|
|
52
52
|
"css:review": " npm run dubCheck && npm run css:lineheight:validate && npm run theme:validate ",
|
|
53
|
-
"theme:validate": "
|
|
54
|
-
"theme:addignore": "
|
|
55
|
-
"theme:removeignore": "
|
|
53
|
+
"theme:validate": "npx z-node-plugins theme:validate ./src ./.cli ./.cli/themeValidate/stringContains.js",
|
|
54
|
+
"theme:addignore": "npx z-node-plugins theme:addignore ./src ./.cli ./.cli/themeValidate/stringContains.js",
|
|
55
|
+
"theme:removeignore": "npx z-node-plugins theme:removeignore ./src ./.cli",
|
|
56
56
|
"review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js propValidationArg.json ",
|
|
57
|
-
"css:layer_config_generate": "
|
|
58
|
-
"css:layer_wrap_es": "
|
|
59
|
-
"css:layer_wrap_lib": "
|
|
60
|
-
"css:layer_generate_order": "
|
|
61
|
-
"css:layer_config_validate": "
|
|
57
|
+
"css:layer_config_generate": "npx z-node-plugins css:scan ./src ./assets css_layer_config.json",
|
|
58
|
+
"css:layer_wrap_es": "npx z-node-plugins css:layer_wrap ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets --skip-existing-layer",
|
|
59
|
+
"css:layer_wrap_lib": "npx z-node-plugins css:layer_wrap ./lib ./assets css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
|
|
60
|
+
"css:layer_generate_order": "npx z-node-plugins css:layer_order css_layer_config.json ./src/components_layer.module.css",
|
|
61
|
+
"css:layer_config_validate": "npx z-node-plugins css:layer_validate css_layer_config.json ./src/ ./assets",
|
|
62
62
|
"css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build",
|
|
63
|
-
"css:layer_remove": "
|
|
63
|
+
"css:layer_remove": "npx z-node-plugins css:layer_remove ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
|
|
64
64
|
"css:audit": "npx css-audit --common-css=common/common.module.css --dir src --port 8085 --report ",
|
|
65
65
|
"cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
|
|
66
66
|
"publish": "node ../publish.js",
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"@zohodesk-private/css-audit-tool": "0.0.2",
|
|
76
76
|
"@zohodesk-private/color-variable-preprocessor": "1.3.1",
|
|
77
77
|
"@zohodesk-private/css-variable-migrator": "1.0.9",
|
|
78
|
-
"@zohodesk-private/node-plugins": "1.1.
|
|
78
|
+
"@zohodesk-private/node-plugins": "1.1.14",
|
|
79
79
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
80
80
|
"@zohodesk/a11y": "2.3.9",
|
|
81
81
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
82
82
|
"@zohodesk/dotkit": "1.0.9",
|
|
83
83
|
"@zohodesk/hooks": "2.0.8",
|
|
84
|
-
"@zohodesk/icons": "1.
|
|
84
|
+
"@zohodesk/icons": "1.3.1",
|
|
85
85
|
"@zohodesk/layout": "3.1.0",
|
|
86
86
|
"@zohodesk/svg": "1.3.5",
|
|
87
87
|
"@zohodesk/utils": "1.3.16",
|
|
@@ -91,7 +91,8 @@
|
|
|
91
91
|
"velocity-react": "1.4.3",
|
|
92
92
|
"@zohodesk/react-cli": "1.1.27",
|
|
93
93
|
"@zohodesk/client_build_tool": "0.0.20",
|
|
94
|
-
"color": "4.2.3"
|
|
94
|
+
"color": "4.2.3",
|
|
95
|
+
"@dot-system/css-utility": "0.1.1"
|
|
95
96
|
},
|
|
96
97
|
"dependencies": {
|
|
97
98
|
"hoist-non-react-statics": "3.0.1",
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
"selectn": "1.1.2"
|
|
101
102
|
},
|
|
102
103
|
"peerDependencies": {
|
|
103
|
-
"@zohodesk/icons": "1.
|
|
104
|
+
"@zohodesk/icons": "1.3.1",
|
|
104
105
|
"@zohodesk/variables": "1.3.1",
|
|
105
106
|
"@zohodesk/svg": "1.3.5",
|
|
106
107
|
"@zohodesk/virtualizer": "1.0.13",
|
|
@@ -111,6 +112,7 @@
|
|
|
111
112
|
"@zohodesk/a11y": "2.3.9",
|
|
112
113
|
"@zohodesk/layout": "3.1.0",
|
|
113
114
|
"@zohodesk/dotkit": "1.0.9",
|
|
114
|
-
"color": "4.2.3"
|
|
115
|
+
"color": "4.2.3",
|
|
116
|
+
"@dot-system/css-utility": "0.1.1"
|
|
115
117
|
}
|
|
116
118
|
}
|
|
File without changes
|
/package/es/v1/Button/_shared/SuccessTick/{SuccessTick.module.css → SuccessTick_v1.module.css}
RENAMED
|
File without changes
|
|
File without changes
|
/package/lib/v1/Button/_shared/SuccessTick/{SuccessTick.module.css → SuccessTick_v1.module.css}
RENAMED
|
File without changes
|