jfs-components 0.0.84 → 0.0.85

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 (43) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/lib/commonjs/components/AppBar/AppBar.js +36 -22
  3. package/lib/commonjs/components/AreaLineChart/AreaLineChart.js +866 -0
  4. package/lib/commonjs/components/AreaLineChart/chartMath.js +252 -0
  5. package/lib/commonjs/components/Attached/Attached.js +34 -4
  6. package/lib/commonjs/components/BubbleChart/BubbleChart.js +191 -0
  7. package/lib/commonjs/components/BubbleChart/bubblePacking.js +378 -0
  8. package/lib/commonjs/components/ClusterBubble/ClusterBubble.js +272 -0
  9. package/lib/commonjs/components/MetricLegendItem/MetricLegendItem.js +7 -1
  10. package/lib/commonjs/components/index.js +27 -0
  11. package/lib/commonjs/design-tokens/Coin Variables-variables-full.json +1 -1
  12. package/lib/commonjs/icons/registry.js +1 -1
  13. package/lib/module/components/AppBar/AppBar.js +36 -22
  14. package/lib/module/components/AreaLineChart/AreaLineChart.js +859 -0
  15. package/lib/module/components/AreaLineChart/chartMath.js +242 -0
  16. package/lib/module/components/Attached/Attached.js +34 -4
  17. package/lib/module/components/BubbleChart/BubbleChart.js +185 -0
  18. package/lib/module/components/BubbleChart/bubblePacking.js +370 -0
  19. package/lib/module/components/ClusterBubble/ClusterBubble.js +267 -0
  20. package/lib/module/components/MetricLegendItem/MetricLegendItem.js +7 -1
  21. package/lib/module/components/index.js +3 -0
  22. package/lib/module/design-tokens/Coin Variables-variables-full.json +1 -1
  23. package/lib/module/icons/registry.js +1 -1
  24. package/lib/typescript/src/components/AreaLineChart/AreaLineChart.d.ts +212 -0
  25. package/lib/typescript/src/components/AreaLineChart/chartMath.d.ts +90 -0
  26. package/lib/typescript/src/components/BubbleChart/BubbleChart.d.ts +81 -0
  27. package/lib/typescript/src/components/BubbleChart/bubblePacking.d.ts +83 -0
  28. package/lib/typescript/src/components/ClusterBubble/ClusterBubble.d.ts +76 -0
  29. package/lib/typescript/src/components/MetricLegendItem/MetricLegendItem.d.ts +7 -1
  30. package/lib/typescript/src/components/index.d.ts +3 -0
  31. package/lib/typescript/src/icons/registry.d.ts +1 -1
  32. package/package.json +1 -1
  33. package/src/components/AppBar/AppBar.tsx +37 -24
  34. package/src/components/AreaLineChart/AreaLineChart.tsx +1161 -0
  35. package/src/components/AreaLineChart/chartMath.ts +265 -0
  36. package/src/components/Attached/Attached.tsx +36 -5
  37. package/src/components/BubbleChart/BubbleChart.tsx +319 -0
  38. package/src/components/BubbleChart/bubblePacking.ts +397 -0
  39. package/src/components/ClusterBubble/ClusterBubble.tsx +359 -0
  40. package/src/components/MetricLegendItem/MetricLegendItem.tsx +20 -6
  41. package/src/components/index.ts +3 -0
  42. package/src/design-tokens/Coin Variables-variables-full.json +1 -1
  43. package/src/icons/registry.ts +1 -1
@@ -134,21 +134,31 @@ export default function AppBar({
134
134
  justifyContent: hasInFlowMiddle ? 'flex-start' : 'space-between'
135
135
  };
136
136
 
137
- // Absolutely-centered middle box for SubPage, mirroring the Figma geometry.
138
- // `left/top: 50%` + a negative translate keeps it centered regardless of the
139
- // bar width, while the fixed width clips overly-wide content (overflow:
140
- // hidden) instead of letting it bleed under the leading/actions slots.
141
- const subPageMiddleStyle = {
137
+ // Absolutely-positioned overlay for the SubPage middle slot. Instead of
138
+ // centering a fixed-height box with `top/left: 50%` + transform (which on
139
+ // Android resolves the percentage against an intermediate, content-driven
140
+ // parent height and lands a few px too high), the overlay STRETCHES to fill
141
+ // the whole bar (`top/bottom/left/right: 0`) and centers its content with
142
+ // flexbox. This uses the exact same full-height vertical reference as the
143
+ // leading/actions row (`alignItems: 'center'`), so the middle content always
144
+ // sits on the same line as the back arrow and end slot on every platform.
145
+ const subPageMiddleOverlayStyle = {
142
146
  position: 'absolute',
143
- top: '50%',
144
- left: '50%',
147
+ top: 0,
148
+ left: 0,
149
+ right: 0,
150
+ bottom: 0,
151
+ flexDirection: 'row',
152
+ alignItems: 'center',
153
+ justifyContent: 'center'
154
+ };
155
+
156
+ // Fixed-width clipping box (mirrors the Figma "slot wrap" geometry): keeps the
157
+ // middle content from bleeding under the leading/actions slots while staying
158
+ // centered within the overlay above.
159
+ const subPageMiddleBoxStyle = {
145
160
  width: middleSlotWidth,
146
161
  height: SUBPAGE_MIDDLE_HEIGHT,
147
- transform: [{
148
- translateX: -middleSlotWidth / 2
149
- }, {
150
- translateY: -SUBPAGE_MIDDLE_HEIGHT / 2
151
- }],
152
162
  flexDirection: 'row',
153
163
  alignItems: 'center',
154
164
  justifyContent: 'center',
@@ -183,19 +193,23 @@ export default function AppBar({
183
193
  style: actionsStyle,
184
194
  children: processedActions
185
195
  }), isSub && processedMiddle && /*#__PURE__*/_jsx(View, {
186
- style: subPageMiddleStyle,
196
+ style: subPageMiddleOverlayStyle,
187
197
  pointerEvents: "box-none",
188
198
  children: /*#__PURE__*/_jsx(View, {
189
- style: {
190
- flex: 1,
191
- minWidth: 1,
192
- height: '100%',
193
- flexDirection: 'row',
194
- alignItems: 'center',
195
- justifyContent: 'center'
196
- },
199
+ style: subPageMiddleBoxStyle,
197
200
  pointerEvents: "box-none",
198
- children: processedMiddle
201
+ children: /*#__PURE__*/_jsx(View, {
202
+ style: {
203
+ flex: 1,
204
+ minWidth: 1,
205
+ height: '100%',
206
+ flexDirection: 'row',
207
+ alignItems: 'center',
208
+ justifyContent: 'center'
209
+ },
210
+ pointerEvents: "box-none",
211
+ children: processedMiddle
212
+ })
199
213
  })
200
214
  })]
201
215
  });