@kickstartds/ds-agency-premium 1.5.39--canary.1081.bfadc60.0 → 1.5.40

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 (77) hide show
  1. package/dist/BlogOverviewProps-9f207f1c.d.ts +1 -1
  2. package/dist/BlogPostProps-6b3cff22.d.ts +1 -1
  3. package/dist/DividerProps-2ef31901.d.ts +26 -0
  4. package/dist/HtmlProps-8e3e725a.d.ts +23 -0
  5. package/dist/PageProps-aa29c554.d.ts +1 -1
  6. package/dist/{SectionProps-83d399b4.d.ts → SectionProps-7a46a8ad.d.ts} +3 -1
  7. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +63 -0
  8. package/dist/components/blog-post/blog-post.schema.dereffed.json +63 -0
  9. package/dist/components/divider/divider.css +14 -5
  10. package/dist/components/divider/index.d.ts +1 -26
  11. package/dist/components/header/index.d.ts +3 -3
  12. package/dist/components/header/index.js +1 -1
  13. package/dist/components/headline/headline.css +16 -0
  14. package/dist/components/headline/headline.schema.dereffed.json +5 -0
  15. package/dist/components/headline/headline.schema.json +5 -0
  16. package/dist/components/headline/index.d.ts +5 -0
  17. package/dist/components/headline/index.js +1 -1
  18. package/dist/components/html/html.schema.dereffed.json +30 -0
  19. package/dist/components/html/html.schema.json +2 -2
  20. package/dist/components/html/index.d.ts +5 -27
  21. package/dist/components/page/page.schema.dereffed.json +63 -0
  22. package/dist/components/page-wrapper/tokens.css +405 -404
  23. package/dist/components/section/index.d.ts +1 -1
  24. package/dist/components/section/section.schema.dereffed.json +63 -0
  25. package/dist/components/section/section.schema.json +6 -0
  26. package/dist/global.css +44 -9
  27. package/dist/static/fonts/dsa/Fredoka-Bold.woff +0 -0
  28. package/dist/static/fonts/dsa/Fredoka-Bold.woff2 +0 -0
  29. package/dist/static/fonts/dsa/Fredoka-Light.woff +0 -0
  30. package/dist/static/fonts/dsa/Fredoka-Light.woff2 +0 -0
  31. package/dist/static/fonts/dsa/Fredoka-Medium.woff +0 -0
  32. package/dist/static/fonts/dsa/Fredoka-Medium.woff2 +0 -0
  33. package/dist/static/fonts/dsa/Fredoka-Regular.woff +0 -0
  34. package/dist/static/fonts/dsa/Fredoka-Regular.woff2 +0 -0
  35. package/dist/static/fonts/dsa/Fredoka-SemiBold.woff +0 -0
  36. package/dist/static/fonts/dsa/Fredoka-SemiBold.woff2 +0 -0
  37. package/dist/static/fonts/dsa/Mulish-300.woff +0 -0
  38. package/dist/static/fonts/dsa/Mulish-300.woff2 +0 -0
  39. package/dist/static/fonts/dsa/Mulish-600.woff +0 -0
  40. package/dist/static/fonts/dsa/Mulish-600.woff2 +0 -0
  41. package/dist/static/fonts/dsa/Mulish-800.woff +0 -0
  42. package/dist/static/fonts/dsa/Mulish-800.woff2 +0 -0
  43. package/dist/static/fonts/dsa/Mulish-Regular.woff +0 -0
  44. package/dist/static/fonts/dsa/Mulish-Regular.woff2 +0 -0
  45. package/dist/static/img/screenshots/blog-blog-aside--default.png +0 -0
  46. package/dist/static/img/screenshots/blog-blog-author--default.png +0 -0
  47. package/dist/static/img/screenshots/components-contact--wide-image.png +0 -0
  48. package/dist/static/img/screenshots/components-stats--count-up-with-description.png +0 -0
  49. package/dist/static/img/screenshots/components-stats--count-up-with-icons.png +0 -0
  50. package/dist/static/img/screenshots/components-teaser-card--page-navigation.png +0 -0
  51. package/dist/static/img/screenshots/components-testimonials--slider-layout.png +0 -0
  52. package/dist/static/img/screenshots/components-testimonials--with-rating.png +0 -0
  53. package/dist/static/img/screenshots/layout-divider--accent.png +0 -0
  54. package/dist/static/img/screenshots/layout-divider--default.png +0 -0
  55. package/dist/static/img/screenshots/layout-footer--footer.png +0 -0
  56. package/dist/static/img/screenshots/layout-slider--with-arrows.png +0 -0
  57. package/dist/static/img/screenshots/layout-slider--with-autoplay.png +0 -0
  58. package/dist/static/img/screenshots/layout-slider--with-nav.png +0 -0
  59. package/dist/static/img/screenshots/layout-slider--with-teased-neighbours.png +0 -0
  60. package/dist/static/img/screenshots/pages-archetypes--blog-post.png +0 -0
  61. package/dist/static/img/screenshots/pages-archetypes--overview.png +0 -0
  62. package/dist/tokens/themes.css +4 -4
  63. package/dist/tokens/tokens.css +405 -404
  64. package/dist/tokens/tokens.js +614 -613
  65. package/package.json +1 -1
  66. package/dist/static/fonts/dsa/Vollkorn-Black.woff +0 -0
  67. package/dist/static/fonts/dsa/Vollkorn-Black.woff2 +0 -0
  68. package/dist/static/fonts/dsa/Vollkorn-Bold.woff +0 -0
  69. package/dist/static/fonts/dsa/Vollkorn-Bold.woff2 +0 -0
  70. package/dist/static/fonts/dsa/Vollkorn-ExtraBold.woff +0 -0
  71. package/dist/static/fonts/dsa/Vollkorn-ExtraBold.woff2 +0 -0
  72. package/dist/static/fonts/dsa/Vollkorn-Medium.woff +0 -0
  73. package/dist/static/fonts/dsa/Vollkorn-Medium.woff2 +0 -0
  74. package/dist/static/fonts/dsa/Vollkorn-Regular.woff +0 -0
  75. package/dist/static/fonts/dsa/Vollkorn-Regular.woff2 +0 -0
  76. package/dist/static/fonts/dsa/Vollkorn-SemiBold.woff +0 -0
  77. package/dist/static/fonts/dsa/Vollkorn-SemiBold.woff2 +0 -0
@@ -3,7 +3,7 @@
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
- import { SectionProps } from "./SectionProps-83d399b4.js";
6
+ import { SectionProps } from "./SectionProps-7a46a8ad.js";
7
7
  import { BlogTeaserProps } from "./BlogTeaserProps-f5855e93.js";
8
8
  import { CtaProps } from "./CtaProps-93230a76.js";
9
9
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { BlogHeadProps } from "./BlogHeadProps-3f6e4072.js";
7
7
  import { BlogAsideProps } from "./BlogAsideProps-d9decb7c.js";
8
- import { SectionProps } from "./SectionProps-83d399b4.js";
8
+ import { SectionProps } from "./SectionProps-7a46a8ad.js";
9
9
  import { CtaProps } from "./CtaProps-93230a76.js";
10
10
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
11
11
  /**
@@ -0,0 +1,26 @@
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
+ /**
7
+ * Choose a variant for the divider
8
+ */
9
+ type StyleOfTheDivider = "default" | "accent";
10
+ /**
11
+ * Add additional css classes that should be applied to the divider
12
+ */
13
+ type AdditionalClasses = string;
14
+ /**
15
+ * Optional custom component identifier
16
+ */
17
+ type KsComponentAttribute = string;
18
+ /**
19
+ * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
20
+ */
21
+ interface DividerProps {
22
+ variant?: StyleOfTheDivider;
23
+ className?: AdditionalClasses;
24
+ component?: KsComponentAttribute;
25
+ }
26
+ export { StyleOfTheDivider, AdditionalClasses, KsComponentAttribute, DividerProps };
@@ -0,0 +1,23 @@
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
+ type HTMLString = string;
7
+ /**
8
+ * Add additional css classes that should be applied to the element
9
+ */
10
+ type AdditionalClasses = string;
11
+ /**
12
+ * Optional custom component identifier
13
+ */
14
+ type KsComponentAttribute = string;
15
+ /**
16
+ * Display raw HTML.
17
+ */
18
+ interface HtmlProps {
19
+ html?: HTMLString;
20
+ className?: AdditionalClasses;
21
+ component?: KsComponentAttribute;
22
+ }
23
+ export { HTMLString, AdditionalClasses, KsComponentAttribute, HtmlProps };
@@ -3,7 +3,7 @@
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
- import { SectionProps } from "./SectionProps-83d399b4.js";
6
+ import { SectionProps } from "./SectionProps-7a46a8ad.js";
7
7
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
8
8
  /**
9
9
  * Collection of sections (with their contents) to render on the page
@@ -4,10 +4,12 @@
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
6
  import { CtaProps } from "./CtaProps-93230a76.js";
7
+ import { DividerProps } from "./DividerProps-2ef31901.js";
7
8
  import { FaqProps } from "./FaqProps-ad618cd5.js";
8
9
  import { FeaturesProps } from "./FeaturesProps-b05859d6.js";
9
10
  import { GalleryProps } from "./GalleryProps-76e7de44.js";
10
11
  import { HeroProps } from "./HeroProps-cf82a16d.js";
12
+ import { HtmlProps } from "./HtmlProps-8e3e725a.js";
11
13
  import { ImageStoryProps } from "./ImageStoryProps-e853e1e7.js";
12
14
  import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
13
15
  import { LogosProps } from "./LogosProps-f9474fe2.js";
@@ -102,7 +104,7 @@ type TileWidth = "smallest" | "default" | "medium" | "large" | "largest";
102
104
  /**
103
105
  * Allowed components for content
104
106
  */
105
- type Content = (CtaProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
107
+ type Content = (CtaProps | DividerProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | HtmlProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
106
108
  /**
107
109
  * Buttons of the Button Group
108
110
  */
@@ -396,6 +396,39 @@
396
396
  },
397
397
  "additionalProperties": false
398
398
  },
399
+ {
400
+ "$schema": "http://json-schema.org/draft-07/schema#",
401
+ "$id": "http://schema.mydesignsystem.com/divider.schema.json",
402
+ "title": "Divider",
403
+ "description": "Dividers bring clarity to a layout by grouping and dividing content in close proximity.",
404
+ "type": "object",
405
+ "properties": {
406
+ "variant": {
407
+ "title": "Style of the divider",
408
+ "type": "string",
409
+ "description": "Choose a variant for the divider",
410
+ "enum": [
411
+ "default",
412
+ "accent"
413
+ ],
414
+ "default": "default"
415
+ },
416
+ "className": {
417
+ "type": "string",
418
+ "title": "Additional Classes",
419
+ "description": "Add additional css classes that should be applied to the divider"
420
+ },
421
+ "component": {
422
+ "title": "`ks-component` attribute",
423
+ "description": "Optional custom component identifier",
424
+ "type": "string"
425
+ },
426
+ "type": {
427
+ "const": "divider"
428
+ }
429
+ },
430
+ "additionalProperties": false
431
+ },
399
432
  {
400
433
  "$schema": "http://json-schema.org/draft-07/schema#",
401
434
  "$id": "http://schema.mydesignsystem.com/faq.schema.json",
@@ -858,6 +891,36 @@
858
891
  },
859
892
  "additionalProperties": false
860
893
  },
894
+ {
895
+ "$schema": "http://json-schema.org/draft-07/schema#",
896
+ "$id": "http://schema.mydesignsystem.com/html.schema.json",
897
+ "title": "Html",
898
+ "description": "Display raw HTML.",
899
+ "type": "object",
900
+ "properties": {
901
+ "html": {
902
+ "title": "HTML string",
903
+ "type": "string",
904
+ "examples": [
905
+ "<p>Hello world!</p>"
906
+ ]
907
+ },
908
+ "className": {
909
+ "title": "Additional Classes",
910
+ "description": "Add additional css classes that should be applied to the element",
911
+ "type": "string"
912
+ },
913
+ "component": {
914
+ "title": "`ks-component` attribute",
915
+ "description": "Optional custom component identifier",
916
+ "type": "string"
917
+ },
918
+ "type": {
919
+ "const": "html"
920
+ }
921
+ },
922
+ "additionalProperties": false
923
+ },
861
924
  {
862
925
  "$schema": "http://json-schema.org/draft-07/schema#",
863
926
  "$id": "http://schema.mydesignsystem.com/image-story.schema.json",
@@ -664,6 +664,39 @@
664
664
  },
665
665
  "additionalProperties": false
666
666
  },
667
+ {
668
+ "$schema": "http://json-schema.org/draft-07/schema#",
669
+ "$id": "http://schema.mydesignsystem.com/divider.schema.json",
670
+ "title": "Divider",
671
+ "description": "Dividers bring clarity to a layout by grouping and dividing content in close proximity.",
672
+ "type": "object",
673
+ "properties": {
674
+ "variant": {
675
+ "title": "Style of the divider",
676
+ "type": "string",
677
+ "description": "Choose a variant for the divider",
678
+ "enum": [
679
+ "default",
680
+ "accent"
681
+ ],
682
+ "default": "default"
683
+ },
684
+ "className": {
685
+ "type": "string",
686
+ "title": "Additional Classes",
687
+ "description": "Add additional css classes that should be applied to the divider"
688
+ },
689
+ "component": {
690
+ "title": "`ks-component` attribute",
691
+ "description": "Optional custom component identifier",
692
+ "type": "string"
693
+ },
694
+ "type": {
695
+ "const": "divider"
696
+ }
697
+ },
698
+ "additionalProperties": false
699
+ },
667
700
  {
668
701
  "$schema": "http://json-schema.org/draft-07/schema#",
669
702
  "$id": "http://schema.mydesignsystem.com/faq.schema.json",
@@ -1126,6 +1159,36 @@
1126
1159
  },
1127
1160
  "additionalProperties": false
1128
1161
  },
1162
+ {
1163
+ "$schema": "http://json-schema.org/draft-07/schema#",
1164
+ "$id": "http://schema.mydesignsystem.com/html.schema.json",
1165
+ "title": "Html",
1166
+ "description": "Display raw HTML.",
1167
+ "type": "object",
1168
+ "properties": {
1169
+ "html": {
1170
+ "title": "HTML string",
1171
+ "type": "string",
1172
+ "examples": [
1173
+ "<p>Hello world!</p>"
1174
+ ]
1175
+ },
1176
+ "className": {
1177
+ "title": "Additional Classes",
1178
+ "description": "Add additional css classes that should be applied to the element",
1179
+ "type": "string"
1180
+ },
1181
+ "component": {
1182
+ "title": "`ks-component` attribute",
1183
+ "description": "Optional custom component identifier",
1184
+ "type": "string"
1185
+ },
1186
+ "type": {
1187
+ "const": "html"
1188
+ }
1189
+ },
1190
+ "additionalProperties": false
1191
+ },
1129
1192
  {
1130
1193
  "$schema": "http://json-schema.org/draft-07/schema#",
1131
1194
  "$id": "http://schema.mydesignsystem.com/image-story.schema.json",
@@ -1,13 +1,22 @@
1
1
  .dsa-divider {
2
- --dsa-divider--background: var(--ks-border-color-default);
3
- --dsa-divider--background_accent: var(--ks-border-color-accent);
2
+ --dsa-divider--background: var(--ks-border-color-interface);
3
+ --dsa-divider--background_accent: var(--ks-border-color-interface);
4
4
  --dsa-divider--height: var(--ks-border-width-default);
5
5
  }
6
6
 
7
7
  hr.c-divider {
8
- --c-divider--background: var(--dsa-divider--background, var(--ks-border-color-default));
9
- --c-divider--height: var(--dsa-divider--height, var(--ks-border-width-default));
8
+ --c-divider--background: var(
9
+ --dsa-divider--background,
10
+ var(--ks-border-color-default)
11
+ );
12
+ --c-divider--height: var(
13
+ --dsa-divider--height,
14
+ var(--ks-border-width-default)
15
+ );
10
16
  }
11
17
  hr.c-divider--accent {
12
- --c-divider--background: var(--dsa-divider--background_accent, var(--ks-border-color-accent));
18
+ --c-divider--background: var(
19
+ --dsa-divider--background_accent,
20
+ var(--ks-border-color-accent)
21
+ );
13
22
  }
@@ -1,31 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes, FC, PropsWithChildren } from "react";
3
- /* eslint-disable */
4
- /**
5
- * This file was automatically generated by json-schema-to-typescript.
6
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
- * and run json-schema-to-typescript to regenerate this file.
8
- */
9
- /**
10
- * Choose a variant for the divider
11
- */
12
- type StyleOfTheDivider = "default" | "accent";
13
- /**
14
- * Add additional css classes that should be applied to the divider
15
- */
16
- type AdditionalClasses = string;
17
- /**
18
- * Optional custom component identifier
19
- */
20
- type KsComponentAttribute = string;
21
- /**
22
- * Dividers bring clarity to a layout by grouping and dividing content in close proximity.
23
- */
24
- interface DividerProps {
25
- variant?: StyleOfTheDivider;
26
- className?: AdditionalClasses;
27
- component?: KsComponentAttribute;
28
- }
3
+ import { DividerProps } from "../../DividerProps-2ef31901.js";
29
4
  declare const DividerContextDefault: import("react").ForwardRefExoticComponent<DividerProps & HTMLAttributes<HTMLHRElement> & import("react").RefAttributes<HTMLHRElement>>;
30
5
  declare const DividerContext: import("react").Context<import("react").ForwardRefExoticComponent<DividerProps & HTMLAttributes<HTMLHRElement> & import("react").RefAttributes<HTMLHRElement>>>;
31
6
  declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & HTMLAttributes<HTMLHRElement> & import("react").RefAttributes<HTMLHRElement>>;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
3
  import { HeaderProps } from "../../HeaderProps-e22382f1.js";
4
- declare const HeaderContextDefault: import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
- declare const HeaderContext: import("react").Context<import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
- declare const Header: import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
4
+ declare const HeaderContextDefault: import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
5
+ declare const HeaderContext: import("react").Context<import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>>;
6
+ declare const Header: import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
7
7
  export type { HeaderProps };
8
8
  export { HeaderContextDefault, HeaderContext, Header };
@@ -17,7 +17,7 @@ import '../nav-dropdown/index.js';
17
17
  import '../nav-flyout/index.js';
18
18
  import '@kickstartds/base/lib/picture';
19
19
 
20
- const HeaderContextDefault = forwardRef(({ logo, floating, inverted = false, flyoutInverted = false, dropdownInverted = false, navItems = [], }, ref) => (jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), ref: ref, children: jsxs("div", { className: "dsa-header__content", children: [jsx(Logo, { ...logo, className: "dsa-header__logo", inverted: inverted }), jsx(NavMain, { flyoutInverted: flyoutInverted, dropdownInverted: dropdownInverted, items: navItems, logo: {
20
+ const HeaderContextDefault = forwardRef(({ logo, floating, inverted = false, flyoutInverted = false, dropdownInverted = false, navItems = [], }, ref) => (jsx("header", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), ref: ref, children: jsxs("div", { className: "dsa-header__content", children: [jsx(Logo, { ...logo, className: "dsa-header__logo", inverted: inverted }), jsx(NavMain, { flyoutInverted: flyoutInverted, dropdownInverted: dropdownInverted, items: navItems, logo: {
21
21
  ...logo,
22
22
  inverted: flyoutInverted,
23
23
  } })] }) })));
@@ -53,6 +53,18 @@
53
53
  flex-direction: column;
54
54
  gap: var(--dsa-headline--gap, 0.25em);
55
55
  }
56
+ .dsa-headline__inner {
57
+ position: relative;
58
+ }
59
+ .dsa-headline__anchor {
60
+ --g-link--text-decoration: none;
61
+ visibility: hidden;
62
+ position: absolute;
63
+ left: calc(100% + var(--ks-spacing-inline-s));
64
+ }
65
+ .dsa-headline:hover .dsa-headline__anchor {
66
+ visibility: visible;
67
+ }
56
68
  .dsa-headline .dsa-headline__headline {
57
69
  font: var(--headline--font);
58
70
  text-transform: var(--dsa-headline--text-transform);
@@ -128,6 +140,10 @@
128
140
  text-align: right;
129
141
  margin-left: auto;
130
142
  }
143
+ .dsa-headline--align-right .dsa-headline__anchor {
144
+ left: auto;
145
+ right: calc(100% + var(--ks-spacing-inline-s));
146
+ }
131
147
 
132
148
  .dsa-headline strong,
133
149
  h1 strong,
@@ -74,6 +74,11 @@
74
74
  "title": "Class Name",
75
75
  "description": "Set a custom class name"
76
76
  },
77
+ "id": {
78
+ "type": "string",
79
+ "title": "ID",
80
+ "description": "Set a custom id attribute"
81
+ },
77
82
  "type": {
78
83
  "const": "headline"
79
84
  }
@@ -53,6 +53,11 @@
53
53
  "type": "string",
54
54
  "title": "Class Name",
55
55
  "description": "Set a custom class name"
56
+ },
57
+ "id": {
58
+ "type": "string",
59
+ "title": "ID",
60
+ "description": "Set a custom id attribute"
56
61
  }
57
62
  },
58
63
  "additionalProperties": false,
@@ -36,6 +36,10 @@ type SpaceAfter = "minimum" | "small" | "large";
36
36
  * Set a custom class name
37
37
  */
38
38
  type ClassName = string;
39
+ /**
40
+ * Set a custom id attribute
41
+ */
42
+ type ID = string;
39
43
  /**
40
44
  * Component used for headlines
41
45
  */
@@ -48,6 +52,7 @@ interface HeadlineProps {
48
52
  style?: Style;
49
53
  spaceAfter?: SpaceAfter;
50
54
  className?: ClassName;
55
+ id?: ID;
51
56
  }
52
57
  interface RenderFunctions {
53
58
  renderContent?: typeof defaultRenderFn;
@@ -9,7 +9,7 @@ const Headline = forwardRef(({ content, text = content, sub, align = "left", swi
9
9
  // @ts-expect-error: Some kDS Components set the `styleAs`Props (e.g. https://github.com/kickstartDS/content/blob/next/source/storytelling/StorytellingComponent.tsx#L146)
10
10
  styleAs, style = styleAs || "h2", spaceAfter = "small", className, renderContent = compiler, renderSubheadline = compiler, ...props }, ref) => {
11
11
  const TagName = level;
12
- return text || sub ? (jsxs("header", { className: classnames("dsa-headline", `dsa-headline--${style}`, style !== "none" && style !== level && `dsa-headline--${style}`, `dsa-headline--align-${align}`, spaceAfter && `dsa-headline--space-after-${spaceAfter}`, className), ref: ref, ...props, children: [sub && switchOrder && (jsx("p", { className: "dsa-headline__subheadline", children: renderSubheadline(sub) })), props.id && level === "h2" ? (jsx("a", { href: `#${props.id}`, className: "dsa-headline__anchor", children: jsx(TagName, { className: classnames("dsa-headline__headline"), children: renderContent(text) }) })) : (jsx(TagName, { className: classnames("dsa-headline__headline"), children: renderContent(text) })), sub && !switchOrder && (jsx("p", { className: "dsa-headline__subheadline", children: renderSubheadline(sub) }))] })) : null;
12
+ return text || sub ? (jsxs("header", { className: classnames("dsa-headline", `dsa-headline--${style}`, style !== "none" && style !== level && `dsa-headline--${style}`, `dsa-headline--align-${align}`, spaceAfter && `dsa-headline--space-after-${spaceAfter}`, className), ref: ref, ...props, children: [sub && switchOrder && (jsx("p", { className: "dsa-headline__subheadline", children: renderSubheadline(sub) })), jsx(TagName, { className: classnames("dsa-headline__headline"), children: jsxs("span", { className: "dsa-headline__inner", children: [renderContent(text), props.id && level === "h2" && (jsx("a", { href: `#${props.id}`, className: "dsa-headline__anchor", "aria-label": "Link to this section", title: "Link to this section", children: "#" }))] }) }), sub && !switchOrder && (jsx("p", { className: "dsa-headline__subheadline", children: renderSubheadline(sub) }))] })) : null;
13
13
  });
14
14
  Headline.displayName = "Headline";
15
15
  const HeadlineProvider = (props) => (jsx(HeadlineContext.Provider, { ...props, value: Headline }));
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/html.schema.json",
4
+ "title": "Html",
5
+ "description": "Display raw HTML.",
6
+ "type": "object",
7
+ "properties": {
8
+ "html": {
9
+ "title": "HTML string",
10
+ "type": "string",
11
+ "examples": [
12
+ "<p>Hello world!</p>"
13
+ ]
14
+ },
15
+ "className": {
16
+ "title": "Additional Classes",
17
+ "description": "Add additional css classes that should be applied to the element",
18
+ "type": "string"
19
+ },
20
+ "component": {
21
+ "title": "`ks-component` attribute",
22
+ "description": "Optional custom component identifier",
23
+ "type": "string"
24
+ },
25
+ "type": {
26
+ "const": "html"
27
+ }
28
+ },
29
+ "additionalProperties": false
30
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.kickstartds.com/base/html.schema.json",
4
- "title": "HTML",
3
+ "$id": "http://schema.mydesignsystem.com/html.schema.json",
4
+ "title": "Html",
5
5
  "description": "Display raw HTML.",
6
6
  "type": "object",
7
7
  "properties": {
@@ -1,30 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- /* eslint-disable */
4
- /**
5
- * This file was automatically generated by json-schema-to-typescript.
6
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
- * and run `yarn run schema` to regenerate this file.
8
- */
9
- type HTMLString = string;
10
- /**
11
- * Add additional css classes that should be applied to the element
12
- */
13
- type AdditionalClasses = string;
14
- /**
15
- * Optional custom component identifier
16
- */
17
- type KsComponentAttribute = string;
18
- /**
19
- * Display raw HTML.
20
- */
21
- interface HTMLProps {
22
- html?: HTMLString;
23
- className?: AdditionalClasses;
24
- component?: KsComponentAttribute;
25
- }
26
- declare const HtmlContextDefault: import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
27
- declare const HtmlContext: import("react").Context<import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
28
- declare const Html: import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
29
- export type { HTMLProps };
3
+ import { HtmlProps } from "../../HtmlProps-8e3e725a.js";
4
+ declare const HtmlContextDefault: import("react").ForwardRefExoticComponent<HtmlProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
+ declare const HtmlContext: import("react").Context<import("react").ForwardRefExoticComponent<HtmlProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
+ declare const Html: import("react").ForwardRefExoticComponent<HtmlProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
+ export type { HtmlProps };
30
8
  export { HtmlContextDefault, HtmlContext, Html };
@@ -396,6 +396,39 @@
396
396
  },
397
397
  "additionalProperties": false
398
398
  },
399
+ {
400
+ "$schema": "http://json-schema.org/draft-07/schema#",
401
+ "$id": "http://schema.mydesignsystem.com/divider.schema.json",
402
+ "title": "Divider",
403
+ "description": "Dividers bring clarity to a layout by grouping and dividing content in close proximity.",
404
+ "type": "object",
405
+ "properties": {
406
+ "variant": {
407
+ "title": "Style of the divider",
408
+ "type": "string",
409
+ "description": "Choose a variant for the divider",
410
+ "enum": [
411
+ "default",
412
+ "accent"
413
+ ],
414
+ "default": "default"
415
+ },
416
+ "className": {
417
+ "type": "string",
418
+ "title": "Additional Classes",
419
+ "description": "Add additional css classes that should be applied to the divider"
420
+ },
421
+ "component": {
422
+ "title": "`ks-component` attribute",
423
+ "description": "Optional custom component identifier",
424
+ "type": "string"
425
+ },
426
+ "type": {
427
+ "const": "divider"
428
+ }
429
+ },
430
+ "additionalProperties": false
431
+ },
399
432
  {
400
433
  "$schema": "http://json-schema.org/draft-07/schema#",
401
434
  "$id": "http://schema.mydesignsystem.com/faq.schema.json",
@@ -858,6 +891,36 @@
858
891
  },
859
892
  "additionalProperties": false
860
893
  },
894
+ {
895
+ "$schema": "http://json-schema.org/draft-07/schema#",
896
+ "$id": "http://schema.mydesignsystem.com/html.schema.json",
897
+ "title": "Html",
898
+ "description": "Display raw HTML.",
899
+ "type": "object",
900
+ "properties": {
901
+ "html": {
902
+ "title": "HTML string",
903
+ "type": "string",
904
+ "examples": [
905
+ "<p>Hello world!</p>"
906
+ ]
907
+ },
908
+ "className": {
909
+ "title": "Additional Classes",
910
+ "description": "Add additional css classes that should be applied to the element",
911
+ "type": "string"
912
+ },
913
+ "component": {
914
+ "title": "`ks-component` attribute",
915
+ "description": "Optional custom component identifier",
916
+ "type": "string"
917
+ },
918
+ "type": {
919
+ "const": "html"
920
+ }
921
+ },
922
+ "additionalProperties": false
923
+ },
861
924
  {
862
925
  "$schema": "http://json-schema.org/draft-07/schema#",
863
926
  "$id": "http://schema.mydesignsystem.com/image-story.schema.json",