@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.
Files changed (89) hide show
  1. package/build/cjs/blocks/EventsSection/schema.d.ts +31 -11
  2. package/build/cjs/blocks/EventsSection/schema.js +9 -1
  3. package/build/cjs/components/Tag/Tag.css +0 -4
  4. package/build/cjs/components/Tag/Tag.d.ts +1 -4
  5. package/build/cjs/components/Tag/Tag.js +1 -1
  6. package/build/cjs/components/Title/Title.css +4 -3
  7. package/build/cjs/models/constructor-items/blocks.d.ts +1 -1
  8. package/build/cjs/models/constructor-items/sub-blocks.d.ts +8 -8
  9. package/build/cjs/schema/constants.d.ts +217 -77
  10. package/build/cjs/sub-blocks/AttachmentCard/AttachmentCard.css +6 -0
  11. package/build/cjs/sub-blocks/AttachmentCard/AttachmentCard.js +1 -1
  12. package/build/cjs/sub-blocks/AttachmentCard/schema.d.ts +31 -11
  13. package/build/cjs/sub-blocks/AttachmentCard/schema.js +9 -1
  14. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
  15. package/build/cjs/sub-blocks/BackgroundCard/BackgroundCard.js +1 -1
  16. package/build/cjs/sub-blocks/BackgroundCard/schema.d.ts +31 -11
  17. package/build/cjs/sub-blocks/BackgroundCard/schema.js +9 -1
  18. package/build/cjs/sub-blocks/BasicCard/BasicCard.css +6 -0
  19. package/build/cjs/sub-blocks/BasicCard/BasicCard.js +1 -1
  20. package/build/cjs/sub-blocks/BasicCard/schema.d.ts +31 -11
  21. package/build/cjs/sub-blocks/BasicCard/schema.js +9 -1
  22. package/build/cjs/sub-blocks/Card/Card.css +6 -0
  23. package/build/cjs/sub-blocks/Card/Card.js +1 -1
  24. package/build/cjs/sub-blocks/Card/schema.d.ts +31 -11
  25. package/build/cjs/sub-blocks/Card/schema.js +9 -1
  26. package/build/cjs/sub-blocks/CaseStudyCard/CaseStudyCard.js +1 -1
  27. package/build/cjs/sub-blocks/ImageCard/ImageCard.css +12 -5
  28. package/build/cjs/sub-blocks/ImageCard/ImageCard.js +1 -2
  29. package/build/cjs/sub-blocks/ImageCard/schema.d.ts +31 -11
  30. package/build/cjs/sub-blocks/ImageCard/schema.js +9 -1
  31. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.css +6 -0
  32. package/build/cjs/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  33. package/build/cjs/sub-blocks/LayoutItem/schema.d.ts +31 -11
  34. package/build/cjs/sub-blocks/LayoutItem/schema.js +9 -1
  35. package/build/cjs/sub-blocks/MediaCard/MediaCard.css +4 -1
  36. package/build/cjs/sub-blocks/MediaCard/MediaCard.js +1 -2
  37. package/build/cjs/sub-blocks/MediaCard/schema.d.ts +31 -11
  38. package/build/cjs/sub-blocks/MediaCard/schema.js +9 -1
  39. package/build/cjs/sub-blocks/PriceCard/PriceCard.css +6 -0
  40. package/build/cjs/sub-blocks/PriceCard/PriceCard.js +1 -1
  41. package/build/cjs/sub-blocks/PriceCard/schema.d.ts +31 -11
  42. package/build/cjs/sub-blocks/PriceCard/schema.js +9 -1
  43. package/build/esm/blocks/EventsSection/schema.d.ts +31 -11
  44. package/build/esm/blocks/EventsSection/schema.js +9 -1
  45. package/build/esm/components/Tag/Tag.css +0 -4
  46. package/build/esm/components/Tag/Tag.d.ts +1 -4
  47. package/build/esm/components/Tag/Tag.js +1 -1
  48. package/build/esm/components/Title/Title.css +4 -3
  49. package/build/esm/models/constructor-items/blocks.d.ts +1 -1
  50. package/build/esm/models/constructor-items/sub-blocks.d.ts +8 -8
  51. package/build/esm/schema/constants.d.ts +217 -77
  52. package/build/esm/sub-blocks/AttachmentCard/AttachmentCard.css +6 -0
  53. package/build/esm/sub-blocks/AttachmentCard/AttachmentCard.js +1 -1
  54. package/build/esm/sub-blocks/AttachmentCard/schema.d.ts +31 -11
  55. package/build/esm/sub-blocks/AttachmentCard/schema.js +9 -1
  56. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.css +6 -0
  57. package/build/esm/sub-blocks/BackgroundCard/BackgroundCard.js +1 -1
  58. package/build/esm/sub-blocks/BackgroundCard/schema.d.ts +31 -11
  59. package/build/esm/sub-blocks/BackgroundCard/schema.js +9 -1
  60. package/build/esm/sub-blocks/BasicCard/BasicCard.css +6 -0
  61. package/build/esm/sub-blocks/BasicCard/BasicCard.js +1 -1
  62. package/build/esm/sub-blocks/BasicCard/schema.d.ts +31 -11
  63. package/build/esm/sub-blocks/BasicCard/schema.js +9 -1
  64. package/build/esm/sub-blocks/Card/Card.css +6 -0
  65. package/build/esm/sub-blocks/Card/Card.js +1 -1
  66. package/build/esm/sub-blocks/Card/schema.d.ts +31 -11
  67. package/build/esm/sub-blocks/Card/schema.js +9 -1
  68. package/build/esm/sub-blocks/CaseStudyCard/CaseStudyCard.js +1 -1
  69. package/build/esm/sub-blocks/ImageCard/ImageCard.css +12 -5
  70. package/build/esm/sub-blocks/ImageCard/ImageCard.js +1 -2
  71. package/build/esm/sub-blocks/ImageCard/schema.d.ts +31 -11
  72. package/build/esm/sub-blocks/ImageCard/schema.js +9 -1
  73. package/build/esm/sub-blocks/LayoutItem/LayoutItem.css +6 -0
  74. package/build/esm/sub-blocks/LayoutItem/LayoutItem.js +1 -1
  75. package/build/esm/sub-blocks/LayoutItem/schema.d.ts +31 -11
  76. package/build/esm/sub-blocks/LayoutItem/schema.js +9 -1
  77. package/build/esm/sub-blocks/MediaCard/MediaCard.css +4 -1
  78. package/build/esm/sub-blocks/MediaCard/MediaCard.js +1 -2
  79. package/build/esm/sub-blocks/MediaCard/schema.d.ts +31 -11
  80. package/build/esm/sub-blocks/MediaCard/schema.js +9 -1
  81. package/build/esm/sub-blocks/PriceCard/PriceCard.css +6 -0
  82. package/build/esm/sub-blocks/PriceCard/PriceCard.js +1 -1
  83. package/build/esm/sub-blocks/PriceCard/schema.d.ts +31 -11
  84. package/build/esm/sub-blocks/PriceCard/schema.js +9 -1
  85. package/package.json +1 -1
  86. package/schema/index.js +1 -1
  87. package/server/models/constructor-items/blocks.d.ts +1 -1
  88. package/server/models/constructor-items/sub-blocks.d.ts +8 -8
  89. package/widget/index.js +1 -1
@@ -163,20 +163,40 @@ export declare const EventsSectionBlock: {
163
163
  })[];
164
164
  };
165
165
  label: {
166
- type: string;
167
- additionalProperties: boolean;
168
- required: string[];
169
- properties: {
170
- text: {
171
- type: string;
172
- };
173
- backgroundColor: {
174
- type: string;
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
- textColor: {
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: common_1.Tag, empty: {
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
- type Props = TagProps & {
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, withoutMarginBottom }) => (react_1.default.createElement("div", { className: b({ ['without-margin-bottom']: withoutMarginBottom }), style: { backgroundColor, color: textColor } }, text));
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
- type: string;
604
- additionalProperties: boolean;
605
- required: string[];
606
- properties: {
607
- text: {
608
- type: string;
609
- };
610
- backgroundColor: {
611
- type: string;
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
- textColor: {
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
- type: string;
1046
- additionalProperties: boolean;
1047
- required: string[];
1048
- properties: {
1049
- text: {
1050
- type: string;
1051
- };
1052
- backgroundColor: {
1053
- type: string;
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
- textColor: {
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
- type: string;
1765
- additionalProperties: boolean;
1766
- required: string[];
1767
- properties: {
1768
- text: {
1769
- type: string;
1770
- };
1771
- backgroundColor: {
1772
- type: string;
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
- textColor: {
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
- type: string;
2336
- additionalProperties: boolean;
2337
- required: string[];
2338
- properties: {
2339
- text: {
2340
- type: string;
2341
- };
2342
- backgroundColor: {
2343
- type: string;
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
- textColor: {
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
- type: string;
2411
- additionalProperties: boolean;
2412
- required: string[];
2413
- properties: {
2414
- text: {
2415
- type: string;
2416
- };
2417
- backgroundColor: {
2418
- type: string;
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
- textColor: {
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
- type: string;
3019
- additionalProperties: boolean;
3020
- required: string[];
3021
- properties: {
3022
- text: {
3023
- type: string;
3024
- };
3025
- backgroundColor: {
3026
- type: string;
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
- textColor: {
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
- type: string;
3661
- additionalProperties: boolean;
3662
- required: string[];
3663
- properties: {
3664
- text: {
3665
- type: string;
3666
- };
3667
- backgroundColor: {
3668
- type: string;
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
- textColor: {
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
- type: string;
211
- additionalProperties: boolean;
212
- required: string[];
213
- properties: {
214
- text: {
215
- type: string;
216
- };
217
- backgroundColor: {
218
- type: string;
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
- textColor: {
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;
@@ -47,6 +47,14 @@ exports.AttachmentCard = {
47
47
  },
48
48
  },
49
49
  },
50
- }, label: common_1.Tag }),
50
+ }, label: {
51
+ oneOf: [
52
+ common_1.Tag,
53
+ {
54
+ type: 'array',
55
+ items: common_1.Tag,
56
+ },
57
+ ],
58
+ } }),
51
59
  },
52
60
  };
@@ -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;