@lumx/vue 4.9.0 → 4.10.0-alpha.1

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.
@@ -0,0 +1,20 @@
1
+ import { LinkPreviewProps as UIProps, COMPONENT_NAME } from '@lumx/core/js/components/LinkPreview';
2
+ import { VueToJSXProps } from '../../utils/VueToJSX';
3
+ export type LinkPreviewProps = VueToJSXProps<UIProps, 'TitleHeading' | 'Link' | 'Thumbnail'> & {
4
+ /** Customize the title heading tag. */
5
+ titleHeading?: string;
6
+ };
7
+ export { COMPONENT_NAME };
8
+ /**
9
+ * LinkPreview component.
10
+ *
11
+ * @param props Component props.
12
+ * @return Vue element.
13
+ */
14
+ declare const LinkPreview: import('vue').DefineSetupFnComponent<LinkPreviewProps, {}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children" | "Thumbnail" | "Link" | "TitleHeading"> & {
15
+ class?: string;
16
+ } & {
17
+ /** Customize the title heading tag. */
18
+ titleHeading?: string;
19
+ } & {}, import('vue').PublicProps>;
20
+ export default LinkPreview;
@@ -0,0 +1,55 @@
1
+ declare const _default: {
2
+ component: any;
3
+ decorators: ((story: any, context: any) => any)[];
4
+ args: {
5
+ title: string;
6
+ description: string;
7
+ link: string;
8
+ size: "regular";
9
+ titleHeading: "h2";
10
+ };
11
+ argTypes: {
12
+ size: {
13
+ control: {
14
+ type: "select" | "inline-radio";
15
+ };
16
+ options: ("big" | "regular")[];
17
+ mapping: Record<string, "big" | "regular"> | undefined;
18
+ };
19
+ titleHeading: {
20
+ control: {
21
+ type: "select" | "inline-radio";
22
+ };
23
+ options: import('@lumx/core/js/types').HeadingElement[];
24
+ mapping: Record<string, import('@lumx/core/js/types').HeadingElement> | undefined;
25
+ if: {
26
+ arg: string;
27
+ };
28
+ };
29
+ };
30
+ title: string;
31
+ };
32
+ export default _default;
33
+ export declare const Default: {};
34
+ export declare const TitleAndDescription: {
35
+ args: {
36
+ title: string;
37
+ description: string;
38
+ };
39
+ };
40
+ export declare const AllFields: {
41
+ args: {
42
+ 'thumbnailProps.image': string;
43
+ title: string;
44
+ description: string;
45
+ };
46
+ };
47
+ export declare const Big: {
48
+ decorators: ((story: any, context: any) => any)[];
49
+ args: {
50
+ size: "big";
51
+ 'thumbnailProps.image': string;
52
+ title: string;
53
+ description: string;
54
+ };
55
+ };
@@ -0,0 +1,3 @@
1
+ import { default as LinkPreview, LinkPreviewProps } from './LinkPreview';
2
+ export { LinkPreview };
3
+ export type { LinkPreviewProps };
package/index.d.ts CHANGED
@@ -17,6 +17,7 @@ export * from './components/icon';
17
17
  export * from './components/input-helper';
18
18
  export * from './components/input-label';
19
19
  export * from './components/link';
20
+ export * from './components/link-preview';
20
21
  export * from './components/list';
21
22
  export * from './components/message';
22
23
  export * from './components/mosaic';