@zohodesk/components 1.0.0-temp-185 → 1.0.0-temp-187

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/.DS_Store CHANGED
Binary file
package/README.md CHANGED
@@ -32,6 +32,10 @@ In this Package, we Provide Some Basic Components to Build Web App
32
32
  - TextBoxIcon
33
33
  - Tooltip
34
34
 
35
+ # 1.2.22
36
+
37
+ - **Tags,TextArea, Textbox, Checkbox** - Cursor css changes for variable autoconversion
38
+
35
39
  # 1.2.21
36
40
 
37
41
  - **v1/Tabs** - converted to functional component
@@ -9,52 +9,42 @@
9
9
  --checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
10
10
  --checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
11
11
  }
12
-
13
12
  .container {
14
13
  composes: varClass;
15
14
  stroke: var(--checkbox_stroke_color);
16
15
  }
17
-
18
16
  .container, .pointer, .readonly {
19
17
  cursor: var(--checkbox_cursor);
20
18
  }
21
-
22
19
  .pointer {
23
20
  --checkbox_cursor: pointer;
24
21
  }
25
-
26
22
  .readonly {
27
23
  --checkbox_cursor: default;
28
24
  }
29
-
30
25
  .cbBox {
31
26
  fill: none;
32
27
  stroke-width: var(--checkbox_stroke_width);
33
28
  stroke-linecap: round;
34
29
  stroke: inherit;
35
30
  }
36
-
37
31
  .tickPath {
38
32
  composes: cbBox;
39
33
  stroke-dasharray: 40;
40
34
  }
41
-
42
35
  .boxContainer {
43
36
  composes: offSelection from '../common/common.module.css';
44
37
  /* css:theme-validation:ignore */
45
38
  border-radius: 2px;
46
39
  background-color: var(--checkbox_bg_color);
47
40
  }
48
-
49
41
  .filled {
50
42
  --checkbox_bg_color: inherit;
51
43
  }
52
-
53
44
  .medium {
54
45
  width: 16px;
55
46
  height: 16px;
56
47
  }
57
-
58
48
  .small {
59
49
  width: 13px;
60
50
  height: 13px;
@@ -92,23 +82,18 @@
92
82
  [dir=rtl] .checkedtickPath {
93
83
  animation: tickAnimate var(--zd_transition3) ease forwards;
94
84
  }
95
-
96
85
  .linePath {
97
86
  transform-origin: center;
98
87
  }
99
-
100
88
  [dir=ltr] .linePath {
101
89
  animation: lineAnimate var(--zd_transition3) ease forwards;
102
90
  }
103
-
104
91
  [dir=rtl] .linePath {
105
92
  animation: lineAnimate var(--zd_transition3) ease forwards;
106
93
  }
107
-
108
94
  [dir=ltr] .text {
109
95
  margin-left: 6px;
110
96
  }
111
-
112
97
  [dir=rtl] .text {
113
98
  margin-right: 6px;
114
99
  }
@@ -117,25 +102,19 @@
117
102
  .checkeddanger {
118
103
  stroke: var(--checkbox_checked_stroke_color);
119
104
  }
120
-
121
105
  .primary:hover
122
-
123
106
  /* .primary:focus */
124
- {
107
+ {
125
108
  --checkbox_stroke_color: var(--zdt_checkbox_primary_stroke_border);
126
109
  }
127
-
128
110
  .checkedprimary {
129
111
  --checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
130
112
  }
131
-
132
113
  .danger:hover
133
-
134
114
  /* .danger:focus */
135
- {
115
+ {
136
116
  --checkbox_stroke_color: var(--zdt_checkbox_danger_stroke_border);
137
117
  }
138
-
139
118
  .checkeddanger {
140
119
  --checkbox_checked_stroke_color: var(--zdt_checkbox_danger_stroke_border);
141
120
  }
@@ -145,25 +124,19 @@
145
124
  /* css:theme-validation:ignore */
146
125
  color: var(--checkbox_checked_active_color);
147
126
  }
148
-
149
127
  .activeprimaryLabel:hover
150
-
151
128
  /* .activeprimaryLabel:focus */
152
- {
129
+ {
153
130
  --label_text_color: var(--zdt_checkbox_label_primary_text);
154
131
  }
155
-
156
132
  .checkedprimaryLabel {
157
133
  --checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
158
134
  }
159
-
160
135
  .activedangerLabel:hover
161
-
162
136
  /* .activedangerLabel:focus */
163
- {
137
+ {
164
138
  --label_text_color: var(--zdt_checkbox_label_danger_text);
165
139
  }
166
-
167
140
  .checkeddangerLabel {
168
141
  --checkbox_checked_active_color: var(--zdt_checkbox_danger_stroke_border);
169
142
  }
@@ -171,7 +144,6 @@
171
144
  0% {
172
145
  stroke-dashoffset: 40;
173
146
  }
174
-
175
147
  100% {
176
148
  stroke-dashoffset: 0;
177
149
  }
@@ -181,8 +153,7 @@
181
153
  0% {
182
154
  transform: scaleX(0);
183
155
  }
184
-
185
156
  100% {
186
157
  transform: scaleX(1);
187
158
  }
188
- }
159
+ }
@@ -21,21 +21,15 @@
21
21
  /* tag normal icon default variables */
22
22
  --tag_icon_bg_color: var(--zdt_tag_icon_bg);
23
23
  }[dir=ltr] .varClass {
24
- --tag_closeicon_border_radius: 0 12px 12px 0
25
- /*rtl: 12px 0 0 12px*/
26
- ;
24
+ --tag_closeicon_border_radius: 0 12px 12px 0 /*rtl: 12px 0 0 12px*/;
27
25
  --tag_closeicon_padding: 0 7px 0 6px
28
- /*rtl: 0 6px 0 7px*/
29
- ;
30
- --tag_icon_margin: 0 0 0 5px
31
- /*rtl: 0 5px 0 0*/
32
- ;
26
+ /*rtl: 0 6px 0 7px*/;
27
+ --tag_icon_margin: 0 0 0 5px /*rtl: 0 5px 0 0*/;
33
28
  }[dir=rtl] .varClass {
34
- --tag_closeicon_border_radius: 0 12px 12px 0 ;
35
- --tag_closeicon_padding: 0 7px 0 6px ;
36
- --tag_icon_margin: 0 0 0 5px ;
29
+ --tag_closeicon_border_radius: 12px 0 0 12px;
30
+ --tag_closeicon_padding: 0 6px 0 7px;
31
+ --tag_icon_margin: 0 5px 0 0;
37
32
  }
38
-
39
33
  .container {
40
34
  composes: varClass;
41
35
  composes: dInflex alignVertical flexrow from '../common/common.module.css';
@@ -57,62 +51,49 @@
57
51
  padding: var(--tag_padding);
58
52
  cursor: var(--tag_cursor);
59
53
  }
60
-
61
54
  .disabled {
62
55
  pointer-events: none;
63
56
  --tag_text_color: var(--zdt_tag_disabled_text);
64
57
  }
65
-
66
58
  .readonly,
67
59
  .disabled {
68
60
  --tag_cursor: not-allowed;
69
61
  }
70
-
71
62
  .pointer {
72
63
  --tag_cursor: pointer;
73
64
  }
74
-
75
65
  .lgRadius {
76
66
  --tag_border_radius: 25px;
77
67
  }
78
-
79
68
  .smRadius {
80
69
  --tag_border_radius: 3px;
81
70
  }
82
-
83
71
  .text {
84
72
  composes: dotted flexgrow from '../common/common.module.css';
85
73
  }
86
-
87
74
  .smalltext,
88
75
  .mediumtext {
89
76
  font-size: var(--tag_font_size);
90
77
  }
91
-
92
78
  .smalltext, .mediumtext {
93
79
  padding: var(--tag_inner_text_padding);
94
80
  }
95
-
96
81
  .small {
97
82
  --tag_height: 20px;
98
83
  --tag_padding: 1px;
99
84
  --tag_inner_text_padding: 0 7px;
100
85
  }
101
-
102
86
  [dir=ltr] .small .avatar {
103
87
  transform: scale(0.8) translateX(-2px);
104
88
  margin-right: -8px;
105
89
  }
106
-
107
90
  [dir=rtl] .small .avatar {
108
91
  transform: scale(0.8) translateX(2px);
109
92
  margin-left: -8px;
110
93
  }
111
-
112
94
  .smalltext {
113
95
  --tag_font_size: 12px;
114
96
  }
115
-
116
97
  .activesmallEffect {
117
98
  --tag_inner_text_padding: 0 25px 0 7px;
118
99
  }
@@ -122,11 +103,9 @@
122
103
  --tag_padding: 2px;
123
104
  --tag_inner_text_padding: 0 6px;
124
105
  }
125
-
126
106
  .mediumtext {
127
107
  --tag_font_size: 13px;
128
108
  }
129
-
130
109
  .activemediumEffect {
131
110
  --tag_inner_text_padding: 0 25px 0 6px;
132
111
  }
@@ -134,12 +113,10 @@
134
113
  .selected .close {
135
114
  display: block;
136
115
  }
137
-
138
116
  .activedanger,
139
117
  .closedanger:hover {
140
118
  --tag_closeicon_bg_color: var(--zdt_tag_danger_bg);
141
119
  }
142
-
143
120
  .activeprimary,
144
121
  .closeprimary:hover {
145
122
  --tag_closeicon_bg_color: var(--zdt_tag_primary_hover_bg);
@@ -148,7 +125,6 @@
148
125
  .container:hover .close {
149
126
  display: block;
150
127
  }
151
-
152
128
  .close {
153
129
  /* css:theme-validation:ignore */
154
130
  color: var(--tag_closeicon_color);
@@ -162,58 +138,41 @@
162
138
  border-radius: var(--tag_closeicon_border_radius);
163
139
  background: var(--tag_closeicon_bg_color);
164
140
  }
165
-
166
141
  [dir=ltr] .close {
167
142
  right: 0;
168
143
  }
169
-
170
144
  [dir=rtl] .close {
171
145
  left: 0;
172
146
  }
173
-
174
147
  [dir=ltr] .lgRadiusClose {
175
- --tag_closeicon_border_radius: 0 12px 12px 0
176
- /*rtl: 12px 0 0 12px*/
177
- ;
148
+ --tag_closeicon_border_radius: 0 12px 12px 0 /*rtl: 12px 0 0 12px*/;
178
149
  }
179
-
180
150
  [dir=rtl] .lgRadiusClose {
181
- --tag_closeicon_border_radius: 0 12px 12px 0 ;
151
+ --tag_closeicon_border_radius: 12px 0 0 12px;
182
152
  }
183
-
184
153
  [dir=ltr] .smRadiusClose {
185
- --tag_closeicon_border_radius: 0 3px 3px 0
186
- /*rtl: 3px 0 0 3px*/
187
- ;
154
+ --tag_closeicon_border_radius: 0 3px 3px 0 /*rtl: 3px 0 0 3px*/;
188
155
  }
189
-
190
156
  [dir=rtl] .smRadiusClose {
191
- --tag_closeicon_border_radius: 0 3px 3px 0 ;
157
+ --tag_closeicon_border_radius: 3px 0 0 3px;
192
158
  }
193
-
194
159
  .closedanger {
195
160
  --tag_closeicon_bg_color: var(--zdt_tag_closedanger_bg);
196
161
  }
197
-
198
162
  .closeprimary {
199
163
  --tag_closeicon_bg_color: var(--zdt_tag_closeprimary_bg);
200
164
  }
201
-
202
165
  .default,
203
- .danger,
204
- .defaultLink {
166
+ .danger,.defaultLink {
205
167
  --tag_bg_color: var(--zdt_tag_default_danger_bg);
206
168
  }
207
-
208
169
  .effect.default:hover {
209
170
  --tag_bg_color: var(--zdt_tag_default_hover_bg);
210
171
  }
211
-
212
172
  .activedefault,
213
173
  .effect.activedefault:hover {
214
174
  --tag_bg_color: var(--zdt_tag_active_default_bg);
215
175
  }
216
-
217
176
  .activeprimaryClose,
218
177
  .activeprimaryClose:hover {
219
178
  --tag_closeicon_bg_color: var(--zdt_tag_primary_bg);
@@ -222,46 +181,37 @@
222
181
  .effect.danger:hover {
223
182
  --tag_bg_color: var(--zdt_tag_danger_hover_bg);
224
183
  }
225
-
226
184
  .activedanger,
227
185
  .effect.activedanger:hover {
228
186
  --tag_bg_color: var(--zdt_tag_danger_hover_bg);
229
187
  }
230
-
231
188
  .activedangerClose,
232
189
  .activedangerClose:hover {
233
190
  --tag_closeicon_bg_color: var(--zdt_tag_danger_bg);
234
191
  }
235
-
236
192
  .secondary {
237
193
  --tag_bg_color: var(--zdt_tag_secondary_bg);
238
194
  --tag_text_color: var(--zdt_tag_secondary_text);
239
195
  }
240
-
241
196
  .activesecondary,
242
197
  .effect.secondary:hover {
243
198
  --tag_bg_color: var(--zdt_tag_secondary_hover_bg);
244
199
  }
245
-
246
200
  .activedefaultLink,
247
- .effect.defaultLink:hover {
248
- --tag_bg_color: var(--zdt_tag_defaultLink_hover_bg);
249
- --tag_text_color: var(--zdt_tag_defaultLink_hover_text);
250
- }
251
-
252
- ;
201
+ .effect.defaultLink:hover{
202
+ --tag_bg_color: var(--zdt_tag_defaultLink_hover_bg);
203
+ --tag_text_color: var(--zdt_tag_defaultLink_hover_text);
204
+ };
253
205
 
254
206
  .pureDotted {
255
207
  --tag_bg_color: var(--zdt_tag_pure_bg);
256
208
  --tag_border_width: 1px;
257
209
  --tag_border_color: var(--zdt_tag_pure_border);
258
210
  }
259
-
260
211
  .effect.pureDotted:hover {
261
212
  --tag_bg_color: var(--zdt_tag_pure_hover_bg);
262
213
  --tag_border_color: var(--zdt_tag_pure_hover_border);
263
214
  }
264
-
265
215
  .activepureDotted,
266
216
  .effect.activepureDotted:hover {
267
217
  --tag_bg_color: var(--zdt_tag_pure_bg);
@@ -272,7 +222,6 @@
272
222
  --tag_border_width: 1px;
273
223
  --tag_border_color: var(--zdt_tag_primary_border);
274
224
  }
275
-
276
225
  .effect.primaryDotted:hover,
277
226
  .activeprimaryDotted,
278
227
  .primary,
@@ -285,35 +234,28 @@
285
234
  margin: var(--tag_icon_margin);
286
235
  background-color: var(--tag_icon_bg_color);
287
236
  }
288
-
289
- .icon>i {
237
+ .icon > i {
290
238
  display: block;
291
239
  }
292
-
293
240
  .dark {
294
241
  --tag_bg_color: var(--zdt_tag_dark_bg);
295
242
  --tag_text_color: var(--zdt_tag_dark_text);
296
243
  }
297
-
298
244
  .effect.dark:hover {
299
245
  --tag_bg_color: var(--zdt_tag_dark_hover_bg);
300
246
  --tag_text_color: var(--zdt_tag_dark_hover_text);
301
247
  }
302
-
303
248
  .darkTagClose {
304
249
  --tag_closeicon_bg_color: var(--zdt_tag_dark_close_bg);
305
250
  --tag_closeicon_color: var(--zdt_tag_dark_close_text);
306
251
  }
307
-
308
252
  .darkTagClose:hover {
309
253
  --tag_closeicon_bg_color: var(--zdt_tag_dark_close_hover_bg);
310
254
  --tag_closeicon_color: var(--zdt_tag_secondary_text);
311
255
  }
312
-
313
256
  .pureDarkDotted {
314
257
  composes: dark pureDotted;
315
258
  }
316
-
317
259
  .darkPrimaryDotted {
318
260
  composes: dark primaryDotted;
319
261
  }
@@ -50,7 +50,6 @@
50
50
  /* css:theme-validation:ignore */
51
51
  color: var(--textbox_placeholder_text_color);
52
52
  }
53
-
54
53
  /* css:lineheight-validation:ignore */
55
54
  .container {
56
55
  composes: basic;
@@ -12,7 +12,6 @@
12
12
  /* textarea placeholder default variable */
13
13
  --textarea_placeholder_text_color: var(--zdt_textarea_placeholder_text);
14
14
  }
15
-
16
15
  .basic {
17
16
  composes: varClass;
18
17
  -webkit-appearance: none;
@@ -24,56 +23,44 @@
24
23
  color: var(--textarea_text_color);
25
24
  cursor: var(--textarea_cursor);
26
25
  }
27
-
28
26
  .basic, .noBorder {
29
27
  border-width: var(--textarea_border_width);
30
28
  }
31
-
32
29
  .basic::placeholder {
33
30
  /* css:theme-validation:ignore */
34
31
  color: var(--textarea_placeholder_text_color);
35
32
  }
36
-
37
33
  .basic::-webkit-placeholder {
38
34
  /* css:theme-validation:ignore */
39
35
  color: var(--textarea_placeholder_text_color);
40
36
  }
41
-
42
37
  .basic::-moz-placeholder {
43
38
  /* css:theme-validation:ignore */
44
39
  color: var(--textarea_placeholder_text_color);
45
40
  }
46
-
47
41
  .basic::-ms-placeholder {
48
42
  /* css:theme-validation:ignore */
49
43
  color: var(--textarea_placeholder_text_color);
50
44
  }
51
-
52
45
  .basic:disabled {
53
46
  --textarea_cursor: not-allowed;
54
47
  --textarea_text_color: var(--zdt_textarea_default_text);
55
48
  }
56
-
57
49
  .readonly {
58
50
  --textarea_cursor: not-allowed;
59
51
  }
60
-
61
52
  .resizeX {
62
53
  composes: resizeX from '../common/common.module.css';
63
54
  }
64
-
65
55
  .resizeY {
66
56
  composes: resizeY from '../common/common.module.css';
67
57
  }
68
-
69
58
  .noresize {
70
59
  composes: resizenone from '../common/common.module.css';
71
60
  }
72
-
73
61
  .resizeboth {
74
62
  composes: resizeboth from '../common/common.module.css';
75
63
  }
76
-
77
64
  /* css:lineheight-validation:ignore */
78
65
  .container {
79
66
  composes: basic;
@@ -95,81 +82,65 @@
95
82
  border-color: var(--textarea_border_color);
96
83
  padding: var(--textarea_padding);
97
84
  }
98
-
99
85
  .needBorder {
100
86
  --textarea_border_width: 0 0 1px 0;
101
87
  }
102
-
103
88
  .borderColor_transparent {
104
89
  --textarea_border_color: var(--zdt_textarea_transparent_border);
105
90
  }
106
-
107
91
  .borderColor_default {
108
92
  --textarea_border_color: var(--zdt_textarea_default_border);
109
93
  }
110
-
111
94
  .effect:hover {
112
95
  --textarea_border_color: var(--zdt_textarea_hover_border);
113
96
  }
114
-
115
97
  .effect:focus {
116
98
  --textarea_border_color: var(--zdt_textarea_focus_border);
117
99
  }
118
-
119
100
  .xsmall,
120
101
  .xmedium {
121
102
  vertical-align: middle;
122
103
  }
123
-
124
104
  .xsmall {
125
105
  --textarea_font_size: 14px;
126
106
  --textarea_padding: 4px 0 2px;
127
107
  --textarea_height: 28px;
128
108
  --textarea_line_height: 1.3572;
129
109
  }
130
-
131
110
  .xmedium {
132
111
  --textarea_font_size: 13px;
133
112
  --textarea_padding: 4px 0 2px;
134
113
  --textarea_height: 25px;
135
114
  --textarea_line_height: 1.3077;
136
115
  }
137
-
138
116
  .small {
139
117
  --textarea_height: 30px;
140
118
  --textarea_padding: 2px 0;
141
119
  }
142
-
143
120
  .smallanimated:focus,
144
121
  .xsmallanimated:focus,
145
122
  .xmediumanimated:focus {
146
123
  --textarea_height: 70px;
147
124
  }
148
-
149
125
  .medium {
150
126
  --textarea_height: 88px;
151
127
  --textarea_padding: 2px;
152
128
  }
153
-
154
129
  .large {
155
130
  --textarea_height: 45px;
156
131
  --textarea_padding: 2px;
157
132
  }
158
-
159
133
  .largeanimated:focus {
160
134
  --textarea_height: 220px;
161
135
  }
162
-
163
136
  .xlarge {
164
137
  --textarea_height: 184px;
165
138
  }
166
-
167
139
  .default {
168
140
  font-family: var(--zd_regular);
169
141
  --textarea_text_color: var(--zdt_textarea_black_text);
170
142
  }
171
-
172
143
  .primary {
173
144
  composes: semibold from '../common/common.module.css';
174
145
  --textarea_text_color: var(--zdt_textarea_black_text);
175
- }
146
+ }