@shavin/ui 0.0.0-stage → 0.1.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/CHANGELOG.md +94 -0
- package/LICENSE +21 -0
- package/README.md +81 -2
- package/components.json +15771 -0
- package/dist/authoring/types.js +0 -0
- package/dist/icons.d.ts +20 -0
- package/dist/icons.js +6 -0
- package/dist/index.d.ts +3325 -0
- package/dist/index.js +531 -0
- package/dist/inspector/FindingPopover.js +252 -0
- package/dist/inspector/Highlight.js +76 -0
- package/dist/inspector/Inspector.js +420 -0
- package/dist/inspector/InspectorRoot.js +75 -0
- package/dist/inspector/IssuesLayer.js +134 -0
- package/dist/inspector/IssuesList.js +174 -0
- package/dist/inspector/SettingsPanel.js +89 -0
- package/dist/inspector/ShavinMark.js +22 -0
- package/dist/inspector/Toolbar.js +202 -0
- package/dist/inspector/barPlacement.js +117 -0
- package/dist/inspector/env.js +59 -0
- package/dist/inspector/geometry.js +44 -0
- package/dist/inspector/ignored.js +52 -0
- package/dist/inspector/index.js +7 -0
- package/dist/inspector/journalClient.js +57 -0
- package/dist/inspector/journalState.js +36 -0
- package/dist/inspector/pin.js +43 -0
- package/dist/inspector/placement.js +96 -0
- package/dist/inspector/prompt.js +63 -0
- package/dist/inspector/scheme.js +56 -0
- package/dist/inspector/settings.js +54 -0
- package/dist/inspector/strings.js +67 -0
- package/dist/inspector/targets.js +31 -0
- package/dist/inspector/theme/ThemeControls.js +351 -0
- package/dist/inspector/theme/ThemePanel.js +32 -0
- package/dist/inspector/theme/useThemeController.js +560 -0
- package/dist/inspector/usePhone.js +32 -0
- package/dist/inspector/useSelectTool.js +82 -0
- package/dist/inspector/useTimeouts.js +22 -0
- package/dist/inspector/useTrackedRect.js +39 -0
- package/dist/lib/announce.js +47 -0
- package/dist/lib/bridge.js +43 -0
- package/dist/lib/buttonState.js +81 -0
- package/dist/lib/chart-kit.js +226 -0
- package/dist/lib/cn.js +8 -0
- package/dist/lib/color-space.js +315 -0
- package/dist/lib/concentric.js +85 -0
- package/dist/lib/hit-area.js +25 -0
- package/dist/lib/inspector/collect.js +299 -0
- package/dist/lib/inspector/color.js +58 -0
- package/dist/lib/inspector/console-capture.js +96 -0
- package/dist/lib/inspector/index.js +8 -0
- package/dist/lib/inspector/rules.js +232 -0
- package/dist/lib/inspector/run.js +35 -0
- package/dist/lib/inspector/schema.js +110 -0
- package/dist/lib/inspector/selector.js +103 -0
- package/dist/lib/inspector/tokens.js +34 -0
- package/dist/lib/media-overlay-presets.js +284 -0
- package/dist/lib/media-overlays.js +381 -0
- package/dist/lib/meta.js +70 -0
- package/dist/lib/motion-gsap.js +25 -0
- package/dist/lib/motion-runtime.js +283 -0
- package/dist/lib/neutral-tint.js +108 -0
- package/dist/lib/portal-container.js +12 -0
- package/dist/lib/scroll-edges.js +41 -0
- package/dist/lib/surface.js +6 -0
- package/dist/lib/syntax.js +115 -0
- package/dist/lib/theme-presets.d.ts +1 -0
- package/dist/lib/theme-presets.js +759 -0
- package/dist/lib/useClientLocale.js +11 -0
- package/dist/lib/useFieldErrorAnnouncement.js +15 -0
- package/dist/lib/useReducedMotion.js +17 -0
- package/dist/lib/useResizable.js +313 -0
- package/dist/lib/useReturnFocus.js +24 -0
- package/dist/lib/useSlidingIndicator.js +56 -0
- package/dist/panels.d.ts +37 -0
- package/dist/panels.js +19 -0
- package/dist/primitives/Accordion/Accordion.doc.js +37 -0
- package/dist/primitives/Accordion/Accordion.js +87 -0
- package/dist/primitives/Accordion/index.js +2 -0
- package/dist/primitives/ActionBar/ActionBar.doc.js +37 -0
- package/dist/primitives/ActionBar/ActionBar.js +126 -0
- package/dist/primitives/ActionBar/index.js +2 -0
- package/dist/primitives/AlertDialog/AlertDialog.doc.js +54 -0
- package/dist/primitives/AlertDialog/AlertDialog.js +113 -0
- package/dist/primitives/AlertDialog/index.js +2 -0
- package/dist/primitives/AppShell/AppShell.doc.js +81 -0
- package/dist/primitives/AppShell/AppShell.js +178 -0
- package/dist/primitives/AppShell/frame-context.js +10 -0
- package/dist/primitives/AppShell/index.js +2 -0
- package/dist/primitives/AspectRatio/AspectRatio.doc.js +34 -0
- package/dist/primitives/AspectRatio/AspectRatio.js +5 -0
- package/dist/primitives/AspectRatio/index.js +2 -0
- package/dist/primitives/Avatar/Avatar.doc.js +40 -0
- package/dist/primitives/Avatar/Avatar.js +62 -0
- package/dist/primitives/Avatar/index.js +2 -0
- package/dist/primitives/Backdrop/Backdrop.doc.js +24 -0
- package/dist/primitives/Backdrop/Backdrop.js +42 -0
- package/dist/primitives/Backdrop/index.js +2 -0
- package/dist/primitives/Badge/Badge.doc.js +35 -0
- package/dist/primitives/Badge/Badge.js +95 -0
- package/dist/primitives/Badge/index.js +2 -0
- package/dist/primitives/BarChart/BarChart.doc.js +59 -0
- package/dist/primitives/BarChart/BarChart.js +154 -0
- package/dist/primitives/BarChart/index.js +2 -0
- package/dist/primitives/BlockPreview/BlockPreview.doc.js +51 -0
- package/dist/primitives/BlockPreview/BlockPreview.js +485 -0
- package/dist/primitives/BlockPreview/index.js +8 -0
- package/dist/primitives/Blockquote/Blockquote.doc.js +25 -0
- package/dist/primitives/Blockquote/Blockquote.js +19 -0
- package/dist/primitives/Blockquote/index.js +2 -0
- package/dist/primitives/BottomNav/BottomNav.doc.js +37 -0
- package/dist/primitives/BottomNav/BottomNav.js +54 -0
- package/dist/primitives/BottomNav/index.js +2 -0
- package/dist/primitives/Box/Box.doc.js +45 -0
- package/dist/primitives/Box/Box.js +51 -0
- package/dist/primitives/Box/index.js +2 -0
- package/dist/primitives/Breadcrumbs/Breadcrumbs.doc.js +35 -0
- package/dist/primitives/Breadcrumbs/Breadcrumbs.js +40 -0
- package/dist/primitives/Breadcrumbs/index.js +2 -0
- package/dist/primitives/Button/Button.doc.js +80 -0
- package/dist/primitives/Button/Button.js +132 -0
- package/dist/primitives/Button/index.js +2 -0
- package/dist/primitives/Calendar/Calendar.doc.js +36 -0
- package/dist/primitives/Calendar/Calendar.js +502 -0
- package/dist/primitives/Calendar/index.js +2 -0
- package/dist/primitives/Callout/Callout.doc.js +34 -0
- package/dist/primitives/Callout/Callout.js +63 -0
- package/dist/primitives/Callout/index.js +2 -0
- package/dist/primitives/Card/Card.doc.js +46 -0
- package/dist/primitives/Card/Card.js +159 -0
- package/dist/primitives/Card/index.js +2 -0
- package/dist/primitives/Carousel/Carousel.doc.js +61 -0
- package/dist/primitives/Carousel/Carousel.js +369 -0
- package/dist/primitives/Carousel/index.js +1 -0
- package/dist/primitives/ChatBubble/ChatBubble.doc.js +37 -0
- package/dist/primitives/ChatBubble/ChatBubble.js +120 -0
- package/dist/primitives/ChatBubble/index.js +2 -0
- package/dist/primitives/Checkbox/Checkbox.doc.js +36 -0
- package/dist/primitives/Checkbox/Checkbox.js +57 -0
- package/dist/primitives/Checkbox/index.js +2 -0
- package/dist/primitives/CheckboxCards/CheckboxCards.doc.js +35 -0
- package/dist/primitives/CheckboxCards/CheckboxCards.js +47 -0
- package/dist/primitives/CheckboxCards/index.js +2 -0
- package/dist/primitives/CheckboxGroup/CheckboxGroup.doc.js +35 -0
- package/dist/primitives/CheckboxGroup/CheckboxGroup.js +40 -0
- package/dist/primitives/CheckboxGroup/index.js +2 -0
- package/dist/primitives/Code/Code.doc.js +22 -0
- package/dist/primitives/Code/Code.js +17 -0
- package/dist/primitives/Code/index.js +2 -0
- package/dist/primitives/CodeBlock/CodeBlock.doc.js +36 -0
- package/dist/primitives/CodeBlock/CodeBlock.js +205 -0
- package/dist/primitives/CodeBlock/index.js +2 -0
- package/dist/primitives/CodeEditor/CodeEditor.doc.js +53 -0
- package/dist/primitives/CodeEditor/CodeEditor.js +204 -0
- package/dist/primitives/CodeEditor/index.js +4 -0
- package/dist/primitives/ColorPicker/ColorPicker.doc.js +37 -0
- package/dist/primitives/ColorPicker/ColorPicker.js +776 -0
- package/dist/primitives/ColorPicker/index.js +2 -0
- package/dist/primitives/Combobox/Combobox.doc.js +36 -0
- package/dist/primitives/Combobox/Combobox.js +199 -0
- package/dist/primitives/Combobox/index.js +2 -0
- package/dist/primitives/Container/Container.doc.js +46 -0
- package/dist/primitives/Container/Container.js +54 -0
- package/dist/primitives/Container/index.js +2 -0
- package/dist/primitives/ContextMenu/ContextMenu.doc.js +36 -0
- package/dist/primitives/ContextMenu/ContextMenu.js +59 -0
- package/dist/primitives/ContextMenu/index.js +2 -0
- package/dist/primitives/DataList/DataList.doc.js +34 -0
- package/dist/primitives/DataList/DataList.js +35 -0
- package/dist/primitives/DataList/index.js +2 -0
- package/dist/primitives/DatePicker/DatePicker.doc.js +36 -0
- package/dist/primitives/DatePicker/DatePicker.js +398 -0
- package/dist/primitives/DatePicker/index.js +2 -0
- package/dist/primitives/Dialog/Dialog.doc.js +107 -0
- package/dist/primitives/Dialog/Dialog.js +143 -0
- package/dist/primitives/Dialog/index.js +2 -0
- package/dist/primitives/DonutChart/DonutChart.doc.js +26 -0
- package/dist/primitives/DonutChart/DonutChart.js +71 -0
- package/dist/primitives/DonutChart/index.js +2 -0
- package/dist/primitives/Drawer/Drawer.doc.js +44 -0
- package/dist/primitives/Drawer/Drawer.js +158 -0
- package/dist/primitives/Drawer/index.js +2 -0
- package/dist/primitives/Dropdown/Dropdown.doc.js +40 -0
- package/dist/primitives/Dropdown/Dropdown.js +146 -0
- package/dist/primitives/Dropdown/index.js +2 -0
- package/dist/primitives/Emphasis/Emphasis.doc.js +28 -0
- package/dist/primitives/Emphasis/Emphasis.js +25 -0
- package/dist/primitives/Emphasis/index.js +2 -0
- package/dist/primitives/EmptyState/EmptyState.doc.js +76 -0
- package/dist/primitives/EmptyState/EmptyState.js +118 -0
- package/dist/primitives/EmptyState/index.js +2 -0
- package/dist/primitives/FileOutput/FileOutput.doc.js +26 -0
- package/dist/primitives/FileOutput/FileOutput.js +55 -0
- package/dist/primitives/FileOutput/index.js +2 -0
- package/dist/primitives/Flex/Flex.doc.js +58 -0
- package/dist/primitives/Flex/Flex.js +98 -0
- package/dist/primitives/Flex/index.js +2 -0
- package/dist/primitives/FormErrorSummary/FormErrorSummary.doc.js +39 -0
- package/dist/primitives/FormErrorSummary/FormErrorSummary.js +61 -0
- package/dist/primitives/FormErrorSummary/index.js +2 -0
- package/dist/primitives/FormField/FormField.doc.js +68 -0
- package/dist/primitives/FormField/FormField.js +149 -0
- package/dist/primitives/FormField/index.js +2 -0
- package/dist/primitives/FunnelChart/FunnelChart.doc.js +45 -0
- package/dist/primitives/FunnelChart/FunnelChart.js +54 -0
- package/dist/primitives/FunnelChart/index.js +2 -0
- package/dist/primitives/Grid/Grid.doc.js +57 -0
- package/dist/primitives/Grid/Grid.js +122 -0
- package/dist/primitives/Grid/index.js +2 -0
- package/dist/primitives/Heading/Heading.doc.js +46 -0
- package/dist/primitives/Heading/Heading.js +80 -0
- package/dist/primitives/Heading/index.js +2 -0
- package/dist/primitives/Heatmap/Heatmap.doc.js +49 -0
- package/dist/primitives/Heatmap/Heatmap.js +42 -0
- package/dist/primitives/Heatmap/index.js +2 -0
- package/dist/primitives/HoverCard/HoverCard.doc.js +36 -0
- package/dist/primitives/HoverCard/HoverCard.js +39 -0
- package/dist/primitives/HoverCard/index.js +2 -0
- package/dist/primitives/Icon/Icon.doc.js +49 -0
- package/dist/primitives/Icon/Icon.js +214 -0
- package/dist/primitives/Icon/buckets/lucide-a.js +214 -0
- package/dist/primitives/Icon/buckets/lucide-b.js +298 -0
- package/dist/primitives/Icon/buckets/lucide-c.js +524 -0
- package/dist/primitives/Icon/buckets/lucide-d.js +110 -0
- package/dist/primitives/Icon/buckets/lucide-e.js +50 -0
- package/dist/primitives/Icon/buckets/lucide-f.js +264 -0
- package/dist/primitives/Icon/buckets/lucide-g.js +108 -0
- package/dist/primitives/Icon/buckets/lucide-h.js +112 -0
- package/dist/primitives/Icon/buckets/lucide-i.js +46 -0
- package/dist/primitives/Icon/buckets/lucide-j.js +6 -0
- package/dist/primitives/Icon/buckets/lucide-k.js +18 -0
- package/dist/primitives/Icon/buckets/lucide-l.js +162 -0
- package/dist/primitives/Icon/buckets/lucide-m.js +266 -0
- package/dist/primitives/Icon/buckets/lucide-n.js +34 -0
- package/dist/primitives/Icon/buckets/lucide-o.js +20 -0
- package/dist/primitives/Icon/buckets/lucide-p.js +216 -0
- package/dist/primitives/Icon/buckets/lucide-q.js +6 -0
- package/dist/primitives/Icon/buckets/lucide-r.js +140 -0
- package/dist/primitives/Icon/buckets/lucide-s.js +490 -0
- package/dist/primitives/Icon/buckets/lucide-t.js +204 -0
- package/dist/primitives/Icon/buckets/lucide-u.js +84 -0
- package/dist/primitives/Icon/buckets/lucide-v.js +46 -0
- package/dist/primitives/Icon/buckets/lucide-w.js +82 -0
- package/dist/primitives/Icon/buckets/lucide-x.js +6 -0
- package/dist/primitives/Icon/buckets/lucide-z.js +36 -0
- package/dist/primitives/Icon/buckets/phosphor-a.js +250 -0
- package/dist/primitives/Icon/buckets/phosphor-b.js +158 -0
- package/dist/primitives/Icon/buckets/phosphor-c.js +320 -0
- package/dist/primitives/Icon/buckets/phosphor-d.js +90 -0
- package/dist/primitives/Icon/buckets/phosphor-e.js +52 -0
- package/dist/primitives/Icon/buckets/phosphor-f.js +162 -0
- package/dist/primitives/Icon/buckets/phosphor-g.js +92 -0
- package/dist/primitives/Icon/buckets/phosphor-h.js +88 -0
- package/dist/primitives/Icon/buckets/phosphor-i.js +26 -0
- package/dist/primitives/Icon/buckets/phosphor-j.js +8 -0
- package/dist/primitives/Icon/buckets/phosphor-k.js +8 -0
- package/dist/primitives/Icon/buckets/phosphor-l.js +84 -0
- package/dist/primitives/Icon/buckets/phosphor-m.js +110 -0
- package/dist/primitives/Icon/buckets/phosphor-n.js +100 -0
- package/dist/primitives/Icon/buckets/phosphor-o.js +14 -0
- package/dist/primitives/Icon/buckets/phosphor-p.js +166 -0
- package/dist/primitives/Icon/buckets/phosphor-q.js +10 -0
- package/dist/primitives/Icon/buckets/phosphor-r.js +46 -0
- package/dist/primitives/Icon/buckets/phosphor-s.js +254 -0
- package/dist/primitives/Icon/buckets/phosphor-t.js +152 -0
- package/dist/primitives/Icon/buckets/phosphor-u.js +38 -0
- package/dist/primitives/Icon/buckets/phosphor-v.js +22 -0
- package/dist/primitives/Icon/buckets/phosphor-w.js +48 -0
- package/dist/primitives/Icon/buckets/phosphor-x.js +4 -0
- package/dist/primitives/Icon/buckets/phosphor-y.js +8 -0
- package/dist/primitives/Icon/icon-display-names.generated.js +4 -0
- package/dist/primitives/Icon/icon-loaders.generated.js +70 -0
- package/dist/primitives/Icon/icon-names-material.generated.js +4 -0
- package/dist/primitives/Icon/icon-names.js +11 -0
- package/dist/primitives/Icon/index.js +7 -0
- package/dist/primitives/IconButton/IconButton.doc.js +43 -0
- package/dist/primitives/IconButton/IconButton.js +98 -0
- package/dist/primitives/IconButton/index.js +2 -0
- package/dist/primitives/IconPicker/IconPicker.doc.js +52 -0
- package/dist/primitives/IconPicker/IconPicker.js +193 -0
- package/dist/primitives/IconPicker/index.js +2 -0
- package/dist/primitives/IconPicker/registry.js +98 -0
- package/dist/primitives/Image/Image.doc.js +40 -0
- package/dist/primitives/Image/Image.js +76 -0
- package/dist/primitives/Image/index.js +2 -0
- package/dist/primitives/Inset/Inset.doc.js +34 -0
- package/dist/primitives/Inset/Inset.js +51 -0
- package/dist/primitives/Inset/index.js +2 -0
- package/dist/primitives/Kbd/Kbd.doc.js +22 -0
- package/dist/primitives/Kbd/Kbd.js +17 -0
- package/dist/primitives/Kbd/index.js +2 -0
- package/dist/primitives/LineChart/LineChart.doc.js +61 -0
- package/dist/primitives/LineChart/LineChart.js +146 -0
- package/dist/primitives/LineChart/index.js +2 -0
- package/dist/primitives/Link/Link.doc.js +45 -0
- package/dist/primitives/Link/Link.js +37 -0
- package/dist/primitives/Link/index.js +2 -0
- package/dist/primitives/List/List.doc.js +35 -0
- package/dist/primitives/List/List.js +35 -0
- package/dist/primitives/List/index.js +2 -0
- package/dist/primitives/Menu/Menu.doc.js +37 -0
- package/dist/primitives/Menu/Menu.js +117 -0
- package/dist/primitives/Menu/index.js +2 -0
- package/dist/primitives/Murmur/Murmur.doc.js +32 -0
- package/dist/primitives/Murmur/Murmur.js +85 -0
- package/dist/primitives/Murmur/engine.js +163 -0
- package/dist/primitives/Murmur/index.js +12 -0
- package/dist/primitives/Pagination/Pagination.doc.js +37 -0
- package/dist/primitives/Pagination/Pagination.js +183 -0
- package/dist/primitives/Pagination/index.js +2 -0
- package/dist/primitives/PanelGroup/PanelGroup.doc.js +41 -0
- package/dist/primitives/PanelGroup/PanelGroup.js +142 -0
- package/dist/primitives/PanelGroup/index.js +2 -0
- package/dist/primitives/Popover/Popover.doc.js +36 -0
- package/dist/primitives/Popover/Popover.js +41 -0
- package/dist/primitives/Popover/index.js +2 -0
- package/dist/primitives/Progress/Progress.doc.js +35 -0
- package/dist/primitives/Progress/Progress.js +77 -0
- package/dist/primitives/Progress/index.js +2 -0
- package/dist/primitives/RadioGroup/RadioGroup.doc.js +36 -0
- package/dist/primitives/RadioGroup/RadioGroup.js +132 -0
- package/dist/primitives/RadioGroup/index.js +2 -0
- package/dist/primitives/Rating/NpsScale.js +102 -0
- package/dist/primitives/Rating/Rating.doc.js +35 -0
- package/dist/primitives/Rating/Rating.js +116 -0
- package/dist/primitives/Rating/RatingSummary.js +50 -0
- package/dist/primitives/Rating/SentimentRating.js +81 -0
- package/dist/primitives/Rating/index.js +5 -0
- package/dist/primitives/Reasoning/Reasoning.doc.js +28 -0
- package/dist/primitives/Reasoning/Reasoning.js +73 -0
- package/dist/primitives/Reasoning/index.js +2 -0
- package/dist/primitives/Resizable/Resizable.doc.js +50 -0
- package/dist/primitives/Resizable/ResizeHandle.js +185 -0
- package/dist/primitives/Resizable/index.js +2 -0
- package/dist/primitives/Row/Row.doc.js +36 -0
- package/dist/primitives/Row/Row.js +53 -0
- package/dist/primitives/Row/index.js +2 -0
- package/dist/primitives/ScrollArea/ScrollArea.doc.js +35 -0
- package/dist/primitives/ScrollArea/ScrollArea.js +50 -0
- package/dist/primitives/ScrollArea/index.js +2 -0
- package/dist/primitives/Section/Section.doc.js +64 -0
- package/dist/primitives/Section/Section.js +76 -0
- package/dist/primitives/Section/index.js +2 -0
- package/dist/primitives/SegmentedControl/SegmentedControl.doc.js +75 -0
- package/dist/primitives/SegmentedControl/SegmentedControl.js +160 -0
- package/dist/primitives/SegmentedControl/index.js +2 -0
- package/dist/primitives/Select/Select.doc.js +42 -0
- package/dist/primitives/Select/Select.js +180 -0
- package/dist/primitives/Select/index.js +2 -0
- package/dist/primitives/Separator/Separator.doc.js +34 -0
- package/dist/primitives/Separator/Separator.js +84 -0
- package/dist/primitives/Separator/index.js +2 -0
- package/dist/primitives/ShavinDevTools/DevToolsPanel.js +2050 -0
- package/dist/primitives/ShavinDevTools/ShavinDevTools.doc.js +44 -0
- package/dist/primitives/ShavinDevTools/ShavinDevTools.js +15 -0
- package/dist/primitives/ShavinDevTools/index.js +8 -0
- package/dist/primitives/ShavinDevTools/types.js +0 -0
- package/dist/primitives/Sidebar/Sidebar.doc.js +39 -0
- package/dist/primitives/Sidebar/Sidebar.js +295 -0
- package/dist/primitives/Sidebar/index.js +2 -0
- package/dist/primitives/Skeleton/Skeleton.doc.js +38 -0
- package/dist/primitives/Skeleton/Skeleton.js +36 -0
- package/dist/primitives/Skeleton/index.js +2 -0
- package/dist/primitives/Slider/Slider.doc.js +45 -0
- package/dist/primitives/Slider/Slider.js +406 -0
- package/dist/primitives/Slider/index.js +2 -0
- package/dist/primitives/Sortable/Sortable.doc.js +35 -0
- package/dist/primitives/Sortable/Sortable.js +179 -0
- package/dist/primitives/Sortable/index.js +2 -0
- package/dist/primitives/Sparkline/Sparkline.doc.js +25 -0
- package/dist/primitives/Sparkline/Sparkline.js +46 -0
- package/dist/primitives/Sparkline/index.js +2 -0
- package/dist/primitives/Spinner/Spinner.doc.js +35 -0
- package/dist/primitives/Spinner/Spinner.js +162 -0
- package/dist/primitives/Spinner/index.js +2 -0
- package/dist/primitives/Spotlight/Spotlight.doc.js +36 -0
- package/dist/primitives/Spotlight/Spotlight.js +139 -0
- package/dist/primitives/Spotlight/index.js +2 -0
- package/dist/primitives/Stepper/Stepper.doc.js +46 -0
- package/dist/primitives/Stepper/Stepper.js +235 -0
- package/dist/primitives/Stepper/index.js +2 -0
- package/dist/primitives/Switch/Switch.doc.js +36 -0
- package/dist/primitives/Switch/Switch.js +54 -0
- package/dist/primitives/Switch/index.js +2 -0
- package/dist/primitives/Table/Table.doc.js +47 -0
- package/dist/primitives/Table/Table.js +63 -0
- package/dist/primitives/Table/index.js +2 -0
- package/dist/primitives/Tabs/Tabs.doc.js +53 -0
- package/dist/primitives/Tabs/Tabs.js +275 -0
- package/dist/primitives/Tabs/index.js +2 -0
- package/dist/primitives/Text/Text.doc.js +35 -0
- package/dist/primitives/Text/Text.js +67 -0
- package/dist/primitives/Text/index.js +2 -0
- package/dist/primitives/TextArea/TextArea.doc.js +35 -0
- package/dist/primitives/TextArea/TextArea.js +45 -0
- package/dist/primitives/TextArea/index.js +2 -0
- package/dist/primitives/TextField/TextField.doc.js +41 -0
- package/dist/primitives/TextField/TextField.js +290 -0
- package/dist/primitives/TextField/index.js +2 -0
- package/dist/primitives/ThemeProvider/ScopedThemeProvider.js +71 -0
- package/dist/primitives/ThemeProvider/ThemeProvider.doc.js +61 -0
- package/dist/primitives/ThemeProvider/ThemeProvider.js +143 -0
- package/dist/primitives/ThemeProvider/clientTheme.js +47 -0
- package/dist/primitives/ThemeProvider/index.js +3 -0
- package/dist/primitives/ThemeProvider/themeContext.js +11 -0
- package/dist/primitives/ThemeSwitcher/ThemeSwitcher.doc.js +49 -0
- package/dist/primitives/ThemeSwitcher/ThemeSwitcher.js +323 -0
- package/dist/primitives/ThemeSwitcher/index.js +2 -0
- package/dist/primitives/TimePicker/TimePicker.doc.js +36 -0
- package/dist/primitives/TimePicker/TimePicker.js +368 -0
- package/dist/primitives/TimePicker/index.js +2 -0
- package/dist/primitives/Toast/Toast.doc.js +65 -0
- package/dist/primitives/Toast/Toast.js +304 -0
- package/dist/primitives/Toast/index.js +2 -0
- package/dist/primitives/ToolCall/ToolCall.doc.js +29 -0
- package/dist/primitives/ToolCall/ToolCall.js +75 -0
- package/dist/primitives/ToolCall/index.js +2 -0
- package/dist/primitives/Tooltip/Tooltip.doc.js +37 -0
- package/dist/primitives/Tooltip/Tooltip.js +55 -0
- package/dist/primitives/Tooltip/index.js +2 -0
- package/dist/primitives/TopBar/TopBar.doc.js +34 -0
- package/dist/primitives/TopBar/TopBar.js +8 -0
- package/dist/primitives/TopBar/index.js +2 -0
- package/dist/primitives/Video/PauseToggle.js +49 -0
- package/dist/primitives/Video/Video.doc.js +47 -0
- package/dist/primitives/Video/Video.js +104 -0
- package/dist/primitives/Video/index.js +1 -0
- package/dist/primitives/VoiceInput/VoiceInput.doc.js +38 -0
- package/dist/primitives/VoiceInput/VoiceInput.js +96 -0
- package/dist/primitives/VoiceInput/index.js +2 -0
- package/dist/primitives/WiseOwlLogo/WiseOwlLogo.doc.js +38 -0
- package/dist/primitives/WiseOwlLogo/WiseOwlLogo.js +82 -0
- package/dist/primitives/WiseOwlLogo/index.js +2 -0
- package/dist/primitives/WiseOwlLogo/paths.js +10 -0
- package/dist/server.d.ts +256 -0
- package/dist/server.js +22 -0
- package/dist/styles/base-oklch.css +124 -0
- package/dist/styles/base-oklch.d.ts +2 -0
- package/dist/styles/base.css +124 -0
- package/dist/styles/base.d.ts +2 -0
- package/dist/styles/brand-preset.d.ts +22 -0
- package/dist/styles/brand-preset.js +13 -0
- package/dist/styles/brand-theme-v4-oklch.css +2 -0
- package/dist/styles/brand-theme-v4-oklch.d.ts +2 -0
- package/dist/styles/brand-theme-v4.css +2 -0
- package/dist/styles/brand-theme-v4.d.ts +2 -0
- package/dist/styles/brand-tokens-oklch.css +6 -0
- package/dist/styles/brand-tokens-oklch.d.ts +2 -0
- package/dist/styles/brand-tokens.css +6 -0
- package/dist/styles/brand-tokens.d.ts +2 -0
- package/dist/styles/global-oklch.css +1329 -0
- package/dist/styles/global-oklch.d.ts +2 -0
- package/dist/styles/global.css +1329 -0
- package/dist/styles/global.d.ts +2 -0
- package/dist/styles/theme-v4-oklch.css +22 -0
- package/dist/styles/theme-v4-oklch.d.ts +2 -0
- package/dist/styles/theme-v4.css +22 -0
- package/dist/styles/theme-v4.d.ts +2 -0
- package/dist/styles/tokens-oklch.css +1204 -0
- package/dist/styles/tokens-oklch.d.ts +2 -0
- package/dist/styles/tokens.css +1204 -0
- package/dist/styles/tokens.d.ts +2 -0
- package/dist/tailwind-preset.cjs +155 -0
- package/dist/tailwind-preset.d.ts +112 -0
- package/dist/tailwind-preset.js +133 -0
- package/dist/theme-presets-BVWZ_TxX.d.ts +514 -0
- package/global-oklch.css +3 -0
- package/package.json +169 -4
- package/styles.css +3 -0
- package/tailwind-preset.ts +140 -0
- package/tokens.json +423 -0
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React, { useState, useEffect, useRef, createContext } from "react";
|
|
4
|
+
import ReactDOM from "react-dom";
|
|
5
|
+
import { Button } from "../Button/index.js";
|
|
6
|
+
import { IconButton } from "../IconButton/index.js";
|
|
7
|
+
import { Menu, MenuItem } from "../Menu/index.js";
|
|
8
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../Popover/index.js";
|
|
9
|
+
import { PortalContainerProvider } from "../../lib/portal-container.js";
|
|
10
|
+
import { Card } from "../Card/index.js";
|
|
11
|
+
import { AspectRatio } from "../AspectRatio/index.js";
|
|
12
|
+
import { SegmentedControl, SegmentedControlItem } from "../SegmentedControl/index.js";
|
|
13
|
+
import { CodeBlock } from "../CodeBlock/index.js";
|
|
14
|
+
import { cn } from "../../lib/cn.js";
|
|
15
|
+
import { Monitor, Tablet, Smartphone, ArrowUpRight, Code2, Terminal, X } from "lucide-react";
|
|
16
|
+
const DeviceContext = createContext("desktop");
|
|
17
|
+
function BlockPreview({
|
|
18
|
+
title,
|
|
19
|
+
code,
|
|
20
|
+
command,
|
|
21
|
+
layout = "fullscreen",
|
|
22
|
+
studioKey: studioKeyProp,
|
|
23
|
+
studioUrl: studioUrlProp,
|
|
24
|
+
builderKey,
|
|
25
|
+
builderUrl,
|
|
26
|
+
children,
|
|
27
|
+
className,
|
|
28
|
+
...props
|
|
29
|
+
}) {
|
|
30
|
+
const [device, setDevice] = useState("desktop");
|
|
31
|
+
const [showCode, setShowCode] = useState(false);
|
|
32
|
+
const [copiedCode, setCopiedCode] = useState(false);
|
|
33
|
+
const [copiedCommand, setCopiedCommand] = useState(false);
|
|
34
|
+
const containerRef = useRef(null);
|
|
35
|
+
const [portalEl, setPortalEl] = useState(null);
|
|
36
|
+
const [parentWidth, setParentWidth] = useState(800);
|
|
37
|
+
const measureRef = useRef(null);
|
|
38
|
+
const [contentH, setContentH] = useState(null);
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
if (!containerRef.current) return;
|
|
41
|
+
const observer = new ResizeObserver((entries) => {
|
|
42
|
+
for (const entry of entries) {
|
|
43
|
+
setParentWidth(entry.contentRect.width || 800);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
observer.observe(containerRef.current);
|
|
47
|
+
return () => observer.disconnect();
|
|
48
|
+
}, []);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
const el = measureRef.current;
|
|
51
|
+
if (!el || device !== "desktop") return;
|
|
52
|
+
const ro = new ResizeObserver(() => setContentH(Math.ceil(el.offsetHeight)));
|
|
53
|
+
ro.observe(el);
|
|
54
|
+
return () => ro.disconnect();
|
|
55
|
+
}, [device, layout]);
|
|
56
|
+
const handleCopyCode = () => {
|
|
57
|
+
if (typeof navigator !== "undefined" && navigator.clipboard) {
|
|
58
|
+
navigator.clipboard.writeText(code).then(() => {
|
|
59
|
+
setCopiedCode(true);
|
|
60
|
+
setTimeout(() => setCopiedCode(false), 1200);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const handleCopyCommand = () => {
|
|
65
|
+
if (typeof navigator !== "undefined" && navigator.clipboard) {
|
|
66
|
+
navigator.clipboard.writeText(command).then(() => {
|
|
67
|
+
setCopiedCommand(true);
|
|
68
|
+
setTimeout(() => setCopiedCommand(false), 1200);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const targetWidths = {
|
|
73
|
+
desktop: 1280,
|
|
74
|
+
tablet: 768,
|
|
75
|
+
mobile: 375
|
|
76
|
+
};
|
|
77
|
+
const targetHeights = {
|
|
78
|
+
desktop: 720,
|
|
79
|
+
tablet: 960,
|
|
80
|
+
mobile: 680
|
|
81
|
+
};
|
|
82
|
+
const W_target = targetWidths[device];
|
|
83
|
+
const H_target = targetHeights[device];
|
|
84
|
+
const parentHeight = parentWidth * (9 / 16);
|
|
85
|
+
const scale = device === "desktop" ? Math.min(parentWidth / W_target, 1) : Math.max(Math.min((parentWidth - 24) / W_target, (parentHeight - 24) / H_target, 1), 0.65);
|
|
86
|
+
const FIT_MIN = 360;
|
|
87
|
+
const FIT_MAX = 960;
|
|
88
|
+
const canFit = device === "desktop" && (layout === "plain" || layout === "centered" || layout === "fullscreen");
|
|
89
|
+
const fitPad = layout === "plain" || layout === "centered" ? 64 : 0;
|
|
90
|
+
const fitted = canFit && contentH !== null;
|
|
91
|
+
const viewportH = fitted ? Math.min(Math.max(contentH + fitPad, FIT_MIN), FIT_MAX) : parentHeight / (scale || 1);
|
|
92
|
+
const frameH = fitted ? viewportH * scale : parentHeight;
|
|
93
|
+
const Frame = device === "desktop" ? "div" : AspectRatio;
|
|
94
|
+
const frameProps = device === "desktop" ? { className: "relative w-full", style: { height: frameH } } : { ratio: 16 / 9 };
|
|
95
|
+
const studioKey = studioKeyProp ?? builderKey;
|
|
96
|
+
const studioUrl = studioUrlProp ?? builderUrl;
|
|
97
|
+
const isFork = studioKey?.startsWith("@") || studioKey?.includes("/");
|
|
98
|
+
const studioQuery = isFork ? `fork=${studioKey}` : `load=${studioKey}`;
|
|
99
|
+
const resolvedBuilderUrl = studioUrl || (studioKey ? typeof window !== "undefined" && window.location.hostname === "localhost" ? `http://localhost:3200/?${studioQuery}` : `https://studio.shavin.cc/?${studioQuery}` : void 0);
|
|
100
|
+
return /* @__PURE__ */ jsxs(DeviceContext.Provider, { value: device, children: [
|
|
101
|
+
/* @__PURE__ */ jsxs(
|
|
102
|
+
Card,
|
|
103
|
+
{
|
|
104
|
+
className: cn(
|
|
105
|
+
"w-full border border-hairline overflow-hidden shadow-card flex flex-col mb-8 bg-surface",
|
|
106
|
+
className
|
|
107
|
+
),
|
|
108
|
+
...props,
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 p-3 border-b border-hairline bg-surface-hover/30 shrink-0 sm:hidden", children: [
|
|
111
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
112
|
+
/* @__PURE__ */ jsx(IconButton, { variant: "outline", size: "sm", "aria-label": "View code", onClick: () => setShowCode(true), children: /* @__PURE__ */ jsx(Code2, {}) }),
|
|
113
|
+
resolvedBuilderUrl && /* @__PURE__ */ jsx(IconButton, { variant: "outline", size: "sm", "aria-label": "Edit in Studio", onClick: () => window.open(resolvedBuilderUrl, "_blank", "noopener"), children: /* @__PURE__ */ jsx(ArrowUpRight, {}) })
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
116
|
+
/* @__PURE__ */ jsxs(
|
|
117
|
+
Menu,
|
|
118
|
+
{
|
|
119
|
+
align: "end",
|
|
120
|
+
trigger: /* @__PURE__ */ jsx(IconButton, { variant: "outline", size: "sm", "aria-label": `Viewport: ${device}. Change viewport`, children: device === "desktop" ? /* @__PURE__ */ jsx(Monitor, {}) : device === "tablet" ? /* @__PURE__ */ jsx(Tablet, {}) : /* @__PURE__ */ jsx(Smartphone, {}) }),
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ jsx(MenuItem, { onSelect: () => setDevice("desktop"), children: "Desktop" }),
|
|
123
|
+
/* @__PURE__ */ jsx(MenuItem, { onSelect: () => setDevice("tablet"), children: "Tablet" }),
|
|
124
|
+
/* @__PURE__ */ jsx(MenuItem, { onSelect: () => setDevice("mobile"), children: "Mobile" })
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
/* @__PURE__ */ jsxs(Popover, { children: [
|
|
129
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { variant: "outline", size: "sm", "aria-label": "Install command", children: /* @__PURE__ */ jsx(Terminal, {}) }) }),
|
|
130
|
+
/* @__PURE__ */ jsx(PopoverContent, { align: "end", className: "w-[min(22rem,calc(100vw-2rem))]", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
131
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-fg-muted", children: "Install with the CLI" }),
|
|
132
|
+
/* @__PURE__ */ jsx("code", { className: "block break-all rounded-[var(--radius-lg)] border border-hairline bg-surface-hover px-2.5 py-2 font-mono text-[11px] text-fg", children: command }),
|
|
133
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: handleCopyCommand, className: "self-end text-xs cursor-pointer", children: copiedCommand ? "Copied" : "Copy" })
|
|
134
|
+
] }) })
|
|
135
|
+
] })
|
|
136
|
+
] })
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ jsxs("div", { className: "hidden sm:grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] w-full items-center gap-4 p-4 border-b border-hairline bg-surface-hover/30 shrink-0", children: [
|
|
139
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-start gap-2 min-w-0", children: [
|
|
140
|
+
/* @__PURE__ */ jsx(
|
|
141
|
+
Button,
|
|
142
|
+
{
|
|
143
|
+
variant: "outline",
|
|
144
|
+
size: "sm",
|
|
145
|
+
onClick: () => setShowCode(true),
|
|
146
|
+
iconLeft: /* @__PURE__ */ jsx(Code2, { className: "h-3.5 w-3.5" }),
|
|
147
|
+
className: "shrink-0 text-xs cursor-pointer",
|
|
148
|
+
children: "View Code"
|
|
149
|
+
}
|
|
150
|
+
),
|
|
151
|
+
resolvedBuilderUrl && /* @__PURE__ */ jsxs(
|
|
152
|
+
Button,
|
|
153
|
+
{
|
|
154
|
+
variant: "outline",
|
|
155
|
+
size: "sm",
|
|
156
|
+
onClick: () => {
|
|
157
|
+
window.open(resolvedBuilderUrl, "_blank", "noopener");
|
|
158
|
+
},
|
|
159
|
+
iconRight: /* @__PURE__ */ jsx(ArrowUpRight, { className: "h-3.5 w-3.5" }),
|
|
160
|
+
className: "min-w-0 text-xs cursor-pointer",
|
|
161
|
+
title: "Edit in Studio",
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ jsx("span", { className: "hidden min-w-0 truncate sm:inline-block", children: "Edit in Studio" }),
|
|
164
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate sm:hidden", children: "Edit" })
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
] }),
|
|
169
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxs(
|
|
170
|
+
SegmentedControl,
|
|
171
|
+
{
|
|
172
|
+
size: "sm",
|
|
173
|
+
variant: "icon",
|
|
174
|
+
value: device,
|
|
175
|
+
onValueChange: (v) => v && setDevice(v),
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ jsx(SegmentedControlItem, { value: "desktop", label: "Desktop", icon: /* @__PURE__ */ jsx(Monitor, { className: "h-3.5 w-3.5" }) }),
|
|
178
|
+
/* @__PURE__ */ jsx(SegmentedControlItem, { value: "tablet", label: "Tablet", icon: /* @__PURE__ */ jsx(Tablet, { className: "h-3.5 w-3.5" }) }),
|
|
179
|
+
/* @__PURE__ */ jsx(SegmentedControlItem, { value: "mobile", label: "Mobile", icon: /* @__PURE__ */ jsx(Smartphone, { className: "h-3.5 w-3.5" }) })
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
) }),
|
|
183
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end gap-1.5 min-w-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 bg-surface-hover border border-hairline rounded-[var(--radius-lg)] pl-2.5 pr-1.5 py-1 text-[11px] font-mono text-fg-muted w-full min-w-0 sm:w-64 sm:max-w-full overflow-hidden truncate", children: [
|
|
184
|
+
/* @__PURE__ */ jsx("span", { className: "text-brand-text shrink-0", children: ">" }),
|
|
185
|
+
/* @__PURE__ */ jsx("span", { className: "truncate flex-1 text-left", children: command }),
|
|
186
|
+
/* @__PURE__ */ jsx(
|
|
187
|
+
"button",
|
|
188
|
+
{
|
|
189
|
+
type: "button",
|
|
190
|
+
onClick: handleCopyCommand,
|
|
191
|
+
className: "hit-area h-5 px-1.5 rounded-[var(--radius-lg)] bg-surface hover:bg-surface-hover text-[10px] border border-hairline shrink-0 text-fg-muted hover:text-fg cursor-pointer",
|
|
192
|
+
children: copiedCommand ? "Copied" : "Copy"
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] }) })
|
|
196
|
+
] }),
|
|
197
|
+
/* @__PURE__ */ jsx(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
ref: containerRef,
|
|
201
|
+
className: "border-b border-hairline w-full relative overflow-hidden bg-surface-hover/20",
|
|
202
|
+
children: /* @__PURE__ */ jsx(PortalContainerProvider, { value: portalEl, children: /* @__PURE__ */ jsx(Frame, { ...frameProps, children: device === "desktop" ? /* @__PURE__ */ jsx(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
"data-lenis-prevent": true,
|
|
206
|
+
"data-lenis-prevent-wheel": true,
|
|
207
|
+
tabIndex: 0,
|
|
208
|
+
role: "region",
|
|
209
|
+
"aria-label": "Block preview",
|
|
210
|
+
ref: setPortalEl,
|
|
211
|
+
className: "absolute top-0 left-0 overflow-y-auto overflow-x-hidden bg-canvas overscroll-contain",
|
|
212
|
+
style: {
|
|
213
|
+
transform: `scale(${scale})`,
|
|
214
|
+
transformOrigin: "top left",
|
|
215
|
+
width: `${W_target}px`,
|
|
216
|
+
height: `${viewportH}px`,
|
|
217
|
+
touchAction: "pan-y"
|
|
218
|
+
},
|
|
219
|
+
children: layout === "centered" || layout === "plain" ? /* @__PURE__ */ jsx(
|
|
220
|
+
"div",
|
|
221
|
+
{
|
|
222
|
+
className: "min-h-full w-full flex items-center justify-center p-8 bg-canvas",
|
|
223
|
+
style: {
|
|
224
|
+
backgroundImage: "repeating-linear-gradient(45deg, rgb(var(--hairline)) 0px, rgb(var(--hairline)) 1px, transparent 1px, transparent 10px)"
|
|
225
|
+
},
|
|
226
|
+
children: /* @__PURE__ */ jsx("div", { ref: measureRef, className: "w-full", children })
|
|
227
|
+
}
|
|
228
|
+
) : layout === "sidebar" || layout === "sidebar-right" ? /* @__PURE__ */ jsxs("div", { className: "h-full w-full flex bg-canvas", children: [
|
|
229
|
+
layout === "sidebar" && /* @__PURE__ */ jsx("div", { className: "h-full shrink-0 flex flex-col", children }),
|
|
230
|
+
/* @__PURE__ */ jsxs(
|
|
231
|
+
"div",
|
|
232
|
+
{
|
|
233
|
+
className: "flex-1 h-full p-6 space-y-4 overflow-y-auto",
|
|
234
|
+
style: {
|
|
235
|
+
backgroundImage: "repeating-linear-gradient(45deg, rgb(var(--hairline)) 0px, rgb(var(--hairline)) 1px, transparent 1px, transparent 10px)"
|
|
236
|
+
},
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ jsxs("div", { className: "h-12 bg-surface border border-hairline rounded-[var(--radius-lg)] flex items-center justify-between px-4", children: [
|
|
239
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-28 bg-fg-muted/15 rounded-[var(--radius-sm)]" }),
|
|
240
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
241
|
+
/* @__PURE__ */ jsx("div", { className: "h-6 w-16 bg-fg-muted/10 rounded-[var(--radius-lg)]" }),
|
|
242
|
+
/* @__PURE__ */ jsx("div", { className: "h-6 w-6 rounded-full bg-fg-muted/15" })
|
|
243
|
+
] })
|
|
244
|
+
] }),
|
|
245
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
246
|
+
/* @__PURE__ */ jsxs("div", { className: "h-24 rounded-[var(--radius-panel)] border border-dashed border-hairline-strong bg-surface/50 p-3 flex flex-col justify-between", children: [
|
|
247
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-16 bg-fg-subtle/20 rounded-[var(--radius-sm)]" }),
|
|
248
|
+
/* @__PURE__ */ jsx("div", { className: "h-5 w-12 bg-fg-muted/30 rounded-[var(--radius-sm)]" })
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ jsxs("div", { className: "h-24 rounded-[var(--radius-panel)] border border-dashed border-hairline-strong bg-surface/50 p-3 flex flex-col justify-between", children: [
|
|
251
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-16 bg-fg-subtle/20 rounded-[var(--radius-sm)]" }),
|
|
252
|
+
/* @__PURE__ */ jsx("div", { className: "h-5 w-12 bg-fg-muted/30 rounded-[var(--radius-sm)]" })
|
|
253
|
+
] })
|
|
254
|
+
] }),
|
|
255
|
+
/* @__PURE__ */ jsxs("div", { className: "h-44 rounded-[var(--radius-panel)] border border-dashed border-hairline-strong bg-surface/50 p-4 space-y-3", children: [
|
|
256
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-32 bg-fg-muted/20 rounded-[var(--radius-sm)] mb-4" }),
|
|
257
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-full bg-fg-subtle/10 rounded-[var(--radius-sm)]" }),
|
|
258
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-full bg-fg-subtle/10 rounded-[var(--radius-sm)]" }),
|
|
259
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-3/4 bg-fg-subtle/10 rounded-[var(--radius-sm)]" })
|
|
260
|
+
] })
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
layout === "sidebar-right" && /* @__PURE__ */ jsx("div", { className: "h-full shrink-0 flex flex-col", children })
|
|
265
|
+
] }) : layout === "header" ? /* @__PURE__ */ jsxs("div", { className: "min-h-full w-full flex flex-col bg-canvas", children: [
|
|
266
|
+
/* @__PURE__ */ jsx("div", { className: "w-full shrink-0", children }),
|
|
267
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex", children: [
|
|
268
|
+
/* @__PURE__ */ jsxs("div", { className: "w-56 border-r border-hairline bg-surface p-3 space-y-2", children: [
|
|
269
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-16 bg-fg-subtle/20 rounded-[var(--radius-sm)] mb-3" }),
|
|
270
|
+
/* @__PURE__ */ jsx("div", { className: "h-7 w-full bg-surface-hover rounded-[var(--radius-sm)]" }),
|
|
271
|
+
/* @__PURE__ */ jsx("div", { className: "h-7 w-full bg-surface-hover/50 rounded-[var(--radius-sm)]" }),
|
|
272
|
+
/* @__PURE__ */ jsx("div", { className: "h-7 w-full bg-surface-hover/50 rounded-[var(--radius-sm)]" })
|
|
273
|
+
] }),
|
|
274
|
+
/* @__PURE__ */ jsx(
|
|
275
|
+
"div",
|
|
276
|
+
{
|
|
277
|
+
className: "flex-1 p-6 space-y-4",
|
|
278
|
+
style: {
|
|
279
|
+
backgroundImage: "repeating-linear-gradient(45deg, rgb(var(--hairline)) 0px, rgb(var(--hairline)) 1px, transparent 1px, transparent 10px)"
|
|
280
|
+
},
|
|
281
|
+
children: /* @__PURE__ */ jsx("div", { className: "h-32 rounded-[var(--radius-panel)] border border-dashed border-hairline-strong bg-surface/50" })
|
|
282
|
+
}
|
|
283
|
+
)
|
|
284
|
+
] })
|
|
285
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "h-full w-full", children: /* @__PURE__ */ jsx("div", { ref: measureRef, className: "w-full", children }) })
|
|
286
|
+
}
|
|
287
|
+
) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center p-4", children: /* @__PURE__ */ jsxs(
|
|
288
|
+
"div",
|
|
289
|
+
{
|
|
290
|
+
className: "bg-surface border border-fg-muted/20 rounded-[28px] shadow-modal overflow-hidden flex flex-col shrink-0",
|
|
291
|
+
style: {
|
|
292
|
+
width: `${W_target}px`,
|
|
293
|
+
height: `${H_target}px`,
|
|
294
|
+
transform: `scale(${scale})`,
|
|
295
|
+
transformOrigin: "center center"
|
|
296
|
+
},
|
|
297
|
+
children: [
|
|
298
|
+
/* @__PURE__ */ jsxs("div", { className: "h-8 bg-surface-hover border-b border-hairline px-6 flex items-center justify-between shrink-0 select-none text-[10px] text-fg-muted font-semibold", children: [
|
|
299
|
+
/* @__PURE__ */ jsx("span", { children: "9:41" }),
|
|
300
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
301
|
+
/* @__PURE__ */ jsx("span", { className: "h-2 w-3.5 rounded-[2px] border border-fg-muted/30 bg-fg-muted/10" }),
|
|
302
|
+
/* @__PURE__ */ jsx("span", { className: "h-2 w-2 rounded-full bg-fg-muted/30" })
|
|
303
|
+
] })
|
|
304
|
+
] }),
|
|
305
|
+
/* @__PURE__ */ jsx(
|
|
306
|
+
"div",
|
|
307
|
+
{
|
|
308
|
+
"data-lenis-prevent": true,
|
|
309
|
+
"data-lenis-prevent-wheel": true,
|
|
310
|
+
tabIndex: 0,
|
|
311
|
+
role: "region",
|
|
312
|
+
"aria-label": "Block preview",
|
|
313
|
+
ref: setPortalEl,
|
|
314
|
+
className: "flex-1 w-full overflow-y-auto overflow-x-hidden bg-canvas text-fg relative overscroll-contain",
|
|
315
|
+
style: { touchAction: "pan-y" },
|
|
316
|
+
children: layout === "centered" || layout === "plain" ? /* @__PURE__ */ jsx(
|
|
317
|
+
"div",
|
|
318
|
+
{
|
|
319
|
+
className: "min-h-full w-full flex items-center justify-center p-6 bg-canvas",
|
|
320
|
+
style: {
|
|
321
|
+
backgroundImage: "repeating-linear-gradient(45deg, rgb(var(--hairline)) 0px, rgb(var(--hairline)) 1px, transparent 1px, transparent 10px)"
|
|
322
|
+
},
|
|
323
|
+
children
|
|
324
|
+
}
|
|
325
|
+
) : /* @__PURE__ */ jsx("div", { className: "h-full w-full", children })
|
|
326
|
+
}
|
|
327
|
+
)
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
) }) }) })
|
|
331
|
+
}
|
|
332
|
+
)
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
),
|
|
336
|
+
showCode && typeof document !== "undefined" && ReactDOM.createPortal(
|
|
337
|
+
/* @__PURE__ */ jsx(
|
|
338
|
+
"div",
|
|
339
|
+
{
|
|
340
|
+
className: "fixed inset-0 z-[100] flex items-center justify-center bg-black/60 backdrop-blur-sm p-4 sm:p-6",
|
|
341
|
+
onClick: () => setShowCode(false),
|
|
342
|
+
children: /* @__PURE__ */ jsxs(
|
|
343
|
+
"div",
|
|
344
|
+
{
|
|
345
|
+
className: "flex max-h-[85vh] w-full max-w-3xl flex-col overflow-hidden rounded-[var(--radius-panel)] border border-hairline bg-surface shadow-modal",
|
|
346
|
+
onClick: (e) => e.stopPropagation(),
|
|
347
|
+
children: [
|
|
348
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-hairline px-4 py-3", children: [
|
|
349
|
+
/* @__PURE__ */ jsxs("span", { className: "text-sm font-semibold text-fg", children: [
|
|
350
|
+
title,
|
|
351
|
+
" \u2014 Source Code"
|
|
352
|
+
] }),
|
|
353
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
354
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: handleCopyCode, className: "text-xs cursor-pointer", children: copiedCode ? "Copied!" : "Copy Code" }),
|
|
355
|
+
/* @__PURE__ */ jsx(
|
|
356
|
+
"button",
|
|
357
|
+
{
|
|
358
|
+
type: "button",
|
|
359
|
+
onClick: () => setShowCode(false),
|
|
360
|
+
"aria-label": "Close",
|
|
361
|
+
className: "hit-area flex h-7 w-7 items-center justify-center rounded-[var(--radius-lg)] text-fg-muted transition hover:bg-surface-hover hover:text-fg",
|
|
362
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
363
|
+
}
|
|
364
|
+
)
|
|
365
|
+
] })
|
|
366
|
+
] }),
|
|
367
|
+
/* @__PURE__ */ jsx(CodeBlock, { code, className: "min-h-0 flex-1 border-none rounded-none" })
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
)
|
|
371
|
+
}
|
|
372
|
+
),
|
|
373
|
+
document.body
|
|
374
|
+
)
|
|
375
|
+
] });
|
|
376
|
+
}
|
|
377
|
+
function MiniPreviewFrame({
|
|
378
|
+
children,
|
|
379
|
+
className,
|
|
380
|
+
showDotGrid = true,
|
|
381
|
+
...props
|
|
382
|
+
}) {
|
|
383
|
+
return (
|
|
384
|
+
// A thumbnail, usually inside a link card: its sample controls are pictures, so
|
|
385
|
+
// keep them out of the tab order and the a11y tree (no nested interactive content).
|
|
386
|
+
/* @__PURE__ */ jsxs(
|
|
387
|
+
"div",
|
|
388
|
+
{
|
|
389
|
+
"aria-hidden": "true",
|
|
390
|
+
inert: true,
|
|
391
|
+
className: cn(
|
|
392
|
+
"h-36 w-full bg-surface-hover/25 border-b border-hairline relative overflow-hidden pointer-events-none select-none transition-colors group-hover:bg-surface-hover/45",
|
|
393
|
+
className
|
|
394
|
+
),
|
|
395
|
+
...props,
|
|
396
|
+
children: [
|
|
397
|
+
showDotGrid && /* @__PURE__ */ jsx(
|
|
398
|
+
"div",
|
|
399
|
+
{
|
|
400
|
+
className: "absolute inset-0 opacity-10 pointer-events-none z-0",
|
|
401
|
+
style: {
|
|
402
|
+
backgroundImage: "radial-gradient(currentColor 1px, transparent 1px)",
|
|
403
|
+
backgroundSize: "12px 12px"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
),
|
|
407
|
+
/* @__PURE__ */ jsx("div", { className: "relative z-10 w-full h-full flex items-center justify-center", children })
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
class SafeMiniPreview extends React.Component {
|
|
414
|
+
constructor(props) {
|
|
415
|
+
super(props);
|
|
416
|
+
this.state = { hasError: false };
|
|
417
|
+
}
|
|
418
|
+
static getDerivedStateFromError() {
|
|
419
|
+
return { hasError: true };
|
|
420
|
+
}
|
|
421
|
+
render() {
|
|
422
|
+
if (this.state.hasError) {
|
|
423
|
+
return this.props.fallback || /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center gap-1.5 p-3 text-center select-none pointer-events-none w-full max-w-[160px]", children: [
|
|
424
|
+
/* @__PURE__ */ jsx("div", { className: "h-1.5 w-12 rounded bg-fg/40 mb-1" }),
|
|
425
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-24 rounded bg-fg/20" }),
|
|
426
|
+
/* @__PURE__ */ jsx("div", { className: "h-1.5 w-20 rounded bg-fg-subtle/20" })
|
|
427
|
+
] });
|
|
428
|
+
}
|
|
429
|
+
return this.props.children;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
function MiniBlockPreview({
|
|
433
|
+
children,
|
|
434
|
+
scale = 0.285714,
|
|
435
|
+
fallback,
|
|
436
|
+
className,
|
|
437
|
+
playVideo = true
|
|
438
|
+
}) {
|
|
439
|
+
const containerRef = useRef(null);
|
|
440
|
+
const defaultFallback = /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center gap-1.5 p-3 text-center select-none pointer-events-none w-full max-w-[160px]", children: [
|
|
441
|
+
/* @__PURE__ */ jsx("div", { className: "h-1.5 w-12 rounded bg-fg/40 mb-1" }),
|
|
442
|
+
/* @__PURE__ */ jsx("div", { className: "h-2 w-24 rounded bg-fg/20" }),
|
|
443
|
+
/* @__PURE__ */ jsx("div", { className: "h-1.5 w-20 rounded bg-fg-subtle/20" })
|
|
444
|
+
] });
|
|
445
|
+
useEffect(() => {
|
|
446
|
+
if (!containerRef.current) return;
|
|
447
|
+
const videos = containerRef.current.querySelectorAll("video");
|
|
448
|
+
videos.forEach((v) => {
|
|
449
|
+
if (playVideo) {
|
|
450
|
+
v.play().catch(() => {
|
|
451
|
+
});
|
|
452
|
+
} else {
|
|
453
|
+
v.pause();
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}, [playVideo, children]);
|
|
457
|
+
if (!children) {
|
|
458
|
+
return fallback || defaultFallback;
|
|
459
|
+
}
|
|
460
|
+
const invScale = 1 / scale * 100;
|
|
461
|
+
return /* @__PURE__ */ jsx(
|
|
462
|
+
"div",
|
|
463
|
+
{
|
|
464
|
+
ref: containerRef,
|
|
465
|
+
className: cn(
|
|
466
|
+
"absolute inset-0 pointer-events-none select-none overflow-hidden bg-canvas",
|
|
467
|
+
className
|
|
468
|
+
),
|
|
469
|
+
style: {
|
|
470
|
+
width: `${invScale}%`,
|
|
471
|
+
height: `${invScale}%`,
|
|
472
|
+
transform: `scale(${scale})`,
|
|
473
|
+
transformOrigin: "0 0"
|
|
474
|
+
},
|
|
475
|
+
children: /* @__PURE__ */ jsx("div", { className: "w-full h-full min-h-full flex flex-col items-center justify-start overflow-hidden [&_>_*]:w-full [&_>_*]:min-h-full [&_>_*]:rounded-none [&_>_*]:border-0 [&_>_*]:shadow-none", children: /* @__PURE__ */ jsx(SafeMiniPreview, { fallback: fallback || defaultFallback, children }) })
|
|
476
|
+
}
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
export {
|
|
480
|
+
BlockPreview,
|
|
481
|
+
DeviceContext,
|
|
482
|
+
MiniBlockPreview,
|
|
483
|
+
MiniPreviewFrame,
|
|
484
|
+
SafeMiniPreview
|
|
485
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const docs = {
|
|
2
|
+
name: "Blockquote",
|
|
3
|
+
group: "typography",
|
|
4
|
+
description: "A quoted passage set off with a brand rule, for testimonials and cited text.",
|
|
5
|
+
features: ["Brand left rule, muted text, optional cite URL"],
|
|
6
|
+
accessibility: ["Renders a native <blockquote>; pass cite for the source URL and name the source in visible text"],
|
|
7
|
+
usage: {
|
|
8
|
+
bestPractices: [
|
|
9
|
+
{ guidance: true, description: "Follow the quote with the speaker's name in a muted Text line." },
|
|
10
|
+
{ guidance: false, description: "Do not use Blockquote just to indent or highlight text; use Callout." }
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
examples: [
|
|
14
|
+
{
|
|
15
|
+
title: "Quote with attribution",
|
|
16
|
+
code: `<div className="max-w-md space-y-2">
|
|
17
|
+
<Blockquote>The handoff between design and code finally disappeared.</Blockquote>
|
|
18
|
+
<Text size="sm" color="muted">Priya Nair, Head of Design</Text>
|
|
19
|
+
</div>`
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
docs
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../lib/cn.js";
|
|
3
|
+
function Blockquote({
|
|
4
|
+
children,
|
|
5
|
+
className,
|
|
6
|
+
cite
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
"blockquote",
|
|
10
|
+
{
|
|
11
|
+
cite,
|
|
12
|
+
className: cn("border-l-2 border-brand pl-4 text-fg-muted", className),
|
|
13
|
+
children
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
Blockquote
|
|
19
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const docs = {
|
|
2
|
+
name: "BottomNav",
|
|
3
|
+
description: "Fixed full-width mobile navigation bar for primary viewport routing with active indicators and notification badges.",
|
|
4
|
+
features: [
|
|
5
|
+
"Fixed position pinned to bottom viewport (fixed bottom-0)",
|
|
6
|
+
"Backdrop blur translucent glassmorphism surface (bg-surface/95 backdrop-blur-md)",
|
|
7
|
+
"Active tab indicator pill bar",
|
|
8
|
+
"Supports notification count badge overlay on icon slots"
|
|
9
|
+
],
|
|
10
|
+
accessibility: [
|
|
11
|
+
"Native <nav aria-label='Bottom navigation'> element",
|
|
12
|
+
"Active tab item receives aria-current='page' semantics",
|
|
13
|
+
"Enforces minimum touch target size for mobile viewports"
|
|
14
|
+
],
|
|
15
|
+
keyboard: "Tab to cycle through navigation destination links, Enter to select",
|
|
16
|
+
usage: {
|
|
17
|
+
bestPractices: [
|
|
18
|
+
{
|
|
19
|
+
guidance: true,
|
|
20
|
+
description: "Use BottomNav for primary mobile application view navigation (3-5 top destinations)."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
guidance: false,
|
|
24
|
+
description: "Do not use BottomNav on desktop viewports \u2014 hide on sm/md breakpoints via CSS."
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
examples: [
|
|
29
|
+
{
|
|
30
|
+
title: "Mobile Bottom Navigation",
|
|
31
|
+
code: '<BottomNav items={[{ href: "/", label: "Home", active: true }, { href: "/search", label: "Search" }, { href: "/profile", label: "Profile", badge: 3 }]} />'
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
docs
|
|
37
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "../../lib/cn.js";
|
|
4
|
+
function BottomNav({
|
|
5
|
+
items,
|
|
6
|
+
onSelect,
|
|
7
|
+
className,
|
|
8
|
+
ariaLabel = "Bottom navigation",
|
|
9
|
+
...props
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
"nav",
|
|
13
|
+
{
|
|
14
|
+
"aria-label": ariaLabel,
|
|
15
|
+
className: cn(
|
|
16
|
+
"fixed bottom-0 left-0 right-0 z-40 flex h-16 w-full items-center justify-around border-t border-hairline bg-surface/95 px-2 backdrop-blur-md shadow-panel",
|
|
17
|
+
className
|
|
18
|
+
),
|
|
19
|
+
...props,
|
|
20
|
+
children: items.map((item) => {
|
|
21
|
+
const isActive = item.active;
|
|
22
|
+
return /* @__PURE__ */ jsxs(
|
|
23
|
+
"a",
|
|
24
|
+
{
|
|
25
|
+
href: item.href,
|
|
26
|
+
"aria-current": isActive ? "page" : void 0,
|
|
27
|
+
onClick: (e) => {
|
|
28
|
+
if (onSelect) {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
onSelect(item.href);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
className: cn(
|
|
34
|
+
"relative flex flex-1 flex-col items-center justify-center gap-1 py-1.5 text-[11px] font-medium transition cursor-pointer select-none",
|
|
35
|
+
isActive ? "text-brand-text font-semibold" : "text-fg-muted hover:text-fg"
|
|
36
|
+
),
|
|
37
|
+
children: [
|
|
38
|
+
item.icon && /* @__PURE__ */ jsxs("span", { className: cn("relative flex h-5 w-5 items-center justify-center shrink-0", isActive ? "text-brand-text" : "text-fg-subtle"), children: [
|
|
39
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "contents", children: item.icon }),
|
|
40
|
+
item.badge !== void 0 && /* @__PURE__ */ jsx("span", { className: "absolute -top-1 -right-2.5 flex h-4 min-w-[16px] items-center justify-center rounded-full bg-brand-solid px-1 text-[9px] font-bold text-brand-fg", children: item.badge })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ jsx("span", { className: "truncate max-w-[72px] text-center", children: item.label }),
|
|
43
|
+
isActive && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "absolute bottom-0 h-0.5 w-6 rounded-full bg-brand-solid" })
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
item.href
|
|
47
|
+
);
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
BottomNav
|
|
54
|
+
};
|