@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,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// tailwind-preset.ts
|
|
21
|
+
var tailwind_preset_exports = {};
|
|
22
|
+
__export(tailwind_preset_exports, {
|
|
23
|
+
default: () => tailwind_preset_default
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(tailwind_preset_exports);
|
|
26
|
+
var tok = (name) => `rgb(var(--${name}) / <alpha-value>)`;
|
|
27
|
+
var preset = {
|
|
28
|
+
darkMode: "class",
|
|
29
|
+
content: [],
|
|
30
|
+
theme: {
|
|
31
|
+
extend: {
|
|
32
|
+
fontFamily: {
|
|
33
|
+
display: ["var(--font-display)", '"Rethink Sans"', "sans-serif"],
|
|
34
|
+
subheading: ["var(--font-subheading, var(--font-body))", "ui-sans-serif", "system-ui", "sans-serif"],
|
|
35
|
+
sans: ["var(--font-body)", "ui-sans-serif", "system-ui", "sans-serif"]
|
|
36
|
+
},
|
|
37
|
+
colors: {
|
|
38
|
+
// semantic tokens (preferred) — see src/styles/global.css
|
|
39
|
+
canvas: tok("bg-canvas"),
|
|
40
|
+
surface: tok("bg-surface"),
|
|
41
|
+
"surface-hover": tok("bg-surface-hover"),
|
|
42
|
+
elevated: tok("bg-elevated"),
|
|
43
|
+
"elevated-hover": tok("bg-elevated-hover"),
|
|
44
|
+
hairline: tok("hairline"),
|
|
45
|
+
"hairline-strong": tok("hairline-strong"),
|
|
46
|
+
"border-control": tok("border-control"),
|
|
47
|
+
fg: tok("fg"),
|
|
48
|
+
"fg-muted": tok("fg-muted"),
|
|
49
|
+
"fg-subtle": tok("fg-subtle"),
|
|
50
|
+
brand: tok("brand"),
|
|
51
|
+
"brand-hover": tok("brand-hover"),
|
|
52
|
+
"brand-solid": tok("brand-solid"),
|
|
53
|
+
"brand-solid-hover": tok("brand-solid-hover"),
|
|
54
|
+
"brand-fg": tok("brand-fg"),
|
|
55
|
+
"brand-contrast": tok("brand-contrast"),
|
|
56
|
+
"brand-text": tok("brand-text"),
|
|
57
|
+
"brand-subtle": "rgb(var(--brand) / 0.12)",
|
|
58
|
+
"brand-subtle-hover": "rgb(var(--brand) / 0.18)",
|
|
59
|
+
success: tok("success"),
|
|
60
|
+
"success-fg": tok("success-fg"),
|
|
61
|
+
warning: tok("warning"),
|
|
62
|
+
"warning-fg": tok("warning-fg"),
|
|
63
|
+
danger: tok("danger"),
|
|
64
|
+
"danger-fg": tok("danger-fg"),
|
|
65
|
+
link: tok("link"),
|
|
66
|
+
tooltip: tok("bg-tooltip"),
|
|
67
|
+
"tooltip-fg": tok("fg-tooltip"),
|
|
68
|
+
// Internal code syntax utility tokens (for CodeBlock & syntax highlights)
|
|
69
|
+
"code-keyword": tok("code-keyword"),
|
|
70
|
+
"code-string": tok("code-string"),
|
|
71
|
+
"code-num": tok("code-number"),
|
|
72
|
+
"code-fn": tok("code-function"),
|
|
73
|
+
"code-comment": tok("code-comment"),
|
|
74
|
+
"code-punct": tok("code-punctuation"),
|
|
75
|
+
"code-prop": tok("code-property"),
|
|
76
|
+
"code-op": tok("code-operator"),
|
|
77
|
+
"code-type": tok("code-type"),
|
|
78
|
+
"code-tag": tok("code-tag"),
|
|
79
|
+
"code-attr": tok("code-attr")
|
|
80
|
+
},
|
|
81
|
+
boxShadow: {
|
|
82
|
+
// Floating-surface elevation. Both resolve to CSS vars themed per
|
|
83
|
+
// appearance in global.css — use `shadow-panel`/`shadow-modal`, never
|
|
84
|
+
// an inline `shadow-[...rgba(...)]` literal.
|
|
85
|
+
// Semantic roles (ride the elevation scale): card=resting,
|
|
86
|
+
// panel=floating, modal=blocking. Prefer these over raw numbers.
|
|
87
|
+
card: "var(--shadow-card)",
|
|
88
|
+
panel: "var(--shadow-panel)",
|
|
89
|
+
modal: "var(--shadow-modal)",
|
|
90
|
+
// Radix-style 6-step elevation scale → shadow-1 … shadow-6.
|
|
91
|
+
1: "var(--shadow-1)",
|
|
92
|
+
2: "var(--shadow-2)",
|
|
93
|
+
3: "var(--shadow-3)",
|
|
94
|
+
4: "var(--shadow-4)",
|
|
95
|
+
5: "var(--shadow-5)",
|
|
96
|
+
6: "var(--shadow-6)"
|
|
97
|
+
},
|
|
98
|
+
maxWidth: {
|
|
99
|
+
// Extends Tailwind's default scale with an 88rem step (1408px) for
|
|
100
|
+
// wide-page layouts. All consumer apps get this via the preset —
|
|
101
|
+
// no manual config or arbitrary values needed.
|
|
102
|
+
// Standard scale (unchanged): xs 20rem … 7xl 80rem.
|
|
103
|
+
"8xl": "88rem"
|
|
104
|
+
},
|
|
105
|
+
borderRadius: {
|
|
106
|
+
panel: "var(--radius-panel)",
|
|
107
|
+
"panel-inner": "var(--radius-panel-inner)",
|
|
108
|
+
"panel-p1": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 0.25rem))",
|
|
109
|
+
"panel-p2": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 0.5rem))",
|
|
110
|
+
"panel-p3": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 0.75rem))",
|
|
111
|
+
"panel-p4": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 1rem))",
|
|
112
|
+
"panel-p5": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 1.25rem))",
|
|
113
|
+
"panel-p6": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 1.5rem))",
|
|
114
|
+
"panel-p8": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 2rem))",
|
|
115
|
+
// One step inside a control track (SegmentedControl thumb and items, track padding p-0.5/p-1):
|
|
116
|
+
// R_inner = max(radius-lg / 2, radius-lg - 0.25rem). Pill at the "full" preset, 0 at "none".
|
|
117
|
+
"control-inner": "max(calc(var(--radius-lg) / 2), calc(var(--radius-lg) - 0.25rem))"
|
|
118
|
+
},
|
|
119
|
+
// Motion foundation tokens — semantic animation utilities (.animate-*)
|
|
120
|
+
// in global.css bundle these with durations & keyframes. Expose them here
|
|
121
|
+
// so consumers can also use `ease-out`, `ease-in-out`, `ease-drawer` as
|
|
122
|
+
// Tailwind transition-timing-function utilities instead of browser defaults.
|
|
123
|
+
transitionTimingFunction: {
|
|
124
|
+
out: "var(--ease-out)",
|
|
125
|
+
"in-out": "var(--ease-in-out)",
|
|
126
|
+
drawer: "var(--ease-drawer)"
|
|
127
|
+
},
|
|
128
|
+
// Motion duration tokens — pair with ease-* above. Use `duration-*`
|
|
129
|
+
// utilities (e.g. `duration-base`) instead of hardcoded ms values.
|
|
130
|
+
// All collapse to 0ms under prefers-reduced-motion (see global.css).
|
|
131
|
+
transitionDuration: {
|
|
132
|
+
instant: "var(--dur-instant)",
|
|
133
|
+
fast: "var(--dur-fast)",
|
|
134
|
+
base: "var(--dur-base)",
|
|
135
|
+
slow: "var(--dur-slow)",
|
|
136
|
+
enter: "var(--dur-enter)"
|
|
137
|
+
},
|
|
138
|
+
// Entrance travel distances — used in entrance presets & parallax.
|
|
139
|
+
// Collapse to 0px under reduced-motion so nothing shifts position.
|
|
140
|
+
distance: {
|
|
141
|
+
xs: "var(--dist-xs)",
|
|
142
|
+
sm: "var(--dist-sm)",
|
|
143
|
+
md: "var(--dist-md)",
|
|
144
|
+
lg: "var(--dist-lg)"
|
|
145
|
+
},
|
|
146
|
+
// Stagger interval between sequentially revealed elements.
|
|
147
|
+
stagger: {
|
|
148
|
+
DEFAULT: "var(--stagger)"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
plugins: []
|
|
153
|
+
};
|
|
154
|
+
var tailwind_preset_default = preset;
|
|
155
|
+
module.exports = module.exports.default;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Tailwind preset for the Shavin design system. Consuming apps
|
|
3
|
+
* (frontend, playground, future products) extend this via `presets: [preset]`
|
|
4
|
+
* so every app resolves the same semantic color/font tokens defined in
|
|
5
|
+
* `src/styles/global.css`. Never add raw hex/rgb values here — only wire up
|
|
6
|
+
* new `--var` names that also exist in that CSS file.
|
|
7
|
+
*/
|
|
8
|
+
declare const preset: {
|
|
9
|
+
darkMode: "class";
|
|
10
|
+
content: never[];
|
|
11
|
+
theme: {
|
|
12
|
+
extend: {
|
|
13
|
+
fontFamily: {
|
|
14
|
+
display: [string, string, string];
|
|
15
|
+
subheading: [string, string, string, string];
|
|
16
|
+
sans: [string, string, string, string];
|
|
17
|
+
};
|
|
18
|
+
colors: {
|
|
19
|
+
canvas: string;
|
|
20
|
+
surface: string;
|
|
21
|
+
"surface-hover": string;
|
|
22
|
+
elevated: string;
|
|
23
|
+
"elevated-hover": string;
|
|
24
|
+
hairline: string;
|
|
25
|
+
"hairline-strong": string;
|
|
26
|
+
"border-control": string;
|
|
27
|
+
fg: string;
|
|
28
|
+
"fg-muted": string;
|
|
29
|
+
"fg-subtle": string;
|
|
30
|
+
brand: string;
|
|
31
|
+
"brand-hover": string;
|
|
32
|
+
"brand-solid": string;
|
|
33
|
+
"brand-solid-hover": string;
|
|
34
|
+
"brand-fg": string;
|
|
35
|
+
"brand-contrast": string;
|
|
36
|
+
"brand-text": string;
|
|
37
|
+
"brand-subtle": string;
|
|
38
|
+
"brand-subtle-hover": string;
|
|
39
|
+
success: string;
|
|
40
|
+
"success-fg": string;
|
|
41
|
+
warning: string;
|
|
42
|
+
"warning-fg": string;
|
|
43
|
+
danger: string;
|
|
44
|
+
"danger-fg": string;
|
|
45
|
+
link: string;
|
|
46
|
+
tooltip: string;
|
|
47
|
+
"tooltip-fg": string;
|
|
48
|
+
"code-keyword": string;
|
|
49
|
+
"code-string": string;
|
|
50
|
+
"code-num": string;
|
|
51
|
+
"code-fn": string;
|
|
52
|
+
"code-comment": string;
|
|
53
|
+
"code-punct": string;
|
|
54
|
+
"code-prop": string;
|
|
55
|
+
"code-op": string;
|
|
56
|
+
"code-type": string;
|
|
57
|
+
"code-tag": string;
|
|
58
|
+
"code-attr": string;
|
|
59
|
+
};
|
|
60
|
+
boxShadow: {
|
|
61
|
+
card: string;
|
|
62
|
+
panel: string;
|
|
63
|
+
modal: string;
|
|
64
|
+
1: string;
|
|
65
|
+
2: string;
|
|
66
|
+
3: string;
|
|
67
|
+
4: string;
|
|
68
|
+
5: string;
|
|
69
|
+
6: string;
|
|
70
|
+
};
|
|
71
|
+
maxWidth: {
|
|
72
|
+
"8xl": string;
|
|
73
|
+
};
|
|
74
|
+
borderRadius: {
|
|
75
|
+
panel: string;
|
|
76
|
+
"panel-inner": string;
|
|
77
|
+
"panel-p1": string;
|
|
78
|
+
"panel-p2": string;
|
|
79
|
+
"panel-p3": string;
|
|
80
|
+
"panel-p4": string;
|
|
81
|
+
"panel-p5": string;
|
|
82
|
+
"panel-p6": string;
|
|
83
|
+
"panel-p8": string;
|
|
84
|
+
"control-inner": string;
|
|
85
|
+
};
|
|
86
|
+
transitionTimingFunction: {
|
|
87
|
+
out: string;
|
|
88
|
+
"in-out": string;
|
|
89
|
+
drawer: string;
|
|
90
|
+
};
|
|
91
|
+
transitionDuration: {
|
|
92
|
+
instant: string;
|
|
93
|
+
fast: string;
|
|
94
|
+
base: string;
|
|
95
|
+
slow: string;
|
|
96
|
+
enter: string;
|
|
97
|
+
};
|
|
98
|
+
distance: {
|
|
99
|
+
xs: string;
|
|
100
|
+
sm: string;
|
|
101
|
+
md: string;
|
|
102
|
+
lg: string;
|
|
103
|
+
};
|
|
104
|
+
stagger: {
|
|
105
|
+
DEFAULT: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
plugins: never[];
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export { preset as default };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
// tailwind-preset.ts
|
|
2
|
+
var tok = (name) => `rgb(var(--${name}) / <alpha-value>)`;
|
|
3
|
+
var preset = {
|
|
4
|
+
darkMode: "class",
|
|
5
|
+
content: [],
|
|
6
|
+
theme: {
|
|
7
|
+
extend: {
|
|
8
|
+
fontFamily: {
|
|
9
|
+
display: ["var(--font-display)", '"Rethink Sans"', "sans-serif"],
|
|
10
|
+
subheading: ["var(--font-subheading, var(--font-body))", "ui-sans-serif", "system-ui", "sans-serif"],
|
|
11
|
+
sans: ["var(--font-body)", "ui-sans-serif", "system-ui", "sans-serif"]
|
|
12
|
+
},
|
|
13
|
+
colors: {
|
|
14
|
+
// semantic tokens (preferred) — see src/styles/global.css
|
|
15
|
+
canvas: tok("bg-canvas"),
|
|
16
|
+
surface: tok("bg-surface"),
|
|
17
|
+
"surface-hover": tok("bg-surface-hover"),
|
|
18
|
+
elevated: tok("bg-elevated"),
|
|
19
|
+
"elevated-hover": tok("bg-elevated-hover"),
|
|
20
|
+
hairline: tok("hairline"),
|
|
21
|
+
"hairline-strong": tok("hairline-strong"),
|
|
22
|
+
"border-control": tok("border-control"),
|
|
23
|
+
fg: tok("fg"),
|
|
24
|
+
"fg-muted": tok("fg-muted"),
|
|
25
|
+
"fg-subtle": tok("fg-subtle"),
|
|
26
|
+
brand: tok("brand"),
|
|
27
|
+
"brand-hover": tok("brand-hover"),
|
|
28
|
+
"brand-solid": tok("brand-solid"),
|
|
29
|
+
"brand-solid-hover": tok("brand-solid-hover"),
|
|
30
|
+
"brand-fg": tok("brand-fg"),
|
|
31
|
+
"brand-contrast": tok("brand-contrast"),
|
|
32
|
+
"brand-text": tok("brand-text"),
|
|
33
|
+
"brand-subtle": "rgb(var(--brand) / 0.12)",
|
|
34
|
+
"brand-subtle-hover": "rgb(var(--brand) / 0.18)",
|
|
35
|
+
success: tok("success"),
|
|
36
|
+
"success-fg": tok("success-fg"),
|
|
37
|
+
warning: tok("warning"),
|
|
38
|
+
"warning-fg": tok("warning-fg"),
|
|
39
|
+
danger: tok("danger"),
|
|
40
|
+
"danger-fg": tok("danger-fg"),
|
|
41
|
+
link: tok("link"),
|
|
42
|
+
tooltip: tok("bg-tooltip"),
|
|
43
|
+
"tooltip-fg": tok("fg-tooltip"),
|
|
44
|
+
// Internal code syntax utility tokens (for CodeBlock & syntax highlights)
|
|
45
|
+
"code-keyword": tok("code-keyword"),
|
|
46
|
+
"code-string": tok("code-string"),
|
|
47
|
+
"code-num": tok("code-number"),
|
|
48
|
+
"code-fn": tok("code-function"),
|
|
49
|
+
"code-comment": tok("code-comment"),
|
|
50
|
+
"code-punct": tok("code-punctuation"),
|
|
51
|
+
"code-prop": tok("code-property"),
|
|
52
|
+
"code-op": tok("code-operator"),
|
|
53
|
+
"code-type": tok("code-type"),
|
|
54
|
+
"code-tag": tok("code-tag"),
|
|
55
|
+
"code-attr": tok("code-attr")
|
|
56
|
+
},
|
|
57
|
+
boxShadow: {
|
|
58
|
+
// Floating-surface elevation. Both resolve to CSS vars themed per
|
|
59
|
+
// appearance in global.css — use `shadow-panel`/`shadow-modal`, never
|
|
60
|
+
// an inline `shadow-[...rgba(...)]` literal.
|
|
61
|
+
// Semantic roles (ride the elevation scale): card=resting,
|
|
62
|
+
// panel=floating, modal=blocking. Prefer these over raw numbers.
|
|
63
|
+
card: "var(--shadow-card)",
|
|
64
|
+
panel: "var(--shadow-panel)",
|
|
65
|
+
modal: "var(--shadow-modal)",
|
|
66
|
+
// Radix-style 6-step elevation scale → shadow-1 … shadow-6.
|
|
67
|
+
1: "var(--shadow-1)",
|
|
68
|
+
2: "var(--shadow-2)",
|
|
69
|
+
3: "var(--shadow-3)",
|
|
70
|
+
4: "var(--shadow-4)",
|
|
71
|
+
5: "var(--shadow-5)",
|
|
72
|
+
6: "var(--shadow-6)"
|
|
73
|
+
},
|
|
74
|
+
maxWidth: {
|
|
75
|
+
// Extends Tailwind's default scale with an 88rem step (1408px) for
|
|
76
|
+
// wide-page layouts. All consumer apps get this via the preset —
|
|
77
|
+
// no manual config or arbitrary values needed.
|
|
78
|
+
// Standard scale (unchanged): xs 20rem … 7xl 80rem.
|
|
79
|
+
"8xl": "88rem"
|
|
80
|
+
},
|
|
81
|
+
borderRadius: {
|
|
82
|
+
panel: "var(--radius-panel)",
|
|
83
|
+
"panel-inner": "var(--radius-panel-inner)",
|
|
84
|
+
"panel-p1": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 0.25rem))",
|
|
85
|
+
"panel-p2": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 0.5rem))",
|
|
86
|
+
"panel-p3": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 0.75rem))",
|
|
87
|
+
"panel-p4": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 1rem))",
|
|
88
|
+
"panel-p5": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 1.25rem))",
|
|
89
|
+
"panel-p6": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 1.5rem))",
|
|
90
|
+
"panel-p8": "max(min(var(--radius-lg), calc(var(--radius-panel) / 2)), calc(var(--radius-panel) - 2rem))",
|
|
91
|
+
// One step inside a control track (SegmentedControl thumb and items, track padding p-0.5/p-1):
|
|
92
|
+
// R_inner = max(radius-lg / 2, radius-lg - 0.25rem). Pill at the "full" preset, 0 at "none".
|
|
93
|
+
"control-inner": "max(calc(var(--radius-lg) / 2), calc(var(--radius-lg) - 0.25rem))"
|
|
94
|
+
},
|
|
95
|
+
// Motion foundation tokens — semantic animation utilities (.animate-*)
|
|
96
|
+
// in global.css bundle these with durations & keyframes. Expose them here
|
|
97
|
+
// so consumers can also use `ease-out`, `ease-in-out`, `ease-drawer` as
|
|
98
|
+
// Tailwind transition-timing-function utilities instead of browser defaults.
|
|
99
|
+
transitionTimingFunction: {
|
|
100
|
+
out: "var(--ease-out)",
|
|
101
|
+
"in-out": "var(--ease-in-out)",
|
|
102
|
+
drawer: "var(--ease-drawer)"
|
|
103
|
+
},
|
|
104
|
+
// Motion duration tokens — pair with ease-* above. Use `duration-*`
|
|
105
|
+
// utilities (e.g. `duration-base`) instead of hardcoded ms values.
|
|
106
|
+
// All collapse to 0ms under prefers-reduced-motion (see global.css).
|
|
107
|
+
transitionDuration: {
|
|
108
|
+
instant: "var(--dur-instant)",
|
|
109
|
+
fast: "var(--dur-fast)",
|
|
110
|
+
base: "var(--dur-base)",
|
|
111
|
+
slow: "var(--dur-slow)",
|
|
112
|
+
enter: "var(--dur-enter)"
|
|
113
|
+
},
|
|
114
|
+
// Entrance travel distances — used in entrance presets & parallax.
|
|
115
|
+
// Collapse to 0px under reduced-motion so nothing shifts position.
|
|
116
|
+
distance: {
|
|
117
|
+
xs: "var(--dist-xs)",
|
|
118
|
+
sm: "var(--dist-sm)",
|
|
119
|
+
md: "var(--dist-md)",
|
|
120
|
+
lg: "var(--dist-lg)"
|
|
121
|
+
},
|
|
122
|
+
// Stagger interval between sequentially revealed elements.
|
|
123
|
+
stagger: {
|
|
124
|
+
DEFAULT: "var(--stagger)"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
plugins: []
|
|
129
|
+
};
|
|
130
|
+
var tailwind_preset_default = preset;
|
|
131
|
+
export {
|
|
132
|
+
tailwind_preset_default as default
|
|
133
|
+
};
|