@kickstartds/ds-agency-premium 1.2.22 → 1.2.24

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.
@@ -0,0 +1,242 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+ /**
8
+ * The URL of the logo image
9
+ */
10
+ type URL = string;
11
+ /**
12
+ * The alt text of the logo
13
+ */
14
+ type Caption = string;
15
+ /**
16
+ * Logo entry for Logos component
17
+ */
18
+ interface LogoProps {
19
+ src: URL;
20
+ alt?: Caption;
21
+ }
22
+ /**
23
+ * A short tagline atop the logos
24
+ */
25
+ type LogoTagline = string;
26
+ /**
27
+ * The logos to display
28
+ *
29
+ * @minItems 1
30
+ * @maxItems 20
31
+ */
32
+ type Logos = [LogoProps] | [LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [
33
+ LogoProps,
34
+ LogoProps,
35
+ LogoProps,
36
+ LogoProps,
37
+ LogoProps,
38
+ LogoProps,
39
+ LogoProps,
40
+ LogoProps,
41
+ LogoProps,
42
+ LogoProps,
43
+ LogoProps
44
+ ] | [
45
+ LogoProps,
46
+ LogoProps,
47
+ LogoProps,
48
+ LogoProps,
49
+ LogoProps,
50
+ LogoProps,
51
+ LogoProps,
52
+ LogoProps,
53
+ LogoProps,
54
+ LogoProps,
55
+ LogoProps,
56
+ LogoProps
57
+ ] | [
58
+ LogoProps,
59
+ LogoProps,
60
+ LogoProps,
61
+ LogoProps,
62
+ LogoProps,
63
+ LogoProps,
64
+ LogoProps,
65
+ LogoProps,
66
+ LogoProps,
67
+ LogoProps,
68
+ LogoProps,
69
+ LogoProps,
70
+ LogoProps
71
+ ] | [
72
+ LogoProps,
73
+ LogoProps,
74
+ LogoProps,
75
+ LogoProps,
76
+ LogoProps,
77
+ LogoProps,
78
+ LogoProps,
79
+ LogoProps,
80
+ LogoProps,
81
+ LogoProps,
82
+ LogoProps,
83
+ LogoProps,
84
+ LogoProps,
85
+ LogoProps
86
+ ] | [
87
+ LogoProps,
88
+ LogoProps,
89
+ LogoProps,
90
+ LogoProps,
91
+ LogoProps,
92
+ LogoProps,
93
+ LogoProps,
94
+ LogoProps,
95
+ LogoProps,
96
+ LogoProps,
97
+ LogoProps,
98
+ LogoProps,
99
+ LogoProps,
100
+ LogoProps,
101
+ LogoProps
102
+ ] | [
103
+ LogoProps,
104
+ LogoProps,
105
+ LogoProps,
106
+ LogoProps,
107
+ LogoProps,
108
+ LogoProps,
109
+ LogoProps,
110
+ LogoProps,
111
+ LogoProps,
112
+ LogoProps,
113
+ LogoProps,
114
+ LogoProps,
115
+ LogoProps,
116
+ LogoProps,
117
+ LogoProps,
118
+ LogoProps
119
+ ] | [
120
+ LogoProps,
121
+ LogoProps,
122
+ LogoProps,
123
+ LogoProps,
124
+ LogoProps,
125
+ LogoProps,
126
+ LogoProps,
127
+ LogoProps,
128
+ LogoProps,
129
+ LogoProps,
130
+ LogoProps,
131
+ LogoProps,
132
+ LogoProps,
133
+ LogoProps,
134
+ LogoProps,
135
+ LogoProps,
136
+ LogoProps
137
+ ] | [
138
+ LogoProps,
139
+ LogoProps,
140
+ LogoProps,
141
+ LogoProps,
142
+ LogoProps,
143
+ LogoProps,
144
+ LogoProps,
145
+ LogoProps,
146
+ LogoProps,
147
+ LogoProps,
148
+ LogoProps,
149
+ LogoProps,
150
+ LogoProps,
151
+ LogoProps,
152
+ LogoProps,
153
+ LogoProps,
154
+ LogoProps,
155
+ LogoProps
156
+ ] | [
157
+ LogoProps,
158
+ LogoProps,
159
+ LogoProps,
160
+ LogoProps,
161
+ LogoProps,
162
+ LogoProps,
163
+ LogoProps,
164
+ LogoProps,
165
+ LogoProps,
166
+ LogoProps,
167
+ LogoProps,
168
+ LogoProps,
169
+ LogoProps,
170
+ LogoProps,
171
+ LogoProps,
172
+ LogoProps,
173
+ LogoProps,
174
+ LogoProps,
175
+ LogoProps
176
+ ] | [
177
+ LogoProps,
178
+ LogoProps,
179
+ LogoProps,
180
+ LogoProps,
181
+ LogoProps,
182
+ LogoProps,
183
+ LogoProps,
184
+ LogoProps,
185
+ LogoProps,
186
+ LogoProps,
187
+ LogoProps,
188
+ LogoProps,
189
+ LogoProps,
190
+ LogoProps,
191
+ LogoProps,
192
+ LogoProps,
193
+ LogoProps,
194
+ LogoProps,
195
+ LogoProps,
196
+ LogoProps
197
+ ];
198
+ /**
199
+ * The alignment of the logo layout
200
+ */
201
+ type Alignment = "left" | "center";
202
+ /**
203
+ * The amount of logos to display per row
204
+ */
205
+ type LogosPerRow = number;
206
+ /**
207
+ * Activate/disable the CTA
208
+ */
209
+ type CTAToggle = boolean;
210
+ /**
211
+ * A short CTA text
212
+ */
213
+ type CallToActionText = string;
214
+ /**
215
+ * The CTA link
216
+ */
217
+ type CallToActionLink = string;
218
+ /**
219
+ * The text label displayed on the link
220
+ */
221
+ type LinkLabel = string;
222
+ /**
223
+ * Component used to display a set of logos
224
+ */
225
+ interface LogosProps {
226
+ tagline?: LogoTagline;
227
+ logo?: Logos;
228
+ align?: Alignment;
229
+ logosPerRow?: LogosPerRow;
230
+ cta?: CallToAction;
231
+ }
232
+ /**
233
+ * The call to action
234
+ */
235
+ interface CallToAction {
236
+ toggle?: CTAToggle;
237
+ text?: CallToActionText;
238
+ link: CallToActionLink;
239
+ label: LinkLabel;
240
+ style: "button" | "text";
241
+ }
242
+ export { URL, Caption, LogoProps, LogoTagline, Logos, Alignment, LogosPerRow, CTAToggle, CallToActionText, CallToActionLink, LinkLabel, LogosProps, CallToAction };
@@ -10,10 +10,10 @@ import { GalleryProps } from "./GalleryProps-76e7de44.js";
10
10
  import { HeroProps } from "./HeroProps-cf82a16d.js";
11
11
  import { ImageStoryProps } from "./ImageStoryProps-24e0335c.js";
12
12
  import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
13
- import { LogosProps } from "./LogosProps-a8efd101.js";
13
+ import { LogosProps } from "./LogosProps-58c84ccc.js";
14
14
  import { MosaicProps } from "./MosaicProps-aacb9422.js";
15
15
  import { SliderProps } from "./SliderProps-8cae490d.js";
16
- import { StatsProps } from "./StatsProps-17b0743a.js";
16
+ import { StatsProps } from "./StatsProps-bf5ef578.js";
17
17
  import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
18
18
  import { TestimonialsProps } from "./TestimonialsProps-72bb9288.js";
19
19
  import { TextProps } from "./TextProps-a23170d2.js";
@@ -3,13 +3,6 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
- /**
7
- * The stats to display with a number upcounter
8
- *
9
- * @minItems 1
10
- * @maxItems 4
11
- */
12
- type Items = [Stat] | [Stat, Stat] | [Stat, Stat, Stat] | [Stat, Stat, Stat, Stat];
13
6
  /**
14
7
  * The number of the stat
15
8
  */
@@ -27,15 +20,12 @@ type Title = string;
27
20
  */
28
21
  type Icon = string;
29
22
  /**
30
- * Component used to display stats with a number upcounter
23
+ * Stat entry of Stats component
31
24
  */
32
- interface StatsProps {
33
- items?: Items;
34
- }
35
- interface Stat {
25
+ interface StatProps {
36
26
  number: Number;
37
27
  description?: Description;
38
- title: Title;
28
+ title?: Title;
39
29
  icon?: Icon;
40
30
  }
41
- export { Items, Number, Description, Title, Icon, StatsProps, Stat };
31
+ export { Number, Description, Title, Icon, StatProps };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ import { StatProps } from "./StatProps-12a3eae0.js";
7
+ /**
8
+ * The stats to display with a number upcounter
9
+ *
10
+ * @minItems 1
11
+ * @maxItems 4
12
+ */
13
+ type Stats = [StatProps] | [StatProps, StatProps] | [StatProps, StatProps, StatProps] | [StatProps, StatProps, StatProps, StatProps];
14
+ /**
15
+ * Component used to display stats with a number upcounter
16
+ */
17
+ interface StatsProps {
18
+ stat?: Stats;
19
+ }
20
+ export { Stats, StatsProps };
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes, FC } from "react";
2
- import { LogosProps } from "../../LogosProps-a8efd101.js";
2
+ import { LogosProps } from "../../LogosProps-58c84ccc.js";
3
3
  declare const Logos: FC<LogosProps & HTMLAttributes<HTMLElement>>;
4
4
  export { Logos };
@@ -5,8 +5,8 @@ import { LogoTiles } from '@kickstartds/content/lib/logo-tiles';
5
5
  import { Button } from '@kickstartds/base/lib/button';
6
6
  import { Link } from '@kickstartds/base/lib/link';
7
7
 
8
- const Logos = ({ items = [], tagline, align, cta, logosPerRow = "6", }) => {
9
- return (jsx(Fragment, { children: jsxs("div", { className: classnames(`dsa-logos dsa-logos--align-${align}`), children: [jsx("div", { className: "dsa-logos__tagline", children: tagline }), jsx(LogoTiles, { className: classnames(`dsa-logo-tiles dsa-logo-tiles--cols-${logosPerRow}`), logos: items }), cta?.toggle ? (jsxs("div", { className: "dsa-logos__cta", children: [jsxs("div", { className: "dsa-logos__cta__text", children: [cta?.text, cta?.style === "text" ? (jsxs(Fragment, { children: [" ", jsx(Link, { className: "dsa-logos__cta__link", href: cta.link, children: cta.label })] })) : ("")] }), cta?.style === "button" ? (jsx(Button, { href: cta.link, label: cta.label })) : ("")] })) : ("")] }) }));
8
+ const Logos = ({ logo: logos = [], tagline, align, cta, logosPerRow = "6", }) => {
9
+ return (jsx(Fragment, { children: jsxs("div", { className: classnames(`dsa-logos dsa-logos--align-${align}`), children: [jsx("div", { className: "dsa-logos__tagline", children: tagline }), jsx(LogoTiles, { className: classnames(`dsa-logo-tiles dsa-logo-tiles--cols-${logosPerRow}`), logos: logos }), cta?.toggle ? (jsxs("div", { className: "dsa-logos__cta", children: [jsxs("div", { className: "dsa-logos__cta__text", children: [cta?.text, cta?.style === "text" ? (jsxs(Fragment, { children: [" ", jsx(Link, { className: "dsa-logos__cta__link", href: cta.link, children: cta.label })] })) : ("")] }), cta?.style === "button" ? (jsx(Button, { href: cta.link, label: cta.label })) : ("")] })) : ("")] }) }));
10
10
  };
11
11
 
12
12
  export { Logos };
@@ -13,15 +13,20 @@
13
13
  "Your Success, Our Commitment"
14
14
  ]
15
15
  },
16
- "items": {
16
+ "logo": {
17
17
  "type": "array",
18
- "title": "Items",
18
+ "title": "Logos",
19
19
  "description": "The logos to display",
20
20
  "items": {
21
+ "$schema": "http://json-schema.org/draft-07/schema#",
22
+ "$id": "http://schema.mydesignsystem.com/logo.schema.json",
23
+ "title": "Logo",
24
+ "description": "Logo entry for Logos component",
21
25
  "type": "object",
22
26
  "properties": {
23
27
  "src": {
24
28
  "type": "string",
29
+ "format": "image",
25
30
  "title": "URL",
26
31
  "description": "The URL of the logo image",
27
32
  "examples": [
@@ -40,6 +45,9 @@
40
45
  "examples": [
41
46
  "Logo 1"
42
47
  ]
48
+ },
49
+ "type": {
50
+ "const": "logo"
43
51
  }
44
52
  },
45
53
  "additionalProperties": false,
@@ -11,35 +11,12 @@
11
11
  "description": "A short tagline atop the logos",
12
12
  "examples": ["Your Success, Our Commitment"]
13
13
  },
14
- "items": {
14
+ "logo": {
15
15
  "type": "array",
16
- "title": "Items",
16
+ "title": "Logos",
17
17
  "description": "The logos to display",
18
18
  "items": {
19
- "type": "object",
20
- "properties": {
21
- "src": {
22
- "type": "string",
23
- "title": "URL",
24
- "description": "The URL of the logo image",
25
- "examples": [
26
- "img/logos/logoipsum-212.svg",
27
- "img/logos/logoipsum-217.svg",
28
- "img/logos/logoipsum-239.svg",
29
- "img/logos/logoipsum-244.svg",
30
- "img/logos/logoipsum-250.svg",
31
- "img/logos/logoipsum-286.svg"
32
- ]
33
- },
34
- "alt": {
35
- "type": "string",
36
- "title": "Caption",
37
- "description": "The alt text of the logo",
38
- "examples": ["Logo 1"]
39
- }
40
- },
41
- "additionalProperties": false,
42
- "required": ["src"]
19
+ "$ref": "http://schema.mydesignsystem.com/logo.schema.json"
43
20
  },
44
21
  "minItems": 1,
45
22
  "maxItems": 20
@@ -1098,15 +1098,20 @@
1098
1098
  "Your Success, Our Commitment"
1099
1099
  ]
1100
1100
  },
1101
- "items": {
1101
+ "logo": {
1102
1102
  "type": "array",
1103
- "title": "Items",
1103
+ "title": "Logos",
1104
1104
  "description": "The logos to display",
1105
1105
  "items": {
1106
+ "$schema": "http://json-schema.org/draft-07/schema#",
1107
+ "$id": "http://schema.mydesignsystem.com/logo.schema.json",
1108
+ "title": "Logo",
1109
+ "description": "Logo entry for Logos component",
1106
1110
  "type": "object",
1107
1111
  "properties": {
1108
1112
  "src": {
1109
1113
  "type": "string",
1114
+ "format": "image",
1110
1115
  "title": "URL",
1111
1116
  "description": "The URL of the logo image",
1112
1117
  "examples": [
@@ -1125,6 +1130,9 @@
1125
1130
  "examples": [
1126
1131
  "Logo 1"
1127
1132
  ]
1133
+ },
1134
+ "type": {
1135
+ "const": "logo"
1128
1136
  }
1129
1137
  },
1130
1138
  "additionalProperties": false,
@@ -1401,13 +1409,16 @@
1401
1409
  "description": "Component used to display stats with a number upcounter",
1402
1410
  "type": "object",
1403
1411
  "properties": {
1404
- "items": {
1405
- "title": "Items",
1412
+ "stat": {
1413
+ "title": "Stats",
1406
1414
  "type": "array",
1407
1415
  "description": "The stats to display with a number upcounter",
1408
1416
  "items": {
1409
- "type": "object",
1417
+ "$schema": "http://json-schema.org/draft-07/schema#",
1418
+ "$id": "http://schema.mydesignsystem.com/stat.schema.json",
1410
1419
  "title": "Stat",
1420
+ "description": "Stat entry of Stats component",
1421
+ "type": "object",
1411
1422
  "properties": {
1412
1423
  "number": {
1413
1424
  "title": "Number",
@@ -1423,12 +1434,14 @@
1423
1434
  "description": {
1424
1435
  "title": "Description",
1425
1436
  "description": "Optional description of the stat",
1426
- "type": "string"
1437
+ "type": "string",
1438
+ "format": "markdown"
1427
1439
  },
1428
1440
  "title": {
1429
1441
  "title": "Title",
1430
1442
  "description": "Title of the stat",
1431
1443
  "type": "string",
1444
+ "format": "markdown",
1432
1445
  "examples": [
1433
1446
  "Stat 1",
1434
1447
  "Stat 2",
@@ -1445,12 +1458,33 @@
1445
1458
  "home",
1446
1459
  "map"
1447
1460
  ]
1461
+ },
1462
+ "type": {
1463
+ "const": "stat"
1448
1464
  }
1449
1465
  },
1450
1466
  "additionalProperties": false,
1451
1467
  "required": [
1452
1468
  "number",
1453
- "title"
1469
+ "label"
1470
+ ],
1471
+ "examples": [
1472
+ {
1473
+ "number": 1,
1474
+ "label": "Stat 1"
1475
+ },
1476
+ {
1477
+ "number": 2,
1478
+ "label": "Stat 2"
1479
+ },
1480
+ {
1481
+ "number": 3,
1482
+ "label": "Stat 3"
1483
+ },
1484
+ {
1485
+ "value": 4,
1486
+ "label": "Stat 4"
1487
+ }
1454
1488
  ]
1455
1489
  },
1456
1490
  "minItems": 1,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 01 Mar 2024 18:00:15 GMT
3
+ * Generated on Fri, 01 Mar 2024 19:33:36 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);