jderobot-ide-interface 0.1.32 → 0.1.34

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,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import DeleteModal from "./DeleteModal";
3
+ type Story = StoryObj<typeof DeleteModal>;
4
+ declare const meta: Meta<typeof DeleteModal>;
5
+ export default meta;
6
+ export declare const Main: Story;
@@ -25,15 +25,17 @@ interface StyledModalErrorProps {
25
25
  export declare const StyledModalError: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{
26
26
  id: string;
27
27
  isOpen: boolean;
28
- hasCloseBtn: boolean;
29
28
  onClose: Function;
30
29
  children: any;
31
- }, StyledModalErrorProps>> & string & Omit<({ id, isOpen, hasCloseBtn, onClose, children, }: {
30
+ onSubmit?: (event: any) => void;
31
+ onReset?: (event: any) => void;
32
+ }, StyledModalErrorProps>> & string & Omit<({ id, isOpen, onClose, children, onSubmit, onReset, }: {
32
33
  id: string;
33
34
  isOpen: boolean;
34
- hasCloseBtn: boolean;
35
35
  onClose: Function;
36
36
  children: any;
37
+ onSubmit?: (event: any) => void;
38
+ onReset?: (event: any) => void;
37
39
  }) => JSX.Element, keyof import("react").Component<any, {}, any>>;
38
40
  interface StyledModalErrorTitlebarProps {
39
41
  variant: ErrorVariant;
@@ -1,9 +1,12 @@
1
- declare const Modal: ({ id, isOpen, hasCloseBtn, onClose, children, }: {
1
+ import { ReactNode } from "react";
2
+ import { ModelRowTypes } from "Types";
3
+ declare const Modal: ({ id, isOpen, onClose, children, onSubmit, onReset, }: {
2
4
  id: string;
3
5
  isOpen: boolean;
4
- hasCloseBtn: boolean;
5
6
  onClose: Function;
6
7
  children: any;
8
+ onSubmit?: (event: any) => void;
9
+ onReset?: (event: any) => void;
7
10
  }) => JSX.Element;
8
11
  export default Modal;
9
12
  export declare const ModalTitlebar: {
@@ -22,3 +25,20 @@ export declare const ModalTitlebar: {
22
25
  handleBack: () => void;
23
26
  };
24
27
  };
28
+ export declare const ModalRow: {
29
+ ({ type, children, }: {
30
+ type: ModelRowTypes;
31
+ children?: ReactNode;
32
+ }): JSX.Element;
33
+ defaultProps: {
34
+ type: string;
35
+ };
36
+ };
37
+ interface ModalInputBoxProps extends React.InputHTMLAttributes<HTMLInputElement> {
38
+ ref: React.RefObject<HTMLInputElement>;
39
+ id: string;
40
+ placeholder: string;
41
+ onChange: (event: any) => void;
42
+ isInputValid: boolean;
43
+ }
44
+ export declare const ModalInputBox: ({ ref, id, placeholder, onChange, isInputValid, ...props }: ModalInputBoxProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export { default as Modal, ModalTitlebar } from "./Modal";
1
+ export { default as Modal, ModalTitlebar, ModalInputBox, ModalRow } from "./Modal";
2
2
  export { default as DeleteModal } from "./DeleteModal";
3
3
  export { default as NewFileModal } from "./NewFileModal";
4
4
  export { default as NewFolderModal } from "./NewFolderModal";
@@ -5,5 +5,5 @@ interface StyledProgressBarProps {
5
5
  roundness?: number;
6
6
  progress?: number;
7
7
  }
8
- export declare const StyledModalCardsEntry: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProgressBarProps>> & string;
8
+ export declare const StyledProgressBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProgressBarProps>> & string;
9
9
  export {};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { IdeInterface } from "./components";
2
2
  export default IdeInterface;
3
3
  export { VncViewer } from "./components";
4
- export { Button, MenuButton, MenuButtonStroke, MenuButtonLabel } from "./components";
4
+ export { ProgressBar } from "./components";
5
+ export { Button, MenuButton, MenuButtonStroke, MenuButtonLabel, } from "./components";
6
+ export { Modal, ModalTitlebar, ModalRow, ModalInputBox } from "./components";
5
7
  export { ThemeProvider, useTheme, OptionsProvider, useOptions, ErrorProvider, useError, } from "./utils";
6
- export type { ExtraEditorProps, Layout, Entry, Options, Theme, ExplorerEntry, EditorsEntry, ViewersEntry, newFileData, ExtraApi, StatusBarComponents, } from "./types";
8
+ export type { ExtraEditorProps, Layout, Entry, Options, Theme, ExplorerEntry, EditorsEntry, ViewersEntry, newFileData, ExtraApi, StatusBarComponents, ModelRowTypes } from "./types";