@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.
Files changed (58) hide show
  1. package/CapCustomCheckboxList/styles.css +3 -3
  2. package/CapCustomCheckboxList/styles.scss +7 -8
  3. package/CapMobileDatePicker/index.d.ts +3 -2
  4. package/CapMobileDatePicker/index.d.ts.map +1 -1
  5. package/CapMobileDatePicker/index.js +13 -3
  6. package/CapMobileDatePicker/messages.d.ts +9 -0
  7. package/CapMobileDatePicker/messages.d.ts.map +1 -0
  8. package/CapMobileDatePicker/messages.js +12 -0
  9. package/CapMobileDatePicker/types.d.ts +6 -0
  10. package/CapMobileDatePicker/types.d.ts.map +1 -1
  11. package/CapPopoverTree/index.d.ts +40 -3
  12. package/CapPopoverTree/index.d.ts.map +1 -1
  13. package/CapPopoverTree/index.js +82 -72
  14. package/CapPopoverTree/style.d.ts +1 -5
  15. package/CapPopoverTree/style.d.ts.map +1 -1
  16. package/CapPopoverTree/styles.css +18 -119
  17. package/CapPopoverTree/styles.scss +31 -179
  18. package/CapRadioCard/index.d.ts.map +1 -1
  19. package/CapRadioCard/index.js +52 -20
  20. package/CapRadioCard/styles.css +25 -25
  21. package/CapRadioCard/styles.module.scss.js +14 -40
  22. package/CapRadioCard/styles.scss +20 -20
  23. package/CapRadioCard/types.d.ts +20 -0
  24. package/CapRadioCard/types.d.ts.map +1 -1
  25. package/CapSelectFilter/index.d.ts.map +1 -1
  26. package/CapSelectFilter/index.js +10 -11
  27. package/CapSelectFilter/styles.css +11 -10
  28. package/CapSelectFilter/styles.module.scss.js +8 -10
  29. package/CapSelectFilter/styles.scss +11 -8
  30. package/CapSelectFilter/types.d.ts +1 -1
  31. package/CapSelectFilter/types.d.ts.map +1 -1
  32. package/CapStaticTemplates/index.d.ts +3 -1
  33. package/CapStaticTemplates/index.d.ts.map +1 -1
  34. package/CapStaticTemplates/index.js +185 -144
  35. package/CapStaticTemplates/messages.d.ts +32 -0
  36. package/CapStaticTemplates/messages.d.ts.map +1 -0
  37. package/CapStaticTemplates/messages.js +35 -0
  38. package/CapStaticTemplates/styles.css +220 -0
  39. package/CapStaticTemplates/styles.module.scss.js +55 -0
  40. package/CapStaticTemplates/styles.scss +291 -0
  41. package/CapStaticTemplates/tests/CapStaticTemplates.mockData.d.ts +54 -0
  42. package/CapStaticTemplates/tests/CapStaticTemplates.mockData.d.ts.map +1 -0
  43. package/CapStaticTemplates/types.d.ts +97 -0
  44. package/CapStaticTemplates/types.d.ts.map +1 -0
  45. package/index.d.ts +2 -2
  46. package/index.d.ts.map +1 -1
  47. package/index.js +44 -44
  48. package/package.json +1 -1
  49. package/styles/_variables.scss +2 -0
  50. package/CapPopoverTree/styles.module.scss.js +0 -26
  51. package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts +0 -22
  52. package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts.map +0 -1
  53. package/CapPopoverTree/types.d.ts +0 -62
  54. package/CapPopoverTree/types.d.ts.map +0 -1
  55. package/CapStaticTemplates/style.d.ts +0 -13
  56. package/CapStaticTemplates/style.d.ts.map +0 -1
  57. package/CapStaticTemplates/style.js +0 -216
  58. /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
- width: 23.857rem; // 334px / 14
143
- .ant-popover-content {
144
- padding: 0;
145
- min-height: 12.571rem; // 176px / 14
146
- }
147
-
148
- .ant-popover-inner-content {
149
- padding: 0 0 $CAP_SPACE_12 0;
150
- }
151
-
152
- .search-and-tree-wrapper {
153
- display: block;
154
-
155
- .ant-spin-container {
156
- width: 100%;
157
- }
158
- }
159
-
160
- .search-tree-node {
161
- &.ant-input-affix-wrapper {
162
- width: 100%;
163
- padding: 0.571rem $CAP_SPACE_12; // 8px 12px / 14
164
- border-bottom: 0.071rem solid $CAP_G07; // 1px / 14
165
-
166
- .ant-input {
167
- margin-left: 0.286rem; // 4px / 14
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
- .ant-tooltip-inner {
185
- width: 27.571rem; // 386px / 14
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,6CAyEtC;IAEF,MAAM;CAmCP;AAED,eAAe,YAAY,CAAC"}
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"}
@@ -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 { cardHeight, cardWidth, selected, defaultValue, size } = this.props;
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["radioButtonWrapper"],
64
+ styles["radio-button-wrapper"],
50
65
  {
51
- [styles["customDisableRadioButton"]]: customDisableClass,
52
- [styles["disabledWrapper"]]: disabled
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(CapIcon, { type: "check-filled", className: styles["radioCardChecked"] }),
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["radioCardIcon"], children: /* @__PURE__ */ jsx(
82
+ icon && /* @__PURE__ */ jsx("div", { className: classNames(styles["radio-card-icon"], iconWrapperClassName), children: /* @__PURE__ */ jsx(
61
83
  "div",
62
84
  {
63
- className: classNames(styles["iconContainer"], {
64
- [styles["greenColor"]]: isChecked && !isSmall && !disabled
65
- }),
66
- children: /* @__PURE__ */ jsx("div", { className: styles["divIcon"], children: icon })
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("div", { className: styles["radioCardContentContainer"], children: [
70
- /* @__PURE__ */ jsx("div", { className: styles["radioCardHeader"], children: /* @__PURE__ */ jsx(CapHeadingWithStatic, { type: "h4", className: classNames(titleClassName), children: title }) }),
71
- /* @__PURE__ */ jsxs("div", { className: styles["radioCardContent"], children: [
72
- " ",
73
- content
74
- ] })
75
- ] }),
76
- infoIconDescription && /* @__PURE__ */ jsx("div", { className: styles["infoIconWrapper"], children: /* @__PURE__ */ jsx(CapTooltipWithInfo, { title: infoIconDescription }) }),
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["capRadioCardV2"],
133
+ styles["cap-radioCard-v2"],
102
134
  {
103
135
  [styles["smallRadioCard"]]: size === "small"
104
136
  },
@@ -6,39 +6,39 @@
6
6
  /* Border Width */
7
7
  /* Transition */
8
8
  /* Timezones Footer */
9
- .capRadioCardV2 .radioCardContentContainer {
9
+ .cap-radioCard-v2 .radio-card-content-container {
10
10
  width: 100%;
11
11
  }
12
- .capRadioCardV2 .radioCardContent,
13
- .capRadioCardV2 .radioCardHeader {
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
- .capRadioCardV2 .radioCardIcon {
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
- .capRadioCardV2 .radioCardChecked {
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
- .capRadioCardV2 .ant-radio-button-wrapper-checked .radioCardChecked {
32
+ .cap-radioCard-v2 .ant-radio-button-wrapper-checked .radio-card-checked {
33
33
  display: block;
34
34
  z-index: 1;
35
35
  }
36
- .capRadioCardV2 .divIcon {
36
+ .cap-radioCard-v2 .div-icon {
37
37
  position: absolute;
38
38
  top: 25%;
39
39
  left: 25%;
40
40
  }
41
- .capRadioCardV2 .iconContainer {
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
- .capRadioCardV2 .iconContainer.greenColor {
52
+ .cap-radioCard-v2 .icon-container.green-color {
53
53
  background-color: #47af46;
54
54
  color: #ffffff;
55
55
  }
56
- .capRadioCardV2 .radioButtonWrapper {
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
- .capRadioCardV2 .disabledWrapper {
67
+ .cap-radioCard-v2 .disabled-wrapper {
68
68
  opacity: 0.5;
69
69
  }
70
- .capRadioCardV2 .disabledWrapper.customDisableRadioButton {
70
+ .cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button {
71
71
  border: unset;
72
72
  max-height: 5.357rem;
73
73
  }
74
- .capRadioCardV2 .disabledWrapper.customDisableRadioButton .radioCardChecked {
74
+ .cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button .radio-card-checked {
75
75
  display: none;
76
76
  }
77
- .capRadioCardV2 .disabledWrapper.customDisableRadioButton .ant-card-body {
77
+ .cap-radioCard-v2 .disabled-wrapper.custom-disable-radio-button .ant-card-body {
78
78
  padding: unset;
79
79
  }
80
- .capRadioCardV2 .customDisableRadioButton {
80
+ .cap-radioCard-v2 .custom-disable-radio-button {
81
81
  border: unset;
82
82
  max-height: 5.357rem;
83
83
  }
84
- .capRadioCardV2 .customDisableRadioButton .ant-card-body {
84
+ .cap-radioCard-v2 .custom-disable-radio-button .ant-card-body {
85
85
  padding: unset;
86
86
  }
87
- .capRadioCardV2 .ant-card-body {
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
- .capRadioCardV2 .infoIconWrapper {
93
+ .cap-radioCard-v2 .info-icon-wrapper {
94
94
  position: absolute;
95
95
  top: 1.142rem;
96
96
  right: 1.142rem;
97
97
  }
98
- .capRadioCardV2 .ant-card {
98
+ .cap-radioCard-v2 .ant-card {
99
99
  height: 100%;
100
100
  border: none;
101
101
  }
102
- .capRadioCardV2.smallRadioCard .iconContainer {
102
+ .cap-radioCard-v2.smallRadioCard .icon-container {
103
103
  padding-right: unset;
104
104
  background-color: unset;
105
105
  }
106
- .capRadioCardV2.smallRadioCard .radioCardIcon {
106
+ .cap-radioCard-v2.smallRadioCard .radio-card-icon {
107
107
  height: 1.428rem;
108
108
  width: 1.714rem;
109
109
  }
110
- .capRadioCardV2.smallRadioCard .divIcon {
110
+ .cap-radioCard-v2.smallRadioCard .div-icon {
111
111
  top: 0%;
112
112
  left: 0%;
113
113
  }
114
- .capRadioCardV2.smallRadioCard .radioButtonWrapper {
114
+ .cap-radioCard-v2.smallRadioCard .radio-button-wrapper {
115
115
  margin: 0.428rem 0.857rem 0.428rem 0;
116
116
  }
117
- .capRadioCardV2.smallRadioCard .radioButtonWrapper:nth-child(3n) {
117
+ .cap-radioCard-v2.smallRadioCard .radio-button-wrapper:nth-child(3n) {
118
118
  margin-right: 0;
119
119
  }
120
- .capRadioCardV2.smallRadioCard .ant-card-body {
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 capRadioCardV2 = "capRadioCardV2";
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
- capRadioCardV2,
17
- radioCardContentContainer,
18
- radioCardContent,
19
- radioCardHeader,
20
- radioCardIcon,
21
- radioCardChecked,
22
- divIcon,
23
- iconContainer,
24
- greenColor,
25
- radioButtonWrapper,
26
- disabledWrapper,
27
- customDisableRadioButton,
28
- infoIconWrapper,
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
  };
@@ -1,12 +1,12 @@
1
1
  @import '../styles/_variables.scss';
2
2
 
3
- .capRadioCardV2 {
4
- .radioCardContentContainer {
3
+ .cap-radioCard-v2 {
4
+ .radio-card-content-container {
5
5
  width: 100%;
6
6
  }
7
7
 
8
- .radioCardContent,
9
- .radioCardHeader {
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
- .radioCardIcon {
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
- .radioCardChecked {
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) .radioCardChecked {
31
+ :global(.ant-radio-button-wrapper-checked) .radio-card-checked {
32
32
  display: block;
33
33
  z-index: 1;
34
34
  }
35
35
 
36
- .divIcon {
36
+ .div-icon {
37
37
  position: absolute;
38
38
  top: 25%;
39
39
  left: 25%;
40
40
  }
41
41
 
42
- .iconContainer {
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
- &.greenColor {
53
+ &.green-color {
54
54
  background-color: map-get($CAP_PRIMARY, base);
55
55
  color: $CAP_WHITE;
56
56
  }
57
57
  }
58
58
 
59
- .radioButtonWrapper {
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
- .disabledWrapper {
71
+ .disabled-wrapper {
72
72
  opacity: 0.5;
73
73
 
74
- &.customDisableRadioButton {
74
+ &.custom-disable-radio-button {
75
75
  border: unset;
76
76
  max-height: 5.357rem;
77
77
 
78
- .radioCardChecked {
78
+ .radio-card-checked {
79
79
  display: none;
80
80
  }
81
81
 
@@ -85,7 +85,7 @@
85
85
  }
86
86
  }
87
87
 
88
- .customDisableRadioButton {
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
- .infoIconWrapper {
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
- .iconContainer {
116
+ .icon-container {
117
117
  padding-right: unset;
118
118
  background-color: unset;
119
119
  }
120
120
 
121
- .radioCardIcon {
121
+ .radio-card-icon {
122
122
  height: $CAP_SPACE_20;
123
123
  width: $CAP_SPACE_24;
124
124
  }
125
125
 
126
- .divIcon {
126
+ .div-icon {
127
127
  top: 0%;
128
128
  left: 0%;
129
129
  }
130
130
 
131
- .radioButtonWrapper {
131
+ .radio-button-wrapper {
132
132
  margin: $CAP_SPACE_06 $CAP_SPACE_12 $CAP_SPACE_06 0;
133
133
 
134
134
  &:nth-child(3n) {
@@ -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;