@gobolt/genesis 0.0.9 → 0.0.11

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 (415) hide show
  1. package/README.md +2 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  6. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  7. package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
  8. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
  9. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
  10. package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
  11. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  12. package/dist/Keyframes-sPZXYuXt.js +17 -0
  13. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  14. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  15. package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
  16. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  17. package/dist/Skeleton-B3vg9CbL.js +560 -0
  18. package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
  19. package/dist/Typography-DqI7RslA.js +705 -0
  20. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  21. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  22. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  23. package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
  24. package/dist/clsx-OuTLNxxd.js +16 -0
  25. package/dist/components/Avatar/Avatar.d.ts +12 -0
  26. package/dist/components/Avatar/Avatar.js +61 -0
  27. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  28. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  30. package/dist/components/Avatar/index.d.ts +2 -0
  31. package/dist/components/Avatar/index.js +4 -0
  32. package/dist/components/Avatar/styles.d.ts +18 -0
  33. package/dist/components/Avatar/styles.js +326 -0
  34. package/dist/components/Badge/Badge.d.ts +5 -3
  35. package/dist/components/Badge/Badge.js +67 -100
  36. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  37. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  38. package/dist/components/Badge/styles.d.ts +12 -3
  39. package/dist/components/Badge/styles.js +30 -27
  40. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  41. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  42. package/dist/components/Breadcrumb/styles.js +239 -2260
  43. package/dist/components/Button/Button.d.ts +4 -3
  44. package/dist/components/Button/Button.js +10 -6
  45. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  46. package/dist/components/Button/__tests__/Button.test.js +1 -1
  47. package/dist/components/Button/styles.d.ts +2 -2
  48. package/dist/components/Button/styles.js +20 -17
  49. package/dist/components/Card/Card.d.ts +9 -0
  50. package/dist/components/Card/Card.js +16 -0
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  52. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  53. package/dist/components/Card/__tests__/Card.test.js +16 -0
  54. package/dist/components/Card/index.d.ts +2 -0
  55. package/dist/components/Card/index.js +4 -0
  56. package/dist/components/Card/styles.d.ts +16 -0
  57. package/dist/components/Card/styles.js +12 -0
  58. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  59. package/dist/components/Checkbox/Checkbox.js +28 -16
  60. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  61. package/dist/components/Checkbox/styles.js +22 -457
  62. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  63. package/dist/components/Dashboard/Dashboard.js +5 -0
  64. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  66. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  67. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  73. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  75. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  77. package/dist/components/Dashboard/index.d.ts +2 -0
  78. package/dist/components/Dashboard/index.js +4 -0
  79. package/dist/components/Dashboard/styles.d.ts +14 -0
  80. package/dist/components/Dashboard/styles.js +11 -0
  81. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  82. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  83. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  84. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  85. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  86. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  87. package/dist/components/ErrorBoundary/index.js +4 -0
  88. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  89. package/dist/components/ErrorBoundary/styles.js +11 -0
  90. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  91. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  92. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  93. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  94. package/dist/components/Form/Form.js +3 -3
  95. package/dist/components/Form/__stories__/FormStory.js +127 -50
  96. package/dist/components/Form/__tests__/form.test.js +2 -2
  97. package/dist/components/Form/index.js +1 -1
  98. package/dist/components/Form/styles.js +1 -1
  99. package/dist/components/Glyph/Glyph.d.ts +4 -0
  100. package/dist/components/Glyph/Glyph.js +9 -0
  101. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  102. package/dist/components/Glyph/index.d.ts +2 -0
  103. package/dist/components/Glyph/index.js +4 -0
  104. package/dist/components/Glyph/styles.d.ts +14 -0
  105. package/dist/components/Glyph/styles.js +11 -0
  106. package/dist/components/Input/Input.d.ts +1 -2
  107. package/dist/components/Input/Input.js +14 -10
  108. package/dist/components/Input/__tests__/Input.test.js +1 -1
  109. package/dist/components/Input/styles.js +58 -466
  110. package/dist/components/Layout/Content/Content.d.ts +11 -0
  111. package/dist/components/Layout/Content/Content.js +32 -0
  112. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  113. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  114. package/dist/components/Layout/Content/index.d.ts +2 -0
  115. package/dist/components/Layout/Content/index.js +4 -0
  116. package/dist/components/Layout/Content/styles.d.ts +11 -0
  117. package/dist/components/Layout/Content/styles.js +16 -0
  118. package/dist/components/Layout/Layout.d.ts +8 -0
  119. package/dist/components/Layout/Layout.js +6 -0
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  121. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  123. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  124. package/dist/components/Layout/MainLayout/index.js +4 -0
  125. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  126. package/dist/components/Layout/MainLayout/styles.js +69 -0
  127. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  128. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  129. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  130. package/dist/components/Layout/index.d.ts +2 -0
  131. package/dist/components/Layout/index.js +4 -0
  132. package/dist/components/Message/Message.d.ts +6 -4
  133. package/dist/components/Message/Message.js +70 -43
  134. package/dist/components/Message/__tests__/Message.test.js +1 -1
  135. package/dist/components/Message/styles.d.ts +1 -0
  136. package/dist/components/Message/styles.js +15 -11
  137. package/dist/components/Notification/Notification.js +145 -120
  138. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  139. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  140. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  141. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  142. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  143. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  144. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  145. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  146. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  147. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  148. package/dist/components/Notification/styles.d.ts +1 -1
  149. package/dist/components/Notification/styles.js +1 -1
  150. package/dist/components/Popover/Popover.d.ts +10 -0
  151. package/dist/components/Popover/Popover.js +21 -0
  152. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  153. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  154. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  155. package/dist/components/Popover/index.d.ts +2 -0
  156. package/dist/components/Popover/index.js +4 -0
  157. package/dist/components/Popover/styles.d.ts +15 -0
  158. package/dist/components/Popover/styles.js +6 -0
  159. package/dist/components/Progress/Progress.d.ts +18 -0
  160. package/dist/components/Progress/Progress.js +91 -0
  161. package/dist/components/Progress/Progress.util.d.ts +4 -0
  162. package/dist/components/Progress/Progress.util.js +62 -0
  163. package/dist/components/Progress/ProgressText.d.ts +11 -0
  164. package/dist/components/Progress/ProgressText.js +67 -0
  165. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  166. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  167. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  168. package/dist/components/Progress/index.d.ts +2 -0
  169. package/dist/components/Progress/index.js +4 -0
  170. package/dist/components/Progress/styles.d.ts +17 -0
  171. package/dist/components/Progress/styles.js +793 -0
  172. package/dist/components/Radio/Radio.js +22 -6
  173. package/dist/components/Radio/RadioGroup.js +1 -1
  174. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  175. package/dist/components/Radio/index.d.ts +1 -0
  176. package/dist/components/Row/Row.d.ts +14 -0
  177. package/dist/components/Row/Row.js +38 -0
  178. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  179. package/dist/components/Row/RowActions/RowActions.js +59 -0
  180. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  181. package/dist/components/Row/RowActions/styles.js +32 -0
  182. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  183. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  184. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  185. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  186. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  187. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  188. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  189. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  190. package/dist/components/Row/__tests__/Row.test.js +16 -0
  191. package/dist/components/Row/index.d.ts +2 -0
  192. package/dist/components/Row/index.js +4 -0
  193. package/dist/components/Row/styles.d.ts +15 -0
  194. package/dist/components/Row/styles.js +15 -0
  195. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  196. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  197. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  198. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  199. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  200. package/dist/components/SegmentedControls/index.d.ts +2 -0
  201. package/dist/components/SegmentedControls/index.js +4 -0
  202. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  203. package/dist/components/SegmentedControls/styles.js +511 -0
  204. package/dist/components/Select/Select.d.ts +2 -4
  205. package/dist/components/Select/Select.js +12 -11
  206. package/dist/components/Select/__tests__/Select.test.js +1 -1
  207. package/dist/components/Select/styles.js +39 -3654
  208. package/dist/components/Shapes/Shapes.d.ts +6 -0
  209. package/dist/components/Shapes/Shapes.js +8 -0
  210. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  211. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  212. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  213. package/dist/components/Shapes/index.d.ts +2 -0
  214. package/dist/components/Shapes/index.js +4 -0
  215. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  216. package/dist/components/Shapes/variants/Circle.js +23 -0
  217. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  218. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  219. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  220. package/dist/components/Shapes/variants/Triangle.js +23 -0
  221. package/dist/components/Switch/Switch.d.ts +9 -0
  222. package/dist/components/Switch/Switch.js +22 -0
  223. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  224. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  225. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  226. package/dist/components/Switch/index.d.ts +2 -0
  227. package/dist/components/Switch/index.js +4 -0
  228. package/dist/components/Switch/styles.d.ts +9 -0
  229. package/dist/components/Switch/styles.js +456 -0
  230. package/dist/components/Table/Table.d.ts +15 -0
  231. package/dist/components/Table/Table.js +23 -0
  232. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  233. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  234. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  235. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  236. package/dist/components/Table/__tests__/Table.test.js +34 -0
  237. package/dist/components/Table/index.d.ts +2 -0
  238. package/dist/components/Table/index.js +4 -0
  239. package/dist/components/Table/styles.d.ts +8 -0
  240. package/dist/components/Table/styles.js +6 -0
  241. package/dist/components/Tabs/Tabs.d.ts +10 -0
  242. package/dist/components/Tabs/Tabs.js +23 -0
  243. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  244. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  245. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  246. package/dist/components/Tabs/index.d.ts +2 -0
  247. package/dist/components/Tabs/index.js +4 -0
  248. package/dist/components/Tabs/styles.d.ts +12 -0
  249. package/dist/components/Tabs/styles.js +102 -0
  250. package/dist/components/Tile/Tile.d.ts +10 -0
  251. package/dist/components/Tile/Tile.js +21 -0
  252. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  253. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  254. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  255. package/dist/components/Tile/index.d.ts +2 -0
  256. package/dist/components/Tile/index.js +4 -0
  257. package/dist/components/Tile/styles.d.ts +11 -0
  258. package/dist/components/Tile/styles.js +12 -0
  259. package/dist/components/Toast/Toast.js +23 -6
  260. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  261. package/dist/components/Toast/index.js +1 -1
  262. package/dist/components/Toast/styles.d.ts +0 -1
  263. package/dist/components/Toast/styles.js +14 -23
  264. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  265. package/dist/components/Tooltip/Tooltip.js +50 -0
  266. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  267. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  268. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  269. package/dist/components/Tooltip/index.d.ts +2 -0
  270. package/dist/components/Tooltip/index.js +4 -0
  271. package/dist/components/Tooltip/styles.d.ts +20 -0
  272. package/dist/components/Tooltip/styles.js +11 -0
  273. package/dist/components/Typography/Typography.d.ts +5 -1
  274. package/dist/components/Typography/Typography.js +2 -2
  275. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  276. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  277. package/dist/components/Typography/index.js +1 -1
  278. package/dist/components/Typography/styles.d.ts +1 -0
  279. package/dist/components/Typography/styles.js +53 -17
  280. package/dist/components/index.d.ts +31 -1
  281. package/dist/components/index.js +54 -24
  282. package/dist/constants/index.d.ts +4 -0
  283. package/dist/constants/index.js +4 -2
  284. package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
  285. package/dist/dropdown-zGGFIyJ_.js +2044 -0
  286. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  287. package/dist/genesis/GenesisThemeBreakdown.js +38 -22
  288. package/dist/genesis/styles.js +7 -2923
  289. package/dist/iconBase-LROS5hdG.js +112 -0
  290. package/dist/index-BRUI9igj.js +11 -0
  291. package/dist/index-BTGF--50.js +1845 -0
  292. package/dist/index-BW_7pvTr.js +538 -0
  293. package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
  294. package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
  295. package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
  296. package/dist/index-CdiHBmVe.js +445 -0
  297. package/dist/index-CodMmNWv.js +102 -0
  298. package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
  299. package/dist/index-D0P16DlX.js +286 -0
  300. package/dist/index-DLdU7Tpd.js +183 -0
  301. package/dist/index-DWUXwgXK.js +809 -0
  302. package/dist/index-DmZOkMjs.js +3628 -0
  303. package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
  304. package/dist/index-hoPiccJv.js +415 -0
  305. package/dist/index.js +61 -31
  306. package/dist/interface/address.d.ts +10 -0
  307. package/dist/interface/address.js +1 -0
  308. package/dist/interface/appointment.d.ts +57 -0
  309. package/dist/interface/appointment.js +5 -0
  310. package/dist/interface/appointmentV2.d.ts +65 -0
  311. package/dist/interface/appointmentV2.js +1 -0
  312. package/dist/interface/appointmentsState.d.ts +21 -0
  313. package/dist/interface/appointmentsState.js +1 -0
  314. package/dist/interface/common.d.ts +2 -0
  315. package/dist/interface/common.js +1 -0
  316. package/dist/interface/completionData.d.ts +18 -0
  317. package/dist/interface/completionData.js +1 -0
  318. package/dist/interface/deliveryPartner.d.ts +25 -0
  319. package/dist/interface/deliveryPartner.js +1 -0
  320. package/dist/interface/organization.d.ts +9 -0
  321. package/dist/interface/organization.js +1 -0
  322. package/dist/interface/pagination.d.ts +8 -0
  323. package/dist/interface/pagination.js +1 -0
  324. package/dist/interface/roles.d.ts +9 -0
  325. package/dist/interface/roles.js +1 -0
  326. package/dist/interface/route.d.ts +73 -0
  327. package/dist/interface/route.js +1 -0
  328. package/dist/interface/routeAnalysis.d.ts +108 -0
  329. package/dist/interface/routeAnalysis.js +1 -0
  330. package/dist/interface/routeAutomationJob.d.ts +95 -0
  331. package/dist/interface/routeAutomationJob.js +10 -0
  332. package/dist/interface/routeAutomationLog.d.ts +10 -0
  333. package/dist/interface/routeAutomationLog.js +1 -0
  334. package/dist/interface/routeEvent.d.ts +55 -0
  335. package/dist/interface/routeEvent.js +5 -0
  336. package/dist/interface/serviceArea.d.ts +18 -0
  337. package/dist/interface/serviceArea.js +1 -0
  338. package/dist/interface/util.d.ts +3 -0
  339. package/dist/interface/util.js +1 -0
  340. package/dist/interface/vehicle.d.ts +120 -0
  341. package/dist/interface/vehicle.js +1 -0
  342. package/dist/interface/workOrder.d.ts +22 -0
  343. package/dist/interface/workOrder.js +1 -0
  344. package/dist/isVisible-D3-B85BJ.js +22 -0
  345. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  346. package/dist/omit-B_u6A-HL.js +9 -0
  347. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  348. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  349. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  350. package/dist/providers/BreakpointThemeProvider.js +21 -0
  351. package/dist/providers/GenesisProvider.js +3 -3
  352. package/dist/providers/ToastProvider.js +22 -6
  353. package/dist/providers/index.js +1 -1
  354. package/dist/providers/useGenesis.js +2 -2
  355. package/dist/responsiveObserver-O1kw80RG.js +73 -0
  356. package/dist/setup-CKu7-AfI.js +24706 -0
  357. package/dist/setup.types-dBtAXXGp.js +8824 -0
  358. package/dist/shadow-BoMGMNn3.js +13 -0
  359. package/dist/styleChecker-Cotu61d0.js +21 -0
  360. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
  361. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  362. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  363. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  364. package/dist/styles/theme/genesis-theme.js +468 -263
  365. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  366. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  367. package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
  368. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  369. package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
  370. package/dist/styles-BSD221S5.js +289 -0
  371. package/dist/styles-D9iYILpv.js +9195 -0
  372. package/dist/test/setup.d.ts +2 -3
  373. package/dist/test/setup.js +87 -4
  374. package/dist/test/setup.types.d.ts +7 -0
  375. package/dist/test/setup.types.js +1 -0
  376. package/dist/toArray-DGvPoJP_.js +11 -0
  377. package/dist/useBreakpoint-CAMzKscx.js +22 -0
  378. package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
  379. package/dist/useId-D2tzlufo.js +26 -0
  380. package/dist/useLocale-DWRfeMSS.js +16 -0
  381. package/dist/useMergedState-BoELfaU9.js +23 -0
  382. package/dist/useSize-CPo2bUE3.js +9 -0
  383. package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
  384. package/dist/useZIndex-D81lkWy4.js +44 -0
  385. package/dist/utils/icon-util.d.ts +2 -0
  386. package/dist/utils/icon-util.js +95 -0
  387. package/package.json +33 -14
  388. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  389. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  390. package/dist/Typography-aGoDUl4R.js +0 -710
  391. package/dist/index-BZAhCB_K.js +0 -97
  392. package/dist/index-CfDY25LP.js +0 -873
  393. package/dist/isVisible-A-IfeFoT.js +0 -367
  394. package/dist/providers/ThemeProvider.d.ts +0 -9
  395. package/dist/providers/ThemeProvider.js +0 -21
  396. package/dist/setup-BvfREoHl.js +0 -33891
  397. package/dist/useLocale-DT-z_vQ6.js +0 -16
  398. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  399. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  400. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  401. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  402. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  403. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  404. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  405. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  406. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  407. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  408. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  409. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  410. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  411. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  412. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  413. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  414. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  415. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,948 @@
1
+ import { jsxs as S, jsx as f } from "react/jsx-runtime";
2
+ import * as b from "react";
3
+ import h, { PureComponent as Ce, useState as De } from "react";
4
+ import "../../Avatar/styles.js";
5
+ import "../../Badge/styles.js";
6
+ import "../../../providers/BreakpointThemeProvider.js";
7
+ import { u as Pe, a as I } from "../../../Typography-DqI7RslA.js";
8
+ import { BREAKPOINTS as Ne } from "../../../constants/index.js";
9
+ import "../../Breadcrumb/styles.js";
10
+ import "../../Button/styles.js";
11
+ import H from "../../Card/Card.js";
12
+ import "../../Checkbox/styles.js";
13
+ import "../../ErrorBoundaryFallback/styles.js";
14
+ import "../../Input/styles.js";
15
+ import "../../Layout/Content/styles.js";
16
+ import "../../Message/styles.js";
17
+ import "../../Notification/NotificationBadge/styles.js";
18
+ import "../../Notification/styles.js";
19
+ import "../../../styles-BSD221S5.js";
20
+ import "../../Progress/styles.js";
21
+ import "../../../styles/global-styles.js";
22
+ import je from "../../Radio/RadioGroup.js";
23
+ import "../../Row/styles.js";
24
+ import "../../Row/RowLabelValue/styles.js";
25
+ import "../../Row/RowActions/styles.js";
26
+ import "../../SegmentedControls/styles.js";
27
+ import "../../Select/styles.js";
28
+ import "../../Switch/styles.js";
29
+ import { S as ie, F as Te } from "../../../styles-D9iYILpv.js";
30
+ import "../../Tabs/styles.js";
31
+ import "../../Tile/styles.js";
32
+ import "../../Toast/styles.js";
33
+ import "../../Tooltip/styles.js";
34
+ import { columns as ke, deliveryData as J } from "../__mocks__/dashboard-data.js";
35
+ import { R as _e, C as Q } from "../../../styles-BDbHpHsc.js";
36
+ import { a as Ie } from "../../../useBreakpoint-CAMzKscx.js";
37
+ import { c as Le } from "../../../reactNode-sKPeiqPL.js";
38
+ import { d as ve, e as Re } from "../../../presets-Djh_L_6R.js";
39
+ import { p as $e } from "../../../pickAttrs-CleuMJFR.js";
40
+ import { g as Ve, m as Me, r as Be, C as ze } from "../../../index-ByspLxrB.js";
41
+ import { S as Fe } from "../../../Skeleton-B3vg9CbL.js";
42
+ import "../../../index-DLdU7Tpd.js";
43
+ import { I as he } from "../../../AntdIcon-nCNB0J1E.js";
44
+ import { G as Ke, n as B, g as oe, a as se, D as We, u as Ge, b as V, L as K, o as X, C as Z, A as He, c as M, i as le, p as Xe, d as ce, h as Ue, e as Ye, j as ye, B as ee, X as U, Y, k as ge, l as ue, T as pe, m as de } from "../../../generateCategoricalChart-7ceYaiZ2.js";
45
+ import { c as be } from "../../../clsx-OuTLNxxd.js";
46
+ import { i as te } from "../../../_baseIsEqual-L0-w1QRI.js";
47
+ import { L as qe } from "../../../index-CodMmNWv.js";
48
+ var Je = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z" } }] }, name: "arrow-down", theme: "outlined" }, Qe = function(r, n) {
49
+ return /* @__PURE__ */ b.createElement(he, ve({}, r, {
50
+ ref: n,
51
+ icon: Je
52
+ }));
53
+ }, xe = /* @__PURE__ */ b.forwardRef(Qe);
54
+ process.env.NODE_ENV !== "production" && (xe.displayName = "ArrowDownOutlined");
55
+ var Ze = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z" } }] }, name: "arrow-up", theme: "outlined" }, et = function(r, n) {
56
+ return /* @__PURE__ */ b.createElement(he, ve({}, r, {
57
+ ref: n,
58
+ icon: Ze
59
+ }));
60
+ }, Ae = /* @__PURE__ */ b.forwardRef(et);
61
+ process.env.NODE_ENV !== "production" && (Ae.displayName = "ArrowUpOutlined");
62
+ const tt = (e) => {
63
+ const {
64
+ value: r,
65
+ formatter: n,
66
+ precision: t,
67
+ decimalSeparator: a,
68
+ groupSeparator: o = "",
69
+ prefixCls: s
70
+ } = e;
71
+ let i;
72
+ if (typeof n == "function")
73
+ i = n(r);
74
+ else {
75
+ const l = String(r), u = l.match(/^(-?)(\d*)(\.(\d+))?$/);
76
+ if (!u || l === "-")
77
+ i = l;
78
+ else {
79
+ const c = u[1];
80
+ let p = u[2] || "0", d = u[4] || "";
81
+ p = p.replace(/\B(?=(\d{3})+(?!\d))/g, o), typeof t == "number" && (d = d.padEnd(t, "0").slice(0, t > 0 ? t : 0)), d && (d = `${a}${d}`), i = [/* @__PURE__ */ b.createElement("span", {
82
+ key: "int",
83
+ className: `${s}-content-value-int`
84
+ }, c, p), d && /* @__PURE__ */ b.createElement("span", {
85
+ key: "decimal",
86
+ className: `${s}-content-value-decimal`
87
+ }, d)];
88
+ }
89
+ }
90
+ return /* @__PURE__ */ b.createElement("span", {
91
+ className: `${s}-content-value`
92
+ }, i);
93
+ }, rt = (e) => {
94
+ const {
95
+ componentCls: r,
96
+ marginXXS: n,
97
+ padding: t,
98
+ colorTextDescription: a,
99
+ titleFontSize: o,
100
+ colorTextHeading: s,
101
+ contentFontSize: i,
102
+ fontFamily: l
103
+ } = e;
104
+ return {
105
+ [r]: Object.assign(Object.assign({}, Be(e)), {
106
+ [`${r}-title`]: {
107
+ marginBottom: n,
108
+ color: a,
109
+ fontSize: o
110
+ },
111
+ [`${r}-skeleton`]: {
112
+ paddingTop: t
113
+ },
114
+ [`${r}-content`]: {
115
+ color: s,
116
+ fontSize: i,
117
+ fontFamily: l,
118
+ [`${r}-content-value`]: {
119
+ display: "inline-block",
120
+ direction: "ltr"
121
+ },
122
+ [`${r}-content-prefix, ${r}-content-suffix`]: {
123
+ display: "inline-block"
124
+ },
125
+ [`${r}-content-prefix`]: {
126
+ marginInlineEnd: n
127
+ },
128
+ [`${r}-content-suffix`]: {
129
+ marginInlineStart: n
130
+ }
131
+ }
132
+ })
133
+ };
134
+ }, nt = (e) => {
135
+ const {
136
+ fontSizeHeading3: r,
137
+ fontSize: n
138
+ } = e;
139
+ return {
140
+ titleFontSize: n,
141
+ contentFontSize: r
142
+ };
143
+ }, at = Ve("Statistic", (e) => {
144
+ const r = Me(e, {});
145
+ return [rt(r)];
146
+ }, nt);
147
+ var it = function(e, r) {
148
+ var n = {};
149
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (n[t] = e[t]);
150
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, t = Object.getOwnPropertySymbols(e); a < t.length; a++)
151
+ r.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (n[t[a]] = e[t[a]]);
152
+ return n;
153
+ };
154
+ const W = (e) => {
155
+ const {
156
+ prefixCls: r,
157
+ className: n,
158
+ rootClassName: t,
159
+ style: a,
160
+ valueStyle: o,
161
+ value: s = 0,
162
+ title: i,
163
+ valueRender: l,
164
+ prefix: u,
165
+ suffix: c,
166
+ loading: p = !1,
167
+ /* --- FormatConfig starts --- */
168
+ formatter: d,
169
+ precision: g,
170
+ decimalSeparator: A = ".",
171
+ groupSeparator: O = ",",
172
+ /* --- FormatConfig starts --- */
173
+ onMouseEnter: x,
174
+ onMouseLeave: C
175
+ } = e, E = it(e, ["prefixCls", "className", "rootClassName", "style", "valueStyle", "value", "title", "valueRender", "prefix", "suffix", "loading", "formatter", "precision", "decimalSeparator", "groupSeparator", "onMouseEnter", "onMouseLeave"]), {
176
+ getPrefixCls: P,
177
+ direction: y,
178
+ statistic: m
179
+ } = b.useContext(ze), v = P("statistic", r), [D, w, _] = at(v), N = /* @__PURE__ */ b.createElement(tt, {
180
+ decimalSeparator: A,
181
+ groupSeparator: O,
182
+ prefixCls: v,
183
+ formatter: d,
184
+ precision: g,
185
+ value: s
186
+ }), j = Re(v, {
187
+ [`${v}-rtl`]: y === "rtl"
188
+ }, m == null ? void 0 : m.className, n, t, w, _), R = $e(E, {
189
+ aria: !0,
190
+ data: !0
191
+ });
192
+ return D(/* @__PURE__ */ b.createElement("div", Object.assign({}, R, {
193
+ className: j,
194
+ style: Object.assign(Object.assign({}, m == null ? void 0 : m.style), a),
195
+ onMouseEnter: x,
196
+ onMouseLeave: C
197
+ }), i && /* @__PURE__ */ b.createElement("div", {
198
+ className: `${v}-title`
199
+ }, i), /* @__PURE__ */ b.createElement(Fe, {
200
+ paragraph: !1,
201
+ loading: p,
202
+ className: `${v}-skeleton`
203
+ }, /* @__PURE__ */ b.createElement("div", {
204
+ style: o,
205
+ className: `${v}-content`
206
+ }, u && /* @__PURE__ */ b.createElement("span", {
207
+ className: `${v}-content-prefix`
208
+ }, u), l ? l(N) : N, c && /* @__PURE__ */ b.createElement("span", {
209
+ className: `${v}-content-suffix`
210
+ }, c)))));
211
+ };
212
+ process.env.NODE_ENV !== "production" && (W.displayName = "Statistic");
213
+ const ot = [
214
+ ["Y", 1e3 * 60 * 60 * 24 * 365],
215
+ // years
216
+ ["M", 1e3 * 60 * 60 * 24 * 30],
217
+ // months
218
+ ["D", 1e3 * 60 * 60 * 24],
219
+ // days
220
+ ["H", 1e3 * 60 * 60],
221
+ // hours
222
+ ["m", 1e3 * 60],
223
+ // minutes
224
+ ["s", 1e3],
225
+ // seconds
226
+ ["S", 1]
227
+ // million seconds
228
+ ];
229
+ function st(e, r) {
230
+ let n = e;
231
+ const t = /\[[^\]]*]/g, a = (r.match(t) || []).map((l) => l.slice(1, -1)), o = r.replace(t, "[]"), s = ot.reduce((l, u) => {
232
+ let [c, p] = u;
233
+ if (l.includes(c)) {
234
+ const d = Math.floor(n / p);
235
+ return n -= d * p, l.replace(new RegExp(`${c}+`, "g"), (g) => {
236
+ const A = g.length;
237
+ return d.toString().padStart(A, "0");
238
+ });
239
+ }
240
+ return l;
241
+ }, o);
242
+ let i = 0;
243
+ return s.replace(t, () => {
244
+ const l = a[i];
245
+ return i += 1, l;
246
+ });
247
+ }
248
+ function lt(e, r) {
249
+ const {
250
+ format: n = ""
251
+ } = r, t = new Date(e).getTime(), a = Date.now(), o = Math.max(t - a, 0);
252
+ return st(o, n);
253
+ }
254
+ var ct = function(e, r) {
255
+ var n = {};
256
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (n[t] = e[t]);
257
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, t = Object.getOwnPropertySymbols(e); a < t.length; a++)
258
+ r.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (n[t[a]] = e[t[a]]);
259
+ return n;
260
+ };
261
+ const ut = 1e3 / 30;
262
+ function pt(e) {
263
+ return new Date(e).getTime();
264
+ }
265
+ const dt = (e) => {
266
+ const {
267
+ value: r,
268
+ format: n = "HH:mm:ss",
269
+ onChange: t,
270
+ onFinish: a
271
+ } = e, o = ct(e, ["value", "format", "onChange", "onFinish"]), s = Ie(), i = b.useRef(null), l = () => {
272
+ a == null || a(), i.current && (clearInterval(i.current), i.current = null);
273
+ }, u = () => {
274
+ const d = pt(r);
275
+ d >= Date.now() && (i.current = setInterval(() => {
276
+ s(), t == null || t(d - Date.now()), d < Date.now() && l();
277
+ }, ut));
278
+ };
279
+ b.useEffect(() => (u(), () => {
280
+ i.current && (clearInterval(i.current), i.current = null);
281
+ }), [r]);
282
+ const c = (d, g) => lt(d, Object.assign(Object.assign({}, g), {
283
+ format: n
284
+ })), p = (d) => Le(d, {
285
+ title: void 0
286
+ });
287
+ return /* @__PURE__ */ b.createElement(W, Object.assign({}, o, {
288
+ value: r,
289
+ valueRender: p,
290
+ formatter: c
291
+ }));
292
+ }, ft = /* @__PURE__ */ b.memo(dt);
293
+ W.Countdown = ft;
294
+ var mt = ["layout", "type", "stroke", "connectNulls", "isRange", "ref"], vt = ["key"], Ee;
295
+ function z(e) {
296
+ "@babel/helpers - typeof";
297
+ return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
298
+ return typeof r;
299
+ } : function(r) {
300
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
301
+ }, z(e);
302
+ }
303
+ function Oe(e, r) {
304
+ if (e == null) return {};
305
+ var n = ht(e, r), t, a;
306
+ if (Object.getOwnPropertySymbols) {
307
+ var o = Object.getOwnPropertySymbols(e);
308
+ for (a = 0; a < o.length; a++)
309
+ t = o[a], !(r.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (n[t] = e[t]);
310
+ }
311
+ return n;
312
+ }
313
+ function ht(e, r) {
314
+ if (e == null) return {};
315
+ var n = {};
316
+ for (var t in e)
317
+ if (Object.prototype.hasOwnProperty.call(e, t)) {
318
+ if (r.indexOf(t) >= 0) continue;
319
+ n[t] = e[t];
320
+ }
321
+ return n;
322
+ }
323
+ function $() {
324
+ return $ = Object.assign ? Object.assign.bind() : function(e) {
325
+ for (var r = 1; r < arguments.length; r++) {
326
+ var n = arguments[r];
327
+ for (var t in n)
328
+ Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
329
+ }
330
+ return e;
331
+ }, $.apply(this, arguments);
332
+ }
333
+ function fe(e, r) {
334
+ var n = Object.keys(e);
335
+ if (Object.getOwnPropertySymbols) {
336
+ var t = Object.getOwnPropertySymbols(e);
337
+ r && (t = t.filter(function(a) {
338
+ return Object.getOwnPropertyDescriptor(e, a).enumerable;
339
+ })), n.push.apply(n, t);
340
+ }
341
+ return n;
342
+ }
343
+ function L(e) {
344
+ for (var r = 1; r < arguments.length; r++) {
345
+ var n = arguments[r] != null ? arguments[r] : {};
346
+ r % 2 ? fe(Object(n), !0).forEach(function(t) {
347
+ T(e, t, n[t]);
348
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fe(Object(n)).forEach(function(t) {
349
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
350
+ });
351
+ }
352
+ return e;
353
+ }
354
+ function yt(e, r) {
355
+ if (!(e instanceof r))
356
+ throw new TypeError("Cannot call a class as a function");
357
+ }
358
+ function me(e, r) {
359
+ for (var n = 0; n < r.length; n++) {
360
+ var t = r[n];
361
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, Se(t.key), t);
362
+ }
363
+ }
364
+ function gt(e, r, n) {
365
+ return me(e.prototype, r), me(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
366
+ }
367
+ function bt(e, r, n) {
368
+ return r = q(r), xt(e, we() ? Reflect.construct(r, n, q(e).constructor) : r.apply(e, n));
369
+ }
370
+ function xt(e, r) {
371
+ if (r && (z(r) === "object" || typeof r == "function"))
372
+ return r;
373
+ if (r !== void 0)
374
+ throw new TypeError("Derived constructors may only return object or undefined");
375
+ return At(e);
376
+ }
377
+ function At(e) {
378
+ if (e === void 0)
379
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
380
+ return e;
381
+ }
382
+ function we() {
383
+ try {
384
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
385
+ }));
386
+ } catch {
387
+ }
388
+ return (we = function() {
389
+ return !!e;
390
+ })();
391
+ }
392
+ function q(e) {
393
+ return q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
394
+ return n.__proto__ || Object.getPrototypeOf(n);
395
+ }, q(e);
396
+ }
397
+ function Et(e, r) {
398
+ if (typeof r != "function" && r !== null)
399
+ throw new TypeError("Super expression must either be null or a function");
400
+ e.prototype = Object.create(r && r.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), r && re(e, r);
401
+ }
402
+ function re(e, r) {
403
+ return re = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, a) {
404
+ return t.__proto__ = a, t;
405
+ }, re(e, r);
406
+ }
407
+ function T(e, r, n) {
408
+ return r = Se(r), r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
409
+ }
410
+ function Se(e) {
411
+ var r = Ot(e, "string");
412
+ return z(r) == "symbol" ? r : r + "";
413
+ }
414
+ function Ot(e, r) {
415
+ if (z(e) != "object" || !e) return e;
416
+ var n = e[Symbol.toPrimitive];
417
+ if (n !== void 0) {
418
+ var t = n.call(e, r || "default");
419
+ if (z(t) != "object") return t;
420
+ throw new TypeError("@@toPrimitive must return a primitive value.");
421
+ }
422
+ return (r === "string" ? String : Number)(e);
423
+ }
424
+ var k = /* @__PURE__ */ function(e) {
425
+ function r() {
426
+ var n;
427
+ yt(this, r);
428
+ for (var t = arguments.length, a = new Array(t), o = 0; o < t; o++)
429
+ a[o] = arguments[o];
430
+ return n = bt(this, r, [].concat(a)), T(n, "state", {
431
+ isAnimationFinished: !0
432
+ }), T(n, "id", Ge("recharts-area-")), T(n, "handleAnimationEnd", function() {
433
+ var s = n.props.onAnimationEnd;
434
+ n.setState({
435
+ isAnimationFinished: !0
436
+ }), te(s) && s();
437
+ }), T(n, "handleAnimationStart", function() {
438
+ var s = n.props.onAnimationStart;
439
+ n.setState({
440
+ isAnimationFinished: !1
441
+ }), te(s) && s();
442
+ }), n;
443
+ }
444
+ return Et(r, e), gt(r, [{
445
+ key: "renderDots",
446
+ value: function(t, a, o) {
447
+ var s = this.props.isAnimationActive, i = this.state.isAnimationFinished;
448
+ if (s && !i)
449
+ return null;
450
+ var l = this.props, u = l.dot, c = l.points, p = l.dataKey, d = V(this.props, !1), g = V(u, !0), A = c.map(function(x, C) {
451
+ var E = L(L(L({
452
+ key: "dot-".concat(C),
453
+ r: 3
454
+ }, d), g), {}, {
455
+ index: C,
456
+ cx: x.x,
457
+ cy: x.y,
458
+ dataKey: p,
459
+ value: x.value,
460
+ payload: x.payload,
461
+ points: c
462
+ });
463
+ return r.renderDotItem(u, E);
464
+ }), O = {
465
+ clipPath: t ? "url(#clipPath-".concat(a ? "" : "dots-").concat(o, ")") : null
466
+ };
467
+ return /* @__PURE__ */ h.createElement(K, $({
468
+ className: "recharts-area-dots"
469
+ }, O), A);
470
+ }
471
+ }, {
472
+ key: "renderHorizontalRect",
473
+ value: function(t) {
474
+ var a = this.props, o = a.baseLine, s = a.points, i = a.strokeWidth, l = s[0].x, u = s[s.length - 1].x, c = t * Math.abs(l - u), p = X(s.map(function(d) {
475
+ return d.y || 0;
476
+ }));
477
+ return B(o) && typeof o == "number" ? p = Math.max(o, p) : o && Array.isArray(o) && o.length && (p = Math.max(X(o.map(function(d) {
478
+ return d.y || 0;
479
+ })), p)), B(p) ? /* @__PURE__ */ h.createElement("rect", {
480
+ x: l < u ? l : l - c,
481
+ y: 0,
482
+ width: c,
483
+ height: Math.floor(p + (i ? parseInt("".concat(i), 10) : 1))
484
+ }) : null;
485
+ }
486
+ }, {
487
+ key: "renderVerticalRect",
488
+ value: function(t) {
489
+ var a = this.props, o = a.baseLine, s = a.points, i = a.strokeWidth, l = s[0].y, u = s[s.length - 1].y, c = t * Math.abs(l - u), p = X(s.map(function(d) {
490
+ return d.x || 0;
491
+ }));
492
+ return B(o) && typeof o == "number" ? p = Math.max(o, p) : o && Array.isArray(o) && o.length && (p = Math.max(X(o.map(function(d) {
493
+ return d.x || 0;
494
+ })), p)), B(p) ? /* @__PURE__ */ h.createElement("rect", {
495
+ x: 0,
496
+ y: l < u ? l : l - c,
497
+ width: p + (i ? parseInt("".concat(i), 10) : 1),
498
+ height: Math.floor(c)
499
+ }) : null;
500
+ }
501
+ }, {
502
+ key: "renderClipRect",
503
+ value: function(t) {
504
+ var a = this.props.layout;
505
+ return a === "vertical" ? this.renderVerticalRect(t) : this.renderHorizontalRect(t);
506
+ }
507
+ }, {
508
+ key: "renderAreaStatically",
509
+ value: function(t, a, o, s) {
510
+ var i = this.props, l = i.layout, u = i.type, c = i.stroke, p = i.connectNulls, d = i.isRange;
511
+ i.ref;
512
+ var g = Oe(i, mt);
513
+ return /* @__PURE__ */ h.createElement(K, {
514
+ clipPath: o ? "url(#clipPath-".concat(s, ")") : null
515
+ }, /* @__PURE__ */ h.createElement(Z, $({}, V(g, !0), {
516
+ points: t,
517
+ connectNulls: p,
518
+ type: u,
519
+ baseLine: a,
520
+ layout: l,
521
+ stroke: "none",
522
+ className: "recharts-area-area"
523
+ })), c !== "none" && /* @__PURE__ */ h.createElement(Z, $({}, V(this.props, !1), {
524
+ className: "recharts-area-curve",
525
+ layout: l,
526
+ type: u,
527
+ connectNulls: p,
528
+ fill: "none",
529
+ points: t
530
+ })), c !== "none" && d && /* @__PURE__ */ h.createElement(Z, $({}, V(this.props, !1), {
531
+ className: "recharts-area-curve",
532
+ layout: l,
533
+ type: u,
534
+ connectNulls: p,
535
+ fill: "none",
536
+ points: a
537
+ })));
538
+ }
539
+ }, {
540
+ key: "renderAreaWithAnimation",
541
+ value: function(t, a) {
542
+ var o = this, s = this.props, i = s.points, l = s.baseLine, u = s.isAnimationActive, c = s.animationBegin, p = s.animationDuration, d = s.animationEasing, g = s.animationId, A = this.state, O = A.prevPoints, x = A.prevBaseLine;
543
+ return /* @__PURE__ */ h.createElement(He, {
544
+ begin: c,
545
+ duration: p,
546
+ isActive: u,
547
+ easing: d,
548
+ from: {
549
+ t: 0
550
+ },
551
+ to: {
552
+ t: 1
553
+ },
554
+ key: "area-".concat(g),
555
+ onAnimationEnd: this.handleAnimationEnd,
556
+ onAnimationStart: this.handleAnimationStart
557
+ }, function(C) {
558
+ var E = C.t;
559
+ if (O) {
560
+ var P = O.length / i.length, y = i.map(function(w, _) {
561
+ var N = Math.floor(_ * P);
562
+ if (O[N]) {
563
+ var j = O[N], R = M(j.x, w.x), F = M(j.y, w.y);
564
+ return L(L({}, w), {}, {
565
+ x: R(E),
566
+ y: F(E)
567
+ });
568
+ }
569
+ return w;
570
+ }), m;
571
+ if (B(l) && typeof l == "number") {
572
+ var v = M(x, l);
573
+ m = v(E);
574
+ } else if (le(l) || Xe(l)) {
575
+ var D = M(x, 0);
576
+ m = D(E);
577
+ } else
578
+ m = l.map(function(w, _) {
579
+ var N = Math.floor(_ * P);
580
+ if (x[N]) {
581
+ var j = x[N], R = M(j.x, w.x), F = M(j.y, w.y);
582
+ return L(L({}, w), {}, {
583
+ x: R(E),
584
+ y: F(E)
585
+ });
586
+ }
587
+ return w;
588
+ });
589
+ return o.renderAreaStatically(y, m, t, a);
590
+ }
591
+ return /* @__PURE__ */ h.createElement(K, null, /* @__PURE__ */ h.createElement("defs", null, /* @__PURE__ */ h.createElement("clipPath", {
592
+ id: "animationClipPath-".concat(a)
593
+ }, o.renderClipRect(E))), /* @__PURE__ */ h.createElement(K, {
594
+ clipPath: "url(#animationClipPath-".concat(a, ")")
595
+ }, o.renderAreaStatically(i, l, t, a)));
596
+ });
597
+ }
598
+ }, {
599
+ key: "renderArea",
600
+ value: function(t, a) {
601
+ var o = this.props, s = o.points, i = o.baseLine, l = o.isAnimationActive, u = this.state, c = u.prevPoints, p = u.prevBaseLine, d = u.totalLength;
602
+ return l && s && s.length && (!c && d > 0 || !ce(c, s) || !ce(p, i)) ? this.renderAreaWithAnimation(t, a) : this.renderAreaStatically(s, i, t, a);
603
+ }
604
+ }, {
605
+ key: "render",
606
+ value: function() {
607
+ var t, a = this.props, o = a.hide, s = a.dot, i = a.points, l = a.className, u = a.top, c = a.left, p = a.xAxis, d = a.yAxis, g = a.width, A = a.height, O = a.isAnimationActive, x = a.id;
608
+ if (o || !i || !i.length)
609
+ return null;
610
+ var C = this.state.isAnimationFinished, E = i.length === 1, P = be("recharts-area", l), y = p && p.allowDataOverflow, m = d && d.allowDataOverflow, v = y || m, D = le(x) ? this.id : x, w = (t = V(s, !1)) !== null && t !== void 0 ? t : {
611
+ r: 3,
612
+ strokeWidth: 2
613
+ }, _ = w.r, N = _ === void 0 ? 3 : _, j = w.strokeWidth, R = j === void 0 ? 2 : j, F = Ue(s) ? s : {}, ne = F.clipDot, ae = ne === void 0 ? !0 : ne, G = N * 2 + R;
614
+ return /* @__PURE__ */ h.createElement(K, {
615
+ className: P
616
+ }, y || m ? /* @__PURE__ */ h.createElement("defs", null, /* @__PURE__ */ h.createElement("clipPath", {
617
+ id: "clipPath-".concat(D)
618
+ }, /* @__PURE__ */ h.createElement("rect", {
619
+ x: y ? c : c - g / 2,
620
+ y: m ? u : u - A / 2,
621
+ width: y ? g : g * 2,
622
+ height: m ? A : A * 2
623
+ })), !ae && /* @__PURE__ */ h.createElement("clipPath", {
624
+ id: "clipPath-dots-".concat(D)
625
+ }, /* @__PURE__ */ h.createElement("rect", {
626
+ x: c - G / 2,
627
+ y: u - G / 2,
628
+ width: g + G,
629
+ height: A + G
630
+ }))) : null, E ? null : this.renderArea(v, D), (s || E) && this.renderDots(v, ae, D), (!O || C) && Ye.renderCallByParent(this.props, i));
631
+ }
632
+ }], [{
633
+ key: "getDerivedStateFromProps",
634
+ value: function(t, a) {
635
+ return t.animationId !== a.prevAnimationId ? {
636
+ prevAnimationId: t.animationId,
637
+ curPoints: t.points,
638
+ curBaseLine: t.baseLine,
639
+ prevPoints: a.curPoints,
640
+ prevBaseLine: a.curBaseLine
641
+ } : t.points !== a.curPoints || t.baseLine !== a.curBaseLine ? {
642
+ curPoints: t.points,
643
+ curBaseLine: t.baseLine
644
+ } : null;
645
+ }
646
+ }]);
647
+ }(Ce);
648
+ Ee = k;
649
+ T(k, "displayName", "Area");
650
+ T(k, "defaultProps", {
651
+ stroke: "#3182bd",
652
+ fill: "#3182bd",
653
+ fillOpacity: 0.6,
654
+ xAxisId: 0,
655
+ yAxisId: 0,
656
+ legendType: "line",
657
+ connectNulls: !1,
658
+ // points of area
659
+ points: [],
660
+ dot: !1,
661
+ activeDot: !0,
662
+ hide: !1,
663
+ isAnimationActive: !Ke.isSsr,
664
+ animationBegin: 0,
665
+ animationDuration: 1500,
666
+ animationEasing: "ease"
667
+ });
668
+ T(k, "getBaseValue", function(e, r, n, t) {
669
+ var a = e.layout, o = e.baseValue, s = r.props.baseValue, i = s ?? o;
670
+ if (B(i) && typeof i == "number")
671
+ return i;
672
+ var l = a === "horizontal" ? t : n, u = l.scale.domain();
673
+ if (l.type === "number") {
674
+ var c = Math.max(u[0], u[1]), p = Math.min(u[0], u[1]);
675
+ return i === "dataMin" ? p : i === "dataMax" || c < 0 ? c : Math.max(Math.min(u[0], u[1]), 0);
676
+ }
677
+ return i === "dataMin" ? u[0] : i === "dataMax" ? u[1] : u[0];
678
+ });
679
+ T(k, "getComposedData", function(e) {
680
+ var r = e.props, n = e.item, t = e.xAxis, a = e.yAxis, o = e.xAxisTicks, s = e.yAxisTicks, i = e.bandSize, l = e.dataKey, u = e.stackedData, c = e.dataStartIndex, p = e.displayedData, d = e.offset, g = r.layout, A = u && u.length, O = Ee.getBaseValue(r, n, t, a), x = g === "horizontal", C = !1, E = p.map(function(y, m) {
681
+ var v;
682
+ A ? v = u[c + m] : (v = oe(y, l), Array.isArray(v) ? C = !0 : v = [O, v]);
683
+ var D = v[1] == null || A && oe(y, l) == null;
684
+ return x ? {
685
+ x: se({
686
+ axis: t,
687
+ ticks: o,
688
+ bandSize: i,
689
+ entry: y,
690
+ index: m
691
+ }),
692
+ y: D ? null : a.scale(v[1]),
693
+ value: v,
694
+ payload: y
695
+ } : {
696
+ x: D ? null : t.scale(v[1]),
697
+ y: se({
698
+ axis: a,
699
+ ticks: s,
700
+ bandSize: i,
701
+ entry: y,
702
+ index: m
703
+ }),
704
+ value: v,
705
+ payload: y
706
+ };
707
+ }), P;
708
+ return A || C ? P = E.map(function(y) {
709
+ var m = Array.isArray(y.value) ? y.value[0] : null;
710
+ return x ? {
711
+ x: y.x,
712
+ y: m != null && y.y != null ? a.scale(m) : null
713
+ } : {
714
+ x: m != null ? t.scale(m) : null,
715
+ y: y.y
716
+ };
717
+ }) : P = x ? a.scale(O) : t.scale(O), L({
718
+ points: E,
719
+ baseLine: P,
720
+ layout: g,
721
+ isRange: C
722
+ }, d);
723
+ });
724
+ T(k, "renderDotItem", function(e, r) {
725
+ var n;
726
+ if (/* @__PURE__ */ h.isValidElement(e))
727
+ n = /* @__PURE__ */ h.cloneElement(e, r);
728
+ else if (te(e))
729
+ n = e(r);
730
+ else {
731
+ var t = be("recharts-area-dot", typeof e != "boolean" ? e.className : ""), a = r.key, o = Oe(r, vt);
732
+ n = /* @__PURE__ */ h.createElement(We, $({}, o, {
733
+ key: a,
734
+ className: t
735
+ }));
736
+ }
737
+ return n;
738
+ });
739
+ var wt = ye({
740
+ chartName: "BarChart",
741
+ GraphicalChild: ee,
742
+ defaultTooltipEventType: "axis",
743
+ validateTooltipEventTypes: ["axis", "item"],
744
+ axisComponents: [{
745
+ axisType: "xAxis",
746
+ AxisComp: U
747
+ }, {
748
+ axisType: "yAxis",
749
+ AxisComp: Y
750
+ }],
751
+ formatAxisMap: ge
752
+ }), St = ye({
753
+ chartName: "AreaChart",
754
+ GraphicalChild: k,
755
+ axisComponents: [{
756
+ axisType: "xAxis",
757
+ AxisComp: U
758
+ }, {
759
+ axisType: "yAxis",
760
+ AxisComp: Y
761
+ }],
762
+ formatAxisMap: ge
763
+ });
764
+ const { Content: Ct } = qe, br = () => {
765
+ const [e, r] = h.useState("line"), { breakpoint: n } = Pe(), t = n === Ne.narrow, [a, o] = De("1"), s = (c) => {
766
+ o(c.id), r(c.id === "1" ? "line" : "bar");
767
+ }, i = {
768
+ totalDeliveries: 107,
769
+ evDeliveries: 89,
770
+ iceDeliveries: 68
771
+ };
772
+ return /* @__PURE__ */ S(Ct, { style: { margin: "24px 16px", padding: 24, background: "#fff" }, children: [
773
+ /* @__PURE__ */ S(
774
+ ie,
775
+ {
776
+ direction: t ? "vertical" : "horizontal",
777
+ size: "large",
778
+ style: t ? {
779
+ display: "flex",
780
+ flexDirection: "column",
781
+ gap: 8,
782
+ marginBottom: 26,
783
+ justifyContent: "flex-start",
784
+ width: "100%"
785
+ } : {
786
+ marginBottom: 26,
787
+ justifyContent: "space-between",
788
+ width: "100%"
789
+ },
790
+ children: [
791
+ /* @__PURE__ */ S(
792
+ _e,
793
+ {
794
+ style: {
795
+ width: "100%"
796
+ },
797
+ children: [
798
+ /* @__PURE__ */ f(Q, { span: 8, style: { textAlign: "center", padding: "0 4px" }, children: /* @__PURE__ */ S(H, { children: [
799
+ /* @__PURE__ */ f(
800
+ I,
801
+ {
802
+ variant: "heading3",
803
+ level: 4,
804
+ style: {
805
+ whiteSpace: "nowrap"
806
+ },
807
+ children: "Total Deliveries"
808
+ }
809
+ ),
810
+ /* @__PURE__ */ f(I, { variant: "digits2", level: 2, children: i.totalDeliveries })
811
+ ] }) }),
812
+ /* @__PURE__ */ f(Q, { span: 8, style: { textAlign: "center", padding: "0 4px" }, children: /* @__PURE__ */ S(H, { children: [
813
+ /* @__PURE__ */ f(I, { variant: "heading3", level: 4, children: "EV Deliveries" }),
814
+ /* @__PURE__ */ f(I, { variant: "digits2", level: 2, children: i.evDeliveries })
815
+ ] }) }),
816
+ /* @__PURE__ */ f(Q, { span: 8, style: { textAlign: "center", padding: "0 4px" }, children: /* @__PURE__ */ S(H, { children: [
817
+ /* @__PURE__ */ f(I, { variant: "heading3", level: 4, children: "ICE Deliveries" }),
818
+ /* @__PURE__ */ f(I, { variant: "digits2", level: 2, children: i.iceDeliveries })
819
+ ] }) })
820
+ ]
821
+ }
822
+ ),
823
+ /* @__PURE__ */ f(
824
+ W,
825
+ {
826
+ title: "EV (Goal Increase 10%)",
827
+ value: 52.28,
828
+ precision: 2,
829
+ valueStyle: { color: "#3f8600" },
830
+ prefix: /* @__PURE__ */ f(Ae, {}),
831
+ suffix: "%"
832
+ }
833
+ ),
834
+ /* @__PURE__ */ f(
835
+ W,
836
+ {
837
+ title: "ICE (Goal Reduce 10%)",
838
+ value: 25.28,
839
+ precision: 2,
840
+ valueStyle: { color: "#3f8600" },
841
+ prefix: /* @__PURE__ */ f(xe, {}),
842
+ suffix: "%"
843
+ }
844
+ )
845
+ ]
846
+ }
847
+ ),
848
+ /* @__PURE__ */ f(
849
+ Te,
850
+ {
851
+ columns: ke,
852
+ dataSource: J,
853
+ rowKey: "id",
854
+ pagination: { pageSize: 5 },
855
+ scroll: { x: "max-content" }
856
+ }
857
+ ),
858
+ /* @__PURE__ */ S(H, { style: { marginTop: 24 }, children: [
859
+ /* @__PURE__ */ f("div", { style: { marginBottom: 24 }, children: /* @__PURE__ */ f(I, { variant: "heading3", level: 4, children: "Delivery Trends" }) }),
860
+ e === "line" ? /* @__PURE__ */ S(
861
+ St,
862
+ {
863
+ width: t ? window.innerWidth - 50 : 800,
864
+ height: 300,
865
+ data: J.map((c) => ({
866
+ deliveryTime: c.deliveryTime,
867
+ EV: c.vehicleType === "EV" ? c.parcelsDelivered : 0,
868
+ ICE: c.vehicleType === "ICE" ? c.parcelsDelivered : 0
869
+ })),
870
+ children: [
871
+ /* @__PURE__ */ f(ue, { strokeDasharray: "3 3" }),
872
+ /* @__PURE__ */ f(U, { dataKey: "deliveryTime" }),
873
+ /* @__PURE__ */ f(Y, {}),
874
+ /* @__PURE__ */ f(pe, {}),
875
+ /* @__PURE__ */ f(de, {}),
876
+ /* @__PURE__ */ S("defs", { children: [
877
+ /* @__PURE__ */ S("linearGradient", { id: "colorEV", x1: "0", y1: "0", x2: "0", y2: "1", children: [
878
+ /* @__PURE__ */ f("stop", { offset: "5%", stopColor: "#8884d8", stopOpacity: 0.8 }),
879
+ /* @__PURE__ */ f("stop", { offset: "95%", stopColor: "#8884d8", stopOpacity: 0.1 })
880
+ ] }),
881
+ /* @__PURE__ */ S("linearGradient", { id: "colorICE", x1: "0", y1: "0", x2: "0", y2: "1", children: [
882
+ /* @__PURE__ */ f("stop", { offset: "5%", stopColor: "#82ca9d", stopOpacity: 0.8 }),
883
+ /* @__PURE__ */ f("stop", { offset: "95%", stopColor: "#82ca9d", stopOpacity: 0.1 })
884
+ ] })
885
+ ] }),
886
+ /* @__PURE__ */ f(
887
+ k,
888
+ {
889
+ type: "monotone",
890
+ dataKey: "EV",
891
+ stroke: "#8884d8",
892
+ fill: "url(#colorEV)",
893
+ name: "EV Deliveries"
894
+ }
895
+ ),
896
+ /* @__PURE__ */ f(
897
+ k,
898
+ {
899
+ type: "monotone",
900
+ dataKey: "ICE",
901
+ stroke: "#82ca9d",
902
+ fill: "url(#colorICE)",
903
+ name: "ICE Deliveries"
904
+ }
905
+ )
906
+ ]
907
+ }
908
+ ) : /* @__PURE__ */ S(
909
+ wt,
910
+ {
911
+ width: t ? window.innerWidth - 50 : 800,
912
+ height: 300,
913
+ data: J.map((c) => ({
914
+ deliveryTime: c.deliveryTime,
915
+ EV: c.vehicleType === "EV" ? c.parcelsDelivered : 0,
916
+ ICE: c.vehicleType === "ICE" ? c.parcelsDelivered : 0
917
+ })),
918
+ children: [
919
+ /* @__PURE__ */ f(ue, { strokeDasharray: "3 3" }),
920
+ /* @__PURE__ */ f(U, { dataKey: "deliveryTime" }),
921
+ /* @__PURE__ */ f(Y, {}),
922
+ /* @__PURE__ */ f(pe, {}),
923
+ /* @__PURE__ */ f(de, {}),
924
+ /* @__PURE__ */ f(ee, { dataKey: "EV", fill: "#8884d8", name: "EV Deliveries" }),
925
+ /* @__PURE__ */ f(ee, { dataKey: "ICE", fill: "#82ca9d", name: "ICE Deliveries" })
926
+ ]
927
+ }
928
+ ),
929
+ /* @__PURE__ */ f("div", { style: { marginBottom: 16 }, children: /* @__PURE__ */ S(ie, { direction: "vertical", size: "small", children: [
930
+ /* @__PURE__ */ f(I, { variant: "body2", children: "Chart Type:" }),
931
+ /* @__PURE__ */ f(
932
+ je,
933
+ {
934
+ selectedId: a,
935
+ options: [
936
+ { id: "1", label: "Line Chart" },
937
+ { id: "2", label: "Bar Chart" }
938
+ ],
939
+ onChange: s
940
+ }
941
+ )
942
+ ] }) })
943
+ ] })
944
+ ] });
945
+ };
946
+ export {
947
+ br as default
948
+ };