pixelize-design-library 2.4.1-beta.1 → 2.4.1

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.
Files changed (157) hide show
  1. package/package.json +2 -2
  2. package/dist/App.d.ts +0 -4
  3. package/dist/App.js +0 -95
  4. package/dist/Layout.d.ts +0 -3
  5. package/dist/Layout.js +0 -286
  6. package/dist/Pages/TInput.d.ts +0 -3
  7. package/dist/Pages/TInput.d.ts.map +0 -1
  8. package/dist/Pages/TInput.js +0 -20
  9. package/dist/Pages/accordion.d.ts +0 -3
  10. package/dist/Pages/accordion.d.ts.map +0 -1
  11. package/dist/Pages/accordion.js +0 -21
  12. package/dist/Pages/alertdialog.d.ts +0 -3
  13. package/dist/Pages/alertdialog.d.ts.map +0 -1
  14. package/dist/Pages/alertdialog.js +0 -53
  15. package/dist/Pages/button.d.ts +0 -3
  16. package/dist/Pages/button.d.ts.map +0 -1
  17. package/dist/Pages/button.js +0 -32
  18. package/dist/Pages/card.d.ts +0 -3
  19. package/dist/Pages/card.d.ts.map +0 -1
  20. package/dist/Pages/card.js +0 -102
  21. package/dist/Pages/chart.d.ts +0 -4
  22. package/dist/Pages/chart.d.ts.map +0 -1
  23. package/dist/Pages/chart.js +0 -25
  24. package/dist/Pages/checkbox.d.ts +0 -3
  25. package/dist/Pages/checkbox.d.ts.map +0 -1
  26. package/dist/Pages/checkbox.js +0 -11
  27. package/dist/Pages/contactForm.d.ts +0 -3
  28. package/dist/Pages/contactForm.d.ts.map +0 -1
  29. package/dist/Pages/contactForm.js +0 -15
  30. package/dist/Pages/customModulesTable.d.ts +0 -4
  31. package/dist/Pages/customModulesTable.d.ts.map +0 -1
  32. package/dist/Pages/customModulesTable.js +0 -25
  33. package/dist/Pages/datePick.d.ts +0 -3
  34. package/dist/Pages/datePick.d.ts.map +0 -1
  35. package/dist/Pages/datePick.js +0 -49
  36. package/dist/Pages/drawer.d.ts +0 -3
  37. package/dist/Pages/drawer.d.ts.map +0 -1
  38. package/dist/Pages/drawer.js +0 -53
  39. package/dist/Pages/dropdown.d.ts +0 -3
  40. package/dist/Pages/dropdown.d.ts.map +0 -1
  41. package/dist/Pages/dropdown.js +0 -21
  42. package/dist/Pages/editor.d.ts +0 -3
  43. package/dist/Pages/editor.d.ts.map +0 -1
  44. package/dist/Pages/editor.js +0 -13
  45. package/dist/Pages/feedback.d.ts +0 -2
  46. package/dist/Pages/feedback.d.ts.map +0 -1
  47. package/dist/Pages/feedback.js +0 -12
  48. package/dist/Pages/fileUpload.d.ts +0 -2
  49. package/dist/Pages/fileUpload.d.ts.map +0 -1
  50. package/dist/Pages/fileUpload.js +0 -36
  51. package/dist/Pages/input.d.ts +0 -3
  52. package/dist/Pages/input.d.ts.map +0 -1
  53. package/dist/Pages/input.js +0 -48
  54. package/dist/Pages/kanbanboard.d.ts +0 -3
  55. package/dist/Pages/kanbanboard.d.ts.map +0 -1
  56. package/dist/Pages/kanbanboard.js +0 -182
  57. package/dist/Pages/modal.d.ts +0 -3
  58. package/dist/Pages/modal.d.ts.map +0 -1
  59. package/dist/Pages/modal.js +0 -61
  60. package/dist/Pages/multiSelect.d.ts +0 -3
  61. package/dist/Pages/multiSelect.d.ts.map +0 -1
  62. package/dist/Pages/multiSelect.js +0 -22
  63. package/dist/Pages/noteArea.d.ts +0 -3
  64. package/dist/Pages/noteArea.d.ts.map +0 -1
  65. package/dist/Pages/noteArea.js +0 -26
  66. package/dist/Pages/notification.d.ts +0 -3
  67. package/dist/Pages/notification.d.ts.map +0 -1
  68. package/dist/Pages/notification.js +0 -37
  69. package/dist/Pages/numberInput.d.ts +0 -3
  70. package/dist/Pages/numberInput.d.ts.map +0 -1
  71. package/dist/Pages/numberInput.js +0 -16
  72. package/dist/Pages/orgSwitcher.d.ts +0 -4
  73. package/dist/Pages/orgSwitcher.d.ts.map +0 -1
  74. package/dist/Pages/orgSwitcher.js +0 -36
  75. package/dist/Pages/organizationDetails.d.ts +0 -4
  76. package/dist/Pages/organizationDetails.d.ts.map +0 -1
  77. package/dist/Pages/organizationDetails.js +0 -64
  78. package/dist/Pages/photoViewer.d.ts +0 -3
  79. package/dist/Pages/photoViewer.d.ts.map +0 -1
  80. package/dist/Pages/photoViewer.js +0 -12
  81. package/dist/Pages/pinInputs.d.ts +0 -3
  82. package/dist/Pages/pinInputs.d.ts.map +0 -1
  83. package/dist/Pages/pinInputs.js +0 -11
  84. package/dist/Pages/productCaard.d.ts +0 -3
  85. package/dist/Pages/productCaard.d.ts.map +0 -1
  86. package/dist/Pages/productCaard.js +0 -311
  87. package/dist/Pages/productDetailCard.d.ts +0 -3
  88. package/dist/Pages/productDetailCard.d.ts.map +0 -1
  89. package/dist/Pages/productDetailCard.js +0 -78
  90. package/dist/Pages/productFilter.d.ts +0 -3
  91. package/dist/Pages/productFilter.d.ts.map +0 -1
  92. package/dist/Pages/productFilter.js +0 -148
  93. package/dist/Pages/progressbar.d.ts +0 -3
  94. package/dist/Pages/progressbar.d.ts.map +0 -1
  95. package/dist/Pages/progressbar.js +0 -11
  96. package/dist/Pages/radioButton.d.ts +0 -3
  97. package/dist/Pages/radioButton.d.ts.map +0 -1
  98. package/dist/Pages/radioButton.js +0 -18
  99. package/dist/Pages/rolesPermission.d.ts +0 -4
  100. package/dist/Pages/rolesPermission.d.ts.map +0 -1
  101. package/dist/Pages/rolesPermission.js +0 -144
  102. package/dist/Pages/search.d.ts +0 -3
  103. package/dist/Pages/search.d.ts.map +0 -1
  104. package/dist/Pages/search.js +0 -21
  105. package/dist/Pages/searchSelect.d.ts +0 -3
  106. package/dist/Pages/searchSelect.d.ts.map +0 -1
  107. package/dist/Pages/searchSelect.js +0 -97
  108. package/dist/Pages/select.d.ts +0 -3
  109. package/dist/Pages/select.d.ts.map +0 -1
  110. package/dist/Pages/select.js +0 -20
  111. package/dist/Pages/selectSearch.d.ts +0 -3
  112. package/dist/Pages/selectSearch.d.ts.map +0 -1
  113. package/dist/Pages/selectSearch.js +0 -58
  114. package/dist/Pages/signInActivityTable.d.ts +0 -4
  115. package/dist/Pages/signInActivityTable.d.ts.map +0 -1
  116. package/dist/Pages/signInActivityTable.js +0 -17
  117. package/dist/Pages/skeleton.d.ts +0 -3
  118. package/dist/Pages/skeleton.d.ts.map +0 -1
  119. package/dist/Pages/skeleton.js +0 -12
  120. package/dist/Pages/stageProgress.d.ts +0 -4
  121. package/dist/Pages/stageProgress.d.ts.map +0 -1
  122. package/dist/Pages/stageProgress.js +0 -31
  123. package/dist/Pages/switch.d.ts +0 -3
  124. package/dist/Pages/switch.d.ts.map +0 -1
  125. package/dist/Pages/switch.js +0 -17
  126. package/dist/Pages/table.d.ts +0 -3
  127. package/dist/Pages/table.d.ts.map +0 -1
  128. package/dist/Pages/table.js +0 -182
  129. package/dist/Pages/tag.d.ts +0 -3
  130. package/dist/Pages/tag.d.ts.map +0 -1
  131. package/dist/Pages/tag.js +0 -27
  132. package/dist/Pages/textArea.d.ts +0 -3
  133. package/dist/Pages/textArea.d.ts.map +0 -1
  134. package/dist/Pages/textArea.js +0 -14
  135. package/dist/Pages/tier1.d.ts +0 -4
  136. package/dist/Pages/tier1.d.ts.map +0 -1
  137. package/dist/Pages/tier1.js +0 -86
  138. package/dist/Pages/timeline.d.ts +0 -3
  139. package/dist/Pages/timeline.d.ts.map +0 -1
  140. package/dist/Pages/timeline.js +0 -73
  141. package/dist/Pages/tooltip.d.ts +0 -3
  142. package/dist/Pages/tooltip.d.ts.map +0 -1
  143. package/dist/Pages/tooltip.js +0 -11
  144. package/dist/Pages/toster.d.ts +0 -3
  145. package/dist/Pages/toster.d.ts.map +0 -1
  146. package/dist/Pages/toster.js +0 -53
  147. package/dist/Pages/upgradeButton.d.ts +0 -4
  148. package/dist/Pages/upgradeButton.d.ts.map +0 -1
  149. package/dist/Pages/upgradeButton.js +0 -17
  150. package/dist/Pages/userDetails.d.ts +0 -4
  151. package/dist/Pages/userDetails.d.ts.map +0 -1
  152. package/dist/Pages/userDetails.js +0 -79
  153. package/dist/Pages/verifyEmail.d.ts +0 -3
  154. package/dist/Pages/verifyEmail.d.ts.map +0 -1
  155. package/dist/Pages/verifyEmail.js +0 -17
  156. package/dist/bootstrap.d.ts +0 -2
  157. package/dist/bootstrap.js +0 -16
@@ -1,311 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const ProductCard_1 = __importDefault(require("../Components/ProductCard/ProductCard"));
8
- const react_1 = require("@chakra-ui/react");
9
- const productCaard = () => {
10
- const Products = [
11
- {
12
- "productId": 12,
13
- "label": "hello",
14
- "description": "hh",
15
- "batch": {
16
- "color": "red",
17
- "label": "nh"
18
- },
19
- "tags": [],
20
- "rating": 1,
21
- "reviews": 0,
22
- "images": [
23
- {
24
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg",
25
- "imageId": 9,
26
- "order": 4,
27
- "isImage": true
28
- },
29
- // {
30
- // "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376124/main_sweets/1763376123548-Mothichoor%20%281%29.jpg",
31
- // "imageId": 10,
32
- // "order": 5
33
- // }
34
- ],
35
- "options": [
36
- {
37
- "var_id": 6,
38
- "unit": 2,
39
- "label": "hho",
40
- "offer": 5,
41
- "price": 800,
42
- "weight": 200,
43
- "offerPrice": "475",
44
- "stocks": 2
45
- },
46
- // {
47
- // "var_id": 7,
48
- // "unit": 2,
49
- // "label": "hho",
50
- // "offer": 5,
51
- // "price": 600,
52
- // "weight": 200,
53
- // "offerPrice": "475",
54
- // "stocks": 5
55
- // },
56
- // {
57
- // "var_id": 8,
58
- // "unit": 2,
59
- // "label": "hho",
60
- // "offer": 5,
61
- // "price": 400,
62
- // "weight": 200,
63
- // "offerPrice": "475",
64
- // "stocks": 5
65
- // },
66
- ]
67
- },
68
- {
69
- "productId": 13,
70
- "label": "hellovideo",
71
- "description": "hh",
72
- "batch": {
73
- "color": "red",
74
- "label": "nh"
75
- },
76
- "tags": [
77
- "hwnjncdsncidjncsdncsjncjnvjnvjsnvjnsdvkjnsdvkjnsdvkjnsdvkjn", "jbjkbjbj"
78
- ],
79
- "rating": 2,
80
- "reviews": 0,
81
- "images": [
82
- {
83
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg",
84
- "imageId": 9,
85
- "order": 4,
86
- "isImage": true
87
- }, {
88
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376124/main_sweets/1763376123548-Mothichoor%20%281%29.jpg",
89
- "imageId": 10,
90
- "order": 5,
91
- "isImage": false
92
- }
93
- ],
94
- "options": [
95
- {
96
- "var_id": 6,
97
- "unit": 2,
98
- "label": "hhhgbjhbjhbjhbkjbkjnkjnkjbkjbkjbkjbjhvjhvbjhvjhvjhvjhvo",
99
- "offer": 5,
100
- "price": 800,
101
- "weight": 200,
102
- "offerPrice": "475",
103
- "stocks": 2
104
- },
105
- {
106
- "var_id": 7,
107
- "unit": 2,
108
- "label": "hho",
109
- "offer": 5,
110
- "price": 600,
111
- "weight": 200,
112
- "offerPrice": "475",
113
- "stocks": 5
114
- },
115
- {
116
- "var_id": 8,
117
- "unit": 2,
118
- "label": "hho",
119
- "offer": 5,
120
- "price": 400,
121
- "weight": 200,
122
- "offerPrice": "475",
123
- "stocks": 5
124
- },
125
- ]
126
- },
127
- {
128
- "productId": 14,
129
- "label": "hello",
130
- "description": "hh",
131
- "batch": {
132
- "color": "red",
133
- "label": "nh"
134
- },
135
- "tags": [
136
- "hw", "new"
137
- ],
138
- "rating": 3,
139
- "reviews": 0,
140
- "images": [
141
- {
142
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg",
143
- "imageId": 9,
144
- "order": 4,
145
- "isImage": true
146
- }, {
147
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376124/main_sweets/1763376123548-Mothichoor%20%281%29.jpg",
148
- "imageId": 10,
149
- "order": 5,
150
- "isImage": true
151
- }
152
- ],
153
- "options": [
154
- {
155
- "var_id": 6,
156
- "unit": 2,
157
- "label": "hho",
158
- "offer": 5,
159
- "price": 800,
160
- "weight": 200,
161
- "offerPrice": "475",
162
- "stocks": 2
163
- },
164
- {
165
- "var_id": 7,
166
- "unit": 2,
167
- "label": "hho",
168
- "offer": 5,
169
- "price": 600,
170
- "weight": 200,
171
- "offerPrice": "475",
172
- "stocks": 5
173
- },
174
- {
175
- "var_id": 8,
176
- "unit": 2,
177
- "label": "hho",
178
- "offer": 5,
179
- "price": 400,
180
- "weight": 200,
181
- "offerPrice": "475",
182
- "stocks": 5
183
- },
184
- ]
185
- },
186
- {
187
- "productId": 15,
188
- "label": "hello",
189
- "description": "hh",
190
- "batch": {
191
- "color": "red",
192
- "label": "nh"
193
- },
194
- "tags": [
195
- "hw", "new", "featured"
196
- ],
197
- "rating": 4.5,
198
- "reviews": 120,
199
- "images": [
200
- {
201
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376124/main_sweets/1763376123548-Mothichoor%20%281%29.jpg",
202
- "imageId": 11,
203
- "order": 4,
204
- "isImage": true
205
- },
206
- {
207
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg",
208
- "imageId": 12,
209
- "order": 5,
210
- "isImage": true
211
- }
212
- ],
213
- "options": [
214
- {
215
- "var_id": 9,
216
- "unit": 2,
217
- "label": "hho",
218
- "offer": 5,
219
- "price": 900,
220
- "weight": 200,
221
- "offerPrice": "475",
222
- "stocks": 5
223
- },
224
- {
225
- "var_id": 10,
226
- "unit": 2,
227
- "label": "hho",
228
- "offer": 5,
229
- "price": 700,
230
- "weight": 200,
231
- "offerPrice": "475",
232
- "stocks": 4
233
- },
234
- {
235
- "var_id": 11,
236
- "unit": 2,
237
- "label": "hho",
238
- "offer": 5,
239
- "price": 200,
240
- "weight": 200,
241
- "offerPrice": "475",
242
- "stocks": 0
243
- },
244
- ]
245
- },
246
- {
247
- "productId": 16,
248
- "label": "hello",
249
- "description": "hh",
250
- "batch": {
251
- "color": "red",
252
- "label": "nh"
253
- },
254
- "tags": [
255
- "hw", "new", "featured", "popular"
256
- ],
257
- "rating": 4,
258
- "reviews": 120,
259
- "images": [
260
- {
261
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376124/main_sweets/1763376123548-Mothichoor%20%281%29.jpg",
262
- "imageId": 11,
263
- "order": 4,
264
- "isImage": true
265
- },
266
- {
267
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg",
268
- "imageId": 12,
269
- "order": 5,
270
- "isImage": true
271
- }
272
- ],
273
- "options": [
274
- {
275
- "var_id": 9,
276
- "unit": 2,
277
- "label": "hho",
278
- "offer": 5,
279
- "price": 900,
280
- "weight": 200,
281
- "offerPrice": "475",
282
- "stocks": 5
283
- },
284
- {
285
- "var_id": 10,
286
- "unit": 2,
287
- "label": "hho",
288
- "offer": 5,
289
- "price": 700,
290
- "weight": 200,
291
- "offerPrice": "475",
292
- "stocks": 4
293
- },
294
- {
295
- "var_id": 11,
296
- "unit": 2,
297
- "label": "hho",
298
- "offer": 5,
299
- "price": 200,
300
- "weight": 200,
301
- "offerPrice": "475",
302
- "stocks": 0
303
- },
304
- ]
305
- }
306
- ];
307
- return ((0, jsx_runtime_1.jsx)(react_1.SimpleGrid, { columns: { base: 2, md: 3, lg: 4 }, spacing: 6, children: Products.map((product) => ((0, jsx_runtime_1.jsx)(ProductCard_1.default, { id: product.productId, label: product.label, productImage: product.images, description: product.description, options: product.options, batch: product.batch, tags: product.tags, rating: product.rating, reviews: product.reviews, addToCart: true,
308
- // isQtyEditable={true}
309
- displayRating: false, onAddToCart: (id, var_id, qty) => console.log('Add to cart:', id, var_id, qty), onNotifyMe: (id, var_id) => console.log('notify', id, var_id) }, product.productId))) }));
310
- };
311
- exports.default = productCaard;
@@ -1,3 +0,0 @@
1
- declare const ProductDetailCard: () => import("react/jsx-runtime").JSX.Element;
2
- export default ProductDetailCard;
3
- //# sourceMappingURL=productDetailCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productDetailCard.d.ts","sourceRoot":"","sources":["../../src/Pages/productDetailCard.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,iBAAiB,+CA0FtB,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const ProductDetails_1 = __importDefault(require("../Components/ProductDetails/ProductDetails"));
8
- const ProductDetailCard = () => {
9
- const Product = {
10
- "productId": 12,
11
- "label": "hello",
12
- "description": "Prepared using time-honored recipes, our Traditional Laddu – Special is made with carefully selected ingredients, slow-roasted to perfection and blended with pure ghee. Each laddu is hand-crafted to deliver rich aroma, authentic taste, and melt-in-the-mouth texture. Free from artificial colors and preservatives, this special laddu reflects the true essence of traditional Indian sweets, perfect for festivals, celebrations, and gifting.",
13
- "category": "sweets",
14
- "batch": {
15
- "color": "red",
16
- "label": "normal"
17
- },
18
- "tags": [
19
- "hw"
20
- ],
21
- "images": [
22
- {
23
- "imageUrl": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg",
24
- "imageId": 9,
25
- "order": 4,
26
- "isImage": true
27
- },
28
- {
29
- "imageUrl": "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4",
30
- "imageId": 10,
31
- "order": 5,
32
- "isImage": false,
33
- "thumb": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg"
34
- },
35
- {
36
- "imageUrl": "https://www.youtube.com/watch?v=xp2by5790OE",
37
- "imageId": 11,
38
- "order": 52,
39
- "isImage": false,
40
- // "thumb": "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1763376123/main_sweets/1763376123173-Motichoorladdu.jpg"
41
- }
42
- ],
43
- "options": [
44
- {
45
- "var_id": 6,
46
- "unit": 2,
47
- "label": "hho",
48
- "offer": 5,
49
- "price": 800,
50
- "weight": 200,
51
- "offerPrice": "475",
52
- "stocks": 2
53
- },
54
- {
55
- "var_id": 7,
56
- "unit": 2,
57
- "label": "hho",
58
- "offer": 5,
59
- "price": 600,
60
- "weight": 200,
61
- "offerPrice": "475",
62
- "stocks": 5
63
- },
64
- {
65
- "var_id": 8,
66
- "unit": 2,
67
- "label": "hho",
68
- "offer": 5,
69
- "price": 400,
70
- "weight": 200,
71
- "offerPrice": "475",
72
- "stocks": 0
73
- },
74
- ]
75
- };
76
- return ((0, jsx_runtime_1.jsx)(ProductDetails_1.default, { id: Product.productId, price: Product === null || Product === void 0 ? void 0 : Product.options, label: Product === null || Product === void 0 ? void 0 : Product.label, shortdesc: Product === null || Product === void 0 ? void 0 : Product.description, tags: Product === null || Product === void 0 ? void 0 : Product.tags, rating: 4.5, reviews: 120, displayRating: false, images: Product === null || Product === void 0 ? void 0 : Product.images, batch: Product === null || Product === void 0 ? void 0 : Product.batch, addToCart: true, notifyMe: true, onAddToCart: (id, var_id, qty) => console.log('detail add', id, var_id, qty), onNotifyMe: (id, var_id) => console.log('detail notify', id, var_id) }));
77
- };
78
- exports.default = ProductDetailCard;
@@ -1,3 +0,0 @@
1
- declare const ProductFilterPage: () => import("react/jsx-runtime").JSX.Element;
2
- export default ProductFilterPage;
3
- //# sourceMappingURL=productFilter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productFilter.d.ts","sourceRoot":"","sources":["../../src/Pages/productFilter.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,iBAAiB,+CAgMtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,148 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_1 = require("react");
8
- const react_2 = require("@chakra-ui/react");
9
- const ProductCard_1 = __importDefault(require("../Components/ProductCard/ProductCard"));
10
- const FilterSidebar_1 = __importDefault(require("../Components/FilterSidebar/FilterSidebar"));
11
- const Button_1 = __importDefault(require("../Components/Button/Button"));
12
- const lucide_react_1 = require("lucide-react");
13
- const ProductFilterPage = () => {
14
- const [filters, setFilters] = (0, react_1.useState)({});
15
- const sections = [
16
- {
17
- id: "features",
18
- label: "Features bjhgjgkjgkjkjkj",
19
- initiallyExpanded: true,
20
- options: [
21
- { id: "eggless", label: "Eggless" },
22
- { id: "sugar_free", label: "Sugar Free" },
23
- { id: "freshly_made", label: "Freshly Made" },
24
- { id: "gift_pack", label: "Gift Pack" },
25
- ],
26
- },
27
- {
28
- id: "brand",
29
- label: "Category",
30
- searchable: true,
31
- checkboxes: true,
32
- initiallyExpanded: true,
33
- options: [
34
- { id: "sweets", label: "Sweets" },
35
- { id: "cakes", label: "Cakes" },
36
- { id: "bakery", label: "Bakery" },
37
- ],
38
- },
39
- {
40
- id: "hairType",
41
- label: "Type of Sweet",
42
- radio: true,
43
- initiallyExpanded: true,
44
- options: [
45
- { id: "milk_based", label: "Milk Based" },
46
- { id: "ghee", label: "Ghee" },
47
- { id: "dry_fruits", label: "Dry Fruits" },
48
- ],
49
- },
50
- {
51
- id: "availability",
52
- label: "Availability",
53
- initiallyExpanded: true,
54
- options: [
55
- { id: "in_stock", label: "In Stock" },
56
- { id: "out_of_stock", label: "Out of Stock" },
57
- ],
58
- },
59
- {
60
- id: "price",
61
- label: "Price",
62
- range: { min: 0, max: 1000, step: 100, values: [0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000], unit: "₹" },
63
- initiallyExpanded: true,
64
- },
65
- {
66
- id: "rating",
67
- label: "Customer Reviews",
68
- radio: true,
69
- initiallyExpanded: true,
70
- options: [
71
- { id: "4", label: "4" },
72
- { id: "3", label: "3" },
73
- { id: "2", label: "2" },
74
- { id: "1", label: "1" },
75
- ],
76
- },
77
- ];
78
- // eslint-disable-next-line
79
- const products = [
80
- {
81
- id: 1,
82
- label: "Mysore Pak",
83
- description: "Classic ghee-rich sweet",
84
- productImage: [{ imageUrl: "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1768976723/main_sweets/1768976723212-4J7A2875.jpg", imageId: 1, order: 1 }],
85
- tags: ["ghee", "sweets", "freshly_made", "muthu_kavitha"],
86
- rating: 4.7,
87
- reviews: 1200,
88
- options: [{ var_id: 11, label: "Default", price: 250, offer: 10, weight: 200, stocks: 12 }],
89
- avalabilitys: true,
90
- addToCart: true,
91
- batch: { color: "red", label: "Classic " }
92
- },
93
- {
94
- id: 2,
95
- label: "Laddu Assortment",
96
- description: "Dry fruit laddus",
97
- productImage: [{ imageUrl: "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1768976340/main_sweets/1768976340242-4J7A3163%20%281%29.webp", imageId: 2, order: 1 }],
98
- tags: ["dry_fruits", "sweets", "gift_pack", "signature"],
99
- rating: 4.5,
100
- reviews: 800,
101
- options: [{ var_id: 21, label: "Default", price: 450, offer: 5, weight: 300, stocks: 5 }],
102
- avalabilitys: true,
103
- addToCart: true,
104
- batch: { color: "red", label: "Classic " }
105
- },
106
- {
107
- id: 3,
108
- label: "Eggless Black Forest Cake",
109
- description: "Chocolate sponge with cherries",
110
- productImage: [{ imageUrl: "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1768987701/main_sweets/1768987700430-Ellu-laddu.jpg", imageId: 3, order: 1 }],
111
- tags: ["eggless", "milk_based", "cakes", "chef_special"],
112
- rating: 4.6,
113
- reviews: 1500,
114
- options: [{ var_id: 31, label: "Default", price: 699, offer: 0, weight: 500, stocks: 3 }],
115
- avalabilitys: true,
116
- addToCart: true,
117
- batch: { color: "red", label: "Classic " }
118
- },
119
- ];
120
- const asArray = (v) => Array.isArray(v) ? v : v ? [String(v)] : [];
121
- const filteredProducts = (0, react_1.useMemo)(() => {
122
- return products.filter((p) => {
123
- var _a;
124
- const availOk = asArray(filters.availability).length === 0 ||
125
- asArray(filters.availability).includes(p.avalabilitys ? "in_stock" : "out_of_stock");
126
- const featureOk = asArray(filters.features).length === 0 || (p.tags || []).some((t) => asArray(filters.features).includes(t));
127
- const hairOk = asArray(filters.hairType).length === 0 || (p.tags || []).some((t) => asArray(filters.hairType).includes(t));
128
- const brandOk = asArray(filters.brand).length === 0 || (p.tags || []).some((t) => asArray(filters.brand).includes(t));
129
- const minRatingStr = asArray(filters.rating)[0];
130
- const minRating = minRatingStr ? Number(minRatingStr) : undefined;
131
- const numericRating = typeof p.rating === "number" ? p.rating : Number((_a = p.rating) !== null && _a !== void 0 ? _a : 0);
132
- const ratingOk = minRating === undefined ? true : numericRating >= minRating;
133
- const priceRange = filters.price;
134
- const priceOk = !priceRange || priceRange.length !== 2
135
- ? true
136
- : (p.options && p.options.length ? p.options[0].price >= priceRange[0] && p.options[0].price <= priceRange[1] : true);
137
- return availOk && featureOk && hairOk && brandOk && ratingOk && priceOk;
138
- });
139
- }, [filters, products]);
140
- const handleFilterChange = (newFilters) => {
141
- console.log(newFilters);
142
- setFilters(newFilters);
143
- };
144
- return ((0, jsx_runtime_1.jsx)(react_2.Box, { p: 4, children: (0, jsx_runtime_1.jsxs)(react_2.Flex, { gap: 6, align: "start", children: [(0, jsx_runtime_1.jsx)(Button_1.default, { size: "xs", variant: "outline", leftIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 12 }), onClick: () => setFilters({}), children: "Clear All" }), (0, jsx_runtime_1.jsx)(react_2.Box, { flexShrink: 0, children: (0, jsx_runtime_1.jsx)(FilterSidebar_1.default, { sidebarOptions: sections, selected: filters, onChange: handleFilterChange, width: 180, containerPadding: 4, panelPadding: 2,
145
- // variant="cards"
146
- clearAllButton: true, onClearAllHandler: () => setFilters({}) }) }), (0, jsx_runtime_1.jsxs)(react_2.Box, { flex: "1", children: [(0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xl", fontWeight: "bold", mb: 4, children: ["Products (", filteredProducts.length, ")"] }), filteredProducts.length > 0 ? ((0, jsx_runtime_1.jsx)(react_2.SimpleGrid, { columns: { base: 1, md: 2, lg: 3 }, spacing: 6, children: filteredProducts.map((product) => ((0, jsx_runtime_1.jsx)(ProductCard_1.default, { ...product, onAddToCart: (id, var_id, qty) => console.log('Add to cart:', id, var_id, qty) }, product.id))) })) : ((0, jsx_runtime_1.jsx)(react_2.Box, { p: 8, textAlign: "center", border: "1px dashed", borderColor: "gray.300", borderRadius: "md", children: (0, jsx_runtime_1.jsx)(react_2.Text, { color: "gray.500", children: "No products match your selection." }) }))] })] }) }));
147
- };
148
- exports.default = ProductFilterPage;
@@ -1,3 +0,0 @@
1
- declare const ProgressbarPage: () => import("react/jsx-runtime").JSX.Element;
2
- export default ProgressbarPage;
3
- //# sourceMappingURL=progressbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"progressbar.d.ts","sourceRoot":"","sources":["../../src/Pages/progressbar.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,+CAMpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const ProgressBar_1 = __importDefault(require("../Components/ProgressBar/ProgressBar"));
8
- const ProgressbarPage = () => {
9
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ProgressBar_1.default, { min: 10, max: 0, isIndeterminate: true, size: "xs" }) }));
10
- };
11
- exports.default = ProgressbarPage;
@@ -1,3 +0,0 @@
1
- declare const RadioButtonPage: () => import("react/jsx-runtime").JSX.Element;
2
- export default RadioButtonPage;
3
- //# sourceMappingURL=radioButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radioButton.d.ts","sourceRoot":"","sources":["../../src/Pages/radioButton.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,eAAe,+CA0BpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const RadioButton_1 = require("../Components/RadioButton/RadioButton");
6
- const RadioButtonPage = () => {
7
- const [selectedValue, setSelectedValue] = (0, react_1.useState)("1");
8
- const radioOptions = [
9
- { label: "Option 1", id: "1" },
10
- { label: "Option 2", id: "2" },
11
- { label: "Option 3", id: "3" },
12
- ];
13
- const handleChange = (value) => {
14
- setSelectedValue(value);
15
- };
16
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(RadioButton_1.RadioButton, { label: "dinesh" }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(RadioButton_1.RadioButtonGroup, { options: radioOptions, value: selectedValue, onChange: handleChange, colorScheme: "blue", size: "md" })] }));
17
- };
18
- exports.default = RadioButtonPage;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const RolesPermissionPage: React.FC;
3
- export default RolesPermissionPage;
4
- //# sourceMappingURL=rolesPermission.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolesPermission.d.ts","sourceRoot":"","sources":["../../src/Pages/rolesPermission.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA4EjD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAuGhC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}