@capillarytech/blaze-ui 6.1.1 → 6.1.3
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/CapCustomCheckboxList/styles.css +3 -3
- package/CapCustomCheckboxList/styles.scss +7 -8
- package/CapMobileDatePicker/index.d.ts +3 -2
- package/CapMobileDatePicker/index.d.ts.map +1 -1
- package/CapMobileDatePicker/index.js +13 -3
- package/CapMobileDatePicker/messages.d.ts +9 -0
- package/CapMobileDatePicker/messages.d.ts.map +1 -0
- package/CapMobileDatePicker/messages.js +12 -0
- package/CapMobileDatePicker/types.d.ts +6 -0
- package/CapMobileDatePicker/types.d.ts.map +1 -1
- package/CapPopoverTree/index.d.ts +40 -3
- package/CapPopoverTree/index.d.ts.map +1 -1
- package/CapPopoverTree/index.js +82 -72
- package/CapPopoverTree/style.d.ts +1 -5
- package/CapPopoverTree/style.d.ts.map +1 -1
- package/CapPopoverTree/styles.css +18 -119
- package/CapPopoverTree/styles.scss +31 -179
- package/CapRadioCard/index.d.ts.map +1 -1
- package/CapRadioCard/index.js +52 -20
- package/CapRadioCard/styles.css +25 -25
- package/CapRadioCard/styles.module.scss.js +14 -40
- package/CapRadioCard/styles.scss +20 -20
- package/CapRadioCard/types.d.ts +20 -0
- package/CapRadioCard/types.d.ts.map +1 -1
- package/CapSelectFilter/index.d.ts.map +1 -1
- package/CapSelectFilter/index.js +10 -11
- package/CapSelectFilter/styles.css +11 -10
- package/CapSelectFilter/styles.module.scss.js +8 -10
- package/CapSelectFilter/styles.scss +11 -8
- package/CapSelectFilter/types.d.ts +1 -1
- package/CapSelectFilter/types.d.ts.map +1 -1
- package/CapStaticTemplates/index.d.ts +3 -1
- package/CapStaticTemplates/index.d.ts.map +1 -1
- package/CapStaticTemplates/index.js +185 -144
- package/CapStaticTemplates/messages.d.ts +32 -0
- package/CapStaticTemplates/messages.d.ts.map +1 -0
- package/CapStaticTemplates/messages.js +35 -0
- package/CapStaticTemplates/styles.css +220 -0
- package/CapStaticTemplates/styles.module.scss.js +55 -0
- package/CapStaticTemplates/styles.scss +291 -0
- package/CapStaticTemplates/tests/CapStaticTemplates.mockData.d.ts +54 -0
- package/CapStaticTemplates/tests/CapStaticTemplates.mockData.d.ts.map +1 -0
- package/CapStaticTemplates/types.d.ts +97 -0
- package/CapStaticTemplates/types.d.ts.map +1 -0
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +44 -44
- package/package.json +1 -1
- package/styles/_variables.scss +2 -0
- package/CapPopoverTree/styles.module.scss.js +0 -26
- package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts +0 -22
- package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts.map +0 -1
- package/CapPopoverTree/types.d.ts +0 -62
- package/CapPopoverTree/types.d.ts.map +0 -1
- package/CapStaticTemplates/style.d.ts +0 -13
- package/CapStaticTemplates/style.d.ts.map +0 -1
- package/CapStaticTemplates/style.js +0 -216
- /package/{CapPopoverTree → CapStaticTemplates}/types.js +0 -0
|
@@ -2,186 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
$popoverTree: cap-popover-tree-v2;
|
|
4
4
|
|
|
5
|
-
// ExpandIcon styles
|
|
6
|
-
.expandIcon {
|
|
7
|
-
margin-top: 0.714rem; // 10px / 14
|
|
8
|
-
z-index: 1;
|
|
9
|
-
|
|
10
|
-
svg {
|
|
11
|
-
height: 1.714rem; // 24px / 14
|
|
12
|
-
width: 1.714rem; // 24px / 14
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// StyledIcon styles
|
|
17
|
-
.styledIcon {
|
|
18
|
-
z-index: 1;
|
|
19
|
-
padding: 0.286rem; // 4px / 14
|
|
20
|
-
border-radius: 0.571rem; // 8px / 14
|
|
21
|
-
background: $CAP_G08;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// StyledCapHeading styles
|
|
25
|
-
.styledCapHeading {
|
|
26
|
-
display: inline;
|
|
27
|
-
margin-left: 0.286rem; // 4px / 14
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// StyledCapColumn styles
|
|
31
|
-
.styledCapColumn {
|
|
32
|
-
display: inline;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.matchedSearch {
|
|
36
|
-
font-weight: 500;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// StyledCapTree styles
|
|
40
|
-
.styledCapTree {
|
|
41
|
-
&.ant-tree.cap-tree-v2 {
|
|
42
|
-
min-height: 8.857rem; // 124px / 14
|
|
43
|
-
|
|
44
|
-
li {
|
|
45
|
-
padding: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ant-tree-node-content-wrapper {
|
|
49
|
-
height: 2.857rem; // 40px / 14
|
|
50
|
-
padding: 0.643rem 0 0.786rem 0.286rem; // 9px 0 11px 4px / 14
|
|
51
|
-
|
|
52
|
-
&:hover {
|
|
53
|
-
background-color: $BG_01;
|
|
54
|
-
margin-left: -2.857rem; // -40px / 14
|
|
55
|
-
padding-left: 3.143rem; // 44px / 14
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.ant-tree-node-selected {
|
|
60
|
-
.tree-node-title {
|
|
61
|
-
color: $CAP_COLOR_17; // #1d61ee
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ant-tree-node-content-wrapper-open {
|
|
66
|
-
margin-left: -2.857rem; // -40px / 14
|
|
67
|
-
padding-left: 3.143rem; // 44px / 14
|
|
68
|
-
width: 23.143rem; // 324px / 14
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.isExpanded {
|
|
72
|
-
.ant-tree-node-content-wrapper-open {
|
|
73
|
-
background: $CAP_PALE_GREY;
|
|
74
|
-
border-left: 0.143rem solid $FONT_COLOR_05; // 2px / 14
|
|
75
|
-
|
|
76
|
-
&:hover {
|
|
77
|
-
background-color: $CAP_PALE_GREY;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.tree-node-title {
|
|
81
|
-
color: $CAP_COLOR_17; // #1d61ee
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.tree-node-icon {
|
|
85
|
-
z-index: 1;
|
|
86
|
-
background: $FONT_COLOR_05;
|
|
87
|
-
color: $CAP_WHITE;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.ant-tree-child-tree {
|
|
93
|
-
.ant-tree-node-content-wrapper {
|
|
94
|
-
position: relative;
|
|
95
|
-
margin-left: 1.143rem; // 16px / 14
|
|
96
|
-
padding-left: 0;
|
|
97
|
-
width: 17.857rem; // 250px / 14
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ant-tree-node-selected {
|
|
101
|
-
background-color: $CAP_PALE_GREY;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.ant-tree-title {
|
|
105
|
-
margin-left: -0.857rem; // -12px / 14
|
|
106
|
-
|
|
107
|
-
.info-icon {
|
|
108
|
-
position: absolute;
|
|
109
|
-
right: 1.786rem; // 25px / 14
|
|
110
|
-
top: 1rem; // 14px / 14
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// IsExpanded styles - exported as separate class for CSS module
|
|
118
|
-
.isExpanded {
|
|
119
|
-
&.ant-tree.cap-tree-v2 {
|
|
120
|
-
.ant-tree-node-content-wrapper-open {
|
|
121
|
-
background: $CAP_PALE_GREY;
|
|
122
|
-
border-left: 0.143rem solid $FONT_COLOR_05; // 2px / 14
|
|
123
|
-
|
|
124
|
-
&:hover {
|
|
125
|
-
background-color: $CAP_PALE_GREY;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.tree-node-title {
|
|
129
|
-
color: $CAP_COLOR_17; // #1d61ee
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.tree-node-icon {
|
|
133
|
-
z-index: 1;
|
|
134
|
-
background: $FONT_COLOR_05;
|
|
135
|
-
color: $CAP_WHITE;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
5
|
.ant-popover.#{$popoverTree} {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
6
|
+
.ant-popover-content {
|
|
7
|
+
width: 334px;
|
|
8
|
+
padding: 0;
|
|
9
|
+
min-height: 176px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.divider {
|
|
13
|
+
border-top: 1px solid $CAP_G07;
|
|
14
|
+
}
|
|
15
|
+
.empty-data-text {
|
|
16
|
+
text-align: center;
|
|
17
|
+
margin-top: 12px;
|
|
18
|
+
padding: 10px 0;
|
|
19
|
+
}
|
|
20
|
+
.ant-popover-inner-content {
|
|
21
|
+
padding: 0 0 12px 0;
|
|
22
|
+
}
|
|
23
|
+
.search-tree-node {
|
|
24
|
+
.ant-input-affix-wrapper {
|
|
25
|
+
width: 300px;
|
|
26
|
+
margin-left: 12px;
|
|
27
|
+
.ant-input.ant-input-lg {
|
|
28
|
+
border: none !important;
|
|
29
|
+
border-radius: 0 !important;
|
|
30
|
+
margin-left: 8px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
169
33
|
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.divider {
|
|
173
|
-
display: none; // replaced by search input bottom border
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.empty-data-text {
|
|
177
|
-
text-align: center;
|
|
178
|
-
margin-top: 0.857rem; // 12px / 14
|
|
179
|
-
padding: 0.714rem $CAP_SPACE_12; // 10px 12px / 14
|
|
180
|
-
}
|
|
181
34
|
}
|
|
182
|
-
|
|
183
35
|
.add-condition-tooltip {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
36
|
+
.ant-tooltip-inner {
|
|
37
|
+
width: 386px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapRadioCard/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAKvF,cAAM,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IAC3D,YAAY,GAAI,GAAG,uBAAuB,UAExC;IAEF,cAAc,GAAI,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapRadioCard/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAKvF,cAAM,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IAC3D,YAAY,GAAI,GAAG,uBAAuB,UAExC;IAEF,cAAc,GAAI,MAAM,gBAAgB,6CAuGtC;IAEF,MAAM;CAmCP;AAED,eAAe,YAAY,CAAC"}
|
package/CapRadioCard/index.js
CHANGED
|
@@ -18,7 +18,22 @@ class CapRadioCard extends React.Component {
|
|
|
18
18
|
(_b = (_a = this.props).onChange) == null ? void 0 : _b.call(_a, e);
|
|
19
19
|
};
|
|
20
20
|
this.getRadioButton = (pane) => {
|
|
21
|
-
const {
|
|
21
|
+
const {
|
|
22
|
+
cardHeight,
|
|
23
|
+
cardWidth,
|
|
24
|
+
selected,
|
|
25
|
+
defaultValue,
|
|
26
|
+
size,
|
|
27
|
+
radioButtonWrapperClassName,
|
|
28
|
+
checkedIconClassName,
|
|
29
|
+
iconWrapperClassName,
|
|
30
|
+
iconContainerClassName,
|
|
31
|
+
divIconClassName,
|
|
32
|
+
contentContainerClassName,
|
|
33
|
+
headerClassName,
|
|
34
|
+
contentClassName,
|
|
35
|
+
infoIconWrapperClassName
|
|
36
|
+
} = this.props;
|
|
22
37
|
const {
|
|
23
38
|
content,
|
|
24
39
|
title,
|
|
@@ -46,34 +61,51 @@ class CapRadioCard extends React.Component {
|
|
|
46
61
|
disabled,
|
|
47
62
|
style: radioButtonStyle,
|
|
48
63
|
className: classNames(
|
|
49
|
-
styles["
|
|
64
|
+
styles["radio-button-wrapper"],
|
|
50
65
|
{
|
|
51
|
-
[styles["
|
|
52
|
-
[styles["
|
|
66
|
+
[styles["custom-disable-radio-button"]]: customDisableClass,
|
|
67
|
+
[styles["disabled-wrapper"]]: disabled
|
|
53
68
|
},
|
|
54
|
-
radioCardClassName
|
|
69
|
+
radioCardClassName,
|
|
70
|
+
radioButtonWrapperClassName
|
|
55
71
|
),
|
|
56
72
|
...restParams,
|
|
57
73
|
children: [
|
|
58
|
-
!customDisableClass && /* @__PURE__ */ jsx(
|
|
74
|
+
!customDisableClass && /* @__PURE__ */ jsx(
|
|
75
|
+
CapIcon,
|
|
76
|
+
{
|
|
77
|
+
type: "check-filled",
|
|
78
|
+
className: classNames(styles["radio-card-checked"], checkedIconClassName)
|
|
79
|
+
}
|
|
80
|
+
),
|
|
59
81
|
/* @__PURE__ */ jsxs(Card, { variant: "borderless", children: [
|
|
60
|
-
icon && /* @__PURE__ */ jsx("div", { className: styles["
|
|
82
|
+
icon && /* @__PURE__ */ jsx("div", { className: classNames(styles["radio-card-icon"], iconWrapperClassName), children: /* @__PURE__ */ jsx(
|
|
61
83
|
"div",
|
|
62
84
|
{
|
|
63
|
-
className: classNames(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
85
|
+
className: classNames(
|
|
86
|
+
styles["icon-container"],
|
|
87
|
+
{
|
|
88
|
+
[styles["green-color"]]: isChecked && !isSmall && !disabled
|
|
89
|
+
},
|
|
90
|
+
iconContainerClassName
|
|
91
|
+
),
|
|
92
|
+
children: /* @__PURE__ */ jsx("div", { className: classNames(styles["div-icon"], divIconClassName), children: icon })
|
|
67
93
|
}
|
|
68
94
|
) }),
|
|
69
|
-
/* @__PURE__ */ jsxs(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
95
|
+
/* @__PURE__ */ jsxs(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
className: classNames(
|
|
99
|
+
styles["radio-card-content-container"],
|
|
100
|
+
contentContainerClassName
|
|
101
|
+
),
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ jsx("div", { className: classNames(styles["radio-card-header"], headerClassName), children: /* @__PURE__ */ jsx(CapHeadingWithStatic, { type: "h4", className: classNames(titleClassName), children: title }) }),
|
|
104
|
+
/* @__PURE__ */ jsx("div", { className: classNames(styles["radio-card-content"], contentClassName), children: content })
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
infoIconDescription && /* @__PURE__ */ jsx("div", { className: classNames(styles["info-icon-wrapper"], infoIconWrapperClassName), children: /* @__PURE__ */ jsx(CapTooltipWithInfo, { title: infoIconDescription }) }),
|
|
77
109
|
customComponent
|
|
78
110
|
] })
|
|
79
111
|
]
|
|
@@ -98,7 +130,7 @@ class CapRadioCard extends React.Component {
|
|
|
98
130
|
...rest,
|
|
99
131
|
onChange: this.handleChange,
|
|
100
132
|
className: classNames(
|
|
101
|
-
styles["
|
|
133
|
+
styles["cap-radioCard-v2"],
|
|
102
134
|
{
|
|
103
135
|
[styles["smallRadioCard"]]: size === "small"
|
|
104
136
|
},
|
package/CapRadioCard/styles.css
CHANGED
|
@@ -6,39 +6,39 @@
|
|
|
6
6
|
/* Border Width */
|
|
7
7
|
/* Transition */
|
|
8
8
|
/* Timezones Footer */
|
|
9
|
-
.
|
|
9
|
+
.cap-radioCard-v2 .radio-card-content-container {
|
|
10
10
|
width: 100%;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
13
|
-
.
|
|
12
|
+
.cap-radioCard-v2 .radio-card-content,
|
|
13
|
+
.cap-radioCard-v2 .radio-card-header {
|
|
14
14
|
font-size: 0.857rem;
|
|
15
15
|
line-height: 1.17;
|
|
16
16
|
letter-spacing: normal;
|
|
17
17
|
color: #5e6c84;
|
|
18
18
|
padding-top: 0.285rem;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.cap-radioCard-v2 .radio-card-icon {
|
|
21
21
|
width: 3.429rem;
|
|
22
22
|
height: 3.429rem;
|
|
23
23
|
object-fit: contain;
|
|
24
24
|
margin-right: 1.714rem;
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.cap-radioCard-v2 .radio-card-checked {
|
|
27
27
|
position: absolute;
|
|
28
28
|
right: -0.429rem;
|
|
29
29
|
top: -0.857rem;
|
|
30
30
|
display: none;
|
|
31
31
|
}
|
|
32
|
-
.
|
|
32
|
+
.cap-radioCard-v2 .ant-radio-button-wrapper-checked .radio-card-checked {
|
|
33
33
|
display: block;
|
|
34
34
|
z-index: 1;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.cap-radioCard-v2 .div-icon {
|
|
37
37
|
position: absolute;
|
|
38
38
|
top: 25%;
|
|
39
39
|
left: 25%;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.cap-radioCard-v2 .icon-container {
|
|
42
42
|
padding-right: 1.714rem;
|
|
43
43
|
height: 3.429rem;
|
|
44
44
|
width: 3.429rem;
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
border-radius: 1.286rem;
|
|
50
50
|
position: relative;
|
|
51
51
|
}
|
|
52
|
-
.
|
|
52
|
+
.cap-radioCard-v2 .icon-container.green-color {
|
|
53
53
|
background-color: #47af46;
|
|
54
54
|
color: #ffffff;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.cap-radioCard-v2 .radio-button-wrapper {
|
|
57
57
|
position: relative;
|
|
58
58
|
height: 120px;
|
|
59
59
|
width: 372px;
|
|
@@ -64,60 +64,60 @@
|
|
|
64
64
|
border-top-width: 1px;
|
|
65
65
|
vertical-align: top;
|
|
66
66
|
}
|
|
67
|
-
.
|
|
67
|
+
.cap-radioCard-v2 .disabled-wrapper {
|
|
68
68
|
opacity: 0.5;
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button {
|
|
71
71
|
border: unset;
|
|
72
72
|
max-height: 5.357rem;
|
|
73
73
|
}
|
|
74
|
-
.
|
|
74
|
+
.cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button .radio-card-checked {
|
|
75
75
|
display: none;
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button .ant-card-body {
|
|
78
78
|
padding: unset;
|
|
79
79
|
}
|
|
80
|
-
.
|
|
80
|
+
.cap-radioCard-v2 .custom-disable-radio-button {
|
|
81
81
|
border: unset;
|
|
82
82
|
max-height: 5.357rem;
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.cap-radioCard-v2 .custom-disable-radio-button .ant-card-body {
|
|
85
85
|
padding: unset;
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
.cap-radioCard-v2 .ant-card-body {
|
|
88
88
|
display: flex;
|
|
89
89
|
padding: 1.142rem;
|
|
90
90
|
height: 100%;
|
|
91
91
|
position: relative;
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.cap-radioCard-v2 .info-icon-wrapper {
|
|
94
94
|
position: absolute;
|
|
95
95
|
top: 1.142rem;
|
|
96
96
|
right: 1.142rem;
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.cap-radioCard-v2 .ant-card {
|
|
99
99
|
height: 100%;
|
|
100
100
|
border: none;
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.cap-radioCard-v2.smallRadioCard .icon-container {
|
|
103
103
|
padding-right: unset;
|
|
104
104
|
background-color: unset;
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.cap-radioCard-v2.smallRadioCard .radio-card-icon {
|
|
107
107
|
height: 1.428rem;
|
|
108
108
|
width: 1.714rem;
|
|
109
109
|
}
|
|
110
|
-
.
|
|
110
|
+
.cap-radioCard-v2.smallRadioCard .div-icon {
|
|
111
111
|
top: 0%;
|
|
112
112
|
left: 0%;
|
|
113
113
|
}
|
|
114
|
-
.
|
|
114
|
+
.cap-radioCard-v2.smallRadioCard .radio-button-wrapper {
|
|
115
115
|
margin: 0.428rem 0.857rem 0.428rem 0;
|
|
116
116
|
}
|
|
117
|
-
.
|
|
117
|
+
.cap-radioCard-v2.smallRadioCard .radio-button-wrapper:nth-child(3n) {
|
|
118
118
|
margin-right: 0;
|
|
119
119
|
}
|
|
120
|
-
.
|
|
120
|
+
.cap-radioCard-v2.smallRadioCard .ant-card-body {
|
|
121
121
|
padding: 0.857rem;
|
|
122
122
|
height: 48px;
|
|
123
123
|
}
|
|
@@ -1,47 +1,21 @@
|
|
|
1
|
-
import './styles.css';const
|
|
2
|
-
const radioCardContentContainer = "radioCardContentContainer";
|
|
3
|
-
const radioCardContent = "radioCardContent";
|
|
4
|
-
const radioCardHeader = "radioCardHeader";
|
|
5
|
-
const radioCardIcon = "radioCardIcon";
|
|
6
|
-
const radioCardChecked = "radioCardChecked";
|
|
7
|
-
const divIcon = "divIcon";
|
|
8
|
-
const iconContainer = "iconContainer";
|
|
9
|
-
const greenColor = "greenColor";
|
|
10
|
-
const radioButtonWrapper = "radioButtonWrapper";
|
|
11
|
-
const disabledWrapper = "disabledWrapper";
|
|
12
|
-
const customDisableRadioButton = "customDisableRadioButton";
|
|
13
|
-
const infoIconWrapper = "infoIconWrapper";
|
|
14
|
-
const smallRadioCard = "smallRadioCard";
|
|
1
|
+
import './styles.css';const smallRadioCard = "smallRadioCard";
|
|
15
2
|
const styles = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
3
|
+
"cap-radioCard-v2": "cap-radioCard-v2",
|
|
4
|
+
"radio-card-content-container": "radio-card-content-container",
|
|
5
|
+
"radio-card-content": "radio-card-content",
|
|
6
|
+
"radio-card-header": "radio-card-header",
|
|
7
|
+
"radio-card-icon": "radio-card-icon",
|
|
8
|
+
"radio-card-checked": "radio-card-checked",
|
|
9
|
+
"div-icon": "div-icon",
|
|
10
|
+
"icon-container": "icon-container",
|
|
11
|
+
"green-color": "green-color",
|
|
12
|
+
"radio-button-wrapper": "radio-button-wrapper",
|
|
13
|
+
"disabled-wrapper": "disabled-wrapper",
|
|
14
|
+
"custom-disable-radio-button": "custom-disable-radio-button",
|
|
15
|
+
"info-icon-wrapper": "info-icon-wrapper",
|
|
29
16
|
smallRadioCard
|
|
30
17
|
};
|
|
31
18
|
export {
|
|
32
|
-
capRadioCardV2,
|
|
33
|
-
customDisableRadioButton,
|
|
34
19
|
styles as default,
|
|
35
|
-
disabledWrapper,
|
|
36
|
-
divIcon,
|
|
37
|
-
greenColor,
|
|
38
|
-
iconContainer,
|
|
39
|
-
infoIconWrapper,
|
|
40
|
-
radioButtonWrapper,
|
|
41
|
-
radioCardChecked,
|
|
42
|
-
radioCardContent,
|
|
43
|
-
radioCardContentContainer,
|
|
44
|
-
radioCardHeader,
|
|
45
|
-
radioCardIcon,
|
|
46
20
|
smallRadioCard
|
|
47
21
|
};
|
package/CapRadioCard/styles.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@import '../styles/_variables.scss';
|
|
2
2
|
|
|
3
|
-
.
|
|
4
|
-
.
|
|
3
|
+
.cap-radioCard-v2 {
|
|
4
|
+
.radio-card-content-container {
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.radio-card-content,
|
|
9
|
+
.radio-card-header {
|
|
10
10
|
font-size: $FONT_SIZE_S;
|
|
11
11
|
line-height: 1.17;
|
|
12
12
|
letter-spacing: normal;
|
|
@@ -14,32 +14,32 @@
|
|
|
14
14
|
padding-top: $CAP_SPACE_04;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.radio-card-icon {
|
|
18
18
|
width: 3.429rem;
|
|
19
19
|
height: 3.429rem;
|
|
20
20
|
object-fit: contain;
|
|
21
21
|
margin-right: $CAP_SPACE_24;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.radio-card-checked {
|
|
25
25
|
position: absolute;
|
|
26
26
|
right: -0.429rem;
|
|
27
27
|
top: -0.857rem;
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:global(.ant-radio-button-wrapper-checked) .
|
|
31
|
+
:global(.ant-radio-button-wrapper-checked) .radio-card-checked {
|
|
32
32
|
display: block;
|
|
33
33
|
z-index: 1;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.div-icon {
|
|
37
37
|
position: absolute;
|
|
38
38
|
top: 25%;
|
|
39
39
|
left: 25%;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
42
|
+
.icon-container {
|
|
43
43
|
padding-right: $CAP_SPACE_24;
|
|
44
44
|
height: 3.429rem;
|
|
45
45
|
width: 3.429rem;
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
border-radius: 1.286rem;
|
|
51
51
|
position: relative;
|
|
52
52
|
|
|
53
|
-
&.
|
|
53
|
+
&.green-color {
|
|
54
54
|
background-color: map-get($CAP_PRIMARY, base);
|
|
55
55
|
color: $CAP_WHITE;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.
|
|
59
|
+
.radio-button-wrapper {
|
|
60
60
|
position: relative;
|
|
61
61
|
height: 120px;
|
|
62
62
|
width: 372px;
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
vertical-align: top;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.
|
|
71
|
+
.disabled-wrapper {
|
|
72
72
|
opacity: 0.5;
|
|
73
73
|
|
|
74
|
-
&.
|
|
74
|
+
&.custom-disable-radio-button {
|
|
75
75
|
border: unset;
|
|
76
76
|
max-height: 5.357rem;
|
|
77
77
|
|
|
78
|
-
.
|
|
78
|
+
.radio-card-checked {
|
|
79
79
|
display: none;
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
88
|
+
.custom-disable-radio-button {
|
|
89
89
|
border: unset;
|
|
90
90
|
max-height: 5.357rem;
|
|
91
91
|
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
position: relative;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.
|
|
104
|
+
.info-icon-wrapper {
|
|
105
105
|
position: absolute;
|
|
106
106
|
top: $CAP_SPACE_16;
|
|
107
107
|
right: $CAP_SPACE_16;
|
|
@@ -113,22 +113,22 @@
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
&.smallRadioCard {
|
|
116
|
-
.
|
|
116
|
+
.icon-container {
|
|
117
117
|
padding-right: unset;
|
|
118
118
|
background-color: unset;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.
|
|
121
|
+
.radio-card-icon {
|
|
122
122
|
height: $CAP_SPACE_20;
|
|
123
123
|
width: $CAP_SPACE_24;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.
|
|
126
|
+
.div-icon {
|
|
127
127
|
top: 0%;
|
|
128
128
|
left: 0%;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
.
|
|
131
|
+
.radio-button-wrapper {
|
|
132
132
|
margin: $CAP_SPACE_06 $CAP_SPACE_12 $CAP_SPACE_06 0;
|
|
133
133
|
|
|
134
134
|
&:nth-child(3n) {
|
package/CapRadioCard/types.d.ts
CHANGED
|
@@ -20,6 +20,26 @@ export interface CapRadioCardPane {
|
|
|
20
20
|
}
|
|
21
21
|
export interface CapRadioCardProps extends Omit<React.ComponentProps<typeof Radio.Group>, 'size'> {
|
|
22
22
|
className?: string;
|
|
23
|
+
/** Root (RadioGroup) */
|
|
24
|
+
rootClassName?: string;
|
|
25
|
+
/** RadioButton wrapper */
|
|
26
|
+
radioButtonWrapperClassName?: string;
|
|
27
|
+
/** Checked icon */
|
|
28
|
+
checkedIconClassName?: string;
|
|
29
|
+
/** Icon wrapper div */
|
|
30
|
+
iconWrapperClassName?: string;
|
|
31
|
+
/** Icon container div */
|
|
32
|
+
iconContainerClassName?: string;
|
|
33
|
+
/** Div wrapping icon content */
|
|
34
|
+
divIconClassName?: string;
|
|
35
|
+
/** Content container */
|
|
36
|
+
contentContainerClassName?: string;
|
|
37
|
+
/** Header div */
|
|
38
|
+
headerClassName?: string;
|
|
39
|
+
/** Content div */
|
|
40
|
+
contentClassName?: string;
|
|
41
|
+
/** Info icon wrapper */
|
|
42
|
+
infoIconWrapperClassName?: string;
|
|
23
43
|
panes?: CapRadioCardPane[];
|
|
24
44
|
cardHeight?: number | string;
|
|
25
45
|
cardWidth?: number | string;
|