@kickstartds/ds-agency-premium 1.3.5 → 1.3.7

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 (31) hide show
  1. package/dist/{FooterProps-55aaf559.d.ts → FooterProps-d28ccfb6.d.ts} +6 -1
  2. package/dist/{HeaderProps-ae331ab2.d.ts → HeaderProps-34d278ee.d.ts} +6 -1
  3. package/dist/SectionProps-93230a76.d.ts +1 -1
  4. package/dist/{SliderProps-8cae490d.d.ts → SliderProps-93230a76.d.ts} +16 -1
  5. package/dist/components/blog-post/index.d.ts +1 -1
  6. package/dist/components/button/index.d.ts +1 -1
  7. package/dist/components/footer/footer.schema.dereffed.json +6 -0
  8. package/dist/components/footer/footer.schema.json +6 -0
  9. package/dist/components/footer/index.d.ts +1 -1
  10. package/dist/components/footer/index.js +1 -1
  11. package/dist/components/header/header.schema.dereffed.json +6 -0
  12. package/dist/components/header/header.schema.json +6 -0
  13. package/dist/components/header/index.d.ts +1 -1
  14. package/dist/components/header/index.js +1 -1
  15. package/dist/components/index/index.d.ts +31 -4
  16. package/dist/components/page/page.schema.dereffed.json +1153 -1
  17. package/dist/components/page/page.schema.json +32 -0
  18. package/dist/components/page-wrapper/tokens.css +1 -1
  19. package/dist/components/presets.json +18 -16
  20. package/dist/components/section/section.schema.dereffed.json +1119 -1
  21. package/dist/components/section/section.schema.json +1 -1
  22. package/dist/components/settings/settings.schema.dereffed.json +12 -0
  23. package/dist/components/slider/index.d.ts +1 -1
  24. package/dist/components/slider/slider.schema.dereffed.json +1118 -0
  25. package/dist/components/slider/slider.schema.json +39 -0
  26. package/dist/components/testimonials/index.d.ts +1 -1
  27. package/dist/tokens/themes.css +4 -4
  28. package/dist/tokens/tokens.css +1 -1
  29. package/dist/tokens/tokens.js +1 -1
  30. package/package.json +1 -1
  31. /package/dist/{BlogPostProps-f9a49428.d.ts → BlogPostProps-0910f130.d.ts} +0 -0
@@ -23,10 +23,15 @@ type Height = number;
23
23
  * Small line of text displayed below the logo
24
24
  */
25
25
  type Byline = string;
26
+ /**
27
+ * Invert the color scheme of the footer
28
+ */
29
+ type Inverted = boolean;
26
30
  interface FooterProps {
27
31
  logo: Logo;
28
32
  logoHref?: string;
29
33
  byline?: Byline;
34
+ inverted?: Inverted;
30
35
  navItems?: {
31
36
  href: string;
32
37
  label: string;
@@ -39,4 +44,4 @@ interface Logo {
39
44
  width?: Width;
40
45
  height?: Height;
41
46
  }
42
- export { Source, AltText, Width, Height, Byline, FooterProps, Logo };
47
+ export { Source, AltText, Width, Height, Byline, Inverted, FooterProps, Logo };
@@ -23,10 +23,15 @@ type Height = number;
23
23
  * Make the header float over the first Section
24
24
  */
25
25
  type Floating = boolean;
26
+ /**
27
+ * Invert the color scheme of the header
28
+ */
29
+ type Inverted = boolean;
26
30
  interface HeaderProps {
27
31
  logo: Logo;
28
32
  logoHref?: string;
29
33
  floating?: Floating;
34
+ inverted?: Inverted;
30
35
  navItems?: {
31
36
  href: string;
32
37
  label: string;
@@ -39,4 +44,4 @@ interface Logo {
39
44
  width?: Width;
40
45
  height?: Height;
41
46
  }
42
- export { Source, AltText, Width, Height, Floating, HeaderProps, Logo };
47
+ export { Source, AltText, Width, Height, Floating, Inverted, HeaderProps, Logo };
@@ -12,7 +12,7 @@ import { ImageStoryProps } from "./ImageStoryProps-24e0335c.js";
12
12
  import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
13
13
  import { LogosProps } from "./LogosProps-58c84ccc.js";
14
14
  import { MosaicProps } from "./MosaicProps-aacb9422.js";
15
- import { SliderProps } from "./SliderProps-8cae490d.js";
15
+ import { SliderProps } from "./SliderProps-93230a76.js";
16
16
  import { StatsProps } from "./StatsProps-bf5ef578.js";
17
17
  import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
18
18
  import { TestimonialsProps } from "./TestimonialsProps-f7211553.js";
@@ -3,6 +3,16 @@
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 { CtaProps } from "./CtaProps-93230a76.js";
7
+ import { FeaturesProps } from "./FeaturesProps-b05859d6.js";
8
+ import { GalleryProps } from "./GalleryProps-76e7de44.js";
9
+ import { HeroProps } from "./HeroProps-cf82a16d.js";
10
+ import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
11
+ import { LogosProps } from "./LogosProps-58c84ccc.js";
12
+ import { StatsProps } from "./StatsProps-bf5ef578.js";
13
+ import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
14
+ import { TestimonialsProps } from "./TestimonialsProps-f7211553.js";
15
+ import { TextProps } from "./TextProps-a23170d2.js";
6
16
  /**
7
17
  * Automatically move to next slide after 4 seconds without user interaction
8
18
  */
@@ -29,6 +39,10 @@ type Type = "slider" | "carousel";
29
39
  * Additional css classes attached to the wrapping element
30
40
  */
31
41
  type Class = string;
42
+ /**
43
+ * Allowed components for content
44
+ */
45
+ type Content = (CtaProps | FeaturesProps | GalleryProps | HeroProps | ImageTextProps | LogosProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps)[];
32
46
  interface SliderProps {
33
47
  autoplay?: AutoPlay;
34
48
  nav?: ShowNavigation;
@@ -38,5 +52,6 @@ interface SliderProps {
38
52
  arrows?: ShowArrows;
39
53
  type?: Type;
40
54
  className?: Class;
55
+ components?: Content;
41
56
  }
42
- export { AutoPlay, ShowNavigation, TeaseNeighbourSlides, EqualizeSlidesHeights, Gap, ShowArrows, Type, Class, SliderProps };
57
+ export { AutoPlay, ShowNavigation, TeaseNeighbourSlides, EqualizeSlidesHeights, Gap, ShowArrows, Type, Class, Content, SliderProps };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BlogPostProps } from "../../BlogPostProps-f9a49428.js";
2
+ import { BlogPostProps } from "../../BlogPostProps-0910f130.js";
3
3
  declare const BlogPost: {
4
4
  ({ head, content, aside, cta }: BlogPostProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes, FC, PropsWithChildren } from "react";
3
3
  import { ButtonProps } from "../../ButtonProps-03ff6d21.js";
4
- declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
4
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
5
  declare const ButtonProvider: FC<PropsWithChildren>;
6
6
  export { Button, ButtonProvider };
@@ -54,6 +54,12 @@
54
54
  "type": "string",
55
55
  "default": "© 2024 systemics Inc. All rights reserved."
56
56
  },
57
+ "inverted": {
58
+ "type": "boolean",
59
+ "title": "Inverted",
60
+ "description": "Invert the color scheme of the footer",
61
+ "default": false
62
+ },
57
63
  "navItems": {
58
64
  "type": "array",
59
65
  "items": {
@@ -48,6 +48,12 @@
48
48
  "type": "string",
49
49
  "default": "© 2024 systemics Inc. All rights reserved."
50
50
  },
51
+ "inverted": {
52
+ "type": "boolean",
53
+ "title": "Inverted",
54
+ "description": "Invert the color scheme of the footer",
55
+ "default": false
56
+ },
51
57
  "navItems": {
52
58
  "type": "array",
53
59
  "items": {
@@ -1,4 +1,4 @@
1
1
  import { FC } from "react";
2
- import { FooterProps } from "../../FooterProps-55aaf559.js";
2
+ import { FooterProps } from "../../FooterProps-d28ccfb6.js";
3
3
  declare const Footer: FC<FooterProps>;
4
4
  export { Footer };
@@ -5,7 +5,7 @@ import classnames from 'classnames';
5
5
  import { Picture } from '@kickstartds/base/lib/picture';
6
6
  import { Link } from '@kickstartds/base/lib/link';
7
7
 
8
- const Footer = ({ logo, logoHref = "/", byline, navItems = [], }) => (jsx("div", { className: classnames("c-footer"), children: jsxs("div", { className: "c-footer__content", children: [jsx(Link, { className: "c-footer__logo", href: logoHref, children: jsx(Picture, { ...logo, lazy: true }) }), byline && jsx("span", { className: "c-footer__byline", children: byline }), navItems.length > 0 ? (jsx("div", { className: "c-footer__links", children: navItems.map(({ label, ...linkProps }) => (createElement(Link, { ...linkProps, className: "c-footer__link", key: linkProps.href + label }, label))) })) : null] }) }));
8
+ const Footer = ({ logo, logoHref = "/", byline, inverted = false, navItems = [], }) => (jsx("div", { className: classnames("c-footer"), "ks-inverted": inverted, children: jsxs("div", { className: "c-footer__content", children: [jsx(Link, { className: "c-footer__logo", href: logoHref, children: jsx(Picture, { ...logo, lazy: true }) }), byline && jsx("span", { className: "c-footer__byline", children: byline }), navItems.length > 0 ? (jsx("div", { className: "c-footer__links", children: navItems.map(({ label, ...linkProps }) => (createElement(Link, { ...linkProps, className: "c-footer__link", key: linkProps.href + label }, label))) })) : null] }) }));
9
9
  Footer.displayName = "Footer";
10
10
 
11
11
  export { Footer };
@@ -54,6 +54,12 @@
54
54
  "description": "Make the header float over the first Section",
55
55
  "default": false
56
56
  },
57
+ "inverted": {
58
+ "type": "boolean",
59
+ "title": "Inverted",
60
+ "description": "Invert the color scheme of the header",
61
+ "default": false
62
+ },
57
63
  "navItems": {
58
64
  "type": "array",
59
65
  "items": {
@@ -46,6 +46,12 @@
46
46
  "description": "Make the header float over the first Section",
47
47
  "default": false
48
48
  },
49
+ "inverted": {
50
+ "type": "boolean",
51
+ "title": "Inverted",
52
+ "description": "Invert the color scheme of the header",
53
+ "default": false
54
+ },
49
55
  "navItems": {
50
56
  "$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/items"
51
57
  }
@@ -1,4 +1,4 @@
1
1
  import { FC } from "react";
2
- import { HeaderProps } from "../../HeaderProps-ae331ab2.js";
2
+ import { HeaderProps } from "../../HeaderProps-34d278ee.js";
3
3
  declare const Header: FC<HeaderProps>;
4
4
  export { Header };
@@ -11,7 +11,7 @@ import '../nav-main/js/navMainEvents.client.js';
11
11
  import '@kickstartds/core/lib/core';
12
12
  import '../nav-main/js/body.client.js';
13
13
 
14
- const Header = ({ logo, floating, logoHref = "/", navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), children: jsxs("div", { className: "dsa-header__content", children: [jsx(Link, { className: "dsa-header__logo", href: logoHref, children: jsx(Picture, { ...logo, lazy: false }) }), jsx(NavMain, { logo: logo, logoHref: logoHref, items: navItems })] }) }) }));
14
+ const Header = ({ logo, logoHref = "/", floating, inverted = false, navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted, children: jsxs("div", { className: "dsa-header__content", children: [jsx(Link, { className: "dsa-header__logo", href: logoHref, children: jsx(Picture, { ...logo, lazy: false }) }), jsx(NavMain, { logo: logo, logoHref: logoHref, items: navItems })] }) }) }));
15
15
  Header.displayName = "Header";
16
16
 
17
17
  export { Header };
@@ -12,22 +12,49 @@ import { SeoProps } from "../../SeoProps-f2d6dcaa.js";
12
12
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
13
13
  * and run json-schema-to-typescript to regenerate this file.
14
14
  */
15
- import { HeaderProps } from "../../HeaderProps-ae331ab2.js";
16
- import { FooterProps } from "../../FooterProps-55aaf559.js";
15
+ import { HeaderProps } from "../../HeaderProps-34d278ee.js";
16
+ import { FooterProps } from "../../FooterProps-d28ccfb6.js";
17
17
  /**
18
18
  * Collection of sections (with their contents) to render on the page
19
19
  */
20
20
  type Sections = SectionProps[];
21
+ /**
22
+ * Whether the header should float on scroll
23
+ */
24
+ type Floating = boolean;
25
+ /**
26
+ * Whether the header should have an inverted color scheme
27
+ */
28
+ type Inverted = boolean;
29
+ /**
30
+ * Whether the footer should have an inverted color scheme
31
+ */
32
+ type Inverted1 = boolean;
21
33
  /**
22
34
  * Abstracts a page concept into JSON schema
23
35
  */
24
36
  interface PageProps {
25
37
  section?: Sections;
38
+ header?: Header;
39
+ footer?: Footer;
26
40
  /**
27
41
  * Referenced component SeoProps
28
42
  */
29
43
  seo: SeoProps;
30
44
  }
45
+ /**
46
+ * Header settings for the page
47
+ */
48
+ interface Header {
49
+ floating?: Floating;
50
+ inverted?: Inverted;
51
+ }
52
+ /**
53
+ * Footer settings for the page
54
+ */
55
+ interface Footer {
56
+ inverted?: Inverted1;
57
+ }
31
58
  /**
32
59
  * Abstracts global settings made for a website into JSON Schema
33
60
  */
@@ -45,6 +72,6 @@ interface SettingsProps {
45
72
  */
46
73
  seo: SeoProps;
47
74
  }
48
- export * from "../../BlogPostProps-f9a49428.js";
75
+ export * from "../../BlogPostProps-0910f130.js";
49
76
  export * from "../../BlogOverviewProps-f385fc47.js";
50
- export { Sections, PageProps, SettingsProps };
77
+ export { Sections, Floating, Inverted, Inverted1, PageProps, Header, Footer, SettingsProps };