@doyourjob/gravity-ui-page-constructor 5.31.190 → 5.31.192
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/blocks/EventsSection/schema.d.ts +31 -11
- package/build/cjs/blocks/EventsSection/schema.js +9 -1
- package/build/cjs/components/Tag/Tag.css +0 -4
- package/build/cjs/components/Tag/Tag.d.ts +1 -4
- package/build/cjs/components/Tag/Tag.js +1 -1
- package/build/cjs/components/Title/Title.css +4 -3
- package/build/cjs/models/constructor-items/blocks.d.ts +1 -1
- package/build/cjs/models/constructor-items/sub-blocks.d.ts +8 -8
- package/build/cjs/schema/constants.d.ts +217 -77
- package/build/cjs/sub-blocks/AttachmentCard/AttachmentCard.css +6 -0
- package/build/cjs/sub-blocks/AttachmentCard/AttachmentCard.js +1 -1
- package/build/cjs/sub-blocks/AttachmentCard/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/AttachmentCard/schema.js +9 -1
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
- package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +1 -1
- package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/BackgroundCard/schema.js +9 -1
- package/build/cjs/sub-blocks/BasicCard/BasicCard.css +6 -0
- package/build/cjs/sub-blocks/BasicCard/BasicCard.js +1 -1
- package/build/cjs/sub-blocks/BasicCard/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/BasicCard/schema.js +9 -1
- package/build/cjs/sub-blocks/Card/Card.css +6 -0
- package/build/cjs/sub-blocks/Card/Card.js +1 -1
- package/build/cjs/sub-blocks/Card/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/Card/schema.js +9 -1
- package/build/cjs/sub-blocks/CaseStudyCard/CaseStudyCard.js +1 -1
- package/build/cjs/sub-blocks/ImageCard/ImageCard.css +12 -5
- package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -2
- package/build/cjs/sub-blocks/ImageCard/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/ImageCard/schema.js +9 -1
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +6 -0
- package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
- package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/LayoutItem/schema.js +9 -1
- package/build/cjs/sub-blocks/MediaCard/MediaCard.css +4 -1
- package/build/cjs/sub-blocks/MediaCard/MediaCard.js +1 -2
- package/build/cjs/sub-blocks/MediaCard/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/MediaCard/schema.js +9 -1
- package/build/cjs/sub-blocks/PriceCard/PriceCard.css +6 -0
- package/build/cjs/sub-blocks/PriceCard/PriceCard.js +1 -1
- package/build/cjs/sub-blocks/PriceCard/schema.d.ts +31 -11
- package/build/cjs/sub-blocks/PriceCard/schema.js +9 -1
- package/build/esm/blocks/EventsSection/schema.d.ts +31 -11
- package/build/esm/blocks/EventsSection/schema.js +9 -1
- package/build/esm/components/Tag/Tag.css +0 -4
- package/build/esm/components/Tag/Tag.d.ts +1 -4
- package/build/esm/components/Tag/Tag.js +1 -1
- package/build/esm/components/Title/Title.css +4 -3
- package/build/esm/models/constructor-items/blocks.d.ts +1 -1
- package/build/esm/models/constructor-items/sub-blocks.d.ts +8 -8
- package/build/esm/schema/constants.d.ts +217 -77
- package/build/esm/sub-blocks/AttachmentCard/AttachmentCard.css +6 -0
- package/build/esm/sub-blocks/AttachmentCard/AttachmentCard.js +1 -1
- package/build/esm/sub-blocks/AttachmentCard/schema.d.ts +31 -11
- package/build/esm/sub-blocks/AttachmentCard/schema.js +9 -1
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
- package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +1 -1
- package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +31 -11
- package/build/esm/sub-blocks/BackgroundCard/schema.js +9 -1
- package/build/esm/sub-blocks/BasicCard/BasicCard.css +6 -0
- package/build/esm/sub-blocks/BasicCard/BasicCard.js +1 -1
- package/build/esm/sub-blocks/BasicCard/schema.d.ts +31 -11
- package/build/esm/sub-blocks/BasicCard/schema.js +9 -1
- package/build/esm/sub-blocks/Card/Card.css +6 -0
- package/build/esm/sub-blocks/Card/Card.js +1 -1
- package/build/esm/sub-blocks/Card/schema.d.ts +31 -11
- package/build/esm/sub-blocks/Card/schema.js +9 -1
- package/build/esm/sub-blocks/CaseStudyCard/CaseStudyCard.js +1 -1
- package/build/esm/sub-blocks/ImageCard/ImageCard.css +12 -5
- package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -2
- package/build/esm/sub-blocks/ImageCard/schema.d.ts +31 -11
- package/build/esm/sub-blocks/ImageCard/schema.js +9 -1
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +6 -0
- package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
- package/build/esm/sub-blocks/LayoutItem/schema.d.ts +31 -11
- package/build/esm/sub-blocks/LayoutItem/schema.js +9 -1
- package/build/esm/sub-blocks/MediaCard/MediaCard.css +4 -1
- package/build/esm/sub-blocks/MediaCard/MediaCard.js +1 -2
- package/build/esm/sub-blocks/MediaCard/schema.d.ts +31 -11
- package/build/esm/sub-blocks/MediaCard/schema.js +9 -1
- package/build/esm/sub-blocks/PriceCard/PriceCard.css +6 -0
- package/build/esm/sub-blocks/PriceCard/PriceCard.js +1 -1
- package/build/esm/sub-blocks/PriceCard/schema.d.ts +31 -11
- package/build/esm/sub-blocks/PriceCard/schema.js +9 -1
- package/package.json +1 -1
- package/schema/index.js +1 -1
- package/server/models/constructor-items/blocks.d.ts +1 -1
- package/server/models/constructor-items/sub-blocks.d.ts +8 -8
- package/widget/index.js +1 -1
|
@@ -163,20 +163,40 @@ export declare const EventsSectionBlock: {
|
|
|
163
163
|
})[];
|
|
164
164
|
};
|
|
165
165
|
label: {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
166
|
+
oneOf: ({
|
|
167
|
+
type: string;
|
|
168
|
+
additionalProperties: boolean;
|
|
169
|
+
required: string[];
|
|
170
|
+
properties: {
|
|
171
|
+
text: {
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
backgroundColor: {
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
textColor: {
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
175
180
|
};
|
|
176
|
-
|
|
181
|
+
} | {
|
|
182
|
+
type: string;
|
|
183
|
+
items: {
|
|
177
184
|
type: string;
|
|
185
|
+
additionalProperties: boolean;
|
|
186
|
+
required: string[];
|
|
187
|
+
properties: {
|
|
188
|
+
text: {
|
|
189
|
+
type: string;
|
|
190
|
+
};
|
|
191
|
+
backgroundColor: {
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
textColor: {
|
|
195
|
+
type: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
178
198
|
};
|
|
179
|
-
};
|
|
199
|
+
})[];
|
|
180
200
|
};
|
|
181
201
|
empty: {
|
|
182
202
|
type: string;
|
|
@@ -17,7 +17,15 @@ exports.EventsSectionBlock = {
|
|
|
17
17
|
},
|
|
18
18
|
Object.assign(Object.assign({}, common_1.TitleProps), { optionName: 'options' }),
|
|
19
19
|
],
|
|
20
|
-
}, label:
|
|
20
|
+
}, label: {
|
|
21
|
+
oneOf: [
|
|
22
|
+
common_1.Tag,
|
|
23
|
+
{
|
|
24
|
+
type: 'array',
|
|
25
|
+
items: common_1.Tag,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
}, empty: {
|
|
21
29
|
type: 'string',
|
|
22
30
|
} }),
|
|
23
31
|
},
|
|
@@ -4,12 +4,8 @@ unpredictable css rules order in build */
|
|
|
4
4
|
font-size: var(--g-text-body-1-font-size, var(--pc-text-body-1-font-size));
|
|
5
5
|
line-height: var(--g-text-body-1-line-height, var(--pc-text-body-1-line-height));
|
|
6
6
|
position: relative;
|
|
7
|
-
margin-bottom: 24px;
|
|
8
7
|
display: inline-block;
|
|
9
8
|
border-radius: 20px;
|
|
10
9
|
padding: 2px 12px;
|
|
11
10
|
align-self: flex-start;
|
|
12
|
-
}
|
|
13
|
-
.pc-tag_without-margin-bottom {
|
|
14
|
-
margin-bottom: 0;
|
|
15
11
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { TagProps } from '../../models';
|
|
2
|
-
|
|
3
|
-
withoutMarginBottom?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const Tag: ({ text, backgroundColor, textColor, withoutMarginBottom }: Props) => JSX.Element;
|
|
2
|
+
export declare const Tag: ({ text, backgroundColor, textColor }: TagProps) => JSX.Element;
|
|
6
3
|
export default Tag;
|
|
@@ -5,6 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const cn_1 = require("../../utils/cn");
|
|
7
7
|
const b = (0, cn_1.block)('tag');
|
|
8
|
-
const Tag = ({ text, backgroundColor, textColor
|
|
8
|
+
const Tag = ({ text, backgroundColor, textColor }) => (react_1.default.createElement("div", { className: b(), style: { backgroundColor, color: textColor } }, text));
|
|
9
9
|
exports.Tag = Tag;
|
|
10
10
|
exports.default = exports.Tag;
|
|
@@ -8,15 +8,16 @@ unpredictable css rules order in build */
|
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
align-items: center;
|
|
10
10
|
}
|
|
11
|
-
.pc-title__title_bottomSpace_s {
|
|
11
|
+
.pc-title__title.pc-title__title_bottomSpace_s {
|
|
12
12
|
margin-bottom: 8px;
|
|
13
13
|
}
|
|
14
|
-
.pc-title__title_bottomSpace_m {
|
|
14
|
+
.pc-title__title.pc-title__title_bottomSpace_m {
|
|
15
15
|
margin-bottom: 16px;
|
|
16
16
|
}
|
|
17
|
-
.pc-title__title_bottomSpace_l {
|
|
17
|
+
.pc-title__title.pc-title__title_bottomSpace_l {
|
|
18
18
|
margin-bottom: 32px;
|
|
19
19
|
}
|
|
20
|
+
|
|
20
21
|
.pc-title__link {
|
|
21
22
|
margin: 0;
|
|
22
23
|
}
|
|
@@ -499,7 +499,7 @@ export interface ResourceHubPostsBlockProps extends BaseFeedProps {
|
|
|
499
499
|
export interface EventsSectionBlockProps {
|
|
500
500
|
typeKey: string;
|
|
501
501
|
title?: TitleItemProps | string;
|
|
502
|
-
label?: TagProps;
|
|
502
|
+
label?: TagProps | TagProps[];
|
|
503
503
|
empty?: string;
|
|
504
504
|
}
|
|
505
505
|
export interface BlogFeedBlockProps extends BaseFeedProps {
|
|
@@ -110,7 +110,7 @@ export interface BackgroundCardProps extends CardBaseProps, AnalyticsEventsBase,
|
|
|
110
110
|
backgroundPosition?: 'left' | 'right' | 'center' | 'top' | 'bottom';
|
|
111
111
|
paddingBottom?: 's' | 'm' | 'l' | 'xl';
|
|
112
112
|
backgroundColor?: string;
|
|
113
|
-
label?: TagProps;
|
|
113
|
+
label?: TagProps | TagProps[];
|
|
114
114
|
}
|
|
115
115
|
export interface BasicCardProps extends CardBaseProps, AnalyticsEventsBase, CardLayoutProps, Omit<ContentBlockProps, 'colSizes' | 'centered' | 'size' | 'theme' | 'controlPosition'> {
|
|
116
116
|
url: string;
|
|
@@ -118,7 +118,7 @@ export interface BasicCardProps extends CardBaseProps, AnalyticsEventsBase, Card
|
|
|
118
118
|
icon?: ThemeSupporting<ImageProps>;
|
|
119
119
|
target?: string;
|
|
120
120
|
iconPosition?: IconPosition;
|
|
121
|
-
label?: TagProps;
|
|
121
|
+
label?: TagProps | TagProps[];
|
|
122
122
|
}
|
|
123
123
|
export interface CardProps extends CardBaseProps, Pick<ContentBlockProps, 'summary' | 'text'> {
|
|
124
124
|
header: {
|
|
@@ -127,7 +127,7 @@ export interface CardProps extends CardBaseProps, Pick<ContentBlockProps, 'summa
|
|
|
127
127
|
hoverImage?: string;
|
|
128
128
|
};
|
|
129
129
|
service?: ServiceLabelProps;
|
|
130
|
-
label?: TagProps;
|
|
130
|
+
label?: TagProps | TagProps[];
|
|
131
131
|
}
|
|
132
132
|
export interface BannerCardProps {
|
|
133
133
|
title: string;
|
|
@@ -141,7 +141,7 @@ export interface BannerCardProps {
|
|
|
141
141
|
mediaView?: MediaView;
|
|
142
142
|
}
|
|
143
143
|
export interface MediaCardProps extends MediaProps, AnalyticsEventsBase, CardBaseProps {
|
|
144
|
-
label?: TagProps;
|
|
144
|
+
label?: TagProps | TagProps[];
|
|
145
145
|
}
|
|
146
146
|
export interface PriceCardProps extends CardBaseProps, Pick<ContentBlockProps, 'theme'> {
|
|
147
147
|
title: string;
|
|
@@ -154,7 +154,7 @@ export interface PriceCardProps extends CardBaseProps, Pick<ContentBlockProps, '
|
|
|
154
154
|
links?: LinkProps[];
|
|
155
155
|
backgroundColor?: string;
|
|
156
156
|
list?: string[];
|
|
157
|
-
label?: TagProps;
|
|
157
|
+
label?: TagProps | TagProps[];
|
|
158
158
|
}
|
|
159
159
|
export interface LayoutItemProps extends ClassNameProps, CardLayoutProps, AnalyticsEventsBase {
|
|
160
160
|
title?: {
|
|
@@ -178,7 +178,7 @@ export interface LayoutItemProps extends ClassNameProps, CardLayoutProps, Analyt
|
|
|
178
178
|
border?: boolean;
|
|
179
179
|
fullscreen?: boolean;
|
|
180
180
|
icon?: ThemeSupporting<PositionedIcon>;
|
|
181
|
-
label?: TagProps;
|
|
181
|
+
label?: TagProps | TagProps[];
|
|
182
182
|
jumpOnHover?: boolean;
|
|
183
183
|
backgroundColor?: string;
|
|
184
184
|
background?: ThemeSupporting<ImageObjectProps>;
|
|
@@ -194,7 +194,7 @@ export interface ImageCardProps extends CardBaseProps, CardLayoutProps, Omit<Con
|
|
|
194
194
|
url?: string;
|
|
195
195
|
urlTitle?: string;
|
|
196
196
|
target?: string;
|
|
197
|
-
label?: TagProps;
|
|
197
|
+
label?: TagProps | TagProps[];
|
|
198
198
|
}
|
|
199
199
|
export declare enum PostCardSize {
|
|
200
200
|
SMALL = "s",
|
|
@@ -257,7 +257,7 @@ export interface AttachmentCardProps extends CardBaseProps {
|
|
|
257
257
|
date?: string;
|
|
258
258
|
time?: string;
|
|
259
259
|
items?: AttachmentCardItemType[];
|
|
260
|
-
label?: TagProps;
|
|
260
|
+
label?: TagProps | TagProps[];
|
|
261
261
|
column?: boolean;
|
|
262
262
|
}
|
|
263
263
|
export interface CaseStudyCardProps {
|
|
@@ -600,20 +600,40 @@ export declare const cardSchemas: {
|
|
|
600
600
|
};
|
|
601
601
|
};
|
|
602
602
|
label: {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
603
|
+
oneOf: ({
|
|
604
|
+
type: string;
|
|
605
|
+
additionalProperties: boolean;
|
|
606
|
+
required: string[];
|
|
607
|
+
properties: {
|
|
608
|
+
text: {
|
|
609
|
+
type: string;
|
|
610
|
+
};
|
|
611
|
+
backgroundColor: {
|
|
612
|
+
type: string;
|
|
613
|
+
};
|
|
614
|
+
textColor: {
|
|
615
|
+
type: string;
|
|
616
|
+
};
|
|
612
617
|
};
|
|
613
|
-
|
|
618
|
+
} | {
|
|
619
|
+
type: string;
|
|
620
|
+
items: {
|
|
614
621
|
type: string;
|
|
622
|
+
additionalProperties: boolean;
|
|
623
|
+
required: string[];
|
|
624
|
+
properties: {
|
|
625
|
+
text: {
|
|
626
|
+
type: string;
|
|
627
|
+
};
|
|
628
|
+
backgroundColor: {
|
|
629
|
+
type: string;
|
|
630
|
+
};
|
|
631
|
+
textColor: {
|
|
632
|
+
type: string;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
615
635
|
};
|
|
616
|
-
};
|
|
636
|
+
})[];
|
|
617
637
|
};
|
|
618
638
|
border: {
|
|
619
639
|
type: string;
|
|
@@ -1042,20 +1062,40 @@ export declare const cardSchemas: {
|
|
|
1042
1062
|
};
|
|
1043
1063
|
};
|
|
1044
1064
|
label: {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1065
|
+
oneOf: ({
|
|
1066
|
+
type: string;
|
|
1067
|
+
additionalProperties: boolean;
|
|
1068
|
+
required: string[];
|
|
1069
|
+
properties: {
|
|
1070
|
+
text: {
|
|
1071
|
+
type: string;
|
|
1072
|
+
};
|
|
1073
|
+
backgroundColor: {
|
|
1074
|
+
type: string;
|
|
1075
|
+
};
|
|
1076
|
+
textColor: {
|
|
1077
|
+
type: string;
|
|
1078
|
+
};
|
|
1054
1079
|
};
|
|
1055
|
-
|
|
1080
|
+
} | {
|
|
1081
|
+
type: string;
|
|
1082
|
+
items: {
|
|
1056
1083
|
type: string;
|
|
1084
|
+
additionalProperties: boolean;
|
|
1085
|
+
required: string[];
|
|
1086
|
+
properties: {
|
|
1087
|
+
text: {
|
|
1088
|
+
type: string;
|
|
1089
|
+
};
|
|
1090
|
+
backgroundColor: {
|
|
1091
|
+
type: string;
|
|
1092
|
+
};
|
|
1093
|
+
textColor: {
|
|
1094
|
+
type: string;
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1057
1097
|
};
|
|
1058
|
-
};
|
|
1098
|
+
})[];
|
|
1059
1099
|
};
|
|
1060
1100
|
summary: {
|
|
1061
1101
|
type: string;
|
|
@@ -1761,20 +1801,40 @@ export declare const cardSchemas: {
|
|
|
1761
1801
|
type: string;
|
|
1762
1802
|
};
|
|
1763
1803
|
label: {
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1804
|
+
oneOf: ({
|
|
1805
|
+
type: string;
|
|
1806
|
+
additionalProperties: boolean;
|
|
1807
|
+
required: string[];
|
|
1808
|
+
properties: {
|
|
1809
|
+
text: {
|
|
1810
|
+
type: string;
|
|
1811
|
+
};
|
|
1812
|
+
backgroundColor: {
|
|
1813
|
+
type: string;
|
|
1814
|
+
};
|
|
1815
|
+
textColor: {
|
|
1816
|
+
type: string;
|
|
1817
|
+
};
|
|
1773
1818
|
};
|
|
1774
|
-
|
|
1819
|
+
} | {
|
|
1820
|
+
type: string;
|
|
1821
|
+
items: {
|
|
1775
1822
|
type: string;
|
|
1823
|
+
additionalProperties: boolean;
|
|
1824
|
+
required: string[];
|
|
1825
|
+
properties: {
|
|
1826
|
+
text: {
|
|
1827
|
+
type: string;
|
|
1828
|
+
};
|
|
1829
|
+
backgroundColor: {
|
|
1830
|
+
type: string;
|
|
1831
|
+
};
|
|
1832
|
+
textColor: {
|
|
1833
|
+
type: string;
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1776
1836
|
};
|
|
1777
|
-
};
|
|
1837
|
+
})[];
|
|
1778
1838
|
};
|
|
1779
1839
|
title?: {
|
|
1780
1840
|
oneOf: ({
|
|
@@ -2332,20 +2392,40 @@ export declare const cardSchemas: {
|
|
|
2332
2392
|
enum: string[];
|
|
2333
2393
|
};
|
|
2334
2394
|
label: {
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2395
|
+
oneOf: ({
|
|
2396
|
+
type: string;
|
|
2397
|
+
additionalProperties: boolean;
|
|
2398
|
+
required: string[];
|
|
2399
|
+
properties: {
|
|
2400
|
+
text: {
|
|
2401
|
+
type: string;
|
|
2402
|
+
};
|
|
2403
|
+
backgroundColor: {
|
|
2404
|
+
type: string;
|
|
2405
|
+
};
|
|
2406
|
+
textColor: {
|
|
2407
|
+
type: string;
|
|
2408
|
+
};
|
|
2344
2409
|
};
|
|
2345
|
-
|
|
2410
|
+
} | {
|
|
2411
|
+
type: string;
|
|
2412
|
+
items: {
|
|
2346
2413
|
type: string;
|
|
2414
|
+
additionalProperties: boolean;
|
|
2415
|
+
required: string[];
|
|
2416
|
+
properties: {
|
|
2417
|
+
text: {
|
|
2418
|
+
type: string;
|
|
2419
|
+
};
|
|
2420
|
+
backgroundColor: {
|
|
2421
|
+
type: string;
|
|
2422
|
+
};
|
|
2423
|
+
textColor: {
|
|
2424
|
+
type: string;
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2347
2427
|
};
|
|
2348
|
-
};
|
|
2428
|
+
})[];
|
|
2349
2429
|
};
|
|
2350
2430
|
border: {
|
|
2351
2431
|
type: string;
|
|
@@ -2407,20 +2487,40 @@ export declare const cardSchemas: {
|
|
|
2407
2487
|
enum: string[];
|
|
2408
2488
|
};
|
|
2409
2489
|
label: {
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2490
|
+
oneOf: ({
|
|
2491
|
+
type: string;
|
|
2492
|
+
additionalProperties: boolean;
|
|
2493
|
+
required: string[];
|
|
2494
|
+
properties: {
|
|
2495
|
+
text: {
|
|
2496
|
+
type: string;
|
|
2497
|
+
};
|
|
2498
|
+
backgroundColor: {
|
|
2499
|
+
type: string;
|
|
2500
|
+
};
|
|
2501
|
+
textColor: {
|
|
2502
|
+
type: string;
|
|
2503
|
+
};
|
|
2419
2504
|
};
|
|
2420
|
-
|
|
2505
|
+
} | {
|
|
2506
|
+
type: string;
|
|
2507
|
+
items: {
|
|
2421
2508
|
type: string;
|
|
2509
|
+
additionalProperties: boolean;
|
|
2510
|
+
required: string[];
|
|
2511
|
+
properties: {
|
|
2512
|
+
text: {
|
|
2513
|
+
type: string;
|
|
2514
|
+
};
|
|
2515
|
+
backgroundColor: {
|
|
2516
|
+
type: string;
|
|
2517
|
+
};
|
|
2518
|
+
textColor: {
|
|
2519
|
+
type: string;
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2422
2522
|
};
|
|
2423
|
-
};
|
|
2523
|
+
})[];
|
|
2424
2524
|
};
|
|
2425
2525
|
summary: {
|
|
2426
2526
|
type: string;
|
|
@@ -3015,20 +3115,40 @@ export declare const cardSchemas: {
|
|
|
3015
3115
|
enum: string[];
|
|
3016
3116
|
};
|
|
3017
3117
|
label: {
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3118
|
+
oneOf: ({
|
|
3119
|
+
type: string;
|
|
3120
|
+
additionalProperties: boolean;
|
|
3121
|
+
required: string[];
|
|
3122
|
+
properties: {
|
|
3123
|
+
text: {
|
|
3124
|
+
type: string;
|
|
3125
|
+
};
|
|
3126
|
+
backgroundColor: {
|
|
3127
|
+
type: string;
|
|
3128
|
+
};
|
|
3129
|
+
textColor: {
|
|
3130
|
+
type: string;
|
|
3131
|
+
};
|
|
3027
3132
|
};
|
|
3028
|
-
|
|
3133
|
+
} | {
|
|
3134
|
+
type: string;
|
|
3135
|
+
items: {
|
|
3029
3136
|
type: string;
|
|
3137
|
+
additionalProperties: boolean;
|
|
3138
|
+
required: string[];
|
|
3139
|
+
properties: {
|
|
3140
|
+
text: {
|
|
3141
|
+
type: string;
|
|
3142
|
+
};
|
|
3143
|
+
backgroundColor: {
|
|
3144
|
+
type: string;
|
|
3145
|
+
};
|
|
3146
|
+
textColor: {
|
|
3147
|
+
type: string;
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
3030
3150
|
};
|
|
3031
|
-
};
|
|
3151
|
+
})[];
|
|
3032
3152
|
};
|
|
3033
3153
|
summary: {
|
|
3034
3154
|
type: string;
|
|
@@ -3657,20 +3777,40 @@ export declare const cardSchemas: {
|
|
|
3657
3777
|
})[];
|
|
3658
3778
|
};
|
|
3659
3779
|
label: {
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3780
|
+
oneOf: ({
|
|
3781
|
+
type: string;
|
|
3782
|
+
additionalProperties: boolean;
|
|
3783
|
+
required: string[];
|
|
3784
|
+
properties: {
|
|
3785
|
+
text: {
|
|
3786
|
+
type: string;
|
|
3787
|
+
};
|
|
3788
|
+
backgroundColor: {
|
|
3789
|
+
type: string;
|
|
3790
|
+
};
|
|
3791
|
+
textColor: {
|
|
3792
|
+
type: string;
|
|
3793
|
+
};
|
|
3669
3794
|
};
|
|
3670
|
-
|
|
3795
|
+
} | {
|
|
3796
|
+
type: string;
|
|
3797
|
+
items: {
|
|
3671
3798
|
type: string;
|
|
3799
|
+
additionalProperties: boolean;
|
|
3800
|
+
required: string[];
|
|
3801
|
+
properties: {
|
|
3802
|
+
text: {
|
|
3803
|
+
type: string;
|
|
3804
|
+
};
|
|
3805
|
+
backgroundColor: {
|
|
3806
|
+
type: string;
|
|
3807
|
+
};
|
|
3808
|
+
textColor: {
|
|
3809
|
+
type: string;
|
|
3810
|
+
};
|
|
3811
|
+
};
|
|
3672
3812
|
};
|
|
3673
|
-
};
|
|
3813
|
+
})[];
|
|
3674
3814
|
};
|
|
3675
3815
|
animated: {
|
|
3676
3816
|
type: string;
|
|
@@ -15,6 +15,12 @@ unpredictable css rules order in build */
|
|
|
15
15
|
color: inherit;
|
|
16
16
|
opacity: 80%;
|
|
17
17
|
}
|
|
18
|
+
.pc-attachment-card__labels {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
gap: 8px;
|
|
22
|
+
margin-bottom: 24px;
|
|
23
|
+
}
|
|
18
24
|
.pc-attachment-card__item-icon {
|
|
19
25
|
height: 16px;
|
|
20
26
|
width: 16px;
|
|
@@ -36,7 +36,7 @@ const AttachmentCard = ({ url, title, date, time, items = [], label, column, bor
|
|
|
36
36
|
: title;
|
|
37
37
|
return (react_1.default.createElement(components_1.CardBase, { url: url, className: b(), contentClassName: b('content'), border: border },
|
|
38
38
|
react_1.default.createElement(components_1.CardBase.Content, null,
|
|
39
|
-
label && react_1.default.createElement(components_1.Tag, Object.assign({}, label)),
|
|
39
|
+
label && (react_1.default.createElement("div", { className: b('labels') }, Array.isArray(label) ? (label.map((item, index) => react_1.default.createElement(components_1.Tag, Object.assign({ key: index }, item)))) : (react_1.default.createElement(components_1.Tag, Object.assign({}, label))))),
|
|
40
40
|
react_1.default.createElement("div", { className: b('wrap', { column }) },
|
|
41
41
|
title && react_1.default.createElement(components_1.Title, { title: titleProps, colSizes: colSizes }),
|
|
42
42
|
date && (react_1.default.createElement("div", { className: b('date') },
|
|
@@ -207,20 +207,40 @@ export declare const AttachmentCard: {
|
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
209
|
label: {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
210
|
+
oneOf: ({
|
|
211
|
+
type: string;
|
|
212
|
+
additionalProperties: boolean;
|
|
213
|
+
required: string[];
|
|
214
|
+
properties: {
|
|
215
|
+
text: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
backgroundColor: {
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
textColor: {
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
219
224
|
};
|
|
220
|
-
|
|
225
|
+
} | {
|
|
226
|
+
type: string;
|
|
227
|
+
items: {
|
|
221
228
|
type: string;
|
|
229
|
+
additionalProperties: boolean;
|
|
230
|
+
required: string[];
|
|
231
|
+
properties: {
|
|
232
|
+
text: {
|
|
233
|
+
type: string;
|
|
234
|
+
};
|
|
235
|
+
backgroundColor: {
|
|
236
|
+
type: string;
|
|
237
|
+
};
|
|
238
|
+
textColor: {
|
|
239
|
+
type: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
222
242
|
};
|
|
223
|
-
};
|
|
243
|
+
})[];
|
|
224
244
|
};
|
|
225
245
|
border: {
|
|
226
246
|
type: string;
|
|
@@ -41,6 +41,12 @@ unpredictable css rules order in build */
|
|
|
41
41
|
cursor: default;
|
|
42
42
|
border: none;
|
|
43
43
|
}
|
|
44
|
+
.pc-background-card__labels {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
gap: 8px;
|
|
48
|
+
margin-bottom: 24px;
|
|
49
|
+
}
|
|
44
50
|
.pc-background-card__content {
|
|
45
51
|
display: flex;
|
|
46
52
|
flex-direction: column;
|