@hollis-labs/surface-page 0.2.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/chunk-LODRWYOW.js +2060 -0
- package/dist/gallery.js +491 -310
- package/dist/index.js +385 -387
- package/dist/registry-items.json +3 -0
- package/dist/sdk.js +13 -1
- package/dist/types/agent/api.d.ts +34 -2
- package/dist/types/agent/session.d.ts +2 -5
- package/dist/types/cards/store.d.ts +13 -1
- package/dist/types/cards/views.d.ts +3 -2
- package/dist/types/cite/core/detect.d.ts +26 -0
- package/dist/types/cite/core/index.d.ts +17 -0
- package/dist/types/cite/core/kinds/caster.d.ts +3 -0
- package/dist/types/cite/core/kinds/fragment.d.ts +3 -0
- package/dist/types/cite/core/kinds/ops.d.ts +3 -0
- package/dist/types/cite/core/kinds/path.d.ts +8 -0
- package/dist/types/cite/core/kinds/registry.d.ts +3 -0
- package/dist/types/cite/core/kinds/tesseract.d.ts +11 -0
- package/dist/types/cite/core/kinds/tether.d.ts +4 -0
- package/dist/types/cite/core/kinds/torque.d.ts +11 -0
- package/dist/types/cite/core/kinds/url.d.ts +2 -0
- package/dist/types/cite/core/kinds/work.d.ts +3 -0
- package/dist/types/cite/core/preview.d.ts +8 -0
- package/dist/types/cite/core/registry.d.ts +19 -0
- package/dist/types/cite/core/resolver.d.ts +34 -0
- package/dist/types/cite/core/scan-utils.d.ts +9 -0
- package/dist/types/cite/core/tach.d.ts +3 -0
- package/dist/types/cite/core/types.d.ts +161 -0
- package/dist/types/cite/record.d.ts +11 -0
- package/dist/types/cite/remark.d.ts +32 -0
- package/dist/types/cite/store.d.ts +35 -0
- package/dist/types/cite/structured-view.d.ts +9 -0
- package/dist/types/cite/structured.d.ts +90 -0
- package/dist/types/cite/terminal.d.ts +15 -0
- package/dist/types/cite/ui.d.ts +52 -0
- package/dist/types/gallery/Gallery.d.ts +5 -0
- package/dist/types/gallery/cite.d.ts +1 -0
- package/dist/types/sdk/index.d.ts +3 -0
- package/dist/types/sdk/types.d.ts +37 -0
- package/package.json +5 -5
- package/dist/chunks/chunk-ZT6LTRMY.js +0 -220
package/dist/gallery.js
CHANGED
|
@@ -453,10 +453,13 @@ var STATES = [
|
|
|
453
453
|
{ label: "submitted", state: "submitted" },
|
|
454
454
|
{ label: "canceled", state: "canceled" },
|
|
455
455
|
{ label: "expired", state: "expired" },
|
|
456
|
+
{ label: "abandoned", state: "abandoned" },
|
|
456
457
|
{ label: "superseded", state: "superseded" },
|
|
457
458
|
{ label: "failed", state: "failed" },
|
|
458
|
-
{ label: "stale", state: "open", stale: true }
|
|
459
|
+
{ label: "stale", state: "open", stale: true },
|
|
460
|
+
{ label: "draft restored", state: "open", draft: true }
|
|
459
461
|
];
|
|
462
|
+
var DRAFT = { title: "Research, from a draft", count: 3, text: "Kept across a reload", picked: ["below"], other: "" };
|
|
460
463
|
var base = (s) => ({
|
|
461
464
|
state: s.state,
|
|
462
465
|
stale: s.stale,
|
|
@@ -466,7 +469,10 @@ var base = (s) => ({
|
|
|
466
469
|
receipt: s.state === "submitted" ? "Approved" : void 0,
|
|
467
470
|
expires: s.state === "open" ? "at 14:05" : void 0,
|
|
468
471
|
onRespond: () => {
|
|
469
|
-
}
|
|
472
|
+
},
|
|
473
|
+
draft: s.draft ? DRAFT : void 0,
|
|
474
|
+
onDraft: s.draft ? () => {
|
|
475
|
+
} : void 0
|
|
470
476
|
});
|
|
471
477
|
var FIELDS = [
|
|
472
478
|
{ key: "title", kind: "text", title: "Title", required: true },
|
|
@@ -608,6 +614,7 @@ function Cards() {
|
|
|
608
614
|
|
|
609
615
|
// ../../web/src/gallery/chat.tsx
|
|
610
616
|
import { Bot } from "lucide-react";
|
|
617
|
+
import { Badge } from "@/components/ui/badge";
|
|
611
618
|
import {
|
|
612
619
|
Conversation,
|
|
613
620
|
ConversationContent,
|
|
@@ -615,7 +622,7 @@ import {
|
|
|
615
622
|
ConversationScrollButton,
|
|
616
623
|
ConversationViewport
|
|
617
624
|
} from "@/components/ui/conversation";
|
|
618
|
-
import { Markdown } from "@/components/ui/markdown";
|
|
625
|
+
import { Markdown, MarkdownExtensions } from "@/components/ui/markdown";
|
|
619
626
|
import { Message, MessageContent, MessageNotice } from "@/components/ui/message";
|
|
620
627
|
import { Tool, ToolContent, ToolHeader, ToolInput, ToolOutput } from "@/components/ui/tool";
|
|
621
628
|
|
|
@@ -768,6 +775,56 @@ var ANSWER = `Here is the layout I set up:
|
|
|
768
775
|
| Browser | left |
|
|
769
776
|
| Drafts | right |`;
|
|
770
777
|
var STREAMING = "Opening the **Drafts window and `drafts_get";
|
|
778
|
+
var DOCUMENT = `# Release notes
|
|
779
|
+
|
|
780
|
+
A note with every kind of block. Jump to [the code](#code) or [the table](#a-table).
|
|
781
|
+
|
|
782
|
+
## Checklist
|
|
783
|
+
|
|
784
|
+
- [x] Parse GitHub-flavoured Markdown
|
|
785
|
+
- [x] ~~Plain text~~ rich text everywhere
|
|
786
|
+
- [ ] Ship it, see https://example.invalid/ship
|
|
787
|
+
|
|
788
|
+
## Code
|
|
789
|
+
|
|
790
|
+
\`\`\`go
|
|
791
|
+
// Hello says hello.
|
|
792
|
+
func Hello(name string) string {
|
|
793
|
+
return fmt.Sprintf("hello, %s", name) // 42
|
|
794
|
+
}
|
|
795
|
+
\`\`\`
|
|
796
|
+
|
|
797
|
+
\`\`\`ts
|
|
798
|
+
const n: number = await count("notes")
|
|
799
|
+
\`\`\`
|
|
800
|
+
|
|
801
|
+
\`\`\`bash
|
|
802
|
+
make desk && ./bin/desk serve --port 8199
|
|
803
|
+
\`\`\`
|
|
804
|
+
|
|
805
|
+
## A table
|
|
806
|
+
|
|
807
|
+
| Module | Shows | Size |
|
|
808
|
+
|:---|:---:|---:|
|
|
809
|
+
| Notes | the note | document |
|
|
810
|
+
| Chat | an answer | default |
|
|
811
|
+
|
|
812
|
+
> A quote, with \`inline code\` and **bold**.
|
|
813
|
+
|
|
814
|
+
---
|
|
815
|
+
|
|
816
|
+
1. First
|
|
817
|
+
2. Second
|
|
818
|
+
- nested`;
|
|
819
|
+
var CITED = "The plan is in the brief [1](#ref-1) and the review [2](#ref-2); see [the docs](https://example.invalid/).";
|
|
820
|
+
var citeChips = {
|
|
821
|
+
components: {
|
|
822
|
+
a: ({ node: _n, href, children }) => href?.startsWith("#ref-") ? /* @__PURE__ */ jsx6(Badge, { variant: "secondary", children }) : /* @__PURE__ */ jsx6("a", { className: "text-primary underline", href, target: "_blank", rel: "noreferrer noopener", children })
|
|
823
|
+
}
|
|
824
|
+
};
|
|
825
|
+
var quoteAsBadge = {
|
|
826
|
+
blockquote: ({ node: _n, children }) => /* @__PURE__ */ jsx6(Badge, { variant: "outline", children })
|
|
827
|
+
};
|
|
771
828
|
function Chat() {
|
|
772
829
|
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
773
830
|
/* @__PURE__ */ jsxs6(Section, { title: "Conversation", about: "A canned thread: the person, the agent with Markdown, tool rows, a notice.", children: [
|
|
@@ -805,6 +862,21 @@ function Chat() {
|
|
|
805
862
|
}
|
|
806
863
|
) })
|
|
807
864
|
] }),
|
|
865
|
+
/* @__PURE__ */ jsxs6(
|
|
866
|
+
Section,
|
|
867
|
+
{
|
|
868
|
+
title: "Markdown",
|
|
869
|
+
about: "The one renderer for text. GFM (tables, task lists, strikethrough, autolinks), coloured code with copy, heading ids; size document for a page. Extend with remarkPlugins, rehypePlugins and components (props, appended or merged over the defaults) or once for a page with the MarkdownExtensions context.",
|
|
870
|
+
children: [
|
|
871
|
+
/* @__PURE__ */ jsx6(Specimen, { label: 'Markdown size="document"', wide: true, children: /* @__PURE__ */ jsx6("div", { className: "w-full", children: /* @__PURE__ */ jsx6(Markdown, { size: "document", children: DOCUMENT }) }) }),
|
|
872
|
+
/* @__PURE__ */ jsx6(Specimen, { label: "Markdown (default size), the same text", children: /* @__PURE__ */ jsx6("div", { className: "w-full", children: /* @__PURE__ */ jsx6(Markdown, { children: DOCUMENT }) }) }),
|
|
873
|
+
/* @__PURE__ */ jsx6(Specimen, { label: "MarkdownExtensions: components.a draws #ref- links as chips", children: /* @__PURE__ */ jsxs6("div", { className: "flex w-full flex-col gap-2", children: [
|
|
874
|
+
/* @__PURE__ */ jsx6(MarkdownExtensions, { value: citeChips, children: /* @__PURE__ */ jsx6(Markdown, { children: CITED }) }),
|
|
875
|
+
/* @__PURE__ */ jsx6(Markdown, { components: quoteAsBadge, children: "> components prop: this quote is a Badge" })
|
|
876
|
+
] }) })
|
|
877
|
+
]
|
|
878
|
+
}
|
|
879
|
+
),
|
|
808
880
|
/* @__PURE__ */ jsx6(
|
|
809
881
|
Section,
|
|
810
882
|
{
|
|
@@ -817,10 +889,118 @@ function Chat() {
|
|
|
817
889
|
] });
|
|
818
890
|
}
|
|
819
891
|
|
|
892
|
+
// ../../web/src/gallery/cite.tsx
|
|
893
|
+
import { Brain, Copy, FileText, Link2, ListChecks, Maximize2, Zap } from "lucide-react";
|
|
894
|
+
import { Button as Button2 } from "@/components/ui/button";
|
|
895
|
+
import { CiteCard, CiteRecordHeader } from "@/components/ui/cite-card";
|
|
896
|
+
import { CiteChip } from "@/components/ui/cite-chip";
|
|
897
|
+
import { HoverCard, HoverCardContent, HoverCardTrigger } from "@/components/ui/hover-card";
|
|
898
|
+
import { Fragment as Fragment6, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
899
|
+
var TASK = {
|
|
900
|
+
kindLabel: "Torque task",
|
|
901
|
+
canonical: "CW-20261119-0064",
|
|
902
|
+
title: "Port Cite to Surface",
|
|
903
|
+
description: "References in any text become chips with a hover card and an open action, resolved by the module that owns them.",
|
|
904
|
+
status: { label: "in_progress", tone: "info" },
|
|
905
|
+
fields: [
|
|
906
|
+
{ label: "Priority", value: "P2" },
|
|
907
|
+
{ label: "Project", value: "PRJ-20260101-0001", mono: true },
|
|
908
|
+
{ label: "Tags", value: "surface, cite" }
|
|
909
|
+
],
|
|
910
|
+
updated: "updated 12m ago"
|
|
911
|
+
};
|
|
912
|
+
var actions = /* @__PURE__ */ jsxs7(Fragment6, { children: [
|
|
913
|
+
/* @__PURE__ */ jsxs7(Button2, { variant: "ghost", size: "xs", children: [
|
|
914
|
+
/* @__PURE__ */ jsx7(Copy, {}),
|
|
915
|
+
"Copy id"
|
|
916
|
+
] }),
|
|
917
|
+
/* @__PURE__ */ jsxs7(Button2, { variant: "outline", size: "xs", children: [
|
|
918
|
+
/* @__PURE__ */ jsx7(Maximize2, {}),
|
|
919
|
+
"Open"
|
|
920
|
+
] })
|
|
921
|
+
] });
|
|
922
|
+
function Cite() {
|
|
923
|
+
return /* @__PURE__ */ jsxs7(Fragment6, { children: [
|
|
924
|
+
/* @__PURE__ */ jsx7(Section, { title: "Cite chip", about: "A reference inline in text, in each state it is drawn in.", children: /* @__PURE__ */ jsx7(Specimen, { label: "states", wide: true, children: /* @__PURE__ */ jsxs7("p", { className: "text-sm leading-relaxed", children: [
|
|
925
|
+
"Found ",
|
|
926
|
+
/* @__PURE__ */ jsx7(CiteChip, { state: "found", icon: /* @__PURE__ */ jsx7(ListChecks, {}), label: "Task: Port Cite to Surface" }),
|
|
927
|
+
", loading",
|
|
928
|
+
" ",
|
|
929
|
+
/* @__PURE__ */ jsx7(CiteChip, { state: "loading", icon: /* @__PURE__ */ jsx7(Brain, {}), label: "01M7\u2026EN4Q" }),
|
|
930
|
+
", not found",
|
|
931
|
+
" ",
|
|
932
|
+
/* @__PURE__ */ jsx7(CiteChip, { state: "not-found", icon: /* @__PURE__ */ jsx7(ListChecks, {}), label: "CW-20990101-0001" }),
|
|
933
|
+
", failed",
|
|
934
|
+
" ",
|
|
935
|
+
/* @__PURE__ */ jsx7(CiteChip, { state: "error", icon: /* @__PURE__ */ jsx7(Zap, {}), label: "fragment abababab" }),
|
|
936
|
+
", not resolved here",
|
|
937
|
+
" ",
|
|
938
|
+
/* @__PURE__ */ jsx7(CiteChip, { state: "unsupported", icon: /* @__PURE__ */ jsx7(Link2, {}), label: "example.com/docs" }),
|
|
939
|
+
" and from code",
|
|
940
|
+
" ",
|
|
941
|
+
/* @__PURE__ */ jsx7(CiteChip, { state: "found", mono: true, icon: /* @__PURE__ */ jsx7(FileText, {}), label: "main.go:42" }),
|
|
942
|
+
"."
|
|
943
|
+
] }) }) }),
|
|
944
|
+
/* @__PURE__ */ jsxs7(Section, { title: "Cite card", about: "What a reference stands for; one card for every kind.", children: [
|
|
945
|
+
/* @__PURE__ */ jsx7(Specimen, { label: "ready", children: /* @__PURE__ */ jsx7("div", { className: "w-92 rounded-lg p-2.5 ring-1 ring-foreground/10", children: /* @__PURE__ */ jsx7(CiteCard, { icon: /* @__PURE__ */ jsx7(ListChecks, {}), ...TASK, actions }) }) }),
|
|
946
|
+
/* @__PURE__ */ jsx7(Specimen, { label: "loading, not found, error", children: /* @__PURE__ */ jsxs7("div", { className: "flex w-92 flex-col gap-3", children: [
|
|
947
|
+
/* @__PURE__ */ jsx7("div", { className: "rounded-lg p-2.5 ring-1 ring-foreground/10", children: /* @__PURE__ */ jsx7(
|
|
948
|
+
CiteCard,
|
|
949
|
+
{
|
|
950
|
+
phase: "loading",
|
|
951
|
+
icon: /* @__PURE__ */ jsx7(Brain, {}),
|
|
952
|
+
kindLabel: "Tesseract item",
|
|
953
|
+
canonical: "01M7T1BJ53BCQWTPC844XEEN4Q",
|
|
954
|
+
title: "01M7\u2026EN4Q"
|
|
955
|
+
}
|
|
956
|
+
) }),
|
|
957
|
+
/* @__PURE__ */ jsx7("div", { className: "rounded-lg p-2.5 ring-1 ring-foreground/10", children: /* @__PURE__ */ jsx7(
|
|
958
|
+
CiteCard,
|
|
959
|
+
{
|
|
960
|
+
phase: "not-found",
|
|
961
|
+
icon: /* @__PURE__ */ jsx7(ListChecks, {}),
|
|
962
|
+
kindLabel: "Torque task",
|
|
963
|
+
canonical: "CW-20990101-0001",
|
|
964
|
+
title: "Not found",
|
|
965
|
+
note: "It may have been deleted, or it may not be readable."
|
|
966
|
+
}
|
|
967
|
+
) }),
|
|
968
|
+
/* @__PURE__ */ jsx7("div", { className: "rounded-lg p-2.5 ring-1 ring-foreground/10", children: /* @__PURE__ */ jsx7(
|
|
969
|
+
CiteCard,
|
|
970
|
+
{
|
|
971
|
+
phase: "error",
|
|
972
|
+
icon: /* @__PURE__ */ jsx7(Zap, {}),
|
|
973
|
+
kindLabel: "Fragment",
|
|
974
|
+
canonical: "abababab\u2026",
|
|
975
|
+
title: "Could not be looked up",
|
|
976
|
+
error: "the Fragments Engine could not be reached"
|
|
977
|
+
}
|
|
978
|
+
) })
|
|
979
|
+
] }) })
|
|
980
|
+
] }),
|
|
981
|
+
/* @__PURE__ */ jsx7(Section, { title: "Cite record header", about: "The head of a record read whole, in the record window.", children: /* @__PURE__ */ jsx7(Specimen, { label: "a task", wide: true, children: /* @__PURE__ */ jsx7(CiteRecordHeader, { icon: /* @__PURE__ */ jsx7(ListChecks, {}), ...TASK, actions }) }) }),
|
|
982
|
+
/* @__PURE__ */ jsx7(Section, { title: "Hover card", about: "A card shown while the pointer rests on its trigger.", children: /* @__PURE__ */ jsx7(Specimen, { label: "a chip with its card", children: /* @__PURE__ */ jsxs7("p", { className: "text-sm", children: [
|
|
983
|
+
"Hover",
|
|
984
|
+
" ",
|
|
985
|
+
/* @__PURE__ */ jsxs7(HoverCard, { children: [
|
|
986
|
+
/* @__PURE__ */ jsx7(
|
|
987
|
+
HoverCardTrigger,
|
|
988
|
+
{
|
|
989
|
+
render: /* @__PURE__ */ jsx7(CiteChip, { state: "found", icon: /* @__PURE__ */ jsx7(ListChecks, {}), label: "Task: Port Cite to Surface" })
|
|
990
|
+
}
|
|
991
|
+
),
|
|
992
|
+
/* @__PURE__ */ jsx7(HoverCardContent, { className: "w-92", align: "start", children: /* @__PURE__ */ jsx7(CiteCard, { icon: /* @__PURE__ */ jsx7(ListChecks, {}), ...TASK, actions }) })
|
|
993
|
+
] }),
|
|
994
|
+
" ",
|
|
995
|
+
"for its card."
|
|
996
|
+
] }) }) })
|
|
997
|
+
] });
|
|
998
|
+
}
|
|
999
|
+
|
|
820
1000
|
// ../../web/src/gallery/controls.tsx
|
|
821
1001
|
import { Bold, Italic, Mail, Plus, Search, Underline } from "lucide-react";
|
|
822
|
-
import { Badge } from "@/components/ui/badge";
|
|
823
|
-
import { Button as
|
|
1002
|
+
import { Badge as Badge2 } from "@/components/ui/badge";
|
|
1003
|
+
import { Button as Button3 } from "@/components/ui/button";
|
|
824
1004
|
import { Checkbox } from "@/components/ui/checkbox";
|
|
825
1005
|
import { Field, FieldDescription, FieldError, FieldLabel } from "@/components/ui/field";
|
|
826
1006
|
import { Input } from "@/components/ui/input";
|
|
@@ -834,7 +1014,7 @@ import { TextEditor } from "@/components/ui/text-editor";
|
|
|
834
1014
|
import { Textarea } from "@/components/ui/textarea";
|
|
835
1015
|
import { Toggle } from "@/components/ui/toggle";
|
|
836
1016
|
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
|
|
837
|
-
import { Fragment as
|
|
1017
|
+
import { Fragment as Fragment7, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
838
1018
|
var VARIANTS = ["default", "outline", "secondary", "ghost", "destructive", "link"];
|
|
839
1019
|
var SIZES = ["xs", "sm", "default", "lg"];
|
|
840
1020
|
var ICON_SIZES = ["icon-xs", "icon-sm", "icon", "icon-lg"];
|
|
@@ -844,113 +1024,113 @@ var FRUIT = [
|
|
|
844
1024
|
{ value: "plum", label: "Plum" }
|
|
845
1025
|
];
|
|
846
1026
|
function Controls() {
|
|
847
|
-
return /* @__PURE__ */
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
VARIANTS.map((v) => /* @__PURE__ */
|
|
850
|
-
SIZES.map((s) => /* @__PURE__ */
|
|
851
|
-
/* @__PURE__ */
|
|
1027
|
+
return /* @__PURE__ */ jsxs8(Fragment7, { children: [
|
|
1028
|
+
/* @__PURE__ */ jsxs8(Section, { title: "Button", about: "variant \xD7 size; icon sizes; disabled.", children: [
|
|
1029
|
+
VARIANTS.map((v) => /* @__PURE__ */ jsxs8(Specimen, { label: `variant="${v}"`, children: [
|
|
1030
|
+
SIZES.map((s) => /* @__PURE__ */ jsx8(Button3, { variant: v, size: s, children: s }, s)),
|
|
1031
|
+
/* @__PURE__ */ jsx8(Button3, { variant: v, disabled: true, children: "disabled" })
|
|
852
1032
|
] }, v)),
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
-
ICON_SIZES.map((s) => /* @__PURE__ */
|
|
855
|
-
/* @__PURE__ */
|
|
856
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "icon sizes, with an icon and text", children: [
|
|
1034
|
+
ICON_SIZES.map((s) => /* @__PURE__ */ jsx8(Button3, { variant: "outline", size: s, "aria-label": s, children: /* @__PURE__ */ jsx8(Plus, {}) }, s)),
|
|
1035
|
+
/* @__PURE__ */ jsxs8(Button3, { children: [
|
|
1036
|
+
/* @__PURE__ */ jsx8(Mail, {}),
|
|
857
1037
|
" With icon"
|
|
858
1038
|
] })
|
|
859
1039
|
] })
|
|
860
1040
|
] }),
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
-
/* @__PURE__ */
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
-
/* @__PURE__ */
|
|
1041
|
+
/* @__PURE__ */ jsxs8(Section, { title: "Badge and Kbd", children: [
|
|
1042
|
+
/* @__PURE__ */ jsx8(Specimen, { label: "Badge variants", children: ["default", "secondary", "outline", "destructive", "ghost", "link"].map((v) => /* @__PURE__ */ jsx8(Badge2, { variant: v, children: v }, v)) }),
|
|
1043
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "Kbd", children: [
|
|
1044
|
+
/* @__PURE__ */ jsx8(Kbd, { children: "\u2318K" }),
|
|
1045
|
+
/* @__PURE__ */ jsxs8(KbdGroup, { children: [
|
|
1046
|
+
/* @__PURE__ */ jsx8(Kbd, { children: "Shift" }),
|
|
1047
|
+
/* @__PURE__ */ jsx8(Kbd, { children: "Enter" })
|
|
868
1048
|
] })
|
|
869
1049
|
] })
|
|
870
1050
|
] }),
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
/* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */
|
|
1051
|
+
/* @__PURE__ */ jsxs8(Section, { title: "Text entry", children: [
|
|
1052
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "Input: default, disabled, invalid", children: [
|
|
1053
|
+
/* @__PURE__ */ jsx8(Input, { placeholder: "Placeholder", "aria-label": "default" }),
|
|
1054
|
+
/* @__PURE__ */ jsx8(Input, { placeholder: "Disabled", disabled: true, "aria-label": "disabled" }),
|
|
1055
|
+
/* @__PURE__ */ jsx8(Input, { defaultValue: "Not an email", "aria-invalid": true, "aria-label": "invalid" })
|
|
876
1056
|
] }),
|
|
877
|
-
/* @__PURE__ */
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ jsx8(Specimen, { label: "InputGroup", children: /* @__PURE__ */ jsxs8(InputGroup, { children: [
|
|
1058
|
+
/* @__PURE__ */ jsx8(InputGroupAddon2, { children: /* @__PURE__ */ jsx8(Search, {}) }),
|
|
1059
|
+
/* @__PURE__ */ jsx8(InputGroupInput, { placeholder: "Search", "aria-label": "Search" }),
|
|
1060
|
+
/* @__PURE__ */ jsx8(InputGroupAddon2, { align: "inline-end", children: /* @__PURE__ */ jsx8(InputGroupButton2, { children: "Go" }) })
|
|
881
1061
|
] }) }),
|
|
882
|
-
/* @__PURE__ */
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
885
|
-
/* @__PURE__ */
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
/* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ jsx8(Specimen, { label: "Textarea", children: /* @__PURE__ */ jsx8(Textarea, { placeholder: "Write something", "aria-label": "Textarea" }) }),
|
|
1063
|
+
/* @__PURE__ */ jsx8(Specimen, { label: "TextEditor (a document's source)", children: /* @__PURE__ */ jsx8("div", { className: "h-24 w-full rounded-md border border-border", children: /* @__PURE__ */ jsx8(TextEditor, { "aria-label": "Source", defaultValue: "# A heading\n\nSome **Markdown**, in the monospace face." }) }) }),
|
|
1064
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "Field: label, description, error", wide: true, children: [
|
|
1065
|
+
/* @__PURE__ */ jsxs8(Field, { children: [
|
|
1066
|
+
/* @__PURE__ */ jsx8(FieldLabel, { htmlFor: "g-name", children: "Name" }),
|
|
1067
|
+
/* @__PURE__ */ jsx8(Input, { id: "g-name", placeholder: "Ada" }),
|
|
1068
|
+
/* @__PURE__ */ jsx8(FieldDescription, { children: "What the agent calls you." })
|
|
889
1069
|
] }),
|
|
890
|
-
/* @__PURE__ */
|
|
891
|
-
/* @__PURE__ */
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
/* @__PURE__ */
|
|
1070
|
+
/* @__PURE__ */ jsxs8(Field, { "data-invalid": "true", children: [
|
|
1071
|
+
/* @__PURE__ */ jsx8(FieldLabel, { htmlFor: "g-mail", children: "Email" }),
|
|
1072
|
+
/* @__PURE__ */ jsx8(Input, { id: "g-mail", defaultValue: "ada@", "aria-invalid": true }),
|
|
1073
|
+
/* @__PURE__ */ jsx8(FieldError, { children: "That is not a whole address." })
|
|
894
1074
|
] })
|
|
895
1075
|
] })
|
|
896
1076
|
] }),
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
/* @__PURE__ */
|
|
899
|
-
/* @__PURE__ */
|
|
900
|
-
/* @__PURE__ */
|
|
901
|
-
/* @__PURE__ */
|
|
1077
|
+
/* @__PURE__ */ jsxs8(Section, { title: "Choices", children: [
|
|
1078
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "Select: default, sm, disabled", children: [
|
|
1079
|
+
/* @__PURE__ */ jsxs8(Select, { defaultValue: "pear", items: FRUIT, children: [
|
|
1080
|
+
/* @__PURE__ */ jsx8(SelectTrigger, { "aria-label": "Fruit", children: /* @__PURE__ */ jsx8(SelectValue, {}) }),
|
|
1081
|
+
/* @__PURE__ */ jsx8(SelectContent, { children: FRUIT.map((f) => /* @__PURE__ */ jsx8(SelectItem, { value: f.value, children: f.label }, f.value)) })
|
|
902
1082
|
] }),
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
/* @__PURE__ */
|
|
905
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ jsxs8(Select, { defaultValue: "plum", items: FRUIT, children: [
|
|
1084
|
+
/* @__PURE__ */ jsx8(SelectTrigger, { size: "sm", "aria-label": "Fruit, small", children: /* @__PURE__ */ jsx8(SelectValue, {}) }),
|
|
1085
|
+
/* @__PURE__ */ jsx8(SelectContent, { children: FRUIT.map((f) => /* @__PURE__ */ jsx8(SelectItem, { value: f.value, children: f.label }, f.value)) })
|
|
906
1086
|
] }),
|
|
907
|
-
/* @__PURE__ */
|
|
908
|
-
/* @__PURE__ */
|
|
909
|
-
/* @__PURE__ */
|
|
1087
|
+
/* @__PURE__ */ jsxs8(Select, { disabled: true, items: FRUIT, children: [
|
|
1088
|
+
/* @__PURE__ */ jsx8(SelectTrigger, { "aria-label": "Fruit, disabled", children: /* @__PURE__ */ jsx8(SelectValue, { placeholder: "Disabled" }) }),
|
|
1089
|
+
/* @__PURE__ */ jsx8(SelectContent, {})
|
|
910
1090
|
] })
|
|
911
1091
|
] }),
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
914
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "Checkbox and Switch: off, on, disabled", children: [
|
|
1093
|
+
/* @__PURE__ */ jsxs8(Label2, { className: "gap-2", children: [
|
|
1094
|
+
/* @__PURE__ */ jsx8(Checkbox, {}),
|
|
915
1095
|
" off"
|
|
916
1096
|
] }),
|
|
917
|
-
/* @__PURE__ */
|
|
918
|
-
/* @__PURE__ */
|
|
1097
|
+
/* @__PURE__ */ jsxs8(Label2, { className: "gap-2", children: [
|
|
1098
|
+
/* @__PURE__ */ jsx8(Checkbox, { defaultChecked: true }),
|
|
919
1099
|
" on"
|
|
920
1100
|
] }),
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ jsxs8(Label2, { className: "gap-2", children: [
|
|
1102
|
+
/* @__PURE__ */ jsx8(Checkbox, { disabled: true }),
|
|
923
1103
|
" disabled"
|
|
924
1104
|
] }),
|
|
925
|
-
/* @__PURE__ */
|
|
926
|
-
/* @__PURE__ */
|
|
927
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ jsx8(Switch2, { "aria-label": "off" }),
|
|
1106
|
+
/* @__PURE__ */ jsx8(Switch2, { defaultChecked: true, "aria-label": "on" }),
|
|
1107
|
+
/* @__PURE__ */ jsx8(Switch2, { disabled: true, "aria-label": "disabled" })
|
|
928
1108
|
] }),
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
/* @__PURE__ */
|
|
931
|
-
/* @__PURE__ */
|
|
932
|
-
/* @__PURE__ */
|
|
933
|
-
/* @__PURE__ */
|
|
934
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "Toggle and ToggleGroup (default, outline, sm)", children: [
|
|
1110
|
+
/* @__PURE__ */ jsx8(Toggle, { "aria-label": "Bold", defaultPressed: true, children: /* @__PURE__ */ jsx8(Bold, {}) }),
|
|
1111
|
+
/* @__PURE__ */ jsxs8(ToggleGroup, { defaultValue: ["bold"], "aria-label": "Style", children: [
|
|
1112
|
+
/* @__PURE__ */ jsx8(ToggleGroupItem, { value: "bold", "aria-label": "Bold", children: /* @__PURE__ */ jsx8(Bold, {}) }),
|
|
1113
|
+
/* @__PURE__ */ jsx8(ToggleGroupItem, { value: "italic", "aria-label": "Italic", children: /* @__PURE__ */ jsx8(Italic, {}) }),
|
|
1114
|
+
/* @__PURE__ */ jsx8(ToggleGroupItem, { value: "underline", "aria-label": "Underline", children: /* @__PURE__ */ jsx8(Underline, {}) })
|
|
935
1115
|
] }),
|
|
936
|
-
/* @__PURE__ */
|
|
937
|
-
/* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
1116
|
+
/* @__PURE__ */ jsxs8(ToggleGroup, { variant: "outline", size: "sm", spacing: 0, defaultValue: ["review"], "aria-label": "Mode", children: [
|
|
1117
|
+
/* @__PURE__ */ jsx8(ToggleGroupItem, { value: "review", children: "Review" }),
|
|
1118
|
+
/* @__PURE__ */ jsx8(ToggleGroupItem, { value: "edit", children: "Edit" }),
|
|
1119
|
+
/* @__PURE__ */ jsx8(ToggleGroupItem, { value: "compare", children: "Compare" })
|
|
940
1120
|
] })
|
|
941
1121
|
] }),
|
|
942
|
-
/* @__PURE__ */
|
|
943
|
-
/* @__PURE__ */
|
|
944
|
-
/* @__PURE__ */
|
|
945
|
-
/* @__PURE__ */
|
|
946
|
-
/* @__PURE__ */
|
|
947
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ jsxs8(Specimen, { label: "Tabs: default and line", children: [
|
|
1123
|
+
/* @__PURE__ */ jsxs8(Tabs, { defaultValue: "one", children: [
|
|
1124
|
+
/* @__PURE__ */ jsxs8(TabsList, { children: [
|
|
1125
|
+
/* @__PURE__ */ jsx8(TabsTrigger, { value: "one", children: "One" }),
|
|
1126
|
+
/* @__PURE__ */ jsx8(TabsTrigger, { value: "two", children: "Two" }),
|
|
1127
|
+
/* @__PURE__ */ jsx8(TabsTrigger, { value: "three", disabled: true, children: "Three" })
|
|
948
1128
|
] }),
|
|
949
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ jsx8(TabsContent, { value: "one", className: "pt-2 text-sm text-muted-foreground", children: "The first tab's content." })
|
|
950
1130
|
] }),
|
|
951
|
-
/* @__PURE__ */
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
1131
|
+
/* @__PURE__ */ jsx8(Tabs, { defaultValue: "two", children: /* @__PURE__ */ jsxs8(TabsList, { variant: "line", children: [
|
|
1132
|
+
/* @__PURE__ */ jsx8(TabsTrigger, { value: "one", children: "One" }),
|
|
1133
|
+
/* @__PURE__ */ jsx8(TabsTrigger, { value: "two", children: "Two" })
|
|
954
1134
|
] }) })
|
|
955
1135
|
] })
|
|
956
1136
|
] })
|
|
@@ -958,7 +1138,7 @@ function Controls() {
|
|
|
958
1138
|
}
|
|
959
1139
|
|
|
960
1140
|
// ../../web/src/gallery/display.tsx
|
|
961
|
-
import { ChevronRight, FileText, Folder, Inbox } from "lucide-react";
|
|
1141
|
+
import { ChevronRight, FileText as FileText2, Folder, Inbox } from "lucide-react";
|
|
962
1142
|
import { Avatar, AvatarFallback, AvatarGroup, AvatarGroupCount } from "@/components/ui/avatar";
|
|
963
1143
|
import {
|
|
964
1144
|
Breadcrumb,
|
|
@@ -968,7 +1148,7 @@ import {
|
|
|
968
1148
|
BreadcrumbPage,
|
|
969
1149
|
BreadcrumbSeparator
|
|
970
1150
|
} from "@/components/ui/breadcrumb";
|
|
971
|
-
import { Button as
|
|
1151
|
+
import { Button as Button4 } from "@/components/ui/button";
|
|
972
1152
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
|
|
973
1153
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
|
|
974
1154
|
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "@/components/ui/empty";
|
|
@@ -980,106 +1160,106 @@ import { Separator } from "@/components/ui/separator";
|
|
|
980
1160
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
981
1161
|
import { Spinner } from "@/components/ui/spinner";
|
|
982
1162
|
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
|
|
983
|
-
import { Fragment as
|
|
1163
|
+
import { Fragment as Fragment8, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
984
1164
|
var ROWS = [
|
|
985
1165
|
{ name: "notes", kind: "module", state: "running" },
|
|
986
1166
|
{ name: "drafts", kind: "module", state: "running" },
|
|
987
1167
|
{ name: "builder", kind: "module", state: "stopped" }
|
|
988
1168
|
];
|
|
989
1169
|
function Display() {
|
|
990
|
-
return /* @__PURE__ */
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
["default", "outline", "muted"].map((v) => /* @__PURE__ */
|
|
993
|
-
/* @__PURE__ */
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
1170
|
+
return /* @__PURE__ */ jsxs9(Fragment8, { children: [
|
|
1171
|
+
/* @__PURE__ */ jsxs9(Section, { title: "Rows", about: "Item in each variant and size; a Table.", children: [
|
|
1172
|
+
["default", "outline", "muted"].map((v) => /* @__PURE__ */ jsx9(Specimen, { label: `Item variant="${v}"`, children: /* @__PURE__ */ jsxs9(Item, { variant: v, children: [
|
|
1173
|
+
/* @__PURE__ */ jsx9(ItemMedia, { variant: "icon", children: /* @__PURE__ */ jsx9(FileText2, {}) }),
|
|
1174
|
+
/* @__PURE__ */ jsxs9(ItemContent, { children: [
|
|
1175
|
+
/* @__PURE__ */ jsx9(ItemTitle, { children: "Launch notes" }),
|
|
1176
|
+
/* @__PURE__ */ jsx9(ItemDescription, { children: "markdown \xB7 r2 \xB7 7 lines" })
|
|
997
1177
|
] }),
|
|
998
|
-
/* @__PURE__ */
|
|
1178
|
+
/* @__PURE__ */ jsx9(ItemActions, { children: /* @__PURE__ */ jsx9(Button4, { variant: "ghost", size: "icon-sm", "aria-label": "Open", children: /* @__PURE__ */ jsx9(ChevronRight, {}) }) })
|
|
999
1179
|
] }) }, v)),
|
|
1000
|
-
/* @__PURE__ */
|
|
1001
|
-
/* @__PURE__ */
|
|
1002
|
-
/* @__PURE__ */
|
|
1180
|
+
/* @__PURE__ */ jsx9(Specimen, { label: 'Item size="sm" and "xs"', children: /* @__PURE__ */ jsxs9("div", { className: "flex w-full flex-col gap-1", children: [
|
|
1181
|
+
/* @__PURE__ */ jsx9(Item, { size: "sm", variant: "outline", children: /* @__PURE__ */ jsx9(ItemContent, { children: /* @__PURE__ */ jsx9(ItemTitle, { children: "Small" }) }) }),
|
|
1182
|
+
/* @__PURE__ */ jsx9(Item, { size: "xs", variant: "outline", children: /* @__PURE__ */ jsx9(ItemContent, { children: /* @__PURE__ */ jsx9(ItemTitle, { children: "Extra small" }) }) })
|
|
1003
1183
|
] }) }),
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
-
/* @__PURE__ */
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
/* @__PURE__ */
|
|
1008
|
-
/* @__PURE__ */
|
|
1009
|
-
/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ jsx9(Specimen, { label: "Table", wide: true, children: /* @__PURE__ */ jsxs9(Table, { children: [
|
|
1185
|
+
/* @__PURE__ */ jsx9(TableCaption, { children: "The modules of this app." }),
|
|
1186
|
+
/* @__PURE__ */ jsx9(TableHeader, { children: /* @__PURE__ */ jsxs9(TableRow, { children: [
|
|
1187
|
+
/* @__PURE__ */ jsx9(TableHead, { children: "Name" }),
|
|
1188
|
+
/* @__PURE__ */ jsx9(TableHead, { children: "Kind" }),
|
|
1189
|
+
/* @__PURE__ */ jsx9(TableHead, { className: "text-right", children: "State" })
|
|
1010
1190
|
] }) }),
|
|
1011
|
-
/* @__PURE__ */
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
/* @__PURE__ */
|
|
1014
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ jsx9(TableBody, { children: ROWS.map((r) => /* @__PURE__ */ jsxs9(TableRow, { children: [
|
|
1192
|
+
/* @__PURE__ */ jsx9(TableCell, { className: "font-medium", children: r.name }),
|
|
1193
|
+
/* @__PURE__ */ jsx9(TableCell, { children: r.kind }),
|
|
1194
|
+
/* @__PURE__ */ jsx9(TableCell, { className: "text-right", children: r.state })
|
|
1015
1195
|
] }, r.name)) })
|
|
1016
1196
|
] }) })
|
|
1017
1197
|
] }),
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
-
/* @__PURE__ */
|
|
1198
|
+
/* @__PURE__ */ jsxs9(Section, { title: "Regions", children: [
|
|
1199
|
+
/* @__PURE__ */ jsxs9(Specimen, { label: "Card: default and sm", children: [
|
|
1200
|
+
/* @__PURE__ */ jsxs9(Card, { className: "w-full", children: [
|
|
1201
|
+
/* @__PURE__ */ jsxs9(CardHeader, { children: [
|
|
1202
|
+
/* @__PURE__ */ jsx9(CardTitle, { children: "A card" }),
|
|
1203
|
+
/* @__PURE__ */ jsx9(CardDescription, { children: "With a header, content and a footer." }),
|
|
1204
|
+
/* @__PURE__ */ jsx9(CardAction, { children: /* @__PURE__ */ jsx9(Button4, { variant: "outline", size: "xs", children: "Action" }) })
|
|
1025
1205
|
] }),
|
|
1026
|
-
/* @__PURE__ */
|
|
1027
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ jsx9(CardContent, { className: "text-sm", children: "The body of the card." }),
|
|
1207
|
+
/* @__PURE__ */ jsx9(CardFooter, { children: /* @__PURE__ */ jsx9(Button4, { size: "sm", children: "Save" }) })
|
|
1028
1208
|
] }),
|
|
1029
|
-
/* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
/* @__PURE__ */
|
|
1209
|
+
/* @__PURE__ */ jsx9(Card, { size: "sm", className: "w-full", children: /* @__PURE__ */ jsxs9(CardHeader, { children: [
|
|
1210
|
+
/* @__PURE__ */ jsx9(CardTitle, { children: "Small" }),
|
|
1211
|
+
/* @__PURE__ */ jsx9(CardDescription, { children: 'size="sm"' })
|
|
1032
1212
|
] }) })
|
|
1033
1213
|
] }),
|
|
1034
|
-
/* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1214
|
+
/* @__PURE__ */ jsx9(Specimen, { label: "Empty", children: /* @__PURE__ */ jsxs9(Empty, { className: "border border-dashed border-border", children: [
|
|
1215
|
+
/* @__PURE__ */ jsxs9(EmptyHeader, { children: [
|
|
1216
|
+
/* @__PURE__ */ jsx9(EmptyMedia, { variant: "icon", children: /* @__PURE__ */ jsx9(Inbox, {}) }),
|
|
1217
|
+
/* @__PURE__ */ jsx9(EmptyTitle, { children: "Nothing here yet" }),
|
|
1218
|
+
/* @__PURE__ */ jsx9(EmptyDescription, { children: "Things you add show up here." })
|
|
1039
1219
|
] }),
|
|
1040
|
-
/* @__PURE__ */
|
|
1220
|
+
/* @__PURE__ */ jsx9(EmptyContent, { children: /* @__PURE__ */ jsx9(Button4, { size: "sm", children: "Add one" }) })
|
|
1041
1221
|
] }) }),
|
|
1042
|
-
/* @__PURE__ */
|
|
1043
|
-
/* @__PURE__ */
|
|
1044
|
-
/* @__PURE__ */
|
|
1045
|
-
/* @__PURE__ */
|
|
1046
|
-
/* @__PURE__ */
|
|
1222
|
+
/* @__PURE__ */ jsx9(Specimen, { label: "ScrollArea", children: /* @__PURE__ */ jsx9(ScrollArea, { className: "h-28 w-full rounded-md border border-border", children: /* @__PURE__ */ jsx9("div", { className: "flex flex-col gap-1 p-2 text-sm", children: Array.from({ length: 12 }, (_, i) => `Line ${i + 1}`).map((l) => /* @__PURE__ */ jsx9("span", { children: l }, l)) }) }) }),
|
|
1223
|
+
/* @__PURE__ */ jsx9(Specimen, { label: "ResizablePanelGroup", children: /* @__PURE__ */ jsx9("div", { className: "h-28 w-full rounded-md border border-border", children: /* @__PURE__ */ jsxs9(ResizablePanelGroup, { orientation: "horizontal", children: [
|
|
1224
|
+
/* @__PURE__ */ jsx9(ResizablePanel, { defaultSize: "40", className: "grid place-items-center text-sm", children: "One" }),
|
|
1225
|
+
/* @__PURE__ */ jsx9(ResizableHandle, { withHandle: true }),
|
|
1226
|
+
/* @__PURE__ */ jsx9(ResizablePanel, { className: "grid place-items-center text-sm", children: "Two" })
|
|
1047
1227
|
] }) }) }),
|
|
1048
|
-
/* @__PURE__ */
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
/* @__PURE__ */
|
|
1228
|
+
/* @__PURE__ */ jsx9(Specimen, { label: "Collapsible (open)", children: /* @__PURE__ */ jsxs9(Collapsible, { defaultOpen: true, className: "w-full", children: [
|
|
1229
|
+
/* @__PURE__ */ jsxs9(CollapsibleTrigger, { render: /* @__PURE__ */ jsx9(Button4, { variant: "ghost", size: "sm" }), children: [
|
|
1230
|
+
/* @__PURE__ */ jsx9(Folder, {}),
|
|
1051
1231
|
" Details"
|
|
1052
1232
|
] }),
|
|
1053
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ jsx9(CollapsibleContent, { className: "px-2 pt-1 text-sm text-muted-foreground", children: "What was folded away." })
|
|
1054
1234
|
] }) }),
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
/* @__PURE__ */
|
|
1235
|
+
/* @__PURE__ */ jsxs9(Specimen, { label: "Breadcrumb and Separator", children: [
|
|
1236
|
+
/* @__PURE__ */ jsx9(Breadcrumb, { children: /* @__PURE__ */ jsxs9(BreadcrumbList, { children: [
|
|
1237
|
+
/* @__PURE__ */ jsx9(BreadcrumbItem, { children: /* @__PURE__ */ jsx9(BreadcrumbLink, { href: "#gallery", children: "Home" }) }),
|
|
1238
|
+
/* @__PURE__ */ jsx9(BreadcrumbSeparator, {}),
|
|
1239
|
+
/* @__PURE__ */ jsx9(BreadcrumbItem, { children: /* @__PURE__ */ jsx9(BreadcrumbLink, { href: "#gallery", children: "Notes" }) }),
|
|
1240
|
+
/* @__PURE__ */ jsx9(BreadcrumbSeparator, {}),
|
|
1241
|
+
/* @__PURE__ */ jsx9(BreadcrumbItem, { children: /* @__PURE__ */ jsx9(BreadcrumbPage, { children: "Launch" }) })
|
|
1062
1242
|
] }) }),
|
|
1063
|
-
/* @__PURE__ */
|
|
1243
|
+
/* @__PURE__ */ jsx9(Separator, {})
|
|
1064
1244
|
] })
|
|
1065
1245
|
] }),
|
|
1066
|
-
/* @__PURE__ */
|
|
1067
|
-
/* @__PURE__ */
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ jsxs9(Section, { title: "Status", children: [
|
|
1247
|
+
/* @__PURE__ */ jsxs9(Specimen, { label: "Spinner, Skeleton, Progress", children: [
|
|
1248
|
+
/* @__PURE__ */ jsx9(Spinner, {}),
|
|
1249
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex w-40 flex-col gap-1.5", children: [
|
|
1250
|
+
/* @__PURE__ */ jsx9(Skeleton, { className: "h-3 w-full" }),
|
|
1251
|
+
/* @__PURE__ */ jsx9(Skeleton, { className: "h-3 w-2/3" })
|
|
1072
1252
|
] }),
|
|
1073
|
-
/* @__PURE__ */
|
|
1253
|
+
/* @__PURE__ */ jsx9(Progress, { value: 62, className: "w-40", "aria-label": "62 percent" })
|
|
1074
1254
|
] }),
|
|
1075
|
-
/* @__PURE__ */
|
|
1076
|
-
/* @__PURE__ */
|
|
1077
|
-
/* @__PURE__ */
|
|
1078
|
-
/* @__PURE__ */
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
/* @__PURE__ */
|
|
1255
|
+
/* @__PURE__ */ jsxs9(Specimen, { label: "Avatar: sizes and a group", children: [
|
|
1256
|
+
/* @__PURE__ */ jsx9(Avatar, { size: "sm", children: /* @__PURE__ */ jsx9(AvatarFallback, { children: "AL" }) }),
|
|
1257
|
+
/* @__PURE__ */ jsx9(Avatar, { children: /* @__PURE__ */ jsx9(AvatarFallback, { children: "AL" }) }),
|
|
1258
|
+
/* @__PURE__ */ jsx9(Avatar, { size: "lg", children: /* @__PURE__ */ jsx9(AvatarFallback, { children: "AL" }) }),
|
|
1259
|
+
/* @__PURE__ */ jsxs9(AvatarGroup, { children: [
|
|
1260
|
+
/* @__PURE__ */ jsx9(Avatar, { children: /* @__PURE__ */ jsx9(AvatarFallback, { children: "A" }) }),
|
|
1261
|
+
/* @__PURE__ */ jsx9(Avatar, { children: /* @__PURE__ */ jsx9(AvatarFallback, { children: "B" }) }),
|
|
1262
|
+
/* @__PURE__ */ jsx9(AvatarGroupCount, { children: "+3" })
|
|
1083
1263
|
] })
|
|
1084
1264
|
] })
|
|
1085
1265
|
] })
|
|
@@ -1088,7 +1268,7 @@ function Display() {
|
|
|
1088
1268
|
|
|
1089
1269
|
// ../../web/src/gallery/genui.tsx
|
|
1090
1270
|
import { GenuiSurface } from "@/components/ui/genui-surface";
|
|
1091
|
-
import { Fragment as
|
|
1271
|
+
import { Fragment as Fragment9, jsx as jsx10 } from "react/jsx-runtime";
|
|
1092
1272
|
var PATTERNS = [
|
|
1093
1273
|
{
|
|
1094
1274
|
name: "approval",
|
|
@@ -1140,7 +1320,7 @@ var PHASES = [
|
|
|
1140
1320
|
{ phase: "stale" }
|
|
1141
1321
|
];
|
|
1142
1322
|
function Genui() {
|
|
1143
|
-
return /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ jsx10(Fragment9, { children: PATTERNS.map(({ name, pattern }) => /* @__PURE__ */ jsx10(Section, { title: `genui-surface: ${name}`, children: PHASES.map((p) => /* @__PURE__ */ jsx10(Specimen, { label: p.status ? `${p.phase} \xB7 ${p.status}` : p.phase, children: /* @__PURE__ */ jsx10("div", { className: "w-full", children: /* @__PURE__ */ jsx10(
|
|
1144
1324
|
GenuiSurface,
|
|
1145
1325
|
{
|
|
1146
1326
|
pattern,
|
|
@@ -1162,7 +1342,7 @@ function Genui() {
|
|
|
1162
1342
|
}
|
|
1163
1343
|
|
|
1164
1344
|
// ../../web/src/gallery/overlays.tsx
|
|
1165
|
-
import { Copy, Settings, Trash2 } from "lucide-react";
|
|
1345
|
+
import { Copy as Copy2, Settings, Trash2 } from "lucide-react";
|
|
1166
1346
|
import {
|
|
1167
1347
|
AlertDialog,
|
|
1168
1348
|
AlertDialogAction,
|
|
@@ -1174,7 +1354,7 @@ import {
|
|
|
1174
1354
|
AlertDialogTitle,
|
|
1175
1355
|
AlertDialogTrigger
|
|
1176
1356
|
} from "@/components/ui/alert-dialog";
|
|
1177
|
-
import { Button as
|
|
1357
|
+
import { Button as Button5 } from "@/components/ui/button";
|
|
1178
1358
|
import {
|
|
1179
1359
|
Command,
|
|
1180
1360
|
CommandEmpty,
|
|
@@ -1228,99 +1408,99 @@ import {
|
|
|
1228
1408
|
SheetTrigger
|
|
1229
1409
|
} from "@/components/ui/sheet";
|
|
1230
1410
|
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
|
|
1231
|
-
import { jsx as
|
|
1411
|
+
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1232
1412
|
function Overlays() {
|
|
1233
|
-
return /* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
/* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */
|
|
1413
|
+
return /* @__PURE__ */ jsxs10(Section, { title: "Over the page", about: "Open each from its trigger. Command is shown inline as well.", children: [
|
|
1414
|
+
/* @__PURE__ */ jsxs10(Specimen, { label: "Dialog and AlertDialog", children: [
|
|
1415
|
+
/* @__PURE__ */ jsxs10(Dialog, { children: [
|
|
1416
|
+
/* @__PURE__ */ jsx11(DialogTrigger, { render: /* @__PURE__ */ jsx11(Button5, { variant: "outline", children: "Open dialog" }) }),
|
|
1417
|
+
/* @__PURE__ */ jsxs10(DialogContent, { children: [
|
|
1418
|
+
/* @__PURE__ */ jsxs10(DialogHeader, { children: [
|
|
1419
|
+
/* @__PURE__ */ jsx11(DialogTitle, { children: "A dialog" }),
|
|
1420
|
+
/* @__PURE__ */ jsx11(DialogDescription, { children: "Something to read or fill in before going on." })
|
|
1241
1421
|
] }),
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
/* @__PURE__ */
|
|
1422
|
+
/* @__PURE__ */ jsxs10(DialogFooter, { children: [
|
|
1423
|
+
/* @__PURE__ */ jsx11(DialogClose, { render: /* @__PURE__ */ jsx11(Button5, { variant: "outline", children: "Cancel" }) }),
|
|
1424
|
+
/* @__PURE__ */ jsx11(Button5, { children: "Save" })
|
|
1245
1425
|
] })
|
|
1246
1426
|
] })
|
|
1247
1427
|
] }),
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
/* @__PURE__ */
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
/* @__PURE__ */
|
|
1253
|
-
/* @__PURE__ */
|
|
1428
|
+
/* @__PURE__ */ jsxs10(AlertDialog, { children: [
|
|
1429
|
+
/* @__PURE__ */ jsx11(AlertDialogTrigger, { render: /* @__PURE__ */ jsx11(Button5, { variant: "destructive", children: "Delete\u2026" }) }),
|
|
1430
|
+
/* @__PURE__ */ jsxs10(AlertDialogContent, { children: [
|
|
1431
|
+
/* @__PURE__ */ jsxs10(AlertDialogHeader, { children: [
|
|
1432
|
+
/* @__PURE__ */ jsx11(AlertDialogTitle, { children: "Delete the draft?" }),
|
|
1433
|
+
/* @__PURE__ */ jsx11(AlertDialogDescription, { children: "Its revisions go too. This cannot be undone." })
|
|
1254
1434
|
] }),
|
|
1255
|
-
/* @__PURE__ */
|
|
1256
|
-
/* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ jsxs10(AlertDialogFooter, { children: [
|
|
1436
|
+
/* @__PURE__ */ jsx11(AlertDialogCancel, { children: "Cancel" }),
|
|
1437
|
+
/* @__PURE__ */ jsx11(AlertDialogAction, { children: "Delete" })
|
|
1258
1438
|
] })
|
|
1259
1439
|
] })
|
|
1260
1440
|
] })
|
|
1261
1441
|
] }),
|
|
1262
|
-
/* @__PURE__ */
|
|
1263
|
-
/* @__PURE__ */
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
/* @__PURE__ */
|
|
1266
|
-
/* @__PURE__ */
|
|
1267
|
-
/* @__PURE__ */
|
|
1268
|
-
/* @__PURE__ */
|
|
1442
|
+
/* @__PURE__ */ jsxs10(Specimen, { label: "Sheet, Popover, Tooltip", children: [
|
|
1443
|
+
/* @__PURE__ */ jsxs10(Sheet, { children: [
|
|
1444
|
+
/* @__PURE__ */ jsx11(SheetTrigger, { render: /* @__PURE__ */ jsx11(Button5, { variant: "outline", children: "Open sheet" }) }),
|
|
1445
|
+
/* @__PURE__ */ jsxs10(SheetContent, { children: [
|
|
1446
|
+
/* @__PURE__ */ jsxs10(SheetHeader, { children: [
|
|
1447
|
+
/* @__PURE__ */ jsx11(SheetTitle, { children: "A sheet" }),
|
|
1448
|
+
/* @__PURE__ */ jsx11(SheetDescription, { children: "A panel from the edge of the screen." })
|
|
1269
1449
|
] }),
|
|
1270
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ jsx11(SheetFooter, { children: /* @__PURE__ */ jsx11(Button5, { children: "Done" }) })
|
|
1271
1451
|
] })
|
|
1272
1452
|
] }),
|
|
1273
|
-
/* @__PURE__ */
|
|
1274
|
-
/* @__PURE__ */
|
|
1275
|
-
/* @__PURE__ */
|
|
1276
|
-
/* @__PURE__ */
|
|
1277
|
-
/* @__PURE__ */
|
|
1453
|
+
/* @__PURE__ */ jsxs10(Popover, { children: [
|
|
1454
|
+
/* @__PURE__ */ jsx11(PopoverTrigger, { render: /* @__PURE__ */ jsx11(Button5, { variant: "outline", children: "Open popover" }) }),
|
|
1455
|
+
/* @__PURE__ */ jsx11(PopoverContent, { children: /* @__PURE__ */ jsxs10(PopoverHeader, { children: [
|
|
1456
|
+
/* @__PURE__ */ jsx11(PopoverTitle, { children: "A popover" }),
|
|
1457
|
+
/* @__PURE__ */ jsx11(PopoverDescription, { children: "A little more, next to what it is about." })
|
|
1278
1458
|
] }) })
|
|
1279
1459
|
] }),
|
|
1280
|
-
/* @__PURE__ */
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
-
/* @__PURE__ */
|
|
1460
|
+
/* @__PURE__ */ jsxs10(Tooltip, { children: [
|
|
1461
|
+
/* @__PURE__ */ jsx11(TooltipTrigger, { render: /* @__PURE__ */ jsx11(Button5, { variant: "ghost", size: "icon", "aria-label": "Settings" }), children: /* @__PURE__ */ jsx11(Settings, {}) }),
|
|
1462
|
+
/* @__PURE__ */ jsx11(TooltipContent, { children: "Settings" })
|
|
1283
1463
|
] })
|
|
1284
1464
|
] }),
|
|
1285
|
-
/* @__PURE__ */
|
|
1286
|
-
/* @__PURE__ */
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
/* @__PURE__ */
|
|
1289
|
-
/* @__PURE__ */
|
|
1290
|
-
/* @__PURE__ */
|
|
1291
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ jsxs10(Specimen, { label: "DropdownMenu and ContextMenu", children: [
|
|
1466
|
+
/* @__PURE__ */ jsxs10(DropdownMenu, { children: [
|
|
1467
|
+
/* @__PURE__ */ jsx11(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx11(Button5, { variant: "outline", children: "Open menu" }) }),
|
|
1468
|
+
/* @__PURE__ */ jsxs10(DropdownMenuContent, { children: [
|
|
1469
|
+
/* @__PURE__ */ jsx11(DropdownMenuLabel, { children: "Draft" }),
|
|
1470
|
+
/* @__PURE__ */ jsxs10(DropdownMenuItem, { children: [
|
|
1471
|
+
/* @__PURE__ */ jsx11(Copy2, {}),
|
|
1292
1472
|
" Duplicate ",
|
|
1293
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ jsx11(DropdownMenuShortcut, { children: "\u2318D" })
|
|
1294
1474
|
] }),
|
|
1295
|
-
/* @__PURE__ */
|
|
1296
|
-
/* @__PURE__ */
|
|
1297
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ jsx11(DropdownMenuSeparator, {}),
|
|
1476
|
+
/* @__PURE__ */ jsxs10(DropdownMenuItem, { variant: "destructive", children: [
|
|
1477
|
+
/* @__PURE__ */ jsx11(Trash2, {}),
|
|
1298
1478
|
" Delete"
|
|
1299
1479
|
] })
|
|
1300
1480
|
] })
|
|
1301
1481
|
] }),
|
|
1302
|
-
/* @__PURE__ */
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */
|
|
1305
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ jsxs10(ContextMenu, { children: [
|
|
1483
|
+
/* @__PURE__ */ jsx11(ContextMenuTrigger, { className: "grid h-16 w-48 place-items-center rounded-md border border-dashed border-border text-xs text-muted-foreground", children: "Right-click here" }),
|
|
1484
|
+
/* @__PURE__ */ jsxs10(ContextMenuContent, { children: [
|
|
1485
|
+
/* @__PURE__ */ jsxs10(ContextMenuItem, { children: [
|
|
1306
1486
|
"Copy ",
|
|
1307
|
-
/* @__PURE__ */
|
|
1487
|
+
/* @__PURE__ */ jsx11(ContextMenuShortcut, { children: "\u2318C" })
|
|
1308
1488
|
] }),
|
|
1309
|
-
/* @__PURE__ */
|
|
1489
|
+
/* @__PURE__ */ jsx11(ContextMenuItem, { children: "Rename" })
|
|
1310
1490
|
] })
|
|
1311
1491
|
] })
|
|
1312
1492
|
] }),
|
|
1313
|
-
/* @__PURE__ */
|
|
1314
|
-
/* @__PURE__ */
|
|
1315
|
-
/* @__PURE__ */
|
|
1316
|
-
/* @__PURE__ */
|
|
1317
|
-
/* @__PURE__ */
|
|
1318
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ jsx11(Specimen, { label: "Command (inline)", children: /* @__PURE__ */ jsxs10(Command, { className: "w-full rounded-lg border border-border", children: [
|
|
1494
|
+
/* @__PURE__ */ jsx11(CommandInput, { placeholder: "Run a command\u2026" }),
|
|
1495
|
+
/* @__PURE__ */ jsxs10(CommandList, { children: [
|
|
1496
|
+
/* @__PURE__ */ jsx11(CommandEmpty, { children: "Nothing matches." }),
|
|
1497
|
+
/* @__PURE__ */ jsxs10(CommandGroup, { heading: "Desk", children: [
|
|
1498
|
+
/* @__PURE__ */ jsxs10(CommandItem, { children: [
|
|
1319
1499
|
"Open Notes ",
|
|
1320
|
-
/* @__PURE__ */
|
|
1500
|
+
/* @__PURE__ */ jsx11(CommandShortcut, { children: "\u2318N" })
|
|
1321
1501
|
] }),
|
|
1322
|
-
/* @__PURE__ */
|
|
1323
|
-
/* @__PURE__ */
|
|
1502
|
+
/* @__PURE__ */ jsx11(CommandItem, { children: "Tile every window" }),
|
|
1503
|
+
/* @__PURE__ */ jsx11(CommandItem, { children: "Show the agent" })
|
|
1324
1504
|
] })
|
|
1325
1505
|
] })
|
|
1326
1506
|
] }) })
|
|
@@ -1336,12 +1516,12 @@ import {
|
|
|
1336
1516
|
parseTheme
|
|
1337
1517
|
} from "@hollis-labs/surface-theme";
|
|
1338
1518
|
import { createContext as createContext2, useContext as useContext2, useLayoutEffect, useRef as useRef3, useState as useState3 } from "react";
|
|
1339
|
-
import { Badge as
|
|
1340
|
-
import { Button as
|
|
1519
|
+
import { Badge as Badge3 } from "@/components/ui/badge";
|
|
1520
|
+
import { Button as Button6 } from "@/components/ui/button";
|
|
1341
1521
|
import { Card as Card2, CardContent as CardContent2, CardDescription as CardDescription2, CardFooter as CardFooter2, CardHeader as CardHeader2, CardTitle as CardTitle2 } from "@/components/ui/card";
|
|
1342
1522
|
import { Input as Input2 } from "@/components/ui/input";
|
|
1343
1523
|
import { Textarea as Textarea2 } from "@/components/ui/textarea";
|
|
1344
|
-
import { Fragment as
|
|
1524
|
+
import { Fragment as Fragment10, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1345
1525
|
var JOB = "d_97410e09";
|
|
1346
1526
|
var ThemeChoice = createContext2({ palette: PALETTES[0], type: "mixed", setPalette: () => {
|
|
1347
1527
|
}, setType: () => {
|
|
@@ -1358,7 +1538,7 @@ function InPalette({
|
|
|
1358
1538
|
const undo = applyPalette(palette, ref.current, type ?? "mixed");
|
|
1359
1539
|
return undo;
|
|
1360
1540
|
}, [palette, type]);
|
|
1361
|
-
return /* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ jsx12("div", { ref, className: `bg-background text-foreground ${className ?? ""}`, children });
|
|
1362
1542
|
}
|
|
1363
1543
|
var TOKENS = [
|
|
1364
1544
|
"desk",
|
|
@@ -1379,41 +1559,41 @@ var TOKENS = [
|
|
|
1379
1559
|
"selection"
|
|
1380
1560
|
];
|
|
1381
1561
|
function Swatch({ color, label, detail }) {
|
|
1382
|
-
return /* @__PURE__ */
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */
|
|
1385
|
-
/* @__PURE__ */
|
|
1386
|
-
detail && /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
1563
|
+
/* @__PURE__ */ jsx12("span", { className: "size-7 shrink-0 rounded-md border", style: { background: color } }),
|
|
1564
|
+
/* @__PURE__ */ jsxs11("span", { className: "flex min-w-0 flex-col", children: [
|
|
1565
|
+
/* @__PURE__ */ jsx12("span", { className: "truncate text-xs", children: label }),
|
|
1566
|
+
detail && /* @__PURE__ */ jsx12("span", { className: "truncate font-mono text-[10px] text-muted-foreground", children: detail })
|
|
1387
1567
|
] })
|
|
1388
1568
|
] });
|
|
1389
1569
|
}
|
|
1390
1570
|
function Sample({ palette }) {
|
|
1391
|
-
return /* @__PURE__ */
|
|
1392
|
-
/* @__PURE__ */
|
|
1393
|
-
/* @__PURE__ */
|
|
1394
|
-
/* @__PURE__ */
|
|
1571
|
+
return /* @__PURE__ */ jsxs11(Card2, { size: "sm", className: "w-full", children: [
|
|
1572
|
+
/* @__PURE__ */ jsxs11(CardHeader2, { children: [
|
|
1573
|
+
/* @__PURE__ */ jsx12(CardTitle2, { children: palette.name }),
|
|
1574
|
+
/* @__PURE__ */ jsx12(CardDescription2, { children: palette.source ?? "palette" })
|
|
1395
1575
|
] }),
|
|
1396
|
-
/* @__PURE__ */
|
|
1397
|
-
/* @__PURE__ */
|
|
1398
|
-
/* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
1401
|
-
/* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
/* @__PURE__ */
|
|
1576
|
+
/* @__PURE__ */ jsxs11(CardContent2, { className: "flex flex-col gap-2 text-sm", children: [
|
|
1577
|
+
/* @__PURE__ */ jsx12("p", { children: "The agent read three files and wrote a draft." }),
|
|
1578
|
+
/* @__PURE__ */ jsx12("p", { className: "text-muted-foreground", children: "Muted: updated 2 min ago \xB7 14 notes" }),
|
|
1579
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
1580
|
+
/* @__PURE__ */ jsx12(Badge3, { variant: "outline", className: "text-success", children: "done" }),
|
|
1581
|
+
/* @__PURE__ */ jsx12(Badge3, { variant: "outline", className: "text-warning", children: "waiting" }),
|
|
1582
|
+
/* @__PURE__ */ jsx12(Badge3, { variant: "outline", className: "text-destructive", children: "failed" }),
|
|
1583
|
+
/* @__PURE__ */ jsx12(Badge3, { variant: "outline", className: "text-info", children: "info" })
|
|
1404
1584
|
] }),
|
|
1405
|
-
/* @__PURE__ */
|
|
1585
|
+
/* @__PURE__ */ jsx12("div", { className: "flex gap-1", children: ["red", "green", "yellow", "blue", "magenta", "cyan"].map((k) => /* @__PURE__ */ jsx12("span", { className: "h-1.5 flex-1 rounded-full", style: { background: palette[k] } }, k)) })
|
|
1406
1586
|
] }),
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1409
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ jsxs11(CardFooter2, { className: "justify-end gap-2", children: [
|
|
1588
|
+
/* @__PURE__ */ jsx12(Button6, { size: "sm", variant: "outline", children: "Cancel" }),
|
|
1589
|
+
/* @__PURE__ */ jsx12(Button6, { size: "sm", children: "Run" })
|
|
1410
1590
|
] })
|
|
1411
1591
|
] });
|
|
1412
1592
|
}
|
|
1413
1593
|
function Checks({ palette }) {
|
|
1414
|
-
return /* @__PURE__ */
|
|
1415
|
-
/* @__PURE__ */
|
|
1416
|
-
/* @__PURE__ */
|
|
1594
|
+
return /* @__PURE__ */ jsx12("ul", { className: "flex w-full flex-col gap-1 text-xs", children: checkPalette(palette).map((r) => /* @__PURE__ */ jsxs11("li", { className: "flex items-center justify-between gap-2", children: [
|
|
1595
|
+
/* @__PURE__ */ jsx12("span", { children: r.pair }),
|
|
1596
|
+
/* @__PURE__ */ jsxs11("span", { className: r.ok ? "text-success" : "text-destructive", children: [
|
|
1417
1597
|
r.ratio.toFixed(2),
|
|
1418
1598
|
" ",
|
|
1419
1599
|
r.ok ? "\u2265" : "<",
|
|
@@ -1424,22 +1604,22 @@ function Checks({ palette }) {
|
|
|
1424
1604
|
}
|
|
1425
1605
|
function Theme() {
|
|
1426
1606
|
const { palette, setPalette } = useContext2(ThemeChoice);
|
|
1427
|
-
return /* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1607
|
+
return /* @__PURE__ */ jsxs11(Fragment10, { children: [
|
|
1608
|
+
/* @__PURE__ */ jsxs11(
|
|
1429
1609
|
Section,
|
|
1430
1610
|
{
|
|
1431
1611
|
title: "Theme: the palette in use",
|
|
1432
1612
|
about: "Thirteen colours a Linux theme names. Everything else is derived from them by the theme. Pick another in the header.",
|
|
1433
1613
|
draft: JOB,
|
|
1434
1614
|
children: [
|
|
1435
|
-
/* @__PURE__ */
|
|
1436
|
-
/* @__PURE__ */
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
/* @__PURE__ */
|
|
1615
|
+
/* @__PURE__ */ jsx12(Specimen, { label: `palette: ${palette.name}`, wide: true, children: /* @__PURE__ */ jsx12("div", { className: "grid w-full grid-cols-2 gap-3 @lg:grid-cols-4 @3xl:grid-cols-7", children: Object.entries(paletteCSS(palette)).map(([name, v]) => /* @__PURE__ */ jsx12(Swatch, { color: v, label: name.replace("--p-", ""), detail: v }, name)) }) }),
|
|
1616
|
+
/* @__PURE__ */ jsx12(Specimen, { label: "derived tokens", wide: true, children: /* @__PURE__ */ jsx12("div", { className: "grid w-full grid-cols-2 gap-3 @lg:grid-cols-4 @3xl:grid-cols-8", children: TOKENS.map((t) => /* @__PURE__ */ jsx12(Swatch, { color: `var(--${t})`, label: t }, t)) }) }),
|
|
1617
|
+
/* @__PURE__ */ jsx12(Specimen, { label: "how it reads (WCAG contrast)", children: /* @__PURE__ */ jsx12(Checks, { palette }) }),
|
|
1618
|
+
/* @__PURE__ */ jsx12(Specimen, { label: "a piece of interface", children: /* @__PURE__ */ jsx12(Sample, { palette }) })
|
|
1439
1619
|
]
|
|
1440
1620
|
}
|
|
1441
1621
|
),
|
|
1442
|
-
/* @__PURE__ */
|
|
1622
|
+
/* @__PURE__ */ jsx12(
|
|
1443
1623
|
Section,
|
|
1444
1624
|
{
|
|
1445
1625
|
title: "Theme: every palette",
|
|
@@ -1447,36 +1627,36 @@ function Theme() {
|
|
|
1447
1627
|
draft: JOB,
|
|
1448
1628
|
children: PALETTES.map((p) => {
|
|
1449
1629
|
const fails = checkPalette(p).filter((r) => !r.ok).length;
|
|
1450
|
-
return /* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
/* @__PURE__ */
|
|
1630
|
+
return /* @__PURE__ */ jsx12(Specimen, { label: `${p.id}${fails ? ` \xB7 ${fails} contrast warning(s)` : ""}`, children: /* @__PURE__ */ jsxs11(InPalette, { palette: p, className: "flex w-full flex-col gap-2 rounded-lg p-2", children: [
|
|
1631
|
+
/* @__PURE__ */ jsx12(Sample, { palette: p }),
|
|
1632
|
+
/* @__PURE__ */ jsx12(Button6, { size: "xs", variant: p.id === palette.id ? "secondary" : "ghost", onClick: () => setPalette(p), children: p.id === palette.id ? "In use" : "Use this palette" })
|
|
1453
1633
|
] }) }, p.id);
|
|
1454
1634
|
})
|
|
1455
1635
|
}
|
|
1456
1636
|
),
|
|
1457
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ jsx12(
|
|
1458
1638
|
Section,
|
|
1459
1639
|
{
|
|
1460
1640
|
title: "Theme: type",
|
|
1461
1641
|
about: "Mono chrome (bars, buttons, tabs, badges, titles) over a sans body, or mono everywhere. Switch it for the whole gallery in the header.",
|
|
1462
1642
|
draft: JOB,
|
|
1463
|
-
children: ["mixed", "mono"].map((t) => /* @__PURE__ */
|
|
1643
|
+
children: ["mixed", "mono"].map((t) => /* @__PURE__ */ jsx12(
|
|
1464
1644
|
Specimen,
|
|
1465
1645
|
{
|
|
1466
1646
|
label: t === "mixed" ? "mixed: mono chrome, sans body" : "mono: everything in the mono font",
|
|
1467
|
-
children: /* @__PURE__ */
|
|
1647
|
+
children: /* @__PURE__ */ jsx12(InPalette, { palette, type: t, className: "w-full rounded-lg p-2", children: /* @__PURE__ */ jsx12(Sample, { palette }) })
|
|
1468
1648
|
},
|
|
1469
1649
|
t
|
|
1470
1650
|
))
|
|
1471
1651
|
}
|
|
1472
1652
|
),
|
|
1473
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ jsx12(
|
|
1474
1654
|
Section,
|
|
1475
1655
|
{
|
|
1476
1656
|
title: "Theme: read a theme file",
|
|
1477
1657
|
about: "Paste an Omarchy colors.toml, a base16 / tinted-theming scheme or a pywal colors.json.",
|
|
1478
1658
|
draft: JOB,
|
|
1479
|
-
children: /* @__PURE__ */
|
|
1659
|
+
children: /* @__PURE__ */ jsx12(ImportSpecimen, { onUse: setPalette })
|
|
1480
1660
|
}
|
|
1481
1661
|
)
|
|
1482
1662
|
] });
|
|
@@ -1495,10 +1675,10 @@ function ImportSpecimen({ onUse }) {
|
|
|
1495
1675
|
setError(e.message);
|
|
1496
1676
|
}
|
|
1497
1677
|
};
|
|
1498
|
-
return /* @__PURE__ */
|
|
1499
|
-
/* @__PURE__ */
|
|
1500
|
-
/* @__PURE__ */
|
|
1501
|
-
/* @__PURE__ */
|
|
1678
|
+
return /* @__PURE__ */ jsxs11(Fragment10, { children: [
|
|
1679
|
+
/* @__PURE__ */ jsx12(Specimen, { label: "the file", children: /* @__PURE__ */ jsxs11("div", { className: "flex w-full flex-col gap-2", children: [
|
|
1680
|
+
/* @__PURE__ */ jsx12(Input2, { placeholder: "Name (optional)", value: name, onChange: (e) => setName(e.target.value) }),
|
|
1681
|
+
/* @__PURE__ */ jsx12(
|
|
1502
1682
|
Textarea2,
|
|
1503
1683
|
{
|
|
1504
1684
|
className: "min-h-40 font-mono text-xs",
|
|
@@ -1507,24 +1687,24 @@ function ImportSpecimen({ onUse }) {
|
|
|
1507
1687
|
onChange: (e) => setText(e.target.value)
|
|
1508
1688
|
}
|
|
1509
1689
|
),
|
|
1510
|
-
/* @__PURE__ */
|
|
1511
|
-
error && /* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-end gap-2", children: [
|
|
1691
|
+
error && /* @__PURE__ */ jsx12("span", { className: "mr-auto text-xs text-destructive", children: error }),
|
|
1692
|
+
/* @__PURE__ */ jsx12(Button6, { size: "sm", variant: "outline", disabled: !text.trim(), onClick: preview, children: "Read it" }),
|
|
1693
|
+
/* @__PURE__ */ jsx12(Button6, { size: "sm", disabled: !read, onClick: () => read && onUse(read), children: "Use it" })
|
|
1514
1694
|
] })
|
|
1515
1695
|
] }) }),
|
|
1516
|
-
/* @__PURE__ */
|
|
1517
|
-
/* @__PURE__ */
|
|
1518
|
-
/* @__PURE__ */
|
|
1519
|
-
] }) : /* @__PURE__ */
|
|
1696
|
+
/* @__PURE__ */ jsx12(Specimen, { label: read ? `read as ${read.source}: ${read.name}` : "nothing read yet", children: read ? /* @__PURE__ */ jsxs11(InPalette, { palette: read, className: "flex w-full flex-col gap-2 rounded-lg p-2", children: [
|
|
1697
|
+
/* @__PURE__ */ jsx12(Sample, { palette: read }),
|
|
1698
|
+
/* @__PURE__ */ jsx12(Checks, { palette: read })
|
|
1699
|
+
] }) : /* @__PURE__ */ jsx12("p", { className: "text-xs text-muted-foreground", children: "Paste a theme and read it to see it here." }) })
|
|
1520
1700
|
] });
|
|
1521
1701
|
}
|
|
1522
1702
|
|
|
1523
1703
|
// ../../web/src/gallery/windows.tsx
|
|
1524
|
-
import { FileText as
|
|
1704
|
+
import { FileText as FileText3, Globe, StickyNote } from "lucide-react";
|
|
1525
1705
|
import { useState as useState4 } from "react";
|
|
1526
1706
|
import { WindowManager } from "@/components/ui/window-manager";
|
|
1527
|
-
import { jsx as
|
|
1707
|
+
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1528
1708
|
var START = {
|
|
1529
1709
|
root: {
|
|
1530
1710
|
type: "row",
|
|
@@ -1542,26 +1722,26 @@ var START = {
|
|
|
1542
1722
|
]
|
|
1543
1723
|
};
|
|
1544
1724
|
var WINDOWS = [
|
|
1545
|
-
{ id: "draft", title: "Launch notes", icon: /* @__PURE__ */
|
|
1546
|
-
{ id: "notes", title: "Notes", icon: /* @__PURE__ */
|
|
1547
|
-
{ id: "browser", title: "Example Domain", icon: /* @__PURE__ */
|
|
1548
|
-
{ id: "scratch", title: "Scratch", icon: /* @__PURE__ */
|
|
1725
|
+
{ id: "draft", title: "Launch notes", icon: /* @__PURE__ */ jsx13(FileText3, { className: "size-3.5" }), dirty: true },
|
|
1726
|
+
{ id: "notes", title: "Notes", icon: /* @__PURE__ */ jsx13(StickyNote, { className: "size-3.5" }) },
|
|
1727
|
+
{ id: "browser", title: "Example Domain", icon: /* @__PURE__ */ jsx13(Globe, { className: "size-3.5" }) },
|
|
1728
|
+
{ id: "scratch", title: "Scratch", icon: /* @__PURE__ */ jsx13(StickyNote, { className: "size-3.5" }) }
|
|
1549
1729
|
];
|
|
1550
1730
|
function Windows() {
|
|
1551
1731
|
const [tree, setTree] = useState4(START);
|
|
1552
1732
|
const [focus, setFocus] = useState4("draft");
|
|
1553
|
-
return /* @__PURE__ */
|
|
1733
|
+
return /* @__PURE__ */ jsx13(
|
|
1554
1734
|
Section,
|
|
1555
1735
|
{
|
|
1556
1736
|
draft: "d_3f9690aa",
|
|
1557
1737
|
title: "window-manager",
|
|
1558
1738
|
about: "Drag a tab to move, split, tab or float a window. The tree is local to this window.",
|
|
1559
|
-
children: /* @__PURE__ */
|
|
1739
|
+
children: /* @__PURE__ */ jsx13(Specimen, { label: "two stacks and a float", wide: true, children: /* @__PURE__ */ jsx13(
|
|
1560
1740
|
"div",
|
|
1561
1741
|
{
|
|
1562
1742
|
className: "relative h-80 w-full overflow-hidden rounded-md border border-border bg-desk",
|
|
1563
1743
|
style: { "--window-gap": "6px" },
|
|
1564
|
-
children: /* @__PURE__ */
|
|
1744
|
+
children: /* @__PURE__ */ jsx13(
|
|
1565
1745
|
WindowManager,
|
|
1566
1746
|
{
|
|
1567
1747
|
tree,
|
|
@@ -1573,7 +1753,7 @@ function Windows() {
|
|
|
1573
1753
|
},
|
|
1574
1754
|
onClose: () => {
|
|
1575
1755
|
},
|
|
1576
|
-
children: (id) => /* @__PURE__ */
|
|
1756
|
+
children: (id) => /* @__PURE__ */ jsxs12("div", { className: "p-3 text-xs text-muted-foreground", children: [
|
|
1577
1757
|
"The body of \u201C",
|
|
1578
1758
|
WINDOWS.find((w) => w.id === id)?.title,
|
|
1579
1759
|
"\u201D."
|
|
@@ -1587,13 +1767,14 @@ function Windows() {
|
|
|
1587
1767
|
}
|
|
1588
1768
|
|
|
1589
1769
|
// ../../web/src/gallery/Gallery.tsx
|
|
1590
|
-
import { Fragment as
|
|
1770
|
+
import { Fragment as Fragment11, jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1591
1771
|
var SECTIONS = [
|
|
1592
1772
|
{ id: "theme", title: "Theme", draw: Theme },
|
|
1593
1773
|
{ id: "controls", title: "Controls", draw: Controls },
|
|
1594
1774
|
{ id: "display", title: "Display", draw: Display },
|
|
1595
1775
|
{ id: "overlays", title: "Overlays", draw: Overlays },
|
|
1596
1776
|
{ id: "chat", title: "Chat", draw: Chat },
|
|
1777
|
+
{ id: "cite", title: "Cite", draw: Cite },
|
|
1597
1778
|
{ id: "cards", title: "Cards", draw: Cards },
|
|
1598
1779
|
{ id: "genui", title: "GenUI", draw: Genui },
|
|
1599
1780
|
{ id: "ade", title: "ADE", draw: Ade },
|
|
@@ -1611,21 +1792,21 @@ function Draft({ job }) {
|
|
|
1611
1792
|
watch.observe(el, { childList: true });
|
|
1612
1793
|
return () => watch.disconnect();
|
|
1613
1794
|
}, []);
|
|
1614
|
-
return /* @__PURE__ */
|
|
1615
|
-
/* @__PURE__ */
|
|
1616
|
-
empty && /* @__PURE__ */
|
|
1617
|
-
/* @__PURE__ */
|
|
1618
|
-
/* @__PURE__ */
|
|
1795
|
+
return /* @__PURE__ */ jsxs13(Fragment11, { children: [
|
|
1796
|
+
/* @__PURE__ */ jsx14("div", { ref: box, className: "contents", children: /* @__PURE__ */ jsx14(DraftFilter.Provider, { value: { only: true, job }, children: SECTIONS.map((s) => /* @__PURE__ */ jsx14(s.draw, {}, s.id)) }) }),
|
|
1797
|
+
empty && /* @__PURE__ */ jsx14(Empty2, { children: /* @__PURE__ */ jsxs13(EmptyHeader2, { children: [
|
|
1798
|
+
/* @__PURE__ */ jsx14(EmptyTitle2, { children: "No draft marked" }),
|
|
1799
|
+
/* @__PURE__ */ jsxs13(EmptyDescription2, { children: [
|
|
1619
1800
|
job ? `No section is marked as the draft of ${job}` : "No section is marked as a draft",
|
|
1620
1801
|
" (",
|
|
1621
|
-
/* @__PURE__ */
|
|
1802
|
+
/* @__PURE__ */ jsx14("code", { children: '<Section draft="<job id>">' }),
|
|
1622
1803
|
"). The whole gallery is in the other tabs."
|
|
1623
1804
|
] })
|
|
1624
1805
|
] }) })
|
|
1625
1806
|
] });
|
|
1626
1807
|
}
|
|
1627
1808
|
function Gallery({ win }) {
|
|
1628
|
-
return /* @__PURE__ */
|
|
1809
|
+
return /* @__PURE__ */ jsx14(GalleryTabs, { first: typeof win.args.section === "string" ? win.args.section : void 0 });
|
|
1629
1810
|
}
|
|
1630
1811
|
function GalleryTabs({
|
|
1631
1812
|
first,
|
|
@@ -1655,7 +1836,7 @@ function GalleryTabs({
|
|
|
1655
1836
|
}),
|
|
1656
1837
|
[palette, type]
|
|
1657
1838
|
);
|
|
1658
|
-
return /* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsx14(ThemeChoice.Provider, { value: choice, children: /* @__PURE__ */ jsx14(InPalette, { palette, type, className: "h-full min-h-0", children: /* @__PURE__ */ jsxs13(
|
|
1659
1840
|
Tabs2,
|
|
1660
1841
|
{
|
|
1661
1842
|
value: section,
|
|
@@ -1665,10 +1846,10 @@ function GalleryTabs({
|
|
|
1665
1846
|
},
|
|
1666
1847
|
className: "@container flex h-full min-h-0 flex-col",
|
|
1667
1848
|
children: [
|
|
1668
|
-
/* @__PURE__ */
|
|
1669
|
-
/* @__PURE__ */
|
|
1670
|
-
/* @__PURE__ */
|
|
1671
|
-
/* @__PURE__ */
|
|
1849
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex shrink-0 flex-wrap items-center gap-2 border-b border-border px-3 py-2", children: [
|
|
1850
|
+
/* @__PURE__ */ jsx14(TabsList2, { variant: "line", className: "min-w-0 flex-wrap group-data-horizontal/tabs:h-auto", children: tabs.map((s) => /* @__PURE__ */ jsx14(TabsTrigger2, { value: s.id, "data-gallery-tab": s.id, children: s.title }, s.id)) }),
|
|
1851
|
+
/* @__PURE__ */ jsxs13("div", { className: "ml-auto flex items-center gap-2", children: [
|
|
1852
|
+
/* @__PURE__ */ jsxs13(
|
|
1672
1853
|
Select2,
|
|
1673
1854
|
{
|
|
1674
1855
|
value: palette.id,
|
|
@@ -1678,12 +1859,12 @@ function GalleryTabs({
|
|
|
1678
1859
|
},
|
|
1679
1860
|
items: PALETTES2.map((p) => ({ value: p.id, label: p.name })),
|
|
1680
1861
|
children: [
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
/* @__PURE__ */
|
|
1862
|
+
/* @__PURE__ */ jsx14(SelectTrigger2, { size: "sm", "aria-label": "Palette", children: /* @__PURE__ */ jsx14(SelectValue2, {}) }),
|
|
1863
|
+
/* @__PURE__ */ jsx14(SelectContent2, { children: PALETTES2.map((p) => /* @__PURE__ */ jsx14(SelectItem2, { value: p.id, children: p.name }, p.id)) })
|
|
1683
1864
|
]
|
|
1684
1865
|
}
|
|
1685
1866
|
),
|
|
1686
|
-
/* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ jsxs13(
|
|
1687
1868
|
ToggleGroup2,
|
|
1688
1869
|
{
|
|
1689
1870
|
size: "sm",
|
|
@@ -1691,16 +1872,16 @@ function GalleryTabs({
|
|
|
1691
1872
|
value: [type],
|
|
1692
1873
|
onValueChange: (v) => v[0] && choice.setType(v[0]),
|
|
1693
1874
|
children: [
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
/* @__PURE__ */
|
|
1875
|
+
/* @__PURE__ */ jsx14(ToggleGroupItem2, { value: "mixed", "aria-label": "Mono chrome, sans body", children: "Mixed" }),
|
|
1876
|
+
/* @__PURE__ */ jsx14(ToggleGroupItem2, { value: "mono", "aria-label": "Mono everywhere", children: "Mono" })
|
|
1696
1877
|
]
|
|
1697
1878
|
}
|
|
1698
1879
|
)
|
|
1699
1880
|
] })
|
|
1700
1881
|
] }),
|
|
1701
|
-
/* @__PURE__ */
|
|
1702
|
-
draft && /* @__PURE__ */
|
|
1703
|
-
SECTIONS.map((s) => /* @__PURE__ */
|
|
1882
|
+
/* @__PURE__ */ jsxs13("div", { className: "min-h-0 flex-1 overflow-auto bg-muted/30", children: [
|
|
1883
|
+
draft && /* @__PURE__ */ jsx14(TabsContent2, { value: "draft", "data-gallery-section": "draft", className: "flex flex-col gap-6 p-4", children: /* @__PURE__ */ jsx14(Draft, { job: draft === true ? void 0 : draft }) }),
|
|
1884
|
+
SECTIONS.map((s) => /* @__PURE__ */ jsx14(TabsContent2, { value: s.id, "data-gallery-section": s.id, className: "flex flex-col gap-6 p-4", children: /* @__PURE__ */ jsx14(s.draw, {}) }, s.id))
|
|
1704
1885
|
] })
|
|
1705
1886
|
]
|
|
1706
1887
|
}
|