@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,299 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* zon tokens — the single source of truth for colour, material, geometry and motion.
|
|
3
|
+
*
|
|
4
|
+
* Light is the default (:root). Dark applies under `.dark` / `[data-theme="dark"]`.
|
|
5
|
+
* `.theme-dark` / `.theme-light` force a scheme locally (e.g. a night footer on a light page).
|
|
6
|
+
*
|
|
7
|
+
* Surfaces, controls and type are monochrome. Colour carries meaning, in small marks: four status
|
|
8
|
+
* colours (`--success`, `--warning`, `--info`, `--destructive`) and six category tones
|
|
9
|
+
* (`--tone-*`) for things people need to tell apart. Never decoration, never a fill for a button,
|
|
10
|
+
* a card or a page. Every colour reads at 4.5:1 or better as text on the grey grounds of its own
|
|
11
|
+
* theme: the page, a card, a raised surface, a menu and --control-hover, the hovered and selected
|
|
12
|
+
* fill (a selected table row).
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
:root,
|
|
16
|
+
.theme-light {
|
|
17
|
+
color-scheme: light;
|
|
18
|
+
|
|
19
|
+
/* ── Canvas & ink ─────────────────────────────────────────── */
|
|
20
|
+
--background: oklch(0.99 0 0);
|
|
21
|
+
--foreground: oklch(0.145 0 0);
|
|
22
|
+
--foreground-soft: oklch(0.37 0 0);
|
|
23
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
24
|
+
--card: oklch(1 0 0);
|
|
25
|
+
--card-foreground: oklch(0.145 0 0);
|
|
26
|
+
--popover: oklch(1 0 0);
|
|
27
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
28
|
+
--primary: oklch(0.205 0 0);
|
|
29
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
30
|
+
--secondary: oklch(0.97 0 0);
|
|
31
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
32
|
+
--muted: oklch(0.97 0 0);
|
|
33
|
+
--accent: oklch(0.97 0 0);
|
|
34
|
+
/* Dark enough to keep 4.5:1 on --control-hover (#ebebeb). Success and destructive keep their
|
|
35
|
+
hue at the edge of sRGB, the most chroma an sRGB screen shows at this lightness. */
|
|
36
|
+
--destructive: oklch(0.55 0.224 27.325); /* errors, failed, destructive actions */
|
|
37
|
+
--success: oklch(0.505 0.133 152); /* saved, sent, connected, complete */
|
|
38
|
+
--warning: oklch(0.53 0.12 65); /* needs attention soon: nearly full, partial, expiring */
|
|
39
|
+
--info: oklch(0.52 0.15 250); /* neutral news: selected, unsaved, in progress, new */
|
|
40
|
+
|
|
41
|
+
/* ── Category tones ───────────────────────────────────────── */
|
|
42
|
+
/* No fixed meaning: the app decides what each stands for (a type, a phase, a kind), and keeps
|
|
43
|
+
it the same everywhere. About the lightness of the status colours, so none shouts, and like
|
|
44
|
+
them dark enough to keep 4.5:1 as text on --control-hover. Blue is info's colour; orange keeps
|
|
45
|
+
its hue at the edge of sRGB. */
|
|
46
|
+
--tone-blue: oklch(0.52 0.15 250);
|
|
47
|
+
--tone-aqua: oklch(0.51 0.09 195);
|
|
48
|
+
--tone-violet: oklch(0.53 0.17 300);
|
|
49
|
+
--tone-magenta: oklch(0.54 0.2 340);
|
|
50
|
+
--tone-orange: oklch(0.535 0.153 45);
|
|
51
|
+
--tone-lime: oklch(0.51 0.13 130);
|
|
52
|
+
--border: oklch(0.922 0 0);
|
|
53
|
+
--input: oklch(0.922 0 0);
|
|
54
|
+
--ring: oklch(0.708 0 0);
|
|
55
|
+
|
|
56
|
+
/* ── Material: controls ───────────────────────────────────── */
|
|
57
|
+
--control-surface: #f5f5f5; /* resting fill of secondary/raised surfaces */
|
|
58
|
+
--control-hover: #ebebeb; /* hovered / current fill — never use surface for this */
|
|
59
|
+
--control-pressed: #e4e4e4; /* a raised control held down: a step below hover */
|
|
60
|
+
--control-edge: #0000002e; /* fine outer stroke */
|
|
61
|
+
--control-highlight: #ffffffe6; /* inset top highlight */
|
|
62
|
+
--control-inner-edge: #00000009; /* inner hairline + top shading */
|
|
63
|
+
--control-menu: #fafafa; /* menus, popovers, toasts */
|
|
64
|
+
--control-muted: #737373; /* placeholder, inactive segment text */
|
|
65
|
+
--control-focus: #737373; /* 2px flush focus outline */
|
|
66
|
+
--control-thumb: #ffffff; /* switch/slider thumb at rest */
|
|
67
|
+
--control-thumb-on: #ffffff; /* thumb on a primary-filled (checked) track */
|
|
68
|
+
|
|
69
|
+
/* Internal geometry: controls nested inside a field (steppers, clear buttons, chips, addon
|
|
70
|
+
buttons). Not steps on the 30/38/46 scale — they are the field height minus its inset, so a
|
|
71
|
+
theme that changes the heights moves them too. A theme that sets the heights on part of a page
|
|
72
|
+
sets these there as well: computed here, they follow only the heights on :root. */
|
|
73
|
+
--control-inset: calc(var(--control-h) - 8px); /* 30px inside a 38px field (3px inset + 1px border) */
|
|
74
|
+
--control-inset-sm: calc(var(--control-h-sm) - 6px); /* 24px inside a 30px dense field */
|
|
75
|
+
|
|
76
|
+
/* ── Material: fields (recessed) ──────────────────────────── */
|
|
77
|
+
--field-surface: #ffffff;
|
|
78
|
+
--field-edge: #d4d4d4;
|
|
79
|
+
--field-inset: #00000009;
|
|
80
|
+
|
|
81
|
+
/* ── Material: primary (layered, not flat) ────────────────── */
|
|
82
|
+
--primary-fill: #292929;
|
|
83
|
+
--primary-fill-hover: #383838;
|
|
84
|
+
--primary-fill-pressed: #232323; /* the primary held down: a step below rest */
|
|
85
|
+
--primary-text: #fafafa;
|
|
86
|
+
--primary-text-shadow: 0 1px 1px #0003;
|
|
87
|
+
--primary-shadow:
|
|
88
|
+
0 4px 4px #2a2a2a33, 0 0 0 1px #0e0e0e, inset 0 4px 6px #fff3, inset 0 0 0 1px #ffffff26,
|
|
89
|
+
inset 0 -8px 14px #00000026;
|
|
90
|
+
/* Pressed: the same five layers as --primary-shadow, in the same order, so a press animates
|
|
91
|
+
(lists that do not line up swap at once): the drop shadow and the bottom shading fade out,
|
|
92
|
+
the top light turns into a dark inset. */
|
|
93
|
+
--primary-shadow-pressed:
|
|
94
|
+
0 0 0 #2a2a2a00, 0 0 0 1px #0e0e0e, inset 0 2px 6px #0000004d, inset 0 0 0 1px #ffffff1a,
|
|
95
|
+
inset 0 -8px 14px #00000000;
|
|
96
|
+
|
|
97
|
+
/* ── Drawing: grids, guides, light ────────────────────────── */
|
|
98
|
+
--grid-line: #0a0a0a0f;
|
|
99
|
+
--grid-bright: #0a0a0a42;
|
|
100
|
+
--guide: #0a0a0a29;
|
|
101
|
+
--ink-ghost: #0a0a0a14;
|
|
102
|
+
--glow: #fffffff2;
|
|
103
|
+
--grain-opacity: 0.35;
|
|
104
|
+
/* The light from above on the page ground (body). None on a light page: white on white. */
|
|
105
|
+
--page-glow: transparent;
|
|
106
|
+
/* Overlay and screen vanish on a light ground: the page grain multiplies there instead. */
|
|
107
|
+
--page-grain-blend: multiply;
|
|
108
|
+
--page-grain-opacity: 0.1;
|
|
109
|
+
/* The page ground as one flat colour: what the grain over --background averages to. The
|
|
110
|
+
browser's own bars take it (theme-color, kept in step by themeScript and ThemeProvider), and
|
|
111
|
+
so does whatever of the page the browser shows past its edges. Re-measure when the
|
|
112
|
+
background or the grain changes. */
|
|
113
|
+
--page-tone: #f9f9f9;
|
|
114
|
+
|
|
115
|
+
/* ── Isometric illustrations (<Illustration name="iso/…">) ───────────── */
|
|
116
|
+
|
|
117
|
+
/* ── Data ─────────────────────────────────────────────────── */
|
|
118
|
+
--chart-1: oklch(0.205 0 0);
|
|
119
|
+
--chart-2: oklch(0.38 0 0);
|
|
120
|
+
--chart-3: oklch(0.52 0 0);
|
|
121
|
+
--chart-4: oklch(0.66 0 0);
|
|
122
|
+
--chart-5: oklch(0.8 0 0);
|
|
123
|
+
|
|
124
|
+
/* ── Type ─────────────────────────────────────────────────── */
|
|
125
|
+
--font-heading: "Licht", "Iowan Old Style", Georgia, serif;
|
|
126
|
+
--font-body: "Licht Sans", ui-sans-serif, system-ui, sans-serif;
|
|
127
|
+
--font-mono: "Licht Mono", ui-monospace, "SF Mono", monospace;
|
|
128
|
+
|
|
129
|
+
/* ── Geometry ─────────────────────────────────────────────── */
|
|
130
|
+
--radius-button: 12px; /* text buttons, menus, toasts, nav rows, panels */
|
|
131
|
+
--radius-control: 10px; /* inputs, textareas, select triggers */
|
|
132
|
+
--radius-item: 7px; /* select/menu items, segments, tags, swatches */
|
|
133
|
+
--radius-checkbox: 5px;
|
|
134
|
+
--radius-card: 20px; /* objects: cards, tables, form panels */
|
|
135
|
+
--radius-region: 0px; /* regions are square */
|
|
136
|
+
|
|
137
|
+
--control-h-sm: 30px; /* dense */
|
|
138
|
+
--control-h: 38px; /* default */
|
|
139
|
+
--control-h-lg: 46px; /* prominent */
|
|
140
|
+
--icon-button: 36px;
|
|
141
|
+
|
|
142
|
+
--container: 80rem;
|
|
143
|
+
--gutter: 24px;
|
|
144
|
+
--section-pad: clamp(3.5rem, 7vw, 7rem);
|
|
145
|
+
|
|
146
|
+
/* ── Motion ───────────────────────────────────────────────── */
|
|
147
|
+
--ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
148
|
+
--duration: 150ms;
|
|
149
|
+
--duration-reveal: 420ms;
|
|
150
|
+
|
|
151
|
+
/* ── The zon mark ─────────────────────────────────────────── */
|
|
152
|
+
/* One flat colour: the ink of zon.sh/logo-ink.svg here, the light of logo.svg on dark grounds. */
|
|
153
|
+
--logo: #141414;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* A night region (.theme-night, below) takes every dark token too, then deepens the ground and
|
|
157
|
+
inks; otherwise a primary, a card or a chart inside it on a light page would keep light values. */
|
|
158
|
+
.dark,
|
|
159
|
+
[data-theme="dark"],
|
|
160
|
+
.theme-dark,
|
|
161
|
+
.theme-night {
|
|
162
|
+
color-scheme: dark;
|
|
163
|
+
|
|
164
|
+
--background: oklch(0.07 0 0);
|
|
165
|
+
--foreground: oklch(0.985 0 0);
|
|
166
|
+
--foreground-soft: oklch(0.75 0 0);
|
|
167
|
+
--muted-foreground: oklch(0.66 0 0);
|
|
168
|
+
--card: oklch(0.115 0 0);
|
|
169
|
+
--card-foreground: oklch(0.985 0 0);
|
|
170
|
+
--popover: oklch(0.115 0 0);
|
|
171
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
172
|
+
--primary: oklch(0.985 0 0);
|
|
173
|
+
--primary-foreground: oklch(0.145 0 0);
|
|
174
|
+
--secondary: oklch(0.16 0 0);
|
|
175
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
176
|
+
--muted: oklch(0.155 0 0);
|
|
177
|
+
--accent: oklch(0.18 0 0);
|
|
178
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
179
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
180
|
+
--success: oklch(0.76 0.16 152);
|
|
181
|
+
--warning: oklch(0.78 0.15 75);
|
|
182
|
+
--info: oklch(0.74 0.14 245);
|
|
183
|
+
--tone-blue: oklch(0.74 0.14 245);
|
|
184
|
+
--tone-aqua: oklch(0.78 0.12 195);
|
|
185
|
+
--tone-violet: oklch(0.75 0.15 300);
|
|
186
|
+
--tone-magenta: oklch(0.74 0.18 340);
|
|
187
|
+
--tone-orange: oklch(0.76 0.15 50);
|
|
188
|
+
--tone-lime: oklch(0.8 0.16 130);
|
|
189
|
+
--border: oklch(1 0 0 / 10%);
|
|
190
|
+
--input: oklch(1 0 0 / 14%);
|
|
191
|
+
--ring: oklch(0.556 0 0);
|
|
192
|
+
|
|
193
|
+
--control-surface: #1e1e1e;
|
|
194
|
+
--control-hover: #2a2a2a;
|
|
195
|
+
--control-pressed: #1e1e1e;
|
|
196
|
+
--control-edge: #000000a6;
|
|
197
|
+
--control-highlight: #ffffff1a;
|
|
198
|
+
--control-inner-edge: #ffffff0f;
|
|
199
|
+
--control-menu: #1e1e1e;
|
|
200
|
+
--control-muted: #a3a3a3;
|
|
201
|
+
--control-focus: #999999;
|
|
202
|
+
--control-thumb: #8f8f8f; /* light enough to read on the #161616 track */
|
|
203
|
+
--control-thumb-on: #1c1c1c; /* dark thumb on the near-white checked track */
|
|
204
|
+
|
|
205
|
+
--field-surface: #161616;
|
|
206
|
+
--field-edge: #393939;
|
|
207
|
+
--field-inset: #00000038;
|
|
208
|
+
|
|
209
|
+
/* The dark primary mirrors the light one by perceived contrast (OKLab L), not by inverting
|
|
210
|
+
* colours: the fill sits as far from the page as #292929 does in light mode, and leaves the
|
|
211
|
+
* white glow and rim the same headroom to read (+0.16 / +0.14 L). A fill near white (#ededed)
|
|
212
|
+
* left them nowhere to go and the button went flat. Hover brightens only a little, for the
|
|
213
|
+
* same reason. */
|
|
214
|
+
--primary-fill: #cbcbcb;
|
|
215
|
+
--primary-fill-hover: #d5d5d5;
|
|
216
|
+
--primary-fill-pressed: #b9b9b9;
|
|
217
|
+
--primary-text: #171717;
|
|
218
|
+
--primary-text-shadow: 0 1px 0 #ffffffb3;
|
|
219
|
+
--primary-shadow:
|
|
220
|
+
0 4px 4px #00000073, 0 0 0 1px #000000, inset 0 4px 7px #ffffff, inset 0 0 0 1px #ffffffe6,
|
|
221
|
+
inset 0 -8px 14px #0000000b;
|
|
222
|
+
--primary-shadow-pressed:
|
|
223
|
+
0 0 0 #00000000, 0 0 0 1px #000000, inset 0 2px 6px #00000059, inset 0 0 0 1px #ffffff66,
|
|
224
|
+
inset 0 -8px 14px #00000000;
|
|
225
|
+
|
|
226
|
+
--grid-line: #ffffff0d;
|
|
227
|
+
--grid-bright: #ffffff38;
|
|
228
|
+
--guide: #ffffff29;
|
|
229
|
+
--ink-ghost: #ffffff12;
|
|
230
|
+
--glow: #ffffff1f;
|
|
231
|
+
--grain-opacity: 0.55;
|
|
232
|
+
--page-glow: rgb(255 255 255 / 0.035);
|
|
233
|
+
--page-grain-blend: overlay;
|
|
234
|
+
--page-grain-opacity: calc(var(--grain-opacity) * 1.5);
|
|
235
|
+
--page-tone: #141414;
|
|
236
|
+
|
|
237
|
+
/* re-declared so var(--background) resolves inside dark regions, not at :root */
|
|
238
|
+
|
|
239
|
+
--chart-1: oklch(0.985 0 0);
|
|
240
|
+
--chart-2: oklch(0.8 0 0);
|
|
241
|
+
--chart-3: oklch(0.66 0 0);
|
|
242
|
+
--chart-4: oklch(0.52 0 0);
|
|
243
|
+
--chart-5: oklch(0.38 0 0);
|
|
244
|
+
|
|
245
|
+
--logo: #f6f6f4;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Night: the deepest ground, used by the Footer block and dark specimen sheets. On top of the dark
|
|
249
|
+
tokens; later in the file, so these win. */
|
|
250
|
+
.theme-night {
|
|
251
|
+
color-scheme: dark;
|
|
252
|
+
--background: #040404;
|
|
253
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
254
|
+
--success: oklch(0.76 0.16 152);
|
|
255
|
+
--warning: oklch(0.78 0.15 75);
|
|
256
|
+
--info: oklch(0.74 0.14 245);
|
|
257
|
+
--tone-blue: oklch(0.74 0.14 245);
|
|
258
|
+
--tone-aqua: oklch(0.78 0.12 195);
|
|
259
|
+
--tone-violet: oklch(0.75 0.15 300);
|
|
260
|
+
--tone-magenta: oklch(0.74 0.18 340);
|
|
261
|
+
--tone-orange: oklch(0.76 0.15 50);
|
|
262
|
+
--tone-lime: oklch(0.8 0.16 130);
|
|
263
|
+
--foreground: #fafafa;
|
|
264
|
+
--foreground-soft: #aeaeae;
|
|
265
|
+
--muted-foreground: #929292;
|
|
266
|
+
--border: #ffffff1a;
|
|
267
|
+
--control-surface: #1e1e1e;
|
|
268
|
+
--control-hover: #2a2a2a;
|
|
269
|
+
--control-pressed: #1e1e1e;
|
|
270
|
+
--control-edge: #000000a6;
|
|
271
|
+
--control-highlight: #ffffff1a;
|
|
272
|
+
--control-inner-edge: #ffffff0f;
|
|
273
|
+
--control-focus: #999999;
|
|
274
|
+
--control-thumb: #8f8f8f;
|
|
275
|
+
--control-thumb-on: #1c1c1c;
|
|
276
|
+
--field-surface: #161616;
|
|
277
|
+
--field-edge: #393939;
|
|
278
|
+
--field-inset: #00000038;
|
|
279
|
+
--grid-line: #ffffff0d;
|
|
280
|
+
--grid-bright: #ffffff38;
|
|
281
|
+
--guide: #ffffff29;
|
|
282
|
+
/* Lower than dark: on a #040404 ground the default reads as grey static. */
|
|
283
|
+
--grain-opacity: 0.3;
|
|
284
|
+
--page-glow: rgb(255 255 255 / 0.035);
|
|
285
|
+
--page-grain-blend: overlay;
|
|
286
|
+
--page-grain-opacity: calc(var(--grain-opacity) * 1.5);
|
|
287
|
+
--page-tone: #0f0f0f;
|
|
288
|
+
|
|
289
|
+
--logo: #f6f6f4;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* .theme-light sets the durations again, so a forced light scope is named here too. */
|
|
293
|
+
@media (prefers-reduced-motion: reduce) {
|
|
294
|
+
:root,
|
|
295
|
+
.theme-light {
|
|
296
|
+
--duration: 0ms;
|
|
297
|
+
--duration-reveal: 0ms;
|
|
298
|
+
}
|
|
299
|
+
}
|
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vite helper: proxies the Licht faces (Licht, Licht Sans, Licht Mono …) from zon.sh to the app's own origin.
|
|
3
|
+
*
|
|
4
|
+
* import { zonFonts } from "@zonsh/ui/vite";
|
|
5
|
+
* export default defineConfig({ plugins: [react(), tailwindcss(), zonFonts()] });
|
|
6
|
+
*
|
|
7
|
+
* The browser only ever requests /licht/fonts/*.woff2 from your origin, so no visitor IP
|
|
8
|
+
* reaches a third-party host before consent. In production, mirror this with a rewrite on
|
|
9
|
+
* your host (Vercel/Netlify/nginx): /licht/fonts/* → https://www.zon.sh/licht/fonts/*
|
|
10
|
+
*/
|
|
11
|
+
export declare const LICHT_ORIGIN = "https://www.zon.sh";
|
|
12
|
+
export declare function zonFonts(options?: {
|
|
13
|
+
origin?: string;
|
|
14
|
+
}): {
|
|
15
|
+
name: string;
|
|
16
|
+
config(config: {
|
|
17
|
+
build?: {
|
|
18
|
+
rollupOptions?: {
|
|
19
|
+
external?: unknown;
|
|
20
|
+
};
|
|
21
|
+
rolldownOptions?: {
|
|
22
|
+
external?: unknown;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}): {
|
|
26
|
+
build?: undefined;
|
|
27
|
+
server: {
|
|
28
|
+
proxy: {
|
|
29
|
+
"/licht/fonts": {
|
|
30
|
+
target: string;
|
|
31
|
+
changeOrigin: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
preview: {
|
|
36
|
+
proxy: {
|
|
37
|
+
"/licht/fonts": {
|
|
38
|
+
target: string;
|
|
39
|
+
changeOrigin: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
build: {
|
|
45
|
+
rollupOptions: {
|
|
46
|
+
external: RegExp[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
server: {
|
|
50
|
+
proxy: {
|
|
51
|
+
"/licht/fonts": {
|
|
52
|
+
target: string;
|
|
53
|
+
changeOrigin: boolean;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
preview: {
|
|
58
|
+
proxy: {
|
|
59
|
+
"/licht/fonts": {
|
|
60
|
+
target: string;
|
|
61
|
+
changeOrigin: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
package/dist/vite.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vite helper: proxies the Licht faces (Licht, Licht Sans, Licht Mono …) from zon.sh to the app's own origin.
|
|
3
|
+
*
|
|
4
|
+
* import { zonFonts } from "@zonsh/ui/vite";
|
|
5
|
+
* export default defineConfig({ plugins: [react(), tailwindcss(), zonFonts()] });
|
|
6
|
+
*
|
|
7
|
+
* The browser only ever requests /licht/fonts/*.woff2 from your origin, so no visitor IP
|
|
8
|
+
* reaches a third-party host before consent. In production, mirror this with a rewrite on
|
|
9
|
+
* your host (Vercel/Netlify/nginx): /licht/fonts/* → https://www.zon.sh/licht/fonts/*
|
|
10
|
+
*/
|
|
11
|
+
export const LICHT_ORIGIN = "https://www.zon.sh";
|
|
12
|
+
export function zonFonts(options = {}) {
|
|
13
|
+
const origin = options.origin ?? LICHT_ORIGIN;
|
|
14
|
+
// zon.sh serves the faces at the same path, /licht/fonts/*, so the path passes through as is.
|
|
15
|
+
const proxy = { "/licht/fonts": { target: origin, changeOrigin: true } };
|
|
16
|
+
return {
|
|
17
|
+
name: "zon-fonts",
|
|
18
|
+
config(config) {
|
|
19
|
+
// A build leaves the stylesheet's /licht/fonts/* URLs as they are, for the host's rewrite;
|
|
20
|
+
// marked external, Vite stops warning that it couldn't resolve them. A function `external`
|
|
21
|
+
// of the app's own can't be merged with a list, so then the warnings stay.
|
|
22
|
+
const external = config.build?.rolldownOptions?.external ?? config.build?.rollupOptions?.external;
|
|
23
|
+
const build = typeof external === "function"
|
|
24
|
+
? {}
|
|
25
|
+
: { build: { rollupOptions: { external: [/^\/licht\/fonts\//] } } };
|
|
26
|
+
return { server: { proxy }, preview: { proxy }, ...build };
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,187 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zonsh/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "zon component library — Base UI primitives in the zon material.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"repository": {
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/zonsh/ui.git",
|
|
9
|
+
"directory": "packages/ui"
|
|
10
|
+
},
|
|
7
11
|
"homepage": "https://zon.sh/ui",
|
|
8
|
-
"
|
|
9
|
-
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/zonsh/ui/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"react",
|
|
17
|
+
"components",
|
|
18
|
+
"design-system",
|
|
19
|
+
"tailwindcss",
|
|
20
|
+
"base-ui",
|
|
21
|
+
"zon"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css",
|
|
26
|
+
"./dist/lib/pdf-worker.js"
|
|
27
|
+
],
|
|
28
|
+
"main": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./calendar": {
|
|
36
|
+
"types": "./dist/components/calendar.d.ts",
|
|
37
|
+
"default": "./dist/components/calendar.js"
|
|
38
|
+
},
|
|
39
|
+
"./carousel": {
|
|
40
|
+
"types": "./dist/components/carousel.d.ts",
|
|
41
|
+
"default": "./dist/components/carousel.js"
|
|
42
|
+
},
|
|
43
|
+
"./chart": {
|
|
44
|
+
"types": "./dist/components/chart.d.ts",
|
|
45
|
+
"default": "./dist/components/chart.js"
|
|
46
|
+
},
|
|
47
|
+
"./data-table": {
|
|
48
|
+
"types": "./dist/components/data-table.d.ts",
|
|
49
|
+
"default": "./dist/components/data-table.js"
|
|
50
|
+
},
|
|
51
|
+
"./date-picker": {
|
|
52
|
+
"types": "./dist/components/date-picker.d.ts",
|
|
53
|
+
"default": "./dist/components/date-picker.js"
|
|
54
|
+
},
|
|
55
|
+
"./filter-bar": {
|
|
56
|
+
"types": "./dist/components/filter-bar.d.ts",
|
|
57
|
+
"default": "./dist/components/filter-bar.js"
|
|
58
|
+
},
|
|
59
|
+
"./pdf-viewer": {
|
|
60
|
+
"types": "./dist/components/pdf-viewer.d.ts",
|
|
61
|
+
"default": "./dist/components/pdf-viewer.js"
|
|
62
|
+
},
|
|
63
|
+
"./resizable": {
|
|
64
|
+
"types": "./dist/components/resizable.d.ts",
|
|
65
|
+
"default": "./dist/components/resizable.js"
|
|
66
|
+
},
|
|
67
|
+
"./graph": {
|
|
68
|
+
"types": "./dist/components/graph.d.ts",
|
|
69
|
+
"default": "./dist/components/graph.js"
|
|
70
|
+
},
|
|
71
|
+
"./illustration": {
|
|
72
|
+
"types": "./dist/illustration.d.ts",
|
|
73
|
+
"default": "./dist/illustration.js"
|
|
74
|
+
},
|
|
75
|
+
"./tippy": {
|
|
76
|
+
"types": "./dist/components/tippy.d.ts",
|
|
77
|
+
"default": "./dist/components/tippy.js"
|
|
78
|
+
},
|
|
79
|
+
"./messages/de": {
|
|
80
|
+
"types": "./dist/messages/de.d.ts",
|
|
81
|
+
"default": "./dist/messages/de.js"
|
|
82
|
+
},
|
|
83
|
+
"./styles.css": "./dist/styles/index.css",
|
|
84
|
+
"./tokens.css": "./dist/styles/tokens.css",
|
|
85
|
+
"./vite": {
|
|
86
|
+
"types": "./dist/vite.d.ts",
|
|
87
|
+
"default": "./dist/vite.js"
|
|
88
|
+
},
|
|
89
|
+
"./assets/*": "./assets/*",
|
|
90
|
+
"./package.json": "./package.json"
|
|
91
|
+
},
|
|
92
|
+
"files": [
|
|
93
|
+
"dist",
|
|
94
|
+
"assets",
|
|
95
|
+
"README.md",
|
|
96
|
+
"LICENSE"
|
|
97
|
+
],
|
|
98
|
+
"publishConfig": {
|
|
99
|
+
"access": "public"
|
|
100
|
+
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"@dagrejs/dagre": "^3.1.1",
|
|
103
|
+
"@tanstack/react-table": "^9.2.6",
|
|
104
|
+
"@xyflow/react": "^12.12.0",
|
|
105
|
+
"d3-force": "^3.0.0",
|
|
106
|
+
"date-fns": "^4.4.0",
|
|
107
|
+
"embla-carousel-react": "^8.6.0",
|
|
108
|
+
"pdfjs-dist": "^6.4.299",
|
|
109
|
+
"react": ">=19",
|
|
110
|
+
"react-day-picker": "^10.0.2",
|
|
111
|
+
"react-dom": ">=19",
|
|
112
|
+
"react-resizable-panels": "^4.14.2",
|
|
113
|
+
"recharts": "^3.10.1",
|
|
114
|
+
"tailwindcss": "^4.1.15",
|
|
115
|
+
"vite": ">=6"
|
|
116
|
+
},
|
|
117
|
+
"peerDependenciesMeta": {
|
|
118
|
+
"@dagrejs/dagre": {
|
|
119
|
+
"optional": true
|
|
120
|
+
},
|
|
121
|
+
"@tanstack/react-table": {
|
|
122
|
+
"optional": true
|
|
123
|
+
},
|
|
124
|
+
"@xyflow/react": {
|
|
125
|
+
"optional": true
|
|
126
|
+
},
|
|
127
|
+
"d3-force": {
|
|
128
|
+
"optional": true
|
|
129
|
+
},
|
|
130
|
+
"date-fns": {
|
|
131
|
+
"optional": true
|
|
132
|
+
},
|
|
133
|
+
"embla-carousel-react": {
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
136
|
+
"pdfjs-dist": {
|
|
137
|
+
"optional": true
|
|
138
|
+
},
|
|
139
|
+
"react-day-picker": {
|
|
140
|
+
"optional": true
|
|
141
|
+
},
|
|
142
|
+
"react-resizable-panels": {
|
|
143
|
+
"optional": true
|
|
144
|
+
},
|
|
145
|
+
"recharts": {
|
|
146
|
+
"optional": true
|
|
147
|
+
},
|
|
148
|
+
"vite": {
|
|
149
|
+
"optional": true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"dependencies": {
|
|
153
|
+
"@base-ui/react": "^1.9.0",
|
|
154
|
+
"@tanstack/react-virtual": "^3.14.26",
|
|
155
|
+
"clsx": "^2.1.1",
|
|
156
|
+
"lucide-react": "^1.67.0",
|
|
157
|
+
"marked": "^18.1.3",
|
|
158
|
+
"shiki": "^4.6.0",
|
|
159
|
+
"tailwind-merge": "^3.7.0"
|
|
160
|
+
},
|
|
161
|
+
"devDependencies": {
|
|
162
|
+
"@dagrejs/dagre": "^3.1.3",
|
|
163
|
+
"@tanstack/react-table": "^9.3.1",
|
|
164
|
+
"@types/d3-force": "3.0.10",
|
|
165
|
+
"@types/node": "^26.6.6",
|
|
166
|
+
"@types/react": "^19.3.0",
|
|
167
|
+
"@types/react-dom": "^19.3.0",
|
|
168
|
+
"@xyflow/react": "^12.12.1",
|
|
169
|
+
"d3-force": "^3.0.1",
|
|
170
|
+
"date-fns": "^4.4.0",
|
|
171
|
+
"embla-carousel-react": "^8.6.0",
|
|
172
|
+
"pdfjs-dist": "^6.5.438",
|
|
173
|
+
"react": "^19.3.1",
|
|
174
|
+
"react-day-picker": "^10.0.2",
|
|
175
|
+
"react-dom": "^19.3.1",
|
|
176
|
+
"react-resizable-panels": "^4.17.0",
|
|
177
|
+
"recharts": "^3.10.1",
|
|
178
|
+
"tailwindcss": "^4.3.4",
|
|
179
|
+
"typescript": "^7.0.2",
|
|
180
|
+
"vite": "^8.3.5"
|
|
181
|
+
},
|
|
182
|
+
"scripts": {
|
|
183
|
+
"gen:index": "node ../../scripts/gen-index.mjs",
|
|
184
|
+
"typecheck": "node ../../scripts/gen-index.mjs && tsc --noEmit -p .",
|
|
185
|
+
"build": "node ../../scripts/build-ui.mjs"
|
|
186
|
+
}
|
|
187
|
+
}
|