@trackunit/react-map 0.2.126 → 0.2.128-alpha-7317206cecd.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.
package/index.cjs.js
CHANGED
|
@@ -1059,17 +1059,18 @@ const FallbackAnnotationContent = ({ store }) => {
|
|
|
1059
1059
|
return (jsxRuntime.jsx("div", { className: "pointer-events-none col-start-1 row-start-1 self-end justify-self-start", children: jsxRuntime.jsx(AnnotationStack, { annotations: displayAnnotations, isExiting: isExiting }) }));
|
|
1060
1060
|
};
|
|
1061
1061
|
const DEBOUNCE_DELAY = 200;
|
|
1062
|
-
const cvaLoadingOverlay = cssClassVarianceUtilities.
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1062
|
+
const cvaLoadingOverlay = cssClassVarianceUtilities.cva({
|
|
1063
|
+
base: [
|
|
1064
|
+
"pointer-events-none",
|
|
1065
|
+
"col-start-1",
|
|
1066
|
+
"row-start-1",
|
|
1067
|
+
"flex",
|
|
1068
|
+
"items-start",
|
|
1069
|
+
"justify-center",
|
|
1070
|
+
"transition-[opacity,display]",
|
|
1071
|
+
"duration-150",
|
|
1072
|
+
"ease-in-out",
|
|
1073
|
+
],
|
|
1073
1074
|
variants: {
|
|
1074
1075
|
visible: {
|
|
1075
1076
|
true: ["opacity-100"],
|
|
@@ -1900,7 +1901,7 @@ const Custom = ({ config, overlaySide = undefined, resolved, placement }) => {
|
|
|
1900
1901
|
};
|
|
1901
1902
|
|
|
1902
1903
|
/** Shared padding for interactive menu items (button, toggle, stepper, select, radioGroup). */
|
|
1903
|
-
const cvaControlMenuItemBase = cssClassVarianceUtilities.
|
|
1904
|
+
const cvaControlMenuItemBase = cssClassVarianceUtilities.cva({ base: ["px-3", "py-2"] });
|
|
1904
1905
|
// ============================================================================
|
|
1905
1906
|
// Cross-Cutting Middleware
|
|
1906
1907
|
// ============================================================================
|
|
@@ -2697,21 +2698,22 @@ const ControlsInner = ({ api, controls, className }) => {
|
|
|
2697
2698
|
// shallow equality is sufficient; no custom comparator needed.
|
|
2698
2699
|
const Controls = react.memo(ControlsInner);
|
|
2699
2700
|
|
|
2700
|
-
const cvaMapPreview = cssClassVarianceUtilities.
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
],
|
|
2701
|
+
const cvaMapPreview = cssClassVarianceUtilities.cva({
|
|
2702
|
+
base: [
|
|
2703
|
+
"relative",
|
|
2704
|
+
"h-[72px]",
|
|
2705
|
+
"w-[72px]",
|
|
2706
|
+
"overflow-clip",
|
|
2707
|
+
"[--radius:theme(borderRadius.xl)]",
|
|
2708
|
+
"[--border:2px]",
|
|
2709
|
+
"rounded-[var(--radius)]",
|
|
2710
|
+
"before:pointer-events-none",
|
|
2711
|
+
"before:absolute",
|
|
2712
|
+
"before:inset-0",
|
|
2713
|
+
"before:z-10",
|
|
2714
|
+
"before:rounded-[var(--radius)]",
|
|
2715
|
+
"before:border-[length:var(--border)]",
|
|
2716
|
+
],
|
|
2715
2717
|
variants: {
|
|
2716
2718
|
selected: {
|
|
2717
2719
|
true: ["before:border-primary-500", "before:ring-2", "before:ring-inset", "before:ring-white"],
|
|
@@ -3980,19 +3982,21 @@ const resolveMarkerDomSize = (size, direction, form) => {
|
|
|
3980
3982
|
* properties that need to animate, intentionally excluding `width` to prevent
|
|
3981
3983
|
* non-composited layout thrashing. See `MarkerAnimatedSurface.tsx` for details.
|
|
3982
3984
|
*/
|
|
3983
|
-
const cvaMapMarker = cssClassVarianceUtilities.
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3985
|
+
const cvaMapMarker = cssClassVarianceUtilities.cva({
|
|
3986
|
+
base: [
|
|
3987
|
+
"inline-flex",
|
|
3988
|
+
"items-center",
|
|
3989
|
+
"relative",
|
|
3990
|
+
"overflow-hidden",
|
|
3991
|
+
"select-none",
|
|
3992
|
+
"cursor-pointer",
|
|
3993
|
+
"rounded-full",
|
|
3994
|
+
"outline-none",
|
|
3995
|
+
"focus-visible:ring-2",
|
|
3996
|
+
"focus-visible:ring-info-500",
|
|
3997
|
+
"focus-visible:ring-offset-2",
|
|
3998
|
+
],
|
|
3999
|
+
});
|
|
3996
4000
|
/**
|
|
3997
4001
|
* Label span inside pill markers.
|
|
3998
4002
|
*
|
|
@@ -4005,19 +4009,14 @@ const cvaMapMarker = cssClassVarianceUtilities.cvaMerge([
|
|
|
4005
4009
|
* alone biases the text upward (extra space below). `overflow-x: clip` gives the
|
|
4006
4010
|
* horizontal ellipsis without a vertical clip on the span itself.
|
|
4007
4011
|
*/
|
|
4008
|
-
const cvaPillLabel = cssClassVarianceUtilities.
|
|
4009
|
-
"min-w-0",
|
|
4010
|
-
|
|
4011
|
-
"overflow-x-clip",
|
|
4012
|
-
"whitespace-nowrap",
|
|
4013
|
-
"text-ellipsis",
|
|
4014
|
-
"font-medium",
|
|
4015
|
-
"leading-none",
|
|
4016
|
-
]);
|
|
4012
|
+
const cvaPillLabel = cssClassVarianceUtilities.cva({
|
|
4013
|
+
base: ["min-w-0", "flex-1", "overflow-x-clip", "whitespace-nowrap", "text-ellipsis", "font-medium", "leading-none"],
|
|
4014
|
+
});
|
|
4017
4015
|
/**
|
|
4018
4016
|
* Inner indicator disc: marker fill via `--marker-color`, border via CSS `color-mix` on that token (plan §5).
|
|
4019
4017
|
*/
|
|
4020
|
-
const cvaMarkerIndicator = cssClassVarianceUtilities.
|
|
4018
|
+
const cvaMarkerIndicator = cssClassVarianceUtilities.cva({
|
|
4019
|
+
base: ["rounded-full", "bg-[var(--marker-color)]", "flex", "items-center", "justify-center"],
|
|
4021
4020
|
variants: {
|
|
4022
4021
|
size: {
|
|
4023
4022
|
xs: ["h-2", "w-2"],
|
|
@@ -6499,20 +6498,21 @@ const extractSinglePartInfo = (geometry) => {
|
|
|
6499
6498
|
}
|
|
6500
6499
|
};
|
|
6501
6500
|
|
|
6502
|
-
const cvaShapeLabel = cssClassVarianceUtilities.
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6501
|
+
const cvaShapeLabel = cssClassVarianceUtilities.cva({
|
|
6502
|
+
base: [
|
|
6503
|
+
"select-none",
|
|
6504
|
+
"inline-flex",
|
|
6505
|
+
"items-center",
|
|
6506
|
+
"gap-1",
|
|
6507
|
+
"whitespace-nowrap",
|
|
6508
|
+
"px-2",
|
|
6509
|
+
"py-0.5",
|
|
6510
|
+
"text-xs",
|
|
6511
|
+
"font-medium",
|
|
6512
|
+
"leading-tight",
|
|
6513
|
+
"transition-opacity",
|
|
6514
|
+
"duration-150",
|
|
6515
|
+
],
|
|
6516
6516
|
variants: {
|
|
6517
6517
|
theme: {
|
|
6518
6518
|
light: ["shadow-sm"],
|
|
@@ -6569,7 +6569,8 @@ const EDGE_LABEL_BORDER_RADIUS = {
|
|
|
6569
6569
|
right: "3px 0 3px 3px",
|
|
6570
6570
|
},
|
|
6571
6571
|
};
|
|
6572
|
-
const cvaFitMode = cssClassVarianceUtilities.
|
|
6572
|
+
const cvaFitMode = cssClassVarianceUtilities.cva({
|
|
6573
|
+
base: [],
|
|
6573
6574
|
variants: {
|
|
6574
6575
|
fitMode: {
|
|
6575
6576
|
fits: ["pointer-events-auto"],
|
package/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useNamespaceTranslation, registerTranslations } from '@trackunit/i18n-l
|
|
|
3
3
|
import { INITIAL_CAMERA_STATE, INITIAL_MAP_STATUS, KEYBOARD_PAN_AMOUNT, KEYBOARD_ZOOM_AMOUNT, mapAppearanceSchema, DEFAULT_MAP_APPEARANCE, WORLD_BBOX, INITIAL_INTERACTION_STATE, mapThemeSchema, mergeAntimeridianFeatures, extractSourceData, computeMarkerDomPortalZIndex, densifyGeodesicFeatures, angularDistance, intermediatePoint, GEODESIC_MAX_SEGMENT_KM, geometryTypeToShapeType, resolveStrokeColors } from '@trackunit/react-map-adapter-shared';
|
|
4
4
|
export { ANCHOR_SELECTOR, DEFAULT_MAP_APPEARANCE, HIT_SURFACE_SELECTOR, INITIAL_CAMERA_STATE, INITIAL_INTERACTION_STATE, INITIAL_MAP_STATE, INITIAL_MAP_STATUS, computeMarkerDomPortalZIndex, defineAdapter, geometryTypeToShapeType, mapAppearanceSchema, mapThemeSchema, mapTypeSchema } from '@trackunit/react-map-adapter-shared';
|
|
5
5
|
import { useSyncExternalStore, useMemo, useState, useRef, useCallback, useLayoutEffect, useEffect, useReducer, createContext, useContext, memo, Suspense, useId, Fragment as Fragment$1, forwardRef } from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import { cva } from '@trackunit/css-class-variance-utilities';
|
|
7
7
|
import { Tooltip, useMergeRefs, Icon, Spinner, Text, useMeasure, useContainerBreakpoints, useDebounce, useWatch, useKeyboardShortcut, IconButton, ToggleGroup as ToggleGroup$1, useIsFullscreen, Popover, PopoverTrigger, PopoverContent, MoreMenu, useHover as useHover$1, cvaInteractableItem, useLocalStorageReducer } from '@trackunit/react-components';
|
|
8
8
|
import { twMerge } from 'tailwind-merge';
|
|
9
9
|
import { useFloating, autoUpdate, offset, flip, useHover, safePolygon, useInteractions, shift, hide, useDismiss, useRole } from '@floating-ui/react';
|
|
@@ -1058,17 +1058,18 @@ const FallbackAnnotationContent = ({ store }) => {
|
|
|
1058
1058
|
return (jsx("div", { className: "pointer-events-none col-start-1 row-start-1 self-end justify-self-start", children: jsx(AnnotationStack, { annotations: displayAnnotations, isExiting: isExiting }) }));
|
|
1059
1059
|
};
|
|
1060
1060
|
const DEBOUNCE_DELAY = 200;
|
|
1061
|
-
const cvaLoadingOverlay =
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1061
|
+
const cvaLoadingOverlay = cva({
|
|
1062
|
+
base: [
|
|
1063
|
+
"pointer-events-none",
|
|
1064
|
+
"col-start-1",
|
|
1065
|
+
"row-start-1",
|
|
1066
|
+
"flex",
|
|
1067
|
+
"items-start",
|
|
1068
|
+
"justify-center",
|
|
1069
|
+
"transition-[opacity,display]",
|
|
1070
|
+
"duration-150",
|
|
1071
|
+
"ease-in-out",
|
|
1072
|
+
],
|
|
1072
1073
|
variants: {
|
|
1073
1074
|
visible: {
|
|
1074
1075
|
true: ["opacity-100"],
|
|
@@ -1899,7 +1900,7 @@ const Custom = ({ config, overlaySide = undefined, resolved, placement }) => {
|
|
|
1899
1900
|
};
|
|
1900
1901
|
|
|
1901
1902
|
/** Shared padding for interactive menu items (button, toggle, stepper, select, radioGroup). */
|
|
1902
|
-
const cvaControlMenuItemBase =
|
|
1903
|
+
const cvaControlMenuItemBase = cva({ base: ["px-3", "py-2"] });
|
|
1903
1904
|
// ============================================================================
|
|
1904
1905
|
// Cross-Cutting Middleware
|
|
1905
1906
|
// ============================================================================
|
|
@@ -2696,21 +2697,22 @@ const ControlsInner = ({ api, controls, className }) => {
|
|
|
2696
2697
|
// shallow equality is sufficient; no custom comparator needed.
|
|
2697
2698
|
const Controls = memo(ControlsInner);
|
|
2698
2699
|
|
|
2699
|
-
const cvaMapPreview =
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
],
|
|
2700
|
+
const cvaMapPreview = cva({
|
|
2701
|
+
base: [
|
|
2702
|
+
"relative",
|
|
2703
|
+
"h-[72px]",
|
|
2704
|
+
"w-[72px]",
|
|
2705
|
+
"overflow-clip",
|
|
2706
|
+
"[--radius:theme(borderRadius.xl)]",
|
|
2707
|
+
"[--border:2px]",
|
|
2708
|
+
"rounded-[var(--radius)]",
|
|
2709
|
+
"before:pointer-events-none",
|
|
2710
|
+
"before:absolute",
|
|
2711
|
+
"before:inset-0",
|
|
2712
|
+
"before:z-10",
|
|
2713
|
+
"before:rounded-[var(--radius)]",
|
|
2714
|
+
"before:border-[length:var(--border)]",
|
|
2715
|
+
],
|
|
2714
2716
|
variants: {
|
|
2715
2717
|
selected: {
|
|
2716
2718
|
true: ["before:border-primary-500", "before:ring-2", "before:ring-inset", "before:ring-white"],
|
|
@@ -3979,19 +3981,21 @@ const resolveMarkerDomSize = (size, direction, form) => {
|
|
|
3979
3981
|
* properties that need to animate, intentionally excluding `width` to prevent
|
|
3980
3982
|
* non-composited layout thrashing. See `MarkerAnimatedSurface.tsx` for details.
|
|
3981
3983
|
*/
|
|
3982
|
-
const cvaMapMarker =
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3984
|
+
const cvaMapMarker = cva({
|
|
3985
|
+
base: [
|
|
3986
|
+
"inline-flex",
|
|
3987
|
+
"items-center",
|
|
3988
|
+
"relative",
|
|
3989
|
+
"overflow-hidden",
|
|
3990
|
+
"select-none",
|
|
3991
|
+
"cursor-pointer",
|
|
3992
|
+
"rounded-full",
|
|
3993
|
+
"outline-none",
|
|
3994
|
+
"focus-visible:ring-2",
|
|
3995
|
+
"focus-visible:ring-info-500",
|
|
3996
|
+
"focus-visible:ring-offset-2",
|
|
3997
|
+
],
|
|
3998
|
+
});
|
|
3995
3999
|
/**
|
|
3996
4000
|
* Label span inside pill markers.
|
|
3997
4001
|
*
|
|
@@ -4004,19 +4008,14 @@ const cvaMapMarker = cvaMerge([
|
|
|
4004
4008
|
* alone biases the text upward (extra space below). `overflow-x: clip` gives the
|
|
4005
4009
|
* horizontal ellipsis without a vertical clip on the span itself.
|
|
4006
4010
|
*/
|
|
4007
|
-
const cvaPillLabel =
|
|
4008
|
-
"min-w-0",
|
|
4009
|
-
|
|
4010
|
-
"overflow-x-clip",
|
|
4011
|
-
"whitespace-nowrap",
|
|
4012
|
-
"text-ellipsis",
|
|
4013
|
-
"font-medium",
|
|
4014
|
-
"leading-none",
|
|
4015
|
-
]);
|
|
4011
|
+
const cvaPillLabel = cva({
|
|
4012
|
+
base: ["min-w-0", "flex-1", "overflow-x-clip", "whitespace-nowrap", "text-ellipsis", "font-medium", "leading-none"],
|
|
4013
|
+
});
|
|
4016
4014
|
/**
|
|
4017
4015
|
* Inner indicator disc: marker fill via `--marker-color`, border via CSS `color-mix` on that token (plan §5).
|
|
4018
4016
|
*/
|
|
4019
|
-
const cvaMarkerIndicator =
|
|
4017
|
+
const cvaMarkerIndicator = cva({
|
|
4018
|
+
base: ["rounded-full", "bg-[var(--marker-color)]", "flex", "items-center", "justify-center"],
|
|
4020
4019
|
variants: {
|
|
4021
4020
|
size: {
|
|
4022
4021
|
xs: ["h-2", "w-2"],
|
|
@@ -6498,20 +6497,21 @@ const extractSinglePartInfo = (geometry) => {
|
|
|
6498
6497
|
}
|
|
6499
6498
|
};
|
|
6500
6499
|
|
|
6501
|
-
const cvaShapeLabel =
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6500
|
+
const cvaShapeLabel = cva({
|
|
6501
|
+
base: [
|
|
6502
|
+
"select-none",
|
|
6503
|
+
"inline-flex",
|
|
6504
|
+
"items-center",
|
|
6505
|
+
"gap-1",
|
|
6506
|
+
"whitespace-nowrap",
|
|
6507
|
+
"px-2",
|
|
6508
|
+
"py-0.5",
|
|
6509
|
+
"text-xs",
|
|
6510
|
+
"font-medium",
|
|
6511
|
+
"leading-tight",
|
|
6512
|
+
"transition-opacity",
|
|
6513
|
+
"duration-150",
|
|
6514
|
+
],
|
|
6515
6515
|
variants: {
|
|
6516
6516
|
theme: {
|
|
6517
6517
|
light: ["shadow-sm"],
|
|
@@ -6568,7 +6568,8 @@ const EDGE_LABEL_BORDER_RADIUS = {
|
|
|
6568
6568
|
right: "3px 0 3px 3px",
|
|
6569
6569
|
},
|
|
6570
6570
|
};
|
|
6571
|
-
const cvaFitMode =
|
|
6571
|
+
const cvaFitMode = cva({
|
|
6572
|
+
base: [],
|
|
6572
6573
|
variants: {
|
|
6573
6574
|
fitMode: {
|
|
6574
6575
|
fits: ["pointer-events-auto"],
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-map",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.128-alpha-7317206cecd.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/react-components": "2.13.0",
|
|
11
|
-
"@trackunit/css-class-variance-utilities": "1.
|
|
12
|
-
"@trackunit/react-form-components": "2.6.
|
|
13
|
-
"@trackunit/react-core-hooks": "1.21.
|
|
14
|
-
"@trackunit/geo-json-utils": "1.15.
|
|
15
|
-
"@trackunit/i18n-library-translation": "2.4.
|
|
10
|
+
"@trackunit/react-components": "2.13.2-alpha-7317206cecd.0",
|
|
11
|
+
"@trackunit/css-class-variance-utilities": "2.0.1-alpha-7317206cecd.0",
|
|
12
|
+
"@trackunit/react-form-components": "2.6.50-alpha-7317206cecd.0",
|
|
13
|
+
"@trackunit/react-core-hooks": "1.21.43-alpha-7317206cecd.0",
|
|
14
|
+
"@trackunit/geo-json-utils": "1.15.33-alpha-7317206cecd.0",
|
|
15
|
+
"@trackunit/i18n-library-translation": "2.4.43-alpha-7317206cecd.0",
|
|
16
16
|
"react-minimal-pie-chart": "^8.4.0",
|
|
17
|
-
"@trackunit/react-map-adapter-shared": "0.0.
|
|
18
|
-
"@trackunit/react-map-color-utils": "0.0.
|
|
19
|
-
"@trackunit/ui-design-tokens": "1.15.
|
|
17
|
+
"@trackunit/react-map-adapter-shared": "0.0.114-alpha-7317206cecd.0",
|
|
18
|
+
"@trackunit/react-map-color-utils": "0.0.94-alpha-7317206cecd.0",
|
|
19
|
+
"@trackunit/ui-design-tokens": "1.15.21-alpha-7317206cecd.0",
|
|
20
20
|
"@floating-ui/react": "^0.26.25",
|
|
21
21
|
"es-toolkit": "^1.39.10",
|
|
22
22
|
"tailwind-merge": "^2.0.0",
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { AvailableSpace, Compactness, ControlConfig, MenuItemConfig, Placement, RenderContext, ResolvedControlProps, ResolvedControlPropsBase } from "./types";
|
|
2
2
|
export type { AvailableSpace, Compactness, Placement, RenderContext, ResolvedControlProps, ResolvedControlPropsBase };
|
|
3
3
|
/** Shared padding for interactive menu items (button, toggle, stepper, select, radioGroup). */
|
|
4
|
-
export declare const cvaControlMenuItemBase:
|
|
4
|
+
export declare const cvaControlMenuItemBase: import("cva").CVAComponent<Omit<{
|
|
5
|
+
base: string[];
|
|
6
|
+
}, "defaultVariants"> & {
|
|
7
|
+
variants: unknown;
|
|
8
|
+
defaultVariants: Omit<{}, never>;
|
|
9
|
+
}, unknown>;
|
|
5
10
|
/** Context available to all middleware and resolvers */
|
|
6
11
|
export type MiddlewareContext = Readonly<{
|
|
7
12
|
renderContext: RenderContext;
|
|
@@ -9,9 +9,28 @@ type ShapeLabelPillProps = Readonly<{
|
|
|
9
9
|
"data-testid"?: string;
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const cvaShapeLabel: (
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
export declare const cvaShapeLabel: import("cva").CVAComponent<Omit<{
|
|
13
|
+
base: string[];
|
|
14
|
+
variants: {
|
|
15
|
+
theme: {
|
|
16
|
+
light: string[];
|
|
17
|
+
dark: string[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, "defaultVariants"> & {
|
|
21
|
+
variants: {
|
|
22
|
+
theme: {
|
|
23
|
+
light: string[];
|
|
24
|
+
dark: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
defaultVariants: Omit<{}, never>;
|
|
28
|
+
}, {
|
|
29
|
+
theme: {
|
|
30
|
+
light: string[];
|
|
31
|
+
dark: string[];
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
15
34
|
/**
|
|
16
35
|
* Shared styled container for shape labels (edge labels and annotation labels).
|
|
17
36
|
*
|
|
@@ -12,7 +12,12 @@
|
|
|
12
12
|
* properties that need to animate, intentionally excluding `width` to prevent
|
|
13
13
|
* non-composited layout thrashing. See `MarkerAnimatedSurface.tsx` for details.
|
|
14
14
|
*/
|
|
15
|
-
export declare const cvaMapMarker:
|
|
15
|
+
export declare const cvaMapMarker: import("cva").CVAComponent<Omit<{
|
|
16
|
+
base: string[];
|
|
17
|
+
}, "defaultVariants"> & {
|
|
18
|
+
variants: unknown;
|
|
19
|
+
defaultVariants: Omit<{}, never>;
|
|
20
|
+
}, unknown>;
|
|
16
21
|
/**
|
|
17
22
|
* Label span inside pill markers.
|
|
18
23
|
*
|
|
@@ -25,11 +30,62 @@ export declare const cvaMapMarker: (props?: import("class-variance-authority/typ
|
|
|
25
30
|
* alone biases the text upward (extra space below). `overflow-x: clip` gives the
|
|
26
31
|
* horizontal ellipsis without a vertical clip on the span itself.
|
|
27
32
|
*/
|
|
28
|
-
export declare const cvaPillLabel:
|
|
33
|
+
export declare const cvaPillLabel: import("cva").CVAComponent<Omit<{
|
|
34
|
+
base: string[];
|
|
35
|
+
}, "defaultVariants"> & {
|
|
36
|
+
variants: unknown;
|
|
37
|
+
defaultVariants: Omit<{}, never>;
|
|
38
|
+
}, unknown>;
|
|
29
39
|
/**
|
|
30
40
|
* Inner indicator disc: marker fill via `--marker-color`, border via CSS `color-mix` on that token (plan §5).
|
|
31
41
|
*/
|
|
32
|
-
export declare const cvaMarkerIndicator: (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
42
|
+
export declare const cvaMarkerIndicator: import("cva").CVAComponent<Omit<{
|
|
43
|
+
base: string[];
|
|
44
|
+
variants: {
|
|
45
|
+
size: {
|
|
46
|
+
xs: string[];
|
|
47
|
+
sm: string[];
|
|
48
|
+
md: string[];
|
|
49
|
+
lg: string[];
|
|
50
|
+
xl: string[];
|
|
51
|
+
};
|
|
52
|
+
theme: {
|
|
53
|
+
light: string[];
|
|
54
|
+
dark: string[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
size: "md";
|
|
59
|
+
theme: "light";
|
|
60
|
+
};
|
|
61
|
+
}, "defaultVariants"> & {
|
|
62
|
+
variants: {
|
|
63
|
+
size: {
|
|
64
|
+
xs: string[];
|
|
65
|
+
sm: string[];
|
|
66
|
+
md: string[];
|
|
67
|
+
lg: string[];
|
|
68
|
+
xl: string[];
|
|
69
|
+
};
|
|
70
|
+
theme: {
|
|
71
|
+
light: string[];
|
|
72
|
+
dark: string[];
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
defaultVariants: Omit<{}, "size" | "theme"> & {
|
|
76
|
+
size: "md";
|
|
77
|
+
theme: "light";
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
size: {
|
|
81
|
+
xs: string[];
|
|
82
|
+
sm: string[];
|
|
83
|
+
md: string[];
|
|
84
|
+
lg: string[];
|
|
85
|
+
xl: string[];
|
|
86
|
+
};
|
|
87
|
+
theme: {
|
|
88
|
+
light: string[];
|
|
89
|
+
dark: string[];
|
|
90
|
+
};
|
|
91
|
+
}>;
|
|
@@ -1,8 +1,57 @@
|
|
|
1
1
|
/** Pads numeric string: 3-digit int part + reserved sign column to avoid layout shift when sign flips. */
|
|
2
2
|
export declare const formatPaddedNumber: (n: number, decimals: number) => string;
|
|
3
|
-
export declare const cvaCoordCell: (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export declare const cvaCoordCell: import("cva").CVAComponent<Omit<{
|
|
4
|
+
base: string[];
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
lng: string[];
|
|
8
|
+
lat: string[];
|
|
9
|
+
we: string[];
|
|
10
|
+
sn: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, "defaultVariants"> & {
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
lng: string[];
|
|
17
|
+
lat: string[];
|
|
18
|
+
we: string[];
|
|
19
|
+
sn: string[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
defaultVariants: Omit<{}, never>;
|
|
23
|
+
}, {
|
|
24
|
+
variant: {
|
|
25
|
+
lng: string[];
|
|
26
|
+
lat: string[];
|
|
27
|
+
we: string[];
|
|
28
|
+
sn: string[];
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
export declare const cvaStateDisplay: import("cva").CVAComponent<Omit<{
|
|
32
|
+
base: string[];
|
|
33
|
+
variants: {
|
|
34
|
+
expanded: {
|
|
35
|
+
true: string[];
|
|
36
|
+
false: string[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
expanded: true;
|
|
41
|
+
};
|
|
42
|
+
}, "defaultVariants"> & {
|
|
43
|
+
variants: {
|
|
44
|
+
expanded: {
|
|
45
|
+
true: string[];
|
|
46
|
+
false: string[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
defaultVariants: Omit<{}, "expanded"> & {
|
|
50
|
+
expanded: true;
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
expanded: {
|
|
54
|
+
true: string[];
|
|
55
|
+
false: string[];
|
|
56
|
+
};
|
|
57
|
+
}>;
|