pixelize-design-library 2.1.39 → 2.1.41
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/Header/Header.js +1 -1
- package/dist/Components/KaTable/CustomHeader.d.ts +14 -0
- package/dist/Components/KaTable/CustomHeader.js +69 -0
- package/dist/Components/KaTable/KaTable.d.ts +13 -0
- package/dist/Components/KaTable/KaTable.js +111 -0
- package/dist/Components/KaTable/KaTableProps.d.ts +23 -0
- package/dist/Components/KaTable/KaTableProps.js +2 -0
- package/dist/Components/KaTable/SelectionCell.d.ts +8 -0
- package/dist/Components/KaTable/SelectionCell.js +38 -0
- package/dist/Components/KaTable/SelectionHeader.d.ts +3 -0
- package/dist/Components/KaTable/SelectionHeader.js +56 -0
- package/dist/Components/KaTable/ka-table.css +27 -0
- package/dist/Components/KaTable/useMergedChildComponents.d.ts +14 -0
- package/dist/Components/KaTable/useMergedChildComponents.js +224 -0
- package/dist/Components/ProductCard/ProductPrice.js +18 -7
- package/dist/Components/Table/Table.css +16 -0
- package/dist/Pages/KaTableExample.d.ts +3 -0
- package/dist/Pages/KaTableExample.js +259 -0
- package/dist/Pages/productCaard.js +200 -8
- package/dist/Theme/Default/fonts.d.ts +35 -0
- package/dist/Theme/Default/fonts.js +37 -0
- package/package.json +1 -1
- package/dist/index.d.mts +0 -1468
- package/dist/index.mjs +0 -263
|
@@ -84,14 +84,25 @@ var ProductPrice = function (_a) {
|
|
|
84
84
|
return Math.round(option.price - (option.price * option.offer) / 100);
|
|
85
85
|
};
|
|
86
86
|
(0, react_1.useEffect)(function () {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
var updatePosition = function () {
|
|
88
|
+
if (buttonRef.current) {
|
|
89
|
+
var rect = buttonRef.current.getBoundingClientRect();
|
|
90
|
+
setDropdownPosition({
|
|
91
|
+
top: rect.bottom + window.scrollY,
|
|
92
|
+
left: rect.left + window.scrollX,
|
|
93
|
+
width: rect.width
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
if (isOpen) {
|
|
98
|
+
updatePosition();
|
|
99
|
+
window.addEventListener("resize", updatePosition);
|
|
100
|
+
window.addEventListener("scroll", updatePosition, true); // listen to scroll of any container
|
|
94
101
|
}
|
|
102
|
+
return function () {
|
|
103
|
+
window.removeEventListener("resize", updatePosition);
|
|
104
|
+
window.removeEventListener("scroll", updatePosition, true);
|
|
105
|
+
};
|
|
95
106
|
}, [isOpen]);
|
|
96
107
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
97
108
|
isSingleOption ? (react_1.default.createElement(react_2.Box, { border: "0.063rem solid", borderColor: "red.300", bg: "#fff5f5", px: cfg.px, py: cfg.py, rounded: "md", display: "inline-block", w: "100%" },
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.table_wrapper {
|
|
2
|
+
width: 100%;
|
|
3
|
+
border-collapse: collapse;
|
|
4
|
+
/* table-layout: fixed; */
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.table_wrapper th .resize-handle {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
width: 8px;
|
|
12
|
+
height: 100%;
|
|
13
|
+
cursor: col-resize;
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
z-index: 999;
|
|
16
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
var react_1 = __importStar(require("react"));
|
|
41
|
+
var KaTable_1 = __importDefault(require("../Components/KaTable/KaTable"));
|
|
42
|
+
var KaTable_2 = require("../Components/KaTable/KaTable");
|
|
43
|
+
var icons_1 = require("@chakra-ui/icons");
|
|
44
|
+
var react_2 = require("@chakra-ui/react");
|
|
45
|
+
var menuItems = [
|
|
46
|
+
{ label: "Hide column", action: "hidecolumn" },
|
|
47
|
+
{
|
|
48
|
+
label: "Filter",
|
|
49
|
+
submenu: [
|
|
50
|
+
{ label: "Filter by Date", action: "Filter by Date" },
|
|
51
|
+
{ label: "Filter by Name", action: "Filter by Name" },
|
|
52
|
+
{ label: "Filter by Status", action: "Filter by Status" },
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
var DataType = KaTable_2.TableEnums.DataType;
|
|
57
|
+
var dataArray = Array(5)
|
|
58
|
+
.fill(undefined)
|
|
59
|
+
.map(function (_, index) { return ({
|
|
60
|
+
column1: index % 2 === 0,
|
|
61
|
+
column2: "column:2 row:".concat(index + 1),
|
|
62
|
+
column3: "column:3 row:".concat(index + 1),
|
|
63
|
+
column4: "column:4 row:".concat(index + 1),
|
|
64
|
+
column5: "column:5 row:".concat(index + 1),
|
|
65
|
+
column6: index + 20,
|
|
66
|
+
column7: index + 25,
|
|
67
|
+
column8: index + 30,
|
|
68
|
+
column9: index + 35,
|
|
69
|
+
column10: index + 40,
|
|
70
|
+
column11: index + 45,
|
|
71
|
+
column12: index + 50,
|
|
72
|
+
column13: index + 55,
|
|
73
|
+
column14: index + 60,
|
|
74
|
+
column15: new Date(2022, 11, index),
|
|
75
|
+
id: index + 1,
|
|
76
|
+
}); });
|
|
77
|
+
var columns = [
|
|
78
|
+
{
|
|
79
|
+
key: "column1",
|
|
80
|
+
title: "Column 1",
|
|
81
|
+
dataType: DataType.Boolean,
|
|
82
|
+
width: 100,
|
|
83
|
+
columnFreeze: true,
|
|
84
|
+
customHeader: false,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: "column2",
|
|
88
|
+
title: "Column 2",
|
|
89
|
+
dataType: DataType.String,
|
|
90
|
+
width: 250,
|
|
91
|
+
// visible: false,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
key: "column3",
|
|
95
|
+
title: "Column 3",
|
|
96
|
+
dataType: DataType.Number,
|
|
97
|
+
width: 150,
|
|
98
|
+
filter: true,
|
|
99
|
+
menu: [
|
|
100
|
+
{
|
|
101
|
+
label: "Filter",
|
|
102
|
+
onClick: function () { return console.log("MENU Filter clicks"); },
|
|
103
|
+
submenu: [
|
|
104
|
+
{
|
|
105
|
+
label: "Filter by Date",
|
|
106
|
+
onClick: function () { return console.log("SUBMENU Date clicks"); },
|
|
107
|
+
},
|
|
108
|
+
{ label: "Filter by Name" },
|
|
109
|
+
// { label: "Filter by Status", action: "Filter by Status" },
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "column4",
|
|
116
|
+
title: "Column 4",
|
|
117
|
+
dataType: DataType.Number,
|
|
118
|
+
width: 150,
|
|
119
|
+
sortable: true,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
key: "column5",
|
|
123
|
+
title: "Column 5",
|
|
124
|
+
dataType: DataType.Number,
|
|
125
|
+
width: 150,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: "column6",
|
|
129
|
+
title: "Column 6",
|
|
130
|
+
dataType: DataType.Number,
|
|
131
|
+
width: 150,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: "column7",
|
|
135
|
+
title: "Column 7",
|
|
136
|
+
dataType: DataType.Number,
|
|
137
|
+
width: 150,
|
|
138
|
+
sortable: true,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
key: "column8",
|
|
142
|
+
title: "Column 8",
|
|
143
|
+
dataType: DataType.Number,
|
|
144
|
+
width: 150,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
key: "column9",
|
|
148
|
+
title: "Column 9",
|
|
149
|
+
dataType: DataType.Number,
|
|
150
|
+
width: 150,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: "column10",
|
|
154
|
+
title: "Column 10",
|
|
155
|
+
dataType: DataType.Number,
|
|
156
|
+
width: 150,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
key: "column11",
|
|
160
|
+
title: "Column 11",
|
|
161
|
+
dataType: DataType.Number,
|
|
162
|
+
width: 150,
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
key: "column12",
|
|
166
|
+
title: "Column 12",
|
|
167
|
+
dataType: DataType.Number,
|
|
168
|
+
width: 150,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
key: "column13",
|
|
172
|
+
title: "Column 13",
|
|
173
|
+
dataType: DataType.Number,
|
|
174
|
+
width: 150,
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
key: "column14",
|
|
178
|
+
title: "Column 14",
|
|
179
|
+
dataType: DataType.Number,
|
|
180
|
+
width: 150,
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
key: "column15",
|
|
184
|
+
title: "Column 15",
|
|
185
|
+
dataType: DataType.Date,
|
|
186
|
+
width: 150,
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
key: "editColumn",
|
|
190
|
+
width: 80,
|
|
191
|
+
customHeader: false,
|
|
192
|
+
},
|
|
193
|
+
];
|
|
194
|
+
var KaTableExample = function () {
|
|
195
|
+
var _a = (0, react_1.useState)(false), actionButtons = _a[0], setActionButtons = _a[1];
|
|
196
|
+
var _b = (0, react_1.useState)([]), selectedRows = _b[0], setSelectedRows = _b[1];
|
|
197
|
+
// const kaTableFormat = (props: any) => {
|
|
198
|
+
// if (props.column.dataType === DataType.Date) {
|
|
199
|
+
// return (
|
|
200
|
+
// props.value &&
|
|
201
|
+
// props.value.toLocaleDateString("en", {
|
|
202
|
+
// month: "2-digit",
|
|
203
|
+
// day: "2-digit",
|
|
204
|
+
// year: "numeric",
|
|
205
|
+
// })
|
|
206
|
+
// );
|
|
207
|
+
// }
|
|
208
|
+
// };
|
|
209
|
+
var EditButton = function (_a) {
|
|
210
|
+
var dispatch = _a.dispatch, rowKeyValue = _a.rowKeyValue;
|
|
211
|
+
return (react_1.default.createElement("div", { className: "edit-cell-button" },
|
|
212
|
+
react_1.default.createElement(icons_1.EditIcon, null),
|
|
213
|
+
react_1.default.createElement(icons_1.DeleteIcon, null)));
|
|
214
|
+
};
|
|
215
|
+
// const handleSortChange = (newSortState: any, columnName: any) => {
|
|
216
|
+
// console.log(`Sort state for ${columnName} changed to:`, newSortState);
|
|
217
|
+
// };
|
|
218
|
+
// const handleMenuItemClick = (action: any, columnName: any) => {
|
|
219
|
+
// console.log(`Menu item clicked for ${columnName}:`, action);
|
|
220
|
+
// };
|
|
221
|
+
var handleCheckSelect = (0, react_1.useCallback)(function (selectedRows) {
|
|
222
|
+
console.log("CB", selectedRows);
|
|
223
|
+
if (selectedRows.length !== 0) {
|
|
224
|
+
setActionButtons(true);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
setActionButtons(false);
|
|
228
|
+
}
|
|
229
|
+
setSelectedRows(selectedRows);
|
|
230
|
+
}, []);
|
|
231
|
+
// console.log(actionButtons, "actionButtons");
|
|
232
|
+
var handleExample = function () {
|
|
233
|
+
setSelectedRows([]);
|
|
234
|
+
};
|
|
235
|
+
// console.log(selectedRows, "selectedRows");
|
|
236
|
+
return (react_1.default.createElement("div", null,
|
|
237
|
+
react_1.default.createElement(react_2.Button, { onClick: handleExample }, "click here"),
|
|
238
|
+
react_1.default.createElement(KaTable_1.default, { data: dataArray, columns: columns, checkSelect: true, onRowClick: function (rowKeyValue) {
|
|
239
|
+
console.log("Row clicked", rowKeyValue);
|
|
240
|
+
}, selected: selectedRows, onSelectionChange: function (selectedRows) {
|
|
241
|
+
handleCheckSelect(selectedRows);
|
|
242
|
+
}, columnVisibility: true,
|
|
243
|
+
// onSortChange={handleSortChange}
|
|
244
|
+
// onMenuItemClick={handleMenuItemClick}
|
|
245
|
+
// format={kaTableFormat}
|
|
246
|
+
childComponents: {
|
|
247
|
+
cellText: {
|
|
248
|
+
content: function (props) {
|
|
249
|
+
if (props.column.key === "editColumn") {
|
|
250
|
+
return react_1.default.createElement(EditButton, __assign({}, props));
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
}, loading: {
|
|
255
|
+
enabled: false,
|
|
256
|
+
text: "Loading data",
|
|
257
|
+
} })));
|
|
258
|
+
};
|
|
259
|
+
exports.default = KaTableExample;
|
|
@@ -5,6 +5,7 @@ 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 ProductCard_1 = __importDefault(require("../Components/ProductCard/ProductCard"));
|
|
8
|
+
var react_2 = require("@chakra-ui/react");
|
|
8
9
|
var productCaard = function () {
|
|
9
10
|
var option = [{
|
|
10
11
|
label: "100 G",
|
|
@@ -21,35 +22,226 @@ var productCaard = function () {
|
|
|
21
22
|
offer: 50,
|
|
22
23
|
}
|
|
23
24
|
];
|
|
24
|
-
return (
|
|
25
|
+
return (
|
|
26
|
+
// <div style={{ display: "flex", justifyContent: "space-between" }}>
|
|
27
|
+
// <ProductCard
|
|
28
|
+
// label="Ghee Mysorepaku (Soft)"
|
|
29
|
+
// description="Special Ghee mysorepaku"
|
|
30
|
+
// productImage={{
|
|
31
|
+
// visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
32
|
+
// hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
33
|
+
// }}
|
|
34
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
35
|
+
// rating={4.76}
|
|
36
|
+
// reviews={596}
|
|
37
|
+
// options={option}
|
|
38
|
+
// size="xs"
|
|
39
|
+
// onAddToCart={() => { }}
|
|
40
|
+
// onClick={() => { }}
|
|
41
|
+
// batch={{
|
|
42
|
+
// label: "Special",
|
|
43
|
+
// color: "red",
|
|
44
|
+
// }}
|
|
45
|
+
// />
|
|
46
|
+
// <br />
|
|
47
|
+
// <ProductCard
|
|
48
|
+
// label="Ghee Mysorepaku (Soft)"
|
|
49
|
+
// description="Special Ghee mysorepaku"
|
|
50
|
+
// productImage={{
|
|
51
|
+
// visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
52
|
+
// hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
53
|
+
// }}
|
|
54
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
55
|
+
// rating={4.76}
|
|
56
|
+
// reviews={596}
|
|
57
|
+
// options={option}
|
|
58
|
+
// size="sm"
|
|
59
|
+
// onAddToCart={() => { }}
|
|
60
|
+
// onClick={() => { }}
|
|
61
|
+
// batch={{
|
|
62
|
+
// label: "Special",
|
|
63
|
+
// color: "red",
|
|
64
|
+
// }}
|
|
65
|
+
// />
|
|
66
|
+
// <br />
|
|
67
|
+
// <ProductCard
|
|
68
|
+
// label="Ghee Mysorepaku (Soft)"
|
|
69
|
+
// description="Special Ghee mysorepaku"
|
|
70
|
+
// productImage={{
|
|
71
|
+
// visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
72
|
+
// hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
73
|
+
// }}
|
|
74
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
75
|
+
// rating={4.76}
|
|
76
|
+
// reviews={596}
|
|
77
|
+
// options={option}
|
|
78
|
+
// size="md"
|
|
79
|
+
// onAddToCart={() => { }}
|
|
80
|
+
// onClick={() => { }}
|
|
81
|
+
// batch={{
|
|
82
|
+
// label: "Special",
|
|
83
|
+
// color: "red",
|
|
84
|
+
// }}
|
|
85
|
+
// />
|
|
86
|
+
// <br />
|
|
87
|
+
// <ProductCard
|
|
88
|
+
// label="Ghee Mysorepaku (Soft)"
|
|
89
|
+
// description="Special Ghee mysorepaku"
|
|
90
|
+
// productImage={{
|
|
91
|
+
// visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
92
|
+
// hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
93
|
+
// }}
|
|
94
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
95
|
+
// rating={4.76}
|
|
96
|
+
// reviews={596}
|
|
97
|
+
// options={option}
|
|
98
|
+
// size="lg"
|
|
99
|
+
// onAddToCart={() => { }}
|
|
100
|
+
// onClick={() => { }}
|
|
101
|
+
// batch={{
|
|
102
|
+
// label: "Special",
|
|
103
|
+
// color: "red",
|
|
104
|
+
// }}
|
|
105
|
+
// />
|
|
106
|
+
// </div>
|
|
107
|
+
react_1.default.createElement(react_2.SimpleGrid, { columns: { base: 1, sm: 2, md: 3, lg: 4 }, spacing: 6 },
|
|
25
108
|
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
26
109
|
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
27
110
|
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
28
|
-
},
|
|
111
|
+
},
|
|
112
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
113
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
114
|
+
label: "Special",
|
|
115
|
+
color: "red",
|
|
116
|
+
} }),
|
|
117
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
118
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
119
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
120
|
+
},
|
|
121
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
122
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
123
|
+
label: "Special",
|
|
124
|
+
color: "red",
|
|
125
|
+
} }),
|
|
126
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
127
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
128
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
129
|
+
},
|
|
130
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
131
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
132
|
+
label: "Special",
|
|
133
|
+
color: "red",
|
|
134
|
+
} }),
|
|
135
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
136
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
137
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
138
|
+
},
|
|
139
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
140
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
141
|
+
label: "Special",
|
|
142
|
+
color: "red",
|
|
143
|
+
} }),
|
|
144
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
145
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
146
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
147
|
+
},
|
|
148
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
149
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
150
|
+
label: "Special",
|
|
151
|
+
color: "red",
|
|
152
|
+
} }),
|
|
153
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
154
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
155
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
156
|
+
},
|
|
157
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
158
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
159
|
+
label: "Special",
|
|
160
|
+
color: "red",
|
|
161
|
+
} }),
|
|
162
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
163
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
164
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
165
|
+
},
|
|
166
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
167
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
29
168
|
label: "Special",
|
|
30
169
|
color: "red",
|
|
31
170
|
} }),
|
|
32
|
-
react_1.default.createElement("br", null),
|
|
33
171
|
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
34
172
|
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
35
173
|
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
36
|
-
},
|
|
174
|
+
},
|
|
175
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
176
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
177
|
+
label: "Special",
|
|
178
|
+
color: "red",
|
|
179
|
+
} }),
|
|
180
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
181
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
182
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
183
|
+
},
|
|
184
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
185
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
186
|
+
label: "Special",
|
|
187
|
+
color: "red",
|
|
188
|
+
} }),
|
|
189
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
190
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
191
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
192
|
+
},
|
|
193
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
194
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
195
|
+
label: "Special",
|
|
196
|
+
color: "red",
|
|
197
|
+
} }),
|
|
198
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
199
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
200
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
201
|
+
},
|
|
202
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
203
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
204
|
+
label: "Special",
|
|
205
|
+
color: "red",
|
|
206
|
+
} }),
|
|
207
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
208
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
209
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
210
|
+
},
|
|
211
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
212
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
213
|
+
label: "Special",
|
|
214
|
+
color: "red",
|
|
215
|
+
} }),
|
|
216
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
217
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
218
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
219
|
+
},
|
|
220
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
221
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
222
|
+
label: "Special",
|
|
223
|
+
color: "red",
|
|
224
|
+
} }),
|
|
225
|
+
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
226
|
+
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
227
|
+
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
228
|
+
}, tags: ['Melt in Mouth', 'Authentic Taste', 'No Preservatives'], rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
37
229
|
label: "Special",
|
|
38
230
|
color: "red",
|
|
39
231
|
} }),
|
|
40
|
-
react_1.default.createElement("br", null),
|
|
41
232
|
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
42
233
|
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
43
234
|
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
44
|
-
}, tags: ['Melt in Mouth'
|
|
235
|
+
}, tags: ['Melt in Mouth'], rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
45
236
|
label: "Special",
|
|
46
237
|
color: "red",
|
|
47
238
|
} }),
|
|
48
|
-
react_1.default.createElement("br", null),
|
|
49
239
|
react_1.default.createElement(ProductCard_1.default, { label: "Ghee Mysorepaku (Soft)", description: "Special Ghee mysorepaku", productImage: {
|
|
50
240
|
visibile: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754538444/main_service/1754538444014-GM-Back%20%284%29.png",
|
|
51
241
|
hover: "https://res.cloudinary.com/drmkh6z50/image/upload/v1754573075/main_service/1754573075361-istockphoto-1054228718-612x612.jpg",
|
|
52
|
-
},
|
|
242
|
+
},
|
|
243
|
+
// tags={['Melt in Mouth', 'Authentic Taste', 'No Preservatives']}
|
|
244
|
+
rating: 4.76, reviews: 596, options: option, size: "xs", onAddToCart: function () { }, onClick: function () { }, batch: {
|
|
53
245
|
label: "Special",
|
|
54
246
|
color: "red",
|
|
55
247
|
} })));
|
|
@@ -0,0 +1,35 @@
|
|
|
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;
|
|
@@ -0,0 +1,37 @@
|
|
|
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;
|