impact-nova 2.6.3 → 3.0.0-alpha.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 (254) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
  2. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
  3. package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
  4. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
  5. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
  6. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
  7. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
  8. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
  9. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
  11. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
  13. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
  16. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
  17. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
  18. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
  19. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  20. package/dist/components/data/ag-grid-react/index.js +162 -146
  21. package/dist/components/data/data-table/data-table.js +85 -82
  22. package/dist/components/data/data-table/data-table.types.d.ts +5 -0
  23. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
  24. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
  25. package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
  26. package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
  27. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
  28. package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
  29. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
  30. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
  31. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
  32. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
  33. package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
  34. package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
  35. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
  36. package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
  37. package/dist/components/data-display/chart/chart.js +100 -93
  38. package/dist/components/data-display/chart/chart.types.d.ts +10 -0
  39. package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
  40. package/dist/components/data-display/chart/chart.utils.js +132 -35
  41. package/dist/components/data-display/chart/index.js +15 -13
  42. package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
  43. package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
  44. package/dist/components/data-display/globe-map/globe-map.js +161 -0
  45. package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
  46. package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
  47. package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
  48. package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
  49. package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
  50. package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
  51. package/dist/components/data-display/globe-map/index.d.ts +2 -0
  52. package/dist/components/data-display/globe-map/index.js +10 -0
  53. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
  54. package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
  55. package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
  56. package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
  57. package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
  58. package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
  59. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
  60. package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
  61. package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
  62. package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
  63. package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
  64. package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
  65. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
  66. package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
  67. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
  68. package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
  69. package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
  70. package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
  71. package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
  72. package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
  73. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
  74. package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
  75. package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
  76. package/dist/components/data-display/hex-tilemap/index.js +12 -0
  77. package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
  78. package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
  79. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
  80. package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
  81. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
  82. package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
  83. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
  84. package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
  85. package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
  86. package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
  87. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
  88. package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
  89. package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
  90. package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
  91. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
  92. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
  93. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
  94. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
  95. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
  96. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
  97. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
  98. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
  99. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
  100. package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
  101. package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
  102. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
  103. package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
  104. package/dist/components/data-display/notch-card/index.d.ts +2 -0
  105. package/dist/components/data-display/notch-card/index.js +6 -0
  106. package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
  107. package/dist/components/data-display/notch-card/notch-card.js +151 -0
  108. package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
  109. package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
  110. package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
  111. package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
  112. package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
  113. package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
  114. package/dist/components/feedback/hover-card/hover-card.js +28 -24
  115. package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
  116. package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
  117. package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
  118. package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
  119. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  120. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  121. package/dist/components/flows/filter-strip/index.d.ts +1 -0
  122. package/dist/components/flows/filter-strip/index.js +4 -2
  123. package/dist/components/flows/iris-chat/index.d.ts +10 -0
  124. package/dist/components/flows/iris-chat/index.js +55 -0
  125. package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
  126. package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
  127. package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
  128. package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
  129. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
  130. package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
  131. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
  132. package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
  133. package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
  134. package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
  135. package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
  136. package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
  137. package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
  138. package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
  139. package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
  140. package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
  141. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
  142. package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
  143. package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
  144. package/dist/components/flows/iris-chat/iris-chat.js +336 -0
  145. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
  146. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
  147. package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
  148. package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
  149. package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
  150. package/dist/components/flows/wizard/index.d.ts +2 -2
  151. package/dist/components/flows/wizard/index.js +17 -13
  152. package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
  153. package/dist/components/flows/wizard/wizard-context.js +15 -7
  154. package/dist/components/flows/wizard/wizard.d.ts +22 -4
  155. package/dist/components/flows/wizard/wizard.js +278 -174
  156. package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
  157. package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
  158. package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
  159. package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
  160. package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
  161. package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
  162. package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
  163. package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
  164. package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
  165. package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
  166. package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
  167. package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
  168. package/dist/components/forms/choice-card/choice-card.js +651 -170
  169. package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
  170. package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
  171. package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
  172. package/dist/components/forms/choice-card/index.d.ts +2 -1
  173. package/dist/components/forms/choice-card/index.js +27 -10
  174. package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
  175. package/dist/components/forms/select/components/Submenu.js +2 -3
  176. package/dist/components/layout/header/header.d.ts +3 -2
  177. package/dist/components/layout/header/header.js +67 -47
  178. package/dist/components/layout/header/header.types.d.ts +1 -0
  179. package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
  180. package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
  181. package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
  182. package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
  183. package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
  184. package/dist/components/primitives/iris/iris-control-context.js +44 -0
  185. package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
  186. package/dist/components/primitives/iris/iris-control-region.js +102 -0
  187. package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
  188. package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
  189. package/dist/components/primitives/iris/iris-control.variants.js +20 -0
  190. package/dist/components/primitives/iris/iris.d.ts +24 -0
  191. package/dist/components/primitives/iris/iris.js +232 -0
  192. package/dist/components/primitives/iris/iris.types.d.ts +35 -0
  193. package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
  194. package/dist/components/primitives/iris/iris.variants.js +120 -0
  195. package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
  196. package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
  197. package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
  198. package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
  199. package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
  200. package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
  201. package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
  202. package/dist/components/primitives/stepper/internals/step-model.js +10 -0
  203. package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
  204. package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
  205. package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
  206. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
  207. package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
  208. package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
  209. package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
  210. package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
  211. package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
  212. package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
  213. package/dist/components/primitives/stepper/stepper.d.ts +1 -0
  214. package/dist/components/primitives/stepper/stepper.js +134 -52
  215. package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
  216. package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
  217. package/dist/components/primitives/stepper/stepper.variants.js +165 -5
  218. package/dist/components/primitives/tabs/tabs.d.ts +4 -1
  219. package/dist/components/primitives/tabs/tabs.js +131 -59
  220. package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
  221. package/dist/i18n/defaultMessages.d.ts +100 -0
  222. package/dist/i18n/defaultMessages.js +118 -21
  223. package/dist/i18n/index.d.ts +1 -1
  224. package/dist/i18n/locales/de.js +99 -2
  225. package/dist/i18n/locales/es.js +99 -2
  226. package/dist/i18n/locales/hi.js +99 -2
  227. package/dist/i18n/locales/kn.js +99 -2
  228. package/dist/impact-nova-components.css +972 -2
  229. package/dist/impact-nova-tokens.scss +109 -1
  230. package/dist/impact-nova.css +1 -1
  231. package/dist/index.d.ts +1 -1
  232. package/dist/index.js +585 -551
  233. package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
  234. package/dist/lib/virtualized/directional-range-extractor.js +39 -0
  235. package/dist/lib/virtualized/index.d.ts +3 -0
  236. package/dist/lib/virtualized/index.js +35 -27
  237. package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
  238. package/dist/lib/virtualized/scroll-seek.js +61 -0
  239. package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
  240. package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
  241. package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
  242. package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
  243. package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
  244. package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
  245. package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
  246. package/dist/lib/virtualized/useVirtualizedList.js +89 -87
  247. package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
  248. package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
  249. package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
  250. package/dist/llms/rules/installation.js +1 -1
  251. package/dist/llms/rules/requirements.js +1 -1
  252. package/dist/tailwind.config.js +3 -1
  253. package/dist/theme/tailwind-colors.js +2 -1
  254. package/package.json +39 -4
@@ -0,0 +1,147 @@
1
+ import { jsxs as w, jsx as i } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { createComponent as I } from "../../../../lib/primitives/create-component.js";
4
+ import { cn as k } from "../../../../lib/utils.js";
5
+ import { hexTilemapViewportVariants as L } from "../hex-tilemap.variants.js";
6
+ import { HEX_BUTTON_ZOOM_STEP as g } from "./hex-camera.js";
7
+ import { extentsFromTiles as $, buildLandPath as E, hexTileToPixel as V } from "./hex-geometry.js";
8
+ import { useHexTilemapContext as D } from "./hex-tilemap-context.js";
9
+ import { HexTilemapTooltip as O } from "./hex-tilemap-tooltip.js";
10
+ import { HexTilemapZoom as _ } from "./hex-tilemap-zoom.js";
11
+ import { useHexCamera as z } from "./use-hex-camera.js";
12
+ const F = 315, N = "M9.56148 9.69087C9.20834 10.3244 8.53986 10.7171 7.81452 10.7171H3.94774C3.23129 10.7171 2.56957 10.3339 2.21301 9.71249L0.265298 6.3179C-0.090937 5.69704-0.0882008 4.93312 0.272474 4.31482L2.21064 0.992257C2.56906 0.377822 3.22686 0 3.93819 0H7.824C8.54428 0 9.20893 0.387309 9.56404 1.01397L11.4467 4.33636C11.7909 4.94364 11.7935 5.6864 11.4536 6.2961L9.56148 9.69087Z", J = I(
13
+ "HexTilemapViewport",
14
+ ({ className: v, height: T = F, ...C }, r) => {
15
+ const {
16
+ layout: s,
17
+ visiblePoints: P,
18
+ series: h,
19
+ setHoverPoint: m,
20
+ mapLabel: b,
21
+ setZoom: H,
22
+ zoom: Z
23
+ } = D(), c = n.useRef(null), p = n.useRef(null), f = n.useId(), y = n.useMemo(
24
+ () => new Map(h.map((e) => [e.id, e.color])),
25
+ [h]
26
+ ), t = n.useMemo(() => $(s.land), [s.land]), M = n.useMemo(
27
+ () => ({ width: t.width, height: t.height }),
28
+ [t.height, t.width]
29
+ ), R = n.useMemo(
30
+ () => E(s.land, t.originColumn, t.originRow),
31
+ [t.originColumn, t.originRow, s.land]
32
+ ), o = z({
33
+ extents: M,
34
+ zoom: Z,
35
+ onZoomChange: H,
36
+ svgRef: p,
37
+ viewportRef: c
38
+ }), B = n.useCallback(
39
+ (e) => {
40
+ c.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
41
+ },
42
+ [r]
43
+ ), x = n.useCallback(
44
+ (e, d) => {
45
+ const a = c.current?.getBoundingClientRect(), l = d.getBoundingClientRect();
46
+ a && m({
47
+ id: e.id,
48
+ label: e.label,
49
+ value: e.value,
50
+ seriesId: e.seriesId,
51
+ clientX: l.left + l.width / 2 - a.left,
52
+ clientY: l.top - a.top
53
+ });
54
+ },
55
+ [m]
56
+ );
57
+ return /* @__PURE__ */ w(
58
+ "div",
59
+ {
60
+ ref: B,
61
+ "data-component": "hex-tilemap-viewport",
62
+ tabIndex: 0,
63
+ className: k(L({ panning: o.isPanning }), v),
64
+ style: { height: T },
65
+ ...C,
66
+ onPointerDown: o.handlePointerDown,
67
+ onPointerMove: o.handlePointerMove,
68
+ onPointerUp: o.endPan,
69
+ onPointerCancel: o.endPan,
70
+ onKeyDown: o.handleKeyDown,
71
+ children: [
72
+ /* @__PURE__ */ w(
73
+ "svg",
74
+ {
75
+ ref: p,
76
+ className: "block size-full max-h-full max-w-full overflow-hidden",
77
+ width: "100%",
78
+ height: "100%",
79
+ viewBox: `${o.initialViewBox.x} ${o.initialViewBox.y} ${o.initialViewBox.width} ${o.initialViewBox.height}`,
80
+ preserveAspectRatio: "xMidYMid meet",
81
+ role: "img",
82
+ "aria-label": b,
83
+ children: [
84
+ /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("filter", { id: f, x: "-20%", y: "-20%", width: "140%", height: "140%", children: /* @__PURE__ */ i("feDropShadow", { dx: "0", dy: "0.5", stdDeviation: "0.5", floodOpacity: "0.08" }) }) }),
85
+ /* @__PURE__ */ i(
86
+ "path",
87
+ {
88
+ d: R,
89
+ className: "pointer-events-none fill-canvas-elevated stroke-content/15",
90
+ strokeWidth: 0.35,
91
+ filter: `url(#${f})`
92
+ }
93
+ ),
94
+ P.map((e) => {
95
+ const { pixelX: d, pixelY: a } = V(
96
+ e.tile.x - t.originColumn,
97
+ e.tile.y - t.originRow
98
+ ), l = y.get(e.seriesId) ?? "var(--color-success)";
99
+ return /* @__PURE__ */ i(
100
+ "path",
101
+ {
102
+ "data-testid": "hex-tilemap-point",
103
+ "data-point-id": e.id,
104
+ d: N,
105
+ transform: `translate(${d}, ${a})`,
106
+ fill: l,
107
+ className: "cursor-pointer stroke-content/10 outline-none focus-visible:stroke-brand",
108
+ strokeWidth: 0.3,
109
+ tabIndex: 0,
110
+ role: "img",
111
+ "aria-label": `${e.label}, ${e.value}`,
112
+ onPointerEnter: (u) => {
113
+ o.isPanning || x(e, u.currentTarget);
114
+ },
115
+ onPointerLeave: () => m(null),
116
+ onFocus: (u) => {
117
+ x(e, u.currentTarget);
118
+ },
119
+ onBlur: () => m(null)
120
+ },
121
+ e.id
122
+ );
123
+ })
124
+ ]
125
+ }
126
+ ),
127
+ /* @__PURE__ */ i(O, {}),
128
+ /* @__PURE__ */ i(
129
+ _,
130
+ {
131
+ onZoomIn: () => o.zoomBy(g),
132
+ onZoomOut: () => o.zoomBy(-g),
133
+ onZoomTo: o.zoomTo,
134
+ onZoomToFit: o.zoomToFit,
135
+ onReset: o.resetZoom,
136
+ canZoomIn: o.canZoomIn,
137
+ canZoomOut: o.canZoomOut
138
+ }
139
+ )
140
+ ]
141
+ }
142
+ );
143
+ }
144
+ );
145
+ export {
146
+ J as HexTilemapViewport
147
+ };
@@ -0,0 +1,13 @@
1
+ import { HexTilemapZoomProps } from '../hex-tilemap.types';
2
+ import { HEX_BUTTON_ZOOM_STEP } from './hex-camera';
3
+ export interface HexTilemapZoomControlProps extends HexTilemapZoomProps {
4
+ onZoomIn: () => void;
5
+ onZoomOut: () => void;
6
+ onZoomTo: (zoom: number) => void;
7
+ onZoomToFit: () => void;
8
+ onReset: () => void;
9
+ canZoomIn: boolean;
10
+ canZoomOut: boolean;
11
+ }
12
+ export declare const HexTilemapZoom: import('react').ForwardRefExoticComponent<HexTilemapZoomControlProps & import('react').RefAttributes<HTMLDivElement>>;
13
+ export { HEX_BUTTON_ZOOM_STEP };
@@ -0,0 +1,99 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { RemoveMinimize as T, ArrowDown as f, Plus as z, Reset as N } from "impact-nova-icons";
3
+ import { DropdownMenu as g, DropdownMenuTrigger as w, DropdownMenuContent as M, DropdownMenuItem as a, DropdownMenuSeparator as C } from "../../../feedback/dropdown-menu/dropdown-menu.js";
4
+ import { createComponent as D } from "../../../../lib/primitives/create-component.js";
5
+ import { cn as S } from "../../../../lib/utils.js";
6
+ import { useImpactNovaI18n as v } from "../../../../i18n/use-impact-nova-i18n.js";
7
+ import { hexTilemapZoomButtonVariants as t, hexTilemapZoomVariants as O } from "../hex-tilemap.variants.js";
8
+ import { HEX_ZOOM_PRESETS as P } from "./hex-camera.js";
9
+ import { HEX_BUTTON_ZOOM_STEP as F } from "./hex-camera.js";
10
+ import { useHexTilemapContext as Z } from "./hex-tilemap-context.js";
11
+ const V = D(
12
+ "HexTilemapZoom",
13
+ ({
14
+ className: r,
15
+ onZoomIn: l,
16
+ onZoomOut: s,
17
+ onZoomTo: p,
18
+ onZoomToFit: c,
19
+ onReset: m,
20
+ canZoomIn: d,
21
+ canZoomOut: u,
22
+ ...x
23
+ }, h) => {
24
+ const { t: o } = v(), { zoom: b } = Z();
25
+ return /* @__PURE__ */ i(
26
+ "div",
27
+ {
28
+ ref: h,
29
+ "data-component": "hex-tilemap-zoom",
30
+ "data-hex-tilemap-zoom": "",
31
+ className: S(O(), r),
32
+ onPointerDown: (n) => n.stopPropagation(),
33
+ ...x,
34
+ children: [
35
+ /* @__PURE__ */ e(
36
+ "button",
37
+ {
38
+ type: "button",
39
+ className: t(),
40
+ "aria-label": o("hexTilemap.zoomOut"),
41
+ disabled: !u,
42
+ onClick: s,
43
+ children: /* @__PURE__ */ e(T, { className: "size-4" })
44
+ }
45
+ ),
46
+ /* @__PURE__ */ i(g, { children: [
47
+ /* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ i(
48
+ "button",
49
+ {
50
+ type: "button",
51
+ className: "inline-flex h-8 items-center gap-0.5 rounded-full px-1 text-sm font-semibold leading-[21px] text-secondary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring",
52
+ "aria-label": o("hexTilemap.zoomMenu"),
53
+ children: [
54
+ /* @__PURE__ */ i("span", { children: [
55
+ b,
56
+ "%"
57
+ ] }),
58
+ /* @__PURE__ */ e(f, { className: "size-4" })
59
+ ]
60
+ }
61
+ ) }),
62
+ /* @__PURE__ */ i(M, { align: "end", className: "min-w-[200px]", children: [
63
+ /* @__PURE__ */ e(a, { onSelect: c, children: o("hexTilemap.zoomToFit") }),
64
+ P.map((n) => /* @__PURE__ */ e(a, { onSelect: () => p(n), children: o("hexTilemap.zoomToPercent", { percent: n }) }, n)),
65
+ /* @__PURE__ */ e(C, {}),
66
+ /* @__PURE__ */ e(a, { onSelect: m, children: o("hexTilemap.reset") })
67
+ ] })
68
+ ] }),
69
+ /* @__PURE__ */ e(
70
+ "button",
71
+ {
72
+ type: "button",
73
+ className: t(),
74
+ "aria-label": o("hexTilemap.zoomIn"),
75
+ disabled: !d,
76
+ onClick: l,
77
+ children: /* @__PURE__ */ e(z, { className: "size-4" })
78
+ }
79
+ ),
80
+ /* @__PURE__ */ e("span", { className: "mx-1 h-[18px] w-px bg-stroke", "aria-hidden": !0 }),
81
+ /* @__PURE__ */ e(
82
+ "button",
83
+ {
84
+ type: "button",
85
+ className: t(),
86
+ "aria-label": o("hexTilemap.zoomReset"),
87
+ onClick: m,
88
+ children: /* @__PURE__ */ e(N, { className: "size-4" })
89
+ }
90
+ )
91
+ ]
92
+ }
93
+ );
94
+ }
95
+ );
96
+ export {
97
+ F as HEX_BUTTON_ZOOM_STEP,
98
+ V as HexTilemapZoom
99
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Shared hex cell coordinate. World land now lives on WORLD_HEX_LATTICE
3
+ * (Natural Earth 50m), not a hand-drawn Highcharts silhouette.
4
+ */
5
+ export interface HexGridTile {
6
+ x: number;
7
+ y: number;
8
+ }
@@ -0,0 +1,27 @@
1
+ import { HexCamera, HexCameraExtents } from './hex-camera';
2
+ import * as React from "react";
3
+ interface UseHexCameraOptions {
4
+ extents: HexCameraExtents;
5
+ zoom: number;
6
+ onZoomChange: (zoom: number) => void;
7
+ svgRef: React.RefObject<SVGSVGElement | null>;
8
+ viewportRef: React.RefObject<HTMLDivElement | null>;
9
+ }
10
+ export declare function useHexCamera({ extents, zoom, onZoomChange, svgRef, viewportRef, }: UseHexCameraOptions): {
11
+ isPanning: boolean;
12
+ handlePointerDown: (event: React.PointerEvent<HTMLDivElement>) => void;
13
+ handlePointerMove: (event: React.PointerEvent<HTMLDivElement>) => void;
14
+ endPan: (event?: React.PointerEvent<HTMLDivElement>) => void;
15
+ handleKeyDown: (event: React.KeyboardEvent<HTMLDivElement>) => void;
16
+ zoomBy: (delta: number, focal?: {
17
+ x: number;
18
+ y: number;
19
+ }, immediate?: boolean) => void;
20
+ zoomTo: (nextZoom: number) => void;
21
+ resetZoom: () => void;
22
+ zoomToFit: () => void;
23
+ initialViewBox: HexCamera;
24
+ canZoomIn: boolean;
25
+ canZoomOut: boolean;
26
+ };
27
+ export {};
@@ -0,0 +1,137 @@
1
+ import * as r from "react";
2
+ import { centeredCamera as C, applyCameraViewBox as D, prefersReducedMotion as W, clampZoom as I, zoomCameraAt as H, HEX_ZOOM_DEFAULT as M, clientToSvgPoint as T, panCamera as E, HEX_BUTTON_ZOOM_STEP as Y, HEX_ZOOM_MIN as q, HEX_ZOOM_MAX as K, interpolateCamera as V, HEX_WHEEL_ZOOM_STEP as j, easeOutCubic as z } from "./hex-camera.js";
3
+ const G = 180;
4
+ function Q({
5
+ extents: f,
6
+ zoom: m,
7
+ onZoomChange: Z,
8
+ svgRef: l,
9
+ viewportRef: P
10
+ }) {
11
+ const [x, g] = r.useState(!1), c = r.useRef(C(f, m)), o = r.useRef(f), w = r.useRef(m), p = r.useRef(null), k = r.useRef(null), a = r.useCallback((t) => {
12
+ c.current = t;
13
+ const e = l.current;
14
+ e && D(e, t);
15
+ }, [l]), y = r.useCallback(
16
+ (t) => {
17
+ const e = I(t);
18
+ e !== w.current && Z(e);
19
+ },
20
+ [Z]
21
+ ), d = r.useCallback(() => {
22
+ p.current !== null && (cancelAnimationFrame(p.current), p.current = null);
23
+ }, []), i = r.useCallback(
24
+ (t, e) => {
25
+ d();
26
+ const n = c.current;
27
+ if (y(e), W()) {
28
+ a(t);
29
+ return;
30
+ }
31
+ const u = performance.now(), s = (X) => {
32
+ const b = Math.min(1, (X - u) / G);
33
+ if (a(V(n, t, z(b))), b < 1) {
34
+ p.current = requestAnimationFrame(s);
35
+ return;
36
+ }
37
+ p.current = null;
38
+ };
39
+ p.current = requestAnimationFrame(s);
40
+ },
41
+ [d, y, a]
42
+ ), A = f.width, _ = f.height;
43
+ r.useEffect(() => {
44
+ o.current = { width: A, height: _ }, w.current = m;
45
+ }, [_, A, m]), r.useEffect(() => {
46
+ const t = { width: A, height: _ };
47
+ o.current = t;
48
+ const e = C(t, w.current);
49
+ c.current = e;
50
+ const n = l.current;
51
+ n && D(n, e);
52
+ }, [_, A, l]), r.useLayoutEffect(() => {
53
+ const t = l.current;
54
+ t && D(t, c.current);
55
+ }), r.useEffect(() => () => d(), [d]);
56
+ const h = r.useCallback(
57
+ (t, e, n = !1) => {
58
+ const u = I(w.current + t), s = H(c.current, o.current, u, e);
59
+ if (n) {
60
+ d(), a(s), y(u);
61
+ return;
62
+ }
63
+ i(s, u);
64
+ },
65
+ [i, d, y, a]
66
+ ), F = r.useCallback(
67
+ (t) => {
68
+ const e = I(t);
69
+ i(H(c.current, o.current, e), e);
70
+ },
71
+ [i]
72
+ ), O = r.useCallback(() => {
73
+ i(C(o.current, M), M);
74
+ }, [i]), L = r.useCallback(() => {
75
+ i(C(o.current, M), M);
76
+ }, [i]), S = r.useCallback(
77
+ (t) => {
78
+ t.button === 0 && (t.target.closest("[data-hex-tilemap-zoom]") || (k.current = {
79
+ pointerId: t.pointerId,
80
+ lastX: t.clientX,
81
+ lastY: t.clientY
82
+ }, t.currentTarget.setPointerCapture(t.pointerId), g(!0)));
83
+ },
84
+ []
85
+ ), R = r.useCallback(
86
+ (t) => {
87
+ const e = k.current, n = l.current;
88
+ if (!e || e.pointerId !== t.pointerId || !n) return;
89
+ const u = T(n, e.lastX, e.lastY), s = T(n, t.clientX, t.clientY);
90
+ e.lastX = t.clientX, e.lastY = t.clientY, !(!u || !s) && a(
91
+ E(c.current, o.current, s.x - u.x, s.y - u.y)
92
+ );
93
+ },
94
+ [a, l]
95
+ ), B = r.useCallback((t) => {
96
+ t && k.current && k.current.pointerId !== t.pointerId || (k.current = null, g(!1));
97
+ }, []);
98
+ r.useEffect(() => {
99
+ const t = P.current;
100
+ if (!t) return;
101
+ const e = (n) => {
102
+ n.preventDefault();
103
+ const u = l.current, s = n.deltaY < 0 ? 1 : -1, X = n.ctrlKey ? 10 : j, b = u ? T(u, n.clientX, n.clientY) : null;
104
+ h(s * X, b ?? void 0, !0);
105
+ };
106
+ return t.addEventListener("wheel", e, { passive: !1 }), () => t.removeEventListener("wheel", e);
107
+ }, [l, P, h]);
108
+ const N = r.useCallback(
109
+ (t) => {
110
+ const e = c.current.width * 0.08;
111
+ t.key === "+" || t.key === "=" ? (t.preventDefault(), h(Y)) : t.key === "-" || t.key === "_" ? (t.preventDefault(), h(-Y)) : t.key === "ArrowLeft" ? (t.preventDefault(), a(E(c.current, o.current, -e, 0))) : t.key === "ArrowRight" ? (t.preventDefault(), a(E(c.current, o.current, e, 0))) : t.key === "ArrowUp" ? (t.preventDefault(), a(E(c.current, o.current, 0, -e))) : t.key === "ArrowDown" ? (t.preventDefault(), a(E(c.current, o.current, 0, e))) : t.key === "0" && (t.preventDefault(), O());
112
+ },
113
+ [a, O, h]
114
+ ), U = r.useMemo(
115
+ () => C(f, m),
116
+ // Recapture only when the land frame changes so wheel/pan viewBox writes stay on the SVG.
117
+ // eslint-disable-next-line react-hooks/exhaustive-deps
118
+ [f.height, f.width]
119
+ );
120
+ return {
121
+ isPanning: x,
122
+ handlePointerDown: S,
123
+ handlePointerMove: R,
124
+ endPan: B,
125
+ handleKeyDown: N,
126
+ zoomBy: h,
127
+ zoomTo: F,
128
+ resetZoom: O,
129
+ zoomToFit: L,
130
+ initialViewBox: U,
131
+ canZoomIn: m < K,
132
+ canZoomOut: m > q
133
+ };
134
+ }
135
+ export {
136
+ Q as useHexCamera
137
+ };
@@ -0,0 +1,2 @@
1
+ export { NotchCard, NotchCardContent, NotchCardBadge } from './notch-card';
2
+ export type { NotchCardProps, NotchCardContentProps, NotchCardBadgeProps, NotchCardTone, NotchCardSize, NotchCardPlacement, NotchCardBadgeTone, } from './notch-card.types';
@@ -0,0 +1,6 @@
1
+ import { NotchCard as r, NotchCardBadge as a, NotchCardContent as d } from "./notch-card.js";
2
+ export {
3
+ r as NotchCard,
4
+ a as NotchCardBadge,
5
+ d as NotchCardContent
6
+ };
@@ -0,0 +1,7 @@
1
+ import { NotchCardBadgeProps, NotchCardContentProps, NotchCardProps } from './notch-card.types';
2
+ import * as React from "react";
3
+ declare const NotchCard: React.ForwardRefExoticComponent<NotchCardProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const NotchCardContent: React.ForwardRefExoticComponent<NotchCardContentProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const NotchCardBadge: React.ForwardRefExoticComponent<NotchCardBadgeProps & React.RefAttributes<HTMLDivElement>>;
6
+ export { NotchCard, NotchCardContent, NotchCardBadge };
7
+ export type { NotchCardProps, NotchCardContentProps, NotchCardBadgeProps, NotchCardPlacement, } from './notch-card.types';
@@ -0,0 +1,151 @@
1
+ import { jsx as C, jsxs as w, Fragment as y } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { Slot as R } from "@radix-ui/react-slot";
4
+ import { createComponent as z } from "../../../lib/primitives/create-component.js";
5
+ import { cn as E } from "../../../lib/utils.js";
6
+ import { notchCardHangPx as V, buildNotchCardPath as _, NOTCH_CARD_BADGE_INSET_PX as H } from "./notch-card.path.js";
7
+ import { notchCardSurfaceVariants as k, notchCardVariants as G, notchCardBadgeVariants as I, notchCardContentVariants as j } from "./notch-card.variants.js";
8
+ const P = n.createContext(null);
9
+ function T() {
10
+ const t = n.useContext(P);
11
+ if (!t)
12
+ throw new Error("NotchCard components must be used within NotchCard");
13
+ return t;
14
+ }
15
+ function A(t, o) {
16
+ return {
17
+ w: t?.clientWidth ?? 0,
18
+ h: t?.clientHeight ?? 0,
19
+ badgeW: o?.offsetWidth ?? 0,
20
+ badgeH: o?.offsetHeight ?? 0,
21
+ rtl: t ? getComputedStyle(t).direction === "rtl" : !1
22
+ };
23
+ }
24
+ const Y = z(
25
+ "NotchCard",
26
+ ({ className: t, tone: o = "default", size: p = "md", placement: f = "bottom-start", children: d, ...g }, v) => {
27
+ const a = n.useRef(null), [i, x] = n.useState(null), [e, b] = n.useState({
28
+ w: 0,
29
+ h: 0,
30
+ badgeW: 0,
31
+ badgeH: 0,
32
+ rtl: !1
33
+ }), r = o ?? "default", l = p ?? "md", s = f ?? "bottom-start", c = s.startsWith("top"), N = s.endsWith("end");
34
+ n.useLayoutEffect(() => {
35
+ const u = a.current, S = () => {
36
+ b(A(u, i));
37
+ };
38
+ S();
39
+ const W = new ResizeObserver(S);
40
+ return u && W.observe(u), i && W.observe(i), () => W.disconnect();
41
+ }, [i]);
42
+ const h = V(e.badgeH), m = n.useMemo(() => {
43
+ const u = _({
44
+ width: e.w,
45
+ height: e.h,
46
+ badgeWidth: e.badgeW,
47
+ badgeHeight: e.badgeH,
48
+ rtl: N ? !e.rtl : e.rtl,
49
+ flipY: c
50
+ });
51
+ return u ? `path('${u}')` : void 0;
52
+ }, [e, N, c]), B = n.useMemo(
53
+ () => ({
54
+ tone: r,
55
+ size: l,
56
+ placement: s,
57
+ setBadgeEl: x
58
+ }),
59
+ [r, l, s]
60
+ );
61
+ return /* @__PURE__ */ C(P.Provider, { value: B, children: /* @__PURE__ */ w(
62
+ "div",
63
+ {
64
+ ref: v,
65
+ "data-component": "notch-card",
66
+ "data-tone": r,
67
+ "data-size": l,
68
+ "data-placement": s,
69
+ className: E(G({ tone: r, size: l }), t),
70
+ style: c ? { paddingTop: h } : { paddingBottom: h },
71
+ ...g,
72
+ children: [
73
+ /* @__PURE__ */ C(
74
+ "div",
75
+ {
76
+ ref: a,
77
+ "data-slot": "notch-card-surface",
78
+ "aria-hidden": !0,
79
+ className: k({ tone: r }),
80
+ style: {
81
+ top: c ? h : 0,
82
+ bottom: c ? 0 : h,
83
+ clipPath: m,
84
+ WebkitClipPath: m
85
+ }
86
+ }
87
+ ),
88
+ d
89
+ ]
90
+ }
91
+ ) });
92
+ }
93
+ ), $ = z(
94
+ "NotchCardContent",
95
+ ({ className: t, ...o }, p) => {
96
+ const { size: f, placement: d } = T();
97
+ return /* @__PURE__ */ C(
98
+ "div",
99
+ {
100
+ ref: p,
101
+ "data-component": "notch-card-content",
102
+ className: E(j({ size: f, placement: d }), t),
103
+ ...o
104
+ }
105
+ );
106
+ }
107
+ ), q = z(
108
+ "NotchCardBadge",
109
+ ({
110
+ className: t,
111
+ asChild: o = !1,
112
+ tone: p,
113
+ size: f,
114
+ icon: d,
115
+ children: g,
116
+ ...v
117
+ }, a) => {
118
+ const { tone: i, size: x, placement: e, setBadgeEl: b } = T(), r = e.startsWith("top"), l = e.endsWith("end"), s = p ?? (i === "iris" ? "iris" : "default"), c = f ?? x, N = o ? R : "div", h = n.useCallback(
119
+ (m) => {
120
+ b(m), typeof a == "function" ? a(m) : a && (a.current = m);
121
+ },
122
+ [a, b]
123
+ );
124
+ return /* @__PURE__ */ C(
125
+ N,
126
+ {
127
+ ref: h,
128
+ "data-component": "notch-card-badge",
129
+ "data-tone": s,
130
+ className: E(
131
+ I({ tone: s, size: c }),
132
+ t
133
+ ),
134
+ style: {
135
+ ...l ? { insetInlineEnd: H } : { insetInlineStart: H },
136
+ ...r ? { top: 0 } : { bottom: 0 }
137
+ },
138
+ ...v,
139
+ children: o ? g : /* @__PURE__ */ w(y, { children: [
140
+ d != null ? /* @__PURE__ */ C("span", { "data-slot": "notch-card-badge-icon", className: "inline-flex shrink-0 text-current", children: d }) : null,
141
+ g
142
+ ] })
143
+ }
144
+ );
145
+ }
146
+ );
147
+ export {
148
+ Y as NotchCard,
149
+ q as NotchCardBadge,
150
+ $ as NotchCardContent
151
+ };
@@ -0,0 +1,19 @@
1
+ export declare const NOTCH_CARD_RADIUS = 18;
2
+ export declare const NOTCH_CARD_BADGE_INSET_PX = 3;
3
+ export declare const NOTCH_CARD_BADGE_HANG_PX = 7;
4
+ export declare const NOTCH_CARD_NOTCH_DEPTH_PX = 25;
5
+ export declare const NOTCH_CARD_BADGE_GAP_Y_PX = 4;
6
+ export declare function notchCardHangPx(badgeHeight: number): number;
7
+ export type NotchCardPathInput = {
8
+ width: number;
9
+ height: number;
10
+ badgeWidth: number;
11
+ badgeHeight: number;
12
+ rtl?: boolean;
13
+ flipY?: boolean;
14
+ };
15
+ /**
16
+ * Same KPI notch on every size: 25px depth, unscaled Figma cubics. Taller pills
17
+ * hang more; the curve is not stretched.
18
+ */
19
+ export declare function buildNotchCardPath({ width, height, badgeWidth, badgeHeight, rtl, flipY, }: NotchCardPathInput): string;