@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.
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/esm/index.js +17 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Modal/Modal.d.ts +9 -0
- package/dist/esm/types/components/Modal/StyledModal.d.ts +9 -0
- package/dist/esm/types/components/Modal/index.d.ts +2 -0
- package/dist/esm/types/components/SelectFilter/MultiSelect.d.ts +1 -0
- package/dist/esm/types/components/SelectFilter/SingleSelect.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
|
@@ -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>, {}>;
|
|
@@ -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 };
|