@kickstartds/ds-agency-premium 1.3.23--canary.511.bf9d328.0 → 1.3.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.
@@ -1,4 +1,4 @@
1
- .nav-toggle {
1
+ .dsa-nav-toggle {
2
2
  --nav-toggle--color: var(--ks-text-color-default);
3
3
  --nav-toggle--color_open: var(--ks-text-color-default);
4
4
  --nav-toggle_floating--color: var(--ks-text-color-interface-interactive);
@@ -9,7 +9,7 @@ html.overlay-open {
9
9
  overflow: hidden;
10
10
  }
11
11
 
12
- button.nav-toggle {
12
+ button.dsa-nav-toggle {
13
13
  display: block;
14
14
  position: relative;
15
15
  right: 0;
@@ -21,16 +21,16 @@ button.nav-toggle {
21
21
  --nav-toggle__icon-bar--offset: 14px;
22
22
  }
23
23
  @media (min-width: 42em) {
24
- button.nav-toggle {
24
+ button.dsa-nav-toggle {
25
25
  --nav-toggle__icon-bar--offset: 18px;
26
26
  }
27
27
  }
28
28
  @media (min-width: 62em) {
29
- button.nav-toggle {
29
+ button.dsa-nav-toggle {
30
30
  display: none;
31
31
  }
32
32
  }
33
- button.nav-toggle .nav-toggle__label {
33
+ button.dsa-nav-toggle .dsa-nav-toggle__label {
34
34
  border: 0;
35
35
  clip: rect(1px, 1px, 1px, 1px);
36
36
  clip-path: inset(100%);
@@ -41,7 +41,7 @@ button.nav-toggle .nav-toggle__label {
41
41
  white-space: nowrap;
42
42
  width: 1px;
43
43
  }
44
- button.nav-toggle .nav-toggle__icon {
44
+ button.dsa-nav-toggle .dsa-nav-toggle__icon {
45
45
  position: relative;
46
46
  display: block;
47
47
  cursor: pointer;
@@ -51,53 +51,53 @@ button.nav-toggle .nav-toggle__icon {
51
51
  transition: inherit;
52
52
  color: var(--nav-toggle--color);
53
53
  }
54
- .dsa-header--floating button.nav-toggle .nav-toggle__icon {
54
+ .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon {
55
55
  color: var(--nav-toggle_floating--color);
56
56
  }
57
57
  @media (min-width: 40rem) {
58
- button.nav-toggle .nav-toggle__icon {
58
+ button.dsa-nav-toggle .dsa-nav-toggle__icon {
59
59
  transform: scale(0.8) translate(2.5%, 2.5%);
60
60
  }
61
61
  }
62
- .overlay-open button.nav-toggle .nav-toggle__icon, .overlay-open .header-is-scrolling button.nav-toggle .nav-toggle__icon {
62
+ .overlay-open button.dsa-nav-toggle .dsa-nav-toggle__icon, .overlay-open .header-is-scrolling button.dsa-nav-toggle .dsa-nav-toggle__icon {
63
63
  color: var(--nav-toggle--color_open);
64
64
  }
65
- .overlay-open .dsa-header--floating button.nav-toggle .nav-toggle__icon, .overlay-open .header-is-scrolling .dsa-header--floating button.nav-toggle .nav-toggle__icon {
65
+ .overlay-open .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon, .overlay-open .header-is-scrolling .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon {
66
66
  color: var(--nav-toggle_floating--color_open);
67
67
  }
68
- .header-is-scrolling-up button.nav-toggle .nav-toggle__icon {
68
+ .header-is-scrolling-up button.dsa-nav-toggle .dsa-nav-toggle__icon {
69
69
  color: var(--nav-toggle--color_open);
70
70
  }
71
- button.nav-toggle .nav-toggle__icon::before, button.nav-toggle .nav-toggle__icon::after {
71
+ button.dsa-nav-toggle .dsa-nav-toggle__icon::before, button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
72
72
  content: "";
73
73
  }
74
- button.nav-toggle .nav-toggle__icon .nav-toggle__icon__middle, button.nav-toggle .nav-toggle__icon::before, button.nav-toggle .nav-toggle__icon::after {
74
+ button.dsa-nav-toggle .dsa-nav-toggle__icon .dsa-nav-toggle__icon__middle, button.dsa-nav-toggle .dsa-nav-toggle__icon::before, button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
75
75
  position: absolute;
76
76
  width: 100%;
77
77
  height: 3px;
78
78
  background-color: currentColor;
79
79
  }
80
- button.nav-toggle .nav-toggle__icon .nav-toggle__icon__middle {
80
+ button.dsa-nav-toggle .dsa-nav-toggle__icon .dsa-nav-toggle__icon__middle {
81
81
  top: 50%;
82
82
  margin-top: -1.5px;
83
83
  }
84
- button.nav-toggle .nav-toggle__icon::before {
84
+ button.dsa-nav-toggle .dsa-nav-toggle__icon::before {
85
85
  top: 2px;
86
86
  transition: top 150ms ease 150ms, transform ease 150ms;
87
87
  }
88
- button.nav-toggle .nav-toggle__icon::after {
88
+ button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
89
89
  bottom: 2px;
90
90
  transition: bottom 150ms ease 150ms, transform ease 150ms;
91
91
  }
92
- button.nav-toggle[aria-expanded=true] .nav-toggle__icon__middle {
92
+ button.dsa-nav-toggle[aria-expanded=true] .dsa-nav-toggle__icon__middle {
93
93
  display: none;
94
94
  }
95
- button.nav-toggle[aria-expanded=true] .nav-toggle__icon::before {
95
+ button.dsa-nav-toggle[aria-expanded=true] .dsa-nav-toggle__icon::before {
96
96
  top: var(--nav-toggle__icon-bar--offset);
97
97
  transition: top ease 150ms, transform 150ms ease 150ms;
98
98
  transform: rotate(-45deg);
99
99
  }
100
- button.nav-toggle[aria-expanded=true] .nav-toggle__icon::after {
100
+ button.dsa-nav-toggle[aria-expanded=true] .dsa-nav-toggle__icon::after {
101
101
  bottom: var(--nav-toggle__icon-bar--offset);
102
102
  transition: bottom ease 150ms, transform 150ms ease 150ms;
103
103
  transform: rotate(45deg);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 26 Jul 2024 06:56:53 GMT
3
+ * Generated on Tue, 30 Jul 2024 08:06:46 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1380,6 +1380,7 @@
1380
1380
  "lazy": false
1381
1381
  },
1382
1382
  "logoHref": "/",
1383
+ "flyoutLogoInverted": false,
1383
1384
  "floating": false,
1384
1385
  "inverted": false,
1385
1386
  "navItems": [
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes, FC, PropsWithChildren } from "react";
3
3
  import { SectionProps } from "../../SectionProps-93230a76.js";
4
- declare const Section: import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ declare const SectionContextDefault: import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>;
5
+ declare const SectionContext: import("react").Context<import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>>;
6
+ declare const Section: import("react").ForwardRefExoticComponent<SectionProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
7
  declare const SectionProvider: FC<PropsWithChildren<any>>;
6
- export { Section, SectionProvider };
8
+ export { SectionContextDefault, SectionContext, Section, SectionProvider };
@@ -1,13 +1,13 @@
1
1
  import "./section.css";
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { forwardRef } from 'react';
3
+ import { forwardRef, createContext, useContext } from 'react';
4
4
  import classnames from 'classnames';
5
5
  import { useKsComponent } from '@kickstartds/core/lib/react';
6
- import { SectionContextDefault, SectionContext } from '@kickstartds/base/lib/section';
6
+ import { SectionContextDefault as SectionContextDefault$1, SectionContext as SectionContext$1 } from '@kickstartds/base/lib/section';
7
7
  import { identifier } from './js/Section.client.js';
8
8
  import '@kickstartds/core/lib/component';
9
9
 
10
- const Section = forwardRef(({ headline, content, headerSpacing, width = "default", style = "default", spotlight = false, backgroundColor = "default", spaceBefore = "default", spaceAfter = "default", className, inverted, buttons = [], ...props }, ref) => {
10
+ const SectionContextDefault = forwardRef(({ headline, content, headerSpacing, width = "default", style = "default", spotlight = false, backgroundColor = "default", spaceBefore = "default", spaceAfter = "default", className, inverted, buttons = [], ...props }, ref) => {
11
11
  const { large: headlineLarge = false, ...headlineRest } = {
12
12
  align: "left",
13
13
  ...headline,
@@ -16,7 +16,7 @@ const Section = forwardRef(({ headline, content, headerSpacing, width = "default
16
16
  spotlight,
17
17
  content?.mode === "slider",
18
18
  ]);
19
- return (jsx(SectionContextDefault, { ...props, ...componentProps, className: classnames("dsa-section", style !== "default" &&
19
+ return (jsx(SectionContextDefault$1, { ...props, ...componentProps, className: classnames("dsa-section", style !== "default" &&
20
20
  `dsa-section-style--${style === "verticalGradient"
21
21
  ? "vertical-gradient"
22
22
  : style === "horizontalGradient"
@@ -42,7 +42,12 @@ const Section = forwardRef(({ headline, content, headerSpacing, width = "default
42
42
  items: buttons,
43
43
  }, width: width, spaceBefore: spaceBefore, spaceAfter: spaceAfter, inverted: inverted, ref: ref, children: props.children }));
44
44
  });
45
+ const SectionContext = createContext(SectionContextDefault);
46
+ const Section = forwardRef((props, ref) => {
47
+ const Component = useContext(SectionContext);
48
+ return jsx(Component, { ...props, ref: ref });
49
+ });
45
50
  Section.displayName = "Section";
46
- const SectionProvider = (props) => (jsx(SectionContext.Provider, { ...props, value: Section }));
51
+ const SectionProvider = (props) => (jsx(SectionContext$1.Provider, { ...props, value: Section }));
47
52
 
48
- export { Section, SectionProvider };
53
+ export { Section, SectionContext, SectionContextDefault, SectionProvider };
@@ -20,6 +20,13 @@
20
20
  "title": "Logo",
21
21
  "type": "object",
22
22
  "properties": {
23
+ "href": {
24
+ "title": "Link",
25
+ "description": "Add a link to the logo",
26
+ "type": "string",
27
+ "format": "uri",
28
+ "default": "/"
29
+ },
23
30
  "src": {
24
31
  "title": "Source",
25
32
  "description": "Logo file source",
@@ -69,6 +76,12 @@
69
76
  "format": "uri",
70
77
  "default": "/"
71
78
  },
79
+ "flyoutLogoInverted": {
80
+ "type": "boolean",
81
+ "title": "Flyout Logo Inverted",
82
+ "description": "Toggle the inversion of the logo inside the mobile navigation",
83
+ "default": false
84
+ },
72
85
  "floating": {
73
86
  "type": "boolean",
74
87
  "title": "Floating",