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.
- package/CHANGELOG.md +29 -0
- package/lib/commonjs/components/AppBar/AppBar.js +36 -22
- package/lib/commonjs/components/AreaLineChart/AreaLineChart.js +866 -0
- package/lib/commonjs/components/AreaLineChart/chartMath.js +252 -0
- package/lib/commonjs/components/Attached/Attached.js +34 -4
- package/lib/commonjs/components/BubbleChart/BubbleChart.js +191 -0
- package/lib/commonjs/components/BubbleChart/bubblePacking.js +378 -0
- package/lib/commonjs/components/ClusterBubble/ClusterBubble.js +272 -0
- package/lib/commonjs/components/MetricLegendItem/MetricLegendItem.js +7 -1
- package/lib/commonjs/components/index.js +27 -0
- package/lib/commonjs/design-tokens/Coin Variables-variables-full.json +1 -1
- package/lib/commonjs/icons/registry.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +36 -22
- package/lib/module/components/AreaLineChart/AreaLineChart.js +859 -0
- package/lib/module/components/AreaLineChart/chartMath.js +242 -0
- package/lib/module/components/Attached/Attached.js +34 -4
- package/lib/module/components/BubbleChart/BubbleChart.js +185 -0
- package/lib/module/components/BubbleChart/bubblePacking.js +370 -0
- package/lib/module/components/ClusterBubble/ClusterBubble.js +267 -0
- package/lib/module/components/MetricLegendItem/MetricLegendItem.js +7 -1
- package/lib/module/components/index.js +3 -0
- package/lib/module/design-tokens/Coin Variables-variables-full.json +1 -1
- package/lib/module/icons/registry.js +1 -1
- package/lib/typescript/src/components/AreaLineChart/AreaLineChart.d.ts +212 -0
- package/lib/typescript/src/components/AreaLineChart/chartMath.d.ts +90 -0
- package/lib/typescript/src/components/BubbleChart/BubbleChart.d.ts +81 -0
- package/lib/typescript/src/components/BubbleChart/bubblePacking.d.ts +83 -0
- package/lib/typescript/src/components/ClusterBubble/ClusterBubble.d.ts +76 -0
- package/lib/typescript/src/components/MetricLegendItem/MetricLegendItem.d.ts +7 -1
- package/lib/typescript/src/components/index.d.ts +3 -0
- package/lib/typescript/src/icons/registry.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/AppBar/AppBar.tsx +37 -24
- package/src/components/AreaLineChart/AreaLineChart.tsx +1161 -0
- package/src/components/AreaLineChart/chartMath.ts +265 -0
- package/src/components/Attached/Attached.tsx +36 -5
- package/src/components/BubbleChart/BubbleChart.tsx +319 -0
- package/src/components/BubbleChart/bubblePacking.ts +397 -0
- package/src/components/ClusterBubble/ClusterBubble.tsx +359 -0
- package/src/components/MetricLegendItem/MetricLegendItem.tsx +20 -6
- package/src/components/index.ts +3 -0
- package/src/design-tokens/Coin Variables-variables-full.json +1 -1
- 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-
|
|
138
|
-
// `left
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
|
|
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:
|
|
144
|
-
left:
|
|
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:
|
|
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:
|
|
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
|
});
|