pixelize-design-library 1.0.92 → 1.0.95
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/Components/Common/HelperText.js +1 -1
- package/dist/Components/Input/TextInput.js +3 -1
- package/dist/Components/NavigationBar/NavigationBar.js +8 -2
- package/dist/Components/SideBar/SideBar.js +5 -7
- package/dist/Components/Trail/EditableCell.d.ts +11 -0
- package/dist/Components/Trail/EditableCell.js +71 -0
- package/dist/Components/Trail/SelectAllCheckbox.d.ts +8 -0
- package/dist/Components/Trail/SelectAllCheckbox.js +13 -0
- package/dist/Components/Trail/TrailWorks.d.ts +3 -0
- package/dist/Components/Trail/TrailWorks.js +262 -0
- package/dist/Components/Trail/data.d.ts +15 -0
- package/dist/Components/Trail/data.js +29 -0
- package/dist/Theme/Default/palette.d.ts +8 -0
- package/dist/Theme/Default/palette.js +59 -51
- package/dist/Theme/Meadow/palette.d.ts +8 -0
- package/dist/Theme/Meadow/palette.js +59 -51
- package/dist/Theme/Radiant/palette.d.ts +8 -0
- package/dist/Theme/Radiant/palette.js +59 -51
- package/dist/Theme/index.d.ts +1 -5
- package/dist/Theme/index.js +1 -5
- package/dist/Theme/themeProps.d.ts +8 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -3
- package/package.json +4 -3
- package/dist/Theme/Default/fonts.d.ts +0 -35
- package/dist/Theme/Default/fonts.js +0 -37
|
@@ -9,6 +9,6 @@ var useCustomTheme_1 = require("../../Theme/useCustomTheme");
|
|
|
9
9
|
var HelperText = function (_a) {
|
|
10
10
|
var helperText = _a.helperText;
|
|
11
11
|
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
12
|
-
return (react_1.default.createElement(react_2.FormHelperText, { fontSize: 14, color: theme.colors.gray[
|
|
12
|
+
return (react_1.default.createElement(react_2.FormHelperText, { mt: 1, fontSize: 14, color: theme.colors.gray[500] }, helperText));
|
|
13
13
|
};
|
|
14
14
|
exports.default = HelperText;
|
|
@@ -26,7 +26,9 @@ function TextInput(_a) {
|
|
|
26
26
|
return (react_1.default.createElement(react_2.FormControl, { isInvalid: error },
|
|
27
27
|
label && (react_1.default.createElement(FormLabel_1.TextLabel, { label: label, id: id, isInformation: isInformation, informationMessage: informationMessage, isRequired: isRequired })),
|
|
28
28
|
react_1.default.createElement(react_2.InputGroup, { width: width, style: inputGroupStyle },
|
|
29
|
-
react_1.default.createElement(react_2.Input, { type: type,
|
|
29
|
+
react_1.default.createElement(react_2.Input, { type: type,
|
|
30
|
+
// 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: "0 0.5rem", fontSize: 15, letterSpacing: 0.7 }) }),
|
|
30
32
|
inputRightIcon && (react_1.default.createElement(react_2.InputRightElement, { onClick: onRightIconclick }, inputRightIcon))),
|
|
31
33
|
error && react_1.default.createElement(ErrorMessage_1.default, { errorMessage: errorMessage }),
|
|
32
34
|
helperText && !error && react_1.default.createElement(HelperText_1.default, { helperText: helperText })));
|
|
@@ -5,14 +5,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var react_2 = require("@chakra-ui/react");
|
|
8
|
+
var useCustomTheme_1 = require("../../Theme/useCustomTheme");
|
|
9
|
+
var io_1 = require("react-icons/io");
|
|
8
10
|
function NavBar(_a) {
|
|
9
11
|
var userAvathar = _a.userAvathar, userName = _a.userName, navMenu = _a.navMenu, handleNavOnClick = _a.handleNavOnClick, handleLogout = _a.handleLogout, logoutText = _a.logoutText;
|
|
10
|
-
|
|
12
|
+
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
13
|
+
return (react_1.default.createElement(react_2.Box, { bg: theme.colors.backgroundColor.light, px: 4, boxShadow: theme.shadows.sm },
|
|
11
14
|
react_1.default.createElement(react_2.Flex, { h: 16, alignItems: "center", justifyContent: "space-between" },
|
|
12
|
-
react_1.default.createElement(react_2.Box, null),
|
|
15
|
+
react_1.default.createElement(react_2.Box, null, "Text"),
|
|
13
16
|
react_1.default.createElement(react_2.Flex, { alignItems: "center" },
|
|
14
17
|
react_1.default.createElement(react_2.Stack, { direction: "row", spacing: 7 },
|
|
15
18
|
react_1.default.createElement(react_2.Menu, null,
|
|
19
|
+
react_1.default.createElement(react_2.Box, { mt: "0.4rem", cursor: "pointer", position: "relative" },
|
|
20
|
+
react_1.default.createElement(io_1.IoMdNotificationsOutline, { fontSize: 20 }),
|
|
21
|
+
react_1.default.createElement(react_2.Box, { position: "absolute", top: "0", right: "0", width: "8px", height: "8px", bg: theme.colors.primary[600], borderRadius: "full" })),
|
|
16
22
|
react_1.default.createElement(react_2.MenuButton, { as: react_2.Button, rounded: "full", variant: "link", cursor: "pointer", minW: 0 },
|
|
17
23
|
react_1.default.createElement(react_2.Avatar, { size: "sm", name: userName, src: userAvathar })),
|
|
18
24
|
react_1.default.createElement(react_2.MenuList, { alignItems: "center" },
|
|
@@ -10,14 +10,12 @@ var useCustomTheme_1 = require("../../Theme/useCustomTheme");
|
|
|
10
10
|
function Sidebar(_a) {
|
|
11
11
|
var menus = _a.menus, activeMenu = _a.activeMenu, handleMenuClick = _a.handleMenuClick, toggle = _a.toggle, changeToggle = _a.changeToggle, logo = _a.logo, companyName = _a.companyName;
|
|
12
12
|
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
13
|
-
return (react_1.default.createElement(react_2.Flex, { pos: "sticky", h: "100vh", boxShadow:
|
|
13
|
+
return (react_1.default.createElement(react_2.Flex, { pos: "sticky", h: "100vh", boxShadow: theme.shadows.lg, w: toggle ? "75px" : "200px", flexDir: "column", justifyContent: "space-between", background: theme.colors.backgroundColor.light },
|
|
14
14
|
react_1.default.createElement(react_2.Flex, { pl: toggle ? "22%" : "8%", flexDir: "column", w: "100%", alignItems: "flex-start", as: "nav", h: "100vh" },
|
|
15
|
-
logo ?
|
|
16
|
-
react_1.default.createElement(react_2.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
react_1.default.createElement(react_2.Box, { ml: "-8px", mt: 5, width: "100%", display: "flex", justifyContent: "center", alignItems: "center" },
|
|
20
|
-
react_1.default.createElement(react_2.Text, { fontWeight: 800, fontSize: "1.3rem", textAlign: "center" }, toggle ? companyName[0] : companyName)),
|
|
15
|
+
logo ? (react_1.default.createElement(react_2.Flex, { mt: 5, align: "center" },
|
|
16
|
+
react_1.default.createElement(react_2.Image, { borderRadius: "full", boxSize: "45px", src: logo, alt: "Company Logo", mr: 3 }),
|
|
17
|
+
react_1.default.createElement(react_2.Text, { display: toggle ? "none" : "flex", fontWeight: 800 }, companyName))) : (react_1.default.createElement(react_2.Box, { ml: "-8px", mt: 5, width: "100%", display: "flex", justifyContent: "center", alignItems: "center" },
|
|
18
|
+
react_1.default.createElement(react_2.Text, { fontWeight: 800, fontSize: "1.3rem", textAlign: "center" }, toggle ? companyName[0] : companyName))),
|
|
21
19
|
react_1.default.createElement(react_2.Flex, { position: "absolute", left: toggle ? "55px" : "180px", top: "60px", background: theme.colors.primary[500], borderRadius: "23px" },
|
|
22
20
|
react_1.default.createElement(react_2.IconButton, { background: "none", icon: toggle ? (react_1.default.createElement(fi_1.FiChevronRight, { color: "#ffffff" })) : (react_1.default.createElement(fi_1.FiChevronLeft, { color: "#ffffff" })), _hover: { background: "none" }, onClick: changeToggle, "aria-label": "Toggle Navigation" })),
|
|
23
21
|
react_1.default.createElement(react_2.Flex, { mt: 30, flexDir: "column", w: "100%", alignItems: toggle ? "center" : "flex-start", h: "100vh", overflow: "scroll", css: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Row, Column } from "./data";
|
|
3
|
+
interface EditableCellProps {
|
|
4
|
+
row: Row;
|
|
5
|
+
column: Column;
|
|
6
|
+
isEditable: boolean;
|
|
7
|
+
handleCellClick: (rowId: number, columnId: number) => void;
|
|
8
|
+
handleCellChange: (rowId: number, columnLabel: string, value: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const EditableCell: React.FC<EditableCellProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.EditableCell = void 0;
|
|
27
|
+
var react_1 = __importStar(require("react"));
|
|
28
|
+
var react_2 = require("@chakra-ui/react");
|
|
29
|
+
var icons_1 = require("@chakra-ui/icons");
|
|
30
|
+
var EditableCell = function (_a) {
|
|
31
|
+
var row = _a.row, column = _a.column, isEditable = _a.isEditable, handleCellClick = _a.handleCellClick, handleCellChange = _a.handleCellChange;
|
|
32
|
+
var cellRef = (0, react_1.useRef)(null);
|
|
33
|
+
(0, react_2.useOutsideClick)({
|
|
34
|
+
ref: cellRef,
|
|
35
|
+
handler: function () {
|
|
36
|
+
return handleCellChange(row.id, column.label, row[column.label]);
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
var value = row[column.label] || "-";
|
|
40
|
+
if (isEditable) {
|
|
41
|
+
if (column.label === "dueDate") {
|
|
42
|
+
return (react_1.default.createElement(react_2.Box, { width: "50%", ref: cellRef },
|
|
43
|
+
react_1.default.createElement(react_2.Input, { type: "date", value: value, onChange: function (e) {
|
|
44
|
+
return handleCellChange(row.id, column.label, e.target.value);
|
|
45
|
+
} })));
|
|
46
|
+
}
|
|
47
|
+
else if (column.label === "priority") {
|
|
48
|
+
return (react_1.default.createElement(react_2.Box, { width: "100%", ref: cellRef },
|
|
49
|
+
react_1.default.createElement(react_2.Menu, { isOpen: true },
|
|
50
|
+
react_1.default.createElement(react_2.MenuButton, { as: react_2.Button, rightIcon: react_1.default.createElement(icons_1.ChevronDownIcon, null), bg: "teal.500", color: "white", _hover: { bg: "teal.600" }, _active: { bg: "teal.700" } }, value),
|
|
51
|
+
react_1.default.createElement(react_2.MenuList, null,
|
|
52
|
+
react_1.default.createElement(react_2.MenuItem, { onClick: function () {
|
|
53
|
+
return handleCellChange(row.id, column.label, "Low");
|
|
54
|
+
}, _hover: { bg: "teal.100" } }, "Low"),
|
|
55
|
+
react_1.default.createElement(react_2.MenuItem, { onClick: function () {
|
|
56
|
+
return handleCellChange(row.id, column.label, "Medium");
|
|
57
|
+
}, _hover: { bg: "teal.100" } }, "Medium"),
|
|
58
|
+
react_1.default.createElement(react_2.MenuItem, { onClick: function () {
|
|
59
|
+
return handleCellChange(row.id, column.label, "High");
|
|
60
|
+
}, _hover: { bg: "teal.100" } }, "High")))));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return (react_1.default.createElement(react_2.Box, { width: "100%", ref: cellRef },
|
|
64
|
+
react_1.default.createElement(react_2.Input, { value: value, onChange: function (e) {
|
|
65
|
+
return handleCellChange(row.id, column.label, e.target.value);
|
|
66
|
+
} })));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return (react_1.default.createElement("span", { onClick: function () { return handleCellClick(row.id, column.id); } }, value));
|
|
70
|
+
};
|
|
71
|
+
exports.EditableCell = EditableCell;
|
|
@@ -0,0 +1,13 @@
|
|
|
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.SelectAllCheckbox = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_2 = require("@chakra-ui/react");
|
|
9
|
+
var SelectAllCheckbox = function (_a) {
|
|
10
|
+
var isAllSelected = _a.isAllSelected, isIndeterminate = _a.isIndeterminate, handleSelectAll = _a.handleSelectAll;
|
|
11
|
+
return (react_1.default.createElement(react_2.Checkbox, { isChecked: isAllSelected, isIndeterminate: isIndeterminate, onChange: handleSelectAll }));
|
|
12
|
+
};
|
|
13
|
+
exports.SelectAllCheckbox = SelectAllCheckbox;
|
|
@@ -0,0 +1,262 @@
|
|
|
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
|
+
var react_1 = require("@chakra-ui/react");
|
|
7
|
+
var react_2 = __importDefault(require("react"));
|
|
8
|
+
var TrailWorks = function () {
|
|
9
|
+
var data = [
|
|
10
|
+
{
|
|
11
|
+
contact: "John Doe",
|
|
12
|
+
type: "Customer",
|
|
13
|
+
deals: 5,
|
|
14
|
+
phone: "555-555-5555",
|
|
15
|
+
email: "hhhhh@gmail.com",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
contact: "John Doe",
|
|
19
|
+
type: "Customer",
|
|
20
|
+
deals: 5,
|
|
21
|
+
phone: "555-555-5555",
|
|
22
|
+
email: "hhhhh@gmail.com",
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
var columns = [
|
|
26
|
+
{
|
|
27
|
+
Header: "Contact",
|
|
28
|
+
accessor: "contact",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
Header: "Type",
|
|
32
|
+
accessor: "type",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
Header: "Deals",
|
|
36
|
+
accessor: "deals",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
Header: "Phone",
|
|
40
|
+
accessor: "phone",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
Header: "Email",
|
|
44
|
+
accessor: "email",
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
var renderRow = function (row, index) {
|
|
48
|
+
return (react_2.default.createElement(react_1.Tr, { key: index, border: "1px solid #bbbbbb" },
|
|
49
|
+
react_2.default.createElement(react_1.Td, { border: "1px solid #bbbbbb", padding: "5px" },
|
|
50
|
+
react_2.default.createElement(react_1.Checkbox, null)),
|
|
51
|
+
columns.map(function (column, index) {
|
|
52
|
+
return (react_2.default.createElement(react_1.Td, { key: index, border: "1px solid #bbbbbb" }, row[column.accessor]));
|
|
53
|
+
})));
|
|
54
|
+
};
|
|
55
|
+
return (react_2.default.createElement(react_1.Box, { width: "100%", overflowX: "auto" },
|
|
56
|
+
react_2.default.createElement(react_1.Table, { variant: "simple", size: "md", border: "1px solid #bbbbbb" },
|
|
57
|
+
react_2.default.createElement(react_1.Thead, { border: "1px solid #bbbbbb" },
|
|
58
|
+
react_2.default.createElement(react_1.Tr, { border: "1px solid #bbbbbb" },
|
|
59
|
+
react_2.default.createElement(react_1.Th, { border: "1px solid #bbbbbb", padding: "5px" },
|
|
60
|
+
react_2.default.createElement(react_1.Checkbox, null)),
|
|
61
|
+
columns.map(function (column, index) {
|
|
62
|
+
return (react_2.default.createElement(react_1.Th, { key: index, border: "1px solid #bbbbbb" }, column.Header));
|
|
63
|
+
}))),
|
|
64
|
+
react_2.default.createElement(react_1.Tbody, { border: "1px solid #bbbbbb" }, data.map(function (row, index) { return renderRow(row, index); })))));
|
|
65
|
+
};
|
|
66
|
+
exports.default = TrailWorks;
|
|
67
|
+
// import React, { useState } from "react";
|
|
68
|
+
// import {
|
|
69
|
+
// Box,
|
|
70
|
+
// Table,
|
|
71
|
+
// Thead,
|
|
72
|
+
// Tr,
|
|
73
|
+
// Th,
|
|
74
|
+
// Tbody,
|
|
75
|
+
// Td,
|
|
76
|
+
// Checkbox,
|
|
77
|
+
// IconButton,
|
|
78
|
+
// Input,
|
|
79
|
+
// Button,
|
|
80
|
+
// HStack,
|
|
81
|
+
// Flex,
|
|
82
|
+
// Text,
|
|
83
|
+
// } from "@chakra-ui/react";
|
|
84
|
+
// import { DeleteIcon, AddIcon, CloseIcon } from "@chakra-ui/icons";
|
|
85
|
+
// import { Row, Column, initialColumns, initialRows } from "./data";
|
|
86
|
+
// import { EditableCell } from "./EditableCell";
|
|
87
|
+
// import { SelectAllCheckbox } from "./SelectAllCheckbox";
|
|
88
|
+
// const TrailWorks: React.FC = () => {
|
|
89
|
+
// const [rows, setRows] = useState<Row[]>(initialRows);
|
|
90
|
+
// const [columns, setColumns] = useState<Column[]>(initialColumns);
|
|
91
|
+
// const [newColumnName, setNewColumnName] = useState<string>("");
|
|
92
|
+
// const [isAddingColumn, setIsAddingColumn] = useState<boolean>(false);
|
|
93
|
+
// const [editableCell, setEditableCell] = useState<{
|
|
94
|
+
// rowId: number;
|
|
95
|
+
// columnId: number;
|
|
96
|
+
// } | null>(null);
|
|
97
|
+
// const [selectedRows, setSelectedRows] = useState<Set<number>>(new Set());
|
|
98
|
+
// const addRow = () => {
|
|
99
|
+
// const newRow: Row = {
|
|
100
|
+
// id: rows.length + 1,
|
|
101
|
+
// project: `Project ${String.fromCharCode(65 + rows.length)}`,
|
|
102
|
+
// owner: `Owner ${String.fromCharCode(65 + rows.length)}`,
|
|
103
|
+
// status: "New",
|
|
104
|
+
// priority: "Low",
|
|
105
|
+
// dueDate: "2023-12-31",
|
|
106
|
+
// };
|
|
107
|
+
// setRows([...rows, newRow]);
|
|
108
|
+
// };
|
|
109
|
+
// const addColumn = () => {
|
|
110
|
+
// if (newColumnName) {
|
|
111
|
+
// const newColumn = { id: columns.length + 1, label: newColumnName };
|
|
112
|
+
// setColumns([...columns, newColumn]);
|
|
113
|
+
// setRows(
|
|
114
|
+
// rows.map((row) => ({ ...row, [newColumnName]: "Default Value" }))
|
|
115
|
+
// );
|
|
116
|
+
// setNewColumnName("");
|
|
117
|
+
// setIsAddingColumn(false);
|
|
118
|
+
// }
|
|
119
|
+
// };
|
|
120
|
+
// const handleCellClick = (rowId: number, columnId: number) => {
|
|
121
|
+
// setEditableCell({ rowId, columnId });
|
|
122
|
+
// };
|
|
123
|
+
// const handleCellChange = (rowId: number, columnLabel: string, value: any) => {
|
|
124
|
+
// setRows(
|
|
125
|
+
// rows.map((row) =>
|
|
126
|
+
// row.id === rowId ? { ...row, [columnLabel]: value } : row
|
|
127
|
+
// )
|
|
128
|
+
// );
|
|
129
|
+
// setEditableCell(null);
|
|
130
|
+
// };
|
|
131
|
+
// const handleRowSelect = (rowId: number) => {
|
|
132
|
+
// const newSelectedRows = new Set(selectedRows);
|
|
133
|
+
// if (newSelectedRows.has(rowId)) {
|
|
134
|
+
// newSelectedRows.delete(rowId);
|
|
135
|
+
// } else {
|
|
136
|
+
// newSelectedRows.add(rowId);
|
|
137
|
+
// }
|
|
138
|
+
// setSelectedRows(newSelectedRows);
|
|
139
|
+
// };
|
|
140
|
+
// const handleSelectAll = () => {
|
|
141
|
+
// if (selectedRows.size === rows.length) {
|
|
142
|
+
// setSelectedRows(new Set());
|
|
143
|
+
// } else {
|
|
144
|
+
// setSelectedRows(new Set(rows.map((row) => row.id)));
|
|
145
|
+
// }
|
|
146
|
+
// };
|
|
147
|
+
// const handleDeleteSelected = () => {
|
|
148
|
+
// setRows(rows.filter((row) => !selectedRows.has(row.id)));
|
|
149
|
+
// setSelectedRows(new Set());
|
|
150
|
+
// };
|
|
151
|
+
// const handleCloseFooter = () => {
|
|
152
|
+
// setSelectedRows(new Set());
|
|
153
|
+
// };
|
|
154
|
+
// const isAllSelected = selectedRows.size === rows.length;
|
|
155
|
+
// const isIndeterminate =
|
|
156
|
+
// selectedRows.size > 0 && selectedRows.size < rows.length;
|
|
157
|
+
// return (
|
|
158
|
+
// <Box width="100%" overflowX="auto" p={5}>
|
|
159
|
+
// <Table variant="simple" size="md">
|
|
160
|
+
// <Thead>
|
|
161
|
+
// <Tr>
|
|
162
|
+
// <Th>
|
|
163
|
+
// <SelectAllCheckbox
|
|
164
|
+
// isAllSelected={isAllSelected}
|
|
165
|
+
// isIndeterminate={isIndeterminate}
|
|
166
|
+
// handleSelectAll={handleSelectAll}
|
|
167
|
+
// />
|
|
168
|
+
// </Th>
|
|
169
|
+
// {columns.map((column) => (
|
|
170
|
+
// <Th key={column.id}>{column.label}</Th>
|
|
171
|
+
// ))}
|
|
172
|
+
// <Th>
|
|
173
|
+
// {isAddingColumn ? (
|
|
174
|
+
// <HStack>
|
|
175
|
+
// <Input
|
|
176
|
+
// placeholder="New column name"
|
|
177
|
+
// value={newColumnName}
|
|
178
|
+
// onChange={(e) => setNewColumnName(e.target.value)}
|
|
179
|
+
// />
|
|
180
|
+
// <Button onClick={addColumn}>Add</Button>
|
|
181
|
+
// </HStack>
|
|
182
|
+
// ) : (
|
|
183
|
+
// <IconButton
|
|
184
|
+
// aria-label="Add column"
|
|
185
|
+
// icon={<AddIcon />}
|
|
186
|
+
// size="sm"
|
|
187
|
+
// onClick={() => setIsAddingColumn(true)}
|
|
188
|
+
// />
|
|
189
|
+
// )}
|
|
190
|
+
// </Th>
|
|
191
|
+
// </Tr>
|
|
192
|
+
// </Thead>
|
|
193
|
+
// <Tbody>
|
|
194
|
+
// {rows.map((row) => (
|
|
195
|
+
// <Tr key={row.id}>
|
|
196
|
+
// <Td>
|
|
197
|
+
// <Checkbox
|
|
198
|
+
// isChecked={selectedRows.has(row.id)}
|
|
199
|
+
// onChange={() => handleRowSelect(row.id)}
|
|
200
|
+
// />
|
|
201
|
+
// </Td>
|
|
202
|
+
// {columns.map((column) => (
|
|
203
|
+
// <Td key={column.id}>
|
|
204
|
+
// <EditableCell
|
|
205
|
+
// row={row}
|
|
206
|
+
// column={column}
|
|
207
|
+
// isEditable={Boolean(
|
|
208
|
+
// editableCell &&
|
|
209
|
+
// editableCell.rowId === row.id &&
|
|
210
|
+
// editableCell.columnId === column.id
|
|
211
|
+
// )}
|
|
212
|
+
// handleCellClick={handleCellClick}
|
|
213
|
+
// handleCellChange={handleCellChange}
|
|
214
|
+
// />
|
|
215
|
+
// </Td>
|
|
216
|
+
// ))}
|
|
217
|
+
// </Tr>
|
|
218
|
+
// ))}
|
|
219
|
+
// </Tbody>
|
|
220
|
+
// </Table>
|
|
221
|
+
// <Button
|
|
222
|
+
// leftIcon={<AddIcon />}
|
|
223
|
+
// colorScheme="teal"
|
|
224
|
+
// variant="solid"
|
|
225
|
+
// onClick={addRow}
|
|
226
|
+
// mt={4}
|
|
227
|
+
// >
|
|
228
|
+
// Add Row
|
|
229
|
+
// </Button>
|
|
230
|
+
// {selectedRows.size > 0 && (
|
|
231
|
+
// <Flex
|
|
232
|
+
// position="fixed"
|
|
233
|
+
// bottom="0"
|
|
234
|
+
// left="10%"
|
|
235
|
+
// width="80%"
|
|
236
|
+
// p={4}
|
|
237
|
+
// justifyContent="space-between"
|
|
238
|
+
// alignItems="center"
|
|
239
|
+
// boxShadow="md"
|
|
240
|
+
// >
|
|
241
|
+
// <Text>{selectedRows.size} row(s) selected</Text>
|
|
242
|
+
// <HStack>
|
|
243
|
+
// <Button
|
|
244
|
+
// leftIcon={<DeleteIcon />}
|
|
245
|
+
// colorScheme="red"
|
|
246
|
+
// variant="solid"
|
|
247
|
+
// onClick={handleDeleteSelected}
|
|
248
|
+
// >
|
|
249
|
+
// Delete Selected
|
|
250
|
+
// </Button>
|
|
251
|
+
// <IconButton
|
|
252
|
+
// aria-label="Close"
|
|
253
|
+
// icon={<CloseIcon />}
|
|
254
|
+
// onClick={handleCloseFooter}
|
|
255
|
+
// />
|
|
256
|
+
// </HStack>
|
|
257
|
+
// </Flex>
|
|
258
|
+
// )}
|
|
259
|
+
// </Box>
|
|
260
|
+
// );
|
|
261
|
+
// };
|
|
262
|
+
// export default TrailWorks;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Row = {
|
|
2
|
+
id: number;
|
|
3
|
+
project: string;
|
|
4
|
+
owner: string;
|
|
5
|
+
status: string;
|
|
6
|
+
priority: string;
|
|
7
|
+
dueDate: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
export type Column = {
|
|
11
|
+
id: number;
|
|
12
|
+
label: keyof Row | string;
|
|
13
|
+
};
|
|
14
|
+
export declare const initialColumns: Column[];
|
|
15
|
+
export declare const initialRows: Row[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initialRows = exports.initialColumns = void 0;
|
|
4
|
+
exports.initialColumns = [
|
|
5
|
+
{ id: 1, label: "project" },
|
|
6
|
+
{ id: 2, label: "owner" },
|
|
7
|
+
{ id: 3, label: "status" },
|
|
8
|
+
{ id: 4, label: "priority" },
|
|
9
|
+
{ id: 5, label: "dueDate" },
|
|
10
|
+
];
|
|
11
|
+
exports.initialRows = [
|
|
12
|
+
{
|
|
13
|
+
id: 1,
|
|
14
|
+
project: "Project A",
|
|
15
|
+
owner: "Owner A",
|
|
16
|
+
status: "In Progress",
|
|
17
|
+
priority: "High",
|
|
18
|
+
dueDate: "2023-12-31",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 2,
|
|
22
|
+
project: "Project B",
|
|
23
|
+
owner: "Owner B",
|
|
24
|
+
status: "Completed",
|
|
25
|
+
priority: "Medium",
|
|
26
|
+
dueDate: "2023-11-30",
|
|
27
|
+
},
|
|
28
|
+
// Add more initial rows as needed
|
|
29
|
+
];
|
|
@@ -187,6 +187,14 @@ declare const palette: {
|
|
|
187
187
|
backgroundColor: {
|
|
188
188
|
main: string;
|
|
189
189
|
secondary: string;
|
|
190
|
+
tertiary: string;
|
|
191
|
+
quaternary: string;
|
|
192
|
+
light: string;
|
|
193
|
+
medium: string;
|
|
194
|
+
accent: string;
|
|
195
|
+
subtle: string;
|
|
196
|
+
muted: string;
|
|
197
|
+
neutral: string;
|
|
190
198
|
};
|
|
191
199
|
};
|
|
192
200
|
export default palette;
|
|
@@ -2,68 +2,68 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var palette = {
|
|
4
4
|
primary: {
|
|
5
|
-
50:
|
|
6
|
-
100:
|
|
7
|
-
200:
|
|
8
|
-
300:
|
|
9
|
-
400:
|
|
10
|
-
500:
|
|
11
|
-
600:
|
|
12
|
-
700:
|
|
13
|
-
800:
|
|
14
|
-
900:
|
|
5
|
+
50: "#e3f2f9",
|
|
6
|
+
100: "#c5e4f3",
|
|
7
|
+
200: "#a2d4ec",
|
|
8
|
+
300: "#7ac1e4",
|
|
9
|
+
400: "#47a9da",
|
|
10
|
+
500: "#0088cc",
|
|
11
|
+
600: "#007ab8",
|
|
12
|
+
700: "#006ba1",
|
|
13
|
+
800: "#005885",
|
|
14
|
+
900: "#003f5e",
|
|
15
15
|
},
|
|
16
16
|
transparent: "transparent",
|
|
17
17
|
black: "#000",
|
|
18
18
|
white: "#fff",
|
|
19
19
|
semantic: {
|
|
20
20
|
success: {
|
|
21
|
-
50:
|
|
22
|
-
100:
|
|
23
|
-
200:
|
|
24
|
-
300:
|
|
25
|
-
400:
|
|
26
|
-
500:
|
|
27
|
-
600:
|
|
28
|
-
700:
|
|
29
|
-
800:
|
|
30
|
-
900:
|
|
21
|
+
50: "#e6f9f0",
|
|
22
|
+
100: "#c0f0d8",
|
|
23
|
+
200: "#8be6bb",
|
|
24
|
+
300: "#5bdb9e",
|
|
25
|
+
400: "#33d181",
|
|
26
|
+
500: "#00b768",
|
|
27
|
+
600: "#00a05a",
|
|
28
|
+
700: "#00854b",
|
|
29
|
+
800: "#006b3c",
|
|
30
|
+
900: "#004c28",
|
|
31
31
|
},
|
|
32
32
|
error: {
|
|
33
|
-
50:
|
|
34
|
-
100:
|
|
35
|
-
200:
|
|
36
|
-
300:
|
|
37
|
-
400:
|
|
38
|
-
500:
|
|
39
|
-
600:
|
|
40
|
-
700:
|
|
41
|
-
800:
|
|
42
|
-
900:
|
|
33
|
+
50: "#ffe6e6",
|
|
34
|
+
100: "#fbbcbc",
|
|
35
|
+
200: "#f28f8f",
|
|
36
|
+
300: "#e66060",
|
|
37
|
+
400: "#db3a3a",
|
|
38
|
+
500: "#c21e1e",
|
|
39
|
+
600: "#a01919",
|
|
40
|
+
700: "#7e1313",
|
|
41
|
+
800: "#5c0d0d",
|
|
42
|
+
900: "#3d0909",
|
|
43
43
|
},
|
|
44
44
|
warning: {
|
|
45
|
-
50:
|
|
46
|
-
100:
|
|
47
|
-
200:
|
|
48
|
-
300:
|
|
49
|
-
400:
|
|
50
|
-
500:
|
|
51
|
-
600:
|
|
52
|
-
700:
|
|
53
|
-
800:
|
|
54
|
-
900:
|
|
45
|
+
50: "#fff4e6",
|
|
46
|
+
100: "#ffe1b8",
|
|
47
|
+
200: "#ffcc85",
|
|
48
|
+
300: "#ffb653",
|
|
49
|
+
400: "#ffa31a",
|
|
50
|
+
500: "#ff8a00",
|
|
51
|
+
600: "#db7000",
|
|
52
|
+
700: "#b75800",
|
|
53
|
+
800: "#934300",
|
|
54
|
+
900: "#702f00",
|
|
55
55
|
},
|
|
56
56
|
info: {
|
|
57
|
-
50:
|
|
58
|
-
100:
|
|
59
|
-
200:
|
|
60
|
-
300:
|
|
61
|
-
400:
|
|
62
|
-
500:
|
|
63
|
-
600:
|
|
64
|
-
700:
|
|
65
|
-
800:
|
|
66
|
-
900:
|
|
57
|
+
50: "#e3f5ff",
|
|
58
|
+
100: "#b8e4ff",
|
|
59
|
+
200: "#85d1ff",
|
|
60
|
+
300: "#52bdff",
|
|
61
|
+
400: "#1fa9ff",
|
|
62
|
+
500: "#008df5",
|
|
63
|
+
600: "#0077db",
|
|
64
|
+
700: "#005cb3",
|
|
65
|
+
800: "#004489",
|
|
66
|
+
900: "#002d5c",
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
gray: {
|
|
@@ -189,6 +189,14 @@ var palette = {
|
|
|
189
189
|
backgroundColor: {
|
|
190
190
|
main: "#f8f9fa",
|
|
191
191
|
secondary: "#f1f1f1",
|
|
192
|
-
|
|
192
|
+
tertiary: "#ececec",
|
|
193
|
+
quaternary: "#e2e6ea",
|
|
194
|
+
light: "#fafafa",
|
|
195
|
+
medium: "#eaeaea",
|
|
196
|
+
accent: "#e5e5e5",
|
|
197
|
+
subtle: "#f5f6f7",
|
|
198
|
+
muted: "#dfe3e6",
|
|
199
|
+
neutral: "#ebedef", // Neutral grey with a balanced tone
|
|
200
|
+
},
|
|
193
201
|
};
|
|
194
202
|
exports.default = palette;
|
|
@@ -187,6 +187,14 @@ declare const palette: {
|
|
|
187
187
|
backgroundColor: {
|
|
188
188
|
main: string;
|
|
189
189
|
secondary: string;
|
|
190
|
+
tertiary: string;
|
|
191
|
+
quaternary: string;
|
|
192
|
+
light: string;
|
|
193
|
+
medium: string;
|
|
194
|
+
accent: string;
|
|
195
|
+
subtle: string;
|
|
196
|
+
muted: string;
|
|
197
|
+
neutral: string;
|
|
190
198
|
};
|
|
191
199
|
};
|
|
192
200
|
export default palette;
|
|
@@ -2,68 +2,68 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var palette = {
|
|
4
4
|
primary: {
|
|
5
|
-
50:
|
|
6
|
-
100:
|
|
7
|
-
200:
|
|
8
|
-
300:
|
|
9
|
-
400:
|
|
10
|
-
500:
|
|
11
|
-
600:
|
|
12
|
-
700:
|
|
13
|
-
800:
|
|
14
|
-
900:
|
|
5
|
+
50: "#e3f9e5",
|
|
6
|
+
100: "#c1f0c0",
|
|
7
|
+
200: "#9ee4a1",
|
|
8
|
+
300: "#72d785",
|
|
9
|
+
400: "#48c15d",
|
|
10
|
+
500: "#2caa3d",
|
|
11
|
+
600: "#239c31",
|
|
12
|
+
700: "#1d8626",
|
|
13
|
+
800: "#16631c",
|
|
14
|
+
900: "#0d4b13", // Darkest green
|
|
15
15
|
},
|
|
16
16
|
transparent: "transparent",
|
|
17
17
|
black: "#000",
|
|
18
18
|
white: "#fff",
|
|
19
19
|
semantic: {
|
|
20
20
|
success: {
|
|
21
|
-
50:
|
|
22
|
-
100:
|
|
23
|
-
200:
|
|
24
|
-
300:
|
|
25
|
-
400:
|
|
26
|
-
500:
|
|
27
|
-
600:
|
|
28
|
-
700:
|
|
29
|
-
800:
|
|
30
|
-
900:
|
|
21
|
+
50: "#e6f9f0",
|
|
22
|
+
100: "#c0f0d8",
|
|
23
|
+
200: "#8be6bb",
|
|
24
|
+
300: "#5bdb9e",
|
|
25
|
+
400: "#33d181",
|
|
26
|
+
500: "#00b768",
|
|
27
|
+
600: "#00a05a",
|
|
28
|
+
700: "#00854b",
|
|
29
|
+
800: "#006b3c",
|
|
30
|
+
900: "#004c28",
|
|
31
31
|
},
|
|
32
32
|
error: {
|
|
33
|
-
50:
|
|
34
|
-
100:
|
|
35
|
-
200:
|
|
36
|
-
300:
|
|
37
|
-
400:
|
|
38
|
-
500:
|
|
39
|
-
600:
|
|
40
|
-
700:
|
|
41
|
-
800:
|
|
42
|
-
900:
|
|
33
|
+
50: "#ffe6e6",
|
|
34
|
+
100: "#fbbcbc",
|
|
35
|
+
200: "#f28f8f",
|
|
36
|
+
300: "#e66060",
|
|
37
|
+
400: "#db3a3a",
|
|
38
|
+
500: "#c21e1e",
|
|
39
|
+
600: "#a01919",
|
|
40
|
+
700: "#7e1313",
|
|
41
|
+
800: "#5c0d0d",
|
|
42
|
+
900: "#3d0909",
|
|
43
43
|
},
|
|
44
44
|
warning: {
|
|
45
|
-
50:
|
|
46
|
-
100:
|
|
47
|
-
200:
|
|
48
|
-
300:
|
|
49
|
-
400:
|
|
50
|
-
500:
|
|
51
|
-
600:
|
|
52
|
-
700:
|
|
53
|
-
800:
|
|
54
|
-
900:
|
|
45
|
+
50: "#fff4e6",
|
|
46
|
+
100: "#ffe1b8",
|
|
47
|
+
200: "#ffcc85",
|
|
48
|
+
300: "#ffb653",
|
|
49
|
+
400: "#ffa31a",
|
|
50
|
+
500: "#ff8a00",
|
|
51
|
+
600: "#db7000",
|
|
52
|
+
700: "#b75800",
|
|
53
|
+
800: "#934300",
|
|
54
|
+
900: "#702f00",
|
|
55
55
|
},
|
|
56
56
|
info: {
|
|
57
|
-
50:
|
|
58
|
-
100:
|
|
59
|
-
200:
|
|
60
|
-
300:
|
|
61
|
-
400:
|
|
62
|
-
500:
|
|
63
|
-
600:
|
|
64
|
-
700:
|
|
65
|
-
800:
|
|
66
|
-
900:
|
|
57
|
+
50: "#e3f5ff",
|
|
58
|
+
100: "#b8e4ff",
|
|
59
|
+
200: "#85d1ff",
|
|
60
|
+
300: "#52bdff",
|
|
61
|
+
400: "#1fa9ff",
|
|
62
|
+
500: "#008df5",
|
|
63
|
+
600: "#0077db",
|
|
64
|
+
700: "#005cb3",
|
|
65
|
+
800: "#004489",
|
|
66
|
+
900: "#002d5c",
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
gray: {
|
|
@@ -189,6 +189,14 @@ var palette = {
|
|
|
189
189
|
backgroundColor: {
|
|
190
190
|
main: "#f8f9fa",
|
|
191
191
|
secondary: "#f1f1f1",
|
|
192
|
-
|
|
192
|
+
tertiary: "#ececec",
|
|
193
|
+
quaternary: "#e2e6ea",
|
|
194
|
+
light: "#fafafa",
|
|
195
|
+
medium: "#eaeaea",
|
|
196
|
+
accent: "#e5e5e5",
|
|
197
|
+
subtle: "#f5f6f7",
|
|
198
|
+
muted: "#dfe3e6",
|
|
199
|
+
neutral: "#ebedef", // Neutral grey with a balanced tone
|
|
200
|
+
},
|
|
193
201
|
};
|
|
194
202
|
exports.default = palette;
|
|
@@ -187,6 +187,14 @@ declare const palette: {
|
|
|
187
187
|
backgroundColor: {
|
|
188
188
|
main: string;
|
|
189
189
|
secondary: string;
|
|
190
|
+
tertiary: string;
|
|
191
|
+
quaternary: string;
|
|
192
|
+
light: string;
|
|
193
|
+
medium: string;
|
|
194
|
+
accent: string;
|
|
195
|
+
subtle: string;
|
|
196
|
+
muted: string;
|
|
197
|
+
neutral: string;
|
|
190
198
|
};
|
|
191
199
|
};
|
|
192
200
|
export default palette;
|
|
@@ -2,68 +2,68 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var palette = {
|
|
4
4
|
primary: {
|
|
5
|
-
50:
|
|
6
|
-
100:
|
|
7
|
-
200:
|
|
8
|
-
300:
|
|
9
|
-
400:
|
|
10
|
-
500:
|
|
11
|
-
600:
|
|
12
|
-
700:
|
|
13
|
-
800:
|
|
14
|
-
900:
|
|
5
|
+
50: "#ffe0b2",
|
|
6
|
+
100: "#ffcc80",
|
|
7
|
+
200: "#ffb74d",
|
|
8
|
+
300: "#ffa726",
|
|
9
|
+
400: "#ff9800",
|
|
10
|
+
500: "#fb8c00",
|
|
11
|
+
600: "#f57c00",
|
|
12
|
+
700: "#ef6c00",
|
|
13
|
+
800: "#e65100",
|
|
14
|
+
900: "#bf360c", // Darkest orange
|
|
15
15
|
},
|
|
16
16
|
transparent: "transparent",
|
|
17
17
|
black: "#000",
|
|
18
18
|
white: "#fff",
|
|
19
19
|
semantic: {
|
|
20
20
|
success: {
|
|
21
|
-
50:
|
|
22
|
-
100:
|
|
23
|
-
200:
|
|
24
|
-
300:
|
|
25
|
-
400:
|
|
26
|
-
500:
|
|
27
|
-
600:
|
|
28
|
-
700:
|
|
29
|
-
800:
|
|
30
|
-
900:
|
|
21
|
+
50: "#e6f9f0",
|
|
22
|
+
100: "#c0f0d8",
|
|
23
|
+
200: "#8be6bb",
|
|
24
|
+
300: "#5bdb9e",
|
|
25
|
+
400: "#33d181",
|
|
26
|
+
500: "#00b768",
|
|
27
|
+
600: "#00a05a",
|
|
28
|
+
700: "#00854b",
|
|
29
|
+
800: "#006b3c",
|
|
30
|
+
900: "#004c28",
|
|
31
31
|
},
|
|
32
32
|
error: {
|
|
33
|
-
50:
|
|
34
|
-
100:
|
|
35
|
-
200:
|
|
36
|
-
300:
|
|
37
|
-
400:
|
|
38
|
-
500:
|
|
39
|
-
600:
|
|
40
|
-
700:
|
|
41
|
-
800:
|
|
42
|
-
900:
|
|
33
|
+
50: "#ffe6e6",
|
|
34
|
+
100: "#fbbcbc",
|
|
35
|
+
200: "#f28f8f",
|
|
36
|
+
300: "#e66060",
|
|
37
|
+
400: "#db3a3a",
|
|
38
|
+
500: "#c21e1e",
|
|
39
|
+
600: "#a01919",
|
|
40
|
+
700: "#7e1313",
|
|
41
|
+
800: "#5c0d0d",
|
|
42
|
+
900: "#3d0909",
|
|
43
43
|
},
|
|
44
44
|
warning: {
|
|
45
|
-
50:
|
|
46
|
-
100:
|
|
47
|
-
200:
|
|
48
|
-
300:
|
|
49
|
-
400:
|
|
50
|
-
500:
|
|
51
|
-
600:
|
|
52
|
-
700:
|
|
53
|
-
800:
|
|
54
|
-
900:
|
|
45
|
+
50: "#fff4e6",
|
|
46
|
+
100: "#ffe1b8",
|
|
47
|
+
200: "#ffcc85",
|
|
48
|
+
300: "#ffb653",
|
|
49
|
+
400: "#ffa31a",
|
|
50
|
+
500: "#ff8a00",
|
|
51
|
+
600: "#db7000",
|
|
52
|
+
700: "#b75800",
|
|
53
|
+
800: "#934300",
|
|
54
|
+
900: "#702f00",
|
|
55
55
|
},
|
|
56
56
|
info: {
|
|
57
|
-
50:
|
|
58
|
-
100:
|
|
59
|
-
200:
|
|
60
|
-
300:
|
|
61
|
-
400:
|
|
62
|
-
500:
|
|
63
|
-
600:
|
|
64
|
-
700:
|
|
65
|
-
800:
|
|
66
|
-
900:
|
|
57
|
+
50: "#e3f5ff",
|
|
58
|
+
100: "#b8e4ff",
|
|
59
|
+
200: "#85d1ff",
|
|
60
|
+
300: "#52bdff",
|
|
61
|
+
400: "#1fa9ff",
|
|
62
|
+
500: "#008df5",
|
|
63
|
+
600: "#0077db",
|
|
64
|
+
700: "#005cb3",
|
|
65
|
+
800: "#004489",
|
|
66
|
+
900: "#002d5c",
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
69
|
gray: {
|
|
@@ -189,6 +189,14 @@ var palette = {
|
|
|
189
189
|
backgroundColor: {
|
|
190
190
|
main: "#f8f9fa",
|
|
191
191
|
secondary: "#f1f1f1",
|
|
192
|
-
|
|
192
|
+
tertiary: "#ececec",
|
|
193
|
+
quaternary: "#e2e6ea",
|
|
194
|
+
light: "#fafafa",
|
|
195
|
+
medium: "#eaeaea",
|
|
196
|
+
accent: "#e5e5e5",
|
|
197
|
+
subtle: "#f5f6f7",
|
|
198
|
+
muted: "#dfe3e6",
|
|
199
|
+
neutral: "#ebedef", // Neutral grey with a balanced tone
|
|
200
|
+
},
|
|
193
201
|
};
|
|
194
202
|
exports.default = palette;
|
package/dist/Theme/index.d.ts
CHANGED
|
@@ -2,8 +2,4 @@ import skyline from "./Default/theme";
|
|
|
2
2
|
import meadow from "./Meadow/theme";
|
|
3
3
|
import radiant from "./Radiant/theme";
|
|
4
4
|
export { skyline, meadow, radiant };
|
|
5
|
-
export declare const ThemesList:
|
|
6
|
-
skyline: Record<string, any>;
|
|
7
|
-
meadow: Record<string, any>;
|
|
8
|
-
radiant: Record<string, any>;
|
|
9
|
-
};
|
|
5
|
+
export declare const ThemesList: string[];
|
package/dist/Theme/index.js
CHANGED
|
@@ -10,8 +10,4 @@ var theme_2 = __importDefault(require("./Meadow/theme"));
|
|
|
10
10
|
exports.meadow = theme_2.default;
|
|
11
11
|
var theme_3 = __importDefault(require("./Radiant/theme"));
|
|
12
12
|
exports.radiant = theme_3.default;
|
|
13
|
-
exports.ThemesList =
|
|
14
|
-
skyline: theme_1.default,
|
|
15
|
-
meadow: theme_2.default,
|
|
16
|
-
radiant: theme_3.default,
|
|
17
|
-
};
|
|
13
|
+
exports.ThemesList = ["skyline", "meadow", "radiant"];
|
|
@@ -190,6 +190,14 @@ export type CustomThemeProps = {
|
|
|
190
190
|
backgroundColor: {
|
|
191
191
|
main: string;
|
|
192
192
|
secondary: string;
|
|
193
|
+
quaternary: string;
|
|
194
|
+
tertiary: string;
|
|
195
|
+
light: string;
|
|
196
|
+
medium: string;
|
|
197
|
+
accent: string;
|
|
198
|
+
subtle: string;
|
|
199
|
+
muted: string;
|
|
200
|
+
neutral: string;
|
|
193
201
|
};
|
|
194
202
|
};
|
|
195
203
|
fonts: ChakraTheme["fonts"] & {
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,8 @@ import Toaster, { useToaster } from "./Components/Toaster/Toaster";
|
|
|
37
37
|
import ToolTip from "./Components/ToolTip/ToolTip";
|
|
38
38
|
import VerifyEmailOtp from "./Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp";
|
|
39
39
|
import withTheme from "./withTheme";
|
|
40
|
+
import { skyline, meadow, radiant } from "./Theme";
|
|
40
41
|
import { useCustomTheme } from "./Theme/useCustomTheme";
|
|
41
42
|
import { ThemesList } from "./Theme";
|
|
42
|
-
export { Accordian, AlertDialog, ApexBarChart, ApexPieChart, Breadcrumbs, Button, ButtonGroupIcon, Card, Checkbox, DatePicker, Drawer, DrawerHeader, DrawerBody, DrawerFooter, Dropdown, Editor, InputTextArea, KaTable, TableActionCreator, TableEnums, TableProps, Loading, Modal, ModalHeader, ModalBody, ModalFooter, NavigationBar, NoteTextArea, MultiSelect, NumberInput, PinInput, ProfileCard, ProfileCardHeader, ProfileCardBody, ProfileCardFooter, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, Search, Select, SelectSearch, SideBar, Skeletons, Switch, Table, TextInput, Timeline, Toaster, ToolTip, useToaster, VerifyEmailOtp, useCustomTheme, ThemesList };
|
|
43
|
+
export { Accordian, AlertDialog, ApexBarChart, ApexPieChart, Breadcrumbs, Button, ButtonGroupIcon, Card, Checkbox, DatePicker, Drawer, DrawerHeader, DrawerBody, DrawerFooter, Dropdown, Editor, InputTextArea, KaTable, TableActionCreator, TableEnums, TableProps, Loading, Modal, ModalHeader, ModalBody, ModalFooter, NavigationBar, NoteTextArea, MultiSelect, NumberInput, PinInput, ProfileCard, ProfileCardHeader, ProfileCardBody, ProfileCardFooter, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, Search, Select, SelectSearch, SideBar, Skeletons, Switch, Table, TextInput, Timeline, Toaster, ToolTip, useToaster, VerifyEmailOtp, useCustomTheme, ThemesList, skyline, radiant, meadow, };
|
|
43
44
|
export default withTheme;
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.ToolTip = exports.Toaster = exports.Timeline = exports.TextInput = exports.Table = exports.Switch = exports.Skeletons = exports.SideBar = exports.SelectSearch = exports.Select = exports.Search = exports.RadioButtonGroup = exports.RadioButton = exports.ProgressBar = exports.ProfilePhotoViewer = exports.ProfileCardFooter = exports.ProfileCardBody = exports.ProfileCardHeader = exports.ProfileCard = exports.PinInput = exports.NumberInput = exports.MultiSelect = exports.NoteTextArea = exports.NavigationBar = exports.ModalFooter = exports.ModalBody = exports.ModalHeader = exports.Modal = exports.Loading = exports.TableProps = exports.TableEnums = exports.TableActionCreator = exports.KaTable = exports.InputTextArea = exports.Editor = exports.Dropdown = exports.DrawerFooter = exports.DrawerBody = exports.DrawerHeader = exports.Drawer = exports.DatePicker = exports.Checkbox = exports.Card = exports.ButtonGroupIcon = exports.Button = exports.Breadcrumbs = exports.ApexPieChart = exports.ApexBarChart = exports.AlertDialog = exports.Accordian = void 0;
|
|
31
|
-
exports.ThemesList = exports.useCustomTheme = exports.VerifyEmailOtp = exports.useToaster = void 0;
|
|
31
|
+
exports.meadow = exports.radiant = exports.skyline = exports.ThemesList = exports.useCustomTheme = exports.VerifyEmailOtp = exports.useToaster = void 0;
|
|
32
32
|
var Accordion_1 = __importDefault(require("./Components/Accordion/Accordion"));
|
|
33
33
|
exports.Accordian = Accordion_1.default;
|
|
34
34
|
var AlertDialog_1 = __importDefault(require("./Components/AlertDialog/AlertDialog"));
|
|
@@ -120,8 +120,12 @@ exports.ToolTip = ToolTip_1.default;
|
|
|
120
120
|
var VerifyEmailOtp_1 = __importDefault(require("./Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp"));
|
|
121
121
|
exports.VerifyEmailOtp = VerifyEmailOtp_1.default;
|
|
122
122
|
var withTheme_1 = __importDefault(require("./withTheme"));
|
|
123
|
+
var Theme_1 = require("./Theme");
|
|
124
|
+
Object.defineProperty(exports, "skyline", { enumerable: true, get: function () { return Theme_1.skyline; } });
|
|
125
|
+
Object.defineProperty(exports, "meadow", { enumerable: true, get: function () { return Theme_1.meadow; } });
|
|
126
|
+
Object.defineProperty(exports, "radiant", { enumerable: true, get: function () { return Theme_1.radiant; } });
|
|
123
127
|
var useCustomTheme_1 = require("./Theme/useCustomTheme");
|
|
124
128
|
Object.defineProperty(exports, "useCustomTheme", { enumerable: true, get: function () { return useCustomTheme_1.useCustomTheme; } });
|
|
125
|
-
var
|
|
126
|
-
Object.defineProperty(exports, "ThemesList", { enumerable: true, get: function () { return
|
|
129
|
+
var Theme_2 = require("./Theme");
|
|
130
|
+
Object.defineProperty(exports, "ThemesList", { enumerable: true, get: function () { return Theme_2.ThemesList; } });
|
|
127
131
|
exports.default = withTheme_1.default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixelize-design-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.95",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"build": "tsc",
|
|
38
38
|
"test": "react-scripts test",
|
|
39
39
|
"eject": "react-scripts eject",
|
|
40
|
-
"prepare": "husky install"
|
|
40
|
+
"prepare": "husky install",
|
|
41
|
+
"package": "npm version patch && npm run build && npm publish"
|
|
41
42
|
},
|
|
42
43
|
"eslintConfig": {
|
|
43
44
|
"extends": [
|
|
@@ -78,4 +79,4 @@
|
|
|
78
79
|
"prettier --write"
|
|
79
80
|
]
|
|
80
81
|
}
|
|
81
|
-
}
|
|
82
|
+
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import "@fontsource/ubuntu-sans";
|
|
2
|
-
declare const fontOptions: {
|
|
3
|
-
fonts: {
|
|
4
|
-
body: string;
|
|
5
|
-
heading: string;
|
|
6
|
-
mono: string;
|
|
7
|
-
};
|
|
8
|
-
fontSizes: {
|
|
9
|
-
xs: string;
|
|
10
|
-
sm: string;
|
|
11
|
-
md: string;
|
|
12
|
-
lg: string;
|
|
13
|
-
xl: string;
|
|
14
|
-
"2xl": string;
|
|
15
|
-
"3xl": string;
|
|
16
|
-
"4xl": string;
|
|
17
|
-
"5xl": string;
|
|
18
|
-
"6xl": string;
|
|
19
|
-
"7xl": string;
|
|
20
|
-
"8xl": string;
|
|
21
|
-
"9xl": string;
|
|
22
|
-
};
|
|
23
|
-
fontWeights: {
|
|
24
|
-
hairline: number;
|
|
25
|
-
thin: number;
|
|
26
|
-
light: number;
|
|
27
|
-
normal: number;
|
|
28
|
-
medium: number;
|
|
29
|
-
semibold: number;
|
|
30
|
-
bold: number;
|
|
31
|
-
extrabold: number;
|
|
32
|
-
black: number;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export default fontOptions;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
require("@fontsource/ubuntu-sans");
|
|
4
|
-
var fontOptions = {
|
|
5
|
-
fonts: {
|
|
6
|
-
body: "Ubuntu Sans, serif",
|
|
7
|
-
heading: "Ubuntu Sans, serif",
|
|
8
|
-
mono: "Ubuntu Sans, monospace",
|
|
9
|
-
},
|
|
10
|
-
fontSizes: {
|
|
11
|
-
xs: "0.75rem",
|
|
12
|
-
sm: "0.875rem",
|
|
13
|
-
md: "1rem",
|
|
14
|
-
lg: "1.125rem",
|
|
15
|
-
xl: "1.25rem",
|
|
16
|
-
"2xl": "1.5rem",
|
|
17
|
-
"3xl": "1.875rem",
|
|
18
|
-
"4xl": "2.25rem",
|
|
19
|
-
"5xl": "3rem",
|
|
20
|
-
"6xl": "3.75rem",
|
|
21
|
-
"7xl": "4.5rem",
|
|
22
|
-
"8xl": "6rem",
|
|
23
|
-
"9xl": "8rem",
|
|
24
|
-
},
|
|
25
|
-
fontWeights: {
|
|
26
|
-
hairline: 100,
|
|
27
|
-
thin: 200,
|
|
28
|
-
light: 300,
|
|
29
|
-
normal: 400,
|
|
30
|
-
medium: 500,
|
|
31
|
-
semibold: 600,
|
|
32
|
-
bold: 700,
|
|
33
|
-
extrabold: 800,
|
|
34
|
-
black: 900,
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
exports.default = fontOptions;
|