@nanisoft/prism-ui 0.10.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/.tsbuildinfo +1 -1
- package/dist/blocks/app-shell-01/app-shell.js +4 -4
- package/dist/blocks/app-shell-01/index.d.ts +2 -2
- package/dist/blocks/app-shell-01/index.js +1 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts +11 -1
- package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -1
- package/dist/blocks/auth-form-01/auth-form.js +11 -8
- package/dist/blocks/auth-form-01/index.d.ts +2 -2
- package/dist/blocks/auth-form-01/index.js +1 -1
- package/dist/blocks/cta-01/cta.d.ts +26 -21
- package/dist/blocks/cta-01/cta.d.ts.map +1 -1
- package/dist/blocks/cta-01/cta.js +2 -2
- package/dist/blocks/cta-01/index.d.ts +2 -2
- package/dist/blocks/cta-01/index.js +1 -1
- package/dist/blocks/data-table-01/data-table.js +7 -7
- package/dist/blocks/data-table-01/index.d.ts +2 -2
- package/dist/blocks/data-table-01/index.js +1 -1
- package/dist/blocks/empty-state-01/empty-state.d.ts +143 -0
- package/dist/blocks/empty-state-01/empty-state.d.ts.map +1 -0
- package/dist/blocks/empty-state-01/empty-state.js +104 -0
- package/dist/blocks/empty-state-01/index.d.ts +3 -0
- package/dist/blocks/empty-state-01/index.d.ts.map +1 -0
- package/dist/blocks/empty-state-01/index.js +1 -0
- package/dist/blocks/feature-grid-01/feature-grid.d.ts +28 -1
- package/dist/blocks/feature-grid-01/feature-grid.d.ts.map +1 -1
- package/dist/blocks/feature-grid-01/feature-grid.js +34 -3
- package/dist/blocks/feature-grid-01/index.d.ts +2 -2
- package/dist/blocks/feature-grid-01/index.js +1 -1
- package/dist/blocks/hero-01/hero.d.ts +35 -15
- package/dist/blocks/hero-01/hero.d.ts.map +1 -1
- package/dist/blocks/hero-01/hero.js +14 -9
- package/dist/blocks/hero-01/index.d.ts +2 -1
- package/dist/blocks/hero-01/index.d.ts.map +1 -1
- package/dist/blocks/hero-01/index.js +1 -1
- package/dist/blocks/index.d.ts +20 -20
- package/dist/blocks/index.js +19 -19
- package/dist/blocks/instrument-panel-01/index.d.ts +2 -2
- package/dist/blocks/instrument-panel-01/index.js +1 -1
- package/dist/blocks/instrument-panel-01/instrument-panel.js +1 -1
- package/dist/blocks/logo-strip-01/index.d.ts +2 -2
- package/dist/blocks/logo-strip-01/index.js +1 -1
- package/dist/blocks/logo-strip-01/logo-strip.d.ts +1 -1
- package/dist/blocks/logo-strip-01/logo-strip.js +2 -2
- package/dist/blocks/note-grid-01/index.d.ts +2 -2
- package/dist/blocks/note-grid-01/index.js +1 -1
- package/dist/blocks/note-grid-01/note-grid.d.ts +1 -1
- package/dist/blocks/note-grid-01/note-grid.js +1 -1
- package/dist/blocks/page-header-01/index.d.ts +2 -2
- package/dist/blocks/page-header-01/index.js +1 -1
- package/dist/blocks/page-header-01/page-header.d.ts +1 -1
- package/dist/blocks/page-header-01/page-header.js +4 -4
- package/dist/blocks/pricing-01/index.d.ts +1 -1
- package/dist/blocks/pricing-01/index.js +1 -1
- package/dist/blocks/pricing-01/pricing.d.ts +8 -1
- package/dist/blocks/pricing-01/pricing.d.ts.map +1 -1
- package/dist/blocks/pricing-01/pricing.js +15 -5
- package/dist/blocks/process-flow-01/index.d.ts +3 -0
- package/dist/blocks/process-flow-01/index.d.ts.map +1 -0
- package/dist/blocks/process-flow-01/index.js +1 -0
- package/dist/blocks/process-flow-01/process-flow.d.ts +118 -0
- package/dist/blocks/process-flow-01/process-flow.d.ts.map +1 -0
- package/dist/blocks/process-flow-01/process-flow.js +71 -0
- package/dist/blocks/process-rail-01/index.d.ts +2 -2
- package/dist/blocks/process-rail-01/index.js +1 -1
- package/dist/blocks/process-rail-01/process-rail.d.ts +1 -1
- package/dist/blocks/process-rail-01/process-rail.js +2 -2
- package/dist/blocks/product-grid-01/index.d.ts +2 -2
- package/dist/blocks/product-grid-01/index.js +1 -1
- package/dist/blocks/product-grid-01/product-grid.d.ts +37 -5
- package/dist/blocks/product-grid-01/product-grid.d.ts.map +1 -1
- package/dist/blocks/product-grid-01/product-grid.js +20 -6
- package/dist/blocks/run-console-01/index.d.ts +3 -0
- package/dist/blocks/run-console-01/index.d.ts.map +1 -0
- package/dist/blocks/run-console-01/index.js +1 -0
- package/dist/blocks/run-console-01/run-console.d.ts +111 -0
- package/dist/blocks/run-console-01/run-console.d.ts.map +1 -0
- package/dist/blocks/run-console-01/run-console.js +48 -0
- package/dist/blocks/settings-panel-01/index.d.ts +2 -2
- package/dist/blocks/settings-panel-01/index.js +1 -1
- package/dist/blocks/settings-panel-01/settings-panel.d.ts +11 -1
- package/dist/blocks/settings-panel-01/settings-panel.d.ts.map +1 -1
- package/dist/blocks/settings-panel-01/settings-panel.js +15 -10
- package/dist/blocks/site-footer/index.d.ts +2 -2
- package/dist/blocks/site-footer/index.js +1 -1
- package/dist/blocks/site-footer/site-footer.d.ts +1 -1
- package/dist/blocks/site-footer/site-footer.js +2 -2
- package/dist/blocks/site-header/index.d.ts +2 -2
- package/dist/blocks/site-header/index.js +1 -1
- package/dist/blocks/site-header/site-header.d.ts +2 -2
- package/dist/blocks/site-header/site-header.js +3 -3
- package/dist/blocks/site-navbar/index.d.ts +3 -0
- package/dist/blocks/site-navbar/index.d.ts.map +1 -0
- package/dist/blocks/site-navbar/index.js +1 -0
- package/dist/blocks/site-navbar/mobile-nav.d.ts +48 -0
- package/dist/blocks/site-navbar/mobile-nav.d.ts.map +1 -0
- package/dist/blocks/site-navbar/mobile-nav.js +35 -0
- package/dist/blocks/site-navbar/mode-toggle.d.ts +39 -0
- package/dist/blocks/site-navbar/mode-toggle.d.ts.map +1 -0
- package/dist/blocks/site-navbar/mode-toggle.js +39 -0
- package/dist/blocks/site-navbar/navbar-controls.d.ts +79 -0
- package/dist/blocks/site-navbar/navbar-controls.d.ts.map +1 -0
- package/dist/blocks/site-navbar/navbar-controls.js +40 -0
- package/dist/blocks/site-navbar/search-entry.d.ts +29 -0
- package/dist/blocks/site-navbar/search-entry.d.ts.map +1 -0
- package/dist/blocks/site-navbar/search-entry.js +52 -0
- package/dist/blocks/site-navbar/site-navbar.d.ts +212 -0
- package/dist/blocks/site-navbar/site-navbar.d.ts.map +1 -0
- package/dist/blocks/site-navbar/site-navbar.js +61 -0
- package/dist/blocks/site-navbar/sites-menu.d.ts +40 -0
- package/dist/blocks/site-navbar/sites-menu.d.ts.map +1 -0
- package/dist/blocks/site-navbar/sites-menu.js +48 -0
- package/dist/blocks/site-navbar/theme-menu.d.ts +47 -0
- package/dist/blocks/site-navbar/theme-menu.d.ts.map +1 -0
- package/dist/blocks/site-navbar/theme-menu.js +55 -0
- package/dist/blocks/stack-grid-01/index.d.ts +2 -2
- package/dist/blocks/stack-grid-01/index.js +1 -1
- package/dist/blocks/stack-grid-01/stack-grid.d.ts +42 -11
- package/dist/blocks/stack-grid-01/stack-grid.d.ts.map +1 -1
- package/dist/blocks/stack-grid-01/stack-grid.js +15 -7
- package/dist/blocks/stats-01/index.d.ts +9 -1
- package/dist/blocks/stats-01/index.d.ts.map +1 -1
- package/dist/blocks/stats-01/index.js +8 -1
- package/dist/blocks/stats-01/stats.d.ts +1 -1
- package/dist/blocks/stats-01/stats.js +2 -2
- package/dist/blocks/status-ledger-01/index.d.ts +2 -2
- package/dist/blocks/status-ledger-01/index.js +1 -1
- package/dist/blocks/status-ledger-01/status-ledger.d.ts +1 -1
- package/dist/blocks/status-ledger-01/status-ledger.js +2 -2
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +473 -1
- package/dist/components/index.d.ts +104 -66
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +74 -40
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.d.ts +119 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +82 -0
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +60 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +61 -0
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group.d.ts +68 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +54 -0
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.d.ts +158 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +216 -0
- package/dist/components/ui/card.d.ts +18 -6
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +23 -8
- package/dist/components/ui/carousel.d.ts +118 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +152 -0
- package/dist/components/ui/chart-frame.d.ts +216 -0
- package/dist/components/ui/chart-frame.d.ts.map +1 -0
- package/dist/components/ui/chart-frame.js +286 -0
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/collapsible.d.ts +97 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +54 -0
- package/dist/components/ui/combobox.d.ts +141 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +243 -0
- package/dist/components/ui/command-palette.d.ts +106 -0
- package/dist/components/ui/command-palette.d.ts.map +1 -0
- package/dist/components/ui/command-palette.js +176 -0
- package/dist/components/ui/command.d.ts +82 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +37 -0
- package/dist/components/ui/context-menu.d.ts +151 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +97 -0
- package/dist/components/ui/cta-link.js +1 -1
- package/dist/components/ui/date-picker.d.ts +111 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/date-picker.js +74 -0
- package/dist/components/ui/diagram.d.ts +84 -15
- package/dist/components/ui/diagram.d.ts.map +1 -1
- package/dist/components/ui/diagram.js +77 -7
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/diff.d.ts +105 -0
- package/dist/components/ui/diff.d.ts.map +1 -0
- package/dist/components/ui/diff.js +113 -0
- package/dist/components/ui/dropdown-menu.d.ts +18 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/fact-list.js +1 -1
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/form.d.ts +151 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +73 -0
- package/dist/components/ui/hover-card.d.ts +105 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +49 -0
- package/dist/components/ui/input-group.d.ts +99 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +83 -0
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.d.ts +113 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +61 -0
- package/dist/components/ui/kbd.js +1 -1
- package/dist/components/ui/label.d.ts +58 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +29 -0
- package/dist/components/ui/live-region.d.ts +9 -0
- package/dist/components/ui/live-region.d.ts.map +1 -1
- package/dist/components/ui/live-region.js +10 -2
- package/dist/components/ui/mark.js +1 -1
- package/dist/components/ui/menubar.d.ts +197 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +109 -0
- package/dist/components/ui/meter.d.ts +121 -0
- package/dist/components/ui/meter.d.ts.map +1 -0
- package/dist/components/ui/meter.js +82 -0
- package/dist/components/ui/native-select.d.ts +72 -0
- package/dist/components/ui/native-select.d.ts.map +1 -0
- package/dist/components/ui/native-select.js +55 -0
- package/dist/components/ui/navigation-menu.d.ts +186 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +94 -0
- package/dist/components/ui/number-field.d.ts +111 -0
- package/dist/components/ui/number-field.d.ts.map +1 -0
- package/dist/components/ui/number-field.js +84 -0
- package/dist/components/ui/one-time-code.d.ts +127 -0
- package/dist/components/ui/one-time-code.d.ts.map +1 -0
- package/dist/components/ui/one-time-code.js +57 -0
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/product-mark.d.ts +1 -1
- package/dist/components/ui/product-mark.js +1 -1
- package/dist/components/ui/product-switcher.d.ts +1 -1
- package/dist/components/ui/product-switcher.js +2 -2
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/prose.js +1 -1
- package/dist/components/ui/pulse-graph.js +1 -1
- package/dist/components/ui/pulse-series.js +1 -1
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/resizable.d.ts +129 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +205 -0
- package/dist/components/ui/scroll-area.d.ts +97 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +68 -0
- package/dist/components/ui/search-dialog.d.ts +139 -0
- package/dist/components/ui/search-dialog.d.ts.map +1 -0
- package/dist/components/ui/search-dialog.js +178 -0
- package/dist/components/ui/section.d.ts +26 -0
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/section.js +32 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.d.ts +103 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +58 -0
- package/dist/components/ui/sidebar.d.ts +228 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +172 -0
- package/dist/components/ui/signal-field.js +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/spinner.d.ts +79 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +79 -0
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table-sort.d.ts +97 -0
- package/dist/components/ui/table-sort.d.ts.map +1 -0
- package/dist/components/ui/table-sort.js +102 -0
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/timeline.d.ts +106 -0
- package/dist/components/ui/timeline.d.ts.map +1 -0
- package/dist/components/ui/timeline.js +111 -0
- package/dist/components/ui/toast.d.ts +219 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +270 -0
- package/dist/components/ui/toggle-group.d.ts +118 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +194 -0
- package/dist/components/ui/toggle.d.ts +73 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +44 -0
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tree.js +1 -1
- package/dist/components/ui/typography.js +1 -1
- package/dist/fonts/Inter-OFL.txt +93 -93
- package/dist/index.d.ts +72 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +61 -60
- package/dist/lib/rank.d.ts +69 -0
- package/dist/lib/rank.d.ts.map +1 -0
- package/dist/lib/rank.js +77 -0
- package/dist/live/index.d.ts +22 -0
- package/dist/live/index.d.ts.map +1 -0
- package/dist/live/index.js +20 -0
- package/dist/live/run-stream-01/index.d.ts +3 -0
- package/dist/live/run-stream-01/index.d.ts.map +1 -0
- package/dist/live/run-stream-01/index.js +1 -0
- package/dist/live/run-stream-01/run-stream.d.ts +125 -0
- package/dist/live/run-stream-01/run-stream.d.ts.map +1 -0
- package/dist/live/run-stream-01/run-stream.js +111 -0
- package/dist/pages/auth-page/index.d.ts +15 -2
- package/dist/pages/auth-page/index.d.ts.map +1 -1
- package/dist/pages/auth-page/index.js +8 -4
- package/dist/pages/blog-post-page/index.js +5 -5
- package/dist/pages/dashboard-page/index.d.ts +4 -4
- package/dist/pages/dashboard-page/index.js +4 -4
- package/dist/pages/docs-shell/docs-shell.d.ts +37 -4
- package/dist/pages/docs-shell/docs-shell.d.ts.map +1 -1
- package/dist/pages/docs-shell/docs-shell.js +107 -16
- package/dist/pages/docs-shell/index.d.ts +2 -2
- package/dist/pages/docs-shell/index.js +1 -1
- package/dist/pages/index.d.ts +14 -14
- package/dist/pages/index.js +7 -7
- package/dist/pages/marketing-page/index.d.ts +6 -6
- package/dist/pages/marketing-page/index.js +5 -5
- package/dist/pages/not-found-page/index.js +4 -4
- package/dist/pages/settings-page/index.d.ts +3 -3
- package/dist/pages/settings-page/index.js +4 -4
- package/dist/provider/index.d.ts +4 -4
- package/dist/provider/index.js +2 -2
- package/dist/provider/provider.d.ts +1 -1
- package/dist/provider/provider.js +1 -1
- package/dist/provider/theme-script.d.ts +1 -1
- package/dist/provider/theme-script.js +1 -1
- package/dist/styles.css +689 -0
- package/package.json +9 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,74 +6,76 @@
|
|
|
6
6
|
* pull the provider, the catalogue or a stylesheet. Consumers that want one
|
|
7
7
|
* item import its own subpath instead.
|
|
8
8
|
*/
|
|
9
|
-
export { Button } from './components/ui/button';
|
|
10
|
-
export { CtaLink } from './components/ui/cta-link';
|
|
11
|
-
export type { CtaLinkProps } from './components/ui/cta-link';
|
|
12
|
-
export { Badge } from './components/ui/badge';
|
|
13
|
-
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './components/ui/card';
|
|
14
|
-
export { Section, SectionHeading } from './components/ui/section';
|
|
15
|
-
export type { HeadingLevel } from './components/ui/section';
|
|
16
|
-
export { Alert, AlertTitle, AlertDescription } from './components/ui/alert';
|
|
17
|
-
export { Separator } from './components/ui/separator';
|
|
18
|
-
export { Skeleton } from './components/ui/skeleton';
|
|
19
|
-
export { Input } from './components/ui/input';
|
|
20
|
-
export { Textarea } from './components/ui/textarea';
|
|
21
|
-
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './components/ui/field';
|
|
22
|
-
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './components/ui/table';
|
|
23
|
-
export { Heading, Text } from './components/ui/typography';
|
|
24
|
-
export type { HeadingElement } from './components/ui/typography';
|
|
25
|
-
export { Kbd } from './components/ui/kbd';
|
|
26
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './components/ui/breadcrumb';
|
|
27
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './components/ui/pagination';
|
|
28
|
-
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './components/ui/select';
|
|
29
|
-
export { Checkbox } from './components/ui/checkbox';
|
|
30
|
-
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
|
|
31
|
-
export { Switch } from './components/ui/switch';
|
|
32
|
-
export { Slider } from './components/ui/slider';
|
|
33
|
-
export { Progress } from './components/ui/progress';
|
|
34
|
-
export { Tooltip, TooltipTrigger, TooltipContent } from './components/ui/tooltip';
|
|
35
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './components/ui/accordion';
|
|
36
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './components/ui/dialog';
|
|
37
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './components/ui/dropdown-menu';
|
|
38
|
-
export { Popover, PopoverTrigger, PopoverContent } from './components/ui/popover';
|
|
39
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs';
|
|
40
|
-
export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar';
|
|
41
|
-
export { Diagram } from './components/ui/diagram';
|
|
42
|
-
export type { DiagramProps, DiagramNode, DiagramRelation } from './components/ui/diagram';
|
|
43
|
-
export { ProductMark } from './components/ui/product-mark';
|
|
44
|
-
export type { ProductMarkProps, ProductMarkSize } from './components/ui/product-mark';
|
|
45
|
-
export { Prose } from './components/ui/prose';
|
|
46
|
-
export type { ProseProps, ProseSize } from './components/ui/prose';
|
|
47
|
-
export { FactList } from './components/ui/fact-list';
|
|
48
|
-
export type { FactListProps, Fact } from './components/ui/fact-list';
|
|
49
|
-
export { ProductSwitcher } from './components/ui/product-switcher';
|
|
50
|
-
export type { ProductSwitcherProps, SwitcherProduct } from './components/ui/product-switcher';
|
|
51
|
-
export { Hero01 } from './blocks/hero-01';
|
|
52
|
-
export { FeatureGrid01 } from './blocks/feature-grid-01';
|
|
53
|
-
export { Stats01 } from './blocks/stats-01';
|
|
54
|
-
export { Pricing01 } from './blocks/pricing-01';
|
|
55
|
-
export { Cta01 } from './blocks/cta-01';
|
|
56
|
-
export { PageHeader01 } from './blocks/page-header-01';
|
|
57
|
-
export { DataTable01 } from './blocks/data-table-01';
|
|
58
|
-
export { SettingsPanel01 } from './blocks/settings-panel-01';
|
|
59
|
-
export { AuthForm01 } from './blocks/auth-form-01';
|
|
60
|
-
export { AppShell01 } from './blocks/app-shell-01';
|
|
61
|
-
export { ProcessRail01 } from './blocks/process-rail-01';
|
|
62
|
-
export { StatusLedger01, STATUS_TIERS } from './blocks/status-ledger-01';
|
|
63
|
-
export type { StatusTier } from './blocks/status-ledger-01';
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export
|
|
9
|
+
export { Button } from './components/ui/button.js';
|
|
10
|
+
export { CtaLink } from './components/ui/cta-link.js';
|
|
11
|
+
export type { CtaLinkProps } from './components/ui/cta-link.js';
|
|
12
|
+
export { Badge } from './components/ui/badge.js';
|
|
13
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './components/ui/card.js';
|
|
14
|
+
export { Section, SectionHeading } from './components/ui/section.js';
|
|
15
|
+
export type { HeadingLevel } from './components/ui/section.js';
|
|
16
|
+
export { Alert, AlertTitle, AlertDescription } from './components/ui/alert.js';
|
|
17
|
+
export { Separator } from './components/ui/separator.js';
|
|
18
|
+
export { Skeleton } from './components/ui/skeleton.js';
|
|
19
|
+
export { Input } from './components/ui/input.js';
|
|
20
|
+
export { Textarea } from './components/ui/textarea.js';
|
|
21
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './components/ui/field.js';
|
|
22
|
+
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './components/ui/table.js';
|
|
23
|
+
export { Heading, Text } from './components/ui/typography.js';
|
|
24
|
+
export type { HeadingElement } from './components/ui/typography.js';
|
|
25
|
+
export { Kbd } from './components/ui/kbd.js';
|
|
26
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './components/ui/breadcrumb.js';
|
|
27
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './components/ui/pagination.js';
|
|
28
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './components/ui/select.js';
|
|
29
|
+
export { Checkbox } from './components/ui/checkbox.js';
|
|
30
|
+
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group.js';
|
|
31
|
+
export { Switch } from './components/ui/switch.js';
|
|
32
|
+
export { Slider } from './components/ui/slider.js';
|
|
33
|
+
export { Progress } from './components/ui/progress.js';
|
|
34
|
+
export { Tooltip, TooltipTrigger, TooltipContent } from './components/ui/tooltip.js';
|
|
35
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './components/ui/accordion.js';
|
|
36
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './components/ui/dialog.js';
|
|
37
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './components/ui/dropdown-menu.js';
|
|
38
|
+
export { Popover, PopoverTrigger, PopoverContent } from './components/ui/popover.js';
|
|
39
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs.js';
|
|
40
|
+
export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar.js';
|
|
41
|
+
export { Diagram } from './components/ui/diagram.js';
|
|
42
|
+
export type { DiagramProps, DiagramNode, DiagramRelation } from './components/ui/diagram.js';
|
|
43
|
+
export { ProductMark } from './components/ui/product-mark.js';
|
|
44
|
+
export type { ProductMarkProps, ProductMarkSize } from './components/ui/product-mark.js';
|
|
45
|
+
export { Prose } from './components/ui/prose.js';
|
|
46
|
+
export type { ProseProps, ProseSize } from './components/ui/prose.js';
|
|
47
|
+
export { FactList } from './components/ui/fact-list.js';
|
|
48
|
+
export type { FactListProps, Fact } from './components/ui/fact-list.js';
|
|
49
|
+
export { ProductSwitcher } from './components/ui/product-switcher.js';
|
|
50
|
+
export type { ProductSwitcherProps, SwitcherProduct } from './components/ui/product-switcher.js';
|
|
51
|
+
export { Hero01 } from './blocks/hero-01/index.js';
|
|
52
|
+
export { FeatureGrid01 } from './blocks/feature-grid-01/index.js';
|
|
53
|
+
export { Stats01 } from './blocks/stats-01/index.js';
|
|
54
|
+
export { Pricing01 } from './blocks/pricing-01/index.js';
|
|
55
|
+
export { Cta01 } from './blocks/cta-01/index.js';
|
|
56
|
+
export { PageHeader01 } from './blocks/page-header-01/index.js';
|
|
57
|
+
export { DataTable01 } from './blocks/data-table-01/index.js';
|
|
58
|
+
export { SettingsPanel01 } from './blocks/settings-panel-01/index.js';
|
|
59
|
+
export { AuthForm01 } from './blocks/auth-form-01/index.js';
|
|
60
|
+
export { AppShell01 } from './blocks/app-shell-01/index.js';
|
|
61
|
+
export { ProcessRail01 } from './blocks/process-rail-01/index.js';
|
|
62
|
+
export { StatusLedger01, STATUS_TIERS } from './blocks/status-ledger-01/index.js';
|
|
63
|
+
export type { StatusTier } from './blocks/status-ledger-01/index.js';
|
|
64
|
+
export { RunConsole01 } from './blocks/run-console-01/index.js';
|
|
65
|
+
export type { RunConsole01Props, RunConsole01Copy } from './blocks/run-console-01/index.js';
|
|
66
|
+
export { ProductGrid01 } from './blocks/product-grid-01/index.js';
|
|
67
|
+
export { StackGrid01 } from './blocks/stack-grid-01/index.js';
|
|
68
|
+
export { LogoStrip01 } from './blocks/logo-strip-01/index.js';
|
|
69
|
+
export { NoteGrid01 } from './blocks/note-grid-01/index.js';
|
|
70
|
+
export { InstrumentPanel01 } from './blocks/instrument-panel-01/index.js';
|
|
71
|
+
export { SiteHeader } from './blocks/site-header/index.js';
|
|
72
|
+
export { SiteFooter } from './blocks/site-footer/index.js';
|
|
73
|
+
export { MarketingPage } from './pages/marketing-page/index.js';
|
|
74
|
+
export { DashboardPage } from './pages/dashboard-page/index.js';
|
|
75
|
+
export { SettingsPage } from './pages/settings-page/index.js';
|
|
76
|
+
export { AuthPage } from './pages/auth-page/index.js';
|
|
77
|
+
export { NotFoundPage } from './pages/not-found-page/index.js';
|
|
78
|
+
export { BlogPostPage } from './pages/blog-post-page/index.js';
|
|
79
|
+
export { PACKS, MODES, parseStoredTheme, themeAttributes } from './theming/index.js';
|
|
80
|
+
export type { PackId, Mode } from './theming/index.js';
|
|
79
81
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EACL,IAAI,EACJ,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,GACX,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,GACX,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,GACb,MAAM,uBAAuB,CAAA;AAC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AACxE,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3E,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6,63 +6,64 @@
|
|
|
6
6
|
* pull the provider, the catalogue or a stylesheet. Consumers that want one
|
|
7
7
|
* item import its own subpath instead.
|
|
8
8
|
*/
|
|
9
|
-
export { Button } from './components/ui/button';
|
|
10
|
-
export { CtaLink } from './components/ui/cta-link';
|
|
11
|
-
export { Badge } from './components/ui/badge';
|
|
12
|
-
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './components/ui/card';
|
|
13
|
-
export { Section, SectionHeading } from './components/ui/section';
|
|
14
|
-
export { Alert, AlertTitle, AlertDescription } from './components/ui/alert';
|
|
15
|
-
export { Separator } from './components/ui/separator';
|
|
16
|
-
export { Skeleton } from './components/ui/skeleton';
|
|
17
|
-
export { Input } from './components/ui/input';
|
|
18
|
-
export { Textarea } from './components/ui/textarea';
|
|
19
|
-
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './components/ui/field';
|
|
20
|
-
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './components/ui/table';
|
|
21
|
-
export { Heading, Text } from './components/ui/typography';
|
|
22
|
-
export { Kbd } from './components/ui/kbd';
|
|
23
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './components/ui/breadcrumb';
|
|
24
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './components/ui/pagination';
|
|
25
|
-
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './components/ui/select';
|
|
26
|
-
export { Checkbox } from './components/ui/checkbox';
|
|
27
|
-
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
|
|
28
|
-
export { Switch } from './components/ui/switch';
|
|
29
|
-
export { Slider } from './components/ui/slider';
|
|
30
|
-
export { Progress } from './components/ui/progress';
|
|
31
|
-
export { Tooltip, TooltipTrigger, TooltipContent } from './components/ui/tooltip';
|
|
32
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './components/ui/accordion';
|
|
33
|
-
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './components/ui/dialog';
|
|
34
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './components/ui/dropdown-menu';
|
|
35
|
-
export { Popover, PopoverTrigger, PopoverContent } from './components/ui/popover';
|
|
36
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs';
|
|
37
|
-
export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar';
|
|
38
|
-
export { Diagram } from './components/ui/diagram';
|
|
39
|
-
export { ProductMark } from './components/ui/product-mark';
|
|
40
|
-
export { Prose } from './components/ui/prose';
|
|
41
|
-
export { FactList } from './components/ui/fact-list';
|
|
42
|
-
export { ProductSwitcher } from './components/ui/product-switcher';
|
|
43
|
-
export { Hero01 } from './blocks/hero-01';
|
|
44
|
-
export { FeatureGrid01 } from './blocks/feature-grid-01';
|
|
45
|
-
export { Stats01 } from './blocks/stats-01';
|
|
46
|
-
export { Pricing01 } from './blocks/pricing-01';
|
|
47
|
-
export { Cta01 } from './blocks/cta-01';
|
|
48
|
-
export { PageHeader01 } from './blocks/page-header-01';
|
|
49
|
-
export { DataTable01 } from './blocks/data-table-01';
|
|
50
|
-
export { SettingsPanel01 } from './blocks/settings-panel-01';
|
|
51
|
-
export { AuthForm01 } from './blocks/auth-form-01';
|
|
52
|
-
export { AppShell01 } from './blocks/app-shell-01';
|
|
53
|
-
export { ProcessRail01 } from './blocks/process-rail-01';
|
|
54
|
-
export { StatusLedger01, STATUS_TIERS } from './blocks/status-ledger-01';
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
9
|
+
export { Button } from './components/ui/button.js';
|
|
10
|
+
export { CtaLink } from './components/ui/cta-link.js';
|
|
11
|
+
export { Badge } from './components/ui/badge.js';
|
|
12
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from './components/ui/card.js';
|
|
13
|
+
export { Section, SectionHeading } from './components/ui/section.js';
|
|
14
|
+
export { Alert, AlertTitle, AlertDescription } from './components/ui/alert.js';
|
|
15
|
+
export { Separator } from './components/ui/separator.js';
|
|
16
|
+
export { Skeleton } from './components/ui/skeleton.js';
|
|
17
|
+
export { Input } from './components/ui/input.js';
|
|
18
|
+
export { Textarea } from './components/ui/textarea.js';
|
|
19
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, } from './components/ui/field.js';
|
|
20
|
+
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './components/ui/table.js';
|
|
21
|
+
export { Heading, Text } from './components/ui/typography.js';
|
|
22
|
+
export { Kbd } from './components/ui/kbd.js';
|
|
23
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, } from './components/ui/breadcrumb.js';
|
|
24
|
+
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './components/ui/pagination.js';
|
|
25
|
+
export { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, } from './components/ui/select.js';
|
|
26
|
+
export { Checkbox } from './components/ui/checkbox.js';
|
|
27
|
+
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group.js';
|
|
28
|
+
export { Switch } from './components/ui/switch.js';
|
|
29
|
+
export { Slider } from './components/ui/slider.js';
|
|
30
|
+
export { Progress } from './components/ui/progress.js';
|
|
31
|
+
export { Tooltip, TooltipTrigger, TooltipContent } from './components/ui/tooltip.js';
|
|
32
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './components/ui/accordion.js';
|
|
33
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, } from './components/ui/dialog.js';
|
|
34
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './components/ui/dropdown-menu.js';
|
|
35
|
+
export { Popover, PopoverTrigger, PopoverContent } from './components/ui/popover.js';
|
|
36
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs.js';
|
|
37
|
+
export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar.js';
|
|
38
|
+
export { Diagram } from './components/ui/diagram.js';
|
|
39
|
+
export { ProductMark } from './components/ui/product-mark.js';
|
|
40
|
+
export { Prose } from './components/ui/prose.js';
|
|
41
|
+
export { FactList } from './components/ui/fact-list.js';
|
|
42
|
+
export { ProductSwitcher } from './components/ui/product-switcher.js';
|
|
43
|
+
export { Hero01 } from './blocks/hero-01/index.js';
|
|
44
|
+
export { FeatureGrid01 } from './blocks/feature-grid-01/index.js';
|
|
45
|
+
export { Stats01 } from './blocks/stats-01/index.js';
|
|
46
|
+
export { Pricing01 } from './blocks/pricing-01/index.js';
|
|
47
|
+
export { Cta01 } from './blocks/cta-01/index.js';
|
|
48
|
+
export { PageHeader01 } from './blocks/page-header-01/index.js';
|
|
49
|
+
export { DataTable01 } from './blocks/data-table-01/index.js';
|
|
50
|
+
export { SettingsPanel01 } from './blocks/settings-panel-01/index.js';
|
|
51
|
+
export { AuthForm01 } from './blocks/auth-form-01/index.js';
|
|
52
|
+
export { AppShell01 } from './blocks/app-shell-01/index.js';
|
|
53
|
+
export { ProcessRail01 } from './blocks/process-rail-01/index.js';
|
|
54
|
+
export { StatusLedger01, STATUS_TIERS } from './blocks/status-ledger-01/index.js';
|
|
55
|
+
export { RunConsole01 } from './blocks/run-console-01/index.js';
|
|
56
|
+
export { ProductGrid01 } from './blocks/product-grid-01/index.js';
|
|
57
|
+
export { StackGrid01 } from './blocks/stack-grid-01/index.js';
|
|
58
|
+
export { LogoStrip01 } from './blocks/logo-strip-01/index.js';
|
|
59
|
+
export { NoteGrid01 } from './blocks/note-grid-01/index.js';
|
|
60
|
+
export { InstrumentPanel01 } from './blocks/instrument-panel-01/index.js';
|
|
61
|
+
export { SiteHeader } from './blocks/site-header/index.js';
|
|
62
|
+
export { SiteFooter } from './blocks/site-footer/index.js';
|
|
63
|
+
export { MarketingPage } from './pages/marketing-page/index.js';
|
|
64
|
+
export { DashboardPage } from './pages/dashboard-page/index.js';
|
|
65
|
+
export { SettingsPage } from './pages/settings-page/index.js';
|
|
66
|
+
export { AuthPage } from './pages/auth-page/index.js';
|
|
67
|
+
export { NotFoundPage } from './pages/not-found-page/index.js';
|
|
68
|
+
export { BlogPostPage } from './pages/blog-post-page/index.js';
|
|
69
|
+
export { PACKS, MODES, parseStoredTheme, themeAttributes } from './theming/index.js';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One scorer for every surface that searches.
|
|
3
|
+
*
|
|
4
|
+
* The ranking is shared because the *answer* is shared. A command palette and a
|
|
5
|
+
* combobox that each carried their own scorer would agree for a month and then
|
|
6
|
+
* diverge on the case nobody thought about, and a reader would find that a query
|
|
7
|
+
* which floats to the top in one surface sinks in the other. That is the same
|
|
8
|
+
* defect as the catalogue and a second list about the same items, and it is the
|
|
9
|
+
* reason this lives in one module rather than in whichever Component was written
|
|
10
|
+
* first.
|
|
11
|
+
*
|
|
12
|
+
* It lives here rather than in either Component for a second reason: the first
|
|
13
|
+
* version put it in `command-palette` and the combobox imported it from there, so
|
|
14
|
+
* a leaf depended on a composite. That compiles, it typechecks, and it is still
|
|
15
|
+
* wrong, because the next surface to need a scorer has no honest module to import
|
|
16
|
+
* and the tempting answer is to copy the one it can see.
|
|
17
|
+
*
|
|
18
|
+
* This is not an Item. It is not in the catalogue, it has no documentation page and
|
|
19
|
+
* no Demo, and it is not exported from the package, because it is the inside of
|
|
20
|
+
* two Items rather than something a consumer composes.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* How well a match fits, ordered.
|
|
24
|
+
*
|
|
25
|
+
* The order is the feature rather than a detail. A surface that filters without
|
|
26
|
+
* ranking shows every match in whatever order the items happened to be declared,
|
|
27
|
+
* so the item the reader meant sits below one that merely mentions their query,
|
|
28
|
+
* and they scroll. Ranking by where the match falls puts it first, which is the
|
|
29
|
+
* whole reason a searchable surface beats a menu.
|
|
30
|
+
*
|
|
31
|
+
* `prefix` is separate from `wordStart` because collapsing them means a command
|
|
32
|
+
* whose name *begins* with the query ties with one that has it at the start of a
|
|
33
|
+
* later word, and a reader who typed the start of a name is the reader who meant
|
|
34
|
+
* that name.
|
|
35
|
+
*/
|
|
36
|
+
export declare const RANKS: {
|
|
37
|
+
/** The query is the start of the label. */
|
|
38
|
+
readonly prefix: 0;
|
|
39
|
+
/** The query starts a word inside the label. */
|
|
40
|
+
readonly wordStart: 1;
|
|
41
|
+
/** The query appears inside the label. */
|
|
42
|
+
readonly substring: 2;
|
|
43
|
+
/** The query appears only in the keywords. */
|
|
44
|
+
readonly keyword: 3;
|
|
45
|
+
/** No match. */
|
|
46
|
+
readonly none: 4;
|
|
47
|
+
};
|
|
48
|
+
/** One ranked match: where the query fell, and which characters it covered. */
|
|
49
|
+
export type Rank = {
|
|
50
|
+
/** How good the match is. Lower is better. */
|
|
51
|
+
rank: number;
|
|
52
|
+
/**
|
|
53
|
+
* The character range in the text that matched, absent when nothing matched or
|
|
54
|
+
* when the match was in a keyword rather than in the text.
|
|
55
|
+
*
|
|
56
|
+
* A range rather than a boolean is what lets a surface emphasise the matched
|
|
57
|
+
* characters instead of the whole row.
|
|
58
|
+
*/
|
|
59
|
+
range?: readonly [number, number];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Where the first match of `query` falls in `text`, and how good it is.
|
|
63
|
+
*
|
|
64
|
+
* An empty query is a prefix match covering nothing, which is what makes an
|
|
65
|
+
* untyped surface render every row with nothing emphasised rather than needing a
|
|
66
|
+
* separate branch for the empty case at each call site.
|
|
67
|
+
*/
|
|
68
|
+
export declare function locate(text: string, query: string): Rank;
|
|
69
|
+
//# sourceMappingURL=rank.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rank.d.ts","sourceRoot":"","sources":["../../src/lib/rank.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,KAAK;IAChB,2CAA2C;;IAE3C,gDAAgD;;IAEhD,0CAA0C;;IAE1C,8CAA8C;;IAE9C,gBAAgB;;CAER,CAAA;AAEV,+EAA+E;AAC/E,MAAM,MAAM,IAAI,GAAG;IACjB,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAsBxD"}
|
package/dist/lib/rank.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One scorer for every surface that searches.
|
|
3
|
+
*
|
|
4
|
+
* The ranking is shared because the *answer* is shared. A command palette and a
|
|
5
|
+
* combobox that each carried their own scorer would agree for a month and then
|
|
6
|
+
* diverge on the case nobody thought about, and a reader would find that a query
|
|
7
|
+
* which floats to the top in one surface sinks in the other. That is the same
|
|
8
|
+
* defect as the catalogue and a second list about the same items, and it is the
|
|
9
|
+
* reason this lives in one module rather than in whichever Component was written
|
|
10
|
+
* first.
|
|
11
|
+
*
|
|
12
|
+
* It lives here rather than in either Component for a second reason: the first
|
|
13
|
+
* version put it in `command-palette` and the combobox imported it from there, so
|
|
14
|
+
* a leaf depended on a composite. That compiles, it typechecks, and it is still
|
|
15
|
+
* wrong, because the next surface to need a scorer has no honest module to import
|
|
16
|
+
* and the tempting answer is to copy the one it can see.
|
|
17
|
+
*
|
|
18
|
+
* This is not an Item. It is not in the catalogue, it has no documentation page and
|
|
19
|
+
* no Demo, and it is not exported from the package, because it is the inside of
|
|
20
|
+
* two Items rather than something a consumer composes.
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* How well a match fits, ordered.
|
|
24
|
+
*
|
|
25
|
+
* The order is the feature rather than a detail. A surface that filters without
|
|
26
|
+
* ranking shows every match in whatever order the items happened to be declared,
|
|
27
|
+
* so the item the reader meant sits below one that merely mentions their query,
|
|
28
|
+
* and they scroll. Ranking by where the match falls puts it first, which is the
|
|
29
|
+
* whole reason a searchable surface beats a menu.
|
|
30
|
+
*
|
|
31
|
+
* `prefix` is separate from `wordStart` because collapsing them means a command
|
|
32
|
+
* whose name *begins* with the query ties with one that has it at the start of a
|
|
33
|
+
* later word, and a reader who typed the start of a name is the reader who meant
|
|
34
|
+
* that name.
|
|
35
|
+
*/
|
|
36
|
+
export const RANKS = {
|
|
37
|
+
/** The query is the start of the label. */
|
|
38
|
+
prefix: 0,
|
|
39
|
+
/** The query starts a word inside the label. */
|
|
40
|
+
wordStart: 1,
|
|
41
|
+
/** The query appears inside the label. */
|
|
42
|
+
substring: 2,
|
|
43
|
+
/** The query appears only in the keywords. */
|
|
44
|
+
keyword: 3,
|
|
45
|
+
/** No match. */
|
|
46
|
+
none: 4,
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Where the first match of `query` falls in `text`, and how good it is.
|
|
50
|
+
*
|
|
51
|
+
* An empty query is a prefix match covering nothing, which is what makes an
|
|
52
|
+
* untyped surface render every row with nothing emphasised rather than needing a
|
|
53
|
+
* separate branch for the empty case at each call site.
|
|
54
|
+
*/
|
|
55
|
+
export function locate(text, query) {
|
|
56
|
+
if (query === '')
|
|
57
|
+
return { rank: RANKS.prefix, range: [0, 0] };
|
|
58
|
+
const haystack = text.toLowerCase();
|
|
59
|
+
const needle = query.toLowerCase();
|
|
60
|
+
const at = haystack.indexOf(needle);
|
|
61
|
+
if (at === -1)
|
|
62
|
+
return { rank: RANKS.none };
|
|
63
|
+
// A match at the very start is a prefix match, which is the best possible
|
|
64
|
+
// answer, and it has to be its own tier rather than sharing the word-start one.
|
|
65
|
+
if (at === 0)
|
|
66
|
+
return { rank: RANKS.prefix, range: [0, needle.length] };
|
|
67
|
+
// Otherwise a whole-word match beats a match inside a word, and the boundary is
|
|
68
|
+
// the character before it. Without this, "se" in "Settings" would outrank
|
|
69
|
+
// "Reset workspace" for a reader who typed "set". The boundary is tested as a
|
|
70
|
+
// class rather than compared to a space, because a space is a string literal
|
|
71
|
+
// and the copy gate is right to ask what a lone space in a Component is for.
|
|
72
|
+
const isWordStart = /[\s\-/]/.test(haystack.at(at - 1) ?? '');
|
|
73
|
+
return {
|
|
74
|
+
rank: isWordStart ? RANKS.wordStart : RANKS.substring,
|
|
75
|
+
range: [at, at + needle.length],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every Prism live surface.
|
|
3
|
+
*
|
|
4
|
+
* A live surface is the fourth Kind: content that changes over time **without a
|
|
5
|
+
* navigation event**. A Block takes its content as props, so it is rendered once
|
|
6
|
+
* and re-rendered when the consumer's framework decides; a live surface's content
|
|
7
|
+
* changes on its own, which no amount of prop-passing expresses.
|
|
8
|
+
*
|
|
9
|
+
* The `-NN` suffix is the live-family variant ordinal, as it is for Blocks and
|
|
10
|
+
* Pages. These are the only client Components Prism ships, and they are client
|
|
11
|
+
* because of what they are rather than as an accident: a surface that receives
|
|
12
|
+
* events owns the subscription that delivers them.
|
|
13
|
+
*
|
|
14
|
+
* **Nothing here opens a connection.** A live surface takes a `subscribe` function
|
|
15
|
+
* the consumer supplies and a function it tears down, so Prism owns no socket, no
|
|
16
|
+
* endpoint, no retry policy and no persistence, and a consumer acquires no client
|
|
17
|
+
* runtime by importing one. The transport is the consumer's fact and this is where
|
|
18
|
+
* that boundary is stated once.
|
|
19
|
+
*/
|
|
20
|
+
export { RunStream01 } from './run-stream-01/index.js';
|
|
21
|
+
export type { RunStream01Props, RunEvent, RunEventRole, RunStatus, RunSubscribe, } from './run-stream-01/index.js';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/live/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,YAAY,EACV,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,YAAY,GACb,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every Prism live surface.
|
|
3
|
+
*
|
|
4
|
+
* A live surface is the fourth Kind: content that changes over time **without a
|
|
5
|
+
* navigation event**. A Block takes its content as props, so it is rendered once
|
|
6
|
+
* and re-rendered when the consumer's framework decides; a live surface's content
|
|
7
|
+
* changes on its own, which no amount of prop-passing expresses.
|
|
8
|
+
*
|
|
9
|
+
* The `-NN` suffix is the live-family variant ordinal, as it is for Blocks and
|
|
10
|
+
* Pages. These are the only client Components Prism ships, and they are client
|
|
11
|
+
* because of what they are rather than as an accident: a surface that receives
|
|
12
|
+
* events owns the subscription that delivers them.
|
|
13
|
+
*
|
|
14
|
+
* **Nothing here opens a connection.** A live surface takes a `subscribe` function
|
|
15
|
+
* the consumer supplies and a function it tears down, so Prism owns no socket, no
|
|
16
|
+
* endpoint, no retry policy and no persistence, and a consumer acquires no client
|
|
17
|
+
* runtime by importing one. The transport is the consumer's fact and this is where
|
|
18
|
+
* that boundary is stated once.
|
|
19
|
+
*/
|
|
20
|
+
export { RunStream01 } from './run-stream-01/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/live/run-stream-01/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACnD,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RunStream01, default } from './run-stream.js';
|