@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
@@ -1,216 +0,0 @@
1
- import styled from "styled-components";
2
- import CapCard from "../CapCard/index.js";
3
- import CapIcon from "../CapIcon/index.js";
4
- import InputFinal from "../CapInput/index.js";
5
- import CapModalWithHoc from "../CapModal/index.js";
6
- import CapRadioCard from "../CapRadioCard/index.js";
7
- import CapRow from "../CapRow/index.js";
8
- import { CAP_G07, CAP_SPACE_40, CAP_G09, CAP_SPACE_12, CAP_SPACE_16, CAP_SPACE_20, CAP_G05, CAP_SPACE_32, CAP_SPACE_08, CAP_SPACE_04, CAP_WHITE, CAP_SPACE_24, CAP_PALE_GREY, CAP_YELLOW01 } from "../styles/_variables.js";
9
- const StyledDiv = styled.div`
10
- display: flex;
11
- flex-flow: nowrap;
12
- min-width: 85vw;
13
- `;
14
- const SideBar = styled.div`
15
- width: 258px;
16
- margin-right: 17px;
17
- border: 1px solid ${CAP_G07};
18
- `;
19
- const TemplatesAndSearchContainer = styled.div`
20
- width: ${(props) => props.width};
21
- `;
22
- const TemplatesContainer = styled(CapRow)`
23
- max-height: ${(props) => props == null ? void 0 : props.maxHeight};
24
- overflow-y: scroll;
25
- scroll-behavior: smooth;
26
- `;
27
- const CategoryContainer = styled.div`
28
- display: flex;
29
- align-items: center;
30
- justify-content: space-between;
31
- height: ${CAP_SPACE_40};
32
- background-color: ${(props) => (props == null ? void 0 : props.selected) && CAP_G09};
33
- padding: ${CAP_SPACE_12} ${CAP_SPACE_16} ${CAP_SPACE_12} ${CAP_SPACE_20};
34
- border-left: ${(props) => `4px solid ${(props == null ? void 0 : props.color) || CAP_G05}`};
35
- cursor: pointer;
36
- `;
37
- const SearchBox = styled(InputFinal.Search)`
38
- .ant-input.ant-input-lg {
39
- height: ${CAP_SPACE_32};
40
- }
41
- width: 278px;
42
- margin-bottom: ${CAP_SPACE_12};
43
- margin-left: 6px;
44
- `;
45
- const TemplateIcon = styled(CapIcon)`
46
- &.cap-icon-v2 {
47
- font-size: 13px;
48
- }
49
- `;
50
- const StrategyTemplate = styled(CapRadioCard)`
51
- &.ant-radio-group {
52
- .ant-radio-button-wrapper {
53
- &.template-disabled {
54
- opacity: 0.5;
55
- }
56
- .ant-card.ant-card-bordered {
57
- border-left: ${(props) => `4px solid ${(props == null ? void 0 : props.borderColor) || CAP_G05}`};
58
- }
59
- .card-header-title {
60
- max-width: 200px;
61
- text-overflow: ellipsis;
62
- overflow: hidden;
63
- white-space: nowrap;
64
- }
65
- .coming-soon-tag {
66
- display: none;
67
- }
68
- :hover {
69
- opacity: 1;
70
- .coming-soon-tag {
71
- display: inline-flex;
72
- height: auto;
73
- }
74
- .card-header-title {
75
- margin-right: 2px;
76
- }
77
- .card-available {
78
- max-width: 200px;
79
- }
80
- }
81
- .icon-container {
82
- height: ${CAP_SPACE_40};
83
- width: ${CAP_SPACE_40};
84
- border-radius: ${CAP_SPACE_16};
85
- .div-icon {
86
- left: 32%;
87
- top: 21%;
88
- .cap-icon-v2-add {
89
- display: block;
90
- margin-left: 1px;
91
- margin-top: 6px;
92
- }
93
- }
94
- }
95
- .radio-card-icon {
96
- width: ${CAP_SPACE_40};
97
- height: ${CAP_SPACE_40};
98
- margin-right: ${CAP_SPACE_08};
99
- }
100
- }
101
- .ant-card {
102
- div.ant-card-body {
103
- display: flex;
104
- align-items: center;
105
- flex-wrap: wrap;
106
- height: auto;
107
- padding: ${CAP_SPACE_08} ${CAP_SPACE_08} ${CAP_SPACE_04} ${CAP_SPACE_12};
108
- div.radio-card-content-container {
109
- width: 203px;
110
- }
111
- .card-content {
112
- max-height: 45px;
113
- }
114
- .card-header-row {
115
- width: 208px;
116
- flex-flow: nowrap;
117
- }
118
- .custom-template {
119
- margin-left: ${CAP_SPACE_08};
120
- .title-desc-container {
121
- width: 196px;
122
- }
123
- }
124
- .strategy-icon {
125
- display: flex;
126
- align-items: center;
127
- justify-content: center;
128
- height: ${CAP_SPACE_40};
129
- width: ${CAP_SPACE_40};
130
- margin-top: -8px;
131
- margin-left: -12px;
132
- svg {
133
- width: ${CAP_SPACE_40};
134
- height: ${CAP_SPACE_40};
135
- }
136
- .text-label {
137
- font-weight: 500;
138
- text-transform: uppercase;
139
- }
140
- .selected {
141
- color: ${CAP_WHITE};
142
- }
143
- }
144
- }
145
- }
146
- }
147
- `;
148
- const TemplatesModal = styled(CapModalWithHoc)`
149
- .ant-modal-content {
150
- width: 737px;
151
- height: 274px;
152
- right: 50%;
153
- div.ant-modal-body {
154
- padding: 24px 24px 22px 24px;
155
- }
156
- .modal-image {
157
- width: 243px;
158
- height: 220px;
159
- }
160
- .modal-info-content {
161
- width: 398px;
162
- margin-right: ${CAP_SPACE_24};
163
- }
164
- .ant-modal-close-x {
165
- margin-top: ${CAP_SPACE_08};
166
- }
167
- .ant-modal-footer {
168
- display: none;
169
- }
170
- }
171
- `;
172
- const StyledCapCard = styled(CapCard)`
173
- &.ant-card.cap-card-v2 {
174
- width: 92px;
175
- height: 86px;
176
- div.ant-card-head {
177
- max-height: 39px;
178
- min-height: 39px;
179
- text-align: center;
180
- background-color: ${CAP_PALE_GREY};
181
- .ant-card-head-title {
182
- padding: ${CAP_SPACE_08} 0;
183
- }
184
- }
185
- div.ant-card-body {
186
- height: 47px;
187
- margin-top: ${CAP_SPACE_08};
188
- padding: 9px 10px 6px 10px;
189
- text-align: center;
190
- }
191
- .cap-icon-v2 {
192
- svg {
193
- height: ${CAP_SPACE_24};
194
- width: ${CAP_SPACE_24};
195
- color: #c7d8fb;
196
- }
197
- }
198
- }
199
- `;
200
- const PremiumIcon = styled(CapIcon)`
201
- margin-left: ${CAP_SPACE_04};
202
- color: ${CAP_YELLOW01};
203
- `;
204
- export {
205
- CategoryContainer,
206
- PremiumIcon,
207
- SearchBox,
208
- SideBar,
209
- StrategyTemplate,
210
- StyledCapCard,
211
- StyledDiv,
212
- TemplateIcon,
213
- TemplatesAndSearchContainer,
214
- TemplatesContainer,
215
- TemplatesModal
216
- };
File without changes