@capillarytech/blaze-ui 0.1.6-alpha.9 → 0.1.12
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/CapIcon/CapIcon.js +183 -0
- package/CapIcon/index.js +3 -0
- package/CapIcon/styles.js +76 -0
- package/CapInput/CapInput.js +2 -2
- package/CapInput/Number.js +1 -1
- package/CapInput/Search.js +1 -1
- package/CapInput/TextArea.js +1 -1
- package/CapInput/styles.js +2 -2
- package/CapLabel/CapLabel.js +58 -81
- package/CapLabel/index.js +3 -1
- package/CapLabel/styles.js +250 -212
- package/CapRow/CapRow.js +111 -10
- package/CapRow/index.js +3 -1
- package/CapRow/styles.js +47 -6
- package/CapSkeleton/CapSkeleton.js +17 -0
- package/CapSkeleton/index.js +1 -0
- package/CapSpin/CapSpin.js +23 -0
- package/CapSpin/index.js +1 -0
- package/CapTable/loadable.js +4 -4
- package/CapTable/styles.js +6 -6
- package/CapTestSelect/CapTestSelect.js +47 -0
- package/CapTestSelect/index.js +1 -0
- package/CapTooltip/CapTooltip.js +87 -25
- package/CapTooltip/index.js +3 -1
- package/CapTooltip/styles.js +19 -27
- package/CapTooltipWithInfo/CapTooltipWithInfo.js +74 -0
- package/CapTooltipWithInfo/index.js +3 -0
- package/CapTooltipWithInfo/styles.js +22 -0
- package/CapUnifiedSelect/CapUnifiedSelect.js +495 -77
- package/CapUnifiedSelect/index.js +1 -4
- package/CapUnifiedSelect/styles.js +376 -165
- package/assets/upload.svg +3 -0
- package/index.js +12 -1
- package/package.json +5 -11
- package/styled/variables.js +2 -0
- package/utils/index.js +1 -0
- package/utils/withMemo.js +33 -0
- package/utils/withStyles.js +24 -0
- package/CapHeading/CapHeading.js +0 -71
- package/CapHeading/index.js +0 -1
- package/CapHeading/styles.js +0 -125
- package/CapInfoNote/CapInfoNote.js +0 -54
- package/CapInfoNote/index.js +0 -1
- package/CapInfoNote/styles.js +0 -63
- package/CapInput/loadable.js +0 -9
- package/CapUnifiedSelect/loadable.js +0 -3
- package/dist/235.index.js +0 -2
- package/dist/235.index.js.LICENSE.txt +0 -29
- package/dist/603.index.js +0 -1
- package/dist/CapInput/CapInput.js +0 -66
- package/dist/CapInput/Number.js +0 -42
- package/dist/CapInput/Search.js +0 -35
- package/dist/CapInput/TextArea.js +0 -42
- package/dist/CapInput/index.js +0 -15
- package/dist/CapInput/messages.js +0 -32
- package/dist/CapInput/styles.js +0 -11
- package/dist/CapTable/CapTable.js +0 -148
- package/dist/CapTable/index.js +0 -9
- package/dist/CapTable/loadable.js +0 -23
- package/dist/CapTable/styles.js +0 -26
- package/dist/LocaleHoc/index.js +0 -40
- package/dist/esm/CapHeading/CapHeading.js +0 -41
- package/dist/esm/CapHeading/index.js +0 -1
- package/dist/esm/CapHeading/styles.js +0 -123
- package/dist/esm/CapInfoNote/CapInfoNote.js +0 -62
- package/dist/esm/CapInfoNote/index.js +0 -1
- package/dist/esm/CapInfoNote/styles.js +0 -6
- package/dist/esm/CapInput/CapInput.js +0 -57
- package/dist/esm/CapInput/Number.js +0 -35
- package/dist/esm/CapInput/Search.js +0 -28
- package/dist/esm/CapInput/TextArea.js +0 -35
- package/dist/esm/CapInput/index.js +0 -8
- package/dist/esm/CapInput/loadable.js +0 -9
- package/dist/esm/CapInput/messages.js +0 -25
- package/dist/esm/CapInput/styles.js +0 -3
- package/dist/esm/CapLabel/CapLabel.js +0 -50
- package/dist/esm/CapLabel/index.js +0 -1
- package/dist/esm/CapLabel/styles.js +0 -219
- package/dist/esm/CapRow/CapRow.js +0 -22
- package/dist/esm/CapRow/index.js +0 -1
- package/dist/esm/CapRow/styles.js +0 -5
- package/dist/esm/CapTable/CapTable.js +0 -140
- package/dist/esm/CapTable/index.js +0 -2
- package/dist/esm/CapTable/loadable.js +0 -12
- package/dist/esm/CapTable/styles.js +0 -17
- package/dist/esm/CapTooltip/CapTooltip.js +0 -34
- package/dist/esm/CapTooltip/index.js +0 -1
- package/dist/esm/CapTooltip/styles.js +0 -6
- package/dist/esm/CapUnifiedSelect/CapUnifiedSelect.js +0 -101
- package/dist/esm/CapUnifiedSelect/index.js +0 -3
- package/dist/esm/CapUnifiedSelect/loadable.js +0 -4
- package/dist/esm/CapUnifiedSelect/messages.js +0 -23
- package/dist/esm/CapUnifiedSelect/styles.js +0 -15
- package/dist/esm/LocaleHoc/index.js +0 -31
- package/dist/esm/index.js +0 -11
- package/dist/esm/styled/index.js +0 -5
- package/dist/esm/styled/variables.js +0 -88
- package/dist/esm/translations/en.js +0 -329
- package/dist/index.js +0 -39
- package/dist/index.js.LICENSE.txt +0 -7
- package/dist/styled/index.js +0 -22
- package/dist/styled/variables.js +0 -94
- package/dist/translations/en.js +0 -335
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import * as styledVars from '../styled/variables';
|
|
3
3
|
|
|
4
|
-
export const SelectWrapper = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
gap: 8px;
|
|
8
|
-
width: 100%;
|
|
9
|
-
|
|
10
|
-
&.disabled {
|
|
11
|
-
cursor: not-allowed;
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
4
|
export const HeaderWrapper = styled.div`
|
|
16
5
|
display: flex;
|
|
17
6
|
align-items: center;
|
|
18
|
-
gap: 4px;
|
|
19
7
|
|
|
20
8
|
&.disabled {
|
|
21
9
|
opacity: 0.5;
|
|
@@ -23,201 +11,424 @@ export const HeaderWrapper = styled.div`
|
|
|
23
11
|
}
|
|
24
12
|
`;
|
|
25
13
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export const StyledInfoIcon = styled.span`
|
|
29
|
-
color: ${styledVars.CAP_G2};
|
|
30
|
-
font-size: 16px;
|
|
31
|
-
cursor: help;
|
|
32
|
-
|
|
33
|
-
&:hover {
|
|
34
|
-
color: ${styledVars.CAP_G1};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.disabled {
|
|
38
|
-
cursor: not-allowed;
|
|
39
|
-
&:hover {
|
|
40
|
-
color: ${styledVars.CAP_G2};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
14
|
export const selectStyles = css`
|
|
46
|
-
&.cap-unified-select {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
.ant-select-selector {
|
|
51
|
-
border-radius: ${styledVars.RADIUS_04};
|
|
52
|
-
transition: ${styledVars.TRANSITION_ALL};
|
|
53
|
-
padding: 0 12px;
|
|
54
|
-
min-height: 32px;
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
border-color: ${styledVars.CAP_G11};
|
|
60
|
-
}
|
|
15
|
+
&.cap-unified-select-container {
|
|
16
|
+
text-align: justify;
|
|
17
|
+
&.disabled {
|
|
18
|
+
cursor: not-allowed;
|
|
61
19
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
gap: 8px;
|
|
68
|
-
margin-left: 8px;
|
|
20
|
+
.cap-unified-select-more-text {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
color: ${styledVars.CAP_G01};
|
|
23
|
+
margin-right: ${styledVars.SPACING_04};
|
|
24
|
+
position: relative;
|
|
69
25
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
26
|
+
.cap-unified-select-suffix-icon {
|
|
27
|
+
color: ${styledVars.CAP_G01};
|
|
28
|
+
}
|
|
29
|
+
.ant-select-outlined {
|
|
30
|
+
&:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer) {
|
|
31
|
+
&:hover {
|
|
32
|
+
.ant-select-selector {
|
|
33
|
+
border-color: ${styledVars.CAP_G11};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
75
36
|
}
|
|
76
37
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
.ant-select-selector
|
|
81
|
-
|
|
38
|
+
|
|
39
|
+
.cap-unified-tree-select-readonly.ant-select-outlined {
|
|
40
|
+
&:hover .ant-select-selector,
|
|
41
|
+
&:active .ant-select-selector,
|
|
42
|
+
&:focus .ant-select-selector {
|
|
43
|
+
border-color: ${styledVars.CAP_G08} !important;
|
|
82
44
|
}
|
|
83
45
|
}
|
|
46
|
+
.ant-select-selector .ant-select-selection-placeholder{
|
|
47
|
+
pointer-events: unset;
|
|
48
|
+
}
|
|
49
|
+
.ant-select-prefix {
|
|
50
|
+
font-size: 1rem;
|
|
51
|
+
font-weight: ${styledVars.FONT_WEIGHT_REGULAR};
|
|
52
|
+
color: ${styledVars.CAP_G01};
|
|
53
|
+
line-height: 1.429rem;
|
|
54
|
+
}
|
|
55
|
+
.cap-unified-select-header-label {
|
|
56
|
+
font-family: ${styledVars.FONT_FAMILY};
|
|
57
|
+
font-weight: ${styledVars.FONT_WEIGHT_MEDIUM};
|
|
58
|
+
font-size: 1rem;
|
|
59
|
+
line-height: 1.429rem;
|
|
60
|
+
letter-spacing: 0;
|
|
61
|
+
}
|
|
62
|
+
.cap-unified-select-header-byline-text {
|
|
63
|
+
font-family: ${styledVars.FONT_FAMILY};
|
|
64
|
+
font-weight: ${styledVars.FONT_WEIGHT_REGULAR};
|
|
65
|
+
font-size: 0.857rem;
|
|
66
|
+
letter-spacing: 0;
|
|
67
|
+
color: ${styledVars.CAP_G05};
|
|
68
|
+
}
|
|
69
|
+
.ant-input-affix-wrapper .ant-input-prefix {
|
|
70
|
+
left: ${styledVars.SPACING_12};
|
|
71
|
+
}
|
|
72
|
+
.cap-tooltip-with-info-icon {
|
|
73
|
+
margin-top: 0.143rem;
|
|
74
|
+
}
|
|
84
75
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
76
|
+
.cap-unified-tree-select {
|
|
77
|
+
min-width: 14.286rem;
|
|
78
|
+
|
|
79
|
+
&.cap-unified-tree-select-readonly {
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
.ant-select-selector {
|
|
82
|
+
background-color: ${styledVars.CAP_WHITE};
|
|
83
|
+
border-color: ${styledVars.CAP_G08} !important;
|
|
84
|
+
cursor: default;
|
|
85
|
+
}
|
|
86
|
+
.ant-select-arrow {
|
|
87
|
+
pointer-events: auto;
|
|
88
|
+
color: ${styledVars.CAP_G06};
|
|
89
|
+
}
|
|
90
|
+
&:hover .ant-select-selector {
|
|
91
|
+
border-color: ${styledVars.CAP_G08} !important;
|
|
92
|
+
}
|
|
93
|
+
.cap-unified-select-more-text {
|
|
94
|
+
pointer-events: auto;
|
|
95
|
+
}
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
|
|
99
|
+
.ant-select.ant-select-focused.ant-select-outlined:not(.ant-select-disabled)
|
|
100
|
+
.ant-select-selector {
|
|
101
|
+
border-color: ${styledVars.CAP_G11} !important;
|
|
102
|
+
box-shadow: none;
|
|
103
|
+
outline: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ant-btn-variant-solid:not(:disabled):not(.ant-btn-disabled):hover {
|
|
107
|
+
background-color: ${styledVars.CAP_PRIMARY.base};
|
|
108
|
+
}
|
|
94
109
|
.ant-select-dropdown {
|
|
95
|
-
|
|
110
|
+
margin-top: -0.571rem !important;
|
|
96
111
|
border-radius: ${styledVars.RADIUS_04};
|
|
97
|
-
box-shadow:
|
|
98
|
-
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
112
|
+
box-shadow:
|
|
113
|
+
0 0.286rem 0.571rem -0.143rem ${styledVars.CAP_G01},
|
|
114
|
+
0 0 0.071rem 0 ${styledVars.CAP_G01};
|
|
115
|
+
max-height: 25.714rem;
|
|
116
|
+
overflow: visible;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ant-select-selection-item {
|
|
120
|
+
background: transparent;
|
|
121
|
+
}
|
|
122
|
+
.ant-select-multiple .ant-select-selection-wrap {
|
|
123
|
+
align-self: center;
|
|
124
|
+
}
|
|
125
|
+
.cap-unified-tree-select .ant-select-selector:focus {
|
|
126
|
+
border: 0.071rem solid ${styledVars.CAP_G11};
|
|
127
|
+
}
|
|
128
|
+
.cap-unified-tree-select .ant-select-tree-treenode {
|
|
129
|
+
padding-left: ${styledVars.SPACING_04};
|
|
130
|
+
}
|
|
131
|
+
.cap-unified-select-status {
|
|
132
|
+
color: ${styledVars.CAP_RED};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
103
135
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
font-weight: 500;
|
|
108
|
-
}
|
|
136
|
+
/* Common styles for all types */
|
|
137
|
+
&.custom-popup-container {
|
|
138
|
+
width: max-content;
|
|
109
139
|
|
|
110
|
-
|
|
111
|
-
|
|
140
|
+
.ant-select-tree {
|
|
141
|
+
.ant-select-tree-node-content-wrapper {
|
|
142
|
+
background-color: transparent;
|
|
143
|
+
height: 100%;
|
|
144
|
+
.cap-unified-select-option-with-suffix{
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: flex-start;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 100%;
|
|
150
|
+
.cap-unified-select-option-label{
|
|
151
|
+
flex: 1;
|
|
152
|
+
max-width: 9.286rem;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
text-overflow: ellipsis;
|
|
155
|
+
white-space: nowrap;
|
|
156
|
+
display: block;
|
|
157
|
+
}
|
|
158
|
+
.cap-unified-select-option-suffix{
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
padding: 0 ${styledVars.SPACING_08};
|
|
162
|
+
max-height: 1.429rem;
|
|
163
|
+
white-space: nowrap;
|
|
164
|
+
margin-left: ${styledVars.SPACING_08};
|
|
165
|
+
}
|
|
166
|
+
.cap-tooltip-with-info-icon{
|
|
167
|
+
margin-top: 0.357rem;
|
|
168
|
+
}
|
|
112
169
|
}
|
|
113
170
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
171
|
+
.ant-select-tree-node-content-wrapper:hover {
|
|
172
|
+
background-color: transparent;
|
|
173
|
+
}
|
|
174
|
+
.ant-select-tree-treenode {
|
|
175
|
+
height: 3.429rem;
|
|
176
|
+
margin-bottom: 0;
|
|
177
|
+
.ant-select-tree-checkbox .ant-select-tree-checkbox-inner {
|
|
178
|
+
height: 1.286rem;
|
|
179
|
+
width: 1.286rem;
|
|
180
|
+
border: 0.143rem solid ${styledVars.CAP_G06};
|
|
120
181
|
border-radius: ${styledVars.RADIUS_04};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
182
|
+
}
|
|
183
|
+
&:hover {
|
|
184
|
+
background-color: #fffbe6;
|
|
185
|
+
}
|
|
186
|
+
&:not(.ant-select-tree-treenode-disabled)
|
|
187
|
+
.ant-select-tree-node-content-wrapper:hover {
|
|
188
|
+
background-color: none;
|
|
127
189
|
}
|
|
128
190
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.ant-select-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
color: ${styledVars.CAP_PRIMARY.hover};
|
|
148
|
-
}
|
|
191
|
+
.ant-select-tree-node-content-wrapper {
|
|
192
|
+
border-radius: 0;
|
|
193
|
+
padding-left: 0.214rem;
|
|
194
|
+
}
|
|
195
|
+
.ant-select-tree-indent {
|
|
196
|
+
margin-left: ${styledVars.SPACING_12};
|
|
197
|
+
}
|
|
198
|
+
.ant-select-tree-switcher:not(
|
|
199
|
+
.ant-select-tree-switcher-noop
|
|
200
|
+
):hover:before {
|
|
201
|
+
background-color: transparent;
|
|
202
|
+
}
|
|
203
|
+
.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner {
|
|
204
|
+
background-color: ${styledVars.CAP_PRIMARY.base};
|
|
205
|
+
border: 0.143rem solid ${styledVars.CAP_PRIMARY.base} !important;
|
|
206
|
+
&:hover {
|
|
207
|
+
background-color: ${styledVars.CAP_PRIMARY.base};
|
|
208
|
+
border: 0.143rem solid ${styledVars.CAP_PRIMARY.base} !important;
|
|
149
209
|
}
|
|
150
210
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
gap: 4px;
|
|
211
|
+
.ant-select-tree-switcher .ant-select-tree-switcher-icon {
|
|
212
|
+
font-size: 0.857rem;
|
|
213
|
+
margin-top: 1.286rem;
|
|
155
214
|
}
|
|
156
215
|
}
|
|
216
|
+
.ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate
|
|
217
|
+
.ant-select-tree-checkbox-inner {
|
|
218
|
+
background-color: ${styledVars.CAP_PRIMARY.base} !important;
|
|
219
|
+
border-color: ${styledVars.CAP_PRIMARY.base} !important;
|
|
220
|
+
}
|
|
157
221
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
222
|
+
.ant-select-tree-checkbox.ant-select-tree-checkbox-indeterminate
|
|
223
|
+
.ant-select-tree-checkbox-inner::after {
|
|
224
|
+
content: '';
|
|
225
|
+
position: absolute;
|
|
226
|
+
top: 50%;
|
|
227
|
+
left: 50%;
|
|
228
|
+
width: 0.714rem;
|
|
229
|
+
height: 0.143rem;
|
|
230
|
+
background-color: ${styledVars.CAP_WHITE};
|
|
231
|
+
transform: translate(-50%, -50%);
|
|
232
|
+
border-radius: 0.071rem;
|
|
233
|
+
}
|
|
234
|
+
.cap-unified-select-upload-container {
|
|
235
|
+
cursor: pointer;
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
border-bottom: 0.071rem solid ${styledVars.CAP_G08};
|
|
239
|
+
height: 2.857rem;
|
|
240
|
+
padding-left: ${styledVars.SPACING_16};
|
|
166
241
|
|
|
167
|
-
|
|
168
|
-
|
|
242
|
+
.cap-unified-select-upload-label {
|
|
243
|
+
margin-left: ${styledVars.SPACING_12};
|
|
244
|
+
color: ${styledVars.CAP_SECONDARY.base};
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
.cap-unified-select-select-all-container {
|
|
248
|
+
padding: 0.643rem 1.071rem;
|
|
249
|
+
cursor: pointer;
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
border-bottom: 0.071rem solid ${styledVars.CAP_G08};
|
|
253
|
+
height: 2.857rem;
|
|
254
|
+
.cap-unified-select-select-all-checkbox {
|
|
255
|
+
display: contents !important;
|
|
256
|
+
.ant-checkbox-inner {
|
|
257
|
+
height: 1.286rem;
|
|
258
|
+
width: 1.286rem;
|
|
259
|
+
border: 0.143rem solid ${styledVars.CAP_G06};
|
|
260
|
+
border-radius: ${styledVars.RADIUS_04};
|
|
169
261
|
}
|
|
262
|
+
}
|
|
263
|
+
.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover
|
|
264
|
+
.ant-checkbox-checked:not(.ant-checkbox-disabled)
|
|
265
|
+
.ant-checkbox-inner {
|
|
266
|
+
background-color: ${styledVars.CAP_PRIMARY.base};
|
|
267
|
+
border: 0.143rem solid ${styledVars.CAP_PRIMARY.base} !important;
|
|
268
|
+
}
|
|
269
|
+
.ant-checkbox-indeterminate .ant-checkbox-inner {
|
|
270
|
+
background-color: ${styledVars.CAP_PRIMARY.base} !important;
|
|
271
|
+
border-color: ${styledVars.CAP_PRIMARY.base} !important;
|
|
272
|
+
}
|
|
273
|
+
.ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
|
274
|
+
content: '';
|
|
275
|
+
position: absolute;
|
|
276
|
+
top: 50%;
|
|
277
|
+
left: 50%;
|
|
278
|
+
width: 0.714rem;
|
|
279
|
+
height: 0.143rem;
|
|
280
|
+
background-color: ${styledVars.CAP_WHITE};
|
|
281
|
+
transform: translate(-50%, -50%);
|
|
282
|
+
border-radius: 0.071rem;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
.ant-select-tree-treenode.ant-select-tree-treenode-selected {
|
|
286
|
+
background-color: ${styledVars.CAP_PALE_GREY};
|
|
287
|
+
}
|
|
288
|
+
.ant-select-tree-list-holder-inner {
|
|
289
|
+
width: fit-content !important;
|
|
290
|
+
min-width: 100%;
|
|
291
|
+
}
|
|
292
|
+
.cap-unified-select-no-result {
|
|
293
|
+
display: flex;
|
|
294
|
+
flex-direction: column;
|
|
295
|
+
align-items: center;
|
|
296
|
+
justify-content: center;
|
|
297
|
+
height: 14.286rem;
|
|
298
|
+
color: ${styledVars.CAP_G05};
|
|
299
|
+
font-size: 1rem;
|
|
300
|
+
}
|
|
301
|
+
.cap-unified-select-no-result-icon {
|
|
302
|
+
font-size: 2.571rem;
|
|
303
|
+
margin-bottom: ${styledVars.SPACING_08};
|
|
304
|
+
color: ${styledVars.CAP_G06};
|
|
305
|
+
}
|
|
306
|
+
.cap-unified-select-no-result-text {
|
|
307
|
+
font-weight: 500;
|
|
308
|
+
}
|
|
309
|
+
.ant-tree-select:hover .ant-select-selector {
|
|
310
|
+
border-color: ${styledVars.CAP_G11};
|
|
311
|
+
}
|
|
312
|
+
.ant-tree-select-focused .ant-select-selector,
|
|
313
|
+
.ant-tree-select-open .ant-select-selector {
|
|
314
|
+
border-color: ${styledVars.CAP_G11};
|
|
315
|
+
box-shadow: none;
|
|
316
|
+
outline: none;
|
|
317
|
+
}
|
|
318
|
+
.cap-unified-select-search-container {
|
|
319
|
+
border-bottom: 0.071rem solid ${styledVars.CAP_G08} !important;
|
|
320
|
+
line-height: 2.857rem !important;
|
|
321
|
+
.ant-input-affix-wrapper {
|
|
322
|
+
padding-left: ${styledVars.SPACING_08};
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
.cap-unified-select-upload-button {
|
|
326
|
+
border: none;
|
|
327
|
+
padding-left: 1.071rem;
|
|
328
|
+
}
|
|
329
|
+
.cap-unified-select-confirm-container {
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
height: 3.429rem;
|
|
333
|
+
padding: 0.5rem;
|
|
334
|
+
border-top: 0.071rem solid ${styledVars.CAP_G08};
|
|
335
|
+
}
|
|
336
|
+
.cap-unified-select-confirm-button-group {
|
|
337
|
+
display: flex;
|
|
338
|
+
padding-left: ${styledVars.SPACING_08};
|
|
339
|
+
align-items: center;
|
|
340
|
+
.cap-unified-select-confirm-button {
|
|
341
|
+
background-color: ${styledVars.CAP_GREEN01};
|
|
342
|
+
height: 2.286rem;
|
|
343
|
+
width: 6.714rem;
|
|
344
|
+
}
|
|
345
|
+
.cap-unified-select-cancel-button {
|
|
346
|
+
border: transparent;
|
|
347
|
+
box-shadow: none;
|
|
348
|
+
width: 5.714rem;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
.cap-unified-select-selected-count {
|
|
352
|
+
display: flex;
|
|
353
|
+
margin-left: auto; /* pushes to far right */
|
|
354
|
+
font-size: 0.857rem;
|
|
355
|
+
font-weight: ${styledVars.FONT_WEIGHT_REGULAR};
|
|
356
|
+
line-height: 1.143rem;
|
|
357
|
+
color: ${styledVars.CAP_G04};
|
|
358
|
+
}
|
|
359
|
+
.cap-unified-select-search-container {
|
|
360
|
+
.ant-input-affix-wrapper {
|
|
361
|
+
border: none;
|
|
362
|
+
box-shadow: none;
|
|
363
|
+
border-radius: 0;
|
|
364
|
+
border-bottom: 0.071rem solid transparent;
|
|
365
|
+
transition: border-color 0.2s ease;
|
|
366
|
+
}
|
|
170
367
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
font-weight: 500;
|
|
175
|
-
}
|
|
368
|
+
.ant-input-affix-wrapper:hover {
|
|
369
|
+
border-bottom: 0.071rem solid ${styledVars.CAP_G11} !important;
|
|
370
|
+
box-shadow: none;
|
|
176
371
|
}
|
|
177
372
|
|
|
178
|
-
.ant-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
373
|
+
.ant-input-affix-wrapper:focus-within {
|
|
374
|
+
border-bottom: 0.071rem solid ${styledVars.CAP_G01} !important;
|
|
375
|
+
box-shadow: none;
|
|
376
|
+
outline: none;
|
|
182
377
|
}
|
|
183
378
|
|
|
184
|
-
.ant-
|
|
185
|
-
|
|
379
|
+
.ant-input {
|
|
380
|
+
border: none !important;
|
|
381
|
+
box-shadow: none !important;
|
|
186
382
|
}
|
|
187
383
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
384
|
+
.cap-unified-select-tree-clear-container{
|
|
385
|
+
display: flex;
|
|
386
|
+
justify-content: center;
|
|
387
|
+
align-items: center;
|
|
388
|
+
height: 2.857rem;
|
|
389
|
+
border-top: 0.071rem solid #EBECF0;
|
|
390
|
+
cursor: pointer;
|
|
391
|
+
color: ${styledVars.CAP_G01};
|
|
392
|
+
&:hover{
|
|
393
|
+
background-color: ${styledVars.CAP_G08};
|
|
194
394
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
line-height: 26px;
|
|
395
|
+
.cap-unified-select-tree-clear-label{
|
|
396
|
+
font-size: 1rem;
|
|
397
|
+
font-weight: ${styledVars.FONT_WEIGHT_REGULAR};
|
|
199
398
|
}
|
|
200
399
|
}
|
|
400
|
+
}
|
|
201
401
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
402
|
+
&.custom-popup-container {
|
|
403
|
+
/* Multi Select */
|
|
404
|
+
.multiSelect-popup-container {
|
|
405
|
+
.ant-select-tree-list {
|
|
406
|
+
.ant-select-tree-treenode-leaf {
|
|
407
|
+
.ant-select-tree-switcher-noop {
|
|
408
|
+
display: none;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
206
411
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
height: 20px;
|
|
210
|
-
line-height: 18px;
|
|
412
|
+
.ant-select-tree-indent {
|
|
413
|
+
margin-left: 1.071rem;
|
|
211
414
|
}
|
|
212
415
|
}
|
|
416
|
+
.multiTreeSelect-popup-container {
|
|
417
|
+
min-width: 20rem;
|
|
418
|
+
}
|
|
419
|
+
.treeSelect-popup-container {
|
|
420
|
+
min-width: 20rem;
|
|
421
|
+
}
|
|
213
422
|
|
|
214
|
-
/*
|
|
215
|
-
|
|
216
|
-
.ant-select-
|
|
217
|
-
.
|
|
218
|
-
|
|
423
|
+
/* Single Select */
|
|
424
|
+
.select-popup-container {
|
|
425
|
+
.ant-select-tree-list {
|
|
426
|
+
.ant-select-tree-treenode-leaf {
|
|
427
|
+
.ant-select-tree-switcher-noop {
|
|
428
|
+
display: none;
|
|
429
|
+
}
|
|
219
430
|
}
|
|
220
431
|
}
|
|
221
432
|
}
|
|
222
433
|
}
|
|
223
|
-
`;
|
|
434
|
+
`;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="18" viewBox="0 0 16 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.00031 13.0631V3.79511L4.46431 6.33111C4.07431 6.72111 3.44131 6.72111 3.05031 6.33111C2.65931 5.94011 2.65931 5.30711 3.05031 4.91611L7.29331 0.674109C7.68331 0.283109 8.31631 0.283109 8.70731 0.674109L12.9493 4.91611C13.3403 5.30711 13.3403 5.94011 12.9493 6.33111C12.5593 6.72111 11.9263 6.72111 11.5353 6.33111L9.00031 3.79511V13.0631C9.00031 13.5761 8.55231 13.9911 8.00031 13.9911C7.44731 13.9911 7.00031 13.5761 7.00031 13.0631ZM14.9975 12.9942C15.5495 12.9942 15.9975 13.4412 15.9975 13.9942V16.9302C15.9985 16.9502 15.9995 16.9712 15.9995 16.9912C15.9995 17.0342 15.9965 17.0772 15.9895 17.1192C15.9285 17.6122 15.5075 17.9942 14.9975 17.9942C14.9565 17.9942 14.9175 17.9922 14.8785 17.9872C14.8405 17.9902 14.8015 17.9912 14.7625 17.9912H1.23751C1.21394 17.9912 1.19217 17.9861 1.1704 17.981C1.15245 17.9768 1.13449 17.9726 1.11551 17.9712C1.10076 17.9725 1.0868 17.9767 1.07275 17.9809C1.05538 17.986 1.03786 17.9912 1.01851 17.9912C0.606512 17.9912 0.253512 17.7412 0.101512 17.3852C0.0365117 17.2642 -0.000488281 17.1312 -0.000488281 16.9912C-0.000488281 16.9769 0.00426292 16.9638 0.00903728 16.9506C0.013294 16.9388 0.017569 16.9269 0.0185117 16.9142V13.9912C0.0185117 13.4382 0.466512 12.9912 1.01851 12.9912C1.57151 12.9912 2.01851 13.4382 2.01851 13.9912V15.9912H13.9975V13.9942C13.9975 13.4412 14.4455 12.9942 14.9975 12.9942Z" fill="#2466EA"/>
|
|
3
|
+
</svg>
|
package/index.js
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
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';
|
|
6
|
+
export { default as CapSkeleton } from './CapSkeleton';
|
|
7
|
+
export { default as CapSpin } from './CapSpin';
|
|
3
8
|
export { default as CapTable } from './CapTable';
|
|
9
|
+
export { default as CapTooltip } from './CapTooltip';
|
|
10
|
+
export { default as CapTooltipWithInfo } from './CapTooltipWithInfo';
|
|
11
|
+
export { default as CapUnifiedSelect } from './CapUnifiedSelect';
|
|
4
12
|
|
|
5
13
|
// Export utilities
|
|
6
14
|
export { default as LocaleHoc } from './LocaleHoc';
|
|
7
15
|
|
|
8
16
|
// Export styled utilities
|
|
9
17
|
export * as styledVars from './styled/variables';
|
|
10
|
-
export { default as styled } from './styled';
|
|
18
|
+
export { default as styled } from './styled';
|
|
19
|
+
|
|
20
|
+
// Export utils
|
|
21
|
+
export * as Utils from './utils';
|
package/package.json
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capillarytech/blaze-ui",
|
|
3
3
|
"author": "Capillary Technologies",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"description": "Capillary UI component library with Ant Design v5",
|
|
6
|
-
"main": "./
|
|
7
|
-
"module": "./dist/esm/index.js",
|
|
8
|
-
"jsnext:main": "./dist/esm/index.js",
|
|
6
|
+
"main": "./index.js",
|
|
9
7
|
"sideEffects": [
|
|
10
8
|
"*.css",
|
|
11
9
|
"*.less",
|
|
@@ -26,16 +24,12 @@
|
|
|
26
24
|
"!**/tests"
|
|
27
25
|
],
|
|
28
26
|
"homepage": "https://github.com/Capillary/blaze-ui",
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
31
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
32
|
-
"react-intl": "^6.5.0"
|
|
33
|
-
},
|
|
34
27
|
"dependencies": {
|
|
35
|
-
"
|
|
36
|
-
"@ant-design/icons": "^5.2.6",
|
|
28
|
+
"@ant-design-v5/icons": "npm:@ant-design/icons@^5.2.6",
|
|
37
29
|
"@capillarytech/cap-ui-utils": "^3.0.4",
|
|
30
|
+
"antd-v5": "npm:antd@^5.26.7",
|
|
38
31
|
"prop-types": "^15.8.1",
|
|
32
|
+
"react-intl": "2.7.2",
|
|
39
33
|
"styled-components": "^5.3.11"
|
|
40
34
|
}
|
|
41
35
|
}
|
package/styled/variables.js
CHANGED
package/utils/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as withStyles } from './withStyles';
|