@kwantis-id3/frontend-library 0.17.1 → 0.18.0

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,9 @@
1
+ import React from "react";
2
+ interface ModalProps {
3
+ children: React.ReactNode;
4
+ isOpen: boolean;
5
+ setIsOpen: (isOpen: boolean) => void;
6
+ onClose?: () => void;
7
+ }
8
+ declare const Modal: React.FC<ModalProps>;
9
+ export default Modal;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const DialogElement: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("..").ThemeContextProps | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, {}>;
6
+ export declare const ExitButtonContainer: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("..").ThemeContextProps | undefined;
8
+ as?: import("react").ElementType<any> | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,2 @@
1
+ import Modal from "./Modal";
2
+ export { Modal };
@@ -18,6 +18,7 @@ export interface MultiSelectProps<Option = {
18
18
  containerId?: string;
19
19
  htmlId?: string;
20
20
  className?: string;
21
+ menuPosition?: "fixed" | "absolute";
21
22
  required?: boolean;
22
23
  }
23
24
  export declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
@@ -18,6 +18,7 @@ export interface SingleSelectProps<Option = {
18
18
  containerId?: string;
19
19
  htmlId?: string;
20
20
  className?: string;
21
+ menuPosition?: "fixed" | "absolute";
21
22
  required?: boolean;
22
23
  }
23
24
  export declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
@@ -5,3 +5,4 @@ export { TextField } from "./TextField";
5
5
  export { SingleSelect, SingleSelectProps, MultiSelect, MultiSelectProps, } from "./SelectFilter";
6
6
  export { Slider, SliderProps } from "./Slider";
7
7
  export { Dropdown, DropdownProps, DropdownItem } from "./Dropdown";
8
+ export { Modal } from "./Modal";
package/dist/index.d.ts CHANGED
@@ -108,6 +108,7 @@ interface SingleSelectProps<Option = {
108
108
  containerId?: string;
109
109
  htmlId?: string;
110
110
  className?: string;
111
+ menuPosition?: "fixed" | "absolute";
111
112
  required?: boolean;
112
113
  }
113
114
  declare const SingleSelect: <Option>(props: SingleSelectProps<Option>) => JSX.Element;
@@ -130,6 +131,7 @@ interface MultiSelectProps<Option = {
130
131
  containerId?: string;
131
132
  htmlId?: string;
132
133
  className?: string;
134
+ menuPosition?: "fixed" | "absolute";
133
135
  required?: boolean;
134
136
  }
135
137
  declare const MultiSelect: <Option>(props: MultiSelectProps<Option>) => JSX.Element;
@@ -170,6 +172,14 @@ type DropdownProps = {
170
172
  };
171
173
  declare const Dropdown: (props: DropdownProps) => JSX.Element;
172
174
 
175
+ interface ModalProps {
176
+ children: React__default.ReactNode;
177
+ isOpen: boolean;
178
+ setIsOpen: (isOpen: boolean) => void;
179
+ onClose?: () => void;
180
+ }
181
+ declare const Modal: React__default.FC<ModalProps>;
182
+
173
183
  /**
174
184
  * Hook to check if the screen is mobile. The default breakpoint is 768px.
175
185
  * @param {number=} mobileBreakpoint breakpoint width to check against
@@ -215,4 +225,4 @@ interface CreateStyled extends BaseCreateStyled, StyledTags {
215
225
  }
216
226
  declare const styled: CreateStyled;
217
227
 
218
- export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TextField, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, styled, transientOptions, useIsMobile, useThemeContext };
228
+ export { Accordion, AccordionProps, Button, ButtonProps, Dropdown, DropdownItem, DropdownProps, Modal, MultiSelect, MultiSelectProps, SingleSelect, SingleSelectProps, Slider, SliderProps, TextField, ThemeColors, ThemeColorsObject, ThemeContextProps, ThemeContextProvider, styled, transientOptions, useIsMobile, useThemeContext };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "author": {
6
6
  "name": "kwantis"