pixelize-design-library 2.2.130 → 2.2.132
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/Accordion/AccordionProps.d.ts +0 -1
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.js +1 -1
- package/dist/Components/Apexcharts/ApexLineChart/ApexLineChart.js +18 -8
- package/dist/Components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/Components/Button/Button.js +17 -7
- package/dist/Components/Button/Button.styles.js +1 -1
- package/dist/Components/Button/ButtonProps.d.ts +0 -1
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +18 -8
- package/dist/Components/Card/Card.js +1 -1
- package/dist/Components/Card/CardProps.d.ts +0 -1
- package/dist/Components/Card/PaymentCard/PaymentCardProps.d.ts +0 -1
- package/dist/Components/Checkbox/Checkbox.js +1 -1
- package/dist/Components/Common/ErrorComponent.d.ts +1 -1
- package/dist/Components/Common/ErrorMessage.d.ts +1 -1
- package/dist/Components/Common/FormLabel.d.ts +8 -8
- package/dist/Components/Common/Label.d.ts +2 -2
- package/dist/Components/ContactForm/ContactForm.js +19 -9
- package/dist/Components/DatePicker/DatePicker.js +18 -8
- package/dist/Components/DatePicker/RangeDatePicker.js +17 -7
- package/dist/Components/DatePicker/SingleDatePicker.js +17 -7
- package/dist/Components/DatePicker/TimeOnlyPicker.js +17 -7
- package/dist/Components/DatePicker/TimePicker.js +17 -7
- package/dist/Components/DatePicker/TimePickerInput.js +17 -7
- package/dist/Components/Drawer/Drawer.js +1 -1
- package/dist/Components/Drawer/DrawerProps.d.ts +0 -1
- package/dist/Components/Dropdown/DropDown.js +17 -7
- package/dist/Components/Dropdown/DropdownProps.d.ts +0 -1
- package/dist/Components/Editor/Editor.js +1 -1
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +1 -1
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.d.ts +0 -1
- package/dist/Components/FeedbackForm/FeedbackForm.js +20 -10
- package/dist/Components/FileUpload/FileUpload.js +17 -7
- package/dist/Components/FileUploader/FileUploader.js +17 -7
- package/dist/Components/FilterSidebar/FilterSidebar.js +19 -9
- package/dist/Components/Form/FormWrapper.d.ts +2 -2
- package/dist/Components/Header/Header.js +17 -7
- package/dist/Components/Header/HeaderActions.d.ts +15 -15
- package/dist/Components/Header/HeaderProps.d.ts +0 -1
- package/dist/Components/Input/Input/Input.js +17 -7
- package/dist/Components/Input/PhoneNumberInput.js +17 -7
- package/dist/Components/Input/PhoneNumberInputProps.d.ts +0 -1
- package/dist/Components/Input/TextInput.js +17 -7
- package/dist/Components/Input/TextInputProps.d.ts +0 -1
- package/dist/Components/InputTextArea/InputTextArea.js +1 -1
- package/dist/Components/KanbanBoard/AccountCard.d.ts +3 -3
- package/dist/Components/KanbanBoard/AccountCard.js +17 -7
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.d.ts +3 -3
- package/dist/Components/KanbanBoard/KanbanBoard.js +19 -9
- package/dist/Components/KanbanBoard/MeasuredItem.js +17 -7
- package/dist/Components/Loading/Loading.js +1 -1
- package/dist/Components/Modal/Modal.js +1 -1
- package/dist/Components/Modal/ModalProps.d.ts +0 -1
- package/dist/Components/MultiSelect/MultiSelect.js +18 -8
- package/dist/Components/NavigationBar/NavigationBar.js +1 -1
- package/dist/Components/NavigationBar/NavigationBarProps.d.ts +0 -1
- package/dist/Components/NoteTextArea/NoteTextArea.js +18 -8
- package/dist/Components/Notification/Notification.js +17 -7
- package/dist/Components/NumberInput/NumberInput.js +1 -1
- package/dist/Components/PinInput/PinInput.js +1 -1
- package/dist/Components/PinInputs/PinInputs.js +17 -7
- package/dist/Components/ProductCard/ProductCard.js +17 -7
- package/dist/Components/ProductCard/ProductLabel.d.ts +1 -1
- package/dist/Components/ProductCard/ProductPrice.js +17 -7
- package/dist/Components/ProductDetails/ProductDtlPrice.js +17 -7
- package/dist/Components/ProductDetails/ProductImageSlider.js +18 -8
- package/dist/Components/ProfileCard/ProfileCard.js +1 -1
- package/dist/Components/ProfileCard/ProfileCardProps.d.ts +0 -1
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +18 -8
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.d.ts +0 -1
- package/dist/Components/ProgressBar/ProgressBar.js +1 -1
- package/dist/Components/Reorder/Reorder.d.ts +0 -1
- package/dist/Components/Search/Search.js +18 -8
- package/dist/Components/Search/SearchProps.d.ts +0 -1
- package/dist/Components/SearchSelect/SearchSelect.js +17 -7
- package/dist/Components/SearchSelect/SearchSelectProps.d.ts +0 -1
- package/dist/Components/SearchSelect/SelectTruncatedLabel.d.ts +1 -1
- package/dist/Components/SearchSelect/SelectTruncatedLabel.js +17 -7
- package/dist/Components/Select/Select.js +18 -8
- package/dist/Components/Select/Select.styles.js +2 -2
- package/dist/Components/Select/SelectProps.d.ts +0 -1
- package/dist/Components/SelectSearch/SelectSearch.js +18 -8
- package/dist/Components/SelectSearch/SelectSearchProps.d.ts +0 -1
- package/dist/Components/SideBar/SecondaryBar.js +17 -7
- package/dist/Components/SideBar/SideBar.js +1 -1
- package/dist/Components/SideBar/components/MenuItems.js +17 -7
- package/dist/Components/SideBar/components/OverflowTooltipText.js +17 -7
- package/dist/Components/SideBar/components/TextTruncation.js +17 -7
- package/dist/Components/Skeletons/Skeletons.js +1 -1
- package/dist/Components/Slider/Slider.js +17 -7
- package/dist/Components/Switch/Switch.js +1 -1
- package/dist/Components/Switch/SwitchProps.d.ts +0 -1
- package/dist/Components/Table/CompactSelect.js +17 -7
- package/dist/Components/Table/Components/HeaderActions.d.ts +1 -1
- package/dist/Components/Table/Components/TableActions.d.ts +1 -1
- package/dist/Components/Table/Components/TableActions.js +17 -7
- package/dist/Components/Table/Components/TableBody.js +17 -7
- package/dist/Components/Table/Components/TableFilters.d.ts +2 -2
- package/dist/Components/Table/Components/TableFilters.js +17 -7
- package/dist/Components/Table/Components/TableHeader.js +17 -7
- package/dist/Components/Table/Components/TableLoading.d.ts +2 -2
- package/dist/Components/Table/Components/TableSearch.js +17 -7
- package/dist/Components/Table/Components/useTable.d.ts +0 -1
- package/dist/Components/Table/LeftFilterPane.js +18 -8
- package/dist/Components/Table/SelectOperationControls.js +1 -2
- package/dist/Components/Table/Table.js +20 -10
- package/dist/Components/Table/TableSettings/ManageColumns.js +17 -7
- package/dist/Components/Table/TableSettings/TableFilters.d.ts +3 -3
- package/dist/Components/Table/TableSettings/TableFilters.js +17 -7
- package/dist/Components/Table/TableSettings/TableSettings.js +17 -7
- package/dist/Components/Table/TextOperationControls.js +2 -2
- package/dist/Components/Toaster/Toaster.js +18 -8
- package/dist/Components/ToolTip/ToolTip.js +1 -1
- package/dist/Components/ToolTip/ToolTipProps.d.ts +0 -1
- package/dist/Components/Trail/EditableCell.js +17 -7
- package/dist/Theme/Dark/theme.js +54 -54
- package/dist/Theme/Default/palette.js +11 -11
- package/dist/Theme/Meadow/palette.js +34 -34
- package/dist/Theme/Radiant/palette.js +25 -25
- package/dist/Theme/Skyline/palette.js +16 -16
- package/dist/Theme/space.js +27 -27
- package/dist/Utils/functions.js +1 -2
- package/dist/Utils/table.js +22 -12
- package/dist/index.js +17 -7
- package/dist/services/feedback.js +3 -4
- package/index.html +13 -0
- package/package.json +41 -15
- package/vite.config.ts +13 -0
|
@@ -21,7 +21,7 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
21
21
|
200: "#a2d4ec",
|
|
22
22
|
300: "#7ac1e4",
|
|
23
23
|
400: "#47a9da",
|
|
24
|
-
500: "#0088cc",
|
|
24
|
+
500: "#0088cc", // primary shade
|
|
25
25
|
600: "#007ab8",
|
|
26
26
|
700: "#006ba1",
|
|
27
27
|
800: "#005885",
|
|
@@ -41,7 +41,7 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
41
41
|
200: "#94989b",
|
|
42
42
|
300: "#63666d",
|
|
43
43
|
400: "#454951",
|
|
44
|
-
500: "#161b25",
|
|
44
|
+
500: "#161b25", // secondary shade
|
|
45
45
|
600: "#141922",
|
|
46
46
|
700: "#10131a",
|
|
47
47
|
800: "#0c0f14",
|
|
@@ -61,7 +61,7 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
61
61
|
200: "#a2d4ec",
|
|
62
62
|
300: "#7ac1e4",
|
|
63
63
|
400: "#47a9da",
|
|
64
|
-
500: "#0088cc",
|
|
64
|
+
500: "#0088cc", // primary shade
|
|
65
65
|
600: "#007ab8",
|
|
66
66
|
700: "#006ba1",
|
|
67
67
|
800: "#005885",
|
|
@@ -82,7 +82,7 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
82
82
|
200: "#8be6bb",
|
|
83
83
|
300: "#5bdb9e",
|
|
84
84
|
400: "#33d181",
|
|
85
|
-
500: "#00b768",
|
|
85
|
+
500: "#00b768", // Main success color
|
|
86
86
|
600: "#00a05a",
|
|
87
87
|
700: "#00854b",
|
|
88
88
|
800: "#006b3c",
|
|
@@ -94,7 +94,7 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
94
94
|
200: "#f28f8f",
|
|
95
95
|
300: "#e66060",
|
|
96
96
|
400: "#db3a3a",
|
|
97
|
-
500: "#c21e1e",
|
|
97
|
+
500: "#c21e1e", // Main error color
|
|
98
98
|
600: "#a01919",
|
|
99
99
|
700: "#7e1313",
|
|
100
100
|
800: "#5c0d0d",
|
|
@@ -106,7 +106,7 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
106
106
|
200: "#ffcc85",
|
|
107
107
|
300: "#ffb653",
|
|
108
108
|
400: "#ffa31a",
|
|
109
|
-
500: "#ff8a00",
|
|
109
|
+
500: "#ff8a00", // Main warning color
|
|
110
110
|
600: "#db7000",
|
|
111
111
|
700: "#b75800",
|
|
112
112
|
800: "#934300",
|
|
@@ -118,7 +118,7 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
118
118
|
200: "#85d1ff",
|
|
119
119
|
300: "#52bdff",
|
|
120
120
|
400: "#1fa9ff",
|
|
121
|
-
500: "#008df5",
|
|
121
|
+
500: "#008df5", // Main info color
|
|
122
122
|
600: "#0077db",
|
|
123
123
|
700: "#005cb3",
|
|
124
124
|
800: "#004489",
|
|
@@ -246,15 +246,15 @@ var palette = __assign(__assign({}, palette_1.default), { primary: {
|
|
|
246
246
|
800: "#8a8a8a",
|
|
247
247
|
900: "#696969",
|
|
248
248
|
}, backgroundColor: {
|
|
249
|
-
main: "#f8f9fa",
|
|
250
|
-
secondary: "#f1f1f1",
|
|
251
|
-
tertiary: "#ececec",
|
|
252
|
-
quaternary: "#e2e6ea",
|
|
253
|
-
light: "#fafafa",
|
|
254
|
-
medium: "#eaeaea",
|
|
255
|
-
accent: "#e5e5e5",
|
|
256
|
-
subtle: "#f5f6f7",
|
|
257
|
-
muted: "#dfe3e6",
|
|
249
|
+
main: "#f8f9fa", // Light greyish white
|
|
250
|
+
secondary: "#f1f1f1", // Very light grey
|
|
251
|
+
tertiary: "#ececec", // Soft grey
|
|
252
|
+
quaternary: "#e2e6ea", // Pale blueish-grey
|
|
253
|
+
light: "#fafafa", // Almost pure white
|
|
254
|
+
medium: "#eaeaea", // Medium light grey
|
|
255
|
+
accent: "#e5e5e5", // A slightly deeper grey
|
|
256
|
+
subtle: "#f5f6f7", // Slightly off-white with a cooler tone
|
|
257
|
+
muted: "#dfe3e6", // Light muted blue-grey
|
|
258
258
|
neutral: "#ebedef", // Neutral grey with a balanced tone
|
|
259
259
|
}, text: {
|
|
260
260
|
50: "#eeeff0",
|
package/dist/Theme/space.js
CHANGED
|
@@ -3,33 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var space = {
|
|
4
4
|
px: "1px",
|
|
5
5
|
0: "0",
|
|
6
|
-
1: "0.25rem",
|
|
7
|
-
2: "0.5rem",
|
|
8
|
-
3: "0.75rem",
|
|
9
|
-
4: "1rem",
|
|
10
|
-
5: "1.25rem",
|
|
11
|
-
6: "1.5rem",
|
|
12
|
-
7: "1.75rem",
|
|
13
|
-
8: "2rem",
|
|
14
|
-
9: "2.25rem",
|
|
15
|
-
10: "2.5rem",
|
|
16
|
-
12: "3rem",
|
|
17
|
-
14: "3.5rem",
|
|
18
|
-
16: "4rem",
|
|
19
|
-
20: "5rem",
|
|
20
|
-
24: "6rem",
|
|
21
|
-
28: "7rem",
|
|
22
|
-
32: "8rem",
|
|
23
|
-
36: "9rem",
|
|
24
|
-
40: "10rem",
|
|
25
|
-
44: "11rem",
|
|
26
|
-
48: "12rem",
|
|
27
|
-
52: "13rem",
|
|
28
|
-
56: "14rem",
|
|
29
|
-
60: "15rem",
|
|
30
|
-
64: "16rem",
|
|
31
|
-
72: "18rem",
|
|
32
|
-
80: "20rem",
|
|
6
|
+
1: "0.25rem", // 4px
|
|
7
|
+
2: "0.5rem", // 8px
|
|
8
|
+
3: "0.75rem", // 12px
|
|
9
|
+
4: "1rem", // 16px
|
|
10
|
+
5: "1.25rem", // 20px
|
|
11
|
+
6: "1.5rem", // 24px
|
|
12
|
+
7: "1.75rem", // 28px
|
|
13
|
+
8: "2rem", // 32px
|
|
14
|
+
9: "2.25rem", // 36px
|
|
15
|
+
10: "2.5rem", // 40px
|
|
16
|
+
12: "3rem", // 48px
|
|
17
|
+
14: "3.5rem", // 56px
|
|
18
|
+
16: "4rem", // 64px
|
|
19
|
+
20: "5rem", // 80px
|
|
20
|
+
24: "6rem", // 96px
|
|
21
|
+
28: "7rem", // 112px
|
|
22
|
+
32: "8rem", // 128px
|
|
23
|
+
36: "9rem", // 144px
|
|
24
|
+
40: "10rem", // 160px
|
|
25
|
+
44: "11rem", // 176px
|
|
26
|
+
48: "12rem", // 192px
|
|
27
|
+
52: "13rem", // 208px
|
|
28
|
+
56: "14rem", // 224px
|
|
29
|
+
60: "15rem", // 240px
|
|
30
|
+
64: "16rem", // 256px
|
|
31
|
+
72: "18rem", // 288px
|
|
32
|
+
80: "20rem", // 320px
|
|
33
33
|
96: "24rem", // 384px
|
|
34
34
|
};
|
|
35
35
|
exports.default = space;
|
package/dist/Utils/functions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toWords =
|
|
3
|
+
exports.toWords = toWords;
|
|
4
4
|
function toWords(str) {
|
|
5
5
|
return str
|
|
6
6
|
.toLowerCase()
|
|
@@ -8,4 +8,3 @@ function toWords(str) {
|
|
|
8
8
|
.map(function (word) { return word.charAt(0).toUpperCase() + word.slice(1); })
|
|
9
9
|
.join(' ');
|
|
10
10
|
}
|
|
11
|
-
exports.toWords = toWords;
|
package/dist/Utils/table.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
26
36
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
27
37
|
if (ar || !(i in from)) {
|
|
@@ -32,7 +42,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
32
42
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.
|
|
45
|
+
exports.TableCellCalculation = exports.pageSizeCalculation = exports.searchAndSortData = exports.calculateLeftOffset = void 0;
|
|
46
|
+
exports.SortMultiColumnData = SortMultiColumnData;
|
|
47
|
+
exports.debounce = debounce;
|
|
48
|
+
exports.useDebounce = useDebounce;
|
|
49
|
+
exports.globalSearchFilter = globalSearchFilter;
|
|
36
50
|
var react_1 = __importStar(require("react"));
|
|
37
51
|
var useCustomTheme_1 = require("../Theme/useCustomTheme");
|
|
38
52
|
function SortMultiColumnData(data, sortConfig) {
|
|
@@ -55,7 +69,6 @@ function SortMultiColumnData(data, sortConfig) {
|
|
|
55
69
|
return 0; // Return 0 if all sort conditions are equal
|
|
56
70
|
});
|
|
57
71
|
}
|
|
58
|
-
exports.SortMultiColumnData = SortMultiColumnData;
|
|
59
72
|
var calculateLeftOffset = function (columns, index) {
|
|
60
73
|
return columns.slice(0, index).reduce(function (sum, width) { return sum + width; }, 0);
|
|
61
74
|
};
|
|
@@ -123,7 +136,6 @@ function debounce(func, delay) {
|
|
|
123
136
|
}, delay);
|
|
124
137
|
};
|
|
125
138
|
}
|
|
126
|
-
exports.debounce = debounce;
|
|
127
139
|
function useDebounce(callback, delay) {
|
|
128
140
|
var callbackRef = (0, react_1.useRef)(callback);
|
|
129
141
|
var timerRef = (0, react_1.useRef)(null);
|
|
@@ -144,7 +156,6 @@ function useDebounce(callback, delay) {
|
|
|
144
156
|
}, [delay]);
|
|
145
157
|
return debouncedFn;
|
|
146
158
|
}
|
|
147
|
-
exports.useDebounce = useDebounce;
|
|
148
159
|
var pageSizeCalculation = function (records) {
|
|
149
160
|
var pageSize = [5, 10];
|
|
150
161
|
if (records > 100) {
|
|
@@ -209,4 +220,3 @@ function globalSearchFilter(data, query) {
|
|
|
209
220
|
});
|
|
210
221
|
});
|
|
211
222
|
}
|
|
212
|
-
exports.globalSearchFilter = globalSearchFilter;
|
package/dist/index.js
CHANGED
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
@@ -20,8 +20,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g =
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.submitFeedback =
|
|
50
|
+
exports.submitFeedback = submitFeedback;
|
|
51
51
|
function submitFeedback(options) {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function () {
|
|
53
53
|
var endpoint, payload, headers, res, text;
|
|
@@ -72,4 +72,3 @@ function submitFeedback(options) {
|
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
exports.submitFeedback = submitFeedback;
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Pixelize Design System</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/bootstrap.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,36 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixelize-design-library",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.132",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@chakra-ui/react": "^2.8.2",
|
|
10
9
|
"@hello-pangea/dnd": "^18.0.1",
|
|
11
|
-
"framer-motion": "^10.18.0",
|
|
12
10
|
"jodit-react": "^5.2.38",
|
|
13
11
|
"lucide-react": "^0.487.0",
|
|
14
|
-
"react": "^18.3.1",
|
|
15
12
|
"react-apexcharts": "^1.4.1",
|
|
16
13
|
"react-datepicker": "^7.3.0",
|
|
17
|
-
"react-dom": "^18.3.1",
|
|
18
14
|
"react-dropzone": "^14.3.8",
|
|
19
|
-
"react-scripts": "^5.0.1",
|
|
20
15
|
"react-window": "^1.8.11"
|
|
21
16
|
},
|
|
22
17
|
"scripts": {
|
|
23
|
-
"start": "
|
|
18
|
+
"start": "vite",
|
|
24
19
|
"build": "tsc && copyfiles -u 1 src/**/*.css src/assets/**/* dist/",
|
|
25
|
-
"test": "
|
|
20
|
+
"test": "jest",
|
|
21
|
+
"test:watch": "jest --watch",
|
|
26
22
|
"remove": "rm -rf dist/Pages dist/App.js dist/App.d.ts dist/Layout.js dist/Layout.d.ts dist/bootstrap.js dist/bootstrap.d.ts",
|
|
27
|
-
"eject": "react-scripts eject",
|
|
28
23
|
"package": "npm version patch && npm run build && npm run remove && npm publish"
|
|
29
24
|
},
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
25
|
+
"jest": {
|
|
26
|
+
"testEnvironment": "jsdom",
|
|
27
|
+
"setupFilesAfterEnv": [
|
|
28
|
+
"@testing-library/jest-dom/extend-expect"
|
|
29
|
+
],
|
|
30
|
+
"transform": {
|
|
31
|
+
"^.+\\.(ts|tsx)$": [
|
|
32
|
+
"babel-jest",
|
|
33
|
+
{
|
|
34
|
+
"presets": [
|
|
35
|
+
"@babel/preset-env",
|
|
36
|
+
"@babel/preset-react",
|
|
37
|
+
"@babel/preset-typescript"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"moduleNameMapper": {
|
|
43
|
+
"\\.(css|less|scss|sass)$": "<rootDir>/__mocks__/styleMock.js"
|
|
44
|
+
},
|
|
45
|
+
"testMatch": [
|
|
46
|
+
"**/__tests__/**/*.[jt]s?(x)",
|
|
47
|
+
"**/?(*.)+(spec|test).[jt]s?(x)"
|
|
34
48
|
]
|
|
35
49
|
},
|
|
36
50
|
"browserslist": {
|
|
@@ -46,8 +60,15 @@
|
|
|
46
60
|
]
|
|
47
61
|
},
|
|
48
62
|
"devDependencies": {
|
|
63
|
+
"@chakra-ui/react": "^2.8.2",
|
|
49
64
|
"@babel/core": "^7.24.5",
|
|
50
65
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
66
|
+
"@babel/preset-env": "^7.24.5",
|
|
67
|
+
"@babel/preset-react": "^7.24.5",
|
|
68
|
+
"@babel/preset-typescript": "^7.24.5",
|
|
69
|
+
"babel-jest": "^29.7.0",
|
|
70
|
+
"jest": "^29.7.0",
|
|
71
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
51
72
|
"@emotion/react": "^11.11.4",
|
|
52
73
|
"@emotion/styled": "^11.11.5",
|
|
53
74
|
"@testing-library/jest-dom": "^5.17.0",
|
|
@@ -56,18 +77,23 @@
|
|
|
56
77
|
"@types/jest": "^27.5.2",
|
|
57
78
|
"@types/leaflet": "^1.9.21",
|
|
58
79
|
"@types/leaflet-routing-machine": "^3.2.9",
|
|
59
|
-
"@types/node": "^
|
|
80
|
+
"@types/node": "^20.0.0",
|
|
60
81
|
"@types/react": "^18.3.2",
|
|
61
82
|
"@types/react-dom": "^18.3.0",
|
|
62
83
|
"@types/react-window": "^1.8.8",
|
|
63
84
|
"autoprefixer": "^10.4.21",
|
|
64
85
|
"copyfiles": "^2.4.1",
|
|
86
|
+
"framer-motion": "^10.18.0",
|
|
87
|
+
"react": "^18.3.1",
|
|
88
|
+
"react-dom": "^18.3.1",
|
|
65
89
|
"path": "^0.12.7",
|
|
66
90
|
"postcss": "^8.5.4",
|
|
67
91
|
"prettier": "^3.3.2",
|
|
68
92
|
"prop-types": "^15.8.1",
|
|
69
93
|
"tailwindcss": "^3.4.17",
|
|
70
|
-
"typescript": "^
|
|
94
|
+
"typescript": "^5.9.3",
|
|
95
|
+
"vite": "^6.2.0",
|
|
96
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
71
97
|
"webpack": "^5.91.0"
|
|
72
98
|
},
|
|
73
99
|
"peerDependencies": {
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
import path from 'path'
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [react()],
|
|
7
|
+
resolve: {
|
|
8
|
+
alias: {
|
|
9
|
+
src: path.resolve(__dirname, './src'),
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
publicDir: 'public',
|
|
13
|
+
})
|