@manta-eu/react 0.1.5 → 0.1.6

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.
Files changed (118) hide show
  1. package/dist/components/chat/chat-input/index.d.ts +1 -1
  2. package/dist/components/chat/chat-input/index.d.ts.map +1 -1
  3. package/dist/components/chat/chat-input/index.js +4 -5
  4. package/dist/components/chat-view/Chat.js +13 -3
  5. package/dist/components/layouts/Sidebar.d.ts.map +1 -1
  6. package/dist/components/layouts/Sidebar.js +15 -2
  7. package/dist/components/sidebar/nav-menu.d.ts +2 -0
  8. package/dist/components/sidebar/nav-menu.d.ts.map +1 -1
  9. package/dist/components/sidebar/nav-menu.js +11 -6
  10. package/dist/components/table/index.d.ts +26 -0
  11. package/dist/components/table/index.d.ts.map +1 -1
  12. package/dist/components/table/index.js +31 -1
  13. package/dist/explain-fact/DatalogCode.d.ts.map +1 -1
  14. package/dist/explain-fact/DatalogCode.js +7 -2
  15. package/dist/explain-fact/FactValue.js +3 -3
  16. package/dist/explain-fact/proof-tree/ProofTreeFormulaFooter.d.ts.map +1 -1
  17. package/dist/explain-fact/proof-tree/ProofTreeFormulaFooter.js +2 -1
  18. package/dist/globals.css +10 -102
  19. package/dist/graph/createNodeRouter.d.ts.map +1 -1
  20. package/dist/graph/createNodeRouter.js +3 -0
  21. package/dist/graph/nodes/BrandFacetRuleView.d.ts.map +1 -1
  22. package/dist/graph/nodes/BrandFacetRuleView.js +6 -4
  23. package/dist/graph/nodes/BrandFontFamilyView.d.ts +3 -0
  24. package/dist/graph/nodes/BrandFontFamilyView.d.ts.map +1 -0
  25. package/dist/graph/nodes/BrandFontFamilyView.js +56 -0
  26. package/dist/graph/nodes/BrandFontUploadButton.d.ts +6 -0
  27. package/dist/graph/nodes/BrandFontUploadButton.d.ts.map +1 -0
  28. package/dist/graph/nodes/BrandFontUploadButton.js +65 -0
  29. package/dist/graph/nodes/BrandGuidelinesView.d.ts.map +1 -1
  30. package/dist/graph/nodes/BrandGuidelinesView.js +2 -6
  31. package/dist/graph/nodes/brand-font.d.ts +12 -0
  32. package/dist/graph/nodes/brand-font.d.ts.map +1 -0
  33. package/dist/graph/nodes/brand-font.js +12 -0
  34. package/dist/graph/nodes/brand-shared.d.ts +3 -2
  35. package/dist/graph/nodes/brand-shared.d.ts.map +1 -1
  36. package/dist/graph/nodes/brand-shared.js +3 -2
  37. package/dist/hooks/use-connection-problems.d.ts +15 -0
  38. package/dist/hooks/use-connection-problems.d.ts.map +1 -0
  39. package/dist/hooks/use-connection-problems.js +9 -0
  40. package/dist/hooks/use-font-face.d.ts +3 -0
  41. package/dist/hooks/use-font-face.d.ts.map +1 -0
  42. package/dist/hooks/use-font-face.js +33 -0
  43. package/dist/hooks/use-graph-refresh-after-turn.d.ts +2 -0
  44. package/dist/hooks/use-graph-refresh-after-turn.d.ts.map +1 -0
  45. package/dist/hooks/use-graph-refresh-after-turn.js +12 -0
  46. package/dist/hooks/useAuth.d.ts +1 -0
  47. package/dist/hooks/useAuth.d.ts.map +1 -1
  48. package/dist/hooks/useAuth.js +32 -9
  49. package/dist/hooks/useValidateActionPlan.d.ts.map +1 -1
  50. package/dist/lib/activity-changeset.d.ts.map +1 -1
  51. package/dist/lib/activity-changeset.js +6 -3
  52. package/dist/lib/datastore-route-table.d.ts +1 -0
  53. package/dist/lib/datastore-route-table.d.ts.map +1 -1
  54. package/dist/lib/datastore-route-table.js +2 -0
  55. package/dist/lib/tool-icons.d.ts.map +1 -1
  56. package/dist/lib/tool-icons.js +1 -5
  57. package/dist/providers/ActiveChatProvider.d.ts.map +1 -1
  58. package/dist/providers/ActiveChatProvider.js +2 -0
  59. package/dist/providers/KnowledgeGraphStateContext.d.ts +0 -1
  60. package/dist/providers/KnowledgeGraphStateContext.d.ts.map +1 -1
  61. package/dist/providers/KnowledgeGraphStateProvider.d.ts.map +1 -1
  62. package/dist/providers/KnowledgeGraphStateProvider.js +8 -19
  63. package/dist/routes/activity/change-display.js +1 -1
  64. package/dist/routes/data-explorer/components/record-detail/ActionFormDialog.d.ts.map +1 -1
  65. package/dist/routes/data-explorer/components/record-detail/ActionFormDialog.js +23 -9
  66. package/dist/routes/data-explorer/components/record-detail/action-properties.d.ts +2 -4
  67. package/dist/routes/data-explorer/components/record-detail/action-properties.d.ts.map +1 -1
  68. package/dist/routes/data-explorer/components/record-detail/action-properties.js +8 -50
  69. package/dist/routes/integrations/connection-view.d.ts +4 -1
  70. package/dist/routes/integrations/connection-view.d.ts.map +1 -1
  71. package/dist/routes/integrations/connection-view.js +25 -5
  72. package/dist/routes/integrations/types.d.ts +1 -0
  73. package/dist/routes/integrations/types.d.ts.map +1 -1
  74. package/dist/shacl/shacl-form-types.d.ts +2 -3
  75. package/dist/shacl/shacl-form-types.d.ts.map +1 -1
  76. package/dist/shared/graph-derived-queries.d.ts +5 -0
  77. package/dist/shared/graph-derived-queries.d.ts.map +1 -0
  78. package/dist/shared/graph-derived-queries.js +28 -0
  79. package/package.json +8 -11
  80. package/dist/components/ai-elements/chain-of-thought.d.ts +0 -30
  81. package/dist/components/ai-elements/chain-of-thought.d.ts.map +0 -1
  82. package/dist/components/ai-elements/chain-of-thought.js +0 -57
  83. package/dist/components/context-menu.d.ts +0 -29
  84. package/dist/components/context-menu.d.ts.map +0 -1
  85. package/dist/components/context-menu.js +0 -67
  86. package/dist/components/hover-card.d.ts +0 -6
  87. package/dist/components/hover-card.d.ts.map +0 -1
  88. package/dist/components/hover-card.js +0 -15
  89. package/dist/components/layouts/ChatHistoryItem.d.ts +0 -9
  90. package/dist/components/layouts/ChatHistoryItem.d.ts.map +0 -1
  91. package/dist/components/layouts/ChatHistoryItem.js +0 -7
  92. package/dist/components/layouts/SectionHeader.d.ts +0 -8
  93. package/dist/components/layouts/SectionHeader.d.ts.map +0 -1
  94. package/dist/components/layouts/SectionHeader.js +0 -6
  95. package/dist/components/orbit-site/Block.d.ts +0 -8
  96. package/dist/components/orbit-site/Block.d.ts.map +0 -1
  97. package/dist/components/orbit-site/Block.js +0 -7
  98. package/dist/components/orbit-site/Inset.d.ts +0 -7
  99. package/dist/components/orbit-site/Inset.d.ts.map +0 -1
  100. package/dist/components/orbit-site/Inset.js +0 -6
  101. package/dist/components/orbit-site/Section.d.ts +0 -7
  102. package/dist/components/orbit-site/Section.d.ts.map +0 -1
  103. package/dist/components/orbit-site/Section.js +0 -6
  104. package/dist/components/orbit-site/ThemeSelector.d.ts +0 -3
  105. package/dist/components/orbit-site/ThemeSelector.d.ts.map +0 -1
  106. package/dist/components/orbit-site/ThemeSelector.js +0 -42
  107. package/dist/components/planning/SampleChanges.d.ts +0 -9
  108. package/dist/components/planning/SampleChanges.d.ts.map +0 -1
  109. package/dist/components/planning/SampleChanges.js +0 -117
  110. package/dist/components/tool-invocation-card/index.d.ts +0 -8
  111. package/dist/components/tool-invocation-card/index.d.ts.map +0 -1
  112. package/dist/components/tool-invocation-card/index.js +0 -7
  113. package/dist/lib/schema-fields.d.ts +0 -2
  114. package/dist/lib/schema-fields.d.ts.map +0 -1
  115. package/dist/lib/schema-fields.js +0 -3
  116. package/dist/routes/memories/components/ConflictTimeoutFooter.d.ts +0 -7
  117. package/dist/routes/memories/components/ConflictTimeoutFooter.d.ts.map +0 -1
  118. package/dist/routes/memories/components/ConflictTimeoutFooter.js +0 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-derived-queries.d.ts","sourceRoot":"","sources":["../../src/shared/graph-derived-queries.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG9E,eAAO,MAAM,mBAAmB,EAAE,eAAe,EAqBhD,CAAC;AAEF,wBAAsB,6BAA6B,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAE3F"}
@@ -0,0 +1,28 @@
1
+ import { useActionPlanByIriQuery, useActionPlanDiffQuery, useActionPlanRulesQuery, useActionPlanRunHistoryQuery, useActionPlanSamplesQuery, useActionPlansQuery, useConversationStartersQuery, useCoverageRulesQuery, useCurrentFactValueQuery, useExplainRdFoxFactQuery, useGetActionPlansSummaryQuery, useMemoriesQuery, useMemorySchemasQuery, useNodePropertiesQuery, useNodeRelationshipsQuery, useRulesQuery, useShaclShapesQuery, useSparqlQueryQuery, useUserPreferencesQuery, useValidateActionPlanQuery, } from "@manta-eu/client";
2
+ import { invalidateQueries } from "#lib/tanstack-query";
3
+ // Queries whose resolver reads the active datastore's knowledge graph, so any graph write can change them.
4
+ export const graphDerivedQueries = [
5
+ useActionPlanByIriQuery,
6
+ useActionPlanDiffQuery,
7
+ useActionPlanRulesQuery,
8
+ useActionPlanRunHistoryQuery,
9
+ useActionPlanSamplesQuery,
10
+ useActionPlansQuery,
11
+ useConversationStartersQuery,
12
+ useCoverageRulesQuery,
13
+ useCurrentFactValueQuery,
14
+ useExplainRdFoxFactQuery,
15
+ useGetActionPlansSummaryQuery,
16
+ useMemoriesQuery,
17
+ useMemorySchemasQuery,
18
+ useNodePropertiesQuery,
19
+ useNodeRelationshipsQuery,
20
+ useRulesQuery,
21
+ useShaclShapesQuery,
22
+ useSparqlQueryQuery,
23
+ useUserPreferencesQuery,
24
+ useValidateActionPlanQuery,
25
+ ];
26
+ export async function invalidateGraphDerivedQueries(queryClient) {
27
+ await invalidateQueries(queryClient, [...graphDerivedQueries, ["ldo-ui"], ["rule-sample-facts"]]);
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manta-eu/react",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "The Manta design system, knowledge-graph UI and agent components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1022,10 +1022,8 @@
1022
1022
  "@radix-ui/react-avatar": "^1.2.6",
1023
1023
  "@radix-ui/react-checkbox": "^1.3.11",
1024
1024
  "@radix-ui/react-collapsible": "^1.1.20",
1025
- "@radix-ui/react-context-menu": "^2.3.7",
1026
1025
  "@radix-ui/react-dialog": "^1.1.23",
1027
1026
  "@radix-ui/react-dropdown-menu": "^2.1.24",
1028
- "@radix-ui/react-hover-card": "^1.1.23",
1029
1027
  "@radix-ui/react-label": "^2.1.15",
1030
1028
  "@radix-ui/react-popover": "^1.1.23",
1031
1029
  "@radix-ui/react-progress": "^1.1.16",
@@ -1038,7 +1036,6 @@
1038
1036
  "@radix-ui/react-switch": "^1.3.7",
1039
1037
  "@radix-ui/react-tabs": "^1.1.21",
1040
1038
  "@radix-ui/react-tooltip": "^1.2.16",
1041
- "@radix-ui/react-use-controllable-state": "^1.2.6",
1042
1039
  "@streamdown/code": "^1.1.1",
1043
1040
  "@streamdown/math": "^1.0.2",
1044
1041
  "@streamdown/mermaid": "^1.0.2",
@@ -1060,7 +1057,7 @@
1060
1057
  "hono": "^4.9.8",
1061
1058
  "input-otp": "^1.4.2",
1062
1059
  "js-cookie": "^3.0.5",
1063
- "ldkit": "^2.8.0",
1060
+ "ldkit": "^2.9.0",
1064
1061
  "libphonenumber-js": "^1.11.15",
1065
1062
  "lucide-react": "^1.17.0",
1066
1063
  "mime": "^4.1.0",
@@ -1085,12 +1082,12 @@
1085
1082
  "usehooks-ts": "^3.1.1",
1086
1083
  "zod": "^4.5.0",
1087
1084
  "zustand": "^5.0.2",
1088
- "@manta-eu/auth": "0.1.5",
1089
- "@manta-eu/client": "0.1.5",
1090
- "@manta-eu/datalog-parser": "0.1.5",
1091
- "@manta-eu/ldo": "0.1.5",
1092
- "@manta-eu/lib": "0.1.5",
1093
- "@manta-eu/rdf-lib": "0.1.5"
1085
+ "@manta-eu/auth": "0.1.6",
1086
+ "@manta-eu/ldo": "0.1.6",
1087
+ "@manta-eu/datalog-parser": "0.1.6",
1088
+ "@manta-eu/lib": "0.1.6",
1089
+ "@manta-eu/client": "0.1.6",
1090
+ "@manta-eu/rdf-lib": "0.1.6"
1094
1091
  },
1095
1092
  "peerDependencies": {
1096
1093
  "@ulb-darmstadt/shacl-form": "^2.1.1-rc1",
@@ -1,30 +0,0 @@
1
- import { type LucideIcon } from "lucide-react";
2
- import type { ComponentProps, ReactNode } from "react";
3
- import { Badge } from "#components/badge/index";
4
- import { CollapsibleContent, CollapsibleTrigger } from "#components/collapsible/index";
5
- export type ChainOfThoughtProps = ComponentProps<"div"> & {
6
- open?: boolean;
7
- defaultOpen?: boolean;
8
- onOpenChange?: (open: boolean) => void;
9
- };
10
- export declare function ChainOfThought(props: ChainOfThoughtProps): import("react/jsx-runtime").JSX.Element;
11
- export type ChainOfThoughtHeaderProps = ComponentProps<typeof CollapsibleTrigger>;
12
- export declare function ChainOfThoughtHeader(props: ChainOfThoughtHeaderProps): import("react/jsx-runtime").JSX.Element;
13
- export type ChainOfThoughtStepProps = ComponentProps<"li"> & {
14
- icon?: LucideIcon;
15
- label: ReactNode;
16
- description?: ReactNode;
17
- status?: "complete" | "active" | "pending";
18
- };
19
- export declare function ChainOfThoughtStep(props: ChainOfThoughtStepProps): import("react/jsx-runtime").JSX.Element;
20
- export type ChainOfThoughtSearchResultsProps = ComponentProps<"div">;
21
- export declare function ChainOfThoughtSearchResults(props: ChainOfThoughtSearchResultsProps): import("react/jsx-runtime").JSX.Element;
22
- export type ChainOfThoughtSearchResultProps = ComponentProps<typeof Badge>;
23
- export declare function ChainOfThoughtSearchResult(props: ChainOfThoughtSearchResultProps): import("react/jsx-runtime").JSX.Element;
24
- export type ChainOfThoughtContentProps = ComponentProps<typeof CollapsibleContent>;
25
- export declare function ChainOfThoughtContent(props: ChainOfThoughtContentProps): import("react/jsx-runtime").JSX.Element;
26
- export type ChainOfThoughtImageProps = ComponentProps<"div"> & {
27
- caption?: string;
28
- };
29
- export declare function ChainOfThoughtImage(props: ChainOfThoughtImageProps): import("react/jsx-runtime").JSX.Element;
30
- //# sourceMappingURL=chain-of-thought.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chain-of-thought.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/chain-of-thought.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA8B,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAe,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAmBpG,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAkBxD;AAED,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAElF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAoBpE;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG;IAC3D,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CA8BhE;AAED,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErE,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,gCAAgC,2CAIlF;AAED,MAAM,MAAM,+BAA+B,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;AAE3E,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,2CAQhF;AAED,MAAM,MAAM,0BAA0B,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CAoBtE;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAWlE"}
@@ -1,57 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useControllableState } from "@radix-ui/react-use-controllable-state";
4
- import { Brain, ChevronDown, Circle } from "lucide-react";
5
- import { createContext, use, useMemo } from "react";
6
- import { Badge } from "#components/badge/index";
7
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "#components/collapsible/index";
8
- import { cn } from "#lib/utils";
9
- const ChainOfThoughtContext = createContext(null);
10
- function useChainOfThought() {
11
- const context = use(ChainOfThoughtContext);
12
- if (!context) {
13
- throw new Error("ChainOfThought components must be used within ChainOfThought");
14
- }
15
- return context;
16
- }
17
- export function ChainOfThought(props) {
18
- const { className, open, defaultOpen = true, onOpenChange, children, ...restProps } = props;
19
- const [isOpen, setIsOpen] = useControllableState({
20
- prop: open,
21
- defaultProp: defaultOpen,
22
- onChange: onOpenChange,
23
- });
24
- const chainOfThoughtContext = useMemo(() => ({ isOpen, setIsOpen }), [isOpen, setIsOpen]);
25
- return (_jsx(ChainOfThoughtContext.Provider, { value: chainOfThoughtContext, children: _jsx("div", { className: cn("not-prose max-w-prose space-y-4", className), ...restProps, children: children }) }));
26
- }
27
- export function ChainOfThoughtHeader(props) {
28
- const { className, children, ...restProps } = props;
29
- const { isOpen, setIsOpen } = useChainOfThought();
30
- return (_jsx(Collapsible, { onOpenChange: setIsOpen, open: isOpen, children: _jsxs(CollapsibleTrigger, { className: cn("flex w-full items-center gap-2 text-muted-foreground typography-small transition-colors hover:text-default-foreground", className), ...restProps, children: [_jsx(Brain, { className: "size-4" }), _jsx("span", { className: "flex-1 text-left", children: children ?? "Chain of Thought" }), _jsx(ChevronDown, { className: cn("size-4 transition-transform", isOpen ? "rotate-180" : "rotate-0") })] }) }));
31
- }
32
- export function ChainOfThoughtStep(props) {
33
- const { className, icon: IconComponent = Circle, label, description, status = "complete", children, ...restProps } = props;
34
- const statusStyles = {
35
- complete: "text-muted-foreground",
36
- active: "text-default-foreground",
37
- pending: "text-muted-foreground",
38
- };
39
- return (_jsxs("li", { className: cn("flex flex-row gap-1 group", className, statusStyles[status]), ...restProps, children: [_jsxs("div", { className: "relative mt-0.5", children: [_jsx(IconComponent, { className: "size-4 opacity-60 group-hover:opacity-100 mr-2", strokeWidth: 0.5 }), _jsx("div", { className: "-mx-px absolute top-7 bottom-0 left-1/2 w-px bg-muted-border" })] }), _jsxs("div", { className: "flex-1 space-y-2", children: [_jsx("div", { children: label }), description && _jsx("div", { className: "text-muted-foreground typography-tiny", children: description }), children] })] }));
40
- }
41
- export function ChainOfThoughtSearchResults(props) {
42
- const { className, ...restProps } = props;
43
- return _jsx("div", { className: cn("flex items-center gap-2", className), ...restProps });
44
- }
45
- export function ChainOfThoughtSearchResult(props) {
46
- const { className, children, ...restProps } = props;
47
- return (_jsx(Badge, { className: cn("gap-1 px-2 py-0.5 typography-tiny", className), variant: "secondary", ...restProps, children: children }));
48
- }
49
- export function ChainOfThoughtContent(props) {
50
- const { className, children, ...restProps } = props;
51
- const { isOpen } = useChainOfThought();
52
- return (_jsx(Collapsible, { open: isOpen, children: _jsx(CollapsibleContent, { className: cn("mt-2 space-y-3", "data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2", "data-[state=open]:slide-in-from-top-2 text-default-foreground outline-none", "data-[state=closed]:animate-out data-[state=open]:animate-in", className), ...restProps, children: children }) }));
53
- }
54
- export function ChainOfThoughtImage(props) {
55
- const { className, children, caption, ...restProps } = props;
56
- return (_jsxs("div", { className: cn("mt-2 space-y-2", className), ...restProps, children: [_jsx("div", { className: "relative flex max-h-[22rem] items-center justify-center overflow-hidden rounded-lg bg-muted p-3", children: children }), caption && _jsx("p", { className: "text-muted-foreground typography-tiny", children: caption })] }));
57
- }
@@ -1,29 +0,0 @@
1
- import { Root, Trigger, Group, Portal, Sub, RadioGroup, SubTrigger, Item, CheckboxItem, Label, Separator, RadioItem } from "@radix-ui/react-context-menu";
2
- import type { ComponentProps } from "react";
3
- export declare function ContextMenu(props: ComponentProps<typeof Root>): import("react/jsx-runtime").JSX.Element;
4
- export declare function ContextMenuTrigger(props: ComponentProps<typeof Trigger>): import("react/jsx-runtime").JSX.Element;
5
- export declare function ContextMenuGroup(props: ComponentProps<typeof Group>): import("react/jsx-runtime").JSX.Element;
6
- export declare function ContextMenuPortal(props: ComponentProps<typeof Portal>): import("react/jsx-runtime").JSX.Element;
7
- export declare function ContextMenuSub(props: ComponentProps<typeof Sub>): import("react/jsx-runtime").JSX.Element;
8
- export declare function ContextMenuRadioGroup(props: ComponentProps<typeof RadioGroup>): import("react/jsx-runtime").JSX.Element;
9
- type ContextMenuSubTriggerProps = ComponentProps<typeof SubTrigger> & {
10
- inset?: boolean;
11
- };
12
- export declare function ContextMenuSubTrigger(props: ContextMenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
13
- export declare const ContextMenuSubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
14
- export declare const ContextMenuContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-context-menu").ContextMenuContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
15
- type ContextMenuItemProps = ComponentProps<typeof Item> & {
16
- inset?: boolean;
17
- variant?: "default" | "destructive";
18
- };
19
- export declare function ContextMenuItem(props: ContextMenuItemProps): import("react/jsx-runtime").JSX.Element;
20
- export declare function ContextMenuCheckboxItem(props: ComponentProps<typeof CheckboxItem>): import("react/jsx-runtime").JSX.Element;
21
- export declare function ContextMenuRadioItem(props: ComponentProps<typeof RadioItem>): import("react/jsx-runtime").JSX.Element;
22
- type ContextMenuLabelProps = ComponentProps<typeof Label> & {
23
- inset?: boolean;
24
- };
25
- export declare function ContextMenuLabel(props: ContextMenuLabelProps): import("react/jsx-runtime").JSX.Element;
26
- export declare function ContextMenuSeparator(props: ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
27
- export declare function ContextMenuShortcut(props: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
28
- export {};
29
- //# sourceMappingURL=context-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/components/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,IAAI,EACJ,OAAO,EACP,KAAK,EACL,MAAM,EACN,GAAG,EACH,UAAU,EACV,UAAU,EAGV,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,SAAS,EAET,SAAS,EACV,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,OAAO,CAAC;AAI1D,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,2CAkB7D;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,OAAO,CAAC,2CAGvE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,2CAEnE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,2CAErE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,GAAG,CAAC,2CAE/D;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,UAAU,CAAC,2CAE7E;AAED,KAAK,0BAA0B,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IACpE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CAuBtE;AAED,eAAO,MAAM,qBAAqB,2NAqBjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,wNAwB9B,CAAC;AAEF,KAAK,oBAAoB,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACrC,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAwB1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,YAAY,CAAC,2CAyBjF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,2CAwB3E;AAED,KAAK,qBAAqB,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,GAAG;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,2CAW5D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,2CAS3E;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,2CAShE"}
@@ -1,67 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Root, Trigger, Group, Portal, Sub, RadioGroup, SubTrigger, Content, SubContent, Item, CheckboxItem, Label, Separator, ItemIndicator, RadioItem, } from "@radix-ui/react-context-menu";
4
- import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
5
- import { forwardRef, useState } from "react";
6
- import { cn } from "../lib/utils.js";
7
- export function ContextMenu(props) {
8
- const [menuKey, setMenuKey] = useState(0);
9
- return (_jsx(Root, { "data-slot": "context-menu", onOpenChange: (open) => {
10
- // Call original onOpenChange if provided
11
- props.onOpenChange?.(open);
12
- // When menu closes, prepare for next repositioning
13
- if (!open) {
14
- setMenuKey((prev) => prev + 1);
15
- }
16
- }, ...props }, menuKey));
17
- }
18
- export function ContextMenuTrigger(props) {
19
- const { className, ...rest } = props;
20
- return _jsx(Trigger, { className: cn("touch-manipulation", className), "data-slot": "context-menu-trigger", ...rest });
21
- }
22
- export function ContextMenuGroup(props) {
23
- return _jsx(Group, { "data-slot": "context-menu-group", ...props });
24
- }
25
- export function ContextMenuPortal(props) {
26
- return _jsx(Portal, { "data-slot": "context-menu-portal", ...props });
27
- }
28
- export function ContextMenuSub(props) {
29
- return _jsx(Sub, { "data-slot": "context-menu-sub", ...props });
30
- }
31
- export function ContextMenuRadioGroup(props) {
32
- return _jsx(RadioGroup, { "data-slot": "context-menu-radio-group", ...props });
33
- }
34
- export function ContextMenuSubTrigger(props) {
35
- const { className, inset, children, ...otherProps } = props;
36
- return (_jsxs(SubTrigger, { className: cn("flex cursor-default touch-manipulation select-none items-center", "rounded-radius px-2 py-1.5 typography-small outline-hidden", "focus:bg-accent focus:text-accent-foreground", "data-[state=open]:bg-accent data-inset:pl-8 data-[state=open]:text-accent-foreground", "[&_svg:not([class*='size-'])]:size-4", "[&_svg:not([class*='text-'])]:text-muted-foreground", "[&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-inset": inset, "data-slot": "context-menu-sub-trigger", ...otherProps, children: [children, _jsx(ChevronRightIcon, { "aria-hidden": "true", className: "ml-auto" })] }));
37
- }
38
- export const ContextMenuSubContent = forwardRef(function ContextMenuSubContent({ className, ...props }, ref) {
39
- return (_jsx(SubContent, { className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", "z-50 min-w-32 touch-manipulation overflow-hidden", "origin-(--radix-context-menu-content-transform-origin)", "rounded-radius border bg-card p-1 text-default-foreground shadow-lg", "data-[state=closed]:animate-out data-[state=open]:animate-in motion-reduce:animate-none", className), "data-slot": "context-menu-sub-content", ref: ref, ...props }));
40
- });
41
- export const ContextMenuContent = forwardRef(function ContextMenuContent({ className, ...props }, ref) {
42
- return (_jsx(Portal, { children: _jsx(Content, { className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2", "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", "z-50 min-w-32 touch-manipulation overflow-y-auto overflow-x-hidden", "max-h-(--radix-context-menu-content-available-height)", "origin-(--radix-context-menu-content-transform-origin)", "overscroll-contain rounded-radius border bg-card p-1 text-default-foreground shadow-md", "data-[state=closed]:animate-out data-[state=open]:animate-in motion-reduce:animate-none", className), "data-slot": "context-menu-content", ref: ref, ...props }) }));
43
- });
44
- export function ContextMenuItem(props) {
45
- const { className, inset, variant = "default", ...otherProps } = props;
46
- return (_jsx(Item, { "aria-disabled": otherProps.disabled ? true : undefined, className: cn("relative flex cursor-default touch-manipulation select-none items-center gap-2", "rounded-radius px-2 py-1.5 typography-small outline-hidden", "focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-8", "data-[variant=destructive]:text-error-foreground data-disabled:opacity-50", "data-[variant=destructive]:focus:bg-error data-[variant=destructive]:focus:text-error-foreground", "[&_svg:not([class*='size-'])]:size-4", "[&_svg:not([class*='text-'])]:text-muted-foreground", "[&_svg]:pointer-events-none [&_svg]:shrink-0", "data-[variant=destructive]:*:[svg]:text-error-foreground!", className), "data-inset": inset, "data-slot": "context-menu-item", "data-variant": variant, ...otherProps }));
47
- }
48
- export function ContextMenuCheckboxItem(props) {
49
- const { className, children, checked, ...otherProps } = props;
50
- return (_jsxs(CheckboxItem, { "aria-disabled": otherProps.disabled ? true : undefined, checked: checked, className: cn("relative flex cursor-default touch-manipulation select-none items-center gap-2", "rounded-radius py-1.5 pr-2 pl-8 typography-small outline-hidden focus:bg-accent focus:text-accent-foreground", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-slot": "context-menu-checkbox-item", ...otherProps, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(ItemIndicator, { children: _jsx(CheckIcon, { "aria-hidden": "true", className: "size-4" }) }) }), children] }));
51
- }
52
- export function ContextMenuRadioItem(props) {
53
- const { className, children, ...otherProps } = props;
54
- return (_jsxs(RadioItem, { "aria-disabled": otherProps.disabled ? true : undefined, className: cn("relative flex cursor-default touch-manipulation select-none items-center gap-2", "rounded-radius py-1.5 pr-2 pl-8 typography-small outline-hidden focus:bg-accent focus:text-accent-foreground", "data-disabled:pointer-events-none data-disabled:opacity-50", "[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), "data-slot": "context-menu-radio-item", ...otherProps, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(ItemIndicator, { children: _jsx(CircleIcon, { "aria-hidden": "true", className: "size-2 fill-current" }) }) }), children] }));
55
- }
56
- export function ContextMenuLabel(props) {
57
- const { className, inset, ...otherProps } = props;
58
- return (_jsx(Label, { className: cn("px-2 py-1.5 typography-small-medium text-default-foreground data-inset:pl-8", className), "data-inset": inset, "data-slot": "context-menu-label", ...otherProps }));
59
- }
60
- export function ContextMenuSeparator(props) {
61
- const { className, ...otherProps } = props;
62
- return (_jsx(Separator, { className: cn("-mx-1 my-1 h-px bg-muted-border", className), "data-slot": "context-menu-separator", ...otherProps }));
63
- }
64
- export function ContextMenuShortcut(props) {
65
- const { className, ...otherProps } = props;
66
- return (_jsx("span", { className: cn("ml-auto typography-tiny text-muted-foreground tracking-widest", className), "data-slot": "context-menu-shortcut", ...otherProps }));
67
- }
@@ -1,6 +0,0 @@
1
- import { Root, Trigger, Content } from "@radix-ui/react-hover-card";
2
- import type { ComponentProps } from "react";
3
- export declare function HoverCard(props: ComponentProps<typeof Root>): import("react/jsx-runtime").JSX.Element;
4
- export declare function HoverCardTrigger(props: ComponentProps<typeof Trigger>): import("react/jsx-runtime").JSX.Element;
5
- export declare function HoverCardContent(props: ComponentProps<typeof Content>): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=hover-card.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hover-card.d.ts","sourceRoot":"","sources":["../../src/components/hover-card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAU,MAAM,4BAA4B,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,2CAE3D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,OAAO,CAAC,2CAUrE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,OAAO,CAAC,2CAiBrE"}
@@ -1,15 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Root, Trigger, Content, Portal } from "@radix-ui/react-hover-card";
4
- import { cn } from "../lib/utils.js";
5
- export function HoverCard(props) {
6
- return _jsx(Root, { "data-slot": "hover-card", ...props });
7
- }
8
- export function HoverCardTrigger(props) {
9
- const { className, ...otherProps } = props;
10
- return (_jsx(Trigger, { className: cn("touch-manipulation", className), "data-slot": "hover-card-trigger", type: "button", ...otherProps }));
11
- }
12
- export function HoverCardContent(props) {
13
- const { className, align = "center", sideOffset = 4, ...otherProps } = props;
14
- return (_jsx(Portal, { "data-slot": "hover-card-portal", children: _jsx(Content, { align: align, className: cn("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) touch-manipulation rounded-md border bg-card p-4 text-default-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in motion-reduce:animate-none", className), "data-slot": "hover-card-content", sideOffset: sideOffset, ...otherProps }) }));
15
- }
@@ -1,9 +0,0 @@
1
- type ChatHistoryItemProps = {
2
- title: string;
3
- timestamp: string;
4
- isActive?: boolean;
5
- onClick?: () => void;
6
- };
7
- export declare function ChatHistoryItem(props: ChatHistoryItemProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=ChatHistoryItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatHistoryItem.d.ts","sourceRoot":"","sources":["../../../src/components/layouts/ChatHistoryItem.tsx"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAwB1D"}
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { MessageCircle } from "lucide-react";
3
- import { cn } from "#lib/utils";
4
- export function ChatHistoryItem(props) {
5
- const { title, timestamp, isActive = false, onClick } = props;
6
- return (_jsx("li", { children: _jsxs("button", { type: "button", onClick: onClick, className: cn("flex w-full cursor-pointer items-center gap-3 rounded-sm px-3 py-2 typography-small text-left transition-colors", "hover:bg-secondary", isActive && "bg-accent-foreground/10 text-background"), children: [_jsx(MessageCircle, { size: 20, className: "shrink-0" }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "truncate typography-small-medium", title: title, children: title }), _jsx("div", { className: "truncate typography-tiny text-muted-foreground", children: timestamp })] })] }) }));
7
- }
@@ -1,8 +0,0 @@
1
- import type { ReactNode } from "react";
2
- type SectionHeaderProps = {
3
- action?: ReactNode;
4
- title: string;
5
- };
6
- export declare function SectionHeader(props: SectionHeaderProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=SectionHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../src/components/layouts/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,kBAAkB,GAAG;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAStD"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "#lib/utils";
3
- export function SectionHeader(props) {
4
- const { title, action } = props;
5
- return (_jsxs("div", { className: cn("mb-2 flex items-center px-2", action ? "justify-between gap-2" : "justify-start"), children: [_jsx("span", { className: "typography-tiny text-muted-foreground uppercase", children: title }), action ? _jsx("div", { className: "shrink-0", children: action }) : null] }));
6
- }
@@ -1,8 +0,0 @@
1
- import type { ReactNode } from "react";
2
- type BlockProps = {
3
- children: ReactNode;
4
- title?: string;
5
- };
6
- declare function Block(props: BlockProps): import("react/jsx-runtime").JSX.Element;
7
- export default Block;
8
- //# sourceMappingURL=Block.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../src/components/orbit-site/Block.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,2CAmB/B;AAED,eAAe,KAAK,CAAC"}
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "#lib/utils";
3
- function Block(props) {
4
- const { children, title } = props;
5
- return (_jsxs(_Fragment, { children: [title && (_jsx("header", { children: _jsx("h2", { className: "mt-10 mb-4 typography-large-header", children: title }) })), _jsx("div", { className: cn("flex aspect-video w-full items-center justify-center gap-4 rounded-lg border p-10 transition-colors", "border-default-border bg-background"), children: children })] }));
6
- }
7
- export default Block;
@@ -1,7 +0,0 @@
1
- import type { ReactNode } from "react";
2
- type InsetProps = {
3
- children?: ReactNode;
4
- };
5
- declare function Inset(props: InsetProps): import("react/jsx-runtime").JSX.Element;
6
- export default Inset;
7
- //# sourceMappingURL=Inset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Inset.d.ts","sourceRoot":"","sources":["../../../src/components/orbit-site/Inset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,2CAG/B;AAED,eAAe,KAAK,CAAC"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- function Inset(props) {
3
- const { children } = props;
4
- return _jsx("div", { className: "mx-auto flex w-full max-w-4xl flex-col gap-4 pt-10 pb-40", children: children });
5
- }
6
- export default Inset;
@@ -1,7 +0,0 @@
1
- import type { ReactNode } from "react";
2
- type SectionProps = {
3
- children?: ReactNode;
4
- };
5
- declare function Section(props: SectionProps): import("react/jsx-runtime").JSX.Element;
6
- export default Section;
7
- //# sourceMappingURL=Section.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../src/components/orbit-site/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,iBAAS,OAAO,CAAC,KAAK,EAAE,YAAY,2CAGnC;AAED,eAAe,OAAO,CAAC"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- function Section(props) {
3
- const { children } = props;
4
- return _jsx("section", { className: "w-full", children: children });
5
- }
6
- export default Section;
@@ -1,3 +0,0 @@
1
- declare function ThemeSelector(): import("react/jsx-runtime").JSX.Element;
2
- export default ThemeSelector;
3
- //# sourceMappingURL=ThemeSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeSelector.d.ts","sourceRoot":"","sources":["../../../src/components/orbit-site/ThemeSelector.tsx"],"names":[],"mappings":"AAgCA,iBAAS,aAAa,4CAyCrB;AAED,eAAe,aAAa,CAAC"}
@@ -1,42 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { SunMoon, Sun, Moon } from "lucide-react";
3
- import { useEffect, useState } from "react";
4
- import { match } from "ts-pattern";
5
- import { cn } from "#lib/utils";
6
- import { useTheme } from "#providers/ThemeProvider";
7
- function describeTheme(theme) {
8
- return match(theme)
9
- .with("light", () => ({
10
- icon: _jsx(Sun, { className: "size-5" }),
11
- label: "Light mode (click for Dark)",
12
- next: "dark",
13
- }))
14
- .with("dark", () => ({
15
- icon: _jsx(Moon, { className: "size-5" }),
16
- label: "Dark mode (click for System)",
17
- next: "system",
18
- }))
19
- .with("system", () => ({
20
- icon: _jsx(SunMoon, { className: "size-5" }),
21
- label: "System theme (click for Light)",
22
- next: "light",
23
- }))
24
- .exhaustive();
25
- }
26
- function ThemeSelector() {
27
- const { theme, setTheme } = useTheme();
28
- const [mounted, setMounted] = useState(false);
29
- // Prevent hydration mismatch
30
- useEffect(() => {
31
- setMounted(true);
32
- }, []);
33
- if (!mounted) {
34
- return (_jsx("button", { "aria-label": "Toggle theme", className: "flex size-8 cursor-pointer items-center justify-center rounded-md transition-colors", type: "button", children: _jsx("span", { className: "sr-only", children: "Loading theme selector\u2026" }) }));
35
- }
36
- const { icon, label, next } = describeTheme(theme);
37
- function cycleTheme() {
38
- setTheme(next);
39
- }
40
- return (_jsx("button", { "aria-label": label, className: cn("flex size-8 cursor-pointer items-center justify-center rounded-md transition-colors", "hover:bg-background/60"), onClick: cycleTheme, title: label, type: "button", children: icon }));
41
- }
42
- export default ThemeSelector;
@@ -1,9 +0,0 @@
1
- type SampleChangesProps = {
2
- planGraphIri: string;
3
- typeIri: string;
4
- typeName: string;
5
- limit?: number;
6
- };
7
- export declare function SampleChanges(props: SampleChangesProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
9
- //# sourceMappingURL=SampleChanges.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SampleChanges.d.ts","sourceRoot":"","sources":["../../../src/components/planning/SampleChanges.tsx"],"names":[],"mappings":"AA2BA,KAAK,kBAAkB,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CA6CtD"}