@texturehq/edges 5.2.0 → 5.4.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/dist/{colors-DCZIiIJc.d.ts → colors-DBJMg-uV.d.ts} +130 -2
- package/dist/{colors-ZWoPd9Xl.d.cts → colors-D_tNti6E.d.cts} +130 -2
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -110
- package/dist/index.d.ts +10 -110
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/prose.css +5 -3
- package/dist/server.cjs +2 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/styles/theme-light-override.css +2 -0
- package/dist/styles.css +30 -2
- package/package.json +2 -2
- package/scripts/generate-color-utilities.mjs +6 -0
|
@@ -793,6 +793,127 @@ interface CodeEditorProps {
|
|
|
793
793
|
*/
|
|
794
794
|
declare function CodeEditor({ value, readOnly, onChange, language, theme, height, width, className, lineHeight, minLines, maxLines, showLineNumbers, showGutter, fontSize, wrapEnabled, }: CodeEditorProps): react_jsx_runtime.JSX.Element;
|
|
795
795
|
|
|
796
|
+
/**
|
|
797
|
+
* Data Controls Types
|
|
798
|
+
*
|
|
799
|
+
* Core type definitions for client-side and server-side data filtering,
|
|
800
|
+
* sorting, faceting, and search operations.
|
|
801
|
+
*/
|
|
802
|
+
type FilterOperator = "eq" | "neq" | "in" | "nin" | "gt" | "gte" | "lt" | "lte" | "contains" | "startsWith" | "endsWith" | "isEmpty" | "isNotEmpty";
|
|
803
|
+
/**
|
|
804
|
+
* Operators that describe a field's own emptiness rather than comparing it to
|
|
805
|
+
* something, so they carry no `value`. Exported because every renderer and
|
|
806
|
+
* validator needs the same answer to "does this operator take a value?" —
|
|
807
|
+
* three hand-maintained copies is how "undefined" ends up in a chip label.
|
|
808
|
+
*/
|
|
809
|
+
declare const UNARY_FILTER_OPERATORS: readonly ["isEmpty", "isNotEmpty"];
|
|
810
|
+
type UnaryFilterOperator = (typeof UNARY_FILTER_OPERATORS)[number];
|
|
811
|
+
declare function isUnaryFilterOperator(operator: FilterOperator): operator is UnaryFilterOperator;
|
|
812
|
+
declare const UNARY_OPERATOR_LABELS: Record<UnaryFilterOperator, string>;
|
|
813
|
+
interface FilterCondition {
|
|
814
|
+
/** Field name (supports nested paths like 'user.profile.name') */
|
|
815
|
+
field: string;
|
|
816
|
+
/** Comparison operator */
|
|
817
|
+
operator: FilterOperator;
|
|
818
|
+
/**
|
|
819
|
+
* Value to compare against. Absent for the unary presence operators
|
|
820
|
+
* (`isEmpty` / `isNotEmpty`), which describe the field itself rather than a
|
|
821
|
+
* comparison — a required `value` there would force callers to invent one.
|
|
822
|
+
*/
|
|
823
|
+
value?: string | number | boolean | (string | number)[];
|
|
824
|
+
}
|
|
825
|
+
interface FilterGroup {
|
|
826
|
+
/** Logical operator combining conditions */
|
|
827
|
+
logic: "AND" | "OR";
|
|
828
|
+
/** Conditions or nested filter groups */
|
|
829
|
+
conditions: (FilterCondition | FilterGroup)[];
|
|
830
|
+
}
|
|
831
|
+
/** Root filter state - can be empty, a single group, or nested groups */
|
|
832
|
+
type FilterState = FilterGroup | null;
|
|
833
|
+
interface SortState {
|
|
834
|
+
/** Field to sort by (supports nested paths) */
|
|
835
|
+
field: string;
|
|
836
|
+
/** Sort direction */
|
|
837
|
+
direction: "asc" | "desc";
|
|
838
|
+
}
|
|
839
|
+
interface SearchConfig {
|
|
840
|
+
/** Search query string */
|
|
841
|
+
query: string;
|
|
842
|
+
/** Fields to search across */
|
|
843
|
+
fields: string[];
|
|
844
|
+
/** Use fuzzy matching (Fuse.js) - default true */
|
|
845
|
+
fuzzy?: boolean;
|
|
846
|
+
/** Fuse.js matching threshold (0.0 = perfect, 1.0 = anything) - default 0.3 */
|
|
847
|
+
threshold?: number;
|
|
848
|
+
}
|
|
849
|
+
type FacetType = "string" | "number" | "boolean" | "date";
|
|
850
|
+
interface FacetConfig {
|
|
851
|
+
/** Field name to facet on */
|
|
852
|
+
field: string;
|
|
853
|
+
/** Display label for the facet */
|
|
854
|
+
label: string;
|
|
855
|
+
/** Data type of the field */
|
|
856
|
+
type?: FacetType;
|
|
857
|
+
/** Optional: Provide predefined values for the facet (useful for enums) */
|
|
858
|
+
values?: Array<{
|
|
859
|
+
value: string | number;
|
|
860
|
+
label: string;
|
|
861
|
+
}>;
|
|
862
|
+
/** Number of options to show before requiring search (default: 10) */
|
|
863
|
+
searchThreshold?: number;
|
|
864
|
+
/** Max options to show initially, with "Show all" button for rest (default: 50) */
|
|
865
|
+
maxVisibleOptions?: number;
|
|
866
|
+
/** Optional description text to show below the label */
|
|
867
|
+
description?: string;
|
|
868
|
+
/** Optional: Custom render function for option labels (e.g., to show Badges) */
|
|
869
|
+
renderLabel?: (value: string, label: string) => React.ReactNode;
|
|
870
|
+
/** Optional: Group name for organizing filters in FilterDialog */
|
|
871
|
+
group?: string;
|
|
872
|
+
}
|
|
873
|
+
interface FacetCounts {
|
|
874
|
+
[field: string]: {
|
|
875
|
+
[value: string]: number;
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Create a single filter condition
|
|
880
|
+
*/
|
|
881
|
+
declare function createFilter(field: string, operator: FilterOperator, value: string | number | boolean | (string | number)[]): FilterCondition;
|
|
882
|
+
/**
|
|
883
|
+
* Create a filter group from multiple conditions with AND logic
|
|
884
|
+
*/
|
|
885
|
+
declare function createFilters(conditions: FilterCondition[], logic?: "AND" | "OR"): FilterGroup;
|
|
886
|
+
/**
|
|
887
|
+
* Create an empty filter state
|
|
888
|
+
*/
|
|
889
|
+
declare function createEmptyFilter(): FilterGroup;
|
|
890
|
+
/**
|
|
891
|
+
* Check if a filter state is empty (no conditions)
|
|
892
|
+
*/
|
|
893
|
+
declare function isFilterEmpty(filter: FilterState): boolean;
|
|
894
|
+
/**
|
|
895
|
+
* Convert structured filter state to simple display chips
|
|
896
|
+
* Used for backward compatibility with existing FilterChips component
|
|
897
|
+
*/
|
|
898
|
+
interface FilterChip {
|
|
899
|
+
id: string;
|
|
900
|
+
label: string;
|
|
901
|
+
value: string;
|
|
902
|
+
}
|
|
903
|
+
declare function filterToChips(filter: FilterState, facetConfigs?: FacetConfig[]): FilterChip[];
|
|
904
|
+
/**
|
|
905
|
+
* Add a condition to a filter state
|
|
906
|
+
*/
|
|
907
|
+
declare function addFilterCondition(filter: FilterState, condition: FilterCondition): FilterGroup;
|
|
908
|
+
/**
|
|
909
|
+
* Remove a condition from a filter state by field
|
|
910
|
+
*/
|
|
911
|
+
declare function removeFilterCondition(filter: FilterState, field: string): FilterGroup;
|
|
912
|
+
/**
|
|
913
|
+
* Get all unique fields being filtered on
|
|
914
|
+
*/
|
|
915
|
+
declare function getFilterFields(filter: FilterState): string[];
|
|
916
|
+
|
|
796
917
|
type SortDirection = "asc" | "desc";
|
|
797
918
|
type CellAlignment = "left" | "center" | "right";
|
|
798
919
|
type TableDensity = "compact" | "default" | "relaxed";
|
|
@@ -2205,6 +2326,11 @@ interface InteractiveMapProps {
|
|
|
2205
2326
|
* Initial camera position
|
|
2206
2327
|
*/
|
|
2207
2328
|
initialViewState?: Partial<ViewState>;
|
|
2329
|
+
/**
|
|
2330
|
+
* Per-organization Mapbox style URL. Defaults to the MapStyleProvider value;
|
|
2331
|
+
* when neither is set the built-in style for `mapType` is used.
|
|
2332
|
+
*/
|
|
2333
|
+
mapStyleUrl?: string | null;
|
|
2208
2334
|
/**
|
|
2209
2335
|
* Controlled view state (for controlled component pattern)
|
|
2210
2336
|
*/
|
|
@@ -2410,6 +2536,8 @@ interface StaticMapProps {
|
|
|
2410
2536
|
* @default "streets"
|
|
2411
2537
|
*/
|
|
2412
2538
|
mapType?: MapType;
|
|
2539
|
+
/** Per-organization Mapbox style URL; defaults to the MapStyleProvider value. */
|
|
2540
|
+
mapStyleUrl?: string | null;
|
|
2413
2541
|
/**
|
|
2414
2542
|
* Layers to render on the map
|
|
2415
2543
|
*
|
|
@@ -2491,7 +2619,7 @@ interface StaticMapProps {
|
|
|
2491
2619
|
*
|
|
2492
2620
|
* Automatically adapts to light/dark mode using the global ColorModeProvider.
|
|
2493
2621
|
*/
|
|
2494
|
-
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, layers, mapboxAccessToken, showMarker, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2622
|
+
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, mapStyleUrl, layers, mapboxAccessToken, showMarker, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2495
2623
|
|
|
2496
2624
|
/**
|
|
2497
2625
|
* Represents a geographic point with coordinates
|
|
@@ -4734,4 +4862,4 @@ declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
|
4734
4862
|
*/
|
|
4735
4863
|
declare const mapValuesToCategoricalColors: (values: (string | number)[]) => Record<string | number, string>;
|
|
4736
4864
|
|
|
4737
|
-
export {
|
|
4865
|
+
export { type YFormatType as $, ABSENT_GRID_FIELDS as A, type BadgeProps as B, CATEGORY_COLOR_TOKENS as C, type DeviceState as D, ENTITY_CONFIG as E, type SegmentedControlProps as F, GRID_ELEMENT_TYPE_BY_ENTITY as G, HEADLINE_METRIC_BOUNDS as H, type InteractiveMapProps as I, type SerializableFieldFormat as J, SideNav as K, Loader as L, type MapPoint as M, type SideNavItem as N, type SideNavProps as O, type PercentThresholdLevel as P, type StaticMapProps as Q, type TooltipData as R, type SegmentOption as S, TextLink as T, type TooltipSeries as U, TopNav as V, type TopNavProps as W, UNARY_FILTER_OPERATORS as X, UNARY_OPERATOR_LABELS as Y, type UnaryFilterOperator as Z, type YFormatSettings as _, type ActionItem as a, type GeoJsonLayerSpec as a$, activeDeviceStates as a0, archetypeFor as a1, clearColorCache as a2, createCategoryColorMap as a3, createXScale as a4, createYScale as a5, defaultMargin as a6, deviceStateLabels as a7, deviceStateMetricFormats as a8, entityHasDetailPage as a9, type FieldValue as aA, type BooleanFormat as aB, type FormattedValue as aC, type FieldFormat as aD, type CurrentFormat as aE, type DateFormat as aF, type DistanceFormat as aG, type EnergyUnit as aH, type EnergyFormat as aI, type CurrencyFormat as aJ, type NumberFormat as aK, type PhoneFormat as aL, type PowerFormat as aM, type FormatterFunction as aN, type ResistanceFormat as aO, type TemperatureFormat as aP, type TemperatureUnitString as aQ, type TemperatureUnit as aR, type TextFormat as aS, type VoltageFormat as aT, type CellComponentProps as aU, type CellAlignment as aV, type LinkBehavior as aW, type ComponentFormatter as aX, type DataTableProps as aY, type LayerSpec as aZ, type CustomPinsSpec as a_, entityHasStatList as aa, entityShowsNow as ab, getContrastingTextColor as ac, getDefaultChartColor as ad, getDefaultColors as ae, getDeviceStateLabel as af, getEntityConfig as ag, getEntityIcon as ah, getEntityLabel as ai, getEntityStatList as aj, getGridStateLabel as ak, getResolvedColor as al, getThemeCategoricalColors as am, getYFormatSettings as an, gridStateLabels as ao, isActiveState as ap, isLightColor as aq, isUnaryFilterOperator as ar, type LoadingState as as, type FilterState as at, type SortState as au, type SearchConfig as av, type FacetConfig as aw, type FacetCounts as ax, type Column as ay, type CellEmphasis as az, type ActionMenuProps as b, type TableWidth as b$, type RasterLayerSpec as b0, type VectorLayerSpec as b1, type ClusteredVectorLayerSpec as b2, type ColorSpec as b3, ActionMenu as b4, AppShell as b5, Avatar as b6, Badge as b7, type BaseFormat as b8, type CellComponent as b9, type LayerVisibilityPatch as bA, MAP_TYPES as bB, type MapType as bC, Meter as bD, type MobileBreakpoint as bE, type MobileConfig as bF, type MobileRenderer as bG, PercentBarCell as bH, type PercentBarCellProps as bI, type PercentageFormat as bJ, type PowerUnit as bK, type RenderType as bL, type ResistanceUnit as bM, SegmentedControl as bN, type SortConfig as bO, type SortDirection as bP, StackNav as bQ, type StackNavGroup as bR, type StackNavItem as bS, type StackNavLinkComponentProps as bT, type StackNavProps as bU, type StackNavRenderRow as bV, type StackNavRowRenderProps as bW, type StackNavTheme as bX, StaticMap as bY, type TableDensity as bZ, type TableLayout as b_, type CellContext as ba, ChartContext as bb, CodeEditor as bc, type ComponentFormatOptions as bd, type CurrentUnit as be, type CustomFormat as bf, DEFAULT_MAP_TYPE as bg, type DateFormatStyle as bh, type DistanceUnit as bi, ENTITY_CATEGORY_CONFIG as bj, type EntityCategory as bk, type EntityCategoryConfig as bl, type FacetType as bm, type FilterChip as bn, type FilterCondition as bo, type FilterGroup as bp, type FilterOperator as bq, GRID_STATE_COLORS as br, type GridStateColor as bs, InteractiveMap as bt, type InteractiveMapHandle as bu, type LayerCheckState as bv, type LayerFeature as bw, type LayerSelection as bx, type LayerStyle as by, type LayerTreeNode as bz, type AppShellProps as c, type TextTransform as c0, type TextTruncatePosition as c1, UNVERIFIED_VOLTAGE_UNIT_ROWS as c2, type UseInfiniteScrollOptions as c3, type UseInfiniteScrollReturn as c4, type VoltageUnit as c5, type ZoomStops as c6, addFilterCondition as c7, baselineFromPoint as c8, createEmptyFilter as c9, createFilter as ca, createFilters as cb, filterToChips as cc, formatComponentValue as cd, getEntityCategory as ce, getFilterFields as cf, isFilterEmpty as cg, mapValuesToCategoricalColors as ch, percentThresholdLevel as ci, removeFilterCondition as cj, useChartContext as ck, useComponentFormatter as cl, useInfiniteScroll as cm, type AvatarProps as d, type BaseDataPoint as e, CATEGORY_NEUTRAL_COLOR as f, type ChartMargin as g, type CodeEditorProps as h, type CodeLanguage as i, type CodeTheme as j, type EntityArchetype as k, type EntityConfig as l, type EntityStateRule as m, type EntityType as n, GRID_STAT_LIST as o, type GridElementSourceType as p, type GridStatField as q, type GridStatFieldFormat as r, type GridState as s, Heading as t, type HeadlineMetric as u, Logo as v, type MeterProps as w, type MetricFormat as x, type MetricSource as y, type PercentThresholds as z };
|
|
@@ -793,6 +793,127 @@ interface CodeEditorProps {
|
|
|
793
793
|
*/
|
|
794
794
|
declare function CodeEditor({ value, readOnly, onChange, language, theme, height, width, className, lineHeight, minLines, maxLines, showLineNumbers, showGutter, fontSize, wrapEnabled, }: CodeEditorProps): react_jsx_runtime.JSX.Element;
|
|
795
795
|
|
|
796
|
+
/**
|
|
797
|
+
* Data Controls Types
|
|
798
|
+
*
|
|
799
|
+
* Core type definitions for client-side and server-side data filtering,
|
|
800
|
+
* sorting, faceting, and search operations.
|
|
801
|
+
*/
|
|
802
|
+
type FilterOperator = "eq" | "neq" | "in" | "nin" | "gt" | "gte" | "lt" | "lte" | "contains" | "startsWith" | "endsWith" | "isEmpty" | "isNotEmpty";
|
|
803
|
+
/**
|
|
804
|
+
* Operators that describe a field's own emptiness rather than comparing it to
|
|
805
|
+
* something, so they carry no `value`. Exported because every renderer and
|
|
806
|
+
* validator needs the same answer to "does this operator take a value?" —
|
|
807
|
+
* three hand-maintained copies is how "undefined" ends up in a chip label.
|
|
808
|
+
*/
|
|
809
|
+
declare const UNARY_FILTER_OPERATORS: readonly ["isEmpty", "isNotEmpty"];
|
|
810
|
+
type UnaryFilterOperator = (typeof UNARY_FILTER_OPERATORS)[number];
|
|
811
|
+
declare function isUnaryFilterOperator(operator: FilterOperator): operator is UnaryFilterOperator;
|
|
812
|
+
declare const UNARY_OPERATOR_LABELS: Record<UnaryFilterOperator, string>;
|
|
813
|
+
interface FilterCondition {
|
|
814
|
+
/** Field name (supports nested paths like 'user.profile.name') */
|
|
815
|
+
field: string;
|
|
816
|
+
/** Comparison operator */
|
|
817
|
+
operator: FilterOperator;
|
|
818
|
+
/**
|
|
819
|
+
* Value to compare against. Absent for the unary presence operators
|
|
820
|
+
* (`isEmpty` / `isNotEmpty`), which describe the field itself rather than a
|
|
821
|
+
* comparison — a required `value` there would force callers to invent one.
|
|
822
|
+
*/
|
|
823
|
+
value?: string | number | boolean | (string | number)[];
|
|
824
|
+
}
|
|
825
|
+
interface FilterGroup {
|
|
826
|
+
/** Logical operator combining conditions */
|
|
827
|
+
logic: "AND" | "OR";
|
|
828
|
+
/** Conditions or nested filter groups */
|
|
829
|
+
conditions: (FilterCondition | FilterGroup)[];
|
|
830
|
+
}
|
|
831
|
+
/** Root filter state - can be empty, a single group, or nested groups */
|
|
832
|
+
type FilterState = FilterGroup | null;
|
|
833
|
+
interface SortState {
|
|
834
|
+
/** Field to sort by (supports nested paths) */
|
|
835
|
+
field: string;
|
|
836
|
+
/** Sort direction */
|
|
837
|
+
direction: "asc" | "desc";
|
|
838
|
+
}
|
|
839
|
+
interface SearchConfig {
|
|
840
|
+
/** Search query string */
|
|
841
|
+
query: string;
|
|
842
|
+
/** Fields to search across */
|
|
843
|
+
fields: string[];
|
|
844
|
+
/** Use fuzzy matching (Fuse.js) - default true */
|
|
845
|
+
fuzzy?: boolean;
|
|
846
|
+
/** Fuse.js matching threshold (0.0 = perfect, 1.0 = anything) - default 0.3 */
|
|
847
|
+
threshold?: number;
|
|
848
|
+
}
|
|
849
|
+
type FacetType = "string" | "number" | "boolean" | "date";
|
|
850
|
+
interface FacetConfig {
|
|
851
|
+
/** Field name to facet on */
|
|
852
|
+
field: string;
|
|
853
|
+
/** Display label for the facet */
|
|
854
|
+
label: string;
|
|
855
|
+
/** Data type of the field */
|
|
856
|
+
type?: FacetType;
|
|
857
|
+
/** Optional: Provide predefined values for the facet (useful for enums) */
|
|
858
|
+
values?: Array<{
|
|
859
|
+
value: string | number;
|
|
860
|
+
label: string;
|
|
861
|
+
}>;
|
|
862
|
+
/** Number of options to show before requiring search (default: 10) */
|
|
863
|
+
searchThreshold?: number;
|
|
864
|
+
/** Max options to show initially, with "Show all" button for rest (default: 50) */
|
|
865
|
+
maxVisibleOptions?: number;
|
|
866
|
+
/** Optional description text to show below the label */
|
|
867
|
+
description?: string;
|
|
868
|
+
/** Optional: Custom render function for option labels (e.g., to show Badges) */
|
|
869
|
+
renderLabel?: (value: string, label: string) => React.ReactNode;
|
|
870
|
+
/** Optional: Group name for organizing filters in FilterDialog */
|
|
871
|
+
group?: string;
|
|
872
|
+
}
|
|
873
|
+
interface FacetCounts {
|
|
874
|
+
[field: string]: {
|
|
875
|
+
[value: string]: number;
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Create a single filter condition
|
|
880
|
+
*/
|
|
881
|
+
declare function createFilter(field: string, operator: FilterOperator, value: string | number | boolean | (string | number)[]): FilterCondition;
|
|
882
|
+
/**
|
|
883
|
+
* Create a filter group from multiple conditions with AND logic
|
|
884
|
+
*/
|
|
885
|
+
declare function createFilters(conditions: FilterCondition[], logic?: "AND" | "OR"): FilterGroup;
|
|
886
|
+
/**
|
|
887
|
+
* Create an empty filter state
|
|
888
|
+
*/
|
|
889
|
+
declare function createEmptyFilter(): FilterGroup;
|
|
890
|
+
/**
|
|
891
|
+
* Check if a filter state is empty (no conditions)
|
|
892
|
+
*/
|
|
893
|
+
declare function isFilterEmpty(filter: FilterState): boolean;
|
|
894
|
+
/**
|
|
895
|
+
* Convert structured filter state to simple display chips
|
|
896
|
+
* Used for backward compatibility with existing FilterChips component
|
|
897
|
+
*/
|
|
898
|
+
interface FilterChip {
|
|
899
|
+
id: string;
|
|
900
|
+
label: string;
|
|
901
|
+
value: string;
|
|
902
|
+
}
|
|
903
|
+
declare function filterToChips(filter: FilterState, facetConfigs?: FacetConfig[]): FilterChip[];
|
|
904
|
+
/**
|
|
905
|
+
* Add a condition to a filter state
|
|
906
|
+
*/
|
|
907
|
+
declare function addFilterCondition(filter: FilterState, condition: FilterCondition): FilterGroup;
|
|
908
|
+
/**
|
|
909
|
+
* Remove a condition from a filter state by field
|
|
910
|
+
*/
|
|
911
|
+
declare function removeFilterCondition(filter: FilterState, field: string): FilterGroup;
|
|
912
|
+
/**
|
|
913
|
+
* Get all unique fields being filtered on
|
|
914
|
+
*/
|
|
915
|
+
declare function getFilterFields(filter: FilterState): string[];
|
|
916
|
+
|
|
796
917
|
type SortDirection = "asc" | "desc";
|
|
797
918
|
type CellAlignment = "left" | "center" | "right";
|
|
798
919
|
type TableDensity = "compact" | "default" | "relaxed";
|
|
@@ -2205,6 +2326,11 @@ interface InteractiveMapProps {
|
|
|
2205
2326
|
* Initial camera position
|
|
2206
2327
|
*/
|
|
2207
2328
|
initialViewState?: Partial<ViewState>;
|
|
2329
|
+
/**
|
|
2330
|
+
* Per-organization Mapbox style URL. Defaults to the MapStyleProvider value;
|
|
2331
|
+
* when neither is set the built-in style for `mapType` is used.
|
|
2332
|
+
*/
|
|
2333
|
+
mapStyleUrl?: string | null;
|
|
2208
2334
|
/**
|
|
2209
2335
|
* Controlled view state (for controlled component pattern)
|
|
2210
2336
|
*/
|
|
@@ -2410,6 +2536,8 @@ interface StaticMapProps {
|
|
|
2410
2536
|
* @default "streets"
|
|
2411
2537
|
*/
|
|
2412
2538
|
mapType?: MapType;
|
|
2539
|
+
/** Per-organization Mapbox style URL; defaults to the MapStyleProvider value. */
|
|
2540
|
+
mapStyleUrl?: string | null;
|
|
2413
2541
|
/**
|
|
2414
2542
|
* Layers to render on the map
|
|
2415
2543
|
*
|
|
@@ -2491,7 +2619,7 @@ interface StaticMapProps {
|
|
|
2491
2619
|
*
|
|
2492
2620
|
* Automatically adapts to light/dark mode using the global ColorModeProvider.
|
|
2493
2621
|
*/
|
|
2494
|
-
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, layers, mapboxAccessToken, showMarker, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2622
|
+
declare function StaticMap({ width, height, initialViewState, isLoading, mapType, mapStyleUrl, layers, mapboxAccessToken, showMarker, showAttribution, onLoad, className, showExpandToggle, expandedMapTitle, expandedMapAddressLabel, schematicPlaceholder, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
2495
2623
|
|
|
2496
2624
|
/**
|
|
2497
2625
|
* Represents a geographic point with coordinates
|
|
@@ -4734,4 +4862,4 @@ declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
|
4734
4862
|
*/
|
|
4735
4863
|
declare const mapValuesToCategoricalColors: (values: (string | number)[]) => Record<string | number, string>;
|
|
4736
4864
|
|
|
4737
|
-
export {
|
|
4865
|
+
export { type YFormatType as $, ABSENT_GRID_FIELDS as A, type BadgeProps as B, CATEGORY_COLOR_TOKENS as C, type DeviceState as D, ENTITY_CONFIG as E, type SegmentedControlProps as F, GRID_ELEMENT_TYPE_BY_ENTITY as G, HEADLINE_METRIC_BOUNDS as H, type InteractiveMapProps as I, type SerializableFieldFormat as J, SideNav as K, Loader as L, type MapPoint as M, type SideNavItem as N, type SideNavProps as O, type PercentThresholdLevel as P, type StaticMapProps as Q, type TooltipData as R, type SegmentOption as S, TextLink as T, type TooltipSeries as U, TopNav as V, type TopNavProps as W, UNARY_FILTER_OPERATORS as X, UNARY_OPERATOR_LABELS as Y, type UnaryFilterOperator as Z, type YFormatSettings as _, type ActionItem as a, type GeoJsonLayerSpec as a$, activeDeviceStates as a0, archetypeFor as a1, clearColorCache as a2, createCategoryColorMap as a3, createXScale as a4, createYScale as a5, defaultMargin as a6, deviceStateLabels as a7, deviceStateMetricFormats as a8, entityHasDetailPage as a9, type FieldValue as aA, type BooleanFormat as aB, type FormattedValue as aC, type FieldFormat as aD, type CurrentFormat as aE, type DateFormat as aF, type DistanceFormat as aG, type EnergyUnit as aH, type EnergyFormat as aI, type CurrencyFormat as aJ, type NumberFormat as aK, type PhoneFormat as aL, type PowerFormat as aM, type FormatterFunction as aN, type ResistanceFormat as aO, type TemperatureFormat as aP, type TemperatureUnitString as aQ, type TemperatureUnit as aR, type TextFormat as aS, type VoltageFormat as aT, type CellComponentProps as aU, type CellAlignment as aV, type LinkBehavior as aW, type ComponentFormatter as aX, type DataTableProps as aY, type LayerSpec as aZ, type CustomPinsSpec as a_, entityHasStatList as aa, entityShowsNow as ab, getContrastingTextColor as ac, getDefaultChartColor as ad, getDefaultColors as ae, getDeviceStateLabel as af, getEntityConfig as ag, getEntityIcon as ah, getEntityLabel as ai, getEntityStatList as aj, getGridStateLabel as ak, getResolvedColor as al, getThemeCategoricalColors as am, getYFormatSettings as an, gridStateLabels as ao, isActiveState as ap, isLightColor as aq, isUnaryFilterOperator as ar, type LoadingState as as, type FilterState as at, type SortState as au, type SearchConfig as av, type FacetConfig as aw, type FacetCounts as ax, type Column as ay, type CellEmphasis as az, type ActionMenuProps as b, type TableWidth as b$, type RasterLayerSpec as b0, type VectorLayerSpec as b1, type ClusteredVectorLayerSpec as b2, type ColorSpec as b3, ActionMenu as b4, AppShell as b5, Avatar as b6, Badge as b7, type BaseFormat as b8, type CellComponent as b9, type LayerVisibilityPatch as bA, MAP_TYPES as bB, type MapType as bC, Meter as bD, type MobileBreakpoint as bE, type MobileConfig as bF, type MobileRenderer as bG, PercentBarCell as bH, type PercentBarCellProps as bI, type PercentageFormat as bJ, type PowerUnit as bK, type RenderType as bL, type ResistanceUnit as bM, SegmentedControl as bN, type SortConfig as bO, type SortDirection as bP, StackNav as bQ, type StackNavGroup as bR, type StackNavItem as bS, type StackNavLinkComponentProps as bT, type StackNavProps as bU, type StackNavRenderRow as bV, type StackNavRowRenderProps as bW, type StackNavTheme as bX, StaticMap as bY, type TableDensity as bZ, type TableLayout as b_, type CellContext as ba, ChartContext as bb, CodeEditor as bc, type ComponentFormatOptions as bd, type CurrentUnit as be, type CustomFormat as bf, DEFAULT_MAP_TYPE as bg, type DateFormatStyle as bh, type DistanceUnit as bi, ENTITY_CATEGORY_CONFIG as bj, type EntityCategory as bk, type EntityCategoryConfig as bl, type FacetType as bm, type FilterChip as bn, type FilterCondition as bo, type FilterGroup as bp, type FilterOperator as bq, GRID_STATE_COLORS as br, type GridStateColor as bs, InteractiveMap as bt, type InteractiveMapHandle as bu, type LayerCheckState as bv, type LayerFeature as bw, type LayerSelection as bx, type LayerStyle as by, type LayerTreeNode as bz, type AppShellProps as c, type TextTransform as c0, type TextTruncatePosition as c1, UNVERIFIED_VOLTAGE_UNIT_ROWS as c2, type UseInfiniteScrollOptions as c3, type UseInfiniteScrollReturn as c4, type VoltageUnit as c5, type ZoomStops as c6, addFilterCondition as c7, baselineFromPoint as c8, createEmptyFilter as c9, createFilter as ca, createFilters as cb, filterToChips as cc, formatComponentValue as cd, getEntityCategory as ce, getFilterFields as cf, isFilterEmpty as cg, mapValuesToCategoricalColors as ch, percentThresholdLevel as ci, removeFilterCondition as cj, useChartContext as ck, useComponentFormatter as cl, useInfiniteScroll as cm, type AvatarProps as d, type BaseDataPoint as e, CATEGORY_NEUTRAL_COLOR as f, type ChartMargin as g, type CodeEditorProps as h, type CodeLanguage as i, type CodeTheme as j, type EntityArchetype as k, type EntityConfig as l, type EntityStateRule as m, type EntityType as n, GRID_STAT_LIST as o, type GridElementSourceType as p, type GridStatField as q, type GridStatFieldFormat as r, type GridState as s, Heading as t, type HeadlineMetric as u, Logo as v, type MeterProps as w, type MetricFormat as x, type MetricSource as y, type PercentThresholds as z };
|