@cloudvoyant/vortex-svelte 0.17.0-rc.202609040136.45c8986
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/dist/Badge.svelte +24 -0
- package/dist/Badge.svelte.d.ts +12 -0
- package/dist/Button.svelte +35 -0
- package/dist/Button.svelte.d.ts +14 -0
- package/dist/Center.svelte +21 -0
- package/dist/Center.svelte.d.ts +9 -0
- package/dist/Chart.svelte +52 -0
- package/dist/Chart.svelte.d.ts +22 -0
- package/dist/Col.svelte +21 -0
- package/dist/Col.svelte.d.ts +9 -0
- package/dist/Container.svelte +21 -0
- package/dist/Container.svelte.d.ts +9 -0
- package/dist/CopyButton.svelte +58 -0
- package/dist/CopyButton.svelte.d.ts +12 -0
- package/dist/Figure.svelte +32 -0
- package/dist/Figure.svelte.d.ts +14 -0
- package/dist/HStack.svelte +21 -0
- package/dist/HStack.svelte.d.ts +9 -0
- package/dist/InlineLaTeX.svelte +34 -0
- package/dist/InlineLaTeX.svelte.d.ts +9 -0
- package/dist/Input.svelte +17 -0
- package/dist/Input.svelte.d.ts +8 -0
- package/dist/Item.svelte +22 -0
- package/dist/Item.svelte.d.ts +10 -0
- package/dist/LaTeX.svelte +34 -0
- package/dist/LaTeX.svelte.d.ts +9 -0
- package/dist/Manim.svelte +119 -0
- package/dist/Manim.svelte.d.ts +12 -0
- package/dist/Mermaid.svelte +92 -0
- package/dist/Mermaid.svelte.d.ts +14 -0
- package/dist/Notice.svelte +87 -0
- package/dist/Notice.svelte.d.ts +12 -0
- package/dist/Page.svelte +27 -0
- package/dist/Page.svelte.d.ts +10 -0
- package/dist/PageContent.svelte +21 -0
- package/dist/PageContent.svelte.d.ts +9 -0
- package/dist/PageFooter.svelte +21 -0
- package/dist/PageFooter.svelte.d.ts +9 -0
- package/dist/PageGutter.svelte +37 -0
- package/dist/PageGutter.svelte.d.ts +12 -0
- package/dist/PageSection.svelte +21 -0
- package/dist/PageSection.svelte.d.ts +9 -0
- package/dist/Portal.svelte +11 -0
- package/dist/Portal.svelte.d.ts +4 -0
- package/dist/PrevNext.svelte +47 -0
- package/dist/PrevNext.svelte.d.ts +15 -0
- package/dist/Reveal.svelte +40 -0
- package/dist/Reveal.svelte.d.ts +9 -0
- package/dist/Row.svelte +21 -0
- package/dist/Row.svelte.d.ts +9 -0
- package/dist/Scroll.svelte +72 -0
- package/dist/Scroll.svelte.d.ts +14 -0
- package/dist/Splitter.svelte +12 -0
- package/dist/Splitter.svelte.d.ts +4 -0
- package/dist/SplitterPanel.svelte +12 -0
- package/dist/SplitterPanel.svelte.d.ts +4 -0
- package/dist/SplitterResizeTrigger.svelte +15 -0
- package/dist/SplitterResizeTrigger.svelte.d.ts +4 -0
- package/dist/SplitterResizeTriggerIndicator.svelte +15 -0
- package/dist/SplitterResizeTriggerIndicator.svelte.d.ts +4 -0
- package/dist/Stack.svelte +21 -0
- package/dist/Stack.svelte.d.ts +9 -0
- package/dist/Textarea.svelte +14 -0
- package/dist/Textarea.svelte.d.ts +4 -0
- package/dist/ToggleButton.svelte +18 -0
- package/dist/ToggleButton.svelte.d.ts +9 -0
- package/dist/ToggleButtonIndicator.svelte +9 -0
- package/dist/ToggleButtonIndicator.svelte.d.ts +4 -0
- package/dist/VStack.svelte +21 -0
- package/dist/VStack.svelte.d.ts +9 -0
- package/dist/YouTube.svelte +85 -0
- package/dist/YouTube.svelte.d.ts +13 -0
- package/dist/YoutubeTimestampAt.svelte +20 -0
- package/dist/YoutubeTimestampAt.svelte.d.ts +10 -0
- package/dist/YoutubeTimestamps.svelte +100 -0
- package/dist/YoutubeTimestamps.svelte.d.ts +11 -0
- package/dist/card/Card.svelte +34 -0
- package/dist/card/Card.svelte.d.ts +12 -0
- package/dist/card/CardBody.svelte +21 -0
- package/dist/card/CardBody.svelte.d.ts +9 -0
- package/dist/card/CardCover.svelte +26 -0
- package/dist/card/CardCover.svelte.d.ts +11 -0
- package/dist/card/CardDescription.svelte +21 -0
- package/dist/card/CardDescription.svelte.d.ts +9 -0
- package/dist/card/CardFooter.svelte +21 -0
- package/dist/card/CardFooter.svelte.d.ts +9 -0
- package/dist/card/CardHeader.svelte +21 -0
- package/dist/card/CardHeader.svelte.d.ts +9 -0
- package/dist/card/CardTitle.svelte +22 -0
- package/dist/card/CardTitle.svelte.d.ts +10 -0
- package/dist/card/index.d.ts +7 -0
- package/dist/card/index.js +8 -0
- package/dist/checkbox/Checkbox.svelte +23 -0
- package/dist/checkbox/Checkbox.svelte.d.ts +8 -0
- package/dist/checkbox/CheckboxContext.svelte.d.ts +1 -0
- package/dist/checkbox/CheckboxContext.svelte.js +3 -0
- package/dist/checkbox/CheckboxControl.svelte +17 -0
- package/dist/checkbox/CheckboxControl.svelte.d.ts +4 -0
- package/dist/checkbox/CheckboxGroup.svelte +14 -0
- package/dist/checkbox/CheckboxGroup.svelte.d.ts +4 -0
- package/dist/checkbox/CheckboxIndicator.svelte +14 -0
- package/dist/checkbox/CheckboxIndicator.svelte.d.ts +4 -0
- package/dist/checkbox/CheckboxLabel.svelte +14 -0
- package/dist/checkbox/CheckboxLabel.svelte.d.ts +4 -0
- package/dist/checkbox/index.d.ts +6 -0
- package/dist/checkbox/index.js +7 -0
- package/dist/code-block/CodeBlock.svelte +67 -0
- package/dist/code-block/CodeBlock.svelte.d.ts +17 -0
- package/dist/code-block/CodeBlockContent.svelte +19 -0
- package/dist/code-block/CodeBlockContent.svelte.d.ts +8 -0
- package/dist/code-block/CodeBlockContext.svelte.d.ts +11 -0
- package/dist/code-block/CodeBlockContext.svelte.js +7 -0
- package/dist/code-block/CodeBlockCopyButton.svelte +19 -0
- package/dist/code-block/CodeBlockCopyButton.svelte.d.ts +8 -0
- package/dist/code-block/CodeBlockHeader.svelte +15 -0
- package/dist/code-block/CodeBlockHeader.svelte.d.ts +9 -0
- package/dist/code-block/CodeBlockTitle.svelte +15 -0
- package/dist/code-block/CodeBlockTitle.svelte.d.ts +9 -0
- package/dist/code-block/CodeRenderer.svelte +78 -0
- package/dist/code-block/CodeRenderer.svelte.d.ts +12 -0
- package/dist/code-block/LanguageTabsCodeBlock.svelte +119 -0
- package/dist/code-block/LanguageTabsCodeBlock.svelte.d.ts +12 -0
- package/dist/code-block/MultiFileCodeBlock.svelte +75 -0
- package/dist/code-block/MultiFileCodeBlock.svelte.d.ts +12 -0
- package/dist/code-block/index.d.ts +7 -0
- package/dist/code-block/index.js +8 -0
- package/dist/combobox/Combobox.svelte +25 -0
- package/dist/combobox/Combobox.svelte.d.ts +9 -0
- package/dist/combobox/ComboboxClear.svelte +14 -0
- package/dist/combobox/ComboboxClear.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxContent.svelte +19 -0
- package/dist/combobox/ComboboxContent.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxContext.svelte.d.ts +1 -0
- package/dist/combobox/ComboboxContext.svelte.js +3 -0
- package/dist/combobox/ComboboxControl.svelte +14 -0
- package/dist/combobox/ComboboxControl.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxEmpty.svelte +18 -0
- package/dist/combobox/ComboboxEmpty.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxInput.svelte +17 -0
- package/dist/combobox/ComboboxInput.svelte.d.ts +8 -0
- package/dist/combobox/ComboboxItem.svelte +22 -0
- package/dist/combobox/ComboboxItem.svelte.d.ts +10 -0
- package/dist/combobox/ComboboxItemGroup.svelte +11 -0
- package/dist/combobox/ComboboxItemGroup.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxItemGroupLabel.svelte +14 -0
- package/dist/combobox/ComboboxItemGroupLabel.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxItemIndicator.svelte +14 -0
- package/dist/combobox/ComboboxItemIndicator.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxItemText.svelte +11 -0
- package/dist/combobox/ComboboxItemText.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxList.svelte +14 -0
- package/dist/combobox/ComboboxList.svelte.d.ts +4 -0
- package/dist/combobox/ComboboxTrigger.svelte +14 -0
- package/dist/combobox/ComboboxTrigger.svelte.d.ts +4 -0
- package/dist/combobox/index.d.ts +14 -0
- package/dist/combobox/index.js +15 -0
- package/dist/dialog/Dialog.svelte +11 -0
- package/dist/dialog/Dialog.svelte.d.ts +4 -0
- package/dist/dialog/DialogBackdrop.svelte +17 -0
- package/dist/dialog/DialogBackdrop.svelte.d.ts +7 -0
- package/dist/dialog/DialogContent.svelte +22 -0
- package/dist/dialog/DialogContent.svelte.d.ts +9 -0
- package/dist/dialog/DialogContext.svelte.d.ts +1 -0
- package/dist/dialog/DialogContext.svelte.js +3 -0
- package/dist/dialog/DialogDescription.svelte +16 -0
- package/dist/dialog/DialogDescription.svelte.d.ts +7 -0
- package/dist/dialog/DialogDismiss.svelte +16 -0
- package/dist/dialog/DialogDismiss.svelte.d.ts +7 -0
- package/dist/dialog/DialogFooter.svelte +20 -0
- package/dist/dialog/DialogFooter.svelte.d.ts +9 -0
- package/dist/dialog/DialogHeader.svelte +20 -0
- package/dist/dialog/DialogHeader.svelte.d.ts +9 -0
- package/dist/dialog/DialogProvider.svelte +11 -0
- package/dist/dialog/DialogProvider.svelte.d.ts +4 -0
- package/dist/dialog/DialogRender.svelte +9 -0
- package/dist/dialog/DialogRender.svelte.d.ts +4 -0
- package/dist/dialog/DialogTitle.svelte +16 -0
- package/dist/dialog/DialogTitle.svelte.d.ts +7 -0
- package/dist/dialog/DialogTrigger.svelte +13 -0
- package/dist/dialog/DialogTrigger.svelte.d.ts +7 -0
- package/dist/dialog/index.d.ts +12 -0
- package/dist/dialog/index.js +13 -0
- package/dist/field/Field.svelte +14 -0
- package/dist/field/Field.svelte.d.ts +4 -0
- package/dist/field/FieldContext.svelte.d.ts +1 -0
- package/dist/field/FieldContext.svelte.js +3 -0
- package/dist/field/FieldError.svelte +14 -0
- package/dist/field/FieldError.svelte.d.ts +4 -0
- package/dist/field/FieldHelper.svelte +14 -0
- package/dist/field/FieldHelper.svelte.d.ts +4 -0
- package/dist/field/FieldLabel.svelte +14 -0
- package/dist/field/FieldLabel.svelte.d.ts +4 -0
- package/dist/field/FieldRequiredIndicator.svelte +14 -0
- package/dist/field/FieldRequiredIndicator.svelte.d.ts +4 -0
- package/dist/field/FieldSet.svelte +14 -0
- package/dist/field/FieldSet.svelte.d.ts +4 -0
- package/dist/field/FieldSetError.svelte +14 -0
- package/dist/field/FieldSetError.svelte.d.ts +4 -0
- package/dist/field/FieldSetHelper.svelte +14 -0
- package/dist/field/FieldSetHelper.svelte.d.ts +4 -0
- package/dist/field/FieldSetLegend.svelte +14 -0
- package/dist/field/FieldSetLegend.svelte.d.ts +4 -0
- package/dist/field/index.d.ts +10 -0
- package/dist/field/index.js +11 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +58 -0
- package/dist/navbar/NavbarActions.svelte +25 -0
- package/dist/navbar/NavbarActions.svelte.d.ts +9 -0
- package/dist/navbar/NavbarActivationArea.svelte +30 -0
- package/dist/navbar/NavbarActivationArea.svelte.d.ts +9 -0
- package/dist/navbar/NavbarBrand.svelte +25 -0
- package/dist/navbar/NavbarBrand.svelte.d.ts +9 -0
- package/dist/navbar/NavbarContext.svelte.d.ts +25 -0
- package/dist/navbar/NavbarContext.svelte.js +14 -0
- package/dist/navbar/NavbarMenu.svelte +61 -0
- package/dist/navbar/NavbarMenu.svelte.d.ts +10 -0
- package/dist/navbar/NavbarMenuContent.svelte +16 -0
- package/dist/navbar/NavbarMenuContent.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMenuContext.svelte.d.ts +8 -0
- package/dist/navbar/NavbarMenuContext.svelte.js +14 -0
- package/dist/navbar/NavbarMenuIndicator.svelte +12 -0
- package/dist/navbar/NavbarMenuIndicator.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMenuItem.svelte +34 -0
- package/dist/navbar/NavbarMenuItem.svelte.d.ts +8 -0
- package/dist/navbar/NavbarMenuLink.svelte +18 -0
- package/dist/navbar/NavbarMenuLink.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMenuList.svelte +14 -0
- package/dist/navbar/NavbarMenuList.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMenuTrigger.svelte +30 -0
- package/dist/navbar/NavbarMenuTrigger.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMenuViewport.svelte +12 -0
- package/dist/navbar/NavbarMenuViewport.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMenuViewportPositioner.svelte +17 -0
- package/dist/navbar/NavbarMenuViewportPositioner.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMobileMenu.svelte +14 -0
- package/dist/navbar/NavbarMobileMenu.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMobileMenuContent.svelte +23 -0
- package/dist/navbar/NavbarMobileMenuContent.svelte.d.ts +9 -0
- package/dist/navbar/NavbarMobileMenuTrigger.svelte +26 -0
- package/dist/navbar/NavbarMobileMenuTrigger.svelte.d.ts +4 -0
- package/dist/navbar/NavbarMobileOverlay.svelte +85 -0
- package/dist/navbar/NavbarMobileOverlay.svelte.d.ts +9 -0
- package/dist/navbar/NavbarProvider.svelte +83 -0
- package/dist/navbar/NavbarProvider.svelte.d.ts +8 -0
- package/dist/navbar/NavbarRoot.svelte +142 -0
- package/dist/navbar/NavbarRoot.svelte.d.ts +13 -0
- package/dist/navbar/NavbarTrigger.svelte +60 -0
- package/dist/navbar/NavbarTrigger.svelte.d.ts +10 -0
- package/dist/navbar/index.d.ts +22 -0
- package/dist/navbar/index.js +28 -0
- package/dist/number-input/NumberInput.svelte +14 -0
- package/dist/number-input/NumberInput.svelte.d.ts +4 -0
- package/dist/number-input/NumberInputContext.svelte.d.ts +1 -0
- package/dist/number-input/NumberInputContext.svelte.js +3 -0
- package/dist/number-input/NumberInputControl.svelte +14 -0
- package/dist/number-input/NumberInputControl.svelte.d.ts +4 -0
- package/dist/number-input/NumberInputDecrement.svelte +14 -0
- package/dist/number-input/NumberInputDecrement.svelte.d.ts +4 -0
- package/dist/number-input/NumberInputIncrement.svelte +14 -0
- package/dist/number-input/NumberInputIncrement.svelte.d.ts +4 -0
- package/dist/number-input/NumberInputInput.svelte +12 -0
- package/dist/number-input/NumberInputInput.svelte.d.ts +4 -0
- package/dist/number-input/index.d.ts +6 -0
- package/dist/number-input/index.js +7 -0
- package/dist/pagination/Pagination.svelte +35 -0
- package/dist/pagination/Pagination.svelte.d.ts +4 -0
- package/dist/pagination/PaginationEllipsis.svelte +26 -0
- package/dist/pagination/PaginationEllipsis.svelte.d.ts +4 -0
- package/dist/pagination/PaginationItem.svelte +14 -0
- package/dist/pagination/PaginationItem.svelte.d.ts +4 -0
- package/dist/pagination/PaginationItems.svelte +21 -0
- package/dist/pagination/PaginationItems.svelte.d.ts +18 -0
- package/dist/pagination/PaginationNext.svelte +29 -0
- package/dist/pagination/PaginationNext.svelte.d.ts +4 -0
- package/dist/pagination/PaginationPrevious.svelte +29 -0
- package/dist/pagination/PaginationPrevious.svelte.d.ts +4 -0
- package/dist/pagination/index.d.ts +6 -0
- package/dist/pagination/index.js +7 -0
- package/dist/popover/Popover.svelte +11 -0
- package/dist/popover/Popover.svelte.d.ts +4 -0
- package/dist/popover/PopoverAnchor.svelte +13 -0
- package/dist/popover/PopoverAnchor.svelte.d.ts +7 -0
- package/dist/popover/PopoverContent.svelte +35 -0
- package/dist/popover/PopoverContent.svelte.d.ts +8 -0
- package/dist/popover/PopoverContext.svelte.d.ts +1 -0
- package/dist/popover/PopoverContext.svelte.js +3 -0
- package/dist/popover/PopoverDescription.svelte +16 -0
- package/dist/popover/PopoverDescription.svelte.d.ts +7 -0
- package/dist/popover/PopoverDismiss.svelte +16 -0
- package/dist/popover/PopoverDismiss.svelte.d.ts +7 -0
- package/dist/popover/PopoverIndicator.svelte +16 -0
- package/dist/popover/PopoverIndicator.svelte.d.ts +7 -0
- package/dist/popover/PopoverProvider.svelte +11 -0
- package/dist/popover/PopoverProvider.svelte.d.ts +4 -0
- package/dist/popover/PopoverTitle.svelte +16 -0
- package/dist/popover/PopoverTitle.svelte.d.ts +7 -0
- package/dist/popover/PopoverTrigger.svelte +13 -0
- package/dist/popover/PopoverTrigger.svelte.d.ts +7 -0
- package/dist/popover/index.d.ts +10 -0
- package/dist/popover/index.js +11 -0
- package/dist/questions/MultipleChoiceQuestion.svelte +167 -0
- package/dist/questions/MultipleChoiceQuestion.svelte.d.ts +19 -0
- package/dist/questions/NumericQuestion.svelte +139 -0
- package/dist/questions/NumericQuestion.svelte.d.ts +20 -0
- package/dist/questions/Quiz.svelte +119 -0
- package/dist/questions/Quiz.svelte.d.ts +11 -0
- package/dist/questions/SingleChoiceQuestion.svelte +141 -0
- package/dist/questions/SingleChoiceQuestion.svelte.d.ts +19 -0
- package/dist/questions/index.d.ts +4 -0
- package/dist/questions/index.js +5 -0
- package/dist/radio-group/RadioGroup.svelte +16 -0
- package/dist/radio-group/RadioGroup.svelte.d.ts +7 -0
- package/dist/radio-group/RadioGroupItem.svelte +26 -0
- package/dist/radio-group/RadioGroupItem.svelte.d.ts +7 -0
- package/dist/radio-group/index.d.ts +2 -0
- package/dist/radio-group/index.js +3 -0
- package/dist/select/Select.svelte +70 -0
- package/dist/select/Select.svelte.d.ts +11 -0
- package/dist/select/SelectClearTrigger.svelte +14 -0
- package/dist/select/SelectClearTrigger.svelte.d.ts +4 -0
- package/dist/select/SelectContent.svelte +19 -0
- package/dist/select/SelectContent.svelte.d.ts +4 -0
- package/dist/select/SelectContext.svelte.d.ts +1 -0
- package/dist/select/SelectContext.svelte.js +3 -0
- package/dist/select/SelectIndicator.svelte +14 -0
- package/dist/select/SelectIndicator.svelte.d.ts +4 -0
- package/dist/select/SelectItem.svelte +21 -0
- package/dist/select/SelectItem.svelte.d.ts +9 -0
- package/dist/select/SelectItemGroup.svelte +11 -0
- package/dist/select/SelectItemGroup.svelte.d.ts +4 -0
- package/dist/select/SelectItemGroupLabel.svelte +14 -0
- package/dist/select/SelectItemGroupLabel.svelte.d.ts +4 -0
- package/dist/select/SelectItemIndicator.svelte +14 -0
- package/dist/select/SelectItemIndicator.svelte.d.ts +4 -0
- package/dist/select/SelectItemText.svelte +14 -0
- package/dist/select/SelectItemText.svelte.d.ts +4 -0
- package/dist/select/SelectNative.svelte +73 -0
- package/dist/select/SelectNative.svelte.d.ts +16 -0
- package/dist/select/SelectTrigger.svelte +19 -0
- package/dist/select/SelectTrigger.svelte.d.ts +8 -0
- package/dist/select/SelectValue.svelte +18 -0
- package/dist/select/SelectValue.svelte.d.ts +4 -0
- package/dist/select/index.d.ts +13 -0
- package/dist/select/index.js +14 -0
- package/dist/sidebar/Content.svelte +19 -0
- package/dist/sidebar/Content.svelte.d.ts +9 -0
- package/dist/sidebar/Footer.svelte +19 -0
- package/dist/sidebar/Footer.svelte.d.ts +9 -0
- package/dist/sidebar/Group.svelte +27 -0
- package/dist/sidebar/Group.svelte.d.ts +10 -0
- package/dist/sidebar/GroupAction.svelte +28 -0
- package/dist/sidebar/GroupAction.svelte.d.ts +10 -0
- package/dist/sidebar/Header.svelte +19 -0
- package/dist/sidebar/Header.svelte.d.ts +9 -0
- package/dist/sidebar/Input.svelte +21 -0
- package/dist/sidebar/Input.svelte.d.ts +7 -0
- package/dist/sidebar/Inset.svelte +19 -0
- package/dist/sidebar/Inset.svelte.d.ts +9 -0
- package/dist/sidebar/Menu.svelte +19 -0
- package/dist/sidebar/Menu.svelte.d.ts +9 -0
- package/dist/sidebar/MenuAction.svelte +34 -0
- package/dist/sidebar/MenuAction.svelte.d.ts +11 -0
- package/dist/sidebar/MenuBadge.svelte +25 -0
- package/dist/sidebar/MenuBadge.svelte.d.ts +9 -0
- package/dist/sidebar/MenuButton.svelte +80 -0
- package/dist/sidebar/MenuButton.svelte.d.ts +18 -0
- package/dist/sidebar/MenuItem.svelte +25 -0
- package/dist/sidebar/MenuItem.svelte.d.ts +9 -0
- package/dist/sidebar/MenuLink.svelte +66 -0
- package/dist/sidebar/MenuLink.svelte.d.ts +21 -0
- package/dist/sidebar/MenuSkeleton.svelte +38 -0
- package/dist/sidebar/MenuSkeleton.svelte.d.ts +8 -0
- package/dist/sidebar/MenuSub.svelte +25 -0
- package/dist/sidebar/MenuSub.svelte.d.ts +9 -0
- package/dist/sidebar/MenuSubButton.svelte +31 -0
- package/dist/sidebar/MenuSubButton.svelte.d.ts +12 -0
- package/dist/sidebar/MenuSubItem.svelte +25 -0
- package/dist/sidebar/MenuSubItem.svelte.d.ts +9 -0
- package/dist/sidebar/Provider.svelte +103 -0
- package/dist/sidebar/Provider.svelte.d.ts +12 -0
- package/dist/sidebar/Rail.svelte +32 -0
- package/dist/sidebar/Rail.svelte.d.ts +7 -0
- package/dist/sidebar/Root.svelte +109 -0
- package/dist/sidebar/Root.svelte.d.ts +15 -0
- package/dist/sidebar/Separator.svelte +22 -0
- package/dist/sidebar/Separator.svelte.d.ts +7 -0
- package/dist/sidebar/Trigger.svelte +34 -0
- package/dist/sidebar/Trigger.svelte.d.ts +9 -0
- package/dist/sidebar/context.svelte.d.ts +4 -0
- package/dist/sidebar/context.svelte.js +14 -0
- package/dist/sidebar/index.d.ts +24 -0
- package/dist/sidebar/index.js +28 -0
- package/dist/switch/Switch.svelte +23 -0
- package/dist/switch/Switch.svelte.d.ts +8 -0
- package/dist/switch/SwitchContext.svelte.d.ts +1 -0
- package/dist/switch/SwitchContext.svelte.js +3 -0
- package/dist/switch/SwitchControl.svelte +17 -0
- package/dist/switch/SwitchControl.svelte.d.ts +4 -0
- package/dist/switch/SwitchLabel.svelte +14 -0
- package/dist/switch/SwitchLabel.svelte.d.ts +4 -0
- package/dist/switch/SwitchThumb.svelte +12 -0
- package/dist/switch/SwitchThumb.svelte.d.ts +4 -0
- package/dist/switch/index.d.ts +5 -0
- package/dist/switch/index.js +6 -0
- package/dist/tabs/Tabs.svelte +24 -0
- package/dist/tabs/Tabs.svelte.d.ts +4 -0
- package/dist/tabs/TabsContent.svelte +14 -0
- package/dist/tabs/TabsContent.svelte.d.ts +4 -0
- package/dist/tabs/TabsContext.svelte.d.ts +1 -0
- package/dist/tabs/TabsContext.svelte.js +3 -0
- package/dist/tabs/TabsList.svelte +20 -0
- package/dist/tabs/TabsList.svelte.d.ts +7 -0
- package/dist/tabs/TabsTrigger.svelte +14 -0
- package/dist/tabs/TabsTrigger.svelte.d.ts +4 -0
- package/dist/tabs/index.d.ts +5 -0
- package/dist/tabs/index.js +6 -0
- package/dist/tags-input/TagInput.svelte +19 -0
- package/dist/tags-input/TagInput.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputClearTrigger.svelte +14 -0
- package/dist/tags-input/TagInputClearTrigger.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputContext.svelte.d.ts +1 -0
- package/dist/tags-input/TagInputContext.svelte.js +3 -0
- package/dist/tags-input/TagInputControl.svelte +14 -0
- package/dist/tags-input/TagInputControl.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputInput.svelte +12 -0
- package/dist/tags-input/TagInputInput.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputItem.svelte +14 -0
- package/dist/tags-input/TagInputItem.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputItemDeleteTrigger.svelte +14 -0
- package/dist/tags-input/TagInputItemDeleteTrigger.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputItemInput.svelte +12 -0
- package/dist/tags-input/TagInputItemInput.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputItemPreview.svelte +11 -0
- package/dist/tags-input/TagInputItemPreview.svelte.d.ts +4 -0
- package/dist/tags-input/TagInputItemText.svelte +14 -0
- package/dist/tags-input/TagInputItemText.svelte.d.ts +4 -0
- package/dist/tags-input/index.d.ts +11 -0
- package/dist/tags-input/index.js +12 -0
- package/dist/tooltip/Tooltip.svelte +11 -0
- package/dist/tooltip/Tooltip.svelte.d.ts +4 -0
- package/dist/tooltip/TooltipContent.svelte +35 -0
- package/dist/tooltip/TooltipContent.svelte.d.ts +8 -0
- package/dist/tooltip/TooltipContext.svelte.d.ts +1 -0
- package/dist/tooltip/TooltipContext.svelte.js +3 -0
- package/dist/tooltip/TooltipProvider.svelte +11 -0
- package/dist/tooltip/TooltipProvider.svelte.d.ts +4 -0
- package/dist/tooltip/TooltipRender.svelte +9 -0
- package/dist/tooltip/TooltipRender.svelte.d.ts +3 -0
- package/dist/tooltip/TooltipTrigger.svelte +13 -0
- package/dist/tooltip/TooltipTrigger.svelte.d.ts +7 -0
- package/dist/tooltip/index.d.ts +6 -0
- package/dist/tooltip/index.js +7 -0
- package/dist/window/Window.svelte +34 -0
- package/dist/window/Window.svelte.d.ts +10 -0
- package/dist/window/WindowBody.svelte +16 -0
- package/dist/window/WindowBody.svelte.d.ts +7 -0
- package/dist/window/WindowContext.svelte.d.ts +1 -0
- package/dist/window/WindowContext.svelte.js +3 -0
- package/dist/window/WindowControl.svelte +16 -0
- package/dist/window/WindowControl.svelte.d.ts +7 -0
- package/dist/window/WindowDismiss.svelte +16 -0
- package/dist/window/WindowDismiss.svelte.d.ts +7 -0
- package/dist/window/WindowDragTrigger.svelte +16 -0
- package/dist/window/WindowDragTrigger.svelte.d.ts +7 -0
- package/dist/window/WindowHeader.svelte +16 -0
- package/dist/window/WindowHeader.svelte.d.ts +7 -0
- package/dist/window/WindowProvider.svelte +11 -0
- package/dist/window/WindowProvider.svelte.d.ts +4 -0
- package/dist/window/WindowRender.svelte +9 -0
- package/dist/window/WindowRender.svelte.d.ts +4 -0
- package/dist/window/WindowResizeTrigger.svelte +16 -0
- package/dist/window/WindowResizeTrigger.svelte.d.ts +7 -0
- package/dist/window/WindowStageTrigger.svelte +16 -0
- package/dist/window/WindowStageTrigger.svelte.d.ts +7 -0
- package/dist/window/WindowTitle.svelte +16 -0
- package/dist/window/WindowTitle.svelte.d.ts +7 -0
- package/dist/window/index.d.ts +12 -0
- package/dist/window/index.js +13 -0
- package/package.json +63 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/code-block/CodeRenderer.svelte -->
|
|
2
|
+
<!-- Shared shiki renderer for the code-block family, mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import {
|
|
5
|
+
codeBlockBodyBase,
|
|
6
|
+
codeBlockBodyScrollableBase,
|
|
7
|
+
codeBlockContentBase,
|
|
8
|
+
codeBlockLineNumbersBase,
|
|
9
|
+
codeBlockHighlightBase,
|
|
10
|
+
codeBlockLoadingBase,
|
|
11
|
+
codeBlockSpinnerBase,
|
|
12
|
+
injectCodeBlockStyles,
|
|
13
|
+
renderCodeToHtml,
|
|
14
|
+
cn,
|
|
15
|
+
} from '@cloudvoyant/vortex-ui';
|
|
16
|
+
|
|
17
|
+
type Props = {
|
|
18
|
+
code: string;
|
|
19
|
+
language: string;
|
|
20
|
+
html?: string;
|
|
21
|
+
showLineNumbers: boolean;
|
|
22
|
+
scrollable: boolean;
|
|
23
|
+
maxHeight: number;
|
|
24
|
+
highlightLines?: number[];
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
let {
|
|
28
|
+
code,
|
|
29
|
+
language,
|
|
30
|
+
html = undefined,
|
|
31
|
+
showLineNumbers,
|
|
32
|
+
scrollable,
|
|
33
|
+
maxHeight,
|
|
34
|
+
highlightLines = undefined,
|
|
35
|
+
}: Props = $props();
|
|
36
|
+
|
|
37
|
+
let rendered = $state<string | null>(html ?? null);
|
|
38
|
+
|
|
39
|
+
const highlightKey = $derived(highlightLines?.join(',') ?? '');
|
|
40
|
+
|
|
41
|
+
// The scoped `.hx-cb`/`.cbln`/`.cbhl` styles must be present for both the client
|
|
42
|
+
// highlight path and the prerendered `html` path, so inject them on mount (idempotent).
|
|
43
|
+
$effect(() => {
|
|
44
|
+
injectCodeBlockStyles();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
$effect(() => {
|
|
48
|
+
if (html !== undefined) return;
|
|
49
|
+
let cancelled = false;
|
|
50
|
+
rendered = null;
|
|
51
|
+
renderCodeToHtml(code, language, highlightLines).then((h) => {
|
|
52
|
+
if (!cancelled) rendered = h;
|
|
53
|
+
});
|
|
54
|
+
return () => {
|
|
55
|
+
cancelled = true;
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const classes = $derived(cn(codeBlockBodyBase, scrollable && codeBlockBodyScrollableBase));
|
|
60
|
+
const contentClasses = $derived(
|
|
61
|
+
cn(
|
|
62
|
+
codeBlockContentBase,
|
|
63
|
+
showLineNumbers && codeBlockLineNumbersBase,
|
|
64
|
+
highlightLines?.length && codeBlockHighlightBase,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
const styles = $derived(scrollable ? `max-height: ${maxHeight}px;` : undefined);
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<div class={classes} style={styles}>
|
|
71
|
+
{#if rendered !== null}
|
|
72
|
+
<div class={contentClasses}>{@html rendered}</div>
|
|
73
|
+
{:else}
|
|
74
|
+
<div class={codeBlockLoadingBase}>
|
|
75
|
+
<div class={codeBlockSpinnerBase}></div>
|
|
76
|
+
</div>
|
|
77
|
+
{/if}
|
|
78
|
+
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
code: string;
|
|
3
|
+
language: string;
|
|
4
|
+
html?: string;
|
|
5
|
+
showLineNumbers: boolean;
|
|
6
|
+
scrollable: boolean;
|
|
7
|
+
maxHeight: number;
|
|
8
|
+
highlightLines?: number[];
|
|
9
|
+
};
|
|
10
|
+
declare const CodeRenderer: import("svelte").Component<Props, {}, "">;
|
|
11
|
+
type CodeRenderer = ReturnType<typeof CodeRenderer>;
|
|
12
|
+
export default CodeRenderer;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/code-block/LanguageTabsCodeBlock.svelte -->
|
|
2
|
+
<!-- Closely based on: diffbook code-block family, rebuilt with a vortex-ui Select language dropdown
|
|
3
|
+
+ floating copy, mirrored from @cloudvoyant/vortex-react -->
|
|
4
|
+
<script lang="ts">
|
|
5
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
6
|
+
import CopyButton from '../CopyButton.svelte';
|
|
7
|
+
import {
|
|
8
|
+
Select,
|
|
9
|
+
SelectTrigger,
|
|
10
|
+
SelectValue,
|
|
11
|
+
SelectIndicator,
|
|
12
|
+
SelectContent,
|
|
13
|
+
SelectItem,
|
|
14
|
+
SelectItemText,
|
|
15
|
+
SelectItemIndicator,
|
|
16
|
+
} from '../select';
|
|
17
|
+
import CodeBlockHeader from './CodeBlockHeader.svelte';
|
|
18
|
+
import CodeBlockTitle from './CodeBlockTitle.svelte';
|
|
19
|
+
import CodeRenderer from './CodeRenderer.svelte';
|
|
20
|
+
import {
|
|
21
|
+
codeBlockRootBase,
|
|
22
|
+
codeBlockCopyFloatBase,
|
|
23
|
+
cn,
|
|
24
|
+
} from '@cloudvoyant/vortex-ui';
|
|
25
|
+
import type { LanguageTab } from '@cloudvoyant/vortex-ui';
|
|
26
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
27
|
+
|
|
28
|
+
type Props = {
|
|
29
|
+
tabs: LanguageTab[];
|
|
30
|
+
showLineNumbers?: boolean;
|
|
31
|
+
scrollable?: boolean;
|
|
32
|
+
maxHeight?: number;
|
|
33
|
+
class?: string;
|
|
34
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
35
|
+
|
|
36
|
+
let {
|
|
37
|
+
tabs,
|
|
38
|
+
showLineNumbers = false,
|
|
39
|
+
scrollable = false,
|
|
40
|
+
maxHeight = 400,
|
|
41
|
+
class: className = '',
|
|
42
|
+
...rest
|
|
43
|
+
}: Props = $props();
|
|
44
|
+
|
|
45
|
+
let active = $state(tabs[0]?.label ?? '');
|
|
46
|
+
const tab = $derived(tabs.find((t) => t.label === active) ?? tabs[0]);
|
|
47
|
+
const items = $derived(tabs.map((t) => ({ value: t.label, label: t.label })));
|
|
48
|
+
|
|
49
|
+
$effect(() => {
|
|
50
|
+
if (!tabs.some((t) => t.label === active)) {
|
|
51
|
+
active = tabs[0]?.label ?? '';
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const classes = $derived(cn(codeBlockRootBase, className));
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<Ark as="div" data-code-block class={classes} {...rest}>
|
|
59
|
+
<CodeBlockHeader>
|
|
60
|
+
<CodeBlockTitle>{tab?.filename}</CodeBlockTitle>
|
|
61
|
+
<div class="ml-auto">
|
|
62
|
+
<Select {items} value={[active]} onValueChange={(details) => (active = details.value[0])} aria-label="Language">
|
|
63
|
+
<SelectTrigger size="sm" class="min-w-28 justify-between font-mono text-xs">
|
|
64
|
+
<SelectValue />
|
|
65
|
+
<SelectIndicator>
|
|
66
|
+
<svg
|
|
67
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
68
|
+
viewBox="0 0 24 24"
|
|
69
|
+
fill="none"
|
|
70
|
+
stroke="currentColor"
|
|
71
|
+
stroke-width="2"
|
|
72
|
+
stroke-linecap="round"
|
|
73
|
+
stroke-linejoin="round"
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
>
|
|
76
|
+
<path d="m6 9 6 6 6-6"></path>
|
|
77
|
+
</svg>
|
|
78
|
+
</SelectIndicator>
|
|
79
|
+
</SelectTrigger>
|
|
80
|
+
<SelectContent>
|
|
81
|
+
{#each tabs as t (t.label)}
|
|
82
|
+
<SelectItem item={{ value: t.label, label: t.label }}>
|
|
83
|
+
<SelectItemText>{t.label}</SelectItemText>
|
|
84
|
+
<SelectItemIndicator>
|
|
85
|
+
<svg
|
|
86
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
87
|
+
viewBox="0 0 24 24"
|
|
88
|
+
fill="none"
|
|
89
|
+
stroke="currentColor"
|
|
90
|
+
stroke-width="2"
|
|
91
|
+
stroke-linecap="round"
|
|
92
|
+
stroke-linejoin="round"
|
|
93
|
+
aria-hidden="true"
|
|
94
|
+
>
|
|
95
|
+
<path d="M20 6 9 17l-5-5"></path>
|
|
96
|
+
</svg>
|
|
97
|
+
</SelectItemIndicator>
|
|
98
|
+
</SelectItem>
|
|
99
|
+
{/each}
|
|
100
|
+
</SelectContent>
|
|
101
|
+
</Select>
|
|
102
|
+
</div>
|
|
103
|
+
</CodeBlockHeader>
|
|
104
|
+
{#if tab}
|
|
105
|
+
<div class="relative">
|
|
106
|
+
<CodeRenderer
|
|
107
|
+
code={tab.code}
|
|
108
|
+
language={tab.language ?? 'tsx'}
|
|
109
|
+
html={tab.html}
|
|
110
|
+
{showLineNumbers}
|
|
111
|
+
{scrollable}
|
|
112
|
+
{maxHeight}
|
|
113
|
+
/>
|
|
114
|
+
<div class={codeBlockCopyFloatBase}>
|
|
115
|
+
<CopyButton value={tab.code} label="Copy code" />
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
{/if}
|
|
119
|
+
</Ark>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LanguageTab } from '@cloudvoyant/vortex-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
tabs: LanguageTab[];
|
|
5
|
+
showLineNumbers?: boolean;
|
|
6
|
+
scrollable?: boolean;
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
class?: string;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const LanguageTabsCodeBlock: import("svelte").Component<Props, {}, "">;
|
|
11
|
+
type LanguageTabsCodeBlock = ReturnType<typeof LanguageTabsCodeBlock>;
|
|
12
|
+
export default LanguageTabsCodeBlock;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/code-block/MultiFileCodeBlock.svelte -->
|
|
2
|
+
<!-- Closely based on: diffbook code-block family, mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
5
|
+
import CopyButton from '../CopyButton.svelte';
|
|
6
|
+
import CodeRenderer from './CodeRenderer.svelte';
|
|
7
|
+
import { codeBlockRootBase, cn } from '@cloudvoyant/vortex-ui';
|
|
8
|
+
import type { FileEntry } from '@cloudvoyant/vortex-ui';
|
|
9
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
10
|
+
|
|
11
|
+
type Props = {
|
|
12
|
+
files: FileEntry[];
|
|
13
|
+
showLineNumbers?: boolean;
|
|
14
|
+
scrollable?: boolean;
|
|
15
|
+
maxHeight?: number;
|
|
16
|
+
class?: string;
|
|
17
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
18
|
+
|
|
19
|
+
let {
|
|
20
|
+
files,
|
|
21
|
+
showLineNumbers = false,
|
|
22
|
+
scrollable = false,
|
|
23
|
+
maxHeight = 400,
|
|
24
|
+
class: className = '',
|
|
25
|
+
...rest
|
|
26
|
+
}: Props = $props();
|
|
27
|
+
|
|
28
|
+
let active = $state(files[0]?.filename ?? '');
|
|
29
|
+
const file = $derived(files.find((f) => f.filename === active) ?? files[0]);
|
|
30
|
+
|
|
31
|
+
$effect(() => {
|
|
32
|
+
if (!files.some((f) => f.filename === active)) {
|
|
33
|
+
active = files[0]?.filename ?? '';
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const classes = $derived(cn(codeBlockRootBase, className));
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<Ark as="div" data-code-block class={classes} {...rest}>
|
|
41
|
+
<div class="flex items-center justify-between border-b bg-muted/50">
|
|
42
|
+
<div role="tablist" aria-label="Files" class="flex overflow-x-auto no-scrollbar pl-1">
|
|
43
|
+
{#each files as f (f.filename)}
|
|
44
|
+
<button
|
|
45
|
+
role="tab"
|
|
46
|
+
aria-selected={active === f.filename}
|
|
47
|
+
onclick={() => (active = f.filename)}
|
|
48
|
+
class={cn(
|
|
49
|
+
'h-10 shrink-0 border-b-2 px-3 font-mono text-xs transition-colors',
|
|
50
|
+
active === f.filename
|
|
51
|
+
? 'border-foreground text-foreground'
|
|
52
|
+
: 'border-transparent text-muted-foreground hover:text-foreground',
|
|
53
|
+
)}
|
|
54
|
+
>
|
|
55
|
+
{f.filename}
|
|
56
|
+
</button>
|
|
57
|
+
{/each}
|
|
58
|
+
</div>
|
|
59
|
+
{#if file}
|
|
60
|
+
<div class="shrink-0 pr-3">
|
|
61
|
+
<CopyButton value={file.code} label="Copy code" />
|
|
62
|
+
</div>
|
|
63
|
+
{/if}
|
|
64
|
+
</div>
|
|
65
|
+
{#if file}
|
|
66
|
+
<CodeRenderer
|
|
67
|
+
code={file.code}
|
|
68
|
+
language={file.language ?? 'tsx'}
|
|
69
|
+
html={file.html}
|
|
70
|
+
{showLineNumbers}
|
|
71
|
+
{scrollable}
|
|
72
|
+
{maxHeight}
|
|
73
|
+
/>
|
|
74
|
+
{/if}
|
|
75
|
+
</Ark>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FileEntry } from '@cloudvoyant/vortex-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
files: FileEntry[];
|
|
5
|
+
showLineNumbers?: boolean;
|
|
6
|
+
scrollable?: boolean;
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
class?: string;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const MultiFileCodeBlock: import("svelte").Component<Props, {}, "">;
|
|
11
|
+
type MultiFileCodeBlock = ReturnType<typeof MultiFileCodeBlock>;
|
|
12
|
+
export default MultiFileCodeBlock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as CodeBlock } from './CodeBlock.svelte';
|
|
2
|
+
export { default as CodeBlockHeader } from './CodeBlockHeader.svelte';
|
|
3
|
+
export { default as CodeBlockTitle } from './CodeBlockTitle.svelte';
|
|
4
|
+
export { default as CodeBlockContent } from './CodeBlockContent.svelte';
|
|
5
|
+
export { default as CodeBlockCopyButton } from './CodeBlockCopyButton.svelte';
|
|
6
|
+
export { default as MultiFileCodeBlock } from './MultiFileCodeBlock.svelte';
|
|
7
|
+
export { default as LanguageTabsCodeBlock } from './LanguageTabsCodeBlock.svelte';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// libs/vortex-svelte/src/code-block/index.ts
|
|
2
|
+
export { default as CodeBlock } from './CodeBlock.svelte';
|
|
3
|
+
export { default as CodeBlockHeader } from './CodeBlockHeader.svelte';
|
|
4
|
+
export { default as CodeBlockTitle } from './CodeBlockTitle.svelte';
|
|
5
|
+
export { default as CodeBlockContent } from './CodeBlockContent.svelte';
|
|
6
|
+
export { default as CodeBlockCopyButton } from './CodeBlockCopyButton.svelte';
|
|
7
|
+
export { default as MultiFileCodeBlock } from './MultiFileCodeBlock.svelte';
|
|
8
|
+
export { default as LanguageTabsCodeBlock } from './LanguageTabsCodeBlock.svelte';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/Combobox.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<!-- Note: adapted to Ark UI v5 collection-based API (ComboboxRoot `collection` + ComboboxItem `item`). -->
|
|
4
|
+
<script lang="ts">
|
|
5
|
+
import {
|
|
6
|
+
ComboboxRoot,
|
|
7
|
+
createListCollection,
|
|
8
|
+
type ComboboxRootProps,
|
|
9
|
+
type ListCollection,
|
|
10
|
+
} from '@ark-ui/svelte/combobox';
|
|
11
|
+
import type { SelectItemData } from '@cloudvoyant/vortex-ui';
|
|
12
|
+
|
|
13
|
+
type Props = Omit<ComboboxRootProps<SelectItemData>, 'collection'> & {
|
|
14
|
+
items?: SelectItemData[];
|
|
15
|
+
collection?: ListCollection<SelectItemData>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
let { items, collection, openOnClick = true, lazyMount = true, unmountOnExit = true, children, ...rest }: Props = $props();
|
|
19
|
+
|
|
20
|
+
const resolvedCollection = $derived(collection ?? createListCollection({ items: items ?? [] }));
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<ComboboxRoot collection={resolvedCollection} {openOnClick} {lazyMount} {unmountOnExit} {...rest}>
|
|
24
|
+
{@render children?.()}
|
|
25
|
+
</ComboboxRoot>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ComboboxRootProps, type ListCollection } from '@ark-ui/svelte/combobox';
|
|
2
|
+
import type { SelectItemData } from '@cloudvoyant/vortex-ui';
|
|
3
|
+
type Props = Omit<ComboboxRootProps<SelectItemData>, 'collection'> & {
|
|
4
|
+
items?: SelectItemData[];
|
|
5
|
+
collection?: ListCollection<SelectItemData>;
|
|
6
|
+
};
|
|
7
|
+
declare const Combobox: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type Combobox = ReturnType<typeof Combobox>;
|
|
9
|
+
export default Combobox;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxClear.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxClearTrigger, type ComboboxClearTriggerProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
import { comboboxClearTriggerBase, cn } from '@cloudvoyant/vortex-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: ComboboxClearTriggerProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(comboboxClearTriggerBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ComboboxClearTrigger aria-label="Clear" class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</ComboboxClearTrigger>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxContent.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Portal } from '@ark-ui/svelte/portal';
|
|
5
|
+
import { ComboboxPositioner, ComboboxContent, type ComboboxContentProps } from '@ark-ui/svelte/combobox';
|
|
6
|
+
import { comboboxContentBase, comboboxPositionerBase, cn } from '@cloudvoyant/vortex-ui';
|
|
7
|
+
|
|
8
|
+
let { class: className = '', children, ...rest }: ComboboxContentProps = $props();
|
|
9
|
+
|
|
10
|
+
const classes = $derived(cn(comboboxContentBase, className));
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<Portal>
|
|
14
|
+
<ComboboxPositioner class={comboboxPositionerBase}>
|
|
15
|
+
<ComboboxContent class={classes} {...rest}>
|
|
16
|
+
{@render children?.()}
|
|
17
|
+
</ComboboxContent>
|
|
18
|
+
</ComboboxPositioner>
|
|
19
|
+
</Portal>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useComboboxContext as useCombobox } from '@ark-ui/svelte/combobox';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxControl.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxControl, type ComboboxControlProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
import { comboboxControlBase, cn } from '@cloudvoyant/vortex-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: ComboboxControlProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(comboboxControlBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ComboboxControl class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</ComboboxControl>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxEmpty.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxEmpty, type ComboboxEmptyProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
import { comboboxEmptyBase, cn } from '@cloudvoyant/vortex-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: ComboboxEmptyProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(comboboxEmptyBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ComboboxEmpty class={classes} {...rest}>
|
|
13
|
+
{#if children}
|
|
14
|
+
{@render children()}
|
|
15
|
+
{:else}
|
|
16
|
+
No results found.
|
|
17
|
+
{/if}
|
|
18
|
+
</ComboboxEmpty>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxInput.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxInput, type ComboboxInputProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
import { inputVariants, comboboxInputBase, cn } from '@cloudvoyant/vortex-ui';
|
|
6
|
+
|
|
7
|
+
type Props = Omit<ComboboxInputProps, 'size'> & {
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
class?: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
let { size = 'md', class: className = '', ...rest }: Props = $props();
|
|
13
|
+
|
|
14
|
+
const classes = $derived(cn(inputVariants({ size }), comboboxInputBase, className));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<ComboboxInput class={classes} {...rest} />
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComboboxInput, type ComboboxInputProps } from '@ark-ui/svelte/combobox';
|
|
2
|
+
type Props = Omit<ComboboxInputProps, 'size'> & {
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const ComboboxInput: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type ComboboxInput = ReturnType<typeof ComboboxInput>;
|
|
8
|
+
export default ComboboxInput;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxItem.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<!-- Note: adapted to Ark UI v5 — ComboboxItem takes `item` (the collection item). -->
|
|
4
|
+
<script lang="ts">
|
|
5
|
+
import { ComboboxItem, type ComboboxItemProps } from '@ark-ui/svelte/combobox';
|
|
6
|
+
import { comboboxItemVariants, cn } from '@cloudvoyant/vortex-ui';
|
|
7
|
+
import type { SelectItemData } from '@cloudvoyant/vortex-ui';
|
|
8
|
+
|
|
9
|
+
type Props = Omit<ComboboxItemProps, 'item'> & {
|
|
10
|
+
item: SelectItemData;
|
|
11
|
+
showIndicator?: boolean;
|
|
12
|
+
class?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
let { item, showIndicator = true, class: className = '', children, ...rest }: Props = $props();
|
|
16
|
+
|
|
17
|
+
const classes = $derived(cn(comboboxItemVariants({ showIndicator }), className));
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<ComboboxItem {item} persistFocus class={classes} {...rest}>
|
|
21
|
+
{@render children?.()}
|
|
22
|
+
</ComboboxItem>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComboboxItem, type ComboboxItemProps } from '@ark-ui/svelte/combobox';
|
|
2
|
+
import type { SelectItemData } from '@cloudvoyant/vortex-ui';
|
|
3
|
+
type Props = Omit<ComboboxItemProps, 'item'> & {
|
|
4
|
+
item: SelectItemData;
|
|
5
|
+
showIndicator?: boolean;
|
|
6
|
+
class?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const ComboboxItem: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type ComboboxItem = ReturnType<typeof ComboboxItem>;
|
|
10
|
+
export default ComboboxItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxItemGroup.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxItemGroup, type ComboboxItemGroupProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
|
|
6
|
+
let { class: className = '', children, ...rest }: ComboboxItemGroupProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<ComboboxItemGroup class={className} {...rest}>
|
|
10
|
+
{@render children?.()}
|
|
11
|
+
</ComboboxItemGroup>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComboboxItemGroup, type ComboboxItemGroupProps } from '@ark-ui/svelte/combobox';
|
|
2
|
+
declare const ComboboxItemGroup: import("svelte").Component<ComboboxItemGroupProps, {}, "">;
|
|
3
|
+
type ComboboxItemGroup = ReturnType<typeof ComboboxItemGroup>;
|
|
4
|
+
export default ComboboxItemGroup;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxItemGroupLabel.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxItemGroupLabel, type ComboboxItemGroupLabelProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
import { comboboxItemGroupLabelBase, cn } from '@cloudvoyant/vortex-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: ComboboxItemGroupLabelProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(comboboxItemGroupLabelBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ComboboxItemGroupLabel class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</ComboboxItemGroupLabel>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComboboxItemGroupLabel, type ComboboxItemGroupLabelProps } from '@ark-ui/svelte/combobox';
|
|
2
|
+
declare const ComboboxItemGroupLabel: import("svelte").Component<ComboboxItemGroupLabelProps, {}, "">;
|
|
3
|
+
type ComboboxItemGroupLabel = ReturnType<typeof ComboboxItemGroupLabel>;
|
|
4
|
+
export default ComboboxItemGroupLabel;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxItemIndicator.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxItemIndicator, type ComboboxItemIndicatorProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
import { comboboxItemIndicatorBase, cn } from '@cloudvoyant/vortex-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: ComboboxItemIndicatorProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(comboboxItemIndicatorBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ComboboxItemIndicator class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</ComboboxItemIndicator>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComboboxItemIndicator, type ComboboxItemIndicatorProps } from '@ark-ui/svelte/combobox';
|
|
2
|
+
declare const ComboboxItemIndicator: import("svelte").Component<ComboboxItemIndicatorProps, {}, "">;
|
|
3
|
+
type ComboboxItemIndicator = ReturnType<typeof ComboboxItemIndicator>;
|
|
4
|
+
export default ComboboxItemIndicator;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxItemText.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxItemText, type ComboboxItemTextProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
|
|
6
|
+
let { class: className = '', children, ...rest }: ComboboxItemTextProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<ComboboxItemText class={className} {...rest}>
|
|
10
|
+
{@render children?.()}
|
|
11
|
+
</ComboboxItemText>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComboboxItemText, type ComboboxItemTextProps } from '@ark-ui/svelte/combobox';
|
|
2
|
+
declare const ComboboxItemText: import("svelte").Component<ComboboxItemTextProps, {}, "">;
|
|
3
|
+
type ComboboxItemText = ReturnType<typeof ComboboxItemText>;
|
|
4
|
+
export default ComboboxItemText;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/vortex-svelte/src/combobox/ComboboxList.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI combobox (@ark-ui/svelte/combobox), mirrored from @cloudvoyant/vortex-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ComboboxList, type ComboboxListProps } from '@ark-ui/svelte/combobox';
|
|
5
|
+
import { comboboxListBase, cn } from '@cloudvoyant/vortex-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: ComboboxListProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(comboboxListBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<ComboboxList class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</ComboboxList>
|