@zonsh/ui 0.0.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +43 -0
- package/README.md +81 -1
- package/assets/illustrations/drawing/bracket-construction-dark.svg +77 -0
- package/assets/illustrations/drawing/bracket-construction-filled-dark.svg +50 -0
- package/assets/illustrations/drawing/bracket-construction-filled.svg +50 -0
- package/assets/illustrations/drawing/bracket-construction.svg +77 -0
- package/assets/illustrations/drawing/crescent-dark.svg +28 -0
- package/assets/illustrations/drawing/crescent-guides-dark.svg +33 -0
- package/assets/illustrations/drawing/crescent-guides.svg +33 -0
- package/assets/illustrations/drawing/crescent.svg +28 -0
- package/assets/illustrations/drawing/eclipse-dark.svg +187 -0
- package/assets/illustrations/drawing/eclipse-guides-dark.svg +191 -0
- package/assets/illustrations/drawing/eclipse-guides.svg +191 -0
- package/assets/illustrations/drawing/eclipse.svg +187 -0
- package/assets/illustrations/drawing/elevation-guides-dark.svg +31 -0
- package/assets/illustrations/drawing/elevation-guides-plain-dark.svg +9 -0
- package/assets/illustrations/drawing/elevation-guides-plain.svg +9 -0
- package/assets/illustrations/drawing/elevation-guides.svg +31 -0
- package/assets/illustrations/drawing/horizon-dark.svg +30 -0
- package/assets/illustrations/drawing/horizon.svg +30 -0
- package/assets/illustrations/drawing/nib-study-dark.svg +107 -0
- package/assets/illustrations/drawing/nib-study-plain-dark.svg +93 -0
- package/assets/illustrations/drawing/nib-study-plain.svg +93 -0
- package/assets/illustrations/drawing/nib-study.svg +107 -0
- package/assets/illustrations/editorial/assistant-640.webp +0 -0
- package/assets/illustrations/editorial/assistant.webp +0 -0
- package/assets/illustrations/editorial/automation-640.webp +0 -0
- package/assets/illustrations/editorial/automation.webp +0 -0
- package/assets/illustrations/editorial/bracket-left-640.webp +0 -0
- package/assets/illustrations/editorial/bracket-left.webp +0 -0
- package/assets/illustrations/editorial/bracket-right-640.webp +0 -0
- package/assets/illustrations/editorial/bracket-right.webp +0 -0
- package/assets/illustrations/editorial/custom-software-640.webp +0 -0
- package/assets/illustrations/editorial/custom-software.webp +0 -0
- package/assets/illustrations/editorial/digitalization-640.webp +0 -0
- package/assets/illustrations/editorial/digitalization.webp +0 -0
- package/assets/illustrations/editorial/integration-640.webp +0 -0
- package/assets/illustrations/editorial/integration.webp +0 -0
- package/assets/illustrations/editorial/problem-640.webp +0 -0
- package/assets/illustrations/editorial/problem.webp +0 -0
- package/assets/illustrations/editorial/process-analysis-640.webp +0 -0
- package/assets/illustrations/editorial/process-analysis.webp +0 -0
- package/assets/illustrations/editorial/process-concept-640.webp +0 -0
- package/assets/illustrations/editorial/process-concept.webp +0 -0
- package/assets/illustrations/editorial/process-development-640.webp +0 -0
- package/assets/illustrations/editorial/process-development.webp +0 -0
- package/assets/illustrations/editorial/process-discovery-640.webp +0 -0
- package/assets/illustrations/editorial/process-discovery.webp +0 -0
- package/assets/illustrations/editorial/process-maintenance-640.webp +0 -0
- package/assets/illustrations/editorial/process-maintenance.webp +0 -0
- package/assets/illustrations/editorial/process-prototype-640.webp +0 -0
- package/assets/illustrations/editorial/process-prototype.webp +0 -0
- package/assets/illustrations/editorial/process-testing-640.webp +0 -0
- package/assets/illustrations/editorial/process-testing.webp +0 -0
- package/assets/illustrations/iso/automation-dark.svg +6 -0
- package/assets/illustrations/iso/automation.svg +6 -0
- package/assets/illustrations/iso/bar-chart-dark.svg +6 -0
- package/assets/illustrations/iso/bar-chart.svg +6 -0
- package/assets/illustrations/iso/brackets-classic-dark.svg +6 -0
- package/assets/illustrations/iso/brackets-classic.svg +6 -0
- package/assets/illustrations/iso/brackets-dark.svg +6 -0
- package/assets/illustrations/iso/brackets.svg +6 -0
- package/assets/illustrations/iso/city-dark.svg +6 -0
- package/assets/illustrations/iso/city.svg +6 -0
- package/assets/illustrations/iso/conveyor-dark.svg +6 -0
- package/assets/illustrations/iso/conveyor.svg +6 -0
- package/assets/illustrations/iso/database-dark.svg +6 -0
- package/assets/illustrations/iso/database.svg +6 -0
- package/assets/illustrations/iso/documents-dark.svg +6 -0
- package/assets/illustrations/iso/documents.svg +6 -0
- package/assets/illustrations/iso/inbox-dark.svg +6 -0
- package/assets/illustrations/iso/inbox.svg +6 -0
- package/assets/illustrations/iso/laptop-dark.svg +6 -0
- package/assets/illustrations/iso/laptop.svg +6 -0
- package/assets/illustrations/iso/monitor-dark.svg +6 -0
- package/assets/illustrations/iso/monitor.svg +6 -0
- package/assets/illustrations/iso/pipeline-dark.svg +6 -0
- package/assets/illustrations/iso/pipeline.svg +6 -0
- package/assets/illustrations/iso/platform-dark.svg +6 -0
- package/assets/illustrations/iso/platform.svg +6 -0
- package/assets/illustrations/iso/server-dark.svg +6 -0
- package/assets/illustrations/iso/server.svg +6 -0
- package/assets/illustrations/iso/spreadsheet-dark.svg +6 -0
- package/assets/illustrations/iso/spreadsheet.svg +6 -0
- package/assets/illustrations/iso/timeline-dark.svg +6 -0
- package/assets/illustrations/iso/timeline.svg +6 -0
- package/assets/illustrations/sheet/construction.svg +115 -0
- package/assets/illustrations/sheet/crescent.svg +40 -0
- package/assets/illustrations/sheet/limb.svg +42 -0
- package/assets/illustrations/sheet/stress-axis.svg +119 -0
- package/assets/illustrations/sheet/totality.svg +215 -0
- package/assets/illustrations/sheet/vertical-metrics.svg +43 -0
- package/assets/logo-left.svg +1 -0
- package/assets/logo-right.svg +1 -0
- package/assets/logo.svg +1 -0
- package/dist/components/_overlay.d.ts +47 -0
- package/dist/components/_overlay.js +59 -0
- package/dist/components/accordion.d.ts +32 -0
- package/dist/components/accordion.js +39 -0
- package/dist/components/alert-dialog.d.ts +45 -0
- package/dist/components/alert-dialog.js +56 -0
- package/dist/components/alert.d.ts +35 -0
- package/dist/components/alert.js +42 -0
- package/dist/components/ascii-field.d.ts +34 -0
- package/dist/components/ascii-field.js +410 -0
- package/dist/components/aspect-ratio.d.ts +14 -0
- package/dist/components/aspect-ratio.js +17 -0
- package/dist/components/avatar.d.ts +42 -0
- package/dist/components/avatar.js +55 -0
- package/dist/components/badge.d.ts +70 -0
- package/dist/components/badge.js +62 -0
- package/dist/components/bottom-nav.d.ts +86 -0
- package/dist/components/bottom-nav.js +175 -0
- package/dist/components/breadcrumb.d.ts +31 -0
- package/dist/components/breadcrumb.js +37 -0
- package/dist/components/button-group.d.ts +30 -0
- package/dist/components/button-group.js +47 -0
- package/dist/components/button.d.ts +53 -0
- package/dist/components/button.js +130 -0
- package/dist/components/calendar.d.ts +26 -0
- package/dist/components/calendar.js +179 -0
- package/dist/components/card.d.ts +42 -0
- package/dist/components/card.js +76 -0
- package/dist/components/carousel.d.ts +109 -0
- package/dist/components/carousel.js +231 -0
- package/dist/components/chart.d.ts +189 -0
- package/dist/components/chart.js +323 -0
- package/dist/components/checkbox.d.ts +23 -0
- package/dist/components/checkbox.js +43 -0
- package/dist/components/code-block.d.ts +55 -0
- package/dist/components/code-block.js +100 -0
- package/dist/components/collapsible.d.ts +20 -0
- package/dist/components/collapsible.js +32 -0
- package/dist/components/color-picker.d.ts +107 -0
- package/dist/components/color-picker.js +428 -0
- package/dist/components/combobox.d.ts +99 -0
- package/dist/components/combobox.js +172 -0
- package/dist/components/command.d.ts +132 -0
- package/dist/components/command.js +257 -0
- package/dist/components/context-menu.d.ts +29 -0
- package/dist/components/context-menu.js +35 -0
- package/dist/components/conversation.d.ts +36 -0
- package/dist/components/conversation.js +303 -0
- package/dist/components/copy-button.d.ts +55 -0
- package/dist/components/copy-button.js +133 -0
- package/dist/components/data-table.d.ts +235 -0
- package/dist/components/data-table.js +655 -0
- package/dist/components/date-picker.d.ts +160 -0
- package/dist/components/date-picker.js +338 -0
- package/dist/components/dialog.d.ts +57 -0
- package/dist/components/dialog.js +95 -0
- package/dist/components/direction.d.ts +16 -0
- package/dist/components/direction.js +18 -0
- package/dist/components/drawer.d.ts +69 -0
- package/dist/components/drawer.js +79 -0
- package/dist/components/empty.d.ts +31 -0
- package/dist/components/empty.js +50 -0
- package/dist/components/feature-list.d.ts +54 -0
- package/dist/components/feature-list.js +43 -0
- package/dist/components/field.d.ts +34 -0
- package/dist/components/field.js +81 -0
- package/dist/components/file-drop.d.ts +77 -0
- package/dist/components/file-drop.js +258 -0
- package/dist/components/filter-bar.d.ts +153 -0
- package/dist/components/filter-bar.js +334 -0
- package/dist/components/form.d.ts +35 -0
- package/dist/components/form.js +56 -0
- package/dist/components/graph.d.ts +146 -0
- package/dist/components/graph.js +825 -0
- package/dist/components/illustration.d.ts +85 -0
- package/dist/components/illustration.js +165 -0
- package/dist/components/input-group.d.ts +138 -0
- package/dist/components/input-group.js +312 -0
- package/dist/components/input.d.ts +16 -0
- package/dist/components/input.js +25 -0
- package/dist/components/item.d.ts +64 -0
- package/dist/components/item.js +116 -0
- package/dist/components/kbd.d.ts +50 -0
- package/dist/components/kbd.js +45 -0
- package/dist/components/label.d.ts +12 -0
- package/dist/components/label.js +24 -0
- package/dist/components/layout.d.ts +136 -0
- package/dist/components/layout.js +162 -0
- package/dist/components/lightbox.d.ts +100 -0
- package/dist/components/lightbox.js +439 -0
- package/dist/components/locale.d.ts +44 -0
- package/dist/components/locale.js +37 -0
- package/dist/components/logo.d.ts +54 -0
- package/dist/components/logo.js +96 -0
- package/dist/components/menu.d.ts +60 -0
- package/dist/components/menu.js +140 -0
- package/dist/components/menubar.d.ts +62 -0
- package/dist/components/menubar.js +223 -0
- package/dist/components/message.d.ts +42 -0
- package/dist/components/message.js +59 -0
- package/dist/components/meter.d.ts +31 -0
- package/dist/components/meter.js +27 -0
- package/dist/components/money-input.d.ts +80 -0
- package/dist/components/money-input.js +253 -0
- package/dist/components/native-select.d.ts +26 -0
- package/dist/components/native-select.js +35 -0
- package/dist/components/navigation-menu.d.ts +42 -0
- package/dist/components/navigation-menu.js +97 -0
- package/dist/components/number-field.d.ts +55 -0
- package/dist/components/number-field.js +164 -0
- package/dist/components/otp-field.d.ts +48 -0
- package/dist/components/otp-field.js +102 -0
- package/dist/components/pagination.d.ts +37 -0
- package/dist/components/pagination.js +81 -0
- package/dist/components/pdf-viewer.d.ts +134 -0
- package/dist/components/pdf-viewer.js +996 -0
- package/dist/components/phone-input.d.ts +79 -0
- package/dist/components/phone-input.js +282 -0
- package/dist/components/popover.d.ts +33 -0
- package/dist/components/popover.js +48 -0
- package/dist/components/preview-card.d.ts +25 -0
- package/dist/components/preview-card.js +22 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +25 -0
- package/dist/components/prompt-input.d.ts +156 -0
- package/dist/components/prompt-input.js +415 -0
- package/dist/components/quote.d.ts +22 -0
- package/dist/components/quote.js +15 -0
- package/dist/components/radio-group.d.ts +18 -0
- package/dist/components/radio-group.js +34 -0
- package/dist/components/rating.d.ts +73 -0
- package/dist/components/rating.js +124 -0
- package/dist/components/reasoning.d.ts +46 -0
- package/dist/components/reasoning.js +73 -0
- package/dist/components/resizable.d.ts +47 -0
- package/dist/components/resizable.js +44 -0
- package/dist/components/response.d.ts +41 -0
- package/dist/components/response.js +566 -0
- package/dist/components/scroll-area.d.ts +33 -0
- package/dist/components/scroll-area.js +31 -0
- package/dist/components/select.d.ts +35 -0
- package/dist/components/select.js +71 -0
- package/dist/components/separator.d.ts +14 -0
- package/dist/components/separator.js +17 -0
- package/dist/components/sidebar.d.ts +163 -0
- package/dist/components/sidebar.js +505 -0
- package/dist/components/site-header.d.ts +93 -0
- package/dist/components/site-header.js +121 -0
- package/dist/components/skeleton.d.ts +31 -0
- package/dist/components/skeleton.js +29 -0
- package/dist/components/slider.d.ts +24 -0
- package/dist/components/slider.js +131 -0
- package/dist/components/sortable.d.ts +178 -0
- package/dist/components/sortable.js +1258 -0
- package/dist/components/sources.d.ts +40 -0
- package/dist/components/sources.js +42 -0
- package/dist/components/spinner.d.ts +48 -0
- package/dist/components/spinner.js +75 -0
- package/dist/components/stat.d.ts +91 -0
- package/dist/components/stat.js +141 -0
- package/dist/components/stepper.d.ts +71 -0
- package/dist/components/stepper.js +101 -0
- package/dist/components/suggestions.d.ts +20 -0
- package/dist/components/suggestions.js +18 -0
- package/dist/components/switch.d.ts +14 -0
- package/dist/components/switch.js +26 -0
- package/dist/components/table.d.ts +172 -0
- package/dist/components/table.js +895 -0
- package/dist/components/tabs.d.ts +25 -0
- package/dist/components/tabs.js +162 -0
- package/dist/components/tag.d.ts +41 -0
- package/dist/components/tag.js +88 -0
- package/dist/components/tags-input.d.ts +56 -0
- package/dist/components/tags-input.js +271 -0
- package/dist/components/textarea.d.ts +13 -0
- package/dist/components/textarea.js +16 -0
- package/dist/components/theme.d.ts +55 -0
- package/dist/components/theme.js +120 -0
- package/dist/components/time-field.d.ts +70 -0
- package/dist/components/time-field.js +450 -0
- package/dist/components/timeline.d.ts +92 -0
- package/dist/components/timeline.js +108 -0
- package/dist/components/tippy.d.ts +48 -0
- package/dist/components/tippy.js +648 -0
- package/dist/components/toast.d.ts +88 -0
- package/dist/components/toast.js +205 -0
- package/dist/components/toggle-group.d.ts +41 -0
- package/dist/components/toggle-group.js +140 -0
- package/dist/components/toggle.d.ts +23 -0
- package/dist/components/toggle.js +35 -0
- package/dist/components/tool-call.d.ts +63 -0
- package/dist/components/tool-call.js +68 -0
- package/dist/components/toolbar.d.ts +17 -0
- package/dist/components/toolbar.js +39 -0
- package/dist/components/tooltip.d.ts +42 -0
- package/dist/components/tooltip.js +47 -0
- package/dist/components/tour.d.ts +127 -0
- package/dist/components/tour.js +648 -0
- package/dist/components/tree.d.ts +75 -0
- package/dist/components/tree.js +649 -0
- package/dist/components/typography.d.ts +134 -0
- package/dist/components/typography.js +176 -0
- package/dist/components/video-player.d.ts +284 -0
- package/dist/components/video-player.js +1392 -0
- package/dist/illustration.d.ts +2 -0
- package/dist/illustration.js +7 -0
- package/dist/index.d.ts +93 -0
- package/dist/index.js +94 -0
- package/dist/lib/cn.d.ts +20 -0
- package/dist/lib/cn.js +38 -0
- package/dist/lib/code-highlight.d.ts +18 -0
- package/dist/lib/code-highlight.js +174 -0
- package/dist/lib/code-theme.d.ts +19 -0
- package/dist/lib/code-theme.js +140 -0
- package/dist/lib/collapse-row.d.ts +9 -0
- package/dist/lib/collapse-row.js +129 -0
- package/dist/lib/digit-roll.d.ts +21 -0
- package/dist/lib/digit-roll.js +31 -0
- package/dist/lib/editorial-assets.d.ts +16 -0
- package/dist/lib/editorial-assets.js +56 -0
- package/dist/lib/field-errors.d.ts +28 -0
- package/dist/lib/field-errors.js +24 -0
- package/dist/lib/field-value.d.ts +13 -0
- package/dist/lib/field-value.js +44 -0
- package/dist/lib/figure/catalog.d.ts +127 -0
- package/dist/lib/figure/catalog.js +130 -0
- package/dist/lib/figure/figures/automation.d.ts +7 -0
- package/dist/lib/figure/figures/automation.js +143 -0
- package/dist/lib/figure/figures/bar-chart.d.ts +7 -0
- package/dist/lib/figure/figures/bar-chart.js +99 -0
- package/dist/lib/figure/figures/brackets-classic.d.ts +11 -0
- package/dist/lib/figure/figures/brackets-classic.js +170 -0
- package/dist/lib/figure/figures/brackets.d.ts +8 -0
- package/dist/lib/figure/figures/brackets.js +84 -0
- package/dist/lib/figure/figures/city.d.ts +7 -0
- package/dist/lib/figure/figures/city.js +93 -0
- package/dist/lib/figure/figures/conveyor.d.ts +7 -0
- package/dist/lib/figure/figures/conveyor.js +97 -0
- package/dist/lib/figure/figures/database.d.ts +7 -0
- package/dist/lib/figure/figures/database.js +65 -0
- package/dist/lib/figure/figures/documents.d.ts +7 -0
- package/dist/lib/figure/figures/documents.js +83 -0
- package/dist/lib/figure/figures/inbox.d.ts +7 -0
- package/dist/lib/figure/figures/inbox.js +92 -0
- package/dist/lib/figure/figures/laptop.d.ts +7 -0
- package/dist/lib/figure/figures/laptop.js +67 -0
- package/dist/lib/figure/figures/monitor.d.ts +7 -0
- package/dist/lib/figure/figures/monitor.js +59 -0
- package/dist/lib/figure/figures/pipeline.d.ts +8 -0
- package/dist/lib/figure/figures/pipeline.js +117 -0
- package/dist/lib/figure/figures/platform.d.ts +7 -0
- package/dist/lib/figure/figures/platform.js +117 -0
- package/dist/lib/figure/figures/server.d.ts +7 -0
- package/dist/lib/figure/figures/server.js +115 -0
- package/dist/lib/figure/figures/spreadsheet.d.ts +7 -0
- package/dist/lib/figure/figures/spreadsheet.js +87 -0
- package/dist/lib/figure/figures/timeline.d.ts +7 -0
- package/dist/lib/figure/figures/timeline.js +65 -0
- package/dist/lib/figure/kernel.d.ts +152 -0
- package/dist/lib/figure/kernel.js +576 -0
- package/dist/lib/figure/parts.d.ts +42 -0
- package/dist/lib/figure/parts.js +126 -0
- package/dist/lib/form-reset.d.ts +11 -0
- package/dist/lib/form-reset.js +22 -0
- package/dist/lib/glide.d.ts +53 -0
- package/dist/lib/glide.js +138 -0
- package/dist/lib/graph-layout.d.ts +58 -0
- package/dist/lib/graph-layout.js +209 -0
- package/dist/lib/illustration-drawings.d.ts +89 -0
- package/dist/lib/illustration-drawings.js +539 -0
- package/dist/lib/illustration-info.d.ts +37 -0
- package/dist/lib/illustration-info.js +22 -0
- package/dist/lib/illustration-library.d.ts +87 -0
- package/dist/lib/illustration-library.js +352 -0
- package/dist/lib/logo-geometry.d.ts +29 -0
- package/dist/lib/logo-geometry.js +67 -0
- package/dist/lib/markdown-guard.d.ts +16 -0
- package/dist/lib/markdown-guard.js +123 -0
- package/dist/lib/merge-refs.d.ts +10 -0
- package/dist/lib/merge-refs.js +26 -0
- package/dist/lib/money.d.ts +73 -0
- package/dist/lib/money.js +343 -0
- package/dist/lib/motion.d.ts +6 -0
- package/dist/lib/motion.js +12 -0
- package/dist/lib/pdf-worker.d.ts +1 -0
- package/dist/lib/pdf-worker.js +6 -0
- package/dist/lib/pdf.d.ts +19 -0
- package/dist/lib/pdf.js +58 -0
- package/dist/lib/phone-countries.d.ts +1 -0
- package/dist/lib/phone-countries.js +281 -0
- package/dist/lib/phone.d.ts +90 -0
- package/dist/lib/phone.js +286 -0
- package/dist/lib/platform.d.ts +38 -0
- package/dist/lib/platform.js +75 -0
- package/dist/lib/room.d.ts +25 -0
- package/dist/lib/room.js +46 -0
- package/dist/lib/row-index.d.ts +15 -0
- package/dist/lib/row-index.js +136 -0
- package/dist/lib/table-fit.d.ts +143 -0
- package/dist/lib/table-fit.js +596 -0
- package/dist/lib/theme-script.d.ts +31 -0
- package/dist/lib/theme-script.js +49 -0
- package/dist/lib/tippy/pixels.d.ts +47 -0
- package/dist/lib/tippy/pixels.js +187 -0
- package/dist/lib/tippy/sprite.d.ts +86 -0
- package/dist/lib/tippy/sprite.js +753 -0
- package/dist/messages/de.d.ts +12 -0
- package/dist/messages/de.js +326 -0
- package/dist/styles/expressive.css +203 -0
- package/dist/styles/fonts.css +145 -0
- package/dist/styles/index.css +207 -0
- package/dist/styles/material.css +317 -0
- package/dist/styles/parts/ai.css +361 -0
- package/dist/styles/parts/brand.css +75 -0
- package/dist/styles/parts/controls.css +774 -0
- package/dist/styles/parts/data.css +222 -0
- package/dist/styles/parts/editorial.css +120 -0
- package/dist/styles/parts/feedback.css +340 -0
- package/dist/styles/parts/foundations.css +166 -0
- package/dist/styles/parts/graph.css +214 -0
- package/dist/styles/parts/inputs.css +261 -0
- package/dist/styles/parts/isometric.css +124 -0
- package/dist/styles/parts/navigation.css +424 -0
- package/dist/styles/parts/overlays.css +250 -0
- package/dist/styles/parts/pdf.css +154 -0
- package/dist/styles/parts/react-flow.css +519 -0
- package/dist/styles/tokens.css +299 -0
- package/dist/vite.d.ts +66 -0
- package/dist/vite.js +29 -0
- package/package.json +183 -5
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
/* AI components — Response markdown, the Reasoning shimmer, the PromptInput grid. Prefer Tailwind
|
|
2
|
+
in TSX; this file holds only what classes cannot reach: the HTML that markdown renders. */
|
|
3
|
+
|
|
4
|
+
@layer components {
|
|
5
|
+
/* ── Response: the reply's reading type ─────────────────────────────────────
|
|
6
|
+
* Licht Sans 15px in --foreground-soft; Licht Light headings; mono inline code on a raised key;
|
|
7
|
+
* hairline rules and tables; lists with an en-dash marker, as in the docs' prose. */
|
|
8
|
+
[data-slot="response"] {
|
|
9
|
+
overflow-wrap: anywhere;
|
|
10
|
+
|
|
11
|
+
/* One markdown block per paragraph, list or table, each `display: contents`: what is inside
|
|
12
|
+
them is spaced as siblings of the code blocks between them (spaced 1rem in response.tsx),
|
|
13
|
+
with collapsing margins. No space above the first line or below the last — reaching into a
|
|
14
|
+
quote or a loose list, whose paragraphs' margins would collapse through them. */
|
|
15
|
+
& > [data-slot="response-markdown"]:first-child > :first-child,
|
|
16
|
+
& > [data-slot="response-markdown"]:first-child > blockquote:first-child > :first-child,
|
|
17
|
+
&
|
|
18
|
+
> [data-slot="response-markdown"]:first-child
|
|
19
|
+
> :is(ul, ol):first-child
|
|
20
|
+
> li:first-child
|
|
21
|
+
> :first-child {
|
|
22
|
+
margin-top: 0;
|
|
23
|
+
}
|
|
24
|
+
& > [data-slot="response-markdown"]:last-child > :last-child,
|
|
25
|
+
& > [data-slot="response-markdown"]:last-child > blockquote:last-child > :last-child,
|
|
26
|
+
& > [data-slot="response-markdown"]:last-child > :is(ul, ol):last-child > li:last-child > :last-child {
|
|
27
|
+
margin-bottom: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& p,
|
|
31
|
+
& ul,
|
|
32
|
+
& ol,
|
|
33
|
+
& blockquote,
|
|
34
|
+
& table {
|
|
35
|
+
margin-block: 0.875rem;
|
|
36
|
+
}
|
|
37
|
+
& :is(h1, h2, h3, h4) {
|
|
38
|
+
margin-top: 1.5rem;
|
|
39
|
+
margin-bottom: 0.5rem;
|
|
40
|
+
color: var(--foreground);
|
|
41
|
+
font-family: var(--font-heading);
|
|
42
|
+
font-weight: 300;
|
|
43
|
+
line-height: 1.2;
|
|
44
|
+
}
|
|
45
|
+
& h1 {
|
|
46
|
+
font-size: 26px;
|
|
47
|
+
}
|
|
48
|
+
& h2 {
|
|
49
|
+
font-size: 22px;
|
|
50
|
+
}
|
|
51
|
+
& h3 {
|
|
52
|
+
font-size: 19px;
|
|
53
|
+
}
|
|
54
|
+
& h4 {
|
|
55
|
+
font-size: 17px;
|
|
56
|
+
}
|
|
57
|
+
& strong {
|
|
58
|
+
color: var(--foreground);
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
}
|
|
61
|
+
& a {
|
|
62
|
+
color: var(--foreground);
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
text-decoration-color: color-mix(in oklab, var(--foreground) 35%, transparent);
|
|
65
|
+
text-underline-offset: 4px;
|
|
66
|
+
transition: text-decoration-color var(--duration) var(--ease);
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
text-decoration-color: var(--foreground);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/* Code reads left to right in a right-to-left reply too, its brackets kept with it. */
|
|
73
|
+
& :not(pre) > code {
|
|
74
|
+
direction: ltr;
|
|
75
|
+
unicode-bidi: isolate;
|
|
76
|
+
padding: 0.1em 0.35em;
|
|
77
|
+
border-radius: var(--radius-checkbox);
|
|
78
|
+
background: var(--control-surface);
|
|
79
|
+
box-shadow: 0 0 0 1px var(--control-edge);
|
|
80
|
+
color: var(--foreground);
|
|
81
|
+
font-family: var(--font-mono);
|
|
82
|
+
font-size: 0.86em;
|
|
83
|
+
}
|
|
84
|
+
& ul,
|
|
85
|
+
& ol {
|
|
86
|
+
padding-inline-start: 1.25rem;
|
|
87
|
+
}
|
|
88
|
+
& ul {
|
|
89
|
+
list-style-type: "– ";
|
|
90
|
+
}
|
|
91
|
+
& ol {
|
|
92
|
+
list-style-type: decimal;
|
|
93
|
+
}
|
|
94
|
+
& li::marker {
|
|
95
|
+
color: var(--muted-foreground);
|
|
96
|
+
font-variant-numeric: tabular-nums;
|
|
97
|
+
}
|
|
98
|
+
& li + li {
|
|
99
|
+
margin-top: 0.375rem;
|
|
100
|
+
}
|
|
101
|
+
& li > :is(ul, ol) {
|
|
102
|
+
margin-block: 0.375rem;
|
|
103
|
+
}
|
|
104
|
+
/* A task list: the item's box stands in for the marker. Drawn like Checkbox: 18px, 5px
|
|
105
|
+
corners, the field material, filled with the primary and ticked when done. */
|
|
106
|
+
& li:has(> input[type="checkbox"]:first-child, > p:first-child > input[type="checkbox"]:first-child) {
|
|
107
|
+
list-style: none;
|
|
108
|
+
}
|
|
109
|
+
& input[type="checkbox"] {
|
|
110
|
+
appearance: none;
|
|
111
|
+
display: inline-grid;
|
|
112
|
+
place-content: center;
|
|
113
|
+
width: 18px;
|
|
114
|
+
height: 18px;
|
|
115
|
+
margin: 0 0.5rem 0 0;
|
|
116
|
+
vertical-align: -3px;
|
|
117
|
+
border: 1px solid var(--field-edge);
|
|
118
|
+
border-radius: var(--radius-checkbox);
|
|
119
|
+
background: var(--field-surface) linear-gradient(180deg, var(--field-inset), transparent 12px);
|
|
120
|
+
box-shadow: inset 0 1px 2px var(--field-inset);
|
|
121
|
+
|
|
122
|
+
&:checked {
|
|
123
|
+
border-color: transparent;
|
|
124
|
+
background: var(--primary);
|
|
125
|
+
box-shadow: var(--shadow-checked);
|
|
126
|
+
}
|
|
127
|
+
&:checked::after {
|
|
128
|
+
content: "";
|
|
129
|
+
width: 9px;
|
|
130
|
+
height: 5px;
|
|
131
|
+
border: solid var(--primary-foreground);
|
|
132
|
+
border-width: 0 0 2px 2px;
|
|
133
|
+
translate: 0 -1px;
|
|
134
|
+
rotate: -45deg;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/* Fenced code inside a list item or quote, which stays in the markdown's HTML: the code
|
|
138
|
+
block's square region, 13px Licht Mono, scrolling sideways rather than widening the reply. */
|
|
139
|
+
& [data-slot="response-markdown"] pre {
|
|
140
|
+
direction: ltr;
|
|
141
|
+
margin-block: 0.875rem;
|
|
142
|
+
padding: 1rem;
|
|
143
|
+
overflow-x: auto;
|
|
144
|
+
border: 1px solid var(--field-edge);
|
|
145
|
+
background: linear-gradient(160deg, var(--control-surface), var(--field-surface) 55%);
|
|
146
|
+
box-shadow: inset 0 1px 0 var(--control-highlight);
|
|
147
|
+
color: var(--foreground);
|
|
148
|
+
font-family: var(--font-mono);
|
|
149
|
+
font-size: 13px;
|
|
150
|
+
line-height: 1.75;
|
|
151
|
+
white-space: pre;
|
|
152
|
+
tab-size: 2;
|
|
153
|
+
overflow-wrap: normal;
|
|
154
|
+
|
|
155
|
+
&:focus-visible {
|
|
156
|
+
outline: 2px solid var(--control-focus);
|
|
157
|
+
outline-offset: 0;
|
|
158
|
+
}
|
|
159
|
+
& code {
|
|
160
|
+
font: inherit;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
& blockquote {
|
|
164
|
+
padding-inline-start: 1rem;
|
|
165
|
+
border-inline-start: 1px solid var(--border);
|
|
166
|
+
color: var(--muted-foreground);
|
|
167
|
+
}
|
|
168
|
+
& hr {
|
|
169
|
+
margin-block: 1.5rem;
|
|
170
|
+
border: 0;
|
|
171
|
+
border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
|
|
172
|
+
}
|
|
173
|
+
& table {
|
|
174
|
+
width: 100%;
|
|
175
|
+
border-collapse: collapse;
|
|
176
|
+
font-size: 14px;
|
|
177
|
+
}
|
|
178
|
+
/* The block a table sits in takes its spacing and scrolls it sideways when it is wider than the
|
|
179
|
+
reply; the cells wrap between words, never inside one. */
|
|
180
|
+
& > [data-slot="response-markdown"][data-table] {
|
|
181
|
+
margin-block: 0.875rem;
|
|
182
|
+
overflow-x: auto;
|
|
183
|
+
overscroll-behavior-x: contain;
|
|
184
|
+
|
|
185
|
+
&:first-child {
|
|
186
|
+
margin-top: 0;
|
|
187
|
+
}
|
|
188
|
+
&:last-child {
|
|
189
|
+
margin-bottom: 0;
|
|
190
|
+
}
|
|
191
|
+
& > table {
|
|
192
|
+
margin-block: 0;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
& th {
|
|
196
|
+
color: var(--muted-foreground);
|
|
197
|
+
font-family: var(--font-mono);
|
|
198
|
+
font-size: 11px;
|
|
199
|
+
font-weight: 400;
|
|
200
|
+
letter-spacing: 0.06em;
|
|
201
|
+
text-align: start;
|
|
202
|
+
text-transform: uppercase;
|
|
203
|
+
}
|
|
204
|
+
& :is(th, td) {
|
|
205
|
+
overflow-wrap: normal;
|
|
206
|
+
padding: 0.5rem 0.75rem;
|
|
207
|
+
border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
|
|
208
|
+
&:first-child {
|
|
209
|
+
padding-inline-start: 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* ── Reasoning: "Thinking…" shimmers ────────────────────────────────────────
|
|
215
|
+
* A brighter band moves through the muted label, left to right, every 1.6s; under reduced
|
|
216
|
+
* motion the label simply stays muted. */
|
|
217
|
+
[data-slot="reasoning-label"][data-streaming] {
|
|
218
|
+
background-image: linear-gradient(
|
|
219
|
+
90deg,
|
|
220
|
+
var(--muted-foreground) 0%,
|
|
221
|
+
var(--muted-foreground) 35%,
|
|
222
|
+
var(--foreground) 50%,
|
|
223
|
+
var(--muted-foreground) 65%,
|
|
224
|
+
var(--muted-foreground) 100%
|
|
225
|
+
);
|
|
226
|
+
background-size: 250% 100%;
|
|
227
|
+
background-clip: text;
|
|
228
|
+
color: transparent;
|
|
229
|
+
animation: ep-reasoning-shimmer 1.6s linear infinite;
|
|
230
|
+
|
|
231
|
+
@media (prefers-reduced-motion: reduce) {
|
|
232
|
+
animation: none;
|
|
233
|
+
background-image: none;
|
|
234
|
+
color: inherit;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
@keyframes ep-reasoning-shimmer {
|
|
238
|
+
from {
|
|
239
|
+
background-position: 100% 0;
|
|
240
|
+
}
|
|
241
|
+
to {
|
|
242
|
+
background-position: 0% 0;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* ── PromptInput: one line, or stacked ───────────────────────────────────────
|
|
248
|
+
* The bar is a grid. On one line: tools · text · end tools · send, all 38px tall — one 24px line
|
|
249
|
+
* of text with 6px above and below, inside the 1px border; the 30px buttons sit 3px in, like any
|
|
250
|
+
* button in a field. Stacked: the text takes the full width above, and the tools and send form
|
|
251
|
+
* the row under it, still 3px in. prompt-input.tsx animates between the two (FLIP).
|
|
252
|
+
* Unlayered, and only these: the grid and the text's padding replace InputGroup's flex and its
|
|
253
|
+
* textarea's utilities, which a layered rule could not. */
|
|
254
|
+
[data-slot="prompt-input"] > [data-slot="input-group"] {
|
|
255
|
+
display: grid;
|
|
256
|
+
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
257
|
+
grid-template-areas:
|
|
258
|
+
"header header header header"
|
|
259
|
+
"tools input aside submit";
|
|
260
|
+
align-items: center;
|
|
261
|
+
}
|
|
262
|
+
/* While the morph plays (prompt-input.tsx), the rows keep their final heights at the top, and the
|
|
263
|
+
* animated height only opens or clips the bar below them. */
|
|
264
|
+
[data-slot="prompt-input"] > [data-slot="input-group"][data-morphing] {
|
|
265
|
+
align-content: start;
|
|
266
|
+
}
|
|
267
|
+
[data-slot="prompt-input"] > [data-slot="input-group"][data-layout="stacked"] {
|
|
268
|
+
grid-template-areas:
|
|
269
|
+
"header header header header"
|
|
270
|
+
"input input input input"
|
|
271
|
+
"tools . aside submit";
|
|
272
|
+
}
|
|
273
|
+
[data-slot="prompt-input"] :is([data-slot="input-group-control"], [data-slot="prompt-input-placeholder"]) {
|
|
274
|
+
grid-area: input;
|
|
275
|
+
min-height: 0;
|
|
276
|
+
/* One 24px line, centred in the control height inside the 1px border: 6px above and below at 38. */
|
|
277
|
+
padding: calc((var(--control-h) - 26px) / 2) 10px;
|
|
278
|
+
line-height: 24px;
|
|
279
|
+
}
|
|
280
|
+
[data-slot="prompt-input"] > [data-layout="inline"] [data-slot="input-group-control"] {
|
|
281
|
+
overflow: hidden;
|
|
282
|
+
}
|
|
283
|
+
/* Without tools, the text starts where a field's text does. */
|
|
284
|
+
[data-slot="prompt-input"]
|
|
285
|
+
> [data-slot="input-group"]:not(:has([data-slot="prompt-input-tools"]))
|
|
286
|
+
:is([data-slot="input-group-control"], [data-slot="prompt-input-placeholder"]) {
|
|
287
|
+
padding-inline-start: 14px;
|
|
288
|
+
}
|
|
289
|
+
[data-slot="prompt-input"]
|
|
290
|
+
> [data-layout="stacked"]
|
|
291
|
+
:is([data-slot="input-group-control"], [data-slot="prompt-input-placeholder"]) {
|
|
292
|
+
padding: 12px 14px 4px;
|
|
293
|
+
}
|
|
294
|
+
/* On one line a placeholder longer than the room ends in "…". No browser cuts a textarea's own
|
|
295
|
+
* placeholder short, so a copy of it (prompt-input.tsx) is laid out in the text's place and shown
|
|
296
|
+
* instead, while the textarea shows its placeholder. Stacked, the textarea's own shows and wraps;
|
|
297
|
+
* the copy stays laid out there, hidden, so the morph glides it like the text. */
|
|
298
|
+
[data-slot="prompt-input-placeholder"] {
|
|
299
|
+
align-self: start;
|
|
300
|
+
min-width: 0;
|
|
301
|
+
overflow: hidden;
|
|
302
|
+
/* As the textarea lays out its own on one line: a line break in it stays one. */
|
|
303
|
+
white-space: pre;
|
|
304
|
+
text-overflow: ellipsis;
|
|
305
|
+
color: var(--control-muted);
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
user-select: none;
|
|
308
|
+
visibility: hidden;
|
|
309
|
+
}
|
|
310
|
+
@supports selector(:has(+ *)) {
|
|
311
|
+
[data-slot="prompt-input"]
|
|
312
|
+
> [data-layout="inline"]
|
|
313
|
+
> [data-slot="prompt-input-placeholder"]:has(+ :placeholder-shown) {
|
|
314
|
+
visibility: visible;
|
|
315
|
+
}
|
|
316
|
+
[data-slot="prompt-input"]
|
|
317
|
+
> [data-layout="inline"]
|
|
318
|
+
> [data-slot="prompt-input-placeholder"]
|
|
319
|
+
+ [data-slot="input-group-control"]::placeholder {
|
|
320
|
+
opacity: 0;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
@media (forced-colors: active) {
|
|
324
|
+
[data-slot="prompt-input-placeholder"] {
|
|
325
|
+
color: GrayText;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
/* No focus edge: the prompt is where typing happens, the caret marks it, and the bar keeps its
|
|
329
|
+
* resting border. Dragging files over it still lights the edge. */
|
|
330
|
+
[data-slot="prompt-input"]
|
|
331
|
+
> [data-slot="input-group"]:not([data-dragging]):has([data-slot="input-group-control"]:focus-visible) {
|
|
332
|
+
border-color: var(--field-edge);
|
|
333
|
+
outline: none;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* The rest has no utility to beat: layered, so a className on the part still wins. */
|
|
337
|
+
@layer components {
|
|
338
|
+
[data-slot="prompt-input-header"] {
|
|
339
|
+
grid-area: header;
|
|
340
|
+
}
|
|
341
|
+
[data-slot="prompt-input-tools"] {
|
|
342
|
+
grid-area: tools;
|
|
343
|
+
padding-inline-start: 3px;
|
|
344
|
+
}
|
|
345
|
+
/* Tools at the end sit beside the send button, a tool's gap from it. */
|
|
346
|
+
[data-slot="prompt-input-tools"][data-side="end"] {
|
|
347
|
+
grid-area: aside;
|
|
348
|
+
padding-inline: 0 4px;
|
|
349
|
+
}
|
|
350
|
+
[data-slot="prompt-input-submit"] {
|
|
351
|
+
grid-area: submit;
|
|
352
|
+
padding-inline-end: 3px;
|
|
353
|
+
}
|
|
354
|
+
/* Stacked, the buttons keep the inset they have on one line — 3px from the edge — so the
|
|
355
|
+
* morph only moves them up or down. */
|
|
356
|
+
[data-slot="prompt-input"]
|
|
357
|
+
> [data-layout="stacked"]
|
|
358
|
+
:is([data-slot="prompt-input-tools"], [data-slot="prompt-input-submit"]) {
|
|
359
|
+
padding-block: 2px 3px;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* brand components — owned by the brand group. Prefer Tailwind in TSX; use this only for what classes cannot express (keyframes, complex selectors, SVG). */
|
|
2
|
+
|
|
3
|
+
/* ── Starfield: slow twinkle on a few stars ─────────────────────────────────── */
|
|
4
|
+
|
|
5
|
+
@keyframes ep-twinkle {
|
|
6
|
+
0%,
|
|
7
|
+
100% {
|
|
8
|
+
opacity: var(--star-o, 0.6);
|
|
9
|
+
}
|
|
10
|
+
50% {
|
|
11
|
+
opacity: calc(var(--star-o, 0.6) * 0.18);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ep-star-twinkle {
|
|
16
|
+
animation: ep-twinkle var(--star-d, 6s) ease-in-out var(--star-delay, 0s) infinite;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-reduced-motion: reduce) {
|
|
20
|
+
.ep-star-twinkle {
|
|
21
|
+
animation: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* ── Glow orb: halo, body and limb are gradients, never an animated filter ──── */
|
|
26
|
+
|
|
27
|
+
.ep-orb-halo {
|
|
28
|
+
background: radial-gradient(
|
|
29
|
+
closest-side,
|
|
30
|
+
color-mix(in oklab, currentColor 13%, transparent),
|
|
31
|
+
color-mix(in oklab, currentColor 6%, transparent) 38%,
|
|
32
|
+
color-mix(in oklab, currentColor 2%, transparent) 68%,
|
|
33
|
+
transparent
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ep-orb-body {
|
|
38
|
+
background: radial-gradient(
|
|
39
|
+
circle at 36% 30%,
|
|
40
|
+
color-mix(in oklab, currentColor 17%, transparent),
|
|
41
|
+
color-mix(in oklab, currentColor 8%, transparent) 46%,
|
|
42
|
+
color-mix(in oklab, currentColor 3.5%, transparent) 78%,
|
|
43
|
+
color-mix(in oklab, currentColor 2%, transparent)
|
|
44
|
+
);
|
|
45
|
+
/* A soft edge without a blur filter. */
|
|
46
|
+
mask-image: radial-gradient(closest-side, #000 93%, transparent);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ep-orb-limb {
|
|
50
|
+
background: radial-gradient(
|
|
51
|
+
closest-side,
|
|
52
|
+
transparent 86%,
|
|
53
|
+
color-mix(in oklab, currentColor 9%, transparent) 96.5%,
|
|
54
|
+
transparent
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes ep-orb-breathe {
|
|
59
|
+
0%,
|
|
60
|
+
100% {
|
|
61
|
+
opacity: 0.82;
|
|
62
|
+
transform: scale(1);
|
|
63
|
+
}
|
|
64
|
+
50% {
|
|
65
|
+
opacity: 1;
|
|
66
|
+
transform: scale(1.035);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Desktop only: mobile backdrops stay static. Opacity + transform, compositor-only. */
|
|
71
|
+
@media (hover: hover) and (pointer: fine) and (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
|
|
72
|
+
[data-slot="glow-orb"][data-animate="true"] .ep-orb-halo {
|
|
73
|
+
animation: ep-orb-breathe 16s var(--ease) infinite;
|
|
74
|
+
}
|
|
75
|
+
}
|