@galaxy-io/dls 1.4.0 → 1.4.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/charts/BarChart.js +2 -2
- package/dist/charts/ChartEmptyState.js +3 -3
- package/dist/charts/ChartPrimitives.d.ts +14 -0
- package/dist/charts/ChartPrimitives.js +45 -19
- package/dist/charts/ChartTooltip.js +20 -33
- package/dist/charts/LineChart.js +2 -2
- package/dist/icons/GalaxyLogomark3D.js +4 -4
- package/dist/inputs/ColorInput.js +2 -2
- package/dist/inputs/MultiSelectInput.js +3 -3
- package/dist/inputs/SelectInput.js +3 -3
- package/dist/styles.css +8 -5
- package/dist/table/SpreadsheetCell.js +2 -2
- package/dist/toast/ToastProvider.js +2 -2
- package/package.json +1 -1
package/dist/charts/BarChart.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ChartBarPath } from "./ChartPrimitives.js";
|
|
|
8
8
|
import ChartFrame from "./ChartFrame.js";
|
|
9
9
|
import { ChartCategoryAxis, ChartValueAxis } from "./ChartAxis.js";
|
|
10
10
|
import { useCallback, useMemo, useRef } from "react";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/charts/BarChart.tsx
|
|
13
13
|
/**
|
|
14
14
|
* Bar chart with a three-level data model.
|
|
@@ -150,7 +150,7 @@ var BarChart = ({ series, groups, width, height, fillWidth, fillHeight, aspectRa
|
|
|
150
150
|
categoryCount: groups.length,
|
|
151
151
|
ariaLabel,
|
|
152
152
|
ariaDescription,
|
|
153
|
-
axes: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ChartValueAxis, {
|
|
153
|
+
axes: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ChartValueAxis, {
|
|
154
154
|
ticks: valueTicks,
|
|
155
155
|
scale: geometry.valueScale,
|
|
156
156
|
plotWidth,
|
|
@@ -19,9 +19,9 @@ var ChartEmptyState = ({ content }) => /* @__PURE__ */ jsx(ChartEmptyOverlay, {
|
|
|
19
19
|
justifyContent: JustifyContent.CENTER,
|
|
20
20
|
alignItems: AlignItems.CENTER,
|
|
21
21
|
children: /* @__PURE__ */ jsx(Text, {
|
|
22
|
-
size: TextSize.
|
|
23
|
-
variant: TextVariant.
|
|
24
|
-
children: "No data"
|
|
22
|
+
size: TextSize.BODY_SM,
|
|
23
|
+
variant: TextVariant.SECONDARY,
|
|
24
|
+
children: "No data available"
|
|
25
25
|
})
|
|
26
26
|
})
|
|
27
27
|
});
|
|
@@ -153,6 +153,20 @@ export declare const ChartTooltipPositioner: import("react").ComponentType<Pick<
|
|
|
153
153
|
} & {
|
|
154
154
|
as?: React.ElementType;
|
|
155
155
|
}>, {}>;
|
|
156
|
+
/**
|
|
157
|
+
* Two-column tooltip body: label column, one gutter, value column.
|
|
158
|
+
*
|
|
159
|
+
* A grid rather than per-row `space-between`, so every row shares the same
|
|
160
|
+
* column boundary: the value column is sized by the widest value and every
|
|
161
|
+
* value is guaranteed its full width, while the labels take the remainder and
|
|
162
|
+
* all ellipsize against the same edge. Per-row flex made the label→value gap
|
|
163
|
+
* drift with each label's length, which read as misalignment down the list.
|
|
164
|
+
*/
|
|
165
|
+
export declare const ChartTooltipGrid: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
166
|
+
/** Swatch + label. `min-width: 0` is what lets the label actually ellipsize. */
|
|
167
|
+
export declare const ChartTooltipLabelCell: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
168
|
+
/** Right-aligned and never wrapped — the value always shows in full. */
|
|
169
|
+
export declare const ChartTooltipValueCell: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
156
170
|
/**
|
|
157
171
|
* Content well inside a donut hole.
|
|
158
172
|
*
|
|
@@ -201,7 +201,7 @@ var ChartAxisLabelBox = /*#__PURE__*/ styled("foreignObject")({
|
|
|
201
201
|
var _exp17 = () => ({ $x }) => `${$x}px`;
|
|
202
202
|
var _exp18 = () => ({ $y }) => `${$y}px`;
|
|
203
203
|
var _exp21 = () => ({ theme }) => theme.color.border.primary;
|
|
204
|
-
var _exp22 = () => ({ theme }) => theme.color.background.
|
|
204
|
+
var _exp22 = () => ({ theme }) => theme.color.background.tertiary;
|
|
205
205
|
var _exp23 = () => ({ $isVisible }) => $isVisible ? 1 : 0;
|
|
206
206
|
var ChartTooltipPositioner = withTheme(/*#__PURE__*/ styled("div")({
|
|
207
207
|
name: "ChartTooltipPositioner",
|
|
@@ -216,6 +216,32 @@ var ChartTooltipPositioner = withTheme(/*#__PURE__*/ styled("div")({
|
|
|
216
216
|
}
|
|
217
217
|
}));
|
|
218
218
|
/**
|
|
219
|
+
* Two-column tooltip body: label column, one gutter, value column.
|
|
220
|
+
*
|
|
221
|
+
* A grid rather than per-row `space-between`, so every row shares the same
|
|
222
|
+
* column boundary: the value column is sized by the widest value and every
|
|
223
|
+
* value is guaranteed its full width, while the labels take the remainder and
|
|
224
|
+
* all ellipsize against the same edge. Per-row flex made the label→value gap
|
|
225
|
+
* drift with each label's length, which read as misalignment down the list.
|
|
226
|
+
*/
|
|
227
|
+
var ChartTooltipGrid = /*#__PURE__*/ styled("div")({
|
|
228
|
+
name: "ChartTooltipGrid",
|
|
229
|
+
class: "cwcko2m",
|
|
230
|
+
propsAsIs: false
|
|
231
|
+
});
|
|
232
|
+
/** Swatch + label. `min-width: 0` is what lets the label actually ellipsize. */
|
|
233
|
+
var ChartTooltipLabelCell = /*#__PURE__*/ styled("div")({
|
|
234
|
+
name: "ChartTooltipLabelCell",
|
|
235
|
+
class: "cqwhvyz",
|
|
236
|
+
propsAsIs: false
|
|
237
|
+
});
|
|
238
|
+
/** Right-aligned and never wrapped — the value always shows in full. */
|
|
239
|
+
var ChartTooltipValueCell = /*#__PURE__*/ styled("div")({
|
|
240
|
+
name: "ChartTooltipValueCell",
|
|
241
|
+
class: "c1iaray",
|
|
242
|
+
propsAsIs: false
|
|
243
|
+
});
|
|
244
|
+
/**
|
|
219
245
|
* Content well inside a donut hole.
|
|
220
246
|
*
|
|
221
247
|
* Rendered as HTML positioned over the SVG rather than as `<text>`, so the
|
|
@@ -228,12 +254,12 @@ var _exp28 = () => ({ $centerY }) => `${$centerY}px`;
|
|
|
228
254
|
var _exp30 = () => ({ $diameter }) => `${$diameter}px`;
|
|
229
255
|
var ChartCenterBox = /*#__PURE__*/ styled("div")({
|
|
230
256
|
name: "ChartCenterBox",
|
|
231
|
-
class: "
|
|
257
|
+
class: "cz6jod1",
|
|
232
258
|
propsAsIs: false,
|
|
233
259
|
vars: {
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"
|
|
260
|
+
"cz6jod1-0": [_exp27()],
|
|
261
|
+
"cz6jod1-1": [_exp28()],
|
|
262
|
+
"cz6jod1-2": [_exp30()]
|
|
237
263
|
}
|
|
238
264
|
});
|
|
239
265
|
/**
|
|
@@ -241,14 +267,14 @@ var ChartCenterBox = /*#__PURE__*/ styled("div")({
|
|
|
241
267
|
* legible underneath.
|
|
242
268
|
*/
|
|
243
269
|
var _exp31 = () => ({ theme }) => theme.color.border.primary;
|
|
244
|
-
var _exp32 = () => ({ theme }) => theme.color.background.
|
|
270
|
+
var _exp32 = () => ({ theme }) => theme.color.background.primary;
|
|
245
271
|
var ChartEmptyOverlay = withTheme(/*#__PURE__*/ styled("div")({
|
|
246
272
|
name: "ChartEmptyOverlay",
|
|
247
|
-
class: "
|
|
273
|
+
class: "c1de5mqk",
|
|
248
274
|
propsAsIs: false,
|
|
249
275
|
vars: {
|
|
250
|
-
"
|
|
251
|
-
"
|
|
276
|
+
"c1de5mqk-0": [_exp31()],
|
|
277
|
+
"c1de5mqk-1": [_exp32()]
|
|
252
278
|
}
|
|
253
279
|
}));
|
|
254
280
|
/**
|
|
@@ -268,15 +294,15 @@ var _exp37 = () => ({ $vertical }) => $vertical ? "0" : "10px";
|
|
|
268
294
|
var _exp38 = () => ({ $inset }) => `${$inset}px`;
|
|
269
295
|
var ChartLegendRow = /*#__PURE__*/ styled("div")({
|
|
270
296
|
name: "ChartLegendRow",
|
|
271
|
-
class: "
|
|
297
|
+
class: "cjirv6a",
|
|
272
298
|
propsAsIs: false,
|
|
273
299
|
vars: {
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
300
|
+
"cjirv6a-0": [_exp33()],
|
|
301
|
+
"cjirv6a-1": [_exp34()],
|
|
302
|
+
"cjirv6a-2": [_exp35()],
|
|
303
|
+
"cjirv6a-3": [_exp36()],
|
|
304
|
+
"cjirv6a-4": [_exp37()],
|
|
305
|
+
"cjirv6a-5": [_exp38()]
|
|
280
306
|
}
|
|
281
307
|
});
|
|
282
308
|
/**
|
|
@@ -293,14 +319,14 @@ var ChartLegendRow = /*#__PURE__*/ styled("div")({
|
|
|
293
319
|
*/
|
|
294
320
|
var ChartLegendItemButton = /*#__PURE__*/ styled("button")({
|
|
295
321
|
name: "ChartLegendItemButton",
|
|
296
|
-
class: "
|
|
322
|
+
class: "c1armna5",
|
|
297
323
|
propsAsIs: false
|
|
298
324
|
});
|
|
299
325
|
/** The same row, when the legend is inert — no button semantics to announce. */
|
|
300
326
|
var ChartLegendItemStatic = /*#__PURE__*/ styled("div")({
|
|
301
327
|
name: "ChartLegendItemStatic",
|
|
302
|
-
class: "
|
|
328
|
+
class: "cgd77rv",
|
|
303
329
|
propsAsIs: false
|
|
304
330
|
});
|
|
305
331
|
//#endregion
|
|
306
|
-
export { ChartArcPath, ChartAreaPath, ChartAxisLabelBox, ChartBarPath, ChartCenterBox, ChartCursorLine, ChartEmptyOverlay, ChartGridLine, ChartHitTarget, ChartHitTargetPath, ChartLegendItemButton, ChartLegendItemStatic, ChartLegendRow, ChartLinePath, ChartPlotBox, ChartPlotGroup, ChartPointCircle, ChartRoot, ChartSvg, ChartTooltipPositioner };
|
|
332
|
+
export { ChartArcPath, ChartAreaPath, ChartAxisLabelBox, ChartBarPath, ChartCenterBox, ChartCursorLine, ChartEmptyOverlay, ChartGridLine, ChartHitTarget, ChartHitTargetPath, ChartLegendItemButton, ChartLegendItemStatic, ChartLegendRow, ChartLinePath, ChartPlotBox, ChartPlotGroup, ChartPointCircle, ChartRoot, ChartSvg, ChartTooltipGrid, ChartTooltipLabelCell, ChartTooltipPositioner, ChartTooltipValueCell };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import Text, { TextSize, TextVariant, TextWeight } from "../text/Text.js";
|
|
2
2
|
import FlexItem from "../containers/FlexItem.js";
|
|
3
|
-
import FlexWrapper, {
|
|
3
|
+
import FlexWrapper, { FlexDirection } from "../containers/FlexWrapper.js";
|
|
4
4
|
import Circle from "../shapes/Circle.js";
|
|
5
5
|
import { useChartTooltipPosition } from "./useChartTooltipPosition.js";
|
|
6
|
-
import { ChartTooltipPositioner } from "./ChartPrimitives.js";
|
|
7
|
-
import { useState } from "react";
|
|
6
|
+
import { ChartTooltipGrid, ChartTooltipLabelCell, ChartTooltipPositioner, ChartTooltipValueCell } from "./ChartPrimitives.js";
|
|
7
|
+
import { Fragment, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/charts/ChartTooltip.tsx
|
|
10
10
|
var ChartTooltip = ({ model, containerWidth, containerHeight, anchorHalfWidth, placeAwayFromX, verticalAlign, renderer }) => {
|
|
@@ -34,37 +34,24 @@ var ChartTooltip = ({ model, containerWidth, containerHeight, anchorHalfWidth, p
|
|
|
34
34
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
35
35
|
size: TextSize.BODY_SM,
|
|
36
36
|
variant: TextVariant.TERTIARY,
|
|
37
|
+
isEllipsis: true,
|
|
37
38
|
children: displayed.label
|
|
38
|
-
}), /* @__PURE__ */ jsx(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
hex: row.color
|
|
55
|
-
})
|
|
56
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
57
|
-
size: TextSize.BODY_SM,
|
|
58
|
-
isEllipsis: true,
|
|
59
|
-
children: row.label
|
|
60
|
-
})]
|
|
61
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
62
|
-
size: TextSize.BODY_SM,
|
|
63
|
-
weight: TextWeight.MEDIUM,
|
|
64
|
-
children: row.formattedValue
|
|
65
|
-
})]
|
|
66
|
-
}, row.key))
|
|
67
|
-
})]
|
|
39
|
+
}), /* @__PURE__ */ jsx(ChartTooltipGrid, { children: displayed.rows.map((row) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(ChartTooltipLabelCell, { children: [/* @__PURE__ */ jsx(FlexItem, {
|
|
40
|
+
shrink: 0,
|
|
41
|
+
children: /* @__PURE__ */ jsx(Circle, {
|
|
42
|
+
size: 8,
|
|
43
|
+
hex: row.color
|
|
44
|
+
})
|
|
45
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
46
|
+
size: TextSize.BODY_SM,
|
|
47
|
+
isEllipsis: true,
|
|
48
|
+
children: row.label
|
|
49
|
+
})] }), /* @__PURE__ */ jsx(ChartTooltipValueCell, { children: /* @__PURE__ */ jsx(Text, {
|
|
50
|
+
size: TextSize.BODY_SM,
|
|
51
|
+
weight: TextWeight.MEDIUM,
|
|
52
|
+
align: "right",
|
|
53
|
+
children: row.formattedValue
|
|
54
|
+
}) })] }, row.key)) })]
|
|
68
55
|
})
|
|
69
56
|
});
|
|
70
57
|
};
|
package/dist/charts/LineChart.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ChartAreaPath, ChartCursorLine, ChartLinePath, ChartPointCircle } from
|
|
|
8
8
|
import ChartFrame from "./ChartFrame.js";
|
|
9
9
|
import { ChartCategoryAxis, ChartValueAxis } from "./ChartAxis.js";
|
|
10
10
|
import { useCallback, useMemo, useRef } from "react";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/charts/LineChart.tsx
|
|
13
13
|
/**
|
|
14
14
|
* Line chart over a categorical x-axis.
|
|
@@ -113,7 +113,7 @@ var LineChart = ({ series, lines, categories, width, height, fillWidth, fillHeig
|
|
|
113
113
|
categoryCount: geometry.categories.length,
|
|
114
114
|
ariaLabel,
|
|
115
115
|
ariaDescription,
|
|
116
|
-
axes: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ChartValueAxis, {
|
|
116
|
+
axes: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ChartValueAxis, {
|
|
117
117
|
ticks: valueTicks,
|
|
118
118
|
scale: geometry.valueScale,
|
|
119
119
|
plotWidth,
|
|
@@ -4,7 +4,7 @@ import galaxy_logomark_default from "../assets/models/galaxy-logomark.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { styled } from "@linaria/react";
|
|
6
6
|
import { Suspense, useEffect, useRef, useState } from "react";
|
|
7
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Center, Environment, OrbitControls } from "@react-three/drei";
|
|
9
9
|
import { Canvas, useFrame, useLoader } from "@react-three/fiber";
|
|
10
10
|
import * as THREE from "three";
|
|
@@ -139,7 +139,7 @@ function LogoMesh({ color, isDark, isAutoRotate = false, isHoverable = true, isH
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
function SimpleLighting() {
|
|
142
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
142
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
143
143
|
/* @__PURE__ */ jsx("ambientLight", { intensity: .5 }),
|
|
144
144
|
/* @__PURE__ */ jsx("directionalLight", {
|
|
145
145
|
position: [
|
|
@@ -160,7 +160,7 @@ function SimpleLighting() {
|
|
|
160
160
|
] });
|
|
161
161
|
}
|
|
162
162
|
function DramaticLighting({ backlight, spotlight, fillLight }) {
|
|
163
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
163
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
164
164
|
/* @__PURE__ */ jsx("ambientLight", { intensity: .15 }),
|
|
165
165
|
/* @__PURE__ */ jsx("directionalLight", {
|
|
166
166
|
position: [
|
|
@@ -227,7 +227,7 @@ function DramaticLighting({ backlight, spotlight, fillLight }) {
|
|
|
227
227
|
] });
|
|
228
228
|
}
|
|
229
229
|
function Scene({ color, isDark, isAutoRotate, isInteractive, isHoverable, isHovered, speed, isDramaticMode, backlight, spotlight, fillLight, material, environmentPreset }) {
|
|
230
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
230
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
231
231
|
isDramaticMode && backlight && spotlight && fillLight ? /* @__PURE__ */ jsx(DramaticLighting, {
|
|
232
232
|
backlight,
|
|
233
233
|
spotlight,
|
|
@@ -12,7 +12,7 @@ import { InputLabel, InputSize } from "./Input.js";
|
|
|
12
12
|
import { styled } from "@linaria/react";
|
|
13
13
|
import { match } from "ts-pattern";
|
|
14
14
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
15
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { CaretDownIcon } from "@phosphor-icons/react";
|
|
17
17
|
import { Hue, Saturation } from "@uiw/react-color";
|
|
18
18
|
//#region src/inputs/ColorInput.tsx
|
|
@@ -339,7 +339,7 @@ var ColorInput = ({ label, size = InputSize.MEDIUM, value, placeholder = "Select
|
|
|
339
339
|
/* @__PURE__ */ jsxs(FlexWrapper, {
|
|
340
340
|
alignItems: AlignItems.CENTER,
|
|
341
341
|
gap: 8,
|
|
342
|
-
children: [value && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ColorInputPreviewSwatch, { $color: value }), /* @__PURE__ */ jsx(Spacing, { left: 4 })] }), /* @__PURE__ */ jsx(Text, {
|
|
342
|
+
children: [value && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ColorInputPreviewSwatch, { $color: value }), /* @__PURE__ */ jsx(Spacing, { left: 4 })] }), /* @__PURE__ */ jsx(Text, {
|
|
343
343
|
variant: textVariant,
|
|
344
344
|
size: COLOR_INPUT_SIZE_TO_TEXT_SIZE[size],
|
|
345
345
|
isEllipsis: true,
|
|
@@ -16,7 +16,7 @@ import { SELECT_INPUT_SIZE_TO_ICON_SIZE, SELECT_INPUT_SIZE_TO_TEXT_SIZE_MAP, SEL
|
|
|
16
16
|
import { styled } from "@linaria/react";
|
|
17
17
|
import { match } from "ts-pattern";
|
|
18
18
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
19
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
import { ArrowCounterClockwiseIcon, CaretDownIcon } from "@phosphor-icons/react";
|
|
21
21
|
//#region src/inputs/MultiSelectInput.tsx
|
|
22
22
|
var _exp = () => ({ $size }) => {
|
|
@@ -324,7 +324,7 @@ var MultiSelectInput = ({ label, icon, variant = SelectInputVariant.PRIMARY, siz
|
|
|
324
324
|
$fillWidth: fillWidth,
|
|
325
325
|
$width: resolvedDropdownWidth,
|
|
326
326
|
children: [
|
|
327
|
-
filteredPinnedOptions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [filteredPinnedOptions.map((pinnedOption, index) => /* @__PURE__ */ jsx(PinnedOptionButton, {
|
|
327
|
+
filteredPinnedOptions.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [filteredPinnedOptions.map((pinnedOption, index) => /* @__PURE__ */ jsx(PinnedOptionButton, {
|
|
328
328
|
ref: (el) => {
|
|
329
329
|
optionsRefs.current[index] = el;
|
|
330
330
|
},
|
|
@@ -409,7 +409,7 @@ var MultiSelectInput = ({ label, icon, variant = SelectInputVariant.PRIMARY, siz
|
|
|
409
409
|
})
|
|
410
410
|
})
|
|
411
411
|
}),
|
|
412
|
-
onReset && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FlexItem, {
|
|
412
|
+
onReset && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FlexItem, {
|
|
413
413
|
shrink: 0,
|
|
414
414
|
children: /* @__PURE__ */ jsx(HorizontalDivider, {})
|
|
415
415
|
}), /* @__PURE__ */ jsx(PinnedOptionButton, {
|
|
@@ -15,7 +15,7 @@ import { useControlledOpenState, useDebouncedValue } from "./hooks.js";
|
|
|
15
15
|
import { styled } from "@linaria/react";
|
|
16
16
|
import { match } from "ts-pattern";
|
|
17
17
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
18
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { ArrowCounterClockwiseIcon, CaretDownIcon, CheckIcon } from "@phosphor-icons/react";
|
|
20
20
|
//#region src/inputs/SelectInput.tsx
|
|
21
21
|
var SelectInputVariant = /* @__PURE__ */ function(SelectInputVariant) {
|
|
@@ -301,7 +301,7 @@ var SelectInput = ({ label, variant = "PRIMARY", size = InputSize.MEDIUM, option
|
|
|
301
301
|
$fillWidth: fillWidth,
|
|
302
302
|
$width: resolvedDropdownWidth,
|
|
303
303
|
children: [
|
|
304
|
-
filteredPinnedOptions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [filteredPinnedOptions.map((pinnedOption, index) => /* @__PURE__ */ jsxs(PinnedOptionButton, {
|
|
304
|
+
filteredPinnedOptions.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [filteredPinnedOptions.map((pinnedOption, index) => /* @__PURE__ */ jsxs(PinnedOptionButton, {
|
|
305
305
|
ref: (el) => {
|
|
306
306
|
optionsRefs.current[index] = el;
|
|
307
307
|
},
|
|
@@ -369,7 +369,7 @@ var SelectInput = ({ label, variant = "PRIMARY", size = InputSize.MEDIUM, option
|
|
|
369
369
|
})
|
|
370
370
|
})
|
|
371
371
|
}),
|
|
372
|
-
onReset && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(HorizontalDivider, {}), /* @__PURE__ */ jsx(PinnedOptionButton, {
|
|
372
|
+
onReset && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(HorizontalDivider, {}), /* @__PURE__ */ jsx(PinnedOptionButton, {
|
|
373
373
|
onClick: handleReset,
|
|
374
374
|
$isSelected: false,
|
|
375
375
|
$isFocused: false,
|
package/dist/styles.css
CHANGED
|
@@ -36,11 +36,14 @@
|
|
|
36
36
|
.c1lr03cc{stroke:var(--c1lr03cc-0);pointer-events:none;}
|
|
37
37
|
.cizy1s8{overflow:visible;pointer-events:none;}
|
|
38
38
|
.c1ukq11d{position:absolute;z-index:10;pointer-events:none;left:var(--c1ukq11d-0);top:var(--c1ukq11d-1);min-width:168px;max-width:320px;padding:10px 12px;border:0.5px solid var(--c1ukq11d-2);border-radius:6px;background-color:var(--c1ukq11d-3);opacity:var(--c1ukq11d-4);-webkit-transition:opacity 100ms ease-in-out,left 100ms ease-out,top 100ms ease-out;transition:opacity 100ms ease-in-out,left 100ms ease-out,top 100ms ease-out;}@media (prefers-reduced-motion: reduce){.c1ukq11d{-webkit-transition:none;transition:none;}}
|
|
39
|
-
.cwcko2m{
|
|
40
|
-
.cqwhvyz{
|
|
41
|
-
.c1iaray{
|
|
42
|
-
.cz6jod1{
|
|
43
|
-
.c1de5mqk{
|
|
39
|
+
.cwcko2m{display:-ms-grid;display:grid;-ms-grid-columns:minmax(0, 1fr) auto;grid-template-columns:minmax(0, 1fr) auto;-webkit-column-gap:16px;column-gap:16px;row-gap:6px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;}
|
|
40
|
+
.cqwhvyz{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px;min-width:0;}
|
|
41
|
+
.c1iaray{text-align:right;white-space:nowrap;}
|
|
42
|
+
.cz6jod1{position:absolute;left:var(--cz6jod1-0);top:var(--cz6jod1-1);width:var(--cz6jod1-2);height:var(--cz6jod1-2);-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);pointer-events:none;text-align:center;}
|
|
43
|
+
.c1de5mqk{position:absolute;top:38%;left:50%;-webkit-transform:translate(-50%, -50%);-moz-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%);max-width:60%;padding:6px 8px;border:0.5px solid var(--c1de5mqk-0);border-radius:6px;background-color:var(--c1de5mqk-1);pointer-events:none;text-align:center;}
|
|
44
|
+
.cjirv6a{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:var(--cjirv6a-0);-ms-flex-direction:var(--cjirv6a-0);flex-direction:var(--cjirv6a-0);-webkit-box-flex-wrap:var(--cjirv6a-1);-webkit-flex-wrap:var(--cjirv6a-1);-ms-flex-wrap:var(--cjirv6a-1);flex-wrap:var(--cjirv6a-1);-webkit-align-items:var(--cjirv6a-2);-webkit-box-align:var(--cjirv6a-2);-ms-flex-align:var(--cjirv6a-2);align-items:var(--cjirv6a-2);gap:var(--cjirv6a-3);min-width:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;padding-top:var(--cjirv6a-4);padding-left:var(--cjirv6a-5);}.cjirv6a[data-active="true"]>*{transition-delay:0ms;}
|
|
45
|
+
.c1armna5{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px;-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:default;border-radius:2px;opacity:1;-webkit-transition:opacity 100ms ease-in-out 200ms;transition:opacity 100ms ease-in-out 200ms;}.c1armna5[data-state="muted"]{opacity:0.1;}@media (prefers-reduced-motion: reduce){.c1armna5{-webkit-transition:none;transition:none;}}.c1armna5:focus-visible{outline:1.5px solid currentColor;outline-offset:2px;}
|
|
46
|
+
.cgd77rv{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:6px;opacity:1;-webkit-transition:opacity 100ms ease-in-out 200ms;transition:opacity 100ms ease-in-out 200ms;}.cgd77rv[data-state="muted"]{opacity:0.1;}@media (prefers-reduced-motion: reduce){.cgd77rv{-webkit-transition:none;transition:none;}}
|
|
44
47
|
.cmbdg2q{width:var(--cmbdg2q-0);height:var(--cmbdg2q-0);border-radius:50%;background-color:var(--cmbdg2q-1);}
|
|
45
48
|
.s1yc7aow{position:relative;height:var(--s1yc7aow-0);width:100%;background-color:var(--s1yc7aow-1);border:0.5px solid var(--s1yc7aow-2);border-radius:4px;overflow:hidden;}
|
|
46
49
|
.p1sc05jm{position:absolute;top:0;left:0;height:100%;width:var(--p1sc05jm-0);background-color:var(--p1sc05jm-1);-webkit-animation:var(--p1sc05jm-2);animation:var(--p1sc05jm-2);-webkit-transition:width 0.075s ease-in-out;transition:width 0.075s ease-in-out;}@-webkit-keyframes pulse-p1sc05jm{0%,100%{opacity:0.9;}50%{opacity:0.6;}}@keyframes pulse-p1sc05jm{0%,100%{opacity:0.9;}50%{opacity:0.6;}}
|
|
@@ -6,7 +6,7 @@ import { CellStatusDot } from "./SpreadsheetPrimitives.js";
|
|
|
6
6
|
import SpreadsheetCellEditor from "./SpreadsheetCellEditor.js";
|
|
7
7
|
import { match } from "ts-pattern";
|
|
8
8
|
import React, { useCallback } from "react";
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/table/SpreadsheetCell.tsx
|
|
11
11
|
function formatDisplayValue(value, cellType) {
|
|
12
12
|
if (value === null || value === void 0 || value === "") return "—";
|
|
@@ -40,7 +40,7 @@ function SpreadsheetCellInner({ column, row, rowIndex, columnIndex, isEditing, o
|
|
|
40
40
|
onCommit,
|
|
41
41
|
onCancel
|
|
42
42
|
});
|
|
43
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [showStatusDot && /* @__PURE__ */ jsx(CellStatusDot, { $status: enrichmentStatus }), /* @__PURE__ */ jsx(Text, {
|
|
43
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [showStatusDot && /* @__PURE__ */ jsx(CellStatusDot, { $status: enrichmentStatus }), /* @__PURE__ */ jsx(Text, {
|
|
44
44
|
variant: TextVariant.PRIMARY,
|
|
45
45
|
size: TextSize.BODY_SM,
|
|
46
46
|
isEllipsis: true,
|
|
@@ -2,7 +2,7 @@ import Toast, { ToastVariant } from "./Toast.js";
|
|
|
2
2
|
import ToastContainer from "./ToastContainer.js";
|
|
3
3
|
import ToastWrapper from "./ToastWrapper.js";
|
|
4
4
|
import { createContext, useCallback, useEffect, useRef, useState } from "react";
|
|
5
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { AnimatePresence } from "framer-motion";
|
|
7
7
|
import { createPortal } from "react-dom";
|
|
8
8
|
//#region src/toast/ToastProvider.tsx
|
|
@@ -89,7 +89,7 @@ var ToastProvider = ({ children }) => {
|
|
|
89
89
|
if (group) group.push(toast);
|
|
90
90
|
else positionGroups.set(key, [toast]);
|
|
91
91
|
});
|
|
92
|
-
const toastContent = /* @__PURE__ */ jsx(Fragment, { children: [...positionGroups.entries()].map(([key, group]) => /* @__PURE__ */ jsx(ToastContainer, {
|
|
92
|
+
const toastContent = /* @__PURE__ */ jsx(Fragment$1, { children: [...positionGroups.entries()].map(([key, group]) => /* @__PURE__ */ jsx(ToastContainer, {
|
|
93
93
|
top: group[0].top,
|
|
94
94
|
right: group[0].right,
|
|
95
95
|
bottom: group[0].bottom,
|