pixelize-design-library 1.1.7 → 1.1.8
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/App.d.ts +1 -1
- package/dist/App.js +92 -2
- package/dist/Components/Input/TextInput.d.ts +1 -1
- package/dist/Components/Input/TextInput.js +18 -3
- package/dist/Components/Input/TextInputProps.d.ts +4 -0
- package/dist/Components/SelectSearch/SelectSearch.d.ts +1 -1
- package/dist/Components/SelectSearch/SelectSearch.js +6 -4
- package/dist/Components/SelectSearch/SelectSearchProps.d.ts +2 -0
- package/dist/Components/SideBar/SideBar.js +5 -0
- package/dist/Layout.d.ts +1 -1
- package/dist/Layout.js +145 -672
- package/dist/Pages/accordion.d.ts +3 -0
- package/dist/Pages/accordion.js +42 -0
- package/dist/Pages/alertdialog.d.ts +3 -0
- package/dist/Pages/alertdialog.js +44 -0
- package/dist/Pages/button.d.ts +3 -0
- package/dist/Pages/button.js +18 -0
- package/dist/Pages/card.d.ts +3 -0
- package/dist/Pages/card.js +48 -0
- package/dist/Pages/chart.d.ts +3 -0
- package/dist/Pages/chart.js +26 -0
- package/dist/Pages/checkbox.d.ts +3 -0
- package/dist/Pages/checkbox.js +12 -0
- package/dist/Pages/datePick.d.ts +3 -0
- package/dist/Pages/datePick.js +38 -0
- package/dist/Pages/drawer.d.ts +3 -0
- package/dist/Pages/drawer.js +48 -0
- package/dist/Pages/dropdown.d.ts +3 -0
- package/dist/Pages/dropdown.js +24 -0
- package/dist/Pages/editor.d.ts +3 -0
- package/dist/Pages/editor.js +14 -0
- package/dist/Pages/input.d.ts +3 -0
- package/dist/Pages/input.js +28 -0
- package/dist/Pages/katable.d.ts +3 -0
- package/dist/Pages/katable.js +194 -0
- package/dist/Pages/modal.d.ts +3 -0
- package/dist/Pages/modal.js +55 -0
- package/dist/Pages/multiSelect.d.ts +3 -0
- package/dist/Pages/multiSelect.js +45 -0
- package/dist/Pages/noteArea.d.ts +3 -0
- package/dist/Pages/noteArea.js +49 -0
- package/dist/Pages/numberInput.d.ts +3 -0
- package/dist/Pages/numberInput.js +39 -0
- package/dist/Pages/photoViewer.d.ts +3 -0
- package/dist/Pages/photoViewer.js +12 -0
- package/dist/Pages/pinInputs.d.ts +3 -0
- package/dist/Pages/pinInputs.js +12 -0
- package/dist/Pages/progressbar.d.ts +3 -0
- package/dist/Pages/progressbar.js +12 -0
- package/dist/Pages/radioButton.d.ts +3 -0
- package/dist/Pages/radioButton.js +44 -0
- package/dist/Pages/search.d.ts +3 -0
- package/dist/Pages/search.js +44 -0
- package/dist/Pages/select.d.ts +3 -0
- package/dist/Pages/select.js +43 -0
- package/dist/Pages/selectSearch.d.ts +3 -0
- package/dist/Pages/selectSearch.js +27 -0
- package/dist/Pages/skeleton.d.ts +3 -0
- package/dist/Pages/skeleton.js +22 -0
- package/dist/Pages/switch.d.ts +3 -0
- package/dist/Pages/switch.js +40 -0
- package/dist/Pages/textArea.d.ts +3 -0
- package/dist/Pages/textArea.js +12 -0
- package/dist/Pages/timeline.d.ts +3 -0
- package/dist/Pages/timeline.js +74 -0
- package/dist/Pages/tooltip.d.ts +3 -0
- package/dist/Pages/tooltip.js +12 -0
- package/dist/Pages/toster.d.ts +3 -0
- package/dist/Pages/toster.js +22 -0
- package/dist/Pages/verifyEmail.d.ts +3 -0
- package/dist/Pages/verifyEmail.js +18 -0
- package/package.json +2 -2
- package/dist/Components/KaTable/ka-table.css +0 -43
- package/dist/Theme/Default/fonts.d.ts +0 -35
- package/dist/Theme/Default/fonts.js +0 -37
package/dist/App.d.ts
CHANGED
package/dist/App.js
CHANGED
|
@@ -1,12 +1,102 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_1 =
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var react_2 = require("@chakra-ui/react");
|
|
31
|
+
var Loading_1 = __importDefault(require("./Components/Loading/Loading"));
|
|
32
|
+
var SideBar_1 = __importDefault(require("./Components/SideBar/SideBar"));
|
|
33
|
+
var NavigationBar_1 = __importDefault(require("./Components/NavigationBar/NavigationBar"));
|
|
34
|
+
var Breadcrumbs_1 = __importDefault(require("./Components/Breadcrumbs/Breadcrumbs"));
|
|
35
|
+
var icons_1 = require("@chakra-ui/icons");
|
|
36
|
+
var fi_1 = require("react-icons/fi");
|
|
7
37
|
var Layout_1 = __importDefault(require("./Layout"));
|
|
8
38
|
function App() {
|
|
39
|
+
function useWindowSize() {
|
|
40
|
+
var _a = (0, react_1.useState)({
|
|
41
|
+
width: 0,
|
|
42
|
+
height: 0,
|
|
43
|
+
}), windowSize = _a[0], setWindowSize = _a[1];
|
|
44
|
+
(0, react_1.useEffect)(function () {
|
|
45
|
+
function handleResize() {
|
|
46
|
+
setWindowSize({
|
|
47
|
+
width: window.innerWidth,
|
|
48
|
+
height: window.innerHeight,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
window.addEventListener("resize", handleResize);
|
|
52
|
+
handleResize();
|
|
53
|
+
return function () { return window.removeEventListener("resize", handleResize); };
|
|
54
|
+
}, []);
|
|
55
|
+
return windowSize;
|
|
56
|
+
}
|
|
57
|
+
var _a = useWindowSize(), width = _a.width, height = _a.height;
|
|
58
|
+
var breadcrumbItems = [
|
|
59
|
+
{ path: "/home", label: "Home" },
|
|
60
|
+
{ path: "/about", label: "About" },
|
|
61
|
+
{ path: "/contact", label: "Contact" },
|
|
62
|
+
];
|
|
63
|
+
var handleClick = function (path) {
|
|
64
|
+
console.log("Navigating to ".concat(path));
|
|
65
|
+
};
|
|
66
|
+
var menu = [
|
|
67
|
+
{
|
|
68
|
+
title: "Dashboard",
|
|
69
|
+
icon: fi_1.FiHome,
|
|
70
|
+
url: "dashboard",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
title: "Calendar",
|
|
74
|
+
icon: fi_1.FiCalendar,
|
|
75
|
+
url: "description",
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
var _b = (0, react_1.useState)(true), toggle = _b[0], changeToggle = _b[1];
|
|
79
|
+
var _c = (0, react_1.useState)(""), activeMenu = _c[0], setActiveMenu = _c[1];
|
|
80
|
+
var handleMenuClick = function (title, url) {
|
|
81
|
+
setActiveMenu(title);
|
|
82
|
+
};
|
|
83
|
+
var navmenus = [
|
|
84
|
+
{ title: "Account Settings", url: "myaccount" },
|
|
85
|
+
{ title: "Resetpassword", url: "resetpassword" },
|
|
86
|
+
];
|
|
87
|
+
var handleNavOnClick = function (title) { };
|
|
88
|
+
var handleLogout = function () { };
|
|
9
89
|
return (react_1.default.createElement("div", { className: "App" },
|
|
10
|
-
react_1.default.createElement(
|
|
90
|
+
react_1.default.createElement(react_2.Box, { minH: "100vh", bg: "gray.100", overflow: "hidden" },
|
|
91
|
+
react_1.default.createElement(Loading_1.default, { text: "PIXELIZE CRM", isLoading: false, onlytext: true }),
|
|
92
|
+
react_1.default.createElement(react_2.Flex, null,
|
|
93
|
+
react_1.default.createElement(react_2.Box, null,
|
|
94
|
+
react_1.default.createElement(SideBar_1.default, { menus: menu, activeMenu: activeMenu, handleMenuClick: handleMenuClick, toggle: toggle, changeToggle: function () { return changeToggle(!toggle); }, logo: "https://bit.ly/dan-abramov", companyName: "PIXELIZE" })),
|
|
95
|
+
react_1.default.createElement(react_2.Box, { flex: "1", maxWidth: width, overflow: "hidden" },
|
|
96
|
+
react_1.default.createElement(NavigationBar_1.default, { userAvathar: "https://bit.ly/dan-abramo", userName: "PIXELIZE", navMenu: navmenus, handleNavOnClick: handleNavOnClick, handleLogout: handleLogout, logoutText: "Logout", key: "navbar" }),
|
|
97
|
+
react_1.default.createElement("br", null),
|
|
98
|
+
react_1.default.createElement(Breadcrumbs_1.default, { separator: react_1.default.createElement(icons_1.ChevronRightIcon, { color: "gray.500" }), items: breadcrumbItems, handleClick: handleClick }),
|
|
99
|
+
react_1.default.createElement(react_2.Box, { p: "50px", height: height - 160, overflowY: "scroll", width: width - 75 },
|
|
100
|
+
react_1.default.createElement(Layout_1.default, null)))))));
|
|
11
101
|
}
|
|
12
102
|
exports.default = App;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TextInputProps } from "./TextInputProps";
|
|
3
|
-
declare function TextInput({ label, type, id, name, onChange, onBlur, onFocus, isDisabled, isReadOnly, isRequired, value, placeholder, width, error, errorMessage, helperText, onRightIconclick, inputRightIcon, inputGroupStyle, inputStyle, size, isInformation, informationMessage, }: TextInputProps): React.JSX.Element;
|
|
3
|
+
declare function TextInput({ label, type, id, name, onChange, onBlur, onFocus, isDisabled, isReadOnly, isRequired, value, placeholder, width, error, errorMessage, helperText, onRightIconclick, inputRightIcon, inputLeftIcon, onLeftIconClick, inputGroupStyle, inputStyle, size, isInformation, informationMessage, leftElementStyle, rightElementStyle, }: TextInputProps): React.JSX.Element;
|
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof TextInput>;
|
|
5
5
|
export default _default;
|
|
@@ -21,15 +21,30 @@ var FormLabel_1 = require("../Common/FormLabel");
|
|
|
21
21
|
var HelperText_1 = __importDefault(require("../Common/HelperText"));
|
|
22
22
|
var ErrorMessage_1 = __importDefault(require("../Common/ErrorMessage"));
|
|
23
23
|
function TextInput(_a) {
|
|
24
|
-
var label = _a.label, _b = _a.type, type = _b === void 0 ? "text" : _b, id = _a.id, name = _a.name, onChange = _a.onChange, onBlur = _a.onBlur, onFocus = _a.onFocus, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isReadOnly, isReadOnly = _d === void 0 ? false : _d, _e = _a.isRequired, isRequired = _e === void 0 ? false : _e, value = _a.value, _f = _a.placeholder, placeholder = _f === void 0 ? "Placeholder" : _f, _g = _a.width, width = _g === void 0 ? "250px" : _g, error = _a.error, errorMessage = _a.errorMessage, helperText = _a.helperText, onRightIconclick = _a.onRightIconclick, inputRightIcon = _a.inputRightIcon, inputGroupStyle = _a.inputGroupStyle, inputStyle = _a.inputStyle, _h = _a.size, size = _h === void 0 ? "sm" : _h, _j = _a.isInformation, isInformation = _j === void 0 ? false : _j, informationMessage = _a.informationMessage;
|
|
24
|
+
var label = _a.label, _b = _a.type, type = _b === void 0 ? "text" : _b, id = _a.id, name = _a.name, onChange = _a.onChange, onBlur = _a.onBlur, onFocus = _a.onFocus, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isReadOnly, isReadOnly = _d === void 0 ? false : _d, _e = _a.isRequired, isRequired = _e === void 0 ? false : _e, value = _a.value, _f = _a.placeholder, placeholder = _f === void 0 ? "Placeholder" : _f, _g = _a.width, width = _g === void 0 ? "250px" : _g, error = _a.error, errorMessage = _a.errorMessage, helperText = _a.helperText, onRightIconclick = _a.onRightIconclick, inputRightIcon = _a.inputRightIcon, inputLeftIcon = _a.inputLeftIcon, onLeftIconClick = _a.onLeftIconClick, inputGroupStyle = _a.inputGroupStyle, inputStyle = _a.inputStyle, _h = _a.size, size = _h === void 0 ? "sm" : _h, _j = _a.isInformation, isInformation = _j === void 0 ? false : _j, informationMessage = _a.informationMessage, leftElementStyle = _a.leftElementStyle, rightElementStyle = _a.rightElementStyle;
|
|
25
25
|
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
26
|
+
var getPadding = function () {
|
|
27
|
+
if (inputLeftIcon && inputRightIcon) {
|
|
28
|
+
return "0 1.6rem 0 1.6rem";
|
|
29
|
+
}
|
|
30
|
+
else if (inputLeftIcon) {
|
|
31
|
+
return "0 0.5rem 0 1.6rem";
|
|
32
|
+
}
|
|
33
|
+
else if (inputRightIcon) {
|
|
34
|
+
return "0 1.6rem 0 0.5rem";
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return "0 0.5rem";
|
|
38
|
+
}
|
|
39
|
+
};
|
|
26
40
|
return (react_1.default.createElement(react_2.FormControl, { isInvalid: error },
|
|
27
41
|
label && (react_1.default.createElement(FormLabel_1.TextLabel, { label: label, id: id, isInformation: isInformation, informationMessage: informationMessage, isRequired: isRequired })),
|
|
28
42
|
react_1.default.createElement(react_2.InputGroup, { width: width, style: inputGroupStyle },
|
|
43
|
+
inputLeftIcon && (react_1.default.createElement(react_2.InputLeftElement, { onClick: onLeftIconClick, style: __assign(__assign({}, leftElementStyle), { height: "1.8rem", width: "1.8rem", cursor: "pointer" }) }, inputLeftIcon)),
|
|
29
44
|
react_1.default.createElement(react_2.Input, { type: type,
|
|
30
45
|
// variant={variant}
|
|
31
|
-
placeholder: placeholder, onChange: onChange, onBlur: onBlur, onFocus: onFocus, value: value, errorBorderColor: error ? "crimson" : "", isDisabled: isDisabled, isReadOnly: isReadOnly, id: id, name: name, size: size, style: __assign(__assign({}, inputStyle), { backgroundColor: theme.colors.backgroundColor.light, fontWeight: 600, color: theme.colors.gray[600], padding:
|
|
32
|
-
inputRightIcon && (react_1.default.createElement(react_2.InputRightElement, { onClick: onRightIconclick }, inputRightIcon))),
|
|
46
|
+
placeholder: placeholder, onChange: onChange, onBlur: onBlur, onFocus: onFocus, value: value, errorBorderColor: error ? "crimson" : "", isDisabled: isDisabled, isReadOnly: isReadOnly, id: id, name: name, size: size, style: __assign(__assign({}, inputStyle), { backgroundColor: theme.colors.backgroundColor.light, fontWeight: 600, color: theme.colors.gray[600], padding: getPadding(), fontSize: 15, letterSpacing: 0.7 }) }),
|
|
47
|
+
inputRightIcon && (react_1.default.createElement(react_2.InputRightElement, { onClick: onRightIconclick, style: __assign(__assign({}, rightElementStyle), { height: "1.8rem", width: "1.8rem" }) }, inputRightIcon))),
|
|
33
48
|
error && react_1.default.createElement(ErrorMessage_1.default, { errorMessage: errorMessage }),
|
|
34
49
|
helperText && !error && react_1.default.createElement(HelperText_1.default, { helperText: helperText })));
|
|
35
50
|
}
|
|
@@ -9,8 +9,12 @@ export type TextInputProps = Pick<InputProps, "value" | "type" | "onChange" | "p
|
|
|
9
9
|
helperText?: string;
|
|
10
10
|
onRightIconclick?: () => void;
|
|
11
11
|
inputRightIcon?: JSX.Element | string;
|
|
12
|
+
onLeftIconClick?: () => void;
|
|
13
|
+
inputLeftIcon?: JSX.Element | string;
|
|
12
14
|
inputStyle?: {};
|
|
13
15
|
inputGroupStyle?: {};
|
|
14
16
|
isInformation?: boolean;
|
|
15
17
|
informationMessage?: string;
|
|
18
|
+
leftElementStyle?: {};
|
|
19
|
+
rightElementStyle?: {};
|
|
16
20
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SelectSearchProps } from "./SelectSearchProps";
|
|
3
|
-
export default function SelectSearch({ options, initialSelectedOption, onOptionSelect, inputOnchange, id, name, label, inputStyle, dropdownStyle, isOptionLoading, loadingText, boxStyle, placeholder, searchQuery, isInformation, informationMessage, }: Readonly<SelectSearchProps>): React.JSX.Element;
|
|
3
|
+
export default function SelectSearch({ options, initialSelectedOption, onOptionSelect, inputOnchange, id, name, label, inputStyle, dropdownStyle, isOptionLoading, loadingText, boxStyle, placeholder, searchQuery, isInformation, informationMessage, rightIcon, rightElementStyle, }: Readonly<SelectSearchProps>): React.JSX.Element;
|
|
@@ -39,7 +39,7 @@ var react_2 = require("@chakra-ui/react");
|
|
|
39
39
|
var FormLabel_1 = require("../Common/FormLabel");
|
|
40
40
|
var useCustomTheme_1 = require("../../Theme/useCustomTheme");
|
|
41
41
|
function SelectSearch(_a) {
|
|
42
|
-
var options = _a.options, _b = _a.initialSelectedOption, initialSelectedOption = _b === void 0 ? null : _b, onOptionSelect = _a.onOptionSelect, inputOnchange = _a.inputOnchange, id = _a.id, name = _a.name, label = _a.label, inputStyle = _a.inputStyle, dropdownStyle = _a.dropdownStyle, isOptionLoading = _a.isOptionLoading, _c = _a.loadingText, loadingText = _c === void 0 ? "loading" : _c, boxStyle = _a.boxStyle, _d = _a.placeholder, placeholder = _d === void 0 ? "Select Option" : _d, _e = _a.searchQuery, searchQuery = _e === void 0 ? "" : _e, _f = _a.isInformation, isInformation = _f === void 0 ? false : _f, informationMessage = _a.informationMessage;
|
|
42
|
+
var options = _a.options, _b = _a.initialSelectedOption, initialSelectedOption = _b === void 0 ? null : _b, onOptionSelect = _a.onOptionSelect, inputOnchange = _a.inputOnchange, id = _a.id, name = _a.name, label = _a.label, inputStyle = _a.inputStyle, dropdownStyle = _a.dropdownStyle, isOptionLoading = _a.isOptionLoading, _c = _a.loadingText, loadingText = _c === void 0 ? "loading" : _c, boxStyle = _a.boxStyle, _d = _a.placeholder, placeholder = _d === void 0 ? "Select Option" : _d, _e = _a.searchQuery, searchQuery = _e === void 0 ? "" : _e, _f = _a.isInformation, isInformation = _f === void 0 ? false : _f, informationMessage = _a.informationMessage, rightIcon = _a.rightIcon, rightElementStyle = _a.rightElementStyle;
|
|
43
43
|
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
44
44
|
var _g = (0, react_1.useState)(initialSelectedOption ? initialSelectedOption.label : ""), inputValue = _g[0], setInputValue = _g[1];
|
|
45
45
|
var _h = (0, react_1.useState)(false), isOpen = _h[0], setIsOpen = _h[1];
|
|
@@ -128,9 +128,11 @@ function SelectSearch(_a) {
|
|
|
128
128
|
}, [filteredOptions, isOptionLoading, loadingText, handleOptionClick]);
|
|
129
129
|
return (react_1.default.createElement(react_2.Box, { display: "flex", flexDirection: "column", position: "relative", sx: boxStyle },
|
|
130
130
|
label && (react_1.default.createElement(FormLabel_1.TextLabel, { label: label, id: id, isRequired: false, isInformation: isInformation, informationMessage: informationMessage })),
|
|
131
|
-
react_1.default.createElement(react_2.
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
react_1.default.createElement(react_2.InputGroup, null,
|
|
132
|
+
react_1.default.createElement(react_2.Input, { ref: inputRef, variant: "flushed", value: inputValue, onClick: function () { return setIsOpen(true); }, onChange: function (e) { return inputOnchange(e.target.value); }, placeholder: placeholder, onKeyDown: handleKeyDown, id: id, name: name, cursor: "pointer", borderColor: "gray.300", _hover: { borderColor: "blue.500" }, _focus: { borderColor: "blue.500" },
|
|
133
|
+
// {...inputStyle}
|
|
134
|
+
style: __assign(__assign({}, inputStyle), { backgroundColor: theme.colors.backgroundColor.main, fontWeight: 800, color: theme.colors.gray[700], padding: "0 0.5rem", fontSize: 15, letterSpacing: 0.7 }) }),
|
|
135
|
+
rightIcon && (react_1.default.createElement(react_2.InputRightElement, { pointerEvents: "none", children: rightIcon, style: __assign({}, rightElementStyle) }))),
|
|
134
136
|
isOpen && (react_1.default.createElement(react_2.Box, { ref: dropdownRef, position: "absolute", top: position === "below" ? "100%" : "auto", bottom: position === "above" ? "100%" : "auto", left: 0, right: 0, border: "1px solid", borderColor: "gray.300", borderRadius: "md", bg: "white", maxHeight: "150px", overflowY: "auto", zIndex: 10 }, RenderOptions()))));
|
|
135
137
|
}
|
|
136
138
|
exports.default = SelectSearch;
|
|
@@ -32,6 +32,11 @@ function Sidebar(_a) {
|
|
|
32
32
|
"&:hover::-webkit-scrollbar-thumb": {
|
|
33
33
|
background: "#888",
|
|
34
34
|
},
|
|
35
|
+
// scrollbarWidth: "thin",
|
|
36
|
+
// scrollbarColor: "transparent transparent",
|
|
37
|
+
// "&:hover": {
|
|
38
|
+
// scrollbarColor: "#888 transparent",
|
|
39
|
+
// },
|
|
35
40
|
}, ml: toggle ? "-8px" : "0px" }, menus.map(function (menu) { return (react_1.default.createElement(react_2.Menu, { key: menu.title, placement: "right" },
|
|
36
41
|
react_1.default.createElement(react_2.Link, { backgroundColor: activeMenu === menu.title ? theme.colors.primary[500] : "none", borderRadius: 8, _hover: {
|
|
37
42
|
textDecor: "none",
|
package/dist/Layout.d.ts
CHANGED