@cloudvoyant/helical-svelte 0.19.0
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 +81 -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/editor/BookmarkInput.svelte +107 -0
- package/dist/editor/BookmarkInput.svelte.d.ts +13 -0
- package/dist/editor/BubbleMenu.svelte +412 -0
- package/dist/editor/BubbleMenu.svelte.d.ts +7 -0
- package/dist/editor/CodeBlockComponent.svelte +307 -0
- package/dist/editor/CodeBlockComponent.svelte.d.ts +4 -0
- package/dist/editor/CursorOverlay.svelte +99 -0
- package/dist/editor/CursorOverlay.svelte.d.ts +15 -0
- package/dist/editor/Editor.svelte +646 -0
- package/dist/editor/Editor.svelte.d.ts +27 -0
- package/dist/editor/FontColorPicker.svelte +102 -0
- package/dist/editor/FontColorPicker.svelte.d.ts +9 -0
- package/dist/editor/ImageFileUpload.svelte +70 -0
- package/dist/editor/ImageFileUpload.svelte.d.ts +8 -0
- package/dist/editor/ImageInput.svelte +189 -0
- package/dist/editor/ImageInput.svelte.d.ts +11 -0
- package/dist/editor/ImageNodeView.svelte +116 -0
- package/dist/editor/ImageNodeView.svelte.d.ts +4 -0
- package/dist/editor/LinkEditPopover.svelte +95 -0
- package/dist/editor/LinkEditPopover.svelte.d.ts +9 -0
- package/dist/editor/LinkPreviewCard.svelte +83 -0
- package/dist/editor/LinkPreviewCard.svelte.d.ts +4 -0
- package/dist/editor/MentionList.svelte +184 -0
- package/dist/editor/MentionList.svelte.d.ts +13 -0
- package/dist/editor/NoticeNodeView.svelte +57 -0
- package/dist/editor/NoticeNodeView.svelte.d.ts +4 -0
- package/dist/editor/Reader.svelte +284 -0
- package/dist/editor/Reader.svelte.d.ts +7 -0
- package/dist/editor/SlashMenu.svelte +124 -0
- package/dist/editor/SlashMenu.svelte.d.ts +9 -0
- package/dist/editor/UrlMentionPill.svelte +29 -0
- package/dist/editor/UrlMentionPill.svelte.d.ts +4 -0
- package/dist/editor/YouTubeInput.svelte +81 -0
- package/dist/editor/YouTubeInput.svelte.d.ts +9 -0
- package/dist/editor/index.d.ts +4 -0
- package/dist/editor/index.js +4 -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 +61 -0
- package/dist/index.js +62 -0
- package/dist/listbox/Listbox.svelte +33 -0
- package/dist/listbox/Listbox.svelte.d.ts +12 -0
- package/dist/listbox/ListboxContent.svelte +18 -0
- package/dist/listbox/ListboxContent.svelte.d.ts +9 -0
- package/dist/listbox/ListboxContext.svelte.d.ts +1 -0
- package/dist/listbox/ListboxContext.svelte.js +3 -0
- package/dist/listbox/ListboxEmpty.svelte +14 -0
- package/dist/listbox/ListboxEmpty.svelte.d.ts +9 -0
- package/dist/listbox/ListboxInput.svelte +14 -0
- package/dist/listbox/ListboxInput.svelte.d.ts +7 -0
- package/dist/listbox/ListboxItem.svelte +20 -0
- package/dist/listbox/ListboxItem.svelte.d.ts +10 -0
- package/dist/listbox/ListboxItemIndicator.svelte +14 -0
- package/dist/listbox/ListboxItemIndicator.svelte.d.ts +9 -0
- package/dist/listbox/ListboxItemText.svelte +14 -0
- package/dist/listbox/ListboxItemText.svelte.d.ts +9 -0
- package/dist/listbox/ListboxLabel.svelte +14 -0
- package/dist/listbox/ListboxLabel.svelte.d.ts +9 -0
- package/dist/listbox/index.d.ts +9 -0
- package/dist/listbox/index.js +10 -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/prose/Prose.svelte +23 -0
- package/dist/prose/Prose.svelte.d.ts +11 -0
- package/dist/prose/index.d.ts +1 -0
- package/dist/prose/index.js +2 -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/toggle-group/ToggleGroup.svelte +28 -0
- package/dist/toggle-group/ToggleGroup.svelte.d.ts +11 -0
- package/dist/toggle-group/ToggleGroupItem.svelte +28 -0
- package/dist/toggle-group/ToggleGroupItem.svelte.d.ts +11 -0
- package/dist/toggle-group/index.d.ts +2 -0
- package/dist/toggle-group/index.js +3 -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 +68 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
class?: string;
|
|
5
|
+
children?: Snippet;
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
declare const CardBody: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type CardBody = ReturnType<typeof CardBody>;
|
|
9
|
+
export default CardBody;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/card/CardCover.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI Card, built on @ark-ui/svelte/factory (Ark UI), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { getContext } from 'svelte';
|
|
5
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
6
|
+
import { cardCoverVariants, cn } from '@cloudvoyant/helical-ui';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
9
|
+
|
|
10
|
+
type Props = {
|
|
11
|
+
variant?: 'flush' | 'inset';
|
|
12
|
+
orientation?: 'vertical' | 'horizontal';
|
|
13
|
+
class?: string;
|
|
14
|
+
children?: Snippet;
|
|
15
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
16
|
+
|
|
17
|
+
let { variant = 'flush', orientation, class: className = '', children, ...rest }: Props = $props();
|
|
18
|
+
|
|
19
|
+
const contextOrientation = getContext<'vertical' | 'horizontal'>('card-orientation');
|
|
20
|
+
|
|
21
|
+
const classes = $derived(cn(cardCoverVariants({ variant, orientation: orientation ?? contextOrientation }), className));
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<Ark as="div" class={classes} {...rest}>
|
|
25
|
+
{@render children?.()}
|
|
26
|
+
</Ark>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
variant?: 'flush' | 'inset';
|
|
5
|
+
orientation?: 'vertical' | 'horizontal';
|
|
6
|
+
class?: string;
|
|
7
|
+
children?: Snippet;
|
|
8
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
declare const CardCover: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type CardCover = ReturnType<typeof CardCover>;
|
|
11
|
+
export default CardCover;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/CardDescription.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI Card, built on @ark-ui/svelte/factory (Ark UI), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
5
|
+
import { cardDescriptionBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
class?: string;
|
|
11
|
+
children?: Snippet;
|
|
12
|
+
} & HTMLAttributes<HTMLParagraphElement>;
|
|
13
|
+
|
|
14
|
+
let { class: className = '', children, ...rest }: Props = $props();
|
|
15
|
+
|
|
16
|
+
const classes = $derived(cn(cardDescriptionBase, className));
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<Ark as="p" class={classes} {...rest}>
|
|
20
|
+
{@render children?.()}
|
|
21
|
+
</Ark>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
class?: string;
|
|
5
|
+
children?: Snippet;
|
|
6
|
+
} & HTMLAttributes<HTMLParagraphElement>;
|
|
7
|
+
declare const CardDescription: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type CardDescription = ReturnType<typeof CardDescription>;
|
|
9
|
+
export default CardDescription;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/CardFooter.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI Card, built on @ark-ui/svelte/factory (Ark UI), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
5
|
+
import { cardFooterBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
class?: string;
|
|
11
|
+
children?: Snippet;
|
|
12
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
|
|
14
|
+
let { class: className = '', children, ...rest }: Props = $props();
|
|
15
|
+
|
|
16
|
+
const classes = $derived(cn(cardFooterBase, className));
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<Ark as="div" class={classes} {...rest}>
|
|
20
|
+
{@render children?.()}
|
|
21
|
+
</Ark>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
class?: string;
|
|
5
|
+
children?: Snippet;
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
declare const CardFooter: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type CardFooter = ReturnType<typeof CardFooter>;
|
|
9
|
+
export default CardFooter;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/CardHeader.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI Card, built on @ark-ui/svelte/factory (Ark UI), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
5
|
+
import { cardHeaderBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
class?: string;
|
|
11
|
+
children?: Snippet;
|
|
12
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
13
|
+
|
|
14
|
+
let { class: className = '', children, ...rest }: Props = $props();
|
|
15
|
+
|
|
16
|
+
const classes = $derived(cn(cardHeaderBase, className));
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<Ark as="div" class={classes} {...rest}>
|
|
20
|
+
{@render children?.()}
|
|
21
|
+
</Ark>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
class?: string;
|
|
5
|
+
children?: Snippet;
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
declare const CardHeader: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type CardHeader = ReturnType<typeof CardHeader>;
|
|
9
|
+
export default CardHeader;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/CardTitle.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI Card, built on @ark-ui/svelte/factory (Ark UI), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
5
|
+
import { cardTitleBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
import type { HTMLAttributes, SvelteHTMLElements } from 'svelte/elements';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
class?: string;
|
|
11
|
+
children?: Snippet;
|
|
12
|
+
asChild?: Snippet<[(props?: SvelteHTMLElements['h3']) => HTMLAttributes<HTMLElement>]>;
|
|
13
|
+
} & HTMLAttributes<HTMLHeadingElement>;
|
|
14
|
+
|
|
15
|
+
let { class: className = '', children, asChild, ...rest }: Props = $props();
|
|
16
|
+
|
|
17
|
+
const classes = $derived(cn(cardTitleBase, className));
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<Ark as="h3" class={classes} {asChild} {...rest}>
|
|
21
|
+
{@render children?.()}
|
|
22
|
+
</Ark>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes, SvelteHTMLElements } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
class?: string;
|
|
5
|
+
children?: Snippet;
|
|
6
|
+
asChild?: Snippet<[(props?: SvelteHTMLElements['h3']) => HTMLAttributes<HTMLElement>]>;
|
|
7
|
+
} & HTMLAttributes<HTMLHeadingElement>;
|
|
8
|
+
declare const CardTitle: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type CardTitle = ReturnType<typeof CardTitle>;
|
|
10
|
+
export default CardTitle;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Card } from './Card.svelte';
|
|
2
|
+
export { default as CardHeader } from './CardHeader.svelte';
|
|
3
|
+
export { default as CardBody } from './CardBody.svelte';
|
|
4
|
+
export { default as CardFooter } from './CardFooter.svelte';
|
|
5
|
+
export { default as CardTitle } from './CardTitle.svelte';
|
|
6
|
+
export { default as CardDescription } from './CardDescription.svelte';
|
|
7
|
+
export { default as CardCover } from './CardCover.svelte';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// libs/helical-svelte/src/card/index.ts
|
|
2
|
+
export { default as Card } from './Card.svelte';
|
|
3
|
+
export { default as CardHeader } from './CardHeader.svelte';
|
|
4
|
+
export { default as CardBody } from './CardBody.svelte';
|
|
5
|
+
export { default as CardFooter } from './CardFooter.svelte';
|
|
6
|
+
export { default as CardTitle } from './CardTitle.svelte';
|
|
7
|
+
export { default as CardDescription } from './CardDescription.svelte';
|
|
8
|
+
export { default as CardCover } from './CardCover.svelte';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/checkbox/Checkbox.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI checkbox (@ark-ui/svelte/checkbox), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { setContext } from 'svelte';
|
|
5
|
+
import { CheckboxRoot, CheckboxHiddenInput, type CheckboxRootProps } from '@ark-ui/svelte/checkbox';
|
|
6
|
+
import { cn } from '@cloudvoyant/helical-ui';
|
|
7
|
+
|
|
8
|
+
type Props = CheckboxRootProps & {
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
class?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
let { size = 'md', class: className = '', children, ...rest }: Props = $props();
|
|
14
|
+
|
|
15
|
+
setContext<'sm' | 'md' | 'lg'>('checkbox-size', size);
|
|
16
|
+
|
|
17
|
+
const classes = $derived(cn('flex items-center gap-2', className));
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<CheckboxRoot class={classes} {...rest}>
|
|
21
|
+
{@render children?.()}
|
|
22
|
+
<CheckboxHiddenInput />
|
|
23
|
+
</CheckboxRoot>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type CheckboxRootProps } from '@ark-ui/svelte/checkbox';
|
|
2
|
+
type Props = CheckboxRootProps & {
|
|
3
|
+
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
class?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const Checkbox: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type Checkbox = ReturnType<typeof Checkbox>;
|
|
8
|
+
export default Checkbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useCheckboxContext as useCheckbox } from '@ark-ui/svelte/checkbox';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/checkbox/CheckboxControl.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI checkbox (@ark-ui/svelte/checkbox), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { getContext } from 'svelte';
|
|
5
|
+
import { CheckboxControl, type CheckboxControlProps } from '@ark-ui/svelte/checkbox';
|
|
6
|
+
import { checkboxVariants, cn } from '@cloudvoyant/helical-ui';
|
|
7
|
+
|
|
8
|
+
let { class: className = '', children, ...rest }: CheckboxControlProps = $props();
|
|
9
|
+
|
|
10
|
+
const size = getContext<'sm' | 'md' | 'lg'>('checkbox-size');
|
|
11
|
+
|
|
12
|
+
const classes = $derived(cn(checkboxVariants({ size }), className));
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<CheckboxControl class={classes} {...rest}>
|
|
16
|
+
{@render children?.()}
|
|
17
|
+
</CheckboxControl>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/checkbox/CheckboxGroup.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI checkbox (@ark-ui/svelte/checkbox), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { CheckboxGroup, type CheckboxGroupProps } from '@ark-ui/svelte/checkbox';
|
|
5
|
+
import { checkboxGroupBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: CheckboxGroupProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(checkboxGroupBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<CheckboxGroup class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</CheckboxGroup>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/checkbox/CheckboxIndicator.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI checkbox (@ark-ui/svelte/checkbox), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { CheckboxIndicator, type CheckboxIndicatorProps } from '@ark-ui/svelte/checkbox';
|
|
5
|
+
import { checkboxIndicatorBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: CheckboxIndicatorProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(checkboxIndicatorBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<CheckboxIndicator class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</CheckboxIndicator>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CheckboxIndicator, type CheckboxIndicatorProps } from '@ark-ui/svelte/checkbox';
|
|
2
|
+
declare const CheckboxIndicator: import("svelte").Component<CheckboxIndicatorProps, {}, "">;
|
|
3
|
+
type CheckboxIndicator = ReturnType<typeof CheckboxIndicator>;
|
|
4
|
+
export default CheckboxIndicator;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/checkbox/CheckboxLabel.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI checkbox (@ark-ui/svelte/checkbox), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { CheckboxLabel, type CheckboxLabelProps } from '@ark-ui/svelte/checkbox';
|
|
5
|
+
import { checkboxLabelBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: CheckboxLabelProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(checkboxLabelBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<CheckboxLabel class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</CheckboxLabel>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Checkbox } from './Checkbox.svelte';
|
|
2
|
+
export { default as CheckboxControl } from './CheckboxControl.svelte';
|
|
3
|
+
export { default as CheckboxIndicator } from './CheckboxIndicator.svelte';
|
|
4
|
+
export { default as CheckboxLabel } from './CheckboxLabel.svelte';
|
|
5
|
+
export { default as CheckboxGroup } from './CheckboxGroup.svelte';
|
|
6
|
+
export { useCheckbox } from './CheckboxContext.svelte';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// libs/helical-svelte/src/checkbox/index.ts
|
|
2
|
+
export { default as Checkbox } from './Checkbox.svelte';
|
|
3
|
+
export { default as CheckboxControl } from './CheckboxControl.svelte';
|
|
4
|
+
export { default as CheckboxIndicator } from './CheckboxIndicator.svelte';
|
|
5
|
+
export { default as CheckboxLabel } from './CheckboxLabel.svelte';
|
|
6
|
+
export { default as CheckboxGroup } from './CheckboxGroup.svelte';
|
|
7
|
+
export { useCheckbox } from './CheckboxContext.svelte';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/code-block/CodeBlock.svelte -->
|
|
2
|
+
<!-- Closely based on: diffbook code-block family, rebuilt as a composable API, mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
5
|
+
import CodeBlockHeader from './CodeBlockHeader.svelte';
|
|
6
|
+
import CodeBlockTitle from './CodeBlockTitle.svelte';
|
|
7
|
+
import CodeBlockContent from './CodeBlockContent.svelte';
|
|
8
|
+
import CodeBlockCopyButton from './CodeBlockCopyButton.svelte';
|
|
9
|
+
import { codeBlockRootBase, cn } from '@cloudvoyant/helical-ui';
|
|
10
|
+
import { setContext } from 'svelte';
|
|
11
|
+
import { CODE_BLOCK_KEY, type CodeBlockContextValue } from './CodeBlockContext.svelte';
|
|
12
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
13
|
+
import type { Snippet } from 'svelte';
|
|
14
|
+
|
|
15
|
+
type Props = {
|
|
16
|
+
code: string;
|
|
17
|
+
language?: string;
|
|
18
|
+
filename?: string;
|
|
19
|
+
html?: string;
|
|
20
|
+
showLineNumbers?: boolean;
|
|
21
|
+
scrollable?: boolean;
|
|
22
|
+
maxHeight?: number;
|
|
23
|
+
highlightLines?: number[];
|
|
24
|
+
class?: string;
|
|
25
|
+
children?: Snippet;
|
|
26
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
27
|
+
|
|
28
|
+
let {
|
|
29
|
+
code,
|
|
30
|
+
language = 'tsx',
|
|
31
|
+
filename,
|
|
32
|
+
html = undefined,
|
|
33
|
+
showLineNumbers = false,
|
|
34
|
+
scrollable = false,
|
|
35
|
+
maxHeight = 400,
|
|
36
|
+
highlightLines = undefined,
|
|
37
|
+
class: className = '',
|
|
38
|
+
children,
|
|
39
|
+
...rest
|
|
40
|
+
}: Props = $props();
|
|
41
|
+
|
|
42
|
+
setContext<CodeBlockContextValue>(CODE_BLOCK_KEY, {
|
|
43
|
+
code,
|
|
44
|
+
language,
|
|
45
|
+
html,
|
|
46
|
+
showLineNumbers,
|
|
47
|
+
scrollable,
|
|
48
|
+
maxHeight,
|
|
49
|
+
highlightLines,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const classes = $derived(cn(codeBlockRootBase, className));
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<Ark as="div" data-code-block class={classes} {...rest}>
|
|
56
|
+
{#if children}
|
|
57
|
+
{@render children()}
|
|
58
|
+
{:else}
|
|
59
|
+
<CodeBlockHeader>
|
|
60
|
+
<CodeBlockTitle>{filename ?? language}</CodeBlockTitle>
|
|
61
|
+
<div class="ml-auto">
|
|
62
|
+
<CodeBlockCopyButton />
|
|
63
|
+
</div>
|
|
64
|
+
</CodeBlockHeader>
|
|
65
|
+
<CodeBlockContent />
|
|
66
|
+
{/if}
|
|
67
|
+
</Ark>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
type Props = {
|
|
4
|
+
code: string;
|
|
5
|
+
language?: string;
|
|
6
|
+
filename?: string;
|
|
7
|
+
html?: string;
|
|
8
|
+
showLineNumbers?: boolean;
|
|
9
|
+
scrollable?: boolean;
|
|
10
|
+
maxHeight?: number;
|
|
11
|
+
highlightLines?: number[];
|
|
12
|
+
class?: string;
|
|
13
|
+
children?: Snippet;
|
|
14
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
declare const CodeBlock: import("svelte").Component<Props, {}, "">;
|
|
16
|
+
type CodeBlock = ReturnType<typeof CodeBlock>;
|
|
17
|
+
export default CodeBlock;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/code-block/CodeBlockContent.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
4
|
+
import CodeRenderer from './CodeRenderer.svelte';
|
|
5
|
+
import { codeBlockContext } from './CodeBlockContext.svelte';
|
|
6
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
7
|
+
|
|
8
|
+
type Props = { html?: string; class?: string } & HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
let { html = undefined, class: className = '', ...rest }: Props = $props();
|
|
10
|
+
|
|
11
|
+
const ctx = codeBlockContext();
|
|
12
|
+
if (!ctx) {
|
|
13
|
+
throw new Error('CodeBlockContent must be rendered inside a CodeBlock.');
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<Ark as="div" class={className} {...rest}>
|
|
18
|
+
<CodeRenderer {...ctx} html={html ?? ctx.html} />
|
|
19
|
+
</Ark>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
type Props = {
|
|
3
|
+
html?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
declare const CodeBlockContent: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type CodeBlockContent = ReturnType<typeof CodeBlockContent>;
|
|
8
|
+
export default CodeBlockContent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CodeBlockContextValue {
|
|
2
|
+
code: string;
|
|
3
|
+
language: string;
|
|
4
|
+
html?: string;
|
|
5
|
+
showLineNumbers: boolean;
|
|
6
|
+
scrollable: boolean;
|
|
7
|
+
maxHeight: number;
|
|
8
|
+
highlightLines?: number[];
|
|
9
|
+
}
|
|
10
|
+
export declare const CODE_BLOCK_KEY: unique symbol;
|
|
11
|
+
export declare function codeBlockContext(): CodeBlockContextValue | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// libs/helical-svelte/src/code-block/CodeBlockContext.svelte.ts
|
|
2
|
+
// Shared code-block context so composite parts (Title/Content/CopyButton) read the block's props.
|
|
3
|
+
import { getContext } from 'svelte';
|
|
4
|
+
export const CODE_BLOCK_KEY = Symbol('helical-ui-code-block');
|
|
5
|
+
export function codeBlockContext() {
|
|
6
|
+
return getContext(CODE_BLOCK_KEY);
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/code-block/CodeBlockCopyButton.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
4
|
+
import CopyButton from '../CopyButton.svelte';
|
|
5
|
+
import { codeBlockContext } from './CodeBlockContext.svelte';
|
|
6
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
7
|
+
|
|
8
|
+
type Props = { label?: string; class?: string } & HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
let { label = 'Copy code', class: className = '', ...rest }: Props = $props();
|
|
10
|
+
|
|
11
|
+
const ctx = codeBlockContext();
|
|
12
|
+
if (!ctx) {
|
|
13
|
+
throw new Error('CodeBlockCopyButton must be rendered inside a CodeBlock.');
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<Ark as="div" class={className} {...rest}>
|
|
18
|
+
<CopyButton value={ctx.code} {label} />
|
|
19
|
+
</Ark>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
type Props = {
|
|
3
|
+
label?: string;
|
|
4
|
+
class?: string;
|
|
5
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
6
|
+
declare const CodeBlockCopyButton: import("svelte").Component<Props, {}, "">;
|
|
7
|
+
type CodeBlockCopyButton = ReturnType<typeof CodeBlockCopyButton>;
|
|
8
|
+
export default CodeBlockCopyButton;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/code-block/CodeBlockHeader.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
4
|
+
import { codeBlockHeaderBase, cn } from '@cloudvoyant/helical-ui';
|
|
5
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
|
|
8
|
+
type Props = { children?: Snippet; class?: string } & HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
let { children, class: className = '', ...rest }: Props = $props();
|
|
10
|
+
const classes = $derived(cn(codeBlockHeaderBase, className));
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<Ark as="div" class={classes} {...rest}>
|
|
14
|
+
{#if children}{@render children()}{/if}
|
|
15
|
+
</Ark>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
type Props = {
|
|
4
|
+
children?: Snippet;
|
|
5
|
+
class?: string;
|
|
6
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
declare const CodeBlockHeader: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type CodeBlockHeader = ReturnType<typeof CodeBlockHeader>;
|
|
9
|
+
export default CodeBlockHeader;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/code-block/CodeBlockTitle.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
4
|
+
import { codeBlockTitleBase, cn } from '@cloudvoyant/helical-ui';
|
|
5
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
|
|
8
|
+
type Props = { children?: Snippet; class?: string } & HTMLAttributes<HTMLSpanElement>;
|
|
9
|
+
let { children, class: className = '', ...rest }: Props = $props();
|
|
10
|
+
const classes = $derived(cn(codeBlockTitleBase, className));
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<Ark as="span" class={classes} {...rest}>
|
|
14
|
+
{#if children}{@render children()}{/if}
|
|
15
|
+
</Ark>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
type Props = {
|
|
4
|
+
children?: Snippet;
|
|
5
|
+
class?: string;
|
|
6
|
+
} & HTMLAttributes<HTMLSpanElement>;
|
|
7
|
+
declare const CodeBlockTitle: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type CodeBlockTitle = ReturnType<typeof CodeBlockTitle>;
|
|
9
|
+
export default CodeBlockTitle;
|