@gobolt/genesis 0.7.3 → 0.8.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 (192) hide show
  1. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +9 -0
  2. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  3. package/dist/components/Badge/__stories__/Badge.stories.d.ts +17 -0
  4. package/dist/components/Badge/__tests__/Badge.test.d.ts +1 -0
  5. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +23 -0
  6. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +9 -0
  7. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.d.ts +1 -0
  8. package/dist/components/Button/__stories__/Button.stories.d.ts +12 -0
  9. package/dist/components/Button/__stories__/IconButton.stories.d.ts +8 -0
  10. package/dist/components/Button/__stories__/UtilityButton.stories.d.ts +8 -0
  11. package/dist/components/Button/__tests__/Button.test.d.ts +1 -0
  12. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  13. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  14. package/dist/components/Chat/__stories__/Chat.stories.d.ts +19 -0
  15. package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +7 -0
  16. package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
  17. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  18. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +13 -0
  19. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +6 -0
  20. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  21. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  22. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +12 -0
  23. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  24. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  25. package/dist/components/Dashboard/index.d.ts +2 -0
  26. package/dist/components/Dashboard/styles.d.ts +13 -0
  27. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +9 -0
  28. package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  29. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +10 -0
  30. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  31. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +7 -0
  32. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  33. package/dist/components/ErrorBoundary/styles.d.ts +13 -0
  34. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +7 -0
  35. package/dist/components/Filters/Filter.d.ts +23 -0
  36. package/dist/components/Filters/FilterRow.d.ts +8 -0
  37. package/dist/components/Filters/Filters.d.ts +8 -0
  38. package/dist/components/Filters/__stories__/Filters.stories.d.ts +7 -0
  39. package/dist/components/Filters/__stories__/mock.d.ts +5 -0
  40. package/dist/components/Filters/__tests__/Filters.test.d.ts +1 -0
  41. package/dist/components/Filters/index.d.ts +2 -0
  42. package/dist/components/Filters/styles.d.ts +28 -0
  43. package/dist/components/Form/Form.d.ts +1 -1
  44. package/dist/components/Form/__stories__/Form.stories.d.ts +6 -0
  45. package/dist/components/Form/__stories__/FormStory.d.ts +1 -0
  46. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  47. package/dist/components/GlobalHeader/__stories__/GlobalHeader.stories.d.ts +11 -0
  48. package/dist/components/GlobalHeader/__tests__/GlobalHeader.test.d.ts +1 -0
  49. package/dist/components/GlobalHeader/styles.d.ts +15 -0
  50. package/dist/components/Glyph/Glyph.d.ts +3 -0
  51. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +6 -0
  52. package/dist/components/Glyph/custom/__stories__/UnitNumber.stories.d.ts +7 -0
  53. package/dist/components/Glyph/index.d.ts +4 -0
  54. package/dist/components/Glyph/styles.d.ts +13 -0
  55. package/dist/components/Input/__stories__/Input.stories.d.ts +12 -0
  56. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  57. package/dist/components/InputAddon/__stories__/InputAdd.stories.d.ts +10 -0
  58. package/dist/components/Insights/BarChart/__stories__/BarChart.stories.d.ts +8 -0
  59. package/dist/components/Insights/BarChart/__stories__/BarChart.vehicle-insights.stories.d.ts +12 -0
  60. package/dist/components/Insights/BarChart/__tests__/BarChart.test.d.ts +1 -0
  61. package/dist/components/Insights/DonutChart/__stories__/DonutChart.stories.d.ts +8 -0
  62. package/dist/components/Insights/DonutChart/__tests__/DonutChart.test.d.ts +1 -0
  63. package/dist/components/Insights/LineChart/__stories__/LineChart.stories.d.ts +6 -0
  64. package/dist/components/Insights/LineChart/__tests__/LineChart.test.d.ts +1 -0
  65. package/dist/components/Insights/__stories__/InsightsDrawer.stories.d.ts +12 -0
  66. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  67. package/dist/components/Layout/MainLayout/MainLayout.d.ts +9 -0
  68. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +8 -0
  69. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  70. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  71. package/dist/components/Layout/__stories__/Layout.stories.d.ts +6 -0
  72. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  73. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  74. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  75. package/dist/components/NavBar/NavBar.d.ts +30 -0
  76. package/dist/components/NavBar/NavItem.d.ts +15 -0
  77. package/dist/components/NavBar/NavMenu.d.ts +7 -0
  78. package/dist/components/NavBar/__stories__/AppLayout.stories.d.ts +10 -0
  79. package/dist/components/NavBar/__stories__/NavBar.stories.d.ts +15 -0
  80. package/dist/components/NavBar/__stories__/NavItem.stories.d.ts +16 -0
  81. package/dist/components/NavBar/__stories__/fixtures.d.ts +8 -0
  82. package/dist/components/NavBar/__tests__/NavBar.test.d.ts +1 -0
  83. package/dist/components/NavBar/index.d.ts +2 -0
  84. package/dist/components/NavBar/styles.d.ts +33 -0
  85. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +12 -0
  86. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  87. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  88. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  89. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  90. package/dist/components/OverflowMenu/__stories__/OverflowMenu.stories.d.ts +8 -0
  91. package/dist/components/OverflowMenu/__tests__/OverflowMenu.test.d.ts +0 -0
  92. package/dist/components/OverflowMenuItem/__stories__/OverflowMenuItem.stories.d.ts +7 -0
  93. package/dist/components/Popover/__stories__/Popover.stories.d.ts +6 -0
  94. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  95. package/dist/components/Progress/__stories__/Progress.stories.d.ts +18 -0
  96. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  97. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +8 -0
  98. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  99. package/dist/components/Row/__stories__/Row.stories.d.ts +12 -0
  100. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  101. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +8 -0
  102. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  103. package/dist/components/Select/__stories__/Select.stories.d.ts +11 -0
  104. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +8 -0
  105. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  106. package/dist/components/Stories/position-checker.d.ts +6 -0
  107. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  108. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  109. package/dist/components/Table/InfiniteScrollTable/__stories__/SpaceX.stories.d.ts +6 -0
  110. package/dist/components/Table/InfiniteScrollTable/__stories__/TableInfiniteScroll.stories.d.ts +13 -0
  111. package/dist/components/Table/InfiniteScrollTable/__stories__/api.d.ts +7 -0
  112. package/dist/components/Table/InfiniteScrollTable/__stories__/exampleConfig.d.ts +26 -0
  113. package/dist/components/Table/InfiniteScrollTable/__stories__/spacexConfig.d.ts +2 -0
  114. package/dist/components/Table/InfiniteScrollTable/types.d.ts +88 -0
  115. package/dist/components/Table/TableControls/__stories__/CustomPaginationStandalone.stories.d.ts +9 -0
  116. package/dist/components/Table/TableControls/__stories__/PaginationNumber.stories.d.ts +7 -0
  117. package/dist/components/Table/TableControls/__stories__/TableControls.stories.d.ts +8 -0
  118. package/dist/components/Table/TableControls/__tests__/CustomPagination.test.d.ts +1 -0
  119. package/dist/components/Table/TableControls/__tests__/TableControls.test.d.ts +1 -0
  120. package/dist/components/Table/TableControls/styles.d.ts +13 -0
  121. package/dist/components/Table/__stories__/GenesisTable.stories.d.ts +5 -0
  122. package/dist/components/Table/__stories__/Table.stories.d.ts +10 -0
  123. package/dist/components/Table/__tests__/table.test.d.ts +1 -0
  124. package/dist/components/TableWithControls/__stories__/InfiniteScrollSelectRowsStory.d.ts +1 -0
  125. package/dist/components/TableWithControls/__stories__/InfiniteScrollStory.d.ts +13 -0
  126. package/dist/components/TableWithControls/__stories__/PaginationStory.d.ts +6 -0
  127. package/dist/components/TableWithControls/__stories__/TablePage.stories.d.ts +6 -0
  128. package/dist/components/TableWithControls/__stories__/TableWithControls.stories.d.ts +13 -0
  129. package/dist/components/TableWithControls/__tests__/TableWithControls.test.d.ts +1 -0
  130. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +9 -0
  131. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  132. package/dist/components/Tag/__stories__/Tag.stories.d.ts +10 -0
  133. package/dist/components/Tile/__stories__/Tile.stories.d.ts +6 -0
  134. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  135. package/dist/components/TileLog/TileLog.d.ts +10 -0
  136. package/dist/components/TileLog/__stories__/TileLog.stories.d.ts +22 -0
  137. package/dist/components/TileLog/index.d.ts +2 -0
  138. package/dist/components/TileLog/styles.d.ts +15 -0
  139. package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
  140. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  141. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +8 -0
  142. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  143. package/dist/components/Typography/Typography.d.ts +2 -1
  144. package/dist/components/Typography/__stories__/Typography.stories.d.ts +15 -0
  145. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  146. package/dist/components/UtilityButton/UtilityButton.d.ts +1 -2
  147. package/dist/components/index.d.ts +4 -0
  148. package/dist/genesis/ComponentOverview.stories.d.ts +6 -0
  149. package/dist/genesis/GenesisThemeBreakdown.d.ts +3 -0
  150. package/dist/genesis/GenesisThemeDemo.d.ts +4 -0
  151. package/dist/genesis/GenesisThemeDemo.stories.d.ts +6 -0
  152. package/dist/genesis/Lab.stories.d.ts +5 -0
  153. package/dist/genesis/stories.d.ts +4 -0
  154. package/dist/genesis/styles.d.ts +11 -0
  155. package/dist/index.cjs +867 -179
  156. package/dist/index.js +805 -117
  157. package/dist/interface/address.d.ts +10 -0
  158. package/dist/interface/appointment.d.ts +56 -0
  159. package/dist/interface/appointmentV2.d.ts +64 -0
  160. package/dist/interface/appointmentsState.d.ts +20 -0
  161. package/dist/interface/common.d.ts +2 -0
  162. package/dist/interface/completionData.d.ts +18 -0
  163. package/dist/interface/deliveryPartner.d.ts +24 -0
  164. package/dist/interface/organization.d.ts +9 -0
  165. package/dist/interface/pagination.d.ts +8 -0
  166. package/dist/interface/roles.d.ts +9 -0
  167. package/dist/interface/route.d.ts +72 -0
  168. package/dist/interface/routeAnalysis.d.ts +107 -0
  169. package/dist/interface/routeAutomationJob.d.ts +94 -0
  170. package/dist/interface/routeAutomationLog.d.ts +9 -0
  171. package/dist/interface/routeEvent.d.ts +55 -0
  172. package/dist/interface/serviceArea.d.ts +17 -0
  173. package/dist/interface/util.d.ts +3 -0
  174. package/dist/interface/vehicle.d.ts +119 -0
  175. package/dist/interface/workOrder.d.ts +22 -0
  176. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +5 -0
  177. package/dist/setupTests.d.ts +1 -0
  178. package/dist/styles/design-tokens/border-tokens/BorderTokenList.d.ts +1 -0
  179. package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +5 -0
  180. package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +6 -0
  181. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -0
  182. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +5 -0
  183. package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +7 -0
  184. package/dist/styles/design-tokens/variables.d.ts +706 -0
  185. package/dist/styles/theme/genesis-theme.types.d.ts +263 -0
  186. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  187. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +5 -0
  188. package/dist/test/setup.d.ts +3 -0
  189. package/dist/test/setup.types.d.ts +6 -0
  190. package/dist/types/events.d.ts +21 -0
  191. package/dist/utils/simple-markdown.d.ts +4 -0
  192. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -8,11 +8,6 @@ function getDefaultExportFromCjs(x2) {
8
8
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
9
9
  }
10
10
  var classnames = { exports: {} };
11
- /*!
12
- Copyright (c) 2018 Jed Watson.
13
- Licensed under the MIT License (MIT), see
14
- http://jedwatson.github.io/classnames
15
- */
16
11
  var hasRequiredClassnames;
17
12
  function requireClassnames() {
18
13
  if (hasRequiredClassnames) return classnames.exports;
@@ -89,9 +84,9 @@ function _typeof(o2) {
89
84
  return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
90
85
  }, _typeof(o2);
91
86
  }
92
- var REACT_ELEMENT_TYPE_18 = Symbol.for("react.element");
93
- var REACT_ELEMENT_TYPE_19 = Symbol.for("react.transitional.element");
94
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
87
+ var REACT_ELEMENT_TYPE_18 = /* @__PURE__ */ Symbol.for("react.element");
88
+ var REACT_ELEMENT_TYPE_19 = /* @__PURE__ */ Symbol.for("react.transitional.element");
89
+ var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
95
90
  function isFragment$1(object4) {
96
91
  return (
97
92
  // Base object type
@@ -228,21 +223,12 @@ function findDOMNode(node2) {
228
223
  }
229
224
  var reactIs = { exports: {} };
230
225
  var reactIs_production_min = {};
231
- /**
232
- * @license React
233
- * react-is.production.min.js
234
- *
235
- * Copyright (c) Facebook, Inc. and its affiliates.
236
- *
237
- * This source code is licensed under the MIT license found in the
238
- * LICENSE file in the root directory of this source tree.
239
- */
240
226
  var hasRequiredReactIs_production_min;
241
227
  function requireReactIs_production_min() {
242
228
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
243
229
  hasRequiredReactIs_production_min = 1;
244
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e3 = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l2 = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n2 = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t2 = Symbol.for("react.offscreen"), u;
245
- u = Symbol.for("react.module.reference");
230
+ var b = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), e3 = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.server_context"), l2 = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), n2 = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), t2 = /* @__PURE__ */ Symbol.for("react.offscreen"), u;
231
+ u = /* @__PURE__ */ Symbol.for("react.module.reference");
246
232
  function v(a) {
247
233
  if ("object" === typeof a && null !== a) {
248
234
  var r2 = a.$$typeof;
@@ -334,35 +320,26 @@ function requireReactIs_production_min() {
334
320
  return reactIs_production_min;
335
321
  }
336
322
  var reactIs_development = {};
337
- /**
338
- * @license React
339
- * react-is.development.js
340
- *
341
- * Copyright (c) Facebook, Inc. and its affiliates.
342
- *
343
- * This source code is licensed under the MIT license found in the
344
- * LICENSE file in the root directory of this source tree.
345
- */
346
323
  var hasRequiredReactIs_development;
347
324
  function requireReactIs_development() {
348
325
  if (hasRequiredReactIs_development) return reactIs_development;
349
326
  hasRequiredReactIs_development = 1;
350
327
  if (process.env.NODE_ENV !== "production") {
351
328
  (function() {
352
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
353
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
354
- var REACT_FRAGMENT_TYPE2 = Symbol.for("react.fragment");
355
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
356
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
357
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
358
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
359
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
360
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
361
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
362
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
363
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
364
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
365
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
329
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element");
330
+ var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
331
+ var REACT_FRAGMENT_TYPE2 = /* @__PURE__ */ Symbol.for("react.fragment");
332
+ var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
333
+ var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
334
+ var REACT_PROVIDER_TYPE = /* @__PURE__ */ Symbol.for("react.provider");
335
+ var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
336
+ var REACT_SERVER_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.server_context");
337
+ var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
338
+ var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
339
+ var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list");
340
+ var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
341
+ var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
342
+ var REACT_OFFSCREEN_TYPE = /* @__PURE__ */ Symbol.for("react.offscreen");
366
343
  var enableScopeAPI = false;
367
344
  var enableCacheElement = false;
368
345
  var enableTransitionTracing = false;
@@ -370,7 +347,7 @@ function requireReactIs_development() {
370
347
  var enableDebugTracing = false;
371
348
  var REACT_MODULE_REFERENCE;
372
349
  {
373
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
350
+ REACT_MODULE_REFERENCE = /* @__PURE__ */ Symbol.for("react.module.reference");
374
351
  }
375
352
  function isValidElementType(type4) {
376
353
  if (typeof type4 === "string" || typeof type4 === "function") {
@@ -7898,7 +7875,6 @@ function _regeneratorDefine(e3, r2, n2, t2) {
7898
7875
  }, _regeneratorDefine(e3, r2, n2, t2);
7899
7876
  }
7900
7877
  function _regenerator() {
7901
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
7902
7878
  var e3, t2, r2 = "function" == typeof Symbol ? Symbol : {}, n2 = r2.iterator || "@@iterator", o2 = r2.toStringTag || "@@toStringTag";
7903
7879
  function i(r3, n3, o3, i2) {
7904
7880
  var c2 = n3 && n3.prototype instanceof Generator ? n3 : Generator, u2 = Object.create(c2.prototype);
@@ -11502,19 +11478,19 @@ function _wrapNativeSuper(t2) {
11502
11478
  if ("function" != typeof t3) throw new TypeError("Super expression must either be null or a function");
11503
11479
  if (void 0 !== r2) {
11504
11480
  if (r2.has(t3)) return r2.get(t3);
11505
- r2.set(t3, Wrapper);
11481
+ r2.set(t3, Wrapper2);
11506
11482
  }
11507
- function Wrapper() {
11483
+ function Wrapper2() {
11508
11484
  return _construct(t3, arguments, _getPrototypeOf(this).constructor);
11509
11485
  }
11510
- return Wrapper.prototype = Object.create(t3.prototype, {
11486
+ return Wrapper2.prototype = Object.create(t3.prototype, {
11511
11487
  constructor: {
11512
- value: Wrapper,
11488
+ value: Wrapper2,
11513
11489
  enumerable: false,
11514
11490
  writable: true,
11515
11491
  configurable: true
11516
11492
  }
11517
- }), _setPrototypeOf(Wrapper, t3);
11493
+ }), _setPrototypeOf(Wrapper2, t3);
11518
11494
  }, _wrapNativeSuper(t2);
11519
11495
  }
11520
11496
  var formatRegExp = /%[sdj%]/g;
@@ -27899,7 +27875,7 @@ var hasRequiredDayjs_min;
27899
27875
  function requireDayjs_min() {
27900
27876
  if (hasRequiredDayjs_min) return dayjs_min$1.exports;
27901
27877
  hasRequiredDayjs_min = 1;
27902
- (function(module2, exports) {
27878
+ (function(module2, exports$1) {
27903
27879
  !(function(t2, e3) {
27904
27880
  module2.exports = e3();
27905
27881
  })(dayjs_min, (function() {
@@ -28184,7 +28160,7 @@ var hasRequiredWeekday;
28184
28160
  function requireWeekday() {
28185
28161
  if (hasRequiredWeekday) return weekday$2.exports;
28186
28162
  hasRequiredWeekday = 1;
28187
- (function(module2, exports) {
28163
+ (function(module2, exports$1) {
28188
28164
  !(function(e3, t2) {
28189
28165
  module2.exports = t2();
28190
28166
  })(weekday$1, (function() {
@@ -28206,7 +28182,7 @@ var hasRequiredLocaleData;
28206
28182
  function requireLocaleData() {
28207
28183
  if (hasRequiredLocaleData) return localeData$2.exports;
28208
28184
  hasRequiredLocaleData = 1;
28209
- (function(module2, exports) {
28185
+ (function(module2, exports$1) {
28210
28186
  !(function(n2, e3) {
28211
28187
  module2.exports = e3();
28212
28188
  })(localeData$1, (function() {
@@ -28291,7 +28267,7 @@ var hasRequiredWeekOfYear;
28291
28267
  function requireWeekOfYear() {
28292
28268
  if (hasRequiredWeekOfYear) return weekOfYear$2.exports;
28293
28269
  hasRequiredWeekOfYear = 1;
28294
- (function(module2, exports) {
28270
+ (function(module2, exports$1) {
28295
28271
  !(function(e3, t2) {
28296
28272
  module2.exports = t2();
28297
28273
  })(weekOfYear$1, (function() {
@@ -28323,7 +28299,7 @@ var hasRequiredWeekYear;
28323
28299
  function requireWeekYear() {
28324
28300
  if (hasRequiredWeekYear) return weekYear$2.exports;
28325
28301
  hasRequiredWeekYear = 1;
28326
- (function(module2, exports) {
28302
+ (function(module2, exports$1) {
28327
28303
  !(function(e3, t2) {
28328
28304
  module2.exports = t2();
28329
28305
  })(weekYear$1, (function() {
@@ -28345,7 +28321,7 @@ var hasRequiredAdvancedFormat;
28345
28321
  function requireAdvancedFormat() {
28346
28322
  if (hasRequiredAdvancedFormat) return advancedFormat$2.exports;
28347
28323
  hasRequiredAdvancedFormat = 1;
28348
- (function(module2, exports) {
28324
+ (function(module2, exports$1) {
28349
28325
  !(function(e3, t2) {
28350
28326
  module2.exports = t2();
28351
28327
  })(advancedFormat$1, (function() {
@@ -28402,7 +28378,7 @@ var hasRequiredCustomParseFormat;
28402
28378
  function requireCustomParseFormat() {
28403
28379
  if (hasRequiredCustomParseFormat) return customParseFormat$2.exports;
28404
28380
  hasRequiredCustomParseFormat = 1;
28405
- (function(module2, exports) {
28381
+ (function(module2, exports$1) {
28406
28382
  !(function(e3, t2) {
28407
28383
  module2.exports = t2();
28408
28384
  })(customParseFormat$1, (function() {
@@ -44885,7 +44861,7 @@ var defaultItemRender = function defaultItemRender2(page, type4, element2) {
44885
44861
  };
44886
44862
  function noop$2() {
44887
44863
  }
44888
- function isInteger(v) {
44864
+ function isInteger$1(v) {
44889
44865
  var value2 = Number(v);
44890
44866
  return typeof value2 === "number" && !Number.isNaN(value2) && isFinite(value2) && Math.floor(value2) === value2;
44891
44867
  }
@@ -44945,7 +44921,7 @@ var Pagination$1 = function Pagination(props) {
44945
44921
  return value2;
44946
44922
  }
44947
44923
  function isValid2(page) {
44948
- return isInteger(page) && page !== current && isInteger(total) && total > 0;
44924
+ return isInteger$1(page) && page !== current && isInteger$1(total) && total > 0;
44949
44925
  }
44950
44926
  var shouldDisplayQuickJumper = total > pageSize ? showQuickJumper : false;
44951
44927
  function handleKeyDown(event2) {
@@ -59314,7 +59290,6 @@ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 },
59314
59290
  width: ${$isFullWidth ? "100%" : "auto"};
59315
59291
  font-weight: ${fontWeight} !important;
59316
59292
  font-size: ${fontSize} !important;
59317
- line-height: 1;
59318
59293
  -webkit-font-smoothing: antialiased;
59319
59294
 
59320
59295
  &:disabled {
@@ -60376,6 +60351,7 @@ const Typography = ({
60376
60351
  style: style2,
60377
60352
  fontSize,
60378
60353
  fontWeight,
60354
+ lineHeight,
60379
60355
  isDisabled,
60380
60356
  ...rest
60381
60357
  }) => {
@@ -60397,7 +60373,7 @@ const Typography = ({
60397
60373
  fontWeight,
60398
60374
  disabled: isDisabled,
60399
60375
  $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60400
- $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60376
+ $lineHeight: lineHeight ?? theme.typography[breakpoint][variant].lineHeight,
60401
60377
  ...rest,
60402
60378
  children: children2
60403
60379
  }
@@ -60418,7 +60394,7 @@ const Typography = ({
60418
60394
  fontSize: fontSize ?? `${theme.typography[breakpoint][variant].fontSize}px`,
60419
60395
  fontWeight,
60420
60396
  $letterSpacing: theme.typography[breakpoint][validVariant].letterSpacing,
60421
- $lineHeight: theme.typography[breakpoint][validVariant].lineHeight,
60397
+ $lineHeight: lineHeight ?? theme.typography[breakpoint][validVariant].lineHeight,
60422
60398
  ...rest,
60423
60399
  children: children2
60424
60400
  }
@@ -60437,7 +60413,7 @@ const Typography = ({
60437
60413
  fontSize: fontSize ?? `${theme.typography[breakpoint][variant].fontSize}px`,
60438
60414
  fontWeight,
60439
60415
  $letterSpacing: theme.typography[breakpoint][validVariant].letterSpacing,
60440
- $lineHeight: theme.typography[breakpoint][validVariant].lineHeight,
60416
+ $lineHeight: lineHeight ?? theme.typography[breakpoint][validVariant].lineHeight,
60441
60417
  ...rest,
60442
60418
  children: children2
60443
60419
  }
@@ -60722,6 +60698,18 @@ function IconBase2(props) {
60722
60698
  function FaCircleCheck(props) {
60723
60699
  return GenIcon({ "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }, "child": [] }] })(props);
60724
60700
  }
60701
+ function HiArrowCircleRight(props) {
60702
+ return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 1.414L10.586 9H7a1 1 0 100 2h3.586l-1.293 1.293a1 1 0 101.414 1.414l3-3a1 1 0 000-1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
60703
+ }
60704
+ function HiCheckCircle(props) {
60705
+ return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", "clipRule": "evenodd" }, "child": [] }] })(props);
60706
+ }
60707
+ function HiChevronDoubleLeft(props) {
60708
+ return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M15.707 15.707a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 010 1.414zm-6 0a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414l5-5a1 1 0 011.414 1.414L5.414 10l4.293 4.293a1 1 0 010 1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
60709
+ }
60710
+ function HiChevronDown(props) {
60711
+ return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
60712
+ }
60725
60713
  function HiClock(props) {
60726
60714
  return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z", "clipRule": "evenodd" }, "child": [] }] })(props);
60727
60715
  }
@@ -61381,7 +61369,7 @@ function createPacketDecoderStream(maxPayload, binaryType) {
61381
61369
  }
61382
61370
  });
61383
61371
  }
61384
- const protocol$1 = 4;
61372
+ const protocol = 4;
61385
61373
  function Emitter(obj) {
61386
61374
  if (obj) return mixin(obj);
61387
61375
  }
@@ -62359,7 +62347,7 @@ class SocketWithoutUpgrade extends Emitter {
62359
62347
  */
62360
62348
  createTransport(name2) {
62361
62349
  const query = Object.assign({}, this.opts.query);
62362
- query.EIO = protocol$1;
62350
+ query.EIO = protocol;
62363
62351
  query.transport = name2;
62364
62352
  if (this.id)
62365
62353
  query.sid = this.id;
@@ -62688,7 +62676,7 @@ class SocketWithoutUpgrade extends Emitter {
62688
62676
  }
62689
62677
  }
62690
62678
  }
62691
- SocketWithoutUpgrade.protocol = protocol$1;
62679
+ SocketWithoutUpgrade.protocol = protocol;
62692
62680
  class SocketWithUpgrade extends SocketWithoutUpgrade {
62693
62681
  constructor() {
62694
62682
  super(...arguments);
@@ -62953,14 +62941,18 @@ function _reconstructPacket(data, buffers) {
62953
62941
  }
62954
62942
  const RESERVED_EVENTS$1 = [
62955
62943
  "connect",
62944
+ // used on the client side
62956
62945
  "connect_error",
62946
+ // used on the client side
62957
62947
  "disconnect",
62948
+ // used on both sides
62958
62949
  "disconnecting",
62950
+ // used on the server side
62959
62951
  "newListener",
62952
+ // used by the Node.js EventEmitter
62960
62953
  "removeListener"
62961
62954
  // used by the Node.js EventEmitter
62962
62955
  ];
62963
- const protocol = 5;
62964
62956
  var PacketType;
62965
62957
  (function(PacketType2) {
62966
62958
  PacketType2[PacketType2["CONNECT"] = 0] = "CONNECT";
@@ -63031,18 +63023,16 @@ class Encoder {
63031
63023
  return buffers;
63032
63024
  }
63033
63025
  }
63034
- function isObject(value2) {
63035
- return Object.prototype.toString.call(value2) === "[object Object]";
63036
- }
63037
63026
  class Decoder extends Emitter {
63038
63027
  /**
63039
63028
  * Decoder constructor
63040
- *
63041
- * @param {function} reviver - custom reviver to pass down to JSON.stringify
63042
63029
  */
63043
- constructor(reviver) {
63030
+ constructor(opts) {
63044
63031
  super();
63045
- this.reviver = reviver;
63032
+ this.opts = Object.assign({
63033
+ reviver: void 0,
63034
+ maxAttachments: 10
63035
+ }, typeof opts === "function" ? { reviver: opts } : opts);
63046
63036
  }
63047
63037
  /**
63048
63038
  * Decodes an encoded packet string into packet JSON.
@@ -63102,7 +63092,13 @@ class Decoder extends Emitter {
63102
63092
  if (buf != Number(buf) || str.charAt(i) !== "-") {
63103
63093
  throw new Error("Illegal attachments");
63104
63094
  }
63105
- p.attachments = Number(buf);
63095
+ const n2 = Number(buf);
63096
+ if (!isInteger(n2) || n2 < 0) {
63097
+ throw new Error("Illegal attachments");
63098
+ } else if (n2 > this.opts.maxAttachments) {
63099
+ throw new Error("too many attachments");
63100
+ }
63101
+ p.attachments = n2;
63106
63102
  }
63107
63103
  if ("/" === str.charAt(i + 1)) {
63108
63104
  const start2 = i + 1;
@@ -63143,7 +63139,7 @@ class Decoder extends Emitter {
63143
63139
  }
63144
63140
  tryParse(str) {
63145
63141
  try {
63146
- return JSON.parse(str, this.reviver);
63142
+ return JSON.parse(str, this.opts.reviver);
63147
63143
  } catch (e3) {
63148
63144
  return false;
63149
63145
  }
@@ -63205,14 +63201,19 @@ class BinaryReconstructor {
63205
63201
  this.buffers = [];
63206
63202
  }
63207
63203
  }
63204
+ const isInteger = Number.isInteger || function(value2) {
63205
+ return typeof value2 === "number" && isFinite(value2) && Math.floor(value2) === value2;
63206
+ };
63207
+ function isObject(value2) {
63208
+ return Object.prototype.toString.call(value2) === "[object Object]";
63209
+ }
63208
63210
  const parser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63209
63211
  __proto__: null,
63210
63212
  Decoder,
63211
63213
  Encoder,
63212
63214
  get PacketType() {
63213
63215
  return PacketType;
63214
- },
63215
- protocol
63216
+ }
63216
63217
  }, Symbol.toStringTag, { value: "Module" }));
63217
63218
  function on(obj, ev, fn) {
63218
63219
  obj.on(ev, fn);
@@ -74966,7 +74967,7 @@ const OverflowMenu = forwardRef(
74966
74967
  }, [isOpen, handleClickOutside, getPopupContainer]);
74967
74968
  const getMenuStyle = useMemo$1(() => {
74968
74969
  const baseStyle = {
74969
- position: getPopupContainer !== void 0 ? "fixed" : "absolute",
74970
+ position: getPopupContainer === void 0 ? "absolute" : "fixed",
74970
74971
  zIndex: 1e3,
74971
74972
  ...style2
74972
74973
  };
@@ -75104,35 +75105,65 @@ const GlobalHeader = ({
75104
75105
  menuItems = [],
75105
75106
  primaryAction
75106
75107
  }) => {
75107
- return /* @__PURE__ */ jsxs(Tile, { "data-testid": "GlobalHeader", style: {
75108
- padding: "32px 40px",
75109
- justifyContent: "flex-end",
75110
- width: "100%",
75111
- alignItems: "flex-start",
75112
- minHeight: "164px",
75113
- borderBottom: "1px solid #CBCBCB",
75114
- background: "#FFF",
75115
- gap: "24px"
75116
- }, children: [
75117
- breadcrumbs?.length > 0 && /* @__PURE__ */ jsx(Breadcrumb, { items: breadcrumbs }),
75118
- /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { justifyContent: "space-between", gap: "16px", width: "100%", flexWrap: "wrap" }, children: [
75119
- /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { flex: 1, gap: "16px", minWidth: "200px" }, children: [
75120
- onBack && /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(RefIcon$j, {}), onClick: onBack }),
75121
- /* @__PURE__ */ jsx(Typography, { variant: "display3", children: title })
75122
- ] }),
75123
- /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { justifyContent: "flex-end", gap: "16px", alignItems: "flex-end" }, children: [
75124
- primaryAction && /* @__PURE__ */ jsx(Button$1, { onClick: primaryAction.onClick, children: primaryAction.label }),
75125
- menuItems.length > 0 && /* @__PURE__ */ jsx(
75126
- OverflowMenu,
75108
+ return /* @__PURE__ */ jsxs(
75109
+ Tile,
75110
+ {
75111
+ "data-testid": "GlobalHeader",
75112
+ style: {
75113
+ padding: "32px 40px",
75114
+ justifyContent: "flex-end",
75115
+ width: "100%",
75116
+ alignItems: "flex-start",
75117
+ minHeight: "164px",
75118
+ borderBottom: "1px solid #CBCBCB",
75119
+ background: "#FFF",
75120
+ gap: "24px"
75121
+ },
75122
+ children: [
75123
+ breadcrumbs?.length > 0 && /* @__PURE__ */ jsx(Breadcrumb, { items: breadcrumbs }),
75124
+ /* @__PURE__ */ jsxs(
75125
+ Tile,
75127
75126
  {
75128
- trigger: /* @__PURE__ */ jsx(UtilityButton, { isIconButton: true, children: /* @__PURE__ */ jsx(HiDotsHorizontal, {}) }),
75129
- alignment: "right",
75130
- children: menuItems.map((item) => /* @__PURE__ */ jsx(OverflowMenuItem, { onClick: item.onClick, children: item.children }, item.id))
75127
+ isHorizontal: true,
75128
+ style: {
75129
+ justifyContent: "space-between",
75130
+ gap: "16px",
75131
+ width: "100%",
75132
+ flexWrap: "wrap"
75133
+ },
75134
+ children: [
75135
+ /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { flex: 1, gap: "16px", minWidth: "200px" }, children: [
75136
+ onBack && /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(RefIcon$j, {}), onClick: onBack }),
75137
+ /* @__PURE__ */ jsx(Typography, { variant: "display3", children: title })
75138
+ ] }),
75139
+ /* @__PURE__ */ jsxs(
75140
+ Tile,
75141
+ {
75142
+ isHorizontal: true,
75143
+ style: {
75144
+ justifyContent: "flex-end",
75145
+ gap: "16px",
75146
+ alignItems: "flex-end"
75147
+ },
75148
+ children: [
75149
+ primaryAction && /* @__PURE__ */ jsx(Button$1, { onClick: primaryAction.onClick, children: primaryAction.label }),
75150
+ menuItems.length > 0 && /* @__PURE__ */ jsx(
75151
+ OverflowMenu,
75152
+ {
75153
+ trigger: /* @__PURE__ */ jsx(UtilityButton, { isIconButton: true, children: /* @__PURE__ */ jsx(HiDotsHorizontal, {}) }),
75154
+ alignment: "right",
75155
+ children: menuItems.map((item) => /* @__PURE__ */ jsx(OverflowMenuItem, { onClick: item.onClick, children: item.children }, item.id))
75156
+ }
75157
+ )
75158
+ ]
75159
+ }
75160
+ )
75161
+ ]
75131
75162
  }
75132
75163
  )
75133
- ] })
75134
- ] })
75135
- ] });
75164
+ ]
75165
+ }
75166
+ );
75136
75167
  };
75137
75168
  const Outline = (properties) => /* @__PURE__ */ jsxs(
75138
75169
  "svg",
@@ -77922,7 +77953,7 @@ function initRange(domain, range3) {
77922
77953
  }
77923
77954
  return this;
77924
77955
  }
77925
- const implicit = Symbol("implicit");
77956
+ const implicit = /* @__PURE__ */ Symbol("implicit");
77926
77957
  function ordinal() {
77927
77958
  var index2 = new InternMap(), domain = [], range3 = [], unknown = implicit;
77928
77959
  function scale(d) {
@@ -78649,7 +78680,7 @@ const VEHICLE_INSIGHTS_CONFIG = {
78649
78680
  // 4px bars as shown in Figma
78650
78681
  BAR_SPACING: 40
78651
78682
  };
78652
- const Container$2 = styled.div`
78683
+ const Container$3 = styled.div`
78653
78684
  display: flex;
78654
78685
  flex-direction: row;
78655
78686
  gap: ${({ theme }) => theme?.sizing.Size2}px;
@@ -79036,7 +79067,7 @@ const BarChart = ({
79036
79067
  iconSpacing,
79037
79068
  showAdditionalGridLines
79038
79069
  ]);
79039
- return /* @__PURE__ */ jsx(Container$2, { className, $height: height, $width: width, children: /* @__PURE__ */ jsxs(ChartContainer$2, { children: [
79070
+ return /* @__PURE__ */ jsx(Container$3, { className, $height: height, $width: width, children: /* @__PURE__ */ jsxs(ChartContainer$2, { children: [
79040
79071
  /* @__PURE__ */ jsx(
79041
79072
  "svg",
79042
79073
  {
@@ -79057,7 +79088,7 @@ const BarChart = ({
79057
79088
  )
79058
79089
  ] }) });
79059
79090
  };
79060
- const Container$1 = styled.div`
79091
+ const Container$2 = styled.div`
79061
79092
  display: flex;
79062
79093
  flex-direction: row;
79063
79094
  gap: ${({ theme }) => theme?.sizing.Size2}px;
@@ -79214,7 +79245,7 @@ const LineChart = ({
79214
79245
  skipDays,
79215
79246
  isAnimated
79216
79247
  ]);
79217
- return /* @__PURE__ */ jsx(Container$1, { className, $height: height, $width: width, children: /* @__PURE__ */ jsxs(ChartContainer$1, { children: [
79248
+ return /* @__PURE__ */ jsx(Container$2, { className, $height: height, $width: width, children: /* @__PURE__ */ jsxs(ChartContainer$1, { children: [
79218
79249
  /* @__PURE__ */ jsx(
79219
79250
  "svg",
79220
79251
  {
@@ -79235,7 +79266,7 @@ const LineChart = ({
79235
79266
  )
79236
79267
  ] }) });
79237
79268
  };
79238
- const Container = styled.div`
79269
+ const Container$1 = styled.div`
79239
79270
  display: flex;
79240
79271
  flex-direction: column;
79241
79272
  align-items: center;
@@ -79365,7 +79396,7 @@ const DonutChart = ({
79365
79396
  });
79366
79397
  }
79367
79398
  }, [data, height, width, innerRadius, outerRadius, showTooltip, showLegend]);
79368
- return /* @__PURE__ */ jsx(Container, { className, $height: height, $width: width, children: /* @__PURE__ */ jsxs(ChartContainer, { children: [
79399
+ return /* @__PURE__ */ jsx(Container$1, { className, $height: height, $width: width, children: /* @__PURE__ */ jsxs(ChartContainer, { children: [
79369
79400
  /* @__PURE__ */ jsx(
79370
79401
  "svg",
79371
79402
  {
@@ -79406,12 +79437,12 @@ const getGenesisClass$7 = ({ sizing: sizing2 }, $isColumn) => `
79406
79437
  margin: 0;
79407
79438
  box-sizing: border-box;
79408
79439
  `;
79409
- const Content$1 = styled.div`
79440
+ const Content$2 = styled.div`
79410
79441
  ${({ theme, $isColumn }) => {
79411
79442
  return getGenesisClass$7(theme, $isColumn);
79412
79443
  }}
79413
79444
  `;
79414
- const Content = ({
79445
+ const Content$1 = ({
79415
79446
  children: children2,
79416
79447
  className,
79417
79448
  backgroundColor,
@@ -79419,7 +79450,7 @@ const Content = ({
79419
79450
  style: style2
79420
79451
  }) => {
79421
79452
  return /* @__PURE__ */ jsx(
79422
- Content$1,
79453
+ Content$2,
79423
79454
  {
79424
79455
  className: clsx(className),
79425
79456
  style: { ...style2, backgroundColor },
@@ -79429,7 +79460,7 @@ const Content = ({
79429
79460
  );
79430
79461
  };
79431
79462
  const Layout = ({ children: children2, isColumn = false, style: style2 }) => {
79432
- return /* @__PURE__ */ jsx(Content, { "data-testid": "Layout", isColumn, style: style2, children: children2 });
79463
+ return /* @__PURE__ */ jsx(Content$1, { "data-testid": "Layout", isColumn, style: style2, children: children2 });
79433
79464
  };
79434
79465
  const MessageRow = styled.div`
79435
79466
  display: flex;
@@ -79556,6 +79587,490 @@ const Message = ({
79556
79587
  ) : null
79557
79588
  ] });
79558
79589
  };
79590
+ styled.nav`
79591
+ display: flex;
79592
+ align-items: center;
79593
+ justify-content: space-between;
79594
+ width: 100%;
79595
+ height: ${({ theme }) => theme.sizing.Size64 + "px"};
79596
+ padding: 0 ${({ theme }) => theme.sizing.Size24 + "px"};
79597
+ background-color: ${({ theme }) => theme.colors.surface.active.backgroundColor};
79598
+ border-bottom: ${({ theme }) => theme.sizing.Size05 + "px"} solid
79599
+ ${({ theme }) => theme.colors.surface.border?.borderColor ?? theme.colors.onsurface.active.borderColor};
79600
+ box-shadow: ${({ theme }) => theme.shadows.general["1"]};
79601
+ `;
79602
+ styled.div`
79603
+ display: flex;
79604
+ align-items: center;
79605
+ gap: ${({ theme }) => theme.sizing.Size24 + "px"};
79606
+ `;
79607
+ styled.div`
79608
+ display: flex;
79609
+ align-items: center;
79610
+ `;
79611
+ styled.ul`
79612
+ display: flex;
79613
+ align-items: center;
79614
+ gap: ${({ theme }) => theme.sizing.Size4 + "px"};
79615
+ list-style: none;
79616
+ margin: 0;
79617
+ padding: 0;
79618
+ `;
79619
+ styled.li`
79620
+ display: flex;
79621
+ align-items: center;
79622
+ `;
79623
+ const itemBase = `
79624
+ display: inline-flex;
79625
+ align-items: center;
79626
+ padding: 6px 12px;
79627
+ border-radius: ${({ theme }) => theme.borderRadius.sm + "px"};
79628
+ font-family: ${({ theme }) => theme.typography.fontFamily};
79629
+ font-size: ${({ theme }) => theme.typography.wide.body1.fontSize};
79630
+ font-weight: ${({ theme }) => theme.typography.wide.body1.fontWeight};
79631
+ line-height: ${({ theme }) => theme.typography.wide.body1.lineHeight};
79632
+ text-decoration: none;
79633
+ background: none;
79634
+ border: none;
79635
+ cursor: pointer;
79636
+ transition: background-color 0.15s ease, color 0.15s ease;
79637
+ `;
79638
+ styled.a`
79639
+ ${itemBase}
79640
+ color: ${({ theme }) => theme.colors.onsurface.active.textColor};
79641
+
79642
+ &:hover {
79643
+ background-color: ${({ theme }) => theme.colors.onsurface.hover?.backgroundColor ?? theme.colors.surface.hover?.backgroundColor};
79644
+ }
79645
+ `;
79646
+ styled.button`
79647
+ ${itemBase}
79648
+ color: ${({ theme }) => theme.colors.onsurface.active.textColor};
79649
+
79650
+ &:hover {
79651
+ background-color: ${({ theme }) => theme.colors.onsurface.hover?.backgroundColor ?? theme.colors.surface.hover?.backgroundColor};
79652
+ }
79653
+ `;
79654
+ styled.div`
79655
+ display: flex;
79656
+ align-items: center;
79657
+ gap: ${({ theme }) => theme.sizing.Size8 + "px"};
79658
+ `;
79659
+ const Sidebar = styled.aside`
79660
+ display: flex;
79661
+ flex-direction: column;
79662
+ width: ${({ $isSmall }) => $isSmall ? "78px" : "224px"};
79663
+ background-color: #fff;
79664
+ height: 100vh;
79665
+ justify-content: space-between;
79666
+ border-right: 1px solid #dfdfdf;
79667
+ z-index: 2;
79668
+ transition: width 0.2s ease;
79669
+ overflow: hidden;
79670
+ `;
79671
+ const Frame = styled(Tile)`
79672
+ padding: 0 ${({ $isSmall }) => $isSmall ? "12px" : "16px"};
79673
+ align-items: flex-start;
79674
+ align-self: stretch;
79675
+ `;
79676
+ const ScrollableFrame = styled.div`
79677
+ flex: 1;
79678
+ overflow-y: auto;
79679
+ overflow-x: hidden;
79680
+ padding: 0
79681
+ ${({ $isSmall, $hasScrollbar }) => $hasScrollbar ? $isSmall ? "2px" : "12px" : $isSmall ? "8px" : "16px"}
79682
+ 0 ${({ $isSmall }) => $isSmall ? "12px" : "16px"};
79683
+ scrollbar-width: thin;
79684
+ scrollbar-color: #d4d4d4 transparent;
79685
+
79686
+ &::-webkit-scrollbar {
79687
+ width: 4px;
79688
+ }
79689
+
79690
+ &::-webkit-scrollbar-track {
79691
+ background: transparent;
79692
+ }
79693
+
79694
+ &::-webkit-scrollbar-thumb {
79695
+ background-color: #d4d4d4;
79696
+ border-radius: 4px;
79697
+ }
79698
+
79699
+ &::-webkit-scrollbar-thumb:hover {
79700
+ background-color: #b0b0b0;
79701
+ }
79702
+ `;
79703
+ const CollapseWrapper = styled.div`
79704
+ display: grid;
79705
+ grid-template-rows: ${({ $isOpen }) => $isOpen ? "1fr" : "0fr"};
79706
+ transition: grid-template-rows 0.2s ease;
79707
+ overflow: hidden;
79708
+
79709
+ & > ul {
79710
+ min-height: 0;
79711
+ }
79712
+ `;
79713
+ const NavItem$1 = styled.div`
79714
+ display: flex;
79715
+ min-height: 48px;
79716
+ padding: 12px 16px;
79717
+ gap: 4px;
79718
+ /* justify-content: space-between; */
79719
+ align-items: center;
79720
+ align-self: stretch;
79721
+ width: 100%;
79722
+ cursor: pointer;
79723
+ border-radius: 6px;
79724
+ text-decoration: none;
79725
+ white-space: nowrap;
79726
+ color: ${({ $isActive }) => $isActive ? "#fff" : "#3E3E3E"};
79727
+ background-color: ${({ $isActive }) => $isActive ? "#214148" : "transparent"};
79728
+
79729
+ &:hover {
79730
+ background-color: ${({ $isActive }) => $isActive ? "#214148" : "#F4F4F4"};
79731
+ color: ${({ $isActive }) => $isActive ? "#fff" : "#30606B"};
79732
+
79733
+ * {
79734
+ color: inherit !important;
79735
+ }
79736
+ }
79737
+ `;
79738
+ const NavItem = ({
79739
+ icon,
79740
+ label,
79741
+ href,
79742
+ isActive: isActive2,
79743
+ type: type4 = "default",
79744
+ isOpen,
79745
+ onToggle,
79746
+ onClick,
79747
+ isSmall
79748
+ }) => {
79749
+ const isExpandable = type4 === "expandable";
79750
+ const isButton = type4 === "button";
79751
+ const content2 = /* @__PURE__ */ jsxs(
79752
+ Tile,
79753
+ {
79754
+ isHorizontal: true,
79755
+ style: {
79756
+ justifyContent: "space-between",
79757
+ width: "100%",
79758
+ alignItems: "center"
79759
+ },
79760
+ children: [
79761
+ /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
79762
+ /* @__PURE__ */ jsx("span", { style: { width: "24px", display: "flex", flexShrink: 0 }, children: icon }),
79763
+ !isSmall && /* @__PURE__ */ jsx(
79764
+ Typography,
79765
+ {
79766
+ variant: "label2",
79767
+ fontWeight: 500,
79768
+ color: isActive2 ? "#fff" : void 0,
79769
+ children: label
79770
+ }
79771
+ )
79772
+ ] }),
79773
+ isExpandable && !isSmall && /* @__PURE__ */ jsx(
79774
+ HiChevronDown,
79775
+ {
79776
+ size: 16,
79777
+ style: {
79778
+ transition: "transform 0.2s ease",
79779
+ transform: isOpen ? "rotate(180deg)" : "rotate(0deg)"
79780
+ }
79781
+ }
79782
+ )
79783
+ ]
79784
+ }
79785
+ );
79786
+ if (isExpandable) {
79787
+ return /* @__PURE__ */ jsx(
79788
+ NavItem$1,
79789
+ {
79790
+ as: "button",
79791
+ $isActive: isActive2,
79792
+ onClick: onToggle,
79793
+ "aria-expanded": isOpen,
79794
+ style: { border: "none", width: "100%", textAlign: "left" },
79795
+ children: content2
79796
+ }
79797
+ );
79798
+ }
79799
+ if (isButton) {
79800
+ return /* @__PURE__ */ jsx(
79801
+ NavItem$1,
79802
+ {
79803
+ as: "button",
79804
+ $isActive: isActive2,
79805
+ onClick,
79806
+ style: { border: "none", width: "100%", textAlign: "left" },
79807
+ children: content2
79808
+ }
79809
+ );
79810
+ }
79811
+ return /* @__PURE__ */ jsx(
79812
+ NavItem$1,
79813
+ {
79814
+ as: href ? "a" : "div",
79815
+ href,
79816
+ $isActive: isActive2,
79817
+ "aria-current": isActive2 ? "page" : void 0,
79818
+ children: content2
79819
+ }
79820
+ );
79821
+ };
79822
+ const NavMenu = ({ items, isSmall }) => {
79823
+ const [openPaths, setOpenPaths] = useState({});
79824
+ const navRef = useRef(null);
79825
+ const currentPaths = items.map((item) => item.currentPath).join(",");
79826
+ useEffect(() => {
79827
+ navRef.current?.querySelector("[data-active='true']")?.scrollIntoView({ block: "nearest", behavior: "smooth" });
79828
+ }, [currentPaths]);
79829
+ const togglePath = (path2) => {
79830
+ setOpenPaths((prev2) => ({ ...prev2, [path2]: !prev2[path2] }));
79831
+ };
79832
+ return /* @__PURE__ */ jsx("nav", { ref: navRef, style: { width: "100%" }, children: items.map(
79833
+ (item, itemIndex) => item.data.map((group, groupIndex) => /* @__PURE__ */ jsxs("div", { children: [
79834
+ group.category && /* @__PURE__ */ jsx(
79835
+ Tile,
79836
+ {
79837
+ style: {
79838
+ padding: isSmall ? "0" : "12px 0px",
79839
+ maxHeight: isSmall ? 0 : "40px",
79840
+ opacity: isSmall ? 0 : 1,
79841
+ transition: "opacity 0.15s ease, max-height 0.2s ease, padding 0.2s ease",
79842
+ overflow: "hidden"
79843
+ },
79844
+ children: /* @__PURE__ */ jsx(
79845
+ Typography,
79846
+ {
79847
+ variant: "overline2",
79848
+ color: "#6C6C6C",
79849
+ fontWeight: 600,
79850
+ children: group.category.toUpperCase()
79851
+ }
79852
+ )
79853
+ }
79854
+ ),
79855
+ group.routes.map((route) => /* @__PURE__ */ jsx(React__default.Fragment, { children: isSmall && route.children ? /* @__PURE__ */ jsx(
79856
+ OverflowMenu,
79857
+ {
79858
+ placement: "right",
79859
+ offset: 24,
79860
+ trigger: /* @__PURE__ */ jsx(Tooltip$2, { title: route.name, placement: "right", children: /* @__PURE__ */ jsx(
79861
+ "div",
79862
+ {
79863
+ "data-active": route.children.some(
79864
+ (c) => c.path === item.currentPath
79865
+ ) || void 0,
79866
+ children: /* @__PURE__ */ jsx(
79867
+ NavItem,
79868
+ {
79869
+ label: route.name,
79870
+ icon: route.icon,
79871
+ isActive: route.children.some(
79872
+ (c) => c.path === item.currentPath
79873
+ ),
79874
+ isSmall: true
79875
+ }
79876
+ )
79877
+ }
79878
+ ) }),
79879
+ children: route.children.map((child) => /* @__PURE__ */ jsx(OverflowMenuItem, { children: /* @__PURE__ */ jsx(
79880
+ "a",
79881
+ {
79882
+ href: child.path,
79883
+ style: {
79884
+ textDecoration: "none",
79885
+ color: "inherit",
79886
+ display: "block"
79887
+ },
79888
+ children: /* @__PURE__ */ jsx(Typography, { variant: "label2", fontWeight: 500, children: child.name })
79889
+ }
79890
+ ) }, child.path))
79891
+ }
79892
+ ) : /* @__PURE__ */ jsxs(Fragment, { children: [
79893
+ /* @__PURE__ */ jsx(
79894
+ Tooltip$2,
79895
+ {
79896
+ title: isSmall ? route.name : void 0,
79897
+ placement: "right",
79898
+ children: /* @__PURE__ */ jsx(
79899
+ "div",
79900
+ {
79901
+ "data-active": !route.children && item.currentPath === route.path || void 0,
79902
+ children: /* @__PURE__ */ jsx(
79903
+ NavItem,
79904
+ {
79905
+ label: route.name,
79906
+ icon: route.icon,
79907
+ type: route.children ? "expandable" : "default",
79908
+ href: route.children ? void 0 : route.path,
79909
+ isActive: !route.children && item.currentPath === route.path,
79910
+ isOpen: openPaths[route.path],
79911
+ onToggle: () => togglePath(route.path),
79912
+ isSmall
79913
+ }
79914
+ )
79915
+ }
79916
+ )
79917
+ }
79918
+ ),
79919
+ route.children && /* @__PURE__ */ jsx(CollapseWrapper, { $isOpen: !!openPaths[route.path], children: /* @__PURE__ */ jsx(
79920
+ "ul",
79921
+ {
79922
+ style: { listStyle: "none", margin: 0, padding: 0 },
79923
+ children: route.children.map((child) => /* @__PURE__ */ jsx(
79924
+ "li",
79925
+ {
79926
+ "data-active": item.currentPath === child.path || void 0,
79927
+ children: /* @__PURE__ */ jsx(
79928
+ NavItem,
79929
+ {
79930
+ label: child.name,
79931
+ icon: child.icon,
79932
+ href: child.path,
79933
+ isActive: item.currentPath === child.path,
79934
+ isSmall
79935
+ }
79936
+ )
79937
+ },
79938
+ child.path
79939
+ ))
79940
+ }
79941
+ ) })
79942
+ ] }) }, route.path))
79943
+ ] }, `${itemIndex}-${groupIndex}`))
79944
+ ) });
79945
+ };
79946
+ const gbLogo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAfpJREFUeAHtlctLG0Ecx38z+8rDBkoJpUVK6x9QrKSHHoSlSE+lh0JoT60Hg+JNUBFFFAI5+LrqKSfxIoLgQUXxgRfjshHRgx4EFT0ogg9iskl2Z93ZYPBgdtaoF/F72d/s/H6f33yHmV2AFwEg87i3HZ5IWFMiS9aTK5kAD4Ab6xH9yi8krdgolYSgDF3N/KnxiJKCvTxG3+KOjPs64M62moZ8vKhg08TJzfPfrIL7OECpRMOBP5WtpANTFNK4Nl5BQ6ciVw5k+aOHKA36DVw3TGLBX7HgVDwr4XCtqf6dkYvnc7omAnjtoi/vo7JsLw4Hg2COj9uNyF31rreIbDTq6DTNgVeEqQm1+P7DG09fdedqB5Rw46YBNtRIFp9rttv5hW3IaPnCBMIrPweScqnV2znObOBSi/8TN/CLdK4ID/gEjQVnNUBnO839fkJChRGC2elNOwwGREOOKl4W3C5zmMPhcLg43xs66t49SffQWBQ4jUcgEcT/+xFLjEKZDW6Lm2ypzmJc+OZUSJi0zSKPqqp5ViHzmNJFzHWEMpm8bsN9Erf/PaZ+Ahd3gIp50eKNn/9acMHikbcBqb8upla5hVMxHVS+5sdyBiHHl3rNr8HEBjymlrtCwyvdX+lJ4aBMOW0RRjyuqo0q1KUBj629kbpWKPN/8bx0DaY/qDhSPSx2AAAAAElFTkSuQmCC";
79947
+ const NavBar = ({
79948
+ items = [],
79949
+ version: version2,
79950
+ user,
79951
+ headerSlot,
79952
+ actionsSlot
79953
+ }) => {
79954
+ const [isSmall, setIsSmall] = useState(false);
79955
+ const [hasScrollbar, setHasScrollbar] = useState(false);
79956
+ const scrollRef = useRef(null);
79957
+ useEffect(() => {
79958
+ const el = scrollRef.current;
79959
+ if (!el) return;
79960
+ const check = () => setHasScrollbar(el.scrollHeight > el.clientHeight);
79961
+ check();
79962
+ const observer = new ResizeObserver(check);
79963
+ observer.observe(el);
79964
+ return () => observer.disconnect();
79965
+ }, []);
79966
+ return /* @__PURE__ */ jsxs(Sidebar, { $isSmall: isSmall, children: [
79967
+ /* @__PURE__ */ jsxs(Tile, { style: { flex: 1, overflow: "hidden" }, children: [
79968
+ /* @__PURE__ */ jsxs(
79969
+ Tile,
79970
+ {
79971
+ isHorizontal: !isSmall,
79972
+ style: {
79973
+ justifyContent: "space-between",
79974
+ alignItems: "center",
79975
+ width: "100%",
79976
+ gap: "16px",
79977
+ padding: `${isSmall ? "24px" : "16px"}`,
79978
+ transition: "padding 0.2s ease"
79979
+ },
79980
+ children: [
79981
+ /* @__PURE__ */ jsx(
79982
+ Tile,
79983
+ {
79984
+ isHorizontal: true,
79985
+ style: {
79986
+ gap: "8px",
79987
+ alignItems: "center",
79988
+ padding: "8px"
79989
+ },
79990
+ children: headerSlot ?? /* @__PURE__ */ jsxs(Fragment, { children: [
79991
+ /* @__PURE__ */ jsx(Avatar, { shape: "square", size: 24, url: gbLogo }),
79992
+ !isSmall && /* @__PURE__ */ jsx(
79993
+ Typography,
79994
+ {
79995
+ variant: "heading3",
79996
+ fontWeight: 700,
79997
+ style: {
79998
+ whiteSpace: "nowrap",
79999
+ overflow: "hidden",
80000
+ maxWidth: isSmall ? "0px" : "160px",
80001
+ opacity: isSmall ? 0 : 1,
80002
+ transition: "max-width 2s ease, opacity 0.15s ease"
80003
+ },
80004
+ children: "GoBolt"
80005
+ }
80006
+ )
80007
+ ] })
80008
+ }
80009
+ ),
80010
+ /* @__PURE__ */ jsx(
80011
+ HiChevronDoubleLeft,
80012
+ {
80013
+ size: 20,
80014
+ onClick: () => setIsSmall((s) => !s),
80015
+ style: {
80016
+ cursor: "pointer",
80017
+ transition: "transform 0.4s ease",
80018
+ transform: isSmall ? "rotate(180deg)" : "rotate(0deg)"
80019
+ }
80020
+ }
80021
+ )
80022
+ ]
80023
+ }
80024
+ ),
80025
+ /* @__PURE__ */ jsx(
80026
+ ScrollableFrame,
80027
+ {
80028
+ ref: scrollRef,
80029
+ $isSmall: isSmall,
80030
+ $hasScrollbar: hasScrollbar,
80031
+ children: /* @__PURE__ */ jsx(NavMenu, { items, isSmall })
80032
+ }
80033
+ )
80034
+ ] }),
80035
+ /* @__PURE__ */ jsxs(Frame, { $isSmall: isSmall, children: [
80036
+ actionsSlot?.(isSmall),
80037
+ /* @__PURE__ */ jsxs(
80038
+ Tile,
80039
+ {
80040
+ isHorizontal: true,
80041
+ style: {
80042
+ alignItems: "center",
80043
+ width: "100%",
80044
+ gap: "8px",
80045
+ padding: `12px ${isSmall ? "12px" : "16px"}`
80046
+ },
80047
+ children: [
80048
+ /* @__PURE__ */ jsx(Avatar, { user, size: isSmall ? 32 : 40 }),
80049
+ !isSmall && /* @__PURE__ */ jsxs(Typography, { variant: "label2", style: { whiteSpace: "nowrap" }, children: [
80050
+ user.first_name,
80051
+ " ",
80052
+ user.last_name
80053
+ ] })
80054
+ ]
80055
+ }
80056
+ ),
80057
+ !isSmall && /* @__PURE__ */ jsx(
80058
+ Tile,
80059
+ {
80060
+ style: {
80061
+ padding: "16px 24px",
80062
+ width: "100%",
80063
+ textAlign: "center"
80064
+ },
80065
+ children: /* @__PURE__ */ jsxs(Typography, { variant: "label3", children: [
80066
+ "Version ",
80067
+ version2
80068
+ ] })
80069
+ }
80070
+ )
80071
+ ] })
80072
+ ] });
80073
+ };
79559
80074
  const Appointment = (properties) => /* @__PURE__ */ jsx(
79560
80075
  "svg",
79561
80076
  {
@@ -87059,8 +87574,8 @@ const mockColumns = [
87059
87574
  const textColor = record.isSelected ? "white" : "#6c6c6c";
87060
87575
  return React__default.createElement(Typography, {
87061
87576
  variant: "body2",
87062
- children: typeof address === "string" ? address : JSON.stringify(address),
87063
- color: `${textColor}`
87577
+ color: `${textColor}`,
87578
+ children: typeof address === "string" ? address : JSON.stringify(address)
87064
87579
  });
87065
87580
  }
87066
87581
  },
@@ -87517,6 +88032,177 @@ const Tabs = ({ items, onChange, selectedId }) => {
87517
88032
  }
87518
88033
  );
87519
88034
  };
88035
+ const Wrapper = styled(Tile)`
88036
+ padding: 0 ${({ theme }) => theme.sizing.Size6}px;
88037
+ background-color: #fff;
88038
+
88039
+ &:hover {
88040
+ background-color: #f4f4f4;
88041
+ }
88042
+ `;
88043
+ const Container = styled(Tile)`
88044
+ flex-direction: row;
88045
+ justify-content: flex-start;
88046
+ gap: 12px;
88047
+ background-color: ${({ theme }) => theme.colors.surface.default};
88048
+ width: 100%;
88049
+ /* padding: 0 ${({ theme }) => theme.sizing.Size24}px; */
88050
+ `;
88051
+ const TimelineColumn = styled(Tile)`
88052
+ align-items: center;
88053
+ align-self: stretch;
88054
+ flex-shrink: 0;
88055
+ padding: 0;
88056
+ width: 26px;
88057
+ `;
88058
+ const TimelineLine = styled.div`
88059
+ width: 1px;
88060
+ flex: 1;
88061
+ background-color: ${({ $color }) => $color ?? "#9A9A9A"};
88062
+ `;
88063
+ const Dot = styled.div`
88064
+ width: 8px;
88065
+ height: 8px;
88066
+ border-radius: 50%;
88067
+ flex-shrink: 0;
88068
+ background-color: #9a9a9a;
88069
+ `;
88070
+ const Content = styled(Tile)`
88071
+ gap: ${({ theme }) => theme.sizing.Size1}px;
88072
+ flex: 1;
88073
+ min-width: 0;
88074
+ padding: ${({ theme }) => theme.sizing.Size3}px 0;
88075
+ `;
88076
+ const ActionNote = styled(Tile)`
88077
+ padding: 0;
88078
+ `;
88079
+ const TileLog = ({
88080
+ timestamp,
88081
+ action,
88082
+ status = "none",
88083
+ note: note2,
88084
+ author
88085
+ }) => {
88086
+ const { theme } = useGenesis();
88087
+ const isNone = status === "none";
88088
+ const stateColors = {
88089
+ none: "#CBCBCB",
88090
+ success: "#A7DFAF",
88091
+ error: "#F3A9AB",
88092
+ "in-progress": "#AFB8FB",
88093
+ generic: "#CBCBCB"
88094
+ };
88095
+ const stateTextColors = {
88096
+ none: void 0,
88097
+ success: theme.colors.status["success"].onsurface,
88098
+ error: theme.colors.status["error"].onsurface,
88099
+ "in-progress": theme.colors.status["info"].onsurface,
88100
+ generic: theme.colors.status["generic"].onsurface
88101
+ };
88102
+ const stateIcons = {
88103
+ success: /* @__PURE__ */ jsx(
88104
+ Badge$1,
88105
+ {
88106
+ state: "success",
88107
+ customIcon: /* @__PURE__ */ jsx(
88108
+ HiCheckCircle,
88109
+ {
88110
+ size: 16,
88111
+ color: theme.colors.status["success"].onsurface
88112
+ }
88113
+ ),
88114
+ hasIcon: true
88115
+ }
88116
+ ),
88117
+ error: /* @__PURE__ */ jsx(
88118
+ Badge$1,
88119
+ {
88120
+ state: "error",
88121
+ customIcon: /* @__PURE__ */ jsx(HiXCircle, { size: 16, color: theme.colors.status["error"].onsurface }),
88122
+ hasIcon: true
88123
+ }
88124
+ ),
88125
+ "in-progress": /* @__PURE__ */ jsx(
88126
+ Badge$1,
88127
+ {
88128
+ state: "info",
88129
+ customIcon: /* @__PURE__ */ jsx(
88130
+ HiArrowCircleRight,
88131
+ {
88132
+ size: 16,
88133
+ color: theme.colors.status["info"].onsurface
88134
+ }
88135
+ ),
88136
+ hasIcon: true
88137
+ }
88138
+ ),
88139
+ generic: /* @__PURE__ */ jsx(
88140
+ Badge$1,
88141
+ {
88142
+ state: "generic",
88143
+ customIcon: /* @__PURE__ */ jsx(
88144
+ HiOutlineMinusCircle,
88145
+ {
88146
+ size: 16,
88147
+ color: theme.colors.status["generic"].onsurface
88148
+ }
88149
+ ),
88150
+ hasIcon: true
88151
+ }
88152
+ )
88153
+ };
88154
+ return /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsxs(Container, { children: [
88155
+ /* @__PURE__ */ jsxs(TimelineColumn, { children: [
88156
+ /* @__PURE__ */ jsx(TimelineLine, { $color: stateColors[status] }),
88157
+ isNone ? /* @__PURE__ */ jsx(Dot, {}) : stateIcons[status],
88158
+ /* @__PURE__ */ jsx(TimelineLine, { $color: stateColors[status] })
88159
+ ] }),
88160
+ /* @__PURE__ */ jsxs(Content, { children: [
88161
+ /* @__PURE__ */ jsx(
88162
+ Typography,
88163
+ {
88164
+ variant: "label3",
88165
+ lineHeight: "10px",
88166
+ color: theme.colors.onsurface["copy-light"],
88167
+ children: timestamp
88168
+ }
88169
+ ),
88170
+ /* @__PURE__ */ jsxs(ActionNote, { children: [
88171
+ /* @__PURE__ */ jsx(
88172
+ Typography,
88173
+ {
88174
+ variant: "body4",
88175
+ fontSize: "14px",
88176
+ fontWeight: 400,
88177
+ lineHeight: "27px",
88178
+ color: stateTextColors[status],
88179
+ children: action
88180
+ }
88181
+ ),
88182
+ note2 && /* @__PURE__ */ jsx(
88183
+ Typography,
88184
+ {
88185
+ variant: "body5",
88186
+ lineHeight: "23px",
88187
+ color: theme.colors.onsurface["copy-light"],
88188
+ children: note2
88189
+ }
88190
+ )
88191
+ ] }),
88192
+ author && /* @__PURE__ */ jsx(
88193
+ Typography,
88194
+ {
88195
+ variant: "label3",
88196
+ fontSize: "10px",
88197
+ fontWeight: 500,
88198
+ lineHeight: "10px",
88199
+ color: theme.colors.onsurface["copy-light"],
88200
+ children: author
88201
+ }
88202
+ )
88203
+ ] })
88204
+ ] }) });
88205
+ };
87520
88206
  const GlobalStyles = createGlobalStyle`
87521
88207
  * {
87522
88208
  margin: 0;
@@ -87558,6 +88244,7 @@ export {
87558
88244
  Layout,
87559
88245
  LineChart,
87560
88246
  Message,
88247
+ NavBar,
87561
88248
  Notification,
87562
88249
  OverflowMenu,
87563
88250
  OverflowMenuItem,
@@ -87574,6 +88261,7 @@ export {
87574
88261
  Tabs,
87575
88262
  Tag,
87576
88263
  Tile,
88264
+ TileLog,
87577
88265
  Toast,
87578
88266
  Tooltip2 as Tooltip,
87579
88267
  Typography,