@monolith-forensics/monolith-ui 1.1.29 → 1.1.30
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/Button/Button.d.ts +19 -0
- package/dist/Button/Button.js +332 -0
- package/dist/Button/index.d.ts +2 -0
- package/dist/Button/index.js +8 -0
- package/dist/Calendar/Calendar.d.ts +15 -0
- package/dist/Calendar/Calendar.js +232 -0
- package/dist/Calendar/CalendarStyles.d.ts +36 -0
- package/dist/Calendar/CalendarStyles.js +170 -0
- package/dist/Calendar/calendarHelpers.d.ts +53 -0
- package/dist/Calendar/calendarHelpers.js +181 -0
- package/dist/Calendar/index.d.ts +1 -0
- package/dist/Calendar/index.js +8 -0
- package/dist/CheckBox/CheckBox.d.ts +13 -0
- package/dist/CheckBox/CheckBox.js +46 -0
- package/dist/CheckBox/index.d.ts +1 -0
- package/dist/CheckBox/index.js +8 -0
- package/dist/DateInput/DateInput.d.ts +24 -0
- package/dist/DateInput/DateInput.js +509 -0
- package/dist/DateInput/index.d.ts +1 -0
- package/dist/DateInput/index.js +8 -0
- package/dist/DropDownMenu/DropDownMenu.d.ts +36 -0
- package/dist/DropDownMenu/DropDownMenu.js +213 -0
- package/dist/DropDownMenu/index.d.ts +1 -0
- package/dist/DropDownMenu/index.js +8 -0
- package/dist/Error/Error.d.ts +4 -0
- package/dist/Error/Error.js +38 -0
- package/dist/Error/index.d.ts +1 -0
- package/dist/Error/index.js +8 -0
- package/dist/FieldLabel/FieldLabel.d.ts +19 -0
- package/dist/FieldLabel/FieldLabel.js +119 -0
- package/dist/FieldLabel/index.d.ts +1 -0
- package/dist/FieldLabel/index.js +8 -0
- package/dist/FileInputField/FileInputField.d.ts +19 -0
- package/dist/FileInputField/FileInputField.js +117 -0
- package/dist/FileInputField/index.d.ts +1 -0
- package/dist/FileInputField/index.js +8 -0
- package/dist/Flyout/Flyout.d.ts +11 -0
- package/dist/Flyout/Flyout.js +111 -0
- package/dist/Flyout/FlyoutHeader.d.ts +5 -0
- package/dist/Flyout/FlyoutHeader.js +12 -0
- package/dist/Flyout/FlyoutTitle.d.ts +2 -0
- package/dist/Flyout/FlyoutTitle.js +13 -0
- package/dist/Flyout/index.d.ts +3 -0
- package/dist/Flyout/index.js +12 -0
- package/dist/FormSection/FormSection.d.ts +9 -0
- package/dist/FormSection/FormSection.js +51 -0
- package/dist/FormSection/index.d.ts +1 -0
- package/dist/FormSection/index.js +8 -0
- package/dist/Grid/Grid.d.ts +8 -0
- package/dist/Grid/Grid.js +18 -0
- package/dist/Grid/index.d.ts +1 -0
- package/dist/Grid/index.js +8 -0
- package/dist/IconButton/IconButton.d.ts +5 -0
- package/dist/IconButton/IconButton.js +30 -0
- package/dist/IconButton/index.d.ts +1 -0
- package/dist/IconButton/index.js +8 -0
- package/dist/Input/Input.d.ts +21 -0
- package/dist/Input/Input.js +149 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +8 -0
- package/dist/Modal/Modal.d.ts +14 -0
- package/dist/Modal/Modal.js +110 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.js +8 -0
- package/dist/MonolithUIProvider/GlobalStyle.d.ts +4 -0
- package/dist/MonolithUIProvider/GlobalStyle.js +53 -0
- package/dist/MonolithUIProvider/MonolithUIProvider.d.ts +10 -0
- package/dist/MonolithUIProvider/MonolithUIProvider.js +29 -0
- package/dist/MonolithUIProvider/index.d.ts +3 -0
- package/dist/MonolithUIProvider/index.js +12 -0
- package/dist/MonolithUIProvider/useMonolithUITheme.d.ts +2 -0
- package/dist/MonolithUIProvider/useMonolithUITheme.js +12 -0
- package/dist/Pill/Pill.d.ts +11 -0
- package/dist/Pill/Pill.js +152 -0
- package/dist/Pill/index.d.ts +1 -0
- package/dist/Pill/index.js +8 -0
- package/dist/SelectBox/SelectBox.d.ts +45 -0
- package/dist/SelectBox/SelectBox.js +477 -0
- package/dist/SelectBox/index.d.ts +1 -0
- package/dist/SelectBox/index.js +8 -0
- package/dist/Switch/Switch.d.ts +18 -0
- package/dist/Switch/Switch.js +157 -0
- package/dist/Switch/index.d.ts +1 -0
- package/dist/Switch/index.js +8 -0
- package/dist/Table/Table.d.ts +91 -0
- package/dist/Table/Table.js +715 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +10 -0
- package/dist/TagBox/TagBox.d.ts +39 -0
- package/dist/TagBox/TagBox.js +590 -0
- package/dist/TagBox/TagBoxStyles.d.ts +11 -0
- package/dist/TagBox/TagBoxStyles.js +113 -0
- package/dist/TagBox/index.d.ts +1 -0
- package/dist/TagBox/index.js +8 -0
- package/dist/TextArea/TextArea.d.ts +16 -0
- package/dist/TextArea/TextArea.js +81 -0
- package/dist/TextArea/index.d.ts +1 -0
- package/dist/TextArea/index.js +8 -0
- package/dist/TextAreaInput/TextAreaInput.d.ts +19 -0
- package/dist/TextAreaInput/TextAreaInput.js +11 -0
- package/dist/TextAreaInput/index.d.ts +1 -0
- package/dist/TextAreaInput/index.js +8 -0
- package/dist/TextInput/TextInput.d.ts +13 -0
- package/dist/TextInput/TextInput.js +31 -0
- package/dist/TextInput/index.d.ts +1 -0
- package/dist/TextInput/index.js +8 -0
- package/dist/Tooltip/Tooltip.d.ts +12 -0
- package/dist/Tooltip/Tooltip.js +53 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/index.js +8 -0
- package/dist/core/ArrowButton.d.ts +6 -0
- package/dist/core/ArrowButton.js +48 -0
- package/dist/core/ClearButton.d.ts +6 -0
- package/dist/core/ClearButton.js +48 -0
- package/dist/core/MonolithThemeProvider.d.ts +4 -0
- package/dist/core/MonolithThemeProvider.js +20 -0
- package/dist/core/StyledContent.d.ts +7 -0
- package/dist/core/StyledContent.js +47 -0
- package/dist/core/StyledFloatContainer.d.ts +2 -0
- package/dist/core/StyledFloatContainer.js +10 -0
- package/dist/core/Types/Size.d.ts +2 -0
- package/dist/core/Types/Size.js +2 -0
- package/dist/core/Types/Variant.d.ts +2 -0
- package/dist/core/Types/Variant.js +2 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.js +14 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +59 -0
- package/dist/theme/index.d.ts +168 -0
- package/dist/theme/index.js +14 -0
- package/dist/theme/typography.d.ts +45 -0
- package/dist/theme/typography.js +59 -0
- package/dist/theme/variants.d.ts +172 -0
- package/dist/theme/variants.js +276 -0
- package/package.json +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const styled_components_1 = require("styled-components");
|
|
4
|
+
const GlobalStyle = (0, styled_components_1.createGlobalStyle) `
|
|
5
|
+
* {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
font-family: ${({ theme }) => theme.typography.fontFamily};
|
|
13
|
+
background-color: ${({ theme }) => theme.palette.background.default};
|
|
14
|
+
color: ${({ theme }) => theme.palette.text.primary};
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
height: 100vh;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#root{
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
height: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h1, h2, h3, h4, h5, h6 {
|
|
27
|
+
font-family: ${({ theme }) => theme.typography.fontFamily};
|
|
28
|
+
color: ${({ theme }) => theme.palette.text.primary};
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h1 {
|
|
33
|
+
margin: 3px 0px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h2 {
|
|
37
|
+
margin: 2px 0px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
h3 {
|
|
41
|
+
margin: 1px 0px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
h4, h5, h6 {
|
|
45
|
+
margin: 0px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
a {
|
|
49
|
+
text-decoration: none;
|
|
50
|
+
color: unset;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
exports.default = GlobalStyle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultTheme } from "styled-components";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const MonolithUIContext: React.Context<DefaultTheme | undefined>;
|
|
4
|
+
interface MonolithUIProviderProps {
|
|
5
|
+
children: React.ReactNode | React.ReactNode[];
|
|
6
|
+
theme?: DefaultTheme;
|
|
7
|
+
defaultColorScheme?: "light" | "dark";
|
|
8
|
+
}
|
|
9
|
+
declare const MonolithUIProvider: ({ children, theme, defaultColorScheme, }: MonolithUIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default MonolithUIProvider;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MonolithUIContext = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
9
|
+
const styled_components_1 = require("styled-components");
|
|
10
|
+
const theme_1 = __importDefault(require("../theme"));
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
const GlobalStyle_1 = __importDefault(require("./GlobalStyle"));
|
|
13
|
+
exports.MonolithUIContext = (0, react_1.createContext)(undefined);
|
|
14
|
+
const MonolithUIProvider = ({ children, theme = {}, defaultColorScheme = "dark", }) => {
|
|
15
|
+
const [colorScheme, setColorScheme] = (0, react_1.useState)(defaultColorScheme);
|
|
16
|
+
const toggleColorScheme = () => {
|
|
17
|
+
setColorScheme(colorScheme === "light" ? "dark" : "light");
|
|
18
|
+
};
|
|
19
|
+
const defaultTheme = (0, theme_1.default)(colorScheme);
|
|
20
|
+
// override default theme with the provided theme
|
|
21
|
+
const _theme = (0, deepmerge_1.default)(defaultTheme, theme);
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(exports.MonolithUIContext.Provider, { value: {
|
|
23
|
+
theme: _theme,
|
|
24
|
+
colorScheme,
|
|
25
|
+
toggleColorScheme,
|
|
26
|
+
setColorScheme,
|
|
27
|
+
}, children: (0, jsx_runtime_1.jsxs)(styled_components_1.ThemeProvider, { theme: _theme, children: [(0, jsx_runtime_1.jsx)(GlobalStyle_1.default, { theme: _theme }), children] }) }));
|
|
28
|
+
};
|
|
29
|
+
exports.default = MonolithUIProvider;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getTheme = exports.useMonolithUITheme = exports.default = void 0;
|
|
7
|
+
var MonolithUIProvider_1 = require("./MonolithUIProvider");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(MonolithUIProvider_1).default; } });
|
|
9
|
+
var useMonolithUITheme_1 = require("./useMonolithUITheme");
|
|
10
|
+
Object.defineProperty(exports, "useMonolithUITheme", { enumerable: true, get: function () { return __importDefault(useMonolithUITheme_1).default; } });
|
|
11
|
+
var theme_1 = require("../theme");
|
|
12
|
+
Object.defineProperty(exports, "getTheme", { enumerable: true, get: function () { return __importDefault(theme_1).default; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const MonolithUIProvider_1 = require("./MonolithUIProvider");
|
|
5
|
+
const useMonolithUITheme = () => {
|
|
6
|
+
const context = (0, react_1.useContext)(MonolithUIProvider_1.MonolithUIContext);
|
|
7
|
+
if (context === undefined) {
|
|
8
|
+
throw new Error("hook must be used within a MonolithUIProvider");
|
|
9
|
+
}
|
|
10
|
+
return context;
|
|
11
|
+
};
|
|
12
|
+
exports.default = useMonolithUITheme;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Size } from "../core";
|
|
3
|
+
interface PillProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
size?: Size;
|
|
7
|
+
showRemoveIcon?: boolean;
|
|
8
|
+
onRemove?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Pill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<PillProps, never>> & string & Omit<({ className, children, size, showRemoveIcon, onRemove, }: PillProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
11
|
+
export default Pill;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
const lucide_react_1 = require("lucide-react");
|
|
9
|
+
const StyledButton = styled_components_1.default.button `
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
border: none;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
outline: none;
|
|
19
|
+
transition: color 0.2s;
|
|
20
|
+
padding-inline-end: 5px;
|
|
21
|
+
`;
|
|
22
|
+
const Pill = (0, styled_components_1.default)(({ className, children, size = "md", showRemoveIcon = true, onRemove, }) => {
|
|
23
|
+
const handleRemove = (e) => {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
e.stopPropagation();
|
|
26
|
+
onRemove === null || onRemove === void 0 ? void 0 : onRemove();
|
|
27
|
+
};
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: className, onClick: (e) => {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
}, children: [(0, jsx_runtime_1.jsx)("span", { className: "pill-content", children: children }), showRemoveIcon && ((0, jsx_runtime_1.jsx)(StyledButton, { onClick: handleRemove, onMouseDown: (e) => {
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
e.stopPropagation();
|
|
34
|
+
}, children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, {}) }))] }));
|
|
35
|
+
}) `
|
|
36
|
+
user-select: none;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
width: fit-content;
|
|
42
|
+
max-width: 250px;
|
|
43
|
+
gap: 5px;
|
|
44
|
+
flex: 0;
|
|
45
|
+
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
color: ${({ theme }) => theme.palette.text.primary};
|
|
48
|
+
|
|
49
|
+
padding-inline-end: ${({ size, showRemoveIcon }) => {
|
|
50
|
+
if (showRemoveIcon !== false) {
|
|
51
|
+
return "0px";
|
|
52
|
+
}
|
|
53
|
+
switch (size) {
|
|
54
|
+
case "xs":
|
|
55
|
+
return "8px";
|
|
56
|
+
case "sm":
|
|
57
|
+
return "10px";
|
|
58
|
+
case "md":
|
|
59
|
+
return "12px";
|
|
60
|
+
case "lg":
|
|
61
|
+
return "14px";
|
|
62
|
+
case "xl":
|
|
63
|
+
return "16px";
|
|
64
|
+
default:
|
|
65
|
+
return "10px";
|
|
66
|
+
}
|
|
67
|
+
}};
|
|
68
|
+
|
|
69
|
+
padding-inline-start: ${({ size }) => {
|
|
70
|
+
switch (size) {
|
|
71
|
+
case "xs":
|
|
72
|
+
return "8px";
|
|
73
|
+
case "sm":
|
|
74
|
+
return "10px";
|
|
75
|
+
case "md":
|
|
76
|
+
return "12px";
|
|
77
|
+
case "lg":
|
|
78
|
+
return "14px";
|
|
79
|
+
case "xl":
|
|
80
|
+
return "16px";
|
|
81
|
+
default:
|
|
82
|
+
return "10px";
|
|
83
|
+
}
|
|
84
|
+
}};
|
|
85
|
+
|
|
86
|
+
height: ${({ size }) => {
|
|
87
|
+
switch (size) {
|
|
88
|
+
case "xs":
|
|
89
|
+
return "20px";
|
|
90
|
+
case "sm":
|
|
91
|
+
return "22px";
|
|
92
|
+
case "md":
|
|
93
|
+
return "24px";
|
|
94
|
+
case "lg":
|
|
95
|
+
return "26px";
|
|
96
|
+
case "xl":
|
|
97
|
+
return "28px";
|
|
98
|
+
default:
|
|
99
|
+
return "22px";
|
|
100
|
+
}
|
|
101
|
+
}};
|
|
102
|
+
|
|
103
|
+
border: 1px solid ${({ theme }) => theme.palette.divider};
|
|
104
|
+
border-radius: 1000px;
|
|
105
|
+
|
|
106
|
+
background-color: ${({ theme }) => theme.palette.background.secondary};
|
|
107
|
+
|
|
108
|
+
.pill-content {
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
text-overflow: ellipsis;
|
|
112
|
+
|
|
113
|
+
font-size: ${({ size }) => {
|
|
114
|
+
switch (size) {
|
|
115
|
+
case "xs":
|
|
116
|
+
return "10px";
|
|
117
|
+
case "sm":
|
|
118
|
+
return "12px";
|
|
119
|
+
case "md":
|
|
120
|
+
return "14px";
|
|
121
|
+
case "lg":
|
|
122
|
+
return "16px";
|
|
123
|
+
case "xl":
|
|
124
|
+
return "18px";
|
|
125
|
+
default:
|
|
126
|
+
return "12px";
|
|
127
|
+
}
|
|
128
|
+
}};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
svg {
|
|
132
|
+
color: ${({ theme }) => theme.palette.text.primary};
|
|
133
|
+
|
|
134
|
+
width: ${({ size }) => {
|
|
135
|
+
switch (size) {
|
|
136
|
+
case "xs":
|
|
137
|
+
return "12px";
|
|
138
|
+
case "sm":
|
|
139
|
+
return "14px";
|
|
140
|
+
case "md":
|
|
141
|
+
return "16px";
|
|
142
|
+
case "lg":
|
|
143
|
+
return "18px";
|
|
144
|
+
case "xl":
|
|
145
|
+
return "20px";
|
|
146
|
+
default:
|
|
147
|
+
return "14px";
|
|
148
|
+
}
|
|
149
|
+
}};
|
|
150
|
+
}
|
|
151
|
+
`;
|
|
152
|
+
exports.default = Pill;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Pill";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var Pill_1 = require("./Pill");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Pill_1).default; } });
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Size, Variant } from "../core";
|
|
3
|
+
export declare const StyledInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
width?: string | number | null;
|
|
5
|
+
}>> & string;
|
|
6
|
+
type Option = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: any;
|
|
9
|
+
group?: string;
|
|
10
|
+
data?: any;
|
|
11
|
+
};
|
|
12
|
+
interface SelectBoxProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
defaultValue?: Option | string;
|
|
15
|
+
data?: Option[] | string[];
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
arrow?: boolean;
|
|
18
|
+
onChange?: (value: any, item: any) => void;
|
|
19
|
+
onSearch?: (value: string) => void;
|
|
20
|
+
searchFn?: (value: string) => void;
|
|
21
|
+
onScroll?: (e: any) => void;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
onItemAdded?: (item: any) => void;
|
|
24
|
+
size?: Size;
|
|
25
|
+
variant?: Variant;
|
|
26
|
+
width?: string | number | null;
|
|
27
|
+
allowCustomValue?: boolean;
|
|
28
|
+
searchable?: boolean;
|
|
29
|
+
clearable?: boolean;
|
|
30
|
+
label?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
error?: string;
|
|
34
|
+
openOnFocus?: boolean;
|
|
35
|
+
renderOption?: (item: Option | string) => ReactNode;
|
|
36
|
+
actionComponent?: JSX.Element;
|
|
37
|
+
focused?: boolean;
|
|
38
|
+
grouped?: boolean;
|
|
39
|
+
TooltipContent?: React.FC<{
|
|
40
|
+
data: any;
|
|
41
|
+
}>;
|
|
42
|
+
DropDownProps?: any;
|
|
43
|
+
}
|
|
44
|
+
declare const SelectBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<SelectBoxProps, never>> & string & Omit<({ className, data, placeholder, arrow, onChange, onSearch, searchFn, onScroll, loading, defaultValue, onItemAdded, size, variant, width, allowCustomValue, searchable, clearable, label, description, required, error, openOnFocus, renderOption, actionComponent, focused, grouped, TooltipContent, DropDownProps, }: SelectBoxProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
45
|
+
export default SelectBox;
|