pixelize-design-library 2.3.1-beta.1 → 2.3.1-beta.2

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 (303) hide show
  1. package/package.json +1 -1
  2. package/dist/App.d.ts +0 -4
  3. package/dist/App.js +0 -131
  4. package/dist/Components/Table/CompactSelect.d.ts +0 -15
  5. package/dist/Components/Table/CompactSelect.js +0 -69
  6. package/dist/Components/Table/Components/ActiveFilters.d.ts +0 -9
  7. package/dist/Components/Table/Components/ActiveFilters.js +0 -132
  8. package/dist/Components/Table/Components/TableFilters.d.ts +0 -7
  9. package/dist/Components/Table/Components/TableFilters.js +0 -89
  10. package/dist/Components/Table/Components/useDebounce.d.ts +0 -2
  11. package/dist/Components/Table/Components/useDebounce.js +0 -28
  12. package/dist/Components/Table/Components/useTable.d.ts +0 -47
  13. package/dist/Components/Table/Components/useTable.js +0 -219
  14. package/dist/Components/Table/LeftFilterPane.d.ts +0 -36
  15. package/dist/Components/Table/LeftFilterPane.js +0 -273
  16. package/dist/Components/Table/SelectOperationControls.d.ts +0 -8
  17. package/dist/Components/Table/SelectOperationControls.js +0 -15
  18. package/dist/Components/Table/TableSettings/ManageColumns.d.ts +0 -12
  19. package/dist/Components/Table/TableSettings/ManageColumns.js +0 -166
  20. package/dist/Components/Table/TableSettings/ManageColumns.test.d.ts +0 -1
  21. package/dist/Components/Table/TableSettings/ManageColumns.test.js +0 -146
  22. package/dist/Components/Table/TableSettings/TableFilters.d.ts +0 -10
  23. package/dist/Components/Table/TableSettings/TableFilters.js +0 -69
  24. package/dist/Components/Table/TableSettings/TableFilters.test.d.ts +0 -1
  25. package/dist/Components/Table/TableSettings/TableFilters.test.js +0 -109
  26. package/dist/Components/Table/TableSettings/TableSettings.d.ts +0 -8
  27. package/dist/Components/Table/TableSettings/TableSettings.js +0 -141
  28. package/dist/Components/Table/TableToDo.d.ts +0 -2
  29. package/dist/Components/Table/TableToDo.js +0 -291
  30. package/dist/Components/Table/TextOperationControls.d.ts +0 -12
  31. package/dist/Components/Table/TextOperationControls.js +0 -29
  32. package/dist/Layout.d.ts +0 -3
  33. package/dist/Layout.js +0 -292
  34. package/dist/Pages/TInput.d.ts +0 -3
  35. package/dist/Pages/TInput.js +0 -56
  36. package/dist/Pages/accordion.d.ts +0 -3
  37. package/dist/Pages/accordion.js +0 -42
  38. package/dist/Pages/alertdialog.d.ts +0 -3
  39. package/dist/Pages/alertdialog.js +0 -54
  40. package/dist/Pages/button.d.ts +0 -3
  41. package/dist/Pages/button.js +0 -46
  42. package/dist/Pages/card.d.ts +0 -3
  43. package/dist/Pages/card.js +0 -117
  44. package/dist/Pages/chart.d.ts +0 -4
  45. package/dist/Pages/chart.js +0 -40
  46. package/dist/Pages/checkbox.d.ts +0 -3
  47. package/dist/Pages/checkbox.js +0 -12
  48. package/dist/Pages/contactForm.d.ts +0 -3
  49. package/dist/Pages/contactForm.js +0 -16
  50. package/dist/Pages/datePick.d.ts +0 -3
  51. package/dist/Pages/datePick.js +0 -88
  52. package/dist/Pages/drawer.d.ts +0 -3
  53. package/dist/Pages/drawer.js +0 -58
  54. package/dist/Pages/dropdown.d.ts +0 -3
  55. package/dist/Pages/dropdown.js +0 -24
  56. package/dist/Pages/editor.d.ts +0 -3
  57. package/dist/Pages/editor.js +0 -14
  58. package/dist/Pages/feedback.d.ts +0 -2
  59. package/dist/Pages/feedback.js +0 -15
  60. package/dist/Pages/fileUpload.d.ts +0 -2
  61. package/dist/Pages/fileUpload.js +0 -82
  62. package/dist/Pages/input.d.ts +0 -3
  63. package/dist/Pages/input.js +0 -92
  64. package/dist/Pages/kanbanboard.d.ts +0 -3
  65. package/dist/Pages/kanbanboard.js +0 -224
  66. package/dist/Pages/modal.d.ts +0 -3
  67. package/dist/Pages/modal.js +0 -65
  68. package/dist/Pages/multiSelect.d.ts +0 -3
  69. package/dist/Pages/multiSelect.js +0 -55
  70. package/dist/Pages/noteArea.d.ts +0 -3
  71. package/dist/Pages/noteArea.js +0 -59
  72. package/dist/Pages/notification.d.ts +0 -3
  73. package/dist/Pages/notification.js +0 -25
  74. package/dist/Pages/numberInput.d.ts +0 -3
  75. package/dist/Pages/numberInput.js +0 -49
  76. package/dist/Pages/photoViewer.d.ts +0 -3
  77. package/dist/Pages/photoViewer.js +0 -12
  78. package/dist/Pages/pinInputs.d.ts +0 -3
  79. package/dist/Pages/pinInputs.js +0 -12
  80. package/dist/Pages/productCaard.d.ts +0 -3
  81. package/dist/Pages/productCaard.js +0 -311
  82. package/dist/Pages/productDetailCard.d.ts +0 -3
  83. package/dist/Pages/productDetailCard.js +0 -78
  84. package/dist/Pages/productFilter.d.ts +0 -3
  85. package/dist/Pages/productFilter.js +0 -202
  86. package/dist/Pages/progressbar.d.ts +0 -3
  87. package/dist/Pages/progressbar.js +0 -12
  88. package/dist/Pages/radioButton.d.ts +0 -3
  89. package/dist/Pages/radioButton.js +0 -54
  90. package/dist/Pages/search.d.ts +0 -3
  91. package/dist/Pages/search.js +0 -54
  92. package/dist/Pages/searchSelect.d.ts +0 -3
  93. package/dist/Pages/searchSelect.js +0 -133
  94. package/dist/Pages/select.d.ts +0 -3
  95. package/dist/Pages/select.js +0 -53
  96. package/dist/Pages/selectSearch.d.ts +0 -3
  97. package/dist/Pages/selectSearch.js +0 -103
  98. package/dist/Pages/skeleton.d.ts +0 -3
  99. package/dist/Pages/skeleton.js +0 -22
  100. package/dist/Pages/switch.d.ts +0 -3
  101. package/dist/Pages/switch.js +0 -50
  102. package/dist/Pages/table.d.ts +0 -3
  103. package/dist/Pages/table.js +0 -174
  104. package/dist/Pages/textArea.d.ts +0 -3
  105. package/dist/Pages/textArea.js +0 -15
  106. package/dist/Pages/timeline.d.ts +0 -3
  107. package/dist/Pages/timeline.js +0 -74
  108. package/dist/Pages/tooltip.d.ts +0 -3
  109. package/dist/Pages/tooltip.js +0 -12
  110. package/dist/Pages/toster.d.ts +0 -3
  111. package/dist/Pages/toster.js +0 -68
  112. package/dist/Pages/verifyEmail.d.ts +0 -3
  113. package/dist/Pages/verifyEmail.js +0 -18
  114. package/dist/Theme/Dark/palette.d.ts +0 -370
  115. package/dist/Theme/Dark/palette.js +0 -372
  116. package/dist/bootstrap.d.ts +0 -1
  117. package/dist/bootstrap.js +0 -14
  118. package/dist/components-v2/AlertDialog/AlertDialog.d.ts +0 -23
  119. package/dist/components-v2/AlertDialog/AlertDialog.js +0 -98
  120. package/dist/components-v2/Breadcrumbs/Breadcrumbs.d.ts +0 -14
  121. package/dist/components-v2/Breadcrumbs/Breadcrumbs.js +0 -66
  122. package/dist/components-v2/Charts/AreaChart.d.ts +0 -23
  123. package/dist/components-v2/Charts/AreaChart.js +0 -63
  124. package/dist/components-v2/Charts/BarChart.d.ts +0 -25
  125. package/dist/components-v2/Charts/BarChart.js +0 -57
  126. package/dist/components-v2/Charts/LineChart.d.ts +0 -23
  127. package/dist/components-v2/Charts/LineChart.js +0 -55
  128. package/dist/components-v2/Charts/PieChart.d.ts +0 -15
  129. package/dist/components-v2/Charts/PieChart.js +0 -54
  130. package/dist/components-v2/Charts/PolarChart.d.ts +0 -14
  131. package/dist/components-v2/Charts/PolarChart.js +0 -54
  132. package/dist/components-v2/Charts/chartOptions.d.ts +0 -7
  133. package/dist/components-v2/Charts/chartOptions.js +0 -41
  134. package/dist/components-v2/Charts/useChartTheme.d.ts +0 -22
  135. package/dist/components-v2/Charts/useChartTheme.js +0 -106
  136. package/dist/components-v2/ContactForm/ContactForm.d.ts +0 -25
  137. package/dist/components-v2/ContactForm/ContactForm.js +0 -116
  138. package/dist/components-v2/DatePicker/Calendar.d.ts +0 -19
  139. package/dist/components-v2/DatePicker/Calendar.js +0 -212
  140. package/dist/components-v2/DatePicker/DatePicker.d.ts +0 -46
  141. package/dist/components-v2/DatePicker/DatePicker.js +0 -189
  142. package/dist/components-v2/DatePicker/TimePicker.d.ts +0 -12
  143. package/dist/components-v2/DatePicker/TimePicker.js +0 -105
  144. package/dist/components-v2/DatePicker/utils.d.ts +0 -31
  145. package/dist/components-v2/DatePicker/utils.js +0 -109
  146. package/dist/components-v2/Drawer/Drawer.d.ts +0 -27
  147. package/dist/components-v2/Drawer/Drawer.js +0 -132
  148. package/dist/components-v2/FeedbackForm/FeedbackForm.d.ts +0 -26
  149. package/dist/components-v2/FeedbackForm/FeedbackForm.js +0 -112
  150. package/dist/components-v2/FileUploader/FileUploader.d.ts +0 -28
  151. package/dist/components-v2/FileUploader/FileUploader.js +0 -127
  152. package/dist/components-v2/Input/TextInput.d.ts +0 -41
  153. package/dist/components-v2/Input/TextInput.js +0 -169
  154. package/dist/components-v2/KanbanBoard/KanbanBoard.d.ts +0 -39
  155. package/dist/components-v2/KanbanBoard/KanbanBoard.js +0 -101
  156. package/dist/components-v2/Layout/AppLayout.d.ts +0 -22
  157. package/dist/components-v2/Layout/AppLayout.js +0 -53
  158. package/dist/components-v2/Loading/Loading.d.ts +0 -19
  159. package/dist/components-v2/Loading/Loading.js +0 -55
  160. package/dist/components-v2/Modal/Modal.d.ts +0 -30
  161. package/dist/components-v2/Modal/Modal.js +0 -82
  162. package/dist/components-v2/NavigationBar/NavigationBar.d.ts +0 -47
  163. package/dist/components-v2/NavigationBar/NavigationBar.js +0 -148
  164. package/dist/components-v2/Notification/Notification.d.ts +0 -22
  165. package/dist/components-v2/Notification/Notification.js +0 -113
  166. package/dist/components-v2/NumberInput/NumberInput.d.ts +0 -37
  167. package/dist/components-v2/NumberInput/NumberInput.js +0 -210
  168. package/dist/components-v2/PinInput/PinInput.d.ts +0 -26
  169. package/dist/components-v2/PinInput/PinInput.js +0 -138
  170. package/dist/components-v2/ProfilePhotoViewer/ProfilePhotoViewer.d.ts +0 -18
  171. package/dist/components-v2/ProfilePhotoViewer/ProfilePhotoViewer.js +0 -91
  172. package/dist/components-v2/Select/Select.d.ts +0 -41
  173. package/dist/components-v2/Select/Select.js +0 -284
  174. package/dist/components-v2/Sidebar/Sidebar.d.ts +0 -41
  175. package/dist/components-v2/Sidebar/Sidebar.js +0 -182
  176. package/dist/components-v2/Slider/Slider.d.ts +0 -18
  177. package/dist/components-v2/Slider/Slider.js +0 -101
  178. package/dist/components-v2/Table/Table.d.ts +0 -7
  179. package/dist/components-v2/Table/Table.js +0 -172
  180. package/dist/components-v2/Table/TableProps.d.ts +0 -139
  181. package/dist/components-v2/Table/TableProps.js +0 -9
  182. package/dist/components-v2/Table/components/ActiveFilters.d.ts +0 -10
  183. package/dist/components-v2/Table/components/ActiveFilters.js +0 -70
  184. package/dist/components-v2/Table/components/BulkActionBar.d.ts +0 -11
  185. package/dist/components-v2/Table/components/BulkActionBar.js +0 -92
  186. package/dist/components-v2/Table/components/ColumnResizeHandle.d.ts +0 -7
  187. package/dist/components-v2/Table/components/ColumnResizeHandle.js +0 -41
  188. package/dist/components-v2/Table/components/Pagination.d.ts +0 -11
  189. package/dist/components-v2/Table/components/Pagination.js +0 -92
  190. package/dist/components-v2/Table/components/TableBody.d.ts +0 -23
  191. package/dist/components-v2/Table/components/TableBody.js +0 -69
  192. package/dist/components-v2/Table/components/TableCell.d.ts +0 -14
  193. package/dist/components-v2/Table/components/TableCell.js +0 -63
  194. package/dist/components-v2/Table/components/TableEmptyState.d.ts +0 -12
  195. package/dist/components-v2/Table/components/TableEmptyState.js +0 -55
  196. package/dist/components-v2/Table/components/TableErrorState.d.ts +0 -6
  197. package/dist/components-v2/Table/components/TableErrorState.js +0 -52
  198. package/dist/components-v2/Table/components/TableHeader.d.ts +0 -21
  199. package/dist/components-v2/Table/components/TableHeader.js +0 -94
  200. package/dist/components-v2/Table/components/TableRow.d.ts +0 -20
  201. package/dist/components-v2/Table/components/TableRow.js +0 -64
  202. package/dist/components-v2/Table/components/TableSearch.d.ts +0 -8
  203. package/dist/components-v2/Table/components/TableSearch.js +0 -47
  204. package/dist/components-v2/Table/filters/FilterChips.d.ts +0 -6
  205. package/dist/components-v2/Table/filters/FilterChips.js +0 -9
  206. package/dist/components-v2/Table/filters/LeftFilterPane.d.ts +0 -17
  207. package/dist/components-v2/Table/filters/LeftFilterPane.js +0 -105
  208. package/dist/components-v2/Table/filters/TableFilters.d.ts +0 -12
  209. package/dist/components-v2/Table/filters/TableFilters.js +0 -127
  210. package/dist/components-v2/Table/hooks/useColumnResize.d.ts +0 -15
  211. package/dist/components-v2/Table/hooks/useColumnResize.js +0 -104
  212. package/dist/components-v2/Table/hooks/useTable.d.ts +0 -58
  213. package/dist/components-v2/Table/hooks/useTable.js +0 -254
  214. package/dist/components-v2/Table/hooks/useTableKeyboard.d.ts +0 -25
  215. package/dist/components-v2/Table/hooks/useTableKeyboard.js +0 -112
  216. package/dist/components-v2/Table/hooks/useVirtualScroll.d.ts +0 -29
  217. package/dist/components-v2/Table/hooks/useVirtualScroll.js +0 -83
  218. package/dist/components-v2/Table/settings/ManageColumns.d.ts +0 -12
  219. package/dist/components-v2/Table/settings/ManageColumns.js +0 -59
  220. package/dist/components-v2/Table/settings/TableSettings.d.ts +0 -12
  221. package/dist/components-v2/Table/settings/TableSettings.js +0 -57
  222. package/dist/components-v2/Table/utils/filterUtils.d.ts +0 -7
  223. package/dist/components-v2/Table/utils/filterUtils.js +0 -149
  224. package/dist/components-v2/Table/utils/sortUtils.d.ts +0 -6
  225. package/dist/components-v2/Table/utils/sortUtils.js +0 -65
  226. package/dist/components-v2/Tag/Tag.d.ts +0 -15
  227. package/dist/components-v2/Tag/Tag.js +0 -87
  228. package/dist/components-v2/Timeline/Timeline.d.ts +0 -18
  229. package/dist/components-v2/Timeline/Timeline.js +0 -76
  230. package/dist/components-v2/Toaster/Toaster.d.ts +0 -61
  231. package/dist/components-v2/Toaster/Toaster.js +0 -63
  232. package/dist/components-v2/Toggle/Toggle.d.ts +0 -28
  233. package/dist/components-v2/Toggle/Toggle.js +0 -90
  234. package/dist/components-v2/ui/accordion.d.ts +0 -12
  235. package/dist/components-v2/ui/accordion.js +0 -104
  236. package/dist/components-v2/ui/alert.d.ts +0 -18
  237. package/dist/components-v2/ui/alert.js +0 -99
  238. package/dist/components-v2/ui/avatar.d.ts +0 -12
  239. package/dist/components-v2/ui/avatar.js +0 -80
  240. package/dist/components-v2/ui/badge.d.ts +0 -10
  241. package/dist/components-v2/ui/badge.js +0 -76
  242. package/dist/components-v2/ui/button.d.ts +0 -18
  243. package/dist/components-v2/ui/button.js +0 -97
  244. package/dist/components-v2/ui/checkbox.d.ts +0 -15
  245. package/dist/components-v2/ui/checkbox.js +0 -86
  246. package/dist/components-v2/ui/dialog.d.ts +0 -30
  247. package/dist/components-v2/ui/dialog.js +0 -115
  248. package/dist/components-v2/ui/dropdown-menu.d.ts +0 -26
  249. package/dist/components-v2/ui/dropdown-menu.js +0 -121
  250. package/dist/components-v2/ui/field.d.ts +0 -32
  251. package/dist/components-v2/ui/field.js +0 -62
  252. package/dist/components-v2/ui/form-field.d.ts +0 -25
  253. package/dist/components-v2/ui/form-field.js +0 -96
  254. package/dist/components-v2/ui/input.d.ts +0 -9
  255. package/dist/components-v2/ui/input.js +0 -73
  256. package/dist/components-v2/ui/label.d.ts +0 -10
  257. package/dist/components-v2/ui/label.js +0 -70
  258. package/dist/components-v2/ui/popover.d.ts +0 -9
  259. package/dist/components-v2/ui/popover.js +0 -60
  260. package/dist/components-v2/ui/progress.d.ts +0 -12
  261. package/dist/components-v2/ui/progress.js +0 -75
  262. package/dist/components-v2/ui/radio-group.d.ts +0 -17
  263. package/dist/components-v2/ui/radio-group.js +0 -91
  264. package/dist/components-v2/ui/select.d.ts +0 -24
  265. package/dist/components-v2/ui/select.js +0 -122
  266. package/dist/components-v2/ui/separator.d.ts +0 -5
  267. package/dist/components-v2/ui/separator.js +0 -55
  268. package/dist/components-v2/ui/skeleton.d.ts +0 -9
  269. package/dist/components-v2/ui/skeleton.js +0 -68
  270. package/dist/components-v2/ui/spinner.d.ts +0 -16
  271. package/dist/components-v2/ui/spinner.js +0 -64
  272. package/dist/components-v2/ui/switch.d.ts +0 -10
  273. package/dist/components-v2/ui/switch.js +0 -81
  274. package/dist/components-v2/ui/tabs.d.ts +0 -13
  275. package/dist/components-v2/ui/tabs.js +0 -95
  276. package/dist/components-v2/ui/textarea.d.ts +0 -10
  277. package/dist/components-v2/ui/textarea.js +0 -96
  278. package/dist/components-v2/ui/tooltip.d.ts +0 -17
  279. package/dist/components-v2/ui/tooltip.js +0 -75
  280. package/dist/lib/utils.d.ts +0 -2
  281. package/dist/lib/utils.js +0 -8
  282. package/dist/theme-v2/ThemeProvider.d.ts +0 -19
  283. package/dist/theme-v2/ThemeProvider.js +0 -149
  284. package/dist/theme-v2/dark.css +0 -47
  285. package/dist/theme-v2/tokens.css +0 -72
  286. /package/dist/Components/Table/{Components → components}/HeaderActions.d.ts +0 -0
  287. /package/dist/Components/Table/{Components → components}/HeaderActions.js +0 -0
  288. /package/dist/Components/Table/{Components → components}/Pagination.d.ts +0 -0
  289. /package/dist/Components/Table/{Components → components}/Pagination.js +0 -0
  290. /package/dist/Components/Table/{Components → components}/TableActions.d.ts +0 -0
  291. /package/dist/Components/Table/{Components → components}/TableActions.js +0 -0
  292. /package/dist/Components/Table/{Components → components}/TableBody.d.ts +0 -0
  293. /package/dist/Components/Table/{Components → components}/TableBody.js +0 -0
  294. /package/dist/Components/Table/{Components → components}/TableBody.virtualize.test.d.ts +0 -0
  295. /package/dist/Components/Table/{Components → components}/TableBody.virtualize.test.js +0 -0
  296. /package/dist/Components/Table/{Components → components}/TableGroupRow.d.ts +0 -0
  297. /package/dist/Components/Table/{Components → components}/TableGroupRow.js +0 -0
  298. /package/dist/Components/Table/{Components → components}/TableHeader.d.ts +0 -0
  299. /package/dist/Components/Table/{Components → components}/TableHeader.js +0 -0
  300. /package/dist/Components/Table/{Components → components}/TableLoading.d.ts +0 -0
  301. /package/dist/Components/Table/{Components → components}/TableLoading.js +0 -0
  302. /package/dist/Components/Table/{Components → components}/TableSearch.d.ts +0 -0
  303. /package/dist/Components/Table/{Components → components}/TableSearch.js +0 -0
@@ -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
- var react_1 = __importDefault(require("react"));
7
- var ProductCard_1 = __importDefault(require("../Components/ProductCard/ProductCard"));
8
- var react_2 = require("@chakra-ui/react");
9
- var productCaard = function () {
10
- var 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 (react_1.default.createElement(react_2.SimpleGrid, { columns: { base: 2, md: 3, lg: 4 }, spacing: 6 }, Products.map(function (product) { return (react_1.default.createElement(ProductCard_1.default, { key: product.productId, 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: function (id, var_id, qty) { return console.log('Add to cart:', id, var_id, qty); }, onNotifyMe: function (id, var_id) { return console.log('notify', id, var_id); } })); })));
310
- };
311
- exports.default = productCaard;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ProductDetailCard: () => React.JSX.Element;
3
- export default ProductDetailCard;
@@ -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
- var react_1 = __importDefault(require("react"));
7
- var ProductDetails_1 = __importDefault(require("../Components/ProductDetails/ProductDetails"));
8
- var ProductDetailCard = function () {
9
- var 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 (react_1.default.createElement(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, category: Product === null || Product === void 0 ? void 0 : Product.category, addToCart: true, notifyMe: true, onAddToCart: function (id, var_id, qty) { return console.log('detail add', id, var_id, qty); }, onNotifyMe: function (id, var_id) { return console.log('detail notify', id, var_id); } }));
77
- };
78
- exports.default = ProductDetailCard;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const ProductFilterPage: () => React.JSX.Element;
3
- export default ProductFilterPage;
@@ -1,202 +0,0 @@
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 () {
30
- var ownKeys = function(o) {
31
- ownKeys = Object.getOwnPropertyNames || function (o) {
32
- var ar = [];
33
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
- return ar;
35
- };
36
- return ownKeys(o);
37
- };
38
- return function (mod) {
39
- if (mod && mod.__esModule) return mod;
40
- var result = {};
41
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
- __setModuleDefault(result, mod);
43
- return result;
44
- };
45
- })();
46
- var __importDefault = (this && this.__importDefault) || function (mod) {
47
- return (mod && mod.__esModule) ? mod : { "default": mod };
48
- };
49
- Object.defineProperty(exports, "__esModule", { value: true });
50
- var react_1 = __importStar(require("react"));
51
- var react_2 = require("@chakra-ui/react");
52
- var ProductCard_1 = __importDefault(require("../Components/ProductCard/ProductCard"));
53
- var FilterSidebar_1 = __importDefault(require("../Components/FilterSidebar/FilterSidebar"));
54
- var Button_1 = __importDefault(require("../Components/Button/Button"));
55
- var lucide_react_1 = require("lucide-react");
56
- var ProductFilterPage = function () {
57
- var _a = (0, react_1.useState)({}), filters = _a[0], setFilters = _a[1];
58
- var sections = [
59
- {
60
- id: "features",
61
- label: "Features bjhgjgkjgkjkjkj",
62
- initiallyExpanded: true,
63
- options: [
64
- { id: "eggless", label: "Eggless" },
65
- { id: "sugar_free", label: "Sugar Free" },
66
- { id: "freshly_made", label: "Freshly Made" },
67
- { id: "gift_pack", label: "Gift Pack" },
68
- ],
69
- },
70
- {
71
- id: "brand",
72
- label: "Category",
73
- searchable: true,
74
- checkboxes: true,
75
- initiallyExpanded: true,
76
- options: [
77
- { id: "sweets", label: "Sweets" },
78
- { id: "cakes", label: "Cakes" },
79
- { id: "bakery", label: "Bakery" },
80
- ],
81
- },
82
- {
83
- id: "hairType",
84
- label: "Type of Sweet",
85
- radio: true,
86
- initiallyExpanded: true,
87
- options: [
88
- { id: "milk_based", label: "Milk Based" },
89
- { id: "ghee", label: "Ghee" },
90
- { id: "dry_fruits", label: "Dry Fruits" },
91
- ],
92
- },
93
- {
94
- id: "availability",
95
- label: "Availability",
96
- initiallyExpanded: true,
97
- options: [
98
- { id: "in_stock", label: "In Stock" },
99
- { id: "out_of_stock", label: "Out of Stock" },
100
- ],
101
- },
102
- {
103
- id: "price",
104
- label: "Price",
105
- range: { min: 0, max: 1000, step: 100, values: [0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000], unit: "₹" },
106
- initiallyExpanded: true,
107
- },
108
- {
109
- id: "rating",
110
- label: "Customer Reviews",
111
- radio: true,
112
- initiallyExpanded: true,
113
- options: [
114
- { id: "4", label: "4" },
115
- { id: "3", label: "3" },
116
- { id: "2", label: "2" },
117
- { id: "1", label: "1" },
118
- ],
119
- },
120
- ];
121
- // eslint-disable-next-line
122
- var products = [
123
- {
124
- id: 1,
125
- label: "Mysore Pak",
126
- description: "Classic ghee-rich sweet",
127
- productImage: [{ imageUrl: "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1768976723/main_sweets/1768976723212-4J7A2875.jpg", imageId: 1, order: 1 }],
128
- tags: ["ghee", "sweets", "freshly_made", "muthu_kavitha"],
129
- rating: 4.7,
130
- reviews: 1200,
131
- options: [{ var_id: 11, label: "Default", price: 250, offer: 10, weight: 200, stocks: 12 }],
132
- avalabilitys: true,
133
- addToCart: true,
134
- batch: { color: "red", label: "Classic " }
135
- },
136
- {
137
- id: 2,
138
- label: "Laddu Assortment",
139
- description: "Dry fruit laddus",
140
- productImage: [{ imageUrl: "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1768976340/main_sweets/1768976340242-4J7A3163%20%281%29.webp", imageId: 2, order: 1 }],
141
- tags: ["dry_fruits", "sweets", "gift_pack", "signature"],
142
- rating: 4.5,
143
- reviews: 800,
144
- options: [{ var_id: 21, label: "Default", price: 450, offer: 5, weight: 300, stocks: 5 }],
145
- avalabilitys: true,
146
- addToCart: true,
147
- batch: { color: "red", label: "Classic " }
148
- },
149
- {
150
- id: 3,
151
- label: "Eggless Black Forest Cake",
152
- description: "Chocolate sponge with cherries",
153
- productImage: [{ imageUrl: "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1768987701/main_sweets/1768987700430-Ellu-laddu.jpg", imageId: 3, order: 1 }],
154
- tags: ["eggless", "milk_based", "cakes", "chef_special"],
155
- rating: 4.6,
156
- reviews: 1500,
157
- options: [{ var_id: 31, label: "Default", price: 699, offer: 0, weight: 500, stocks: 3 }],
158
- avalabilitys: true,
159
- addToCart: true,
160
- batch: { color: "red", label: "Classic " }
161
- },
162
- ];
163
- var asArray = function (v) { return (Array.isArray(v) ? v : v ? [v] : []); };
164
- var filteredProducts = (0, react_1.useMemo)(function () {
165
- return products.filter(function (p) {
166
- var _a;
167
- var availOk = asArray(filters.availability).length === 0 ||
168
- asArray(filters.availability).includes(p.avalabilitys ? "in_stock" : "out_of_stock");
169
- var featureOk = asArray(filters.features).length === 0 || (p.tags || []).some(function (t) { return asArray(filters.features).includes(t); });
170
- var hairOk = asArray(filters.hairType).length === 0 || (p.tags || []).some(function (t) { return asArray(filters.hairType).includes(t); });
171
- var brandOk = asArray(filters.brand).length === 0 || (p.tags || []).some(function (t) { return asArray(filters.brand).includes(t); });
172
- var minRatingStr = asArray(filters.rating)[0];
173
- var minRating = minRatingStr ? Number(minRatingStr) : undefined;
174
- var numericRating = typeof p.rating === "number" ? p.rating : Number((_a = p.rating) !== null && _a !== void 0 ? _a : 0);
175
- var ratingOk = minRating === undefined ? true : numericRating >= minRating;
176
- var priceRange = filters.price;
177
- var priceOk = !priceRange || priceRange.length !== 2
178
- ? true
179
- : (p.options && p.options.length ? p.options[0].price >= priceRange[0] && p.options[0].price <= priceRange[1] : true);
180
- return availOk && featureOk && hairOk && brandOk && ratingOk && priceOk;
181
- });
182
- }, [filters, products]);
183
- var handleFilterChange = function (newFilters) {
184
- console.log(newFilters);
185
- setFilters(newFilters);
186
- };
187
- return (react_1.default.createElement(react_2.Box, { p: 4 },
188
- react_1.default.createElement(react_2.Flex, { gap: 6, align: "start" },
189
- react_1.default.createElement(Button_1.default, { size: "xs", variant: "outline", leftIcon: react_1.default.createElement(lucide_react_1.X, { size: 12 }), onClick: function () { return setFilters({}); } }, "Clear All"),
190
- react_1.default.createElement(react_2.Box, { flexShrink: 0 },
191
- react_1.default.createElement(FilterSidebar_1.default, { sidebarOptions: sections, selected: filters, onChange: handleFilterChange, width: 180, containerPadding: 4, panelPadding: 2,
192
- // variant="cards"
193
- clearAllButton: true, onClearAllHandler: function () { return setFilters({}); } })),
194
- react_1.default.createElement(react_2.Box, { flex: "1" },
195
- react_1.default.createElement(react_2.Text, { fontSize: "xl", fontWeight: "bold", mb: 4 },
196
- "Products (",
197
- filteredProducts.length,
198
- ")"),
199
- filteredProducts.length > 0 ? (react_1.default.createElement(react_2.SimpleGrid, { columns: { base: 1, md: 2, lg: 3 }, spacing: 6 }, filteredProducts.map(function (product) { return (react_1.default.createElement(ProductCard_1.default, __assign({ key: product.id }, product, { onAddToCart: function (id, var_id, qty) { return console.log('Add to cart:', id, var_id, qty); } }))); }))) : (react_1.default.createElement(react_2.Box, { p: 8, textAlign: "center", border: "1px dashed", borderColor: "gray.300", borderRadius: "md" },
200
- react_1.default.createElement(react_2.Text, { color: "gray.500" }, "No products match your selection.")))))));
201
- };
202
- exports.default = ProductFilterPage;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const ProgressbarPage: () => React.JSX.Element;
3
- export default ProgressbarPage;
@@ -1,12 +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
- var react_1 = __importDefault(require("react"));
7
- var ProgressBar_1 = __importDefault(require("../Components/ProgressBar/ProgressBar"));
8
- var ProgressbarPage = function () {
9
- return (react_1.default.createElement("div", null,
10
- react_1.default.createElement(ProgressBar_1.default, { min: 10, max: 0, isIndeterminate: true, size: "xs" })));
11
- };
12
- exports.default = ProgressbarPage;
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const RadioButtonPage: () => React.JSX.Element;
3
- export default RadioButtonPage;