@capillarytech/blaze-ui 0.1.6-alpha.39 → 0.1.6-alpha.4
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/CapHeading/CapHeading.js +71 -0
- package/CapHeading/index.js +1 -0
- package/CapHeading/styles.js +125 -0
- package/CapInfoNote/CapInfoNote.js +54 -0
- package/CapInfoNote/index.js +1 -0
- package/CapInfoNote/styles.js +63 -0
- package/CapInput/loadable.js +9 -0
- package/CapLabel/CapLabel.js +106 -0
- package/CapLabel/index.js +1 -0
- package/CapLabel/styles.js +221 -0
- package/CapRow/CapRow.js +22 -0
- package/CapRow/index.js +1 -0
- package/CapRow/styles.js +9 -0
- package/CapTable/loadable.js +4 -4
- package/CapTooltip/CapTooltip.js +36 -0
- package/CapTooltip/index.js +1 -0
- package/CapTooltip/styles.js +42 -0
- package/CapUnifiedSelect/CapUnifiedSelect.js +59 -249
- package/CapUnifiedSelect/index.js +4 -1
- package/CapUnifiedSelect/loadable.js +3 -0
- package/CapUnifiedSelect/styles.js +26 -272
- package/dist/235.index.js +2 -0
- package/dist/235.index.js.LICENSE.txt +29 -0
- package/dist/603.index.js +1 -0
- package/dist/CapInput/CapInput.js +66 -0
- package/dist/CapInput/Number.js +42 -0
- package/dist/CapInput/Search.js +35 -0
- package/dist/CapInput/TextArea.js +42 -0
- package/dist/CapInput/index.js +15 -0
- package/dist/CapInput/messages.js +32 -0
- package/dist/CapInput/styles.js +11 -0
- package/dist/CapTable/CapTable.js +148 -0
- package/dist/CapTable/index.js +9 -0
- package/dist/CapTable/loadable.js +23 -0
- package/dist/CapTable/styles.js +26 -0
- package/dist/LocaleHoc/index.js +40 -0
- package/dist/esm/CapHeading/CapHeading.js +41 -0
- package/dist/esm/CapHeading/index.js +1 -0
- package/dist/esm/CapHeading/styles.js +123 -0
- package/dist/esm/CapInfoNote/CapInfoNote.js +62 -0
- package/dist/esm/CapInfoNote/index.js +1 -0
- package/dist/esm/CapInfoNote/styles.js +6 -0
- package/dist/esm/CapInput/CapInput.js +57 -0
- package/dist/esm/CapInput/Number.js +35 -0
- package/dist/esm/CapInput/Search.js +28 -0
- package/dist/esm/CapInput/TextArea.js +35 -0
- package/dist/esm/CapInput/index.js +8 -0
- package/dist/esm/CapInput/loadable.js +9 -0
- package/dist/esm/CapInput/messages.js +25 -0
- package/dist/esm/CapInput/styles.js +3 -0
- package/dist/esm/CapLabel/CapLabel.js +50 -0
- package/dist/esm/CapLabel/index.js +1 -0
- package/dist/esm/CapLabel/styles.js +219 -0
- package/dist/esm/CapRow/CapRow.js +22 -0
- package/dist/esm/CapRow/index.js +1 -0
- package/dist/esm/CapRow/styles.js +5 -0
- package/dist/esm/CapTable/CapTable.js +140 -0
- package/dist/esm/CapTable/index.js +2 -0
- package/dist/esm/CapTable/loadable.js +12 -0
- package/dist/esm/CapTable/styles.js +17 -0
- package/dist/esm/CapTooltip/CapTooltip.js +34 -0
- package/dist/esm/CapTooltip/index.js +1 -0
- package/dist/esm/CapTooltip/styles.js +6 -0
- package/dist/esm/CapUnifiedSelect/CapUnifiedSelect.js +101 -0
- package/dist/esm/CapUnifiedSelect/index.js +3 -0
- package/dist/esm/CapUnifiedSelect/loadable.js +4 -0
- package/dist/esm/CapUnifiedSelect/messages.js +23 -0
- package/dist/esm/CapUnifiedSelect/styles.js +15 -0
- package/dist/esm/LocaleHoc/index.js +31 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/styled/index.js +5 -0
- package/dist/esm/styled/variables.js +88 -0
- package/dist/esm/translations/en.js +329 -0
- package/dist/index.js +39 -0
- package/dist/index.js.LICENSE.txt +7 -0
- package/dist/styled/index.js +22 -0
- package/dist/styled/variables.js +94 -0
- package/dist/translations/en.js +335 -0
- package/index.js +1 -7
- package/package.json +10 -6
- package/.DS_Store +0 -0
- package/CapSkeleton/CapSkeleton.js +0 -17
- package/CapSkeleton/index.js +0 -1
- package/CapSpin/CapSpin.js +0 -23
- package/CapSpin/index.js +0 -1
- package/CapTestSelect/CapTestSelect.js +0 -47
- package/CapTestSelect/index.js +0 -1
- package/assets/upload.svg +0 -3
- package/utils/index.js +0 -1
- package/utils/withStyles.js +0 -24
|
@@ -23,142 +23,26 @@ export const HeaderWrapper = styled.div`
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
|
-
export const DropdownFooter = styled.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: space-between;
|
|
29
|
-
align-items: center;
|
|
30
|
-
padding: 8px;
|
|
31
|
-
border-top: 1px solid #f0f0f0;
|
|
32
|
-
|
|
33
|
-
.footer-buttons {
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
|
-
gap: 8px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.total-count {
|
|
40
|
-
color: #8c8c8c;
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
|
-
export const SearchInputWrapper = styled.div`
|
|
46
|
-
padding: 8px;
|
|
47
|
-
border-bottom: 1px solid #f0f0f0;
|
|
48
|
-
`;
|
|
49
|
-
|
|
50
|
-
export const SelectAllCheckbox = styled.div`
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
padding: 8px 12px;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
font-weight: 500;
|
|
56
|
-
border-bottom: 1px solid #f0f0f0;
|
|
57
|
-
user-select: none;
|
|
58
|
-
|
|
59
|
-
input[type="checkbox"] {
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
export const NoResultWrapper = styled.div`
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
height: 200px;
|
|
70
|
-
color: #8c8c8c;
|
|
71
|
-
font-size: 14px;
|
|
72
|
-
`;
|
|
73
|
-
|
|
74
26
|
|
|
75
27
|
|
|
76
28
|
export const StyledInfoIcon = styled.span`
|
|
77
|
-
color: ${styledVars.
|
|
29
|
+
color: ${styledVars.CAP_G2};
|
|
78
30
|
font-size: 16px;
|
|
79
31
|
cursor: help;
|
|
80
|
-
margin-left: 4px;
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
32
|
|
|
84
33
|
&:hover {
|
|
85
|
-
color: ${styledVars.
|
|
34
|
+
color: ${styledVars.CAP_G1};
|
|
86
35
|
}
|
|
87
36
|
|
|
88
37
|
&.disabled {
|
|
89
38
|
cursor: not-allowed;
|
|
90
39
|
&:hover {
|
|
91
|
-
color: ${styledVars.
|
|
40
|
+
color: ${styledVars.CAP_G2};
|
|
92
41
|
}
|
|
93
42
|
}
|
|
94
43
|
`;
|
|
95
44
|
|
|
96
45
|
export const selectStyles = css`
|
|
97
|
-
&.cap-unified-select-container {
|
|
98
|
-
.cap-unified-tree-select{
|
|
99
|
-
height: 32px !important;
|
|
100
|
-
width: 340px !important;
|
|
101
|
-
}
|
|
102
|
-
.ant-select-prefix{
|
|
103
|
-
font-size: 14px !important;
|
|
104
|
-
font-weight: 400 !important;
|
|
105
|
-
color: #091E42 !important;
|
|
106
|
-
line-height: 20px !important;
|
|
107
|
-
}
|
|
108
|
-
.cap-unified-select-header-label{
|
|
109
|
-
font-family: ${styledVars.FONT_FAMILY} !important;
|
|
110
|
-
font-weight: 500 !important;
|
|
111
|
-
font-size: 14px !important;
|
|
112
|
-
line-height: 20px !important;
|
|
113
|
-
letter-spacing: 0px !important;
|
|
114
|
-
}
|
|
115
|
-
.cap-unified-select-header-tooltip{
|
|
116
|
-
width: 16px !important;
|
|
117
|
-
height: 16px !important;
|
|
118
|
-
color: #B3BAC5 !important;
|
|
119
|
-
}
|
|
120
|
-
.cap-unified-select-header-byline-text{
|
|
121
|
-
font-family: ${styledVars.FONT_FAMILY} !important;
|
|
122
|
-
font-weight: 400 !important;
|
|
123
|
-
font-size: 12px !important;
|
|
124
|
-
margin-top: -10px;
|
|
125
|
-
letter-spacing: 0px !important;
|
|
126
|
-
color: #97A0AF !important;
|
|
127
|
-
}
|
|
128
|
-
.cap-unified-tree-select .ant-select-selector:hover{
|
|
129
|
-
border: 1px solid #7A869A !important;
|
|
130
|
-
}
|
|
131
|
-
.cap-unified-tree-select .select-popup-container .ant-select-tree-switcher-noop,
|
|
132
|
-
.cap-unified-tree-select .multiSelect-popup-container .ant-select-tree-switcher-noop {
|
|
133
|
-
display: none !important;
|
|
134
|
-
}
|
|
135
|
-
.ant-tree-select-dropdown .treeSelect-popup-container .ant-select-tree .ant-select-tree-treenode{
|
|
136
|
-
margin: 0px !important;
|
|
137
|
-
}
|
|
138
|
-
.cap-unified-tree-select .multiSelect-popup-container .ant-tree-select-dropdown .ant-select-tree .ant-select-tree-treenode{
|
|
139
|
-
margin-left: 10px !important;
|
|
140
|
-
}
|
|
141
|
-
.multiSelect-popup-container .ant-select-tree-treenode{
|
|
142
|
-
margin-left: 10px !important;
|
|
143
|
-
}
|
|
144
|
-
.cap-unified-select-no-result{
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: column;
|
|
147
|
-
align-items: center;
|
|
148
|
-
justify-content: center;
|
|
149
|
-
height: 200px;
|
|
150
|
-
color: #8c8c8c;
|
|
151
|
-
font-size: 14px;
|
|
152
|
-
}
|
|
153
|
-
.cap-unified-select-no-result-icon{
|
|
154
|
-
font-size: 36px;
|
|
155
|
-
margin-bottom: 8px;
|
|
156
|
-
color: #bfbfbf;
|
|
157
|
-
}
|
|
158
|
-
.cap-unified-select-no-result-text{
|
|
159
|
-
font-weight: 500;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
46
|
&.cap-unified-select {
|
|
163
47
|
width: 100%;
|
|
164
48
|
font-family: ${styledVars.FONT_FAMILY};
|
|
@@ -207,54 +91,30 @@ export const selectStyles = css`
|
|
|
207
91
|
}
|
|
208
92
|
|
|
209
93
|
/* Dropdown styles */
|
|
210
|
-
.ant-select-dropdown
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
.ant-select-item-option {
|
|
220
|
-
padding: 10px 16px;
|
|
221
|
-
font-size: 14px;
|
|
222
|
-
color: #1c2530;
|
|
223
|
-
font-weight: 500;
|
|
224
|
-
background-color: transparent !important;
|
|
225
|
-
|
|
226
|
-
/* Hover state only */
|
|
227
|
-
&:not(.ant-select-item-option-disabled):hover {
|
|
228
|
-
background-color: #fffbe6 !important;
|
|
229
|
-
border-radius: 4px;
|
|
230
|
-
color: #1c2530 !important;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/* Ensure unselected hover has proper background even after removal */
|
|
234
|
-
&:hover:not(.ant-select-item-option-disabled):not(.ant-select-item-option-selected) {
|
|
235
|
-
background-color: #fffbe6 !important;
|
|
236
|
-
color: #1c2530 !important;
|
|
237
|
-
border-radius: 4px;
|
|
238
|
-
}
|
|
94
|
+
.ant-select-dropdown {
|
|
95
|
+
padding: 4px;
|
|
96
|
+
border-radius: ${styledVars.RADIUS_04};
|
|
97
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
98
|
+
|
|
99
|
+
.ant-select-item {
|
|
100
|
+
border-radius: ${styledVars.RADIUS_04};
|
|
101
|
+
padding: 8px 12px;
|
|
102
|
+
transition: ${styledVars.TRANSITION_ALL};
|
|
239
103
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
color: #1c2530 !important;
|
|
104
|
+
&-option-selected {
|
|
105
|
+
background-color: ${styledVars.CAP_PRIMARY.light};
|
|
106
|
+
color: ${styledVars.CAP_PRIMARY.base};
|
|
244
107
|
font-weight: 500;
|
|
245
108
|
}
|
|
246
109
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
background-color: transparent !important;
|
|
110
|
+
&-option-active {
|
|
111
|
+
background-color: ${styledVars.CAP_G08};
|
|
250
112
|
}
|
|
251
113
|
}
|
|
252
114
|
|
|
253
115
|
/* Search input styles */
|
|
254
|
-
.ant-select-dropdown-search,
|
|
255
116
|
.ant-select-search {
|
|
256
|
-
padding: 8px
|
|
257
|
-
border-bottom: 1px solid #f0f0f0;
|
|
117
|
+
padding: 8px;
|
|
258
118
|
|
|
259
119
|
input {
|
|
260
120
|
border-radius: ${styledVars.RADIUS_04};
|
|
@@ -266,90 +126,15 @@ export const selectStyles = css`
|
|
|
266
126
|
}
|
|
267
127
|
}
|
|
268
128
|
}
|
|
269
|
-
|
|
270
|
-
/* Scrollbar */
|
|
271
|
-
.rc-virtual-list-scrollbar-thumb {
|
|
272
|
-
background-color: #dcdcdc;
|
|
273
|
-
border-radius: 4px;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/* Divider */
|
|
277
|
-
.ant-divider-horizontal {
|
|
278
|
-
margin: 0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/* No result UI */
|
|
282
|
-
.no-result {
|
|
283
|
-
display: flex;
|
|
284
|
-
flex-direction: column;
|
|
285
|
-
align-items: center;
|
|
286
|
-
justify-content: center;
|
|
287
|
-
height: 200px;
|
|
288
|
-
color: #8c8c8c;
|
|
289
|
-
font-size: 14px;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/* Dropdown search inside custom popup */
|
|
293
|
-
.dropdown-search {
|
|
294
|
-
padding: 8px;
|
|
295
|
-
border-bottom: 1px solid #f0f0f0;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/* Select all checkbox */
|
|
299
|
-
.select-all-checkbox {
|
|
300
|
-
display: flex;
|
|
301
|
-
align-items: center;
|
|
302
|
-
padding: 8px 12px;
|
|
303
|
-
cursor: pointer;
|
|
304
|
-
font-weight: 500;
|
|
305
|
-
border-bottom: 1px solid #f0f0f0;
|
|
306
|
-
user-select: none;
|
|
307
|
-
|
|
308
|
-
input[type="checkbox"] {
|
|
309
|
-
cursor: pointer;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/* Footer buttons */
|
|
314
|
-
.dropdown-footer {
|
|
315
|
-
display: flex;
|
|
316
|
-
justify-content: space-between;
|
|
317
|
-
align-items: center;
|
|
318
|
-
padding: 8px;
|
|
319
|
-
border-top: 1px solid #f0f0f0;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/* Selected counter */
|
|
323
|
-
.selected-count {
|
|
324
|
-
color: #8c8c8c;
|
|
325
|
-
font-size: 12px;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/* Unchecked border color */
|
|
329
|
-
.ant-checkbox-inner {
|
|
330
|
-
border-color: #42b040; /* Your desired border color */
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/* When checked - change background and border */
|
|
334
|
-
.ant-checkbox-checked .ant-checkbox-inner {
|
|
335
|
-
background-color: #42b040; /* Fill color when checked */
|
|
336
|
-
border-color: #42b040;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/* Checkmark color */
|
|
340
|
-
.ant-checkbox-checked .ant-checkbox-inner::after {
|
|
341
|
-
border-color: #42b040; /* The checkmark tick color */
|
|
342
|
-
}
|
|
343
129
|
}
|
|
344
130
|
|
|
345
131
|
/* Multiple selection styles */
|
|
346
132
|
&.ant-select-multiple {
|
|
347
133
|
.ant-select-selection-item {
|
|
348
|
-
background-color:
|
|
349
|
-
border:
|
|
134
|
+
background-color: ${styledVars.CAP_PRIMARY.light};
|
|
135
|
+
border-color: ${styledVars.CAP_PRIMARY.light};
|
|
350
136
|
border-radius: ${styledVars.RADIUS_04};
|
|
351
|
-
color:
|
|
352
|
-
font-weight: 500;
|
|
137
|
+
color: ${styledVars.CAP_PRIMARY.base};
|
|
353
138
|
margin: 2px 4px 2px 0;
|
|
354
139
|
padding: 0 8px;
|
|
355
140
|
height: 24px;
|
|
@@ -377,17 +162,15 @@ export const selectStyles = css`
|
|
|
377
162
|
.ant-select-tree-node-content-wrapper {
|
|
378
163
|
padding: 4px 8px;
|
|
379
164
|
border-radius: ${styledVars.RADIUS_04};
|
|
380
|
-
|
|
381
|
-
transition: background 0.3s;
|
|
165
|
+
transition: ${styledVars.TRANSITION_ALL};
|
|
382
166
|
|
|
383
167
|
&:hover {
|
|
384
|
-
background-color:
|
|
385
|
-
color: #1c2530 !important;
|
|
386
|
-
border-radius: 4px;
|
|
168
|
+
background-color: ${styledVars.CAP_G08};
|
|
387
169
|
}
|
|
388
170
|
|
|
389
171
|
&.ant-select-tree-node-selected {
|
|
390
|
-
color:
|
|
172
|
+
background-color: ${styledVars.CAP_PRIMARY.light};
|
|
173
|
+
color: ${styledVars.CAP_PRIMARY.base};
|
|
391
174
|
font-weight: 500;
|
|
392
175
|
}
|
|
393
176
|
}
|
|
@@ -401,25 +184,6 @@ export const selectStyles = css`
|
|
|
401
184
|
.ant-select-tree-checkbox {
|
|
402
185
|
margin: 4px 8px 4px 0;
|
|
403
186
|
}
|
|
404
|
-
|
|
405
|
-
.ant-select-tree-treenode {
|
|
406
|
-
padding: 2px 0;
|
|
407
|
-
|
|
408
|
-
&:hover {
|
|
409
|
-
background-color: transparent;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner {
|
|
414
|
-
background-color: #42b040;
|
|
415
|
-
border-color: #42b040;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.ant-select-tree-checkbox-checked .ant-select-tree-node-content-wrapper {
|
|
419
|
-
background-color: #e9f0fe !important;
|
|
420
|
-
color: #1c2530 !important;
|
|
421
|
-
font-weight: 500;
|
|
422
|
-
}
|
|
423
187
|
}
|
|
424
188
|
|
|
425
189
|
/* Size variations */
|
|
@@ -453,17 +217,7 @@ export const selectStyles = css`
|
|
|
453
217
|
.anticon-loading {
|
|
454
218
|
color: ${styledVars.CAP_PRIMARY.base};
|
|
455
219
|
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
&.cap-unified-tree-select .ant-select-selection-overflow {
|
|
460
|
-
display: none; /* hides pill wrapper */
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
&.cap-unified-tree-select .suffix-counter {
|
|
464
|
-
color: #1c2530;
|
|
465
|
-
font-weight: 500;
|
|
466
|
-
margin-right: 12px; /* optional, adjust spacing */
|
|
220
|
+
}
|
|
467
221
|
}
|
|
468
222
|
}
|
|
469
223
|
`;
|