@doyourjob/gravity-ui-page-constructor 5.31.250 → 5.31.252
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/build/cjs/constructor-items.d.ts +1 -0
- package/build/cjs/constructor-items.js +1 -0
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +25 -2
- package/build/cjs/models/constructor-items/sub-blocks.js +1 -0
- package/build/cjs/schema/constants.d.ts +211 -2
- package/build/cjs/schema/constants.js +2 -1
- package/build/cjs/schema/validators/sub-blocks.d.ts +1 -0
- package/build/cjs/schema/validators/sub-blocks.js +1 -0
- package/build/cjs/sub-blocks/MiniCaseCard/MiniCaseCard.css +149 -0
- package/build/cjs/sub-blocks/MiniCaseCard/MiniCaseCard.d.ts +4 -0
- package/build/cjs/sub-blocks/MiniCaseCard/MiniCaseCard.js +54 -0
- package/build/cjs/sub-blocks/MiniCaseCard/schema.d.ts +211 -0
- package/build/cjs/sub-blocks/MiniCaseCard/schema.js +28 -0
- package/build/cjs/sub-blocks/index.d.ts +1 -0
- package/build/cjs/sub-blocks/index.js +3 -1
- package/build/cjs/text-transform/config.js +11 -0
- package/build/esm/constructor-items.d.ts +1 -0
- package/build/esm/constructor-items.js +2 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +25 -2
- package/build/esm/models/constructor-items/sub-blocks.js +1 -0
- package/build/esm/schema/constants.d.ts +211 -2
- package/build/esm/schema/constants.js +3 -2
- package/build/esm/schema/validators/sub-blocks.d.ts +1 -0
- package/build/esm/schema/validators/sub-blocks.js +1 -0
- package/build/esm/sub-blocks/MiniCaseCard/MiniCaseCard.css +149 -0
- package/build/esm/sub-blocks/MiniCaseCard/MiniCaseCard.d.ts +5 -0
- package/build/esm/sub-blocks/MiniCaseCard/MiniCaseCard.js +52 -0
- package/build/esm/sub-blocks/MiniCaseCard/schema.d.ts +211 -0
- package/build/esm/sub-blocks/MiniCaseCard/schema.js +25 -0
- package/build/esm/sub-blocks/index.d.ts +1 -0
- package/build/esm/sub-blocks/index.js +1 -0
- package/build/esm/text-transform/config.js +11 -0
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/sub-blocks.d.ts +25 -2
- package/server/models/constructor-items/sub-blocks.js +1 -0
- package/server/text-transform/config.js +11 -0
- package/widget/index.js +1 -1
|
@@ -87,6 +87,7 @@ export declare const subBlockMap: {
|
|
|
87
87
|
"feed-partner": ({ url, label, level, levelColorText, levelColorBackground, background, image, title, subtitle, className, tags, jumpOnHover, }: import("./models").FeedPartnerProps) => JSX.Element;
|
|
88
88
|
"case-study-card": import("react").MemoExoticComponent<(props: import("./models").CaseStudyCardProps) => JSX.Element>;
|
|
89
89
|
"story-card": import("react").FC<import("./models").StoryCardProps>;
|
|
90
|
+
"mini-case-card": import("react").FC<import("./models").MiniCaseCardProps>;
|
|
90
91
|
};
|
|
91
92
|
export declare const navItemMap: {
|
|
92
93
|
button: import("react").FC<Pick<import("./navigation").NavigationItemProps, "className"> & import("./models").ButtonProps>;
|
|
@@ -96,6 +96,7 @@ exports.subBlockMap = {
|
|
|
96
96
|
[models_1.SubBlockType.FeedPartner]: sub_blocks_1.FeedPartner,
|
|
97
97
|
[models_1.SubBlockType.CaseStudyCard]: sub_blocks_1.CaseStudyCard,
|
|
98
98
|
[models_1.SubBlockType.StoryCard]: sub_blocks_1.StoryCard,
|
|
99
|
+
[models_1.SubBlockType.MiniCaseCard]: sub_blocks_1.MiniCaseCard,
|
|
99
100
|
};
|
|
100
101
|
exports.navItemMap = {
|
|
101
102
|
[models_1.NavigationItemType.Button]: NavigationItem_1.NavigationButton,
|
|
@@ -30,7 +30,8 @@ export declare enum SubBlockType {
|
|
|
30
30
|
NewPostCard = "new-post-card",
|
|
31
31
|
FeedCard = "feed-card",
|
|
32
32
|
EventPersonCard = "event-person-card",
|
|
33
|
-
StoryCard = "story-card"
|
|
33
|
+
StoryCard = "story-card",
|
|
34
|
+
MiniCaseCard = "mini-case-card"
|
|
34
35
|
}
|
|
35
36
|
export declare enum IconPosition {
|
|
36
37
|
Top = "top",
|
|
@@ -322,6 +323,25 @@ export interface StoryCardProps {
|
|
|
322
323
|
}[];
|
|
323
324
|
background?: string;
|
|
324
325
|
}
|
|
326
|
+
export interface MiniCaseCardProps {
|
|
327
|
+
title?: string;
|
|
328
|
+
tagUsecase?: string[];
|
|
329
|
+
tagIndustry?: string[];
|
|
330
|
+
showStory?: boolean;
|
|
331
|
+
showQuote?: boolean;
|
|
332
|
+
text?: string;
|
|
333
|
+
quote?: string;
|
|
334
|
+
logo?: string;
|
|
335
|
+
avatar?: string;
|
|
336
|
+
author?: string;
|
|
337
|
+
position?: string;
|
|
338
|
+
data?: {
|
|
339
|
+
value: string;
|
|
340
|
+
label?: string;
|
|
341
|
+
}[];
|
|
342
|
+
background?: string;
|
|
343
|
+
backgroundData?: string;
|
|
344
|
+
}
|
|
325
345
|
export type DividerModel = {
|
|
326
346
|
type: SubBlockType.Divider;
|
|
327
347
|
} & DividerProps;
|
|
@@ -383,6 +403,9 @@ export type CaseStudyCardModel = {
|
|
|
383
403
|
export type StoryCardModel = {
|
|
384
404
|
type: SubBlockType.StoryCard;
|
|
385
405
|
} & StoryCardProps;
|
|
386
|
-
export type
|
|
406
|
+
export type MiniCaseCardModel = {
|
|
407
|
+
type: SubBlockType.MiniCaseCard;
|
|
408
|
+
} & MiniCaseCardProps;
|
|
409
|
+
export type SubBlockModels = DividerModel | QuoteModel | PriceDetailedModel | MediaCardModel | BackgroundCardModel | HubspotFormModel | BannerCardModel | BasicCardModel | PriceCardModel | LayoutItemModel | NewsCardModel | ImageCardModel | PostCardModel | NewPostCardModel | FeedCardModel | EventPersonCardModel | AttachmentCardModel | FeedPartnerModel | CaseStudyCardModel | StoryCardModel | MiniCaseCardModel;
|
|
387
410
|
export type SubBlock = SubBlockModels;
|
|
388
411
|
export {};
|
|
@@ -29,6 +29,7 @@ var SubBlockType;
|
|
|
29
29
|
SubBlockType["FeedCard"] = "feed-card";
|
|
30
30
|
SubBlockType["EventPersonCard"] = "event-person-card";
|
|
31
31
|
SubBlockType["StoryCard"] = "story-card";
|
|
32
|
+
SubBlockType["MiniCaseCard"] = "mini-case-card";
|
|
32
33
|
})(SubBlockType = exports.SubBlockType || (exports.SubBlockType = {}));
|
|
33
34
|
var IconPosition;
|
|
34
35
|
(function (IconPosition) {
|
|
@@ -36,6 +36,215 @@ export declare const cardSchemas: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
'mini-case-card': {
|
|
40
|
+
additionalProperties: boolean;
|
|
41
|
+
required: never[];
|
|
42
|
+
properties: {
|
|
43
|
+
title: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
tagUsecase: {
|
|
47
|
+
type: string;
|
|
48
|
+
items: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
tagIndustry: {
|
|
53
|
+
type: string;
|
|
54
|
+
items: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
showStory: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
showQuote: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
text: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
quote: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
logo: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
avatar: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
author: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
position: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
data: {
|
|
83
|
+
type: string;
|
|
84
|
+
items: {
|
|
85
|
+
type: string;
|
|
86
|
+
additionalProperties: boolean;
|
|
87
|
+
required: string[];
|
|
88
|
+
properties: {
|
|
89
|
+
value: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
label: {
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
background: {
|
|
99
|
+
type: string;
|
|
100
|
+
};
|
|
101
|
+
backgroundData: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
anchor: {
|
|
105
|
+
type: string;
|
|
106
|
+
additionalProperties: boolean;
|
|
107
|
+
required: string[];
|
|
108
|
+
properties: {
|
|
109
|
+
text: {
|
|
110
|
+
type: string;
|
|
111
|
+
contentType: string;
|
|
112
|
+
};
|
|
113
|
+
url: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
urlTitle: {
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
visibility: {
|
|
122
|
+
oneOf: ({
|
|
123
|
+
type: string;
|
|
124
|
+
enum: string[];
|
|
125
|
+
additionalProperties?: undefined;
|
|
126
|
+
properties?: undefined;
|
|
127
|
+
} | {
|
|
128
|
+
type: string;
|
|
129
|
+
additionalProperties: boolean;
|
|
130
|
+
properties: {
|
|
131
|
+
xs: {
|
|
132
|
+
type: string;
|
|
133
|
+
};
|
|
134
|
+
sm: {
|
|
135
|
+
type: string;
|
|
136
|
+
};
|
|
137
|
+
md: {
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
lg: {
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
xl: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
xxl: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
enum?: undefined;
|
|
151
|
+
})[];
|
|
152
|
+
};
|
|
153
|
+
visible: {
|
|
154
|
+
type: string;
|
|
155
|
+
enum: string[];
|
|
156
|
+
};
|
|
157
|
+
hidden: {
|
|
158
|
+
type: string;
|
|
159
|
+
enum: string[];
|
|
160
|
+
};
|
|
161
|
+
resetPaddings: {
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
context: {
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
167
|
+
indent: {
|
|
168
|
+
type: string;
|
|
169
|
+
additionalProperties: boolean;
|
|
170
|
+
properties: {
|
|
171
|
+
top: {
|
|
172
|
+
enum: string[];
|
|
173
|
+
};
|
|
174
|
+
bottom: {
|
|
175
|
+
enum: string[];
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
backgroundFull: {
|
|
180
|
+
type: string;
|
|
181
|
+
};
|
|
182
|
+
visibilityFilter: {
|
|
183
|
+
oneOf: ({
|
|
184
|
+
type: string;
|
|
185
|
+
items?: undefined;
|
|
186
|
+
} | {
|
|
187
|
+
type: string;
|
|
188
|
+
items: {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
})[];
|
|
192
|
+
};
|
|
193
|
+
blockUnicorn: {
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
blockUnicornSdkUrl: {
|
|
197
|
+
type: string;
|
|
198
|
+
};
|
|
199
|
+
blockBackground: {
|
|
200
|
+
oneOf: ({
|
|
201
|
+
type: string;
|
|
202
|
+
additionalProperties?: undefined;
|
|
203
|
+
properties?: undefined;
|
|
204
|
+
} | {
|
|
205
|
+
type: string;
|
|
206
|
+
additionalProperties: boolean;
|
|
207
|
+
properties: {
|
|
208
|
+
color: {
|
|
209
|
+
type: string;
|
|
210
|
+
};
|
|
211
|
+
image: {
|
|
212
|
+
type: string;
|
|
213
|
+
};
|
|
214
|
+
size: {
|
|
215
|
+
type: string;
|
|
216
|
+
};
|
|
217
|
+
repeat: {
|
|
218
|
+
type: string;
|
|
219
|
+
};
|
|
220
|
+
position: {
|
|
221
|
+
type: string;
|
|
222
|
+
};
|
|
223
|
+
attachment: {
|
|
224
|
+
type: string;
|
|
225
|
+
};
|
|
226
|
+
clip: {
|
|
227
|
+
type: string;
|
|
228
|
+
};
|
|
229
|
+
origin: {
|
|
230
|
+
type: string;
|
|
231
|
+
};
|
|
232
|
+
blendMode: {
|
|
233
|
+
type: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
})[];
|
|
237
|
+
};
|
|
238
|
+
column: {
|
|
239
|
+
type: string;
|
|
240
|
+
enum: string[];
|
|
241
|
+
};
|
|
242
|
+
type: {};
|
|
243
|
+
when: {
|
|
244
|
+
type: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
39
248
|
'story-card': {
|
|
40
249
|
additionalProperties: boolean;
|
|
41
250
|
required: never[];
|
|
@@ -3358,7 +3567,7 @@ export declare const cardSchemas: {
|
|
|
3358
3567
|
};
|
|
3359
3568
|
};
|
|
3360
3569
|
};
|
|
3361
|
-
};
|
|
3570
|
+
}; /** @deprecated */
|
|
3362
3571
|
description: {
|
|
3363
3572
|
additionalProperties: boolean;
|
|
3364
3573
|
required: never[];
|
|
@@ -3887,7 +4096,7 @@ export declare const cardSchemas: {
|
|
|
3887
4096
|
};
|
|
3888
4097
|
autoplay: {
|
|
3889
4098
|
type: string;
|
|
3890
|
-
};
|
|
4099
|
+
}; /** @deprecated */
|
|
3891
4100
|
elapsedTime: {
|
|
3892
4101
|
type: string;
|
|
3893
4102
|
};
|
|
@@ -4,7 +4,7 @@ exports.constructorCardSchemaNames = exports.constructorBlockSchemaNames = expor
|
|
|
4
4
|
const blocks_1 = require("./validators/blocks");
|
|
5
5
|
const sub_blocks_1 = require("./validators/sub-blocks");
|
|
6
6
|
exports.blockSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.Divider), blocks_1.ExtendedFeaturesBlock), blocks_1.PromoFeaturesBlock), blocks_1.AdvantagesBlock), blocks_1.BenefitsBlock), blocks_1.ScrollerBlock), blocks_1.SliderBlock), blocks_1.QuestionsBlock), blocks_1.HeaderBlock), blocks_1.HeaderMinifyBlock), blocks_1.BannerBlock), blocks_1.LogoRotatorBlock), blocks_1.UnicornCardsBlock), blocks_1.CompaniesBlock), blocks_1.MediaBlock), blocks_1.MapBlock), blocks_1.InfoBlock), blocks_1.TableBlock), blocks_1.HighlightTableBlock), blocks_1.MiniCaseBlock), blocks_1.TabsBlock), blocks_1.TabsHighlightTableBlock), blocks_1.TabLinksBlock), blocks_1.HeaderSliderBlock), blocks_1.IconsBlock), blocks_1.CardLayoutBlock), blocks_1.ContentLayoutBlock), blocks_1.BannerMinifyBlock), blocks_1.ShareBlock), blocks_1.FilterBlock), blocks_1.FilterCardLayoutBlock), blocks_1.FormBlock), blocks_1.SliderNewBlock), blocks_1.MarqueeLinksBlock), blocks_1.SolutionsBlock), blocks_1.ServicesBlock), blocks_1.QuotesBlock), blocks_1.ReportsBlock), blocks_1.ScienceHeaderBlock), blocks_1.AboutHeaderBlock), blocks_1.LayoutBlock), blocks_1.YFMBlock), blocks_1.PartnerHeaderBlock), blocks_1.SidebarWidgetBlock), blocks_1.ReportsCardsBlock), blocks_1.ReportsSectionsBlock), blocks_1.LinkTableBlock), blocks_1.EventsFeedBlock), blocks_1.PartnersFeedBlock), blocks_1.ResourceHubPostsBlock), blocks_1.BenchmarkBlock), blocks_1.EventsSectionBlock), blocks_1.BlogFeedBlock), blocks_1.ScienceFeedBlock), blocks_1.CustomerStoriesFeedBlock), blocks_1.RelevantPostsBlock), blocks_1.RelevantReportsCardsBlock), blocks_1.RelevantReportsBlock), blocks_1.PressReleasesBlock), blocks_1.FormWallBlock), blocks_1.CatBlock), blocks_1.AudioBlock), blocks_1.OnetrustCookieListBlock), blocks_1.WhatsNewBlock), blocks_1.ScienceSuggestBlock);
|
|
7
|
-
exports.cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.BackgroundCard), sub_blocks_1.Quote), sub_blocks_1.BasicCard), sub_blocks_1.PriceCardBlock), sub_blocks_1.ImageCard), sub_blocks_1.ContentLayoutCard), sub_blocks_1.Card), sub_blocks_1.PostCard), sub_blocks_1.NewPostCard), sub_blocks_1.FeedCard), sub_blocks_1.EventPersonCard), sub_blocks_1.AttachmentCard), sub_blocks_1.FeedPartner), sub_blocks_1.CaseStudyCard), sub_blocks_1.StoryCard), sub_blocks_1.NewsCard);
|
|
7
|
+
exports.cardSchemas = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, sub_blocks_1.MediaCardBlock), blocks_1.BannerCard), sub_blocks_1.PriceDetailedBlock), sub_blocks_1.BackgroundCard), sub_blocks_1.Quote), sub_blocks_1.BasicCard), sub_blocks_1.PriceCardBlock), sub_blocks_1.ImageCard), sub_blocks_1.ContentLayoutCard), sub_blocks_1.Card), sub_blocks_1.PostCard), sub_blocks_1.NewPostCard), sub_blocks_1.FeedCard), sub_blocks_1.EventPersonCard), sub_blocks_1.AttachmentCard), sub_blocks_1.FeedPartner), sub_blocks_1.CaseStudyCard), sub_blocks_1.StoryCard), sub_blocks_1.MiniCaseCard), sub_blocks_1.NewsCard);
|
|
8
8
|
exports.constructorBlockSchemaNames = [
|
|
9
9
|
'divider',
|
|
10
10
|
'quote',
|
|
@@ -95,5 +95,6 @@ exports.constructorCardSchemaNames = [
|
|
|
95
95
|
'event-person-card',
|
|
96
96
|
'case-study-card',
|
|
97
97
|
'story-card',
|
|
98
|
+
'mini-case-card',
|
|
98
99
|
'news-card',
|
|
99
100
|
];
|
|
@@ -20,3 +20,4 @@ export * from '../../sub-blocks/AttachmentCard/schema';
|
|
|
20
20
|
export * from '../../sub-blocks/FeedPartner/schema';
|
|
21
21
|
export * from '../../sub-blocks/CaseStudyCard/schema';
|
|
22
22
|
export * from '../../sub-blocks/StoryCard/schema';
|
|
23
|
+
export * from '../../sub-blocks/MiniCaseCard/schema';
|
|
@@ -23,3 +23,4 @@ tslib_1.__exportStar(require("../../sub-blocks/AttachmentCard/schema"), exports)
|
|
|
23
23
|
tslib_1.__exportStar(require("../../sub-blocks/FeedPartner/schema"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("../../sub-blocks/CaseStudyCard/schema"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("../../sub-blocks/StoryCard/schema"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("../../sub-blocks/MiniCaseCard/schema"), exports);
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* use this for style redefinitions to awoid problems with
|
|
2
|
+
unpredictable css rules order in build */
|
|
3
|
+
.pc-mini-case-card {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
gap: 32px;
|
|
9
|
+
padding: 52px;
|
|
10
|
+
border-radius: 40px;
|
|
11
|
+
}
|
|
12
|
+
@media (max-width: 769px) {
|
|
13
|
+
.pc-mini-case-card {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
padding: 48px 16px;
|
|
16
|
+
border-radius: 32px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.pc-mini-case-card__lhs {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
gap: 24px;
|
|
24
|
+
align-self: stretch;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
max-width: 660px;
|
|
27
|
+
}
|
|
28
|
+
@media (max-width: 769px) {
|
|
29
|
+
.pc-mini-case-card__lhs {
|
|
30
|
+
align-self: auto;
|
|
31
|
+
max-width: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.pc-mini-case-card__content {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
gap: 24px;
|
|
39
|
+
}
|
|
40
|
+
.pc-mini-case-card__head {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
gap: 16px;
|
|
45
|
+
}
|
|
46
|
+
.pc-mini-case-card__tags {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: row;
|
|
49
|
+
gap: 8px;
|
|
50
|
+
}
|
|
51
|
+
.pc-mini-case-card__tag {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
padding: 4px 12px 5px;
|
|
56
|
+
border-radius: 12px;
|
|
57
|
+
border: 1px solid;
|
|
58
|
+
}
|
|
59
|
+
.pc-mini-case-card__tag_usecase {
|
|
60
|
+
color: #614efa;
|
|
61
|
+
border-color: #614efa;
|
|
62
|
+
}
|
|
63
|
+
.pc-mini-case-card__tag_industry {
|
|
64
|
+
color: #3a8ef5;
|
|
65
|
+
border-color: #3a8ef5;
|
|
66
|
+
}
|
|
67
|
+
.pc-mini-case-card__tag, .pc-mini-case-card__author-name, .pc-mini-case-card__author-position {
|
|
68
|
+
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
69
|
+
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
70
|
+
line-height: 22px;
|
|
71
|
+
}
|
|
72
|
+
.pc-mini-case-card__title {
|
|
73
|
+
font-size: var(--g-text-display-3-font-size, var(--pc-text-display-3-font-size));
|
|
74
|
+
line-height: var(--g-text-display-3-line-height, var(--pc-text-display-3-line-height));
|
|
75
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
76
|
+
}
|
|
77
|
+
@media (max-width: 769px) {
|
|
78
|
+
.pc-mini-case-card__title {
|
|
79
|
+
font-size: var(--g-text-display-2-font-size, var(--pc-text-display-2-font-size));
|
|
80
|
+
line-height: var(--g-text-display-2-line-height, var(--pc-text-display-2-line-height));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.pc-mini-case-card__text, .pc-mini-case-card__quote, .pc-mini-case-card__label {
|
|
84
|
+
font-size: var(--g-text-body-2-font-size, var(--pc-text-body-2-font-size));
|
|
85
|
+
line-height: var(--g-text-body-2-line-height, var(--pc-text-body-2-line-height));
|
|
86
|
+
}
|
|
87
|
+
.pc-mini-case-card__rhs {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
gap: 4px;
|
|
91
|
+
}
|
|
92
|
+
@media (max-width: 769px) {
|
|
93
|
+
.pc-mini-case-card__rhs {
|
|
94
|
+
align-self: stretch;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.pc-mini-case-card__box {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
align-items: center;
|
|
102
|
+
text-align: center;
|
|
103
|
+
border-radius: 30px;
|
|
104
|
+
padding: 30px;
|
|
105
|
+
color: var(--g-color-text-light-primary);
|
|
106
|
+
min-width: 400px;
|
|
107
|
+
}
|
|
108
|
+
@media (max-width: 769px) {
|
|
109
|
+
.pc-mini-case-card__box {
|
|
110
|
+
min-width: 100%;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.pc-mini-case-card__value {
|
|
114
|
+
font-size: 40px;
|
|
115
|
+
line-height: 48px;
|
|
116
|
+
letter-spacing: 0;
|
|
117
|
+
font-weight: var(--g-text-display-font-weight);
|
|
118
|
+
text-transform: uppercase;
|
|
119
|
+
}
|
|
120
|
+
.pc-mini-case-card__author {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: row;
|
|
123
|
+
gap: 16px;
|
|
124
|
+
}
|
|
125
|
+
.pc-mini-case-card__author-avatar {
|
|
126
|
+
display: block;
|
|
127
|
+
flex-shrink: 0;
|
|
128
|
+
width: 64px;
|
|
129
|
+
height: 64px;
|
|
130
|
+
border-radius: 12px;
|
|
131
|
+
object-fit: cover;
|
|
132
|
+
}
|
|
133
|
+
.pc-mini-case-card__author-name {
|
|
134
|
+
font-weight: var(--g-text-accent-font-weight);
|
|
135
|
+
}
|
|
136
|
+
.pc-mini-case-card__wrap-logo {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
max-height: 32px;
|
|
140
|
+
}
|
|
141
|
+
@media (max-width: 769px) {
|
|
142
|
+
.pc-mini-case-card__wrap-logo {
|
|
143
|
+
max-height: 54px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
.pc-mini-case-card__logo {
|
|
147
|
+
display: block;
|
|
148
|
+
max-height: 100%;
|
|
149
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
const components_1 = require("../../components");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const b = (0, utils_1.block)('mini-case-card');
|
|
8
|
+
const MiniCaseCardAuthor = ({ showQuote, avatar, author, position, }) => {
|
|
9
|
+
if (!showQuote || !(avatar || author || position)) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return (react_1.default.createElement("div", { className: b('author') },
|
|
13
|
+
avatar && react_1.default.createElement(components_1.Image, { src: avatar, className: b('author-avatar') }),
|
|
14
|
+
(author || position) && (react_1.default.createElement("div", { className: b('author-text') },
|
|
15
|
+
author && react_1.default.createElement("span", { className: b('author-name') }, author),
|
|
16
|
+
author && position && react_1.default.createElement("br", null),
|
|
17
|
+
position && react_1.default.createElement("span", { className: b('author-position') }, position)))));
|
|
18
|
+
};
|
|
19
|
+
const MiniCaseCardTags = ({ tagUsecase, tagIndustry }) => {
|
|
20
|
+
if (!(tagUsecase === null || tagUsecase === void 0 ? void 0 : tagUsecase.length) && !(tagIndustry === null || tagIndustry === void 0 ? void 0 : tagIndustry.length)) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return (react_1.default.createElement("div", { className: b('tags') }, tagUsecase === null || tagUsecase === void 0 ? void 0 :
|
|
24
|
+
tagUsecase.map((tag, index) => (react_1.default.createElement("div", { key: `usecase-${index}`, className: b('tag', { usecase: true }) },
|
|
25
|
+
react_1.default.createElement(components_1.HTML, null, tag)))), tagIndustry === null || tagIndustry === void 0 ? void 0 :
|
|
26
|
+
tagIndustry.map((tag, index) => (react_1.default.createElement("div", { key: `industry-${index}`, className: b('tag', { industry: true }) },
|
|
27
|
+
react_1.default.createElement(components_1.HTML, null, tag))))));
|
|
28
|
+
};
|
|
29
|
+
const MiniCaseCardHead = ({ title, shouldShowStory, showQuote, text, quote, avatar, author, position, }) => {
|
|
30
|
+
const shouldShowQuote = showQuote && Boolean(quote || avatar || author || position);
|
|
31
|
+
if (!title && !shouldShowStory && !shouldShowQuote) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return (react_1.default.createElement("div", { className: b('head') },
|
|
35
|
+
title && (react_1.default.createElement("div", { className: b('title') },
|
|
36
|
+
react_1.default.createElement(components_1.HTML, null, title))),
|
|
37
|
+
shouldShowStory && react_1.default.createElement(components_1.HTML, { className: b('text') }, text),
|
|
38
|
+
showQuote && quote && react_1.default.createElement(components_1.HTML, { className: b('quote') }, quote),
|
|
39
|
+
react_1.default.createElement(MiniCaseCardAuthor, { showQuote: showQuote, avatar: avatar, author: author, position: position })));
|
|
40
|
+
};
|
|
41
|
+
const MiniCaseCard = ({ title, showStory = true, showQuote = true, text, quote, avatar, author, position, logo, tagUsecase, tagIndustry, data, background, backgroundData, }) => {
|
|
42
|
+
const shouldShowStory = showStory && Boolean(text);
|
|
43
|
+
return (react_1.default.createElement("div", { className: b(), style: background ? { background } : undefined },
|
|
44
|
+
react_1.default.createElement("div", { className: b('lhs') },
|
|
45
|
+
react_1.default.createElement("div", { className: b('content') },
|
|
46
|
+
logo && (react_1.default.createElement("div", { className: b('wrap-logo') },
|
|
47
|
+
react_1.default.createElement(components_1.Image, { src: logo, className: b('logo') }))),
|
|
48
|
+
react_1.default.createElement(MiniCaseCardHead, { title: title, shouldShowStory: shouldShowStory, showQuote: showQuote, text: text, quote: quote, avatar: avatar, author: author, position: position })),
|
|
49
|
+
react_1.default.createElement(MiniCaseCardTags, { tagUsecase: tagUsecase, tagIndustry: tagIndustry })),
|
|
50
|
+
react_1.default.createElement("div", { className: b('rhs') }, data === null || data === void 0 ? void 0 : data.map((item, index) => (react_1.default.createElement("div", { key: index, className: b('box'), style: backgroundData ? { background: backgroundData } : undefined },
|
|
51
|
+
react_1.default.createElement("div", { className: `${b('value')} title-font-family` }, item.value),
|
|
52
|
+
react_1.default.createElement("div", { className: b('label') }, item.label)))))));
|
|
53
|
+
};
|
|
54
|
+
exports.default = MiniCaseCard;
|