@zealicsolutions/web-ui 0.2.17 → 0.2.19
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/cjs/index.js +11 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/molecules/Alert/Alert.d.ts +0 -1
- package/dist/cjs/src/molecules/PdfDocument/PdfDocument.d.ts +9 -1
- package/dist/cjs/src/molecules/PdfDocument/PdfDocument.stories.d.ts +1 -1
- package/dist/cjs/src/organisms/FeedContent/styles.d.ts +1 -3
- package/dist/cjs/src/organisms/FeedContent/types.d.ts +2 -1
- package/dist/cjs/src/organisms/FeedContent/useSwitchHandler.d.ts +5 -1
- package/dist/cjs/src/organisms/FeedContentContainer/FeedContentContainer.stories.d.ts +16 -0
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/molecules/Alert/Alert.d.ts +0 -1
- package/dist/esm/src/molecules/PdfDocument/PdfDocument.d.ts +9 -1
- package/dist/esm/src/molecules/PdfDocument/PdfDocument.stories.d.ts +1 -1
- package/dist/esm/src/organisms/FeedContent/styles.d.ts +1 -3
- package/dist/esm/src/organisms/FeedContent/types.d.ts +2 -1
- package/dist/esm/src/organisms/FeedContent/useSwitchHandler.d.ts +5 -1
- package/dist/esm/src/organisms/FeedContentContainer/FeedContentContainer.stories.d.ts +16 -0
- package/dist/index.d.ts +10 -3
- package/package.json +1 -1
| @@ -1,7 +1,15 @@ | |
| 1 1 | 
             
            /// <reference types="react" />
         | 
| 2 2 | 
             
            import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
         | 
| 3 | 
            +
            import { ThemeColors } from 'theme';
         | 
| 3 4 | 
             
            export declare type PdfDocumentProps = {
         | 
| 4 5 | 
             
                source: string;
         | 
| 5 6 | 
             
                isMobile?: boolean;
         | 
| 7 | 
            +
                customDocumentStyles?: Partial<{
         | 
| 8 | 
            +
                    wrapperBackgroundColor: ThemeColors | string;
         | 
| 9 | 
            +
                    pageNumberColor: ThemeColors | string;
         | 
| 10 | 
            +
                    pageWidth: number;
         | 
| 11 | 
            +
                    paginationArrowColor: ThemeColors | string;
         | 
| 12 | 
            +
                    disabledPaginationArrowColor: ThemeColors | string;
         | 
| 13 | 
            +
                }>;
         | 
| 6 14 | 
             
            };
         | 
| 7 | 
            -
            export declare const PdfDocument: ({ source, isMobile }: PdfDocumentProps) => JSX.Element;
         | 
| 15 | 
            +
            export declare const PdfDocument: ({ source, isMobile, customDocumentStyles }: PdfDocumentProps) => JSX.Element;
         | 
| @@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react'; | |
| 3 3 | 
             
            import { PdfDocument as PdfDocumentComponent } from 'molecules';
         | 
| 4 4 | 
             
            declare const _default: {
         | 
| 5 5 | 
             
                title: string;
         | 
| 6 | 
            -
                component: ({ source, isMobile }: import("molecules").PdfDocumentProps) => JSX.Element;
         | 
| 6 | 
            +
                component: ({ source, isMobile, customDocumentStyles }: import("molecules").PdfDocumentProps) => JSX.Element;
         | 
| 7 7 | 
             
            };
         | 
| 8 8 | 
             
            export default _default;
         | 
| 9 9 | 
             
            export declare const PdfDocument: ComponentStory<typeof PdfDocumentComponent>;
         | 
| @@ -17,6 +17,4 @@ export declare const CloseButton: import("styled-components").StyledComponent<"d | |
| 17 17 | 
             
            } & {
         | 
| 18 18 | 
             
                children?: import("react").ReactNode;
         | 
| 19 19 | 
             
            } & Pick<FeedContentProps, "withCloseIcon" | "feedContentTemplate">, never>;
         | 
| 20 | 
            -
            export declare const PdfWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme,  | 
| 21 | 
            -
                isPreview?: boolean | undefined;
         | 
| 22 | 
            -
            }, never>;
         | 
| 20 | 
            +
            export declare const PdfWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<FeedContentProps, "showDefaultDocumentStyles">, never>;
         | 
| @@ -21,7 +21,8 @@ export declare type FeedContentProps = { | |
| 21 21 | 
             
                };
         | 
| 22 22 | 
             
                isMobile?: boolean;
         | 
| 23 23 | 
             
                isExpanded?: boolean;
         | 
| 24 | 
            -
                 | 
| 24 | 
            +
                fullWidth?: boolean;
         | 
| 25 | 
            +
                showDefaultDocumentStyles?: boolean;
         | 
| 25 26 | 
             
                destinationLink?: string;
         | 
| 26 27 | 
             
                onDestinationHandler?: Callback;
         | 
| 27 28 | 
             
                imageStyles?: CSSProperties;
         | 
| @@ -1,4 +1,8 @@ | |
| 1 | 
            -
            export declare  | 
| 1 | 
            +
            export declare type UseSwitchHandlerProps = {
         | 
| 2 | 
            +
                isFavorite?: boolean;
         | 
| 3 | 
            +
                isExpanded?: boolean;
         | 
| 4 | 
            +
            };
         | 
| 5 | 
            +
            export declare const useSwitchHandler: ({ isFavorite, isExpanded, }: UseSwitchHandlerProps) => {
         | 
| 2 6 | 
             
                isExpandedContent: boolean;
         | 
| 3 7 | 
             
                isFavoriteState: boolean;
         | 
| 4 8 | 
             
                onFavoriteClickHandler: () => void;
         | 
| @@ -23,6 +23,7 @@ export declare const feedContentContainerMockProps: { | |
| 23 23 | 
             
                    title: string;
         | 
| 24 24 | 
             
                    description: string;
         | 
| 25 25 | 
             
                    video?: undefined;
         | 
| 26 | 
            +
                    document?: undefined;
         | 
| 26 27 | 
             
                } | {
         | 
| 27 28 | 
             
                    id: string;
         | 
| 28 29 | 
             
                    feedContentType: string;
         | 
| @@ -36,6 +37,21 @@ export declare const feedContentContainerMockProps: { | |
| 36 37 | 
             
                    title: string;
         | 
| 37 38 | 
             
                    description: string;
         | 
| 38 39 | 
             
                    video: string;
         | 
| 40 | 
            +
                    document?: undefined;
         | 
| 41 | 
            +
                } | {
         | 
| 42 | 
            +
                    id: string;
         | 
| 43 | 
            +
                    image: string;
         | 
| 44 | 
            +
                    buttonConfig: {
         | 
| 45 | 
            +
                        disabled: boolean;
         | 
| 46 | 
            +
                    };
         | 
| 47 | 
            +
                    feedContentTemplate: FeedContentTemplateTypes;
         | 
| 48 | 
            +
                    feedContentType: string;
         | 
| 49 | 
            +
                    lastUpdated: string;
         | 
| 50 | 
            +
                    title: string;
         | 
| 51 | 
            +
                    description: string;
         | 
| 52 | 
            +
                    document: string;
         | 
| 53 | 
            +
                    isFavorite?: undefined;
         | 
| 54 | 
            +
                    video?: undefined;
         | 
| 39 55 | 
             
                })[];
         | 
| 40 56 | 
             
                feedHeader: FeedContentHeaderProps;
         | 
| 41 57 | 
             
            };
         | 
    
        package/dist/index.d.ts
    CHANGED
    
    | @@ -609,7 +609,6 @@ declare type AlertProps = { | |
| 609 609 | 
             
                isMobile?: boolean;
         | 
| 610 610 | 
             
                logo?: string;
         | 
| 611 611 | 
             
                fullWidth?: boolean;
         | 
| 612 | 
            -
                isPreview?: boolean;
         | 
| 613 612 | 
             
                withCloseIcon?: {
         | 
| 614 613 | 
             
                    onClose: Callback$1;
         | 
| 615 614 | 
             
                };
         | 
| @@ -635,8 +634,15 @@ declare const Stepper: ({ steps, orientation, currentStep }: StepperProps) => JS | |
| 635 634 | 
             
            declare type PdfDocumentProps = {
         | 
| 636 635 | 
             
                source: string;
         | 
| 637 636 | 
             
                isMobile?: boolean;
         | 
| 637 | 
            +
                customDocumentStyles?: Partial<{
         | 
| 638 | 
            +
                    wrapperBackgroundColor: ThemeColors$2 | string;
         | 
| 639 | 
            +
                    pageNumberColor: ThemeColors$2 | string;
         | 
| 640 | 
            +
                    pageWidth: number;
         | 
| 641 | 
            +
                    paginationArrowColor: ThemeColors$2 | string;
         | 
| 642 | 
            +
                    disabledPaginationArrowColor: ThemeColors$2 | string;
         | 
| 643 | 
            +
                }>;
         | 
| 638 644 | 
             
            };
         | 
| 639 | 
            -
            declare const PdfDocument: ({ source, isMobile }: PdfDocumentProps) => JSX.Element;
         | 
| 645 | 
            +
            declare const PdfDocument: ({ source, isMobile, customDocumentStyles }: PdfDocumentProps) => JSX.Element;
         | 
| 640 646 |  | 
| 641 647 | 
             
            declare type FeedTemplateKeys = `feed_${'a' | 'b'}`;
         | 
| 642 648 | 
             
            declare type FeedContentHeaderProps = {
         | 
| @@ -760,7 +766,8 @@ declare type FeedContentProps = { | |
| 760 766 | 
             
                };
         | 
| 761 767 | 
             
                isMobile?: boolean;
         | 
| 762 768 | 
             
                isExpanded?: boolean;
         | 
| 763 | 
            -
                 | 
| 769 | 
            +
                fullWidth?: boolean;
         | 
| 770 | 
            +
                showDefaultDocumentStyles?: boolean;
         | 
| 764 771 | 
             
                destinationLink?: string;
         | 
| 765 772 | 
             
                onDestinationHandler?: Callback$1;
         | 
| 766 773 | 
             
                imageStyles?: CSSProperties;
         |