@galaxy-io/dls 2.7.0 → 2.8.1
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/dist/brand/GalaxyAlchemyWordmark.d.ts +31 -0
- package/dist/brand/GalaxyAlchemyWordmark.js +38 -0
- package/dist/brand/brandMark.js +3 -2
- package/dist/brand/internal/svg/GalaxyAlchemyWordmarkSvg.d.ts +13 -0
- package/dist/brand/internal/svg/GalaxyAlchemyWordmarkSvg.js +29 -0
- package/dist/charts/BarChart.js +1 -1
- package/dist/charts/BigNumber.d.ts +66 -0
- package/dist/charts/{StatChart.js → BigNumber.js} +57 -20
- package/dist/charts/BigNumberGroup.d.ts +51 -0
- package/dist/charts/BigNumberGroup.js +112 -0
- package/dist/charts/ChartCategoryTargets.js +1 -1
- package/dist/charts/ChartFrame.js +14 -15
- package/dist/charts/ChartPrimitives.d.ts +5 -0
- package/dist/charts/ChartPrimitives.js +22 -17
- package/dist/charts/Heatmap.js +2 -2
- package/dist/charts/LineChart.js +1 -1
- package/dist/charts/PieChart.js +10 -4
- package/dist/charts/Sparkline.js +1 -1
- package/dist/charts/types.d.ts +1 -1
- package/dist/charts/useChartInteraction.js +0 -2
- package/dist/inputs/PasswordInput.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/package.json +13 -5
- package/dist/charts/StatChart.d.ts +0 -48
|
@@ -24,36 +24,41 @@ var CHART_AREA_STACKED_CSS = "gx-ChartPrimitives-CHART_AREA_STACKED_CSS-c1ob2op2
|
|
|
24
24
|
var CHART_BAR_CSS = "gx-ChartPrimitives-CHART_BAR_CSS-c8c506o";
|
|
25
25
|
/** @internal A pie arc. */
|
|
26
26
|
var CHART_ARC_CSS = "gx-ChartPrimitives-CHART_ARC_CSS-ceqlpek";
|
|
27
|
+
/**
|
|
28
|
+
* @internal The track a loading pie with no slices draws at its radii: the grid hairline bent into
|
|
29
|
+
* a ring, so the pulse has the shape of the chart it is about to be.
|
|
30
|
+
*/
|
|
31
|
+
var CHART_PIE_TRACK_CSS = "gx-ChartPrimitives-CHART_PIE_TRACK_CSS-c1fcbddl";
|
|
27
32
|
/** @internal A point dot, haloed by the canvas so it reads over the line. */
|
|
28
|
-
var CHART_POINT_CSS = "gx-ChartPrimitives-CHART_POINT_CSS-
|
|
33
|
+
var CHART_POINT_CSS = "gx-ChartPrimitives-CHART_POINT_CSS-cpcxr59";
|
|
29
34
|
/** @internal A filled heatmap cell: its ramp step arrives as `--gx-chart-mark-color`. */
|
|
30
|
-
var HEATMAP_CELL_CSS = "gx-ChartPrimitives-HEATMAP_CELL_CSS-
|
|
35
|
+
var HEATMAP_CELL_CSS = "gx-ChartPrimitives-HEATMAP_CELL_CSS-h1wvzvu4";
|
|
31
36
|
/** @internal An empty heatmap cell (no reading): a hairline outline, distinct from the lowest step. */
|
|
32
|
-
var HEATMAP_EMPTY_CELL_CSS = "gx-ChartPrimitives-HEATMAP_EMPTY_CELL_CSS-
|
|
37
|
+
var HEATMAP_EMPTY_CELL_CSS = "gx-ChartPrimitives-HEATMAP_EMPTY_CELL_CSS-h17guewt";
|
|
33
38
|
/** @internal The engaged heatmap cell: an outline, so the rest keep their color for comparison. */
|
|
34
|
-
var HEATMAP_ACTIVE_CELL_CSS = "gx-ChartPrimitives-HEATMAP_ACTIVE_CELL_CSS-
|
|
39
|
+
var HEATMAP_ACTIVE_CELL_CSS = "gx-ChartPrimitives-HEATMAP_ACTIVE_CELL_CSS-hblgiyf";
|
|
35
40
|
/** @internal Emphasis of a mark. No transition: emphasis is feedback and snaps. */
|
|
36
41
|
var CHART_MARK_STATE_TO_CSS_MAP = {
|
|
37
|
-
[ChartMarkState.ACTIVE]: "gx-ChartPrimitives-ChartMarkState_ACTIVE-
|
|
38
|
-
[ChartMarkState.MUTED]: "gx-ChartPrimitives-ChartMarkState_MUTED-
|
|
39
|
-
[ChartMarkState.DIMMED]: "gx-ChartPrimitives-ChartMarkState_DIMMED-
|
|
42
|
+
[ChartMarkState.ACTIVE]: "gx-ChartPrimitives-ChartMarkState_ACTIVE-c1lr03cc",
|
|
43
|
+
[ChartMarkState.MUTED]: "gx-ChartPrimitives-ChartMarkState_MUTED-cizy1s8",
|
|
44
|
+
[ChartMarkState.DIMMED]: "gx-ChartPrimitives-ChartMarkState_DIMMED-c1ukq11d"
|
|
40
45
|
};
|
|
41
46
|
/** @internal A value grid hairline, drawn at every tick including zero. */
|
|
42
|
-
var CHART_GRID_LINE_CSS = "gx-ChartPrimitives-CHART_GRID_LINE_CSS-
|
|
47
|
+
var CHART_GRID_LINE_CSS = "gx-ChartPrimitives-CHART_GRID_LINE_CSS-cwcko2m";
|
|
43
48
|
/** @internal The rule at the engaged category (LineChart, AreaChart): one crisp pixel column. */
|
|
44
|
-
var CHART_CURSOR_LINE_CSS = "gx-ChartPrimitives-CHART_CURSOR_LINE_CSS-
|
|
49
|
+
var CHART_CURSOR_LINE_CSS = "gx-ChartPrimitives-CHART_CURSOR_LINE_CSS-cqwhvyz";
|
|
45
50
|
/** @internal The rule held at a selected category: one step firmer on the same neutral ramp. */
|
|
46
|
-
var CHART_CURSOR_LINE_SELECTED_CSS = "gx-ChartPrimitives-CHART_CURSOR_LINE_SELECTED_CSS-
|
|
51
|
+
var CHART_CURSOR_LINE_SELECTED_CSS = "gx-ChartPrimitives-CHART_CURSOR_LINE_SELECTED_CSS-c1iaray";
|
|
47
52
|
/** @internal The band behind the engaged category (BarChart). */
|
|
48
|
-
var CHART_CURSOR_BAND_CSS = "gx-ChartPrimitives-CHART_CURSOR_BAND_CSS-
|
|
53
|
+
var CHART_CURSOR_BAND_CSS = "gx-ChartPrimitives-CHART_CURSOR_BAND_CSS-cz6jod1";
|
|
49
54
|
/** @internal The band held at a selected category. */
|
|
50
|
-
var CHART_CURSOR_BAND_SELECTED_CSS = "gx-ChartPrimitives-CHART_CURSOR_BAND_SELECTED_CSS-
|
|
55
|
+
var CHART_CURSOR_BAND_SELECTED_CSS = "gx-ChartPrimitives-CHART_CURSOR_BAND_SELECTED_CSS-c1de5mqk";
|
|
51
56
|
/** @internal A transparent hit target above the marks. */
|
|
52
|
-
var CHART_HIT_TARGET_CSS = "gx-ChartPrimitives-CHART_HIT_TARGET_CSS-
|
|
57
|
+
var CHART_HIT_TARGET_CSS = "gx-ChartPrimitives-CHART_HIT_TARGET_CSS-cjirv6a";
|
|
53
58
|
/** @internal A hit target that reports a click (`onSelect` set). */
|
|
54
|
-
var CHART_HIT_TARGET_CLICKABLE_CSS = "gx-ChartPrimitives-CHART_HIT_TARGET_CLICKABLE_CSS-
|
|
59
|
+
var CHART_HIT_TARGET_CLICKABLE_CSS = "gx-ChartPrimitives-CHART_HIT_TARGET_CLICKABLE_CSS-c1armna5";
|
|
55
60
|
/** @internal A `foreignObject` holding an axis label (`Text`). */
|
|
56
|
-
var CHART_AXIS_LABEL_BOX_CSS = "gx-ChartPrimitives-CHART_AXIS_LABEL_BOX_CSS-
|
|
61
|
+
var CHART_AXIS_LABEL_BOX_CSS = "gx-ChartPrimitives-CHART_AXIS_LABEL_BOX_CSS-cgd77rv";
|
|
57
62
|
/**
|
|
58
63
|
* @internal A target's `mouseleave`: calls `onLeave` only when the pointer left the target layers,
|
|
59
64
|
* not when it crossed into a neighbouring target, so the engaged category never flickers through
|
|
@@ -62,8 +67,8 @@ var CHART_AXIS_LABEL_BOX_CSS = "gx-ChartPrimitives-CHART_AXIS_LABEL_BOX_CSS-c1ar
|
|
|
62
67
|
function leaveUnlessTarget(event, onLeave) {
|
|
63
68
|
const next = event.relatedTarget;
|
|
64
69
|
const layers = event.currentTarget.parentElement;
|
|
65
|
-
if (next instanceof Element && layers?.contains(next) && next.classList.contains("gx-ChartPrimitives-CHART_HIT_TARGET_CSS-
|
|
70
|
+
if (next instanceof Element && layers?.contains(next) && next.classList.contains("gx-ChartPrimitives-CHART_HIT_TARGET_CSS-cjirv6a")) return;
|
|
66
71
|
onLeave();
|
|
67
72
|
}
|
|
68
73
|
//#endregion
|
|
69
|
-
export { CHART_ARC_CSS, CHART_AREA_CSS, CHART_AREA_OVERLAP_CSS, CHART_AREA_STACKED_CSS, CHART_AXIS_LABEL_BOX_CSS, CHART_BAR_CSS, CHART_CURSOR_BAND_CSS, CHART_CURSOR_BAND_SELECTED_CSS, CHART_CURSOR_LINE_CSS, CHART_CURSOR_LINE_SELECTED_CSS, CHART_GRID_LINE_CSS, CHART_HIT_TARGET_CLICKABLE_CSS, CHART_HIT_TARGET_CSS, CHART_LINE_CSS, CHART_LINE_DASHED_CSS, CHART_MARK_STATE_TO_CSS_MAP, CHART_POINT_CSS, HEATMAP_ACTIVE_CELL_CSS, HEATMAP_CELL_CSS, HEATMAP_EMPTY_CELL_CSS, leaveUnlessTarget };
|
|
74
|
+
export { CHART_ARC_CSS, CHART_AREA_CSS, CHART_AREA_OVERLAP_CSS, CHART_AREA_STACKED_CSS, CHART_AXIS_LABEL_BOX_CSS, CHART_BAR_CSS, CHART_CURSOR_BAND_CSS, CHART_CURSOR_BAND_SELECTED_CSS, CHART_CURSOR_LINE_CSS, CHART_CURSOR_LINE_SELECTED_CSS, CHART_GRID_LINE_CSS, CHART_HIT_TARGET_CLICKABLE_CSS, CHART_HIT_TARGET_CSS, CHART_LINE_CSS, CHART_LINE_DASHED_CSS, CHART_MARK_STATE_TO_CSS_MAP, CHART_PIE_TRACK_CSS, CHART_POINT_CSS, HEATMAP_ACTIVE_CELL_CSS, HEATMAP_CELL_CSS, HEATMAP_EMPTY_CELL_CSS, leaveUnlessTarget };
|
package/dist/charts/Heatmap.js
CHANGED
|
@@ -288,14 +288,14 @@ var Heatmap = forwardRef(function Heatmap(props, ref) {
|
|
|
288
288
|
categoryIndex: index,
|
|
289
289
|
seriesKey: cell.row
|
|
290
290
|
});
|
|
291
|
-
if (state === ChartMarkState.MUTED
|
|
291
|
+
if (state === ChartMarkState.MUTED) state = ChartMarkState.DIMMED;
|
|
292
292
|
return /* @__PURE__ */ jsx("rect", {
|
|
293
293
|
x: cell.x,
|
|
294
294
|
y: cell.y,
|
|
295
295
|
width: cell.width,
|
|
296
296
|
height: cell.height,
|
|
297
297
|
rx: HEATMAP_CELL_RADIUS,
|
|
298
|
-
className: cx(cell.step === null ? HEATMAP_EMPTY_CELL_CSS : HEATMAP_CELL_CSS, interaction.activeIndex === index && "gx-ChartPrimitives-HEATMAP_ACTIVE_CELL_CSS-
|
|
298
|
+
className: cx(cell.step === null ? HEATMAP_EMPTY_CELL_CSS : HEATMAP_CELL_CSS, interaction.activeIndex === index && "gx-ChartPrimitives-HEATMAP_ACTIVE_CELL_CSS-hblgiyf", CHART_MARK_STATE_TO_CSS_MAP[state]),
|
|
299
299
|
style: cell.step === null ? void 0 : { "--gx-chart-mark-color": stepColor(cell) }
|
|
300
300
|
}, cell.id);
|
|
301
301
|
})
|
package/dist/charts/LineChart.js
CHANGED
|
@@ -238,7 +238,7 @@ function LineChartRootInner(props, ref) {
|
|
|
238
238
|
x2: activeColumn.x,
|
|
239
239
|
y1: 0,
|
|
240
240
|
y2: plotHeight,
|
|
241
|
-
className: "gx-ChartPrimitives-CHART_CURSOR_LINE_CSS-
|
|
241
|
+
className: "gx-ChartPrimitives-CHART_CURSOR_LINE_CSS-cqwhvyz"
|
|
242
242
|
}),
|
|
243
243
|
!isEmpty && geometry.paths.map((path) => /* @__PURE__ */ jsx("path", {
|
|
244
244
|
d: path.path,
|
package/dist/charts/PieChart.js
CHANGED
|
@@ -13,7 +13,7 @@ import { PIE_MIN_SLICE_SHARE, buildPieChartGeometry, resolvePieChartSlices } fro
|
|
|
13
13
|
/* empty css */
|
|
14
14
|
import { styled } from "@linaria/react";
|
|
15
15
|
import { forwardRef, useCallback, useMemo, useRef } from "react";
|
|
16
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { cx } from "@linaria/core";
|
|
18
18
|
//#region src/charts/PieChart.tsx
|
|
19
19
|
/**
|
|
@@ -191,16 +191,22 @@ function PieChartInner(props, ref) {
|
|
|
191
191
|
legendItems,
|
|
192
192
|
legendPlacement: ChartLegendPlacement.RIGHT,
|
|
193
193
|
swatch,
|
|
194
|
-
children: /* @__PURE__ */
|
|
194
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
195
195
|
transform: centerTransform,
|
|
196
|
-
children: geometry.
|
|
196
|
+
children: [isLoading && isEmpty && geometry.outerRadius > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("circle", {
|
|
197
|
+
r: geometry.outerRadius,
|
|
198
|
+
className: "gx-ChartPrimitives-CHART_PIE_TRACK_CSS-c1fcbddl"
|
|
199
|
+
}), geometry.innerRadius > 0 && /* @__PURE__ */ jsx("circle", {
|
|
200
|
+
r: geometry.innerRadius,
|
|
201
|
+
className: "gx-ChartPrimitives-CHART_PIE_TRACK_CSS-c1fcbddl"
|
|
202
|
+
})] }), geometry.arcs.map((item, index) => /* @__PURE__ */ jsx("path", {
|
|
197
203
|
d: item.path,
|
|
198
204
|
className: cx(CHART_ARC_CSS, CHART_MARK_STATE_TO_CSS_MAP[interaction.getMarkState({
|
|
199
205
|
categoryIndex: index,
|
|
200
206
|
seriesKey: item.id
|
|
201
207
|
})]),
|
|
202
208
|
style: { "--gx-chart-mark-color": item.color.color }
|
|
203
|
-
}, item.id))
|
|
209
|
+
}, item.id))]
|
|
204
210
|
})
|
|
205
211
|
});
|
|
206
212
|
}
|
package/dist/charts/Sparkline.js
CHANGED
|
@@ -9,7 +9,7 @@ import { cx } from "@linaria/core";
|
|
|
9
9
|
//#region src/charts/Sparkline.tsx
|
|
10
10
|
/**
|
|
11
11
|
* Sparkline is a word-sized trend: a tiny line or row of bars with no axes, legend, tooltip or
|
|
12
|
-
* interaction, set beside the number it summarizes in a table cell, a list row, a `
|
|
12
|
+
* interaction, set beside the number it summarizes in a table cell, a list row, a `BigNumber` or a
|
|
13
13
|
* sentence. It shows shape (rising, falling, spiky), not values; a chart to read values from is
|
|
14
14
|
* `LineChart` / `BarChart`.
|
|
15
15
|
*
|
package/dist/charts/types.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ export interface BaseChartProps<TKey extends string> extends AriaAttributes {
|
|
|
284
284
|
/** Replaces the tooltip body; positioning stays with the chart. Never called with empty rows. */
|
|
285
285
|
renderTooltip?: ChartTooltipRenderer;
|
|
286
286
|
/**
|
|
287
|
-
*
|
|
287
|
+
* The plot (axes and marks) pulses between opaque and faint while the legend holds; interaction pauses until it clears. Sets `aria-busy`.
|
|
288
288
|
* @default false
|
|
289
289
|
*/
|
|
290
290
|
isLoading?: boolean;
|
|
@@ -173,7 +173,6 @@ function useChartInteraction({ categoryCount, seriesKeys, categoryKeys, enableGr
|
|
|
173
173
|
categoryKeys
|
|
174
174
|
]);
|
|
175
175
|
const getMarkState = useCallback(({ categoryIndex, seriesKey }) => {
|
|
176
|
-
if (isLoading) return ChartMarkState.MUTED;
|
|
177
176
|
if (seriesKey !== void 0 && safeHoveredSeries !== null) return seriesKey === safeHoveredSeries ? ChartMarkState.ACTIVE : ChartMarkState.MUTED;
|
|
178
177
|
if (!matchesSelection({
|
|
179
178
|
categoryIndex,
|
|
@@ -182,7 +181,6 @@ function useChartInteraction({ categoryCount, seriesKeys, categoryKeys, enableGr
|
|
|
182
181
|
if (hasSelection) return ChartMarkState.ACTIVE;
|
|
183
182
|
return categoryIndex !== void 0 && activeIndex !== null && categoryIndex !== activeIndex ? categoryMuteState : ChartMarkState.ACTIVE;
|
|
184
183
|
}, [
|
|
185
|
-
isLoading,
|
|
186
184
|
matchesSelection,
|
|
187
185
|
safeHoveredSeries,
|
|
188
186
|
hasSelection,
|
|
@@ -8,7 +8,7 @@ export type PasswordInputProps = Omit<InputProps, "type" | "trailing" | "isClear
|
|
|
8
8
|
autoComplete?: InputProps["autoComplete"];
|
|
9
9
|
};
|
|
10
10
|
/** A masked single-line field with a "Show password" toggle: `Input` with `type="password"`. */
|
|
11
|
-
declare const PasswordInput: import("react").ForwardRefExoticComponent<Omit<InputProps, "type" | "spellCheck" | "prefix" | "inputMode" | "trailing" | "
|
|
11
|
+
declare const PasswordInput: import("react").ForwardRefExoticComponent<Omit<InputProps, "type" | "spellCheck" | "prefix" | "inputMode" | "trailing" | "suffix" | "autoComplete" | "isClearable"> & {
|
|
12
12
|
/**
|
|
13
13
|
* Password-manager hint. Use `"new-password"` on sign-up and change-password forms.
|
|
14
14
|
* @default "current-password"
|