@monolith-forensics/monolith-ui 1.1.27 → 1.1.29
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/package.json +3 -1
- package/dist/Button/Button.d.ts +0 -19
- package/dist/Button/Button.js +0 -332
- package/dist/Button/index.d.ts +0 -2
- package/dist/Button/index.js +0 -8
- package/dist/Calendar/Calendar.d.ts +0 -15
- package/dist/Calendar/Calendar.js +0 -232
- package/dist/Calendar/CalendarStyles.d.ts +0 -36
- package/dist/Calendar/CalendarStyles.js +0 -170
- package/dist/Calendar/calendarHelpers.d.ts +0 -53
- package/dist/Calendar/calendarHelpers.js +0 -181
- package/dist/Calendar/index.d.ts +0 -1
- package/dist/Calendar/index.js +0 -8
- package/dist/CheckBox/CheckBox.d.ts +0 -13
- package/dist/CheckBox/CheckBox.js +0 -46
- package/dist/CheckBox/index.d.ts +0 -1
- package/dist/CheckBox/index.js +0 -8
- package/dist/DateInput/DateInput.d.ts +0 -24
- package/dist/DateInput/DateInput.js +0 -509
- package/dist/DateInput/index.d.ts +0 -1
- package/dist/DateInput/index.js +0 -8
- package/dist/DropDownMenu/DropDownMenu.d.ts +0 -36
- package/dist/DropDownMenu/DropDownMenu.js +0 -213
- package/dist/DropDownMenu/index.d.ts +0 -1
- package/dist/DropDownMenu/index.js +0 -8
- package/dist/Error/Error.d.ts +0 -4
- package/dist/Error/Error.js +0 -38
- package/dist/Error/index.d.ts +0 -1
- package/dist/Error/index.js +0 -8
- package/dist/FieldLabel/FieldLabel.d.ts +0 -19
- package/dist/FieldLabel/FieldLabel.js +0 -119
- package/dist/FieldLabel/index.d.ts +0 -1
- package/dist/FieldLabel/index.js +0 -8
- package/dist/FileInputField/FileInputField.d.ts +0 -19
- package/dist/FileInputField/FileInputField.js +0 -117
- package/dist/FileInputField/index.d.ts +0 -1
- package/dist/FileInputField/index.js +0 -8
- package/dist/Flyout/Flyout.d.ts +0 -11
- package/dist/Flyout/Flyout.js +0 -111
- package/dist/Flyout/FlyoutHeader.d.ts +0 -5
- package/dist/Flyout/FlyoutHeader.js +0 -12
- package/dist/Flyout/FlyoutTitle.d.ts +0 -2
- package/dist/Flyout/FlyoutTitle.js +0 -13
- package/dist/Flyout/index.d.ts +0 -3
- package/dist/Flyout/index.js +0 -12
- package/dist/FormSection/FormSection.d.ts +0 -9
- package/dist/FormSection/FormSection.js +0 -51
- package/dist/FormSection/index.d.ts +0 -1
- package/dist/FormSection/index.js +0 -8
- package/dist/Grid/Grid.d.ts +0 -8
- package/dist/Grid/Grid.js +0 -18
- package/dist/Grid/index.d.ts +0 -1
- package/dist/Grid/index.js +0 -8
- package/dist/IconButton/IconButton.d.ts +0 -5
- package/dist/IconButton/IconButton.js +0 -30
- package/dist/IconButton/index.d.ts +0 -1
- package/dist/IconButton/index.js +0 -8
- package/dist/Input/Input.d.ts +0 -21
- package/dist/Input/Input.js +0 -149
- package/dist/Input/index.d.ts +0 -1
- package/dist/Input/index.js +0 -8
- package/dist/Modal/Modal.d.ts +0 -14
- package/dist/Modal/Modal.js +0 -110
- package/dist/Modal/index.d.ts +0 -1
- package/dist/Modal/index.js +0 -8
- package/dist/MonolithUIProvider/GlobalStyle.d.ts +0 -4
- package/dist/MonolithUIProvider/GlobalStyle.js +0 -53
- package/dist/MonolithUIProvider/MonolithUIProvider.d.ts +0 -9
- package/dist/MonolithUIProvider/MonolithUIProvider.js +0 -29
- package/dist/MonolithUIProvider/index.d.ts +0 -2
- package/dist/MonolithUIProvider/index.js +0 -10
- package/dist/MonolithUIProvider/useMonolithUITheme.d.ts +0 -2
- package/dist/MonolithUIProvider/useMonolithUITheme.js +0 -12
- package/dist/Pill/Pill.d.ts +0 -11
- package/dist/Pill/Pill.js +0 -152
- package/dist/Pill/index.d.ts +0 -1
- package/dist/Pill/index.js +0 -8
- package/dist/SelectBox/SelectBox.d.ts +0 -45
- package/dist/SelectBox/SelectBox.js +0 -477
- package/dist/SelectBox/index.d.ts +0 -1
- package/dist/SelectBox/index.js +0 -8
- package/dist/Switch/Switch.d.ts +0 -18
- package/dist/Switch/Switch.js +0 -157
- package/dist/Switch/index.d.ts +0 -1
- package/dist/Switch/index.js +0 -8
- package/dist/Table/Table.d.ts +0 -90
- package/dist/Table/Table.js +0 -714
- package/dist/Table/index.d.ts +0 -2
- package/dist/Table/index.js +0 -10
- package/dist/TagBox/TagBox.d.ts +0 -39
- package/dist/TagBox/TagBox.js +0 -590
- package/dist/TagBox/TagBoxStyles.d.ts +0 -11
- package/dist/TagBox/TagBoxStyles.js +0 -113
- package/dist/TagBox/index.d.ts +0 -1
- package/dist/TagBox/index.js +0 -8
- package/dist/TextArea/TextArea.d.ts +0 -16
- package/dist/TextArea/TextArea.js +0 -81
- package/dist/TextArea/index.d.ts +0 -1
- package/dist/TextArea/index.js +0 -8
- package/dist/TextAreaInput/TextAreaInput.d.ts +0 -19
- package/dist/TextAreaInput/TextAreaInput.js +0 -11
- package/dist/TextAreaInput/index.d.ts +0 -1
- package/dist/TextAreaInput/index.js +0 -8
- package/dist/TextInput/TextInput.d.ts +0 -13
- package/dist/TextInput/TextInput.js +0 -31
- package/dist/TextInput/index.d.ts +0 -1
- package/dist/TextInput/index.js +0 -8
- package/dist/Tooltip/Tooltip.d.ts +0 -12
- package/dist/Tooltip/Tooltip.js +0 -53
- package/dist/Tooltip/index.d.ts +0 -1
- package/dist/Tooltip/index.js +0 -8
- package/dist/core/ArrowButton.d.ts +0 -6
- package/dist/core/ArrowButton.js +0 -48
- package/dist/core/ClearButton.d.ts +0 -6
- package/dist/core/ClearButton.js +0 -48
- package/dist/core/MonolithThemeProvider.d.ts +0 -4
- package/dist/core/MonolithThemeProvider.js +0 -20
- package/dist/core/StyledContent.d.ts +0 -7
- package/dist/core/StyledContent.js +0 -47
- package/dist/core/StyledFloatContainer.d.ts +0 -2
- package/dist/core/StyledFloatContainer.js +0 -10
- package/dist/core/Types/Size.d.ts +0 -2
- package/dist/core/Types/Size.js +0 -2
- package/dist/core/Types/Variant.d.ts +0 -2
- package/dist/core/Types/Variant.js +0 -2
- package/dist/core/index.d.ts +0 -6
- package/dist/core/index.js +0 -14
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -59
- package/dist/theme/index.d.ts +0 -168
- package/dist/theme/index.js +0 -14
- package/dist/theme/typography.d.ts +0 -45
- package/dist/theme/typography.js +0 -59
- package/dist/theme/variants.d.ts +0 -172
- package/dist/theme/variants.js +0 -276
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DefaultTheme } from "styled-components";
|
|
2
|
-
export declare const MonolithUIContext: import("react").Context<DefaultTheme | undefined>;
|
|
3
|
-
interface MonolithUIProviderProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
theme?: DefaultTheme;
|
|
6
|
-
defaultColorScheme?: "light" | "dark";
|
|
7
|
-
}
|
|
8
|
-
declare const MonolithUIProvider: ({ children, theme, defaultColorScheme, }: MonolithUIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default MonolithUIProvider;
|
|
@@ -1,29 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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.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; } });
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
package/dist/Pill/Pill.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
package/dist/Pill/Pill.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
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;
|
package/dist/Pill/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./Pill";
|
package/dist/Pill/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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; } });
|
|
@@ -1,45 +0,0 @@
|
|
|
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;
|