@zohodesk/components 1.4.11 → 1.4.12

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,13 @@
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.4.12
6
+
7
+ - `TextBox`
8
+ - The event is passed as the 4th argument to both handleBlur and handleFocus
9
+ - `Common Css`
10
+ - added ltr class for change direction to ltr in rtl mode
11
+
5
12
  # 1.4.11
6
13
 
7
14
  - `@zohodesk/virtualizer` version updated from **1.0.3** to **1.0.13**
@@ -15,24 +15,24 @@ export default class TextBox extends React.PureComponent {
15
15
  this.handlePreventTextBoxScroll = this.handlePreventTextBoxScroll.bind(this);
16
16
  }
17
17
 
18
- handleFocus() {
18
+ handleFocus(e) {
19
19
  let {
20
20
  id,
21
21
  value,
22
22
  name,
23
23
  onFocus
24
24
  } = this.props;
25
- onFocus && onFocus(id, value, name);
25
+ onFocus && onFocus(id, value, name, e);
26
26
  }
27
27
 
28
- handleBlur() {
28
+ handleBlur(e) {
29
29
  let {
30
30
  id,
31
31
  value,
32
32
  name,
33
33
  onBlur
34
34
  } = this.props;
35
- onBlur && onBlur(id, value, name);
35
+ onBlur && onBlur(id, value, name, e);
36
36
  }
37
37
 
38
38
  inputRef(ref) {
@@ -556,4 +556,11 @@
556
556
 
557
557
  .whiteSpace_breakSpaces {
558
558
  white-space: break-spaces
559
+ }
560
+
561
+ /*This Lines added to handle mobile number with mixed symbols in rtl case ex : (050)991-881*/
562
+ [dir=rtl] .ltr input,.ltr{
563
+ direction: ltr;
564
+ /* unicode-bidi: bidi-override; */
565
+ text-align: end;
559
566
  }
@@ -61,23 +61,23 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
61
61
 
62
62
  _createClass(TextBox, [{
63
63
  key: "handleFocus",
64
- value: function handleFocus() {
64
+ value: function handleFocus(e) {
65
65
  var _this$props = this.props,
66
66
  id = _this$props.id,
67
67
  value = _this$props.value,
68
68
  name = _this$props.name,
69
69
  onFocus = _this$props.onFocus;
70
- onFocus && onFocus(id, value, name);
70
+ onFocus && onFocus(id, value, name, e);
71
71
  }
72
72
  }, {
73
73
  key: "handleBlur",
74
- value: function handleBlur() {
74
+ value: function handleBlur(e) {
75
75
  var _this$props2 = this.props,
76
76
  id = _this$props2.id,
77
77
  value = _this$props2.value,
78
78
  name = _this$props2.name,
79
79
  onBlur = _this$props2.onBlur;
80
- onBlur && onBlur(id, value, name);
80
+ onBlur && onBlur(id, value, name, e);
81
81
  }
82
82
  }, {
83
83
  key: "inputRef",
@@ -556,4 +556,11 @@
556
556
 
557
557
  .whiteSpace_breakSpaces {
558
558
  white-space: break-spaces
559
+ }
560
+
561
+ /*This Lines added to handle mobile number with mixed symbols in rtl case ex : (050)991-881*/
562
+ [dir=rtl] .ltr input,.ltr{
563
+ direction: ltr;
564
+ /* unicode-bidi: bidi-override; */
565
+ text-align: end;
559
566
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.4.11",
3
+ "version": "1.4.12",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -39,7 +39,7 @@
39
39
  "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
40
40
  "coverage": "react-cli coverage",
41
41
  "prepare": "npm run init && npm run css:build ",
42
- "prepublishOnly": "node prePublish.js && npm run test-clean && npm run download && npm run css:review && npm run review:props ",
42
+ "prepublishOnly": "node prePublish.js && npm run downloadOnly && npm run css:review && npm run review:props ",
43
43
  "postpublish": "node postPublish.js",
44
44
  "report": "react-cli publish:report",
45
45
  "test": "react-cli test",
@@ -48,7 +48,8 @@
48
48
  "snap-update": "npm run test-clean && npm run test -- -u",
49
49
  "sstest": "npm run init && react-cli sstest",
50
50
  "build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && react-cli build:component:umd && npm run externalDocHTMLChange",
51
- "download": "react-cli clean ./node_modules ./package-lock.json && npm install ",
51
+ "download": "react-cli clean ./node_modules ./package-lock.json && npm install && cd ../ && npm run download",
52
+ "downloadOnly": "react-cli clean ./node_modules ./package-lock.json && npm install",
52
53
  "expublish": "npm publish --tag experimental-version",
53
54
  "css:lineheight:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/lineheight_automation/lineHeightErrorCheck.js ./src/",
54
55
  "cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",