@gobolt/genesis 0.0.10 → 0.1.0

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 (438) hide show
  1. package/README.md +8 -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/ClockCircleOutlined-BaXQuLIn.js +13 -0
  6. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  7. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  8. package/dist/{Compact-CGY560JF.js → Compact-Du9689ax.js} +41 -44
  9. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
  10. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
  11. package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
  12. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  13. package/dist/Keyframes-C9_aCDvn.js +17 -0
  14. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  15. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  16. package/dist/{Overflow-PBZD-PFm.js → Overflow-DWf4XIal.js} +62 -61
  17. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  18. package/dist/Skeleton-BVN4pcVe.js +560 -0
  19. package/dist/TextArea-Bkf9hh7l.js +708 -0
  20. package/dist/Typography-CoZ5qD-t.js +705 -0
  21. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  22. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  23. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  24. package/dist/{button-CDQgO1OK.js → button-BwqpCxVM.js} +127 -116
  25. package/dist/clsx-OuTLNxxd.js +16 -0
  26. package/dist/components/Avatar/Avatar.d.ts +12 -0
  27. package/dist/components/Avatar/Avatar.js +61 -0
  28. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  30. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  31. package/dist/components/Avatar/index.d.ts +2 -0
  32. package/dist/components/Avatar/index.js +4 -0
  33. package/dist/components/Avatar/styles.d.ts +18 -0
  34. package/dist/components/Avatar/styles.js +326 -0
  35. package/dist/components/Badge/Badge.d.ts +5 -3
  36. package/dist/components/Badge/Badge.js +67 -100
  37. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  38. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  39. package/dist/components/Badge/styles.d.ts +12 -3
  40. package/dist/components/Badge/styles.js +30 -27
  41. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  42. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  43. package/dist/components/Breadcrumb/styles.js +239 -2260
  44. package/dist/components/Button/Button.d.ts +4 -3
  45. package/dist/components/Button/Button.js +10 -6
  46. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  47. package/dist/components/Button/__tests__/Button.test.js +1 -1
  48. package/dist/components/Button/styles.d.ts +2 -2
  49. package/dist/components/Button/styles.js +20 -17
  50. package/dist/components/Card/Card.d.ts +9 -0
  51. package/dist/components/Card/Card.js +16 -0
  52. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  53. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  54. package/dist/components/Card/__tests__/Card.test.js +16 -0
  55. package/dist/components/Card/index.d.ts +2 -0
  56. package/dist/components/Card/index.js +4 -0
  57. package/dist/components/Card/styles.d.ts +16 -0
  58. package/dist/components/Card/styles.js +12 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  60. package/dist/components/Checkbox/Checkbox.js +28 -16
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  62. package/dist/components/Checkbox/styles.js +22 -457
  63. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  64. package/dist/components/Dashboard/Dashboard.js +5 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  66. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  67. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  73. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  75. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  77. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  78. package/dist/components/Dashboard/index.d.ts +2 -0
  79. package/dist/components/Dashboard/index.js +4 -0
  80. package/dist/components/Dashboard/styles.d.ts +14 -0
  81. package/dist/components/Dashboard/styles.js +11 -0
  82. package/dist/components/DatePicker/DatePicker.d.ts +6 -0
  83. package/dist/components/DatePicker/DatePicker.js +5 -0
  84. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
  85. package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  86. package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
  87. package/dist/components/DatePicker/index.d.ts +2 -0
  88. package/dist/components/DatePicker/index.js +4 -0
  89. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  90. package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
  91. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
  92. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  93. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
  94. package/dist/components/DateRangePicker/index.d.ts +2 -0
  95. package/dist/components/DateRangePicker/index.js +4 -0
  96. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  97. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  98. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  99. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  100. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  101. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  102. package/dist/components/ErrorBoundary/index.js +4 -0
  103. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  104. package/dist/components/ErrorBoundary/styles.js +11 -0
  105. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  106. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  107. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  108. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  109. package/dist/components/Form/Form.js +3 -3
  110. package/dist/components/Form/__stories__/FormStory.js +127 -50
  111. package/dist/components/Form/__tests__/form.test.js +2 -2
  112. package/dist/components/Form/index.js +1 -1
  113. package/dist/components/Form/styles.js +1 -1
  114. package/dist/components/Glyph/Glyph.d.ts +4 -0
  115. package/dist/components/Glyph/Glyph.js +9 -0
  116. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  117. package/dist/components/Glyph/index.d.ts +2 -0
  118. package/dist/components/Glyph/index.js +4 -0
  119. package/dist/components/Glyph/styles.d.ts +14 -0
  120. package/dist/components/Glyph/styles.js +11 -0
  121. package/dist/components/Input/Input.d.ts +1 -2
  122. package/dist/components/Input/Input.js +14 -10
  123. package/dist/components/Input/__tests__/Input.test.js +1 -1
  124. package/dist/components/Input/styles.js +58 -466
  125. package/dist/components/Layout/Content/Content.d.ts +11 -0
  126. package/dist/components/Layout/Content/Content.js +32 -0
  127. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  128. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  129. package/dist/components/Layout/Content/index.d.ts +2 -0
  130. package/dist/components/Layout/Content/index.js +4 -0
  131. package/dist/components/Layout/Content/styles.d.ts +11 -0
  132. package/dist/components/Layout/Content/styles.js +16 -0
  133. package/dist/components/Layout/Layout.d.ts +8 -0
  134. package/dist/components/Layout/Layout.js +6 -0
  135. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  136. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  137. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  138. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  139. package/dist/components/Layout/MainLayout/index.js +4 -0
  140. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  141. package/dist/components/Layout/MainLayout/styles.js +69 -0
  142. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  143. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  144. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  145. package/dist/components/Layout/index.d.ts +2 -0
  146. package/dist/components/Layout/index.js +4 -0
  147. package/dist/components/Message/Message.d.ts +6 -4
  148. package/dist/components/Message/Message.js +70 -43
  149. package/dist/components/Message/__tests__/Message.test.js +1 -1
  150. package/dist/components/Message/styles.d.ts +1 -0
  151. package/dist/components/Message/styles.js +15 -11
  152. package/dist/components/Notification/Notification.js +145 -120
  153. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  154. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  155. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  156. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  157. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  158. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  159. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  160. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  161. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  162. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  163. package/dist/components/Notification/styles.d.ts +1 -1
  164. package/dist/components/Notification/styles.js +1 -1
  165. package/dist/components/Popover/Popover.d.ts +10 -0
  166. package/dist/components/Popover/Popover.js +21 -0
  167. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  168. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  169. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  170. package/dist/components/Popover/index.d.ts +2 -0
  171. package/dist/components/Popover/index.js +4 -0
  172. package/dist/components/Popover/styles.d.ts +15 -0
  173. package/dist/components/Popover/styles.js +6 -0
  174. package/dist/components/Progress/Progress.d.ts +18 -0
  175. package/dist/components/Progress/Progress.js +91 -0
  176. package/dist/components/Progress/Progress.util.d.ts +4 -0
  177. package/dist/components/Progress/Progress.util.js +62 -0
  178. package/dist/components/Progress/ProgressText.d.ts +11 -0
  179. package/dist/components/Progress/ProgressText.js +67 -0
  180. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  181. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  182. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  183. package/dist/components/Progress/index.d.ts +2 -0
  184. package/dist/components/Progress/index.js +4 -0
  185. package/dist/components/Progress/styles.d.ts +17 -0
  186. package/dist/components/Progress/styles.js +793 -0
  187. package/dist/components/Radio/Radio.js +22 -6
  188. package/dist/components/Radio/RadioGroup.js +1 -1
  189. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  190. package/dist/components/Radio/index.d.ts +1 -0
  191. package/dist/components/Row/Row.d.ts +14 -0
  192. package/dist/components/Row/Row.js +38 -0
  193. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  194. package/dist/components/Row/RowActions/RowActions.js +59 -0
  195. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  196. package/dist/components/Row/RowActions/styles.js +32 -0
  197. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  198. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  199. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  200. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  201. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  202. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  203. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  204. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  205. package/dist/components/Row/__tests__/Row.test.js +16 -0
  206. package/dist/components/Row/index.d.ts +2 -0
  207. package/dist/components/Row/index.js +4 -0
  208. package/dist/components/Row/styles.d.ts +15 -0
  209. package/dist/components/Row/styles.js +15 -0
  210. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  211. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  212. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  213. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  214. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  215. package/dist/components/SegmentedControls/index.d.ts +2 -0
  216. package/dist/components/SegmentedControls/index.js +4 -0
  217. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  218. package/dist/components/SegmentedControls/styles.js +511 -0
  219. package/dist/components/Select/Select.d.ts +2 -4
  220. package/dist/components/Select/Select.js +12 -11
  221. package/dist/components/Select/__tests__/Select.test.js +1 -1
  222. package/dist/components/Select/styles.js +39 -3654
  223. package/dist/components/Shapes/Shapes.d.ts +6 -0
  224. package/dist/components/Shapes/Shapes.js +8 -0
  225. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  226. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  227. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  228. package/dist/components/Shapes/index.d.ts +2 -0
  229. package/dist/components/Shapes/index.js +4 -0
  230. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  231. package/dist/components/Shapes/variants/Circle.js +23 -0
  232. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  233. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  234. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  235. package/dist/components/Shapes/variants/Triangle.js +23 -0
  236. package/dist/components/Switch/Switch.d.ts +9 -0
  237. package/dist/components/Switch/Switch.js +22 -0
  238. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  239. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  240. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  241. package/dist/components/Switch/index.d.ts +2 -0
  242. package/dist/components/Switch/index.js +4 -0
  243. package/dist/components/Switch/styles.d.ts +9 -0
  244. package/dist/components/Switch/styles.js +456 -0
  245. package/dist/components/Table/Table.d.ts +15 -0
  246. package/dist/components/Table/Table.js +23 -0
  247. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  248. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  249. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  250. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  251. package/dist/components/Table/__tests__/Table.test.js +34 -0
  252. package/dist/components/Table/index.d.ts +2 -0
  253. package/dist/components/Table/index.js +4 -0
  254. package/dist/components/Table/styles.d.ts +8 -0
  255. package/dist/components/Table/styles.js +6 -0
  256. package/dist/components/Tabs/Tabs.d.ts +10 -0
  257. package/dist/components/Tabs/Tabs.js +23 -0
  258. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  259. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  260. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  261. package/dist/components/Tabs/index.d.ts +2 -0
  262. package/dist/components/Tabs/index.js +4 -0
  263. package/dist/components/Tabs/styles.d.ts +12 -0
  264. package/dist/components/Tabs/styles.js +102 -0
  265. package/dist/components/Tile/Tile.d.ts +10 -0
  266. package/dist/components/Tile/Tile.js +21 -0
  267. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  268. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  269. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  270. package/dist/components/Tile/index.d.ts +2 -0
  271. package/dist/components/Tile/index.js +4 -0
  272. package/dist/components/Tile/styles.d.ts +11 -0
  273. package/dist/components/Tile/styles.js +12 -0
  274. package/dist/components/Toast/Toast.js +23 -6
  275. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  276. package/dist/components/Toast/index.js +1 -1
  277. package/dist/components/Toast/styles.d.ts +0 -1
  278. package/dist/components/Toast/styles.js +14 -23
  279. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  280. package/dist/components/Tooltip/Tooltip.js +50 -0
  281. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  282. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  283. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  284. package/dist/components/Tooltip/index.d.ts +2 -0
  285. package/dist/components/Tooltip/index.js +4 -0
  286. package/dist/components/Tooltip/styles.d.ts +20 -0
  287. package/dist/components/Tooltip/styles.js +11 -0
  288. package/dist/components/Typography/Typography.d.ts +5 -1
  289. package/dist/components/Typography/Typography.js +2 -2
  290. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  291. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  292. package/dist/components/Typography/index.js +1 -1
  293. package/dist/components/Typography/styles.d.ts +1 -0
  294. package/dist/components/Typography/styles.js +53 -17
  295. package/dist/components/index.d.ts +35 -1
  296. package/dist/components/index.js +58 -24
  297. package/dist/constants/index.d.ts +4 -0
  298. package/dist/constants/index.js +4 -2
  299. package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
  300. package/dist/dropdown-Dp_PTQ2u.js +2045 -0
  301. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  302. package/dist/genesis/GenesisThemeBreakdown.js +101 -43
  303. package/dist/genesis/labs/Lab.stories.d.ts +6 -0
  304. package/dist/genesis/styles.js +7 -2923
  305. package/dist/iconBase-LROS5hdG.js +112 -0
  306. package/dist/index-BPVue1Yd.js +445 -0
  307. package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
  308. package/dist/index-BRUI9igj.js +11 -0
  309. package/dist/index-B_1Ge8na.js +1846 -0
  310. package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
  311. package/dist/index-BeGv28kJ.js +5173 -0
  312. package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
  313. package/dist/index-BvOLXELm.js +102 -0
  314. package/dist/index-CLSrpQRW.js +416 -0
  315. package/dist/index-CbVOl2U6.js +288 -0
  316. package/dist/index-D0U6r5O7.js +780 -0
  317. package/dist/index-DEu2PVzQ.js +538 -0
  318. package/dist/index-DLdU7Tpd.js +183 -0
  319. package/dist/index-DNQ-jnBx.js +3321 -0
  320. package/dist/index-DOsPeIWJ.js +1000 -0
  321. package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
  322. package/dist/index-DWjq9XYj.js +899 -0
  323. package/dist/index.js +65 -31
  324. package/dist/interface/address.d.ts +10 -0
  325. package/dist/interface/address.js +1 -0
  326. package/dist/interface/appointment.d.ts +57 -0
  327. package/dist/interface/appointment.js +5 -0
  328. package/dist/interface/appointmentV2.d.ts +65 -0
  329. package/dist/interface/appointmentV2.js +1 -0
  330. package/dist/interface/appointmentsState.d.ts +21 -0
  331. package/dist/interface/appointmentsState.js +1 -0
  332. package/dist/interface/common.d.ts +2 -0
  333. package/dist/interface/common.js +1 -0
  334. package/dist/interface/completionData.d.ts +18 -0
  335. package/dist/interface/completionData.js +1 -0
  336. package/dist/interface/deliveryPartner.d.ts +25 -0
  337. package/dist/interface/deliveryPartner.js +1 -0
  338. package/dist/interface/organization.d.ts +9 -0
  339. package/dist/interface/organization.js +1 -0
  340. package/dist/interface/pagination.d.ts +8 -0
  341. package/dist/interface/pagination.js +1 -0
  342. package/dist/interface/roles.d.ts +9 -0
  343. package/dist/interface/roles.js +1 -0
  344. package/dist/interface/route.d.ts +73 -0
  345. package/dist/interface/route.js +1 -0
  346. package/dist/interface/routeAnalysis.d.ts +108 -0
  347. package/dist/interface/routeAnalysis.js +1 -0
  348. package/dist/interface/routeAutomationJob.d.ts +95 -0
  349. package/dist/interface/routeAutomationJob.js +10 -0
  350. package/dist/interface/routeAutomationLog.d.ts +10 -0
  351. package/dist/interface/routeAutomationLog.js +1 -0
  352. package/dist/interface/routeEvent.d.ts +55 -0
  353. package/dist/interface/routeEvent.js +5 -0
  354. package/dist/interface/serviceArea.d.ts +18 -0
  355. package/dist/interface/serviceArea.js +1 -0
  356. package/dist/interface/util.d.ts +3 -0
  357. package/dist/interface/util.js +1 -0
  358. package/dist/interface/vehicle.d.ts +120 -0
  359. package/dist/interface/vehicle.js +1 -0
  360. package/dist/interface/workOrder.d.ts +22 -0
  361. package/dist/interface/workOrder.js +1 -0
  362. package/dist/isVisible-D3-B85BJ.js +22 -0
  363. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  364. package/dist/motion-CUN72xsH.js +33 -0
  365. package/dist/omit-B_u6A-HL.js +9 -0
  366. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  367. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  368. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  369. package/dist/providers/BreakpointThemeProvider.js +21 -0
  370. package/dist/providers/GenesisProvider.js +3 -3
  371. package/dist/providers/ToastProvider.js +22 -6
  372. package/dist/providers/index.js +1 -1
  373. package/dist/providers/useGenesis.js +2 -2
  374. package/dist/responsiveObserver-dCkpy7Cb.js +73 -0
  375. package/dist/roundedArrow-DI_Q-xdU.js +65 -0
  376. package/dist/setup-CUbCc8fQ.js +24706 -0
  377. package/dist/setup.types-dBtAXXGp.js +8824 -0
  378. package/dist/shadow-BoMGMNn3.js +13 -0
  379. package/dist/styleChecker-Cotu61d0.js +21 -0
  380. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +29 -13
  381. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  382. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  383. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  384. package/dist/styles/theme/genesis-theme.js +398 -331
  385. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  386. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  387. package/dist/styles/theme/theme-tree/ThemeTree.js +1652 -0
  388. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  389. package/dist/styles-CWdUpZom.js +289 -0
  390. package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
  391. package/dist/styles-qerRs7Rn.js +9196 -0
  392. package/dist/test/setup.d.ts +2 -3
  393. package/dist/test/setup.js +87 -4
  394. package/dist/test/setup.types.d.ts +7 -0
  395. package/dist/test/setup.types.js +1 -0
  396. package/dist/toArray-U3Az44CO.js +11 -0
  397. package/dist/useBreakpoint-TkMv121M.js +22 -0
  398. package/dist/useCSSVarCls-Dau77fzS.js +11 -0
  399. package/dist/useIcons-Ck4JP1m9.js +321 -0
  400. package/dist/useId-D2tzlufo.js +26 -0
  401. package/dist/useLocale-CTfNpakL.js +16 -0
  402. package/dist/useMergedState-D6toxSxh.js +23 -0
  403. package/dist/useSize-DSq4r6zy.js +9 -0
  404. package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
  405. package/dist/useZIndex-DhyHuZTN.js +44 -0
  406. package/dist/utils/icon-util.d.ts +2 -0
  407. package/dist/utils/icon-util.js +89 -0
  408. package/package.json +27 -15
  409. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  410. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  411. package/dist/TextArea-DKwCct3i.js +0 -1690
  412. package/dist/Typography-aGoDUl4R.js +0 -710
  413. package/dist/index-BZAhCB_K.js +0 -97
  414. package/dist/index-CfDY25LP.js +0 -873
  415. package/dist/index-DPW8XdWj.js +0 -952
  416. package/dist/isVisible-A-IfeFoT.js +0 -367
  417. package/dist/providers/ThemeProvider.d.ts +0 -9
  418. package/dist/providers/ThemeProvider.js +0 -21
  419. package/dist/setup-BvfREoHl.js +0 -33891
  420. package/dist/useLocale-DT-z_vQ6.js +0 -16
  421. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  422. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  423. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  424. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  425. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  426. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  427. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  428. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  429. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  430. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  431. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  432. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  433. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  434. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  435. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  436. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  437. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  438. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,2 @@
1
+ declare const DashboardLayoutHeader: () => import("react/jsx-runtime").JSX.Element;
2
+ export default DashboardLayoutHeader;
@@ -0,0 +1,85 @@
1
+ import { jsx as r, jsxs as e } from "react/jsx-runtime";
2
+ import "../../Avatar/styles.js";
3
+ import "../../Badge/styles.js";
4
+ import "../../../providers/BreakpointThemeProvider.js";
5
+ import { u as p, a as i } from "../../../Typography-CoZ5qD-t.js";
6
+ import { BREAKPOINTS as n } from "../../../constants/index.js";
7
+ import "../../Breadcrumb/styles.js";
8
+ import "../../Button/styles.js";
9
+ import "../../Card/styles.js";
10
+ import "../../Checkbox/styles.js";
11
+ import "react";
12
+ import "../../ErrorBoundaryFallback/styles.js";
13
+ import "../../Input/styles.js";
14
+ import "../../Layout/Content/styles.js";
15
+ import "../../Message/styles.js";
16
+ import "../../Notification/NotificationBadge/styles.js";
17
+ import "../../Notification/styles.js";
18
+ import "../../../styles-CWdUpZom.js";
19
+ import "../../Progress/styles.js";
20
+ import "../../../styles/global-styles.js";
21
+ import "../../Row/styles.js";
22
+ import "../../Row/RowLabelValue/styles.js";
23
+ import "../../Row/RowActions/styles.js";
24
+ import "../../SegmentedControls/styles.js";
25
+ import "../../Select/styles.js";
26
+ import "../../Switch/styles.js";
27
+ import { S as t } from "../../../styles-qerRs7Rn.js";
28
+ import "../../Tabs/styles.js";
29
+ import "../../Tile/styles.js";
30
+ import "../../Toast/styles.js";
31
+ import "../../Tooltip/styles.js";
32
+ import { L as d } from "../../../index-BvOLXELm.js";
33
+ const { Header: o, Content: q } = d, z = () => {
34
+ const { breakpoint: a } = p();
35
+ return a === n.narrow ? /* @__PURE__ */ r(
36
+ o,
37
+ {
38
+ style: {
39
+ background: "#fff",
40
+ padding: "16px",
41
+ display: "flex",
42
+ flexDirection: "column"
43
+ },
44
+ children: /* @__PURE__ */ e(
45
+ t,
46
+ {
47
+ direction: "vertical",
48
+ style: { width: "100%", justifyContent: "space-between" },
49
+ children: [
50
+ /* @__PURE__ */ r(i, { variant: "heading1", level: 4, children: "Driver Dashboard" }),
51
+ /* @__PURE__ */ r(
52
+ "div",
53
+ {
54
+ style: {
55
+ display: "flex",
56
+ alignItems: "center",
57
+ borderRadius: "8px"
58
+ },
59
+ children: /* @__PURE__ */ r(i, { variant: "heading3", level: 4, children: "Febuary 27, 2025" })
60
+ }
61
+ )
62
+ ]
63
+ }
64
+ )
65
+ }
66
+ ) : /* @__PURE__ */ r(o, { style: { background: "#fff", padding: "16px" }, children: /* @__PURE__ */ e(t, { style: { width: "100%", justifyContent: "space-between" }, children: [
67
+ /* @__PURE__ */ r(i, { variant: "heading1", level: 4, children: "Driver Dashboard" }),
68
+ /* @__PURE__ */ r(
69
+ "div",
70
+ {
71
+ style: {
72
+ display: "flex",
73
+ alignItems: "center",
74
+ backgroundColor: "#fafafa",
75
+ padding: "8px 16px",
76
+ borderRadius: "8px"
77
+ },
78
+ children: /* @__PURE__ */ r(i, { variant: "heading3", level: 4, children: "Febuary 27, 2025" })
79
+ }
80
+ )
81
+ ] }) });
82
+ };
83
+ export {
84
+ z as default
85
+ };
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface DeliveryData {
4
+ id: string;
5
+ driverName: string;
6
+ vehicleType: "EV" | "ICE";
7
+ deliveryTime: string;
8
+ parcelsDelivered: number;
9
+ location: string;
10
+ status: "completed" | "in-progress" | "pending";
11
+ }
12
+ declare const DashboardLayoutStory: React.FC;
13
+ export default DashboardLayoutStory;
@@ -0,0 +1,22 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import i, { useState as o, useEffect as n } from "react";
3
+ import a from "./DashboardLayoutHeader.js";
4
+ import s from "./DashboardLayoutContent.js";
5
+ import d from "../../Layout/MainLayout/MainLayout.js";
6
+ const p = () => {
7
+ i.useState("line");
8
+ const [m, r] = o(window.innerWidth < 500);
9
+ return n(() => {
10
+ const t = () => r(window.innerWidth < 500);
11
+ return window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
12
+ }, []), o("1"), /* @__PURE__ */ e(
13
+ d,
14
+ {
15
+ header: /* @__PURE__ */ e(a, {}),
16
+ main: /* @__PURE__ */ e(s, {})
17
+ }
18
+ );
19
+ };
20
+ export {
21
+ p as default
22
+ };
@@ -0,0 +1,12 @@
1
+ interface DeliveryData {
2
+ deliveryTime: string;
3
+ vehicleType: "EV" | "ICE";
4
+ parcelsDelivered: number;
5
+ }
6
+ interface LineChartProps {
7
+ data: DeliveryData[];
8
+ width?: number;
9
+ height?: number;
10
+ }
11
+ export declare const DeliveryLineChart: ({ data, width, height, }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,536 @@
1
+ import { jsxs as st, jsx as S } from "react/jsx-runtime";
2
+ import { G as lt, g as Z, a as Y, i as G, u as ut, D as ct, f as pt, E as ft, L as M, b as R, C as ht, A as dt, c as F, d as yt, h as mt, e as vt, j as gt, X as tt, Y as et, k as bt, l as At, T as xt, m as Pt } from "../../../../generateCategoricalChart-7ceYaiZ2.js";
3
+ import m, { PureComponent as Ot } from "react";
4
+ import { i as Dt } from "../../../../_baseIsEqual-L0-w1QRI.js";
5
+ import { c as q } from "../../../../clsx-OuTLNxxd.js";
6
+ var St = ["type", "layout", "connectNulls", "ref"], Et = ["key"];
7
+ function j(t) {
8
+ "@babel/helpers - typeof";
9
+ return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
10
+ return typeof r;
11
+ } : function(r) {
12
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
13
+ }, j(t);
14
+ }
15
+ function H(t, r) {
16
+ if (t == null) return {};
17
+ var n = wt(t, r), e, a;
18
+ if (Object.getOwnPropertySymbols) {
19
+ var o = Object.getOwnPropertySymbols(t);
20
+ for (a = 0; a < o.length; a++)
21
+ e = o[a], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
22
+ }
23
+ return n;
24
+ }
25
+ function wt(t, r) {
26
+ if (t == null) return {};
27
+ var n = {};
28
+ for (var e in t)
29
+ if (Object.prototype.hasOwnProperty.call(t, e)) {
30
+ if (r.indexOf(e) >= 0) continue;
31
+ n[e] = t[e];
32
+ }
33
+ return n;
34
+ }
35
+ function $() {
36
+ return $ = Object.assign ? Object.assign.bind() : function(t) {
37
+ for (var r = 1; r < arguments.length; r++) {
38
+ var n = arguments[r];
39
+ for (var e in n)
40
+ Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
41
+ }
42
+ return t;
43
+ }, $.apply(this, arguments);
44
+ }
45
+ function J(t, r) {
46
+ var n = Object.keys(t);
47
+ if (Object.getOwnPropertySymbols) {
48
+ var e = Object.getOwnPropertySymbols(t);
49
+ r && (e = e.filter(function(a) {
50
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
51
+ })), n.push.apply(n, e);
52
+ }
53
+ return n;
54
+ }
55
+ function g(t) {
56
+ for (var r = 1; r < arguments.length; r++) {
57
+ var n = arguments[r] != null ? arguments[r] : {};
58
+ r % 2 ? J(Object(n), !0).forEach(function(e) {
59
+ A(t, e, n[e]);
60
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : J(Object(n)).forEach(function(e) {
61
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
62
+ });
63
+ }
64
+ return t;
65
+ }
66
+ function _(t) {
67
+ return Ct(t) || kt(t) || jt(t) || _t();
68
+ }
69
+ function _t() {
70
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
72
+ }
73
+ function jt(t, r) {
74
+ if (t) {
75
+ if (typeof t == "string") return U(t, r);
76
+ var n = Object.prototype.toString.call(t).slice(8, -1);
77
+ if (n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set") return Array.from(t);
78
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return U(t, r);
79
+ }
80
+ }
81
+ function kt(t) {
82
+ if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
83
+ }
84
+ function Ct(t) {
85
+ if (Array.isArray(t)) return U(t);
86
+ }
87
+ function U(t, r) {
88
+ (r == null || r > t.length) && (r = t.length);
89
+ for (var n = 0, e = new Array(r); n < r; n++) e[n] = t[n];
90
+ return e;
91
+ }
92
+ function Lt(t, r) {
93
+ if (!(t instanceof r))
94
+ throw new TypeError("Cannot call a class as a function");
95
+ }
96
+ function Q(t, r) {
97
+ for (var n = 0; n < r.length; n++) {
98
+ var e = r[n];
99
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(t, nt(e.key), e);
100
+ }
101
+ }
102
+ function Tt(t, r, n) {
103
+ return Q(t.prototype, r), Q(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
104
+ }
105
+ function It(t, r, n) {
106
+ return r = V(r), Nt(t, rt() ? Reflect.construct(r, n, V(t).constructor) : r.apply(t, n));
107
+ }
108
+ function Nt(t, r) {
109
+ if (r && (j(r) === "object" || typeof r == "function"))
110
+ return r;
111
+ if (r !== void 0)
112
+ throw new TypeError("Derived constructors may only return object or undefined");
113
+ return Bt(t);
114
+ }
115
+ function Bt(t) {
116
+ if (t === void 0)
117
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
118
+ return t;
119
+ }
120
+ function rt() {
121
+ try {
122
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
123
+ }));
124
+ } catch {
125
+ }
126
+ return (rt = function() {
127
+ return !!t;
128
+ })();
129
+ }
130
+ function V(t) {
131
+ return V = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
132
+ return n.__proto__ || Object.getPrototypeOf(n);
133
+ }, V(t);
134
+ }
135
+ function Ft(t, r) {
136
+ if (typeof r != "function" && r !== null)
137
+ throw new TypeError("Super expression must either be null or a function");
138
+ t.prototype = Object.create(r && r.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), r && X(t, r);
139
+ }
140
+ function X(t, r) {
141
+ return X = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, a) {
142
+ return e.__proto__ = a, e;
143
+ }, X(t, r);
144
+ }
145
+ function A(t, r, n) {
146
+ return r = nt(r), r in t ? Object.defineProperty(t, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = n, t;
147
+ }
148
+ function nt(t) {
149
+ var r = $t(t, "string");
150
+ return j(r) == "symbol" ? r : r + "";
151
+ }
152
+ function $t(t, r) {
153
+ if (j(t) != "object" || !t) return t;
154
+ var n = t[Symbol.toPrimitive];
155
+ if (n !== void 0) {
156
+ var e = n.call(t, r || "default");
157
+ if (j(e) != "object") return e;
158
+ throw new TypeError("@@toPrimitive must return a primitive value.");
159
+ }
160
+ return (r === "string" ? String : Number)(t);
161
+ }
162
+ var k = /* @__PURE__ */ function(t) {
163
+ function r() {
164
+ var n;
165
+ Lt(this, r);
166
+ for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
167
+ a[o] = arguments[o];
168
+ return n = It(this, r, [].concat(a)), A(n, "state", {
169
+ isAnimationFinished: !0,
170
+ totalLength: 0
171
+ }), A(n, "generateSimpleStrokeDasharray", function(i, s) {
172
+ return "".concat(s, "px ").concat(i - s, "px");
173
+ }), A(n, "getStrokeDasharray", function(i, s, l) {
174
+ var p = l.reduce(function(x, O) {
175
+ return x + O;
176
+ });
177
+ if (!p)
178
+ return n.generateSimpleStrokeDasharray(s, i);
179
+ for (var f = Math.floor(i / p), h = i % p, c = s - i, d = [], u = 0, y = 0; u < l.length; y += l[u], ++u)
180
+ if (y + l[u] > h) {
181
+ d = [].concat(_(l.slice(0, u)), [h - y]);
182
+ break;
183
+ }
184
+ var b = d.length % 2 === 0 ? [0, c] : [c];
185
+ return [].concat(_(r.repeat(l, f)), _(d), b).map(function(x) {
186
+ return "".concat(x, "px");
187
+ }).join(", ");
188
+ }), A(n, "id", ut("recharts-line-")), A(n, "pathRef", function(i) {
189
+ n.mainCurve = i;
190
+ }), A(n, "handleAnimationEnd", function() {
191
+ n.setState({
192
+ isAnimationFinished: !0
193
+ }), n.props.onAnimationEnd && n.props.onAnimationEnd();
194
+ }), A(n, "handleAnimationStart", function() {
195
+ n.setState({
196
+ isAnimationFinished: !1
197
+ }), n.props.onAnimationStart && n.props.onAnimationStart();
198
+ }), n;
199
+ }
200
+ return Ft(r, t), Tt(r, [{
201
+ key: "componentDidMount",
202
+ value: function() {
203
+ if (this.props.isAnimationActive) {
204
+ var e = this.getTotalLength();
205
+ this.setState({
206
+ totalLength: e
207
+ });
208
+ }
209
+ }
210
+ }, {
211
+ key: "componentDidUpdate",
212
+ value: function() {
213
+ if (this.props.isAnimationActive) {
214
+ var e = this.getTotalLength();
215
+ e !== this.state.totalLength && this.setState({
216
+ totalLength: e
217
+ });
218
+ }
219
+ }
220
+ }, {
221
+ key: "getTotalLength",
222
+ value: function() {
223
+ var e = this.mainCurve;
224
+ try {
225
+ return e && e.getTotalLength && e.getTotalLength() || 0;
226
+ } catch {
227
+ return 0;
228
+ }
229
+ }
230
+ }, {
231
+ key: "renderErrorBar",
232
+ value: function(e, a) {
233
+ if (this.props.isAnimationActive && !this.state.isAnimationFinished)
234
+ return null;
235
+ var o = this.props, i = o.points, s = o.xAxis, l = o.yAxis, p = o.layout, f = o.children, h = pt(f, ft);
236
+ if (!h)
237
+ return null;
238
+ var c = function(y, b) {
239
+ return {
240
+ x: y.x,
241
+ y: y.y,
242
+ value: y.value,
243
+ errorVal: Z(y.payload, b)
244
+ };
245
+ }, d = {
246
+ clipPath: e ? "url(#clipPath-".concat(a, ")") : null
247
+ };
248
+ return /* @__PURE__ */ m.createElement(M, d, h.map(function(u) {
249
+ return /* @__PURE__ */ m.cloneElement(u, {
250
+ key: "bar-".concat(u.props.dataKey),
251
+ data: i,
252
+ xAxis: s,
253
+ yAxis: l,
254
+ layout: p,
255
+ dataPointFormatter: c
256
+ });
257
+ }));
258
+ }
259
+ }, {
260
+ key: "renderDots",
261
+ value: function(e, a, o) {
262
+ var i = this.props.isAnimationActive;
263
+ if (i && !this.state.isAnimationFinished)
264
+ return null;
265
+ var s = this.props, l = s.dot, p = s.points, f = s.dataKey, h = R(this.props, !1), c = R(l, !0), d = p.map(function(y, b) {
266
+ var x = g(g(g({
267
+ key: "dot-".concat(b),
268
+ r: 3
269
+ }, h), c), {}, {
270
+ value: y.value,
271
+ dataKey: f,
272
+ cx: y.x,
273
+ cy: y.y,
274
+ index: b,
275
+ payload: y.payload
276
+ });
277
+ return r.renderDotItem(l, x);
278
+ }), u = {
279
+ clipPath: e ? "url(#clipPath-".concat(a ? "" : "dots-").concat(o, ")") : null
280
+ };
281
+ return /* @__PURE__ */ m.createElement(M, $({
282
+ className: "recharts-line-dots",
283
+ key: "dots"
284
+ }, u), d);
285
+ }
286
+ }, {
287
+ key: "renderCurveStatically",
288
+ value: function(e, a, o, i) {
289
+ var s = this.props, l = s.type, p = s.layout, f = s.connectNulls;
290
+ s.ref;
291
+ var h = H(s, St), c = g(g(g({}, R(h, !0)), {}, {
292
+ fill: "none",
293
+ className: "recharts-line-curve",
294
+ clipPath: a ? "url(#clipPath-".concat(o, ")") : null,
295
+ points: e
296
+ }, i), {}, {
297
+ type: l,
298
+ layout: p,
299
+ connectNulls: f
300
+ });
301
+ return /* @__PURE__ */ m.createElement(ht, $({}, c, {
302
+ pathRef: this.pathRef
303
+ }));
304
+ }
305
+ }, {
306
+ key: "renderCurveWithAnimation",
307
+ value: function(e, a) {
308
+ var o = this, i = this.props, s = i.points, l = i.strokeDasharray, p = i.isAnimationActive, f = i.animationBegin, h = i.animationDuration, c = i.animationEasing, d = i.animationId, u = i.animateNewValues, y = i.width, b = i.height, x = this.state, O = x.prevPoints, C = x.totalLength;
309
+ return /* @__PURE__ */ m.createElement(dt, {
310
+ begin: f,
311
+ duration: h,
312
+ isActive: p,
313
+ easing: c,
314
+ from: {
315
+ t: 0
316
+ },
317
+ to: {
318
+ t: 1
319
+ },
320
+ key: "line-".concat(d),
321
+ onAnimationEnd: this.handleAnimationEnd,
322
+ onAnimationStart: this.handleAnimationStart
323
+ }, function(E) {
324
+ var P = E.t;
325
+ if (O) {
326
+ var L = O.length / s.length, D = s.map(function(v, z) {
327
+ var N = Math.floor(z * L);
328
+ if (O[N]) {
329
+ var B = O[N], w = F(B.x, v.x), at = F(B.y, v.y);
330
+ return g(g({}, v), {}, {
331
+ x: w(P),
332
+ y: at(P)
333
+ });
334
+ }
335
+ if (u) {
336
+ var it = F(y * 2, v.x), ot = F(b / 2, v.y);
337
+ return g(g({}, v), {}, {
338
+ x: it(P),
339
+ y: ot(P)
340
+ });
341
+ }
342
+ return g(g({}, v), {}, {
343
+ x: v.x,
344
+ y: v.y
345
+ });
346
+ });
347
+ return o.renderCurveStatically(D, e, a);
348
+ }
349
+ var K = F(0, C), T = K(P), I;
350
+ if (l) {
351
+ var W = "".concat(l).split(/[,\s]+/gim).map(function(v) {
352
+ return parseFloat(v);
353
+ });
354
+ I = o.getStrokeDasharray(T, C, W);
355
+ } else
356
+ I = o.generateSimpleStrokeDasharray(C, T);
357
+ return o.renderCurveStatically(s, e, a, {
358
+ strokeDasharray: I
359
+ });
360
+ });
361
+ }
362
+ }, {
363
+ key: "renderCurve",
364
+ value: function(e, a) {
365
+ var o = this.props, i = o.points, s = o.isAnimationActive, l = this.state, p = l.prevPoints, f = l.totalLength;
366
+ return s && i && i.length && (!p && f > 0 || !yt(p, i)) ? this.renderCurveWithAnimation(e, a) : this.renderCurveStatically(i, e, a);
367
+ }
368
+ }, {
369
+ key: "render",
370
+ value: function() {
371
+ var e, a = this.props, o = a.hide, i = a.dot, s = a.points, l = a.className, p = a.xAxis, f = a.yAxis, h = a.top, c = a.left, d = a.width, u = a.height, y = a.isAnimationActive, b = a.id;
372
+ if (o || !s || !s.length)
373
+ return null;
374
+ var x = this.state.isAnimationFinished, O = s.length === 1, C = q("recharts-line", l), E = p && p.allowDataOverflow, P = f && f.allowDataOverflow, L = E || P, D = G(b) ? this.id : b, K = (e = R(i, !1)) !== null && e !== void 0 ? e : {
375
+ r: 3,
376
+ strokeWidth: 2
377
+ }, T = K.r, I = T === void 0 ? 3 : T, W = K.strokeWidth, v = W === void 0 ? 2 : W, z = mt(i) ? i : {}, N = z.clipDot, B = N === void 0 ? !0 : N, w = I * 2 + v;
378
+ return /* @__PURE__ */ m.createElement(M, {
379
+ className: C
380
+ }, E || P ? /* @__PURE__ */ m.createElement("defs", null, /* @__PURE__ */ m.createElement("clipPath", {
381
+ id: "clipPath-".concat(D)
382
+ }, /* @__PURE__ */ m.createElement("rect", {
383
+ x: E ? c : c - d / 2,
384
+ y: P ? h : h - u / 2,
385
+ width: E ? d : d * 2,
386
+ height: P ? u : u * 2
387
+ })), !B && /* @__PURE__ */ m.createElement("clipPath", {
388
+ id: "clipPath-dots-".concat(D)
389
+ }, /* @__PURE__ */ m.createElement("rect", {
390
+ x: c - w / 2,
391
+ y: h - w / 2,
392
+ width: d + w,
393
+ height: u + w
394
+ }))) : null, !O && this.renderCurve(L, D), this.renderErrorBar(L, D), (O || i) && this.renderDots(L, B, D), (!y || x) && vt.renderCallByParent(this.props, s));
395
+ }
396
+ }], [{
397
+ key: "getDerivedStateFromProps",
398
+ value: function(e, a) {
399
+ return e.animationId !== a.prevAnimationId ? {
400
+ prevAnimationId: e.animationId,
401
+ curPoints: e.points,
402
+ prevPoints: a.curPoints
403
+ } : e.points !== a.curPoints ? {
404
+ curPoints: e.points
405
+ } : null;
406
+ }
407
+ }, {
408
+ key: "repeat",
409
+ value: function(e, a) {
410
+ for (var o = e.length % 2 !== 0 ? [].concat(_(e), [0]) : e, i = [], s = 0; s < a; ++s)
411
+ i = [].concat(_(i), _(o));
412
+ return i;
413
+ }
414
+ }, {
415
+ key: "renderDotItem",
416
+ value: function(e, a) {
417
+ var o;
418
+ if (/* @__PURE__ */ m.isValidElement(e))
419
+ o = /* @__PURE__ */ m.cloneElement(e, a);
420
+ else if (Dt(e))
421
+ o = e(a);
422
+ else {
423
+ var i = a.key, s = H(a, Et), l = q("recharts-line-dot", typeof e != "boolean" ? e.className : "");
424
+ o = /* @__PURE__ */ m.createElement(ct, $({
425
+ key: i
426
+ }, s, {
427
+ className: l
428
+ }));
429
+ }
430
+ return o;
431
+ }
432
+ }]);
433
+ }(Ot);
434
+ A(k, "displayName", "Line");
435
+ A(k, "defaultProps", {
436
+ xAxisId: 0,
437
+ yAxisId: 0,
438
+ connectNulls: !1,
439
+ activeDot: !0,
440
+ dot: !0,
441
+ legendType: "line",
442
+ stroke: "#3182bd",
443
+ strokeWidth: 1,
444
+ fill: "#fff",
445
+ points: [],
446
+ isAnimationActive: !lt.isSsr,
447
+ animateNewValues: !0,
448
+ animationBegin: 0,
449
+ animationDuration: 1500,
450
+ animationEasing: "ease",
451
+ hide: !1,
452
+ label: !1
453
+ });
454
+ A(k, "getComposedData", function(t) {
455
+ var r = t.props, n = t.xAxis, e = t.yAxis, a = t.xAxisTicks, o = t.yAxisTicks, i = t.dataKey, s = t.bandSize, l = t.displayedData, p = t.offset, f = r.layout, h = l.map(function(c, d) {
456
+ var u = Z(c, i);
457
+ return f === "horizontal" ? {
458
+ x: Y({
459
+ axis: n,
460
+ ticks: a,
461
+ bandSize: s,
462
+ entry: c,
463
+ index: d
464
+ }),
465
+ y: G(u) ? null : e.scale(u),
466
+ value: u,
467
+ payload: c
468
+ } : {
469
+ x: G(u) ? null : n.scale(u),
470
+ y: Y({
471
+ axis: e,
472
+ ticks: o,
473
+ bandSize: s,
474
+ entry: c,
475
+ index: d
476
+ }),
477
+ value: u,
478
+ payload: c
479
+ };
480
+ });
481
+ return g({
482
+ points: h,
483
+ layout: f
484
+ }, p);
485
+ });
486
+ var Kt = gt({
487
+ chartName: "LineChart",
488
+ GraphicalChild: k,
489
+ axisComponents: [{
490
+ axisType: "xAxis",
491
+ AxisComp: tt
492
+ }, {
493
+ axisType: "yAxis",
494
+ AxisComp: et
495
+ }],
496
+ formatAxisMap: bt
497
+ });
498
+ const Gt = ({
499
+ data: t,
500
+ width: r = 800,
501
+ height: n = 300
502
+ }) => {
503
+ const e = t.map((a) => ({
504
+ deliveryTime: a.deliveryTime,
505
+ EV: a.vehicleType === "EV" ? a.parcelsDelivered : 0,
506
+ ICE: a.vehicleType === "ICE" ? a.parcelsDelivered : 0
507
+ }));
508
+ return /* @__PURE__ */ st(Kt, { width: r, height: n, data: e, children: [
509
+ /* @__PURE__ */ S(At, { strokeDasharray: "3 3" }),
510
+ /* @__PURE__ */ S(tt, { dataKey: "deliveryTime" }),
511
+ /* @__PURE__ */ S(et, {}),
512
+ /* @__PURE__ */ S(xt, {}),
513
+ /* @__PURE__ */ S(Pt, {}),
514
+ /* @__PURE__ */ S(
515
+ k,
516
+ {
517
+ type: "monotone",
518
+ dataKey: "EV",
519
+ stroke: "#8884d8",
520
+ name: "EV Deliveries"
521
+ }
522
+ ),
523
+ /* @__PURE__ */ S(
524
+ k,
525
+ {
526
+ type: "monotone",
527
+ dataKey: "ICE",
528
+ stroke: "#82ca9d",
529
+ name: "ICE Deliveries"
530
+ }
531
+ )
532
+ ] });
533
+ };
534
+ export {
535
+ Gt as DeliveryLineChart
536
+ };
@@ -0,0 +1,16 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { a as n } from "../../../setup-CUbCc8fQ.js";
3
+ import a from "../Dashboard.js";
4
+ describe("<DashboardProps />", () => {
5
+ let t;
6
+ beforeEach(() => {
7
+ t = {
8
+ foo: "write the test"
9
+ };
10
+ });
11
+ const e = () => n(/* @__PURE__ */ s(a, { ...t }));
12
+ it("should render foo text correctly", () => {
13
+ const { getByTestId: o } = e(), r = o("Dashboard");
14
+ expect(r).toHaveTextContent("write the test");
15
+ });
16
+ });
@@ -0,0 +1,2 @@
1
+ export { default } from './Dashboard';
2
+ export type { DashboardProps } from './Dashboard';