@capillarytech/blaze-ui 0.1.6-alpha.40 → 0.1.6-alpha.42

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.
@@ -95,10 +95,33 @@ export const StyledInfoIcon = styled.span`
95
95
 
96
96
  export const selectStyles = css`
97
97
  &.cap-unified-select-container {
98
+ .ant-tree-select-dropdown{
99
+ padding: 0px !important;
100
+ }
98
101
  .cap-unified-tree-select{
99
- height: 32px !important;
102
+ height: 40px !important;
100
103
  width: 340px !important;
101
104
  }
105
+ .cap-unified-select-upload-container{
106
+ cursor: pointer !important;
107
+ display: flex !important;
108
+ align-items: center !important;
109
+ border-bottom: 1px solid #f0f0f0 !important;
110
+ height: 40px !important;
111
+ }
112
+ .cap-unified-select-select-all-container{
113
+ padding: 8px 12px !important;
114
+ cursor: pointer !important;
115
+ display: flex !important;
116
+ align-items: center !important;
117
+ border-bottom: 1px solid #f0f0f0 !important;
118
+ height: 40px !important;
119
+ }
120
+ .ant-select-dropdown{
121
+ margin-top: -5px !important;
122
+ border-radius: 4px !important;
123
+ box-shadow: 0px 4px 8px -2px #091E4240, 0px 0px 1px 0px #091E424F !important;
124
+ }
102
125
  .ant-select-prefix{
103
126
  font-size: 14px !important;
104
127
  font-weight: 400 !important;
@@ -115,7 +138,7 @@ export const selectStyles = css`
115
138
  .cap-unified-select-header-tooltip{
116
139
  width: 16px !important;
117
140
  height: 16px !important;
118
- color: #B3BAC5 !important;
141
+ color: ${styledVars.CAP_G06} !important;
119
142
  }
120
143
  .cap-unified-select-header-byline-text{
121
144
  font-family: ${styledVars.FONT_FAMILY} !important;
@@ -135,6 +158,10 @@ export const selectStyles = css`
135
158
  .ant-tree-select-dropdown .treeSelect-popup-container .ant-select-tree .ant-select-tree-treenode{
136
159
  margin: 0px !important;
137
160
  }
161
+ .ant-tree-select-dropdown .ant-select-tree .ant-select-tree-treenode{
162
+ line-height: 40px !important;
163
+ margin-bottom: 0px !important;
164
+ }
138
165
  .cap-unified-tree-select .multiSelect-popup-container .ant-tree-select-dropdown .ant-select-tree .ant-select-tree-treenode{
139
166
  margin-left: 10px !important;
140
167
  }
@@ -158,312 +185,43 @@ export const selectStyles = css`
158
185
  .cap-unified-select-no-result-text{
159
186
  font-weight: 500;
160
187
  }
161
- }
162
- &.cap-unified-select {
163
- width: 100%;
164
- font-family: ${styledVars.FONT_FAMILY};
165
-
166
- .ant-select-selector {
167
- border-radius: ${styledVars.RADIUS_04};
168
- transition: ${styledVars.TRANSITION_ALL};
169
- padding: 0 12px;
170
- min-height: 32px;
171
- display: flex;
172
- align-items: center;
173
-
174
- &:hover {
175
- border-color: ${styledVars.CAP_G11};
176
- }
177
- }
178
-
179
- /* Right slot content styles */
180
- .cap-unified-select-right-slot {
181
- display: flex;
182
- align-items: center;
183
- gap: 8px;
184
- margin-left: 8px;
185
- }
186
-
187
- &.ant-select-focused {
188
- .ant-select-selector {
189
- border-color: ${styledVars.CAP_G01} !important;
190
- box-shadow: none !important;
191
- }
192
- }
193
-
194
- /* Error state */
195
- &.ant-select-status-error {
196
- .ant-select-selector {
197
- border-color: ${styledVars.CAP_RED};
198
- }
199
- }
200
-
201
- /* Disabled state */
202
- &.ant-select-disabled {
203
- .ant-select-selector {
204
- background-color: ${styledVars.CAP_G08};
205
- cursor: not-allowed;
206
- }
207
- }
208
-
209
- /* Dropdown styles */
210
- .ant-select-dropdown,
211
- &.ant-select-dropdown,
212
- &.ant-select-dropdown-placement-bottomLeft {
213
- padding: 0;
214
- border-radius: 12px !important;
215
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
216
- overflow: hidden;
217
-
218
- /* Option base style - no background */
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
- }
239
-
240
- /* Selected state */
241
- &-selected:not(.ant-select-item-option-disabled) {
242
- background-color: #e9f0fe !important;
243
- color: #1c2530 !important;
244
- font-weight: 500;
245
- }
246
-
247
- /* Remove active state background unless hovered */
248
- &-active:not(:hover):not(.ant-select-item-option-disabled) {
249
- background-color: transparent !important;
250
- }
251
- }
252
-
253
- /* Search input styles */
254
- .ant-select-dropdown-search,
255
- .ant-select-search {
256
- padding: 8px 12px;
257
- border-bottom: 1px solid #f0f0f0;
258
-
259
- input {
260
- border-radius: ${styledVars.RADIUS_04};
261
- transition: ${styledVars.TRANSITION_ALL};
262
-
263
- &:focus {
264
- border-color: ${styledVars.CAP_G01};
265
- box-shadow: none;
266
- }
267
- }
268
- }
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
- }
188
+ .ant-tree-select:hover .ant-select-selector {
189
+ border-color: #7A869A !important;
343
190
  }
344
-
345
- /* Multiple selection styles */
346
- &.ant-select-multiple {
347
- .ant-select-selection-item {
348
- background-color: #e9f0fe !important;
349
- border: none;
350
- border-radius: ${styledVars.RADIUS_04};
351
- color: #1c2530;
352
- font-weight: 500;
353
- margin: 2px 4px 2px 0;
354
- padding: 0 8px;
355
- height: 24px;
356
- line-height: 22px;
357
-
358
- &-remove {
359
- color: ${styledVars.CAP_PRIMARY.base};
360
-
361
- &:hover {
362
- color: ${styledVars.CAP_PRIMARY.hover};
363
- }
364
- }
365
- }
366
-
367
- .ant-select-selection-overflow {
368
- flex-wrap: wrap;
369
- gap: 4px;
370
- }
191
+ .ant-tree-select-focused .ant-select-selector,
192
+ .ant-tree-select-open .ant-select-selector {
193
+ border-color: #7A869A !important;
194
+ box-shadow: none !important;
195
+ outline: none !important; /* remove blue outline */
371
196
  }
372
-
373
- /* Tree select styles */
374
- .ant-select-tree {
375
- padding: 4px 0;
376
-
377
- .ant-select-tree-node-content-wrapper {
378
- padding: 4px 8px;
379
- border-radius: ${styledVars.RADIUS_04};
380
- background-color: transparent !important;
381
- transition: background 0.3s;
382
-
383
- &:hover {
384
- background-color: #fffbe6 !important;
385
- color: #1c2530 !important;
386
- border-radius: 4px;
387
- }
388
-
389
- &.ant-select-tree-node-selected {
390
- color: #1c2530;
391
- font-weight: 500;
392
- }
393
- }
394
-
395
- .ant-select-tree-switcher {
396
- width: 24px;
397
- height: 24px;
398
- line-height: 24px;
399
- }
400
-
401
- .ant-select-tree-checkbox {
402
- margin: 4px 8px 4px 0;
403
- }
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
- }
197
+ .cap-unified-select-search-container{
198
+ border-bottom: 1px solid #EBECF0 !important;
199
+ line-height: 40px !important;
423
200
  }
424
-
425
- /* Size variations */
426
- &.ant-select-lg {
427
- .ant-select-selector {
428
- height: 40px;
429
- padding: 0 16px;
430
- }
431
-
432
- .ant-select-selection-item {
433
- height: 28px;
434
- line-height: 26px;
435
- }
201
+ .cap-unified-select-upload-button{
202
+ color: ${styledVars.CAP_BLUE01} !important;
203
+ display: flex !important;
204
+ align-items: center !important;
205
+ font-size: 14px !important;
206
+ font-weight: 400 !important;
207
+ line-height: 20px !important;
436
208
  }
437
-
438
- &.ant-select-sm {
439
- .ant-select-selector {
440
- height: 24px;
441
- padding: 0 8px;
442
- }
443
-
444
- .ant-select-selection-item {
445
- height: 20px;
446
- line-height: 18px;
447
- }
209
+ .cap-unified-select-confirm-container{
210
+ display: flex !important;
211
+ justify-content: space-between !important;
212
+ align-items: center !important;
213
+ padding: 8px 12px !important;
214
+ border-top: 1px solid #f0f0f0 !important;
448
215
  }
449
-
450
- /* Loading state */
451
- &.ant-select-loading {
452
- .ant-select-arrow {
453
- .anticon-loading {
454
- color: ${styledVars.CAP_PRIMARY.base};
455
- }
456
- }
216
+ .cap-unified-select-confirm-button{
217
+ margin-right: 8px !important;
457
218
  }
458
-
459
- &.cap-unified-tree-select .ant-select-selection-overflow {
460
- display: none; /* hides pill wrapper */
219
+ .cap-unified-select-selected-count{
220
+ color: ${styledVars.CAP_G05} !important;
221
+ font-size: 14px !important;
461
222
  }
462
-
463
- &.cap-unified-tree-select .suffix-counter {
464
- color: #1c2530;
465
- font-weight: 500;
466
- margin-right: 12px; /* optional, adjust spacing */
223
+ .cap-unified-select-status{
224
+ color: #E83135 !important;
467
225
  }
468
226
  }
469
227
  `;
package/index.js CHANGED
@@ -1,8 +1,12 @@
1
1
  // Import and export all components
2
+ export { default as CapIcon } from './CapIcon';
2
3
  export { default as CapInput } from './CapInput';
4
+ export { default as CapLabel } from './CapLabel';
5
+ export { default as CapRow } from './CapRow';
3
6
  export { default as CapSkeleton } from './CapSkeleton';
4
7
  export { default as CapSpin } from './CapSpin';
5
8
  export { default as CapTable } from './CapTable';
9
+ export { default as CapTooltip } from './CapTooltip';
6
10
  export { default as CapUnifiedSelect } from './CapUnifiedSelect';
7
11
 
8
12
  // Export utilities
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/blaze-ui",
3
3
  "author": "Capillary Technologies",
4
- "version": "0.1.6-alpha.40",
4
+ "version": "0.1.6-alpha.42",
5
5
  "description": "Capillary UI component library with Ant Design v5",
6
6
  "main": "./index.js",
7
7
  "sideEffects": [