@zohodesk/components 1.0.0-temp-217.2 → 1.0.0-temp-219

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.
@@ -37,7 +37,7 @@
37
37
  {
38
38
  --switch_off_bg_color: var(--zdt_switch_effect_off_bg);
39
39
  }
40
- .thumb {
40
+ .label:after {
41
41
  content: '';
42
42
  display: block;
43
43
  position: absolute;
@@ -46,21 +46,14 @@
46
46
  box-shadow: var(--switch_cricle_box_shadow);
47
47
  background-color: var(--switch_circle_bg_color);
48
48
  border-radius: var(--switch_circle_border_radius);
49
- left: var(--zd_size1) ;
50
- }
51
- .onOffIndicationHolder{
52
- display: flex;
53
- justify-content: center;
54
- align-items: center;
55
- height: 100% ;
56
49
  }
57
50
 
58
51
  .checked+.label {
59
52
  box-shadow: inset 0 0 0 var(--zd_size10) var(--switch_on_bg_color);
60
53
  }
61
- .checked+label .thumb {
62
- right: var(--zd_size1) ;
63
- left: auto ;
54
+
55
+ .checked+.label:after {
56
+ right: calc( var(--zd_size1) * -1 ) ;
64
57
  }
65
58
 
66
59
  .input {
@@ -72,15 +65,15 @@
72
65
  width: var(--zd_size28) ;
73
66
  }
74
67
  .switch_smallLabel {
75
- height: var(--zd_size12) ;
68
+ height: var(--zd_size9) ;
76
69
  width: var(--zd_size22) ;
77
- bottom: var(--zd_size1) ;
70
+ top: calc( var(--zd_size2) * -1 ) ;
78
71
  left: var(--zd_size2) ;
79
72
  }
80
- .switch_smallLabel .thumb{
81
- width: var(--zd_size10) ;
82
- height: var(--zd_size10) ;
83
- top: var(--zd_size1) ;
73
+ .switch_smallLabel:after {
74
+ width: var(--zd_size12) ;
75
+ height: var(--zd_size12) ;
76
+ top: calc( var(--zd_size2) * -1 ) ;
84
77
  }
85
78
 
86
79
  .medium {
@@ -88,21 +81,15 @@
88
81
  width: var(--zd_size34) ;
89
82
  }
90
83
  .switch_mediumLabel {
91
- height: var(--zd_size16) ;
84
+ height: var(--zd_size13) ;
92
85
  width: var(--zd_size31) ;
93
86
  top: var(--zd_size2) ;
94
87
  left: var(--zd_size2) ;
95
88
  }
96
- .switch_smallLabel.labelOnTrack{
97
- width: var(--zd_size32) ;
98
- }
99
- .switch_mediumLabel.labelOnTrack{
100
- width: var(--zd_size42) ;
101
- }
102
- .switch_mediumLabel .thumb{
103
- width: var(--zd_size12) ;
104
- height: var(--zd_size12) ;
105
- top: var(--zd_size2) ;
89
+ .switch_mediumLabel:after {
90
+ width: var(--zd_size18) ;
91
+ height: var(--zd_size18) ;
92
+ top: calc( var(--zd_size3) * -1 ) ;
106
93
  }
107
94
 
108
95
  .input:disabled+.label {
@@ -138,102 +125,4 @@
138
125
 
139
126
  [dir=rtl] .switch+label {
140
127
  margin-right: var(--zd_size12) ;
141
- }
142
- .onOffLabel{
143
- position: absolute;
144
- inset: 0;
145
- z-index: 2;
146
- }
147
- .onOffIndication{
148
- /* css:theme-validation:ignore */
149
- border: 0.5px solid;
150
- }
151
- .offIndication{
152
- /* css:theme-validation:ignore */
153
- border-color: #868585;
154
- border-radius: 50%;
155
- }
156
- .onIndication{
157
- /* css:theme-validation:ignore */
158
- border-color: var(--switch_on_bg_color);
159
- border-radius: 5px;
160
- }
161
- .thumbIndication.onIndication{
162
- /* css:theme-validation:ignore */
163
- border-color: #fff;
164
- }
165
- .switch_small .thumbIndication.onOffLabel{
166
- top: calc( var(--zd_size10) * -1 ) ;
167
- }
168
- [dir=ltr] .switch_small .thumbIndication.onOffLabel{
169
- right: var(--zd_size3) ;
170
- }
171
- [dir=rtl] .switch_small .thumbIndication.onOffLabel{
172
- left: var(--zd_size3) ;
173
- }
174
- .switch_small .offIndication{
175
- width: var(--zd_size5) ;
176
- height: var(--zd_size5) ;
177
- }
178
- .switch_small .thumbIndication.offIndication{
179
- margin: 0 var(--zd_size3) ;
180
- }
181
- .switch_small .onIndication{
182
- width: var(--zd_size1) ;
183
- height: var(--zd_size5) ;
184
- }
185
- .switch_small .thumbIndication.onIndication{
186
- margin: 0 var(--zd_size5) ;
187
- }
188
- .switch_medium .thumbIndication.onOffLabel{
189
- top: calc( var(--zd_size10) * -1 ) ;
190
- }
191
- [dir=ltr] .switch_medium .thumbIndication.onOffLabel{
192
- right: var(--zd_size3) ;
193
- }
194
- [dir=rtl] .switch_medium .thumbIndication.onOffLabel{
195
- left: var(--zd_size3) ;
196
- }
197
- .switch_medium .offIndication{
198
- width: var(--zd_size7) ;
199
- height: var(--zd_size7) ;
200
- }
201
- .switch_medium .thumbIndication.offIndication{
202
- margin: 0 var(--zd_size5) ;
203
- }
204
- .switch_medium .onIndication{
205
- width: var(--zd_size1) ;
206
- height: var(--zd_size7) ;
207
- }
208
- .switch_medium .thumbIndication.onIndication{
209
- margin: 0 var(--zd_size7) ;
210
- }
211
- .onOffIndicationText{
212
- /* css:theme-validation:ignore */
213
- color: #fff;
214
- }
215
- .switch_small .onOffIndicationText{
216
- font-size: var(--zd_font_size7) ;
217
- margin: 0 var(--zd_size4) ;
218
- }
219
- .switch_medium .onOffIndicationText{
220
- font-size: var(--zd_font_size10) ;
221
- margin: 0 var(--zd_size6) ;
222
- }
223
- .labelText{
224
- /* css:theme-validation:ignore */
225
- color: #000;
226
- }
227
- .smallLabelText{
228
- font-size: var(--zd_font_size11) ;
229
- margin: var(--zd_size1) 0 0 ;
230
- }
231
- .mediumLabelText{
232
- font-size: var(--zd_font_size12) ;
233
- }
234
- [dir=ltr] .mediumLabelText{
235
- margin : var(--zd_size1) 0 0 var(--zd_size2) ;
236
- }
237
- [dir=rtl] .mediumLabelText{
238
- margin : var(--zd_size1) var(--zd_size2) 0 0 ;
239
128
  }
@@ -13,6 +13,8 @@ var _defaultProps = require("./props/defaultProps");
13
13
 
14
14
  var _propTypes = require("./props/propTypes");
15
15
 
16
+ var _ComponentCustomizer = require("@zohodesk/dotkit/es/react/components/ComponentCustomizer");
17
+
16
18
  var _TextBoxModule = _interopRequireDefault(require("./TextBox.module.css"));
17
19
 
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -221,7 +223,6 @@ var TextBox = /*#__PURE__*/function (_React$PureComponent) {
221
223
  return TextBox;
222
224
  }(_react["default"].PureComponent);
223
225
 
224
- exports["default"] = TextBox;
225
226
  TextBox.defaultProps = _defaultProps.defaultProps;
226
227
  TextBox.propTypes = _propTypes.propTypes; // if (__DOCS__) {
227
228
  // Textbox.docs = {
@@ -230,4 +231,10 @@ TextBox.propTypes = _propTypes.propTypes; // if (__DOCS__) {
230
231
  // external: true,
231
232
  // description: ' '
232
233
  // };
233
- // }
234
+ // }
235
+
236
+ var _default = (0, _ComponentCustomizer.ComponentCustomizer)(TextBox, {
237
+ name: 'TextBox'
238
+ });
239
+
240
+ exports["default"] = _default;
package/lib/index.js CHANGED
@@ -26,7 +26,6 @@ var _exportNames = {
26
26
  RippleEffect: true,
27
27
  Stencils: true,
28
28
  Switch: true,
29
- SwitchNew: true,
30
29
  Tag: true,
31
30
  Textarea: true,
32
31
  TextBox: true,
@@ -145,12 +144,6 @@ Object.defineProperty(exports, "Switch", {
145
144
  return _Switch["default"];
146
145
  }
147
146
  });
148
- Object.defineProperty(exports, "SwitchNew", {
149
- enumerable: true,
150
- get: function get() {
151
- return _SwitchNew["default"];
152
- }
153
- });
154
147
  Object.defineProperty(exports, "Tag", {
155
148
  enumerable: true,
156
149
  get: function get() {
@@ -359,8 +352,6 @@ var _Stencils = _interopRequireDefault(require("./Stencils/Stencils"));
359
352
 
360
353
  var _Switch = _interopRequireDefault(require("./Switch/Switch"));
361
354
 
362
- var _SwitchNew = _interopRequireDefault(require("./SwitchNew/SwitchNew"));
363
-
364
355
  var _Tab = require("./Tab");
365
356
 
366
357
  Object.keys(_Tab).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-217.2",
3
+ "version": "1.0.0-temp-219",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -38,7 +38,7 @@
38
38
  "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
39
39
  "coverage": "react-cli coverage",
40
40
  "prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
41
- "prepublishOnly": "node prePublish.js && npm run download",
41
+ "prepublishOnly": "node prePublish.js && npm run test && npm run download && npm run css:review && npm run review:props ",
42
42
  "postpublish": "node postPublish.js",
43
43
  "report": "react-cli publish:report",
44
44
  "test": "react-cli test",
@@ -69,6 +69,7 @@
69
69
  "@zohodesk-private/node-plugins": "1.1.8",
70
70
  "@zohodesk-private/react-prop-validator": "1.2.3",
71
71
  "@zohodesk/a11y": "2.2.7",
72
+ "@zohodesk/dotkit": "1.0.0-temp-1",
72
73
  "@zohodesk/docstool": "1.0.0-alpha-2",
73
74
  "@zohodesk/hooks": "2.0.5",
74
75
  "@zohodesk/icons": "1.0.70",
@@ -86,6 +87,7 @@
86
87
  "selectn": "1.1.2"
87
88
  },
88
89
  "peerDependencies": {
90
+ "@zohodesk/dotkit": "1.0.0-temp-1",
89
91
  "@zohodesk/icons": "1.0.70",
90
92
  "@zohodesk/variables": "1.0.0",
91
93
  "@zohodesk/svg": "1.1.22",