@zohodesk/components 1.0.0-temp-252.2 → 1.0.0-temp-252.3
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 +7 -1
- package/es/Tab/Tab.js +4 -2
- package/es/Tab/props/defaultProps.js +2 -0
- package/es/Tab/props/propTypes.js +2 -0
- package/lib/Tab/Tab.js +4 -2
- package/lib/Tab/props/defaultProps.js +2 -0
- package/lib/Tab/props/propTypes.js +2 -0
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
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.
|
|
5
|
+
# 1.6.14
|
|
6
6
|
|
|
7
7
|
- **Select**
|
|
8
8
|
- Added `renderCustomDropBoxHeader` prop to render a custom node at the top of the dropdown, above the suggestions list.
|
|
9
9
|
- Added `customDropBoxHeader` key under the `customClass` prop to style the custom header wrapper.
|
|
10
10
|
|
|
11
|
+
# 1.6.13
|
|
12
|
+
|
|
13
|
+
- **Tab**
|
|
14
|
+
- `contentAlign` prop supported to control the internal content container's alignment (justify-content). Default value is `both`.
|
|
15
|
+
- `contentAlignBox` prop supported to control the internal content container's flex direction. Default value is `row`.
|
|
16
|
+
|
|
11
17
|
# 1.6.12
|
|
12
18
|
|
|
13
19
|
- v1/Button/_shared/SuccessTick/SuccessTick.module.css file renamed to SuccessTick_v1.module.css
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-temp-252.
|
|
3
|
+
"version": "1.0.0-temp-252.3",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"build:watch": "npm run build:es:watch --module:mode=dev -- -w",
|
|
34
34
|
"coverage": "react-cli coverage",
|
|
35
35
|
"prepare": "npm run init && npm run css:build ",
|
|
36
|
-
"prepublishOnly": "node ../prePublish.js && npm run css:review",
|
|
36
|
+
"prepublishOnly": "node ../prePublish.js && npm run css:review && npm run review:props ",
|
|
37
37
|
"postpublish": "node ../postPublish.js",
|
|
38
38
|
"report": "react-cli publish:report",
|
|
39
39
|
"test": "react-cli test",
|
|
@@ -46,9 +46,9 @@
|
|
|
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
48
|
"css:lineheight:validate": "npx z-node-plugins lineheight:errorcheck ./src/",
|
|
49
|
-
"variable:addignore": "
|
|
50
|
-
"variable:convert": "
|
|
51
|
-
"variable:check": "
|
|
49
|
+
"variable:addignore": "npx css-variable-migrator addignore ./src",
|
|
50
|
+
"variable:convert": "npx css-variable-migrator convert ./src",
|
|
51
|
+
"variable:check": "npx css-variable-migrator check ./src",
|
|
52
52
|
"css:review": " npm run dubCheck && npm run css:lineheight:validate && npm run theme:validate ",
|
|
53
53
|
"theme:validate": "npx z-node-plugins theme:validate ./src ./.cli ./.cli/themeValidate/stringContains.js",
|
|
54
54
|
"theme:addignore": "npx z-node-plugins theme:addignore ./src ./.cli ./.cli/themeValidate/stringContains.js",
|
|
@@ -61,7 +61,8 @@
|
|
|
61
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
63
|
"css:layer_remove": "npx z-node-plugins css:layer_remove ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
|
|
64
|
-
"css:audit": "npx css-audit
|
|
64
|
+
"css:audit:report": "npx css-audit --common-css=../node_modules/@dot-system/css-utility/es/utilities.plain.css --dir src --port 8085 --report",
|
|
65
|
+
"css:audit:css-utility": "npx css-audit --common-css=../node_modules/@dot-system/css-utility/es/utilities.plain.css --error on --dir src",
|
|
65
66
|
"cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
|
|
66
67
|
"publish": "node ../publish.js",
|
|
67
68
|
"check_package": "node ../check_dependencies.js"
|
|
@@ -72,9 +73,9 @@
|
|
|
72
73
|
"@testing-library/react": "^11.2.5",
|
|
73
74
|
"@testing-library/react-hooks": "^7.0.2",
|
|
74
75
|
"@testing-library/user-event": "^13.0.10",
|
|
75
|
-
"@
|
|
76
|
+
"@dot-system/css-audit-tool": "1.0.0",
|
|
76
77
|
"@zohodesk-private/color-variable-preprocessor": "1.3.1",
|
|
77
|
-
"@zohodesk-private/css-variable-migrator": "1.0.
|
|
78
|
+
"@zohodesk-private/css-variable-migrator": "1.0.11",
|
|
78
79
|
"@zohodesk-private/node-plugins": "1.1.14",
|
|
79
80
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
80
81
|
"@zohodesk/a11y": "2.3.9",
|