@unbxd-ui/unbxd-react-components 0.3.1 → 0.3.2-beta.10

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.
Files changed (83) hide show
  1. package/assets/desktop.svg +6 -0
  2. package/assets/map-pin.svg +6 -0
  3. package/assets/p1.svg +20 -0
  4. package/assets/p2.svg +22 -0
  5. package/assets/p3.svg +19 -0
  6. package/assets/p4.svg +22 -0
  7. package/assets/p5.svg +23 -0
  8. package/components/Accordian/accordianCore.scss +8 -0
  9. package/components/Accordian/accordianTheme.scss +6 -0
  10. package/components/Button/button.css +1 -0
  11. package/components/Button/buttonTheme.scss +94 -0
  12. package/components/Form/Dropdown.js +77 -10
  13. package/components/Form/Input.js +11 -3
  14. package/components/Form/SearchableDropdown.js +22 -15
  15. package/components/Form/SelectedPills.js +128 -0
  16. package/components/Form/SummarySelection.js +46 -0
  17. package/components/Form/Textarea.js +13 -3
  18. package/components/Form/form.css +1 -0
  19. package/components/Form/formCore.css +1 -1
  20. package/components/Form/formCore.scss +713 -0
  21. package/components/Form/formTheme.scss +33 -0
  22. package/components/Form/stories/Dropdown.stories.js +242 -2
  23. package/components/Form/stories/SearchableDropdown.stories.js +173 -3
  24. package/components/Form/stories/ServerPaginatedDropdown.stories.js +166 -94
  25. package/components/Form/summarySelection.css +1 -0
  26. package/components/Form/summarySelection.scss +106 -0
  27. package/components/Form/variables.scss +116 -0
  28. package/components/InlineModal/inlineModal.css +1 -0
  29. package/components/InlineModal/inlineModalCore.scss +40 -0
  30. package/components/InlineModal/inlineModalTheme.scss +16 -0
  31. package/components/Link/linkCore.css +1 -1
  32. package/components/Link/linkCore.scss +66 -0
  33. package/components/Link/linkTheme.scss +79 -0
  34. package/components/List/list.css +1 -0
  35. package/components/List/listCore.scss +6 -0
  36. package/components/List/listTheme.scss +0 -0
  37. package/components/MetricCard/MetricCard.css +1 -0
  38. package/components/MetricCard/MetricCard.js +65 -0
  39. package/components/MetricCard/MetricCard.scss +118 -0
  40. package/components/MetricCard/MetriicCard.stories.js +131 -0
  41. package/components/MetricCard/index.js +9 -0
  42. package/components/Modal/modal.css +1 -0
  43. package/components/Modal/modalCore.scss +58 -0
  44. package/components/Modal/modalTheme.scss +0 -0
  45. package/components/NoDataPlaceholder/noDataPlaceholderCore.scss +33 -0
  46. package/components/NotificationComponent/notificationComponent.css +1 -0
  47. package/components/NotificationComponent/notificationTheme.scss +38 -0
  48. package/components/PIDItemComponent/PIDItemComponent.js +82 -0
  49. package/components/PIDItemComponent/PIDItemComponent.stories.js +175 -0
  50. package/components/PIDItemComponent/PIDItemComponentCore.css +1 -0
  51. package/components/PIDItemComponent/PIDItemComponentCore.scss +36 -0
  52. package/components/PIDItemComponent/index.js +9 -0
  53. package/components/PageLoader/pageLoaderCore.scss +34 -0
  54. package/components/ProgressBar/ProgressBar.scss +0 -0
  55. package/components/ProgressBar/progressBar.css +0 -0
  56. package/components/ProgressBar/progressBarCore.scss +22 -0
  57. package/components/ProgressBar/progressBarTheme.scss +0 -0
  58. package/components/Table/tableCore.scss +547 -0
  59. package/components/Table/tableTheme.scss +34 -0
  60. package/components/TabsComponent/tabs.css +1 -0
  61. package/components/TabsComponent/tabsCore.scss +59 -0
  62. package/components/TabsComponent/tabsTheme.scss +0 -0
  63. package/components/ToastNotification/toastNotificationCore.scss +273 -0
  64. package/components/Tooltip/tooltipCore.scss +207 -0
  65. package/components/Tooltip/tooltipTheme.scss +20 -0
  66. package/components/UIDItemComponent/UIDItemComponent.js +148 -0
  67. package/components/UIDItemComponent/UIDItemComponent.stories.js +51 -0
  68. package/components/UIDItemComponent/UIDItemComponentCore.css +1 -0
  69. package/components/UIDItemComponent/UIDItemComponentCore.scss +57 -0
  70. package/components/UIDItemComponent/index.js +9 -0
  71. package/components/common/common.scss +14 -0
  72. package/components/core.css +3 -2
  73. package/components/core.scss +13 -10
  74. package/components/index.js +32 -11
  75. package/components/theme.css +3 -2
  76. package/components/theme.scss +2 -1
  77. package/core/icon.js +17 -0
  78. package/core/index.js +14 -0
  79. package/core/lazyLoadImage.js +56 -0
  80. package/core/selection.json +1 -0
  81. package/core/utils.js +6 -1
  82. package/index.js +60 -0
  83. package/package.json +9 -4
@@ -0,0 +1,547 @@
1
+ .RCB {
2
+ &-table {
3
+ border-collapse: collapse;
4
+ width: 100%;
5
+ }
6
+
7
+ &-th {
8
+ &.RCB-expand-column {
9
+ width: 50px;
10
+ }
11
+ }
12
+
13
+ &-th-sortable {
14
+ cursor: pointer;
15
+ }
16
+
17
+ &-th-sort {
18
+ &:after {
19
+ content: "\2B0D"
20
+ }
21
+ }
22
+
23
+ &-th-asc {
24
+ &:after {
25
+ content: "\25B2";
26
+ }
27
+ }
28
+
29
+ &-th-dsc {
30
+ &:after {
31
+ content: "\25BC";
32
+ }
33
+ }
34
+
35
+ &-tr {
36
+
37
+ .expand-open {
38
+ &:before {
39
+ content: "▼"
40
+ }
41
+ }
42
+
43
+ .expand-close {
44
+ &:before {
45
+ content: "▶"
46
+ }
47
+ }
48
+ }
49
+
50
+ &-paginate-wrapper {
51
+ .RCB-per-page-count {
52
+ display: inline-block;
53
+ }
54
+
55
+ .RCB-form-el-cont {
56
+ margin: 0;
57
+ }
58
+
59
+ .RCB-inline-modal-btn {
60
+ background: transparent;
61
+ padding: 0;
62
+ }
63
+ }
64
+
65
+ &-paginate-nav {
66
+ display: inline-block;
67
+ border-radius: 12px;
68
+ border: solid 1px #8399ae;
69
+ background-color: #f6f7f9;
70
+ vertical-align: middle;
71
+ margin-left: 15px;
72
+ overflow: hidden;
73
+ }
74
+
75
+ &-page-nav {
76
+ padding: 0 5px;
77
+ text-decoration: none;
78
+ color: inherit;
79
+
80
+ &:first-child {
81
+ border-right: solid 1px #8399ae;
82
+ }
83
+
84
+ &.disabled {
85
+ color: #ccc;
86
+ pointer-events: none;
87
+ cursor: not-allowed;
88
+ }
89
+ }
90
+
91
+ &-no-data {
92
+ text-align: center;
93
+ }
94
+ }
95
+
96
+ .nutana-table {
97
+ font-family: Nunito Sans, Helvetica Neue, Helvetica, Roboto, "sans-serif";
98
+ letter-spacing: 0.42px;
99
+ max-height: unset !important;
100
+ min-height: unset !important;
101
+ overflow: inherit !important;
102
+ z-index: 20;
103
+
104
+ .rdt_TableRow {
105
+ border-bottom-color: #DDE2EE !important;
106
+
107
+ &:hover {
108
+ background-color: #F4F8FF;
109
+
110
+ .readable {
111
+ color: #3E71F2;
112
+ cursor: pointer;
113
+ }
114
+
115
+ .view-one {
116
+ background-color: #F4F8FF;
117
+
118
+ .no-metric-wrap {
119
+ background-color: #F4F8FF !important;
120
+ }
121
+ }
122
+
123
+ .rdt_TableCell:first-child,
124
+ [aria-label="Expand Row"] {
125
+ box-shadow: inset 3px 0px 0px 0px #3E71F2;
126
+ }
127
+ }
128
+
129
+ .rdt_TableCell {
130
+ padding: 0;
131
+ border-right: unset;
132
+
133
+ &:first-child {
134
+ border-left: 1px solid #DDE2EE;
135
+ }
136
+
137
+ &:last-child {
138
+ border-right: 1px solid #DDE2EE;
139
+ }
140
+ }
141
+ }
142
+
143
+ &.first-clm-sticky {
144
+ overflow-x: auto !important;
145
+ overflow-y: hidden;
146
+
147
+ .rdt_TableRow {
148
+ .rdt_TableCell {
149
+ &:first-child {
150
+ background: white;
151
+ border-right: 1px solid #dde2ee;
152
+ box-shadow: 5px 10px 15px 0px #17173A14;
153
+ position: sticky;
154
+ left: 0;
155
+ z-index: 9;
156
+ }
157
+ }
158
+
159
+ &:hover {
160
+ .rdt_TableCell:first-child {
161
+ background-color: #F4F8FF;
162
+ }
163
+ }
164
+ }
165
+
166
+ .rdt_TableHeadRow .rdt_TableCol:first-child {
167
+ background: white;
168
+ border-right: 1px solid #dde2ee;
169
+ position: sticky;
170
+ left: 0;
171
+ z-index: 9;
172
+ }
173
+ }
174
+
175
+ &.last-clm-sticky {
176
+ overflow-x: auto !important;
177
+ overflow-y: hidden;
178
+
179
+ .rdt_TableRow {
180
+ .rdt_TableCell {
181
+ &:last-child {
182
+ background: white;
183
+ border-left: 1px solid #dde2ee;
184
+ box-shadow: -5px 10px 15px 0px #17173A14;
185
+ position: sticky;
186
+ left: unset;
187
+ right: 0;
188
+ z-index: 9;
189
+ }
190
+ }
191
+
192
+ &:hover {
193
+ .rdt_TableCell:last-child {
194
+ background-color: #F4F8FF;
195
+ }
196
+ }
197
+ }
198
+
199
+ .rdt_TableHeadRow .rdt_TableCol:last-child {
200
+ background: white;
201
+ border-left: 1px solid #dde2ee;
202
+ position: sticky;
203
+ left: unset;
204
+ right: 0;
205
+ z-index: 9;
206
+ }
207
+ }
208
+
209
+ .tbl-content {
210
+ padding: 18px 24px;
211
+ width: 100%;
212
+ }
213
+
214
+ .header-title {
215
+ color: #17173A;
216
+ display: inline;
217
+ font-weight: 600;
218
+ font-size: 16px;
219
+ text-transform: capitalize;
220
+ }
221
+
222
+ .tbl-title-1 {
223
+ color: #17173A;
224
+ font-size: 16px;
225
+ font-weight: 600;
226
+ margin-bottom: 14px;
227
+ }
228
+
229
+ .tbl-title-2 {
230
+ color: #17173A;
231
+ font-size: 14px;
232
+ font-weight: 600;
233
+ }
234
+
235
+ .tbl-title-3 {
236
+ color: #17173A;
237
+ font-size: 12px;
238
+ font-weight: 600;
239
+ }
240
+
241
+ .tbl-desc-1 {
242
+ color: #6F6F8D;
243
+ font-size: 16px;
244
+ font-weight: 600;
245
+ margin-bottom: 14px;
246
+ }
247
+
248
+ .tbl-desc-2 {
249
+ color: #6F6F8D;
250
+ font-size: 14px;
251
+ font-weight: 600;
252
+ margin-bottom: 14px;
253
+ }
254
+
255
+ .tbl-desc-3 {
256
+ color: #6F6F8D;
257
+ font-size: 12px;
258
+ font-weight: 600;
259
+ letter-spacing: .42px;
260
+ }
261
+
262
+ .rdt_TableHeadRow {
263
+ box-shadow: 0px 5px 15px 0px #17173A14;
264
+ border-color: #DDE2EE;
265
+ z-index: 10;
266
+ }
267
+
268
+ .rdt_TableHeadRow .rdt_TableCol:first-child {
269
+ border-right: unset;
270
+ border-left: 1px solid #dde2ee;
271
+ border-top: 1px solid #dde2ee;
272
+ border-top-left-radius: 8px;
273
+ margin: 0;
274
+ }
275
+
276
+ .rdt_TableHeadRow .rdt_TableCol {
277
+ border-right: unset;
278
+ border-color: #DDE2EE;
279
+ padding: 16px 24px;
280
+ }
281
+
282
+ .rdt_TableHeadRow .rdt_TableCol:last-child {
283
+ border-right: 1px solid #DDE2EE;
284
+ border-top-right-radius: 8px;
285
+ }
286
+
287
+ .rdt_TableCol_Sortable {
288
+ [data-column-id] {
289
+ color: #17173a;
290
+ display: inline;
291
+ font-size: 16px;
292
+ font-weight: 600;
293
+ text-transform: capitalize;
294
+ }
295
+
296
+ .status-col-tooltip {
297
+ vertical-align: middle;
298
+
299
+ .RCB-tooltip-btn {
300
+ margin-left: 5px;
301
+ border: unset;
302
+ }
303
+ }
304
+ }
305
+
306
+ .column-kebab-menu {
307
+ .RCB-inline-modal-btn {
308
+ padding: 0;
309
+ }
310
+
311
+ .RCB-inline-modal-body {
312
+ border-radius: 4px;
313
+ width: max-content;
314
+ }
315
+ }
316
+
317
+ .left-line {
318
+ border-left: 1px solid #dde2ee;
319
+ height: 20px;
320
+ padding-left: 12px;
321
+ }
322
+
323
+ .dd-menu-item {
324
+ align-items: center;
325
+ cursor: pointer;
326
+ color: #6F6F8D;
327
+ display: flex;
328
+ font-size: 14px;
329
+ font-weight: 600;
330
+ padding: 12px 16px;
331
+
332
+ &:hover {
333
+ box-shadow: inset 3px 0 0 0 #3E71F2;
334
+ background-color: #F4F8FF;
335
+ color: #17173A;
336
+
337
+ .tbl-plus-icon {
338
+ background-position: -1988px -2777px;
339
+ }
340
+
341
+ .tbl-file-icon {
342
+ background-position: -2031px -2777px;
343
+ }
344
+ }
345
+
346
+ .menu-icon {
347
+ margin-right: 8px;
348
+ }
349
+
350
+ &.no-more-queries-disabled {
351
+ color: #bfc8ce;
352
+ text-decoration: none;
353
+ cursor: no-drop;
354
+ }
355
+ }
356
+
357
+ .status-btn {
358
+ border: 1px solid;
359
+ border-radius: 37px;
360
+ font-size: 12px;
361
+ font-weight: 600;
362
+ letter-spacing: .42px;
363
+ padding: 3px 8px;
364
+
365
+ &__active {
366
+ background-color: #e9f8f3;
367
+ ;
368
+ border-color: #90DCC1;
369
+ color: #00C48C;
370
+
371
+ }
372
+
373
+ &__draft {
374
+ background-color: #e1e8fa;
375
+ border-color: #8BACFF;
376
+ color: #0A8FFD;
377
+ }
378
+
379
+ &__upcoming {
380
+ background-color: #fff5de;
381
+ border-color: #FEE199;
382
+ color: #C39C5B;
383
+ }
384
+
385
+ &__expired {
386
+ background: #FFE6E6;
387
+ border-color: #FF8484;
388
+ color: #F05C5C;
389
+ }
390
+
391
+ &__stopped {
392
+ background: #EFEFEF;
393
+ border-color: #A0A0A0;
394
+ color: #6F6F8D;
395
+ }
396
+ }
397
+
398
+ .status-btns {
399
+ margin-bottom: 0;
400
+ }
401
+
402
+ .merch-rule-type {
403
+ border: 1px solid #dae1e9;
404
+ border-radius: 12px;
405
+ background-color: #ffffff;
406
+ color: #687f8f;
407
+ font-size: 10px;
408
+ padding: 4px 9px;
409
+ }
410
+
411
+ .campaign-type-icon span:first-of-type {
412
+ &:before {
413
+ content: "";
414
+ margin-right: 2px;
415
+
416
+ }
417
+ }
418
+
419
+ .vertical-menu-icon {
420
+ background-position: -1946px -2744px;
421
+ height: 18px;
422
+ transform: scale(1.3);
423
+ width: 18px;
424
+
425
+ &:hover {
426
+ background-position: -1946px -2778px;
427
+ }
428
+ }
429
+
430
+ .right-triangle-icon {
431
+ background-position: -1857px -2745px;
432
+ height: 20px;
433
+ transform: scale(1);
434
+ width: 20px;
435
+ }
436
+
437
+ .delete-text {
438
+ color: #F05C5C;
439
+ }
440
+
441
+ .loading-anim-wrap {
442
+ padding: 18px 24px;
443
+ width: 100%;
444
+ }
445
+
446
+ .global {
447
+ align-items: center;
448
+ color: #3E71F2;
449
+ text-transform: capitalize;
450
+
451
+ .glob-icon {
452
+ margin-right: 3px;
453
+ margin-left: -2px;
454
+ }
455
+ }
456
+
457
+ .meta-info-bg {
458
+ background-color: #F4F8FF;
459
+ border-radius: 6px;
460
+ padding: 16px;
461
+ width: fit-content;
462
+ }
463
+
464
+ .mb-5 {
465
+ margin-bottom: 5px;
466
+ }
467
+
468
+ .mb-0 {
469
+ margin-bottom: 0;
470
+ }
471
+
472
+ .mb-3 {
473
+ margin-bottom: 3px;
474
+ }
475
+
476
+ .mt-2 {
477
+ margin-top: 2px;
478
+ }
479
+
480
+ .pl-3 {
481
+ padding-left: 3px;
482
+ }
483
+
484
+ .pl-10 {
485
+ padding-left: 10px;
486
+ }
487
+ }
488
+
489
+ .RCB-table {
490
+ font-size: 14px;
491
+
492
+ thead {
493
+ border: 1px solid #DADFE6;
494
+ }
495
+
496
+ th {
497
+ color: #FFF;
498
+ background-color: #5C7185;
499
+ padding: 10px 8px;
500
+ text-align: left;
501
+ }
502
+
503
+ .RCB-tr {
504
+ height: 41px;
505
+ }
506
+
507
+ td {
508
+ padding: 6px;
509
+ background-color: #FFF;
510
+ border-bottom: 1px solid #E8EDEF;
511
+ }
512
+
513
+ .RCB-form-el-cont {
514
+ margin: 0;
515
+ }
516
+ }
517
+
518
+ .RCB-th-sortable:after {
519
+ content: " ";
520
+ margin-left: 7px;
521
+ }
522
+
523
+ .RCB-paginate-bar {
524
+ color: #445870;
525
+ font-size: 14px;
526
+ padding: 7px 18px;
527
+ border: 1px solid #DADFE6;
528
+ border-radius: 7px 7px 0 0;
529
+ background-color: #eef2fc;
530
+
531
+ .RCB-dropdown {
532
+ .RCB-inline-modal {
533
+ border: none;
534
+ }
535
+ }
536
+
537
+ .RCB-inline-modal-btn {
538
+ background: transparent;
539
+ padding: 0;
540
+ }
541
+ }
542
+
543
+ .rdt_Pagination {
544
+ border-color: #DDE2EE !important;
545
+ border-bottom-left-radius: 8px;
546
+ border-bottom-right-radius: 8px;
547
+ }
@@ -0,0 +1,34 @@
1
+ .RCB {
2
+ &-table {
3
+ td {
4
+ padding: 10px;
5
+ }
6
+ }
7
+
8
+ &-th {
9
+ background-color: #2287b4;
10
+ color: #FFF;
11
+ font-weight: normal;
12
+ padding: 10px;
13
+ }
14
+
15
+ &-even-tr {
16
+ background-color: #FFF;
17
+ }
18
+
19
+ &-odd-tr {
20
+ background-color: #dcf1fa;
21
+ }
22
+
23
+ &-expanded-row {
24
+ background-color: #ecf2f4;
25
+ }
26
+
27
+ &-paginate-bar {
28
+ background-color: #a3c9db;
29
+ text-align: right;
30
+ font-size: 14px;
31
+ padding: 5px;
32
+ border-radius: 5px 5px 0 0;
33
+ }
34
+ }
@@ -0,0 +1 @@
1
+ .RCB-tab-title{list-style-type:none;display:inline-block;padding:10px;cursor:pointer}.RCB-tab-title.selected{background:#FFF;font-weight:bold;border:1px solid #cacaca;border-bottom:0;position:relative;z-index:1;bottom:-1px}.RCB-tab-content{list-style-type:none;border:1px solid #cacaca;padding:10px}.RCB-tab-content.selected{display:block}
@@ -0,0 +1,59 @@
1
+ .RCB {
2
+ &-tabs-container {
3
+ display: flex;
4
+ }
5
+
6
+ &-tab-title {
7
+ list-style-type: none;
8
+ padding: 10px;
9
+ cursor: pointer;
10
+
11
+ &.selected {
12
+ background: #FFF;
13
+ font-weight: bold;
14
+ border: 1px solid #cacaca;
15
+ position: relative;
16
+ z-index: 1;
17
+ }
18
+ }
19
+
20
+ &-tabs-horizontal {
21
+ flex-direction: column;
22
+
23
+ .RCB-tab-title {
24
+ display: inline-block;
25
+
26
+ &.selected {
27
+ border-bottom: 0;
28
+ bottom: -1px;
29
+ }
30
+ }
31
+ }
32
+
33
+ &-tabs-vertical {
34
+ .RCB-tab-title {
35
+ display: block;
36
+
37
+ &.selected {
38
+ border-right: 0;
39
+ right: -1px;
40
+ }
41
+ }
42
+ }
43
+
44
+ &-tab-content {
45
+ list-style-type: none;
46
+ border: 1px solid #cacaca;
47
+ padding: 10px;
48
+
49
+ &.selected {
50
+ display: block;
51
+ }
52
+ }
53
+
54
+ &-tab-disabled {
55
+ pointer-events: none;
56
+ cursor: not-allowed;
57
+ color: #ccc;
58
+ }
59
+ }
File without changes