@rebasepro/app 0.24.0 → 0.24.1-canary.gcb918fc

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 (39) hide show
  1. package/README.md +2 -2
  2. package/dist/components/common/useColumnsIds.d.ts +2 -2
  3. package/dist/components/common/useDataTableController.d.ts +15 -1
  4. package/dist/components/common/useScrollRestoration.d.ts +16 -7
  5. package/dist/contexts/CollectionResolverContext.d.ts +8 -1
  6. package/dist/contexts/StorageSourcesContext.d.ts +6 -0
  7. package/dist/core/RebaseProps.d.ts +21 -0
  8. package/dist/core/deprecated_plugin_keys.d.ts +10 -0
  9. package/dist/de-BcBo287O.js +1434 -0
  10. package/dist/de-BcBo287O.js.map +1 -0
  11. package/dist/debug/ui-reference/ComponentSections.d.ts +16 -0
  12. package/dist/debug.js +867 -484
  13. package/dist/es-D-JXBvsW.js +1442 -0
  14. package/dist/es-D-JXBvsW.js.map +1 -0
  15. package/dist/fr-BKGBSaZM.js +1434 -0
  16. package/dist/fr-BKGBSaZM.js.map +1 -0
  17. package/dist/hi-D1jEYlQ1.js +1434 -0
  18. package/dist/hi-D1jEYlQ1.js.map +1 -0
  19. package/dist/hooks/data/collectionWindow.d.ts +146 -13
  20. package/dist/hooks/data/save.d.ts +11 -2
  21. package/dist/hooks/data/useBatchedFetch.d.ts +21 -0
  22. package/dist/hooks/data/useDataOrder.d.ts +6 -0
  23. package/dist/hooks/data/useFetch.d.ts +12 -4
  24. package/dist/hooks/index.d.ts +1 -1
  25. package/dist/hooks/useBuildModeController.d.ts +22 -2
  26. package/dist/hooks/useComponentOverride.d.ts +10 -7
  27. package/dist/hooks/useNavigationBlocker.d.ts +17 -9
  28. package/dist/index.d.ts +0 -1
  29. package/dist/index.es.js +1558 -8659
  30. package/dist/index.es.js.map +1 -1
  31. package/dist/it-DLXLsP1j.js +1434 -0
  32. package/dist/it-DLXLsP1j.js.map +1 -0
  33. package/dist/pt-Dd3JWvUZ.js +1439 -0
  34. package/dist/pt-Dd3JWvUZ.js.map +1 -0
  35. package/dist/util/previews.d.ts +22 -5
  36. package/dist/util/useStorageUploadController.d.ts +6 -2
  37. package/dist/vitePlugin.js +2 -0
  38. package/package.json +11 -7
  39. package/dist/hooks/useBackendStorageSource.d.ts +0 -35
package/dist/debug.js CHANGED
@@ -77,23 +77,23 @@ var UIStyleGuide = () => {
77
77
  /* @__PURE__ */ jsx(Typography, { variant: "h4", gutterBottom: true, className: "border-b pb-2 mb-6", children: "Icon Buttons" }),
78
78
  /* @__PURE__ */ jsx(Paper, { className: "p-6", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-8 items-center", children: [
79
79
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
80
- /* @__PURE__ */ jsx(IconButton, { children: /* @__PURE__ */ jsx(IconExample, {}) }),
80
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "Example", children: /* @__PURE__ */ jsx(IconExample, {}) }),
81
81
  /* @__PURE__ */ jsx("span", { className: "text-[10px] text-text-disabled font-mono", children: "primary" })
82
82
  ] }),
83
83
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
84
- /* @__PURE__ */ jsx(IconButton, { children: /* @__PURE__ */ jsx(IconExample, {}) }),
84
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "Example", children: /* @__PURE__ */ jsx(IconExample, {}) }),
85
85
  /* @__PURE__ */ jsx("span", { className: "text-[10px] text-text-disabled font-mono", children: "secondary" })
86
86
  ] }),
87
87
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
88
- /* @__PURE__ */ jsx(IconButton, { size: "small", children: /* @__PURE__ */ jsx(IconExample, {}) }),
88
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "Example", size: "small", children: /* @__PURE__ */ jsx(IconExample, {}) }),
89
89
  /* @__PURE__ */ jsx("span", { className: "text-[10px] text-text-disabled font-mono", children: "small" })
90
90
  ] }),
91
91
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
92
- /* @__PURE__ */ jsx(IconButton, { disabled: true, children: /* @__PURE__ */ jsx(IconExample, {}) }),
92
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "Example", disabled: true, children: /* @__PURE__ */ jsx(IconExample, {}) }),
93
93
  /* @__PURE__ */ jsx("span", { className: "text-[10px] text-text-disabled font-mono", children: "disabled" })
94
94
  ] }),
95
95
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2", children: [
96
- /* @__PURE__ */ jsx(IconButton, { size: "small", children: /* @__PURE__ */ jsx(Trash2Icon, {}) }),
96
+ /* @__PURE__ */ jsx(IconButton, { "aria-label": "Delete", size: "small", children: /* @__PURE__ */ jsx(Trash2Icon, {}) }),
97
97
  /* @__PURE__ */ jsx("span", { className: "text-[10px] text-text-disabled font-mono", children: "delete" })
98
98
  ] })
99
99
  ] }) })
@@ -109,14 +109,14 @@ var UIStyleGuide = () => {
109
109
  };
110
110
 
111
111
  // src/debug/UIReferenceView.tsx
112
- import React10, { useState as useState8 } from "react";
112
+ import React11, { useState as useState9 } from "react";
113
113
  import {
114
114
  Alert as Alert3,
115
115
  AlertCircleIcon,
116
116
  Avatar as Avatar2,
117
117
  AppWindow,
118
118
  BooleanSwitch,
119
- Button as Button9,
119
+ Button as Button10,
120
120
  Checkbox as Checkbox3,
121
121
  ChevronDownIcon,
122
122
  ChevronsLeftIcon,
@@ -135,6 +135,7 @@ import {
135
135
  IconButton as IconButton5,
136
136
  iconSize as iconSize3,
137
137
  KanbanIcon,
138
+ Label as Label2,
138
139
  LayoutGridIcon as LayoutGridIcon2,
139
140
  ListIcon as ListIcon2,
140
141
  LoadingButton,
@@ -148,8 +149,8 @@ import {
148
149
  PencilIcon as PencilIcon3,
149
150
  PlusIcon,
150
151
  SearchBar as SearchBar4,
151
- Select as Select6,
152
- SelectItem as SelectItem6,
152
+ Select as Select7,
153
+ SelectItem as SelectItem7,
153
154
  Separator as Separator5,
154
155
  SettingsIcon as SettingsIcon3,
155
156
  Skeleton as Skeleton6,
@@ -163,11 +164,12 @@ import {
163
164
  TableRow as TableRow2,
164
165
  Tabs,
165
166
  TagIcon,
166
- TextField as TextField3,
167
+ TextField as TextField4,
168
+ ToggleButtonGroup as ToggleButtonGroup3,
167
169
  Tooltip as Tooltip3,
168
170
  Trash2Icon as Trash2Icon3,
169
171
  TypeIcon,
170
- Typography as Typography14,
172
+ Typography as Typography15,
171
173
  UserIcon
172
174
  } from "@rebasepro/ui";
173
175
 
@@ -3143,7 +3145,7 @@ function ShapeSpaceSection() {
3143
3145
  }, className: "w-40" }),
3144
3146
  /* @__PURE__ */ jsx15(Select5, { size, value: "a", onValueChange: () => {
3145
3147
  }, className: "w-40", children: /* @__PURE__ */ jsx15(SelectItem5, { value: "a", children: "Select" }) }),
3146
- /* @__PURE__ */ jsx15(IconButton4, { size, children: /* @__PURE__ */ jsx15(PencilIcon2, { size: size === "smallest" ? 14 : size === "small" ? 16 : size === "medium" ? 20 : 24 }) }),
3148
+ /* @__PURE__ */ jsx15(IconButton4, { "aria-label": "Edit", size, children: /* @__PURE__ */ jsx15(PencilIcon2, { size: size === "smallest" ? 14 : size === "small" ? 16 : size === "medium" ? 20 : 24 }) }),
3147
3149
  /* @__PURE__ */ jsx15(Typography13, { variant: "caption", color: "secondary", className: "basis-full md:basis-auto", children: use })
3148
3150
  ] }, size)) }),
3149
3151
  /* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
@@ -3320,8 +3322,357 @@ function CardsDataSection() {
3320
3322
  ] });
3321
3323
  }
3322
3324
 
3323
- // src/debug/UIReferenceView.tsx
3325
+ // src/debug/ui-reference/ComponentSections.tsx
3326
+ import { useState as useState8 } from "react";
3327
+ import {
3328
+ Autocomplete,
3329
+ AutocompleteItem,
3330
+ Badge,
3331
+ MailIcon as MailIcon3,
3332
+ BooleanSwitchWithLabel,
3333
+ Button as Button9,
3334
+ CenteredView,
3335
+ CircularProgressCenter,
3336
+ Collapse,
3337
+ ColorPicker,
3338
+ DateTimeField,
3339
+ DebouncedTextField,
3340
+ Dialog as Dialog2,
3341
+ DialogActions as DialogActions2,
3342
+ DialogContent as DialogContent2,
3343
+ DialogTitle as DialogTitle2,
3344
+ ExpandablePanel,
3345
+ FileUpload,
3346
+ InfoLabel,
3347
+ InputLabel,
3348
+ Label,
3349
+ Markdown,
3350
+ Menubar,
3351
+ MenubarCheckboxItem,
3352
+ MenubarContent,
3353
+ MenubarItem,
3354
+ MenubarMenu,
3355
+ MenubarRadioGroup,
3356
+ MenubarRadioItem,
3357
+ MenubarSeparator,
3358
+ MenubarShortcut,
3359
+ MenubarSub,
3360
+ MenubarSubContent,
3361
+ MenubarSubTrigger,
3362
+ MenubarTrigger,
3363
+ Popover,
3364
+ RadioGroup,
3365
+ RadioGroupItem,
3366
+ ResizablePanels,
3367
+ Select as Select6,
3368
+ SelectGroup,
3369
+ SelectItem as SelectItem6,
3370
+ Sheet,
3371
+ Slider,
3372
+ TextareaAutosize,
3373
+ TextField as TextField3,
3374
+ ToggleButtonGroup as ToggleButtonGroup2,
3375
+ Typography as Typography14,
3376
+ VirtualTable
3377
+ } from "@rebasepro/ui";
3324
3378
  import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
3379
+ function OverlaysSection() {
3380
+ const [dialogOpen, setDialogOpen] = useState8(false);
3381
+ const [sheetOpen, setSheetOpen] = useState8(false);
3382
+ const [showHidden, setShowHidden] = useState8(true);
3383
+ const [density, setDensity] = useState8("comfortable");
3384
+ return /* @__PURE__ */ jsxs16(SectionBlock, { id: "overlays", title: "Overlays \u2014 Dialog, Sheet, Popover, Menubar", children: [
3385
+ /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4 max-w-[68ch]", children: [
3386
+ "Every overlay is a Radix layer: it traps focus, focuses its own container when it opens (pass ",
3387
+ /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "initialFocus" }),
3388
+ " to focus a field), closes on Escape and returns focus to its opener. A dialog holds work, so a backdrop click does not close it unless it is a picker (",
3389
+ /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "dismissOnBackdrop" }),
3390
+ "). Open each with the keyboard to see the focus ring land."
3391
+ ] }),
3392
+ /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-12 gap-6", children: [
3393
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6", children: [
3394
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Dialog \xB7 DialogTitle + DialogContent + DialogActions" }),
3395
+ /* @__PURE__ */ jsx16(Button9, { variant: "outlined", onClick: () => setDialogOpen(true), children: "Rename collection" }),
3396
+ /* @__PURE__ */ jsxs16(Dialog2, { open: dialogOpen, onOpenChange: setDialogOpen, maxWidth: "md", children: [
3397
+ /* @__PURE__ */ jsx16(DialogTitle2, { children: "Rename collection" }),
3398
+ /* @__PURE__ */ jsx16(DialogContent2, { children: /* @__PURE__ */ jsx16(TextField3, { size: "medium", label: "Name", value: "Products", onChange: () => {
3399
+ } }) }),
3400
+ /* @__PURE__ */ jsxs16(DialogActions2, { children: [
3401
+ /* @__PURE__ */ jsx16(Button9, { variant: "text", onClick: () => setDialogOpen(false), children: "Cancel" }),
3402
+ /* @__PURE__ */ jsx16(Button9, { color: "primary", onClick: () => setDialogOpen(false), children: "Rename" })
3403
+ ] })
3404
+ ] })
3405
+ ] }),
3406
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6", children: [
3407
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: 'Sheet \xB7 side="right"' }),
3408
+ /* @__PURE__ */ jsx16(Button9, { variant: "outlined", onClick: () => setSheetOpen(true), children: "Open side panel" }),
3409
+ /* @__PURE__ */ jsx16(Sheet, { open: sheetOpen, onOpenChange: setSheetOpen, side: "right", title: "Filters", children: /* @__PURE__ */ jsxs16("div", { className: "w-[320px] h-full p-6 flex flex-col gap-4 bg-surface-card", children: [
3410
+ /* @__PURE__ */ jsx16(Typography14, { variant: "subtitle2", children: "Filters" }),
3411
+ /* @__PURE__ */ jsx16(TextField3, { size: "small", label: "Search", placeholder: "Name contains\u2026" }),
3412
+ /* @__PURE__ */ jsx16(Button9, { variant: "outlined", onClick: () => setSheetOpen(false), children: "Close" })
3413
+ ] }) })
3414
+ ] }),
3415
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6", children: [
3416
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Popover" }),
3417
+ /* @__PURE__ */ jsx16(Popover, { trigger: /* @__PURE__ */ jsx16(Button9, { variant: "outlined", children: "Show details" }), children: /* @__PURE__ */ jsxs16("div", { className: "p-4 flex flex-col gap-2 max-w-[260px]", children: [
3418
+ /* @__PURE__ */ jsx16(Typography14, { variant: "subtitle2", children: "Last published" }),
3419
+ /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", children: "Yesterday at 18:04 by Alice Johnson." })
3420
+ ] }) })
3421
+ ] }),
3422
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6", children: [
3423
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Menubar \xB7 items, submenu, checkbox, radio, shortcut" }),
3424
+ /* @__PURE__ */ jsxs16(Menubar, { children: [
3425
+ /* @__PURE__ */ jsxs16(MenubarMenu, { children: [
3426
+ /* @__PURE__ */ jsx16(MenubarTrigger, { children: "File" }),
3427
+ /* @__PURE__ */ jsxs16(MenubarContent, { children: [
3428
+ /* @__PURE__ */ jsxs16(MenubarItem, { children: [
3429
+ "New record ",
3430
+ /* @__PURE__ */ jsx16(MenubarShortcut, { children: "\u2318N" })
3431
+ ] }),
3432
+ /* @__PURE__ */ jsx16(MenubarItem, { disabled: true, children: "Duplicate" }),
3433
+ /* @__PURE__ */ jsx16(MenubarSeparator, {}),
3434
+ /* @__PURE__ */ jsxs16(MenubarSub, { children: [
3435
+ /* @__PURE__ */ jsx16(MenubarSubTrigger, { children: "Export" }),
3436
+ /* @__PURE__ */ jsxs16(MenubarSubContent, { children: [
3437
+ /* @__PURE__ */ jsx16(MenubarItem, { children: "CSV" }),
3438
+ /* @__PURE__ */ jsx16(MenubarItem, { children: "JSON" })
3439
+ ] })
3440
+ ] })
3441
+ ] })
3442
+ ] }),
3443
+ /* @__PURE__ */ jsxs16(MenubarMenu, { children: [
3444
+ /* @__PURE__ */ jsx16(MenubarTrigger, { children: "View" }),
3445
+ /* @__PURE__ */ jsxs16(MenubarContent, { children: [
3446
+ /* @__PURE__ */ jsx16(MenubarCheckboxItem, { checked: showHidden, onCheckedChange: () => setShowHidden(!showHidden), children: "Show hidden fields" }),
3447
+ /* @__PURE__ */ jsx16(MenubarSeparator, {}),
3448
+ /* @__PURE__ */ jsxs16(MenubarRadioGroup, { value: density, onValueChange: setDensity, children: [
3449
+ /* @__PURE__ */ jsx16(MenubarRadioItem, { value: "comfortable", children: "Comfortable" }),
3450
+ /* @__PURE__ */ jsx16(MenubarRadioItem, { value: "compact", children: "Compact" })
3451
+ ] })
3452
+ ] })
3453
+ ] })
3454
+ ] })
3455
+ ] })
3456
+ ] })
3457
+ ] });
3458
+ }
3459
+ function DisclosureLayoutSection() {
3460
+ const [collapseOpen, setCollapseOpen] = useState8(false);
3461
+ const [split, setSplit] = useState8(40);
3462
+ return /* @__PURE__ */ jsx16(SectionBlock, { id: "disclosure", title: "Disclosure and layout", children: /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-12 gap-6", children: [
3463
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3464
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "ExpandablePanel \xB7 expanded, collapsed" }),
3465
+ /* @__PURE__ */ jsx16(ExpandablePanel, { title: /* @__PURE__ */ jsx16(Typography14, { variant: "subtitle2", children: "SEO" }), children: /* @__PURE__ */ jsx16("div", { className: "p-4 flex flex-col gap-3", children: /* @__PURE__ */ jsx16(TextField3, { size: "small", label: "Meta title", value: "Italian coffee maker", onChange: () => {
3466
+ } }) }) }),
3467
+ /* @__PURE__ */ jsx16(ExpandablePanel, { initiallyExpanded: false, title: /* @__PURE__ */ jsx16(Typography14, { variant: "subtitle2", children: "Advanced" }), children: /* @__PURE__ */ jsx16("div", { className: "p-4", children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", children: "Hidden until expanded." }) }) })
3468
+ ] }),
3469
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3470
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Collapse" }),
3471
+ /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsx16(Button9, { variant: "text", size: "small", "aria-expanded": collapseOpen, onClick: () => setCollapseOpen(!collapseOpen), children: collapseOpen ? "Hide details" : "Show details" }) }),
3472
+ /* @__PURE__ */ jsx16(Collapse, { in: collapseOpen, children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", children: "Collapse animates height only; it has no trigger of its own." }) })
3473
+ ] }),
3474
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12", children: [
3475
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "ResizablePanels \xB7 drag the divider, or focus it and use \u2190/\u2192 (Shift for 10%)" }),
3476
+ /* @__PURE__ */ jsx16("div", { className: "h-40 border border-hairline rounded-lg overflow-hidden", children: /* @__PURE__ */ jsx16(
3477
+ ResizablePanels,
3478
+ {
3479
+ dividerAriaLabel: "Resize the list",
3480
+ orientation: "horizontal",
3481
+ panelSizePercent: split,
3482
+ onPanelSizeChange: setSplit,
3483
+ minPanelSizePx: 120,
3484
+ firstPanel: /* @__PURE__ */ jsx16("div", { className: "h-full p-3 bg-surface-card", children: /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", children: [
3485
+ "List \u2014 ",
3486
+ Math.round(split),
3487
+ "%"
3488
+ ] }) }),
3489
+ secondPanel: /* @__PURE__ */ jsx16("div", { className: "h-full p-3", children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", children: "Detail" }) })
3490
+ }
3491
+ ) })
3492
+ ] }),
3493
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6", children: [
3494
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: 'CenteredView \xB7 maxWidth="md"' }),
3495
+ /* @__PURE__ */ jsx16("div", { className: "border border-hairline rounded-lg", children: /* @__PURE__ */ jsx16(CenteredView, { maxWidth: "md", className: "py-6", children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", align: "center", children: "A centred, measured column." }) }) })
3496
+ ] }),
3497
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6", children: [
3498
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "CircularProgressCenter \xB7 a loading pane" }),
3499
+ /* @__PURE__ */ jsx16("div", { className: "h-32 border border-hairline rounded-lg flex", children: /* @__PURE__ */ jsx16(CircularProgressCenter, { size: "small", text: "Loading records\u2026" }) })
3500
+ ] })
3501
+ ] }) });
3502
+ }
3503
+ function MoreControlsSection() {
3504
+ const [published, setPublished] = useState8(true);
3505
+ const [date, setDate] = useState8(new Date(2026, 9, 11, 9, 30));
3506
+ const [debounced, setDebounced] = useState8("Debounced value");
3507
+ const [notes, setNotes] = useState8("A textarea that grows\nwith its content.");
3508
+ const [visibility, setVisibility] = useState8("public");
3509
+ const [volume, setVolume] = useState8([40]);
3510
+ const [colour, setColour] = useState8("blueLight");
3511
+ const [viewMode, setViewMode] = useState8("table");
3512
+ const [query, setQuery] = useState8("");
3513
+ const [autocompleteOpen, setAutocompleteOpen] = useState8(false);
3514
+ const suggestions = ["Alessi", "Bialetti", "Bodum", "Hario"].filter((s) => s.toLowerCase().includes(query.toLowerCase()));
3515
+ return /* @__PURE__ */ jsx16(SectionBlock, { id: "more-controls", title: "More form controls", children: /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-12 gap-6", children: [
3516
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3517
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "BooleanSwitchWithLabel \xB7 every boolean field" }),
3518
+ /* @__PURE__ */ jsx16(BooleanSwitchWithLabel, { label: "Published", value: published, onValueChange: setPublished, size: "small" }),
3519
+ /* @__PURE__ */ jsx16(BooleanSwitchWithLabel, { label: "Disabled", value: true, disabled: true, size: "small" }),
3520
+ /* @__PURE__ */ jsx16(BooleanSwitchWithLabel, { label: "With an error", value: false, error: true, size: "small" })
3521
+ ] }),
3522
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3523
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "DateTimeField \xB7 date, date_time, time, disabled, error" }),
3524
+ /* @__PURE__ */ jsx16(DateTimeField, { size: "small", mode: "date", label: "Publish date", value: date, onChange: setDate, clearable: true }),
3525
+ /* @__PURE__ */ jsx16(DateTimeField, { size: "small", mode: "date_time", label: "Publish at", value: date, onChange: setDate }),
3526
+ /* @__PURE__ */ jsx16(DateTimeField, { size: "small", mode: "time", timezone: "UTC", label: "Opens at", value: date, onChange: setDate }),
3527
+ /* @__PURE__ */ jsx16(DateTimeField, { size: "small", mode: "date", label: "Disabled", value: date, onChange: () => {
3528
+ }, disabled: true }),
3529
+ /* @__PURE__ */ jsx16(DateTimeField, { size: "small", mode: "date", label: "Error", value: null, onChange: () => {
3530
+ }, error: true })
3531
+ ] }),
3532
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3533
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "DebouncedTextField \xB7 reports after typing pauses" }),
3534
+ /* @__PURE__ */ jsx16(DebouncedTextField, { size: "small", label: "Title", value: debounced, onChange: (e) => setDebounced(e.target.value) }),
3535
+ /* @__PURE__ */ jsx16(SpecimenLabel, { className: "mt-2", children: "TextareaAutosize" }),
3536
+ /* @__PURE__ */ jsx16(
3537
+ TextareaAutosize,
3538
+ {
3539
+ "aria-label": "Notes",
3540
+ minRows: 2,
3541
+ maxRows: 6,
3542
+ value: notes,
3543
+ onChange: (e) => setNotes(e.target.value),
3544
+ className: "w-full rounded-lg border border-hairline bg-surface-field px-3 py-2 text-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50"
3545
+ }
3546
+ )
3547
+ ] }),
3548
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3549
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Label \xB7 InputLabel" }),
3550
+ /* @__PURE__ */ jsx16(Label, { htmlFor: "ref-label-field", children: "Label, tied to its field" }),
3551
+ /* @__PURE__ */ jsx16(TextField3, { id: "ref-label-field", size: "small", placeholder: "Focus me through the label" }),
3552
+ /* @__PURE__ */ jsx16(Label, { border: true, children: "Label with a border" }),
3553
+ /* @__PURE__ */ jsx16("div", { className: "relative h-10 border border-hairline rounded-lg", children: /* @__PURE__ */ jsx16(InputLabel, { shrink: true, children: "InputLabel (shrunk)" }) })
3554
+ ] }),
3555
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3556
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "RadioGroup \xB7 RadioGroupItem, one disabled" }),
3557
+ /* @__PURE__ */ jsx16(RadioGroup, { value: visibility, onValueChange: setVisibility, className: "flex flex-col gap-2", children: [["public", "Public", false], ["private", "Private", false], ["archived", "Archived", true]].map(([value, label, disabled]) => /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
3558
+ /* @__PURE__ */ jsx16(RadioGroupItem, { id: `ref-radio-${value}`, value: String(value), disabled: Boolean(disabled) }),
3559
+ /* @__PURE__ */ jsx16(Label, { htmlFor: `ref-radio-${value}`, children: String(label) })
3560
+ ] }, String(value))) })
3561
+ ] }),
3562
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3563
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Slider \xB7 regular, small, disabled" }),
3564
+ /* @__PURE__ */ jsx16(Slider, { value: volume, onValueChange: setVolume, min: 0, max: 100 }),
3565
+ /* @__PURE__ */ jsx16(Slider, { size: "small", value: volume, onValueChange: setVolume, min: 0, max: 100 }),
3566
+ /* @__PURE__ */ jsx16(Slider, { disabled: true, defaultValue: [70], min: 0, max: 100 })
3567
+ ] }),
3568
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3569
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "ColorPicker \xB7 with Auto, disabled" }),
3570
+ /* @__PURE__ */ jsx16(ColorPicker, { value: colour, onChange: setColour, allowClear: true }),
3571
+ /* @__PURE__ */ jsx16(ColorPicker, { value: "greenLight", onChange: () => {
3572
+ }, size: "small", disabled: true })
3573
+ ] }),
3574
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3575
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Select \xB7 SelectGroup" }),
3576
+ /* @__PURE__ */ jsxs16(Select6, { size: "small", label: "Field type", value: "string", onValueChange: () => {
3577
+ }, children: [
3578
+ /* @__PURE__ */ jsxs16(SelectGroup, { label: "Text", children: [
3579
+ /* @__PURE__ */ jsx16(SelectItem6, { value: "string", children: "Text" }),
3580
+ /* @__PURE__ */ jsx16(SelectItem6, { value: "markdown", children: "Markdown" })
3581
+ ] }),
3582
+ /* @__PURE__ */ jsx16(SelectGroup, { label: "Numbers", children: /* @__PURE__ */ jsx16(SelectItem6, { value: "number", children: "Number" }) })
3583
+ ] }),
3584
+ /* @__PURE__ */ jsx16(SpecimenLabel, { className: "mt-2", children: "ToggleButtonGroup \xB7 named, one option disabled" }),
3585
+ /* @__PURE__ */ jsx16(
3586
+ ToggleButtonGroup2,
3587
+ {
3588
+ "aria-label": "View mode",
3589
+ value: viewMode,
3590
+ onValueChange: setViewMode,
3591
+ options: [
3592
+ { value: "table", label: "Table" },
3593
+ { value: "cards", label: "Cards" },
3594
+ { value: "kanban", label: "Board", disabled: true }
3595
+ ]
3596
+ }
3597
+ )
3598
+ ] }),
3599
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3600
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "FileUpload" }),
3601
+ /* @__PURE__ */ jsx16(FileUpload, { size: "small", onFilesAdded: () => {
3602
+ }, uploadDescription: "Drop images here or click to choose" }),
3603
+ /* @__PURE__ */ jsx16(FileUpload, { size: "small", disabled: true, onFilesAdded: () => {
3604
+ }, uploadDescription: "Disabled" })
3605
+ ] }),
3606
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3607
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Autocomplete \xB7 AutocompleteItem" }),
3608
+ /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: "Pointer only: its items have no role and no keyboard path, and it is not portalled, so an overflow ancestor clips it. Prefer Select or MultiSelect until the kit has a combobox." }),
3609
+ /* @__PURE__ */ jsxs16("div", { className: "relative", children: [
3610
+ /* @__PURE__ */ jsx16(
3611
+ TextField3,
3612
+ {
3613
+ size: "small",
3614
+ label: "Brand",
3615
+ value: query,
3616
+ onFocus: () => setAutocompleteOpen(true),
3617
+ onChange: (e) => {
3618
+ setQuery(e.target.value);
3619
+ setAutocompleteOpen(true);
3620
+ }
3621
+ }
3622
+ ),
3623
+ /* @__PURE__ */ jsx16(Autocomplete, { open: autocompleteOpen && suggestions.length > 0, setOpen: setAutocompleteOpen, children: suggestions.map((suggestion) => /* @__PURE__ */ jsx16(AutocompleteItem, { onClick: () => {
3624
+ setQuery(suggestion);
3625
+ setAutocompleteOpen(false);
3626
+ }, children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", children: suggestion }) }, suggestion)) })
3627
+ ] })
3628
+ ] })
3629
+ ] }) });
3630
+ }
3631
+ var VIRTUAL_ROWS = Array.from({ length: 200 }, (_, i) => ({
3632
+ name: `Record ${i + 1}`,
3633
+ status: i % 3 === 0 ? "Draft" : "Published",
3634
+ updated: `2026-10-${String(i % 28 + 1).padStart(2, "0")}`
3635
+ }));
3636
+ var VIRTUAL_COLUMNS = [
3637
+ { key: "name", title: "Name", width: 220 },
3638
+ { key: "status", title: "Status", width: 140 },
3639
+ { key: "updated", title: "Updated", width: 160 }
3640
+ ];
3641
+ function DataDisplaySection() {
3642
+ return /* @__PURE__ */ jsx16(SectionBlock, { id: "data-display", title: "Data display \u2014 Badge, InfoLabel, Markdown, VirtualTable", children: /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-12 gap-6", children: [
3643
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3644
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "Badge \xB7 primary, secondary, warning, error, invisible" }),
3645
+ /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-6", children: [
3646
+ ["primary", "secondary", "warning", "error"].map((color) => /* @__PURE__ */ jsx16(Badge, { color, children: /* @__PURE__ */ jsx16(MailIcon3, { size: 20, "aria-label": `Messages (${color})` }) }, color)),
3647
+ /* @__PURE__ */ jsx16(Badge, { invisible: true, children: /* @__PURE__ */ jsx16(MailIcon3, { size: 20, "aria-label": "No new messages" }) })
3648
+ ] })
3649
+ ] }),
3650
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3651
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "InfoLabel \xB7 info, warn" }),
3652
+ /* @__PURE__ */ jsx16(InfoLabel, { children: "The slug is generated from the title." }),
3653
+ /* @__PURE__ */ jsx16(InfoLabel, { mode: "warn", children: "Changing the slug breaks existing links." })
3654
+ ] }),
3655
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12", children: [
3656
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: 'Markdown \xB7 size="small"' }),
3657
+ /* @__PURE__ */ jsx16(Markdown, { size: "small", source: "### Release notes\n\nA **bold** claim, a [link](https://rebase.pro) and a list:\n\n- one\n- two\n\n`inline code`" })
3658
+ ] }),
3659
+ /* @__PURE__ */ jsxs16("div", { className: "col-span-12", children: [
3660
+ /* @__PURE__ */ jsx16(SpecimenLabel, { children: "VirtualTable \xB7 200 rows, only the visible ones rendered" }),
3661
+ /* @__PURE__ */ jsx16("div", { className: "h-64 border border-hairline rounded-lg overflow-hidden", children: /* @__PURE__ */ jsx16(
3662
+ VirtualTable,
3663
+ {
3664
+ data: VIRTUAL_ROWS,
3665
+ columns: VIRTUAL_COLUMNS,
3666
+ rowHeight: 40,
3667
+ cellRenderer: ({ rowData, column }) => /* @__PURE__ */ jsx16("div", { className: "px-3 flex items-center h-full", children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", noWrap: true, children: rowData ? rowData[column.key] : "" }) })
3668
+ }
3669
+ ) })
3670
+ ] })
3671
+ ] }) });
3672
+ }
3673
+
3674
+ // src/debug/UIReferenceView.tsx
3675
+ import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
3325
3676
  var SECTIONS = [
3326
3677
  { id: "principles", label: "Principles", icon: SunMoonIcon, group: "System" },
3327
3678
  { id: "surfaces", label: "Surfaces", icon: LayoutGridIcon2, group: "System" },
@@ -3335,8 +3686,12 @@ var SECTIONS = [
3335
3686
  { id: "editor-sidebar", label: "Editor sidebar", icon: ColumnsIcon, group: "Shell" },
3336
3687
  { id: "buttons", label: "Buttons", icon: PlusIcon, group: "Controls" },
3337
3688
  { id: "inputs", label: "Form inputs", icon: FileTextIcon3, group: "Controls" },
3689
+ { id: "more-controls", label: "More form controls", icon: FileTextIcon3, group: "Controls" },
3690
+ { id: "overlays", label: "Overlays", icon: AppWindow, group: "Controls" },
3691
+ { id: "disclosure", label: "Disclosure and layout", icon: ColumnsIcon, group: "Controls" },
3338
3692
  { id: "chips-alerts", label: "Chips and alerts", icon: TagIcon, group: "Controls" },
3339
3693
  { id: "data", label: "Cards and data", icon: LayoutGridIcon2, group: "Controls" },
3694
+ { id: "data-display", label: "Data display", icon: ListIcon2, group: "Controls" },
3340
3695
  { id: "empty-states", label: "Empty states", icon: FileIcon, group: "Screens" },
3341
3696
  { id: "users", label: "Management", icon: UserIcon, group: "Screens" },
3342
3697
  { id: "user-dialog", label: "Form dialog", icon: CircleUserIcon, group: "Screens" },
@@ -3347,8 +3702,9 @@ var SECTIONS = [
3347
3702
  ];
3348
3703
  var SECTION_GROUPS = ["System", "Shell", "Controls", "Screens"];
3349
3704
  function UIReferenceView() {
3350
- const [activeSection, setActiveSection] = useState8("principles");
3351
- const scrollContainerRef = React10.useRef(null);
3705
+ const [activeSection, setActiveSection] = useState9("principles");
3706
+ const [panelMode, setPanelMode] = useState9("cms");
3707
+ const scrollContainerRef = React11.useRef(null);
3352
3708
  const scrollTo = (id) => {
3353
3709
  const el = document.getElementById(id);
3354
3710
  const container = scrollContainerRef.current;
@@ -3358,21 +3714,21 @@ function UIReferenceView() {
3358
3714
  }
3359
3715
  setActiveSection(id);
3360
3716
  };
3361
- return /* @__PURE__ */ jsxs16("div", { className: "flex w-full", children: [
3362
- /* @__PURE__ */ jsxs16("div", { className: cls12("flex flex-col sticky top-0 h-screen grow-0 shrink-0 w-[232px] border-r", defaultBorderMixin6), children: [
3363
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-row items-center shrink-0 pt-4 pb-2 px-2", children: [
3364
- /* @__PURE__ */ jsx16("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[40px]", children: /* @__PURE__ */ jsx16(RebaseLogo, { width: "28px", height: "28px" }) }),
3365
- /* @__PURE__ */ jsx16(Typography14, { variant: "subtitle1", noWrap: true, className: "truncate", children: "UI Ref" })
3717
+ return /* @__PURE__ */ jsxs17("div", { className: "flex w-full", children: [
3718
+ /* @__PURE__ */ jsxs17("div", { className: cls12("flex flex-col sticky top-0 h-screen grow-0 shrink-0 w-[232px] border-r", defaultBorderMixin6), children: [
3719
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-row items-center shrink-0 pt-4 pb-2 px-2", children: [
3720
+ /* @__PURE__ */ jsx17("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[40px]", children: /* @__PURE__ */ jsx17(RebaseLogo, { width: "28px", height: "28px" }) }),
3721
+ /* @__PURE__ */ jsx17(Typography15, { variant: "subtitle1", noWrap: true, className: "truncate", children: "UI Ref" })
3366
3722
  ] }),
3367
- /* @__PURE__ */ jsx16("div", { className: "mt-3 flex-grow overflow-scroll no-scrollbar", children: SECTION_GROUPS.map((group) => /* @__PURE__ */ jsxs16("div", { className: "my-2 mx-2 flex flex-col", children: [
3368
- /* @__PURE__ */ jsxs16("div", { className: "pl-3 pr-2 py-0.5 flex flex-row items-center transition-colors cursor-pointer hover:bg-surface-hover rounded-lg", children: [
3369
- /* @__PURE__ */ jsx16(ChevronDownIcon, { size: iconSize3.small, className: "text-surface-400 dark:text-surface-400 transition-transform duration-200 mr-1" }),
3370
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "font-semibold text-[11px] uppercase tracking-wider flex-grow line-clamp-1 text-surface-400 dark:text-surface-400", children: group })
3723
+ /* @__PURE__ */ jsx17("div", { className: "mt-3 flex-grow overflow-scroll no-scrollbar", children: SECTION_GROUPS.map((group) => /* @__PURE__ */ jsxs17("div", { className: "my-2 mx-2 flex flex-col", children: [
3724
+ /* @__PURE__ */ jsxs17("div", { className: "pl-3 pr-2 py-0.5 flex flex-row items-center transition-colors cursor-pointer hover:bg-surface-hover rounded-lg", children: [
3725
+ /* @__PURE__ */ jsx17(ChevronDownIcon, { size: iconSize3.small, className: "text-surface-400 dark:text-surface-400 transition-transform duration-200 mr-1" }),
3726
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "font-semibold text-[11px] uppercase tracking-wider flex-grow line-clamp-1 text-surface-400 dark:text-surface-400", children: group })
3371
3727
  ] }),
3372
- /* @__PURE__ */ jsx16("div", { className: "flex flex-col", children: SECTIONS.filter((s) => s.group === group).map((s) => {
3728
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-col", children: SECTIONS.filter((s) => s.group === group).map((s) => {
3373
3729
  const IconComponent = s.icon;
3374
3730
  const active = activeSection === s.id;
3375
- return /* @__PURE__ */ jsxs16(
3731
+ return /* @__PURE__ */ jsxs17(
3376
3732
  "div",
3377
3733
  {
3378
3734
  onClick: () => scrollTo(s.id),
@@ -3384,60 +3740,60 @@ function UIReferenceView() {
3384
3740
  active ? "bg-primary/8 dark:bg-primary/10 text-primary dark:text-primary [&_div]:text-primary" : ""
3385
3741
  ),
3386
3742
  children: [
3387
- /* @__PURE__ */ jsx16("div", { className: "shrink-0 flex items-center justify-center w-[44px] h-[30px] text-surface-500 dark:text-text-secondary-dark [&>svg]:size-4 group-hover/nav:text-primary transition-colors duration-150", children: /* @__PURE__ */ jsx16(IconComponent, { size: iconSize3.smallest }) }),
3388
- /* @__PURE__ */ jsx16("div", { className: "text-text-primary dark:text-surface-200 font-inherit truncate", children: s.label })
3743
+ /* @__PURE__ */ jsx17("div", { className: "shrink-0 flex items-center justify-center w-[44px] h-[30px] text-surface-500 dark:text-text-secondary-dark [&>svg]:size-4 group-hover/nav:text-primary transition-colors duration-150", children: /* @__PURE__ */ jsx17(IconComponent, { size: iconSize3.smallest }) }),
3744
+ /* @__PURE__ */ jsx17("div", { className: "text-text-primary dark:text-surface-200 font-inherit truncate", children: s.label })
3389
3745
  ]
3390
3746
  },
3391
3747
  s.id
3392
3748
  );
3393
3749
  }) })
3394
3750
  ] }, group)) }),
3395
- /* @__PURE__ */ jsx16("div", { className: cls12("shrink-0 mt-auto border-t px-2 py-2", defaultBorderMixin6), children: /* @__PURE__ */ jsxs16("div", { className: cls12(
3751
+ /* @__PURE__ */ jsx17("div", { className: cls12("shrink-0 mt-auto border-t px-2 py-2", defaultBorderMixin6), children: /* @__PURE__ */ jsxs17("div", { className: cls12(
3396
3752
  "flex flex-row items-center rounded-lg cursor-pointer",
3397
3753
  "hover:bg-surface-hover",
3398
3754
  "transition-colors duration-150",
3399
3755
  "py-2"
3400
3756
  ), children: [
3401
- /* @__PURE__ */ jsx16("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[24px] text-surface-500 dark:text-surface-400", children: /* @__PURE__ */ jsx16(ChevronsLeftIcon, { size: iconSize3.small }) }),
3402
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", className: "text-surface-500 dark:text-surface-400 select-none whitespace-nowrap", children: "Collapse" })
3757
+ /* @__PURE__ */ jsx17("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[24px] text-surface-500 dark:text-surface-400", children: /* @__PURE__ */ jsx17(ChevronsLeftIcon, { size: iconSize3.small }) }),
3758
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", className: "text-surface-500 dark:text-surface-400 select-none whitespace-nowrap", children: "Collapse" })
3403
3759
  ] }) })
3404
3760
  ] }),
3405
- /* @__PURE__ */ jsxs16("div", { ref: scrollContainerRef, className: "flex-1 min-w-0", children: [
3406
- /* @__PURE__ */ jsx16(PrinciplesSection, {}),
3407
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "surfaces", title: "Surfaces \u2014 theme.css, styles.ts", children: [
3408
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
3761
+ /* @__PURE__ */ jsxs17("div", { ref: scrollContainerRef, className: "flex-1 min-w-0", children: [
3762
+ /* @__PURE__ */ jsx17(PrinciplesSection, {}),
3763
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "surfaces", title: "Surfaces \u2014 theme.css, styles.ts", children: [
3764
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
3409
3765
  "A surface is named by role and the theme decides the value. Frame, sheet and card each sit one step lighter than the one below; above the card, raised and field are grey on both themes. A hairline marks an object (a card, a field, a floating panel), never a region (a tile, a row, a track), with one exception: the sheet edge against the frame, where the step alone is too small to read. See ",
3410
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "packages/ui/DESIGN.md" }),
3766
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "packages/ui/DESIGN.md" }),
3411
3767
  "."
3412
3768
  ] }),
3413
- /* @__PURE__ */ jsxs16("div", { className: "bg-surface-frame rounded-xl p-4", children: [
3414
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "typography-micro block mb-2 text-text-secondary dark:text-text-secondary-dark", children: "frame \xB7 bg-surface-frame" }),
3415
- /* @__PURE__ */ jsxs16("div", { className: "bg-surface-sheet border border-hairline rounded-xl p-4", children: [
3416
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "typography-micro block mb-3 text-text-secondary dark:text-text-secondary-dark", children: "sheet \xB7 bg-surface-sheet" }),
3417
- /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
3418
- /* @__PURE__ */ jsxs16("div", { className: "bg-surface-card border border-hairline rounded-xl p-4", children: [
3419
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "typography-micro block mb-3 text-text-secondary dark:text-text-secondary-dark", children: "card \xB7 bg-surface-card + border-hairline" }),
3420
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center gap-2 mb-3", children: [
3421
- /* @__PURE__ */ jsx16("div", { className: "bg-surface-raised hover:bg-surface-raised-hover transition-colors rounded-lg px-3 py-1.5 text-sm", children: "raised" }),
3422
- /* @__PURE__ */ jsx16("div", { className: "bg-surface-field hover:bg-surface-field-hover transition-colors rounded-lg px-3 py-1.5 text-sm text-text-secondary dark:text-text-secondary-dark", children: "field" }),
3423
- /* @__PURE__ */ jsxs16("div", { className: "bg-surface-field rounded-lg p-1 inline-flex gap-1 text-sm", children: [
3424
- /* @__PURE__ */ jsx16("span", { className: "bg-surface-lifted rounded-md px-3 py-0.5 shadow-sm", children: "lifted" }),
3425
- /* @__PURE__ */ jsx16("span", { className: "px-3 py-0.5 text-text-secondary dark:text-text-secondary-dark", children: "track" })
3769
+ /* @__PURE__ */ jsxs17("div", { className: "bg-surface-frame rounded-xl p-4", children: [
3770
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "typography-micro block mb-2 text-text-secondary dark:text-text-secondary-dark", children: "frame \xB7 bg-surface-frame" }),
3771
+ /* @__PURE__ */ jsxs17("div", { className: "bg-surface-sheet border border-hairline rounded-xl p-4", children: [
3772
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "typography-micro block mb-3 text-text-secondary dark:text-text-secondary-dark", children: "sheet \xB7 bg-surface-sheet" }),
3773
+ /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
3774
+ /* @__PURE__ */ jsxs17("div", { className: "bg-surface-card border border-hairline rounded-xl p-4", children: [
3775
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "typography-micro block mb-3 text-text-secondary dark:text-text-secondary-dark", children: "card \xB7 bg-surface-card + border-hairline" }),
3776
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-wrap items-center gap-2 mb-3", children: [
3777
+ /* @__PURE__ */ jsx17("div", { className: "bg-surface-raised hover:bg-surface-raised-hover transition-colors rounded-lg px-3 py-1.5 text-sm", children: "raised" }),
3778
+ /* @__PURE__ */ jsx17("div", { className: "bg-surface-field hover:bg-surface-field-hover transition-colors rounded-lg px-3 py-1.5 text-sm text-text-secondary dark:text-text-secondary-dark", children: "field" }),
3779
+ /* @__PURE__ */ jsxs17("div", { className: "bg-surface-field rounded-lg p-1 inline-flex gap-1 text-sm", children: [
3780
+ /* @__PURE__ */ jsx17("span", { className: "bg-surface-lifted rounded-md px-3 py-0.5 shadow-sm", children: "lifted" }),
3781
+ /* @__PURE__ */ jsx17("span", { className: "px-3 py-0.5 text-text-secondary dark:text-text-secondary-dark", children: "track" })
3426
3782
  ] })
3427
3783
  ] }),
3428
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-0.5", children: [
3429
- /* @__PURE__ */ jsx16("div", { className: "px-3 py-1.5 text-sm rounded-md hover:bg-surface-hover transition-colors cursor-default", children: "row \xB7 hover:bg-surface-hover" }),
3430
- /* @__PURE__ */ jsx16("div", { className: "px-3 py-1.5 text-sm rounded-md bg-surface-active", children: "row \xB7 bg-surface-active" })
3784
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-0.5", children: [
3785
+ /* @__PURE__ */ jsx17("div", { className: "px-3 py-1.5 text-sm rounded-md hover:bg-surface-hover transition-colors cursor-default", children: "row \xB7 hover:bg-surface-hover" }),
3786
+ /* @__PURE__ */ jsx17("div", { className: "px-3 py-1.5 text-sm rounded-md bg-surface-active", children: "row \xB7 bg-surface-active" })
3431
3787
  ] })
3432
3788
  ] }),
3433
- /* @__PURE__ */ jsxs16("div", { className: "bg-surface-card border border-hairline-strong rounded-lg p-4 shadow-lg self-start", children: [
3434
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "typography-micro block mb-3 text-text-secondary dark:text-text-secondary-dark", children: "floating \xB7 paperMixin, border-hairline-strong" }),
3435
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", children: "A menu, a popover, a dialog. The stronger line is what lets it read against anything underneath." })
3789
+ /* @__PURE__ */ jsxs17("div", { className: "bg-surface-card border border-hairline-strong rounded-lg p-4 shadow-lg self-start", children: [
3790
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "typography-micro block mb-3 text-text-secondary dark:text-text-secondary-dark", children: "floating \xB7 paperMixin, border-hairline-strong" }),
3791
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", children: "A menu, a popover, a dialog. The stronger line is what lets it read against anything underneath." })
3436
3792
  ] })
3437
3793
  ] })
3438
3794
  ] })
3439
3795
  ] }),
3440
- /* @__PURE__ */ jsx16("div", { className: "mt-4 grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-2", children: [
3796
+ /* @__PURE__ */ jsx17("div", { className: "mt-4 grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 gap-2", children: [
3441
3797
  ["frame", "bg-surface-frame"],
3442
3798
  ["sheet", "bg-surface-sheet"],
3443
3799
  ["card", "bg-surface-card"],
@@ -3446,278 +3802,287 @@ function UIReferenceView() {
3446
3802
  ["well", "bg-surface-well"],
3447
3803
  ["hairline", "border-hairline"],
3448
3804
  ["hairline strong", "border-hairline-strong"]
3449
- ].map(([label, cn]) => /* @__PURE__ */ jsx16("div", { className: cls12("rounded-lg h-14 flex items-end p-2 border", cn.startsWith("bg-") ? cn + " border-hairline" : "bg-surface-card " + cn), children: /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "font-mono text-text-secondary dark:text-text-secondary-dark", children: label }) }, cn)) })
3805
+ ].map(([label, cn]) => /* @__PURE__ */ jsx17("div", { className: cls12("rounded-lg h-14 flex items-end p-2 border", cn.startsWith("bg-") ? cn + " border-hairline" : "bg-surface-card " + cn), children: /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "font-mono text-text-secondary dark:text-text-secondary-dark", children: label }) }, cn)) })
3450
3806
  ] }),
3451
- /* @__PURE__ */ jsx16(ColourSection, {}),
3452
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "typography", title: "Typography", children: [
3453
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", className: "mb-4 max-w-[68ch]", children: "Instrument Sans for headings, Inter for everything read, JetBrains Mono for everything measured. The ladder is monotonic: 600 for h1\u2013h4, 500 for h5, h6 and labels, 400 for copy, and 700 never. The display end separates itself by size and tracking, not by weight. Each row names its variant and the rendered size, weight and tracking tier it resolves to." }),
3454
- /* @__PURE__ */ jsx16("div", { className: "flex flex-col gap-3", children: TYPE_LADDER.map(([v, spec]) => /* @__PURE__ */ jsxs16("div", { className: cls12("flex flex-col sm:flex-row sm:items-baseline gap-1 sm:gap-4 border-b pb-3 last:border-0", defaultBorderMixin6), children: [
3455
- /* @__PURE__ */ jsxs16("span", { className: "w-56 shrink-0 text-[11px] text-text-secondary dark:text-text-secondary-dark font-mono", children: [
3807
+ /* @__PURE__ */ jsx17(ColourSection, {}),
3808
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "typography", title: "Typography", children: [
3809
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", color: "secondary", className: "mb-4 max-w-[68ch]", children: "Instrument Sans for headings, Inter for everything read, JetBrains Mono for everything measured. The ladder is monotonic: 600 for h1\u2013h4, 500 for h5, h6 and labels, 400 for copy, and 700 never. The display end separates itself by size and tracking, not by weight. Each row names its variant and the rendered size, weight and tracking tier it resolves to." }),
3810
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-3", children: TYPE_LADDER.map(([v, spec]) => /* @__PURE__ */ jsxs17("div", { className: cls12("flex flex-col sm:flex-row sm:items-baseline gap-1 sm:gap-4 border-b pb-3 last:border-0", defaultBorderMixin6), children: [
3811
+ /* @__PURE__ */ jsxs17("span", { className: "w-56 shrink-0 text-[11px] text-text-secondary dark:text-text-secondary-dark font-mono", children: [
3456
3812
  v,
3457
3813
  " ",
3458
- /* @__PURE__ */ jsxs16("span", { className: "text-text-disabled dark:text-text-disabled-dark", children: [
3814
+ /* @__PURE__ */ jsxs17("span", { className: "text-text-disabled dark:text-text-disabled-dark", children: [
3459
3815
  "\xB7 ",
3460
3816
  spec
3461
3817
  ] })
3462
3818
  ] }),
3463
- /* @__PURE__ */ jsx16(Typography14, { variant: v, component: "p", children: "The quick brown fox jumps over the lazy dog" })
3819
+ /* @__PURE__ */ jsx17(Typography15, { variant: v, component: "p", children: "The quick brown fox jumps over the lazy dog" })
3464
3820
  ] }, v)) }),
3465
- /* @__PURE__ */ jsx16("div", { className: "flex gap-4 flex-wrap mt-4", children: ["primary", "secondary", "disabled", "error"].map((c) => /* @__PURE__ */ jsxs16(Typography14, { color: c, children: [
3821
+ /* @__PURE__ */ jsx17("div", { className: "flex gap-4 flex-wrap mt-4", children: ["primary", "secondary", "disabled", "error"].map((c) => /* @__PURE__ */ jsxs17(Typography15, { color: c, children: [
3466
3822
  'color="',
3467
3823
  c,
3468
3824
  '"'
3469
3825
  ] }, c)) }),
3470
- /* @__PURE__ */ jsxs16("div", { className: cls12("mt-8 pt-6 border-t", defaultBorderMixin6), children: [
3471
- /* @__PURE__ */ jsx16(Typography14, { variant: "subtitle2", className: "block mb-1", children: "Data tiers" }),
3472
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "block mb-5 max-w-[65ch]", children: [
3826
+ /* @__PURE__ */ jsxs17("div", { className: cls12("mt-8 pt-6 border-t", defaultBorderMixin6), children: [
3827
+ /* @__PURE__ */ jsx17(Typography15, { variant: "subtitle2", className: "block mb-1", children: "Data tiers" }),
3828
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "block mb-5 max-w-[65ch]", children: [
3473
3829
  "For values that are looked up rather than read: a field name, a measurement, a headline figure. ",
3474
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "mono" }),
3830
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "mono" }),
3475
3831
  " and",
3476
3832
  " ",
3477
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "stat" }),
3833
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "stat" }),
3478
3834
  " both carry",
3479
3835
  " ",
3480
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "tabular-nums" }),
3836
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "tabular-nums" }),
3481
3837
  ", so a column of them keeps its decimal points aligned and a live counter does not jitter as its digits change width. The mono tier carries counts, sizes, times, ids and paths; it never carries a sentence."
3482
3838
  ] }),
3483
- /* @__PURE__ */ jsx16("div", { className: "flex flex-wrap items-start gap-x-12 gap-y-5", children: [
3839
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-wrap items-start gap-x-12 gap-y-5", children: [
3484
3840
  ["Region", "europe-west1"],
3485
3841
  ["Took", "32.2s"],
3486
3842
  ["Last run", "16/08/2026, 05:30:32"]
3487
- ].map(([label, value]) => /* @__PURE__ */ jsxs16("div", { children: [
3488
- /* @__PURE__ */ jsx16(Typography14, { variant: "micro", component: "div", color: "secondary", className: "block", children: label }),
3489
- /* @__PURE__ */ jsx16(Typography14, { variant: "mono", component: "div", className: "block mt-1 text-sm", children: value })
3843
+ ].map(([label, value]) => /* @__PURE__ */ jsxs17("div", { children: [
3844
+ /* @__PURE__ */ jsx17(Typography15, { variant: "micro", component: "div", color: "secondary", className: "block", children: label }),
3845
+ /* @__PURE__ */ jsx17(Typography15, { variant: "mono", component: "div", className: "block mt-1 text-sm", children: value })
3490
3846
  ] }, label)) }),
3491
- /* @__PURE__ */ jsxs16("div", { className: "mt-6 flex flex-wrap items-end gap-10", children: [
3492
- /* @__PURE__ */ jsxs16("div", { children: [
3493
- /* @__PURE__ */ jsx16("span", { className: "text-[11px] text-text-secondary dark:text-text-secondary-dark font-mono", children: "stat \xB7 30 \xB7 600 \xB7 tabular" }),
3494
- /* @__PURE__ */ jsx16(Typography14, { variant: "stat", component: "div", className: "block mt-1", children: "1,284" })
3847
+ /* @__PURE__ */ jsxs17("div", { className: "mt-6 flex flex-wrap items-end gap-10", children: [
3848
+ /* @__PURE__ */ jsxs17("div", { children: [
3849
+ /* @__PURE__ */ jsx17("span", { className: "text-[11px] text-text-secondary dark:text-text-secondary-dark font-mono", children: "stat \xB7 30 \xB7 600 \xB7 tabular" }),
3850
+ /* @__PURE__ */ jsx17(Typography15, { variant: "stat", component: "div", className: "block mt-1", children: "1,284" })
3495
3851
  ] }),
3496
- /* @__PURE__ */ jsxs16("div", { children: [
3497
- /* @__PURE__ */ jsx16("span", { className: "text-[11px] text-text-secondary dark:text-text-secondary-dark font-mono", children: "display-2 \xB7 36\u219264 fluid \xB7 600 \xB7 the one greeting a page has" }),
3498
- /* @__PURE__ */ jsx16("div", { className: "text-display-2 font-headers font-semibold mt-1", children: "Good afternoon, Zulu." })
3852
+ /* @__PURE__ */ jsxs17("div", { children: [
3853
+ /* @__PURE__ */ jsx17("span", { className: "text-[11px] text-text-secondary dark:text-text-secondary-dark font-mono", children: "display-2 \xB7 36\u219264 fluid \xB7 600 \xB7 the one greeting a page has" }),
3854
+ /* @__PURE__ */ jsx17("div", { className: "text-display-2 font-headers font-semibold mt-1", children: "Good afternoon, Zulu." })
3499
3855
  ] })
3500
3856
  ] })
3501
3857
  ] })
3502
3858
  ] }),
3503
- /* @__PURE__ */ jsx16(ShapeSpaceSection, {}),
3504
- /* @__PURE__ */ jsx16(DepthIconsSection, {}),
3505
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "drawer", title: "Drawer \u2014 DefaultDrawer.tsx", children: [
3506
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
3859
+ /* @__PURE__ */ jsx17(ShapeSpaceSection, {}),
3860
+ /* @__PURE__ */ jsx17(DepthIconsSection, {}),
3861
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "drawer", title: "Drawer \u2014 DefaultDrawer.tsx", children: [
3862
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
3507
3863
  "The drawer wraps ",
3508
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "DrawerLogo" }),
3864
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "DrawerLogo" }),
3509
3865
  ", scrollable ",
3510
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "DrawerNavigationGroup" }),
3866
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "DrawerNavigationGroup" }),
3511
3867
  "s, and ",
3512
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "DrawerToggle" }),
3513
- ". Two visual states: collapsed (icon only, 72px) and expanded (280px)."
3868
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "DrawerToggle" }),
3869
+ "; with Studio enabled, the CMS / Studio switch sits under the logo. Two visual states: collapsed (icon only, 72px) and expanded (280px)."
3514
3870
  ] }),
3515
- /* @__PURE__ */ jsxs16("div", { className: "flex gap-6 flex-wrap", children: [
3516
- /* @__PURE__ */ jsxs16("div", { children: [
3517
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "Collapsed (72px)" }),
3518
- /* @__PURE__ */ jsxs16("div", { className: cls12("flex flex-col h-72 relative w-[72px] border rounded-lg overflow-hidden bg-surface-card", defaultBorderMixin6), children: [
3519
- /* @__PURE__ */ jsx16("div", { className: "flex flex-row items-center shrink-0 pt-4 pb-2 px-2", children: /* @__PURE__ */ jsx16("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[40px]", children: /* @__PURE__ */ jsx16(RebaseLogo, { width: "28px", height: "28px" }) }) }),
3520
- /* @__PURE__ */ jsx16("div", { className: "mt-3 flex-grow overflow-hidden", children: /* @__PURE__ */ jsx16("div", { className: "my-2 mx-2 flex flex-col", children: /* @__PURE__ */ jsx16("div", { className: "flex flex-col", children: [/* @__PURE__ */ jsx16(FolderIcon, { size: iconSize3.smallest }, "folder"), /* @__PURE__ */ jsx16(UserIcon, { size: iconSize3.smallest }, "user"), /* @__PURE__ */ jsx16(TagIcon, { size: iconSize3.smallest }, "tag")].map((icon, i) => /* @__PURE__ */ jsx16("div", { className: cls12("rounded-lg truncate hover:bg-surface-hover flex flex-row items-center h-[30px]", i === 0 && "bg-primary/8 dark:bg-primary/10"), children: /* @__PURE__ */ jsx16("div", { className: cls12("shrink-0 flex items-center justify-center w-[44px] h-[30px] [&>svg]:size-4", i === 0 ? "text-primary dark:text-primary" : "text-surface-500 dark:text-text-secondary-dark"), children: icon }) }, i)) }) }) }),
3521
- /* @__PURE__ */ jsx16("div", { className: cls12("shrink-0 mt-auto border-t px-2 py-2", defaultBorderMixin6), children: /* @__PURE__ */ jsx16("div", { className: "flex flex-row items-center rounded-lg cursor-pointer hover:bg-surface-hover transition-colors duration-150 py-2", children: /* @__PURE__ */ jsx16("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[24px] text-surface-500 dark:text-surface-400", children: /* @__PURE__ */ jsx16(ChevronsRightIcon, { size: iconSize3.small }) }) }) })
3871
+ /* @__PURE__ */ jsxs17("div", { className: "flex gap-6 flex-wrap", children: [
3872
+ /* @__PURE__ */ jsxs17("div", { children: [
3873
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "Collapsed (72px)" }),
3874
+ /* @__PURE__ */ jsxs17("div", { className: cls12("flex flex-col h-72 relative w-[72px] border rounded-lg overflow-hidden bg-surface-card", defaultBorderMixin6), children: [
3875
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-row items-center shrink-0 pt-4 pb-2 px-2", children: /* @__PURE__ */ jsx17("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[40px]", children: /* @__PURE__ */ jsx17(RebaseLogo, { width: "28px", height: "28px" }) }) }),
3876
+ /* @__PURE__ */ jsx17("div", { className: "mt-3 flex-grow overflow-hidden", children: /* @__PURE__ */ jsx17("div", { className: "my-2 mx-2 flex flex-col", children: /* @__PURE__ */ jsx17("div", { className: "flex flex-col", children: [/* @__PURE__ */ jsx17(FolderIcon, { size: iconSize3.smallest }, "folder"), /* @__PURE__ */ jsx17(UserIcon, { size: iconSize3.smallest }, "user"), /* @__PURE__ */ jsx17(TagIcon, { size: iconSize3.smallest }, "tag")].map((icon, i) => /* @__PURE__ */ jsx17("div", { className: cls12("rounded-lg truncate hover:bg-surface-hover flex flex-row items-center h-[30px]", i === 0 && "bg-primary/8 dark:bg-primary/10"), children: /* @__PURE__ */ jsx17("div", { className: cls12("shrink-0 flex items-center justify-center w-[44px] h-[30px] [&>svg]:size-4", i === 0 ? "text-primary dark:text-primary" : "text-surface-500 dark:text-text-secondary-dark"), children: icon }) }, i)) }) }) }),
3877
+ /* @__PURE__ */ jsx17("div", { className: cls12("shrink-0 mt-auto border-t px-2 py-2", defaultBorderMixin6), children: /* @__PURE__ */ jsx17("div", { className: "flex flex-row items-center rounded-lg cursor-pointer hover:bg-surface-hover transition-colors duration-150 py-2", children: /* @__PURE__ */ jsx17("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[24px] text-surface-500 dark:text-surface-400", children: /* @__PURE__ */ jsx17(ChevronsRightIcon, { size: iconSize3.small }) }) }) })
3522
3878
  ] })
3523
3879
  ] }),
3524
- /* @__PURE__ */ jsxs16("div", { children: [
3525
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "Expanded (280px)" }),
3526
- /* @__PURE__ */ jsxs16("div", { className: cls12("flex flex-col h-72 relative w-[280px] border rounded-lg overflow-hidden bg-surface-card", defaultBorderMixin6), children: [
3527
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-row items-center shrink-0 pt-4 pb-2 px-2", children: [
3528
- /* @__PURE__ */ jsx16("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[40px]", children: /* @__PURE__ */ jsx16(RebaseLogo, { width: "28px", height: "28px" }) }),
3529
- /* @__PURE__ */ jsx16("div", { className: "flex flex-row items-center overflow-hidden transition-all duration-200 ease-in-out opacity-100 w-full ml-1", children: /* @__PURE__ */ jsx16(Typography14, { variant: "subtitle1", noWrap: true, className: "truncate", children: "Rebase" }) })
3880
+ /* @__PURE__ */ jsxs17("div", { children: [
3881
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "Expanded (280px)" }),
3882
+ /* @__PURE__ */ jsxs17("div", { className: cls12("flex flex-col h-72 relative w-[280px] border rounded-lg overflow-hidden bg-surface-card", defaultBorderMixin6), children: [
3883
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-row items-center shrink-0 pt-4 pb-2 px-2", children: [
3884
+ /* @__PURE__ */ jsx17("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[40px]", children: /* @__PURE__ */ jsx17(RebaseLogo, { width: "28px", height: "28px" }) }),
3885
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-row items-center overflow-hidden transition-all duration-200 ease-in-out opacity-100 w-full ml-1", children: /* @__PURE__ */ jsx17(Typography15, { variant: "subtitle1", noWrap: true, className: "truncate", children: "Rebase" }) })
3530
3886
  ] }),
3531
- /* @__PURE__ */ jsx16("div", { className: "mt-3 flex-grow overflow-hidden", children: /* @__PURE__ */ jsxs16("div", { className: "my-2 mx-2 flex flex-col", children: [
3532
- /* @__PURE__ */ jsxs16("div", { className: "pl-3 pr-2 py-0.5 flex flex-row items-center transition-colors cursor-pointer hover:bg-surface-hover rounded-lg", children: [
3533
- /* @__PURE__ */ jsx16(ChevronDownIcon, { size: iconSize3.small, className: "text-surface-400 dark:text-surface-400 mr-1" }),
3534
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "font-semibold text-[11px] uppercase tracking-wider flex-grow line-clamp-1 text-surface-400 dark:text-surface-400", children: "Content" })
3887
+ /* @__PURE__ */ jsx17("div", { className: "shrink-0 px-3 h-8 mt-2", children: /* @__PURE__ */ jsx17(
3888
+ ToggleButtonGroup3,
3889
+ {
3890
+ fullWidth: true,
3891
+ "aria-label": "Panel mode",
3892
+ value: panelMode,
3893
+ onValueChange: setPanelMode,
3894
+ options: [
3895
+ { value: "cms", label: "CMS" },
3896
+ { value: "studio", label: "Studio" }
3897
+ ]
3898
+ }
3899
+ ) }),
3900
+ /* @__PURE__ */ jsx17("div", { className: "mt-3 flex-grow overflow-hidden", children: /* @__PURE__ */ jsxs17("div", { className: "my-2 mx-2 flex flex-col", children: [
3901
+ /* @__PURE__ */ jsxs17("div", { className: "pl-3 pr-2 py-0.5 flex flex-row items-center transition-colors cursor-pointer hover:bg-surface-hover rounded-lg", children: [
3902
+ /* @__PURE__ */ jsx17(ChevronDownIcon, { size: iconSize3.small, className: "text-surface-400 dark:text-surface-400 mr-1" }),
3903
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "font-semibold text-[11px] uppercase tracking-wider flex-grow line-clamp-1 text-surface-400 dark:text-surface-400", children: "Content" })
3535
3904
  ] }),
3536
- /* @__PURE__ */ jsx16("div", { className: "flex flex-col", children: [
3537
- { label: "Posts", icon: /* @__PURE__ */ jsx16(FolderIcon, { size: iconSize3.smallest }), active: true },
3538
- { label: "Authors", icon: /* @__PURE__ */ jsx16(UserIcon, { size: iconSize3.smallest }), active: false },
3539
- { label: "Tags", icon: /* @__PURE__ */ jsx16(TagIcon, { size: iconSize3.smallest }), active: false }
3540
- ].map(({ label, icon, active }) => /* @__PURE__ */ jsxs16("div", { className: cls12(
3905
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-col", children: [
3906
+ { label: "Posts", icon: /* @__PURE__ */ jsx17(FolderIcon, { size: iconSize3.smallest }), active: true },
3907
+ { label: "Authors", icon: /* @__PURE__ */ jsx17(UserIcon, { size: iconSize3.smallest }), active: false },
3908
+ { label: "Tags", icon: /* @__PURE__ */ jsx17(TagIcon, { size: iconSize3.smallest }), active: false }
3909
+ ].map(({ label, icon, active }) => /* @__PURE__ */ jsxs17("div", { className: cls12(
3541
3910
  "rounded-lg truncate hover:bg-surface-hover text-surface-700 dark:text-surface-300 hover:text-surface-900 dark:hover:text-white flex flex-row items-center pr-4 h-[30px] font-medium text-[13px] cursor-pointer",
3542
3911
  active ? "bg-primary/8 dark:bg-primary/10 text-primary dark:text-primary [&_div]:text-primary" : ""
3543
3912
  ), children: [
3544
- /* @__PURE__ */ jsx16("div", { className: cls12("shrink-0 flex items-center justify-center w-[44px] h-[30px] [&>svg]:size-4 transition-colors duration-150", active ? "text-primary dark:text-primary" : "text-surface-500 dark:text-text-secondary-dark"), children: icon }),
3545
- /* @__PURE__ */ jsx16("div", { className: "text-text-primary dark:text-surface-200 font-inherit truncate", children: label })
3913
+ /* @__PURE__ */ jsx17("div", { className: cls12("shrink-0 flex items-center justify-center w-[44px] h-[30px] [&>svg]:size-4 transition-colors duration-150", active ? "text-primary dark:text-primary" : "text-surface-500 dark:text-text-secondary-dark"), children: icon }),
3914
+ /* @__PURE__ */ jsx17("div", { className: "text-text-primary dark:text-surface-200 font-inherit truncate", children: label })
3546
3915
  ] }, label)) })
3547
3916
  ] }) }),
3548
- /* @__PURE__ */ jsx16("div", { className: cls12("shrink-0 mt-auto border-t px-2 py-2", defaultBorderMixin6), children: /* @__PURE__ */ jsxs16("div", { className: "flex flex-row items-center rounded-lg cursor-pointer hover:bg-surface-hover transition-colors duration-150 py-2", children: [
3549
- /* @__PURE__ */ jsx16("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[24px] text-surface-500 dark:text-surface-400", children: /* @__PURE__ */ jsx16(ChevronsLeftIcon, { size: iconSize3.small }) }),
3550
- /* @__PURE__ */ jsx16("div", { className: "overflow-hidden transition-all duration-200 ease-in-out opacity-100 w-auto", children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", className: "text-surface-500 dark:text-surface-400 select-none whitespace-nowrap", children: "Collapse" }) })
3917
+ /* @__PURE__ */ jsx17("div", { className: cls12("shrink-0 mt-auto border-t px-2 py-2", defaultBorderMixin6), children: /* @__PURE__ */ jsxs17("div", { className: "flex flex-row items-center rounded-lg cursor-pointer hover:bg-surface-hover transition-colors duration-150 py-2", children: [
3918
+ /* @__PURE__ */ jsx17("div", { className: "shrink-0 flex items-center justify-center w-[56px] h-[24px] text-surface-500 dark:text-surface-400", children: /* @__PURE__ */ jsx17(ChevronsLeftIcon, { size: iconSize3.small }) }),
3919
+ /* @__PURE__ */ jsx17("div", { className: "overflow-hidden transition-all duration-200 ease-in-out opacity-100 w-auto", children: /* @__PURE__ */ jsx17(Typography15, { variant: "body2", className: "text-surface-500 dark:text-surface-400 select-none whitespace-nowrap", children: "Collapse" }) })
3551
3920
  ] }) })
3552
3921
  ] })
3553
3922
  ] })
3554
3923
  ] })
3555
3924
  ] }),
3556
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "appbar", title: "App Bar \u2014 DefaultAppBar.tsx", children: [
3557
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
3925
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "appbar", title: "App Bar \u2014 DefaultAppBar.tsx", children: [
3926
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
3558
3927
  "Fixed at top (",
3559
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "h-16 absolute top-0" }),
3560
- "). Contains breadcrumbs (caption + body2), Content/Studio pill toggle, theme menu, and user avatar menu via ",
3561
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Menu" }),
3928
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "h-16 absolute top-0" }),
3929
+ "). Contains breadcrumbs (caption + body2), the theme menu, and user avatar menu via ",
3930
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Menu" }),
3562
3931
  "."
3563
3932
  ] }),
3564
- /* @__PURE__ */ jsxs16("div", { className: cls12("w-full h-16 flex flex-row gap-2 px-4 items-center border rounded-lg relative", defaultBorderMixin6), children: [
3565
- /* @__PURE__ */ jsx16("div", { className: "mr-8 hidden lg:block", children: /* @__PURE__ */ jsxs16("div", { className: "flex flex-row gap-2 items-center", children: [
3566
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: "/" }),
3567
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-row items-center gap-2 whitespace-nowrap", children: [
3568
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", children: "Posts" }),
3569
- /* @__PURE__ */ jsx16("span", { className: "text-xs text-surface-accent-500 dark:text-surface-accent-400 bg-surface-raised px-1 py-0 rounded", children: "42" })
3933
+ /* @__PURE__ */ jsxs17("div", { className: cls12("w-full h-16 flex flex-row gap-2 px-4 items-center border rounded-lg relative", defaultBorderMixin6), children: [
3934
+ /* @__PURE__ */ jsx17("div", { className: "mr-8 hidden lg:block", children: /* @__PURE__ */ jsxs17("div", { className: "flex flex-row gap-2 items-center", children: [
3935
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", children: "/" }),
3936
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-row items-center gap-2 whitespace-nowrap", children: [
3937
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", children: "Posts" }),
3938
+ /* @__PURE__ */ jsx17("span", { className: "text-xs text-surface-accent-500 dark:text-surface-accent-400 bg-surface-raised px-1 py-0 rounded", children: "42" })
3570
3939
  ] }),
3571
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: "/" }),
3572
- /* @__PURE__ */ jsx16("div", { className: "flex flex-row items-center gap-2 whitespace-nowrap", children: /* @__PURE__ */ jsx16(Typography14, { variant: "body2", children: "My Post" }) })
3940
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", children: "/" }),
3941
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-row items-center gap-2 whitespace-nowrap", children: /* @__PURE__ */ jsx17(Typography15, { variant: "body2", children: "My Post" }) })
3573
3942
  ] }) }),
3574
- /* @__PURE__ */ jsx16("div", { className: "grow" }),
3575
- /* @__PURE__ */ jsxs16("div", { className: cls12("mr-2 hidden sm:flex bg-surface-field rounded-lg p-0.5"), children: [
3576
- /* @__PURE__ */ jsx16("button", { className: cls12("px-3 py-1 text-xs font-medium rounded-md transition-all", "bg-surface-lifted shadow-sm text-text-primary dark:text-text-primary-dark"), children: "Content" }),
3577
- /* @__PURE__ */ jsx16("button", { className: cls12("px-3 py-1 text-xs font-medium rounded-md transition-all", "text-surface-500 hover:text-surface-900 dark:hover:text-white"), children: "Studio" })
3578
- ] }),
3579
- /* @__PURE__ */ jsxs16(Menu, { trigger: /* @__PURE__ */ jsx16(IconButton5, { children: /* @__PURE__ */ jsx16(MoonIcon, {}) }), children: [
3580
- /* @__PURE__ */ jsxs16(MenuItem, { children: [
3581
- /* @__PURE__ */ jsx16(MoonIcon, { size: iconSize3.smallest }),
3943
+ /* @__PURE__ */ jsx17("div", { className: "grow" }),
3944
+ /* @__PURE__ */ jsxs17(Menu, { trigger: /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Theme", children: /* @__PURE__ */ jsx17(MoonIcon, {}) }), children: [
3945
+ /* @__PURE__ */ jsxs17(MenuItem, { children: [
3946
+ /* @__PURE__ */ jsx17(MoonIcon, { size: iconSize3.smallest }),
3582
3947
  " Dark"
3583
3948
  ] }),
3584
- /* @__PURE__ */ jsxs16(MenuItem, { children: [
3585
- /* @__PURE__ */ jsx16(SunIcon, { size: iconSize3.smallest }),
3949
+ /* @__PURE__ */ jsxs17(MenuItem, { children: [
3950
+ /* @__PURE__ */ jsx17(SunIcon, { size: iconSize3.smallest }),
3586
3951
  " Light"
3587
3952
  ] }),
3588
- /* @__PURE__ */ jsxs16(MenuItem, { children: [
3589
- /* @__PURE__ */ jsx16(SunMoonIcon, { size: iconSize3.smallest }),
3953
+ /* @__PURE__ */ jsxs17(MenuItem, { children: [
3954
+ /* @__PURE__ */ jsx17(SunMoonIcon, { size: iconSize3.smallest }),
3590
3955
  " System"
3591
3956
  ] })
3592
3957
  ] }),
3593
- /* @__PURE__ */ jsxs16(Menu, { trigger: /* @__PURE__ */ jsx16(Avatar2, { children: "A" }), children: [
3594
- /* @__PURE__ */ jsxs16("div", { className: "px-4 py-2 mb-2", children: [
3595
- /* @__PURE__ */ jsx16(Typography14, { variant: "body1", color: "secondary", children: "Alice Johnson" }),
3596
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", children: "alice@example.com" })
3958
+ /* @__PURE__ */ jsxs17(Menu, { trigger: /* @__PURE__ */ jsx17(Avatar2, { children: "A" }), children: [
3959
+ /* @__PURE__ */ jsxs17("div", { className: "px-4 py-2 mb-2", children: [
3960
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body1", color: "secondary", children: "Alice Johnson" }),
3961
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", color: "secondary", children: "alice@example.com" })
3597
3962
  ] }),
3598
- /* @__PURE__ */ jsxs16(MenuItem, { children: [
3599
- /* @__PURE__ */ jsx16(SettingsIcon3, {}),
3963
+ /* @__PURE__ */ jsxs17(MenuItem, { children: [
3964
+ /* @__PURE__ */ jsx17(SettingsIcon3, {}),
3600
3965
  " Account Settings"
3601
3966
  ] }),
3602
- /* @__PURE__ */ jsxs16(MenuItem, { children: [
3603
- /* @__PURE__ */ jsx16(LogOutIcon, {}),
3967
+ /* @__PURE__ */ jsxs17(MenuItem, { children: [
3968
+ /* @__PURE__ */ jsx17(LogOutIcon, {}),
3604
3969
  " Log Out"
3605
3970
  ] })
3606
3971
  ] })
3607
3972
  ] })
3608
3973
  ] }),
3609
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "tabs", title: "Tabs \u2014 Tabs.tsx", children: [
3610
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
3974
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "tabs", title: "Tabs \u2014 Tabs.tsx", children: [
3975
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
3611
3976
  "All editor components use ",
3612
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: 'variant="boxy"' }),
3977
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: 'variant="boxy"' }),
3613
3978
  " tabs for sidebar navigation. The boxy variant provides a segmented, flat tab bar that integrates tightly with editor chrome."
3614
3979
  ] }),
3615
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-6", children: [
3616
- /* @__PURE__ */ jsxs16("div", { children: [
3617
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'variant="default"' }),
3618
- /* @__PURE__ */ jsxs16(Tabs, { value: "tab1", onValueChange: () => {
3980
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-6", children: [
3981
+ /* @__PURE__ */ jsxs17("div", { children: [
3982
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'variant="default"' }),
3983
+ /* @__PURE__ */ jsxs17(Tabs, { value: "tab1", onValueChange: () => {
3619
3984
  }, children: [
3620
- /* @__PURE__ */ jsx16(Tab, { value: "tab1", children: "Schema" }),
3621
- /* @__PURE__ */ jsx16(Tab, { value: "tab2", children: "Snippets" }),
3622
- /* @__PURE__ */ jsx16(Tab, { value: "tab3", children: "History" })
3985
+ /* @__PURE__ */ jsx17(Tab, { value: "tab1", children: "Schema" }),
3986
+ /* @__PURE__ */ jsx17(Tab, { value: "tab2", children: "Snippets" }),
3987
+ /* @__PURE__ */ jsx17(Tab, { value: "tab3", children: "History" })
3623
3988
  ] })
3624
3989
  ] }),
3625
- /* @__PURE__ */ jsxs16("div", { children: [
3626
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'variant="boxy" (Editor Standard)' }),
3627
- /* @__PURE__ */ jsxs16("div", { className: cls12("border rounded-lg overflow-hidden w-[320px]", defaultBorderMixin6), children: [
3628
- /* @__PURE__ */ jsxs16(Tabs, { value: "schema", onValueChange: () => {
3990
+ /* @__PURE__ */ jsxs17("div", { children: [
3991
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'variant="boxy" (Editor Standard)' }),
3992
+ /* @__PURE__ */ jsxs17("div", { className: cls12("border rounded-lg overflow-hidden w-[320px]", defaultBorderMixin6), children: [
3993
+ /* @__PURE__ */ jsxs17(Tabs, { value: "schema", onValueChange: () => {
3629
3994
  }, variant: "boxy", className: "border-b border-hairline", children: [
3630
- /* @__PURE__ */ jsx16(Tab, { value: "schema", children: "Schema" }),
3631
- /* @__PURE__ */ jsx16(Tab, { value: "snippets", children: "Snippets" }),
3632
- /* @__PURE__ */ jsx16(Tab, { value: "history", children: "History" })
3995
+ /* @__PURE__ */ jsx17(Tab, { value: "schema", children: "Schema" }),
3996
+ /* @__PURE__ */ jsx17(Tab, { value: "snippets", children: "Snippets" }),
3997
+ /* @__PURE__ */ jsx17(Tab, { value: "history", children: "History" })
3633
3998
  ] }),
3634
- /* @__PURE__ */ jsxs16("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
3635
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-disabled dark:text-text-disabled-dark", children: "TABLES" }),
3636
- /* @__PURE__ */ jsx16(IconButton5, { size: "small", children: /* @__PURE__ */ jsx16(SettingsIcon3, { size: iconSize3.smallest }) })
3999
+ /* @__PURE__ */ jsxs17("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
4000
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-disabled dark:text-text-disabled-dark", children: "TABLES" }),
4001
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Settings", size: "small", children: /* @__PURE__ */ jsx17(SettingsIcon3, { size: iconSize3.smallest }) })
3637
4002
  ] }),
3638
- /* @__PURE__ */ jsx16("div", { className: "p-2 h-24", children: /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "text-text-disabled dark:text-text-disabled-dark italic p-2", children: "Tab content area\u2026" }) })
4003
+ /* @__PURE__ */ jsx17("div", { className: "p-2 h-24", children: /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "text-text-disabled dark:text-text-disabled-dark italic p-2", children: "Tab content area\u2026" }) })
3639
4004
  ] })
3640
4005
  ] }),
3641
- /* @__PURE__ */ jsxs16("div", { children: [
3642
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Toolbar Tabs (boxy, inline with controls)" }),
3643
- /* @__PURE__ */ jsxs16("div", { className: cls12("border rounded-lg overflow-hidden flex items-center justify-between pr-2 bg-surface-card", defaultBorderMixin6), children: [
3644
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center", children: [
3645
- /* @__PURE__ */ jsxs16(Tabs, { value: "query1", onValueChange: () => {
4006
+ /* @__PURE__ */ jsxs17("div", { children: [
4007
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Toolbar Tabs (boxy, inline with controls)" }),
4008
+ /* @__PURE__ */ jsxs17("div", { className: cls12("border rounded-lg overflow-hidden flex items-center justify-between pr-2 bg-surface-card", defaultBorderMixin6), children: [
4009
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center", children: [
4010
+ /* @__PURE__ */ jsxs17(Tabs, { value: "query1", onValueChange: () => {
3646
4011
  }, variant: "boxy", className: "w-[unset] flex-shrink-0", children: [
3647
- /* @__PURE__ */ jsxs16(Tab, { value: "query1", className: "flex items-center gap-1.5", children: [
3648
- /* @__PURE__ */ jsx16("svg", { className: "w-3.5 h-3.5 text-blue-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4" }) }),
4012
+ /* @__PURE__ */ jsxs17(Tab, { value: "query1", className: "flex items-center gap-1.5", children: [
4013
+ /* @__PURE__ */ jsx17("svg", { className: "w-3.5 h-3.5 text-blue-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx17("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4" }) }),
3649
4014
  "Query 1"
3650
4015
  ] }),
3651
- /* @__PURE__ */ jsxs16(Tab, { value: "query2", className: "flex items-center gap-1.5", children: [
3652
- /* @__PURE__ */ jsx16("svg", { className: "w-3.5 h-3.5 text-blue-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4" }) }),
4016
+ /* @__PURE__ */ jsxs17(Tab, { value: "query2", className: "flex items-center gap-1.5", children: [
4017
+ /* @__PURE__ */ jsx17("svg", { className: "w-3.5 h-3.5 text-blue-500", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx17("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4" }) }),
3653
4018
  "Query 2"
3654
4019
  ] })
3655
4020
  ] }),
3656
- /* @__PURE__ */ jsx16(IconButton5, { size: "small", className: "ml-2 flex-shrink-0", children: /* @__PURE__ */ jsx16(PlusIcon, {}) })
4021
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "New tab", size: "small", className: "ml-2 flex-shrink-0", children: /* @__PURE__ */ jsx17(PlusIcon, {}) })
3657
4022
  ] }),
3658
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-1.5", children: [
3659
- /* @__PURE__ */ jsx16(Button9, { variant: "text", size: "small", children: "Explain" }),
3660
- /* @__PURE__ */ jsx16("div", { className: "h-4 w-px bg-hairline" }),
3661
- /* @__PURE__ */ jsx16(Button9, { size: "small", color: "primary", children: "Run" })
4023
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-1.5", children: [
4024
+ /* @__PURE__ */ jsx17(Button10, { variant: "text", size: "small", children: "Explain" }),
4025
+ /* @__PURE__ */ jsx17("div", { className: "h-4 w-px bg-hairline" }),
4026
+ /* @__PURE__ */ jsx17(Button10, { size: "small", color: "primary", children: "Run" })
3662
4027
  ] })
3663
4028
  ] })
3664
4029
  ] })
3665
4030
  ] })
3666
4031
  ] }),
3667
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "editor-sidebar", title: "Editor Sidebar \u2014 Harmonized Pattern", children: [
3668
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
4032
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "editor-sidebar", title: "Editor Sidebar \u2014 Harmonized Pattern", children: [
4033
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
3669
4034
  "All studio editor components (SQL, JS, RLS, Collection) share the same underlying sidebar foundation:",
3670
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: 'Tabs variant="boxy"' }),
4035
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: 'Tabs variant="boxy"' }),
3671
4036
  " at top (optional) \u2192 section header with uppercase label \u2192 scrollable list. While SQL/JS/RLS use dense tree entries, the Collection Schema Editor uses larger items (",
3672
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "px-3 py-2" }),
4037
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "px-3 py-2" }),
3673
4038
  ", ",
3674
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "text-sm" }),
4039
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "text-sm" }),
3675
4040
  ") suitable for primary navigation."
3676
4041
  ] }),
3677
- /* @__PURE__ */ jsxs16("div", { className: "flex gap-6 flex-wrap", children: [
3678
- /* @__PURE__ */ jsxs16("div", { children: [
3679
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "SQL Editor Sidebar" }),
3680
- /* @__PURE__ */ jsxs16("div", { className: cls12("flex flex-col h-72 w-[240px] border rounded-lg overflow-hidden", defaultBorderMixin6), children: [
3681
- /* @__PURE__ */ jsxs16(Tabs, { value: "schema", onValueChange: () => {
4042
+ /* @__PURE__ */ jsxs17("div", { className: "flex gap-6 flex-wrap", children: [
4043
+ /* @__PURE__ */ jsxs17("div", { children: [
4044
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "SQL Editor Sidebar" }),
4045
+ /* @__PURE__ */ jsxs17("div", { className: cls12("flex flex-col h-72 w-[240px] border rounded-lg overflow-hidden", defaultBorderMixin6), children: [
4046
+ /* @__PURE__ */ jsxs17(Tabs, { value: "schema", onValueChange: () => {
3682
4047
  }, variant: "boxy", className: "border-b border-hairline", children: [
3683
- /* @__PURE__ */ jsx16(Tab, { value: "schema", children: "Schema" }),
3684
- /* @__PURE__ */ jsx16(Tab, { value: "snippets", children: "Snippets" }),
3685
- /* @__PURE__ */ jsx16(Tab, { value: "history", children: "History" })
4048
+ /* @__PURE__ */ jsx17(Tab, { value: "schema", children: "Schema" }),
4049
+ /* @__PURE__ */ jsx17(Tab, { value: "snippets", children: "Snippets" }),
4050
+ /* @__PURE__ */ jsx17(Tab, { value: "history", children: "History" })
3686
4051
  ] }),
3687
- /* @__PURE__ */ jsxs16("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
3688
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-secondary dark:text-text-secondary-dark", children: "TABLES" }),
3689
- /* @__PURE__ */ jsx16(IconButton5, { size: "small", children: /* @__PURE__ */ jsx16(SettingsIcon3, { size: iconSize3.smallest }) })
4052
+ /* @__PURE__ */ jsxs17("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
4053
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-secondary dark:text-text-secondary-dark", children: "TABLES" }),
4054
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Settings", size: "small", children: /* @__PURE__ */ jsx17(SettingsIcon3, { size: iconSize3.smallest }) })
3690
4055
  ] }),
3691
- /* @__PURE__ */ jsx16("div", { className: "flex-grow overflow-y-auto no-scrollbar p-1", children: /* @__PURE__ */ jsxs16("div", { className: "mb-2", children: [
3692
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center p-1 cursor-pointer hover:bg-surface-hover rounded transition-colors", children: [
3693
- /* @__PURE__ */ jsx16("svg", { className: "w-3 h-3 mr-1 rotate-90", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx16("path", { d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" }) }),
3694
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", className: "text-text-primary dark:text-text-primary-dark font-medium text-xs", children: "public" })
4056
+ /* @__PURE__ */ jsx17("div", { className: "flex-grow overflow-y-auto no-scrollbar p-1", children: /* @__PURE__ */ jsxs17("div", { className: "mb-2", children: [
4057
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center p-1 cursor-pointer hover:bg-surface-hover rounded transition-colors", children: [
4058
+ /* @__PURE__ */ jsx17("svg", { className: "w-3 h-3 mr-1 rotate-90", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx17("path", { d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" }) }),
4059
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", className: "text-text-primary dark:text-text-primary-dark font-medium text-xs", children: "public" })
3695
4060
  ] }),
3696
- /* @__PURE__ */ jsx16("div", { className: "ml-3 mt-1 space-y-1", children: ["users", "posts", "comments"].map((t) => /* @__PURE__ */ jsxs16("div", { className: "flex items-center p-1 cursor-pointer hover:bg-surface-hover rounded transition-colors group", children: [
3697
- /* @__PURE__ */ jsx16("svg", { className: "w-3.5 h-3.5 mr-1 shrink-0 text-text-disabled dark:text-text-disabled-dark", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" }) }),
3698
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", className: "text-text-secondary dark:text-text-secondary-dark text-xs truncate", children: t })
4061
+ /* @__PURE__ */ jsx17("div", { className: "ml-3 mt-1 space-y-1", children: ["users", "posts", "comments"].map((t) => /* @__PURE__ */ jsxs17("div", { className: "flex items-center p-1 cursor-pointer hover:bg-surface-hover rounded transition-colors group", children: [
4062
+ /* @__PURE__ */ jsx17("svg", { className: "w-3.5 h-3.5 mr-1 shrink-0 text-text-disabled dark:text-text-disabled-dark", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx17("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" }) }),
4063
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", className: "text-text-secondary dark:text-text-secondary-dark text-xs truncate", children: t })
3699
4064
  ] }, t)) })
3700
4065
  ] }) })
3701
4066
  ] })
3702
4067
  ] }),
3703
- /* @__PURE__ */ jsxs16("div", { children: [
3704
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "RLS Editor Sidebar" }),
3705
- /* @__PURE__ */ jsxs16("div", { className: cls12("flex flex-col h-72 w-[240px] border rounded-lg overflow-hidden", defaultBorderMixin6), children: [
3706
- /* @__PURE__ */ jsxs16(Tabs, { value: "tables", onValueChange: () => {
4068
+ /* @__PURE__ */ jsxs17("div", { children: [
4069
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "RLS Editor Sidebar" }),
4070
+ /* @__PURE__ */ jsxs17("div", { className: cls12("flex flex-col h-72 w-[240px] border rounded-lg overflow-hidden", defaultBorderMixin6), children: [
4071
+ /* @__PURE__ */ jsxs17(Tabs, { value: "tables", onValueChange: () => {
3707
4072
  }, variant: "boxy", className: "border-b border-hairline", children: [
3708
- /* @__PURE__ */ jsx16(Tab, { value: "tables", children: "Tables" }),
3709
- /* @__PURE__ */ jsx16(Tab, { value: "info", children: "Info" })
4073
+ /* @__PURE__ */ jsx17(Tab, { value: "tables", children: "Tables" }),
4074
+ /* @__PURE__ */ jsx17(Tab, { value: "info", children: "Info" })
3710
4075
  ] }),
3711
- /* @__PURE__ */ jsxs16("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
3712
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-disabled dark:text-text-disabled-dark", children: "RLS" }),
3713
- /* @__PURE__ */ jsx16(IconButton5, { size: "small", children: /* @__PURE__ */ jsx16(SettingsIcon3, { size: iconSize3.smallest }) })
4076
+ /* @__PURE__ */ jsxs17("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
4077
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-disabled dark:text-text-disabled-dark", children: "RLS" }),
4078
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Settings", size: "small", children: /* @__PURE__ */ jsx17(SettingsIcon3, { size: iconSize3.smallest }) })
3714
4079
  ] }),
3715
- /* @__PURE__ */ jsx16("div", { className: "flex-grow overflow-y-auto no-scrollbar p-1", children: /* @__PURE__ */ jsxs16("div", { className: "mb-2", children: [
3716
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center p-1 cursor-pointer hover:bg-surface-hover rounded transition-colors", children: [
3717
- /* @__PURE__ */ jsx16("svg", { className: "w-3 h-3 mr-1 rotate-90", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx16("path", { d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" }) }),
3718
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", className: "text-text-primary dark:text-text-primary-dark font-medium text-xs", children: "public" })
4080
+ /* @__PURE__ */ jsx17("div", { className: "flex-grow overflow-y-auto no-scrollbar p-1", children: /* @__PURE__ */ jsxs17("div", { className: "mb-2", children: [
4081
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center p-1 cursor-pointer hover:bg-surface-hover rounded transition-colors", children: [
4082
+ /* @__PURE__ */ jsx17("svg", { className: "w-3 h-3 mr-1 rotate-90", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx17("path", { d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" }) }),
4083
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", className: "text-text-primary dark:text-text-primary-dark font-medium text-xs", children: "public" })
3719
4084
  ] }),
3720
- /* @__PURE__ */ jsx16("div", { className: "ml-3 mt-1 space-y-0.5", children: [{
4085
+ /* @__PURE__ */ jsx17("div", { className: "ml-3 mt-1 space-y-0.5", children: [{
3721
4086
  name: "users",
3722
4087
  enabled: true
3723
4088
  }, {
@@ -3726,352 +4091,356 @@ function UIReferenceView() {
3726
4091
  }, {
3727
4092
  name: "sessions",
3728
4093
  enabled: false
3729
- }].map((t) => /* @__PURE__ */ jsxs16("div", { className: cls12("flex items-center p-1 cursor-pointer rounded transition-colors", t.name === "users" ? "bg-primary/10 text-primary dark:bg-primary/20" : "hover:bg-surface-hover text-text-secondary"), children: [
3730
- /* @__PURE__ */ jsx16("svg", { className: "w-3.5 h-3.5 mr-1 shrink-0 text-text-disabled", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx16("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" }) }),
3731
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", className: "text-xs truncate flex-1", children: t.name }),
3732
- /* @__PURE__ */ jsx16("div", { className: cls12("w-1.5 h-1.5 rounded-full shrink-0", t.enabled ? "bg-green-500" : "bg-orange-400 opacity-50") })
4094
+ }].map((t) => /* @__PURE__ */ jsxs17("div", { className: cls12("flex items-center p-1 cursor-pointer rounded transition-colors", t.name === "users" ? "bg-primary/10 text-primary dark:bg-primary/20" : "hover:bg-surface-hover text-text-secondary"), children: [
4095
+ /* @__PURE__ */ jsx17("svg", { className: "w-3.5 h-3.5 mr-1 shrink-0 text-text-disabled", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx17("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" }) }),
4096
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", className: "text-xs truncate flex-1", children: t.name }),
4097
+ /* @__PURE__ */ jsx17("div", { className: cls12("w-1.5 h-1.5 rounded-full shrink-0", t.enabled ? "bg-green-500" : "bg-orange-400 opacity-50") })
3733
4098
  ] }, t.name)) })
3734
4099
  ] }) })
3735
4100
  ] })
3736
4101
  ] }),
3737
- /* @__PURE__ */ jsxs16("div", { children: [
3738
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "Collection Editor Sidebar" }),
3739
- /* @__PURE__ */ jsxs16("div", { className: cls12("flex flex-col h-72 w-[240px] border rounded-lg overflow-hidden bg-surface-card", defaultBorderMixin6), children: [
3740
- /* @__PURE__ */ jsxs16("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
3741
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-disabled dark:text-text-disabled-dark", children: "COLLECTIONS" }),
3742
- /* @__PURE__ */ jsx16(IconButton5, { size: "small", children: /* @__PURE__ */ jsx16(PlusIcon, { size: iconSize3.smallest }) })
4102
+ /* @__PURE__ */ jsxs17("div", { children: [
4103
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "Collection Editor Sidebar" }),
4104
+ /* @__PURE__ */ jsxs17("div", { className: cls12("flex flex-col h-72 w-[240px] border rounded-lg overflow-hidden bg-surface-card", defaultBorderMixin6), children: [
4105
+ /* @__PURE__ */ jsxs17("div", { className: cls12("p-3 border-b flex justify-between items-center", defaultBorderMixin6), children: [
4106
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", className: "font-semibold uppercase tracking-wider text-text-disabled dark:text-text-disabled-dark", children: "COLLECTIONS" }),
4107
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Add collection", size: "small", children: /* @__PURE__ */ jsx17(PlusIcon, { size: iconSize3.smallest }) })
3743
4108
  ] }),
3744
- /* @__PURE__ */ jsx16("div", { className: "flex-grow overflow-y-auto no-scrollbar p-2 space-y-0.5", children: [{ name: "Authors" }, {
4109
+ /* @__PURE__ */ jsx17("div", { className: "flex-grow overflow-y-auto no-scrollbar p-2 space-y-0.5", children: [{ name: "Authors" }, {
3745
4110
  name: "Posts",
3746
4111
  selected: true
3747
- }, { name: "Tags" }].map((c) => /* @__PURE__ */ jsxs16("div", { className: cls12("flex items-center gap-3 px-3 py-2 cursor-pointer rounded-md text-sm transition-colors", c.selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light" : "hover:bg-surface-hover text-text-secondary dark:text-text-secondary-dark"), children: [
3748
- /* @__PURE__ */ jsx16(FolderIcon, { size: iconSize3.small, className: cls12(c.selected ? "text-primary dark:text-primary-light" : "text-text-secondary dark:text-text-secondary-dark") }),
3749
- /* @__PURE__ */ jsx16("span", { className: "truncate flex-1", children: c.name })
4112
+ }, { name: "Tags" }].map((c) => /* @__PURE__ */ jsxs17("div", { className: cls12("flex items-center gap-3 px-3 py-2 cursor-pointer rounded-md text-sm transition-colors", c.selected ? "bg-primary/10 text-primary dark:bg-primary/20 dark:text-primary-light" : "hover:bg-surface-hover text-text-secondary dark:text-text-secondary-dark"), children: [
4113
+ /* @__PURE__ */ jsx17(FolderIcon, { size: iconSize3.small, className: cls12(c.selected ? "text-primary dark:text-primary-light" : "text-text-secondary dark:text-text-secondary-dark") }),
4114
+ /* @__PURE__ */ jsx17("span", { className: "truncate flex-1", children: c.name })
3750
4115
  ] }, c.name)) })
3751
4116
  ] })
3752
4117
  ] })
3753
4118
  ] })
3754
4119
  ] }),
3755
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "empty-states", title: "Empty States \u2014 Canonical Pattern", children: [
3756
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
4120
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "empty-states", title: "Empty States \u2014 Canonical Pattern", children: [
4121
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
3757
4122
  "All empty / placeholder states share the same layout: a centered ",
3758
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "flex-col" }),
4123
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "flex-col" }),
3759
4124
  " container with ",
3760
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: 'Typography variant="label"' }),
4125
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: 'Typography variant="label"' }),
3761
4126
  " for the message and a ",
3762
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Button" }),
4127
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Button" }),
3763
4128
  " with ",
3764
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "AddIcon" }),
4129
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "AddIcon" }),
3765
4130
  " for the primary action. Sources: ",
3766
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "CollectionPropertiesEditorForm" }),
4131
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "CollectionPropertiesEditorForm" }),
3767
4132
  ", ",
3768
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "CollectionsStudioView" }),
4133
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "CollectionsStudioView" }),
3769
4134
  ", ",
3770
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "CollectionStudioView" }),
4135
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "CollectionStudioView" }),
3771
4136
  "."
3772
4137
  ] }),
3773
- /* @__PURE__ */ jsxs16("div", { className: "flex gap-6 flex-wrap", children: [
3774
- /* @__PURE__ */ jsxs16("div", { children: [
3775
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "Property Editor (no selection)" }),
3776
- /* @__PURE__ */ jsx16("div", { className: cls12("flex flex-col items-center justify-center h-48 w-[320px] border rounded-lg", defaultBorderMixin6), children: /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center justify-center h-full gap-4", children: [
3777
- /* @__PURE__ */ jsx16(Typography14, { variant: "label", className: "text-center px-4", children: "Select a property to edit it" }),
3778
- /* @__PURE__ */ jsxs16(Button9, { children: [
3779
- /* @__PURE__ */ jsx16(PlusIcon, {}),
4138
+ /* @__PURE__ */ jsxs17("div", { className: "flex gap-6 flex-wrap", children: [
4139
+ /* @__PURE__ */ jsxs17("div", { children: [
4140
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "Property Editor (no selection)" }),
4141
+ /* @__PURE__ */ jsx17("div", { className: cls12("flex flex-col items-center justify-center h-48 w-[320px] border rounded-lg", defaultBorderMixin6), children: /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center justify-center h-full gap-4", children: [
4142
+ /* @__PURE__ */ jsx17(Typography15, { variant: "label", className: "text-center px-4", children: "Select a property to edit it" }),
4143
+ /* @__PURE__ */ jsxs17(Button10, { children: [
4144
+ /* @__PURE__ */ jsx17(PlusIcon, {}),
3780
4145
  "Add new property"
3781
4146
  ] })
3782
4147
  ] }) })
3783
4148
  ] }),
3784
- /* @__PURE__ */ jsxs16("div", { children: [
3785
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "Property Editor (empty collection)" }),
3786
- /* @__PURE__ */ jsx16("div", { className: cls12("flex flex-col items-center justify-center h-48 w-[320px] border rounded-lg", defaultBorderMixin6), children: /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center justify-center h-full gap-4", children: [
3787
- /* @__PURE__ */ jsx16(Typography14, { variant: "label", className: "text-center px-4", children: "Now you can add your first property" }),
3788
- /* @__PURE__ */ jsxs16(Button9, { children: [
3789
- /* @__PURE__ */ jsx16(PlusIcon, {}),
4149
+ /* @__PURE__ */ jsxs17("div", { children: [
4150
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "Property Editor (empty collection)" }),
4151
+ /* @__PURE__ */ jsx17("div", { className: cls12("flex flex-col items-center justify-center h-48 w-[320px] border rounded-lg", defaultBorderMixin6), children: /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center justify-center h-full gap-4", children: [
4152
+ /* @__PURE__ */ jsx17(Typography15, { variant: "label", className: "text-center px-4", children: "Now you can add your first property" }),
4153
+ /* @__PURE__ */ jsxs17(Button10, { children: [
4154
+ /* @__PURE__ */ jsx17(PlusIcon, {}),
3790
4155
  "Add new property"
3791
4156
  ] })
3792
4157
  ] }) })
3793
4158
  ] }),
3794
- /* @__PURE__ */ jsxs16("div", { children: [
3795
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-1", children: "Collection ListIcon (no selection)" }),
3796
- /* @__PURE__ */ jsx16("div", { className: cls12("flex flex-col items-center justify-center h-48 w-[320px] border rounded-lg", defaultBorderMixin6), children: /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center justify-center h-full gap-4", children: [
3797
- /* @__PURE__ */ jsx16(Typography14, { variant: "label", className: "text-center px-4", children: "Select a collection or create a new one to start editing" }),
3798
- /* @__PURE__ */ jsxs16(Button9, { children: [
3799
- /* @__PURE__ */ jsx16(PlusIcon, {}),
4159
+ /* @__PURE__ */ jsxs17("div", { children: [
4160
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-1", children: "Collection ListIcon (no selection)" }),
4161
+ /* @__PURE__ */ jsx17("div", { className: cls12("flex flex-col items-center justify-center h-48 w-[320px] border rounded-lg", defaultBorderMixin6), children: /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center justify-center h-full gap-4", children: [
4162
+ /* @__PURE__ */ jsx17(Typography15, { variant: "label", className: "text-center px-4", children: "Select a collection or create a new one to start editing" }),
4163
+ /* @__PURE__ */ jsxs17(Button10, { children: [
4164
+ /* @__PURE__ */ jsx17(PlusIcon, {}),
3800
4165
  "Add new collection"
3801
4166
  ] })
3802
4167
  ] }) })
3803
4168
  ] })
3804
4169
  ] })
3805
4170
  ] }),
3806
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "buttons", title: "Buttons", children: [
3807
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4 max-w-[68ch]", children: [
3808
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "neutral" }),
4171
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "buttons", title: "Buttons", children: [
4172
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4 max-w-[68ch]", children: [
4173
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "neutral" }),
3809
4174
  " is the default and paints ",
3810
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "surface-raised" }),
4175
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "surface-raised" }),
3811
4176
  "; it is what almost every button is. ",
3812
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "primary" }),
4177
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "primary" }),
3813
4178
  " filled is the one main action a screen has. The label is 14px at weight 500, sentence case, no tracking: emphasis is the fill, never the letterforms. ",
3814
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "secondary" }),
4179
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "secondary" }),
3815
4180
  " and ",
3816
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "error" }),
4181
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "error" }),
3817
4182
  " exist for destructive confirmations and the marketing site, not for the panel's chrome."
3818
4183
  ] }),
3819
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-6", children: [
3820
- ["filled", "text"].map((variant) => /* @__PURE__ */ jsxs16("div", { children: [
3821
- /* @__PURE__ */ jsxs16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: [
4184
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-6", children: [
4185
+ ["filled", "text"].map((variant) => /* @__PURE__ */ jsxs17("div", { children: [
4186
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: [
3822
4187
  'variant="',
3823
4188
  variant,
3824
4189
  '"'
3825
4190
  ] }),
3826
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap gap-3 items-center", children: [
3827
- ["neutral", "primary", "text", "secondary", "error"].map((color) => /* @__PURE__ */ jsx16(Button9, { variant, color, children: color.charAt(0).toUpperCase() + color.slice(1) }, color)),
3828
- /* @__PURE__ */ jsx16(Button9, { variant, disabled: true, children: "Disabled" })
4191
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-wrap gap-3 items-center", children: [
4192
+ ["neutral", "primary", "text", "secondary", "error"].map((color) => /* @__PURE__ */ jsx17(Button10, { variant, color, children: color.charAt(0).toUpperCase() + color.slice(1) }, color)),
4193
+ /* @__PURE__ */ jsx17(Button10, { variant, disabled: true, children: "Disabled" })
3829
4194
  ] })
3830
4195
  ] }, variant)),
3831
- /* @__PURE__ */ jsxs16("div", { children: [
3832
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "sizes" }),
3833
- /* @__PURE__ */ jsx16("div", { className: "flex flex-wrap items-end gap-3", children: ["small", "medium", "large", "xl", "2xl"].map((s) => /* @__PURE__ */ jsx16(Button9, { size: s, children: s.charAt(0).toUpperCase() + s.slice(1) }, s)) })
4196
+ /* @__PURE__ */ jsxs17("div", { children: [
4197
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "sizes" }),
4198
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-wrap items-end gap-3", children: ["small", "medium", "large", "xl", "2xl"].map((s) => /* @__PURE__ */ jsx17(Button10, { size: s, children: s.charAt(0).toUpperCase() + s.slice(1) }, s)) })
3834
4199
  ] }),
3835
- /* @__PURE__ */ jsxs16("div", { children: [
3836
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "IconButton \u2014 sizes" }),
3837
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap gap-3 items-end", children: [
4200
+ /* @__PURE__ */ jsxs17("div", { children: [
4201
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "IconButton \u2014 sizes" }),
4202
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-wrap gap-3 items-end", children: [
3838
4203
  [
3839
- { s: "smallest", icon: /* @__PURE__ */ jsx16(PencilIcon3, { size: 14 }) },
3840
- { s: "small", icon: /* @__PURE__ */ jsx16(PencilIcon3, { size: 16 }) },
3841
- { s: "medium", icon: /* @__PURE__ */ jsx16(PencilIcon3, { size: 20 }) },
3842
- { s: "large", icon: /* @__PURE__ */ jsx16(PencilIcon3, { size: 24 }) }
3843
- ].map(({ s, icon }) => /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center gap-1", children: [
3844
- /* @__PURE__ */ jsx16(IconButton5, { size: s, children: icon }),
3845
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: s.charAt(0).toUpperCase() + s.slice(1) })
4204
+ { s: "smallest", icon: /* @__PURE__ */ jsx17(PencilIcon3, { size: 14 }) },
4205
+ { s: "small", icon: /* @__PURE__ */ jsx17(PencilIcon3, { size: 16 }) },
4206
+ { s: "medium", icon: /* @__PURE__ */ jsx17(PencilIcon3, { size: 20 }) },
4207
+ { s: "large", icon: /* @__PURE__ */ jsx17(PencilIcon3, { size: 24 }) }
4208
+ ].map(({ s, icon }) => /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center gap-1", children: [
4209
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Edit", size: s, children: icon }),
4210
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", children: s.charAt(0).toUpperCase() + s.slice(1) })
3846
4211
  ] }, s)),
3847
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center gap-1", children: [
3848
- /* @__PURE__ */ jsx16(IconButton5, { disabled: true, children: /* @__PURE__ */ jsx16(Trash2Icon3, { size: 20 }) }),
3849
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: "Disabled" })
4212
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center gap-1", children: [
4213
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Delete", disabled: true, children: /* @__PURE__ */ jsx17(Trash2Icon3, { size: 20 }) }),
4214
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", children: "Disabled" })
3850
4215
  ] }),
3851
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center gap-1", children: [
3852
- /* @__PURE__ */ jsx16(IconButton5, { variant: "filled", children: /* @__PURE__ */ jsx16(PlusIcon, { size: 20 }) }),
3853
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: "Filled" })
4216
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center gap-1", children: [
4217
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Add", variant: "filled", children: /* @__PURE__ */ jsx17(PlusIcon, { size: 20 }) }),
4218
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", children: "Filled" })
3854
4219
  ] }),
3855
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center gap-1", children: [
3856
- /* @__PURE__ */ jsx16(IconButton5, { shape: "square", children: /* @__PURE__ */ jsx16(SettingsIcon3, { size: 20 }) }),
3857
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: "Square" })
4220
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center gap-1", children: [
4221
+ /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Settings", shape: "square", children: /* @__PURE__ */ jsx17(SettingsIcon3, { size: 20 }) }),
4222
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", children: "Square" })
3858
4223
  ] })
3859
4224
  ] })
3860
4225
  ] }),
3861
- /* @__PURE__ */ jsxs16("div", { children: [
3862
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "LoadingButton" }),
3863
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap gap-3", children: [
3864
- /* @__PURE__ */ jsx16(LoadingButton, { loading: true, children: "Saving\u2026" }),
3865
- /* @__PURE__ */ jsx16(LoadingButton, { loading: false, children: "Idle" })
4226
+ /* @__PURE__ */ jsxs17("div", { children: [
4227
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "LoadingButton" }),
4228
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-wrap gap-3", children: [
4229
+ /* @__PURE__ */ jsx17(LoadingButton, { loading: true, children: "Saving\u2026" }),
4230
+ /* @__PURE__ */ jsx17(LoadingButton, { loading: false, children: "Idle" })
3866
4231
  ] })
3867
4232
  ] })
3868
4233
  ] })
3869
4234
  ] }),
3870
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "inputs", title: "Form Inputs", children: [
3871
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4 max-w-[68ch]", children: [
4235
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "inputs", title: "Form Inputs", children: [
4236
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4 max-w-[68ch]", children: [
3872
4237
  "Two ways to label a field. A record form puts the label ",
3873
- /* @__PURE__ */ jsx16("em", { children: "above" }),
4238
+ /* @__PURE__ */ jsx17("em", { children: "above" }),
3874
4239
  " the control (",
3875
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "FieldBlock" }),
4240
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "FieldBlock" }),
3876
4241
  ": 13px, primary ink, muted type icon) and the control is",
3877
4242
  " ",
3878
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "large" }),
4243
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "large" }),
3879
4244
  ", 48px. A dialog or a standalone control carries its label",
3880
4245
  " ",
3881
- /* @__PURE__ */ jsx16("em", { children: "inside" }),
4246
+ /* @__PURE__ */ jsx17("em", { children: "inside" }),
3882
4247
  " as the floating ",
3883
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "label" }),
4248
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "label" }),
3884
4249
  " prop and is",
3885
4250
  " ",
3886
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "medium" }),
4251
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "medium" }),
3887
4252
  ", 40px. Every field has its hairline."
3888
4253
  ] }),
3889
- /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-12 gap-4", children: [
3890
- /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6", children: [
3891
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'record form \xB7 size="large", label above' }),
3892
- /* @__PURE__ */ jsx16("div", { className: "flex flex-col gap-5 mb-6", children: [
4254
+ /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-12 gap-4", children: [
4255
+ /* @__PURE__ */ jsxs17("div", { className: "col-span-12 sm:col-span-6", children: [
4256
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'record form \xB7 size="large", label above' }),
4257
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-5 mb-6", children: [
3893
4258
  ["Product name", "Italian coffee maker", "Shown on the storefront and in receipts.", false, false],
3894
4259
  ["SKU", "SKU-57032", "Stock keeping unit \u2014 unique product identifier", true, false],
3895
4260
  ["Brand", "Alessi", void 0, false, true]
3896
- ].map(([label, value, help, required, disabled]) => /* @__PURE__ */ jsxs16("div", { className: "flex flex-col min-w-0", children: [
3897
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-1.5 font-medium leading-tight mb-1.5 text-[13px]", children: [
3898
- /* @__PURE__ */ jsx16("span", { className: "shrink-0 text-text-disabled dark:text-text-disabled-dark", children: /* @__PURE__ */ jsx16(FileTextIcon3, { size: 14 }) }),
3899
- /* @__PURE__ */ jsx16("span", { className: "truncate", children: label }),
3900
- required && /* @__PURE__ */ jsx16("span", { className: "text-red-500 dark:text-red-500 -ml-1", children: "*" })
4261
+ ].map(([label, value, help, required, disabled]) => /* @__PURE__ */ jsxs17("div", { className: "flex flex-col min-w-0", children: [
4262
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-1.5 font-medium leading-tight mb-1.5 text-[13px]", children: [
4263
+ /* @__PURE__ */ jsx17("span", { className: "shrink-0 text-text-disabled dark:text-text-disabled-dark", children: /* @__PURE__ */ jsx17(FileTextIcon3, { size: 14 }) }),
4264
+ /* @__PURE__ */ jsx17("span", { className: "truncate", children: label }),
4265
+ required && /* @__PURE__ */ jsx17("span", { className: "text-red-500 dark:text-red-500 -ml-1", children: "*" })
3901
4266
  ] }),
3902
- /* @__PURE__ */ jsx16(TextField3, { size: "large", value, disabled, onChange: () => {
4267
+ /* @__PURE__ */ jsx17(TextField4, { size: "large", value, disabled, onChange: () => {
3903
4268
  } }),
3904
- help && /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "disabled", className: "mt-1.5 ml-0.5 leading-snug", children: help })
4269
+ help && /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "disabled", className: "mt-1.5 ml-0.5 leading-snug", children: help })
3905
4270
  ] }, label)) }),
3906
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'TextField \xB7 floating label, size="medium" (dialogs)' }),
3907
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-3", children: [
3908
- /* @__PURE__ */ jsx16(TextField3, { size: "medium", label: "Default", placeholder: "Type something\u2026" }),
3909
- /* @__PURE__ */ jsx16(TextField3, { size: "medium", label: "With value", value: "Filled value", onChange: () => {
4271
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: 'TextField \xB7 floating label, size="medium" (dialogs)' }),
4272
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-3", children: [
4273
+ /* @__PURE__ */ jsx17(TextField4, { size: "medium", label: "Default", placeholder: "Type something\u2026" }),
4274
+ /* @__PURE__ */ jsx17(TextField4, { size: "medium", label: "With value", value: "Filled value", onChange: () => {
3910
4275
  } }),
3911
- /* @__PURE__ */ jsx16(TextField3, { size: "medium", label: "Error state", error: true, value: "Bad value", onChange: () => {
4276
+ /* @__PURE__ */ jsx17(TextField4, { size: "medium", label: "Error state", error: true, value: "Bad value", onChange: () => {
3912
4277
  } }),
3913
- /* @__PURE__ */ jsx16(TextField3, { size: "medium", label: "Disabled", disabled: true, value: "Read only", onChange: () => {
4278
+ /* @__PURE__ */ jsx17(TextField4, { size: "medium", label: "Disabled", disabled: true, value: "Read only", onChange: () => {
3914
4279
  } }),
3915
- /* @__PURE__ */ jsx16(TextField3, { size: "small", label: "Small", placeholder: "Placeholder under the label" }),
3916
- /* @__PURE__ */ jsx16(TextField3, { size: "smallest", label: "Smallest", value: "Filled value", onChange: () => {
4280
+ /* @__PURE__ */ jsx17(TextField4, { size: "small", label: "Small", placeholder: "Placeholder under the label" }),
4281
+ /* @__PURE__ */ jsx17(TextField4, { size: "smallest", label: "Smallest", value: "Filled value", onChange: () => {
3917
4282
  } }),
3918
- /* @__PURE__ */ jsx16(TextField3, { size: "large", label: "Large", placeholder: "The login screen" })
4283
+ /* @__PURE__ */ jsx17(TextField4, { size: "large", label: "Large", placeholder: "The login screen" })
3919
4284
  ] })
3920
4285
  ] }),
3921
- /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-4", children: [
3922
- /* @__PURE__ */ jsxs16("div", { children: [
3923
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Select" }),
3924
- /* @__PURE__ */ jsxs16(Select6, { label: "Status", value: "published", onValueChange: () => {
4286
+ /* @__PURE__ */ jsxs17("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-4", children: [
4287
+ /* @__PURE__ */ jsxs17("div", { children: [
4288
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Select" }),
4289
+ /* @__PURE__ */ jsxs17(Select7, { label: "Status", value: "published", onValueChange: () => {
3925
4290
  }, children: [
3926
- /* @__PURE__ */ jsx16(SelectItem6, { value: "draft", children: "Draft" }),
3927
- /* @__PURE__ */ jsx16(SelectItem6, { value: "published", children: "Published" }),
3928
- /* @__PURE__ */ jsx16(SelectItem6, { value: "archived", children: "Archived" })
4291
+ /* @__PURE__ */ jsx17(SelectItem7, { value: "draft", children: "Draft" }),
4292
+ /* @__PURE__ */ jsx17(SelectItem7, { value: "published", children: "Published" }),
4293
+ /* @__PURE__ */ jsx17(SelectItem7, { value: "archived", children: "Archived" })
3929
4294
  ] })
3930
4295
  ] }),
3931
- /* @__PURE__ */ jsxs16("div", { children: [
3932
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "MultiSelect" }),
3933
- /* @__PURE__ */ jsxs16(MultiSelect, { label: "Roles", value: ["admin", "editor"], onValueChange: () => {
4296
+ /* @__PURE__ */ jsxs17("div", { children: [
4297
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "MultiSelect" }),
4298
+ /* @__PURE__ */ jsxs17(MultiSelect, { label: "Roles", value: ["admin", "editor"], onValueChange: () => {
3934
4299
  }, children: [
3935
- /* @__PURE__ */ jsx16(MultiSelectItem, { value: "admin", children: "Admin" }),
3936
- /* @__PURE__ */ jsx16(MultiSelectItem, { value: "editor", children: "Editor" }),
3937
- /* @__PURE__ */ jsx16(MultiSelectItem, { value: "viewer", children: "Viewer" })
4300
+ /* @__PURE__ */ jsx17(MultiSelectItem, { value: "admin", children: "Admin" }),
4301
+ /* @__PURE__ */ jsx17(MultiSelectItem, { value: "editor", children: "Editor" }),
4302
+ /* @__PURE__ */ jsx17(MultiSelectItem, { value: "viewer", children: "Viewer" })
3938
4303
  ] })
3939
4304
  ] })
3940
4305
  ] }),
3941
- /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3942
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block font-mono", children: "Checkbox" }),
3943
- /* @__PURE__ */ jsxs16("label", { className: "flex items-center gap-2 cursor-pointer", children: [
3944
- /* @__PURE__ */ jsx16(Checkbox3, { checked: true, onCheckedChange: () => {
4306
+ /* @__PURE__ */ jsxs17("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
4307
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block font-mono", children: "Checkbox" }),
4308
+ /* @__PURE__ */ jsxs17(Label2, { className: "flex items-center gap-2 cursor-pointer", children: [
4309
+ /* @__PURE__ */ jsx17(Checkbox3, { checked: true, onCheckedChange: () => {
3945
4310
  } }),
3946
- /* @__PURE__ */ jsx16("span", { children: "Checked" })
4311
+ "Checked"
3947
4312
  ] }),
3948
- /* @__PURE__ */ jsxs16("label", { className: "flex items-center gap-2 cursor-pointer", children: [
3949
- /* @__PURE__ */ jsx16(Checkbox3, { checked: false, onCheckedChange: () => {
4313
+ /* @__PURE__ */ jsxs17(Label2, { className: "flex items-center gap-2 cursor-pointer", children: [
4314
+ /* @__PURE__ */ jsx17(Checkbox3, { checked: false, onCheckedChange: () => {
3950
4315
  } }),
3951
- /* @__PURE__ */ jsx16("span", { children: "Unchecked" })
4316
+ "Unchecked"
3952
4317
  ] }),
3953
- /* @__PURE__ */ jsxs16("label", { className: "flex items-center gap-2", children: [
3954
- /* @__PURE__ */ jsx16(Checkbox3, { checked: true, disabled: true }),
3955
- /* @__PURE__ */ jsx16("span", { children: "Disabled" })
4318
+ /* @__PURE__ */ jsxs17(Label2, { className: "flex items-center gap-2", children: [
4319
+ /* @__PURE__ */ jsx17(Checkbox3, { checked: true, disabled: true }),
4320
+ "Disabled"
3956
4321
  ] })
3957
4322
  ] }),
3958
- /* @__PURE__ */ jsxs16("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
3959
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block font-mono", children: "BooleanSwitch" }),
3960
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
3961
- /* @__PURE__ */ jsx16(BooleanSwitch, { value: true, onValueChange: () => {
4323
+ /* @__PURE__ */ jsxs17("div", { className: "col-span-12 sm:col-span-6 flex flex-col gap-3", children: [
4324
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block font-mono", children: "BooleanSwitch" }),
4325
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
4326
+ /* @__PURE__ */ jsx17(BooleanSwitch, { value: true, onValueChange: () => {
3962
4327
  } }),
3963
- /* @__PURE__ */ jsx16("span", { children: "On" })
4328
+ /* @__PURE__ */ jsx17("span", { children: "On" })
3964
4329
  ] }),
3965
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
3966
- /* @__PURE__ */ jsx16(BooleanSwitch, { value: false, onValueChange: () => {
4330
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
4331
+ /* @__PURE__ */ jsx17(BooleanSwitch, { value: false, onValueChange: () => {
3967
4332
  } }),
3968
- /* @__PURE__ */ jsx16("span", { children: "Off" })
4333
+ /* @__PURE__ */ jsx17("span", { children: "Off" })
3969
4334
  ] }),
3970
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
3971
- /* @__PURE__ */ jsx16(BooleanSwitch, { value: true, disabled: true }),
3972
- /* @__PURE__ */ jsx16("span", { children: "Disabled on" })
4335
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
4336
+ /* @__PURE__ */ jsx17(BooleanSwitch, { value: true, disabled: true }),
4337
+ /* @__PURE__ */ jsx17("span", { children: "Disabled on" })
3973
4338
  ] }),
3974
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
3975
- /* @__PURE__ */ jsx16(BooleanSwitch, { value: false, disabled: true }),
3976
- /* @__PURE__ */ jsx16("span", { children: "Disabled off" })
4339
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
4340
+ /* @__PURE__ */ jsx17(BooleanSwitch, { value: false, disabled: true }),
4341
+ /* @__PURE__ */ jsx17("span", { children: "Disabled off" })
3977
4342
  ] })
3978
4343
  ] }),
3979
- /* @__PURE__ */ jsxs16("div", { className: "col-span-12", children: [
3980
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "SearchBar" }),
3981
- /* @__PURE__ */ jsx16(SearchBar4, { placeholder: "Search entities\u2026" })
4344
+ /* @__PURE__ */ jsxs17("div", { className: "col-span-12", children: [
4345
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "SearchBar" }),
4346
+ /* @__PURE__ */ jsx17(SearchBar4, { placeholder: "Search entities\u2026" })
3982
4347
  ] }),
3983
- /* @__PURE__ */ jsxs16("div", { className: "col-span-12", children: [
3984
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Skeleton" }),
3985
- /* @__PURE__ */ jsxs16("div", { className: "flex gap-4 items-center flex-wrap", children: [
3986
- /* @__PURE__ */ jsx16(Skeleton6, { className: "w-10 h-10 rounded-full" }),
3987
- /* @__PURE__ */ jsx16(Skeleton6, { className: "w-48 h-4 rounded" }),
3988
- /* @__PURE__ */ jsx16(Skeleton6, { className: "w-32 h-8 rounded-md" })
4348
+ /* @__PURE__ */ jsxs17("div", { className: "col-span-12", children: [
4349
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Skeleton" }),
4350
+ /* @__PURE__ */ jsxs17("div", { className: "flex gap-4 items-center flex-wrap", children: [
4351
+ /* @__PURE__ */ jsx17(Skeleton6, { className: "w-10 h-10 rounded-full" }),
4352
+ /* @__PURE__ */ jsx17(Skeleton6, { className: "w-48 h-4 rounded" }),
4353
+ /* @__PURE__ */ jsx17(Skeleton6, { className: "w-32 h-8 rounded-md" })
3989
4354
  ] })
3990
4355
  ] })
3991
4356
  ] })
3992
4357
  ] }),
3993
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "chips-alerts", title: "Chips & Alerts", children: [
3994
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Chip \u2014 colorScheme" }),
3995
- /* @__PURE__ */ jsx16("div", { className: "flex flex-wrap gap-2 mb-4", children: ["blue", "teal", "red", "green", "yellow", "orange", "purple", "pink", "cyan", "indigo", "violet", "fuchsia", "rose", "emerald", "gray"].map((s) => /* @__PURE__ */ jsx16(Chip8, { colorScheme: s, children: s }, s)) }),
3996
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Chip \u2014 sizes" }),
3997
- /* @__PURE__ */ jsx16("div", { className: "flex flex-wrap gap-2 items-center mb-4", children: ["smallest", "small", "medium", "large"].map((sz) => /* @__PURE__ */ jsx16(Chip8, { colorScheme: "blue", size: sz, children: sz }, sz)) }),
3998
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Chip \u2014 outlined, error, clickable, icon" }),
3999
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap gap-2 items-center mb-4", children: [
4000
- /* @__PURE__ */ jsx16(Chip8, { colorScheme: "red", outlined: true, children: "Outlined Red" }),
4001
- /* @__PURE__ */ jsx16(Chip8, { colorScheme: "blue", outlined: true, children: "Outlined Blue" }),
4002
- /* @__PURE__ */ jsx16(Chip8, { error: true, children: "Error" }),
4003
- /* @__PURE__ */ jsx16(Chip8, { error: true, outlined: true, children: "Error Outlined" }),
4004
- /* @__PURE__ */ jsx16(Chip8, { onClick: () => {
4358
+ /* @__PURE__ */ jsx17(MoreControlsSection, {}),
4359
+ /* @__PURE__ */ jsx17(OverlaysSection, {}),
4360
+ /* @__PURE__ */ jsx17(DisclosureLayoutSection, {}),
4361
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "chips-alerts", title: "Chips & Alerts", children: [
4362
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Chip \u2014 colorScheme" }),
4363
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-wrap gap-2 mb-4", children: ["blue", "teal", "red", "green", "yellow", "orange", "purple", "pink", "cyan", "indigo", "violet", "fuchsia", "rose", "emerald", "gray"].map((s) => /* @__PURE__ */ jsx17(Chip8, { colorScheme: s, children: s }, s)) }),
4364
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Chip \u2014 sizes" }),
4365
+ /* @__PURE__ */ jsx17("div", { className: "flex flex-wrap gap-2 items-center mb-4", children: ["smallest", "small", "medium", "large"].map((sz) => /* @__PURE__ */ jsx17(Chip8, { colorScheme: "blue", size: sz, children: sz }, sz)) }),
4366
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Chip \u2014 outlined, error, clickable, icon" }),
4367
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-wrap gap-2 items-center mb-4", children: [
4368
+ /* @__PURE__ */ jsx17(Chip8, { colorScheme: "red", outlined: true, children: "Outlined Red" }),
4369
+ /* @__PURE__ */ jsx17(Chip8, { colorScheme: "blue", outlined: true, children: "Outlined Blue" }),
4370
+ /* @__PURE__ */ jsx17(Chip8, { error: true, children: "Error" }),
4371
+ /* @__PURE__ */ jsx17(Chip8, { error: true, outlined: true, children: "Error Outlined" }),
4372
+ /* @__PURE__ */ jsx17(Chip8, { onClick: () => {
4005
4373
  }, children: "Clickable" }),
4006
- /* @__PURE__ */ jsx16(Chip8, { icon: /* @__PURE__ */ jsx16(TagIcon, { size: 12 }), colorScheme: "teal", children: "With Icon" }),
4007
- /* @__PURE__ */ jsx16(Chip8, { children: "Default (no scheme)" }),
4008
- /* @__PURE__ */ jsx16(Chip8, { outlined: true, children: "Default Outlined" }),
4009
- /* @__PURE__ */ jsx16(Chip8, { colorScheme: "green", variant: "filled", children: "Filled Green" }),
4010
- /* @__PURE__ */ jsx16(Chip8, { colorScheme: "greenDarker", children: "Tinted Darker" })
4374
+ /* @__PURE__ */ jsx17(Chip8, { icon: /* @__PURE__ */ jsx17(TagIcon, { size: 12 }), colorScheme: "teal", children: "With Icon" }),
4375
+ /* @__PURE__ */ jsx17(Chip8, { children: "Default (no scheme)" }),
4376
+ /* @__PURE__ */ jsx17(Chip8, { outlined: true, children: "Default Outlined" }),
4377
+ /* @__PURE__ */ jsx17(Chip8, { colorScheme: "green", variant: "filled", children: "Filled Green" }),
4378
+ /* @__PURE__ */ jsx17(Chip8, { colorScheme: "greenDarker", children: "Tinted Darker" })
4011
4379
  ] }),
4012
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "FilterChip" }),
4013
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap gap-2 items-center mb-6", children: [
4014
- /* @__PURE__ */ jsx16(FilterChip2, { active: true, children: "Active" }),
4015
- /* @__PURE__ */ jsx16(FilterChip2, { children: "Inactive" }),
4016
- /* @__PURE__ */ jsx16(FilterChip2, { icon: /* @__PURE__ */ jsx16(FilterIcon, { size: 12 }), active: true, children: "With Icon" }),
4017
- /* @__PURE__ */ jsx16(FilterChip2, { size: "small", children: "Small" }),
4018
- /* @__PURE__ */ jsx16(FilterChip2, { disabled: true, children: "Disabled" })
4380
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "FilterChip" }),
4381
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-wrap gap-2 items-center mb-6", children: [
4382
+ /* @__PURE__ */ jsx17(FilterChip2, { active: true, children: "Active" }),
4383
+ /* @__PURE__ */ jsx17(FilterChip2, { children: "Inactive" }),
4384
+ /* @__PURE__ */ jsx17(FilterChip2, { icon: /* @__PURE__ */ jsx17(FilterIcon, { size: 12 }), active: true, children: "With Icon" }),
4385
+ /* @__PURE__ */ jsx17(FilterChip2, { size: "small", children: "Small" }),
4386
+ /* @__PURE__ */ jsx17(FilterChip2, { disabled: true, children: "Disabled" })
4019
4387
  ] }),
4020
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Alert \u2014 color variants" }),
4021
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-2", children: [
4022
- /* @__PURE__ */ jsx16(Alert3, { color: "info", children: "Info \u2014 informational message" }),
4023
- /* @__PURE__ */ jsx16(Alert3, { color: "success", children: "Success \u2014 operation completed" }),
4024
- /* @__PURE__ */ jsx16(Alert3, { color: "warning", children: "Warning \u2014 attention required" }),
4025
- /* @__PURE__ */ jsx16(Alert3, { color: "error", children: "Error \u2014 something went wrong" })
4388
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Alert \u2014 color variants" }),
4389
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
4390
+ /* @__PURE__ */ jsx17(Alert3, { color: "info", children: "Info \u2014 informational message" }),
4391
+ /* @__PURE__ */ jsx17(Alert3, { color: "success", children: "Success \u2014 operation completed" }),
4392
+ /* @__PURE__ */ jsx17(Alert3, { color: "warning", children: "Warning \u2014 attention required" }),
4393
+ /* @__PURE__ */ jsx17(Alert3, { color: "error", children: "Error \u2014 something went wrong" })
4026
4394
  ] }),
4027
- /* @__PURE__ */ jsxs16("div", { className: "mt-4", children: [
4028
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Separator" }),
4029
- /* @__PURE__ */ jsx16("div", { children: "Above" }),
4030
- /* @__PURE__ */ jsx16(Separator5, { orientation: "horizontal" }),
4031
- /* @__PURE__ */ jsx16("div", { children: "Below" })
4395
+ /* @__PURE__ */ jsxs17("div", { className: "mt-4", children: [
4396
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "Separator" }),
4397
+ /* @__PURE__ */ jsx17("div", { children: "Above" }),
4398
+ /* @__PURE__ */ jsx17(Separator5, { orientation: "horizontal" }),
4399
+ /* @__PURE__ */ jsx17("div", { children: "Below" })
4032
4400
  ] }),
4033
- /* @__PURE__ */ jsxs16("div", { className: "mt-4", children: [
4034
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "CircularProgress" }),
4035
- /* @__PURE__ */ jsx16("div", { className: "flex gap-6 items-center", children: ["small", "medium", "large"].map((s) => /* @__PURE__ */ jsxs16("div", { className: "flex flex-col items-center gap-1", children: [
4036
- /* @__PURE__ */ jsx16(CircularProgress, { size: s }),
4037
- /* @__PURE__ */ jsx16(Typography14, { variant: "caption", color: "secondary", children: s })
4401
+ /* @__PURE__ */ jsxs17("div", { className: "mt-4", children: [
4402
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", className: "block mb-2 font-mono", children: "CircularProgress" }),
4403
+ /* @__PURE__ */ jsx17("div", { className: "flex gap-6 items-center", children: ["small", "medium", "large"].map((s) => /* @__PURE__ */ jsxs17("div", { className: "flex flex-col items-center gap-1", children: [
4404
+ /* @__PURE__ */ jsx17(CircularProgress, { size: s }),
4405
+ /* @__PURE__ */ jsx17(Typography15, { variant: "caption", color: "secondary", children: s })
4038
4406
  ] }, s)) })
4039
4407
  ] })
4040
4408
  ] }),
4041
- /* @__PURE__ */ jsx16(CardsDataSection, {}),
4042
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "users", title: "Management Screen \u2014 Alert + Table + Chip", children: [
4043
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
4409
+ /* @__PURE__ */ jsx17(CardsDataSection, {}),
4410
+ /* @__PURE__ */ jsx17(DataDisplaySection, {}),
4411
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "users", title: "Management Screen \u2014 Alert + Table + Chip", children: [
4412
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
4044
4413
  "Canonical layout for an admin management screen: an ",
4045
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Alert" }),
4414
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Alert" }),
4046
4415
  " with an ",
4047
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "action" }),
4416
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "action" }),
4048
4417
  ", a header row, and a plain ",
4049
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Table" }),
4418
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Table" }),
4050
4419
  " with ",
4051
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Chip" }),
4420
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Chip" }),
4052
4421
  "s. Illustrative mock \u2014 not tied to a specific screen."
4053
4422
  ] }),
4054
- /* @__PURE__ */ jsx16(
4423
+ /* @__PURE__ */ jsx17(
4055
4424
  Alert3,
4056
4425
  {
4057
4426
  color: "warning",
4058
4427
  outerClassName: "mb-4",
4059
- action: /* @__PURE__ */ jsx16(Button9, { children: "Make me admin" }),
4428
+ action: /* @__PURE__ */ jsx17(Button10, { children: "Make me admin" }),
4060
4429
  children: "No admin users exist. You can make yourself an admin."
4061
4430
  }
4062
4431
  ),
4063
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center mt-12", children: [
4064
- /* @__PURE__ */ jsx16(Typography14, { gutterBottom: true, variant: "h4", className: "grow", component: "h4", children: "Users" }),
4065
- /* @__PURE__ */ jsx16(Button9, { startIcon: /* @__PURE__ */ jsx16(PlusIcon, {}), children: "Add user" })
4432
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center mt-12", children: [
4433
+ /* @__PURE__ */ jsx17(Typography15, { gutterBottom: true, variant: "h4", className: "grow", component: "h4", children: "Users" }),
4434
+ /* @__PURE__ */ jsx17(Button10, { startIcon: /* @__PURE__ */ jsx17(PlusIcon, {}), children: "Add user" })
4066
4435
  ] }),
4067
- /* @__PURE__ */ jsx16("div", { className: "overflow-auto", children: /* @__PURE__ */ jsxs16(Table2, { className: "w-full", children: [
4068
- /* @__PURE__ */ jsxs16(TableHeader2, { children: [
4069
- /* @__PURE__ */ jsx16(TableCell2, { header: true, className: "truncate w-16" }),
4070
- /* @__PURE__ */ jsx16(TableCell2, { header: true, children: "Email" }),
4071
- /* @__PURE__ */ jsx16(TableCell2, { header: true, children: "Name" }),
4072
- /* @__PURE__ */ jsx16(TableCell2, { header: true, children: "Roles" })
4436
+ /* @__PURE__ */ jsx17("div", { className: "overflow-auto", children: /* @__PURE__ */ jsxs17(Table2, { className: "w-full", children: [
4437
+ /* @__PURE__ */ jsxs17(TableHeader2, { children: [
4438
+ /* @__PURE__ */ jsx17(TableCell2, { header: true, className: "truncate w-16" }),
4439
+ /* @__PURE__ */ jsx17(TableCell2, { header: true, children: "Email" }),
4440
+ /* @__PURE__ */ jsx17(TableCell2, { header: true, children: "Name" }),
4441
+ /* @__PURE__ */ jsx17(TableCell2, { header: true, children: "Roles" })
4073
4442
  ] }),
4074
- /* @__PURE__ */ jsx16(TableBody2, { children: [
4443
+ /* @__PURE__ */ jsx17(TableBody2, { children: [
4075
4444
  {
4076
4445
  uid: "1",
4077
4446
  email: "alice@example.com",
@@ -4098,93 +4467,107 @@ function UIReferenceView() {
4098
4467
  displayName: "Carol White",
4099
4468
  roles: []
4100
4469
  }
4101
- ].map((user) => /* @__PURE__ */ jsxs16(TableRow2, { children: [
4102
- /* @__PURE__ */ jsx16(TableCell2, { style: { width: "64px" }, children: /* @__PURE__ */ jsx16(Tooltip3, { asChild: true, title: "Delete this user", children: /* @__PURE__ */ jsx16(IconButton5, { "aria-label": "Delete this user", size: "small", children: /* @__PURE__ */ jsx16(Trash2Icon3, {}) }) }) }),
4103
- /* @__PURE__ */ jsx16(TableCell2, { children: user.email }),
4104
- /* @__PURE__ */ jsx16(TableCell2, { className: "font-medium", children: user.displayName }),
4105
- /* @__PURE__ */ jsx16(TableCell2, { children: /* @__PURE__ */ jsx16("div", { className: "flex flex-wrap gap-2", children: user.roles.map((role) => /* @__PURE__ */ jsx16(Chip8, { colorScheme: role.isAdmin ? "purple" : "blue", size: "small", children: role.name }, role.id)) }) })
4470
+ ].map((user) => /* @__PURE__ */ jsxs17(TableRow2, { children: [
4471
+ /* @__PURE__ */ jsx17(TableCell2, { style: { width: "64px" }, children: /* @__PURE__ */ jsx17(Tooltip3, { asChild: true, title: "Delete this user", children: /* @__PURE__ */ jsx17(IconButton5, { "aria-label": "Delete this user", size: "small", children: /* @__PURE__ */ jsx17(Trash2Icon3, {}) }) }) }),
4472
+ /* @__PURE__ */ jsx17(TableCell2, { children: user.email }),
4473
+ /* @__PURE__ */ jsx17(TableCell2, { className: "font-medium", children: user.displayName }),
4474
+ /* @__PURE__ */ jsx17(TableCell2, { children: /* @__PURE__ */ jsx17("div", { className: "flex flex-wrap gap-2", children: user.roles.map((role) => /* @__PURE__ */ jsx17(Chip8, { colorScheme: role.isAdmin ? "purple" : "blue", size: "small", children: role.name }, role.id)) }) })
4106
4475
  ] }, user.uid)) })
4476
+ ] }) }),
4477
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "caption", color: "secondary", className: "block mt-8 mb-2", children: [
4478
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: 'TableBody variant="list"' }),
4479
+ " \u2014 a list on the sheet (Studio's storage list)"
4480
+ ] }),
4481
+ /* @__PURE__ */ jsx17("div", { className: "overflow-auto", children: /* @__PURE__ */ jsxs17(Table2, { className: "w-full", children: [
4482
+ /* @__PURE__ */ jsxs17(TableHeader2, { children: [
4483
+ /* @__PURE__ */ jsx17(TableCell2, { header: true, children: "Name" }),
4484
+ /* @__PURE__ */ jsx17(TableCell2, { header: true, align: "right", children: "Size" })
4485
+ ] }),
4486
+ /* @__PURE__ */ jsx17(TableBody2, { variant: "list", children: [{ name: "report.pdf", size: "1.2 MB" }, { name: "cover.png", size: "320 KB" }].map((file) => /* @__PURE__ */ jsxs17(TableRow2, { onClick: () => void 0, children: [
4487
+ /* @__PURE__ */ jsx17(TableCell2, { children: file.name }),
4488
+ /* @__PURE__ */ jsx17(TableCell2, { align: "right", children: file.size })
4489
+ ] }, file.name)) })
4107
4490
  ] }) })
4108
4491
  ] }),
4109
- /* @__PURE__ */ jsxs16(SectionBlock, { id: "user-dialog", title: "Form Dialog \u2014 grid + MultiSelect + LoadingButton", children: [
4110
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
4492
+ /* @__PURE__ */ jsxs17(SectionBlock, { id: "user-dialog", title: "Form Dialog \u2014 grid + MultiSelect + LoadingButton", children: [
4493
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
4111
4494
  "Canonical form-in-a-card layout: ",
4112
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "grid grid-cols-12 gap-4" }),
4495
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "grid grid-cols-12 gap-4" }),
4113
4496
  " for the fields, a ",
4114
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "MultiSelect" }),
4497
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "MultiSelect" }),
4115
4498
  ", and a ",
4116
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "LoadingButton" }),
4499
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "LoadingButton" }),
4117
4500
  " to submit. Illustrative mock \u2014 not tied to a specific screen."
4118
4501
  ] }),
4119
- /* @__PURE__ */ jsxs16("div", { className: `rounded-lg border w-full max-w-xl ${defaultBorderMixin6}`, children: [
4120
- /* @__PURE__ */ jsx16("div", { className: "px-6 pt-6 pb-2", children: /* @__PURE__ */ jsx16(Typography14, { variant: "h4", children: "User" }) }),
4121
- /* @__PURE__ */ jsx16("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsxs16("div", { className: "grid grid-cols-12 gap-4", children: [
4122
- /* @__PURE__ */ jsx16("div", { className: "col-span-12", children: /* @__PURE__ */ jsx16(TextField3, { name: "displayName", required: true, value: "Alice Johnson", onChange: () => {
4502
+ /* @__PURE__ */ jsxs17("div", { className: `rounded-lg border w-full max-w-xl ${defaultBorderMixin6}`, children: [
4503
+ /* @__PURE__ */ jsx17("div", { className: "px-6 pt-6 pb-2", children: /* @__PURE__ */ jsx17(Typography15, { variant: "h4", children: "User" }) }),
4504
+ /* @__PURE__ */ jsx17("div", { className: "px-6 py-4", children: /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-12 gap-4", children: [
4505
+ /* @__PURE__ */ jsx17("div", { className: "col-span-12", children: /* @__PURE__ */ jsx17(TextField4, { name: "displayName", required: true, value: "Alice Johnson", onChange: () => {
4123
4506
  }, label: "Name" }) }),
4124
- /* @__PURE__ */ jsx16("div", { className: "col-span-12", children: /* @__PURE__ */ jsx16(TextField3, { required: true, name: "email", value: "alice@example.com", onChange: () => {
4507
+ /* @__PURE__ */ jsx17("div", { className: "col-span-12", children: /* @__PURE__ */ jsx17(TextField4, { required: true, name: "email", value: "alice@example.com", onChange: () => {
4125
4508
  }, label: "Email", disabled: true }) }),
4126
- /* @__PURE__ */ jsx16("div", { className: "col-span-12", children: /* @__PURE__ */ jsxs16(MultiSelect, { className: "w-full", label: "Roles", value: ["admin"], onValueChange: () => {
4509
+ /* @__PURE__ */ jsx17("div", { className: "col-span-12", children: /* @__PURE__ */ jsxs17(MultiSelect, { className: "w-full", label: "Roles", value: ["admin"], onValueChange: () => {
4127
4510
  }, children: [
4128
- /* @__PURE__ */ jsx16(MultiSelectItem, { value: "admin", children: "Admin" }),
4129
- /* @__PURE__ */ jsx16(MultiSelectItem, { value: "editor", children: "Editor" }),
4130
- /* @__PURE__ */ jsx16(MultiSelectItem, { value: "viewer", children: "Viewer" })
4511
+ /* @__PURE__ */ jsx17(MultiSelectItem, { value: "admin", children: "Admin" }),
4512
+ /* @__PURE__ */ jsx17(MultiSelectItem, { value: "editor", children: "Editor" }),
4513
+ /* @__PURE__ */ jsx17(MultiSelectItem, { value: "viewer", children: "Viewer" })
4131
4514
  ] }) })
4132
4515
  ] }) }),
4133
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-end gap-2 px-6 pb-6", children: [
4134
- /* @__PURE__ */ jsx16(Button9, { variant: "text", children: "Cancel" }),
4135
- /* @__PURE__ */ jsx16(LoadingButton, { variant: "filled", loading: false, children: "Update" })
4516
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-end gap-2 px-6 pb-6", children: [
4517
+ /* @__PURE__ */ jsx17(Button10, { variant: "text", children: "Cancel" }),
4518
+ /* @__PURE__ */ jsx17(LoadingButton, { variant: "filled", loading: false, children: "Update" })
4136
4519
  ] })
4137
4520
  ] })
4138
4521
  ] }),
4139
- /* @__PURE__ */ jsxs16(SectionBlock, { wide: true, id: "crm-dashboard", title: "CRM Dashboard \u2014 CrmDashboardDemo", children: [
4140
- /* @__PURE__ */ jsx16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: "A real-world showcase of a complex dashboard home page incorporating Rebase design language." }),
4141
- /* @__PURE__ */ jsx16("div", { className: "w-full overflow-x-auto", children: /* @__PURE__ */ jsx16(CrmDashboardDemo, {}) })
4522
+ /* @__PURE__ */ jsxs17(SectionBlock, { wide: true, id: "crm-dashboard", title: "CRM Dashboard \u2014 CrmDashboardDemo", children: [
4523
+ /* @__PURE__ */ jsx17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: "A real-world showcase of a complex dashboard home page incorporating Rebase design language." }),
4524
+ /* @__PURE__ */ jsx17("div", { className: "w-full overflow-x-auto", children: /* @__PURE__ */ jsx17(CrmDashboardDemo, {}) })
4142
4525
  ] }),
4143
- /* @__PURE__ */ jsxs16(SectionBlock, { wide: true, id: "collection-table", title: "Collection Table", children: [
4144
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
4526
+ /* @__PURE__ */ jsxs17(SectionBlock, { wide: true, id: "collection-table", title: "Collection Table", children: [
4527
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
4145
4528
  "Sample data collection rendered as a sortable, searchable, filterable table with row selection. Uses ",
4146
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Table" }),
4529
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Table" }),
4147
4530
  ", ",
4148
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Chip" }),
4531
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Chip" }),
4149
4532
  ",",
4150
4533
  " ",
4151
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "SearchBar" }),
4534
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "SearchBar" }),
4152
4535
  ", ",
4153
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Select" }),
4536
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Select" }),
4154
4537
  ",",
4155
4538
  " ",
4156
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Checkbox" }),
4539
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Checkbox" }),
4157
4540
  "."
4158
4541
  ] }),
4159
- /* @__PURE__ */ jsx16("div", { className: "w-full", children: /* @__PURE__ */ jsx16(CollectionTableDemo, {}) })
4542
+ /* @__PURE__ */ jsx17("div", { className: "w-full", children: /* @__PURE__ */ jsx17(CollectionTableDemo, {}) })
4160
4543
  ] }),
4161
- /* @__PURE__ */ jsxs16(SectionBlock, { wide: true, id: "card-view", title: "Card View", children: [
4162
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
4544
+ /* @__PURE__ */ jsxs17(SectionBlock, { wide: true, id: "card-view", title: "Card View", children: [
4545
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
4163
4546
  "Grid of entity cards with thumbnail area, progress bar, status/priority chips, and assignee. Uses ",
4164
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Card" }),
4547
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Card" }),
4165
4548
  ", ",
4166
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "Chip" }),
4549
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "Chip" }),
4167
4550
  ",",
4168
4551
  " ",
4169
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "ToggleButtonGroup" }),
4552
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "ToggleButtonGroup" }),
4170
4553
  ", ",
4171
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "SearchBar" }),
4554
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "SearchBar" }),
4172
4555
  "."
4173
4556
  ] }),
4174
- /* @__PURE__ */ jsx16("div", { className: "w-full", children: /* @__PURE__ */ jsx16(CardViewDemo, {}) })
4557
+ /* @__PURE__ */ jsx17("div", { className: "w-full", children: /* @__PURE__ */ jsx17(CardViewDemo, {}) })
4175
4558
  ] }),
4176
- /* @__PURE__ */ jsxs16(SectionBlock, { wide: true, id: "kanban-board", title: "Kanban Board", children: [
4177
- /* @__PURE__ */ jsxs16(Typography14, { variant: "body2", color: "secondary", className: "mb-4", children: [
4559
+ /* @__PURE__ */ jsxs17(SectionBlock, { wide: true, id: "kanban-board", title: "Kanban Board", children: [
4560
+ /* @__PURE__ */ jsxs17(Typography15, { variant: "body2", color: "secondary", className: "mb-4", children: [
4178
4561
  "Drag-and-drop kanban board with four status columns. Uses ",
4179
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "KanbanView" }),
4562
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "KanbanView" }),
4180
4563
  ", ",
4181
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "BoardItem" }),
4564
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "BoardItem" }),
4182
4565
  ",",
4183
4566
  " ",
4184
- /* @__PURE__ */ jsx16("code", { className: "font-mono text-xs", children: "BoardItemViewProps" }),
4567
+ /* @__PURE__ */ jsx17("code", { className: "font-mono text-xs", children: "BoardItemViewProps" }),
4185
4568
  "."
4186
4569
  ] }),
4187
- /* @__PURE__ */ jsx16("div", { className: "w-full overflow-x-auto", children: /* @__PURE__ */ jsx16(KanbanBoardDemo, {}) })
4570
+ /* @__PURE__ */ jsx17("div", { className: "w-full overflow-x-auto", children: /* @__PURE__ */ jsx17(KanbanBoardDemo, {}) })
4188
4571
  ] })
4189
4572
  ] })
4190
4573
  ] });