@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
package/dist/Row.svelte
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/Row.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI Flex (direction="row"), 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 { rowBase, 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(rowBase, 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 Row: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type Row = ReturnType<typeof Row>;
|
|
9
|
+
export default Row;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/Scroll.svelte -->
|
|
2
|
+
<!-- Closely based on: @ark-ui/svelte/scroll-area (Ark UI), Chakra UI ScrollArea, mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import {
|
|
5
|
+
ScrollAreaRoot,
|
|
6
|
+
ScrollAreaViewport,
|
|
7
|
+
ScrollAreaContent,
|
|
8
|
+
ScrollAreaScrollbar,
|
|
9
|
+
ScrollAreaThumb,
|
|
10
|
+
ScrollAreaCorner,
|
|
11
|
+
} from '@ark-ui/svelte/scroll-area';
|
|
12
|
+
import type { ScrollAreaRootProps } from '@ark-ui/svelte/scroll-area';
|
|
13
|
+
import {
|
|
14
|
+
scrollRootBase,
|
|
15
|
+
scrollViewportBase,
|
|
16
|
+
scrollContentBase,
|
|
17
|
+
scrollScrollbarBase,
|
|
18
|
+
scrollThumbBase,
|
|
19
|
+
scrollCornerBase,
|
|
20
|
+
cn,
|
|
21
|
+
} from '@cloudvoyant/helical-ui';
|
|
22
|
+
|
|
23
|
+
type Props = ScrollAreaRootProps & {
|
|
24
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
25
|
+
/** `default` shows the styled scrollbars; `hidden` keeps scrolling without rendering any scrollbar. */
|
|
26
|
+
variant?: 'default' | 'hidden';
|
|
27
|
+
contentClass?: string;
|
|
28
|
+
thumbClass?: string;
|
|
29
|
+
/** Overrides the viewport class. The default is `flex h-full w-full flex-col`;
|
|
30
|
+
* for horizontal scrolling wrap content in a flex row or override this. */
|
|
31
|
+
viewportClass?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
let {
|
|
35
|
+
class: className = '',
|
|
36
|
+
orientation = 'vertical',
|
|
37
|
+
variant = 'default',
|
|
38
|
+
contentClass = '',
|
|
39
|
+
thumbClass = '',
|
|
40
|
+
viewportClass = '',
|
|
41
|
+
children,
|
|
42
|
+
...rest
|
|
43
|
+
}: Props = $props();
|
|
44
|
+
|
|
45
|
+
const rootClasses = $derived(cn(scrollRootBase, className));
|
|
46
|
+
const viewportClasses = $derived(cn(scrollViewportBase, viewportClass));
|
|
47
|
+
const contentClasses = $derived(cn(scrollContentBase, contentClass));
|
|
48
|
+
const thumbClasses = $derived(cn(scrollThumbBase, thumbClass));
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<ScrollAreaRoot class={rootClasses} {...rest}>
|
|
52
|
+
<ScrollAreaViewport class={viewportClasses}>
|
|
53
|
+
<ScrollAreaContent class={contentClasses}>
|
|
54
|
+
{@render children?.()}
|
|
55
|
+
</ScrollAreaContent>
|
|
56
|
+
</ScrollAreaViewport>
|
|
57
|
+
{#if variant !== 'hidden'}
|
|
58
|
+
{#if orientation === 'vertical' || orientation === 'both'}
|
|
59
|
+
<ScrollAreaScrollbar orientation="vertical" class={scrollScrollbarBase}>
|
|
60
|
+
<ScrollAreaThumb class={thumbClasses} />
|
|
61
|
+
</ScrollAreaScrollbar>
|
|
62
|
+
{/if}
|
|
63
|
+
{#if orientation === 'horizontal' || orientation === 'both'}
|
|
64
|
+
<ScrollAreaScrollbar orientation="horizontal" class={scrollScrollbarBase}>
|
|
65
|
+
<ScrollAreaThumb class={thumbClasses} />
|
|
66
|
+
</ScrollAreaScrollbar>
|
|
67
|
+
{/if}
|
|
68
|
+
{#if orientation === 'both'}
|
|
69
|
+
<ScrollAreaCorner class={scrollCornerBase} />
|
|
70
|
+
{/if}
|
|
71
|
+
{/if}
|
|
72
|
+
</ScrollAreaRoot>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ScrollAreaRootProps } from '@ark-ui/svelte/scroll-area';
|
|
2
|
+
type Props = ScrollAreaRootProps & {
|
|
3
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
4
|
+
/** `default` shows the styled scrollbars; `hidden` keeps scrolling without rendering any scrollbar. */
|
|
5
|
+
variant?: 'default' | 'hidden';
|
|
6
|
+
contentClass?: string;
|
|
7
|
+
thumbClass?: string;
|
|
8
|
+
/** Overrides the viewport class. The default is `flex h-full w-full flex-col`;
|
|
9
|
+
* for horizontal scrolling wrap content in a flex row or override this. */
|
|
10
|
+
viewportClass?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Scroll: import("svelte").Component<Props, {}, "">;
|
|
13
|
+
type Scroll = ReturnType<typeof Scroll>;
|
|
14
|
+
export default Scroll;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/Splitter.svelte -->
|
|
2
|
+
<!-- Closely based on: @ark-ui/svelte/splitter (Ark UI), Chakra UI Splitter, mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { SplitterRoot, type SplitterRootProps } from '@ark-ui/svelte/splitter';
|
|
5
|
+
import { splitterRootBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', ...rest }: SplitterRootProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(splitterRootBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<SplitterRoot class={classes} {...rest} />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/SplitterPanel.svelte -->
|
|
2
|
+
<!-- Closely based on: @ark-ui/svelte/splitter (Ark UI), Chakra UI Splitter, mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { SplitterPanel, type SplitterPanelProps } from '@ark-ui/svelte/splitter';
|
|
5
|
+
import { splitterPanelBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', ...rest }: SplitterPanelProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(splitterPanelBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<SplitterPanel class={classes} {...rest} />
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/SplitterResizeTrigger.svelte -->
|
|
2
|
+
<!-- Closely based on: @ark-ui/svelte/splitter (Ark UI), Chakra UI Splitter, mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { SplitterResizeTrigger, type SplitterResizeTriggerProps } from '@ark-ui/svelte/splitter';
|
|
5
|
+
import { splitterResizeTriggerBase, splitterResizeTriggerSeparatorBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: SplitterResizeTriggerProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(splitterResizeTriggerBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<SplitterResizeTrigger class={classes} {...rest}>
|
|
13
|
+
<span aria-hidden data-part="separator" class={splitterResizeTriggerSeparatorBase}></span>
|
|
14
|
+
{@render children?.()}
|
|
15
|
+
</SplitterResizeTrigger>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SplitterResizeTrigger, type SplitterResizeTriggerProps } from '@ark-ui/svelte/splitter';
|
|
2
|
+
declare const SplitterResizeTrigger: import("svelte").Component<SplitterResizeTriggerProps, {}, "">;
|
|
3
|
+
type SplitterResizeTrigger = ReturnType<typeof SplitterResizeTrigger>;
|
|
4
|
+
export default SplitterResizeTrigger;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/SplitterResizeTriggerIndicator.svelte -->
|
|
2
|
+
<!-- Closely based on: @ark-ui/svelte/splitter (Ark UI), Chakra UI Splitter, mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import {
|
|
5
|
+
SplitterResizeTriggerIndicator,
|
|
6
|
+
type SplitterResizeTriggerIndicatorProps,
|
|
7
|
+
} from '@ark-ui/svelte/splitter';
|
|
8
|
+
import { splitterResizeTriggerIndicatorBase, cn } from '@cloudvoyant/helical-ui';
|
|
9
|
+
|
|
10
|
+
let { class: className = '', ...rest }: SplitterResizeTriggerIndicatorProps = $props();
|
|
11
|
+
|
|
12
|
+
const classes = $derived(cn(splitterResizeTriggerIndicatorBase, className));
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<SplitterResizeTriggerIndicator class={classes} {...rest} />
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SplitterResizeTriggerIndicator, type SplitterResizeTriggerIndicatorProps } from '@ark-ui/svelte/splitter';
|
|
2
|
+
declare const SplitterResizeTriggerIndicator: import("svelte").Component<SplitterResizeTriggerIndicatorProps, {}, "">;
|
|
3
|
+
type SplitterResizeTriggerIndicator = ReturnType<typeof SplitterResizeTriggerIndicator>;
|
|
4
|
+
export default SplitterResizeTriggerIndicator;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/Stack.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI Stack, 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 { stackBase, 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(stackBase, 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 Stack: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type Stack = ReturnType<typeof Stack>;
|
|
9
|
+
export default Stack;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/Textarea.svelte -->
|
|
2
|
+
<!-- Closely based on: Shark UI textarea (@ark-ui/svelte/field), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { FieldTextarea, type FieldTextareaProps } from '@ark-ui/svelte/field';
|
|
5
|
+
import { textareaBase, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
let { class: className = '', children, ...rest }: FieldTextareaProps = $props();
|
|
8
|
+
|
|
9
|
+
const classes = $derived(cn(textareaBase, className));
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<FieldTextarea class={classes} {...rest}>
|
|
13
|
+
{@render children?.()}
|
|
14
|
+
</FieldTextarea>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/ToggleButton.svelte -->
|
|
2
|
+
<!-- Closely based on: @ark-ui/svelte/toggle (Ark UI), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ToggleRoot, type ToggleRootProps } from '@ark-ui/svelte/toggle';
|
|
5
|
+
import { toggleButtonVariants, cn } from '@cloudvoyant/helical-ui';
|
|
6
|
+
|
|
7
|
+
type Props = ToggleRootProps & {
|
|
8
|
+
variant?: 'default' | 'outline';
|
|
9
|
+
size?: 'default' | 'sm' | 'lg';
|
|
10
|
+
class?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
let { variant = 'default', size = 'default', class: className = '', ...rest }: Props = $props();
|
|
14
|
+
|
|
15
|
+
const classes = $derived(cn(toggleButtonVariants({ variant, size }), className));
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<ToggleRoot class={classes} {...rest} />
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ToggleRootProps } from '@ark-ui/svelte/toggle';
|
|
2
|
+
type Props = ToggleRootProps & {
|
|
3
|
+
variant?: 'default' | 'outline';
|
|
4
|
+
size?: 'default' | 'sm' | 'lg';
|
|
5
|
+
class?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const ToggleButton: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type ToggleButton = ReturnType<typeof ToggleButton>;
|
|
9
|
+
export default ToggleButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/ToggleButtonIndicator.svelte -->
|
|
2
|
+
<!-- Closely based on: @ark-ui/svelte/toggle (Ark UI), mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { ToggleIndicator, type ToggleIndicatorProps } from '@ark-ui/svelte/toggle';
|
|
5
|
+
|
|
6
|
+
let { ...rest }: ToggleIndicatorProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<ToggleIndicator {...rest} />
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ToggleIndicatorProps } from '@ark-ui/svelte/toggle';
|
|
2
|
+
declare const ToggleButtonIndicator: import("svelte").Component<ToggleIndicatorProps, {}, "">;
|
|
3
|
+
type ToggleButtonIndicator = ReturnType<typeof ToggleButtonIndicator>;
|
|
4
|
+
export default ToggleButtonIndicator;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/VStack.svelte -->
|
|
2
|
+
<!-- Closely based on: Chakra UI VStack, 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 { vstackBase, 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(vstackBase, 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 VStack: import("svelte").Component<Props, {}, "">;
|
|
8
|
+
type VStack = ReturnType<typeof VStack>;
|
|
9
|
+
export default VStack;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/YouTube.svelte -->
|
|
2
|
+
<!-- Closely based on: diffbook YouTube, mirrored from @cloudvoyant/helical-react -->
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
5
|
+
import { Play } from 'lucide-svelte';
|
|
6
|
+
import { setContext } from 'svelte';
|
|
7
|
+
import {
|
|
8
|
+
youtubeRootBase,
|
|
9
|
+
youtubeTitleBase,
|
|
10
|
+
youtubeFacadeBase,
|
|
11
|
+
youtubePlayButtonBase,
|
|
12
|
+
youtubePlayButtonInnerBase,
|
|
13
|
+
youtubeDescriptionBase,
|
|
14
|
+
extractYouTubeId,
|
|
15
|
+
cn,
|
|
16
|
+
} from '@cloudvoyant/helical-ui';
|
|
17
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
18
|
+
import type { Snippet } from 'svelte';
|
|
19
|
+
|
|
20
|
+
type Props = {
|
|
21
|
+
url: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
poster?: string;
|
|
25
|
+
class?: string;
|
|
26
|
+
children?: Snippet;
|
|
27
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
28
|
+
|
|
29
|
+
let { url, title, description, poster, class: className = '', children, ...rest }: Props = $props();
|
|
30
|
+
|
|
31
|
+
const videoId = $derived(extractYouTubeId(url));
|
|
32
|
+
const posterUrl = $derived(poster ?? `https://i.ytimg.com/vi/${videoId}/hqdefault.jpg`);
|
|
33
|
+
|
|
34
|
+
let playing = $state(false);
|
|
35
|
+
let startAt = $state<number | null>(null);
|
|
36
|
+
|
|
37
|
+
const seek = (t: number) => {
|
|
38
|
+
startAt = t;
|
|
39
|
+
playing = true;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
setContext('helical-ui-youtube', {
|
|
43
|
+
get url() {
|
|
44
|
+
return url;
|
|
45
|
+
},
|
|
46
|
+
get videoId() {
|
|
47
|
+
return videoId;
|
|
48
|
+
},
|
|
49
|
+
seek,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
const src = $derived(
|
|
53
|
+
`https://www.youtube-nocookie.com/embed/${videoId}?autoplay=1${startAt != null ? `&start=${startAt}` : ''}`,
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const classes = $derived(cn(youtubeRootBase, className));
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<Ark as="div" data-youtube-id={videoId} class={classes} {...rest}>
|
|
60
|
+
{#if title}<Ark as="h3" class={youtubeTitleBase}>{title}</Ark>{/if}
|
|
61
|
+
{#if playing}
|
|
62
|
+
<iframe
|
|
63
|
+
{src}
|
|
64
|
+
title={title ?? `YouTube video ${videoId}`}
|
|
65
|
+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
|
66
|
+
allowfullscreen
|
|
67
|
+
class="aspect-video w-full rounded-md border border-border"
|
|
68
|
+
></iframe>
|
|
69
|
+
{:else}
|
|
70
|
+
<Ark as="button" type="button" class={youtubeFacadeBase} onclick={() => (playing = true)} aria-label={title ? `Play video: ${title}` : 'Play video'}>
|
|
71
|
+
<Ark as="img" src={posterUrl} alt={title ?? `YouTube video ${videoId}`} loading="lazy" class="h-full w-full object-cover" />
|
|
72
|
+
<Ark as="span" class={youtubePlayButtonBase} aria-hidden="true">
|
|
73
|
+
<Ark as="span" class={youtubePlayButtonInnerBase}>
|
|
74
|
+
<Play class="size-8 fill-current" aria-hidden="true" data-youtube-logo />
|
|
75
|
+
</Ark>
|
|
76
|
+
</Ark>
|
|
77
|
+
</Ark>
|
|
78
|
+
{/if}
|
|
79
|
+
{#if description}<Ark as="p" class={youtubeDescriptionBase}>{description}</Ark>{/if}
|
|
80
|
+
{#if children}{@render children()}{/if}
|
|
81
|
+
</Ark>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
type Props = {
|
|
4
|
+
url: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
poster?: string;
|
|
8
|
+
class?: string;
|
|
9
|
+
children?: Snippet;
|
|
10
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
declare const YouTube: import("svelte").Component<Props, {}, "">;
|
|
12
|
+
type YouTube = ReturnType<typeof YouTube>;
|
|
13
|
+
export default YouTube;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/YoutubeTimestampAt.svelte -->
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
4
|
+
import { getContext } from 'svelte';
|
|
5
|
+
import { youtubeChapterButtonBase, youtubeChapterTimeBase, youtubeChapterLabelBase, formatTime } from '@cloudvoyant/helical-ui';
|
|
6
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
type Props = { t: number; children?: Snippet; class?: string } & HTMLAttributes<HTMLElement>;
|
|
10
|
+
let { t, children, class: className = '', ...rest }: Props = $props();
|
|
11
|
+
|
|
12
|
+
const ctx = getContext<{ seek: (t: number) => void }>('helical-ui-youtube');
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<Ark as="li" class={className} {...rest}>
|
|
16
|
+
<Ark as="button" type="button" onclick={() => ctx.seek(t)} class={youtubeChapterButtonBase}>
|
|
17
|
+
<Ark as="span" class={youtubeChapterTimeBase}>{formatTime(t)}</Ark>
|
|
18
|
+
<Ark as="span" class={youtubeChapterLabelBase}>{#if children}{@render children()}{/if}</Ark>
|
|
19
|
+
</Ark>
|
|
20
|
+
</Ark>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
type Props = {
|
|
4
|
+
t: number;
|
|
5
|
+
children?: Snippet;
|
|
6
|
+
class?: string;
|
|
7
|
+
} & HTMLAttributes<HTMLElement>;
|
|
8
|
+
declare const YoutubeTimestampAt: import("svelte").Component<Props, {}, "">;
|
|
9
|
+
type YoutubeTimestampAt = ReturnType<typeof YoutubeTimestampAt>;
|
|
10
|
+
export default YoutubeTimestampAt;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/YoutubeTimestamps.svelte -->
|
|
2
|
+
<!-- Composed timestamps list, auto-inferred from web metadata or overridden manually via
|
|
3
|
+
YoutubeTimestampAt children. Mirrored from @cloudvoyant/helical-react. -->
|
|
4
|
+
<script lang="ts">
|
|
5
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
6
|
+
import { getContext } from 'svelte';
|
|
7
|
+
import {
|
|
8
|
+
youtubeChaptersBase,
|
|
9
|
+
youtubeChaptersSummaryBase,
|
|
10
|
+
youtubeChaptersChevronBase,
|
|
11
|
+
youtubeChaptersListBase,
|
|
12
|
+
youtubeChapterButtonBase,
|
|
13
|
+
youtubeChapterTimeBase,
|
|
14
|
+
youtubeChapterLabelBase,
|
|
15
|
+
formatTime,
|
|
16
|
+
parseYouTubeChapters,
|
|
17
|
+
fetchYouTubeMetadata,
|
|
18
|
+
cn,
|
|
19
|
+
} from '@cloudvoyant/helical-ui';
|
|
20
|
+
import type { YouTubeChapter } from '@cloudvoyant/helical-ui';
|
|
21
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
22
|
+
import type { Snippet } from 'svelte';
|
|
23
|
+
|
|
24
|
+
type Props = {
|
|
25
|
+
chapters?: YouTubeChapter[];
|
|
26
|
+
children?: Snippet;
|
|
27
|
+
class?: string;
|
|
28
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
29
|
+
|
|
30
|
+
let { chapters = undefined, children, class: className = '', ...rest }: Props = $props();
|
|
31
|
+
|
|
32
|
+
const ctx = getContext<{ url: string; seek: (t: number) => void }>('helical-ui-youtube');
|
|
33
|
+
|
|
34
|
+
let inferred = $state<YouTubeChapter[]>([]);
|
|
35
|
+
let loading = $state(chapters === undefined);
|
|
36
|
+
|
|
37
|
+
$effect(() => {
|
|
38
|
+
if (chapters !== undefined) {
|
|
39
|
+
loading = false;
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let cancelled = false;
|
|
43
|
+
loading = true;
|
|
44
|
+
fetchYouTubeMetadata(ctx.url)
|
|
45
|
+
.then((meta) => {
|
|
46
|
+
if (!cancelled) {
|
|
47
|
+
inferred = meta.description ? parseYouTubeChapters(meta.description) : [];
|
|
48
|
+
loading = false;
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
.catch(() => {
|
|
52
|
+
if (!cancelled) loading = false;
|
|
53
|
+
});
|
|
54
|
+
return () => {
|
|
55
|
+
cancelled = true;
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const resolved = $derived(chapters ?? inferred);
|
|
60
|
+
|
|
61
|
+
const seek = (t: number) => ctx.seek(t);
|
|
62
|
+
|
|
63
|
+
const classes = $derived(cn(youtubeChaptersBase, className));
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
{#if loading || resolved.length > 0 || children}
|
|
67
|
+
<Ark as="div" class={classes} {...rest}>
|
|
68
|
+
<details class="group" open>
|
|
69
|
+
<Ark as="summary" class={youtubeChaptersSummaryBase}>
|
|
70
|
+
<svg
|
|
71
|
+
class={youtubeChaptersChevronBase}
|
|
72
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
73
|
+
viewBox="0 0 24 24"
|
|
74
|
+
fill="none"
|
|
75
|
+
stroke="currentColor"
|
|
76
|
+
stroke-width="2"
|
|
77
|
+
stroke-linecap="round"
|
|
78
|
+
stroke-linejoin="round"
|
|
79
|
+
aria-hidden="true"
|
|
80
|
+
>
|
|
81
|
+
<path d="m9 18 6-6-6-6"></path>
|
|
82
|
+
</svg>
|
|
83
|
+
<span>Timestamps</span>
|
|
84
|
+
</Ark>
|
|
85
|
+
<Ark as="nav" aria-label="Video timestamps" class={youtubeChaptersListBase}>
|
|
86
|
+
<Ark as="ul" class="space-y-1">
|
|
87
|
+
{#each resolved as ch (ch.t)}
|
|
88
|
+
<Ark as="li">
|
|
89
|
+
<Ark as="button" type="button" onclick={() => seek(ch.t)} class={youtubeChapterButtonBase}>
|
|
90
|
+
<Ark as="span" class={youtubeChapterTimeBase}>{formatTime(ch.t)}</Ark>
|
|
91
|
+
<Ark as="span" class={youtubeChapterLabelBase}>{ch.label}</Ark>
|
|
92
|
+
</Ark>
|
|
93
|
+
</Ark>
|
|
94
|
+
{/each}
|
|
95
|
+
{#if children}{@render children()}{/if}
|
|
96
|
+
</Ark>
|
|
97
|
+
</Ark>
|
|
98
|
+
</details>
|
|
99
|
+
</Ark>
|
|
100
|
+
{/if}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { YouTubeChapter } from '@cloudvoyant/helical-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
type Props = {
|
|
5
|
+
chapters?: YouTubeChapter[];
|
|
6
|
+
children?: Snippet;
|
|
7
|
+
class?: string;
|
|
8
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
9
|
+
declare const YoutubeTimestamps: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type YoutubeTimestamps = ReturnType<typeof YoutubeTimestamps>;
|
|
11
|
+
export default YoutubeTimestamps;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/card/Card.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 { setContext } from 'svelte';
|
|
5
|
+
import { Ark } from '@ark-ui/svelte/factory';
|
|
6
|
+
import { cardVariants, cn } from '@cloudvoyant/helical-ui';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
9
|
+
|
|
10
|
+
type Props = {
|
|
11
|
+
variant?: 'outline' | 'elevated' | 'subtle';
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
13
|
+
orientation?: 'vertical' | 'horizontal';
|
|
14
|
+
class?: string;
|
|
15
|
+
children?: Snippet;
|
|
16
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
17
|
+
|
|
18
|
+
let {
|
|
19
|
+
variant = 'outline',
|
|
20
|
+
size = 'md',
|
|
21
|
+
orientation = 'vertical',
|
|
22
|
+
class: className = '',
|
|
23
|
+
children,
|
|
24
|
+
...rest
|
|
25
|
+
}: Props = $props();
|
|
26
|
+
|
|
27
|
+
setContext<'vertical' | 'horizontal'>('card-orientation', orientation);
|
|
28
|
+
|
|
29
|
+
const classes = $derived(cn(cardVariants({ variant, size, orientation }), className));
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<Ark as="div" class={classes} {...rest}>
|
|
33
|
+
{@render children?.()}
|
|
34
|
+
</Ark>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
3
|
+
type Props = {
|
|
4
|
+
variant?: 'outline' | 'elevated' | 'subtle';
|
|
5
|
+
size?: 'sm' | 'md' | 'lg';
|
|
6
|
+
orientation?: 'vertical' | 'horizontal';
|
|
7
|
+
class?: string;
|
|
8
|
+
children?: Snippet;
|
|
9
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const Card: import("svelte").Component<Props, {}, "">;
|
|
11
|
+
type Card = ReturnType<typeof Card>;
|
|
12
|
+
export default Card;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- libs/helical-svelte/src/CardBody.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 { cardBodyBase, 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(cardBodyBase, className));
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<Ark as="div" class={classes} {...rest}>
|
|
20
|
+
{@render children?.()}
|
|
21
|
+
</Ark>
|