@capillarytech/blaze-ui 0.1.6-alpha.48 → 0.1.6-alpha.5

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 (101) hide show
  1. package/CapHeading/CapHeading.js +71 -0
  2. package/CapHeading/index.js +1 -0
  3. package/CapHeading/styles.js +125 -0
  4. package/CapInfoNote/CapInfoNote.js +54 -0
  5. package/CapInfoNote/index.js +1 -0
  6. package/CapInfoNote/styles.js +63 -0
  7. package/CapInput/CapInput.js +1 -1
  8. package/CapInput/Number.js +1 -1
  9. package/CapInput/Search.js +1 -1
  10. package/CapInput/TextArea.js +1 -1
  11. package/CapInput/loadable.js +9 -0
  12. package/CapLabel/CapLabel.js +81 -101
  13. package/CapLabel/index.js +1 -3
  14. package/CapLabel/styles.js +212 -250
  15. package/CapRow/CapRow.js +10 -111
  16. package/CapRow/index.js +1 -3
  17. package/CapRow/styles.js +6 -47
  18. package/CapTable/loadable.js +4 -4
  19. package/CapTable/styles.js +1 -1
  20. package/CapTooltip/CapTooltip.js +25 -87
  21. package/CapTooltip/index.js +1 -3
  22. package/CapTooltip/styles.js +27 -19
  23. package/CapUnifiedSelect/CapUnifiedSelect.js +66 -308
  24. package/CapUnifiedSelect/index.js +4 -1
  25. package/CapUnifiedSelect/loadable.js +3 -0
  26. package/CapUnifiedSelect/styles.js +151 -255
  27. package/dist/235.index.js +2 -0
  28. package/dist/235.index.js.LICENSE.txt +29 -0
  29. package/dist/603.index.js +1 -0
  30. package/dist/CapInput/CapInput.js +66 -0
  31. package/dist/CapInput/Number.js +42 -0
  32. package/dist/CapInput/Search.js +35 -0
  33. package/dist/CapInput/TextArea.js +42 -0
  34. package/dist/CapInput/index.js +15 -0
  35. package/dist/CapInput/messages.js +32 -0
  36. package/dist/CapInput/styles.js +11 -0
  37. package/dist/CapTable/CapTable.js +148 -0
  38. package/dist/CapTable/index.js +9 -0
  39. package/dist/CapTable/loadable.js +23 -0
  40. package/dist/CapTable/styles.js +26 -0
  41. package/dist/LocaleHoc/index.js +40 -0
  42. package/dist/esm/CapHeading/CapHeading.js +41 -0
  43. package/dist/esm/CapHeading/index.js +1 -0
  44. package/dist/esm/CapHeading/styles.js +123 -0
  45. package/dist/esm/CapInfoNote/CapInfoNote.js +62 -0
  46. package/dist/esm/CapInfoNote/index.js +1 -0
  47. package/dist/esm/CapInfoNote/styles.js +6 -0
  48. package/dist/esm/CapInput/CapInput.js +57 -0
  49. package/dist/esm/CapInput/Number.js +35 -0
  50. package/dist/esm/CapInput/Search.js +28 -0
  51. package/dist/esm/CapInput/TextArea.js +35 -0
  52. package/dist/esm/CapInput/index.js +8 -0
  53. package/dist/esm/CapInput/loadable.js +9 -0
  54. package/dist/esm/CapInput/messages.js +25 -0
  55. package/dist/esm/CapInput/styles.js +3 -0
  56. package/dist/esm/CapLabel/CapLabel.js +50 -0
  57. package/dist/esm/CapLabel/index.js +1 -0
  58. package/dist/esm/CapLabel/styles.js +219 -0
  59. package/dist/esm/CapRow/CapRow.js +22 -0
  60. package/dist/esm/CapRow/index.js +1 -0
  61. package/dist/esm/CapRow/styles.js +5 -0
  62. package/dist/esm/CapTable/CapTable.js +140 -0
  63. package/dist/esm/CapTable/index.js +2 -0
  64. package/dist/esm/CapTable/loadable.js +12 -0
  65. package/dist/esm/CapTable/styles.js +17 -0
  66. package/dist/esm/CapTooltip/CapTooltip.js +34 -0
  67. package/dist/esm/CapTooltip/index.js +1 -0
  68. package/dist/esm/CapTooltip/styles.js +6 -0
  69. package/dist/esm/CapUnifiedSelect/CapUnifiedSelect.js +101 -0
  70. package/dist/esm/CapUnifiedSelect/index.js +3 -0
  71. package/dist/esm/CapUnifiedSelect/loadable.js +4 -0
  72. package/dist/esm/CapUnifiedSelect/messages.js +23 -0
  73. package/dist/esm/CapUnifiedSelect/styles.js +15 -0
  74. package/dist/esm/LocaleHoc/index.js +31 -0
  75. package/dist/esm/index.js +11 -0
  76. package/dist/esm/styled/index.js +5 -0
  77. package/dist/esm/styled/variables.js +88 -0
  78. package/dist/esm/translations/en.js +329 -0
  79. package/dist/index.js +39 -0
  80. package/dist/index.js.LICENSE.txt +7 -0
  81. package/dist/styled/index.js +22 -0
  82. package/dist/styled/variables.js +94 -0
  83. package/dist/translations/en.js +335 -0
  84. package/index.js +1 -12
  85. package/package.json +11 -5
  86. package/.DS_Store +0 -0
  87. package/CapIcon/CapIcon.js +0 -183
  88. package/CapIcon/index.js +0 -3
  89. package/CapIcon/styles.js +0 -76
  90. package/CapSkeleton/CapSkeleton.js +0 -17
  91. package/CapSkeleton/index.js +0 -1
  92. package/CapSpin/CapSpin.js +0 -23
  93. package/CapSpin/index.js +0 -1
  94. package/CapTestSelect/CapTestSelect.js +0 -47
  95. package/CapTestSelect/index.js +0 -1
  96. package/CapTooltipWithInfo/CapTooltipWithInfo.js +0 -82
  97. package/CapTooltipWithInfo/index.js +0 -3
  98. package/CapTooltipWithInfo/styles.js +0 -22
  99. package/assets/upload.svg +0 -3
  100. package/utils/index.js +0 -1
  101. package/utils/withStyles.js +0 -24
@@ -23,304 +23,200 @@ 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.CAP_G05};
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.CAP_G03};
34
+ color: ${styledVars.CAP_G1};
86
35
  }
87
36
 
88
37
  &.disabled {
89
38
  cursor: not-allowed;
90
39
  &:hover {
91
- color: ${styledVars.CAP_G05};
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
- text-align: justify;
99
- .ant-btn-variant-solid:not(:disabled):not(.ant-btn-disabled):hover{
100
- background-color: #42b040;
101
- }
102
- .ant-tree-select-dropdown{
103
- padding: 0px;
104
- }
105
- .cap-unified-tree-select-s{
106
- height: 40px;
107
- width: 160px;
108
- }
109
- .cap-unified-tree-select-m{
110
- height: 40px;
111
- width: 340px;
112
- }
113
- .cap-unified-tree-select-l{
114
- height: 40px;
115
- width: 400px;
116
- }
117
- .cap-unified-tree-select-xl{
118
- height: 40px;
119
- width: 480px;
120
- }
121
- .cap-unified-select-upload-container{
122
- cursor: pointer;
46
+ &.cap-unified-select {
47
+ width: 100%;
48
+ font-family: ${styledVars.FONT_FAMILY};
49
+
50
+ .ant-select-selector {
51
+ border-radius: ${styledVars.RADIUS_04};
52
+ transition: ${styledVars.TRANSITION_ALL};
53
+ padding: 0 12px;
54
+ min-height: 32px;
123
55
  display: flex;
124
56
  align-items: center;
125
- border-bottom: 1px solid #f0f0f0;
126
- height: 40px;
127
- padding-left: 15px;
128
-
129
- .cap-unified-select-upload-label{
130
- margin-left: 12px;
131
- color: #2466EA;
57
+
58
+ &:hover {
59
+ border-color: ${styledVars.CAP_G11};
132
60
  }
133
61
  }
134
- .cap-unified-select-select-all-container{
135
- padding: 9px 9px;
136
- cursor: pointer;
62
+
63
+ /* Right slot content styles */
64
+ .cap-unified-select-right-slot {
137
65
  display: flex;
138
66
  align-items: center;
139
- border-bottom: 1px solid #f0f0f0;
140
- height: 40px;
141
- }
142
- .ant-select-dropdown{
143
- margin-top: -5px;
144
- border-radius: 4px;
145
- box-shadow: 0px 4px 8px -2px #091E4240, 0px 0px 1px 0px #091E424F;
146
- max-height: 368px;
147
- }
148
- .ant-select-prefix{
149
- font-size: 14px;
150
- font-weight: 400;
151
- color: #091E42;
152
- line-height: 20px;
153
- }
154
- .cap-unified-select-header-label{
155
- font-family: ${styledVars.FONT_FAMILY};
156
- font-weight: 500;
157
- font-size: 14px;
158
- line-height: 20px;
159
- letter-spacing: 0px;
160
- }
161
- .cap-unified-select-header-byline-text{
162
- font-family: ${styledVars.FONT_FAMILY};
163
- font-weight: 400;
164
- font-size: 12px;
165
- margin-top: -10px;
166
- letter-spacing: 0px;
167
- color: #97A0AF;
67
+ gap: 8px;
68
+ margin-left: 8px;
168
69
  }
169
- .ant-input-affix-wrapper .ant-input-prefix{
170
- left: 13px;
171
- }
172
- .ant-select-tree {
173
- .ant-select-tree-node-content-wrapper{
174
- background-color: transparent;
175
- }
176
- .ant-select-tree-node-content-wrapper:hover {
177
- background-color: transparent;
70
+
71
+ &.ant-select-focused {
72
+ .ant-select-selector {
73
+ border-color: ${styledVars.CAP_G01} !important;
74
+ box-shadow: none !important;
178
75
  }
179
76
  }
180
- .ant-select-tree .ant-select-tree-switcher:not(.ant-select-tree-switcher-noop):hover:before{
181
- background-color: transparent;
182
- }
183
- .ant-select-selection-item{
184
- background: transparent;
185
- }
186
- .cap-unified-tree-select .ant-select-selector:hover{
187
- border: 1px solid #7A869A;
188
- }
189
- .cap-unified-tree-select .ant-select-selector:focus{
190
- border: 1px solid #7A869A;
191
- }
192
- .cap-unified-tree-select .cap-unified-select-select-all-checkbox{
193
- height: 18px;
194
- width: 18px;
195
- border-color: #B3BAC5;
196
- border-radius: 2px;
197
- }
198
- .cap-unified-tree-select .select-popup-container .ant-select-tree-switcher-noop,
199
- .cap-unified-tree-select .multiSelect-popup-container .ant-select-tree-switcher-noop {
200
- display: none;
201
- }
202
- .cap-unified-tree-select .multiSelect-popup-container .ant-select-tree-treenode{
203
- padding-left: 15px;
77
+
78
+ /* Error state */
79
+ &.ant-select-status-error {
80
+ .ant-select-selector {
81
+ border-color: ${styledVars.CAP_RED};
82
+ }
204
83
  }
205
- .ant-tree-select-dropdown .ant-select-tree .ant-select-tree-treenode{
206
- line-height: 40px;
207
- margin-bottom: 0px;
208
- .ant-select-tree-checkbox .ant-select-tree-checkbox-inner{
209
- height: 18px;
210
- width: 18px;
211
- border: 2px solid #B3BAC5;
84
+
85
+ /* Disabled state */
86
+ &.ant-select-disabled {
87
+ .ant-select-selector {
88
+ background-color: ${styledVars.CAP_G08};
89
+ cursor: not-allowed;
212
90
  }
213
- &:hover{
214
- background-color: #FFFBE6;
215
- border-radius: 4px;
91
+ }
92
+
93
+ /* Dropdown styles */
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};
103
+
104
+ &-option-selected {
105
+ background-color: ${styledVars.CAP_PRIMARY.light};
106
+ color: ${styledVars.CAP_PRIMARY.base};
107
+ font-weight: 500;
108
+ }
109
+
110
+ &-option-active {
111
+ background-color: ${styledVars.CAP_G08};
112
+ }
216
113
  }
217
- &:not(.ant-select-tree-treenode-disabled) .ant-select-tree-node-content-wrapper:hover{
218
- background-color: none;
114
+
115
+ /* Search input styles */
116
+ .ant-select-search {
117
+ padding: 8px;
118
+
119
+ input {
120
+ border-radius: ${styledVars.RADIUS_04};
121
+ transition: ${styledVars.TRANSITION_ALL};
122
+
123
+ &:focus {
124
+ border-color: ${styledVars.CAP_G01};
125
+ box-shadow: none;
126
+ }
127
+ }
219
128
  }
220
129
  }
221
- .ant-tree-select-dropdown .ant-select-tree .ant-select-tree-node-content-wrapper{
222
- border-radius: 0px;
223
- padding-left: 12px;
224
- }
225
- .ant-select-tree-treenode.ant-select-tree-treenode-selected{
226
- background-color: #E9F0FE;
227
- color: #2466EA;
228
- }
229
- .cap-unified-select-no-result{
230
- display: flex;
231
- flex-direction: column;
232
- align-items: center;
233
- justify-content: center;
234
- height: 200px;
235
- color: #8c8c8c;
236
- font-size: 14px;
237
- }
238
- .cap-unified-select-no-result-icon{
239
- font-size: 36px;
240
- margin-bottom: 8px;
241
- color: #bfbfbf;
242
- }
243
- .cap-unified-select-no-result-text{
244
- font-weight: 500;
245
- }
246
- .ant-tree-select:hover .ant-select-selector {
247
- border-color: #7A869A;
248
- }
249
- .ant-tree-select-focused .ant-select-selector,
250
- .ant-tree-select-open .ant-select-selector {
251
- border-color: #7A869A;
252
- box-shadow: none;
253
- outline: none;
254
- }
255
- .cap-unified-select-search-container{
256
- border-bottom: 1px solid #EBECF0 !important;
257
- line-height: 40px !important;
258
- .ant-input-affix-wrapper{
259
- padding-left: 8px;
130
+
131
+ /* Multiple selection styles */
132
+ &.ant-select-multiple {
133
+ .ant-select-selection-item {
134
+ background-color: ${styledVars.CAP_PRIMARY.light};
135
+ border-color: ${styledVars.CAP_PRIMARY.light};
136
+ border-radius: ${styledVars.RADIUS_04};
137
+ color: ${styledVars.CAP_PRIMARY.base};
138
+ margin: 2px 4px 2px 0;
139
+ padding: 0 8px;
140
+ height: 24px;
141
+ line-height: 22px;
142
+
143
+ &-remove {
144
+ color: ${styledVars.CAP_PRIMARY.base};
145
+
146
+ &:hover {
147
+ color: ${styledVars.CAP_PRIMARY.hover};
148
+ }
149
+ }
150
+ }
151
+
152
+ .ant-select-selection-overflow {
153
+ flex-wrap: wrap;
154
+ gap: 4px;
260
155
  }
261
156
  }
262
- .cap-unified-select-upload-button{
263
- border: none;
264
- padding-left: 15px;
265
- }
266
- .cap-unified-select-confirm-container {
267
- display: flex;
268
- align-items: center;
269
- height: 48px;
270
- padding: 7px;
271
- border-top: 1px solid #EBECF0;
272
- }
273
- .cap-unified-select-confirm-button-group {
274
- display: flex;
275
- padding-left: 8px;
276
- align-items: center;
277
- width: 100%; /* so it can push the label */
278
- button{
279
- height: 32px;
280
- width: 94px;
157
+
158
+ /* Tree select styles */
159
+ .ant-select-tree {
160
+ padding: 4px 0;
161
+
162
+ .ant-select-tree-node-content-wrapper {
163
+ padding: 4px 8px;
164
+ border-radius: ${styledVars.RADIUS_04};
165
+ transition: ${styledVars.TRANSITION_ALL};
166
+
167
+ &:hover {
168
+ background-color: ${styledVars.CAP_G08};
169
+ }
170
+
171
+ &.ant-select-tree-node-selected {
172
+ background-color: ${styledVars.CAP_PRIMARY.light};
173
+ color: ${styledVars.CAP_PRIMARY.base};
174
+ font-weight: 500;
175
+ }
281
176
  }
282
- .cap-unified-select-confirm-button{
283
- background-color: #6ebd6e;
177
+
178
+ .ant-select-tree-switcher {
179
+ width: 24px;
180
+ height: 24px;
181
+ line-height: 24px;
284
182
  }
285
- .cap-unified-select-cancel-button{
286
- border: transparent;
287
- box-shadow: none;
183
+
184
+ .ant-select-tree-checkbox {
185
+ margin: 4px 8px 4px 0;
288
186
  }
289
187
  }
290
- .cap-unified-select-selected-count {
291
- display: flex;
292
- margin-left: auto; /* pushes to far right */
293
- font-size: 12px;
294
- font-weight: 400;
295
- line-height: 16px;
296
- color: #5E6C84;
297
- }
298
- .cap-unified-select-status{
299
- color: #E83135;
300
- }
301
- .cap-unified-select-search-container {
302
- .ant-input-affix-wrapper {
303
- border: none;
304
- box-shadow: none;
305
- border-radius: 0;
188
+
189
+ /* Size variations */
190
+ &.ant-select-lg {
191
+ .ant-select-selector {
192
+ height: 40px;
193
+ padding: 0 16px;
306
194
  }
307
195
 
308
- .ant-input-affix-wrapper:hover {
309
- border: none;
310
- box-shadow: none;
311
- border-bottom: 1px solid #EBECF0;
196
+ .ant-select-selection-item {
197
+ height: 28px;
198
+ line-height: 26px;
312
199
  }
200
+ }
313
201
 
314
- .ant-input-affix-wrapper:focus-within {
315
- border: none;
316
- box-shadow: none;
317
- border-bottom: 1px solid #091E42;
318
- outline: none;
202
+ &.ant-select-sm {
203
+ .ant-select-selector {
204
+ height: 24px;
205
+ padding: 0 8px;
319
206
  }
320
207
 
321
- .ant-input {
322
- border: none !important;
323
- box-shadow: none !important;
208
+ .ant-select-selection-item {
209
+ height: 20px;
210
+ line-height: 18px;
211
+ }
212
+ }
213
+
214
+ /* Loading state */
215
+ &.ant-select-loading {
216
+ .ant-select-arrow {
217
+ .anticon-loading {
218
+ color: ${styledVars.CAP_PRIMARY.base};
219
+ }
324
220
  }
325
221
  }
326
222
  }