@ripple-ui/svelte 0.0.0-stage → 0.8.2
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 +21 -0
- package/NOTICE +94 -0
- package/README.md +316 -2
- package/dist/Ripple.svelte +483 -0
- package/dist/Ripple.svelte.d.ts +71 -0
- package/dist/actions/index.d.ts +7 -0
- package/dist/actions/index.js +7 -0
- package/dist/actions/reorderable.d.ts +27 -0
- package/dist/actions/reorderable.js +240 -0
- package/dist/actions/with-motion.d.ts +21 -0
- package/dist/actions/with-motion.js +522 -0
- package/dist/assets/favicon.svg +1 -0
- package/dist/assets/glass.css +46 -0
- package/dist/build/page-audit.d.ts +29 -0
- package/dist/build/page-audit.entry.d.ts +1 -0
- package/dist/build/page-audit.entry.js +7 -0
- package/dist/build/page-audit.js +178 -0
- package/dist/components/NodeRenderer.svelte +669 -0
- package/dist/components/NodeRenderer.svelte.d.ts +10 -0
- package/dist/components/ui/accordion/accordion-content.svelte +32 -0
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -0
- package/dist/components/ui/accordion/accordion-item.svelte +17 -0
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -0
- package/dist/components/ui/accordion/accordion-trigger.svelte +32 -0
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +8 -0
- package/dist/components/ui/accordion/accordion.svelte +19 -0
- package/dist/components/ui/accordion/accordion.svelte.d.ts +4 -0
- package/dist/components/ui/accordion/index.d.ts +5 -0
- package/dist/components/ui/accordion/index.js +7 -0
- package/dist/components/ui/alert/alert-action.svelte +20 -0
- package/dist/components/ui/alert/alert-action.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert-description.svelte +23 -0
- package/dist/components/ui/alert/alert-description.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert-title.svelte +23 -0
- package/dist/components/ui/alert/alert-title.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert.svelte +49 -0
- package/dist/components/ui/alert/alert.svelte.d.ts +26 -0
- package/dist/components/ui/alert/index.d.ts +6 -0
- package/dist/components/ui/alert/index.js +8 -0
- package/dist/components/ui/avatar/avatar-badge.svelte +26 -0
- package/dist/components/ui/avatar/avatar-badge.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte +20 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte.d.ts +4 -0
- package/dist/components/ui/avatar/avatar-group-count.svelte +23 -0
- package/dist/components/ui/avatar/avatar-group-count.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-group.svelte +23 -0
- package/dist/components/ui/avatar/avatar-group.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-image.svelte +17 -0
- package/dist/components/ui/avatar/avatar-image.svelte.d.ts +4 -0
- package/dist/components/ui/avatar/avatar.svelte +26 -0
- package/dist/components/ui/avatar/avatar.svelte.d.ts +7 -0
- package/dist/components/ui/avatar/index.d.ts +7 -0
- package/dist/components/ui/avatar/index.js +9 -0
- package/dist/components/ui/badge/badge.svelte +61 -0
- package/dist/components/ui/badge/badge.svelte.d.ts +44 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/badge/index.js +2 -0
- package/dist/components/ui/button/button.svelte +92 -0
- package/dist/components/ui/button/button.svelte.d.ts +73 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button/index.js +4 -0
- package/dist/components/ui/card/card-action.svelte +23 -0
- package/dist/components/ui/card/card-action.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-content.svelte +20 -0
- package/dist/components/ui/card/card-content.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-description.svelte +20 -0
- package/dist/components/ui/card/card-description.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-footer.svelte +20 -0
- package/dist/components/ui/card/card-footer.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-header.svelte +23 -0
- package/dist/components/ui/card/card-header.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-title.svelte +15 -0
- package/dist/components/ui/card/card-title.svelte.d.ts +5 -0
- package/dist/components/ui/card/card.svelte +22 -0
- package/dist/components/ui/card/card.svelte.d.ts +8 -0
- package/dist/components/ui/card/index.d.ts +8 -0
- package/dist/components/ui/card/index.js +10 -0
- package/dist/components/ui/chart/chart-container.svelte +83 -0
- package/dist/components/ui/chart/chart-container.svelte.d.ts +9 -0
- package/dist/components/ui/chart/chart-style.svelte +37 -0
- package/dist/components/ui/chart/chart-style.svelte.d.ts +8 -0
- package/dist/components/ui/chart/chart-tooltip.svelte +166 -0
- package/dist/components/ui/chart/chart-tooltip.svelte.d.ts +27 -0
- package/dist/components/ui/chart/chart-utils.d.ts +36 -0
- package/dist/components/ui/chart/chart-utils.js +33 -0
- package/dist/components/ui/chart/index.d.ts +4 -0
- package/dist/components/ui/chart/index.js +4 -0
- package/dist/components/ui/checkbox/checkbox.svelte +44 -0
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -0
- package/dist/components/ui/checkbox/index.d.ts +2 -0
- package/dist/components/ui/checkbox/index.js +4 -0
- package/dist/components/ui/chip.d.ts +5 -0
- package/dist/components/ui/chip.js +12 -0
- package/dist/components/ui/command/command-dialog.svelte +45 -0
- package/dist/components/ui/command/command-dialog.svelte.d.ts +12 -0
- package/dist/components/ui/command/command-empty.svelte +17 -0
- package/dist/components/ui/command/command-empty.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-group.svelte +32 -0
- package/dist/components/ui/command/command-group.svelte.d.ts +7 -0
- package/dist/components/ui/command/command-input.svelte +26 -0
- package/dist/components/ui/command/command-input.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-item.svelte +20 -0
- package/dist/components/ui/command/command-item.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-link-item.svelte +20 -0
- package/dist/components/ui/command/command-link-item.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-list.svelte +17 -0
- package/dist/components/ui/command/command-list.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-loading.svelte +7 -0
- package/dist/components/ui/command/command-loading.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-separator.svelte +17 -0
- package/dist/components/ui/command/command-separator.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-shortcut.svelte +20 -0
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/command/command.svelte +36 -0
- package/dist/components/ui/command/command.svelte.d.ts +8 -0
- package/dist/components/ui/command/index.d.ts +12 -0
- package/dist/components/ui/command/index.js +17 -0
- package/dist/components/ui/confirm-dialog/confirm-dialog.svelte +44 -0
- package/dist/components/ui/confirm-dialog/confirm-dialog.svelte.d.ts +18 -0
- package/dist/components/ui/confirm-dialog/confirm-dialog.svelte.js +75 -0
- package/dist/components/ui/confirm-dialog/index.d.ts +2 -0
- package/dist/components/ui/confirm-dialog/index.js +6 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +49 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +9 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte +38 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +10 -0
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte +27 -0
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-group.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-group.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte +42 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte +29 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-portal.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-portal.svelte.d.ts +3 -0
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte +21 -0
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte +38 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte +22 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +25 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte +28 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +35 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-sub.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-sub.svelte.d.ts +3 -0
- package/dist/components/ui/context-menu/context-menu-trigger.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu.svelte +13 -0
- package/dist/components/ui/context-menu/context-menu.svelte.d.ts +3 -0
- package/dist/components/ui/context-menu/index.d.ts +17 -0
- package/dist/components/ui/context-menu/index.js +24 -0
- package/dist/components/ui/control.d.ts +4 -0
- package/dist/components/ui/control.js +11 -0
- package/dist/components/ui/dialog/dialog-close.svelte +11 -0
- package/dist/components/ui/dialog/dialog-close.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-content.svelte +68 -0
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +15 -0
- package/dist/components/ui/dialog/dialog-description.svelte +19 -0
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-footer.svelte +32 -0
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +8 -0
- package/dist/components/ui/dialog/dialog-header.svelte +20 -0
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte +22 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-portal.svelte +7 -0
- package/dist/components/ui/dialog/dialog-portal.svelte.d.ts +3 -0
- package/dist/components/ui/dialog/dialog-title.svelte +17 -0
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-trigger.svelte +11 -0
- package/dist/components/ui/dialog/dialog-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog.svelte +7 -0
- package/dist/components/ui/dialog/dialog.svelte.d.ts +3 -0
- package/dist/components/ui/dialog/index.d.ts +11 -0
- package/dist/components/ui/dialog/index.js +13 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte +16 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +43 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +9 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +37 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +22 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +33 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +24 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-portal.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-portal.svelte.d.ts +3 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +16 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +33 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +17 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +20 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +28 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +29 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub.svelte.d.ts +3 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.svelte.d.ts +3 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/index.js +21 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte +43 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +10 -0
- package/dist/components/ui/hover-card/hover-card-portal.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card-portal.svelte.d.ts +3 -0
- package/dist/components/ui/hover-card/hover-card-trigger.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/hover-card/hover-card.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card.svelte.d.ts +3 -0
- package/dist/components/ui/hover-card/index.d.ts +5 -0
- package/dist/components/ui/hover-card/index.js +5 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/index.js +4 -0
- package/dist/components/ui/input/input.svelte +48 -0
- package/dist/components/ui/input/input.svelte.d.ts +13 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.js +5 -0
- package/dist/components/ui/label/label.svelte +25 -0
- package/dist/components/ui/label/label.svelte.d.ts +4 -0
- package/dist/components/ui/popover/index.d.ts +9 -0
- package/dist/components/ui/popover/index.js +11 -0
- package/dist/components/ui/popover/popover-close.svelte +7 -0
- package/dist/components/ui/popover/popover-close.svelte.d.ts +4 -0
- package/dist/components/ui/popover/popover-content.svelte +43 -0
- package/dist/components/ui/popover/popover-content.svelte.d.ts +10 -0
- package/dist/components/ui/popover/popover-description.svelte +20 -0
- package/dist/components/ui/popover/popover-description.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-header.svelte +20 -0
- package/dist/components/ui/popover/popover-header.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-portal.svelte +7 -0
- package/dist/components/ui/popover/popover-portal.svelte.d.ts +3 -0
- package/dist/components/ui/popover/popover-title.svelte +20 -0
- package/dist/components/ui/popover/popover-title.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-trigger.svelte +17 -0
- package/dist/components/ui/popover/popover-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/popover/popover.svelte +7 -0
- package/dist/components/ui/popover/popover.svelte.d.ts +3 -0
- package/dist/components/ui/progress/index.d.ts +2 -0
- package/dist/components/ui/progress/index.js +4 -0
- package/dist/components/ui/progress/progress.svelte +34 -0
- package/dist/components/ui/progress/progress.svelte.d.ts +9 -0
- package/dist/components/ui/radio-group/index.d.ts +3 -0
- package/dist/components/ui/radio-group/index.js +5 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte +34 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -0
- package/dist/components/ui/radio-group/radio-group.svelte +19 -0
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/select/index.d.ts +12 -0
- package/dist/components/ui/select/index.js +14 -0
- package/dist/components/ui/select/select-content.svelte +50 -0
- package/dist/components/ui/select/select-content.svelte.d.ts +11 -0
- package/dist/components/ui/select/select-group-heading.svelte +21 -0
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +10 -0
- package/dist/components/ui/select/select-group.svelte +17 -0
- package/dist/components/ui/select/select-group.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-item.svelte +38 -0
- package/dist/components/ui/select/select-item.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-label.svelte +20 -0
- package/dist/components/ui/select/select-label.svelte.d.ts +6 -0
- package/dist/components/ui/select/select-portal.svelte +7 -0
- package/dist/components/ui/select/select-portal.svelte.d.ts +3 -0
- package/dist/components/ui/select/select-scroll-down-button.svelte +20 -0
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-scroll-up-button.svelte +20 -0
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-separator.svelte +18 -0
- package/dist/components/ui/select/select-separator.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-trigger.svelte +29 -0
- package/dist/components/ui/select/select-trigger.svelte.d.ts +8 -0
- package/dist/components/ui/select/select.svelte +11 -0
- package/dist/components/ui/select/select.svelte.d.ts +3 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/index.js +4 -0
- package/dist/components/ui/separator/separator.svelte +23 -0
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/index.d.ts +11 -0
- package/dist/components/ui/sheet/index.js +13 -0
- package/dist/components/ui/sheet/sheet-close.svelte +7 -0
- package/dist/components/ui/sheet/sheet-close.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-content.svelte +104 -0
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +18 -0
- package/dist/components/ui/sheet/sheet-description.svelte +17 -0
- package/dist/components/ui/sheet/sheet-description.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-footer.svelte +20 -0
- package/dist/components/ui/sheet/sheet-footer.svelte.d.ts +5 -0
- package/dist/components/ui/sheet/sheet-header.svelte +20 -0
- package/dist/components/ui/sheet/sheet-header.svelte.d.ts +5 -0
- package/dist/components/ui/sheet/sheet-overlay.svelte +17 -0
- package/dist/components/ui/sheet/sheet-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-portal.svelte +7 -0
- package/dist/components/ui/sheet/sheet-portal.svelte.d.ts +3 -0
- package/dist/components/ui/sheet/sheet-title.svelte +17 -0
- package/dist/components/ui/sheet/sheet-title.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-trigger.svelte +7 -0
- package/dist/components/ui/sheet/sheet-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet.svelte +7 -0
- package/dist/components/ui/sheet/sheet.svelte.d.ts +3 -0
- package/dist/components/ui/slider/index.d.ts +2 -0
- package/dist/components/ui/slider/index.js +4 -0
- package/dist/components/ui/slider/slider.svelte +65 -0
- package/dist/components/ui/slider/slider.svelte.d.ts +9 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.js +4 -0
- package/dist/components/ui/switch/switch.svelte +36 -0
- package/dist/components/ui/switch/switch.svelte.d.ts +8 -0
- package/dist/components/ui/table/index.d.ts +9 -0
- package/dist/components/ui/table/index.js +11 -0
- package/dist/components/ui/table/table-body.svelte +15 -0
- package/dist/components/ui/table/table-body.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-caption.svelte +20 -0
- package/dist/components/ui/table/table-caption.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-cell.svelte +15 -0
- package/dist/components/ui/table/table-cell.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-footer.svelte +20 -0
- package/dist/components/ui/table/table-footer.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-head.svelte +15 -0
- package/dist/components/ui/table/table-head.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-header.svelte +20 -0
- package/dist/components/ui/table/table-header.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-row.svelte +15 -0
- package/dist/components/ui/table/table-row.svelte.d.ts +5 -0
- package/dist/components/ui/table/table.svelte +17 -0
- package/dist/components/ui/table/table.svelte.d.ts +5 -0
- package/dist/components/ui/tabs/index.d.ts +5 -0
- package/dist/components/ui/tabs/index.js +7 -0
- package/dist/components/ui/tabs/tabs-content.svelte +17 -0
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -0
- package/dist/components/ui/tabs/tabs-list.svelte +51 -0
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +25 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte +32 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/tabs/tabs.svelte +19 -0
- package/dist/components/ui/tabs/tabs.svelte.d.ts +4 -0
- package/dist/components/ui/textarea/index.d.ts +2 -0
- package/dist/components/ui/textarea/index.js +4 -0
- package/dist/components/ui/textarea/textarea.svelte +23 -0
- package/dist/components/ui/textarea/textarea.svelte.d.ts +5 -0
- package/dist/components/ui/tooltip/index.d.ts +6 -0
- package/dist/components/ui/tooltip/index.js +8 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +57 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +11 -0
- package/dist/components/ui/tooltip/tooltip-portal.svelte +7 -0
- package/dist/components/ui/tooltip/tooltip-portal.svelte.d.ts +4 -0
- package/dist/components/ui/tooltip/tooltip-provider.svelte +7 -0
- package/dist/components/ui/tooltip/tooltip-provider.svelte.d.ts +4 -0
- package/dist/components/ui/tooltip/tooltip-trigger.svelte +7 -0
- package/dist/components/ui/tooltip/tooltip-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/tooltip/tooltip.svelte +10 -0
- package/dist/components/ui/tooltip/tooltip.svelte.d.ts +4 -0
- package/dist/components/ui/trigger.d.ts +2 -0
- package/dist/components/ui/trigger.js +9 -0
- package/dist/core/state-manager.svelte.d.ts +26 -0
- package/dist/core/state-manager.svelte.js +104 -0
- package/dist/core/toast-bus.svelte.d.ts +25 -0
- package/dist/core/toast-bus.svelte.js +29 -0
- package/dist/discover/DetailMedia.svelte +37 -0
- package/dist/discover/DetailMedia.svelte.d.ts +8 -0
- package/dist/discover/DiscoverChips.svelte +38 -0
- package/dist/discover/DiscoverChips.svelte.d.ts +11 -0
- package/dist/discover/DiscoverEmpty.svelte +41 -0
- package/dist/discover/DiscoverEmpty.svelte.d.ts +11 -0
- package/dist/discover/DiscoverFilters.svelte +107 -0
- package/dist/discover/DiscoverFilters.svelte.d.ts +15 -0
- package/dist/discover/DiscoverGrid.svelte +31 -0
- package/dist/discover/DiscoverGrid.svelte.d.ts +12 -0
- package/dist/discover/DiscoverHeader.svelte +40 -0
- package/dist/discover/DiscoverHeader.svelte.d.ts +15 -0
- package/dist/discover/DiscoverPublish.svelte +42 -0
- package/dist/discover/DiscoverPublish.svelte.d.ts +12 -0
- package/dist/discover/DiscoverRow.svelte +70 -0
- package/dist/discover/DiscoverRow.svelte.d.ts +17 -0
- package/dist/discover/DiscoverSearch.svelte +54 -0
- package/dist/discover/DiscoverSearch.svelte.d.ts +14 -0
- package/dist/discover/DiscoverSection.svelte +53 -0
- package/dist/discover/DiscoverSection.svelte.d.ts +18 -0
- package/dist/discover/DiscoverSkeleton.svelte +50 -0
- package/dist/discover/DiscoverSkeleton.svelte.d.ts +10 -0
- package/dist/discover/DiscoverTile.svelte +75 -0
- package/dist/discover/DiscoverTile.svelte.d.ts +17 -0
- package/dist/discover/ItemActions.svelte +59 -0
- package/dist/discover/ItemActions.svelte.d.ts +11 -0
- package/dist/discover/ItemArt.svelte +83 -0
- package/dist/discover/ItemArt.svelte.d.ts +15 -0
- package/dist/discover/art.d.ts +3 -0
- package/dist/discover/art.js +22 -0
- package/dist/discover/href.d.ts +2 -0
- package/dist/discover/href.js +10 -0
- package/dist/discover/index.d.ts +18 -0
- package/dist/discover/index.js +23 -0
- package/dist/discover/item.d.ts +18 -0
- package/dist/discover/item.js +45 -0
- package/dist/discover/layout.d.ts +13 -0
- package/dist/discover/layout.js +9 -0
- package/dist/discover/types.d.ts +23 -0
- package/dist/discover/types.js +6 -0
- package/dist/editor/RippleDragLayer.svelte +267 -0
- package/dist/editor/RippleDragLayer.svelte.d.ts +30 -0
- package/dist/editor/RippleEditorOverlay.svelte +204 -0
- package/dist/editor/RippleEditorOverlay.svelte.d.ts +28 -0
- package/dist/editor/RippleInlineEditor.svelte +201 -0
- package/dist/editor/RippleInlineEditor.svelte.d.ts +21 -0
- package/dist/editor/RippleInspector.svelte +201 -0
- package/dist/editor/RippleInspector.svelte.d.ts +14 -0
- package/dist/editor/core/bounds-index.d.ts +60 -0
- package/dist/editor/core/bounds-index.js +138 -0
- package/dist/editor/core/drag-reorder.d.ts +52 -0
- package/dist/editor/core/drag-reorder.js +89 -0
- package/dist/editor/core/editable.d.ts +88 -0
- package/dist/editor/core/editable.js +167 -0
- package/dist/editor/core/editor-ops.d.ts +58 -0
- package/dist/editor/core/editor-ops.js +60 -0
- package/dist/editor/core/geometry.d.ts +35 -0
- package/dist/editor/core/geometry.js +38 -0
- package/dist/editor/core/index.d.ts +37 -0
- package/dist/editor/core/index.js +37 -0
- package/dist/editor/core/inline-editor-contenteditable.d.ts +3 -0
- package/dist/editor/core/inline-editor-contenteditable.js +94 -0
- package/dist/editor/core/inline-editor-source.d.ts +6 -0
- package/dist/editor/core/inline-editor-source.js +178 -0
- package/dist/editor/core/inline-editor-tiptap.d.ts +3 -0
- package/dist/editor/core/inline-editor-tiptap.js +192 -0
- package/dist/editor/core/inline-editor.d.ts +72 -0
- package/dist/editor/core/inline-editor.js +53 -0
- package/dist/editor/core/inspector-fields.d.ts +49 -0
- package/dist/editor/core/inspector-fields.js +110 -0
- package/dist/editor/core/lane-adapter.d.ts +109 -0
- package/dist/editor/core/lane-adapter.js +1 -0
- package/dist/editor/core/memory-persistence-adapter.d.ts +33 -0
- package/dist/editor/core/memory-persistence-adapter.js +90 -0
- package/dist/editor/core/ports.d.ts +77 -0
- package/dist/editor/core/ports.js +1 -0
- package/dist/editor/core/ripple-lane-adapter.d.ts +80 -0
- package/dist/editor/core/ripple-lane-adapter.js +197 -0
- package/dist/editor/core/selection-model.d.ts +36 -0
- package/dist/editor/core/selection-model.js +79 -0
- package/dist/editor/editor-selection.svelte.d.ts +28 -0
- package/dist/editor/editor-selection.svelte.js +61 -0
- package/dist/editor/index.d.ts +37 -0
- package/dist/editor/index.js +37 -0
- package/dist/figures/bike-gears/figure.d.ts +66 -0
- package/dist/figures/bike-gears/figure.js +712 -0
- package/dist/figures/bike-gears/index.d.ts +4 -0
- package/dist/figures/bike-gears/index.js +17 -0
- package/dist/figures/bike-gears/model.d.ts +46 -0
- package/dist/figures/bike-gears/model.js +67 -0
- package/dist/figures/fission-reactor/figure.d.ts +44 -0
- package/dist/figures/fission-reactor/figure.js +820 -0
- package/dist/figures/fission-reactor/index.d.ts +4 -0
- package/dist/figures/fission-reactor/index.js +16 -0
- package/dist/figures/fission-reactor/model.d.ts +48 -0
- package/dist/figures/fission-reactor/model.js +86 -0
- package/dist/figures/frame.d.ts +16 -0
- package/dist/figures/frame.js +39 -0
- package/dist/figures/heart/figure.d.ts +38 -0
- package/dist/figures/heart/figure.js +580 -0
- package/dist/figures/heart/index.d.ts +4 -0
- package/dist/figures/heart/index.js +18 -0
- package/dist/figures/heart/model.d.ts +76 -0
- package/dist/figures/heart/model.js +167 -0
- package/dist/figures/index.d.ts +7 -0
- package/dist/figures/index.js +9 -0
- package/dist/figures/ion-thruster/figure.d.ts +41 -0
- package/dist/figures/ion-thruster/figure.js +645 -0
- package/dist/figures/ion-thruster/index.d.ts +4 -0
- package/dist/figures/ion-thruster/index.js +16 -0
- package/dist/figures/ion-thruster/model.d.ts +52 -0
- package/dist/figures/ion-thruster/model.js +79 -0
- package/dist/figures/particle-collider/figure.d.ts +28 -0
- package/dist/figures/particle-collider/figure.js +782 -0
- package/dist/figures/particle-collider/index.d.ts +4 -0
- package/dist/figures/particle-collider/index.js +17 -0
- package/dist/figures/particle-collider/model.d.ts +81 -0
- package/dist/figures/particle-collider/model.js +147 -0
- package/dist/figures/rocket-engine/figure.d.ts +37 -0
- package/dist/figures/rocket-engine/figure.js +881 -0
- package/dist/figures/rocket-engine/index.d.ts +4 -0
- package/dist/figures/rocket-engine/index.js +16 -0
- package/dist/figures/rocket-engine/model.d.ts +73 -0
- package/dist/figures/rocket-engine/model.js +104 -0
- package/dist/figures/tokamak/figure.d.ts +40 -0
- package/dist/figures/tokamak/figure.js +770 -0
- package/dist/figures/tokamak/index.d.ts +4 -0
- package/dist/figures/tokamak/index.js +16 -0
- package/dist/figures/tokamak/model.d.ts +65 -0
- package/dist/figures/tokamak/model.js +132 -0
- package/dist/figures/types.d.ts +43 -0
- package/dist/figures/types.js +4 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +53 -0
- package/dist/intent/ChainProgress.svelte +224 -0
- package/dist/intent/ChainProgress.svelte.d.ts +19 -0
- package/dist/intent/DashboardRenderer.svelte +727 -0
- package/dist/intent/DashboardRenderer.svelte.d.ts +9 -0
- package/dist/intent/FlowRunner.svelte +550 -0
- package/dist/intent/FlowRunner.svelte.d.ts +28 -0
- package/dist/intent/IntentRenderer.svelte +325 -0
- package/dist/intent/IntentRenderer.svelte.d.ts +20 -0
- package/dist/intent/chain-executor.svelte.d.ts +266 -0
- package/dist/intent/chain-executor.svelte.js +461 -0
- package/dist/intent/dashboard-manager.svelte.d.ts +54 -0
- package/dist/intent/dashboard-manager.svelte.js +96 -0
- package/dist/intent/defaults-resolver.d.ts +115 -0
- package/dist/intent/defaults-resolver.js +288 -0
- package/dist/intent/fixtures/onboarding-wizard.d.ts +45 -0
- package/dist/intent/fixtures/onboarding-wizard.js +182 -0
- package/dist/intent/flow-options.d.ts +50 -0
- package/dist/intent/flow-options.js +111 -0
- package/dist/intent/index.d.ts +19 -0
- package/dist/intent/index.js +19 -0
- package/dist/intent/layout-adapter.d.ts +77 -0
- package/dist/intent/layout-adapter.js +135 -0
- package/dist/intent/layout-engine.d.ts +66 -0
- package/dist/intent/layout-engine.js +247 -0
- package/dist/intent/layouts/ArticleLayout.svelte +454 -0
- package/dist/intent/layouts/ArticleLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/CardGridLayout.svelte +101 -0
- package/dist/intent/layouts/CardGridLayout.svelte.d.ts +13 -0
- package/dist/intent/layouts/ChecklistIntentLayout.svelte +45 -0
- package/dist/intent/layouts/ChecklistIntentLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/ComparisonIntentLayout.svelte +55 -0
- package/dist/intent/layouts/ComparisonIntentLayout.svelte.d.ts +8 -0
- package/dist/intent/layouts/DetailLayout.svelte +126 -0
- package/dist/intent/layouts/DetailLayout.svelte.d.ts +11 -0
- package/dist/intent/layouts/FormLayout.svelte +140 -0
- package/dist/intent/layouts/FormLayout.svelte.d.ts +9 -0
- package/dist/intent/layouts/InfoHeroLayout.svelte +103 -0
- package/dist/intent/layouts/InfoHeroLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/InvoiceIntentLayout.svelte +76 -0
- package/dist/intent/layouts/InvoiceIntentLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/ListLayout.svelte +24 -0
- package/dist/intent/layouts/ListLayout.svelte.d.ts +9 -0
- package/dist/intent/layouts/ReportIntentLayout.svelte +104 -0
- package/dist/intent/layouts/ReportIntentLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/SearchLayout.svelte +65 -0
- package/dist/intent/layouts/SearchLayout.svelte.d.ts +14 -0
- package/dist/intent/layouts/SelectLayout.svelte +131 -0
- package/dist/intent/layouts/SelectLayout.svelte.d.ts +11 -0
- package/dist/intent/layouts/SlidesLayout.svelte +252 -0
- package/dist/intent/layouts/SlidesLayout.svelte.d.ts +8 -0
- package/dist/intent/layouts/SummaryLayout.svelte +84 -0
- package/dist/intent/layouts/SummaryLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/TableLayout.svelte +100 -0
- package/dist/intent/layouts/TableLayout.svelte.d.ts +9 -0
- package/dist/intent/layouts/TimelineLayout.svelte +81 -0
- package/dist/intent/layouts/TimelineLayout.svelte.d.ts +7 -0
- package/dist/intent/pattern-detector.d.ts +72 -0
- package/dist/intent/pattern-detector.js +102 -0
- package/dist/intent/slides-partition.d.ts +40 -0
- package/dist/intent/slides-partition.js +67 -0
- package/dist/manifest/actions.d.ts +7 -0
- package/dist/manifest/actions.js +7 -0
- package/dist/manifest/entries/accordion.d.ts +2 -0
- package/dist/manifest/entries/accordion.js +20 -0
- package/dist/manifest/entries/agenda.d.ts +2 -0
- package/dist/manifest/entries/agenda.js +30 -0
- package/dist/manifest/entries/alert.d.ts +2 -0
- package/dist/manifest/entries/alert.js +12 -0
- package/dist/manifest/entries/analyst-bar.d.ts +2 -0
- package/dist/manifest/entries/analyst-bar.js +13 -0
- package/dist/manifest/entries/analytics-dashboard.d.ts +2 -0
- package/dist/manifest/entries/analytics-dashboard.js +87 -0
- package/dist/manifest/entries/animated-beam.d.ts +2 -0
- package/dist/manifest/entries/animated-beam.js +16 -0
- package/dist/manifest/entries/api-key.d.ts +2 -0
- package/dist/manifest/entries/api-key.js +14 -0
- package/dist/manifest/entries/app-shell.d.ts +2 -0
- package/dist/manifest/entries/app-shell.js +68 -0
- package/dist/manifest/entries/approval-gate.d.ts +2 -0
- package/dist/manifest/entries/approval-gate.js +32 -0
- package/dist/manifest/entries/article-meta.d.ts +2 -0
- package/dist/manifest/entries/article-meta.js +13 -0
- package/dist/manifest/entries/ask-user-questions.d.ts +2 -0
- package/dist/manifest/entries/ask-user-questions.js +81 -0
- package/dist/manifest/entries/audio.d.ts +2 -0
- package/dist/manifest/entries/audio.js +17 -0
- package/dist/manifest/entries/audit-log.d.ts +2 -0
- package/dist/manifest/entries/audit-log.js +25 -0
- package/dist/manifest/entries/aurora.d.ts +2 -0
- package/dist/manifest/entries/aurora.js +14 -0
- package/dist/manifest/entries/avatar-group.d.ts +2 -0
- package/dist/manifest/entries/avatar-group.js +23 -0
- package/dist/manifest/entries/avatar.d.ts +2 -0
- package/dist/manifest/entries/avatar.js +11 -0
- package/dist/manifest/entries/badge.d.ts +2 -0
- package/dist/manifest/entries/badge.js +13 -0
- package/dist/manifest/entries/bento-grid.d.ts +2 -0
- package/dist/manifest/entries/bento-grid.js +20 -0
- package/dist/manifest/entries/bill-split.d.ts +2 -0
- package/dist/manifest/entries/bill-split.js +37 -0
- package/dist/manifest/entries/board-game.d.ts +2 -0
- package/dist/manifest/entries/board-game.js +43 -0
- package/dist/manifest/entries/booking.d.ts +2 -0
- package/dist/manifest/entries/booking.js +61 -0
- package/dist/manifest/entries/border-beam.d.ts +2 -0
- package/dist/manifest/entries/border-beam.js +16 -0
- package/dist/manifest/entries/breadcrumb.d.ts +2 -0
- package/dist/manifest/entries/breadcrumb.js +20 -0
- package/dist/manifest/entries/bulk-action-bar.d.ts +2 -0
- package/dist/manifest/entries/bulk-action-bar.js +24 -0
- package/dist/manifest/entries/button.d.ts +2 -0
- package/dist/manifest/entries/button.js +47 -0
- package/dist/manifest/entries/c4.d.ts +2 -0
- package/dist/manifest/entries/c4.js +73 -0
- package/dist/manifest/entries/calendar.d.ts +2 -0
- package/dist/manifest/entries/calendar.js +44 -0
- package/dist/manifest/entries/callout.d.ts +2 -0
- package/dist/manifest/entries/callout.js +11 -0
- package/dist/manifest/entries/card.d.ts +2 -0
- package/dist/manifest/entries/card.js +19 -0
- package/dist/manifest/entries/chart.d.ts +2 -0
- package/dist/manifest/entries/chart.js +27 -0
- package/dist/manifest/entries/checkbox-group.d.ts +2 -0
- package/dist/manifest/entries/checkbox-group.js +49 -0
- package/dist/manifest/entries/checkbox.d.ts +2 -0
- package/dist/manifest/entries/checkbox.js +30 -0
- package/dist/manifest/entries/checklist-layout.d.ts +2 -0
- package/dist/manifest/entries/checklist-layout.js +33 -0
- package/dist/manifest/entries/chip.d.ts +2 -0
- package/dist/manifest/entries/chip.js +15 -0
- package/dist/manifest/entries/citation.d.ts +2 -0
- package/dist/manifest/entries/citation.js +13 -0
- package/dist/manifest/entries/coachmark.d.ts +2 -0
- package/dist/manifest/entries/coachmark.js +47 -0
- package/dist/manifest/entries/code-block.d.ts +2 -0
- package/dist/manifest/entries/code-block.js +27 -0
- package/dist/manifest/entries/code-editor.d.ts +2 -0
- package/dist/manifest/entries/code-editor.js +39 -0
- package/dist/manifest/entries/code.d.ts +2 -0
- package/dist/manifest/entries/code.js +9 -0
- package/dist/manifest/entries/collapsible.d.ts +2 -0
- package/dist/manifest/entries/collapsible.js +18 -0
- package/dist/manifest/entries/color-picker.d.ts +2 -0
- package/dist/manifest/entries/color-picker.js +35 -0
- package/dist/manifest/entries/combobox.d.ts +2 -0
- package/dist/manifest/entries/combobox.js +48 -0
- package/dist/manifest/entries/command-palette.d.ts +2 -0
- package/dist/manifest/entries/command-palette.js +55 -0
- package/dist/manifest/entries/comment-thread.d.ts +2 -0
- package/dist/manifest/entries/comment-thread.js +27 -0
- package/dist/manifest/entries/company-header.d.ts +2 -0
- package/dist/manifest/entries/company-header.js +33 -0
- package/dist/manifest/entries/comparison-layout.d.ts +2 -0
- package/dist/manifest/entries/comparison-layout.js +81 -0
- package/dist/manifest/entries/comparison-table.d.ts +2 -0
- package/dist/manifest/entries/comparison-table.js +25 -0
- package/dist/manifest/entries/confirm-dialog.d.ts +2 -0
- package/dist/manifest/entries/confirm-dialog.js +50 -0
- package/dist/manifest/entries/container.d.ts +2 -0
- package/dist/manifest/entries/container.js +13 -0
- package/dist/manifest/entries/context-menu.d.ts +2 -0
- package/dist/manifest/entries/context-menu.js +22 -0
- package/dist/manifest/entries/copy.d.ts +2 -0
- package/dist/manifest/entries/copy.js +11 -0
- package/dist/manifest/entries/cta.d.ts +2 -0
- package/dist/manifest/entries/cta.js +17 -0
- package/dist/manifest/entries/dashboard-slot.d.ts +2 -0
- package/dist/manifest/entries/dashboard-slot.js +17 -0
- package/dist/manifest/entries/dashboard.d.ts +2 -0
- package/dist/manifest/entries/dashboard.js +48 -0
- package/dist/manifest/entries/data-grid.d.ts +2 -0
- package/dist/manifest/entries/data-grid.js +77 -0
- package/dist/manifest/entries/date-picker.d.ts +2 -0
- package/dist/manifest/entries/date-picker.js +31 -0
- package/dist/manifest/entries/definition-list.d.ts +2 -0
- package/dist/manifest/entries/definition-list.js +19 -0
- package/dist/manifest/entries/diff.d.ts +2 -0
- package/dist/manifest/entries/diff.js +16 -0
- package/dist/manifest/entries/discover-card.d.ts +2 -0
- package/dist/manifest/entries/discover-card.js +13 -0
- package/dist/manifest/entries/drawing-canvas.d.ts +2 -0
- package/dist/manifest/entries/drawing-canvas.js +18 -0
- package/dist/manifest/entries/dropdown-menu.d.ts +2 -0
- package/dist/manifest/entries/dropdown-menu.js +25 -0
- package/dist/manifest/entries/each.d.ts +2 -0
- package/dist/manifest/entries/each.js +34 -0
- package/dist/manifest/entries/embed.d.ts +2 -0
- package/dist/manifest/entries/embed.js +52 -0
- package/dist/manifest/entries/empty-state.d.ts +2 -0
- package/dist/manifest/entries/empty-state.js +11 -0
- package/dist/manifest/entries/entity-detail.d.ts +2 -0
- package/dist/manifest/entries/entity-detail.js +55 -0
- package/dist/manifest/entries/error-state.d.ts +2 -0
- package/dist/manifest/entries/error-state.js +24 -0
- package/dist/manifest/entries/exec-dashboard.d.ts +2 -0
- package/dist/manifest/entries/exec-dashboard.js +107 -0
- package/dist/manifest/entries/faq.d.ts +2 -0
- package/dist/manifest/entries/faq.js +21 -0
- package/dist/manifest/entries/feature-grid.d.ts +2 -0
- package/dist/manifest/entries/feature-grid.js +21 -0
- package/dist/manifest/entries/figure.d.ts +2 -0
- package/dist/manifest/entries/figure.js +34 -0
- package/dist/manifest/entries/file-upload.d.ts +2 -0
- package/dist/manifest/entries/file-upload.js +32 -0
- package/dist/manifest/entries/fill-grid.d.ts +2 -0
- package/dist/manifest/entries/fill-grid.js +19 -0
- package/dist/manifest/entries/filter-bar.d.ts +2 -0
- package/dist/manifest/entries/filter-bar.js +48 -0
- package/dist/manifest/entries/flashcard-deck.d.ts +2 -0
- package/dist/manifest/entries/flashcard-deck.js +36 -0
- package/dist/manifest/entries/flashcard.d.ts +2 -0
- package/dist/manifest/entries/flashcard.js +20 -0
- package/dist/manifest/entries/flex.d.ts +2 -0
- package/dist/manifest/entries/flex.js +20 -0
- package/dist/manifest/entries/focus-timer.d.ts +2 -0
- package/dist/manifest/entries/focus-timer.js +34 -0
- package/dist/manifest/entries/follow-up.d.ts +2 -0
- package/dist/manifest/entries/follow-up.js +11 -0
- package/dist/manifest/entries/footer.d.ts +2 -0
- package/dist/manifest/entries/footer.js +20 -0
- package/dist/manifest/entries/form-layout.d.ts +2 -0
- package/dist/manifest/entries/form-layout.js +43 -0
- package/dist/manifest/entries/form.d.ts +2 -0
- package/dist/manifest/entries/form.js +111 -0
- package/dist/manifest/entries/funnel.d.ts +2 -0
- package/dist/manifest/entries/funnel.js +24 -0
- package/dist/manifest/entries/gantt.d.ts +2 -0
- package/dist/manifest/entries/gantt.js +21 -0
- package/dist/manifest/entries/gauge.d.ts +2 -0
- package/dist/manifest/entries/gauge.js +16 -0
- package/dist/manifest/entries/glass-card.d.ts +2 -0
- package/dist/manifest/entries/glass-card.js +20 -0
- package/dist/manifest/entries/glyph-grid.d.ts +2 -0
- package/dist/manifest/entries/glyph-grid.js +19 -0
- package/dist/manifest/entries/grid.d.ts +2 -0
- package/dist/manifest/entries/grid.js +19 -0
- package/dist/manifest/entries/growth-projection.d.ts +2 -0
- package/dist/manifest/entries/growth-projection.js +36 -0
- package/dist/manifest/entries/habit-tracker.d.ts +2 -0
- package/dist/manifest/entries/habit-tracker.js +38 -0
- package/dist/manifest/entries/heading.d.ts +2 -0
- package/dist/manifest/entries/heading.js +10 -0
- package/dist/manifest/entries/heatmap.d.ts +2 -0
- package/dist/manifest/entries/heatmap.js +26 -0
- package/dist/manifest/entries/hero.d.ts +2 -0
- package/dist/manifest/entries/hero.js +15 -0
- package/dist/manifest/entries/highlight.d.ts +2 -0
- package/dist/manifest/entries/highlight.js +13 -0
- package/dist/manifest/entries/hover-card.d.ts +2 -0
- package/dist/manifest/entries/hover-card.js +14 -0
- package/dist/manifest/entries/icon.d.ts +2 -0
- package/dist/manifest/entries/icon.js +12 -0
- package/dist/manifest/entries/if.d.ts +2 -0
- package/dist/manifest/entries/if.js +20 -0
- package/dist/manifest/entries/illustration.d.ts +2 -0
- package/dist/manifest/entries/illustration.js +37 -0
- package/dist/manifest/entries/image.d.ts +2 -0
- package/dist/manifest/entries/image.js +14 -0
- package/dist/manifest/entries/input.d.ts +2 -0
- package/dist/manifest/entries/input.js +42 -0
- package/dist/manifest/entries/interval-workout.d.ts +2 -0
- package/dist/manifest/entries/interval-workout.js +44 -0
- package/dist/manifest/entries/invoice-layout.d.ts +2 -0
- package/dist/manifest/entries/invoice-layout.js +55 -0
- package/dist/manifest/entries/invoice-lines.d.ts +2 -0
- package/dist/manifest/entries/invoice-lines.js +30 -0
- package/dist/manifest/entries/iso-scene.d.ts +2 -0
- package/dist/manifest/entries/iso-scene.js +145 -0
- package/dist/manifest/entries/itinerary.d.ts +2 -0
- package/dist/manifest/entries/itinerary.js +61 -0
- package/dist/manifest/entries/kanban.d.ts +2 -0
- package/dist/manifest/entries/kanban.js +64 -0
- package/dist/manifest/entries/kbd.d.ts +2 -0
- package/dist/manifest/entries/kbd.js +10 -0
- package/dist/manifest/entries/kv-table.d.ts +2 -0
- package/dist/manifest/entries/kv-table.js +25 -0
- package/dist/manifest/entries/led-clock.d.ts +2 -0
- package/dist/manifest/entries/led-clock.js +20 -0
- package/dist/manifest/entries/link-preview.d.ts +2 -0
- package/dist/manifest/entries/link-preview.js +16 -0
- package/dist/manifest/entries/loading.d.ts +2 -0
- package/dist/manifest/entries/loading.js +12 -0
- package/dist/manifest/entries/location-picker.d.ts +2 -0
- package/dist/manifest/entries/location-picker.js +28 -0
- package/dist/manifest/entries/logo-cloud.d.ts +2 -0
- package/dist/manifest/entries/logo-cloud.js +21 -0
- package/dist/manifest/entries/map.d.ts +2 -0
- package/dist/manifest/entries/map.js +63 -0
- package/dist/manifest/entries/markdown.d.ts +2 -0
- package/dist/manifest/entries/markdown.js +11 -0
- package/dist/manifest/entries/marketing-hero.d.ts +2 -0
- package/dist/manifest/entries/marketing-hero.js +30 -0
- package/dist/manifest/entries/marquee.d.ts +2 -0
- package/dist/manifest/entries/marquee.js +20 -0
- package/dist/manifest/entries/master-detail.d.ts +2 -0
- package/dist/manifest/entries/master-detail.js +57 -0
- package/dist/manifest/entries/meal-plan.d.ts +2 -0
- package/dist/manifest/entries/meal-plan.js +44 -0
- package/dist/manifest/entries/media-grid.d.ts +2 -0
- package/dist/manifest/entries/media-grid.js +34 -0
- package/dist/manifest/entries/memory-match.d.ts +2 -0
- package/dist/manifest/entries/memory-match.js +39 -0
- package/dist/manifest/entries/mention.d.ts +2 -0
- package/dist/manifest/entries/mention.js +15 -0
- package/dist/manifest/entries/menu-order.d.ts +2 -0
- package/dist/manifest/entries/menu-order.js +48 -0
- package/dist/manifest/entries/metric.d.ts +2 -0
- package/dist/manifest/entries/metric.js +16 -0
- package/dist/manifest/entries/modal.d.ts +2 -0
- package/dist/manifest/entries/modal.js +56 -0
- package/dist/manifest/entries/model-viewer.d.ts +2 -0
- package/dist/manifest/entries/model-viewer.js +86 -0
- package/dist/manifest/entries/multi-select.d.ts +2 -0
- package/dist/manifest/entries/multi-select.js +57 -0
- package/dist/manifest/entries/music-player.d.ts +2 -0
- package/dist/manifest/entries/music-player.js +33 -0
- package/dist/manifest/entries/navbar.d.ts +2 -0
- package/dist/manifest/entries/navbar.js +17 -0
- package/dist/manifest/entries/news-card.d.ts +2 -0
- package/dist/manifest/entries/news-card.js +14 -0
- package/dist/manifest/entries/newsletter.d.ts +2 -0
- package/dist/manifest/entries/newsletter.js +20 -0
- package/dist/manifest/entries/notes.d.ts +2 -0
- package/dist/manifest/entries/notes.js +28 -0
- package/dist/manifest/entries/notification-center.d.ts +2 -0
- package/dist/manifest/entries/notification-center.js +21 -0
- package/dist/manifest/entries/number-input.d.ts +2 -0
- package/dist/manifest/entries/number-input.js +30 -0
- package/dist/manifest/entries/ops-dashboard.d.ts +2 -0
- package/dist/manifest/entries/ops-dashboard.js +134 -0
- package/dist/manifest/entries/order-status.d.ts +2 -0
- package/dist/manifest/entries/order-status.js +46 -0
- package/dist/manifest/entries/org-chart.d.ts +2 -0
- package/dist/manifest/entries/org-chart.js +31 -0
- package/dist/manifest/entries/otp-input.d.ts +2 -0
- package/dist/manifest/entries/otp-input.js +41 -0
- package/dist/manifest/entries/page-header.d.ts +2 -0
- package/dist/manifest/entries/page-header.js +14 -0
- package/dist/manifest/entries/parallax.d.ts +2 -0
- package/dist/manifest/entries/parallax.js +13 -0
- package/dist/manifest/entries/people-picker.d.ts +2 -0
- package/dist/manifest/entries/people-picker.js +28 -0
- package/dist/manifest/entries/permission-matrix.d.ts +2 -0
- package/dist/manifest/entries/permission-matrix.js +41 -0
- package/dist/manifest/entries/pipeline-dashboard.d.ts +2 -0
- package/dist/manifest/entries/pipeline-dashboard.js +91 -0
- package/dist/manifest/entries/place-results.d.ts +2 -0
- package/dist/manifest/entries/place-results.js +33 -0
- package/dist/manifest/entries/popover.d.ts +2 -0
- package/dist/manifest/entries/popover.js +13 -0
- package/dist/manifest/entries/pricing-table.d.ts +2 -0
- package/dist/manifest/entries/pricing-table.js +27 -0
- package/dist/manifest/entries/product-grid.d.ts +2 -0
- package/dist/manifest/entries/product-grid.js +33 -0
- package/dist/manifest/entries/progress-ring.d.ts +2 -0
- package/dist/manifest/entries/progress-ring.js +16 -0
- package/dist/manifest/entries/progress.d.ts +2 -0
- package/dist/manifest/entries/progress.js +13 -0
- package/dist/manifest/entries/project-dashboard.d.ts +2 -0
- package/dist/manifest/entries/project-dashboard.js +90 -0
- package/dist/manifest/entries/pros-cons.d.ts +2 -0
- package/dist/manifest/entries/pros-cons.js +18 -0
- package/dist/manifest/entries/qr.d.ts +2 -0
- package/dist/manifest/entries/qr.js +15 -0
- package/dist/manifest/entries/quiz.d.ts +2 -0
- package/dist/manifest/entries/quiz.js +38 -0
- package/dist/manifest/entries/quote.d.ts +2 -0
- package/dist/manifest/entries/quote.js +14 -0
- package/dist/manifest/entries/radio-group.d.ts +2 -0
- package/dist/manifest/entries/radio-group.js +31 -0
- package/dist/manifest/entries/range-bar.d.ts +2 -0
- package/dist/manifest/entries/range-bar.js +16 -0
- package/dist/manifest/entries/rating.d.ts +2 -0
- package/dist/manifest/entries/rating.js +37 -0
- package/dist/manifest/entries/reasoning-trace.d.ts +2 -0
- package/dist/manifest/entries/reasoning-trace.js +20 -0
- package/dist/manifest/entries/recipe.d.ts +2 -0
- package/dist/manifest/entries/recipe.js +55 -0
- package/dist/manifest/entries/report-layout.d.ts +2 -0
- package/dist/manifest/entries/report-layout.js +37 -0
- package/dist/manifest/entries/reveal.d.ts +2 -0
- package/dist/manifest/entries/reveal.js +14 -0
- package/dist/manifest/entries/rich-text.d.ts +2 -0
- package/dist/manifest/entries/rich-text.js +29 -0
- package/dist/manifest/entries/richtext.d.ts +2 -0
- package/dist/manifest/entries/richtext.js +14 -0
- package/dist/manifest/entries/ripple-frame.d.ts +2 -0
- package/dist/manifest/entries/ripple-frame.js +22 -0
- package/dist/manifest/entries/sankey.d.ts +2 -0
- package/dist/manifest/entries/sankey.js +25 -0
- package/dist/manifest/entries/saved-views.d.ts +2 -0
- package/dist/manifest/entries/saved-views.js +23 -0
- package/dist/manifest/entries/search.d.ts +2 -0
- package/dist/manifest/entries/search.js +54 -0
- package/dist/manifest/entries/section.d.ts +2 -0
- package/dist/manifest/entries/section.js +25 -0
- package/dist/manifest/entries/segmented.d.ts +2 -0
- package/dist/manifest/entries/segmented.js +50 -0
- package/dist/manifest/entries/seismograph.d.ts +2 -0
- package/dist/manifest/entries/seismograph.js +22 -0
- package/dist/manifest/entries/select.d.ts +2 -0
- package/dist/manifest/entries/select.js +50 -0
- package/dist/manifest/entries/separator.d.ts +2 -0
- package/dist/manifest/entries/separator.js +12 -0
- package/dist/manifest/entries/settings-list.d.ts +2 -0
- package/dist/manifest/entries/settings-list.js +18 -0
- package/dist/manifest/entries/sheet.d.ts +2 -0
- package/dist/manifest/entries/sheet.js +46 -0
- package/dist/manifest/entries/shimmer.d.ts +2 -0
- package/dist/manifest/entries/shimmer.js +20 -0
- package/dist/manifest/entries/sidebar.d.ts +2 -0
- package/dist/manifest/entries/sidebar.js +22 -0
- package/dist/manifest/entries/skeleton.d.ts +2 -0
- package/dist/manifest/entries/skeleton.js +9 -0
- package/dist/manifest/entries/slider.d.ts +2 -0
- package/dist/manifest/entries/slider.js +30 -0
- package/dist/manifest/entries/soul-status.d.ts +2 -0
- package/dist/manifest/entries/soul-status.js +18 -0
- package/dist/manifest/entries/source-card.d.ts +2 -0
- package/dist/manifest/entries/source-card.js +13 -0
- package/dist/manifest/entries/sources-bar.d.ts +2 -0
- package/dist/manifest/entries/sources-bar.js +24 -0
- package/dist/manifest/entries/sparkline.d.ts +2 -0
- package/dist/manifest/entries/sparkline.js +13 -0
- package/dist/manifest/entries/split.d.ts +2 -0
- package/dist/manifest/entries/split.js +19 -0
- package/dist/manifest/entries/spotlight.d.ts +2 -0
- package/dist/manifest/entries/spotlight.js +14 -0
- package/dist/manifest/entries/standup-board.d.ts +2 -0
- package/dist/manifest/entries/standup-board.js +40 -0
- package/dist/manifest/entries/stat.d.ts +2 -0
- package/dist/manifest/entries/stat.js +18 -0
- package/dist/manifest/entries/status-dot.d.ts +2 -0
- package/dist/manifest/entries/status-dot.js +13 -0
- package/dist/manifest/entries/steps.d.ts +2 -0
- package/dist/manifest/entries/steps.js +24 -0
- package/dist/manifest/entries/streak-bars.d.ts +2 -0
- package/dist/manifest/entries/streak-bars.js +18 -0
- package/dist/manifest/entries/stream-text.d.ts +2 -0
- package/dist/manifest/entries/stream-text.js +17 -0
- package/dist/manifest/entries/switch.d.ts +2 -0
- package/dist/manifest/entries/switch.js +30 -0
- package/dist/manifest/entries/table.d.ts +2 -0
- package/dist/manifest/entries/table.js +31 -0
- package/dist/manifest/entries/tabs.d.ts +2 -0
- package/dist/manifest/entries/tabs.js +54 -0
- package/dist/manifest/entries/terminal.d.ts +2 -0
- package/dist/manifest/entries/terminal.js +23 -0
- package/dist/manifest/entries/testimonial.d.ts +2 -0
- package/dist/manifest/entries/testimonial.js +16 -0
- package/dist/manifest/entries/text-effect.d.ts +2 -0
- package/dist/manifest/entries/text-effect.js +16 -0
- package/dist/manifest/entries/text.d.ts +2 -0
- package/dist/manifest/entries/text.js +13 -0
- package/dist/manifest/entries/textarea.d.ts +2 -0
- package/dist/manifest/entries/textarea.js +29 -0
- package/dist/manifest/entries/ticker.d.ts +2 -0
- package/dist/manifest/entries/ticker.js +18 -0
- package/dist/manifest/entries/time-picker.d.ts +2 -0
- package/dist/manifest/entries/time-picker.js +29 -0
- package/dist/manifest/entries/timeline.d.ts +2 -0
- package/dist/manifest/entries/timeline.js +28 -0
- package/dist/manifest/entries/timer.d.ts +2 -0
- package/dist/manifest/entries/timer.js +17 -0
- package/dist/manifest/entries/toast.d.ts +2 -0
- package/dist/manifest/entries/toast.js +10 -0
- package/dist/manifest/entries/todo-list.d.ts +2 -0
- package/dist/manifest/entries/todo-list.js +35 -0
- package/dist/manifest/entries/tool-call.d.ts +2 -0
- package/dist/manifest/entries/tool-call.js +26 -0
- package/dist/manifest/entries/tooltip.d.ts +2 -0
- package/dist/manifest/entries/tooltip.js +13 -0
- package/dist/manifest/entries/tree-table.d.ts +2 -0
- package/dist/manifest/entries/tree-table.js +36 -0
- package/dist/manifest/entries/tree.d.ts +2 -0
- package/dist/manifest/entries/tree.js +60 -0
- package/dist/manifest/entries/treemap.d.ts +2 -0
- package/dist/manifest/entries/treemap.js +23 -0
- package/dist/manifest/entries/trend.d.ts +2 -0
- package/dist/manifest/entries/trend.js +13 -0
- package/dist/manifest/entries/video.d.ts +2 -0
- package/dist/manifest/entries/video.js +18 -0
- package/dist/manifest/entries/virtual-list.d.ts +2 -0
- package/dist/manifest/entries/virtual-list.js +22 -0
- package/dist/manifest/entries/weather-forecast.d.ts +2 -0
- package/dist/manifest/entries/weather-forecast.js +51 -0
- package/dist/manifest/entries/week-schedule.d.ts +2 -0
- package/dist/manifest/entries/week-schedule.js +34 -0
- package/dist/manifest/entries/wizard-layout.d.ts +2 -0
- package/dist/manifest/entries/wizard-layout.js +90 -0
- package/dist/manifest/entries/word-guess.d.ts +2 -0
- package/dist/manifest/entries/word-guess.js +30 -0
- package/dist/manifest/entries/workflow.d.ts +2 -0
- package/dist/manifest/entries/workflow.js +30 -0
- package/dist/manifest/index.d.ts +110 -0
- package/dist/manifest/index.js +486 -0
- package/dist/manifest/motion-doc.d.ts +20 -0
- package/dist/manifest/motion-doc.js +60 -0
- package/dist/manifest.json +19649 -0
- package/dist/manifest.slim.json +329 -0
- package/dist/molecules/ItemCard.svelte +213 -0
- package/dist/molecules/ItemCard.svelte.d.ts +26 -0
- package/dist/molecules/PriceTag.svelte +89 -0
- package/dist/molecules/PriceTag.svelte.d.ts +14 -0
- package/dist/molecules/SelectionIndicator.svelte +58 -0
- package/dist/molecules/SelectionIndicator.svelte.d.ts +10 -0
- package/dist/molecules/index.d.ts +25 -0
- package/dist/molecules/index.js +26 -0
- package/dist/motion/moving-indicator.d.ts +44 -0
- package/dist/motion/moving-indicator.js +221 -0
- package/dist/organisms/FormSection.svelte +176 -0
- package/dist/organisms/FormSection.svelte.d.ts +28 -0
- package/dist/organisms/OptionList.svelte +269 -0
- package/dist/organisms/OptionList.svelte.d.ts +24 -0
- package/dist/organisms/OrganismRenderer.svelte +86 -0
- package/dist/organisms/OrganismRenderer.svelte.d.ts +10 -0
- package/dist/organisms/QuizQuestion.svelte +147 -0
- package/dist/organisms/QuizQuestion.svelte.d.ts +19 -0
- package/dist/organisms/ResultsSummary.svelte +97 -0
- package/dist/organisms/ResultsSummary.svelte.d.ts +22 -0
- package/dist/organisms/SourcesRow.svelte +68 -0
- package/dist/organisms/SourcesRow.svelte.d.ts +16 -0
- package/dist/organisms/index.d.ts +24 -0
- package/dist/organisms/index.js +24 -0
- package/dist/organisms/schema.d.ts +25 -0
- package/dist/organisms/schema.js +28 -0
- package/dist/primitives/index.d.ts +49 -0
- package/dist/primitives/index.js +51 -0
- package/dist/schema/index.d.ts +16 -0
- package/dist/schema/index.js +16 -0
- package/dist/security/illustration-svg.d.ts +29 -0
- package/dist/security/illustration-svg.js +473 -0
- package/dist/sound/index.d.ts +13 -0
- package/dist/sound/index.js +120 -0
- package/dist/sound/zzfx.d.ts +9 -0
- package/dist/sound/zzfx.js +118 -0
- package/dist/streaming/fixtures/chat-widget-stream.json +55 -0
- package/dist/streaming/fixtures/deep-children.json +75 -0
- package/dist/streaming/fixtures/nested-dashboard.json +74 -0
- package/dist/streaming/fixtures/simple-form.json +31 -0
- package/dist/streaming/fixtures/truncated-corpus.json +53 -0
- package/dist/streaming/index.d.ts +3 -0
- package/dist/streaming/index.js +9 -0
- package/dist/streaming/json-parse.d.ts +16 -0
- package/dist/streaming/json-parse.js +96 -0
- package/dist/streaming/stream-spec.svelte.d.ts +2 -0
- package/dist/streaming/stream-spec.svelte.js +162 -0
- package/dist/streaming/types.d.ts +57 -0
- package/dist/streaming/types.js +12 -0
- package/dist/styles.css +156 -0
- package/dist/systems/elevation.css +17 -0
- package/dist/systems/elevation.d.ts +8 -0
- package/dist/systems/elevation.js +29 -0
- package/dist/systems/index.d.ts +3 -0
- package/dist/systems/index.js +5 -0
- package/dist/systems/proximity-hover.d.ts +9 -0
- package/dist/systems/proximity-hover.js +47 -0
- package/dist/systems/variable-font-weight.d.ts +12 -0
- package/dist/systems/variable-font-weight.js +33 -0
- package/dist/theme.css +169 -0
- package/dist/ui/index.d.ts +113 -0
- package/dist/ui/index.js +126 -0
- package/dist/utils/safe-color.d.ts +4 -0
- package/dist/utils/safe-color.js +18 -0
- package/dist/utils/safe-props.d.ts +97 -0
- package/dist/utils/safe-props.js +170 -0
- package/dist/utils/sanitize-html.d.ts +8 -0
- package/dist/utils/sanitize-html.js +47 -0
- package/dist/utils/url-sanitizer.d.ts +2 -0
- package/dist/utils/url-sanitizer.js +9 -0
- package/dist/utils.d.ts +12 -0
- package/dist/utils.js +13 -0
- package/dist/vendor-modules.d.ts +42 -0
- package/dist/version.d.ts +17 -0
- package/dist/version.js +17 -0
- package/dist/widgets/Workflow.svelte +379 -0
- package/dist/widgets/Workflow.svelte.d.ts +14 -0
- package/dist/widgets/ai/AnswerBlock.svelte +417 -0
- package/dist/widgets/ai/AnswerBlock.svelte.d.ts +42 -0
- package/dist/widgets/ai/ApprovalGate.svelte +506 -0
- package/dist/widgets/ai/ApprovalGate.svelte.d.ts +95 -0
- package/dist/widgets/ai/ContextCards.svelte +179 -0
- package/dist/widgets/ai/ContextCards.svelte.d.ts +29 -0
- package/dist/widgets/ai/FineTuneCard.svelte +316 -0
- package/dist/widgets/ai/FineTuneCard.svelte.d.ts +45 -0
- package/dist/widgets/ai/PixelLoader.svelte +199 -0
- package/dist/widgets/ai/PixelLoader.svelte.d.ts +17 -0
- package/dist/widgets/ai/PromptBar.svelte +701 -0
- package/dist/widgets/ai/PromptBar.svelte.d.ts +61 -0
- package/dist/widgets/ai/ReasoningTrace.svelte +286 -0
- package/dist/widgets/ai/ReasoningTrace.svelte.d.ts +22 -0
- package/dist/widgets/ai/RecommendationCard.svelte +330 -0
- package/dist/widgets/ai/RecommendationCard.svelte.d.ts +58 -0
- package/dist/widgets/ai/SelectionActions.svelte +401 -0
- package/dist/widgets/ai/SelectionActions.svelte.d.ts +32 -0
- package/dist/widgets/ai/SourceChip.svelte +139 -0
- package/dist/widgets/ai/SourceChip.svelte.d.ts +18 -0
- package/dist/widgets/ai/StreamText.svelte +257 -0
- package/dist/widgets/ai/StreamText.svelte.d.ts +19 -0
- package/dist/widgets/ai/TaskRows.svelte +437 -0
- package/dist/widgets/ai/TaskRows.svelte.d.ts +37 -0
- package/dist/widgets/ai/ToolCall.svelte +363 -0
- package/dist/widgets/ai/ToolCall.svelte.d.ts +25 -0
- package/dist/widgets/ai/index.d.ts +4 -0
- package/dist/widgets/ai/index.js +11 -0
- package/dist/widgets/c4/C4Diagram.svelte +1511 -0
- package/dist/widgets/c4/C4Diagram.svelte.d.ts +36 -0
- package/dist/widgets/c4/C4Edge.svelte +145 -0
- package/dist/widgets/c4/C4Edge.svelte.d.ts +4 -0
- package/dist/widgets/c4/C4LiveLayer.svelte +194 -0
- package/dist/widgets/c4/C4LiveLayer.svelte.d.ts +23 -0
- package/dist/widgets/c4/C4PortBadge.svelte +85 -0
- package/dist/widgets/c4/C4PortBadge.svelte.d.ts +8 -0
- package/dist/widgets/c4/activate.d.ts +2 -0
- package/dist/widgets/c4/activate.js +26 -0
- package/dist/widgets/c4/elk-layout.d.ts +103 -0
- package/dist/widgets/c4/elk-layout.js +455 -0
- package/dist/widgets/c4/elk-worker.d.ts +1 -0
- package/dist/widgets/c4/elk-worker.js +21 -0
- package/dist/widgets/c4/index.d.ts +5 -0
- package/dist/widgets/c4/index.js +6 -0
- package/dist/widgets/c4/live.d.ts +209 -0
- package/dist/widgets/c4/live.js +454 -0
- package/dist/widgets/c4/nodes/C4CodeNode.svelte +143 -0
- package/dist/widgets/c4/nodes/C4CodeNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4ComponentNode.svelte +78 -0
- package/dist/widgets/c4/nodes/C4ComponentNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4ContainerNode.svelte +70 -0
- package/dist/widgets/c4/nodes/C4ContainerNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4DatabaseNode.svelte +116 -0
- package/dist/widgets/c4/nodes/C4DatabaseNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4GroupNode.svelte +133 -0
- package/dist/widgets/c4/nodes/C4GroupNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4PersonNode.svelte +75 -0
- package/dist/widgets/c4/nodes/C4PersonNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4QueueNode.svelte +79 -0
- package/dist/widgets/c4/nodes/C4QueueNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4SystemNode.svelte +53 -0
- package/dist/widgets/c4/nodes/C4SystemNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4ViewNode.svelte +21 -0
- package/dist/widgets/c4/nodes/C4ViewNode.svelte.d.ts +8 -0
- package/dist/widgets/c4/nodes/index.d.ts +35 -0
- package/dist/widgets/c4/nodes/index.js +22 -0
- package/dist/widgets/c4/semantic-flow.d.ts +19 -0
- package/dist/widgets/c4/semantic-flow.js +116 -0
- package/dist/widgets/c4/semantic.d.ts +92 -0
- package/dist/widgets/c4/semantic.js +241 -0
- package/dist/widgets/c4/types.d.ts +192 -0
- package/dist/widgets/c4/types.js +8 -0
- package/dist/widgets/c4/url-sanitizer.d.ts +1 -0
- package/dist/widgets/c4/url-sanitizer.js +6 -0
- package/dist/widgets/call/BottomSheet.svelte +184 -0
- package/dist/widgets/call/BottomSheet.svelte.d.ts +15 -0
- package/dist/widgets/call/ControlBar.svelte +81 -0
- package/dist/widgets/call/ControlBar.svelte.d.ts +11 -0
- package/dist/widgets/call/ControlButton.svelte +226 -0
- package/dist/widgets/call/ControlButton.svelte.d.ts +20 -0
- package/dist/widgets/call/CountBadge.svelte +57 -0
- package/dist/widgets/call/CountBadge.svelte.d.ts +9 -0
- package/dist/widgets/call/FloatingDock.svelte +176 -0
- package/dist/widgets/call/FloatingDock.svelte.d.ts +20 -0
- package/dist/widgets/call/IncomingCallCard.svelte +125 -0
- package/dist/widgets/call/IncomingCallCard.svelte.d.ts +16 -0
- package/dist/widgets/call/ParticipantTile.svelte +241 -0
- package/dist/widgets/call/ParticipantTile.svelte.d.ts +18 -0
- package/dist/widgets/composite/Agenda.svelte +340 -0
- package/dist/widgets/composite/Agenda.svelte.d.ts +25 -0
- package/dist/widgets/composite/AnalyticsDashboard.svelte +371 -0
- package/dist/widgets/composite/AnalyticsDashboard.svelte.d.ts +58 -0
- package/dist/widgets/composite/AskUserQuestions.svelte +568 -0
- package/dist/widgets/composite/AskUserQuestions.svelte.d.ts +41 -0
- package/dist/widgets/composite/AvatarGroup.svelte +79 -0
- package/dist/widgets/composite/AvatarGroup.svelte.d.ts +17 -0
- package/dist/widgets/composite/BillSplit.svelte +425 -0
- package/dist/widgets/composite/BillSplit.svelte.d.ts +29 -0
- package/dist/widgets/composite/BoardGame.svelte +596 -0
- package/dist/widgets/composite/BoardGame.svelte.d.ts +45 -0
- package/dist/widgets/composite/Booking.svelte +643 -0
- package/dist/widgets/composite/Booking.svelte.d.ts +30 -0
- package/dist/widgets/composite/ChecklistLayout.svelte +595 -0
- package/dist/widgets/composite/ChecklistLayout.svelte.d.ts +49 -0
- package/dist/widgets/composite/ComparisonLayout.svelte +809 -0
- package/dist/widgets/composite/ComparisonLayout.svelte.d.ts +78 -0
- package/dist/widgets/composite/EntityDetail.svelte +529 -0
- package/dist/widgets/composite/EntityDetail.svelte.d.ts +55 -0
- package/dist/widgets/composite/ExecDashboard.svelte +1543 -0
- package/dist/widgets/composite/ExecDashboard.svelte.d.ts +214 -0
- package/dist/widgets/composite/ExecDashboardRows.svelte +456 -0
- package/dist/widgets/composite/ExecDashboardRows.svelte.d.ts +21 -0
- package/dist/widgets/composite/Figure.svelte +230 -0
- package/dist/widgets/composite/Figure.svelte.d.ts +20 -0
- package/dist/widgets/composite/FlashcardDeck.svelte +589 -0
- package/dist/widgets/composite/FlashcardDeck.svelte.d.ts +33 -0
- package/dist/widgets/composite/FocusTimer.svelte +566 -0
- package/dist/widgets/composite/FocusTimer.svelte.d.ts +66 -0
- package/dist/widgets/composite/FormLayout.svelte +430 -0
- package/dist/widgets/composite/FormLayout.svelte.d.ts +35 -0
- package/dist/widgets/composite/GrowthProjection.svelte +628 -0
- package/dist/widgets/composite/GrowthProjection.svelte.d.ts +69 -0
- package/dist/widgets/composite/HabitTracker.svelte +489 -0
- package/dist/widgets/composite/HabitTracker.svelte.d.ts +28 -0
- package/dist/widgets/composite/IntervalWorkout.svelte +621 -0
- package/dist/widgets/composite/IntervalWorkout.svelte.d.ts +59 -0
- package/dist/widgets/composite/InvoiceLayout.svelte +615 -0
- package/dist/widgets/composite/InvoiceLayout.svelte.d.ts +48 -0
- package/dist/widgets/composite/IsoScene.svelte +614 -0
- package/dist/widgets/composite/IsoScene.svelte.d.ts +31 -0
- package/dist/widgets/composite/Itinerary.svelte +758 -0
- package/dist/widgets/composite/Itinerary.svelte.d.ts +70 -0
- package/dist/widgets/composite/MealPlan.svelte +518 -0
- package/dist/widgets/composite/MealPlan.svelte.d.ts +26 -0
- package/dist/widgets/composite/MediaGrid.svelte +277 -0
- package/dist/widgets/composite/MediaGrid.svelte.d.ts +41 -0
- package/dist/widgets/composite/MemoryMatch.svelte +613 -0
- package/dist/widgets/composite/MemoryMatch.svelte.d.ts +53 -0
- package/dist/widgets/composite/MenuOrder.svelte +876 -0
- package/dist/widgets/composite/MenuOrder.svelte.d.ts +30 -0
- package/dist/widgets/composite/MusicPlayer.svelte +581 -0
- package/dist/widgets/composite/MusicPlayer.svelte.d.ts +42 -0
- package/dist/widgets/composite/Notes.svelte +469 -0
- package/dist/widgets/composite/Notes.svelte.d.ts +28 -0
- package/dist/widgets/composite/OpsDashboard.svelte +626 -0
- package/dist/widgets/composite/OpsDashboard.svelte.d.ts +57 -0
- package/dist/widgets/composite/OrderStatus.svelte +1037 -0
- package/dist/widgets/composite/OrderStatus.svelte.d.ts +71 -0
- package/dist/widgets/composite/PipelineDashboard.svelte +258 -0
- package/dist/widgets/composite/PipelineDashboard.svelte.d.ts +50 -0
- package/dist/widgets/composite/PlaceResults.svelte +293 -0
- package/dist/widgets/composite/PlaceResults.svelte.d.ts +45 -0
- package/dist/widgets/composite/ProductGrid.svelte +249 -0
- package/dist/widgets/composite/ProductGrid.svelte.d.ts +44 -0
- package/dist/widgets/composite/ProjectDashboard.svelte +724 -0
- package/dist/widgets/composite/ProjectDashboard.svelte.d.ts +67 -0
- package/dist/widgets/composite/Quiz.svelte +540 -0
- package/dist/widgets/composite/Quiz.svelte.d.ts +25 -0
- package/dist/widgets/composite/Recipe.svelte +381 -0
- package/dist/widgets/composite/Recipe.svelte.d.ts +42 -0
- package/dist/widgets/composite/ReportLayout.svelte +379 -0
- package/dist/widgets/composite/ReportLayout.svelte.d.ts +39 -0
- package/dist/widgets/composite/RippleFrame.svelte +48 -0
- package/dist/widgets/composite/RippleFrame.svelte.d.ts +16 -0
- package/dist/widgets/composite/StandupBoard.svelte +400 -0
- package/dist/widgets/composite/StandupBoard.svelte.d.ts +21 -0
- package/dist/widgets/composite/Terminal.svelte +161 -0
- package/dist/widgets/composite/Terminal.svelte.d.ts +20 -0
- package/dist/widgets/composite/WeatherForecast.svelte +406 -0
- package/dist/widgets/composite/WeatherForecast.svelte.d.ts +35 -0
- package/dist/widgets/composite/WeatherIcon.svelte +226 -0
- package/dist/widgets/composite/WeatherIcon.svelte.d.ts +10 -0
- package/dist/widgets/composite/WeekSchedule.svelte +316 -0
- package/dist/widgets/composite/WeekSchedule.svelte.d.ts +27 -0
- package/dist/widgets/composite/WizardLayout.svelte +526 -0
- package/dist/widgets/composite/WizardLayout.svelte.d.ts +44 -0
- package/dist/widgets/composite/WordGuess.svelte +499 -0
- package/dist/widgets/composite/WordGuess.svelte.d.ts +52 -0
- package/dist/widgets/composite/agenda.d.ts +20 -0
- package/dist/widgets/composite/agenda.js +64 -0
- package/dist/widgets/composite/bill-split.d.ts +56 -0
- package/dist/widgets/composite/bill-split.js +117 -0
- package/dist/widgets/composite/board-game.d.ts +45 -0
- package/dist/widgets/composite/board-game.js +277 -0
- package/dist/widgets/composite/booking.d.ts +107 -0
- package/dist/widgets/composite/booking.js +210 -0
- package/dist/widgets/composite/cover-art.d.ts +17 -0
- package/dist/widgets/composite/cover-art.js +63 -0
- package/dist/widgets/composite/exec-dashboard.d.ts +117 -0
- package/dist/widgets/composite/exec-dashboard.js +314 -0
- package/dist/widgets/composite/exercise-figures.d.ts +19 -0
- package/dist/widgets/composite/exercise-figures.js +467 -0
- package/dist/widgets/composite/habit-tracker.d.ts +53 -0
- package/dist/widgets/composite/habit-tracker.js +149 -0
- package/dist/widgets/composite/index.d.ts +43 -0
- package/dist/widgets/composite/index.js +43 -0
- package/dist/widgets/composite/iso-scenes.d.ts +786 -0
- package/dist/widgets/composite/iso-scenes.js +122 -0
- package/dist/widgets/composite/menu-order.d.ts +146 -0
- package/dist/widgets/composite/menu-order.js +217 -0
- package/dist/widgets/composite/music-engine.d.ts +16 -0
- package/dist/widgets/composite/music-engine.js +376 -0
- package/dist/widgets/composite/notes.d.ts +49 -0
- package/dist/widgets/composite/notes.js +130 -0
- package/dist/widgets/composite/order-status-data.d.ts +74 -0
- package/dist/widgets/composite/order-status-data.js +202 -0
- package/dist/widgets/composite/pipeline-dashboard.d.ts +92 -0
- package/dist/widgets/composite/pipeline-dashboard.js +208 -0
- package/dist/widgets/composite/quiz.d.ts +63 -0
- package/dist/widgets/composite/quiz.js +107 -0
- package/dist/widgets/composite/recipe.d.ts +148 -0
- package/dist/widgets/composite/recipe.js +247 -0
- package/dist/widgets/composite/standup-board.d.ts +48 -0
- package/dist/widgets/composite/standup-board.js +171 -0
- package/dist/widgets/composite/weather-forecast.d.ts +75 -0
- package/dist/widgets/composite/weather-forecast.js +241 -0
- package/dist/widgets/composite/week-schedule.d.ts +28 -0
- package/dist/widgets/composite/week-schedule.js +134 -0
- package/dist/widgets/control/Each.svelte +6 -0
- package/dist/widgets/control/Each.svelte.d.ts +8 -0
- package/dist/widgets/control/If.svelte +6 -0
- package/dist/widgets/control/If.svelte.d.ts +8 -0
- package/dist/widgets/control/index.d.ts +2 -0
- package/dist/widgets/control/index.js +2 -0
- package/dist/widgets/craft/AssetPanel.svelte +300 -0
- package/dist/widgets/craft/AssetPanel.svelte.d.ts +28 -0
- package/dist/widgets/craft/CanvasViewport.svelte +528 -0
- package/dist/widgets/craft/CanvasViewport.svelte.d.ts +59 -0
- package/dist/widgets/craft/ContextToolbar.svelte +162 -0
- package/dist/widgets/craft/ContextToolbar.svelte.d.ts +26 -0
- package/dist/widgets/craft/EditorShell.svelte +196 -0
- package/dist/widgets/craft/EditorShell.svelte.d.ts +35 -0
- package/dist/widgets/craft/InspectorSection.svelte +64 -0
- package/dist/widgets/craft/InspectorSection.svelte.d.ts +14 -0
- package/dist/widgets/craft/PageStrip.svelte +280 -0
- package/dist/widgets/craft/PageStrip.svelte.d.ts +22 -0
- package/dist/widgets/craft/PropertyRow.svelte +59 -0
- package/dist/widgets/craft/PropertyRow.svelte.d.ts +14 -0
- package/dist/widgets/craft/ResizeHandle.svelte +67 -0
- package/dist/widgets/craft/ResizeHandle.svelte.d.ts +10 -0
- package/dist/widgets/craft/ToolRail.svelte +163 -0
- package/dist/widgets/craft/ToolRail.svelte.d.ts +19 -0
- package/dist/widgets/craft/TransformBox.svelte +254 -0
- package/dist/widgets/craft/TransformBox.svelte.d.ts +29 -0
- package/dist/widgets/craft/asset-panel.d.ts +53 -0
- package/dist/widgets/craft/asset-panel.js +53 -0
- package/dist/widgets/craft/page-strip.d.ts +12 -0
- package/dist/widgets/craft/page-strip.js +12 -0
- package/dist/widgets/craft/ruler-math.d.ts +12 -0
- package/dist/widgets/craft/ruler-math.js +43 -0
- package/dist/widgets/craft/toolbar-math.d.ts +19 -0
- package/dist/widgets/craft/toolbar-math.js +17 -0
- package/dist/widgets/craft/transform-math.d.ts +16 -0
- package/dist/widgets/craft/transform-math.js +37 -0
- package/dist/widgets/craft/types.d.ts +84 -0
- package/dist/widgets/craft/types.js +24 -0
- package/dist/widgets/craft/viewport-math.d.ts +14 -0
- package/dist/widgets/craft/viewport-math.js +20 -0
- package/dist/widgets/data/Calendar.svelte +771 -0
- package/dist/widgets/data/Calendar.svelte.d.ts +22 -0
- package/dist/widgets/data/Chart.svelte +571 -0
- package/dist/widgets/data/Chart.svelte.d.ts +33 -0
- package/dist/widgets/data/DataGrid.svelte +266 -0
- package/dist/widgets/data/DataGrid.svelte.d.ts +39 -0
- package/dist/widgets/data/DiffTable.svelte +406 -0
- package/dist/widgets/data/DiffTable.svelte.d.ts +33 -0
- package/dist/widgets/data/Funnel.svelte +425 -0
- package/dist/widgets/data/Funnel.svelte.d.ts +21 -0
- package/dist/widgets/data/GanttChart.svelte +717 -0
- package/dist/widgets/data/GanttChart.svelte.d.ts +25 -0
- package/dist/widgets/data/Gauge.svelte +238 -0
- package/dist/widgets/data/Gauge.svelte.d.ts +20 -0
- package/dist/widgets/data/Heatmap.svelte +600 -0
- package/dist/widgets/data/Heatmap.svelte.d.ts +27 -0
- package/dist/widgets/data/Kanban.svelte +585 -0
- package/dist/widgets/data/Kanban.svelte.d.ts +34 -0
- package/dist/widgets/data/Map.svelte +777 -0
- package/dist/widgets/data/Map.svelte.d.ts +82 -0
- package/dist/widgets/data/Sankey.svelte +519 -0
- package/dist/widgets/data/Sankey.svelte.d.ts +25 -0
- package/dist/widgets/data/Seismograph.svelte +269 -0
- package/dist/widgets/data/Seismograph.svelte.d.ts +28 -0
- package/dist/widgets/data/Sparkline.svelte +62 -0
- package/dist/widgets/data/Sparkline.svelte.d.ts +19 -0
- package/dist/widgets/data/Table.svelte +646 -0
- package/dist/widgets/data/Table.svelte.d.ts +59 -0
- package/dist/widgets/data/Tree.svelte +355 -0
- package/dist/widgets/data/Tree.svelte.d.ts +48 -0
- package/dist/widgets/data/TreeTable.svelte +221 -0
- package/dist/widgets/data/TreeTable.svelte.d.ts +26 -0
- package/dist/widgets/data/Treemap.svelte +650 -0
- package/dist/widgets/data/Treemap.svelte.d.ts +24 -0
- package/dist/widgets/data/VirtualList.svelte +137 -0
- package/dist/widgets/data/VirtualList.svelte.d.ts +20 -0
- package/dist/widgets/data/calendar-layout.d.ts +105 -0
- package/dist/widgets/data/calendar-layout.js +269 -0
- package/dist/widgets/data/chart-layout.d.ts +57 -0
- package/dist/widgets/data/chart-layout.js +130 -0
- package/dist/widgets/data/funnel-math.d.ts +57 -0
- package/dist/widgets/data/funnel-math.js +173 -0
- package/dist/widgets/data/gantt-scale.d.ts +86 -0
- package/dist/widgets/data/gantt-scale.js +344 -0
- package/dist/widgets/data/gauge-value.d.ts +43 -0
- package/dist/widgets/data/gauge-value.js +118 -0
- package/dist/widgets/data/heatmap-scale.d.ts +97 -0
- package/dist/widgets/data/heatmap-scale.js +260 -0
- package/dist/widgets/data/index.d.ts +17 -0
- package/dist/widgets/data/index.js +18 -0
- package/dist/widgets/data/kanban-board.d.ts +39 -0
- package/dist/widgets/data/kanban-board.js +118 -0
- package/dist/widgets/data/map-labels.d.ts +18 -0
- package/dist/widgets/data/map-labels.js +74 -0
- package/dist/widgets/data/sankey-layout.d.ts +120 -0
- package/dist/widgets/data/sankey-layout.js +744 -0
- package/dist/widgets/data/treemap.d.ts +72 -0
- package/dist/widgets/data/treemap.js +178 -0
- package/dist/widgets/data-kit/Delta.svelte +49 -0
- package/dist/widgets/data-kit/Delta.svelte.d.ts +15 -0
- package/dist/widgets/data-kit/PhotoTile.svelte +82 -0
- package/dist/widgets/data-kit/PhotoTile.svelte.d.ts +24 -0
- package/dist/widgets/data-kit/SectionCard.svelte +52 -0
- package/dist/widgets/data-kit/SectionCard.svelte.d.ts +14 -0
- package/dist/widgets/data-kit/SectionGrid.svelte +35 -0
- package/dist/widgets/data-kit/SectionGrid.svelte.d.ts +30 -0
- package/dist/widgets/data-kit/StageRail.svelte +166 -0
- package/dist/widgets/data-kit/StageRail.svelte.d.ts +10 -0
- package/dist/widgets/data-kit/StatChip.svelte +67 -0
- package/dist/widgets/data-kit/StatChip.svelte.d.ts +16 -0
- package/dist/widgets/data-kit/StatusPill.svelte +37 -0
- package/dist/widgets/data-kit/StatusPill.svelte.d.ts +9 -0
- package/dist/widgets/data-kit/VerdictLine.svelte +29 -0
- package/dist/widgets/data-kit/VerdictLine.svelte.d.ts +8 -0
- package/dist/widgets/data-kit/edit.d.ts +14 -0
- package/dist/widgets/data-kit/edit.js +27 -0
- package/dist/widgets/data-kit/format.d.ts +53 -0
- package/dist/widgets/data-kit/format.js +132 -0
- package/dist/widgets/data-kit/icons.d.ts +284 -0
- package/dist/widgets/data-kit/icons.js +511 -0
- package/dist/widgets/data-kit/index.d.ts +13 -0
- package/dist/widgets/data-kit/index.js +17 -0
- package/dist/widgets/data-kit/motion.d.ts +18 -0
- package/dist/widgets/data-kit/motion.js +29 -0
- package/dist/widgets/data-kit/pair.d.ts +3 -0
- package/dist/widgets/data-kit/pair.js +19 -0
- package/dist/widgets/data-kit/status.d.ts +18 -0
- package/dist/widgets/data-kit/status.js +49 -0
- package/dist/widgets/data-kit/tint.d.ts +3 -0
- package/dist/widgets/data-kit/tint.js +19 -0
- package/dist/widgets/data-kit/types.d.ts +23 -0
- package/dist/widgets/data-kit/types.js +5 -0
- package/dist/widgets/design-system/DesignSystemEditor.svelte +157 -0
- package/dist/widgets/design-system/DesignSystemEditor.svelte.d.ts +13 -0
- package/dist/widgets/design-system/brand-defaults.d.ts +20 -0
- package/dist/widgets/design-system/brand-defaults.js +96 -0
- package/dist/widgets/design-system/index.d.ts +10 -0
- package/dist/widgets/design-system/index.js +10 -0
- package/dist/widgets/display/ArticleMeta.svelte +84 -0
- package/dist/widgets/display/ArticleMeta.svelte.d.ts +13 -0
- package/dist/widgets/display/Avatar.svelte +87 -0
- package/dist/widgets/display/Avatar.svelte.d.ts +12 -0
- package/dist/widgets/display/Badge.svelte +72 -0
- package/dist/widgets/display/Badge.svelte.d.ts +10 -0
- package/dist/widgets/display/Chip.svelte +142 -0
- package/dist/widgets/display/Chip.svelte.d.ts +20 -0
- package/dist/widgets/display/Code.svelte +39 -0
- package/dist/widgets/display/Code.svelte.d.ts +12 -0
- package/dist/widgets/display/CodeBlock.svelte +234 -0
- package/dist/widgets/display/CodeBlock.svelte.d.ts +25 -0
- package/dist/widgets/display/ComparisonTable.svelte +74 -0
- package/dist/widgets/display/ComparisonTable.svelte.d.ts +23 -0
- package/dist/widgets/display/Copy.svelte +88 -0
- package/dist/widgets/display/Copy.svelte.d.ts +12 -0
- package/dist/widgets/display/DefinitionList.svelte +59 -0
- package/dist/widgets/display/DefinitionList.svelte.d.ts +15 -0
- package/dist/widgets/display/Diff.svelte +236 -0
- package/dist/widgets/display/Diff.svelte.d.ts +24 -0
- package/dist/widgets/display/EmptyState.svelte +119 -0
- package/dist/widgets/display/EmptyState.svelte.d.ts +23 -0
- package/dist/widgets/display/FillGrid.svelte +82 -0
- package/dist/widgets/display/FillGrid.svelte.d.ts +22 -0
- package/dist/widgets/display/GlyphGrid.svelte +149 -0
- package/dist/widgets/display/GlyphGrid.svelte.d.ts +23 -0
- package/dist/widgets/display/Heading.svelte +35 -0
- package/dist/widgets/display/Heading.svelte.d.ts +9 -0
- package/dist/widgets/display/Highlight.svelte +68 -0
- package/dist/widgets/display/Highlight.svelte.d.ts +18 -0
- package/dist/widgets/display/Icon.svelte +68 -0
- package/dist/widgets/display/Icon.svelte.d.ts +17 -0
- package/dist/widgets/display/Illustration.svelte +457 -0
- package/dist/widgets/display/Illustration.svelte.d.ts +29 -0
- package/dist/widgets/display/Image.svelte +37 -0
- package/dist/widgets/display/Image.svelte.d.ts +14 -0
- package/dist/widgets/display/InlineAlert.svelte +118 -0
- package/dist/widgets/display/InlineAlert.svelte.d.ts +22 -0
- package/dist/widgets/display/Kbd.svelte +33 -0
- package/dist/widgets/display/Kbd.svelte.d.ts +10 -0
- package/dist/widgets/display/LedClock.svelte +236 -0
- package/dist/widgets/display/LedClock.svelte.d.ts +24 -0
- package/dist/widgets/display/LinkPreview.svelte +112 -0
- package/dist/widgets/display/LinkPreview.svelte.d.ts +20 -0
- package/dist/widgets/display/Loading.svelte +45 -0
- package/dist/widgets/display/Loading.svelte.d.ts +12 -0
- package/dist/widgets/display/Markdown.svelte +64 -0
- package/dist/widgets/display/Markdown.svelte.d.ts +14 -0
- package/dist/widgets/display/Mention.svelte +139 -0
- package/dist/widgets/display/Mention.svelte.d.ts +21 -0
- package/dist/widgets/display/Metric.svelte +106 -0
- package/dist/widgets/display/Metric.svelte.d.ts +13 -0
- package/dist/widgets/display/Progress.svelte +72 -0
- package/dist/widgets/display/Progress.svelte.d.ts +17 -0
- package/dist/widgets/display/ProgressRing.svelte +116 -0
- package/dist/widgets/display/ProgressRing.svelte.d.ts +22 -0
- package/dist/widgets/display/ProsCons.svelte +60 -0
- package/dist/widgets/display/ProsCons.svelte.d.ts +12 -0
- package/dist/widgets/display/Qr.svelte +136 -0
- package/dist/widgets/display/Qr.svelte.d.ts +22 -0
- package/dist/widgets/display/Quote.svelte +54 -0
- package/dist/widgets/display/Quote.svelte.d.ts +16 -0
- package/dist/widgets/display/RichTextDisplay.svelte +73 -0
- package/dist/widgets/display/RichTextDisplay.svelte.d.ts +11 -0
- package/dist/widgets/display/Skeleton.svelte +36 -0
- package/dist/widgets/display/Skeleton.svelte.d.ts +7 -0
- package/dist/widgets/display/SoulStatus.svelte +148 -0
- package/dist/widgets/display/SoulStatus.svelte.d.ts +17 -0
- package/dist/widgets/display/Stat.svelte +232 -0
- package/dist/widgets/display/Stat.svelte.d.ts +22 -0
- package/dist/widgets/display/StatusDot.svelte +53 -0
- package/dist/widgets/display/StatusDot.svelte.d.ts +14 -0
- package/dist/widgets/display/Steps.svelte +117 -0
- package/dist/widgets/display/Steps.svelte.d.ts +20 -0
- package/dist/widgets/display/StreakBars.svelte +92 -0
- package/dist/widgets/display/StreakBars.svelte.d.ts +28 -0
- package/dist/widgets/display/Text.svelte +98 -0
- package/dist/widgets/display/Text.svelte.d.ts +13 -0
- package/dist/widgets/display/Trend.svelte +42 -0
- package/dist/widgets/display/Trend.svelte.d.ts +14 -0
- package/dist/widgets/display/diff-rows.d.ts +51 -0
- package/dist/widgets/display/diff-rows.js +107 -0
- package/dist/widgets/display/gutter.d.ts +5 -0
- package/dist/widgets/display/gutter.js +18 -0
- package/dist/widgets/display/illustration-contrast.d.ts +16 -0
- package/dist/widgets/display/illustration-contrast.js +162 -0
- package/dist/widgets/display/index.d.ts +39 -0
- package/dist/widgets/display/index.js +40 -0
- package/dist/widgets/display/linkify.d.ts +16 -0
- package/dist/widgets/display/linkify.js +47 -0
- package/dist/widgets/index.d.ts +30 -0
- package/dist/widgets/index.js +481 -0
- package/dist/widgets/input/Button.svelte +336 -0
- package/dist/widgets/input/Button.svelte.d.ts +27 -0
- package/dist/widgets/input/Checkbox.svelte +70 -0
- package/dist/widgets/input/Checkbox.svelte.d.ts +15 -0
- package/dist/widgets/input/CheckboxGroup.svelte +250 -0
- package/dist/widgets/input/CheckboxGroup.svelte.d.ts +20 -0
- package/dist/widgets/input/ChoiceGrid.svelte +150 -0
- package/dist/widgets/input/ChoiceGrid.svelte.d.ts +16 -0
- package/dist/widgets/input/CodeEditor.svelte +146 -0
- package/dist/widgets/input/CodeEditor.svelte.d.ts +17 -0
- package/dist/widgets/input/ColorPicker.svelte +511 -0
- package/dist/widgets/input/ColorPicker.svelte.d.ts +55 -0
- package/dist/widgets/input/Combobox.svelte +174 -0
- package/dist/widgets/input/Combobox.svelte.d.ts +22 -0
- package/dist/widgets/input/DatePicker.svelte +226 -0
- package/dist/widgets/input/DatePicker.svelte.d.ts +18 -0
- package/dist/widgets/input/FileUpload.svelte +197 -0
- package/dist/widgets/input/FileUpload.svelte.d.ts +32 -0
- package/dist/widgets/input/FilterBar.svelte +161 -0
- package/dist/widgets/input/FilterBar.svelte.d.ts +32 -0
- package/dist/widgets/input/Form.svelte +185 -0
- package/dist/widgets/input/Form.svelte.d.ts +55 -0
- package/dist/widgets/input/Input.svelte +190 -0
- package/dist/widgets/input/Input.svelte.d.ts +27 -0
- package/dist/widgets/input/LocationPicker.svelte +247 -0
- package/dist/widgets/input/LocationPicker.svelte.d.ts +28 -0
- package/dist/widgets/input/MultiSelect.svelte +233 -0
- package/dist/widgets/input/MultiSelect.svelte.d.ts +27 -0
- package/dist/widgets/input/NumberInput.svelte +193 -0
- package/dist/widgets/input/NumberInput.svelte.d.ts +30 -0
- package/dist/widgets/input/OtpInput.svelte +148 -0
- package/dist/widgets/input/OtpInput.svelte.d.ts +21 -0
- package/dist/widgets/input/RadioGroup.svelte +66 -0
- package/dist/widgets/input/RadioGroup.svelte.d.ts +20 -0
- package/dist/widgets/input/Rating.svelte +82 -0
- package/dist/widgets/input/Rating.svelte.d.ts +16 -0
- package/dist/widgets/input/RichText.svelte +179 -0
- package/dist/widgets/input/RichText.svelte.d.ts +17 -0
- package/dist/widgets/input/Search.svelte +255 -0
- package/dist/widgets/input/Search.svelte.d.ts +42 -0
- package/dist/widgets/input/Segmented.svelte +205 -0
- package/dist/widgets/input/Segmented.svelte.d.ts +34 -0
- package/dist/widgets/input/Select.svelte +90 -0
- package/dist/widgets/input/Select.svelte.d.ts +20 -0
- package/dist/widgets/input/Slider.svelte +92 -0
- package/dist/widgets/input/Slider.svelte.d.ts +17 -0
- package/dist/widgets/input/Switch.svelte +138 -0
- package/dist/widgets/input/Switch.svelte.d.ts +15 -0
- package/dist/widgets/input/Textarea.svelte +84 -0
- package/dist/widgets/input/Textarea.svelte.d.ts +20 -0
- package/dist/widgets/input/TimePicker.svelte +224 -0
- package/dist/widgets/input/TimePicker.svelte.d.ts +18 -0
- package/dist/widgets/input/choice-grid.d.ts +12 -0
- package/dist/widgets/input/choice-grid.js +1 -0
- package/dist/widgets/input/color-math.d.ts +25 -0
- package/dist/widgets/input/color-math.js +59 -0
- package/dist/widgets/input/field-name.d.ts +4 -0
- package/dist/widgets/input/field-name.js +14 -0
- package/dist/widgets/input/index.d.ts +25 -0
- package/dist/widgets/input/index.js +25 -0
- package/dist/widgets/interactive/DrawingCanvas.svelte +279 -0
- package/dist/widgets/interactive/DrawingCanvas.svelte.d.ts +14 -0
- package/dist/widgets/interactive/Flashcard.svelte +140 -0
- package/dist/widgets/interactive/Flashcard.svelte.d.ts +21 -0
- package/dist/widgets/interactive/Timer.svelte +157 -0
- package/dist/widgets/interactive/Timer.svelte.d.ts +15 -0
- package/dist/widgets/interactive/TodoList.svelte +181 -0
- package/dist/widgets/interactive/TodoList.svelte.d.ts +25 -0
- package/dist/widgets/interactive/index.d.ts +4 -0
- package/dist/widgets/interactive/index.js +10 -0
- package/dist/widgets/layout/Accordion.svelte +76 -0
- package/dist/widgets/layout/Accordion.svelte.d.ts +20 -0
- package/dist/widgets/layout/AppShell.svelte +56 -0
- package/dist/widgets/layout/AppShell.svelte.d.ts +15 -0
- package/dist/widgets/layout/Breadcrumb.svelte +92 -0
- package/dist/widgets/layout/Breadcrumb.svelte.d.ts +21 -0
- package/dist/widgets/layout/Card.svelte +143 -0
- package/dist/widgets/layout/Card.svelte.d.ts +19 -0
- package/dist/widgets/layout/Collapsible.svelte +76 -0
- package/dist/widgets/layout/Collapsible.svelte.d.ts +18 -0
- package/dist/widgets/layout/Container.svelte +44 -0
- package/dist/widgets/layout/Container.svelte.d.ts +11 -0
- package/dist/widgets/layout/Dashboard.svelte +97 -0
- package/dist/widgets/layout/Dashboard.svelte.d.ts +17 -0
- package/dist/widgets/layout/DashboardSlot.svelte +33 -0
- package/dist/widgets/layout/DashboardSlot.svelte.d.ts +12 -0
- package/dist/widgets/layout/Flex.svelte +101 -0
- package/dist/widgets/layout/Flex.svelte.d.ts +18 -0
- package/dist/widgets/layout/GlassCard.svelte +112 -0
- package/dist/widgets/layout/GlassCard.svelte.d.ts +17 -0
- package/dist/widgets/layout/Grid.svelte +105 -0
- package/dist/widgets/layout/Grid.svelte.d.ts +14 -0
- package/dist/widgets/layout/Hero.svelte +63 -0
- package/dist/widgets/layout/Hero.svelte.d.ts +16 -0
- package/dist/widgets/layout/ListRow.svelte +162 -0
- package/dist/widgets/layout/ListRow.svelte.d.ts +28 -0
- package/dist/widgets/layout/MasterDetail.svelte +136 -0
- package/dist/widgets/layout/MasterDetail.svelte.d.ts +35 -0
- package/dist/widgets/layout/Modal.svelte +104 -0
- package/dist/widgets/layout/Modal.svelte.d.ts +16 -0
- package/dist/widgets/layout/PageHeader.svelte +107 -0
- package/dist/widgets/layout/PageHeader.svelte.d.ts +26 -0
- package/dist/widgets/layout/PanelHeader.svelte +76 -0
- package/dist/widgets/layout/PanelHeader.svelte.d.ts +19 -0
- package/dist/widgets/layout/Section.svelte +41 -0
- package/dist/widgets/layout/Section.svelte.d.ts +13 -0
- package/dist/widgets/layout/SectionHeader.svelte +95 -0
- package/dist/widgets/layout/SectionHeader.svelte.d.ts +18 -0
- package/dist/widgets/layout/Separator.svelte +69 -0
- package/dist/widgets/layout/Separator.svelte.d.ts +10 -0
- package/dist/widgets/layout/Sheet.svelte +64 -0
- package/dist/widgets/layout/Sheet.svelte.d.ts +23 -0
- package/dist/widgets/layout/Sidebar.svelte +146 -0
- package/dist/widgets/layout/Sidebar.svelte.d.ts +31 -0
- package/dist/widgets/layout/Split.svelte +183 -0
- package/dist/widgets/layout/Split.svelte.d.ts +25 -0
- package/dist/widgets/layout/Tabs.svelte +90 -0
- package/dist/widgets/layout/Tabs.svelte.d.ts +23 -0
- package/dist/widgets/layout/index.d.ts +21 -0
- package/dist/widgets/layout/index.js +22 -0
- package/dist/widgets/marketing/Cta.svelte +22 -0
- package/dist/widgets/marketing/Cta.svelte.d.ts +13 -0
- package/dist/widgets/marketing/Faq.svelte +71 -0
- package/dist/widgets/marketing/Faq.svelte.d.ts +16 -0
- package/dist/widgets/marketing/FeatureGrid.svelte +52 -0
- package/dist/widgets/marketing/FeatureGrid.svelte.d.ts +16 -0
- package/dist/widgets/marketing/Footer.svelte +33 -0
- package/dist/widgets/marketing/Footer.svelte.d.ts +18 -0
- package/dist/widgets/marketing/Hero.svelte +206 -0
- package/dist/widgets/marketing/Hero.svelte.d.ts +31 -0
- package/dist/widgets/marketing/LogoCloud.svelte +30 -0
- package/dist/widgets/marketing/LogoCloud.svelte.d.ts +15 -0
- package/dist/widgets/marketing/Navbar.svelte +46 -0
- package/dist/widgets/marketing/Navbar.svelte.d.ts +23 -0
- package/dist/widgets/marketing/Newsletter.svelte +32 -0
- package/dist/widgets/marketing/Newsletter.svelte.d.ts +13 -0
- package/dist/widgets/marketing/Testimonial.svelte +26 -0
- package/dist/widgets/marketing/Testimonial.svelte.d.ts +12 -0
- package/dist/widgets/marketing/index.d.ts +9 -0
- package/dist/widgets/marketing/index.js +14 -0
- package/dist/widgets/media/AudioPlayer.svelte +236 -0
- package/dist/widgets/media/AudioPlayer.svelte.d.ts +19 -0
- package/dist/widgets/media/Embed.svelte +205 -0
- package/dist/widgets/media/Embed.svelte.d.ts +41 -0
- package/dist/widgets/media/ModelViewer.svelte +409 -0
- package/dist/widgets/media/ModelViewer.svelte.d.ts +36 -0
- package/dist/widgets/media/VideoPlayer.svelte +255 -0
- package/dist/widgets/media/VideoPlayer.svelte.d.ts +21 -0
- package/dist/widgets/media/index.d.ts +4 -0
- package/dist/widgets/media/index.js +12 -0
- package/dist/widgets/media/model-asset-types.d.ts +41 -0
- package/dist/widgets/media/model-asset-types.js +23 -0
- package/dist/widgets/media/model-assets.d.ts +2 -0
- package/dist/widgets/media/model-assets.js +501 -0
- package/dist/widgets/motion/Parallax.svelte +39 -0
- package/dist/widgets/motion/Parallax.svelte.d.ts +13 -0
- package/dist/widgets/motion/Reveal.svelte +44 -0
- package/dist/widgets/motion/Reveal.svelte.d.ts +15 -0
- package/dist/widgets/motion/index.d.ts +2 -0
- package/dist/widgets/motion/index.js +4 -0
- package/dist/widgets/overlay/Alert.svelte +77 -0
- package/dist/widgets/overlay/Alert.svelte.d.ts +18 -0
- package/dist/widgets/overlay/Coachmark.svelte +146 -0
- package/dist/widgets/overlay/Coachmark.svelte.d.ts +26 -0
- package/dist/widgets/overlay/CommandPalette.svelte +369 -0
- package/dist/widgets/overlay/CommandPalette.svelte.d.ts +35 -0
- package/dist/widgets/overlay/ConfirmDialog.svelte +77 -0
- package/dist/widgets/overlay/ConfirmDialog.svelte.d.ts +3 -0
- package/dist/widgets/overlay/ContextMenu.svelte +153 -0
- package/dist/widgets/overlay/ContextMenu.svelte.d.ts +24 -0
- package/dist/widgets/overlay/DropdownMenu.svelte +128 -0
- package/dist/widgets/overlay/DropdownMenu.svelte.d.ts +33 -0
- package/dist/widgets/overlay/ErrorState.svelte +121 -0
- package/dist/widgets/overlay/ErrorState.svelte.d.ts +19 -0
- package/dist/widgets/overlay/HoverCard.svelte +71 -0
- package/dist/widgets/overlay/HoverCard.svelte.d.ts +20 -0
- package/dist/widgets/overlay/NotificationCenter.svelte +178 -0
- package/dist/widgets/overlay/NotificationCenter.svelte.d.ts +28 -0
- package/dist/widgets/overlay/Popover.svelte +69 -0
- package/dist/widgets/overlay/Popover.svelte.d.ts +20 -0
- package/dist/widgets/overlay/Toast.svelte +91 -0
- package/dist/widgets/overlay/Toast.svelte.d.ts +11 -0
- package/dist/widgets/overlay/Tooltip.svelte +70 -0
- package/dist/widgets/overlay/Tooltip.svelte.d.ts +23 -0
- package/dist/widgets/overlay/index.d.ts +18 -0
- package/dist/widgets/overlay/index.js +18 -0
- package/dist/widgets/overlay/palette-search.d.ts +33 -0
- package/dist/widgets/overlay/palette-search.js +94 -0
- package/dist/widgets/premium/AnimatedBeam.svelte +63 -0
- package/dist/widgets/premium/AnimatedBeam.svelte.d.ts +16 -0
- package/dist/widgets/premium/Aurora.svelte +66 -0
- package/dist/widgets/premium/Aurora.svelte.d.ts +15 -0
- package/dist/widgets/premium/BentoGrid.svelte +46 -0
- package/dist/widgets/premium/BentoGrid.svelte.d.ts +20 -0
- package/dist/widgets/premium/BorderBeam.svelte +61 -0
- package/dist/widgets/premium/BorderBeam.svelte.d.ts +19 -0
- package/dist/widgets/premium/Marquee.svelte +52 -0
- package/dist/widgets/premium/Marquee.svelte.d.ts +19 -0
- package/dist/widgets/premium/Shimmer.svelte +106 -0
- package/dist/widgets/premium/Shimmer.svelte.d.ts +15 -0
- package/dist/widgets/premium/Spotlight.svelte +82 -0
- package/dist/widgets/premium/Spotlight.svelte.d.ts +15 -0
- package/dist/widgets/premium/TextEffect.svelte +63 -0
- package/dist/widgets/premium/TextEffect.svelte.d.ts +18 -0
- package/dist/widgets/premium/index.d.ts +8 -0
- package/dist/widgets/premium/index.js +11 -0
- package/dist/widgets/research/AnalystBar.svelte +141 -0
- package/dist/widgets/research/AnalystBar.svelte.d.ts +18 -0
- package/dist/widgets/research/Callout.svelte +84 -0
- package/dist/widgets/research/Callout.svelte.d.ts +14 -0
- package/dist/widgets/research/Citation.svelte +114 -0
- package/dist/widgets/research/Citation.svelte.d.ts +19 -0
- package/dist/widgets/research/CompanyHeader.svelte +236 -0
- package/dist/widgets/research/CompanyHeader.svelte.d.ts +30 -0
- package/dist/widgets/research/DiscoverCard.svelte +129 -0
- package/dist/widgets/research/DiscoverCard.svelte.d.ts +19 -0
- package/dist/widgets/research/FollowUp.svelte +123 -0
- package/dist/widgets/research/FollowUp.svelte.d.ts +15 -0
- package/dist/widgets/research/KvTable.svelte +95 -0
- package/dist/widgets/research/KvTable.svelte.d.ts +18 -0
- package/dist/widgets/research/NewsCard.svelte +144 -0
- package/dist/widgets/research/NewsCard.svelte.d.ts +21 -0
- package/dist/widgets/research/RangeBar.svelte +128 -0
- package/dist/widgets/research/RangeBar.svelte.d.ts +24 -0
- package/dist/widgets/research/SourceCard.svelte +129 -0
- package/dist/widgets/research/SourceCard.svelte.d.ts +19 -0
- package/dist/widgets/research/SourcesBar.svelte +477 -0
- package/dist/widgets/research/SourcesBar.svelte.d.ts +25 -0
- package/dist/widgets/research/Ticker.svelte +90 -0
- package/dist/widgets/research/Ticker.svelte.d.ts +16 -0
- package/dist/widgets/research/Timeline.svelte +154 -0
- package/dist/widgets/research/Timeline.svelte.d.ts +25 -0
- package/dist/widgets/research/index.d.ts +13 -0
- package/dist/widgets/research/index.js +13 -0
- package/dist/widgets/research/sources.d.ts +37 -0
- package/dist/widgets/research/sources.js +141 -0
- package/dist/widgets/text-coerce.d.ts +1 -0
- package/dist/widgets/text-coerce.js +7 -0
- package/dist/widgets/validate-catalog-bound.d.ts +26 -0
- package/dist/widgets/validate-catalog-bound.js +36 -0
- package/dist/widgets/vertical/ApiKey.svelte +131 -0
- package/dist/widgets/vertical/ApiKey.svelte.d.ts +21 -0
- package/dist/widgets/vertical/AuditLog.svelte +750 -0
- package/dist/widgets/vertical/AuditLog.svelte.d.ts +30 -0
- package/dist/widgets/vertical/BulkActionBar.svelte +406 -0
- package/dist/widgets/vertical/BulkActionBar.svelte.d.ts +24 -0
- package/dist/widgets/vertical/CommentThread.svelte +109 -0
- package/dist/widgets/vertical/CommentThread.svelte.d.ts +22 -0
- package/dist/widgets/vertical/InvoiceLines.svelte +220 -0
- package/dist/widgets/vertical/InvoiceLines.svelte.d.ts +20 -0
- package/dist/widgets/vertical/OrgChart.svelte +537 -0
- package/dist/widgets/vertical/OrgChart.svelte.d.ts +20 -0
- package/dist/widgets/vertical/PeoplePicker.svelte +233 -0
- package/dist/widgets/vertical/PeoplePicker.svelte.d.ts +26 -0
- package/dist/widgets/vertical/PermissionMatrix.svelte +119 -0
- package/dist/widgets/vertical/PermissionMatrix.svelte.d.ts +29 -0
- package/dist/widgets/vertical/PricingTable.svelte +174 -0
- package/dist/widgets/vertical/PricingTable.svelte.d.ts +32 -0
- package/dist/widgets/vertical/SavedViews.svelte +319 -0
- package/dist/widgets/vertical/SavedViews.svelte.d.ts +25 -0
- package/dist/widgets/vertical/SettingsList.svelte +84 -0
- package/dist/widgets/vertical/SettingsList.svelte.d.ts +20 -0
- package/dist/widgets/vertical/audit-log-data.d.ts +91 -0
- package/dist/widgets/vertical/audit-log-data.js +290 -0
- package/dist/widgets/vertical/bulk-action-bar.d.ts +37 -0
- package/dist/widgets/vertical/bulk-action-bar.js +105 -0
- package/dist/widgets/vertical/index.d.ts +11 -0
- package/dist/widgets/vertical/index.js +11 -0
- package/dist/widgets/vertical/invoice-math.d.ts +39 -0
- package/dist/widgets/vertical/invoice-math.js +67 -0
- package/dist/widgets/vertical/org-chart-layout.d.ts +52 -0
- package/dist/widgets/vertical/org-chart-layout.js +192 -0
- package/dist/widgets/vertical/saved-views.d.ts +22 -0
- package/dist/widgets/vertical/saved-views.js +77 -0
- package/dist/widgets/workflow/WorkflowEdge.svelte +77 -0
- package/dist/widgets/workflow/WorkflowEdge.svelte.d.ts +4 -0
- package/dist/widgets/workflow/WorkflowNode.svelte +173 -0
- package/dist/widgets/workflow/WorkflowNode.svelte.d.ts +9 -0
- package/dist/widgets/workflow/index.d.ts +4 -0
- package/dist/widgets/workflow/index.js +4 -0
- package/dist/widgets/workflow/layout.d.ts +192 -0
- package/dist/widgets/workflow/layout.js +845 -0
- package/dist/widgets/workflow/types.d.ts +40 -0
- package/dist/widgets/workflow/types.js +4 -0
- package/package.json +177 -4
|
@@ -0,0 +1,1511 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
C4Diagram.svelte — SvelteFlow + ELK.js C4 model diagram: all four levels
|
|
3
|
+
(Context, Container, Component, Code), pan/zoom, minimap, nested boundaries
|
|
4
|
+
and drill-down through `ondrilldown`.
|
|
5
|
+
|
|
6
|
+
Live layer (all optional; absent, the widget behaves as it always did):
|
|
7
|
+
`status` paints a node's state through a `data-c4-status` attribute on its
|
|
8
|
+
SvelteFlow wrapper (ring colours are ripple tokens; only `changing` moves;
|
|
9
|
+
`planned` draws a blueprint: dashed outline, no fill, content dimmed;
|
|
10
|
+
`future` the same blueprint dotted and fainter; `added` a heavier double
|
|
11
|
+
success ring (landed is a thin single one); `removed` a ghost: card kept,
|
|
12
|
+
content faded, dashed error-toned outline;
|
|
13
|
+
written straight to the wrappers, since a new nodes array makes SvelteFlow
|
|
14
|
+
re-lay every edge),
|
|
15
|
+
`markers` pins dots to nodes, `selectedId` controls selection, and
|
|
16
|
+
`focusId` + `follow` keep the camera on one node. A user pan or zoom (the
|
|
17
|
+
zoom buttons and the minimap included) calls `onmanualcamera`, so a host can
|
|
18
|
+
drop follow mode. Enter or Space on a focused node runs exactly what a click
|
|
19
|
+
on it runs (activate.ts), for every node type.
|
|
20
|
+
|
|
21
|
+
`highlight` dims (`data-c4-dim`, a DOM write like status) everything outside
|
|
22
|
+
one element's reach and animates the accent edges inside it (still under
|
|
23
|
+
reduced motion).
|
|
24
|
+
|
|
25
|
+
`flow` + a controlled `step` play a data flow over the map; while a step is current it
|
|
26
|
+
replaces `highlight`. A message lights its two ends and its relationship (the reach path),
|
|
27
|
+
shows its label in a port badge and runs a marker along the edge (C4Edge), or along a dashed
|
|
28
|
+
hop when no relationship carries it (markFlow); a process pulses its element; a note dims
|
|
29
|
+
nothing. The camera frames a step's elements only when one is off screen (C4LiveLayer). The
|
|
30
|
+
step is announced through a polite live region; the host draws the transport and the note
|
|
31
|
+
text, and a click on a connection asks for the next step on it (`onstep`). Stepping only
|
|
32
|
+
re-decorates the laid-out graph: no ELK.
|
|
33
|
+
|
|
34
|
+
Edges follow ELK's orthogonal routes (C4Edge), or curves with arrowheads
|
|
35
|
+
along them (`edgeShape: 'curved'`); every card fills its ELK box, so routes
|
|
36
|
+
meet card edges and labels sit in the space ELK reserved.
|
|
37
|
+
|
|
38
|
+
SvelteFlow stays mounted across diagram swaps: only the first layout shows
|
|
39
|
+
the loading state, and C4LiveLayer refits when the node set changes. Layout
|
|
40
|
+
is keyed on the diagram's content, so a host re-reading the same model (a new
|
|
41
|
+
object) runs no ELK and moves nothing. The layout spinner stops under
|
|
42
|
+
prefers-reduced-motion.
|
|
43
|
+
|
|
44
|
+
Semantic zoom (pass `expanded`): one canvas for the whole tree. An expanded
|
|
45
|
+
element opens in place as a boundary around its children (an expanded code
|
|
46
|
+
element with an excerpt opens as a code panel), `scopeId` ghosts what lies
|
|
47
|
+
outside it, edges lift onto drawn siblings with port badges and counts, and
|
|
48
|
+
markers on hidden elements roll up to their drawn ancestor (semantic.ts,
|
|
49
|
+
semantic-flow.ts). Every semantic node is one SvelteFlow type (C4ViewNode
|
|
50
|
+
draws data.view), so a node that opens or closes swaps its component without
|
|
51
|
+
SvelteFlow re-measuring the map. Between layouts nodes glide and resize with the ripple
|
|
52
|
+
ease, leaving nodes fade where they were (and stay, hidden, until the next
|
|
53
|
+
layout replaces them: removing them alone is another whole-map pass), edges
|
|
54
|
+
and markers sit out the move,
|
|
55
|
+
and the camera eases to the new frame; all instant under reduced motion.
|
|
56
|
+
Without `expanded` none of this runs and the widget renders as before.
|
|
57
|
+
-->
|
|
58
|
+
<script lang="ts">
|
|
59
|
+
import { SvelteFlow, Background, Controls, MiniMap } from '@xyflow/svelte';
|
|
60
|
+
import type { Node, Edge, NodeTypes, EdgeTypes } from '@xyflow/svelte';
|
|
61
|
+
import '@xyflow/svelte/dist/style.css';
|
|
62
|
+
|
|
63
|
+
import { C4_VIEWS } from './nodes/index.js';
|
|
64
|
+
import C4ViewNode from './nodes/C4ViewNode.svelte';
|
|
65
|
+
import C4LiveLayer from './C4LiveLayer.svelte';
|
|
66
|
+
import C4Edge from './C4Edge.svelte';
|
|
67
|
+
import { setContext, untrack } from 'svelte';
|
|
68
|
+
import { prefersReducedMotion } from 'svelte/motion';
|
|
69
|
+
import { computeElkGraph, edgeLabelText, getNodeType, isGroupNode, type LayoutPosition } from './elk-layout.js';
|
|
70
|
+
import {
|
|
71
|
+
bundleEdges,
|
|
72
|
+
decorateEdges,
|
|
73
|
+
decorateNodes,
|
|
74
|
+
litIds,
|
|
75
|
+
markResized,
|
|
76
|
+
reachSet,
|
|
77
|
+
presized,
|
|
78
|
+
nodeSetKey,
|
|
79
|
+
statusesPresent,
|
|
80
|
+
unionRect,
|
|
81
|
+
STATUS_LABELS,
|
|
82
|
+
EDGE_STROKE,
|
|
83
|
+
FIT_MIN_ZOOM,
|
|
84
|
+
edgeLook,
|
|
85
|
+
linkKey,
|
|
86
|
+
markFlow,
|
|
87
|
+
MOVE_MS,
|
|
88
|
+
type FlowMark,
|
|
89
|
+
type ReachSet,
|
|
90
|
+
type Rect,
|
|
91
|
+
} from './live.js';
|
|
92
|
+
import { liftMarkers, pathTo, representative, type C4Tree, type Visibility } from './semantic.js';
|
|
93
|
+
import { buildSemanticFlow, VIEW_NODE } from './semantic-flow.js';
|
|
94
|
+
import { activateNode } from './activate.js';
|
|
95
|
+
// From types.ts, NOT the barrel, and aliased: this component is itself named
|
|
96
|
+
// C4Diagram, and svelte-package emits `declare const C4Diagram` plus
|
|
97
|
+
// `type C4Diagram` in the .d.ts. An unaliased type import of the same name
|
|
98
|
+
// collided with both, so consumers saw the component as type-only.
|
|
99
|
+
import type {
|
|
100
|
+
C4Diagram as C4DiagramData,
|
|
101
|
+
C4Element,
|
|
102
|
+
C4System,
|
|
103
|
+
C4Container,
|
|
104
|
+
C4NodeData,
|
|
105
|
+
C4Status,
|
|
106
|
+
C4Marker,
|
|
107
|
+
C4Highlight,
|
|
108
|
+
C4EdgeShape,
|
|
109
|
+
C4Flow,
|
|
110
|
+
} from './types.js';
|
|
111
|
+
|
|
112
|
+
interface Props {
|
|
113
|
+
diagram: C4DiagramData;
|
|
114
|
+
class?: string;
|
|
115
|
+
onclick?: (elementId: string) => void;
|
|
116
|
+
ondrilldown?: (elementId: string, level: string) => void;
|
|
117
|
+
/** Live state per element id. */
|
|
118
|
+
status?: Record<string, C4Status>;
|
|
119
|
+
/** Dots per element id (who is working there). */
|
|
120
|
+
markers?: Record<string, C4Marker[]>;
|
|
121
|
+
/** The element the camera frames while `follow` is true. */
|
|
122
|
+
focusId?: string;
|
|
123
|
+
follow?: boolean;
|
|
124
|
+
/** Controlled selection; leave undefined to let clicks select. */
|
|
125
|
+
selectedId?: string;
|
|
126
|
+
/** A user pan, zoom or zoom-button press moved the camera. */
|
|
127
|
+
onmanualcamera?: () => void;
|
|
128
|
+
/** Semantic zoom: ids drawn open on one canvas. Passing it (even []) turns the mode on. */
|
|
129
|
+
expanded?: string[];
|
|
130
|
+
/** Semantic zoom: the element being looked inside; everything outside it is ghosted. */
|
|
131
|
+
scopeId?: string;
|
|
132
|
+
/** Light this element's reach (in, out or both, to `depth`, default both and 3); dim the rest. */
|
|
133
|
+
highlight?: C4Highlight;
|
|
134
|
+
/** How edges draw along ELK's routes. Default 'orthogonal'. */
|
|
135
|
+
edgeShape?: C4EdgeShape;
|
|
136
|
+
/** A data flow to play over the map, one step at a time. */
|
|
137
|
+
flow?: C4Flow;
|
|
138
|
+
/** Controlled: the index of the flow's current step. Out of range, no step is shown. */
|
|
139
|
+
step?: number;
|
|
140
|
+
/** A connection was clicked: the index of the next step that travels it. */
|
|
141
|
+
onstep?: (n: number) => void;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
let {
|
|
145
|
+
diagram,
|
|
146
|
+
class: className = '',
|
|
147
|
+
onclick,
|
|
148
|
+
ondrilldown,
|
|
149
|
+
status,
|
|
150
|
+
markers,
|
|
151
|
+
focusId,
|
|
152
|
+
follow,
|
|
153
|
+
selectedId,
|
|
154
|
+
onmanualcamera,
|
|
155
|
+
expanded,
|
|
156
|
+
scopeId,
|
|
157
|
+
highlight,
|
|
158
|
+
edgeShape = 'orthogonal',
|
|
159
|
+
flow,
|
|
160
|
+
step,
|
|
161
|
+
onstep,
|
|
162
|
+
}: Props = $props();
|
|
163
|
+
|
|
164
|
+
// Every C4 view as a SvelteFlow node type (the legacy diagram), plus semantic zoom's one type.
|
|
165
|
+
const nodeTypes = { ...C4_VIEWS, [VIEW_NODE]: C4ViewNode } as unknown as NodeTypes;
|
|
166
|
+
/** How a node is drawn: its view under semantic zoom, else its type. */
|
|
167
|
+
const viewOf = (n: Node) => (n.data as unknown as C4NodeData).view ?? n.type;
|
|
168
|
+
|
|
169
|
+
const edgeTypes: EdgeTypes = { c4: C4Edge as any };
|
|
170
|
+
|
|
171
|
+
// Level badge labels
|
|
172
|
+
const levelLabels: Record<string, string> = {
|
|
173
|
+
context: 'System Context',
|
|
174
|
+
container: 'Container',
|
|
175
|
+
component: 'Component',
|
|
176
|
+
code: 'Code',
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// Ripple tokens, so the canvas follows the host theme. Edges and the minimap
|
|
180
|
+
// take colours as strings, which is why these are constants, not CSS.
|
|
181
|
+
const MINIMAP_NODE = 'color-mix(in oklab, var(--ripple-muted-foreground) 45%, transparent)';
|
|
182
|
+
const MINIMAP_GROUP = 'color-mix(in oklab, var(--ripple-muted-foreground) 10%, transparent)';
|
|
183
|
+
|
|
184
|
+
const SHAPE_LEGEND = [
|
|
185
|
+
{ shape: 'person', label: 'Person' },
|
|
186
|
+
{ shape: 'system', label: 'System' },
|
|
187
|
+
{ shape: 'container', label: 'Container' },
|
|
188
|
+
{ shape: 'database', label: 'Database' },
|
|
189
|
+
{ shape: 'queue', label: 'Queue' },
|
|
190
|
+
{ shape: 'external', label: 'External' },
|
|
191
|
+
];
|
|
192
|
+
|
|
193
|
+
// ---- ELK layout state ----
|
|
194
|
+
let flowNodes = $state.raw<Node[]>([]);
|
|
195
|
+
let flowEdges = $state.raw<Edge[]>([]);
|
|
196
|
+
let layoutReady = $state(false);
|
|
197
|
+
let layoutError = $state<string | null>(null);
|
|
198
|
+
|
|
199
|
+
// Helpers for classifying C4 elements
|
|
200
|
+
function isDatabase(el: C4Element): boolean {
|
|
201
|
+
return 'type' in el && (el as { type?: string }).type === 'database';
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function isQueue(el: C4Element): boolean {
|
|
205
|
+
return 'type' in el && (el as { type?: string }).type === 'queue';
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function hasDrillDown(el: C4Element): boolean {
|
|
209
|
+
if (el.drillable !== undefined) return el.drillable;
|
|
210
|
+
return (
|
|
211
|
+
('containers' in el && Array.isArray((el as C4System).containers) && ((el as C4System).containers?.length ?? 0) > 0) ||
|
|
212
|
+
('components' in el && Array.isArray((el as C4Container).components) && ((el as C4Container).components?.length ?? 0) > 0)
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function getSubtype(el: C4Element): string | undefined {
|
|
217
|
+
if ('type' in el) return (el as { type?: string }).type;
|
|
218
|
+
return undefined;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Build the full flat list of C4 elements to layout, including nested
|
|
223
|
+
* containers/components that live inside parent system nodes.
|
|
224
|
+
*/
|
|
225
|
+
function collectAllElements(diagram: C4DiagramData): C4Element[] {
|
|
226
|
+
const all: C4Element[] = [];
|
|
227
|
+
for (const el of diagram.elements) {
|
|
228
|
+
all.push(el);
|
|
229
|
+
// For context views, also add containers as children of systems
|
|
230
|
+
// so they appear in the group node layout
|
|
231
|
+
if ('containers' in el && Array.isArray((el as C4System).containers)) {
|
|
232
|
+
for (const c of (el as C4System).containers ?? []) {
|
|
233
|
+
all.push(c as C4Element);
|
|
234
|
+
if ('components' in c && Array.isArray(c.components)) {
|
|
235
|
+
for (const comp of c.components ?? []) {
|
|
236
|
+
all.push(comp as C4Element);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if ('components' in el && Array.isArray((el as C4Container).components)) {
|
|
242
|
+
for (const comp of (el as C4Container).components ?? []) {
|
|
243
|
+
all.push(comp as C4Element);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return all;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Convert the C4 diagram to SvelteFlow Node[] using ELK-computed positions.
|
|
252
|
+
*/
|
|
253
|
+
async function buildFlowGraph(diagram: C4DiagramData): Promise<{ nodes: Node[]; edges: Edge[] }> {
|
|
254
|
+
const { positions, routes } = await computeElkGraph(diagram);
|
|
255
|
+
|
|
256
|
+
// Gather all elements (top-level and nested children for group nodes)
|
|
257
|
+
const allElements = collectAllElements(diagram);
|
|
258
|
+
const elementMap = new Map<string, C4Element>(allElements.map((e) => [e.id, e]));
|
|
259
|
+
|
|
260
|
+
// Build parent→children mapping for SvelteFlow node nesting
|
|
261
|
+
const parentOf = new Map<string, string>();
|
|
262
|
+
for (const el of diagram.elements) {
|
|
263
|
+
if ('containers' in el && Array.isArray((el as C4System).containers)) {
|
|
264
|
+
for (const c of (el as C4System).containers ?? []) {
|
|
265
|
+
parentOf.set(c.id, el.id);
|
|
266
|
+
if ('components' in c && Array.isArray(c.components)) {
|
|
267
|
+
for (const comp of c.components ?? []) {
|
|
268
|
+
parentOf.set(comp.id, c.id);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
if ('components' in el && Array.isArray((el as C4Container).components)) {
|
|
274
|
+
for (const comp of (el as C4Container).components ?? []) {
|
|
275
|
+
parentOf.set(comp.id, el.id);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const nodes: Node[] = [];
|
|
281
|
+
|
|
282
|
+
for (const el of allElements) {
|
|
283
|
+
const pos = positions.get(el.id);
|
|
284
|
+
if (!pos) continue;
|
|
285
|
+
|
|
286
|
+
const nodeType = getNodeType(el);
|
|
287
|
+
const isGroup = isGroupNode(el);
|
|
288
|
+
const parentId = parentOf.get(el.id);
|
|
289
|
+
|
|
290
|
+
// Build the node data payload
|
|
291
|
+
const nodeData: C4NodeData = {
|
|
292
|
+
name: el.name,
|
|
293
|
+
description: el.description,
|
|
294
|
+
technology: 'technology' in el ? (el as { technology?: string }).technology : undefined,
|
|
295
|
+
external: 'external' in el ? (el as { external?: boolean }).external : false,
|
|
296
|
+
subtype: getSubtype(el),
|
|
297
|
+
drillable: hasDrillDown(el),
|
|
298
|
+
kb_article: 'kb_article' in el ? (el as { kb_article?: string }).kb_article : undefined,
|
|
299
|
+
tags: 'tags' in el ? (el as { tags?: string[] }).tags : undefined,
|
|
300
|
+
kind: el.kind,
|
|
301
|
+
element: el,
|
|
302
|
+
diagramLevel: diagram.level,
|
|
303
|
+
onclick: onclick ? (element: C4Element) => onclick(element.id) : undefined,
|
|
304
|
+
ondrilldown: ondrilldown
|
|
305
|
+
? (element: C4Element, level: string) => ondrilldown(element.id, level)
|
|
306
|
+
: undefined,
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
// Compute position — SvelteFlow child node positions are relative to parent
|
|
310
|
+
let nodeX = pos.x;
|
|
311
|
+
let nodeY = pos.y;
|
|
312
|
+
|
|
313
|
+
if (parentId) {
|
|
314
|
+
const parentPos = positions.get(parentId);
|
|
315
|
+
if (parentPos) {
|
|
316
|
+
nodeX = pos.x - parentPos.x;
|
|
317
|
+
nodeY = pos.y - parentPos.y;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const node: Node = {
|
|
322
|
+
id: el.id,
|
|
323
|
+
type: nodeType,
|
|
324
|
+
position: { x: nodeX, y: nodeY },
|
|
325
|
+
data: nodeData as unknown as Record<string, unknown>,
|
|
326
|
+
draggable: false,
|
|
327
|
+
selectable: true,
|
|
328
|
+
// Every node takes its ELK box, so ELK's edge routes meet the card edges.
|
|
329
|
+
width: pos.width,
|
|
330
|
+
height: pos.height,
|
|
331
|
+
...presized(pos),
|
|
332
|
+
// Group nodes need explicit dimensions for SvelteFlow to render the bounding box
|
|
333
|
+
...(isGroup ? { style: `width: ${pos.width}px; height: ${pos.height}px;` } : {}),
|
|
334
|
+
...(parentId ? { parentId } : {}),
|
|
335
|
+
// Group nodes must not be draggable out of the layout
|
|
336
|
+
...(isGroup ? { draggable: false } : {}),
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
nodes.push(node);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// Build edges from relationships. An edge ELK routed draws its route (C4Edge);
|
|
343
|
+
// without one (ELK fell back to a grid) it stays a smoothstep.
|
|
344
|
+
const allElementIds = new Set(allElements.map((e) => e.id));
|
|
345
|
+
const edges: Edge[] = [];
|
|
346
|
+
diagram.relationships.forEach((r, i) => {
|
|
347
|
+
if (!allElementIds.has(r.from) || !allElementIds.has(r.to)) return;
|
|
348
|
+
const look = edgeLook(r.style);
|
|
349
|
+
|
|
350
|
+
const route = routes.get(i);
|
|
351
|
+
edges.push({
|
|
352
|
+
id: `edge-${i}-${r.from}-${r.to}`,
|
|
353
|
+
source: r.from,
|
|
354
|
+
target: r.to,
|
|
355
|
+
type: route ? 'c4' : 'smoothstep',
|
|
356
|
+
label: edgeLabelText(r) || undefined,
|
|
357
|
+
animated: look.animated,
|
|
358
|
+
style: look.style,
|
|
359
|
+
...(route ? { data: { points: route.points, labelBox: route.label } } : {}),
|
|
360
|
+
});
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
return { nodes, edges };
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// True once a layout has landed. Plain (not $state): only the effect reads it.
|
|
367
|
+
let hasLayout = false;
|
|
368
|
+
|
|
369
|
+
// ---- Semantic zoom state ----
|
|
370
|
+
/** The last semantic layout: what is drawn, and every element's absolute box. */
|
|
371
|
+
let semanticInfo = $state.raw<{ tree: C4Tree; vis: Visibility; rects: Map<string, LayoutPosition> } | null>(null);
|
|
372
|
+
/** Nodes that just left the map, fading where they were until the move settles. */
|
|
373
|
+
let leaving = $state.raw<Node[]>([]);
|
|
374
|
+
/** True while nodes glide between layouts: edges and markers sit it out. */
|
|
375
|
+
let moving = $state(false);
|
|
376
|
+
/** The layout inputs (diagram content, expanded, scope) of the last layout that landed or failed. */
|
|
377
|
+
let landedInputs = $state.raw<readonly unknown[] | null>(null);
|
|
378
|
+
/** Alternates the resize animation's name, so each move restarts it (markResized). */
|
|
379
|
+
let resizeTurn: 'a' | 'b' = 'a';
|
|
380
|
+
let settleTimer: ReturnType<typeof setTimeout> | undefined;
|
|
381
|
+
|
|
382
|
+
// Keyed on strings: a host deriving `expanded` per frame must not re-run ELK per frame, and a host
|
|
383
|
+
// that re-reads its model hands over a new `diagram` object with the same content, which must not
|
|
384
|
+
// re-run ELK or blank the edges for a move where nothing moves.
|
|
385
|
+
const diagramKey = $derived(JSON.stringify(diagram));
|
|
386
|
+
const expandedKey = $derived(expanded === undefined ? null : expanded.join('\n'));
|
|
387
|
+
const scopeKey = $derived(expandedKey === null ? undefined : scopeId);
|
|
388
|
+
/** True while a layout is computing: the camera holds until it lands, so it moves once. Derived
|
|
389
|
+
* from the props, so the camera sees it in the same flush that changed them, whichever effect
|
|
390
|
+
* runs first (set by the layout effect, a camera effect could still aim at the old layout). */
|
|
391
|
+
const laying = $derived.by(() => {
|
|
392
|
+
const inputs = [diagramKey, expandedKey, scopeKey];
|
|
393
|
+
return !landedInputs || inputs.some((v, i) => v !== landedInputs![i]);
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
function beginMove(prev: Node[], next: Node[], prevRects: Map<string, LayoutPosition> | undefined) {
|
|
397
|
+
clearTimeout(settleTimer);
|
|
398
|
+
if (prev.length === 0 || prefersReducedMotion.current) {
|
|
399
|
+
leaving = [];
|
|
400
|
+
moving = false;
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
const nextIds = new Set(next.map((n) => n.id));
|
|
404
|
+
leaving = prev.flatMap((n) => {
|
|
405
|
+
const r = prevRects?.get(n.id);
|
|
406
|
+
if (nextIds.has(n.id) || !r) return [];
|
|
407
|
+
// Absolute and unparented: its parent may be gone or shrinking.
|
|
408
|
+
return [{ ...n, parentId: undefined, position: { x: r.x, y: r.y }, class: `${n.class ?? ''} c4-leaving`, selectable: false, focusable: false, zIndex: 1000, domAttributes: { 'aria-hidden': 'true' } }];
|
|
409
|
+
});
|
|
410
|
+
moving = true;
|
|
411
|
+
settleTimer = setTimeout(() => {
|
|
412
|
+
moving = false;
|
|
413
|
+
}, MOVE_MS + 60);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// Run ELK layout whenever the diagram's content (or, in semantic zoom, the
|
|
417
|
+
// expanded set or scope) changes. After the first layout the previous graph
|
|
418
|
+
// stays on screen until the next one is ready.
|
|
419
|
+
$effect(() => {
|
|
420
|
+
const dk = diagramKey;
|
|
421
|
+
const currentDiagram = untrack(() => diagram);
|
|
422
|
+
const ek = expandedKey;
|
|
423
|
+
const scope = scopeKey;
|
|
424
|
+
let cancelled = false;
|
|
425
|
+
if (!hasLayout) layoutReady = false;
|
|
426
|
+
layoutError = null;
|
|
427
|
+
const inputs = [dk, ek, scope];
|
|
428
|
+
|
|
429
|
+
// Handlers read the props when called, so the layout never tracks their identity. Without a
|
|
430
|
+
// host ondrilldown a drillable card clicks instead, as in the non-semantic path.
|
|
431
|
+
const handlers = {
|
|
432
|
+
onclick: (id: string) => onclick?.(id),
|
|
433
|
+
ondrilldown: untrack(() => ondrilldown) ? (id: string, level: string) => ondrilldown?.(id, level) : undefined,
|
|
434
|
+
};
|
|
435
|
+
const job =
|
|
436
|
+
ek === null
|
|
437
|
+
? buildFlowGraph(currentDiagram).then((g) => ({ ...g, semantic: null }))
|
|
438
|
+
: buildSemanticFlow(currentDiagram, new Set(ek ? ek.split('\n') : []), scope, handlers).then((f) => ({
|
|
439
|
+
nodes: f.nodes,
|
|
440
|
+
edges: f.edges,
|
|
441
|
+
semantic: { tree: f.tree, vis: f.vis, rects: f.rects },
|
|
442
|
+
}));
|
|
443
|
+
|
|
444
|
+
job
|
|
445
|
+
.then(({ nodes, edges, semantic }) => {
|
|
446
|
+
if (cancelled) return;
|
|
447
|
+
if (semantic) {
|
|
448
|
+
const prevRects = semanticInfo?.rects;
|
|
449
|
+
if (prevRects && flowNodes.length > 0 && !prefersReducedMotion.current) {
|
|
450
|
+
resizeTurn = resizeTurn === 'a' ? 'b' : 'a';
|
|
451
|
+
nodes = markResized(nodes, prevRects, semantic.rects, resizeTurn);
|
|
452
|
+
}
|
|
453
|
+
beginMove(flowNodes, nodes, prevRects);
|
|
454
|
+
} else leaving = [];
|
|
455
|
+
flowNodes = nodes;
|
|
456
|
+
flowEdges = edges;
|
|
457
|
+
semanticInfo = semantic;
|
|
458
|
+
layoutReady = true;
|
|
459
|
+
hasLayout = true;
|
|
460
|
+
landedInputs = inputs;
|
|
461
|
+
})
|
|
462
|
+
.catch((err) => {
|
|
463
|
+
if (cancelled) return;
|
|
464
|
+
console.error('[C4Diagram] Layout failed:', err);
|
|
465
|
+
layoutError = 'Diagram layout failed. Please check your data.';
|
|
466
|
+
layoutReady = true; // Show error state
|
|
467
|
+
landedInputs = inputs;
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
return () => { cancelled = true; };
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
// ---- Live layer ----
|
|
474
|
+
const shownNodes = $derived(
|
|
475
|
+
decorateNodes(leaving.length ? [...flowNodes, ...leaving] : flowNodes, { selectedId })
|
|
476
|
+
);
|
|
477
|
+
// SvelteFlow writes its nodes back (a re-measure, a fitView, a click selection). Into an unbound
|
|
478
|
+
// prop that write is kept as a deep $state proxy, so every node reads back as a new object and
|
|
479
|
+
// SvelteFlow rebuilds every node and edge. Bound, the write lands here raw, so only the nodes it
|
|
480
|
+
// changed are new. The next layout or decoration replaces it (a writable derived).
|
|
481
|
+
let boundNodes = $derived(shownNodes);
|
|
482
|
+
// Highlight: keyed on its fields, so a host passing a fresh object each render re-derives
|
|
483
|
+
// nothing. An element's path runs through the semantic tree (a hidden element lights its drawn
|
|
484
|
+
// ancestor), else up the drawn nodes' parents; an id with no path is not on the map.
|
|
485
|
+
const hlId = $derived(highlight?.id);
|
|
486
|
+
const hlReach = $derived(highlight?.reach);
|
|
487
|
+
const hlDepth = $derived(highlight?.depth);
|
|
488
|
+
const parentOf = $derived(new Map(flowNodes.map((n) => [n.id, n.parentId])));
|
|
489
|
+
function pathOf(id: string): string[] {
|
|
490
|
+
if (semanticInfo) return pathTo(semanticInfo.tree, id);
|
|
491
|
+
const out: string[] = [];
|
|
492
|
+
for (let at: string | undefined = id; at !== undefined && parentOf.has(at); at = parentOf.get(at)) out.unshift(at);
|
|
493
|
+
return out;
|
|
494
|
+
}
|
|
495
|
+
// Flow playback (see the header). A message rides the relationship the model draws; a reply's
|
|
496
|
+
// (`reverse`) runs `to` → `from`. An end that is not on the map shows no step.
|
|
497
|
+
const current = $derived(flow && step !== undefined ? flow.steps[step] : undefined);
|
|
498
|
+
const msg = $derived(current && 'from' in current ? current : undefined);
|
|
499
|
+
const rideKey = (m: { from: string; to: string; reverse?: boolean }) => (m.reverse ? linkKey(m.to, m.from) : linkKey(m.from, m.to));
|
|
500
|
+
const flowReach = $derived.by((): ReachSet | null => {
|
|
501
|
+
if (!current || 'note' in current) return null;
|
|
502
|
+
const ids = 'at' in current ? [current.at] : [current.from, current.to];
|
|
503
|
+
if (!ids.every((id) => pathOf(id).length > 0)) return null;
|
|
504
|
+
return { ids: new Set(ids), links: new Set(msg ? [rideKey(msg)] : []) };
|
|
505
|
+
});
|
|
506
|
+
const reach = $derived(
|
|
507
|
+
current
|
|
508
|
+
? flowReach
|
|
509
|
+
: hlId !== undefined && pathOf(hlId).length > 0
|
|
510
|
+
? reachSet(diagram.relationships, hlId, hlReach, hlDepth)
|
|
511
|
+
: null
|
|
512
|
+
);
|
|
513
|
+
const lit = $derived(reach ? litIds(reach.ids, pathOf) : null);
|
|
514
|
+
// Curved edges tighten a bend rather than cut a card: every drawn card's absolute box (not
|
|
515
|
+
// boundaries, which edges run inside).
|
|
516
|
+
const nodeById = $derived(new Map(flowNodes.map((n) => [n.id, n])));
|
|
517
|
+
/** A drawn node's absolute box. */
|
|
518
|
+
function boxOf(n: Node): Rect {
|
|
519
|
+
const p = n.parentId ? nodeById.get(n.parentId) : undefined;
|
|
520
|
+
const o = p ? boxOf(p) : { x: 0, y: 0 };
|
|
521
|
+
return { x: o.x + n.position.x, y: o.y + n.position.y, width: n.width ?? 0, height: n.height ?? 0 };
|
|
522
|
+
}
|
|
523
|
+
const cards = $derived(edgeShape === 'curved' ? flowNodes.filter((n) => viewOf(n) !== 'group').map(boxOf) : undefined);
|
|
524
|
+
/** The node an element is drawn as: itself, or under semantic zoom its drawn ancestor. */
|
|
525
|
+
const drawnOf = (id: string) => (semanticInfo ? representative(semanticInfo.tree, semanticInfo.vis, id) : id);
|
|
526
|
+
const nameOf = (id: string) =>
|
|
527
|
+
semanticInfo?.tree.byId.get(id)?.name ?? (nodeById.get(id)?.data as unknown as C4NodeData | undefined)?.name ?? id;
|
|
528
|
+
const flowMark = $derived<FlowMark | null>(
|
|
529
|
+
msg && flowReach
|
|
530
|
+
? {
|
|
531
|
+
key: step!,
|
|
532
|
+
port: { text: msg.label, items: [{ from: nameOf(msg.from), to: nameOf(msg.to), label: msg.technology }] },
|
|
533
|
+
back: !!msg.reverse,
|
|
534
|
+
still: prefersReducedMotion.current,
|
|
535
|
+
}
|
|
536
|
+
: null
|
|
537
|
+
);
|
|
538
|
+
// The hop an implied message draws, between its two drawn ends (none when they are one node).
|
|
539
|
+
const hop = $derived.by(() => {
|
|
540
|
+
const [s, t] = msg ? [msg.from, msg.to].map((id) => nodeById.get(drawnOf(id) ?? '')) : [];
|
|
541
|
+
return s && t && s !== t ? { source: s.id, target: t.id, a: boxOf(s), b: boxOf(t) } : undefined;
|
|
542
|
+
});
|
|
543
|
+
const pulseId = $derived(current && 'at' in current && flowReach && !prefersReducedMotion.current ? drawnOf(current.at) : undefined);
|
|
544
|
+
const flowStep = $derived.by(() => {
|
|
545
|
+
if (!current || 'note' in current || !flowReach) return undefined;
|
|
546
|
+
const ends = 'at' in current ? [current.at] : [current.from, current.to];
|
|
547
|
+
return { key: `${flow!.id}:${step}`, ids: [...new Set(ends.map(drawnOf).filter((id): id is string => !!id))] };
|
|
548
|
+
});
|
|
549
|
+
const stepText = $derived(
|
|
550
|
+
!current
|
|
551
|
+
? ''
|
|
552
|
+
: 'note' in current
|
|
553
|
+
? current.note
|
|
554
|
+
: 'at' in current
|
|
555
|
+
? `${nameOf(current.at)}: ${current.label}`
|
|
556
|
+
: `${nameOf(current.from)} to ${nameOf(current.to)}: ${current.label}`
|
|
557
|
+
);
|
|
558
|
+
function onEdgeClick({ edge }: { edge: Edge }) {
|
|
559
|
+
if (!flow || !onstep) return;
|
|
560
|
+
const keys = (edge.data?.links as string[] | undefined) ?? [linkKey(edge.source, edge.target)];
|
|
561
|
+
const n = flow.steps.length;
|
|
562
|
+
for (let k = 0; k < n; k++) {
|
|
563
|
+
const i = ((step ?? -1) + 1 + k) % n;
|
|
564
|
+
const s = flow.steps[i];
|
|
565
|
+
if ('from' in s && keys.includes(rideKey(s))) return onstep(i);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
// Curved maps bundle a hub's edges; hovering a bundle's count opens it.
|
|
569
|
+
let openJoin = $state<string | null>(null);
|
|
570
|
+
setContext('c4-onjoin', (key: string | null) => (openJoin = key));
|
|
571
|
+
const shownEdges = $derived.by(() => {
|
|
572
|
+
const curved = edgeShape === 'curved';
|
|
573
|
+
const look = decorateEdges(flowEdges, { reach, curved, still: prefersReducedMotion.current, avoid: cards });
|
|
574
|
+
return markFlow(curved ? bundleEdges(look, openJoin) : look, flowMark, hop);
|
|
575
|
+
});
|
|
576
|
+
// Quiet (curved) maps: data-c4-hot (a DOM write) on an edge and label while it or an end is hovered.
|
|
577
|
+
let hot = $state<{ edge?: string; node?: string }>({});
|
|
578
|
+
$effect(() => {
|
|
579
|
+
const { edge, node } = hot;
|
|
580
|
+
const ends = new Map(shownEdges.map((e) => [e.id, [e.source, e.target]]));
|
|
581
|
+
if (!canvas) return;
|
|
582
|
+
for (const el of canvas.querySelectorAll<Element>('.svelte-flow__edge[data-id], [data-c4-edge]')) {
|
|
583
|
+
const id = el.getAttribute('data-c4-edge') ?? el.getAttribute('data-id') ?? '';
|
|
584
|
+
const on = id === edge || (!!node && !!ends.get(id)?.includes(node));
|
|
585
|
+
if (on !== el.hasAttribute('data-c4-hot')) el.toggleAttribute('data-c4-hot', on);
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
// Live status, the highlight's dim and a process step's pulse as data attributes on each node
|
|
590
|
+
// wrapper, written to the DOM: none may hand SvelteFlow a new nodes array (it re-lays every edge).
|
|
591
|
+
// Re-run when nodes mount.
|
|
592
|
+
let canvas = $state<HTMLElement>();
|
|
593
|
+
$effect(() => {
|
|
594
|
+
const st = status ?? {};
|
|
595
|
+
const on = lit;
|
|
596
|
+
const pulse = pulseId;
|
|
597
|
+
void shownNodes;
|
|
598
|
+
if (!canvas) return;
|
|
599
|
+
for (const el of canvas.querySelectorAll<HTMLElement>('.svelte-flow__node')) {
|
|
600
|
+
const s = el.dataset.id ? st[el.dataset.id] : undefined;
|
|
601
|
+
if (s) {
|
|
602
|
+
if (el.dataset.c4Status !== s) el.dataset.c4Status = s;
|
|
603
|
+
} else if (el.dataset.c4Status) delete el.dataset.c4Status;
|
|
604
|
+
const dim = !!on && !on.has(el.dataset.id ?? '');
|
|
605
|
+
if (dim !== el.hasAttribute('data-c4-dim')) el.toggleAttribute('data-c4-dim', dim);
|
|
606
|
+
const beat = !!pulse && el.dataset.id === pulse;
|
|
607
|
+
if (beat !== el.hasAttribute('data-c4-pulse')) el.toggleAttribute('data-c4-pulse', beat);
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
const nodeIds = $derived(nodeSetKey(flowNodes));
|
|
611
|
+
const legendStatuses = $derived(statusesPresent(status, nodeIds.split('\n')));
|
|
612
|
+
const shownMarkers = $derived(
|
|
613
|
+
semanticInfo && markers ? liftMarkers(semanticInfo.tree, semanticInfo.vis, markers) : markers
|
|
614
|
+
);
|
|
615
|
+
|
|
616
|
+
// Semantic camera: what to frame and the signature that decides when to move.
|
|
617
|
+
// Following, it frames the focus (its drawn ancestor if hidden) and refits when
|
|
618
|
+
// that box changes; manually, it frames the open code panel or the scope and
|
|
619
|
+
// refits only when what is drawn, the scope or the open panel changes.
|
|
620
|
+
// While a layout computes it holds the last frame: a new focus or scope read
|
|
621
|
+
// against the old layout would aim at a stale box, then move again on landing.
|
|
622
|
+
// Follow passes through: a drill that turns follow off lets go now, so the
|
|
623
|
+
// landing moves the camera to what the drill opened.
|
|
624
|
+
let lastFrame: { key: string; rect: LayoutPosition | null; follow: boolean } | undefined;
|
|
625
|
+
const frame = $derived.by(() => {
|
|
626
|
+
if (laying && lastFrame) return lastFrame.follow === !!follow ? lastFrame : { ...lastFrame, follow: !!follow };
|
|
627
|
+
if (!semanticInfo) return (lastFrame = undefined);
|
|
628
|
+
const { tree, vis, rects } = semanticInfo;
|
|
629
|
+
const panels = [...vis.panels];
|
|
630
|
+
const target =
|
|
631
|
+
follow && focusId
|
|
632
|
+
? representative(tree, vis, focusId)
|
|
633
|
+
: (panels.at(-1) ?? (scopeId && rects.has(scopeId) ? scopeId : undefined));
|
|
634
|
+
let rect = target ? (rects.get(target) ?? null) : null;
|
|
635
|
+
// A code panel keeps its boundary's label row in view, so the nesting reads.
|
|
636
|
+
const box = target && vis.panels.has(target) ? rects.get(tree.parent.get(target) ?? '') : undefined;
|
|
637
|
+
if (rect && box) rect = unionRect([rect, { x: rect.x, y: box.y, width: rect.width, height: 1 }]);
|
|
638
|
+
rect ??= unionRect(rects.values());
|
|
639
|
+
const r = rect ? [rect.x, rect.y, rect.width, rect.height].map(Math.round).join(',') : '';
|
|
640
|
+
const key = follow ? `F|${target}|${r}` : `M|${nodeIds}|${scopeId ?? ''}|${panels.join(',')}`;
|
|
641
|
+
return (lastFrame = { key, rect, follow: !!follow });
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
// A user gesture carries its DOM event; programmatic moves (fitView, the
|
|
645
|
+
// follow camera) pass null. Report once per gesture.
|
|
646
|
+
let manualReported = false;
|
|
647
|
+
function onMoveStart() {
|
|
648
|
+
manualReported = false;
|
|
649
|
+
}
|
|
650
|
+
function onMove(event: MouseEvent | TouchEvent | null) {
|
|
651
|
+
if (!event || manualReported) return;
|
|
652
|
+
manualReported = true;
|
|
653
|
+
onmanualcamera?.();
|
|
654
|
+
}
|
|
655
|
+
// The zoom buttons and the minimap (pannable, zoomable) move the camera
|
|
656
|
+
// programmatically, so their gestures never reach onMove: catch them here.
|
|
657
|
+
function onCanvasGesture(event: Event) {
|
|
658
|
+
const t = event.target as Element | null;
|
|
659
|
+
if (t?.closest?.('.svelte-flow__controls, .svelte-flow__minimap')) onmanualcamera?.();
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
// Keyboard twin of a node click: SvelteFlow makes node wrappers focusable,
|
|
663
|
+
// and Enter or Space on one runs the same activateNode its click runs.
|
|
664
|
+
// Only on the wrapper itself: a control inside a node (a link, a panel's
|
|
665
|
+
// Before/After switch, a port badge) keeps its own keys.
|
|
666
|
+
function onCanvasKeydown(event: KeyboardEvent) {
|
|
667
|
+
if (event.key !== 'Enter' && event.key !== ' ') return;
|
|
668
|
+
const t = event.target as Element | null;
|
|
669
|
+
if (!t?.classList?.contains('svelte-flow__node')) return;
|
|
670
|
+
const id = t.getAttribute('data-id');
|
|
671
|
+
const node = id ? flowNodes.find((n) => n.id === id) : undefined;
|
|
672
|
+
if (!node) return;
|
|
673
|
+
event.preventDefault();
|
|
674
|
+
activateNode(viewOf(node), node.data as unknown as C4NodeData);
|
|
675
|
+
}
|
|
676
|
+
</script>
|
|
677
|
+
|
|
678
|
+
<div
|
|
679
|
+
class="c4-diagram {className}"
|
|
680
|
+
role="figure"
|
|
681
|
+
aria-label={diagram.title || (levelLabels[diagram.level] ?? diagram.level)}
|
|
682
|
+
>
|
|
683
|
+
<!-- Header: a host that draws its own chrome passes an empty title. -->
|
|
684
|
+
{#if diagram.title}
|
|
685
|
+
<div class="c4-header">
|
|
686
|
+
<div class="c4-title-row">
|
|
687
|
+
<h3 class="c4-title">{diagram.title}</h3>
|
|
688
|
+
<span class="c4-level-badge">{levelLabels[diagram.level] ?? diagram.level}</span>
|
|
689
|
+
</div>
|
|
690
|
+
{#if diagram.description}
|
|
691
|
+
<p class="c4-description">{diagram.description}</p>
|
|
692
|
+
{/if}
|
|
693
|
+
</div>
|
|
694
|
+
{/if}
|
|
695
|
+
|
|
696
|
+
<!-- Flow canvas -->
|
|
697
|
+
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
|
698
|
+
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
|
699
|
+
<div
|
|
700
|
+
bind:this={canvas}
|
|
701
|
+
class={semanticInfo ? 'c4-canvas c4-semantic' : 'c4-canvas'}
|
|
702
|
+
data-c4-moving={moving ? '' : undefined}
|
|
703
|
+
data-c4-quiet={edgeShape === 'curved' ? '' : undefined}
|
|
704
|
+
onpointerdowncapture={onCanvasGesture}
|
|
705
|
+
onwheelcapture={onCanvasGesture}
|
|
706
|
+
onkeydown={onCanvasKeydown}
|
|
707
|
+
>
|
|
708
|
+
{#if !layoutReady}
|
|
709
|
+
<!-- Loading state -->
|
|
710
|
+
<div class="c4-loading" aria-live="polite">
|
|
711
|
+
<span class="c4-spinner" aria-hidden="true"></span>
|
|
712
|
+
<span>Computing layout…</span>
|
|
713
|
+
</div>
|
|
714
|
+
{:else if layoutError}
|
|
715
|
+
<!-- Error state -->
|
|
716
|
+
<div class="c4-error" role="alert">
|
|
717
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
718
|
+
<circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/>
|
|
719
|
+
</svg>
|
|
720
|
+
<span>{layoutError}</span>
|
|
721
|
+
</div>
|
|
722
|
+
{:else}
|
|
723
|
+
<SvelteFlow
|
|
724
|
+
bind:nodes={() => boundNodes, (written) => (boundNodes = written)}
|
|
725
|
+
edges={shownEdges}
|
|
726
|
+
{nodeTypes}
|
|
727
|
+
{edgeTypes}
|
|
728
|
+
fitView
|
|
729
|
+
fitViewOptions={{ padding: 0.25, minZoom: FIT_MIN_ZOOM }}
|
|
730
|
+
colorMode="dark"
|
|
731
|
+
panOnDrag
|
|
732
|
+
zoomOnScroll
|
|
733
|
+
zoomOnPinch
|
|
734
|
+
zoomOnDoubleClick
|
|
735
|
+
nodesDraggable={false}
|
|
736
|
+
nodesConnectable={false}
|
|
737
|
+
elementsSelectable={selectedId === undefined}
|
|
738
|
+
minZoom={0.15}
|
|
739
|
+
maxZoom={4}
|
|
740
|
+
defaultMarkerColor={EDGE_STROKE}
|
|
741
|
+
proOptions={{ hideAttribution: true }}
|
|
742
|
+
onmovestart={onMoveStart}
|
|
743
|
+
onmove={onMove}
|
|
744
|
+
onedgepointerenter={({ edge }) => (hot = { edge: edge.id })}
|
|
745
|
+
onedgepointerleave={() => (hot = {})}
|
|
746
|
+
onnodepointerenter={({ node }) => (hot = { node: node.id })}
|
|
747
|
+
onnodepointerleave={() => (hot = {})}
|
|
748
|
+
onedgeclick={flow && onstep ? onEdgeClick : undefined}
|
|
749
|
+
>
|
|
750
|
+
<C4LiveLayer ids={nodeIds} {focusId} {follow} markers={shownMarkers} {frame} {flowStep} />
|
|
751
|
+
<Background
|
|
752
|
+
gap={24}
|
|
753
|
+
/>
|
|
754
|
+
<Controls
|
|
755
|
+
showLock={false}
|
|
756
|
+
position="bottom-right"
|
|
757
|
+
/>
|
|
758
|
+
<MiniMap
|
|
759
|
+
position="bottom-left"
|
|
760
|
+
width={160}
|
|
761
|
+
height={110}
|
|
762
|
+
nodeColor={(node) => (node.class?.includes('c4-leaving') ? 'transparent' : viewOf(node) === 'group' ? MINIMAP_GROUP : MINIMAP_NODE)}
|
|
763
|
+
nodeBorderRadius={4}
|
|
764
|
+
/>
|
|
765
|
+
</SvelteFlow>
|
|
766
|
+
{/if}
|
|
767
|
+
</div>
|
|
768
|
+
|
|
769
|
+
<!-- Legend: the live statuses on the map when `status` is given, else the C4 shapes. -->
|
|
770
|
+
{#if layoutReady && !layoutError && status}
|
|
771
|
+
{#if legendStatuses.length > 0}
|
|
772
|
+
<div class="c4-legend" role="list" aria-label="Status legend">
|
|
773
|
+
{#each legendStatuses as st (st)}
|
|
774
|
+
<div class="c4-legend-item" role="listitem">
|
|
775
|
+
<span class="c4-status-swatch" data-c4-swatch={st}></span>
|
|
776
|
+
<span>{STATUS_LABELS[st]}</span>
|
|
777
|
+
</div>
|
|
778
|
+
{/each}
|
|
779
|
+
</div>
|
|
780
|
+
{/if}
|
|
781
|
+
{:else if layoutReady && !layoutError}
|
|
782
|
+
<div class="c4-legend" role="list" aria-label="Diagram legend">
|
|
783
|
+
{#each SHAPE_LEGEND as item (item.shape)}
|
|
784
|
+
<div class="c4-legend-item" role="listitem">
|
|
785
|
+
<span class="c4-legend-swatch" data-c4-shape={item.shape}></span>
|
|
786
|
+
<span>{item.label}</span>
|
|
787
|
+
</div>
|
|
788
|
+
{/each}
|
|
789
|
+
</div>
|
|
790
|
+
{/if}
|
|
791
|
+
|
|
792
|
+
{#if flow}
|
|
793
|
+
<p class="c4-flow-live" aria-live="polite">{stepText}</p>
|
|
794
|
+
{/if}
|
|
795
|
+
</div>
|
|
796
|
+
|
|
797
|
+
<style>
|
|
798
|
+
.c4-diagram {
|
|
799
|
+
width: 100%;
|
|
800
|
+
display: flex;
|
|
801
|
+
flex-direction: column;
|
|
802
|
+
gap: 8px;
|
|
803
|
+
color: var(--ripple-surface-foreground);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/* ---- Header ---- */
|
|
807
|
+
.c4-header {
|
|
808
|
+
display: flex;
|
|
809
|
+
flex-direction: column;
|
|
810
|
+
gap: 4px;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.c4-title-row {
|
|
814
|
+
display: flex;
|
|
815
|
+
align-items: center;
|
|
816
|
+
gap: 10px;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.c4-title {
|
|
820
|
+
margin: 0;
|
|
821
|
+
font-size: 14px;
|
|
822
|
+
font-weight: 600;
|
|
823
|
+
letter-spacing: -0.005em;
|
|
824
|
+
color: var(--ripple-surface-foreground);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.c4-level-badge {
|
|
828
|
+
font-size: 10px;
|
|
829
|
+
font-weight: 600;
|
|
830
|
+
letter-spacing: 0.06em;
|
|
831
|
+
text-transform: uppercase;
|
|
832
|
+
color: var(--ripple-accent);
|
|
833
|
+
background: color-mix(in oklab, var(--ripple-accent) 12%, transparent);
|
|
834
|
+
padding: 2px 8px;
|
|
835
|
+
border-radius: 9999px;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.c4-description {
|
|
839
|
+
margin: 0;
|
|
840
|
+
font-size: 12px;
|
|
841
|
+
color: var(--ripple-muted-foreground);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/* ---- Canvas ----
|
|
845
|
+
480px in an auto-height parent (the legacy size); fills a parent that
|
|
846
|
+
gives the diagram a height. SvelteFlow's theme variables are mapped to
|
|
847
|
+
ripple tokens here, so the canvas follows the host's light/dark theme. */
|
|
848
|
+
.c4-canvas {
|
|
849
|
+
width: 100%;
|
|
850
|
+
flex: 1 1 480px;
|
|
851
|
+
min-height: 0;
|
|
852
|
+
border-radius: 12px;
|
|
853
|
+
overflow: hidden;
|
|
854
|
+
position: relative;
|
|
855
|
+
border: 1px solid var(--ripple-border);
|
|
856
|
+
background: var(--ripple-surface);
|
|
857
|
+
/* An opaque ground for things that sit ON the map (node cards, edge
|
|
858
|
+
labels, controls). The host's surfaces may be translucent glass, which
|
|
859
|
+
lets edges and the grid read through; this inverts the ink's lightness
|
|
860
|
+
instead (dark ink -> near-white ground, light ink -> near-black), and
|
|
861
|
+
cards layer the host's card tint over it. */
|
|
862
|
+
--c4-ground: oklch(from var(--ripple-surface-foreground) calc(1.13 - l * 0.96) calc(c * 0.5) h);
|
|
863
|
+
--c4-card: linear-gradient(var(--ripple-surface) 0 0), var(--c4-ground);
|
|
864
|
+
--xy-background-pattern-color: var(--ripple-border);
|
|
865
|
+
--xy-edge-stroke: color-mix(in oklab, var(--ripple-muted-foreground) 55%, transparent);
|
|
866
|
+
--xy-edge-label-background-color: var(--ripple-surface);
|
|
867
|
+
--xy-edge-label-color: var(--ripple-muted-foreground);
|
|
868
|
+
--xy-controls-button-background-color: var(--ripple-surface);
|
|
869
|
+
--xy-controls-button-background-color-hover: var(--ripple-muted);
|
|
870
|
+
--xy-controls-button-color: var(--ripple-muted-foreground);
|
|
871
|
+
--xy-controls-button-color-hover: var(--ripple-surface-foreground);
|
|
872
|
+
--xy-controls-button-border-color: var(--ripple-border);
|
|
873
|
+
--xy-controls-box-shadow: none;
|
|
874
|
+
--xy-minimap-background-color: var(--ripple-surface);
|
|
875
|
+
--xy-minimap-mask-background-color: color-mix(in oklab, var(--ripple-surface-foreground) 7%, transparent);
|
|
876
|
+
--xy-minimap-mask-stroke-color: var(--ripple-border);
|
|
877
|
+
/* Everything else xyflow colours, so the fixed palette behind colorMode never shows. */
|
|
878
|
+
--xy-background-color: transparent;
|
|
879
|
+
--xy-attribution-background-color: transparent;
|
|
880
|
+
--xy-connectionline-stroke: var(--ripple-muted-foreground);
|
|
881
|
+
--xy-edge-stroke-selected: var(--ripple-accent);
|
|
882
|
+
--xy-node-color: var(--ripple-surface-foreground);
|
|
883
|
+
--xy-node-background-color: transparent;
|
|
884
|
+
--xy-node-border: none;
|
|
885
|
+
--xy-node-group-background-color: transparent;
|
|
886
|
+
--xy-node-boxshadow-hover: none;
|
|
887
|
+
--xy-node-boxshadow-selected: none;
|
|
888
|
+
--xy-handle-background-color: var(--ripple-muted-foreground);
|
|
889
|
+
--xy-handle-border-color: var(--ripple-surface);
|
|
890
|
+
--xy-selection-background-color: color-mix(in oklab, var(--ripple-accent) 8%, transparent);
|
|
891
|
+
--xy-selection-border: 1px dotted color-mix(in oklab, var(--ripple-accent) 60%, transparent);
|
|
892
|
+
--xy-minimap-node-background-color: color-mix(in oklab, var(--ripple-muted-foreground) 45%, transparent);
|
|
893
|
+
--xy-minimap-node-stroke-color: transparent;
|
|
894
|
+
--xy-resize-background-color: var(--ripple-accent);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/* ---- Loading / Error states ---- */
|
|
898
|
+
.c4-loading,
|
|
899
|
+
.c4-error {
|
|
900
|
+
position: absolute;
|
|
901
|
+
inset: 0;
|
|
902
|
+
display: flex;
|
|
903
|
+
align-items: center;
|
|
904
|
+
justify-content: center;
|
|
905
|
+
gap: 10px;
|
|
906
|
+
font-size: 13px;
|
|
907
|
+
color: var(--ripple-muted-foreground);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.c4-error {
|
|
911
|
+
color: var(--ripple-error-text);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.c4-spinner {
|
|
915
|
+
width: 16px;
|
|
916
|
+
height: 16px;
|
|
917
|
+
border: 2px solid var(--ripple-border);
|
|
918
|
+
border-top-color: var(--ripple-accent);
|
|
919
|
+
border-radius: 50%;
|
|
920
|
+
animation: c4-spin 0.7s linear infinite;
|
|
921
|
+
flex-shrink: 0;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
@keyframes c4-spin {
|
|
925
|
+
to { transform: rotate(360deg); }
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/* ---- Legend ---- */
|
|
929
|
+
.c4-legend {
|
|
930
|
+
display: flex;
|
|
931
|
+
gap: 14px;
|
|
932
|
+
flex-wrap: wrap;
|
|
933
|
+
padding: 2px 4px;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.c4-legend-item {
|
|
937
|
+
display: flex;
|
|
938
|
+
align-items: center;
|
|
939
|
+
gap: 6px;
|
|
940
|
+
font-size: 11px;
|
|
941
|
+
color: var(--ripple-muted-foreground);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.c4-legend-swatch {
|
|
945
|
+
width: 10px;
|
|
946
|
+
height: 10px;
|
|
947
|
+
border-radius: 3px;
|
|
948
|
+
flex-shrink: 0;
|
|
949
|
+
border: 1px solid color-mix(in oklab, var(--ripple-surface-foreground) 30%, transparent);
|
|
950
|
+
background: var(--ripple-surface);
|
|
951
|
+
}
|
|
952
|
+
.c4-legend-swatch[data-c4-shape='person'] {
|
|
953
|
+
border-radius: 50%;
|
|
954
|
+
border-color: transparent;
|
|
955
|
+
background: color-mix(in oklab, var(--ripple-accent) 40%, transparent);
|
|
956
|
+
}
|
|
957
|
+
.c4-legend-swatch[data-c4-shape='container'] {
|
|
958
|
+
border-radius: 2px;
|
|
959
|
+
}
|
|
960
|
+
.c4-legend-swatch[data-c4-shape='database'] {
|
|
961
|
+
border-radius: 50% / 30%;
|
|
962
|
+
border-color: color-mix(in oklab, var(--ripple-info) 55%, transparent);
|
|
963
|
+
background: color-mix(in oklab, var(--ripple-info) 20%, transparent);
|
|
964
|
+
}
|
|
965
|
+
.c4-legend-swatch[data-c4-shape='queue'] {
|
|
966
|
+
border-color: transparent;
|
|
967
|
+
background: color-mix(in oklab, var(--ripple-warning) 35%, transparent);
|
|
968
|
+
}
|
|
969
|
+
.c4-legend-swatch[data-c4-shape='external'] {
|
|
970
|
+
border-style: dashed;
|
|
971
|
+
background: transparent;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
/* ---- SvelteFlow overrides ---- */
|
|
975
|
+
.c4-canvas :global(.svelte-flow),
|
|
976
|
+
.c4-canvas :global(.svelte-flow__background) {
|
|
977
|
+
background: transparent !important;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.c4-canvas :global(.svelte-flow__node) {
|
|
981
|
+
background: transparent !important;
|
|
982
|
+
border: none !important;
|
|
983
|
+
box-shadow: none !important;
|
|
984
|
+
padding: 0 !important;
|
|
985
|
+
border-radius: var(--c4-r);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/* Selection (and keyboard focus): an accent ring set off from the node, so
|
|
989
|
+
a status ring stays readable inside it. */
|
|
990
|
+
.c4-canvas :global(.svelte-flow__node:focus) {
|
|
991
|
+
outline: none;
|
|
992
|
+
}
|
|
993
|
+
.c4-canvas :global(.svelte-flow__node.selected),
|
|
994
|
+
.c4-canvas :global(.svelte-flow__node:focus-visible) {
|
|
995
|
+
outline: 2px solid var(--ripple-accent);
|
|
996
|
+
outline-offset: 3px;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
/* Handles only anchor edges here (nothing is connectable), so hide them. */
|
|
1000
|
+
.c4-canvas :global(.c4-handle) {
|
|
1001
|
+
opacity: 0;
|
|
1002
|
+
pointer-events: none;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.c4-canvas :global(.svelte-flow__edge.animated .svelte-flow__edge-path) {
|
|
1006
|
+
stroke-dasharray: 8 4;
|
|
1007
|
+
animation: c4-dash 0.8s linear infinite;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.c4-canvas :global(.svelte-flow__edge.selected .svelte-flow__edge-path) {
|
|
1011
|
+
stroke: var(--ripple-accent) !important;
|
|
1012
|
+
stroke-width: 2px;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
.c4-canvas :global(.svelte-flow__edge-label) {
|
|
1016
|
+
font-size: calc(11px / clamp(0.6, var(--c4-zoom, 1), 1));
|
|
1017
|
+
font-weight: 500;
|
|
1018
|
+
line-height: 1.2;
|
|
1019
|
+
padding: 2px 6px;
|
|
1020
|
+
border-radius: 6px;
|
|
1021
|
+
border: 1px solid var(--ripple-border);
|
|
1022
|
+
background: var(--c4-card);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.c4-canvas :global(.svelte-flow__controls),
|
|
1026
|
+
.c4-canvas :global(.svelte-flow__minimap) {
|
|
1027
|
+
border: 1px solid var(--ripple-border);
|
|
1028
|
+
border-radius: 8px;
|
|
1029
|
+
overflow: hidden;
|
|
1030
|
+
background: var(--c4-card);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
/* Group node bounding box sizing — SvelteFlow requires explicit width/height on parent nodes */
|
|
1034
|
+
.c4-canvas :global(.svelte-flow__node-group) {
|
|
1035
|
+
background: transparent !important;
|
|
1036
|
+
border: none !important;
|
|
1037
|
+
padding: 0 !important;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
@keyframes c4-dash {
|
|
1041
|
+
to { stroke-dashoffset: -12; }
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1045
|
+
.c4-spinner {
|
|
1046
|
+
animation: none;
|
|
1047
|
+
}
|
|
1048
|
+
.c4-canvas :global(.svelte-flow__edge.animated .svelte-flow__edge-path) {
|
|
1049
|
+
animation: none;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/* ---- The shared node card ----
|
|
1054
|
+
Every node component renders these classes; the rules live here once.
|
|
1055
|
+
Names counter-scale with the zoom (C4LiveLayer writes --c4-zoom on the
|
|
1056
|
+
flow root) so they stay legible when the map is zoomed out, and the
|
|
1057
|
+
secondary lines drop away once it is far out (data-c4-far). */
|
|
1058
|
+
.c4-canvas :global(.c4-node) {
|
|
1059
|
+
position: relative;
|
|
1060
|
+
box-sizing: border-box;
|
|
1061
|
+
/* Fill the ELK box SvelteFlow sizes the wrapper to: routes end on this edge. */
|
|
1062
|
+
width: 100%;
|
|
1063
|
+
height: 100%;
|
|
1064
|
+
overflow: hidden;
|
|
1065
|
+
display: flex;
|
|
1066
|
+
flex-direction: column;
|
|
1067
|
+
align-items: center;
|
|
1068
|
+
justify-content: safe center;
|
|
1069
|
+
gap: 4px;
|
|
1070
|
+
padding: 12px 14px;
|
|
1071
|
+
border-radius: 10px;
|
|
1072
|
+
border: 1px solid var(--ripple-border);
|
|
1073
|
+
background: var(--c4-card);
|
|
1074
|
+
color: var(--ripple-surface-foreground);
|
|
1075
|
+
text-align: center;
|
|
1076
|
+
cursor: pointer;
|
|
1077
|
+
transition:
|
|
1078
|
+
border-color 150ms var(--ripple-ease-out),
|
|
1079
|
+
transform 150ms var(--ripple-ease-out);
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
.c4-canvas :global(.c4-node > *) {
|
|
1083
|
+
flex-shrink: 0;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/* Per-type card overrides live here, after the shared rule they refine. */
|
|
1087
|
+
.c4-canvas :global(.c4-person-node) {
|
|
1088
|
+
border-radius: 12px;
|
|
1089
|
+
gap: 6px;
|
|
1090
|
+
}
|
|
1091
|
+
.c4-canvas :global(.c4-component-node) {
|
|
1092
|
+
border-radius: 8px;
|
|
1093
|
+
}
|
|
1094
|
+
.c4-canvas :global(.c4-component-node.is-code) {
|
|
1095
|
+
padding-inline: 10px;
|
|
1096
|
+
}
|
|
1097
|
+
/* A file name is one long token: the host's mono face (font-mono on the
|
|
1098
|
+
element) at a size that fits the box. */
|
|
1099
|
+
.c4-canvas :global(.c4-component-node.is-code .c4-node-name) {
|
|
1100
|
+
font-size: calc(12px / clamp(0.5, var(--c4-zoom, 1), 1));
|
|
1101
|
+
font-weight: 500;
|
|
1102
|
+
letter-spacing: 0;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
.c4-canvas :global(.c4-node:hover) {
|
|
1106
|
+
border-color: color-mix(in oklab, var(--ripple-surface-foreground) 24%, transparent);
|
|
1107
|
+
transform: translateY(-1px);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.c4-canvas :global(.c4-node.is-external) {
|
|
1111
|
+
border-style: dashed;
|
|
1112
|
+
border-color: color-mix(in oklab, var(--ripple-surface-foreground) 20%, transparent);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
.c4-canvas :global(.c4-node.is-external .c4-node-name) {
|
|
1116
|
+
color: var(--ripple-muted-foreground);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.c4-canvas :global(.c4-node-kind) {
|
|
1120
|
+
font-size: 10px;
|
|
1121
|
+
font-weight: 600;
|
|
1122
|
+
letter-spacing: 0.06em;
|
|
1123
|
+
text-transform: uppercase;
|
|
1124
|
+
color: var(--ripple-muted-foreground);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.c4-canvas :global(.c4-node-name) {
|
|
1128
|
+
font-size: calc(13px / clamp(0.5, var(--c4-zoom, 1), 1));
|
|
1129
|
+
font-weight: 600;
|
|
1130
|
+
line-height: 1.25;
|
|
1131
|
+
letter-spacing: -0.005em;
|
|
1132
|
+
text-align: center;
|
|
1133
|
+
overflow-wrap: anywhere;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
.c4-canvas :global(.c4-node-desc) {
|
|
1137
|
+
font-size: 11px;
|
|
1138
|
+
line-height: 1.35;
|
|
1139
|
+
text-align: center;
|
|
1140
|
+
color: var(--ripple-muted-foreground);
|
|
1141
|
+
display: -webkit-box;
|
|
1142
|
+
-webkit-box-orient: vertical;
|
|
1143
|
+
-webkit-line-clamp: 2;
|
|
1144
|
+
line-clamp: 2;
|
|
1145
|
+
overflow: hidden;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.c4-canvas :global(.c4-node-tech) {
|
|
1149
|
+
font-size: calc(11px / clamp(0.6, var(--c4-zoom, 1), 1));
|
|
1150
|
+
line-height: 1.3;
|
|
1151
|
+
color: var(--ripple-muted-foreground);
|
|
1152
|
+
background: var(--ripple-muted);
|
|
1153
|
+
padding: 1px 6px;
|
|
1154
|
+
border-radius: 4px;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
.c4-canvas :global(.c4-node-docs) {
|
|
1158
|
+
display: inline-flex;
|
|
1159
|
+
align-items: center;
|
|
1160
|
+
gap: 3px;
|
|
1161
|
+
font-size: 10px;
|
|
1162
|
+
color: var(--ripple-accent);
|
|
1163
|
+
text-decoration: none;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.c4-canvas :global(.c4-node-docs:hover) {
|
|
1167
|
+
text-decoration: underline;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.c4-canvas :global(.c4-node-drill) {
|
|
1171
|
+
position: absolute;
|
|
1172
|
+
top: 8px;
|
|
1173
|
+
right: 8px;
|
|
1174
|
+
color: var(--ripple-muted-foreground);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
.c4-canvas :global(.svelte-flow[data-c4-far] .c4-node-kind),
|
|
1178
|
+
.c4-canvas :global(.svelte-flow[data-c4-far] .c4-node-desc),
|
|
1179
|
+
.c4-canvas :global(.svelte-flow[data-c4-far] .c4-node-docs) {
|
|
1180
|
+
display: none;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
/* ---- Semantic zoom ----
|
|
1184
|
+
Nodes glide and resize to their new layout on the ripple curve (the camera
|
|
1185
|
+
eases on the same curve in C4LiveLayer), fade in where they first appear,
|
|
1186
|
+
and fade out where they were when they leave. Edges and marker dots are
|
|
1187
|
+
drawn for the final layout, so they sit the move out. Ghosts are context. */
|
|
1188
|
+
.c4-semantic :global(.svelte-flow__node) {
|
|
1189
|
+
transition:
|
|
1190
|
+
transform 560ms var(--ripple-ease-out),
|
|
1191
|
+
opacity 280ms var(--ripple-ease-out);
|
|
1192
|
+
animation: c4-node-in 360ms var(--ripple-ease-out) 140ms backwards;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/* A node whose box changed size (markResized): the wrapper takes the new size
|
|
1196
|
+
at once (resizing it per frame would re-measure it and re-lay every edge
|
|
1197
|
+
per frame) while its card and status ring grow from the old size. Two
|
|
1198
|
+
names, alternated per layout, so every move restarts the animation. */
|
|
1199
|
+
.c4-semantic :global(.svelte-flow__node[data-c4-resized='a'] > :not(.c4-handle)) {
|
|
1200
|
+
animation: c4-size-a 560ms var(--ripple-ease-out);
|
|
1201
|
+
}
|
|
1202
|
+
.c4-semantic :global(.svelte-flow__node[data-c4-resized='b'] > :not(.c4-handle)) {
|
|
1203
|
+
animation: c4-size-b 560ms var(--ripple-ease-out);
|
|
1204
|
+
}
|
|
1205
|
+
.c4-semantic :global(.svelte-flow__node[data-c4-resized='a'])::after {
|
|
1206
|
+
animation: c4-ring-a 560ms var(--ripple-ease-out);
|
|
1207
|
+
}
|
|
1208
|
+
.c4-semantic :global(.svelte-flow__node[data-c4-resized='b'])::after {
|
|
1209
|
+
animation: c4-ring-b 560ms var(--ripple-ease-out);
|
|
1210
|
+
}
|
|
1211
|
+
.c4-semantic :global(.svelte-flow__node[data-c4-resized='a'][data-c4-status='changing'])::after {
|
|
1212
|
+
animation: c4-ring-a 560ms var(--ripple-ease-out), c4-breathe 2.4s ease-in-out infinite;
|
|
1213
|
+
}
|
|
1214
|
+
.c4-semantic :global(.svelte-flow__node[data-c4-resized='b'][data-c4-status='changing'])::after {
|
|
1215
|
+
animation: c4-ring-b 560ms var(--ripple-ease-out), c4-breathe 2.4s ease-in-out infinite;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
@keyframes c4-size-a {
|
|
1219
|
+
from { width: var(--c4-from-w); height: var(--c4-from-h); }
|
|
1220
|
+
}
|
|
1221
|
+
@keyframes c4-size-b {
|
|
1222
|
+
from { width: var(--c4-from-w); height: var(--c4-from-h); }
|
|
1223
|
+
}
|
|
1224
|
+
@keyframes c4-ring-a {
|
|
1225
|
+
from { width: calc(var(--c4-from-w) + 2px); height: calc(var(--c4-from-h) + 2px); }
|
|
1226
|
+
}
|
|
1227
|
+
@keyframes c4-ring-b {
|
|
1228
|
+
from { width: calc(var(--c4-from-w) + 2px); height: calc(var(--c4-from-h) + 2px); }
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
@keyframes c4-node-in {
|
|
1232
|
+
from { opacity: 0; }
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.c4-semantic :global(.svelte-flow__node[data-c4-ghost]),
|
|
1236
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-dim]) {
|
|
1237
|
+
opacity: 0.38;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.c4-semantic :global(.svelte-flow__node.c4-leaving) {
|
|
1241
|
+
opacity: 0;
|
|
1242
|
+
pointer-events: none;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.c4-semantic :global(.svelte-flow__edges),
|
|
1246
|
+
.c4-semantic :global(.svelte-flow__edge-labels),
|
|
1247
|
+
.c4-semantic :global(.svelte-flow__node-toolbar) {
|
|
1248
|
+
transition: opacity 240ms var(--ripple-ease-out);
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
.c4-semantic[data-c4-moving] :global(.svelte-flow__edges),
|
|
1252
|
+
.c4-semantic[data-c4-moving] :global(.svelte-flow__edge-labels),
|
|
1253
|
+
.c4-semantic[data-c4-moving] :global(.svelte-flow__node-toolbar) {
|
|
1254
|
+
opacity: 0;
|
|
1255
|
+
transition-duration: 120ms;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
.c4-semantic :global(.svelte-flow__edge.c4-ghost),
|
|
1259
|
+
.c4-canvas :global(.svelte-flow__edge[data-c4-dim]) {
|
|
1260
|
+
opacity: 0.35;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/* A label wrapped on a dense level keeps its laid-out size (counter-scaled it would cover its
|
|
1264
|
+
neighbours) and, like a card's secondary lines, is dropped when the map is far out. */
|
|
1265
|
+
.c4-canvas :global(.svelte-flow__edge-label.c4-wrap-label) {
|
|
1266
|
+
/* LABEL_CAP in elk-layout.ts: every wrapped label was laid out this wide. */
|
|
1267
|
+
max-width: 180px;
|
|
1268
|
+
font-size: 11px;
|
|
1269
|
+
white-space: normal;
|
|
1270
|
+
text-align: center;
|
|
1271
|
+
}
|
|
1272
|
+
.c4-canvas :global(.svelte-flow[data-c4-far] .c4-wrap-label:not([data-c4-hot], [data-c4-reach])) {
|
|
1273
|
+
display: none;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/* Quiet edges (curved): out of the reach and unhovered, lighter and thinner, label shown near (1.2x+). */
|
|
1277
|
+
.c4-canvas[data-c4-quiet] :global(.svelte-flow__edge:not(.c4-reach, [data-c4-hot], :hover)) {
|
|
1278
|
+
opacity: 0.35;
|
|
1279
|
+
}
|
|
1280
|
+
.c4-canvas[data-c4-quiet] :global(.svelte-flow__edge:not(.c4-reach) .svelte-flow__edge-path) {
|
|
1281
|
+
stroke-width: 1px !important;
|
|
1282
|
+
}
|
|
1283
|
+
.c4-canvas[data-c4-quiet] :global(.svelte-flow:not([data-c4-near]) .svelte-flow__edge-label[data-c4-edge]:not([data-c4-hot], [data-c4-reach])) {
|
|
1284
|
+
display: none;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/* A bundle's count, where its edges join the trunk; hovering it opens the bundle. */
|
|
1288
|
+
.c4-canvas :global(.c4-join-badge) {
|
|
1289
|
+
display: inline-block;
|
|
1290
|
+
padding: 1px 6px;
|
|
1291
|
+
border-radius: 9999px;
|
|
1292
|
+
border: 1px solid var(--ripple-border);
|
|
1293
|
+
background: var(--c4-card);
|
|
1294
|
+
color: var(--ripple-surface-foreground);
|
|
1295
|
+
font-size: calc(10px / clamp(0.5, var(--c4-zoom, 1), 1));
|
|
1296
|
+
font-weight: 600;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
.c4-canvas :global(.svelte-flow__edge-label.c4-ghost-label),
|
|
1300
|
+
.c4-canvas :global(.svelte-flow__edge-label[data-c4-dim]) {
|
|
1301
|
+
opacity: 0.45;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/* A port badge is its own pill; its EdgeLabel wrapper draws nothing. */
|
|
1305
|
+
.c4-canvas :global(.svelte-flow__edge-label.c4-badge-label) {
|
|
1306
|
+
padding: 0;
|
|
1307
|
+
border: none;
|
|
1308
|
+
background: none;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1312
|
+
.c4-semantic :global(.svelte-flow__node) {
|
|
1313
|
+
transition: none;
|
|
1314
|
+
animation: none;
|
|
1315
|
+
}
|
|
1316
|
+
.c4-semantic :global(.svelte-flow__edges),
|
|
1317
|
+
.c4-semantic :global(.svelte-flow__edge-labels),
|
|
1318
|
+
.c4-semantic :global(.svelte-flow__node-toolbar) {
|
|
1319
|
+
transition: none;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
/* ---- Live status: data-c4-status on the SvelteFlow node wrapper ----
|
|
1324
|
+
One ring drawn over the node's own edge, so every node shape gets the same
|
|
1325
|
+
treatment without each node component knowing about status. Tones are
|
|
1326
|
+
ripple tokens; `changing` is the only one that moves. */
|
|
1327
|
+
.c4-canvas :global(.svelte-flow__node) {
|
|
1328
|
+
--c4-r: 10px;
|
|
1329
|
+
}
|
|
1330
|
+
.c4-canvas :global(.svelte-flow__node-person),
|
|
1331
|
+
.c4-canvas :global(.svelte-flow__node-group) {
|
|
1332
|
+
--c4-r: 12px;
|
|
1333
|
+
}
|
|
1334
|
+
.c4-canvas :global(.svelte-flow__node-component) {
|
|
1335
|
+
--c4-r: 8px;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status])::after {
|
|
1339
|
+
content: '';
|
|
1340
|
+
position: absolute;
|
|
1341
|
+
/* inset: -1px, as a size the resize animation can grow from (c4-ring). */
|
|
1342
|
+
top: -1px;
|
|
1343
|
+
left: -1px;
|
|
1344
|
+
width: calc(100% + 2px);
|
|
1345
|
+
height: calc(100% + 2px);
|
|
1346
|
+
border-radius: var(--c4-r);
|
|
1347
|
+
border: 1.5px solid var(--c4-tone);
|
|
1348
|
+
pointer-events: none;
|
|
1349
|
+
transition: border-color 180ms var(--ripple-ease-out), box-shadow 180ms var(--ripple-ease-out);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='changing']),
|
|
1353
|
+
.c4-status-swatch[data-c4-swatch='changing'] {
|
|
1354
|
+
--c4-tone: var(--ripple-accent);
|
|
1355
|
+
}
|
|
1356
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='changed']),
|
|
1357
|
+
.c4-status-swatch[data-c4-swatch='changed'] {
|
|
1358
|
+
--c4-tone: color-mix(in oklab, var(--ripple-accent) 55%, transparent);
|
|
1359
|
+
}
|
|
1360
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='landed']),
|
|
1361
|
+
.c4-status-swatch[data-c4-swatch='landed'] {
|
|
1362
|
+
--c4-tone: var(--ripple-success);
|
|
1363
|
+
}
|
|
1364
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='failed']),
|
|
1365
|
+
.c4-status-swatch[data-c4-swatch='failed'] {
|
|
1366
|
+
--c4-tone: var(--ripple-error);
|
|
1367
|
+
}
|
|
1368
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='drift']),
|
|
1369
|
+
.c4-status-swatch[data-c4-swatch='drift'] {
|
|
1370
|
+
--c4-tone: var(--ripple-warning);
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='drift'])::after {
|
|
1374
|
+
border-style: dashed;
|
|
1375
|
+
}
|
|
1376
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='failed'])::after {
|
|
1377
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ripple-error) 16%, transparent);
|
|
1378
|
+
}
|
|
1379
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='changing'])::after {
|
|
1380
|
+
animation: c4-breathe 2.4s ease-in-out infinite;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/* A process step's element pulses (C4Diagram sets data-c4-pulse; never under reduced motion). */
|
|
1384
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-pulse])::before {
|
|
1385
|
+
content: '';
|
|
1386
|
+
position: absolute;
|
|
1387
|
+
inset: -1px;
|
|
1388
|
+
border-radius: var(--c4-r);
|
|
1389
|
+
pointer-events: none;
|
|
1390
|
+
animation: c4-pulse 1.6s var(--ripple-ease-out) infinite;
|
|
1391
|
+
}
|
|
1392
|
+
@keyframes c4-pulse {
|
|
1393
|
+
from { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ripple-accent) 45%, transparent); }
|
|
1394
|
+
to { box-shadow: 0 0 0 12px transparent; }
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/* The current flow step, for assistive tech only: the host draws the transport. */
|
|
1398
|
+
.c4-flow-live {
|
|
1399
|
+
position: absolute;
|
|
1400
|
+
width: 1px;
|
|
1401
|
+
height: 1px;
|
|
1402
|
+
margin: 0;
|
|
1403
|
+
overflow: hidden;
|
|
1404
|
+
clip-path: inset(50%);
|
|
1405
|
+
white-space: nowrap;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
@keyframes c4-breathe {
|
|
1409
|
+
0%, 100% { box-shadow: 0 0 0 2px color-mix(in oklab, var(--ripple-accent) 10%, transparent); }
|
|
1410
|
+
50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--ripple-accent) 22%, transparent); }
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1414
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='changing'])::after {
|
|
1415
|
+
animation: none;
|
|
1416
|
+
box-shadow: 0 0 0 4px color-mix(in oklab, var(--ripple-accent) 18%, transparent);
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.c4-status-swatch {
|
|
1421
|
+
width: 10px;
|
|
1422
|
+
height: 10px;
|
|
1423
|
+
flex-shrink: 0;
|
|
1424
|
+
border-radius: 3px;
|
|
1425
|
+
border: 1.5px solid var(--c4-tone);
|
|
1426
|
+
background: color-mix(in oklab, var(--c4-tone) 18%, transparent);
|
|
1427
|
+
}
|
|
1428
|
+
.c4-status-swatch[data-c4-swatch='drift'] {
|
|
1429
|
+
border-style: dashed;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
/* Planned: a node that does not exist in code yet, drawn as a blueprint. A
|
|
1433
|
+
dashed muted outline over a card with no fill or border of its own, its
|
|
1434
|
+
content dimmed. Distinct from the scope ghost (the whole node faded, its
|
|
1435
|
+
outline unchanged) and from drift (a dashed warning ring on a full card).
|
|
1436
|
+
The dim is on the content, not the wrapper, so it composes with the ghost's
|
|
1437
|
+
wrapper opacity instead of fighting it; the handles stay hidden. */
|
|
1438
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='planned']),
|
|
1439
|
+
.c4-status-swatch[data-c4-swatch='planned'] {
|
|
1440
|
+
--c4-tone: color-mix(in oklab, var(--ripple-muted-foreground) 75%, transparent);
|
|
1441
|
+
}
|
|
1442
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='planned'])::after {
|
|
1443
|
+
border-style: dashed;
|
|
1444
|
+
}
|
|
1445
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='planned'] > :not(.c4-handle)) {
|
|
1446
|
+
opacity: 0.6;
|
|
1447
|
+
}
|
|
1448
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='planned'] .c4-node) {
|
|
1449
|
+
background: transparent;
|
|
1450
|
+
border-color: transparent;
|
|
1451
|
+
}
|
|
1452
|
+
.c4-status-swatch[data-c4-swatch='planned'] {
|
|
1453
|
+
border-style: dashed;
|
|
1454
|
+
background: transparent;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
/* Future: a blueprint further out than planned. The same no-fill card, but a
|
|
1458
|
+
dotted outline and fainter content, so the two read apart side by side. */
|
|
1459
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='future']),
|
|
1460
|
+
.c4-status-swatch[data-c4-swatch='future'] {
|
|
1461
|
+
--c4-tone: color-mix(in oklab, var(--ripple-muted-foreground) 55%, transparent);
|
|
1462
|
+
}
|
|
1463
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='future'])::after {
|
|
1464
|
+
border-style: dotted;
|
|
1465
|
+
}
|
|
1466
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='future'] > :not(.c4-handle)) {
|
|
1467
|
+
opacity: 0.45;
|
|
1468
|
+
}
|
|
1469
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='future'] .c4-node) {
|
|
1470
|
+
background: transparent;
|
|
1471
|
+
border-color: transparent;
|
|
1472
|
+
}
|
|
1473
|
+
.c4-status-swatch[data-c4-swatch='future'] {
|
|
1474
|
+
border-style: dotted;
|
|
1475
|
+
background: transparent;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
/* Added: an element new since a comparison's base. Success-toned like landed,
|
|
1479
|
+
but a heavier double outline, so it does not rest on colour alone (landed is
|
|
1480
|
+
a thin single ring, changed a thin accent one). */
|
|
1481
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='added']),
|
|
1482
|
+
.c4-status-swatch[data-c4-swatch='added'] {
|
|
1483
|
+
--c4-tone: var(--ripple-success);
|
|
1484
|
+
}
|
|
1485
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='added'])::after {
|
|
1486
|
+
border-style: double;
|
|
1487
|
+
border-width: 4px;
|
|
1488
|
+
}
|
|
1489
|
+
.c4-status-swatch[data-c4-swatch='added'] {
|
|
1490
|
+
border-style: double;
|
|
1491
|
+
border-width: 3px;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
/* Removed: an element that is gone, kept on the map so a comparison can show
|
|
1495
|
+
it. Unlike planned it keeps its card, so it reads as something that was
|
|
1496
|
+
there; the content fades harder and the dashed outline takes the error tone
|
|
1497
|
+
(drift's dash is warning-toned over a full-strength card). */
|
|
1498
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='removed']),
|
|
1499
|
+
.c4-status-swatch[data-c4-swatch='removed'] {
|
|
1500
|
+
--c4-tone: color-mix(in oklab, var(--ripple-error) 60%, transparent);
|
|
1501
|
+
}
|
|
1502
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='removed'])::after {
|
|
1503
|
+
border-style: dashed;
|
|
1504
|
+
}
|
|
1505
|
+
.c4-canvas :global(.svelte-flow__node[data-c4-status='removed'] > :not(.c4-handle)) {
|
|
1506
|
+
opacity: 0.4;
|
|
1507
|
+
}
|
|
1508
|
+
.c4-status-swatch[data-c4-swatch='removed'] {
|
|
1509
|
+
border-style: dashed;
|
|
1510
|
+
}
|
|
1511
|
+
</style>
|