@royaloperahouse/harmonic 0.1.8-g → 0.1.8-h
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.
- package/dist/components/molecules/Information/Information.style.d.ts +1 -4
- package/dist/components/molecules/Information/utils.d.ts +4 -3
- package/dist/harmonic.cjs.development.js +36 -20
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +36 -20
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/information.d.ts +7 -4
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DirectionType, IconNameType } from './iconTypes';
|
|
2
2
|
import { LinkTarget } from './types';
|
|
3
|
+
import type { ThemeChildProps } from './types';
|
|
3
4
|
import type { HarmonicSize } from './typography';
|
|
4
5
|
export declare const InformationCtaVariants: {
|
|
5
6
|
readonly Primary: "Primary";
|
|
@@ -8,7 +9,8 @@ export declare const InformationCtaVariants: {
|
|
|
8
9
|
readonly TextLink: "TextLink";
|
|
9
10
|
};
|
|
10
11
|
export declare type InformationCtaVariant = keyof typeof InformationCtaVariants;
|
|
11
|
-
|
|
12
|
+
declare type ThemeProps = Pick<ThemeChildProps, 'theme'>;
|
|
13
|
+
export interface IInformationCTAProps extends ThemeProps {
|
|
12
14
|
/**
|
|
13
15
|
* Text to display on the CTA
|
|
14
16
|
*/
|
|
@@ -18,8 +20,7 @@ export interface IInformationCTAProps {
|
|
|
18
20
|
*/
|
|
19
21
|
link: string;
|
|
20
22
|
/**
|
|
21
|
-
* Style of the CTA
|
|
22
|
-
* or "Tertiary" (text only)
|
|
23
|
+
* Style of the CTA
|
|
23
24
|
*/
|
|
24
25
|
variant?: InformationCtaVariant;
|
|
25
26
|
/**
|
|
@@ -35,6 +36,7 @@ export interface IInformationCTAProps {
|
|
|
35
36
|
*/
|
|
36
37
|
target?: LinkTarget;
|
|
37
38
|
}
|
|
39
|
+
export declare type InformationCTAWrapperProps = Pick<IInformationCTAProps, 'variant' | 'theme'>;
|
|
38
40
|
export interface IInformationTitleProps {
|
|
39
41
|
/**
|
|
40
42
|
* Title text to display
|
|
@@ -45,7 +47,7 @@ export interface IInformationTitleProps {
|
|
|
45
47
|
*/
|
|
46
48
|
textSize: HarmonicSize;
|
|
47
49
|
}
|
|
48
|
-
export interface IInformationProps {
|
|
50
|
+
export interface IInformationProps extends ThemeProps {
|
|
49
51
|
/**
|
|
50
52
|
* Main body text to display in the Information Component
|
|
51
53
|
*/
|
|
@@ -63,3 +65,4 @@ export interface IInformationProps {
|
|
|
63
65
|
*/
|
|
64
66
|
className?: string;
|
|
65
67
|
}
|
|
68
|
+
export {};
|