pge-front-common 13.0.2 → 13.0.4
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/lib/components/modal/index.d.ts +9 -0
- package/lib/components/modal/index.type.d.ts +9 -0
- package/lib/components/modal/modal.stories.d.ts +7 -0
- package/lib/index.d.ts +9 -1
- package/lib/index.esm.js +2468 -322
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2461 -314
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ModalProps {
|
|
3
|
+
isModalOpen: boolean;
|
|
4
|
+
onOpenChange: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
title?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Modal: ({ isModalOpen, onOpenChange, children, title, }: ModalProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HtmlHTMLAttributes } from "react";
|
|
2
|
+
export interface InformativeBoxProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
3
|
+
infoType: 'success' | 'alert' | 'warning' | 'informative';
|
|
4
|
+
widthType?: 'fitContent' | 'fullWidth';
|
|
5
|
+
title: string;
|
|
6
|
+
message: string;
|
|
7
|
+
hasDismissButton?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Modal } from "./index";
|
|
3
|
+
declare const meta: Meta<typeof Modal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LargeContent: Story;
|
package/lib/index.d.ts
CHANGED
|
@@ -354,6 +354,14 @@ type OptionsProps = {
|
|
|
354
354
|
|
|
355
355
|
declare const SelectDefault: ({ name, control, optionsSelect, placeholder, isDisabled, label, hasError, handleChange, isRequired, value, }: SelectDefaultProps) => React$1.JSX.Element;
|
|
356
356
|
|
|
357
|
+
interface ModalProps {
|
|
358
|
+
isModalOpen: boolean;
|
|
359
|
+
onOpenChange: React__default.Dispatch<React__default.SetStateAction<boolean>>;
|
|
360
|
+
children: React__default.ReactNode;
|
|
361
|
+
title?: string;
|
|
362
|
+
}
|
|
363
|
+
declare const Modal: ({ isModalOpen, onOpenChange, children, title, }: ModalProps) => React__default.JSX.Element;
|
|
364
|
+
|
|
357
365
|
declare const IconDownload: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
358
366
|
|
|
359
367
|
declare const IconVisibility: (props?: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
@@ -420,4 +428,4 @@ declare const IconUploadV2: (props?: SVGProps<SVGSVGElement>) => React__default.
|
|
|
420
428
|
|
|
421
429
|
declare const IconQuestionMark: ({ className, ...props }: SVGProps<SVGSVGElement>) => React__default.JSX.Element;
|
|
422
430
|
|
|
423
|
-
export { Accordion, AccordionItem, type AccordionItemProps, Blanket, BoxError, BoxSuccess, Button, type ButtonProps$1 as ButtonProps, Checkbox, type Column, DateInput, Dropdown, FileUpload, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconHourglass, IconInvisibility, IconLogout, IconNewTab, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpAndDownArror, IconUpload, IconUploadFile, IconUploadV2, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuList, Option, type OptionsProps$1 as OptionsProps, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, RadioGroupBase, type RadioGroupBaseProps, SelectDefault, type SelectDefaultProps, SelectMult, type SelectMultProps, TableComponent, type TableComponentProps, TextareaBase, type TextareaBaseProps, Title, Tooltip };
|
|
431
|
+
export { Accordion, AccordionItem, type AccordionItemProps, Blanket, BoxError, BoxSuccess, Button, type ButtonProps$1 as ButtonProps, Checkbox, type Column, DateInput, Dropdown, FileUpload, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowRecall, IconCLose, IconCalendar, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDelete, IconDownload, IconEdit, IconEventAvaliable, IconHourglass, IconInvisibility, IconLogout, IconNewTab, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconUpAndDownArror, IconUpload, IconUploadFile, IconUploadV2, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuList, Modal, Option, type OptionsProps$1 as OptionsProps, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, RadioGroupBase, type RadioGroupBaseProps, SelectDefault, type SelectDefaultProps, SelectMult, type SelectMultProps, TableComponent, type TableComponentProps, TextareaBase, type TextareaBaseProps, Title, Tooltip };
|