@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.
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
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 json-schema-to-typescript to regenerate this file.
8
- */
9
- /**
10
- * The URL of the logo image
11
- */
12
- type URL = string;
13
- /**
14
- * The alt text of the logo
15
- */
16
- type Caption = string;
17
- /**
18
- * Logo entry for Logos component
19
- */
20
- interface LogoProps {
21
- src: URL;
22
- alt?: Caption;
23
- }
24
- declare const LogoContextDefault: import("react").ForwardRefExoticComponent<LogoProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
25
- declare const LogoContext: import("react").Context<import("react").ForwardRefExoticComponent<LogoProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
26
- declare const Logo: import("react").ForwardRefExoticComponent<LogoProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
27
- export { LogoContextDefault, LogoContext, Logo };
@@ -1,12 +0,0 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { forwardRef, createContext, useContext } from 'react';
3
- import { Picture } from '@kickstartds/base/lib/picture';
4
-
5
- const LogoContextDefault = forwardRef(({ src, ...rest }, ref) => (jsx("div", { ...rest, ref: ref, className: "dsa-logos__logo", children: jsx(Picture, { src: src }) })));
6
- const LogoContext = createContext(LogoContextDefault);
7
- const Logo = forwardRef((props, ref) => {
8
- const Component = useContext(LogoContext);
9
- return jsx(Component, { ...props, ref: ref });
10
- });
11
-
12
- export { Logo, LogoContext, LogoContextDefault };