@sybilion/uilib 1.4.37 → 1.4.41
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/agent-glossary/workspace.generated.ts +1 -0
- package/dist/agent-glossary/workspace.index.md +1 -0
- package/dist/agent-glossary/workspace.md +1 -0
- package/dist/esm/src/components/ui/Banner/Banner.styl.js +1 -1
- package/dist/esm/src/components/ui/Chart/Chart.js +1 -2
- package/dist/esm/src/components/ui/Dialog/Dialog.styl.js +1 -1
- package/dist/esm/src/components/ui/Drawer/Drawer.styl.js +1 -1
- package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.styl.js +1 -1
- package/dist/esm/src/components/ui/Foldable/Foldable.js +2 -2
- package/dist/esm/src/components/ui/Foldable/Foldable.styl.js +1 -1
- package/dist/esm/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.styl.js +1 -1
- package/dist/esm/src/components/ui/Page/PageHeader/PageHeader.styl.js +1 -1
- package/dist/esm/src/components/ui/Select/Select.js +313 -5
- package/dist/esm/src/components/ui/Select/Select.styl.js +2 -2
- package/dist/esm/src/components/ui/Sheet/Sheet.styl.js +1 -1
- package/dist/esm/src/components/ui/SupplyChainMap/SupplyChainMap.js +384 -0
- package/dist/esm/src/components/ui/SupplyChainMap/SupplyChainMap.styl.js +7 -0
- package/dist/esm/src/components/ui/SupplyChainMap/map-colors.js +44 -0
- package/dist/esm/src/components/ui/SupplyChainMap/map-disclosure.js +142 -0
- package/dist/esm/src/components/ui/SupplyChainMap/map-labels.js +55 -0
- package/dist/esm/src/components/ui/SupplyChainMap/map-projection.js +186 -0
- package/dist/esm/src/components/ui/SupplyChainMap/supply-chain-map-clusters.js +96 -0
- package/dist/esm/src/components/ui/SupplyChainMap/supply-chain-map-draw.js +66 -0
- package/dist/esm/src/components/ui/SupplyChainMap/supply-chain-map-scene.js +59 -0
- package/dist/esm/src/components/ui/SupplyChainMap/supply-chain-map-types.js +10 -0
- package/dist/esm/src/components/ui/SupplyChainMap/use-map-base-renderer.js +122 -0
- package/dist/esm/src/components/ui/Table/Table.styl.js +1 -1
- package/dist/esm/src/components/ui/Tabs/Tabs.styl.js +1 -1
- package/dist/esm/src/components/ui/Tooltip/Tooltip.styl.js +1 -1
- package/dist/esm/src/components/widgets/DriverCard/DriverPerformanceChart.js +1 -2
- package/dist/esm/src/index.js +2 -0
- package/dist/esm/types/src/components/ui/Select/Select.d.ts +3 -3
- package/dist/esm/types/src/components/ui/Select/Select.types.d.ts +3 -1
- package/dist/esm/types/src/components/ui/SupplyChainMap/SupplyChainMap.contract.test.d.ts +1 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/SupplyChainMap.d.ts +2 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/SupplyChainMap.example.d.ts +1 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/SupplyChainMap.render.worker.d.ts +15 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/SupplyChainMap.types.d.ts +10 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/index.d.ts +3 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/map-colors.d.ts +43 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/map-disclosure.d.ts +35 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/map-disclosure.test.d.ts +1 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/map-labels.d.ts +14 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/map-labels.test.d.ts +1 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/map-projection.d.ts +83 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/map-projection.test.d.ts +1 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/supply-chain-map-clusters.d.ts +25 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/supply-chain-map-clusters.test.d.ts +1 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/supply-chain-map-draw.d.ts +30 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/supply-chain-map-scene.d.ts +28 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/supply-chain-map-scene.test.d.ts +1 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/supply-chain-map-types.d.ts +31 -0
- package/dist/esm/types/src/components/ui/SupplyChainMap/use-map-base-renderer.d.ts +14 -0
- package/dist/esm/types/src/docs/pages/BannerPage.d.ts +1 -0
- package/dist/esm/types/src/docs/pages/SupplyChainMapPage.d.ts +1 -0
- package/dist/esm/types/src/index.d.ts +1 -0
- package/dist/esm/types/src/lib/logger.d.ts +1 -0
- package/package.json +7 -1
- package/src/components/ui/Banner/Banner.styl +1 -1
- package/src/components/ui/Dialog/Dialog.styl +2 -2
- package/src/components/ui/Drawer/Drawer.styl +2 -2
- package/src/components/ui/DropdownMenu/DropdownMenu.styl +2 -2
- package/src/components/ui/Foldable/Foldable.styl +1 -1
- package/src/components/ui/Foldable/Foldable.tsx +2 -2
- package/src/components/ui/MobileAdaptiveSelector/MobileAdaptiveSelector.styl +1 -1
- package/src/components/ui/Page/PageHeader/PageHeader.styl +1 -1
- package/src/components/ui/Select/AGENT.md +3 -1
- package/src/components/ui/Select/Select.styl +31 -0
- package/src/components/ui/Select/Select.styl.d.ts +3 -0
- package/src/components/ui/Select/Select.tsx +506 -4
- package/src/components/ui/Select/Select.types.ts +3 -1
- package/src/components/ui/Sheet/Sheet.styl +2 -2
- package/src/components/ui/SupplyChainMap/AGENT.md +45 -0
- package/src/components/ui/SupplyChainMap/SupplyChainMap.contract.test.ts +45 -0
- package/src/components/ui/SupplyChainMap/SupplyChainMap.example.tsx +176 -0
- package/src/components/ui/SupplyChainMap/SupplyChainMap.render.worker.ts +63 -0
- package/src/components/ui/SupplyChainMap/SupplyChainMap.styl +221 -0
- package/src/components/ui/SupplyChainMap/SupplyChainMap.styl.d.ts +25 -0
- package/src/components/ui/SupplyChainMap/SupplyChainMap.tsx +720 -0
- package/src/components/ui/SupplyChainMap/SupplyChainMap.types.ts +15 -0
- package/src/components/ui/SupplyChainMap/index.ts +11 -0
- package/src/components/ui/SupplyChainMap/map-colors.ts +66 -0
- package/src/components/ui/SupplyChainMap/map-disclosure.test.ts +237 -0
- package/src/components/ui/SupplyChainMap/map-disclosure.ts +226 -0
- package/src/components/ui/SupplyChainMap/map-labels.test.ts +102 -0
- package/src/components/ui/SupplyChainMap/map-labels.ts +85 -0
- package/src/components/ui/SupplyChainMap/map-projection.test.ts +172 -0
- package/src/components/ui/SupplyChainMap/map-projection.ts +281 -0
- package/src/components/ui/SupplyChainMap/supply-chain-map-clusters.test.ts +182 -0
- package/src/components/ui/SupplyChainMap/supply-chain-map-clusters.ts +127 -0
- package/src/components/ui/SupplyChainMap/supply-chain-map-draw.ts +114 -0
- package/src/components/ui/SupplyChainMap/supply-chain-map-scene.test.ts +196 -0
- package/src/components/ui/SupplyChainMap/supply-chain-map-scene.ts +118 -0
- package/src/components/ui/SupplyChainMap/supply-chain-map-types.ts +45 -0
- package/src/components/ui/SupplyChainMap/use-map-base-renderer.ts +145 -0
- package/src/components/ui/Table/Table.styl +3 -3
- package/src/components/ui/Tabs/Tabs.styl +1 -1
- package/src/components/ui/Tooltip/Tooltip.styl +7 -2
- package/src/declarations.d.ts +4 -0
- package/src/docs/pages/BannerPage.tsx +83 -0
- package/src/docs/pages/FeedbackOverviewPage.tsx +7 -1
- package/src/docs/pages/SelectPage.tsx +30 -1
- package/src/docs/pages/SupplyChainMapPage.tsx +21 -0
- package/src/docs/registry.ts +12 -0
- package/src/index.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styleInject from 'style-inject';
|
|
2
2
|
|
|
3
|
-
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}.Tooltip_tooltipContent__b3pS-{backdrop-filter:blur(10px);background-color:var(--popover);border:1px solid var(--border);border-radius:var(--radius-4);box-shadow:0 10px 15px -3px rgba(0,0,0,.1);color:var(--popover-foreground);font-size:var(--text-xs);min-width:100%;padding:6px 12px;text-wrap:balance;transform-origin:var(--radix-tooltip-content-transform-origin);width:-moz-fit-content;width:fit-content;word-break:break-word;z-index:
|
|
3
|
+
var css_248z = "@media (max-width:768px){:root{--page-x-padding:var(--p-6);--page-y-padding:var(--p-6)}}[data-radix-popper-content-wrapper]:has([data-slot=tooltip-content]){z-index:1100!important}.Tooltip_tooltipContent__b3pS-{backdrop-filter:blur(10px);background-color:var(--popover);border:1px solid var(--border);border-radius:var(--radius-4);box-shadow:0 10px 15px -3px rgba(0,0,0,.1);color:var(--popover-foreground);font-size:var(--text-xs);min-width:100%;padding:6px 12px;text-wrap:balance;transform-origin:var(--radix-tooltip-content-transform-origin);width:-moz-fit-content;width:fit-content;word-break:break-word;z-index:1100}.Tooltip_tooltipContent__b3pS-[data-state=delayed-open],.Tooltip_tooltipContent__b3pS-[data-state=instant-open],.Tooltip_tooltipContent__b3pS-[data-state=open]{animation:Tooltip_fade-in__ZQqZv .15s ease-out,Tooltip_zoom-in__SbWQb .15s ease-out}.Tooltip_tooltipContent__b3pS-[data-state=closed]{animation:Tooltip_fade-out__UOBET .1s ease-in,Tooltip_zoom-out__fodOk .1s ease-in}.Tooltip_tooltipContent__b3pS-[data-state=delayed-open][data-side=bottom],.Tooltip_tooltipContent__b3pS-[data-state=instant-open][data-side=bottom],.Tooltip_tooltipContent__b3pS-[data-state=open][data-side=bottom]{animation:Tooltip_fade-in__ZQqZv .15s ease-out,Tooltip_zoom-in__SbWQb .15s ease-out,Tooltip_slide-in-from-top-2__8uuS- .15s ease-out}.Tooltip_tooltipContent__b3pS-[data-state=delayed-open][data-side=left],.Tooltip_tooltipContent__b3pS-[data-state=instant-open][data-side=left],.Tooltip_tooltipContent__b3pS-[data-state=open][data-side=left]{animation:Tooltip_fade-in__ZQqZv .15s ease-out,Tooltip_zoom-in__SbWQb .15s ease-out,Tooltip_slide-in-from-right-2__Uu79F .15s ease-out}.Tooltip_tooltipContent__b3pS-[data-state=delayed-open][data-side=right],.Tooltip_tooltipContent__b3pS-[data-state=instant-open][data-side=right],.Tooltip_tooltipContent__b3pS-[data-state=open][data-side=right]{animation:Tooltip_fade-in__ZQqZv .15s ease-out,Tooltip_zoom-in__SbWQb .15s ease-out,Tooltip_slide-in-from-left-2__23kHm .15s ease-out}.Tooltip_tooltipContent__b3pS-[data-state=delayed-open][data-side=top],.Tooltip_tooltipContent__b3pS-[data-state=instant-open][data-side=top],.Tooltip_tooltipContent__b3pS-[data-state=open][data-side=top]{animation:Tooltip_fade-in__ZQqZv .15s ease-out,Tooltip_zoom-in__SbWQb .15s ease-out,Tooltip_slide-in-from-bottom-2__O-Aa8 .15s ease-out}.Tooltip_tooltipContent__b3pS-[data-state=closed][data-side=bottom],.Tooltip_tooltipContent__b3pS-[data-state=closed][data-side=left],.Tooltip_tooltipContent__b3pS-[data-state=closed][data-side=right],.Tooltip_tooltipContent__b3pS-[data-state=closed][data-side=top]{animation:Tooltip_fade-out__UOBET .1s ease-in,Tooltip_zoom-out__fodOk .1s ease-in}.Tooltip_tooltipContent__b3pS-.Tooltip_tooltipContentOverTrigger__VQAU3{box-sizing:border-box;height:auto;text-wrap:wrap}.Tooltip_tooltipContent__b3pS-.Tooltip_tooltipContentOverTrigger__VQAU3[data-state=delayed-open],.Tooltip_tooltipContent__b3pS-.Tooltip_tooltipContentOverTrigger__VQAU3[data-state=instant-open],.Tooltip_tooltipContent__b3pS-.Tooltip_tooltipContentOverTrigger__VQAU3[data-state=open]{animation:Tooltip_fade-in__ZQqZv .15s ease-out}.Tooltip_tooltipContent__b3pS-.Tooltip_tooltipContentOverTrigger__VQAU3[data-state=closed]{animation:Tooltip_fade-out__UOBET .1s ease-in}.Tooltip_tooltipArrow__87DVL{background-color:var(--popover);border-bottom:1px solid var(--border);border-left-width:1px;border-left:0 solid var(--border);border-radius:2px;border-right:1px solid var(--border);border-top-width:1px;border-top:0 solid var(--border);fill:var(--popover);height:10px;transform:translateY(calc(-50% + .5px)) rotate(45deg);width:10px;z-index:1100}@keyframes Tooltip_fade-in__ZQqZv{0%{opacity:0}to{opacity:1}}@keyframes Tooltip_fade-out__UOBET{0%{opacity:1}to{opacity:0}}@keyframes Tooltip_zoom-in__SbWQb{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes Tooltip_zoom-out__fodOk{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@keyframes Tooltip_slide-in-from-top-2__8uuS-{0%{opacity:0;transform:translateY(-.5rem)}to{opacity:1;transform:translateY(0)}}@keyframes Tooltip_slide-in-from-right-2__Uu79F{0%{opacity:0;transform:translateX(.5rem)}to{opacity:1;transform:translateX(0)}}@keyframes Tooltip_slide-in-from-left-2__23kHm{0%{opacity:0;transform:translateX(-.5rem)}to{opacity:1;transform:translateX(0)}}@keyframes Tooltip_slide-in-from-bottom-2__O-Aa8{0%{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:translateY(0)}}";
|
|
4
4
|
var S = {"tooltipContent":"Tooltip_tooltipContent__b3pS-","fade-in":"Tooltip_fade-in__ZQqZv","zoom-in":"Tooltip_zoom-in__SbWQb","fade-out":"Tooltip_fade-out__UOBET","zoom-out":"Tooltip_zoom-out__fodOk","slide-in-from-top-2":"Tooltip_slide-in-from-top-2__8uuS-","slide-in-from-right-2":"Tooltip_slide-in-from-right-2__Uu79F","slide-in-from-left-2":"Tooltip_slide-in-from-left-2__23kHm","slide-in-from-bottom-2":"Tooltip_slide-in-from-bottom-2__O-Aa8","tooltipContentOverTrigger":"Tooltip_tooltipContentOverTrigger__VQAU3","tooltipArrow":"Tooltip_tooltipArrow__87DVL"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
@@ -10,8 +10,7 @@ import '../../ui/AnalysisLineIcon/AnalysisLineIcon.styl.js';
|
|
|
10
10
|
import 'lucide-react';
|
|
11
11
|
import '../../ui/Chip/Chip.styl.js';
|
|
12
12
|
import '../../ui/LabelWithId/LabelWithId.styl.js';
|
|
13
|
-
import '
|
|
14
|
-
import '../../ui/Select/Select.styl.js';
|
|
13
|
+
import '../../ui/Select/Select.js';
|
|
15
14
|
import '../../ui/TextShimmer/TextShimmer.js';
|
|
16
15
|
import '@phosphor-icons/react';
|
|
17
16
|
import '../../ui/AnalysesSelector/AnalysesSelector.styl.js';
|
package/dist/esm/src/index.js
CHANGED
|
@@ -136,6 +136,8 @@ export { ToggleGroup, ToggleGroupItem } from './components/ui/ToggleGroup/Toggle
|
|
|
136
136
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/ui/Tooltip/Tooltip.js';
|
|
137
137
|
export { VimeoEmbed } from './components/ui/VimeoEmbed/VimeoEmbed.js';
|
|
138
138
|
export { WorldMap } from './components/ui/WorldMap/WorldMap.js';
|
|
139
|
+
export { SupplyChainMap } from './components/ui/SupplyChainMap/SupplyChainMap.js';
|
|
140
|
+
export { activeMapCascade } from './components/ui/SupplyChainMap/supply-chain-map-types.js';
|
|
139
141
|
export { WorkspaceAppSwitcher } from './components/ui/WorkspaceAppSwitcher/WorkspaceAppSwitcher.js';
|
|
140
142
|
export { WORKSPACE_APP_SLUG_BASE_PATH } from './components/ui/WorkspaceAppSwitcher/workspaceApp.types.js';
|
|
141
143
|
export { WORKSPACE_APPS_LS_KEY } from './components/ui/WorkspaceAppSwitcher/workspaceAppsConstants.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { SelectContentProps, SelectGroupProps, SelectItemProps, SelectProps, SelectScrollDownButtonProps, SelectScrollUpButtonProps, SelectSeparatorProps, SelectTriggerProps, SelectValueProps } from './Select.types';
|
|
2
|
-
declare function Select({ variant, ...props }: SelectProps & {
|
|
2
|
+
declare function Select({ variant, searchable, ...props }: SelectProps & {
|
|
3
3
|
variant?: 'default' | 'clear';
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function SelectGroup({ ...props }: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function SelectValue({ ...props }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectValue({ placeholder, ...props }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function SelectTrigger({ className, size, variant, darker, children, hideChevron, asChild, ...props }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function SelectContent({ className, children, position, ...props }: SelectContentProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function SelectItem({ className, children, selected, ...props }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectItem({ className, children, selected, value, disabled, textValue, ...props }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare function SelectScrollUpButton({ className, ...props }: SelectScrollUpButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
declare function SelectScrollDownButton({ className, ...props }: SelectScrollDownButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,9 @@ export interface SelectTriggerProps extends React.ComponentProps<typeof SelectPr
|
|
|
8
8
|
hideChevron?: boolean;
|
|
9
9
|
asChild?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export type SelectProps = React.ComponentProps<typeof SelectPrimitive.Root
|
|
11
|
+
export type SelectProps = React.ComponentProps<typeof SelectPrimitive.Root> & {
|
|
12
|
+
searchable?: boolean;
|
|
13
|
+
};
|
|
12
14
|
export type SelectGroupProps = React.ComponentProps<typeof SelectPrimitive.Group>;
|
|
13
15
|
export type SelectValueProps = React.ComponentProps<typeof SelectPrimitive.Value>;
|
|
14
16
|
export type SelectContentProps = React.ComponentProps<typeof SelectPrimitive.Content>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SupplyChainMapExample(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type MapDrawCommand, type MapHitLane } from './supply-chain-map-draw';
|
|
2
|
+
export type MapWorkerIn = {
|
|
3
|
+
type: 'init';
|
|
4
|
+
canvas: OffscreenCanvas;
|
|
5
|
+
} | {
|
|
6
|
+
type: 'draw';
|
|
7
|
+
command: MapDrawCommand;
|
|
8
|
+
};
|
|
9
|
+
export type MapWorkerOut = {
|
|
10
|
+
type: 'hitLanes';
|
|
11
|
+
lanes: MapHitLane[];
|
|
12
|
+
} | {
|
|
13
|
+
type: 'error';
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MapCascadeOverlay, MapEdge, MapEntity } from './supply-chain-map-types';
|
|
2
|
+
export type SupplyChainMapProps = {
|
|
3
|
+
entities: MapEntity[];
|
|
4
|
+
edges: MapEdge[];
|
|
5
|
+
onEdgeSelect?: (id: string) => void;
|
|
6
|
+
onNodeClick?: (id: string) => void;
|
|
7
|
+
cascade?: MapCascadeOverlay;
|
|
8
|
+
fill?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { SupplyChainMap } from './SupplyChainMap';
|
|
2
|
+
export type { SupplyChainMapProps } from './SupplyChainMap.types';
|
|
3
|
+
export { activeMapCascade, type EntityGeo, type GeoPrecision, type GraphStatus, type MapCascadeOverlay, type MapEdge, type MapEntity, } from './supply-chain-map-types';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** Basemap and mark colours from Team-Merged globe-colors — inlined so this
|
|
2
|
+
* map does not import the globe stack. Dark tones follow the same globe
|
|
3
|
+
* night land/ocean family so canvas paint matches `html.dark`. */
|
|
4
|
+
export declare const OCEAN_TONE = "#4b88b1";
|
|
5
|
+
export declare const OCEAN_TONE_DARK = "#3a5f78";
|
|
6
|
+
export type MapBasemapPalette = {
|
|
7
|
+
ocean: string;
|
|
8
|
+
land: string;
|
|
9
|
+
landStroke: string;
|
|
10
|
+
graticule: string;
|
|
11
|
+
};
|
|
12
|
+
export type MapMarkColors = {
|
|
13
|
+
org: string;
|
|
14
|
+
chain: string;
|
|
15
|
+
rim: string;
|
|
16
|
+
rimSelected: string;
|
|
17
|
+
arcDefault: string;
|
|
18
|
+
spine: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const MAP_COLORS: {
|
|
21
|
+
readonly land: "#fbfcfc";
|
|
22
|
+
readonly landStroke: "rgba(103,119,126,0.38)";
|
|
23
|
+
readonly graticule: "rgba(226,240,250,0.22)";
|
|
24
|
+
readonly org: "#0f9ec0";
|
|
25
|
+
readonly chain: "#54646a";
|
|
26
|
+
readonly rim: "#ffffff";
|
|
27
|
+
readonly rimSelected: "#242829";
|
|
28
|
+
readonly arcDefault: "rgba(222,236,246,0.88)";
|
|
29
|
+
readonly spine: "#d93a2f";
|
|
30
|
+
};
|
|
31
|
+
export declare const MAP_COLORS_DARK: {
|
|
32
|
+
readonly land: "#c3cdd5";
|
|
33
|
+
readonly landStroke: "rgba(36,40,41,0.42)";
|
|
34
|
+
readonly graticule: "rgba(226,240,250,0.10)";
|
|
35
|
+
readonly org: "#2ec4e0";
|
|
36
|
+
readonly chain: "#8a9aa0";
|
|
37
|
+
readonly rim: "#1a2226";
|
|
38
|
+
readonly rimSelected: "#e8eef0";
|
|
39
|
+
readonly arcDefault: "rgba(46,80,96,0.82)";
|
|
40
|
+
readonly spine: "#ff6b5a";
|
|
41
|
+
};
|
|
42
|
+
export declare function mapBasemapPalette(dark: boolean): MapBasemapPalette;
|
|
43
|
+
export declare function mapMarkColors(dark: boolean): MapMarkColors;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type MapDisclosureTier = 'far' | 'mid' | 'near';
|
|
2
|
+
export type MapDisclosureOptions = {
|
|
3
|
+
tier: MapDisclosureTier;
|
|
4
|
+
orgId?: string | null;
|
|
5
|
+
selectedId?: string | null;
|
|
6
|
+
focusId?: string | null;
|
|
7
|
+
signalIds?: ReadonlySet<string>;
|
|
8
|
+
expanded?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type MapDisclosureResult<TNode, TArc> = {
|
|
11
|
+
nodes: TNode[];
|
|
12
|
+
arcs: TArc[];
|
|
13
|
+
hiddenNodeCount: number;
|
|
14
|
+
hiddenArcCount: number;
|
|
15
|
+
routeBudget: number | null;
|
|
16
|
+
canRevealByZoom: boolean;
|
|
17
|
+
};
|
|
18
|
+
type DisclosureAnchors = Pick<MapDisclosureOptions, 'selectedId' | 'focusId' | 'signalIds'>;
|
|
19
|
+
export declare function resolveMapDisclosureAnchors<TNode extends {
|
|
20
|
+
id: string;
|
|
21
|
+
}>(lookup: ReadonlyMap<string, TNode>, anchors: DisclosureAnchors): DisclosureAnchors;
|
|
22
|
+
export declare function mapRoutingArcs<TArc>(fullSceneArcs: readonly TArc[], disclosedArcs: readonly TArc[], worldAnalysisActive: boolean): readonly TArc[];
|
|
23
|
+
type DisclosureArc = {
|
|
24
|
+
id: string;
|
|
25
|
+
fromId: string;
|
|
26
|
+
toId: string;
|
|
27
|
+
onSpine?: boolean;
|
|
28
|
+
impacted?: boolean;
|
|
29
|
+
reach?: string | null;
|
|
30
|
+
};
|
|
31
|
+
export declare function discloseMapScene<TNode extends {
|
|
32
|
+
id: string;
|
|
33
|
+
impacted?: boolean;
|
|
34
|
+
}, TArc extends DisclosureArc>(nodes: readonly TNode[], arcs: readonly TArc[], options: MapDisclosureOptions): MapDisclosureResult<TNode, TArc>;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type MapLabel = {
|
|
2
|
+
id: string;
|
|
3
|
+
lat: number;
|
|
4
|
+
lng: number;
|
|
5
|
+
text: string;
|
|
6
|
+
primary: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type PlacedLabel = MapLabel & {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const LABEL_OFFSET_X = 12;
|
|
13
|
+
export declare const LABEL_OFFSET_Y = 0;
|
|
14
|
+
export declare function placeMapLabels(labels: readonly MapLabel[], project: (lat: number, lng: number) => [number, number] | null, width: number, height: number): PlacedLabel[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type GeoProjection } from 'd3-geo';
|
|
2
|
+
/** Where the flat map's camera is: a zoom factor over the fitted world, and a
|
|
3
|
+
* screen-pixel translation applied AFTER that zoom. k = 1, x = 0, y = 0 is the
|
|
4
|
+
* whole world fitted to the viewport. */
|
|
5
|
+
export type MapCamera = {
|
|
6
|
+
k: number;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const HOME_CAMERA: MapCamera;
|
|
11
|
+
/** Zoomed all the way out the map IS the fitted world — there is nothing
|
|
12
|
+
* beyond it to show, so 1 is the floor rather than a preference. */
|
|
13
|
+
export declare const MIN_ZOOM = 1;
|
|
14
|
+
/** Deep enough to separate two plants in one city (at a typical viewport this
|
|
15
|
+
* is a few tens of kilometres across), shallow enough that the 110m coastline
|
|
16
|
+
* under it has not visibly fallen apart. */
|
|
17
|
+
export declare const MAX_ZOOM = 24;
|
|
18
|
+
/** One press of the +/- buttons. */
|
|
19
|
+
export declare const ZOOM_STEP = 1.6;
|
|
20
|
+
/**
|
|
21
|
+
* The projection the camera sees. The camera transform (scale k, then translate
|
|
22
|
+
* x/y) composes with the base fit linearly, so it folds into the projection's
|
|
23
|
+
* own scale and translate — which is what lets d3's geoPath render polygons,
|
|
24
|
+
* graticule and resampled lines under the camera with no second transform pass
|
|
25
|
+
* (and no stroke widths scaling with the zoom).
|
|
26
|
+
*/
|
|
27
|
+
export declare function mapProjection(width: number, height: number, camera: MapCamera): GeoProjection;
|
|
28
|
+
/** Screen position of a place, or null for a point the projection rejects. */
|
|
29
|
+
export declare function projectPoint(proj: GeoProjection, lat: number, lng: number): [number, number] | null;
|
|
30
|
+
/** The place under a screen position, or null off the projected world. */
|
|
31
|
+
export declare function unprojectPoint(proj: GeoProjection, x: number, y: number): {
|
|
32
|
+
lat: number;
|
|
33
|
+
lng: number;
|
|
34
|
+
} | null;
|
|
35
|
+
/**
|
|
36
|
+
* Keep the world on the canvas. Zoom is clamped to the reachable range, and the
|
|
37
|
+
* translation so that at least MIN_WORLD_VISIBLE_PX of the world's box remains
|
|
38
|
+
* in view on each axis — a drag can park the map half off-screen, never lose it.
|
|
39
|
+
*/
|
|
40
|
+
export declare function clampCamera(camera: MapCamera, width: number, height: number): MapCamera;
|
|
41
|
+
/** Slide the camera by a screen-pixel delta (the drag gesture). */
|
|
42
|
+
export declare function panCamera(camera: MapCamera, dx: number, dy: number, width: number, height: number): MapCamera;
|
|
43
|
+
/**
|
|
44
|
+
* Zoom by `factor` keeping the screen point `at` over the same place — the
|
|
45
|
+
* wheel gesture's contract. Derivation: a base-projected point v lands at
|
|
46
|
+
* screen s = k·v + t, so holding s fixed across k -> k' means
|
|
47
|
+
* t' = s - (k'/k)(s - t).
|
|
48
|
+
*/
|
|
49
|
+
export declare function zoomCamera(camera: MapCamera, factor: number, at: {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
}, width: number, height: number): MapCamera;
|
|
53
|
+
/** A camera holding this place at the viewport centre, at zoom k. */
|
|
54
|
+
export declare function cameraCenteredOn(lat: number, lng: number, k: number, width: number, height: number): MapCamera;
|
|
55
|
+
/**
|
|
56
|
+
* A camera that frames every one of these points at once — the flat analogue of
|
|
57
|
+
* the globe's povFitPoints. Framing is done in base-projected space, where there
|
|
58
|
+
* is no antimeridian to straddle: two points either side of the dateline project
|
|
59
|
+
* to the two edges of the map, and the honest answer there is a wide view, not a
|
|
60
|
+
* wrapped one.
|
|
61
|
+
*/
|
|
62
|
+
export declare function cameraFitPoints(points: readonly {
|
|
63
|
+
lat: number;
|
|
64
|
+
lng: number;
|
|
65
|
+
}[], width: number, height: number): MapCamera;
|
|
66
|
+
/** The zoom a single-target fly-to lands at: close enough that the node's city
|
|
67
|
+
* and neighbours read, far enough that there is context around it. */
|
|
68
|
+
export declare const FOCUS_ZOOM = 6;
|
|
69
|
+
/** The zoom the map opens at over the org's own site — the flat counterpart of
|
|
70
|
+
* the globe's establishing altitude of 1.8 (see syntheticAltitude: 2.2/1.8). */
|
|
71
|
+
export declare const OPENING_ZOOM: number;
|
|
72
|
+
/**
|
|
73
|
+
* The globe-altitude this zoom level corresponds to.
|
|
74
|
+
*
|
|
75
|
+
* The scene code speaks altitude everywhere — labelTier, laneZoomT, the admin-1
|
|
76
|
+
* reveal — and re-deriving three parallel zoom ladders for the flat map would
|
|
77
|
+
* guarantee the two views disagree about when detail arrives. So the map speaks
|
|
78
|
+
* altitude too, through this one mapping: at k = 1 the whole world is in frame,
|
|
79
|
+
* which on the globe is the far end of the wheel (2.2 is the intro's own pull-
|
|
80
|
+
* back altitude); every doubling of zoom halves the "height". Clamped to the
|
|
81
|
+
* globe's reachable range so every consumer sees numbers it was tuned for.
|
|
82
|
+
*/
|
|
83
|
+
export declare function syntheticAltitude(k: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const CLUSTER_RADIUS_PX = 40;
|
|
2
|
+
/** Force-open expires once the camera zooms out past the k recorded at expand. */
|
|
3
|
+
export declare function forceOpenExpired(openedAtK: number, currentK: number): boolean;
|
|
4
|
+
export type ClusterableNode = {
|
|
5
|
+
id: string;
|
|
6
|
+
lat: number;
|
|
7
|
+
lng: number;
|
|
8
|
+
};
|
|
9
|
+
export type MapClusterMarker = {
|
|
10
|
+
id: string;
|
|
11
|
+
lat: number;
|
|
12
|
+
lng: number;
|
|
13
|
+
count: number;
|
|
14
|
+
memberIds: string[];
|
|
15
|
+
nodeId: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type ClusterableArc = {
|
|
18
|
+
id: string;
|
|
19
|
+
fromEntity: string;
|
|
20
|
+
toEntity: string;
|
|
21
|
+
from: [number, number];
|
|
22
|
+
to: [number, number];
|
|
23
|
+
};
|
|
24
|
+
export declare function clusterMapNodes<T extends ClusterableNode>(nodes: readonly T[], project: (lat: number, lng: number) => [number, number] | null, radiusPx?: number, expandIds?: ReadonlySet<string>): MapClusterMarker[];
|
|
25
|
+
export declare function remapArcsToClusters<T extends ClusterableArc>(arcs: readonly T[], clusters: readonly MapClusterMarker[]): T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { MapBasemapPalette } from './map-colors';
|
|
2
|
+
import { type MapCamera } from './map-projection';
|
|
3
|
+
export type MapHitLane = {
|
|
4
|
+
id: string;
|
|
5
|
+
points: [number, number][];
|
|
6
|
+
};
|
|
7
|
+
export type MapDrawArc = {
|
|
8
|
+
id: string;
|
|
9
|
+
from: [number, number];
|
|
10
|
+
to: [number, number];
|
|
11
|
+
color: string;
|
|
12
|
+
alpha: number;
|
|
13
|
+
};
|
|
14
|
+
export type MapDrawCommand = {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
dpr: number;
|
|
18
|
+
camera: MapCamera;
|
|
19
|
+
arcs: MapDrawArc[];
|
|
20
|
+
palette: MapBasemapPalette;
|
|
21
|
+
};
|
|
22
|
+
type MapCanvas = {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
type MapCanvasCtx = CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
|
|
27
|
+
export declare function resizeMapCanvas(canvas: MapCanvas, width: number, height: number, dpr: number): void;
|
|
28
|
+
/** Land, ocean, graticule and arcs. Safe in a Worker — no DOM, no React. */
|
|
29
|
+
export declare function paintSupplyChainMap(ctx: MapCanvasCtx, command: MapDrawCommand): MapHitLane[];
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type GeoProjection } from 'd3-geo';
|
|
2
|
+
import type { EntityGeo, MapEdge, MapEntity } from './supply-chain-map-types';
|
|
3
|
+
export type MapSceneNode = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
lat: number;
|
|
8
|
+
lng: number;
|
|
9
|
+
precision?: EntityGeo['precision'];
|
|
10
|
+
place?: string;
|
|
11
|
+
country?: string;
|
|
12
|
+
};
|
|
13
|
+
export type MapSceneArc = {
|
|
14
|
+
id: string;
|
|
15
|
+
fromEntity: string;
|
|
16
|
+
toEntity: string;
|
|
17
|
+
relation: string;
|
|
18
|
+
from: [number, number];
|
|
19
|
+
to: [number, number];
|
|
20
|
+
};
|
|
21
|
+
export type SupplyChainMapScene = {
|
|
22
|
+
nodes: MapSceneNode[];
|
|
23
|
+
arcs: MapSceneArc[];
|
|
24
|
+
};
|
|
25
|
+
export declare function buildConfirmedMapScene(entities: readonly MapEntity[], edges: readonly MapEdge[]): SupplyChainMapScene;
|
|
26
|
+
export declare function resolveMapSelection(selected: MapSceneNode | null, nodes: readonly MapSceneNode[]): MapSceneNode | null;
|
|
27
|
+
export declare function projectNaturalEarthPoint(coordinates: [number, number], width: number, height: number, padding?: number): [number, number] | null;
|
|
28
|
+
export declare function createNaturalEarthProjection(width: number, height: number, padding?: number): GeoProjection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Minimal graph types the map needs. Compatible with onboarding Entity/Edge. */
|
|
2
|
+
export type GraphStatus = 'draft' | 'confirmed' | 'rejected';
|
|
3
|
+
export type GeoPrecision = 'city' | 'region' | 'country';
|
|
4
|
+
export type EntityGeo = {
|
|
5
|
+
lat: number;
|
|
6
|
+
lng: number;
|
|
7
|
+
precision: GeoPrecision;
|
|
8
|
+
place?: string;
|
|
9
|
+
country?: string;
|
|
10
|
+
};
|
|
11
|
+
export type MapEntity = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
status: GraphStatus;
|
|
16
|
+
geo?: EntityGeo | null;
|
|
17
|
+
};
|
|
18
|
+
export type MapEdge = {
|
|
19
|
+
id: string;
|
|
20
|
+
from_entity: string;
|
|
21
|
+
to_entity: string;
|
|
22
|
+
relation: string;
|
|
23
|
+
status: GraphStatus;
|
|
24
|
+
};
|
|
25
|
+
/** Optional dimming overlay. Compatible with cascade-overlay CascadeOverlay. */
|
|
26
|
+
export type MapCascadeOverlay = {
|
|
27
|
+
pathIds: string[];
|
|
28
|
+
onPathIds: Set<string>;
|
|
29
|
+
laneIds: Set<string>;
|
|
30
|
+
};
|
|
31
|
+
export declare function activeMapCascade(overlay: MapCascadeOverlay | undefined | null): MapCascadeOverlay | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type MapDrawCommand, type MapHitLane } from './supply-chain-map-draw';
|
|
3
|
+
export type MapRendererMode = 'pending' | 'worker' | 'main';
|
|
4
|
+
/**
|
|
5
|
+
* Paints the basemap (land / ocean / graticule / arcs) on an OffscreenCanvas in
|
|
6
|
+
* a Worker when the browser allows it, so projection and rasterization do not
|
|
7
|
+
* hitch the main thread during pan/zoom. Falls back to the same paint path on
|
|
8
|
+
* the main thread. `canvasKey` must be set on the <canvas> so a transferred
|
|
9
|
+
* canvas can be replaced if we drop back to main-thread painting.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useMapBaseRenderer(canvasRef: RefObject<HTMLCanvasElement | null>, command: MapDrawCommand | null, onHitLanes: (lanes: MapHitLane[]) => void, enabled?: boolean): {
|
|
12
|
+
mode: MapRendererMode;
|
|
13
|
+
canvasKey: number;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function BannerPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SupplyChainMapPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -77,6 +77,7 @@ export * from './components/ui/ToggleGroup';
|
|
|
77
77
|
export * from './components/ui/Tooltip';
|
|
78
78
|
export * from './components/ui/VimeoEmbed';
|
|
79
79
|
export * from './components/ui/WorldMap';
|
|
80
|
+
export * from './components/ui/SupplyChainMap';
|
|
80
81
|
export * from './components/ui/WorkspaceAppSwitcher';
|
|
81
82
|
export * from './components/widgets/SidebarDatasetsItemsGrouped';
|
|
82
83
|
export * from './components/widgets/DriverCard';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sybilion/uilib",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.41",
|
|
4
4
|
"description": "Sybilion Design System — React UI components (Webpack + Stylus)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"@tiptap/suggestion": "^3.22.1",
|
|
112
112
|
"@vimeo/player": "^2.29.3",
|
|
113
113
|
"classnames": "^2.3.2",
|
|
114
|
+
"d3-geo": "^3.1.1",
|
|
114
115
|
"lightweight-charts": "^5.0.9",
|
|
115
116
|
"lucide-react": "^0.546.0",
|
|
116
117
|
"mammoth": "^1.9.0",
|
|
@@ -120,8 +121,10 @@
|
|
|
120
121
|
"standard-version": "^9.5.0",
|
|
121
122
|
"style-inject": "^0.3.0",
|
|
122
123
|
"tailwindcss": "^4.2.2",
|
|
124
|
+
"topojson-client": "^3.1.0",
|
|
123
125
|
"tslib": "^2.8.1",
|
|
124
126
|
"vaul": "^1.1.2",
|
|
127
|
+
"world-atlas": "^2.0.2",
|
|
125
128
|
"xlsx": "^0.18.5"
|
|
126
129
|
},
|
|
127
130
|
"peerDependencies": {
|
|
@@ -166,10 +169,13 @@
|
|
|
166
169
|
"@testing-library/jest-dom": "^6.5.0",
|
|
167
170
|
"@testing-library/react": "^16.0.1",
|
|
168
171
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
172
|
+
"@types/d3-geo": "^3.1.1",
|
|
169
173
|
"@types/jest": "^29.4.0",
|
|
170
174
|
"@types/node": "^18.14.0",
|
|
171
175
|
"@types/react": "^19.0.0",
|
|
172
176
|
"@types/react-dom": "^19.0.0",
|
|
177
|
+
"@types/topojson-client": "^3.1.5",
|
|
178
|
+
"@types/topojson-specification": "^1.0.5",
|
|
173
179
|
"babel-loader": "8",
|
|
174
180
|
"babel-preset-react-app": "^10.0.1",
|
|
175
181
|
"clean-webpack-plugin": "^4.0.0",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.dialogOverlay
|
|
5
5
|
position fixed
|
|
6
6
|
inset 0
|
|
7
|
-
z-index
|
|
7
|
+
z-index 1100
|
|
8
8
|
background-color var(--background-alpha-700)
|
|
9
9
|
backdrop-filter blur(4px)
|
|
10
10
|
opacity 0
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
position fixed
|
|
23
23
|
left 50%
|
|
24
24
|
top 50%
|
|
25
|
-
z-index
|
|
25
|
+
z-index 1100
|
|
26
26
|
display flex
|
|
27
27
|
|
|
28
28
|
width fit-content
|
|
@@ -6,7 +6,7 @@ $md = 768px
|
|
|
6
6
|
.overlay
|
|
7
7
|
position fixed
|
|
8
8
|
inset 0
|
|
9
|
-
z-index
|
|
9
|
+
z-index 1100
|
|
10
10
|
background-color rgba(0, 0, 0, 0.5)
|
|
11
11
|
backface-visibility hidden
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ $md = 768px
|
|
|
18
18
|
|
|
19
19
|
.content
|
|
20
20
|
position fixed
|
|
21
|
-
z-index
|
|
21
|
+
z-index 1100
|
|
22
22
|
display flex
|
|
23
23
|
flex-direction column
|
|
24
24
|
height auto
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import '../../../lib/theme.styl';
|
|
2
2
|
|
|
3
3
|
.content
|
|
4
|
-
z-index
|
|
4
|
+
z-index 1100
|
|
5
5
|
min-width 8rem
|
|
6
6
|
max-height var(--radix-dropdown-menu-content-available-height)
|
|
7
7
|
padding var(--p-1)
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
padding-left var(--p-8)
|
|
222
222
|
|
|
223
223
|
.subContent
|
|
224
|
-
z-index
|
|
224
|
+
z-index 1100
|
|
225
225
|
min-width 8rem
|
|
226
226
|
padding var(--p-1)
|
|
227
227
|
border-radius 0.375rem
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { CaretRightIcon } from '@phosphor-icons/react';
|
|
5
5
|
|
|
6
6
|
import S from './Foldable.styl';
|
|
7
7
|
import type { FoldableProps } from './Foldable.types';
|
|
@@ -30,7 +30,7 @@ export function Foldable({
|
|
|
30
30
|
<div className={S.header} onClick={toggleFold} aria-expanded={isUnfolded}>
|
|
31
31
|
<div className={S.headerContent}>{header}</div>
|
|
32
32
|
<div className={S.toggle}>
|
|
33
|
-
<
|
|
33
|
+
<CaretRightIcon size={20} className={S.icon} />
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
36
|
<div
|