@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,250 @@
|
|
|
1
|
+
/* overlays components — owned by the overlays group. Prefer Tailwind in TSX; use this only for what classes cannot express (keyframes, complex selectors, SVG). */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Drawer and toast motion. Both follow the pointer while swiping (Base UI writes the movement
|
|
5
|
+
* into CSS variables), so their transforms compose several variables per side and state, which
|
|
6
|
+
* is clearer here than as arbitrary Tailwind values. Larger travel uses 3 × --duration with the
|
|
7
|
+
* brand ease; --duration is 0 under prefers-reduced-motion, so all of this collapses to instant.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@layer components {
|
|
11
|
+
/* ── Drawer ──────────────────────────────────────────────────────────────── */
|
|
12
|
+
|
|
13
|
+
[data-slot="drawer-backdrop"] {
|
|
14
|
+
opacity: calc(1 - var(--drawer-swipe-progress, 0));
|
|
15
|
+
transition: opacity calc(var(--duration) * 2) var(--ease);
|
|
16
|
+
|
|
17
|
+
&[data-starting-style],
|
|
18
|
+
&[data-ending-style] {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
&[data-ending-style] {
|
|
22
|
+
transition-duration: calc(var(--drawer-swipe-strength, 1) * var(--duration) * 2);
|
|
23
|
+
}
|
|
24
|
+
&[data-swiping] {
|
|
25
|
+
transition-duration: 0ms;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-slot="drawer-content"] {
|
|
30
|
+
--drawer-bleed: 3rem;
|
|
31
|
+
transition:
|
|
32
|
+
transform calc(var(--duration) * 2) var(--ease),
|
|
33
|
+
padding-bottom calc(var(--duration) * 2) var(--ease);
|
|
34
|
+
|
|
35
|
+
/* Fills the gap behind the panel when it is pulled past its resting edge. */
|
|
36
|
+
&::after {
|
|
37
|
+
content: "";
|
|
38
|
+
position: absolute;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
background: var(--field-surface);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-swiping] {
|
|
44
|
+
transition-duration: 0ms;
|
|
45
|
+
user-select: none;
|
|
46
|
+
}
|
|
47
|
+
&[data-ending-style] {
|
|
48
|
+
transition-duration: calc(var(--drawer-swipe-strength, 1) * var(--duration) * 2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/*
|
|
52
|
+
* Bottom sheet: snap offset + vertical swipe. While a drag is live Base UI also writes the
|
|
53
|
+
* offset as an inline transform (and `transition: none`), so the sheet tracks the pointer 1:1.
|
|
54
|
+
*/
|
|
55
|
+
&[data-side="bottom"] {
|
|
56
|
+
transform: translateY(calc(var(--drawer-snap-point-offset, 0px) + var(--drawer-swipe-movement-y, 0px)));
|
|
57
|
+
|
|
58
|
+
/*
|
|
59
|
+
* Full-height sheets keep the body's end on screen at a snap point: the padding shrinks the
|
|
60
|
+
* scroll area by however far the sheet is pushed down. Only a sheet with a fixed height may
|
|
61
|
+
* do this — on an auto-height sheet the padding would grow the sheet by exactly as much as
|
|
62
|
+
* the transform moves it, so the sheet would stand still under the pointer.
|
|
63
|
+
*/
|
|
64
|
+
&[data-full-height] {
|
|
65
|
+
padding-bottom: max(
|
|
66
|
+
0px,
|
|
67
|
+
calc(var(--drawer-snap-point-offset, 0px) + var(--drawer-swipe-movement-y, 0px))
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&::after {
|
|
72
|
+
top: 100%;
|
|
73
|
+
left: -1px;
|
|
74
|
+
right: -1px;
|
|
75
|
+
height: var(--drawer-bleed);
|
|
76
|
+
border-inline: 1px solid var(--field-edge);
|
|
77
|
+
}
|
|
78
|
+
&[data-starting-style],
|
|
79
|
+
&[data-ending-style] {
|
|
80
|
+
transform: translateY(calc(100% + 2px));
|
|
81
|
+
padding-bottom: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Side panels: horizontal swipe. */
|
|
86
|
+
&[data-side="right"] {
|
|
87
|
+
transform: translateX(var(--drawer-swipe-movement-x, 0px));
|
|
88
|
+
|
|
89
|
+
&::after {
|
|
90
|
+
top: 0;
|
|
91
|
+
bottom: 0;
|
|
92
|
+
left: 100%;
|
|
93
|
+
width: var(--drawer-bleed);
|
|
94
|
+
}
|
|
95
|
+
&[data-starting-style],
|
|
96
|
+
&[data-ending-style] {
|
|
97
|
+
transform: translateX(calc(100% + 2px));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[data-side="left"] {
|
|
102
|
+
transform: translateX(var(--drawer-swipe-movement-x, 0px));
|
|
103
|
+
|
|
104
|
+
&::after {
|
|
105
|
+
top: 0;
|
|
106
|
+
bottom: 0;
|
|
107
|
+
right: 100%;
|
|
108
|
+
width: var(--drawer-bleed);
|
|
109
|
+
}
|
|
110
|
+
&[data-starting-style],
|
|
111
|
+
&[data-ending-style] {
|
|
112
|
+
transform: translateX(calc(-100% - 2px));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ── Toast stack ─────────────────────────────────────────────────────────── */
|
|
118
|
+
|
|
119
|
+
[data-slot="toast"] {
|
|
120
|
+
--gap: 0.75rem;
|
|
121
|
+
--peek: 0.625rem;
|
|
122
|
+
--scale: calc(max(0, 1 - (var(--toast-index) * 0.05)));
|
|
123
|
+
--shrink: calc(1 - var(--scale));
|
|
124
|
+
--height: var(--toast-frontmost-height, var(--toast-height));
|
|
125
|
+
--offset-y: calc(
|
|
126
|
+
var(--toast-offset-y) * -1 + (var(--toast-index) * var(--gap) * -1) + var(--toast-swipe-movement-y)
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
position: absolute;
|
|
130
|
+
right: 0;
|
|
131
|
+
bottom: 0;
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: var(--height);
|
|
134
|
+
z-index: calc(1000 - var(--toast-index));
|
|
135
|
+
transform-origin: bottom center;
|
|
136
|
+
transform: translateX(var(--toast-swipe-movement-x))
|
|
137
|
+
translateY(
|
|
138
|
+
calc(
|
|
139
|
+
var(--toast-swipe-movement-y) - (var(--toast-index) * var(--peek)) - (var(--shrink) * var(--height))
|
|
140
|
+
)
|
|
141
|
+
)
|
|
142
|
+
scale(var(--scale));
|
|
143
|
+
user-select: none;
|
|
144
|
+
transition:
|
|
145
|
+
transform calc(var(--duration) * 2) var(--ease),
|
|
146
|
+
opacity calc(var(--duration) * 2) var(--ease),
|
|
147
|
+
height var(--duration) var(--ease);
|
|
148
|
+
|
|
149
|
+
/* Bridges the gap between expanded toasts so hover doesn't flicker. */
|
|
150
|
+
&::after {
|
|
151
|
+
content: "";
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 100%;
|
|
154
|
+
left: 0;
|
|
155
|
+
width: 100%;
|
|
156
|
+
height: calc(var(--gap) + 1px);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&[data-expanded] {
|
|
160
|
+
height: var(--toast-height);
|
|
161
|
+
transform: translateX(var(--toast-swipe-movement-x)) translateY(var(--offset-y));
|
|
162
|
+
}
|
|
163
|
+
&[data-starting-style] {
|
|
164
|
+
transform: translateY(150%);
|
|
165
|
+
}
|
|
166
|
+
&[data-limited],
|
|
167
|
+
&[data-ending-style] {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
}
|
|
170
|
+
&[data-ending-style]:not([data-limited]):not([data-swipe-direction]) {
|
|
171
|
+
transform: translateY(150%);
|
|
172
|
+
}
|
|
173
|
+
&[data-ending-style][data-swipe-direction="down"] {
|
|
174
|
+
transform: translateY(calc(var(--toast-swipe-movement-y) + 150%));
|
|
175
|
+
}
|
|
176
|
+
&[data-ending-style][data-swipe-direction="up"] {
|
|
177
|
+
transform: translateY(calc(var(--toast-swipe-movement-y) - 150%));
|
|
178
|
+
}
|
|
179
|
+
&[data-ending-style][data-swipe-direction="right"] {
|
|
180
|
+
transform: translateX(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y));
|
|
181
|
+
}
|
|
182
|
+
&[data-ending-style][data-swipe-direction="left"] {
|
|
183
|
+
transform: translateX(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--offset-y));
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Content of toasts behind the front one fades out; it returns when the stack expands. */
|
|
188
|
+
[data-slot="toast-content"] {
|
|
189
|
+
transition: opacity calc(var(--duration) * 2) var(--ease);
|
|
190
|
+
|
|
191
|
+
&[data-behind] {
|
|
192
|
+
opacity: 0;
|
|
193
|
+
}
|
|
194
|
+
&[data-expanded] {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/*
|
|
201
|
+
* ── Forced colours: the row under the keyboard, the open menu, the current item ────
|
|
202
|
+
* A contrast theme (Windows) replaces fills with the page colour, drops shadows and gradients, and
|
|
203
|
+
* draws every transparent edge. A highlighted menu, select, combobox or command row — which is
|
|
204
|
+
* where keyboard focus is — would look like all the others, each boxed. The rows drop their edge
|
|
205
|
+
* and the highlighted one (or the trigger of an open submenu) takes the system highlight, as in a
|
|
206
|
+
* native menu; so do a menubar's open trigger and a navigation bar's gliding indicator, and the
|
|
207
|
+
* radio dot keeps its ink. (Dialog-family popups get an opaque page colour from `overlayCard`.)
|
|
208
|
+
*/
|
|
209
|
+
@media (forced-colors: active) {
|
|
210
|
+
:is(
|
|
211
|
+
[data-slot="menu-item"],
|
|
212
|
+
[data-slot="menu-link-item"],
|
|
213
|
+
[data-slot="menu-checkbox-item"],
|
|
214
|
+
[data-slot="menu-radio-item"],
|
|
215
|
+
[data-slot="menu-sub-trigger"],
|
|
216
|
+
[data-slot="menubar-item"],
|
|
217
|
+
[data-slot="menubar-link-item"],
|
|
218
|
+
[data-slot="menubar-checkbox-item"],
|
|
219
|
+
[data-slot="menubar-radio-item"],
|
|
220
|
+
[data-slot="menubar-sub-trigger"],
|
|
221
|
+
[data-slot="menubar-trigger"],
|
|
222
|
+
[data-slot="select-item"],
|
|
223
|
+
[data-slot="combobox-item"],
|
|
224
|
+
[data-slot="command-item"]
|
|
225
|
+
) {
|
|
226
|
+
border-color: Canvas;
|
|
227
|
+
|
|
228
|
+
&:is([data-highlighted], [data-popup-open]) {
|
|
229
|
+
border-color: Highlight;
|
|
230
|
+
outline: 1px solid Highlight;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
[data-slot="menubar-indicator"] {
|
|
235
|
+
visibility: hidden;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[data-slot="menu-radio-dot"] {
|
|
239
|
+
forced-color-adjust: none;
|
|
240
|
+
background: CanvasText;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
[data-slot="navigation-menu"][data-variant="pill"] [data-slot="navigation-menu-indicator"] {
|
|
244
|
+
border: 2px solid Highlight;
|
|
245
|
+
}
|
|
246
|
+
[data-slot="navigation-menu"][data-variant="underline"] [data-slot="navigation-menu-indicator"] {
|
|
247
|
+
forced-color-adjust: none;
|
|
248
|
+
background: Highlight;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* PdfViewer (components/pdf-viewer.tsx).
|
|
3
|
+
*
|
|
4
|
+
* The text layer follows pdf.js's own viewer CSS (Apache-2.0, mozilla/pdf.js): transparent text
|
|
5
|
+
* laid exactly over the drawn page, so it can be selected and searched. Unlayered on purpose:
|
|
6
|
+
* the toolbar inside the viewer's header must beat the Toolbar's surface utility.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* The toolbar sits flat in the viewer's header: the header is its surface. */
|
|
10
|
+
[data-slot="pdf-viewer-toolbar"] {
|
|
11
|
+
padding: 0;
|
|
12
|
+
border: 0;
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
background: none;
|
|
15
|
+
box-shadow: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Pages are paper: a fine edge and a soft lift off the recessed ground, in every theme. */
|
|
19
|
+
[data-slot="pdf-viewer-page"] {
|
|
20
|
+
--scale-round-x: 1px;
|
|
21
|
+
--scale-round-y: 1px;
|
|
22
|
+
box-shadow:
|
|
23
|
+
0 0 0 1px rgb(0 0 0 / 0.06),
|
|
24
|
+
0 1px 2px rgb(0 0 0 / 0.14),
|
|
25
|
+
0 12px 32px -12px rgb(0 0 0 / 0.4);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[data-slot="pdf-viewer-thumbnail-page"] {
|
|
29
|
+
box-shadow:
|
|
30
|
+
0 0 0 1px rgb(0 0 0 / 0.08),
|
|
31
|
+
0 1px 3px rgb(0 0 0 / 0.18);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Until a page or thumbnail is drawn, the paper carries the skeleton's sweep, in ink on paper. */
|
|
35
|
+
[data-slot="pdf-viewer-page"]:not([data-drawn])::before,
|
|
36
|
+
[data-slot="pdf-viewer-thumbnail-page"]:not([data-drawn])::before {
|
|
37
|
+
content: "";
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: 0;
|
|
40
|
+
background-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.05), transparent);
|
|
41
|
+
background-repeat: no-repeat;
|
|
42
|
+
background-size: 50% 100%;
|
|
43
|
+
background-position: -100% 0;
|
|
44
|
+
animation: ep-skeleton-sweep 1.6s var(--ease) infinite;
|
|
45
|
+
|
|
46
|
+
@media (prefers-reduced-motion: reduce) {
|
|
47
|
+
animation: none;
|
|
48
|
+
background-image: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Links on a page: invisible until pointed at or focused, like the printed page they sit on. */
|
|
53
|
+
[data-slot="pdf-viewer-link"] {
|
|
54
|
+
position: absolute;
|
|
55
|
+
z-index: 2;
|
|
56
|
+
border-radius: 2px;
|
|
57
|
+
transition: background-color var(--duration) var(--ease);
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
background-color: rgb(0 0 0 / 0.06);
|
|
61
|
+
}
|
|
62
|
+
&:focus-visible {
|
|
63
|
+
outline: 2px solid var(--control-focus);
|
|
64
|
+
outline-offset: 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* pdf.js lays the text layer out upright and turns it with the page (from pdf.js's viewer CSS). */
|
|
69
|
+
[data-slot="pdf-viewer-page"] .textLayer {
|
|
70
|
+
&[data-main-rotation="90"] {
|
|
71
|
+
transform: rotate(90deg) translateY(-100%);
|
|
72
|
+
}
|
|
73
|
+
&[data-main-rotation="180"] {
|
|
74
|
+
transform: rotate(180deg) translate(-100%, -100%);
|
|
75
|
+
}
|
|
76
|
+
&[data-main-rotation="270"] {
|
|
77
|
+
transform: rotate(270deg) translateX(-100%);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-slot="pdf-viewer-page"] .textLayer {
|
|
82
|
+
position: absolute;
|
|
83
|
+
inset: 0;
|
|
84
|
+
overflow: clip;
|
|
85
|
+
text-align: initial;
|
|
86
|
+
line-height: 1;
|
|
87
|
+
letter-spacing: normal;
|
|
88
|
+
word-spacing: normal;
|
|
89
|
+
text-size-adjust: none;
|
|
90
|
+
forced-color-adjust: none;
|
|
91
|
+
transform-origin: 0 0;
|
|
92
|
+
caret-color: CanvasText;
|
|
93
|
+
z-index: 0;
|
|
94
|
+
--min-font-size: 1;
|
|
95
|
+
--text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
|
|
96
|
+
--min-font-size-inv: calc(1 / var(--min-font-size));
|
|
97
|
+
|
|
98
|
+
& :is(span, br) {
|
|
99
|
+
position: absolute;
|
|
100
|
+
color: transparent;
|
|
101
|
+
white-space: pre;
|
|
102
|
+
cursor: text;
|
|
103
|
+
transform-origin: 0% 0%;
|
|
104
|
+
user-select: text;
|
|
105
|
+
}
|
|
106
|
+
& > :not(.markedContent),
|
|
107
|
+
& .markedContent span:not(.markedContent) {
|
|
108
|
+
z-index: 1;
|
|
109
|
+
--font-height: 0;
|
|
110
|
+
font-size: calc(var(--text-scale-factor) * var(--font-height));
|
|
111
|
+
--scale-x: 1;
|
|
112
|
+
--rotate: 0deg;
|
|
113
|
+
transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
|
|
114
|
+
}
|
|
115
|
+
& .markedContent {
|
|
116
|
+
display: contents;
|
|
117
|
+
}
|
|
118
|
+
& span[role="img"] {
|
|
119
|
+
user-select: none;
|
|
120
|
+
cursor: default;
|
|
121
|
+
}
|
|
122
|
+
/* Pages are paper whatever the theme, so selection and matches are ink on paper. */
|
|
123
|
+
& ::selection {
|
|
124
|
+
background: rgb(0 0 0 / 0.2);
|
|
125
|
+
color: transparent;
|
|
126
|
+
}
|
|
127
|
+
& br::selection {
|
|
128
|
+
background: transparent;
|
|
129
|
+
}
|
|
130
|
+
& .endOfContent {
|
|
131
|
+
display: block;
|
|
132
|
+
position: absolute;
|
|
133
|
+
inset: 100% 0 0;
|
|
134
|
+
z-index: 0;
|
|
135
|
+
cursor: default;
|
|
136
|
+
user-select: none;
|
|
137
|
+
}
|
|
138
|
+
&.selecting .endOfContent {
|
|
139
|
+
top: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Search matches, and the current one. */
|
|
143
|
+
& .pdf-hit {
|
|
144
|
+
position: static;
|
|
145
|
+
margin: -1px;
|
|
146
|
+
padding: 1px;
|
|
147
|
+
border-radius: 2px;
|
|
148
|
+
background: rgb(0 0 0 / 0.14);
|
|
149
|
+
}
|
|
150
|
+
& .pdf-hit[data-current] {
|
|
151
|
+
background: rgb(0 0 0 / 0.34);
|
|
152
|
+
box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6);
|
|
153
|
+
}
|
|
154
|
+
}
|