@zohodesk/components 1.6.12 → 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 CHANGED
@@ -2,6 +2,12 @@
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
+
5
11
  # 1.6.12
6
12
 
7
13
  - 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: "row",
95
- align: "both",
96
+ alignBox: contentAlignBox,
97
+ align: contentAlign,
96
98
  className: styles.textContainer
97
99
  }, text && /*#__PURE__*/React.createElement(Box, {
98
100
  flexible: true,
@@ -1,5 +1,7 @@
1
1
  export const Tab_defaultProps = {
2
2
  dataId: 'tabMenu',
3
+ contentAlign: 'both',
4
+ contentAlignBox: 'row',
3
5
  customProps: {},
4
6
  dataSelectorId: 'tab'
5
7
  };
@@ -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: "row",
117
- align: "both",
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.6.12",
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": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es ../dot/src ../internal/desk-components/src",
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": "node ./node_modules/@zohodesk-private/node-plugins/es/lineheight_automation/lineHeightErrorCheck.js ./src/",
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": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation validate ./src ./.cli ./.cli/themeValidate/stringContains.js",
54
- "theme:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation addignore ./src ./.cli ./.cli/themeValidate/stringContains.js",
55
- "theme:removeignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation removeignore ./src ./.cli",
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": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/scan_css_generate_json.js ./src ./assets css_layer_config.json",
58
- "css:layer_wrap_es": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets --skip-existing-layer",
59
- "css:layer_wrap_lib": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./lib ./assets css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
60
- "css:layer_generate_order": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/generate_layer_order.js css_layer_config.json ./src/components_layer.module.css",
61
- "css:layer_config_validate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/validate.js css_layer_config.json ./src/ ./assets",
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": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/remove_layer.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
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.13",
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.2.8",
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.2.8",
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
  }